* New version 2.19.8
[alpine.git] / configure
blob46b7bf3d28b5a7733e9b9e7212f411ea1a686914
1 #! /bin/sh
2 # From configure.ac Rev:9 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.8.
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
202 test \$(( 1 + 1 )) = 2 || exit 1"
203 if (eval "$as_required") 2>/dev/null; then :
204 as_have_required=yes
205 else
206 as_have_required=no
208 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
210 else
211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
212 as_found=false
213 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
215 IFS=$as_save_IFS
216 test -z "$as_dir" && as_dir=.
217 as_found=:
218 case $as_dir in #(
220 for as_base in sh bash ksh sh5; do
221 # Try only shells that exist, to save several forks.
222 as_shell=$as_dir/$as_base
223 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
224 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
225 CONFIG_SHELL=$as_shell as_have_required=yes
226 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
227 break 2
230 done;;
231 esac
232 as_found=false
233 done
234 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
235 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
236 CONFIG_SHELL=$SHELL as_have_required=yes
237 fi; }
238 IFS=$as_save_IFS
241 if test "x$CONFIG_SHELL" != x; then :
242 export CONFIG_SHELL
243 # We cannot yet assume a decent shell, so we have to provide a
244 # neutralization value for shells without unset; and this also
245 # works around shells that cannot unset nonexistent variables.
246 # Preserve -v and -x to the replacement shell.
247 BASH_ENV=/dev/null
248 ENV=/dev/null
249 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
250 case $- in # ((((
251 *v*x* | *x*v* ) as_opts=-vx ;;
252 *v* ) as_opts=-v ;;
253 *x* ) as_opts=-x ;;
254 * ) as_opts= ;;
255 esac
256 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
257 # Admittedly, this is quite paranoid, since all the known shells bail
258 # out after a failed `exec'.
259 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
260 exit 255
263 if test x$as_have_required = xno; then :
264 $as_echo "$0: This script requires a shell more modern than all"
265 $as_echo "$0: the shells that I found on your system."
266 if test x${ZSH_VERSION+set} = xset ; then
267 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
268 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
269 else
270 $as_echo "$0: Please tell bug-autoconf@gnu.org and
271 $0: chappa@washington.edu about your system, including any
272 $0: error possibly output before this message. Then install
273 $0: a modern shell, or manually run the script under such a
274 $0: shell if you do have one."
276 exit 1
280 SHELL=${CONFIG_SHELL-/bin/sh}
281 export SHELL
282 # Unset more variables known to interfere with behavior of common tools.
283 CLICOLOR_FORCE= GREP_OPTIONS=
284 unset CLICOLOR_FORCE GREP_OPTIONS
286 ## --------------------- ##
287 ## M4sh Shell Functions. ##
288 ## --------------------- ##
289 # as_fn_unset VAR
290 # ---------------
291 # Portably unset VAR.
292 as_fn_unset ()
294 { eval $1=; unset $1;}
296 as_unset=as_fn_unset
298 # as_fn_set_status STATUS
299 # -----------------------
300 # Set $? to STATUS, without forking.
301 as_fn_set_status ()
303 return $1
304 } # as_fn_set_status
306 # as_fn_exit STATUS
307 # -----------------
308 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
309 as_fn_exit ()
311 set +e
312 as_fn_set_status $1
313 exit $1
314 } # as_fn_exit
316 # as_fn_mkdir_p
317 # -------------
318 # Create "$as_dir" as a directory, including parents if necessary.
319 as_fn_mkdir_p ()
322 case $as_dir in #(
323 -*) as_dir=./$as_dir;;
324 esac
325 test -d "$as_dir" || eval $as_mkdir_p || {
326 as_dirs=
327 while :; do
328 case $as_dir in #(
329 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
330 *) as_qdir=$as_dir;;
331 esac
332 as_dirs="'$as_qdir' $as_dirs"
333 as_dir=`$as_dirname -- "$as_dir" ||
334 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
335 X"$as_dir" : 'X\(//\)[^/]' \| \
336 X"$as_dir" : 'X\(//\)$' \| \
337 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
338 $as_echo X"$as_dir" |
339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
340 s//\1/
343 /^X\(\/\/\)[^/].*/{
344 s//\1/
347 /^X\(\/\/\)$/{
348 s//\1/
351 /^X\(\/\).*/{
352 s//\1/
355 s/.*/./; q'`
356 test -d "$as_dir" && break
357 done
358 test -z "$as_dirs" || eval "mkdir $as_dirs"
359 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
362 } # as_fn_mkdir_p
364 # as_fn_executable_p FILE
365 # -----------------------
366 # Test if FILE is an executable regular file.
367 as_fn_executable_p ()
369 test -f "$1" && test -x "$1"
370 } # as_fn_executable_p
371 # as_fn_append VAR VALUE
372 # ----------------------
373 # Append the text in VALUE to the end of the definition contained in VAR. Take
374 # advantage of any shell optimizations that allow amortized linear growth over
375 # repeated appends, instead of the typical quadratic growth present in naive
376 # implementations.
377 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
378 eval 'as_fn_append ()
380 eval $1+=\$2
382 else
383 as_fn_append ()
385 eval $1=\$$1\$2
387 fi # as_fn_append
389 # as_fn_arith ARG...
390 # ------------------
391 # Perform arithmetic evaluation on the ARGs, and store the result in the
392 # global $as_val. Take advantage of shells that can avoid forks. The arguments
393 # must be portable across $(()) and expr.
394 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
395 eval 'as_fn_arith ()
397 as_val=$(( $* ))
399 else
400 as_fn_arith ()
402 as_val=`expr "$@" || test $? -eq 1`
404 fi # as_fn_arith
407 # as_fn_error STATUS ERROR [LINENO LOG_FD]
408 # ----------------------------------------
409 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
410 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
411 # script with STATUS, using 1 if that was 0.
412 as_fn_error ()
414 as_status=$1; test $as_status -eq 0 && as_status=1
415 if test "$4"; then
416 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
417 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
419 $as_echo "$as_me: error: $2" >&2
420 as_fn_exit $as_status
421 } # as_fn_error
423 if expr a : '\(a\)' >/dev/null 2>&1 &&
424 test "X`expr 00001 : '.*\(...\)'`" = X001; then
425 as_expr=expr
426 else
427 as_expr=false
430 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
431 as_basename=basename
432 else
433 as_basename=false
436 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
437 as_dirname=dirname
438 else
439 as_dirname=false
442 as_me=`$as_basename -- "$0" ||
443 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
444 X"$0" : 'X\(//\)$' \| \
445 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
446 $as_echo X/"$0" |
447 sed '/^.*\/\([^/][^/]*\)\/*$/{
448 s//\1/
451 /^X\/\(\/\/\)$/{
452 s//\1/
455 /^X\/\(\/\).*/{
456 s//\1/
459 s/.*/./; q'`
461 # Avoid depending upon Character Ranges.
462 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
463 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
464 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
465 as_cr_digits='0123456789'
466 as_cr_alnum=$as_cr_Letters$as_cr_digits
469 as_lineno_1=$LINENO as_lineno_1a=$LINENO
470 as_lineno_2=$LINENO as_lineno_2a=$LINENO
471 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
472 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
473 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
474 sed -n '
476 /[$]LINENO/=
477 ' <$as_myself |
478 sed '
479 s/[$]LINENO.*/&-/
480 t lineno
482 :lineno
484 :loop
485 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
486 t loop
487 s/-\n.*//
488 ' >$as_me.lineno &&
489 chmod +x "$as_me.lineno" ||
490 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
492 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
493 # already done that, so ensure we don't try to do so again and fall
494 # in an infinite loop. This has already happened in practice.
495 _as_can_reexec=no; export _as_can_reexec
496 # Don't try to exec as it changes $[0], causing all sort of problems
497 # (the dirname of $[0] is not the place where we might find the
498 # original and so on. Autoconf is especially sensitive to this).
499 . "./$as_me.lineno"
500 # Exit status is that of the last command.
501 exit
504 ECHO_C= ECHO_N= ECHO_T=
505 case `echo -n x` in #(((((
506 -n*)
507 case `echo 'xy\c'` in
508 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
509 xy) ECHO_C='\c';;
510 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
511 ECHO_T=' ';;
512 esac;;
514 ECHO_N='-n';;
515 esac
517 rm -f conf$$ conf$$.exe conf$$.file
518 if test -d conf$$.dir; then
519 rm -f conf$$.dir/conf$$.file
520 else
521 rm -f conf$$.dir
522 mkdir conf$$.dir 2>/dev/null
524 if (echo >conf$$.file) 2>/dev/null; then
525 if ln -s conf$$.file conf$$ 2>/dev/null; then
526 as_ln_s='ln -s'
527 # ... but there are two gotchas:
528 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
529 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
530 # In both cases, we have to default to `cp -pR'.
531 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
532 as_ln_s='cp -pR'
533 elif ln conf$$.file conf$$ 2>/dev/null; then
534 as_ln_s=ln
535 else
536 as_ln_s='cp -pR'
538 else
539 as_ln_s='cp -pR'
541 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
542 rmdir conf$$.dir 2>/dev/null
544 if mkdir -p . 2>/dev/null; then
545 as_mkdir_p='mkdir -p "$as_dir"'
546 else
547 test -d ./-p && rmdir ./-p
548 as_mkdir_p=false
551 as_test_x='test -x'
552 as_executable_p=as_fn_executable_p
554 # Sed expression to map a string onto a valid CPP name.
555 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
557 # Sed expression to map a string onto a valid variable name.
558 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
562 # Check that we are running under the correct shell.
563 SHELL=${CONFIG_SHELL-/bin/sh}
565 case X$lt_ECHO in
566 X*--fallback-echo)
567 # Remove one level of quotation (which was required for Make).
568 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
570 esac
572 ECHO=${lt_ECHO-echo}
573 if test "X$1" = X--no-reexec; then
574 # Discard the --no-reexec flag, and continue.
575 shift
576 elif test "X$1" = X--fallback-echo; then
577 # Avoid inline document here, it may be left over
579 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
580 # Yippee, $ECHO works!
582 else
583 # Restart under the correct shell.
584 exec $SHELL "$0" --no-reexec ${1+"$@"}
587 if test "X$1" = X--fallback-echo; then
588 # used as fallback echo
589 shift
590 cat <<_LT_EOF
592 _LT_EOF
593 exit 0
596 # The HP-UX ksh and POSIX shell print the target directory to stdout
597 # if CDPATH is set.
598 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
600 if test -z "$lt_ECHO"; then
601 if test "X${echo_test_string+set}" != Xset; then
602 # find a string as large as possible, as long as the shell can cope with it
603 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
604 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
605 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
606 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
607 then
608 break
610 done
613 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
614 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
615 test "X$echo_testing_string" = "X$echo_test_string"; then
617 else
618 # The Solaris, AIX, and Digital Unix default echo programs unquote
619 # backslashes. This makes it impossible to quote backslashes using
620 # echo "$something" | sed 's/\\/\\\\/g'
622 # So, first we look for a working echo in the user's PATH.
624 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
625 for dir in $PATH /usr/ucb; do
626 IFS="$lt_save_ifs"
627 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
628 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
629 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
630 test "X$echo_testing_string" = "X$echo_test_string"; then
631 ECHO="$dir/echo"
632 break
634 done
635 IFS="$lt_save_ifs"
637 if test "X$ECHO" = Xecho; then
638 # We didn't find a better echo, so look for alternatives.
639 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
640 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
641 test "X$echo_testing_string" = "X$echo_test_string"; then
642 # This shell has a builtin print -r that does the trick.
643 ECHO='print -r'
644 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
645 test "X$CONFIG_SHELL" != X/bin/ksh; then
646 # If we have ksh, try running configure again with it.
647 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
648 export ORIGINAL_CONFIG_SHELL
649 CONFIG_SHELL=/bin/ksh
650 export CONFIG_SHELL
651 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
652 else
653 # Try using printf.
654 ECHO='printf %s\n'
655 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
656 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
657 test "X$echo_testing_string" = "X$echo_test_string"; then
658 # Cool, printf works
660 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
661 test "X$echo_testing_string" = 'X\t' &&
662 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
663 test "X$echo_testing_string" = "X$echo_test_string"; then
664 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
665 export CONFIG_SHELL
666 SHELL="$CONFIG_SHELL"
667 export SHELL
668 ECHO="$CONFIG_SHELL $0 --fallback-echo"
669 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
670 test "X$echo_testing_string" = 'X\t' &&
671 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
672 test "X$echo_testing_string" = "X$echo_test_string"; then
673 ECHO="$CONFIG_SHELL $0 --fallback-echo"
674 else
675 # maybe with a smaller string...
676 prev=:
678 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
679 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
680 then
681 break
683 prev="$cmd"
684 done
686 if test "$prev" != 'sed 50q "$0"'; then
687 echo_test_string=`eval $prev`
688 export echo_test_string
689 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
690 else
691 # Oops. We lost completely, so just stick with echo.
692 ECHO=echo
700 # Copy echo and quote the copy suitably for passing to libtool from
701 # the Makefile, instead of quoting the original, which is used later.
702 lt_ECHO=$ECHO
703 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
704 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
710 test -n "$DJDIR" || exec 7<&0 </dev/null
711 exec 6>&1
713 # Name of the host.
714 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
715 # so uname gets run too.
716 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
719 # Initializations.
721 ac_default_prefix=/usr/local
722 ac_clean_files=
723 ac_config_libobj_dir=.
724 LIBOBJS=
725 cross_compiling=no
726 subdirs=
727 MFLAGS=
728 MAKEFLAGS=
730 # Identity of this package.
731 PACKAGE_NAME='alpine'
732 PACKAGE_TARNAME='alpine'
733 PACKAGE_VERSION='2.19.8'
734 PACKAGE_STRING='alpine 2.19.8'
735 PACKAGE_BUGREPORT='chappa@washington.edu'
736 PACKAGE_URL=''
738 ac_unique_file="include/system.h"
739 # Factoring default headers for most tests.
740 ac_includes_default="\
741 #include <stdio.h>
742 #ifdef HAVE_SYS_TYPES_H
743 # include <sys/types.h>
744 #endif
745 #ifdef HAVE_SYS_STAT_H
746 # include <sys/stat.h>
747 #endif
748 #ifdef STDC_HEADERS
749 # include <stdlib.h>
750 # include <stddef.h>
751 #else
752 # ifdef HAVE_STDLIB_H
753 # include <stdlib.h>
754 # endif
755 #endif
756 #ifdef HAVE_STRING_H
757 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
758 # include <memory.h>
759 # endif
760 # include <string.h>
761 #endif
762 #ifdef HAVE_STRINGS_H
763 # include <strings.h>
764 #endif
765 #ifdef HAVE_INTTYPES_H
766 # include <inttypes.h>
767 #endif
768 #ifdef HAVE_STDINT_H
769 # include <stdint.h>
770 #endif
771 #ifdef HAVE_UNISTD_H
772 # include <unistd.h>
773 #endif"
775 gt_needs=
776 ac_subst_vars='am__EXEEXT_FALSE
777 am__EXEEXT_TRUE
778 LTLIBOBJS
779 LIBOBJS
780 AM_LDFLAGS
781 AM_CFLAGS
782 WEB_PUBCOOKIE_LINK
783 WEB_PUBCOOKIE_LIB
784 WEB_PUBCOOKIE_BUILD
785 WEB_BINDIR
786 WEB_BUILD
787 REGEX_BUILD
788 C_CLIENT_SPECIALS
789 C_CLIENT_GCCOPTLEVEL
790 C_CLIENT_LDFLAGS
791 C_CLIENT_CFLAGS
792 C_CLIENT_WITH_IPV6
793 C_CLIENT_TARGET
794 PTHREAD_CFLAGS
795 PTHREAD_LIBS
796 PTHREAD_CC
797 acx_pthread_config
798 alpine_interactive_spellcheck
799 ISPELLPROG
800 alpine_simple_spellcheck
801 SPELLPROG
802 PWPROG
803 NPA_PROG
804 SENDMAIL
805 POSUB
806 LTLIBINTL
807 LIBINTL
808 INTLLIBS
809 LTLIBICONV
810 LIBICONV
811 INTL_MACOSX_LIBS
812 MSGMERGE
813 XGETTEXT_015
814 XGETTEXT
815 GMSGFMT_015
816 MSGFMT_015
817 GMSGFMT
818 MSGFMT
819 USE_NLS
820 MAKE
825 LIBTOOL_DEPS
827 OTOOL64
828 OTOOL
829 LIPO
830 NMEDIT
831 DSYMUTIL
832 lt_ECHO
834 OBJDUMP
836 ac_ct_DUMPBIN
837 DUMPBIN
839 FGREP
840 EGREP
841 GREP
843 LIBTOOL
844 RANLIB
845 LN_S
846 am__fastdepCC_FALSE
847 am__fastdepCC_TRUE
848 CCDEPMODE
849 AMDEPBACKSLASH
850 AMDEP_FALSE
851 AMDEP_TRUE
852 am__quote
853 am__include
854 DEPDIR
855 OBJEXT
856 EXEEXT
857 ac_ct_CC
858 CPPFLAGS
859 LDFLAGS
860 CFLAGS
862 host_os
863 host_vendor
864 host_cpu
865 host
866 build_os
867 build_vendor
868 build_cpu
869 build
870 MAINT
871 MAINTAINER_MODE_FALSE
872 MAINTAINER_MODE_TRUE
873 am__untar
874 am__tar
875 AMTAR
876 am__leading_dot
877 SET_MAKE
879 mkdir_p
880 MKDIR_P
881 INSTALL_STRIP_PROGRAM
882 STRIP
883 install_sh
884 MAKEINFO
885 AUTOHEADER
886 AUTOMAKE
887 AUTOCONF
888 ACLOCAL
889 VERSION
890 PACKAGE
891 CYGPATH_W
892 am__isrc
893 INSTALL_DATA
894 INSTALL_SCRIPT
895 INSTALL_PROGRAM
896 target_alias
897 host_alias
898 build_alias
899 LIBS
900 ECHO_T
901 ECHO_N
902 ECHO_C
903 DEFS
904 mandir
905 localedir
906 libdir
907 psdir
908 pdfdir
909 dvidir
910 htmldir
911 infodir
912 docdir
913 oldIncludedir
914 Includedir
915 localstatedir
916 sharedstatedir
917 sysconfdir
918 datadir
919 datarootdir
920 libexecdir
921 sbindir
922 bindir
923 program_transform_name
924 prefix
925 exec_prefix
926 PACKAGE_URL
927 PACKAGE_BUGREPORT
928 PACKAGE_STRING
929 PACKAGE_VERSION
930 PACKAGE_TARNAME
931 PACKAGE_NAME
932 PATH_SEPARATOR
933 SHELL'
934 ac_subst_files=''
935 ac_user_opts='
936 enable_option_checking
937 enable_maintainer_mode
938 enable_dependency_tracking
939 enable_shared
940 enable_static
941 with_pic
942 enable_fast_install
943 with_gnu_ld
944 enable_libtool_lock
945 enable_nls
946 enable_rpath
947 with_libiconv_prefix
948 with_libintl_prefix
949 enable_dmalloc
950 with_dmalloc_dir
951 with_ps_cmd
952 with_localedir
953 enable_osx_universal_binaries
954 with_include_path
955 with_lib_path
956 with_pubcookie
957 with_web_bin
958 enable_debug
959 enable_optimization
960 enable_mouse
961 enable_quotas
962 enable_from_changing
963 enable_background_post
964 enable_keyboard_lock
965 enable_from_encoding
966 with_smtp_msa
967 with_smtp_msa_flags
968 with_npa
969 with_npa_flags
970 with_password_prog
971 with_simple_spellcheck
972 with_interactive_spellcheck
973 with_system_pinerc
974 with_system_fixed_pinerc
975 with_local_support_info
976 with_mailcheck_interval
977 with_checkpoint_interval
978 with_checkpoint_frequency
979 with_display_rows
980 with_display_columns
981 with_max_display_rows
982 with_max_display_columns
983 with_fill_column
984 with_max_fill_column
985 with_debug_level
986 with_debug_files
987 with_debug_file
988 with_forwarded_keyword
989 with_display_overlap
990 with_display_margin
991 with_default_fcc
992 with_default_save_folder
993 with_default_legacy_postponed_folder
994 with_default_postponed_folder
995 with_default_trash_folder
996 with_default_interrupted_mail
997 with_default_dead_letter_folder
998 with_default_mail_directory
999 with_default_inbox_name
1000 with_default_signature_file
1001 with_default_elm_style_save
1002 with_default_header_in_reply
1003 with_default_old_style_reply
1004 with_default_use_only_domain_name
1005 with_default_save_by_sender
1006 with_default_sort_key
1007 with_default_addressbook_sort_rule
1008 with_default_folder_sort_rule
1009 with_default_saved_message_name_rule
1010 with_default_fcc_rule
1011 with_default_standard_printer
1012 with_default_ansi_printer
1013 with_default_addressbook
1014 with_default_local_fullname
1015 with_default_local_address
1016 with_default_keyboard_lock_count
1017 with_default_remote_addressbook_history
1018 with_smime_public_cert_directory
1019 with_smime_private_key_directory
1020 with_smime_cacert_directory
1021 with_default_printer
1022 with_passfile
1023 with_local_password_cache
1024 with_local_password_cache_method
1025 with_default_sshpath
1026 with_default_sshcmd
1027 with_ssl
1028 with_ssl_dir
1029 with_ssl_certs_dir
1030 with_ssl_include_dir
1031 with_ssl_lib_dir
1032 with_krb5
1033 with_krb5_dir
1034 with_krb5_include_dir
1035 with_krb5_lib_dir
1036 with_ldap
1037 with_ldap_dir
1038 with_ldap_include_dir
1039 with_ldap_lib_dir
1040 with_smime
1041 with_tcl
1042 with_tcl_lib
1043 with_tcl_include
1044 with_supplied_regex
1045 with_pthread
1046 with_system_mail_directory
1047 with_c_client_target
1048 with_ipv6
1050 ac_precious_vars='build_alias
1051 host_alias
1052 target_alias
1054 CFLAGS
1055 LDFLAGS
1056 LIBS
1057 CPPFLAGS
1058 CPP'
1061 # Initialize some variables set by options.
1062 ac_init_help=
1063 ac_init_version=false
1064 ac_unrecognized_opts=
1065 ac_unrecognized_sep=
1066 # The variables have the same names as the options, with
1067 # dashes changed to underlines.
1068 cache_file=/dev/null
1069 exec_prefix=NONE
1070 no_create=
1071 no_recursion=
1072 prefix=NONE
1073 program_prefix=NONE
1074 program_suffix=NONE
1075 program_transform_name=s,x,x,
1076 silent=
1077 site=
1078 srcdir=
1079 verbose=
1080 x_includes=NONE
1081 x_libraries=NONE
1083 # Installation directory options.
1084 # These are left unexpanded so users can "make install exec_prefix=/foo"
1085 # and all the variables that are supposed to be based on exec_prefix
1086 # by default will actually change.
1087 # Use braces instead of parens because sh, perl, etc. also accept them.
1088 # (The list follows the same order as the GNU Coding Standards.)
1089 bindir='${exec_prefix}/bin'
1090 sbindir='${exec_prefix}/sbin'
1091 libexecdir='${exec_prefix}/libexec'
1092 datarootdir='${prefix}/share'
1093 datadir='${datarootdir}'
1094 sysconfdir='${prefix}/etc'
1095 sharedstatedir='${prefix}/com'
1096 localstatedir='${prefix}/var'
1097 Includedir='${prefix}/include'
1098 oldIncludedir='/usr/include'
1099 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1100 infodir='${datarootdir}/info'
1101 htmldir='${docdir}'
1102 dvidir='${docdir}'
1103 pdfdir='${docdir}'
1104 psdir='${docdir}'
1105 libdir='${exec_prefix}/lib'
1106 localedir='${datarootdir}/locale'
1107 mandir='${datarootdir}/man'
1109 ac_prev=
1110 ac_dashdash=
1111 for ac_option
1113 # If the previous option needs an argument, assign it.
1114 if test -n "$ac_prev"; then
1115 eval $ac_prev=\$ac_option
1116 ac_prev=
1117 continue
1120 case $ac_option in
1121 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1122 *=) ac_optarg= ;;
1123 *) ac_optarg=yes ;;
1124 esac
1126 # Accept the important Cygnus configure options, so we can diagnose typos.
1128 case $ac_dashdash$ac_option in
1130 ac_dashdash=yes ;;
1132 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1133 ac_prev=bindir ;;
1134 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1135 bindir=$ac_optarg ;;
1137 -build | --build | --buil | --bui | --bu)
1138 ac_prev=build_alias ;;
1139 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1140 build_alias=$ac_optarg ;;
1142 -cache-file | --cache-file | --cache-fil | --cache-fi \
1143 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1144 ac_prev=cache_file ;;
1145 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1146 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1147 cache_file=$ac_optarg ;;
1149 --config-cache | -C)
1150 cache_file=config.cache ;;
1152 -datadir | --datadir | --datadi | --datad)
1153 ac_prev=datadir ;;
1154 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1155 datadir=$ac_optarg ;;
1157 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1158 | --dataroo | --dataro | --datar)
1159 ac_prev=datarootdir ;;
1160 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1161 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1162 datarootdir=$ac_optarg ;;
1164 -disable-* | --disable-*)
1165 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1166 # Reject names that are not valid shell variable names.
1167 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1168 as_fn_error $? "invalid feature name: $ac_useropt"
1169 ac_useropt_orig=$ac_useropt
1170 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1171 case $ac_user_opts in
1173 "enable_$ac_useropt"
1174 "*) ;;
1175 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1176 ac_unrecognized_sep=', ';;
1177 esac
1178 eval enable_$ac_useropt=no ;;
1180 -docdir | --docdir | --docdi | --doc | --do)
1181 ac_prev=docdir ;;
1182 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1183 docdir=$ac_optarg ;;
1185 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1186 ac_prev=dvidir ;;
1187 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1188 dvidir=$ac_optarg ;;
1190 -enable-* | --enable-*)
1191 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1192 # Reject names that are not valid shell variable names.
1193 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1194 as_fn_error $? "invalid feature name: $ac_useropt"
1195 ac_useropt_orig=$ac_useropt
1196 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1197 case $ac_user_opts in
1199 "enable_$ac_useropt"
1200 "*) ;;
1201 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1202 ac_unrecognized_sep=', ';;
1203 esac
1204 eval enable_$ac_useropt=\$ac_optarg ;;
1206 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1207 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1208 | --exec | --exe | --ex)
1209 ac_prev=exec_prefix ;;
1210 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1211 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1212 | --exec=* | --exe=* | --ex=*)
1213 exec_prefix=$ac_optarg ;;
1215 -gas | --gas | --ga | --g)
1216 # Obsolete; use --with-gas.
1217 with_gas=yes ;;
1219 -help | --help | --hel | --he | -h)
1220 ac_init_help=long ;;
1221 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1222 ac_init_help=recursive ;;
1223 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1224 ac_init_help=short ;;
1226 -host | --host | --hos | --ho)
1227 ac_prev=host_alias ;;
1228 -host=* | --host=* | --hos=* | --ho=*)
1229 host_alias=$ac_optarg ;;
1231 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1232 ac_prev=htmldir ;;
1233 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1234 | --ht=*)
1235 htmldir=$ac_optarg ;;
1237 -Includedir | --includedir | --includedi | --included | --include \
1238 | --includ | --inclu | --incl | --inc)
1239 ac_prev=Includedir ;;
1240 -Includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1241 | --includ=* | --inclu=* | --incl=* | --inc=*)
1242 Includedir=$ac_optarg ;;
1244 -infodir | --infodir | --infodi | --infod | --info | --inf)
1245 ac_prev=infodir ;;
1246 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1247 infodir=$ac_optarg ;;
1249 -libdir | --libdir | --libdi | --libd)
1250 ac_prev=libdir ;;
1251 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1252 libdir=$ac_optarg ;;
1254 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1255 | --libexe | --libex | --libe)
1256 ac_prev=libexecdir ;;
1257 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1258 | --libexe=* | --libex=* | --libe=*)
1259 libexecdir=$ac_optarg ;;
1261 -localedir | --localedir | --localedi | --localed | --locale)
1262 ac_prev=localedir ;;
1263 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1264 localedir=$ac_optarg ;;
1266 -localstatedir | --localstatedir | --localstatedi | --localstated \
1267 | --localstate | --localstat | --localsta | --localst | --locals)
1268 ac_prev=localstatedir ;;
1269 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1270 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1271 localstatedir=$ac_optarg ;;
1273 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1274 ac_prev=mandir ;;
1275 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1276 mandir=$ac_optarg ;;
1278 -nfp | --nfp | --nf)
1279 # Obsolete; use --without-fp.
1280 with_fp=no ;;
1282 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1283 | --no-cr | --no-c | -n)
1284 no_create=yes ;;
1286 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1287 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1288 no_recursion=yes ;;
1290 -oldIncludedir | --oldincludedir | --oldincludedi | --oldincluded \
1291 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1292 | --oldin | --oldi | --old | --ol | --o)
1293 ac_prev=oldIncludedir ;;
1294 -oldIncludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1295 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1296 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1297 oldIncludedir=$ac_optarg ;;
1299 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1300 ac_prev=prefix ;;
1301 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1302 prefix=$ac_optarg ;;
1304 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1305 | --program-pre | --program-pr | --program-p)
1306 ac_prev=program_prefix ;;
1307 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1308 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1309 program_prefix=$ac_optarg ;;
1311 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1312 | --program-suf | --program-su | --program-s)
1313 ac_prev=program_suffix ;;
1314 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1315 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1316 program_suffix=$ac_optarg ;;
1318 -program-transform-name | --program-transform-name \
1319 | --program-transform-nam | --program-transform-na \
1320 | --program-transform-n | --program-transform- \
1321 | --program-transform | --program-transfor \
1322 | --program-transfo | --program-transf \
1323 | --program-trans | --program-tran \
1324 | --progr-tra | --program-tr | --program-t)
1325 ac_prev=program_transform_name ;;
1326 -program-transform-name=* | --program-transform-name=* \
1327 | --program-transform-nam=* | --program-transform-na=* \
1328 | --program-transform-n=* | --program-transform-=* \
1329 | --program-transform=* | --program-transfor=* \
1330 | --program-transfo=* | --program-transf=* \
1331 | --program-trans=* | --program-tran=* \
1332 | --progr-tra=* | --program-tr=* | --program-t=*)
1333 program_transform_name=$ac_optarg ;;
1335 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1336 ac_prev=pdfdir ;;
1337 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1338 pdfdir=$ac_optarg ;;
1340 -psdir | --psdir | --psdi | --psd | --ps)
1341 ac_prev=psdir ;;
1342 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1343 psdir=$ac_optarg ;;
1345 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1346 | -silent | --silent | --silen | --sile | --sil)
1347 silent=yes ;;
1349 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1350 ac_prev=sbindir ;;
1351 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1352 | --sbi=* | --sb=*)
1353 sbindir=$ac_optarg ;;
1355 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1356 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1357 | --sharedst | --shareds | --shared | --share | --shar \
1358 | --sha | --sh)
1359 ac_prev=sharedstatedir ;;
1360 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1361 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1362 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1363 | --sha=* | --sh=*)
1364 sharedstatedir=$ac_optarg ;;
1366 -site | --site | --sit)
1367 ac_prev=site ;;
1368 -site=* | --site=* | --sit=*)
1369 site=$ac_optarg ;;
1371 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1372 ac_prev=srcdir ;;
1373 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1374 srcdir=$ac_optarg ;;
1376 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1377 | --syscon | --sysco | --sysc | --sys | --sy)
1378 ac_prev=sysconfdir ;;
1379 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1380 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1381 sysconfdir=$ac_optarg ;;
1383 -target | --target | --targe | --targ | --tar | --ta | --t)
1384 ac_prev=target_alias ;;
1385 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1386 target_alias=$ac_optarg ;;
1388 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1389 verbose=yes ;;
1391 -version | --version | --versio | --versi | --vers | -V)
1392 ac_init_version=: ;;
1394 -with-* | --with-*)
1395 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1396 # Reject names that are not valid shell variable names.
1397 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1398 as_fn_error $? "invalid package name: $ac_useropt"
1399 ac_useropt_orig=$ac_useropt
1400 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1401 case $ac_user_opts in
1403 "with_$ac_useropt"
1404 "*) ;;
1405 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1406 ac_unrecognized_sep=', ';;
1407 esac
1408 eval with_$ac_useropt=\$ac_optarg ;;
1410 -without-* | --without-*)
1411 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1412 # Reject names that are not valid shell variable names.
1413 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1414 as_fn_error $? "invalid package name: $ac_useropt"
1415 ac_useropt_orig=$ac_useropt
1416 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1417 case $ac_user_opts in
1419 "with_$ac_useropt"
1420 "*) ;;
1421 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1422 ac_unrecognized_sep=', ';;
1423 esac
1424 eval with_$ac_useropt=no ;;
1426 --x)
1427 # Obsolete; use --with-x.
1428 with_x=yes ;;
1430 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1431 | --x-incl | --x-inc | --x-in | --x-i)
1432 ac_prev=x_includes ;;
1433 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1434 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1435 x_includes=$ac_optarg ;;
1437 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1438 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1439 ac_prev=x_libraries ;;
1440 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1441 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1442 x_libraries=$ac_optarg ;;
1444 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1445 Try \`$0 --help' for more information"
1448 *=*)
1449 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1450 # Reject names that are not valid shell variable names.
1451 case $ac_envvar in #(
1452 '' | [0-9]* | *[!_$as_cr_alnum]* )
1453 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1454 esac
1455 eval $ac_envvar=\$ac_optarg
1456 export $ac_envvar ;;
1459 # FIXME: should be removed in autoconf 3.0.
1460 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1461 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1462 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1463 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1466 esac
1467 done
1469 if test -n "$ac_prev"; then
1470 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1471 as_fn_error $? "missing argument to $ac_option"
1474 if test -n "$ac_unrecognized_opts"; then
1475 case $enable_option_checking in
1476 no) ;;
1477 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1478 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1479 esac
1482 # Check all directory arguments for consistency.
1483 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1484 datadir sysconfdir sharedstatedir localstatedir Includedir \
1485 oldIncludedir docdir infodir htmldir dvidir pdfdir psdir \
1486 libdir localedir mandir
1488 eval ac_val=\$$ac_var
1489 # Remove trailing slashes.
1490 case $ac_val in
1491 */ )
1492 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1493 eval $ac_var=\$ac_val;;
1494 esac
1495 # Be sure to have absolute directory names.
1496 case $ac_val in
1497 [\\/$]* | ?:[\\/]* ) continue;;
1498 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1499 esac
1500 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1501 done
1503 # There might be people who depend on the old broken behavior: `$host'
1504 # used to hold the argument of --host etc.
1505 # FIXME: To remove some day.
1506 build=$build_alias
1507 host=$host_alias
1508 target=$target_alias
1510 # FIXME: To remove some day.
1511 if test "x$host_alias" != x; then
1512 if test "x$build_alias" = x; then
1513 cross_compiling=maybe
1514 elif test "x$build_alias" != "x$host_alias"; then
1515 cross_compiling=yes
1519 ac_tool_prefix=
1520 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1522 test "$silent" = yes && exec 6>/dev/null
1525 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1526 ac_ls_di=`ls -di .` &&
1527 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1528 as_fn_error $? "working directory cannot be determined"
1529 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1530 as_fn_error $? "pwd does not report name of working directory"
1533 # Find the source files, if location was not specified.
1534 if test -z "$srcdir"; then
1535 ac_srcdir_defaulted=yes
1536 # Try the directory containing this script, then the parent directory.
1537 ac_confdir=`$as_dirname -- "$as_myself" ||
1538 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1539 X"$as_myself" : 'X\(//\)[^/]' \| \
1540 X"$as_myself" : 'X\(//\)$' \| \
1541 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1542 $as_echo X"$as_myself" |
1543 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1544 s//\1/
1547 /^X\(\/\/\)[^/].*/{
1548 s//\1/
1551 /^X\(\/\/\)$/{
1552 s//\1/
1555 /^X\(\/\).*/{
1556 s//\1/
1559 s/.*/./; q'`
1560 srcdir=$ac_confdir
1561 if test ! -r "$srcdir/$ac_unique_file"; then
1562 srcdir=..
1564 else
1565 ac_srcdir_defaulted=no
1567 if test ! -r "$srcdir/$ac_unique_file"; then
1568 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1569 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1571 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1572 ac_abs_confdir=`(
1573 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1574 pwd)`
1575 # When building in place, set srcdir=.
1576 if test "$ac_abs_confdir" = "$ac_pwd"; then
1577 srcdir=.
1579 # Remove unnecessary trailing slashes from srcdir.
1580 # Double slashes in file names in object file debugging info
1581 # mess up M-x gdb in Emacs.
1582 case $srcdir in
1583 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1584 esac
1585 for ac_var in $ac_precious_vars; do
1586 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1587 eval ac_env_${ac_var}_value=\$${ac_var}
1588 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1589 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1590 done
1593 # Report the --help message.
1595 if test "$ac_init_help" = "long"; then
1596 # Omit some internal or obsolete options to make the list less imposing.
1597 # This message is too long to be a string in the A/UX 3.1 sh.
1598 cat <<_ACEOF
1599 \`configure' configures alpine 2.19.8 to adapt to many kinds of systems.
1601 Usage: $0 [OPTION]... [VAR=VALUE]...
1603 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1604 VAR=VALUE. See below for descriptions of some of the useful variables.
1606 Defaults for the options are specified in brackets.
1608 Configuration:
1609 -h, --help display this help and exit
1610 --help=short display options specific to this package
1611 --help=recursive display the short help of all the Included packages
1612 -V, --version display version information and exit
1613 -q, --quiet, --silent do not print \`checking ...' messages
1614 --cache-file=FILE cache test results in FILE [disabled]
1615 -C, --config-cache alias for \`--cache-file=config.cache'
1616 -n, --no-create do not create output files
1617 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1619 Installation directories:
1620 --prefix=PREFIX install architecture-independent files in PREFIX
1621 [$ac_default_prefix]
1622 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1623 [PREFIX]
1625 By default, \`make install' will install all the files in
1626 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1627 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1628 for instance \`--prefix=\$HOME'.
1630 For better control, use the options below.
1632 Fine tuning of the installation directories:
1633 --bindir=DIR user executables [EPREFIX/bin]
1634 --sbindir=DIR system admin executables [EPREFIX/sbin]
1635 --libexecdir=DIR program executables [EPREFIX/libexec]
1636 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1637 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1638 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1639 --libdir=DIR object code libraries [EPREFIX/lib]
1640 --Includedir=DIR C header files [PREFIX/include]
1641 --oldIncludedir=DIR C header files for non-gcc [/usr/include]
1642 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1643 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1644 --infodir=DIR info documentation [DATAROOTDIR/info]
1645 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1646 --mandir=DIR man documentation [DATAROOTDIR/man]
1647 --docdir=DIR documentation root [DATAROOTDIR/doc/alpine]
1648 --htmldir=DIR html documentation [DOCDIR]
1649 --dvidir=DIR dvi documentation [DOCDIR]
1650 --pdfdir=DIR pdf documentation [DOCDIR]
1651 --psdir=DIR ps documentation [DOCDIR]
1652 _ACEOF
1654 cat <<\_ACEOF
1656 Program names:
1657 --program-prefix=PREFIX prepend PREFIX to installed program names
1658 --program-suffix=SUFFIX append SUFFIX to installed program names
1659 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1661 System types:
1662 --build=BUILD configure for building on BUILD [guessed]
1663 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1664 _ACEOF
1667 if test -n "$ac_init_help"; then
1668 case $ac_init_help in
1669 short | recursive ) echo "Configuration of alpine 2.19.8:";;
1670 esac
1671 cat <<\_ACEOF
1673 Optional Features:
1674 --disable-option-checking ignore unrecognized --enable/--with options
1675 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1676 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1677 --enable-maintainer-mode enable make rules and dependencies not useful
1678 (and sometimes confusing) to the casual installer
1679 --disable-dependency-tracking speeds up one-time build
1680 --enable-dependency-tracking do not reject slow dependency extractors
1681 --enable-shared[=PKGS] build shared libraries [default=yes]
1682 --enable-static[=PKGS] build static libraries [default=yes]
1683 --enable-fast-install[=PKGS]
1684 optimize for fast installation [default=yes]
1685 --disable-libtool-lock avoid locking (might break parallel builds)
1686 --disable-nls do not use Native Language Support
1687 --disable-rpath do not hardcode runtime library paths
1688 --enable-dmalloc Enable dmalloc debugging
1689 --enable-osx-universal-binaries
1690 Produce universal binaries under OS X [[default=no]]
1691 --disable-debug Exclude debug messages from source
1692 --disable-optimization Exclude optimizing compiler flags
1693 --disable-mouse Disable mouse support
1694 --enable-quotas Enable disk quota checking on startup
1695 --disable-from-changing Disallow users changing From addresss
1696 --disable-background-post
1697 Disable background posting
1698 --disable-keyboard-lock Disable keyboard locking
1699 --enable-from-encoding Enable From encoding in sent messages
1701 Optional Packages:
1702 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1703 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1704 --with-pic try to use only PIC/non-PIC objects [default=use
1705 both]
1706 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1707 --with-gnu-ld assume the C compiler uses GNU ld default=no
1708 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1709 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1710 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1711 --without-libintl-prefix don't search for libintl in includedir and libdir
1712 --with-dmalloc-dir=DIR Root of dmalloc lib/include path
1713 --with-ps-cmd="CMD" Use this command to check running commands. Default:
1714 /bin/ps auxww
1715 --with-localedir=DIR Name of gettext locale directory
1716 --with-include-path=PATHS
1717 Colon-separated list of directories used for include
1718 file search
1719 --with-lib-path=PATHS Colon-separated list of directories used for library
1720 search
1721 --with-pubcookie Include support for UW-Pubcookie Web Authentication
1722 --with-web-bin=PATH Directory to hold Web Alpine component binary files
1723 --with-smtp-msa=PATH Local Mail Submission Agent (sendmail)
1724 --with-smtp-msa-flags=FLAGS
1725 MSA flags for SMTP on stdin/stdout (-bs -odb -oem)
1726 --with-npa=PATH Posting agent when no nntp-servers defined (inews)
1727 --with-npa-flags=FLAGS Flags to allow posting via local agent (-h)
1728 --with-password-prog=PATH
1729 Password change program (/bin/passwd)
1730 --with-simple-spellcheck=PROG
1731 Spellcheck program reads stdin, emits misspellings
1732 on stdout
1733 --with-interactive-spellcheck=PROG
1734 Interactive, filewise spell checker
1735 --with-system-pinerc=VALUE
1736 System pinerc (/usr/local/lib/pine.conf)
1737 --with-system-fixed-pinerc=VALUE
1738 System fixed pinerc (/usr/local/lib/pine.conf.fixed)
1739 --with-local-support-info=VALUE
1740 Local Support Info File (/usr/local/lib/pine.info)
1741 --with-mailcheck-interval=VALUE
1742 Specify default mail-check-interval (150)
1743 --with-checkpoint-interval=VALUE
1744 Specify default checkpoint-interval (420)
1745 --with-checkpoint-frequency=VALUE
1746 State change count before checkpoint (12)
1747 --with-display-rows=VALUE
1748 Initial rows on display (24)
1749 --with-display-columns=VALUE
1750 Initial columns on display (80)
1751 --with-max-display-rows=VALUE
1752 Maximum display rows (200)
1753 --with-max-display-columns=VALUE
1754 Maximum display columns (500)
1755 --with-fill-column=VALUE
1756 Default fill column (74)
1757 --with-max_fill-column=VALUE
1758 Maximum fill column (80)
1759 --with-debug-level=VALUE
1760 Specify default debug verbosity level (2)
1761 --with-debug-files=VALUE
1762 Specify number of debug files (4)
1763 --with-debug-file=VALUE Specify debug file name (.pine-debug)
1764 --with-forwarded-keyword=VALUE
1765 IMAP (c-client) keyword to store forwarded status
1766 ("\$Forwarded")
1767 --with-display-overlap=VALUE
1768 Lines preserved while paging (2)
1769 --with-display-margin=VALUE
1770 Lines visible while scrolling (0)
1771 --with-default-fcc=VALUE
1772 Default sent mail folder (sent-mail)
1773 --with-default-save-folder=VALUE
1774 Default save folder (saved-messages)
1775 --with-default-legacy-postponed-folder=VALUE
1776 Pre Pine 3.90 postponed folder (postponed-mail)
1777 --with-default-postponed-folder=VALUE
1778 Default postponed folder (postponed-msgs)
1779 --with-default-trash-folder=VALUE
1780 Default Trash folder for Web Alpine (Trash)
1781 --with-default-interrupted-mail=VALUE
1782 Default folder for interrupted mail
1783 (.pine-interrupted-mail)
1784 --with-default-dead-letter-folder=VALUE
1785 Default dead letter folder (dead.letter)
1786 --with-default-mail-directory=VALUE
1787 Default mail directory (mail)
1788 --with-default-inbox-name=VALUE
1789 Default inbox name (INBOX)
1790 --with-default-signature-file=VALUE
1791 Default signature file (.signature)
1792 --with-default-elm-style-save=VALUE
1793 Default to Elm style save (no)
1794 --with-default-header-in-reply=VALUE
1795 Include header in reply (no)
1796 --with-default-old-style-reply=VALUE
1797 Default to old style reply (no)
1798 --with-default-use-only-domain-name=VALUE
1799 Default to using only the domain name (no)
1800 --with-default-save-by-sender=VALUE
1801 Default to save by sender (no)
1802 --with-default-sort-key=VALUE
1803 Default sort key (arrival)
1804 --with-default-addressbook-sort-rule=VALUE
1805 Default addressbook sort rule
1806 (fullname-with-lists-last)
1807 --with-default-folder-sort-rule=VALUE
1808 Default folder sort rule (alphabetical)
1809 --with-default-saved-message-name-rule=VALUE
1810 Default saved message name rule (default-folder)
1811 --with-default-fcc-rule=VALUE
1812 Default fcc rule (default-fcc)
1813 --with-default-standard-printer=VALUE
1814 Default standard printern (lpr)
1815 --with-default-ansi-printer=VALUE
1816 ANSI printer definition (attached-to-ansi)
1817 --with-default-addressbook=VALUE
1818 Default addressbook name (.addressbook)
1819 --with-default-local-fullname=VALUE
1820 Default local support fullname ("Local Support")
1821 --with-default-local-address=VALUE
1822 Default local support address (postmaster)
1823 --with-default-keyboard-lock-count=VALUE
1824 Default keyboard lock count (1)
1825 --with-default-remote-addressbook-history=VALUE
1826 Default address book history count (3)
1827 --with-smime-public-cert-directory=VALUE
1828 Default Public Cert Directory (.alpine-smime/public)
1829 --with-smime-private-key-directory=VALUE
1830 Default Private Key Directory
1831 (.alpine-smime/private)
1832 --with-smime-cacert-directory=VALUE
1833 Default Cert Authority Directory (.alpine-smime/ca)
1834 --with-default-printer=VALUE
1835 Default printer (ANSI_PRINTER)
1836 --with-passfile=FILENAME
1837 Password cache file (NOT secure, NOT recommended)
1838 --without-local-password-cache
1839 Disable OS-specific password cache, if supported
1840 --with-local-password-cache-method
1841 OS-specific credential cache (OSX=APPLEKEYCHAIN,
1842 Windows=WINCRED)
1843 --with-default-sshpath=FILENAME
1844 set default value of ssh command path (defining
1845 should cause ssh to be preferred to rsh)
1846 --with-default-sshcmd=PERCENT_S_STRING
1847 set default value of ssh command string (usually "%s
1848 %s -l %s exec /etc/r%sd")
1849 --without-ssl Disable SSL support (OpenSSL)
1850 --with-ssl-dir=DIR Root of SSL lib/include path
1851 --with-ssl-certs-dir=DIR
1852 Path to SSL certificate directory
1853 --with-ssl-include-dir=DIR
1854 SSL include file path
1855 --with-ssl-lib-dir=DIR SSL library path
1856 --without-krb5 Disable Kerberos support
1857 --with-krb5-dir=DIR Root of Kerberos lib/include path
1858 --with-krb5-include-dir=DIR
1859 Kerberos include file path
1860 --with-krb5-lib-dir=DIR Kerberos library path
1861 --without-ldap Disable LDAP query support
1862 --with-ldap-dir=DIR Root of LDAP lib/include path
1863 --with-ldap-include-dir=DIR
1864 Directory containing LDAP include files
1865 --with-ldap-lib-dir=DIR LDAP library path
1866 --without-smime Disable S/MIME
1867 --without-tcl Disable TCL, thus Web Alpine support
1868 --with-tcl-lib=LIBRARY Specific TCL Library, like \"tcl8.6\"
1869 --with-tcl-include=DIR Directory containing TCL include files
1870 --with-supplied-regex Use regex library supplied with alpine
1871 --without-pthread Do NOT test for nor build with POSIX thread support
1872 --with-system-mail-directory=DIR
1873 Directory where local mail is delivered
1874 --with-c-client-target=TARGET
1875 IMAP build target (see imap/Makefile)
1876 --without-ipv6 Disable IPv6, primarily to work around resolver
1877 problems
1879 Some influential environment variables:
1880 CC C compiler command
1881 CFLAGS C compiler flags
1882 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1883 nonstandard directory <lib dir>
1884 LIBS libraries to pass to the linker, e.g. -l<library>
1885 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1886 you have headers in a nonstandard directory <include dir>
1887 CPP C preprocessor
1889 Use these variables to override the choices made by `configure' or to help
1890 it to find libraries and programs with nonstandard names/locations.
1892 Report bugs to <chappa@washington.edu>.
1893 _ACEOF
1894 ac_status=$?
1897 if test "$ac_init_help" = "recursive"; then
1898 # If there are subdirs, report their specific --help.
1899 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1900 test -d "$ac_dir" ||
1901 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1902 continue
1903 ac_builddir=.
1905 case "$ac_dir" in
1906 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1908 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1909 # A ".." for each directory in $ac_dir_suffix.
1910 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1911 case $ac_top_builddir_sub in
1912 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1913 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1914 esac ;;
1915 esac
1916 ac_abs_top_builddir=$ac_pwd
1917 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1918 # for backward compatibility:
1919 ac_top_builddir=$ac_top_build_prefix
1921 case $srcdir in
1922 .) # We are building in place.
1923 ac_srcdir=.
1924 ac_top_srcdir=$ac_top_builddir_sub
1925 ac_abs_top_srcdir=$ac_pwd ;;
1926 [\\/]* | ?:[\\/]* ) # Absolute name.
1927 ac_srcdir=$srcdir$ac_dir_suffix;
1928 ac_top_srcdir=$srcdir
1929 ac_abs_top_srcdir=$srcdir ;;
1930 *) # Relative name.
1931 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1932 ac_top_srcdir=$ac_top_build_prefix$srcdir
1933 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1934 esac
1935 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1937 cd "$ac_dir" || { ac_status=$?; continue; }
1938 # Check for guested configure.
1939 if test -f "$ac_srcdir/configure.gnu"; then
1940 echo &&
1941 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1942 elif test -f "$ac_srcdir/configure"; then
1943 echo &&
1944 $SHELL "$ac_srcdir/configure" --help=recursive
1945 else
1946 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1947 fi || ac_status=$?
1948 cd "$ac_pwd" || { ac_status=$?; break; }
1949 done
1952 test -n "$ac_init_help" && exit $ac_status
1953 if $ac_init_version; then
1954 cat <<\_ACEOF
1955 alpine configure 2.19.8
1956 generated by GNU Autoconf 2.69
1958 Copyright (C) 2012 Free Software Foundation, Inc.
1959 This configure script is free software; the Free Software Foundation
1960 gives unlimited permission to copy, distribute and modify it.
1961 _ACEOF
1962 exit
1965 ## ------------------------ ##
1966 ## Autoconf initialization. ##
1967 ## ------------------------ ##
1969 # ac_fn_c_try_compile LINENO
1970 # --------------------------
1971 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1972 ac_fn_c_try_compile ()
1974 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1975 rm -f conftest.$ac_objext
1976 if { { ac_try="$ac_compile"
1977 case "(($ac_try" in
1978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1979 *) ac_try_echo=$ac_try;;
1980 esac
1981 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1982 $as_echo "$ac_try_echo"; } >&5
1983 (eval "$ac_compile") 2>conftest.err
1984 ac_status=$?
1985 if test -s conftest.err; then
1986 grep -v '^ *+' conftest.err >conftest.er1
1987 cat conftest.er1 >&5
1988 mv -f conftest.er1 conftest.err
1990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1991 test $ac_status = 0; } && {
1992 test -z "$ac_c_werror_flag" ||
1993 test ! -s conftest.err
1994 } && test -s conftest.$ac_objext; then :
1995 ac_retval=0
1996 else
1997 $as_echo "$as_me: failed program was:" >&5
1998 sed 's/^/| /' conftest.$ac_ext >&5
2000 ac_retval=1
2002 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2003 as_fn_set_status $ac_retval
2005 } # ac_fn_c_try_compile
2007 # ac_fn_c_try_link LINENO
2008 # -----------------------
2009 # Try to link conftest.$ac_ext, and return whether this succeeded.
2010 ac_fn_c_try_link ()
2012 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2013 rm -f conftest.$ac_objext conftest$ac_exeext
2014 if { { ac_try="$ac_link"
2015 case "(($ac_try" in
2016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2017 *) ac_try_echo=$ac_try;;
2018 esac
2019 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2020 $as_echo "$ac_try_echo"; } >&5
2021 (eval "$ac_link") 2>conftest.err
2022 ac_status=$?
2023 if test -s conftest.err; then
2024 grep -v '^ *+' conftest.err >conftest.er1
2025 cat conftest.er1 >&5
2026 mv -f conftest.er1 conftest.err
2028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2029 test $ac_status = 0; } && {
2030 test -z "$ac_c_werror_flag" ||
2031 test ! -s conftest.err
2032 } && test -s conftest$ac_exeext && {
2033 test "$cross_compiling" = yes ||
2034 test -x conftest$ac_exeext
2035 }; then :
2036 ac_retval=0
2037 else
2038 $as_echo "$as_me: failed program was:" >&5
2039 sed 's/^/| /' conftest.$ac_ext >&5
2041 ac_retval=1
2043 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2044 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2045 # interfere with the next link command; also delete a directory that is
2046 # left behind by Apple's compiler. We do this before executing the actions.
2047 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2048 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2049 as_fn_set_status $ac_retval
2051 } # ac_fn_c_try_link
2053 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2054 # -------------------------------------------------------
2055 # Tests whether HEADER exists and can be compiled using the include files in
2056 # INCLUDES, setting the cache variable VAR accordingly.
2057 ac_fn_c_check_header_compile ()
2059 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2061 $as_echo_n "checking for $2... " >&6; }
2062 if eval \${$3+:} false; then :
2063 $as_echo_n "(cached) " >&6
2064 else
2065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2066 /* end confdefs.h. */
2068 #include <$2>
2069 _ACEOF
2070 if ac_fn_c_try_compile "$LINENO"; then :
2071 eval "$3=yes"
2072 else
2073 eval "$3=no"
2075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2077 eval ac_res=\$$3
2078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2079 $as_echo "$ac_res" >&6; }
2080 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2082 } # ac_fn_c_check_header_compile
2084 # ac_fn_c_try_cpp LINENO
2085 # ----------------------
2086 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2087 ac_fn_c_try_cpp ()
2089 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2090 if { { ac_try="$ac_cpp conftest.$ac_ext"
2091 case "(($ac_try" in
2092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2093 *) ac_try_echo=$ac_try;;
2094 esac
2095 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2096 $as_echo "$ac_try_echo"; } >&5
2097 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2098 ac_status=$?
2099 if test -s conftest.err; then
2100 grep -v '^ *+' conftest.err >conftest.er1
2101 cat conftest.er1 >&5
2102 mv -f conftest.er1 conftest.err
2104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2105 test $ac_status = 0; } > conftest.i && {
2106 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2107 test ! -s conftest.err
2108 }; then :
2109 ac_retval=0
2110 else
2111 $as_echo "$as_me: failed program was:" >&5
2112 sed 's/^/| /' conftest.$ac_ext >&5
2114 ac_retval=1
2116 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2117 as_fn_set_status $ac_retval
2119 } # ac_fn_c_try_cpp
2121 # ac_fn_c_try_run LINENO
2122 # ----------------------
2123 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2124 # that executables *can* be run.
2125 ac_fn_c_try_run ()
2127 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2128 if { { ac_try="$ac_link"
2129 case "(($ac_try" in
2130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2131 *) ac_try_echo=$ac_try;;
2132 esac
2133 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2134 $as_echo "$ac_try_echo"; } >&5
2135 (eval "$ac_link") 2>&5
2136 ac_status=$?
2137 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2138 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2139 { { case "(($ac_try" in
2140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2141 *) ac_try_echo=$ac_try;;
2142 esac
2143 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2144 $as_echo "$ac_try_echo"; } >&5
2145 (eval "$ac_try") 2>&5
2146 ac_status=$?
2147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2148 test $ac_status = 0; }; }; then :
2149 ac_retval=0
2150 else
2151 $as_echo "$as_me: program exited with status $ac_status" >&5
2152 $as_echo "$as_me: failed program was:" >&5
2153 sed 's/^/| /' conftest.$ac_ext >&5
2155 ac_retval=$ac_status
2157 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2158 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2159 as_fn_set_status $ac_retval
2161 } # ac_fn_c_try_run
2163 # ac_fn_c_check_func LINENO FUNC VAR
2164 # ----------------------------------
2165 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2166 ac_fn_c_check_func ()
2168 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2170 $as_echo_n "checking for $2... " >&6; }
2171 if eval \${$3+:} false; then :
2172 $as_echo_n "(cached) " >&6
2173 else
2174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2175 /* end confdefs.h. */
2176 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2177 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2178 #define $2 innocuous_$2
2180 /* System header to define __stub macros and hopefully few prototypes,
2181 which can conflict with char $2 (); below.
2182 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2183 <limits.h> exists even on freestanding compilers. */
2185 #ifdef __STDC__
2186 # include <limits.h>
2187 #else
2188 # include <assert.h>
2189 #endif
2191 #undef $2
2193 /* Override any GCC internal prototype to avoid an error.
2194 Use char because int might match the return type of a GCC
2195 builtin and then its argument prototype would still apply. */
2196 #ifdef __cplusplus
2197 extern "C"
2198 #endif
2199 char $2 ();
2200 /* The GNU C library defines this for functions which it implements
2201 to always fail with ENOSYS. Some functions are actually named
2202 something starting with __ and the normal name is an alias. */
2203 #if defined __stub_$2 || defined __stub___$2
2204 choke me
2205 #endif
2208 main ()
2210 return $2 ();
2212 return 0;
2214 _ACEOF
2215 if ac_fn_c_try_link "$LINENO"; then :
2216 eval "$3=yes"
2217 else
2218 eval "$3=no"
2220 rm -f core conftest.err conftest.$ac_objext \
2221 conftest$ac_exeext conftest.$ac_ext
2223 eval ac_res=\$$3
2224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2225 $as_echo "$ac_res" >&6; }
2226 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2228 } # ac_fn_c_check_func
2230 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2231 # -------------------------------------------------------
2232 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2233 # the include files in INCLUDES and setting the cache variable VAR
2234 # accordingly.
2235 ac_fn_c_check_header_mongrel ()
2237 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2238 if eval \${$3+:} false; then :
2239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2240 $as_echo_n "checking for $2... " >&6; }
2241 if eval \${$3+:} false; then :
2242 $as_echo_n "(cached) " >&6
2244 eval ac_res=\$$3
2245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2246 $as_echo "$ac_res" >&6; }
2247 else
2248 # Is the header compilable?
2249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2250 $as_echo_n "checking $2 usability... " >&6; }
2251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2252 /* end confdefs.h. */
2254 #include <$2>
2255 _ACEOF
2256 if ac_fn_c_try_compile "$LINENO"; then :
2257 ac_header_compiler=yes
2258 else
2259 ac_header_compiler=no
2261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2263 $as_echo "$ac_header_compiler" >&6; }
2265 # Is the header present?
2266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2267 $as_echo_n "checking $2 presence... " >&6; }
2268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2269 /* end confdefs.h. */
2270 #include <$2>
2271 _ACEOF
2272 if ac_fn_c_try_cpp "$LINENO"; then :
2273 ac_header_preproc=yes
2274 else
2275 ac_header_preproc=no
2277 rm -f conftest.err conftest.i conftest.$ac_ext
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2279 $as_echo "$ac_header_preproc" >&6; }
2281 # So? What about this header?
2282 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2283 yes:no: )
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2285 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2286 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2287 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2289 no:yes:* )
2290 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2291 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2292 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2293 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2294 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2295 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2296 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2297 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2298 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2299 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2300 ( $as_echo "## ------------------------------------ ##
2301 ## Report this to chappa@washington.edu ##
2302 ## ------------------------------------ ##"
2303 ) | sed "s/^/$as_me: WARNING: /" >&2
2305 esac
2306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2307 $as_echo_n "checking for $2... " >&6; }
2308 if eval \${$3+:} false; then :
2309 $as_echo_n "(cached) " >&6
2310 else
2311 eval "$3=\$ac_header_compiler"
2313 eval ac_res=\$$3
2314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2315 $as_echo "$ac_res" >&6; }
2317 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2319 } # ac_fn_c_check_header_mongrel
2321 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2322 # -------------------------------------------
2323 # Tests whether TYPE exists after having Included INCLUDES, setting cache
2324 # variable VAR accordingly.
2325 ac_fn_c_check_type ()
2327 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2329 $as_echo_n "checking for $2... " >&6; }
2330 if eval \${$3+:} false; then :
2331 $as_echo_n "(cached) " >&6
2332 else
2333 eval "$3=no"
2334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2335 /* end confdefs.h. */
2338 main ()
2340 if (sizeof ($2))
2341 return 0;
2343 return 0;
2345 _ACEOF
2346 if ac_fn_c_try_compile "$LINENO"; then :
2347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2348 /* end confdefs.h. */
2351 main ()
2353 if (sizeof (($2)))
2354 return 0;
2356 return 0;
2358 _ACEOF
2359 if ac_fn_c_try_compile "$LINENO"; then :
2361 else
2362 eval "$3=yes"
2364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2368 eval ac_res=\$$3
2369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2370 $as_echo "$ac_res" >&6; }
2371 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2373 } # ac_fn_c_check_type
2375 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2376 # --------------------------------------------
2377 # Tries to find the compile-time value of EXPR in a program that includes
2378 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2379 # computed
2380 ac_fn_c_compute_int ()
2382 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2383 if test "$cross_compiling" = yes; then
2384 # Depending upon the size, compute the lo and hi bounds.
2385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2386 /* end confdefs.h. */
2389 main ()
2391 static int test_array [1 - 2 * !(($2) >= 0)];
2392 test_array [0] = 0;
2393 return test_array [0];
2396 return 0;
2398 _ACEOF
2399 if ac_fn_c_try_compile "$LINENO"; then :
2400 ac_lo=0 ac_mid=0
2401 while :; do
2402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2403 /* end confdefs.h. */
2406 main ()
2408 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2409 test_array [0] = 0;
2410 return test_array [0];
2413 return 0;
2415 _ACEOF
2416 if ac_fn_c_try_compile "$LINENO"; then :
2417 ac_hi=$ac_mid; break
2418 else
2419 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2420 if test $ac_lo -le $ac_mid; then
2421 ac_lo= ac_hi=
2422 break
2424 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2427 done
2428 else
2429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2430 /* end confdefs.h. */
2433 main ()
2435 static int test_array [1 - 2 * !(($2) < 0)];
2436 test_array [0] = 0;
2437 return test_array [0];
2440 return 0;
2442 _ACEOF
2443 if ac_fn_c_try_compile "$LINENO"; then :
2444 ac_hi=-1 ac_mid=-1
2445 while :; do
2446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2447 /* end confdefs.h. */
2450 main ()
2452 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2453 test_array [0] = 0;
2454 return test_array [0];
2457 return 0;
2459 _ACEOF
2460 if ac_fn_c_try_compile "$LINENO"; then :
2461 ac_lo=$ac_mid; break
2462 else
2463 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2464 if test $ac_mid -le $ac_hi; then
2465 ac_lo= ac_hi=
2466 break
2468 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2471 done
2472 else
2473 ac_lo= ac_hi=
2475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2478 # Binary search between lo and hi bounds.
2479 while test "x$ac_lo" != "x$ac_hi"; do
2480 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2482 /* end confdefs.h. */
2485 main ()
2487 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2488 test_array [0] = 0;
2489 return test_array [0];
2492 return 0;
2494 _ACEOF
2495 if ac_fn_c_try_compile "$LINENO"; then :
2496 ac_hi=$ac_mid
2497 else
2498 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2501 done
2502 case $ac_lo in #((
2503 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2504 '') ac_retval=1 ;;
2505 esac
2506 else
2507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2508 /* end confdefs.h. */
2510 static long int longval () { return $2; }
2511 static unsigned long int ulongval () { return $2; }
2512 #include <stdio.h>
2513 #include <stdlib.h>
2515 main ()
2518 FILE *f = fopen ("conftest.val", "w");
2519 if (! f)
2520 return 1;
2521 if (($2) < 0)
2523 long int i = longval ();
2524 if (i != ($2))
2525 return 1;
2526 fprintf (f, "%ld", i);
2528 else
2530 unsigned long int i = ulongval ();
2531 if (i != ($2))
2532 return 1;
2533 fprintf (f, "%lu", i);
2535 /* Do not output a trailing newline, as this causes \r\n confusion
2536 on some platforms. */
2537 return ferror (f) || fclose (f) != 0;
2540 return 0;
2542 _ACEOF
2543 if ac_fn_c_try_run "$LINENO"; then :
2544 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2545 else
2546 ac_retval=1
2548 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2549 conftest.$ac_objext conftest.beam conftest.$ac_ext
2550 rm -f conftest.val
2553 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2554 as_fn_set_status $ac_retval
2556 } # ac_fn_c_compute_int
2557 cat >config.log <<_ACEOF
2558 This file contains any messages produced by compilers while
2559 running configure, to aid debugging if configure makes a mistake.
2561 It was created by alpine $as_me 2.19.8, which was
2562 generated by GNU Autoconf 2.69. Invocation command line was
2564 $ $0 $@
2566 _ACEOF
2567 exec 5>>config.log
2569 cat <<_ASUNAME
2570 ## --------- ##
2571 ## Platform. ##
2572 ## --------- ##
2574 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2575 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2576 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2577 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2578 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2580 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2581 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2583 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2584 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2585 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2586 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2587 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2588 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2589 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2591 _ASUNAME
2593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2594 for as_dir in $PATH
2596 IFS=$as_save_IFS
2597 test -z "$as_dir" && as_dir=.
2598 $as_echo "PATH: $as_dir"
2599 done
2600 IFS=$as_save_IFS
2602 } >&5
2604 cat >&5 <<_ACEOF
2607 ## ----------- ##
2608 ## Core tests. ##
2609 ## ----------- ##
2611 _ACEOF
2614 # Keep a trace of the command line.
2615 # Strip out --no-create and --no-recursion so they do not pile up.
2616 # Strip out --silent because we don't want to record it for future runs.
2617 # Also quote any args containing shell meta-characters.
2618 # Make two passes to allow for proper duplicate-argument suppression.
2619 ac_configure_args=
2620 ac_configure_args0=
2621 ac_configure_args1=
2622 ac_must_keep_next=false
2623 for ac_pass in 1 2
2625 for ac_arg
2627 case $ac_arg in
2628 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2629 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2630 | -silent | --silent | --silen | --sile | --sil)
2631 continue ;;
2632 *\'*)
2633 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2634 esac
2635 case $ac_pass in
2636 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2638 as_fn_append ac_configure_args1 " '$ac_arg'"
2639 if test $ac_must_keep_next = true; then
2640 ac_must_keep_next=false # Got value, back to normal.
2641 else
2642 case $ac_arg in
2643 *=* | --config-cache | -C | -disable-* | --disable-* \
2644 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2645 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2646 | -with-* | --with-* | -without-* | --without-* | --x)
2647 case "$ac_configure_args0 " in
2648 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2649 esac
2651 -* ) ac_must_keep_next=true ;;
2652 esac
2654 as_fn_append ac_configure_args " '$ac_arg'"
2656 esac
2657 done
2658 done
2659 { ac_configure_args0=; unset ac_configure_args0;}
2660 { ac_configure_args1=; unset ac_configure_args1;}
2662 # When interrupted or exit'd, cleanup temporary files, and complete
2663 # config.log. We remove comments because anyway the quotes in there
2664 # would cause problems or look ugly.
2665 # WARNING: Use '\'' to represent an apostrophe within the trap.
2666 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2667 trap 'exit_status=$?
2668 # Save into config.log some information that might help in debugging.
2670 echo
2672 $as_echo "## ---------------- ##
2673 ## Cache variables. ##
2674 ## ---------------- ##"
2675 echo
2676 # The following way of writing the cache mishandles newlines in values,
2678 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2679 eval ac_val=\$$ac_var
2680 case $ac_val in #(
2681 *${as_nl}*)
2682 case $ac_var in #(
2683 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2684 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2685 esac
2686 case $ac_var in #(
2687 _ | IFS | as_nl) ;; #(
2688 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2689 *) { eval $ac_var=; unset $ac_var;} ;;
2690 esac ;;
2691 esac
2692 done
2693 (set) 2>&1 |
2694 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2695 *${as_nl}ac_space=\ *)
2696 sed -n \
2697 "s/'\''/'\''\\\\'\'''\''/g;
2698 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2699 ;; #(
2701 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2703 esac |
2704 sort
2706 echo
2708 $as_echo "## ----------------- ##
2709 ## Output variables. ##
2710 ## ----------------- ##"
2711 echo
2712 for ac_var in $ac_subst_vars
2714 eval ac_val=\$$ac_var
2715 case $ac_val in
2716 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2717 esac
2718 $as_echo "$ac_var='\''$ac_val'\''"
2719 done | sort
2720 echo
2722 if test -n "$ac_subst_files"; then
2723 $as_echo "## ------------------- ##
2724 ## File substitutions. ##
2725 ## ------------------- ##"
2726 echo
2727 for ac_var in $ac_subst_files
2729 eval ac_val=\$$ac_var
2730 case $ac_val in
2731 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2732 esac
2733 $as_echo "$ac_var='\''$ac_val'\''"
2734 done | sort
2735 echo
2738 if test -s confdefs.h; then
2739 $as_echo "## ----------- ##
2740 ## confdefs.h. ##
2741 ## ----------- ##"
2742 echo
2743 cat confdefs.h
2744 echo
2746 test "$ac_signal" != 0 &&
2747 $as_echo "$as_me: caught signal $ac_signal"
2748 $as_echo "$as_me: exit $exit_status"
2749 } >&5
2750 rm -f core *.core core.conftest.* &&
2751 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2752 exit $exit_status
2754 for ac_signal in 1 2 13 15; do
2755 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2756 done
2757 ac_signal=0
2759 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2760 rm -f -r conftest* confdefs.h
2762 $as_echo "/* confdefs.h */" > confdefs.h
2764 # Predefined preprocessor variables.
2766 cat >>confdefs.h <<_ACEOF
2767 #define PACKAGE_NAME "$PACKAGE_NAME"
2768 _ACEOF
2770 cat >>confdefs.h <<_ACEOF
2771 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2772 _ACEOF
2774 cat >>confdefs.h <<_ACEOF
2775 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2776 _ACEOF
2778 cat >>confdefs.h <<_ACEOF
2779 #define PACKAGE_STRING "$PACKAGE_STRING"
2780 _ACEOF
2782 cat >>confdefs.h <<_ACEOF
2783 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2784 _ACEOF
2786 cat >>confdefs.h <<_ACEOF
2787 #define PACKAGE_URL "$PACKAGE_URL"
2788 _ACEOF
2791 # Let the site file select an alternate cache file if it wants to.
2792 # Prefer an explicitly selected file to automatically selected ones.
2793 ac_site_file1=NONE
2794 ac_site_file2=NONE
2795 if test -n "$CONFIG_SITE"; then
2796 # We do not want a PATH search for config.site.
2797 case $CONFIG_SITE in #((
2798 -*) ac_site_file1=./$CONFIG_SITE;;
2799 */*) ac_site_file1=$CONFIG_SITE;;
2800 *) ac_site_file1=./$CONFIG_SITE;;
2801 esac
2802 elif test "x$prefix" != xNONE; then
2803 ac_site_file1=$prefix/share/config.site
2804 ac_site_file2=$prefix/etc/config.site
2805 else
2806 ac_site_file1=$ac_default_prefix/share/config.site
2807 ac_site_file2=$ac_default_prefix/etc/config.site
2809 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2811 test "x$ac_site_file" = xNONE && continue
2812 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2813 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2814 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2815 sed 's/^/| /' "$ac_site_file" >&5
2816 . "$ac_site_file" \
2817 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2818 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2819 as_fn_error $? "failed to load site script $ac_site_file
2820 See \`config.log' for more details" "$LINENO" 5; }
2822 done
2824 if test -r "$cache_file"; then
2825 # Some versions of bash will fail to source /dev/null (special files
2826 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2827 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2829 $as_echo "$as_me: loading cache $cache_file" >&6;}
2830 case $cache_file in
2831 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2832 *) . "./$cache_file";;
2833 esac
2835 else
2836 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2837 $as_echo "$as_me: creating cache $cache_file" >&6;}
2838 >$cache_file
2841 gt_needs="$gt_needs "
2842 # Check that the precious variables saved in the cache have kept the same
2843 # value.
2844 ac_cache_corrupted=false
2845 for ac_var in $ac_precious_vars; do
2846 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2847 eval ac_new_set=\$ac_env_${ac_var}_set
2848 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2849 eval ac_new_val=\$ac_env_${ac_var}_value
2850 case $ac_old_set,$ac_new_set in
2851 set,)
2852 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2853 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2854 ac_cache_corrupted=: ;;
2855 ,set)
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2857 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2858 ac_cache_corrupted=: ;;
2859 ,);;
2861 if test "x$ac_old_val" != "x$ac_new_val"; then
2862 # differences in whitespace do not lead to failure.
2863 ac_old_val_w=`echo x $ac_old_val`
2864 ac_new_val_w=`echo x $ac_new_val`
2865 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2867 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2868 ac_cache_corrupted=:
2869 else
2870 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2871 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2872 eval $ac_var=\$ac_old_val
2874 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2875 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2877 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2878 fi;;
2879 esac
2880 # Pass precious variables to config.status.
2881 if test "$ac_new_set" = set; then
2882 case $ac_new_val in
2883 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2884 *) ac_arg=$ac_var=$ac_new_val ;;
2885 esac
2886 case " $ac_configure_args " in
2887 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2888 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2889 esac
2891 done
2892 if $ac_cache_corrupted; then
2893 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2894 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2895 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2896 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2897 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2899 ## -------------------- ##
2900 ## Main body of script. ##
2901 ## -------------------- ##
2903 ac_ext=c
2904 ac_cpp='$CPP $CPPFLAGS'
2905 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2906 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2907 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2912 ac_config_headers="$ac_config_headers include/config.h"
2915 am__api_version='1.11'
2917 ac_aux_dir=
2918 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2919 if test -f "$ac_dir/install-sh"; then
2920 ac_aux_dir=$ac_dir
2921 ac_install_sh="$ac_aux_dir/install-sh -c"
2922 break
2923 elif test -f "$ac_dir/install.sh"; then
2924 ac_aux_dir=$ac_dir
2925 ac_install_sh="$ac_aux_dir/install.sh -c"
2926 break
2927 elif test -f "$ac_dir/shtool"; then
2928 ac_aux_dir=$ac_dir
2929 ac_install_sh="$ac_aux_dir/shtool install -c"
2930 break
2932 done
2933 if test -z "$ac_aux_dir"; then
2934 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2937 # These three variables are undocumented and unsupported,
2938 # and are intended to be withdrawn in a future Autoconf release.
2939 # They can cause serious problems if a builder's source tree is in a directory
2940 # whose full name contains unusual characters.
2941 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2942 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2943 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2946 # Find a good install program. We prefer a C program (faster),
2947 # so one script is as good as another. But avoid the broken or
2948 # incompatible versions:
2949 # SysV /etc/install, /usr/sbin/install
2950 # SunOS /usr/etc/install
2951 # IRIX /sbin/install
2952 # AIX /bin/install
2953 # AmigaOS /C/install, which installs bootblocks on floppy discs
2954 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2955 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2956 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2957 # OS/2's system install, which has a completely different semantic
2958 # ./install, which can be erroneously created by make from ./install.sh.
2959 # Reject install programs that cannot install multiple files.
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2961 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2962 if test -z "$INSTALL"; then
2963 if ${ac_cv_path_install+:} false; then :
2964 $as_echo_n "(cached) " >&6
2965 else
2966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2967 for as_dir in $PATH
2969 IFS=$as_save_IFS
2970 test -z "$as_dir" && as_dir=.
2971 # Account for people who put trailing slashes in PATH elements.
2972 case $as_dir/ in #((
2973 ./ | .// | /[cC]/* | \
2974 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2975 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2976 /usr/ucb/* ) ;;
2978 # OSF1 and SCO ODT 3.0 have their own names for install.
2979 # Don't use installbsd from OSF since it installs stuff as root
2980 # by default.
2981 for ac_prog in ginstall scoinst install; do
2982 for ac_exec_ext in '' $ac_executable_extensions; do
2983 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2984 if test $ac_prog = install &&
2985 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2986 # AIX install. It has an incompatible calling convention.
2988 elif test $ac_prog = install &&
2989 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2990 # program-specific install script used by HP pwplus--don't use.
2992 else
2993 rm -rf conftest.one conftest.two conftest.dir
2994 echo one > conftest.one
2995 echo two > conftest.two
2996 mkdir conftest.dir
2997 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2998 test -s conftest.one && test -s conftest.two &&
2999 test -s conftest.dir/conftest.one &&
3000 test -s conftest.dir/conftest.two
3001 then
3002 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3003 break 3
3007 done
3008 done
3010 esac
3012 done
3013 IFS=$as_save_IFS
3015 rm -rf conftest.one conftest.two conftest.dir
3018 if test "${ac_cv_path_install+set}" = set; then
3019 INSTALL=$ac_cv_path_install
3020 else
3021 # As a last resort, use the slow shell script. Don't cache a
3022 # value for INSTALL within a source directory, because that will
3023 # break other packages using the cache if that directory is
3024 # removed, or if the value is a relative name.
3025 INSTALL=$ac_install_sh
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3029 $as_echo "$INSTALL" >&6; }
3031 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3032 # It thinks the first close brace ends the variable substitution.
3033 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3035 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3037 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3040 $as_echo_n "checking whether build environment is sane... " >&6; }
3041 # Just in case
3042 sleep 1
3043 echo timestamp > conftest.file
3044 # Reject unsafe characters in $srcdir or the absolute working directory
3045 # name. Accept space and tab only in the latter.
3046 am_lf='
3048 case `pwd` in
3049 *[\\\"\#\$\&\'\`$am_lf]*)
3050 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3051 esac
3052 case $srcdir in
3053 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3054 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3055 esac
3057 # Do `set' in a subshell so we don't clobber the current shell's
3058 # arguments. Must try -L first in case configure is actually a
3059 # symlink; some systems play weird games with the mod time of symlinks
3060 # (eg FreeBSD returns the mod time of the symlink's containing
3061 # directory).
3062 if (
3063 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3064 if test "$*" = "X"; then
3065 # -L didn't work.
3066 set X `ls -t "$srcdir/configure" conftest.file`
3068 rm -f conftest.file
3069 if test "$*" != "X $srcdir/configure conftest.file" \
3070 && test "$*" != "X conftest.file $srcdir/configure"; then
3072 # If neither matched, then we have a broken ls. This can happen
3073 # if, for instance, CONFIG_SHELL is bash and it inherits a
3074 # broken ls alias from the environment. This has actually
3075 # happened. Such a system could not be considered "sane".
3076 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3077 alias in your environment" "$LINENO" 5
3080 test "$2" = conftest.file
3082 then
3083 # Ok.
3085 else
3086 as_fn_error $? "newly created file is older than distributed files!
3087 Check your system clock" "$LINENO" 5
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3090 $as_echo "yes" >&6; }
3091 test "$program_prefix" != NONE &&
3092 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3093 # Use a double $ so make ignores it.
3094 test "$program_suffix" != NONE &&
3095 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3096 # Double any \ or $.
3097 # By default was `s,x,x', remove it if useless.
3098 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3099 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3101 # expand $ac_aux_dir to an absolute path
3102 am_aux_dir=`cd $ac_aux_dir && pwd`
3104 if test x"${MISSING+set}" != xset; then
3105 case $am_aux_dir in
3106 *\ * | *\ *)
3107 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3109 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3110 esac
3112 # Use eval to expand $SHELL
3113 if eval "$MISSING --run true"; then
3114 am_missing_run="$MISSING --run "
3115 else
3116 am_missing_run=
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3118 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3121 if test x"${install_sh}" != xset; then
3122 case $am_aux_dir in
3123 *\ * | *\ *)
3124 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3126 install_sh="\${SHELL} $am_aux_dir/install-sh"
3127 esac
3130 # Installed binaries are usually stripped using `strip' when the user
3131 # run `make install-strip'. However `strip' might not be the right
3132 # tool to use in cross-compilation environments, therefore Automake
3133 # will honor the `STRIP' environment variable to overrule this program.
3134 if test "$cross_compiling" != no; then
3135 if test -n "$ac_tool_prefix"; then
3136 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3137 set dummy ${ac_tool_prefix}strip; ac_word=$2
3138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3139 $as_echo_n "checking for $ac_word... " >&6; }
3140 if ${ac_cv_prog_STRIP+:} false; then :
3141 $as_echo_n "(cached) " >&6
3142 else
3143 if test -n "$STRIP"; then
3144 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3145 else
3146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3147 for as_dir in $PATH
3149 IFS=$as_save_IFS
3150 test -z "$as_dir" && as_dir=.
3151 for ac_exec_ext in '' $ac_executable_extensions; do
3152 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3153 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3155 break 2
3157 done
3158 done
3159 IFS=$as_save_IFS
3163 STRIP=$ac_cv_prog_STRIP
3164 if test -n "$STRIP"; then
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3166 $as_echo "$STRIP" >&6; }
3167 else
3168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3169 $as_echo "no" >&6; }
3174 if test -z "$ac_cv_prog_STRIP"; then
3175 ac_ct_STRIP=$STRIP
3176 # Extract the first word of "strip", so it can be a program name with args.
3177 set dummy strip; ac_word=$2
3178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3179 $as_echo_n "checking for $ac_word... " >&6; }
3180 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3181 $as_echo_n "(cached) " >&6
3182 else
3183 if test -n "$ac_ct_STRIP"; then
3184 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3185 else
3186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3187 for as_dir in $PATH
3189 IFS=$as_save_IFS
3190 test -z "$as_dir" && as_dir=.
3191 for ac_exec_ext in '' $ac_executable_extensions; do
3192 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3193 ac_cv_prog_ac_ct_STRIP="strip"
3194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3195 break 2
3197 done
3198 done
3199 IFS=$as_save_IFS
3203 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3204 if test -n "$ac_ct_STRIP"; then
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3206 $as_echo "$ac_ct_STRIP" >&6; }
3207 else
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3209 $as_echo "no" >&6; }
3212 if test "x$ac_ct_STRIP" = x; then
3213 STRIP=":"
3214 else
3215 case $cross_compiling:$ac_tool_warned in
3216 yes:)
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3218 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3219 ac_tool_warned=yes ;;
3220 esac
3221 STRIP=$ac_ct_STRIP
3223 else
3224 STRIP="$ac_cv_prog_STRIP"
3228 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3231 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3232 if test -z "$MKDIR_P"; then
3233 if ${ac_cv_path_mkdir+:} false; then :
3234 $as_echo_n "(cached) " >&6
3235 else
3236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3237 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3239 IFS=$as_save_IFS
3240 test -z "$as_dir" && as_dir=.
3241 for ac_prog in mkdir gmkdir; do
3242 for ac_exec_ext in '' $ac_executable_extensions; do
3243 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3244 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3245 'mkdir (GNU coreutils) '* | \
3246 'mkdir (coreutils) '* | \
3247 'mkdir (fileutils) '4.1*)
3248 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3249 break 3;;
3250 esac
3251 done
3252 done
3253 done
3254 IFS=$as_save_IFS
3258 test -d ./--version && rmdir ./--version
3259 if test "${ac_cv_path_mkdir+set}" = set; then
3260 MKDIR_P="$ac_cv_path_mkdir -p"
3261 else
3262 # As a last resort, use the slow shell script. Don't cache a
3263 # value for MKDIR_P within a source directory, because that will
3264 # break other packages using the cache if that directory is
3265 # removed, or if the value is a relative name.
3266 MKDIR_P="$ac_install_sh -d"
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3270 $as_echo "$MKDIR_P" >&6; }
3272 mkdir_p="$MKDIR_P"
3273 case $mkdir_p in
3274 [\\/$]* | ?:[\\/]*) ;;
3275 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3276 esac
3278 for ac_prog in gawk mawk nawk awk
3280 # Extract the first word of "$ac_prog", so it can be a program name with args.
3281 set dummy $ac_prog; ac_word=$2
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3283 $as_echo_n "checking for $ac_word... " >&6; }
3284 if ${ac_cv_prog_AWK+:} false; then :
3285 $as_echo_n "(cached) " >&6
3286 else
3287 if test -n "$AWK"; then
3288 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3289 else
3290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3291 for as_dir in $PATH
3293 IFS=$as_save_IFS
3294 test -z "$as_dir" && as_dir=.
3295 for ac_exec_ext in '' $ac_executable_extensions; do
3296 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3297 ac_cv_prog_AWK="$ac_prog"
3298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3299 break 2
3301 done
3302 done
3303 IFS=$as_save_IFS
3307 AWK=$ac_cv_prog_AWK
3308 if test -n "$AWK"; then
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3310 $as_echo "$AWK" >&6; }
3311 else
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3313 $as_echo "no" >&6; }
3317 test -n "$AWK" && break
3318 done
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3321 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3322 set x ${MAKE-make}
3323 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3324 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3325 $as_echo_n "(cached) " >&6
3326 else
3327 cat >conftest.make <<\_ACEOF
3328 SHELL = /bin/sh
3329 all:
3330 @echo '@@@%%%=$(MAKE)=@@@%%%'
3331 _ACEOF
3332 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3333 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3334 *@@@%%%=?*=@@@%%%*)
3335 eval ac_cv_prog_make_${ac_make}_set=yes;;
3337 eval ac_cv_prog_make_${ac_make}_set=no;;
3338 esac
3339 rm -f conftest.make
3341 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3343 $as_echo "yes" >&6; }
3344 SET_MAKE=
3345 else
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3347 $as_echo "no" >&6; }
3348 SET_MAKE="MAKE=${MAKE-make}"
3351 rm -rf .tst 2>/dev/null
3352 mkdir .tst 2>/dev/null
3353 if test -d .tst; then
3354 am__leading_dot=.
3355 else
3356 am__leading_dot=_
3358 rmdir .tst 2>/dev/null
3360 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3361 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3362 # is not polluted with repeated "-I."
3363 am__isrc=' -I$(srcdir)'
3364 # test to see if srcdir already configured
3365 if test -f $srcdir/config.status; then
3366 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3370 # test whether we have cygpath
3371 if test -z "$CYGPATH_W"; then
3372 if (cygpath --version) >/dev/null 2>/dev/null; then
3373 CYGPATH_W='cygpath -w'
3374 else
3375 CYGPATH_W=echo
3380 # Define the identity of the package.
3381 PACKAGE='alpine'
3382 VERSION='2.19.8'
3385 cat >>confdefs.h <<_ACEOF
3386 #define PACKAGE "$PACKAGE"
3387 _ACEOF
3390 cat >>confdefs.h <<_ACEOF
3391 #define VERSION "$VERSION"
3392 _ACEOF
3394 # Some tools Automake needs.
3396 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3399 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3402 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3405 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3408 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3410 # We need awk for the "check" target. The system "awk" is bad on
3411 # some platforms.
3412 # Always define AMTAR for backward compatibility.
3414 AMTAR=${AMTAR-"${am_missing_run}tar"}
3416 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3425 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3426 # Check whether --enable-maintainer-mode was given.
3427 if test "${enable_maintainer_mode+set}" = set; then :
3428 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3429 else
3430 USE_MAINTAINER_MODE=no
3433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3434 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3435 if test $USE_MAINTAINER_MODE = yes; then
3436 MAINTAINER_MODE_TRUE=
3437 MAINTAINER_MODE_FALSE='#'
3438 else
3439 MAINTAINER_MODE_TRUE='#'
3440 MAINTAINER_MODE_FALSE=
3443 MAINT=$MAINTAINER_MODE_TRUE
3447 # Make sure we can run config.sub.
3448 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3449 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3452 $as_echo_n "checking build system type... " >&6; }
3453 if ${ac_cv_build+:} false; then :
3454 $as_echo_n "(cached) " >&6
3455 else
3456 ac_build_alias=$build_alias
3457 test "x$ac_build_alias" = x &&
3458 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3459 test "x$ac_build_alias" = x &&
3460 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3461 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3462 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3466 $as_echo "$ac_cv_build" >&6; }
3467 case $ac_cv_build in
3468 *-*-*) ;;
3469 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3470 esac
3471 build=$ac_cv_build
3472 ac_save_IFS=$IFS; IFS='-'
3473 set x $ac_cv_build
3474 shift
3475 build_cpu=$1
3476 build_vendor=$2
3477 shift; shift
3478 # Remember, the first character of IFS is used to create $*,
3479 # except with old shells:
3480 build_os=$*
3481 IFS=$ac_save_IFS
3482 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3486 $as_echo_n "checking host system type... " >&6; }
3487 if ${ac_cv_host+:} false; then :
3488 $as_echo_n "(cached) " >&6
3489 else
3490 if test "x$host_alias" = x; then
3491 ac_cv_host=$ac_cv_build
3492 else
3493 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3494 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3499 $as_echo "$ac_cv_host" >&6; }
3500 case $ac_cv_host in
3501 *-*-*) ;;
3502 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3503 esac
3504 host=$ac_cv_host
3505 ac_save_IFS=$IFS; IFS='-'
3506 set x $ac_cv_host
3507 shift
3508 host_cpu=$1
3509 host_vendor=$2
3510 shift; shift
3511 # Remember, the first character of IFS is used to create $*,
3512 # except with old shells:
3513 host_os=$*
3514 IFS=$ac_save_IFS
3515 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3519 ac_ext=c
3520 ac_cpp='$CPP $CPPFLAGS'
3521 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3522 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3523 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3526 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring for $PACKAGE_STRING ($host))" >&5
3527 $as_echo "$as_me: Configuring for $PACKAGE_STRING ($host))" >&6;}
3529 # start out with intent to build Web Alpine
3530 WEB_BUILD=web/src/alpined.d
3533 ac_ext=c
3534 ac_cpp='$CPP $CPPFLAGS'
3535 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3536 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3537 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3538 if test -n "$ac_tool_prefix"; then
3539 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3540 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3542 $as_echo_n "checking for $ac_word... " >&6; }
3543 if ${ac_cv_prog_CC+:} false; then :
3544 $as_echo_n "(cached) " >&6
3545 else
3546 if test -n "$CC"; then
3547 ac_cv_prog_CC="$CC" # Let the user override the test.
3548 else
3549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3550 for as_dir in $PATH
3552 IFS=$as_save_IFS
3553 test -z "$as_dir" && as_dir=.
3554 for ac_exec_ext in '' $ac_executable_extensions; do
3555 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3556 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3558 break 2
3560 done
3561 done
3562 IFS=$as_save_IFS
3566 CC=$ac_cv_prog_CC
3567 if test -n "$CC"; then
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3569 $as_echo "$CC" >&6; }
3570 else
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3572 $as_echo "no" >&6; }
3577 if test -z "$ac_cv_prog_CC"; then
3578 ac_ct_CC=$CC
3579 # Extract the first word of "gcc", so it can be a program name with args.
3580 set dummy gcc; ac_word=$2
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3582 $as_echo_n "checking for $ac_word... " >&6; }
3583 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3584 $as_echo_n "(cached) " >&6
3585 else
3586 if test -n "$ac_ct_CC"; then
3587 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3588 else
3589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3590 for as_dir in $PATH
3592 IFS=$as_save_IFS
3593 test -z "$as_dir" && as_dir=.
3594 for ac_exec_ext in '' $ac_executable_extensions; do
3595 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3596 ac_cv_prog_ac_ct_CC="gcc"
3597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3598 break 2
3600 done
3601 done
3602 IFS=$as_save_IFS
3606 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3607 if test -n "$ac_ct_CC"; then
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3609 $as_echo "$ac_ct_CC" >&6; }
3610 else
3611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3612 $as_echo "no" >&6; }
3615 if test "x$ac_ct_CC" = x; then
3616 CC=""
3617 else
3618 case $cross_compiling:$ac_tool_warned in
3619 yes:)
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3621 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3622 ac_tool_warned=yes ;;
3623 esac
3624 CC=$ac_ct_CC
3626 else
3627 CC="$ac_cv_prog_CC"
3630 if test -z "$CC"; then
3631 if test -n "$ac_tool_prefix"; then
3632 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3633 set dummy ${ac_tool_prefix}cc; ac_word=$2
3634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3635 $as_echo_n "checking for $ac_word... " >&6; }
3636 if ${ac_cv_prog_CC+:} false; then :
3637 $as_echo_n "(cached) " >&6
3638 else
3639 if test -n "$CC"; then
3640 ac_cv_prog_CC="$CC" # Let the user override the test.
3641 else
3642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3643 for as_dir in $PATH
3645 IFS=$as_save_IFS
3646 test -z "$as_dir" && as_dir=.
3647 for ac_exec_ext in '' $ac_executable_extensions; do
3648 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3649 ac_cv_prog_CC="${ac_tool_prefix}cc"
3650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3651 break 2
3653 done
3654 done
3655 IFS=$as_save_IFS
3659 CC=$ac_cv_prog_CC
3660 if test -n "$CC"; then
3661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3662 $as_echo "$CC" >&6; }
3663 else
3664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3665 $as_echo "no" >&6; }
3671 if test -z "$CC"; then
3672 # Extract the first word of "cc", so it can be a program name with args.
3673 set dummy cc; ac_word=$2
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3675 $as_echo_n "checking for $ac_word... " >&6; }
3676 if ${ac_cv_prog_CC+:} false; then :
3677 $as_echo_n "(cached) " >&6
3678 else
3679 if test -n "$CC"; then
3680 ac_cv_prog_CC="$CC" # Let the user override the test.
3681 else
3682 ac_prog_rejected=no
3683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3684 for as_dir in $PATH
3686 IFS=$as_save_IFS
3687 test -z "$as_dir" && as_dir=.
3688 for ac_exec_ext in '' $ac_executable_extensions; do
3689 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3690 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3691 ac_prog_rejected=yes
3692 continue
3694 ac_cv_prog_CC="cc"
3695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3696 break 2
3698 done
3699 done
3700 IFS=$as_save_IFS
3702 if test $ac_prog_rejected = yes; then
3703 # We found a bogon in the path, so make sure we never use it.
3704 set dummy $ac_cv_prog_CC
3705 shift
3706 if test $# != 0; then
3707 # We chose a different compiler from the bogus one.
3708 # However, it has the same basename, so the bogon will be chosen
3709 # first if we set CC to just the basename; use the full file name.
3710 shift
3711 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3716 CC=$ac_cv_prog_CC
3717 if test -n "$CC"; then
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3719 $as_echo "$CC" >&6; }
3720 else
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3722 $as_echo "no" >&6; }
3727 if test -z "$CC"; then
3728 if test -n "$ac_tool_prefix"; then
3729 for ac_prog in cl.exe
3731 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3732 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3734 $as_echo_n "checking for $ac_word... " >&6; }
3735 if ${ac_cv_prog_CC+:} false; then :
3736 $as_echo_n "(cached) " >&6
3737 else
3738 if test -n "$CC"; then
3739 ac_cv_prog_CC="$CC" # Let the user override the test.
3740 else
3741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3742 for as_dir in $PATH
3744 IFS=$as_save_IFS
3745 test -z "$as_dir" && as_dir=.
3746 for ac_exec_ext in '' $ac_executable_extensions; do
3747 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3748 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3750 break 2
3752 done
3753 done
3754 IFS=$as_save_IFS
3758 CC=$ac_cv_prog_CC
3759 if test -n "$CC"; then
3760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3761 $as_echo "$CC" >&6; }
3762 else
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3764 $as_echo "no" >&6; }
3768 test -n "$CC" && break
3769 done
3771 if test -z "$CC"; then
3772 ac_ct_CC=$CC
3773 for ac_prog in cl.exe
3775 # Extract the first word of "$ac_prog", so it can be a program name with args.
3776 set dummy $ac_prog; ac_word=$2
3777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3778 $as_echo_n "checking for $ac_word... " >&6; }
3779 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3780 $as_echo_n "(cached) " >&6
3781 else
3782 if test -n "$ac_ct_CC"; then
3783 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3784 else
3785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3786 for as_dir in $PATH
3788 IFS=$as_save_IFS
3789 test -z "$as_dir" && as_dir=.
3790 for ac_exec_ext in '' $ac_executable_extensions; do
3791 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3792 ac_cv_prog_ac_ct_CC="$ac_prog"
3793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3794 break 2
3796 done
3797 done
3798 IFS=$as_save_IFS
3802 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3803 if test -n "$ac_ct_CC"; then
3804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3805 $as_echo "$ac_ct_CC" >&6; }
3806 else
3807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3808 $as_echo "no" >&6; }
3812 test -n "$ac_ct_CC" && break
3813 done
3815 if test "x$ac_ct_CC" = x; then
3816 CC=""
3817 else
3818 case $cross_compiling:$ac_tool_warned in
3819 yes:)
3820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3821 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3822 ac_tool_warned=yes ;;
3823 esac
3824 CC=$ac_ct_CC
3831 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3832 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3833 as_fn_error $? "no acceptable C compiler found in \$PATH
3834 See \`config.log' for more details" "$LINENO" 5; }
3836 # Provide some information about the compiler.
3837 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3838 set X $ac_compile
3839 ac_compiler=$2
3840 for ac_option in --version -v -V -qversion; do
3841 { { ac_try="$ac_compiler $ac_option >&5"
3842 case "(($ac_try" in
3843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3844 *) ac_try_echo=$ac_try;;
3845 esac
3846 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3847 $as_echo "$ac_try_echo"; } >&5
3848 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3849 ac_status=$?
3850 if test -s conftest.err; then
3851 sed '10a\
3852 ... rest of stderr output deleted ...
3853 10q' conftest.err >conftest.er1
3854 cat conftest.er1 >&5
3856 rm -f conftest.er1 conftest.err
3857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3858 test $ac_status = 0; }
3859 done
3861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3862 /* end confdefs.h. */
3865 main ()
3869 return 0;
3871 _ACEOF
3872 ac_clean_files_save=$ac_clean_files
3873 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3874 # Try to create an executable without -o first, disregard a.out.
3875 # It will help us diagnose broken compilers, and finding out an intuition
3876 # of exeext.
3877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3878 $as_echo_n "checking whether the C compiler works... " >&6; }
3879 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3881 # The possible output files:
3882 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3884 ac_rmfiles=
3885 for ac_file in $ac_files
3887 case $ac_file in
3888 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3889 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3890 esac
3891 done
3892 rm -f $ac_rmfiles
3894 if { { ac_try="$ac_link_default"
3895 case "(($ac_try" in
3896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3897 *) ac_try_echo=$ac_try;;
3898 esac
3899 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3900 $as_echo "$ac_try_echo"; } >&5
3901 (eval "$ac_link_default") 2>&5
3902 ac_status=$?
3903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3904 test $ac_status = 0; }; then :
3905 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3906 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3907 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3908 # so that the user can short-circuit this test for compilers unknown to
3909 # Autoconf.
3910 for ac_file in $ac_files ''
3912 test -f "$ac_file" || continue
3913 case $ac_file in
3914 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3916 [ab].out )
3917 # We found the default executable, but exeext='' is most
3918 # certainly right.
3919 break;;
3920 *.* )
3921 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3922 then :; else
3923 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3925 # We set ac_cv_exeext here because the later test for it is not
3926 # safe: cross compilers may not add the suffix if given an `-o'
3927 # argument, so we may need to know it at that point already.
3928 # Even if this section looks crufty: it has the advantage of
3929 # actually working.
3930 break;;
3932 break;;
3933 esac
3934 done
3935 test "$ac_cv_exeext" = no && ac_cv_exeext=
3937 else
3938 ac_file=''
3940 if test -z "$ac_file"; then :
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3942 $as_echo "no" >&6; }
3943 $as_echo "$as_me: failed program was:" >&5
3944 sed 's/^/| /' conftest.$ac_ext >&5
3946 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3947 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3948 as_fn_error 77 "C compiler cannot create executables
3949 See \`config.log' for more details" "$LINENO" 5; }
3950 else
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3952 $as_echo "yes" >&6; }
3954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3955 $as_echo_n "checking for C compiler default output file name... " >&6; }
3956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3957 $as_echo "$ac_file" >&6; }
3958 ac_exeext=$ac_cv_exeext
3960 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3961 ac_clean_files=$ac_clean_files_save
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3963 $as_echo_n "checking for suffix of executables... " >&6; }
3964 if { { ac_try="$ac_link"
3965 case "(($ac_try" in
3966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3967 *) ac_try_echo=$ac_try;;
3968 esac
3969 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3970 $as_echo "$ac_try_echo"; } >&5
3971 (eval "$ac_link") 2>&5
3972 ac_status=$?
3973 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3974 test $ac_status = 0; }; then :
3975 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3976 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3977 # work properly (i.e., refer to `conftest.exe'), while it won't with
3978 # `rm'.
3979 for ac_file in conftest.exe conftest conftest.*; do
3980 test -f "$ac_file" || continue
3981 case $ac_file in
3982 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3983 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3984 break;;
3985 * ) break;;
3986 esac
3987 done
3988 else
3989 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3990 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3991 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3992 See \`config.log' for more details" "$LINENO" 5; }
3994 rm -f conftest conftest$ac_cv_exeext
3995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3996 $as_echo "$ac_cv_exeext" >&6; }
3998 rm -f conftest.$ac_ext
3999 EXEEXT=$ac_cv_exeext
4000 ac_exeext=$EXEEXT
4001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4002 /* end confdefs.h. */
4003 #include <stdio.h>
4005 main ()
4007 FILE *f = fopen ("conftest.out", "w");
4008 return ferror (f) || fclose (f) != 0;
4011 return 0;
4013 _ACEOF
4014 ac_clean_files="$ac_clean_files conftest.out"
4015 # Check that the compiler produces executables we can run. If not, either
4016 # the compiler is broken, or we cross compile.
4017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4018 $as_echo_n "checking whether we are cross compiling... " >&6; }
4019 if test "$cross_compiling" != yes; then
4020 { { ac_try="$ac_link"
4021 case "(($ac_try" in
4022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4023 *) ac_try_echo=$ac_try;;
4024 esac
4025 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4026 $as_echo "$ac_try_echo"; } >&5
4027 (eval "$ac_link") 2>&5
4028 ac_status=$?
4029 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4030 test $ac_status = 0; }
4031 if { ac_try='./conftest$ac_cv_exeext'
4032 { { case "(($ac_try" in
4033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4034 *) ac_try_echo=$ac_try;;
4035 esac
4036 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4037 $as_echo "$ac_try_echo"; } >&5
4038 (eval "$ac_try") 2>&5
4039 ac_status=$?
4040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4041 test $ac_status = 0; }; }; then
4042 cross_compiling=no
4043 else
4044 if test "$cross_compiling" = maybe; then
4045 cross_compiling=yes
4046 else
4047 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4048 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4049 as_fn_error $? "cannot run C compiled programs.
4050 If you meant to cross compile, use \`--host'.
4051 See \`config.log' for more details" "$LINENO" 5; }
4055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4056 $as_echo "$cross_compiling" >&6; }
4058 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4059 ac_clean_files=$ac_clean_files_save
4060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4061 $as_echo_n "checking for suffix of object files... " >&6; }
4062 if ${ac_cv_objext+:} false; then :
4063 $as_echo_n "(cached) " >&6
4064 else
4065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4066 /* end confdefs.h. */
4069 main ()
4073 return 0;
4075 _ACEOF
4076 rm -f conftest.o conftest.obj
4077 if { { ac_try="$ac_compile"
4078 case "(($ac_try" in
4079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4080 *) ac_try_echo=$ac_try;;
4081 esac
4082 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4083 $as_echo "$ac_try_echo"; } >&5
4084 (eval "$ac_compile") 2>&5
4085 ac_status=$?
4086 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4087 test $ac_status = 0; }; then :
4088 for ac_file in conftest.o conftest.obj conftest.*; do
4089 test -f "$ac_file" || continue;
4090 case $ac_file in
4091 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4092 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4093 break;;
4094 esac
4095 done
4096 else
4097 $as_echo "$as_me: failed program was:" >&5
4098 sed 's/^/| /' conftest.$ac_ext >&5
4100 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4101 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4102 as_fn_error $? "cannot compute suffix of object files: cannot compile
4103 See \`config.log' for more details" "$LINENO" 5; }
4105 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4108 $as_echo "$ac_cv_objext" >&6; }
4109 OBJEXT=$ac_cv_objext
4110 ac_objext=$OBJEXT
4111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4112 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4113 if ${ac_cv_c_compiler_gnu+:} false; then :
4114 $as_echo_n "(cached) " >&6
4115 else
4116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4117 /* end confdefs.h. */
4120 main ()
4122 #ifndef __GNUC__
4123 choke me
4124 #endif
4127 return 0;
4129 _ACEOF
4130 if ac_fn_c_try_compile "$LINENO"; then :
4131 ac_compiler_gnu=yes
4132 else
4133 ac_compiler_gnu=no
4135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4136 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4140 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4141 if test $ac_compiler_gnu = yes; then
4142 GCC=yes
4143 else
4144 GCC=
4146 ac_test_CFLAGS=${CFLAGS+set}
4147 ac_save_CFLAGS=$CFLAGS
4148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4149 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4150 if ${ac_cv_prog_cc_g+:} false; then :
4151 $as_echo_n "(cached) " >&6
4152 else
4153 ac_save_c_werror_flag=$ac_c_werror_flag
4154 ac_c_werror_flag=yes
4155 ac_cv_prog_cc_g=no
4156 CFLAGS="-g"
4157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4158 /* end confdefs.h. */
4161 main ()
4165 return 0;
4167 _ACEOF
4168 if ac_fn_c_try_compile "$LINENO"; then :
4169 ac_cv_prog_cc_g=yes
4170 else
4171 CFLAGS=""
4172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4173 /* end confdefs.h. */
4176 main ()
4180 return 0;
4182 _ACEOF
4183 if ac_fn_c_try_compile "$LINENO"; then :
4185 else
4186 ac_c_werror_flag=$ac_save_c_werror_flag
4187 CFLAGS="-g"
4188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4189 /* end confdefs.h. */
4192 main ()
4196 return 0;
4198 _ACEOF
4199 if ac_fn_c_try_compile "$LINENO"; then :
4200 ac_cv_prog_cc_g=yes
4202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4207 ac_c_werror_flag=$ac_save_c_werror_flag
4209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4210 $as_echo "$ac_cv_prog_cc_g" >&6; }
4211 if test "$ac_test_CFLAGS" = set; then
4212 CFLAGS=$ac_save_CFLAGS
4213 elif test $ac_cv_prog_cc_g = yes; then
4214 if test "$GCC" = yes; then
4215 CFLAGS="-g -O2"
4216 else
4217 CFLAGS="-g"
4219 else
4220 if test "$GCC" = yes; then
4221 CFLAGS="-O2"
4222 else
4223 CFLAGS=
4226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4227 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4228 if ${ac_cv_prog_cc_c89+:} false; then :
4229 $as_echo_n "(cached) " >&6
4230 else
4231 ac_cv_prog_cc_c89=no
4232 ac_save_CC=$CC
4233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4234 /* end confdefs.h. */
4235 #include <stdarg.h>
4236 #include <stdio.h>
4237 struct stat;
4238 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4239 struct buf { int x; };
4240 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4241 static char *e (p, i)
4242 char **p;
4243 int i;
4245 return p[i];
4247 static char *f (char * (*g) (char **, int), char **p, ...)
4249 char *s;
4250 va_list v;
4251 va_start (v,p);
4252 s = g (p, va_arg (v,int));
4253 va_end (v);
4254 return s;
4257 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4258 function prototypes and stuff, but not '\xHH' hex character constants.
4259 These don't provoke an error unfortunately, instead are silently treated
4260 as 'x'. The following induces an error, until -std is added to get
4261 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4262 array size at least. It's necessary to write '\x00'==0 to get something
4263 that's true only with -std. */
4264 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4266 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4267 inside strings and character constants. */
4268 #define FOO(x) 'x'
4269 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4271 int test (int i, double x);
4272 struct s1 {int (*f) (int a);};
4273 struct s2 {int (*f) (double a);};
4274 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4275 int argc;
4276 char **argv;
4278 main ()
4280 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4282 return 0;
4284 _ACEOF
4285 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4286 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4288 CC="$ac_save_CC $ac_arg"
4289 if ac_fn_c_try_compile "$LINENO"; then :
4290 ac_cv_prog_cc_c89=$ac_arg
4292 rm -f core conftest.err conftest.$ac_objext
4293 test "x$ac_cv_prog_cc_c89" != "xno" && break
4294 done
4295 rm -f conftest.$ac_ext
4296 CC=$ac_save_CC
4299 # AC_CACHE_VAL
4300 case "x$ac_cv_prog_cc_c89" in
4302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4303 $as_echo "none needed" >&6; } ;;
4304 xno)
4305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4306 $as_echo "unsupported" >&6; } ;;
4308 CC="$CC $ac_cv_prog_cc_c89"
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4310 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4311 esac
4312 if test "x$ac_cv_prog_cc_c89" != xno; then :
4316 ac_ext=c
4317 ac_cpp='$CPP $CPPFLAGS'
4318 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4319 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4320 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4321 DEPDIR="${am__leading_dot}deps"
4323 ac_config_commands="$ac_config_commands depfiles"
4326 am_make=${MAKE-make}
4327 cat > confinc << 'END'
4328 am__doit:
4329 @echo this is the am__doit target
4330 .PHONY: am__doit
4332 # If we don't find an include directive, just comment out the code.
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4334 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4335 am__include="#"
4336 am__quote=
4337 _am_result=none
4338 # First try GNU make style include.
4339 echo "include confinc" > confmf
4340 # Ignore all kinds of additional output from `make'.
4341 case `$am_make -s -f confmf 2> /dev/null` in #(
4342 *the\ am__doit\ target*)
4343 am__include=include
4344 am__quote=
4345 _am_result=GNU
4347 esac
4348 # Now try BSD make style include.
4349 if test "$am__include" = "#"; then
4350 echo '.include "confinc"' > confmf
4351 case `$am_make -s -f confmf 2> /dev/null` in #(
4352 *the\ am__doit\ target*)
4353 am__include=.include
4354 am__quote="\""
4355 _am_result=BSD
4357 esac
4361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4362 $as_echo "$_am_result" >&6; }
4363 rm -f confinc confmf
4365 # Check whether --enable-dependency-tracking was given.
4366 if test "${enable_dependency_tracking+set}" = set; then :
4367 enableval=$enable_dependency_tracking;
4370 if test "x$enable_dependency_tracking" != xno; then
4371 am_depcomp="$ac_aux_dir/depcomp"
4372 AMDEPBACKSLASH='\'
4374 if test "x$enable_dependency_tracking" != xno; then
4375 AMDEP_TRUE=
4376 AMDEP_FALSE='#'
4377 else
4378 AMDEP_TRUE='#'
4379 AMDEP_FALSE=
4384 depcc="$CC" am_compiler_list=
4386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4387 $as_echo_n "checking dependency style of $depcc... " >&6; }
4388 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4389 $as_echo_n "(cached) " >&6
4390 else
4391 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4392 # We make a subdir and do the tests there. Otherwise we can end up
4393 # making bogus files that we don't know about and never remove. For
4394 # instance it was reported that on HP-UX the gcc test will end up
4395 # making a dummy file named `D' -- because `-MD' means `put the output
4396 # in D'.
4397 mkdir conftest.dir
4398 # Copy depcomp to subdir because otherwise we won't find it if we're
4399 # using a relative directory.
4400 cp "$am_depcomp" conftest.dir
4401 cd conftest.dir
4402 # We will build objects and dependencies in a subdirectory because
4403 # it helps to detect inapplicable dependency modes. For instance
4404 # both Tru64's cc and ICC support -MD to output dependencies as a
4405 # side effect of compilation, but ICC will put the dependencies in
4406 # the current directory while Tru64 will put them in the object
4407 # directory.
4408 mkdir sub
4410 am_cv_CC_dependencies_compiler_type=none
4411 if test "$am_compiler_list" = ""; then
4412 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4414 am__universal=false
4415 case " $depcc " in #(
4416 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4417 esac
4419 for depmode in $am_compiler_list; do
4420 # Setup a source with many dependencies, because some compilers
4421 # like to wrap large dependency lists on column 80 (with \), and
4422 # we should not choose a depcomp mode which is confused by this.
4424 # We need to recreate these files for each test, as the compiler may
4425 # overwrite some of them when testing with obscure command lines.
4426 # This happens at least with the AIX C compiler.
4427 : > sub/conftest.c
4428 for i in 1 2 3 4 5 6; do
4429 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4430 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4431 # Solaris 8's {/usr,}/bin/sh.
4432 touch sub/conftst$i.h
4433 done
4434 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4436 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4437 # mode. It turns out that the SunPro C++ compiler does not properly
4438 # handle `-M -o', and we need to detect this. Also, some Intel
4439 # versions had trouble with output in subdirs
4440 am__obj=sub/conftest.${OBJEXT-o}
4441 am__minus_obj="-o $am__obj"
4442 case $depmode in
4443 gcc)
4444 # This depmode causes a compiler race in universal mode.
4445 test "$am__universal" = false || continue
4447 nosideeffect)
4448 # after this tag, mechanisms are not by side-effect, so they'll
4449 # only be used when explicitly requested
4450 if test "x$enable_dependency_tracking" = xyes; then
4451 continue
4452 else
4453 break
4456 msvisualcpp | msvcmsys)
4457 # This compiler won't grok `-c -o', but also, the minuso test has
4458 # not run yet. These depmodes are late enough in the game, and
4459 # so weak that their functioning should not be impacted.
4460 am__obj=conftest.${OBJEXT-o}
4461 am__minus_obj=
4463 none) break ;;
4464 esac
4465 if depmode=$depmode \
4466 source=sub/conftest.c object=$am__obj \
4467 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4468 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4469 >/dev/null 2>conftest.err &&
4470 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4471 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4472 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4473 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4474 # icc doesn't choke on unknown options, it will just issue warnings
4475 # or remarks (even with -Werror). So we grep stderr for any message
4476 # that says an option was ignored or not supported.
4477 # When given -MP, icc 7.0 and 7.1 complain thusly:
4478 # icc: Command line warning: ignoring option '-M'; no argument required
4479 # The diagnosis changed in icc 8.0:
4480 # icc: Command line remark: option '-MP' not supported
4481 if (grep 'ignoring option' conftest.err ||
4482 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4483 am_cv_CC_dependencies_compiler_type=$depmode
4484 break
4487 done
4489 cd ..
4490 rm -rf conftest.dir
4491 else
4492 am_cv_CC_dependencies_compiler_type=none
4496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4497 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4498 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4501 test "x$enable_dependency_tracking" != xno \
4502 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4503 am__fastdepCC_TRUE=
4504 am__fastdepCC_FALSE='#'
4505 else
4506 am__fastdepCC_TRUE='#'
4507 am__fastdepCC_FALSE=
4511 case $ac_cv_prog_cc_stdc in #(
4512 no) :
4513 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
4514 *) :
4515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4516 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4517 if ${ac_cv_prog_cc_c99+:} false; then :
4518 $as_echo_n "(cached) " >&6
4519 else
4520 ac_cv_prog_cc_c99=no
4521 ac_save_CC=$CC
4522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4523 /* end confdefs.h. */
4524 #include <stdarg.h>
4525 #include <stdbool.h>
4526 #include <stdlib.h>
4527 #include <wchar.h>
4528 #include <stdio.h>
4530 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4531 #define debug(...) fprintf (stderr, __VA_ARGS__)
4532 #define showlist(...) puts (#__VA_ARGS__)
4533 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4534 static void
4535 test_varargs_macros (void)
4537 int x = 1234;
4538 int y = 5678;
4539 debug ("Flag");
4540 debug ("X = %d\n", x);
4541 showlist (The first, second, and third items.);
4542 report (x>y, "x is %d but y is %d", x, y);
4545 // Check long long types.
4546 #define BIG64 18446744073709551615ull
4547 #define BIG32 4294967295ul
4548 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4549 #if !BIG_OK
4550 your preprocessor is broken;
4551 #endif
4552 #if BIG_OK
4553 #else
4554 your preprocessor is broken;
4555 #endif
4556 static long long int bignum = -9223372036854775807LL;
4557 static unsigned long long int ubignum = BIG64;
4559 struct incomplete_array
4561 int datasize;
4562 double data[];
4565 struct named_init {
4566 int number;
4567 const wchar_t *name;
4568 double average;
4571 typedef const char *ccp;
4573 static inline int
4574 test_restrict (ccp restrict text)
4576 // See if C++-style comments work.
4577 // Iterate through items via the restricted pointer.
4578 // Also check for declarations in for loops.
4579 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4580 continue;
4581 return 0;
4584 // Check varargs and va_copy.
4585 static void
4586 test_varargs (const char *format, ...)
4588 va_list args;
4589 va_start (args, format);
4590 va_list args_copy;
4591 va_copy (args_copy, args);
4593 const char *str;
4594 int number;
4595 float fnumber;
4597 while (*format)
4599 switch (*format++)
4601 case 's': // string
4602 str = va_arg (args_copy, const char *);
4603 break;
4604 case 'd': // int
4605 number = va_arg (args_copy, int);
4606 break;
4607 case 'f': // float
4608 fnumber = va_arg (args_copy, double);
4609 break;
4610 default:
4611 break;
4614 va_end (args_copy);
4615 va_end (args);
4619 main ()
4622 // Check bool.
4623 _Bool success = false;
4625 // Check restrict.
4626 if (test_restrict ("String literal") == 0)
4627 success = true;
4628 char *restrict newvar = "Another string";
4630 // Check varargs.
4631 test_varargs ("s, d' f .", "string", 65, 34.234);
4632 test_varargs_macros ();
4634 // Check flexible array members.
4635 struct incomplete_array *ia =
4636 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4637 ia->datasize = 10;
4638 for (int i = 0; i < ia->datasize; ++i)
4639 ia->data[i] = i * 1.234;
4641 // Check named initializers.
4642 struct named_init ni = {
4643 .number = 34,
4644 .name = L"Test wide string",
4645 .average = 543.34343,
4648 ni.number = 58;
4650 int dynamic_array[ni.number];
4651 dynamic_array[ni.number - 1] = 543;
4653 // work around unused variable warnings
4654 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4655 || dynamic_array[ni.number - 1] != 543);
4658 return 0;
4660 _ACEOF
4661 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4663 CC="$ac_save_CC $ac_arg"
4664 if ac_fn_c_try_compile "$LINENO"; then :
4665 ac_cv_prog_cc_c99=$ac_arg
4667 rm -f core conftest.err conftest.$ac_objext
4668 test "x$ac_cv_prog_cc_c99" != "xno" && break
4669 done
4670 rm -f conftest.$ac_ext
4671 CC=$ac_save_CC
4674 # AC_CACHE_VAL
4675 case "x$ac_cv_prog_cc_c99" in
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4678 $as_echo "none needed" >&6; } ;;
4679 xno)
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4681 $as_echo "unsupported" >&6; } ;;
4683 CC="$CC $ac_cv_prog_cc_c99"
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4685 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4686 esac
4687 if test "x$ac_cv_prog_cc_c99" != xno; then :
4688 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4689 else
4690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4691 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4692 if ${ac_cv_prog_cc_c89+:} false; then :
4693 $as_echo_n "(cached) " >&6
4694 else
4695 ac_cv_prog_cc_c89=no
4696 ac_save_CC=$CC
4697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4698 /* end confdefs.h. */
4699 #include <stdarg.h>
4700 #include <stdio.h>
4701 struct stat;
4702 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4703 struct buf { int x; };
4704 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4705 static char *e (p, i)
4706 char **p;
4707 int i;
4709 return p[i];
4711 static char *f (char * (*g) (char **, int), char **p, ...)
4713 char *s;
4714 va_list v;
4715 va_start (v,p);
4716 s = g (p, va_arg (v,int));
4717 va_end (v);
4718 return s;
4721 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4722 function prototypes and stuff, but not '\xHH' hex character constants.
4723 These don't provoke an error unfortunately, instead are silently treated
4724 as 'x'. The following induces an error, until -std is added to get
4725 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4726 array size at least. It's necessary to write '\x00'==0 to get something
4727 that's true only with -std. */
4728 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4730 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4731 inside strings and character constants. */
4732 #define FOO(x) 'x'
4733 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4735 int test (int i, double x);
4736 struct s1 {int (*f) (int a);};
4737 struct s2 {int (*f) (double a);};
4738 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4739 int argc;
4740 char **argv;
4742 main ()
4744 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4746 return 0;
4748 _ACEOF
4749 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4750 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4752 CC="$ac_save_CC $ac_arg"
4753 if ac_fn_c_try_compile "$LINENO"; then :
4754 ac_cv_prog_cc_c89=$ac_arg
4756 rm -f core conftest.err conftest.$ac_objext
4757 test "x$ac_cv_prog_cc_c89" != "xno" && break
4758 done
4759 rm -f conftest.$ac_ext
4760 CC=$ac_save_CC
4763 # AC_CACHE_VAL
4764 case "x$ac_cv_prog_cc_c89" in
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4767 $as_echo "none needed" >&6; } ;;
4768 xno)
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4770 $as_echo "unsupported" >&6; } ;;
4772 CC="$CC $ac_cv_prog_cc_c89"
4773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4774 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4775 esac
4776 if test "x$ac_cv_prog_cc_c89" != xno; then :
4777 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4778 else
4779 ac_cv_prog_cc_stdc=no
4784 esac
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
4786 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
4787 if ${ac_cv_prog_cc_stdc+:} false; then :
4788 $as_echo_n "(cached) " >&6
4791 case $ac_cv_prog_cc_stdc in #(
4792 no) :
4793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4794 $as_echo "unsupported" >&6; } ;; #(
4795 '') :
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4797 $as_echo "none needed" >&6; } ;; #(
4798 *) :
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
4800 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
4801 esac
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4805 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4806 set x ${MAKE-make}
4807 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4808 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4809 $as_echo_n "(cached) " >&6
4810 else
4811 cat >conftest.make <<\_ACEOF
4812 SHELL = /bin/sh
4813 all:
4814 @echo '@@@%%%=$(MAKE)=@@@%%%'
4815 _ACEOF
4816 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4817 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4818 *@@@%%%=?*=@@@%%%*)
4819 eval ac_cv_prog_make_${ac_make}_set=yes;;
4821 eval ac_cv_prog_make_${ac_make}_set=no;;
4822 esac
4823 rm -f conftest.make
4825 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4827 $as_echo "yes" >&6; }
4828 SET_MAKE=
4829 else
4830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4831 $as_echo "no" >&6; }
4832 SET_MAKE="MAKE=${MAKE-make}"
4835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4836 $as_echo_n "checking whether ln -s works... " >&6; }
4837 LN_S=$as_ln_s
4838 if test "$LN_S" = "ln -s"; then
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4840 $as_echo "yes" >&6; }
4841 else
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4843 $as_echo "no, using $LN_S" >&6; }
4846 for ac_prog in gawk mawk nawk awk
4848 # Extract the first word of "$ac_prog", so it can be a program name with args.
4849 set dummy $ac_prog; ac_word=$2
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4851 $as_echo_n "checking for $ac_word... " >&6; }
4852 if ${ac_cv_prog_AWK+:} false; then :
4853 $as_echo_n "(cached) " >&6
4854 else
4855 if test -n "$AWK"; then
4856 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4857 else
4858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4859 for as_dir in $PATH
4861 IFS=$as_save_IFS
4862 test -z "$as_dir" && as_dir=.
4863 for ac_exec_ext in '' $ac_executable_extensions; do
4864 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4865 ac_cv_prog_AWK="$ac_prog"
4866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4867 break 2
4869 done
4870 done
4871 IFS=$as_save_IFS
4875 AWK=$ac_cv_prog_AWK
4876 if test -n "$AWK"; then
4877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4878 $as_echo "$AWK" >&6; }
4879 else
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4881 $as_echo "no" >&6; }
4885 test -n "$AWK" && break
4886 done
4888 if test -n "$ac_tool_prefix"; then
4889 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4890 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4892 $as_echo_n "checking for $ac_word... " >&6; }
4893 if ${ac_cv_prog_RANLIB+:} false; then :
4894 $as_echo_n "(cached) " >&6
4895 else
4896 if test -n "$RANLIB"; then
4897 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4898 else
4899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4900 for as_dir in $PATH
4902 IFS=$as_save_IFS
4903 test -z "$as_dir" && as_dir=.
4904 for ac_exec_ext in '' $ac_executable_extensions; do
4905 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4906 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4908 break 2
4910 done
4911 done
4912 IFS=$as_save_IFS
4916 RANLIB=$ac_cv_prog_RANLIB
4917 if test -n "$RANLIB"; then
4918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4919 $as_echo "$RANLIB" >&6; }
4920 else
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4922 $as_echo "no" >&6; }
4927 if test -z "$ac_cv_prog_RANLIB"; then
4928 ac_ct_RANLIB=$RANLIB
4929 # Extract the first word of "ranlib", so it can be a program name with args.
4930 set dummy ranlib; ac_word=$2
4931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4932 $as_echo_n "checking for $ac_word... " >&6; }
4933 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4934 $as_echo_n "(cached) " >&6
4935 else
4936 if test -n "$ac_ct_RANLIB"; then
4937 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4938 else
4939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4940 for as_dir in $PATH
4942 IFS=$as_save_IFS
4943 test -z "$as_dir" && as_dir=.
4944 for ac_exec_ext in '' $ac_executable_extensions; do
4945 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4946 ac_cv_prog_ac_ct_RANLIB="ranlib"
4947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4948 break 2
4950 done
4951 done
4952 IFS=$as_save_IFS
4956 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4957 if test -n "$ac_ct_RANLIB"; then
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4959 $as_echo "$ac_ct_RANLIB" >&6; }
4960 else
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4962 $as_echo "no" >&6; }
4965 if test "x$ac_ct_RANLIB" = x; then
4966 RANLIB=":"
4967 else
4968 case $cross_compiling:$ac_tool_warned in
4969 yes:)
4970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4971 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4972 ac_tool_warned=yes ;;
4973 esac
4974 RANLIB=$ac_ct_RANLIB
4976 else
4977 RANLIB="$ac_cv_prog_RANLIB"
4980 case `pwd` in
4981 *\ * | *\ *)
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4983 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4984 esac
4988 macro_version='2.2.6b'
4989 macro_revision='1.3018'
5003 ltmain="$ac_aux_dir/ltmain.sh"
5005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5006 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5007 if ${ac_cv_path_SED+:} false; then :
5008 $as_echo_n "(cached) " >&6
5009 else
5010 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5011 for ac_i in 1 2 3 4 5 6 7; do
5012 ac_script="$ac_script$as_nl$ac_script"
5013 done
5014 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5015 { ac_script=; unset ac_script;}
5016 if test -z "$SED"; then
5017 ac_path_SED_found=false
5018 # Loop through the user's path and test for each of PROGNAME-LIST
5019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5020 for as_dir in $PATH
5022 IFS=$as_save_IFS
5023 test -z "$as_dir" && as_dir=.
5024 for ac_prog in sed gsed; do
5025 for ac_exec_ext in '' $ac_executable_extensions; do
5026 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5027 as_fn_executable_p "$ac_path_SED" || continue
5028 # Check for GNU ac_path_SED and select it if it is found.
5029 # Check for GNU $ac_path_SED
5030 case `"$ac_path_SED" --version 2>&1` in
5031 *GNU*)
5032 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5034 ac_count=0
5035 $as_echo_n 0123456789 >"conftest.in"
5036 while :
5038 cat "conftest.in" "conftest.in" >"conftest.tmp"
5039 mv "conftest.tmp" "conftest.in"
5040 cp "conftest.in" "conftest.nl"
5041 $as_echo '' >> "conftest.nl"
5042 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5043 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5044 as_fn_arith $ac_count + 1 && ac_count=$as_val
5045 if test $ac_count -gt ${ac_path_SED_max-0}; then
5046 # Best one so far, save it but keep looking for a better one
5047 ac_cv_path_SED="$ac_path_SED"
5048 ac_path_SED_max=$ac_count
5050 # 10*(2^10) chars as input seems more than enough
5051 test $ac_count -gt 10 && break
5052 done
5053 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5054 esac
5056 $ac_path_SED_found && break 3
5057 done
5058 done
5059 done
5060 IFS=$as_save_IFS
5061 if test -z "$ac_cv_path_SED"; then
5062 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5064 else
5065 ac_cv_path_SED=$SED
5069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5070 $as_echo "$ac_cv_path_SED" >&6; }
5071 SED="$ac_cv_path_SED"
5072 rm -f conftest.sed
5074 test -z "$SED" && SED=sed
5075 Xsed="$SED -e 1s/^X//"
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5088 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5089 if ${ac_cv_path_GREP+:} false; then :
5090 $as_echo_n "(cached) " >&6
5091 else
5092 if test -z "$GREP"; then
5093 ac_path_GREP_found=false
5094 # Loop through the user's path and test for each of PROGNAME-LIST
5095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5096 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5098 IFS=$as_save_IFS
5099 test -z "$as_dir" && as_dir=.
5100 for ac_prog in grep ggrep; do
5101 for ac_exec_ext in '' $ac_executable_extensions; do
5102 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5103 as_fn_executable_p "$ac_path_GREP" || continue
5104 # Check for GNU ac_path_GREP and select it if it is found.
5105 # Check for GNU $ac_path_GREP
5106 case `"$ac_path_GREP" --version 2>&1` in
5107 *GNU*)
5108 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5110 ac_count=0
5111 $as_echo_n 0123456789 >"conftest.in"
5112 while :
5114 cat "conftest.in" "conftest.in" >"conftest.tmp"
5115 mv "conftest.tmp" "conftest.in"
5116 cp "conftest.in" "conftest.nl"
5117 $as_echo 'GREP' >> "conftest.nl"
5118 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5119 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5120 as_fn_arith $ac_count + 1 && ac_count=$as_val
5121 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5122 # Best one so far, save it but keep looking for a better one
5123 ac_cv_path_GREP="$ac_path_GREP"
5124 ac_path_GREP_max=$ac_count
5126 # 10*(2^10) chars as input seems more than enough
5127 test $ac_count -gt 10 && break
5128 done
5129 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5130 esac
5132 $ac_path_GREP_found && break 3
5133 done
5134 done
5135 done
5136 IFS=$as_save_IFS
5137 if test -z "$ac_cv_path_GREP"; then
5138 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5140 else
5141 ac_cv_path_GREP=$GREP
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5146 $as_echo "$ac_cv_path_GREP" >&6; }
5147 GREP="$ac_cv_path_GREP"
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5151 $as_echo_n "checking for egrep... " >&6; }
5152 if ${ac_cv_path_EGREP+:} false; then :
5153 $as_echo_n "(cached) " >&6
5154 else
5155 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5156 then ac_cv_path_EGREP="$GREP -E"
5157 else
5158 if test -z "$EGREP"; then
5159 ac_path_EGREP_found=false
5160 # Loop through the user's path and test for each of PROGNAME-LIST
5161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5162 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5164 IFS=$as_save_IFS
5165 test -z "$as_dir" && as_dir=.
5166 for ac_prog in egrep; do
5167 for ac_exec_ext in '' $ac_executable_extensions; do
5168 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5169 as_fn_executable_p "$ac_path_EGREP" || continue
5170 # Check for GNU ac_path_EGREP and select it if it is found.
5171 # Check for GNU $ac_path_EGREP
5172 case `"$ac_path_EGREP" --version 2>&1` in
5173 *GNU*)
5174 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5176 ac_count=0
5177 $as_echo_n 0123456789 >"conftest.in"
5178 while :
5180 cat "conftest.in" "conftest.in" >"conftest.tmp"
5181 mv "conftest.tmp" "conftest.in"
5182 cp "conftest.in" "conftest.nl"
5183 $as_echo 'EGREP' >> "conftest.nl"
5184 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5185 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5186 as_fn_arith $ac_count + 1 && ac_count=$as_val
5187 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5188 # Best one so far, save it but keep looking for a better one
5189 ac_cv_path_EGREP="$ac_path_EGREP"
5190 ac_path_EGREP_max=$ac_count
5192 # 10*(2^10) chars as input seems more than enough
5193 test $ac_count -gt 10 && break
5194 done
5195 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5196 esac
5198 $ac_path_EGREP_found && break 3
5199 done
5200 done
5201 done
5202 IFS=$as_save_IFS
5203 if test -z "$ac_cv_path_EGREP"; then
5204 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5206 else
5207 ac_cv_path_EGREP=$EGREP
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5213 $as_echo "$ac_cv_path_EGREP" >&6; }
5214 EGREP="$ac_cv_path_EGREP"
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5218 $as_echo_n "checking for fgrep... " >&6; }
5219 if ${ac_cv_path_FGREP+:} false; then :
5220 $as_echo_n "(cached) " >&6
5221 else
5222 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5223 then ac_cv_path_FGREP="$GREP -F"
5224 else
5225 if test -z "$FGREP"; then
5226 ac_path_FGREP_found=false
5227 # Loop through the user's path and test for each of PROGNAME-LIST
5228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5229 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5231 IFS=$as_save_IFS
5232 test -z "$as_dir" && as_dir=.
5233 for ac_prog in fgrep; do
5234 for ac_exec_ext in '' $ac_executable_extensions; do
5235 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5236 as_fn_executable_p "$ac_path_FGREP" || continue
5237 # Check for GNU ac_path_FGREP and select it if it is found.
5238 # Check for GNU $ac_path_FGREP
5239 case `"$ac_path_FGREP" --version 2>&1` in
5240 *GNU*)
5241 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5243 ac_count=0
5244 $as_echo_n 0123456789 >"conftest.in"
5245 while :
5247 cat "conftest.in" "conftest.in" >"conftest.tmp"
5248 mv "conftest.tmp" "conftest.in"
5249 cp "conftest.in" "conftest.nl"
5250 $as_echo 'FGREP' >> "conftest.nl"
5251 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5252 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5253 as_fn_arith $ac_count + 1 && ac_count=$as_val
5254 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5255 # Best one so far, save it but keep looking for a better one
5256 ac_cv_path_FGREP="$ac_path_FGREP"
5257 ac_path_FGREP_max=$ac_count
5259 # 10*(2^10) chars as input seems more than enough
5260 test $ac_count -gt 10 && break
5261 done
5262 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5263 esac
5265 $ac_path_FGREP_found && break 3
5266 done
5267 done
5268 done
5269 IFS=$as_save_IFS
5270 if test -z "$ac_cv_path_FGREP"; then
5271 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5273 else
5274 ac_cv_path_FGREP=$FGREP
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5280 $as_echo "$ac_cv_path_FGREP" >&6; }
5281 FGREP="$ac_cv_path_FGREP"
5284 test -z "$GREP" && GREP=grep
5304 # Check whether --with-gnu-ld was given.
5305 if test "${with_gnu_ld+set}" = set; then :
5306 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5307 else
5308 with_gnu_ld=no
5311 ac_prog=ld
5312 if test "$GCC" = yes; then
5313 # Check if gcc -print-prog-name=ld gives a path.
5314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5315 $as_echo_n "checking for ld used by $CC... " >&6; }
5316 case $host in
5317 *-*-mingw*)
5318 # gcc leaves a trailing carriage return which upsets mingw
5319 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5321 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5322 esac
5323 case $ac_prog in
5324 # Accept absolute paths.
5325 [\\/]* | ?:[\\/]*)
5326 re_direlt='/[^/][^/]*/\.\./'
5327 # Canonicalize the pathname of ld
5328 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5329 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5330 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5331 done
5332 test -z "$LD" && LD="$ac_prog"
5335 # If it fails, then pretend we aren't using GCC.
5336 ac_prog=ld
5339 # If it is relative, then search for the first ld in PATH.
5340 with_gnu_ld=unknown
5342 esac
5343 elif test "$with_gnu_ld" = yes; then
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5345 $as_echo_n "checking for GNU ld... " >&6; }
5346 else
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5348 $as_echo_n "checking for non-GNU ld... " >&6; }
5350 if ${lt_cv_path_LD+:} false; then :
5351 $as_echo_n "(cached) " >&6
5352 else
5353 if test -z "$LD"; then
5354 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5355 for ac_dir in $PATH; do
5356 IFS="$lt_save_ifs"
5357 test -z "$ac_dir" && ac_dir=.
5358 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5359 lt_cv_path_LD="$ac_dir/$ac_prog"
5360 # Check to see if the program is GNU ld. I'd rather use --version,
5361 # but apparently some variants of GNU ld only accept -v.
5362 # Break only if it was the GNU/non-GNU ld that we prefer.
5363 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5364 *GNU* | *'with BFD'*)
5365 test "$with_gnu_ld" != no && break
5368 test "$with_gnu_ld" != yes && break
5370 esac
5372 done
5373 IFS="$lt_save_ifs"
5374 else
5375 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5379 LD="$lt_cv_path_LD"
5380 if test -n "$LD"; then
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5382 $as_echo "$LD" >&6; }
5383 else
5384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5385 $as_echo "no" >&6; }
5387 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5389 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5390 if ${lt_cv_prog_gnu_ld+:} false; then :
5391 $as_echo_n "(cached) " >&6
5392 else
5393 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5394 case `$LD -v 2>&1 </dev/null` in
5395 *GNU* | *'with BFD'*)
5396 lt_cv_prog_gnu_ld=yes
5399 lt_cv_prog_gnu_ld=no
5401 esac
5403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5404 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5405 with_gnu_ld=$lt_cv_prog_gnu_ld
5415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5416 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5417 if ${lt_cv_path_NM+:} false; then :
5418 $as_echo_n "(cached) " >&6
5419 else
5420 if test -n "$NM"; then
5421 # Let the user override the test.
5422 lt_cv_path_NM="$NM"
5423 else
5424 lt_nm_to_check="${ac_tool_prefix}nm"
5425 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5426 lt_nm_to_check="$lt_nm_to_check nm"
5428 for lt_tmp_nm in $lt_nm_to_check; do
5429 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5430 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5431 IFS="$lt_save_ifs"
5432 test -z "$ac_dir" && ac_dir=.
5433 tmp_nm="$ac_dir/$lt_tmp_nm"
5434 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5435 # Check to see if the nm accepts a BSD-compat flag.
5436 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5437 # nm: unknown option "B" ignored
5438 # Tru64's nm complains that /dev/null is an invalid object file
5439 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5440 */dev/null* | *'Invalid file or object type'*)
5441 lt_cv_path_NM="$tmp_nm -B"
5442 break
5445 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5446 */dev/null*)
5447 lt_cv_path_NM="$tmp_nm -p"
5448 break
5451 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5452 continue # so that we can try to find one that supports BSD flags
5454 esac
5456 esac
5458 done
5459 IFS="$lt_save_ifs"
5460 done
5461 : ${lt_cv_path_NM=no}
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5465 $as_echo "$lt_cv_path_NM" >&6; }
5466 if test "$lt_cv_path_NM" != "no"; then
5467 NM="$lt_cv_path_NM"
5468 else
5469 # Didn't find any BSD compatible name lister, look for dumpbin.
5470 if test -n "$ac_tool_prefix"; then
5471 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5473 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5474 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5476 $as_echo_n "checking for $ac_word... " >&6; }
5477 if ${ac_cv_prog_DUMPBIN+:} false; then :
5478 $as_echo_n "(cached) " >&6
5479 else
5480 if test -n "$DUMPBIN"; then
5481 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5482 else
5483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5484 for as_dir in $PATH
5486 IFS=$as_save_IFS
5487 test -z "$as_dir" && as_dir=.
5488 for ac_exec_ext in '' $ac_executable_extensions; do
5489 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5490 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5492 break 2
5494 done
5495 done
5496 IFS=$as_save_IFS
5500 DUMPBIN=$ac_cv_prog_DUMPBIN
5501 if test -n "$DUMPBIN"; then
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5503 $as_echo "$DUMPBIN" >&6; }
5504 else
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5506 $as_echo "no" >&6; }
5510 test -n "$DUMPBIN" && break
5511 done
5513 if test -z "$DUMPBIN"; then
5514 ac_ct_DUMPBIN=$DUMPBIN
5515 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5517 # Extract the first word of "$ac_prog", so it can be a program name with args.
5518 set dummy $ac_prog; ac_word=$2
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5520 $as_echo_n "checking for $ac_word... " >&6; }
5521 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5522 $as_echo_n "(cached) " >&6
5523 else
5524 if test -n "$ac_ct_DUMPBIN"; then
5525 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5526 else
5527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5528 for as_dir in $PATH
5530 IFS=$as_save_IFS
5531 test -z "$as_dir" && as_dir=.
5532 for ac_exec_ext in '' $ac_executable_extensions; do
5533 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5534 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5536 break 2
5538 done
5539 done
5540 IFS=$as_save_IFS
5544 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5545 if test -n "$ac_ct_DUMPBIN"; then
5546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5547 $as_echo "$ac_ct_DUMPBIN" >&6; }
5548 else
5549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5550 $as_echo "no" >&6; }
5554 test -n "$ac_ct_DUMPBIN" && break
5555 done
5557 if test "x$ac_ct_DUMPBIN" = x; then
5558 DUMPBIN=":"
5559 else
5560 case $cross_compiling:$ac_tool_warned in
5561 yes:)
5562 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5563 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5564 ac_tool_warned=yes ;;
5565 esac
5566 DUMPBIN=$ac_ct_DUMPBIN
5571 if test "$DUMPBIN" != ":"; then
5572 NM="$DUMPBIN"
5575 test -z "$NM" && NM=nm
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5583 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5584 if ${lt_cv_nm_interface+:} false; then :
5585 $as_echo_n "(cached) " >&6
5586 else
5587 lt_cv_nm_interface="BSD nm"
5588 echo "int some_variable = 0;" > conftest.$ac_ext
5589 (eval echo "\"\$as_me:5589: $ac_compile\"" >&5)
5590 (eval "$ac_compile" 2>conftest.err)
5591 cat conftest.err >&5
5592 (eval echo "\"\$as_me:5592: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5593 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5594 cat conftest.err >&5
5595 (eval echo "\"\$as_me:5595: output\"" >&5)
5596 cat conftest.out >&5
5597 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5598 lt_cv_nm_interface="MS dumpbin"
5600 rm -f conftest*
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5603 $as_echo "$lt_cv_nm_interface" >&6; }
5605 # find the maximum length of command line arguments
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5607 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5608 if ${lt_cv_sys_max_cmd_len+:} false; then :
5609 $as_echo_n "(cached) " >&6
5610 else
5612 teststring="ABCD"
5614 case $build_os in
5615 msdosdjgpp*)
5616 # On DJGPP, this test can blow up pretty badly due to problems in libc
5617 # (any single argument exceeding 2000 bytes causes a buffer overrun
5618 # during glob expansion). Even if it were fixed, the result of this
5619 # check would be larger than it should be.
5620 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5623 gnu*)
5624 # Under GNU Hurd, this test is not required because there is
5625 # no limit to the length of command line arguments.
5626 # Libtool will interpret -1 as no limit whatsoever
5627 lt_cv_sys_max_cmd_len=-1;
5630 cygwin* | mingw* | cegcc*)
5631 # On Win9x/ME, this test blows up -- it succeeds, but takes
5632 # about 5 minutes as the teststring grows exponentially.
5633 # Worse, since 9x/ME are not pre-emptively multitasking,
5634 # you end up with a "frozen" computer, even though with patience
5635 # the test eventually succeeds (with a max line length of 256k).
5636 # Instead, let's just punt: use the minimum linelength reported by
5637 # all of the supported platforms: 8192 (on NT/2K/XP).
5638 lt_cv_sys_max_cmd_len=8192;
5641 amigaos*)
5642 # On AmigaOS with pdksh, this test takes hours, literally.
5643 # So we just punt and use a minimum line length of 8192.
5644 lt_cv_sys_max_cmd_len=8192;
5647 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5648 # This has been around since 386BSD, at least. Likely further.
5649 if test -x /sbin/sysctl; then
5650 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5651 elif test -x /usr/sbin/sysctl; then
5652 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5653 else
5654 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5656 # And add a safety zone
5657 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5658 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5661 interix*)
5662 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5663 lt_cv_sys_max_cmd_len=196608
5666 osf*)
5667 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5668 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5669 # nice to cause kernel panics so lets avoid the loop below.
5670 # First set a reasonable default.
5671 lt_cv_sys_max_cmd_len=16384
5673 if test -x /sbin/sysconfig; then
5674 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5675 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5676 esac
5679 sco3.2v5*)
5680 lt_cv_sys_max_cmd_len=102400
5682 sysv5* | sco5v6* | sysv4.2uw2*)
5683 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5684 if test -n "$kargmax"; then
5685 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5686 else
5687 lt_cv_sys_max_cmd_len=32768
5691 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5692 if test -n "$lt_cv_sys_max_cmd_len"; then
5693 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5694 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5695 else
5696 # Make teststring a little bigger before we do anything with it.
5697 # a 1K string should be a reasonable start.
5698 for i in 1 2 3 4 5 6 7 8 ; do
5699 teststring=$teststring$teststring
5700 done
5701 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5702 # If test is not a shell built-in, we'll probably end up computing a
5703 # maximum length that is only half of the actual maximum length, but
5704 # we can't tell.
5705 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5706 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5707 test $i != 17 # 1/2 MB should be enough
5709 i=`expr $i + 1`
5710 teststring=$teststring$teststring
5711 done
5712 # Only check the string length outside the loop.
5713 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5714 teststring=
5715 # Add a significant safety factor because C++ compilers can tack on
5716 # massive amounts of additional arguments before passing them to the
5717 # linker. It appears as though 1/2 is a usable value.
5718 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5721 esac
5725 if test -n $lt_cv_sys_max_cmd_len ; then
5726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5727 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5728 else
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5730 $as_echo "none" >&6; }
5732 max_cmd_len=$lt_cv_sys_max_cmd_len
5739 : ${CP="cp -f"}
5740 : ${MV="mv -f"}
5741 : ${RM="rm -f"}
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5744 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5745 # Try some XSI features
5746 xsi_shell=no
5747 ( _lt_dummy="a/b/c"
5748 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5749 = c,a/b,, \
5750 && eval 'test $(( 1 + 1 )) -eq 2 \
5751 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5752 && xsi_shell=yes
5753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5754 $as_echo "$xsi_shell" >&6; }
5757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5758 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5759 lt_shell_append=no
5760 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5761 >/dev/null 2>&1 \
5762 && lt_shell_append=yes
5763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5764 $as_echo "$lt_shell_append" >&6; }
5767 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5768 lt_unset=unset
5769 else
5770 lt_unset=false
5777 # test EBCDIC or ASCII
5778 case `echo X|tr X '\101'` in
5779 A) # ASCII based system
5780 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5781 lt_SP2NL='tr \040 \012'
5782 lt_NL2SP='tr \015\012 \040\040'
5784 *) # EBCDIC based system
5785 lt_SP2NL='tr \100 \n'
5786 lt_NL2SP='tr \r\n \100\100'
5788 esac
5798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5799 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5800 if ${lt_cv_ld_reload_flag+:} false; then :
5801 $as_echo_n "(cached) " >&6
5802 else
5803 lt_cv_ld_reload_flag='-r'
5805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5806 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5807 reload_flag=$lt_cv_ld_reload_flag
5808 case $reload_flag in
5809 "" | " "*) ;;
5810 *) reload_flag=" $reload_flag" ;;
5811 esac
5812 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5813 case $host_os in
5814 darwin*)
5815 if test "$GCC" = yes; then
5816 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5817 else
5818 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5821 esac
5831 if test -n "$ac_tool_prefix"; then
5832 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5833 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5835 $as_echo_n "checking for $ac_word... " >&6; }
5836 if ${ac_cv_prog_OBJDUMP+:} false; then :
5837 $as_echo_n "(cached) " >&6
5838 else
5839 if test -n "$OBJDUMP"; then
5840 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5841 else
5842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5843 for as_dir in $PATH
5845 IFS=$as_save_IFS
5846 test -z "$as_dir" && as_dir=.
5847 for ac_exec_ext in '' $ac_executable_extensions; do
5848 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5849 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5851 break 2
5853 done
5854 done
5855 IFS=$as_save_IFS
5859 OBJDUMP=$ac_cv_prog_OBJDUMP
5860 if test -n "$OBJDUMP"; then
5861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5862 $as_echo "$OBJDUMP" >&6; }
5863 else
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5865 $as_echo "no" >&6; }
5870 if test -z "$ac_cv_prog_OBJDUMP"; then
5871 ac_ct_OBJDUMP=$OBJDUMP
5872 # Extract the first word of "objdump", so it can be a program name with args.
5873 set dummy objdump; ac_word=$2
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5875 $as_echo_n "checking for $ac_word... " >&6; }
5876 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5877 $as_echo_n "(cached) " >&6
5878 else
5879 if test -n "$ac_ct_OBJDUMP"; then
5880 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5881 else
5882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5883 for as_dir in $PATH
5885 IFS=$as_save_IFS
5886 test -z "$as_dir" && as_dir=.
5887 for ac_exec_ext in '' $ac_executable_extensions; do
5888 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5889 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5891 break 2
5893 done
5894 done
5895 IFS=$as_save_IFS
5899 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5900 if test -n "$ac_ct_OBJDUMP"; then
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5902 $as_echo "$ac_ct_OBJDUMP" >&6; }
5903 else
5904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5905 $as_echo "no" >&6; }
5908 if test "x$ac_ct_OBJDUMP" = x; then
5909 OBJDUMP="false"
5910 else
5911 case $cross_compiling:$ac_tool_warned in
5912 yes:)
5913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5914 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5915 ac_tool_warned=yes ;;
5916 esac
5917 OBJDUMP=$ac_ct_OBJDUMP
5919 else
5920 OBJDUMP="$ac_cv_prog_OBJDUMP"
5923 test -z "$OBJDUMP" && OBJDUMP=objdump
5933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5934 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5935 if ${lt_cv_deplibs_check_method+:} false; then :
5936 $as_echo_n "(cached) " >&6
5937 else
5938 lt_cv_file_magic_cmd='$MAGIC_CMD'
5939 lt_cv_file_magic_test_file=
5940 lt_cv_deplibs_check_method='unknown'
5941 # Need to set the preceding variable on all platforms that support
5942 # interlibrary dependencies.
5943 # 'none' -- dependencies not supported.
5944 # `unknown' -- same as none, but documents that we really don't know.
5945 # 'pass_all' -- all dependencies passed with no checks.
5946 # 'test_compile' -- check by making test program.
5947 # 'file_magic [[regex]]' -- check by looking for files in library path
5948 # which responds to the $file_magic_cmd with a given extended regex.
5949 # If you have `file' or equivalent on your system and you're not sure
5950 # whether `pass_all' will *always* work, you probably want this one.
5952 case $host_os in
5953 aix[4-9]*)
5954 lt_cv_deplibs_check_method=pass_all
5957 beos*)
5958 lt_cv_deplibs_check_method=pass_all
5961 bsdi[45]*)
5962 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5963 lt_cv_file_magic_cmd='/usr/bin/file -L'
5964 lt_cv_file_magic_test_file=/shlib/libc.so
5967 cygwin*)
5968 # func_win32_libid is a shell function defined in ltmain.sh
5969 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5970 lt_cv_file_magic_cmd='func_win32_libid'
5973 mingw* | pw32*)
5974 # Base MSYS/MinGW do not provide the 'file' command needed by
5975 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5976 # unless we find 'file', for example because we are cross-compiling.
5977 if ( file / ) >/dev/null 2>&1; then
5978 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5979 lt_cv_file_magic_cmd='func_win32_libid'
5980 else
5981 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5982 lt_cv_file_magic_cmd='$OBJDUMP -f'
5986 cegcc)
5987 # use the weaker test based on 'objdump'. See mingw*.
5988 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5989 lt_cv_file_magic_cmd='$OBJDUMP -f'
5992 darwin* | rhapsody*)
5993 lt_cv_deplibs_check_method=pass_all
5996 freebsd* | dragonfly*)
5997 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5998 case $host_cpu in
5999 i*86 )
6000 # Not sure whether the presence of OpenBSD here was a mistake.
6001 # Let's accept both of them until this is cleared up.
6002 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6003 lt_cv_file_magic_cmd=/usr/bin/file
6004 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6006 esac
6007 else
6008 lt_cv_deplibs_check_method=pass_all
6012 gnu*)
6013 lt_cv_deplibs_check_method=pass_all
6016 hpux10.20* | hpux11*)
6017 lt_cv_file_magic_cmd=/usr/bin/file
6018 case $host_cpu in
6019 ia64*)
6020 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6021 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6023 hppa*64*)
6024 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
6025 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6028 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6029 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6031 esac
6034 interix[3-9]*)
6035 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6036 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6039 irix5* | irix6* | nonstopux*)
6040 case $LD in
6041 *-32|*"-32 ") libmagic=32-bit;;
6042 *-n32|*"-n32 ") libmagic=N32;;
6043 *-64|*"-64 ") libmagic=64-bit;;
6044 *) libmagic=never-match;;
6045 esac
6046 lt_cv_deplibs_check_method=pass_all
6049 # This must be Linux ELF.
6050 linux* | k*bsd*-gnu)
6051 lt_cv_deplibs_check_method=pass_all
6054 netbsd*)
6055 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6056 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6057 else
6058 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6062 newos6*)
6063 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6064 lt_cv_file_magic_cmd=/usr/bin/file
6065 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6068 *nto* | *qnx*)
6069 lt_cv_deplibs_check_method=pass_all
6072 openbsd*)
6073 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6074 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6075 else
6076 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6080 osf3* | osf4* | osf5*)
6081 lt_cv_deplibs_check_method=pass_all
6084 rdos*)
6085 lt_cv_deplibs_check_method=pass_all
6088 solaris*)
6089 lt_cv_deplibs_check_method=pass_all
6092 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6093 lt_cv_deplibs_check_method=pass_all
6096 sysv4 | sysv4.3*)
6097 case $host_vendor in
6098 motorola)
6099 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]'
6100 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6102 ncr)
6103 lt_cv_deplibs_check_method=pass_all
6105 sequent)
6106 lt_cv_file_magic_cmd='/bin/file'
6107 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6109 sni)
6110 lt_cv_file_magic_cmd='/bin/file'
6111 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6112 lt_cv_file_magic_test_file=/lib/libc.so
6114 siemens)
6115 lt_cv_deplibs_check_method=pass_all
6118 lt_cv_deplibs_check_method=pass_all
6120 esac
6123 tpf*)
6124 lt_cv_deplibs_check_method=pass_all
6126 esac
6129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6130 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6131 file_magic_cmd=$lt_cv_file_magic_cmd
6132 deplibs_check_method=$lt_cv_deplibs_check_method
6133 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6146 if test -n "$ac_tool_prefix"; then
6147 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6148 set dummy ${ac_tool_prefix}ar; ac_word=$2
6149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6150 $as_echo_n "checking for $ac_word... " >&6; }
6151 if ${ac_cv_prog_AR+:} false; then :
6152 $as_echo_n "(cached) " >&6
6153 else
6154 if test -n "$AR"; then
6155 ac_cv_prog_AR="$AR" # Let the user override the test.
6156 else
6157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6158 for as_dir in $PATH
6160 IFS=$as_save_IFS
6161 test -z "$as_dir" && as_dir=.
6162 for ac_exec_ext in '' $ac_executable_extensions; do
6163 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6164 ac_cv_prog_AR="${ac_tool_prefix}ar"
6165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6166 break 2
6168 done
6169 done
6170 IFS=$as_save_IFS
6174 AR=$ac_cv_prog_AR
6175 if test -n "$AR"; then
6176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6177 $as_echo "$AR" >&6; }
6178 else
6179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6180 $as_echo "no" >&6; }
6185 if test -z "$ac_cv_prog_AR"; then
6186 ac_ct_AR=$AR
6187 # Extract the first word of "ar", so it can be a program name with args.
6188 set dummy ar; ac_word=$2
6189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6190 $as_echo_n "checking for $ac_word... " >&6; }
6191 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6192 $as_echo_n "(cached) " >&6
6193 else
6194 if test -n "$ac_ct_AR"; then
6195 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6196 else
6197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6198 for as_dir in $PATH
6200 IFS=$as_save_IFS
6201 test -z "$as_dir" && as_dir=.
6202 for ac_exec_ext in '' $ac_executable_extensions; do
6203 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6204 ac_cv_prog_ac_ct_AR="ar"
6205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6206 break 2
6208 done
6209 done
6210 IFS=$as_save_IFS
6214 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6215 if test -n "$ac_ct_AR"; then
6216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6217 $as_echo "$ac_ct_AR" >&6; }
6218 else
6219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6220 $as_echo "no" >&6; }
6223 if test "x$ac_ct_AR" = x; then
6224 AR="false"
6225 else
6226 case $cross_compiling:$ac_tool_warned in
6227 yes:)
6228 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6229 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6230 ac_tool_warned=yes ;;
6231 esac
6232 AR=$ac_ct_AR
6234 else
6235 AR="$ac_cv_prog_AR"
6238 test -z "$AR" && AR=ar
6239 test -z "$AR_FLAGS" && AR_FLAGS=cru
6251 if test -n "$ac_tool_prefix"; then
6252 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6253 set dummy ${ac_tool_prefix}strip; ac_word=$2
6254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6255 $as_echo_n "checking for $ac_word... " >&6; }
6256 if ${ac_cv_prog_STRIP+:} false; then :
6257 $as_echo_n "(cached) " >&6
6258 else
6259 if test -n "$STRIP"; then
6260 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6261 else
6262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6263 for as_dir in $PATH
6265 IFS=$as_save_IFS
6266 test -z "$as_dir" && as_dir=.
6267 for ac_exec_ext in '' $ac_executable_extensions; do
6268 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6269 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6271 break 2
6273 done
6274 done
6275 IFS=$as_save_IFS
6279 STRIP=$ac_cv_prog_STRIP
6280 if test -n "$STRIP"; then
6281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6282 $as_echo "$STRIP" >&6; }
6283 else
6284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6285 $as_echo "no" >&6; }
6290 if test -z "$ac_cv_prog_STRIP"; then
6291 ac_ct_STRIP=$STRIP
6292 # Extract the first word of "strip", so it can be a program name with args.
6293 set dummy strip; ac_word=$2
6294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6295 $as_echo_n "checking for $ac_word... " >&6; }
6296 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6297 $as_echo_n "(cached) " >&6
6298 else
6299 if test -n "$ac_ct_STRIP"; then
6300 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6301 else
6302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6303 for as_dir in $PATH
6305 IFS=$as_save_IFS
6306 test -z "$as_dir" && as_dir=.
6307 for ac_exec_ext in '' $ac_executable_extensions; do
6308 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6309 ac_cv_prog_ac_ct_STRIP="strip"
6310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6311 break 2
6313 done
6314 done
6315 IFS=$as_save_IFS
6319 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6320 if test -n "$ac_ct_STRIP"; then
6321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6322 $as_echo "$ac_ct_STRIP" >&6; }
6323 else
6324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6325 $as_echo "no" >&6; }
6328 if test "x$ac_ct_STRIP" = x; then
6329 STRIP=":"
6330 else
6331 case $cross_compiling:$ac_tool_warned in
6332 yes:)
6333 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6334 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6335 ac_tool_warned=yes ;;
6336 esac
6337 STRIP=$ac_ct_STRIP
6339 else
6340 STRIP="$ac_cv_prog_STRIP"
6343 test -z "$STRIP" && STRIP=:
6350 if test -n "$ac_tool_prefix"; then
6351 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6352 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6354 $as_echo_n "checking for $ac_word... " >&6; }
6355 if ${ac_cv_prog_RANLIB+:} false; then :
6356 $as_echo_n "(cached) " >&6
6357 else
6358 if test -n "$RANLIB"; then
6359 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6360 else
6361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6362 for as_dir in $PATH
6364 IFS=$as_save_IFS
6365 test -z "$as_dir" && as_dir=.
6366 for ac_exec_ext in '' $ac_executable_extensions; do
6367 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6368 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6370 break 2
6372 done
6373 done
6374 IFS=$as_save_IFS
6378 RANLIB=$ac_cv_prog_RANLIB
6379 if test -n "$RANLIB"; then
6380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6381 $as_echo "$RANLIB" >&6; }
6382 else
6383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6384 $as_echo "no" >&6; }
6389 if test -z "$ac_cv_prog_RANLIB"; then
6390 ac_ct_RANLIB=$RANLIB
6391 # Extract the first word of "ranlib", so it can be a program name with args.
6392 set dummy ranlib; ac_word=$2
6393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6394 $as_echo_n "checking for $ac_word... " >&6; }
6395 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6396 $as_echo_n "(cached) " >&6
6397 else
6398 if test -n "$ac_ct_RANLIB"; then
6399 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6400 else
6401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6402 for as_dir in $PATH
6404 IFS=$as_save_IFS
6405 test -z "$as_dir" && as_dir=.
6406 for ac_exec_ext in '' $ac_executable_extensions; do
6407 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6408 ac_cv_prog_ac_ct_RANLIB="ranlib"
6409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6410 break 2
6412 done
6413 done
6414 IFS=$as_save_IFS
6418 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6419 if test -n "$ac_ct_RANLIB"; then
6420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6421 $as_echo "$ac_ct_RANLIB" >&6; }
6422 else
6423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6424 $as_echo "no" >&6; }
6427 if test "x$ac_ct_RANLIB" = x; then
6428 RANLIB=":"
6429 else
6430 case $cross_compiling:$ac_tool_warned in
6431 yes:)
6432 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6433 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6434 ac_tool_warned=yes ;;
6435 esac
6436 RANLIB=$ac_ct_RANLIB
6438 else
6439 RANLIB="$ac_cv_prog_RANLIB"
6442 test -z "$RANLIB" && RANLIB=:
6449 # Determine commands to create old-style static archives.
6450 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6451 old_postinstall_cmds='chmod 644 $oldlib'
6452 old_postuninstall_cmds=
6454 if test -n "$RANLIB"; then
6455 case $host_os in
6456 openbsd*)
6457 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6460 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6462 esac
6463 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6499 # If no C compiler was specified, use CC.
6500 LTCC=${LTCC-"$CC"}
6502 # If no C compiler flags were specified, use CFLAGS.
6503 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6505 # Allow CC to be a program name with arguments.
6506 compiler=$CC
6509 # Check for command to grab the raw symbol name followed by C symbol from nm.
6510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6511 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6512 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6513 $as_echo_n "(cached) " >&6
6514 else
6516 # These are sane defaults that work on at least a few old systems.
6517 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6519 # Character class describing NM global symbol codes.
6520 symcode='[BCDEGRST]'
6522 # Regexp to match symbols that can be accessed directly from C.
6523 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6525 # Define system-specific variables.
6526 case $host_os in
6527 aix*)
6528 symcode='[BCDT]'
6530 cygwin* | mingw* | pw32* | cegcc*)
6531 symcode='[ABCDGISTW]'
6533 hpux*)
6534 if test "$host_cpu" = ia64; then
6535 symcode='[ABCDEGRST]'
6538 irix* | nonstopux*)
6539 symcode='[BCDEGRST]'
6541 osf*)
6542 symcode='[BCDEGQRST]'
6544 solaris*)
6545 symcode='[BDRT]'
6547 sco3.2v5*)
6548 symcode='[DT]'
6550 sysv4.2uw2*)
6551 symcode='[DT]'
6553 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6554 symcode='[ABDT]'
6556 sysv4)
6557 symcode='[DFNSTU]'
6559 esac
6561 # If we're using GNU nm, then use its standard symbol codes.
6562 case `$NM -V 2>&1` in
6563 *GNU* | *'with BFD'*)
6564 symcode='[ABCDGIRSTW]' ;;
6565 esac
6567 # Transform an extracted symbol line into a proper C declaration.
6568 # Some systems (esp. on ia64) link data and code symbols differently,
6569 # so use this general approach.
6570 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6572 # Transform an extracted symbol line into symbol name and symbol address
6573 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6574 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'"
6576 # Handle CRLF in mingw tool chain
6577 opt_cr=
6578 case $build_os in
6579 mingw*)
6580 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6582 esac
6584 # Try without a prefix underscore, then with it.
6585 for ac_symprfx in "" "_"; do
6587 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6588 symxfrm="\\1 $ac_symprfx\\2 \\2"
6590 # Write the raw and C identifiers.
6591 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6592 # Fake it for dumpbin and say T for any non-static function
6593 # and D for any global variable.
6594 # Also find C++ and __fastcall symbols from MSVC++,
6595 # which start with @ or ?.
6596 lt_cv_sys_global_symbol_pipe="$AWK '"\
6597 " {last_section=section; section=\$ 3};"\
6598 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6599 " \$ 0!~/External *\|/{next};"\
6600 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6601 " {if(hide[section]) next};"\
6602 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6603 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6604 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6605 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6606 " ' prfx=^$ac_symprfx"
6607 else
6608 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6611 # Check to see that the pipe works correctly.
6612 pipe_works=no
6614 rm -f conftest*
6615 cat > conftest.$ac_ext <<_LT_EOF
6616 #ifdef __cplusplus
6617 extern "C" {
6618 #endif
6619 char nm_test_var;
6620 void nm_test_func(void);
6621 void nm_test_func(void){}
6622 #ifdef __cplusplus
6624 #endif
6625 int main(){nm_test_var='a';nm_test_func();return(0);}
6626 _LT_EOF
6628 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6629 (eval $ac_compile) 2>&5
6630 ac_status=$?
6631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6632 test $ac_status = 0; }; then
6633 # Now try to grab the symbols.
6634 nlist=conftest.nm
6635 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6636 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6637 ac_status=$?
6638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6639 test $ac_status = 0; } && test -s "$nlist"; then
6640 # Try sorting and uniquifying the output.
6641 if sort "$nlist" | uniq > "$nlist"T; then
6642 mv -f "$nlist"T "$nlist"
6643 else
6644 rm -f "$nlist"T
6647 # Make sure that we snagged all the symbols we need.
6648 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6649 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6650 cat <<_LT_EOF > conftest.$ac_ext
6651 #ifdef __cplusplus
6652 extern "C" {
6653 #endif
6655 _LT_EOF
6656 # Now generate the symbol file.
6657 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6659 cat <<_LT_EOF >> conftest.$ac_ext
6661 /* The mapping between symbol names and symbols. */
6662 const struct {
6663 const char *name;
6664 void *address;
6666 lt__PROGRAM__LTX_preloaded_symbols[] =
6668 { "@PROGRAM@", (void *) 0 },
6669 _LT_EOF
6670 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6671 cat <<\_LT_EOF >> conftest.$ac_ext
6672 {0, (void *) 0}
6675 /* This works around a problem in FreeBSD linker */
6676 #ifdef FREEBSD_WORKAROUND
6677 static const void *lt_preloaded_setup() {
6678 return lt__PROGRAM__LTX_preloaded_symbols;
6680 #endif
6682 #ifdef __cplusplus
6684 #endif
6685 _LT_EOF
6686 # Now try linking the two files.
6687 mv conftest.$ac_objext conftstm.$ac_objext
6688 lt_save_LIBS="$LIBS"
6689 lt_save_CFLAGS="$CFLAGS"
6690 LIBS="conftstm.$ac_objext"
6691 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6692 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6693 (eval $ac_link) 2>&5
6694 ac_status=$?
6695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6696 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6697 pipe_works=yes
6699 LIBS="$lt_save_LIBS"
6700 CFLAGS="$lt_save_CFLAGS"
6701 else
6702 echo "cannot find nm_test_func in $nlist" >&5
6704 else
6705 echo "cannot find nm_test_var in $nlist" >&5
6707 else
6708 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6710 else
6711 echo "$progname: failed program was:" >&5
6712 cat conftest.$ac_ext >&5
6714 rm -rf conftest* conftst*
6716 # Do not use the global_symbol_pipe unless it works.
6717 if test "$pipe_works" = yes; then
6718 break
6719 else
6720 lt_cv_sys_global_symbol_pipe=
6722 done
6726 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6727 lt_cv_sys_global_symbol_to_cdecl=
6729 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6731 $as_echo "failed" >&6; }
6732 else
6733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6734 $as_echo "ok" >&6; }
6759 # Check whether --enable-libtool-lock was given.
6760 if test "${enable_libtool_lock+set}" = set; then :
6761 enableval=$enable_libtool_lock;
6764 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6766 # Some flags need to be propagated to the compiler or linker for good
6767 # libtool support.
6768 case $host in
6769 ia64-*-hpux*)
6770 # Find out which ABI we are using.
6771 echo 'int i;' > conftest.$ac_ext
6772 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6773 (eval $ac_compile) 2>&5
6774 ac_status=$?
6775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6776 test $ac_status = 0; }; then
6777 case `/usr/bin/file conftest.$ac_objext` in
6778 *ELF-32*)
6779 HPUX_IA64_MODE="32"
6781 *ELF-64*)
6782 HPUX_IA64_MODE="64"
6784 esac
6786 rm -rf conftest*
6788 *-*-irix6*)
6789 # Find out which ABI we are using.
6790 echo '#line 6790 "configure"' > conftest.$ac_ext
6791 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6792 (eval $ac_compile) 2>&5
6793 ac_status=$?
6794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6795 test $ac_status = 0; }; then
6796 if test "$lt_cv_prog_gnu_ld" = yes; then
6797 case `/usr/bin/file conftest.$ac_objext` in
6798 *32-bit*)
6799 LD="${LD-ld} -melf32bsmip"
6801 *N32*)
6802 LD="${LD-ld} -melf32bmipn32"
6804 *64-bit*)
6805 LD="${LD-ld} -melf64bmip"
6807 esac
6808 else
6809 case `/usr/bin/file conftest.$ac_objext` in
6810 *32-bit*)
6811 LD="${LD-ld} -32"
6813 *N32*)
6814 LD="${LD-ld} -n32"
6816 *64-bit*)
6817 LD="${LD-ld} -64"
6819 esac
6822 rm -rf conftest*
6825 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6826 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6827 # Find out which ABI we are using.
6828 echo 'int i;' > conftest.$ac_ext
6829 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6830 (eval $ac_compile) 2>&5
6831 ac_status=$?
6832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6833 test $ac_status = 0; }; then
6834 case `/usr/bin/file conftest.o` in
6835 *32-bit*)
6836 case $host in
6837 x86_64-*kfreebsd*-gnu)
6838 LD="${LD-ld} -m elf_i386_fbsd"
6840 x86_64-*linux*)
6841 LD="${LD-ld} -m elf_i386"
6843 ppc64-*linux*|powerpc64-*linux*)
6844 LD="${LD-ld} -m elf32ppclinux"
6846 s390x-*linux*)
6847 LD="${LD-ld} -m elf_s390"
6849 sparc64-*linux*)
6850 LD="${LD-ld} -m elf32_sparc"
6852 esac
6854 *64-bit*)
6855 case $host in
6856 x86_64-*kfreebsd*-gnu)
6857 LD="${LD-ld} -m elf_x86_64_fbsd"
6859 x86_64-*linux*)
6860 LD="${LD-ld} -m elf_x86_64"
6862 ppc*-*linux*|powerpc*-*linux*)
6863 LD="${LD-ld} -m elf64ppc"
6865 s390*-*linux*|s390*-*tpf*)
6866 LD="${LD-ld} -m elf64_s390"
6868 sparc*-*linux*)
6869 LD="${LD-ld} -m elf64_sparc"
6871 esac
6873 esac
6875 rm -rf conftest*
6878 *-*-sco3.2v5*)
6879 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6880 SAVE_CFLAGS="$CFLAGS"
6881 CFLAGS="$CFLAGS -belf"
6882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6883 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6884 if ${lt_cv_cc_needs_belf+:} false; then :
6885 $as_echo_n "(cached) " >&6
6886 else
6887 ac_ext=c
6888 ac_cpp='$CPP $CPPFLAGS'
6889 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6890 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6891 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6894 /* end confdefs.h. */
6897 main ()
6901 return 0;
6903 _ACEOF
6904 if ac_fn_c_try_link "$LINENO"; then :
6905 lt_cv_cc_needs_belf=yes
6906 else
6907 lt_cv_cc_needs_belf=no
6909 rm -f core conftest.err conftest.$ac_objext \
6910 conftest$ac_exeext conftest.$ac_ext
6911 ac_ext=c
6912 ac_cpp='$CPP $CPPFLAGS'
6913 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6914 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6915 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6919 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6920 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6921 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6922 CFLAGS="$SAVE_CFLAGS"
6925 sparc*-*solaris*)
6926 # Find out which ABI we are using.
6927 echo 'int i;' > conftest.$ac_ext
6928 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6929 (eval $ac_compile) 2>&5
6930 ac_status=$?
6931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6932 test $ac_status = 0; }; then
6933 case `/usr/bin/file conftest.o` in
6934 *64-bit*)
6935 case $lt_cv_prog_gnu_ld in
6936 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6938 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6939 LD="${LD-ld} -64"
6942 esac
6944 esac
6946 rm -rf conftest*
6948 esac
6950 need_locks="$enable_libtool_lock"
6953 case $host_os in
6954 rhapsody* | darwin*)
6955 if test -n "$ac_tool_prefix"; then
6956 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6957 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6959 $as_echo_n "checking for $ac_word... " >&6; }
6960 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6961 $as_echo_n "(cached) " >&6
6962 else
6963 if test -n "$DSYMUTIL"; then
6964 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6965 else
6966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6967 for as_dir in $PATH
6969 IFS=$as_save_IFS
6970 test -z "$as_dir" && as_dir=.
6971 for ac_exec_ext in '' $ac_executable_extensions; do
6972 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6973 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6975 break 2
6977 done
6978 done
6979 IFS=$as_save_IFS
6983 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6984 if test -n "$DSYMUTIL"; then
6985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6986 $as_echo "$DSYMUTIL" >&6; }
6987 else
6988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6989 $as_echo "no" >&6; }
6994 if test -z "$ac_cv_prog_DSYMUTIL"; then
6995 ac_ct_DSYMUTIL=$DSYMUTIL
6996 # Extract the first word of "dsymutil", so it can be a program name with args.
6997 set dummy dsymutil; ac_word=$2
6998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6999 $as_echo_n "checking for $ac_word... " >&6; }
7000 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7001 $as_echo_n "(cached) " >&6
7002 else
7003 if test -n "$ac_ct_DSYMUTIL"; then
7004 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7005 else
7006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7007 for as_dir in $PATH
7009 IFS=$as_save_IFS
7010 test -z "$as_dir" && as_dir=.
7011 for ac_exec_ext in '' $ac_executable_extensions; do
7012 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7013 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7015 break 2
7017 done
7018 done
7019 IFS=$as_save_IFS
7023 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7024 if test -n "$ac_ct_DSYMUTIL"; then
7025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7026 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7027 else
7028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7029 $as_echo "no" >&6; }
7032 if test "x$ac_ct_DSYMUTIL" = x; then
7033 DSYMUTIL=":"
7034 else
7035 case $cross_compiling:$ac_tool_warned in
7036 yes:)
7037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7038 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7039 ac_tool_warned=yes ;;
7040 esac
7041 DSYMUTIL=$ac_ct_DSYMUTIL
7043 else
7044 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7047 if test -n "$ac_tool_prefix"; then
7048 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7049 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7051 $as_echo_n "checking for $ac_word... " >&6; }
7052 if ${ac_cv_prog_NMEDIT+:} false; then :
7053 $as_echo_n "(cached) " >&6
7054 else
7055 if test -n "$NMEDIT"; then
7056 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7057 else
7058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7059 for as_dir in $PATH
7061 IFS=$as_save_IFS
7062 test -z "$as_dir" && as_dir=.
7063 for ac_exec_ext in '' $ac_executable_extensions; do
7064 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7065 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7067 break 2
7069 done
7070 done
7071 IFS=$as_save_IFS
7075 NMEDIT=$ac_cv_prog_NMEDIT
7076 if test -n "$NMEDIT"; then
7077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7078 $as_echo "$NMEDIT" >&6; }
7079 else
7080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7081 $as_echo "no" >&6; }
7086 if test -z "$ac_cv_prog_NMEDIT"; then
7087 ac_ct_NMEDIT=$NMEDIT
7088 # Extract the first word of "nmedit", so it can be a program name with args.
7089 set dummy nmedit; ac_word=$2
7090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7091 $as_echo_n "checking for $ac_word... " >&6; }
7092 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7093 $as_echo_n "(cached) " >&6
7094 else
7095 if test -n "$ac_ct_NMEDIT"; then
7096 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7097 else
7098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7099 for as_dir in $PATH
7101 IFS=$as_save_IFS
7102 test -z "$as_dir" && as_dir=.
7103 for ac_exec_ext in '' $ac_executable_extensions; do
7104 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7105 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7107 break 2
7109 done
7110 done
7111 IFS=$as_save_IFS
7115 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7116 if test -n "$ac_ct_NMEDIT"; then
7117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7118 $as_echo "$ac_ct_NMEDIT" >&6; }
7119 else
7120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7121 $as_echo "no" >&6; }
7124 if test "x$ac_ct_NMEDIT" = x; then
7125 NMEDIT=":"
7126 else
7127 case $cross_compiling:$ac_tool_warned in
7128 yes:)
7129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7130 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7131 ac_tool_warned=yes ;;
7132 esac
7133 NMEDIT=$ac_ct_NMEDIT
7135 else
7136 NMEDIT="$ac_cv_prog_NMEDIT"
7139 if test -n "$ac_tool_prefix"; then
7140 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7141 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7143 $as_echo_n "checking for $ac_word... " >&6; }
7144 if ${ac_cv_prog_LIPO+:} false; then :
7145 $as_echo_n "(cached) " >&6
7146 else
7147 if test -n "$LIPO"; then
7148 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7149 else
7150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7151 for as_dir in $PATH
7153 IFS=$as_save_IFS
7154 test -z "$as_dir" && as_dir=.
7155 for ac_exec_ext in '' $ac_executable_extensions; do
7156 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7157 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7159 break 2
7161 done
7162 done
7163 IFS=$as_save_IFS
7167 LIPO=$ac_cv_prog_LIPO
7168 if test -n "$LIPO"; then
7169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7170 $as_echo "$LIPO" >&6; }
7171 else
7172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7173 $as_echo "no" >&6; }
7178 if test -z "$ac_cv_prog_LIPO"; then
7179 ac_ct_LIPO=$LIPO
7180 # Extract the first word of "lipo", so it can be a program name with args.
7181 set dummy lipo; ac_word=$2
7182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7183 $as_echo_n "checking for $ac_word... " >&6; }
7184 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7185 $as_echo_n "(cached) " >&6
7186 else
7187 if test -n "$ac_ct_LIPO"; then
7188 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7189 else
7190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7191 for as_dir in $PATH
7193 IFS=$as_save_IFS
7194 test -z "$as_dir" && as_dir=.
7195 for ac_exec_ext in '' $ac_executable_extensions; do
7196 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7197 ac_cv_prog_ac_ct_LIPO="lipo"
7198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7199 break 2
7201 done
7202 done
7203 IFS=$as_save_IFS
7207 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7208 if test -n "$ac_ct_LIPO"; then
7209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7210 $as_echo "$ac_ct_LIPO" >&6; }
7211 else
7212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7213 $as_echo "no" >&6; }
7216 if test "x$ac_ct_LIPO" = x; then
7217 LIPO=":"
7218 else
7219 case $cross_compiling:$ac_tool_warned in
7220 yes:)
7221 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7222 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7223 ac_tool_warned=yes ;;
7224 esac
7225 LIPO=$ac_ct_LIPO
7227 else
7228 LIPO="$ac_cv_prog_LIPO"
7231 if test -n "$ac_tool_prefix"; then
7232 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7233 set dummy ${ac_tool_prefix}otool; ac_word=$2
7234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7235 $as_echo_n "checking for $ac_word... " >&6; }
7236 if ${ac_cv_prog_OTOOL+:} false; then :
7237 $as_echo_n "(cached) " >&6
7238 else
7239 if test -n "$OTOOL"; then
7240 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7241 else
7242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7243 for as_dir in $PATH
7245 IFS=$as_save_IFS
7246 test -z "$as_dir" && as_dir=.
7247 for ac_exec_ext in '' $ac_executable_extensions; do
7248 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7249 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7251 break 2
7253 done
7254 done
7255 IFS=$as_save_IFS
7259 OTOOL=$ac_cv_prog_OTOOL
7260 if test -n "$OTOOL"; then
7261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7262 $as_echo "$OTOOL" >&6; }
7263 else
7264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7265 $as_echo "no" >&6; }
7270 if test -z "$ac_cv_prog_OTOOL"; then
7271 ac_ct_OTOOL=$OTOOL
7272 # Extract the first word of "otool", so it can be a program name with args.
7273 set dummy otool; ac_word=$2
7274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7275 $as_echo_n "checking for $ac_word... " >&6; }
7276 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7277 $as_echo_n "(cached) " >&6
7278 else
7279 if test -n "$ac_ct_OTOOL"; then
7280 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7281 else
7282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7283 for as_dir in $PATH
7285 IFS=$as_save_IFS
7286 test -z "$as_dir" && as_dir=.
7287 for ac_exec_ext in '' $ac_executable_extensions; do
7288 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7289 ac_cv_prog_ac_ct_OTOOL="otool"
7290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7291 break 2
7293 done
7294 done
7295 IFS=$as_save_IFS
7299 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7300 if test -n "$ac_ct_OTOOL"; then
7301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7302 $as_echo "$ac_ct_OTOOL" >&6; }
7303 else
7304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7305 $as_echo "no" >&6; }
7308 if test "x$ac_ct_OTOOL" = x; then
7309 OTOOL=":"
7310 else
7311 case $cross_compiling:$ac_tool_warned in
7312 yes:)
7313 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7314 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7315 ac_tool_warned=yes ;;
7316 esac
7317 OTOOL=$ac_ct_OTOOL
7319 else
7320 OTOOL="$ac_cv_prog_OTOOL"
7323 if test -n "$ac_tool_prefix"; then
7324 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7325 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7327 $as_echo_n "checking for $ac_word... " >&6; }
7328 if ${ac_cv_prog_OTOOL64+:} false; then :
7329 $as_echo_n "(cached) " >&6
7330 else
7331 if test -n "$OTOOL64"; then
7332 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7333 else
7334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7335 for as_dir in $PATH
7337 IFS=$as_save_IFS
7338 test -z "$as_dir" && as_dir=.
7339 for ac_exec_ext in '' $ac_executable_extensions; do
7340 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7341 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7343 break 2
7345 done
7346 done
7347 IFS=$as_save_IFS
7351 OTOOL64=$ac_cv_prog_OTOOL64
7352 if test -n "$OTOOL64"; then
7353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7354 $as_echo "$OTOOL64" >&6; }
7355 else
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7357 $as_echo "no" >&6; }
7362 if test -z "$ac_cv_prog_OTOOL64"; then
7363 ac_ct_OTOOL64=$OTOOL64
7364 # Extract the first word of "otool64", so it can be a program name with args.
7365 set dummy otool64; ac_word=$2
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7367 $as_echo_n "checking for $ac_word... " >&6; }
7368 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7369 $as_echo_n "(cached) " >&6
7370 else
7371 if test -n "$ac_ct_OTOOL64"; then
7372 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7373 else
7374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7375 for as_dir in $PATH
7377 IFS=$as_save_IFS
7378 test -z "$as_dir" && as_dir=.
7379 for ac_exec_ext in '' $ac_executable_extensions; do
7380 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7381 ac_cv_prog_ac_ct_OTOOL64="otool64"
7382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7383 break 2
7385 done
7386 done
7387 IFS=$as_save_IFS
7391 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7392 if test -n "$ac_ct_OTOOL64"; then
7393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7394 $as_echo "$ac_ct_OTOOL64" >&6; }
7395 else
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7397 $as_echo "no" >&6; }
7400 if test "x$ac_ct_OTOOL64" = x; then
7401 OTOOL64=":"
7402 else
7403 case $cross_compiling:$ac_tool_warned in
7404 yes:)
7405 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7406 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7407 ac_tool_warned=yes ;;
7408 esac
7409 OTOOL64=$ac_ct_OTOOL64
7411 else
7412 OTOOL64="$ac_cv_prog_OTOOL64"
7441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7442 $as_echo_n "checking for -single_module linker flag... " >&6; }
7443 if ${lt_cv_apple_cc_single_mod+:} false; then :
7444 $as_echo_n "(cached) " >&6
7445 else
7446 lt_cv_apple_cc_single_mod=no
7447 if test -z "${LT_MULTI_MODULE}"; then
7448 # By default we will add the -single_module flag. You can override
7449 # by either setting the environment variable LT_MULTI_MODULE
7450 # non-empty at configure time, or by adding -multi_module to the
7451 # link flags.
7452 rm -rf libconftest.dylib*
7453 echo "int foo(void){return 1;}" > conftest.c
7454 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7455 -dynamiclib -Wl,-single_module conftest.c" >&5
7456 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7457 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7458 _lt_result=$?
7459 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7460 lt_cv_apple_cc_single_mod=yes
7461 else
7462 cat conftest.err >&5
7464 rm -rf libconftest.dylib*
7465 rm -f conftest.*
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7469 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7471 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7472 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7473 $as_echo_n "(cached) " >&6
7474 else
7475 lt_cv_ld_exported_symbols_list=no
7476 save_LDFLAGS=$LDFLAGS
7477 echo "_main" > conftest.sym
7478 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7480 /* end confdefs.h. */
7483 main ()
7487 return 0;
7489 _ACEOF
7490 if ac_fn_c_try_link "$LINENO"; then :
7491 lt_cv_ld_exported_symbols_list=yes
7492 else
7493 lt_cv_ld_exported_symbols_list=no
7495 rm -f core conftest.err conftest.$ac_objext \
7496 conftest$ac_exeext conftest.$ac_ext
7497 LDFLAGS="$save_LDFLAGS"
7500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7501 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7502 case $host_os in
7503 rhapsody* | darwin1.[012])
7504 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7505 darwin1.*)
7506 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7507 darwin*) # darwin 5.x on
7508 # if running on 10.5 or later, the deployment target defaults
7509 # to the OS version, if on x86, and 10.4, the deployment
7510 # target defaults to 10.4. Don't you love it?
7511 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7512 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7513 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7514 10.[012]*)
7515 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7516 10.*)
7517 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7518 esac
7520 esac
7521 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7522 _lt_dar_single_mod='$single_module'
7524 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7525 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7526 else
7527 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7529 if test "$DSYMUTIL" != ":"; then
7530 _lt_dsymutil='~$DSYMUTIL $lib || :'
7531 else
7532 _lt_dsymutil=
7535 esac
7537 ac_ext=c
7538 ac_cpp='$CPP $CPPFLAGS'
7539 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7540 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7541 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7543 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7544 # On Suns, sometimes $CPP names a directory.
7545 if test -n "$CPP" && test -d "$CPP"; then
7546 CPP=
7548 if test -z "$CPP"; then
7549 if ${ac_cv_prog_CPP+:} false; then :
7550 $as_echo_n "(cached) " >&6
7551 else
7552 # Double quotes because CPP needs to be expanded
7553 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7555 ac_preproc_ok=false
7556 for ac_c_preproc_warn_flag in '' yes
7558 # Use a header file that comes with gcc, so configuring glibc
7559 # with a fresh cross-compiler works.
7560 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7561 # <limits.h> exists even on freestanding compilers.
7562 # On the NeXT, cc -E runs the code through the compiler's parser,
7563 # not just through cpp. "Syntax error" is here to catch this case.
7564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7565 /* end confdefs.h. */
7566 #ifdef __STDC__
7567 # include <limits.h>
7568 #else
7569 # include <assert.h>
7570 #endif
7571 Syntax error
7572 _ACEOF
7573 if ac_fn_c_try_cpp "$LINENO"; then :
7575 else
7576 # Broken: fails on valid input.
7577 continue
7579 rm -f conftest.err conftest.i conftest.$ac_ext
7581 # OK, works on sane cases. Now check whether nonexistent headers
7582 # can be detected and how.
7583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7584 /* end confdefs.h. */
7585 #include <ac_nonexistent.h>
7586 _ACEOF
7587 if ac_fn_c_try_cpp "$LINENO"; then :
7588 # Broken: success on invalid input.
7589 continue
7590 else
7591 # Passes both tests.
7592 ac_preproc_ok=:
7593 break
7595 rm -f conftest.err conftest.i conftest.$ac_ext
7597 done
7598 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7599 rm -f conftest.i conftest.err conftest.$ac_ext
7600 if $ac_preproc_ok; then :
7601 break
7604 done
7605 ac_cv_prog_CPP=$CPP
7608 CPP=$ac_cv_prog_CPP
7609 else
7610 ac_cv_prog_CPP=$CPP
7612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7613 $as_echo "$CPP" >&6; }
7614 ac_preproc_ok=false
7615 for ac_c_preproc_warn_flag in '' yes
7617 # Use a header file that comes with gcc, so configuring glibc
7618 # with a fresh cross-compiler works.
7619 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7620 # <limits.h> exists even on freestanding compilers.
7621 # On the NeXT, cc -E runs the code through the compiler's parser,
7622 # not just through cpp. "Syntax error" is here to catch this case.
7623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7624 /* end confdefs.h. */
7625 #ifdef __STDC__
7626 # include <limits.h>
7627 #else
7628 # include <assert.h>
7629 #endif
7630 Syntax error
7631 _ACEOF
7632 if ac_fn_c_try_cpp "$LINENO"; then :
7634 else
7635 # Broken: fails on valid input.
7636 continue
7638 rm -f conftest.err conftest.i conftest.$ac_ext
7640 # OK, works on sane cases. Now check whether nonexistent headers
7641 # can be detected and how.
7642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7643 /* end confdefs.h. */
7644 #include <ac_nonexistent.h>
7645 _ACEOF
7646 if ac_fn_c_try_cpp "$LINENO"; then :
7647 # Broken: success on invalid input.
7648 continue
7649 else
7650 # Passes both tests.
7651 ac_preproc_ok=:
7652 break
7654 rm -f conftest.err conftest.i conftest.$ac_ext
7656 done
7657 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7658 rm -f conftest.i conftest.err conftest.$ac_ext
7659 if $ac_preproc_ok; then :
7661 else
7662 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7663 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7664 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7665 See \`config.log' for more details" "$LINENO" 5; }
7668 ac_ext=c
7669 ac_cpp='$CPP $CPPFLAGS'
7670 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7671 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7672 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7676 $as_echo_n "checking for ANSI C header files... " >&6; }
7677 if ${ac_cv_header_stdc+:} false; then :
7678 $as_echo_n "(cached) " >&6
7679 else
7680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7681 /* end confdefs.h. */
7682 #include <stdlib.h>
7683 #include <stdarg.h>
7684 #include <string.h>
7685 #include <float.h>
7688 main ()
7692 return 0;
7694 _ACEOF
7695 if ac_fn_c_try_compile "$LINENO"; then :
7696 ac_cv_header_stdc=yes
7697 else
7698 ac_cv_header_stdc=no
7700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7702 if test $ac_cv_header_stdc = yes; then
7703 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7705 /* end confdefs.h. */
7706 #include <string.h>
7708 _ACEOF
7709 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7710 $EGREP "memchr" >/dev/null 2>&1; then :
7712 else
7713 ac_cv_header_stdc=no
7715 rm -f conftest*
7719 if test $ac_cv_header_stdc = yes; then
7720 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7722 /* end confdefs.h. */
7723 #include <stdlib.h>
7725 _ACEOF
7726 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7727 $EGREP "free" >/dev/null 2>&1; then :
7729 else
7730 ac_cv_header_stdc=no
7732 rm -f conftest*
7736 if test $ac_cv_header_stdc = yes; then
7737 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7738 if test "$cross_compiling" = yes; then :
7740 else
7741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7742 /* end confdefs.h. */
7743 #include <ctype.h>
7744 #include <stdlib.h>
7745 #if ((' ' & 0x0FF) == 0x020)
7746 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7747 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7748 #else
7749 # define ISLOWER(c) \
7750 (('a' <= (c) && (c) <= 'i') \
7751 || ('j' <= (c) && (c) <= 'r') \
7752 || ('s' <= (c) && (c) <= 'z'))
7753 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7754 #endif
7756 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7758 main ()
7760 int i;
7761 for (i = 0; i < 256; i++)
7762 if (XOR (islower (i), ISLOWER (i))
7763 || toupper (i) != TOUPPER (i))
7764 return 2;
7765 return 0;
7767 _ACEOF
7768 if ac_fn_c_try_run "$LINENO"; then :
7770 else
7771 ac_cv_header_stdc=no
7773 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7774 conftest.$ac_objext conftest.beam conftest.$ac_ext
7779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7780 $as_echo "$ac_cv_header_stdc" >&6; }
7781 if test $ac_cv_header_stdc = yes; then
7783 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7787 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7788 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7789 inttypes.h stdint.h unistd.h
7790 do :
7791 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7792 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7794 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7795 cat >>confdefs.h <<_ACEOF
7796 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7797 _ACEOF
7801 done
7804 for ac_header in dlfcn.h
7805 do :
7806 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7808 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7809 cat >>confdefs.h <<_ACEOF
7810 #define HAVE_DLFCN_H 1
7811 _ACEOF
7815 done
7819 # Set options
7823 enable_dlopen=no
7826 enable_win32_dll=no
7829 # Check whether --enable-shared was given.
7830 if test "${enable_shared+set}" = set; then :
7831 enableval=$enable_shared; p=${PACKAGE-default}
7832 case $enableval in
7833 yes) enable_shared=yes ;;
7834 no) enable_shared=no ;;
7836 enable_shared=no
7837 # Look at the argument we got. We use all the common list separators.
7838 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7839 for pkg in $enableval; do
7840 IFS="$lt_save_ifs"
7841 if test "X$pkg" = "X$p"; then
7842 enable_shared=yes
7844 done
7845 IFS="$lt_save_ifs"
7847 esac
7848 else
7849 enable_shared=yes
7860 # Check whether --enable-static was given.
7861 if test "${enable_static+set}" = set; then :
7862 enableval=$enable_static; p=${PACKAGE-default}
7863 case $enableval in
7864 yes) enable_static=yes ;;
7865 no) enable_static=no ;;
7867 enable_static=no
7868 # Look at the argument we got. We use all the common list separators.
7869 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7870 for pkg in $enableval; do
7871 IFS="$lt_save_ifs"
7872 if test "X$pkg" = "X$p"; then
7873 enable_static=yes
7875 done
7876 IFS="$lt_save_ifs"
7878 esac
7879 else
7880 enable_static=yes
7892 # Check whether --with-pic was given.
7893 if test "${with_pic+set}" = set; then :
7894 withval=$with_pic; pic_mode="$withval"
7895 else
7896 pic_mode=default
7900 test -z "$pic_mode" && pic_mode=default
7908 # Check whether --enable-fast-install was given.
7909 if test "${enable_fast_install+set}" = set; then :
7910 enableval=$enable_fast_install; p=${PACKAGE-default}
7911 case $enableval in
7912 yes) enable_fast_install=yes ;;
7913 no) enable_fast_install=no ;;
7915 enable_fast_install=no
7916 # Look at the argument we got. We use all the common list separators.
7917 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7918 for pkg in $enableval; do
7919 IFS="$lt_save_ifs"
7920 if test "X$pkg" = "X$p"; then
7921 enable_fast_install=yes
7923 done
7924 IFS="$lt_save_ifs"
7926 esac
7927 else
7928 enable_fast_install=yes
7941 # This can be used to rebuild libtool when needed
7942 LIBTOOL_DEPS="$ltmain"
7944 # Always use our own libtool.
7945 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7971 test -z "$LN_S" && LN_S="ln -s"
7986 if test -n "${ZSH_VERSION+set}" ; then
7987 setopt NO_GLOB_SUBST
7990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7991 $as_echo_n "checking for objdir... " >&6; }
7992 if ${lt_cv_objdir+:} false; then :
7993 $as_echo_n "(cached) " >&6
7994 else
7995 rm -f .libs 2>/dev/null
7996 mkdir .libs 2>/dev/null
7997 if test -d .libs; then
7998 lt_cv_objdir=.libs
7999 else
8000 # MS-DOS does not allow filenames that begin with a dot.
8001 lt_cv_objdir=_libs
8003 rmdir .libs 2>/dev/null
8005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8006 $as_echo "$lt_cv_objdir" >&6; }
8007 objdir=$lt_cv_objdir
8013 cat >>confdefs.h <<_ACEOF
8014 #define LT_OBJDIR "$lt_cv_objdir/"
8015 _ACEOF
8033 case $host_os in
8034 aix3*)
8035 # AIX sometimes has problems with the GCC collect2 program. For some
8036 # reason, if we set the COLLECT_NAMES environment variable, the problems
8037 # vanish in a puff of smoke.
8038 if test "X${COLLECT_NAMES+set}" != Xset; then
8039 COLLECT_NAMES=
8040 export COLLECT_NAMES
8043 esac
8045 # Sed substitution that helps us do robust quoting. It backslashifies
8046 # metacharacters that are still active within double-quoted strings.
8047 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8049 # Same as above, but do not quote variable references.
8050 double_quote_subst='s/\(["`\\]\)/\\\1/g'
8052 # Sed substitution to delay expansion of an escaped shell variable in a
8053 # double_quote_subst'ed string.
8054 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8056 # Sed substitution to delay expansion of an escaped single quote.
8057 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8059 # Sed substitution to avoid accidental globbing in evaled expressions
8060 no_glob_subst='s/\*/\\\*/g'
8062 # Global variables:
8063 ofile=libtool
8064 can_build_shared=yes
8066 # All known linkers require a `.a' archive for static linking (except MSVC,
8067 # which needs '.lib').
8068 libext=a
8070 with_gnu_ld="$lt_cv_prog_gnu_ld"
8072 old_CC="$CC"
8073 old_CFLAGS="$CFLAGS"
8075 # Set sane defaults for various variables
8076 test -z "$CC" && CC=cc
8077 test -z "$LTCC" && LTCC=$CC
8078 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8079 test -z "$LD" && LD=ld
8080 test -z "$ac_objext" && ac_objext=o
8082 for cc_temp in $compiler""; do
8083 case $cc_temp in
8084 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8085 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8086 \-*) ;;
8087 *) break;;
8088 esac
8089 done
8090 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8093 # Only perform the check for file, if the check method requires it
8094 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8095 case $deplibs_check_method in
8096 file_magic*)
8097 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8099 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8100 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8101 $as_echo_n "(cached) " >&6
8102 else
8103 case $MAGIC_CMD in
8104 [\\/*] | ?:[\\/]*)
8105 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8108 lt_save_MAGIC_CMD="$MAGIC_CMD"
8109 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8110 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8111 for ac_dir in $ac_dummy; do
8112 IFS="$lt_save_ifs"
8113 test -z "$ac_dir" && ac_dir=.
8114 if test -f $ac_dir/${ac_tool_prefix}file; then
8115 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8116 if test -n "$file_magic_test_file"; then
8117 case $deplibs_check_method in
8118 "file_magic "*)
8119 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8120 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8121 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8122 $EGREP "$file_magic_regex" > /dev/null; then
8124 else
8125 cat <<_LT_EOF 1>&2
8127 *** Warning: the command libtool uses to detect shared libraries,
8128 *** $file_magic_cmd, produces output that libtool cannot recognize.
8129 *** The result is that libtool may fail to recognize shared libraries
8130 *** as such. This will affect the creation of libtool libraries that
8131 *** depend on shared libraries, but programs linked with such libtool
8132 *** libraries will work regardless of this problem. Nevertheless, you
8133 *** may want to report the problem to your system manager and/or to
8134 *** bug-libtool@gnu.org
8136 _LT_EOF
8137 fi ;;
8138 esac
8140 break
8142 done
8143 IFS="$lt_save_ifs"
8144 MAGIC_CMD="$lt_save_MAGIC_CMD"
8146 esac
8149 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8150 if test -n "$MAGIC_CMD"; then
8151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8152 $as_echo "$MAGIC_CMD" >&6; }
8153 else
8154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8155 $as_echo "no" >&6; }
8162 if test -z "$lt_cv_path_MAGIC_CMD"; then
8163 if test -n "$ac_tool_prefix"; then
8164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8165 $as_echo_n "checking for file... " >&6; }
8166 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8167 $as_echo_n "(cached) " >&6
8168 else
8169 case $MAGIC_CMD in
8170 [\\/*] | ?:[\\/]*)
8171 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8174 lt_save_MAGIC_CMD="$MAGIC_CMD"
8175 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8176 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8177 for ac_dir in $ac_dummy; do
8178 IFS="$lt_save_ifs"
8179 test -z "$ac_dir" && ac_dir=.
8180 if test -f $ac_dir/file; then
8181 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8182 if test -n "$file_magic_test_file"; then
8183 case $deplibs_check_method in
8184 "file_magic "*)
8185 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8186 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8187 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8188 $EGREP "$file_magic_regex" > /dev/null; then
8190 else
8191 cat <<_LT_EOF 1>&2
8193 *** Warning: the command libtool uses to detect shared libraries,
8194 *** $file_magic_cmd, produces output that libtool cannot recognize.
8195 *** The result is that libtool may fail to recognize shared libraries
8196 *** as such. This will affect the creation of libtool libraries that
8197 *** depend on shared libraries, but programs linked with such libtool
8198 *** libraries will work regardless of this problem. Nevertheless, you
8199 *** may want to report the problem to your system manager and/or to
8200 *** bug-libtool@gnu.org
8202 _LT_EOF
8203 fi ;;
8204 esac
8206 break
8208 done
8209 IFS="$lt_save_ifs"
8210 MAGIC_CMD="$lt_save_MAGIC_CMD"
8212 esac
8215 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8216 if test -n "$MAGIC_CMD"; then
8217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8218 $as_echo "$MAGIC_CMD" >&6; }
8219 else
8220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8221 $as_echo "no" >&6; }
8225 else
8226 MAGIC_CMD=:
8232 esac
8234 # Use C for the default configuration in the libtool script
8236 lt_save_CC="$CC"
8237 ac_ext=c
8238 ac_cpp='$CPP $CPPFLAGS'
8239 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8240 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8241 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8244 # Source file extension for C test sources.
8245 ac_ext=c
8247 # Object file extension for compiled C test sources.
8248 objext=o
8249 objext=$objext
8251 # Code to be used in simple compile tests
8252 lt_simple_compile_test_code="int some_variable = 0;"
8254 # Code to be used in simple link tests
8255 lt_simple_link_test_code='int main(){return(0);}'
8263 # If no C compiler was specified, use CC.
8264 LTCC=${LTCC-"$CC"}
8266 # If no C compiler flags were specified, use CFLAGS.
8267 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8269 # Allow CC to be a program name with arguments.
8270 compiler=$CC
8272 # Save the default compiler, since it gets overwritten when the other
8273 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8274 compiler_DEFAULT=$CC
8276 # save warnings/boilerplate of simple test code
8277 ac_outfile=conftest.$ac_objext
8278 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8279 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8280 _lt_compiler_boilerplate=`cat conftest.err`
8281 $RM conftest*
8283 ac_outfile=conftest.$ac_objext
8284 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8285 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8286 _lt_linker_boilerplate=`cat conftest.err`
8287 $RM -r conftest*
8290 ## CAVEAT EMPTOR:
8291 ## There is no encapsulation within the following macros, do not change
8292 ## the running order or otherwise move them around unless you know exactly
8293 ## what you are doing...
8294 if test -n "$compiler"; then
8296 lt_prog_compiler_no_builtin_flag=
8298 if test "$GCC" = yes; then
8299 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8302 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8303 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8304 $as_echo_n "(cached) " >&6
8305 else
8306 lt_cv_prog_compiler_rtti_exceptions=no
8307 ac_outfile=conftest.$ac_objext
8308 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8309 lt_compiler_flag="-fno-rtti -fno-exceptions"
8310 # Insert the option either (1) after the last *FLAGS variable, or
8311 # (2) before a word containing "conftest.", or (3) at the end.
8312 # Note that $ac_compile itself does not contain backslashes and begins
8313 # with a dollar sign (not a hyphen), so the echo should work correctly.
8314 # The option is referenced via a variable to avoid confusing sed.
8315 lt_compile=`echo "$ac_compile" | $SED \
8316 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8317 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8318 -e 's:$: $lt_compiler_flag:'`
8319 (eval echo "\"\$as_me:8319: $lt_compile\"" >&5)
8320 (eval "$lt_compile" 2>conftest.err)
8321 ac_status=$?
8322 cat conftest.err >&5
8323 echo "$as_me:8323: \$? = $ac_status" >&5
8324 if (exit $ac_status) && test -s "$ac_outfile"; then
8325 # The compiler can only warn and ignore the option if not recognized
8326 # So say no if there are warnings other than the usual output.
8327 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8328 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8329 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8330 lt_cv_prog_compiler_rtti_exceptions=yes
8333 $RM conftest*
8336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8337 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8339 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8340 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8341 else
8352 lt_prog_compiler_wl=
8353 lt_prog_compiler_pic=
8354 lt_prog_compiler_static=
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8357 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8359 if test "$GCC" = yes; then
8360 lt_prog_compiler_wl='-Wl,'
8361 lt_prog_compiler_static='-static'
8363 case $host_os in
8364 aix*)
8365 # All AIX code is PIC.
8366 if test "$host_cpu" = ia64; then
8367 # AIX 5 now supports IA64 processor
8368 lt_prog_compiler_static='-Bstatic'
8372 amigaos*)
8373 case $host_cpu in
8374 powerpc)
8375 # see comment about AmigaOS4 .so support
8376 lt_prog_compiler_pic='-fPIC'
8378 m68k)
8379 # FIXME: we need at least 68020 code to build shared libraries, but
8380 # adding the `-m68020' flag to GCC prevents building anything better,
8381 # like `-m68040'.
8382 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8384 esac
8387 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8388 # PIC is the default for these OSes.
8391 mingw* | cygwin* | pw32* | os2* | cegcc*)
8392 # This hack is so that the source file can tell whether it is being
8393 # built for inclusion in a dll (and should export symbols for example).
8394 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8395 # (--disable-auto-import) libraries
8396 lt_prog_compiler_pic='-DDLL_EXPORT'
8399 darwin* | rhapsody*)
8400 # PIC is the default on this platform
8401 # Common symbols not allowed in MH_DYLIB files
8402 lt_prog_compiler_pic='-fno-common'
8405 hpux*)
8406 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8407 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8408 # sets the default TLS model and affects inlining.
8409 case $host_cpu in
8410 hppa*64*)
8411 # +Z the default
8414 lt_prog_compiler_pic='-fPIC'
8416 esac
8419 interix[3-9]*)
8420 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8421 # Instead, we relocate shared libraries at runtime.
8424 msdosdjgpp*)
8425 # Just because we use GCC doesn't mean we suddenly get shared libraries
8426 # on systems that don't support them.
8427 lt_prog_compiler_can_build_shared=no
8428 enable_shared=no
8431 *nto* | *qnx*)
8432 # QNX uses GNU C++, but need to define -shared option too, otherwise
8433 # it will coredump.
8434 lt_prog_compiler_pic='-fPIC -shared'
8437 sysv4*MP*)
8438 if test -d /usr/nec; then
8439 lt_prog_compiler_pic=-Kconform_pic
8444 lt_prog_compiler_pic='-fPIC'
8446 esac
8447 else
8448 # PORTME Check for flag to pass linker flags through the system compiler.
8449 case $host_os in
8450 aix*)
8451 lt_prog_compiler_wl='-Wl,'
8452 if test "$host_cpu" = ia64; then
8453 # AIX 5 now supports IA64 processor
8454 lt_prog_compiler_static='-Bstatic'
8455 else
8456 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8460 mingw* | cygwin* | pw32* | os2* | cegcc*)
8461 # This hack is so that the source file can tell whether it is being
8462 # built for inclusion in a dll (and should export symbols for example).
8463 lt_prog_compiler_pic='-DDLL_EXPORT'
8466 hpux9* | hpux10* | hpux11*)
8467 lt_prog_compiler_wl='-Wl,'
8468 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8469 # not for PA HP-UX.
8470 case $host_cpu in
8471 hppa*64*|ia64*)
8472 # +Z the default
8475 lt_prog_compiler_pic='+Z'
8477 esac
8478 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8479 lt_prog_compiler_static='${wl}-a ${wl}archive'
8482 irix5* | irix6* | nonstopux*)
8483 lt_prog_compiler_wl='-Wl,'
8484 # PIC (with -KPIC) is the default.
8485 lt_prog_compiler_static='-non_shared'
8488 linux* | k*bsd*-gnu)
8489 case $cc_basename in
8490 # old Intel for x86_64 which still supported -KPIC.
8491 ecc*)
8492 lt_prog_compiler_wl='-Wl,'
8493 lt_prog_compiler_pic='-KPIC'
8494 lt_prog_compiler_static='-static'
8496 # icc used to be incompatible with GCC.
8497 # ICC 10 doesn't accept -KPIC any more.
8498 icc* | ifort*)
8499 lt_prog_compiler_wl='-Wl,'
8500 lt_prog_compiler_pic='-fPIC'
8501 lt_prog_compiler_static='-static'
8503 # Lahey Fortran 8.1.
8504 lf95*)
8505 lt_prog_compiler_wl='-Wl,'
8506 lt_prog_compiler_pic='--shared'
8507 lt_prog_compiler_static='--static'
8509 pgcc* | pgf77* | pgf90* | pgf95*)
8510 # Portland Group compilers (*not* the Pentium gcc compiler,
8511 # which looks to be a dead project)
8512 lt_prog_compiler_wl='-Wl,'
8513 lt_prog_compiler_pic='-fpic'
8514 lt_prog_compiler_static='-Bstatic'
8516 ccc*)
8517 lt_prog_compiler_wl='-Wl,'
8518 # All Alpha code is PIC.
8519 lt_prog_compiler_static='-non_shared'
8521 xl*)
8522 # IBM XL C 8.0/Fortran 10.1 on PPC
8523 lt_prog_compiler_wl='-Wl,'
8524 lt_prog_compiler_pic='-qpic'
8525 lt_prog_compiler_static='-qstaticlink'
8528 case `$CC -V 2>&1 | sed 5q` in
8529 *Sun\ C*)
8530 # Sun C 5.9
8531 lt_prog_compiler_pic='-KPIC'
8532 lt_prog_compiler_static='-Bstatic'
8533 lt_prog_compiler_wl='-Wl,'
8535 *Sun\ F*)
8536 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8537 lt_prog_compiler_pic='-KPIC'
8538 lt_prog_compiler_static='-Bstatic'
8539 lt_prog_compiler_wl=''
8541 esac
8543 esac
8546 newsos6)
8547 lt_prog_compiler_pic='-KPIC'
8548 lt_prog_compiler_static='-Bstatic'
8551 *nto* | *qnx*)
8552 # QNX uses GNU C++, but need to define -shared option too, otherwise
8553 # it will coredump.
8554 lt_prog_compiler_pic='-fPIC -shared'
8557 osf3* | osf4* | osf5*)
8558 lt_prog_compiler_wl='-Wl,'
8559 # All OSF/1 code is PIC.
8560 lt_prog_compiler_static='-non_shared'
8563 rdos*)
8564 lt_prog_compiler_static='-non_shared'
8567 solaris*)
8568 lt_prog_compiler_pic='-KPIC'
8569 lt_prog_compiler_static='-Bstatic'
8570 case $cc_basename in
8571 f77* | f90* | f95*)
8572 lt_prog_compiler_wl='-Qoption ld ';;
8574 lt_prog_compiler_wl='-Wl,';;
8575 esac
8578 sunos4*)
8579 lt_prog_compiler_wl='-Qoption ld '
8580 lt_prog_compiler_pic='-PIC'
8581 lt_prog_compiler_static='-Bstatic'
8584 sysv4 | sysv4.2uw2* | sysv4.3*)
8585 lt_prog_compiler_wl='-Wl,'
8586 lt_prog_compiler_pic='-KPIC'
8587 lt_prog_compiler_static='-Bstatic'
8590 sysv4*MP*)
8591 if test -d /usr/nec ;then
8592 lt_prog_compiler_pic='-Kconform_pic'
8593 lt_prog_compiler_static='-Bstatic'
8597 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8598 lt_prog_compiler_wl='-Wl,'
8599 lt_prog_compiler_pic='-KPIC'
8600 lt_prog_compiler_static='-Bstatic'
8603 unicos*)
8604 lt_prog_compiler_wl='-Wl,'
8605 lt_prog_compiler_can_build_shared=no
8608 uts4*)
8609 lt_prog_compiler_pic='-pic'
8610 lt_prog_compiler_static='-Bstatic'
8614 lt_prog_compiler_can_build_shared=no
8616 esac
8619 case $host_os in
8620 # For platforms which do not support PIC, -DPIC is meaningless:
8621 *djgpp*)
8622 lt_prog_compiler_pic=
8625 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8627 esac
8628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8629 $as_echo "$lt_prog_compiler_pic" >&6; }
8637 # Check to make sure the PIC flag actually works.
8639 if test -n "$lt_prog_compiler_pic"; then
8640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8641 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8642 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8643 $as_echo_n "(cached) " >&6
8644 else
8645 lt_cv_prog_compiler_pic_works=no
8646 ac_outfile=conftest.$ac_objext
8647 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8648 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8649 # Insert the option either (1) after the last *FLAGS variable, or
8650 # (2) before a word containing "conftest.", or (3) at the end.
8651 # Note that $ac_compile itself does not contain backslashes and begins
8652 # with a dollar sign (not a hyphen), so the echo should work correctly.
8653 # The option is referenced via a variable to avoid confusing sed.
8654 lt_compile=`echo "$ac_compile" | $SED \
8655 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8656 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8657 -e 's:$: $lt_compiler_flag:'`
8658 (eval echo "\"\$as_me:8658: $lt_compile\"" >&5)
8659 (eval "$lt_compile" 2>conftest.err)
8660 ac_status=$?
8661 cat conftest.err >&5
8662 echo "$as_me:8662: \$? = $ac_status" >&5
8663 if (exit $ac_status) && test -s "$ac_outfile"; then
8664 # The compiler can only warn and ignore the option if not recognized
8665 # So say no if there are warnings other than the usual output.
8666 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8667 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8668 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8669 lt_cv_prog_compiler_pic_works=yes
8672 $RM conftest*
8675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8676 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8678 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8679 case $lt_prog_compiler_pic in
8680 "" | " "*) ;;
8681 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8682 esac
8683 else
8684 lt_prog_compiler_pic=
8685 lt_prog_compiler_can_build_shared=no
8696 # Check to make sure the static flag actually works.
8698 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8700 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8701 if ${lt_cv_prog_compiler_static_works+:} false; then :
8702 $as_echo_n "(cached) " >&6
8703 else
8704 lt_cv_prog_compiler_static_works=no
8705 save_LDFLAGS="$LDFLAGS"
8706 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8707 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8708 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8709 # The linker can only warn and ignore the option if not recognized
8710 # So say no if there are warnings
8711 if test -s conftest.err; then
8712 # Append any errors to the config.log.
8713 cat conftest.err 1>&5
8714 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8715 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8716 if diff conftest.exp conftest.er2 >/dev/null; then
8717 lt_cv_prog_compiler_static_works=yes
8719 else
8720 lt_cv_prog_compiler_static_works=yes
8723 $RM -r conftest*
8724 LDFLAGS="$save_LDFLAGS"
8727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8728 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8730 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8732 else
8733 lt_prog_compiler_static=
8742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8743 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8744 if ${lt_cv_prog_compiler_c_o+:} false; then :
8745 $as_echo_n "(cached) " >&6
8746 else
8747 lt_cv_prog_compiler_c_o=no
8748 $RM -r conftest 2>/dev/null
8749 mkdir conftest
8750 cd conftest
8751 mkdir out
8752 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8754 lt_compiler_flag="-o out/conftest2.$ac_objext"
8755 # Insert the option either (1) after the last *FLAGS variable, or
8756 # (2) before a word containing "conftest.", or (3) at the end.
8757 # Note that $ac_compile itself does not contain backslashes and begins
8758 # with a dollar sign (not a hyphen), so the echo should work correctly.
8759 lt_compile=`echo "$ac_compile" | $SED \
8760 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8761 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8762 -e 's:$: $lt_compiler_flag:'`
8763 (eval echo "\"\$as_me:8763: $lt_compile\"" >&5)
8764 (eval "$lt_compile" 2>out/conftest.err)
8765 ac_status=$?
8766 cat out/conftest.err >&5
8767 echo "$as_me:8767: \$? = $ac_status" >&5
8768 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8769 then
8770 # The compiler can only warn and ignore the option if not recognized
8771 # So say no if there are warnings
8772 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8773 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8774 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8775 lt_cv_prog_compiler_c_o=yes
8778 chmod u+w . 2>&5
8779 $RM conftest*
8780 # SGI C++ compiler will create directory out/ii_files/ for
8781 # template instantiation
8782 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8783 $RM out/* && rmdir out
8784 cd ..
8785 $RM -r conftest
8786 $RM conftest*
8789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8790 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8798 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8799 if ${lt_cv_prog_compiler_c_o+:} false; then :
8800 $as_echo_n "(cached) " >&6
8801 else
8802 lt_cv_prog_compiler_c_o=no
8803 $RM -r conftest 2>/dev/null
8804 mkdir conftest
8805 cd conftest
8806 mkdir out
8807 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8809 lt_compiler_flag="-o out/conftest2.$ac_objext"
8810 # Insert the option either (1) after the last *FLAGS variable, or
8811 # (2) before a word containing "conftest.", or (3) at the end.
8812 # Note that $ac_compile itself does not contain backslashes and begins
8813 # with a dollar sign (not a hyphen), so the echo should work correctly.
8814 lt_compile=`echo "$ac_compile" | $SED \
8815 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8816 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8817 -e 's:$: $lt_compiler_flag:'`
8818 (eval echo "\"\$as_me:8818: $lt_compile\"" >&5)
8819 (eval "$lt_compile" 2>out/conftest.err)
8820 ac_status=$?
8821 cat out/conftest.err >&5
8822 echo "$as_me:8822: \$? = $ac_status" >&5
8823 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8824 then
8825 # The compiler can only warn and ignore the option if not recognized
8826 # So say no if there are warnings
8827 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8828 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8829 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8830 lt_cv_prog_compiler_c_o=yes
8833 chmod u+w . 2>&5
8834 $RM conftest*
8835 # SGI C++ compiler will create directory out/ii_files/ for
8836 # template instantiation
8837 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8838 $RM out/* && rmdir out
8839 cd ..
8840 $RM -r conftest
8841 $RM conftest*
8844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8845 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8850 hard_links="nottested"
8851 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8852 # do not overwrite the value of need_locks provided by the user
8853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8854 $as_echo_n "checking if we can lock with hard links... " >&6; }
8855 hard_links=yes
8856 $RM conftest*
8857 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8858 touch conftest.a
8859 ln conftest.a conftest.b 2>&5 || hard_links=no
8860 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8862 $as_echo "$hard_links" >&6; }
8863 if test "$hard_links" = no; then
8864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8865 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8866 need_locks=warn
8868 else
8869 need_locks=no
8877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8878 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8880 runpath_var=
8881 allow_undefined_flag=
8882 always_export_symbols=no
8883 archive_cmds=
8884 archive_expsym_cmds=
8885 compiler_needs_object=no
8886 enable_shared_with_static_runtimes=no
8887 export_dynamic_flag_spec=
8888 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8889 hardcode_automatic=no
8890 hardcode_direct=no
8891 hardcode_direct_absolute=no
8892 hardcode_libdir_flag_spec=
8893 hardcode_libdir_flag_spec_ld=
8894 hardcode_libdir_separator=
8895 hardcode_minus_L=no
8896 hardcode_shlibpath_var=unsupported
8897 inherit_rpath=no
8898 link_all_deplibs=unknown
8899 module_cmds=
8900 module_expsym_cmds=
8901 old_archive_from_new_cmds=
8902 old_archive_from_expsyms_cmds=
8903 thread_safe_flag_spec=
8904 whole_archive_flag_spec=
8905 # include_expsyms should be a list of space-separated symbols to be *always*
8906 # included in the symbol list
8907 include_expsyms=
8908 # exclude_expsyms can be an extended regexp of symbols to exclude
8909 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8910 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8911 # as well as any symbol that contains `d'.
8912 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8913 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8914 # platforms (ab)use it in PIC code, but their linkers get confused if
8915 # the symbol is explicitly referenced. Since portable code cannot
8916 # rely on this symbol name, it's probably fine to never include it in
8917 # preloaded symbol tables.
8918 # Exclude shared library initialization/finalization symbols.
8919 extract_expsyms_cmds=
8921 case $host_os in
8922 cygwin* | mingw* | pw32* | cegcc*)
8923 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8924 # When not using gcc, we currently assume that we are using
8925 # Microsoft Visual C++.
8926 if test "$GCC" != yes; then
8927 with_gnu_ld=no
8930 interix*)
8931 # we just hope/assume this is gcc and not c89 (= MSVC++)
8932 with_gnu_ld=yes
8934 openbsd*)
8935 with_gnu_ld=no
8937 esac
8939 ld_shlibs=yes
8940 if test "$with_gnu_ld" = yes; then
8941 # If archive_cmds runs LD, not CC, wlarc should be empty
8942 wlarc='${wl}'
8944 # Set some defaults for GNU ld with shared library support. These
8945 # are reset later if shared libraries are not supported. Putting them
8946 # here allows them to be overridden if necessary.
8947 runpath_var=LD_RUN_PATH
8948 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8949 export_dynamic_flag_spec='${wl}--export-dynamic'
8950 # ancient GNU ld didn't support --whole-archive et. al.
8951 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8952 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8953 else
8954 whole_archive_flag_spec=
8956 supports_anon_versioning=no
8957 case `$LD -v 2>&1` in
8958 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8959 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8960 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8961 *\ 2.11.*) ;; # other 2.11 versions
8962 *) supports_anon_versioning=yes ;;
8963 esac
8965 # See if GNU ld supports shared libraries.
8966 case $host_os in
8967 aix[3-9]*)
8968 # On AIX/PPC, the GNU linker is very broken
8969 if test "$host_cpu" != ia64; then
8970 ld_shlibs=no
8971 cat <<_LT_EOF 1>&2
8973 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8974 *** to be unable to reliably create shared libraries on AIX.
8975 *** Therefore, libtool is disabling shared libraries support. If you
8976 *** really care for shared libraries, you may want to modify your PATH
8977 *** so that a non-GNU linker is found, and then restart.
8979 _LT_EOF
8983 amigaos*)
8984 case $host_cpu in
8985 powerpc)
8986 # see comment about AmigaOS4 .so support
8987 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8988 archive_expsym_cmds=''
8990 m68k)
8991 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)'
8992 hardcode_libdir_flag_spec='-L$libdir'
8993 hardcode_minus_L=yes
8995 esac
8998 beos*)
8999 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9000 allow_undefined_flag=unsupported
9001 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9002 # support --undefined. This deserves some investigation. FIXME
9003 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9004 else
9005 ld_shlibs=no
9009 cygwin* | mingw* | pw32* | cegcc*)
9010 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9011 # as there is no search path for DLLs.
9012 hardcode_libdir_flag_spec='-L$libdir'
9013 allow_undefined_flag=unsupported
9014 always_export_symbols=no
9015 enable_shared_with_static_runtimes=yes
9016 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9018 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9019 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9020 # If the export-symbols file already is a .def file (1st line
9021 # is EXPORTS), use it as is; otherwise, prepend...
9022 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9023 cp $export_symbols $output_objdir/$soname.def;
9024 else
9025 echo EXPORTS > $output_objdir/$soname.def;
9026 cat $export_symbols >> $output_objdir/$soname.def;
9028 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9029 else
9030 ld_shlibs=no
9034 interix[3-9]*)
9035 hardcode_direct=no
9036 hardcode_shlibpath_var=no
9037 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9038 export_dynamic_flag_spec='${wl}-E'
9039 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9040 # Instead, shared libraries are loaded at an image base (0x10000000 by
9041 # default) and relocated if they conflict, which is a slow very memory
9042 # consuming and fragmenting process. To avoid this, we pick a random,
9043 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9044 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9045 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9046 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'
9049 gnu* | linux* | tpf* | k*bsd*-gnu)
9050 tmp_diet=no
9051 if test "$host_os" = linux-dietlibc; then
9052 case $cc_basename in
9053 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9054 esac
9056 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9057 && test "$tmp_diet" = no
9058 then
9059 tmp_addflag=
9060 tmp_sharedflag='-shared'
9061 case $cc_basename,$host_cpu in
9062 pgcc*) # Portland Group C compiler
9063 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9064 tmp_addflag=' $pic_flag'
9066 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
9067 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9068 tmp_addflag=' $pic_flag -Mnomain' ;;
9069 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9070 tmp_addflag=' -i_dynamic' ;;
9071 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9072 tmp_addflag=' -i_dynamic -nofor_main' ;;
9073 ifc* | ifort*) # Intel Fortran compiler
9074 tmp_addflag=' -nofor_main' ;;
9075 lf95*) # Lahey Fortran 8.1
9076 whole_archive_flag_spec=
9077 tmp_sharedflag='--shared' ;;
9078 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9079 tmp_sharedflag='-qmkshrobj'
9080 tmp_addflag= ;;
9081 esac
9082 case `$CC -V 2>&1 | sed 5q` in
9083 *Sun\ C*) # Sun C 5.9
9084 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9085 compiler_needs_object=yes
9086 tmp_sharedflag='-G' ;;
9087 *Sun\ F*) # Sun Fortran 8.3
9088 tmp_sharedflag='-G' ;;
9089 esac
9090 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9092 if test "x$supports_anon_versioning" = xyes; then
9093 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9094 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9095 echo "local: *; };" >> $output_objdir/$libname.ver~
9096 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9099 case $cc_basename in
9100 xlf*)
9101 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9102 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9103 hardcode_libdir_flag_spec=
9104 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9105 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9106 if test "x$supports_anon_versioning" = xyes; then
9107 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9108 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9109 echo "local: *; };" >> $output_objdir/$libname.ver~
9110 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9113 esac
9114 else
9115 ld_shlibs=no
9119 netbsd*)
9120 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9121 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9122 wlarc=
9123 else
9124 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9125 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9129 solaris*)
9130 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9131 ld_shlibs=no
9132 cat <<_LT_EOF 1>&2
9134 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9135 *** create shared libraries on Solaris systems. Therefore, libtool
9136 *** is disabling shared libraries support. We urge you to upgrade GNU
9137 *** binutils to release 2.9.1 or newer. Another option is to modify
9138 *** your PATH or compiler configuration so that the native linker is
9139 *** used, and then restart.
9141 _LT_EOF
9142 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9143 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9144 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9145 else
9146 ld_shlibs=no
9150 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9151 case `$LD -v 2>&1` in
9152 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9153 ld_shlibs=no
9154 cat <<_LT_EOF 1>&2
9156 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9157 *** reliably create shared libraries on SCO systems. Therefore, libtool
9158 *** is disabling shared libraries support. We urge you to upgrade GNU
9159 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9160 *** your PATH or compiler configuration so that the native linker is
9161 *** used, and then restart.
9163 _LT_EOF
9166 # For security reasons, it is highly recommended that you always
9167 # use absolute paths for naming shared libraries, and exclude the
9168 # DT_RUNPATH tag from executables and libraries. But doing so
9169 # requires that you compile everything twice, which is a pain.
9170 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9171 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9172 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9173 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9174 else
9175 ld_shlibs=no
9178 esac
9181 sunos4*)
9182 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9183 wlarc=
9184 hardcode_direct=yes
9185 hardcode_shlibpath_var=no
9189 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9190 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9191 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9192 else
9193 ld_shlibs=no
9196 esac
9198 if test "$ld_shlibs" = no; then
9199 runpath_var=
9200 hardcode_libdir_flag_spec=
9201 export_dynamic_flag_spec=
9202 whole_archive_flag_spec=
9204 else
9205 # PORTME fill in a description of your system's linker (not GNU ld)
9206 case $host_os in
9207 aix3*)
9208 allow_undefined_flag=unsupported
9209 always_export_symbols=yes
9210 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'
9211 # Note: this linker hardcodes the directories in LIBPATH if there
9212 # are no directories specified by -L.
9213 hardcode_minus_L=yes
9214 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9215 # Neither direct hardcoding nor static linking is supported with a
9216 # broken collect2.
9217 hardcode_direct=unsupported
9221 aix[4-9]*)
9222 if test "$host_cpu" = ia64; then
9223 # On IA64, the linker does run time linking by default, so we don't
9224 # have to do anything special.
9225 aix_use_runtimelinking=no
9226 exp_sym_flag='-Bexport'
9227 no_entry_flag=""
9228 else
9229 # If we're using GNU nm, then we don't want the "-C" option.
9230 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9231 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9232 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9233 else
9234 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'
9236 aix_use_runtimelinking=no
9238 # Test if we are trying to use run time linking or normal
9239 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9240 # need to do runtime linking.
9241 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9242 for ld_flag in $LDFLAGS; do
9243 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9244 aix_use_runtimelinking=yes
9245 break
9247 done
9249 esac
9251 exp_sym_flag='-bexport'
9252 no_entry_flag='-bnoentry'
9255 # When large executables or shared objects are built, AIX ld can
9256 # have problems creating the table of contents. If linking a library
9257 # or program results in "error TOC overflow" add -mminimal-toc to
9258 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9259 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9261 archive_cmds=''
9262 hardcode_direct=yes
9263 hardcode_direct_absolute=yes
9264 hardcode_libdir_separator=':'
9265 link_all_deplibs=yes
9266 file_list_spec='${wl}-f,'
9268 if test "$GCC" = yes; then
9269 case $host_os in aix4.[012]|aix4.[012].*)
9270 # We only want to do this on AIX 4.2 and lower, the check
9271 # below for broken collect2 doesn't work under 4.3+
9272 collect2name=`${CC} -print-prog-name=collect2`
9273 if test -f "$collect2name" &&
9274 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9275 then
9276 # We have reworked collect2
9278 else
9279 # We have old collect2
9280 hardcode_direct=unsupported
9281 # It fails to find uninstalled libraries when the uninstalled
9282 # path is not listed in the libpath. Setting hardcode_minus_L
9283 # to unsupported forces relinking
9284 hardcode_minus_L=yes
9285 hardcode_libdir_flag_spec='-L$libdir'
9286 hardcode_libdir_separator=
9289 esac
9290 shared_flag='-shared'
9291 if test "$aix_use_runtimelinking" = yes; then
9292 shared_flag="$shared_flag "'${wl}-G'
9294 else
9295 # not using gcc
9296 if test "$host_cpu" = ia64; then
9297 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9298 # chokes on -Wl,-G. The following line is correct:
9299 shared_flag='-G'
9300 else
9301 if test "$aix_use_runtimelinking" = yes; then
9302 shared_flag='${wl}-G'
9303 else
9304 shared_flag='${wl}-bM:SRE'
9309 export_dynamic_flag_spec='${wl}-bexpall'
9310 # It seems that -bexpall does not export symbols beginning with
9311 # underscore (_), so it is better to generate a list of symbols to export.
9312 always_export_symbols=yes
9313 if test "$aix_use_runtimelinking" = yes; then
9314 # Warning - without using the other runtime loading flags (-brtl),
9315 # -berok will link without error, but may produce a broken library.
9316 allow_undefined_flag='-berok'
9317 # Determine the default libpath from the value encoded in an
9318 # empty executable.
9319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9320 /* end confdefs.h. */
9323 main ()
9327 return 0;
9329 _ACEOF
9330 if ac_fn_c_try_link "$LINENO"; then :
9332 lt_aix_libpath_sed='
9333 /Import File Strings/,/^$/ {
9334 /^0/ {
9335 s/^0 *\(.*\)$/\1/
9339 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9340 # Check for a 64-bit object if we didn't find anything.
9341 if test -z "$aix_libpath"; then
9342 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9345 rm -f core conftest.err conftest.$ac_objext \
9346 conftest$ac_exeext conftest.$ac_ext
9347 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9349 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9350 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9351 else
9352 if test "$host_cpu" = ia64; then
9353 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9354 allow_undefined_flag="-z nodefs"
9355 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"
9356 else
9357 # Determine the default libpath from the value encoded in an
9358 # empty executable.
9359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9360 /* end confdefs.h. */
9363 main ()
9367 return 0;
9369 _ACEOF
9370 if ac_fn_c_try_link "$LINENO"; then :
9372 lt_aix_libpath_sed='
9373 /Import File Strings/,/^$/ {
9374 /^0/ {
9375 s/^0 *\(.*\)$/\1/
9379 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9380 # Check for a 64-bit object if we didn't find anything.
9381 if test -z "$aix_libpath"; then
9382 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9385 rm -f core conftest.err conftest.$ac_objext \
9386 conftest$ac_exeext conftest.$ac_ext
9387 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9389 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9390 # Warning - without using the other run time loading flags,
9391 # -berok will link without error, but may produce a broken library.
9392 no_undefined_flag=' ${wl}-bernotok'
9393 allow_undefined_flag=' ${wl}-berok'
9394 # Exported symbols can be pulled into shared objects from archives
9395 whole_archive_flag_spec='$convenience'
9396 archive_cmds_need_lc=yes
9397 # This is similar to how AIX traditionally builds its shared libraries.
9398 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'
9403 amigaos*)
9404 case $host_cpu in
9405 powerpc)
9406 # see comment about AmigaOS4 .so support
9407 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9408 archive_expsym_cmds=''
9410 m68k)
9411 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)'
9412 hardcode_libdir_flag_spec='-L$libdir'
9413 hardcode_minus_L=yes
9415 esac
9418 bsdi[45]*)
9419 export_dynamic_flag_spec=-rdynamic
9422 cygwin* | mingw* | pw32* | cegcc*)
9423 # When not using gcc, we currently assume that we are using
9424 # Microsoft Visual C++.
9425 # hardcode_libdir_flag_spec is actually meaningless, as there is
9426 # no search path for DLLs.
9427 hardcode_libdir_flag_spec=' '
9428 allow_undefined_flag=unsupported
9429 # Tell ltmain to make .lib files, not .a files.
9430 libext=lib
9431 # Tell ltmain to make .dll files, not .so files.
9432 shrext_cmds=".dll"
9433 # FIXME: Setting linknames here is a bad hack.
9434 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9435 # The linker will automatically build a .lib file if we build a DLL.
9436 old_archive_from_new_cmds='true'
9437 # FIXME: Should let the user specify the lib program.
9438 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9439 fix_srcfile_path='`cygpath -w "$srcfile"`'
9440 enable_shared_with_static_runtimes=yes
9443 darwin* | rhapsody*)
9446 archive_cmds_need_lc=no
9447 hardcode_direct=no
9448 hardcode_automatic=yes
9449 hardcode_shlibpath_var=unsupported
9450 whole_archive_flag_spec=''
9451 link_all_deplibs=yes
9452 allow_undefined_flag="$_lt_dar_allow_undefined"
9453 case $cc_basename in
9454 ifort*) _lt_dar_can_shared=yes ;;
9455 *) _lt_dar_can_shared=$GCC ;;
9456 esac
9457 if test "$_lt_dar_can_shared" = "yes"; then
9458 output_verbose_link_cmd=echo
9459 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9460 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9461 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}"
9462 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}"
9464 else
9465 ld_shlibs=no
9470 dgux*)
9471 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9472 hardcode_libdir_flag_spec='-L$libdir'
9473 hardcode_shlibpath_var=no
9476 freebsd1*)
9477 ld_shlibs=no
9480 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9481 # support. Future versions do this automatically, but an explicit c++rt0.o
9482 # does not break anything, and helps significantly (at the cost of a little
9483 # extra space).
9484 freebsd2.2*)
9485 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9486 hardcode_libdir_flag_spec='-R$libdir'
9487 hardcode_direct=yes
9488 hardcode_shlibpath_var=no
9491 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9492 freebsd2*)
9493 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9494 hardcode_direct=yes
9495 hardcode_minus_L=yes
9496 hardcode_shlibpath_var=no
9499 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9500 freebsd* | dragonfly*)
9501 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9502 hardcode_libdir_flag_spec='-R$libdir'
9503 hardcode_direct=yes
9504 hardcode_shlibpath_var=no
9507 hpux9*)
9508 if test "$GCC" = yes; then
9509 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9510 else
9511 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'
9513 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9514 hardcode_libdir_separator=:
9515 hardcode_direct=yes
9517 # hardcode_minus_L: Not really in the search PATH,
9518 # but as the default location of the library.
9519 hardcode_minus_L=yes
9520 export_dynamic_flag_spec='${wl}-E'
9523 hpux10*)
9524 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9525 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9526 else
9527 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9529 if test "$with_gnu_ld" = no; then
9530 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9531 hardcode_libdir_flag_spec_ld='+b $libdir'
9532 hardcode_libdir_separator=:
9533 hardcode_direct=yes
9534 hardcode_direct_absolute=yes
9535 export_dynamic_flag_spec='${wl}-E'
9536 # hardcode_minus_L: Not really in the search PATH,
9537 # but as the default location of the library.
9538 hardcode_minus_L=yes
9542 hpux11*)
9543 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9544 case $host_cpu in
9545 hppa*64*)
9546 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9548 ia64*)
9549 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9552 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9554 esac
9555 else
9556 case $host_cpu in
9557 hppa*64*)
9558 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9560 ia64*)
9561 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9564 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9566 esac
9568 if test "$with_gnu_ld" = no; then
9569 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9570 hardcode_libdir_separator=:
9572 case $host_cpu in
9573 hppa*64*|ia64*)
9574 hardcode_direct=no
9575 hardcode_shlibpath_var=no
9578 hardcode_direct=yes
9579 hardcode_direct_absolute=yes
9580 export_dynamic_flag_spec='${wl}-E'
9582 # hardcode_minus_L: Not really in the search PATH,
9583 # but as the default location of the library.
9584 hardcode_minus_L=yes
9586 esac
9590 irix5* | irix6* | nonstopux*)
9591 if test "$GCC" = yes; then
9592 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9593 # Try to use the -exported_symbol ld option, if it does not
9594 # work, assume that -exports_file does not work either and
9595 # implicitly export all symbols.
9596 save_LDFLAGS="$LDFLAGS"
9597 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9599 /* end confdefs.h. */
9600 int foo (void) { return 0; }
9601 _ACEOF
9602 if ac_fn_c_try_link "$LINENO"; then :
9604 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9607 rm -f core conftest.err conftest.$ac_objext \
9608 conftest$ac_exeext conftest.$ac_ext
9609 LDFLAGS="$save_LDFLAGS"
9610 else
9611 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9612 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9614 archive_cmds_need_lc='no'
9615 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9616 hardcode_libdir_separator=:
9617 inherit_rpath=yes
9618 link_all_deplibs=yes
9621 netbsd*)
9622 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9623 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9624 else
9625 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9627 hardcode_libdir_flag_spec='-R$libdir'
9628 hardcode_direct=yes
9629 hardcode_shlibpath_var=no
9632 newsos6)
9633 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9634 hardcode_direct=yes
9635 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9636 hardcode_libdir_separator=:
9637 hardcode_shlibpath_var=no
9640 *nto* | *qnx*)
9643 openbsd*)
9644 if test -f /usr/libexec/ld.so; then
9645 hardcode_direct=yes
9646 hardcode_shlibpath_var=no
9647 hardcode_direct_absolute=yes
9648 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9649 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9650 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9651 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9652 export_dynamic_flag_spec='${wl}-E'
9653 else
9654 case $host_os in
9655 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9656 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9657 hardcode_libdir_flag_spec='-R$libdir'
9660 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9661 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9663 esac
9665 else
9666 ld_shlibs=no
9670 os2*)
9671 hardcode_libdir_flag_spec='-L$libdir'
9672 hardcode_minus_L=yes
9673 allow_undefined_flag=unsupported
9674 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'
9675 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9678 osf3*)
9679 if test "$GCC" = yes; then
9680 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9681 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9682 else
9683 allow_undefined_flag=' -expect_unresolved \*'
9684 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9686 archive_cmds_need_lc='no'
9687 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9688 hardcode_libdir_separator=:
9691 osf4* | osf5*) # as osf3* with the addition of -msym flag
9692 if test "$GCC" = yes; then
9693 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9694 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9695 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9696 else
9697 allow_undefined_flag=' -expect_unresolved \*'
9698 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9699 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~
9700 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9702 # Both c and cxx compiler support -rpath directly
9703 hardcode_libdir_flag_spec='-rpath $libdir'
9705 archive_cmds_need_lc='no'
9706 hardcode_libdir_separator=:
9709 solaris*)
9710 no_undefined_flag=' -z defs'
9711 if test "$GCC" = yes; then
9712 wlarc='${wl}'
9713 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9714 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9715 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9716 else
9717 case `$CC -V 2>&1` in
9718 *"Compilers 5.0"*)
9719 wlarc=''
9720 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9721 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9722 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9725 wlarc='${wl}'
9726 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9727 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9728 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9730 esac
9732 hardcode_libdir_flag_spec='-R$libdir'
9733 hardcode_shlibpath_var=no
9734 case $host_os in
9735 solaris2.[0-5] | solaris2.[0-5].*) ;;
9737 # The compiler driver will combine and reorder linker options,
9738 # but understands `-z linker_flag'. GCC discards it without `$wl',
9739 # but is careful enough not to reorder.
9740 # Supported since Solaris 2.6 (maybe 2.5.1?)
9741 if test "$GCC" = yes; then
9742 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9743 else
9744 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9747 esac
9748 link_all_deplibs=yes
9751 sunos4*)
9752 if test "x$host_vendor" = xsequent; then
9753 # Use $CC to link under sequent, because it throws in some extra .o
9754 # files that make .init and .fini sections work.
9755 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9756 else
9757 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9759 hardcode_libdir_flag_spec='-L$libdir'
9760 hardcode_direct=yes
9761 hardcode_minus_L=yes
9762 hardcode_shlibpath_var=no
9765 sysv4)
9766 case $host_vendor in
9767 sni)
9768 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9769 hardcode_direct=yes # is this really true???
9771 siemens)
9772 ## LD is ld it makes a PLAMLIB
9773 ## CC just makes a GrossModule.
9774 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9775 reload_cmds='$CC -r -o $output$reload_objs'
9776 hardcode_direct=no
9778 motorola)
9779 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9780 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9782 esac
9783 runpath_var='LD_RUN_PATH'
9784 hardcode_shlibpath_var=no
9787 sysv4.3*)
9788 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9789 hardcode_shlibpath_var=no
9790 export_dynamic_flag_spec='-Bexport'
9793 sysv4*MP*)
9794 if test -d /usr/nec; then
9795 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9796 hardcode_shlibpath_var=no
9797 runpath_var=LD_RUN_PATH
9798 hardcode_runpath_var=yes
9799 ld_shlibs=yes
9803 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9804 no_undefined_flag='${wl}-z,text'
9805 archive_cmds_need_lc=no
9806 hardcode_shlibpath_var=no
9807 runpath_var='LD_RUN_PATH'
9809 if test "$GCC" = yes; then
9810 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9811 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9812 else
9813 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9814 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9818 sysv5* | sco3.2v5* | sco5v6*)
9819 # Note: We can NOT use -z defs as we might desire, because we do not
9820 # link with -lc, and that would cause any symbols used from libc to
9821 # always be unresolved, which means just about no library would
9822 # ever link correctly. If we're not using GNU ld we use -z text
9823 # though, which does catch some bad symbols but isn't as heavy-handed
9824 # as -z defs.
9825 no_undefined_flag='${wl}-z,text'
9826 allow_undefined_flag='${wl}-z,nodefs'
9827 archive_cmds_need_lc=no
9828 hardcode_shlibpath_var=no
9829 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9830 hardcode_libdir_separator=':'
9831 link_all_deplibs=yes
9832 export_dynamic_flag_spec='${wl}-Bexport'
9833 runpath_var='LD_RUN_PATH'
9835 if test "$GCC" = yes; then
9836 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9837 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9838 else
9839 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9840 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9844 uts4*)
9845 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9846 hardcode_libdir_flag_spec='-L$libdir'
9847 hardcode_shlibpath_var=no
9851 ld_shlibs=no
9853 esac
9855 if test x$host_vendor = xsni; then
9856 case $host in
9857 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9858 export_dynamic_flag_spec='${wl}-Blargedynsym'
9860 esac
9864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9865 $as_echo "$ld_shlibs" >&6; }
9866 test "$ld_shlibs" = no && can_build_shared=no
9868 with_gnu_ld=$with_gnu_ld
9885 # Do we need to explicitly link libc?
9887 case "x$archive_cmds_need_lc" in
9888 x|xyes)
9889 # Assume -lc should be added
9890 archive_cmds_need_lc=yes
9892 if test "$enable_shared" = yes && test "$GCC" = yes; then
9893 case $archive_cmds in
9894 *'~'*)
9895 # FIXME: we may have to deal with multi-command sequences.
9897 '$CC '*)
9898 # Test whether the compiler implicitly links with -lc since on some
9899 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9900 # to ld, don't add -lc before -lgcc.
9901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9902 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9903 $RM conftest*
9904 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9906 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9907 (eval $ac_compile) 2>&5
9908 ac_status=$?
9909 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9910 test $ac_status = 0; } 2>conftest.err; then
9911 soname=conftest
9912 lib=conftest
9913 libobjs=conftest.$ac_objext
9914 deplibs=
9915 wl=$lt_prog_compiler_wl
9916 pic_flag=$lt_prog_compiler_pic
9917 compiler_flags=-v
9918 linker_flags=-v
9919 verstring=
9920 output_objdir=.
9921 libname=conftest
9922 lt_save_allow_undefined_flag=$allow_undefined_flag
9923 allow_undefined_flag=
9924 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9925 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9926 ac_status=$?
9927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9928 test $ac_status = 0; }
9929 then
9930 archive_cmds_need_lc=no
9931 else
9932 archive_cmds_need_lc=yes
9934 allow_undefined_flag=$lt_save_allow_undefined_flag
9935 else
9936 cat conftest.err 1>&5
9938 $RM conftest*
9939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9940 $as_echo "$archive_cmds_need_lc" >&6; }
9942 esac
9945 esac
10103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10104 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10106 if test "$GCC" = yes; then
10107 case $host_os in
10108 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10109 *) lt_awk_arg="/^libraries:/" ;;
10110 esac
10111 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10112 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10113 # if the path contains ";" then we assume it to be the separator
10114 # otherwise default to the standard path separator (i.e. ":") - it is
10115 # assumed that no part of a normal pathname contains ";" but that should
10116 # okay in the real world where ";" in dirpaths is itself problematic.
10117 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10118 else
10119 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10121 # Ok, now we have the path, separated by spaces, we can step through it
10122 # and add multilib dir if necessary.
10123 lt_tmp_lt_search_path_spec=
10124 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10125 for lt_sys_path in $lt_search_path_spec; do
10126 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10127 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10128 else
10129 test -d "$lt_sys_path" && \
10130 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10132 done
10133 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10134 BEGIN {RS=" "; FS="/|\n";} {
10135 lt_foo="";
10136 lt_count=0;
10137 for (lt_i = NF; lt_i > 0; lt_i--) {
10138 if ($lt_i != "" && $lt_i != ".") {
10139 if ($lt_i == "..") {
10140 lt_count++;
10141 } else {
10142 if (lt_count == 0) {
10143 lt_foo="/" $lt_i lt_foo;
10144 } else {
10145 lt_count--;
10150 if (lt_foo != "") { lt_freq[lt_foo]++; }
10151 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10153 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10154 else
10155 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10157 library_names_spec=
10158 libname_spec='lib$name'
10159 soname_spec=
10160 shrext_cmds=".so"
10161 postinstall_cmds=
10162 postuninstall_cmds=
10163 finish_cmds=
10164 finish_eval=
10165 shlibpath_var=
10166 shlibpath_overrides_runpath=unknown
10167 version_type=none
10168 dynamic_linker="$host_os ld.so"
10169 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10170 need_lib_prefix=unknown
10171 hardcode_into_libs=no
10173 # when you set need_version to no, make sure it does not cause -set_version
10174 # flags to be left without arguments
10175 need_version=unknown
10177 case $host_os in
10178 aix3*)
10179 version_type=linux
10180 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10181 shlibpath_var=LIBPATH
10183 # AIX 3 has no versioning support, so we append a major version to the name.
10184 soname_spec='${libname}${release}${shared_ext}$major'
10187 aix[4-9]*)
10188 version_type=linux
10189 need_lib_prefix=no
10190 need_version=no
10191 hardcode_into_libs=yes
10192 if test "$host_cpu" = ia64; then
10193 # AIX 5 supports IA64
10194 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10195 shlibpath_var=LD_LIBRARY_PATH
10196 else
10197 # With GCC up to 2.95.x, collect2 would create an import file
10198 # for dependence libraries. The import file would start with
10199 # the line `#! .'. This would cause the generated library to
10200 # depend on `.', always an invalid library. This was fixed in
10201 # development snapshots of GCC prior to 3.0.
10202 case $host_os in
10203 aix4 | aix4.[01] | aix4.[01].*)
10204 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10205 echo ' yes '
10206 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10208 else
10209 can_build_shared=no
10212 esac
10213 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10214 # soname into executable. Probably we can add versioning support to
10215 # collect2, so additional links can be useful in future.
10216 if test "$aix_use_runtimelinking" = yes; then
10217 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10218 # instead of lib<name>.a to let people know that these are not
10219 # typical AIX shared libraries.
10220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10221 else
10222 # We preserve .a as extension for shared libraries through AIX4.2
10223 # and later when we are not doing run time linking.
10224 library_names_spec='${libname}${release}.a $libname.a'
10225 soname_spec='${libname}${release}${shared_ext}$major'
10227 shlibpath_var=LIBPATH
10231 amigaos*)
10232 case $host_cpu in
10233 powerpc)
10234 # Since July 2007 AmigaOS4 officially supports .so libraries.
10235 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10238 m68k)
10239 library_names_spec='$libname.ixlibrary $libname.a'
10240 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10241 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
10243 esac
10246 beos*)
10247 library_names_spec='${libname}${shared_ext}'
10248 dynamic_linker="$host_os ld.so"
10249 shlibpath_var=LIBRARY_PATH
10252 bsdi[45]*)
10253 version_type=linux
10254 need_version=no
10255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10256 soname_spec='${libname}${release}${shared_ext}$major'
10257 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10258 shlibpath_var=LD_LIBRARY_PATH
10259 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10260 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10261 # the default ld.so.conf also contains /usr/contrib/lib and
10262 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10263 # libtool to hard-code these into programs
10266 cygwin* | mingw* | pw32* | cegcc*)
10267 version_type=windows
10268 shrext_cmds=".dll"
10269 need_version=no
10270 need_lib_prefix=no
10272 case $GCC,$host_os in
10273 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10274 library_names_spec='$libname.dll.a'
10275 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10276 postinstall_cmds='base_file=`basename \${file}`~
10277 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10278 dldir=$destdir/`dirname \$dlpath`~
10279 test -d \$dldir || mkdir -p \$dldir~
10280 $install_prog $dir/$dlname \$dldir/$dlname~
10281 chmod a+x \$dldir/$dlname~
10282 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10283 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10285 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10286 dlpath=$dir/\$dldll~
10287 $RM \$dlpath'
10288 shlibpath_overrides_runpath=yes
10290 case $host_os in
10291 cygwin*)
10292 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10293 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10294 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10296 mingw* | cegcc*)
10297 # MinGW DLLs use traditional 'lib' prefix
10298 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10299 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10300 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10301 # It is most probably a Windows format PATH printed by
10302 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10303 # path with ; separators, and with drive letters. We can handle the
10304 # drive letters (cygwin fileutils understands them), so leave them,
10305 # especially as we might pass files found there to a mingw objdump,
10306 # which wouldn't understand a cygwinified path. Ahh.
10307 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10308 else
10309 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10312 pw32*)
10313 # pw32 DLLs use 'pw' prefix rather than 'lib'
10314 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10316 esac
10320 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10322 esac
10323 dynamic_linker='Win32 ld.exe'
10324 # FIXME: first we should search . and the directory the executable is in
10325 shlibpath_var=PATH
10328 darwin* | rhapsody*)
10329 dynamic_linker="$host_os dyld"
10330 version_type=darwin
10331 need_lib_prefix=no
10332 need_version=no
10333 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10334 soname_spec='${libname}${release}${major}$shared_ext'
10335 shlibpath_overrides_runpath=yes
10336 shlibpath_var=DYLD_LIBRARY_PATH
10337 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10339 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10340 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10343 dgux*)
10344 version_type=linux
10345 need_lib_prefix=no
10346 need_version=no
10347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10348 soname_spec='${libname}${release}${shared_ext}$major'
10349 shlibpath_var=LD_LIBRARY_PATH
10352 freebsd1*)
10353 dynamic_linker=no
10356 freebsd* | dragonfly*)
10357 # DragonFly does not have aout. When/if they implement a new
10358 # versioning mechanism, adjust this.
10359 if test -x /usr/bin/objformat; then
10360 objformat=`/usr/bin/objformat`
10361 else
10362 case $host_os in
10363 freebsd[123]*) objformat=aout ;;
10364 *) objformat=elf ;;
10365 esac
10367 version_type=freebsd-$objformat
10368 case $version_type in
10369 freebsd-elf*)
10370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10371 need_version=no
10372 need_lib_prefix=no
10374 freebsd-*)
10375 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10376 need_version=yes
10378 esac
10379 shlibpath_var=LD_LIBRARY_PATH
10380 case $host_os in
10381 freebsd2*)
10382 shlibpath_overrides_runpath=yes
10384 freebsd3.[01]* | freebsdelf3.[01]*)
10385 shlibpath_overrides_runpath=yes
10386 hardcode_into_libs=yes
10388 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10389 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10390 shlibpath_overrides_runpath=no
10391 hardcode_into_libs=yes
10393 *) # from 4.6 on, and DragonFly
10394 shlibpath_overrides_runpath=yes
10395 hardcode_into_libs=yes
10397 esac
10400 gnu*)
10401 version_type=linux
10402 need_lib_prefix=no
10403 need_version=no
10404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10405 soname_spec='${libname}${release}${shared_ext}$major'
10406 shlibpath_var=LD_LIBRARY_PATH
10407 hardcode_into_libs=yes
10410 hpux9* | hpux10* | hpux11*)
10411 # Give a soname corresponding to the major version so that dld.sl refuses to
10412 # link against other versions.
10413 version_type=sunos
10414 need_lib_prefix=no
10415 need_version=no
10416 case $host_cpu in
10417 ia64*)
10418 shrext_cmds='.so'
10419 hardcode_into_libs=yes
10420 dynamic_linker="$host_os dld.so"
10421 shlibpath_var=LD_LIBRARY_PATH
10422 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10424 soname_spec='${libname}${release}${shared_ext}$major'
10425 if test "X$HPUX_IA64_MODE" = X32; then
10426 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10427 else
10428 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10430 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10432 hppa*64*)
10433 shrext_cmds='.sl'
10434 hardcode_into_libs=yes
10435 dynamic_linker="$host_os dld.sl"
10436 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10437 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10439 soname_spec='${libname}${release}${shared_ext}$major'
10440 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10441 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10444 shrext_cmds='.sl'
10445 dynamic_linker="$host_os dld.sl"
10446 shlibpath_var=SHLIB_PATH
10447 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10449 soname_spec='${libname}${release}${shared_ext}$major'
10451 esac
10452 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10453 postinstall_cmds='chmod 555 $lib'
10456 interix[3-9]*)
10457 version_type=linux
10458 need_lib_prefix=no
10459 need_version=no
10460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10461 soname_spec='${libname}${release}${shared_ext}$major'
10462 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10463 shlibpath_var=LD_LIBRARY_PATH
10464 shlibpath_overrides_runpath=no
10465 hardcode_into_libs=yes
10468 irix5* | irix6* | nonstopux*)
10469 case $host_os in
10470 nonstopux*) version_type=nonstopux ;;
10472 if test "$lt_cv_prog_gnu_ld" = yes; then
10473 version_type=linux
10474 else
10475 version_type=irix
10476 fi ;;
10477 esac
10478 need_lib_prefix=no
10479 need_version=no
10480 soname_spec='${libname}${release}${shared_ext}$major'
10481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10482 case $host_os in
10483 irix5* | nonstopux*)
10484 libsuff= shlibsuff=
10487 case $LD in # libtool.m4 will add one of these switches to LD
10488 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10489 libsuff= shlibsuff= libmagic=32-bit;;
10490 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10491 libsuff=32 shlibsuff=N32 libmagic=N32;;
10492 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10493 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10494 *) libsuff= shlibsuff= libmagic=never-match;;
10495 esac
10497 esac
10498 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10499 shlibpath_overrides_runpath=no
10500 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10501 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10502 hardcode_into_libs=yes
10505 # No shared lib support for Linux oldld, aout, or coff.
10506 linux*oldld* | linux*aout* | linux*coff*)
10507 dynamic_linker=no
10510 # This must be Linux ELF.
10511 linux* | k*bsd*-gnu)
10512 version_type=linux
10513 need_lib_prefix=no
10514 need_version=no
10515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10516 soname_spec='${libname}${release}${shared_ext}$major'
10517 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10518 shlibpath_var=LD_LIBRARY_PATH
10519 shlibpath_overrides_runpath=no
10520 # Some binutils ld are patched to set DT_RUNPATH
10521 save_LDFLAGS=$LDFLAGS
10522 save_libdir=$libdir
10523 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10524 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10526 /* end confdefs.h. */
10529 main ()
10533 return 0;
10535 _ACEOF
10536 if ac_fn_c_try_link "$LINENO"; then :
10537 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10538 shlibpath_overrides_runpath=yes
10541 rm -f core conftest.err conftest.$ac_objext \
10542 conftest$ac_exeext conftest.$ac_ext
10543 LDFLAGS=$save_LDFLAGS
10544 libdir=$save_libdir
10546 # This implies no fast_install, which is unacceptable.
10547 # Some rework will be needed to allow for fast_install
10548 # before this can be enabled.
10549 hardcode_into_libs=yes
10551 # Append ld.so.conf contents to the search path
10552 if test -f /etc/ld.so.conf; then
10553 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;/^$/d' | tr '\n' ' '`
10554 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10557 # We used to test for /lib/ld.so.1 and disable shared libraries on
10558 # powerpc, because MkLinux only supported shared libraries with the
10559 # GNU dynamic linker. Since this was broken with cross compilers,
10560 # most powerpc-linux boxes support dynamic linking these days and
10561 # people can always --disable-shared, the test was removed, and we
10562 # assume the GNU/Linux dynamic linker is in use.
10563 dynamic_linker='GNU/Linux ld.so'
10566 netbsd*)
10567 version_type=sunos
10568 need_lib_prefix=no
10569 need_version=no
10570 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10572 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10573 dynamic_linker='NetBSD (a.out) ld.so'
10574 else
10575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10576 soname_spec='${libname}${release}${shared_ext}$major'
10577 dynamic_linker='NetBSD ld.elf_so'
10579 shlibpath_var=LD_LIBRARY_PATH
10580 shlibpath_overrides_runpath=yes
10581 hardcode_into_libs=yes
10584 newsos6)
10585 version_type=linux
10586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10587 shlibpath_var=LD_LIBRARY_PATH
10588 shlibpath_overrides_runpath=yes
10591 *nto* | *qnx*)
10592 version_type=qnx
10593 need_lib_prefix=no
10594 need_version=no
10595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10596 soname_spec='${libname}${release}${shared_ext}$major'
10597 shlibpath_var=LD_LIBRARY_PATH
10598 shlibpath_overrides_runpath=no
10599 hardcode_into_libs=yes
10600 dynamic_linker='ldqnx.so'
10603 openbsd*)
10604 version_type=sunos
10605 sys_lib_dlsearch_path_spec="/usr/lib"
10606 need_lib_prefix=no
10607 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10608 case $host_os in
10609 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10610 *) need_version=no ;;
10611 esac
10612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10613 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10614 shlibpath_var=LD_LIBRARY_PATH
10615 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10616 case $host_os in
10617 openbsd2.[89] | openbsd2.[89].*)
10618 shlibpath_overrides_runpath=no
10621 shlibpath_overrides_runpath=yes
10623 esac
10624 else
10625 shlibpath_overrides_runpath=yes
10629 os2*)
10630 libname_spec='$name'
10631 shrext_cmds=".dll"
10632 need_lib_prefix=no
10633 library_names_spec='$libname${shared_ext} $libname.a'
10634 dynamic_linker='OS/2 ld.exe'
10635 shlibpath_var=LIBPATH
10638 osf3* | osf4* | osf5*)
10639 version_type=osf
10640 need_lib_prefix=no
10641 need_version=no
10642 soname_spec='${libname}${release}${shared_ext}$major'
10643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10644 shlibpath_var=LD_LIBRARY_PATH
10645 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10646 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10649 rdos*)
10650 dynamic_linker=no
10653 solaris*)
10654 version_type=linux
10655 need_lib_prefix=no
10656 need_version=no
10657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10658 soname_spec='${libname}${release}${shared_ext}$major'
10659 shlibpath_var=LD_LIBRARY_PATH
10660 shlibpath_overrides_runpath=yes
10661 hardcode_into_libs=yes
10662 # ldd complains unless libraries are executable
10663 postinstall_cmds='chmod +x $lib'
10666 sunos4*)
10667 version_type=sunos
10668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10669 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10670 shlibpath_var=LD_LIBRARY_PATH
10671 shlibpath_overrides_runpath=yes
10672 if test "$with_gnu_ld" = yes; then
10673 need_lib_prefix=no
10675 need_version=yes
10678 sysv4 | sysv4.3*)
10679 version_type=linux
10680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10681 soname_spec='${libname}${release}${shared_ext}$major'
10682 shlibpath_var=LD_LIBRARY_PATH
10683 case $host_vendor in
10684 sni)
10685 shlibpath_overrides_runpath=no
10686 need_lib_prefix=no
10687 runpath_var=LD_RUN_PATH
10689 siemens)
10690 need_lib_prefix=no
10692 motorola)
10693 need_lib_prefix=no
10694 need_version=no
10695 shlibpath_overrides_runpath=no
10696 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10698 esac
10701 sysv4*MP*)
10702 if test -d /usr/nec ;then
10703 version_type=linux
10704 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10705 soname_spec='$libname${shared_ext}.$major'
10706 shlibpath_var=LD_LIBRARY_PATH
10710 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10711 version_type=freebsd-elf
10712 need_lib_prefix=no
10713 need_version=no
10714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10715 soname_spec='${libname}${release}${shared_ext}$major'
10716 shlibpath_var=LD_LIBRARY_PATH
10717 shlibpath_overrides_runpath=yes
10718 hardcode_into_libs=yes
10719 if test "$with_gnu_ld" = yes; then
10720 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10721 else
10722 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10723 case $host_os in
10724 sco3.2v5*)
10725 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10727 esac
10729 sys_lib_dlsearch_path_spec='/usr/lib'
10732 tpf*)
10733 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10734 version_type=linux
10735 need_lib_prefix=no
10736 need_version=no
10737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10738 shlibpath_var=LD_LIBRARY_PATH
10739 shlibpath_overrides_runpath=no
10740 hardcode_into_libs=yes
10743 uts4*)
10744 version_type=linux
10745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10746 soname_spec='${libname}${release}${shared_ext}$major'
10747 shlibpath_var=LD_LIBRARY_PATH
10751 dynamic_linker=no
10753 esac
10754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10755 $as_echo "$dynamic_linker" >&6; }
10756 test "$dynamic_linker" = no && can_build_shared=no
10758 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10759 if test "$GCC" = yes; then
10760 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10763 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10764 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10766 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10767 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10857 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10858 hardcode_action=
10859 if test -n "$hardcode_libdir_flag_spec" ||
10860 test -n "$runpath_var" ||
10861 test "X$hardcode_automatic" = "Xyes" ; then
10863 # We can hardcode non-existent directories.
10864 if test "$hardcode_direct" != no &&
10865 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10866 # have to relink, otherwise we might link with an installed library
10867 # when we should be linking with a yet-to-be-installed one
10868 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10869 test "$hardcode_minus_L" != no; then
10870 # Linking always hardcodes the temporary library directory.
10871 hardcode_action=relink
10872 else
10873 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10874 hardcode_action=immediate
10876 else
10877 # We cannot hardcode anything, or else we can only hardcode existing
10878 # directories.
10879 hardcode_action=unsupported
10881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10882 $as_echo "$hardcode_action" >&6; }
10884 if test "$hardcode_action" = relink ||
10885 test "$inherit_rpath" = yes; then
10886 # Fast installation is not supported
10887 enable_fast_install=no
10888 elif test "$shlibpath_overrides_runpath" = yes ||
10889 test "$enable_shared" = no; then
10890 # Fast installation is not necessary
10891 enable_fast_install=needless
10899 if test "x$enable_dlopen" != xyes; then
10900 enable_dlopen=unknown
10901 enable_dlopen_self=unknown
10902 enable_dlopen_self_static=unknown
10903 else
10904 lt_cv_dlopen=no
10905 lt_cv_dlopen_libs=
10907 case $host_os in
10908 beos*)
10909 lt_cv_dlopen="load_add_on"
10910 lt_cv_dlopen_libs=
10911 lt_cv_dlopen_self=yes
10914 mingw* | pw32* | cegcc*)
10915 lt_cv_dlopen="LoadLibrary"
10916 lt_cv_dlopen_libs=
10919 cygwin*)
10920 lt_cv_dlopen="dlopen"
10921 lt_cv_dlopen_libs=
10924 darwin*)
10925 # if libdl is installed we need to link against it
10926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10927 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10928 if ${ac_cv_lib_dl_dlopen+:} false; then :
10929 $as_echo_n "(cached) " >&6
10930 else
10931 ac_check_lib_save_LIBS=$LIBS
10932 LIBS="-ldl $LIBS"
10933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10934 /* end confdefs.h. */
10936 /* Override any GCC internal prototype to avoid an error.
10937 Use char because int might match the return type of a GCC
10938 builtin and then its argument prototype would still apply. */
10939 #ifdef __cplusplus
10940 extern "C"
10941 #endif
10942 char dlopen ();
10944 main ()
10946 return dlopen ();
10948 return 0;
10950 _ACEOF
10951 if ac_fn_c_try_link "$LINENO"; then :
10952 ac_cv_lib_dl_dlopen=yes
10953 else
10954 ac_cv_lib_dl_dlopen=no
10956 rm -f core conftest.err conftest.$ac_objext \
10957 conftest$ac_exeext conftest.$ac_ext
10958 LIBS=$ac_check_lib_save_LIBS
10960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10961 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10962 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10963 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10964 else
10966 lt_cv_dlopen="dyld"
10967 lt_cv_dlopen_libs=
10968 lt_cv_dlopen_self=yes
10975 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10976 if test "x$ac_cv_func_shl_load" = xyes; then :
10977 lt_cv_dlopen="shl_load"
10978 else
10979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10980 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10981 if ${ac_cv_lib_dld_shl_load+:} false; then :
10982 $as_echo_n "(cached) " >&6
10983 else
10984 ac_check_lib_save_LIBS=$LIBS
10985 LIBS="-ldld $LIBS"
10986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10987 /* end confdefs.h. */
10989 /* Override any GCC internal prototype to avoid an error.
10990 Use char because int might match the return type of a GCC
10991 builtin and then its argument prototype would still apply. */
10992 #ifdef __cplusplus
10993 extern "C"
10994 #endif
10995 char shl_load ();
10997 main ()
10999 return shl_load ();
11001 return 0;
11003 _ACEOF
11004 if ac_fn_c_try_link "$LINENO"; then :
11005 ac_cv_lib_dld_shl_load=yes
11006 else
11007 ac_cv_lib_dld_shl_load=no
11009 rm -f core conftest.err conftest.$ac_objext \
11010 conftest$ac_exeext conftest.$ac_ext
11011 LIBS=$ac_check_lib_save_LIBS
11013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11014 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11015 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11016 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11017 else
11018 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11019 if test "x$ac_cv_func_dlopen" = xyes; then :
11020 lt_cv_dlopen="dlopen"
11021 else
11022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11023 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11024 if ${ac_cv_lib_dl_dlopen+:} false; then :
11025 $as_echo_n "(cached) " >&6
11026 else
11027 ac_check_lib_save_LIBS=$LIBS
11028 LIBS="-ldl $LIBS"
11029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11030 /* end confdefs.h. */
11032 /* Override any GCC internal prototype to avoid an error.
11033 Use char because int might match the return type of a GCC
11034 builtin and then its argument prototype would still apply. */
11035 #ifdef __cplusplus
11036 extern "C"
11037 #endif
11038 char dlopen ();
11040 main ()
11042 return dlopen ();
11044 return 0;
11046 _ACEOF
11047 if ac_fn_c_try_link "$LINENO"; then :
11048 ac_cv_lib_dl_dlopen=yes
11049 else
11050 ac_cv_lib_dl_dlopen=no
11052 rm -f core conftest.err conftest.$ac_objext \
11053 conftest$ac_exeext conftest.$ac_ext
11054 LIBS=$ac_check_lib_save_LIBS
11056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11057 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11058 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11059 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11060 else
11061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11062 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11063 if ${ac_cv_lib_svld_dlopen+:} false; then :
11064 $as_echo_n "(cached) " >&6
11065 else
11066 ac_check_lib_save_LIBS=$LIBS
11067 LIBS="-lsvld $LIBS"
11068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11069 /* end confdefs.h. */
11071 /* Override any GCC internal prototype to avoid an error.
11072 Use char because int might match the return type of a GCC
11073 builtin and then its argument prototype would still apply. */
11074 #ifdef __cplusplus
11075 extern "C"
11076 #endif
11077 char dlopen ();
11079 main ()
11081 return dlopen ();
11083 return 0;
11085 _ACEOF
11086 if ac_fn_c_try_link "$LINENO"; then :
11087 ac_cv_lib_svld_dlopen=yes
11088 else
11089 ac_cv_lib_svld_dlopen=no
11091 rm -f core conftest.err conftest.$ac_objext \
11092 conftest$ac_exeext conftest.$ac_ext
11093 LIBS=$ac_check_lib_save_LIBS
11095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11096 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11097 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11098 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11099 else
11100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11101 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11102 if ${ac_cv_lib_dld_dld_link+:} false; then :
11103 $as_echo_n "(cached) " >&6
11104 else
11105 ac_check_lib_save_LIBS=$LIBS
11106 LIBS="-ldld $LIBS"
11107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11108 /* end confdefs.h. */
11110 /* Override any GCC internal prototype to avoid an error.
11111 Use char because int might match the return type of a GCC
11112 builtin and then its argument prototype would still apply. */
11113 #ifdef __cplusplus
11114 extern "C"
11115 #endif
11116 char dld_link ();
11118 main ()
11120 return dld_link ();
11122 return 0;
11124 _ACEOF
11125 if ac_fn_c_try_link "$LINENO"; then :
11126 ac_cv_lib_dld_dld_link=yes
11127 else
11128 ac_cv_lib_dld_dld_link=no
11130 rm -f core conftest.err conftest.$ac_objext \
11131 conftest$ac_exeext conftest.$ac_ext
11132 LIBS=$ac_check_lib_save_LIBS
11134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11135 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11136 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11137 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11156 esac
11158 if test "x$lt_cv_dlopen" != xno; then
11159 enable_dlopen=yes
11160 else
11161 enable_dlopen=no
11164 case $lt_cv_dlopen in
11165 dlopen)
11166 save_CPPFLAGS="$CPPFLAGS"
11167 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11169 save_LDFLAGS="$LDFLAGS"
11170 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11172 save_LIBS="$LIBS"
11173 LIBS="$lt_cv_dlopen_libs $LIBS"
11175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11176 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11177 if ${lt_cv_dlopen_self+:} false; then :
11178 $as_echo_n "(cached) " >&6
11179 else
11180 if test "$cross_compiling" = yes; then :
11181 lt_cv_dlopen_self=cross
11182 else
11183 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11184 lt_status=$lt_dlunknown
11185 cat > conftest.$ac_ext <<_LT_EOF
11186 #line 11186 "configure"
11187 #include "confdefs.h"
11189 #if HAVE_DLFCN_H
11190 #include <dlfcn.h>
11191 #endif
11193 #include <stdio.h>
11195 #ifdef RTLD_GLOBAL
11196 # define LT_DLGLOBAL RTLD_GLOBAL
11197 #else
11198 # ifdef DL_GLOBAL
11199 # define LT_DLGLOBAL DL_GLOBAL
11200 # else
11201 # define LT_DLGLOBAL 0
11202 # endif
11203 #endif
11205 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11206 find out it does not work in some platform. */
11207 #ifndef LT_DLLAZY_OR_NOW
11208 # ifdef RTLD_LAZY
11209 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11210 # else
11211 # ifdef DL_LAZY
11212 # define LT_DLLAZY_OR_NOW DL_LAZY
11213 # else
11214 # ifdef RTLD_NOW
11215 # define LT_DLLAZY_OR_NOW RTLD_NOW
11216 # else
11217 # ifdef DL_NOW
11218 # define LT_DLLAZY_OR_NOW DL_NOW
11219 # else
11220 # define LT_DLLAZY_OR_NOW 0
11221 # endif
11222 # endif
11223 # endif
11224 # endif
11225 #endif
11227 void fnord() { int i=42;}
11228 int main ()
11230 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11231 int status = $lt_dlunknown;
11233 if (self)
11235 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11236 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11237 /* dlclose (self); */
11239 else
11240 puts (dlerror ());
11242 return status;
11244 _LT_EOF
11245 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11246 (eval $ac_link) 2>&5
11247 ac_status=$?
11248 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11249 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11250 (./conftest; exit; ) >&5 2>/dev/null
11251 lt_status=$?
11252 case x$lt_status in
11253 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11254 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11255 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11256 esac
11257 else :
11258 # compilation failed
11259 lt_cv_dlopen_self=no
11262 rm -fr conftest*
11266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11267 $as_echo "$lt_cv_dlopen_self" >&6; }
11269 if test "x$lt_cv_dlopen_self" = xyes; then
11270 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11272 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11273 if ${lt_cv_dlopen_self_static+:} false; then :
11274 $as_echo_n "(cached) " >&6
11275 else
11276 if test "$cross_compiling" = yes; then :
11277 lt_cv_dlopen_self_static=cross
11278 else
11279 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11280 lt_status=$lt_dlunknown
11281 cat > conftest.$ac_ext <<_LT_EOF
11282 #line 11282 "configure"
11283 #include "confdefs.h"
11285 #if HAVE_DLFCN_H
11286 #include <dlfcn.h>
11287 #endif
11289 #include <stdio.h>
11291 #ifdef RTLD_GLOBAL
11292 # define LT_DLGLOBAL RTLD_GLOBAL
11293 #else
11294 # ifdef DL_GLOBAL
11295 # define LT_DLGLOBAL DL_GLOBAL
11296 # else
11297 # define LT_DLGLOBAL 0
11298 # endif
11299 #endif
11301 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11302 find out it does not work in some platform. */
11303 #ifndef LT_DLLAZY_OR_NOW
11304 # ifdef RTLD_LAZY
11305 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11306 # else
11307 # ifdef DL_LAZY
11308 # define LT_DLLAZY_OR_NOW DL_LAZY
11309 # else
11310 # ifdef RTLD_NOW
11311 # define LT_DLLAZY_OR_NOW RTLD_NOW
11312 # else
11313 # ifdef DL_NOW
11314 # define LT_DLLAZY_OR_NOW DL_NOW
11315 # else
11316 # define LT_DLLAZY_OR_NOW 0
11317 # endif
11318 # endif
11319 # endif
11320 # endif
11321 #endif
11323 void fnord() { int i=42;}
11324 int main ()
11326 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11327 int status = $lt_dlunknown;
11329 if (self)
11331 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11332 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11333 /* dlclose (self); */
11335 else
11336 puts (dlerror ());
11338 return status;
11340 _LT_EOF
11341 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11342 (eval $ac_link) 2>&5
11343 ac_status=$?
11344 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11345 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11346 (./conftest; exit; ) >&5 2>/dev/null
11347 lt_status=$?
11348 case x$lt_status in
11349 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11350 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11351 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11352 esac
11353 else :
11354 # compilation failed
11355 lt_cv_dlopen_self_static=no
11358 rm -fr conftest*
11362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11363 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11366 CPPFLAGS="$save_CPPFLAGS"
11367 LDFLAGS="$save_LDFLAGS"
11368 LIBS="$save_LIBS"
11370 esac
11372 case $lt_cv_dlopen_self in
11373 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11374 *) enable_dlopen_self=unknown ;;
11375 esac
11377 case $lt_cv_dlopen_self_static in
11378 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11379 *) enable_dlopen_self_static=unknown ;;
11380 esac
11399 striplib=
11400 old_striplib=
11401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11402 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11403 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11404 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11405 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11407 $as_echo "yes" >&6; }
11408 else
11409 # FIXME - insert some real tests, host_os isn't really good enough
11410 case $host_os in
11411 darwin*)
11412 if test -n "$STRIP" ; then
11413 striplib="$STRIP -x"
11414 old_striplib="$STRIP -S"
11415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11416 $as_echo "yes" >&6; }
11417 else
11418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11419 $as_echo "no" >&6; }
11423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11424 $as_echo "no" >&6; }
11426 esac
11440 # Report which library types will actually be built
11441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11442 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11444 $as_echo "$can_build_shared" >&6; }
11446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11447 $as_echo_n "checking whether to build shared libraries... " >&6; }
11448 test "$can_build_shared" = "no" && enable_shared=no
11450 # On AIX, shared libraries and static libraries use the same namespace, and
11451 # are all built from PIC.
11452 case $host_os in
11453 aix3*)
11454 test "$enable_shared" = yes && enable_static=no
11455 if test -n "$RANLIB"; then
11456 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11457 postinstall_cmds='$RANLIB $lib'
11461 aix[4-9]*)
11462 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11463 test "$enable_shared" = yes && enable_static=no
11466 esac
11467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11468 $as_echo "$enable_shared" >&6; }
11470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11471 $as_echo_n "checking whether to build static libraries... " >&6; }
11472 # Make sure either enable_shared or enable_static is yes.
11473 test "$enable_shared" = yes || enable_static=yes
11474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11475 $as_echo "$enable_static" >&6; }
11481 ac_ext=c
11482 ac_cpp='$CPP $CPPFLAGS'
11483 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11484 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11485 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11487 CC="$lt_save_CC"
11501 ac_config_commands="$ac_config_commands libtool"
11506 # Only expand once:
11511 # Extract the first word of "ar", so it can be a program name with args.
11512 set dummy ar; ac_word=$2
11513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11514 $as_echo_n "checking for $ac_word... " >&6; }
11515 if ${ac_cv_path_AR+:} false; then :
11516 $as_echo_n "(cached) " >&6
11517 else
11518 case $AR in
11519 [\\/]* | ?:[\\/]*)
11520 ac_cv_path_AR="$AR" # Let the user override the test with a path.
11523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11524 for as_dir in $PATH
11526 IFS=$as_save_IFS
11527 test -z "$as_dir" && as_dir=.
11528 for ac_exec_ext in '' $ac_executable_extensions; do
11529 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11530 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
11531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11532 break 2
11534 done
11535 done
11536 IFS=$as_save_IFS
11538 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
11540 esac
11542 AR=$ac_cv_path_AR
11543 if test -n "$AR"; then
11544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
11545 $as_echo "$AR" >&6; }
11546 else
11547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11548 $as_echo "no" >&6; }
11552 # Extract the first word of "rm", so it can be a program name with args.
11553 set dummy rm; ac_word=$2
11554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11555 $as_echo_n "checking for $ac_word... " >&6; }
11556 if ${ac_cv_path_RM+:} false; then :
11557 $as_echo_n "(cached) " >&6
11558 else
11559 case $RM in
11560 [\\/]* | ?:[\\/]*)
11561 ac_cv_path_RM="$RM" # Let the user override the test with a path.
11564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11565 for as_dir in $PATH
11567 IFS=$as_save_IFS
11568 test -z "$as_dir" && as_dir=.
11569 for ac_exec_ext in '' $ac_executable_extensions; do
11570 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11571 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
11572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11573 break 2
11575 done
11576 done
11577 IFS=$as_save_IFS
11579 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
11581 esac
11583 RM=$ac_cv_path_RM
11584 if test -n "$RM"; then
11585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
11586 $as_echo "$RM" >&6; }
11587 else
11588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11589 $as_echo "no" >&6; }
11593 # Extract the first word of "cp", so it can be a program name with args.
11594 set dummy cp; ac_word=$2
11595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11596 $as_echo_n "checking for $ac_word... " >&6; }
11597 if ${ac_cv_path_CP+:} false; then :
11598 $as_echo_n "(cached) " >&6
11599 else
11600 case $CP in
11601 [\\/]* | ?:[\\/]*)
11602 ac_cv_path_CP="$CP" # Let the user override the test with a path.
11605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11606 for as_dir in $PATH
11608 IFS=$as_save_IFS
11609 test -z "$as_dir" && as_dir=.
11610 for ac_exec_ext in '' $ac_executable_extensions; do
11611 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11612 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
11613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11614 break 2
11616 done
11617 done
11618 IFS=$as_save_IFS
11620 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
11622 esac
11624 CP=$ac_cv_path_CP
11625 if test -n "$CP"; then
11626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
11627 $as_echo "$CP" >&6; }
11628 else
11629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11630 $as_echo "no" >&6; }
11634 # Extract the first word of "ln", so it can be a program name with args.
11635 set dummy ln; ac_word=$2
11636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11637 $as_echo_n "checking for $ac_word... " >&6; }
11638 if ${ac_cv_path_LN+:} false; then :
11639 $as_echo_n "(cached) " >&6
11640 else
11641 case $LN in
11642 [\\/]* | ?:[\\/]*)
11643 ac_cv_path_LN="$LN" # Let the user override the test with a path.
11646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11647 for as_dir in $PATH
11649 IFS=$as_save_IFS
11650 test -z "$as_dir" && as_dir=.
11651 for ac_exec_ext in '' $ac_executable_extensions; do
11652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11653 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
11654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11655 break 2
11657 done
11658 done
11659 IFS=$as_save_IFS
11661 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
11663 esac
11665 LN=$ac_cv_path_LN
11666 if test -n "$LN"; then
11667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
11668 $as_echo "$LN" >&6; }
11669 else
11670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11671 $as_echo "no" >&6; }
11675 # Extract the first word of "ls", so it can be a program name with args.
11676 set dummy ls; ac_word=$2
11677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11678 $as_echo_n "checking for $ac_word... " >&6; }
11679 if ${ac_cv_path_LS+:} false; then :
11680 $as_echo_n "(cached) " >&6
11681 else
11682 case $LS in
11683 [\\/]* | ?:[\\/]*)
11684 ac_cv_path_LS="$LS" # Let the user override the test with a path.
11687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11688 for as_dir in $PATH
11690 IFS=$as_save_IFS
11691 test -z "$as_dir" && as_dir=.
11692 for ac_exec_ext in '' $ac_executable_extensions; do
11693 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11694 ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
11695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11696 break 2
11698 done
11699 done
11700 IFS=$as_save_IFS
11702 test -z "$ac_cv_path_LS" && ac_cv_path_LS="ls"
11704 esac
11706 LS=$ac_cv_path_LS
11707 if test -n "$LS"; then
11708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
11709 $as_echo "$LS" >&6; }
11710 else
11711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11712 $as_echo "no" >&6; }
11716 # Extract the first word of "sed", so it can be a program name with args.
11717 set dummy sed; ac_word=$2
11718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11719 $as_echo_n "checking for $ac_word... " >&6; }
11720 if ${ac_cv_path_SED+:} false; then :
11721 $as_echo_n "(cached) " >&6
11722 else
11723 case $SED in
11724 [\\/]* | ?:[\\/]*)
11725 ac_cv_path_SED="$SED" # Let the user override the test with a path.
11728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11729 for as_dir in $PATH
11731 IFS=$as_save_IFS
11732 test -z "$as_dir" && as_dir=.
11733 for ac_exec_ext in '' $ac_executable_extensions; do
11734 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11735 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
11736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11737 break 2
11739 done
11740 done
11741 IFS=$as_save_IFS
11743 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
11745 esac
11747 SED=$ac_cv_path_SED
11748 if test -n "$SED"; then
11749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
11750 $as_echo "$SED" >&6; }
11751 else
11752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11753 $as_echo "no" >&6; }
11757 # Extract the first word of "make", so it can be a program name with args.
11758 set dummy make; ac_word=$2
11759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11760 $as_echo_n "checking for $ac_word... " >&6; }
11761 if ${ac_cv_path_MAKE+:} false; then :
11762 $as_echo_n "(cached) " >&6
11763 else
11764 case $MAKE in
11765 [\\/]* | ?:[\\/]*)
11766 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
11769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11770 for as_dir in $PATH
11772 IFS=$as_save_IFS
11773 test -z "$as_dir" && as_dir=.
11774 for ac_exec_ext in '' $ac_executable_extensions; do
11775 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11776 ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
11777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11778 break 2
11780 done
11781 done
11782 IFS=$as_save_IFS
11785 esac
11787 MAKE=$ac_cv_path_MAKE
11788 if test -n "$MAKE"; then
11789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
11790 $as_echo "$MAKE" >&6; }
11791 else
11792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11793 $as_echo "no" >&6; }
11801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11802 $as_echo_n "checking whether NLS is requested... " >&6; }
11803 # Check whether --enable-nls was given.
11804 if test "${enable_nls+set}" = set; then :
11805 enableval=$enable_nls; USE_NLS=$enableval
11806 else
11807 USE_NLS=yes
11810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
11811 $as_echo "$USE_NLS" >&6; }
11818 # Prepare PATH_SEPARATOR.
11819 # The user is always right.
11820 if test "${PATH_SEPARATOR+set}" != set; then
11821 echo "#! /bin/sh" >conf$$.sh
11822 echo "exit 0" >>conf$$.sh
11823 chmod +x conf$$.sh
11824 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11825 PATH_SEPARATOR=';'
11826 else
11827 PATH_SEPARATOR=:
11829 rm -f conf$$.sh
11832 # Find out how to test for executable files. Don't use a zero-byte file,
11833 # as systems may use methods other than mode bits to determine executability.
11834 cat >conf$$.file <<_ASEOF
11835 #! /bin/sh
11836 exit 0
11837 _ASEOF
11838 chmod +x conf$$.file
11839 if test -x conf$$.file >/dev/null 2>&1; then
11840 ac_executable_p="test -x"
11841 else
11842 ac_executable_p="test -f"
11844 rm -f conf$$.file
11846 # Extract the first word of "msgfmt", so it can be a program name with args.
11847 set dummy msgfmt; ac_word=$2
11848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11849 $as_echo_n "checking for $ac_word... " >&6; }
11850 if ${ac_cv_path_MSGFMT+:} false; then :
11851 $as_echo_n "(cached) " >&6
11852 else
11853 case "$MSGFMT" in
11854 [\\/]* | ?:[\\/]*)
11855 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
11858 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11859 for ac_dir in $PATH; do
11860 IFS="$ac_save_IFS"
11861 test -z "$ac_dir" && ac_dir=.
11862 for ac_exec_ext in '' $ac_executable_extensions; do
11863 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11864 echo "$as_me: trying $ac_dir/$ac_word..." >&5
11865 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
11866 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11867 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
11868 break 2
11871 done
11872 done
11873 IFS="$ac_save_IFS"
11874 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
11876 esac
11878 MSGFMT="$ac_cv_path_MSGFMT"
11879 if test "$MSGFMT" != ":"; then
11880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
11881 $as_echo "$MSGFMT" >&6; }
11882 else
11883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11884 $as_echo "no" >&6; }
11887 # Extract the first word of "gmsgfmt", so it can be a program name with args.
11888 set dummy gmsgfmt; ac_word=$2
11889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11890 $as_echo_n "checking for $ac_word... " >&6; }
11891 if ${ac_cv_path_GMSGFMT+:} false; then :
11892 $as_echo_n "(cached) " >&6
11893 else
11894 case $GMSGFMT in
11895 [\\/]* | ?:[\\/]*)
11896 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
11899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11900 for as_dir in $PATH
11902 IFS=$as_save_IFS
11903 test -z "$as_dir" && as_dir=.
11904 for ac_exec_ext in '' $ac_executable_extensions; do
11905 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11906 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
11907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11908 break 2
11910 done
11911 done
11912 IFS=$as_save_IFS
11914 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
11916 esac
11918 GMSGFMT=$ac_cv_path_GMSGFMT
11919 if test -n "$GMSGFMT"; then
11920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
11921 $as_echo "$GMSGFMT" >&6; }
11922 else
11923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11924 $as_echo "no" >&6; }
11929 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
11930 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
11931 *) MSGFMT_015=$MSGFMT ;;
11932 esac
11934 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
11935 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
11936 *) GMSGFMT_015=$GMSGFMT ;;
11937 esac
11941 # Prepare PATH_SEPARATOR.
11942 # The user is always right.
11943 if test "${PATH_SEPARATOR+set}" != set; then
11944 echo "#! /bin/sh" >conf$$.sh
11945 echo "exit 0" >>conf$$.sh
11946 chmod +x conf$$.sh
11947 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11948 PATH_SEPARATOR=';'
11949 else
11950 PATH_SEPARATOR=:
11952 rm -f conf$$.sh
11955 # Find out how to test for executable files. Don't use a zero-byte file,
11956 # as systems may use methods other than mode bits to determine executability.
11957 cat >conf$$.file <<_ASEOF
11958 #! /bin/sh
11959 exit 0
11960 _ASEOF
11961 chmod +x conf$$.file
11962 if test -x conf$$.file >/dev/null 2>&1; then
11963 ac_executable_p="test -x"
11964 else
11965 ac_executable_p="test -f"
11967 rm -f conf$$.file
11969 # Extract the first word of "xgettext", so it can be a program name with args.
11970 set dummy xgettext; ac_word=$2
11971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11972 $as_echo_n "checking for $ac_word... " >&6; }
11973 if ${ac_cv_path_XGETTEXT+:} false; then :
11974 $as_echo_n "(cached) " >&6
11975 else
11976 case "$XGETTEXT" in
11977 [\\/]* | ?:[\\/]*)
11978 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
11981 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11982 for ac_dir in $PATH; do
11983 IFS="$ac_save_IFS"
11984 test -z "$ac_dir" && ac_dir=.
11985 for ac_exec_ext in '' $ac_executable_extensions; do
11986 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11987 echo "$as_me: trying $ac_dir/$ac_word..." >&5
11988 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
11989 (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
11990 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
11991 break 2
11994 done
11995 done
11996 IFS="$ac_save_IFS"
11997 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
11999 esac
12001 XGETTEXT="$ac_cv_path_XGETTEXT"
12002 if test "$XGETTEXT" != ":"; then
12003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
12004 $as_echo "$XGETTEXT" >&6; }
12005 else
12006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12007 $as_echo "no" >&6; }
12010 rm -f messages.po
12012 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
12013 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
12014 *) XGETTEXT_015=$XGETTEXT ;;
12015 esac
12019 # Prepare PATH_SEPARATOR.
12020 # The user is always right.
12021 if test "${PATH_SEPARATOR+set}" != set; then
12022 echo "#! /bin/sh" >conf$$.sh
12023 echo "exit 0" >>conf$$.sh
12024 chmod +x conf$$.sh
12025 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12026 PATH_SEPARATOR=';'
12027 else
12028 PATH_SEPARATOR=:
12030 rm -f conf$$.sh
12033 # Find out how to test for executable files. Don't use a zero-byte file,
12034 # as systems may use methods other than mode bits to determine executability.
12035 cat >conf$$.file <<_ASEOF
12036 #! /bin/sh
12037 exit 0
12038 _ASEOF
12039 chmod +x conf$$.file
12040 if test -x conf$$.file >/dev/null 2>&1; then
12041 ac_executable_p="test -x"
12042 else
12043 ac_executable_p="test -f"
12045 rm -f conf$$.file
12047 # Extract the first word of "msgmerge", so it can be a program name with args.
12048 set dummy msgmerge; ac_word=$2
12049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12050 $as_echo_n "checking for $ac_word... " >&6; }
12051 if ${ac_cv_path_MSGMERGE+:} false; then :
12052 $as_echo_n "(cached) " >&6
12053 else
12054 case "$MSGMERGE" in
12055 [\\/]* | ?:[\\/]*)
12056 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
12059 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12060 for ac_dir in $PATH; do
12061 IFS="$ac_save_IFS"
12062 test -z "$ac_dir" && ac_dir=.
12063 for ac_exec_ext in '' $ac_executable_extensions; do
12064 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12065 echo "$as_me: trying $ac_dir/$ac_word..." >&5
12066 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
12067 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
12068 break 2
12071 done
12072 done
12073 IFS="$ac_save_IFS"
12074 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
12076 esac
12078 MSGMERGE="$ac_cv_path_MSGMERGE"
12079 if test "$MSGMERGE" != ":"; then
12080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
12081 $as_echo "$MSGMERGE" >&6; }
12082 else
12083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12084 $as_echo "no" >&6; }
12088 test -n "$localedir" || localedir='${datadir}/locale'
12091 ac_config_commands="$ac_config_commands po-directories"
12095 if test "X$prefix" = "XNONE"; then
12096 acl_final_prefix="$ac_default_prefix"
12097 else
12098 acl_final_prefix="$prefix"
12100 if test "X$exec_prefix" = "XNONE"; then
12101 acl_final_exec_prefix='${prefix}'
12102 else
12103 acl_final_exec_prefix="$exec_prefix"
12105 acl_save_prefix="$prefix"
12106 prefix="$acl_final_prefix"
12107 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
12108 prefix="$acl_save_prefix"
12111 # Check whether --with-gnu-ld was given.
12112 if test "${with_gnu_ld+set}" = set; then :
12113 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12114 else
12115 with_gnu_ld=no
12118 # Prepare PATH_SEPARATOR.
12119 # The user is always right.
12120 if test "${PATH_SEPARATOR+set}" != set; then
12121 echo "#! /bin/sh" >conf$$.sh
12122 echo "exit 0" >>conf$$.sh
12123 chmod +x conf$$.sh
12124 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12125 PATH_SEPARATOR=';'
12126 else
12127 PATH_SEPARATOR=:
12129 rm -f conf$$.sh
12131 ac_prog=ld
12132 if test "$GCC" = yes; then
12133 # Check if gcc -print-prog-name=ld gives a path.
12134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
12135 $as_echo_n "checking for ld used by GCC... " >&6; }
12136 case $host in
12137 *-*-mingw*)
12138 # gcc leaves a trailing carriage return which upsets mingw
12139 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12141 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12142 esac
12143 case $ac_prog in
12144 # Accept absolute paths.
12145 [\\/]* | [A-Za-z]:[\\/]*)
12146 re_direlt='/[^/][^/]*/\.\./'
12147 # Canonicalize the path of ld
12148 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
12149 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12150 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
12151 done
12152 test -z "$LD" && LD="$ac_prog"
12155 # If it fails, then pretend we aren't using GCC.
12156 ac_prog=ld
12159 # If it is relative, then search for the first ld in PATH.
12160 with_gnu_ld=unknown
12162 esac
12163 elif test "$with_gnu_ld" = yes; then
12164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12165 $as_echo_n "checking for GNU ld... " >&6; }
12166 else
12167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12168 $as_echo_n "checking for non-GNU ld... " >&6; }
12170 if ${acl_cv_path_LD+:} false; then :
12171 $as_echo_n "(cached) " >&6
12172 else
12173 if test -z "$LD"; then
12174 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
12175 for ac_dir in $PATH; do
12176 test -z "$ac_dir" && ac_dir=.
12177 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12178 acl_cv_path_LD="$ac_dir/$ac_prog"
12179 # Check to see if the program is GNU ld. I'd rather use --version,
12180 # but apparently some GNU ld's only accept -v.
12181 # Break only if it was the GNU/non-GNU ld that we prefer.
12182 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
12183 *GNU* | *'with BFD'*)
12184 test "$with_gnu_ld" != no && break ;;
12186 test "$with_gnu_ld" != yes && break ;;
12187 esac
12189 done
12190 IFS="$ac_save_ifs"
12191 else
12192 acl_cv_path_LD="$LD" # Let the user override the test with a path.
12196 LD="$acl_cv_path_LD"
12197 if test -n "$LD"; then
12198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12199 $as_echo "$LD" >&6; }
12200 else
12201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12202 $as_echo "no" >&6; }
12204 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12206 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12207 if ${acl_cv_prog_gnu_ld+:} false; then :
12208 $as_echo_n "(cached) " >&6
12209 else
12210 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
12211 case `$LD -v 2>&1 </dev/null` in
12212 *GNU* | *'with BFD'*)
12213 acl_cv_prog_gnu_ld=yes ;;
12215 acl_cv_prog_gnu_ld=no ;;
12216 esac
12218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
12219 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
12220 with_gnu_ld=$acl_cv_prog_gnu_ld
12225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
12226 $as_echo_n "checking for shared library run path origin... " >&6; }
12227 if ${acl_cv_rpath+:} false; then :
12228 $as_echo_n "(cached) " >&6
12229 else
12231 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
12232 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
12233 . ./conftest.sh
12234 rm -f ./conftest.sh
12235 acl_cv_rpath=done
12238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
12239 $as_echo "$acl_cv_rpath" >&6; }
12240 wl="$acl_cv_wl"
12241 libext="$acl_cv_libext"
12242 shlibext="$acl_cv_shlibext"
12243 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
12244 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
12245 hardcode_direct="$acl_cv_hardcode_direct"
12246 hardcode_minus_L="$acl_cv_hardcode_minus_L"
12247 # Check whether --enable-rpath was given.
12248 if test "${enable_rpath+set}" = set; then :
12249 enableval=$enable_rpath; :
12250 else
12251 enable_rpath=yes
12256 acl_libdirstem=lib
12257 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
12258 if test -n "$searchpath"; then
12259 acl_save_IFS="${IFS= }"; IFS=":"
12260 for searchdir in $searchpath; do
12261 if test -d "$searchdir"; then
12262 case "$searchdir" in
12263 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
12264 *) searchdir=`cd "$searchdir" && pwd`
12265 case "$searchdir" in
12266 */lib64 ) acl_libdirstem=lib64 ;;
12267 esac ;;
12268 esac
12270 done
12271 IFS="$acl_save_IFS"
12281 use_additional=yes
12283 acl_save_prefix="$prefix"
12284 prefix="$acl_final_prefix"
12285 acl_save_exec_prefix="$exec_prefix"
12286 exec_prefix="$acl_final_exec_prefix"
12288 eval additional_includedir=\"$includedir\"
12289 eval additional_libdir=\"$libdir\"
12291 exec_prefix="$acl_save_exec_prefix"
12292 prefix="$acl_save_prefix"
12295 # Check whether --with-libiconv-prefix was given.
12296 if test "${with_libiconv_prefix+set}" = set; then :
12297 withval=$with_libiconv_prefix;
12298 if test "X$withval" = "Xno"; then
12299 use_additional=no
12300 else
12301 if test "X$withval" = "X"; then
12303 acl_save_prefix="$prefix"
12304 prefix="$acl_final_prefix"
12305 acl_save_exec_prefix="$exec_prefix"
12306 exec_prefix="$acl_final_exec_prefix"
12308 eval additional_includedir=\"$includedir\"
12309 eval additional_libdir=\"$libdir\"
12311 exec_prefix="$acl_save_exec_prefix"
12312 prefix="$acl_save_prefix"
12314 else
12315 additional_includedir="$withval/include"
12316 additional_libdir="$withval/$acl_libdirstem"
12322 LIBICONV=
12323 LTLIBICONV=
12324 INCICONV=
12325 rpathdirs=
12326 ltrpathdirs=
12327 names_already_handled=
12328 names_next_round='iconv '
12329 while test -n "$names_next_round"; do
12330 names_this_round="$names_next_round"
12331 names_next_round=
12332 for name in $names_this_round; do
12333 already_handled=
12334 for n in $names_already_handled; do
12335 if test "$n" = "$name"; then
12336 already_handled=yes
12337 break
12339 done
12340 if test -z "$already_handled"; then
12341 names_already_handled="$names_already_handled $name"
12342 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
12343 eval value=\"\$HAVE_LIB$uppername\"
12344 if test -n "$value"; then
12345 if test "$value" = yes; then
12346 eval value=\"\$LIB$uppername\"
12347 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
12348 eval value=\"\$LTLIB$uppername\"
12349 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
12350 else
12353 else
12354 found_dir=
12355 found_la=
12356 found_so=
12357 found_a=
12358 if test $use_additional = yes; then
12359 if test -n "$shlibext" \
12360 && { test -f "$additional_libdir/lib$name.$shlibext" \
12361 || { test "$shlibext" = dll \
12362 && test -f "$additional_libdir/lib$name.dll.a"; }; }; then
12363 found_dir="$additional_libdir"
12364 if test -f "$additional_libdir/lib$name.$shlibext"; then
12365 found_so="$additional_libdir/lib$name.$shlibext"
12366 else
12367 found_so="$additional_libdir/lib$name.dll.a"
12369 if test -f "$additional_libdir/lib$name.la"; then
12370 found_la="$additional_libdir/lib$name.la"
12372 else
12373 if test -f "$additional_libdir/lib$name.$libext"; then
12374 found_dir="$additional_libdir"
12375 found_a="$additional_libdir/lib$name.$libext"
12376 if test -f "$additional_libdir/lib$name.la"; then
12377 found_la="$additional_libdir/lib$name.la"
12382 if test "X$found_dir" = "X"; then
12383 for x in $LDFLAGS $LTLIBICONV; do
12385 acl_save_prefix="$prefix"
12386 prefix="$acl_final_prefix"
12387 acl_save_exec_prefix="$exec_prefix"
12388 exec_prefix="$acl_final_exec_prefix"
12389 eval x=\"$x\"
12390 exec_prefix="$acl_save_exec_prefix"
12391 prefix="$acl_save_prefix"
12393 case "$x" in
12394 -L*)
12395 dir=`echo "X$x" | sed -e 's/^X-L//'`
12396 if test -n "$shlibext" \
12397 && { test -f "$dir/lib$name.$shlibext" \
12398 || { test "$shlibext" = dll \
12399 && test -f "$dir/lib$name.dll.a"; }; }; then
12400 found_dir="$dir"
12401 if test -f "$dir/lib$name.$shlibext"; then
12402 found_so="$dir/lib$name.$shlibext"
12403 else
12404 found_so="$dir/lib$name.dll.a"
12406 if test -f "$dir/lib$name.la"; then
12407 found_la="$dir/lib$name.la"
12409 else
12410 if test -f "$dir/lib$name.$libext"; then
12411 found_dir="$dir"
12412 found_a="$dir/lib$name.$libext"
12413 if test -f "$dir/lib$name.la"; then
12414 found_la="$dir/lib$name.la"
12419 esac
12420 if test "X$found_dir" != "X"; then
12421 break
12423 done
12425 if test "X$found_dir" != "X"; then
12426 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
12427 if test "X$found_so" != "X"; then
12428 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
12429 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12430 else
12431 haveit=
12432 for x in $ltrpathdirs; do
12433 if test "X$x" = "X$found_dir"; then
12434 haveit=yes
12435 break
12437 done
12438 if test -z "$haveit"; then
12439 ltrpathdirs="$ltrpathdirs $found_dir"
12441 if test "$hardcode_direct" = yes; then
12442 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12443 else
12444 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
12445 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12446 haveit=
12447 for x in $rpathdirs; do
12448 if test "X$x" = "X$found_dir"; then
12449 haveit=yes
12450 break
12452 done
12453 if test -z "$haveit"; then
12454 rpathdirs="$rpathdirs $found_dir"
12456 else
12457 haveit=
12458 for x in $LDFLAGS $LIBICONV; do
12460 acl_save_prefix="$prefix"
12461 prefix="$acl_final_prefix"
12462 acl_save_exec_prefix="$exec_prefix"
12463 exec_prefix="$acl_final_exec_prefix"
12464 eval x=\"$x\"
12465 exec_prefix="$acl_save_exec_prefix"
12466 prefix="$acl_save_prefix"
12468 if test "X$x" = "X-L$found_dir"; then
12469 haveit=yes
12470 break
12472 done
12473 if test -z "$haveit"; then
12474 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
12476 if test "$hardcode_minus_L" != no; then
12477 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12478 else
12479 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
12484 else
12485 if test "X$found_a" != "X"; then
12486 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
12487 else
12488 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
12491 additional_includedir=
12492 case "$found_dir" in
12493 */$acl_libdirstem | */$acl_libdirstem/)
12494 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
12495 additional_includedir="$basedir/include"
12497 esac
12498 if test "X$additional_includedir" != "X"; then
12499 if test "X$additional_includedir" != "X/usr/include"; then
12500 haveit=
12501 if test "X$additional_includedir" = "X/usr/local/include"; then
12502 if test -n "$GCC"; then
12503 case $host_os in
12504 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12505 esac
12508 if test -z "$haveit"; then
12509 for x in $CPPFLAGS $INCICONV; do
12511 acl_save_prefix="$prefix"
12512 prefix="$acl_final_prefix"
12513 acl_save_exec_prefix="$exec_prefix"
12514 exec_prefix="$acl_final_exec_prefix"
12515 eval x=\"$x\"
12516 exec_prefix="$acl_save_exec_prefix"
12517 prefix="$acl_save_prefix"
12519 if test "X$x" = "X-I$additional_includedir"; then
12520 haveit=yes
12521 break
12523 done
12524 if test -z "$haveit"; then
12525 if test -d "$additional_includedir"; then
12526 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
12532 if test -n "$found_la"; then
12533 save_libdir="$libdir"
12534 case "$found_la" in
12535 */* | *\\*) . "$found_la" ;;
12536 *) . "./$found_la" ;;
12537 esac
12538 libdir="$save_libdir"
12539 for dep in $dependency_libs; do
12540 case "$dep" in
12541 -L*)
12542 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
12543 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
12544 haveit=
12545 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
12546 if test -n "$GCC"; then
12547 case $host_os in
12548 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12549 esac
12552 if test -z "$haveit"; then
12553 haveit=
12554 for x in $LDFLAGS $LIBICONV; do
12556 acl_save_prefix="$prefix"
12557 prefix="$acl_final_prefix"
12558 acl_save_exec_prefix="$exec_prefix"
12559 exec_prefix="$acl_final_exec_prefix"
12560 eval x=\"$x\"
12561 exec_prefix="$acl_save_exec_prefix"
12562 prefix="$acl_save_prefix"
12564 if test "X$x" = "X-L$additional_libdir"; then
12565 haveit=yes
12566 break
12568 done
12569 if test -z "$haveit"; then
12570 if test -d "$additional_libdir"; then
12571 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
12574 haveit=
12575 for x in $LDFLAGS $LTLIBICONV; do
12577 acl_save_prefix="$prefix"
12578 prefix="$acl_final_prefix"
12579 acl_save_exec_prefix="$exec_prefix"
12580 exec_prefix="$acl_final_exec_prefix"
12581 eval x=\"$x\"
12582 exec_prefix="$acl_save_exec_prefix"
12583 prefix="$acl_save_prefix"
12585 if test "X$x" = "X-L$additional_libdir"; then
12586 haveit=yes
12587 break
12589 done
12590 if test -z "$haveit"; then
12591 if test -d "$additional_libdir"; then
12592 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
12598 -R*)
12599 dir=`echo "X$dep" | sed -e 's/^X-R//'`
12600 if test "$enable_rpath" != no; then
12601 haveit=
12602 for x in $rpathdirs; do
12603 if test "X$x" = "X$dir"; then
12604 haveit=yes
12605 break
12607 done
12608 if test -z "$haveit"; then
12609 rpathdirs="$rpathdirs $dir"
12611 haveit=
12612 for x in $ltrpathdirs; do
12613 if test "X$x" = "X$dir"; then
12614 haveit=yes
12615 break
12617 done
12618 if test -z "$haveit"; then
12619 ltrpathdirs="$ltrpathdirs $dir"
12623 -l*)
12624 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
12626 *.la)
12627 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
12630 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
12631 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
12633 esac
12634 done
12636 else
12637 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
12638 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
12642 done
12643 done
12644 if test "X$rpathdirs" != "X"; then
12645 if test -n "$hardcode_libdir_separator"; then
12646 alldirs=
12647 for found_dir in $rpathdirs; do
12648 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
12649 done
12650 acl_save_libdir="$libdir"
12651 libdir="$alldirs"
12652 eval flag=\"$hardcode_libdir_flag_spec\"
12653 libdir="$acl_save_libdir"
12654 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
12655 else
12656 for found_dir in $rpathdirs; do
12657 acl_save_libdir="$libdir"
12658 libdir="$found_dir"
12659 eval flag=\"$hardcode_libdir_flag_spec\"
12660 libdir="$acl_save_libdir"
12661 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
12662 done
12665 if test "X$ltrpathdirs" != "X"; then
12666 for found_dir in $ltrpathdirs; do
12667 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
12668 done
12695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
12696 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
12697 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
12698 $as_echo_n "(cached) " >&6
12699 else
12700 gt_save_LIBS="$LIBS"
12701 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
12702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12703 /* end confdefs.h. */
12704 #include <CoreFoundation/CFPreferences.h>
12706 main ()
12708 CFPreferencesCopyAppValue(NULL, NULL)
12710 return 0;
12712 _ACEOF
12713 if ac_fn_c_try_link "$LINENO"; then :
12714 gt_cv_func_CFPreferencesCopyAppValue=yes
12715 else
12716 gt_cv_func_CFPreferencesCopyAppValue=no
12718 rm -f core conftest.err conftest.$ac_objext \
12719 conftest$ac_exeext conftest.$ac_ext
12720 LIBS="$gt_save_LIBS"
12722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
12723 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
12724 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
12726 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
12729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
12730 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
12731 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
12732 $as_echo_n "(cached) " >&6
12733 else
12734 gt_save_LIBS="$LIBS"
12735 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
12736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12737 /* end confdefs.h. */
12738 #include <CoreFoundation/CFLocale.h>
12740 main ()
12742 CFLocaleCopyCurrent();
12744 return 0;
12746 _ACEOF
12747 if ac_fn_c_try_link "$LINENO"; then :
12748 gt_cv_func_CFLocaleCopyCurrent=yes
12749 else
12750 gt_cv_func_CFLocaleCopyCurrent=no
12752 rm -f core conftest.err conftest.$ac_objext \
12753 conftest$ac_exeext conftest.$ac_ext
12754 LIBS="$gt_save_LIBS"
12756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
12757 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
12758 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
12760 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
12763 INTL_MACOSX_LIBS=
12764 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
12765 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
12773 LIBINTL=
12774 LTLIBINTL=
12775 POSUB=
12777 case " $gt_needs " in
12778 *" need-formatstring-macros "*) gt_api_version=3 ;;
12779 *" need-ngettext "*) gt_api_version=2 ;;
12780 *) gt_api_version=1 ;;
12781 esac
12782 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
12783 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
12785 if test "$USE_NLS" = "yes"; then
12786 gt_use_preinstalled_gnugettext=no
12789 if test $gt_api_version -ge 3; then
12790 gt_revision_test_code='
12791 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
12792 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
12793 #endif
12794 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
12796 else
12797 gt_revision_test_code=
12799 if test $gt_api_version -ge 2; then
12800 gt_expression_test_code=' + * ngettext ("", "", 0)'
12801 else
12802 gt_expression_test_code=
12805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
12806 $as_echo_n "checking for GNU gettext in libc... " >&6; }
12807 if eval \${$gt_func_gnugettext_libc+:} false; then :
12808 $as_echo_n "(cached) " >&6
12809 else
12810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12811 /* end confdefs.h. */
12812 #include <libintl.h>
12813 $gt_revision_test_code
12814 extern int _nl_msg_cat_cntr;
12815 extern int *_nl_domain_bindings;
12817 main ()
12819 bindtextdomain ("", "");
12820 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
12822 return 0;
12824 _ACEOF
12825 if ac_fn_c_try_link "$LINENO"; then :
12826 eval "$gt_func_gnugettext_libc=yes"
12827 else
12828 eval "$gt_func_gnugettext_libc=no"
12830 rm -f core conftest.err conftest.$ac_objext \
12831 conftest$ac_exeext conftest.$ac_ext
12833 eval ac_res=\$$gt_func_gnugettext_libc
12834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12835 $as_echo "$ac_res" >&6; }
12837 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
12843 am_save_CPPFLAGS="$CPPFLAGS"
12845 for element in $INCICONV; do
12846 haveit=
12847 for x in $CPPFLAGS; do
12849 acl_save_prefix="$prefix"
12850 prefix="$acl_final_prefix"
12851 acl_save_exec_prefix="$exec_prefix"
12852 exec_prefix="$acl_final_exec_prefix"
12853 eval x=\"$x\"
12854 exec_prefix="$acl_save_exec_prefix"
12855 prefix="$acl_save_prefix"
12857 if test "X$x" = "X$element"; then
12858 haveit=yes
12859 break
12861 done
12862 if test -z "$haveit"; then
12863 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12865 done
12868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
12869 $as_echo_n "checking for iconv... " >&6; }
12870 if ${am_cv_func_iconv+:} false; then :
12871 $as_echo_n "(cached) " >&6
12872 else
12874 am_cv_func_iconv="no, consider installing GNU libiconv"
12875 am_cv_lib_iconv=no
12876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12877 /* end confdefs.h. */
12878 #include <stdlib.h>
12879 #include <iconv.h>
12881 main ()
12883 iconv_t cd = iconv_open("","");
12884 iconv(cd,NULL,NULL,NULL,NULL);
12885 iconv_close(cd);
12887 return 0;
12889 _ACEOF
12890 if ac_fn_c_try_link "$LINENO"; then :
12891 am_cv_func_iconv=yes
12893 rm -f core conftest.err conftest.$ac_objext \
12894 conftest$ac_exeext conftest.$ac_ext
12895 if test "$am_cv_func_iconv" != yes; then
12896 am_save_LIBS="$LIBS"
12897 LIBS="$LIBS $LIBICONV"
12898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12899 /* end confdefs.h. */
12900 #include <stdlib.h>
12901 #include <iconv.h>
12903 main ()
12905 iconv_t cd = iconv_open("","");
12906 iconv(cd,NULL,NULL,NULL,NULL);
12907 iconv_close(cd);
12909 return 0;
12911 _ACEOF
12912 if ac_fn_c_try_link "$LINENO"; then :
12913 am_cv_lib_iconv=yes
12914 am_cv_func_iconv=yes
12916 rm -f core conftest.err conftest.$ac_objext \
12917 conftest$ac_exeext conftest.$ac_ext
12918 LIBS="$am_save_LIBS"
12922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
12923 $as_echo "$am_cv_func_iconv" >&6; }
12924 if test "$am_cv_func_iconv" = yes; then
12926 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
12929 if test "$am_cv_lib_iconv" = yes; then
12930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
12931 $as_echo_n "checking how to link with libiconv... " >&6; }
12932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
12933 $as_echo "$LIBICONV" >&6; }
12934 else
12935 CPPFLAGS="$am_save_CPPFLAGS"
12936 LIBICONV=
12937 LTLIBICONV=
12946 use_additional=yes
12948 acl_save_prefix="$prefix"
12949 prefix="$acl_final_prefix"
12950 acl_save_exec_prefix="$exec_prefix"
12951 exec_prefix="$acl_final_exec_prefix"
12953 eval additional_includedir=\"$includedir\"
12954 eval additional_libdir=\"$libdir\"
12956 exec_prefix="$acl_save_exec_prefix"
12957 prefix="$acl_save_prefix"
12960 # Check whether --with-libintl-prefix was given.
12961 if test "${with_libintl_prefix+set}" = set; then :
12962 withval=$with_libintl_prefix;
12963 if test "X$withval" = "Xno"; then
12964 use_additional=no
12965 else
12966 if test "X$withval" = "X"; then
12968 acl_save_prefix="$prefix"
12969 prefix="$acl_final_prefix"
12970 acl_save_exec_prefix="$exec_prefix"
12971 exec_prefix="$acl_final_exec_prefix"
12973 eval additional_includedir=\"$includedir\"
12974 eval additional_libdir=\"$libdir\"
12976 exec_prefix="$acl_save_exec_prefix"
12977 prefix="$acl_save_prefix"
12979 else
12980 additional_includedir="$withval/include"
12981 additional_libdir="$withval/$acl_libdirstem"
12987 LIBINTL=
12988 LTLIBINTL=
12989 INCINTL=
12990 rpathdirs=
12991 ltrpathdirs=
12992 names_already_handled=
12993 names_next_round='intl '
12994 while test -n "$names_next_round"; do
12995 names_this_round="$names_next_round"
12996 names_next_round=
12997 for name in $names_this_round; do
12998 already_handled=
12999 for n in $names_already_handled; do
13000 if test "$n" = "$name"; then
13001 already_handled=yes
13002 break
13004 done
13005 if test -z "$already_handled"; then
13006 names_already_handled="$names_already_handled $name"
13007 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
13008 eval value=\"\$HAVE_LIB$uppername\"
13009 if test -n "$value"; then
13010 if test "$value" = yes; then
13011 eval value=\"\$LIB$uppername\"
13012 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
13013 eval value=\"\$LTLIB$uppername\"
13014 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
13015 else
13018 else
13019 found_dir=
13020 found_la=
13021 found_so=
13022 found_a=
13023 if test $use_additional = yes; then
13024 if test -n "$shlibext" \
13025 && { test -f "$additional_libdir/lib$name.$shlibext" \
13026 || { test "$shlibext" = dll \
13027 && test -f "$additional_libdir/lib$name.dll.a"; }; }; then
13028 found_dir="$additional_libdir"
13029 if test -f "$additional_libdir/lib$name.$shlibext"; then
13030 found_so="$additional_libdir/lib$name.$shlibext"
13031 else
13032 found_so="$additional_libdir/lib$name.dll.a"
13034 if test -f "$additional_libdir/lib$name.la"; then
13035 found_la="$additional_libdir/lib$name.la"
13037 else
13038 if test -f "$additional_libdir/lib$name.$libext"; then
13039 found_dir="$additional_libdir"
13040 found_a="$additional_libdir/lib$name.$libext"
13041 if test -f "$additional_libdir/lib$name.la"; then
13042 found_la="$additional_libdir/lib$name.la"
13047 if test "X$found_dir" = "X"; then
13048 for x in $LDFLAGS $LTLIBINTL; do
13050 acl_save_prefix="$prefix"
13051 prefix="$acl_final_prefix"
13052 acl_save_exec_prefix="$exec_prefix"
13053 exec_prefix="$acl_final_exec_prefix"
13054 eval x=\"$x\"
13055 exec_prefix="$acl_save_exec_prefix"
13056 prefix="$acl_save_prefix"
13058 case "$x" in
13059 -L*)
13060 dir=`echo "X$x" | sed -e 's/^X-L//'`
13061 if test -n "$shlibext" \
13062 && { test -f "$dir/lib$name.$shlibext" \
13063 || { test "$shlibext" = dll \
13064 && test -f "$dir/lib$name.dll.a"; }; }; then
13065 found_dir="$dir"
13066 if test -f "$dir/lib$name.$shlibext"; then
13067 found_so="$dir/lib$name.$shlibext"
13068 else
13069 found_so="$dir/lib$name.dll.a"
13071 if test -f "$dir/lib$name.la"; then
13072 found_la="$dir/lib$name.la"
13074 else
13075 if test -f "$dir/lib$name.$libext"; then
13076 found_dir="$dir"
13077 found_a="$dir/lib$name.$libext"
13078 if test -f "$dir/lib$name.la"; then
13079 found_la="$dir/lib$name.la"
13084 esac
13085 if test "X$found_dir" != "X"; then
13086 break
13088 done
13090 if test "X$found_dir" != "X"; then
13091 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
13092 if test "X$found_so" != "X"; then
13093 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
13094 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13095 else
13096 haveit=
13097 for x in $ltrpathdirs; do
13098 if test "X$x" = "X$found_dir"; then
13099 haveit=yes
13100 break
13102 done
13103 if test -z "$haveit"; then
13104 ltrpathdirs="$ltrpathdirs $found_dir"
13106 if test "$hardcode_direct" = yes; then
13107 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13108 else
13109 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
13110 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13111 haveit=
13112 for x in $rpathdirs; do
13113 if test "X$x" = "X$found_dir"; then
13114 haveit=yes
13115 break
13117 done
13118 if test -z "$haveit"; then
13119 rpathdirs="$rpathdirs $found_dir"
13121 else
13122 haveit=
13123 for x in $LDFLAGS $LIBINTL; do
13125 acl_save_prefix="$prefix"
13126 prefix="$acl_final_prefix"
13127 acl_save_exec_prefix="$exec_prefix"
13128 exec_prefix="$acl_final_exec_prefix"
13129 eval x=\"$x\"
13130 exec_prefix="$acl_save_exec_prefix"
13131 prefix="$acl_save_prefix"
13133 if test "X$x" = "X-L$found_dir"; then
13134 haveit=yes
13135 break
13137 done
13138 if test -z "$haveit"; then
13139 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
13141 if test "$hardcode_minus_L" != no; then
13142 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13143 else
13144 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
13149 else
13150 if test "X$found_a" != "X"; then
13151 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
13152 else
13153 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
13156 additional_includedir=
13157 case "$found_dir" in
13158 */$acl_libdirstem | */$acl_libdirstem/)
13159 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
13160 additional_includedir="$basedir/include"
13162 esac
13163 if test "X$additional_includedir" != "X"; then
13164 if test "X$additional_includedir" != "X/usr/include"; then
13165 haveit=
13166 if test "X$additional_includedir" = "X/usr/local/include"; then
13167 if test -n "$GCC"; then
13168 case $host_os in
13169 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13170 esac
13173 if test -z "$haveit"; then
13174 for x in $CPPFLAGS $INCINTL; do
13176 acl_save_prefix="$prefix"
13177 prefix="$acl_final_prefix"
13178 acl_save_exec_prefix="$exec_prefix"
13179 exec_prefix="$acl_final_exec_prefix"
13180 eval x=\"$x\"
13181 exec_prefix="$acl_save_exec_prefix"
13182 prefix="$acl_save_prefix"
13184 if test "X$x" = "X-I$additional_includedir"; then
13185 haveit=yes
13186 break
13188 done
13189 if test -z "$haveit"; then
13190 if test -d "$additional_includedir"; then
13191 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
13197 if test -n "$found_la"; then
13198 save_libdir="$libdir"
13199 case "$found_la" in
13200 */* | *\\*) . "$found_la" ;;
13201 *) . "./$found_la" ;;
13202 esac
13203 libdir="$save_libdir"
13204 for dep in $dependency_libs; do
13205 case "$dep" in
13206 -L*)
13207 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13208 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
13209 haveit=
13210 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
13211 if test -n "$GCC"; then
13212 case $host_os in
13213 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13214 esac
13217 if test -z "$haveit"; then
13218 haveit=
13219 for x in $LDFLAGS $LIBINTL; do
13221 acl_save_prefix="$prefix"
13222 prefix="$acl_final_prefix"
13223 acl_save_exec_prefix="$exec_prefix"
13224 exec_prefix="$acl_final_exec_prefix"
13225 eval x=\"$x\"
13226 exec_prefix="$acl_save_exec_prefix"
13227 prefix="$acl_save_prefix"
13229 if test "X$x" = "X-L$additional_libdir"; then
13230 haveit=yes
13231 break
13233 done
13234 if test -z "$haveit"; then
13235 if test -d "$additional_libdir"; then
13236 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
13239 haveit=
13240 for x in $LDFLAGS $LTLIBINTL; do
13242 acl_save_prefix="$prefix"
13243 prefix="$acl_final_prefix"
13244 acl_save_exec_prefix="$exec_prefix"
13245 exec_prefix="$acl_final_exec_prefix"
13246 eval x=\"$x\"
13247 exec_prefix="$acl_save_exec_prefix"
13248 prefix="$acl_save_prefix"
13250 if test "X$x" = "X-L$additional_libdir"; then
13251 haveit=yes
13252 break
13254 done
13255 if test -z "$haveit"; then
13256 if test -d "$additional_libdir"; then
13257 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
13263 -R*)
13264 dir=`echo "X$dep" | sed -e 's/^X-R//'`
13265 if test "$enable_rpath" != no; then
13266 haveit=
13267 for x in $rpathdirs; do
13268 if test "X$x" = "X$dir"; then
13269 haveit=yes
13270 break
13272 done
13273 if test -z "$haveit"; then
13274 rpathdirs="$rpathdirs $dir"
13276 haveit=
13277 for x in $ltrpathdirs; do
13278 if test "X$x" = "X$dir"; then
13279 haveit=yes
13280 break
13282 done
13283 if test -z "$haveit"; then
13284 ltrpathdirs="$ltrpathdirs $dir"
13288 -l*)
13289 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13291 *.la)
13292 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13295 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
13296 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
13298 esac
13299 done
13301 else
13302 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
13303 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
13307 done
13308 done
13309 if test "X$rpathdirs" != "X"; then
13310 if test -n "$hardcode_libdir_separator"; then
13311 alldirs=
13312 for found_dir in $rpathdirs; do
13313 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
13314 done
13315 acl_save_libdir="$libdir"
13316 libdir="$alldirs"
13317 eval flag=\"$hardcode_libdir_flag_spec\"
13318 libdir="$acl_save_libdir"
13319 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
13320 else
13321 for found_dir in $rpathdirs; do
13322 acl_save_libdir="$libdir"
13323 libdir="$found_dir"
13324 eval flag=\"$hardcode_libdir_flag_spec\"
13325 libdir="$acl_save_libdir"
13326 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
13327 done
13330 if test "X$ltrpathdirs" != "X"; then
13331 for found_dir in $ltrpathdirs; do
13332 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
13333 done
13336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
13337 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
13338 if eval \${$gt_func_gnugettext_libintl+:} false; then :
13339 $as_echo_n "(cached) " >&6
13340 else
13341 gt_save_CPPFLAGS="$CPPFLAGS"
13342 CPPFLAGS="$CPPFLAGS $INCINTL"
13343 gt_save_LIBS="$LIBS"
13344 LIBS="$LIBS $LIBINTL"
13345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13346 /* end confdefs.h. */
13347 #include <libintl.h>
13348 $gt_revision_test_code
13349 extern int _nl_msg_cat_cntr;
13350 extern
13351 #ifdef __cplusplus
13353 #endif
13354 const char *_nl_expand_alias (const char *);
13356 main ()
13358 bindtextdomain ("", "");
13359 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
13361 return 0;
13363 _ACEOF
13364 if ac_fn_c_try_link "$LINENO"; then :
13365 eval "$gt_func_gnugettext_libintl=yes"
13366 else
13367 eval "$gt_func_gnugettext_libintl=no"
13369 rm -f core conftest.err conftest.$ac_objext \
13370 conftest$ac_exeext conftest.$ac_ext
13371 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
13372 LIBS="$LIBS $LIBICONV"
13373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13374 /* end confdefs.h. */
13375 #include <libintl.h>
13376 $gt_revision_test_code
13377 extern int _nl_msg_cat_cntr;
13378 extern
13379 #ifdef __cplusplus
13381 #endif
13382 const char *_nl_expand_alias (const char *);
13384 main ()
13386 bindtextdomain ("", "");
13387 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
13389 return 0;
13391 _ACEOF
13392 if ac_fn_c_try_link "$LINENO"; then :
13393 LIBINTL="$LIBINTL $LIBICONV"
13394 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
13395 eval "$gt_func_gnugettext_libintl=yes"
13398 rm -f core conftest.err conftest.$ac_objext \
13399 conftest$ac_exeext conftest.$ac_ext
13401 CPPFLAGS="$gt_save_CPPFLAGS"
13402 LIBS="$gt_save_LIBS"
13404 eval ac_res=\$$gt_func_gnugettext_libintl
13405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13406 $as_echo "$ac_res" >&6; }
13409 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
13410 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
13411 && test "$PACKAGE" != gettext-runtime \
13412 && test "$PACKAGE" != gettext-tools; }; then
13413 gt_use_preinstalled_gnugettext=yes
13414 else
13415 LIBINTL=
13416 LTLIBINTL=
13417 INCINTL=
13422 if test -n "$INTL_MACOSX_LIBS"; then
13423 if test "$gt_use_preinstalled_gnugettext" = "yes" \
13424 || test "$nls_cv_use_gnu_gettext" = "yes"; then
13425 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
13426 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
13430 if test "$gt_use_preinstalled_gnugettext" = "yes" \
13431 || test "$nls_cv_use_gnu_gettext" = "yes"; then
13433 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
13435 else
13436 USE_NLS=no
13440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
13441 $as_echo_n "checking whether to use NLS... " >&6; }
13442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
13443 $as_echo "$USE_NLS" >&6; }
13444 if test "$USE_NLS" = "yes"; then
13445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
13446 $as_echo_n "checking where the gettext function comes from... " >&6; }
13447 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
13448 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
13449 gt_source="external libintl"
13450 else
13451 gt_source="libc"
13453 else
13454 gt_source="included intl directory"
13456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
13457 $as_echo "$gt_source" >&6; }
13460 if test "$USE_NLS" = "yes"; then
13462 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
13463 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
13464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
13465 $as_echo_n "checking how to link with libintl... " >&6; }
13466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
13467 $as_echo "$LIBINTL" >&6; }
13469 for element in $INCINTL; do
13470 haveit=
13471 for x in $CPPFLAGS; do
13473 acl_save_prefix="$prefix"
13474 prefix="$acl_final_prefix"
13475 acl_save_exec_prefix="$exec_prefix"
13476 exec_prefix="$acl_final_exec_prefix"
13477 eval x=\"$x\"
13478 exec_prefix="$acl_save_exec_prefix"
13479 prefix="$acl_save_prefix"
13481 if test "X$x" = "X$element"; then
13482 haveit=yes
13483 break
13485 done
13486 if test -z "$haveit"; then
13487 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13489 done
13494 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
13497 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
13501 POSUB=po
13506 INTLLIBS="$LIBINTL"
13514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: dmalloc enabled" >&5
13515 $as_echo_n "checking option: dmalloc enabled... " >&6; }
13516 # Check whether --enable-dmalloc was given.
13517 if test "${enable_dmalloc+set}" = set; then :
13518 enableval=$enable_dmalloc;
13521 if test x$enable_dmalloc = "xyes" ; then
13522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13523 $as_echo "yes" >&6; }
13524 else
13525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13526 $as_echo "no" >&6; }
13530 # Check whether --with-dmalloc-dir was given.
13531 if test "${with_dmalloc_dir+set}" = set; then :
13532 withval=$with_dmalloc_dir;
13533 if test "x$withval" != "xno" ; then
13534 enable_dmalloc = "yes"
13535 CPPFLAGS="$CPPFLAGS -I${withval}"
13536 LDFLAGS="$LDFLAGS -L${withval}"
13542 if test x$enable_dmalloc = "xyes" ; then
13544 $as_echo "#define ENABLE_DMALLOC 1" >>confdefs.h
13548 ALPINE_psefcmd="/bin/ps auxww"
13549 ALPINE_psfailed="0"
13550 ALPINE_PSTEST="-"
13552 # Check whether --with-ps-cmd was given.
13553 if test "${with_ps_cmd+set}" = set; then :
13554 withval=$with_ps_cmd;
13555 if test "x$withval" = "xno" -o "x$withval" = "xyes" -o "x$withval" = "x" ; then
13556 withval=$ALPINE_psefcmd
13558 ALPINE_PSTEST=`$withval | $EGREP "$withval" | $EGREP -v $EGREP`
13559 if test -n "$ALPINE_PSTEST" ; then
13560 ALPINE_psefcmd="$withval"
13561 else
13562 ALPINE_psfailed="1"
13563 if test "x$ALPINE_psefcmd" != "x$withval" ; then
13564 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: failed command $withval. Trying $ALPINE_psefcmd" >&5
13565 $as_echo "$as_me: WARNING: failed command $withval. Trying $ALPINE_psefcmd" >&2;}
13571 if test "$ALPINE_psfailed" = "1" -o "$ALPINE_PSTEST" = "-" ; then
13572 withval="$ALPINE_psefcmd"
13573 ALPINE_PSTEST=`$withval | $EGREP "$withval" | $EGREP -v $EGREP`
13574 if test -z "$ALPINE_PSTEST" ; then
13575 ALPINE_psfailed="1"
13576 else
13577 ALPINE_psfailed="0"
13580 if test "$ALPINE_psfailed" = "0" ; then
13582 cat >>confdefs.h <<_ACEOF
13583 #define PSEFCMD "$ALPINE_psefcmd"
13584 _ACEOF
13588 case $host in
13589 *apple-darwin*)
13590 if test -d /opt/local ; then
13591 localedir="/opt/local/share/locale"
13592 else
13593 localedir="\${datadir}/locale"
13596 *-*-cygwin)
13597 localedir="/usr/share"
13600 localedir="\${datadir}/locale"
13602 esac
13604 # Check whether --with-localedir was given.
13605 if test "${with_localedir+set}" = set; then :
13606 withval=$with_localedir;
13607 case $withval in
13608 yes)
13613 localedir=$withval
13615 esac
13619 localedir="$localedir"
13622 # Setup OS-Specific features
13623 case "$host" in
13624 *darwin*)
13625 # Check whether --enable-osx-universal-binaries was given.
13626 if test "${enable_osx_universal_binaries+set}" = set; then :
13627 enableval=$enable_osx_universal_binaries;
13630 if test "x$enable_osx_universal_binaries" = "xyes" ; then
13631 if test "x$enable_dependency_tracking" != xno ; then
13632 as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking.
13633 Please re-run configure with these options:
13634 --disable-dependency-tracking --enable-osx-universal-binary" "$LINENO" 5
13636 if test -d /Developer/SDKs/MacOSX10.5.sdk ; then
13637 alpine_sysroot=/Developer/SDKs/MacOSX10.5.sdk
13638 elif test -d /Developer/SDKs/MacOSX10.4u.sdk ; then
13639 alpine_sysroot=/Developer/SDKs/MacOSX10.4u.sdk
13640 else
13641 as_fn_error $? "No suitable MacOSX SDK found. Make sure Xcode tools are installed" "$LINENO" 5
13643 ub_cflags="-isysroot $alpine_sysroot -arch ppc -arch i386"
13644 ub_ldflags="-Wl,-syslibroot,$alpine_sysroot -arch ppc -arch i386"
13645 AM_CFLAGS="$AM_CFLAGS $ub_cflags"
13646 AM_LDFLAGS="$AM_LDFLAGS $ub_ldflags"
13647 alpine_c_client_cflags="$alpine_c_client_cflags $ub_cflags"
13648 alpine_c_client_ldflags="$alpine_c_client_ldflags $ub_ldflags"
13651 esac
13654 # Check whether --with-include-path was given.
13655 if test "${with_include_path+set}" = set; then :
13656 withval=$with_include_path;
13657 case $withval in
13660 yes)
13663 new_cppflags="-I`echo ${withval} | ${SED} 's/:/ -I/g'`"
13664 CPPFLAGS="$CPPFLAGS ${new_cppflags}"
13665 alpine_c_client_cflags="$alpine_c_client_cflags ${new_cppflags}"
13667 esac
13673 # Check whether --with-lib-path was given.
13674 if test "${with_lib_path+set}" = set; then :
13675 withval=$with_lib_path;
13676 case $withval in
13679 yes)
13682 new_ldflags="-L`echo ${withval} | ${SED} 's/:/ -L/g'`"
13683 LDFLAGS="$LDFLAGS $new_ldflags"
13684 alpine_c_client_ldflags="$alpine_c_client_ldflags ${new_ldflags}"
13686 esac
13692 # Check whether --with-pubcookie was given.
13693 if test "${with_pubcookie+set}" = set; then :
13694 withval=$with_pubcookie;
13695 if test "x$withval" != "xno" ; then
13696 WEB_PUBCOOKIE_BUILD=web/src/pubcookie
13704 # Check whether --with-web-bin was given.
13705 if test "${with_web_bin+set}" = set; then :
13706 withval=$with_web_bin;
13707 case "$withval" in
13710 yes)
13713 WEB_BINDIR=$withval
13715 esac
13720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: debugging is enabled" >&5
13721 $as_echo_n "checking option: debugging is enabled... " >&6; }
13722 # Check whether --enable-debug was given.
13723 if test "${enable_debug+set}" = set; then :
13724 enableval=$enable_debug;
13727 if test x$enable_debug != "xno" ; then
13728 AM_CFLAGS="$AM_CFLAGS -g"
13730 $as_echo "#define DEBUG 1" >>confdefs.h
13733 $as_echo "#define DEBUGJOURNAL 1" >>confdefs.h
13735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13736 $as_echo "yes" >&6; }
13737 else
13738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13739 $as_echo "no" >&6; }
13742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: optimization is enabled" >&5
13743 $as_echo_n "checking option: optimization is enabled... " >&6; }
13744 # Check whether --enable-optimization was given.
13745 if test "${enable_optimization+set}" = set; then :
13746 enableval=$enable_optimization;
13749 if test x$enable_optimization != "xno" ; then
13750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13751 $as_echo "yes" >&6; }
13752 else
13753 CFLAGS="`echo $AM_CFLAGS | ${SED} 's/-O2//'`"
13754 alpine_c_client_gccoptlevel="-O0"
13755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13756 $as_echo "no" >&6; }
13759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: mouse support enabled" >&5
13760 $as_echo_n "checking option: mouse support enabled... " >&6; }
13761 # Check whether --enable-mouse was given.
13762 if test "${enable_mouse+set}" = set; then :
13763 enableval=$enable_mouse;
13766 if test x$enable_mouse != "xno" ; then
13768 $as_echo "#define MOUSE /**/" >>confdefs.h
13770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13771 $as_echo "yes" >&6; }
13772 else
13773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13774 $as_echo "no" >&6; }
13777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: quotas enabled" >&5
13778 $as_echo_n "checking option: quotas enabled... " >&6; }
13779 # Check whether --enable-quotas was given.
13780 if test "${enable_quotas+set}" = set; then :
13781 enableval=$enable_quotas;
13784 if test x$enable_quotas = "xyes" ; then
13786 $as_echo "#define USE_QUOTAS /**/" >>confdefs.h
13788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13789 $as_echo "yes" >&6; }
13790 else
13791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13792 $as_echo "no" >&6; }
13795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: From changing enabled" >&5
13796 $as_echo_n "checking option: From changing enabled... " >&6; }
13797 # Check whether --enable-from_changing was given.
13798 if test "${enable_from_changing+set}" = set; then :
13799 enableval=$enable_from_changing;
13802 if test x$enable_from_changing != "xno" ; then
13803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13804 $as_echo "yes" >&6; }
13805 else
13807 $as_echo "#define NEVER_ALLOW_CHANGING_FROM /**/" >>confdefs.h
13809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13810 $as_echo "no" >&6; }
13813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: background post enabled" >&5
13814 $as_echo_n "checking option: background post enabled... " >&6; }
13815 # Check whether --enable-background-post was given.
13816 if test "${enable_background_post+set}" = set; then :
13817 enableval=$enable_background_post;
13820 if test x$enable_background_post != "xno" ; then
13822 $as_echo "#define BACKGROUND_POST /**/" >>confdefs.h
13824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13825 $as_echo "yes" >&6; }
13826 else
13827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13828 $as_echo "no" >&6; }
13831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: keyboard lock enabled" >&5
13832 $as_echo_n "checking option: keyboard lock enabled... " >&6; }
13833 # Check whether --enable-keyboard-lock was given.
13834 if test "${enable_keyboard_lock+set}" = set; then :
13835 enableval=$enable_keyboard_lock;
13838 if test x$enable_keyboard_lock != "xno" ; then
13840 $as_echo "#define KEYBOARD_LOCK /**/" >>confdefs.h
13842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13843 $as_echo "yes" >&6; }
13844 else
13845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13846 $as_echo "no" >&6; }
13849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: from encoding enabled" >&5
13850 $as_echo_n "checking option: from encoding enabled... " >&6; }
13851 # Check whether --enable-from-encoding was given.
13852 if test "${enable_from_encoding+set}" = set; then :
13853 enableval=$enable_from_encoding;
13856 if test x$enable_from_encoding = "xyes" ; then
13858 $as_echo "#define ENCODE_FROMS /**/" >>confdefs.h
13860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13861 $as_echo "yes" >&6; }
13862 else
13863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13864 $as_echo "no" >&6; }
13868 # Check whether --with-smtp-msa was given.
13869 if test "${with_smtp_msa+set}" = set; then :
13870 withval=$with_smtp_msa;
13871 case "$withval" in
13874 yes)
13875 # Extract the first word of "sendmail", so it can be a program name with args.
13876 set dummy sendmail; ac_word=$2
13877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13878 $as_echo_n "checking for $ac_word... " >&6; }
13879 if ${ac_cv_path_SENDMAIL+:} false; then :
13880 $as_echo_n "(cached) " >&6
13881 else
13882 case $SENDMAIL in
13883 [\\/]* | ?:[\\/]*)
13884 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
13887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13888 as_dummy="$PATH:/usr/sbin:/usr/lib"
13889 for as_dir in $as_dummy
13891 IFS=$as_save_IFS
13892 test -z "$as_dir" && as_dir=.
13893 for ac_exec_ext in '' $ac_executable_extensions; do
13894 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13895 ac_cv_path_SENDMAIL="$as_dir/$ac_word$ac_exec_ext"
13896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13897 break 2
13899 done
13900 done
13901 IFS=$as_save_IFS
13903 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL=""""
13905 esac
13907 SENDMAIL=$ac_cv_path_SENDMAIL
13908 if test -n "$SENDMAIL"; then
13909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SENDMAIL" >&5
13910 $as_echo "$SENDMAIL" >&6; }
13911 else
13912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13913 $as_echo "no" >&6; }
13919 SENDMAIL=$withval
13921 esac
13923 else
13925 # Extract the first word of "sendmail", so it can be a program name with args.
13926 set dummy sendmail; ac_word=$2
13927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13928 $as_echo_n "checking for $ac_word... " >&6; }
13929 if ${ac_cv_path_SENDMAIL+:} false; then :
13930 $as_echo_n "(cached) " >&6
13931 else
13932 case $SENDMAIL in
13933 [\\/]* | ?:[\\/]*)
13934 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
13937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13938 as_dummy="$PATH:/usr/sbin:/usr/lib"
13939 for as_dir in $as_dummy
13941 IFS=$as_save_IFS
13942 test -z "$as_dir" && as_dir=.
13943 for ac_exec_ext in '' $ac_executable_extensions; do
13944 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13945 ac_cv_path_SENDMAIL="$as_dir/$ac_word$ac_exec_ext"
13946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13947 break 2
13949 done
13950 done
13951 IFS=$as_save_IFS
13953 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL=""""
13955 esac
13957 SENDMAIL=$ac_cv_path_SENDMAIL
13958 if test -n "$SENDMAIL"; then
13959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SENDMAIL" >&5
13960 $as_echo "$SENDMAIL" >&6; }
13961 else
13962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13963 $as_echo "no" >&6; }
13970 if test -n "$SENDMAIL" ; then
13972 cat >>confdefs.h <<_ACEOF
13973 #define SENDMAIL "$SENDMAIL"
13974 _ACEOF
13978 smtp_msa_flags="-bs -odb -oem"
13980 # Check whether --with-smtp-msa-flags was given.
13981 if test "${with_smtp_msa_flags+set}" = set; then :
13982 withval=$with_smtp_msa_flags;
13983 if test "x$withval" != "xno" ; then
13984 smtp_msa_flags=$withval
13990 cat >>confdefs.h <<_ACEOF
13991 #define SENDMAILFLAGS "$smtp_msa_flags"
13992 _ACEOF
13995 npa="inews"
13997 # Check whether --with-npa was given.
13998 if test "${with_npa+set}" = set; then :
13999 withval=$with_npa;
14000 case "$withval" in
14003 yes)
14004 # Extract the first word of "inews", so it can be a program name with args.
14005 set dummy inews; ac_word=$2
14006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14007 $as_echo_n "checking for $ac_word... " >&6; }
14008 if ${ac_cv_path_NPA_PROG+:} false; then :
14009 $as_echo_n "(cached) " >&6
14010 else
14011 case $NPA_PROG in
14012 [\\/]* | ?:[\\/]*)
14013 ac_cv_path_NPA_PROG="$NPA_PROG" # Let the user override the test with a path.
14016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14017 as_dummy="$PATH:/usr/sbin:/usr/lib"
14018 for as_dir in $as_dummy
14020 IFS=$as_save_IFS
14021 test -z "$as_dir" && as_dir=.
14022 for ac_exec_ext in '' $ac_executable_extensions; do
14023 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14024 ac_cv_path_NPA_PROG="$as_dir/$ac_word$ac_exec_ext"
14025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14026 break 2
14028 done
14029 done
14030 IFS=$as_save_IFS
14032 test -z "$ac_cv_path_NPA_PROG" && ac_cv_path_NPA_PROG=""""
14034 esac
14036 NPA_PROG=$ac_cv_path_NPA_PROG
14037 if test -n "$NPA_PROG"; then
14038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NPA_PROG" >&5
14039 $as_echo "$NPA_PROG" >&6; }
14040 else
14041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14042 $as_echo "no" >&6; }
14048 NPA_PROG=$withval
14050 esac
14052 else
14054 # Extract the first word of "inews", so it can be a program name with args.
14055 set dummy inews; ac_word=$2
14056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14057 $as_echo_n "checking for $ac_word... " >&6; }
14058 if ${ac_cv_path_NPA_PROG+:} false; then :
14059 $as_echo_n "(cached) " >&6
14060 else
14061 case $NPA_PROG in
14062 [\\/]* | ?:[\\/]*)
14063 ac_cv_path_NPA_PROG="$NPA_PROG" # Let the user override the test with a path.
14066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14067 as_dummy="$PATH:/usr/sbin:/usr/lib"
14068 for as_dir in $as_dummy
14070 IFS=$as_save_IFS
14071 test -z "$as_dir" && as_dir=.
14072 for ac_exec_ext in '' $ac_executable_extensions; do
14073 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14074 ac_cv_path_NPA_PROG="$as_dir/$ac_word$ac_exec_ext"
14075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14076 break 2
14078 done
14079 done
14080 IFS=$as_save_IFS
14082 test -z "$ac_cv_path_NPA_PROG" && ac_cv_path_NPA_PROG=""""
14084 esac
14086 NPA_PROG=$ac_cv_path_NPA_PROG
14087 if test -n "$NPA_PROG"; then
14088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NPA_PROG" >&5
14089 $as_echo "$NPA_PROG" >&6; }
14090 else
14091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14092 $as_echo "no" >&6; }
14100 npa_flags="-h"
14102 # Check whether --with-npa-flags was given.
14103 if test "${with_npa_flags+set}" = set; then :
14104 withval=$with_npa_flags;
14105 if test "x$withval" != "xno" ; then
14106 npa_flags=$withval
14111 if test -n "$NPA_PROG" ; then
14113 cat >>confdefs.h <<_ACEOF
14114 #define SENDNEWS "$NPA_PROG $npa_flags"
14115 _ACEOF
14120 # Check whether --with-password-prog was given.
14121 if test "${with_password_prog+set}" = set; then :
14122 withval=$with_password_prog;
14123 case "$withval" in
14126 yes)
14127 # Extract the first word of "passwd", so it can be a program name with args.
14128 set dummy passwd; ac_word=$2
14129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14130 $as_echo_n "checking for $ac_word... " >&6; }
14131 if ${ac_cv_path_PWPROG+:} false; then :
14132 $as_echo_n "(cached) " >&6
14133 else
14134 case $PWPROG in
14135 [\\/]* | ?:[\\/]*)
14136 ac_cv_path_PWPROG="$PWPROG" # Let the user override the test with a path.
14139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14140 as_dummy="$PATH:/usr/sbin:/usr/lib"
14141 for as_dir in $as_dummy
14143 IFS=$as_save_IFS
14144 test -z "$as_dir" && as_dir=.
14145 for ac_exec_ext in '' $ac_executable_extensions; do
14146 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14147 ac_cv_path_PWPROG="$as_dir/$ac_word$ac_exec_ext"
14148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14149 break 2
14151 done
14152 done
14153 IFS=$as_save_IFS
14155 test -z "$ac_cv_path_PWPROG" && ac_cv_path_PWPROG=""""
14157 esac
14159 PWPROG=$ac_cv_path_PWPROG
14160 if test -n "$PWPROG"; then
14161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PWPROG" >&5
14162 $as_echo "$PWPROG" >&6; }
14163 else
14164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14165 $as_echo "no" >&6; }
14171 # Extract the first word of "$withval", so it can be a program name with args.
14172 set dummy $withval; ac_word=$2
14173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14174 $as_echo_n "checking for $ac_word... " >&6; }
14175 if ${ac_cv_path_PWPROG+:} false; then :
14176 $as_echo_n "(cached) " >&6
14177 else
14178 case $PWPROG in
14179 [\\/]* | ?:[\\/]*)
14180 ac_cv_path_PWPROG="$PWPROG" # Let the user override the test with a path.
14183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14184 as_dummy="$PATH:/usr/sbin:/usr/lib"
14185 for as_dir in $as_dummy
14187 IFS=$as_save_IFS
14188 test -z "$as_dir" && as_dir=.
14189 for ac_exec_ext in '' $ac_executable_extensions; do
14190 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14191 ac_cv_path_PWPROG="$as_dir/$ac_word$ac_exec_ext"
14192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14193 break 2
14195 done
14196 done
14197 IFS=$as_save_IFS
14199 test -z "$ac_cv_path_PWPROG" && ac_cv_path_PWPROG=""""
14201 esac
14203 PWPROG=$ac_cv_path_PWPROG
14204 if test -n "$PWPROG"; then
14205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PWPROG" >&5
14206 $as_echo "$PWPROG" >&6; }
14207 else
14208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14209 $as_echo "no" >&6; }
14214 esac
14216 else
14218 # Extract the first word of "passwd", so it can be a program name with args.
14219 set dummy passwd; ac_word=$2
14220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14221 $as_echo_n "checking for $ac_word... " >&6; }
14222 if ${ac_cv_path_PWPROG+:} false; then :
14223 $as_echo_n "(cached) " >&6
14224 else
14225 case $PWPROG in
14226 [\\/]* | ?:[\\/]*)
14227 ac_cv_path_PWPROG="$PWPROG" # Let the user override the test with a path.
14230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14231 as_dummy="$PATH:/usr/sbin:/usr/lib"
14232 for as_dir in $as_dummy
14234 IFS=$as_save_IFS
14235 test -z "$as_dir" && as_dir=.
14236 for ac_exec_ext in '' $ac_executable_extensions; do
14237 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14238 ac_cv_path_PWPROG="$as_dir/$ac_word$ac_exec_ext"
14239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14240 break 2
14242 done
14243 done
14244 IFS=$as_save_IFS
14246 test -z "$ac_cv_path_PWPROG" && ac_cv_path_PWPROG=""""
14248 esac
14250 PWPROG=$ac_cv_path_PWPROG
14251 if test -n "$PWPROG"; then
14252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PWPROG" >&5
14253 $as_echo "$PWPROG" >&6; }
14254 else
14255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14256 $as_echo "no" >&6; }
14263 if test -n "$PWPROG" ; then
14265 cat >>confdefs.h <<_ACEOF
14266 #define PASSWD_PROG "$PWPROG"
14267 _ACEOF
14272 # Check whether --with-simple-spellcheck was given.
14273 if test "${with_simple_spellcheck+set}" = set; then :
14274 withval=$with_simple_spellcheck;
14275 if test "x$withval" != "xno" ; then
14276 SPELLPROG=$withval
14279 else
14281 # Extract the first word of "hunspell", so it can be a program name with args.
14282 set dummy hunspell; ac_word=$2
14283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14284 $as_echo_n "checking for $ac_word... " >&6; }
14285 if ${ac_cv_prog_SPELLPROG+:} false; then :
14286 $as_echo_n "(cached) " >&6
14287 else
14288 if test -n "$SPELLPROG"; then
14289 ac_cv_prog_SPELLPROG="$SPELLPROG" # Let the user override the test.
14290 else
14291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14292 for as_dir in $PATH
14294 IFS=$as_save_IFS
14295 test -z "$as_dir" && as_dir=.
14296 for ac_exec_ext in '' $ac_executable_extensions; do
14297 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14298 ac_cv_prog_SPELLPROG="hunspell"
14299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14300 break 2
14302 done
14303 done
14304 IFS=$as_save_IFS
14308 SPELLPROG=$ac_cv_prog_SPELLPROG
14309 if test -n "$SPELLPROG"; then
14310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPELLPROG" >&5
14311 $as_echo "$SPELLPROG" >&6; }
14312 else
14313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14314 $as_echo "no" >&6; }
14318 if test -z "$SPELLPROG" ; then
14319 # Extract the first word of "aspell", so it can be a program name with args.
14320 set dummy aspell; ac_word=$2
14321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14322 $as_echo_n "checking for $ac_word... " >&6; }
14323 if ${ac_cv_prog_SPELLPROG+:} false; then :
14324 $as_echo_n "(cached) " >&6
14325 else
14326 if test -n "$SPELLPROG"; then
14327 ac_cv_prog_SPELLPROG="$SPELLPROG" # Let the user override the test.
14328 else
14329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14330 for as_dir in $PATH
14332 IFS=$as_save_IFS
14333 test -z "$as_dir" && as_dir=.
14334 for ac_exec_ext in '' $ac_executable_extensions; do
14335 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14336 ac_cv_prog_SPELLPROG="aspell"
14337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14338 break 2
14340 done
14341 done
14342 IFS=$as_save_IFS
14346 SPELLPROG=$ac_cv_prog_SPELLPROG
14347 if test -n "$SPELLPROG"; then
14348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPELLPROG" >&5
14349 $as_echo "$SPELLPROG" >&6; }
14350 else
14351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14352 $as_echo "no" >&6; }
14356 if test -z "$SPELLPROG" ; then
14357 # Extract the first word of "ispell", so it can be a program name with args.
14358 set dummy ispell; ac_word=$2
14359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14360 $as_echo_n "checking for $ac_word... " >&6; }
14361 if ${ac_cv_prog_SPELLPROG+:} false; then :
14362 $as_echo_n "(cached) " >&6
14363 else
14364 if test -n "$SPELLPROG"; then
14365 ac_cv_prog_SPELLPROG="$SPELLPROG" # Let the user override the test.
14366 else
14367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14368 for as_dir in $PATH
14370 IFS=$as_save_IFS
14371 test -z "$as_dir" && as_dir=.
14372 for ac_exec_ext in '' $ac_executable_extensions; do
14373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14374 ac_cv_prog_SPELLPROG="ispell"
14375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14376 break 2
14378 done
14379 done
14380 IFS=$as_save_IFS
14384 SPELLPROG=$ac_cv_prog_SPELLPROG
14385 if test -n "$SPELLPROG"; then
14386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPELLPROG" >&5
14387 $as_echo "$SPELLPROG" >&6; }
14388 else
14389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14390 $as_echo "no" >&6; }
14394 if test -z "$SPELLPROG" ; then
14395 SPELLPROG="spell"
14403 if test "x$SPELLPROG" != "xno" ; then
14404 # Extract the first word of "$SPELLPROG", so it can be a program name with args.
14405 set dummy $SPELLPROG; ac_word=$2
14406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14407 $as_echo_n "checking for $ac_word... " >&6; }
14408 if ${ac_cv_path_alpine_simple_spellcheck+:} false; then :
14409 $as_echo_n "(cached) " >&6
14410 else
14411 case $alpine_simple_spellcheck in
14412 [\\/]* | ?:[\\/]*)
14413 ac_cv_path_alpine_simple_spellcheck="$alpine_simple_spellcheck" # Let the user override the test with a path.
14416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14417 for as_dir in $PATH
14419 IFS=$as_save_IFS
14420 test -z "$as_dir" && as_dir=.
14421 for ac_exec_ext in '' $ac_executable_extensions; do
14422 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14423 ac_cv_path_alpine_simple_spellcheck="$as_dir/$ac_word$ac_exec_ext"
14424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14425 break 2
14427 done
14428 done
14429 IFS=$as_save_IFS
14432 esac
14434 alpine_simple_spellcheck=$ac_cv_path_alpine_simple_spellcheck
14435 if test -n "$alpine_simple_spellcheck"; then
14436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $alpine_simple_spellcheck" >&5
14437 $as_echo "$alpine_simple_spellcheck" >&6; }
14438 else
14439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14440 $as_echo "no" >&6; }
14444 if test -n "$alpine_simple_spellcheck" ; then
14445 case "$SPELLPROG" in
14446 hunspell)
14447 alpine_simple_spellcheck="$alpine_simple_spellcheck -l"
14449 aspell)
14450 alpine_simple_spellcheck="$alpine_simple_spellcheck --dont-backup --mode=email list"
14452 ispell)
14453 alpine_simple_spellcheck="$alpine_simple_spellcheck -l"
14457 esac
14462 # Check whether --with-interactive-spellcheck was given.
14463 if test "${with_interactive_spellcheck+set}" = set; then :
14464 withval=$with_interactive_spellcheck;
14465 if test "x$withval" != "xno" ; then
14466 ISPELLPROG=$withval
14469 else
14471 # Extract the first word of "hunspell", so it can be a program name with args.
14472 set dummy hunspell; ac_word=$2
14473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14474 $as_echo_n "checking for $ac_word... " >&6; }
14475 if ${ac_cv_prog_ISPELLPROG+:} false; then :
14476 $as_echo_n "(cached) " >&6
14477 else
14478 if test -n "$ISPELLPROG"; then
14479 ac_cv_prog_ISPELLPROG="$ISPELLPROG" # Let the user override the test.
14480 else
14481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14482 for as_dir in $PATH
14484 IFS=$as_save_IFS
14485 test -z "$as_dir" && as_dir=.
14486 for ac_exec_ext in '' $ac_executable_extensions; do
14487 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14488 ac_cv_prog_ISPELLPROG="hunspell"
14489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14490 break 2
14492 done
14493 done
14494 IFS=$as_save_IFS
14498 ISPELLPROG=$ac_cv_prog_ISPELLPROG
14499 if test -n "$ISPELLPROG"; then
14500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ISPELLPROG" >&5
14501 $as_echo "$ISPELLPROG" >&6; }
14502 else
14503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14504 $as_echo "no" >&6; }
14508 if test -z "$ISPELLPROG" ; then
14509 # Extract the first word of "aspell", so it can be a program name with args.
14510 set dummy aspell; ac_word=$2
14511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14512 $as_echo_n "checking for $ac_word... " >&6; }
14513 if ${ac_cv_prog_ISPELLPROG+:} false; then :
14514 $as_echo_n "(cached) " >&6
14515 else
14516 if test -n "$ISPELLPROG"; then
14517 ac_cv_prog_ISPELLPROG="$ISPELLPROG" # Let the user override the test.
14518 else
14519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14520 for as_dir in $PATH
14522 IFS=$as_save_IFS
14523 test -z "$as_dir" && as_dir=.
14524 for ac_exec_ext in '' $ac_executable_extensions; do
14525 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14526 ac_cv_prog_ISPELLPROG="aspell"
14527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14528 break 2
14530 done
14531 done
14532 IFS=$as_save_IFS
14536 ISPELLPROG=$ac_cv_prog_ISPELLPROG
14537 if test -n "$ISPELLPROG"; then
14538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ISPELLPROG" >&5
14539 $as_echo "$ISPELLPROG" >&6; }
14540 else
14541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14542 $as_echo "no" >&6; }
14546 if test -z "$SPELLPROG" ; then
14547 ISPELLPROG="ispell"
14554 if test "x$ISPELLPROG" != "xno" ; then
14555 # Extract the first word of "$ISPELLPROG", so it can be a program name with args.
14556 set dummy $ISPELLPROG; ac_word=$2
14557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14558 $as_echo_n "checking for $ac_word... " >&6; }
14559 if ${ac_cv_path_alpine_interactive_spellcheck+:} false; then :
14560 $as_echo_n "(cached) " >&6
14561 else
14562 case $alpine_interactive_spellcheck in
14563 [\\/]* | ?:[\\/]*)
14564 ac_cv_path_alpine_interactive_spellcheck="$alpine_interactive_spellcheck" # Let the user override the test with a path.
14567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14568 for as_dir in $PATH
14570 IFS=$as_save_IFS
14571 test -z "$as_dir" && as_dir=.
14572 for ac_exec_ext in '' $ac_executable_extensions; do
14573 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14574 ac_cv_path_alpine_interactive_spellcheck="$as_dir/$ac_word$ac_exec_ext"
14575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14576 break 2
14578 done
14579 done
14580 IFS=$as_save_IFS
14583 esac
14585 alpine_interactive_spellcheck=$ac_cv_path_alpine_interactive_spellcheck
14586 if test -n "$alpine_interactive_spellcheck"; then
14587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $alpine_interactive_spellcheck" >&5
14588 $as_echo "$alpine_interactive_spellcheck" >&6; }
14589 else
14590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14591 $as_echo "no" >&6; }
14595 if test -n "$alpine_interactive_spellcheck" ; then
14596 case "$ISPELLPROG" in
14597 aspell)
14598 alpine_interactive_spellcheck="$alpine_interactive_spellcheck --dont-backup --mode=email check"
14602 esac
14606 if test -n "$alpine_interactive_spellcheck" ; then
14608 cat >>confdefs.h <<_ACEOF
14609 #define DF_VAR_SPELLER "$alpine_interactive_spellcheck"
14610 _ACEOF
14614 if test -z "$alpine_simple_spellcheck" -a -n "$alpine_interactive_spellcheck" ; then
14615 alpine_simple_spellcheck=test
14618 cat >>confdefs.h <<_ACEOF
14619 #define SPELLER "$alpine_simple_spellcheck"
14620 _ACEOF
14623 case "$prefix" in
14624 NONE) dpv=/usr/local/lib/pine.conf ;;
14625 *) dpv=${prefix}/lib/pine.conf ;;
14626 esac
14628 # Check whether --with-system-pinerc was given.
14629 if test "${with_system_pinerc+set}" = set; then :
14630 withval=$with_system_pinerc;
14631 case "$withval" in
14634 yes)
14637 dpv=$withval
14639 esac
14644 cat >>confdefs.h <<_ACEOF
14645 #define SYSTEM_PINERC "$dpv"
14646 _ACEOF
14649 case "$prefix" in
14650 NONE) dpv=/usr/local/lib/pine.conf.fixed ;;
14651 *) dpv=${prefix}/lib/pine.conf.fixed ;;
14652 esac
14654 # Check whether --with-system-fixed-pinerc was given.
14655 if test "${with_system_fixed_pinerc+set}" = set; then :
14656 withval=$with_system_fixed_pinerc;
14657 case "$withval" in
14660 yes)
14663 dpv=$withval
14665 esac
14670 cat >>confdefs.h <<_ACEOF
14671 #define SYSTEM_PINERC_FIXED "$dpv"
14672 _ACEOF
14675 case "$prefix" in
14676 NONE) dpv=/usr/local/lib/pine.info ;;
14677 *) dpv=${prefix}/lib/pine.info ;;
14678 esac
14680 # Check whether --with-local-support-info was given.
14681 if test "${with_local_support_info+set}" = set; then :
14682 withval=$with_local_support_info;
14683 case "$withval" in
14686 yes)
14689 dpv=$withval
14691 esac
14696 cat >>confdefs.h <<_ACEOF
14697 #define SYSTEM_PINE_INFO_PATH "$dpv"
14698 _ACEOF
14706 dpv=150
14708 # Check whether --with-mailcheck-interval was given.
14709 if test "${with_mailcheck_interval+set}" = set; then :
14710 withval=$with_mailcheck_interval;
14711 if test "x$withval" != "xno" ; then
14712 dpv=$withval
14718 cat >>confdefs.h <<_ACEOF
14719 #define DF_MAILCHECK "$dpv"
14720 _ACEOF
14724 dpv=420
14726 # Check whether --with-checkpoint-interval was given.
14727 if test "${with_checkpoint_interval+set}" = set; then :
14728 withval=$with_checkpoint_interval;
14729 if test "x$withval" != "xno" ; then
14730 dpv=$withval
14736 cat >>confdefs.h <<_ACEOF
14737 #define CHECK_POINT_TIME $dpv
14738 _ACEOF
14742 dpv=12
14744 # Check whether --with-checkpoint-frequency was given.
14745 if test "${with_checkpoint_frequency+set}" = set; then :
14746 withval=$with_checkpoint_frequency;
14747 if test "x$withval" != "xno" ; then
14748 dpv=$withval
14754 cat >>confdefs.h <<_ACEOF
14755 #define CHECK_POINT_FREQ $dpv
14756 _ACEOF
14760 dpv=24
14762 # Check whether --with-display-rows was given.
14763 if test "${with_display_rows+set}" = set; then :
14764 withval=$with_display_rows;
14765 if test "x$withval" != "xno" ; then
14766 dpv=$withval
14772 cat >>confdefs.h <<_ACEOF
14773 #define DEFAULT_LINES_ON_TERMINAL $dpv
14774 _ACEOF
14778 dpv=80
14780 # Check whether --with-display-columns was given.
14781 if test "${with_display_columns+set}" = set; then :
14782 withval=$with_display_columns;
14783 if test "x$withval" != "xno" ; then
14784 dpv=$withval
14790 cat >>confdefs.h <<_ACEOF
14791 #define DEFAULT_COLUMNS_ON_TERMINAL $dpv
14792 _ACEOF
14796 dpv=200
14798 # Check whether --with-max-display-rows was given.
14799 if test "${with_max_display_rows+set}" = set; then :
14800 withval=$with_max_display_rows;
14801 if test "x$withval" != "xno" ; then
14802 dpv=$withval
14808 cat >>confdefs.h <<_ACEOF
14809 #define MAX_SCREEN_ROWS $dpv
14810 _ACEOF
14814 dpv=500
14816 # Check whether --with-max-display-columns was given.
14817 if test "${with_max_display_columns+set}" = set; then :
14818 withval=$with_max_display_columns;
14819 if test "x$withval" != "xno" ; then
14820 dpv=$withval
14826 cat >>confdefs.h <<_ACEOF
14827 #define MAX_SCREEN_COLS $dpv
14828 _ACEOF
14832 dpv=74
14834 # Check whether --with-fill-column was given.
14835 if test "${with_fill_column+set}" = set; then :
14836 withval=$with_fill_column;
14837 if test "x$withval" != "xno" ; then
14838 dpv=$withval
14844 cat >>confdefs.h <<_ACEOF
14845 #define DF_FILLCOL "$dpv"
14846 _ACEOF
14850 dpv=80
14852 # Check whether --with-max_fill-column was given.
14853 if test "${with_max_fill_column+set}" = set; then :
14854 withval=$with_max_fill_column;
14855 if test "x$withval" != "xno" ; then
14856 dpv=$withval
14862 cat >>confdefs.h <<_ACEOF
14863 #define MAX_FILLCOL $dpv
14864 _ACEOF
14868 dpv=2
14870 # Check whether --with-debug-level was given.
14871 if test "${with_debug_level+set}" = set; then :
14872 withval=$with_debug_level;
14873 if test "x$withval" != "xno" ; then
14874 dpv=$withval
14880 cat >>confdefs.h <<_ACEOF
14881 #define DEFAULT_DEBUG $dpv
14882 _ACEOF
14886 dpv=4
14888 # Check whether --with-debug-files was given.
14889 if test "${with_debug_files+set}" = set; then :
14890 withval=$with_debug_files;
14891 if test "x$withval" != "xno" ; then
14892 dpv=$withval
14898 cat >>confdefs.h <<_ACEOF
14899 #define NUMDEBUGFILES $dpv
14900 _ACEOF
14904 dpv=.pine-debug
14906 # Check whether --with-debug-file was given.
14907 if test "${with_debug_file+set}" = set; then :
14908 withval=$with_debug_file;
14909 if test "x$withval" != "xno" ; then
14910 dpv=$withval
14916 cat >>confdefs.h <<_ACEOF
14917 #define DEBUGFILE "$dpv"
14918 _ACEOF
14922 dpv="\$Forwarded"
14924 # Check whether --with-forwarded-keyword was given.
14925 if test "${with_forwarded_keyword+set}" = set; then :
14926 withval=$with_forwarded_keyword;
14927 if test "x$withval" != "xno" ; then
14928 dpv=$withval
14934 cat >>confdefs.h <<_ACEOF
14935 #define FORWARDED_FLAG "$dpv"
14936 _ACEOF
14940 dpv=2
14942 # Check whether --with-display-overlap was given.
14943 if test "${with_display_overlap+set}" = set; then :
14944 withval=$with_display_overlap;
14945 if test "x$withval" != "xno" ; then
14946 dpv=$withval
14952 cat >>confdefs.h <<_ACEOF
14953 #define DF_OVERLAP "$dpv"
14954 _ACEOF
14958 dpv=0
14960 # Check whether --with-display-margin was given.
14961 if test "${with_display_margin+set}" = set; then :
14962 withval=$with_display_margin;
14963 if test "x$withval" != "xno" ; then
14964 dpv=$withval
14970 cat >>confdefs.h <<_ACEOF
14971 #define DF_MARGIN "$dpv"
14972 _ACEOF
14976 dpv=sent-mail
14978 # Check whether --with-default-fcc was given.
14979 if test "${with_default_fcc+set}" = set; then :
14980 withval=$with_default_fcc;
14981 if test "x$withval" != "xno" ; then
14982 dpv=$withval
14988 cat >>confdefs.h <<_ACEOF
14989 #define DF_DEFAULT_FCC "$dpv"
14990 _ACEOF
14994 dpv=saved-messages
14996 # Check whether --with-default-save-folder was given.
14997 if test "${with_default_save_folder+set}" = set; then :
14998 withval=$with_default_save_folder;
14999 if test "x$withval" != "xno" ; then
15000 dpv=$withval
15006 cat >>confdefs.h <<_ACEOF
15007 #define DEFAULT_SAVE "$dpv"
15008 _ACEOF
15012 dpv=postponed-mail
15014 # Check whether --with-default-legacy-postponed-folder was given.
15015 if test "${with_default_legacy_postponed_folder+set}" = set; then :
15016 withval=$with_default_legacy_postponed_folder;
15017 if test "x$withval" != "xno" ; then
15018 dpv=$withval
15024 cat >>confdefs.h <<_ACEOF
15025 #define POSTPONED_MAIL "$dpv"
15026 _ACEOF
15030 dpv=postponed-msgs
15032 # Check whether --with-default-postponed-folder was given.
15033 if test "${with_default_postponed_folder+set}" = set; then :
15034 withval=$with_default_postponed_folder;
15035 if test "x$withval" != "xno" ; then
15036 dpv=$withval
15042 cat >>confdefs.h <<_ACEOF
15043 #define POSTPONED_MSGS "$dpv"
15044 _ACEOF
15048 dpv=Trash
15050 # Check whether --with-default-trash-folder was given.
15051 if test "${with_default_trash_folder+set}" = set; then :
15052 withval=$with_default_trash_folder;
15053 if test "x$withval" != "xno" ; then
15054 dpv=$withval
15060 cat >>confdefs.h <<_ACEOF
15061 #define TRASH_FOLDER "$dpv"
15062 _ACEOF
15066 dpv=.pine-interrupted-mail
15068 # Check whether --with-default-interrupted-mail was given.
15069 if test "${with_default_interrupted_mail+set}" = set; then :
15070 withval=$with_default_interrupted_mail;
15071 if test "x$withval" != "xno" ; then
15072 dpv=$withval
15078 cat >>confdefs.h <<_ACEOF
15079 #define INTERRUPTED_MAIL "$dpv"
15080 _ACEOF
15084 dpv=dead.letter
15086 # Check whether --with-default-dead-letter-folder was given.
15087 if test "${with_default_dead_letter_folder+set}" = set; then :
15088 withval=$with_default_dead_letter_folder;
15089 if test "x$withval" != "xno" ; then
15090 dpv=$withval
15096 cat >>confdefs.h <<_ACEOF
15097 #define DEADLETTER "$dpv"
15098 _ACEOF
15102 dpv=mail
15104 # Check whether --with-default-mail-directory was given.
15105 if test "${with_default_mail_directory+set}" = set; then :
15106 withval=$with_default_mail_directory;
15107 if test "x$withval" != "xno" ; then
15108 dpv=$withval
15114 cat >>confdefs.h <<_ACEOF
15115 #define DF_MAIL_DIRECTORY "$dpv"
15116 _ACEOF
15120 dpv=INBOX
15122 # Check whether --with-default-inbox-name was given.
15123 if test "${with_default_inbox_name+set}" = set; then :
15124 withval=$with_default_inbox_name;
15125 if test "x$withval" != "xno" ; then
15126 dpv=$withval
15132 cat >>confdefs.h <<_ACEOF
15133 #define INBOX_NAME "$dpv"
15134 _ACEOF
15138 dpv=.signature
15140 # Check whether --with-default-signature-file was given.
15141 if test "${with_default_signature_file+set}" = set; then :
15142 withval=$with_default_signature_file;
15143 if test "x$withval" != "xno" ; then
15144 dpv=$withval
15150 cat >>confdefs.h <<_ACEOF
15151 #define DF_SIGNATURE_FILE "$dpv"
15152 _ACEOF
15156 dpv=no
15158 # Check whether --with-default-elm-style-save was given.
15159 if test "${with_default_elm_style_save+set}" = set; then :
15160 withval=$with_default_elm_style_save;
15161 if test "x$withval" != "xno" ; then
15162 dpv=$withval
15168 cat >>confdefs.h <<_ACEOF
15169 #define DF_ELM_STYLE_SAVE "$dpv"
15170 _ACEOF
15174 dpv=no
15176 # Check whether --with-default-header-in-reply was given.
15177 if test "${with_default_header_in_reply+set}" = set; then :
15178 withval=$with_default_header_in_reply;
15179 if test "x$withval" != "xno" ; then
15180 dpv=$withval
15186 cat >>confdefs.h <<_ACEOF
15187 #define DF_HEADER_IN_REPLY "$dpv"
15188 _ACEOF
15192 dpv=no
15194 # Check whether --with-default-old-style-reply was given.
15195 if test "${with_default_old_style_reply+set}" = set; then :
15196 withval=$with_default_old_style_reply;
15197 if test "x$withval" != "xno" ; then
15198 dpv=$withval
15204 cat >>confdefs.h <<_ACEOF
15205 #define DF_OLD_STYLE_REPLY "$dpv"
15206 _ACEOF
15210 dpv=no
15212 # Check whether --with-default-use-only-domain-name was given.
15213 if test "${with_default_use_only_domain_name+set}" = set; then :
15214 withval=$with_default_use_only_domain_name;
15215 if test "x$withval" != "xno" ; then
15216 dpv=$withval
15222 cat >>confdefs.h <<_ACEOF
15223 #define DF_USE_ONLY_DOMAIN_NAME "$dpv"
15224 _ACEOF
15228 dpv=no
15230 # Check whether --with-default-save-by-sender was given.
15231 if test "${with_default_save_by_sender+set}" = set; then :
15232 withval=$with_default_save_by_sender;
15233 if test "x$withval" != "xno" ; then
15234 dpv=$withval
15240 cat >>confdefs.h <<_ACEOF
15241 #define DF_SAVE_BY_SENDER "$dpv"
15242 _ACEOF
15246 dpv=arrival
15248 # Check whether --with-default-sort-key was given.
15249 if test "${with_default_sort_key+set}" = set; then :
15250 withval=$with_default_sort_key;
15251 if test "x$withval" != "xno" ; then
15252 dpv=$withval
15258 cat >>confdefs.h <<_ACEOF
15259 #define DF_SORT_KEY "$dpv"
15260 _ACEOF
15264 dpv=fullname-with-lists-last
15266 # Check whether --with-default-addressbook-sort-rule was given.
15267 if test "${with_default_addressbook_sort_rule+set}" = set; then :
15268 withval=$with_default_addressbook_sort_rule;
15269 if test "x$withval" != "xno" ; then
15270 dpv=$withval
15276 cat >>confdefs.h <<_ACEOF
15277 #define DF_AB_SORT_RULE "$dpv"
15278 _ACEOF
15282 dpv=alphabetical
15284 # Check whether --with-default-folder-sort-rule was given.
15285 if test "${with_default_folder_sort_rule+set}" = set; then :
15286 withval=$with_default_folder_sort_rule;
15287 if test "x$withval" != "xno" ; then
15288 dpv=$withval
15294 cat >>confdefs.h <<_ACEOF
15295 #define DF_FLD_SORT_RULE "$dpv"
15296 _ACEOF
15300 dpv=default-folder
15302 # Check whether --with-default-saved-message-name-rule was given.
15303 if test "${with_default_saved_message_name_rule+set}" = set; then :
15304 withval=$with_default_saved_message_name_rule;
15305 if test "x$withval" != "xno" ; then
15306 dpv=$withval
15312 cat >>confdefs.h <<_ACEOF
15313 #define DF_SAVED_MSG_NAME_RULE "$dpv"
15314 _ACEOF
15318 dpv=default-fcc
15320 # Check whether --with-default-fcc-rule was given.
15321 if test "${with_default_fcc_rule+set}" = set; then :
15322 withval=$with_default_fcc_rule;
15323 if test "x$withval" != "xno" ; then
15324 dpv=$withval
15330 cat >>confdefs.h <<_ACEOF
15331 #define DF_FCC_RULE "$dpv"
15332 _ACEOF
15336 dpv=lpr
15338 # Check whether --with-default-standard-printer was given.
15339 if test "${with_default_standard_printer+set}" = set; then :
15340 withval=$with_default_standard_printer;
15341 if test "x$withval" != "xno" ; then
15342 dpv=$withval
15348 cat >>confdefs.h <<_ACEOF
15349 #define DF_STANDARD_PRINTER "$dpv"
15350 _ACEOF
15354 dpv=attached-to-ansi
15356 # Check whether --with-default-ansi-printer was given.
15357 if test "${with_default_ansi_printer+set}" = set; then :
15358 withval=$with_default_ansi_printer;
15359 if test "x$withval" != "xno" ; then
15360 dpv=$withval
15366 cat >>confdefs.h <<_ACEOF
15367 #define ANSI_PRINTER "$dpv"
15368 _ACEOF
15372 dpv=.addressbook
15374 # Check whether --with-default-addressbook was given.
15375 if test "${with_default_addressbook+set}" = set; then :
15376 withval=$with_default_addressbook;
15377 if test "x$withval" != "xno" ; then
15378 dpv=$withval
15384 cat >>confdefs.h <<_ACEOF
15385 #define DF_ADDRESSBOOK "$dpv"
15386 _ACEOF
15390 dpv="Local Support"
15392 # Check whether --with-default-local-fullname was given.
15393 if test "${with_default_local_fullname+set}" = set; then :
15394 withval=$with_default_local_fullname;
15395 if test "x$withval" != "xno" ; then
15396 dpv=$withval
15402 cat >>confdefs.h <<_ACEOF
15403 #define DF_LOCAL_FULLNAME "$dpv"
15404 _ACEOF
15408 dpv=postmaster
15410 # Check whether --with-default-local-address was given.
15411 if test "${with_default_local_address+set}" = set; then :
15412 withval=$with_default_local_address;
15413 if test "x$withval" != "xno" ; then
15414 dpv=$withval
15420 cat >>confdefs.h <<_ACEOF
15421 #define DF_LOCAL_ADDRESS "$dpv"
15422 _ACEOF
15426 dpv=1
15428 # Check whether --with-default-keyboard-lock-count was given.
15429 if test "${with_default_keyboard_lock_count+set}" = set; then :
15430 withval=$with_default_keyboard_lock_count;
15431 if test "x$withval" != "xno" ; then
15432 dpv=$withval
15438 cat >>confdefs.h <<_ACEOF
15439 #define DF_KBLOCK_PASSWD_COUNT "$dpv"
15440 _ACEOF
15444 dpv=3
15446 # Check whether --with-default-remote-addressbook-history was given.
15447 if test "${with_default_remote_addressbook_history+set}" = set; then :
15448 withval=$with_default_remote_addressbook_history;
15449 if test "x$withval" != "xno" ; then
15450 dpv=$withval
15456 cat >>confdefs.h <<_ACEOF
15457 #define DF_REMOTE_ABOOK_HISTORY "$dpv"
15458 _ACEOF
15462 dpv=.alpine-smime/public
15464 # Check whether --with-smime-public-cert-directory was given.
15465 if test "${with_smime_public_cert_directory+set}" = set; then :
15466 withval=$with_smime_public_cert_directory;
15467 if test "x$withval" != "xno" ; then
15468 dpv=$withval
15474 cat >>confdefs.h <<_ACEOF
15475 #define DF_PUBLICCERT_DIR "$dpv"
15476 _ACEOF
15480 dpv=.alpine-smime/private
15482 # Check whether --with-smime-private-key-directory was given.
15483 if test "${with_smime_private_key_directory+set}" = set; then :
15484 withval=$with_smime_private_key_directory;
15485 if test "x$withval" != "xno" ; then
15486 dpv=$withval
15492 cat >>confdefs.h <<_ACEOF
15493 #define DF_PRIVATEKEY_DIR "$dpv"
15494 _ACEOF
15498 dpv=.alpine-smime/ca
15500 # Check whether --with-smime-cacert-directory was given.
15501 if test "${with_smime_cacert_directory+set}" = set; then :
15502 withval=$with_smime_cacert_directory;
15503 if test "x$withval" != "xno" ; then
15504 dpv=$withval
15510 cat >>confdefs.h <<_ACEOF
15511 #define DF_CACERT_DIR "$dpv"
15512 _ACEOF
15516 dpv=ANSI_PRINTER
15518 # Check whether --with-default-printer was given.
15519 if test "${with_default_printer+set}" = set; then :
15520 withval=$with_default_printer;
15521 if test "x$withval" != "xno" ; then
15522 dpv=$withval
15528 cat >>confdefs.h <<_ACEOF
15529 #define DF_DEFAULT_PRINTER $dpv
15530 _ACEOF
15535 # Check whether --with-passfile was given.
15536 if test "${with_passfile+set}" = set; then :
15537 withval=$with_passfile;
15538 case "$withval" in
15541 yes)
15544 alpine_PASSFILE=$withval
15546 esac
15552 # Check whether --with-local-password-cache was given.
15553 if test "${with_local_password_cache+set}" = set; then :
15554 withval=$with_local_password_cache;
15555 alpine_os_credential_cache=$withval
15561 # Check whether --with-local-password-cache-method was given.
15562 if test "${with_local_password_cache_method+set}" = set; then :
15563 withval=$with_local_password_cache_method;
15564 alpine_os_credential_cache_method=$withval
15569 if test -n "$alpine_PASSFILE" ; then
15570 case $alpine_os_credential_cache in
15574 alpine_os_credential_cache="no"
15575 { $as_echo "$as_me:${as_lineno-$LINENO}: --with-passfile definition overrides OS-Specific password caching" >&5
15576 $as_echo "$as_me: --with-passfile definition overrides OS-Specific password caching" >&6;}
15578 esac
15580 cat >>confdefs.h <<_ACEOF
15581 #define PASSFILE "$alpine_PASSFILE"
15582 _ACEOF
15587 # Check whether --with-default-sshpath was given.
15588 if test "${with_default_sshpath+set}" = set; then :
15589 withval=$with_default_sshpath;
15590 case "$withval" in
15593 yes)
15597 cat >>confdefs.h <<_ACEOF
15598 #define DF_SSHPATH "$withval"
15599 _ACEOF
15602 esac
15608 # Check whether --with-default-sshcmd was given.
15609 if test "${with_default_sshcmd+set}" = set; then :
15610 withval=$with_default_sshcmd;
15611 case "$withval" in
15614 yes)
15618 cat >>confdefs.h <<_ACEOF
15619 #define DF_SSHCMD "$withval"
15620 _ACEOF
15623 esac
15629 # Check whether --with-ssl was given.
15630 if test "${with_ssl+set}" = set; then :
15631 withval=$with_ssl; with_ssl=$withval
15635 if test "x$with_ssl" = "xno" ; then
15636 alpine_SSLTYPE="none"
15637 else
15638 case $host in
15639 *-linux-gnu*)
15640 if test -f /etc/fedora-release -o -f /etc/redhat-release -o -f /etc/redhat_version ; then
15641 alpine_SSLTYPE="nopwd"
15642 if test -d /etc/pki/tls ; then
15643 alpine_SSLDIR="/etc/pki/tls"
15644 else
15645 alpine_SSLDIR="/usr/share/ssl"
15647 alpine_SSLCERTS="$alpine_SSLDIR/certs"
15648 alpine_SSLKEYS="$alpine_SSLDIR/private"
15649 alpine_SSLINCLUDE="/usr/include/openssl"
15650 alpine_SSLLIB="/usr/lib"
15651 elif test -f /etc/mandrake-release ; then
15652 alpine_SSLDIR="/usr/lib/ssl"
15653 alpine_SSLCERTS="$alpine_SSLDIR/certs"
15654 alpine_SSLKEYS="$alpine_SSLDIR/private"
15655 alpine_SSLINCLUDE="/usr/include/openssl"
15656 alpine_SSLLIB="/usr/lib"
15657 elif test -f /etc/SuSE-release ; then
15658 alpine_SSLTYPE="nopwd"
15659 alpine_SSLDIR="/etc/ssl"
15660 alpine_SSLCERTS="$alpine_SSLDIR/certs"
15661 alpine_SSLKEYS="$alpine_SSLDIR/private"
15662 alpine_SSLINCLUDE="/usr/include/openssl"
15663 alpine_SSLLIB="/usr/lib"
15664 elif test -d /etc/osso-af-init ; then
15665 alpine_SSLTYPE="nopwd"
15666 alpine_SSLDIR="/usr"
15667 alpine_SSLCERTS="/usr/share/certs"
15668 alpine_SSLINCLUDE="/usr/include/openssl"
15669 alpine_SSLLIB="/usr/lib"
15670 elif test -f /etc/debian_release -o -f /etc/debian_version ; then
15671 if test ! -d /etc/osso-af-init ; then
15672 alpine_SSLDIR="/etc/ssl"
15673 alpine_SSLCERTS="$alpine_SSLDIR/certs"
15674 alpine_SSLKEYS="$alpine_SSLDIR/private"
15675 alpine_SSLINCLUDE="/usr/include/openssl"
15676 alpine_SSLLIB="/usr/lib"
15678 else
15679 alpine_SSLTYPE="nopwd"
15680 alpine_SSLDIR="/usr"
15681 alpine_SSLCERTS="/etc/ssl/certs"
15684 *-apple-darwin*)
15685 alpine_SSLTYPE="nopwd"
15686 alpine_SSLCERTS_ORIG="/System/Library/OpenSSL/certs"
15687 if test -d /usr/local/opt/openssl ; then
15688 alpine_SSLDIR="/usr/local/opt/openssl"
15689 alpine_SSLINCLUDE="$alpine_SSLDIR/include"
15690 alpine_SSLLIB="$alpine_SSLDIR/lib"
15691 alpine_SSLCERTS="$alpine_SSLDIR/certs"
15692 alpine_SSLKEYS="$alpine_SSLDIR/private"
15693 elif test -d /opt/local/etc/openssl ; then
15694 alpine_SSLDIR="/opt/local"
15695 alpine_SSLINCLUDE="$alpine_SSLDIR/include"
15696 alpine_SSLLIB="$alpine_SSLDIR/lib"
15697 alpine_SSLCERTS="/opt/local/etc/openssl/certs"
15698 alpine_SSLKEYS="/opt/local/etc/openssl/private"
15699 elif test -d /sw/etc/ssl ; then
15700 alpine_SSLDIR="/sw/etc/ssl"
15701 alpine_SSLINCLUDE="/sw/include"
15702 alpine_SSLLIB="/sw/lib"
15703 alpine_SSLCERTS="/sw/etc/ssl/certs"
15704 alpine_SSLKEYS="/sw/etc/ssl/private"
15705 elif test -d /System/Library/OpenSSL ; then
15706 alpine_SSLDIR="/System/Library/OpenSSL"
15707 alpine_SSLCERTS="$alpine_SSLDIR/certs"
15708 alpine_SSLKEYS="$alpine_SSLDIR/private"
15709 alpine_SSLLIB="/usr/lib"
15710 alpine_SSLINCLUDE="/usr/include/openssl"
15713 *-*-netbsd*)
15714 alpine_SSLDIR="/etc/openssl"
15715 alpine_SSLCERTS="$alpine_SSLDIR/certs"
15716 alpine_SSLKEYS="$alpine_SSLDIR/private"
15717 alpine_SSLINCLUDE="/usr/include/openssl"
15718 alpine_SSLLIB="/usr/lib"
15720 *-*-dragonfly*)
15721 alpine_SSLDIR="/etc/openssl"
15722 alpine_SSLCERTS="$alpine_SSLDIR/certs"
15723 alpine_SSLKEYS="$alpine_SSLDIR/private"
15724 alpine_SSLINCLUDE="/usr/include/openssl"
15725 alpine_SSLLIB="/usr/lib"
15727 *-openbsd*)
15728 alpine_SSLTYPE="nopwd"
15729 alpine_SSLDIR="/usr"
15730 alpine_SSLCERTS="/etc/ssl/certs"
15732 *-*-freebsd*)
15733 alpine_SSLDIR="/etc/ssl"
15734 alpine_SSLCERTS="$alpine_SSLDIR/certs"
15735 alpine_SSLKEYS="$alpine_SSLDIR/private"
15736 alpine_SSLINCLUDE="/usr/include/openssl"
15737 alpine_SSLLIB="/usr/lib"
15739 *-*-openbsd*)
15740 alpine_SSLDIR="/etc/ssl"
15741 alpine_SSLINCLUDE="/usr/include/openssl"
15742 alpine_SSLLIB="/usr/lib"
15743 alpine_SSLCERTS="/etc/ssl"
15744 alpine_SSLKEYS="/etc/ssl/private"
15746 *-*-cygwin)
15747 alpine_SSLDIR="/usr/ssl"
15748 alpine_SSLCERTS="$alpine_SSLDIR/certs"
15749 alpine_SSLKEYS="$alpine_SSLDIR/certs"
15750 alpine_SSLINCLUDE="/usr/include/openssl"
15751 alpine_SSLLIB="/usr/lib"
15753 *-sco-sysv* | *-sysv*UnixWare | *-sysv*OpenUNIX)
15754 alpine_SSLTYPE="sco.nopwd"
15755 alpine_SSLDIR="/usr/local/ssl"
15757 *-*-solaris*)
15758 if test -d /usr/sfw/include/openssl ; then
15759 alpine_SSLDIR="/usr/sfw"
15760 elif test -d /opt/csw/include/openssl ; then
15761 alpine_SSLDIR="/opt/csw"
15762 if test -d /opt/csw/ssl/certs ; then
15763 alpine_SSLCERTS="/opt/csw/ssl/certs"
15766 if test -z "$alpine_SSLCERTS" -a -d /etc/certs ; then
15767 alpine_SSLCERTS="/etc/certs"
15771 alpine_SSLTYPE="nopwd"
15772 alpine_SSLDIR="/usr/local/ssl"
15774 esac
15777 # Check whether --with-ssl-dir was given.
15778 if test "${with_ssl_dir+set}" = set; then :
15779 withval=$with_ssl_dir;
15780 if test "x$withval" != "xno" ; then
15781 alpine_SSLDIR=$withval
15782 alpine_SSLINCLUDE=$alpine_SSLDIR/include
15783 alpine_SSLLIB=$alpine_SSLDIR/lib
15790 # Check whether --with-ssl-certs-dir was given.
15791 if test "${with_ssl_certs_dir+set}" = set; then :
15792 withval=$with_ssl_certs_dir;
15793 if test "x$withval" != "xno" ; then
15794 alpine_SSLCERTS=$withval
15801 # Check whether --with-ssl-include-dir was given.
15802 if test "${with_ssl_include_dir+set}" = set; then :
15803 withval=$with_ssl_include_dir;
15804 if test "x$withval" != "xno" ; then
15805 alpine_SSLINCLUDE=$withval
15812 # Check whether --with-ssl-lib-dir was given.
15813 if test "${with_ssl_lib_dir+set}" = set; then :
15814 withval=$with_ssl_lib_dir;
15815 if test "x$withval" != "xno" ; then
15816 alpine_SSLLIB=$withval
15821 if test -n "$alpine_SSLINCLUDE" ; then
15822 CPPFLAGS="-I$alpine_SSLINCLUDE $CPPFLAGS"
15823 elif test -n "$alpine_SSLDIR" ; then
15824 CPPFLAGS="-I${alpine_SSLDIR}/include $CPPFLAGS"
15826 if test -n "$alpine_SSLLIB" ; then
15827 LDFLAGS="-L$alpine_SSLLIB $LDFLAGS"
15828 elif test -n "$alpine_SSLDIR" ; then
15829 LDFLAGS="-L${alpine_SSLDIR}/lib $LDFLAGS"
15834 # Check whether --with-krb5 was given.
15835 if test "${with_krb5+set}" = set; then :
15836 withval=$with_krb5; with_krb5=$withval
15840 if test "x$with_krb5" = "xno" ; then
15841 alpine_GSSTYPE="none"
15842 else
15843 alpine_GSSTYPE=
15846 # Check whether --with-krb5-dir was given.
15847 if test "${with_krb5_dir+set}" = set; then :
15848 withval=$with_krb5_dir;
15849 if test "x$withval" != "xno" ; then
15850 CPPFLAGS="$CPPFLAGS -I${withval}/include"
15851 LDFLAGS="$LDFLAGS -L${withval}/lib"
15858 # Check whether --with-krb5-include-dir was given.
15859 if test "${with_krb5_include_dir+set}" = set; then :
15860 withval=$with_krb5_include_dir;
15861 if test "x$withval" != "xno" ; then
15862 CPPFLAGS="$CPPFLAGS -I$withval"
15869 # Check whether --with-krb5-lib-dir was given.
15870 if test "${with_krb5_lib_dir+set}" = set; then :
15871 withval=$with_krb5_lib_dir;
15872 if test "x$withval" != "xno" ; then
15873 LDFLAGS="$LDFLAGS -L$withval"
15881 # Check whether --with-ldap was given.
15882 if test "${with_ldap+set}" = set; then :
15883 withval=$with_ldap; with_ldap=$withval
15887 if test "x$with_ldap" = "xno" ; then
15888 alpine_with_ldap=
15889 { $as_echo "$as_me:${as_lineno-$LINENO}: Excluding LDAP Support" >&5
15890 $as_echo "$as_me: Excluding LDAP Support" >&6;}
15891 else
15893 alpine_with_ldap=yes
15895 # Check whether --with-ldap-dir was given.
15896 if test "${with_ldap_dir+set}" = set; then :
15897 withval=$with_ldap_dir;
15898 if test "x$withval" != "xno" ; then
15899 CPPFLAGS="$CPPFLAGS -I${withval}/include"
15900 LDFLAGS="$LDFLAGS -L${withval}/lib"
15907 # Check whether --with-ldap-include-dir was given.
15908 if test "${with_ldap_include_dir+set}" = set; then :
15909 withval=$with_ldap_include_dir;
15910 if test "x$withval" != "xno" ; then
15911 CPPFLAGS="$CPPFLAGS -I$withval"
15918 # Check whether --with-ldap-lib-dir was given.
15919 if test "${with_ldap_lib_dir+set}" = set; then :
15920 withval=$with_ldap_lib_dir;
15921 if test "x$withval" != "xno" ; then
15922 LDFLAGS="$LDFLAGS -L$withval"
15930 # Check whether --with-smime was given.
15931 if test "${with_smime+set}" = set; then :
15932 withval=$with_smime; with_smime=$withval
15937 # Check whether --with-tcl was given.
15938 if test "${with_tcl+set}" = set; then :
15939 withval=$with_tcl; with_tcl=$withval
15943 if test "x$with_tcl" = "xno" ; then
15944 WEB_BUILD=
15945 { $as_echo "$as_me:${as_lineno-$LINENO}: Excluding TCL Support, and thus Web Alpine Support" >&5
15946 $as_echo "$as_me: Excluding TCL Support, and thus Web Alpine Support" >&6;}
15947 else
15949 # Check whether --with-tcl-lib was given.
15950 if test "${with_tcl_lib+set}" = set; then :
15951 withval=$with_tcl_lib;
15952 if test "x$withval" != "xno" ; then
15953 alpine_TCLLIB=$withval
15959 # Check whether --with-tcl-include was given.
15960 if test "${with_tcl_include+set}" = set; then :
15961 withval=$with_tcl_include;
15962 if test "x$withval" != "xno" ; then
15963 CPPFLAGS="$CPPFLAGS -I$withval"
15964 alpine_TCLINC=$withval
15972 # Check whether --with-supplied-regex was given.
15973 if test "${with_supplied_regex+set}" = set; then :
15974 withval=$with_supplied_regex; alpine_REGEX=$withval
15979 # Check whether --with-pthread was given.
15980 if test "${with_pthread+set}" = set; then :
15981 withval=$with_pthread; with_pthread=$withval
15986 # Check whether --with-system-mail-directory was given.
15987 if test "${with_system_mail_directory+set}" = set; then :
15988 withval=$with_system_mail_directory;
15989 if test "x$withval" != "xno" ; then
15990 alpine_with_local_maildir="$withval"
15997 # Check whether --with-c-client-target was given.
15998 if test "${with_c_client_target+set}" = set; then :
15999 withval=$with_c_client_target;
16000 if test "x$withval" != "xno" ;then
16001 alpine_with_c_client_target="$withval"
16008 alpine_PAM="none"
16010 case "$host" in
16011 *-linux-gnu*|*-k*bsd*-gnu*)
16012 alpine_path_delim="/"
16013 alpine_mode_readonly="(0600)"
16014 if test -f /etc/fedora-release ; then
16015 systype="LFD"
16016 alpine_PAM="yes"
16017 if test -d /etc/pki/tls ; then
16018 alpine_c_client_target="lfd"
16019 else
16020 alpine_c_client_target="lrh"
16022 elif test -f /etc/mandrake-release ; then
16023 systype="LMD"
16024 alpine_c_client_target="lmd"
16025 alpine_PAM="yes"
16026 elif test -f /etc/redhat-release -o -f /etc/redhat_version ; then
16027 systype="LRH"
16028 alpine_PAM="yes"
16029 if test -d /etc/pki/tls ; then
16030 alpine_c_client_target="lr5"
16031 else
16032 alpine_c_client_target="lrh"
16034 elif test -f /etc/debian_release -o -f /etc/debian_version ; then
16035 if test -d /etc/osso-af-init ; then
16036 systype="LN8"
16037 alpine_c_client_target="ln8"
16038 else
16039 systype="DEB"
16040 alpine_c_client_target="ldb"
16041 alpine_PAM="yes"
16043 elif test -f /etc/SuSE-release ; then
16044 systype="LSU"
16045 alpine_c_client_target="lsu"
16046 alpine_PAM="yes"
16047 else
16048 systype="LNX"
16049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
16050 $as_echo_n "checking for pam_start in -lpam... " >&6; }
16051 if ${ac_cv_lib_pam_pam_start+:} false; then :
16052 $as_echo_n "(cached) " >&6
16053 else
16054 ac_check_lib_save_LIBS=$LIBS
16055 LIBS="-lpam $LIBS"
16056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16057 /* end confdefs.h. */
16059 /* Override any GCC internal prototype to avoid an error.
16060 Use char because int might match the return type of a GCC
16061 builtin and then its argument prototype would still apply. */
16062 #ifdef __cplusplus
16063 extern "C"
16064 #endif
16065 char pam_start ();
16067 main ()
16069 return pam_start ();
16071 return 0;
16073 _ACEOF
16074 if ac_fn_c_try_link "$LINENO"; then :
16075 ac_cv_lib_pam_pam_start=yes
16076 else
16077 ac_cv_lib_pam_pam_start=no
16079 rm -f core conftest.err conftest.$ac_objext \
16080 conftest$ac_exeext conftest.$ac_ext
16081 LIBS=$ac_check_lib_save_LIBS
16083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5
16084 $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
16085 if test "x$ac_cv_lib_pam_pam_start" = xyes; then :
16087 alpine_c_client_target="lnp"
16088 alpine_PAM="yes"
16090 else
16092 if test -f /etc/shadow ; then
16093 alpine_c_client_target="slx"
16094 else
16095 alpine_c_client_target="lnx"
16102 *-apple-darwin*)
16103 systype="OSX"
16104 alpine_path_delim="/"
16105 alpine_mode_readonly="(0600)"
16106 LIBS="$LIBS -framework Carbon -framework ApplicationServices -framework Security"
16107 AM_CFLAGS="$AM_CFLAGS -Dbsd"
16109 $as_echo "#define OSX_TARGET 1" >>confdefs.h
16111 case "$alpine_os_credential_cache" in
16116 $as_echo "#define APPLEKEYCHAIN 1" >>confdefs.h
16119 esac
16120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
16121 $as_echo_n "checking for pam_start in -lpam... " >&6; }
16122 if ${ac_cv_lib_pam_pam_start+:} false; then :
16123 $as_echo_n "(cached) " >&6
16124 else
16125 ac_check_lib_save_LIBS=$LIBS
16126 LIBS="-lpam $LIBS"
16127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16128 /* end confdefs.h. */
16130 /* Override any GCC internal prototype to avoid an error.
16131 Use char because int might match the return type of a GCC
16132 builtin and then its argument prototype would still apply. */
16133 #ifdef __cplusplus
16134 extern "C"
16135 #endif
16136 char pam_start ();
16138 main ()
16140 return pam_start ();
16142 return 0;
16144 _ACEOF
16145 if ac_fn_c_try_link "$LINENO"; then :
16146 ac_cv_lib_pam_pam_start=yes
16147 else
16148 ac_cv_lib_pam_pam_start=no
16150 rm -f core conftest.err conftest.$ac_objext \
16151 conftest$ac_exeext conftest.$ac_ext
16152 LIBS=$ac_check_lib_save_LIBS
16154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5
16155 $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
16156 if test "x$ac_cv_lib_pam_pam_start" = xyes; then :
16158 ac_fn_c_check_header_mongrel "$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default"
16159 if test "x$ac_cv_header_security_pam_appl_h" = xyes; then :
16161 alpine_PAM="yes"
16162 alpine_c_client_target="oxs"
16164 else
16165 ac_fn_c_check_header_mongrel "$LINENO" "pam/pam_appl.h" "ac_cv_header_pam_pam_appl_h" "$ac_includes_default"
16166 if test "x$ac_cv_header_pam_pam_appl_h" = xyes; then :
16168 alpine_PAM="yes"
16169 alpine_c_client_target="oxp"
16171 else
16173 alpine_PAM="none"
16174 alpine_pam_none_reason="header files not found"
16184 else
16186 alpine_c_client_target="osx"
16191 *-*-solaris*)
16192 if test x$GCC = "xyes" ; then
16193 systype="GSO"
16194 alpine_c_client_target="gso"
16195 else
16196 systype="SOC"
16197 alpine_c_client_target="soc"
16199 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
16202 alpine_path_delim="/"
16203 alpine_mode_readonly="(0600)"
16205 *-*-sunos4*)
16206 systype="SUN"
16207 alpine_path_delim="/"
16208 alpine_mode_readonly="(0600)"
16209 alpine_c_client_target="s40"
16211 *-*-sco3.2v5*)
16212 if test x$GCC = "xyes" ; then
16213 systype="GO5"
16214 alpine_c_client_target="go5"
16215 else
16216 systype="SC5"
16217 alpine_c_client_target="sc5"
16219 alpine_path_delim="/"
16220 alpine_mode_readonly="(0600)"
16222 *-next-*)
16223 systype="NXT"
16224 alpine_path_delim="/"
16225 alpine_mode_readonly="(0600)"
16226 alpine_c_client_target="nx3"
16228 *-*-netbsd*)
16229 systype="NEB"
16230 alpine_path_delim="/"
16231 alpine_mode_readonly="(0600)"
16232 alpine_c_client_target="neb"
16234 *-*-dragonfly*)
16235 systype="DFB"
16236 alpine_path_delim="/"
16237 alpine_mode_readonly="(0600)"
16238 alpine_c_client_target="neb"
16240 *-*-bsdi*)
16241 systype="BSI"
16242 alpine_path_delim="/"
16243 alpine_mode_readonly="(0600)"
16244 alpine_c_client_target="bsi"
16246 *-*-freebsd*)
16247 systype="BSF"
16248 alpine_path_delim="/"
16249 alpine_mode_readonly="(0600)"
16250 alpine_c_client_target="bsf"
16251 LIBS="$LIBS $LIBINTL"
16253 *-*-openbsd*)
16254 systype="BSO"
16255 alpine_path_delim="/"
16256 alpine_mode_readonly="(0600)"
16257 alpine_c_client_target="bso"
16258 LIBS="$LIBS $LIBINTL"
16260 *-*-aix5*)
16261 systype="A52"
16262 alpine_path_delim="/"
16263 alpine_mode_readonly="(0600)"
16264 alpine_c_client_target="a52"
16266 *-*-aix4*)
16267 systype="A41"
16268 alpine_path_delim="/"
16269 alpine_mode_readonly="(0600)"
16270 alpine_c_client_target="a41"
16272 *-*-aix3*)
16273 systype="A32"
16274 alpine_path_delim="/"
16275 alpine_mode_readonly="(0600)"
16276 alpine_c_client_target="a32"
16278 *-*UNIX_SV | *-*-sysv5UnixWare7* | *-*OpenUNIX*)
16279 systype="UW2"
16280 alpine_path_delim="/"
16281 alpine_mode_readonly="(0600)"
16282 alpine_c_client_target="uw2"
16284 *-*-osf5*)
16285 systype="OSF"
16286 alpine_path_delim="/"
16287 alpine_mode_readonly="(0600)"
16288 alpine_c_client_target="osf"
16290 *-*-cygwin)
16291 systype="CYG"
16292 alpine_path_delim="/"
16293 alpine_mode_readonly="(S_IREAD | S_IWRITE)"
16294 alpine_c_client_target="cyg"
16295 LIBS="$LIBS $LIBINTL"
16297 windows* | *-*-pw32*)
16298 systype="WNT"
16299 alpine_path_delim="\\"
16300 alpine_mode_readonly="(S_IREAD | S_IWRITE)"
16301 alpine_c_client_target="wnt"
16303 $as_echo "#define _WINDOWS 1" >>confdefs.h
16307 as_fn_error $? "Unrecognized system: $host" "$LINENO" 5
16309 esac
16312 # Check whether --with-ipv6 was given.
16313 if test "${with_ipv6+set}" = set; then :
16314 withval=$with_ipv6; with_ipv6=$withval
16318 if test "x$with_ipv6" = "xno" ; then
16319 { $as_echo "$as_me:${as_lineno-$LINENO}: Excluding IPv6 Support" >&5
16320 $as_echo "$as_me: Excluding IPv6 Support" >&6;}
16321 c_client_specials="${c_client_specials}IP6=4 "
16322 c_client_ip6="true"
16323 else
16324 c_client_ip6="touch imap/ip6"
16329 if test x$enable_dmalloc = "xyes" ; then
16330 if test "x$with_pthread" = "xyes" ; then
16331 dmalloc_lib=dmallocth
16332 else
16333 dmalloc_lib=dmalloc
16336 as_ac_Lib=`$as_echo "ac_cv_lib_$dmalloc_lib''_dmalloc_shutdown" | $as_tr_sh`
16337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dmalloc_shutdown in -l$dmalloc_lib" >&5
16338 $as_echo_n "checking for dmalloc_shutdown in -l$dmalloc_lib... " >&6; }
16339 if eval \${$as_ac_Lib+:} false; then :
16340 $as_echo_n "(cached) " >&6
16341 else
16342 ac_check_lib_save_LIBS=$LIBS
16343 LIBS="-l$dmalloc_lib $LIBS"
16344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16345 /* end confdefs.h. */
16347 /* Override any GCC internal prototype to avoid an error.
16348 Use char because int might match the return type of a GCC
16349 builtin and then its argument prototype would still apply. */
16350 #ifdef __cplusplus
16351 extern "C"
16352 #endif
16353 char dmalloc_shutdown ();
16355 main ()
16357 return dmalloc_shutdown ();
16359 return 0;
16361 _ACEOF
16362 if ac_fn_c_try_link "$LINENO"; then :
16363 eval "$as_ac_Lib=yes"
16364 else
16365 eval "$as_ac_Lib=no"
16367 rm -f core conftest.err conftest.$ac_objext \
16368 conftest$ac_exeext conftest.$ac_ext
16369 LIBS=$ac_check_lib_save_LIBS
16371 eval ac_res=\$$as_ac_Lib
16372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16373 $as_echo "$ac_res" >&6; }
16374 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
16375 cat >>confdefs.h <<_ACEOF
16376 #define `$as_echo "HAVE_LIB$dmalloc_lib" | $as_tr_cpp` 1
16377 _ACEOF
16379 LIBS="-l$dmalloc_lib $LIBS"
16381 else
16383 as_fn_error but -ldmalloc not found "$dmalloc_lib requested" "$LINENO" 5
16389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setupterm in -ltinfo" >&5
16390 $as_echo_n "checking for setupterm in -ltinfo... " >&6; }
16391 if ${ac_cv_lib_tinfo_setupterm+:} false; then :
16392 $as_echo_n "(cached) " >&6
16393 else
16394 ac_check_lib_save_LIBS=$LIBS
16395 LIBS="-ltinfo $LIBS"
16396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16397 /* end confdefs.h. */
16399 /* Override any GCC internal prototype to avoid an error.
16400 Use char because int might match the return type of a GCC
16401 builtin and then its argument prototype would still apply. */
16402 #ifdef __cplusplus
16403 extern "C"
16404 #endif
16405 char setupterm ();
16407 main ()
16409 return setupterm ();
16411 return 0;
16413 _ACEOF
16414 if ac_fn_c_try_link "$LINENO"; then :
16415 ac_cv_lib_tinfo_setupterm=yes
16416 else
16417 ac_cv_lib_tinfo_setupterm=no
16419 rm -f core conftest.err conftest.$ac_objext \
16420 conftest$ac_exeext conftest.$ac_ext
16421 LIBS=$ac_check_lib_save_LIBS
16423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_setupterm" >&5
16424 $as_echo "$ac_cv_lib_tinfo_setupterm" >&6; }
16425 if test "x$ac_cv_lib_tinfo_setupterm" = xyes; then :
16427 alpine_termdata=info
16428 LIBS="$LIBS -ltinfo"
16430 else
16432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setupterm in -lncurses" >&5
16433 $as_echo_n "checking for setupterm in -lncurses... " >&6; }
16434 if ${ac_cv_lib_ncurses_setupterm+:} false; then :
16435 $as_echo_n "(cached) " >&6
16436 else
16437 ac_check_lib_save_LIBS=$LIBS
16438 LIBS="-lncurses $LIBS"
16439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16440 /* end confdefs.h. */
16442 /* Override any GCC internal prototype to avoid an error.
16443 Use char because int might match the return type of a GCC
16444 builtin and then its argument prototype would still apply. */
16445 #ifdef __cplusplus
16446 extern "C"
16447 #endif
16448 char setupterm ();
16450 main ()
16452 return setupterm ();
16454 return 0;
16456 _ACEOF
16457 if ac_fn_c_try_link "$LINENO"; then :
16458 ac_cv_lib_ncurses_setupterm=yes
16459 else
16460 ac_cv_lib_ncurses_setupterm=no
16462 rm -f core conftest.err conftest.$ac_objext \
16463 conftest$ac_exeext conftest.$ac_ext
16464 LIBS=$ac_check_lib_save_LIBS
16466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_setupterm" >&5
16467 $as_echo "$ac_cv_lib_ncurses_setupterm" >&6; }
16468 if test "x$ac_cv_lib_ncurses_setupterm" = xyes; then :
16470 alpine_termdata=info
16471 LIBS="$LIBS -lncurses"
16473 else
16475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setupterm in -lcurses" >&5
16476 $as_echo_n "checking for setupterm in -lcurses... " >&6; }
16477 if ${ac_cv_lib_curses_setupterm+:} false; then :
16478 $as_echo_n "(cached) " >&6
16479 else
16480 ac_check_lib_save_LIBS=$LIBS
16481 LIBS="-lcurses $LIBS"
16482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16483 /* end confdefs.h. */
16485 /* Override any GCC internal prototype to avoid an error.
16486 Use char because int might match the return type of a GCC
16487 builtin and then its argument prototype would still apply. */
16488 #ifdef __cplusplus
16489 extern "C"
16490 #endif
16491 char setupterm ();
16493 main ()
16495 return setupterm ();
16497 return 0;
16499 _ACEOF
16500 if ac_fn_c_try_link "$LINENO"; then :
16501 ac_cv_lib_curses_setupterm=yes
16502 else
16503 ac_cv_lib_curses_setupterm=no
16505 rm -f core conftest.err conftest.$ac_objext \
16506 conftest$ac_exeext conftest.$ac_ext
16507 LIBS=$ac_check_lib_save_LIBS
16509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_setupterm" >&5
16510 $as_echo "$ac_cv_lib_curses_setupterm" >&6; }
16511 if test "x$ac_cv_lib_curses_setupterm" = xyes; then :
16513 alpine_termdata=info
16514 LIBS="$LIBS -lcurses"
16516 else
16518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermlib" >&5
16519 $as_echo_n "checking for tgetent in -ltermlib... " >&6; }
16520 if ${ac_cv_lib_termlib_tgetent+:} false; then :
16521 $as_echo_n "(cached) " >&6
16522 else
16523 ac_check_lib_save_LIBS=$LIBS
16524 LIBS="-ltermlib $LIBS"
16525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16526 /* end confdefs.h. */
16528 /* Override any GCC internal prototype to avoid an error.
16529 Use char because int might match the return type of a GCC
16530 builtin and then its argument prototype would still apply. */
16531 #ifdef __cplusplus
16532 extern "C"
16533 #endif
16534 char tgetent ();
16536 main ()
16538 return tgetent ();
16540 return 0;
16542 _ACEOF
16543 if ac_fn_c_try_link "$LINENO"; then :
16544 ac_cv_lib_termlib_tgetent=yes
16545 else
16546 ac_cv_lib_termlib_tgetent=no
16548 rm -f core conftest.err conftest.$ac_objext \
16549 conftest$ac_exeext conftest.$ac_ext
16550 LIBS=$ac_check_lib_save_LIBS
16552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termlib_tgetent" >&5
16553 $as_echo "$ac_cv_lib_termlib_tgetent" >&6; }
16554 if test "x$ac_cv_lib_termlib_tgetent" = xyes; then :
16556 alpine_termdata=cap
16557 LIBS="$LIBS -ltermlib"
16559 else
16561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
16562 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
16563 if ${ac_cv_lib_termcap_tgetent+:} false; then :
16564 $as_echo_n "(cached) " >&6
16565 else
16566 ac_check_lib_save_LIBS=$LIBS
16567 LIBS="-ltermcap $LIBS"
16568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16569 /* end confdefs.h. */
16571 /* Override any GCC internal prototype to avoid an error.
16572 Use char because int might match the return type of a GCC
16573 builtin and then its argument prototype would still apply. */
16574 #ifdef __cplusplus
16575 extern "C"
16576 #endif
16577 char tgetent ();
16579 main ()
16581 return tgetent ();
16583 return 0;
16585 _ACEOF
16586 if ac_fn_c_try_link "$LINENO"; then :
16587 ac_cv_lib_termcap_tgetent=yes
16588 else
16589 ac_cv_lib_termcap_tgetent=no
16591 rm -f core conftest.err conftest.$ac_objext \
16592 conftest$ac_exeext conftest.$ac_ext
16593 LIBS=$ac_check_lib_save_LIBS
16595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
16596 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
16597 if test "x$ac_cv_lib_termcap_tgetent" = xyes; then :
16599 alpine_termdata=cap
16600 LIBS="$LIBS -ltermcap"
16602 else
16604 as_fn_error $? "Terminfo/termcap not found" "$LINENO" 5
16620 case $alpine_termdata in
16621 info)
16623 $as_echo "#define HAS_TERMINFO 1" >>confdefs.h
16626 cap)
16628 $as_echo "#define HAS_TERMCAP 1" >>confdefs.h
16631 esac
16633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
16634 $as_echo_n "checking for library containing dlopen... " >&6; }
16635 if ${ac_cv_search_dlopen+:} false; then :
16636 $as_echo_n "(cached) " >&6
16637 else
16638 ac_func_search_save_LIBS=$LIBS
16639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16640 /* end confdefs.h. */
16642 /* Override any GCC internal prototype to avoid an error.
16643 Use char because int might match the return type of a GCC
16644 builtin and then its argument prototype would still apply. */
16645 #ifdef __cplusplus
16646 extern "C"
16647 #endif
16648 char dlopen ();
16650 main ()
16652 return dlopen ();
16654 return 0;
16656 _ACEOF
16657 for ac_lib in '' dl dld; do
16658 if test -z "$ac_lib"; then
16659 ac_res="none required"
16660 else
16661 ac_res=-l$ac_lib
16662 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16664 if ac_fn_c_try_link "$LINENO"; then :
16665 ac_cv_search_dlopen=$ac_res
16667 rm -f core conftest.err conftest.$ac_objext \
16668 conftest$ac_exeext
16669 if ${ac_cv_search_dlopen+:} false; then :
16670 break
16672 done
16673 if ${ac_cv_search_dlopen+:} false; then :
16675 else
16676 ac_cv_search_dlopen=no
16678 rm conftest.$ac_ext
16679 LIBS=$ac_func_search_save_LIBS
16681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
16682 $as_echo "$ac_cv_search_dlopen" >&6; }
16683 ac_res=$ac_cv_search_dlopen
16684 if test "$ac_res" != no; then :
16685 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16687 else
16688 alpine_DL="none"
16691 if test "x$alpine_DL" = "xnone" ; then
16692 as_fn_error $? "No library containing dlopen found" "$LINENO" 5
16693 exit 1
16696 if test "x$alpine_SSLTYPE" != "xnone" ; then
16697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing SSLeay" >&5
16698 $as_echo_n "checking for library containing SSLeay... " >&6; }
16699 if ${ac_cv_search_SSLeay+:} false; then :
16700 $as_echo_n "(cached) " >&6
16701 else
16702 ac_func_search_save_LIBS=$LIBS
16703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16704 /* end confdefs.h. */
16706 /* Override any GCC internal prototype to avoid an error.
16707 Use char because int might match the return type of a GCC
16708 builtin and then its argument prototype would still apply. */
16709 #ifdef __cplusplus
16710 extern "C"
16711 #endif
16712 char SSLeay ();
16714 main ()
16716 return SSLeay ();
16718 return 0;
16720 _ACEOF
16721 for ac_lib in '' crypto; do
16722 if test -z "$ac_lib"; then
16723 ac_res="none required"
16724 else
16725 ac_res=-l$ac_lib
16726 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16728 if ac_fn_c_try_link "$LINENO"; then :
16729 ac_cv_search_SSLeay=$ac_res
16731 rm -f core conftest.err conftest.$ac_objext \
16732 conftest$ac_exeext
16733 if ${ac_cv_search_SSLeay+:} false; then :
16734 break
16736 done
16737 if ${ac_cv_search_SSLeay+:} false; then :
16739 else
16740 ac_cv_search_SSLeay=no
16742 rm conftest.$ac_ext
16743 LIBS=$ac_func_search_save_LIBS
16745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_SSLeay" >&5
16746 $as_echo "$ac_cv_search_SSLeay" >&6; }
16747 ac_res=$ac_cv_search_SSLeay
16748 if test "$ac_res" != no; then :
16749 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16751 else
16752 alpine_CRYPTO="none"
16755 if test "x$alpine_CRYPTO" = "xnone" ; then
16756 as_fn_error $? "crypto library NOT found" "$LINENO" 5
16757 exit 1
16761 if test "x$alpine_SSLTYPE" != "xnone" ; then
16762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing SSL_library_init" >&5
16763 $as_echo_n "checking for library containing SSL_library_init... " >&6; }
16764 if ${ac_cv_search_SSL_library_init+:} false; then :
16765 $as_echo_n "(cached) " >&6
16766 else
16767 ac_func_search_save_LIBS=$LIBS
16768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16769 /* end confdefs.h. */
16771 /* Override any GCC internal prototype to avoid an error.
16772 Use char because int might match the return type of a GCC
16773 builtin and then its argument prototype would still apply. */
16774 #ifdef __cplusplus
16775 extern "C"
16776 #endif
16777 char SSL_library_init ();
16779 main ()
16781 return SSL_library_init ();
16783 return 0;
16785 _ACEOF
16786 for ac_lib in '' ssl; do
16787 if test -z "$ac_lib"; then
16788 ac_res="none required"
16789 else
16790 ac_res=-l$ac_lib
16791 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16793 if ac_fn_c_try_link "$LINENO"; then :
16794 ac_cv_search_SSL_library_init=$ac_res
16796 rm -f core conftest.err conftest.$ac_objext \
16797 conftest$ac_exeext
16798 if ${ac_cv_search_SSL_library_init+:} false; then :
16799 break
16801 done
16802 if ${ac_cv_search_SSL_library_init+:} false; then :
16804 else
16805 ac_cv_search_SSL_library_init=no
16807 rm conftest.$ac_ext
16808 LIBS=$ac_func_search_save_LIBS
16810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_SSL_library_init" >&5
16811 $as_echo "$ac_cv_search_SSL_library_init" >&6; }
16812 ac_res=$ac_cv_search_SSL_library_init
16813 if test "$ac_res" != no; then :
16814 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16816 else
16817 alpine_SSLTYPE="none"
16821 if test "x$alpine_SSLTYPE" = "xnone" ; then
16822 as_fn_error $? "No library containing SSL_library_init found in your path" "$LINENO" 5
16823 exit 1
16826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Openssl library version >= 1.0.0c" >&5
16827 $as_echo_n "checking Openssl library version >= 1.0.0c... " >&6; }
16828 if test "$cross_compiling" = yes; then :
16829 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16830 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16831 as_fn_error $? "cannot run test program while cross compiling
16832 See \`config.log' for more details" "$LINENO" 5; }
16833 else
16834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16835 /* end confdefs.h. */
16837 #include <stdio.h>
16838 #include <stdlib.h>
16839 #include <openssl/ssl.h>
16840 int main(void) {
16842 if (OPENSSL_VERSION_NUMBER >= 0x1000003f)
16843 exit(0);
16845 exit(2);
16848 _ACEOF
16849 if ac_fn_c_try_run "$LINENO"; then :
16850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16851 $as_echo "yes" >&6; }
16852 else
16853 alpine_SSLTYPE="none"
16855 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16856 conftest.$ac_objext conftest.beam conftest.$ac_ext
16860 if test "x$alpine_SSLTYPE" = "xnone" ; then
16861 as_fn_error $? "Install openssl version >= 1.0.0c" "$LINENO" 5
16862 exit 1
16864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing TLSv1_2_client_method" >&5
16865 $as_echo_n "checking for library containing TLSv1_2_client_method... " >&6; }
16866 if ${ac_cv_search_TLSv1_2_client_method+:} false; then :
16867 $as_echo_n "(cached) " >&6
16868 else
16869 ac_func_search_save_LIBS=$LIBS
16870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16871 /* end confdefs.h. */
16873 /* Override any GCC internal prototype to avoid an error.
16874 Use char because int might match the return type of a GCC
16875 builtin and then its argument prototype would still apply. */
16876 #ifdef __cplusplus
16877 extern "C"
16878 #endif
16879 char TLSv1_2_client_method ();
16881 main ()
16883 return TLSv1_2_client_method ();
16885 return 0;
16887 _ACEOF
16888 for ac_lib in '' ssl; do
16889 if test -z "$ac_lib"; then
16890 ac_res="none required"
16891 else
16892 ac_res=-l$ac_lib
16893 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16895 if ac_fn_c_try_link "$LINENO"; then :
16896 ac_cv_search_TLSv1_2_client_method=$ac_res
16898 rm -f core conftest.err conftest.$ac_objext \
16899 conftest$ac_exeext
16900 if ${ac_cv_search_TLSv1_2_client_method+:} false; then :
16901 break
16903 done
16904 if ${ac_cv_search_TLSv1_2_client_method+:} false; then :
16906 else
16907 ac_cv_search_TLSv1_2_client_method=no
16909 rm conftest.$ac_ext
16910 LIBS=$ac_func_search_save_LIBS
16912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_TLSv1_2_client_method" >&5
16913 $as_echo "$ac_cv_search_TLSv1_2_client_method" >&6; }
16914 ac_res=$ac_cv_search_TLSv1_2_client_method
16915 if test "$ac_res" != no; then :
16916 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16917 alpine_c_client_cflags="$alpine_c_client_cflags -DTLSV1_2"
16919 $as_echo "#define SSL_SUPPORTS_TLSV1_2 1" >>confdefs.h
16926 if test "$alpine_with_ldap" = "yes" ; then
16927 alpine_has_ldap=
16928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_alloc in -llber" >&5
16929 $as_echo_n "checking for ber_alloc in -llber... " >&6; }
16930 if ${ac_cv_lib_lber_ber_alloc+:} false; then :
16931 $as_echo_n "(cached) " >&6
16932 else
16933 ac_check_lib_save_LIBS=$LIBS
16934 LIBS="-llber $LIBS"
16935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16936 /* end confdefs.h. */
16938 /* Override any GCC internal prototype to avoid an error.
16939 Use char because int might match the return type of a GCC
16940 builtin and then its argument prototype would still apply. */
16941 #ifdef __cplusplus
16942 extern "C"
16943 #endif
16944 char ber_alloc ();
16946 main ()
16948 return ber_alloc ();
16950 return 0;
16952 _ACEOF
16953 if ac_fn_c_try_link "$LINENO"; then :
16954 ac_cv_lib_lber_ber_alloc=yes
16955 else
16956 ac_cv_lib_lber_ber_alloc=no
16958 rm -f core conftest.err conftest.$ac_objext \
16959 conftest$ac_exeext conftest.$ac_ext
16960 LIBS=$ac_check_lib_save_LIBS
16962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_alloc" >&5
16963 $as_echo "$ac_cv_lib_lber_ber_alloc" >&6; }
16964 if test "x$ac_cv_lib_lber_ber_alloc" = xyes; then :
16966 LIBS="$LIBS -llber"
16970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldap_init" >&5
16971 $as_echo_n "checking for library containing ldap_init... " >&6; }
16972 if ${ac_cv_search_ldap_init+:} false; then :
16973 $as_echo_n "(cached) " >&6
16974 else
16975 ac_func_search_save_LIBS=$LIBS
16976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16977 /* end confdefs.h. */
16979 /* Override any GCC internal prototype to avoid an error.
16980 Use char because int might match the return type of a GCC
16981 builtin and then its argument prototype would still apply. */
16982 #ifdef __cplusplus
16983 extern "C"
16984 #endif
16985 char ldap_init ();
16987 main ()
16989 return ldap_init ();
16991 return 0;
16993 _ACEOF
16994 for ac_lib in '' ldap; do
16995 if test -z "$ac_lib"; then
16996 ac_res="none required"
16997 else
16998 ac_res=-l$ac_lib
16999 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17001 if ac_fn_c_try_link "$LINENO"; then :
17002 ac_cv_search_ldap_init=$ac_res
17004 rm -f core conftest.err conftest.$ac_objext \
17005 conftest$ac_exeext
17006 if ${ac_cv_search_ldap_init+:} false; then :
17007 break
17009 done
17010 if ${ac_cv_search_ldap_init+:} false; then :
17012 else
17013 ac_cv_search_ldap_init=no
17015 rm conftest.$ac_ext
17016 LIBS=$ac_func_search_save_LIBS
17018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldap_init" >&5
17019 $as_echo "$ac_cv_search_ldap_init" >&6; }
17020 ac_res=$ac_cv_search_ldap_init
17021 if test "$ac_res" != no; then :
17022 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17024 alpine_has_ldap=yes
17026 else
17028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldap_open" >&5
17029 $as_echo_n "checking for library containing ldap_open... " >&6; }
17030 if ${ac_cv_search_ldap_open+:} false; then :
17031 $as_echo_n "(cached) " >&6
17032 else
17033 ac_func_search_save_LIBS=$LIBS
17034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17035 /* end confdefs.h. */
17037 /* Override any GCC internal prototype to avoid an error.
17038 Use char because int might match the return type of a GCC
17039 builtin and then its argument prototype would still apply. */
17040 #ifdef __cplusplus
17041 extern "C"
17042 #endif
17043 char ldap_open ();
17045 main ()
17047 return ldap_open ();
17049 return 0;
17051 _ACEOF
17052 for ac_lib in '' ldap; do
17053 if test -z "$ac_lib"; then
17054 ac_res="none required"
17055 else
17056 ac_res=-l$ac_lib
17057 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17059 if ac_fn_c_try_link "$LINENO"; then :
17060 ac_cv_search_ldap_open=$ac_res
17062 rm -f core conftest.err conftest.$ac_objext \
17063 conftest$ac_exeext
17064 if ${ac_cv_search_ldap_open+:} false; then :
17065 break
17067 done
17068 if ${ac_cv_search_ldap_open+:} false; then :
17070 else
17071 ac_cv_search_ldap_open=no
17073 rm conftest.$ac_ext
17074 LIBS=$ac_func_search_save_LIBS
17076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldap_open" >&5
17077 $as_echo "$ac_cv_search_ldap_open" >&6; }
17078 ac_res=$ac_cv_search_ldap_open
17079 if test "$ac_res" != no; then :
17080 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17082 alpine_has_ldap=yes
17090 if test "$alpine_has_ldap" = "yes" ; then
17091 { $as_echo "$as_me:${as_lineno-$LINENO}: Including LDAP Support" >&5
17092 $as_echo "$as_me: Including LDAP Support" >&6;}
17094 $as_echo "#define ENABLE_LDAP /**/" >>confdefs.h
17097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should define LDAP_DEPRECATED" >&5
17098 $as_echo_n "checking if we should define LDAP_DEPRECATED... " >&6; }
17099 if test "$cross_compiling" = yes; then :
17101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking" >&5
17102 $as_echo "$as_me: WARNING: cross compiling: not checking" >&2;}
17105 else
17106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17107 /* end confdefs.h. */
17109 #include <stdio.h>
17110 #include <stdlib.h>
17111 #include <ldap.h>
17112 int main(void) {
17114 if (LDAP_VENDOR_VERSION >= 20300)
17115 exit(0);
17117 exit(2);
17120 _ACEOF
17121 if ac_fn_c_try_run "$LINENO"; then :
17123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17124 $as_echo "yes" >&6; }
17126 $as_echo "#define LDAP_DEPRECATED 1" >>confdefs.h
17130 else
17132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17133 $as_echo "no" >&6; }
17136 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17137 conftest.$ac_objext conftest.beam conftest.$ac_ext
17141 else
17142 { $as_echo "$as_me:${as_lineno-$LINENO}: Cannot find LDAP functions! Excluding LDAP support." >&5
17143 $as_echo "$as_me: Cannot find LDAP functions! Excluding LDAP support." >&6;}
17147 if test "x$alpine_PAM" != "xnone" ; then
17148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pam_start" >&5
17149 $as_echo_n "checking for library containing pam_start... " >&6; }
17150 if ${ac_cv_search_pam_start+:} false; then :
17151 $as_echo_n "(cached) " >&6
17152 else
17153 ac_func_search_save_LIBS=$LIBS
17154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17155 /* end confdefs.h. */
17157 /* Override any GCC internal prototype to avoid an error.
17158 Use char because int might match the return type of a GCC
17159 builtin and then its argument prototype would still apply. */
17160 #ifdef __cplusplus
17161 extern "C"
17162 #endif
17163 char pam_start ();
17165 main ()
17167 return pam_start ();
17169 return 0;
17171 _ACEOF
17172 for ac_lib in '' pam; do
17173 if test -z "$ac_lib"; then
17174 ac_res="none required"
17175 else
17176 ac_res=-l$ac_lib
17177 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17179 if ac_fn_c_try_link "$LINENO"; then :
17180 ac_cv_search_pam_start=$ac_res
17182 rm -f core conftest.err conftest.$ac_objext \
17183 conftest$ac_exeext
17184 if ${ac_cv_search_pam_start+:} false; then :
17185 break
17187 done
17188 if ${ac_cv_search_pam_start+:} false; then :
17190 else
17191 ac_cv_search_pam_start=no
17193 rm conftest.$ac_ext
17194 LIBS=$ac_func_search_save_LIBS
17196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pam_start" >&5
17197 $as_echo "$ac_cv_search_pam_start" >&6; }
17198 ac_res=$ac_cv_search_pam_start
17199 if test "$ac_res" != no; then :
17200 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17202 LIBS="$LIBS -lpam"
17203 ac_fn_c_check_header_mongrel "$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default"
17204 if test "x$ac_cv_header_security_pam_appl_h" = xyes; then :
17206 alpine_PAM="yes"
17208 else
17209 ac_fn_c_check_header_mongrel "$LINENO" "pam/pam_appl.h" "ac_cv_header_pam_pam_appl_h" "$ac_includes_default"
17210 if test "x$ac_cv_header_pam_pam_appl_h" = xyes; then :
17212 alpine_PAM="yes"
17213 if test "x$alpine_c_client_target" != "xoxp" ; then
17214 alpine_PAM="none"
17215 alpine_pam_none_reason="header files not in security/ directory"
17218 else
17220 alpine_PAM="none"
17221 alpine_pam_none_reason="header files not found"
17231 else
17233 alpine_PAM="none"
17234 alpine_pam_none_reason="library files not found"
17238 if test -n "$alpine_pam_none_reason" ; then
17239 as_fn_error $? "No PAM support: $alpine_pam_none_reason" "$LINENO" 5
17244 if test "x$alpine_GSSTYPE" != "xnone" ; then
17245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gss_init_sec_context" >&5
17246 $as_echo_n "checking for library containing gss_init_sec_context... " >&6; }
17247 if ${ac_cv_search_gss_init_sec_context+:} false; then :
17248 $as_echo_n "(cached) " >&6
17249 else
17250 ac_func_search_save_LIBS=$LIBS
17251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17252 /* end confdefs.h. */
17254 /* Override any GCC internal prototype to avoid an error.
17255 Use char because int might match the return type of a GCC
17256 builtin and then its argument prototype would still apply. */
17257 #ifdef __cplusplus
17258 extern "C"
17259 #endif
17260 char gss_init_sec_context ();
17262 main ()
17264 return gss_init_sec_context ();
17266 return 0;
17268 _ACEOF
17269 for ac_lib in '' gss gssapi gssapi_krb5; do
17270 if test -z "$ac_lib"; then
17271 ac_res="none required"
17272 else
17273 ac_res=-l$ac_lib
17274 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17276 if ac_fn_c_try_link "$LINENO"; then :
17277 ac_cv_search_gss_init_sec_context=$ac_res
17279 rm -f core conftest.err conftest.$ac_objext \
17280 conftest$ac_exeext
17281 if ${ac_cv_search_gss_init_sec_context+:} false; then :
17282 break
17284 done
17285 if ${ac_cv_search_gss_init_sec_context+:} false; then :
17287 else
17288 ac_cv_search_gss_init_sec_context=no
17290 rm conftest.$ac_ext
17291 LIBS=$ac_func_search_save_LIBS
17293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gss_init_sec_context" >&5
17294 $as_echo "$ac_cv_search_gss_init_sec_context" >&6; }
17295 ac_res=$ac_cv_search_gss_init_sec_context
17296 if test "$ac_res" != no; then :
17297 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17299 LIBS="$LIBS -lkrb5"
17300 ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi_generic.h" "ac_cv_header_gssapi_gssapi_generic_h" "$ac_includes_default"
17301 if test "x$ac_cv_header_gssapi_gssapi_generic_h" = xyes; then :
17303 else
17305 if test ! -d /usr/kerberos/include ; then
17306 alpine_GSSTYPE="none"
17307 alpine_gss_none_reason="header files not found"
17314 else
17316 alpine_GSSTYPE="none"
17317 alpine_gss_none_reason="libraries not found"
17321 if test -n "$alpine_gss_none_reason" ; then
17322 { $as_echo "$as_me:${as_lineno-$LINENO}: NOT including Kerberos Support: $alpine_gss_none_reason" >&5
17323 $as_echo "$as_me: NOT including Kerberos Support: $alpine_gss_none_reason" >&6;}
17327 if test -n "$WEB_BUILD" ; then
17328 TCL_VERSIONS_DOT="tcl8.6 tcl8.5 tcl8.4 tcl8.3"
17329 TCL_VERSIONS_NODOT="`echo ${TCL_VERSIONS_DOT} | ${SED} 's/\.//g'`"
17330 TCL_VERSIONS="${TCL_VERSIONS_DOT} ${TCL_VERSIONS_NODOT} tcl"
17331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing Tcl_Eval" >&5
17332 $as_echo_n "checking for library containing Tcl_Eval... " >&6; }
17333 if ${ac_cv_search_Tcl_Eval+:} false; then :
17334 $as_echo_n "(cached) " >&6
17335 else
17336 ac_func_search_save_LIBS=$LIBS
17337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17338 /* end confdefs.h. */
17340 /* Override any GCC internal prototype to avoid an error.
17341 Use char because int might match the return type of a GCC
17342 builtin and then its argument prototype would still apply. */
17343 #ifdef __cplusplus
17344 extern "C"
17345 #endif
17346 char Tcl_Eval ();
17348 main ()
17350 return Tcl_Eval ();
17352 return 0;
17354 _ACEOF
17355 for ac_lib in '' $alpine_TCLLIB ${TCL_VERSIONS}; do
17356 if test -z "$ac_lib"; then
17357 ac_res="none required"
17358 else
17359 ac_res=-l$ac_lib
17360 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17362 if ac_fn_c_try_link "$LINENO"; then :
17363 ac_cv_search_Tcl_Eval=$ac_res
17365 rm -f core conftest.err conftest.$ac_objext \
17366 conftest$ac_exeext
17367 if ${ac_cv_search_Tcl_Eval+:} false; then :
17368 break
17370 done
17371 if ${ac_cv_search_Tcl_Eval+:} false; then :
17373 else
17374 ac_cv_search_Tcl_Eval=no
17376 rm conftest.$ac_ext
17377 LIBS=$ac_func_search_save_LIBS
17379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_Tcl_Eval" >&5
17380 $as_echo "$ac_cv_search_Tcl_Eval" >&6; }
17381 ac_res=$ac_cv_search_Tcl_Eval
17382 if test "$ac_res" != no; then :
17383 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17385 else
17387 WEB_BUILD=
17392 if test -n "$alpine_TCLINC" ; then
17393 as_ac_Header=`$as_echo "ac_cv_header_$alpine_TCLINC/tcl.h" | $as_tr_sh`
17394 ac_fn_c_check_header_mongrel "$LINENO" "$alpine_TCLINC/tcl.h" "$as_ac_Header" "$ac_includes_default"
17395 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17397 else
17399 WEB_BUILD=
17404 if test -z "$WEB_BUILD" ; then
17405 { $as_echo "$as_me:${as_lineno-$LINENO}: Tcl Include file NOT found" >&5
17406 $as_echo "$as_me: Tcl Include file NOT found" >&6;}
17408 else
17409 ac_fn_c_check_header_mongrel "$LINENO" "tcl.h" "ac_cv_header_tcl_h" "$ac_includes_default"
17410 if test "x$ac_cv_header_tcl_h" = xyes; then :
17412 else
17414 for base in /usr /usr/local ; do
17415 for dir in ${TCL_VERSIONS} ; do
17416 as_ac_File=`$as_echo "ac_cv_file_$base/include/$dir/tcl.h" | $as_tr_sh`
17417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $base/include/$dir/tcl.h" >&5
17418 $as_echo_n "checking for $base/include/$dir/tcl.h... " >&6; }
17419 if eval \${$as_ac_File+:} false; then :
17420 $as_echo_n "(cached) " >&6
17421 else
17422 test "$cross_compiling" = yes &&
17423 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
17424 if test -r "$base/include/$dir/tcl.h"; then
17425 eval "$as_ac_File=yes"
17426 else
17427 eval "$as_ac_File=no"
17430 eval ac_res=\$$as_ac_File
17431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17432 $as_echo "$ac_res" >&6; }
17433 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
17435 found=yes
17439 if test "$found" = "yes" ; then
17440 CPPFLAGS="$CPPFLAGS -I$base/include/$dir"
17441 break
17443 done
17444 if test "$found" = "yes" ; then
17445 break
17447 done
17448 if test "$found" != "yes" ; then
17449 WEB_BUILD=
17450 { $as_echo "$as_me:${as_lineno-$LINENO}: header file tcl.h NOT found: Web Alpine will not be built" >&5
17451 $as_echo "$as_me: header file tcl.h NOT found: Web Alpine will not be built" >&6;}
17460 if test "x$alpine_REGEX" != "xyes" ; then
17461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing regcomp" >&5
17462 $as_echo_n "checking for library containing regcomp... " >&6; }
17463 if ${ac_cv_search_regcomp+:} false; then :
17464 $as_echo_n "(cached) " >&6
17465 else
17466 ac_func_search_save_LIBS=$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 regcomp ();
17478 main ()
17480 return regcomp ();
17482 return 0;
17484 _ACEOF
17485 for ac_lib in '' posix regexp regex re; do
17486 if test -z "$ac_lib"; then
17487 ac_res="none required"
17488 else
17489 ac_res=-l$ac_lib
17490 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17492 if ac_fn_c_try_link "$LINENO"; then :
17493 ac_cv_search_regcomp=$ac_res
17495 rm -f core conftest.err conftest.$ac_objext \
17496 conftest$ac_exeext
17497 if ${ac_cv_search_regcomp+:} false; then :
17498 break
17500 done
17501 if ${ac_cv_search_regcomp+:} false; then :
17503 else
17504 ac_cv_search_regcomp=no
17506 rm conftest.$ac_ext
17507 LIBS=$ac_func_search_save_LIBS
17509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_regcomp" >&5
17510 $as_echo "$ac_cv_search_regcomp" >&6; }
17511 ac_res=$ac_cv_search_regcomp
17512 if test "$ac_res" != no; then :
17513 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17515 else
17517 if test x$alpine_REGEX = "xno" ; then
17518 as_fn_error $? "Unable to find system regex library" "$LINENO" 5
17519 else
17520 alpine_REGEX=yes
17526 if test "x$alpine_REGEX" != "xyes" ; then
17527 ac_fn_c_check_header_mongrel "$LINENO" "regex.h" "ac_cv_header_regex_h" "$ac_includes_default"
17528 if test "x$ac_cv_header_regex_h" = xyes; then :
17530 else
17532 if test x$alpine_REGEX = "xno" ; then
17533 as_fn_error $? "Unable to find system regex include file" "$LINENO" 5
17534 else
17535 alpine_REGEX=yes
17543 $as_echo "#define HAVE_REGEX_H 1" >>confdefs.h
17545 if test "x$alpine_REGEX" = "xyes" ; then
17546 CPPFLAGS="$CPPFLAGS -I${top_builddir}/regex"
17547 LDFLAGS="$LDFLAGS -L${top_builddir}/regex"
17548 REGEX_BUILD=regex
17549 REGEX_MAKEFILE="$REGEX_BUILD/Makefile"
17552 if test "x$with_pthread" != "xno" ; then
17553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread support" >&5
17554 $as_echo_n "checking for pthread support... " >&6; }
17558 ac_ext=c
17559 ac_cpp='$CPP $CPPFLAGS'
17560 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17561 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17562 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17564 acx_pthread_ok=no
17566 # We used to check for pthread.h first, but this fails if pthread.h
17567 # requires special compiler flags (e.g. on True64 or Sequent).
17568 # It gets checked for in the link test anyway.
17570 # First of all, check if the user has set any of the PTHREAD_LIBS,
17571 # etcetera environment variables, and if threads linking works using
17572 # them:
17573 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
17574 save_CFLAGS="$CFLAGS"
17575 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
17576 save_LIBS="$LIBS"
17577 LIBS="$PTHREAD_LIBS $LIBS"
17578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
17579 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
17580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17581 /* end confdefs.h. */
17583 /* Override any GCC internal prototype to avoid an error.
17584 Use char because int might match the return type of a GCC
17585 builtin and then its argument prototype would still apply. */
17586 #ifdef __cplusplus
17587 extern "C"
17588 #endif
17589 char pthread_join ();
17591 main ()
17593 return pthread_join ();
17595 return 0;
17597 _ACEOF
17598 if ac_fn_c_try_link "$LINENO"; then :
17599 acx_pthread_ok=yes
17601 rm -f core conftest.err conftest.$ac_objext \
17602 conftest$ac_exeext conftest.$ac_ext
17603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
17604 $as_echo "$acx_pthread_ok" >&6; }
17605 if test x"$acx_pthread_ok" = xno; then
17606 PTHREAD_LIBS=""
17607 PTHREAD_CFLAGS=""
17609 LIBS="$save_LIBS"
17610 CFLAGS="$save_CFLAGS"
17613 # We must check for the threads library under a number of different
17614 # names; the ordering is very important because some systems
17615 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
17616 # libraries is broken (non-POSIX).
17618 # Create a list of thread flags to try. Items starting with a "-" are
17619 # C compiler flags, and other items are library names, except for "none"
17620 # which indicates that we try without any flags at all, and "pthread-config"
17621 # which is a program returning the flags for the Pth emulation library.
17623 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
17625 # The ordering *is* (sometimes) important. Some notes on the
17626 # individual items follow:
17628 # pthreads: AIX (must check this before -lpthread)
17629 # none: in case threads are in libc; should be tried before -Kthread and
17630 # other compiler flags to prevent continual compiler warnings
17631 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
17632 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
17633 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
17634 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
17635 # -pthreads: Solaris/gcc
17636 # -mthreads: Mingw32/gcc, Lynx/gcc
17637 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
17638 # doesn't hurt to check since this sometimes defines pthreads too;
17639 # also defines -D_REENTRANT)
17640 # ... -mt is also the pthreads flag for HP/aCC
17641 # pthread: Linux, etcetera
17642 # --thread-safe: KAI C++
17643 # pthread-config: use pthread-config program (for GNU Pth library)
17645 case "${host_cpu}-${host_os}" in
17646 *solaris*)
17648 # On Solaris (at least, for some versions), libc contains stubbed
17649 # (non-functional) versions of the pthreads routines, so link-based
17650 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
17651 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
17652 # a function called by this macro, so we could check for that, but
17653 # who knows whether they'll stub that too in a future libc.) So,
17654 # we'll just look for -pthreads and -lpthread first:
17656 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
17658 esac
17660 if test x"$acx_pthread_ok" = xno; then
17661 for flag in $acx_pthread_flags; do
17663 case $flag in
17664 none)
17665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
17666 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
17670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
17671 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
17672 PTHREAD_CFLAGS="$flag"
17675 pthread-config)
17676 # Extract the first word of "pthread-config", so it can be a program name with args.
17677 set dummy pthread-config; ac_word=$2
17678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17679 $as_echo_n "checking for $ac_word... " >&6; }
17680 if ${ac_cv_prog_acx_pthread_config+:} false; then :
17681 $as_echo_n "(cached) " >&6
17682 else
17683 if test -n "$acx_pthread_config"; then
17684 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
17685 else
17686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17687 for as_dir in $PATH
17689 IFS=$as_save_IFS
17690 test -z "$as_dir" && as_dir=.
17691 for ac_exec_ext in '' $ac_executable_extensions; do
17692 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17693 ac_cv_prog_acx_pthread_config="yes"
17694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17695 break 2
17697 done
17698 done
17699 IFS=$as_save_IFS
17701 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
17704 acx_pthread_config=$ac_cv_prog_acx_pthread_config
17705 if test -n "$acx_pthread_config"; then
17706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
17707 $as_echo "$acx_pthread_config" >&6; }
17708 else
17709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17710 $as_echo "no" >&6; }
17714 if test x"$acx_pthread_config" = xno; then continue; fi
17715 PTHREAD_CFLAGS="`pthread-config --cflags`"
17716 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
17720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
17721 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
17722 PTHREAD_LIBS="-l$flag"
17724 esac
17726 save_LIBS="$LIBS"
17727 save_CFLAGS="$CFLAGS"
17728 LIBS="$PTHREAD_LIBS $LIBS"
17729 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
17731 # Check for various functions. We must include pthread.h,
17732 # since some functions may be macros. (On the Sequent, we
17733 # need a special flag -Kthread to make this header compile.)
17734 # We check for pthread_join because it is in -lpthread on IRIX
17735 # while pthread_create is in libc. We check for pthread_attr_init
17736 # due to DEC craziness with -lpthreads. We check for
17737 # pthread_cleanup_push because it is one of the few pthread
17738 # functions on Solaris that doesn't have a non-functional libc stub.
17739 # We try pthread_create on general principles.
17740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17741 /* end confdefs.h. */
17742 #include <pthread.h>
17744 main ()
17746 pthread_t th; pthread_join(th, 0);
17747 pthread_attr_init(0); pthread_cleanup_push(0, 0);
17748 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
17750 return 0;
17752 _ACEOF
17753 if ac_fn_c_try_link "$LINENO"; then :
17754 acx_pthread_ok=yes
17756 rm -f core conftest.err conftest.$ac_objext \
17757 conftest$ac_exeext conftest.$ac_ext
17759 LIBS="$save_LIBS"
17760 CFLAGS="$save_CFLAGS"
17762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
17763 $as_echo "$acx_pthread_ok" >&6; }
17764 if test "x$acx_pthread_ok" = xyes; then
17765 break;
17768 PTHREAD_LIBS=""
17769 PTHREAD_CFLAGS=""
17770 done
17773 # Various other checks:
17774 if test "x$acx_pthread_ok" = xyes; then
17775 save_LIBS="$LIBS"
17776 LIBS="$PTHREAD_LIBS $LIBS"
17777 save_CFLAGS="$CFLAGS"
17778 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
17780 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
17781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
17782 $as_echo_n "checking for joinable pthread attribute... " >&6; }
17783 attr_name=unknown
17784 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
17785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17786 /* end confdefs.h. */
17787 #include <pthread.h>
17789 main ()
17791 int attr=$attr; return attr;
17793 return 0;
17795 _ACEOF
17796 if ac_fn_c_try_link "$LINENO"; then :
17797 attr_name=$attr; break
17799 rm -f core conftest.err conftest.$ac_objext \
17800 conftest$ac_exeext conftest.$ac_ext
17801 done
17802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
17803 $as_echo "$attr_name" >&6; }
17804 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
17806 cat >>confdefs.h <<_ACEOF
17807 #define PTHREAD_CREATE_JOINABLE $attr_name
17808 _ACEOF
17812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
17813 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
17814 flag=no
17815 case "${host_cpu}-${host_os}" in
17816 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
17817 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
17818 esac
17819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
17820 $as_echo "${flag}" >&6; }
17821 if test "x$flag" != xno; then
17822 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
17825 LIBS="$save_LIBS"
17826 CFLAGS="$save_CFLAGS"
17828 # More AIX lossage: must compile with xlc_r or cc_r
17829 if test x"$GCC" != xyes; then
17830 for ac_prog in xlc_r cc_r
17832 # Extract the first word of "$ac_prog", so it can be a program name with args.
17833 set dummy $ac_prog; ac_word=$2
17834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17835 $as_echo_n "checking for $ac_word... " >&6; }
17836 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
17837 $as_echo_n "(cached) " >&6
17838 else
17839 if test -n "$PTHREAD_CC"; then
17840 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
17841 else
17842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17843 for as_dir in $PATH
17845 IFS=$as_save_IFS
17846 test -z "$as_dir" && as_dir=.
17847 for ac_exec_ext in '' $ac_executable_extensions; do
17848 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17849 ac_cv_prog_PTHREAD_CC="$ac_prog"
17850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17851 break 2
17853 done
17854 done
17855 IFS=$as_save_IFS
17859 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
17860 if test -n "$PTHREAD_CC"; then
17861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
17862 $as_echo "$PTHREAD_CC" >&6; }
17863 else
17864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17865 $as_echo "no" >&6; }
17869 test -n "$PTHREAD_CC" && break
17870 done
17871 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
17873 else
17874 PTHREAD_CC=$CC
17876 else
17877 PTHREAD_CC="$CC"
17884 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
17885 if test x"$acx_pthread_ok" = xyes; then
17887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17888 $as_echo "yes" >&6; }
17889 case "$target" in
17890 *openbsd*)
17891 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pthread support on OpenBSD is unstable!" >&5
17892 $as_echo "$as_me: WARNING: pthread support on OpenBSD is unstable!" >&6;}
17893 AM_CFLAGS="$AM_CFLAGS -pthread"
17895 esac
17896 LIBS="$PTHREAD_LIBS $LIBS"
17897 AM_CFLAGS="$AM_CFLAGS $PTHREAD_CFLAGS"
17898 CC="$PTHREAD_CC"
17900 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
17904 else
17905 acx_pthread_ok=no
17907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17908 $as_echo "no" >&6; }
17911 ac_ext=c
17912 ac_cpp='$CPP $CPPFLAGS'
17913 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17914 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17915 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
17920 $as_echo_n "checking for library containing nanosleep... " >&6; }
17921 if ${ac_cv_search_nanosleep+:} false; then :
17922 $as_echo_n "(cached) " >&6
17923 else
17924 ac_func_search_save_LIBS=$LIBS
17925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17926 /* end confdefs.h. */
17928 /* Override any GCC internal prototype to avoid an error.
17929 Use char because int might match the return type of a GCC
17930 builtin and then its argument prototype would still apply. */
17931 #ifdef __cplusplus
17932 extern "C"
17933 #endif
17934 char nanosleep ();
17936 main ()
17938 return nanosleep ();
17940 return 0;
17942 _ACEOF
17943 for ac_lib in '' rt posix4; do
17944 if test -z "$ac_lib"; then
17945 ac_res="none required"
17946 else
17947 ac_res=-l$ac_lib
17948 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17950 if ac_fn_c_try_link "$LINENO"; then :
17951 ac_cv_search_nanosleep=$ac_res
17953 rm -f core conftest.err conftest.$ac_objext \
17954 conftest$ac_exeext
17955 if ${ac_cv_search_nanosleep+:} false; then :
17956 break
17958 done
17959 if ${ac_cv_search_nanosleep+:} false; then :
17961 else
17962 ac_cv_search_nanosleep=no
17964 rm conftest.$ac_ext
17965 LIBS=$ac_func_search_save_LIBS
17967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
17968 $as_echo "$ac_cv_search_nanosleep" >&6; }
17969 ac_res=$ac_cv_search_nanosleep
17970 if test "$ac_res" != no; then :
17971 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17974 $as_echo "#define HAVE_NANOSLEEP 1" >>confdefs.h
17984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
17985 $as_echo_n "checking for ANSI C header files... " >&6; }
17986 if ${ac_cv_header_stdc+:} false; then :
17987 $as_echo_n "(cached) " >&6
17988 else
17989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17990 /* end confdefs.h. */
17991 #include <stdlib.h>
17992 #include <stdarg.h>
17993 #include <string.h>
17994 #include <float.h>
17997 main ()
18001 return 0;
18003 _ACEOF
18004 if ac_fn_c_try_compile "$LINENO"; then :
18005 ac_cv_header_stdc=yes
18006 else
18007 ac_cv_header_stdc=no
18009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18011 if test $ac_cv_header_stdc = yes; then
18012 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
18013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18014 /* end confdefs.h. */
18015 #include <string.h>
18017 _ACEOF
18018 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18019 $EGREP "memchr" >/dev/null 2>&1; then :
18021 else
18022 ac_cv_header_stdc=no
18024 rm -f conftest*
18028 if test $ac_cv_header_stdc = yes; then
18029 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
18030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18031 /* end confdefs.h. */
18032 #include <stdlib.h>
18034 _ACEOF
18035 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18036 $EGREP "free" >/dev/null 2>&1; then :
18038 else
18039 ac_cv_header_stdc=no
18041 rm -f conftest*
18045 if test $ac_cv_header_stdc = yes; then
18046 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
18047 if test "$cross_compiling" = yes; then :
18049 else
18050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18051 /* end confdefs.h. */
18052 #include <ctype.h>
18053 #include <stdlib.h>
18054 #if ((' ' & 0x0FF) == 0x020)
18055 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
18056 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
18057 #else
18058 # define ISLOWER(c) \
18059 (('a' <= (c) && (c) <= 'i') \
18060 || ('j' <= (c) && (c) <= 'r') \
18061 || ('s' <= (c) && (c) <= 'z'))
18062 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
18063 #endif
18065 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
18067 main ()
18069 int i;
18070 for (i = 0; i < 256; i++)
18071 if (XOR (islower (i), ISLOWER (i))
18072 || toupper (i) != TOUPPER (i))
18073 return 2;
18074 return 0;
18076 _ACEOF
18077 if ac_fn_c_try_run "$LINENO"; then :
18079 else
18080 ac_cv_header_stdc=no
18082 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18083 conftest.$ac_objext conftest.beam conftest.$ac_ext
18088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
18089 $as_echo "$ac_cv_header_stdc" >&6; }
18090 if test $ac_cv_header_stdc = yes; then
18092 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
18096 ac_header_dirent=no
18097 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
18098 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
18099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
18100 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
18101 if eval \${$as_ac_Header+:} false; then :
18102 $as_echo_n "(cached) " >&6
18103 else
18104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18105 /* end confdefs.h. */
18106 #include <sys/types.h>
18107 #include <$ac_hdr>
18110 main ()
18112 if ((DIR *) 0)
18113 return 0;
18115 return 0;
18117 _ACEOF
18118 if ac_fn_c_try_compile "$LINENO"; then :
18119 eval "$as_ac_Header=yes"
18120 else
18121 eval "$as_ac_Header=no"
18123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18125 eval ac_res=\$$as_ac_Header
18126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18127 $as_echo "$ac_res" >&6; }
18128 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18129 cat >>confdefs.h <<_ACEOF
18130 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
18131 _ACEOF
18133 ac_header_dirent=$ac_hdr; break
18136 done
18137 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
18138 if test $ac_header_dirent = dirent.h; then
18139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
18140 $as_echo_n "checking for library containing opendir... " >&6; }
18141 if ${ac_cv_search_opendir+:} false; then :
18142 $as_echo_n "(cached) " >&6
18143 else
18144 ac_func_search_save_LIBS=$LIBS
18145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18146 /* end confdefs.h. */
18148 /* Override any GCC internal prototype to avoid an error.
18149 Use char because int might match the return type of a GCC
18150 builtin and then its argument prototype would still apply. */
18151 #ifdef __cplusplus
18152 extern "C"
18153 #endif
18154 char opendir ();
18156 main ()
18158 return opendir ();
18160 return 0;
18162 _ACEOF
18163 for ac_lib in '' dir; do
18164 if test -z "$ac_lib"; then
18165 ac_res="none required"
18166 else
18167 ac_res=-l$ac_lib
18168 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18170 if ac_fn_c_try_link "$LINENO"; then :
18171 ac_cv_search_opendir=$ac_res
18173 rm -f core conftest.err conftest.$ac_objext \
18174 conftest$ac_exeext
18175 if ${ac_cv_search_opendir+:} false; then :
18176 break
18178 done
18179 if ${ac_cv_search_opendir+:} false; then :
18181 else
18182 ac_cv_search_opendir=no
18184 rm conftest.$ac_ext
18185 LIBS=$ac_func_search_save_LIBS
18187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
18188 $as_echo "$ac_cv_search_opendir" >&6; }
18189 ac_res=$ac_cv_search_opendir
18190 if test "$ac_res" != no; then :
18191 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18195 else
18196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
18197 $as_echo_n "checking for library containing opendir... " >&6; }
18198 if ${ac_cv_search_opendir+:} false; then :
18199 $as_echo_n "(cached) " >&6
18200 else
18201 ac_func_search_save_LIBS=$LIBS
18202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18203 /* end confdefs.h. */
18205 /* Override any GCC internal prototype to avoid an error.
18206 Use char because int might match the return type of a GCC
18207 builtin and then its argument prototype would still apply. */
18208 #ifdef __cplusplus
18209 extern "C"
18210 #endif
18211 char opendir ();
18213 main ()
18215 return opendir ();
18217 return 0;
18219 _ACEOF
18220 for ac_lib in '' x; do
18221 if test -z "$ac_lib"; then
18222 ac_res="none required"
18223 else
18224 ac_res=-l$ac_lib
18225 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18227 if ac_fn_c_try_link "$LINENO"; then :
18228 ac_cv_search_opendir=$ac_res
18230 rm -f core conftest.err conftest.$ac_objext \
18231 conftest$ac_exeext
18232 if ${ac_cv_search_opendir+:} false; then :
18233 break
18235 done
18236 if ${ac_cv_search_opendir+:} false; then :
18238 else
18239 ac_cv_search_opendir=no
18241 rm conftest.$ac_ext
18242 LIBS=$ac_func_search_save_LIBS
18244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
18245 $as_echo "$ac_cv_search_opendir" >&6; }
18246 ac_res=$ac_cv_search_opendir
18247 if test "$ac_res" != no; then :
18248 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
18255 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
18256 if ${ac_cv_header_stat_broken+:} false; then :
18257 $as_echo_n "(cached) " >&6
18258 else
18259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18260 /* end confdefs.h. */
18261 #include <sys/types.h>
18262 #include <sys/stat.h>
18264 #if defined S_ISBLK && defined S_IFDIR
18265 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
18266 #endif
18268 #if defined S_ISBLK && defined S_IFCHR
18269 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
18270 #endif
18272 #if defined S_ISLNK && defined S_IFREG
18273 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
18274 #endif
18276 #if defined S_ISSOCK && defined S_IFREG
18277 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
18278 #endif
18280 _ACEOF
18281 if ac_fn_c_try_compile "$LINENO"; then :
18282 ac_cv_header_stat_broken=no
18283 else
18284 ac_cv_header_stat_broken=yes
18286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
18289 $as_echo "$ac_cv_header_stat_broken" >&6; }
18290 if test $ac_cv_header_stat_broken = yes; then
18292 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
18296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
18297 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
18298 if ${ac_cv_header_sys_wait_h+:} false; then :
18299 $as_echo_n "(cached) " >&6
18300 else
18301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18302 /* end confdefs.h. */
18303 #include <sys/types.h>
18304 #include <sys/wait.h>
18305 #ifndef WEXITSTATUS
18306 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
18307 #endif
18308 #ifndef WIFEXITED
18309 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
18310 #endif
18313 main ()
18315 int s;
18316 wait (&s);
18317 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
18319 return 0;
18321 _ACEOF
18322 if ac_fn_c_try_compile "$LINENO"; then :
18323 ac_cv_header_sys_wait_h=yes
18324 else
18325 ac_cv_header_sys_wait_h=no
18327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
18330 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
18331 if test $ac_cv_header_sys_wait_h = yes; then
18333 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
18337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be Included" >&5
18338 $as_echo_n "checking whether time.h and sys/time.h may both be Included... " >&6; }
18339 if ${ac_cv_header_time+:} false; then :
18340 $as_echo_n "(cached) " >&6
18341 else
18342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18343 /* end confdefs.h. */
18344 #include <sys/types.h>
18345 #include <sys/time.h>
18346 #include <time.h>
18349 main ()
18351 if ((struct tm *) 0)
18352 return 0;
18354 return 0;
18356 _ACEOF
18357 if ac_fn_c_try_compile "$LINENO"; then :
18358 ac_cv_header_time=yes
18359 else
18360 ac_cv_header_time=no
18362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
18365 $as_echo "$ac_cv_header_time" >&6; }
18366 if test $ac_cv_header_time = yes; then
18368 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
18372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
18373 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
18374 if ${ac_cv_sys_tiocgwinsz_in_termios_h+:} false; then :
18375 $as_echo_n "(cached) " >&6
18376 else
18377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18378 /* end confdefs.h. */
18379 #include <sys/types.h>
18380 #include <termios.h>
18381 #ifdef TIOCGWINSZ
18383 #endif
18385 _ACEOF
18386 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18387 $EGREP "yes" >/dev/null 2>&1; then :
18388 ac_cv_sys_tiocgwinsz_in_termios_h=yes
18389 else
18390 ac_cv_sys_tiocgwinsz_in_termios_h=no
18392 rm -f conftest*
18395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
18396 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
18398 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
18399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
18400 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
18401 if ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+:} false; then :
18402 $as_echo_n "(cached) " >&6
18403 else
18404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18405 /* end confdefs.h. */
18406 #include <sys/types.h>
18407 #include <sys/ioctl.h>
18408 #ifdef TIOCGWINSZ
18410 #endif
18412 _ACEOF
18413 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18414 $EGREP "yes" >/dev/null 2>&1; then :
18415 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
18416 else
18417 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
18419 rm -f conftest*
18422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
18423 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
18425 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
18427 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
18433 for ac_header in unistd.h
18434 do :
18435 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
18436 if test "x$ac_cv_header_unistd_h" = xyes; then :
18437 cat >>confdefs.h <<_ACEOF
18438 #define HAVE_UNISTD_H 1
18439 _ACEOF
18443 done
18446 for ac_header in errno.h \
18447 ctype.h \
18448 fcntl.h \
18449 signal.h \
18450 setjmp.h \
18451 memory.h \
18452 sys/param.h \
18453 sys/socket.h \
18454 sys/uio.h \
18455 sys/un.h \
18456 limits.h \
18457 wchar.h \
18458 sys/poll.h \
18459 stropts.h \
18460 netdb.h \
18461 syslog.h \
18462 sys/syslog.h \
18463 locale.h \
18464 langinfo.h \
18465 utime.h \
18466 sys/utime.h \
18467 pthread.h \
18468 pwd.h \
18469 assert.h
18470 do :
18471 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18472 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18473 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18474 cat >>confdefs.h <<_ACEOF
18475 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18476 _ACEOF
18480 done
18483 ac_fn_c_check_header_mongrel "$LINENO" "termios.h" "ac_cv_header_termios_h" "$ac_includes_default"
18484 if test "x$ac_cv_header_termios_h" = xyes; then :
18486 $as_echo "#define HAS_TERMIOS 1" >>confdefs.h
18488 else
18490 ac_fn_c_check_header_mongrel "$LINENO" "termio.h" "ac_cv_header_termio_h" "$ac_includes_default"
18491 if test "x$ac_cv_header_termio_h" = xyes; then :
18493 $as_echo "#define HAS_TERMIO 1" >>confdefs.h
18495 else
18497 ac_fn_c_check_header_mongrel "$LINENO" "sgtty.h" "ac_cv_header_sgtty_h" "$ac_includes_default"
18498 if test "x$ac_cv_header_sgtty_h" = xyes; then :
18500 $as_echo "#define HAS_SGTTY 1" >>confdefs.h
18502 else
18504 as_fn_error $? "Unable to figure out terminal control method" "$LINENO" 5
18520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
18521 $as_echo_n "checking return type of signal handlers... " >&6; }
18522 if ${ac_cv_type_signal+:} false; then :
18523 $as_echo_n "(cached) " >&6
18524 else
18525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18526 /* end confdefs.h. */
18527 #include <sys/types.h>
18528 #include <signal.h>
18531 main ()
18533 return *(signal (0, 0)) (0) == 1;
18535 return 0;
18537 _ACEOF
18538 if ac_fn_c_try_compile "$LINENO"; then :
18539 ac_cv_type_signal=int
18540 else
18541 ac_cv_type_signal=void
18543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
18546 $as_echo "$ac_cv_type_signal" >&6; }
18548 cat >>confdefs.h <<_ACEOF
18549 #define RETSIGTYPE $ac_cv_type_signal
18550 _ACEOF
18553 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
18554 if test "x$ac_cv_type_size_t" = xyes; then :
18556 else
18558 cat >>confdefs.h <<_ACEOF
18559 #define size_t unsigned int
18560 _ACEOF
18564 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
18565 if test "x$ac_cv_type_mode_t" = xyes; then :
18567 else
18569 cat >>confdefs.h <<_ACEOF
18570 #define mode_t int
18571 _ACEOF
18575 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
18576 if test "x$ac_cv_type_pid_t" = xyes; then :
18578 else
18580 cat >>confdefs.h <<_ACEOF
18581 #define pid_t int
18582 _ACEOF
18586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
18587 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
18588 if ${ac_cv_type_uid_t+:} false; then :
18589 $as_echo_n "(cached) " >&6
18590 else
18591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18592 /* end confdefs.h. */
18593 #include <sys/types.h>
18595 _ACEOF
18596 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18597 $EGREP "uid_t" >/dev/null 2>&1; then :
18598 ac_cv_type_uid_t=yes
18599 else
18600 ac_cv_type_uid_t=no
18602 rm -f conftest*
18605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
18606 $as_echo "$ac_cv_type_uid_t" >&6; }
18607 if test $ac_cv_type_uid_t = no; then
18609 $as_echo "#define uid_t int" >>confdefs.h
18612 $as_echo "#define gid_t int" >>confdefs.h
18616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
18617 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
18618 if ${ac_cv_struct_tm+:} false; then :
18619 $as_echo_n "(cached) " >&6
18620 else
18621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18622 /* end confdefs.h. */
18623 #include <sys/types.h>
18624 #include <time.h>
18627 main ()
18629 struct tm tm;
18630 int *p = &tm.tm_sec;
18631 return !p;
18633 return 0;
18635 _ACEOF
18636 if ac_fn_c_try_compile "$LINENO"; then :
18637 ac_cv_struct_tm=time.h
18638 else
18639 ac_cv_struct_tm=sys/time.h
18641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
18644 $as_echo "$ac_cv_struct_tm" >&6; }
18645 if test $ac_cv_struct_tm = sys/time.h; then
18647 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
18652 ac_fn_c_check_type "$LINENO" "union wait" "ac_cv_type_union_wait" "$ac_includes_default"
18653 if test "x$ac_cv_type_union_wait" = xyes; then :
18655 cat >>confdefs.h <<_ACEOF
18656 #define HAVE_UNION_WAIT 1
18657 _ACEOF
18663 for ac_header in stdint.h
18664 do :
18665 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
18666 if test "x$ac_cv_header_stdint_h" = xyes; then :
18667 cat >>confdefs.h <<_ACEOF
18668 #define HAVE_STDINT_H 1
18669 _ACEOF
18670 uint16=uint16_t
18671 else
18673 for ac_header in inttypes.h
18674 do :
18675 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
18676 if test "x$ac_cv_header_inttypes_h" = xyes; then :
18677 cat >>confdefs.h <<_ACEOF
18678 #define HAVE_INTTYPES_H 1
18679 _ACEOF
18680 uint16=uint16_t
18681 else
18683 for ac_header in sys/types.h
18684 do :
18685 ac_fn_c_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
18686 if test "x$ac_cv_header_sys_types_h" = xyes; then :
18687 cat >>confdefs.h <<_ACEOF
18688 #define HAVE_SYS_TYPES_H 1
18689 _ACEOF
18690 uint16=u_int16_t
18691 else
18693 # The cast to long int works around a bug in the HP C Compiler
18694 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18695 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18696 # This bug is HP SR number 8606223364.
18697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
18698 $as_echo_n "checking size of unsigned short... " >&6; }
18699 if ${ac_cv_sizeof_unsigned_short+:} false; then :
18700 $as_echo_n "(cached) " >&6
18701 else
18702 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short" "$ac_includes_default"; then :
18704 else
18705 if test "$ac_cv_type_unsigned_short" = yes; then
18706 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18707 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18708 as_fn_error 77 "cannot compute sizeof (unsigned short)
18709 See \`config.log' for more details" "$LINENO" 5; }
18710 else
18711 ac_cv_sizeof_unsigned_short=0
18716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
18717 $as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
18721 cat >>confdefs.h <<_ACEOF
18722 #define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
18723 _ACEOF
18726 if test $ac_cv_sizeof_unsigned_short -eq 2 ; then
18727 uint16="unsigned short"
18728 else
18729 # The cast to long int works around a bug in the HP C Compiler
18730 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18731 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18732 # This bug is HP SR number 8606223364.
18733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
18734 $as_echo_n "checking size of unsigned int... " >&6; }
18735 if ${ac_cv_sizeof_unsigned_int+:} false; then :
18736 $as_echo_n "(cached) " >&6
18737 else
18738 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then :
18740 else
18741 if test "$ac_cv_type_unsigned_int" = yes; then
18742 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18743 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18744 as_fn_error 77 "cannot compute sizeof (unsigned int)
18745 See \`config.log' for more details" "$LINENO" 5; }
18746 else
18747 ac_cv_sizeof_unsigned_int=0
18752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
18753 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
18757 cat >>confdefs.h <<_ACEOF
18758 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
18759 _ACEOF
18762 if $ac_cv_sizeof_unsigned_int -eq 2 ; then
18763 uint16="unsigned int"
18764 else
18765 as_fn_error $? "Unable to determine 16 bit integer type" "$LINENO" 5
18771 done
18776 done
18781 done
18784 cat >>confdefs.h <<_ACEOF
18785 #define UINT16 $uint16
18786 _ACEOF
18789 for ac_header in stdint.h
18790 do :
18791 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
18792 if test "x$ac_cv_header_stdint_h" = xyes; then :
18793 cat >>confdefs.h <<_ACEOF
18794 #define HAVE_STDINT_H 1
18795 _ACEOF
18796 uint32=uint32_t
18797 else
18799 for ac_header in inttypes.h
18800 do :
18801 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
18802 if test "x$ac_cv_header_inttypes_h" = xyes; then :
18803 cat >>confdefs.h <<_ACEOF
18804 #define HAVE_INTTYPES_H 1
18805 _ACEOF
18806 uint32=uint32_t
18807 else
18809 for ac_header in sys/types.h
18810 do :
18811 ac_fn_c_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
18812 if test "x$ac_cv_header_sys_types_h" = xyes; then :
18813 cat >>confdefs.h <<_ACEOF
18814 #define HAVE_SYS_TYPES_H 1
18815 _ACEOF
18816 uint32=u_int32_t
18817 else
18819 # The cast to long int works around a bug in the HP C Compiler
18820 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18821 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18822 # This bug is HP SR number 8606223364.
18823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
18824 $as_echo_n "checking size of unsigned int... " >&6; }
18825 if ${ac_cv_sizeof_unsigned_int+:} false; then :
18826 $as_echo_n "(cached) " >&6
18827 else
18828 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then :
18830 else
18831 if test "$ac_cv_type_unsigned_int" = yes; then
18832 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18833 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18834 as_fn_error 77 "cannot compute sizeof (unsigned int)
18835 See \`config.log' for more details" "$LINENO" 5; }
18836 else
18837 ac_cv_sizeof_unsigned_int=0
18842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
18843 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
18847 cat >>confdefs.h <<_ACEOF
18848 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
18849 _ACEOF
18852 if test $ac_cv_sizeof_unsigned_int -eq 4 ; then
18853 uint32="unsigned int"
18854 else
18855 # The cast to long int works around a bug in the HP C Compiler
18856 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18857 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18858 # This bug is HP SR number 8606223364.
18859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
18860 $as_echo_n "checking size of unsigned long... " >&6; }
18861 if ${ac_cv_sizeof_unsigned_long+:} false; then :
18862 $as_echo_n "(cached) " >&6
18863 else
18864 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
18866 else
18867 if test "$ac_cv_type_unsigned_long" = yes; then
18868 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18869 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18870 as_fn_error 77 "cannot compute sizeof (unsigned long)
18871 See \`config.log' for more details" "$LINENO" 5; }
18872 else
18873 ac_cv_sizeof_unsigned_long=0
18878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
18879 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
18883 cat >>confdefs.h <<_ACEOF
18884 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
18885 _ACEOF
18888 if $ac_cv_sizeof_unsigned_long -eq 4 ; then
18889 uint32="unsigned long"
18890 else
18891 as_fn_error $? "Unable to determine 32 bit integer type" "$LINENO" 5
18897 done
18902 done
18907 done
18910 cat >>confdefs.h <<_ACEOF
18911 #define UINT32 $uint32
18912 _ACEOF
18915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking argument pointer type of qsort compare function and base" >&5
18916 $as_echo_n "checking argument pointer type of qsort compare function and base... " >&6; }
18917 if ${ac_cv_func_qsort_argtype+:} false; then :
18918 $as_echo_n "(cached) " >&6
18919 else
18920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18921 /* end confdefs.h. */
18923 #if HAVE_STDLIB_H
18924 #include "stdlib.h"
18925 #endif
18927 extern void *base;
18928 extern sortf(const void *, const void *);
18929 int sortf(a, b)
18930 const void *a;
18931 const void *b; { return 0; }
18934 main ()
18937 qsort(base, 2, sizeof(char *), sortf);
18940 return 0;
18942 _ACEOF
18943 if ac_fn_c_try_compile "$LINENO"; then :
18944 ac_cv_func_qsort_argtype=void
18945 else
18946 ac_cv_func_qsort_argtype=char
18948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_qsort_argtype" >&5
18952 $as_echo "$ac_cv_func_qsort_argtype" >&6; }
18954 cat >>confdefs.h <<_ACEOF
18955 #define qsort_t $ac_cv_func_qsort_argtype
18956 _ACEOF
18960 for ac_header in sys/select.h sys/socket.h
18961 do :
18962 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18963 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18964 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18965 cat >>confdefs.h <<_ACEOF
18966 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18967 _ACEOF
18971 done
18973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
18974 $as_echo_n "checking types of arguments for select... " >&6; }
18975 if ${ac_cv_func_select_args+:} false; then :
18976 $as_echo_n "(cached) " >&6
18977 else
18978 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
18979 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
18980 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
18981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18982 /* end confdefs.h. */
18983 $ac_includes_default
18984 #ifdef HAVE_SYS_SELECT_H
18985 # include <sys/select.h>
18986 #endif
18987 #ifdef HAVE_SYS_SOCKET_H
18988 # include <sys/socket.h>
18989 #endif
18992 main ()
18994 extern int select ($ac_arg1,
18995 $ac_arg234, $ac_arg234, $ac_arg234,
18996 $ac_arg5);
18998 return 0;
19000 _ACEOF
19001 if ac_fn_c_try_compile "$LINENO"; then :
19002 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
19004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19005 done
19006 done
19007 done
19008 # Provide a safe default value.
19009 : "${ac_cv_func_select_args=int,int *,struct timeval *}"
19012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
19013 $as_echo "$ac_cv_func_select_args" >&6; }
19014 ac_save_IFS=$IFS; IFS=','
19015 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
19016 IFS=$ac_save_IFS
19017 shift
19019 cat >>confdefs.h <<_ACEOF
19020 #define SELECT_TYPE_ARG1 $1
19021 _ACEOF
19024 cat >>confdefs.h <<_ACEOF
19025 #define SELECT_TYPE_ARG234 ($2)
19026 _ACEOF
19029 cat >>confdefs.h <<_ACEOF
19030 #define SELECT_TYPE_ARG5 ($3)
19031 _ACEOF
19033 rm -f conftest*
19036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strcoll" >&5
19037 $as_echo_n "checking for working strcoll... " >&6; }
19038 if ${ac_cv_func_strcoll_works+:} false; then :
19039 $as_echo_n "(cached) " >&6
19040 else
19041 if test "$cross_compiling" = yes; then :
19042 ac_cv_func_strcoll_works=no
19043 else
19044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19045 /* end confdefs.h. */
19046 $ac_includes_default
19048 main ()
19050 return (strcoll ("abc", "def") >= 0 ||
19051 strcoll ("ABC", "DEF") >= 0 ||
19052 strcoll ("123", "456") >= 0)
19054 return 0;
19056 _ACEOF
19057 if ac_fn_c_try_run "$LINENO"; then :
19058 ac_cv_func_strcoll_works=yes
19059 else
19060 ac_cv_func_strcoll_works=no
19062 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19063 conftest.$ac_objext conftest.beam conftest.$ac_ext
19067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strcoll_works" >&5
19068 $as_echo "$ac_cv_func_strcoll_works" >&6; }
19069 if test $ac_cv_func_strcoll_works = yes; then
19071 $as_echo "#define HAVE_STRCOLL 1" >>confdefs.h
19077 for ac_header in vfork.h
19078 do :
19079 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
19080 if test "x$ac_cv_header_vfork_h" = xyes; then :
19081 cat >>confdefs.h <<_ACEOF
19082 #define HAVE_VFORK_H 1
19083 _ACEOF
19087 done
19089 for ac_func in fork vfork
19090 do :
19091 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19092 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19093 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19094 cat >>confdefs.h <<_ACEOF
19095 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19096 _ACEOF
19099 done
19101 if test "x$ac_cv_func_fork" = xyes; then
19102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
19103 $as_echo_n "checking for working fork... " >&6; }
19104 if ${ac_cv_func_fork_works+:} false; then :
19105 $as_echo_n "(cached) " >&6
19106 else
19107 if test "$cross_compiling" = yes; then :
19108 ac_cv_func_fork_works=cross
19109 else
19110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19111 /* end confdefs.h. */
19112 $ac_includes_default
19114 main ()
19117 /* By Ruediger Kuhlmann. */
19118 return fork () < 0;
19121 return 0;
19123 _ACEOF
19124 if ac_fn_c_try_run "$LINENO"; then :
19125 ac_cv_func_fork_works=yes
19126 else
19127 ac_cv_func_fork_works=no
19129 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19130 conftest.$ac_objext conftest.beam conftest.$ac_ext
19134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
19135 $as_echo "$ac_cv_func_fork_works" >&6; }
19137 else
19138 ac_cv_func_fork_works=$ac_cv_func_fork
19140 if test "x$ac_cv_func_fork_works" = xcross; then
19141 case $host in
19142 *-*-amigaos* | *-*-msdosdjgpp*)
19143 # Override, as these systems have only a dummy fork() stub
19144 ac_cv_func_fork_works=no
19147 ac_cv_func_fork_works=yes
19149 esac
19150 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
19151 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
19153 ac_cv_func_vfork_works=$ac_cv_func_vfork
19154 if test "x$ac_cv_func_vfork" = xyes; then
19155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
19156 $as_echo_n "checking for working vfork... " >&6; }
19157 if ${ac_cv_func_vfork_works+:} false; then :
19158 $as_echo_n "(cached) " >&6
19159 else
19160 if test "$cross_compiling" = yes; then :
19161 ac_cv_func_vfork_works=cross
19162 else
19163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19164 /* end confdefs.h. */
19165 /* Thanks to Paul Eggert for this test. */
19166 $ac_includes_default
19167 #include <sys/wait.h>
19168 #ifdef HAVE_VFORK_H
19169 # include <vfork.h>
19170 #endif
19171 /* On some sparc systems, changes by the child to local and incoming
19172 argument registers are propagated back to the parent. The compiler
19173 is told about this with #include <vfork.h>, but some compilers
19174 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
19175 static variable whose address is put into a register that is
19176 clobbered by the vfork. */
19177 static void
19178 #ifdef __cplusplus
19179 sparc_address_test (int arg)
19180 # else
19181 sparc_address_test (arg) int arg;
19182 #endif
19184 static pid_t child;
19185 if (!child) {
19186 child = vfork ();
19187 if (child < 0) {
19188 perror ("vfork");
19189 _exit(2);
19191 if (!child) {
19192 arg = getpid();
19193 write(-1, "", 0);
19194 _exit (arg);
19200 main ()
19202 pid_t parent = getpid ();
19203 pid_t child;
19205 sparc_address_test (0);
19207 child = vfork ();
19209 if (child == 0) {
19210 /* Here is another test for sparc vfork register problems. This
19211 test uses lots of local variables, at least as many local
19212 variables as main has allocated so far including compiler
19213 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
19214 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
19215 reuse the register of parent for one of the local variables,
19216 since it will think that parent can't possibly be used any more
19217 in this routine. Assigning to the local variable will thus
19218 munge parent in the parent process. */
19219 pid_t
19220 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
19221 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
19222 /* Convince the compiler that p..p7 are live; otherwise, it might
19223 use the same hardware register for all 8 local variables. */
19224 if (p != p1 || p != p2 || p != p3 || p != p4
19225 || p != p5 || p != p6 || p != p7)
19226 _exit(1);
19228 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
19229 from child file descriptors. If the child closes a descriptor
19230 before it execs or exits, this munges the parent's descriptor
19231 as well. Test for this by closing stdout in the child. */
19232 _exit(close(fileno(stdout)) != 0);
19233 } else {
19234 int status;
19235 struct stat st;
19237 while (wait(&status) != child)
19239 return (
19240 /* Was there some problem with vforking? */
19241 child < 0
19243 /* Did the child fail? (This shouldn't happen.) */
19244 || status
19246 /* Did the vfork/compiler bug occur? */
19247 || parent != getpid()
19249 /* Did the file descriptor bug occur? */
19250 || fstat(fileno(stdout), &st) != 0
19254 _ACEOF
19255 if ac_fn_c_try_run "$LINENO"; then :
19256 ac_cv_func_vfork_works=yes
19257 else
19258 ac_cv_func_vfork_works=no
19260 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19261 conftest.$ac_objext conftest.beam conftest.$ac_ext
19265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
19266 $as_echo "$ac_cv_func_vfork_works" >&6; }
19269 if test "x$ac_cv_func_fork_works" = xcross; then
19270 ac_cv_func_vfork_works=$ac_cv_func_vfork
19271 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
19272 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
19275 if test "x$ac_cv_func_vfork_works" = xyes; then
19277 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
19279 else
19281 $as_echo "#define vfork fork" >>confdefs.h
19284 if test "x$ac_cv_func_fork_works" = xyes; then
19286 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
19290 for ac_func in strchr \
19291 memcpy \
19292 strtol \
19293 strtoul \
19294 select \
19295 poll \
19296 qsort \
19297 getuid \
19298 getpwuid \
19299 getpwnam \
19300 gettimeofday \
19301 tmpfile \
19302 uname \
19303 rename \
19304 read \
19305 signal \
19306 setjmp \
19307 chown \
19308 wait4 \
19309 waitpid \
19310 wait \
19311 srandom \
19312 popen \
19313 pclose \
19314 fsync \
19315 truncate \
19316 listen \
19317 wcwidth \
19318 mbstowcs \
19319 wcrtomb \
19320 putenv \
19321 setenv
19322 do :
19323 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19324 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19325 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19326 cat >>confdefs.h <<_ACEOF
19327 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19328 _ACEOF
19331 done
19334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostname" >&5
19335 $as_echo_n "checking for library containing gethostname... " >&6; }
19336 if ${ac_cv_search_gethostname+:} false; then :
19337 $as_echo_n "(cached) " >&6
19338 else
19339 ac_func_search_save_LIBS=$LIBS
19340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19341 /* end confdefs.h. */
19343 /* Override any GCC internal prototype to avoid an error.
19344 Use char because int might match the return type of a GCC
19345 builtin and then its argument prototype would still apply. */
19346 #ifdef __cplusplus
19347 extern "C"
19348 #endif
19349 char gethostname ();
19351 main ()
19353 return gethostname ();
19355 return 0;
19357 _ACEOF
19358 for ac_lib in '' nsl; do
19359 if test -z "$ac_lib"; then
19360 ac_res="none required"
19361 else
19362 ac_res=-l$ac_lib
19363 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19365 if ac_fn_c_try_link "$LINENO"; then :
19366 ac_cv_search_gethostname=$ac_res
19368 rm -f core conftest.err conftest.$ac_objext \
19369 conftest$ac_exeext
19370 if ${ac_cv_search_gethostname+:} false; then :
19371 break
19373 done
19374 if ${ac_cv_search_gethostname+:} false; then :
19376 else
19377 ac_cv_search_gethostname=no
19379 rm conftest.$ac_ext
19380 LIBS=$ac_func_search_save_LIBS
19382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostname" >&5
19383 $as_echo "$ac_cv_search_gethostname" >&6; }
19384 ac_res=$ac_cv_search_gethostname
19385 if test "$ac_res" != no; then :
19386 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
19392 $as_echo_n "checking for library containing socket... " >&6; }
19393 if ${ac_cv_search_socket+:} false; then :
19394 $as_echo_n "(cached) " >&6
19395 else
19396 ac_func_search_save_LIBS=$LIBS
19397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19398 /* end confdefs.h. */
19400 /* Override any GCC internal prototype to avoid an error.
19401 Use char because int might match the return type of a GCC
19402 builtin and then its argument prototype would still apply. */
19403 #ifdef __cplusplus
19404 extern "C"
19405 #endif
19406 char socket ();
19408 main ()
19410 return socket ();
19412 return 0;
19414 _ACEOF
19415 for ac_lib in '' socket; do
19416 if test -z "$ac_lib"; then
19417 ac_res="none required"
19418 else
19419 ac_res=-l$ac_lib
19420 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19422 if ac_fn_c_try_link "$LINENO"; then :
19423 ac_cv_search_socket=$ac_res
19425 rm -f core conftest.err conftest.$ac_objext \
19426 conftest$ac_exeext
19427 if ${ac_cv_search_socket+:} false; then :
19428 break
19430 done
19431 if ${ac_cv_search_socket+:} false; then :
19433 else
19434 ac_cv_search_socket=no
19436 rm conftest.$ac_ext
19437 LIBS=$ac_func_search_save_LIBS
19439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
19440 $as_echo "$ac_cv_search_socket" >&6; }
19441 ac_res=$ac_cv_search_socket
19442 if test "$ac_res" != no; then :
19443 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19445 else
19447 WEB_BUILD=
19452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing bind" >&5
19453 $as_echo_n "checking for library containing bind... " >&6; }
19454 if ${ac_cv_search_bind+:} false; then :
19455 $as_echo_n "(cached) " >&6
19456 else
19457 ac_func_search_save_LIBS=$LIBS
19458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19459 /* end confdefs.h. */
19461 /* Override any GCC internal prototype to avoid an error.
19462 Use char because int might match the return type of a GCC
19463 builtin and then its argument prototype would still apply. */
19464 #ifdef __cplusplus
19465 extern "C"
19466 #endif
19467 char bind ();
19469 main ()
19471 return bind ();
19473 return 0;
19475 _ACEOF
19476 for ac_lib in '' bind; do
19477 if test -z "$ac_lib"; then
19478 ac_res="none required"
19479 else
19480 ac_res=-l$ac_lib
19481 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19483 if ac_fn_c_try_link "$LINENO"; then :
19484 ac_cv_search_bind=$ac_res
19486 rm -f core conftest.err conftest.$ac_objext \
19487 conftest$ac_exeext
19488 if ${ac_cv_search_bind+:} false; then :
19489 break
19491 done
19492 if ${ac_cv_search_bind+:} false; then :
19494 else
19495 ac_cv_search_bind=no
19497 rm conftest.$ac_ext
19498 LIBS=$ac_func_search_save_LIBS
19500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_bind" >&5
19501 $as_echo "$ac_cv_search_bind" >&6; }
19502 ac_res=$ac_cv_search_bind
19503 if test "$ac_res" != no; then :
19504 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19506 else
19508 WEB_BUILD=
19513 for ac_func in sigaction sigemptyset sigaddset sigprocmask
19514 do :
19515 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19516 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19517 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19518 cat >>confdefs.h <<_ACEOF
19519 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19520 _ACEOF
19523 $as_echo "#define POSIX_SIGNALS /**/" >>confdefs.h
19526 else
19528 for ac_func in sigset sigrelse
19529 do :
19530 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19531 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19532 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19533 cat >>confdefs.h <<_ACEOF
19534 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19535 _ACEOF
19538 $as_echo "#define SYSV_SIGNALS /**/" >>confdefs.h
19542 done
19546 done
19549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing syslog" >&5
19550 $as_echo_n "checking for library containing syslog... " >&6; }
19551 if ${ac_cv_search_syslog+:} false; then :
19552 $as_echo_n "(cached) " >&6
19553 else
19554 ac_func_search_save_LIBS=$LIBS
19555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19556 /* end confdefs.h. */
19558 /* Override any GCC internal prototype to avoid an error.
19559 Use char because int might match the return type of a GCC
19560 builtin and then its argument prototype would still apply. */
19561 #ifdef __cplusplus
19562 extern "C"
19563 #endif
19564 char syslog ();
19566 main ()
19568 return syslog ();
19570 return 0;
19572 _ACEOF
19573 for ac_lib in '' bsd socket inet; do
19574 if test -z "$ac_lib"; then
19575 ac_res="none required"
19576 else
19577 ac_res=-l$ac_lib
19578 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19580 if ac_fn_c_try_link "$LINENO"; then :
19581 ac_cv_search_syslog=$ac_res
19583 rm -f core conftest.err conftest.$ac_objext \
19584 conftest$ac_exeext
19585 if ${ac_cv_search_syslog+:} false; then :
19586 break
19588 done
19589 if ${ac_cv_search_syslog+:} false; then :
19591 else
19592 ac_cv_search_syslog=no
19594 rm conftest.$ac_ext
19595 LIBS=$ac_func_search_save_LIBS
19597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_syslog" >&5
19598 $as_echo "$ac_cv_search_syslog" >&6; }
19599 ac_res=$ac_cv_search_syslog
19600 if test "$ac_res" != no; then :
19601 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19604 $as_echo "#define HAVE_SYSLOG 1" >>confdefs.h
19611 if test -n "$alpine_with_local_maildir" ; then
19612 alpine_local_maildir=$alpine_with_local_maildir
19613 elif test -d /var/spool/mail ; then
19614 alpine_local_maildir="/var/spool/mail"
19615 elif test -d /var/mail ; then
19616 alpine_local_maildir="/var/mail"
19617 else
19618 alpine_local_maildir="/usr/spool/mail"
19621 if test -n "$alpine_with_c_client_target" ; then
19622 alpine_c_client_target=$alpine_with_c_client_target
19626 cat >>confdefs.h <<_ACEOF
19627 #define SYSTYPE "$systype"
19628 _ACEOF
19631 cat >>confdefs.h <<_ACEOF
19632 #define C_FILESEP '$alpine_path_delim'
19633 _ACEOF
19636 cat >>confdefs.h <<_ACEOF
19637 #define S_FILESEP "$alpine_path_delim"
19638 _ACEOF
19641 cat >>confdefs.h <<_ACEOF
19642 #define MAILDIR "$alpine_local_maildir"
19643 _ACEOF
19646 cat >>confdefs.h <<_ACEOF
19647 #define MODE_READONLY $alpine_mode_readonly
19648 _ACEOF
19651 C_CLIENT_TARGET=$alpine_c_client_target
19653 C_CLIENT_WITH_IPV6=$c_client_ip6
19655 if test "x$alpine_SSLTYPE" = "xnone" ; then
19656 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * NOT Including SSL Support" >&5
19657 $as_echo "$as_me: * * * NOT Including SSL Support" >&6;}
19658 c_client_specials="${c_client_specials}SSLTYPE=none "
19659 else
19661 if test -n "$alpine_SSLCERTS" -a -d "$alpine_SSLCERTS" ; then
19662 certdir="$alpine_SSLCERTS"
19663 elif test -n "$alpine_SSLDIR" -a -d "${alpine_SSLDIR}/certs" ; then
19664 certdir="${alpine_SSLDIR}/certs"
19665 elif test -n "$alpine_SSLDIR" -a -d "${alpine_SSLDIR}/ssl/certs" ; then
19666 certdir="${alpine_SSLDIR}/ssl/certs"
19667 elif test -n "$alpine_SSLCERTS_ORIG" -a -d "$alpine_SSLCERTS_ORIG" ; then
19668 certdir="$alpine_SSLCERTS_ORIG"
19669 else
19670 { $as_echo "$as_me:${as_lineno-$LINENO}: SSL Problem: certificate directory not found" >&5
19671 $as_echo "$as_me: SSL Problem: certificate directory not found" >&6;}
19674 if test "x$with_smime" != "xno" ; then
19675 if test -n "$certdir" ; then
19677 $as_echo "#define SMIME /**/" >>confdefs.h
19680 cat >>confdefs.h <<_ACEOF
19681 #define SMIME_SSLCERTS "$certdir"
19682 _ACEOF
19687 if test ! -f ${certdir}/factory.pem ; then
19688 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * SSL file \"${certdir}/factory.pem\" is missing." >&5
19689 $as_echo "$as_me: * * * SSL file \"${certdir}/factory.pem\" is missing." >&6;}
19690 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * This might indicate that CA certs did not get properly" >&5
19691 $as_echo "$as_me: * * * This might indicate that CA certs did not get properly" >&6;}
19692 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * installed. If you get certificate validation failures" >&5
19693 $as_echo "$as_me: * * * installed. If you get certificate validation failures" >&6;}
19694 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * in Alpine, this might be the reason for them." >&5
19695 $as_echo "$as_me: * * * in Alpine, this might be the reason for them." >&6;}
19698 if test -z "`ls ${certdir} | $EGREP '^[0-9A-Fa-f]{8}\.[0-9]'`" ; then
19699 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * No 8-hexdigit symlinks in certificate directory \"${certdir}\"." >&5
19700 $as_echo "$as_me: * * * No 8-hexdigit symlinks in certificate directory \"${certdir}\"." >&6;}
19701 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * This might indicate that CA certs did not get properly" >&5
19702 $as_echo "$as_me: * * * This might indicate that CA certs did not get properly" >&6;}
19703 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * installed. If you get certificate validation failures" >&5
19704 $as_echo "$as_me: * * * installed. If you get certificate validation failures" >&6;}
19705 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * in Alpine, this might be the reason for them." >&5
19706 $as_echo "$as_me: * * * in Alpine, this might be the reason for them." >&6;}
19709 if test -n "$alpine_SSLINCLUDE" ; then
19710 c_client_specials="${c_client_specials}SSLINCLUDE=$alpine_SSLINCLUDE "
19713 if test -n "$alpine_SSLLIB" ; then
19714 c_client_specials="${c_client_specials}SSLLIB=$alpine_SSLLIB "
19717 if test -n "$alpine_SSLDIR" ; then
19718 c_client_specials="${c_client_specials}SSLDIR=$alpine_SSLDIR "
19721 if test -n "$certdir" ; then
19722 c_client_specials="${c_client_specials}SSLCERTS=$certdir "
19725 if test -n "$alpine_SSLKEYS" ; then
19726 c_client_specials="${c_client_specials}SSLKEYS=$alpine_SSLKEYS "
19730 if test "x$alpine_GSSTYPE" != "xnone" ; then
19731 c_client_specials="${c_client_specials}EXTRAAUTHENTICATORS=gss "
19732 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * Including Kerberos5 functionality" >&5
19733 $as_echo "$as_me: * * * Including Kerberos5 functionality" >&6;}
19736 if test -n "$CPPFLAGS" ; then
19737 alpine_c_client_cflags="$alpine_c_client_cflags ${CPPFLAGS}"
19739 if test -n "$CFLAGS" ; then
19740 alpine_c_client_cflags="$alpine_c_client_cflags ${CFLAGS}"
19743 if test -n "$alpine_c_client_cflags" ; then
19744 C_CLIENT_CFLAGS=EXTRACFLAGS=\"$alpine_c_client_cflags\"
19748 if test -n "$LDFLAGS" ; then
19749 alpine_c_client_ldflags="$alpine_c_client_ldflags ${LDFLAGS}"
19751 if test -n "$LIBS" ; then
19752 alpine_c_client_ldflags="$alpine_c_client_ldflags ${LIBS}"
19755 if test -n "$alpine_c_client_ldflags" ; then
19756 C_CLIENT_LDFLAGS=EXTRALDFLAGS=\"$alpine_c_client_ldflags\"
19760 if test -n "$alpine_c_client_gccoptlevel" ; then
19761 C_CLIENT_GCCOPTLEVEL=GCCOPTLEVEL=\"$alpine_c_client_gccoptlevel\"
19765 C_CLIENT_SPECIALS=$c_client_specials
19768 if test -z "$WEB_BUILD" ; then
19769 WEB_PUBCOOKIE_BUILD=
19770 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * TCL libraries could not be found." >&5
19771 $as_echo "$as_me: * * * TCL libraries could not be found." >&6;}
19772 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * WEB ALPINE COMPONENT WILL NOT BE BUILT." >&5
19773 $as_echo "$as_me: * * * WEB ALPINE COMPONENT WILL NOT BE BUILT." >&6;}
19774 else
19775 if test -n "$WEB_PUBCOOKIE_BUILD" ; then
19776 if test "x$alpine_GSSTYPE" = "xnone" ; then
19777 WEB_PUBCOOKIE_BUILD=
19778 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * Kerberos5 support not found." >&5
19779 $as_echo "$as_me: * * * Kerberos5 support not found." >&6;}
19780 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * WEB ALPINE PUBCOOKIE COMPONENT WILL NOT BE BUILT." >&5
19781 $as_echo "$as_me: * * * WEB ALPINE PUBCOOKIE COMPONENT WILL NOT BE BUILT." >&6;}
19782 elif test -z "$WEB_BINDIR" ; then
19783 WEB_PUBCOOKIE_BUILD=
19784 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * Web Alpine binary directory not provided." >&5
19785 $as_echo "$as_me: * * * Web Alpine binary directory not provided." >&6;}
19786 as_fn_error $? "* * * --with-pubcookie requires --with-web-bin=PATH.
19787 Please re-run configure with these options:
19788 --with-pubcookie --with-web-bin=/usr/local/libexec/alpine/bin" "$LINENO" 5
19789 else
19791 $as_echo "#define PUBCOOKIE 1" >>confdefs.h
19793 WEB_PUBCOOKIE_LIB=../pubcookie/libauthgssproxy.a
19794 WEB_PUBCOOKIE_LINK=gssapi_proxy.l
19810 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"
19812 cat >confcache <<\_ACEOF
19813 # This file is a shell script that caches the results of configure
19814 # tests run on this system so they can be shared between configure
19815 # scripts and configure runs, see configure's option --config-cache.
19816 # It is not useful on other systems. If it contains results you don't
19817 # want to keep, you may remove or edit it.
19819 # config.status only pays attention to the cache file if you give it
19820 # the --recheck option to rerun configure.
19822 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19823 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19824 # following values.
19826 _ACEOF
19828 # The following way of writing the cache mishandles newlines in values,
19829 # but we know of no workaround that is simple, portable, and efficient.
19830 # So, we kill variables containing newlines.
19831 # Ultrix sh set writes to stderr and can't be redirected directly,
19832 # and sets the high bit in the cache file unless we assign to the vars.
19834 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19835 eval ac_val=\$$ac_var
19836 case $ac_val in #(
19837 *${as_nl}*)
19838 case $ac_var in #(
19839 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19840 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19841 esac
19842 case $ac_var in #(
19843 _ | IFS | as_nl) ;; #(
19844 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19845 *) { eval $ac_var=; unset $ac_var;} ;;
19846 esac ;;
19847 esac
19848 done
19850 (set) 2>&1 |
19851 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19852 *${as_nl}ac_space=\ *)
19853 # `set' does not quote correctly, so add quotes: double-quote
19854 # substitution turns \\\\ into \\, and sed turns \\ into \.
19855 sed -n \
19856 "s/'/'\\\\''/g;
19857 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19858 ;; #(
19860 # `set' quotes correctly as required by POSIX, so do not add quotes.
19861 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19863 esac |
19864 sort
19866 sed '
19867 /^ac_cv_env_/b end
19868 t clear
19869 :clear
19870 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19871 t end
19872 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19873 :end' >>confcache
19874 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19875 if test -w "$cache_file"; then
19876 if test "x$cache_file" != "x/dev/null"; then
19877 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19878 $as_echo "$as_me: updating cache $cache_file" >&6;}
19879 if test ! -f "$cache_file" || test -h "$cache_file"; then
19880 cat confcache >"$cache_file"
19881 else
19882 case $cache_file in #(
19883 */* | ?:*)
19884 mv -f confcache "$cache_file"$$ &&
19885 mv -f "$cache_file"$$ "$cache_file" ;; #(
19887 mv -f confcache "$cache_file" ;;
19888 esac
19891 else
19892 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19893 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19896 rm -f confcache
19898 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19899 # Let make expand exec_prefix.
19900 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19902 DEFS=-DHAVE_CONFIG_H
19904 ac_libobjs=
19905 ac_ltlibobjs=
19907 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19908 # 1. Remove the extension, and $U if already installed.
19909 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19910 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19911 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19912 # will be set to the directory where LIBOBJS objects are built.
19913 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19914 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19915 done
19916 LIBOBJS=$ac_libobjs
19918 LTLIBOBJS=$ac_ltlibobjs
19921 if test -n "$EXEEXT"; then
19922 am__EXEEXT_TRUE=
19923 am__EXEEXT_FALSE='#'
19924 else
19925 am__EXEEXT_TRUE='#'
19926 am__EXEEXT_FALSE=
19929 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19930 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
19931 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19933 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19934 as_fn_error $? "conditional \"AMDEP\" was never defined.
19935 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19937 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19938 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19939 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19942 : "${CONFIG_STATUS=./config.status}"
19943 ac_write_fail=0
19944 ac_clean_files_save=$ac_clean_files
19945 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19946 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19947 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19948 as_write_fail=0
19949 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19950 #! $SHELL
19951 # Generated by $as_me.
19952 # Run this file to recreate the current configuration.
19953 # Compiler output produced by configure, useful for debugging
19954 # configure, is in config.log if it exists.
19956 debug=false
19957 ac_cs_recheck=false
19958 ac_cs_silent=false
19960 SHELL=\${CONFIG_SHELL-$SHELL}
19961 export SHELL
19962 _ASEOF
19963 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19964 ## -------------------- ##
19965 ## M4sh Initialization. ##
19966 ## -------------------- ##
19968 # Be more Bourne compatible
19969 DUALCASE=1; export DUALCASE # for MKS sh
19970 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19971 emulate sh
19972 NULLCMD=:
19973 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19974 # is contrary to our usage. Disable this feature.
19975 alias -g '${1+"$@"}'='"$@"'
19976 setopt NO_GLOB_SUBST
19977 else
19978 case `(set -o) 2>/dev/null` in #(
19979 *posix*) :
19980 set -o posix ;; #(
19981 *) :
19983 esac
19987 as_nl='
19989 export as_nl
19990 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19991 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19992 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19993 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19994 # Prefer a ksh shell builtin over an external printf program on Solaris,
19995 # but without wasting forks for bash or zsh.
19996 if test -z "$BASH_VERSION$ZSH_VERSION" \
19997 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19998 as_echo='print -r --'
19999 as_echo_n='print -rn --'
20000 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20001 as_echo='printf %s\n'
20002 as_echo_n='printf %s'
20003 else
20004 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20005 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20006 as_echo_n='/usr/ucb/echo -n'
20007 else
20008 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20009 as_echo_n_body='eval
20010 arg=$1;
20011 case $arg in #(
20012 *"$as_nl"*)
20013 expr "X$arg" : "X\\(.*\\)$as_nl";
20014 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20015 esac;
20016 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20018 export as_echo_n_body
20019 as_echo_n='sh -c $as_echo_n_body as_echo'
20021 export as_echo_body
20022 as_echo='sh -c $as_echo_body as_echo'
20025 # The user is always right.
20026 if test "${PATH_SEPARATOR+set}" != set; then
20027 PATH_SEPARATOR=:
20028 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20029 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20030 PATH_SEPARATOR=';'
20035 # IFS
20036 # We need space, tab and new line, in precisely that order. Quoting is
20037 # there to prevent editors from complaining about space-tab.
20038 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20039 # splitting by setting IFS to empty value.)
20040 IFS=" "" $as_nl"
20042 # Find who we are. Look in the path if we contain no directory separator.
20043 as_myself=
20044 case $0 in #((
20045 *[\\/]* ) as_myself=$0 ;;
20046 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20047 for as_dir in $PATH
20049 IFS=$as_save_IFS
20050 test -z "$as_dir" && as_dir=.
20051 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20052 done
20053 IFS=$as_save_IFS
20056 esac
20057 # We did not find ourselves, most probably we were run as `sh COMMAND'
20058 # in which case we are not to be found in the path.
20059 if test "x$as_myself" = x; then
20060 as_myself=$0
20062 if test ! -f "$as_myself"; then
20063 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20064 exit 1
20067 # Unset variables that we do not need and which cause bugs (e.g. in
20068 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
20069 # suppresses any "Segmentation fault" message there. '((' could
20070 # trigger a bug in pdksh 5.2.14.
20071 for as_var in BASH_ENV ENV MAIL MAILPATH
20072 do eval test x\${$as_var+set} = xset \
20073 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20074 done
20075 PS1='$ '
20076 PS2='> '
20077 PS4='+ '
20079 # NLS nuisances.
20080 LC_ALL=C
20081 export LC_ALL
20082 LANGUAGE=C
20083 export LANGUAGE
20085 # CDPATH.
20086 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20089 # as_fn_error STATUS ERROR [LINENO LOG_FD]
20090 # ----------------------------------------
20091 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20092 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20093 # script with STATUS, using 1 if that was 0.
20094 as_fn_error ()
20096 as_status=$1; test $as_status -eq 0 && as_status=1
20097 if test "$4"; then
20098 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20099 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20101 $as_echo "$as_me: error: $2" >&2
20102 as_fn_exit $as_status
20103 } # as_fn_error
20106 # as_fn_set_status STATUS
20107 # -----------------------
20108 # Set $? to STATUS, without forking.
20109 as_fn_set_status ()
20111 return $1
20112 } # as_fn_set_status
20114 # as_fn_exit STATUS
20115 # -----------------
20116 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20117 as_fn_exit ()
20119 set +e
20120 as_fn_set_status $1
20121 exit $1
20122 } # as_fn_exit
20124 # as_fn_unset VAR
20125 # ---------------
20126 # Portably unset VAR.
20127 as_fn_unset ()
20129 { eval $1=; unset $1;}
20131 as_unset=as_fn_unset
20132 # as_fn_append VAR VALUE
20133 # ----------------------
20134 # Append the text in VALUE to the end of the definition contained in VAR. Take
20135 # advantage of any shell optimizations that allow amortized linear growth over
20136 # repeated appends, instead of the typical quadratic growth present in naive
20137 # implementations.
20138 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
20139 eval 'as_fn_append ()
20141 eval $1+=\$2
20143 else
20144 as_fn_append ()
20146 eval $1=\$$1\$2
20148 fi # as_fn_append
20150 # as_fn_arith ARG...
20151 # ------------------
20152 # Perform arithmetic evaluation on the ARGs, and store the result in the
20153 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20154 # must be portable across $(()) and expr.
20155 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
20156 eval 'as_fn_arith ()
20158 as_val=$(( $* ))
20160 else
20161 as_fn_arith ()
20163 as_val=`expr "$@" || test $? -eq 1`
20165 fi # as_fn_arith
20168 if expr a : '\(a\)' >/dev/null 2>&1 &&
20169 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20170 as_expr=expr
20171 else
20172 as_expr=false
20175 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20176 as_basename=basename
20177 else
20178 as_basename=false
20181 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20182 as_dirname=dirname
20183 else
20184 as_dirname=false
20187 as_me=`$as_basename -- "$0" ||
20188 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20189 X"$0" : 'X\(//\)$' \| \
20190 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20191 $as_echo X/"$0" |
20192 sed '/^.*\/\([^/][^/]*\)\/*$/{
20193 s//\1/
20196 /^X\/\(\/\/\)$/{
20197 s//\1/
20200 /^X\/\(\/\).*/{
20201 s//\1/
20204 s/.*/./; q'`
20206 # Avoid depending upon Character Ranges.
20207 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20208 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20209 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20210 as_cr_digits='0123456789'
20211 as_cr_alnum=$as_cr_Letters$as_cr_digits
20213 ECHO_C= ECHO_N= ECHO_T=
20214 case `echo -n x` in #(((((
20215 -n*)
20216 case `echo 'xy\c'` in
20217 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20218 xy) ECHO_C='\c';;
20219 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
20220 ECHO_T=' ';;
20221 esac;;
20223 ECHO_N='-n';;
20224 esac
20226 rm -f conf$$ conf$$.exe conf$$.file
20227 if test -d conf$$.dir; then
20228 rm -f conf$$.dir/conf$$.file
20229 else
20230 rm -f conf$$.dir
20231 mkdir conf$$.dir 2>/dev/null
20233 if (echo >conf$$.file) 2>/dev/null; then
20234 if ln -s conf$$.file conf$$ 2>/dev/null; then
20235 as_ln_s='ln -s'
20236 # ... but there are two gotchas:
20237 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20238 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20239 # In both cases, we have to default to `cp -pR'.
20240 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20241 as_ln_s='cp -pR'
20242 elif ln conf$$.file conf$$ 2>/dev/null; then
20243 as_ln_s=ln
20244 else
20245 as_ln_s='cp -pR'
20247 else
20248 as_ln_s='cp -pR'
20250 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20251 rmdir conf$$.dir 2>/dev/null
20254 # as_fn_mkdir_p
20255 # -------------
20256 # Create "$as_dir" as a directory, including parents if necessary.
20257 as_fn_mkdir_p ()
20260 case $as_dir in #(
20261 -*) as_dir=./$as_dir;;
20262 esac
20263 test -d "$as_dir" || eval $as_mkdir_p || {
20264 as_dirs=
20265 while :; do
20266 case $as_dir in #(
20267 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20268 *) as_qdir=$as_dir;;
20269 esac
20270 as_dirs="'$as_qdir' $as_dirs"
20271 as_dir=`$as_dirname -- "$as_dir" ||
20272 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20273 X"$as_dir" : 'X\(//\)[^/]' \| \
20274 X"$as_dir" : 'X\(//\)$' \| \
20275 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20276 $as_echo X"$as_dir" |
20277 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20278 s//\1/
20281 /^X\(\/\/\)[^/].*/{
20282 s//\1/
20285 /^X\(\/\/\)$/{
20286 s//\1/
20289 /^X\(\/\).*/{
20290 s//\1/
20293 s/.*/./; q'`
20294 test -d "$as_dir" && break
20295 done
20296 test -z "$as_dirs" || eval "mkdir $as_dirs"
20297 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20300 } # as_fn_mkdir_p
20301 if mkdir -p . 2>/dev/null; then
20302 as_mkdir_p='mkdir -p "$as_dir"'
20303 else
20304 test -d ./-p && rmdir ./-p
20305 as_mkdir_p=false
20309 # as_fn_executable_p FILE
20310 # -----------------------
20311 # Test if FILE is an executable regular file.
20312 as_fn_executable_p ()
20314 test -f "$1" && test -x "$1"
20315 } # as_fn_executable_p
20316 as_test_x='test -x'
20317 as_executable_p=as_fn_executable_p
20319 # Sed expression to map a string onto a valid CPP name.
20320 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20322 # Sed expression to map a string onto a valid variable name.
20323 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20326 exec 6>&1
20327 ## ----------------------------------- ##
20328 ## Main body of $CONFIG_STATUS script. ##
20329 ## ----------------------------------- ##
20330 _ASEOF
20331 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20333 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20334 # Save the log message, to keep $0 and so on meaningful, and to
20335 # report actual input values of CONFIG_FILES etc. instead of their
20336 # values after options handling.
20337 ac_log="
20338 This file was extended by alpine $as_me 2.19.8, which was
20339 generated by GNU Autoconf 2.69. Invocation command line was
20341 CONFIG_FILES = $CONFIG_FILES
20342 CONFIG_HEADERS = $CONFIG_HEADERS
20343 CONFIG_LINKS = $CONFIG_LINKS
20344 CONFIG_COMMANDS = $CONFIG_COMMANDS
20345 $ $0 $@
20347 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20350 _ACEOF
20352 case $ac_config_files in *"
20353 "*) set x $ac_config_files; shift; ac_config_files=$*;;
20354 esac
20356 case $ac_config_headers in *"
20357 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20358 esac
20361 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20362 # Files that config.status was made for.
20363 config_files="$ac_config_files"
20364 config_headers="$ac_config_headers"
20365 config_commands="$ac_config_commands"
20367 _ACEOF
20369 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20370 ac_cs_usage="\
20371 \`$as_me' instantiates files and other configuration actions
20372 from templates according to the current configuration. Unless the files
20373 and actions are specified as TAGs, all are instantiated by default.
20375 Usage: $0 [OPTION]... [TAG]...
20377 -h, --help print this help, then exit
20378 -V, --version print version number and configuration settings, then exit
20379 --config print configuration, then exit
20380 -q, --quiet, --silent
20381 do not print progress messages
20382 -d, --debug don't remove temporary files
20383 --recheck update $as_me by reconfiguring in the same conditions
20384 --file=FILE[:TEMPLATE]
20385 instantiate the configuration file FILE
20386 --header=FILE[:TEMPLATE]
20387 instantiate the configuration header FILE
20389 Configuration files:
20390 $config_files
20392 Configuration headers:
20393 $config_headers
20395 Configuration commands:
20396 $config_commands
20398 Report bugs to <chappa@washington.edu>."
20400 _ACEOF
20401 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20402 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20403 ac_cs_version="\\
20404 alpine config.status 2.19.8
20405 configured by $0, generated by GNU Autoconf 2.69,
20406 with options \\"\$ac_cs_config\\"
20408 Copyright (C) 2012 Free Software Foundation, Inc.
20409 This config.status script is free software; the Free Software Foundation
20410 gives unlimited permission to copy, distribute and modify it."
20412 ac_pwd='$ac_pwd'
20413 srcdir='$srcdir'
20414 INSTALL='$INSTALL'
20415 MKDIR_P='$MKDIR_P'
20416 AWK='$AWK'
20417 test -n "\$AWK" || AWK=awk
20418 _ACEOF
20420 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20421 # The default lists apply if the user does not specify any file.
20422 ac_need_defaults=:
20423 while test $# != 0
20425 case $1 in
20426 --*=?*)
20427 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20428 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20429 ac_shift=:
20431 --*=)
20432 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20433 ac_optarg=
20434 ac_shift=:
20437 ac_option=$1
20438 ac_optarg=$2
20439 ac_shift=shift
20441 esac
20443 case $ac_option in
20444 # Handling of the options.
20445 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20446 ac_cs_recheck=: ;;
20447 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20448 $as_echo "$ac_cs_version"; exit ;;
20449 --config | --confi | --conf | --con | --co | --c )
20450 $as_echo "$ac_cs_config"; exit ;;
20451 --debug | --debu | --deb | --de | --d | -d )
20452 debug=: ;;
20453 --file | --fil | --fi | --f )
20454 $ac_shift
20455 case $ac_optarg in
20456 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20457 '') as_fn_error $? "missing file argument" ;;
20458 esac
20459 as_fn_append CONFIG_FILES " '$ac_optarg'"
20460 ac_need_defaults=false;;
20461 --header | --heade | --head | --hea )
20462 $ac_shift
20463 case $ac_optarg in
20464 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20465 esac
20466 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20467 ac_need_defaults=false;;
20468 --he | --h)
20469 # Conflict between --help and --header
20470 as_fn_error $? "ambiguous option: \`$1'
20471 Try \`$0 --help' for more information.";;
20472 --help | --hel | -h )
20473 $as_echo "$ac_cs_usage"; exit ;;
20474 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20475 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20476 ac_cs_silent=: ;;
20478 # This is an error.
20479 -*) as_fn_error $? "unrecognized option: \`$1'
20480 Try \`$0 --help' for more information." ;;
20482 *) as_fn_append ac_config_targets " $1"
20483 ac_need_defaults=false ;;
20485 esac
20486 shift
20487 done
20489 ac_configure_extra_args=
20491 if $ac_cs_silent; then
20492 exec 6>/dev/null
20493 ac_configure_extra_args="$ac_configure_extra_args --silent"
20496 _ACEOF
20497 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20498 if \$ac_cs_recheck; then
20499 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20500 shift
20501 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20502 CONFIG_SHELL='$SHELL'
20503 export CONFIG_SHELL
20504 exec "\$@"
20507 _ACEOF
20508 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20509 exec 5>>config.log
20511 echo
20512 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20513 ## Running $as_me. ##
20514 _ASBOX
20515 $as_echo "$ac_log"
20516 } >&5
20518 _ACEOF
20519 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20521 # INIT-COMMANDS
20523 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20526 # The HP-UX ksh and POSIX shell print the target directory to stdout
20527 # if CDPATH is set.
20528 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20530 sed_quote_subst='$sed_quote_subst'
20531 double_quote_subst='$double_quote_subst'
20532 delay_variable_subst='$delay_variable_subst'
20533 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
20534 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
20535 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
20536 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
20537 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
20538 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
20539 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
20540 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
20541 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
20542 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
20543 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
20544 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
20545 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
20546 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
20547 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
20548 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
20549 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
20550 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
20551 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
20552 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
20553 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
20554 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
20555 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
20556 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
20557 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
20558 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
20559 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
20560 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20561 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
20562 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
20563 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
20564 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
20565 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
20566 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
20567 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
20568 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20569 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20570 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20571 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
20572 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
20573 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
20574 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
20575 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
20576 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
20577 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
20578 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
20579 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
20580 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
20581 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
20582 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
20583 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
20584 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
20585 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
20586 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
20587 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
20588 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
20589 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
20590 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
20591 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
20592 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
20593 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
20594 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
20595 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20596 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20597 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
20598 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
20599 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
20600 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
20601 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
20602 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20603 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20604 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20605 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20606 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20607 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20608 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
20609 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
20610 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
20611 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
20612 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
20613 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
20614 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
20615 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
20616 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
20617 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
20618 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
20619 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
20620 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
20621 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
20622 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
20623 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20624 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
20625 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
20626 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20627 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
20628 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
20629 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
20630 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
20631 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
20632 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
20633 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
20634 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
20635 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
20636 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
20637 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
20638 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20639 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20640 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20641 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
20642 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
20643 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
20644 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
20645 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
20646 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
20647 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
20648 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
20649 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
20650 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
20652 LTCC='$LTCC'
20653 LTCFLAGS='$LTCFLAGS'
20654 compiler='$compiler_DEFAULT'
20656 # Quote evaled strings.
20657 for var in SED \
20658 GREP \
20659 EGREP \
20660 FGREP \
20661 LD \
20662 NM \
20663 LN_S \
20664 lt_SP2NL \
20665 lt_NL2SP \
20666 reload_flag \
20667 OBJDUMP \
20668 deplibs_check_method \
20669 file_magic_cmd \
20670 AR \
20671 AR_FLAGS \
20672 STRIP \
20673 RANLIB \
20674 CC \
20675 CFLAGS \
20676 compiler \
20677 lt_cv_sys_global_symbol_pipe \
20678 lt_cv_sys_global_symbol_to_cdecl \
20679 lt_cv_sys_global_symbol_to_c_name_address \
20680 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20681 SHELL \
20682 ECHO \
20683 lt_prog_compiler_no_builtin_flag \
20684 lt_prog_compiler_wl \
20685 lt_prog_compiler_pic \
20686 lt_prog_compiler_static \
20687 lt_cv_prog_compiler_c_o \
20688 need_locks \
20689 DSYMUTIL \
20690 NMEDIT \
20691 LIPO \
20692 OTOOL \
20693 OTOOL64 \
20694 shrext_cmds \
20695 export_dynamic_flag_spec \
20696 whole_archive_flag_spec \
20697 compiler_needs_object \
20698 with_gnu_ld \
20699 allow_undefined_flag \
20700 no_undefined_flag \
20701 hardcode_libdir_flag_spec \
20702 hardcode_libdir_flag_spec_ld \
20703 hardcode_libdir_separator \
20704 fix_srcfile_path \
20705 exclude_expsyms \
20706 include_expsyms \
20707 file_list_spec \
20708 variables_saved_for_relink \
20709 libname_spec \
20710 library_names_spec \
20711 soname_spec \
20712 finish_eval \
20713 old_striplib \
20714 striplib; do
20715 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
20716 *[\\\\\\\`\\"\\\$]*)
20717 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
20720 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20722 esac
20723 done
20725 # Double-quote double-evaled strings.
20726 for var in reload_cmds \
20727 old_postinstall_cmds \
20728 old_postuninstall_cmds \
20729 old_archive_cmds \
20730 extract_expsyms_cmds \
20731 old_archive_from_new_cmds \
20732 old_archive_from_expsyms_cmds \
20733 archive_cmds \
20734 archive_expsym_cmds \
20735 module_cmds \
20736 module_expsym_cmds \
20737 export_symbols_cmds \
20738 prelink_cmds \
20739 postinstall_cmds \
20740 postuninstall_cmds \
20741 finish_cmds \
20742 sys_lib_search_path_spec \
20743 sys_lib_dlsearch_path_spec; do
20744 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
20745 *[\\\\\\\`\\"\\\$]*)
20746 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
20749 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20751 esac
20752 done
20754 # Fix-up fallback echo if it was mangled by the above quoting rules.
20755 case \$lt_ECHO in
20756 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
20758 esac
20760 ac_aux_dir='$ac_aux_dir'
20761 xsi_shell='$xsi_shell'
20762 lt_shell_append='$lt_shell_append'
20764 # See if we are running on zsh, and set the options which allow our
20765 # commands through without removal of \ escapes INIT.
20766 if test -n "\${ZSH_VERSION+set}" ; then
20767 setopt NO_GLOB_SUBST
20771 PACKAGE='$PACKAGE'
20772 VERSION='$VERSION'
20773 TIMESTAMP='$TIMESTAMP'
20774 RM='$RM'
20775 ofile='$ofile'
20779 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
20780 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
20781 # from automake < 1.5.
20782 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
20783 # Capture the value of LINGUAS because we need it to compute CATALOGS.
20784 LINGUAS="${LINGUAS-%UNSET%}"
20787 _ACEOF
20789 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20791 # Handling of arguments.
20792 for ac_config_target in $ac_config_targets
20794 case $ac_config_target in
20795 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
20796 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20797 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20798 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
20799 "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
20800 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
20801 "$REGEX_MAKEFILE") CONFIG_FILES="$CONFIG_FILES $REGEX_MAKEFILE" ;;
20802 "pith/osdep/Makefile") CONFIG_FILES="$CONFIG_FILES pith/osdep/Makefile" ;;
20803 "pith/charconv/Makefile") CONFIG_FILES="$CONFIG_FILES pith/charconv/Makefile" ;;
20804 "pith/Makefile") CONFIG_FILES="$CONFIG_FILES pith/Makefile" ;;
20805 "pico/osdep/Makefile") CONFIG_FILES="$CONFIG_FILES pico/osdep/Makefile" ;;
20806 "pico/Makefile") CONFIG_FILES="$CONFIG_FILES pico/Makefile" ;;
20807 "alpine/osdep/Makefile") CONFIG_FILES="$CONFIG_FILES alpine/osdep/Makefile" ;;
20808 "alpine/Makefile") CONFIG_FILES="$CONFIG_FILES alpine/Makefile" ;;
20809 "web/src/Makefile") CONFIG_FILES="$CONFIG_FILES web/src/Makefile" ;;
20810 "web/src/pubcookie/Makefile") CONFIG_FILES="$CONFIG_FILES web/src/pubcookie/Makefile" ;;
20811 "web/src/alpined.d/Makefile") CONFIG_FILES="$CONFIG_FILES web/src/alpined.d/Makefile" ;;
20812 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20814 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20815 esac
20816 done
20819 # If the user did not use the arguments to specify the items to instantiate,
20820 # then the envvar interface is used. Set only those that are not.
20821 # We use the long form for the default assignment because of an extremely
20822 # bizarre bug on SunOS 4.1.3.
20823 if $ac_need_defaults; then
20824 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20825 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20826 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20829 # Have a temporary directory for convenience. Make it in the build tree
20830 # simply because there is no reason against having it here, and in addition,
20831 # creating and moving files from /tmp can sometimes cause problems.
20832 # Hook for its removal unless debugging.
20833 # Note that there is a small window in which the directory will not be cleaned:
20834 # after its creation but before its name has been assigned to `$tmp'.
20835 $debug ||
20837 tmp= ac_tmp=
20838 trap 'exit_status=$?
20839 : "${ac_tmp:=$tmp}"
20840 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20842 trap 'as_fn_exit 1' 1 2 13 15
20844 # Create a (secure) tmp directory for tmp files.
20847 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20848 test -d "$tmp"
20849 } ||
20851 tmp=./conf$$-$RANDOM
20852 (umask 077 && mkdir "$tmp")
20853 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20854 ac_tmp=$tmp
20856 # Set up the scripts for CONFIG_FILES section.
20857 # No need to generate them if there are no CONFIG_FILES.
20858 # This happens for instance with `./config.status config.h'.
20859 if test -n "$CONFIG_FILES"; then
20862 ac_cr=`echo X | tr X '\015'`
20863 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20864 # But we know of no other shell where ac_cr would be empty at this
20865 # point, so we can use a bashism as a fallback.
20866 if test "x$ac_cr" = x; then
20867 eval ac_cr=\$\'\\r\'
20869 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20870 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20871 ac_cs_awk_cr='\\r'
20872 else
20873 ac_cs_awk_cr=$ac_cr
20876 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20877 _ACEOF
20881 echo "cat >conf$$subs.awk <<_ACEOF" &&
20882 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20883 echo "_ACEOF"
20884 } >conf$$subs.sh ||
20885 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20886 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20887 ac_delim='%!_!# '
20888 for ac_last_try in false false false false false :; do
20889 . ./conf$$subs.sh ||
20890 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20892 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20893 if test $ac_delim_n = $ac_delim_num; then
20894 break
20895 elif $ac_last_try; then
20896 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20897 else
20898 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20900 done
20901 rm -f conf$$subs.sh
20903 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20904 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20905 _ACEOF
20906 sed -n '
20908 s/^/S["/; s/!.*/"]=/
20911 s/^[^!]*!//
20912 :repl
20913 t repl
20914 s/'"$ac_delim"'$//
20915 t delim
20918 s/\(.\{148\}\)..*/\1/
20919 t more1
20920 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20923 b repl
20924 :more1
20925 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20928 s/.\{148\}//
20929 t nl
20930 :delim
20932 s/\(.\{148\}\)..*/\1/
20933 t more2
20934 s/["\\]/\\&/g; s/^/"/; s/$/"/
20937 :more2
20938 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20941 s/.\{148\}//
20942 t delim
20943 ' <conf$$subs.awk | sed '
20944 /^[^""]/{
20946 s/\n//
20948 ' >>$CONFIG_STATUS || ac_write_fail=1
20949 rm -f conf$$subs.awk
20950 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20951 _ACAWK
20952 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20953 for (key in S) S_is_set[key] = 1
20954 FS = "\a"
20958 line = $ 0
20959 nfields = split(line, field, "@")
20960 substed = 0
20961 len = length(field[1])
20962 for (i = 2; i < nfields; i++) {
20963 key = field[i]
20964 keylen = length(key)
20965 if (S_is_set[key]) {
20966 value = S[key]
20967 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20968 len += length(value) + length(field[++i])
20969 substed = 1
20970 } else
20971 len += 1 + keylen
20974 print line
20977 _ACAWK
20978 _ACEOF
20979 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20980 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20981 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20982 else
20984 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20985 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20986 _ACEOF
20988 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20989 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20990 # trailing colons and then remove the whole line if VPATH becomes empty
20991 # (actually we leave an empty line to preserve line numbers).
20992 if test "x$srcdir" = x.; then
20993 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20995 s///
20996 s/^/:/
20997 s/[ ]*$/:/
20998 s/:\$(srcdir):/:/g
20999 s/:\${srcdir}:/:/g
21000 s/:@srcdir@:/:/g
21001 s/^:*//
21002 s/:*$//
21004 s/\(=[ ]*\).*/\1/
21006 s/\n//
21007 s/^[^=]*=[ ]*$//
21011 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21012 fi # test -n "$CONFIG_FILES"
21014 # Set up the scripts for CONFIG_HEADERS section.
21015 # No need to generate them if there are no CONFIG_HEADERS.
21016 # This happens for instance with `./config.status Makefile'.
21017 if test -n "$CONFIG_HEADERS"; then
21018 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
21019 BEGIN {
21020 _ACEOF
21022 # Transform confdefs.h into an awk script `defines.awk', embedded as
21023 # here-document in config.status, that substitutes the proper values into
21024 # config.h.in to produce config.h.
21026 # Create a delimiter string that does not exist in confdefs.h, to ease
21027 # handling of long lines.
21028 ac_delim='%!_!# '
21029 for ac_last_try in false false :; do
21030 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
21031 if test -z "$ac_tt"; then
21032 break
21033 elif $ac_last_try; then
21034 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
21035 else
21036 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21038 done
21040 # For the awk script, D is an array of macro values keyed by name,
21041 # likewise P contains macro parameters if any. Preserve backslash
21042 # newline sequences.
21044 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21045 sed -n '
21046 s/.\{148\}/&'"$ac_delim"'/g
21047 t rset
21048 :rset
21049 s/^[ ]*#[ ]*define[ ][ ]*/ /
21050 t def
21052 :def
21053 s/\\$//
21054 t bsnl
21055 s/["\\]/\\&/g
21056 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21057 D["\1"]=" \3"/p
21058 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
21060 :bsnl
21061 s/["\\]/\\&/g
21062 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21063 D["\1"]=" \3\\\\\\n"\\/p
21064 t cont
21065 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21066 t cont
21068 :cont
21070 s/.\{148\}/&'"$ac_delim"'/g
21071 t clear
21072 :clear
21073 s/\\$//
21074 t bsnlc
21075 s/["\\]/\\&/g; s/^/"/; s/$/"/p
21077 :bsnlc
21078 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21079 b cont
21080 ' <confdefs.h | sed '
21081 s/'"$ac_delim"'/"\\\
21082 "/g' >>$CONFIG_STATUS || ac_write_fail=1
21084 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21085 for (key in D) D_is_set[key] = 1
21086 FS = "\a"
21088 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21089 line = \$ 0
21090 split(line, arg, " ")
21091 if (arg[1] == "#") {
21092 defundef = arg[2]
21093 mac1 = arg[3]
21094 } else {
21095 defundef = substr(arg[1], 2)
21096 mac1 = arg[2]
21098 split(mac1, mac2, "(") #)
21099 macro = mac2[1]
21100 prefix = substr(line, 1, index(line, defundef) - 1)
21101 if (D_is_set[macro]) {
21102 # Preserve the white space surrounding the "#".
21103 print prefix "define", macro P[macro] D[macro]
21104 next
21105 } else {
21106 # Replace #undef with comments. This is necessary, for example,
21107 # in the case of _POSIX_SOURCE, which is predefined and required
21108 # on some systems where configure will not decide to define it.
21109 if (defundef == "undef") {
21110 print "/*", prefix defundef, macro, "*/"
21111 next
21115 { print }
21116 _ACAWK
21117 _ACEOF
21118 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21119 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21120 fi # test -n "$CONFIG_HEADERS"
21123 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
21124 shift
21125 for ac_tag
21127 case $ac_tag in
21128 :[FHLC]) ac_mode=$ac_tag; continue;;
21129 esac
21130 case $ac_mode$ac_tag in
21131 :[FHL]*:*);;
21132 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
21133 :[FH]-) ac_tag=-:-;;
21134 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21135 esac
21136 ac_save_IFS=$IFS
21137 IFS=:
21138 set x $ac_tag
21139 IFS=$ac_save_IFS
21140 shift
21141 ac_file=$1
21142 shift
21144 case $ac_mode in
21145 :L) ac_source=$1;;
21146 :[FH])
21147 ac_file_inputs=
21148 for ac_f
21150 case $ac_f in
21151 -) ac_f="$ac_tmp/stdin";;
21152 *) # Look for the file first in the build tree, then in the source tree
21153 # (if the path is not absolute). The absolute path cannot be DOS-style,
21154 # because $ac_f cannot contain `:'.
21155 test -f "$ac_f" ||
21156 case $ac_f in
21157 [\\/$]*) false;;
21158 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21159 esac ||
21160 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21161 esac
21162 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21163 as_fn_append ac_file_inputs " '$ac_f'"
21164 done
21166 # Let's still pretend it is `configure' which instantiates (i.e., don't
21167 # use $as_me), people would be surprised to read:
21168 # /* config.h. Generated by config.status. */
21169 configure_input='Generated from '`
21170 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21171 `' by configure.'
21172 if test x"$ac_file" != x-; then
21173 configure_input="$ac_file. $configure_input"
21174 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21175 $as_echo "$as_me: creating $ac_file" >&6;}
21177 # Neutralize special characters interpreted by sed in replacement strings.
21178 case $configure_input in #(
21179 *\&* | *\|* | *\\* )
21180 ac_sed_conf_input=`$as_echo "$configure_input" |
21181 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21182 *) ac_sed_conf_input=$configure_input;;
21183 esac
21185 case $ac_tag in
21186 *:-:* | *:-) cat >"$ac_tmp/stdin" \
21187 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21188 esac
21190 esac
21192 ac_dir=`$as_dirname -- "$ac_file" ||
21193 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21194 X"$ac_file" : 'X\(//\)[^/]' \| \
21195 X"$ac_file" : 'X\(//\)$' \| \
21196 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21197 $as_echo X"$ac_file" |
21198 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21199 s//\1/
21202 /^X\(\/\/\)[^/].*/{
21203 s//\1/
21206 /^X\(\/\/\)$/{
21207 s//\1/
21210 /^X\(\/\).*/{
21211 s//\1/
21214 s/.*/./; q'`
21215 as_dir="$ac_dir"; as_fn_mkdir_p
21216 ac_builddir=.
21218 case "$ac_dir" in
21219 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21221 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21222 # A ".." for each directory in $ac_dir_suffix.
21223 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21224 case $ac_top_builddir_sub in
21225 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21226 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21227 esac ;;
21228 esac
21229 ac_abs_top_builddir=$ac_pwd
21230 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21231 # for backward compatibility:
21232 ac_top_builddir=$ac_top_build_prefix
21234 case $srcdir in
21235 .) # We are building in place.
21236 ac_srcdir=.
21237 ac_top_srcdir=$ac_top_builddir_sub
21238 ac_abs_top_srcdir=$ac_pwd ;;
21239 [\\/]* | ?:[\\/]* ) # Absolute name.
21240 ac_srcdir=$srcdir$ac_dir_suffix;
21241 ac_top_srcdir=$srcdir
21242 ac_abs_top_srcdir=$srcdir ;;
21243 *) # Relative name.
21244 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21245 ac_top_srcdir=$ac_top_build_prefix$srcdir
21246 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21247 esac
21248 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21251 case $ac_mode in
21254 # CONFIG_FILE
21257 case $INSTALL in
21258 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21259 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21260 esac
21261 ac_MKDIR_P=$MKDIR_P
21262 case $MKDIR_P in
21263 [\\/$]* | ?:[\\/]* ) ;;
21264 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21265 esac
21266 _ACEOF
21268 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21269 # If the template does not know about datarootdir, expand it.
21270 # FIXME: This hack should be removed a few years after 2.60.
21271 ac_datarootdir_hack=; ac_datarootdir_seen=
21272 ac_sed_dataroot='
21273 /datarootdir/ {
21277 /@datadir@/p
21278 /@docdir@/p
21279 /@infodir@/p
21280 /@localedir@/p
21281 /@mandir@/p'
21282 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21283 *datarootdir*) ac_datarootdir_seen=yes;;
21284 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21285 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21286 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21287 _ACEOF
21288 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21289 ac_datarootdir_hack='
21290 s&@datadir@&$datadir&g
21291 s&@docdir@&$docdir&g
21292 s&@infodir@&$infodir&g
21293 s&@localedir@&$localedir&g
21294 s&@mandir@&$mandir&g
21295 s&\\\${datarootdir}&$datarootdir&g' ;;
21296 esac
21297 _ACEOF
21299 # Neutralize VPATH when `$srcdir' = `.'.
21300 # Shell code in configure.ac might set extrasub.
21301 # FIXME: do we really want to maintain this feature?
21302 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21303 ac_sed_extra="$ac_vpsub
21304 $extrasub
21305 _ACEOF
21306 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21308 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21309 s|@configure_input@|$ac_sed_conf_input|;t t
21310 s&@top_builddir@&$ac_top_builddir_sub&;t t
21311 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21312 s&@srcdir@&$ac_srcdir&;t t
21313 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21314 s&@top_srcdir@&$ac_top_srcdir&;t t
21315 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21316 s&@builddir@&$ac_builddir&;t t
21317 s&@abs_builddir@&$ac_abs_builddir&;t t
21318 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21319 s&@INSTALL@&$ac_INSTALL&;t t
21320 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21321 $ac_datarootdir_hack
21323 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21324 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21326 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21327 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21328 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
21329 "$ac_tmp/out"`; test -z "$ac_out"; } &&
21330 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21331 which seems to be undefined. Please make sure it is defined" >&5
21332 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21333 which seems to be undefined. Please make sure it is defined" >&2;}
21335 rm -f "$ac_tmp/stdin"
21336 case $ac_file in
21337 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21338 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21339 esac \
21340 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21344 # CONFIG_HEADER
21346 if test x"$ac_file" != x-; then
21348 $as_echo "/* $configure_input */" \
21349 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21350 } >"$ac_tmp/config.h" \
21351 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21352 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21353 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21354 $as_echo "$as_me: $ac_file is unchanged" >&6;}
21355 else
21356 rm -f "$ac_file"
21357 mv "$ac_tmp/config.h" "$ac_file" \
21358 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21360 else
21361 $as_echo "/* $configure_input */" \
21362 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21363 || as_fn_error $? "could not create -" "$LINENO" 5
21365 # Compute "$ac_file"'s index in $config_headers.
21366 _am_arg="$ac_file"
21367 _am_stamp_count=1
21368 for _am_header in $config_headers :; do
21369 case $_am_header in
21370 $_am_arg | $_am_arg:* )
21371 break ;;
21373 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21374 esac
21375 done
21376 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21377 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21378 X"$_am_arg" : 'X\(//\)[^/]' \| \
21379 X"$_am_arg" : 'X\(//\)$' \| \
21380 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21381 $as_echo X"$_am_arg" |
21382 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21383 s//\1/
21386 /^X\(\/\/\)[^/].*/{
21387 s//\1/
21390 /^X\(\/\/\)$/{
21391 s//\1/
21394 /^X\(\/\).*/{
21395 s//\1/
21398 s/.*/./; q'`/stamp-h$_am_stamp_count
21401 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21402 $as_echo "$as_me: executing $ac_file commands" >&6;}
21404 esac
21407 case $ac_file$ac_mode in
21408 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21409 # Autoconf 2.62 quotes --file arguments for eval, but not when files
21410 # are listed without --file. Let's play safe and only enable the eval
21411 # if we detect the quoting.
21412 case $CONFIG_FILES in
21413 *\'*) eval set x "$CONFIG_FILES" ;;
21414 *) set x $CONFIG_FILES ;;
21415 esac
21416 shift
21417 for mf
21419 # Strip MF so we end up with the name of the file.
21420 mf=`echo "$mf" | sed -e 's/:.*$//'`
21421 # Check whether this is an Automake generated Makefile or not.
21422 # We used to match only the files named `Makefile.in', but
21423 # some people rename them; so instead we look at the file content.
21424 # Grep'ing the first line is not enough: some people post-process
21425 # each Makefile.in and add a new line on top of each file to say so.
21426 # Grep'ing the whole file is not good either: AIX grep has a line
21427 # limit of 2048, but all sed's we know have understand at least 4000.
21428 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21429 dirpart=`$as_dirname -- "$mf" ||
21430 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21431 X"$mf" : 'X\(//\)[^/]' \| \
21432 X"$mf" : 'X\(//\)$' \| \
21433 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21434 $as_echo X"$mf" |
21435 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21436 s//\1/
21439 /^X\(\/\/\)[^/].*/{
21440 s//\1/
21443 /^X\(\/\/\)$/{
21444 s//\1/
21447 /^X\(\/\).*/{
21448 s//\1/
21451 s/.*/./; q'`
21452 else
21453 continue
21455 # Extract the definition of DEPDIR, am__include, and am__quote
21456 # from the Makefile without running `make'.
21457 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21458 test -z "$DEPDIR" && continue
21459 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21460 test -z "am__include" && continue
21461 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21462 # When using ansi2knr, U may be empty or an underscore; expand it
21463 U=`sed -n 's/^U = //p' < "$mf"`
21464 # Find all dependency output files, they are included files with
21465 # $(DEPDIR) in their names. We invoke sed twice because it is the
21466 # simplest approach to changing $(DEPDIR) to its actual value in the
21467 # expansion.
21468 for file in `sed -n "
21469 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21470 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21471 # Make sure the directory exists.
21472 test -f "$dirpart/$file" && continue
21473 fdir=`$as_dirname -- "$file" ||
21474 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21475 X"$file" : 'X\(//\)[^/]' \| \
21476 X"$file" : 'X\(//\)$' \| \
21477 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21478 $as_echo X"$file" |
21479 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21480 s//\1/
21483 /^X\(\/\/\)[^/].*/{
21484 s//\1/
21487 /^X\(\/\/\)$/{
21488 s//\1/
21491 /^X\(\/\).*/{
21492 s//\1/
21495 s/.*/./; q'`
21496 as_dir=$dirpart/$fdir; as_fn_mkdir_p
21497 # echo "creating $dirpart/$file"
21498 echo '# dummy' > "$dirpart/$file"
21499 done
21500 done
21503 "libtool":C)
21505 # See if we are running on zsh, and set the options which allow our
21506 # commands through without removal of \ escapes.
21507 if test -n "${ZSH_VERSION+set}" ; then
21508 setopt NO_GLOB_SUBST
21511 cfgfile="${ofile}T"
21512 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21513 $RM "$cfgfile"
21515 cat <<_LT_EOF >> "$cfgfile"
21516 #! $SHELL
21518 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
21519 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
21520 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21522 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
21523 # 2006, 2007, 2008 Free Software Foundation, Inc.
21524 # Written by Gordon Matzigkeit, 1996
21526 # This file is part of GNU Libtool.
21528 # GNU Libtool is free software; you can redistribute it and/or
21529 # modify it under the terms of the GNU General Public License as
21530 # published by the Free Software Foundation; either version 2 of
21531 # the License, or (at your option) any later version.
21533 # As a special exception to the GNU General Public License,
21534 # if you distribute this file as part of a program or library that
21535 # is built using GNU Libtool, you may include this file under the
21536 # same distribution terms that you use for the rest of that program.
21538 # GNU Libtool is distributed in the hope that it will be useful,
21539 # but WITHOUT ANY WARRANTY; without even the implied warranty of
21540 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21541 # GNU General Public License for more details.
21543 # You should have received a copy of the GNU General Public License
21544 # along with GNU Libtool; see the file COPYING. If not, a copy
21545 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
21546 # obtained by writing to the Free Software Foundation, Inc.,
21547 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21550 # The names of the tagged configurations supported by this script.
21551 available_tags=""
21553 # ### BEGIN LIBTOOL CONFIG
21555 # Which release of libtool.m4 was used?
21556 macro_version=$macro_version
21557 macro_revision=$macro_revision
21559 # Whether or not to build shared libraries.
21560 build_libtool_libs=$enable_shared
21562 # Whether or not to build static libraries.
21563 build_old_libs=$enable_static
21565 # What type of objects to build.
21566 pic_mode=$pic_mode
21568 # Whether or not to optimize for fast installation.
21569 fast_install=$enable_fast_install
21571 # The host system.
21572 host_alias=$host_alias
21573 host=$host
21574 host_os=$host_os
21576 # The build system.
21577 build_alias=$build_alias
21578 build=$build
21579 build_os=$build_os
21581 # A sed program that does not truncate output.
21582 SED=$lt_SED
21584 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21585 Xsed="\$SED -e 1s/^X//"
21587 # A grep program that handles long lines.
21588 GREP=$lt_GREP
21590 # An ERE matcher.
21591 EGREP=$lt_EGREP
21593 # A literal string matcher.
21594 FGREP=$lt_FGREP
21596 # A BSD- or MS-compatible name lister.
21597 NM=$lt_NM
21599 # Whether we need soft or hard links.
21600 LN_S=$lt_LN_S
21602 # What is the maximum length of a command?
21603 max_cmd_len=$max_cmd_len
21605 # Object file suffix (normally "o").
21606 objext=$ac_objext
21608 # Executable file suffix (normally "").
21609 exeext=$exeext
21611 # whether the shell understands "unset".
21612 lt_unset=$lt_unset
21614 # turn spaces into newlines.
21615 SP2NL=$lt_lt_SP2NL
21617 # turn newlines into spaces.
21618 NL2SP=$lt_lt_NL2SP
21620 # How to create reloadable object files.
21621 reload_flag=$lt_reload_flag
21622 reload_cmds=$lt_reload_cmds
21624 # An object symbol dumper.
21625 OBJDUMP=$lt_OBJDUMP
21627 # Method to check whether dependent libraries are shared objects.
21628 deplibs_check_method=$lt_deplibs_check_method
21630 # Command to use when deplibs_check_method == "file_magic".
21631 file_magic_cmd=$lt_file_magic_cmd
21633 # The archiver.
21634 AR=$lt_AR
21635 AR_FLAGS=$lt_AR_FLAGS
21637 # A symbol stripping program.
21638 STRIP=$lt_STRIP
21640 # Commands used to install an old-style archive.
21641 RANLIB=$lt_RANLIB
21642 old_postinstall_cmds=$lt_old_postinstall_cmds
21643 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21645 # A C compiler.
21646 LTCC=$lt_CC
21648 # LTCC compiler flags.
21649 LTCFLAGS=$lt_CFLAGS
21651 # Take the output of nm and produce a listing of raw symbols and C names.
21652 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21654 # Transform the output of nm in a proper C declaration.
21655 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21657 # Transform the output of nm in a C name address pair.
21658 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21660 # Transform the output of nm in a C name address pair when lib prefix is needed.
21661 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21663 # The name of the directory that contains temporary libtool files.
21664 objdir=$objdir
21666 # Shell to use when invoking shell scripts.
21667 SHELL=$lt_SHELL
21669 # An echo program that does not interpret backslashes.
21670 ECHO=$lt_ECHO
21672 # Used to examine libraries when file_magic_cmd begins with "file".
21673 MAGIC_CMD=$MAGIC_CMD
21675 # Must we lock files when doing compilation?
21676 need_locks=$lt_need_locks
21678 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21679 DSYMUTIL=$lt_DSYMUTIL
21681 # Tool to change global to local symbols on Mac OS X.
21682 NMEDIT=$lt_NMEDIT
21684 # Tool to manipulate fat objects and archives on Mac OS X.
21685 LIPO=$lt_LIPO
21687 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
21688 OTOOL=$lt_OTOOL
21690 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21691 OTOOL64=$lt_OTOOL64
21693 # Old archive suffix (normally "a").
21694 libext=$libext
21696 # Shared library suffix (normally ".so").
21697 shrext_cmds=$lt_shrext_cmds
21699 # The commands to extract the exported symbol list from a shared archive.
21700 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21702 # Variables whose values should be saved in libtool wrapper scripts and
21703 # restored at link time.
21704 variables_saved_for_relink=$lt_variables_saved_for_relink
21706 # Do we need the "lib" prefix for modules?
21707 need_lib_prefix=$need_lib_prefix
21709 # Do we need a version for libraries?
21710 need_version=$need_version
21712 # Library versioning type.
21713 version_type=$version_type
21715 # Shared library runtime path variable.
21716 runpath_var=$runpath_var
21718 # Shared library path variable.
21719 shlibpath_var=$shlibpath_var
21721 # Is shlibpath searched before the hard-coded library search path?
21722 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21724 # Format of library name prefix.
21725 libname_spec=$lt_libname_spec
21727 # List of archive names. First name is the real one, the rest are links.
21728 # The last name is the one that the linker finds with -lNAME
21729 library_names_spec=$lt_library_names_spec
21731 # The coded name of the library, if different from the real name.
21732 soname_spec=$lt_soname_spec
21734 # Command to use after installation of a shared archive.
21735 postinstall_cmds=$lt_postinstall_cmds
21737 # Command to use after uninstallation of a shared archive.
21738 postuninstall_cmds=$lt_postuninstall_cmds
21740 # Commands used to finish a libtool library installation in a directory.
21741 finish_cmds=$lt_finish_cmds
21743 # As "finish_cmds", except a single script fragment to be evaled but
21744 # not shown.
21745 finish_eval=$lt_finish_eval
21747 # Whether we should hardcode library paths into libraries.
21748 hardcode_into_libs=$hardcode_into_libs
21750 # Compile-time system search path for libraries.
21751 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21753 # Run-time system search path for libraries.
21754 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21756 # Whether dlopen is supported.
21757 dlopen_support=$enable_dlopen
21759 # Whether dlopen of programs is supported.
21760 dlopen_self=$enable_dlopen_self
21762 # Whether dlopen of statically linked programs is supported.
21763 dlopen_self_static=$enable_dlopen_self_static
21765 # Commands to strip libraries.
21766 old_striplib=$lt_old_striplib
21767 striplib=$lt_striplib
21770 # The linker used to build libraries.
21771 LD=$lt_LD
21773 # Commands used to build an old-style archive.
21774 old_archive_cmds=$lt_old_archive_cmds
21776 # A language specific compiler.
21777 CC=$lt_compiler
21779 # Is the compiler the GNU compiler?
21780 with_gcc=$GCC
21782 # Compiler flag to turn off builtin functions.
21783 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21785 # How to pass a linker flag through the compiler.
21786 wl=$lt_lt_prog_compiler_wl
21788 # Additional compiler flags for building library objects.
21789 pic_flag=$lt_lt_prog_compiler_pic
21791 # Compiler flag to prevent dynamic linking.
21792 link_static_flag=$lt_lt_prog_compiler_static
21794 # Does compiler simultaneously support -c and -o options?
21795 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21797 # Whether or not to add -lc for building shared libraries.
21798 build_libtool_need_lc=$archive_cmds_need_lc
21800 # Whether or not to disallow shared libs when runtime libs are static.
21801 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21803 # Compiler flag to allow reflexive dlopens.
21804 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21806 # Compiler flag to generate shared objects directly from archives.
21807 whole_archive_flag_spec=$lt_whole_archive_flag_spec
21809 # Whether the compiler copes with passing no objects directly.
21810 compiler_needs_object=$lt_compiler_needs_object
21812 # Create an old-style archive from a shared archive.
21813 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21815 # Create a temporary old-style archive to link instead of a shared archive.
21816 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21818 # Commands used to build a shared archive.
21819 archive_cmds=$lt_archive_cmds
21820 archive_expsym_cmds=$lt_archive_expsym_cmds
21822 # Commands used to build a loadable module if different from building
21823 # a shared archive.
21824 module_cmds=$lt_module_cmds
21825 module_expsym_cmds=$lt_module_expsym_cmds
21827 # Whether we are building with GNU ld or not.
21828 with_gnu_ld=$lt_with_gnu_ld
21830 # Flag that allows shared libraries with undefined symbols to be built.
21831 allow_undefined_flag=$lt_allow_undefined_flag
21833 # Flag that enforces no undefined symbols.
21834 no_undefined_flag=$lt_no_undefined_flag
21836 # Flag to hardcode \$libdir into a binary during linking.
21837 # This must work even if \$libdir does not exist
21838 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21840 # If ld is used when linking, flag to hardcode \$libdir into a binary
21841 # during linking. This must work even if \$libdir does not exist.
21842 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
21844 # Whether we need a single "-rpath" flag with a separated argument.
21845 hardcode_libdir_separator=$lt_hardcode_libdir_separator
21847 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21848 # DIR into the resulting binary.
21849 hardcode_direct=$hardcode_direct
21851 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21852 # DIR into the resulting binary and the resulting library dependency is
21853 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21854 # library is relocated.
21855 hardcode_direct_absolute=$hardcode_direct_absolute
21857 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21858 # into the resulting binary.
21859 hardcode_minus_L=$hardcode_minus_L
21861 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21862 # into the resulting binary.
21863 hardcode_shlibpath_var=$hardcode_shlibpath_var
21865 # Set to "yes" if building a shared library automatically hardcodes DIR
21866 # into the library and all subsequent libraries and executables linked
21867 # against it.
21868 hardcode_automatic=$hardcode_automatic
21870 # Set to yes if linker adds runtime paths of dependent libraries
21871 # to runtime path list.
21872 inherit_rpath=$inherit_rpath
21874 # Whether libtool must link a program against all its dependency libraries.
21875 link_all_deplibs=$link_all_deplibs
21877 # Fix the shell variable \$srcfile for the compiler.
21878 fix_srcfile_path=$lt_fix_srcfile_path
21880 # Set to "yes" if exported symbols are required.
21881 always_export_symbols=$always_export_symbols
21883 # The commands to list exported symbols.
21884 export_symbols_cmds=$lt_export_symbols_cmds
21886 # Symbols that should not be listed in the preloaded symbols.
21887 exclude_expsyms=$lt_exclude_expsyms
21889 # Symbols that must always be exported.
21890 include_expsyms=$lt_include_expsyms
21892 # Commands necessary for linking programs (against libraries) with templates.
21893 prelink_cmds=$lt_prelink_cmds
21895 # Specify filename containing input files.
21896 file_list_spec=$lt_file_list_spec
21898 # How to hardcode a shared library path into an executable.
21899 hardcode_action=$hardcode_action
21901 # ### END LIBTOOL CONFIG
21903 _LT_EOF
21905 case $host_os in
21906 aix3*)
21907 cat <<\_LT_EOF >> "$cfgfile"
21908 # AIX sometimes has problems with the GCC collect2 program. For some
21909 # reason, if we set the COLLECT_NAMES environment variable, the problems
21910 # vanish in a puff of smoke.
21911 if test "X${COLLECT_NAMES+set}" != Xset; then
21912 COLLECT_NAMES=
21913 export COLLECT_NAMES
21915 _LT_EOF
21917 esac
21920 ltmain="$ac_aux_dir/ltmain.sh"
21923 # We use sed instead of cat because bash on DJGPP gets confused if
21924 # if finds mixed CR/LF and LF-only lines. Since sed operates in
21925 # text mode, it properly converts lines to CR/LF. This bash problem
21926 # is reportedly fixed, but why not run on old versions too?
21927 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
21928 || (rm -f "$cfgfile"; exit 1)
21930 case $xsi_shell in
21931 yes)
21932 cat << \_LT_EOF >> "$cfgfile"
21934 # func_dirname file append nondir_replacement
21935 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
21936 # otherwise set result to NONDIR_REPLACEMENT.
21937 func_dirname ()
21939 case ${1} in
21940 */*) func_dirname_result="${1%/*}${2}" ;;
21941 * ) func_dirname_result="${3}" ;;
21942 esac
21945 # func_basename file
21946 func_basename ()
21948 func_basename_result="${1##*/}"
21951 # func_dirname_and_basename file append nondir_replacement
21952 # perform func_basename and func_dirname in a single function
21953 # call:
21954 # dirname: Compute the dirname of FILE. If nonempty,
21955 # add APPEND to the result, otherwise set result
21956 # to NONDIR_REPLACEMENT.
21957 # value returned in "$func_dirname_result"
21958 # basename: Compute filename of FILE.
21959 # value retuned in "$func_basename_result"
21960 # Implementation must be kept synchronized with func_dirname
21961 # and func_basename. For efficiency, we do not delegate to
21962 # those functions but instead duplicate the functionality here.
21963 func_dirname_and_basename ()
21965 case ${1} in
21966 */*) func_dirname_result="${1%/*}${2}" ;;
21967 * ) func_dirname_result="${3}" ;;
21968 esac
21969 func_basename_result="${1##*/}"
21972 # func_stripname prefix suffix name
21973 # strip PREFIX and SUFFIX off of NAME.
21974 # PREFIX and SUFFIX must not contain globbing or regex special
21975 # characters, hashes, percent signs, but SUFFIX may contain a leading
21976 # dot (in which case that matches only a dot).
21977 func_stripname ()
21979 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
21980 # positional parameters, so assign one to ordinary parameter first.
21981 func_stripname_result=${3}
21982 func_stripname_result=${func_stripname_result#"${1}"}
21983 func_stripname_result=${func_stripname_result%"${2}"}
21986 # func_opt_split
21987 func_opt_split ()
21989 func_opt_split_opt=${1%%=*}
21990 func_opt_split_arg=${1#*=}
21993 # func_lo2o object
21994 func_lo2o ()
21996 case ${1} in
21997 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
21998 *) func_lo2o_result=${1} ;;
21999 esac
22002 # func_xform libobj-or-source
22003 func_xform ()
22005 func_xform_result=${1%.*}.lo
22008 # func_arith arithmetic-term...
22009 func_arith ()
22011 func_arith_result=$(( $* ))
22014 # func_len string
22015 # STRING may not start with a hyphen.
22016 func_len ()
22018 func_len_result=${#1}
22021 _LT_EOF
22023 *) # Bourne compatible functions.
22024 cat << \_LT_EOF >> "$cfgfile"
22026 # func_dirname file append nondir_replacement
22027 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
22028 # otherwise set result to NONDIR_REPLACEMENT.
22029 func_dirname ()
22031 # Extract subdirectory from the argument.
22032 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
22033 if test "X$func_dirname_result" = "X${1}"; then
22034 func_dirname_result="${3}"
22035 else
22036 func_dirname_result="$func_dirname_result${2}"
22040 # func_basename file
22041 func_basename ()
22043 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
22047 # func_stripname prefix suffix name
22048 # strip PREFIX and SUFFIX off of NAME.
22049 # PREFIX and SUFFIX must not contain globbing or regex special
22050 # characters, hashes, percent signs, but SUFFIX may contain a leading
22051 # dot (in which case that matches only a dot).
22052 # func_strip_suffix prefix name
22053 func_stripname ()
22055 case ${2} in
22056 .*) func_stripname_result=`$ECHO "X${3}" \
22057 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
22058 *) func_stripname_result=`$ECHO "X${3}" \
22059 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
22060 esac
22063 # sed scripts:
22064 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
22065 my_sed_long_arg='1s/^-[^=]*=//'
22067 # func_opt_split
22068 func_opt_split ()
22070 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
22071 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
22074 # func_lo2o object
22075 func_lo2o ()
22077 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
22080 # func_xform libobj-or-source
22081 func_xform ()
22083 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
22086 # func_arith arithmetic-term...
22087 func_arith ()
22089 func_arith_result=`expr "$@"`
22092 # func_len string
22093 # STRING may not start with a hyphen.
22094 func_len ()
22096 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
22099 _LT_EOF
22100 esac
22102 case $lt_shell_append in
22103 yes)
22104 cat << \_LT_EOF >> "$cfgfile"
22106 # func_append var value
22107 # Append VALUE to the end of shell variable VAR.
22108 func_append ()
22110 eval "$1+=\$2"
22112 _LT_EOF
22115 cat << \_LT_EOF >> "$cfgfile"
22117 # func_append var value
22118 # Append VALUE to the end of shell variable VAR.
22119 func_append ()
22121 eval "$1=\$$1\$2"
22124 _LT_EOF
22126 esac
22129 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
22130 || (rm -f "$cfgfile"; exit 1)
22132 mv -f "$cfgfile" "$ofile" ||
22133 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22134 chmod +x "$ofile"
22137 "po-directories":C)
22138 for ac_file in $CONFIG_FILES; do
22139 # Support "outfile[:infile[:infile...]]"
22140 case "$ac_file" in
22141 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
22142 esac
22143 # PO directories have a Makefile.in generated from Makefile.in.in.
22144 case "$ac_file" in */Makefile.in)
22145 # Adjust a relative srcdir.
22146 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
22147 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
22148 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
22149 # In autoconf-2.13 it is called $ac_given_srcdir.
22150 # In autoconf-2.50 it is called $srcdir.
22151 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
22152 case "$ac_given_srcdir" in
22153 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
22154 /*) top_srcdir="$ac_given_srcdir" ;;
22155 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
22156 esac
22157 # Treat a directory as a PO directory if and only if it has a
22158 # POTFILES.in file. This allows packages to have multiple PO
22159 # directories under different names or in different locations.
22160 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
22161 rm -f "$ac_dir/POTFILES"
22162 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
22163 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
22164 POMAKEFILEDEPS="POTFILES.in"
22165 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
22166 # on $ac_dir but don't depend on user-specified configuration
22167 # parameters.
22168 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
22169 # The LINGUAS file contains the set of available languages.
22170 if test -n "$OBSOLETE_ALL_LINGUAS"; then
22171 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
22173 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
22174 # Hide the ALL_LINGUAS assigment from automake < 1.5.
22175 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
22176 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
22177 else
22178 # The set of available languages was given in configure.in.
22179 # Hide the ALL_LINGUAS assigment from automake < 1.5.
22180 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
22182 # Compute POFILES
22183 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
22184 # Compute UPDATEPOFILES
22185 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
22186 # Compute DUMMYPOFILES
22187 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
22188 # Compute GMOFILES
22189 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
22190 case "$ac_given_srcdir" in
22191 .) srcdirpre= ;;
22192 *) srcdirpre='$(srcdir)/' ;;
22193 esac
22194 POFILES=
22195 UPDATEPOFILES=
22196 DUMMYPOFILES=
22197 GMOFILES=
22198 for lang in $ALL_LINGUAS; do
22199 POFILES="$POFILES $srcdirpre$lang.po"
22200 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
22201 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
22202 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
22203 done
22204 # CATALOGS depends on both $ac_dir and the user's LINGUAS
22205 # environment variable.
22206 INST_LINGUAS=
22207 if test -n "$ALL_LINGUAS"; then
22208 for presentlang in $ALL_LINGUAS; do
22209 useit=no
22210 if test "%UNSET%" != "$LINGUAS"; then
22211 desiredlanguages="$LINGUAS"
22212 else
22213 desiredlanguages="$ALL_LINGUAS"
22215 for desiredlang in $desiredlanguages; do
22216 # Use the presentlang catalog if desiredlang is
22217 # a. equal to presentlang, or
22218 # b. a variant of presentlang (because in this case,
22219 # presentlang can be used as a fallback for messages
22220 # which are not translated in the desiredlang catalog).
22221 case "$desiredlang" in
22222 "$presentlang"*) useit=yes;;
22223 esac
22224 done
22225 if test $useit = yes; then
22226 INST_LINGUAS="$INST_LINGUAS $presentlang"
22228 done
22230 CATALOGS=
22231 if test -n "$INST_LINGUAS"; then
22232 for lang in $INST_LINGUAS; do
22233 CATALOGS="$CATALOGS $lang.gmo"
22234 done
22236 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
22237 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"
22238 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
22239 if test -f "$f"; then
22240 case "$f" in
22241 *.orig | *.bak | *~) ;;
22242 *) cat "$f" >> "$ac_dir/Makefile" ;;
22243 esac
22245 done
22248 esac
22249 done ;;
22251 esac
22252 done # for ac_tag
22255 as_fn_exit 0
22256 _ACEOF
22257 ac_clean_files=$ac_clean_files_save
22259 test $ac_write_fail = 0 ||
22260 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22263 # configure is writing to config.log, and then calls config.status.
22264 # config.status does its own redirection, appending to config.log.
22265 # Unfortunately, on DOS this fails, as config.log is still kept open
22266 # by configure, so config.status won't be able to write to it; its
22267 # output is simply discarded. So we exec the FD to /dev/null,
22268 # effectively closing config.log, so it can be properly (re)opened and
22269 # appended to by config.status. When coming back to configure, we
22270 # need to make the FD available again.
22271 if test "$no_create" != yes; then
22272 ac_cs_success=:
22273 ac_config_status_args=
22274 test "$silent" = yes &&
22275 ac_config_status_args="$ac_config_status_args --quiet"
22276 exec 5>/dev/null
22277 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22278 exec 5>>config.log
22279 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22280 # would make configure fail if this is the last instruction.
22281 $ac_cs_success || as_fn_exit 1
22283 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22284 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22285 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}