* new version 2.19.9999
[alpine.git] / configure
blob6b97f9ee2d5d9c23f1697bf03738ea046022ea07
1 #! /bin/sh
2 # From configure.ac Rev:14 by chappa@washington.edu.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.69 for alpine 2.19.9999.
6 # Report bugs to <chappa@washington.edu>.
9 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
21 emulate sh
22 NULLCMD=:
23 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24 # is contrary to our usage. Disable this feature.
25 alias -g '${1+"$@"}'='"$@"'
26 setopt NO_GLOB_SUBST
27 else
28 case `(set -o) 2>/dev/null` in #(
29 *posix*) :
30 set -o posix ;; #(
31 *) :
33 esac
37 as_nl='
39 export as_nl
40 # Printing a long string crashes Solaris 7 /usr/bin/printf.
41 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
44 # Prefer a ksh shell builtin over an external printf program on Solaris,
45 # but without wasting forks for bash or zsh.
46 if test -z "$BASH_VERSION$ZSH_VERSION" \
47 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='print -r --'
49 as_echo_n='print -rn --'
50 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 as_echo='printf %s\n'
52 as_echo_n='printf %s'
53 else
54 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
55 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
56 as_echo_n='/usr/ucb/echo -n'
57 else
58 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
59 as_echo_n_body='eval
60 arg=$1;
61 case $arg in #(
62 *"$as_nl"*)
63 expr "X$arg" : "X\\(.*\\)$as_nl";
64 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 esac;
66 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 export as_echo_n_body
69 as_echo_n='sh -c $as_echo_n_body as_echo'
71 export as_echo_body
72 as_echo='sh -c $as_echo_body as_echo'
75 # The user is always right.
76 if test "${PATH_SEPARATOR+set}" != set; then
77 PATH_SEPARATOR=:
78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80 PATH_SEPARATOR=';'
85 # IFS
86 # We need space, tab and new line, in precisely that order. Quoting is
87 # there to prevent editors from complaining about space-tab.
88 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
89 # splitting by setting IFS to empty value.)
90 IFS=" "" $as_nl"
92 # Find who we are. Look in the path if we contain no directory separator.
93 as_myself=
94 case $0 in #((
95 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 for as_dir in $PATH
99 IFS=$as_save_IFS
100 test -z "$as_dir" && as_dir=.
101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102 done
103 IFS=$as_save_IFS
106 esac
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
110 as_myself=$0
112 if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 exit 1
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there. '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124 done
125 PS1='$ '
126 PS2='> '
127 PS4='+ '
129 # NLS nuisances.
130 LC_ALL=C
131 export LC_ALL
132 LANGUAGE=C
133 export LANGUAGE
135 # CDPATH.
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138 # Use a proper internal environment variable to ensure we don't fall
139 # into an infinite loop, continuously re-executing ourselves.
140 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
141 _as_can_reexec=no; export _as_can_reexec;
142 # We cannot yet assume a decent shell, so we have to provide a
143 # neutralization value for shells without unset; and this also
144 # works around shells that cannot unset nonexistent variables.
145 # Preserve -v and -x to the replacement shell.
146 BASH_ENV=/dev/null
147 ENV=/dev/null
148 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149 case $- in # ((((
150 *v*x* | *x*v* ) as_opts=-vx ;;
151 *v* ) as_opts=-v ;;
152 *x* ) as_opts=-x ;;
153 * ) as_opts= ;;
154 esac
155 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
156 # Admittedly, this is quite paranoid, since all the known shells bail
157 # out after a failed `exec'.
158 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
159 as_fn_exit 255
161 # We don't want this to propagate to other subprocesses.
162 { _as_can_reexec=; unset _as_can_reexec;}
163 if test "x$CONFIG_SHELL" = x; then
164 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
165 emulate sh
166 NULLCMD=:
167 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
168 # is contrary to our usage. Disable this feature.
169 alias -g '\${1+\"\$@\"}'='\"\$@\"'
170 setopt NO_GLOB_SUBST
171 else
172 case \`(set -o) 2>/dev/null\` in #(
173 *posix*) :
174 set -o posix ;; #(
175 *) :
177 esac
180 as_required="as_fn_return () { (exit \$1); }
181 as_fn_success () { as_fn_return 0; }
182 as_fn_failure () { as_fn_return 1; }
183 as_fn_ret_success () { return 0; }
184 as_fn_ret_failure () { return 1; }
186 exitcode=0
187 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
188 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
189 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
190 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
191 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193 else
194 exitcode=1; echo positional parameters were not saved.
196 test x\$exitcode = x0 || exit 1
197 test -x / || exit 1"
198 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
199 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
200 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
201 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
210 test \$(( 1 + 1 )) = 2 || exit 1"
211 if (eval "$as_required") 2>/dev/null; then :
212 as_have_required=yes
213 else
214 as_have_required=no
216 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
218 else
219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220 as_found=false
221 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 IFS=$as_save_IFS
224 test -z "$as_dir" && as_dir=.
225 as_found=:
226 case $as_dir in #(
228 for as_base in sh bash ksh sh5; do
229 # Try only shells that exist, to save several forks.
230 as_shell=$as_dir/$as_base
231 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
233 CONFIG_SHELL=$as_shell as_have_required=yes
234 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
235 break 2
238 done;;
239 esac
240 as_found=false
241 done
242 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
243 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
244 CONFIG_SHELL=$SHELL as_have_required=yes
245 fi; }
246 IFS=$as_save_IFS
249 if test "x$CONFIG_SHELL" != x; then :
250 export CONFIG_SHELL
251 # We cannot yet assume a decent shell, so we have to provide a
252 # neutralization value for shells without unset; and this also
253 # works around shells that cannot unset nonexistent variables.
254 # Preserve -v and -x to the replacement shell.
255 BASH_ENV=/dev/null
256 ENV=/dev/null
257 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
258 case $- in # ((((
259 *v*x* | *x*v* ) as_opts=-vx ;;
260 *v* ) as_opts=-v ;;
261 *x* ) as_opts=-x ;;
262 * ) as_opts= ;;
263 esac
264 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
265 # Admittedly, this is quite paranoid, since all the known shells bail
266 # out after a failed `exec'.
267 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
268 exit 255
271 if test x$as_have_required = xno; then :
272 $as_echo "$0: This script requires a shell more modern than all"
273 $as_echo "$0: the shells that I found on your system."
274 if test x${ZSH_VERSION+set} = xset ; then
275 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
276 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
277 else
278 $as_echo "$0: Please tell bug-autoconf@gnu.org and
279 $0: chappa@washington.edu about your system, including any
280 $0: error possibly output before this message. Then install
281 $0: a modern shell, or manually run the script under such a
282 $0: shell if you do have one."
284 exit 1
288 SHELL=${CONFIG_SHELL-/bin/sh}
289 export SHELL
290 # Unset more variables known to interfere with behavior of common tools.
291 CLICOLOR_FORCE= GREP_OPTIONS=
292 unset CLICOLOR_FORCE GREP_OPTIONS
294 ## --------------------- ##
295 ## M4sh Shell Functions. ##
296 ## --------------------- ##
297 # as_fn_unset VAR
298 # ---------------
299 # Portably unset VAR.
300 as_fn_unset ()
302 { eval $1=; unset $1;}
304 as_unset=as_fn_unset
306 # as_fn_set_status STATUS
307 # -----------------------
308 # Set $? to STATUS, without forking.
309 as_fn_set_status ()
311 return $1
312 } # as_fn_set_status
314 # as_fn_exit STATUS
315 # -----------------
316 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317 as_fn_exit ()
319 set +e
320 as_fn_set_status $1
321 exit $1
322 } # as_fn_exit
324 # as_fn_mkdir_p
325 # -------------
326 # Create "$as_dir" as a directory, including parents if necessary.
327 as_fn_mkdir_p ()
330 case $as_dir in #(
331 -*) as_dir=./$as_dir;;
332 esac
333 test -d "$as_dir" || eval $as_mkdir_p || {
334 as_dirs=
335 while :; do
336 case $as_dir in #(
337 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
338 *) as_qdir=$as_dir;;
339 esac
340 as_dirs="'$as_qdir' $as_dirs"
341 as_dir=`$as_dirname -- "$as_dir" ||
342 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343 X"$as_dir" : 'X\(//\)[^/]' \| \
344 X"$as_dir" : 'X\(//\)$' \| \
345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346 $as_echo X"$as_dir" |
347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
348 s//\1/
351 /^X\(\/\/\)[^/].*/{
352 s//\1/
355 /^X\(\/\/\)$/{
356 s//\1/
359 /^X\(\/\).*/{
360 s//\1/
363 s/.*/./; q'`
364 test -d "$as_dir" && break
365 done
366 test -z "$as_dirs" || eval "mkdir $as_dirs"
367 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
370 } # as_fn_mkdir_p
372 # as_fn_executable_p FILE
373 # -----------------------
374 # Test if FILE is an executable regular file.
375 as_fn_executable_p ()
377 test -f "$1" && test -x "$1"
378 } # as_fn_executable_p
379 # as_fn_append VAR VALUE
380 # ----------------------
381 # Append the text in VALUE to the end of the definition contained in VAR. Take
382 # advantage of any shell optimizations that allow amortized linear growth over
383 # repeated appends, instead of the typical quadratic growth present in naive
384 # implementations.
385 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386 eval 'as_fn_append ()
388 eval $1+=\$2
390 else
391 as_fn_append ()
393 eval $1=\$$1\$2
395 fi # as_fn_append
397 # as_fn_arith ARG...
398 # ------------------
399 # Perform arithmetic evaluation on the ARGs, and store the result in the
400 # global $as_val. Take advantage of shells that can avoid forks. The arguments
401 # must be portable across $(()) and expr.
402 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
403 eval 'as_fn_arith ()
405 as_val=$(( $* ))
407 else
408 as_fn_arith ()
410 as_val=`expr "$@" || test $? -eq 1`
412 fi # as_fn_arith
415 # as_fn_error STATUS ERROR [LINENO LOG_FD]
416 # ----------------------------------------
417 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419 # script with STATUS, using 1 if that was 0.
420 as_fn_error ()
422 as_status=$1; test $as_status -eq 0 && as_status=1
423 if test "$4"; then
424 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
427 $as_echo "$as_me: error: $2" >&2
428 as_fn_exit $as_status
429 } # as_fn_error
431 if expr a : '\(a\)' >/dev/null 2>&1 &&
432 test "X`expr 00001 : '.*\(...\)'`" = X001; then
433 as_expr=expr
434 else
435 as_expr=false
438 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
439 as_basename=basename
440 else
441 as_basename=false
444 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
445 as_dirname=dirname
446 else
447 as_dirname=false
450 as_me=`$as_basename -- "$0" ||
451 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452 X"$0" : 'X\(//\)$' \| \
453 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 $as_echo X/"$0" |
455 sed '/^.*\/\([^/][^/]*\)\/*$/{
456 s//\1/
459 /^X\/\(\/\/\)$/{
460 s//\1/
463 /^X\/\(\/\).*/{
464 s//\1/
467 s/.*/./; q'`
469 # Avoid depending upon Character Ranges.
470 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473 as_cr_digits='0123456789'
474 as_cr_alnum=$as_cr_Letters$as_cr_digits
477 as_lineno_1=$LINENO as_lineno_1a=$LINENO
478 as_lineno_2=$LINENO as_lineno_2a=$LINENO
479 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
482 sed -n '
484 /[$]LINENO/=
485 ' <$as_myself |
486 sed '
487 s/[$]LINENO.*/&-/
488 t lineno
490 :lineno
492 :loop
493 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
494 t loop
495 s/-\n.*//
496 ' >$as_me.lineno &&
497 chmod +x "$as_me.lineno" ||
498 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
500 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501 # already done that, so ensure we don't try to do so again and fall
502 # in an infinite loop. This has already happened in practice.
503 _as_can_reexec=no; export _as_can_reexec
504 # Don't try to exec as it changes $[0], causing all sort of problems
505 # (the dirname of $[0] is not the place where we might find the
506 # original and so on. Autoconf is especially sensitive to this).
507 . "./$as_me.lineno"
508 # Exit status is that of the last command.
509 exit
512 ECHO_C= ECHO_N= ECHO_T=
513 case `echo -n x` in #(((((
514 -n*)
515 case `echo 'xy\c'` in
516 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
517 xy) ECHO_C='\c';;
518 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
519 ECHO_T=' ';;
520 esac;;
522 ECHO_N='-n';;
523 esac
525 rm -f conf$$ conf$$.exe conf$$.file
526 if test -d conf$$.dir; then
527 rm -f conf$$.dir/conf$$.file
528 else
529 rm -f conf$$.dir
530 mkdir conf$$.dir 2>/dev/null
532 if (echo >conf$$.file) 2>/dev/null; then
533 if ln -s conf$$.file conf$$ 2>/dev/null; then
534 as_ln_s='ln -s'
535 # ... but there are two gotchas:
536 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538 # In both cases, we have to default to `cp -pR'.
539 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540 as_ln_s='cp -pR'
541 elif ln conf$$.file conf$$ 2>/dev/null; then
542 as_ln_s=ln
543 else
544 as_ln_s='cp -pR'
546 else
547 as_ln_s='cp -pR'
549 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550 rmdir conf$$.dir 2>/dev/null
552 if mkdir -p . 2>/dev/null; then
553 as_mkdir_p='mkdir -p "$as_dir"'
554 else
555 test -d ./-p && rmdir ./-p
556 as_mkdir_p=false
559 as_test_x='test -x'
560 as_executable_p=as_fn_executable_p
562 # Sed expression to map a string onto a valid CPP name.
563 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
565 # Sed expression to map a string onto a valid variable name.
566 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
568 SHELL=${CONFIG_SHELL-/bin/sh}
571 test -n "$DJDIR" || exec 7<&0 </dev/null
572 exec 6>&1
574 # Name of the host.
575 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
576 # so uname gets run too.
577 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
580 # Initializations.
582 ac_default_prefix=/usr/local
583 ac_clean_files=
584 ac_config_libobj_dir=.
585 LIBOBJS=
586 cross_compiling=no
587 subdirs=
588 MFLAGS=
589 MAKEFLAGS=
591 # Identity of this package.
592 PACKAGE_NAME='alpine'
593 PACKAGE_TARNAME='alpine'
594 PACKAGE_VERSION='2.19.9999'
595 PACKAGE_STRING='alpine 2.19.9999'
596 PACKAGE_BUGREPORT='chappa@washington.edu'
597 PACKAGE_URL=''
599 ac_unique_file="include/system.h"
600 # Factoring default headers for most tests.
601 ac_includes_default="\
602 #include <stdio.h>
603 #ifdef HAVE_SYS_TYPES_H
604 # include <sys/types.h>
605 #endif
606 #ifdef HAVE_SYS_STAT_H
607 # include <sys/stat.h>
608 #endif
609 #ifdef STDC_HEADERS
610 # include <stdlib.h>
611 # include <stddef.h>
612 #else
613 # ifdef HAVE_STDLIB_H
614 # include <stdlib.h>
615 # endif
616 #endif
617 #ifdef HAVE_STRING_H
618 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
619 # include <memory.h>
620 # endif
621 # include <string.h>
622 #endif
623 #ifdef HAVE_STRINGS_H
624 # include <strings.h>
625 #endif
626 #ifdef HAVE_INTTYPES_H
627 # include <inttypes.h>
628 #endif
629 #ifdef HAVE_STDINT_H
630 # include <stdint.h>
631 #endif
632 #ifdef HAVE_UNISTD_H
633 # include <unistd.h>
634 #endif"
636 gt_needs=
637 ac_subst_vars='am__EXEEXT_FALSE
638 am__EXEEXT_TRUE
639 LTLIBOBJS
640 LIBOBJS
641 AM_LDFLAGS
642 AM_CFLAGS
643 WEB_PUBCOOKIE_LINK
644 WEB_PUBCOOKIE_LIB
645 WEB_PUBCOOKIE_BUILD
646 WEB_BINDIR
647 WEB_BUILD
648 REGEX_BUILD
649 C_CLIENT_SPECIALS
650 C_CLIENT_GCCOPTLEVEL
651 C_CLIENT_LDFLAGS
652 C_CLIENT_CFLAGS
653 C_CLIENT_WITH_IPV6
654 C_CLIENT_TARGET
655 PTHREAD_CFLAGS
656 PTHREAD_LIBS
657 PTHREAD_CC
658 acx_pthread_config
659 alpine_interactive_spellcheck
660 ISPELLPROG
661 alpine_simple_spellcheck
662 SPELLPROG
663 PWPROG
664 NPA_PROG
665 SENDMAIL
666 POSUB
667 LTLIBINTL
668 LIBINTL
669 INTLLIBS
670 LTLIBICONV
671 LIBICONV
672 INTL_MACOSX_LIBS
673 MSGMERGE
674 XGETTEXT_015
675 XGETTEXT
676 GMSGFMT_015
677 MSGFMT_015
678 GMSGFMT
679 MSGFMT
680 USE_NLS
681 MAKE
686 LIBTOOL_DEPS
688 OTOOL64
689 OTOOL
690 LIPO
691 NMEDIT
692 DSYMUTIL
693 MANIFEST_TOOL
694 ac_ct_AR
696 DLLTOOL
697 OBJDUMP
699 ac_ct_DUMPBIN
700 DUMPBIN
702 FGREP
703 EGREP
704 GREP
706 LIBTOOL
707 RANLIB
708 LN_S
709 am__fastdepCC_FALSE
710 am__fastdepCC_TRUE
711 CCDEPMODE
712 am__nodep
713 AMDEPBACKSLASH
714 AMDEP_FALSE
715 AMDEP_TRUE
716 am__quote
717 am__include
718 DEPDIR
719 OBJEXT
720 EXEEXT
721 ac_ct_CC
722 CPPFLAGS
723 LDFLAGS
724 CFLAGS
726 host_os
727 host_vendor
728 host_cpu
729 host
730 build_os
731 build_vendor
732 build_cpu
733 build
734 MAINT
735 MAINTAINER_MODE_FALSE
736 MAINTAINER_MODE_TRUE
737 AM_BACKSLASH
738 AM_DEFAULT_VERBOSITY
739 AM_DEFAULT_V
740 AM_V
741 am__untar
742 am__tar
743 AMTAR
744 am__leading_dot
745 SET_MAKE
747 mkdir_p
748 MKDIR_P
749 INSTALL_STRIP_PROGRAM
750 STRIP
751 install_sh
752 MAKEINFO
753 AUTOHEADER
754 AUTOMAKE
755 AUTOCONF
756 ACLOCAL
757 VERSION
758 PACKAGE
759 CYGPATH_W
760 am__isrc
761 INSTALL_DATA
762 INSTALL_SCRIPT
763 INSTALL_PROGRAM
764 target_alias
765 host_alias
766 build_alias
767 LIBS
768 ECHO_T
769 ECHO_N
770 ECHO_C
771 DEFS
772 mandir
773 localedir
774 libdir
775 psdir
776 pdfdir
777 dvidir
778 htmldir
779 infodir
780 docdir
781 oldincludedir
782 includedir
783 localstatedir
784 sharedstatedir
785 sysconfdir
786 datadir
787 datarootdir
788 libexecdir
789 sbindir
790 bindir
791 program_transform_name
792 prefix
793 exec_prefix
794 PACKAGE_URL
795 PACKAGE_BUGREPORT
796 PACKAGE_STRING
797 PACKAGE_VERSION
798 PACKAGE_TARNAME
799 PACKAGE_NAME
800 PATH_SEPARATOR
801 SHELL'
802 ac_subst_files=''
803 ac_user_opts='
804 enable_option_checking
805 enable_silent_rules
806 enable_maintainer_mode
807 enable_dependency_tracking
808 enable_shared
809 enable_static
810 with_pic
811 enable_fast_install
812 with_gnu_ld
813 with_sysroot
814 enable_libtool_lock
815 enable_nls
816 enable_rpath
817 with_libiconv_prefix
818 with_libintl_prefix
819 enable_dmalloc
820 with_dmalloc_dir
821 with_ps_cmd
822 with_localedir
823 enable_osx_universal_binaries
824 with_include_path
825 with_lib_path
826 with_pubcookie
827 with_web_bin
828 enable_debug
829 enable_optimization
830 enable_mouse
831 enable_quotas
832 enable_from_changing
833 enable_background_post
834 enable_keyboard_lock
835 enable_from_encoding
836 with_smtp_msa
837 with_smtp_msa_flags
838 with_npa
839 with_npa_flags
840 with_password_prog
841 with_simple_spellcheck
842 with_interactive_spellcheck
843 with_system_pinerc
844 with_system_fixed_pinerc
845 with_local_support_info
846 with_mailcheck_interval
847 with_checkpoint_interval
848 with_checkpoint_frequency
849 with_display_rows
850 with_display_columns
851 with_max_display_rows
852 with_max_display_columns
853 with_fill_column
854 with_max_fill_column
855 with_debug_level
856 with_debug_files
857 with_debug_file
858 with_forwarded_keyword
859 with_display_overlap
860 with_display_margin
861 with_default_fcc
862 with_default_save_folder
863 with_default_legacy_postponed_folder
864 with_default_postponed_folder
865 with_default_trash_folder
866 with_default_interrupted_mail
867 with_default_dead_letter_folder
868 with_default_mail_directory
869 with_default_inbox_name
870 with_default_signature_file
871 with_default_elm_style_save
872 with_default_header_in_reply
873 with_default_old_style_reply
874 with_default_use_only_domain_name
875 with_default_save_by_sender
876 with_default_sort_key
877 with_default_addressbook_sort_rule
878 with_default_folder_sort_rule
879 with_default_saved_message_name_rule
880 with_default_fcc_rule
881 with_default_standard_printer
882 with_default_ansi_printer
883 with_default_addressbook
884 with_default_local_fullname
885 with_default_local_address
886 with_default_keyboard_lock_count
887 with_default_remote_addressbook_history
888 with_smime_public_cert_directory
889 with_smime_private_key_directory
890 with_smime_cacert_directory
891 with_default_printer
892 with_passfile
893 with_local_password_cache
894 with_local_password_cache_method
895 with_default_sshpath
896 with_default_sshcmd
897 with_ssl
898 with_ssl_dir
899 with_ssl_certs_dir
900 with_ssl_include_dir
901 with_ssl_lib_dir
902 with_krb5
903 with_krb5_dir
904 with_krb5_include_dir
905 with_krb5_lib_dir
906 with_ldap
907 with_ldap_dir
908 with_ldap_include_dir
909 with_ldap_lib_dir
910 with_smime
911 with_tcl
912 with_tcl_lib
913 with_tcl_include
914 with_supplied_regex
915 with_pthread
916 with_system_mail_directory
917 with_c_client_target
918 with_ipv6
920 ac_precious_vars='build_alias
921 host_alias
922 target_alias
924 CFLAGS
925 LDFLAGS
926 LIBS
927 CPPFLAGS
928 CPP'
931 # Initialize some variables set by options.
932 ac_init_help=
933 ac_init_version=false
934 ac_unrecognized_opts=
935 ac_unrecognized_sep=
936 # The variables have the same names as the options, with
937 # dashes changed to underlines.
938 cache_file=/dev/null
939 exec_prefix=NONE
940 no_create=
941 no_recursion=
942 prefix=NONE
943 program_prefix=NONE
944 program_suffix=NONE
945 program_transform_name=s,x,x,
946 silent=
947 site=
948 srcdir=
949 verbose=
950 x_includes=NONE
951 x_libraries=NONE
953 # Installation directory options.
954 # These are left unexpanded so users can "make install exec_prefix=/foo"
955 # and all the variables that are supposed to be based on exec_prefix
956 # by default will actually change.
957 # Use braces instead of parens because sh, perl, etc. also accept them.
958 # (The list follows the same order as the GNU Coding Standards.)
959 bindir='${exec_prefix}/bin'
960 sbindir='${exec_prefix}/sbin'
961 libexecdir='${exec_prefix}/libexec'
962 datarootdir='${prefix}/share'
963 datadir='${datarootdir}'
964 sysconfdir='${prefix}/etc'
965 sharedstatedir='${prefix}/com'
966 localstatedir='${prefix}/var'
967 includedir='${prefix}/include'
968 oldincludedir='/usr/include'
969 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
970 infodir='${datarootdir}/info'
971 htmldir='${docdir}'
972 dvidir='${docdir}'
973 pdfdir='${docdir}'
974 psdir='${docdir}'
975 libdir='${exec_prefix}/lib'
976 localedir='${datarootdir}/locale'
977 mandir='${datarootdir}/man'
979 ac_prev=
980 ac_dashdash=
981 for ac_option
983 # If the previous option needs an argument, assign it.
984 if test -n "$ac_prev"; then
985 eval $ac_prev=\$ac_option
986 ac_prev=
987 continue
990 case $ac_option in
991 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
992 *=) ac_optarg= ;;
993 *) ac_optarg=yes ;;
994 esac
996 # Accept the important Cygnus configure options, so we can diagnose typos.
998 case $ac_dashdash$ac_option in
1000 ac_dashdash=yes ;;
1002 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1003 ac_prev=bindir ;;
1004 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1005 bindir=$ac_optarg ;;
1007 -build | --build | --buil | --bui | --bu)
1008 ac_prev=build_alias ;;
1009 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1010 build_alias=$ac_optarg ;;
1012 -cache-file | --cache-file | --cache-fil | --cache-fi \
1013 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1014 ac_prev=cache_file ;;
1015 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1016 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1017 cache_file=$ac_optarg ;;
1019 --config-cache | -C)
1020 cache_file=config.cache ;;
1022 -datadir | --datadir | --datadi | --datad)
1023 ac_prev=datadir ;;
1024 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1025 datadir=$ac_optarg ;;
1027 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1028 | --dataroo | --dataro | --datar)
1029 ac_prev=datarootdir ;;
1030 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1031 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1032 datarootdir=$ac_optarg ;;
1034 -disable-* | --disable-*)
1035 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1036 # Reject names that are not valid shell variable names.
1037 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1038 as_fn_error $? "invalid feature name: $ac_useropt"
1039 ac_useropt_orig=$ac_useropt
1040 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1041 case $ac_user_opts in
1043 "enable_$ac_useropt"
1044 "*) ;;
1045 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1046 ac_unrecognized_sep=', ';;
1047 esac
1048 eval enable_$ac_useropt=no ;;
1050 -docdir | --docdir | --docdi | --doc | --do)
1051 ac_prev=docdir ;;
1052 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1053 docdir=$ac_optarg ;;
1055 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1056 ac_prev=dvidir ;;
1057 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1058 dvidir=$ac_optarg ;;
1060 -enable-* | --enable-*)
1061 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1062 # Reject names that are not valid shell variable names.
1063 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1064 as_fn_error $? "invalid feature name: $ac_useropt"
1065 ac_useropt_orig=$ac_useropt
1066 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1067 case $ac_user_opts in
1069 "enable_$ac_useropt"
1070 "*) ;;
1071 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1072 ac_unrecognized_sep=', ';;
1073 esac
1074 eval enable_$ac_useropt=\$ac_optarg ;;
1076 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1077 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1078 | --exec | --exe | --ex)
1079 ac_prev=exec_prefix ;;
1080 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1081 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1082 | --exec=* | --exe=* | --ex=*)
1083 exec_prefix=$ac_optarg ;;
1085 -gas | --gas | --ga | --g)
1086 # Obsolete; use --with-gas.
1087 with_gas=yes ;;
1089 -help | --help | --hel | --he | -h)
1090 ac_init_help=long ;;
1091 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1092 ac_init_help=recursive ;;
1093 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1094 ac_init_help=short ;;
1096 -host | --host | --hos | --ho)
1097 ac_prev=host_alias ;;
1098 -host=* | --host=* | --hos=* | --ho=*)
1099 host_alias=$ac_optarg ;;
1101 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1102 ac_prev=htmldir ;;
1103 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1104 | --ht=*)
1105 htmldir=$ac_optarg ;;
1107 -includedir | --includedir | --includedi | --included | --include \
1108 | --includ | --inclu | --incl | --inc)
1109 ac_prev=includedir ;;
1110 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1111 | --includ=* | --inclu=* | --incl=* | --inc=*)
1112 includedir=$ac_optarg ;;
1114 -infodir | --infodir | --infodi | --infod | --info | --inf)
1115 ac_prev=infodir ;;
1116 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1117 infodir=$ac_optarg ;;
1119 -libdir | --libdir | --libdi | --libd)
1120 ac_prev=libdir ;;
1121 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1122 libdir=$ac_optarg ;;
1124 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1125 | --libexe | --libex | --libe)
1126 ac_prev=libexecdir ;;
1127 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1128 | --libexe=* | --libex=* | --libe=*)
1129 libexecdir=$ac_optarg ;;
1131 -localedir | --localedir | --localedi | --localed | --locale)
1132 ac_prev=localedir ;;
1133 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1134 localedir=$ac_optarg ;;
1136 -localstatedir | --localstatedir | --localstatedi | --localstated \
1137 | --localstate | --localstat | --localsta | --localst | --locals)
1138 ac_prev=localstatedir ;;
1139 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1140 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1141 localstatedir=$ac_optarg ;;
1143 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1144 ac_prev=mandir ;;
1145 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1146 mandir=$ac_optarg ;;
1148 -nfp | --nfp | --nf)
1149 # Obsolete; use --without-fp.
1150 with_fp=no ;;
1152 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1153 | --no-cr | --no-c | -n)
1154 no_create=yes ;;
1156 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1157 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1158 no_recursion=yes ;;
1160 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1161 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1162 | --oldin | --oldi | --old | --ol | --o)
1163 ac_prev=oldincludedir ;;
1164 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1165 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1166 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1167 oldincludedir=$ac_optarg ;;
1169 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1170 ac_prev=prefix ;;
1171 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1172 prefix=$ac_optarg ;;
1174 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1175 | --program-pre | --program-pr | --program-p)
1176 ac_prev=program_prefix ;;
1177 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1178 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1179 program_prefix=$ac_optarg ;;
1181 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1182 | --program-suf | --program-su | --program-s)
1183 ac_prev=program_suffix ;;
1184 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1185 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1186 program_suffix=$ac_optarg ;;
1188 -program-transform-name | --program-transform-name \
1189 | --program-transform-nam | --program-transform-na \
1190 | --program-transform-n | --program-transform- \
1191 | --program-transform | --program-transfor \
1192 | --program-transfo | --program-transf \
1193 | --program-trans | --program-tran \
1194 | --progr-tra | --program-tr | --program-t)
1195 ac_prev=program_transform_name ;;
1196 -program-transform-name=* | --program-transform-name=* \
1197 | --program-transform-nam=* | --program-transform-na=* \
1198 | --program-transform-n=* | --program-transform-=* \
1199 | --program-transform=* | --program-transfor=* \
1200 | --program-transfo=* | --program-transf=* \
1201 | --program-trans=* | --program-tran=* \
1202 | --progr-tra=* | --program-tr=* | --program-t=*)
1203 program_transform_name=$ac_optarg ;;
1205 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1206 ac_prev=pdfdir ;;
1207 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1208 pdfdir=$ac_optarg ;;
1210 -psdir | --psdir | --psdi | --psd | --ps)
1211 ac_prev=psdir ;;
1212 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1213 psdir=$ac_optarg ;;
1215 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1216 | -silent | --silent | --silen | --sile | --sil)
1217 silent=yes ;;
1219 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1220 ac_prev=sbindir ;;
1221 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1222 | --sbi=* | --sb=*)
1223 sbindir=$ac_optarg ;;
1225 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1226 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1227 | --sharedst | --shareds | --shared | --share | --shar \
1228 | --sha | --sh)
1229 ac_prev=sharedstatedir ;;
1230 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1231 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1232 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1233 | --sha=* | --sh=*)
1234 sharedstatedir=$ac_optarg ;;
1236 -site | --site | --sit)
1237 ac_prev=site ;;
1238 -site=* | --site=* | --sit=*)
1239 site=$ac_optarg ;;
1241 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1242 ac_prev=srcdir ;;
1243 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1244 srcdir=$ac_optarg ;;
1246 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1247 | --syscon | --sysco | --sysc | --sys | --sy)
1248 ac_prev=sysconfdir ;;
1249 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1250 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1251 sysconfdir=$ac_optarg ;;
1253 -target | --target | --targe | --targ | --tar | --ta | --t)
1254 ac_prev=target_alias ;;
1255 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1256 target_alias=$ac_optarg ;;
1258 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1259 verbose=yes ;;
1261 -version | --version | --versio | --versi | --vers | -V)
1262 ac_init_version=: ;;
1264 -with-* | --with-*)
1265 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1266 # Reject names that are not valid shell variable names.
1267 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1268 as_fn_error $? "invalid package name: $ac_useropt"
1269 ac_useropt_orig=$ac_useropt
1270 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1271 case $ac_user_opts in
1273 "with_$ac_useropt"
1274 "*) ;;
1275 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1276 ac_unrecognized_sep=', ';;
1277 esac
1278 eval with_$ac_useropt=\$ac_optarg ;;
1280 -without-* | --without-*)
1281 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1282 # Reject names that are not valid shell variable names.
1283 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1284 as_fn_error $? "invalid package name: $ac_useropt"
1285 ac_useropt_orig=$ac_useropt
1286 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1287 case $ac_user_opts in
1289 "with_$ac_useropt"
1290 "*) ;;
1291 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1292 ac_unrecognized_sep=', ';;
1293 esac
1294 eval with_$ac_useropt=no ;;
1296 --x)
1297 # Obsolete; use --with-x.
1298 with_x=yes ;;
1300 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1301 | --x-incl | --x-inc | --x-in | --x-i)
1302 ac_prev=x_includes ;;
1303 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1304 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1305 x_includes=$ac_optarg ;;
1307 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1308 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1309 ac_prev=x_libraries ;;
1310 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1311 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1312 x_libraries=$ac_optarg ;;
1314 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1315 Try \`$0 --help' for more information"
1318 *=*)
1319 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1320 # Reject names that are not valid shell variable names.
1321 case $ac_envvar in #(
1322 '' | [0-9]* | *[!_$as_cr_alnum]* )
1323 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1324 esac
1325 eval $ac_envvar=\$ac_optarg
1326 export $ac_envvar ;;
1329 # FIXME: should be removed in autoconf 3.0.
1330 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1331 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1332 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1333 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1336 esac
1337 done
1339 if test -n "$ac_prev"; then
1340 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1341 as_fn_error $? "missing argument to $ac_option"
1344 if test -n "$ac_unrecognized_opts"; then
1345 case $enable_option_checking in
1346 no) ;;
1347 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1348 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1349 esac
1352 # Check all directory arguments for consistency.
1353 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1354 datadir sysconfdir sharedstatedir localstatedir includedir \
1355 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1356 libdir localedir mandir
1358 eval ac_val=\$$ac_var
1359 # Remove trailing slashes.
1360 case $ac_val in
1361 */ )
1362 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1363 eval $ac_var=\$ac_val;;
1364 esac
1365 # Be sure to have absolute directory names.
1366 case $ac_val in
1367 [\\/$]* | ?:[\\/]* ) continue;;
1368 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1369 esac
1370 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1371 done
1373 # There might be people who depend on the old broken behavior: `$host'
1374 # used to hold the argument of --host etc.
1375 # FIXME: To remove some day.
1376 build=$build_alias
1377 host=$host_alias
1378 target=$target_alias
1380 # FIXME: To remove some day.
1381 if test "x$host_alias" != x; then
1382 if test "x$build_alias" = x; then
1383 cross_compiling=maybe
1384 elif test "x$build_alias" != "x$host_alias"; then
1385 cross_compiling=yes
1389 ac_tool_prefix=
1390 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1392 test "$silent" = yes && exec 6>/dev/null
1395 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1396 ac_ls_di=`ls -di .` &&
1397 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1398 as_fn_error $? "working directory cannot be determined"
1399 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1400 as_fn_error $? "pwd does not report name of working directory"
1403 # Find the source files, if location was not specified.
1404 if test -z "$srcdir"; then
1405 ac_srcdir_defaulted=yes
1406 # Try the directory containing this script, then the parent directory.
1407 ac_confdir=`$as_dirname -- "$as_myself" ||
1408 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1409 X"$as_myself" : 'X\(//\)[^/]' \| \
1410 X"$as_myself" : 'X\(//\)$' \| \
1411 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1412 $as_echo X"$as_myself" |
1413 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1414 s//\1/
1417 /^X\(\/\/\)[^/].*/{
1418 s//\1/
1421 /^X\(\/\/\)$/{
1422 s//\1/
1425 /^X\(\/\).*/{
1426 s//\1/
1429 s/.*/./; q'`
1430 srcdir=$ac_confdir
1431 if test ! -r "$srcdir/$ac_unique_file"; then
1432 srcdir=..
1434 else
1435 ac_srcdir_defaulted=no
1437 if test ! -r "$srcdir/$ac_unique_file"; then
1438 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1439 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1441 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1442 ac_abs_confdir=`(
1443 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1444 pwd)`
1445 # When building in place, set srcdir=.
1446 if test "$ac_abs_confdir" = "$ac_pwd"; then
1447 srcdir=.
1449 # Remove unnecessary trailing slashes from srcdir.
1450 # Double slashes in file names in object file debugging info
1451 # mess up M-x gdb in Emacs.
1452 case $srcdir in
1453 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1454 esac
1455 for ac_var in $ac_precious_vars; do
1456 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1457 eval ac_env_${ac_var}_value=\$${ac_var}
1458 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1459 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1460 done
1463 # Report the --help message.
1465 if test "$ac_init_help" = "long"; then
1466 # Omit some internal or obsolete options to make the list less imposing.
1467 # This message is too long to be a string in the A/UX 3.1 sh.
1468 cat <<_ACEOF
1469 \`configure' configures alpine 2.19.9999 to adapt to many kinds of systems.
1471 Usage: $0 [OPTION]... [VAR=VALUE]...
1473 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1474 VAR=VALUE. See below for descriptions of some of the useful variables.
1476 Defaults for the options are specified in brackets.
1478 Configuration:
1479 -h, --help display this help and exit
1480 --help=short display options specific to this package
1481 --help=recursive display the short help of all the included packages
1482 -V, --version display version information and exit
1483 -q, --quiet, --silent do not print \`checking ...' messages
1484 --cache-file=FILE cache test results in FILE [disabled]
1485 -C, --config-cache alias for \`--cache-file=config.cache'
1486 -n, --no-create do not create output files
1487 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1489 Installation directories:
1490 --prefix=PREFIX install architecture-independent files in PREFIX
1491 [$ac_default_prefix]
1492 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1493 [PREFIX]
1495 By default, \`make install' will install all the files in
1496 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1497 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1498 for instance \`--prefix=\$HOME'.
1500 For better control, use the options below.
1502 Fine tuning of the installation directories:
1503 --bindir=DIR user executables [EPREFIX/bin]
1504 --sbindir=DIR system admin executables [EPREFIX/sbin]
1505 --libexecdir=DIR program executables [EPREFIX/libexec]
1506 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1507 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1508 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1509 --libdir=DIR object code libraries [EPREFIX/lib]
1510 --includedir=DIR C header files [PREFIX/include]
1511 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1512 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1513 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1514 --infodir=DIR info documentation [DATAROOTDIR/info]
1515 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1516 --mandir=DIR man documentation [DATAROOTDIR/man]
1517 --docdir=DIR documentation root [DATAROOTDIR/doc/alpine]
1518 --htmldir=DIR html documentation [DOCDIR]
1519 --dvidir=DIR dvi documentation [DOCDIR]
1520 --pdfdir=DIR pdf documentation [DOCDIR]
1521 --psdir=DIR ps documentation [DOCDIR]
1522 _ACEOF
1524 cat <<\_ACEOF
1526 Program names:
1527 --program-prefix=PREFIX prepend PREFIX to installed program names
1528 --program-suffix=SUFFIX append SUFFIX to installed program names
1529 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1531 System types:
1532 --build=BUILD configure for building on BUILD [guessed]
1533 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1534 _ACEOF
1537 if test -n "$ac_init_help"; then
1538 case $ac_init_help in
1539 short | recursive ) echo "Configuration of alpine 2.19.9999:";;
1540 esac
1541 cat <<\_ACEOF
1543 Optional Features:
1544 --disable-option-checking ignore unrecognized --enable/--with options
1545 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1546 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1547 --enable-silent-rules less verbose build output (undo: "make V=1")
1548 --disable-silent-rules verbose build output (undo: "make V=0")
1549 --enable-maintainer-mode
1550 enable make rules and dependencies not useful (and
1551 sometimes confusing) to the casual installer
1552 --enable-dependency-tracking
1553 do not reject slow dependency extractors
1554 --disable-dependency-tracking
1555 speeds up one-time build
1556 --enable-shared[=PKGS] build shared libraries [default=yes]
1557 --enable-static[=PKGS] build static libraries [default=yes]
1558 --enable-fast-install[=PKGS]
1559 optimize for fast installation [default=yes]
1560 --disable-libtool-lock avoid locking (might break parallel builds)
1561 --disable-nls do not use Native Language Support
1562 --disable-rpath do not hardcode runtime library paths
1563 --enable-dmalloc Enable dmalloc debugging
1564 --enable-osx-universal-binaries
1565 Produce universal binaries under OS X [[default=no]]
1566 --disable-debug Exclude debug messages from source
1567 --disable-optimization Exclude optimizing compiler flags
1568 --disable-mouse Disable mouse support
1569 --enable-quotas Enable disk quota checking on startup
1570 --disable-from-changing Disallow users changing From addresss
1571 --disable-background-post
1572 Disable background posting
1573 --disable-keyboard-lock Disable keyboard locking
1574 --enable-from-encoding Enable From encoding in sent messages
1576 Optional Packages:
1577 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1578 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1579 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1580 both]
1581 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1582 --with-sysroot=DIR Search for dependent libraries within DIR
1583 (or the compiler's sysroot if not specified).
1584 --with-gnu-ld assume the C compiler uses GNU ld default=no
1585 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1586 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1587 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1588 --without-libintl-prefix don't search for libintl in includedir and libdir
1589 --with-dmalloc-dir=DIR Root of dmalloc lib/include path
1590 --with-ps-cmd="CMD" Use this command to check running commands. Default:
1591 /bin/ps auxww
1592 --with-localedir=DIR Name of gettext locale directory
1593 --with-include-path=PATHS
1594 Colon-separated list of directories used for include
1595 file search
1596 --with-lib-path=PATHS Colon-separated list of directories used for library
1597 search
1598 --with-pubcookie Include support for UW-Pubcookie Web Authentication
1599 --with-web-bin=PATH Directory to hold Web Alpine component binary files
1600 --with-smtp-msa=PATH Local Mail Submission Agent (sendmail)
1601 --with-smtp-msa-flags=FLAGS
1602 MSA flags for SMTP on stdin/stdout (-bs -odb -oem)
1603 --with-npa=PATH Posting agent when no nntp-servers defined (inews)
1604 --with-npa-flags=FLAGS Flags to allow posting via local agent (-h)
1605 --with-password-prog=PATH
1606 Password change program (/bin/passwd)
1607 --with-simple-spellcheck=PROG
1608 Spellcheck program reads stdin, emits misspellings
1609 on stdout
1610 --with-interactive-spellcheck=PROG
1611 Interactive, filewise spell checker
1612 --with-system-pinerc=VALUE
1613 System pinerc (/usr/local/lib/pine.conf)
1614 --with-system-fixed-pinerc=VALUE
1615 System fixed pinerc (/usr/local/lib/pine.conf.fixed)
1616 --with-local-support-info=VALUE
1617 Local Support Info File (/usr/local/lib/pine.info)
1618 --with-mailcheck-interval=VALUE
1619 Specify default mail-check-interval (150)
1620 --with-checkpoint-interval=VALUE
1621 Specify default checkpoint-interval (420)
1622 --with-checkpoint-frequency=VALUE
1623 State change count before checkpoint (12)
1624 --with-display-rows=VALUE
1625 Initial rows on display (24)
1626 --with-display-columns=VALUE
1627 Initial columns on display (80)
1628 --with-max-display-rows=VALUE
1629 Maximum display rows (200)
1630 --with-max-display-columns=VALUE
1631 Maximum display columns (500)
1632 --with-fill-column=VALUE
1633 Default fill column (74)
1634 --with-max_fill-column=VALUE
1635 Maximum fill column (80)
1636 --with-debug-level=VALUE
1637 Specify default debug verbosity level (2)
1638 --with-debug-files=VALUE
1639 Specify number of debug files (4)
1640 --with-debug-file=VALUE Specify debug file name (.pine-debug)
1641 --with-forwarded-keyword=VALUE
1642 IMAP (c-client) keyword to store forwarded status
1643 ("\$Forwarded")
1644 --with-display-overlap=VALUE
1645 Lines preserved while paging (2)
1646 --with-display-margin=VALUE
1647 Lines visible while scrolling (0)
1648 --with-default-fcc=VALUE
1649 Default sent mail folder (sent-mail)
1650 --with-default-save-folder=VALUE
1651 Default save folder (saved-messages)
1652 --with-default-legacy-postponed-folder=VALUE
1653 Pre Pine 3.90 postponed folder (postponed-mail)
1654 --with-default-postponed-folder=VALUE
1655 Default postponed folder (postponed-msgs)
1656 --with-default-trash-folder=VALUE
1657 Default Trash folder for Web Alpine (Trash)
1658 --with-default-interrupted-mail=VALUE
1659 Default folder for interrupted mail
1660 (.pine-interrupted-mail)
1661 --with-default-dead-letter-folder=VALUE
1662 Default dead letter folder (dead.letter)
1663 --with-default-mail-directory=VALUE
1664 Default mail directory (mail)
1665 --with-default-inbox-name=VALUE
1666 Default inbox name (INBOX)
1667 --with-default-signature-file=VALUE
1668 Default signature file (.signature)
1669 --with-default-elm-style-save=VALUE
1670 Default to Elm style save (no)
1671 --with-default-header-in-reply=VALUE
1672 Include header in reply (no)
1673 --with-default-old-style-reply=VALUE
1674 Default to old style reply (no)
1675 --with-default-use-only-domain-name=VALUE
1676 Default to using only the domain name (no)
1677 --with-default-save-by-sender=VALUE
1678 Default to save by sender (no)
1679 --with-default-sort-key=VALUE
1680 Default sort key (arrival)
1681 --with-default-addressbook-sort-rule=VALUE
1682 Default addressbook sort rule
1683 (fullname-with-lists-last)
1684 --with-default-folder-sort-rule=VALUE
1685 Default folder sort rule (alphabetical)
1686 --with-default-saved-message-name-rule=VALUE
1687 Default saved message name rule (default-folder)
1688 --with-default-fcc-rule=VALUE
1689 Default fcc rule (default-fcc)
1690 --with-default-standard-printer=VALUE
1691 Default standard printern (lpr)
1692 --with-default-ansi-printer=VALUE
1693 ANSI printer definition (attached-to-ansi)
1694 --with-default-addressbook=VALUE
1695 Default addressbook name (.addressbook)
1696 --with-default-local-fullname=VALUE
1697 Default local support fullname ("Local Support")
1698 --with-default-local-address=VALUE
1699 Default local support address (postmaster)
1700 --with-default-keyboard-lock-count=VALUE
1701 Default keyboard lock count (1)
1702 --with-default-remote-addressbook-history=VALUE
1703 Default address book history count (3)
1704 --with-smime-public-cert-directory=VALUE
1705 Default Public Cert Directory (.alpine-smime/public)
1706 --with-smime-private-key-directory=VALUE
1707 Default Private Key Directory
1708 (.alpine-smime/private)
1709 --with-smime-cacert-directory=VALUE
1710 Default Cert Authority Directory (.alpine-smime/ca)
1711 --with-default-printer=VALUE
1712 Default printer (ANSI_PRINTER)
1713 --with-passfile=FILENAME
1714 Password cache file (recommended when S/MIME is
1715 enabled and configured)
1716 --without-local-password-cache
1717 Disable OS-specific password cache, if supported
1718 --with-local-password-cache-method
1719 OS-specific credential cache (OSX=APPLEKEYCHAIN,
1720 Windows=WINCRED)
1721 --with-default-sshpath=FILENAME
1722 set default value of ssh command path (defining
1723 should cause ssh to be preferred to rsh)
1724 --with-default-sshcmd=PERCENT_S_STRING
1725 set default value of ssh command string (usually "%s
1726 %s -l %s exec /etc/r%sd")
1727 --without-ssl Disable SSL support (OpenSSL)
1728 --with-ssl-dir=DIR Root of SSL lib/include path
1729 --with-ssl-certs-dir=DIR
1730 Path to SSL certificate directory
1731 --with-ssl-include-dir=DIR
1732 SSL include file path
1733 --with-ssl-lib-dir=DIR SSL library path
1734 --without-krb5 Disable Kerberos support
1735 --with-krb5-dir=DIR Root of Kerberos lib/include path
1736 --with-krb5-include-dir=DIR
1737 Kerberos include file path
1738 --with-krb5-lib-dir=DIR Kerberos library path
1739 --without-ldap Disable LDAP query support
1740 --with-ldap-dir=DIR Root of LDAP lib/include path
1741 --with-ldap-include-dir=DIR
1742 Directory containing LDAP include files
1743 --with-ldap-lib-dir=DIR LDAP library path
1744 --without-smime Disable S/MIME
1745 --without-tcl Disable TCL, thus Web Alpine support
1746 --with-tcl-lib=LIBRARY Specific TCL Library, like \"tcl8.6\"
1747 --with-tcl-include=DIR Directory containing TCL include files
1748 --with-supplied-regex Use regex library supplied with alpine
1749 --without-pthread Do NOT test for nor build with POSIX thread support
1750 --with-system-mail-directory=DIR
1751 Directory where local mail is delivered
1752 --with-c-client-target=TARGET
1753 IMAP build target (see imap/Makefile)
1754 --without-ipv6 Disable IPv6, primarily to work around resolver
1755 problems
1757 Some influential environment variables:
1758 CC C compiler command
1759 CFLAGS C compiler flags
1760 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1761 nonstandard directory <lib dir>
1762 LIBS libraries to pass to the linker, e.g. -l<library>
1763 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1764 you have headers in a nonstandard directory <include dir>
1765 CPP C preprocessor
1767 Use these variables to override the choices made by `configure' or to help
1768 it to find libraries and programs with nonstandard names/locations.
1770 Report bugs to <chappa@washington.edu>.
1771 _ACEOF
1772 ac_status=$?
1775 if test "$ac_init_help" = "recursive"; then
1776 # If there are subdirs, report their specific --help.
1777 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1778 test -d "$ac_dir" ||
1779 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1780 continue
1781 ac_builddir=.
1783 case "$ac_dir" in
1784 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1786 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1787 # A ".." for each directory in $ac_dir_suffix.
1788 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1789 case $ac_top_builddir_sub in
1790 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1791 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1792 esac ;;
1793 esac
1794 ac_abs_top_builddir=$ac_pwd
1795 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1796 # for backward compatibility:
1797 ac_top_builddir=$ac_top_build_prefix
1799 case $srcdir in
1800 .) # We are building in place.
1801 ac_srcdir=.
1802 ac_top_srcdir=$ac_top_builddir_sub
1803 ac_abs_top_srcdir=$ac_pwd ;;
1804 [\\/]* | ?:[\\/]* ) # Absolute name.
1805 ac_srcdir=$srcdir$ac_dir_suffix;
1806 ac_top_srcdir=$srcdir
1807 ac_abs_top_srcdir=$srcdir ;;
1808 *) # Relative name.
1809 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1810 ac_top_srcdir=$ac_top_build_prefix$srcdir
1811 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1812 esac
1813 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1815 cd "$ac_dir" || { ac_status=$?; continue; }
1816 # Check for guested configure.
1817 if test -f "$ac_srcdir/configure.gnu"; then
1818 echo &&
1819 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1820 elif test -f "$ac_srcdir/configure"; then
1821 echo &&
1822 $SHELL "$ac_srcdir/configure" --help=recursive
1823 else
1824 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1825 fi || ac_status=$?
1826 cd "$ac_pwd" || { ac_status=$?; break; }
1827 done
1830 test -n "$ac_init_help" && exit $ac_status
1831 if $ac_init_version; then
1832 cat <<\_ACEOF
1833 alpine configure 2.19.9999
1834 generated by GNU Autoconf 2.69
1836 Copyright (C) 2012 Free Software Foundation, Inc.
1837 This configure script is free software; the Free Software Foundation
1838 gives unlimited permission to copy, distribute and modify it.
1839 _ACEOF
1840 exit
1843 ## ------------------------ ##
1844 ## Autoconf initialization. ##
1845 ## ------------------------ ##
1847 # ac_fn_c_try_compile LINENO
1848 # --------------------------
1849 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1850 ac_fn_c_try_compile ()
1852 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1853 rm -f conftest.$ac_objext
1854 if { { ac_try="$ac_compile"
1855 case "(($ac_try" in
1856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1857 *) ac_try_echo=$ac_try;;
1858 esac
1859 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1860 $as_echo "$ac_try_echo"; } >&5
1861 (eval "$ac_compile") 2>conftest.err
1862 ac_status=$?
1863 if test -s conftest.err; then
1864 grep -v '^ *+' conftest.err >conftest.er1
1865 cat conftest.er1 >&5
1866 mv -f conftest.er1 conftest.err
1868 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1869 test $ac_status = 0; } && {
1870 test -z "$ac_c_werror_flag" ||
1871 test ! -s conftest.err
1872 } && test -s conftest.$ac_objext; then :
1873 ac_retval=0
1874 else
1875 $as_echo "$as_me: failed program was:" >&5
1876 sed 's/^/| /' conftest.$ac_ext >&5
1878 ac_retval=1
1880 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1881 as_fn_set_status $ac_retval
1883 } # ac_fn_c_try_compile
1885 # ac_fn_c_try_link LINENO
1886 # -----------------------
1887 # Try to link conftest.$ac_ext, and return whether this succeeded.
1888 ac_fn_c_try_link ()
1890 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1891 rm -f conftest.$ac_objext conftest$ac_exeext
1892 if { { ac_try="$ac_link"
1893 case "(($ac_try" in
1894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1895 *) ac_try_echo=$ac_try;;
1896 esac
1897 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1898 $as_echo "$ac_try_echo"; } >&5
1899 (eval "$ac_link") 2>conftest.err
1900 ac_status=$?
1901 if test -s conftest.err; then
1902 grep -v '^ *+' conftest.err >conftest.er1
1903 cat conftest.er1 >&5
1904 mv -f conftest.er1 conftest.err
1906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1907 test $ac_status = 0; } && {
1908 test -z "$ac_c_werror_flag" ||
1909 test ! -s conftest.err
1910 } && test -s conftest$ac_exeext && {
1911 test "$cross_compiling" = yes ||
1912 test -x conftest$ac_exeext
1913 }; then :
1914 ac_retval=0
1915 else
1916 $as_echo "$as_me: failed program was:" >&5
1917 sed 's/^/| /' conftest.$ac_ext >&5
1919 ac_retval=1
1921 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1922 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1923 # interfere with the next link command; also delete a directory that is
1924 # left behind by Apple's compiler. We do this before executing the actions.
1925 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1926 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1927 as_fn_set_status $ac_retval
1929 } # ac_fn_c_try_link
1931 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1932 # -------------------------------------------------------
1933 # Tests whether HEADER exists and can be compiled using the include files in
1934 # INCLUDES, setting the cache variable VAR accordingly.
1935 ac_fn_c_check_header_compile ()
1937 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1939 $as_echo_n "checking for $2... " >&6; }
1940 if eval \${$3+:} false; then :
1941 $as_echo_n "(cached) " >&6
1942 else
1943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1944 /* end confdefs.h. */
1946 #include <$2>
1947 _ACEOF
1948 if ac_fn_c_try_compile "$LINENO"; then :
1949 eval "$3=yes"
1950 else
1951 eval "$3=no"
1953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1955 eval ac_res=\$$3
1956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1957 $as_echo "$ac_res" >&6; }
1958 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1960 } # ac_fn_c_check_header_compile
1962 # ac_fn_c_try_cpp LINENO
1963 # ----------------------
1964 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1965 ac_fn_c_try_cpp ()
1967 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1968 if { { ac_try="$ac_cpp conftest.$ac_ext"
1969 case "(($ac_try" in
1970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1971 *) ac_try_echo=$ac_try;;
1972 esac
1973 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1974 $as_echo "$ac_try_echo"; } >&5
1975 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1976 ac_status=$?
1977 if test -s conftest.err; then
1978 grep -v '^ *+' conftest.err >conftest.er1
1979 cat conftest.er1 >&5
1980 mv -f conftest.er1 conftest.err
1982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1983 test $ac_status = 0; } > conftest.i && {
1984 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1985 test ! -s conftest.err
1986 }; then :
1987 ac_retval=0
1988 else
1989 $as_echo "$as_me: failed program was:" >&5
1990 sed 's/^/| /' conftest.$ac_ext >&5
1992 ac_retval=1
1994 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1995 as_fn_set_status $ac_retval
1997 } # ac_fn_c_try_cpp
1999 # ac_fn_c_try_run LINENO
2000 # ----------------------
2001 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2002 # that executables *can* be run.
2003 ac_fn_c_try_run ()
2005 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2006 if { { ac_try="$ac_link"
2007 case "(($ac_try" in
2008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2009 *) ac_try_echo=$ac_try;;
2010 esac
2011 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2012 $as_echo "$ac_try_echo"; } >&5
2013 (eval "$ac_link") 2>&5
2014 ac_status=$?
2015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2016 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2017 { { case "(($ac_try" in
2018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2019 *) ac_try_echo=$ac_try;;
2020 esac
2021 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2022 $as_echo "$ac_try_echo"; } >&5
2023 (eval "$ac_try") 2>&5
2024 ac_status=$?
2025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2026 test $ac_status = 0; }; }; then :
2027 ac_retval=0
2028 else
2029 $as_echo "$as_me: program exited with status $ac_status" >&5
2030 $as_echo "$as_me: failed program was:" >&5
2031 sed 's/^/| /' conftest.$ac_ext >&5
2033 ac_retval=$ac_status
2035 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2036 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2037 as_fn_set_status $ac_retval
2039 } # ac_fn_c_try_run
2041 # ac_fn_c_check_func LINENO FUNC VAR
2042 # ----------------------------------
2043 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2044 ac_fn_c_check_func ()
2046 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2048 $as_echo_n "checking for $2... " >&6; }
2049 if eval \${$3+:} false; then :
2050 $as_echo_n "(cached) " >&6
2051 else
2052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2053 /* end confdefs.h. */
2054 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2055 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2056 #define $2 innocuous_$2
2058 /* System header to define __stub macros and hopefully few prototypes,
2059 which can conflict with char $2 (); below.
2060 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2061 <limits.h> exists even on freestanding compilers. */
2063 #ifdef __STDC__
2064 # include <limits.h>
2065 #else
2066 # include <assert.h>
2067 #endif
2069 #undef $2
2071 /* Override any GCC internal prototype to avoid an error.
2072 Use char because int might match the return type of a GCC
2073 builtin and then its argument prototype would still apply. */
2074 #ifdef __cplusplus
2075 extern "C"
2076 #endif
2077 char $2 ();
2078 /* The GNU C library defines this for functions which it implements
2079 to always fail with ENOSYS. Some functions are actually named
2080 something starting with __ and the normal name is an alias. */
2081 #if defined __stub_$2 || defined __stub___$2
2082 choke me
2083 #endif
2086 main ()
2088 return $2 ();
2090 return 0;
2092 _ACEOF
2093 if ac_fn_c_try_link "$LINENO"; then :
2094 eval "$3=yes"
2095 else
2096 eval "$3=no"
2098 rm -f core conftest.err conftest.$ac_objext \
2099 conftest$ac_exeext conftest.$ac_ext
2101 eval ac_res=\$$3
2102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2103 $as_echo "$ac_res" >&6; }
2104 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2106 } # ac_fn_c_check_func
2108 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2109 # -------------------------------------------------------
2110 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2111 # the include files in INCLUDES and setting the cache variable VAR
2112 # accordingly.
2113 ac_fn_c_check_header_mongrel ()
2115 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2116 if eval \${$3+:} false; then :
2117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2118 $as_echo_n "checking for $2... " >&6; }
2119 if eval \${$3+:} false; then :
2120 $as_echo_n "(cached) " >&6
2122 eval ac_res=\$$3
2123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2124 $as_echo "$ac_res" >&6; }
2125 else
2126 # Is the header compilable?
2127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2128 $as_echo_n "checking $2 usability... " >&6; }
2129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2130 /* end confdefs.h. */
2132 #include <$2>
2133 _ACEOF
2134 if ac_fn_c_try_compile "$LINENO"; then :
2135 ac_header_compiler=yes
2136 else
2137 ac_header_compiler=no
2139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2141 $as_echo "$ac_header_compiler" >&6; }
2143 # Is the header present?
2144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2145 $as_echo_n "checking $2 presence... " >&6; }
2146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2147 /* end confdefs.h. */
2148 #include <$2>
2149 _ACEOF
2150 if ac_fn_c_try_cpp "$LINENO"; then :
2151 ac_header_preproc=yes
2152 else
2153 ac_header_preproc=no
2155 rm -f conftest.err conftest.i conftest.$ac_ext
2156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2157 $as_echo "$ac_header_preproc" >&6; }
2159 # So? What about this header?
2160 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2161 yes:no: )
2162 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2163 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2164 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2165 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2167 no:yes:* )
2168 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2169 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2170 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2171 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2172 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2173 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2174 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2175 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2176 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2177 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2178 ( $as_echo "## ------------------------------------ ##
2179 ## Report this to chappa@washington.edu ##
2180 ## ------------------------------------ ##"
2181 ) | sed "s/^/$as_me: WARNING: /" >&2
2183 esac
2184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2185 $as_echo_n "checking for $2... " >&6; }
2186 if eval \${$3+:} false; then :
2187 $as_echo_n "(cached) " >&6
2188 else
2189 eval "$3=\$ac_header_compiler"
2191 eval ac_res=\$$3
2192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2193 $as_echo "$ac_res" >&6; }
2195 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2197 } # ac_fn_c_check_header_mongrel
2199 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2200 # -------------------------------------------
2201 # Tests whether TYPE exists after having included INCLUDES, setting cache
2202 # variable VAR accordingly.
2203 ac_fn_c_check_type ()
2205 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2207 $as_echo_n "checking for $2... " >&6; }
2208 if eval \${$3+:} false; then :
2209 $as_echo_n "(cached) " >&6
2210 else
2211 eval "$3=no"
2212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2213 /* end confdefs.h. */
2216 main ()
2218 if (sizeof ($2))
2219 return 0;
2221 return 0;
2223 _ACEOF
2224 if ac_fn_c_try_compile "$LINENO"; then :
2225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2226 /* end confdefs.h. */
2229 main ()
2231 if (sizeof (($2)))
2232 return 0;
2234 return 0;
2236 _ACEOF
2237 if ac_fn_c_try_compile "$LINENO"; then :
2239 else
2240 eval "$3=yes"
2242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2246 eval ac_res=\$$3
2247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2248 $as_echo "$ac_res" >&6; }
2249 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2251 } # ac_fn_c_check_type
2253 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2254 # --------------------------------------------
2255 # Tries to find the compile-time value of EXPR in a program that includes
2256 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2257 # computed
2258 ac_fn_c_compute_int ()
2260 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2261 if test "$cross_compiling" = yes; then
2262 # Depending upon the size, compute the lo and hi bounds.
2263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2264 /* end confdefs.h. */
2267 main ()
2269 static int test_array [1 - 2 * !(($2) >= 0)];
2270 test_array [0] = 0;
2271 return test_array [0];
2274 return 0;
2276 _ACEOF
2277 if ac_fn_c_try_compile "$LINENO"; then :
2278 ac_lo=0 ac_mid=0
2279 while :; do
2280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2281 /* end confdefs.h. */
2284 main ()
2286 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2287 test_array [0] = 0;
2288 return test_array [0];
2291 return 0;
2293 _ACEOF
2294 if ac_fn_c_try_compile "$LINENO"; then :
2295 ac_hi=$ac_mid; break
2296 else
2297 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2298 if test $ac_lo -le $ac_mid; then
2299 ac_lo= ac_hi=
2300 break
2302 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2305 done
2306 else
2307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2308 /* end confdefs.h. */
2311 main ()
2313 static int test_array [1 - 2 * !(($2) < 0)];
2314 test_array [0] = 0;
2315 return test_array [0];
2318 return 0;
2320 _ACEOF
2321 if ac_fn_c_try_compile "$LINENO"; then :
2322 ac_hi=-1 ac_mid=-1
2323 while :; do
2324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2325 /* end confdefs.h. */
2328 main ()
2330 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2331 test_array [0] = 0;
2332 return test_array [0];
2335 return 0;
2337 _ACEOF
2338 if ac_fn_c_try_compile "$LINENO"; then :
2339 ac_lo=$ac_mid; break
2340 else
2341 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2342 if test $ac_mid -le $ac_hi; then
2343 ac_lo= ac_hi=
2344 break
2346 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2349 done
2350 else
2351 ac_lo= ac_hi=
2353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2356 # Binary search between lo and hi bounds.
2357 while test "x$ac_lo" != "x$ac_hi"; do
2358 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2360 /* end confdefs.h. */
2363 main ()
2365 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2366 test_array [0] = 0;
2367 return test_array [0];
2370 return 0;
2372 _ACEOF
2373 if ac_fn_c_try_compile "$LINENO"; then :
2374 ac_hi=$ac_mid
2375 else
2376 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2379 done
2380 case $ac_lo in #((
2381 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2382 '') ac_retval=1 ;;
2383 esac
2384 else
2385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2386 /* end confdefs.h. */
2388 static long int longval () { return $2; }
2389 static unsigned long int ulongval () { return $2; }
2390 #include <stdio.h>
2391 #include <stdlib.h>
2393 main ()
2396 FILE *f = fopen ("conftest.val", "w");
2397 if (! f)
2398 return 1;
2399 if (($2) < 0)
2401 long int i = longval ();
2402 if (i != ($2))
2403 return 1;
2404 fprintf (f, "%ld", i);
2406 else
2408 unsigned long int i = ulongval ();
2409 if (i != ($2))
2410 return 1;
2411 fprintf (f, "%lu", i);
2413 /* Do not output a trailing newline, as this causes \r\n confusion
2414 on some platforms. */
2415 return ferror (f) || fclose (f) != 0;
2418 return 0;
2420 _ACEOF
2421 if ac_fn_c_try_run "$LINENO"; then :
2422 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2423 else
2424 ac_retval=1
2426 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2427 conftest.$ac_objext conftest.beam conftest.$ac_ext
2428 rm -f conftest.val
2431 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2432 as_fn_set_status $ac_retval
2434 } # ac_fn_c_compute_int
2435 cat >config.log <<_ACEOF
2436 This file contains any messages produced by compilers while
2437 running configure, to aid debugging if configure makes a mistake.
2439 It was created by alpine $as_me 2.19.9999, which was
2440 generated by GNU Autoconf 2.69. Invocation command line was
2442 $ $0 $@
2444 _ACEOF
2445 exec 5>>config.log
2447 cat <<_ASUNAME
2448 ## --------- ##
2449 ## Platform. ##
2450 ## --------- ##
2452 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2453 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2454 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2455 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2456 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2458 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2459 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2461 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2462 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2463 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2464 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2465 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2466 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2467 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2469 _ASUNAME
2471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2472 for as_dir in $PATH
2474 IFS=$as_save_IFS
2475 test -z "$as_dir" && as_dir=.
2476 $as_echo "PATH: $as_dir"
2477 done
2478 IFS=$as_save_IFS
2480 } >&5
2482 cat >&5 <<_ACEOF
2485 ## ----------- ##
2486 ## Core tests. ##
2487 ## ----------- ##
2489 _ACEOF
2492 # Keep a trace of the command line.
2493 # Strip out --no-create and --no-recursion so they do not pile up.
2494 # Strip out --silent because we don't want to record it for future runs.
2495 # Also quote any args containing shell meta-characters.
2496 # Make two passes to allow for proper duplicate-argument suppression.
2497 ac_configure_args=
2498 ac_configure_args0=
2499 ac_configure_args1=
2500 ac_must_keep_next=false
2501 for ac_pass in 1 2
2503 for ac_arg
2505 case $ac_arg in
2506 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2507 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2508 | -silent | --silent | --silen | --sile | --sil)
2509 continue ;;
2510 *\'*)
2511 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2512 esac
2513 case $ac_pass in
2514 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2516 as_fn_append ac_configure_args1 " '$ac_arg'"
2517 if test $ac_must_keep_next = true; then
2518 ac_must_keep_next=false # Got value, back to normal.
2519 else
2520 case $ac_arg in
2521 *=* | --config-cache | -C | -disable-* | --disable-* \
2522 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2523 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2524 | -with-* | --with-* | -without-* | --without-* | --x)
2525 case "$ac_configure_args0 " in
2526 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2527 esac
2529 -* ) ac_must_keep_next=true ;;
2530 esac
2532 as_fn_append ac_configure_args " '$ac_arg'"
2534 esac
2535 done
2536 done
2537 { ac_configure_args0=; unset ac_configure_args0;}
2538 { ac_configure_args1=; unset ac_configure_args1;}
2540 # When interrupted or exit'd, cleanup temporary files, and complete
2541 # config.log. We remove comments because anyway the quotes in there
2542 # would cause problems or look ugly.
2543 # WARNING: Use '\'' to represent an apostrophe within the trap.
2544 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2545 trap 'exit_status=$?
2546 # Save into config.log some information that might help in debugging.
2548 echo
2550 $as_echo "## ---------------- ##
2551 ## Cache variables. ##
2552 ## ---------------- ##"
2553 echo
2554 # The following way of writing the cache mishandles newlines in values,
2556 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2557 eval ac_val=\$$ac_var
2558 case $ac_val in #(
2559 *${as_nl}*)
2560 case $ac_var in #(
2561 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2562 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2563 esac
2564 case $ac_var in #(
2565 _ | IFS | as_nl) ;; #(
2566 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2567 *) { eval $ac_var=; unset $ac_var;} ;;
2568 esac ;;
2569 esac
2570 done
2571 (set) 2>&1 |
2572 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2573 *${as_nl}ac_space=\ *)
2574 sed -n \
2575 "s/'\''/'\''\\\\'\'''\''/g;
2576 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2577 ;; #(
2579 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2581 esac |
2582 sort
2584 echo
2586 $as_echo "## ----------------- ##
2587 ## Output variables. ##
2588 ## ----------------- ##"
2589 echo
2590 for ac_var in $ac_subst_vars
2592 eval ac_val=\$$ac_var
2593 case $ac_val in
2594 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2595 esac
2596 $as_echo "$ac_var='\''$ac_val'\''"
2597 done | sort
2598 echo
2600 if test -n "$ac_subst_files"; then
2601 $as_echo "## ------------------- ##
2602 ## File substitutions. ##
2603 ## ------------------- ##"
2604 echo
2605 for ac_var in $ac_subst_files
2607 eval ac_val=\$$ac_var
2608 case $ac_val in
2609 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2610 esac
2611 $as_echo "$ac_var='\''$ac_val'\''"
2612 done | sort
2613 echo
2616 if test -s confdefs.h; then
2617 $as_echo "## ----------- ##
2618 ## confdefs.h. ##
2619 ## ----------- ##"
2620 echo
2621 cat confdefs.h
2622 echo
2624 test "$ac_signal" != 0 &&
2625 $as_echo "$as_me: caught signal $ac_signal"
2626 $as_echo "$as_me: exit $exit_status"
2627 } >&5
2628 rm -f core *.core core.conftest.* &&
2629 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2630 exit $exit_status
2632 for ac_signal in 1 2 13 15; do
2633 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2634 done
2635 ac_signal=0
2637 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2638 rm -f -r conftest* confdefs.h
2640 $as_echo "/* confdefs.h */" > confdefs.h
2642 # Predefined preprocessor variables.
2644 cat >>confdefs.h <<_ACEOF
2645 #define PACKAGE_NAME "$PACKAGE_NAME"
2646 _ACEOF
2648 cat >>confdefs.h <<_ACEOF
2649 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2650 _ACEOF
2652 cat >>confdefs.h <<_ACEOF
2653 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2654 _ACEOF
2656 cat >>confdefs.h <<_ACEOF
2657 #define PACKAGE_STRING "$PACKAGE_STRING"
2658 _ACEOF
2660 cat >>confdefs.h <<_ACEOF
2661 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2662 _ACEOF
2664 cat >>confdefs.h <<_ACEOF
2665 #define PACKAGE_URL "$PACKAGE_URL"
2666 _ACEOF
2669 # Let the site file select an alternate cache file if it wants to.
2670 # Prefer an explicitly selected file to automatically selected ones.
2671 ac_site_file1=NONE
2672 ac_site_file2=NONE
2673 if test -n "$CONFIG_SITE"; then
2674 # We do not want a PATH search for config.site.
2675 case $CONFIG_SITE in #((
2676 -*) ac_site_file1=./$CONFIG_SITE;;
2677 */*) ac_site_file1=$CONFIG_SITE;;
2678 *) ac_site_file1=./$CONFIG_SITE;;
2679 esac
2680 elif test "x$prefix" != xNONE; then
2681 ac_site_file1=$prefix/share/config.site
2682 ac_site_file2=$prefix/etc/config.site
2683 else
2684 ac_site_file1=$ac_default_prefix/share/config.site
2685 ac_site_file2=$ac_default_prefix/etc/config.site
2687 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2689 test "x$ac_site_file" = xNONE && continue
2690 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2692 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2693 sed 's/^/| /' "$ac_site_file" >&5
2694 . "$ac_site_file" \
2695 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2696 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2697 as_fn_error $? "failed to load site script $ac_site_file
2698 See \`config.log' for more details" "$LINENO" 5; }
2700 done
2702 if test -r "$cache_file"; then
2703 # Some versions of bash will fail to source /dev/null (special files
2704 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2705 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2707 $as_echo "$as_me: loading cache $cache_file" >&6;}
2708 case $cache_file in
2709 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2710 *) . "./$cache_file";;
2711 esac
2713 else
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2715 $as_echo "$as_me: creating cache $cache_file" >&6;}
2716 >$cache_file
2719 gt_needs="$gt_needs "
2720 # Check that the precious variables saved in the cache have kept the same
2721 # value.
2722 ac_cache_corrupted=false
2723 for ac_var in $ac_precious_vars; do
2724 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2725 eval ac_new_set=\$ac_env_${ac_var}_set
2726 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2727 eval ac_new_val=\$ac_env_${ac_var}_value
2728 case $ac_old_set,$ac_new_set in
2729 set,)
2730 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2731 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2732 ac_cache_corrupted=: ;;
2733 ,set)
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2735 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2736 ac_cache_corrupted=: ;;
2737 ,);;
2739 if test "x$ac_old_val" != "x$ac_new_val"; then
2740 # differences in whitespace do not lead to failure.
2741 ac_old_val_w=`echo x $ac_old_val`
2742 ac_new_val_w=`echo x $ac_new_val`
2743 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2745 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2746 ac_cache_corrupted=:
2747 else
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2749 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2750 eval $ac_var=\$ac_old_val
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2753 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2755 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2756 fi;;
2757 esac
2758 # Pass precious variables to config.status.
2759 if test "$ac_new_set" = set; then
2760 case $ac_new_val in
2761 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2762 *) ac_arg=$ac_var=$ac_new_val ;;
2763 esac
2764 case " $ac_configure_args " in
2765 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2766 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2767 esac
2769 done
2770 if $ac_cache_corrupted; then
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2772 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2774 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2775 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2777 ## -------------------- ##
2778 ## Main body of script. ##
2779 ## -------------------- ##
2781 ac_ext=c
2782 ac_cpp='$CPP $CPPFLAGS'
2783 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2784 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2785 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2790 ac_config_headers="$ac_config_headers include/config.h"
2793 am__api_version='1.13'
2795 ac_aux_dir=
2796 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2797 if test -f "$ac_dir/install-sh"; then
2798 ac_aux_dir=$ac_dir
2799 ac_install_sh="$ac_aux_dir/install-sh -c"
2800 break
2801 elif test -f "$ac_dir/install.sh"; then
2802 ac_aux_dir=$ac_dir
2803 ac_install_sh="$ac_aux_dir/install.sh -c"
2804 break
2805 elif test -f "$ac_dir/shtool"; then
2806 ac_aux_dir=$ac_dir
2807 ac_install_sh="$ac_aux_dir/shtool install -c"
2808 break
2810 done
2811 if test -z "$ac_aux_dir"; then
2812 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2815 # These three variables are undocumented and unsupported,
2816 # and are intended to be withdrawn in a future Autoconf release.
2817 # They can cause serious problems if a builder's source tree is in a directory
2818 # whose full name contains unusual characters.
2819 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2820 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2821 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2824 # Find a good install program. We prefer a C program (faster),
2825 # so one script is as good as another. But avoid the broken or
2826 # incompatible versions:
2827 # SysV /etc/install, /usr/sbin/install
2828 # SunOS /usr/etc/install
2829 # IRIX /sbin/install
2830 # AIX /bin/install
2831 # AmigaOS /C/install, which installs bootblocks on floppy discs
2832 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2833 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2834 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2835 # OS/2's system install, which has a completely different semantic
2836 # ./install, which can be erroneously created by make from ./install.sh.
2837 # Reject install programs that cannot install multiple files.
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2839 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2840 if test -z "$INSTALL"; then
2841 if ${ac_cv_path_install+:} false; then :
2842 $as_echo_n "(cached) " >&6
2843 else
2844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2845 for as_dir in $PATH
2847 IFS=$as_save_IFS
2848 test -z "$as_dir" && as_dir=.
2849 # Account for people who put trailing slashes in PATH elements.
2850 case $as_dir/ in #((
2851 ./ | .// | /[cC]/* | \
2852 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2853 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2854 /usr/ucb/* ) ;;
2856 # OSF1 and SCO ODT 3.0 have their own names for install.
2857 # Don't use installbsd from OSF since it installs stuff as root
2858 # by default.
2859 for ac_prog in ginstall scoinst install; do
2860 for ac_exec_ext in '' $ac_executable_extensions; do
2861 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2862 if test $ac_prog = install &&
2863 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2864 # AIX install. It has an incompatible calling convention.
2866 elif test $ac_prog = install &&
2867 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2868 # program-specific install script used by HP pwplus--don't use.
2870 else
2871 rm -rf conftest.one conftest.two conftest.dir
2872 echo one > conftest.one
2873 echo two > conftest.two
2874 mkdir conftest.dir
2875 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2876 test -s conftest.one && test -s conftest.two &&
2877 test -s conftest.dir/conftest.one &&
2878 test -s conftest.dir/conftest.two
2879 then
2880 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2881 break 3
2885 done
2886 done
2888 esac
2890 done
2891 IFS=$as_save_IFS
2893 rm -rf conftest.one conftest.two conftest.dir
2896 if test "${ac_cv_path_install+set}" = set; then
2897 INSTALL=$ac_cv_path_install
2898 else
2899 # As a last resort, use the slow shell script. Don't cache a
2900 # value for INSTALL within a source directory, because that will
2901 # break other packages using the cache if that directory is
2902 # removed, or if the value is a relative name.
2903 INSTALL=$ac_install_sh
2906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2907 $as_echo "$INSTALL" >&6; }
2909 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2910 # It thinks the first close brace ends the variable substitution.
2911 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2913 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2915 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2918 $as_echo_n "checking whether build environment is sane... " >&6; }
2919 # Reject unsafe characters in $srcdir or the absolute working directory
2920 # name. Accept space and tab only in the latter.
2921 am_lf='
2923 case `pwd` in
2924 *[\\\"\#\$\&\'\`$am_lf]*)
2925 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2926 esac
2927 case $srcdir in
2928 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2929 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2930 esac
2932 # Do 'set' in a subshell so we don't clobber the current shell's
2933 # arguments. Must try -L first in case configure is actually a
2934 # symlink; some systems play weird games with the mod time of symlinks
2935 # (eg FreeBSD returns the mod time of the symlink's containing
2936 # directory).
2937 if (
2938 am_has_slept=no
2939 for am_try in 1 2; do
2940 echo "timestamp, slept: $am_has_slept" > conftest.file
2941 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2942 if test "$*" = "X"; then
2943 # -L didn't work.
2944 set X `ls -t "$srcdir/configure" conftest.file`
2946 if test "$*" != "X $srcdir/configure conftest.file" \
2947 && test "$*" != "X conftest.file $srcdir/configure"; then
2949 # If neither matched, then we have a broken ls. This can happen
2950 # if, for instance, CONFIG_SHELL is bash and it inherits a
2951 # broken ls alias from the environment. This has actually
2952 # happened. Such a system could not be considered "sane".
2953 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2954 alias in your environment" "$LINENO" 5
2956 if test "$2" = conftest.file || test $am_try -eq 2; then
2957 break
2959 # Just in case.
2960 sleep 1
2961 am_has_slept=yes
2962 done
2963 test "$2" = conftest.file
2965 then
2966 # Ok.
2968 else
2969 as_fn_error $? "newly created file is older than distributed files!
2970 Check your system clock" "$LINENO" 5
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2973 $as_echo "yes" >&6; }
2974 # If we didn't sleep, we still need to ensure time stamps of config.status and
2975 # generated files are strictly newer.
2976 am_sleep_pid=
2977 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2978 ( sleep 1 ) &
2979 am_sleep_pid=$!
2982 rm -f conftest.file
2984 test "$program_prefix" != NONE &&
2985 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2986 # Use a double $ so make ignores it.
2987 test "$program_suffix" != NONE &&
2988 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2989 # Double any \ or $.
2990 # By default was `s,x,x', remove it if useless.
2991 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2992 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2994 # expand $ac_aux_dir to an absolute path
2995 am_aux_dir=`cd $ac_aux_dir && pwd`
2997 if test x"${MISSING+set}" != xset; then
2998 case $am_aux_dir in
2999 *\ * | *\ *)
3000 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3002 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3003 esac
3005 # Use eval to expand $SHELL
3006 if eval "$MISSING --is-lightweight"; then
3007 am_missing_run="$MISSING "
3008 else
3009 am_missing_run=
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3011 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3014 if test x"${install_sh}" != xset; then
3015 case $am_aux_dir in
3016 *\ * | *\ *)
3017 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3019 install_sh="\${SHELL} $am_aux_dir/install-sh"
3020 esac
3023 # Installed binaries are usually stripped using 'strip' when the user
3024 # run "make install-strip". However 'strip' might not be the right
3025 # tool to use in cross-compilation environments, therefore Automake
3026 # will honor the 'STRIP' environment variable to overrule this program.
3027 if test "$cross_compiling" != no; then
3028 if test -n "$ac_tool_prefix"; then
3029 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3030 set dummy ${ac_tool_prefix}strip; ac_word=$2
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3032 $as_echo_n "checking for $ac_word... " >&6; }
3033 if ${ac_cv_prog_STRIP+:} false; then :
3034 $as_echo_n "(cached) " >&6
3035 else
3036 if test -n "$STRIP"; then
3037 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3038 else
3039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3040 for as_dir in $PATH
3042 IFS=$as_save_IFS
3043 test -z "$as_dir" && as_dir=.
3044 for ac_exec_ext in '' $ac_executable_extensions; do
3045 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3046 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3048 break 2
3050 done
3051 done
3052 IFS=$as_save_IFS
3056 STRIP=$ac_cv_prog_STRIP
3057 if test -n "$STRIP"; then
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3059 $as_echo "$STRIP" >&6; }
3060 else
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3062 $as_echo "no" >&6; }
3067 if test -z "$ac_cv_prog_STRIP"; then
3068 ac_ct_STRIP=$STRIP
3069 # Extract the first word of "strip", so it can be a program name with args.
3070 set dummy strip; ac_word=$2
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3072 $as_echo_n "checking for $ac_word... " >&6; }
3073 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3074 $as_echo_n "(cached) " >&6
3075 else
3076 if test -n "$ac_ct_STRIP"; then
3077 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3078 else
3079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3080 for as_dir in $PATH
3082 IFS=$as_save_IFS
3083 test -z "$as_dir" && as_dir=.
3084 for ac_exec_ext in '' $ac_executable_extensions; do
3085 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3086 ac_cv_prog_ac_ct_STRIP="strip"
3087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3088 break 2
3090 done
3091 done
3092 IFS=$as_save_IFS
3096 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3097 if test -n "$ac_ct_STRIP"; then
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3099 $as_echo "$ac_ct_STRIP" >&6; }
3100 else
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3102 $as_echo "no" >&6; }
3105 if test "x$ac_ct_STRIP" = x; then
3106 STRIP=":"
3107 else
3108 case $cross_compiling:$ac_tool_warned in
3109 yes:)
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3111 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3112 ac_tool_warned=yes ;;
3113 esac
3114 STRIP=$ac_ct_STRIP
3116 else
3117 STRIP="$ac_cv_prog_STRIP"
3121 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3124 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3125 if test -z "$MKDIR_P"; then
3126 if ${ac_cv_path_mkdir+:} false; then :
3127 $as_echo_n "(cached) " >&6
3128 else
3129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3130 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3132 IFS=$as_save_IFS
3133 test -z "$as_dir" && as_dir=.
3134 for ac_prog in mkdir gmkdir; do
3135 for ac_exec_ext in '' $ac_executable_extensions; do
3136 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3137 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3138 'mkdir (GNU coreutils) '* | \
3139 'mkdir (coreutils) '* | \
3140 'mkdir (fileutils) '4.1*)
3141 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3142 break 3;;
3143 esac
3144 done
3145 done
3146 done
3147 IFS=$as_save_IFS
3151 test -d ./--version && rmdir ./--version
3152 if test "${ac_cv_path_mkdir+set}" = set; then
3153 MKDIR_P="$ac_cv_path_mkdir -p"
3154 else
3155 # As a last resort, use the slow shell script. Don't cache a
3156 # value for MKDIR_P within a source directory, because that will
3157 # break other packages using the cache if that directory is
3158 # removed, or if the value is a relative name.
3159 MKDIR_P="$ac_install_sh -d"
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3163 $as_echo "$MKDIR_P" >&6; }
3165 for ac_prog in gawk mawk nawk awk
3167 # Extract the first word of "$ac_prog", so it can be a program name with args.
3168 set dummy $ac_prog; ac_word=$2
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3170 $as_echo_n "checking for $ac_word... " >&6; }
3171 if ${ac_cv_prog_AWK+:} false; then :
3172 $as_echo_n "(cached) " >&6
3173 else
3174 if test -n "$AWK"; then
3175 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3176 else
3177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3178 for as_dir in $PATH
3180 IFS=$as_save_IFS
3181 test -z "$as_dir" && as_dir=.
3182 for ac_exec_ext in '' $ac_executable_extensions; do
3183 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3184 ac_cv_prog_AWK="$ac_prog"
3185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3186 break 2
3188 done
3189 done
3190 IFS=$as_save_IFS
3194 AWK=$ac_cv_prog_AWK
3195 if test -n "$AWK"; then
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3197 $as_echo "$AWK" >&6; }
3198 else
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3200 $as_echo "no" >&6; }
3204 test -n "$AWK" && break
3205 done
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3208 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3209 set x ${MAKE-make}
3210 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3211 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3212 $as_echo_n "(cached) " >&6
3213 else
3214 cat >conftest.make <<\_ACEOF
3215 SHELL = /bin/sh
3216 all:
3217 @echo '@@@%%%=$(MAKE)=@@@%%%'
3218 _ACEOF
3219 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3220 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3221 *@@@%%%=?*=@@@%%%*)
3222 eval ac_cv_prog_make_${ac_make}_set=yes;;
3224 eval ac_cv_prog_make_${ac_make}_set=no;;
3225 esac
3226 rm -f conftest.make
3228 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3230 $as_echo "yes" >&6; }
3231 SET_MAKE=
3232 else
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3234 $as_echo "no" >&6; }
3235 SET_MAKE="MAKE=${MAKE-make}"
3238 rm -rf .tst 2>/dev/null
3239 mkdir .tst 2>/dev/null
3240 if test -d .tst; then
3241 am__leading_dot=.
3242 else
3243 am__leading_dot=_
3245 rmdir .tst 2>/dev/null
3247 # Check whether --enable-silent-rules was given.
3248 if test "${enable_silent_rules+set}" = set; then :
3249 enableval=$enable_silent_rules;
3252 case $enable_silent_rules in # (((
3253 yes) AM_DEFAULT_VERBOSITY=0;;
3254 no) AM_DEFAULT_VERBOSITY=1;;
3255 *) AM_DEFAULT_VERBOSITY=1;;
3256 esac
3257 am_make=${MAKE-make}
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3259 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3260 if ${am_cv_make_support_nested_variables+:} false; then :
3261 $as_echo_n "(cached) " >&6
3262 else
3263 if $as_echo 'TRUE=$(BAR$(V))
3264 BAR0=false
3265 BAR1=true
3267 am__doit:
3268 @$(TRUE)
3269 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3270 am_cv_make_support_nested_variables=yes
3271 else
3272 am_cv_make_support_nested_variables=no
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3276 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3277 if test $am_cv_make_support_nested_variables = yes; then
3278 AM_V='$(V)'
3279 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3280 else
3281 AM_V=$AM_DEFAULT_VERBOSITY
3282 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3284 AM_BACKSLASH='\'
3286 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3287 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3288 # is not polluted with repeated "-I."
3289 am__isrc=' -I$(srcdir)'
3290 # test to see if srcdir already configured
3291 if test -f $srcdir/config.status; then
3292 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3296 # test whether we have cygpath
3297 if test -z "$CYGPATH_W"; then
3298 if (cygpath --version) >/dev/null 2>/dev/null; then
3299 CYGPATH_W='cygpath -w'
3300 else
3301 CYGPATH_W=echo
3306 # Define the identity of the package.
3307 PACKAGE='alpine'
3308 VERSION='2.19.9999'
3311 cat >>confdefs.h <<_ACEOF
3312 #define PACKAGE "$PACKAGE"
3313 _ACEOF
3316 cat >>confdefs.h <<_ACEOF
3317 #define VERSION "$VERSION"
3318 _ACEOF
3320 # Some tools Automake needs.
3322 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3325 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3328 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3331 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3334 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3336 # For better backward compatibility. To be removed once Automake 1.9.x
3337 # dies out for good. For more background, see:
3338 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3339 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3340 mkdir_p='$(MKDIR_P)'
3342 # We need awk for the "check" target. The system "awk" is bad on
3343 # some platforms.
3344 # Always define AMTAR for backward compatibility. Yes, it's still used
3345 # in the wild :-( We should find a proper way to deprecate it ...
3346 AMTAR='$${TAR-tar}'
3349 # We'll loop over all known methods to create a tar archive until one works.
3350 _am_tools='gnutar pax cpio none'
3352 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3362 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3363 # Check whether --enable-maintainer-mode was given.
3364 if test "${enable_maintainer_mode+set}" = set; then :
3365 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3366 else
3367 USE_MAINTAINER_MODE=no
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3371 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3372 if test $USE_MAINTAINER_MODE = yes; then
3373 MAINTAINER_MODE_TRUE=
3374 MAINTAINER_MODE_FALSE='#'
3375 else
3376 MAINTAINER_MODE_TRUE='#'
3377 MAINTAINER_MODE_FALSE=
3380 MAINT=$MAINTAINER_MODE_TRUE
3384 # Make sure we can run config.sub.
3385 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3386 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3389 $as_echo_n "checking build system type... " >&6; }
3390 if ${ac_cv_build+:} false; then :
3391 $as_echo_n "(cached) " >&6
3392 else
3393 ac_build_alias=$build_alias
3394 test "x$ac_build_alias" = x &&
3395 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3396 test "x$ac_build_alias" = x &&
3397 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3398 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3399 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3403 $as_echo "$ac_cv_build" >&6; }
3404 case $ac_cv_build in
3405 *-*-*) ;;
3406 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3407 esac
3408 build=$ac_cv_build
3409 ac_save_IFS=$IFS; IFS='-'
3410 set x $ac_cv_build
3411 shift
3412 build_cpu=$1
3413 build_vendor=$2
3414 shift; shift
3415 # Remember, the first character of IFS is used to create $*,
3416 # except with old shells:
3417 build_os=$*
3418 IFS=$ac_save_IFS
3419 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3423 $as_echo_n "checking host system type... " >&6; }
3424 if ${ac_cv_host+:} false; then :
3425 $as_echo_n "(cached) " >&6
3426 else
3427 if test "x$host_alias" = x; then
3428 ac_cv_host=$ac_cv_build
3429 else
3430 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3431 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3436 $as_echo "$ac_cv_host" >&6; }
3437 case $ac_cv_host in
3438 *-*-*) ;;
3439 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3440 esac
3441 host=$ac_cv_host
3442 ac_save_IFS=$IFS; IFS='-'
3443 set x $ac_cv_host
3444 shift
3445 host_cpu=$1
3446 host_vendor=$2
3447 shift; shift
3448 # Remember, the first character of IFS is used to create $*,
3449 # except with old shells:
3450 host_os=$*
3451 IFS=$ac_save_IFS
3452 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3456 ac_ext=c
3457 ac_cpp='$CPP $CPPFLAGS'
3458 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3459 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3460 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring for $PACKAGE_STRING ($host))" >&5
3464 $as_echo "$as_me: Configuring for $PACKAGE_STRING ($host))" >&6;}
3466 # start out with intent to build Web Alpine
3467 WEB_BUILD=web/src/alpined.d
3470 ac_ext=c
3471 ac_cpp='$CPP $CPPFLAGS'
3472 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3473 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3474 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3475 if test -n "$ac_tool_prefix"; then
3476 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3477 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3479 $as_echo_n "checking for $ac_word... " >&6; }
3480 if ${ac_cv_prog_CC+:} false; then :
3481 $as_echo_n "(cached) " >&6
3482 else
3483 if test -n "$CC"; then
3484 ac_cv_prog_CC="$CC" # Let the user override the test.
3485 else
3486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3487 for as_dir in $PATH
3489 IFS=$as_save_IFS
3490 test -z "$as_dir" && as_dir=.
3491 for ac_exec_ext in '' $ac_executable_extensions; do
3492 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3493 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3495 break 2
3497 done
3498 done
3499 IFS=$as_save_IFS
3503 CC=$ac_cv_prog_CC
3504 if test -n "$CC"; then
3505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3506 $as_echo "$CC" >&6; }
3507 else
3508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3509 $as_echo "no" >&6; }
3514 if test -z "$ac_cv_prog_CC"; then
3515 ac_ct_CC=$CC
3516 # Extract the first word of "gcc", so it can be a program name with args.
3517 set dummy gcc; ac_word=$2
3518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3519 $as_echo_n "checking for $ac_word... " >&6; }
3520 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3521 $as_echo_n "(cached) " >&6
3522 else
3523 if test -n "$ac_ct_CC"; then
3524 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3525 else
3526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3527 for as_dir in $PATH
3529 IFS=$as_save_IFS
3530 test -z "$as_dir" && as_dir=.
3531 for ac_exec_ext in '' $ac_executable_extensions; do
3532 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3533 ac_cv_prog_ac_ct_CC="gcc"
3534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3535 break 2
3537 done
3538 done
3539 IFS=$as_save_IFS
3543 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3544 if test -n "$ac_ct_CC"; then
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3546 $as_echo "$ac_ct_CC" >&6; }
3547 else
3548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3549 $as_echo "no" >&6; }
3552 if test "x$ac_ct_CC" = x; then
3553 CC=""
3554 else
3555 case $cross_compiling:$ac_tool_warned in
3556 yes:)
3557 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3558 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3559 ac_tool_warned=yes ;;
3560 esac
3561 CC=$ac_ct_CC
3563 else
3564 CC="$ac_cv_prog_CC"
3567 if test -z "$CC"; then
3568 if test -n "$ac_tool_prefix"; then
3569 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3570 set dummy ${ac_tool_prefix}cc; ac_word=$2
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3572 $as_echo_n "checking for $ac_word... " >&6; }
3573 if ${ac_cv_prog_CC+:} false; then :
3574 $as_echo_n "(cached) " >&6
3575 else
3576 if test -n "$CC"; then
3577 ac_cv_prog_CC="$CC" # Let the user override the test.
3578 else
3579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3580 for as_dir in $PATH
3582 IFS=$as_save_IFS
3583 test -z "$as_dir" && as_dir=.
3584 for ac_exec_ext in '' $ac_executable_extensions; do
3585 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3586 ac_cv_prog_CC="${ac_tool_prefix}cc"
3587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3588 break 2
3590 done
3591 done
3592 IFS=$as_save_IFS
3596 CC=$ac_cv_prog_CC
3597 if test -n "$CC"; then
3598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3599 $as_echo "$CC" >&6; }
3600 else
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3602 $as_echo "no" >&6; }
3608 if test -z "$CC"; then
3609 # Extract the first word of "cc", so it can be a program name with args.
3610 set dummy cc; ac_word=$2
3611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3612 $as_echo_n "checking for $ac_word... " >&6; }
3613 if ${ac_cv_prog_CC+:} false; then :
3614 $as_echo_n "(cached) " >&6
3615 else
3616 if test -n "$CC"; then
3617 ac_cv_prog_CC="$CC" # Let the user override the test.
3618 else
3619 ac_prog_rejected=no
3620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3621 for as_dir in $PATH
3623 IFS=$as_save_IFS
3624 test -z "$as_dir" && as_dir=.
3625 for ac_exec_ext in '' $ac_executable_extensions; do
3626 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3627 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3628 ac_prog_rejected=yes
3629 continue
3631 ac_cv_prog_CC="cc"
3632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3633 break 2
3635 done
3636 done
3637 IFS=$as_save_IFS
3639 if test $ac_prog_rejected = yes; then
3640 # We found a bogon in the path, so make sure we never use it.
3641 set dummy $ac_cv_prog_CC
3642 shift
3643 if test $# != 0; then
3644 # We chose a different compiler from the bogus one.
3645 # However, it has the same basename, so the bogon will be chosen
3646 # first if we set CC to just the basename; use the full file name.
3647 shift
3648 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3653 CC=$ac_cv_prog_CC
3654 if test -n "$CC"; then
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3656 $as_echo "$CC" >&6; }
3657 else
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3659 $as_echo "no" >&6; }
3664 if test -z "$CC"; then
3665 if test -n "$ac_tool_prefix"; then
3666 for ac_prog in cl.exe
3668 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3669 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3671 $as_echo_n "checking for $ac_word... " >&6; }
3672 if ${ac_cv_prog_CC+:} false; then :
3673 $as_echo_n "(cached) " >&6
3674 else
3675 if test -n "$CC"; then
3676 ac_cv_prog_CC="$CC" # Let the user override the test.
3677 else
3678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3679 for as_dir in $PATH
3681 IFS=$as_save_IFS
3682 test -z "$as_dir" && as_dir=.
3683 for ac_exec_ext in '' $ac_executable_extensions; do
3684 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3685 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3687 break 2
3689 done
3690 done
3691 IFS=$as_save_IFS
3695 CC=$ac_cv_prog_CC
3696 if test -n "$CC"; then
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3698 $as_echo "$CC" >&6; }
3699 else
3700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3701 $as_echo "no" >&6; }
3705 test -n "$CC" && break
3706 done
3708 if test -z "$CC"; then
3709 ac_ct_CC=$CC
3710 for ac_prog in cl.exe
3712 # Extract the first word of "$ac_prog", so it can be a program name with args.
3713 set dummy $ac_prog; ac_word=$2
3714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3715 $as_echo_n "checking for $ac_word... " >&6; }
3716 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3717 $as_echo_n "(cached) " >&6
3718 else
3719 if test -n "$ac_ct_CC"; then
3720 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3721 else
3722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3723 for as_dir in $PATH
3725 IFS=$as_save_IFS
3726 test -z "$as_dir" && as_dir=.
3727 for ac_exec_ext in '' $ac_executable_extensions; do
3728 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3729 ac_cv_prog_ac_ct_CC="$ac_prog"
3730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3731 break 2
3733 done
3734 done
3735 IFS=$as_save_IFS
3739 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3740 if test -n "$ac_ct_CC"; then
3741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3742 $as_echo "$ac_ct_CC" >&6; }
3743 else
3744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3745 $as_echo "no" >&6; }
3749 test -n "$ac_ct_CC" && break
3750 done
3752 if test "x$ac_ct_CC" = x; then
3753 CC=""
3754 else
3755 case $cross_compiling:$ac_tool_warned in
3756 yes:)
3757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3758 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3759 ac_tool_warned=yes ;;
3760 esac
3761 CC=$ac_ct_CC
3768 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3769 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3770 as_fn_error $? "no acceptable C compiler found in \$PATH
3771 See \`config.log' for more details" "$LINENO" 5; }
3773 # Provide some information about the compiler.
3774 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3775 set X $ac_compile
3776 ac_compiler=$2
3777 for ac_option in --version -v -V -qversion; do
3778 { { ac_try="$ac_compiler $ac_option >&5"
3779 case "(($ac_try" in
3780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3781 *) ac_try_echo=$ac_try;;
3782 esac
3783 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3784 $as_echo "$ac_try_echo"; } >&5
3785 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3786 ac_status=$?
3787 if test -s conftest.err; then
3788 sed '10a\
3789 ... rest of stderr output deleted ...
3790 10q' conftest.err >conftest.er1
3791 cat conftest.er1 >&5
3793 rm -f conftest.er1 conftest.err
3794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3795 test $ac_status = 0; }
3796 done
3798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3799 /* end confdefs.h. */
3802 main ()
3806 return 0;
3808 _ACEOF
3809 ac_clean_files_save=$ac_clean_files
3810 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3811 # Try to create an executable without -o first, disregard a.out.
3812 # It will help us diagnose broken compilers, and finding out an intuition
3813 # of exeext.
3814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3815 $as_echo_n "checking whether the C compiler works... " >&6; }
3816 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3818 # The possible output files:
3819 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3821 ac_rmfiles=
3822 for ac_file in $ac_files
3824 case $ac_file in
3825 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3826 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3827 esac
3828 done
3829 rm -f $ac_rmfiles
3831 if { { ac_try="$ac_link_default"
3832 case "(($ac_try" in
3833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3834 *) ac_try_echo=$ac_try;;
3835 esac
3836 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3837 $as_echo "$ac_try_echo"; } >&5
3838 (eval "$ac_link_default") 2>&5
3839 ac_status=$?
3840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3841 test $ac_status = 0; }; then :
3842 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3843 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3844 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3845 # so that the user can short-circuit this test for compilers unknown to
3846 # Autoconf.
3847 for ac_file in $ac_files ''
3849 test -f "$ac_file" || continue
3850 case $ac_file in
3851 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3853 [ab].out )
3854 # We found the default executable, but exeext='' is most
3855 # certainly right.
3856 break;;
3857 *.* )
3858 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3859 then :; else
3860 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3862 # We set ac_cv_exeext here because the later test for it is not
3863 # safe: cross compilers may not add the suffix if given an `-o'
3864 # argument, so we may need to know it at that point already.
3865 # Even if this section looks crufty: it has the advantage of
3866 # actually working.
3867 break;;
3869 break;;
3870 esac
3871 done
3872 test "$ac_cv_exeext" = no && ac_cv_exeext=
3874 else
3875 ac_file=''
3877 if test -z "$ac_file"; then :
3878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3879 $as_echo "no" >&6; }
3880 $as_echo "$as_me: failed program was:" >&5
3881 sed 's/^/| /' conftest.$ac_ext >&5
3883 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3884 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3885 as_fn_error 77 "C compiler cannot create executables
3886 See \`config.log' for more details" "$LINENO" 5; }
3887 else
3888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3889 $as_echo "yes" >&6; }
3891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3892 $as_echo_n "checking for C compiler default output file name... " >&6; }
3893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3894 $as_echo "$ac_file" >&6; }
3895 ac_exeext=$ac_cv_exeext
3897 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3898 ac_clean_files=$ac_clean_files_save
3899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3900 $as_echo_n "checking for suffix of executables... " >&6; }
3901 if { { ac_try="$ac_link"
3902 case "(($ac_try" in
3903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3904 *) ac_try_echo=$ac_try;;
3905 esac
3906 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3907 $as_echo "$ac_try_echo"; } >&5
3908 (eval "$ac_link") 2>&5
3909 ac_status=$?
3910 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3911 test $ac_status = 0; }; then :
3912 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3913 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3914 # work properly (i.e., refer to `conftest.exe'), while it won't with
3915 # `rm'.
3916 for ac_file in conftest.exe conftest conftest.*; do
3917 test -f "$ac_file" || continue
3918 case $ac_file in
3919 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3920 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3921 break;;
3922 * ) break;;
3923 esac
3924 done
3925 else
3926 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3927 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3928 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3929 See \`config.log' for more details" "$LINENO" 5; }
3931 rm -f conftest conftest$ac_cv_exeext
3932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3933 $as_echo "$ac_cv_exeext" >&6; }
3935 rm -f conftest.$ac_ext
3936 EXEEXT=$ac_cv_exeext
3937 ac_exeext=$EXEEXT
3938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3939 /* end confdefs.h. */
3940 #include <stdio.h>
3942 main ()
3944 FILE *f = fopen ("conftest.out", "w");
3945 return ferror (f) || fclose (f) != 0;
3948 return 0;
3950 _ACEOF
3951 ac_clean_files="$ac_clean_files conftest.out"
3952 # Check that the compiler produces executables we can run. If not, either
3953 # the compiler is broken, or we cross compile.
3954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3955 $as_echo_n "checking whether we are cross compiling... " >&6; }
3956 if test "$cross_compiling" != yes; then
3957 { { ac_try="$ac_link"
3958 case "(($ac_try" in
3959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3960 *) ac_try_echo=$ac_try;;
3961 esac
3962 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3963 $as_echo "$ac_try_echo"; } >&5
3964 (eval "$ac_link") 2>&5
3965 ac_status=$?
3966 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3967 test $ac_status = 0; }
3968 if { ac_try='./conftest$ac_cv_exeext'
3969 { { case "(($ac_try" in
3970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3971 *) ac_try_echo=$ac_try;;
3972 esac
3973 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3974 $as_echo "$ac_try_echo"; } >&5
3975 (eval "$ac_try") 2>&5
3976 ac_status=$?
3977 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3978 test $ac_status = 0; }; }; then
3979 cross_compiling=no
3980 else
3981 if test "$cross_compiling" = maybe; then
3982 cross_compiling=yes
3983 else
3984 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3985 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3986 as_fn_error $? "cannot run C compiled programs.
3987 If you meant to cross compile, use \`--host'.
3988 See \`config.log' for more details" "$LINENO" 5; }
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3993 $as_echo "$cross_compiling" >&6; }
3995 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3996 ac_clean_files=$ac_clean_files_save
3997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3998 $as_echo_n "checking for suffix of object files... " >&6; }
3999 if ${ac_cv_objext+:} false; then :
4000 $as_echo_n "(cached) " >&6
4001 else
4002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4003 /* end confdefs.h. */
4006 main ()
4010 return 0;
4012 _ACEOF
4013 rm -f conftest.o conftest.obj
4014 if { { ac_try="$ac_compile"
4015 case "(($ac_try" in
4016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4017 *) ac_try_echo=$ac_try;;
4018 esac
4019 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4020 $as_echo "$ac_try_echo"; } >&5
4021 (eval "$ac_compile") 2>&5
4022 ac_status=$?
4023 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4024 test $ac_status = 0; }; then :
4025 for ac_file in conftest.o conftest.obj conftest.*; do
4026 test -f "$ac_file" || continue;
4027 case $ac_file in
4028 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4029 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4030 break;;
4031 esac
4032 done
4033 else
4034 $as_echo "$as_me: failed program was:" >&5
4035 sed 's/^/| /' conftest.$ac_ext >&5
4037 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4038 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4039 as_fn_error $? "cannot compute suffix of object files: cannot compile
4040 See \`config.log' for more details" "$LINENO" 5; }
4042 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4045 $as_echo "$ac_cv_objext" >&6; }
4046 OBJEXT=$ac_cv_objext
4047 ac_objext=$OBJEXT
4048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4049 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4050 if ${ac_cv_c_compiler_gnu+:} false; then :
4051 $as_echo_n "(cached) " >&6
4052 else
4053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4054 /* end confdefs.h. */
4057 main ()
4059 #ifndef __GNUC__
4060 choke me
4061 #endif
4064 return 0;
4066 _ACEOF
4067 if ac_fn_c_try_compile "$LINENO"; then :
4068 ac_compiler_gnu=yes
4069 else
4070 ac_compiler_gnu=no
4072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4073 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4077 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4078 if test $ac_compiler_gnu = yes; then
4079 GCC=yes
4080 else
4081 GCC=
4083 ac_test_CFLAGS=${CFLAGS+set}
4084 ac_save_CFLAGS=$CFLAGS
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4086 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4087 if ${ac_cv_prog_cc_g+:} false; then :
4088 $as_echo_n "(cached) " >&6
4089 else
4090 ac_save_c_werror_flag=$ac_c_werror_flag
4091 ac_c_werror_flag=yes
4092 ac_cv_prog_cc_g=no
4093 CFLAGS="-g"
4094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4095 /* end confdefs.h. */
4098 main ()
4102 return 0;
4104 _ACEOF
4105 if ac_fn_c_try_compile "$LINENO"; then :
4106 ac_cv_prog_cc_g=yes
4107 else
4108 CFLAGS=""
4109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4110 /* end confdefs.h. */
4113 main ()
4117 return 0;
4119 _ACEOF
4120 if ac_fn_c_try_compile "$LINENO"; then :
4122 else
4123 ac_c_werror_flag=$ac_save_c_werror_flag
4124 CFLAGS="-g"
4125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4126 /* end confdefs.h. */
4129 main ()
4133 return 0;
4135 _ACEOF
4136 if ac_fn_c_try_compile "$LINENO"; then :
4137 ac_cv_prog_cc_g=yes
4139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4144 ac_c_werror_flag=$ac_save_c_werror_flag
4146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4147 $as_echo "$ac_cv_prog_cc_g" >&6; }
4148 if test "$ac_test_CFLAGS" = set; then
4149 CFLAGS=$ac_save_CFLAGS
4150 elif test $ac_cv_prog_cc_g = yes; then
4151 if test "$GCC" = yes; then
4152 CFLAGS="-g -O2"
4153 else
4154 CFLAGS="-g"
4156 else
4157 if test "$GCC" = yes; then
4158 CFLAGS="-O2"
4159 else
4160 CFLAGS=
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4164 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4165 if ${ac_cv_prog_cc_c89+:} false; then :
4166 $as_echo_n "(cached) " >&6
4167 else
4168 ac_cv_prog_cc_c89=no
4169 ac_save_CC=$CC
4170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4171 /* end confdefs.h. */
4172 #include <stdarg.h>
4173 #include <stdio.h>
4174 struct stat;
4175 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4176 struct buf { int x; };
4177 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4178 static char *e (p, i)
4179 char **p;
4180 int i;
4182 return p[i];
4184 static char *f (char * (*g) (char **, int), char **p, ...)
4186 char *s;
4187 va_list v;
4188 va_start (v,p);
4189 s = g (p, va_arg (v,int));
4190 va_end (v);
4191 return s;
4194 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4195 function prototypes and stuff, but not '\xHH' hex character constants.
4196 These don't provoke an error unfortunately, instead are silently treated
4197 as 'x'. The following induces an error, until -std is added to get
4198 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4199 array size at least. It's necessary to write '\x00'==0 to get something
4200 that's true only with -std. */
4201 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4203 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4204 inside strings and character constants. */
4205 #define FOO(x) 'x'
4206 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4208 int test (int i, double x);
4209 struct s1 {int (*f) (int a);};
4210 struct s2 {int (*f) (double a);};
4211 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4212 int argc;
4213 char **argv;
4215 main ()
4217 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4219 return 0;
4221 _ACEOF
4222 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4223 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4225 CC="$ac_save_CC $ac_arg"
4226 if ac_fn_c_try_compile "$LINENO"; then :
4227 ac_cv_prog_cc_c89=$ac_arg
4229 rm -f core conftest.err conftest.$ac_objext
4230 test "x$ac_cv_prog_cc_c89" != "xno" && break
4231 done
4232 rm -f conftest.$ac_ext
4233 CC=$ac_save_CC
4236 # AC_CACHE_VAL
4237 case "x$ac_cv_prog_cc_c89" in
4239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4240 $as_echo "none needed" >&6; } ;;
4241 xno)
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4243 $as_echo "unsupported" >&6; } ;;
4245 CC="$CC $ac_cv_prog_cc_c89"
4246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4247 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4248 esac
4249 if test "x$ac_cv_prog_cc_c89" != xno; then :
4253 ac_ext=c
4254 ac_cpp='$CPP $CPPFLAGS'
4255 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4256 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4257 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4258 DEPDIR="${am__leading_dot}deps"
4260 ac_config_commands="$ac_config_commands depfiles"
4263 am_make=${MAKE-make}
4264 cat > confinc << 'END'
4265 am__doit:
4266 @echo this is the am__doit target
4267 .PHONY: am__doit
4269 # If we don't find an include directive, just comment out the code.
4270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4271 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4272 am__include="#"
4273 am__quote=
4274 _am_result=none
4275 # First try GNU make style include.
4276 echo "include confinc" > confmf
4277 # Ignore all kinds of additional output from 'make'.
4278 case `$am_make -s -f confmf 2> /dev/null` in #(
4279 *the\ am__doit\ target*)
4280 am__include=include
4281 am__quote=
4282 _am_result=GNU
4284 esac
4285 # Now try BSD make style include.
4286 if test "$am__include" = "#"; then
4287 echo '.include "confinc"' > confmf
4288 case `$am_make -s -f confmf 2> /dev/null` in #(
4289 *the\ am__doit\ target*)
4290 am__include=.include
4291 am__quote="\""
4292 _am_result=BSD
4294 esac
4298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4299 $as_echo "$_am_result" >&6; }
4300 rm -f confinc confmf
4302 # Check whether --enable-dependency-tracking was given.
4303 if test "${enable_dependency_tracking+set}" = set; then :
4304 enableval=$enable_dependency_tracking;
4307 if test "x$enable_dependency_tracking" != xno; then
4308 am_depcomp="$ac_aux_dir/depcomp"
4309 AMDEPBACKSLASH='\'
4310 am__nodep='_no'
4312 if test "x$enable_dependency_tracking" != xno; then
4313 AMDEP_TRUE=
4314 AMDEP_FALSE='#'
4315 else
4316 AMDEP_TRUE='#'
4317 AMDEP_FALSE=
4322 depcc="$CC" am_compiler_list=
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4325 $as_echo_n "checking dependency style of $depcc... " >&6; }
4326 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4327 $as_echo_n "(cached) " >&6
4328 else
4329 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4330 # We make a subdir and do the tests there. Otherwise we can end up
4331 # making bogus files that we don't know about and never remove. For
4332 # instance it was reported that on HP-UX the gcc test will end up
4333 # making a dummy file named 'D' -- because '-MD' means "put the output
4334 # in D".
4335 rm -rf conftest.dir
4336 mkdir conftest.dir
4337 # Copy depcomp to subdir because otherwise we won't find it if we're
4338 # using a relative directory.
4339 cp "$am_depcomp" conftest.dir
4340 cd conftest.dir
4341 # We will build objects and dependencies in a subdirectory because
4342 # it helps to detect inapplicable dependency modes. For instance
4343 # both Tru64's cc and ICC support -MD to output dependencies as a
4344 # side effect of compilation, but ICC will put the dependencies in
4345 # the current directory while Tru64 will put them in the object
4346 # directory.
4347 mkdir sub
4349 am_cv_CC_dependencies_compiler_type=none
4350 if test "$am_compiler_list" = ""; then
4351 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4353 am__universal=false
4354 case " $depcc " in #(
4355 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4356 esac
4358 for depmode in $am_compiler_list; do
4359 # Setup a source with many dependencies, because some compilers
4360 # like to wrap large dependency lists on column 80 (with \), and
4361 # we should not choose a depcomp mode which is confused by this.
4363 # We need to recreate these files for each test, as the compiler may
4364 # overwrite some of them when testing with obscure command lines.
4365 # This happens at least with the AIX C compiler.
4366 : > sub/conftest.c
4367 for i in 1 2 3 4 5 6; do
4368 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4369 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4370 # Solaris 10 /bin/sh.
4371 echo '/* dummy */' > sub/conftst$i.h
4372 done
4373 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4375 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4376 # mode. It turns out that the SunPro C++ compiler does not properly
4377 # handle '-M -o', and we need to detect this. Also, some Intel
4378 # versions had trouble with output in subdirs.
4379 am__obj=sub/conftest.${OBJEXT-o}
4380 am__minus_obj="-o $am__obj"
4381 case $depmode in
4382 gcc)
4383 # This depmode causes a compiler race in universal mode.
4384 test "$am__universal" = false || continue
4386 nosideeffect)
4387 # After this tag, mechanisms are not by side-effect, so they'll
4388 # only be used when explicitly requested.
4389 if test "x$enable_dependency_tracking" = xyes; then
4390 continue
4391 else
4392 break
4395 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4396 # This compiler won't grok '-c -o', but also, the minuso test has
4397 # not run yet. These depmodes are late enough in the game, and
4398 # so weak that their functioning should not be impacted.
4399 am__obj=conftest.${OBJEXT-o}
4400 am__minus_obj=
4402 none) break ;;
4403 esac
4404 if depmode=$depmode \
4405 source=sub/conftest.c object=$am__obj \
4406 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4407 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4408 >/dev/null 2>conftest.err &&
4409 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4410 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4411 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4412 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4413 # icc doesn't choke on unknown options, it will just issue warnings
4414 # or remarks (even with -Werror). So we grep stderr for any message
4415 # that says an option was ignored or not supported.
4416 # When given -MP, icc 7.0 and 7.1 complain thusly:
4417 # icc: Command line warning: ignoring option '-M'; no argument required
4418 # The diagnosis changed in icc 8.0:
4419 # icc: Command line remark: option '-MP' not supported
4420 if (grep 'ignoring option' conftest.err ||
4421 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4422 am_cv_CC_dependencies_compiler_type=$depmode
4423 break
4426 done
4428 cd ..
4429 rm -rf conftest.dir
4430 else
4431 am_cv_CC_dependencies_compiler_type=none
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4436 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4437 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4440 test "x$enable_dependency_tracking" != xno \
4441 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4442 am__fastdepCC_TRUE=
4443 am__fastdepCC_FALSE='#'
4444 else
4445 am__fastdepCC_TRUE='#'
4446 am__fastdepCC_FALSE=
4450 case $ac_cv_prog_cc_stdc in #(
4451 no) :
4452 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
4453 *) :
4454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4455 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4456 if ${ac_cv_prog_cc_c99+:} false; then :
4457 $as_echo_n "(cached) " >&6
4458 else
4459 ac_cv_prog_cc_c99=no
4460 ac_save_CC=$CC
4461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4462 /* end confdefs.h. */
4463 #include <stdarg.h>
4464 #include <stdbool.h>
4465 #include <stdlib.h>
4466 #include <wchar.h>
4467 #include <stdio.h>
4469 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4470 #define debug(...) fprintf (stderr, __VA_ARGS__)
4471 #define showlist(...) puts (#__VA_ARGS__)
4472 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4473 static void
4474 test_varargs_macros (void)
4476 int x = 1234;
4477 int y = 5678;
4478 debug ("Flag");
4479 debug ("X = %d\n", x);
4480 showlist (The first, second, and third items.);
4481 report (x>y, "x is %d but y is %d", x, y);
4484 // Check long long types.
4485 #define BIG64 18446744073709551615ull
4486 #define BIG32 4294967295ul
4487 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4488 #if !BIG_OK
4489 your preprocessor is broken;
4490 #endif
4491 #if BIG_OK
4492 #else
4493 your preprocessor is broken;
4494 #endif
4495 static long long int bignum = -9223372036854775807LL;
4496 static unsigned long long int ubignum = BIG64;
4498 struct incomplete_array
4500 int datasize;
4501 double data[];
4504 struct named_init {
4505 int number;
4506 const wchar_t *name;
4507 double average;
4510 typedef const char *ccp;
4512 static inline int
4513 test_restrict (ccp restrict text)
4515 // See if C++-style comments work.
4516 // Iterate through items via the restricted pointer.
4517 // Also check for declarations in for loops.
4518 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4519 continue;
4520 return 0;
4523 // Check varargs and va_copy.
4524 static void
4525 test_varargs (const char *format, ...)
4527 va_list args;
4528 va_start (args, format);
4529 va_list args_copy;
4530 va_copy (args_copy, args);
4532 const char *str;
4533 int number;
4534 float fnumber;
4536 while (*format)
4538 switch (*format++)
4540 case 's': // string
4541 str = va_arg (args_copy, const char *);
4542 break;
4543 case 'd': // int
4544 number = va_arg (args_copy, int);
4545 break;
4546 case 'f': // float
4547 fnumber = va_arg (args_copy, double);
4548 break;
4549 default:
4550 break;
4553 va_end (args_copy);
4554 va_end (args);
4558 main ()
4561 // Check bool.
4562 _Bool success = false;
4564 // Check restrict.
4565 if (test_restrict ("String literal") == 0)
4566 success = true;
4567 char *restrict newvar = "Another string";
4569 // Check varargs.
4570 test_varargs ("s, d' f .", "string", 65, 34.234);
4571 test_varargs_macros ();
4573 // Check flexible array members.
4574 struct incomplete_array *ia =
4575 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4576 ia->datasize = 10;
4577 for (int i = 0; i < ia->datasize; ++i)
4578 ia->data[i] = i * 1.234;
4580 // Check named initializers.
4581 struct named_init ni = {
4582 .number = 34,
4583 .name = L"Test wide string",
4584 .average = 543.34343,
4587 ni.number = 58;
4589 int dynamic_array[ni.number];
4590 dynamic_array[ni.number - 1] = 543;
4592 // work around unused variable warnings
4593 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4594 || dynamic_array[ni.number - 1] != 543);
4597 return 0;
4599 _ACEOF
4600 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4602 CC="$ac_save_CC $ac_arg"
4603 if ac_fn_c_try_compile "$LINENO"; then :
4604 ac_cv_prog_cc_c99=$ac_arg
4606 rm -f core conftest.err conftest.$ac_objext
4607 test "x$ac_cv_prog_cc_c99" != "xno" && break
4608 done
4609 rm -f conftest.$ac_ext
4610 CC=$ac_save_CC
4613 # AC_CACHE_VAL
4614 case "x$ac_cv_prog_cc_c99" in
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4617 $as_echo "none needed" >&6; } ;;
4618 xno)
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4620 $as_echo "unsupported" >&6; } ;;
4622 CC="$CC $ac_cv_prog_cc_c99"
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4624 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4625 esac
4626 if test "x$ac_cv_prog_cc_c99" != xno; then :
4627 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4628 else
4629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4630 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4631 if ${ac_cv_prog_cc_c89+:} false; then :
4632 $as_echo_n "(cached) " >&6
4633 else
4634 ac_cv_prog_cc_c89=no
4635 ac_save_CC=$CC
4636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4637 /* end confdefs.h. */
4638 #include <stdarg.h>
4639 #include <stdio.h>
4640 struct stat;
4641 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4642 struct buf { int x; };
4643 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4644 static char *e (p, i)
4645 char **p;
4646 int i;
4648 return p[i];
4650 static char *f (char * (*g) (char **, int), char **p, ...)
4652 char *s;
4653 va_list v;
4654 va_start (v,p);
4655 s = g (p, va_arg (v,int));
4656 va_end (v);
4657 return s;
4660 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4661 function prototypes and stuff, but not '\xHH' hex character constants.
4662 These don't provoke an error unfortunately, instead are silently treated
4663 as 'x'. The following induces an error, until -std is added to get
4664 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4665 array size at least. It's necessary to write '\x00'==0 to get something
4666 that's true only with -std. */
4667 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4669 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4670 inside strings and character constants. */
4671 #define FOO(x) 'x'
4672 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4674 int test (int i, double x);
4675 struct s1 {int (*f) (int a);};
4676 struct s2 {int (*f) (double a);};
4677 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4678 int argc;
4679 char **argv;
4681 main ()
4683 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4685 return 0;
4687 _ACEOF
4688 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4689 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4691 CC="$ac_save_CC $ac_arg"
4692 if ac_fn_c_try_compile "$LINENO"; then :
4693 ac_cv_prog_cc_c89=$ac_arg
4695 rm -f core conftest.err conftest.$ac_objext
4696 test "x$ac_cv_prog_cc_c89" != "xno" && break
4697 done
4698 rm -f conftest.$ac_ext
4699 CC=$ac_save_CC
4702 # AC_CACHE_VAL
4703 case "x$ac_cv_prog_cc_c89" in
4705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4706 $as_echo "none needed" >&6; } ;;
4707 xno)
4708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4709 $as_echo "unsupported" >&6; } ;;
4711 CC="$CC $ac_cv_prog_cc_c89"
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4713 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4714 esac
4715 if test "x$ac_cv_prog_cc_c89" != xno; then :
4716 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4717 else
4718 ac_cv_prog_cc_stdc=no
4723 esac
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
4725 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
4726 if ${ac_cv_prog_cc_stdc+:} false; then :
4727 $as_echo_n "(cached) " >&6
4730 case $ac_cv_prog_cc_stdc in #(
4731 no) :
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4733 $as_echo "unsupported" >&6; } ;; #(
4734 '') :
4735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4736 $as_echo "none needed" >&6; } ;; #(
4737 *) :
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
4739 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
4740 esac
4743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4744 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4745 set x ${MAKE-make}
4746 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4747 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4748 $as_echo_n "(cached) " >&6
4749 else
4750 cat >conftest.make <<\_ACEOF
4751 SHELL = /bin/sh
4752 all:
4753 @echo '@@@%%%=$(MAKE)=@@@%%%'
4754 _ACEOF
4755 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4756 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4757 *@@@%%%=?*=@@@%%%*)
4758 eval ac_cv_prog_make_${ac_make}_set=yes;;
4760 eval ac_cv_prog_make_${ac_make}_set=no;;
4761 esac
4762 rm -f conftest.make
4764 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4766 $as_echo "yes" >&6; }
4767 SET_MAKE=
4768 else
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4770 $as_echo "no" >&6; }
4771 SET_MAKE="MAKE=${MAKE-make}"
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4775 $as_echo_n "checking whether ln -s works... " >&6; }
4776 LN_S=$as_ln_s
4777 if test "$LN_S" = "ln -s"; then
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4779 $as_echo "yes" >&6; }
4780 else
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4782 $as_echo "no, using $LN_S" >&6; }
4785 for ac_prog in gawk mawk nawk awk
4787 # Extract the first word of "$ac_prog", so it can be a program name with args.
4788 set dummy $ac_prog; ac_word=$2
4789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4790 $as_echo_n "checking for $ac_word... " >&6; }
4791 if ${ac_cv_prog_AWK+:} false; then :
4792 $as_echo_n "(cached) " >&6
4793 else
4794 if test -n "$AWK"; then
4795 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4796 else
4797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4798 for as_dir in $PATH
4800 IFS=$as_save_IFS
4801 test -z "$as_dir" && as_dir=.
4802 for ac_exec_ext in '' $ac_executable_extensions; do
4803 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4804 ac_cv_prog_AWK="$ac_prog"
4805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4806 break 2
4808 done
4809 done
4810 IFS=$as_save_IFS
4814 AWK=$ac_cv_prog_AWK
4815 if test -n "$AWK"; then
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4817 $as_echo "$AWK" >&6; }
4818 else
4819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4820 $as_echo "no" >&6; }
4824 test -n "$AWK" && break
4825 done
4827 if test -n "$ac_tool_prefix"; then
4828 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4829 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4831 $as_echo_n "checking for $ac_word... " >&6; }
4832 if ${ac_cv_prog_RANLIB+:} false; then :
4833 $as_echo_n "(cached) " >&6
4834 else
4835 if test -n "$RANLIB"; then
4836 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4837 else
4838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4839 for as_dir in $PATH
4841 IFS=$as_save_IFS
4842 test -z "$as_dir" && as_dir=.
4843 for ac_exec_ext in '' $ac_executable_extensions; do
4844 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4845 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4847 break 2
4849 done
4850 done
4851 IFS=$as_save_IFS
4855 RANLIB=$ac_cv_prog_RANLIB
4856 if test -n "$RANLIB"; then
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4858 $as_echo "$RANLIB" >&6; }
4859 else
4860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4861 $as_echo "no" >&6; }
4866 if test -z "$ac_cv_prog_RANLIB"; then
4867 ac_ct_RANLIB=$RANLIB
4868 # Extract the first word of "ranlib", so it can be a program name with args.
4869 set dummy ranlib; ac_word=$2
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4871 $as_echo_n "checking for $ac_word... " >&6; }
4872 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4873 $as_echo_n "(cached) " >&6
4874 else
4875 if test -n "$ac_ct_RANLIB"; then
4876 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4877 else
4878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4879 for as_dir in $PATH
4881 IFS=$as_save_IFS
4882 test -z "$as_dir" && as_dir=.
4883 for ac_exec_ext in '' $ac_executable_extensions; do
4884 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4885 ac_cv_prog_ac_ct_RANLIB="ranlib"
4886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4887 break 2
4889 done
4890 done
4891 IFS=$as_save_IFS
4895 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4896 if test -n "$ac_ct_RANLIB"; then
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4898 $as_echo "$ac_ct_RANLIB" >&6; }
4899 else
4900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4901 $as_echo "no" >&6; }
4904 if test "x$ac_ct_RANLIB" = x; then
4905 RANLIB=":"
4906 else
4907 case $cross_compiling:$ac_tool_warned in
4908 yes:)
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4910 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4911 ac_tool_warned=yes ;;
4912 esac
4913 RANLIB=$ac_ct_RANLIB
4915 else
4916 RANLIB="$ac_cv_prog_RANLIB"
4919 case `pwd` in
4920 *\ * | *\ *)
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4922 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4923 esac
4927 macro_version='2.4.2'
4928 macro_revision='1.3337'
4942 ltmain="$ac_aux_dir/ltmain.sh"
4944 # Backslashify metacharacters that are still active within
4945 # double-quoted strings.
4946 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4948 # Same as above, but do not quote variable references.
4949 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4951 # Sed substitution to delay expansion of an escaped shell variable in a
4952 # double_quote_subst'ed string.
4953 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4955 # Sed substitution to delay expansion of an escaped single quote.
4956 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4958 # Sed substitution to avoid accidental globbing in evaled expressions
4959 no_glob_subst='s/\*/\\\*/g'
4961 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4962 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4963 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4966 $as_echo_n "checking how to print strings... " >&6; }
4967 # Test print first, because it will be a builtin if present.
4968 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4969 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4970 ECHO='print -r --'
4971 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4972 ECHO='printf %s\n'
4973 else
4974 # Use this function as a fallback that always works.
4975 func_fallback_echo ()
4977 eval 'cat <<_LTECHO_EOF
4979 _LTECHO_EOF'
4981 ECHO='func_fallback_echo'
4984 # func_echo_all arg...
4985 # Invoke $ECHO with all args, space-separated.
4986 func_echo_all ()
4988 $ECHO ""
4991 case "$ECHO" in
4992 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4993 $as_echo "printf" >&6; } ;;
4994 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4995 $as_echo "print -r" >&6; } ;;
4996 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4997 $as_echo "cat" >&6; } ;;
4998 esac
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5014 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5015 if ${ac_cv_path_SED+:} false; then :
5016 $as_echo_n "(cached) " >&6
5017 else
5018 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5019 for ac_i in 1 2 3 4 5 6 7; do
5020 ac_script="$ac_script$as_nl$ac_script"
5021 done
5022 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5023 { ac_script=; unset ac_script;}
5024 if test -z "$SED"; then
5025 ac_path_SED_found=false
5026 # Loop through the user's path and test for each of PROGNAME-LIST
5027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5028 for as_dir in $PATH
5030 IFS=$as_save_IFS
5031 test -z "$as_dir" && as_dir=.
5032 for ac_prog in sed gsed; do
5033 for ac_exec_ext in '' $ac_executable_extensions; do
5034 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5035 as_fn_executable_p "$ac_path_SED" || continue
5036 # Check for GNU ac_path_SED and select it if it is found.
5037 # Check for GNU $ac_path_SED
5038 case `"$ac_path_SED" --version 2>&1` in
5039 *GNU*)
5040 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5042 ac_count=0
5043 $as_echo_n 0123456789 >"conftest.in"
5044 while :
5046 cat "conftest.in" "conftest.in" >"conftest.tmp"
5047 mv "conftest.tmp" "conftest.in"
5048 cp "conftest.in" "conftest.nl"
5049 $as_echo '' >> "conftest.nl"
5050 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5051 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5052 as_fn_arith $ac_count + 1 && ac_count=$as_val
5053 if test $ac_count -gt ${ac_path_SED_max-0}; then
5054 # Best one so far, save it but keep looking for a better one
5055 ac_cv_path_SED="$ac_path_SED"
5056 ac_path_SED_max=$ac_count
5058 # 10*(2^10) chars as input seems more than enough
5059 test $ac_count -gt 10 && break
5060 done
5061 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5062 esac
5064 $ac_path_SED_found && break 3
5065 done
5066 done
5067 done
5068 IFS=$as_save_IFS
5069 if test -z "$ac_cv_path_SED"; then
5070 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5072 else
5073 ac_cv_path_SED=$SED
5077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5078 $as_echo "$ac_cv_path_SED" >&6; }
5079 SED="$ac_cv_path_SED"
5080 rm -f conftest.sed
5082 test -z "$SED" && SED=sed
5083 Xsed="$SED -e 1s/^X//"
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5096 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5097 if ${ac_cv_path_GREP+:} false; then :
5098 $as_echo_n "(cached) " >&6
5099 else
5100 if test -z "$GREP"; then
5101 ac_path_GREP_found=false
5102 # Loop through the user's path and test for each of PROGNAME-LIST
5103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5104 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5106 IFS=$as_save_IFS
5107 test -z "$as_dir" && as_dir=.
5108 for ac_prog in grep ggrep; do
5109 for ac_exec_ext in '' $ac_executable_extensions; do
5110 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5111 as_fn_executable_p "$ac_path_GREP" || continue
5112 # Check for GNU ac_path_GREP and select it if it is found.
5113 # Check for GNU $ac_path_GREP
5114 case `"$ac_path_GREP" --version 2>&1` in
5115 *GNU*)
5116 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5118 ac_count=0
5119 $as_echo_n 0123456789 >"conftest.in"
5120 while :
5122 cat "conftest.in" "conftest.in" >"conftest.tmp"
5123 mv "conftest.tmp" "conftest.in"
5124 cp "conftest.in" "conftest.nl"
5125 $as_echo 'GREP' >> "conftest.nl"
5126 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5127 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5128 as_fn_arith $ac_count + 1 && ac_count=$as_val
5129 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5130 # Best one so far, save it but keep looking for a better one
5131 ac_cv_path_GREP="$ac_path_GREP"
5132 ac_path_GREP_max=$ac_count
5134 # 10*(2^10) chars as input seems more than enough
5135 test $ac_count -gt 10 && break
5136 done
5137 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5138 esac
5140 $ac_path_GREP_found && break 3
5141 done
5142 done
5143 done
5144 IFS=$as_save_IFS
5145 if test -z "$ac_cv_path_GREP"; then
5146 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5148 else
5149 ac_cv_path_GREP=$GREP
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5154 $as_echo "$ac_cv_path_GREP" >&6; }
5155 GREP="$ac_cv_path_GREP"
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5159 $as_echo_n "checking for egrep... " >&6; }
5160 if ${ac_cv_path_EGREP+:} false; then :
5161 $as_echo_n "(cached) " >&6
5162 else
5163 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5164 then ac_cv_path_EGREP="$GREP -E"
5165 else
5166 if test -z "$EGREP"; then
5167 ac_path_EGREP_found=false
5168 # Loop through the user's path and test for each of PROGNAME-LIST
5169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5170 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5172 IFS=$as_save_IFS
5173 test -z "$as_dir" && as_dir=.
5174 for ac_prog in egrep; do
5175 for ac_exec_ext in '' $ac_executable_extensions; do
5176 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5177 as_fn_executable_p "$ac_path_EGREP" || continue
5178 # Check for GNU ac_path_EGREP and select it if it is found.
5179 # Check for GNU $ac_path_EGREP
5180 case `"$ac_path_EGREP" --version 2>&1` in
5181 *GNU*)
5182 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5184 ac_count=0
5185 $as_echo_n 0123456789 >"conftest.in"
5186 while :
5188 cat "conftest.in" "conftest.in" >"conftest.tmp"
5189 mv "conftest.tmp" "conftest.in"
5190 cp "conftest.in" "conftest.nl"
5191 $as_echo 'EGREP' >> "conftest.nl"
5192 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5193 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5194 as_fn_arith $ac_count + 1 && ac_count=$as_val
5195 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5196 # Best one so far, save it but keep looking for a better one
5197 ac_cv_path_EGREP="$ac_path_EGREP"
5198 ac_path_EGREP_max=$ac_count
5200 # 10*(2^10) chars as input seems more than enough
5201 test $ac_count -gt 10 && break
5202 done
5203 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5204 esac
5206 $ac_path_EGREP_found && break 3
5207 done
5208 done
5209 done
5210 IFS=$as_save_IFS
5211 if test -z "$ac_cv_path_EGREP"; then
5212 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5214 else
5215 ac_cv_path_EGREP=$EGREP
5220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5221 $as_echo "$ac_cv_path_EGREP" >&6; }
5222 EGREP="$ac_cv_path_EGREP"
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5226 $as_echo_n "checking for fgrep... " >&6; }
5227 if ${ac_cv_path_FGREP+:} false; then :
5228 $as_echo_n "(cached) " >&6
5229 else
5230 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5231 then ac_cv_path_FGREP="$GREP -F"
5232 else
5233 if test -z "$FGREP"; then
5234 ac_path_FGREP_found=false
5235 # Loop through the user's path and test for each of PROGNAME-LIST
5236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5237 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5239 IFS=$as_save_IFS
5240 test -z "$as_dir" && as_dir=.
5241 for ac_prog in fgrep; do
5242 for ac_exec_ext in '' $ac_executable_extensions; do
5243 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5244 as_fn_executable_p "$ac_path_FGREP" || continue
5245 # Check for GNU ac_path_FGREP and select it if it is found.
5246 # Check for GNU $ac_path_FGREP
5247 case `"$ac_path_FGREP" --version 2>&1` in
5248 *GNU*)
5249 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5251 ac_count=0
5252 $as_echo_n 0123456789 >"conftest.in"
5253 while :
5255 cat "conftest.in" "conftest.in" >"conftest.tmp"
5256 mv "conftest.tmp" "conftest.in"
5257 cp "conftest.in" "conftest.nl"
5258 $as_echo 'FGREP' >> "conftest.nl"
5259 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5260 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5261 as_fn_arith $ac_count + 1 && ac_count=$as_val
5262 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5263 # Best one so far, save it but keep looking for a better one
5264 ac_cv_path_FGREP="$ac_path_FGREP"
5265 ac_path_FGREP_max=$ac_count
5267 # 10*(2^10) chars as input seems more than enough
5268 test $ac_count -gt 10 && break
5269 done
5270 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5271 esac
5273 $ac_path_FGREP_found && break 3
5274 done
5275 done
5276 done
5277 IFS=$as_save_IFS
5278 if test -z "$ac_cv_path_FGREP"; then
5279 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5281 else
5282 ac_cv_path_FGREP=$FGREP
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5288 $as_echo "$ac_cv_path_FGREP" >&6; }
5289 FGREP="$ac_cv_path_FGREP"
5292 test -z "$GREP" && GREP=grep
5312 # Check whether --with-gnu-ld was given.
5313 if test "${with_gnu_ld+set}" = set; then :
5314 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5315 else
5316 with_gnu_ld=no
5319 ac_prog=ld
5320 if test "$GCC" = yes; then
5321 # Check if gcc -print-prog-name=ld gives a path.
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5323 $as_echo_n "checking for ld used by $CC... " >&6; }
5324 case $host in
5325 *-*-mingw*)
5326 # gcc leaves a trailing carriage return which upsets mingw
5327 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5329 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5330 esac
5331 case $ac_prog in
5332 # Accept absolute paths.
5333 [\\/]* | ?:[\\/]*)
5334 re_direlt='/[^/][^/]*/\.\./'
5335 # Canonicalize the pathname of ld
5336 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5337 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5338 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5339 done
5340 test -z "$LD" && LD="$ac_prog"
5343 # If it fails, then pretend we aren't using GCC.
5344 ac_prog=ld
5347 # If it is relative, then search for the first ld in PATH.
5348 with_gnu_ld=unknown
5350 esac
5351 elif test "$with_gnu_ld" = yes; then
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5353 $as_echo_n "checking for GNU ld... " >&6; }
5354 else
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5356 $as_echo_n "checking for non-GNU ld... " >&6; }
5358 if ${lt_cv_path_LD+:} false; then :
5359 $as_echo_n "(cached) " >&6
5360 else
5361 if test -z "$LD"; then
5362 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5363 for ac_dir in $PATH; do
5364 IFS="$lt_save_ifs"
5365 test -z "$ac_dir" && ac_dir=.
5366 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5367 lt_cv_path_LD="$ac_dir/$ac_prog"
5368 # Check to see if the program is GNU ld. I'd rather use --version,
5369 # but apparently some variants of GNU ld only accept -v.
5370 # Break only if it was the GNU/non-GNU ld that we prefer.
5371 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5372 *GNU* | *'with BFD'*)
5373 test "$with_gnu_ld" != no && break
5376 test "$with_gnu_ld" != yes && break
5378 esac
5380 done
5381 IFS="$lt_save_ifs"
5382 else
5383 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5387 LD="$lt_cv_path_LD"
5388 if test -n "$LD"; then
5389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5390 $as_echo "$LD" >&6; }
5391 else
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5393 $as_echo "no" >&6; }
5395 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5397 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5398 if ${lt_cv_prog_gnu_ld+:} false; then :
5399 $as_echo_n "(cached) " >&6
5400 else
5401 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5402 case `$LD -v 2>&1 </dev/null` in
5403 *GNU* | *'with BFD'*)
5404 lt_cv_prog_gnu_ld=yes
5407 lt_cv_prog_gnu_ld=no
5409 esac
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5412 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5413 with_gnu_ld=$lt_cv_prog_gnu_ld
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5424 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5425 if ${lt_cv_path_NM+:} false; then :
5426 $as_echo_n "(cached) " >&6
5427 else
5428 if test -n "$NM"; then
5429 # Let the user override the test.
5430 lt_cv_path_NM="$NM"
5431 else
5432 lt_nm_to_check="${ac_tool_prefix}nm"
5433 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5434 lt_nm_to_check="$lt_nm_to_check nm"
5436 for lt_tmp_nm in $lt_nm_to_check; do
5437 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5438 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5439 IFS="$lt_save_ifs"
5440 test -z "$ac_dir" && ac_dir=.
5441 tmp_nm="$ac_dir/$lt_tmp_nm"
5442 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5443 # Check to see if the nm accepts a BSD-compat flag.
5444 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5445 # nm: unknown option "B" ignored
5446 # Tru64's nm complains that /dev/null is an invalid object file
5447 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5448 */dev/null* | *'Invalid file or object type'*)
5449 lt_cv_path_NM="$tmp_nm -B"
5450 break
5453 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5454 */dev/null*)
5455 lt_cv_path_NM="$tmp_nm -p"
5456 break
5459 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5460 continue # so that we can try to find one that supports BSD flags
5462 esac
5464 esac
5466 done
5467 IFS="$lt_save_ifs"
5468 done
5469 : ${lt_cv_path_NM=no}
5472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5473 $as_echo "$lt_cv_path_NM" >&6; }
5474 if test "$lt_cv_path_NM" != "no"; then
5475 NM="$lt_cv_path_NM"
5476 else
5477 # Didn't find any BSD compatible name lister, look for dumpbin.
5478 if test -n "$DUMPBIN"; then :
5479 # Let the user override the test.
5480 else
5481 if test -n "$ac_tool_prefix"; then
5482 for ac_prog in dumpbin "link -dump"
5484 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5485 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5487 $as_echo_n "checking for $ac_word... " >&6; }
5488 if ${ac_cv_prog_DUMPBIN+:} false; then :
5489 $as_echo_n "(cached) " >&6
5490 else
5491 if test -n "$DUMPBIN"; then
5492 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5493 else
5494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5495 for as_dir in $PATH
5497 IFS=$as_save_IFS
5498 test -z "$as_dir" && as_dir=.
5499 for ac_exec_ext in '' $ac_executable_extensions; do
5500 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5501 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5503 break 2
5505 done
5506 done
5507 IFS=$as_save_IFS
5511 DUMPBIN=$ac_cv_prog_DUMPBIN
5512 if test -n "$DUMPBIN"; then
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5514 $as_echo "$DUMPBIN" >&6; }
5515 else
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5517 $as_echo "no" >&6; }
5521 test -n "$DUMPBIN" && break
5522 done
5524 if test -z "$DUMPBIN"; then
5525 ac_ct_DUMPBIN=$DUMPBIN
5526 for ac_prog in dumpbin "link -dump"
5528 # Extract the first word of "$ac_prog", so it can be a program name with args.
5529 set dummy $ac_prog; ac_word=$2
5530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5531 $as_echo_n "checking for $ac_word... " >&6; }
5532 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5533 $as_echo_n "(cached) " >&6
5534 else
5535 if test -n "$ac_ct_DUMPBIN"; then
5536 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5537 else
5538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5539 for as_dir in $PATH
5541 IFS=$as_save_IFS
5542 test -z "$as_dir" && as_dir=.
5543 for ac_exec_ext in '' $ac_executable_extensions; do
5544 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5545 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5547 break 2
5549 done
5550 done
5551 IFS=$as_save_IFS
5555 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5556 if test -n "$ac_ct_DUMPBIN"; then
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5558 $as_echo "$ac_ct_DUMPBIN" >&6; }
5559 else
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5561 $as_echo "no" >&6; }
5565 test -n "$ac_ct_DUMPBIN" && break
5566 done
5568 if test "x$ac_ct_DUMPBIN" = x; then
5569 DUMPBIN=":"
5570 else
5571 case $cross_compiling:$ac_tool_warned in
5572 yes:)
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5574 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5575 ac_tool_warned=yes ;;
5576 esac
5577 DUMPBIN=$ac_ct_DUMPBIN
5581 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5582 *COFF*)
5583 DUMPBIN="$DUMPBIN -symbols"
5586 DUMPBIN=:
5588 esac
5591 if test "$DUMPBIN" != ":"; then
5592 NM="$DUMPBIN"
5595 test -z "$NM" && NM=nm
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5603 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5604 if ${lt_cv_nm_interface+:} false; then :
5605 $as_echo_n "(cached) " >&6
5606 else
5607 lt_cv_nm_interface="BSD nm"
5608 echo "int some_variable = 0;" > conftest.$ac_ext
5609 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5610 (eval "$ac_compile" 2>conftest.err)
5611 cat conftest.err >&5
5612 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5613 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5614 cat conftest.err >&5
5615 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5616 cat conftest.out >&5
5617 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5618 lt_cv_nm_interface="MS dumpbin"
5620 rm -f conftest*
5622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5623 $as_echo "$lt_cv_nm_interface" >&6; }
5625 # find the maximum length of command line arguments
5626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5627 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5628 if ${lt_cv_sys_max_cmd_len+:} false; then :
5629 $as_echo_n "(cached) " >&6
5630 else
5632 teststring="ABCD"
5634 case $build_os in
5635 msdosdjgpp*)
5636 # On DJGPP, this test can blow up pretty badly due to problems in libc
5637 # (any single argument exceeding 2000 bytes causes a buffer overrun
5638 # during glob expansion). Even if it were fixed, the result of this
5639 # check would be larger than it should be.
5640 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5643 gnu*)
5644 # Under GNU Hurd, this test is not required because there is
5645 # no limit to the length of command line arguments.
5646 # Libtool will interpret -1 as no limit whatsoever
5647 lt_cv_sys_max_cmd_len=-1;
5650 cygwin* | mingw* | cegcc*)
5651 # On Win9x/ME, this test blows up -- it succeeds, but takes
5652 # about 5 minutes as the teststring grows exponentially.
5653 # Worse, since 9x/ME are not pre-emptively multitasking,
5654 # you end up with a "frozen" computer, even though with patience
5655 # the test eventually succeeds (with a max line length of 256k).
5656 # Instead, let's just punt: use the minimum linelength reported by
5657 # all of the supported platforms: 8192 (on NT/2K/XP).
5658 lt_cv_sys_max_cmd_len=8192;
5661 mint*)
5662 # On MiNT this can take a long time and run out of memory.
5663 lt_cv_sys_max_cmd_len=8192;
5666 amigaos*)
5667 # On AmigaOS with pdksh, this test takes hours, literally.
5668 # So we just punt and use a minimum line length of 8192.
5669 lt_cv_sys_max_cmd_len=8192;
5672 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5673 # This has been around since 386BSD, at least. Likely further.
5674 if test -x /sbin/sysctl; then
5675 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5676 elif test -x /usr/sbin/sysctl; then
5677 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5678 else
5679 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5681 # And add a safety zone
5682 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5683 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5686 interix*)
5687 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5688 lt_cv_sys_max_cmd_len=196608
5691 os2*)
5692 # The test takes a long time on OS/2.
5693 lt_cv_sys_max_cmd_len=8192
5696 osf*)
5697 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5698 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5699 # nice to cause kernel panics so lets avoid the loop below.
5700 # First set a reasonable default.
5701 lt_cv_sys_max_cmd_len=16384
5703 if test -x /sbin/sysconfig; then
5704 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5705 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5706 esac
5709 sco3.2v5*)
5710 lt_cv_sys_max_cmd_len=102400
5712 sysv5* | sco5v6* | sysv4.2uw2*)
5713 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5714 if test -n "$kargmax"; then
5715 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5716 else
5717 lt_cv_sys_max_cmd_len=32768
5721 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5722 if test -n "$lt_cv_sys_max_cmd_len"; then
5723 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5724 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5725 else
5726 # Make teststring a little bigger before we do anything with it.
5727 # a 1K string should be a reasonable start.
5728 for i in 1 2 3 4 5 6 7 8 ; do
5729 teststring=$teststring$teststring
5730 done
5731 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5732 # If test is not a shell built-in, we'll probably end up computing a
5733 # maximum length that is only half of the actual maximum length, but
5734 # we can't tell.
5735 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5736 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5737 test $i != 17 # 1/2 MB should be enough
5739 i=`expr $i + 1`
5740 teststring=$teststring$teststring
5741 done
5742 # Only check the string length outside the loop.
5743 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5744 teststring=
5745 # Add a significant safety factor because C++ compilers can tack on
5746 # massive amounts of additional arguments before passing them to the
5747 # linker. It appears as though 1/2 is a usable value.
5748 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5751 esac
5755 if test -n $lt_cv_sys_max_cmd_len ; then
5756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5757 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5758 else
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5760 $as_echo "none" >&6; }
5762 max_cmd_len=$lt_cv_sys_max_cmd_len
5769 : ${CP="cp -f"}
5770 : ${MV="mv -f"}
5771 : ${RM="rm -f"}
5773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5774 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5775 # Try some XSI features
5776 xsi_shell=no
5777 ( _lt_dummy="a/b/c"
5778 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5779 = c,a/b,b/c, \
5780 && eval 'test $(( 1 + 1 )) -eq 2 \
5781 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5782 && xsi_shell=yes
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5784 $as_echo "$xsi_shell" >&6; }
5787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5788 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5789 lt_shell_append=no
5790 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5791 >/dev/null 2>&1 \
5792 && lt_shell_append=yes
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5794 $as_echo "$lt_shell_append" >&6; }
5797 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5798 lt_unset=unset
5799 else
5800 lt_unset=false
5807 # test EBCDIC or ASCII
5808 case `echo X|tr X '\101'` in
5809 A) # ASCII based system
5810 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5811 lt_SP2NL='tr \040 \012'
5812 lt_NL2SP='tr \015\012 \040\040'
5814 *) # EBCDIC based system
5815 lt_SP2NL='tr \100 \n'
5816 lt_NL2SP='tr \r\n \100\100'
5818 esac
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5829 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5830 if ${lt_cv_to_host_file_cmd+:} false; then :
5831 $as_echo_n "(cached) " >&6
5832 else
5833 case $host in
5834 *-*-mingw* )
5835 case $build in
5836 *-*-mingw* ) # actually msys
5837 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5839 *-*-cygwin* )
5840 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5842 * ) # otherwise, assume *nix
5843 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5845 esac
5847 *-*-cygwin* )
5848 case $build in
5849 *-*-mingw* ) # actually msys
5850 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5852 *-*-cygwin* )
5853 lt_cv_to_host_file_cmd=func_convert_file_noop
5855 * ) # otherwise, assume *nix
5856 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5858 esac
5860 * ) # unhandled hosts (and "normal" native builds)
5861 lt_cv_to_host_file_cmd=func_convert_file_noop
5863 esac
5867 to_host_file_cmd=$lt_cv_to_host_file_cmd
5868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5869 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5876 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5877 if ${lt_cv_to_tool_file_cmd+:} false; then :
5878 $as_echo_n "(cached) " >&6
5879 else
5880 #assume ordinary cross tools, or native build.
5881 lt_cv_to_tool_file_cmd=func_convert_file_noop
5882 case $host in
5883 *-*-mingw* )
5884 case $build in
5885 *-*-mingw* ) # actually msys
5886 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5888 esac
5890 esac
5894 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5896 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5903 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5904 if ${lt_cv_ld_reload_flag+:} false; then :
5905 $as_echo_n "(cached) " >&6
5906 else
5907 lt_cv_ld_reload_flag='-r'
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5910 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5911 reload_flag=$lt_cv_ld_reload_flag
5912 case $reload_flag in
5913 "" | " "*) ;;
5914 *) reload_flag=" $reload_flag" ;;
5915 esac
5916 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5917 case $host_os in
5918 cygwin* | mingw* | pw32* | cegcc*)
5919 if test "$GCC" != yes; then
5920 reload_cmds=false
5923 darwin*)
5924 if test "$GCC" = yes; then
5925 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5926 else
5927 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5930 esac
5940 if test -n "$ac_tool_prefix"; then
5941 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5942 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5944 $as_echo_n "checking for $ac_word... " >&6; }
5945 if ${ac_cv_prog_OBJDUMP+:} false; then :
5946 $as_echo_n "(cached) " >&6
5947 else
5948 if test -n "$OBJDUMP"; then
5949 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5950 else
5951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5952 for as_dir in $PATH
5954 IFS=$as_save_IFS
5955 test -z "$as_dir" && as_dir=.
5956 for ac_exec_ext in '' $ac_executable_extensions; do
5957 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5958 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5960 break 2
5962 done
5963 done
5964 IFS=$as_save_IFS
5968 OBJDUMP=$ac_cv_prog_OBJDUMP
5969 if test -n "$OBJDUMP"; then
5970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5971 $as_echo "$OBJDUMP" >&6; }
5972 else
5973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5974 $as_echo "no" >&6; }
5979 if test -z "$ac_cv_prog_OBJDUMP"; then
5980 ac_ct_OBJDUMP=$OBJDUMP
5981 # Extract the first word of "objdump", so it can be a program name with args.
5982 set dummy objdump; ac_word=$2
5983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5984 $as_echo_n "checking for $ac_word... " >&6; }
5985 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5986 $as_echo_n "(cached) " >&6
5987 else
5988 if test -n "$ac_ct_OBJDUMP"; then
5989 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5990 else
5991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5992 for as_dir in $PATH
5994 IFS=$as_save_IFS
5995 test -z "$as_dir" && as_dir=.
5996 for ac_exec_ext in '' $ac_executable_extensions; do
5997 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5998 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6000 break 2
6002 done
6003 done
6004 IFS=$as_save_IFS
6008 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6009 if test -n "$ac_ct_OBJDUMP"; then
6010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6011 $as_echo "$ac_ct_OBJDUMP" >&6; }
6012 else
6013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6014 $as_echo "no" >&6; }
6017 if test "x$ac_ct_OBJDUMP" = x; then
6018 OBJDUMP="false"
6019 else
6020 case $cross_compiling:$ac_tool_warned in
6021 yes:)
6022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6023 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6024 ac_tool_warned=yes ;;
6025 esac
6026 OBJDUMP=$ac_ct_OBJDUMP
6028 else
6029 OBJDUMP="$ac_cv_prog_OBJDUMP"
6032 test -z "$OBJDUMP" && OBJDUMP=objdump
6042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6043 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6044 if ${lt_cv_deplibs_check_method+:} false; then :
6045 $as_echo_n "(cached) " >&6
6046 else
6047 lt_cv_file_magic_cmd='$MAGIC_CMD'
6048 lt_cv_file_magic_test_file=
6049 lt_cv_deplibs_check_method='unknown'
6050 # Need to set the preceding variable on all platforms that support
6051 # interlibrary dependencies.
6052 # 'none' -- dependencies not supported.
6053 # `unknown' -- same as none, but documents that we really don't know.
6054 # 'pass_all' -- all dependencies passed with no checks.
6055 # 'test_compile' -- check by making test program.
6056 # 'file_magic [[regex]]' -- check by looking for files in library path
6057 # which responds to the $file_magic_cmd with a given extended regex.
6058 # If you have `file' or equivalent on your system and you're not sure
6059 # whether `pass_all' will *always* work, you probably want this one.
6061 case $host_os in
6062 aix[4-9]*)
6063 lt_cv_deplibs_check_method=pass_all
6066 beos*)
6067 lt_cv_deplibs_check_method=pass_all
6070 bsdi[45]*)
6071 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6072 lt_cv_file_magic_cmd='/usr/bin/file -L'
6073 lt_cv_file_magic_test_file=/shlib/libc.so
6076 cygwin*)
6077 # func_win32_libid is a shell function defined in ltmain.sh
6078 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6079 lt_cv_file_magic_cmd='func_win32_libid'
6082 mingw* | pw32*)
6083 # Base MSYS/MinGW do not provide the 'file' command needed by
6084 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6085 # unless we find 'file', for example because we are cross-compiling.
6086 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6087 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6088 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6089 lt_cv_file_magic_cmd='func_win32_libid'
6090 else
6091 # Keep this pattern in sync with the one in func_win32_libid.
6092 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6093 lt_cv_file_magic_cmd='$OBJDUMP -f'
6097 cegcc*)
6098 # use the weaker test based on 'objdump'. See mingw*.
6099 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6100 lt_cv_file_magic_cmd='$OBJDUMP -f'
6103 darwin* | rhapsody*)
6104 lt_cv_deplibs_check_method=pass_all
6107 freebsd* | dragonfly*)
6108 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6109 case $host_cpu in
6110 i*86 )
6111 # Not sure whether the presence of OpenBSD here was a mistake.
6112 # Let's accept both of them until this is cleared up.
6113 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6114 lt_cv_file_magic_cmd=/usr/bin/file
6115 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6117 esac
6118 else
6119 lt_cv_deplibs_check_method=pass_all
6123 gnu*)
6124 lt_cv_deplibs_check_method=pass_all
6127 haiku*)
6128 lt_cv_deplibs_check_method=pass_all
6131 hpux10.20* | hpux11*)
6132 lt_cv_file_magic_cmd=/usr/bin/file
6133 case $host_cpu in
6134 ia64*)
6135 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6136 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6138 hppa*64*)
6139 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]'
6140 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6143 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6144 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6146 esac
6149 interix[3-9]*)
6150 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6151 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6154 irix5* | irix6* | nonstopux*)
6155 case $LD in
6156 *-32|*"-32 ") libmagic=32-bit;;
6157 *-n32|*"-n32 ") libmagic=N32;;
6158 *-64|*"-64 ") libmagic=64-bit;;
6159 *) libmagic=never-match;;
6160 esac
6161 lt_cv_deplibs_check_method=pass_all
6164 # This must be glibc/ELF.
6165 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6166 lt_cv_deplibs_check_method=pass_all
6169 netbsd*)
6170 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6171 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6172 else
6173 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6177 newos6*)
6178 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6179 lt_cv_file_magic_cmd=/usr/bin/file
6180 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6183 *nto* | *qnx*)
6184 lt_cv_deplibs_check_method=pass_all
6187 openbsd*)
6188 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6189 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6190 else
6191 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6195 osf3* | osf4* | osf5*)
6196 lt_cv_deplibs_check_method=pass_all
6199 rdos*)
6200 lt_cv_deplibs_check_method=pass_all
6203 solaris*)
6204 lt_cv_deplibs_check_method=pass_all
6207 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6208 lt_cv_deplibs_check_method=pass_all
6211 sysv4 | sysv4.3*)
6212 case $host_vendor in
6213 motorola)
6214 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]'
6215 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6217 ncr)
6218 lt_cv_deplibs_check_method=pass_all
6220 sequent)
6221 lt_cv_file_magic_cmd='/bin/file'
6222 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6224 sni)
6225 lt_cv_file_magic_cmd='/bin/file'
6226 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6227 lt_cv_file_magic_test_file=/lib/libc.so
6229 siemens)
6230 lt_cv_deplibs_check_method=pass_all
6233 lt_cv_deplibs_check_method=pass_all
6235 esac
6238 tpf*)
6239 lt_cv_deplibs_check_method=pass_all
6241 esac
6244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6245 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6247 file_magic_glob=
6248 want_nocaseglob=no
6249 if test "$build" = "$host"; then
6250 case $host_os in
6251 mingw* | pw32*)
6252 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6253 want_nocaseglob=yes
6254 else
6255 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6258 esac
6261 file_magic_cmd=$lt_cv_file_magic_cmd
6262 deplibs_check_method=$lt_cv_deplibs_check_method
6263 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6286 if test -n "$ac_tool_prefix"; then
6287 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6288 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6290 $as_echo_n "checking for $ac_word... " >&6; }
6291 if ${ac_cv_prog_DLLTOOL+:} false; then :
6292 $as_echo_n "(cached) " >&6
6293 else
6294 if test -n "$DLLTOOL"; then
6295 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6296 else
6297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6298 for as_dir in $PATH
6300 IFS=$as_save_IFS
6301 test -z "$as_dir" && as_dir=.
6302 for ac_exec_ext in '' $ac_executable_extensions; do
6303 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6304 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6306 break 2
6308 done
6309 done
6310 IFS=$as_save_IFS
6314 DLLTOOL=$ac_cv_prog_DLLTOOL
6315 if test -n "$DLLTOOL"; then
6316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6317 $as_echo "$DLLTOOL" >&6; }
6318 else
6319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6320 $as_echo "no" >&6; }
6325 if test -z "$ac_cv_prog_DLLTOOL"; then
6326 ac_ct_DLLTOOL=$DLLTOOL
6327 # Extract the first word of "dlltool", so it can be a program name with args.
6328 set dummy dlltool; ac_word=$2
6329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6330 $as_echo_n "checking for $ac_word... " >&6; }
6331 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6332 $as_echo_n "(cached) " >&6
6333 else
6334 if test -n "$ac_ct_DLLTOOL"; then
6335 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6336 else
6337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6338 for as_dir in $PATH
6340 IFS=$as_save_IFS
6341 test -z "$as_dir" && as_dir=.
6342 for ac_exec_ext in '' $ac_executable_extensions; do
6343 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6344 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6346 break 2
6348 done
6349 done
6350 IFS=$as_save_IFS
6354 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6355 if test -n "$ac_ct_DLLTOOL"; then
6356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6357 $as_echo "$ac_ct_DLLTOOL" >&6; }
6358 else
6359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6360 $as_echo "no" >&6; }
6363 if test "x$ac_ct_DLLTOOL" = x; then
6364 DLLTOOL="false"
6365 else
6366 case $cross_compiling:$ac_tool_warned in
6367 yes:)
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6369 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6370 ac_tool_warned=yes ;;
6371 esac
6372 DLLTOOL=$ac_ct_DLLTOOL
6374 else
6375 DLLTOOL="$ac_cv_prog_DLLTOOL"
6378 test -z "$DLLTOOL" && DLLTOOL=dlltool
6389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6390 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6391 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6392 $as_echo_n "(cached) " >&6
6393 else
6394 lt_cv_sharedlib_from_linklib_cmd='unknown'
6396 case $host_os in
6397 cygwin* | mingw* | pw32* | cegcc*)
6398 # two different shell functions defined in ltmain.sh
6399 # decide which to use based on capabilities of $DLLTOOL
6400 case `$DLLTOOL --help 2>&1` in
6401 *--identify-strict*)
6402 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6405 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6407 esac
6410 # fallback: assume linklib IS sharedlib
6411 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6413 esac
6416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6417 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6418 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6419 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6428 if test -n "$ac_tool_prefix"; then
6429 for ac_prog in ar
6431 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6432 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6434 $as_echo_n "checking for $ac_word... " >&6; }
6435 if ${ac_cv_prog_AR+:} false; then :
6436 $as_echo_n "(cached) " >&6
6437 else
6438 if test -n "$AR"; then
6439 ac_cv_prog_AR="$AR" # Let the user override the test.
6440 else
6441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6442 for as_dir in $PATH
6444 IFS=$as_save_IFS
6445 test -z "$as_dir" && as_dir=.
6446 for ac_exec_ext in '' $ac_executable_extensions; do
6447 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6448 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6450 break 2
6452 done
6453 done
6454 IFS=$as_save_IFS
6458 AR=$ac_cv_prog_AR
6459 if test -n "$AR"; then
6460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6461 $as_echo "$AR" >&6; }
6462 else
6463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6464 $as_echo "no" >&6; }
6468 test -n "$AR" && break
6469 done
6471 if test -z "$AR"; then
6472 ac_ct_AR=$AR
6473 for ac_prog in ar
6475 # Extract the first word of "$ac_prog", so it can be a program name with args.
6476 set dummy $ac_prog; ac_word=$2
6477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6478 $as_echo_n "checking for $ac_word... " >&6; }
6479 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6480 $as_echo_n "(cached) " >&6
6481 else
6482 if test -n "$ac_ct_AR"; then
6483 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6484 else
6485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6486 for as_dir in $PATH
6488 IFS=$as_save_IFS
6489 test -z "$as_dir" && as_dir=.
6490 for ac_exec_ext in '' $ac_executable_extensions; do
6491 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6492 ac_cv_prog_ac_ct_AR="$ac_prog"
6493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6494 break 2
6496 done
6497 done
6498 IFS=$as_save_IFS
6502 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6503 if test -n "$ac_ct_AR"; then
6504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6505 $as_echo "$ac_ct_AR" >&6; }
6506 else
6507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6508 $as_echo "no" >&6; }
6512 test -n "$ac_ct_AR" && break
6513 done
6515 if test "x$ac_ct_AR" = x; then
6516 AR="false"
6517 else
6518 case $cross_compiling:$ac_tool_warned in
6519 yes:)
6520 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6521 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6522 ac_tool_warned=yes ;;
6523 esac
6524 AR=$ac_ct_AR
6528 : ${AR=ar}
6529 : ${AR_FLAGS=cru}
6541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6542 $as_echo_n "checking for archiver @FILE support... " >&6; }
6543 if ${lt_cv_ar_at_file+:} false; then :
6544 $as_echo_n "(cached) " >&6
6545 else
6546 lt_cv_ar_at_file=no
6547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6548 /* end confdefs.h. */
6551 main ()
6555 return 0;
6557 _ACEOF
6558 if ac_fn_c_try_compile "$LINENO"; then :
6559 echo conftest.$ac_objext > conftest.lst
6560 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6561 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6562 (eval $lt_ar_try) 2>&5
6563 ac_status=$?
6564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6565 test $ac_status = 0; }
6566 if test "$ac_status" -eq 0; then
6567 # Ensure the archiver fails upon bogus file names.
6568 rm -f conftest.$ac_objext libconftest.a
6569 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6570 (eval $lt_ar_try) 2>&5
6571 ac_status=$?
6572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6573 test $ac_status = 0; }
6574 if test "$ac_status" -ne 0; then
6575 lt_cv_ar_at_file=@
6578 rm -f conftest.* libconftest.a
6581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6585 $as_echo "$lt_cv_ar_at_file" >&6; }
6587 if test "x$lt_cv_ar_at_file" = xno; then
6588 archiver_list_spec=
6589 else
6590 archiver_list_spec=$lt_cv_ar_at_file
6599 if test -n "$ac_tool_prefix"; then
6600 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6601 set dummy ${ac_tool_prefix}strip; ac_word=$2
6602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6603 $as_echo_n "checking for $ac_word... " >&6; }
6604 if ${ac_cv_prog_STRIP+:} false; then :
6605 $as_echo_n "(cached) " >&6
6606 else
6607 if test -n "$STRIP"; then
6608 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6609 else
6610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6611 for as_dir in $PATH
6613 IFS=$as_save_IFS
6614 test -z "$as_dir" && as_dir=.
6615 for ac_exec_ext in '' $ac_executable_extensions; do
6616 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6617 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6619 break 2
6621 done
6622 done
6623 IFS=$as_save_IFS
6627 STRIP=$ac_cv_prog_STRIP
6628 if test -n "$STRIP"; then
6629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6630 $as_echo "$STRIP" >&6; }
6631 else
6632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6633 $as_echo "no" >&6; }
6638 if test -z "$ac_cv_prog_STRIP"; then
6639 ac_ct_STRIP=$STRIP
6640 # Extract the first word of "strip", so it can be a program name with args.
6641 set dummy strip; ac_word=$2
6642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6643 $as_echo_n "checking for $ac_word... " >&6; }
6644 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6645 $as_echo_n "(cached) " >&6
6646 else
6647 if test -n "$ac_ct_STRIP"; then
6648 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6649 else
6650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6651 for as_dir in $PATH
6653 IFS=$as_save_IFS
6654 test -z "$as_dir" && as_dir=.
6655 for ac_exec_ext in '' $ac_executable_extensions; do
6656 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6657 ac_cv_prog_ac_ct_STRIP="strip"
6658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6659 break 2
6661 done
6662 done
6663 IFS=$as_save_IFS
6667 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6668 if test -n "$ac_ct_STRIP"; then
6669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6670 $as_echo "$ac_ct_STRIP" >&6; }
6671 else
6672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6673 $as_echo "no" >&6; }
6676 if test "x$ac_ct_STRIP" = x; then
6677 STRIP=":"
6678 else
6679 case $cross_compiling:$ac_tool_warned in
6680 yes:)
6681 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6682 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6683 ac_tool_warned=yes ;;
6684 esac
6685 STRIP=$ac_ct_STRIP
6687 else
6688 STRIP="$ac_cv_prog_STRIP"
6691 test -z "$STRIP" && STRIP=:
6698 if test -n "$ac_tool_prefix"; then
6699 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6700 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6702 $as_echo_n "checking for $ac_word... " >&6; }
6703 if ${ac_cv_prog_RANLIB+:} false; then :
6704 $as_echo_n "(cached) " >&6
6705 else
6706 if test -n "$RANLIB"; then
6707 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6708 else
6709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6710 for as_dir in $PATH
6712 IFS=$as_save_IFS
6713 test -z "$as_dir" && as_dir=.
6714 for ac_exec_ext in '' $ac_executable_extensions; do
6715 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6716 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6718 break 2
6720 done
6721 done
6722 IFS=$as_save_IFS
6726 RANLIB=$ac_cv_prog_RANLIB
6727 if test -n "$RANLIB"; then
6728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6729 $as_echo "$RANLIB" >&6; }
6730 else
6731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6732 $as_echo "no" >&6; }
6737 if test -z "$ac_cv_prog_RANLIB"; then
6738 ac_ct_RANLIB=$RANLIB
6739 # Extract the first word of "ranlib", so it can be a program name with args.
6740 set dummy ranlib; ac_word=$2
6741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6742 $as_echo_n "checking for $ac_word... " >&6; }
6743 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6744 $as_echo_n "(cached) " >&6
6745 else
6746 if test -n "$ac_ct_RANLIB"; then
6747 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6748 else
6749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6750 for as_dir in $PATH
6752 IFS=$as_save_IFS
6753 test -z "$as_dir" && as_dir=.
6754 for ac_exec_ext in '' $ac_executable_extensions; do
6755 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6756 ac_cv_prog_ac_ct_RANLIB="ranlib"
6757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6758 break 2
6760 done
6761 done
6762 IFS=$as_save_IFS
6766 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6767 if test -n "$ac_ct_RANLIB"; then
6768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6769 $as_echo "$ac_ct_RANLIB" >&6; }
6770 else
6771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6772 $as_echo "no" >&6; }
6775 if test "x$ac_ct_RANLIB" = x; then
6776 RANLIB=":"
6777 else
6778 case $cross_compiling:$ac_tool_warned in
6779 yes:)
6780 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6781 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6782 ac_tool_warned=yes ;;
6783 esac
6784 RANLIB=$ac_ct_RANLIB
6786 else
6787 RANLIB="$ac_cv_prog_RANLIB"
6790 test -z "$RANLIB" && RANLIB=:
6797 # Determine commands to create old-style static archives.
6798 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6799 old_postinstall_cmds='chmod 644 $oldlib'
6800 old_postuninstall_cmds=
6802 if test -n "$RANLIB"; then
6803 case $host_os in
6804 openbsd*)
6805 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6808 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6810 esac
6811 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6814 case $host_os in
6815 darwin*)
6816 lock_old_archive_extraction=yes ;;
6818 lock_old_archive_extraction=no ;;
6819 esac
6859 # If no C compiler was specified, use CC.
6860 LTCC=${LTCC-"$CC"}
6862 # If no C compiler flags were specified, use CFLAGS.
6863 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6865 # Allow CC to be a program name with arguments.
6866 compiler=$CC
6869 # Check for command to grab the raw symbol name followed by C symbol from nm.
6870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6871 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6872 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6873 $as_echo_n "(cached) " >&6
6874 else
6876 # These are sane defaults that work on at least a few old systems.
6877 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6879 # Character class describing NM global symbol codes.
6880 symcode='[BCDEGRST]'
6882 # Regexp to match symbols that can be accessed directly from C.
6883 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6885 # Define system-specific variables.
6886 case $host_os in
6887 aix*)
6888 symcode='[BCDT]'
6890 cygwin* | mingw* | pw32* | cegcc*)
6891 symcode='[ABCDGISTW]'
6893 hpux*)
6894 if test "$host_cpu" = ia64; then
6895 symcode='[ABCDEGRST]'
6898 irix* | nonstopux*)
6899 symcode='[BCDEGRST]'
6901 osf*)
6902 symcode='[BCDEGQRST]'
6904 solaris*)
6905 symcode='[BDRT]'
6907 sco3.2v5*)
6908 symcode='[DT]'
6910 sysv4.2uw2*)
6911 symcode='[DT]'
6913 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6914 symcode='[ABDT]'
6916 sysv4)
6917 symcode='[DFNSTU]'
6919 esac
6921 # If we're using GNU nm, then use its standard symbol codes.
6922 case `$NM -V 2>&1` in
6923 *GNU* | *'with BFD'*)
6924 symcode='[ABCDGIRSTW]' ;;
6925 esac
6927 # Transform an extracted symbol line into a proper C declaration.
6928 # Some systems (esp. on ia64) link data and code symbols differently,
6929 # so use this general approach.
6930 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6932 # Transform an extracted symbol line into symbol name and symbol address
6933 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6934 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
6936 # Handle CRLF in mingw tool chain
6937 opt_cr=
6938 case $build_os in
6939 mingw*)
6940 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6942 esac
6944 # Try without a prefix underscore, then with it.
6945 for ac_symprfx in "" "_"; do
6947 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6948 symxfrm="\\1 $ac_symprfx\\2 \\2"
6950 # Write the raw and C identifiers.
6951 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6952 # Fake it for dumpbin and say T for any non-static function
6953 # and D for any global variable.
6954 # Also find C++ and __fastcall symbols from MSVC++,
6955 # which start with @ or ?.
6956 lt_cv_sys_global_symbol_pipe="$AWK '"\
6957 " {last_section=section; section=\$ 3};"\
6958 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6959 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6960 " \$ 0!~/External *\|/{next};"\
6961 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6962 " {if(hide[section]) next};"\
6963 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6964 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6965 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6966 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6967 " ' prfx=^$ac_symprfx"
6968 else
6969 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6971 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6973 # Check to see that the pipe works correctly.
6974 pipe_works=no
6976 rm -f conftest*
6977 cat > conftest.$ac_ext <<_LT_EOF
6978 #ifdef __cplusplus
6979 extern "C" {
6980 #endif
6981 char nm_test_var;
6982 void nm_test_func(void);
6983 void nm_test_func(void){}
6984 #ifdef __cplusplus
6986 #endif
6987 int main(){nm_test_var='a';nm_test_func();return(0);}
6988 _LT_EOF
6990 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6991 (eval $ac_compile) 2>&5
6992 ac_status=$?
6993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6994 test $ac_status = 0; }; then
6995 # Now try to grab the symbols.
6996 nlist=conftest.nm
6997 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6998 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6999 ac_status=$?
7000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7001 test $ac_status = 0; } && test -s "$nlist"; then
7002 # Try sorting and uniquifying the output.
7003 if sort "$nlist" | uniq > "$nlist"T; then
7004 mv -f "$nlist"T "$nlist"
7005 else
7006 rm -f "$nlist"T
7009 # Make sure that we snagged all the symbols we need.
7010 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7011 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7012 cat <<_LT_EOF > conftest.$ac_ext
7013 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7014 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7015 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7016 relocations are performed -- see ld's documentation on pseudo-relocs. */
7017 # define LT_DLSYM_CONST
7018 #elif defined(__osf__)
7019 /* This system does not cope well with relocations in const data. */
7020 # define LT_DLSYM_CONST
7021 #else
7022 # define LT_DLSYM_CONST const
7023 #endif
7025 #ifdef __cplusplus
7026 extern "C" {
7027 #endif
7029 _LT_EOF
7030 # Now generate the symbol file.
7031 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7033 cat <<_LT_EOF >> conftest.$ac_ext
7035 /* The mapping between symbol names and symbols. */
7036 LT_DLSYM_CONST struct {
7037 const char *name;
7038 void *address;
7040 lt__PROGRAM__LTX_preloaded_symbols[] =
7042 { "@PROGRAM@", (void *) 0 },
7043 _LT_EOF
7044 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7045 cat <<\_LT_EOF >> conftest.$ac_ext
7046 {0, (void *) 0}
7049 /* This works around a problem in FreeBSD linker */
7050 #ifdef FREEBSD_WORKAROUND
7051 static const void *lt_preloaded_setup() {
7052 return lt__PROGRAM__LTX_preloaded_symbols;
7054 #endif
7056 #ifdef __cplusplus
7058 #endif
7059 _LT_EOF
7060 # Now try linking the two files.
7061 mv conftest.$ac_objext conftstm.$ac_objext
7062 lt_globsym_save_LIBS=$LIBS
7063 lt_globsym_save_CFLAGS=$CFLAGS
7064 LIBS="conftstm.$ac_objext"
7065 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7066 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7067 (eval $ac_link) 2>&5
7068 ac_status=$?
7069 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7070 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7071 pipe_works=yes
7073 LIBS=$lt_globsym_save_LIBS
7074 CFLAGS=$lt_globsym_save_CFLAGS
7075 else
7076 echo "cannot find nm_test_func in $nlist" >&5
7078 else
7079 echo "cannot find nm_test_var in $nlist" >&5
7081 else
7082 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7084 else
7085 echo "$progname: failed program was:" >&5
7086 cat conftest.$ac_ext >&5
7088 rm -rf conftest* conftst*
7090 # Do not use the global_symbol_pipe unless it works.
7091 if test "$pipe_works" = yes; then
7092 break
7093 else
7094 lt_cv_sys_global_symbol_pipe=
7096 done
7100 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7101 lt_cv_sys_global_symbol_to_cdecl=
7103 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7105 $as_echo "failed" >&6; }
7106 else
7107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7108 $as_echo "ok" >&6; }
7111 # Response file support.
7112 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7113 nm_file_list_spec='@'
7114 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7115 nm_file_list_spec='@'
7144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7145 $as_echo_n "checking for sysroot... " >&6; }
7147 # Check whether --with-sysroot was given.
7148 if test "${with_sysroot+set}" = set; then :
7149 withval=$with_sysroot;
7150 else
7151 with_sysroot=no
7155 lt_sysroot=
7156 case ${with_sysroot} in #(
7157 yes)
7158 if test "$GCC" = yes; then
7159 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7161 ;; #(
7163 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7164 ;; #(
7165 no|'')
7166 ;; #(
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7169 $as_echo "${with_sysroot}" >&6; }
7170 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7172 esac
7174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7175 $as_echo "${lt_sysroot:-no}" >&6; }
7181 # Check whether --enable-libtool-lock was given.
7182 if test "${enable_libtool_lock+set}" = set; then :
7183 enableval=$enable_libtool_lock;
7186 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7188 # Some flags need to be propagated to the compiler or linker for good
7189 # libtool support.
7190 case $host in
7191 ia64-*-hpux*)
7192 # Find out which ABI we are using.
7193 echo 'int i;' > conftest.$ac_ext
7194 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7195 (eval $ac_compile) 2>&5
7196 ac_status=$?
7197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7198 test $ac_status = 0; }; then
7199 case `/usr/bin/file conftest.$ac_objext` in
7200 *ELF-32*)
7201 HPUX_IA64_MODE="32"
7203 *ELF-64*)
7204 HPUX_IA64_MODE="64"
7206 esac
7208 rm -rf conftest*
7210 *-*-irix6*)
7211 # Find out which ABI we are using.
7212 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7213 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7214 (eval $ac_compile) 2>&5
7215 ac_status=$?
7216 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7217 test $ac_status = 0; }; then
7218 if test "$lt_cv_prog_gnu_ld" = yes; then
7219 case `/usr/bin/file conftest.$ac_objext` in
7220 *32-bit*)
7221 LD="${LD-ld} -melf32bsmip"
7223 *N32*)
7224 LD="${LD-ld} -melf32bmipn32"
7226 *64-bit*)
7227 LD="${LD-ld} -melf64bmip"
7229 esac
7230 else
7231 case `/usr/bin/file conftest.$ac_objext` in
7232 *32-bit*)
7233 LD="${LD-ld} -32"
7235 *N32*)
7236 LD="${LD-ld} -n32"
7238 *64-bit*)
7239 LD="${LD-ld} -64"
7241 esac
7244 rm -rf conftest*
7247 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7248 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7249 # Find out which ABI we are using.
7250 echo 'int i;' > conftest.$ac_ext
7251 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7252 (eval $ac_compile) 2>&5
7253 ac_status=$?
7254 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7255 test $ac_status = 0; }; then
7256 case `/usr/bin/file conftest.o` in
7257 *32-bit*)
7258 case $host in
7259 x86_64-*kfreebsd*-gnu)
7260 LD="${LD-ld} -m elf_i386_fbsd"
7262 x86_64-*linux*)
7263 LD="${LD-ld} -m elf_i386"
7265 powerpc64le-*linux*)
7266 LD="${LD-ld} -m elf32lppclinux"
7268 powerpc64-*linux*)
7269 LD="${LD-ld} -m elf32ppclinux"
7271 s390x-*linux*)
7272 LD="${LD-ld} -m elf_s390"
7274 sparc64-*linux*)
7275 LD="${LD-ld} -m elf32_sparc"
7277 esac
7279 *64-bit*)
7280 case $host in
7281 x86_64-*kfreebsd*-gnu)
7282 LD="${LD-ld} -m elf_x86_64_fbsd"
7284 x86_64-*linux*)
7285 LD="${LD-ld} -m elf_x86_64"
7287 powerpcle-*linux*)
7288 LD="${LD-ld} -m elf64lppc"
7290 powerpc-*linux*)
7291 LD="${LD-ld} -m elf64ppc"
7293 s390*-*linux*|s390*-*tpf*)
7294 LD="${LD-ld} -m elf64_s390"
7296 sparc*-*linux*)
7297 LD="${LD-ld} -m elf64_sparc"
7299 esac
7301 esac
7303 rm -rf conftest*
7306 *-*-sco3.2v5*)
7307 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7308 SAVE_CFLAGS="$CFLAGS"
7309 CFLAGS="$CFLAGS -belf"
7310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7311 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7312 if ${lt_cv_cc_needs_belf+:} false; then :
7313 $as_echo_n "(cached) " >&6
7314 else
7315 ac_ext=c
7316 ac_cpp='$CPP $CPPFLAGS'
7317 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7318 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7319 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7322 /* end confdefs.h. */
7325 main ()
7329 return 0;
7331 _ACEOF
7332 if ac_fn_c_try_link "$LINENO"; then :
7333 lt_cv_cc_needs_belf=yes
7334 else
7335 lt_cv_cc_needs_belf=no
7337 rm -f core conftest.err conftest.$ac_objext \
7338 conftest$ac_exeext conftest.$ac_ext
7339 ac_ext=c
7340 ac_cpp='$CPP $CPPFLAGS'
7341 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7342 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7343 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7347 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7348 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7349 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7350 CFLAGS="$SAVE_CFLAGS"
7353 *-*solaris*)
7354 # Find out which ABI we are using.
7355 echo 'int i;' > conftest.$ac_ext
7356 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357 (eval $ac_compile) 2>&5
7358 ac_status=$?
7359 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7360 test $ac_status = 0; }; then
7361 case `/usr/bin/file conftest.o` in
7362 *64-bit*)
7363 case $lt_cv_prog_gnu_ld in
7364 yes*)
7365 case $host in
7366 i?86-*-solaris*)
7367 LD="${LD-ld} -m elf_x86_64"
7369 sparc*-*-solaris*)
7370 LD="${LD-ld} -m elf64_sparc"
7372 esac
7373 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7374 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7375 LD="${LD-ld}_sol2"
7379 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7380 LD="${LD-ld} -64"
7383 esac
7385 esac
7387 rm -rf conftest*
7389 esac
7391 need_locks="$enable_libtool_lock"
7393 if test -n "$ac_tool_prefix"; then
7394 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7395 set dummy ${ac_tool_prefix}mt; ac_word=$2
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7397 $as_echo_n "checking for $ac_word... " >&6; }
7398 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7399 $as_echo_n "(cached) " >&6
7400 else
7401 if test -n "$MANIFEST_TOOL"; then
7402 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7403 else
7404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7405 for as_dir in $PATH
7407 IFS=$as_save_IFS
7408 test -z "$as_dir" && as_dir=.
7409 for ac_exec_ext in '' $ac_executable_extensions; do
7410 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7411 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7413 break 2
7415 done
7416 done
7417 IFS=$as_save_IFS
7421 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7422 if test -n "$MANIFEST_TOOL"; then
7423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7424 $as_echo "$MANIFEST_TOOL" >&6; }
7425 else
7426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7427 $as_echo "no" >&6; }
7432 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7433 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7434 # Extract the first word of "mt", so it can be a program name with args.
7435 set dummy mt; ac_word=$2
7436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7437 $as_echo_n "checking for $ac_word... " >&6; }
7438 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7439 $as_echo_n "(cached) " >&6
7440 else
7441 if test -n "$ac_ct_MANIFEST_TOOL"; then
7442 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7443 else
7444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7445 for as_dir in $PATH
7447 IFS=$as_save_IFS
7448 test -z "$as_dir" && as_dir=.
7449 for ac_exec_ext in '' $ac_executable_extensions; do
7450 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7451 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7453 break 2
7455 done
7456 done
7457 IFS=$as_save_IFS
7461 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7462 if test -n "$ac_ct_MANIFEST_TOOL"; then
7463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7464 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7465 else
7466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7467 $as_echo "no" >&6; }
7470 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7471 MANIFEST_TOOL=":"
7472 else
7473 case $cross_compiling:$ac_tool_warned in
7474 yes:)
7475 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7476 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7477 ac_tool_warned=yes ;;
7478 esac
7479 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7481 else
7482 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7485 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7487 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7488 if ${lt_cv_path_mainfest_tool+:} false; then :
7489 $as_echo_n "(cached) " >&6
7490 else
7491 lt_cv_path_mainfest_tool=no
7492 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7493 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7494 cat conftest.err >&5
7495 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7496 lt_cv_path_mainfest_tool=yes
7498 rm -f conftest*
7500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7501 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7502 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7503 MANIFEST_TOOL=:
7511 case $host_os in
7512 rhapsody* | darwin*)
7513 if test -n "$ac_tool_prefix"; then
7514 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7515 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7517 $as_echo_n "checking for $ac_word... " >&6; }
7518 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7519 $as_echo_n "(cached) " >&6
7520 else
7521 if test -n "$DSYMUTIL"; then
7522 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7523 else
7524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7525 for as_dir in $PATH
7527 IFS=$as_save_IFS
7528 test -z "$as_dir" && as_dir=.
7529 for ac_exec_ext in '' $ac_executable_extensions; do
7530 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7531 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7533 break 2
7535 done
7536 done
7537 IFS=$as_save_IFS
7541 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7542 if test -n "$DSYMUTIL"; then
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7544 $as_echo "$DSYMUTIL" >&6; }
7545 else
7546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7547 $as_echo "no" >&6; }
7552 if test -z "$ac_cv_prog_DSYMUTIL"; then
7553 ac_ct_DSYMUTIL=$DSYMUTIL
7554 # Extract the first word of "dsymutil", so it can be a program name with args.
7555 set dummy dsymutil; ac_word=$2
7556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7557 $as_echo_n "checking for $ac_word... " >&6; }
7558 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7559 $as_echo_n "(cached) " >&6
7560 else
7561 if test -n "$ac_ct_DSYMUTIL"; then
7562 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7563 else
7564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7565 for as_dir in $PATH
7567 IFS=$as_save_IFS
7568 test -z "$as_dir" && as_dir=.
7569 for ac_exec_ext in '' $ac_executable_extensions; do
7570 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7571 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7573 break 2
7575 done
7576 done
7577 IFS=$as_save_IFS
7581 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7582 if test -n "$ac_ct_DSYMUTIL"; then
7583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7584 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7585 else
7586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7587 $as_echo "no" >&6; }
7590 if test "x$ac_ct_DSYMUTIL" = x; then
7591 DSYMUTIL=":"
7592 else
7593 case $cross_compiling:$ac_tool_warned in
7594 yes:)
7595 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7596 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7597 ac_tool_warned=yes ;;
7598 esac
7599 DSYMUTIL=$ac_ct_DSYMUTIL
7601 else
7602 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7605 if test -n "$ac_tool_prefix"; then
7606 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7607 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7609 $as_echo_n "checking for $ac_word... " >&6; }
7610 if ${ac_cv_prog_NMEDIT+:} false; then :
7611 $as_echo_n "(cached) " >&6
7612 else
7613 if test -n "$NMEDIT"; then
7614 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7615 else
7616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7617 for as_dir in $PATH
7619 IFS=$as_save_IFS
7620 test -z "$as_dir" && as_dir=.
7621 for ac_exec_ext in '' $ac_executable_extensions; do
7622 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7623 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7625 break 2
7627 done
7628 done
7629 IFS=$as_save_IFS
7633 NMEDIT=$ac_cv_prog_NMEDIT
7634 if test -n "$NMEDIT"; then
7635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7636 $as_echo "$NMEDIT" >&6; }
7637 else
7638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7639 $as_echo "no" >&6; }
7644 if test -z "$ac_cv_prog_NMEDIT"; then
7645 ac_ct_NMEDIT=$NMEDIT
7646 # Extract the first word of "nmedit", so it can be a program name with args.
7647 set dummy nmedit; ac_word=$2
7648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7649 $as_echo_n "checking for $ac_word... " >&6; }
7650 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7651 $as_echo_n "(cached) " >&6
7652 else
7653 if test -n "$ac_ct_NMEDIT"; then
7654 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7655 else
7656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7657 for as_dir in $PATH
7659 IFS=$as_save_IFS
7660 test -z "$as_dir" && as_dir=.
7661 for ac_exec_ext in '' $ac_executable_extensions; do
7662 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7663 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7665 break 2
7667 done
7668 done
7669 IFS=$as_save_IFS
7673 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7674 if test -n "$ac_ct_NMEDIT"; then
7675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7676 $as_echo "$ac_ct_NMEDIT" >&6; }
7677 else
7678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7679 $as_echo "no" >&6; }
7682 if test "x$ac_ct_NMEDIT" = x; then
7683 NMEDIT=":"
7684 else
7685 case $cross_compiling:$ac_tool_warned in
7686 yes:)
7687 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7688 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7689 ac_tool_warned=yes ;;
7690 esac
7691 NMEDIT=$ac_ct_NMEDIT
7693 else
7694 NMEDIT="$ac_cv_prog_NMEDIT"
7697 if test -n "$ac_tool_prefix"; then
7698 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7699 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7701 $as_echo_n "checking for $ac_word... " >&6; }
7702 if ${ac_cv_prog_LIPO+:} false; then :
7703 $as_echo_n "(cached) " >&6
7704 else
7705 if test -n "$LIPO"; then
7706 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7707 else
7708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7709 for as_dir in $PATH
7711 IFS=$as_save_IFS
7712 test -z "$as_dir" && as_dir=.
7713 for ac_exec_ext in '' $ac_executable_extensions; do
7714 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7715 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7717 break 2
7719 done
7720 done
7721 IFS=$as_save_IFS
7725 LIPO=$ac_cv_prog_LIPO
7726 if test -n "$LIPO"; then
7727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7728 $as_echo "$LIPO" >&6; }
7729 else
7730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7731 $as_echo "no" >&6; }
7736 if test -z "$ac_cv_prog_LIPO"; then
7737 ac_ct_LIPO=$LIPO
7738 # Extract the first word of "lipo", so it can be a program name with args.
7739 set dummy lipo; ac_word=$2
7740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7741 $as_echo_n "checking for $ac_word... " >&6; }
7742 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7743 $as_echo_n "(cached) " >&6
7744 else
7745 if test -n "$ac_ct_LIPO"; then
7746 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7747 else
7748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7749 for as_dir in $PATH
7751 IFS=$as_save_IFS
7752 test -z "$as_dir" && as_dir=.
7753 for ac_exec_ext in '' $ac_executable_extensions; do
7754 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7755 ac_cv_prog_ac_ct_LIPO="lipo"
7756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7757 break 2
7759 done
7760 done
7761 IFS=$as_save_IFS
7765 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7766 if test -n "$ac_ct_LIPO"; then
7767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7768 $as_echo "$ac_ct_LIPO" >&6; }
7769 else
7770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7771 $as_echo "no" >&6; }
7774 if test "x$ac_ct_LIPO" = x; then
7775 LIPO=":"
7776 else
7777 case $cross_compiling:$ac_tool_warned in
7778 yes:)
7779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7780 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7781 ac_tool_warned=yes ;;
7782 esac
7783 LIPO=$ac_ct_LIPO
7785 else
7786 LIPO="$ac_cv_prog_LIPO"
7789 if test -n "$ac_tool_prefix"; then
7790 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7791 set dummy ${ac_tool_prefix}otool; ac_word=$2
7792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7793 $as_echo_n "checking for $ac_word... " >&6; }
7794 if ${ac_cv_prog_OTOOL+:} false; then :
7795 $as_echo_n "(cached) " >&6
7796 else
7797 if test -n "$OTOOL"; then
7798 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7799 else
7800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7801 for as_dir in $PATH
7803 IFS=$as_save_IFS
7804 test -z "$as_dir" && as_dir=.
7805 for ac_exec_ext in '' $ac_executable_extensions; do
7806 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7807 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7809 break 2
7811 done
7812 done
7813 IFS=$as_save_IFS
7817 OTOOL=$ac_cv_prog_OTOOL
7818 if test -n "$OTOOL"; then
7819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7820 $as_echo "$OTOOL" >&6; }
7821 else
7822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7823 $as_echo "no" >&6; }
7828 if test -z "$ac_cv_prog_OTOOL"; then
7829 ac_ct_OTOOL=$OTOOL
7830 # Extract the first word of "otool", so it can be a program name with args.
7831 set dummy otool; ac_word=$2
7832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7833 $as_echo_n "checking for $ac_word... " >&6; }
7834 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7835 $as_echo_n "(cached) " >&6
7836 else
7837 if test -n "$ac_ct_OTOOL"; then
7838 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7839 else
7840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7841 for as_dir in $PATH
7843 IFS=$as_save_IFS
7844 test -z "$as_dir" && as_dir=.
7845 for ac_exec_ext in '' $ac_executable_extensions; do
7846 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7847 ac_cv_prog_ac_ct_OTOOL="otool"
7848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7849 break 2
7851 done
7852 done
7853 IFS=$as_save_IFS
7857 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7858 if test -n "$ac_ct_OTOOL"; then
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7860 $as_echo "$ac_ct_OTOOL" >&6; }
7861 else
7862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7863 $as_echo "no" >&6; }
7866 if test "x$ac_ct_OTOOL" = x; then
7867 OTOOL=":"
7868 else
7869 case $cross_compiling:$ac_tool_warned in
7870 yes:)
7871 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7872 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7873 ac_tool_warned=yes ;;
7874 esac
7875 OTOOL=$ac_ct_OTOOL
7877 else
7878 OTOOL="$ac_cv_prog_OTOOL"
7881 if test -n "$ac_tool_prefix"; then
7882 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7883 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7885 $as_echo_n "checking for $ac_word... " >&6; }
7886 if ${ac_cv_prog_OTOOL64+:} false; then :
7887 $as_echo_n "(cached) " >&6
7888 else
7889 if test -n "$OTOOL64"; then
7890 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7891 else
7892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7893 for as_dir in $PATH
7895 IFS=$as_save_IFS
7896 test -z "$as_dir" && as_dir=.
7897 for ac_exec_ext in '' $ac_executable_extensions; do
7898 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7899 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7901 break 2
7903 done
7904 done
7905 IFS=$as_save_IFS
7909 OTOOL64=$ac_cv_prog_OTOOL64
7910 if test -n "$OTOOL64"; then
7911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7912 $as_echo "$OTOOL64" >&6; }
7913 else
7914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7915 $as_echo "no" >&6; }
7920 if test -z "$ac_cv_prog_OTOOL64"; then
7921 ac_ct_OTOOL64=$OTOOL64
7922 # Extract the first word of "otool64", so it can be a program name with args.
7923 set dummy otool64; ac_word=$2
7924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7925 $as_echo_n "checking for $ac_word... " >&6; }
7926 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7927 $as_echo_n "(cached) " >&6
7928 else
7929 if test -n "$ac_ct_OTOOL64"; then
7930 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7931 else
7932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7933 for as_dir in $PATH
7935 IFS=$as_save_IFS
7936 test -z "$as_dir" && as_dir=.
7937 for ac_exec_ext in '' $ac_executable_extensions; do
7938 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7939 ac_cv_prog_ac_ct_OTOOL64="otool64"
7940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7941 break 2
7943 done
7944 done
7945 IFS=$as_save_IFS
7949 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7950 if test -n "$ac_ct_OTOOL64"; then
7951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7952 $as_echo "$ac_ct_OTOOL64" >&6; }
7953 else
7954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7955 $as_echo "no" >&6; }
7958 if test "x$ac_ct_OTOOL64" = x; then
7959 OTOOL64=":"
7960 else
7961 case $cross_compiling:$ac_tool_warned in
7962 yes:)
7963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7964 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7965 ac_tool_warned=yes ;;
7966 esac
7967 OTOOL64=$ac_ct_OTOOL64
7969 else
7970 OTOOL64="$ac_cv_prog_OTOOL64"
7999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8000 $as_echo_n "checking for -single_module linker flag... " >&6; }
8001 if ${lt_cv_apple_cc_single_mod+:} false; then :
8002 $as_echo_n "(cached) " >&6
8003 else
8004 lt_cv_apple_cc_single_mod=no
8005 if test -z "${LT_MULTI_MODULE}"; then
8006 # By default we will add the -single_module flag. You can override
8007 # by either setting the environment variable LT_MULTI_MODULE
8008 # non-empty at configure time, or by adding -multi_module to the
8009 # link flags.
8010 rm -rf libconftest.dylib*
8011 echo "int foo(void){return 1;}" > conftest.c
8012 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8013 -dynamiclib -Wl,-single_module conftest.c" >&5
8014 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8015 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8016 _lt_result=$?
8017 # If there is a non-empty error log, and "single_module"
8018 # appears in it, assume the flag caused a linker warning
8019 if test -s conftest.err && $GREP single_module conftest.err; then
8020 cat conftest.err >&5
8021 # Otherwise, if the output was created with a 0 exit code from
8022 # the compiler, it worked.
8023 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8024 lt_cv_apple_cc_single_mod=yes
8025 else
8026 cat conftest.err >&5
8028 rm -rf libconftest.dylib*
8029 rm -f conftest.*
8032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8033 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8036 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8037 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8038 $as_echo_n "(cached) " >&6
8039 else
8040 lt_cv_ld_exported_symbols_list=no
8041 save_LDFLAGS=$LDFLAGS
8042 echo "_main" > conftest.sym
8043 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8045 /* end confdefs.h. */
8048 main ()
8052 return 0;
8054 _ACEOF
8055 if ac_fn_c_try_link "$LINENO"; then :
8056 lt_cv_ld_exported_symbols_list=yes
8057 else
8058 lt_cv_ld_exported_symbols_list=no
8060 rm -f core conftest.err conftest.$ac_objext \
8061 conftest$ac_exeext conftest.$ac_ext
8062 LDFLAGS="$save_LDFLAGS"
8065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8066 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8069 $as_echo_n "checking for -force_load linker flag... " >&6; }
8070 if ${lt_cv_ld_force_load+:} false; then :
8071 $as_echo_n "(cached) " >&6
8072 else
8073 lt_cv_ld_force_load=no
8074 cat > conftest.c << _LT_EOF
8075 int forced_loaded() { return 2;}
8076 _LT_EOF
8077 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8078 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8079 echo "$AR cru libconftest.a conftest.o" >&5
8080 $AR cru libconftest.a conftest.o 2>&5
8081 echo "$RANLIB libconftest.a" >&5
8082 $RANLIB libconftest.a 2>&5
8083 cat > conftest.c << _LT_EOF
8084 int main() { return 0;}
8085 _LT_EOF
8086 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8087 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8088 _lt_result=$?
8089 if test -s conftest.err && $GREP force_load conftest.err; then
8090 cat conftest.err >&5
8091 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8092 lt_cv_ld_force_load=yes
8093 else
8094 cat conftest.err >&5
8096 rm -f conftest.err libconftest.a conftest conftest.c
8097 rm -rf conftest.dSYM
8100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8101 $as_echo "$lt_cv_ld_force_load" >&6; }
8102 case $host_os in
8103 rhapsody* | darwin1.[012])
8104 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8105 darwin1.*)
8106 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8107 darwin*) # darwin 5.x on
8108 # if running on 10.5 or later, the deployment target defaults
8109 # to the OS version, if on x86, and 10.4, the deployment
8110 # target defaults to 10.4. Don't you love it?
8111 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8112 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8113 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8114 10.[012]*)
8115 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8116 10.*)
8117 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8118 esac
8120 esac
8121 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8122 _lt_dar_single_mod='$single_module'
8124 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8125 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8126 else
8127 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8129 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8130 _lt_dsymutil='~$DSYMUTIL $lib || :'
8131 else
8132 _lt_dsymutil=
8135 esac
8137 ac_ext=c
8138 ac_cpp='$CPP $CPPFLAGS'
8139 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8140 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8141 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8143 $as_echo_n "checking how to run the C preprocessor... " >&6; }
8144 # On Suns, sometimes $CPP names a directory.
8145 if test -n "$CPP" && test -d "$CPP"; then
8146 CPP=
8148 if test -z "$CPP"; then
8149 if ${ac_cv_prog_CPP+:} false; then :
8150 $as_echo_n "(cached) " >&6
8151 else
8152 # Double quotes because CPP needs to be expanded
8153 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8155 ac_preproc_ok=false
8156 for ac_c_preproc_warn_flag in '' yes
8158 # Use a header file that comes with gcc, so configuring glibc
8159 # with a fresh cross-compiler works.
8160 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8161 # <limits.h> exists even on freestanding compilers.
8162 # On the NeXT, cc -E runs the code through the compiler's parser,
8163 # not just through cpp. "Syntax error" is here to catch this case.
8164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8165 /* end confdefs.h. */
8166 #ifdef __STDC__
8167 # include <limits.h>
8168 #else
8169 # include <assert.h>
8170 #endif
8171 Syntax error
8172 _ACEOF
8173 if ac_fn_c_try_cpp "$LINENO"; then :
8175 else
8176 # Broken: fails on valid input.
8177 continue
8179 rm -f conftest.err conftest.i conftest.$ac_ext
8181 # OK, works on sane cases. Now check whether nonexistent headers
8182 # can be detected and how.
8183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8184 /* end confdefs.h. */
8185 #include <ac_nonexistent.h>
8186 _ACEOF
8187 if ac_fn_c_try_cpp "$LINENO"; then :
8188 # Broken: success on invalid input.
8189 continue
8190 else
8191 # Passes both tests.
8192 ac_preproc_ok=:
8193 break
8195 rm -f conftest.err conftest.i conftest.$ac_ext
8197 done
8198 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8199 rm -f conftest.i conftest.err conftest.$ac_ext
8200 if $ac_preproc_ok; then :
8201 break
8204 done
8205 ac_cv_prog_CPP=$CPP
8208 CPP=$ac_cv_prog_CPP
8209 else
8210 ac_cv_prog_CPP=$CPP
8212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8213 $as_echo "$CPP" >&6; }
8214 ac_preproc_ok=false
8215 for ac_c_preproc_warn_flag in '' yes
8217 # Use a header file that comes with gcc, so configuring glibc
8218 # with a fresh cross-compiler works.
8219 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8220 # <limits.h> exists even on freestanding compilers.
8221 # On the NeXT, cc -E runs the code through the compiler's parser,
8222 # not just through cpp. "Syntax error" is here to catch this case.
8223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8224 /* end confdefs.h. */
8225 #ifdef __STDC__
8226 # include <limits.h>
8227 #else
8228 # include <assert.h>
8229 #endif
8230 Syntax error
8231 _ACEOF
8232 if ac_fn_c_try_cpp "$LINENO"; then :
8234 else
8235 # Broken: fails on valid input.
8236 continue
8238 rm -f conftest.err conftest.i conftest.$ac_ext
8240 # OK, works on sane cases. Now check whether nonexistent headers
8241 # can be detected and how.
8242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8243 /* end confdefs.h. */
8244 #include <ac_nonexistent.h>
8245 _ACEOF
8246 if ac_fn_c_try_cpp "$LINENO"; then :
8247 # Broken: success on invalid input.
8248 continue
8249 else
8250 # Passes both tests.
8251 ac_preproc_ok=:
8252 break
8254 rm -f conftest.err conftest.i conftest.$ac_ext
8256 done
8257 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8258 rm -f conftest.i conftest.err conftest.$ac_ext
8259 if $ac_preproc_ok; then :
8261 else
8262 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8263 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8264 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8265 See \`config.log' for more details" "$LINENO" 5; }
8268 ac_ext=c
8269 ac_cpp='$CPP $CPPFLAGS'
8270 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8271 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8272 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8276 $as_echo_n "checking for ANSI C header files... " >&6; }
8277 if ${ac_cv_header_stdc+:} false; then :
8278 $as_echo_n "(cached) " >&6
8279 else
8280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8281 /* end confdefs.h. */
8282 #include <stdlib.h>
8283 #include <stdarg.h>
8284 #include <string.h>
8285 #include <float.h>
8288 main ()
8292 return 0;
8294 _ACEOF
8295 if ac_fn_c_try_compile "$LINENO"; then :
8296 ac_cv_header_stdc=yes
8297 else
8298 ac_cv_header_stdc=no
8300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8302 if test $ac_cv_header_stdc = yes; then
8303 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8305 /* end confdefs.h. */
8306 #include <string.h>
8308 _ACEOF
8309 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8310 $EGREP "memchr" >/dev/null 2>&1; then :
8312 else
8313 ac_cv_header_stdc=no
8315 rm -f conftest*
8319 if test $ac_cv_header_stdc = yes; then
8320 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8322 /* end confdefs.h. */
8323 #include <stdlib.h>
8325 _ACEOF
8326 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8327 $EGREP "free" >/dev/null 2>&1; then :
8329 else
8330 ac_cv_header_stdc=no
8332 rm -f conftest*
8336 if test $ac_cv_header_stdc = yes; then
8337 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8338 if test "$cross_compiling" = yes; then :
8340 else
8341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8342 /* end confdefs.h. */
8343 #include <ctype.h>
8344 #include <stdlib.h>
8345 #if ((' ' & 0x0FF) == 0x020)
8346 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8347 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8348 #else
8349 # define ISLOWER(c) \
8350 (('a' <= (c) && (c) <= 'i') \
8351 || ('j' <= (c) && (c) <= 'r') \
8352 || ('s' <= (c) && (c) <= 'z'))
8353 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8354 #endif
8356 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8358 main ()
8360 int i;
8361 for (i = 0; i < 256; i++)
8362 if (XOR (islower (i), ISLOWER (i))
8363 || toupper (i) != TOUPPER (i))
8364 return 2;
8365 return 0;
8367 _ACEOF
8368 if ac_fn_c_try_run "$LINENO"; then :
8370 else
8371 ac_cv_header_stdc=no
8373 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8374 conftest.$ac_objext conftest.beam conftest.$ac_ext
8379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8380 $as_echo "$ac_cv_header_stdc" >&6; }
8381 if test $ac_cv_header_stdc = yes; then
8383 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8387 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8388 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8389 inttypes.h stdint.h unistd.h
8390 do :
8391 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8392 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8394 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8395 cat >>confdefs.h <<_ACEOF
8396 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8397 _ACEOF
8401 done
8404 for ac_header in dlfcn.h
8405 do :
8406 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8408 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8409 cat >>confdefs.h <<_ACEOF
8410 #define HAVE_DLFCN_H 1
8411 _ACEOF
8415 done
8421 # Set options
8425 enable_dlopen=no
8428 enable_win32_dll=no
8431 # Check whether --enable-shared was given.
8432 if test "${enable_shared+set}" = set; then :
8433 enableval=$enable_shared; p=${PACKAGE-default}
8434 case $enableval in
8435 yes) enable_shared=yes ;;
8436 no) enable_shared=no ;;
8438 enable_shared=no
8439 # Look at the argument we got. We use all the common list separators.
8440 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8441 for pkg in $enableval; do
8442 IFS="$lt_save_ifs"
8443 if test "X$pkg" = "X$p"; then
8444 enable_shared=yes
8446 done
8447 IFS="$lt_save_ifs"
8449 esac
8450 else
8451 enable_shared=yes
8462 # Check whether --enable-static was given.
8463 if test "${enable_static+set}" = set; then :
8464 enableval=$enable_static; p=${PACKAGE-default}
8465 case $enableval in
8466 yes) enable_static=yes ;;
8467 no) enable_static=no ;;
8469 enable_static=no
8470 # Look at the argument we got. We use all the common list separators.
8471 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8472 for pkg in $enableval; do
8473 IFS="$lt_save_ifs"
8474 if test "X$pkg" = "X$p"; then
8475 enable_static=yes
8477 done
8478 IFS="$lt_save_ifs"
8480 esac
8481 else
8482 enable_static=yes
8494 # Check whether --with-pic was given.
8495 if test "${with_pic+set}" = set; then :
8496 withval=$with_pic; lt_p=${PACKAGE-default}
8497 case $withval in
8498 yes|no) pic_mode=$withval ;;
8500 pic_mode=default
8501 # Look at the argument we got. We use all the common list separators.
8502 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8503 for lt_pkg in $withval; do
8504 IFS="$lt_save_ifs"
8505 if test "X$lt_pkg" = "X$lt_p"; then
8506 pic_mode=yes
8508 done
8509 IFS="$lt_save_ifs"
8511 esac
8512 else
8513 pic_mode=default
8517 test -z "$pic_mode" && pic_mode=default
8525 # Check whether --enable-fast-install was given.
8526 if test "${enable_fast_install+set}" = set; then :
8527 enableval=$enable_fast_install; p=${PACKAGE-default}
8528 case $enableval in
8529 yes) enable_fast_install=yes ;;
8530 no) enable_fast_install=no ;;
8532 enable_fast_install=no
8533 # Look at the argument we got. We use all the common list separators.
8534 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8535 for pkg in $enableval; do
8536 IFS="$lt_save_ifs"
8537 if test "X$pkg" = "X$p"; then
8538 enable_fast_install=yes
8540 done
8541 IFS="$lt_save_ifs"
8543 esac
8544 else
8545 enable_fast_install=yes
8558 # This can be used to rebuild libtool when needed
8559 LIBTOOL_DEPS="$ltmain"
8561 # Always use our own libtool.
8562 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8593 test -z "$LN_S" && LN_S="ln -s"
8608 if test -n "${ZSH_VERSION+set}" ; then
8609 setopt NO_GLOB_SUBST
8612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8613 $as_echo_n "checking for objdir... " >&6; }
8614 if ${lt_cv_objdir+:} false; then :
8615 $as_echo_n "(cached) " >&6
8616 else
8617 rm -f .libs 2>/dev/null
8618 mkdir .libs 2>/dev/null
8619 if test -d .libs; then
8620 lt_cv_objdir=.libs
8621 else
8622 # MS-DOS does not allow filenames that begin with a dot.
8623 lt_cv_objdir=_libs
8625 rmdir .libs 2>/dev/null
8627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8628 $as_echo "$lt_cv_objdir" >&6; }
8629 objdir=$lt_cv_objdir
8635 cat >>confdefs.h <<_ACEOF
8636 #define LT_OBJDIR "$lt_cv_objdir/"
8637 _ACEOF
8642 case $host_os in
8643 aix3*)
8644 # AIX sometimes has problems with the GCC collect2 program. For some
8645 # reason, if we set the COLLECT_NAMES environment variable, the problems
8646 # vanish in a puff of smoke.
8647 if test "X${COLLECT_NAMES+set}" != Xset; then
8648 COLLECT_NAMES=
8649 export COLLECT_NAMES
8652 esac
8654 # Global variables:
8655 ofile=libtool
8656 can_build_shared=yes
8658 # All known linkers require a `.a' archive for static linking (except MSVC,
8659 # which needs '.lib').
8660 libext=a
8662 with_gnu_ld="$lt_cv_prog_gnu_ld"
8664 old_CC="$CC"
8665 old_CFLAGS="$CFLAGS"
8667 # Set sane defaults for various variables
8668 test -z "$CC" && CC=cc
8669 test -z "$LTCC" && LTCC=$CC
8670 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8671 test -z "$LD" && LD=ld
8672 test -z "$ac_objext" && ac_objext=o
8674 for cc_temp in $compiler""; do
8675 case $cc_temp in
8676 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8677 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8678 \-*) ;;
8679 *) break;;
8680 esac
8681 done
8682 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8685 # Only perform the check for file, if the check method requires it
8686 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8687 case $deplibs_check_method in
8688 file_magic*)
8689 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8691 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8692 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8693 $as_echo_n "(cached) " >&6
8694 else
8695 case $MAGIC_CMD in
8696 [\\/*] | ?:[\\/]*)
8697 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8700 lt_save_MAGIC_CMD="$MAGIC_CMD"
8701 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8702 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8703 for ac_dir in $ac_dummy; do
8704 IFS="$lt_save_ifs"
8705 test -z "$ac_dir" && ac_dir=.
8706 if test -f $ac_dir/${ac_tool_prefix}file; then
8707 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8708 if test -n "$file_magic_test_file"; then
8709 case $deplibs_check_method in
8710 "file_magic "*)
8711 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8712 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8713 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8714 $EGREP "$file_magic_regex" > /dev/null; then
8716 else
8717 cat <<_LT_EOF 1>&2
8719 *** Warning: the command libtool uses to detect shared libraries,
8720 *** $file_magic_cmd, produces output that libtool cannot recognize.
8721 *** The result is that libtool may fail to recognize shared libraries
8722 *** as such. This will affect the creation of libtool libraries that
8723 *** depend on shared libraries, but programs linked with such libtool
8724 *** libraries will work regardless of this problem. Nevertheless, you
8725 *** may want to report the problem to your system manager and/or to
8726 *** bug-libtool@gnu.org
8728 _LT_EOF
8729 fi ;;
8730 esac
8732 break
8734 done
8735 IFS="$lt_save_ifs"
8736 MAGIC_CMD="$lt_save_MAGIC_CMD"
8738 esac
8741 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8742 if test -n "$MAGIC_CMD"; then
8743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8744 $as_echo "$MAGIC_CMD" >&6; }
8745 else
8746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8747 $as_echo "no" >&6; }
8754 if test -z "$lt_cv_path_MAGIC_CMD"; then
8755 if test -n "$ac_tool_prefix"; then
8756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8757 $as_echo_n "checking for file... " >&6; }
8758 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8759 $as_echo_n "(cached) " >&6
8760 else
8761 case $MAGIC_CMD in
8762 [\\/*] | ?:[\\/]*)
8763 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8766 lt_save_MAGIC_CMD="$MAGIC_CMD"
8767 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8768 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8769 for ac_dir in $ac_dummy; do
8770 IFS="$lt_save_ifs"
8771 test -z "$ac_dir" && ac_dir=.
8772 if test -f $ac_dir/file; then
8773 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8774 if test -n "$file_magic_test_file"; then
8775 case $deplibs_check_method in
8776 "file_magic "*)
8777 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8778 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8779 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8780 $EGREP "$file_magic_regex" > /dev/null; then
8782 else
8783 cat <<_LT_EOF 1>&2
8785 *** Warning: the command libtool uses to detect shared libraries,
8786 *** $file_magic_cmd, produces output that libtool cannot recognize.
8787 *** The result is that libtool may fail to recognize shared libraries
8788 *** as such. This will affect the creation of libtool libraries that
8789 *** depend on shared libraries, but programs linked with such libtool
8790 *** libraries will work regardless of this problem. Nevertheless, you
8791 *** may want to report the problem to your system manager and/or to
8792 *** bug-libtool@gnu.org
8794 _LT_EOF
8795 fi ;;
8796 esac
8798 break
8800 done
8801 IFS="$lt_save_ifs"
8802 MAGIC_CMD="$lt_save_MAGIC_CMD"
8804 esac
8807 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8808 if test -n "$MAGIC_CMD"; then
8809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8810 $as_echo "$MAGIC_CMD" >&6; }
8811 else
8812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8813 $as_echo "no" >&6; }
8817 else
8818 MAGIC_CMD=:
8824 esac
8826 # Use C for the default configuration in the libtool script
8828 lt_save_CC="$CC"
8829 ac_ext=c
8830 ac_cpp='$CPP $CPPFLAGS'
8831 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8832 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8833 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8836 # Source file extension for C test sources.
8837 ac_ext=c
8839 # Object file extension for compiled C test sources.
8840 objext=o
8841 objext=$objext
8843 # Code to be used in simple compile tests
8844 lt_simple_compile_test_code="int some_variable = 0;"
8846 # Code to be used in simple link tests
8847 lt_simple_link_test_code='int main(){return(0);}'
8855 # If no C compiler was specified, use CC.
8856 LTCC=${LTCC-"$CC"}
8858 # If no C compiler flags were specified, use CFLAGS.
8859 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8861 # Allow CC to be a program name with arguments.
8862 compiler=$CC
8864 # Save the default compiler, since it gets overwritten when the other
8865 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8866 compiler_DEFAULT=$CC
8868 # save warnings/boilerplate of simple test code
8869 ac_outfile=conftest.$ac_objext
8870 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8871 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8872 _lt_compiler_boilerplate=`cat conftest.err`
8873 $RM conftest*
8875 ac_outfile=conftest.$ac_objext
8876 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8877 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8878 _lt_linker_boilerplate=`cat conftest.err`
8879 $RM -r conftest*
8882 ## CAVEAT EMPTOR:
8883 ## There is no encapsulation within the following macros, do not change
8884 ## the running order or otherwise move them around unless you know exactly
8885 ## what you are doing...
8886 if test -n "$compiler"; then
8888 lt_prog_compiler_no_builtin_flag=
8890 if test "$GCC" = yes; then
8891 case $cc_basename in
8892 nvcc*)
8893 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8895 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8896 esac
8898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8899 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8900 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8901 $as_echo_n "(cached) " >&6
8902 else
8903 lt_cv_prog_compiler_rtti_exceptions=no
8904 ac_outfile=conftest.$ac_objext
8905 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8906 lt_compiler_flag="-fno-rtti -fno-exceptions"
8907 # Insert the option either (1) after the last *FLAGS variable, or
8908 # (2) before a word containing "conftest.", or (3) at the end.
8909 # Note that $ac_compile itself does not contain backslashes and begins
8910 # with a dollar sign (not a hyphen), so the echo should work correctly.
8911 # The option is referenced via a variable to avoid confusing sed.
8912 lt_compile=`echo "$ac_compile" | $SED \
8913 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8914 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8915 -e 's:$: $lt_compiler_flag:'`
8916 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8917 (eval "$lt_compile" 2>conftest.err)
8918 ac_status=$?
8919 cat conftest.err >&5
8920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8921 if (exit $ac_status) && test -s "$ac_outfile"; then
8922 # The compiler can only warn and ignore the option if not recognized
8923 # So say no if there are warnings other than the usual output.
8924 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8925 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8926 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8927 lt_cv_prog_compiler_rtti_exceptions=yes
8930 $RM conftest*
8933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8934 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8936 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8937 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8938 else
8949 lt_prog_compiler_wl=
8950 lt_prog_compiler_pic=
8951 lt_prog_compiler_static=
8954 if test "$GCC" = yes; then
8955 lt_prog_compiler_wl='-Wl,'
8956 lt_prog_compiler_static='-static'
8958 case $host_os in
8959 aix*)
8960 # All AIX code is PIC.
8961 if test "$host_cpu" = ia64; then
8962 # AIX 5 now supports IA64 processor
8963 lt_prog_compiler_static='-Bstatic'
8967 amigaos*)
8968 case $host_cpu in
8969 powerpc)
8970 # see comment about AmigaOS4 .so support
8971 lt_prog_compiler_pic='-fPIC'
8973 m68k)
8974 # FIXME: we need at least 68020 code to build shared libraries, but
8975 # adding the `-m68020' flag to GCC prevents building anything better,
8976 # like `-m68040'.
8977 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8979 esac
8982 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8983 # PIC is the default for these OSes.
8986 mingw* | cygwin* | pw32* | os2* | cegcc*)
8987 # This hack is so that the source file can tell whether it is being
8988 # built for inclusion in a dll (and should export symbols for example).
8989 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8990 # (--disable-auto-import) libraries
8991 lt_prog_compiler_pic='-DDLL_EXPORT'
8994 darwin* | rhapsody*)
8995 # PIC is the default on this platform
8996 # Common symbols not allowed in MH_DYLIB files
8997 lt_prog_compiler_pic='-fno-common'
9000 haiku*)
9001 # PIC is the default for Haiku.
9002 # The "-static" flag exists, but is broken.
9003 lt_prog_compiler_static=
9006 hpux*)
9007 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9008 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9009 # sets the default TLS model and affects inlining.
9010 case $host_cpu in
9011 hppa*64*)
9012 # +Z the default
9015 lt_prog_compiler_pic='-fPIC'
9017 esac
9020 interix[3-9]*)
9021 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9022 # Instead, we relocate shared libraries at runtime.
9025 msdosdjgpp*)
9026 # Just because we use GCC doesn't mean we suddenly get shared libraries
9027 # on systems that don't support them.
9028 lt_prog_compiler_can_build_shared=no
9029 enable_shared=no
9032 *nto* | *qnx*)
9033 # QNX uses GNU C++, but need to define -shared option too, otherwise
9034 # it will coredump.
9035 lt_prog_compiler_pic='-fPIC -shared'
9038 sysv4*MP*)
9039 if test -d /usr/nec; then
9040 lt_prog_compiler_pic=-Kconform_pic
9045 lt_prog_compiler_pic='-fPIC'
9047 esac
9049 case $cc_basename in
9050 nvcc*) # Cuda Compiler Driver 2.2
9051 lt_prog_compiler_wl='-Xlinker '
9052 if test -n "$lt_prog_compiler_pic"; then
9053 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9056 esac
9057 else
9058 # PORTME Check for flag to pass linker flags through the system compiler.
9059 case $host_os in
9060 aix*)
9061 lt_prog_compiler_wl='-Wl,'
9062 if test "$host_cpu" = ia64; then
9063 # AIX 5 now supports IA64 processor
9064 lt_prog_compiler_static='-Bstatic'
9065 else
9066 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9070 mingw* | cygwin* | pw32* | os2* | cegcc*)
9071 # This hack is so that the source file can tell whether it is being
9072 # built for inclusion in a dll (and should export symbols for example).
9073 lt_prog_compiler_pic='-DDLL_EXPORT'
9076 hpux9* | hpux10* | hpux11*)
9077 lt_prog_compiler_wl='-Wl,'
9078 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9079 # not for PA HP-UX.
9080 case $host_cpu in
9081 hppa*64*|ia64*)
9082 # +Z the default
9085 lt_prog_compiler_pic='+Z'
9087 esac
9088 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9089 lt_prog_compiler_static='${wl}-a ${wl}archive'
9092 irix5* | irix6* | nonstopux*)
9093 lt_prog_compiler_wl='-Wl,'
9094 # PIC (with -KPIC) is the default.
9095 lt_prog_compiler_static='-non_shared'
9098 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9099 case $cc_basename in
9100 # old Intel for x86_64 which still supported -KPIC.
9101 ecc*)
9102 lt_prog_compiler_wl='-Wl,'
9103 lt_prog_compiler_pic='-KPIC'
9104 lt_prog_compiler_static='-static'
9106 # icc used to be incompatible with GCC.
9107 # ICC 10 doesn't accept -KPIC any more.
9108 icc* | ifort*)
9109 lt_prog_compiler_wl='-Wl,'
9110 lt_prog_compiler_pic='-fPIC'
9111 lt_prog_compiler_static='-static'
9113 # Lahey Fortran 8.1.
9114 lf95*)
9115 lt_prog_compiler_wl='-Wl,'
9116 lt_prog_compiler_pic='--shared'
9117 lt_prog_compiler_static='--static'
9119 nagfor*)
9120 # NAG Fortran compiler
9121 lt_prog_compiler_wl='-Wl,-Wl,,'
9122 lt_prog_compiler_pic='-PIC'
9123 lt_prog_compiler_static='-Bstatic'
9125 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9126 # Portland Group compilers (*not* the Pentium gcc compiler,
9127 # which looks to be a dead project)
9128 lt_prog_compiler_wl='-Wl,'
9129 lt_prog_compiler_pic='-fpic'
9130 lt_prog_compiler_static='-Bstatic'
9132 ccc*)
9133 lt_prog_compiler_wl='-Wl,'
9134 # All Alpha code is PIC.
9135 lt_prog_compiler_static='-non_shared'
9137 xl* | bgxl* | bgf* | mpixl*)
9138 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9139 lt_prog_compiler_wl='-Wl,'
9140 lt_prog_compiler_pic='-qpic'
9141 lt_prog_compiler_static='-qstaticlink'
9144 case `$CC -V 2>&1 | sed 5q` in
9145 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9146 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9147 lt_prog_compiler_pic='-KPIC'
9148 lt_prog_compiler_static='-Bstatic'
9149 lt_prog_compiler_wl=''
9151 *Sun\ F* | *Sun*Fortran*)
9152 lt_prog_compiler_pic='-KPIC'
9153 lt_prog_compiler_static='-Bstatic'
9154 lt_prog_compiler_wl='-Qoption ld '
9156 *Sun\ C*)
9157 # Sun C 5.9
9158 lt_prog_compiler_pic='-KPIC'
9159 lt_prog_compiler_static='-Bstatic'
9160 lt_prog_compiler_wl='-Wl,'
9162 *Intel*\ [CF]*Compiler*)
9163 lt_prog_compiler_wl='-Wl,'
9164 lt_prog_compiler_pic='-fPIC'
9165 lt_prog_compiler_static='-static'
9167 *Portland\ Group*)
9168 lt_prog_compiler_wl='-Wl,'
9169 lt_prog_compiler_pic='-fpic'
9170 lt_prog_compiler_static='-Bstatic'
9172 esac
9174 esac
9177 newsos6)
9178 lt_prog_compiler_pic='-KPIC'
9179 lt_prog_compiler_static='-Bstatic'
9182 *nto* | *qnx*)
9183 # QNX uses GNU C++, but need to define -shared option too, otherwise
9184 # it will coredump.
9185 lt_prog_compiler_pic='-fPIC -shared'
9188 osf3* | osf4* | osf5*)
9189 lt_prog_compiler_wl='-Wl,'
9190 # All OSF/1 code is PIC.
9191 lt_prog_compiler_static='-non_shared'
9194 rdos*)
9195 lt_prog_compiler_static='-non_shared'
9198 solaris*)
9199 lt_prog_compiler_pic='-KPIC'
9200 lt_prog_compiler_static='-Bstatic'
9201 case $cc_basename in
9202 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9203 lt_prog_compiler_wl='-Qoption ld ';;
9205 lt_prog_compiler_wl='-Wl,';;
9206 esac
9209 sunos4*)
9210 lt_prog_compiler_wl='-Qoption ld '
9211 lt_prog_compiler_pic='-PIC'
9212 lt_prog_compiler_static='-Bstatic'
9215 sysv4 | sysv4.2uw2* | sysv4.3*)
9216 lt_prog_compiler_wl='-Wl,'
9217 lt_prog_compiler_pic='-KPIC'
9218 lt_prog_compiler_static='-Bstatic'
9221 sysv4*MP*)
9222 if test -d /usr/nec ;then
9223 lt_prog_compiler_pic='-Kconform_pic'
9224 lt_prog_compiler_static='-Bstatic'
9228 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9229 lt_prog_compiler_wl='-Wl,'
9230 lt_prog_compiler_pic='-KPIC'
9231 lt_prog_compiler_static='-Bstatic'
9234 unicos*)
9235 lt_prog_compiler_wl='-Wl,'
9236 lt_prog_compiler_can_build_shared=no
9239 uts4*)
9240 lt_prog_compiler_pic='-pic'
9241 lt_prog_compiler_static='-Bstatic'
9245 lt_prog_compiler_can_build_shared=no
9247 esac
9250 case $host_os in
9251 # For platforms which do not support PIC, -DPIC is meaningless:
9252 *djgpp*)
9253 lt_prog_compiler_pic=
9256 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9258 esac
9260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9261 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9262 if ${lt_cv_prog_compiler_pic+:} false; then :
9263 $as_echo_n "(cached) " >&6
9264 else
9265 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9268 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9269 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9272 # Check to make sure the PIC flag actually works.
9274 if test -n "$lt_prog_compiler_pic"; then
9275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9276 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9277 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9278 $as_echo_n "(cached) " >&6
9279 else
9280 lt_cv_prog_compiler_pic_works=no
9281 ac_outfile=conftest.$ac_objext
9282 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9283 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9284 # Insert the option either (1) after the last *FLAGS variable, or
9285 # (2) before a word containing "conftest.", or (3) at the end.
9286 # Note that $ac_compile itself does not contain backslashes and begins
9287 # with a dollar sign (not a hyphen), so the echo should work correctly.
9288 # The option is referenced via a variable to avoid confusing sed.
9289 lt_compile=`echo "$ac_compile" | $SED \
9290 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9291 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9292 -e 's:$: $lt_compiler_flag:'`
9293 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9294 (eval "$lt_compile" 2>conftest.err)
9295 ac_status=$?
9296 cat conftest.err >&5
9297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9298 if (exit $ac_status) && test -s "$ac_outfile"; then
9299 # The compiler can only warn and ignore the option if not recognized
9300 # So say no if there are warnings other than the usual output.
9301 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9302 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9303 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9304 lt_cv_prog_compiler_pic_works=yes
9307 $RM conftest*
9310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9311 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9313 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9314 case $lt_prog_compiler_pic in
9315 "" | " "*) ;;
9316 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9317 esac
9318 else
9319 lt_prog_compiler_pic=
9320 lt_prog_compiler_can_build_shared=no
9336 # Check to make sure the static flag actually works.
9338 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9340 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9341 if ${lt_cv_prog_compiler_static_works+:} false; then :
9342 $as_echo_n "(cached) " >&6
9343 else
9344 lt_cv_prog_compiler_static_works=no
9345 save_LDFLAGS="$LDFLAGS"
9346 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9347 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9348 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9349 # The linker can only warn and ignore the option if not recognized
9350 # So say no if there are warnings
9351 if test -s conftest.err; then
9352 # Append any errors to the config.log.
9353 cat conftest.err 1>&5
9354 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9355 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9356 if diff conftest.exp conftest.er2 >/dev/null; then
9357 lt_cv_prog_compiler_static_works=yes
9359 else
9360 lt_cv_prog_compiler_static_works=yes
9363 $RM -r conftest*
9364 LDFLAGS="$save_LDFLAGS"
9367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9368 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9370 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9372 else
9373 lt_prog_compiler_static=
9382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9383 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9384 if ${lt_cv_prog_compiler_c_o+:} false; then :
9385 $as_echo_n "(cached) " >&6
9386 else
9387 lt_cv_prog_compiler_c_o=no
9388 $RM -r conftest 2>/dev/null
9389 mkdir conftest
9390 cd conftest
9391 mkdir out
9392 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9394 lt_compiler_flag="-o out/conftest2.$ac_objext"
9395 # Insert the option either (1) after the last *FLAGS variable, or
9396 # (2) before a word containing "conftest.", or (3) at the end.
9397 # Note that $ac_compile itself does not contain backslashes and begins
9398 # with a dollar sign (not a hyphen), so the echo should work correctly.
9399 lt_compile=`echo "$ac_compile" | $SED \
9400 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9401 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9402 -e 's:$: $lt_compiler_flag:'`
9403 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9404 (eval "$lt_compile" 2>out/conftest.err)
9405 ac_status=$?
9406 cat out/conftest.err >&5
9407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9408 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9409 then
9410 # The compiler can only warn and ignore the option if not recognized
9411 # So say no if there are warnings
9412 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9413 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9414 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9415 lt_cv_prog_compiler_c_o=yes
9418 chmod u+w . 2>&5
9419 $RM conftest*
9420 # SGI C++ compiler will create directory out/ii_files/ for
9421 # template instantiation
9422 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9423 $RM out/* && rmdir out
9424 cd ..
9425 $RM -r conftest
9426 $RM conftest*
9429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9430 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9438 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9439 if ${lt_cv_prog_compiler_c_o+:} false; then :
9440 $as_echo_n "(cached) " >&6
9441 else
9442 lt_cv_prog_compiler_c_o=no
9443 $RM -r conftest 2>/dev/null
9444 mkdir conftest
9445 cd conftest
9446 mkdir out
9447 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9449 lt_compiler_flag="-o out/conftest2.$ac_objext"
9450 # Insert the option either (1) after the last *FLAGS variable, or
9451 # (2) before a word containing "conftest.", or (3) at the end.
9452 # Note that $ac_compile itself does not contain backslashes and begins
9453 # with a dollar sign (not a hyphen), so the echo should work correctly.
9454 lt_compile=`echo "$ac_compile" | $SED \
9455 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9456 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9457 -e 's:$: $lt_compiler_flag:'`
9458 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9459 (eval "$lt_compile" 2>out/conftest.err)
9460 ac_status=$?
9461 cat out/conftest.err >&5
9462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9463 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9464 then
9465 # The compiler can only warn and ignore the option if not recognized
9466 # So say no if there are warnings
9467 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9468 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9469 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9470 lt_cv_prog_compiler_c_o=yes
9473 chmod u+w . 2>&5
9474 $RM conftest*
9475 # SGI C++ compiler will create directory out/ii_files/ for
9476 # template instantiation
9477 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9478 $RM out/* && rmdir out
9479 cd ..
9480 $RM -r conftest
9481 $RM conftest*
9484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9485 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9490 hard_links="nottested"
9491 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9492 # do not overwrite the value of need_locks provided by the user
9493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9494 $as_echo_n "checking if we can lock with hard links... " >&6; }
9495 hard_links=yes
9496 $RM conftest*
9497 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9498 touch conftest.a
9499 ln conftest.a conftest.b 2>&5 || hard_links=no
9500 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9502 $as_echo "$hard_links" >&6; }
9503 if test "$hard_links" = no; then
9504 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9505 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9506 need_locks=warn
9508 else
9509 need_locks=no
9517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9518 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9520 runpath_var=
9521 allow_undefined_flag=
9522 always_export_symbols=no
9523 archive_cmds=
9524 archive_expsym_cmds=
9525 compiler_needs_object=no
9526 enable_shared_with_static_runtimes=no
9527 export_dynamic_flag_spec=
9528 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9529 hardcode_automatic=no
9530 hardcode_direct=no
9531 hardcode_direct_absolute=no
9532 hardcode_libdir_flag_spec=
9533 hardcode_libdir_separator=
9534 hardcode_minus_L=no
9535 hardcode_shlibpath_var=unsupported
9536 inherit_rpath=no
9537 link_all_deplibs=unknown
9538 module_cmds=
9539 module_expsym_cmds=
9540 old_archive_from_new_cmds=
9541 old_archive_from_expsyms_cmds=
9542 thread_safe_flag_spec=
9543 whole_archive_flag_spec=
9544 # include_expsyms should be a list of space-separated symbols to be *always*
9545 # included in the symbol list
9546 include_expsyms=
9547 # exclude_expsyms can be an extended regexp of symbols to exclude
9548 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9549 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9550 # as well as any symbol that contains `d'.
9551 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9552 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9553 # platforms (ab)use it in PIC code, but their linkers get confused if
9554 # the symbol is explicitly referenced. Since portable code cannot
9555 # rely on this symbol name, it's probably fine to never include it in
9556 # preloaded symbol tables.
9557 # Exclude shared library initialization/finalization symbols.
9558 extract_expsyms_cmds=
9560 case $host_os in
9561 cygwin* | mingw* | pw32* | cegcc*)
9562 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9563 # When not using gcc, we currently assume that we are using
9564 # Microsoft Visual C++.
9565 if test "$GCC" != yes; then
9566 with_gnu_ld=no
9569 interix*)
9570 # we just hope/assume this is gcc and not c89 (= MSVC++)
9571 with_gnu_ld=yes
9573 openbsd*)
9574 with_gnu_ld=no
9576 esac
9578 ld_shlibs=yes
9580 # On some targets, GNU ld is compatible enough with the native linker
9581 # that we're better off using the native interface for both.
9582 lt_use_gnu_ld_interface=no
9583 if test "$with_gnu_ld" = yes; then
9584 case $host_os in
9585 aix*)
9586 # The AIX port of GNU ld has always aspired to compatibility
9587 # with the native linker. However, as the warning in the GNU ld
9588 # block says, versions before 2.19.5* couldn't really create working
9589 # shared libraries, regardless of the interface used.
9590 case `$LD -v 2>&1` in
9591 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9592 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9593 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9595 lt_use_gnu_ld_interface=yes
9597 esac
9600 lt_use_gnu_ld_interface=yes
9602 esac
9605 if test "$lt_use_gnu_ld_interface" = yes; then
9606 # If archive_cmds runs LD, not CC, wlarc should be empty
9607 wlarc='${wl}'
9609 # Set some defaults for GNU ld with shared library support. These
9610 # are reset later if shared libraries are not supported. Putting them
9611 # here allows them to be overridden if necessary.
9612 runpath_var=LD_RUN_PATH
9613 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9614 export_dynamic_flag_spec='${wl}--export-dynamic'
9615 # ancient GNU ld didn't support --whole-archive et. al.
9616 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9617 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9618 else
9619 whole_archive_flag_spec=
9621 supports_anon_versioning=no
9622 case `$LD -v 2>&1` in
9623 *GNU\ gold*) supports_anon_versioning=yes ;;
9624 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9625 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9626 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9627 *\ 2.11.*) ;; # other 2.11 versions
9628 *) supports_anon_versioning=yes ;;
9629 esac
9631 # See if GNU ld supports shared libraries.
9632 case $host_os in
9633 aix[3-9]*)
9634 # On AIX/PPC, the GNU linker is very broken
9635 if test "$host_cpu" != ia64; then
9636 ld_shlibs=no
9637 cat <<_LT_EOF 1>&2
9639 *** Warning: the GNU linker, at least up to release 2.19, is reported
9640 *** to be unable to reliably create shared libraries on AIX.
9641 *** Therefore, libtool is disabling shared libraries support. If you
9642 *** really care for shared libraries, you may want to install binutils
9643 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9644 *** You will then need to restart the configuration process.
9646 _LT_EOF
9650 amigaos*)
9651 case $host_cpu in
9652 powerpc)
9653 # see comment about AmigaOS4 .so support
9654 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9655 archive_expsym_cmds=''
9657 m68k)
9658 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)'
9659 hardcode_libdir_flag_spec='-L$libdir'
9660 hardcode_minus_L=yes
9662 esac
9665 beos*)
9666 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9667 allow_undefined_flag=unsupported
9668 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9669 # support --undefined. This deserves some investigation. FIXME
9670 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9671 else
9672 ld_shlibs=no
9676 cygwin* | mingw* | pw32* | cegcc*)
9677 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9678 # as there is no search path for DLLs.
9679 hardcode_libdir_flag_spec='-L$libdir'
9680 export_dynamic_flag_spec='${wl}--export-all-symbols'
9681 allow_undefined_flag=unsupported
9682 always_export_symbols=no
9683 enable_shared_with_static_runtimes=yes
9684 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'
9685 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9687 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9688 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9689 # If the export-symbols file already is a .def file (1st line
9690 # is EXPORTS), use it as is; otherwise, prepend...
9691 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9692 cp $export_symbols $output_objdir/$soname.def;
9693 else
9694 echo EXPORTS > $output_objdir/$soname.def;
9695 cat $export_symbols >> $output_objdir/$soname.def;
9697 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9698 else
9699 ld_shlibs=no
9703 haiku*)
9704 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9705 link_all_deplibs=yes
9708 interix[3-9]*)
9709 hardcode_direct=no
9710 hardcode_shlibpath_var=no
9711 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9712 export_dynamic_flag_spec='${wl}-E'
9713 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9714 # Instead, shared libraries are loaded at an image base (0x10000000 by
9715 # default) and relocated if they conflict, which is a slow very memory
9716 # consuming and fragmenting process. To avoid this, we pick a random,
9717 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9718 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9719 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9720 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'
9723 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9724 tmp_diet=no
9725 if test "$host_os" = linux-dietlibc; then
9726 case $cc_basename in
9727 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9728 esac
9730 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9731 && test "$tmp_diet" = no
9732 then
9733 tmp_addflag=' $pic_flag'
9734 tmp_sharedflag='-shared'
9735 case $cc_basename,$host_cpu in
9736 pgcc*) # Portland Group C compiler
9737 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'
9738 tmp_addflag=' $pic_flag'
9740 pgf77* | pgf90* | pgf95* | pgfortran*)
9741 # Portland Group f77 and f90 compilers
9742 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'
9743 tmp_addflag=' $pic_flag -Mnomain' ;;
9744 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9745 tmp_addflag=' -i_dynamic' ;;
9746 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9747 tmp_addflag=' -i_dynamic -nofor_main' ;;
9748 ifc* | ifort*) # Intel Fortran compiler
9749 tmp_addflag=' -nofor_main' ;;
9750 lf95*) # Lahey Fortran 8.1
9751 whole_archive_flag_spec=
9752 tmp_sharedflag='--shared' ;;
9753 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9754 tmp_sharedflag='-qmkshrobj'
9755 tmp_addflag= ;;
9756 nvcc*) # Cuda Compiler Driver 2.2
9757 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'
9758 compiler_needs_object=yes
9760 esac
9761 case `$CC -V 2>&1 | sed 5q` in
9762 *Sun\ C*) # Sun C 5.9
9763 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'
9764 compiler_needs_object=yes
9765 tmp_sharedflag='-G' ;;
9766 *Sun\ F*) # Sun Fortran 8.3
9767 tmp_sharedflag='-G' ;;
9768 esac
9769 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9771 if test "x$supports_anon_versioning" = xyes; then
9772 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9773 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9774 echo "local: *; };" >> $output_objdir/$libname.ver~
9775 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9778 case $cc_basename in
9779 xlf* | bgf* | bgxlf* | mpixlf*)
9780 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9781 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9782 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9783 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9784 if test "x$supports_anon_versioning" = xyes; then
9785 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9786 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9787 echo "local: *; };" >> $output_objdir/$libname.ver~
9788 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9791 esac
9792 else
9793 ld_shlibs=no
9797 netbsd*)
9798 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9799 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9800 wlarc=
9801 else
9802 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9803 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9807 solaris*)
9808 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9809 ld_shlibs=no
9810 cat <<_LT_EOF 1>&2
9812 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9813 *** create shared libraries on Solaris systems. Therefore, libtool
9814 *** is disabling shared libraries support. We urge you to upgrade GNU
9815 *** binutils to release 2.9.1 or newer. Another option is to modify
9816 *** your PATH or compiler configuration so that the native linker is
9817 *** used, and then restart.
9819 _LT_EOF
9820 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9821 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9822 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9823 else
9824 ld_shlibs=no
9828 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9829 case `$LD -v 2>&1` in
9830 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9831 ld_shlibs=no
9832 cat <<_LT_EOF 1>&2
9834 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9835 *** reliably create shared libraries on SCO systems. Therefore, libtool
9836 *** is disabling shared libraries support. We urge you to upgrade GNU
9837 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9838 *** your PATH or compiler configuration so that the native linker is
9839 *** used, and then restart.
9841 _LT_EOF
9844 # For security reasons, it is highly recommended that you always
9845 # use absolute paths for naming shared libraries, and exclude the
9846 # DT_RUNPATH tag from executables and libraries. But doing so
9847 # requires that you compile everything twice, which is a pain.
9848 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9849 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9850 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9851 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9852 else
9853 ld_shlibs=no
9856 esac
9859 sunos4*)
9860 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9861 wlarc=
9862 hardcode_direct=yes
9863 hardcode_shlibpath_var=no
9867 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9868 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9869 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9870 else
9871 ld_shlibs=no
9874 esac
9876 if test "$ld_shlibs" = no; then
9877 runpath_var=
9878 hardcode_libdir_flag_spec=
9879 export_dynamic_flag_spec=
9880 whole_archive_flag_spec=
9882 else
9883 # PORTME fill in a description of your system's linker (not GNU ld)
9884 case $host_os in
9885 aix3*)
9886 allow_undefined_flag=unsupported
9887 always_export_symbols=yes
9888 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'
9889 # Note: this linker hardcodes the directories in LIBPATH if there
9890 # are no directories specified by -L.
9891 hardcode_minus_L=yes
9892 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9893 # Neither direct hardcoding nor static linking is supported with a
9894 # broken collect2.
9895 hardcode_direct=unsupported
9899 aix[4-9]*)
9900 if test "$host_cpu" = ia64; then
9901 # On IA64, the linker does run time linking by default, so we don't
9902 # have to do anything special.
9903 aix_use_runtimelinking=no
9904 exp_sym_flag='-Bexport'
9905 no_entry_flag=""
9906 else
9907 # If we're using GNU nm, then we don't want the "-C" option.
9908 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9909 # Also, AIX nm treats weak defined symbols like other global
9910 # defined symbols, whereas GNU nm marks them as "W".
9911 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9912 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9913 else
9914 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9916 aix_use_runtimelinking=no
9918 # Test if we are trying to use run time linking or normal
9919 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9920 # need to do runtime linking.
9921 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9922 for ld_flag in $LDFLAGS; do
9923 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9924 aix_use_runtimelinking=yes
9925 break
9927 done
9929 esac
9931 exp_sym_flag='-bexport'
9932 no_entry_flag='-bnoentry'
9935 # When large executables or shared objects are built, AIX ld can
9936 # have problems creating the table of contents. If linking a library
9937 # or program results in "error TOC overflow" add -mminimal-toc to
9938 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9939 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9941 archive_cmds=''
9942 hardcode_direct=yes
9943 hardcode_direct_absolute=yes
9944 hardcode_libdir_separator=':'
9945 link_all_deplibs=yes
9946 file_list_spec='${wl}-f,'
9948 if test "$GCC" = yes; then
9949 case $host_os in aix4.[012]|aix4.[012].*)
9950 # We only want to do this on AIX 4.2 and lower, the check
9951 # below for broken collect2 doesn't work under 4.3+
9952 collect2name=`${CC} -print-prog-name=collect2`
9953 if test -f "$collect2name" &&
9954 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9955 then
9956 # We have reworked collect2
9958 else
9959 # We have old collect2
9960 hardcode_direct=unsupported
9961 # It fails to find uninstalled libraries when the uninstalled
9962 # path is not listed in the libpath. Setting hardcode_minus_L
9963 # to unsupported forces relinking
9964 hardcode_minus_L=yes
9965 hardcode_libdir_flag_spec='-L$libdir'
9966 hardcode_libdir_separator=
9969 esac
9970 shared_flag='-shared'
9971 if test "$aix_use_runtimelinking" = yes; then
9972 shared_flag="$shared_flag "'${wl}-G'
9974 else
9975 # not using gcc
9976 if test "$host_cpu" = ia64; then
9977 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9978 # chokes on -Wl,-G. The following line is correct:
9979 shared_flag='-G'
9980 else
9981 if test "$aix_use_runtimelinking" = yes; then
9982 shared_flag='${wl}-G'
9983 else
9984 shared_flag='${wl}-bM:SRE'
9989 export_dynamic_flag_spec='${wl}-bexpall'
9990 # It seems that -bexpall does not export symbols beginning with
9991 # underscore (_), so it is better to generate a list of symbols to export.
9992 always_export_symbols=yes
9993 if test "$aix_use_runtimelinking" = yes; then
9994 # Warning - without using the other runtime loading flags (-brtl),
9995 # -berok will link without error, but may produce a broken library.
9996 allow_undefined_flag='-berok'
9997 # Determine the default libpath from the value encoded in an
9998 # empty executable.
9999 if test "${lt_cv_aix_libpath+set}" = set; then
10000 aix_libpath=$lt_cv_aix_libpath
10001 else
10002 if ${lt_cv_aix_libpath_+:} false; then :
10003 $as_echo_n "(cached) " >&6
10004 else
10005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10006 /* end confdefs.h. */
10009 main ()
10013 return 0;
10015 _ACEOF
10016 if ac_fn_c_try_link "$LINENO"; then :
10018 lt_aix_libpath_sed='
10019 /Import File Strings/,/^$/ {
10020 /^0/ {
10021 s/^0 *\([^ ]*\) *$/\1/
10025 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10026 # Check for a 64-bit object if we didn't find anything.
10027 if test -z "$lt_cv_aix_libpath_"; then
10028 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10031 rm -f core conftest.err conftest.$ac_objext \
10032 conftest$ac_exeext conftest.$ac_ext
10033 if test -z "$lt_cv_aix_libpath_"; then
10034 lt_cv_aix_libpath_="/usr/lib:/lib"
10039 aix_libpath=$lt_cv_aix_libpath_
10042 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10043 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10044 else
10045 if test "$host_cpu" = ia64; then
10046 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10047 allow_undefined_flag="-z nodefs"
10048 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"
10049 else
10050 # Determine the default libpath from the value encoded in an
10051 # empty executable.
10052 if test "${lt_cv_aix_libpath+set}" = set; then
10053 aix_libpath=$lt_cv_aix_libpath
10054 else
10055 if ${lt_cv_aix_libpath_+:} false; then :
10056 $as_echo_n "(cached) " >&6
10057 else
10058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10059 /* end confdefs.h. */
10062 main ()
10066 return 0;
10068 _ACEOF
10069 if ac_fn_c_try_link "$LINENO"; then :
10071 lt_aix_libpath_sed='
10072 /Import File Strings/,/^$/ {
10073 /^0/ {
10074 s/^0 *\([^ ]*\) *$/\1/
10078 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10079 # Check for a 64-bit object if we didn't find anything.
10080 if test -z "$lt_cv_aix_libpath_"; then
10081 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10084 rm -f core conftest.err conftest.$ac_objext \
10085 conftest$ac_exeext conftest.$ac_ext
10086 if test -z "$lt_cv_aix_libpath_"; then
10087 lt_cv_aix_libpath_="/usr/lib:/lib"
10092 aix_libpath=$lt_cv_aix_libpath_
10095 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10096 # Warning - without using the other run time loading flags,
10097 # -berok will link without error, but may produce a broken library.
10098 no_undefined_flag=' ${wl}-bernotok'
10099 allow_undefined_flag=' ${wl}-berok'
10100 if test "$with_gnu_ld" = yes; then
10101 # We only use this code for GNU lds that support --whole-archive.
10102 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10103 else
10104 # Exported symbols can be pulled into shared objects from archives
10105 whole_archive_flag_spec='$convenience'
10107 archive_cmds_need_lc=yes
10108 # This is similar to how AIX traditionally builds its shared libraries.
10109 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10114 amigaos*)
10115 case $host_cpu in
10116 powerpc)
10117 # see comment about AmigaOS4 .so support
10118 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10119 archive_expsym_cmds=''
10121 m68k)
10122 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)'
10123 hardcode_libdir_flag_spec='-L$libdir'
10124 hardcode_minus_L=yes
10126 esac
10129 bsdi[45]*)
10130 export_dynamic_flag_spec=-rdynamic
10133 cygwin* | mingw* | pw32* | cegcc*)
10134 # When not using gcc, we currently assume that we are using
10135 # Microsoft Visual C++.
10136 # hardcode_libdir_flag_spec is actually meaningless, as there is
10137 # no search path for DLLs.
10138 case $cc_basename in
10139 cl*)
10140 # Native MSVC
10141 hardcode_libdir_flag_spec=' '
10142 allow_undefined_flag=unsupported
10143 always_export_symbols=yes
10144 file_list_spec='@'
10145 # Tell ltmain to make .lib files, not .a files.
10146 libext=lib
10147 # Tell ltmain to make .dll files, not .so files.
10148 shrext_cmds=".dll"
10149 # FIXME: Setting linknames here is a bad hack.
10150 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10151 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10152 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10153 else
10154 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10156 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10157 linknames='
10158 # The linker will not automatically build a static lib if we build a DLL.
10159 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10160 enable_shared_with_static_runtimes=yes
10161 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10162 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10163 # Don't use ranlib
10164 old_postinstall_cmds='chmod 644 $oldlib'
10165 postlink_cmds='lt_outputfile="@OUTPUT@"~
10166 lt_tool_outputfile="@TOOL_OUTPUT@"~
10167 case $lt_outputfile in
10168 *.exe|*.EXE) ;;
10170 lt_outputfile="$lt_outputfile.exe"
10171 lt_tool_outputfile="$lt_tool_outputfile.exe"
10173 esac~
10174 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10175 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10176 $RM "$lt_outputfile.manifest";
10180 # Assume MSVC wrapper
10181 hardcode_libdir_flag_spec=' '
10182 allow_undefined_flag=unsupported
10183 # Tell ltmain to make .lib files, not .a files.
10184 libext=lib
10185 # Tell ltmain to make .dll files, not .so files.
10186 shrext_cmds=".dll"
10187 # FIXME: Setting linknames here is a bad hack.
10188 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10189 # The linker will automatically build a .lib file if we build a DLL.
10190 old_archive_from_new_cmds='true'
10191 # FIXME: Should let the user specify the lib program.
10192 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10193 enable_shared_with_static_runtimes=yes
10195 esac
10198 darwin* | rhapsody*)
10201 archive_cmds_need_lc=no
10202 hardcode_direct=no
10203 hardcode_automatic=yes
10204 hardcode_shlibpath_var=unsupported
10205 if test "$lt_cv_ld_force_load" = "yes"; then
10206 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\"`'
10208 else
10209 whole_archive_flag_spec=''
10211 link_all_deplibs=yes
10212 allow_undefined_flag="$_lt_dar_allow_undefined"
10213 case $cc_basename in
10214 ifort*) _lt_dar_can_shared=yes ;;
10215 *) _lt_dar_can_shared=$GCC ;;
10216 esac
10217 if test "$_lt_dar_can_shared" = "yes"; then
10218 output_verbose_link_cmd=func_echo_all
10219 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10220 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10221 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}"
10222 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}"
10224 else
10225 ld_shlibs=no
10230 dgux*)
10231 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10232 hardcode_libdir_flag_spec='-L$libdir'
10233 hardcode_shlibpath_var=no
10236 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10237 # support. Future versions do this automatically, but an explicit c++rt0.o
10238 # does not break anything, and helps significantly (at the cost of a little
10239 # extra space).
10240 freebsd2.2*)
10241 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10242 hardcode_libdir_flag_spec='-R$libdir'
10243 hardcode_direct=yes
10244 hardcode_shlibpath_var=no
10247 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10248 freebsd2.*)
10249 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10250 hardcode_direct=yes
10251 hardcode_minus_L=yes
10252 hardcode_shlibpath_var=no
10255 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10256 freebsd* | dragonfly*)
10257 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10258 hardcode_libdir_flag_spec='-R$libdir'
10259 hardcode_direct=yes
10260 hardcode_shlibpath_var=no
10263 hpux9*)
10264 if test "$GCC" = yes; then
10265 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10266 else
10267 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10269 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10270 hardcode_libdir_separator=:
10271 hardcode_direct=yes
10273 # hardcode_minus_L: Not really in the search PATH,
10274 # but as the default location of the library.
10275 hardcode_minus_L=yes
10276 export_dynamic_flag_spec='${wl}-E'
10279 hpux10*)
10280 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10281 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10282 else
10283 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10285 if test "$with_gnu_ld" = no; then
10286 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10287 hardcode_libdir_separator=:
10288 hardcode_direct=yes
10289 hardcode_direct_absolute=yes
10290 export_dynamic_flag_spec='${wl}-E'
10291 # hardcode_minus_L: Not really in the search PATH,
10292 # but as the default location of the library.
10293 hardcode_minus_L=yes
10297 hpux11*)
10298 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10299 case $host_cpu in
10300 hppa*64*)
10301 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10303 ia64*)
10304 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10307 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10309 esac
10310 else
10311 case $host_cpu in
10312 hppa*64*)
10313 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10315 ia64*)
10316 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10320 # Older versions of the 11.00 compiler do not understand -b yet
10321 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10323 $as_echo_n "checking if $CC understands -b... " >&6; }
10324 if ${lt_cv_prog_compiler__b+:} false; then :
10325 $as_echo_n "(cached) " >&6
10326 else
10327 lt_cv_prog_compiler__b=no
10328 save_LDFLAGS="$LDFLAGS"
10329 LDFLAGS="$LDFLAGS -b"
10330 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10331 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10332 # The linker can only warn and ignore the option if not recognized
10333 # So say no if there are warnings
10334 if test -s conftest.err; then
10335 # Append any errors to the config.log.
10336 cat conftest.err 1>&5
10337 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10338 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10339 if diff conftest.exp conftest.er2 >/dev/null; then
10340 lt_cv_prog_compiler__b=yes
10342 else
10343 lt_cv_prog_compiler__b=yes
10346 $RM -r conftest*
10347 LDFLAGS="$save_LDFLAGS"
10350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10351 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10353 if test x"$lt_cv_prog_compiler__b" = xyes; then
10354 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10355 else
10356 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10360 esac
10362 if test "$with_gnu_ld" = no; then
10363 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10364 hardcode_libdir_separator=:
10366 case $host_cpu in
10367 hppa*64*|ia64*)
10368 hardcode_direct=no
10369 hardcode_shlibpath_var=no
10372 hardcode_direct=yes
10373 hardcode_direct_absolute=yes
10374 export_dynamic_flag_spec='${wl}-E'
10376 # hardcode_minus_L: Not really in the search PATH,
10377 # but as the default location of the library.
10378 hardcode_minus_L=yes
10380 esac
10384 irix5* | irix6* | nonstopux*)
10385 if test "$GCC" = yes; then
10386 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'
10387 # Try to use the -exported_symbol ld option, if it does not
10388 # work, assume that -exports_file does not work either and
10389 # implicitly export all symbols.
10390 # This should be the same for all languages, so no per-tag cache variable.
10391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10392 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10393 if ${lt_cv_irix_exported_symbol+:} false; then :
10394 $as_echo_n "(cached) " >&6
10395 else
10396 save_LDFLAGS="$LDFLAGS"
10397 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10399 /* end confdefs.h. */
10400 int foo (void) { return 0; }
10401 _ACEOF
10402 if ac_fn_c_try_link "$LINENO"; then :
10403 lt_cv_irix_exported_symbol=yes
10404 else
10405 lt_cv_irix_exported_symbol=no
10407 rm -f core conftest.err conftest.$ac_objext \
10408 conftest$ac_exeext conftest.$ac_ext
10409 LDFLAGS="$save_LDFLAGS"
10411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10412 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10413 if test "$lt_cv_irix_exported_symbol" = yes; then
10414 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'
10416 else
10417 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'
10418 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'
10420 archive_cmds_need_lc='no'
10421 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10422 hardcode_libdir_separator=:
10423 inherit_rpath=yes
10424 link_all_deplibs=yes
10427 netbsd*)
10428 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10429 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10430 else
10431 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10433 hardcode_libdir_flag_spec='-R$libdir'
10434 hardcode_direct=yes
10435 hardcode_shlibpath_var=no
10438 newsos6)
10439 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10440 hardcode_direct=yes
10441 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10442 hardcode_libdir_separator=:
10443 hardcode_shlibpath_var=no
10446 *nto* | *qnx*)
10449 openbsd*)
10450 if test -f /usr/libexec/ld.so; then
10451 hardcode_direct=yes
10452 hardcode_shlibpath_var=no
10453 hardcode_direct_absolute=yes
10454 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10455 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10456 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10457 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10458 export_dynamic_flag_spec='${wl}-E'
10459 else
10460 case $host_os in
10461 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10462 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10463 hardcode_libdir_flag_spec='-R$libdir'
10466 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10467 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10469 esac
10471 else
10472 ld_shlibs=no
10476 os2*)
10477 hardcode_libdir_flag_spec='-L$libdir'
10478 hardcode_minus_L=yes
10479 allow_undefined_flag=unsupported
10480 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
10481 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10484 osf3*)
10485 if test "$GCC" = yes; then
10486 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10487 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'
10488 else
10489 allow_undefined_flag=' -expect_unresolved \*'
10490 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'
10492 archive_cmds_need_lc='no'
10493 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10494 hardcode_libdir_separator=:
10497 osf4* | osf5*) # as osf3* with the addition of -msym flag
10498 if test "$GCC" = yes; then
10499 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10500 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'
10501 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10502 else
10503 allow_undefined_flag=' -expect_unresolved \*'
10504 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'
10505 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~
10506 $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'
10508 # Both c and cxx compiler support -rpath directly
10509 hardcode_libdir_flag_spec='-rpath $libdir'
10511 archive_cmds_need_lc='no'
10512 hardcode_libdir_separator=:
10515 solaris*)
10516 no_undefined_flag=' -z defs'
10517 if test "$GCC" = yes; then
10518 wlarc='${wl}'
10519 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10520 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10521 $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'
10522 else
10523 case `$CC -V 2>&1` in
10524 *"Compilers 5.0"*)
10525 wlarc=''
10526 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10527 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10528 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10531 wlarc='${wl}'
10532 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10533 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10534 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10536 esac
10538 hardcode_libdir_flag_spec='-R$libdir'
10539 hardcode_shlibpath_var=no
10540 case $host_os in
10541 solaris2.[0-5] | solaris2.[0-5].*) ;;
10543 # The compiler driver will combine and reorder linker options,
10544 # but understands `-z linker_flag'. GCC discards it without `$wl',
10545 # but is careful enough not to reorder.
10546 # Supported since Solaris 2.6 (maybe 2.5.1?)
10547 if test "$GCC" = yes; then
10548 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10549 else
10550 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10553 esac
10554 link_all_deplibs=yes
10557 sunos4*)
10558 if test "x$host_vendor" = xsequent; then
10559 # Use $CC to link under sequent, because it throws in some extra .o
10560 # files that make .init and .fini sections work.
10561 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10562 else
10563 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10565 hardcode_libdir_flag_spec='-L$libdir'
10566 hardcode_direct=yes
10567 hardcode_minus_L=yes
10568 hardcode_shlibpath_var=no
10571 sysv4)
10572 case $host_vendor in
10573 sni)
10574 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10575 hardcode_direct=yes # is this really true???
10577 siemens)
10578 ## LD is ld it makes a PLAMLIB
10579 ## CC just makes a GrossModule.
10580 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10581 reload_cmds='$CC -r -o $output$reload_objs'
10582 hardcode_direct=no
10584 motorola)
10585 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10586 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10588 esac
10589 runpath_var='LD_RUN_PATH'
10590 hardcode_shlibpath_var=no
10593 sysv4.3*)
10594 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10595 hardcode_shlibpath_var=no
10596 export_dynamic_flag_spec='-Bexport'
10599 sysv4*MP*)
10600 if test -d /usr/nec; then
10601 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10602 hardcode_shlibpath_var=no
10603 runpath_var=LD_RUN_PATH
10604 hardcode_runpath_var=yes
10605 ld_shlibs=yes
10609 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10610 no_undefined_flag='${wl}-z,text'
10611 archive_cmds_need_lc=no
10612 hardcode_shlibpath_var=no
10613 runpath_var='LD_RUN_PATH'
10615 if test "$GCC" = yes; then
10616 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10617 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10618 else
10619 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10620 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10624 sysv5* | sco3.2v5* | sco5v6*)
10625 # Note: We can NOT use -z defs as we might desire, because we do not
10626 # link with -lc, and that would cause any symbols used from libc to
10627 # always be unresolved, which means just about no library would
10628 # ever link correctly. If we're not using GNU ld we use -z text
10629 # though, which does catch some bad symbols but isn't as heavy-handed
10630 # as -z defs.
10631 no_undefined_flag='${wl}-z,text'
10632 allow_undefined_flag='${wl}-z,nodefs'
10633 archive_cmds_need_lc=no
10634 hardcode_shlibpath_var=no
10635 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10636 hardcode_libdir_separator=':'
10637 link_all_deplibs=yes
10638 export_dynamic_flag_spec='${wl}-Bexport'
10639 runpath_var='LD_RUN_PATH'
10641 if test "$GCC" = yes; then
10642 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10643 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10644 else
10645 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10646 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10650 uts4*)
10651 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10652 hardcode_libdir_flag_spec='-L$libdir'
10653 hardcode_shlibpath_var=no
10657 ld_shlibs=no
10659 esac
10661 if test x$host_vendor = xsni; then
10662 case $host in
10663 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10664 export_dynamic_flag_spec='${wl}-Blargedynsym'
10666 esac
10670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10671 $as_echo "$ld_shlibs" >&6; }
10672 test "$ld_shlibs" = no && can_build_shared=no
10674 with_gnu_ld=$with_gnu_ld
10691 # Do we need to explicitly link libc?
10693 case "x$archive_cmds_need_lc" in
10694 x|xyes)
10695 # Assume -lc should be added
10696 archive_cmds_need_lc=yes
10698 if test "$enable_shared" = yes && test "$GCC" = yes; then
10699 case $archive_cmds in
10700 *'~'*)
10701 # FIXME: we may have to deal with multi-command sequences.
10703 '$CC '*)
10704 # Test whether the compiler implicitly links with -lc since on some
10705 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10706 # to ld, don't add -lc before -lgcc.
10707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10708 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10709 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10710 $as_echo_n "(cached) " >&6
10711 else
10712 $RM conftest*
10713 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10715 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10716 (eval $ac_compile) 2>&5
10717 ac_status=$?
10718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10719 test $ac_status = 0; } 2>conftest.err; then
10720 soname=conftest
10721 lib=conftest
10722 libobjs=conftest.$ac_objext
10723 deplibs=
10724 wl=$lt_prog_compiler_wl
10725 pic_flag=$lt_prog_compiler_pic
10726 compiler_flags=-v
10727 linker_flags=-v
10728 verstring=
10729 output_objdir=.
10730 libname=conftest
10731 lt_save_allow_undefined_flag=$allow_undefined_flag
10732 allow_undefined_flag=
10733 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10734 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10735 ac_status=$?
10736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10737 test $ac_status = 0; }
10738 then
10739 lt_cv_archive_cmds_need_lc=no
10740 else
10741 lt_cv_archive_cmds_need_lc=yes
10743 allow_undefined_flag=$lt_save_allow_undefined_flag
10744 else
10745 cat conftest.err 1>&5
10747 $RM conftest*
10750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10751 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10752 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10754 esac
10757 esac
10910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10911 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10913 if test "$GCC" = yes; then
10914 case $host_os in
10915 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10916 *) lt_awk_arg="/^libraries:/" ;;
10917 esac
10918 case $host_os in
10919 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10920 *) lt_sed_strip_eq="s,=/,/,g" ;;
10921 esac
10922 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10923 case $lt_search_path_spec in
10924 *\;*)
10925 # if the path contains ";" then we assume it to be the separator
10926 # otherwise default to the standard path separator (i.e. ":") - it is
10927 # assumed that no part of a normal pathname contains ";" but that should
10928 # okay in the real world where ";" in dirpaths is itself problematic.
10929 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10932 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10934 esac
10935 # Ok, now we have the path, separated by spaces, we can step through it
10936 # and add multilib dir if necessary.
10937 lt_tmp_lt_search_path_spec=
10938 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10939 for lt_sys_path in $lt_search_path_spec; do
10940 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10941 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10942 else
10943 test -d "$lt_sys_path" && \
10944 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10946 done
10947 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10948 BEGIN {RS=" "; FS="/|\n";} {
10949 lt_foo="";
10950 lt_count=0;
10951 for (lt_i = NF; lt_i > 0; lt_i--) {
10952 if ($lt_i != "" && $lt_i != ".") {
10953 if ($lt_i == "..") {
10954 lt_count++;
10955 } else {
10956 if (lt_count == 0) {
10957 lt_foo="/" $lt_i lt_foo;
10958 } else {
10959 lt_count--;
10964 if (lt_foo != "") { lt_freq[lt_foo]++; }
10965 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10967 # AWK program above erroneously prepends '/' to C:/dos/paths
10968 # for these hosts.
10969 case $host_os in
10970 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10971 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10972 esac
10973 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10974 else
10975 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10977 library_names_spec=
10978 libname_spec='lib$name'
10979 soname_spec=
10980 shrext_cmds=".so"
10981 postinstall_cmds=
10982 postuninstall_cmds=
10983 finish_cmds=
10984 finish_eval=
10985 shlibpath_var=
10986 shlibpath_overrides_runpath=unknown
10987 version_type=none
10988 dynamic_linker="$host_os ld.so"
10989 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10990 need_lib_prefix=unknown
10991 hardcode_into_libs=no
10993 # when you set need_version to no, make sure it does not cause -set_version
10994 # flags to be left without arguments
10995 need_version=unknown
10997 case $host_os in
10998 aix3*)
10999 version_type=linux # correct to gnu/linux during the next big refactor
11000 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11001 shlibpath_var=LIBPATH
11003 # AIX 3 has no versioning support, so we append a major version to the name.
11004 soname_spec='${libname}${release}${shared_ext}$major'
11007 aix[4-9]*)
11008 version_type=linux # correct to gnu/linux during the next big refactor
11009 need_lib_prefix=no
11010 need_version=no
11011 hardcode_into_libs=yes
11012 if test "$host_cpu" = ia64; then
11013 # AIX 5 supports IA64
11014 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11015 shlibpath_var=LD_LIBRARY_PATH
11016 else
11017 # With GCC up to 2.95.x, collect2 would create an import file
11018 # for dependence libraries. The import file would start with
11019 # the line `#! .'. This would cause the generated library to
11020 # depend on `.', always an invalid library. This was fixed in
11021 # development snapshots of GCC prior to 3.0.
11022 case $host_os in
11023 aix4 | aix4.[01] | aix4.[01].*)
11024 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11025 echo ' yes '
11026 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11028 else
11029 can_build_shared=no
11032 esac
11033 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11034 # soname into executable. Probably we can add versioning support to
11035 # collect2, so additional links can be useful in future.
11036 if test "$aix_use_runtimelinking" = yes; then
11037 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11038 # instead of lib<name>.a to let people know that these are not
11039 # typical AIX shared libraries.
11040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11041 else
11042 # We preserve .a as extension for shared libraries through AIX4.2
11043 # and later when we are not doing run time linking.
11044 library_names_spec='${libname}${release}.a $libname.a'
11045 soname_spec='${libname}${release}${shared_ext}$major'
11047 shlibpath_var=LIBPATH
11051 amigaos*)
11052 case $host_cpu in
11053 powerpc)
11054 # Since July 2007 AmigaOS4 officially supports .so libraries.
11055 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11058 m68k)
11059 library_names_spec='$libname.ixlibrary $libname.a'
11060 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11061 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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'
11063 esac
11066 beos*)
11067 library_names_spec='${libname}${shared_ext}'
11068 dynamic_linker="$host_os ld.so"
11069 shlibpath_var=LIBRARY_PATH
11072 bsdi[45]*)
11073 version_type=linux # correct to gnu/linux during the next big refactor
11074 need_version=no
11075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11076 soname_spec='${libname}${release}${shared_ext}$major'
11077 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11078 shlibpath_var=LD_LIBRARY_PATH
11079 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11080 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11081 # the default ld.so.conf also contains /usr/contrib/lib and
11082 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11083 # libtool to hard-code these into programs
11086 cygwin* | mingw* | pw32* | cegcc*)
11087 version_type=windows
11088 shrext_cmds=".dll"
11089 need_version=no
11090 need_lib_prefix=no
11092 case $GCC,$cc_basename in
11093 yes,*)
11094 # gcc
11095 library_names_spec='$libname.dll.a'
11096 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11097 postinstall_cmds='base_file=`basename \${file}`~
11098 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11099 dldir=$destdir/`dirname \$dlpath`~
11100 test -d \$dldir || mkdir -p \$dldir~
11101 $install_prog $dir/$dlname \$dldir/$dlname~
11102 chmod a+x \$dldir/$dlname~
11103 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11104 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11106 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11107 dlpath=$dir/\$dldll~
11108 $RM \$dlpath'
11109 shlibpath_overrides_runpath=yes
11111 case $host_os in
11112 cygwin*)
11113 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11114 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11116 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11118 mingw* | cegcc*)
11119 # MinGW DLLs use traditional 'lib' prefix
11120 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11122 pw32*)
11123 # pw32 DLLs use 'pw' prefix rather than 'lib'
11124 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11126 esac
11127 dynamic_linker='Win32 ld.exe'
11130 *,cl*)
11131 # Native MSVC
11132 libname_spec='$name'
11133 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11134 library_names_spec='${libname}.dll.lib'
11136 case $build_os in
11137 mingw*)
11138 sys_lib_search_path_spec=
11139 lt_save_ifs=$IFS
11140 IFS=';'
11141 for lt_path in $LIB
11143 IFS=$lt_save_ifs
11144 # Let DOS variable expansion print the short 8.3 style file name.
11145 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11146 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11147 done
11148 IFS=$lt_save_ifs
11149 # Convert to MSYS style.
11150 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11152 cygwin*)
11153 # Convert to unix form, then to dos form, then back to unix form
11154 # but this time dos style (no spaces!) so that the unix form looks
11155 # like /cygdrive/c/PROGRA~1:/cygdr...
11156 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11157 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11158 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11161 sys_lib_search_path_spec="$LIB"
11162 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11163 # It is most probably a Windows format PATH.
11164 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11165 else
11166 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11168 # FIXME: find the short name or the path components, as spaces are
11169 # common. (e.g. "Program Files" -> "PROGRA~1")
11171 esac
11173 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11174 postinstall_cmds='base_file=`basename \${file}`~
11175 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11176 dldir=$destdir/`dirname \$dlpath`~
11177 test -d \$dldir || mkdir -p \$dldir~
11178 $install_prog $dir/$dlname \$dldir/$dlname'
11179 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11180 dlpath=$dir/\$dldll~
11181 $RM \$dlpath'
11182 shlibpath_overrides_runpath=yes
11183 dynamic_linker='Win32 link.exe'
11187 # Assume MSVC wrapper
11188 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11189 dynamic_linker='Win32 ld.exe'
11191 esac
11192 # FIXME: first we should search . and the directory the executable is in
11193 shlibpath_var=PATH
11196 darwin* | rhapsody*)
11197 dynamic_linker="$host_os dyld"
11198 version_type=darwin
11199 need_lib_prefix=no
11200 need_version=no
11201 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11202 soname_spec='${libname}${release}${major}$shared_ext'
11203 shlibpath_overrides_runpath=yes
11204 shlibpath_var=DYLD_LIBRARY_PATH
11205 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11207 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11208 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11211 dgux*)
11212 version_type=linux # correct to gnu/linux during the next big refactor
11213 need_lib_prefix=no
11214 need_version=no
11215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11216 soname_spec='${libname}${release}${shared_ext}$major'
11217 shlibpath_var=LD_LIBRARY_PATH
11220 freebsd* | dragonfly*)
11221 # DragonFly does not have aout. When/if they implement a new
11222 # versioning mechanism, adjust this.
11223 if test -x /usr/bin/objformat; then
11224 objformat=`/usr/bin/objformat`
11225 else
11226 case $host_os in
11227 freebsd[23].*) objformat=aout ;;
11228 *) objformat=elf ;;
11229 esac
11231 version_type=freebsd-$objformat
11232 case $version_type in
11233 freebsd-elf*)
11234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11235 need_version=no
11236 need_lib_prefix=no
11238 freebsd-*)
11239 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11240 need_version=yes
11242 esac
11243 shlibpath_var=LD_LIBRARY_PATH
11244 case $host_os in
11245 freebsd2.*)
11246 shlibpath_overrides_runpath=yes
11248 freebsd3.[01]* | freebsdelf3.[01]*)
11249 shlibpath_overrides_runpath=yes
11250 hardcode_into_libs=yes
11252 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11253 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11254 shlibpath_overrides_runpath=no
11255 hardcode_into_libs=yes
11257 *) # from 4.6 on, and DragonFly
11258 shlibpath_overrides_runpath=yes
11259 hardcode_into_libs=yes
11261 esac
11264 gnu*)
11265 version_type=linux # correct to gnu/linux during the next big refactor
11266 need_lib_prefix=no
11267 need_version=no
11268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11269 soname_spec='${libname}${release}${shared_ext}$major'
11270 shlibpath_var=LD_LIBRARY_PATH
11271 shlibpath_overrides_runpath=no
11272 hardcode_into_libs=yes
11275 haiku*)
11276 version_type=linux # correct to gnu/linux during the next big refactor
11277 need_lib_prefix=no
11278 need_version=no
11279 dynamic_linker="$host_os runtime_loader"
11280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11281 soname_spec='${libname}${release}${shared_ext}$major'
11282 shlibpath_var=LIBRARY_PATH
11283 shlibpath_overrides_runpath=yes
11284 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11285 hardcode_into_libs=yes
11288 hpux9* | hpux10* | hpux11*)
11289 # Give a soname corresponding to the major version so that dld.sl refuses to
11290 # link against other versions.
11291 version_type=sunos
11292 need_lib_prefix=no
11293 need_version=no
11294 case $host_cpu in
11295 ia64*)
11296 shrext_cmds='.so'
11297 hardcode_into_libs=yes
11298 dynamic_linker="$host_os dld.so"
11299 shlibpath_var=LD_LIBRARY_PATH
11300 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11302 soname_spec='${libname}${release}${shared_ext}$major'
11303 if test "X$HPUX_IA64_MODE" = X32; then
11304 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11305 else
11306 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11308 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11310 hppa*64*)
11311 shrext_cmds='.sl'
11312 hardcode_into_libs=yes
11313 dynamic_linker="$host_os dld.sl"
11314 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11315 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11317 soname_spec='${libname}${release}${shared_ext}$major'
11318 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11319 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11322 shrext_cmds='.sl'
11323 dynamic_linker="$host_os dld.sl"
11324 shlibpath_var=SHLIB_PATH
11325 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11327 soname_spec='${libname}${release}${shared_ext}$major'
11329 esac
11330 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11331 postinstall_cmds='chmod 555 $lib'
11332 # or fails outright, so override atomically:
11333 install_override_mode=555
11336 interix[3-9]*)
11337 version_type=linux # correct to gnu/linux during the next big refactor
11338 need_lib_prefix=no
11339 need_version=no
11340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11341 soname_spec='${libname}${release}${shared_ext}$major'
11342 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11343 shlibpath_var=LD_LIBRARY_PATH
11344 shlibpath_overrides_runpath=no
11345 hardcode_into_libs=yes
11348 irix5* | irix6* | nonstopux*)
11349 case $host_os in
11350 nonstopux*) version_type=nonstopux ;;
11352 if test "$lt_cv_prog_gnu_ld" = yes; then
11353 version_type=linux # correct to gnu/linux during the next big refactor
11354 else
11355 version_type=irix
11356 fi ;;
11357 esac
11358 need_lib_prefix=no
11359 need_version=no
11360 soname_spec='${libname}${release}${shared_ext}$major'
11361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11362 case $host_os in
11363 irix5* | nonstopux*)
11364 libsuff= shlibsuff=
11367 case $LD in # libtool.m4 will add one of these switches to LD
11368 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11369 libsuff= shlibsuff= libmagic=32-bit;;
11370 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11371 libsuff=32 shlibsuff=N32 libmagic=N32;;
11372 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11373 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11374 *) libsuff= shlibsuff= libmagic=never-match;;
11375 esac
11377 esac
11378 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11379 shlibpath_overrides_runpath=no
11380 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11381 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11382 hardcode_into_libs=yes
11385 # No shared lib support for Linux oldld, aout, or coff.
11386 linux*oldld* | linux*aout* | linux*coff*)
11387 dynamic_linker=no
11390 # This must be glibc/ELF.
11391 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11392 version_type=linux # correct to gnu/linux during the next big refactor
11393 need_lib_prefix=no
11394 need_version=no
11395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11396 soname_spec='${libname}${release}${shared_ext}$major'
11397 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11398 shlibpath_var=LD_LIBRARY_PATH
11399 shlibpath_overrides_runpath=no
11401 # Some binutils ld are patched to set DT_RUNPATH
11402 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11403 $as_echo_n "(cached) " >&6
11404 else
11405 lt_cv_shlibpath_overrides_runpath=no
11406 save_LDFLAGS=$LDFLAGS
11407 save_libdir=$libdir
11408 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11409 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11411 /* end confdefs.h. */
11414 main ()
11418 return 0;
11420 _ACEOF
11421 if ac_fn_c_try_link "$LINENO"; then :
11422 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11423 lt_cv_shlibpath_overrides_runpath=yes
11426 rm -f core conftest.err conftest.$ac_objext \
11427 conftest$ac_exeext conftest.$ac_ext
11428 LDFLAGS=$save_LDFLAGS
11429 libdir=$save_libdir
11433 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11435 # This implies no fast_install, which is unacceptable.
11436 # Some rework will be needed to allow for fast_install
11437 # before this can be enabled.
11438 hardcode_into_libs=yes
11440 # Append ld.so.conf contents to the search path
11441 if test -f /etc/ld.so.conf; then
11442 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' ' '`
11443 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11446 # We used to test for /lib/ld.so.1 and disable shared libraries on
11447 # powerpc, because MkLinux only supported shared libraries with the
11448 # GNU dynamic linker. Since this was broken with cross compilers,
11449 # most powerpc-linux boxes support dynamic linking these days and
11450 # people can always --disable-shared, the test was removed, and we
11451 # assume the GNU/Linux dynamic linker is in use.
11452 dynamic_linker='GNU/Linux ld.so'
11455 netbsd*)
11456 version_type=sunos
11457 need_lib_prefix=no
11458 need_version=no
11459 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11461 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11462 dynamic_linker='NetBSD (a.out) ld.so'
11463 else
11464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11465 soname_spec='${libname}${release}${shared_ext}$major'
11466 dynamic_linker='NetBSD ld.elf_so'
11468 shlibpath_var=LD_LIBRARY_PATH
11469 shlibpath_overrides_runpath=yes
11470 hardcode_into_libs=yes
11473 newsos6)
11474 version_type=linux # correct to gnu/linux during the next big refactor
11475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11476 shlibpath_var=LD_LIBRARY_PATH
11477 shlibpath_overrides_runpath=yes
11480 *nto* | *qnx*)
11481 version_type=qnx
11482 need_lib_prefix=no
11483 need_version=no
11484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11485 soname_spec='${libname}${release}${shared_ext}$major'
11486 shlibpath_var=LD_LIBRARY_PATH
11487 shlibpath_overrides_runpath=no
11488 hardcode_into_libs=yes
11489 dynamic_linker='ldqnx.so'
11492 openbsd*)
11493 version_type=sunos
11494 sys_lib_dlsearch_path_spec="/usr/lib"
11495 need_lib_prefix=no
11496 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11497 case $host_os in
11498 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11499 *) need_version=no ;;
11500 esac
11501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11502 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11503 shlibpath_var=LD_LIBRARY_PATH
11504 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11505 case $host_os in
11506 openbsd2.[89] | openbsd2.[89].*)
11507 shlibpath_overrides_runpath=no
11510 shlibpath_overrides_runpath=yes
11512 esac
11513 else
11514 shlibpath_overrides_runpath=yes
11518 os2*)
11519 libname_spec='$name'
11520 shrext_cmds=".dll"
11521 need_lib_prefix=no
11522 library_names_spec='$libname${shared_ext} $libname.a'
11523 dynamic_linker='OS/2 ld.exe'
11524 shlibpath_var=LIBPATH
11527 osf3* | osf4* | osf5*)
11528 version_type=osf
11529 need_lib_prefix=no
11530 need_version=no
11531 soname_spec='${libname}${release}${shared_ext}$major'
11532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11533 shlibpath_var=LD_LIBRARY_PATH
11534 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11535 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11538 rdos*)
11539 dynamic_linker=no
11542 solaris*)
11543 version_type=linux # correct to gnu/linux during the next big refactor
11544 need_lib_prefix=no
11545 need_version=no
11546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11547 soname_spec='${libname}${release}${shared_ext}$major'
11548 shlibpath_var=LD_LIBRARY_PATH
11549 shlibpath_overrides_runpath=yes
11550 hardcode_into_libs=yes
11551 # ldd complains unless libraries are executable
11552 postinstall_cmds='chmod +x $lib'
11555 sunos4*)
11556 version_type=sunos
11557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11558 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11559 shlibpath_var=LD_LIBRARY_PATH
11560 shlibpath_overrides_runpath=yes
11561 if test "$with_gnu_ld" = yes; then
11562 need_lib_prefix=no
11564 need_version=yes
11567 sysv4 | sysv4.3*)
11568 version_type=linux # correct to gnu/linux during the next big refactor
11569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11570 soname_spec='${libname}${release}${shared_ext}$major'
11571 shlibpath_var=LD_LIBRARY_PATH
11572 case $host_vendor in
11573 sni)
11574 shlibpath_overrides_runpath=no
11575 need_lib_prefix=no
11576 runpath_var=LD_RUN_PATH
11578 siemens)
11579 need_lib_prefix=no
11581 motorola)
11582 need_lib_prefix=no
11583 need_version=no
11584 shlibpath_overrides_runpath=no
11585 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11587 esac
11590 sysv4*MP*)
11591 if test -d /usr/nec ;then
11592 version_type=linux # correct to gnu/linux during the next big refactor
11593 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11594 soname_spec='$libname${shared_ext}.$major'
11595 shlibpath_var=LD_LIBRARY_PATH
11599 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11600 version_type=freebsd-elf
11601 need_lib_prefix=no
11602 need_version=no
11603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11604 soname_spec='${libname}${release}${shared_ext}$major'
11605 shlibpath_var=LD_LIBRARY_PATH
11606 shlibpath_overrides_runpath=yes
11607 hardcode_into_libs=yes
11608 if test "$with_gnu_ld" = yes; then
11609 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11610 else
11611 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11612 case $host_os in
11613 sco3.2v5*)
11614 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11616 esac
11618 sys_lib_dlsearch_path_spec='/usr/lib'
11621 tpf*)
11622 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11623 version_type=linux # correct to gnu/linux during the next big refactor
11624 need_lib_prefix=no
11625 need_version=no
11626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11627 shlibpath_var=LD_LIBRARY_PATH
11628 shlibpath_overrides_runpath=no
11629 hardcode_into_libs=yes
11632 uts4*)
11633 version_type=linux # correct to gnu/linux during the next big refactor
11634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11635 soname_spec='${libname}${release}${shared_ext}$major'
11636 shlibpath_var=LD_LIBRARY_PATH
11640 dynamic_linker=no
11642 esac
11643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11644 $as_echo "$dynamic_linker" >&6; }
11645 test "$dynamic_linker" = no && can_build_shared=no
11647 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11648 if test "$GCC" = yes; then
11649 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11652 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11653 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11655 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11656 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11751 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11752 hardcode_action=
11753 if test -n "$hardcode_libdir_flag_spec" ||
11754 test -n "$runpath_var" ||
11755 test "X$hardcode_automatic" = "Xyes" ; then
11757 # We can hardcode non-existent directories.
11758 if test "$hardcode_direct" != no &&
11759 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11760 # have to relink, otherwise we might link with an installed library
11761 # when we should be linking with a yet-to-be-installed one
11762 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11763 test "$hardcode_minus_L" != no; then
11764 # Linking always hardcodes the temporary library directory.
11765 hardcode_action=relink
11766 else
11767 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11768 hardcode_action=immediate
11770 else
11771 # We cannot hardcode anything, or else we can only hardcode existing
11772 # directories.
11773 hardcode_action=unsupported
11775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11776 $as_echo "$hardcode_action" >&6; }
11778 if test "$hardcode_action" = relink ||
11779 test "$inherit_rpath" = yes; then
11780 # Fast installation is not supported
11781 enable_fast_install=no
11782 elif test "$shlibpath_overrides_runpath" = yes ||
11783 test "$enable_shared" = no; then
11784 # Fast installation is not necessary
11785 enable_fast_install=needless
11793 if test "x$enable_dlopen" != xyes; then
11794 enable_dlopen=unknown
11795 enable_dlopen_self=unknown
11796 enable_dlopen_self_static=unknown
11797 else
11798 lt_cv_dlopen=no
11799 lt_cv_dlopen_libs=
11801 case $host_os in
11802 beos*)
11803 lt_cv_dlopen="load_add_on"
11804 lt_cv_dlopen_libs=
11805 lt_cv_dlopen_self=yes
11808 mingw* | pw32* | cegcc*)
11809 lt_cv_dlopen="LoadLibrary"
11810 lt_cv_dlopen_libs=
11813 cygwin*)
11814 lt_cv_dlopen="dlopen"
11815 lt_cv_dlopen_libs=
11818 darwin*)
11819 # if libdl is installed we need to link against it
11820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11821 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11822 if ${ac_cv_lib_dl_dlopen+:} false; then :
11823 $as_echo_n "(cached) " >&6
11824 else
11825 ac_check_lib_save_LIBS=$LIBS
11826 LIBS="-ldl $LIBS"
11827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11828 /* end confdefs.h. */
11830 /* Override any GCC internal prototype to avoid an error.
11831 Use char because int might match the return type of a GCC
11832 builtin and then its argument prototype would still apply. */
11833 #ifdef __cplusplus
11834 extern "C"
11835 #endif
11836 char dlopen ();
11838 main ()
11840 return dlopen ();
11842 return 0;
11844 _ACEOF
11845 if ac_fn_c_try_link "$LINENO"; then :
11846 ac_cv_lib_dl_dlopen=yes
11847 else
11848 ac_cv_lib_dl_dlopen=no
11850 rm -f core conftest.err conftest.$ac_objext \
11851 conftest$ac_exeext conftest.$ac_ext
11852 LIBS=$ac_check_lib_save_LIBS
11854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11855 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11856 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11857 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11858 else
11860 lt_cv_dlopen="dyld"
11861 lt_cv_dlopen_libs=
11862 lt_cv_dlopen_self=yes
11869 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11870 if test "x$ac_cv_func_shl_load" = xyes; then :
11871 lt_cv_dlopen="shl_load"
11872 else
11873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11874 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11875 if ${ac_cv_lib_dld_shl_load+:} false; then :
11876 $as_echo_n "(cached) " >&6
11877 else
11878 ac_check_lib_save_LIBS=$LIBS
11879 LIBS="-ldld $LIBS"
11880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11881 /* end confdefs.h. */
11883 /* Override any GCC internal prototype to avoid an error.
11884 Use char because int might match the return type of a GCC
11885 builtin and then its argument prototype would still apply. */
11886 #ifdef __cplusplus
11887 extern "C"
11888 #endif
11889 char shl_load ();
11891 main ()
11893 return shl_load ();
11895 return 0;
11897 _ACEOF
11898 if ac_fn_c_try_link "$LINENO"; then :
11899 ac_cv_lib_dld_shl_load=yes
11900 else
11901 ac_cv_lib_dld_shl_load=no
11903 rm -f core conftest.err conftest.$ac_objext \
11904 conftest$ac_exeext conftest.$ac_ext
11905 LIBS=$ac_check_lib_save_LIBS
11907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11908 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11909 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11910 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11911 else
11912 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11913 if test "x$ac_cv_func_dlopen" = xyes; then :
11914 lt_cv_dlopen="dlopen"
11915 else
11916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11917 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11918 if ${ac_cv_lib_dl_dlopen+:} false; then :
11919 $as_echo_n "(cached) " >&6
11920 else
11921 ac_check_lib_save_LIBS=$LIBS
11922 LIBS="-ldl $LIBS"
11923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11924 /* end confdefs.h. */
11926 /* Override any GCC internal prototype to avoid an error.
11927 Use char because int might match the return type of a GCC
11928 builtin and then its argument prototype would still apply. */
11929 #ifdef __cplusplus
11930 extern "C"
11931 #endif
11932 char dlopen ();
11934 main ()
11936 return dlopen ();
11938 return 0;
11940 _ACEOF
11941 if ac_fn_c_try_link "$LINENO"; then :
11942 ac_cv_lib_dl_dlopen=yes
11943 else
11944 ac_cv_lib_dl_dlopen=no
11946 rm -f core conftest.err conftest.$ac_objext \
11947 conftest$ac_exeext conftest.$ac_ext
11948 LIBS=$ac_check_lib_save_LIBS
11950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11951 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11952 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11953 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11954 else
11955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11956 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11957 if ${ac_cv_lib_svld_dlopen+:} false; then :
11958 $as_echo_n "(cached) " >&6
11959 else
11960 ac_check_lib_save_LIBS=$LIBS
11961 LIBS="-lsvld $LIBS"
11962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11963 /* end confdefs.h. */
11965 /* Override any GCC internal prototype to avoid an error.
11966 Use char because int might match the return type of a GCC
11967 builtin and then its argument prototype would still apply. */
11968 #ifdef __cplusplus
11969 extern "C"
11970 #endif
11971 char dlopen ();
11973 main ()
11975 return dlopen ();
11977 return 0;
11979 _ACEOF
11980 if ac_fn_c_try_link "$LINENO"; then :
11981 ac_cv_lib_svld_dlopen=yes
11982 else
11983 ac_cv_lib_svld_dlopen=no
11985 rm -f core conftest.err conftest.$ac_objext \
11986 conftest$ac_exeext conftest.$ac_ext
11987 LIBS=$ac_check_lib_save_LIBS
11989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11990 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11991 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11992 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11993 else
11994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11995 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11996 if ${ac_cv_lib_dld_dld_link+:} false; then :
11997 $as_echo_n "(cached) " >&6
11998 else
11999 ac_check_lib_save_LIBS=$LIBS
12000 LIBS="-ldld $LIBS"
12001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12002 /* end confdefs.h. */
12004 /* Override any GCC internal prototype to avoid an error.
12005 Use char because int might match the return type of a GCC
12006 builtin and then its argument prototype would still apply. */
12007 #ifdef __cplusplus
12008 extern "C"
12009 #endif
12010 char dld_link ();
12012 main ()
12014 return dld_link ();
12016 return 0;
12018 _ACEOF
12019 if ac_fn_c_try_link "$LINENO"; then :
12020 ac_cv_lib_dld_dld_link=yes
12021 else
12022 ac_cv_lib_dld_dld_link=no
12024 rm -f core conftest.err conftest.$ac_objext \
12025 conftest$ac_exeext conftest.$ac_ext
12026 LIBS=$ac_check_lib_save_LIBS
12028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12029 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12030 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12031 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12050 esac
12052 if test "x$lt_cv_dlopen" != xno; then
12053 enable_dlopen=yes
12054 else
12055 enable_dlopen=no
12058 case $lt_cv_dlopen in
12059 dlopen)
12060 save_CPPFLAGS="$CPPFLAGS"
12061 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12063 save_LDFLAGS="$LDFLAGS"
12064 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12066 save_LIBS="$LIBS"
12067 LIBS="$lt_cv_dlopen_libs $LIBS"
12069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12070 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12071 if ${lt_cv_dlopen_self+:} false; then :
12072 $as_echo_n "(cached) " >&6
12073 else
12074 if test "$cross_compiling" = yes; then :
12075 lt_cv_dlopen_self=cross
12076 else
12077 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12078 lt_status=$lt_dlunknown
12079 cat > conftest.$ac_ext <<_LT_EOF
12080 #line $LINENO "configure"
12081 #include "confdefs.h"
12083 #if HAVE_DLFCN_H
12084 #include <dlfcn.h>
12085 #endif
12087 #include <stdio.h>
12089 #ifdef RTLD_GLOBAL
12090 # define LT_DLGLOBAL RTLD_GLOBAL
12091 #else
12092 # ifdef DL_GLOBAL
12093 # define LT_DLGLOBAL DL_GLOBAL
12094 # else
12095 # define LT_DLGLOBAL 0
12096 # endif
12097 #endif
12099 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12100 find out it does not work in some platform. */
12101 #ifndef LT_DLLAZY_OR_NOW
12102 # ifdef RTLD_LAZY
12103 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12104 # else
12105 # ifdef DL_LAZY
12106 # define LT_DLLAZY_OR_NOW DL_LAZY
12107 # else
12108 # ifdef RTLD_NOW
12109 # define LT_DLLAZY_OR_NOW RTLD_NOW
12110 # else
12111 # ifdef DL_NOW
12112 # define LT_DLLAZY_OR_NOW DL_NOW
12113 # else
12114 # define LT_DLLAZY_OR_NOW 0
12115 # endif
12116 # endif
12117 # endif
12118 # endif
12119 #endif
12121 /* When -fvisbility=hidden is used, assume the code has been annotated
12122 correspondingly for the symbols needed. */
12123 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12124 int fnord () __attribute__((visibility("default")));
12125 #endif
12127 int fnord () { return 42; }
12128 int main ()
12130 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12131 int status = $lt_dlunknown;
12133 if (self)
12135 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12136 else
12138 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12139 else puts (dlerror ());
12141 /* dlclose (self); */
12143 else
12144 puts (dlerror ());
12146 return status;
12148 _LT_EOF
12149 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12150 (eval $ac_link) 2>&5
12151 ac_status=$?
12152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12153 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12154 (./conftest; exit; ) >&5 2>/dev/null
12155 lt_status=$?
12156 case x$lt_status in
12157 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12158 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12159 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12160 esac
12161 else :
12162 # compilation failed
12163 lt_cv_dlopen_self=no
12166 rm -fr conftest*
12170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12171 $as_echo "$lt_cv_dlopen_self" >&6; }
12173 if test "x$lt_cv_dlopen_self" = xyes; then
12174 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12176 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12177 if ${lt_cv_dlopen_self_static+:} false; then :
12178 $as_echo_n "(cached) " >&6
12179 else
12180 if test "$cross_compiling" = yes; then :
12181 lt_cv_dlopen_self_static=cross
12182 else
12183 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12184 lt_status=$lt_dlunknown
12185 cat > conftest.$ac_ext <<_LT_EOF
12186 #line $LINENO "configure"
12187 #include "confdefs.h"
12189 #if HAVE_DLFCN_H
12190 #include <dlfcn.h>
12191 #endif
12193 #include <stdio.h>
12195 #ifdef RTLD_GLOBAL
12196 # define LT_DLGLOBAL RTLD_GLOBAL
12197 #else
12198 # ifdef DL_GLOBAL
12199 # define LT_DLGLOBAL DL_GLOBAL
12200 # else
12201 # define LT_DLGLOBAL 0
12202 # endif
12203 #endif
12205 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12206 find out it does not work in some platform. */
12207 #ifndef LT_DLLAZY_OR_NOW
12208 # ifdef RTLD_LAZY
12209 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12210 # else
12211 # ifdef DL_LAZY
12212 # define LT_DLLAZY_OR_NOW DL_LAZY
12213 # else
12214 # ifdef RTLD_NOW
12215 # define LT_DLLAZY_OR_NOW RTLD_NOW
12216 # else
12217 # ifdef DL_NOW
12218 # define LT_DLLAZY_OR_NOW DL_NOW
12219 # else
12220 # define LT_DLLAZY_OR_NOW 0
12221 # endif
12222 # endif
12223 # endif
12224 # endif
12225 #endif
12227 /* When -fvisbility=hidden is used, assume the code has been annotated
12228 correspondingly for the symbols needed. */
12229 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12230 int fnord () __attribute__((visibility("default")));
12231 #endif
12233 int fnord () { return 42; }
12234 int main ()
12236 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12237 int status = $lt_dlunknown;
12239 if (self)
12241 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12242 else
12244 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12245 else puts (dlerror ());
12247 /* dlclose (self); */
12249 else
12250 puts (dlerror ());
12252 return status;
12254 _LT_EOF
12255 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12256 (eval $ac_link) 2>&5
12257 ac_status=$?
12258 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12259 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12260 (./conftest; exit; ) >&5 2>/dev/null
12261 lt_status=$?
12262 case x$lt_status in
12263 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12264 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12265 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12266 esac
12267 else :
12268 # compilation failed
12269 lt_cv_dlopen_self_static=no
12272 rm -fr conftest*
12276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12277 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12280 CPPFLAGS="$save_CPPFLAGS"
12281 LDFLAGS="$save_LDFLAGS"
12282 LIBS="$save_LIBS"
12284 esac
12286 case $lt_cv_dlopen_self in
12287 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12288 *) enable_dlopen_self=unknown ;;
12289 esac
12291 case $lt_cv_dlopen_self_static in
12292 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12293 *) enable_dlopen_self_static=unknown ;;
12294 esac
12313 striplib=
12314 old_striplib=
12315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12316 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12317 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12318 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12319 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12321 $as_echo "yes" >&6; }
12322 else
12323 # FIXME - insert some real tests, host_os isn't really good enough
12324 case $host_os in
12325 darwin*)
12326 if test -n "$STRIP" ; then
12327 striplib="$STRIP -x"
12328 old_striplib="$STRIP -S"
12329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12330 $as_echo "yes" >&6; }
12331 else
12332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12333 $as_echo "no" >&6; }
12337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12338 $as_echo "no" >&6; }
12340 esac
12354 # Report which library types will actually be built
12355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12356 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12358 $as_echo "$can_build_shared" >&6; }
12360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12361 $as_echo_n "checking whether to build shared libraries... " >&6; }
12362 test "$can_build_shared" = "no" && enable_shared=no
12364 # On AIX, shared libraries and static libraries use the same namespace, and
12365 # are all built from PIC.
12366 case $host_os in
12367 aix3*)
12368 test "$enable_shared" = yes && enable_static=no
12369 if test -n "$RANLIB"; then
12370 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12371 postinstall_cmds='$RANLIB $lib'
12375 aix[4-9]*)
12376 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12377 test "$enable_shared" = yes && enable_static=no
12380 esac
12381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12382 $as_echo "$enable_shared" >&6; }
12384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12385 $as_echo_n "checking whether to build static libraries... " >&6; }
12386 # Make sure either enable_shared or enable_static is yes.
12387 test "$enable_shared" = yes || enable_static=yes
12388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12389 $as_echo "$enable_static" >&6; }
12395 ac_ext=c
12396 ac_cpp='$CPP $CPPFLAGS'
12397 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12398 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12399 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12401 CC="$lt_save_CC"
12417 ac_config_commands="$ac_config_commands libtool"
12422 # Only expand once:
12427 # Extract the first word of "ar", so it can be a program name with args.
12428 set dummy ar; ac_word=$2
12429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12430 $as_echo_n "checking for $ac_word... " >&6; }
12431 if ${ac_cv_path_AR+:} false; then :
12432 $as_echo_n "(cached) " >&6
12433 else
12434 case $AR in
12435 [\\/]* | ?:[\\/]*)
12436 ac_cv_path_AR="$AR" # Let the user override the test with a path.
12439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12440 for as_dir in $PATH
12442 IFS=$as_save_IFS
12443 test -z "$as_dir" && as_dir=.
12444 for ac_exec_ext in '' $ac_executable_extensions; do
12445 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12446 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
12447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12448 break 2
12450 done
12451 done
12452 IFS=$as_save_IFS
12454 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
12456 esac
12458 AR=$ac_cv_path_AR
12459 if test -n "$AR"; then
12460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12461 $as_echo "$AR" >&6; }
12462 else
12463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12464 $as_echo "no" >&6; }
12468 # Extract the first word of "rm", so it can be a program name with args.
12469 set dummy rm; ac_word=$2
12470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12471 $as_echo_n "checking for $ac_word... " >&6; }
12472 if ${ac_cv_path_RM+:} false; then :
12473 $as_echo_n "(cached) " >&6
12474 else
12475 case $RM in
12476 [\\/]* | ?:[\\/]*)
12477 ac_cv_path_RM="$RM" # Let the user override the test with a path.
12480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12481 for as_dir in $PATH
12483 IFS=$as_save_IFS
12484 test -z "$as_dir" && as_dir=.
12485 for ac_exec_ext in '' $ac_executable_extensions; do
12486 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12487 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
12488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12489 break 2
12491 done
12492 done
12493 IFS=$as_save_IFS
12495 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
12497 esac
12499 RM=$ac_cv_path_RM
12500 if test -n "$RM"; then
12501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
12502 $as_echo "$RM" >&6; }
12503 else
12504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12505 $as_echo "no" >&6; }
12509 # Extract the first word of "cp", so it can be a program name with args.
12510 set dummy cp; ac_word=$2
12511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12512 $as_echo_n "checking for $ac_word... " >&6; }
12513 if ${ac_cv_path_CP+:} false; then :
12514 $as_echo_n "(cached) " >&6
12515 else
12516 case $CP in
12517 [\\/]* | ?:[\\/]*)
12518 ac_cv_path_CP="$CP" # Let the user override the test with a path.
12521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12522 for as_dir in $PATH
12524 IFS=$as_save_IFS
12525 test -z "$as_dir" && as_dir=.
12526 for ac_exec_ext in '' $ac_executable_extensions; do
12527 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12528 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
12529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12530 break 2
12532 done
12533 done
12534 IFS=$as_save_IFS
12536 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
12538 esac
12540 CP=$ac_cv_path_CP
12541 if test -n "$CP"; then
12542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
12543 $as_echo "$CP" >&6; }
12544 else
12545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12546 $as_echo "no" >&6; }
12550 # Extract the first word of "ln", so it can be a program name with args.
12551 set dummy ln; ac_word=$2
12552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12553 $as_echo_n "checking for $ac_word... " >&6; }
12554 if ${ac_cv_path_LN+:} false; then :
12555 $as_echo_n "(cached) " >&6
12556 else
12557 case $LN in
12558 [\\/]* | ?:[\\/]*)
12559 ac_cv_path_LN="$LN" # Let the user override the test with a path.
12562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12563 for as_dir in $PATH
12565 IFS=$as_save_IFS
12566 test -z "$as_dir" && as_dir=.
12567 for ac_exec_ext in '' $ac_executable_extensions; do
12568 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12569 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
12570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12571 break 2
12573 done
12574 done
12575 IFS=$as_save_IFS
12577 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
12579 esac
12581 LN=$ac_cv_path_LN
12582 if test -n "$LN"; then
12583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
12584 $as_echo "$LN" >&6; }
12585 else
12586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12587 $as_echo "no" >&6; }
12591 # Extract the first word of "ls", so it can be a program name with args.
12592 set dummy ls; ac_word=$2
12593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12594 $as_echo_n "checking for $ac_word... " >&6; }
12595 if ${ac_cv_path_LS+:} false; then :
12596 $as_echo_n "(cached) " >&6
12597 else
12598 case $LS in
12599 [\\/]* | ?:[\\/]*)
12600 ac_cv_path_LS="$LS" # Let the user override the test with a path.
12603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12604 for as_dir in $PATH
12606 IFS=$as_save_IFS
12607 test -z "$as_dir" && as_dir=.
12608 for ac_exec_ext in '' $ac_executable_extensions; do
12609 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12610 ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
12611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12612 break 2
12614 done
12615 done
12616 IFS=$as_save_IFS
12618 test -z "$ac_cv_path_LS" && ac_cv_path_LS="ls"
12620 esac
12622 LS=$ac_cv_path_LS
12623 if test -n "$LS"; then
12624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
12625 $as_echo "$LS" >&6; }
12626 else
12627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12628 $as_echo "no" >&6; }
12632 # Extract the first word of "sed", so it can be a program name with args.
12633 set dummy sed; ac_word=$2
12634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12635 $as_echo_n "checking for $ac_word... " >&6; }
12636 if ${ac_cv_path_SED+:} false; then :
12637 $as_echo_n "(cached) " >&6
12638 else
12639 case $SED in
12640 [\\/]* | ?:[\\/]*)
12641 ac_cv_path_SED="$SED" # Let the user override the test with a path.
12644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12645 for as_dir in $PATH
12647 IFS=$as_save_IFS
12648 test -z "$as_dir" && as_dir=.
12649 for ac_exec_ext in '' $ac_executable_extensions; do
12650 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12651 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
12652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12653 break 2
12655 done
12656 done
12657 IFS=$as_save_IFS
12659 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
12661 esac
12663 SED=$ac_cv_path_SED
12664 if test -n "$SED"; then
12665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
12666 $as_echo "$SED" >&6; }
12667 else
12668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12669 $as_echo "no" >&6; }
12673 # Extract the first word of "make", so it can be a program name with args.
12674 set dummy make; ac_word=$2
12675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12676 $as_echo_n "checking for $ac_word... " >&6; }
12677 if ${ac_cv_path_MAKE+:} false; then :
12678 $as_echo_n "(cached) " >&6
12679 else
12680 case $MAKE in
12681 [\\/]* | ?:[\\/]*)
12682 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
12685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12686 for as_dir in $PATH
12688 IFS=$as_save_IFS
12689 test -z "$as_dir" && as_dir=.
12690 for ac_exec_ext in '' $ac_executable_extensions; do
12691 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12692 ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
12693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12694 break 2
12696 done
12697 done
12698 IFS=$as_save_IFS
12701 esac
12703 MAKE=$ac_cv_path_MAKE
12704 if test -n "$MAKE"; then
12705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
12706 $as_echo "$MAKE" >&6; }
12707 else
12708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12709 $as_echo "no" >&6; }
12717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12718 $as_echo_n "checking whether NLS is requested... " >&6; }
12719 # Check whether --enable-nls was given.
12720 if test "${enable_nls+set}" = set; then :
12721 enableval=$enable_nls; USE_NLS=$enableval
12722 else
12723 USE_NLS=yes
12726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
12727 $as_echo "$USE_NLS" >&6; }
12734 # Prepare PATH_SEPARATOR.
12735 # The user is always right.
12736 if test "${PATH_SEPARATOR+set}" != set; then
12737 echo "#! /bin/sh" >conf$$.sh
12738 echo "exit 0" >>conf$$.sh
12739 chmod +x conf$$.sh
12740 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12741 PATH_SEPARATOR=';'
12742 else
12743 PATH_SEPARATOR=:
12745 rm -f conf$$.sh
12748 # Find out how to test for executable files. Don't use a zero-byte file,
12749 # as systems may use methods other than mode bits to determine executability.
12750 cat >conf$$.file <<_ASEOF
12751 #! /bin/sh
12752 exit 0
12753 _ASEOF
12754 chmod +x conf$$.file
12755 if test -x conf$$.file >/dev/null 2>&1; then
12756 ac_executable_p="test -x"
12757 else
12758 ac_executable_p="test -f"
12760 rm -f conf$$.file
12762 # Extract the first word of "msgfmt", so it can be a program name with args.
12763 set dummy msgfmt; ac_word=$2
12764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12765 $as_echo_n "checking for $ac_word... " >&6; }
12766 if ${ac_cv_path_MSGFMT+:} false; then :
12767 $as_echo_n "(cached) " >&6
12768 else
12769 case "$MSGFMT" in
12770 [\\/]* | ?:[\\/]*)
12771 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
12774 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12775 for ac_dir in $PATH; do
12776 IFS="$ac_save_IFS"
12777 test -z "$ac_dir" && ac_dir=.
12778 for ac_exec_ext in '' $ac_executable_extensions; do
12779 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12780 echo "$as_me: trying $ac_dir/$ac_word..." >&5
12781 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
12782 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12783 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
12784 break 2
12787 done
12788 done
12789 IFS="$ac_save_IFS"
12790 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
12792 esac
12794 MSGFMT="$ac_cv_path_MSGFMT"
12795 if test "$MSGFMT" != ":"; then
12796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
12797 $as_echo "$MSGFMT" >&6; }
12798 else
12799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12800 $as_echo "no" >&6; }
12803 # Extract the first word of "gmsgfmt", so it can be a program name with args.
12804 set dummy gmsgfmt; ac_word=$2
12805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12806 $as_echo_n "checking for $ac_word... " >&6; }
12807 if ${ac_cv_path_GMSGFMT+:} false; then :
12808 $as_echo_n "(cached) " >&6
12809 else
12810 case $GMSGFMT in
12811 [\\/]* | ?:[\\/]*)
12812 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
12815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12816 for as_dir in $PATH
12818 IFS=$as_save_IFS
12819 test -z "$as_dir" && as_dir=.
12820 for ac_exec_ext in '' $ac_executable_extensions; do
12821 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12822 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
12823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12824 break 2
12826 done
12827 done
12828 IFS=$as_save_IFS
12830 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
12832 esac
12834 GMSGFMT=$ac_cv_path_GMSGFMT
12835 if test -n "$GMSGFMT"; then
12836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
12837 $as_echo "$GMSGFMT" >&6; }
12838 else
12839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12840 $as_echo "no" >&6; }
12845 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
12846 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
12847 *) MSGFMT_015=$MSGFMT ;;
12848 esac
12850 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
12851 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
12852 *) GMSGFMT_015=$GMSGFMT ;;
12853 esac
12857 # Prepare PATH_SEPARATOR.
12858 # The user is always right.
12859 if test "${PATH_SEPARATOR+set}" != set; then
12860 echo "#! /bin/sh" >conf$$.sh
12861 echo "exit 0" >>conf$$.sh
12862 chmod +x conf$$.sh
12863 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12864 PATH_SEPARATOR=';'
12865 else
12866 PATH_SEPARATOR=:
12868 rm -f conf$$.sh
12871 # Find out how to test for executable files. Don't use a zero-byte file,
12872 # as systems may use methods other than mode bits to determine executability.
12873 cat >conf$$.file <<_ASEOF
12874 #! /bin/sh
12875 exit 0
12876 _ASEOF
12877 chmod +x conf$$.file
12878 if test -x conf$$.file >/dev/null 2>&1; then
12879 ac_executable_p="test -x"
12880 else
12881 ac_executable_p="test -f"
12883 rm -f conf$$.file
12885 # Extract the first word of "xgettext", so it can be a program name with args.
12886 set dummy xgettext; ac_word=$2
12887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12888 $as_echo_n "checking for $ac_word... " >&6; }
12889 if ${ac_cv_path_XGETTEXT+:} false; then :
12890 $as_echo_n "(cached) " >&6
12891 else
12892 case "$XGETTEXT" in
12893 [\\/]* | ?:[\\/]*)
12894 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12897 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12898 for ac_dir in $PATH; do
12899 IFS="$ac_save_IFS"
12900 test -z "$ac_dir" && ac_dir=.
12901 for ac_exec_ext in '' $ac_executable_extensions; do
12902 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12903 echo "$as_me: trying $ac_dir/$ac_word..." >&5
12904 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
12905 (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
12906 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
12907 break 2
12910 done
12911 done
12912 IFS="$ac_save_IFS"
12913 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
12915 esac
12917 XGETTEXT="$ac_cv_path_XGETTEXT"
12918 if test "$XGETTEXT" != ":"; then
12919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
12920 $as_echo "$XGETTEXT" >&6; }
12921 else
12922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12923 $as_echo "no" >&6; }
12926 rm -f messages.po
12928 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
12929 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
12930 *) XGETTEXT_015=$XGETTEXT ;;
12931 esac
12935 # Prepare PATH_SEPARATOR.
12936 # The user is always right.
12937 if test "${PATH_SEPARATOR+set}" != set; then
12938 echo "#! /bin/sh" >conf$$.sh
12939 echo "exit 0" >>conf$$.sh
12940 chmod +x conf$$.sh
12941 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12942 PATH_SEPARATOR=';'
12943 else
12944 PATH_SEPARATOR=:
12946 rm -f conf$$.sh
12949 # Find out how to test for executable files. Don't use a zero-byte file,
12950 # as systems may use methods other than mode bits to determine executability.
12951 cat >conf$$.file <<_ASEOF
12952 #! /bin/sh
12953 exit 0
12954 _ASEOF
12955 chmod +x conf$$.file
12956 if test -x conf$$.file >/dev/null 2>&1; then
12957 ac_executable_p="test -x"
12958 else
12959 ac_executable_p="test -f"
12961 rm -f conf$$.file
12963 # Extract the first word of "msgmerge", so it can be a program name with args.
12964 set dummy msgmerge; ac_word=$2
12965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12966 $as_echo_n "checking for $ac_word... " >&6; }
12967 if ${ac_cv_path_MSGMERGE+:} false; then :
12968 $as_echo_n "(cached) " >&6
12969 else
12970 case "$MSGMERGE" in
12971 [\\/]* | ?:[\\/]*)
12972 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
12975 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12976 for ac_dir in $PATH; do
12977 IFS="$ac_save_IFS"
12978 test -z "$ac_dir" && ac_dir=.
12979 for ac_exec_ext in '' $ac_executable_extensions; do
12980 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12981 echo "$as_me: trying $ac_dir/$ac_word..." >&5
12982 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
12983 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
12984 break 2
12987 done
12988 done
12989 IFS="$ac_save_IFS"
12990 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
12992 esac
12994 MSGMERGE="$ac_cv_path_MSGMERGE"
12995 if test "$MSGMERGE" != ":"; then
12996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
12997 $as_echo "$MSGMERGE" >&6; }
12998 else
12999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13000 $as_echo "no" >&6; }
13004 test -n "$localedir" || localedir='${datadir}/locale'
13007 ac_config_commands="$ac_config_commands po-directories"
13011 if test "X$prefix" = "XNONE"; then
13012 acl_final_prefix="$ac_default_prefix"
13013 else
13014 acl_final_prefix="$prefix"
13016 if test "X$exec_prefix" = "XNONE"; then
13017 acl_final_exec_prefix='${prefix}'
13018 else
13019 acl_final_exec_prefix="$exec_prefix"
13021 acl_save_prefix="$prefix"
13022 prefix="$acl_final_prefix"
13023 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
13024 prefix="$acl_save_prefix"
13027 # Check whether --with-gnu-ld was given.
13028 if test "${with_gnu_ld+set}" = set; then :
13029 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13030 else
13031 with_gnu_ld=no
13034 # Prepare PATH_SEPARATOR.
13035 # The user is always right.
13036 if test "${PATH_SEPARATOR+set}" != set; then
13037 echo "#! /bin/sh" >conf$$.sh
13038 echo "exit 0" >>conf$$.sh
13039 chmod +x conf$$.sh
13040 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13041 PATH_SEPARATOR=';'
13042 else
13043 PATH_SEPARATOR=:
13045 rm -f conf$$.sh
13047 ac_prog=ld
13048 if test "$GCC" = yes; then
13049 # Check if gcc -print-prog-name=ld gives a path.
13050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
13051 $as_echo_n "checking for ld used by GCC... " >&6; }
13052 case $host in
13053 *-*-mingw*)
13054 # gcc leaves a trailing carriage return which upsets mingw
13055 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13057 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13058 esac
13059 case $ac_prog in
13060 # Accept absolute paths.
13061 [\\/]* | [A-Za-z]:[\\/]*)
13062 re_direlt='/[^/][^/]*/\.\./'
13063 # Canonicalize the path of ld
13064 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
13065 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
13066 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
13067 done
13068 test -z "$LD" && LD="$ac_prog"
13071 # If it fails, then pretend we aren't using GCC.
13072 ac_prog=ld
13075 # If it is relative, then search for the first ld in PATH.
13076 with_gnu_ld=unknown
13078 esac
13079 elif test "$with_gnu_ld" = yes; then
13080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13081 $as_echo_n "checking for GNU ld... " >&6; }
13082 else
13083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13084 $as_echo_n "checking for non-GNU ld... " >&6; }
13086 if ${acl_cv_path_LD+:} false; then :
13087 $as_echo_n "(cached) " >&6
13088 else
13089 if test -z "$LD"; then
13090 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
13091 for ac_dir in $PATH; do
13092 test -z "$ac_dir" && ac_dir=.
13093 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13094 acl_cv_path_LD="$ac_dir/$ac_prog"
13095 # Check to see if the program is GNU ld. I'd rather use --version,
13096 # but apparently some GNU ld's only accept -v.
13097 # Break only if it was the GNU/non-GNU ld that we prefer.
13098 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
13099 *GNU* | *'with BFD'*)
13100 test "$with_gnu_ld" != no && break ;;
13102 test "$with_gnu_ld" != yes && break ;;
13103 esac
13105 done
13106 IFS="$ac_save_ifs"
13107 else
13108 acl_cv_path_LD="$LD" # Let the user override the test with a path.
13112 LD="$acl_cv_path_LD"
13113 if test -n "$LD"; then
13114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13115 $as_echo "$LD" >&6; }
13116 else
13117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13118 $as_echo "no" >&6; }
13120 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13122 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13123 if ${acl_cv_prog_gnu_ld+:} false; then :
13124 $as_echo_n "(cached) " >&6
13125 else
13126 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
13127 case `$LD -v 2>&1 </dev/null` in
13128 *GNU* | *'with BFD'*)
13129 acl_cv_prog_gnu_ld=yes ;;
13131 acl_cv_prog_gnu_ld=no ;;
13132 esac
13134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
13135 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
13136 with_gnu_ld=$acl_cv_prog_gnu_ld
13141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
13142 $as_echo_n "checking for shared library run path origin... " >&6; }
13143 if ${acl_cv_rpath+:} false; then :
13144 $as_echo_n "(cached) " >&6
13145 else
13147 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
13148 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
13149 . ./conftest.sh
13150 rm -f ./conftest.sh
13151 acl_cv_rpath=done
13154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
13155 $as_echo "$acl_cv_rpath" >&6; }
13156 wl="$acl_cv_wl"
13157 libext="$acl_cv_libext"
13158 shlibext="$acl_cv_shlibext"
13159 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
13160 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
13161 hardcode_direct="$acl_cv_hardcode_direct"
13162 hardcode_minus_L="$acl_cv_hardcode_minus_L"
13163 # Check whether --enable-rpath was given.
13164 if test "${enable_rpath+set}" = set; then :
13165 enableval=$enable_rpath; :
13166 else
13167 enable_rpath=yes
13172 acl_libdirstem=lib
13173 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
13174 if test -n "$searchpath"; then
13175 acl_save_IFS="${IFS= }"; IFS=":"
13176 for searchdir in $searchpath; do
13177 if test -d "$searchdir"; then
13178 case "$searchdir" in
13179 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
13180 *) searchdir=`cd "$searchdir" && pwd`
13181 case "$searchdir" in
13182 */lib64 ) acl_libdirstem=lib64 ;;
13183 esac ;;
13184 esac
13186 done
13187 IFS="$acl_save_IFS"
13197 use_additional=yes
13199 acl_save_prefix="$prefix"
13200 prefix="$acl_final_prefix"
13201 acl_save_exec_prefix="$exec_prefix"
13202 exec_prefix="$acl_final_exec_prefix"
13204 eval additional_includedir=\"$includedir\"
13205 eval additional_libdir=\"$libdir\"
13207 exec_prefix="$acl_save_exec_prefix"
13208 prefix="$acl_save_prefix"
13211 # Check whether --with-libiconv-prefix was given.
13212 if test "${with_libiconv_prefix+set}" = set; then :
13213 withval=$with_libiconv_prefix;
13214 if test "X$withval" = "Xno"; then
13215 use_additional=no
13216 else
13217 if test "X$withval" = "X"; then
13219 acl_save_prefix="$prefix"
13220 prefix="$acl_final_prefix"
13221 acl_save_exec_prefix="$exec_prefix"
13222 exec_prefix="$acl_final_exec_prefix"
13224 eval additional_includedir=\"$includedir\"
13225 eval additional_libdir=\"$libdir\"
13227 exec_prefix="$acl_save_exec_prefix"
13228 prefix="$acl_save_prefix"
13230 else
13231 additional_includedir="$withval/include"
13232 additional_libdir="$withval/$acl_libdirstem"
13238 LIBICONV=
13239 LTLIBICONV=
13240 INCICONV=
13241 rpathdirs=
13242 ltrpathdirs=
13243 names_already_handled=
13244 names_next_round='iconv '
13245 while test -n "$names_next_round"; do
13246 names_this_round="$names_next_round"
13247 names_next_round=
13248 for name in $names_this_round; do
13249 already_handled=
13250 for n in $names_already_handled; do
13251 if test "$n" = "$name"; then
13252 already_handled=yes
13253 break
13255 done
13256 if test -z "$already_handled"; then
13257 names_already_handled="$names_already_handled $name"
13258 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
13259 eval value=\"\$HAVE_LIB$uppername\"
13260 if test -n "$value"; then
13261 if test "$value" = yes; then
13262 eval value=\"\$LIB$uppername\"
13263 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
13264 eval value=\"\$LTLIB$uppername\"
13265 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
13266 else
13269 else
13270 found_dir=
13271 found_la=
13272 found_so=
13273 found_a=
13274 if test $use_additional = yes; then
13275 if test -n "$shlibext" \
13276 && { test -f "$additional_libdir/lib$name.$shlibext" \
13277 || { test "$shlibext" = dll \
13278 && test -f "$additional_libdir/lib$name.dll.a"; }; }; then
13279 found_dir="$additional_libdir"
13280 if test -f "$additional_libdir/lib$name.$shlibext"; then
13281 found_so="$additional_libdir/lib$name.$shlibext"
13282 else
13283 found_so="$additional_libdir/lib$name.dll.a"
13285 if test -f "$additional_libdir/lib$name.la"; then
13286 found_la="$additional_libdir/lib$name.la"
13288 else
13289 if test -f "$additional_libdir/lib$name.$libext"; then
13290 found_dir="$additional_libdir"
13291 found_a="$additional_libdir/lib$name.$libext"
13292 if test -f "$additional_libdir/lib$name.la"; then
13293 found_la="$additional_libdir/lib$name.la"
13298 if test "X$found_dir" = "X"; then
13299 for x in $LDFLAGS $LTLIBICONV; do
13301 acl_save_prefix="$prefix"
13302 prefix="$acl_final_prefix"
13303 acl_save_exec_prefix="$exec_prefix"
13304 exec_prefix="$acl_final_exec_prefix"
13305 eval x=\"$x\"
13306 exec_prefix="$acl_save_exec_prefix"
13307 prefix="$acl_save_prefix"
13309 case "$x" in
13310 -L*)
13311 dir=`echo "X$x" | sed -e 's/^X-L//'`
13312 if test -n "$shlibext" \
13313 && { test -f "$dir/lib$name.$shlibext" \
13314 || { test "$shlibext" = dll \
13315 && test -f "$dir/lib$name.dll.a"; }; }; then
13316 found_dir="$dir"
13317 if test -f "$dir/lib$name.$shlibext"; then
13318 found_so="$dir/lib$name.$shlibext"
13319 else
13320 found_so="$dir/lib$name.dll.a"
13322 if test -f "$dir/lib$name.la"; then
13323 found_la="$dir/lib$name.la"
13325 else
13326 if test -f "$dir/lib$name.$libext"; then
13327 found_dir="$dir"
13328 found_a="$dir/lib$name.$libext"
13329 if test -f "$dir/lib$name.la"; then
13330 found_la="$dir/lib$name.la"
13335 esac
13336 if test "X$found_dir" != "X"; then
13337 break
13339 done
13341 if test "X$found_dir" != "X"; then
13342 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
13343 if test "X$found_so" != "X"; then
13344 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
13345 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13346 else
13347 haveit=
13348 for x in $ltrpathdirs; do
13349 if test "X$x" = "X$found_dir"; then
13350 haveit=yes
13351 break
13353 done
13354 if test -z "$haveit"; then
13355 ltrpathdirs="$ltrpathdirs $found_dir"
13357 if test "$hardcode_direct" = yes; then
13358 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13359 else
13360 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
13361 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13362 haveit=
13363 for x in $rpathdirs; do
13364 if test "X$x" = "X$found_dir"; then
13365 haveit=yes
13366 break
13368 done
13369 if test -z "$haveit"; then
13370 rpathdirs="$rpathdirs $found_dir"
13372 else
13373 haveit=
13374 for x in $LDFLAGS $LIBICONV; do
13376 acl_save_prefix="$prefix"
13377 prefix="$acl_final_prefix"
13378 acl_save_exec_prefix="$exec_prefix"
13379 exec_prefix="$acl_final_exec_prefix"
13380 eval x=\"$x\"
13381 exec_prefix="$acl_save_exec_prefix"
13382 prefix="$acl_save_prefix"
13384 if test "X$x" = "X-L$found_dir"; then
13385 haveit=yes
13386 break
13388 done
13389 if test -z "$haveit"; then
13390 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
13392 if test "$hardcode_minus_L" != no; then
13393 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13394 else
13395 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
13400 else
13401 if test "X$found_a" != "X"; then
13402 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
13403 else
13404 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
13407 additional_includedir=
13408 case "$found_dir" in
13409 */$acl_libdirstem | */$acl_libdirstem/)
13410 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
13411 additional_includedir="$basedir/include"
13413 esac
13414 if test "X$additional_includedir" != "X"; then
13415 if test "X$additional_includedir" != "X/usr/include"; then
13416 haveit=
13417 if test "X$additional_includedir" = "X/usr/local/include"; then
13418 if test -n "$GCC"; then
13419 case $host_os in
13420 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13421 esac
13424 if test -z "$haveit"; then
13425 for x in $CPPFLAGS $INCICONV; do
13427 acl_save_prefix="$prefix"
13428 prefix="$acl_final_prefix"
13429 acl_save_exec_prefix="$exec_prefix"
13430 exec_prefix="$acl_final_exec_prefix"
13431 eval x=\"$x\"
13432 exec_prefix="$acl_save_exec_prefix"
13433 prefix="$acl_save_prefix"
13435 if test "X$x" = "X-I$additional_includedir"; then
13436 haveit=yes
13437 break
13439 done
13440 if test -z "$haveit"; then
13441 if test -d "$additional_includedir"; then
13442 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
13448 if test -n "$found_la"; then
13449 save_libdir="$libdir"
13450 case "$found_la" in
13451 */* | *\\*) . "$found_la" ;;
13452 *) . "./$found_la" ;;
13453 esac
13454 libdir="$save_libdir"
13455 for dep in $dependency_libs; do
13456 case "$dep" in
13457 -L*)
13458 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13459 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
13460 haveit=
13461 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
13462 if test -n "$GCC"; then
13463 case $host_os in
13464 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13465 esac
13468 if test -z "$haveit"; then
13469 haveit=
13470 for x in $LDFLAGS $LIBICONV; do
13472 acl_save_prefix="$prefix"
13473 prefix="$acl_final_prefix"
13474 acl_save_exec_prefix="$exec_prefix"
13475 exec_prefix="$acl_final_exec_prefix"
13476 eval x=\"$x\"
13477 exec_prefix="$acl_save_exec_prefix"
13478 prefix="$acl_save_prefix"
13480 if test "X$x" = "X-L$additional_libdir"; then
13481 haveit=yes
13482 break
13484 done
13485 if test -z "$haveit"; then
13486 if test -d "$additional_libdir"; then
13487 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
13490 haveit=
13491 for x in $LDFLAGS $LTLIBICONV; do
13493 acl_save_prefix="$prefix"
13494 prefix="$acl_final_prefix"
13495 acl_save_exec_prefix="$exec_prefix"
13496 exec_prefix="$acl_final_exec_prefix"
13497 eval x=\"$x\"
13498 exec_prefix="$acl_save_exec_prefix"
13499 prefix="$acl_save_prefix"
13501 if test "X$x" = "X-L$additional_libdir"; then
13502 haveit=yes
13503 break
13505 done
13506 if test -z "$haveit"; then
13507 if test -d "$additional_libdir"; then
13508 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
13514 -R*)
13515 dir=`echo "X$dep" | sed -e 's/^X-R//'`
13516 if test "$enable_rpath" != no; then
13517 haveit=
13518 for x in $rpathdirs; do
13519 if test "X$x" = "X$dir"; then
13520 haveit=yes
13521 break
13523 done
13524 if test -z "$haveit"; then
13525 rpathdirs="$rpathdirs $dir"
13527 haveit=
13528 for x in $ltrpathdirs; do
13529 if test "X$x" = "X$dir"; then
13530 haveit=yes
13531 break
13533 done
13534 if test -z "$haveit"; then
13535 ltrpathdirs="$ltrpathdirs $dir"
13539 -l*)
13540 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13542 *.la)
13543 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13546 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
13547 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
13549 esac
13550 done
13552 else
13553 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
13554 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
13558 done
13559 done
13560 if test "X$rpathdirs" != "X"; then
13561 if test -n "$hardcode_libdir_separator"; then
13562 alldirs=
13563 for found_dir in $rpathdirs; do
13564 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
13565 done
13566 acl_save_libdir="$libdir"
13567 libdir="$alldirs"
13568 eval flag=\"$hardcode_libdir_flag_spec\"
13569 libdir="$acl_save_libdir"
13570 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
13571 else
13572 for found_dir in $rpathdirs; do
13573 acl_save_libdir="$libdir"
13574 libdir="$found_dir"
13575 eval flag=\"$hardcode_libdir_flag_spec\"
13576 libdir="$acl_save_libdir"
13577 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
13578 done
13581 if test "X$ltrpathdirs" != "X"; then
13582 for found_dir in $ltrpathdirs; do
13583 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
13584 done
13611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
13612 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
13613 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
13614 $as_echo_n "(cached) " >&6
13615 else
13616 gt_save_LIBS="$LIBS"
13617 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
13618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13619 /* end confdefs.h. */
13620 #include <CoreFoundation/CFPreferences.h>
13622 main ()
13624 CFPreferencesCopyAppValue(NULL, NULL)
13626 return 0;
13628 _ACEOF
13629 if ac_fn_c_try_link "$LINENO"; then :
13630 gt_cv_func_CFPreferencesCopyAppValue=yes
13631 else
13632 gt_cv_func_CFPreferencesCopyAppValue=no
13634 rm -f core conftest.err conftest.$ac_objext \
13635 conftest$ac_exeext conftest.$ac_ext
13636 LIBS="$gt_save_LIBS"
13638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
13639 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
13640 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
13642 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
13645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
13646 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
13647 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
13648 $as_echo_n "(cached) " >&6
13649 else
13650 gt_save_LIBS="$LIBS"
13651 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
13652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13653 /* end confdefs.h. */
13654 #include <CoreFoundation/CFLocale.h>
13656 main ()
13658 CFLocaleCopyCurrent();
13660 return 0;
13662 _ACEOF
13663 if ac_fn_c_try_link "$LINENO"; then :
13664 gt_cv_func_CFLocaleCopyCurrent=yes
13665 else
13666 gt_cv_func_CFLocaleCopyCurrent=no
13668 rm -f core conftest.err conftest.$ac_objext \
13669 conftest$ac_exeext conftest.$ac_ext
13670 LIBS="$gt_save_LIBS"
13672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
13673 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
13674 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
13676 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
13679 INTL_MACOSX_LIBS=
13680 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
13681 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
13689 LIBINTL=
13690 LTLIBINTL=
13691 POSUB=
13693 case " $gt_needs " in
13694 *" need-formatstring-macros "*) gt_api_version=3 ;;
13695 *" need-ngettext "*) gt_api_version=2 ;;
13696 *) gt_api_version=1 ;;
13697 esac
13698 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
13699 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
13701 if test "$USE_NLS" = "yes"; then
13702 gt_use_preinstalled_gnugettext=no
13705 if test $gt_api_version -ge 3; then
13706 gt_revision_test_code='
13707 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
13708 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
13709 #endif
13710 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
13712 else
13713 gt_revision_test_code=
13715 if test $gt_api_version -ge 2; then
13716 gt_expression_test_code=' + * ngettext ("", "", 0)'
13717 else
13718 gt_expression_test_code=
13721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
13722 $as_echo_n "checking for GNU gettext in libc... " >&6; }
13723 if eval \${$gt_func_gnugettext_libc+:} false; then :
13724 $as_echo_n "(cached) " >&6
13725 else
13726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13727 /* end confdefs.h. */
13728 #include <libintl.h>
13729 $gt_revision_test_code
13730 extern int _nl_msg_cat_cntr;
13731 extern int *_nl_domain_bindings;
13733 main ()
13735 bindtextdomain ("", "");
13736 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
13738 return 0;
13740 _ACEOF
13741 if ac_fn_c_try_link "$LINENO"; then :
13742 eval "$gt_func_gnugettext_libc=yes"
13743 else
13744 eval "$gt_func_gnugettext_libc=no"
13746 rm -f core conftest.err conftest.$ac_objext \
13747 conftest$ac_exeext conftest.$ac_ext
13749 eval ac_res=\$$gt_func_gnugettext_libc
13750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13751 $as_echo "$ac_res" >&6; }
13753 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
13759 am_save_CPPFLAGS="$CPPFLAGS"
13761 for element in $INCICONV; do
13762 haveit=
13763 for x in $CPPFLAGS; do
13765 acl_save_prefix="$prefix"
13766 prefix="$acl_final_prefix"
13767 acl_save_exec_prefix="$exec_prefix"
13768 exec_prefix="$acl_final_exec_prefix"
13769 eval x=\"$x\"
13770 exec_prefix="$acl_save_exec_prefix"
13771 prefix="$acl_save_prefix"
13773 if test "X$x" = "X$element"; then
13774 haveit=yes
13775 break
13777 done
13778 if test -z "$haveit"; then
13779 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13781 done
13784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
13785 $as_echo_n "checking for iconv... " >&6; }
13786 if ${am_cv_func_iconv+:} false; then :
13787 $as_echo_n "(cached) " >&6
13788 else
13790 am_cv_func_iconv="no, consider installing GNU libiconv"
13791 am_cv_lib_iconv=no
13792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13793 /* end confdefs.h. */
13794 #include <stdlib.h>
13795 #include <iconv.h>
13797 main ()
13799 iconv_t cd = iconv_open("","");
13800 iconv(cd,NULL,NULL,NULL,NULL);
13801 iconv_close(cd);
13803 return 0;
13805 _ACEOF
13806 if ac_fn_c_try_link "$LINENO"; then :
13807 am_cv_func_iconv=yes
13809 rm -f core conftest.err conftest.$ac_objext \
13810 conftest$ac_exeext conftest.$ac_ext
13811 if test "$am_cv_func_iconv" != yes; then
13812 am_save_LIBS="$LIBS"
13813 LIBS="$LIBS $LIBICONV"
13814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13815 /* end confdefs.h. */
13816 #include <stdlib.h>
13817 #include <iconv.h>
13819 main ()
13821 iconv_t cd = iconv_open("","");
13822 iconv(cd,NULL,NULL,NULL,NULL);
13823 iconv_close(cd);
13825 return 0;
13827 _ACEOF
13828 if ac_fn_c_try_link "$LINENO"; then :
13829 am_cv_lib_iconv=yes
13830 am_cv_func_iconv=yes
13832 rm -f core conftest.err conftest.$ac_objext \
13833 conftest$ac_exeext conftest.$ac_ext
13834 LIBS="$am_save_LIBS"
13838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
13839 $as_echo "$am_cv_func_iconv" >&6; }
13840 if test "$am_cv_func_iconv" = yes; then
13842 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
13845 if test "$am_cv_lib_iconv" = yes; then
13846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
13847 $as_echo_n "checking how to link with libiconv... " >&6; }
13848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
13849 $as_echo "$LIBICONV" >&6; }
13850 else
13851 CPPFLAGS="$am_save_CPPFLAGS"
13852 LIBICONV=
13853 LTLIBICONV=
13862 use_additional=yes
13864 acl_save_prefix="$prefix"
13865 prefix="$acl_final_prefix"
13866 acl_save_exec_prefix="$exec_prefix"
13867 exec_prefix="$acl_final_exec_prefix"
13869 eval additional_includedir=\"$includedir\"
13870 eval additional_libdir=\"$libdir\"
13872 exec_prefix="$acl_save_exec_prefix"
13873 prefix="$acl_save_prefix"
13876 # Check whether --with-libintl-prefix was given.
13877 if test "${with_libintl_prefix+set}" = set; then :
13878 withval=$with_libintl_prefix;
13879 if test "X$withval" = "Xno"; then
13880 use_additional=no
13881 else
13882 if test "X$withval" = "X"; then
13884 acl_save_prefix="$prefix"
13885 prefix="$acl_final_prefix"
13886 acl_save_exec_prefix="$exec_prefix"
13887 exec_prefix="$acl_final_exec_prefix"
13889 eval additional_includedir=\"$includedir\"
13890 eval additional_libdir=\"$libdir\"
13892 exec_prefix="$acl_save_exec_prefix"
13893 prefix="$acl_save_prefix"
13895 else
13896 additional_includedir="$withval/include"
13897 additional_libdir="$withval/$acl_libdirstem"
13903 LIBINTL=
13904 LTLIBINTL=
13905 INCINTL=
13906 rpathdirs=
13907 ltrpathdirs=
13908 names_already_handled=
13909 names_next_round='intl '
13910 while test -n "$names_next_round"; do
13911 names_this_round="$names_next_round"
13912 names_next_round=
13913 for name in $names_this_round; do
13914 already_handled=
13915 for n in $names_already_handled; do
13916 if test "$n" = "$name"; then
13917 already_handled=yes
13918 break
13920 done
13921 if test -z "$already_handled"; then
13922 names_already_handled="$names_already_handled $name"
13923 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
13924 eval value=\"\$HAVE_LIB$uppername\"
13925 if test -n "$value"; then
13926 if test "$value" = yes; then
13927 eval value=\"\$LIB$uppername\"
13928 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
13929 eval value=\"\$LTLIB$uppername\"
13930 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
13931 else
13934 else
13935 found_dir=
13936 found_la=
13937 found_so=
13938 found_a=
13939 if test $use_additional = yes; then
13940 if test -n "$shlibext" \
13941 && { test -f "$additional_libdir/lib$name.$shlibext" \
13942 || { test "$shlibext" = dll \
13943 && test -f "$additional_libdir/lib$name.dll.a"; }; }; then
13944 found_dir="$additional_libdir"
13945 if test -f "$additional_libdir/lib$name.$shlibext"; then
13946 found_so="$additional_libdir/lib$name.$shlibext"
13947 else
13948 found_so="$additional_libdir/lib$name.dll.a"
13950 if test -f "$additional_libdir/lib$name.la"; then
13951 found_la="$additional_libdir/lib$name.la"
13953 else
13954 if test -f "$additional_libdir/lib$name.$libext"; then
13955 found_dir="$additional_libdir"
13956 found_a="$additional_libdir/lib$name.$libext"
13957 if test -f "$additional_libdir/lib$name.la"; then
13958 found_la="$additional_libdir/lib$name.la"
13963 if test "X$found_dir" = "X"; then
13964 for x in $LDFLAGS $LTLIBINTL; do
13966 acl_save_prefix="$prefix"
13967 prefix="$acl_final_prefix"
13968 acl_save_exec_prefix="$exec_prefix"
13969 exec_prefix="$acl_final_exec_prefix"
13970 eval x=\"$x\"
13971 exec_prefix="$acl_save_exec_prefix"
13972 prefix="$acl_save_prefix"
13974 case "$x" in
13975 -L*)
13976 dir=`echo "X$x" | sed -e 's/^X-L//'`
13977 if test -n "$shlibext" \
13978 && { test -f "$dir/lib$name.$shlibext" \
13979 || { test "$shlibext" = dll \
13980 && test -f "$dir/lib$name.dll.a"; }; }; then
13981 found_dir="$dir"
13982 if test -f "$dir/lib$name.$shlibext"; then
13983 found_so="$dir/lib$name.$shlibext"
13984 else
13985 found_so="$dir/lib$name.dll.a"
13987 if test -f "$dir/lib$name.la"; then
13988 found_la="$dir/lib$name.la"
13990 else
13991 if test -f "$dir/lib$name.$libext"; then
13992 found_dir="$dir"
13993 found_a="$dir/lib$name.$libext"
13994 if test -f "$dir/lib$name.la"; then
13995 found_la="$dir/lib$name.la"
14000 esac
14001 if test "X$found_dir" != "X"; then
14002 break
14004 done
14006 if test "X$found_dir" != "X"; then
14007 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
14008 if test "X$found_so" != "X"; then
14009 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
14010 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14011 else
14012 haveit=
14013 for x in $ltrpathdirs; do
14014 if test "X$x" = "X$found_dir"; then
14015 haveit=yes
14016 break
14018 done
14019 if test -z "$haveit"; then
14020 ltrpathdirs="$ltrpathdirs $found_dir"
14022 if test "$hardcode_direct" = yes; then
14023 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14024 else
14025 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
14026 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14027 haveit=
14028 for x in $rpathdirs; do
14029 if test "X$x" = "X$found_dir"; then
14030 haveit=yes
14031 break
14033 done
14034 if test -z "$haveit"; then
14035 rpathdirs="$rpathdirs $found_dir"
14037 else
14038 haveit=
14039 for x in $LDFLAGS $LIBINTL; do
14041 acl_save_prefix="$prefix"
14042 prefix="$acl_final_prefix"
14043 acl_save_exec_prefix="$exec_prefix"
14044 exec_prefix="$acl_final_exec_prefix"
14045 eval x=\"$x\"
14046 exec_prefix="$acl_save_exec_prefix"
14047 prefix="$acl_save_prefix"
14049 if test "X$x" = "X-L$found_dir"; then
14050 haveit=yes
14051 break
14053 done
14054 if test -z "$haveit"; then
14055 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
14057 if test "$hardcode_minus_L" != no; then
14058 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14059 else
14060 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
14065 else
14066 if test "X$found_a" != "X"; then
14067 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
14068 else
14069 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
14072 additional_includedir=
14073 case "$found_dir" in
14074 */$acl_libdirstem | */$acl_libdirstem/)
14075 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
14076 additional_includedir="$basedir/include"
14078 esac
14079 if test "X$additional_includedir" != "X"; then
14080 if test "X$additional_includedir" != "X/usr/include"; then
14081 haveit=
14082 if test "X$additional_includedir" = "X/usr/local/include"; then
14083 if test -n "$GCC"; then
14084 case $host_os in
14085 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14086 esac
14089 if test -z "$haveit"; then
14090 for x in $CPPFLAGS $INCINTL; do
14092 acl_save_prefix="$prefix"
14093 prefix="$acl_final_prefix"
14094 acl_save_exec_prefix="$exec_prefix"
14095 exec_prefix="$acl_final_exec_prefix"
14096 eval x=\"$x\"
14097 exec_prefix="$acl_save_exec_prefix"
14098 prefix="$acl_save_prefix"
14100 if test "X$x" = "X-I$additional_includedir"; then
14101 haveit=yes
14102 break
14104 done
14105 if test -z "$haveit"; then
14106 if test -d "$additional_includedir"; then
14107 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
14113 if test -n "$found_la"; then
14114 save_libdir="$libdir"
14115 case "$found_la" in
14116 */* | *\\*) . "$found_la" ;;
14117 *) . "./$found_la" ;;
14118 esac
14119 libdir="$save_libdir"
14120 for dep in $dependency_libs; do
14121 case "$dep" in
14122 -L*)
14123 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14124 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
14125 haveit=
14126 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
14127 if test -n "$GCC"; then
14128 case $host_os in
14129 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14130 esac
14133 if test -z "$haveit"; then
14134 haveit=
14135 for x in $LDFLAGS $LIBINTL; do
14137 acl_save_prefix="$prefix"
14138 prefix="$acl_final_prefix"
14139 acl_save_exec_prefix="$exec_prefix"
14140 exec_prefix="$acl_final_exec_prefix"
14141 eval x=\"$x\"
14142 exec_prefix="$acl_save_exec_prefix"
14143 prefix="$acl_save_prefix"
14145 if test "X$x" = "X-L$additional_libdir"; then
14146 haveit=yes
14147 break
14149 done
14150 if test -z "$haveit"; then
14151 if test -d "$additional_libdir"; then
14152 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
14155 haveit=
14156 for x in $LDFLAGS $LTLIBINTL; do
14158 acl_save_prefix="$prefix"
14159 prefix="$acl_final_prefix"
14160 acl_save_exec_prefix="$exec_prefix"
14161 exec_prefix="$acl_final_exec_prefix"
14162 eval x=\"$x\"
14163 exec_prefix="$acl_save_exec_prefix"
14164 prefix="$acl_save_prefix"
14166 if test "X$x" = "X-L$additional_libdir"; then
14167 haveit=yes
14168 break
14170 done
14171 if test -z "$haveit"; then
14172 if test -d "$additional_libdir"; then
14173 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
14179 -R*)
14180 dir=`echo "X$dep" | sed -e 's/^X-R//'`
14181 if test "$enable_rpath" != no; then
14182 haveit=
14183 for x in $rpathdirs; do
14184 if test "X$x" = "X$dir"; then
14185 haveit=yes
14186 break
14188 done
14189 if test -z "$haveit"; then
14190 rpathdirs="$rpathdirs $dir"
14192 haveit=
14193 for x in $ltrpathdirs; do
14194 if test "X$x" = "X$dir"; then
14195 haveit=yes
14196 break
14198 done
14199 if test -z "$haveit"; then
14200 ltrpathdirs="$ltrpathdirs $dir"
14204 -l*)
14205 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14207 *.la)
14208 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14211 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
14212 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
14214 esac
14215 done
14217 else
14218 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
14219 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
14223 done
14224 done
14225 if test "X$rpathdirs" != "X"; then
14226 if test -n "$hardcode_libdir_separator"; then
14227 alldirs=
14228 for found_dir in $rpathdirs; do
14229 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
14230 done
14231 acl_save_libdir="$libdir"
14232 libdir="$alldirs"
14233 eval flag=\"$hardcode_libdir_flag_spec\"
14234 libdir="$acl_save_libdir"
14235 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
14236 else
14237 for found_dir in $rpathdirs; do
14238 acl_save_libdir="$libdir"
14239 libdir="$found_dir"
14240 eval flag=\"$hardcode_libdir_flag_spec\"
14241 libdir="$acl_save_libdir"
14242 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
14243 done
14246 if test "X$ltrpathdirs" != "X"; then
14247 for found_dir in $ltrpathdirs; do
14248 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
14249 done
14252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
14253 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
14254 if eval \${$gt_func_gnugettext_libintl+:} false; then :
14255 $as_echo_n "(cached) " >&6
14256 else
14257 gt_save_CPPFLAGS="$CPPFLAGS"
14258 CPPFLAGS="$CPPFLAGS $INCINTL"
14259 gt_save_LIBS="$LIBS"
14260 LIBS="$LIBS $LIBINTL"
14261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14262 /* end confdefs.h. */
14263 #include <libintl.h>
14264 $gt_revision_test_code
14265 extern int _nl_msg_cat_cntr;
14266 extern
14267 #ifdef __cplusplus
14269 #endif
14270 const char *_nl_expand_alias (const char *);
14272 main ()
14274 bindtextdomain ("", "");
14275 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
14277 return 0;
14279 _ACEOF
14280 if ac_fn_c_try_link "$LINENO"; then :
14281 eval "$gt_func_gnugettext_libintl=yes"
14282 else
14283 eval "$gt_func_gnugettext_libintl=no"
14285 rm -f core conftest.err conftest.$ac_objext \
14286 conftest$ac_exeext conftest.$ac_ext
14287 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
14288 LIBS="$LIBS $LIBICONV"
14289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14290 /* end confdefs.h. */
14291 #include <libintl.h>
14292 $gt_revision_test_code
14293 extern int _nl_msg_cat_cntr;
14294 extern
14295 #ifdef __cplusplus
14297 #endif
14298 const char *_nl_expand_alias (const char *);
14300 main ()
14302 bindtextdomain ("", "");
14303 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
14305 return 0;
14307 _ACEOF
14308 if ac_fn_c_try_link "$LINENO"; then :
14309 LIBINTL="$LIBINTL $LIBICONV"
14310 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
14311 eval "$gt_func_gnugettext_libintl=yes"
14314 rm -f core conftest.err conftest.$ac_objext \
14315 conftest$ac_exeext conftest.$ac_ext
14317 CPPFLAGS="$gt_save_CPPFLAGS"
14318 LIBS="$gt_save_LIBS"
14320 eval ac_res=\$$gt_func_gnugettext_libintl
14321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14322 $as_echo "$ac_res" >&6; }
14325 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
14326 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
14327 && test "$PACKAGE" != gettext-runtime \
14328 && test "$PACKAGE" != gettext-tools; }; then
14329 gt_use_preinstalled_gnugettext=yes
14330 else
14331 LIBINTL=
14332 LTLIBINTL=
14333 INCINTL=
14338 if test -n "$INTL_MACOSX_LIBS"; then
14339 if test "$gt_use_preinstalled_gnugettext" = "yes" \
14340 || test "$nls_cv_use_gnu_gettext" = "yes"; then
14341 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
14342 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
14346 if test "$gt_use_preinstalled_gnugettext" = "yes" \
14347 || test "$nls_cv_use_gnu_gettext" = "yes"; then
14349 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
14351 else
14352 USE_NLS=no
14356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
14357 $as_echo_n "checking whether to use NLS... " >&6; }
14358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
14359 $as_echo "$USE_NLS" >&6; }
14360 if test "$USE_NLS" = "yes"; then
14361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
14362 $as_echo_n "checking where the gettext function comes from... " >&6; }
14363 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
14364 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
14365 gt_source="external libintl"
14366 else
14367 gt_source="libc"
14369 else
14370 gt_source="included intl directory"
14372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
14373 $as_echo "$gt_source" >&6; }
14376 if test "$USE_NLS" = "yes"; then
14378 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
14379 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
14380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
14381 $as_echo_n "checking how to link with libintl... " >&6; }
14382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
14383 $as_echo "$LIBINTL" >&6; }
14385 for element in $INCINTL; do
14386 haveit=
14387 for x in $CPPFLAGS; do
14389 acl_save_prefix="$prefix"
14390 prefix="$acl_final_prefix"
14391 acl_save_exec_prefix="$exec_prefix"
14392 exec_prefix="$acl_final_exec_prefix"
14393 eval x=\"$x\"
14394 exec_prefix="$acl_save_exec_prefix"
14395 prefix="$acl_save_prefix"
14397 if test "X$x" = "X$element"; then
14398 haveit=yes
14399 break
14401 done
14402 if test -z "$haveit"; then
14403 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14405 done
14410 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
14413 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
14417 POSUB=po
14422 INTLLIBS="$LIBINTL"
14430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: dmalloc enabled" >&5
14431 $as_echo_n "checking option: dmalloc enabled... " >&6; }
14432 # Check whether --enable-dmalloc was given.
14433 if test "${enable_dmalloc+set}" = set; then :
14434 enableval=$enable_dmalloc;
14437 if test x$enable_dmalloc = "xyes" ; then
14438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14439 $as_echo "yes" >&6; }
14440 else
14441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14442 $as_echo "no" >&6; }
14446 # Check whether --with-dmalloc-dir was given.
14447 if test "${with_dmalloc_dir+set}" = set; then :
14448 withval=$with_dmalloc_dir;
14449 if test "x$withval" != "xno" ; then
14450 enable_dmalloc = "yes"
14451 CPPFLAGS="$CPPFLAGS -I${withval}"
14452 LDFLAGS="$LDFLAGS -L${withval}"
14458 if test x$enable_dmalloc = "xyes" ; then
14460 $as_echo "#define ENABLE_DMALLOC 1" >>confdefs.h
14464 ALPINE_psefcmd="/bin/ps auxww"
14465 ALPINE_psfailed="0"
14466 ALPINE_PSTEST="-"
14468 # Check whether --with-ps-cmd was given.
14469 if test "${with_ps_cmd+set}" = set; then :
14470 withval=$with_ps_cmd;
14471 if test "x$withval" = "xno" -o "x$withval" = "xyes" -o "x$withval" = "x" ; then
14472 withval=$ALPINE_psefcmd
14474 ALPINE_PSTEST=`$withval | $EGREP "$withval" | $EGREP -v $EGREP`
14475 if test -n "$ALPINE_PSTEST" ; then
14476 ALPINE_psefcmd="$withval"
14477 else
14478 ALPINE_psfailed="1"
14479 if test "x$ALPINE_psefcmd" != "x$withval" ; then
14480 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: failed command $withval. Trying $ALPINE_psefcmd" >&5
14481 $as_echo "$as_me: WARNING: failed command $withval. Trying $ALPINE_psefcmd" >&2;}
14487 if test "$ALPINE_psfailed" = "1" -o "$ALPINE_PSTEST" = "-" ; then
14488 withval="$ALPINE_psefcmd"
14489 ALPINE_PSTEST=`$withval | $EGREP "$withval" | $EGREP -v $EGREP`
14490 if test -z "$ALPINE_PSTEST" ; then
14491 ALPINE_psfailed="1"
14492 else
14493 ALPINE_psfailed="0"
14496 if test "$ALPINE_psfailed" = "0" ; then
14498 cat >>confdefs.h <<_ACEOF
14499 #define PSEFCMD "$ALPINE_psefcmd"
14500 _ACEOF
14504 case $host in
14505 *apple-darwin*)
14506 if test -d /opt/local ; then
14507 localedir="/opt/local/share/locale"
14508 else
14509 localedir="\${datadir}/locale"
14512 *-*-cygwin)
14513 localedir="/usr/share"
14516 localedir="\${datadir}/locale"
14518 esac
14520 # Check whether --with-localedir was given.
14521 if test "${with_localedir+set}" = set; then :
14522 withval=$with_localedir;
14523 case $withval in
14524 yes)
14529 localedir=$withval
14531 esac
14535 localedir="$localedir"
14538 # Setup OS-Specific features
14539 case "$host" in
14540 *darwin*)
14541 # Check whether --enable-osx-universal-binaries was given.
14542 if test "${enable_osx_universal_binaries+set}" = set; then :
14543 enableval=$enable_osx_universal_binaries;
14546 if test "x$enable_osx_universal_binaries" = "xyes" ; then
14547 if test "x$enable_dependency_tracking" != xno ; then
14548 as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking.
14549 Please re-run configure with these options:
14550 --disable-dependency-tracking --enable-osx-universal-binary" "$LINENO" 5
14552 if test -d /Developer/SDKs/MacOSX10.5.sdk ; then
14553 alpine_sysroot=/Developer/SDKs/MacOSX10.5.sdk
14554 elif test -d /Developer/SDKs/MacOSX10.4u.sdk ; then
14555 alpine_sysroot=/Developer/SDKs/MacOSX10.4u.sdk
14556 else
14557 as_fn_error $? "No suitable MacOSX SDK found. Make sure Xcode tools are installed" "$LINENO" 5
14559 ub_cflags="-isysroot $alpine_sysroot -arch ppc -arch i386"
14560 ub_ldflags="-Wl,-syslibroot,$alpine_sysroot -arch ppc -arch i386"
14561 AM_CFLAGS="$AM_CFLAGS $ub_cflags"
14562 AM_LDFLAGS="$AM_LDFLAGS $ub_ldflags"
14563 alpine_c_client_cflags="$alpine_c_client_cflags $ub_cflags"
14564 alpine_c_client_ldflags="$alpine_c_client_ldflags $ub_ldflags"
14567 esac
14570 # Check whether --with-include-path was given.
14571 if test "${with_include_path+set}" = set; then :
14572 withval=$with_include_path;
14573 case $withval in
14576 yes)
14579 new_cppflags="-I`echo ${withval} | ${SED} 's/:/ -I/g'`"
14580 CPPFLAGS="$CPPFLAGS ${new_cppflags}"
14581 alpine_c_client_cflags="$alpine_c_client_cflags ${new_cppflags}"
14583 esac
14589 # Check whether --with-lib-path was given.
14590 if test "${with_lib_path+set}" = set; then :
14591 withval=$with_lib_path;
14592 case $withval in
14595 yes)
14598 new_ldflags="-L`echo ${withval} | ${SED} 's/:/ -L/g'`"
14599 LDFLAGS="$LDFLAGS $new_ldflags"
14600 alpine_c_client_ldflags="$alpine_c_client_ldflags ${new_ldflags}"
14602 esac
14608 # Check whether --with-pubcookie was given.
14609 if test "${with_pubcookie+set}" = set; then :
14610 withval=$with_pubcookie;
14611 if test "x$withval" != "xno" ; then
14612 WEB_PUBCOOKIE_BUILD=web/src/pubcookie
14620 # Check whether --with-web-bin was given.
14621 if test "${with_web_bin+set}" = set; then :
14622 withval=$with_web_bin;
14623 case "$withval" in
14626 yes)
14629 WEB_BINDIR=$withval
14631 esac
14636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: debugging is enabled" >&5
14637 $as_echo_n "checking option: debugging is enabled... " >&6; }
14638 # Check whether --enable-debug was given.
14639 if test "${enable_debug+set}" = set; then :
14640 enableval=$enable_debug;
14643 if test x$enable_debug != "xno" ; then
14644 AM_CFLAGS="$AM_CFLAGS -g"
14646 $as_echo "#define DEBUG 1" >>confdefs.h
14649 $as_echo "#define DEBUGJOURNAL 1" >>confdefs.h
14651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14652 $as_echo "yes" >&6; }
14653 else
14654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14655 $as_echo "no" >&6; }
14658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: optimization is enabled" >&5
14659 $as_echo_n "checking option: optimization is enabled... " >&6; }
14660 # Check whether --enable-optimization was given.
14661 if test "${enable_optimization+set}" = set; then :
14662 enableval=$enable_optimization;
14665 if test x$enable_optimization != "xno" ; then
14666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14667 $as_echo "yes" >&6; }
14668 else
14669 CFLAGS="`echo $AM_CFLAGS | ${SED} 's/-O2//'`"
14670 alpine_c_client_gccoptlevel="-O0"
14671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14672 $as_echo "no" >&6; }
14675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: mouse support enabled" >&5
14676 $as_echo_n "checking option: mouse support enabled... " >&6; }
14677 # Check whether --enable-mouse was given.
14678 if test "${enable_mouse+set}" = set; then :
14679 enableval=$enable_mouse;
14682 if test x$enable_mouse != "xno" ; then
14684 $as_echo "#define MOUSE /**/" >>confdefs.h
14686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14687 $as_echo "yes" >&6; }
14688 else
14689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14690 $as_echo "no" >&6; }
14693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: quotas enabled" >&5
14694 $as_echo_n "checking option: quotas enabled... " >&6; }
14695 # Check whether --enable-quotas was given.
14696 if test "${enable_quotas+set}" = set; then :
14697 enableval=$enable_quotas;
14700 if test x$enable_quotas = "xyes" ; then
14702 $as_echo "#define USE_QUOTAS /**/" >>confdefs.h
14704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14705 $as_echo "yes" >&6; }
14706 else
14707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14708 $as_echo "no" >&6; }
14711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: From changing enabled" >&5
14712 $as_echo_n "checking option: From changing enabled... " >&6; }
14713 # Check whether --enable-from_changing was given.
14714 if test "${enable_from_changing+set}" = set; then :
14715 enableval=$enable_from_changing;
14718 if test x$enable_from_changing != "xno" ; then
14719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14720 $as_echo "yes" >&6; }
14721 else
14723 $as_echo "#define NEVER_ALLOW_CHANGING_FROM /**/" >>confdefs.h
14725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14726 $as_echo "no" >&6; }
14729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: background post enabled" >&5
14730 $as_echo_n "checking option: background post enabled... " >&6; }
14731 # Check whether --enable-background-post was given.
14732 if test "${enable_background_post+set}" = set; then :
14733 enableval=$enable_background_post;
14736 if test x$enable_background_post != "xno" ; then
14738 $as_echo "#define BACKGROUND_POST /**/" >>confdefs.h
14740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14741 $as_echo "yes" >&6; }
14742 else
14743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14744 $as_echo "no" >&6; }
14747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: keyboard lock enabled" >&5
14748 $as_echo_n "checking option: keyboard lock enabled... " >&6; }
14749 # Check whether --enable-keyboard-lock was given.
14750 if test "${enable_keyboard_lock+set}" = set; then :
14751 enableval=$enable_keyboard_lock;
14754 if test x$enable_keyboard_lock != "xno" ; then
14756 $as_echo "#define KEYBOARD_LOCK /**/" >>confdefs.h
14758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14759 $as_echo "yes" >&6; }
14760 else
14761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14762 $as_echo "no" >&6; }
14765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: from encoding enabled" >&5
14766 $as_echo_n "checking option: from encoding enabled... " >&6; }
14767 # Check whether --enable-from-encoding was given.
14768 if test "${enable_from_encoding+set}" = set; then :
14769 enableval=$enable_from_encoding;
14772 if test x$enable_from_encoding = "xyes" ; then
14774 $as_echo "#define ENCODE_FROMS /**/" >>confdefs.h
14776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14777 $as_echo "yes" >&6; }
14778 else
14779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14780 $as_echo "no" >&6; }
14784 # Check whether --with-smtp-msa was given.
14785 if test "${with_smtp_msa+set}" = set; then :
14786 withval=$with_smtp_msa;
14787 case "$withval" in
14790 yes)
14791 # Extract the first word of "sendmail", so it can be a program name with args.
14792 set dummy sendmail; ac_word=$2
14793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14794 $as_echo_n "checking for $ac_word... " >&6; }
14795 if ${ac_cv_path_SENDMAIL+:} false; then :
14796 $as_echo_n "(cached) " >&6
14797 else
14798 case $SENDMAIL in
14799 [\\/]* | ?:[\\/]*)
14800 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
14803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14804 as_dummy="$PATH:/usr/sbin:/usr/lib"
14805 for as_dir in $as_dummy
14807 IFS=$as_save_IFS
14808 test -z "$as_dir" && as_dir=.
14809 for ac_exec_ext in '' $ac_executable_extensions; do
14810 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14811 ac_cv_path_SENDMAIL="$as_dir/$ac_word$ac_exec_ext"
14812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14813 break 2
14815 done
14816 done
14817 IFS=$as_save_IFS
14819 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL=""""
14821 esac
14823 SENDMAIL=$ac_cv_path_SENDMAIL
14824 if test -n "$SENDMAIL"; then
14825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SENDMAIL" >&5
14826 $as_echo "$SENDMAIL" >&6; }
14827 else
14828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14829 $as_echo "no" >&6; }
14835 SENDMAIL=$withval
14837 esac
14839 else
14841 # Extract the first word of "sendmail", so it can be a program name with args.
14842 set dummy sendmail; ac_word=$2
14843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14844 $as_echo_n "checking for $ac_word... " >&6; }
14845 if ${ac_cv_path_SENDMAIL+:} false; then :
14846 $as_echo_n "(cached) " >&6
14847 else
14848 case $SENDMAIL in
14849 [\\/]* | ?:[\\/]*)
14850 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
14853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14854 as_dummy="$PATH:/usr/sbin:/usr/lib"
14855 for as_dir in $as_dummy
14857 IFS=$as_save_IFS
14858 test -z "$as_dir" && as_dir=.
14859 for ac_exec_ext in '' $ac_executable_extensions; do
14860 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14861 ac_cv_path_SENDMAIL="$as_dir/$ac_word$ac_exec_ext"
14862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14863 break 2
14865 done
14866 done
14867 IFS=$as_save_IFS
14869 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL=""""
14871 esac
14873 SENDMAIL=$ac_cv_path_SENDMAIL
14874 if test -n "$SENDMAIL"; then
14875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SENDMAIL" >&5
14876 $as_echo "$SENDMAIL" >&6; }
14877 else
14878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14879 $as_echo "no" >&6; }
14886 if test -n "$SENDMAIL" ; then
14888 cat >>confdefs.h <<_ACEOF
14889 #define SENDMAIL "$SENDMAIL"
14890 _ACEOF
14894 smtp_msa_flags="-bs -odb -oem"
14896 # Check whether --with-smtp-msa-flags was given.
14897 if test "${with_smtp_msa_flags+set}" = set; then :
14898 withval=$with_smtp_msa_flags;
14899 if test "x$withval" != "xno" ; then
14900 smtp_msa_flags=$withval
14906 cat >>confdefs.h <<_ACEOF
14907 #define SENDMAILFLAGS "$smtp_msa_flags"
14908 _ACEOF
14911 npa="inews"
14913 # Check whether --with-npa was given.
14914 if test "${with_npa+set}" = set; then :
14915 withval=$with_npa;
14916 case "$withval" in
14919 yes)
14920 # Extract the first word of "inews", so it can be a program name with args.
14921 set dummy inews; ac_word=$2
14922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14923 $as_echo_n "checking for $ac_word... " >&6; }
14924 if ${ac_cv_path_NPA_PROG+:} false; then :
14925 $as_echo_n "(cached) " >&6
14926 else
14927 case $NPA_PROG in
14928 [\\/]* | ?:[\\/]*)
14929 ac_cv_path_NPA_PROG="$NPA_PROG" # Let the user override the test with a path.
14932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14933 as_dummy="$PATH:/usr/sbin:/usr/lib"
14934 for as_dir in $as_dummy
14936 IFS=$as_save_IFS
14937 test -z "$as_dir" && as_dir=.
14938 for ac_exec_ext in '' $ac_executable_extensions; do
14939 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14940 ac_cv_path_NPA_PROG="$as_dir/$ac_word$ac_exec_ext"
14941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14942 break 2
14944 done
14945 done
14946 IFS=$as_save_IFS
14948 test -z "$ac_cv_path_NPA_PROG" && ac_cv_path_NPA_PROG=""""
14950 esac
14952 NPA_PROG=$ac_cv_path_NPA_PROG
14953 if test -n "$NPA_PROG"; then
14954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NPA_PROG" >&5
14955 $as_echo "$NPA_PROG" >&6; }
14956 else
14957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14958 $as_echo "no" >&6; }
14964 NPA_PROG=$withval
14966 esac
14968 else
14970 # Extract the first word of "inews", so it can be a program name with args.
14971 set dummy inews; ac_word=$2
14972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14973 $as_echo_n "checking for $ac_word... " >&6; }
14974 if ${ac_cv_path_NPA_PROG+:} false; then :
14975 $as_echo_n "(cached) " >&6
14976 else
14977 case $NPA_PROG in
14978 [\\/]* | ?:[\\/]*)
14979 ac_cv_path_NPA_PROG="$NPA_PROG" # Let the user override the test with a path.
14982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14983 as_dummy="$PATH:/usr/sbin:/usr/lib"
14984 for as_dir in $as_dummy
14986 IFS=$as_save_IFS
14987 test -z "$as_dir" && as_dir=.
14988 for ac_exec_ext in '' $ac_executable_extensions; do
14989 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14990 ac_cv_path_NPA_PROG="$as_dir/$ac_word$ac_exec_ext"
14991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14992 break 2
14994 done
14995 done
14996 IFS=$as_save_IFS
14998 test -z "$ac_cv_path_NPA_PROG" && ac_cv_path_NPA_PROG=""""
15000 esac
15002 NPA_PROG=$ac_cv_path_NPA_PROG
15003 if test -n "$NPA_PROG"; then
15004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NPA_PROG" >&5
15005 $as_echo "$NPA_PROG" >&6; }
15006 else
15007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15008 $as_echo "no" >&6; }
15016 npa_flags="-h"
15018 # Check whether --with-npa-flags was given.
15019 if test "${with_npa_flags+set}" = set; then :
15020 withval=$with_npa_flags;
15021 if test "x$withval" != "xno" ; then
15022 npa_flags=$withval
15027 if test -n "$NPA_PROG" ; then
15029 cat >>confdefs.h <<_ACEOF
15030 #define SENDNEWS "$NPA_PROG $npa_flags"
15031 _ACEOF
15036 # Check whether --with-password-prog was given.
15037 if test "${with_password_prog+set}" = set; then :
15038 withval=$with_password_prog;
15039 case "$withval" in
15042 yes)
15043 # Extract the first word of "passwd", so it can be a program name with args.
15044 set dummy passwd; ac_word=$2
15045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15046 $as_echo_n "checking for $ac_word... " >&6; }
15047 if ${ac_cv_path_PWPROG+:} false; then :
15048 $as_echo_n "(cached) " >&6
15049 else
15050 case $PWPROG in
15051 [\\/]* | ?:[\\/]*)
15052 ac_cv_path_PWPROG="$PWPROG" # Let the user override the test with a path.
15055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15056 as_dummy="$PATH:/usr/sbin:/usr/lib"
15057 for as_dir in $as_dummy
15059 IFS=$as_save_IFS
15060 test -z "$as_dir" && as_dir=.
15061 for ac_exec_ext in '' $ac_executable_extensions; do
15062 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15063 ac_cv_path_PWPROG="$as_dir/$ac_word$ac_exec_ext"
15064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15065 break 2
15067 done
15068 done
15069 IFS=$as_save_IFS
15071 test -z "$ac_cv_path_PWPROG" && ac_cv_path_PWPROG=""""
15073 esac
15075 PWPROG=$ac_cv_path_PWPROG
15076 if test -n "$PWPROG"; then
15077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PWPROG" >&5
15078 $as_echo "$PWPROG" >&6; }
15079 else
15080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15081 $as_echo "no" >&6; }
15087 # Extract the first word of "$withval", so it can be a program name with args.
15088 set dummy $withval; ac_word=$2
15089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15090 $as_echo_n "checking for $ac_word... " >&6; }
15091 if ${ac_cv_path_PWPROG+:} false; then :
15092 $as_echo_n "(cached) " >&6
15093 else
15094 case $PWPROG in
15095 [\\/]* | ?:[\\/]*)
15096 ac_cv_path_PWPROG="$PWPROG" # Let the user override the test with a path.
15099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15100 as_dummy="$PATH:/usr/sbin:/usr/lib"
15101 for as_dir in $as_dummy
15103 IFS=$as_save_IFS
15104 test -z "$as_dir" && as_dir=.
15105 for ac_exec_ext in '' $ac_executable_extensions; do
15106 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15107 ac_cv_path_PWPROG="$as_dir/$ac_word$ac_exec_ext"
15108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15109 break 2
15111 done
15112 done
15113 IFS=$as_save_IFS
15115 test -z "$ac_cv_path_PWPROG" && ac_cv_path_PWPROG=""""
15117 esac
15119 PWPROG=$ac_cv_path_PWPROG
15120 if test -n "$PWPROG"; then
15121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PWPROG" >&5
15122 $as_echo "$PWPROG" >&6; }
15123 else
15124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15125 $as_echo "no" >&6; }
15130 esac
15132 else
15134 # Extract the first word of "passwd", so it can be a program name with args.
15135 set dummy passwd; ac_word=$2
15136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15137 $as_echo_n "checking for $ac_word... " >&6; }
15138 if ${ac_cv_path_PWPROG+:} false; then :
15139 $as_echo_n "(cached) " >&6
15140 else
15141 case $PWPROG in
15142 [\\/]* | ?:[\\/]*)
15143 ac_cv_path_PWPROG="$PWPROG" # Let the user override the test with a path.
15146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15147 as_dummy="$PATH:/usr/sbin:/usr/lib"
15148 for as_dir in $as_dummy
15150 IFS=$as_save_IFS
15151 test -z "$as_dir" && as_dir=.
15152 for ac_exec_ext in '' $ac_executable_extensions; do
15153 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15154 ac_cv_path_PWPROG="$as_dir/$ac_word$ac_exec_ext"
15155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15156 break 2
15158 done
15159 done
15160 IFS=$as_save_IFS
15162 test -z "$ac_cv_path_PWPROG" && ac_cv_path_PWPROG=""""
15164 esac
15166 PWPROG=$ac_cv_path_PWPROG
15167 if test -n "$PWPROG"; then
15168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PWPROG" >&5
15169 $as_echo "$PWPROG" >&6; }
15170 else
15171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15172 $as_echo "no" >&6; }
15179 if test -n "$PWPROG" ; then
15181 cat >>confdefs.h <<_ACEOF
15182 #define PASSWD_PROG "$PWPROG"
15183 _ACEOF
15188 # Check whether --with-simple-spellcheck was given.
15189 if test "${with_simple_spellcheck+set}" = set; then :
15190 withval=$with_simple_spellcheck;
15191 if test "x$withval" != "xno" ; then
15192 SPELLPROG=$withval
15195 else
15197 # Extract the first word of "hunspell", so it can be a program name with args.
15198 set dummy hunspell; ac_word=$2
15199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15200 $as_echo_n "checking for $ac_word... " >&6; }
15201 if ${ac_cv_prog_SPELLPROG+:} false; then :
15202 $as_echo_n "(cached) " >&6
15203 else
15204 if test -n "$SPELLPROG"; then
15205 ac_cv_prog_SPELLPROG="$SPELLPROG" # Let the user override the test.
15206 else
15207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15208 for as_dir in $PATH
15210 IFS=$as_save_IFS
15211 test -z "$as_dir" && as_dir=.
15212 for ac_exec_ext in '' $ac_executable_extensions; do
15213 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15214 ac_cv_prog_SPELLPROG="hunspell"
15215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15216 break 2
15218 done
15219 done
15220 IFS=$as_save_IFS
15224 SPELLPROG=$ac_cv_prog_SPELLPROG
15225 if test -n "$SPELLPROG"; then
15226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPELLPROG" >&5
15227 $as_echo "$SPELLPROG" >&6; }
15228 else
15229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15230 $as_echo "no" >&6; }
15234 if test -z "$SPELLPROG" ; then
15235 # Extract the first word of "aspell", so it can be a program name with args.
15236 set dummy aspell; ac_word=$2
15237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15238 $as_echo_n "checking for $ac_word... " >&6; }
15239 if ${ac_cv_prog_SPELLPROG+:} false; then :
15240 $as_echo_n "(cached) " >&6
15241 else
15242 if test -n "$SPELLPROG"; then
15243 ac_cv_prog_SPELLPROG="$SPELLPROG" # Let the user override the test.
15244 else
15245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15246 for as_dir in $PATH
15248 IFS=$as_save_IFS
15249 test -z "$as_dir" && as_dir=.
15250 for ac_exec_ext in '' $ac_executable_extensions; do
15251 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15252 ac_cv_prog_SPELLPROG="aspell"
15253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15254 break 2
15256 done
15257 done
15258 IFS=$as_save_IFS
15262 SPELLPROG=$ac_cv_prog_SPELLPROG
15263 if test -n "$SPELLPROG"; then
15264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPELLPROG" >&5
15265 $as_echo "$SPELLPROG" >&6; }
15266 else
15267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15268 $as_echo "no" >&6; }
15272 if test -z "$SPELLPROG" ; then
15273 # Extract the first word of "ispell", so it can be a program name with args.
15274 set dummy ispell; ac_word=$2
15275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15276 $as_echo_n "checking for $ac_word... " >&6; }
15277 if ${ac_cv_prog_SPELLPROG+:} false; then :
15278 $as_echo_n "(cached) " >&6
15279 else
15280 if test -n "$SPELLPROG"; then
15281 ac_cv_prog_SPELLPROG="$SPELLPROG" # Let the user override the test.
15282 else
15283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15284 for as_dir in $PATH
15286 IFS=$as_save_IFS
15287 test -z "$as_dir" && as_dir=.
15288 for ac_exec_ext in '' $ac_executable_extensions; do
15289 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15290 ac_cv_prog_SPELLPROG="ispell"
15291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15292 break 2
15294 done
15295 done
15296 IFS=$as_save_IFS
15300 SPELLPROG=$ac_cv_prog_SPELLPROG
15301 if test -n "$SPELLPROG"; then
15302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPELLPROG" >&5
15303 $as_echo "$SPELLPROG" >&6; }
15304 else
15305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15306 $as_echo "no" >&6; }
15310 if test -z "$SPELLPROG" ; then
15311 SPELLPROG="spell"
15319 if test "x$SPELLPROG" != "xno" ; then
15320 # Extract the first word of "$SPELLPROG", so it can be a program name with args.
15321 set dummy $SPELLPROG; ac_word=$2
15322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15323 $as_echo_n "checking for $ac_word... " >&6; }
15324 if ${ac_cv_path_alpine_simple_spellcheck+:} false; then :
15325 $as_echo_n "(cached) " >&6
15326 else
15327 case $alpine_simple_spellcheck in
15328 [\\/]* | ?:[\\/]*)
15329 ac_cv_path_alpine_simple_spellcheck="$alpine_simple_spellcheck" # Let the user override the test with a path.
15332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15333 for as_dir in $PATH
15335 IFS=$as_save_IFS
15336 test -z "$as_dir" && as_dir=.
15337 for ac_exec_ext in '' $ac_executable_extensions; do
15338 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15339 ac_cv_path_alpine_simple_spellcheck="$as_dir/$ac_word$ac_exec_ext"
15340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15341 break 2
15343 done
15344 done
15345 IFS=$as_save_IFS
15348 esac
15350 alpine_simple_spellcheck=$ac_cv_path_alpine_simple_spellcheck
15351 if test -n "$alpine_simple_spellcheck"; then
15352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $alpine_simple_spellcheck" >&5
15353 $as_echo "$alpine_simple_spellcheck" >&6; }
15354 else
15355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15356 $as_echo "no" >&6; }
15360 if test -n "$alpine_simple_spellcheck" ; then
15361 case "$SPELLPROG" in
15362 hunspell)
15363 alpine_simple_spellcheck="$alpine_simple_spellcheck -l"
15365 aspell)
15366 alpine_simple_spellcheck="$alpine_simple_spellcheck --dont-backup --mode=email list"
15368 ispell)
15369 alpine_simple_spellcheck="$alpine_simple_spellcheck -l"
15373 esac
15378 # Check whether --with-interactive-spellcheck was given.
15379 if test "${with_interactive_spellcheck+set}" = set; then :
15380 withval=$with_interactive_spellcheck;
15381 if test "x$withval" != "xno" ; then
15382 ISPELLPROG=$withval
15385 else
15387 # Extract the first word of "hunspell", so it can be a program name with args.
15388 set dummy hunspell; ac_word=$2
15389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15390 $as_echo_n "checking for $ac_word... " >&6; }
15391 if ${ac_cv_prog_ISPELLPROG+:} false; then :
15392 $as_echo_n "(cached) " >&6
15393 else
15394 if test -n "$ISPELLPROG"; then
15395 ac_cv_prog_ISPELLPROG="$ISPELLPROG" # Let the user override the test.
15396 else
15397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15398 for as_dir in $PATH
15400 IFS=$as_save_IFS
15401 test -z "$as_dir" && as_dir=.
15402 for ac_exec_ext in '' $ac_executable_extensions; do
15403 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15404 ac_cv_prog_ISPELLPROG="hunspell"
15405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15406 break 2
15408 done
15409 done
15410 IFS=$as_save_IFS
15414 ISPELLPROG=$ac_cv_prog_ISPELLPROG
15415 if test -n "$ISPELLPROG"; then
15416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ISPELLPROG" >&5
15417 $as_echo "$ISPELLPROG" >&6; }
15418 else
15419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15420 $as_echo "no" >&6; }
15424 if test -z "$ISPELLPROG" ; then
15425 # Extract the first word of "aspell", so it can be a program name with args.
15426 set dummy aspell; ac_word=$2
15427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15428 $as_echo_n "checking for $ac_word... " >&6; }
15429 if ${ac_cv_prog_ISPELLPROG+:} false; then :
15430 $as_echo_n "(cached) " >&6
15431 else
15432 if test -n "$ISPELLPROG"; then
15433 ac_cv_prog_ISPELLPROG="$ISPELLPROG" # Let the user override the test.
15434 else
15435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15436 for as_dir in $PATH
15438 IFS=$as_save_IFS
15439 test -z "$as_dir" && as_dir=.
15440 for ac_exec_ext in '' $ac_executable_extensions; do
15441 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15442 ac_cv_prog_ISPELLPROG="aspell"
15443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15444 break 2
15446 done
15447 done
15448 IFS=$as_save_IFS
15452 ISPELLPROG=$ac_cv_prog_ISPELLPROG
15453 if test -n "$ISPELLPROG"; then
15454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ISPELLPROG" >&5
15455 $as_echo "$ISPELLPROG" >&6; }
15456 else
15457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15458 $as_echo "no" >&6; }
15462 if test -z "$SPELLPROG" ; then
15463 ISPELLPROG="ispell"
15470 if test "x$ISPELLPROG" != "xno" ; then
15471 # Extract the first word of "$ISPELLPROG", so it can be a program name with args.
15472 set dummy $ISPELLPROG; ac_word=$2
15473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15474 $as_echo_n "checking for $ac_word... " >&6; }
15475 if ${ac_cv_path_alpine_interactive_spellcheck+:} false; then :
15476 $as_echo_n "(cached) " >&6
15477 else
15478 case $alpine_interactive_spellcheck in
15479 [\\/]* | ?:[\\/]*)
15480 ac_cv_path_alpine_interactive_spellcheck="$alpine_interactive_spellcheck" # Let the user override the test with a path.
15483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15484 for as_dir in $PATH
15486 IFS=$as_save_IFS
15487 test -z "$as_dir" && as_dir=.
15488 for ac_exec_ext in '' $ac_executable_extensions; do
15489 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15490 ac_cv_path_alpine_interactive_spellcheck="$as_dir/$ac_word$ac_exec_ext"
15491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15492 break 2
15494 done
15495 done
15496 IFS=$as_save_IFS
15499 esac
15501 alpine_interactive_spellcheck=$ac_cv_path_alpine_interactive_spellcheck
15502 if test -n "$alpine_interactive_spellcheck"; then
15503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $alpine_interactive_spellcheck" >&5
15504 $as_echo "$alpine_interactive_spellcheck" >&6; }
15505 else
15506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15507 $as_echo "no" >&6; }
15511 if test -n "$alpine_interactive_spellcheck" ; then
15512 case "$ISPELLPROG" in
15513 aspell)
15514 alpine_interactive_spellcheck="$alpine_interactive_spellcheck --dont-backup --mode=email check"
15518 esac
15522 if test -n "$alpine_interactive_spellcheck" ; then
15524 cat >>confdefs.h <<_ACEOF
15525 #define DF_VAR_SPELLER "$alpine_interactive_spellcheck"
15526 _ACEOF
15530 if test -z "$alpine_simple_spellcheck" -a -n "$alpine_interactive_spellcheck" ; then
15531 alpine_simple_spellcheck=test
15534 cat >>confdefs.h <<_ACEOF
15535 #define SPELLER "$alpine_simple_spellcheck"
15536 _ACEOF
15539 case "$prefix" in
15540 NONE) dpv=/usr/local/lib/pine.conf ;;
15541 *) dpv=${prefix}/lib/pine.conf ;;
15542 esac
15544 # Check whether --with-system-pinerc was given.
15545 if test "${with_system_pinerc+set}" = set; then :
15546 withval=$with_system_pinerc;
15547 case "$withval" in
15550 yes)
15553 dpv=$withval
15555 esac
15560 cat >>confdefs.h <<_ACEOF
15561 #define SYSTEM_PINERC "$dpv"
15562 _ACEOF
15565 case "$prefix" in
15566 NONE) dpv=/usr/local/lib/pine.conf.fixed ;;
15567 *) dpv=${prefix}/lib/pine.conf.fixed ;;
15568 esac
15570 # Check whether --with-system-fixed-pinerc was given.
15571 if test "${with_system_fixed_pinerc+set}" = set; then :
15572 withval=$with_system_fixed_pinerc;
15573 case "$withval" in
15576 yes)
15579 dpv=$withval
15581 esac
15586 cat >>confdefs.h <<_ACEOF
15587 #define SYSTEM_PINERC_FIXED "$dpv"
15588 _ACEOF
15591 case "$prefix" in
15592 NONE) dpv=/usr/local/lib/pine.info ;;
15593 *) dpv=${prefix}/lib/pine.info ;;
15594 esac
15596 # Check whether --with-local-support-info was given.
15597 if test "${with_local_support_info+set}" = set; then :
15598 withval=$with_local_support_info;
15599 case "$withval" in
15602 yes)
15605 dpv=$withval
15607 esac
15612 cat >>confdefs.h <<_ACEOF
15613 #define SYSTEM_PINE_INFO_PATH "$dpv"
15614 _ACEOF
15622 dpv=150
15624 # Check whether --with-mailcheck-interval was given.
15625 if test "${with_mailcheck_interval+set}" = set; then :
15626 withval=$with_mailcheck_interval;
15627 if test "x$withval" != "xno" ; then
15628 dpv=$withval
15634 cat >>confdefs.h <<_ACEOF
15635 #define DF_MAILCHECK "$dpv"
15636 _ACEOF
15640 dpv=420
15642 # Check whether --with-checkpoint-interval was given.
15643 if test "${with_checkpoint_interval+set}" = set; then :
15644 withval=$with_checkpoint_interval;
15645 if test "x$withval" != "xno" ; then
15646 dpv=$withval
15652 cat >>confdefs.h <<_ACEOF
15653 #define CHECK_POINT_TIME $dpv
15654 _ACEOF
15658 dpv=12
15660 # Check whether --with-checkpoint-frequency was given.
15661 if test "${with_checkpoint_frequency+set}" = set; then :
15662 withval=$with_checkpoint_frequency;
15663 if test "x$withval" != "xno" ; then
15664 dpv=$withval
15670 cat >>confdefs.h <<_ACEOF
15671 #define CHECK_POINT_FREQ $dpv
15672 _ACEOF
15676 dpv=24
15678 # Check whether --with-display-rows was given.
15679 if test "${with_display_rows+set}" = set; then :
15680 withval=$with_display_rows;
15681 if test "x$withval" != "xno" ; then
15682 dpv=$withval
15688 cat >>confdefs.h <<_ACEOF
15689 #define DEFAULT_LINES_ON_TERMINAL $dpv
15690 _ACEOF
15694 dpv=80
15696 # Check whether --with-display-columns was given.
15697 if test "${with_display_columns+set}" = set; then :
15698 withval=$with_display_columns;
15699 if test "x$withval" != "xno" ; then
15700 dpv=$withval
15706 cat >>confdefs.h <<_ACEOF
15707 #define DEFAULT_COLUMNS_ON_TERMINAL $dpv
15708 _ACEOF
15712 dpv=200
15714 # Check whether --with-max-display-rows was given.
15715 if test "${with_max_display_rows+set}" = set; then :
15716 withval=$with_max_display_rows;
15717 if test "x$withval" != "xno" ; then
15718 dpv=$withval
15724 cat >>confdefs.h <<_ACEOF
15725 #define MAX_SCREEN_ROWS $dpv
15726 _ACEOF
15730 dpv=500
15732 # Check whether --with-max-display-columns was given.
15733 if test "${with_max_display_columns+set}" = set; then :
15734 withval=$with_max_display_columns;
15735 if test "x$withval" != "xno" ; then
15736 dpv=$withval
15742 cat >>confdefs.h <<_ACEOF
15743 #define MAX_SCREEN_COLS $dpv
15744 _ACEOF
15748 dpv=74
15750 # Check whether --with-fill-column was given.
15751 if test "${with_fill_column+set}" = set; then :
15752 withval=$with_fill_column;
15753 if test "x$withval" != "xno" ; then
15754 dpv=$withval
15760 cat >>confdefs.h <<_ACEOF
15761 #define DF_FILLCOL "$dpv"
15762 _ACEOF
15766 dpv=80
15768 # Check whether --with-max_fill-column was given.
15769 if test "${with_max_fill_column+set}" = set; then :
15770 withval=$with_max_fill_column;
15771 if test "x$withval" != "xno" ; then
15772 dpv=$withval
15778 cat >>confdefs.h <<_ACEOF
15779 #define MAX_FILLCOL $dpv
15780 _ACEOF
15784 dpv=2
15786 # Check whether --with-debug-level was given.
15787 if test "${with_debug_level+set}" = set; then :
15788 withval=$with_debug_level;
15789 if test "x$withval" != "xno" ; then
15790 dpv=$withval
15796 cat >>confdefs.h <<_ACEOF
15797 #define DEFAULT_DEBUG $dpv
15798 _ACEOF
15802 dpv=4
15804 # Check whether --with-debug-files was given.
15805 if test "${with_debug_files+set}" = set; then :
15806 withval=$with_debug_files;
15807 if test "x$withval" != "xno" ; then
15808 dpv=$withval
15814 cat >>confdefs.h <<_ACEOF
15815 #define NUMDEBUGFILES $dpv
15816 _ACEOF
15820 dpv=.pine-debug
15822 # Check whether --with-debug-file was given.
15823 if test "${with_debug_file+set}" = set; then :
15824 withval=$with_debug_file;
15825 if test "x$withval" != "xno" ; then
15826 dpv=$withval
15832 cat >>confdefs.h <<_ACEOF
15833 #define DEBUGFILE "$dpv"
15834 _ACEOF
15838 dpv="\$Forwarded"
15840 # Check whether --with-forwarded-keyword was given.
15841 if test "${with_forwarded_keyword+set}" = set; then :
15842 withval=$with_forwarded_keyword;
15843 if test "x$withval" != "xno" ; then
15844 dpv=$withval
15850 cat >>confdefs.h <<_ACEOF
15851 #define FORWARDED_FLAG "$dpv"
15852 _ACEOF
15856 dpv=2
15858 # Check whether --with-display-overlap was given.
15859 if test "${with_display_overlap+set}" = set; then :
15860 withval=$with_display_overlap;
15861 if test "x$withval" != "xno" ; then
15862 dpv=$withval
15868 cat >>confdefs.h <<_ACEOF
15869 #define DF_OVERLAP "$dpv"
15870 _ACEOF
15874 dpv=0
15876 # Check whether --with-display-margin was given.
15877 if test "${with_display_margin+set}" = set; then :
15878 withval=$with_display_margin;
15879 if test "x$withval" != "xno" ; then
15880 dpv=$withval
15886 cat >>confdefs.h <<_ACEOF
15887 #define DF_MARGIN "$dpv"
15888 _ACEOF
15892 dpv=sent-mail
15894 # Check whether --with-default-fcc was given.
15895 if test "${with_default_fcc+set}" = set; then :
15896 withval=$with_default_fcc;
15897 if test "x$withval" != "xno" ; then
15898 dpv=$withval
15904 cat >>confdefs.h <<_ACEOF
15905 #define DF_DEFAULT_FCC "$dpv"
15906 _ACEOF
15910 dpv=saved-messages
15912 # Check whether --with-default-save-folder was given.
15913 if test "${with_default_save_folder+set}" = set; then :
15914 withval=$with_default_save_folder;
15915 if test "x$withval" != "xno" ; then
15916 dpv=$withval
15922 cat >>confdefs.h <<_ACEOF
15923 #define DEFAULT_SAVE "$dpv"
15924 _ACEOF
15928 dpv=postponed-mail
15930 # Check whether --with-default-legacy-postponed-folder was given.
15931 if test "${with_default_legacy_postponed_folder+set}" = set; then :
15932 withval=$with_default_legacy_postponed_folder;
15933 if test "x$withval" != "xno" ; then
15934 dpv=$withval
15940 cat >>confdefs.h <<_ACEOF
15941 #define POSTPONED_MAIL "$dpv"
15942 _ACEOF
15946 dpv=postponed-msgs
15948 # Check whether --with-default-postponed-folder was given.
15949 if test "${with_default_postponed_folder+set}" = set; then :
15950 withval=$with_default_postponed_folder;
15951 if test "x$withval" != "xno" ; then
15952 dpv=$withval
15958 cat >>confdefs.h <<_ACEOF
15959 #define POSTPONED_MSGS "$dpv"
15960 _ACEOF
15964 dpv=Trash
15966 # Check whether --with-default-trash-folder was given.
15967 if test "${with_default_trash_folder+set}" = set; then :
15968 withval=$with_default_trash_folder;
15969 if test "x$withval" != "xno" ; then
15970 dpv=$withval
15976 cat >>confdefs.h <<_ACEOF
15977 #define TRASH_FOLDER "$dpv"
15978 _ACEOF
15982 dpv=.pine-interrupted-mail
15984 # Check whether --with-default-interrupted-mail was given.
15985 if test "${with_default_interrupted_mail+set}" = set; then :
15986 withval=$with_default_interrupted_mail;
15987 if test "x$withval" != "xno" ; then
15988 dpv=$withval
15994 cat >>confdefs.h <<_ACEOF
15995 #define INTERRUPTED_MAIL "$dpv"
15996 _ACEOF
16000 dpv=dead.letter
16002 # Check whether --with-default-dead-letter-folder was given.
16003 if test "${with_default_dead_letter_folder+set}" = set; then :
16004 withval=$with_default_dead_letter_folder;
16005 if test "x$withval" != "xno" ; then
16006 dpv=$withval
16012 cat >>confdefs.h <<_ACEOF
16013 #define DEADLETTER "$dpv"
16014 _ACEOF
16018 dpv=mail
16020 # Check whether --with-default-mail-directory was given.
16021 if test "${with_default_mail_directory+set}" = set; then :
16022 withval=$with_default_mail_directory;
16023 if test "x$withval" != "xno" ; then
16024 dpv=$withval
16030 cat >>confdefs.h <<_ACEOF
16031 #define DF_MAIL_DIRECTORY "$dpv"
16032 _ACEOF
16036 dpv=INBOX
16038 # Check whether --with-default-inbox-name was given.
16039 if test "${with_default_inbox_name+set}" = set; then :
16040 withval=$with_default_inbox_name;
16041 if test "x$withval" != "xno" ; then
16042 dpv=$withval
16048 cat >>confdefs.h <<_ACEOF
16049 #define INBOX_NAME "$dpv"
16050 _ACEOF
16054 dpv=.signature
16056 # Check whether --with-default-signature-file was given.
16057 if test "${with_default_signature_file+set}" = set; then :
16058 withval=$with_default_signature_file;
16059 if test "x$withval" != "xno" ; then
16060 dpv=$withval
16066 cat >>confdefs.h <<_ACEOF
16067 #define DF_SIGNATURE_FILE "$dpv"
16068 _ACEOF
16072 dpv=no
16074 # Check whether --with-default-elm-style-save was given.
16075 if test "${with_default_elm_style_save+set}" = set; then :
16076 withval=$with_default_elm_style_save;
16077 if test "x$withval" != "xno" ; then
16078 dpv=$withval
16084 cat >>confdefs.h <<_ACEOF
16085 #define DF_ELM_STYLE_SAVE "$dpv"
16086 _ACEOF
16090 dpv=no
16092 # Check whether --with-default-header-in-reply was given.
16093 if test "${with_default_header_in_reply+set}" = set; then :
16094 withval=$with_default_header_in_reply;
16095 if test "x$withval" != "xno" ; then
16096 dpv=$withval
16102 cat >>confdefs.h <<_ACEOF
16103 #define DF_HEADER_IN_REPLY "$dpv"
16104 _ACEOF
16108 dpv=no
16110 # Check whether --with-default-old-style-reply was given.
16111 if test "${with_default_old_style_reply+set}" = set; then :
16112 withval=$with_default_old_style_reply;
16113 if test "x$withval" != "xno" ; then
16114 dpv=$withval
16120 cat >>confdefs.h <<_ACEOF
16121 #define DF_OLD_STYLE_REPLY "$dpv"
16122 _ACEOF
16126 dpv=no
16128 # Check whether --with-default-use-only-domain-name was given.
16129 if test "${with_default_use_only_domain_name+set}" = set; then :
16130 withval=$with_default_use_only_domain_name;
16131 if test "x$withval" != "xno" ; then
16132 dpv=$withval
16138 cat >>confdefs.h <<_ACEOF
16139 #define DF_USE_ONLY_DOMAIN_NAME "$dpv"
16140 _ACEOF
16144 dpv=no
16146 # Check whether --with-default-save-by-sender was given.
16147 if test "${with_default_save_by_sender+set}" = set; then :
16148 withval=$with_default_save_by_sender;
16149 if test "x$withval" != "xno" ; then
16150 dpv=$withval
16156 cat >>confdefs.h <<_ACEOF
16157 #define DF_SAVE_BY_SENDER "$dpv"
16158 _ACEOF
16162 dpv=arrival
16164 # Check whether --with-default-sort-key was given.
16165 if test "${with_default_sort_key+set}" = set; then :
16166 withval=$with_default_sort_key;
16167 if test "x$withval" != "xno" ; then
16168 dpv=$withval
16174 cat >>confdefs.h <<_ACEOF
16175 #define DF_SORT_KEY "$dpv"
16176 _ACEOF
16180 dpv=fullname-with-lists-last
16182 # Check whether --with-default-addressbook-sort-rule was given.
16183 if test "${with_default_addressbook_sort_rule+set}" = set; then :
16184 withval=$with_default_addressbook_sort_rule;
16185 if test "x$withval" != "xno" ; then
16186 dpv=$withval
16192 cat >>confdefs.h <<_ACEOF
16193 #define DF_AB_SORT_RULE "$dpv"
16194 _ACEOF
16198 dpv=alphabetical
16200 # Check whether --with-default-folder-sort-rule was given.
16201 if test "${with_default_folder_sort_rule+set}" = set; then :
16202 withval=$with_default_folder_sort_rule;
16203 if test "x$withval" != "xno" ; then
16204 dpv=$withval
16210 cat >>confdefs.h <<_ACEOF
16211 #define DF_FLD_SORT_RULE "$dpv"
16212 _ACEOF
16216 dpv=default-folder
16218 # Check whether --with-default-saved-message-name-rule was given.
16219 if test "${with_default_saved_message_name_rule+set}" = set; then :
16220 withval=$with_default_saved_message_name_rule;
16221 if test "x$withval" != "xno" ; then
16222 dpv=$withval
16228 cat >>confdefs.h <<_ACEOF
16229 #define DF_SAVED_MSG_NAME_RULE "$dpv"
16230 _ACEOF
16234 dpv=default-fcc
16236 # Check whether --with-default-fcc-rule was given.
16237 if test "${with_default_fcc_rule+set}" = set; then :
16238 withval=$with_default_fcc_rule;
16239 if test "x$withval" != "xno" ; then
16240 dpv=$withval
16246 cat >>confdefs.h <<_ACEOF
16247 #define DF_FCC_RULE "$dpv"
16248 _ACEOF
16252 dpv=lpr
16254 # Check whether --with-default-standard-printer was given.
16255 if test "${with_default_standard_printer+set}" = set; then :
16256 withval=$with_default_standard_printer;
16257 if test "x$withval" != "xno" ; then
16258 dpv=$withval
16264 cat >>confdefs.h <<_ACEOF
16265 #define DF_STANDARD_PRINTER "$dpv"
16266 _ACEOF
16270 dpv=attached-to-ansi
16272 # Check whether --with-default-ansi-printer was given.
16273 if test "${with_default_ansi_printer+set}" = set; then :
16274 withval=$with_default_ansi_printer;
16275 if test "x$withval" != "xno" ; then
16276 dpv=$withval
16282 cat >>confdefs.h <<_ACEOF
16283 #define ANSI_PRINTER "$dpv"
16284 _ACEOF
16288 dpv=.addressbook
16290 # Check whether --with-default-addressbook was given.
16291 if test "${with_default_addressbook+set}" = set; then :
16292 withval=$with_default_addressbook;
16293 if test "x$withval" != "xno" ; then
16294 dpv=$withval
16300 cat >>confdefs.h <<_ACEOF
16301 #define DF_ADDRESSBOOK "$dpv"
16302 _ACEOF
16306 dpv="Local Support"
16308 # Check whether --with-default-local-fullname was given.
16309 if test "${with_default_local_fullname+set}" = set; then :
16310 withval=$with_default_local_fullname;
16311 if test "x$withval" != "xno" ; then
16312 dpv=$withval
16318 cat >>confdefs.h <<_ACEOF
16319 #define DF_LOCAL_FULLNAME "$dpv"
16320 _ACEOF
16324 dpv=postmaster
16326 # Check whether --with-default-local-address was given.
16327 if test "${with_default_local_address+set}" = set; then :
16328 withval=$with_default_local_address;
16329 if test "x$withval" != "xno" ; then
16330 dpv=$withval
16336 cat >>confdefs.h <<_ACEOF
16337 #define DF_LOCAL_ADDRESS "$dpv"
16338 _ACEOF
16342 dpv=1
16344 # Check whether --with-default-keyboard-lock-count was given.
16345 if test "${with_default_keyboard_lock_count+set}" = set; then :
16346 withval=$with_default_keyboard_lock_count;
16347 if test "x$withval" != "xno" ; then
16348 dpv=$withval
16354 cat >>confdefs.h <<_ACEOF
16355 #define DF_KBLOCK_PASSWD_COUNT "$dpv"
16356 _ACEOF
16360 dpv=3
16362 # Check whether --with-default-remote-addressbook-history was given.
16363 if test "${with_default_remote_addressbook_history+set}" = set; then :
16364 withval=$with_default_remote_addressbook_history;
16365 if test "x$withval" != "xno" ; then
16366 dpv=$withval
16372 cat >>confdefs.h <<_ACEOF
16373 #define DF_REMOTE_ABOOK_HISTORY "$dpv"
16374 _ACEOF
16378 dpv=.alpine-smime/public
16380 # Check whether --with-smime-public-cert-directory was given.
16381 if test "${with_smime_public_cert_directory+set}" = set; then :
16382 withval=$with_smime_public_cert_directory;
16383 if test "x$withval" != "xno" ; then
16384 dpv=$withval
16390 cat >>confdefs.h <<_ACEOF
16391 #define DF_PUBLICCERT_DIR "$dpv"
16392 _ACEOF
16396 dpv=.alpine-smime/private
16398 # Check whether --with-smime-private-key-directory was given.
16399 if test "${with_smime_private_key_directory+set}" = set; then :
16400 withval=$with_smime_private_key_directory;
16401 if test "x$withval" != "xno" ; then
16402 dpv=$withval
16408 cat >>confdefs.h <<_ACEOF
16409 #define DF_PRIVATEKEY_DIR "$dpv"
16410 _ACEOF
16414 dpv=.alpine-smime/ca
16416 # Check whether --with-smime-cacert-directory was given.
16417 if test "${with_smime_cacert_directory+set}" = set; then :
16418 withval=$with_smime_cacert_directory;
16419 if test "x$withval" != "xno" ; then
16420 dpv=$withval
16426 cat >>confdefs.h <<_ACEOF
16427 #define DF_CACERT_DIR "$dpv"
16428 _ACEOF
16432 dpv=ANSI_PRINTER
16434 # Check whether --with-default-printer was given.
16435 if test "${with_default_printer+set}" = set; then :
16436 withval=$with_default_printer;
16437 if test "x$withval" != "xno" ; then
16438 dpv=$withval
16444 cat >>confdefs.h <<_ACEOF
16445 #define DF_DEFAULT_PRINTER $dpv
16446 _ACEOF
16451 cat >>confdefs.h <<_ACEOF
16452 #define DF_PUBLIC_CONTAINER "PublicContainer"
16453 _ACEOF
16456 cat >>confdefs.h <<_ACEOF
16457 #define DF_PRIVATE_CONTAINER "PrivateContainer"
16458 _ACEOF
16461 cat >>confdefs.h <<_ACEOF
16462 #define DF_CA_CONTAINER "CAContainer"
16463 _ACEOF
16467 # Check whether --with-passfile was given.
16468 if test "${with_passfile+set}" = set; then :
16469 withval=$with_passfile;
16470 case "$withval" in
16473 yes)
16476 alpine_PASSFILE=$withval
16478 esac
16485 # Check whether --with-local-password-cache was given.
16486 if test "${with_local_password_cache+set}" = set; then :
16487 withval=$with_local_password_cache;
16488 alpine_os_credential_cache=$withval
16494 # Check whether --with-local-password-cache-method was given.
16495 if test "${with_local_password_cache_method+set}" = set; then :
16496 withval=$with_local_password_cache_method;
16497 alpine_os_credential_cache_method=$withval
16502 if test -n "$alpine_PASSFILE" ; then
16503 case $alpine_os_credential_cache in
16507 alpine_os_credential_cache="no"
16508 { $as_echo "$as_me:${as_lineno-$LINENO}: --with-passfile definition overrides OS-Specific password caching" >&5
16509 $as_echo "$as_me: --with-passfile definition overrides OS-Specific password caching" >&6;}
16511 esac
16513 cat >>confdefs.h <<_ACEOF
16514 #define PASSFILE "$alpine_PASSFILE"
16515 _ACEOF
16520 # Check whether --with-default-sshpath was given.
16521 if test "${with_default_sshpath+set}" = set; then :
16522 withval=$with_default_sshpath;
16523 case "$withval" in
16526 yes)
16530 cat >>confdefs.h <<_ACEOF
16531 #define DF_SSHPATH "$withval"
16532 _ACEOF
16535 esac
16541 # Check whether --with-default-sshcmd was given.
16542 if test "${with_default_sshcmd+set}" = set; then :
16543 withval=$with_default_sshcmd;
16544 case "$withval" in
16547 yes)
16551 cat >>confdefs.h <<_ACEOF
16552 #define DF_SSHCMD "$withval"
16553 _ACEOF
16556 esac
16562 # Check whether --with-ssl was given.
16563 if test "${with_ssl+set}" = set; then :
16564 withval=$with_ssl; with_ssl=$withval
16568 if test "x$with_ssl" = "xno" ; then
16569 alpine_SSLTYPE="none"
16570 elif test -d /usr/local/ssl ; then
16571 alpine_SSLDIR="/usr/local/ssl"
16572 else
16573 case $host in
16574 *-linux-gnu*|*-k*bsd*-gnu*|*-gnu*)
16575 if test -f /etc/fedora-release -o -f /etc/redhat-release -o -f /etc/redhat_version ; then
16576 alpine_SSLTYPE="nopwd"
16577 if test -d /etc/pki/tls ; then
16578 alpine_SSLDIR="/etc/pki/tls"
16579 else
16580 alpine_SSLDIR="/usr/share/ssl"
16582 alpine_SSLCERTS="$alpine_SSLDIR/certs"
16583 alpine_SSLKEYS="$alpine_SSLDIR/private"
16584 alpine_SSLINCLUDE="/usr/include/openssl"
16585 alpine_SSLLIB="/usr/lib"
16586 elif test -f /etc/mandrake-release ; then
16587 alpine_SSLDIR="/usr/lib/ssl"
16588 alpine_SSLCERTS="$alpine_SSLDIR/certs"
16589 alpine_SSLKEYS="$alpine_SSLDIR/private"
16590 alpine_SSLINCLUDE="/usr/include/openssl"
16591 alpine_SSLLIB="/usr/lib"
16592 elif test -f /etc/SuSE-release ; then
16593 alpine_SSLTYPE="nopwd"
16594 alpine_SSLDIR="/etc/ssl"
16595 alpine_SSLCERTS="$alpine_SSLDIR/certs"
16596 alpine_SSLKEYS="$alpine_SSLDIR/private"
16597 alpine_SSLINCLUDE="/usr/include/openssl"
16598 alpine_SSLLIB="/usr/lib"
16599 elif test -d /etc/osso-af-init ; then
16600 alpine_SSLTYPE="nopwd"
16601 alpine_SSLDIR="/usr"
16602 alpine_SSLCERTS="/usr/share/certs"
16603 alpine_SSLINCLUDE="/usr/include/openssl"
16604 alpine_SSLLIB="/usr/lib"
16605 elif test -f /etc/debian_release -o -f /etc/debian_version ; then
16606 if test ! -d /etc/osso-af-init ; then
16607 alpine_SSLDIR="/etc/ssl"
16608 alpine_SSLCERTS="$alpine_SSLDIR/certs"
16609 alpine_SSLKEYS="$alpine_SSLDIR/private"
16610 alpine_SSLINCLUDE="/usr/include/openssl"
16611 alpine_SSLLIB="/usr/lib"
16613 else
16614 alpine_SSLTYPE="nopwd"
16615 alpine_SSLDIR="/usr"
16616 alpine_SSLCERTS="/etc/ssl/certs"
16619 *-apple-darwin*)
16620 alpine_SSLTYPE="nopwd"
16621 alpine_SSLCERTS_ORIG="/System/Library/OpenSSL/certs"
16622 if test -d /usr/local/opt/openssl ; then
16623 alpine_SSLDIR="/usr/local/opt/openssl"
16624 alpine_SSLINCLUDE="$alpine_SSLDIR/include"
16625 alpine_SSLLIB="$alpine_SSLDIR/lib"
16626 alpine_SSLCERTS="/usr/local/etc/openssl"
16627 alpine_SSLKEYS="$alpine_SSLDIR/private"
16628 elif test -d /opt/local/etc/openssl ; then
16629 alpine_SSLDIR="/opt/local"
16630 alpine_SSLINCLUDE="$alpine_SSLDIR/include"
16631 alpine_SSLLIB="$alpine_SSLDIR/lib"
16632 alpine_SSLCERTS="/opt/local/etc/openssl/certs"
16633 alpine_SSLKEYS="/opt/local/etc/openssl/private"
16634 elif test -d /sw/etc/ssl ; then
16635 alpine_SSLDIR="/sw/etc/ssl"
16636 alpine_SSLINCLUDE="/sw/include"
16637 alpine_SSLLIB="/sw/lib"
16638 alpine_SSLCERTS="/sw/etc/ssl/certs"
16639 alpine_SSLKEYS="/sw/etc/ssl/private"
16640 elif test -d /usr/local/ssl ; then
16641 alpine_SSLDIR="/usr/local/ssl"
16642 elif test -d /System/Library/OpenSSL ; then
16643 alpine_SSLDIR="/System/Library/OpenSSL"
16644 alpine_SSLCERTS="$alpine_SSLDIR/certs"
16645 alpine_SSLKEYS="$alpine_SSLDIR/private"
16646 alpine_SSLLIB="/usr/lib"
16647 alpine_SSLINCLUDE="/usr/include/openssl"
16650 *-*-netbsd*)
16651 alpine_SSLDIR="/etc/openssl"
16652 alpine_SSLCERTS="$alpine_SSLDIR/certs"
16653 alpine_SSLKEYS="$alpine_SSLDIR/private"
16654 alpine_SSLINCLUDE="/usr/include/openssl"
16655 alpine_SSLLIB="/usr/lib"
16657 *-*-dragonfly*)
16658 alpine_SSLDIR="/etc/openssl"
16659 alpine_SSLCERTS="$alpine_SSLDIR/certs"
16660 alpine_SSLKEYS="$alpine_SSLDIR/private"
16661 alpine_SSLINCLUDE="/usr/include/openssl"
16662 alpine_SSLLIB="/usr/lib"
16664 *-openbsd*)
16665 alpine_SSLTYPE="nopwd"
16666 alpine_SSLDIR="/usr"
16667 alpine_SSLCERTS="/etc/ssl/certs"
16669 *-*-freebsd*)
16670 alpine_SSLDIR="/etc/ssl"
16671 alpine_SSLCERTS="$alpine_SSLDIR/certs"
16672 alpine_SSLKEYS="$alpine_SSLDIR/private"
16673 if test -d /usr/local/include/openssl ; then
16674 alpine_SSLINCLUDE="/usr/local/include/openssl"
16675 alpine_SSLLIB="/usr/local/lib"
16676 else
16677 alpine_SSLINCLUDE="/usr/include/openssl"
16678 alpine_SSLLIB="/usr/lib"
16681 *-*-openbsd*)
16682 alpine_SSLDIR="/etc/ssl"
16683 alpine_SSLINCLUDE="/usr/include/openssl"
16684 alpine_SSLLIB="/usr/lib"
16685 alpine_SSLCERTS="/etc/ssl"
16686 alpine_SSLKEYS="/etc/ssl/private"
16688 *-*-cygwin)
16689 alpine_SSLDIR="/usr/ssl"
16690 alpine_SSLCERTS="$alpine_SSLDIR/certs"
16691 alpine_SSLKEYS="$alpine_SSLDIR/certs"
16692 alpine_SSLINCLUDE="/usr/include/openssl"
16693 alpine_SSLLIB="/usr/lib"
16695 *-sco-sysv* | *-sysv*UnixWare | *-sysv*OpenUNIX)
16696 alpine_SSLTYPE="sco.nopwd"
16697 alpine_SSLDIR="/usr/local/ssl"
16699 *-*-solaris*)
16700 if test -d /usr/sfw/include/openssl ; then
16701 alpine_SSLDIR="/usr/sfw"
16702 elif test -d /opt/csw/include/openssl ; then
16703 alpine_SSLDIR="/opt/csw"
16704 if test -d /opt/csw/ssl/certs ; then
16705 alpine_SSLCERTS="/opt/csw/ssl/certs"
16708 if test -z "$alpine_SSLCERTS" -a -d /etc/certs ; then
16709 alpine_SSLCERTS="/etc/certs"
16713 alpine_SSLTYPE="nopwd"
16714 alpine_SSLDIR="/usr/local/ssl"
16716 esac
16719 # Check whether --with-ssl-dir was given.
16720 if test "${with_ssl_dir+set}" = set; then :
16721 withval=$with_ssl_dir;
16722 if test "x$withval" != "xno" ; then
16723 alpine_SSLDIR=$withval
16724 alpine_SSLINCLUDE=$alpine_SSLDIR/include
16725 alpine_SSLLIB=$alpine_SSLDIR/lib
16732 # Check whether --with-ssl-certs-dir was given.
16733 if test "${with_ssl_certs_dir+set}" = set; then :
16734 withval=$with_ssl_certs_dir;
16735 if test "x$withval" != "xno" ; then
16736 alpine_SSLCERTS=$withval
16743 # Check whether --with-ssl-include-dir was given.
16744 if test "${with_ssl_include_dir+set}" = set; then :
16745 withval=$with_ssl_include_dir;
16746 if test "x$withval" != "xno" ; then
16747 alpine_SSLINCLUDE=$withval
16754 # Check whether --with-ssl-lib-dir was given.
16755 if test "${with_ssl_lib_dir+set}" = set; then :
16756 withval=$with_ssl_lib_dir;
16757 if test "x$withval" != "xno" ; then
16758 alpine_SSLLIB=$withval
16763 if test -n "$alpine_SSLINCLUDE" ; then
16764 CPPFLAGS="-I$alpine_SSLINCLUDE $CPPFLAGS"
16765 elif test -n "$alpine_SSLDIR" ; then
16766 CPPFLAGS="-I${alpine_SSLDIR}/include $CPPFLAGS"
16768 if test -n "$alpine_SSLLIB" ; then
16769 LDFLAGS="-L$alpine_SSLLIB $LDFLAGS"
16770 elif test -n "$alpine_SSLDIR" ; then
16771 LDFLAGS="-L${alpine_SSLDIR}/lib $LDFLAGS"
16776 # Check whether --with-krb5 was given.
16777 if test "${with_krb5+set}" = set; then :
16778 withval=$with_krb5; with_krb5=$withval
16782 if test "x$with_krb5" = "xno" ; then
16783 alpine_GSSTYPE="none"
16784 else
16785 alpine_GSSTYPE=
16788 # Check whether --with-krb5-dir was given.
16789 if test "${with_krb5_dir+set}" = set; then :
16790 withval=$with_krb5_dir;
16791 if test "x$withval" != "xno" ; then
16792 CPPFLAGS="$CPPFLAGS -I${withval}/include"
16793 LDFLAGS="$LDFLAGS -L${withval}/lib"
16800 # Check whether --with-krb5-include-dir was given.
16801 if test "${with_krb5_include_dir+set}" = set; then :
16802 withval=$with_krb5_include_dir;
16803 if test "x$withval" != "xno" ; then
16804 CPPFLAGS="$CPPFLAGS -I$withval"
16811 # Check whether --with-krb5-lib-dir was given.
16812 if test "${with_krb5_lib_dir+set}" = set; then :
16813 withval=$with_krb5_lib_dir;
16814 if test "x$withval" != "xno" ; then
16815 LDFLAGS="$LDFLAGS -L$withval"
16823 # Check whether --with-ldap was given.
16824 if test "${with_ldap+set}" = set; then :
16825 withval=$with_ldap; with_ldap=$withval
16829 if test "x$with_ldap" = "xno" ; then
16830 alpine_with_ldap=
16831 { $as_echo "$as_me:${as_lineno-$LINENO}: Excluding LDAP Support" >&5
16832 $as_echo "$as_me: Excluding LDAP Support" >&6;}
16833 else
16835 alpine_with_ldap=yes
16837 # Check whether --with-ldap-dir was given.
16838 if test "${with_ldap_dir+set}" = set; then :
16839 withval=$with_ldap_dir;
16840 if test "x$withval" != "xno" ; then
16841 CPPFLAGS="$CPPFLAGS -I${withval}/include"
16842 LDFLAGS="$LDFLAGS -L${withval}/lib"
16849 # Check whether --with-ldap-include-dir was given.
16850 if test "${with_ldap_include_dir+set}" = set; then :
16851 withval=$with_ldap_include_dir;
16852 if test "x$withval" != "xno" ; then
16853 CPPFLAGS="$CPPFLAGS -I$withval"
16860 # Check whether --with-ldap-lib-dir was given.
16861 if test "${with_ldap_lib_dir+set}" = set; then :
16862 withval=$with_ldap_lib_dir;
16863 if test "x$withval" != "xno" ; then
16864 LDFLAGS="$LDFLAGS -L$withval"
16872 # Check whether --with-smime was given.
16873 if test "${with_smime+set}" = set; then :
16874 withval=$with_smime; with_smime=$withval
16879 # Check whether --with-tcl was given.
16880 if test "${with_tcl+set}" = set; then :
16881 withval=$with_tcl; with_tcl=$withval
16885 if test "x$with_tcl" = "xno" ; then
16886 WEB_BUILD=
16887 { $as_echo "$as_me:${as_lineno-$LINENO}: Excluding TCL Support, and thus Web Alpine Support" >&5
16888 $as_echo "$as_me: Excluding TCL Support, and thus Web Alpine Support" >&6;}
16889 else
16891 # Check whether --with-tcl-lib was given.
16892 if test "${with_tcl_lib+set}" = set; then :
16893 withval=$with_tcl_lib;
16894 if test "x$withval" != "xno" ; then
16895 alpine_TCLLIB=$withval
16901 # Check whether --with-tcl-include was given.
16902 if test "${with_tcl_include+set}" = set; then :
16903 withval=$with_tcl_include;
16904 if test "x$withval" != "xno" ; then
16905 CPPFLAGS="$CPPFLAGS -I$withval"
16906 alpine_TCLINC=$withval
16914 # Check whether --with-supplied-regex was given.
16915 if test "${with_supplied_regex+set}" = set; then :
16916 withval=$with_supplied_regex; alpine_REGEX=$withval
16921 # Check whether --with-pthread was given.
16922 if test "${with_pthread+set}" = set; then :
16923 withval=$with_pthread; with_pthread=$withval
16928 # Check whether --with-system-mail-directory was given.
16929 if test "${with_system_mail_directory+set}" = set; then :
16930 withval=$with_system_mail_directory;
16931 if test "x$withval" != "xno" ; then
16932 alpine_with_local_maildir="$withval"
16939 # Check whether --with-c-client-target was given.
16940 if test "${with_c_client_target+set}" = set; then :
16941 withval=$with_c_client_target;
16942 if test "x$withval" != "xno" ;then
16943 alpine_with_c_client_target="$withval"
16950 alpine_PAM="none"
16952 case "$host" in
16953 *-linux-gnu*|*-k*bsd*-gnu*|*-gnu*)
16954 alpine_path_delim="/"
16955 alpine_mode_readonly="(0600)"
16956 if test -f /etc/fedora-release ; then
16957 systype="LFD"
16958 alpine_PAM="yes"
16959 if test -d /etc/pki/tls ; then
16960 alpine_c_client_target="lfd"
16961 else
16962 alpine_c_client_target="lrh"
16964 elif test -f /etc/mandrake-release ; then
16965 systype="LMD"
16966 alpine_c_client_target="lmd"
16967 alpine_PAM="yes"
16968 elif test -f /etc/redhat-release -o -f /etc/redhat_version ; then
16969 systype="LRH"
16970 alpine_PAM="yes"
16971 if test -d /etc/pki/tls ; then
16972 alpine_c_client_target="lr5"
16973 else
16974 alpine_c_client_target="lrh"
16976 elif test -f /etc/debian_release -o -f /etc/debian_version ; then
16977 if test -d /etc/osso-af-init ; then
16978 systype="LN8"
16979 alpine_c_client_target="ln8"
16980 else
16981 systype="DEB"
16982 alpine_c_client_target="ldb"
16983 alpine_PAM="yes"
16985 elif test -f /etc/SuSE-release ; then
16986 systype="LSU"
16987 alpine_c_client_target="lsu"
16988 alpine_PAM="yes"
16989 else
16990 systype="LNX"
16991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
16992 $as_echo_n "checking for pam_start in -lpam... " >&6; }
16993 if ${ac_cv_lib_pam_pam_start+:} false; then :
16994 $as_echo_n "(cached) " >&6
16995 else
16996 ac_check_lib_save_LIBS=$LIBS
16997 LIBS="-lpam $LIBS"
16998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16999 /* end confdefs.h. */
17001 /* Override any GCC internal prototype to avoid an error.
17002 Use char because int might match the return type of a GCC
17003 builtin and then its argument prototype would still apply. */
17004 #ifdef __cplusplus
17005 extern "C"
17006 #endif
17007 char pam_start ();
17009 main ()
17011 return pam_start ();
17013 return 0;
17015 _ACEOF
17016 if ac_fn_c_try_link "$LINENO"; then :
17017 ac_cv_lib_pam_pam_start=yes
17018 else
17019 ac_cv_lib_pam_pam_start=no
17021 rm -f core conftest.err conftest.$ac_objext \
17022 conftest$ac_exeext conftest.$ac_ext
17023 LIBS=$ac_check_lib_save_LIBS
17025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5
17026 $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
17027 if test "x$ac_cv_lib_pam_pam_start" = xyes; then :
17029 alpine_c_client_target="lnp"
17030 alpine_PAM="yes"
17032 else
17034 if test -f /etc/shadow ; then
17035 alpine_c_client_target="slx"
17036 else
17037 alpine_c_client_target="lnx"
17044 *-apple-darwin*)
17045 systype="OSX"
17046 alpine_path_delim="/"
17047 alpine_mode_readonly="(0600)"
17048 LIBS="$LIBS -framework Carbon -framework ApplicationServices -framework Security"
17049 AM_CFLAGS="$AM_CFLAGS -Dbsd"
17051 $as_echo "#define OSX_TARGET 1" >>confdefs.h
17053 case "$alpine_os_credential_cache" in
17058 $as_echo "#define APPLEKEYCHAIN 1" >>confdefs.h
17061 esac
17062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
17063 $as_echo_n "checking for pam_start in -lpam... " >&6; }
17064 if ${ac_cv_lib_pam_pam_start+:} false; then :
17065 $as_echo_n "(cached) " >&6
17066 else
17067 ac_check_lib_save_LIBS=$LIBS
17068 LIBS="-lpam $LIBS"
17069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17070 /* end confdefs.h. */
17072 /* Override any GCC internal prototype to avoid an error.
17073 Use char because int might match the return type of a GCC
17074 builtin and then its argument prototype would still apply. */
17075 #ifdef __cplusplus
17076 extern "C"
17077 #endif
17078 char pam_start ();
17080 main ()
17082 return pam_start ();
17084 return 0;
17086 _ACEOF
17087 if ac_fn_c_try_link "$LINENO"; then :
17088 ac_cv_lib_pam_pam_start=yes
17089 else
17090 ac_cv_lib_pam_pam_start=no
17092 rm -f core conftest.err conftest.$ac_objext \
17093 conftest$ac_exeext conftest.$ac_ext
17094 LIBS=$ac_check_lib_save_LIBS
17096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5
17097 $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
17098 if test "x$ac_cv_lib_pam_pam_start" = xyes; then :
17100 ac_fn_c_check_header_mongrel "$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default"
17101 if test "x$ac_cv_header_security_pam_appl_h" = xyes; then :
17103 alpine_PAM="yes"
17104 alpine_c_client_target="oxs"
17106 else
17107 ac_fn_c_check_header_mongrel "$LINENO" "pam/pam_appl.h" "ac_cv_header_pam_pam_appl_h" "$ac_includes_default"
17108 if test "x$ac_cv_header_pam_pam_appl_h" = xyes; then :
17110 alpine_PAM="yes"
17111 alpine_c_client_target="oxp"
17113 else
17115 alpine_PAM="none"
17116 alpine_pam_none_reason="header files not found"
17126 else
17128 alpine_c_client_target="osx"
17133 *-*-solaris*)
17134 if test x$GCC = "xyes" ; then
17135 systype="GSO"
17136 alpine_c_client_target="gso"
17137 else
17138 systype="SOC"
17139 alpine_c_client_target="soc"
17141 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
17144 alpine_path_delim="/"
17145 alpine_mode_readonly="(0600)"
17147 *-*-sunos4*)
17148 systype="SUN"
17149 alpine_path_delim="/"
17150 alpine_mode_readonly="(0600)"
17151 alpine_c_client_target="s40"
17153 *-*-sco3.2v5*)
17154 if test x$GCC = "xyes" ; then
17155 systype="GO5"
17156 alpine_c_client_target="go5"
17157 else
17158 systype="SC5"
17159 alpine_c_client_target="sc5"
17161 alpine_path_delim="/"
17162 alpine_mode_readonly="(0600)"
17164 *-next-*)
17165 systype="NXT"
17166 alpine_path_delim="/"
17167 alpine_mode_readonly="(0600)"
17168 alpine_c_client_target="nx3"
17170 *-*-netbsd*)
17171 systype="NEB"
17172 alpine_path_delim="/"
17173 alpine_mode_readonly="(0600)"
17174 alpine_c_client_target="neb"
17176 *-*-dragonfly*)
17177 systype="DFB"
17178 alpine_path_delim="/"
17179 alpine_mode_readonly="(0600)"
17180 alpine_c_client_target="neb"
17182 *-*-bsdi*)
17183 systype="BSI"
17184 alpine_path_delim="/"
17185 alpine_mode_readonly="(0600)"
17186 alpine_c_client_target="bsi"
17188 *-*-freebsd*)
17189 systype="BSF"
17190 alpine_path_delim="/"
17191 alpine_mode_readonly="(0600)"
17192 alpine_c_client_target="bsf"
17193 LIBS="$LIBS $LIBINTL"
17195 *-*-openbsd*)
17196 systype="BSO"
17197 alpine_path_delim="/"
17198 alpine_mode_readonly="(0600)"
17199 alpine_c_client_target="bso"
17200 LIBS="$LIBS $LIBINTL"
17202 *-*-aix5*)
17203 systype="A52"
17204 alpine_path_delim="/"
17205 alpine_mode_readonly="(0600)"
17206 alpine_c_client_target="a52"
17208 *-*-aix4*)
17209 systype="A41"
17210 alpine_path_delim="/"
17211 alpine_mode_readonly="(0600)"
17212 alpine_c_client_target="a41"
17214 *-*-aix3*)
17215 systype="A32"
17216 alpine_path_delim="/"
17217 alpine_mode_readonly="(0600)"
17218 alpine_c_client_target="a32"
17220 *-*UNIX_SV | *-*-sysv5UnixWare7* | *-*OpenUNIX*)
17221 systype="UW2"
17222 alpine_path_delim="/"
17223 alpine_mode_readonly="(0600)"
17224 alpine_c_client_target="uw2"
17226 *-*-osf5*)
17227 systype="OSF"
17228 alpine_path_delim="/"
17229 alpine_mode_readonly="(0600)"
17230 alpine_c_client_target="osf"
17232 *-*-cygwin)
17233 systype="CYG"
17234 alpine_path_delim="/"
17235 alpine_mode_readonly="(S_IREAD | S_IWRITE)"
17236 alpine_c_client_target="cyg"
17237 LIBS="$LIBS $LIBINTL"
17239 windows* | *-*-pw32*)
17240 systype="WNT"
17241 alpine_path_delim="\\"
17242 alpine_mode_readonly="(S_IREAD | S_IWRITE)"
17243 alpine_c_client_target="wnt"
17245 $as_echo "#define _WINDOWS 1" >>confdefs.h
17249 as_fn_error $? "Unrecognized system: $host" "$LINENO" 5
17251 esac
17254 # Check whether --with-ipv6 was given.
17255 if test "${with_ipv6+set}" = set; then :
17256 withval=$with_ipv6; with_ipv6=$withval
17260 if test "x$with_ipv6" = "xno" ; then
17261 { $as_echo "$as_me:${as_lineno-$LINENO}: Excluding IPv6 Support" >&5
17262 $as_echo "$as_me: Excluding IPv6 Support" >&6;}
17263 c_client_specials="${c_client_specials}IP6=4 "
17264 c_client_ip6="true"
17265 else
17266 c_client_ip6="touch imap/ip6"
17271 if test x$enable_dmalloc = "xyes" ; then
17272 if test "x$with_pthread" = "xyes" ; then
17273 dmalloc_lib=dmallocth
17274 else
17275 dmalloc_lib=dmalloc
17278 as_ac_Lib=`$as_echo "ac_cv_lib_$dmalloc_lib''_dmalloc_shutdown" | $as_tr_sh`
17279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dmalloc_shutdown in -l$dmalloc_lib" >&5
17280 $as_echo_n "checking for dmalloc_shutdown in -l$dmalloc_lib... " >&6; }
17281 if eval \${$as_ac_Lib+:} false; then :
17282 $as_echo_n "(cached) " >&6
17283 else
17284 ac_check_lib_save_LIBS=$LIBS
17285 LIBS="-l$dmalloc_lib $LIBS"
17286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17287 /* end confdefs.h. */
17289 /* Override any GCC internal prototype to avoid an error.
17290 Use char because int might match the return type of a GCC
17291 builtin and then its argument prototype would still apply. */
17292 #ifdef __cplusplus
17293 extern "C"
17294 #endif
17295 char dmalloc_shutdown ();
17297 main ()
17299 return dmalloc_shutdown ();
17301 return 0;
17303 _ACEOF
17304 if ac_fn_c_try_link "$LINENO"; then :
17305 eval "$as_ac_Lib=yes"
17306 else
17307 eval "$as_ac_Lib=no"
17309 rm -f core conftest.err conftest.$ac_objext \
17310 conftest$ac_exeext conftest.$ac_ext
17311 LIBS=$ac_check_lib_save_LIBS
17313 eval ac_res=\$$as_ac_Lib
17314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17315 $as_echo "$ac_res" >&6; }
17316 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
17317 cat >>confdefs.h <<_ACEOF
17318 #define `$as_echo "HAVE_LIB$dmalloc_lib" | $as_tr_cpp` 1
17319 _ACEOF
17321 LIBS="-l$dmalloc_lib $LIBS"
17323 else
17325 as_fn_error but -ldmalloc not found "$dmalloc_lib requested" "$LINENO" 5
17331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setupterm in -ltinfo" >&5
17332 $as_echo_n "checking for setupterm in -ltinfo... " >&6; }
17333 if ${ac_cv_lib_tinfo_setupterm+:} false; then :
17334 $as_echo_n "(cached) " >&6
17335 else
17336 ac_check_lib_save_LIBS=$LIBS
17337 LIBS="-ltinfo $LIBS"
17338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17339 /* end confdefs.h. */
17341 /* Override any GCC internal prototype to avoid an error.
17342 Use char because int might match the return type of a GCC
17343 builtin and then its argument prototype would still apply. */
17344 #ifdef __cplusplus
17345 extern "C"
17346 #endif
17347 char setupterm ();
17349 main ()
17351 return setupterm ();
17353 return 0;
17355 _ACEOF
17356 if ac_fn_c_try_link "$LINENO"; then :
17357 ac_cv_lib_tinfo_setupterm=yes
17358 else
17359 ac_cv_lib_tinfo_setupterm=no
17361 rm -f core conftest.err conftest.$ac_objext \
17362 conftest$ac_exeext conftest.$ac_ext
17363 LIBS=$ac_check_lib_save_LIBS
17365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_setupterm" >&5
17366 $as_echo "$ac_cv_lib_tinfo_setupterm" >&6; }
17367 if test "x$ac_cv_lib_tinfo_setupterm" = xyes; then :
17369 alpine_termdata=info
17370 LIBS="$LIBS -ltinfo"
17372 else
17374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setupterm in -lncurses" >&5
17375 $as_echo_n "checking for setupterm in -lncurses... " >&6; }
17376 if ${ac_cv_lib_ncurses_setupterm+:} false; then :
17377 $as_echo_n "(cached) " >&6
17378 else
17379 ac_check_lib_save_LIBS=$LIBS
17380 LIBS="-lncurses $LIBS"
17381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17382 /* end confdefs.h. */
17384 /* Override any GCC internal prototype to avoid an error.
17385 Use char because int might match the return type of a GCC
17386 builtin and then its argument prototype would still apply. */
17387 #ifdef __cplusplus
17388 extern "C"
17389 #endif
17390 char setupterm ();
17392 main ()
17394 return setupterm ();
17396 return 0;
17398 _ACEOF
17399 if ac_fn_c_try_link "$LINENO"; then :
17400 ac_cv_lib_ncurses_setupterm=yes
17401 else
17402 ac_cv_lib_ncurses_setupterm=no
17404 rm -f core conftest.err conftest.$ac_objext \
17405 conftest$ac_exeext conftest.$ac_ext
17406 LIBS=$ac_check_lib_save_LIBS
17408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_setupterm" >&5
17409 $as_echo "$ac_cv_lib_ncurses_setupterm" >&6; }
17410 if test "x$ac_cv_lib_ncurses_setupterm" = xyes; then :
17412 alpine_termdata=info
17413 LIBS="$LIBS -lncurses"
17415 else
17417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setupterm in -lcurses" >&5
17418 $as_echo_n "checking for setupterm in -lcurses... " >&6; }
17419 if ${ac_cv_lib_curses_setupterm+:} false; then :
17420 $as_echo_n "(cached) " >&6
17421 else
17422 ac_check_lib_save_LIBS=$LIBS
17423 LIBS="-lcurses $LIBS"
17424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17425 /* end confdefs.h. */
17427 /* Override any GCC internal prototype to avoid an error.
17428 Use char because int might match the return type of a GCC
17429 builtin and then its argument prototype would still apply. */
17430 #ifdef __cplusplus
17431 extern "C"
17432 #endif
17433 char setupterm ();
17435 main ()
17437 return setupterm ();
17439 return 0;
17441 _ACEOF
17442 if ac_fn_c_try_link "$LINENO"; then :
17443 ac_cv_lib_curses_setupterm=yes
17444 else
17445 ac_cv_lib_curses_setupterm=no
17447 rm -f core conftest.err conftest.$ac_objext \
17448 conftest$ac_exeext conftest.$ac_ext
17449 LIBS=$ac_check_lib_save_LIBS
17451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_setupterm" >&5
17452 $as_echo "$ac_cv_lib_curses_setupterm" >&6; }
17453 if test "x$ac_cv_lib_curses_setupterm" = xyes; then :
17455 alpine_termdata=info
17456 LIBS="$LIBS -lcurses"
17458 else
17460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermlib" >&5
17461 $as_echo_n "checking for tgetent in -ltermlib... " >&6; }
17462 if ${ac_cv_lib_termlib_tgetent+:} false; then :
17463 $as_echo_n "(cached) " >&6
17464 else
17465 ac_check_lib_save_LIBS=$LIBS
17466 LIBS="-ltermlib $LIBS"
17467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17468 /* end confdefs.h. */
17470 /* Override any GCC internal prototype to avoid an error.
17471 Use char because int might match the return type of a GCC
17472 builtin and then its argument prototype would still apply. */
17473 #ifdef __cplusplus
17474 extern "C"
17475 #endif
17476 char tgetent ();
17478 main ()
17480 return tgetent ();
17482 return 0;
17484 _ACEOF
17485 if ac_fn_c_try_link "$LINENO"; then :
17486 ac_cv_lib_termlib_tgetent=yes
17487 else
17488 ac_cv_lib_termlib_tgetent=no
17490 rm -f core conftest.err conftest.$ac_objext \
17491 conftest$ac_exeext conftest.$ac_ext
17492 LIBS=$ac_check_lib_save_LIBS
17494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termlib_tgetent" >&5
17495 $as_echo "$ac_cv_lib_termlib_tgetent" >&6; }
17496 if test "x$ac_cv_lib_termlib_tgetent" = xyes; then :
17498 alpine_termdata=cap
17499 LIBS="$LIBS -ltermlib"
17501 else
17503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
17504 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
17505 if ${ac_cv_lib_termcap_tgetent+:} false; then :
17506 $as_echo_n "(cached) " >&6
17507 else
17508 ac_check_lib_save_LIBS=$LIBS
17509 LIBS="-ltermcap $LIBS"
17510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17511 /* end confdefs.h. */
17513 /* Override any GCC internal prototype to avoid an error.
17514 Use char because int might match the return type of a GCC
17515 builtin and then its argument prototype would still apply. */
17516 #ifdef __cplusplus
17517 extern "C"
17518 #endif
17519 char tgetent ();
17521 main ()
17523 return tgetent ();
17525 return 0;
17527 _ACEOF
17528 if ac_fn_c_try_link "$LINENO"; then :
17529 ac_cv_lib_termcap_tgetent=yes
17530 else
17531 ac_cv_lib_termcap_tgetent=no
17533 rm -f core conftest.err conftest.$ac_objext \
17534 conftest$ac_exeext conftest.$ac_ext
17535 LIBS=$ac_check_lib_save_LIBS
17537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
17538 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
17539 if test "x$ac_cv_lib_termcap_tgetent" = xyes; then :
17541 alpine_termdata=cap
17542 LIBS="$LIBS -ltermcap"
17544 else
17546 as_fn_error $? "Terminfo/termcap not found" "$LINENO" 5
17562 case $alpine_termdata in
17563 info)
17565 $as_echo "#define HAS_TERMINFO 1" >>confdefs.h
17568 cap)
17570 $as_echo "#define HAS_TERMCAP 1" >>confdefs.h
17573 esac
17575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
17576 $as_echo_n "checking for library containing dlopen... " >&6; }
17577 if ${ac_cv_search_dlopen+:} false; then :
17578 $as_echo_n "(cached) " >&6
17579 else
17580 ac_func_search_save_LIBS=$LIBS
17581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17582 /* end confdefs.h. */
17584 /* Override any GCC internal prototype to avoid an error.
17585 Use char because int might match the return type of a GCC
17586 builtin and then its argument prototype would still apply. */
17587 #ifdef __cplusplus
17588 extern "C"
17589 #endif
17590 char dlopen ();
17592 main ()
17594 return dlopen ();
17596 return 0;
17598 _ACEOF
17599 for ac_lib in '' dl dld; do
17600 if test -z "$ac_lib"; then
17601 ac_res="none required"
17602 else
17603 ac_res=-l$ac_lib
17604 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17606 if ac_fn_c_try_link "$LINENO"; then :
17607 ac_cv_search_dlopen=$ac_res
17609 rm -f core conftest.err conftest.$ac_objext \
17610 conftest$ac_exeext
17611 if ${ac_cv_search_dlopen+:} false; then :
17612 break
17614 done
17615 if ${ac_cv_search_dlopen+:} false; then :
17617 else
17618 ac_cv_search_dlopen=no
17620 rm conftest.$ac_ext
17621 LIBS=$ac_func_search_save_LIBS
17623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
17624 $as_echo "$ac_cv_search_dlopen" >&6; }
17625 ac_res=$ac_cv_search_dlopen
17626 if test "$ac_res" != no; then :
17627 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17629 else
17630 alpine_DL="none"
17633 if test "x$alpine_DL" = "xnone" ; then
17634 as_fn_error $? "No library containing dlopen found" "$LINENO" 5
17635 exit 1
17638 if test "x$alpine_SSLTYPE" != "xnone" ; then
17639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing SSLeay" >&5
17640 $as_echo_n "checking for library containing SSLeay... " >&6; }
17641 if ${ac_cv_search_SSLeay+:} false; then :
17642 $as_echo_n "(cached) " >&6
17643 else
17644 ac_func_search_save_LIBS=$LIBS
17645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17646 /* end confdefs.h. */
17648 /* Override any GCC internal prototype to avoid an error.
17649 Use char because int might match the return type of a GCC
17650 builtin and then its argument prototype would still apply. */
17651 #ifdef __cplusplus
17652 extern "C"
17653 #endif
17654 char SSLeay ();
17656 main ()
17658 return SSLeay ();
17660 return 0;
17662 _ACEOF
17663 for ac_lib in '' crypto; do
17664 if test -z "$ac_lib"; then
17665 ac_res="none required"
17666 else
17667 ac_res=-l$ac_lib
17668 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17670 if ac_fn_c_try_link "$LINENO"; then :
17671 ac_cv_search_SSLeay=$ac_res
17673 rm -f core conftest.err conftest.$ac_objext \
17674 conftest$ac_exeext
17675 if ${ac_cv_search_SSLeay+:} false; then :
17676 break
17678 done
17679 if ${ac_cv_search_SSLeay+:} false; then :
17681 else
17682 ac_cv_search_SSLeay=no
17684 rm conftest.$ac_ext
17685 LIBS=$ac_func_search_save_LIBS
17687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_SSLeay" >&5
17688 $as_echo "$ac_cv_search_SSLeay" >&6; }
17689 ac_res=$ac_cv_search_SSLeay
17690 if test "$ac_res" != no; then :
17691 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17693 else
17694 alpine_CRYPTO="none"
17697 if test "x$alpine_CRYPTO" = "xnone" ; then
17698 as_fn_error $? "crypto library NOT found" "$LINENO" 5
17699 exit 1
17703 if test "x$alpine_SSLTYPE" != "xnone" ; then
17704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing SSL_library_init" >&5
17705 $as_echo_n "checking for library containing SSL_library_init... " >&6; }
17706 if ${ac_cv_search_SSL_library_init+:} false; then :
17707 $as_echo_n "(cached) " >&6
17708 else
17709 ac_func_search_save_LIBS=$LIBS
17710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17711 /* end confdefs.h. */
17713 /* Override any GCC internal prototype to avoid an error.
17714 Use char because int might match the return type of a GCC
17715 builtin and then its argument prototype would still apply. */
17716 #ifdef __cplusplus
17717 extern "C"
17718 #endif
17719 char SSL_library_init ();
17721 main ()
17723 return SSL_library_init ();
17725 return 0;
17727 _ACEOF
17728 for ac_lib in '' ssl; do
17729 if test -z "$ac_lib"; then
17730 ac_res="none required"
17731 else
17732 ac_res=-l$ac_lib
17733 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17735 if ac_fn_c_try_link "$LINENO"; then :
17736 ac_cv_search_SSL_library_init=$ac_res
17738 rm -f core conftest.err conftest.$ac_objext \
17739 conftest$ac_exeext
17740 if ${ac_cv_search_SSL_library_init+:} false; then :
17741 break
17743 done
17744 if ${ac_cv_search_SSL_library_init+:} false; then :
17746 else
17747 ac_cv_search_SSL_library_init=no
17749 rm conftest.$ac_ext
17750 LIBS=$ac_func_search_save_LIBS
17752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_SSL_library_init" >&5
17753 $as_echo "$ac_cv_search_SSL_library_init" >&6; }
17754 ac_res=$ac_cv_search_SSL_library_init
17755 if test "$ac_res" != no; then :
17756 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17758 else
17759 alpine_SSLTYPE="none"
17763 if test "x$alpine_SSLTYPE" = "xnone" ; then
17764 as_fn_error $? "No library containing SSL_library_init found in your path" "$LINENO" 5
17765 exit 1
17768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Openssl library version >= 1.0.1c" >&5
17769 $as_echo_n "checking Openssl library version >= 1.0.1c... " >&6; }
17770 if test "$cross_compiling" = yes; then :
17771 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17772 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17773 as_fn_error $? "cannot run test program while cross compiling
17774 See \`config.log' for more details" "$LINENO" 5; }
17775 else
17776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17777 /* end confdefs.h. */
17779 #include <stdio.h>
17780 #include <stdlib.h>
17781 #include <openssl/ssl.h>
17782 int main(void) {
17784 if (OPENSSL_VERSION_NUMBER >= 0x1000003f)
17785 exit(0);
17787 exit(2);
17790 _ACEOF
17791 if ac_fn_c_try_run "$LINENO"; then :
17792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17793 $as_echo "yes" >&6; }
17794 else
17795 alpine_SSLTYPE="none"
17797 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17798 conftest.$ac_objext conftest.beam conftest.$ac_ext
17802 if test "x$alpine_SSLTYPE" = "xnone" ; then
17803 as_fn_error $? "Install openssl version >= 1.0.1c" "$LINENO" 5
17804 exit 1
17806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing TLSv1_2_client_method" >&5
17807 $as_echo_n "checking for library containing TLSv1_2_client_method... " >&6; }
17808 if ${ac_cv_search_TLSv1_2_client_method+:} false; then :
17809 $as_echo_n "(cached) " >&6
17810 else
17811 ac_func_search_save_LIBS=$LIBS
17812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17813 /* end confdefs.h. */
17815 /* Override any GCC internal prototype to avoid an error.
17816 Use char because int might match the return type of a GCC
17817 builtin and then its argument prototype would still apply. */
17818 #ifdef __cplusplus
17819 extern "C"
17820 #endif
17821 char TLSv1_2_client_method ();
17823 main ()
17825 return TLSv1_2_client_method ();
17827 return 0;
17829 _ACEOF
17830 for ac_lib in '' ssl; do
17831 if test -z "$ac_lib"; then
17832 ac_res="none required"
17833 else
17834 ac_res=-l$ac_lib
17835 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17837 if ac_fn_c_try_link "$LINENO"; then :
17838 ac_cv_search_TLSv1_2_client_method=$ac_res
17840 rm -f core conftest.err conftest.$ac_objext \
17841 conftest$ac_exeext
17842 if ${ac_cv_search_TLSv1_2_client_method+:} false; then :
17843 break
17845 done
17846 if ${ac_cv_search_TLSv1_2_client_method+:} false; then :
17848 else
17849 ac_cv_search_TLSv1_2_client_method=no
17851 rm conftest.$ac_ext
17852 LIBS=$ac_func_search_save_LIBS
17854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_TLSv1_2_client_method" >&5
17855 $as_echo "$ac_cv_search_TLSv1_2_client_method" >&6; }
17856 ac_res=$ac_cv_search_TLSv1_2_client_method
17857 if test "$ac_res" != no; then :
17858 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17859 alpine_c_client_cflags="$alpine_c_client_cflags -DTLSV1_2"
17861 $as_echo "#define SSL_SUPPORTS_TLSV1_2 1" >>confdefs.h
17868 if test "$alpine_with_ldap" = "yes" ; then
17869 alpine_has_ldap=
17870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_alloc in -llber" >&5
17871 $as_echo_n "checking for ber_alloc in -llber... " >&6; }
17872 if ${ac_cv_lib_lber_ber_alloc+:} false; then :
17873 $as_echo_n "(cached) " >&6
17874 else
17875 ac_check_lib_save_LIBS=$LIBS
17876 LIBS="-llber $LIBS"
17877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17878 /* end confdefs.h. */
17880 /* Override any GCC internal prototype to avoid an error.
17881 Use char because int might match the return type of a GCC
17882 builtin and then its argument prototype would still apply. */
17883 #ifdef __cplusplus
17884 extern "C"
17885 #endif
17886 char ber_alloc ();
17888 main ()
17890 return ber_alloc ();
17892 return 0;
17894 _ACEOF
17895 if ac_fn_c_try_link "$LINENO"; then :
17896 ac_cv_lib_lber_ber_alloc=yes
17897 else
17898 ac_cv_lib_lber_ber_alloc=no
17900 rm -f core conftest.err conftest.$ac_objext \
17901 conftest$ac_exeext conftest.$ac_ext
17902 LIBS=$ac_check_lib_save_LIBS
17904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_alloc" >&5
17905 $as_echo "$ac_cv_lib_lber_ber_alloc" >&6; }
17906 if test "x$ac_cv_lib_lber_ber_alloc" = xyes; then :
17908 LIBS="$LIBS -llber"
17912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldap_init" >&5
17913 $as_echo_n "checking for library containing ldap_init... " >&6; }
17914 if ${ac_cv_search_ldap_init+:} false; then :
17915 $as_echo_n "(cached) " >&6
17916 else
17917 ac_func_search_save_LIBS=$LIBS
17918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17919 /* end confdefs.h. */
17921 /* Override any GCC internal prototype to avoid an error.
17922 Use char because int might match the return type of a GCC
17923 builtin and then its argument prototype would still apply. */
17924 #ifdef __cplusplus
17925 extern "C"
17926 #endif
17927 char ldap_init ();
17929 main ()
17931 return ldap_init ();
17933 return 0;
17935 _ACEOF
17936 for ac_lib in '' ldap; do
17937 if test -z "$ac_lib"; then
17938 ac_res="none required"
17939 else
17940 ac_res=-l$ac_lib
17941 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17943 if ac_fn_c_try_link "$LINENO"; then :
17944 ac_cv_search_ldap_init=$ac_res
17946 rm -f core conftest.err conftest.$ac_objext \
17947 conftest$ac_exeext
17948 if ${ac_cv_search_ldap_init+:} false; then :
17949 break
17951 done
17952 if ${ac_cv_search_ldap_init+:} false; then :
17954 else
17955 ac_cv_search_ldap_init=no
17957 rm conftest.$ac_ext
17958 LIBS=$ac_func_search_save_LIBS
17960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldap_init" >&5
17961 $as_echo "$ac_cv_search_ldap_init" >&6; }
17962 ac_res=$ac_cv_search_ldap_init
17963 if test "$ac_res" != no; then :
17964 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17966 alpine_has_ldap=yes
17968 else
17970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldap_open" >&5
17971 $as_echo_n "checking for library containing ldap_open... " >&6; }
17972 if ${ac_cv_search_ldap_open+:} false; then :
17973 $as_echo_n "(cached) " >&6
17974 else
17975 ac_func_search_save_LIBS=$LIBS
17976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17977 /* end confdefs.h. */
17979 /* Override any GCC internal prototype to avoid an error.
17980 Use char because int might match the return type of a GCC
17981 builtin and then its argument prototype would still apply. */
17982 #ifdef __cplusplus
17983 extern "C"
17984 #endif
17985 char ldap_open ();
17987 main ()
17989 return ldap_open ();
17991 return 0;
17993 _ACEOF
17994 for ac_lib in '' ldap; do
17995 if test -z "$ac_lib"; then
17996 ac_res="none required"
17997 else
17998 ac_res=-l$ac_lib
17999 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18001 if ac_fn_c_try_link "$LINENO"; then :
18002 ac_cv_search_ldap_open=$ac_res
18004 rm -f core conftest.err conftest.$ac_objext \
18005 conftest$ac_exeext
18006 if ${ac_cv_search_ldap_open+:} false; then :
18007 break
18009 done
18010 if ${ac_cv_search_ldap_open+:} false; then :
18012 else
18013 ac_cv_search_ldap_open=no
18015 rm conftest.$ac_ext
18016 LIBS=$ac_func_search_save_LIBS
18018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldap_open" >&5
18019 $as_echo "$ac_cv_search_ldap_open" >&6; }
18020 ac_res=$ac_cv_search_ldap_open
18021 if test "$ac_res" != no; then :
18022 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18024 alpine_has_ldap=yes
18032 if test "$alpine_has_ldap" = "yes" ; then
18033 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * Including LDAP Support" >&5
18034 $as_echo "$as_me: * * * Including LDAP Support" >&6;}
18036 $as_echo "#define ENABLE_LDAP /**/" >>confdefs.h
18039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should define LDAP_DEPRECATED" >&5
18040 $as_echo_n "checking if we should define LDAP_DEPRECATED... " >&6; }
18041 if test "$cross_compiling" = yes; then :
18043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking" >&5
18044 $as_echo "$as_me: WARNING: cross compiling: not checking" >&2;}
18047 else
18048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18049 /* end confdefs.h. */
18051 #include <stdio.h>
18052 #include <stdlib.h>
18053 #include <ldap.h>
18054 int main(void) {
18056 if (LDAP_VENDOR_VERSION >= 20300)
18057 exit(0);
18059 exit(2);
18062 _ACEOF
18063 if ac_fn_c_try_run "$LINENO"; then :
18065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18066 $as_echo "yes" >&6; }
18068 $as_echo "#define LDAP_DEPRECATED 1" >>confdefs.h
18072 else
18074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18075 $as_echo "no" >&6; }
18078 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18079 conftest.$ac_objext conftest.beam conftest.$ac_ext
18083 else
18084 { $as_echo "$as_me:${as_lineno-$LINENO}: Cannot find LDAP functions! Excluding LDAP support." >&5
18085 $as_echo "$as_me: Cannot find LDAP functions! Excluding LDAP support." >&6;}
18089 if test "x$alpine_PAM" != "xnone" ; then
18090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pam_start" >&5
18091 $as_echo_n "checking for library containing pam_start... " >&6; }
18092 if ${ac_cv_search_pam_start+:} false; then :
18093 $as_echo_n "(cached) " >&6
18094 else
18095 ac_func_search_save_LIBS=$LIBS
18096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18097 /* end confdefs.h. */
18099 /* Override any GCC internal prototype to avoid an error.
18100 Use char because int might match the return type of a GCC
18101 builtin and then its argument prototype would still apply. */
18102 #ifdef __cplusplus
18103 extern "C"
18104 #endif
18105 char pam_start ();
18107 main ()
18109 return pam_start ();
18111 return 0;
18113 _ACEOF
18114 for ac_lib in '' pam; do
18115 if test -z "$ac_lib"; then
18116 ac_res="none required"
18117 else
18118 ac_res=-l$ac_lib
18119 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18121 if ac_fn_c_try_link "$LINENO"; then :
18122 ac_cv_search_pam_start=$ac_res
18124 rm -f core conftest.err conftest.$ac_objext \
18125 conftest$ac_exeext
18126 if ${ac_cv_search_pam_start+:} false; then :
18127 break
18129 done
18130 if ${ac_cv_search_pam_start+:} false; then :
18132 else
18133 ac_cv_search_pam_start=no
18135 rm conftest.$ac_ext
18136 LIBS=$ac_func_search_save_LIBS
18138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pam_start" >&5
18139 $as_echo "$ac_cv_search_pam_start" >&6; }
18140 ac_res=$ac_cv_search_pam_start
18141 if test "$ac_res" != no; then :
18142 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18144 LIBS="$LIBS -lpam"
18145 ac_fn_c_check_header_mongrel "$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default"
18146 if test "x$ac_cv_header_security_pam_appl_h" = xyes; then :
18148 alpine_PAM="yes"
18150 else
18151 ac_fn_c_check_header_mongrel "$LINENO" "pam/pam_appl.h" "ac_cv_header_pam_pam_appl_h" "$ac_includes_default"
18152 if test "x$ac_cv_header_pam_pam_appl_h" = xyes; then :
18154 alpine_PAM="yes"
18155 if test "x$alpine_c_client_target" != "xoxp" ; then
18156 alpine_PAM="none"
18157 alpine_pam_none_reason="header files not in security/ directory"
18160 else
18162 alpine_PAM="none"
18163 alpine_pam_none_reason="header files not found"
18173 else
18175 alpine_PAM="none"
18176 alpine_pam_none_reason="library files not found"
18180 if test -n "$alpine_pam_none_reason" ; then
18181 as_fn_error $? "No PAM support: $alpine_pam_none_reason" "$LINENO" 5
18186 if test "x$alpine_GSSTYPE" != "xnone" ; then
18187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gss_init_sec_context" >&5
18188 $as_echo_n "checking for library containing gss_init_sec_context... " >&6; }
18189 if ${ac_cv_search_gss_init_sec_context+:} false; then :
18190 $as_echo_n "(cached) " >&6
18191 else
18192 ac_func_search_save_LIBS=$LIBS
18193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18194 /* end confdefs.h. */
18196 /* Override any GCC internal prototype to avoid an error.
18197 Use char because int might match the return type of a GCC
18198 builtin and then its argument prototype would still apply. */
18199 #ifdef __cplusplus
18200 extern "C"
18201 #endif
18202 char gss_init_sec_context ();
18204 main ()
18206 return gss_init_sec_context ();
18208 return 0;
18210 _ACEOF
18211 for ac_lib in '' gss gssapi gssapi_krb5; do
18212 if test -z "$ac_lib"; then
18213 ac_res="none required"
18214 else
18215 ac_res=-l$ac_lib
18216 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18218 if ac_fn_c_try_link "$LINENO"; then :
18219 ac_cv_search_gss_init_sec_context=$ac_res
18221 rm -f core conftest.err conftest.$ac_objext \
18222 conftest$ac_exeext
18223 if ${ac_cv_search_gss_init_sec_context+:} false; then :
18224 break
18226 done
18227 if ${ac_cv_search_gss_init_sec_context+:} false; then :
18229 else
18230 ac_cv_search_gss_init_sec_context=no
18232 rm conftest.$ac_ext
18233 LIBS=$ac_func_search_save_LIBS
18235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gss_init_sec_context" >&5
18236 $as_echo "$ac_cv_search_gss_init_sec_context" >&6; }
18237 ac_res=$ac_cv_search_gss_init_sec_context
18238 if test "$ac_res" != no; then :
18239 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18241 LIBS="$LIBS -lkrb5"
18242 ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi_generic.h" "ac_cv_header_gssapi_gssapi_generic_h" "$ac_includes_default"
18243 if test "x$ac_cv_header_gssapi_gssapi_generic_h" = xyes; then :
18245 else
18247 if test ! -d /usr/kerberos/include ; then
18248 alpine_GSSTYPE="none"
18249 alpine_gss_none_reason="header files not found"
18256 else
18258 alpine_GSSTYPE="none"
18259 alpine_gss_none_reason="libraries not found"
18263 if test -n "$alpine_gss_none_reason" ; then
18264 { $as_echo "$as_me:${as_lineno-$LINENO}: NOT including Kerberos Support: $alpine_gss_none_reason" >&5
18265 $as_echo "$as_me: NOT including Kerberos Support: $alpine_gss_none_reason" >&6;}
18269 if test -n "$WEB_BUILD" ; then
18270 TCL_VERSIONS_DOT="tcl8.6 tcl8.5 tcl8.4 tcl8.3"
18271 TCL_VERSIONS_NODOT="`echo ${TCL_VERSIONS_DOT} | ${SED} 's/\.//g'`"
18272 TCL_VERSIONS="${TCL_VERSIONS_DOT} ${TCL_VERSIONS_NODOT} tcl"
18273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing Tcl_Eval" >&5
18274 $as_echo_n "checking for library containing Tcl_Eval... " >&6; }
18275 if ${ac_cv_search_Tcl_Eval+:} false; then :
18276 $as_echo_n "(cached) " >&6
18277 else
18278 ac_func_search_save_LIBS=$LIBS
18279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18280 /* end confdefs.h. */
18282 /* Override any GCC internal prototype to avoid an error.
18283 Use char because int might match the return type of a GCC
18284 builtin and then its argument prototype would still apply. */
18285 #ifdef __cplusplus
18286 extern "C"
18287 #endif
18288 char Tcl_Eval ();
18290 main ()
18292 return Tcl_Eval ();
18294 return 0;
18296 _ACEOF
18297 for ac_lib in '' $alpine_TCLLIB ${TCL_VERSIONS}; do
18298 if test -z "$ac_lib"; then
18299 ac_res="none required"
18300 else
18301 ac_res=-l$ac_lib
18302 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18304 if ac_fn_c_try_link "$LINENO"; then :
18305 ac_cv_search_Tcl_Eval=$ac_res
18307 rm -f core conftest.err conftest.$ac_objext \
18308 conftest$ac_exeext
18309 if ${ac_cv_search_Tcl_Eval+:} false; then :
18310 break
18312 done
18313 if ${ac_cv_search_Tcl_Eval+:} false; then :
18315 else
18316 ac_cv_search_Tcl_Eval=no
18318 rm conftest.$ac_ext
18319 LIBS=$ac_func_search_save_LIBS
18321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_Tcl_Eval" >&5
18322 $as_echo "$ac_cv_search_Tcl_Eval" >&6; }
18323 ac_res=$ac_cv_search_Tcl_Eval
18324 if test "$ac_res" != no; then :
18325 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18327 else
18329 WEB_BUILD=
18334 if test -n "$alpine_TCLINC" ; then
18335 as_ac_Header=`$as_echo "ac_cv_header_$alpine_TCLINC/tcl.h" | $as_tr_sh`
18336 ac_fn_c_check_header_mongrel "$LINENO" "$alpine_TCLINC/tcl.h" "$as_ac_Header" "$ac_includes_default"
18337 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18339 else
18341 WEB_BUILD=
18346 if test -z "$WEB_BUILD" ; then
18347 { $as_echo "$as_me:${as_lineno-$LINENO}: Tcl Include file NOT found" >&5
18348 $as_echo "$as_me: Tcl Include file NOT found" >&6;}
18350 else
18351 ac_fn_c_check_header_mongrel "$LINENO" "tcl.h" "ac_cv_header_tcl_h" "$ac_includes_default"
18352 if test "x$ac_cv_header_tcl_h" = xyes; then :
18354 else
18356 for base in /usr /usr/local ; do
18357 for dir in ${TCL_VERSIONS} ; do
18358 as_ac_File=`$as_echo "ac_cv_file_$base/include/$dir/tcl.h" | $as_tr_sh`
18359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $base/include/$dir/tcl.h" >&5
18360 $as_echo_n "checking for $base/include/$dir/tcl.h... " >&6; }
18361 if eval \${$as_ac_File+:} false; then :
18362 $as_echo_n "(cached) " >&6
18363 else
18364 test "$cross_compiling" = yes &&
18365 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
18366 if test -r "$base/include/$dir/tcl.h"; then
18367 eval "$as_ac_File=yes"
18368 else
18369 eval "$as_ac_File=no"
18372 eval ac_res=\$$as_ac_File
18373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18374 $as_echo "$ac_res" >&6; }
18375 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
18377 found=yes
18381 if test "$found" = "yes" ; then
18382 CPPFLAGS="$CPPFLAGS -I$base/include/$dir"
18383 break
18385 done
18386 if test "$found" = "yes" ; then
18387 break
18389 done
18390 if test "$found" != "yes" ; then
18391 WEB_BUILD=
18392 { $as_echo "$as_me:${as_lineno-$LINENO}: header file tcl.h NOT found: Web Alpine will not be built" >&5
18393 $as_echo "$as_me: header file tcl.h NOT found: Web Alpine will not be built" >&6;}
18402 if test "x$alpine_REGEX" != "xyes" ; then
18403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing regcomp" >&5
18404 $as_echo_n "checking for library containing regcomp... " >&6; }
18405 if ${ac_cv_search_regcomp+:} false; then :
18406 $as_echo_n "(cached) " >&6
18407 else
18408 ac_func_search_save_LIBS=$LIBS
18409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18410 /* end confdefs.h. */
18412 /* Override any GCC internal prototype to avoid an error.
18413 Use char because int might match the return type of a GCC
18414 builtin and then its argument prototype would still apply. */
18415 #ifdef __cplusplus
18416 extern "C"
18417 #endif
18418 char regcomp ();
18420 main ()
18422 return regcomp ();
18424 return 0;
18426 _ACEOF
18427 for ac_lib in '' posix regexp regex re; do
18428 if test -z "$ac_lib"; then
18429 ac_res="none required"
18430 else
18431 ac_res=-l$ac_lib
18432 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18434 if ac_fn_c_try_link "$LINENO"; then :
18435 ac_cv_search_regcomp=$ac_res
18437 rm -f core conftest.err conftest.$ac_objext \
18438 conftest$ac_exeext
18439 if ${ac_cv_search_regcomp+:} false; then :
18440 break
18442 done
18443 if ${ac_cv_search_regcomp+:} false; then :
18445 else
18446 ac_cv_search_regcomp=no
18448 rm conftest.$ac_ext
18449 LIBS=$ac_func_search_save_LIBS
18451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_regcomp" >&5
18452 $as_echo "$ac_cv_search_regcomp" >&6; }
18453 ac_res=$ac_cv_search_regcomp
18454 if test "$ac_res" != no; then :
18455 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18457 else
18459 if test x$alpine_REGEX = "xno" ; then
18460 as_fn_error $? "Unable to find system regex library" "$LINENO" 5
18461 else
18462 alpine_REGEX=yes
18468 if test "x$alpine_REGEX" != "xyes" ; then
18469 ac_fn_c_check_header_mongrel "$LINENO" "regex.h" "ac_cv_header_regex_h" "$ac_includes_default"
18470 if test "x$ac_cv_header_regex_h" = xyes; then :
18472 else
18474 if test x$alpine_REGEX = "xno" ; then
18475 as_fn_error $? "Unable to find system regex include file" "$LINENO" 5
18476 else
18477 alpine_REGEX=yes
18485 $as_echo "#define HAVE_REGEX_H 1" >>confdefs.h
18487 if test "x$alpine_REGEX" = "xyes" ; then
18488 CPPFLAGS="$CPPFLAGS -I${top_builddir}/regex"
18489 LDFLAGS="$LDFLAGS -L${top_builddir}/regex"
18490 REGEX_BUILD=regex
18491 REGEX_MAKEFILE="$REGEX_BUILD/Makefile"
18494 if test "x$with_pthread" != "xno" ; then
18495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread support" >&5
18496 $as_echo_n "checking for pthread support... " >&6; }
18500 ac_ext=c
18501 ac_cpp='$CPP $CPPFLAGS'
18502 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18503 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18504 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18506 acx_pthread_ok=no
18508 # We used to check for pthread.h first, but this fails if pthread.h
18509 # requires special compiler flags (e.g. on True64 or Sequent).
18510 # It gets checked for in the link test anyway.
18512 # First of all, check if the user has set any of the PTHREAD_LIBS,
18513 # etcetera environment variables, and if threads linking works using
18514 # them:
18515 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
18516 save_CFLAGS="$CFLAGS"
18517 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
18518 save_LIBS="$LIBS"
18519 LIBS="$PTHREAD_LIBS $LIBS"
18520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
18521 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
18522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18523 /* end confdefs.h. */
18525 /* Override any GCC internal prototype to avoid an error.
18526 Use char because int might match the return type of a GCC
18527 builtin and then its argument prototype would still apply. */
18528 #ifdef __cplusplus
18529 extern "C"
18530 #endif
18531 char pthread_join ();
18533 main ()
18535 return pthread_join ();
18537 return 0;
18539 _ACEOF
18540 if ac_fn_c_try_link "$LINENO"; then :
18541 acx_pthread_ok=yes
18543 rm -f core conftest.err conftest.$ac_objext \
18544 conftest$ac_exeext conftest.$ac_ext
18545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
18546 $as_echo "$acx_pthread_ok" >&6; }
18547 if test x"$acx_pthread_ok" = xno; then
18548 PTHREAD_LIBS=""
18549 PTHREAD_CFLAGS=""
18551 LIBS="$save_LIBS"
18552 CFLAGS="$save_CFLAGS"
18555 # We must check for the threads library under a number of different
18556 # names; the ordering is very important because some systems
18557 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
18558 # libraries is broken (non-POSIX).
18560 # Create a list of thread flags to try. Items starting with a "-" are
18561 # C compiler flags, and other items are library names, except for "none"
18562 # which indicates that we try without any flags at all, and "pthread-config"
18563 # which is a program returning the flags for the Pth emulation library.
18565 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
18567 # The ordering *is* (sometimes) important. Some notes on the
18568 # individual items follow:
18570 # pthreads: AIX (must check this before -lpthread)
18571 # none: in case threads are in libc; should be tried before -Kthread and
18572 # other compiler flags to prevent continual compiler warnings
18573 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
18574 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
18575 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
18576 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
18577 # -pthreads: Solaris/gcc
18578 # -mthreads: Mingw32/gcc, Lynx/gcc
18579 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
18580 # doesn't hurt to check since this sometimes defines pthreads too;
18581 # also defines -D_REENTRANT)
18582 # ... -mt is also the pthreads flag for HP/aCC
18583 # pthread: Linux, etcetera
18584 # --thread-safe: KAI C++
18585 # pthread-config: use pthread-config program (for GNU Pth library)
18587 case "${host_cpu}-${host_os}" in
18588 *solaris*)
18590 # On Solaris (at least, for some versions), libc contains stubbed
18591 # (non-functional) versions of the pthreads routines, so link-based
18592 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
18593 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
18594 # a function called by this macro, so we could check for that, but
18595 # who knows whether they'll stub that too in a future libc.) So,
18596 # we'll just look for -pthreads and -lpthread first:
18598 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
18600 esac
18602 if test x"$acx_pthread_ok" = xno; then
18603 for flag in $acx_pthread_flags; do
18605 case $flag in
18606 none)
18607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
18608 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
18612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
18613 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
18614 PTHREAD_CFLAGS="$flag"
18617 pthread-config)
18618 # Extract the first word of "pthread-config", so it can be a program name with args.
18619 set dummy pthread-config; ac_word=$2
18620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18621 $as_echo_n "checking for $ac_word... " >&6; }
18622 if ${ac_cv_prog_acx_pthread_config+:} false; then :
18623 $as_echo_n "(cached) " >&6
18624 else
18625 if test -n "$acx_pthread_config"; then
18626 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
18627 else
18628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18629 for as_dir in $PATH
18631 IFS=$as_save_IFS
18632 test -z "$as_dir" && as_dir=.
18633 for ac_exec_ext in '' $ac_executable_extensions; do
18634 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18635 ac_cv_prog_acx_pthread_config="yes"
18636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18637 break 2
18639 done
18640 done
18641 IFS=$as_save_IFS
18643 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
18646 acx_pthread_config=$ac_cv_prog_acx_pthread_config
18647 if test -n "$acx_pthread_config"; then
18648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
18649 $as_echo "$acx_pthread_config" >&6; }
18650 else
18651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18652 $as_echo "no" >&6; }
18656 if test x"$acx_pthread_config" = xno; then continue; fi
18657 PTHREAD_CFLAGS="`pthread-config --cflags`"
18658 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
18662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
18663 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
18664 PTHREAD_LIBS="-l$flag"
18666 esac
18668 save_LIBS="$LIBS"
18669 save_CFLAGS="$CFLAGS"
18670 LIBS="$PTHREAD_LIBS $LIBS"
18671 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
18673 # Check for various functions. We must include pthread.h,
18674 # since some functions may be macros. (On the Sequent, we
18675 # need a special flag -Kthread to make this header compile.)
18676 # We check for pthread_join because it is in -lpthread on IRIX
18677 # while pthread_create is in libc. We check for pthread_attr_init
18678 # due to DEC craziness with -lpthreads. We check for
18679 # pthread_cleanup_push because it is one of the few pthread
18680 # functions on Solaris that doesn't have a non-functional libc stub.
18681 # We try pthread_create on general principles.
18682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18683 /* end confdefs.h. */
18684 #include <pthread.h>
18686 main ()
18688 pthread_t th; pthread_join(th, 0);
18689 pthread_attr_init(0); pthread_cleanup_push(0, 0);
18690 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
18692 return 0;
18694 _ACEOF
18695 if ac_fn_c_try_link "$LINENO"; then :
18696 acx_pthread_ok=yes
18698 rm -f core conftest.err conftest.$ac_objext \
18699 conftest$ac_exeext conftest.$ac_ext
18701 LIBS="$save_LIBS"
18702 CFLAGS="$save_CFLAGS"
18704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
18705 $as_echo "$acx_pthread_ok" >&6; }
18706 if test "x$acx_pthread_ok" = xyes; then
18707 break;
18710 PTHREAD_LIBS=""
18711 PTHREAD_CFLAGS=""
18712 done
18715 # Various other checks:
18716 if test "x$acx_pthread_ok" = xyes; then
18717 save_LIBS="$LIBS"
18718 LIBS="$PTHREAD_LIBS $LIBS"
18719 save_CFLAGS="$CFLAGS"
18720 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
18722 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
18723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
18724 $as_echo_n "checking for joinable pthread attribute... " >&6; }
18725 attr_name=unknown
18726 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
18727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18728 /* end confdefs.h. */
18729 #include <pthread.h>
18731 main ()
18733 int attr=$attr; return attr;
18735 return 0;
18737 _ACEOF
18738 if ac_fn_c_try_link "$LINENO"; then :
18739 attr_name=$attr; break
18741 rm -f core conftest.err conftest.$ac_objext \
18742 conftest$ac_exeext conftest.$ac_ext
18743 done
18744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
18745 $as_echo "$attr_name" >&6; }
18746 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
18748 cat >>confdefs.h <<_ACEOF
18749 #define PTHREAD_CREATE_JOINABLE $attr_name
18750 _ACEOF
18754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
18755 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
18756 flag=no
18757 case "${host_cpu}-${host_os}" in
18758 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
18759 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
18760 esac
18761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
18762 $as_echo "${flag}" >&6; }
18763 if test "x$flag" != xno; then
18764 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
18767 LIBS="$save_LIBS"
18768 CFLAGS="$save_CFLAGS"
18770 # More AIX lossage: must compile with xlc_r or cc_r
18771 if test x"$GCC" != xyes; then
18772 for ac_prog in xlc_r cc_r
18774 # Extract the first word of "$ac_prog", so it can be a program name with args.
18775 set dummy $ac_prog; ac_word=$2
18776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18777 $as_echo_n "checking for $ac_word... " >&6; }
18778 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
18779 $as_echo_n "(cached) " >&6
18780 else
18781 if test -n "$PTHREAD_CC"; then
18782 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
18783 else
18784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18785 for as_dir in $PATH
18787 IFS=$as_save_IFS
18788 test -z "$as_dir" && as_dir=.
18789 for ac_exec_ext in '' $ac_executable_extensions; do
18790 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18791 ac_cv_prog_PTHREAD_CC="$ac_prog"
18792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18793 break 2
18795 done
18796 done
18797 IFS=$as_save_IFS
18801 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
18802 if test -n "$PTHREAD_CC"; then
18803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
18804 $as_echo "$PTHREAD_CC" >&6; }
18805 else
18806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18807 $as_echo "no" >&6; }
18811 test -n "$PTHREAD_CC" && break
18812 done
18813 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
18815 else
18816 PTHREAD_CC=$CC
18818 else
18819 PTHREAD_CC="$CC"
18826 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
18827 if test x"$acx_pthread_ok" = xyes; then
18829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18830 $as_echo "yes" >&6; }
18831 case "$target" in
18832 *openbsd*)
18833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pthread support on OpenBSD is unstable!" >&5
18834 $as_echo "$as_me: WARNING: pthread support on OpenBSD is unstable!" >&6;}
18835 AM_CFLAGS="$AM_CFLAGS -pthread"
18837 esac
18838 LIBS="$PTHREAD_LIBS $LIBS"
18839 AM_CFLAGS="$AM_CFLAGS $PTHREAD_CFLAGS"
18840 CC="$PTHREAD_CC"
18842 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
18846 else
18847 acx_pthread_ok=no
18849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18850 $as_echo "no" >&6; }
18853 ac_ext=c
18854 ac_cpp='$CPP $CPPFLAGS'
18855 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18856 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18857 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
18862 $as_echo_n "checking for library containing nanosleep... " >&6; }
18863 if ${ac_cv_search_nanosleep+:} false; then :
18864 $as_echo_n "(cached) " >&6
18865 else
18866 ac_func_search_save_LIBS=$LIBS
18867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18868 /* end confdefs.h. */
18870 /* Override any GCC internal prototype to avoid an error.
18871 Use char because int might match the return type of a GCC
18872 builtin and then its argument prototype would still apply. */
18873 #ifdef __cplusplus
18874 extern "C"
18875 #endif
18876 char nanosleep ();
18878 main ()
18880 return nanosleep ();
18882 return 0;
18884 _ACEOF
18885 for ac_lib in '' rt posix4; do
18886 if test -z "$ac_lib"; then
18887 ac_res="none required"
18888 else
18889 ac_res=-l$ac_lib
18890 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18892 if ac_fn_c_try_link "$LINENO"; then :
18893 ac_cv_search_nanosleep=$ac_res
18895 rm -f core conftest.err conftest.$ac_objext \
18896 conftest$ac_exeext
18897 if ${ac_cv_search_nanosleep+:} false; then :
18898 break
18900 done
18901 if ${ac_cv_search_nanosleep+:} false; then :
18903 else
18904 ac_cv_search_nanosleep=no
18906 rm conftest.$ac_ext
18907 LIBS=$ac_func_search_save_LIBS
18909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
18910 $as_echo "$ac_cv_search_nanosleep" >&6; }
18911 ac_res=$ac_cv_search_nanosleep
18912 if test "$ac_res" != no; then :
18913 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18916 $as_echo "#define HAVE_NANOSLEEP 1" >>confdefs.h
18926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
18927 $as_echo_n "checking for ANSI C header files... " >&6; }
18928 if ${ac_cv_header_stdc+:} false; then :
18929 $as_echo_n "(cached) " >&6
18930 else
18931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18932 /* end confdefs.h. */
18933 #include <stdlib.h>
18934 #include <stdarg.h>
18935 #include <string.h>
18936 #include <float.h>
18939 main ()
18943 return 0;
18945 _ACEOF
18946 if ac_fn_c_try_compile "$LINENO"; then :
18947 ac_cv_header_stdc=yes
18948 else
18949 ac_cv_header_stdc=no
18951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18953 if test $ac_cv_header_stdc = yes; then
18954 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
18955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18956 /* end confdefs.h. */
18957 #include <string.h>
18959 _ACEOF
18960 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18961 $EGREP "memchr" >/dev/null 2>&1; then :
18963 else
18964 ac_cv_header_stdc=no
18966 rm -f conftest*
18970 if test $ac_cv_header_stdc = yes; then
18971 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
18972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18973 /* end confdefs.h. */
18974 #include <stdlib.h>
18976 _ACEOF
18977 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18978 $EGREP "free" >/dev/null 2>&1; then :
18980 else
18981 ac_cv_header_stdc=no
18983 rm -f conftest*
18987 if test $ac_cv_header_stdc = yes; then
18988 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
18989 if test "$cross_compiling" = yes; then :
18991 else
18992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18993 /* end confdefs.h. */
18994 #include <ctype.h>
18995 #include <stdlib.h>
18996 #if ((' ' & 0x0FF) == 0x020)
18997 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
18998 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
18999 #else
19000 # define ISLOWER(c) \
19001 (('a' <= (c) && (c) <= 'i') \
19002 || ('j' <= (c) && (c) <= 'r') \
19003 || ('s' <= (c) && (c) <= 'z'))
19004 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19005 #endif
19007 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19009 main ()
19011 int i;
19012 for (i = 0; i < 256; i++)
19013 if (XOR (islower (i), ISLOWER (i))
19014 || toupper (i) != TOUPPER (i))
19015 return 2;
19016 return 0;
19018 _ACEOF
19019 if ac_fn_c_try_run "$LINENO"; then :
19021 else
19022 ac_cv_header_stdc=no
19024 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19025 conftest.$ac_objext conftest.beam conftest.$ac_ext
19030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
19031 $as_echo "$ac_cv_header_stdc" >&6; }
19032 if test $ac_cv_header_stdc = yes; then
19034 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
19038 ac_header_dirent=no
19039 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
19040 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
19041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
19042 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
19043 if eval \${$as_ac_Header+:} false; then :
19044 $as_echo_n "(cached) " >&6
19045 else
19046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19047 /* end confdefs.h. */
19048 #include <sys/types.h>
19049 #include <$ac_hdr>
19052 main ()
19054 if ((DIR *) 0)
19055 return 0;
19057 return 0;
19059 _ACEOF
19060 if ac_fn_c_try_compile "$LINENO"; then :
19061 eval "$as_ac_Header=yes"
19062 else
19063 eval "$as_ac_Header=no"
19065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19067 eval ac_res=\$$as_ac_Header
19068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19069 $as_echo "$ac_res" >&6; }
19070 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19071 cat >>confdefs.h <<_ACEOF
19072 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
19073 _ACEOF
19075 ac_header_dirent=$ac_hdr; break
19078 done
19079 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
19080 if test $ac_header_dirent = dirent.h; then
19081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
19082 $as_echo_n "checking for library containing opendir... " >&6; }
19083 if ${ac_cv_search_opendir+:} false; then :
19084 $as_echo_n "(cached) " >&6
19085 else
19086 ac_func_search_save_LIBS=$LIBS
19087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19088 /* end confdefs.h. */
19090 /* Override any GCC internal prototype to avoid an error.
19091 Use char because int might match the return type of a GCC
19092 builtin and then its argument prototype would still apply. */
19093 #ifdef __cplusplus
19094 extern "C"
19095 #endif
19096 char opendir ();
19098 main ()
19100 return opendir ();
19102 return 0;
19104 _ACEOF
19105 for ac_lib in '' dir; do
19106 if test -z "$ac_lib"; then
19107 ac_res="none required"
19108 else
19109 ac_res=-l$ac_lib
19110 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19112 if ac_fn_c_try_link "$LINENO"; then :
19113 ac_cv_search_opendir=$ac_res
19115 rm -f core conftest.err conftest.$ac_objext \
19116 conftest$ac_exeext
19117 if ${ac_cv_search_opendir+:} false; then :
19118 break
19120 done
19121 if ${ac_cv_search_opendir+:} false; then :
19123 else
19124 ac_cv_search_opendir=no
19126 rm conftest.$ac_ext
19127 LIBS=$ac_func_search_save_LIBS
19129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
19130 $as_echo "$ac_cv_search_opendir" >&6; }
19131 ac_res=$ac_cv_search_opendir
19132 if test "$ac_res" != no; then :
19133 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19137 else
19138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
19139 $as_echo_n "checking for library containing opendir... " >&6; }
19140 if ${ac_cv_search_opendir+:} false; then :
19141 $as_echo_n "(cached) " >&6
19142 else
19143 ac_func_search_save_LIBS=$LIBS
19144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19145 /* end confdefs.h. */
19147 /* Override any GCC internal prototype to avoid an error.
19148 Use char because int might match the return type of a GCC
19149 builtin and then its argument prototype would still apply. */
19150 #ifdef __cplusplus
19151 extern "C"
19152 #endif
19153 char opendir ();
19155 main ()
19157 return opendir ();
19159 return 0;
19161 _ACEOF
19162 for ac_lib in '' x; do
19163 if test -z "$ac_lib"; then
19164 ac_res="none required"
19165 else
19166 ac_res=-l$ac_lib
19167 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19169 if ac_fn_c_try_link "$LINENO"; then :
19170 ac_cv_search_opendir=$ac_res
19172 rm -f core conftest.err conftest.$ac_objext \
19173 conftest$ac_exeext
19174 if ${ac_cv_search_opendir+:} false; then :
19175 break
19177 done
19178 if ${ac_cv_search_opendir+:} false; then :
19180 else
19181 ac_cv_search_opendir=no
19183 rm conftest.$ac_ext
19184 LIBS=$ac_func_search_save_LIBS
19186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
19187 $as_echo "$ac_cv_search_opendir" >&6; }
19188 ac_res=$ac_cv_search_opendir
19189 if test "$ac_res" != no; then :
19190 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
19197 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
19198 if ${ac_cv_header_stat_broken+:} false; then :
19199 $as_echo_n "(cached) " >&6
19200 else
19201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19202 /* end confdefs.h. */
19203 #include <sys/types.h>
19204 #include <sys/stat.h>
19206 #if defined S_ISBLK && defined S_IFDIR
19207 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
19208 #endif
19210 #if defined S_ISBLK && defined S_IFCHR
19211 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
19212 #endif
19214 #if defined S_ISLNK && defined S_IFREG
19215 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
19216 #endif
19218 #if defined S_ISSOCK && defined S_IFREG
19219 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
19220 #endif
19222 _ACEOF
19223 if ac_fn_c_try_compile "$LINENO"; then :
19224 ac_cv_header_stat_broken=no
19225 else
19226 ac_cv_header_stat_broken=yes
19228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
19231 $as_echo "$ac_cv_header_stat_broken" >&6; }
19232 if test $ac_cv_header_stat_broken = yes; then
19234 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
19238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
19239 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
19240 if ${ac_cv_header_sys_wait_h+:} false; then :
19241 $as_echo_n "(cached) " >&6
19242 else
19243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19244 /* end confdefs.h. */
19245 #include <sys/types.h>
19246 #include <sys/wait.h>
19247 #ifndef WEXITSTATUS
19248 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
19249 #endif
19250 #ifndef WIFEXITED
19251 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
19252 #endif
19255 main ()
19257 int s;
19258 wait (&s);
19259 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
19261 return 0;
19263 _ACEOF
19264 if ac_fn_c_try_compile "$LINENO"; then :
19265 ac_cv_header_sys_wait_h=yes
19266 else
19267 ac_cv_header_sys_wait_h=no
19269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
19272 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
19273 if test $ac_cv_header_sys_wait_h = yes; then
19275 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
19279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
19280 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
19281 if ${ac_cv_header_time+:} false; then :
19282 $as_echo_n "(cached) " >&6
19283 else
19284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19285 /* end confdefs.h. */
19286 #include <sys/types.h>
19287 #include <sys/time.h>
19288 #include <time.h>
19291 main ()
19293 if ((struct tm *) 0)
19294 return 0;
19296 return 0;
19298 _ACEOF
19299 if ac_fn_c_try_compile "$LINENO"; then :
19300 ac_cv_header_time=yes
19301 else
19302 ac_cv_header_time=no
19304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
19307 $as_echo "$ac_cv_header_time" >&6; }
19308 if test $ac_cv_header_time = yes; then
19310 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
19314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
19315 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
19316 if ${ac_cv_sys_tiocgwinsz_in_termios_h+:} false; then :
19317 $as_echo_n "(cached) " >&6
19318 else
19319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19320 /* end confdefs.h. */
19321 #include <sys/types.h>
19322 #include <termios.h>
19323 #ifdef TIOCGWINSZ
19325 #endif
19327 _ACEOF
19328 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19329 $EGREP "yes" >/dev/null 2>&1; then :
19330 ac_cv_sys_tiocgwinsz_in_termios_h=yes
19331 else
19332 ac_cv_sys_tiocgwinsz_in_termios_h=no
19334 rm -f conftest*
19337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
19338 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
19340 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
19341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
19342 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
19343 if ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+:} false; then :
19344 $as_echo_n "(cached) " >&6
19345 else
19346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19347 /* end confdefs.h. */
19348 #include <sys/types.h>
19349 #include <sys/ioctl.h>
19350 #ifdef TIOCGWINSZ
19352 #endif
19354 _ACEOF
19355 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19356 $EGREP "yes" >/dev/null 2>&1; then :
19357 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
19358 else
19359 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
19361 rm -f conftest*
19364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
19365 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
19367 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
19369 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
19375 for ac_header in unistd.h
19376 do :
19377 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
19378 if test "x$ac_cv_header_unistd_h" = xyes; then :
19379 cat >>confdefs.h <<_ACEOF
19380 #define HAVE_UNISTD_H 1
19381 _ACEOF
19385 done
19388 for ac_header in errno.h \
19389 ctype.h \
19390 fcntl.h \
19391 signal.h \
19392 setjmp.h \
19393 memory.h \
19394 sys/param.h \
19395 sys/socket.h \
19396 sys/uio.h \
19397 sys/un.h \
19398 limits.h \
19399 wchar.h \
19400 sys/poll.h \
19401 stropts.h \
19402 netdb.h \
19403 syslog.h \
19404 sys/syslog.h \
19405 locale.h \
19406 langinfo.h \
19407 utime.h \
19408 sys/utime.h \
19409 pthread.h \
19410 pwd.h \
19411 assert.h
19412 do :
19413 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19414 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19415 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19416 cat >>confdefs.h <<_ACEOF
19417 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19418 _ACEOF
19422 done
19425 ac_fn_c_check_header_mongrel "$LINENO" "termios.h" "ac_cv_header_termios_h" "$ac_includes_default"
19426 if test "x$ac_cv_header_termios_h" = xyes; then :
19428 $as_echo "#define HAS_TERMIOS 1" >>confdefs.h
19430 else
19432 ac_fn_c_check_header_mongrel "$LINENO" "termio.h" "ac_cv_header_termio_h" "$ac_includes_default"
19433 if test "x$ac_cv_header_termio_h" = xyes; then :
19435 $as_echo "#define HAS_TERMIO 1" >>confdefs.h
19437 else
19439 ac_fn_c_check_header_mongrel "$LINENO" "sgtty.h" "ac_cv_header_sgtty_h" "$ac_includes_default"
19440 if test "x$ac_cv_header_sgtty_h" = xyes; then :
19442 $as_echo "#define HAS_SGTTY 1" >>confdefs.h
19444 else
19446 as_fn_error $? "Unable to figure out terminal control method" "$LINENO" 5
19462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
19463 $as_echo_n "checking return type of signal handlers... " >&6; }
19464 if ${ac_cv_type_signal+:} false; then :
19465 $as_echo_n "(cached) " >&6
19466 else
19467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19468 /* end confdefs.h. */
19469 #include <sys/types.h>
19470 #include <signal.h>
19473 main ()
19475 return *(signal (0, 0)) (0) == 1;
19477 return 0;
19479 _ACEOF
19480 if ac_fn_c_try_compile "$LINENO"; then :
19481 ac_cv_type_signal=int
19482 else
19483 ac_cv_type_signal=void
19485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
19488 $as_echo "$ac_cv_type_signal" >&6; }
19490 cat >>confdefs.h <<_ACEOF
19491 #define RETSIGTYPE $ac_cv_type_signal
19492 _ACEOF
19495 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
19496 if test "x$ac_cv_type_size_t" = xyes; then :
19498 else
19500 cat >>confdefs.h <<_ACEOF
19501 #define size_t unsigned int
19502 _ACEOF
19506 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
19507 if test "x$ac_cv_type_mode_t" = xyes; then :
19509 else
19511 cat >>confdefs.h <<_ACEOF
19512 #define mode_t int
19513 _ACEOF
19517 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
19518 if test "x$ac_cv_type_pid_t" = xyes; then :
19520 else
19522 cat >>confdefs.h <<_ACEOF
19523 #define pid_t int
19524 _ACEOF
19528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
19529 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
19530 if ${ac_cv_type_uid_t+:} false; then :
19531 $as_echo_n "(cached) " >&6
19532 else
19533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19534 /* end confdefs.h. */
19535 #include <sys/types.h>
19537 _ACEOF
19538 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19539 $EGREP "uid_t" >/dev/null 2>&1; then :
19540 ac_cv_type_uid_t=yes
19541 else
19542 ac_cv_type_uid_t=no
19544 rm -f conftest*
19547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
19548 $as_echo "$ac_cv_type_uid_t" >&6; }
19549 if test $ac_cv_type_uid_t = no; then
19551 $as_echo "#define uid_t int" >>confdefs.h
19554 $as_echo "#define gid_t int" >>confdefs.h
19558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
19559 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
19560 if ${ac_cv_struct_tm+:} false; then :
19561 $as_echo_n "(cached) " >&6
19562 else
19563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19564 /* end confdefs.h. */
19565 #include <sys/types.h>
19566 #include <time.h>
19569 main ()
19571 struct tm tm;
19572 int *p = &tm.tm_sec;
19573 return !p;
19575 return 0;
19577 _ACEOF
19578 if ac_fn_c_try_compile "$LINENO"; then :
19579 ac_cv_struct_tm=time.h
19580 else
19581 ac_cv_struct_tm=sys/time.h
19583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
19586 $as_echo "$ac_cv_struct_tm" >&6; }
19587 if test $ac_cv_struct_tm = sys/time.h; then
19589 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
19594 ac_fn_c_check_type "$LINENO" "union wait" "ac_cv_type_union_wait" "$ac_includes_default"
19595 if test "x$ac_cv_type_union_wait" = xyes; then :
19597 cat >>confdefs.h <<_ACEOF
19598 #define HAVE_UNION_WAIT 1
19599 _ACEOF
19605 for ac_header in stdint.h
19606 do :
19607 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
19608 if test "x$ac_cv_header_stdint_h" = xyes; then :
19609 cat >>confdefs.h <<_ACEOF
19610 #define HAVE_STDINT_H 1
19611 _ACEOF
19612 uint16=uint16_t
19613 else
19615 for ac_header in inttypes.h
19616 do :
19617 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
19618 if test "x$ac_cv_header_inttypes_h" = xyes; then :
19619 cat >>confdefs.h <<_ACEOF
19620 #define HAVE_INTTYPES_H 1
19621 _ACEOF
19622 uint16=uint16_t
19623 else
19625 for ac_header in sys/types.h
19626 do :
19627 ac_fn_c_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
19628 if test "x$ac_cv_header_sys_types_h" = xyes; then :
19629 cat >>confdefs.h <<_ACEOF
19630 #define HAVE_SYS_TYPES_H 1
19631 _ACEOF
19632 uint16=u_int16_t
19633 else
19635 # The cast to long int works around a bug in the HP C Compiler
19636 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19637 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19638 # This bug is HP SR number 8606223364.
19639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
19640 $as_echo_n "checking size of unsigned short... " >&6; }
19641 if ${ac_cv_sizeof_unsigned_short+:} false; then :
19642 $as_echo_n "(cached) " >&6
19643 else
19644 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short" "$ac_includes_default"; then :
19646 else
19647 if test "$ac_cv_type_unsigned_short" = yes; then
19648 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19649 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19650 as_fn_error 77 "cannot compute sizeof (unsigned short)
19651 See \`config.log' for more details" "$LINENO" 5; }
19652 else
19653 ac_cv_sizeof_unsigned_short=0
19658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
19659 $as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
19663 cat >>confdefs.h <<_ACEOF
19664 #define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
19665 _ACEOF
19668 if test $ac_cv_sizeof_unsigned_short -eq 2 ; then
19669 uint16="unsigned short"
19670 else
19671 # The cast to long int works around a bug in the HP C Compiler
19672 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19673 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19674 # This bug is HP SR number 8606223364.
19675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
19676 $as_echo_n "checking size of unsigned int... " >&6; }
19677 if ${ac_cv_sizeof_unsigned_int+:} false; then :
19678 $as_echo_n "(cached) " >&6
19679 else
19680 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then :
19682 else
19683 if test "$ac_cv_type_unsigned_int" = yes; then
19684 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19685 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19686 as_fn_error 77 "cannot compute sizeof (unsigned int)
19687 See \`config.log' for more details" "$LINENO" 5; }
19688 else
19689 ac_cv_sizeof_unsigned_int=0
19694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
19695 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
19699 cat >>confdefs.h <<_ACEOF
19700 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
19701 _ACEOF
19704 if $ac_cv_sizeof_unsigned_int -eq 2 ; then
19705 uint16="unsigned int"
19706 else
19707 as_fn_error $? "Unable to determine 16 bit integer type" "$LINENO" 5
19713 done
19718 done
19723 done
19726 cat >>confdefs.h <<_ACEOF
19727 #define UINT16 $uint16
19728 _ACEOF
19731 for ac_header in stdint.h
19732 do :
19733 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
19734 if test "x$ac_cv_header_stdint_h" = xyes; then :
19735 cat >>confdefs.h <<_ACEOF
19736 #define HAVE_STDINT_H 1
19737 _ACEOF
19738 uint32=uint32_t
19739 else
19741 for ac_header in inttypes.h
19742 do :
19743 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
19744 if test "x$ac_cv_header_inttypes_h" = xyes; then :
19745 cat >>confdefs.h <<_ACEOF
19746 #define HAVE_INTTYPES_H 1
19747 _ACEOF
19748 uint32=uint32_t
19749 else
19751 for ac_header in sys/types.h
19752 do :
19753 ac_fn_c_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
19754 if test "x$ac_cv_header_sys_types_h" = xyes; then :
19755 cat >>confdefs.h <<_ACEOF
19756 #define HAVE_SYS_TYPES_H 1
19757 _ACEOF
19758 uint32=u_int32_t
19759 else
19761 # The cast to long int works around a bug in the HP C Compiler
19762 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19763 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19764 # This bug is HP SR number 8606223364.
19765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
19766 $as_echo_n "checking size of unsigned int... " >&6; }
19767 if ${ac_cv_sizeof_unsigned_int+:} false; then :
19768 $as_echo_n "(cached) " >&6
19769 else
19770 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then :
19772 else
19773 if test "$ac_cv_type_unsigned_int" = yes; then
19774 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19775 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19776 as_fn_error 77 "cannot compute sizeof (unsigned int)
19777 See \`config.log' for more details" "$LINENO" 5; }
19778 else
19779 ac_cv_sizeof_unsigned_int=0
19784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
19785 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
19789 cat >>confdefs.h <<_ACEOF
19790 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
19791 _ACEOF
19794 if test $ac_cv_sizeof_unsigned_int -eq 4 ; then
19795 uint32="unsigned int"
19796 else
19797 # The cast to long int works around a bug in the HP C Compiler
19798 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19799 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19800 # This bug is HP SR number 8606223364.
19801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
19802 $as_echo_n "checking size of unsigned long... " >&6; }
19803 if ${ac_cv_sizeof_unsigned_long+:} false; then :
19804 $as_echo_n "(cached) " >&6
19805 else
19806 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
19808 else
19809 if test "$ac_cv_type_unsigned_long" = yes; then
19810 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19811 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19812 as_fn_error 77 "cannot compute sizeof (unsigned long)
19813 See \`config.log' for more details" "$LINENO" 5; }
19814 else
19815 ac_cv_sizeof_unsigned_long=0
19820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
19821 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
19825 cat >>confdefs.h <<_ACEOF
19826 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
19827 _ACEOF
19830 if $ac_cv_sizeof_unsigned_long -eq 4 ; then
19831 uint32="unsigned long"
19832 else
19833 as_fn_error $? "Unable to determine 32 bit integer type" "$LINENO" 5
19839 done
19844 done
19849 done
19852 cat >>confdefs.h <<_ACEOF
19853 #define UINT32 $uint32
19854 _ACEOF
19857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking argument pointer type of qsort compare function and base" >&5
19858 $as_echo_n "checking argument pointer type of qsort compare function and base... " >&6; }
19859 if ${ac_cv_func_qsort_argtype+:} false; then :
19860 $as_echo_n "(cached) " >&6
19861 else
19862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19863 /* end confdefs.h. */
19865 #if HAVE_STDLIB_H
19866 #include "stdlib.h"
19867 #endif
19869 extern void *base;
19870 extern sortf(const void *, const void *);
19871 int sortf(a, b)
19872 const void *a;
19873 const void *b; { return 0; }
19876 main ()
19879 qsort(base, 2, sizeof(char *), sortf);
19882 return 0;
19884 _ACEOF
19885 if ac_fn_c_try_compile "$LINENO"; then :
19886 ac_cv_func_qsort_argtype=void
19887 else
19888 ac_cv_func_qsort_argtype=char
19890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_qsort_argtype" >&5
19894 $as_echo "$ac_cv_func_qsort_argtype" >&6; }
19896 cat >>confdefs.h <<_ACEOF
19897 #define qsort_t $ac_cv_func_qsort_argtype
19898 _ACEOF
19902 for ac_header in sys/select.h sys/socket.h
19903 do :
19904 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19905 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19906 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19907 cat >>confdefs.h <<_ACEOF
19908 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19909 _ACEOF
19913 done
19915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
19916 $as_echo_n "checking types of arguments for select... " >&6; }
19917 if ${ac_cv_func_select_args+:} false; then :
19918 $as_echo_n "(cached) " >&6
19919 else
19920 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
19921 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
19922 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
19923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19924 /* end confdefs.h. */
19925 $ac_includes_default
19926 #ifdef HAVE_SYS_SELECT_H
19927 # include <sys/select.h>
19928 #endif
19929 #ifdef HAVE_SYS_SOCKET_H
19930 # include <sys/socket.h>
19931 #endif
19934 main ()
19936 extern int select ($ac_arg1,
19937 $ac_arg234, $ac_arg234, $ac_arg234,
19938 $ac_arg5);
19940 return 0;
19942 _ACEOF
19943 if ac_fn_c_try_compile "$LINENO"; then :
19944 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
19946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19947 done
19948 done
19949 done
19950 # Provide a safe default value.
19951 : "${ac_cv_func_select_args=int,int *,struct timeval *}"
19954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
19955 $as_echo "$ac_cv_func_select_args" >&6; }
19956 ac_save_IFS=$IFS; IFS=','
19957 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
19958 IFS=$ac_save_IFS
19959 shift
19961 cat >>confdefs.h <<_ACEOF
19962 #define SELECT_TYPE_ARG1 $1
19963 _ACEOF
19966 cat >>confdefs.h <<_ACEOF
19967 #define SELECT_TYPE_ARG234 ($2)
19968 _ACEOF
19971 cat >>confdefs.h <<_ACEOF
19972 #define SELECT_TYPE_ARG5 ($3)
19973 _ACEOF
19975 rm -f conftest*
19978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strcoll" >&5
19979 $as_echo_n "checking for working strcoll... " >&6; }
19980 if ${ac_cv_func_strcoll_works+:} false; then :
19981 $as_echo_n "(cached) " >&6
19982 else
19983 if test "$cross_compiling" = yes; then :
19984 ac_cv_func_strcoll_works=no
19985 else
19986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19987 /* end confdefs.h. */
19988 $ac_includes_default
19990 main ()
19992 return (strcoll ("abc", "def") >= 0 ||
19993 strcoll ("ABC", "DEF") >= 0 ||
19994 strcoll ("123", "456") >= 0)
19996 return 0;
19998 _ACEOF
19999 if ac_fn_c_try_run "$LINENO"; then :
20000 ac_cv_func_strcoll_works=yes
20001 else
20002 ac_cv_func_strcoll_works=no
20004 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20005 conftest.$ac_objext conftest.beam conftest.$ac_ext
20009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strcoll_works" >&5
20010 $as_echo "$ac_cv_func_strcoll_works" >&6; }
20011 if test $ac_cv_func_strcoll_works = yes; then
20013 $as_echo "#define HAVE_STRCOLL 1" >>confdefs.h
20019 for ac_header in vfork.h
20020 do :
20021 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
20022 if test "x$ac_cv_header_vfork_h" = xyes; then :
20023 cat >>confdefs.h <<_ACEOF
20024 #define HAVE_VFORK_H 1
20025 _ACEOF
20029 done
20031 for ac_func in fork vfork
20032 do :
20033 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20034 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20035 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20036 cat >>confdefs.h <<_ACEOF
20037 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20038 _ACEOF
20041 done
20043 if test "x$ac_cv_func_fork" = xyes; then
20044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
20045 $as_echo_n "checking for working fork... " >&6; }
20046 if ${ac_cv_func_fork_works+:} false; then :
20047 $as_echo_n "(cached) " >&6
20048 else
20049 if test "$cross_compiling" = yes; then :
20050 ac_cv_func_fork_works=cross
20051 else
20052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20053 /* end confdefs.h. */
20054 $ac_includes_default
20056 main ()
20059 /* By Ruediger Kuhlmann. */
20060 return fork () < 0;
20063 return 0;
20065 _ACEOF
20066 if ac_fn_c_try_run "$LINENO"; then :
20067 ac_cv_func_fork_works=yes
20068 else
20069 ac_cv_func_fork_works=no
20071 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20072 conftest.$ac_objext conftest.beam conftest.$ac_ext
20076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
20077 $as_echo "$ac_cv_func_fork_works" >&6; }
20079 else
20080 ac_cv_func_fork_works=$ac_cv_func_fork
20082 if test "x$ac_cv_func_fork_works" = xcross; then
20083 case $host in
20084 *-*-amigaos* | *-*-msdosdjgpp*)
20085 # Override, as these systems have only a dummy fork() stub
20086 ac_cv_func_fork_works=no
20089 ac_cv_func_fork_works=yes
20091 esac
20092 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
20093 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
20095 ac_cv_func_vfork_works=$ac_cv_func_vfork
20096 if test "x$ac_cv_func_vfork" = xyes; then
20097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
20098 $as_echo_n "checking for working vfork... " >&6; }
20099 if ${ac_cv_func_vfork_works+:} false; then :
20100 $as_echo_n "(cached) " >&6
20101 else
20102 if test "$cross_compiling" = yes; then :
20103 ac_cv_func_vfork_works=cross
20104 else
20105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20106 /* end confdefs.h. */
20107 /* Thanks to Paul Eggert for this test. */
20108 $ac_includes_default
20109 #include <sys/wait.h>
20110 #ifdef HAVE_VFORK_H
20111 # include <vfork.h>
20112 #endif
20113 /* On some sparc systems, changes by the child to local and incoming
20114 argument registers are propagated back to the parent. The compiler
20115 is told about this with #include <vfork.h>, but some compilers
20116 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
20117 static variable whose address is put into a register that is
20118 clobbered by the vfork. */
20119 static void
20120 #ifdef __cplusplus
20121 sparc_address_test (int arg)
20122 # else
20123 sparc_address_test (arg) int arg;
20124 #endif
20126 static pid_t child;
20127 if (!child) {
20128 child = vfork ();
20129 if (child < 0) {
20130 perror ("vfork");
20131 _exit(2);
20133 if (!child) {
20134 arg = getpid();
20135 write(-1, "", 0);
20136 _exit (arg);
20142 main ()
20144 pid_t parent = getpid ();
20145 pid_t child;
20147 sparc_address_test (0);
20149 child = vfork ();
20151 if (child == 0) {
20152 /* Here is another test for sparc vfork register problems. This
20153 test uses lots of local variables, at least as many local
20154 variables as main has allocated so far including compiler
20155 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
20156 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
20157 reuse the register of parent for one of the local variables,
20158 since it will think that parent can't possibly be used any more
20159 in this routine. Assigning to the local variable will thus
20160 munge parent in the parent process. */
20161 pid_t
20162 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
20163 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
20164 /* Convince the compiler that p..p7 are live; otherwise, it might
20165 use the same hardware register for all 8 local variables. */
20166 if (p != p1 || p != p2 || p != p3 || p != p4
20167 || p != p5 || p != p6 || p != p7)
20168 _exit(1);
20170 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
20171 from child file descriptors. If the child closes a descriptor
20172 before it execs or exits, this munges the parent's descriptor
20173 as well. Test for this by closing stdout in the child. */
20174 _exit(close(fileno(stdout)) != 0);
20175 } else {
20176 int status;
20177 struct stat st;
20179 while (wait(&status) != child)
20181 return (
20182 /* Was there some problem with vforking? */
20183 child < 0
20185 /* Did the child fail? (This shouldn't happen.) */
20186 || status
20188 /* Did the vfork/compiler bug occur? */
20189 || parent != getpid()
20191 /* Did the file descriptor bug occur? */
20192 || fstat(fileno(stdout), &st) != 0
20196 _ACEOF
20197 if ac_fn_c_try_run "$LINENO"; then :
20198 ac_cv_func_vfork_works=yes
20199 else
20200 ac_cv_func_vfork_works=no
20202 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20203 conftest.$ac_objext conftest.beam conftest.$ac_ext
20207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
20208 $as_echo "$ac_cv_func_vfork_works" >&6; }
20211 if test "x$ac_cv_func_fork_works" = xcross; then
20212 ac_cv_func_vfork_works=$ac_cv_func_vfork
20213 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
20214 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
20217 if test "x$ac_cv_func_vfork_works" = xyes; then
20219 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
20221 else
20223 $as_echo "#define vfork fork" >>confdefs.h
20226 if test "x$ac_cv_func_fork_works" = xyes; then
20228 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
20232 for ac_func in strchr \
20233 memcpy \
20234 strtol \
20235 strtoul \
20236 select \
20237 poll \
20238 qsort \
20239 getuid \
20240 getpwuid \
20241 getpwnam \
20242 gettimeofday \
20243 tmpfile \
20244 uname \
20245 rename \
20246 read \
20247 signal \
20248 setjmp \
20249 chown \
20250 wait4 \
20251 waitpid \
20252 wait \
20253 srandom \
20254 popen \
20255 pclose \
20256 fsync \
20257 truncate \
20258 listen \
20259 wcwidth \
20260 mbstowcs \
20261 wcrtomb \
20262 putenv \
20263 setenv
20264 do :
20265 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20266 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20267 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20268 cat >>confdefs.h <<_ACEOF
20269 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20270 _ACEOF
20273 done
20276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostname" >&5
20277 $as_echo_n "checking for library containing gethostname... " >&6; }
20278 if ${ac_cv_search_gethostname+:} false; then :
20279 $as_echo_n "(cached) " >&6
20280 else
20281 ac_func_search_save_LIBS=$LIBS
20282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20283 /* end confdefs.h. */
20285 /* Override any GCC internal prototype to avoid an error.
20286 Use char because int might match the return type of a GCC
20287 builtin and then its argument prototype would still apply. */
20288 #ifdef __cplusplus
20289 extern "C"
20290 #endif
20291 char gethostname ();
20293 main ()
20295 return gethostname ();
20297 return 0;
20299 _ACEOF
20300 for ac_lib in '' nsl; do
20301 if test -z "$ac_lib"; then
20302 ac_res="none required"
20303 else
20304 ac_res=-l$ac_lib
20305 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20307 if ac_fn_c_try_link "$LINENO"; then :
20308 ac_cv_search_gethostname=$ac_res
20310 rm -f core conftest.err conftest.$ac_objext \
20311 conftest$ac_exeext
20312 if ${ac_cv_search_gethostname+:} false; then :
20313 break
20315 done
20316 if ${ac_cv_search_gethostname+:} false; then :
20318 else
20319 ac_cv_search_gethostname=no
20321 rm conftest.$ac_ext
20322 LIBS=$ac_func_search_save_LIBS
20324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostname" >&5
20325 $as_echo "$ac_cv_search_gethostname" >&6; }
20326 ac_res=$ac_cv_search_gethostname
20327 if test "$ac_res" != no; then :
20328 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
20334 $as_echo_n "checking for library containing socket... " >&6; }
20335 if ${ac_cv_search_socket+:} false; then :
20336 $as_echo_n "(cached) " >&6
20337 else
20338 ac_func_search_save_LIBS=$LIBS
20339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20340 /* end confdefs.h. */
20342 /* Override any GCC internal prototype to avoid an error.
20343 Use char because int might match the return type of a GCC
20344 builtin and then its argument prototype would still apply. */
20345 #ifdef __cplusplus
20346 extern "C"
20347 #endif
20348 char socket ();
20350 main ()
20352 return socket ();
20354 return 0;
20356 _ACEOF
20357 for ac_lib in '' socket; do
20358 if test -z "$ac_lib"; then
20359 ac_res="none required"
20360 else
20361 ac_res=-l$ac_lib
20362 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20364 if ac_fn_c_try_link "$LINENO"; then :
20365 ac_cv_search_socket=$ac_res
20367 rm -f core conftest.err conftest.$ac_objext \
20368 conftest$ac_exeext
20369 if ${ac_cv_search_socket+:} false; then :
20370 break
20372 done
20373 if ${ac_cv_search_socket+:} false; then :
20375 else
20376 ac_cv_search_socket=no
20378 rm conftest.$ac_ext
20379 LIBS=$ac_func_search_save_LIBS
20381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
20382 $as_echo "$ac_cv_search_socket" >&6; }
20383 ac_res=$ac_cv_search_socket
20384 if test "$ac_res" != no; then :
20385 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20387 else
20389 WEB_BUILD=
20394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing bind" >&5
20395 $as_echo_n "checking for library containing bind... " >&6; }
20396 if ${ac_cv_search_bind+:} false; then :
20397 $as_echo_n "(cached) " >&6
20398 else
20399 ac_func_search_save_LIBS=$LIBS
20400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20401 /* end confdefs.h. */
20403 /* Override any GCC internal prototype to avoid an error.
20404 Use char because int might match the return type of a GCC
20405 builtin and then its argument prototype would still apply. */
20406 #ifdef __cplusplus
20407 extern "C"
20408 #endif
20409 char bind ();
20411 main ()
20413 return bind ();
20415 return 0;
20417 _ACEOF
20418 for ac_lib in '' bind; do
20419 if test -z "$ac_lib"; then
20420 ac_res="none required"
20421 else
20422 ac_res=-l$ac_lib
20423 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20425 if ac_fn_c_try_link "$LINENO"; then :
20426 ac_cv_search_bind=$ac_res
20428 rm -f core conftest.err conftest.$ac_objext \
20429 conftest$ac_exeext
20430 if ${ac_cv_search_bind+:} false; then :
20431 break
20433 done
20434 if ${ac_cv_search_bind+:} false; then :
20436 else
20437 ac_cv_search_bind=no
20439 rm conftest.$ac_ext
20440 LIBS=$ac_func_search_save_LIBS
20442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_bind" >&5
20443 $as_echo "$ac_cv_search_bind" >&6; }
20444 ac_res=$ac_cv_search_bind
20445 if test "$ac_res" != no; then :
20446 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20448 else
20450 WEB_BUILD=
20455 for ac_func in sigaction sigemptyset sigaddset sigprocmask
20456 do :
20457 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20458 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20459 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20460 cat >>confdefs.h <<_ACEOF
20461 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20462 _ACEOF
20465 $as_echo "#define POSIX_SIGNALS /**/" >>confdefs.h
20468 else
20470 for ac_func in sigset sigrelse
20471 do :
20472 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20473 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20474 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20475 cat >>confdefs.h <<_ACEOF
20476 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20477 _ACEOF
20480 $as_echo "#define SYSV_SIGNALS /**/" >>confdefs.h
20484 done
20488 done
20491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing syslog" >&5
20492 $as_echo_n "checking for library containing syslog... " >&6; }
20493 if ${ac_cv_search_syslog+:} false; then :
20494 $as_echo_n "(cached) " >&6
20495 else
20496 ac_func_search_save_LIBS=$LIBS
20497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20498 /* end confdefs.h. */
20500 /* Override any GCC internal prototype to avoid an error.
20501 Use char because int might match the return type of a GCC
20502 builtin and then its argument prototype would still apply. */
20503 #ifdef __cplusplus
20504 extern "C"
20505 #endif
20506 char syslog ();
20508 main ()
20510 return syslog ();
20512 return 0;
20514 _ACEOF
20515 for ac_lib in '' bsd socket inet; do
20516 if test -z "$ac_lib"; then
20517 ac_res="none required"
20518 else
20519 ac_res=-l$ac_lib
20520 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20522 if ac_fn_c_try_link "$LINENO"; then :
20523 ac_cv_search_syslog=$ac_res
20525 rm -f core conftest.err conftest.$ac_objext \
20526 conftest$ac_exeext
20527 if ${ac_cv_search_syslog+:} false; then :
20528 break
20530 done
20531 if ${ac_cv_search_syslog+:} false; then :
20533 else
20534 ac_cv_search_syslog=no
20536 rm conftest.$ac_ext
20537 LIBS=$ac_func_search_save_LIBS
20539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_syslog" >&5
20540 $as_echo "$ac_cv_search_syslog" >&6; }
20541 ac_res=$ac_cv_search_syslog
20542 if test "$ac_res" != no; then :
20543 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20546 $as_echo "#define HAVE_SYSLOG 1" >>confdefs.h
20553 if test -n "$alpine_with_local_maildir" ; then
20554 alpine_local_maildir=$alpine_with_local_maildir
20555 elif test -d /var/spool/mail ; then
20556 alpine_local_maildir="/var/spool/mail"
20557 elif test -d /var/mail ; then
20558 alpine_local_maildir="/var/mail"
20559 else
20560 alpine_local_maildir="/usr/spool/mail"
20563 if test -n "$alpine_with_c_client_target" ; then
20564 alpine_c_client_target=$alpine_with_c_client_target
20568 cat >>confdefs.h <<_ACEOF
20569 #define SYSTYPE "$systype"
20570 _ACEOF
20573 cat >>confdefs.h <<_ACEOF
20574 #define C_FILESEP '$alpine_path_delim'
20575 _ACEOF
20578 cat >>confdefs.h <<_ACEOF
20579 #define S_FILESEP "$alpine_path_delim"
20580 _ACEOF
20583 cat >>confdefs.h <<_ACEOF
20584 #define MAILDIR "$alpine_local_maildir"
20585 _ACEOF
20588 cat >>confdefs.h <<_ACEOF
20589 #define MODE_READONLY $alpine_mode_readonly
20590 _ACEOF
20593 C_CLIENT_TARGET=$alpine_c_client_target
20595 C_CLIENT_WITH_IPV6=$c_client_ip6
20597 if test "x$alpine_SSLTYPE" = "xnone" ; then
20598 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * NOT Including SSL Support" >&5
20599 $as_echo "$as_me: * * * NOT Including SSL Support" >&6;}
20600 c_client_specials="${c_client_specials}SSLTYPE=none "
20601 else
20603 if test -n "$alpine_SSLCERTS" -a -d "$alpine_SSLCERTS" ; then
20604 certdir="$alpine_SSLCERTS"
20605 elif test -n "$alpine_SSLDIR" -a -d "${alpine_SSLDIR}/certs" ; then
20606 certdir="${alpine_SSLDIR}/certs"
20607 elif test -n "$alpine_SSLDIR" -a -d "${alpine_SSLDIR}/ssl/certs" ; then
20608 certdir="${alpine_SSLDIR}/ssl/certs"
20609 elif test -n "$alpine_SSLCERTS_ORIG" -a -d "$alpine_SSLCERTS_ORIG" ; then
20610 certdir="$alpine_SSLCERTS_ORIG"
20611 else
20612 { $as_echo "$as_me:${as_lineno-$LINENO}: SSL Problem: certificate directory not found" >&5
20613 $as_echo "$as_me: SSL Problem: certificate directory not found" >&6;}
20616 if test "x$with_smime" != "xno" ; then
20617 if test -n "$certdir" ; then
20618 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * S/MIME support enabled" >&5
20619 $as_echo "$as_me: * * * S/MIME support enabled" >&6;}
20621 $as_echo "#define SMIME /**/" >>confdefs.h
20624 cat >>confdefs.h <<_ACEOF
20625 #define SMIME_SSLCERTS "$certdir"
20626 _ACEOF
20631 if test ! -f ${certdir}/factory.pem ; then
20632 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * SSL file \"${certdir}/factory.pem\" is missing." >&5
20633 $as_echo "$as_me: * * * SSL file \"${certdir}/factory.pem\" is missing." >&6;}
20634 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * This might indicate that CA certs did not get properly" >&5
20635 $as_echo "$as_me: * * * This might indicate that CA certs did not get properly" >&6;}
20636 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * installed. If you get certificate validation failures" >&5
20637 $as_echo "$as_me: * * * installed. If you get certificate validation failures" >&6;}
20638 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * in Alpine, this might be the reason for them." >&5
20639 $as_echo "$as_me: * * * in Alpine, this might be the reason for them." >&6;}
20642 if test -z "`ls ${certdir} | $EGREP '^[0-9A-Fa-f]{8}\.[0-9]'`" ; then
20643 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * No 8-hexdigit symlinks in certificate directory \"${certdir}\"." >&5
20644 $as_echo "$as_me: * * * No 8-hexdigit symlinks in certificate directory \"${certdir}\"." >&6;}
20645 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * This might indicate that CA certs did not get properly" >&5
20646 $as_echo "$as_me: * * * This might indicate that CA certs did not get properly" >&6;}
20647 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * installed. If you get certificate validation failures" >&5
20648 $as_echo "$as_me: * * * installed. If you get certificate validation failures" >&6;}
20649 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * in Alpine, this might be the reason for them." >&5
20650 $as_echo "$as_me: * * * in Alpine, this might be the reason for them." >&6;}
20653 if test -n "$alpine_SSLINCLUDE" ; then
20654 c_client_specials="${c_client_specials}SSLINCLUDE=$alpine_SSLINCLUDE "
20657 if test -n "$alpine_SSLLIB" ; then
20658 c_client_specials="${c_client_specials}SSLLIB=$alpine_SSLLIB "
20661 if test -n "$alpine_SSLDIR" ; then
20662 c_client_specials="${c_client_specials}SSLDIR=$alpine_SSLDIR "
20665 if test -n "$certdir" ; then
20666 c_client_specials="${c_client_specials}SSLCERTS=$certdir "
20669 if test -n "$alpine_SSLKEYS" ; then
20670 c_client_specials="${c_client_specials}SSLKEYS=$alpine_SSLKEYS "
20674 if test "x$alpine_GSSTYPE" != "xnone" ; then
20675 c_client_specials="${c_client_specials}EXTRAAUTHENTICATORS=gss "
20676 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * Including Kerberos5 functionality" >&5
20677 $as_echo "$as_me: * * * Including Kerberos5 functionality" >&6;}
20680 if test -n "$CPPFLAGS" ; then
20681 alpine_c_client_cflags="$alpine_c_client_cflags ${CPPFLAGS}"
20683 if test -n "$CFLAGS" ; then
20684 alpine_c_client_cflags="$alpine_c_client_cflags ${CFLAGS}"
20687 if test -n "$alpine_c_client_cflags" ; then
20688 C_CLIENT_CFLAGS=EXTRACFLAGS=\"$alpine_c_client_cflags\"
20692 if test -n "$LDFLAGS" ; then
20693 alpine_c_client_ldflags="$alpine_c_client_ldflags ${LDFLAGS}"
20695 if test -n "$LIBS" ; then
20696 alpine_c_client_ldflags="$alpine_c_client_ldflags ${LIBS}"
20699 if test -n "$alpine_c_client_ldflags" ; then
20700 C_CLIENT_LDFLAGS=EXTRALDFLAGS=\"$alpine_c_client_ldflags\"
20704 if test -n "$alpine_c_client_gccoptlevel" ; then
20705 C_CLIENT_GCCOPTLEVEL=GCCOPTLEVEL=\"$alpine_c_client_gccoptlevel\"
20709 C_CLIENT_SPECIALS=$c_client_specials
20712 if test -z "$WEB_BUILD" ; then
20713 WEB_PUBCOOKIE_BUILD=
20714 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * TCL libraries could not be found." >&5
20715 $as_echo "$as_me: * * * TCL libraries could not be found." >&6;}
20716 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * WEB ALPINE COMPONENT WILL NOT BE BUILT." >&5
20717 $as_echo "$as_me: * * * WEB ALPINE COMPONENT WILL NOT BE BUILT." >&6;}
20718 else
20719 if test -n "$WEB_PUBCOOKIE_BUILD" ; then
20720 if test "x$alpine_GSSTYPE" = "xnone" ; then
20721 WEB_PUBCOOKIE_BUILD=
20722 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * Kerberos5 support not found." >&5
20723 $as_echo "$as_me: * * * Kerberos5 support not found." >&6;}
20724 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * WEB ALPINE PUBCOOKIE COMPONENT WILL NOT BE BUILT." >&5
20725 $as_echo "$as_me: * * * WEB ALPINE PUBCOOKIE COMPONENT WILL NOT BE BUILT." >&6;}
20726 elif test -z "$WEB_BINDIR" ; then
20727 WEB_PUBCOOKIE_BUILD=
20728 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * Web Alpine binary directory not provided." >&5
20729 $as_echo "$as_me: * * * Web Alpine binary directory not provided." >&6;}
20730 as_fn_error $? "* * * --with-pubcookie requires --with-web-bin=PATH.
20731 Please re-run configure with these options:
20732 --with-pubcookie --with-web-bin=/usr/local/libexec/alpine/bin" "$LINENO" 5
20733 else
20735 $as_echo "#define PUBCOOKIE 1" >>confdefs.h
20737 WEB_PUBCOOKIE_LIB=../pubcookie/libauthgssproxy.a
20738 WEB_PUBCOOKIE_LINK=gssapi_proxy.l
20754 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"
20756 cat >confcache <<\_ACEOF
20757 # This file is a shell script that caches the results of configure
20758 # tests run on this system so they can be shared between configure
20759 # scripts and configure runs, see configure's option --config-cache.
20760 # It is not useful on other systems. If it contains results you don't
20761 # want to keep, you may remove or edit it.
20763 # config.status only pays attention to the cache file if you give it
20764 # the --recheck option to rerun configure.
20766 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20767 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20768 # following values.
20770 _ACEOF
20772 # The following way of writing the cache mishandles newlines in values,
20773 # but we know of no workaround that is simple, portable, and efficient.
20774 # So, we kill variables containing newlines.
20775 # Ultrix sh set writes to stderr and can't be redirected directly,
20776 # and sets the high bit in the cache file unless we assign to the vars.
20778 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20779 eval ac_val=\$$ac_var
20780 case $ac_val in #(
20781 *${as_nl}*)
20782 case $ac_var in #(
20783 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20784 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20785 esac
20786 case $ac_var in #(
20787 _ | IFS | as_nl) ;; #(
20788 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20789 *) { eval $ac_var=; unset $ac_var;} ;;
20790 esac ;;
20791 esac
20792 done
20794 (set) 2>&1 |
20795 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20796 *${as_nl}ac_space=\ *)
20797 # `set' does not quote correctly, so add quotes: double-quote
20798 # substitution turns \\\\ into \\, and sed turns \\ into \.
20799 sed -n \
20800 "s/'/'\\\\''/g;
20801 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20802 ;; #(
20804 # `set' quotes correctly as required by POSIX, so do not add quotes.
20805 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20807 esac |
20808 sort
20810 sed '
20811 /^ac_cv_env_/b end
20812 t clear
20813 :clear
20814 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20815 t end
20816 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20817 :end' >>confcache
20818 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20819 if test -w "$cache_file"; then
20820 if test "x$cache_file" != "x/dev/null"; then
20821 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20822 $as_echo "$as_me: updating cache $cache_file" >&6;}
20823 if test ! -f "$cache_file" || test -h "$cache_file"; then
20824 cat confcache >"$cache_file"
20825 else
20826 case $cache_file in #(
20827 */* | ?:*)
20828 mv -f confcache "$cache_file"$$ &&
20829 mv -f "$cache_file"$$ "$cache_file" ;; #(
20831 mv -f confcache "$cache_file" ;;
20832 esac
20835 else
20836 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20837 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20840 rm -f confcache
20842 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20843 # Let make expand exec_prefix.
20844 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20846 DEFS=-DHAVE_CONFIG_H
20848 ac_libobjs=
20849 ac_ltlibobjs=
20851 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20852 # 1. Remove the extension, and $U if already installed.
20853 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20854 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
20855 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20856 # will be set to the directory where LIBOBJS objects are built.
20857 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20858 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20859 done
20860 LIBOBJS=$ac_libobjs
20862 LTLIBOBJS=$ac_ltlibobjs
20865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
20866 $as_echo_n "checking that generated files are newer than configure... " >&6; }
20867 if test -n "$am_sleep_pid"; then
20868 # Hide warnings about reused PIDs.
20869 wait $am_sleep_pid 2>/dev/null
20871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
20872 $as_echo "done" >&6; }
20873 if test -n "$EXEEXT"; then
20874 am__EXEEXT_TRUE=
20875 am__EXEEXT_FALSE='#'
20876 else
20877 am__EXEEXT_TRUE='#'
20878 am__EXEEXT_FALSE=
20881 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
20882 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
20883 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20885 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20886 as_fn_error $? "conditional \"AMDEP\" was never defined.
20887 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20889 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20890 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20891 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20894 : "${CONFIG_STATUS=./config.status}"
20895 ac_write_fail=0
20896 ac_clean_files_save=$ac_clean_files
20897 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20898 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20899 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20900 as_write_fail=0
20901 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20902 #! $SHELL
20903 # Generated by $as_me.
20904 # Run this file to recreate the current configuration.
20905 # Compiler output produced by configure, useful for debugging
20906 # configure, is in config.log if it exists.
20908 debug=false
20909 ac_cs_recheck=false
20910 ac_cs_silent=false
20912 SHELL=\${CONFIG_SHELL-$SHELL}
20913 export SHELL
20914 _ASEOF
20915 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20916 ## -------------------- ##
20917 ## M4sh Initialization. ##
20918 ## -------------------- ##
20920 # Be more Bourne compatible
20921 DUALCASE=1; export DUALCASE # for MKS sh
20922 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20923 emulate sh
20924 NULLCMD=:
20925 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20926 # is contrary to our usage. Disable this feature.
20927 alias -g '${1+"$@"}'='"$@"'
20928 setopt NO_GLOB_SUBST
20929 else
20930 case `(set -o) 2>/dev/null` in #(
20931 *posix*) :
20932 set -o posix ;; #(
20933 *) :
20935 esac
20939 as_nl='
20941 export as_nl
20942 # Printing a long string crashes Solaris 7 /usr/bin/printf.
20943 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20944 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20945 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20946 # Prefer a ksh shell builtin over an external printf program on Solaris,
20947 # but without wasting forks for bash or zsh.
20948 if test -z "$BASH_VERSION$ZSH_VERSION" \
20949 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
20950 as_echo='print -r --'
20951 as_echo_n='print -rn --'
20952 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20953 as_echo='printf %s\n'
20954 as_echo_n='printf %s'
20955 else
20956 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20957 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20958 as_echo_n='/usr/ucb/echo -n'
20959 else
20960 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20961 as_echo_n_body='eval
20962 arg=$1;
20963 case $arg in #(
20964 *"$as_nl"*)
20965 expr "X$arg" : "X\\(.*\\)$as_nl";
20966 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20967 esac;
20968 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20970 export as_echo_n_body
20971 as_echo_n='sh -c $as_echo_n_body as_echo'
20973 export as_echo_body
20974 as_echo='sh -c $as_echo_body as_echo'
20977 # The user is always right.
20978 if test "${PATH_SEPARATOR+set}" != set; then
20979 PATH_SEPARATOR=:
20980 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20981 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20982 PATH_SEPARATOR=';'
20987 # IFS
20988 # We need space, tab and new line, in precisely that order. Quoting is
20989 # there to prevent editors from complaining about space-tab.
20990 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20991 # splitting by setting IFS to empty value.)
20992 IFS=" "" $as_nl"
20994 # Find who we are. Look in the path if we contain no directory separator.
20995 as_myself=
20996 case $0 in #((
20997 *[\\/]* ) as_myself=$0 ;;
20998 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20999 for as_dir in $PATH
21001 IFS=$as_save_IFS
21002 test -z "$as_dir" && as_dir=.
21003 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21004 done
21005 IFS=$as_save_IFS
21008 esac
21009 # We did not find ourselves, most probably we were run as `sh COMMAND'
21010 # in which case we are not to be found in the path.
21011 if test "x$as_myself" = x; then
21012 as_myself=$0
21014 if test ! -f "$as_myself"; then
21015 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21016 exit 1
21019 # Unset variables that we do not need and which cause bugs (e.g. in
21020 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
21021 # suppresses any "Segmentation fault" message there. '((' could
21022 # trigger a bug in pdksh 5.2.14.
21023 for as_var in BASH_ENV ENV MAIL MAILPATH
21024 do eval test x\${$as_var+set} = xset \
21025 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
21026 done
21027 PS1='$ '
21028 PS2='> '
21029 PS4='+ '
21031 # NLS nuisances.
21032 LC_ALL=C
21033 export LC_ALL
21034 LANGUAGE=C
21035 export LANGUAGE
21037 # CDPATH.
21038 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21041 # as_fn_error STATUS ERROR [LINENO LOG_FD]
21042 # ----------------------------------------
21043 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
21044 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
21045 # script with STATUS, using 1 if that was 0.
21046 as_fn_error ()
21048 as_status=$1; test $as_status -eq 0 && as_status=1
21049 if test "$4"; then
21050 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
21051 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
21053 $as_echo "$as_me: error: $2" >&2
21054 as_fn_exit $as_status
21055 } # as_fn_error
21058 # as_fn_set_status STATUS
21059 # -----------------------
21060 # Set $? to STATUS, without forking.
21061 as_fn_set_status ()
21063 return $1
21064 } # as_fn_set_status
21066 # as_fn_exit STATUS
21067 # -----------------
21068 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
21069 as_fn_exit ()
21071 set +e
21072 as_fn_set_status $1
21073 exit $1
21074 } # as_fn_exit
21076 # as_fn_unset VAR
21077 # ---------------
21078 # Portably unset VAR.
21079 as_fn_unset ()
21081 { eval $1=; unset $1;}
21083 as_unset=as_fn_unset
21084 # as_fn_append VAR VALUE
21085 # ----------------------
21086 # Append the text in VALUE to the end of the definition contained in VAR. Take
21087 # advantage of any shell optimizations that allow amortized linear growth over
21088 # repeated appends, instead of the typical quadratic growth present in naive
21089 # implementations.
21090 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
21091 eval 'as_fn_append ()
21093 eval $1+=\$2
21095 else
21096 as_fn_append ()
21098 eval $1=\$$1\$2
21100 fi # as_fn_append
21102 # as_fn_arith ARG...
21103 # ------------------
21104 # Perform arithmetic evaluation on the ARGs, and store the result in the
21105 # global $as_val. Take advantage of shells that can avoid forks. The arguments
21106 # must be portable across $(()) and expr.
21107 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
21108 eval 'as_fn_arith ()
21110 as_val=$(( $* ))
21112 else
21113 as_fn_arith ()
21115 as_val=`expr "$@" || test $? -eq 1`
21117 fi # as_fn_arith
21120 if expr a : '\(a\)' >/dev/null 2>&1 &&
21121 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21122 as_expr=expr
21123 else
21124 as_expr=false
21127 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21128 as_basename=basename
21129 else
21130 as_basename=false
21133 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21134 as_dirname=dirname
21135 else
21136 as_dirname=false
21139 as_me=`$as_basename -- "$0" ||
21140 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21141 X"$0" : 'X\(//\)$' \| \
21142 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21143 $as_echo X/"$0" |
21144 sed '/^.*\/\([^/][^/]*\)\/*$/{
21145 s//\1/
21148 /^X\/\(\/\/\)$/{
21149 s//\1/
21152 /^X\/\(\/\).*/{
21153 s//\1/
21156 s/.*/./; q'`
21158 # Avoid depending upon Character Ranges.
21159 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21160 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21161 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21162 as_cr_digits='0123456789'
21163 as_cr_alnum=$as_cr_Letters$as_cr_digits
21165 ECHO_C= ECHO_N= ECHO_T=
21166 case `echo -n x` in #(((((
21167 -n*)
21168 case `echo 'xy\c'` in
21169 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21170 xy) ECHO_C='\c';;
21171 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
21172 ECHO_T=' ';;
21173 esac;;
21175 ECHO_N='-n';;
21176 esac
21178 rm -f conf$$ conf$$.exe conf$$.file
21179 if test -d conf$$.dir; then
21180 rm -f conf$$.dir/conf$$.file
21181 else
21182 rm -f conf$$.dir
21183 mkdir conf$$.dir 2>/dev/null
21185 if (echo >conf$$.file) 2>/dev/null; then
21186 if ln -s conf$$.file conf$$ 2>/dev/null; then
21187 as_ln_s='ln -s'
21188 # ... but there are two gotchas:
21189 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21190 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21191 # In both cases, we have to default to `cp -pR'.
21192 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21193 as_ln_s='cp -pR'
21194 elif ln conf$$.file conf$$ 2>/dev/null; then
21195 as_ln_s=ln
21196 else
21197 as_ln_s='cp -pR'
21199 else
21200 as_ln_s='cp -pR'
21202 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21203 rmdir conf$$.dir 2>/dev/null
21206 # as_fn_mkdir_p
21207 # -------------
21208 # Create "$as_dir" as a directory, including parents if necessary.
21209 as_fn_mkdir_p ()
21212 case $as_dir in #(
21213 -*) as_dir=./$as_dir;;
21214 esac
21215 test -d "$as_dir" || eval $as_mkdir_p || {
21216 as_dirs=
21217 while :; do
21218 case $as_dir in #(
21219 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21220 *) as_qdir=$as_dir;;
21221 esac
21222 as_dirs="'$as_qdir' $as_dirs"
21223 as_dir=`$as_dirname -- "$as_dir" ||
21224 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21225 X"$as_dir" : 'X\(//\)[^/]' \| \
21226 X"$as_dir" : 'X\(//\)$' \| \
21227 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21228 $as_echo X"$as_dir" |
21229 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21230 s//\1/
21233 /^X\(\/\/\)[^/].*/{
21234 s//\1/
21237 /^X\(\/\/\)$/{
21238 s//\1/
21241 /^X\(\/\).*/{
21242 s//\1/
21245 s/.*/./; q'`
21246 test -d "$as_dir" && break
21247 done
21248 test -z "$as_dirs" || eval "mkdir $as_dirs"
21249 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
21252 } # as_fn_mkdir_p
21253 if mkdir -p . 2>/dev/null; then
21254 as_mkdir_p='mkdir -p "$as_dir"'
21255 else
21256 test -d ./-p && rmdir ./-p
21257 as_mkdir_p=false
21261 # as_fn_executable_p FILE
21262 # -----------------------
21263 # Test if FILE is an executable regular file.
21264 as_fn_executable_p ()
21266 test -f "$1" && test -x "$1"
21267 } # as_fn_executable_p
21268 as_test_x='test -x'
21269 as_executable_p=as_fn_executable_p
21271 # Sed expression to map a string onto a valid CPP name.
21272 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21274 # Sed expression to map a string onto a valid variable name.
21275 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21278 exec 6>&1
21279 ## ----------------------------------- ##
21280 ## Main body of $CONFIG_STATUS script. ##
21281 ## ----------------------------------- ##
21282 _ASEOF
21283 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
21285 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21286 # Save the log message, to keep $0 and so on meaningful, and to
21287 # report actual input values of CONFIG_FILES etc. instead of their
21288 # values after options handling.
21289 ac_log="
21290 This file was extended by alpine $as_me 2.19.9999, which was
21291 generated by GNU Autoconf 2.69. Invocation command line was
21293 CONFIG_FILES = $CONFIG_FILES
21294 CONFIG_HEADERS = $CONFIG_HEADERS
21295 CONFIG_LINKS = $CONFIG_LINKS
21296 CONFIG_COMMANDS = $CONFIG_COMMANDS
21297 $ $0 $@
21299 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21302 _ACEOF
21304 case $ac_config_files in *"
21305 "*) set x $ac_config_files; shift; ac_config_files=$*;;
21306 esac
21308 case $ac_config_headers in *"
21309 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21310 esac
21313 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21314 # Files that config.status was made for.
21315 config_files="$ac_config_files"
21316 config_headers="$ac_config_headers"
21317 config_commands="$ac_config_commands"
21319 _ACEOF
21321 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21322 ac_cs_usage="\
21323 \`$as_me' instantiates files and other configuration actions
21324 from templates according to the current configuration. Unless the files
21325 and actions are specified as TAGs, all are instantiated by default.
21327 Usage: $0 [OPTION]... [TAG]...
21329 -h, --help print this help, then exit
21330 -V, --version print version number and configuration settings, then exit
21331 --config print configuration, then exit
21332 -q, --quiet, --silent
21333 do not print progress messages
21334 -d, --debug don't remove temporary files
21335 --recheck update $as_me by reconfiguring in the same conditions
21336 --file=FILE[:TEMPLATE]
21337 instantiate the configuration file FILE
21338 --header=FILE[:TEMPLATE]
21339 instantiate the configuration header FILE
21341 Configuration files:
21342 $config_files
21344 Configuration headers:
21345 $config_headers
21347 Configuration commands:
21348 $config_commands
21350 Report bugs to <chappa@washington.edu>."
21352 _ACEOF
21353 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21354 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
21355 ac_cs_version="\\
21356 alpine config.status 2.19.9999
21357 configured by $0, generated by GNU Autoconf 2.69,
21358 with options \\"\$ac_cs_config\\"
21360 Copyright (C) 2012 Free Software Foundation, Inc.
21361 This config.status script is free software; the Free Software Foundation
21362 gives unlimited permission to copy, distribute and modify it."
21364 ac_pwd='$ac_pwd'
21365 srcdir='$srcdir'
21366 INSTALL='$INSTALL'
21367 MKDIR_P='$MKDIR_P'
21368 AWK='$AWK'
21369 test -n "\$AWK" || AWK=awk
21370 _ACEOF
21372 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21373 # The default lists apply if the user does not specify any file.
21374 ac_need_defaults=:
21375 while test $# != 0
21377 case $1 in
21378 --*=?*)
21379 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21380 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21381 ac_shift=:
21383 --*=)
21384 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21385 ac_optarg=
21386 ac_shift=:
21389 ac_option=$1
21390 ac_optarg=$2
21391 ac_shift=shift
21393 esac
21395 case $ac_option in
21396 # Handling of the options.
21397 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21398 ac_cs_recheck=: ;;
21399 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21400 $as_echo "$ac_cs_version"; exit ;;
21401 --config | --confi | --conf | --con | --co | --c )
21402 $as_echo "$ac_cs_config"; exit ;;
21403 --debug | --debu | --deb | --de | --d | -d )
21404 debug=: ;;
21405 --file | --fil | --fi | --f )
21406 $ac_shift
21407 case $ac_optarg in
21408 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21409 '') as_fn_error $? "missing file argument" ;;
21410 esac
21411 as_fn_append CONFIG_FILES " '$ac_optarg'"
21412 ac_need_defaults=false;;
21413 --header | --heade | --head | --hea )
21414 $ac_shift
21415 case $ac_optarg in
21416 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21417 esac
21418 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
21419 ac_need_defaults=false;;
21420 --he | --h)
21421 # Conflict between --help and --header
21422 as_fn_error $? "ambiguous option: \`$1'
21423 Try \`$0 --help' for more information.";;
21424 --help | --hel | -h )
21425 $as_echo "$ac_cs_usage"; exit ;;
21426 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21427 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21428 ac_cs_silent=: ;;
21430 # This is an error.
21431 -*) as_fn_error $? "unrecognized option: \`$1'
21432 Try \`$0 --help' for more information." ;;
21434 *) as_fn_append ac_config_targets " $1"
21435 ac_need_defaults=false ;;
21437 esac
21438 shift
21439 done
21441 ac_configure_extra_args=
21443 if $ac_cs_silent; then
21444 exec 6>/dev/null
21445 ac_configure_extra_args="$ac_configure_extra_args --silent"
21448 _ACEOF
21449 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21450 if \$ac_cs_recheck; then
21451 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21452 shift
21453 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
21454 CONFIG_SHELL='$SHELL'
21455 export CONFIG_SHELL
21456 exec "\$@"
21459 _ACEOF
21460 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21461 exec 5>>config.log
21463 echo
21464 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21465 ## Running $as_me. ##
21466 _ASBOX
21467 $as_echo "$ac_log"
21468 } >&5
21470 _ACEOF
21471 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21473 # INIT-COMMANDS
21475 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21478 # The HP-UX ksh and POSIX shell print the target directory to stdout
21479 # if CDPATH is set.
21480 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21482 sed_quote_subst='$sed_quote_subst'
21483 double_quote_subst='$double_quote_subst'
21484 delay_variable_subst='$delay_variable_subst'
21485 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
21486 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
21487 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
21488 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
21489 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
21490 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
21491 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
21492 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
21493 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
21494 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
21495 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
21496 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
21497 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
21498 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
21499 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
21500 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
21501 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
21502 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
21503 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
21504 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
21505 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
21506 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
21507 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
21508 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
21509 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
21510 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
21511 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
21512 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
21513 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
21514 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
21515 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
21516 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
21517 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
21518 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
21519 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
21520 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
21521 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
21522 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
21523 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
21524 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
21525 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
21526 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
21527 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
21528 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
21529 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
21530 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21531 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21532 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
21533 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
21534 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
21535 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
21536 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
21537 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
21538 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
21539 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
21540 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
21541 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"`'
21542 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
21543 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
21544 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
21545 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
21546 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
21547 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
21548 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
21549 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
21550 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
21551 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
21552 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
21553 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
21554 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
21555 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
21556 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
21557 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
21558 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
21559 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
21560 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21561 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
21562 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
21563 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
21564 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
21565 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
21566 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
21567 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21568 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
21569 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21570 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
21571 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21572 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
21573 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
21574 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
21575 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
21576 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
21577 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
21578 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
21579 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
21580 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
21581 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
21582 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
21583 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
21584 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
21585 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
21586 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
21587 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
21588 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
21589 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
21590 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
21591 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
21592 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
21593 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
21594 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
21595 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
21596 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
21597 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
21598 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
21599 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
21600 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
21601 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
21602 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21603 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21604 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
21605 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
21606 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
21607 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
21608 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
21609 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
21610 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
21611 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
21612 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
21613 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
21614 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
21616 LTCC='$LTCC'
21617 LTCFLAGS='$LTCFLAGS'
21618 compiler='$compiler_DEFAULT'
21620 # A function that is used when there is no print builtin or printf.
21621 func_fallback_echo ()
21623 eval 'cat <<_LTECHO_EOF
21625 _LTECHO_EOF'
21628 # Quote evaled strings.
21629 for var in SHELL \
21630 ECHO \
21631 PATH_SEPARATOR \
21632 SED \
21633 GREP \
21634 EGREP \
21635 FGREP \
21636 LD \
21637 NM \
21638 LN_S \
21639 lt_SP2NL \
21640 lt_NL2SP \
21641 reload_flag \
21642 OBJDUMP \
21643 deplibs_check_method \
21644 file_magic_cmd \
21645 file_magic_glob \
21646 want_nocaseglob \
21647 DLLTOOL \
21648 sharedlib_from_linklib_cmd \
21649 AR \
21650 AR_FLAGS \
21651 archiver_list_spec \
21652 STRIP \
21653 RANLIB \
21654 CC \
21655 CFLAGS \
21656 compiler \
21657 lt_cv_sys_global_symbol_pipe \
21658 lt_cv_sys_global_symbol_to_cdecl \
21659 lt_cv_sys_global_symbol_to_c_name_address \
21660 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
21661 nm_file_list_spec \
21662 lt_prog_compiler_no_builtin_flag \
21663 lt_prog_compiler_pic \
21664 lt_prog_compiler_wl \
21665 lt_prog_compiler_static \
21666 lt_cv_prog_compiler_c_o \
21667 need_locks \
21668 MANIFEST_TOOL \
21669 DSYMUTIL \
21670 NMEDIT \
21671 LIPO \
21672 OTOOL \
21673 OTOOL64 \
21674 shrext_cmds \
21675 export_dynamic_flag_spec \
21676 whole_archive_flag_spec \
21677 compiler_needs_object \
21678 with_gnu_ld \
21679 allow_undefined_flag \
21680 no_undefined_flag \
21681 hardcode_libdir_flag_spec \
21682 hardcode_libdir_separator \
21683 exclude_expsyms \
21684 include_expsyms \
21685 file_list_spec \
21686 variables_saved_for_relink \
21687 libname_spec \
21688 library_names_spec \
21689 soname_spec \
21690 install_override_mode \
21691 finish_eval \
21692 old_striplib \
21693 striplib; do
21694 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21695 *[\\\\\\\`\\"\\\$]*)
21696 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
21699 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21701 esac
21702 done
21704 # Double-quote double-evaled strings.
21705 for var in reload_cmds \
21706 old_postinstall_cmds \
21707 old_postuninstall_cmds \
21708 old_archive_cmds \
21709 extract_expsyms_cmds \
21710 old_archive_from_new_cmds \
21711 old_archive_from_expsyms_cmds \
21712 archive_cmds \
21713 archive_expsym_cmds \
21714 module_cmds \
21715 module_expsym_cmds \
21716 export_symbols_cmds \
21717 prelink_cmds \
21718 postlink_cmds \
21719 postinstall_cmds \
21720 postuninstall_cmds \
21721 finish_cmds \
21722 sys_lib_search_path_spec \
21723 sys_lib_dlsearch_path_spec; do
21724 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21725 *[\\\\\\\`\\"\\\$]*)
21726 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
21729 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21731 esac
21732 done
21734 ac_aux_dir='$ac_aux_dir'
21735 xsi_shell='$xsi_shell'
21736 lt_shell_append='$lt_shell_append'
21738 # See if we are running on zsh, and set the options which allow our
21739 # commands through without removal of \ escapes INIT.
21740 if test -n "\${ZSH_VERSION+set}" ; then
21741 setopt NO_GLOB_SUBST
21745 PACKAGE='$PACKAGE'
21746 VERSION='$VERSION'
21747 TIMESTAMP='$TIMESTAMP'
21748 RM='$RM'
21749 ofile='$ofile'
21753 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
21754 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
21755 # from automake < 1.5.
21756 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
21757 # Capture the value of LINGUAS because we need it to compute CATALOGS.
21758 LINGUAS="${LINGUAS-%UNSET%}"
21761 _ACEOF
21763 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21765 # Handling of arguments.
21766 for ac_config_target in $ac_config_targets
21768 case $ac_config_target in
21769 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
21770 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21771 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21772 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
21773 "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
21774 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
21775 "$REGEX_MAKEFILE") CONFIG_FILES="$CONFIG_FILES $REGEX_MAKEFILE" ;;
21776 "pith/osdep/Makefile") CONFIG_FILES="$CONFIG_FILES pith/osdep/Makefile" ;;
21777 "pith/charconv/Makefile") CONFIG_FILES="$CONFIG_FILES pith/charconv/Makefile" ;;
21778 "pith/Makefile") CONFIG_FILES="$CONFIG_FILES pith/Makefile" ;;
21779 "pico/osdep/Makefile") CONFIG_FILES="$CONFIG_FILES pico/osdep/Makefile" ;;
21780 "pico/Makefile") CONFIG_FILES="$CONFIG_FILES pico/Makefile" ;;
21781 "alpine/osdep/Makefile") CONFIG_FILES="$CONFIG_FILES alpine/osdep/Makefile" ;;
21782 "alpine/Makefile") CONFIG_FILES="$CONFIG_FILES alpine/Makefile" ;;
21783 "web/src/Makefile") CONFIG_FILES="$CONFIG_FILES web/src/Makefile" ;;
21784 "web/src/pubcookie/Makefile") CONFIG_FILES="$CONFIG_FILES web/src/pubcookie/Makefile" ;;
21785 "web/src/alpined.d/Makefile") CONFIG_FILES="$CONFIG_FILES web/src/alpined.d/Makefile" ;;
21786 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21788 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
21789 esac
21790 done
21793 # If the user did not use the arguments to specify the items to instantiate,
21794 # then the envvar interface is used. Set only those that are not.
21795 # We use the long form for the default assignment because of an extremely
21796 # bizarre bug on SunOS 4.1.3.
21797 if $ac_need_defaults; then
21798 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21799 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21800 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21803 # Have a temporary directory for convenience. Make it in the build tree
21804 # simply because there is no reason against having it here, and in addition,
21805 # creating and moving files from /tmp can sometimes cause problems.
21806 # Hook for its removal unless debugging.
21807 # Note that there is a small window in which the directory will not be cleaned:
21808 # after its creation but before its name has been assigned to `$tmp'.
21809 $debug ||
21811 tmp= ac_tmp=
21812 trap 'exit_status=$?
21813 : "${ac_tmp:=$tmp}"
21814 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21816 trap 'as_fn_exit 1' 1 2 13 15
21818 # Create a (secure) tmp directory for tmp files.
21821 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21822 test -d "$tmp"
21823 } ||
21825 tmp=./conf$$-$RANDOM
21826 (umask 077 && mkdir "$tmp")
21827 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21828 ac_tmp=$tmp
21830 # Set up the scripts for CONFIG_FILES section.
21831 # No need to generate them if there are no CONFIG_FILES.
21832 # This happens for instance with `./config.status config.h'.
21833 if test -n "$CONFIG_FILES"; then
21836 ac_cr=`echo X | tr X '\015'`
21837 # On cygwin, bash can eat \r inside `` if the user requested igncr.
21838 # But we know of no other shell where ac_cr would be empty at this
21839 # point, so we can use a bashism as a fallback.
21840 if test "x$ac_cr" = x; then
21841 eval ac_cr=\$\'\\r\'
21843 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21844 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21845 ac_cs_awk_cr='\\r'
21846 else
21847 ac_cs_awk_cr=$ac_cr
21850 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
21851 _ACEOF
21855 echo "cat >conf$$subs.awk <<_ACEOF" &&
21856 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21857 echo "_ACEOF"
21858 } >conf$$subs.sh ||
21859 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21860 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
21861 ac_delim='%!_!# '
21862 for ac_last_try in false false false false false :; do
21863 . ./conf$$subs.sh ||
21864 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21866 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21867 if test $ac_delim_n = $ac_delim_num; then
21868 break
21869 elif $ac_last_try; then
21870 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21871 else
21872 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21874 done
21875 rm -f conf$$subs.sh
21877 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21878 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
21879 _ACEOF
21880 sed -n '
21882 s/^/S["/; s/!.*/"]=/
21885 s/^[^!]*!//
21886 :repl
21887 t repl
21888 s/'"$ac_delim"'$//
21889 t delim
21892 s/\(.\{148\}\)..*/\1/
21893 t more1
21894 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21897 b repl
21898 :more1
21899 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21902 s/.\{148\}//
21903 t nl
21904 :delim
21906 s/\(.\{148\}\)..*/\1/
21907 t more2
21908 s/["\\]/\\&/g; s/^/"/; s/$/"/
21911 :more2
21912 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21915 s/.\{148\}//
21916 t delim
21917 ' <conf$$subs.awk | sed '
21918 /^[^""]/{
21920 s/\n//
21922 ' >>$CONFIG_STATUS || ac_write_fail=1
21923 rm -f conf$$subs.awk
21924 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21925 _ACAWK
21926 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
21927 for (key in S) S_is_set[key] = 1
21928 FS = "\a"
21932 line = $ 0
21933 nfields = split(line, field, "@")
21934 substed = 0
21935 len = length(field[1])
21936 for (i = 2; i < nfields; i++) {
21937 key = field[i]
21938 keylen = length(key)
21939 if (S_is_set[key]) {
21940 value = S[key]
21941 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21942 len += length(value) + length(field[++i])
21943 substed = 1
21944 } else
21945 len += 1 + keylen
21948 print line
21951 _ACAWK
21952 _ACEOF
21953 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21954 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21955 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21956 else
21958 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21959 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21960 _ACEOF
21962 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21963 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21964 # trailing colons and then remove the whole line if VPATH becomes empty
21965 # (actually we leave an empty line to preserve line numbers).
21966 if test "x$srcdir" = x.; then
21967 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
21969 s///
21970 s/^/:/
21971 s/[ ]*$/:/
21972 s/:\$(srcdir):/:/g
21973 s/:\${srcdir}:/:/g
21974 s/:@srcdir@:/:/g
21975 s/^:*//
21976 s/:*$//
21978 s/\(=[ ]*\).*/\1/
21980 s/\n//
21981 s/^[^=]*=[ ]*$//
21985 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21986 fi # test -n "$CONFIG_FILES"
21988 # Set up the scripts for CONFIG_HEADERS section.
21989 # No need to generate them if there are no CONFIG_HEADERS.
21990 # This happens for instance with `./config.status Makefile'.
21991 if test -n "$CONFIG_HEADERS"; then
21992 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
21993 BEGIN {
21994 _ACEOF
21996 # Transform confdefs.h into an awk script `defines.awk', embedded as
21997 # here-document in config.status, that substitutes the proper values into
21998 # config.h.in to produce config.h.
22000 # Create a delimiter string that does not exist in confdefs.h, to ease
22001 # handling of long lines.
22002 ac_delim='%!_!# '
22003 for ac_last_try in false false :; do
22004 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
22005 if test -z "$ac_tt"; then
22006 break
22007 elif $ac_last_try; then
22008 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
22009 else
22010 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22012 done
22014 # For the awk script, D is an array of macro values keyed by name,
22015 # likewise P contains macro parameters if any. Preserve backslash
22016 # newline sequences.
22018 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22019 sed -n '
22020 s/.\{148\}/&'"$ac_delim"'/g
22021 t rset
22022 :rset
22023 s/^[ ]*#[ ]*define[ ][ ]*/ /
22024 t def
22026 :def
22027 s/\\$//
22028 t bsnl
22029 s/["\\]/\\&/g
22030 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22031 D["\1"]=" \3"/p
22032 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
22034 :bsnl
22035 s/["\\]/\\&/g
22036 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22037 D["\1"]=" \3\\\\\\n"\\/p
22038 t cont
22039 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22040 t cont
22042 :cont
22044 s/.\{148\}/&'"$ac_delim"'/g
22045 t clear
22046 :clear
22047 s/\\$//
22048 t bsnlc
22049 s/["\\]/\\&/g; s/^/"/; s/$/"/p
22051 :bsnlc
22052 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22053 b cont
22054 ' <confdefs.h | sed '
22055 s/'"$ac_delim"'/"\\\
22056 "/g' >>$CONFIG_STATUS || ac_write_fail=1
22058 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22059 for (key in D) D_is_set[key] = 1
22060 FS = "\a"
22062 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22063 line = \$ 0
22064 split(line, arg, " ")
22065 if (arg[1] == "#") {
22066 defundef = arg[2]
22067 mac1 = arg[3]
22068 } else {
22069 defundef = substr(arg[1], 2)
22070 mac1 = arg[2]
22072 split(mac1, mac2, "(") #)
22073 macro = mac2[1]
22074 prefix = substr(line, 1, index(line, defundef) - 1)
22075 if (D_is_set[macro]) {
22076 # Preserve the white space surrounding the "#".
22077 print prefix "define", macro P[macro] D[macro]
22078 next
22079 } else {
22080 # Replace #undef with comments. This is necessary, for example,
22081 # in the case of _POSIX_SOURCE, which is predefined and required
22082 # on some systems where configure will not decide to define it.
22083 if (defundef == "undef") {
22084 print "/*", prefix defundef, macro, "*/"
22085 next
22089 { print }
22090 _ACAWK
22091 _ACEOF
22092 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22093 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
22094 fi # test -n "$CONFIG_HEADERS"
22097 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
22098 shift
22099 for ac_tag
22101 case $ac_tag in
22102 :[FHLC]) ac_mode=$ac_tag; continue;;
22103 esac
22104 case $ac_mode$ac_tag in
22105 :[FHL]*:*);;
22106 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
22107 :[FH]-) ac_tag=-:-;;
22108 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22109 esac
22110 ac_save_IFS=$IFS
22111 IFS=:
22112 set x $ac_tag
22113 IFS=$ac_save_IFS
22114 shift
22115 ac_file=$1
22116 shift
22118 case $ac_mode in
22119 :L) ac_source=$1;;
22120 :[FH])
22121 ac_file_inputs=
22122 for ac_f
22124 case $ac_f in
22125 -) ac_f="$ac_tmp/stdin";;
22126 *) # Look for the file first in the build tree, then in the source tree
22127 # (if the path is not absolute). The absolute path cannot be DOS-style,
22128 # because $ac_f cannot contain `:'.
22129 test -f "$ac_f" ||
22130 case $ac_f in
22131 [\\/$]*) false;;
22132 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22133 esac ||
22134 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
22135 esac
22136 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22137 as_fn_append ac_file_inputs " '$ac_f'"
22138 done
22140 # Let's still pretend it is `configure' which instantiates (i.e., don't
22141 # use $as_me), people would be surprised to read:
22142 # /* config.h. Generated by config.status. */
22143 configure_input='Generated from '`
22144 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22145 `' by configure.'
22146 if test x"$ac_file" != x-; then
22147 configure_input="$ac_file. $configure_input"
22148 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
22149 $as_echo "$as_me: creating $ac_file" >&6;}
22151 # Neutralize special characters interpreted by sed in replacement strings.
22152 case $configure_input in #(
22153 *\&* | *\|* | *\\* )
22154 ac_sed_conf_input=`$as_echo "$configure_input" |
22155 sed 's/[\\\\&|]/\\\\&/g'`;; #(
22156 *) ac_sed_conf_input=$configure_input;;
22157 esac
22159 case $ac_tag in
22160 *:-:* | *:-) cat >"$ac_tmp/stdin" \
22161 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
22162 esac
22164 esac
22166 ac_dir=`$as_dirname -- "$ac_file" ||
22167 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22168 X"$ac_file" : 'X\(//\)[^/]' \| \
22169 X"$ac_file" : 'X\(//\)$' \| \
22170 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22171 $as_echo X"$ac_file" |
22172 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22173 s//\1/
22176 /^X\(\/\/\)[^/].*/{
22177 s//\1/
22180 /^X\(\/\/\)$/{
22181 s//\1/
22184 /^X\(\/\).*/{
22185 s//\1/
22188 s/.*/./; q'`
22189 as_dir="$ac_dir"; as_fn_mkdir_p
22190 ac_builddir=.
22192 case "$ac_dir" in
22193 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22195 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
22196 # A ".." for each directory in $ac_dir_suffix.
22197 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22198 case $ac_top_builddir_sub in
22199 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22200 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22201 esac ;;
22202 esac
22203 ac_abs_top_builddir=$ac_pwd
22204 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22205 # for backward compatibility:
22206 ac_top_builddir=$ac_top_build_prefix
22208 case $srcdir in
22209 .) # We are building in place.
22210 ac_srcdir=.
22211 ac_top_srcdir=$ac_top_builddir_sub
22212 ac_abs_top_srcdir=$ac_pwd ;;
22213 [\\/]* | ?:[\\/]* ) # Absolute name.
22214 ac_srcdir=$srcdir$ac_dir_suffix;
22215 ac_top_srcdir=$srcdir
22216 ac_abs_top_srcdir=$srcdir ;;
22217 *) # Relative name.
22218 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22219 ac_top_srcdir=$ac_top_build_prefix$srcdir
22220 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22221 esac
22222 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22225 case $ac_mode in
22228 # CONFIG_FILE
22231 case $INSTALL in
22232 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22233 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22234 esac
22235 ac_MKDIR_P=$MKDIR_P
22236 case $MKDIR_P in
22237 [\\/$]* | ?:[\\/]* ) ;;
22238 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22239 esac
22240 _ACEOF
22242 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22243 # If the template does not know about datarootdir, expand it.
22244 # FIXME: This hack should be removed a few years after 2.60.
22245 ac_datarootdir_hack=; ac_datarootdir_seen=
22246 ac_sed_dataroot='
22247 /datarootdir/ {
22251 /@datadir@/p
22252 /@docdir@/p
22253 /@infodir@/p
22254 /@localedir@/p
22255 /@mandir@/p'
22256 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22257 *datarootdir*) ac_datarootdir_seen=yes;;
22258 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22259 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22260 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22261 _ACEOF
22262 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22263 ac_datarootdir_hack='
22264 s&@datadir@&$datadir&g
22265 s&@docdir@&$docdir&g
22266 s&@infodir@&$infodir&g
22267 s&@localedir@&$localedir&g
22268 s&@mandir@&$mandir&g
22269 s&\\\${datarootdir}&$datarootdir&g' ;;
22270 esac
22271 _ACEOF
22273 # Neutralize VPATH when `$srcdir' = `.'.
22274 # Shell code in configure.ac might set extrasub.
22275 # FIXME: do we really want to maintain this feature?
22276 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22277 ac_sed_extra="$ac_vpsub
22278 $extrasub
22279 _ACEOF
22280 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22282 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22283 s|@configure_input@|$ac_sed_conf_input|;t t
22284 s&@top_builddir@&$ac_top_builddir_sub&;t t
22285 s&@top_build_prefix@&$ac_top_build_prefix&;t t
22286 s&@srcdir@&$ac_srcdir&;t t
22287 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22288 s&@top_srcdir@&$ac_top_srcdir&;t t
22289 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22290 s&@builddir@&$ac_builddir&;t t
22291 s&@abs_builddir@&$ac_abs_builddir&;t t
22292 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22293 s&@INSTALL@&$ac_INSTALL&;t t
22294 s&@MKDIR_P@&$ac_MKDIR_P&;t t
22295 $ac_datarootdir_hack
22297 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
22298 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22300 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22301 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
22302 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
22303 "$ac_tmp/out"`; test -z "$ac_out"; } &&
22304 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22305 which seems to be undefined. Please make sure it is defined" >&5
22306 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22307 which seems to be undefined. Please make sure it is defined" >&2;}
22309 rm -f "$ac_tmp/stdin"
22310 case $ac_file in
22311 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
22312 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
22313 esac \
22314 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22318 # CONFIG_HEADER
22320 if test x"$ac_file" != x-; then
22322 $as_echo "/* $configure_input */" \
22323 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
22324 } >"$ac_tmp/config.h" \
22325 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22326 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
22327 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
22328 $as_echo "$as_me: $ac_file is unchanged" >&6;}
22329 else
22330 rm -f "$ac_file"
22331 mv "$ac_tmp/config.h" "$ac_file" \
22332 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22334 else
22335 $as_echo "/* $configure_input */" \
22336 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
22337 || as_fn_error $? "could not create -" "$LINENO" 5
22339 # Compute "$ac_file"'s index in $config_headers.
22340 _am_arg="$ac_file"
22341 _am_stamp_count=1
22342 for _am_header in $config_headers :; do
22343 case $_am_header in
22344 $_am_arg | $_am_arg:* )
22345 break ;;
22347 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22348 esac
22349 done
22350 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22351 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22352 X"$_am_arg" : 'X\(//\)[^/]' \| \
22353 X"$_am_arg" : 'X\(//\)$' \| \
22354 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22355 $as_echo X"$_am_arg" |
22356 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22357 s//\1/
22360 /^X\(\/\/\)[^/].*/{
22361 s//\1/
22364 /^X\(\/\/\)$/{
22365 s//\1/
22368 /^X\(\/\).*/{
22369 s//\1/
22372 s/.*/./; q'`/stamp-h$_am_stamp_count
22375 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
22376 $as_echo "$as_me: executing $ac_file commands" >&6;}
22378 esac
22381 case $ac_file$ac_mode in
22382 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22383 # Older Autoconf quotes --file arguments for eval, but not when files
22384 # are listed without --file. Let's play safe and only enable the eval
22385 # if we detect the quoting.
22386 case $CONFIG_FILES in
22387 *\'*) eval set x "$CONFIG_FILES" ;;
22388 *) set x $CONFIG_FILES ;;
22389 esac
22390 shift
22391 for mf
22393 # Strip MF so we end up with the name of the file.
22394 mf=`echo "$mf" | sed -e 's/:.*$//'`
22395 # Check whether this is an Automake generated Makefile or not.
22396 # We used to match only the files named 'Makefile.in', but
22397 # some people rename them; so instead we look at the file content.
22398 # Grep'ing the first line is not enough: some people post-process
22399 # each Makefile.in and add a new line on top of each file to say so.
22400 # Grep'ing the whole file is not good either: AIX grep has a line
22401 # limit of 2048, but all sed's we know have understand at least 4000.
22402 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
22403 dirpart=`$as_dirname -- "$mf" ||
22404 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22405 X"$mf" : 'X\(//\)[^/]' \| \
22406 X"$mf" : 'X\(//\)$' \| \
22407 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22408 $as_echo X"$mf" |
22409 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22410 s//\1/
22413 /^X\(\/\/\)[^/].*/{
22414 s//\1/
22417 /^X\(\/\/\)$/{
22418 s//\1/
22421 /^X\(\/\).*/{
22422 s//\1/
22425 s/.*/./; q'`
22426 else
22427 continue
22429 # Extract the definition of DEPDIR, am__include, and am__quote
22430 # from the Makefile without running 'make'.
22431 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22432 test -z "$DEPDIR" && continue
22433 am__include=`sed -n 's/^am__include = //p' < "$mf"`
22434 test -z "$am__include" && continue
22435 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22436 # Find all dependency output files, they are included files with
22437 # $(DEPDIR) in their names. We invoke sed twice because it is the
22438 # simplest approach to changing $(DEPDIR) to its actual value in the
22439 # expansion.
22440 for file in `sed -n "
22441 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22442 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
22443 # Make sure the directory exists.
22444 test -f "$dirpart/$file" && continue
22445 fdir=`$as_dirname -- "$file" ||
22446 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22447 X"$file" : 'X\(//\)[^/]' \| \
22448 X"$file" : 'X\(//\)$' \| \
22449 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22450 $as_echo X"$file" |
22451 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22452 s//\1/
22455 /^X\(\/\/\)[^/].*/{
22456 s//\1/
22459 /^X\(\/\/\)$/{
22460 s//\1/
22463 /^X\(\/\).*/{
22464 s//\1/
22467 s/.*/./; q'`
22468 as_dir=$dirpart/$fdir; as_fn_mkdir_p
22469 # echo "creating $dirpart/$file"
22470 echo '# dummy' > "$dirpart/$file"
22471 done
22472 done
22475 "libtool":C)
22477 # See if we are running on zsh, and set the options which allow our
22478 # commands through without removal of \ escapes.
22479 if test -n "${ZSH_VERSION+set}" ; then
22480 setopt NO_GLOB_SUBST
22483 cfgfile="${ofile}T"
22484 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
22485 $RM "$cfgfile"
22487 cat <<_LT_EOF >> "$cfgfile"
22488 #! $SHELL
22490 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
22491 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
22492 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22493 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
22495 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
22496 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
22497 # Foundation, Inc.
22498 # Written by Gordon Matzigkeit, 1996
22500 # This file is part of GNU Libtool.
22502 # GNU Libtool is free software; you can redistribute it and/or
22503 # modify it under the terms of the GNU General Public License as
22504 # published by the Free Software Foundation; either version 2 of
22505 # the License, or (at your option) any later version.
22507 # As a special exception to the GNU General Public License,
22508 # if you distribute this file as part of a program or library that
22509 # is built using GNU Libtool, you may include this file under the
22510 # same distribution terms that you use for the rest of that program.
22512 # GNU Libtool is distributed in the hope that it will be useful,
22513 # but WITHOUT ANY WARRANTY; without even the implied warranty of
22514 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22515 # GNU General Public License for more details.
22517 # You should have received a copy of the GNU General Public License
22518 # along with GNU Libtool; see the file COPYING. If not, a copy
22519 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
22520 # obtained by writing to the Free Software Foundation, Inc.,
22521 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
22524 # The names of the tagged configurations supported by this script.
22525 available_tags=""
22527 # ### BEGIN LIBTOOL CONFIG
22529 # Which release of libtool.m4 was used?
22530 macro_version=$macro_version
22531 macro_revision=$macro_revision
22533 # Whether or not to build shared libraries.
22534 build_libtool_libs=$enable_shared
22536 # Whether or not to build static libraries.
22537 build_old_libs=$enable_static
22539 # What type of objects to build.
22540 pic_mode=$pic_mode
22542 # Whether or not to optimize for fast installation.
22543 fast_install=$enable_fast_install
22545 # Shell to use when invoking shell scripts.
22546 SHELL=$lt_SHELL
22548 # An echo program that protects backslashes.
22549 ECHO=$lt_ECHO
22551 # The PATH separator for the build system.
22552 PATH_SEPARATOR=$lt_PATH_SEPARATOR
22554 # The host system.
22555 host_alias=$host_alias
22556 host=$host
22557 host_os=$host_os
22559 # The build system.
22560 build_alias=$build_alias
22561 build=$build
22562 build_os=$build_os
22564 # A sed program that does not truncate output.
22565 SED=$lt_SED
22567 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
22568 Xsed="\$SED -e 1s/^X//"
22570 # A grep program that handles long lines.
22571 GREP=$lt_GREP
22573 # An ERE matcher.
22574 EGREP=$lt_EGREP
22576 # A literal string matcher.
22577 FGREP=$lt_FGREP
22579 # A BSD- or MS-compatible name lister.
22580 NM=$lt_NM
22582 # Whether we need soft or hard links.
22583 LN_S=$lt_LN_S
22585 # What is the maximum length of a command?
22586 max_cmd_len=$max_cmd_len
22588 # Object file suffix (normally "o").
22589 objext=$ac_objext
22591 # Executable file suffix (normally "").
22592 exeext=$exeext
22594 # whether the shell understands "unset".
22595 lt_unset=$lt_unset
22597 # turn spaces into newlines.
22598 SP2NL=$lt_lt_SP2NL
22600 # turn newlines into spaces.
22601 NL2SP=$lt_lt_NL2SP
22603 # convert \$build file names to \$host format.
22604 to_host_file_cmd=$lt_cv_to_host_file_cmd
22606 # convert \$build files to toolchain format.
22607 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
22609 # An object symbol dumper.
22610 OBJDUMP=$lt_OBJDUMP
22612 # Method to check whether dependent libraries are shared objects.
22613 deplibs_check_method=$lt_deplibs_check_method
22615 # Command to use when deplibs_check_method = "file_magic".
22616 file_magic_cmd=$lt_file_magic_cmd
22618 # How to find potential files when deplibs_check_method = "file_magic".
22619 file_magic_glob=$lt_file_magic_glob
22621 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
22622 want_nocaseglob=$lt_want_nocaseglob
22624 # DLL creation program.
22625 DLLTOOL=$lt_DLLTOOL
22627 # Command to associate shared and link libraries.
22628 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
22630 # The archiver.
22631 AR=$lt_AR
22633 # Flags to create an archive.
22634 AR_FLAGS=$lt_AR_FLAGS
22636 # How to feed a file listing to the archiver.
22637 archiver_list_spec=$lt_archiver_list_spec
22639 # A symbol stripping program.
22640 STRIP=$lt_STRIP
22642 # Commands used to install an old-style archive.
22643 RANLIB=$lt_RANLIB
22644 old_postinstall_cmds=$lt_old_postinstall_cmds
22645 old_postuninstall_cmds=$lt_old_postuninstall_cmds
22647 # Whether to use a lock for old archive extraction.
22648 lock_old_archive_extraction=$lock_old_archive_extraction
22650 # A C compiler.
22651 LTCC=$lt_CC
22653 # LTCC compiler flags.
22654 LTCFLAGS=$lt_CFLAGS
22656 # Take the output of nm and produce a listing of raw symbols and C names.
22657 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22659 # Transform the output of nm in a proper C declaration.
22660 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22662 # Transform the output of nm in a C name address pair.
22663 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22665 # Transform the output of nm in a C name address pair when lib prefix is needed.
22666 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
22668 # Specify filename containing input files for \$NM.
22669 nm_file_list_spec=$lt_nm_file_list_spec
22671 # The root where to search for dependent libraries,and in which our libraries should be installed.
22672 lt_sysroot=$lt_sysroot
22674 # The name of the directory that contains temporary libtool files.
22675 objdir=$objdir
22677 # Used to examine libraries when file_magic_cmd begins with "file".
22678 MAGIC_CMD=$MAGIC_CMD
22680 # Must we lock files when doing compilation?
22681 need_locks=$lt_need_locks
22683 # Manifest tool.
22684 MANIFEST_TOOL=$lt_MANIFEST_TOOL
22686 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22687 DSYMUTIL=$lt_DSYMUTIL
22689 # Tool to change global to local symbols on Mac OS X.
22690 NMEDIT=$lt_NMEDIT
22692 # Tool to manipulate fat objects and archives on Mac OS X.
22693 LIPO=$lt_LIPO
22695 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
22696 OTOOL=$lt_OTOOL
22698 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22699 OTOOL64=$lt_OTOOL64
22701 # Old archive suffix (normally "a").
22702 libext=$libext
22704 # Shared library suffix (normally ".so").
22705 shrext_cmds=$lt_shrext_cmds
22707 # The commands to extract the exported symbol list from a shared archive.
22708 extract_expsyms_cmds=$lt_extract_expsyms_cmds
22710 # Variables whose values should be saved in libtool wrapper scripts and
22711 # restored at link time.
22712 variables_saved_for_relink=$lt_variables_saved_for_relink
22714 # Do we need the "lib" prefix for modules?
22715 need_lib_prefix=$need_lib_prefix
22717 # Do we need a version for libraries?
22718 need_version=$need_version
22720 # Library versioning type.
22721 version_type=$version_type
22723 # Shared library runtime path variable.
22724 runpath_var=$runpath_var
22726 # Shared library path variable.
22727 shlibpath_var=$shlibpath_var
22729 # Is shlibpath searched before the hard-coded library search path?
22730 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22732 # Format of library name prefix.
22733 libname_spec=$lt_libname_spec
22735 # List of archive names. First name is the real one, the rest are links.
22736 # The last name is the one that the linker finds with -lNAME
22737 library_names_spec=$lt_library_names_spec
22739 # The coded name of the library, if different from the real name.
22740 soname_spec=$lt_soname_spec
22742 # Permission mode override for installation of shared libraries.
22743 install_override_mode=$lt_install_override_mode
22745 # Command to use after installation of a shared archive.
22746 postinstall_cmds=$lt_postinstall_cmds
22748 # Command to use after uninstallation of a shared archive.
22749 postuninstall_cmds=$lt_postuninstall_cmds
22751 # Commands used to finish a libtool library installation in a directory.
22752 finish_cmds=$lt_finish_cmds
22754 # As "finish_cmds", except a single script fragment to be evaled but
22755 # not shown.
22756 finish_eval=$lt_finish_eval
22758 # Whether we should hardcode library paths into libraries.
22759 hardcode_into_libs=$hardcode_into_libs
22761 # Compile-time system search path for libraries.
22762 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22764 # Run-time system search path for libraries.
22765 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22767 # Whether dlopen is supported.
22768 dlopen_support=$enable_dlopen
22770 # Whether dlopen of programs is supported.
22771 dlopen_self=$enable_dlopen_self
22773 # Whether dlopen of statically linked programs is supported.
22774 dlopen_self_static=$enable_dlopen_self_static
22776 # Commands to strip libraries.
22777 old_striplib=$lt_old_striplib
22778 striplib=$lt_striplib
22781 # The linker used to build libraries.
22782 LD=$lt_LD
22784 # How to create reloadable object files.
22785 reload_flag=$lt_reload_flag
22786 reload_cmds=$lt_reload_cmds
22788 # Commands used to build an old-style archive.
22789 old_archive_cmds=$lt_old_archive_cmds
22791 # A language specific compiler.
22792 CC=$lt_compiler
22794 # Is the compiler the GNU compiler?
22795 with_gcc=$GCC
22797 # Compiler flag to turn off builtin functions.
22798 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22800 # Additional compiler flags for building library objects.
22801 pic_flag=$lt_lt_prog_compiler_pic
22803 # How to pass a linker flag through the compiler.
22804 wl=$lt_lt_prog_compiler_wl
22806 # Compiler flag to prevent dynamic linking.
22807 link_static_flag=$lt_lt_prog_compiler_static
22809 # Does compiler simultaneously support -c and -o options?
22810 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22812 # Whether or not to add -lc for building shared libraries.
22813 build_libtool_need_lc=$archive_cmds_need_lc
22815 # Whether or not to disallow shared libs when runtime libs are static.
22816 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22818 # Compiler flag to allow reflexive dlopens.
22819 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22821 # Compiler flag to generate shared objects directly from archives.
22822 whole_archive_flag_spec=$lt_whole_archive_flag_spec
22824 # Whether the compiler copes with passing no objects directly.
22825 compiler_needs_object=$lt_compiler_needs_object
22827 # Create an old-style archive from a shared archive.
22828 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22830 # Create a temporary old-style archive to link instead of a shared archive.
22831 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22833 # Commands used to build a shared archive.
22834 archive_cmds=$lt_archive_cmds
22835 archive_expsym_cmds=$lt_archive_expsym_cmds
22837 # Commands used to build a loadable module if different from building
22838 # a shared archive.
22839 module_cmds=$lt_module_cmds
22840 module_expsym_cmds=$lt_module_expsym_cmds
22842 # Whether we are building with GNU ld or not.
22843 with_gnu_ld=$lt_with_gnu_ld
22845 # Flag that allows shared libraries with undefined symbols to be built.
22846 allow_undefined_flag=$lt_allow_undefined_flag
22848 # Flag that enforces no undefined symbols.
22849 no_undefined_flag=$lt_no_undefined_flag
22851 # Flag to hardcode \$libdir into a binary during linking.
22852 # This must work even if \$libdir does not exist
22853 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22855 # Whether we need a single "-rpath" flag with a separated argument.
22856 hardcode_libdir_separator=$lt_hardcode_libdir_separator
22858 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22859 # DIR into the resulting binary.
22860 hardcode_direct=$hardcode_direct
22862 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22863 # DIR into the resulting binary and the resulting library dependency is
22864 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22865 # library is relocated.
22866 hardcode_direct_absolute=$hardcode_direct_absolute
22868 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22869 # into the resulting binary.
22870 hardcode_minus_L=$hardcode_minus_L
22872 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22873 # into the resulting binary.
22874 hardcode_shlibpath_var=$hardcode_shlibpath_var
22876 # Set to "yes" if building a shared library automatically hardcodes DIR
22877 # into the library and all subsequent libraries and executables linked
22878 # against it.
22879 hardcode_automatic=$hardcode_automatic
22881 # Set to yes if linker adds runtime paths of dependent libraries
22882 # to runtime path list.
22883 inherit_rpath=$inherit_rpath
22885 # Whether libtool must link a program against all its dependency libraries.
22886 link_all_deplibs=$link_all_deplibs
22888 # Set to "yes" if exported symbols are required.
22889 always_export_symbols=$always_export_symbols
22891 # The commands to list exported symbols.
22892 export_symbols_cmds=$lt_export_symbols_cmds
22894 # Symbols that should not be listed in the preloaded symbols.
22895 exclude_expsyms=$lt_exclude_expsyms
22897 # Symbols that must always be exported.
22898 include_expsyms=$lt_include_expsyms
22900 # Commands necessary for linking programs (against libraries) with templates.
22901 prelink_cmds=$lt_prelink_cmds
22903 # Commands necessary for finishing linking programs.
22904 postlink_cmds=$lt_postlink_cmds
22906 # Specify filename containing input files.
22907 file_list_spec=$lt_file_list_spec
22909 # How to hardcode a shared library path into an executable.
22910 hardcode_action=$hardcode_action
22912 # ### END LIBTOOL CONFIG
22914 _LT_EOF
22916 case $host_os in
22917 aix3*)
22918 cat <<\_LT_EOF >> "$cfgfile"
22919 # AIX sometimes has problems with the GCC collect2 program. For some
22920 # reason, if we set the COLLECT_NAMES environment variable, the problems
22921 # vanish in a puff of smoke.
22922 if test "X${COLLECT_NAMES+set}" != Xset; then
22923 COLLECT_NAMES=
22924 export COLLECT_NAMES
22926 _LT_EOF
22928 esac
22931 ltmain="$ac_aux_dir/ltmain.sh"
22934 # We use sed instead of cat because bash on DJGPP gets confused if
22935 # if finds mixed CR/LF and LF-only lines. Since sed operates in
22936 # text mode, it properly converts lines to CR/LF. This bash problem
22937 # is reportedly fixed, but why not run on old versions too?
22938 sed '$q' "$ltmain" >> "$cfgfile" \
22939 || (rm -f "$cfgfile"; exit 1)
22941 if test x"$xsi_shell" = xyes; then
22942 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
22943 func_dirname ()\
22945 \ case ${1} in\
22946 \ */*) func_dirname_result="${1%/*}${2}" ;;\
22947 \ * ) func_dirname_result="${3}" ;;\
22948 \ esac\
22949 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
22950 && mv -f "$cfgfile.tmp" "$cfgfile" \
22951 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22952 test 0 -eq $? || _lt_function_replace_fail=:
22955 sed -e '/^func_basename ()$/,/^} # func_basename /c\
22956 func_basename ()\
22958 \ func_basename_result="${1##*/}"\
22959 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
22960 && mv -f "$cfgfile.tmp" "$cfgfile" \
22961 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22962 test 0 -eq $? || _lt_function_replace_fail=:
22965 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
22966 func_dirname_and_basename ()\
22968 \ case ${1} in\
22969 \ */*) func_dirname_result="${1%/*}${2}" ;;\
22970 \ * ) func_dirname_result="${3}" ;;\
22971 \ esac\
22972 \ func_basename_result="${1##*/}"\
22973 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
22974 && mv -f "$cfgfile.tmp" "$cfgfile" \
22975 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22976 test 0 -eq $? || _lt_function_replace_fail=:
22979 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
22980 func_stripname ()\
22982 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
22983 \ # positional parameters, so assign one to ordinary parameter first.\
22984 \ func_stripname_result=${3}\
22985 \ func_stripname_result=${func_stripname_result#"${1}"}\
22986 \ func_stripname_result=${func_stripname_result%"${2}"}\
22987 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
22988 && mv -f "$cfgfile.tmp" "$cfgfile" \
22989 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22990 test 0 -eq $? || _lt_function_replace_fail=:
22993 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
22994 func_split_long_opt ()\
22996 \ func_split_long_opt_name=${1%%=*}\
22997 \ func_split_long_opt_arg=${1#*=}\
22998 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
22999 && mv -f "$cfgfile.tmp" "$cfgfile" \
23000 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23001 test 0 -eq $? || _lt_function_replace_fail=:
23004 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
23005 func_split_short_opt ()\
23007 \ func_split_short_opt_arg=${1#??}\
23008 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
23009 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
23010 && mv -f "$cfgfile.tmp" "$cfgfile" \
23011 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23012 test 0 -eq $? || _lt_function_replace_fail=:
23015 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
23016 func_lo2o ()\
23018 \ case ${1} in\
23019 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
23020 \ *) func_lo2o_result=${1} ;;\
23021 \ esac\
23022 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
23023 && mv -f "$cfgfile.tmp" "$cfgfile" \
23024 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23025 test 0 -eq $? || _lt_function_replace_fail=:
23028 sed -e '/^func_xform ()$/,/^} # func_xform /c\
23029 func_xform ()\
23031 func_xform_result=${1%.*}.lo\
23032 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
23033 && mv -f "$cfgfile.tmp" "$cfgfile" \
23034 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23035 test 0 -eq $? || _lt_function_replace_fail=:
23038 sed -e '/^func_arith ()$/,/^} # func_arith /c\
23039 func_arith ()\
23041 func_arith_result=$(( $* ))\
23042 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
23043 && mv -f "$cfgfile.tmp" "$cfgfile" \
23044 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23045 test 0 -eq $? || _lt_function_replace_fail=:
23048 sed -e '/^func_len ()$/,/^} # func_len /c\
23049 func_len ()\
23051 func_len_result=${#1}\
23052 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
23053 && mv -f "$cfgfile.tmp" "$cfgfile" \
23054 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23055 test 0 -eq $? || _lt_function_replace_fail=:
23059 if test x"$lt_shell_append" = xyes; then
23060 sed -e '/^func_append ()$/,/^} # func_append /c\
23061 func_append ()\
23063 eval "${1}+=\\${2}"\
23064 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
23065 && mv -f "$cfgfile.tmp" "$cfgfile" \
23066 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23067 test 0 -eq $? || _lt_function_replace_fail=:
23070 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
23071 func_append_quoted ()\
23073 \ func_quote_for_eval "${2}"\
23074 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
23075 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
23076 && mv -f "$cfgfile.tmp" "$cfgfile" \
23077 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23078 test 0 -eq $? || _lt_function_replace_fail=:
23081 # Save a `func_append' function call where possible by direct use of '+='
23082 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
23083 && mv -f "$cfgfile.tmp" "$cfgfile" \
23084 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23085 test 0 -eq $? || _lt_function_replace_fail=:
23086 else
23087 # Save a `func_append' function call even when '+=' is not available
23088 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
23089 && mv -f "$cfgfile.tmp" "$cfgfile" \
23090 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23091 test 0 -eq $? || _lt_function_replace_fail=:
23094 if test x"$_lt_function_replace_fail" = x":"; then
23095 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
23096 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
23100 mv -f "$cfgfile" "$ofile" ||
23101 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
23102 chmod +x "$ofile"
23105 "po-directories":C)
23106 for ac_file in $CONFIG_FILES; do
23107 # Support "outfile[:infile[:infile...]]"
23108 case "$ac_file" in
23109 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
23110 esac
23111 # PO directories have a Makefile.in generated from Makefile.in.in.
23112 case "$ac_file" in */Makefile.in)
23113 # Adjust a relative srcdir.
23114 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
23115 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
23116 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
23117 # In autoconf-2.13 it is called $ac_given_srcdir.
23118 # In autoconf-2.50 it is called $srcdir.
23119 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
23120 case "$ac_given_srcdir" in
23121 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
23122 /*) top_srcdir="$ac_given_srcdir" ;;
23123 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
23124 esac
23125 # Treat a directory as a PO directory if and only if it has a
23126 # POTFILES.in file. This allows packages to have multiple PO
23127 # directories under different names or in different locations.
23128 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
23129 rm -f "$ac_dir/POTFILES"
23130 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
23131 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
23132 POMAKEFILEDEPS="POTFILES.in"
23133 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
23134 # on $ac_dir but don't depend on user-specified configuration
23135 # parameters.
23136 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
23137 # The LINGUAS file contains the set of available languages.
23138 if test -n "$OBSOLETE_ALL_LINGUAS"; then
23139 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
23141 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
23142 # Hide the ALL_LINGUAS assigment from automake < 1.5.
23143 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
23144 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
23145 else
23146 # The set of available languages was given in configure.in.
23147 # Hide the ALL_LINGUAS assigment from automake < 1.5.
23148 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
23150 # Compute POFILES
23151 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
23152 # Compute UPDATEPOFILES
23153 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
23154 # Compute DUMMYPOFILES
23155 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
23156 # Compute GMOFILES
23157 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
23158 case "$ac_given_srcdir" in
23159 .) srcdirpre= ;;
23160 *) srcdirpre='$(srcdir)/' ;;
23161 esac
23162 POFILES=
23163 UPDATEPOFILES=
23164 DUMMYPOFILES=
23165 GMOFILES=
23166 for lang in $ALL_LINGUAS; do
23167 POFILES="$POFILES $srcdirpre$lang.po"
23168 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
23169 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
23170 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
23171 done
23172 # CATALOGS depends on both $ac_dir and the user's LINGUAS
23173 # environment variable.
23174 INST_LINGUAS=
23175 if test -n "$ALL_LINGUAS"; then
23176 for presentlang in $ALL_LINGUAS; do
23177 useit=no
23178 if test "%UNSET%" != "$LINGUAS"; then
23179 desiredlanguages="$LINGUAS"
23180 else
23181 desiredlanguages="$ALL_LINGUAS"
23183 for desiredlang in $desiredlanguages; do
23184 # Use the presentlang catalog if desiredlang is
23185 # a. equal to presentlang, or
23186 # b. a variant of presentlang (because in this case,
23187 # presentlang can be used as a fallback for messages
23188 # which are not translated in the desiredlang catalog).
23189 case "$desiredlang" in
23190 "$presentlang"*) useit=yes;;
23191 esac
23192 done
23193 if test $useit = yes; then
23194 INST_LINGUAS="$INST_LINGUAS $presentlang"
23196 done
23198 CATALOGS=
23199 if test -n "$INST_LINGUAS"; then
23200 for lang in $INST_LINGUAS; do
23201 CATALOGS="$CATALOGS $lang.gmo"
23202 done
23204 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
23205 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"
23206 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
23207 if test -f "$f"; then
23208 case "$f" in
23209 *.orig | *.bak | *~) ;;
23210 *) cat "$f" >> "$ac_dir/Makefile" ;;
23211 esac
23213 done
23216 esac
23217 done ;;
23219 esac
23220 done # for ac_tag
23223 as_fn_exit 0
23224 _ACEOF
23225 ac_clean_files=$ac_clean_files_save
23227 test $ac_write_fail = 0 ||
23228 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
23231 # configure is writing to config.log, and then calls config.status.
23232 # config.status does its own redirection, appending to config.log.
23233 # Unfortunately, on DOS this fails, as config.log is still kept open
23234 # by configure, so config.status won't be able to write to it; its
23235 # output is simply discarded. So we exec the FD to /dev/null,
23236 # effectively closing config.log, so it can be properly (re)opened and
23237 # appended to by config.status. When coming back to configure, we
23238 # need to make the FD available again.
23239 if test "$no_create" != yes; then
23240 ac_cs_success=:
23241 ac_config_status_args=
23242 test "$silent" = yes &&
23243 ac_config_status_args="$ac_config_status_args --quiet"
23244 exec 5>/dev/null
23245 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23246 exec 5>>config.log
23247 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23248 # would make configure fail if this is the last instruction.
23249 $ac_cs_success || as_fn_exit 1
23251 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23252 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23253 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}