* Update to version 2.19.11
[alpine.git] / configure
blobe459d55f419bc048728d0a159c95924d9c646a99
1 #! /bin/sh
2 # From configure.ac Rev:13 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.11.
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.11'
734 PACKAGE_STRING='alpine 2.19.11'
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.11 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.11:";;
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 (recommended when S/MIME is
1838 enabled and configured)
1839 --without-local-password-cache
1840 Disable OS-specific password cache, if supported
1841 --with-local-password-cache-method
1842 OS-specific credential cache (OSX=APPLEKEYCHAIN,
1843 Windows=WINCRED)
1844 --with-default-sshpath=FILENAME
1845 set default value of ssh command path (defining
1846 should cause ssh to be preferred to rsh)
1847 --with-default-sshcmd=PERCENT_S_STRING
1848 set default value of ssh command string (usually "%s
1849 %s -l %s exec /etc/r%sd")
1850 --without-ssl Disable SSL support (OpenSSL)
1851 --with-ssl-dir=DIR Root of SSL lib/include path
1852 --with-ssl-certs-dir=DIR
1853 Path to SSL certificate directory
1854 --with-ssl-include-dir=DIR
1855 SSL include file path
1856 --with-ssl-lib-dir=DIR SSL library path
1857 --without-krb5 Disable Kerberos support
1858 --with-krb5-dir=DIR Root of Kerberos lib/include path
1859 --with-krb5-include-dir=DIR
1860 Kerberos include file path
1861 --with-krb5-lib-dir=DIR Kerberos library path
1862 --without-ldap Disable LDAP query support
1863 --with-ldap-dir=DIR Root of LDAP lib/include path
1864 --with-ldap-include-dir=DIR
1865 Directory containing LDAP include files
1866 --with-ldap-lib-dir=DIR LDAP library path
1867 --without-smime Disable S/MIME
1868 --without-tcl Disable TCL, thus Web Alpine support
1869 --with-tcl-lib=LIBRARY Specific TCL Library, like \"tcl8.6\"
1870 --with-tcl-include=DIR Directory containing TCL include files
1871 --with-supplied-regex Use regex library supplied with alpine
1872 --without-pthread Do NOT test for nor build with POSIX thread support
1873 --with-system-mail-directory=DIR
1874 Directory where local mail is delivered
1875 --with-c-client-target=TARGET
1876 IMAP build target (see imap/Makefile)
1877 --without-ipv6 Disable IPv6, primarily to work around resolver
1878 problems
1880 Some influential environment variables:
1881 CC C compiler command
1882 CFLAGS C compiler flags
1883 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1884 nonstandard directory <lib dir>
1885 LIBS libraries to pass to the linker, e.g. -l<library>
1886 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1887 you have headers in a nonstandard directory <include dir>
1888 CPP C preprocessor
1890 Use these variables to override the choices made by `configure' or to help
1891 it to find libraries and programs with nonstandard names/locations.
1893 Report bugs to <chappa@washington.edu>.
1894 _ACEOF
1895 ac_status=$?
1898 if test "$ac_init_help" = "recursive"; then
1899 # If there are subdirs, report their specific --help.
1900 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1901 test -d "$ac_dir" ||
1902 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1903 continue
1904 ac_builddir=.
1906 case "$ac_dir" in
1907 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1909 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1910 # A ".." for each directory in $ac_dir_suffix.
1911 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1912 case $ac_top_builddir_sub in
1913 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1914 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1915 esac ;;
1916 esac
1917 ac_abs_top_builddir=$ac_pwd
1918 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1919 # for backward compatibility:
1920 ac_top_builddir=$ac_top_build_prefix
1922 case $srcdir in
1923 .) # We are building in place.
1924 ac_srcdir=.
1925 ac_top_srcdir=$ac_top_builddir_sub
1926 ac_abs_top_srcdir=$ac_pwd ;;
1927 [\\/]* | ?:[\\/]* ) # Absolute name.
1928 ac_srcdir=$srcdir$ac_dir_suffix;
1929 ac_top_srcdir=$srcdir
1930 ac_abs_top_srcdir=$srcdir ;;
1931 *) # Relative name.
1932 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1933 ac_top_srcdir=$ac_top_build_prefix$srcdir
1934 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1935 esac
1936 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1938 cd "$ac_dir" || { ac_status=$?; continue; }
1939 # Check for guested configure.
1940 if test -f "$ac_srcdir/configure.gnu"; then
1941 echo &&
1942 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1943 elif test -f "$ac_srcdir/configure"; then
1944 echo &&
1945 $SHELL "$ac_srcdir/configure" --help=recursive
1946 else
1947 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1948 fi || ac_status=$?
1949 cd "$ac_pwd" || { ac_status=$?; break; }
1950 done
1953 test -n "$ac_init_help" && exit $ac_status
1954 if $ac_init_version; then
1955 cat <<\_ACEOF
1956 alpine configure 2.19.11
1957 generated by GNU Autoconf 2.69
1959 Copyright (C) 2012 Free Software Foundation, Inc.
1960 This configure script is free software; the Free Software Foundation
1961 gives unlimited permission to copy, distribute and modify it.
1962 _ACEOF
1963 exit
1966 ## ------------------------ ##
1967 ## Autoconf initialization. ##
1968 ## ------------------------ ##
1970 # ac_fn_c_try_compile LINENO
1971 # --------------------------
1972 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1973 ac_fn_c_try_compile ()
1975 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1976 rm -f conftest.$ac_objext
1977 if { { ac_try="$ac_compile"
1978 case "(($ac_try" in
1979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1980 *) ac_try_echo=$ac_try;;
1981 esac
1982 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1983 $as_echo "$ac_try_echo"; } >&5
1984 (eval "$ac_compile") 2>conftest.err
1985 ac_status=$?
1986 if test -s conftest.err; then
1987 grep -v '^ *+' conftest.err >conftest.er1
1988 cat conftest.er1 >&5
1989 mv -f conftest.er1 conftest.err
1991 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1992 test $ac_status = 0; } && {
1993 test -z "$ac_c_werror_flag" ||
1994 test ! -s conftest.err
1995 } && test -s conftest.$ac_objext; then :
1996 ac_retval=0
1997 else
1998 $as_echo "$as_me: failed program was:" >&5
1999 sed 's/^/| /' conftest.$ac_ext >&5
2001 ac_retval=1
2003 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2004 as_fn_set_status $ac_retval
2006 } # ac_fn_c_try_compile
2008 # ac_fn_c_try_link LINENO
2009 # -----------------------
2010 # Try to link conftest.$ac_ext, and return whether this succeeded.
2011 ac_fn_c_try_link ()
2013 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2014 rm -f conftest.$ac_objext conftest$ac_exeext
2015 if { { ac_try="$ac_link"
2016 case "(($ac_try" in
2017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2018 *) ac_try_echo=$ac_try;;
2019 esac
2020 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2021 $as_echo "$ac_try_echo"; } >&5
2022 (eval "$ac_link") 2>conftest.err
2023 ac_status=$?
2024 if test -s conftest.err; then
2025 grep -v '^ *+' conftest.err >conftest.er1
2026 cat conftest.er1 >&5
2027 mv -f conftest.er1 conftest.err
2029 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2030 test $ac_status = 0; } && {
2031 test -z "$ac_c_werror_flag" ||
2032 test ! -s conftest.err
2033 } && test -s conftest$ac_exeext && {
2034 test "$cross_compiling" = yes ||
2035 test -x conftest$ac_exeext
2036 }; then :
2037 ac_retval=0
2038 else
2039 $as_echo "$as_me: failed program was:" >&5
2040 sed 's/^/| /' conftest.$ac_ext >&5
2042 ac_retval=1
2044 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2045 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2046 # interfere with the next link command; also delete a directory that is
2047 # left behind by Apple's compiler. We do this before executing the actions.
2048 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2049 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2050 as_fn_set_status $ac_retval
2052 } # ac_fn_c_try_link
2054 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2055 # -------------------------------------------------------
2056 # Tests whether HEADER exists and can be compiled using the include files in
2057 # INCLUDES, setting the cache variable VAR accordingly.
2058 ac_fn_c_check_header_compile ()
2060 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2062 $as_echo_n "checking for $2... " >&6; }
2063 if eval \${$3+:} false; then :
2064 $as_echo_n "(cached) " >&6
2065 else
2066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2067 /* end confdefs.h. */
2069 #include <$2>
2070 _ACEOF
2071 if ac_fn_c_try_compile "$LINENO"; then :
2072 eval "$3=yes"
2073 else
2074 eval "$3=no"
2076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2078 eval ac_res=\$$3
2079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2080 $as_echo "$ac_res" >&6; }
2081 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2083 } # ac_fn_c_check_header_compile
2085 # ac_fn_c_try_cpp LINENO
2086 # ----------------------
2087 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2088 ac_fn_c_try_cpp ()
2090 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2091 if { { ac_try="$ac_cpp conftest.$ac_ext"
2092 case "(($ac_try" in
2093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2094 *) ac_try_echo=$ac_try;;
2095 esac
2096 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2097 $as_echo "$ac_try_echo"; } >&5
2098 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2099 ac_status=$?
2100 if test -s conftest.err; then
2101 grep -v '^ *+' conftest.err >conftest.er1
2102 cat conftest.er1 >&5
2103 mv -f conftest.er1 conftest.err
2105 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2106 test $ac_status = 0; } > conftest.i && {
2107 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2108 test ! -s conftest.err
2109 }; then :
2110 ac_retval=0
2111 else
2112 $as_echo "$as_me: failed program was:" >&5
2113 sed 's/^/| /' conftest.$ac_ext >&5
2115 ac_retval=1
2117 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2118 as_fn_set_status $ac_retval
2120 } # ac_fn_c_try_cpp
2122 # ac_fn_c_try_run LINENO
2123 # ----------------------
2124 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2125 # that executables *can* be run.
2126 ac_fn_c_try_run ()
2128 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2129 if { { ac_try="$ac_link"
2130 case "(($ac_try" in
2131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2132 *) ac_try_echo=$ac_try;;
2133 esac
2134 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2135 $as_echo "$ac_try_echo"; } >&5
2136 (eval "$ac_link") 2>&5
2137 ac_status=$?
2138 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2139 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2140 { { case "(($ac_try" in
2141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2142 *) ac_try_echo=$ac_try;;
2143 esac
2144 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2145 $as_echo "$ac_try_echo"; } >&5
2146 (eval "$ac_try") 2>&5
2147 ac_status=$?
2148 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2149 test $ac_status = 0; }; }; then :
2150 ac_retval=0
2151 else
2152 $as_echo "$as_me: program exited with status $ac_status" >&5
2153 $as_echo "$as_me: failed program was:" >&5
2154 sed 's/^/| /' conftest.$ac_ext >&5
2156 ac_retval=$ac_status
2158 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2159 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2160 as_fn_set_status $ac_retval
2162 } # ac_fn_c_try_run
2164 # ac_fn_c_check_func LINENO FUNC VAR
2165 # ----------------------------------
2166 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2167 ac_fn_c_check_func ()
2169 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2171 $as_echo_n "checking for $2... " >&6; }
2172 if eval \${$3+:} false; then :
2173 $as_echo_n "(cached) " >&6
2174 else
2175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2176 /* end confdefs.h. */
2177 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2178 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2179 #define $2 innocuous_$2
2181 /* System header to define __stub macros and hopefully few prototypes,
2182 which can conflict with char $2 (); below.
2183 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2184 <limits.h> exists even on freestanding compilers. */
2186 #ifdef __STDC__
2187 # include <limits.h>
2188 #else
2189 # include <assert.h>
2190 #endif
2192 #undef $2
2194 /* Override any GCC internal prototype to avoid an error.
2195 Use char because int might match the return type of a GCC
2196 builtin and then its argument prototype would still apply. */
2197 #ifdef __cplusplus
2198 extern "C"
2199 #endif
2200 char $2 ();
2201 /* The GNU C library defines this for functions which it implements
2202 to always fail with ENOSYS. Some functions are actually named
2203 something starting with __ and the normal name is an alias. */
2204 #if defined __stub_$2 || defined __stub___$2
2205 choke me
2206 #endif
2209 main ()
2211 return $2 ();
2213 return 0;
2215 _ACEOF
2216 if ac_fn_c_try_link "$LINENO"; then :
2217 eval "$3=yes"
2218 else
2219 eval "$3=no"
2221 rm -f core conftest.err conftest.$ac_objext \
2222 conftest$ac_exeext conftest.$ac_ext
2224 eval ac_res=\$$3
2225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2226 $as_echo "$ac_res" >&6; }
2227 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2229 } # ac_fn_c_check_func
2231 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2232 # -------------------------------------------------------
2233 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2234 # the include files in INCLUDES and setting the cache variable VAR
2235 # accordingly.
2236 ac_fn_c_check_header_mongrel ()
2238 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2239 if eval \${$3+:} false; then :
2240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2241 $as_echo_n "checking for $2... " >&6; }
2242 if eval \${$3+:} false; then :
2243 $as_echo_n "(cached) " >&6
2245 eval ac_res=\$$3
2246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2247 $as_echo "$ac_res" >&6; }
2248 else
2249 # Is the header compilable?
2250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2251 $as_echo_n "checking $2 usability... " >&6; }
2252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2253 /* end confdefs.h. */
2255 #include <$2>
2256 _ACEOF
2257 if ac_fn_c_try_compile "$LINENO"; then :
2258 ac_header_compiler=yes
2259 else
2260 ac_header_compiler=no
2262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2264 $as_echo "$ac_header_compiler" >&6; }
2266 # Is the header present?
2267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2268 $as_echo_n "checking $2 presence... " >&6; }
2269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2270 /* end confdefs.h. */
2271 #include <$2>
2272 _ACEOF
2273 if ac_fn_c_try_cpp "$LINENO"; then :
2274 ac_header_preproc=yes
2275 else
2276 ac_header_preproc=no
2278 rm -f conftest.err conftest.i conftest.$ac_ext
2279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2280 $as_echo "$ac_header_preproc" >&6; }
2282 # So? What about this header?
2283 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2284 yes:no: )
2285 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2286 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2287 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2288 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2290 no:yes:* )
2291 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2292 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2293 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2294 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2295 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2296 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2297 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2298 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2299 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2300 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2301 ( $as_echo "## ------------------------------------ ##
2302 ## Report this to chappa@washington.edu ##
2303 ## ------------------------------------ ##"
2304 ) | sed "s/^/$as_me: WARNING: /" >&2
2306 esac
2307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2308 $as_echo_n "checking for $2... " >&6; }
2309 if eval \${$3+:} false; then :
2310 $as_echo_n "(cached) " >&6
2311 else
2312 eval "$3=\$ac_header_compiler"
2314 eval ac_res=\$$3
2315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2316 $as_echo "$ac_res" >&6; }
2318 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2320 } # ac_fn_c_check_header_mongrel
2322 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2323 # -------------------------------------------
2324 # Tests whether TYPE exists after having Included INCLUDES, setting cache
2325 # variable VAR accordingly.
2326 ac_fn_c_check_type ()
2328 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2330 $as_echo_n "checking for $2... " >&6; }
2331 if eval \${$3+:} false; then :
2332 $as_echo_n "(cached) " >&6
2333 else
2334 eval "$3=no"
2335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2336 /* end confdefs.h. */
2339 main ()
2341 if (sizeof ($2))
2342 return 0;
2344 return 0;
2346 _ACEOF
2347 if ac_fn_c_try_compile "$LINENO"; then :
2348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2349 /* end confdefs.h. */
2352 main ()
2354 if (sizeof (($2)))
2355 return 0;
2357 return 0;
2359 _ACEOF
2360 if ac_fn_c_try_compile "$LINENO"; then :
2362 else
2363 eval "$3=yes"
2365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2369 eval ac_res=\$$3
2370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2371 $as_echo "$ac_res" >&6; }
2372 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2374 } # ac_fn_c_check_type
2376 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2377 # --------------------------------------------
2378 # Tries to find the compile-time value of EXPR in a program that includes
2379 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2380 # computed
2381 ac_fn_c_compute_int ()
2383 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2384 if test "$cross_compiling" = yes; then
2385 # Depending upon the size, compute the lo and hi bounds.
2386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2387 /* end confdefs.h. */
2390 main ()
2392 static int test_array [1 - 2 * !(($2) >= 0)];
2393 test_array [0] = 0;
2394 return test_array [0];
2397 return 0;
2399 _ACEOF
2400 if ac_fn_c_try_compile "$LINENO"; then :
2401 ac_lo=0 ac_mid=0
2402 while :; do
2403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2404 /* end confdefs.h. */
2407 main ()
2409 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2410 test_array [0] = 0;
2411 return test_array [0];
2414 return 0;
2416 _ACEOF
2417 if ac_fn_c_try_compile "$LINENO"; then :
2418 ac_hi=$ac_mid; break
2419 else
2420 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2421 if test $ac_lo -le $ac_mid; then
2422 ac_lo= ac_hi=
2423 break
2425 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2428 done
2429 else
2430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2431 /* end confdefs.h. */
2434 main ()
2436 static int test_array [1 - 2 * !(($2) < 0)];
2437 test_array [0] = 0;
2438 return test_array [0];
2441 return 0;
2443 _ACEOF
2444 if ac_fn_c_try_compile "$LINENO"; then :
2445 ac_hi=-1 ac_mid=-1
2446 while :; do
2447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2448 /* end confdefs.h. */
2451 main ()
2453 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2454 test_array [0] = 0;
2455 return test_array [0];
2458 return 0;
2460 _ACEOF
2461 if ac_fn_c_try_compile "$LINENO"; then :
2462 ac_lo=$ac_mid; break
2463 else
2464 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2465 if test $ac_mid -le $ac_hi; then
2466 ac_lo= ac_hi=
2467 break
2469 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2472 done
2473 else
2474 ac_lo= ac_hi=
2476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2479 # Binary search between lo and hi bounds.
2480 while test "x$ac_lo" != "x$ac_hi"; do
2481 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2483 /* end confdefs.h. */
2486 main ()
2488 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2489 test_array [0] = 0;
2490 return test_array [0];
2493 return 0;
2495 _ACEOF
2496 if ac_fn_c_try_compile "$LINENO"; then :
2497 ac_hi=$ac_mid
2498 else
2499 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2502 done
2503 case $ac_lo in #((
2504 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2505 '') ac_retval=1 ;;
2506 esac
2507 else
2508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2509 /* end confdefs.h. */
2511 static long int longval () { return $2; }
2512 static unsigned long int ulongval () { return $2; }
2513 #include <stdio.h>
2514 #include <stdlib.h>
2516 main ()
2519 FILE *f = fopen ("conftest.val", "w");
2520 if (! f)
2521 return 1;
2522 if (($2) < 0)
2524 long int i = longval ();
2525 if (i != ($2))
2526 return 1;
2527 fprintf (f, "%ld", i);
2529 else
2531 unsigned long int i = ulongval ();
2532 if (i != ($2))
2533 return 1;
2534 fprintf (f, "%lu", i);
2536 /* Do not output a trailing newline, as this causes \r\n confusion
2537 on some platforms. */
2538 return ferror (f) || fclose (f) != 0;
2541 return 0;
2543 _ACEOF
2544 if ac_fn_c_try_run "$LINENO"; then :
2545 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2546 else
2547 ac_retval=1
2549 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2550 conftest.$ac_objext conftest.beam conftest.$ac_ext
2551 rm -f conftest.val
2554 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2555 as_fn_set_status $ac_retval
2557 } # ac_fn_c_compute_int
2558 cat >config.log <<_ACEOF
2559 This file contains any messages produced by compilers while
2560 running configure, to aid debugging if configure makes a mistake.
2562 It was created by alpine $as_me 2.19.11, which was
2563 generated by GNU Autoconf 2.69. Invocation command line was
2565 $ $0 $@
2567 _ACEOF
2568 exec 5>>config.log
2570 cat <<_ASUNAME
2571 ## --------- ##
2572 ## Platform. ##
2573 ## --------- ##
2575 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2576 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2577 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2578 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2579 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2581 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2582 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2584 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2585 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2586 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2587 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2588 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2589 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2590 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2592 _ASUNAME
2594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2595 for as_dir in $PATH
2597 IFS=$as_save_IFS
2598 test -z "$as_dir" && as_dir=.
2599 $as_echo "PATH: $as_dir"
2600 done
2601 IFS=$as_save_IFS
2603 } >&5
2605 cat >&5 <<_ACEOF
2608 ## ----------- ##
2609 ## Core tests. ##
2610 ## ----------- ##
2612 _ACEOF
2615 # Keep a trace of the command line.
2616 # Strip out --no-create and --no-recursion so they do not pile up.
2617 # Strip out --silent because we don't want to record it for future runs.
2618 # Also quote any args containing shell meta-characters.
2619 # Make two passes to allow for proper duplicate-argument suppression.
2620 ac_configure_args=
2621 ac_configure_args0=
2622 ac_configure_args1=
2623 ac_must_keep_next=false
2624 for ac_pass in 1 2
2626 for ac_arg
2628 case $ac_arg in
2629 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2630 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2631 | -silent | --silent | --silen | --sile | --sil)
2632 continue ;;
2633 *\'*)
2634 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2635 esac
2636 case $ac_pass in
2637 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2639 as_fn_append ac_configure_args1 " '$ac_arg'"
2640 if test $ac_must_keep_next = true; then
2641 ac_must_keep_next=false # Got value, back to normal.
2642 else
2643 case $ac_arg in
2644 *=* | --config-cache | -C | -disable-* | --disable-* \
2645 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2646 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2647 | -with-* | --with-* | -without-* | --without-* | --x)
2648 case "$ac_configure_args0 " in
2649 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2650 esac
2652 -* ) ac_must_keep_next=true ;;
2653 esac
2655 as_fn_append ac_configure_args " '$ac_arg'"
2657 esac
2658 done
2659 done
2660 { ac_configure_args0=; unset ac_configure_args0;}
2661 { ac_configure_args1=; unset ac_configure_args1;}
2663 # When interrupted or exit'd, cleanup temporary files, and complete
2664 # config.log. We remove comments because anyway the quotes in there
2665 # would cause problems or look ugly.
2666 # WARNING: Use '\'' to represent an apostrophe within the trap.
2667 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2668 trap 'exit_status=$?
2669 # Save into config.log some information that might help in debugging.
2671 echo
2673 $as_echo "## ---------------- ##
2674 ## Cache variables. ##
2675 ## ---------------- ##"
2676 echo
2677 # The following way of writing the cache mishandles newlines in values,
2679 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2680 eval ac_val=\$$ac_var
2681 case $ac_val in #(
2682 *${as_nl}*)
2683 case $ac_var in #(
2684 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2685 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2686 esac
2687 case $ac_var in #(
2688 _ | IFS | as_nl) ;; #(
2689 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2690 *) { eval $ac_var=; unset $ac_var;} ;;
2691 esac ;;
2692 esac
2693 done
2694 (set) 2>&1 |
2695 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2696 *${as_nl}ac_space=\ *)
2697 sed -n \
2698 "s/'\''/'\''\\\\'\'''\''/g;
2699 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2700 ;; #(
2702 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2704 esac |
2705 sort
2707 echo
2709 $as_echo "## ----------------- ##
2710 ## Output variables. ##
2711 ## ----------------- ##"
2712 echo
2713 for ac_var in $ac_subst_vars
2715 eval ac_val=\$$ac_var
2716 case $ac_val in
2717 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2718 esac
2719 $as_echo "$ac_var='\''$ac_val'\''"
2720 done | sort
2721 echo
2723 if test -n "$ac_subst_files"; then
2724 $as_echo "## ------------------- ##
2725 ## File substitutions. ##
2726 ## ------------------- ##"
2727 echo
2728 for ac_var in $ac_subst_files
2730 eval ac_val=\$$ac_var
2731 case $ac_val in
2732 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2733 esac
2734 $as_echo "$ac_var='\''$ac_val'\''"
2735 done | sort
2736 echo
2739 if test -s confdefs.h; then
2740 $as_echo "## ----------- ##
2741 ## confdefs.h. ##
2742 ## ----------- ##"
2743 echo
2744 cat confdefs.h
2745 echo
2747 test "$ac_signal" != 0 &&
2748 $as_echo "$as_me: caught signal $ac_signal"
2749 $as_echo "$as_me: exit $exit_status"
2750 } >&5
2751 rm -f core *.core core.conftest.* &&
2752 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2753 exit $exit_status
2755 for ac_signal in 1 2 13 15; do
2756 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2757 done
2758 ac_signal=0
2760 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2761 rm -f -r conftest* confdefs.h
2763 $as_echo "/* confdefs.h */" > confdefs.h
2765 # Predefined preprocessor variables.
2767 cat >>confdefs.h <<_ACEOF
2768 #define PACKAGE_NAME "$PACKAGE_NAME"
2769 _ACEOF
2771 cat >>confdefs.h <<_ACEOF
2772 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2773 _ACEOF
2775 cat >>confdefs.h <<_ACEOF
2776 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2777 _ACEOF
2779 cat >>confdefs.h <<_ACEOF
2780 #define PACKAGE_STRING "$PACKAGE_STRING"
2781 _ACEOF
2783 cat >>confdefs.h <<_ACEOF
2784 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2785 _ACEOF
2787 cat >>confdefs.h <<_ACEOF
2788 #define PACKAGE_URL "$PACKAGE_URL"
2789 _ACEOF
2792 # Let the site file select an alternate cache file if it wants to.
2793 # Prefer an explicitly selected file to automatically selected ones.
2794 ac_site_file1=NONE
2795 ac_site_file2=NONE
2796 if test -n "$CONFIG_SITE"; then
2797 # We do not want a PATH search for config.site.
2798 case $CONFIG_SITE in #((
2799 -*) ac_site_file1=./$CONFIG_SITE;;
2800 */*) ac_site_file1=$CONFIG_SITE;;
2801 *) ac_site_file1=./$CONFIG_SITE;;
2802 esac
2803 elif test "x$prefix" != xNONE; then
2804 ac_site_file1=$prefix/share/config.site
2805 ac_site_file2=$prefix/etc/config.site
2806 else
2807 ac_site_file1=$ac_default_prefix/share/config.site
2808 ac_site_file2=$ac_default_prefix/etc/config.site
2810 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2812 test "x$ac_site_file" = xNONE && continue
2813 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2815 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2816 sed 's/^/| /' "$ac_site_file" >&5
2817 . "$ac_site_file" \
2818 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2819 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2820 as_fn_error $? "failed to load site script $ac_site_file
2821 See \`config.log' for more details" "$LINENO" 5; }
2823 done
2825 if test -r "$cache_file"; then
2826 # Some versions of bash will fail to source /dev/null (special files
2827 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2828 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2829 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2830 $as_echo "$as_me: loading cache $cache_file" >&6;}
2831 case $cache_file in
2832 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2833 *) . "./$cache_file";;
2834 esac
2836 else
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2838 $as_echo "$as_me: creating cache $cache_file" >&6;}
2839 >$cache_file
2842 gt_needs="$gt_needs "
2843 # Check that the precious variables saved in the cache have kept the same
2844 # value.
2845 ac_cache_corrupted=false
2846 for ac_var in $ac_precious_vars; do
2847 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2848 eval ac_new_set=\$ac_env_${ac_var}_set
2849 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2850 eval ac_new_val=\$ac_env_${ac_var}_value
2851 case $ac_old_set,$ac_new_set in
2852 set,)
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2854 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2855 ac_cache_corrupted=: ;;
2856 ,set)
2857 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2858 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2859 ac_cache_corrupted=: ;;
2860 ,);;
2862 if test "x$ac_old_val" != "x$ac_new_val"; then
2863 # differences in whitespace do not lead to failure.
2864 ac_old_val_w=`echo x $ac_old_val`
2865 ac_new_val_w=`echo x $ac_new_val`
2866 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2868 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2869 ac_cache_corrupted=:
2870 else
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2872 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2873 eval $ac_var=\$ac_old_val
2875 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2876 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2878 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2879 fi;;
2880 esac
2881 # Pass precious variables to config.status.
2882 if test "$ac_new_set" = set; then
2883 case $ac_new_val in
2884 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2885 *) ac_arg=$ac_var=$ac_new_val ;;
2886 esac
2887 case " $ac_configure_args " in
2888 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2889 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2890 esac
2892 done
2893 if $ac_cache_corrupted; then
2894 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2895 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2896 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2897 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2898 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2900 ## -------------------- ##
2901 ## Main body of script. ##
2902 ## -------------------- ##
2904 ac_ext=c
2905 ac_cpp='$CPP $CPPFLAGS'
2906 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2907 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2908 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2913 ac_config_headers="$ac_config_headers include/config.h"
2916 am__api_version='1.11'
2918 ac_aux_dir=
2919 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2920 if test -f "$ac_dir/install-sh"; then
2921 ac_aux_dir=$ac_dir
2922 ac_install_sh="$ac_aux_dir/install-sh -c"
2923 break
2924 elif test -f "$ac_dir/install.sh"; then
2925 ac_aux_dir=$ac_dir
2926 ac_install_sh="$ac_aux_dir/install.sh -c"
2927 break
2928 elif test -f "$ac_dir/shtool"; then
2929 ac_aux_dir=$ac_dir
2930 ac_install_sh="$ac_aux_dir/shtool install -c"
2931 break
2933 done
2934 if test -z "$ac_aux_dir"; then
2935 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2938 # These three variables are undocumented and unsupported,
2939 # and are intended to be withdrawn in a future Autoconf release.
2940 # They can cause serious problems if a builder's source tree is in a directory
2941 # whose full name contains unusual characters.
2942 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2943 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2944 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2947 # Find a good install program. We prefer a C program (faster),
2948 # so one script is as good as another. But avoid the broken or
2949 # incompatible versions:
2950 # SysV /etc/install, /usr/sbin/install
2951 # SunOS /usr/etc/install
2952 # IRIX /sbin/install
2953 # AIX /bin/install
2954 # AmigaOS /C/install, which installs bootblocks on floppy discs
2955 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2956 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2957 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2958 # OS/2's system install, which has a completely different semantic
2959 # ./install, which can be erroneously created by make from ./install.sh.
2960 # Reject install programs that cannot install multiple files.
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2962 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2963 if test -z "$INSTALL"; then
2964 if ${ac_cv_path_install+:} false; then :
2965 $as_echo_n "(cached) " >&6
2966 else
2967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2968 for as_dir in $PATH
2970 IFS=$as_save_IFS
2971 test -z "$as_dir" && as_dir=.
2972 # Account for people who put trailing slashes in PATH elements.
2973 case $as_dir/ in #((
2974 ./ | .// | /[cC]/* | \
2975 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2976 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2977 /usr/ucb/* ) ;;
2979 # OSF1 and SCO ODT 3.0 have their own names for install.
2980 # Don't use installbsd from OSF since it installs stuff as root
2981 # by default.
2982 for ac_prog in ginstall scoinst install; do
2983 for ac_exec_ext in '' $ac_executable_extensions; do
2984 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2985 if test $ac_prog = install &&
2986 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2987 # AIX install. It has an incompatible calling convention.
2989 elif test $ac_prog = install &&
2990 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2991 # program-specific install script used by HP pwplus--don't use.
2993 else
2994 rm -rf conftest.one conftest.two conftest.dir
2995 echo one > conftest.one
2996 echo two > conftest.two
2997 mkdir conftest.dir
2998 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2999 test -s conftest.one && test -s conftest.two &&
3000 test -s conftest.dir/conftest.one &&
3001 test -s conftest.dir/conftest.two
3002 then
3003 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3004 break 3
3008 done
3009 done
3011 esac
3013 done
3014 IFS=$as_save_IFS
3016 rm -rf conftest.one conftest.two conftest.dir
3019 if test "${ac_cv_path_install+set}" = set; then
3020 INSTALL=$ac_cv_path_install
3021 else
3022 # As a last resort, use the slow shell script. Don't cache a
3023 # value for INSTALL within a source directory, because that will
3024 # break other packages using the cache if that directory is
3025 # removed, or if the value is a relative name.
3026 INSTALL=$ac_install_sh
3029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3030 $as_echo "$INSTALL" >&6; }
3032 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3033 # It thinks the first close brace ends the variable substitution.
3034 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3036 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3038 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3041 $as_echo_n "checking whether build environment is sane... " >&6; }
3042 # Just in case
3043 sleep 1
3044 echo timestamp > conftest.file
3045 # Reject unsafe characters in $srcdir or the absolute working directory
3046 # name. Accept space and tab only in the latter.
3047 am_lf='
3049 case `pwd` in
3050 *[\\\"\#\$\&\'\`$am_lf]*)
3051 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3052 esac
3053 case $srcdir in
3054 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3055 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3056 esac
3058 # Do `set' in a subshell so we don't clobber the current shell's
3059 # arguments. Must try -L first in case configure is actually a
3060 # symlink; some systems play weird games with the mod time of symlinks
3061 # (eg FreeBSD returns the mod time of the symlink's containing
3062 # directory).
3063 if (
3064 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3065 if test "$*" = "X"; then
3066 # -L didn't work.
3067 set X `ls -t "$srcdir/configure" conftest.file`
3069 rm -f conftest.file
3070 if test "$*" != "X $srcdir/configure conftest.file" \
3071 && test "$*" != "X conftest.file $srcdir/configure"; then
3073 # If neither matched, then we have a broken ls. This can happen
3074 # if, for instance, CONFIG_SHELL is bash and it inherits a
3075 # broken ls alias from the environment. This has actually
3076 # happened. Such a system could not be considered "sane".
3077 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3078 alias in your environment" "$LINENO" 5
3081 test "$2" = conftest.file
3083 then
3084 # Ok.
3086 else
3087 as_fn_error $? "newly created file is older than distributed files!
3088 Check your system clock" "$LINENO" 5
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3091 $as_echo "yes" >&6; }
3092 test "$program_prefix" != NONE &&
3093 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3094 # Use a double $ so make ignores it.
3095 test "$program_suffix" != NONE &&
3096 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3097 # Double any \ or $.
3098 # By default was `s,x,x', remove it if useless.
3099 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3100 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3102 # expand $ac_aux_dir to an absolute path
3103 am_aux_dir=`cd $ac_aux_dir && pwd`
3105 if test x"${MISSING+set}" != xset; then
3106 case $am_aux_dir in
3107 *\ * | *\ *)
3108 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3110 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3111 esac
3113 # Use eval to expand $SHELL
3114 if eval "$MISSING --run true"; then
3115 am_missing_run="$MISSING --run "
3116 else
3117 am_missing_run=
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3119 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3122 if test x"${install_sh}" != xset; then
3123 case $am_aux_dir in
3124 *\ * | *\ *)
3125 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3127 install_sh="\${SHELL} $am_aux_dir/install-sh"
3128 esac
3131 # Installed binaries are usually stripped using `strip' when the user
3132 # run `make install-strip'. However `strip' might not be the right
3133 # tool to use in cross-compilation environments, therefore Automake
3134 # will honor the `STRIP' environment variable to overrule this program.
3135 if test "$cross_compiling" != no; then
3136 if test -n "$ac_tool_prefix"; then
3137 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3138 set dummy ${ac_tool_prefix}strip; ac_word=$2
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3140 $as_echo_n "checking for $ac_word... " >&6; }
3141 if ${ac_cv_prog_STRIP+:} false; then :
3142 $as_echo_n "(cached) " >&6
3143 else
3144 if test -n "$STRIP"; then
3145 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3146 else
3147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3148 for as_dir in $PATH
3150 IFS=$as_save_IFS
3151 test -z "$as_dir" && as_dir=.
3152 for ac_exec_ext in '' $ac_executable_extensions; do
3153 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3154 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3156 break 2
3158 done
3159 done
3160 IFS=$as_save_IFS
3164 STRIP=$ac_cv_prog_STRIP
3165 if test -n "$STRIP"; then
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3167 $as_echo "$STRIP" >&6; }
3168 else
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3170 $as_echo "no" >&6; }
3175 if test -z "$ac_cv_prog_STRIP"; then
3176 ac_ct_STRIP=$STRIP
3177 # Extract the first word of "strip", so it can be a program name with args.
3178 set dummy strip; ac_word=$2
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3180 $as_echo_n "checking for $ac_word... " >&6; }
3181 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3182 $as_echo_n "(cached) " >&6
3183 else
3184 if test -n "$ac_ct_STRIP"; then
3185 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3186 else
3187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3188 for as_dir in $PATH
3190 IFS=$as_save_IFS
3191 test -z "$as_dir" && as_dir=.
3192 for ac_exec_ext in '' $ac_executable_extensions; do
3193 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3194 ac_cv_prog_ac_ct_STRIP="strip"
3195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3196 break 2
3198 done
3199 done
3200 IFS=$as_save_IFS
3204 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3205 if test -n "$ac_ct_STRIP"; then
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3207 $as_echo "$ac_ct_STRIP" >&6; }
3208 else
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3210 $as_echo "no" >&6; }
3213 if test "x$ac_ct_STRIP" = x; then
3214 STRIP=":"
3215 else
3216 case $cross_compiling:$ac_tool_warned in
3217 yes:)
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3219 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3220 ac_tool_warned=yes ;;
3221 esac
3222 STRIP=$ac_ct_STRIP
3224 else
3225 STRIP="$ac_cv_prog_STRIP"
3229 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3232 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3233 if test -z "$MKDIR_P"; then
3234 if ${ac_cv_path_mkdir+:} false; then :
3235 $as_echo_n "(cached) " >&6
3236 else
3237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3238 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3240 IFS=$as_save_IFS
3241 test -z "$as_dir" && as_dir=.
3242 for ac_prog in mkdir gmkdir; do
3243 for ac_exec_ext in '' $ac_executable_extensions; do
3244 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3245 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3246 'mkdir (GNU coreutils) '* | \
3247 'mkdir (coreutils) '* | \
3248 'mkdir (fileutils) '4.1*)
3249 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3250 break 3;;
3251 esac
3252 done
3253 done
3254 done
3255 IFS=$as_save_IFS
3259 test -d ./--version && rmdir ./--version
3260 if test "${ac_cv_path_mkdir+set}" = set; then
3261 MKDIR_P="$ac_cv_path_mkdir -p"
3262 else
3263 # As a last resort, use the slow shell script. Don't cache a
3264 # value for MKDIR_P within a source directory, because that will
3265 # break other packages using the cache if that directory is
3266 # removed, or if the value is a relative name.
3267 MKDIR_P="$ac_install_sh -d"
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3271 $as_echo "$MKDIR_P" >&6; }
3273 mkdir_p="$MKDIR_P"
3274 case $mkdir_p in
3275 [\\/$]* | ?:[\\/]*) ;;
3276 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3277 esac
3279 for ac_prog in gawk mawk nawk awk
3281 # Extract the first word of "$ac_prog", so it can be a program name with args.
3282 set dummy $ac_prog; ac_word=$2
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3284 $as_echo_n "checking for $ac_word... " >&6; }
3285 if ${ac_cv_prog_AWK+:} false; then :
3286 $as_echo_n "(cached) " >&6
3287 else
3288 if test -n "$AWK"; then
3289 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3290 else
3291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3292 for as_dir in $PATH
3294 IFS=$as_save_IFS
3295 test -z "$as_dir" && as_dir=.
3296 for ac_exec_ext in '' $ac_executable_extensions; do
3297 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3298 ac_cv_prog_AWK="$ac_prog"
3299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3300 break 2
3302 done
3303 done
3304 IFS=$as_save_IFS
3308 AWK=$ac_cv_prog_AWK
3309 if test -n "$AWK"; then
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3311 $as_echo "$AWK" >&6; }
3312 else
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3314 $as_echo "no" >&6; }
3318 test -n "$AWK" && break
3319 done
3321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3322 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3323 set x ${MAKE-make}
3324 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3325 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3326 $as_echo_n "(cached) " >&6
3327 else
3328 cat >conftest.make <<\_ACEOF
3329 SHELL = /bin/sh
3330 all:
3331 @echo '@@@%%%=$(MAKE)=@@@%%%'
3332 _ACEOF
3333 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3334 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3335 *@@@%%%=?*=@@@%%%*)
3336 eval ac_cv_prog_make_${ac_make}_set=yes;;
3338 eval ac_cv_prog_make_${ac_make}_set=no;;
3339 esac
3340 rm -f conftest.make
3342 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3344 $as_echo "yes" >&6; }
3345 SET_MAKE=
3346 else
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3348 $as_echo "no" >&6; }
3349 SET_MAKE="MAKE=${MAKE-make}"
3352 rm -rf .tst 2>/dev/null
3353 mkdir .tst 2>/dev/null
3354 if test -d .tst; then
3355 am__leading_dot=.
3356 else
3357 am__leading_dot=_
3359 rmdir .tst 2>/dev/null
3361 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3362 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3363 # is not polluted with repeated "-I."
3364 am__isrc=' -I$(srcdir)'
3365 # test to see if srcdir already configured
3366 if test -f $srcdir/config.status; then
3367 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3371 # test whether we have cygpath
3372 if test -z "$CYGPATH_W"; then
3373 if (cygpath --version) >/dev/null 2>/dev/null; then
3374 CYGPATH_W='cygpath -w'
3375 else
3376 CYGPATH_W=echo
3381 # Define the identity of the package.
3382 PACKAGE='alpine'
3383 VERSION='2.19.11'
3386 cat >>confdefs.h <<_ACEOF
3387 #define PACKAGE "$PACKAGE"
3388 _ACEOF
3391 cat >>confdefs.h <<_ACEOF
3392 #define VERSION "$VERSION"
3393 _ACEOF
3395 # Some tools Automake needs.
3397 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3400 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3403 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3406 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3409 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3411 # We need awk for the "check" target. The system "awk" is bad on
3412 # some platforms.
3413 # Always define AMTAR for backward compatibility.
3415 AMTAR=${AMTAR-"${am_missing_run}tar"}
3417 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3426 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3427 # Check whether --enable-maintainer-mode was given.
3428 if test "${enable_maintainer_mode+set}" = set; then :
3429 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3430 else
3431 USE_MAINTAINER_MODE=no
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3435 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3436 if test $USE_MAINTAINER_MODE = yes; then
3437 MAINTAINER_MODE_TRUE=
3438 MAINTAINER_MODE_FALSE='#'
3439 else
3440 MAINTAINER_MODE_TRUE='#'
3441 MAINTAINER_MODE_FALSE=
3444 MAINT=$MAINTAINER_MODE_TRUE
3448 # Make sure we can run config.sub.
3449 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3450 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3453 $as_echo_n "checking build system type... " >&6; }
3454 if ${ac_cv_build+:} false; then :
3455 $as_echo_n "(cached) " >&6
3456 else
3457 ac_build_alias=$build_alias
3458 test "x$ac_build_alias" = x &&
3459 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3460 test "x$ac_build_alias" = x &&
3461 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3462 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3463 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3467 $as_echo "$ac_cv_build" >&6; }
3468 case $ac_cv_build in
3469 *-*-*) ;;
3470 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3471 esac
3472 build=$ac_cv_build
3473 ac_save_IFS=$IFS; IFS='-'
3474 set x $ac_cv_build
3475 shift
3476 build_cpu=$1
3477 build_vendor=$2
3478 shift; shift
3479 # Remember, the first character of IFS is used to create $*,
3480 # except with old shells:
3481 build_os=$*
3482 IFS=$ac_save_IFS
3483 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3487 $as_echo_n "checking host system type... " >&6; }
3488 if ${ac_cv_host+:} false; then :
3489 $as_echo_n "(cached) " >&6
3490 else
3491 if test "x$host_alias" = x; then
3492 ac_cv_host=$ac_cv_build
3493 else
3494 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3495 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3500 $as_echo "$ac_cv_host" >&6; }
3501 case $ac_cv_host in
3502 *-*-*) ;;
3503 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3504 esac
3505 host=$ac_cv_host
3506 ac_save_IFS=$IFS; IFS='-'
3507 set x $ac_cv_host
3508 shift
3509 host_cpu=$1
3510 host_vendor=$2
3511 shift; shift
3512 # Remember, the first character of IFS is used to create $*,
3513 # except with old shells:
3514 host_os=$*
3515 IFS=$ac_save_IFS
3516 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3520 ac_ext=c
3521 ac_cpp='$CPP $CPPFLAGS'
3522 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3523 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3524 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring for $PACKAGE_STRING ($host))" >&5
3528 $as_echo "$as_me: Configuring for $PACKAGE_STRING ($host))" >&6;}
3530 # start out with intent to build Web Alpine
3531 WEB_BUILD=web/src/alpined.d
3534 ac_ext=c
3535 ac_cpp='$CPP $CPPFLAGS'
3536 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3537 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3538 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3539 if test -n "$ac_tool_prefix"; then
3540 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3541 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3543 $as_echo_n "checking for $ac_word... " >&6; }
3544 if ${ac_cv_prog_CC+:} false; then :
3545 $as_echo_n "(cached) " >&6
3546 else
3547 if test -n "$CC"; then
3548 ac_cv_prog_CC="$CC" # Let the user override the test.
3549 else
3550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3551 for as_dir in $PATH
3553 IFS=$as_save_IFS
3554 test -z "$as_dir" && as_dir=.
3555 for ac_exec_ext in '' $ac_executable_extensions; do
3556 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3557 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3559 break 2
3561 done
3562 done
3563 IFS=$as_save_IFS
3567 CC=$ac_cv_prog_CC
3568 if test -n "$CC"; then
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3570 $as_echo "$CC" >&6; }
3571 else
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3573 $as_echo "no" >&6; }
3578 if test -z "$ac_cv_prog_CC"; then
3579 ac_ct_CC=$CC
3580 # Extract the first word of "gcc", so it can be a program name with args.
3581 set dummy gcc; ac_word=$2
3582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3583 $as_echo_n "checking for $ac_word... " >&6; }
3584 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3585 $as_echo_n "(cached) " >&6
3586 else
3587 if test -n "$ac_ct_CC"; then
3588 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3589 else
3590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3591 for as_dir in $PATH
3593 IFS=$as_save_IFS
3594 test -z "$as_dir" && as_dir=.
3595 for ac_exec_ext in '' $ac_executable_extensions; do
3596 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3597 ac_cv_prog_ac_ct_CC="gcc"
3598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3599 break 2
3601 done
3602 done
3603 IFS=$as_save_IFS
3607 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3608 if test -n "$ac_ct_CC"; then
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3610 $as_echo "$ac_ct_CC" >&6; }
3611 else
3612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3613 $as_echo "no" >&6; }
3616 if test "x$ac_ct_CC" = x; then
3617 CC=""
3618 else
3619 case $cross_compiling:$ac_tool_warned in
3620 yes:)
3621 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3622 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3623 ac_tool_warned=yes ;;
3624 esac
3625 CC=$ac_ct_CC
3627 else
3628 CC="$ac_cv_prog_CC"
3631 if test -z "$CC"; then
3632 if test -n "$ac_tool_prefix"; then
3633 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3634 set dummy ${ac_tool_prefix}cc; ac_word=$2
3635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3636 $as_echo_n "checking for $ac_word... " >&6; }
3637 if ${ac_cv_prog_CC+:} false; then :
3638 $as_echo_n "(cached) " >&6
3639 else
3640 if test -n "$CC"; then
3641 ac_cv_prog_CC="$CC" # Let the user override the test.
3642 else
3643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3644 for as_dir in $PATH
3646 IFS=$as_save_IFS
3647 test -z "$as_dir" && as_dir=.
3648 for ac_exec_ext in '' $ac_executable_extensions; do
3649 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3650 ac_cv_prog_CC="${ac_tool_prefix}cc"
3651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3652 break 2
3654 done
3655 done
3656 IFS=$as_save_IFS
3660 CC=$ac_cv_prog_CC
3661 if test -n "$CC"; then
3662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3663 $as_echo "$CC" >&6; }
3664 else
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3666 $as_echo "no" >&6; }
3672 if test -z "$CC"; then
3673 # Extract the first word of "cc", so it can be a program name with args.
3674 set dummy cc; ac_word=$2
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3676 $as_echo_n "checking for $ac_word... " >&6; }
3677 if ${ac_cv_prog_CC+:} false; then :
3678 $as_echo_n "(cached) " >&6
3679 else
3680 if test -n "$CC"; then
3681 ac_cv_prog_CC="$CC" # Let the user override the test.
3682 else
3683 ac_prog_rejected=no
3684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3685 for as_dir in $PATH
3687 IFS=$as_save_IFS
3688 test -z "$as_dir" && as_dir=.
3689 for ac_exec_ext in '' $ac_executable_extensions; do
3690 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3691 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3692 ac_prog_rejected=yes
3693 continue
3695 ac_cv_prog_CC="cc"
3696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3697 break 2
3699 done
3700 done
3701 IFS=$as_save_IFS
3703 if test $ac_prog_rejected = yes; then
3704 # We found a bogon in the path, so make sure we never use it.
3705 set dummy $ac_cv_prog_CC
3706 shift
3707 if test $# != 0; then
3708 # We chose a different compiler from the bogus one.
3709 # However, it has the same basename, so the bogon will be chosen
3710 # first if we set CC to just the basename; use the full file name.
3711 shift
3712 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3717 CC=$ac_cv_prog_CC
3718 if test -n "$CC"; then
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3720 $as_echo "$CC" >&6; }
3721 else
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3723 $as_echo "no" >&6; }
3728 if test -z "$CC"; then
3729 if test -n "$ac_tool_prefix"; then
3730 for ac_prog in cl.exe
3732 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3733 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3735 $as_echo_n "checking for $ac_word... " >&6; }
3736 if ${ac_cv_prog_CC+:} false; then :
3737 $as_echo_n "(cached) " >&6
3738 else
3739 if test -n "$CC"; then
3740 ac_cv_prog_CC="$CC" # Let the user override the test.
3741 else
3742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3743 for as_dir in $PATH
3745 IFS=$as_save_IFS
3746 test -z "$as_dir" && as_dir=.
3747 for ac_exec_ext in '' $ac_executable_extensions; do
3748 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3749 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3751 break 2
3753 done
3754 done
3755 IFS=$as_save_IFS
3759 CC=$ac_cv_prog_CC
3760 if test -n "$CC"; then
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3762 $as_echo "$CC" >&6; }
3763 else
3764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3765 $as_echo "no" >&6; }
3769 test -n "$CC" && break
3770 done
3772 if test -z "$CC"; then
3773 ac_ct_CC=$CC
3774 for ac_prog in cl.exe
3776 # Extract the first word of "$ac_prog", so it can be a program name with args.
3777 set dummy $ac_prog; ac_word=$2
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3779 $as_echo_n "checking for $ac_word... " >&6; }
3780 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3781 $as_echo_n "(cached) " >&6
3782 else
3783 if test -n "$ac_ct_CC"; then
3784 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3785 else
3786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3787 for as_dir in $PATH
3789 IFS=$as_save_IFS
3790 test -z "$as_dir" && as_dir=.
3791 for ac_exec_ext in '' $ac_executable_extensions; do
3792 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3793 ac_cv_prog_ac_ct_CC="$ac_prog"
3794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3795 break 2
3797 done
3798 done
3799 IFS=$as_save_IFS
3803 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3804 if test -n "$ac_ct_CC"; then
3805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3806 $as_echo "$ac_ct_CC" >&6; }
3807 else
3808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3809 $as_echo "no" >&6; }
3813 test -n "$ac_ct_CC" && break
3814 done
3816 if test "x$ac_ct_CC" = x; then
3817 CC=""
3818 else
3819 case $cross_compiling:$ac_tool_warned in
3820 yes:)
3821 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3822 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3823 ac_tool_warned=yes ;;
3824 esac
3825 CC=$ac_ct_CC
3832 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3833 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3834 as_fn_error $? "no acceptable C compiler found in \$PATH
3835 See \`config.log' for more details" "$LINENO" 5; }
3837 # Provide some information about the compiler.
3838 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3839 set X $ac_compile
3840 ac_compiler=$2
3841 for ac_option in --version -v -V -qversion; do
3842 { { ac_try="$ac_compiler $ac_option >&5"
3843 case "(($ac_try" in
3844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3845 *) ac_try_echo=$ac_try;;
3846 esac
3847 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3848 $as_echo "$ac_try_echo"; } >&5
3849 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3850 ac_status=$?
3851 if test -s conftest.err; then
3852 sed '10a\
3853 ... rest of stderr output deleted ...
3854 10q' conftest.err >conftest.er1
3855 cat conftest.er1 >&5
3857 rm -f conftest.er1 conftest.err
3858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3859 test $ac_status = 0; }
3860 done
3862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3863 /* end confdefs.h. */
3866 main ()
3870 return 0;
3872 _ACEOF
3873 ac_clean_files_save=$ac_clean_files
3874 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3875 # Try to create an executable without -o first, disregard a.out.
3876 # It will help us diagnose broken compilers, and finding out an intuition
3877 # of exeext.
3878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3879 $as_echo_n "checking whether the C compiler works... " >&6; }
3880 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3882 # The possible output files:
3883 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3885 ac_rmfiles=
3886 for ac_file in $ac_files
3888 case $ac_file in
3889 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3890 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3891 esac
3892 done
3893 rm -f $ac_rmfiles
3895 if { { ac_try="$ac_link_default"
3896 case "(($ac_try" in
3897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3898 *) ac_try_echo=$ac_try;;
3899 esac
3900 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3901 $as_echo "$ac_try_echo"; } >&5
3902 (eval "$ac_link_default") 2>&5
3903 ac_status=$?
3904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3905 test $ac_status = 0; }; then :
3906 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3907 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3908 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3909 # so that the user can short-circuit this test for compilers unknown to
3910 # Autoconf.
3911 for ac_file in $ac_files ''
3913 test -f "$ac_file" || continue
3914 case $ac_file in
3915 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3917 [ab].out )
3918 # We found the default executable, but exeext='' is most
3919 # certainly right.
3920 break;;
3921 *.* )
3922 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3923 then :; else
3924 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3926 # We set ac_cv_exeext here because the later test for it is not
3927 # safe: cross compilers may not add the suffix if given an `-o'
3928 # argument, so we may need to know it at that point already.
3929 # Even if this section looks crufty: it has the advantage of
3930 # actually working.
3931 break;;
3933 break;;
3934 esac
3935 done
3936 test "$ac_cv_exeext" = no && ac_cv_exeext=
3938 else
3939 ac_file=''
3941 if test -z "$ac_file"; then :
3942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3943 $as_echo "no" >&6; }
3944 $as_echo "$as_me: failed program was:" >&5
3945 sed 's/^/| /' conftest.$ac_ext >&5
3947 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3948 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3949 as_fn_error 77 "C compiler cannot create executables
3950 See \`config.log' for more details" "$LINENO" 5; }
3951 else
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3953 $as_echo "yes" >&6; }
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3956 $as_echo_n "checking for C compiler default output file name... " >&6; }
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3958 $as_echo "$ac_file" >&6; }
3959 ac_exeext=$ac_cv_exeext
3961 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3962 ac_clean_files=$ac_clean_files_save
3963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3964 $as_echo_n "checking for suffix of executables... " >&6; }
3965 if { { ac_try="$ac_link"
3966 case "(($ac_try" in
3967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3968 *) ac_try_echo=$ac_try;;
3969 esac
3970 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3971 $as_echo "$ac_try_echo"; } >&5
3972 (eval "$ac_link") 2>&5
3973 ac_status=$?
3974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3975 test $ac_status = 0; }; then :
3976 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3977 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3978 # work properly (i.e., refer to `conftest.exe'), while it won't with
3979 # `rm'.
3980 for ac_file in conftest.exe conftest conftest.*; do
3981 test -f "$ac_file" || continue
3982 case $ac_file in
3983 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3984 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3985 break;;
3986 * ) break;;
3987 esac
3988 done
3989 else
3990 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3991 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3992 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3993 See \`config.log' for more details" "$LINENO" 5; }
3995 rm -f conftest conftest$ac_cv_exeext
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3997 $as_echo "$ac_cv_exeext" >&6; }
3999 rm -f conftest.$ac_ext
4000 EXEEXT=$ac_cv_exeext
4001 ac_exeext=$EXEEXT
4002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4003 /* end confdefs.h. */
4004 #include <stdio.h>
4006 main ()
4008 FILE *f = fopen ("conftest.out", "w");
4009 return ferror (f) || fclose (f) != 0;
4012 return 0;
4014 _ACEOF
4015 ac_clean_files="$ac_clean_files conftest.out"
4016 # Check that the compiler produces executables we can run. If not, either
4017 # the compiler is broken, or we cross compile.
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4019 $as_echo_n "checking whether we are cross compiling... " >&6; }
4020 if test "$cross_compiling" != yes; then
4021 { { ac_try="$ac_link"
4022 case "(($ac_try" in
4023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4024 *) ac_try_echo=$ac_try;;
4025 esac
4026 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4027 $as_echo "$ac_try_echo"; } >&5
4028 (eval "$ac_link") 2>&5
4029 ac_status=$?
4030 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4031 test $ac_status = 0; }
4032 if { ac_try='./conftest$ac_cv_exeext'
4033 { { case "(($ac_try" in
4034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4035 *) ac_try_echo=$ac_try;;
4036 esac
4037 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4038 $as_echo "$ac_try_echo"; } >&5
4039 (eval "$ac_try") 2>&5
4040 ac_status=$?
4041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4042 test $ac_status = 0; }; }; then
4043 cross_compiling=no
4044 else
4045 if test "$cross_compiling" = maybe; then
4046 cross_compiling=yes
4047 else
4048 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4049 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4050 as_fn_error $? "cannot run C compiled programs.
4051 If you meant to cross compile, use \`--host'.
4052 See \`config.log' for more details" "$LINENO" 5; }
4056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4057 $as_echo "$cross_compiling" >&6; }
4059 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4060 ac_clean_files=$ac_clean_files_save
4061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4062 $as_echo_n "checking for suffix of object files... " >&6; }
4063 if ${ac_cv_objext+:} false; then :
4064 $as_echo_n "(cached) " >&6
4065 else
4066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4067 /* end confdefs.h. */
4070 main ()
4074 return 0;
4076 _ACEOF
4077 rm -f conftest.o conftest.obj
4078 if { { ac_try="$ac_compile"
4079 case "(($ac_try" in
4080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4081 *) ac_try_echo=$ac_try;;
4082 esac
4083 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4084 $as_echo "$ac_try_echo"; } >&5
4085 (eval "$ac_compile") 2>&5
4086 ac_status=$?
4087 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4088 test $ac_status = 0; }; then :
4089 for ac_file in conftest.o conftest.obj conftest.*; do
4090 test -f "$ac_file" || continue;
4091 case $ac_file in
4092 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4093 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4094 break;;
4095 esac
4096 done
4097 else
4098 $as_echo "$as_me: failed program was:" >&5
4099 sed 's/^/| /' conftest.$ac_ext >&5
4101 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4102 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4103 as_fn_error $? "cannot compute suffix of object files: cannot compile
4104 See \`config.log' for more details" "$LINENO" 5; }
4106 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4109 $as_echo "$ac_cv_objext" >&6; }
4110 OBJEXT=$ac_cv_objext
4111 ac_objext=$OBJEXT
4112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4113 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4114 if ${ac_cv_c_compiler_gnu+:} false; then :
4115 $as_echo_n "(cached) " >&6
4116 else
4117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4118 /* end confdefs.h. */
4121 main ()
4123 #ifndef __GNUC__
4124 choke me
4125 #endif
4128 return 0;
4130 _ACEOF
4131 if ac_fn_c_try_compile "$LINENO"; then :
4132 ac_compiler_gnu=yes
4133 else
4134 ac_compiler_gnu=no
4136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4137 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4141 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4142 if test $ac_compiler_gnu = yes; then
4143 GCC=yes
4144 else
4145 GCC=
4147 ac_test_CFLAGS=${CFLAGS+set}
4148 ac_save_CFLAGS=$CFLAGS
4149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4150 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4151 if ${ac_cv_prog_cc_g+:} false; then :
4152 $as_echo_n "(cached) " >&6
4153 else
4154 ac_save_c_werror_flag=$ac_c_werror_flag
4155 ac_c_werror_flag=yes
4156 ac_cv_prog_cc_g=no
4157 CFLAGS="-g"
4158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4159 /* end confdefs.h. */
4162 main ()
4166 return 0;
4168 _ACEOF
4169 if ac_fn_c_try_compile "$LINENO"; then :
4170 ac_cv_prog_cc_g=yes
4171 else
4172 CFLAGS=""
4173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4174 /* end confdefs.h. */
4177 main ()
4181 return 0;
4183 _ACEOF
4184 if ac_fn_c_try_compile "$LINENO"; then :
4186 else
4187 ac_c_werror_flag=$ac_save_c_werror_flag
4188 CFLAGS="-g"
4189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4190 /* end confdefs.h. */
4193 main ()
4197 return 0;
4199 _ACEOF
4200 if ac_fn_c_try_compile "$LINENO"; then :
4201 ac_cv_prog_cc_g=yes
4203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4208 ac_c_werror_flag=$ac_save_c_werror_flag
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4211 $as_echo "$ac_cv_prog_cc_g" >&6; }
4212 if test "$ac_test_CFLAGS" = set; then
4213 CFLAGS=$ac_save_CFLAGS
4214 elif test $ac_cv_prog_cc_g = yes; then
4215 if test "$GCC" = yes; then
4216 CFLAGS="-g -O2"
4217 else
4218 CFLAGS="-g"
4220 else
4221 if test "$GCC" = yes; then
4222 CFLAGS="-O2"
4223 else
4224 CFLAGS=
4227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4228 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4229 if ${ac_cv_prog_cc_c89+:} false; then :
4230 $as_echo_n "(cached) " >&6
4231 else
4232 ac_cv_prog_cc_c89=no
4233 ac_save_CC=$CC
4234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4235 /* end confdefs.h. */
4236 #include <stdarg.h>
4237 #include <stdio.h>
4238 struct stat;
4239 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4240 struct buf { int x; };
4241 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4242 static char *e (p, i)
4243 char **p;
4244 int i;
4246 return p[i];
4248 static char *f (char * (*g) (char **, int), char **p, ...)
4250 char *s;
4251 va_list v;
4252 va_start (v,p);
4253 s = g (p, va_arg (v,int));
4254 va_end (v);
4255 return s;
4258 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4259 function prototypes and stuff, but not '\xHH' hex character constants.
4260 These don't provoke an error unfortunately, instead are silently treated
4261 as 'x'. The following induces an error, until -std is added to get
4262 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4263 array size at least. It's necessary to write '\x00'==0 to get something
4264 that's true only with -std. */
4265 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4267 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4268 inside strings and character constants. */
4269 #define FOO(x) 'x'
4270 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4272 int test (int i, double x);
4273 struct s1 {int (*f) (int a);};
4274 struct s2 {int (*f) (double a);};
4275 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4276 int argc;
4277 char **argv;
4279 main ()
4281 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4283 return 0;
4285 _ACEOF
4286 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4287 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4289 CC="$ac_save_CC $ac_arg"
4290 if ac_fn_c_try_compile "$LINENO"; then :
4291 ac_cv_prog_cc_c89=$ac_arg
4293 rm -f core conftest.err conftest.$ac_objext
4294 test "x$ac_cv_prog_cc_c89" != "xno" && break
4295 done
4296 rm -f conftest.$ac_ext
4297 CC=$ac_save_CC
4300 # AC_CACHE_VAL
4301 case "x$ac_cv_prog_cc_c89" in
4303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4304 $as_echo "none needed" >&6; } ;;
4305 xno)
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4307 $as_echo "unsupported" >&6; } ;;
4309 CC="$CC $ac_cv_prog_cc_c89"
4310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4311 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4312 esac
4313 if test "x$ac_cv_prog_cc_c89" != xno; then :
4317 ac_ext=c
4318 ac_cpp='$CPP $CPPFLAGS'
4319 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4320 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4321 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4322 DEPDIR="${am__leading_dot}deps"
4324 ac_config_commands="$ac_config_commands depfiles"
4327 am_make=${MAKE-make}
4328 cat > confinc << 'END'
4329 am__doit:
4330 @echo this is the am__doit target
4331 .PHONY: am__doit
4333 # If we don't find an include directive, just comment out the code.
4334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4335 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4336 am__include="#"
4337 am__quote=
4338 _am_result=none
4339 # First try GNU make style include.
4340 echo "include confinc" > confmf
4341 # Ignore all kinds of additional output from `make'.
4342 case `$am_make -s -f confmf 2> /dev/null` in #(
4343 *the\ am__doit\ target*)
4344 am__include=include
4345 am__quote=
4346 _am_result=GNU
4348 esac
4349 # Now try BSD make style include.
4350 if test "$am__include" = "#"; then
4351 echo '.include "confinc"' > confmf
4352 case `$am_make -s -f confmf 2> /dev/null` in #(
4353 *the\ am__doit\ target*)
4354 am__include=.include
4355 am__quote="\""
4356 _am_result=BSD
4358 esac
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4363 $as_echo "$_am_result" >&6; }
4364 rm -f confinc confmf
4366 # Check whether --enable-dependency-tracking was given.
4367 if test "${enable_dependency_tracking+set}" = set; then :
4368 enableval=$enable_dependency_tracking;
4371 if test "x$enable_dependency_tracking" != xno; then
4372 am_depcomp="$ac_aux_dir/depcomp"
4373 AMDEPBACKSLASH='\'
4375 if test "x$enable_dependency_tracking" != xno; then
4376 AMDEP_TRUE=
4377 AMDEP_FALSE='#'
4378 else
4379 AMDEP_TRUE='#'
4380 AMDEP_FALSE=
4385 depcc="$CC" am_compiler_list=
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4388 $as_echo_n "checking dependency style of $depcc... " >&6; }
4389 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4390 $as_echo_n "(cached) " >&6
4391 else
4392 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4393 # We make a subdir and do the tests there. Otherwise we can end up
4394 # making bogus files that we don't know about and never remove. For
4395 # instance it was reported that on HP-UX the gcc test will end up
4396 # making a dummy file named `D' -- because `-MD' means `put the output
4397 # in D'.
4398 mkdir conftest.dir
4399 # Copy depcomp to subdir because otherwise we won't find it if we're
4400 # using a relative directory.
4401 cp "$am_depcomp" conftest.dir
4402 cd conftest.dir
4403 # We will build objects and dependencies in a subdirectory because
4404 # it helps to detect inapplicable dependency modes. For instance
4405 # both Tru64's cc and ICC support -MD to output dependencies as a
4406 # side effect of compilation, but ICC will put the dependencies in
4407 # the current directory while Tru64 will put them in the object
4408 # directory.
4409 mkdir sub
4411 am_cv_CC_dependencies_compiler_type=none
4412 if test "$am_compiler_list" = ""; then
4413 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4415 am__universal=false
4416 case " $depcc " in #(
4417 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4418 esac
4420 for depmode in $am_compiler_list; do
4421 # Setup a source with many dependencies, because some compilers
4422 # like to wrap large dependency lists on column 80 (with \), and
4423 # we should not choose a depcomp mode which is confused by this.
4425 # We need to recreate these files for each test, as the compiler may
4426 # overwrite some of them when testing with obscure command lines.
4427 # This happens at least with the AIX C compiler.
4428 : > sub/conftest.c
4429 for i in 1 2 3 4 5 6; do
4430 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4431 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4432 # Solaris 8's {/usr,}/bin/sh.
4433 touch sub/conftst$i.h
4434 done
4435 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4437 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4438 # mode. It turns out that the SunPro C++ compiler does not properly
4439 # handle `-M -o', and we need to detect this. Also, some Intel
4440 # versions had trouble with output in subdirs
4441 am__obj=sub/conftest.${OBJEXT-o}
4442 am__minus_obj="-o $am__obj"
4443 case $depmode in
4444 gcc)
4445 # This depmode causes a compiler race in universal mode.
4446 test "$am__universal" = false || continue
4448 nosideeffect)
4449 # after this tag, mechanisms are not by side-effect, so they'll
4450 # only be used when explicitly requested
4451 if test "x$enable_dependency_tracking" = xyes; then
4452 continue
4453 else
4454 break
4457 msvisualcpp | msvcmsys)
4458 # This compiler won't grok `-c -o', but also, the minuso test has
4459 # not run yet. These depmodes are late enough in the game, and
4460 # so weak that their functioning should not be impacted.
4461 am__obj=conftest.${OBJEXT-o}
4462 am__minus_obj=
4464 none) break ;;
4465 esac
4466 if depmode=$depmode \
4467 source=sub/conftest.c object=$am__obj \
4468 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4469 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4470 >/dev/null 2>conftest.err &&
4471 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4472 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4473 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4474 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4475 # icc doesn't choke on unknown options, it will just issue warnings
4476 # or remarks (even with -Werror). So we grep stderr for any message
4477 # that says an option was ignored or not supported.
4478 # When given -MP, icc 7.0 and 7.1 complain thusly:
4479 # icc: Command line warning: ignoring option '-M'; no argument required
4480 # The diagnosis changed in icc 8.0:
4481 # icc: Command line remark: option '-MP' not supported
4482 if (grep 'ignoring option' conftest.err ||
4483 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4484 am_cv_CC_dependencies_compiler_type=$depmode
4485 break
4488 done
4490 cd ..
4491 rm -rf conftest.dir
4492 else
4493 am_cv_CC_dependencies_compiler_type=none
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4498 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4499 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4502 test "x$enable_dependency_tracking" != xno \
4503 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4504 am__fastdepCC_TRUE=
4505 am__fastdepCC_FALSE='#'
4506 else
4507 am__fastdepCC_TRUE='#'
4508 am__fastdepCC_FALSE=
4512 case $ac_cv_prog_cc_stdc in #(
4513 no) :
4514 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
4515 *) :
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4517 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4518 if ${ac_cv_prog_cc_c99+:} false; then :
4519 $as_echo_n "(cached) " >&6
4520 else
4521 ac_cv_prog_cc_c99=no
4522 ac_save_CC=$CC
4523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4524 /* end confdefs.h. */
4525 #include <stdarg.h>
4526 #include <stdbool.h>
4527 #include <stdlib.h>
4528 #include <wchar.h>
4529 #include <stdio.h>
4531 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4532 #define debug(...) fprintf (stderr, __VA_ARGS__)
4533 #define showlist(...) puts (#__VA_ARGS__)
4534 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4535 static void
4536 test_varargs_macros (void)
4538 int x = 1234;
4539 int y = 5678;
4540 debug ("Flag");
4541 debug ("X = %d\n", x);
4542 showlist (The first, second, and third items.);
4543 report (x>y, "x is %d but y is %d", x, y);
4546 // Check long long types.
4547 #define BIG64 18446744073709551615ull
4548 #define BIG32 4294967295ul
4549 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4550 #if !BIG_OK
4551 your preprocessor is broken;
4552 #endif
4553 #if BIG_OK
4554 #else
4555 your preprocessor is broken;
4556 #endif
4557 static long long int bignum = -9223372036854775807LL;
4558 static unsigned long long int ubignum = BIG64;
4560 struct incomplete_array
4562 int datasize;
4563 double data[];
4566 struct named_init {
4567 int number;
4568 const wchar_t *name;
4569 double average;
4572 typedef const char *ccp;
4574 static inline int
4575 test_restrict (ccp restrict text)
4577 // See if C++-style comments work.
4578 // Iterate through items via the restricted pointer.
4579 // Also check for declarations in for loops.
4580 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4581 continue;
4582 return 0;
4585 // Check varargs and va_copy.
4586 static void
4587 test_varargs (const char *format, ...)
4589 va_list args;
4590 va_start (args, format);
4591 va_list args_copy;
4592 va_copy (args_copy, args);
4594 const char *str;
4595 int number;
4596 float fnumber;
4598 while (*format)
4600 switch (*format++)
4602 case 's': // string
4603 str = va_arg (args_copy, const char *);
4604 break;
4605 case 'd': // int
4606 number = va_arg (args_copy, int);
4607 break;
4608 case 'f': // float
4609 fnumber = va_arg (args_copy, double);
4610 break;
4611 default:
4612 break;
4615 va_end (args_copy);
4616 va_end (args);
4620 main ()
4623 // Check bool.
4624 _Bool success = false;
4626 // Check restrict.
4627 if (test_restrict ("String literal") == 0)
4628 success = true;
4629 char *restrict newvar = "Another string";
4631 // Check varargs.
4632 test_varargs ("s, d' f .", "string", 65, 34.234);
4633 test_varargs_macros ();
4635 // Check flexible array members.
4636 struct incomplete_array *ia =
4637 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4638 ia->datasize = 10;
4639 for (int i = 0; i < ia->datasize; ++i)
4640 ia->data[i] = i * 1.234;
4642 // Check named initializers.
4643 struct named_init ni = {
4644 .number = 34,
4645 .name = L"Test wide string",
4646 .average = 543.34343,
4649 ni.number = 58;
4651 int dynamic_array[ni.number];
4652 dynamic_array[ni.number - 1] = 543;
4654 // work around unused variable warnings
4655 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4656 || dynamic_array[ni.number - 1] != 543);
4659 return 0;
4661 _ACEOF
4662 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4664 CC="$ac_save_CC $ac_arg"
4665 if ac_fn_c_try_compile "$LINENO"; then :
4666 ac_cv_prog_cc_c99=$ac_arg
4668 rm -f core conftest.err conftest.$ac_objext
4669 test "x$ac_cv_prog_cc_c99" != "xno" && break
4670 done
4671 rm -f conftest.$ac_ext
4672 CC=$ac_save_CC
4675 # AC_CACHE_VAL
4676 case "x$ac_cv_prog_cc_c99" in
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4679 $as_echo "none needed" >&6; } ;;
4680 xno)
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4682 $as_echo "unsupported" >&6; } ;;
4684 CC="$CC $ac_cv_prog_cc_c99"
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4686 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4687 esac
4688 if test "x$ac_cv_prog_cc_c99" != xno; then :
4689 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4690 else
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4692 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4693 if ${ac_cv_prog_cc_c89+:} false; then :
4694 $as_echo_n "(cached) " >&6
4695 else
4696 ac_cv_prog_cc_c89=no
4697 ac_save_CC=$CC
4698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4699 /* end confdefs.h. */
4700 #include <stdarg.h>
4701 #include <stdio.h>
4702 struct stat;
4703 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4704 struct buf { int x; };
4705 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4706 static char *e (p, i)
4707 char **p;
4708 int i;
4710 return p[i];
4712 static char *f (char * (*g) (char **, int), char **p, ...)
4714 char *s;
4715 va_list v;
4716 va_start (v,p);
4717 s = g (p, va_arg (v,int));
4718 va_end (v);
4719 return s;
4722 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4723 function prototypes and stuff, but not '\xHH' hex character constants.
4724 These don't provoke an error unfortunately, instead are silently treated
4725 as 'x'. The following induces an error, until -std is added to get
4726 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4727 array size at least. It's necessary to write '\x00'==0 to get something
4728 that's true only with -std. */
4729 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4731 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4732 inside strings and character constants. */
4733 #define FOO(x) 'x'
4734 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4736 int test (int i, double x);
4737 struct s1 {int (*f) (int a);};
4738 struct s2 {int (*f) (double a);};
4739 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4740 int argc;
4741 char **argv;
4743 main ()
4745 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4747 return 0;
4749 _ACEOF
4750 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4751 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4753 CC="$ac_save_CC $ac_arg"
4754 if ac_fn_c_try_compile "$LINENO"; then :
4755 ac_cv_prog_cc_c89=$ac_arg
4757 rm -f core conftest.err conftest.$ac_objext
4758 test "x$ac_cv_prog_cc_c89" != "xno" && break
4759 done
4760 rm -f conftest.$ac_ext
4761 CC=$ac_save_CC
4764 # AC_CACHE_VAL
4765 case "x$ac_cv_prog_cc_c89" in
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4768 $as_echo "none needed" >&6; } ;;
4769 xno)
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4771 $as_echo "unsupported" >&6; } ;;
4773 CC="$CC $ac_cv_prog_cc_c89"
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4775 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4776 esac
4777 if test "x$ac_cv_prog_cc_c89" != xno; then :
4778 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4779 else
4780 ac_cv_prog_cc_stdc=no
4785 esac
4786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
4787 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
4788 if ${ac_cv_prog_cc_stdc+:} false; then :
4789 $as_echo_n "(cached) " >&6
4792 case $ac_cv_prog_cc_stdc in #(
4793 no) :
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4795 $as_echo "unsupported" >&6; } ;; #(
4796 '') :
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4798 $as_echo "none needed" >&6; } ;; #(
4799 *) :
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
4801 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
4802 esac
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4806 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4807 set x ${MAKE-make}
4808 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4809 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4810 $as_echo_n "(cached) " >&6
4811 else
4812 cat >conftest.make <<\_ACEOF
4813 SHELL = /bin/sh
4814 all:
4815 @echo '@@@%%%=$(MAKE)=@@@%%%'
4816 _ACEOF
4817 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4818 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4819 *@@@%%%=?*=@@@%%%*)
4820 eval ac_cv_prog_make_${ac_make}_set=yes;;
4822 eval ac_cv_prog_make_${ac_make}_set=no;;
4823 esac
4824 rm -f conftest.make
4826 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4828 $as_echo "yes" >&6; }
4829 SET_MAKE=
4830 else
4831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4832 $as_echo "no" >&6; }
4833 SET_MAKE="MAKE=${MAKE-make}"
4836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4837 $as_echo_n "checking whether ln -s works... " >&6; }
4838 LN_S=$as_ln_s
4839 if test "$LN_S" = "ln -s"; then
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4841 $as_echo "yes" >&6; }
4842 else
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4844 $as_echo "no, using $LN_S" >&6; }
4847 for ac_prog in gawk mawk nawk awk
4849 # Extract the first word of "$ac_prog", so it can be a program name with args.
4850 set dummy $ac_prog; ac_word=$2
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4852 $as_echo_n "checking for $ac_word... " >&6; }
4853 if ${ac_cv_prog_AWK+:} false; then :
4854 $as_echo_n "(cached) " >&6
4855 else
4856 if test -n "$AWK"; then
4857 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4858 else
4859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4860 for as_dir in $PATH
4862 IFS=$as_save_IFS
4863 test -z "$as_dir" && as_dir=.
4864 for ac_exec_ext in '' $ac_executable_extensions; do
4865 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4866 ac_cv_prog_AWK="$ac_prog"
4867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4868 break 2
4870 done
4871 done
4872 IFS=$as_save_IFS
4876 AWK=$ac_cv_prog_AWK
4877 if test -n "$AWK"; then
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4879 $as_echo "$AWK" >&6; }
4880 else
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4882 $as_echo "no" >&6; }
4886 test -n "$AWK" && break
4887 done
4889 if test -n "$ac_tool_prefix"; then
4890 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4891 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4893 $as_echo_n "checking for $ac_word... " >&6; }
4894 if ${ac_cv_prog_RANLIB+:} false; then :
4895 $as_echo_n "(cached) " >&6
4896 else
4897 if test -n "$RANLIB"; then
4898 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4899 else
4900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4901 for as_dir in $PATH
4903 IFS=$as_save_IFS
4904 test -z "$as_dir" && as_dir=.
4905 for ac_exec_ext in '' $ac_executable_extensions; do
4906 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4907 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4909 break 2
4911 done
4912 done
4913 IFS=$as_save_IFS
4917 RANLIB=$ac_cv_prog_RANLIB
4918 if test -n "$RANLIB"; then
4919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4920 $as_echo "$RANLIB" >&6; }
4921 else
4922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4923 $as_echo "no" >&6; }
4928 if test -z "$ac_cv_prog_RANLIB"; then
4929 ac_ct_RANLIB=$RANLIB
4930 # Extract the first word of "ranlib", so it can be a program name with args.
4931 set dummy ranlib; ac_word=$2
4932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4933 $as_echo_n "checking for $ac_word... " >&6; }
4934 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4935 $as_echo_n "(cached) " >&6
4936 else
4937 if test -n "$ac_ct_RANLIB"; then
4938 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4939 else
4940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4941 for as_dir in $PATH
4943 IFS=$as_save_IFS
4944 test -z "$as_dir" && as_dir=.
4945 for ac_exec_ext in '' $ac_executable_extensions; do
4946 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4947 ac_cv_prog_ac_ct_RANLIB="ranlib"
4948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4949 break 2
4951 done
4952 done
4953 IFS=$as_save_IFS
4957 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4958 if test -n "$ac_ct_RANLIB"; then
4959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4960 $as_echo "$ac_ct_RANLIB" >&6; }
4961 else
4962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4963 $as_echo "no" >&6; }
4966 if test "x$ac_ct_RANLIB" = x; then
4967 RANLIB=":"
4968 else
4969 case $cross_compiling:$ac_tool_warned in
4970 yes:)
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4972 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4973 ac_tool_warned=yes ;;
4974 esac
4975 RANLIB=$ac_ct_RANLIB
4977 else
4978 RANLIB="$ac_cv_prog_RANLIB"
4981 case `pwd` in
4982 *\ * | *\ *)
4983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4984 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4985 esac
4989 macro_version='2.2.6b'
4990 macro_revision='1.3018'
5004 ltmain="$ac_aux_dir/ltmain.sh"
5006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5007 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5008 if ${ac_cv_path_SED+:} false; then :
5009 $as_echo_n "(cached) " >&6
5010 else
5011 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5012 for ac_i in 1 2 3 4 5 6 7; do
5013 ac_script="$ac_script$as_nl$ac_script"
5014 done
5015 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5016 { ac_script=; unset ac_script;}
5017 if test -z "$SED"; then
5018 ac_path_SED_found=false
5019 # Loop through the user's path and test for each of PROGNAME-LIST
5020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5021 for as_dir in $PATH
5023 IFS=$as_save_IFS
5024 test -z "$as_dir" && as_dir=.
5025 for ac_prog in sed gsed; do
5026 for ac_exec_ext in '' $ac_executable_extensions; do
5027 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5028 as_fn_executable_p "$ac_path_SED" || continue
5029 # Check for GNU ac_path_SED and select it if it is found.
5030 # Check for GNU $ac_path_SED
5031 case `"$ac_path_SED" --version 2>&1` in
5032 *GNU*)
5033 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5035 ac_count=0
5036 $as_echo_n 0123456789 >"conftest.in"
5037 while :
5039 cat "conftest.in" "conftest.in" >"conftest.tmp"
5040 mv "conftest.tmp" "conftest.in"
5041 cp "conftest.in" "conftest.nl"
5042 $as_echo '' >> "conftest.nl"
5043 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5044 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5045 as_fn_arith $ac_count + 1 && ac_count=$as_val
5046 if test $ac_count -gt ${ac_path_SED_max-0}; then
5047 # Best one so far, save it but keep looking for a better one
5048 ac_cv_path_SED="$ac_path_SED"
5049 ac_path_SED_max=$ac_count
5051 # 10*(2^10) chars as input seems more than enough
5052 test $ac_count -gt 10 && break
5053 done
5054 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5055 esac
5057 $ac_path_SED_found && break 3
5058 done
5059 done
5060 done
5061 IFS=$as_save_IFS
5062 if test -z "$ac_cv_path_SED"; then
5063 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5065 else
5066 ac_cv_path_SED=$SED
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5071 $as_echo "$ac_cv_path_SED" >&6; }
5072 SED="$ac_cv_path_SED"
5073 rm -f conftest.sed
5075 test -z "$SED" && SED=sed
5076 Xsed="$SED -e 1s/^X//"
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5089 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5090 if ${ac_cv_path_GREP+:} false; then :
5091 $as_echo_n "(cached) " >&6
5092 else
5093 if test -z "$GREP"; then
5094 ac_path_GREP_found=false
5095 # Loop through the user's path and test for each of PROGNAME-LIST
5096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5097 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5099 IFS=$as_save_IFS
5100 test -z "$as_dir" && as_dir=.
5101 for ac_prog in grep ggrep; do
5102 for ac_exec_ext in '' $ac_executable_extensions; do
5103 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5104 as_fn_executable_p "$ac_path_GREP" || continue
5105 # Check for GNU ac_path_GREP and select it if it is found.
5106 # Check for GNU $ac_path_GREP
5107 case `"$ac_path_GREP" --version 2>&1` in
5108 *GNU*)
5109 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5111 ac_count=0
5112 $as_echo_n 0123456789 >"conftest.in"
5113 while :
5115 cat "conftest.in" "conftest.in" >"conftest.tmp"
5116 mv "conftest.tmp" "conftest.in"
5117 cp "conftest.in" "conftest.nl"
5118 $as_echo 'GREP' >> "conftest.nl"
5119 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5120 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5121 as_fn_arith $ac_count + 1 && ac_count=$as_val
5122 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5123 # Best one so far, save it but keep looking for a better one
5124 ac_cv_path_GREP="$ac_path_GREP"
5125 ac_path_GREP_max=$ac_count
5127 # 10*(2^10) chars as input seems more than enough
5128 test $ac_count -gt 10 && break
5129 done
5130 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5131 esac
5133 $ac_path_GREP_found && break 3
5134 done
5135 done
5136 done
5137 IFS=$as_save_IFS
5138 if test -z "$ac_cv_path_GREP"; then
5139 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5141 else
5142 ac_cv_path_GREP=$GREP
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5147 $as_echo "$ac_cv_path_GREP" >&6; }
5148 GREP="$ac_cv_path_GREP"
5151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5152 $as_echo_n "checking for egrep... " >&6; }
5153 if ${ac_cv_path_EGREP+:} false; then :
5154 $as_echo_n "(cached) " >&6
5155 else
5156 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5157 then ac_cv_path_EGREP="$GREP -E"
5158 else
5159 if test -z "$EGREP"; then
5160 ac_path_EGREP_found=false
5161 # Loop through the user's path and test for each of PROGNAME-LIST
5162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5163 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5165 IFS=$as_save_IFS
5166 test -z "$as_dir" && as_dir=.
5167 for ac_prog in egrep; do
5168 for ac_exec_ext in '' $ac_executable_extensions; do
5169 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5170 as_fn_executable_p "$ac_path_EGREP" || continue
5171 # Check for GNU ac_path_EGREP and select it if it is found.
5172 # Check for GNU $ac_path_EGREP
5173 case `"$ac_path_EGREP" --version 2>&1` in
5174 *GNU*)
5175 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5177 ac_count=0
5178 $as_echo_n 0123456789 >"conftest.in"
5179 while :
5181 cat "conftest.in" "conftest.in" >"conftest.tmp"
5182 mv "conftest.tmp" "conftest.in"
5183 cp "conftest.in" "conftest.nl"
5184 $as_echo 'EGREP' >> "conftest.nl"
5185 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5186 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5187 as_fn_arith $ac_count + 1 && ac_count=$as_val
5188 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5189 # Best one so far, save it but keep looking for a better one
5190 ac_cv_path_EGREP="$ac_path_EGREP"
5191 ac_path_EGREP_max=$ac_count
5193 # 10*(2^10) chars as input seems more than enough
5194 test $ac_count -gt 10 && break
5195 done
5196 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5197 esac
5199 $ac_path_EGREP_found && break 3
5200 done
5201 done
5202 done
5203 IFS=$as_save_IFS
5204 if test -z "$ac_cv_path_EGREP"; then
5205 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5207 else
5208 ac_cv_path_EGREP=$EGREP
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5214 $as_echo "$ac_cv_path_EGREP" >&6; }
5215 EGREP="$ac_cv_path_EGREP"
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5219 $as_echo_n "checking for fgrep... " >&6; }
5220 if ${ac_cv_path_FGREP+:} false; then :
5221 $as_echo_n "(cached) " >&6
5222 else
5223 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5224 then ac_cv_path_FGREP="$GREP -F"
5225 else
5226 if test -z "$FGREP"; then
5227 ac_path_FGREP_found=false
5228 # Loop through the user's path and test for each of PROGNAME-LIST
5229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5230 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5232 IFS=$as_save_IFS
5233 test -z "$as_dir" && as_dir=.
5234 for ac_prog in fgrep; do
5235 for ac_exec_ext in '' $ac_executable_extensions; do
5236 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5237 as_fn_executable_p "$ac_path_FGREP" || continue
5238 # Check for GNU ac_path_FGREP and select it if it is found.
5239 # Check for GNU $ac_path_FGREP
5240 case `"$ac_path_FGREP" --version 2>&1` in
5241 *GNU*)
5242 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5244 ac_count=0
5245 $as_echo_n 0123456789 >"conftest.in"
5246 while :
5248 cat "conftest.in" "conftest.in" >"conftest.tmp"
5249 mv "conftest.tmp" "conftest.in"
5250 cp "conftest.in" "conftest.nl"
5251 $as_echo 'FGREP' >> "conftest.nl"
5252 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5253 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5254 as_fn_arith $ac_count + 1 && ac_count=$as_val
5255 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5256 # Best one so far, save it but keep looking for a better one
5257 ac_cv_path_FGREP="$ac_path_FGREP"
5258 ac_path_FGREP_max=$ac_count
5260 # 10*(2^10) chars as input seems more than enough
5261 test $ac_count -gt 10 && break
5262 done
5263 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5264 esac
5266 $ac_path_FGREP_found && break 3
5267 done
5268 done
5269 done
5270 IFS=$as_save_IFS
5271 if test -z "$ac_cv_path_FGREP"; then
5272 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5274 else
5275 ac_cv_path_FGREP=$FGREP
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5281 $as_echo "$ac_cv_path_FGREP" >&6; }
5282 FGREP="$ac_cv_path_FGREP"
5285 test -z "$GREP" && GREP=grep
5305 # Check whether --with-gnu-ld was given.
5306 if test "${with_gnu_ld+set}" = set; then :
5307 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5308 else
5309 with_gnu_ld=no
5312 ac_prog=ld
5313 if test "$GCC" = yes; then
5314 # Check if gcc -print-prog-name=ld gives a path.
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5316 $as_echo_n "checking for ld used by $CC... " >&6; }
5317 case $host in
5318 *-*-mingw*)
5319 # gcc leaves a trailing carriage return which upsets mingw
5320 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5322 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5323 esac
5324 case $ac_prog in
5325 # Accept absolute paths.
5326 [\\/]* | ?:[\\/]*)
5327 re_direlt='/[^/][^/]*/\.\./'
5328 # Canonicalize the pathname of ld
5329 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5330 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5331 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5332 done
5333 test -z "$LD" && LD="$ac_prog"
5336 # If it fails, then pretend we aren't using GCC.
5337 ac_prog=ld
5340 # If it is relative, then search for the first ld in PATH.
5341 with_gnu_ld=unknown
5343 esac
5344 elif test "$with_gnu_ld" = yes; then
5345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5346 $as_echo_n "checking for GNU ld... " >&6; }
5347 else
5348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5349 $as_echo_n "checking for non-GNU ld... " >&6; }
5351 if ${lt_cv_path_LD+:} false; then :
5352 $as_echo_n "(cached) " >&6
5353 else
5354 if test -z "$LD"; then
5355 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5356 for ac_dir in $PATH; do
5357 IFS="$lt_save_ifs"
5358 test -z "$ac_dir" && ac_dir=.
5359 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5360 lt_cv_path_LD="$ac_dir/$ac_prog"
5361 # Check to see if the program is GNU ld. I'd rather use --version,
5362 # but apparently some variants of GNU ld only accept -v.
5363 # Break only if it was the GNU/non-GNU ld that we prefer.
5364 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5365 *GNU* | *'with BFD'*)
5366 test "$with_gnu_ld" != no && break
5369 test "$with_gnu_ld" != yes && break
5371 esac
5373 done
5374 IFS="$lt_save_ifs"
5375 else
5376 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5380 LD="$lt_cv_path_LD"
5381 if test -n "$LD"; then
5382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5383 $as_echo "$LD" >&6; }
5384 else
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5386 $as_echo "no" >&6; }
5388 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5390 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5391 if ${lt_cv_prog_gnu_ld+:} false; then :
5392 $as_echo_n "(cached) " >&6
5393 else
5394 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5395 case `$LD -v 2>&1 </dev/null` in
5396 *GNU* | *'with BFD'*)
5397 lt_cv_prog_gnu_ld=yes
5400 lt_cv_prog_gnu_ld=no
5402 esac
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5405 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5406 with_gnu_ld=$lt_cv_prog_gnu_ld
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5417 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5418 if ${lt_cv_path_NM+:} false; then :
5419 $as_echo_n "(cached) " >&6
5420 else
5421 if test -n "$NM"; then
5422 # Let the user override the test.
5423 lt_cv_path_NM="$NM"
5424 else
5425 lt_nm_to_check="${ac_tool_prefix}nm"
5426 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5427 lt_nm_to_check="$lt_nm_to_check nm"
5429 for lt_tmp_nm in $lt_nm_to_check; do
5430 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5431 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5432 IFS="$lt_save_ifs"
5433 test -z "$ac_dir" && ac_dir=.
5434 tmp_nm="$ac_dir/$lt_tmp_nm"
5435 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5436 # Check to see if the nm accepts a BSD-compat flag.
5437 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5438 # nm: unknown option "B" ignored
5439 # Tru64's nm complains that /dev/null is an invalid object file
5440 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5441 */dev/null* | *'Invalid file or object type'*)
5442 lt_cv_path_NM="$tmp_nm -B"
5443 break
5446 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5447 */dev/null*)
5448 lt_cv_path_NM="$tmp_nm -p"
5449 break
5452 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5453 continue # so that we can try to find one that supports BSD flags
5455 esac
5457 esac
5459 done
5460 IFS="$lt_save_ifs"
5461 done
5462 : ${lt_cv_path_NM=no}
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5466 $as_echo "$lt_cv_path_NM" >&6; }
5467 if test "$lt_cv_path_NM" != "no"; then
5468 NM="$lt_cv_path_NM"
5469 else
5470 # Didn't find any BSD compatible name lister, look for dumpbin.
5471 if test -n "$ac_tool_prefix"; then
5472 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5474 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5475 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5477 $as_echo_n "checking for $ac_word... " >&6; }
5478 if ${ac_cv_prog_DUMPBIN+:} false; then :
5479 $as_echo_n "(cached) " >&6
5480 else
5481 if test -n "$DUMPBIN"; then
5482 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5483 else
5484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5485 for as_dir in $PATH
5487 IFS=$as_save_IFS
5488 test -z "$as_dir" && as_dir=.
5489 for ac_exec_ext in '' $ac_executable_extensions; do
5490 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5491 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5493 break 2
5495 done
5496 done
5497 IFS=$as_save_IFS
5501 DUMPBIN=$ac_cv_prog_DUMPBIN
5502 if test -n "$DUMPBIN"; then
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5504 $as_echo "$DUMPBIN" >&6; }
5505 else
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5507 $as_echo "no" >&6; }
5511 test -n "$DUMPBIN" && break
5512 done
5514 if test -z "$DUMPBIN"; then
5515 ac_ct_DUMPBIN=$DUMPBIN
5516 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5518 # Extract the first word of "$ac_prog", so it can be a program name with args.
5519 set dummy $ac_prog; ac_word=$2
5520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5521 $as_echo_n "checking for $ac_word... " >&6; }
5522 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5523 $as_echo_n "(cached) " >&6
5524 else
5525 if test -n "$ac_ct_DUMPBIN"; then
5526 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5527 else
5528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5529 for as_dir in $PATH
5531 IFS=$as_save_IFS
5532 test -z "$as_dir" && as_dir=.
5533 for ac_exec_ext in '' $ac_executable_extensions; do
5534 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5535 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5537 break 2
5539 done
5540 done
5541 IFS=$as_save_IFS
5545 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5546 if test -n "$ac_ct_DUMPBIN"; then
5547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5548 $as_echo "$ac_ct_DUMPBIN" >&6; }
5549 else
5550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5551 $as_echo "no" >&6; }
5555 test -n "$ac_ct_DUMPBIN" && break
5556 done
5558 if test "x$ac_ct_DUMPBIN" = x; then
5559 DUMPBIN=":"
5560 else
5561 case $cross_compiling:$ac_tool_warned in
5562 yes:)
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5564 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5565 ac_tool_warned=yes ;;
5566 esac
5567 DUMPBIN=$ac_ct_DUMPBIN
5572 if test "$DUMPBIN" != ":"; then
5573 NM="$DUMPBIN"
5576 test -z "$NM" && NM=nm
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5584 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5585 if ${lt_cv_nm_interface+:} false; then :
5586 $as_echo_n "(cached) " >&6
5587 else
5588 lt_cv_nm_interface="BSD nm"
5589 echo "int some_variable = 0;" > conftest.$ac_ext
5590 (eval echo "\"\$as_me:5590: $ac_compile\"" >&5)
5591 (eval "$ac_compile" 2>conftest.err)
5592 cat conftest.err >&5
5593 (eval echo "\"\$as_me:5593: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5594 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5595 cat conftest.err >&5
5596 (eval echo "\"\$as_me:5596: output\"" >&5)
5597 cat conftest.out >&5
5598 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5599 lt_cv_nm_interface="MS dumpbin"
5601 rm -f conftest*
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5604 $as_echo "$lt_cv_nm_interface" >&6; }
5606 # find the maximum length of command line arguments
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5608 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5609 if ${lt_cv_sys_max_cmd_len+:} false; then :
5610 $as_echo_n "(cached) " >&6
5611 else
5613 teststring="ABCD"
5615 case $build_os in
5616 msdosdjgpp*)
5617 # On DJGPP, this test can blow up pretty badly due to problems in libc
5618 # (any single argument exceeding 2000 bytes causes a buffer overrun
5619 # during glob expansion). Even if it were fixed, the result of this
5620 # check would be larger than it should be.
5621 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5624 gnu*)
5625 # Under GNU Hurd, this test is not required because there is
5626 # no limit to the length of command line arguments.
5627 # Libtool will interpret -1 as no limit whatsoever
5628 lt_cv_sys_max_cmd_len=-1;
5631 cygwin* | mingw* | cegcc*)
5632 # On Win9x/ME, this test blows up -- it succeeds, but takes
5633 # about 5 minutes as the teststring grows exponentially.
5634 # Worse, since 9x/ME are not pre-emptively multitasking,
5635 # you end up with a "frozen" computer, even though with patience
5636 # the test eventually succeeds (with a max line length of 256k).
5637 # Instead, let's just punt: use the minimum linelength reported by
5638 # all of the supported platforms: 8192 (on NT/2K/XP).
5639 lt_cv_sys_max_cmd_len=8192;
5642 amigaos*)
5643 # On AmigaOS with pdksh, this test takes hours, literally.
5644 # So we just punt and use a minimum line length of 8192.
5645 lt_cv_sys_max_cmd_len=8192;
5648 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5649 # This has been around since 386BSD, at least. Likely further.
5650 if test -x /sbin/sysctl; then
5651 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5652 elif test -x /usr/sbin/sysctl; then
5653 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5654 else
5655 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5657 # And add a safety zone
5658 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5659 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5662 interix*)
5663 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5664 lt_cv_sys_max_cmd_len=196608
5667 osf*)
5668 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5669 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5670 # nice to cause kernel panics so lets avoid the loop below.
5671 # First set a reasonable default.
5672 lt_cv_sys_max_cmd_len=16384
5674 if test -x /sbin/sysconfig; then
5675 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5676 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5677 esac
5680 sco3.2v5*)
5681 lt_cv_sys_max_cmd_len=102400
5683 sysv5* | sco5v6* | sysv4.2uw2*)
5684 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5685 if test -n "$kargmax"; then
5686 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5687 else
5688 lt_cv_sys_max_cmd_len=32768
5692 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5693 if test -n "$lt_cv_sys_max_cmd_len"; then
5694 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5695 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5696 else
5697 # Make teststring a little bigger before we do anything with it.
5698 # a 1K string should be a reasonable start.
5699 for i in 1 2 3 4 5 6 7 8 ; do
5700 teststring=$teststring$teststring
5701 done
5702 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5703 # If test is not a shell built-in, we'll probably end up computing a
5704 # maximum length that is only half of the actual maximum length, but
5705 # we can't tell.
5706 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5707 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5708 test $i != 17 # 1/2 MB should be enough
5710 i=`expr $i + 1`
5711 teststring=$teststring$teststring
5712 done
5713 # Only check the string length outside the loop.
5714 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5715 teststring=
5716 # Add a significant safety factor because C++ compilers can tack on
5717 # massive amounts of additional arguments before passing them to the
5718 # linker. It appears as though 1/2 is a usable value.
5719 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5722 esac
5726 if test -n $lt_cv_sys_max_cmd_len ; then
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5728 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5729 else
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5731 $as_echo "none" >&6; }
5733 max_cmd_len=$lt_cv_sys_max_cmd_len
5740 : ${CP="cp -f"}
5741 : ${MV="mv -f"}
5742 : ${RM="rm -f"}
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5745 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5746 # Try some XSI features
5747 xsi_shell=no
5748 ( _lt_dummy="a/b/c"
5749 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5750 = c,a/b,, \
5751 && eval 'test $(( 1 + 1 )) -eq 2 \
5752 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5753 && xsi_shell=yes
5754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5755 $as_echo "$xsi_shell" >&6; }
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5759 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5760 lt_shell_append=no
5761 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5762 >/dev/null 2>&1 \
5763 && lt_shell_append=yes
5764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5765 $as_echo "$lt_shell_append" >&6; }
5768 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5769 lt_unset=unset
5770 else
5771 lt_unset=false
5778 # test EBCDIC or ASCII
5779 case `echo X|tr X '\101'` in
5780 A) # ASCII based system
5781 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5782 lt_SP2NL='tr \040 \012'
5783 lt_NL2SP='tr \015\012 \040\040'
5785 *) # EBCDIC based system
5786 lt_SP2NL='tr \100 \n'
5787 lt_NL2SP='tr \r\n \100\100'
5789 esac
5799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5800 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5801 if ${lt_cv_ld_reload_flag+:} false; then :
5802 $as_echo_n "(cached) " >&6
5803 else
5804 lt_cv_ld_reload_flag='-r'
5806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5807 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5808 reload_flag=$lt_cv_ld_reload_flag
5809 case $reload_flag in
5810 "" | " "*) ;;
5811 *) reload_flag=" $reload_flag" ;;
5812 esac
5813 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5814 case $host_os in
5815 darwin*)
5816 if test "$GCC" = yes; then
5817 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5818 else
5819 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5822 esac
5832 if test -n "$ac_tool_prefix"; then
5833 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5834 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5836 $as_echo_n "checking for $ac_word... " >&6; }
5837 if ${ac_cv_prog_OBJDUMP+:} false; then :
5838 $as_echo_n "(cached) " >&6
5839 else
5840 if test -n "$OBJDUMP"; then
5841 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5842 else
5843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5844 for as_dir in $PATH
5846 IFS=$as_save_IFS
5847 test -z "$as_dir" && as_dir=.
5848 for ac_exec_ext in '' $ac_executable_extensions; do
5849 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5850 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5852 break 2
5854 done
5855 done
5856 IFS=$as_save_IFS
5860 OBJDUMP=$ac_cv_prog_OBJDUMP
5861 if test -n "$OBJDUMP"; then
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5863 $as_echo "$OBJDUMP" >&6; }
5864 else
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5866 $as_echo "no" >&6; }
5871 if test -z "$ac_cv_prog_OBJDUMP"; then
5872 ac_ct_OBJDUMP=$OBJDUMP
5873 # Extract the first word of "objdump", so it can be a program name with args.
5874 set dummy objdump; ac_word=$2
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5876 $as_echo_n "checking for $ac_word... " >&6; }
5877 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5878 $as_echo_n "(cached) " >&6
5879 else
5880 if test -n "$ac_ct_OBJDUMP"; then
5881 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5882 else
5883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5884 for as_dir in $PATH
5886 IFS=$as_save_IFS
5887 test -z "$as_dir" && as_dir=.
5888 for ac_exec_ext in '' $ac_executable_extensions; do
5889 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5890 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5892 break 2
5894 done
5895 done
5896 IFS=$as_save_IFS
5900 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5901 if test -n "$ac_ct_OBJDUMP"; then
5902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5903 $as_echo "$ac_ct_OBJDUMP" >&6; }
5904 else
5905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5906 $as_echo "no" >&6; }
5909 if test "x$ac_ct_OBJDUMP" = x; then
5910 OBJDUMP="false"
5911 else
5912 case $cross_compiling:$ac_tool_warned in
5913 yes:)
5914 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5915 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5916 ac_tool_warned=yes ;;
5917 esac
5918 OBJDUMP=$ac_ct_OBJDUMP
5920 else
5921 OBJDUMP="$ac_cv_prog_OBJDUMP"
5924 test -z "$OBJDUMP" && OBJDUMP=objdump
5934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5935 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5936 if ${lt_cv_deplibs_check_method+:} false; then :
5937 $as_echo_n "(cached) " >&6
5938 else
5939 lt_cv_file_magic_cmd='$MAGIC_CMD'
5940 lt_cv_file_magic_test_file=
5941 lt_cv_deplibs_check_method='unknown'
5942 # Need to set the preceding variable on all platforms that support
5943 # interlibrary dependencies.
5944 # 'none' -- dependencies not supported.
5945 # `unknown' -- same as none, but documents that we really don't know.
5946 # 'pass_all' -- all dependencies passed with no checks.
5947 # 'test_compile' -- check by making test program.
5948 # 'file_magic [[regex]]' -- check by looking for files in library path
5949 # which responds to the $file_magic_cmd with a given extended regex.
5950 # If you have `file' or equivalent on your system and you're not sure
5951 # whether `pass_all' will *always* work, you probably want this one.
5953 case $host_os in
5954 aix[4-9]*)
5955 lt_cv_deplibs_check_method=pass_all
5958 beos*)
5959 lt_cv_deplibs_check_method=pass_all
5962 bsdi[45]*)
5963 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5964 lt_cv_file_magic_cmd='/usr/bin/file -L'
5965 lt_cv_file_magic_test_file=/shlib/libc.so
5968 cygwin*)
5969 # func_win32_libid is a shell function defined in ltmain.sh
5970 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5971 lt_cv_file_magic_cmd='func_win32_libid'
5974 mingw* | pw32*)
5975 # Base MSYS/MinGW do not provide the 'file' command needed by
5976 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5977 # unless we find 'file', for example because we are cross-compiling.
5978 if ( file / ) >/dev/null 2>&1; then
5979 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5980 lt_cv_file_magic_cmd='func_win32_libid'
5981 else
5982 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5983 lt_cv_file_magic_cmd='$OBJDUMP -f'
5987 cegcc)
5988 # use the weaker test based on 'objdump'. See mingw*.
5989 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5990 lt_cv_file_magic_cmd='$OBJDUMP -f'
5993 darwin* | rhapsody*)
5994 lt_cv_deplibs_check_method=pass_all
5997 freebsd* | dragonfly*)
5998 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5999 case $host_cpu in
6000 i*86 )
6001 # Not sure whether the presence of OpenBSD here was a mistake.
6002 # Let's accept both of them until this is cleared up.
6003 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6004 lt_cv_file_magic_cmd=/usr/bin/file
6005 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6007 esac
6008 else
6009 lt_cv_deplibs_check_method=pass_all
6013 gnu*)
6014 lt_cv_deplibs_check_method=pass_all
6017 hpux10.20* | hpux11*)
6018 lt_cv_file_magic_cmd=/usr/bin/file
6019 case $host_cpu in
6020 ia64*)
6021 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6022 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6024 hppa*64*)
6025 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]'
6026 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6029 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6030 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6032 esac
6035 interix[3-9]*)
6036 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6037 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6040 irix5* | irix6* | nonstopux*)
6041 case $LD in
6042 *-32|*"-32 ") libmagic=32-bit;;
6043 *-n32|*"-n32 ") libmagic=N32;;
6044 *-64|*"-64 ") libmagic=64-bit;;
6045 *) libmagic=never-match;;
6046 esac
6047 lt_cv_deplibs_check_method=pass_all
6050 # This must be Linux ELF.
6051 linux* | k*bsd*-gnu)
6052 lt_cv_deplibs_check_method=pass_all
6055 netbsd*)
6056 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6057 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6058 else
6059 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6063 newos6*)
6064 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6065 lt_cv_file_magic_cmd=/usr/bin/file
6066 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6069 *nto* | *qnx*)
6070 lt_cv_deplibs_check_method=pass_all
6073 openbsd*)
6074 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6075 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6076 else
6077 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6081 osf3* | osf4* | osf5*)
6082 lt_cv_deplibs_check_method=pass_all
6085 rdos*)
6086 lt_cv_deplibs_check_method=pass_all
6089 solaris*)
6090 lt_cv_deplibs_check_method=pass_all
6093 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6094 lt_cv_deplibs_check_method=pass_all
6097 sysv4 | sysv4.3*)
6098 case $host_vendor in
6099 motorola)
6100 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]'
6101 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6103 ncr)
6104 lt_cv_deplibs_check_method=pass_all
6106 sequent)
6107 lt_cv_file_magic_cmd='/bin/file'
6108 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6110 sni)
6111 lt_cv_file_magic_cmd='/bin/file'
6112 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6113 lt_cv_file_magic_test_file=/lib/libc.so
6115 siemens)
6116 lt_cv_deplibs_check_method=pass_all
6119 lt_cv_deplibs_check_method=pass_all
6121 esac
6124 tpf*)
6125 lt_cv_deplibs_check_method=pass_all
6127 esac
6130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6131 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6132 file_magic_cmd=$lt_cv_file_magic_cmd
6133 deplibs_check_method=$lt_cv_deplibs_check_method
6134 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6147 if test -n "$ac_tool_prefix"; then
6148 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6149 set dummy ${ac_tool_prefix}ar; ac_word=$2
6150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6151 $as_echo_n "checking for $ac_word... " >&6; }
6152 if ${ac_cv_prog_AR+:} false; then :
6153 $as_echo_n "(cached) " >&6
6154 else
6155 if test -n "$AR"; then
6156 ac_cv_prog_AR="$AR" # Let the user override the test.
6157 else
6158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6159 for as_dir in $PATH
6161 IFS=$as_save_IFS
6162 test -z "$as_dir" && as_dir=.
6163 for ac_exec_ext in '' $ac_executable_extensions; do
6164 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6165 ac_cv_prog_AR="${ac_tool_prefix}ar"
6166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6167 break 2
6169 done
6170 done
6171 IFS=$as_save_IFS
6175 AR=$ac_cv_prog_AR
6176 if test -n "$AR"; then
6177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6178 $as_echo "$AR" >&6; }
6179 else
6180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6181 $as_echo "no" >&6; }
6186 if test -z "$ac_cv_prog_AR"; then
6187 ac_ct_AR=$AR
6188 # Extract the first word of "ar", so it can be a program name with args.
6189 set dummy ar; ac_word=$2
6190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6191 $as_echo_n "checking for $ac_word... " >&6; }
6192 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6193 $as_echo_n "(cached) " >&6
6194 else
6195 if test -n "$ac_ct_AR"; then
6196 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6197 else
6198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6199 for as_dir in $PATH
6201 IFS=$as_save_IFS
6202 test -z "$as_dir" && as_dir=.
6203 for ac_exec_ext in '' $ac_executable_extensions; do
6204 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6205 ac_cv_prog_ac_ct_AR="ar"
6206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6207 break 2
6209 done
6210 done
6211 IFS=$as_save_IFS
6215 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6216 if test -n "$ac_ct_AR"; then
6217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6218 $as_echo "$ac_ct_AR" >&6; }
6219 else
6220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6221 $as_echo "no" >&6; }
6224 if test "x$ac_ct_AR" = x; then
6225 AR="false"
6226 else
6227 case $cross_compiling:$ac_tool_warned in
6228 yes:)
6229 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6230 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6231 ac_tool_warned=yes ;;
6232 esac
6233 AR=$ac_ct_AR
6235 else
6236 AR="$ac_cv_prog_AR"
6239 test -z "$AR" && AR=ar
6240 test -z "$AR_FLAGS" && AR_FLAGS=cru
6252 if test -n "$ac_tool_prefix"; then
6253 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6254 set dummy ${ac_tool_prefix}strip; ac_word=$2
6255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6256 $as_echo_n "checking for $ac_word... " >&6; }
6257 if ${ac_cv_prog_STRIP+:} false; then :
6258 $as_echo_n "(cached) " >&6
6259 else
6260 if test -n "$STRIP"; then
6261 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6262 else
6263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6264 for as_dir in $PATH
6266 IFS=$as_save_IFS
6267 test -z "$as_dir" && as_dir=.
6268 for ac_exec_ext in '' $ac_executable_extensions; do
6269 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6270 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6272 break 2
6274 done
6275 done
6276 IFS=$as_save_IFS
6280 STRIP=$ac_cv_prog_STRIP
6281 if test -n "$STRIP"; then
6282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6283 $as_echo "$STRIP" >&6; }
6284 else
6285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6286 $as_echo "no" >&6; }
6291 if test -z "$ac_cv_prog_STRIP"; then
6292 ac_ct_STRIP=$STRIP
6293 # Extract the first word of "strip", so it can be a program name with args.
6294 set dummy strip; ac_word=$2
6295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6296 $as_echo_n "checking for $ac_word... " >&6; }
6297 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6298 $as_echo_n "(cached) " >&6
6299 else
6300 if test -n "$ac_ct_STRIP"; then
6301 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6302 else
6303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6304 for as_dir in $PATH
6306 IFS=$as_save_IFS
6307 test -z "$as_dir" && as_dir=.
6308 for ac_exec_ext in '' $ac_executable_extensions; do
6309 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6310 ac_cv_prog_ac_ct_STRIP="strip"
6311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6312 break 2
6314 done
6315 done
6316 IFS=$as_save_IFS
6320 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6321 if test -n "$ac_ct_STRIP"; then
6322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6323 $as_echo "$ac_ct_STRIP" >&6; }
6324 else
6325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6326 $as_echo "no" >&6; }
6329 if test "x$ac_ct_STRIP" = x; then
6330 STRIP=":"
6331 else
6332 case $cross_compiling:$ac_tool_warned in
6333 yes:)
6334 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6335 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6336 ac_tool_warned=yes ;;
6337 esac
6338 STRIP=$ac_ct_STRIP
6340 else
6341 STRIP="$ac_cv_prog_STRIP"
6344 test -z "$STRIP" && STRIP=:
6351 if test -n "$ac_tool_prefix"; then
6352 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6353 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6355 $as_echo_n "checking for $ac_word... " >&6; }
6356 if ${ac_cv_prog_RANLIB+:} false; then :
6357 $as_echo_n "(cached) " >&6
6358 else
6359 if test -n "$RANLIB"; then
6360 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6361 else
6362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6363 for as_dir in $PATH
6365 IFS=$as_save_IFS
6366 test -z "$as_dir" && as_dir=.
6367 for ac_exec_ext in '' $ac_executable_extensions; do
6368 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6369 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6371 break 2
6373 done
6374 done
6375 IFS=$as_save_IFS
6379 RANLIB=$ac_cv_prog_RANLIB
6380 if test -n "$RANLIB"; then
6381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6382 $as_echo "$RANLIB" >&6; }
6383 else
6384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6385 $as_echo "no" >&6; }
6390 if test -z "$ac_cv_prog_RANLIB"; then
6391 ac_ct_RANLIB=$RANLIB
6392 # Extract the first word of "ranlib", so it can be a program name with args.
6393 set dummy ranlib; ac_word=$2
6394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6395 $as_echo_n "checking for $ac_word... " >&6; }
6396 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6397 $as_echo_n "(cached) " >&6
6398 else
6399 if test -n "$ac_ct_RANLIB"; then
6400 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6401 else
6402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6403 for as_dir in $PATH
6405 IFS=$as_save_IFS
6406 test -z "$as_dir" && as_dir=.
6407 for ac_exec_ext in '' $ac_executable_extensions; do
6408 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6409 ac_cv_prog_ac_ct_RANLIB="ranlib"
6410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6411 break 2
6413 done
6414 done
6415 IFS=$as_save_IFS
6419 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6420 if test -n "$ac_ct_RANLIB"; then
6421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6422 $as_echo "$ac_ct_RANLIB" >&6; }
6423 else
6424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6425 $as_echo "no" >&6; }
6428 if test "x$ac_ct_RANLIB" = x; then
6429 RANLIB=":"
6430 else
6431 case $cross_compiling:$ac_tool_warned in
6432 yes:)
6433 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6434 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6435 ac_tool_warned=yes ;;
6436 esac
6437 RANLIB=$ac_ct_RANLIB
6439 else
6440 RANLIB="$ac_cv_prog_RANLIB"
6443 test -z "$RANLIB" && RANLIB=:
6450 # Determine commands to create old-style static archives.
6451 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6452 old_postinstall_cmds='chmod 644 $oldlib'
6453 old_postuninstall_cmds=
6455 if test -n "$RANLIB"; then
6456 case $host_os in
6457 openbsd*)
6458 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6461 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6463 esac
6464 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6500 # If no C compiler was specified, use CC.
6501 LTCC=${LTCC-"$CC"}
6503 # If no C compiler flags were specified, use CFLAGS.
6504 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6506 # Allow CC to be a program name with arguments.
6507 compiler=$CC
6510 # Check for command to grab the raw symbol name followed by C symbol from nm.
6511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6512 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6513 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6514 $as_echo_n "(cached) " >&6
6515 else
6517 # These are sane defaults that work on at least a few old systems.
6518 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6520 # Character class describing NM global symbol codes.
6521 symcode='[BCDEGRST]'
6523 # Regexp to match symbols that can be accessed directly from C.
6524 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6526 # Define system-specific variables.
6527 case $host_os in
6528 aix*)
6529 symcode='[BCDT]'
6531 cygwin* | mingw* | pw32* | cegcc*)
6532 symcode='[ABCDGISTW]'
6534 hpux*)
6535 if test "$host_cpu" = ia64; then
6536 symcode='[ABCDEGRST]'
6539 irix* | nonstopux*)
6540 symcode='[BCDEGRST]'
6542 osf*)
6543 symcode='[BCDEGQRST]'
6545 solaris*)
6546 symcode='[BDRT]'
6548 sco3.2v5*)
6549 symcode='[DT]'
6551 sysv4.2uw2*)
6552 symcode='[DT]'
6554 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6555 symcode='[ABDT]'
6557 sysv4)
6558 symcode='[DFNSTU]'
6560 esac
6562 # If we're using GNU nm, then use its standard symbol codes.
6563 case `$NM -V 2>&1` in
6564 *GNU* | *'with BFD'*)
6565 symcode='[ABCDGIRSTW]' ;;
6566 esac
6568 # Transform an extracted symbol line into a proper C declaration.
6569 # Some systems (esp. on ia64) link data and code symbols differently,
6570 # so use this general approach.
6571 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6573 # Transform an extracted symbol line into symbol name and symbol address
6574 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6575 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'"
6577 # Handle CRLF in mingw tool chain
6578 opt_cr=
6579 case $build_os in
6580 mingw*)
6581 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6583 esac
6585 # Try without a prefix underscore, then with it.
6586 for ac_symprfx in "" "_"; do
6588 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6589 symxfrm="\\1 $ac_symprfx\\2 \\2"
6591 # Write the raw and C identifiers.
6592 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6593 # Fake it for dumpbin and say T for any non-static function
6594 # and D for any global variable.
6595 # Also find C++ and __fastcall symbols from MSVC++,
6596 # which start with @ or ?.
6597 lt_cv_sys_global_symbol_pipe="$AWK '"\
6598 " {last_section=section; section=\$ 3};"\
6599 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6600 " \$ 0!~/External *\|/{next};"\
6601 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6602 " {if(hide[section]) next};"\
6603 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6604 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6605 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6606 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6607 " ' prfx=^$ac_symprfx"
6608 else
6609 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6612 # Check to see that the pipe works correctly.
6613 pipe_works=no
6615 rm -f conftest*
6616 cat > conftest.$ac_ext <<_LT_EOF
6617 #ifdef __cplusplus
6618 extern "C" {
6619 #endif
6620 char nm_test_var;
6621 void nm_test_func(void);
6622 void nm_test_func(void){}
6623 #ifdef __cplusplus
6625 #endif
6626 int main(){nm_test_var='a';nm_test_func();return(0);}
6627 _LT_EOF
6629 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6630 (eval $ac_compile) 2>&5
6631 ac_status=$?
6632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6633 test $ac_status = 0; }; then
6634 # Now try to grab the symbols.
6635 nlist=conftest.nm
6636 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6637 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6638 ac_status=$?
6639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6640 test $ac_status = 0; } && test -s "$nlist"; then
6641 # Try sorting and uniquifying the output.
6642 if sort "$nlist" | uniq > "$nlist"T; then
6643 mv -f "$nlist"T "$nlist"
6644 else
6645 rm -f "$nlist"T
6648 # Make sure that we snagged all the symbols we need.
6649 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6650 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6651 cat <<_LT_EOF > conftest.$ac_ext
6652 #ifdef __cplusplus
6653 extern "C" {
6654 #endif
6656 _LT_EOF
6657 # Now generate the symbol file.
6658 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6660 cat <<_LT_EOF >> conftest.$ac_ext
6662 /* The mapping between symbol names and symbols. */
6663 const struct {
6664 const char *name;
6665 void *address;
6667 lt__PROGRAM__LTX_preloaded_symbols[] =
6669 { "@PROGRAM@", (void *) 0 },
6670 _LT_EOF
6671 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6672 cat <<\_LT_EOF >> conftest.$ac_ext
6673 {0, (void *) 0}
6676 /* This works around a problem in FreeBSD linker */
6677 #ifdef FREEBSD_WORKAROUND
6678 static const void *lt_preloaded_setup() {
6679 return lt__PROGRAM__LTX_preloaded_symbols;
6681 #endif
6683 #ifdef __cplusplus
6685 #endif
6686 _LT_EOF
6687 # Now try linking the two files.
6688 mv conftest.$ac_objext conftstm.$ac_objext
6689 lt_save_LIBS="$LIBS"
6690 lt_save_CFLAGS="$CFLAGS"
6691 LIBS="conftstm.$ac_objext"
6692 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6693 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6694 (eval $ac_link) 2>&5
6695 ac_status=$?
6696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6697 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6698 pipe_works=yes
6700 LIBS="$lt_save_LIBS"
6701 CFLAGS="$lt_save_CFLAGS"
6702 else
6703 echo "cannot find nm_test_func in $nlist" >&5
6705 else
6706 echo "cannot find nm_test_var in $nlist" >&5
6708 else
6709 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6711 else
6712 echo "$progname: failed program was:" >&5
6713 cat conftest.$ac_ext >&5
6715 rm -rf conftest* conftst*
6717 # Do not use the global_symbol_pipe unless it works.
6718 if test "$pipe_works" = yes; then
6719 break
6720 else
6721 lt_cv_sys_global_symbol_pipe=
6723 done
6727 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6728 lt_cv_sys_global_symbol_to_cdecl=
6730 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6732 $as_echo "failed" >&6; }
6733 else
6734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6735 $as_echo "ok" >&6; }
6760 # Check whether --enable-libtool-lock was given.
6761 if test "${enable_libtool_lock+set}" = set; then :
6762 enableval=$enable_libtool_lock;
6765 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6767 # Some flags need to be propagated to the compiler or linker for good
6768 # libtool support.
6769 case $host in
6770 ia64-*-hpux*)
6771 # Find out which ABI we are using.
6772 echo 'int i;' > conftest.$ac_ext
6773 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6774 (eval $ac_compile) 2>&5
6775 ac_status=$?
6776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6777 test $ac_status = 0; }; then
6778 case `/usr/bin/file conftest.$ac_objext` in
6779 *ELF-32*)
6780 HPUX_IA64_MODE="32"
6782 *ELF-64*)
6783 HPUX_IA64_MODE="64"
6785 esac
6787 rm -rf conftest*
6789 *-*-irix6*)
6790 # Find out which ABI we are using.
6791 echo '#line 6791 "configure"' > conftest.$ac_ext
6792 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6793 (eval $ac_compile) 2>&5
6794 ac_status=$?
6795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6796 test $ac_status = 0; }; then
6797 if test "$lt_cv_prog_gnu_ld" = yes; then
6798 case `/usr/bin/file conftest.$ac_objext` in
6799 *32-bit*)
6800 LD="${LD-ld} -melf32bsmip"
6802 *N32*)
6803 LD="${LD-ld} -melf32bmipn32"
6805 *64-bit*)
6806 LD="${LD-ld} -melf64bmip"
6808 esac
6809 else
6810 case `/usr/bin/file conftest.$ac_objext` in
6811 *32-bit*)
6812 LD="${LD-ld} -32"
6814 *N32*)
6815 LD="${LD-ld} -n32"
6817 *64-bit*)
6818 LD="${LD-ld} -64"
6820 esac
6823 rm -rf conftest*
6826 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6827 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6828 # Find out which ABI we are using.
6829 echo 'int i;' > conftest.$ac_ext
6830 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6831 (eval $ac_compile) 2>&5
6832 ac_status=$?
6833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6834 test $ac_status = 0; }; then
6835 case `/usr/bin/file conftest.o` in
6836 *32-bit*)
6837 case $host in
6838 x86_64-*kfreebsd*-gnu)
6839 LD="${LD-ld} -m elf_i386_fbsd"
6841 x86_64-*linux*)
6842 LD="${LD-ld} -m elf_i386"
6844 ppc64-*linux*|powerpc64-*linux*)
6845 LD="${LD-ld} -m elf32ppclinux"
6847 s390x-*linux*)
6848 LD="${LD-ld} -m elf_s390"
6850 sparc64-*linux*)
6851 LD="${LD-ld} -m elf32_sparc"
6853 esac
6855 *64-bit*)
6856 case $host in
6857 x86_64-*kfreebsd*-gnu)
6858 LD="${LD-ld} -m elf_x86_64_fbsd"
6860 x86_64-*linux*)
6861 LD="${LD-ld} -m elf_x86_64"
6863 ppc*-*linux*|powerpc*-*linux*)
6864 LD="${LD-ld} -m elf64ppc"
6866 s390*-*linux*|s390*-*tpf*)
6867 LD="${LD-ld} -m elf64_s390"
6869 sparc*-*linux*)
6870 LD="${LD-ld} -m elf64_sparc"
6872 esac
6874 esac
6876 rm -rf conftest*
6879 *-*-sco3.2v5*)
6880 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6881 SAVE_CFLAGS="$CFLAGS"
6882 CFLAGS="$CFLAGS -belf"
6883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6884 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6885 if ${lt_cv_cc_needs_belf+:} false; then :
6886 $as_echo_n "(cached) " >&6
6887 else
6888 ac_ext=c
6889 ac_cpp='$CPP $CPPFLAGS'
6890 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6891 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6892 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6895 /* end confdefs.h. */
6898 main ()
6902 return 0;
6904 _ACEOF
6905 if ac_fn_c_try_link "$LINENO"; then :
6906 lt_cv_cc_needs_belf=yes
6907 else
6908 lt_cv_cc_needs_belf=no
6910 rm -f core conftest.err conftest.$ac_objext \
6911 conftest$ac_exeext conftest.$ac_ext
6912 ac_ext=c
6913 ac_cpp='$CPP $CPPFLAGS'
6914 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6915 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6916 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6920 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6921 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6922 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6923 CFLAGS="$SAVE_CFLAGS"
6926 sparc*-*solaris*)
6927 # Find out which ABI we are using.
6928 echo 'int i;' > conftest.$ac_ext
6929 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6930 (eval $ac_compile) 2>&5
6931 ac_status=$?
6932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6933 test $ac_status = 0; }; then
6934 case `/usr/bin/file conftest.o` in
6935 *64-bit*)
6936 case $lt_cv_prog_gnu_ld in
6937 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6939 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6940 LD="${LD-ld} -64"
6943 esac
6945 esac
6947 rm -rf conftest*
6949 esac
6951 need_locks="$enable_libtool_lock"
6954 case $host_os in
6955 rhapsody* | darwin*)
6956 if test -n "$ac_tool_prefix"; then
6957 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6958 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6960 $as_echo_n "checking for $ac_word... " >&6; }
6961 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6962 $as_echo_n "(cached) " >&6
6963 else
6964 if test -n "$DSYMUTIL"; then
6965 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6966 else
6967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6968 for as_dir in $PATH
6970 IFS=$as_save_IFS
6971 test -z "$as_dir" && as_dir=.
6972 for ac_exec_ext in '' $ac_executable_extensions; do
6973 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6974 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6976 break 2
6978 done
6979 done
6980 IFS=$as_save_IFS
6984 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6985 if test -n "$DSYMUTIL"; then
6986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6987 $as_echo "$DSYMUTIL" >&6; }
6988 else
6989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6990 $as_echo "no" >&6; }
6995 if test -z "$ac_cv_prog_DSYMUTIL"; then
6996 ac_ct_DSYMUTIL=$DSYMUTIL
6997 # Extract the first word of "dsymutil", so it can be a program name with args.
6998 set dummy dsymutil; ac_word=$2
6999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7000 $as_echo_n "checking for $ac_word... " >&6; }
7001 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7002 $as_echo_n "(cached) " >&6
7003 else
7004 if test -n "$ac_ct_DSYMUTIL"; then
7005 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7006 else
7007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7008 for as_dir in $PATH
7010 IFS=$as_save_IFS
7011 test -z "$as_dir" && as_dir=.
7012 for ac_exec_ext in '' $ac_executable_extensions; do
7013 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7014 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7016 break 2
7018 done
7019 done
7020 IFS=$as_save_IFS
7024 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7025 if test -n "$ac_ct_DSYMUTIL"; then
7026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7027 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7028 else
7029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7030 $as_echo "no" >&6; }
7033 if test "x$ac_ct_DSYMUTIL" = x; then
7034 DSYMUTIL=":"
7035 else
7036 case $cross_compiling:$ac_tool_warned in
7037 yes:)
7038 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7039 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7040 ac_tool_warned=yes ;;
7041 esac
7042 DSYMUTIL=$ac_ct_DSYMUTIL
7044 else
7045 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7048 if test -n "$ac_tool_prefix"; then
7049 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7050 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7052 $as_echo_n "checking for $ac_word... " >&6; }
7053 if ${ac_cv_prog_NMEDIT+:} false; then :
7054 $as_echo_n "(cached) " >&6
7055 else
7056 if test -n "$NMEDIT"; then
7057 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7058 else
7059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7060 for as_dir in $PATH
7062 IFS=$as_save_IFS
7063 test -z "$as_dir" && as_dir=.
7064 for ac_exec_ext in '' $ac_executable_extensions; do
7065 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7066 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7068 break 2
7070 done
7071 done
7072 IFS=$as_save_IFS
7076 NMEDIT=$ac_cv_prog_NMEDIT
7077 if test -n "$NMEDIT"; then
7078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7079 $as_echo "$NMEDIT" >&6; }
7080 else
7081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7082 $as_echo "no" >&6; }
7087 if test -z "$ac_cv_prog_NMEDIT"; then
7088 ac_ct_NMEDIT=$NMEDIT
7089 # Extract the first word of "nmedit", so it can be a program name with args.
7090 set dummy nmedit; ac_word=$2
7091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7092 $as_echo_n "checking for $ac_word... " >&6; }
7093 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7094 $as_echo_n "(cached) " >&6
7095 else
7096 if test -n "$ac_ct_NMEDIT"; then
7097 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7098 else
7099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7100 for as_dir in $PATH
7102 IFS=$as_save_IFS
7103 test -z "$as_dir" && as_dir=.
7104 for ac_exec_ext in '' $ac_executable_extensions; do
7105 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7106 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7108 break 2
7110 done
7111 done
7112 IFS=$as_save_IFS
7116 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7117 if test -n "$ac_ct_NMEDIT"; then
7118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7119 $as_echo "$ac_ct_NMEDIT" >&6; }
7120 else
7121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7122 $as_echo "no" >&6; }
7125 if test "x$ac_ct_NMEDIT" = x; then
7126 NMEDIT=":"
7127 else
7128 case $cross_compiling:$ac_tool_warned in
7129 yes:)
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7131 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7132 ac_tool_warned=yes ;;
7133 esac
7134 NMEDIT=$ac_ct_NMEDIT
7136 else
7137 NMEDIT="$ac_cv_prog_NMEDIT"
7140 if test -n "$ac_tool_prefix"; then
7141 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7142 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7144 $as_echo_n "checking for $ac_word... " >&6; }
7145 if ${ac_cv_prog_LIPO+:} false; then :
7146 $as_echo_n "(cached) " >&6
7147 else
7148 if test -n "$LIPO"; then
7149 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7150 else
7151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7152 for as_dir in $PATH
7154 IFS=$as_save_IFS
7155 test -z "$as_dir" && as_dir=.
7156 for ac_exec_ext in '' $ac_executable_extensions; do
7157 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7158 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7160 break 2
7162 done
7163 done
7164 IFS=$as_save_IFS
7168 LIPO=$ac_cv_prog_LIPO
7169 if test -n "$LIPO"; then
7170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7171 $as_echo "$LIPO" >&6; }
7172 else
7173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7174 $as_echo "no" >&6; }
7179 if test -z "$ac_cv_prog_LIPO"; then
7180 ac_ct_LIPO=$LIPO
7181 # Extract the first word of "lipo", so it can be a program name with args.
7182 set dummy lipo; ac_word=$2
7183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7184 $as_echo_n "checking for $ac_word... " >&6; }
7185 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7186 $as_echo_n "(cached) " >&6
7187 else
7188 if test -n "$ac_ct_LIPO"; then
7189 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7190 else
7191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7192 for as_dir in $PATH
7194 IFS=$as_save_IFS
7195 test -z "$as_dir" && as_dir=.
7196 for ac_exec_ext in '' $ac_executable_extensions; do
7197 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7198 ac_cv_prog_ac_ct_LIPO="lipo"
7199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7200 break 2
7202 done
7203 done
7204 IFS=$as_save_IFS
7208 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7209 if test -n "$ac_ct_LIPO"; then
7210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7211 $as_echo "$ac_ct_LIPO" >&6; }
7212 else
7213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7214 $as_echo "no" >&6; }
7217 if test "x$ac_ct_LIPO" = x; then
7218 LIPO=":"
7219 else
7220 case $cross_compiling:$ac_tool_warned in
7221 yes:)
7222 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7223 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7224 ac_tool_warned=yes ;;
7225 esac
7226 LIPO=$ac_ct_LIPO
7228 else
7229 LIPO="$ac_cv_prog_LIPO"
7232 if test -n "$ac_tool_prefix"; then
7233 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7234 set dummy ${ac_tool_prefix}otool; ac_word=$2
7235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7236 $as_echo_n "checking for $ac_word... " >&6; }
7237 if ${ac_cv_prog_OTOOL+:} false; then :
7238 $as_echo_n "(cached) " >&6
7239 else
7240 if test -n "$OTOOL"; then
7241 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7242 else
7243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7244 for as_dir in $PATH
7246 IFS=$as_save_IFS
7247 test -z "$as_dir" && as_dir=.
7248 for ac_exec_ext in '' $ac_executable_extensions; do
7249 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7250 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7252 break 2
7254 done
7255 done
7256 IFS=$as_save_IFS
7260 OTOOL=$ac_cv_prog_OTOOL
7261 if test -n "$OTOOL"; then
7262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7263 $as_echo "$OTOOL" >&6; }
7264 else
7265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7266 $as_echo "no" >&6; }
7271 if test -z "$ac_cv_prog_OTOOL"; then
7272 ac_ct_OTOOL=$OTOOL
7273 # Extract the first word of "otool", so it can be a program name with args.
7274 set dummy otool; ac_word=$2
7275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7276 $as_echo_n "checking for $ac_word... " >&6; }
7277 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7278 $as_echo_n "(cached) " >&6
7279 else
7280 if test -n "$ac_ct_OTOOL"; then
7281 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7282 else
7283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7284 for as_dir in $PATH
7286 IFS=$as_save_IFS
7287 test -z "$as_dir" && as_dir=.
7288 for ac_exec_ext in '' $ac_executable_extensions; do
7289 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7290 ac_cv_prog_ac_ct_OTOOL="otool"
7291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7292 break 2
7294 done
7295 done
7296 IFS=$as_save_IFS
7300 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7301 if test -n "$ac_ct_OTOOL"; then
7302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7303 $as_echo "$ac_ct_OTOOL" >&6; }
7304 else
7305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7306 $as_echo "no" >&6; }
7309 if test "x$ac_ct_OTOOL" = x; then
7310 OTOOL=":"
7311 else
7312 case $cross_compiling:$ac_tool_warned in
7313 yes:)
7314 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7315 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7316 ac_tool_warned=yes ;;
7317 esac
7318 OTOOL=$ac_ct_OTOOL
7320 else
7321 OTOOL="$ac_cv_prog_OTOOL"
7324 if test -n "$ac_tool_prefix"; then
7325 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7326 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7328 $as_echo_n "checking for $ac_word... " >&6; }
7329 if ${ac_cv_prog_OTOOL64+:} false; then :
7330 $as_echo_n "(cached) " >&6
7331 else
7332 if test -n "$OTOOL64"; then
7333 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7334 else
7335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7336 for as_dir in $PATH
7338 IFS=$as_save_IFS
7339 test -z "$as_dir" && as_dir=.
7340 for ac_exec_ext in '' $ac_executable_extensions; do
7341 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7342 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7344 break 2
7346 done
7347 done
7348 IFS=$as_save_IFS
7352 OTOOL64=$ac_cv_prog_OTOOL64
7353 if test -n "$OTOOL64"; then
7354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7355 $as_echo "$OTOOL64" >&6; }
7356 else
7357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7358 $as_echo "no" >&6; }
7363 if test -z "$ac_cv_prog_OTOOL64"; then
7364 ac_ct_OTOOL64=$OTOOL64
7365 # Extract the first word of "otool64", so it can be a program name with args.
7366 set dummy otool64; ac_word=$2
7367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7368 $as_echo_n "checking for $ac_word... " >&6; }
7369 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7370 $as_echo_n "(cached) " >&6
7371 else
7372 if test -n "$ac_ct_OTOOL64"; then
7373 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7374 else
7375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7376 for as_dir in $PATH
7378 IFS=$as_save_IFS
7379 test -z "$as_dir" && as_dir=.
7380 for ac_exec_ext in '' $ac_executable_extensions; do
7381 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7382 ac_cv_prog_ac_ct_OTOOL64="otool64"
7383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7384 break 2
7386 done
7387 done
7388 IFS=$as_save_IFS
7392 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7393 if test -n "$ac_ct_OTOOL64"; then
7394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7395 $as_echo "$ac_ct_OTOOL64" >&6; }
7396 else
7397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7398 $as_echo "no" >&6; }
7401 if test "x$ac_ct_OTOOL64" = x; then
7402 OTOOL64=":"
7403 else
7404 case $cross_compiling:$ac_tool_warned in
7405 yes:)
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7407 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7408 ac_tool_warned=yes ;;
7409 esac
7410 OTOOL64=$ac_ct_OTOOL64
7412 else
7413 OTOOL64="$ac_cv_prog_OTOOL64"
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7443 $as_echo_n "checking for -single_module linker flag... " >&6; }
7444 if ${lt_cv_apple_cc_single_mod+:} false; then :
7445 $as_echo_n "(cached) " >&6
7446 else
7447 lt_cv_apple_cc_single_mod=no
7448 if test -z "${LT_MULTI_MODULE}"; then
7449 # By default we will add the -single_module flag. You can override
7450 # by either setting the environment variable LT_MULTI_MODULE
7451 # non-empty at configure time, or by adding -multi_module to the
7452 # link flags.
7453 rm -rf libconftest.dylib*
7454 echo "int foo(void){return 1;}" > conftest.c
7455 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7456 -dynamiclib -Wl,-single_module conftest.c" >&5
7457 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7458 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7459 _lt_result=$?
7460 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7461 lt_cv_apple_cc_single_mod=yes
7462 else
7463 cat conftest.err >&5
7465 rm -rf libconftest.dylib*
7466 rm -f conftest.*
7469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7470 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7472 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7473 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7474 $as_echo_n "(cached) " >&6
7475 else
7476 lt_cv_ld_exported_symbols_list=no
7477 save_LDFLAGS=$LDFLAGS
7478 echo "_main" > conftest.sym
7479 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7481 /* end confdefs.h. */
7484 main ()
7488 return 0;
7490 _ACEOF
7491 if ac_fn_c_try_link "$LINENO"; then :
7492 lt_cv_ld_exported_symbols_list=yes
7493 else
7494 lt_cv_ld_exported_symbols_list=no
7496 rm -f core conftest.err conftest.$ac_objext \
7497 conftest$ac_exeext conftest.$ac_ext
7498 LDFLAGS="$save_LDFLAGS"
7501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7502 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7503 case $host_os in
7504 rhapsody* | darwin1.[012])
7505 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7506 darwin1.*)
7507 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7508 darwin*) # darwin 5.x on
7509 # if running on 10.5 or later, the deployment target defaults
7510 # to the OS version, if on x86, and 10.4, the deployment
7511 # target defaults to 10.4. Don't you love it?
7512 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7513 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7514 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7515 10.[012]*)
7516 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7517 10.*)
7518 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7519 esac
7521 esac
7522 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7523 _lt_dar_single_mod='$single_module'
7525 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7526 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7527 else
7528 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7530 if test "$DSYMUTIL" != ":"; then
7531 _lt_dsymutil='~$DSYMUTIL $lib || :'
7532 else
7533 _lt_dsymutil=
7536 esac
7538 ac_ext=c
7539 ac_cpp='$CPP $CPPFLAGS'
7540 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7541 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7542 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7544 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7545 # On Suns, sometimes $CPP names a directory.
7546 if test -n "$CPP" && test -d "$CPP"; then
7547 CPP=
7549 if test -z "$CPP"; then
7550 if ${ac_cv_prog_CPP+:} false; then :
7551 $as_echo_n "(cached) " >&6
7552 else
7553 # Double quotes because CPP needs to be expanded
7554 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7556 ac_preproc_ok=false
7557 for ac_c_preproc_warn_flag in '' yes
7559 # Use a header file that comes with gcc, so configuring glibc
7560 # with a fresh cross-compiler works.
7561 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7562 # <limits.h> exists even on freestanding compilers.
7563 # On the NeXT, cc -E runs the code through the compiler's parser,
7564 # not just through cpp. "Syntax error" is here to catch this case.
7565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7566 /* end confdefs.h. */
7567 #ifdef __STDC__
7568 # include <limits.h>
7569 #else
7570 # include <assert.h>
7571 #endif
7572 Syntax error
7573 _ACEOF
7574 if ac_fn_c_try_cpp "$LINENO"; then :
7576 else
7577 # Broken: fails on valid input.
7578 continue
7580 rm -f conftest.err conftest.i conftest.$ac_ext
7582 # OK, works on sane cases. Now check whether nonexistent headers
7583 # can be detected and how.
7584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7585 /* end confdefs.h. */
7586 #include <ac_nonexistent.h>
7587 _ACEOF
7588 if ac_fn_c_try_cpp "$LINENO"; then :
7589 # Broken: success on invalid input.
7590 continue
7591 else
7592 # Passes both tests.
7593 ac_preproc_ok=:
7594 break
7596 rm -f conftest.err conftest.i conftest.$ac_ext
7598 done
7599 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7600 rm -f conftest.i conftest.err conftest.$ac_ext
7601 if $ac_preproc_ok; then :
7602 break
7605 done
7606 ac_cv_prog_CPP=$CPP
7609 CPP=$ac_cv_prog_CPP
7610 else
7611 ac_cv_prog_CPP=$CPP
7613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7614 $as_echo "$CPP" >&6; }
7615 ac_preproc_ok=false
7616 for ac_c_preproc_warn_flag in '' yes
7618 # Use a header file that comes with gcc, so configuring glibc
7619 # with a fresh cross-compiler works.
7620 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7621 # <limits.h> exists even on freestanding compilers.
7622 # On the NeXT, cc -E runs the code through the compiler's parser,
7623 # not just through cpp. "Syntax error" is here to catch this case.
7624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7625 /* end confdefs.h. */
7626 #ifdef __STDC__
7627 # include <limits.h>
7628 #else
7629 # include <assert.h>
7630 #endif
7631 Syntax error
7632 _ACEOF
7633 if ac_fn_c_try_cpp "$LINENO"; then :
7635 else
7636 # Broken: fails on valid input.
7637 continue
7639 rm -f conftest.err conftest.i conftest.$ac_ext
7641 # OK, works on sane cases. Now check whether nonexistent headers
7642 # can be detected and how.
7643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7644 /* end confdefs.h. */
7645 #include <ac_nonexistent.h>
7646 _ACEOF
7647 if ac_fn_c_try_cpp "$LINENO"; then :
7648 # Broken: success on invalid input.
7649 continue
7650 else
7651 # Passes both tests.
7652 ac_preproc_ok=:
7653 break
7655 rm -f conftest.err conftest.i conftest.$ac_ext
7657 done
7658 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7659 rm -f conftest.i conftest.err conftest.$ac_ext
7660 if $ac_preproc_ok; then :
7662 else
7663 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7664 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7665 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7666 See \`config.log' for more details" "$LINENO" 5; }
7669 ac_ext=c
7670 ac_cpp='$CPP $CPPFLAGS'
7671 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7672 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7673 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7677 $as_echo_n "checking for ANSI C header files... " >&6; }
7678 if ${ac_cv_header_stdc+:} false; then :
7679 $as_echo_n "(cached) " >&6
7680 else
7681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7682 /* end confdefs.h. */
7683 #include <stdlib.h>
7684 #include <stdarg.h>
7685 #include <string.h>
7686 #include <float.h>
7689 main ()
7693 return 0;
7695 _ACEOF
7696 if ac_fn_c_try_compile "$LINENO"; then :
7697 ac_cv_header_stdc=yes
7698 else
7699 ac_cv_header_stdc=no
7701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7703 if test $ac_cv_header_stdc = yes; then
7704 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7706 /* end confdefs.h. */
7707 #include <string.h>
7709 _ACEOF
7710 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7711 $EGREP "memchr" >/dev/null 2>&1; then :
7713 else
7714 ac_cv_header_stdc=no
7716 rm -f conftest*
7720 if test $ac_cv_header_stdc = yes; then
7721 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7723 /* end confdefs.h. */
7724 #include <stdlib.h>
7726 _ACEOF
7727 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7728 $EGREP "free" >/dev/null 2>&1; then :
7730 else
7731 ac_cv_header_stdc=no
7733 rm -f conftest*
7737 if test $ac_cv_header_stdc = yes; then
7738 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7739 if test "$cross_compiling" = yes; then :
7741 else
7742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7743 /* end confdefs.h. */
7744 #include <ctype.h>
7745 #include <stdlib.h>
7746 #if ((' ' & 0x0FF) == 0x020)
7747 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7748 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7749 #else
7750 # define ISLOWER(c) \
7751 (('a' <= (c) && (c) <= 'i') \
7752 || ('j' <= (c) && (c) <= 'r') \
7753 || ('s' <= (c) && (c) <= 'z'))
7754 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7755 #endif
7757 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7759 main ()
7761 int i;
7762 for (i = 0; i < 256; i++)
7763 if (XOR (islower (i), ISLOWER (i))
7764 || toupper (i) != TOUPPER (i))
7765 return 2;
7766 return 0;
7768 _ACEOF
7769 if ac_fn_c_try_run "$LINENO"; then :
7771 else
7772 ac_cv_header_stdc=no
7774 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7775 conftest.$ac_objext conftest.beam conftest.$ac_ext
7780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7781 $as_echo "$ac_cv_header_stdc" >&6; }
7782 if test $ac_cv_header_stdc = yes; then
7784 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7788 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7789 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7790 inttypes.h stdint.h unistd.h
7791 do :
7792 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7793 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7795 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7796 cat >>confdefs.h <<_ACEOF
7797 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7798 _ACEOF
7802 done
7805 for ac_header in dlfcn.h
7806 do :
7807 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7809 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7810 cat >>confdefs.h <<_ACEOF
7811 #define HAVE_DLFCN_H 1
7812 _ACEOF
7816 done
7820 # Set options
7824 enable_dlopen=no
7827 enable_win32_dll=no
7830 # Check whether --enable-shared was given.
7831 if test "${enable_shared+set}" = set; then :
7832 enableval=$enable_shared; p=${PACKAGE-default}
7833 case $enableval in
7834 yes) enable_shared=yes ;;
7835 no) enable_shared=no ;;
7837 enable_shared=no
7838 # Look at the argument we got. We use all the common list separators.
7839 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7840 for pkg in $enableval; do
7841 IFS="$lt_save_ifs"
7842 if test "X$pkg" = "X$p"; then
7843 enable_shared=yes
7845 done
7846 IFS="$lt_save_ifs"
7848 esac
7849 else
7850 enable_shared=yes
7861 # Check whether --enable-static was given.
7862 if test "${enable_static+set}" = set; then :
7863 enableval=$enable_static; p=${PACKAGE-default}
7864 case $enableval in
7865 yes) enable_static=yes ;;
7866 no) enable_static=no ;;
7868 enable_static=no
7869 # Look at the argument we got. We use all the common list separators.
7870 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7871 for pkg in $enableval; do
7872 IFS="$lt_save_ifs"
7873 if test "X$pkg" = "X$p"; then
7874 enable_static=yes
7876 done
7877 IFS="$lt_save_ifs"
7879 esac
7880 else
7881 enable_static=yes
7893 # Check whether --with-pic was given.
7894 if test "${with_pic+set}" = set; then :
7895 withval=$with_pic; pic_mode="$withval"
7896 else
7897 pic_mode=default
7901 test -z "$pic_mode" && pic_mode=default
7909 # Check whether --enable-fast-install was given.
7910 if test "${enable_fast_install+set}" = set; then :
7911 enableval=$enable_fast_install; p=${PACKAGE-default}
7912 case $enableval in
7913 yes) enable_fast_install=yes ;;
7914 no) enable_fast_install=no ;;
7916 enable_fast_install=no
7917 # Look at the argument we got. We use all the common list separators.
7918 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7919 for pkg in $enableval; do
7920 IFS="$lt_save_ifs"
7921 if test "X$pkg" = "X$p"; then
7922 enable_fast_install=yes
7924 done
7925 IFS="$lt_save_ifs"
7927 esac
7928 else
7929 enable_fast_install=yes
7942 # This can be used to rebuild libtool when needed
7943 LIBTOOL_DEPS="$ltmain"
7945 # Always use our own libtool.
7946 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7972 test -z "$LN_S" && LN_S="ln -s"
7987 if test -n "${ZSH_VERSION+set}" ; then
7988 setopt NO_GLOB_SUBST
7991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7992 $as_echo_n "checking for objdir... " >&6; }
7993 if ${lt_cv_objdir+:} false; then :
7994 $as_echo_n "(cached) " >&6
7995 else
7996 rm -f .libs 2>/dev/null
7997 mkdir .libs 2>/dev/null
7998 if test -d .libs; then
7999 lt_cv_objdir=.libs
8000 else
8001 # MS-DOS does not allow filenames that begin with a dot.
8002 lt_cv_objdir=_libs
8004 rmdir .libs 2>/dev/null
8006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8007 $as_echo "$lt_cv_objdir" >&6; }
8008 objdir=$lt_cv_objdir
8014 cat >>confdefs.h <<_ACEOF
8015 #define LT_OBJDIR "$lt_cv_objdir/"
8016 _ACEOF
8034 case $host_os in
8035 aix3*)
8036 # AIX sometimes has problems with the GCC collect2 program. For some
8037 # reason, if we set the COLLECT_NAMES environment variable, the problems
8038 # vanish in a puff of smoke.
8039 if test "X${COLLECT_NAMES+set}" != Xset; then
8040 COLLECT_NAMES=
8041 export COLLECT_NAMES
8044 esac
8046 # Sed substitution that helps us do robust quoting. It backslashifies
8047 # metacharacters that are still active within double-quoted strings.
8048 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8050 # Same as above, but do not quote variable references.
8051 double_quote_subst='s/\(["`\\]\)/\\\1/g'
8053 # Sed substitution to delay expansion of an escaped shell variable in a
8054 # double_quote_subst'ed string.
8055 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8057 # Sed substitution to delay expansion of an escaped single quote.
8058 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8060 # Sed substitution to avoid accidental globbing in evaled expressions
8061 no_glob_subst='s/\*/\\\*/g'
8063 # Global variables:
8064 ofile=libtool
8065 can_build_shared=yes
8067 # All known linkers require a `.a' archive for static linking (except MSVC,
8068 # which needs '.lib').
8069 libext=a
8071 with_gnu_ld="$lt_cv_prog_gnu_ld"
8073 old_CC="$CC"
8074 old_CFLAGS="$CFLAGS"
8076 # Set sane defaults for various variables
8077 test -z "$CC" && CC=cc
8078 test -z "$LTCC" && LTCC=$CC
8079 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8080 test -z "$LD" && LD=ld
8081 test -z "$ac_objext" && ac_objext=o
8083 for cc_temp in $compiler""; do
8084 case $cc_temp in
8085 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8086 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8087 \-*) ;;
8088 *) break;;
8089 esac
8090 done
8091 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8094 # Only perform the check for file, if the check method requires it
8095 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8096 case $deplibs_check_method in
8097 file_magic*)
8098 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8100 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8101 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8102 $as_echo_n "(cached) " >&6
8103 else
8104 case $MAGIC_CMD in
8105 [\\/*] | ?:[\\/]*)
8106 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8109 lt_save_MAGIC_CMD="$MAGIC_CMD"
8110 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8111 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8112 for ac_dir in $ac_dummy; do
8113 IFS="$lt_save_ifs"
8114 test -z "$ac_dir" && ac_dir=.
8115 if test -f $ac_dir/${ac_tool_prefix}file; then
8116 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8117 if test -n "$file_magic_test_file"; then
8118 case $deplibs_check_method in
8119 "file_magic "*)
8120 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8121 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8122 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8123 $EGREP "$file_magic_regex" > /dev/null; then
8125 else
8126 cat <<_LT_EOF 1>&2
8128 *** Warning: the command libtool uses to detect shared libraries,
8129 *** $file_magic_cmd, produces output that libtool cannot recognize.
8130 *** The result is that libtool may fail to recognize shared libraries
8131 *** as such. This will affect the creation of libtool libraries that
8132 *** depend on shared libraries, but programs linked with such libtool
8133 *** libraries will work regardless of this problem. Nevertheless, you
8134 *** may want to report the problem to your system manager and/or to
8135 *** bug-libtool@gnu.org
8137 _LT_EOF
8138 fi ;;
8139 esac
8141 break
8143 done
8144 IFS="$lt_save_ifs"
8145 MAGIC_CMD="$lt_save_MAGIC_CMD"
8147 esac
8150 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8151 if test -n "$MAGIC_CMD"; then
8152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8153 $as_echo "$MAGIC_CMD" >&6; }
8154 else
8155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8156 $as_echo "no" >&6; }
8163 if test -z "$lt_cv_path_MAGIC_CMD"; then
8164 if test -n "$ac_tool_prefix"; then
8165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8166 $as_echo_n "checking for file... " >&6; }
8167 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8168 $as_echo_n "(cached) " >&6
8169 else
8170 case $MAGIC_CMD in
8171 [\\/*] | ?:[\\/]*)
8172 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8175 lt_save_MAGIC_CMD="$MAGIC_CMD"
8176 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8177 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8178 for ac_dir in $ac_dummy; do
8179 IFS="$lt_save_ifs"
8180 test -z "$ac_dir" && ac_dir=.
8181 if test -f $ac_dir/file; then
8182 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8183 if test -n "$file_magic_test_file"; then
8184 case $deplibs_check_method in
8185 "file_magic "*)
8186 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8187 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8188 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8189 $EGREP "$file_magic_regex" > /dev/null; then
8191 else
8192 cat <<_LT_EOF 1>&2
8194 *** Warning: the command libtool uses to detect shared libraries,
8195 *** $file_magic_cmd, produces output that libtool cannot recognize.
8196 *** The result is that libtool may fail to recognize shared libraries
8197 *** as such. This will affect the creation of libtool libraries that
8198 *** depend on shared libraries, but programs linked with such libtool
8199 *** libraries will work regardless of this problem. Nevertheless, you
8200 *** may want to report the problem to your system manager and/or to
8201 *** bug-libtool@gnu.org
8203 _LT_EOF
8204 fi ;;
8205 esac
8207 break
8209 done
8210 IFS="$lt_save_ifs"
8211 MAGIC_CMD="$lt_save_MAGIC_CMD"
8213 esac
8216 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8217 if test -n "$MAGIC_CMD"; then
8218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8219 $as_echo "$MAGIC_CMD" >&6; }
8220 else
8221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8222 $as_echo "no" >&6; }
8226 else
8227 MAGIC_CMD=:
8233 esac
8235 # Use C for the default configuration in the libtool script
8237 lt_save_CC="$CC"
8238 ac_ext=c
8239 ac_cpp='$CPP $CPPFLAGS'
8240 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8241 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8242 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8245 # Source file extension for C test sources.
8246 ac_ext=c
8248 # Object file extension for compiled C test sources.
8249 objext=o
8250 objext=$objext
8252 # Code to be used in simple compile tests
8253 lt_simple_compile_test_code="int some_variable = 0;"
8255 # Code to be used in simple link tests
8256 lt_simple_link_test_code='int main(){return(0);}'
8264 # If no C compiler was specified, use CC.
8265 LTCC=${LTCC-"$CC"}
8267 # If no C compiler flags were specified, use CFLAGS.
8268 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8270 # Allow CC to be a program name with arguments.
8271 compiler=$CC
8273 # Save the default compiler, since it gets overwritten when the other
8274 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8275 compiler_DEFAULT=$CC
8277 # save warnings/boilerplate of simple test code
8278 ac_outfile=conftest.$ac_objext
8279 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8280 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8281 _lt_compiler_boilerplate=`cat conftest.err`
8282 $RM conftest*
8284 ac_outfile=conftest.$ac_objext
8285 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8286 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8287 _lt_linker_boilerplate=`cat conftest.err`
8288 $RM -r conftest*
8291 ## CAVEAT EMPTOR:
8292 ## There is no encapsulation within the following macros, do not change
8293 ## the running order or otherwise move them around unless you know exactly
8294 ## what you are doing...
8295 if test -n "$compiler"; then
8297 lt_prog_compiler_no_builtin_flag=
8299 if test "$GCC" = yes; then
8300 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8303 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8304 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8305 $as_echo_n "(cached) " >&6
8306 else
8307 lt_cv_prog_compiler_rtti_exceptions=no
8308 ac_outfile=conftest.$ac_objext
8309 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8310 lt_compiler_flag="-fno-rtti -fno-exceptions"
8311 # Insert the option either (1) after the last *FLAGS variable, or
8312 # (2) before a word containing "conftest.", or (3) at the end.
8313 # Note that $ac_compile itself does not contain backslashes and begins
8314 # with a dollar sign (not a hyphen), so the echo should work correctly.
8315 # The option is referenced via a variable to avoid confusing sed.
8316 lt_compile=`echo "$ac_compile" | $SED \
8317 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8318 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8319 -e 's:$: $lt_compiler_flag:'`
8320 (eval echo "\"\$as_me:8320: $lt_compile\"" >&5)
8321 (eval "$lt_compile" 2>conftest.err)
8322 ac_status=$?
8323 cat conftest.err >&5
8324 echo "$as_me:8324: \$? = $ac_status" >&5
8325 if (exit $ac_status) && test -s "$ac_outfile"; then
8326 # The compiler can only warn and ignore the option if not recognized
8327 # So say no if there are warnings other than the usual output.
8328 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8329 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8330 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8331 lt_cv_prog_compiler_rtti_exceptions=yes
8334 $RM conftest*
8337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8338 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8340 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8341 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8342 else
8353 lt_prog_compiler_wl=
8354 lt_prog_compiler_pic=
8355 lt_prog_compiler_static=
8357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8358 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8360 if test "$GCC" = yes; then
8361 lt_prog_compiler_wl='-Wl,'
8362 lt_prog_compiler_static='-static'
8364 case $host_os in
8365 aix*)
8366 # All AIX code is PIC.
8367 if test "$host_cpu" = ia64; then
8368 # AIX 5 now supports IA64 processor
8369 lt_prog_compiler_static='-Bstatic'
8373 amigaos*)
8374 case $host_cpu in
8375 powerpc)
8376 # see comment about AmigaOS4 .so support
8377 lt_prog_compiler_pic='-fPIC'
8379 m68k)
8380 # FIXME: we need at least 68020 code to build shared libraries, but
8381 # adding the `-m68020' flag to GCC prevents building anything better,
8382 # like `-m68040'.
8383 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8385 esac
8388 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8389 # PIC is the default for these OSes.
8392 mingw* | cygwin* | pw32* | os2* | cegcc*)
8393 # This hack is so that the source file can tell whether it is being
8394 # built for inclusion in a dll (and should export symbols for example).
8395 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8396 # (--disable-auto-import) libraries
8397 lt_prog_compiler_pic='-DDLL_EXPORT'
8400 darwin* | rhapsody*)
8401 # PIC is the default on this platform
8402 # Common symbols not allowed in MH_DYLIB files
8403 lt_prog_compiler_pic='-fno-common'
8406 hpux*)
8407 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8408 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8409 # sets the default TLS model and affects inlining.
8410 case $host_cpu in
8411 hppa*64*)
8412 # +Z the default
8415 lt_prog_compiler_pic='-fPIC'
8417 esac
8420 interix[3-9]*)
8421 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8422 # Instead, we relocate shared libraries at runtime.
8425 msdosdjgpp*)
8426 # Just because we use GCC doesn't mean we suddenly get shared libraries
8427 # on systems that don't support them.
8428 lt_prog_compiler_can_build_shared=no
8429 enable_shared=no
8432 *nto* | *qnx*)
8433 # QNX uses GNU C++, but need to define -shared option too, otherwise
8434 # it will coredump.
8435 lt_prog_compiler_pic='-fPIC -shared'
8438 sysv4*MP*)
8439 if test -d /usr/nec; then
8440 lt_prog_compiler_pic=-Kconform_pic
8445 lt_prog_compiler_pic='-fPIC'
8447 esac
8448 else
8449 # PORTME Check for flag to pass linker flags through the system compiler.
8450 case $host_os in
8451 aix*)
8452 lt_prog_compiler_wl='-Wl,'
8453 if test "$host_cpu" = ia64; then
8454 # AIX 5 now supports IA64 processor
8455 lt_prog_compiler_static='-Bstatic'
8456 else
8457 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8461 mingw* | cygwin* | pw32* | os2* | cegcc*)
8462 # This hack is so that the source file can tell whether it is being
8463 # built for inclusion in a dll (and should export symbols for example).
8464 lt_prog_compiler_pic='-DDLL_EXPORT'
8467 hpux9* | hpux10* | hpux11*)
8468 lt_prog_compiler_wl='-Wl,'
8469 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8470 # not for PA HP-UX.
8471 case $host_cpu in
8472 hppa*64*|ia64*)
8473 # +Z the default
8476 lt_prog_compiler_pic='+Z'
8478 esac
8479 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8480 lt_prog_compiler_static='${wl}-a ${wl}archive'
8483 irix5* | irix6* | nonstopux*)
8484 lt_prog_compiler_wl='-Wl,'
8485 # PIC (with -KPIC) is the default.
8486 lt_prog_compiler_static='-non_shared'
8489 linux* | k*bsd*-gnu)
8490 case $cc_basename in
8491 # old Intel for x86_64 which still supported -KPIC.
8492 ecc*)
8493 lt_prog_compiler_wl='-Wl,'
8494 lt_prog_compiler_pic='-KPIC'
8495 lt_prog_compiler_static='-static'
8497 # icc used to be incompatible with GCC.
8498 # ICC 10 doesn't accept -KPIC any more.
8499 icc* | ifort*)
8500 lt_prog_compiler_wl='-Wl,'
8501 lt_prog_compiler_pic='-fPIC'
8502 lt_prog_compiler_static='-static'
8504 # Lahey Fortran 8.1.
8505 lf95*)
8506 lt_prog_compiler_wl='-Wl,'
8507 lt_prog_compiler_pic='--shared'
8508 lt_prog_compiler_static='--static'
8510 pgcc* | pgf77* | pgf90* | pgf95*)
8511 # Portland Group compilers (*not* the Pentium gcc compiler,
8512 # which looks to be a dead project)
8513 lt_prog_compiler_wl='-Wl,'
8514 lt_prog_compiler_pic='-fpic'
8515 lt_prog_compiler_static='-Bstatic'
8517 ccc*)
8518 lt_prog_compiler_wl='-Wl,'
8519 # All Alpha code is PIC.
8520 lt_prog_compiler_static='-non_shared'
8522 xl*)
8523 # IBM XL C 8.0/Fortran 10.1 on PPC
8524 lt_prog_compiler_wl='-Wl,'
8525 lt_prog_compiler_pic='-qpic'
8526 lt_prog_compiler_static='-qstaticlink'
8529 case `$CC -V 2>&1 | sed 5q` in
8530 *Sun\ C*)
8531 # Sun C 5.9
8532 lt_prog_compiler_pic='-KPIC'
8533 lt_prog_compiler_static='-Bstatic'
8534 lt_prog_compiler_wl='-Wl,'
8536 *Sun\ F*)
8537 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8538 lt_prog_compiler_pic='-KPIC'
8539 lt_prog_compiler_static='-Bstatic'
8540 lt_prog_compiler_wl=''
8542 esac
8544 esac
8547 newsos6)
8548 lt_prog_compiler_pic='-KPIC'
8549 lt_prog_compiler_static='-Bstatic'
8552 *nto* | *qnx*)
8553 # QNX uses GNU C++, but need to define -shared option too, otherwise
8554 # it will coredump.
8555 lt_prog_compiler_pic='-fPIC -shared'
8558 osf3* | osf4* | osf5*)
8559 lt_prog_compiler_wl='-Wl,'
8560 # All OSF/1 code is PIC.
8561 lt_prog_compiler_static='-non_shared'
8564 rdos*)
8565 lt_prog_compiler_static='-non_shared'
8568 solaris*)
8569 lt_prog_compiler_pic='-KPIC'
8570 lt_prog_compiler_static='-Bstatic'
8571 case $cc_basename in
8572 f77* | f90* | f95*)
8573 lt_prog_compiler_wl='-Qoption ld ';;
8575 lt_prog_compiler_wl='-Wl,';;
8576 esac
8579 sunos4*)
8580 lt_prog_compiler_wl='-Qoption ld '
8581 lt_prog_compiler_pic='-PIC'
8582 lt_prog_compiler_static='-Bstatic'
8585 sysv4 | sysv4.2uw2* | sysv4.3*)
8586 lt_prog_compiler_wl='-Wl,'
8587 lt_prog_compiler_pic='-KPIC'
8588 lt_prog_compiler_static='-Bstatic'
8591 sysv4*MP*)
8592 if test -d /usr/nec ;then
8593 lt_prog_compiler_pic='-Kconform_pic'
8594 lt_prog_compiler_static='-Bstatic'
8598 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8599 lt_prog_compiler_wl='-Wl,'
8600 lt_prog_compiler_pic='-KPIC'
8601 lt_prog_compiler_static='-Bstatic'
8604 unicos*)
8605 lt_prog_compiler_wl='-Wl,'
8606 lt_prog_compiler_can_build_shared=no
8609 uts4*)
8610 lt_prog_compiler_pic='-pic'
8611 lt_prog_compiler_static='-Bstatic'
8615 lt_prog_compiler_can_build_shared=no
8617 esac
8620 case $host_os in
8621 # For platforms which do not support PIC, -DPIC is meaningless:
8622 *djgpp*)
8623 lt_prog_compiler_pic=
8626 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8628 esac
8629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8630 $as_echo "$lt_prog_compiler_pic" >&6; }
8638 # Check to make sure the PIC flag actually works.
8640 if test -n "$lt_prog_compiler_pic"; then
8641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8642 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8643 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8644 $as_echo_n "(cached) " >&6
8645 else
8646 lt_cv_prog_compiler_pic_works=no
8647 ac_outfile=conftest.$ac_objext
8648 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8649 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8650 # Insert the option either (1) after the last *FLAGS variable, or
8651 # (2) before a word containing "conftest.", or (3) at the end.
8652 # Note that $ac_compile itself does not contain backslashes and begins
8653 # with a dollar sign (not a hyphen), so the echo should work correctly.
8654 # The option is referenced via a variable to avoid confusing sed.
8655 lt_compile=`echo "$ac_compile" | $SED \
8656 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8657 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8658 -e 's:$: $lt_compiler_flag:'`
8659 (eval echo "\"\$as_me:8659: $lt_compile\"" >&5)
8660 (eval "$lt_compile" 2>conftest.err)
8661 ac_status=$?
8662 cat conftest.err >&5
8663 echo "$as_me:8663: \$? = $ac_status" >&5
8664 if (exit $ac_status) && test -s "$ac_outfile"; then
8665 # The compiler can only warn and ignore the option if not recognized
8666 # So say no if there are warnings other than the usual output.
8667 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8668 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8669 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8670 lt_cv_prog_compiler_pic_works=yes
8673 $RM conftest*
8676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8677 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8679 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8680 case $lt_prog_compiler_pic in
8681 "" | " "*) ;;
8682 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8683 esac
8684 else
8685 lt_prog_compiler_pic=
8686 lt_prog_compiler_can_build_shared=no
8697 # Check to make sure the static flag actually works.
8699 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8701 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8702 if ${lt_cv_prog_compiler_static_works+:} false; then :
8703 $as_echo_n "(cached) " >&6
8704 else
8705 lt_cv_prog_compiler_static_works=no
8706 save_LDFLAGS="$LDFLAGS"
8707 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8708 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8709 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8710 # The linker can only warn and ignore the option if not recognized
8711 # So say no if there are warnings
8712 if test -s conftest.err; then
8713 # Append any errors to the config.log.
8714 cat conftest.err 1>&5
8715 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8716 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8717 if diff conftest.exp conftest.er2 >/dev/null; then
8718 lt_cv_prog_compiler_static_works=yes
8720 else
8721 lt_cv_prog_compiler_static_works=yes
8724 $RM -r conftest*
8725 LDFLAGS="$save_LDFLAGS"
8728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8729 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8731 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8733 else
8734 lt_prog_compiler_static=
8743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8744 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8745 if ${lt_cv_prog_compiler_c_o+:} false; then :
8746 $as_echo_n "(cached) " >&6
8747 else
8748 lt_cv_prog_compiler_c_o=no
8749 $RM -r conftest 2>/dev/null
8750 mkdir conftest
8751 cd conftest
8752 mkdir out
8753 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8755 lt_compiler_flag="-o out/conftest2.$ac_objext"
8756 # Insert the option either (1) after the last *FLAGS variable, or
8757 # (2) before a word containing "conftest.", or (3) at the end.
8758 # Note that $ac_compile itself does not contain backslashes and begins
8759 # with a dollar sign (not a hyphen), so the echo should work correctly.
8760 lt_compile=`echo "$ac_compile" | $SED \
8761 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8762 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8763 -e 's:$: $lt_compiler_flag:'`
8764 (eval echo "\"\$as_me:8764: $lt_compile\"" >&5)
8765 (eval "$lt_compile" 2>out/conftest.err)
8766 ac_status=$?
8767 cat out/conftest.err >&5
8768 echo "$as_me:8768: \$? = $ac_status" >&5
8769 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8770 then
8771 # The compiler can only warn and ignore the option if not recognized
8772 # So say no if there are warnings
8773 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8774 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8775 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8776 lt_cv_prog_compiler_c_o=yes
8779 chmod u+w . 2>&5
8780 $RM conftest*
8781 # SGI C++ compiler will create directory out/ii_files/ for
8782 # template instantiation
8783 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8784 $RM out/* && rmdir out
8785 cd ..
8786 $RM -r conftest
8787 $RM conftest*
8790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8791 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8799 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8800 if ${lt_cv_prog_compiler_c_o+:} false; then :
8801 $as_echo_n "(cached) " >&6
8802 else
8803 lt_cv_prog_compiler_c_o=no
8804 $RM -r conftest 2>/dev/null
8805 mkdir conftest
8806 cd conftest
8807 mkdir out
8808 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8810 lt_compiler_flag="-o out/conftest2.$ac_objext"
8811 # Insert the option either (1) after the last *FLAGS variable, or
8812 # (2) before a word containing "conftest.", or (3) at the end.
8813 # Note that $ac_compile itself does not contain backslashes and begins
8814 # with a dollar sign (not a hyphen), so the echo should work correctly.
8815 lt_compile=`echo "$ac_compile" | $SED \
8816 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8817 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8818 -e 's:$: $lt_compiler_flag:'`
8819 (eval echo "\"\$as_me:8819: $lt_compile\"" >&5)
8820 (eval "$lt_compile" 2>out/conftest.err)
8821 ac_status=$?
8822 cat out/conftest.err >&5
8823 echo "$as_me:8823: \$? = $ac_status" >&5
8824 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8825 then
8826 # The compiler can only warn and ignore the option if not recognized
8827 # So say no if there are warnings
8828 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8829 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8830 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8831 lt_cv_prog_compiler_c_o=yes
8834 chmod u+w . 2>&5
8835 $RM conftest*
8836 # SGI C++ compiler will create directory out/ii_files/ for
8837 # template instantiation
8838 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8839 $RM out/* && rmdir out
8840 cd ..
8841 $RM -r conftest
8842 $RM conftest*
8845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8846 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8851 hard_links="nottested"
8852 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8853 # do not overwrite the value of need_locks provided by the user
8854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8855 $as_echo_n "checking if we can lock with hard links... " >&6; }
8856 hard_links=yes
8857 $RM conftest*
8858 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8859 touch conftest.a
8860 ln conftest.a conftest.b 2>&5 || hard_links=no
8861 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8863 $as_echo "$hard_links" >&6; }
8864 if test "$hard_links" = no; then
8865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8866 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8867 need_locks=warn
8869 else
8870 need_locks=no
8878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8879 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8881 runpath_var=
8882 allow_undefined_flag=
8883 always_export_symbols=no
8884 archive_cmds=
8885 archive_expsym_cmds=
8886 compiler_needs_object=no
8887 enable_shared_with_static_runtimes=no
8888 export_dynamic_flag_spec=
8889 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8890 hardcode_automatic=no
8891 hardcode_direct=no
8892 hardcode_direct_absolute=no
8893 hardcode_libdir_flag_spec=
8894 hardcode_libdir_flag_spec_ld=
8895 hardcode_libdir_separator=
8896 hardcode_minus_L=no
8897 hardcode_shlibpath_var=unsupported
8898 inherit_rpath=no
8899 link_all_deplibs=unknown
8900 module_cmds=
8901 module_expsym_cmds=
8902 old_archive_from_new_cmds=
8903 old_archive_from_expsyms_cmds=
8904 thread_safe_flag_spec=
8905 whole_archive_flag_spec=
8906 # include_expsyms should be a list of space-separated symbols to be *always*
8907 # included in the symbol list
8908 include_expsyms=
8909 # exclude_expsyms can be an extended regexp of symbols to exclude
8910 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8911 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8912 # as well as any symbol that contains `d'.
8913 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8914 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8915 # platforms (ab)use it in PIC code, but their linkers get confused if
8916 # the symbol is explicitly referenced. Since portable code cannot
8917 # rely on this symbol name, it's probably fine to never include it in
8918 # preloaded symbol tables.
8919 # Exclude shared library initialization/finalization symbols.
8920 extract_expsyms_cmds=
8922 case $host_os in
8923 cygwin* | mingw* | pw32* | cegcc*)
8924 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8925 # When not using gcc, we currently assume that we are using
8926 # Microsoft Visual C++.
8927 if test "$GCC" != yes; then
8928 with_gnu_ld=no
8931 interix*)
8932 # we just hope/assume this is gcc and not c89 (= MSVC++)
8933 with_gnu_ld=yes
8935 openbsd*)
8936 with_gnu_ld=no
8938 esac
8940 ld_shlibs=yes
8941 if test "$with_gnu_ld" = yes; then
8942 # If archive_cmds runs LD, not CC, wlarc should be empty
8943 wlarc='${wl}'
8945 # Set some defaults for GNU ld with shared library support. These
8946 # are reset later if shared libraries are not supported. Putting them
8947 # here allows them to be overridden if necessary.
8948 runpath_var=LD_RUN_PATH
8949 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8950 export_dynamic_flag_spec='${wl}--export-dynamic'
8951 # ancient GNU ld didn't support --whole-archive et. al.
8952 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8953 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8954 else
8955 whole_archive_flag_spec=
8957 supports_anon_versioning=no
8958 case `$LD -v 2>&1` in
8959 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8960 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8961 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8962 *\ 2.11.*) ;; # other 2.11 versions
8963 *) supports_anon_versioning=yes ;;
8964 esac
8966 # See if GNU ld supports shared libraries.
8967 case $host_os in
8968 aix[3-9]*)
8969 # On AIX/PPC, the GNU linker is very broken
8970 if test "$host_cpu" != ia64; then
8971 ld_shlibs=no
8972 cat <<_LT_EOF 1>&2
8974 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8975 *** to be unable to reliably create shared libraries on AIX.
8976 *** Therefore, libtool is disabling shared libraries support. If you
8977 *** really care for shared libraries, you may want to modify your PATH
8978 *** so that a non-GNU linker is found, and then restart.
8980 _LT_EOF
8984 amigaos*)
8985 case $host_cpu in
8986 powerpc)
8987 # see comment about AmigaOS4 .so support
8988 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8989 archive_expsym_cmds=''
8991 m68k)
8992 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)'
8993 hardcode_libdir_flag_spec='-L$libdir'
8994 hardcode_minus_L=yes
8996 esac
8999 beos*)
9000 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9001 allow_undefined_flag=unsupported
9002 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9003 # support --undefined. This deserves some investigation. FIXME
9004 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9005 else
9006 ld_shlibs=no
9010 cygwin* | mingw* | pw32* | cegcc*)
9011 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9012 # as there is no search path for DLLs.
9013 hardcode_libdir_flag_spec='-L$libdir'
9014 allow_undefined_flag=unsupported
9015 always_export_symbols=no
9016 enable_shared_with_static_runtimes=yes
9017 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9019 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9020 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9021 # If the export-symbols file already is a .def file (1st line
9022 # is EXPORTS), use it as is; otherwise, prepend...
9023 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9024 cp $export_symbols $output_objdir/$soname.def;
9025 else
9026 echo EXPORTS > $output_objdir/$soname.def;
9027 cat $export_symbols >> $output_objdir/$soname.def;
9029 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9030 else
9031 ld_shlibs=no
9035 interix[3-9]*)
9036 hardcode_direct=no
9037 hardcode_shlibpath_var=no
9038 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9039 export_dynamic_flag_spec='${wl}-E'
9040 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9041 # Instead, shared libraries are loaded at an image base (0x10000000 by
9042 # default) and relocated if they conflict, which is a slow very memory
9043 # consuming and fragmenting process. To avoid this, we pick a random,
9044 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9045 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9046 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9047 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'
9050 gnu* | linux* | tpf* | k*bsd*-gnu)
9051 tmp_diet=no
9052 if test "$host_os" = linux-dietlibc; then
9053 case $cc_basename in
9054 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9055 esac
9057 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9058 && test "$tmp_diet" = no
9059 then
9060 tmp_addflag=
9061 tmp_sharedflag='-shared'
9062 case $cc_basename,$host_cpu in
9063 pgcc*) # Portland Group C compiler
9064 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'
9065 tmp_addflag=' $pic_flag'
9067 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
9068 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'
9069 tmp_addflag=' $pic_flag -Mnomain' ;;
9070 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9071 tmp_addflag=' -i_dynamic' ;;
9072 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9073 tmp_addflag=' -i_dynamic -nofor_main' ;;
9074 ifc* | ifort*) # Intel Fortran compiler
9075 tmp_addflag=' -nofor_main' ;;
9076 lf95*) # Lahey Fortran 8.1
9077 whole_archive_flag_spec=
9078 tmp_sharedflag='--shared' ;;
9079 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9080 tmp_sharedflag='-qmkshrobj'
9081 tmp_addflag= ;;
9082 esac
9083 case `$CC -V 2>&1 | sed 5q` in
9084 *Sun\ C*) # Sun C 5.9
9085 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'
9086 compiler_needs_object=yes
9087 tmp_sharedflag='-G' ;;
9088 *Sun\ F*) # Sun Fortran 8.3
9089 tmp_sharedflag='-G' ;;
9090 esac
9091 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9093 if test "x$supports_anon_versioning" = xyes; then
9094 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9095 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9096 echo "local: *; };" >> $output_objdir/$libname.ver~
9097 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9100 case $cc_basename in
9101 xlf*)
9102 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9103 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9104 hardcode_libdir_flag_spec=
9105 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9106 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9107 if test "x$supports_anon_versioning" = xyes; then
9108 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9109 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9110 echo "local: *; };" >> $output_objdir/$libname.ver~
9111 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9114 esac
9115 else
9116 ld_shlibs=no
9120 netbsd*)
9121 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9122 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9123 wlarc=
9124 else
9125 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9126 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9130 solaris*)
9131 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9132 ld_shlibs=no
9133 cat <<_LT_EOF 1>&2
9135 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9136 *** create shared libraries on Solaris systems. Therefore, libtool
9137 *** is disabling shared libraries support. We urge you to upgrade GNU
9138 *** binutils to release 2.9.1 or newer. Another option is to modify
9139 *** your PATH or compiler configuration so that the native linker is
9140 *** used, and then restart.
9142 _LT_EOF
9143 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9144 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9145 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9146 else
9147 ld_shlibs=no
9151 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9152 case `$LD -v 2>&1` in
9153 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9154 ld_shlibs=no
9155 cat <<_LT_EOF 1>&2
9157 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9158 *** reliably create shared libraries on SCO systems. Therefore, libtool
9159 *** is disabling shared libraries support. We urge you to upgrade GNU
9160 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9161 *** your PATH or compiler configuration so that the native linker is
9162 *** used, and then restart.
9164 _LT_EOF
9167 # For security reasons, it is highly recommended that you always
9168 # use absolute paths for naming shared libraries, and exclude the
9169 # DT_RUNPATH tag from executables and libraries. But doing so
9170 # requires that you compile everything twice, which is a pain.
9171 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9172 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9173 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9174 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9175 else
9176 ld_shlibs=no
9179 esac
9182 sunos4*)
9183 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9184 wlarc=
9185 hardcode_direct=yes
9186 hardcode_shlibpath_var=no
9190 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9191 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9192 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9193 else
9194 ld_shlibs=no
9197 esac
9199 if test "$ld_shlibs" = no; then
9200 runpath_var=
9201 hardcode_libdir_flag_spec=
9202 export_dynamic_flag_spec=
9203 whole_archive_flag_spec=
9205 else
9206 # PORTME fill in a description of your system's linker (not GNU ld)
9207 case $host_os in
9208 aix3*)
9209 allow_undefined_flag=unsupported
9210 always_export_symbols=yes
9211 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'
9212 # Note: this linker hardcodes the directories in LIBPATH if there
9213 # are no directories specified by -L.
9214 hardcode_minus_L=yes
9215 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9216 # Neither direct hardcoding nor static linking is supported with a
9217 # broken collect2.
9218 hardcode_direct=unsupported
9222 aix[4-9]*)
9223 if test "$host_cpu" = ia64; then
9224 # On IA64, the linker does run time linking by default, so we don't
9225 # have to do anything special.
9226 aix_use_runtimelinking=no
9227 exp_sym_flag='-Bexport'
9228 no_entry_flag=""
9229 else
9230 # If we're using GNU nm, then we don't want the "-C" option.
9231 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9232 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9233 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'
9234 else
9235 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'
9237 aix_use_runtimelinking=no
9239 # Test if we are trying to use run time linking or normal
9240 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9241 # need to do runtime linking.
9242 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9243 for ld_flag in $LDFLAGS; do
9244 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9245 aix_use_runtimelinking=yes
9246 break
9248 done
9250 esac
9252 exp_sym_flag='-bexport'
9253 no_entry_flag='-bnoentry'
9256 # When large executables or shared objects are built, AIX ld can
9257 # have problems creating the table of contents. If linking a library
9258 # or program results in "error TOC overflow" add -mminimal-toc to
9259 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9260 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9262 archive_cmds=''
9263 hardcode_direct=yes
9264 hardcode_direct_absolute=yes
9265 hardcode_libdir_separator=':'
9266 link_all_deplibs=yes
9267 file_list_spec='${wl}-f,'
9269 if test "$GCC" = yes; then
9270 case $host_os in aix4.[012]|aix4.[012].*)
9271 # We only want to do this on AIX 4.2 and lower, the check
9272 # below for broken collect2 doesn't work under 4.3+
9273 collect2name=`${CC} -print-prog-name=collect2`
9274 if test -f "$collect2name" &&
9275 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9276 then
9277 # We have reworked collect2
9279 else
9280 # We have old collect2
9281 hardcode_direct=unsupported
9282 # It fails to find uninstalled libraries when the uninstalled
9283 # path is not listed in the libpath. Setting hardcode_minus_L
9284 # to unsupported forces relinking
9285 hardcode_minus_L=yes
9286 hardcode_libdir_flag_spec='-L$libdir'
9287 hardcode_libdir_separator=
9290 esac
9291 shared_flag='-shared'
9292 if test "$aix_use_runtimelinking" = yes; then
9293 shared_flag="$shared_flag "'${wl}-G'
9295 else
9296 # not using gcc
9297 if test "$host_cpu" = ia64; then
9298 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9299 # chokes on -Wl,-G. The following line is correct:
9300 shared_flag='-G'
9301 else
9302 if test "$aix_use_runtimelinking" = yes; then
9303 shared_flag='${wl}-G'
9304 else
9305 shared_flag='${wl}-bM:SRE'
9310 export_dynamic_flag_spec='${wl}-bexpall'
9311 # It seems that -bexpall does not export symbols beginning with
9312 # underscore (_), so it is better to generate a list of symbols to export.
9313 always_export_symbols=yes
9314 if test "$aix_use_runtimelinking" = yes; then
9315 # Warning - without using the other runtime loading flags (-brtl),
9316 # -berok will link without error, but may produce a broken library.
9317 allow_undefined_flag='-berok'
9318 # Determine the default libpath from the value encoded in an
9319 # empty executable.
9320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9321 /* end confdefs.h. */
9324 main ()
9328 return 0;
9330 _ACEOF
9331 if ac_fn_c_try_link "$LINENO"; then :
9333 lt_aix_libpath_sed='
9334 /Import File Strings/,/^$/ {
9335 /^0/ {
9336 s/^0 *\(.*\)$/\1/
9340 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9341 # Check for a 64-bit object if we didn't find anything.
9342 if test -z "$aix_libpath"; then
9343 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9346 rm -f core conftest.err conftest.$ac_objext \
9347 conftest$ac_exeext conftest.$ac_ext
9348 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9350 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9351 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"
9352 else
9353 if test "$host_cpu" = ia64; then
9354 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9355 allow_undefined_flag="-z nodefs"
9356 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"
9357 else
9358 # Determine the default libpath from the value encoded in an
9359 # empty executable.
9360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9361 /* end confdefs.h. */
9364 main ()
9368 return 0;
9370 _ACEOF
9371 if ac_fn_c_try_link "$LINENO"; then :
9373 lt_aix_libpath_sed='
9374 /Import File Strings/,/^$/ {
9375 /^0/ {
9376 s/^0 *\(.*\)$/\1/
9380 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9381 # Check for a 64-bit object if we didn't find anything.
9382 if test -z "$aix_libpath"; then
9383 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9386 rm -f core conftest.err conftest.$ac_objext \
9387 conftest$ac_exeext conftest.$ac_ext
9388 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9390 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9391 # Warning - without using the other run time loading flags,
9392 # -berok will link without error, but may produce a broken library.
9393 no_undefined_flag=' ${wl}-bernotok'
9394 allow_undefined_flag=' ${wl}-berok'
9395 # Exported symbols can be pulled into shared objects from archives
9396 whole_archive_flag_spec='$convenience'
9397 archive_cmds_need_lc=yes
9398 # This is similar to how AIX traditionally builds its shared libraries.
9399 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'
9404 amigaos*)
9405 case $host_cpu in
9406 powerpc)
9407 # see comment about AmigaOS4 .so support
9408 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9409 archive_expsym_cmds=''
9411 m68k)
9412 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)'
9413 hardcode_libdir_flag_spec='-L$libdir'
9414 hardcode_minus_L=yes
9416 esac
9419 bsdi[45]*)
9420 export_dynamic_flag_spec=-rdynamic
9423 cygwin* | mingw* | pw32* | cegcc*)
9424 # When not using gcc, we currently assume that we are using
9425 # Microsoft Visual C++.
9426 # hardcode_libdir_flag_spec is actually meaningless, as there is
9427 # no search path for DLLs.
9428 hardcode_libdir_flag_spec=' '
9429 allow_undefined_flag=unsupported
9430 # Tell ltmain to make .lib files, not .a files.
9431 libext=lib
9432 # Tell ltmain to make .dll files, not .so files.
9433 shrext_cmds=".dll"
9434 # FIXME: Setting linknames here is a bad hack.
9435 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9436 # The linker will automatically build a .lib file if we build a DLL.
9437 old_archive_from_new_cmds='true'
9438 # FIXME: Should let the user specify the lib program.
9439 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9440 fix_srcfile_path='`cygpath -w "$srcfile"`'
9441 enable_shared_with_static_runtimes=yes
9444 darwin* | rhapsody*)
9447 archive_cmds_need_lc=no
9448 hardcode_direct=no
9449 hardcode_automatic=yes
9450 hardcode_shlibpath_var=unsupported
9451 whole_archive_flag_spec=''
9452 link_all_deplibs=yes
9453 allow_undefined_flag="$_lt_dar_allow_undefined"
9454 case $cc_basename in
9455 ifort*) _lt_dar_can_shared=yes ;;
9456 *) _lt_dar_can_shared=$GCC ;;
9457 esac
9458 if test "$_lt_dar_can_shared" = "yes"; then
9459 output_verbose_link_cmd=echo
9460 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9461 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9462 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}"
9463 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}"
9465 else
9466 ld_shlibs=no
9471 dgux*)
9472 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9473 hardcode_libdir_flag_spec='-L$libdir'
9474 hardcode_shlibpath_var=no
9477 freebsd1*)
9478 ld_shlibs=no
9481 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9482 # support. Future versions do this automatically, but an explicit c++rt0.o
9483 # does not break anything, and helps significantly (at the cost of a little
9484 # extra space).
9485 freebsd2.2*)
9486 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9487 hardcode_libdir_flag_spec='-R$libdir'
9488 hardcode_direct=yes
9489 hardcode_shlibpath_var=no
9492 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9493 freebsd2*)
9494 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9495 hardcode_direct=yes
9496 hardcode_minus_L=yes
9497 hardcode_shlibpath_var=no
9500 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9501 freebsd* | dragonfly*)
9502 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9503 hardcode_libdir_flag_spec='-R$libdir'
9504 hardcode_direct=yes
9505 hardcode_shlibpath_var=no
9508 hpux9*)
9509 if test "$GCC" = yes; then
9510 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'
9511 else
9512 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'
9514 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9515 hardcode_libdir_separator=:
9516 hardcode_direct=yes
9518 # hardcode_minus_L: Not really in the search PATH,
9519 # but as the default location of the library.
9520 hardcode_minus_L=yes
9521 export_dynamic_flag_spec='${wl}-E'
9524 hpux10*)
9525 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9526 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9527 else
9528 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9530 if test "$with_gnu_ld" = no; then
9531 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9532 hardcode_libdir_flag_spec_ld='+b $libdir'
9533 hardcode_libdir_separator=:
9534 hardcode_direct=yes
9535 hardcode_direct_absolute=yes
9536 export_dynamic_flag_spec='${wl}-E'
9537 # hardcode_minus_L: Not really in the search PATH,
9538 # but as the default location of the library.
9539 hardcode_minus_L=yes
9543 hpux11*)
9544 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9545 case $host_cpu in
9546 hppa*64*)
9547 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9549 ia64*)
9550 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9553 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9555 esac
9556 else
9557 case $host_cpu in
9558 hppa*64*)
9559 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9561 ia64*)
9562 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9565 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9567 esac
9569 if test "$with_gnu_ld" = no; then
9570 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9571 hardcode_libdir_separator=:
9573 case $host_cpu in
9574 hppa*64*|ia64*)
9575 hardcode_direct=no
9576 hardcode_shlibpath_var=no
9579 hardcode_direct=yes
9580 hardcode_direct_absolute=yes
9581 export_dynamic_flag_spec='${wl}-E'
9583 # hardcode_minus_L: Not really in the search PATH,
9584 # but as the default location of the library.
9585 hardcode_minus_L=yes
9587 esac
9591 irix5* | irix6* | nonstopux*)
9592 if test "$GCC" = yes; then
9593 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'
9594 # Try to use the -exported_symbol ld option, if it does not
9595 # work, assume that -exports_file does not work either and
9596 # implicitly export all symbols.
9597 save_LDFLAGS="$LDFLAGS"
9598 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9600 /* end confdefs.h. */
9601 int foo (void) { return 0; }
9602 _ACEOF
9603 if ac_fn_c_try_link "$LINENO"; then :
9605 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'
9608 rm -f core conftest.err conftest.$ac_objext \
9609 conftest$ac_exeext conftest.$ac_ext
9610 LDFLAGS="$save_LDFLAGS"
9611 else
9612 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'
9613 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'
9615 archive_cmds_need_lc='no'
9616 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9617 hardcode_libdir_separator=:
9618 inherit_rpath=yes
9619 link_all_deplibs=yes
9622 netbsd*)
9623 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9624 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9625 else
9626 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9628 hardcode_libdir_flag_spec='-R$libdir'
9629 hardcode_direct=yes
9630 hardcode_shlibpath_var=no
9633 newsos6)
9634 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9635 hardcode_direct=yes
9636 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9637 hardcode_libdir_separator=:
9638 hardcode_shlibpath_var=no
9641 *nto* | *qnx*)
9644 openbsd*)
9645 if test -f /usr/libexec/ld.so; then
9646 hardcode_direct=yes
9647 hardcode_shlibpath_var=no
9648 hardcode_direct_absolute=yes
9649 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9650 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9651 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9652 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9653 export_dynamic_flag_spec='${wl}-E'
9654 else
9655 case $host_os in
9656 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9657 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9658 hardcode_libdir_flag_spec='-R$libdir'
9661 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9662 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9664 esac
9666 else
9667 ld_shlibs=no
9671 os2*)
9672 hardcode_libdir_flag_spec='-L$libdir'
9673 hardcode_minus_L=yes
9674 allow_undefined_flag=unsupported
9675 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'
9676 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9679 osf3*)
9680 if test "$GCC" = yes; then
9681 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9682 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'
9683 else
9684 allow_undefined_flag=' -expect_unresolved \*'
9685 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'
9687 archive_cmds_need_lc='no'
9688 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9689 hardcode_libdir_separator=:
9692 osf4* | osf5*) # as osf3* with the addition of -msym flag
9693 if test "$GCC" = yes; then
9694 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9695 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'
9696 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9697 else
9698 allow_undefined_flag=' -expect_unresolved \*'
9699 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'
9700 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~
9701 $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'
9703 # Both c and cxx compiler support -rpath directly
9704 hardcode_libdir_flag_spec='-rpath $libdir'
9706 archive_cmds_need_lc='no'
9707 hardcode_libdir_separator=:
9710 solaris*)
9711 no_undefined_flag=' -z defs'
9712 if test "$GCC" = yes; then
9713 wlarc='${wl}'
9714 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9715 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9716 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9717 else
9718 case `$CC -V 2>&1` in
9719 *"Compilers 5.0"*)
9720 wlarc=''
9721 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9722 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9723 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9726 wlarc='${wl}'
9727 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9728 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9729 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9731 esac
9733 hardcode_libdir_flag_spec='-R$libdir'
9734 hardcode_shlibpath_var=no
9735 case $host_os in
9736 solaris2.[0-5] | solaris2.[0-5].*) ;;
9738 # The compiler driver will combine and reorder linker options,
9739 # but understands `-z linker_flag'. GCC discards it without `$wl',
9740 # but is careful enough not to reorder.
9741 # Supported since Solaris 2.6 (maybe 2.5.1?)
9742 if test "$GCC" = yes; then
9743 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9744 else
9745 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9748 esac
9749 link_all_deplibs=yes
9752 sunos4*)
9753 if test "x$host_vendor" = xsequent; then
9754 # Use $CC to link under sequent, because it throws in some extra .o
9755 # files that make .init and .fini sections work.
9756 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9757 else
9758 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9760 hardcode_libdir_flag_spec='-L$libdir'
9761 hardcode_direct=yes
9762 hardcode_minus_L=yes
9763 hardcode_shlibpath_var=no
9766 sysv4)
9767 case $host_vendor in
9768 sni)
9769 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9770 hardcode_direct=yes # is this really true???
9772 siemens)
9773 ## LD is ld it makes a PLAMLIB
9774 ## CC just makes a GrossModule.
9775 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9776 reload_cmds='$CC -r -o $output$reload_objs'
9777 hardcode_direct=no
9779 motorola)
9780 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9781 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9783 esac
9784 runpath_var='LD_RUN_PATH'
9785 hardcode_shlibpath_var=no
9788 sysv4.3*)
9789 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9790 hardcode_shlibpath_var=no
9791 export_dynamic_flag_spec='-Bexport'
9794 sysv4*MP*)
9795 if test -d /usr/nec; then
9796 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9797 hardcode_shlibpath_var=no
9798 runpath_var=LD_RUN_PATH
9799 hardcode_runpath_var=yes
9800 ld_shlibs=yes
9804 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9805 no_undefined_flag='${wl}-z,text'
9806 archive_cmds_need_lc=no
9807 hardcode_shlibpath_var=no
9808 runpath_var='LD_RUN_PATH'
9810 if test "$GCC" = yes; then
9811 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9812 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9813 else
9814 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9815 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9819 sysv5* | sco3.2v5* | sco5v6*)
9820 # Note: We can NOT use -z defs as we might desire, because we do not
9821 # link with -lc, and that would cause any symbols used from libc to
9822 # always be unresolved, which means just about no library would
9823 # ever link correctly. If we're not using GNU ld we use -z text
9824 # though, which does catch some bad symbols but isn't as heavy-handed
9825 # as -z defs.
9826 no_undefined_flag='${wl}-z,text'
9827 allow_undefined_flag='${wl}-z,nodefs'
9828 archive_cmds_need_lc=no
9829 hardcode_shlibpath_var=no
9830 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9831 hardcode_libdir_separator=':'
9832 link_all_deplibs=yes
9833 export_dynamic_flag_spec='${wl}-Bexport'
9834 runpath_var='LD_RUN_PATH'
9836 if test "$GCC" = yes; then
9837 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9838 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9839 else
9840 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9841 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9845 uts4*)
9846 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9847 hardcode_libdir_flag_spec='-L$libdir'
9848 hardcode_shlibpath_var=no
9852 ld_shlibs=no
9854 esac
9856 if test x$host_vendor = xsni; then
9857 case $host in
9858 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9859 export_dynamic_flag_spec='${wl}-Blargedynsym'
9861 esac
9865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9866 $as_echo "$ld_shlibs" >&6; }
9867 test "$ld_shlibs" = no && can_build_shared=no
9869 with_gnu_ld=$with_gnu_ld
9886 # Do we need to explicitly link libc?
9888 case "x$archive_cmds_need_lc" in
9889 x|xyes)
9890 # Assume -lc should be added
9891 archive_cmds_need_lc=yes
9893 if test "$enable_shared" = yes && test "$GCC" = yes; then
9894 case $archive_cmds in
9895 *'~'*)
9896 # FIXME: we may have to deal with multi-command sequences.
9898 '$CC '*)
9899 # Test whether the compiler implicitly links with -lc since on some
9900 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9901 # to ld, don't add -lc before -lgcc.
9902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9903 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9904 $RM conftest*
9905 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9907 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9908 (eval $ac_compile) 2>&5
9909 ac_status=$?
9910 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9911 test $ac_status = 0; } 2>conftest.err; then
9912 soname=conftest
9913 lib=conftest
9914 libobjs=conftest.$ac_objext
9915 deplibs=
9916 wl=$lt_prog_compiler_wl
9917 pic_flag=$lt_prog_compiler_pic
9918 compiler_flags=-v
9919 linker_flags=-v
9920 verstring=
9921 output_objdir=.
9922 libname=conftest
9923 lt_save_allow_undefined_flag=$allow_undefined_flag
9924 allow_undefined_flag=
9925 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9926 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9927 ac_status=$?
9928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9929 test $ac_status = 0; }
9930 then
9931 archive_cmds_need_lc=no
9932 else
9933 archive_cmds_need_lc=yes
9935 allow_undefined_flag=$lt_save_allow_undefined_flag
9936 else
9937 cat conftest.err 1>&5
9939 $RM conftest*
9940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9941 $as_echo "$archive_cmds_need_lc" >&6; }
9943 esac
9946 esac
10104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10105 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10107 if test "$GCC" = yes; then
10108 case $host_os in
10109 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10110 *) lt_awk_arg="/^libraries:/" ;;
10111 esac
10112 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10113 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10114 # if the path contains ";" then we assume it to be the separator
10115 # otherwise default to the standard path separator (i.e. ":") - it is
10116 # assumed that no part of a normal pathname contains ";" but that should
10117 # okay in the real world where ";" in dirpaths is itself problematic.
10118 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10119 else
10120 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10122 # Ok, now we have the path, separated by spaces, we can step through it
10123 # and add multilib dir if necessary.
10124 lt_tmp_lt_search_path_spec=
10125 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10126 for lt_sys_path in $lt_search_path_spec; do
10127 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10128 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10129 else
10130 test -d "$lt_sys_path" && \
10131 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10133 done
10134 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10135 BEGIN {RS=" "; FS="/|\n";} {
10136 lt_foo="";
10137 lt_count=0;
10138 for (lt_i = NF; lt_i > 0; lt_i--) {
10139 if ($lt_i != "" && $lt_i != ".") {
10140 if ($lt_i == "..") {
10141 lt_count++;
10142 } else {
10143 if (lt_count == 0) {
10144 lt_foo="/" $lt_i lt_foo;
10145 } else {
10146 lt_count--;
10151 if (lt_foo != "") { lt_freq[lt_foo]++; }
10152 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10154 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10155 else
10156 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10158 library_names_spec=
10159 libname_spec='lib$name'
10160 soname_spec=
10161 shrext_cmds=".so"
10162 postinstall_cmds=
10163 postuninstall_cmds=
10164 finish_cmds=
10165 finish_eval=
10166 shlibpath_var=
10167 shlibpath_overrides_runpath=unknown
10168 version_type=none
10169 dynamic_linker="$host_os ld.so"
10170 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10171 need_lib_prefix=unknown
10172 hardcode_into_libs=no
10174 # when you set need_version to no, make sure it does not cause -set_version
10175 # flags to be left without arguments
10176 need_version=unknown
10178 case $host_os in
10179 aix3*)
10180 version_type=linux
10181 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10182 shlibpath_var=LIBPATH
10184 # AIX 3 has no versioning support, so we append a major version to the name.
10185 soname_spec='${libname}${release}${shared_ext}$major'
10188 aix[4-9]*)
10189 version_type=linux
10190 need_lib_prefix=no
10191 need_version=no
10192 hardcode_into_libs=yes
10193 if test "$host_cpu" = ia64; then
10194 # AIX 5 supports IA64
10195 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10196 shlibpath_var=LD_LIBRARY_PATH
10197 else
10198 # With GCC up to 2.95.x, collect2 would create an import file
10199 # for dependence libraries. The import file would start with
10200 # the line `#! .'. This would cause the generated library to
10201 # depend on `.', always an invalid library. This was fixed in
10202 # development snapshots of GCC prior to 3.0.
10203 case $host_os in
10204 aix4 | aix4.[01] | aix4.[01].*)
10205 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10206 echo ' yes '
10207 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10209 else
10210 can_build_shared=no
10213 esac
10214 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10215 # soname into executable. Probably we can add versioning support to
10216 # collect2, so additional links can be useful in future.
10217 if test "$aix_use_runtimelinking" = yes; then
10218 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10219 # instead of lib<name>.a to let people know that these are not
10220 # typical AIX shared libraries.
10221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10222 else
10223 # We preserve .a as extension for shared libraries through AIX4.2
10224 # and later when we are not doing run time linking.
10225 library_names_spec='${libname}${release}.a $libname.a'
10226 soname_spec='${libname}${release}${shared_ext}$major'
10228 shlibpath_var=LIBPATH
10232 amigaos*)
10233 case $host_cpu in
10234 powerpc)
10235 # Since July 2007 AmigaOS4 officially supports .so libraries.
10236 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10239 m68k)
10240 library_names_spec='$libname.ixlibrary $libname.a'
10241 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10242 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'
10244 esac
10247 beos*)
10248 library_names_spec='${libname}${shared_ext}'
10249 dynamic_linker="$host_os ld.so"
10250 shlibpath_var=LIBRARY_PATH
10253 bsdi[45]*)
10254 version_type=linux
10255 need_version=no
10256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10257 soname_spec='${libname}${release}${shared_ext}$major'
10258 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10259 shlibpath_var=LD_LIBRARY_PATH
10260 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10261 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10262 # the default ld.so.conf also contains /usr/contrib/lib and
10263 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10264 # libtool to hard-code these into programs
10267 cygwin* | mingw* | pw32* | cegcc*)
10268 version_type=windows
10269 shrext_cmds=".dll"
10270 need_version=no
10271 need_lib_prefix=no
10273 case $GCC,$host_os in
10274 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10275 library_names_spec='$libname.dll.a'
10276 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10277 postinstall_cmds='base_file=`basename \${file}`~
10278 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10279 dldir=$destdir/`dirname \$dlpath`~
10280 test -d \$dldir || mkdir -p \$dldir~
10281 $install_prog $dir/$dlname \$dldir/$dlname~
10282 chmod a+x \$dldir/$dlname~
10283 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10284 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10286 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10287 dlpath=$dir/\$dldll~
10288 $RM \$dlpath'
10289 shlibpath_overrides_runpath=yes
10291 case $host_os in
10292 cygwin*)
10293 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10294 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10295 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10297 mingw* | cegcc*)
10298 # MinGW DLLs use traditional 'lib' prefix
10299 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10300 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10301 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10302 # It is most probably a Windows format PATH printed by
10303 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10304 # path with ; separators, and with drive letters. We can handle the
10305 # drive letters (cygwin fileutils understands them), so leave them,
10306 # especially as we might pass files found there to a mingw objdump,
10307 # which wouldn't understand a cygwinified path. Ahh.
10308 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10309 else
10310 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10313 pw32*)
10314 # pw32 DLLs use 'pw' prefix rather than 'lib'
10315 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10317 esac
10321 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10323 esac
10324 dynamic_linker='Win32 ld.exe'
10325 # FIXME: first we should search . and the directory the executable is in
10326 shlibpath_var=PATH
10329 darwin* | rhapsody*)
10330 dynamic_linker="$host_os dyld"
10331 version_type=darwin
10332 need_lib_prefix=no
10333 need_version=no
10334 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10335 soname_spec='${libname}${release}${major}$shared_ext'
10336 shlibpath_overrides_runpath=yes
10337 shlibpath_var=DYLD_LIBRARY_PATH
10338 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10340 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10341 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10344 dgux*)
10345 version_type=linux
10346 need_lib_prefix=no
10347 need_version=no
10348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10349 soname_spec='${libname}${release}${shared_ext}$major'
10350 shlibpath_var=LD_LIBRARY_PATH
10353 freebsd1*)
10354 dynamic_linker=no
10357 freebsd* | dragonfly*)
10358 # DragonFly does not have aout. When/if they implement a new
10359 # versioning mechanism, adjust this.
10360 if test -x /usr/bin/objformat; then
10361 objformat=`/usr/bin/objformat`
10362 else
10363 case $host_os in
10364 freebsd[123]*) objformat=aout ;;
10365 *) objformat=elf ;;
10366 esac
10368 version_type=freebsd-$objformat
10369 case $version_type in
10370 freebsd-elf*)
10371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10372 need_version=no
10373 need_lib_prefix=no
10375 freebsd-*)
10376 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10377 need_version=yes
10379 esac
10380 shlibpath_var=LD_LIBRARY_PATH
10381 case $host_os in
10382 freebsd2*)
10383 shlibpath_overrides_runpath=yes
10385 freebsd3.[01]* | freebsdelf3.[01]*)
10386 shlibpath_overrides_runpath=yes
10387 hardcode_into_libs=yes
10389 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10390 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10391 shlibpath_overrides_runpath=no
10392 hardcode_into_libs=yes
10394 *) # from 4.6 on, and DragonFly
10395 shlibpath_overrides_runpath=yes
10396 hardcode_into_libs=yes
10398 esac
10401 gnu*)
10402 version_type=linux
10403 need_lib_prefix=no
10404 need_version=no
10405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10406 soname_spec='${libname}${release}${shared_ext}$major'
10407 shlibpath_var=LD_LIBRARY_PATH
10408 hardcode_into_libs=yes
10411 hpux9* | hpux10* | hpux11*)
10412 # Give a soname corresponding to the major version so that dld.sl refuses to
10413 # link against other versions.
10414 version_type=sunos
10415 need_lib_prefix=no
10416 need_version=no
10417 case $host_cpu in
10418 ia64*)
10419 shrext_cmds='.so'
10420 hardcode_into_libs=yes
10421 dynamic_linker="$host_os dld.so"
10422 shlibpath_var=LD_LIBRARY_PATH
10423 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10425 soname_spec='${libname}${release}${shared_ext}$major'
10426 if test "X$HPUX_IA64_MODE" = X32; then
10427 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10428 else
10429 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10431 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10433 hppa*64*)
10434 shrext_cmds='.sl'
10435 hardcode_into_libs=yes
10436 dynamic_linker="$host_os dld.sl"
10437 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10438 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10440 soname_spec='${libname}${release}${shared_ext}$major'
10441 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10442 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10445 shrext_cmds='.sl'
10446 dynamic_linker="$host_os dld.sl"
10447 shlibpath_var=SHLIB_PATH
10448 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10450 soname_spec='${libname}${release}${shared_ext}$major'
10452 esac
10453 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10454 postinstall_cmds='chmod 555 $lib'
10457 interix[3-9]*)
10458 version_type=linux
10459 need_lib_prefix=no
10460 need_version=no
10461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10462 soname_spec='${libname}${release}${shared_ext}$major'
10463 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10464 shlibpath_var=LD_LIBRARY_PATH
10465 shlibpath_overrides_runpath=no
10466 hardcode_into_libs=yes
10469 irix5* | irix6* | nonstopux*)
10470 case $host_os in
10471 nonstopux*) version_type=nonstopux ;;
10473 if test "$lt_cv_prog_gnu_ld" = yes; then
10474 version_type=linux
10475 else
10476 version_type=irix
10477 fi ;;
10478 esac
10479 need_lib_prefix=no
10480 need_version=no
10481 soname_spec='${libname}${release}${shared_ext}$major'
10482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10483 case $host_os in
10484 irix5* | nonstopux*)
10485 libsuff= shlibsuff=
10488 case $LD in # libtool.m4 will add one of these switches to LD
10489 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10490 libsuff= shlibsuff= libmagic=32-bit;;
10491 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10492 libsuff=32 shlibsuff=N32 libmagic=N32;;
10493 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10494 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10495 *) libsuff= shlibsuff= libmagic=never-match;;
10496 esac
10498 esac
10499 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10500 shlibpath_overrides_runpath=no
10501 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10502 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10503 hardcode_into_libs=yes
10506 # No shared lib support for Linux oldld, aout, or coff.
10507 linux*oldld* | linux*aout* | linux*coff*)
10508 dynamic_linker=no
10511 # This must be Linux ELF.
10512 linux* | k*bsd*-gnu)
10513 version_type=linux
10514 need_lib_prefix=no
10515 need_version=no
10516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10517 soname_spec='${libname}${release}${shared_ext}$major'
10518 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10519 shlibpath_var=LD_LIBRARY_PATH
10520 shlibpath_overrides_runpath=no
10521 # Some binutils ld are patched to set DT_RUNPATH
10522 save_LDFLAGS=$LDFLAGS
10523 save_libdir=$libdir
10524 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10525 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10527 /* end confdefs.h. */
10530 main ()
10534 return 0;
10536 _ACEOF
10537 if ac_fn_c_try_link "$LINENO"; then :
10538 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10539 shlibpath_overrides_runpath=yes
10542 rm -f core conftest.err conftest.$ac_objext \
10543 conftest$ac_exeext conftest.$ac_ext
10544 LDFLAGS=$save_LDFLAGS
10545 libdir=$save_libdir
10547 # This implies no fast_install, which is unacceptable.
10548 # Some rework will be needed to allow for fast_install
10549 # before this can be enabled.
10550 hardcode_into_libs=yes
10552 # Append ld.so.conf contents to the search path
10553 if test -f /etc/ld.so.conf; then
10554 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' ' '`
10555 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10558 # We used to test for /lib/ld.so.1 and disable shared libraries on
10559 # powerpc, because MkLinux only supported shared libraries with the
10560 # GNU dynamic linker. Since this was broken with cross compilers,
10561 # most powerpc-linux boxes support dynamic linking these days and
10562 # people can always --disable-shared, the test was removed, and we
10563 # assume the GNU/Linux dynamic linker is in use.
10564 dynamic_linker='GNU/Linux ld.so'
10567 netbsd*)
10568 version_type=sunos
10569 need_lib_prefix=no
10570 need_version=no
10571 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10573 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10574 dynamic_linker='NetBSD (a.out) ld.so'
10575 else
10576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10577 soname_spec='${libname}${release}${shared_ext}$major'
10578 dynamic_linker='NetBSD ld.elf_so'
10580 shlibpath_var=LD_LIBRARY_PATH
10581 shlibpath_overrides_runpath=yes
10582 hardcode_into_libs=yes
10585 newsos6)
10586 version_type=linux
10587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10588 shlibpath_var=LD_LIBRARY_PATH
10589 shlibpath_overrides_runpath=yes
10592 *nto* | *qnx*)
10593 version_type=qnx
10594 need_lib_prefix=no
10595 need_version=no
10596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10597 soname_spec='${libname}${release}${shared_ext}$major'
10598 shlibpath_var=LD_LIBRARY_PATH
10599 shlibpath_overrides_runpath=no
10600 hardcode_into_libs=yes
10601 dynamic_linker='ldqnx.so'
10604 openbsd*)
10605 version_type=sunos
10606 sys_lib_dlsearch_path_spec="/usr/lib"
10607 need_lib_prefix=no
10608 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10609 case $host_os in
10610 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10611 *) need_version=no ;;
10612 esac
10613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10614 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10615 shlibpath_var=LD_LIBRARY_PATH
10616 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10617 case $host_os in
10618 openbsd2.[89] | openbsd2.[89].*)
10619 shlibpath_overrides_runpath=no
10622 shlibpath_overrides_runpath=yes
10624 esac
10625 else
10626 shlibpath_overrides_runpath=yes
10630 os2*)
10631 libname_spec='$name'
10632 shrext_cmds=".dll"
10633 need_lib_prefix=no
10634 library_names_spec='$libname${shared_ext} $libname.a'
10635 dynamic_linker='OS/2 ld.exe'
10636 shlibpath_var=LIBPATH
10639 osf3* | osf4* | osf5*)
10640 version_type=osf
10641 need_lib_prefix=no
10642 need_version=no
10643 soname_spec='${libname}${release}${shared_ext}$major'
10644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10645 shlibpath_var=LD_LIBRARY_PATH
10646 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10647 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10650 rdos*)
10651 dynamic_linker=no
10654 solaris*)
10655 version_type=linux
10656 need_lib_prefix=no
10657 need_version=no
10658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10659 soname_spec='${libname}${release}${shared_ext}$major'
10660 shlibpath_var=LD_LIBRARY_PATH
10661 shlibpath_overrides_runpath=yes
10662 hardcode_into_libs=yes
10663 # ldd complains unless libraries are executable
10664 postinstall_cmds='chmod +x $lib'
10667 sunos4*)
10668 version_type=sunos
10669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10670 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10671 shlibpath_var=LD_LIBRARY_PATH
10672 shlibpath_overrides_runpath=yes
10673 if test "$with_gnu_ld" = yes; then
10674 need_lib_prefix=no
10676 need_version=yes
10679 sysv4 | sysv4.3*)
10680 version_type=linux
10681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10682 soname_spec='${libname}${release}${shared_ext}$major'
10683 shlibpath_var=LD_LIBRARY_PATH
10684 case $host_vendor in
10685 sni)
10686 shlibpath_overrides_runpath=no
10687 need_lib_prefix=no
10688 runpath_var=LD_RUN_PATH
10690 siemens)
10691 need_lib_prefix=no
10693 motorola)
10694 need_lib_prefix=no
10695 need_version=no
10696 shlibpath_overrides_runpath=no
10697 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10699 esac
10702 sysv4*MP*)
10703 if test -d /usr/nec ;then
10704 version_type=linux
10705 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10706 soname_spec='$libname${shared_ext}.$major'
10707 shlibpath_var=LD_LIBRARY_PATH
10711 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10712 version_type=freebsd-elf
10713 need_lib_prefix=no
10714 need_version=no
10715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10716 soname_spec='${libname}${release}${shared_ext}$major'
10717 shlibpath_var=LD_LIBRARY_PATH
10718 shlibpath_overrides_runpath=yes
10719 hardcode_into_libs=yes
10720 if test "$with_gnu_ld" = yes; then
10721 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10722 else
10723 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10724 case $host_os in
10725 sco3.2v5*)
10726 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10728 esac
10730 sys_lib_dlsearch_path_spec='/usr/lib'
10733 tpf*)
10734 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10735 version_type=linux
10736 need_lib_prefix=no
10737 need_version=no
10738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10739 shlibpath_var=LD_LIBRARY_PATH
10740 shlibpath_overrides_runpath=no
10741 hardcode_into_libs=yes
10744 uts4*)
10745 version_type=linux
10746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10747 soname_spec='${libname}${release}${shared_ext}$major'
10748 shlibpath_var=LD_LIBRARY_PATH
10752 dynamic_linker=no
10754 esac
10755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10756 $as_echo "$dynamic_linker" >&6; }
10757 test "$dynamic_linker" = no && can_build_shared=no
10759 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10760 if test "$GCC" = yes; then
10761 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10764 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10765 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10767 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10768 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10858 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10859 hardcode_action=
10860 if test -n "$hardcode_libdir_flag_spec" ||
10861 test -n "$runpath_var" ||
10862 test "X$hardcode_automatic" = "Xyes" ; then
10864 # We can hardcode non-existent directories.
10865 if test "$hardcode_direct" != no &&
10866 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10867 # have to relink, otherwise we might link with an installed library
10868 # when we should be linking with a yet-to-be-installed one
10869 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10870 test "$hardcode_minus_L" != no; then
10871 # Linking always hardcodes the temporary library directory.
10872 hardcode_action=relink
10873 else
10874 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10875 hardcode_action=immediate
10877 else
10878 # We cannot hardcode anything, or else we can only hardcode existing
10879 # directories.
10880 hardcode_action=unsupported
10882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10883 $as_echo "$hardcode_action" >&6; }
10885 if test "$hardcode_action" = relink ||
10886 test "$inherit_rpath" = yes; then
10887 # Fast installation is not supported
10888 enable_fast_install=no
10889 elif test "$shlibpath_overrides_runpath" = yes ||
10890 test "$enable_shared" = no; then
10891 # Fast installation is not necessary
10892 enable_fast_install=needless
10900 if test "x$enable_dlopen" != xyes; then
10901 enable_dlopen=unknown
10902 enable_dlopen_self=unknown
10903 enable_dlopen_self_static=unknown
10904 else
10905 lt_cv_dlopen=no
10906 lt_cv_dlopen_libs=
10908 case $host_os in
10909 beos*)
10910 lt_cv_dlopen="load_add_on"
10911 lt_cv_dlopen_libs=
10912 lt_cv_dlopen_self=yes
10915 mingw* | pw32* | cegcc*)
10916 lt_cv_dlopen="LoadLibrary"
10917 lt_cv_dlopen_libs=
10920 cygwin*)
10921 lt_cv_dlopen="dlopen"
10922 lt_cv_dlopen_libs=
10925 darwin*)
10926 # if libdl is installed we need to link against it
10927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10928 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10929 if ${ac_cv_lib_dl_dlopen+:} false; then :
10930 $as_echo_n "(cached) " >&6
10931 else
10932 ac_check_lib_save_LIBS=$LIBS
10933 LIBS="-ldl $LIBS"
10934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10935 /* end confdefs.h. */
10937 /* Override any GCC internal prototype to avoid an error.
10938 Use char because int might match the return type of a GCC
10939 builtin and then its argument prototype would still apply. */
10940 #ifdef __cplusplus
10941 extern "C"
10942 #endif
10943 char dlopen ();
10945 main ()
10947 return dlopen ();
10949 return 0;
10951 _ACEOF
10952 if ac_fn_c_try_link "$LINENO"; then :
10953 ac_cv_lib_dl_dlopen=yes
10954 else
10955 ac_cv_lib_dl_dlopen=no
10957 rm -f core conftest.err conftest.$ac_objext \
10958 conftest$ac_exeext conftest.$ac_ext
10959 LIBS=$ac_check_lib_save_LIBS
10961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10962 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10963 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10964 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10965 else
10967 lt_cv_dlopen="dyld"
10968 lt_cv_dlopen_libs=
10969 lt_cv_dlopen_self=yes
10976 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10977 if test "x$ac_cv_func_shl_load" = xyes; then :
10978 lt_cv_dlopen="shl_load"
10979 else
10980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10981 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10982 if ${ac_cv_lib_dld_shl_load+:} false; then :
10983 $as_echo_n "(cached) " >&6
10984 else
10985 ac_check_lib_save_LIBS=$LIBS
10986 LIBS="-ldld $LIBS"
10987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10988 /* end confdefs.h. */
10990 /* Override any GCC internal prototype to avoid an error.
10991 Use char because int might match the return type of a GCC
10992 builtin and then its argument prototype would still apply. */
10993 #ifdef __cplusplus
10994 extern "C"
10995 #endif
10996 char shl_load ();
10998 main ()
11000 return shl_load ();
11002 return 0;
11004 _ACEOF
11005 if ac_fn_c_try_link "$LINENO"; then :
11006 ac_cv_lib_dld_shl_load=yes
11007 else
11008 ac_cv_lib_dld_shl_load=no
11010 rm -f core conftest.err conftest.$ac_objext \
11011 conftest$ac_exeext conftest.$ac_ext
11012 LIBS=$ac_check_lib_save_LIBS
11014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11015 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11016 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11017 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11018 else
11019 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11020 if test "x$ac_cv_func_dlopen" = xyes; then :
11021 lt_cv_dlopen="dlopen"
11022 else
11023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11024 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11025 if ${ac_cv_lib_dl_dlopen+:} false; then :
11026 $as_echo_n "(cached) " >&6
11027 else
11028 ac_check_lib_save_LIBS=$LIBS
11029 LIBS="-ldl $LIBS"
11030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11031 /* end confdefs.h. */
11033 /* Override any GCC internal prototype to avoid an error.
11034 Use char because int might match the return type of a GCC
11035 builtin and then its argument prototype would still apply. */
11036 #ifdef __cplusplus
11037 extern "C"
11038 #endif
11039 char dlopen ();
11041 main ()
11043 return dlopen ();
11045 return 0;
11047 _ACEOF
11048 if ac_fn_c_try_link "$LINENO"; then :
11049 ac_cv_lib_dl_dlopen=yes
11050 else
11051 ac_cv_lib_dl_dlopen=no
11053 rm -f core conftest.err conftest.$ac_objext \
11054 conftest$ac_exeext conftest.$ac_ext
11055 LIBS=$ac_check_lib_save_LIBS
11057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11058 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11059 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11060 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11061 else
11062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11063 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11064 if ${ac_cv_lib_svld_dlopen+:} false; then :
11065 $as_echo_n "(cached) " >&6
11066 else
11067 ac_check_lib_save_LIBS=$LIBS
11068 LIBS="-lsvld $LIBS"
11069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11070 /* end confdefs.h. */
11072 /* Override any GCC internal prototype to avoid an error.
11073 Use char because int might match the return type of a GCC
11074 builtin and then its argument prototype would still apply. */
11075 #ifdef __cplusplus
11076 extern "C"
11077 #endif
11078 char dlopen ();
11080 main ()
11082 return dlopen ();
11084 return 0;
11086 _ACEOF
11087 if ac_fn_c_try_link "$LINENO"; then :
11088 ac_cv_lib_svld_dlopen=yes
11089 else
11090 ac_cv_lib_svld_dlopen=no
11092 rm -f core conftest.err conftest.$ac_objext \
11093 conftest$ac_exeext conftest.$ac_ext
11094 LIBS=$ac_check_lib_save_LIBS
11096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11097 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11098 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11099 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11100 else
11101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11102 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11103 if ${ac_cv_lib_dld_dld_link+:} false; then :
11104 $as_echo_n "(cached) " >&6
11105 else
11106 ac_check_lib_save_LIBS=$LIBS
11107 LIBS="-ldld $LIBS"
11108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11109 /* end confdefs.h. */
11111 /* Override any GCC internal prototype to avoid an error.
11112 Use char because int might match the return type of a GCC
11113 builtin and then its argument prototype would still apply. */
11114 #ifdef __cplusplus
11115 extern "C"
11116 #endif
11117 char dld_link ();
11119 main ()
11121 return dld_link ();
11123 return 0;
11125 _ACEOF
11126 if ac_fn_c_try_link "$LINENO"; then :
11127 ac_cv_lib_dld_dld_link=yes
11128 else
11129 ac_cv_lib_dld_dld_link=no
11131 rm -f core conftest.err conftest.$ac_objext \
11132 conftest$ac_exeext conftest.$ac_ext
11133 LIBS=$ac_check_lib_save_LIBS
11135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11136 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11137 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11138 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11157 esac
11159 if test "x$lt_cv_dlopen" != xno; then
11160 enable_dlopen=yes
11161 else
11162 enable_dlopen=no
11165 case $lt_cv_dlopen in
11166 dlopen)
11167 save_CPPFLAGS="$CPPFLAGS"
11168 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11170 save_LDFLAGS="$LDFLAGS"
11171 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11173 save_LIBS="$LIBS"
11174 LIBS="$lt_cv_dlopen_libs $LIBS"
11176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11177 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11178 if ${lt_cv_dlopen_self+:} false; then :
11179 $as_echo_n "(cached) " >&6
11180 else
11181 if test "$cross_compiling" = yes; then :
11182 lt_cv_dlopen_self=cross
11183 else
11184 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11185 lt_status=$lt_dlunknown
11186 cat > conftest.$ac_ext <<_LT_EOF
11187 #line 11187 "configure"
11188 #include "confdefs.h"
11190 #if HAVE_DLFCN_H
11191 #include <dlfcn.h>
11192 #endif
11194 #include <stdio.h>
11196 #ifdef RTLD_GLOBAL
11197 # define LT_DLGLOBAL RTLD_GLOBAL
11198 #else
11199 # ifdef DL_GLOBAL
11200 # define LT_DLGLOBAL DL_GLOBAL
11201 # else
11202 # define LT_DLGLOBAL 0
11203 # endif
11204 #endif
11206 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11207 find out it does not work in some platform. */
11208 #ifndef LT_DLLAZY_OR_NOW
11209 # ifdef RTLD_LAZY
11210 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11211 # else
11212 # ifdef DL_LAZY
11213 # define LT_DLLAZY_OR_NOW DL_LAZY
11214 # else
11215 # ifdef RTLD_NOW
11216 # define LT_DLLAZY_OR_NOW RTLD_NOW
11217 # else
11218 # ifdef DL_NOW
11219 # define LT_DLLAZY_OR_NOW DL_NOW
11220 # else
11221 # define LT_DLLAZY_OR_NOW 0
11222 # endif
11223 # endif
11224 # endif
11225 # endif
11226 #endif
11228 void fnord() { int i=42;}
11229 int main ()
11231 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11232 int status = $lt_dlunknown;
11234 if (self)
11236 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11237 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11238 /* dlclose (self); */
11240 else
11241 puts (dlerror ());
11243 return status;
11245 _LT_EOF
11246 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11247 (eval $ac_link) 2>&5
11248 ac_status=$?
11249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11250 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11251 (./conftest; exit; ) >&5 2>/dev/null
11252 lt_status=$?
11253 case x$lt_status in
11254 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11255 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11256 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11257 esac
11258 else :
11259 # compilation failed
11260 lt_cv_dlopen_self=no
11263 rm -fr conftest*
11267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11268 $as_echo "$lt_cv_dlopen_self" >&6; }
11270 if test "x$lt_cv_dlopen_self" = xyes; then
11271 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11273 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11274 if ${lt_cv_dlopen_self_static+:} false; then :
11275 $as_echo_n "(cached) " >&6
11276 else
11277 if test "$cross_compiling" = yes; then :
11278 lt_cv_dlopen_self_static=cross
11279 else
11280 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11281 lt_status=$lt_dlunknown
11282 cat > conftest.$ac_ext <<_LT_EOF
11283 #line 11283 "configure"
11284 #include "confdefs.h"
11286 #if HAVE_DLFCN_H
11287 #include <dlfcn.h>
11288 #endif
11290 #include <stdio.h>
11292 #ifdef RTLD_GLOBAL
11293 # define LT_DLGLOBAL RTLD_GLOBAL
11294 #else
11295 # ifdef DL_GLOBAL
11296 # define LT_DLGLOBAL DL_GLOBAL
11297 # else
11298 # define LT_DLGLOBAL 0
11299 # endif
11300 #endif
11302 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11303 find out it does not work in some platform. */
11304 #ifndef LT_DLLAZY_OR_NOW
11305 # ifdef RTLD_LAZY
11306 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11307 # else
11308 # ifdef DL_LAZY
11309 # define LT_DLLAZY_OR_NOW DL_LAZY
11310 # else
11311 # ifdef RTLD_NOW
11312 # define LT_DLLAZY_OR_NOW RTLD_NOW
11313 # else
11314 # ifdef DL_NOW
11315 # define LT_DLLAZY_OR_NOW DL_NOW
11316 # else
11317 # define LT_DLLAZY_OR_NOW 0
11318 # endif
11319 # endif
11320 # endif
11321 # endif
11322 #endif
11324 void fnord() { int i=42;}
11325 int main ()
11327 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11328 int status = $lt_dlunknown;
11330 if (self)
11332 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11333 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11334 /* dlclose (self); */
11336 else
11337 puts (dlerror ());
11339 return status;
11341 _LT_EOF
11342 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11343 (eval $ac_link) 2>&5
11344 ac_status=$?
11345 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11346 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11347 (./conftest; exit; ) >&5 2>/dev/null
11348 lt_status=$?
11349 case x$lt_status in
11350 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11351 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11352 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11353 esac
11354 else :
11355 # compilation failed
11356 lt_cv_dlopen_self_static=no
11359 rm -fr conftest*
11363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11364 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11367 CPPFLAGS="$save_CPPFLAGS"
11368 LDFLAGS="$save_LDFLAGS"
11369 LIBS="$save_LIBS"
11371 esac
11373 case $lt_cv_dlopen_self in
11374 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11375 *) enable_dlopen_self=unknown ;;
11376 esac
11378 case $lt_cv_dlopen_self_static in
11379 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11380 *) enable_dlopen_self_static=unknown ;;
11381 esac
11400 striplib=
11401 old_striplib=
11402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11403 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11404 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11405 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11406 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11408 $as_echo "yes" >&6; }
11409 else
11410 # FIXME - insert some real tests, host_os isn't really good enough
11411 case $host_os in
11412 darwin*)
11413 if test -n "$STRIP" ; then
11414 striplib="$STRIP -x"
11415 old_striplib="$STRIP -S"
11416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11417 $as_echo "yes" >&6; }
11418 else
11419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11420 $as_echo "no" >&6; }
11424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11425 $as_echo "no" >&6; }
11427 esac
11441 # Report which library types will actually be built
11442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11443 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11445 $as_echo "$can_build_shared" >&6; }
11447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11448 $as_echo_n "checking whether to build shared libraries... " >&6; }
11449 test "$can_build_shared" = "no" && enable_shared=no
11451 # On AIX, shared libraries and static libraries use the same namespace, and
11452 # are all built from PIC.
11453 case $host_os in
11454 aix3*)
11455 test "$enable_shared" = yes && enable_static=no
11456 if test -n "$RANLIB"; then
11457 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11458 postinstall_cmds='$RANLIB $lib'
11462 aix[4-9]*)
11463 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11464 test "$enable_shared" = yes && enable_static=no
11467 esac
11468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11469 $as_echo "$enable_shared" >&6; }
11471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11472 $as_echo_n "checking whether to build static libraries... " >&6; }
11473 # Make sure either enable_shared or enable_static is yes.
11474 test "$enable_shared" = yes || enable_static=yes
11475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11476 $as_echo "$enable_static" >&6; }
11482 ac_ext=c
11483 ac_cpp='$CPP $CPPFLAGS'
11484 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11485 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11486 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11488 CC="$lt_save_CC"
11502 ac_config_commands="$ac_config_commands libtool"
11507 # Only expand once:
11512 # Extract the first word of "ar", so it can be a program name with args.
11513 set dummy ar; ac_word=$2
11514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11515 $as_echo_n "checking for $ac_word... " >&6; }
11516 if ${ac_cv_path_AR+:} false; then :
11517 $as_echo_n "(cached) " >&6
11518 else
11519 case $AR in
11520 [\\/]* | ?:[\\/]*)
11521 ac_cv_path_AR="$AR" # Let the user override the test with a path.
11524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11525 for as_dir in $PATH
11527 IFS=$as_save_IFS
11528 test -z "$as_dir" && as_dir=.
11529 for ac_exec_ext in '' $ac_executable_extensions; do
11530 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11531 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
11532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11533 break 2
11535 done
11536 done
11537 IFS=$as_save_IFS
11539 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
11541 esac
11543 AR=$ac_cv_path_AR
11544 if test -n "$AR"; then
11545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
11546 $as_echo "$AR" >&6; }
11547 else
11548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11549 $as_echo "no" >&6; }
11553 # Extract the first word of "rm", so it can be a program name with args.
11554 set dummy rm; ac_word=$2
11555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11556 $as_echo_n "checking for $ac_word... " >&6; }
11557 if ${ac_cv_path_RM+:} false; then :
11558 $as_echo_n "(cached) " >&6
11559 else
11560 case $RM in
11561 [\\/]* | ?:[\\/]*)
11562 ac_cv_path_RM="$RM" # Let the user override the test with a path.
11565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11566 for as_dir in $PATH
11568 IFS=$as_save_IFS
11569 test -z "$as_dir" && as_dir=.
11570 for ac_exec_ext in '' $ac_executable_extensions; do
11571 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11572 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
11573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11574 break 2
11576 done
11577 done
11578 IFS=$as_save_IFS
11580 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
11582 esac
11584 RM=$ac_cv_path_RM
11585 if test -n "$RM"; then
11586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
11587 $as_echo "$RM" >&6; }
11588 else
11589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11590 $as_echo "no" >&6; }
11594 # Extract the first word of "cp", so it can be a program name with args.
11595 set dummy cp; ac_word=$2
11596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11597 $as_echo_n "checking for $ac_word... " >&6; }
11598 if ${ac_cv_path_CP+:} false; then :
11599 $as_echo_n "(cached) " >&6
11600 else
11601 case $CP in
11602 [\\/]* | ?:[\\/]*)
11603 ac_cv_path_CP="$CP" # Let the user override the test with a path.
11606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11607 for as_dir in $PATH
11609 IFS=$as_save_IFS
11610 test -z "$as_dir" && as_dir=.
11611 for ac_exec_ext in '' $ac_executable_extensions; do
11612 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11613 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
11614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11615 break 2
11617 done
11618 done
11619 IFS=$as_save_IFS
11621 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
11623 esac
11625 CP=$ac_cv_path_CP
11626 if test -n "$CP"; then
11627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
11628 $as_echo "$CP" >&6; }
11629 else
11630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11631 $as_echo "no" >&6; }
11635 # Extract the first word of "ln", so it can be a program name with args.
11636 set dummy ln; ac_word=$2
11637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11638 $as_echo_n "checking for $ac_word... " >&6; }
11639 if ${ac_cv_path_LN+:} false; then :
11640 $as_echo_n "(cached) " >&6
11641 else
11642 case $LN in
11643 [\\/]* | ?:[\\/]*)
11644 ac_cv_path_LN="$LN" # Let the user override the test with a path.
11647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11648 for as_dir in $PATH
11650 IFS=$as_save_IFS
11651 test -z "$as_dir" && as_dir=.
11652 for ac_exec_ext in '' $ac_executable_extensions; do
11653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11654 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
11655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11656 break 2
11658 done
11659 done
11660 IFS=$as_save_IFS
11662 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
11664 esac
11666 LN=$ac_cv_path_LN
11667 if test -n "$LN"; then
11668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
11669 $as_echo "$LN" >&6; }
11670 else
11671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11672 $as_echo "no" >&6; }
11676 # Extract the first word of "ls", so it can be a program name with args.
11677 set dummy ls; ac_word=$2
11678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11679 $as_echo_n "checking for $ac_word... " >&6; }
11680 if ${ac_cv_path_LS+:} false; then :
11681 $as_echo_n "(cached) " >&6
11682 else
11683 case $LS in
11684 [\\/]* | ?:[\\/]*)
11685 ac_cv_path_LS="$LS" # Let the user override the test with a path.
11688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11689 for as_dir in $PATH
11691 IFS=$as_save_IFS
11692 test -z "$as_dir" && as_dir=.
11693 for ac_exec_ext in '' $ac_executable_extensions; do
11694 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11695 ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
11696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11697 break 2
11699 done
11700 done
11701 IFS=$as_save_IFS
11703 test -z "$ac_cv_path_LS" && ac_cv_path_LS="ls"
11705 esac
11707 LS=$ac_cv_path_LS
11708 if test -n "$LS"; then
11709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
11710 $as_echo "$LS" >&6; }
11711 else
11712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11713 $as_echo "no" >&6; }
11717 # Extract the first word of "sed", so it can be a program name with args.
11718 set dummy sed; ac_word=$2
11719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11720 $as_echo_n "checking for $ac_word... " >&6; }
11721 if ${ac_cv_path_SED+:} false; then :
11722 $as_echo_n "(cached) " >&6
11723 else
11724 case $SED in
11725 [\\/]* | ?:[\\/]*)
11726 ac_cv_path_SED="$SED" # Let the user override the test with a path.
11729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11730 for as_dir in $PATH
11732 IFS=$as_save_IFS
11733 test -z "$as_dir" && as_dir=.
11734 for ac_exec_ext in '' $ac_executable_extensions; do
11735 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11736 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
11737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11738 break 2
11740 done
11741 done
11742 IFS=$as_save_IFS
11744 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
11746 esac
11748 SED=$ac_cv_path_SED
11749 if test -n "$SED"; then
11750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
11751 $as_echo "$SED" >&6; }
11752 else
11753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11754 $as_echo "no" >&6; }
11758 # Extract the first word of "make", so it can be a program name with args.
11759 set dummy make; ac_word=$2
11760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11761 $as_echo_n "checking for $ac_word... " >&6; }
11762 if ${ac_cv_path_MAKE+:} false; then :
11763 $as_echo_n "(cached) " >&6
11764 else
11765 case $MAKE in
11766 [\\/]* | ?:[\\/]*)
11767 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
11770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11771 for as_dir in $PATH
11773 IFS=$as_save_IFS
11774 test -z "$as_dir" && as_dir=.
11775 for ac_exec_ext in '' $ac_executable_extensions; do
11776 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11777 ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
11778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11779 break 2
11781 done
11782 done
11783 IFS=$as_save_IFS
11786 esac
11788 MAKE=$ac_cv_path_MAKE
11789 if test -n "$MAKE"; then
11790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
11791 $as_echo "$MAKE" >&6; }
11792 else
11793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11794 $as_echo "no" >&6; }
11802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11803 $as_echo_n "checking whether NLS is requested... " >&6; }
11804 # Check whether --enable-nls was given.
11805 if test "${enable_nls+set}" = set; then :
11806 enableval=$enable_nls; USE_NLS=$enableval
11807 else
11808 USE_NLS=yes
11811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
11812 $as_echo "$USE_NLS" >&6; }
11819 # Prepare PATH_SEPARATOR.
11820 # The user is always right.
11821 if test "${PATH_SEPARATOR+set}" != set; then
11822 echo "#! /bin/sh" >conf$$.sh
11823 echo "exit 0" >>conf$$.sh
11824 chmod +x conf$$.sh
11825 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11826 PATH_SEPARATOR=';'
11827 else
11828 PATH_SEPARATOR=:
11830 rm -f conf$$.sh
11833 # Find out how to test for executable files. Don't use a zero-byte file,
11834 # as systems may use methods other than mode bits to determine executability.
11835 cat >conf$$.file <<_ASEOF
11836 #! /bin/sh
11837 exit 0
11838 _ASEOF
11839 chmod +x conf$$.file
11840 if test -x conf$$.file >/dev/null 2>&1; then
11841 ac_executable_p="test -x"
11842 else
11843 ac_executable_p="test -f"
11845 rm -f conf$$.file
11847 # Extract the first word of "msgfmt", so it can be a program name with args.
11848 set dummy msgfmt; ac_word=$2
11849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11850 $as_echo_n "checking for $ac_word... " >&6; }
11851 if ${ac_cv_path_MSGFMT+:} false; then :
11852 $as_echo_n "(cached) " >&6
11853 else
11854 case "$MSGFMT" in
11855 [\\/]* | ?:[\\/]*)
11856 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
11859 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11860 for ac_dir in $PATH; do
11861 IFS="$ac_save_IFS"
11862 test -z "$ac_dir" && ac_dir=.
11863 for ac_exec_ext in '' $ac_executable_extensions; do
11864 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11865 echo "$as_me: trying $ac_dir/$ac_word..." >&5
11866 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
11867 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11868 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
11869 break 2
11872 done
11873 done
11874 IFS="$ac_save_IFS"
11875 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
11877 esac
11879 MSGFMT="$ac_cv_path_MSGFMT"
11880 if test "$MSGFMT" != ":"; then
11881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
11882 $as_echo "$MSGFMT" >&6; }
11883 else
11884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11885 $as_echo "no" >&6; }
11888 # Extract the first word of "gmsgfmt", so it can be a program name with args.
11889 set dummy gmsgfmt; ac_word=$2
11890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11891 $as_echo_n "checking for $ac_word... " >&6; }
11892 if ${ac_cv_path_GMSGFMT+:} false; then :
11893 $as_echo_n "(cached) " >&6
11894 else
11895 case $GMSGFMT in
11896 [\\/]* | ?:[\\/]*)
11897 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
11900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11901 for as_dir in $PATH
11903 IFS=$as_save_IFS
11904 test -z "$as_dir" && as_dir=.
11905 for ac_exec_ext in '' $ac_executable_extensions; do
11906 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11907 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
11908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11909 break 2
11911 done
11912 done
11913 IFS=$as_save_IFS
11915 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
11917 esac
11919 GMSGFMT=$ac_cv_path_GMSGFMT
11920 if test -n "$GMSGFMT"; then
11921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
11922 $as_echo "$GMSGFMT" >&6; }
11923 else
11924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11925 $as_echo "no" >&6; }
11930 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
11931 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
11932 *) MSGFMT_015=$MSGFMT ;;
11933 esac
11935 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
11936 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
11937 *) GMSGFMT_015=$GMSGFMT ;;
11938 esac
11942 # Prepare PATH_SEPARATOR.
11943 # The user is always right.
11944 if test "${PATH_SEPARATOR+set}" != set; then
11945 echo "#! /bin/sh" >conf$$.sh
11946 echo "exit 0" >>conf$$.sh
11947 chmod +x conf$$.sh
11948 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11949 PATH_SEPARATOR=';'
11950 else
11951 PATH_SEPARATOR=:
11953 rm -f conf$$.sh
11956 # Find out how to test for executable files. Don't use a zero-byte file,
11957 # as systems may use methods other than mode bits to determine executability.
11958 cat >conf$$.file <<_ASEOF
11959 #! /bin/sh
11960 exit 0
11961 _ASEOF
11962 chmod +x conf$$.file
11963 if test -x conf$$.file >/dev/null 2>&1; then
11964 ac_executable_p="test -x"
11965 else
11966 ac_executable_p="test -f"
11968 rm -f conf$$.file
11970 # Extract the first word of "xgettext", so it can be a program name with args.
11971 set dummy xgettext; ac_word=$2
11972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11973 $as_echo_n "checking for $ac_word... " >&6; }
11974 if ${ac_cv_path_XGETTEXT+:} false; then :
11975 $as_echo_n "(cached) " >&6
11976 else
11977 case "$XGETTEXT" in
11978 [\\/]* | ?:[\\/]*)
11979 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
11982 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11983 for ac_dir in $PATH; do
11984 IFS="$ac_save_IFS"
11985 test -z "$ac_dir" && ac_dir=.
11986 for ac_exec_ext in '' $ac_executable_extensions; do
11987 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11988 echo "$as_me: trying $ac_dir/$ac_word..." >&5
11989 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
11990 (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
11991 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
11992 break 2
11995 done
11996 done
11997 IFS="$ac_save_IFS"
11998 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
12000 esac
12002 XGETTEXT="$ac_cv_path_XGETTEXT"
12003 if test "$XGETTEXT" != ":"; then
12004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
12005 $as_echo "$XGETTEXT" >&6; }
12006 else
12007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12008 $as_echo "no" >&6; }
12011 rm -f messages.po
12013 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
12014 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
12015 *) XGETTEXT_015=$XGETTEXT ;;
12016 esac
12020 # Prepare PATH_SEPARATOR.
12021 # The user is always right.
12022 if test "${PATH_SEPARATOR+set}" != set; then
12023 echo "#! /bin/sh" >conf$$.sh
12024 echo "exit 0" >>conf$$.sh
12025 chmod +x conf$$.sh
12026 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12027 PATH_SEPARATOR=';'
12028 else
12029 PATH_SEPARATOR=:
12031 rm -f conf$$.sh
12034 # Find out how to test for executable files. Don't use a zero-byte file,
12035 # as systems may use methods other than mode bits to determine executability.
12036 cat >conf$$.file <<_ASEOF
12037 #! /bin/sh
12038 exit 0
12039 _ASEOF
12040 chmod +x conf$$.file
12041 if test -x conf$$.file >/dev/null 2>&1; then
12042 ac_executable_p="test -x"
12043 else
12044 ac_executable_p="test -f"
12046 rm -f conf$$.file
12048 # Extract the first word of "msgmerge", so it can be a program name with args.
12049 set dummy msgmerge; ac_word=$2
12050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12051 $as_echo_n "checking for $ac_word... " >&6; }
12052 if ${ac_cv_path_MSGMERGE+:} false; then :
12053 $as_echo_n "(cached) " >&6
12054 else
12055 case "$MSGMERGE" in
12056 [\\/]* | ?:[\\/]*)
12057 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
12060 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12061 for ac_dir in $PATH; do
12062 IFS="$ac_save_IFS"
12063 test -z "$ac_dir" && ac_dir=.
12064 for ac_exec_ext in '' $ac_executable_extensions; do
12065 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12066 echo "$as_me: trying $ac_dir/$ac_word..." >&5
12067 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
12068 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
12069 break 2
12072 done
12073 done
12074 IFS="$ac_save_IFS"
12075 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
12077 esac
12079 MSGMERGE="$ac_cv_path_MSGMERGE"
12080 if test "$MSGMERGE" != ":"; then
12081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
12082 $as_echo "$MSGMERGE" >&6; }
12083 else
12084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12085 $as_echo "no" >&6; }
12089 test -n "$localedir" || localedir='${datadir}/locale'
12092 ac_config_commands="$ac_config_commands po-directories"
12096 if test "X$prefix" = "XNONE"; then
12097 acl_final_prefix="$ac_default_prefix"
12098 else
12099 acl_final_prefix="$prefix"
12101 if test "X$exec_prefix" = "XNONE"; then
12102 acl_final_exec_prefix='${prefix}'
12103 else
12104 acl_final_exec_prefix="$exec_prefix"
12106 acl_save_prefix="$prefix"
12107 prefix="$acl_final_prefix"
12108 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
12109 prefix="$acl_save_prefix"
12112 # Check whether --with-gnu-ld was given.
12113 if test "${with_gnu_ld+set}" = set; then :
12114 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12115 else
12116 with_gnu_ld=no
12119 # Prepare PATH_SEPARATOR.
12120 # The user is always right.
12121 if test "${PATH_SEPARATOR+set}" != set; then
12122 echo "#! /bin/sh" >conf$$.sh
12123 echo "exit 0" >>conf$$.sh
12124 chmod +x conf$$.sh
12125 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12126 PATH_SEPARATOR=';'
12127 else
12128 PATH_SEPARATOR=:
12130 rm -f conf$$.sh
12132 ac_prog=ld
12133 if test "$GCC" = yes; then
12134 # Check if gcc -print-prog-name=ld gives a path.
12135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
12136 $as_echo_n "checking for ld used by GCC... " >&6; }
12137 case $host in
12138 *-*-mingw*)
12139 # gcc leaves a trailing carriage return which upsets mingw
12140 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12142 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12143 esac
12144 case $ac_prog in
12145 # Accept absolute paths.
12146 [\\/]* | [A-Za-z]:[\\/]*)
12147 re_direlt='/[^/][^/]*/\.\./'
12148 # Canonicalize the path of ld
12149 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
12150 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12151 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
12152 done
12153 test -z "$LD" && LD="$ac_prog"
12156 # If it fails, then pretend we aren't using GCC.
12157 ac_prog=ld
12160 # If it is relative, then search for the first ld in PATH.
12161 with_gnu_ld=unknown
12163 esac
12164 elif test "$with_gnu_ld" = yes; then
12165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12166 $as_echo_n "checking for GNU ld... " >&6; }
12167 else
12168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12169 $as_echo_n "checking for non-GNU ld... " >&6; }
12171 if ${acl_cv_path_LD+:} false; then :
12172 $as_echo_n "(cached) " >&6
12173 else
12174 if test -z "$LD"; then
12175 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
12176 for ac_dir in $PATH; do
12177 test -z "$ac_dir" && ac_dir=.
12178 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12179 acl_cv_path_LD="$ac_dir/$ac_prog"
12180 # Check to see if the program is GNU ld. I'd rather use --version,
12181 # but apparently some GNU ld's only accept -v.
12182 # Break only if it was the GNU/non-GNU ld that we prefer.
12183 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
12184 *GNU* | *'with BFD'*)
12185 test "$with_gnu_ld" != no && break ;;
12187 test "$with_gnu_ld" != yes && break ;;
12188 esac
12190 done
12191 IFS="$ac_save_ifs"
12192 else
12193 acl_cv_path_LD="$LD" # Let the user override the test with a path.
12197 LD="$acl_cv_path_LD"
12198 if test -n "$LD"; then
12199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12200 $as_echo "$LD" >&6; }
12201 else
12202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12203 $as_echo "no" >&6; }
12205 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12207 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12208 if ${acl_cv_prog_gnu_ld+:} false; then :
12209 $as_echo_n "(cached) " >&6
12210 else
12211 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
12212 case `$LD -v 2>&1 </dev/null` in
12213 *GNU* | *'with BFD'*)
12214 acl_cv_prog_gnu_ld=yes ;;
12216 acl_cv_prog_gnu_ld=no ;;
12217 esac
12219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
12220 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
12221 with_gnu_ld=$acl_cv_prog_gnu_ld
12226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
12227 $as_echo_n "checking for shared library run path origin... " >&6; }
12228 if ${acl_cv_rpath+:} false; then :
12229 $as_echo_n "(cached) " >&6
12230 else
12232 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
12233 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
12234 . ./conftest.sh
12235 rm -f ./conftest.sh
12236 acl_cv_rpath=done
12239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
12240 $as_echo "$acl_cv_rpath" >&6; }
12241 wl="$acl_cv_wl"
12242 libext="$acl_cv_libext"
12243 shlibext="$acl_cv_shlibext"
12244 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
12245 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
12246 hardcode_direct="$acl_cv_hardcode_direct"
12247 hardcode_minus_L="$acl_cv_hardcode_minus_L"
12248 # Check whether --enable-rpath was given.
12249 if test "${enable_rpath+set}" = set; then :
12250 enableval=$enable_rpath; :
12251 else
12252 enable_rpath=yes
12257 acl_libdirstem=lib
12258 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
12259 if test -n "$searchpath"; then
12260 acl_save_IFS="${IFS= }"; IFS=":"
12261 for searchdir in $searchpath; do
12262 if test -d "$searchdir"; then
12263 case "$searchdir" in
12264 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
12265 *) searchdir=`cd "$searchdir" && pwd`
12266 case "$searchdir" in
12267 */lib64 ) acl_libdirstem=lib64 ;;
12268 esac ;;
12269 esac
12271 done
12272 IFS="$acl_save_IFS"
12282 use_additional=yes
12284 acl_save_prefix="$prefix"
12285 prefix="$acl_final_prefix"
12286 acl_save_exec_prefix="$exec_prefix"
12287 exec_prefix="$acl_final_exec_prefix"
12289 eval additional_includedir=\"$includedir\"
12290 eval additional_libdir=\"$libdir\"
12292 exec_prefix="$acl_save_exec_prefix"
12293 prefix="$acl_save_prefix"
12296 # Check whether --with-libiconv-prefix was given.
12297 if test "${with_libiconv_prefix+set}" = set; then :
12298 withval=$with_libiconv_prefix;
12299 if test "X$withval" = "Xno"; then
12300 use_additional=no
12301 else
12302 if test "X$withval" = "X"; then
12304 acl_save_prefix="$prefix"
12305 prefix="$acl_final_prefix"
12306 acl_save_exec_prefix="$exec_prefix"
12307 exec_prefix="$acl_final_exec_prefix"
12309 eval additional_includedir=\"$includedir\"
12310 eval additional_libdir=\"$libdir\"
12312 exec_prefix="$acl_save_exec_prefix"
12313 prefix="$acl_save_prefix"
12315 else
12316 additional_includedir="$withval/include"
12317 additional_libdir="$withval/$acl_libdirstem"
12323 LIBICONV=
12324 LTLIBICONV=
12325 INCICONV=
12326 rpathdirs=
12327 ltrpathdirs=
12328 names_already_handled=
12329 names_next_round='iconv '
12330 while test -n "$names_next_round"; do
12331 names_this_round="$names_next_round"
12332 names_next_round=
12333 for name in $names_this_round; do
12334 already_handled=
12335 for n in $names_already_handled; do
12336 if test "$n" = "$name"; then
12337 already_handled=yes
12338 break
12340 done
12341 if test -z "$already_handled"; then
12342 names_already_handled="$names_already_handled $name"
12343 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
12344 eval value=\"\$HAVE_LIB$uppername\"
12345 if test -n "$value"; then
12346 if test "$value" = yes; then
12347 eval value=\"\$LIB$uppername\"
12348 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
12349 eval value=\"\$LTLIB$uppername\"
12350 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
12351 else
12354 else
12355 found_dir=
12356 found_la=
12357 found_so=
12358 found_a=
12359 if test $use_additional = yes; then
12360 if test -n "$shlibext" \
12361 && { test -f "$additional_libdir/lib$name.$shlibext" \
12362 || { test "$shlibext" = dll \
12363 && test -f "$additional_libdir/lib$name.dll.a"; }; }; then
12364 found_dir="$additional_libdir"
12365 if test -f "$additional_libdir/lib$name.$shlibext"; then
12366 found_so="$additional_libdir/lib$name.$shlibext"
12367 else
12368 found_so="$additional_libdir/lib$name.dll.a"
12370 if test -f "$additional_libdir/lib$name.la"; then
12371 found_la="$additional_libdir/lib$name.la"
12373 else
12374 if test -f "$additional_libdir/lib$name.$libext"; then
12375 found_dir="$additional_libdir"
12376 found_a="$additional_libdir/lib$name.$libext"
12377 if test -f "$additional_libdir/lib$name.la"; then
12378 found_la="$additional_libdir/lib$name.la"
12383 if test "X$found_dir" = "X"; then
12384 for x in $LDFLAGS $LTLIBICONV; do
12386 acl_save_prefix="$prefix"
12387 prefix="$acl_final_prefix"
12388 acl_save_exec_prefix="$exec_prefix"
12389 exec_prefix="$acl_final_exec_prefix"
12390 eval x=\"$x\"
12391 exec_prefix="$acl_save_exec_prefix"
12392 prefix="$acl_save_prefix"
12394 case "$x" in
12395 -L*)
12396 dir=`echo "X$x" | sed -e 's/^X-L//'`
12397 if test -n "$shlibext" \
12398 && { test -f "$dir/lib$name.$shlibext" \
12399 || { test "$shlibext" = dll \
12400 && test -f "$dir/lib$name.dll.a"; }; }; then
12401 found_dir="$dir"
12402 if test -f "$dir/lib$name.$shlibext"; then
12403 found_so="$dir/lib$name.$shlibext"
12404 else
12405 found_so="$dir/lib$name.dll.a"
12407 if test -f "$dir/lib$name.la"; then
12408 found_la="$dir/lib$name.la"
12410 else
12411 if test -f "$dir/lib$name.$libext"; then
12412 found_dir="$dir"
12413 found_a="$dir/lib$name.$libext"
12414 if test -f "$dir/lib$name.la"; then
12415 found_la="$dir/lib$name.la"
12420 esac
12421 if test "X$found_dir" != "X"; then
12422 break
12424 done
12426 if test "X$found_dir" != "X"; then
12427 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
12428 if test "X$found_so" != "X"; then
12429 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
12430 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12431 else
12432 haveit=
12433 for x in $ltrpathdirs; do
12434 if test "X$x" = "X$found_dir"; then
12435 haveit=yes
12436 break
12438 done
12439 if test -z "$haveit"; then
12440 ltrpathdirs="$ltrpathdirs $found_dir"
12442 if test "$hardcode_direct" = yes; then
12443 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12444 else
12445 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
12446 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12447 haveit=
12448 for x in $rpathdirs; do
12449 if test "X$x" = "X$found_dir"; then
12450 haveit=yes
12451 break
12453 done
12454 if test -z "$haveit"; then
12455 rpathdirs="$rpathdirs $found_dir"
12457 else
12458 haveit=
12459 for x in $LDFLAGS $LIBICONV; do
12461 acl_save_prefix="$prefix"
12462 prefix="$acl_final_prefix"
12463 acl_save_exec_prefix="$exec_prefix"
12464 exec_prefix="$acl_final_exec_prefix"
12465 eval x=\"$x\"
12466 exec_prefix="$acl_save_exec_prefix"
12467 prefix="$acl_save_prefix"
12469 if test "X$x" = "X-L$found_dir"; then
12470 haveit=yes
12471 break
12473 done
12474 if test -z "$haveit"; then
12475 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
12477 if test "$hardcode_minus_L" != no; then
12478 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12479 else
12480 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
12485 else
12486 if test "X$found_a" != "X"; then
12487 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
12488 else
12489 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
12492 additional_includedir=
12493 case "$found_dir" in
12494 */$acl_libdirstem | */$acl_libdirstem/)
12495 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
12496 additional_includedir="$basedir/include"
12498 esac
12499 if test "X$additional_includedir" != "X"; then
12500 if test "X$additional_includedir" != "X/usr/include"; then
12501 haveit=
12502 if test "X$additional_includedir" = "X/usr/local/include"; then
12503 if test -n "$GCC"; then
12504 case $host_os in
12505 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12506 esac
12509 if test -z "$haveit"; then
12510 for x in $CPPFLAGS $INCICONV; do
12512 acl_save_prefix="$prefix"
12513 prefix="$acl_final_prefix"
12514 acl_save_exec_prefix="$exec_prefix"
12515 exec_prefix="$acl_final_exec_prefix"
12516 eval x=\"$x\"
12517 exec_prefix="$acl_save_exec_prefix"
12518 prefix="$acl_save_prefix"
12520 if test "X$x" = "X-I$additional_includedir"; then
12521 haveit=yes
12522 break
12524 done
12525 if test -z "$haveit"; then
12526 if test -d "$additional_includedir"; then
12527 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
12533 if test -n "$found_la"; then
12534 save_libdir="$libdir"
12535 case "$found_la" in
12536 */* | *\\*) . "$found_la" ;;
12537 *) . "./$found_la" ;;
12538 esac
12539 libdir="$save_libdir"
12540 for dep in $dependency_libs; do
12541 case "$dep" in
12542 -L*)
12543 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
12544 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
12545 haveit=
12546 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
12547 if test -n "$GCC"; then
12548 case $host_os in
12549 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12550 esac
12553 if test -z "$haveit"; then
12554 haveit=
12555 for x in $LDFLAGS $LIBICONV; do
12557 acl_save_prefix="$prefix"
12558 prefix="$acl_final_prefix"
12559 acl_save_exec_prefix="$exec_prefix"
12560 exec_prefix="$acl_final_exec_prefix"
12561 eval x=\"$x\"
12562 exec_prefix="$acl_save_exec_prefix"
12563 prefix="$acl_save_prefix"
12565 if test "X$x" = "X-L$additional_libdir"; then
12566 haveit=yes
12567 break
12569 done
12570 if test -z "$haveit"; then
12571 if test -d "$additional_libdir"; then
12572 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
12575 haveit=
12576 for x in $LDFLAGS $LTLIBICONV; do
12578 acl_save_prefix="$prefix"
12579 prefix="$acl_final_prefix"
12580 acl_save_exec_prefix="$exec_prefix"
12581 exec_prefix="$acl_final_exec_prefix"
12582 eval x=\"$x\"
12583 exec_prefix="$acl_save_exec_prefix"
12584 prefix="$acl_save_prefix"
12586 if test "X$x" = "X-L$additional_libdir"; then
12587 haveit=yes
12588 break
12590 done
12591 if test -z "$haveit"; then
12592 if test -d "$additional_libdir"; then
12593 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
12599 -R*)
12600 dir=`echo "X$dep" | sed -e 's/^X-R//'`
12601 if test "$enable_rpath" != no; then
12602 haveit=
12603 for x in $rpathdirs; do
12604 if test "X$x" = "X$dir"; then
12605 haveit=yes
12606 break
12608 done
12609 if test -z "$haveit"; then
12610 rpathdirs="$rpathdirs $dir"
12612 haveit=
12613 for x in $ltrpathdirs; do
12614 if test "X$x" = "X$dir"; then
12615 haveit=yes
12616 break
12618 done
12619 if test -z "$haveit"; then
12620 ltrpathdirs="$ltrpathdirs $dir"
12624 -l*)
12625 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
12627 *.la)
12628 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
12631 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
12632 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
12634 esac
12635 done
12637 else
12638 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
12639 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
12643 done
12644 done
12645 if test "X$rpathdirs" != "X"; then
12646 if test -n "$hardcode_libdir_separator"; then
12647 alldirs=
12648 for found_dir in $rpathdirs; do
12649 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
12650 done
12651 acl_save_libdir="$libdir"
12652 libdir="$alldirs"
12653 eval flag=\"$hardcode_libdir_flag_spec\"
12654 libdir="$acl_save_libdir"
12655 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
12656 else
12657 for found_dir in $rpathdirs; do
12658 acl_save_libdir="$libdir"
12659 libdir="$found_dir"
12660 eval flag=\"$hardcode_libdir_flag_spec\"
12661 libdir="$acl_save_libdir"
12662 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
12663 done
12666 if test "X$ltrpathdirs" != "X"; then
12667 for found_dir in $ltrpathdirs; do
12668 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
12669 done
12696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
12697 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
12698 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
12699 $as_echo_n "(cached) " >&6
12700 else
12701 gt_save_LIBS="$LIBS"
12702 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
12703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12704 /* end confdefs.h. */
12705 #include <CoreFoundation/CFPreferences.h>
12707 main ()
12709 CFPreferencesCopyAppValue(NULL, NULL)
12711 return 0;
12713 _ACEOF
12714 if ac_fn_c_try_link "$LINENO"; then :
12715 gt_cv_func_CFPreferencesCopyAppValue=yes
12716 else
12717 gt_cv_func_CFPreferencesCopyAppValue=no
12719 rm -f core conftest.err conftest.$ac_objext \
12720 conftest$ac_exeext conftest.$ac_ext
12721 LIBS="$gt_save_LIBS"
12723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
12724 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
12725 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
12727 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
12730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
12731 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
12732 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
12733 $as_echo_n "(cached) " >&6
12734 else
12735 gt_save_LIBS="$LIBS"
12736 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
12737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12738 /* end confdefs.h. */
12739 #include <CoreFoundation/CFLocale.h>
12741 main ()
12743 CFLocaleCopyCurrent();
12745 return 0;
12747 _ACEOF
12748 if ac_fn_c_try_link "$LINENO"; then :
12749 gt_cv_func_CFLocaleCopyCurrent=yes
12750 else
12751 gt_cv_func_CFLocaleCopyCurrent=no
12753 rm -f core conftest.err conftest.$ac_objext \
12754 conftest$ac_exeext conftest.$ac_ext
12755 LIBS="$gt_save_LIBS"
12757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
12758 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
12759 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
12761 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
12764 INTL_MACOSX_LIBS=
12765 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
12766 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
12774 LIBINTL=
12775 LTLIBINTL=
12776 POSUB=
12778 case " $gt_needs " in
12779 *" need-formatstring-macros "*) gt_api_version=3 ;;
12780 *" need-ngettext "*) gt_api_version=2 ;;
12781 *) gt_api_version=1 ;;
12782 esac
12783 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
12784 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
12786 if test "$USE_NLS" = "yes"; then
12787 gt_use_preinstalled_gnugettext=no
12790 if test $gt_api_version -ge 3; then
12791 gt_revision_test_code='
12792 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
12793 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
12794 #endif
12795 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
12797 else
12798 gt_revision_test_code=
12800 if test $gt_api_version -ge 2; then
12801 gt_expression_test_code=' + * ngettext ("", "", 0)'
12802 else
12803 gt_expression_test_code=
12806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
12807 $as_echo_n "checking for GNU gettext in libc... " >&6; }
12808 if eval \${$gt_func_gnugettext_libc+:} false; then :
12809 $as_echo_n "(cached) " >&6
12810 else
12811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12812 /* end confdefs.h. */
12813 #include <libintl.h>
12814 $gt_revision_test_code
12815 extern int _nl_msg_cat_cntr;
12816 extern int *_nl_domain_bindings;
12818 main ()
12820 bindtextdomain ("", "");
12821 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
12823 return 0;
12825 _ACEOF
12826 if ac_fn_c_try_link "$LINENO"; then :
12827 eval "$gt_func_gnugettext_libc=yes"
12828 else
12829 eval "$gt_func_gnugettext_libc=no"
12831 rm -f core conftest.err conftest.$ac_objext \
12832 conftest$ac_exeext conftest.$ac_ext
12834 eval ac_res=\$$gt_func_gnugettext_libc
12835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12836 $as_echo "$ac_res" >&6; }
12838 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
12844 am_save_CPPFLAGS="$CPPFLAGS"
12846 for element in $INCICONV; do
12847 haveit=
12848 for x in $CPPFLAGS; do
12850 acl_save_prefix="$prefix"
12851 prefix="$acl_final_prefix"
12852 acl_save_exec_prefix="$exec_prefix"
12853 exec_prefix="$acl_final_exec_prefix"
12854 eval x=\"$x\"
12855 exec_prefix="$acl_save_exec_prefix"
12856 prefix="$acl_save_prefix"
12858 if test "X$x" = "X$element"; then
12859 haveit=yes
12860 break
12862 done
12863 if test -z "$haveit"; then
12864 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12866 done
12869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
12870 $as_echo_n "checking for iconv... " >&6; }
12871 if ${am_cv_func_iconv+:} false; then :
12872 $as_echo_n "(cached) " >&6
12873 else
12875 am_cv_func_iconv="no, consider installing GNU libiconv"
12876 am_cv_lib_iconv=no
12877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12878 /* end confdefs.h. */
12879 #include <stdlib.h>
12880 #include <iconv.h>
12882 main ()
12884 iconv_t cd = iconv_open("","");
12885 iconv(cd,NULL,NULL,NULL,NULL);
12886 iconv_close(cd);
12888 return 0;
12890 _ACEOF
12891 if ac_fn_c_try_link "$LINENO"; then :
12892 am_cv_func_iconv=yes
12894 rm -f core conftest.err conftest.$ac_objext \
12895 conftest$ac_exeext conftest.$ac_ext
12896 if test "$am_cv_func_iconv" != yes; then
12897 am_save_LIBS="$LIBS"
12898 LIBS="$LIBS $LIBICONV"
12899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12900 /* end confdefs.h. */
12901 #include <stdlib.h>
12902 #include <iconv.h>
12904 main ()
12906 iconv_t cd = iconv_open("","");
12907 iconv(cd,NULL,NULL,NULL,NULL);
12908 iconv_close(cd);
12910 return 0;
12912 _ACEOF
12913 if ac_fn_c_try_link "$LINENO"; then :
12914 am_cv_lib_iconv=yes
12915 am_cv_func_iconv=yes
12917 rm -f core conftest.err conftest.$ac_objext \
12918 conftest$ac_exeext conftest.$ac_ext
12919 LIBS="$am_save_LIBS"
12923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
12924 $as_echo "$am_cv_func_iconv" >&6; }
12925 if test "$am_cv_func_iconv" = yes; then
12927 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
12930 if test "$am_cv_lib_iconv" = yes; then
12931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
12932 $as_echo_n "checking how to link with libiconv... " >&6; }
12933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
12934 $as_echo "$LIBICONV" >&6; }
12935 else
12936 CPPFLAGS="$am_save_CPPFLAGS"
12937 LIBICONV=
12938 LTLIBICONV=
12947 use_additional=yes
12949 acl_save_prefix="$prefix"
12950 prefix="$acl_final_prefix"
12951 acl_save_exec_prefix="$exec_prefix"
12952 exec_prefix="$acl_final_exec_prefix"
12954 eval additional_includedir=\"$includedir\"
12955 eval additional_libdir=\"$libdir\"
12957 exec_prefix="$acl_save_exec_prefix"
12958 prefix="$acl_save_prefix"
12961 # Check whether --with-libintl-prefix was given.
12962 if test "${with_libintl_prefix+set}" = set; then :
12963 withval=$with_libintl_prefix;
12964 if test "X$withval" = "Xno"; then
12965 use_additional=no
12966 else
12967 if test "X$withval" = "X"; then
12969 acl_save_prefix="$prefix"
12970 prefix="$acl_final_prefix"
12971 acl_save_exec_prefix="$exec_prefix"
12972 exec_prefix="$acl_final_exec_prefix"
12974 eval additional_includedir=\"$includedir\"
12975 eval additional_libdir=\"$libdir\"
12977 exec_prefix="$acl_save_exec_prefix"
12978 prefix="$acl_save_prefix"
12980 else
12981 additional_includedir="$withval/include"
12982 additional_libdir="$withval/$acl_libdirstem"
12988 LIBINTL=
12989 LTLIBINTL=
12990 INCINTL=
12991 rpathdirs=
12992 ltrpathdirs=
12993 names_already_handled=
12994 names_next_round='intl '
12995 while test -n "$names_next_round"; do
12996 names_this_round="$names_next_round"
12997 names_next_round=
12998 for name in $names_this_round; do
12999 already_handled=
13000 for n in $names_already_handled; do
13001 if test "$n" = "$name"; then
13002 already_handled=yes
13003 break
13005 done
13006 if test -z "$already_handled"; then
13007 names_already_handled="$names_already_handled $name"
13008 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
13009 eval value=\"\$HAVE_LIB$uppername\"
13010 if test -n "$value"; then
13011 if test "$value" = yes; then
13012 eval value=\"\$LIB$uppername\"
13013 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
13014 eval value=\"\$LTLIB$uppername\"
13015 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
13016 else
13019 else
13020 found_dir=
13021 found_la=
13022 found_so=
13023 found_a=
13024 if test $use_additional = yes; then
13025 if test -n "$shlibext" \
13026 && { test -f "$additional_libdir/lib$name.$shlibext" \
13027 || { test "$shlibext" = dll \
13028 && test -f "$additional_libdir/lib$name.dll.a"; }; }; then
13029 found_dir="$additional_libdir"
13030 if test -f "$additional_libdir/lib$name.$shlibext"; then
13031 found_so="$additional_libdir/lib$name.$shlibext"
13032 else
13033 found_so="$additional_libdir/lib$name.dll.a"
13035 if test -f "$additional_libdir/lib$name.la"; then
13036 found_la="$additional_libdir/lib$name.la"
13038 else
13039 if test -f "$additional_libdir/lib$name.$libext"; then
13040 found_dir="$additional_libdir"
13041 found_a="$additional_libdir/lib$name.$libext"
13042 if test -f "$additional_libdir/lib$name.la"; then
13043 found_la="$additional_libdir/lib$name.la"
13048 if test "X$found_dir" = "X"; then
13049 for x in $LDFLAGS $LTLIBINTL; do
13051 acl_save_prefix="$prefix"
13052 prefix="$acl_final_prefix"
13053 acl_save_exec_prefix="$exec_prefix"
13054 exec_prefix="$acl_final_exec_prefix"
13055 eval x=\"$x\"
13056 exec_prefix="$acl_save_exec_prefix"
13057 prefix="$acl_save_prefix"
13059 case "$x" in
13060 -L*)
13061 dir=`echo "X$x" | sed -e 's/^X-L//'`
13062 if test -n "$shlibext" \
13063 && { test -f "$dir/lib$name.$shlibext" \
13064 || { test "$shlibext" = dll \
13065 && test -f "$dir/lib$name.dll.a"; }; }; then
13066 found_dir="$dir"
13067 if test -f "$dir/lib$name.$shlibext"; then
13068 found_so="$dir/lib$name.$shlibext"
13069 else
13070 found_so="$dir/lib$name.dll.a"
13072 if test -f "$dir/lib$name.la"; then
13073 found_la="$dir/lib$name.la"
13075 else
13076 if test -f "$dir/lib$name.$libext"; then
13077 found_dir="$dir"
13078 found_a="$dir/lib$name.$libext"
13079 if test -f "$dir/lib$name.la"; then
13080 found_la="$dir/lib$name.la"
13085 esac
13086 if test "X$found_dir" != "X"; then
13087 break
13089 done
13091 if test "X$found_dir" != "X"; then
13092 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
13093 if test "X$found_so" != "X"; then
13094 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
13095 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13096 else
13097 haveit=
13098 for x in $ltrpathdirs; do
13099 if test "X$x" = "X$found_dir"; then
13100 haveit=yes
13101 break
13103 done
13104 if test -z "$haveit"; then
13105 ltrpathdirs="$ltrpathdirs $found_dir"
13107 if test "$hardcode_direct" = yes; then
13108 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13109 else
13110 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
13111 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13112 haveit=
13113 for x in $rpathdirs; do
13114 if test "X$x" = "X$found_dir"; then
13115 haveit=yes
13116 break
13118 done
13119 if test -z "$haveit"; then
13120 rpathdirs="$rpathdirs $found_dir"
13122 else
13123 haveit=
13124 for x in $LDFLAGS $LIBINTL; do
13126 acl_save_prefix="$prefix"
13127 prefix="$acl_final_prefix"
13128 acl_save_exec_prefix="$exec_prefix"
13129 exec_prefix="$acl_final_exec_prefix"
13130 eval x=\"$x\"
13131 exec_prefix="$acl_save_exec_prefix"
13132 prefix="$acl_save_prefix"
13134 if test "X$x" = "X-L$found_dir"; then
13135 haveit=yes
13136 break
13138 done
13139 if test -z "$haveit"; then
13140 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
13142 if test "$hardcode_minus_L" != no; then
13143 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13144 else
13145 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
13150 else
13151 if test "X$found_a" != "X"; then
13152 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
13153 else
13154 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
13157 additional_includedir=
13158 case "$found_dir" in
13159 */$acl_libdirstem | */$acl_libdirstem/)
13160 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
13161 additional_includedir="$basedir/include"
13163 esac
13164 if test "X$additional_includedir" != "X"; then
13165 if test "X$additional_includedir" != "X/usr/include"; then
13166 haveit=
13167 if test "X$additional_includedir" = "X/usr/local/include"; then
13168 if test -n "$GCC"; then
13169 case $host_os in
13170 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13171 esac
13174 if test -z "$haveit"; then
13175 for x in $CPPFLAGS $INCINTL; do
13177 acl_save_prefix="$prefix"
13178 prefix="$acl_final_prefix"
13179 acl_save_exec_prefix="$exec_prefix"
13180 exec_prefix="$acl_final_exec_prefix"
13181 eval x=\"$x\"
13182 exec_prefix="$acl_save_exec_prefix"
13183 prefix="$acl_save_prefix"
13185 if test "X$x" = "X-I$additional_includedir"; then
13186 haveit=yes
13187 break
13189 done
13190 if test -z "$haveit"; then
13191 if test -d "$additional_includedir"; then
13192 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
13198 if test -n "$found_la"; then
13199 save_libdir="$libdir"
13200 case "$found_la" in
13201 */* | *\\*) . "$found_la" ;;
13202 *) . "./$found_la" ;;
13203 esac
13204 libdir="$save_libdir"
13205 for dep in $dependency_libs; do
13206 case "$dep" in
13207 -L*)
13208 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13209 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
13210 haveit=
13211 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
13212 if test -n "$GCC"; then
13213 case $host_os in
13214 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13215 esac
13218 if test -z "$haveit"; then
13219 haveit=
13220 for x in $LDFLAGS $LIBINTL; do
13222 acl_save_prefix="$prefix"
13223 prefix="$acl_final_prefix"
13224 acl_save_exec_prefix="$exec_prefix"
13225 exec_prefix="$acl_final_exec_prefix"
13226 eval x=\"$x\"
13227 exec_prefix="$acl_save_exec_prefix"
13228 prefix="$acl_save_prefix"
13230 if test "X$x" = "X-L$additional_libdir"; then
13231 haveit=yes
13232 break
13234 done
13235 if test -z "$haveit"; then
13236 if test -d "$additional_libdir"; then
13237 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
13240 haveit=
13241 for x in $LDFLAGS $LTLIBINTL; do
13243 acl_save_prefix="$prefix"
13244 prefix="$acl_final_prefix"
13245 acl_save_exec_prefix="$exec_prefix"
13246 exec_prefix="$acl_final_exec_prefix"
13247 eval x=\"$x\"
13248 exec_prefix="$acl_save_exec_prefix"
13249 prefix="$acl_save_prefix"
13251 if test "X$x" = "X-L$additional_libdir"; then
13252 haveit=yes
13253 break
13255 done
13256 if test -z "$haveit"; then
13257 if test -d "$additional_libdir"; then
13258 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
13264 -R*)
13265 dir=`echo "X$dep" | sed -e 's/^X-R//'`
13266 if test "$enable_rpath" != no; then
13267 haveit=
13268 for x in $rpathdirs; do
13269 if test "X$x" = "X$dir"; then
13270 haveit=yes
13271 break
13273 done
13274 if test -z "$haveit"; then
13275 rpathdirs="$rpathdirs $dir"
13277 haveit=
13278 for x in $ltrpathdirs; do
13279 if test "X$x" = "X$dir"; then
13280 haveit=yes
13281 break
13283 done
13284 if test -z "$haveit"; then
13285 ltrpathdirs="$ltrpathdirs $dir"
13289 -l*)
13290 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13292 *.la)
13293 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13296 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
13297 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
13299 esac
13300 done
13302 else
13303 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
13304 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
13308 done
13309 done
13310 if test "X$rpathdirs" != "X"; then
13311 if test -n "$hardcode_libdir_separator"; then
13312 alldirs=
13313 for found_dir in $rpathdirs; do
13314 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
13315 done
13316 acl_save_libdir="$libdir"
13317 libdir="$alldirs"
13318 eval flag=\"$hardcode_libdir_flag_spec\"
13319 libdir="$acl_save_libdir"
13320 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
13321 else
13322 for found_dir in $rpathdirs; do
13323 acl_save_libdir="$libdir"
13324 libdir="$found_dir"
13325 eval flag=\"$hardcode_libdir_flag_spec\"
13326 libdir="$acl_save_libdir"
13327 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
13328 done
13331 if test "X$ltrpathdirs" != "X"; then
13332 for found_dir in $ltrpathdirs; do
13333 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
13334 done
13337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
13338 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
13339 if eval \${$gt_func_gnugettext_libintl+:} false; then :
13340 $as_echo_n "(cached) " >&6
13341 else
13342 gt_save_CPPFLAGS="$CPPFLAGS"
13343 CPPFLAGS="$CPPFLAGS $INCINTL"
13344 gt_save_LIBS="$LIBS"
13345 LIBS="$LIBS $LIBINTL"
13346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13347 /* end confdefs.h. */
13348 #include <libintl.h>
13349 $gt_revision_test_code
13350 extern int _nl_msg_cat_cntr;
13351 extern
13352 #ifdef __cplusplus
13354 #endif
13355 const char *_nl_expand_alias (const char *);
13357 main ()
13359 bindtextdomain ("", "");
13360 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
13362 return 0;
13364 _ACEOF
13365 if ac_fn_c_try_link "$LINENO"; then :
13366 eval "$gt_func_gnugettext_libintl=yes"
13367 else
13368 eval "$gt_func_gnugettext_libintl=no"
13370 rm -f core conftest.err conftest.$ac_objext \
13371 conftest$ac_exeext conftest.$ac_ext
13372 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
13373 LIBS="$LIBS $LIBICONV"
13374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13375 /* end confdefs.h. */
13376 #include <libintl.h>
13377 $gt_revision_test_code
13378 extern int _nl_msg_cat_cntr;
13379 extern
13380 #ifdef __cplusplus
13382 #endif
13383 const char *_nl_expand_alias (const char *);
13385 main ()
13387 bindtextdomain ("", "");
13388 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
13390 return 0;
13392 _ACEOF
13393 if ac_fn_c_try_link "$LINENO"; then :
13394 LIBINTL="$LIBINTL $LIBICONV"
13395 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
13396 eval "$gt_func_gnugettext_libintl=yes"
13399 rm -f core conftest.err conftest.$ac_objext \
13400 conftest$ac_exeext conftest.$ac_ext
13402 CPPFLAGS="$gt_save_CPPFLAGS"
13403 LIBS="$gt_save_LIBS"
13405 eval ac_res=\$$gt_func_gnugettext_libintl
13406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13407 $as_echo "$ac_res" >&6; }
13410 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
13411 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
13412 && test "$PACKAGE" != gettext-runtime \
13413 && test "$PACKAGE" != gettext-tools; }; then
13414 gt_use_preinstalled_gnugettext=yes
13415 else
13416 LIBINTL=
13417 LTLIBINTL=
13418 INCINTL=
13423 if test -n "$INTL_MACOSX_LIBS"; then
13424 if test "$gt_use_preinstalled_gnugettext" = "yes" \
13425 || test "$nls_cv_use_gnu_gettext" = "yes"; then
13426 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
13427 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
13431 if test "$gt_use_preinstalled_gnugettext" = "yes" \
13432 || test "$nls_cv_use_gnu_gettext" = "yes"; then
13434 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
13436 else
13437 USE_NLS=no
13441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
13442 $as_echo_n "checking whether to use NLS... " >&6; }
13443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
13444 $as_echo "$USE_NLS" >&6; }
13445 if test "$USE_NLS" = "yes"; then
13446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
13447 $as_echo_n "checking where the gettext function comes from... " >&6; }
13448 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
13449 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
13450 gt_source="external libintl"
13451 else
13452 gt_source="libc"
13454 else
13455 gt_source="included intl directory"
13457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
13458 $as_echo "$gt_source" >&6; }
13461 if test "$USE_NLS" = "yes"; then
13463 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
13464 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
13465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
13466 $as_echo_n "checking how to link with libintl... " >&6; }
13467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
13468 $as_echo "$LIBINTL" >&6; }
13470 for element in $INCINTL; do
13471 haveit=
13472 for x in $CPPFLAGS; do
13474 acl_save_prefix="$prefix"
13475 prefix="$acl_final_prefix"
13476 acl_save_exec_prefix="$exec_prefix"
13477 exec_prefix="$acl_final_exec_prefix"
13478 eval x=\"$x\"
13479 exec_prefix="$acl_save_exec_prefix"
13480 prefix="$acl_save_prefix"
13482 if test "X$x" = "X$element"; then
13483 haveit=yes
13484 break
13486 done
13487 if test -z "$haveit"; then
13488 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13490 done
13495 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
13498 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
13502 POSUB=po
13507 INTLLIBS="$LIBINTL"
13515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: dmalloc enabled" >&5
13516 $as_echo_n "checking option: dmalloc enabled... " >&6; }
13517 # Check whether --enable-dmalloc was given.
13518 if test "${enable_dmalloc+set}" = set; then :
13519 enableval=$enable_dmalloc;
13522 if test x$enable_dmalloc = "xyes" ; then
13523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13524 $as_echo "yes" >&6; }
13525 else
13526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13527 $as_echo "no" >&6; }
13531 # Check whether --with-dmalloc-dir was given.
13532 if test "${with_dmalloc_dir+set}" = set; then :
13533 withval=$with_dmalloc_dir;
13534 if test "x$withval" != "xno" ; then
13535 enable_dmalloc = "yes"
13536 CPPFLAGS="$CPPFLAGS -I${withval}"
13537 LDFLAGS="$LDFLAGS -L${withval}"
13543 if test x$enable_dmalloc = "xyes" ; then
13545 $as_echo "#define ENABLE_DMALLOC 1" >>confdefs.h
13549 ALPINE_psefcmd="/bin/ps auxww"
13550 ALPINE_psfailed="0"
13551 ALPINE_PSTEST="-"
13553 # Check whether --with-ps-cmd was given.
13554 if test "${with_ps_cmd+set}" = set; then :
13555 withval=$with_ps_cmd;
13556 if test "x$withval" = "xno" -o "x$withval" = "xyes" -o "x$withval" = "x" ; then
13557 withval=$ALPINE_psefcmd
13559 ALPINE_PSTEST=`$withval | $EGREP "$withval" | $EGREP -v $EGREP`
13560 if test -n "$ALPINE_PSTEST" ; then
13561 ALPINE_psefcmd="$withval"
13562 else
13563 ALPINE_psfailed="1"
13564 if test "x$ALPINE_psefcmd" != "x$withval" ; then
13565 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: failed command $withval. Trying $ALPINE_psefcmd" >&5
13566 $as_echo "$as_me: WARNING: failed command $withval. Trying $ALPINE_psefcmd" >&2;}
13572 if test "$ALPINE_psfailed" = "1" -o "$ALPINE_PSTEST" = "-" ; then
13573 withval="$ALPINE_psefcmd"
13574 ALPINE_PSTEST=`$withval | $EGREP "$withval" | $EGREP -v $EGREP`
13575 if test -z "$ALPINE_PSTEST" ; then
13576 ALPINE_psfailed="1"
13577 else
13578 ALPINE_psfailed="0"
13581 if test "$ALPINE_psfailed" = "0" ; then
13583 cat >>confdefs.h <<_ACEOF
13584 #define PSEFCMD "$ALPINE_psefcmd"
13585 _ACEOF
13589 case $host in
13590 *apple-darwin*)
13591 if test -d /opt/local ; then
13592 localedir="/opt/local/share/locale"
13593 else
13594 localedir="\${datadir}/locale"
13597 *-*-cygwin)
13598 localedir="/usr/share"
13601 localedir="\${datadir}/locale"
13603 esac
13605 # Check whether --with-localedir was given.
13606 if test "${with_localedir+set}" = set; then :
13607 withval=$with_localedir;
13608 case $withval in
13609 yes)
13614 localedir=$withval
13616 esac
13620 localedir="$localedir"
13623 # Setup OS-Specific features
13624 case "$host" in
13625 *darwin*)
13626 # Check whether --enable-osx-universal-binaries was given.
13627 if test "${enable_osx_universal_binaries+set}" = set; then :
13628 enableval=$enable_osx_universal_binaries;
13631 if test "x$enable_osx_universal_binaries" = "xyes" ; then
13632 if test "x$enable_dependency_tracking" != xno ; then
13633 as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking.
13634 Please re-run configure with these options:
13635 --disable-dependency-tracking --enable-osx-universal-binary" "$LINENO" 5
13637 if test -d /Developer/SDKs/MacOSX10.5.sdk ; then
13638 alpine_sysroot=/Developer/SDKs/MacOSX10.5.sdk
13639 elif test -d /Developer/SDKs/MacOSX10.4u.sdk ; then
13640 alpine_sysroot=/Developer/SDKs/MacOSX10.4u.sdk
13641 else
13642 as_fn_error $? "No suitable MacOSX SDK found. Make sure Xcode tools are installed" "$LINENO" 5
13644 ub_cflags="-isysroot $alpine_sysroot -arch ppc -arch i386"
13645 ub_ldflags="-Wl,-syslibroot,$alpine_sysroot -arch ppc -arch i386"
13646 AM_CFLAGS="$AM_CFLAGS $ub_cflags"
13647 AM_LDFLAGS="$AM_LDFLAGS $ub_ldflags"
13648 alpine_c_client_cflags="$alpine_c_client_cflags $ub_cflags"
13649 alpine_c_client_ldflags="$alpine_c_client_ldflags $ub_ldflags"
13652 esac
13655 # Check whether --with-include-path was given.
13656 if test "${with_include_path+set}" = set; then :
13657 withval=$with_include_path;
13658 case $withval in
13661 yes)
13664 new_cppflags="-I`echo ${withval} | ${SED} 's/:/ -I/g'`"
13665 CPPFLAGS="$CPPFLAGS ${new_cppflags}"
13666 alpine_c_client_cflags="$alpine_c_client_cflags ${new_cppflags}"
13668 esac
13674 # Check whether --with-lib-path was given.
13675 if test "${with_lib_path+set}" = set; then :
13676 withval=$with_lib_path;
13677 case $withval in
13680 yes)
13683 new_ldflags="-L`echo ${withval} | ${SED} 's/:/ -L/g'`"
13684 LDFLAGS="$LDFLAGS $new_ldflags"
13685 alpine_c_client_ldflags="$alpine_c_client_ldflags ${new_ldflags}"
13687 esac
13693 # Check whether --with-pubcookie was given.
13694 if test "${with_pubcookie+set}" = set; then :
13695 withval=$with_pubcookie;
13696 if test "x$withval" != "xno" ; then
13697 WEB_PUBCOOKIE_BUILD=web/src/pubcookie
13705 # Check whether --with-web-bin was given.
13706 if test "${with_web_bin+set}" = set; then :
13707 withval=$with_web_bin;
13708 case "$withval" in
13711 yes)
13714 WEB_BINDIR=$withval
13716 esac
13721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: debugging is enabled" >&5
13722 $as_echo_n "checking option: debugging is enabled... " >&6; }
13723 # Check whether --enable-debug was given.
13724 if test "${enable_debug+set}" = set; then :
13725 enableval=$enable_debug;
13728 if test x$enable_debug != "xno" ; then
13729 AM_CFLAGS="$AM_CFLAGS -g"
13731 $as_echo "#define DEBUG 1" >>confdefs.h
13734 $as_echo "#define DEBUGJOURNAL 1" >>confdefs.h
13736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13737 $as_echo "yes" >&6; }
13738 else
13739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13740 $as_echo "no" >&6; }
13743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: optimization is enabled" >&5
13744 $as_echo_n "checking option: optimization is enabled... " >&6; }
13745 # Check whether --enable-optimization was given.
13746 if test "${enable_optimization+set}" = set; then :
13747 enableval=$enable_optimization;
13750 if test x$enable_optimization != "xno" ; then
13751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13752 $as_echo "yes" >&6; }
13753 else
13754 CFLAGS="`echo $AM_CFLAGS | ${SED} 's/-O2//'`"
13755 alpine_c_client_gccoptlevel="-O0"
13756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13757 $as_echo "no" >&6; }
13760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: mouse support enabled" >&5
13761 $as_echo_n "checking option: mouse support enabled... " >&6; }
13762 # Check whether --enable-mouse was given.
13763 if test "${enable_mouse+set}" = set; then :
13764 enableval=$enable_mouse;
13767 if test x$enable_mouse != "xno" ; then
13769 $as_echo "#define MOUSE /**/" >>confdefs.h
13771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13772 $as_echo "yes" >&6; }
13773 else
13774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13775 $as_echo "no" >&6; }
13778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: quotas enabled" >&5
13779 $as_echo_n "checking option: quotas enabled... " >&6; }
13780 # Check whether --enable-quotas was given.
13781 if test "${enable_quotas+set}" = set; then :
13782 enableval=$enable_quotas;
13785 if test x$enable_quotas = "xyes" ; then
13787 $as_echo "#define USE_QUOTAS /**/" >>confdefs.h
13789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13790 $as_echo "yes" >&6; }
13791 else
13792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13793 $as_echo "no" >&6; }
13796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: From changing enabled" >&5
13797 $as_echo_n "checking option: From changing enabled... " >&6; }
13798 # Check whether --enable-from_changing was given.
13799 if test "${enable_from_changing+set}" = set; then :
13800 enableval=$enable_from_changing;
13803 if test x$enable_from_changing != "xno" ; then
13804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13805 $as_echo "yes" >&6; }
13806 else
13808 $as_echo "#define NEVER_ALLOW_CHANGING_FROM /**/" >>confdefs.h
13810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13811 $as_echo "no" >&6; }
13814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: background post enabled" >&5
13815 $as_echo_n "checking option: background post enabled... " >&6; }
13816 # Check whether --enable-background-post was given.
13817 if test "${enable_background_post+set}" = set; then :
13818 enableval=$enable_background_post;
13821 if test x$enable_background_post != "xno" ; then
13823 $as_echo "#define BACKGROUND_POST /**/" >>confdefs.h
13825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13826 $as_echo "yes" >&6; }
13827 else
13828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13829 $as_echo "no" >&6; }
13832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: keyboard lock enabled" >&5
13833 $as_echo_n "checking option: keyboard lock enabled... " >&6; }
13834 # Check whether --enable-keyboard-lock was given.
13835 if test "${enable_keyboard_lock+set}" = set; then :
13836 enableval=$enable_keyboard_lock;
13839 if test x$enable_keyboard_lock != "xno" ; then
13841 $as_echo "#define KEYBOARD_LOCK /**/" >>confdefs.h
13843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13844 $as_echo "yes" >&6; }
13845 else
13846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13847 $as_echo "no" >&6; }
13850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: from encoding enabled" >&5
13851 $as_echo_n "checking option: from encoding enabled... " >&6; }
13852 # Check whether --enable-from-encoding was given.
13853 if test "${enable_from_encoding+set}" = set; then :
13854 enableval=$enable_from_encoding;
13857 if test x$enable_from_encoding = "xyes" ; then
13859 $as_echo "#define ENCODE_FROMS /**/" >>confdefs.h
13861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13862 $as_echo "yes" >&6; }
13863 else
13864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13865 $as_echo "no" >&6; }
13869 # Check whether --with-smtp-msa was given.
13870 if test "${with_smtp_msa+set}" = set; then :
13871 withval=$with_smtp_msa;
13872 case "$withval" in
13875 yes)
13876 # Extract the first word of "sendmail", so it can be a program name with args.
13877 set dummy sendmail; ac_word=$2
13878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13879 $as_echo_n "checking for $ac_word... " >&6; }
13880 if ${ac_cv_path_SENDMAIL+:} false; then :
13881 $as_echo_n "(cached) " >&6
13882 else
13883 case $SENDMAIL in
13884 [\\/]* | ?:[\\/]*)
13885 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
13888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13889 as_dummy="$PATH:/usr/sbin:/usr/lib"
13890 for as_dir in $as_dummy
13892 IFS=$as_save_IFS
13893 test -z "$as_dir" && as_dir=.
13894 for ac_exec_ext in '' $ac_executable_extensions; do
13895 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13896 ac_cv_path_SENDMAIL="$as_dir/$ac_word$ac_exec_ext"
13897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13898 break 2
13900 done
13901 done
13902 IFS=$as_save_IFS
13904 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL=""""
13906 esac
13908 SENDMAIL=$ac_cv_path_SENDMAIL
13909 if test -n "$SENDMAIL"; then
13910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SENDMAIL" >&5
13911 $as_echo "$SENDMAIL" >&6; }
13912 else
13913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13914 $as_echo "no" >&6; }
13920 SENDMAIL=$withval
13922 esac
13924 else
13926 # Extract the first word of "sendmail", so it can be a program name with args.
13927 set dummy sendmail; ac_word=$2
13928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13929 $as_echo_n "checking for $ac_word... " >&6; }
13930 if ${ac_cv_path_SENDMAIL+:} false; then :
13931 $as_echo_n "(cached) " >&6
13932 else
13933 case $SENDMAIL in
13934 [\\/]* | ?:[\\/]*)
13935 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
13938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13939 as_dummy="$PATH:/usr/sbin:/usr/lib"
13940 for as_dir in $as_dummy
13942 IFS=$as_save_IFS
13943 test -z "$as_dir" && as_dir=.
13944 for ac_exec_ext in '' $ac_executable_extensions; do
13945 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13946 ac_cv_path_SENDMAIL="$as_dir/$ac_word$ac_exec_ext"
13947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13948 break 2
13950 done
13951 done
13952 IFS=$as_save_IFS
13954 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL=""""
13956 esac
13958 SENDMAIL=$ac_cv_path_SENDMAIL
13959 if test -n "$SENDMAIL"; then
13960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SENDMAIL" >&5
13961 $as_echo "$SENDMAIL" >&6; }
13962 else
13963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13964 $as_echo "no" >&6; }
13971 if test -n "$SENDMAIL" ; then
13973 cat >>confdefs.h <<_ACEOF
13974 #define SENDMAIL "$SENDMAIL"
13975 _ACEOF
13979 smtp_msa_flags="-bs -odb -oem"
13981 # Check whether --with-smtp-msa-flags was given.
13982 if test "${with_smtp_msa_flags+set}" = set; then :
13983 withval=$with_smtp_msa_flags;
13984 if test "x$withval" != "xno" ; then
13985 smtp_msa_flags=$withval
13991 cat >>confdefs.h <<_ACEOF
13992 #define SENDMAILFLAGS "$smtp_msa_flags"
13993 _ACEOF
13996 npa="inews"
13998 # Check whether --with-npa was given.
13999 if test "${with_npa+set}" = set; then :
14000 withval=$with_npa;
14001 case "$withval" in
14004 yes)
14005 # Extract the first word of "inews", so it can be a program name with args.
14006 set dummy inews; ac_word=$2
14007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14008 $as_echo_n "checking for $ac_word... " >&6; }
14009 if ${ac_cv_path_NPA_PROG+:} false; then :
14010 $as_echo_n "(cached) " >&6
14011 else
14012 case $NPA_PROG in
14013 [\\/]* | ?:[\\/]*)
14014 ac_cv_path_NPA_PROG="$NPA_PROG" # Let the user override the test with a path.
14017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14018 as_dummy="$PATH:/usr/sbin:/usr/lib"
14019 for as_dir in $as_dummy
14021 IFS=$as_save_IFS
14022 test -z "$as_dir" && as_dir=.
14023 for ac_exec_ext in '' $ac_executable_extensions; do
14024 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14025 ac_cv_path_NPA_PROG="$as_dir/$ac_word$ac_exec_ext"
14026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14027 break 2
14029 done
14030 done
14031 IFS=$as_save_IFS
14033 test -z "$ac_cv_path_NPA_PROG" && ac_cv_path_NPA_PROG=""""
14035 esac
14037 NPA_PROG=$ac_cv_path_NPA_PROG
14038 if test -n "$NPA_PROG"; then
14039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NPA_PROG" >&5
14040 $as_echo "$NPA_PROG" >&6; }
14041 else
14042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14043 $as_echo "no" >&6; }
14049 NPA_PROG=$withval
14051 esac
14053 else
14055 # Extract the first word of "inews", so it can be a program name with args.
14056 set dummy inews; ac_word=$2
14057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14058 $as_echo_n "checking for $ac_word... " >&6; }
14059 if ${ac_cv_path_NPA_PROG+:} false; then :
14060 $as_echo_n "(cached) " >&6
14061 else
14062 case $NPA_PROG in
14063 [\\/]* | ?:[\\/]*)
14064 ac_cv_path_NPA_PROG="$NPA_PROG" # Let the user override the test with a path.
14067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14068 as_dummy="$PATH:/usr/sbin:/usr/lib"
14069 for as_dir in $as_dummy
14071 IFS=$as_save_IFS
14072 test -z "$as_dir" && as_dir=.
14073 for ac_exec_ext in '' $ac_executable_extensions; do
14074 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14075 ac_cv_path_NPA_PROG="$as_dir/$ac_word$ac_exec_ext"
14076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14077 break 2
14079 done
14080 done
14081 IFS=$as_save_IFS
14083 test -z "$ac_cv_path_NPA_PROG" && ac_cv_path_NPA_PROG=""""
14085 esac
14087 NPA_PROG=$ac_cv_path_NPA_PROG
14088 if test -n "$NPA_PROG"; then
14089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NPA_PROG" >&5
14090 $as_echo "$NPA_PROG" >&6; }
14091 else
14092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14093 $as_echo "no" >&6; }
14101 npa_flags="-h"
14103 # Check whether --with-npa-flags was given.
14104 if test "${with_npa_flags+set}" = set; then :
14105 withval=$with_npa_flags;
14106 if test "x$withval" != "xno" ; then
14107 npa_flags=$withval
14112 if test -n "$NPA_PROG" ; then
14114 cat >>confdefs.h <<_ACEOF
14115 #define SENDNEWS "$NPA_PROG $npa_flags"
14116 _ACEOF
14121 # Check whether --with-password-prog was given.
14122 if test "${with_password_prog+set}" = set; then :
14123 withval=$with_password_prog;
14124 case "$withval" in
14127 yes)
14128 # Extract the first word of "passwd", so it can be a program name with args.
14129 set dummy passwd; ac_word=$2
14130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14131 $as_echo_n "checking for $ac_word... " >&6; }
14132 if ${ac_cv_path_PWPROG+:} false; then :
14133 $as_echo_n "(cached) " >&6
14134 else
14135 case $PWPROG in
14136 [\\/]* | ?:[\\/]*)
14137 ac_cv_path_PWPROG="$PWPROG" # Let the user override the test with a path.
14140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14141 as_dummy="$PATH:/usr/sbin:/usr/lib"
14142 for as_dir in $as_dummy
14144 IFS=$as_save_IFS
14145 test -z "$as_dir" && as_dir=.
14146 for ac_exec_ext in '' $ac_executable_extensions; do
14147 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14148 ac_cv_path_PWPROG="$as_dir/$ac_word$ac_exec_ext"
14149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14150 break 2
14152 done
14153 done
14154 IFS=$as_save_IFS
14156 test -z "$ac_cv_path_PWPROG" && ac_cv_path_PWPROG=""""
14158 esac
14160 PWPROG=$ac_cv_path_PWPROG
14161 if test -n "$PWPROG"; then
14162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PWPROG" >&5
14163 $as_echo "$PWPROG" >&6; }
14164 else
14165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14166 $as_echo "no" >&6; }
14172 # Extract the first word of "$withval", so it can be a program name with args.
14173 set dummy $withval; ac_word=$2
14174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14175 $as_echo_n "checking for $ac_word... " >&6; }
14176 if ${ac_cv_path_PWPROG+:} false; then :
14177 $as_echo_n "(cached) " >&6
14178 else
14179 case $PWPROG in
14180 [\\/]* | ?:[\\/]*)
14181 ac_cv_path_PWPROG="$PWPROG" # Let the user override the test with a path.
14184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14185 as_dummy="$PATH:/usr/sbin:/usr/lib"
14186 for as_dir in $as_dummy
14188 IFS=$as_save_IFS
14189 test -z "$as_dir" && as_dir=.
14190 for ac_exec_ext in '' $ac_executable_extensions; do
14191 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14192 ac_cv_path_PWPROG="$as_dir/$ac_word$ac_exec_ext"
14193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14194 break 2
14196 done
14197 done
14198 IFS=$as_save_IFS
14200 test -z "$ac_cv_path_PWPROG" && ac_cv_path_PWPROG=""""
14202 esac
14204 PWPROG=$ac_cv_path_PWPROG
14205 if test -n "$PWPROG"; then
14206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PWPROG" >&5
14207 $as_echo "$PWPROG" >&6; }
14208 else
14209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14210 $as_echo "no" >&6; }
14215 esac
14217 else
14219 # Extract the first word of "passwd", so it can be a program name with args.
14220 set dummy passwd; ac_word=$2
14221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14222 $as_echo_n "checking for $ac_word... " >&6; }
14223 if ${ac_cv_path_PWPROG+:} false; then :
14224 $as_echo_n "(cached) " >&6
14225 else
14226 case $PWPROG in
14227 [\\/]* | ?:[\\/]*)
14228 ac_cv_path_PWPROG="$PWPROG" # Let the user override the test with a path.
14231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14232 as_dummy="$PATH:/usr/sbin:/usr/lib"
14233 for as_dir in $as_dummy
14235 IFS=$as_save_IFS
14236 test -z "$as_dir" && as_dir=.
14237 for ac_exec_ext in '' $ac_executable_extensions; do
14238 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14239 ac_cv_path_PWPROG="$as_dir/$ac_word$ac_exec_ext"
14240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14241 break 2
14243 done
14244 done
14245 IFS=$as_save_IFS
14247 test -z "$ac_cv_path_PWPROG" && ac_cv_path_PWPROG=""""
14249 esac
14251 PWPROG=$ac_cv_path_PWPROG
14252 if test -n "$PWPROG"; then
14253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PWPROG" >&5
14254 $as_echo "$PWPROG" >&6; }
14255 else
14256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14257 $as_echo "no" >&6; }
14264 if test -n "$PWPROG" ; then
14266 cat >>confdefs.h <<_ACEOF
14267 #define PASSWD_PROG "$PWPROG"
14268 _ACEOF
14273 # Check whether --with-simple-spellcheck was given.
14274 if test "${with_simple_spellcheck+set}" = set; then :
14275 withval=$with_simple_spellcheck;
14276 if test "x$withval" != "xno" ; then
14277 SPELLPROG=$withval
14280 else
14282 # Extract the first word of "hunspell", so it can be a program name with args.
14283 set dummy hunspell; ac_word=$2
14284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14285 $as_echo_n "checking for $ac_word... " >&6; }
14286 if ${ac_cv_prog_SPELLPROG+:} false; then :
14287 $as_echo_n "(cached) " >&6
14288 else
14289 if test -n "$SPELLPROG"; then
14290 ac_cv_prog_SPELLPROG="$SPELLPROG" # Let the user override the test.
14291 else
14292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14293 for as_dir in $PATH
14295 IFS=$as_save_IFS
14296 test -z "$as_dir" && as_dir=.
14297 for ac_exec_ext in '' $ac_executable_extensions; do
14298 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14299 ac_cv_prog_SPELLPROG="hunspell"
14300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14301 break 2
14303 done
14304 done
14305 IFS=$as_save_IFS
14309 SPELLPROG=$ac_cv_prog_SPELLPROG
14310 if test -n "$SPELLPROG"; then
14311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPELLPROG" >&5
14312 $as_echo "$SPELLPROG" >&6; }
14313 else
14314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14315 $as_echo "no" >&6; }
14319 if test -z "$SPELLPROG" ; then
14320 # Extract the first word of "aspell", so it can be a program name with args.
14321 set dummy aspell; ac_word=$2
14322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14323 $as_echo_n "checking for $ac_word... " >&6; }
14324 if ${ac_cv_prog_SPELLPROG+:} false; then :
14325 $as_echo_n "(cached) " >&6
14326 else
14327 if test -n "$SPELLPROG"; then
14328 ac_cv_prog_SPELLPROG="$SPELLPROG" # Let the user override the test.
14329 else
14330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14331 for as_dir in $PATH
14333 IFS=$as_save_IFS
14334 test -z "$as_dir" && as_dir=.
14335 for ac_exec_ext in '' $ac_executable_extensions; do
14336 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14337 ac_cv_prog_SPELLPROG="aspell"
14338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14339 break 2
14341 done
14342 done
14343 IFS=$as_save_IFS
14347 SPELLPROG=$ac_cv_prog_SPELLPROG
14348 if test -n "$SPELLPROG"; then
14349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPELLPROG" >&5
14350 $as_echo "$SPELLPROG" >&6; }
14351 else
14352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14353 $as_echo "no" >&6; }
14357 if test -z "$SPELLPROG" ; then
14358 # Extract the first word of "ispell", so it can be a program name with args.
14359 set dummy ispell; ac_word=$2
14360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14361 $as_echo_n "checking for $ac_word... " >&6; }
14362 if ${ac_cv_prog_SPELLPROG+:} false; then :
14363 $as_echo_n "(cached) " >&6
14364 else
14365 if test -n "$SPELLPROG"; then
14366 ac_cv_prog_SPELLPROG="$SPELLPROG" # Let the user override the test.
14367 else
14368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14369 for as_dir in $PATH
14371 IFS=$as_save_IFS
14372 test -z "$as_dir" && as_dir=.
14373 for ac_exec_ext in '' $ac_executable_extensions; do
14374 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14375 ac_cv_prog_SPELLPROG="ispell"
14376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14377 break 2
14379 done
14380 done
14381 IFS=$as_save_IFS
14385 SPELLPROG=$ac_cv_prog_SPELLPROG
14386 if test -n "$SPELLPROG"; then
14387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPELLPROG" >&5
14388 $as_echo "$SPELLPROG" >&6; }
14389 else
14390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14391 $as_echo "no" >&6; }
14395 if test -z "$SPELLPROG" ; then
14396 SPELLPROG="spell"
14404 if test "x$SPELLPROG" != "xno" ; then
14405 # Extract the first word of "$SPELLPROG", so it can be a program name with args.
14406 set dummy $SPELLPROG; ac_word=$2
14407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14408 $as_echo_n "checking for $ac_word... " >&6; }
14409 if ${ac_cv_path_alpine_simple_spellcheck+:} false; then :
14410 $as_echo_n "(cached) " >&6
14411 else
14412 case $alpine_simple_spellcheck in
14413 [\\/]* | ?:[\\/]*)
14414 ac_cv_path_alpine_simple_spellcheck="$alpine_simple_spellcheck" # Let the user override the test with a path.
14417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14418 for as_dir in $PATH
14420 IFS=$as_save_IFS
14421 test -z "$as_dir" && as_dir=.
14422 for ac_exec_ext in '' $ac_executable_extensions; do
14423 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14424 ac_cv_path_alpine_simple_spellcheck="$as_dir/$ac_word$ac_exec_ext"
14425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14426 break 2
14428 done
14429 done
14430 IFS=$as_save_IFS
14433 esac
14435 alpine_simple_spellcheck=$ac_cv_path_alpine_simple_spellcheck
14436 if test -n "$alpine_simple_spellcheck"; then
14437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $alpine_simple_spellcheck" >&5
14438 $as_echo "$alpine_simple_spellcheck" >&6; }
14439 else
14440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14441 $as_echo "no" >&6; }
14445 if test -n "$alpine_simple_spellcheck" ; then
14446 case "$SPELLPROG" in
14447 hunspell)
14448 alpine_simple_spellcheck="$alpine_simple_spellcheck -l"
14450 aspell)
14451 alpine_simple_spellcheck="$alpine_simple_spellcheck --dont-backup --mode=email list"
14453 ispell)
14454 alpine_simple_spellcheck="$alpine_simple_spellcheck -l"
14458 esac
14463 # Check whether --with-interactive-spellcheck was given.
14464 if test "${with_interactive_spellcheck+set}" = set; then :
14465 withval=$with_interactive_spellcheck;
14466 if test "x$withval" != "xno" ; then
14467 ISPELLPROG=$withval
14470 else
14472 # Extract the first word of "hunspell", so it can be a program name with args.
14473 set dummy hunspell; ac_word=$2
14474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14475 $as_echo_n "checking for $ac_word... " >&6; }
14476 if ${ac_cv_prog_ISPELLPROG+:} false; then :
14477 $as_echo_n "(cached) " >&6
14478 else
14479 if test -n "$ISPELLPROG"; then
14480 ac_cv_prog_ISPELLPROG="$ISPELLPROG" # Let the user override the test.
14481 else
14482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14483 for as_dir in $PATH
14485 IFS=$as_save_IFS
14486 test -z "$as_dir" && as_dir=.
14487 for ac_exec_ext in '' $ac_executable_extensions; do
14488 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14489 ac_cv_prog_ISPELLPROG="hunspell"
14490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14491 break 2
14493 done
14494 done
14495 IFS=$as_save_IFS
14499 ISPELLPROG=$ac_cv_prog_ISPELLPROG
14500 if test -n "$ISPELLPROG"; then
14501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ISPELLPROG" >&5
14502 $as_echo "$ISPELLPROG" >&6; }
14503 else
14504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14505 $as_echo "no" >&6; }
14509 if test -z "$ISPELLPROG" ; then
14510 # Extract the first word of "aspell", so it can be a program name with args.
14511 set dummy aspell; ac_word=$2
14512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14513 $as_echo_n "checking for $ac_word... " >&6; }
14514 if ${ac_cv_prog_ISPELLPROG+:} false; then :
14515 $as_echo_n "(cached) " >&6
14516 else
14517 if test -n "$ISPELLPROG"; then
14518 ac_cv_prog_ISPELLPROG="$ISPELLPROG" # Let the user override the test.
14519 else
14520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14521 for as_dir in $PATH
14523 IFS=$as_save_IFS
14524 test -z "$as_dir" && as_dir=.
14525 for ac_exec_ext in '' $ac_executable_extensions; do
14526 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14527 ac_cv_prog_ISPELLPROG="aspell"
14528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14529 break 2
14531 done
14532 done
14533 IFS=$as_save_IFS
14537 ISPELLPROG=$ac_cv_prog_ISPELLPROG
14538 if test -n "$ISPELLPROG"; then
14539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ISPELLPROG" >&5
14540 $as_echo "$ISPELLPROG" >&6; }
14541 else
14542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14543 $as_echo "no" >&6; }
14547 if test -z "$SPELLPROG" ; then
14548 ISPELLPROG="ispell"
14555 if test "x$ISPELLPROG" != "xno" ; then
14556 # Extract the first word of "$ISPELLPROG", so it can be a program name with args.
14557 set dummy $ISPELLPROG; ac_word=$2
14558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14559 $as_echo_n "checking for $ac_word... " >&6; }
14560 if ${ac_cv_path_alpine_interactive_spellcheck+:} false; then :
14561 $as_echo_n "(cached) " >&6
14562 else
14563 case $alpine_interactive_spellcheck in
14564 [\\/]* | ?:[\\/]*)
14565 ac_cv_path_alpine_interactive_spellcheck="$alpine_interactive_spellcheck" # Let the user override the test with a path.
14568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14569 for as_dir in $PATH
14571 IFS=$as_save_IFS
14572 test -z "$as_dir" && as_dir=.
14573 for ac_exec_ext in '' $ac_executable_extensions; do
14574 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14575 ac_cv_path_alpine_interactive_spellcheck="$as_dir/$ac_word$ac_exec_ext"
14576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14577 break 2
14579 done
14580 done
14581 IFS=$as_save_IFS
14584 esac
14586 alpine_interactive_spellcheck=$ac_cv_path_alpine_interactive_spellcheck
14587 if test -n "$alpine_interactive_spellcheck"; then
14588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $alpine_interactive_spellcheck" >&5
14589 $as_echo "$alpine_interactive_spellcheck" >&6; }
14590 else
14591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14592 $as_echo "no" >&6; }
14596 if test -n "$alpine_interactive_spellcheck" ; then
14597 case "$ISPELLPROG" in
14598 aspell)
14599 alpine_interactive_spellcheck="$alpine_interactive_spellcheck --dont-backup --mode=email check"
14603 esac
14607 if test -n "$alpine_interactive_spellcheck" ; then
14609 cat >>confdefs.h <<_ACEOF
14610 #define DF_VAR_SPELLER "$alpine_interactive_spellcheck"
14611 _ACEOF
14615 if test -z "$alpine_simple_spellcheck" -a -n "$alpine_interactive_spellcheck" ; then
14616 alpine_simple_spellcheck=test
14619 cat >>confdefs.h <<_ACEOF
14620 #define SPELLER "$alpine_simple_spellcheck"
14621 _ACEOF
14624 case "$prefix" in
14625 NONE) dpv=/usr/local/lib/pine.conf ;;
14626 *) dpv=${prefix}/lib/pine.conf ;;
14627 esac
14629 # Check whether --with-system-pinerc was given.
14630 if test "${with_system_pinerc+set}" = set; then :
14631 withval=$with_system_pinerc;
14632 case "$withval" in
14635 yes)
14638 dpv=$withval
14640 esac
14645 cat >>confdefs.h <<_ACEOF
14646 #define SYSTEM_PINERC "$dpv"
14647 _ACEOF
14650 case "$prefix" in
14651 NONE) dpv=/usr/local/lib/pine.conf.fixed ;;
14652 *) dpv=${prefix}/lib/pine.conf.fixed ;;
14653 esac
14655 # Check whether --with-system-fixed-pinerc was given.
14656 if test "${with_system_fixed_pinerc+set}" = set; then :
14657 withval=$with_system_fixed_pinerc;
14658 case "$withval" in
14661 yes)
14664 dpv=$withval
14666 esac
14671 cat >>confdefs.h <<_ACEOF
14672 #define SYSTEM_PINERC_FIXED "$dpv"
14673 _ACEOF
14676 case "$prefix" in
14677 NONE) dpv=/usr/local/lib/pine.info ;;
14678 *) dpv=${prefix}/lib/pine.info ;;
14679 esac
14681 # Check whether --with-local-support-info was given.
14682 if test "${with_local_support_info+set}" = set; then :
14683 withval=$with_local_support_info;
14684 case "$withval" in
14687 yes)
14690 dpv=$withval
14692 esac
14697 cat >>confdefs.h <<_ACEOF
14698 #define SYSTEM_PINE_INFO_PATH "$dpv"
14699 _ACEOF
14707 dpv=150
14709 # Check whether --with-mailcheck-interval was given.
14710 if test "${with_mailcheck_interval+set}" = set; then :
14711 withval=$with_mailcheck_interval;
14712 if test "x$withval" != "xno" ; then
14713 dpv=$withval
14719 cat >>confdefs.h <<_ACEOF
14720 #define DF_MAILCHECK "$dpv"
14721 _ACEOF
14725 dpv=420
14727 # Check whether --with-checkpoint-interval was given.
14728 if test "${with_checkpoint_interval+set}" = set; then :
14729 withval=$with_checkpoint_interval;
14730 if test "x$withval" != "xno" ; then
14731 dpv=$withval
14737 cat >>confdefs.h <<_ACEOF
14738 #define CHECK_POINT_TIME $dpv
14739 _ACEOF
14743 dpv=12
14745 # Check whether --with-checkpoint-frequency was given.
14746 if test "${with_checkpoint_frequency+set}" = set; then :
14747 withval=$with_checkpoint_frequency;
14748 if test "x$withval" != "xno" ; then
14749 dpv=$withval
14755 cat >>confdefs.h <<_ACEOF
14756 #define CHECK_POINT_FREQ $dpv
14757 _ACEOF
14761 dpv=24
14763 # Check whether --with-display-rows was given.
14764 if test "${with_display_rows+set}" = set; then :
14765 withval=$with_display_rows;
14766 if test "x$withval" != "xno" ; then
14767 dpv=$withval
14773 cat >>confdefs.h <<_ACEOF
14774 #define DEFAULT_LINES_ON_TERMINAL $dpv
14775 _ACEOF
14779 dpv=80
14781 # Check whether --with-display-columns was given.
14782 if test "${with_display_columns+set}" = set; then :
14783 withval=$with_display_columns;
14784 if test "x$withval" != "xno" ; then
14785 dpv=$withval
14791 cat >>confdefs.h <<_ACEOF
14792 #define DEFAULT_COLUMNS_ON_TERMINAL $dpv
14793 _ACEOF
14797 dpv=200
14799 # Check whether --with-max-display-rows was given.
14800 if test "${with_max_display_rows+set}" = set; then :
14801 withval=$with_max_display_rows;
14802 if test "x$withval" != "xno" ; then
14803 dpv=$withval
14809 cat >>confdefs.h <<_ACEOF
14810 #define MAX_SCREEN_ROWS $dpv
14811 _ACEOF
14815 dpv=500
14817 # Check whether --with-max-display-columns was given.
14818 if test "${with_max_display_columns+set}" = set; then :
14819 withval=$with_max_display_columns;
14820 if test "x$withval" != "xno" ; then
14821 dpv=$withval
14827 cat >>confdefs.h <<_ACEOF
14828 #define MAX_SCREEN_COLS $dpv
14829 _ACEOF
14833 dpv=74
14835 # Check whether --with-fill-column was given.
14836 if test "${with_fill_column+set}" = set; then :
14837 withval=$with_fill_column;
14838 if test "x$withval" != "xno" ; then
14839 dpv=$withval
14845 cat >>confdefs.h <<_ACEOF
14846 #define DF_FILLCOL "$dpv"
14847 _ACEOF
14851 dpv=80
14853 # Check whether --with-max_fill-column was given.
14854 if test "${with_max_fill_column+set}" = set; then :
14855 withval=$with_max_fill_column;
14856 if test "x$withval" != "xno" ; then
14857 dpv=$withval
14863 cat >>confdefs.h <<_ACEOF
14864 #define MAX_FILLCOL $dpv
14865 _ACEOF
14869 dpv=2
14871 # Check whether --with-debug-level was given.
14872 if test "${with_debug_level+set}" = set; then :
14873 withval=$with_debug_level;
14874 if test "x$withval" != "xno" ; then
14875 dpv=$withval
14881 cat >>confdefs.h <<_ACEOF
14882 #define DEFAULT_DEBUG $dpv
14883 _ACEOF
14887 dpv=4
14889 # Check whether --with-debug-files was given.
14890 if test "${with_debug_files+set}" = set; then :
14891 withval=$with_debug_files;
14892 if test "x$withval" != "xno" ; then
14893 dpv=$withval
14899 cat >>confdefs.h <<_ACEOF
14900 #define NUMDEBUGFILES $dpv
14901 _ACEOF
14905 dpv=.pine-debug
14907 # Check whether --with-debug-file was given.
14908 if test "${with_debug_file+set}" = set; then :
14909 withval=$with_debug_file;
14910 if test "x$withval" != "xno" ; then
14911 dpv=$withval
14917 cat >>confdefs.h <<_ACEOF
14918 #define DEBUGFILE "$dpv"
14919 _ACEOF
14923 dpv="\$Forwarded"
14925 # Check whether --with-forwarded-keyword was given.
14926 if test "${with_forwarded_keyword+set}" = set; then :
14927 withval=$with_forwarded_keyword;
14928 if test "x$withval" != "xno" ; then
14929 dpv=$withval
14935 cat >>confdefs.h <<_ACEOF
14936 #define FORWARDED_FLAG "$dpv"
14937 _ACEOF
14941 dpv=2
14943 # Check whether --with-display-overlap was given.
14944 if test "${with_display_overlap+set}" = set; then :
14945 withval=$with_display_overlap;
14946 if test "x$withval" != "xno" ; then
14947 dpv=$withval
14953 cat >>confdefs.h <<_ACEOF
14954 #define DF_OVERLAP "$dpv"
14955 _ACEOF
14959 dpv=0
14961 # Check whether --with-display-margin was given.
14962 if test "${with_display_margin+set}" = set; then :
14963 withval=$with_display_margin;
14964 if test "x$withval" != "xno" ; then
14965 dpv=$withval
14971 cat >>confdefs.h <<_ACEOF
14972 #define DF_MARGIN "$dpv"
14973 _ACEOF
14977 dpv=sent-mail
14979 # Check whether --with-default-fcc was given.
14980 if test "${with_default_fcc+set}" = set; then :
14981 withval=$with_default_fcc;
14982 if test "x$withval" != "xno" ; then
14983 dpv=$withval
14989 cat >>confdefs.h <<_ACEOF
14990 #define DF_DEFAULT_FCC "$dpv"
14991 _ACEOF
14995 dpv=saved-messages
14997 # Check whether --with-default-save-folder was given.
14998 if test "${with_default_save_folder+set}" = set; then :
14999 withval=$with_default_save_folder;
15000 if test "x$withval" != "xno" ; then
15001 dpv=$withval
15007 cat >>confdefs.h <<_ACEOF
15008 #define DEFAULT_SAVE "$dpv"
15009 _ACEOF
15013 dpv=postponed-mail
15015 # Check whether --with-default-legacy-postponed-folder was given.
15016 if test "${with_default_legacy_postponed_folder+set}" = set; then :
15017 withval=$with_default_legacy_postponed_folder;
15018 if test "x$withval" != "xno" ; then
15019 dpv=$withval
15025 cat >>confdefs.h <<_ACEOF
15026 #define POSTPONED_MAIL "$dpv"
15027 _ACEOF
15031 dpv=postponed-msgs
15033 # Check whether --with-default-postponed-folder was given.
15034 if test "${with_default_postponed_folder+set}" = set; then :
15035 withval=$with_default_postponed_folder;
15036 if test "x$withval" != "xno" ; then
15037 dpv=$withval
15043 cat >>confdefs.h <<_ACEOF
15044 #define POSTPONED_MSGS "$dpv"
15045 _ACEOF
15049 dpv=Trash
15051 # Check whether --with-default-trash-folder was given.
15052 if test "${with_default_trash_folder+set}" = set; then :
15053 withval=$with_default_trash_folder;
15054 if test "x$withval" != "xno" ; then
15055 dpv=$withval
15061 cat >>confdefs.h <<_ACEOF
15062 #define TRASH_FOLDER "$dpv"
15063 _ACEOF
15067 dpv=.pine-interrupted-mail
15069 # Check whether --with-default-interrupted-mail was given.
15070 if test "${with_default_interrupted_mail+set}" = set; then :
15071 withval=$with_default_interrupted_mail;
15072 if test "x$withval" != "xno" ; then
15073 dpv=$withval
15079 cat >>confdefs.h <<_ACEOF
15080 #define INTERRUPTED_MAIL "$dpv"
15081 _ACEOF
15085 dpv=dead.letter
15087 # Check whether --with-default-dead-letter-folder was given.
15088 if test "${with_default_dead_letter_folder+set}" = set; then :
15089 withval=$with_default_dead_letter_folder;
15090 if test "x$withval" != "xno" ; then
15091 dpv=$withval
15097 cat >>confdefs.h <<_ACEOF
15098 #define DEADLETTER "$dpv"
15099 _ACEOF
15103 dpv=mail
15105 # Check whether --with-default-mail-directory was given.
15106 if test "${with_default_mail_directory+set}" = set; then :
15107 withval=$with_default_mail_directory;
15108 if test "x$withval" != "xno" ; then
15109 dpv=$withval
15115 cat >>confdefs.h <<_ACEOF
15116 #define DF_MAIL_DIRECTORY "$dpv"
15117 _ACEOF
15121 dpv=INBOX
15123 # Check whether --with-default-inbox-name was given.
15124 if test "${with_default_inbox_name+set}" = set; then :
15125 withval=$with_default_inbox_name;
15126 if test "x$withval" != "xno" ; then
15127 dpv=$withval
15133 cat >>confdefs.h <<_ACEOF
15134 #define INBOX_NAME "$dpv"
15135 _ACEOF
15139 dpv=.signature
15141 # Check whether --with-default-signature-file was given.
15142 if test "${with_default_signature_file+set}" = set; then :
15143 withval=$with_default_signature_file;
15144 if test "x$withval" != "xno" ; then
15145 dpv=$withval
15151 cat >>confdefs.h <<_ACEOF
15152 #define DF_SIGNATURE_FILE "$dpv"
15153 _ACEOF
15157 dpv=no
15159 # Check whether --with-default-elm-style-save was given.
15160 if test "${with_default_elm_style_save+set}" = set; then :
15161 withval=$with_default_elm_style_save;
15162 if test "x$withval" != "xno" ; then
15163 dpv=$withval
15169 cat >>confdefs.h <<_ACEOF
15170 #define DF_ELM_STYLE_SAVE "$dpv"
15171 _ACEOF
15175 dpv=no
15177 # Check whether --with-default-header-in-reply was given.
15178 if test "${with_default_header_in_reply+set}" = set; then :
15179 withval=$with_default_header_in_reply;
15180 if test "x$withval" != "xno" ; then
15181 dpv=$withval
15187 cat >>confdefs.h <<_ACEOF
15188 #define DF_HEADER_IN_REPLY "$dpv"
15189 _ACEOF
15193 dpv=no
15195 # Check whether --with-default-old-style-reply was given.
15196 if test "${with_default_old_style_reply+set}" = set; then :
15197 withval=$with_default_old_style_reply;
15198 if test "x$withval" != "xno" ; then
15199 dpv=$withval
15205 cat >>confdefs.h <<_ACEOF
15206 #define DF_OLD_STYLE_REPLY "$dpv"
15207 _ACEOF
15211 dpv=no
15213 # Check whether --with-default-use-only-domain-name was given.
15214 if test "${with_default_use_only_domain_name+set}" = set; then :
15215 withval=$with_default_use_only_domain_name;
15216 if test "x$withval" != "xno" ; then
15217 dpv=$withval
15223 cat >>confdefs.h <<_ACEOF
15224 #define DF_USE_ONLY_DOMAIN_NAME "$dpv"
15225 _ACEOF
15229 dpv=no
15231 # Check whether --with-default-save-by-sender was given.
15232 if test "${with_default_save_by_sender+set}" = set; then :
15233 withval=$with_default_save_by_sender;
15234 if test "x$withval" != "xno" ; then
15235 dpv=$withval
15241 cat >>confdefs.h <<_ACEOF
15242 #define DF_SAVE_BY_SENDER "$dpv"
15243 _ACEOF
15247 dpv=arrival
15249 # Check whether --with-default-sort-key was given.
15250 if test "${with_default_sort_key+set}" = set; then :
15251 withval=$with_default_sort_key;
15252 if test "x$withval" != "xno" ; then
15253 dpv=$withval
15259 cat >>confdefs.h <<_ACEOF
15260 #define DF_SORT_KEY "$dpv"
15261 _ACEOF
15265 dpv=fullname-with-lists-last
15267 # Check whether --with-default-addressbook-sort-rule was given.
15268 if test "${with_default_addressbook_sort_rule+set}" = set; then :
15269 withval=$with_default_addressbook_sort_rule;
15270 if test "x$withval" != "xno" ; then
15271 dpv=$withval
15277 cat >>confdefs.h <<_ACEOF
15278 #define DF_AB_SORT_RULE "$dpv"
15279 _ACEOF
15283 dpv=alphabetical
15285 # Check whether --with-default-folder-sort-rule was given.
15286 if test "${with_default_folder_sort_rule+set}" = set; then :
15287 withval=$with_default_folder_sort_rule;
15288 if test "x$withval" != "xno" ; then
15289 dpv=$withval
15295 cat >>confdefs.h <<_ACEOF
15296 #define DF_FLD_SORT_RULE "$dpv"
15297 _ACEOF
15301 dpv=default-folder
15303 # Check whether --with-default-saved-message-name-rule was given.
15304 if test "${with_default_saved_message_name_rule+set}" = set; then :
15305 withval=$with_default_saved_message_name_rule;
15306 if test "x$withval" != "xno" ; then
15307 dpv=$withval
15313 cat >>confdefs.h <<_ACEOF
15314 #define DF_SAVED_MSG_NAME_RULE "$dpv"
15315 _ACEOF
15319 dpv=default-fcc
15321 # Check whether --with-default-fcc-rule was given.
15322 if test "${with_default_fcc_rule+set}" = set; then :
15323 withval=$with_default_fcc_rule;
15324 if test "x$withval" != "xno" ; then
15325 dpv=$withval
15331 cat >>confdefs.h <<_ACEOF
15332 #define DF_FCC_RULE "$dpv"
15333 _ACEOF
15337 dpv=lpr
15339 # Check whether --with-default-standard-printer was given.
15340 if test "${with_default_standard_printer+set}" = set; then :
15341 withval=$with_default_standard_printer;
15342 if test "x$withval" != "xno" ; then
15343 dpv=$withval
15349 cat >>confdefs.h <<_ACEOF
15350 #define DF_STANDARD_PRINTER "$dpv"
15351 _ACEOF
15355 dpv=attached-to-ansi
15357 # Check whether --with-default-ansi-printer was given.
15358 if test "${with_default_ansi_printer+set}" = set; then :
15359 withval=$with_default_ansi_printer;
15360 if test "x$withval" != "xno" ; then
15361 dpv=$withval
15367 cat >>confdefs.h <<_ACEOF
15368 #define ANSI_PRINTER "$dpv"
15369 _ACEOF
15373 dpv=.addressbook
15375 # Check whether --with-default-addressbook was given.
15376 if test "${with_default_addressbook+set}" = set; then :
15377 withval=$with_default_addressbook;
15378 if test "x$withval" != "xno" ; then
15379 dpv=$withval
15385 cat >>confdefs.h <<_ACEOF
15386 #define DF_ADDRESSBOOK "$dpv"
15387 _ACEOF
15391 dpv="Local Support"
15393 # Check whether --with-default-local-fullname was given.
15394 if test "${with_default_local_fullname+set}" = set; then :
15395 withval=$with_default_local_fullname;
15396 if test "x$withval" != "xno" ; then
15397 dpv=$withval
15403 cat >>confdefs.h <<_ACEOF
15404 #define DF_LOCAL_FULLNAME "$dpv"
15405 _ACEOF
15409 dpv=postmaster
15411 # Check whether --with-default-local-address was given.
15412 if test "${with_default_local_address+set}" = set; then :
15413 withval=$with_default_local_address;
15414 if test "x$withval" != "xno" ; then
15415 dpv=$withval
15421 cat >>confdefs.h <<_ACEOF
15422 #define DF_LOCAL_ADDRESS "$dpv"
15423 _ACEOF
15427 dpv=1
15429 # Check whether --with-default-keyboard-lock-count was given.
15430 if test "${with_default_keyboard_lock_count+set}" = set; then :
15431 withval=$with_default_keyboard_lock_count;
15432 if test "x$withval" != "xno" ; then
15433 dpv=$withval
15439 cat >>confdefs.h <<_ACEOF
15440 #define DF_KBLOCK_PASSWD_COUNT "$dpv"
15441 _ACEOF
15445 dpv=3
15447 # Check whether --with-default-remote-addressbook-history was given.
15448 if test "${with_default_remote_addressbook_history+set}" = set; then :
15449 withval=$with_default_remote_addressbook_history;
15450 if test "x$withval" != "xno" ; then
15451 dpv=$withval
15457 cat >>confdefs.h <<_ACEOF
15458 #define DF_REMOTE_ABOOK_HISTORY "$dpv"
15459 _ACEOF
15463 dpv=.alpine-smime/public
15465 # Check whether --with-smime-public-cert-directory was given.
15466 if test "${with_smime_public_cert_directory+set}" = set; then :
15467 withval=$with_smime_public_cert_directory;
15468 if test "x$withval" != "xno" ; then
15469 dpv=$withval
15475 cat >>confdefs.h <<_ACEOF
15476 #define DF_PUBLICCERT_DIR "$dpv"
15477 _ACEOF
15481 dpv=.alpine-smime/private
15483 # Check whether --with-smime-private-key-directory was given.
15484 if test "${with_smime_private_key_directory+set}" = set; then :
15485 withval=$with_smime_private_key_directory;
15486 if test "x$withval" != "xno" ; then
15487 dpv=$withval
15493 cat >>confdefs.h <<_ACEOF
15494 #define DF_PRIVATEKEY_DIR "$dpv"
15495 _ACEOF
15499 dpv=.alpine-smime/ca
15501 # Check whether --with-smime-cacert-directory was given.
15502 if test "${with_smime_cacert_directory+set}" = set; then :
15503 withval=$with_smime_cacert_directory;
15504 if test "x$withval" != "xno" ; then
15505 dpv=$withval
15511 cat >>confdefs.h <<_ACEOF
15512 #define DF_CACERT_DIR "$dpv"
15513 _ACEOF
15517 dpv=ANSI_PRINTER
15519 # Check whether --with-default-printer was given.
15520 if test "${with_default_printer+set}" = set; then :
15521 withval=$with_default_printer;
15522 if test "x$withval" != "xno" ; then
15523 dpv=$withval
15529 cat >>confdefs.h <<_ACEOF
15530 #define DF_DEFAULT_PRINTER $dpv
15531 _ACEOF
15536 # Check whether --with-passfile was given.
15537 if test "${with_passfile+set}" = set; then :
15538 withval=$with_passfile;
15539 case "$withval" in
15542 yes)
15545 alpine_PASSFILE=$withval
15547 esac
15554 # Check whether --with-local-password-cache was given.
15555 if test "${with_local_password_cache+set}" = set; then :
15556 withval=$with_local_password_cache;
15557 alpine_os_credential_cache=$withval
15563 # Check whether --with-local-password-cache-method was given.
15564 if test "${with_local_password_cache_method+set}" = set; then :
15565 withval=$with_local_password_cache_method;
15566 alpine_os_credential_cache_method=$withval
15571 if test -n "$alpine_PASSFILE" ; then
15572 case $alpine_os_credential_cache in
15576 alpine_os_credential_cache="no"
15577 { $as_echo "$as_me:${as_lineno-$LINENO}: --with-passfile definition overrides OS-Specific password caching" >&5
15578 $as_echo "$as_me: --with-passfile definition overrides OS-Specific password caching" >&6;}
15580 esac
15582 cat >>confdefs.h <<_ACEOF
15583 #define PASSFILE "$alpine_PASSFILE"
15584 _ACEOF
15589 # Check whether --with-default-sshpath was given.
15590 if test "${with_default_sshpath+set}" = set; then :
15591 withval=$with_default_sshpath;
15592 case "$withval" in
15595 yes)
15599 cat >>confdefs.h <<_ACEOF
15600 #define DF_SSHPATH "$withval"
15601 _ACEOF
15604 esac
15610 # Check whether --with-default-sshcmd was given.
15611 if test "${with_default_sshcmd+set}" = set; then :
15612 withval=$with_default_sshcmd;
15613 case "$withval" in
15616 yes)
15620 cat >>confdefs.h <<_ACEOF
15621 #define DF_SSHCMD "$withval"
15622 _ACEOF
15625 esac
15631 # Check whether --with-ssl was given.
15632 if test "${with_ssl+set}" = set; then :
15633 withval=$with_ssl; with_ssl=$withval
15637 if test "x$with_ssl" = "xno" ; then
15638 alpine_SSLTYPE="none"
15639 else
15640 case $host in
15641 *-linux-gnu*)
15642 if test -f /etc/fedora-release -o -f /etc/redhat-release -o -f /etc/redhat_version ; then
15643 alpine_SSLTYPE="nopwd"
15644 if test -d /etc/pki/tls ; then
15645 alpine_SSLDIR="/etc/pki/tls"
15646 else
15647 alpine_SSLDIR="/usr/share/ssl"
15649 alpine_SSLCERTS="$alpine_SSLDIR/certs"
15650 alpine_SSLKEYS="$alpine_SSLDIR/private"
15651 alpine_SSLINCLUDE="/usr/include/openssl"
15652 alpine_SSLLIB="/usr/lib"
15653 elif test -f /etc/mandrake-release ; then
15654 alpine_SSLDIR="/usr/lib/ssl"
15655 alpine_SSLCERTS="$alpine_SSLDIR/certs"
15656 alpine_SSLKEYS="$alpine_SSLDIR/private"
15657 alpine_SSLINCLUDE="/usr/include/openssl"
15658 alpine_SSLLIB="/usr/lib"
15659 elif test -f /etc/SuSE-release ; then
15660 alpine_SSLTYPE="nopwd"
15661 alpine_SSLDIR="/etc/ssl"
15662 alpine_SSLCERTS="$alpine_SSLDIR/certs"
15663 alpine_SSLKEYS="$alpine_SSLDIR/private"
15664 alpine_SSLINCLUDE="/usr/include/openssl"
15665 alpine_SSLLIB="/usr/lib"
15666 elif test -d /etc/osso-af-init ; then
15667 alpine_SSLTYPE="nopwd"
15668 alpine_SSLDIR="/usr"
15669 alpine_SSLCERTS="/usr/share/certs"
15670 alpine_SSLINCLUDE="/usr/include/openssl"
15671 alpine_SSLLIB="/usr/lib"
15672 elif test -f /etc/debian_release -o -f /etc/debian_version ; then
15673 if test ! -d /etc/osso-af-init ; then
15674 alpine_SSLDIR="/etc/ssl"
15675 alpine_SSLCERTS="$alpine_SSLDIR/certs"
15676 alpine_SSLKEYS="$alpine_SSLDIR/private"
15677 alpine_SSLINCLUDE="/usr/include/openssl"
15678 alpine_SSLLIB="/usr/lib"
15680 else
15681 alpine_SSLTYPE="nopwd"
15682 alpine_SSLDIR="/usr"
15683 alpine_SSLCERTS="/etc/ssl/certs"
15686 *-apple-darwin*)
15687 alpine_SSLTYPE="nopwd"
15688 alpine_SSLCERTS_ORIG="/System/Library/OpenSSL/certs"
15689 if test -d /usr/local/opt/openssl ; then
15690 alpine_SSLDIR="/usr/local/opt/openssl"
15691 alpine_SSLINCLUDE="$alpine_SSLDIR/include"
15692 alpine_SSLLIB="$alpine_SSLDIR/lib"
15693 alpine_SSLCERTS="/usr/local/etc/openssl"
15694 alpine_SSLKEYS="$alpine_SSLDIR/private"
15695 elif test -d /opt/local/etc/openssl ; then
15696 alpine_SSLDIR="/opt/local"
15697 alpine_SSLINCLUDE="$alpine_SSLDIR/include"
15698 alpine_SSLLIB="$alpine_SSLDIR/lib"
15699 alpine_SSLCERTS="/opt/local/etc/openssl/certs"
15700 alpine_SSLKEYS="/opt/local/etc/openssl/private"
15701 elif test -d /sw/etc/ssl ; then
15702 alpine_SSLDIR="/sw/etc/ssl"
15703 alpine_SSLINCLUDE="/sw/include"
15704 alpine_SSLLIB="/sw/lib"
15705 alpine_SSLCERTS="/sw/etc/ssl/certs"
15706 alpine_SSLKEYS="/sw/etc/ssl/private"
15707 elif test -d /System/Library/OpenSSL ; then
15708 alpine_SSLDIR="/System/Library/OpenSSL"
15709 alpine_SSLCERTS="$alpine_SSLDIR/certs"
15710 alpine_SSLKEYS="$alpine_SSLDIR/private"
15711 alpine_SSLLIB="/usr/lib"
15712 alpine_SSLINCLUDE="/usr/include/openssl"
15715 *-*-netbsd*)
15716 alpine_SSLDIR="/etc/openssl"
15717 alpine_SSLCERTS="$alpine_SSLDIR/certs"
15718 alpine_SSLKEYS="$alpine_SSLDIR/private"
15719 alpine_SSLINCLUDE="/usr/include/openssl"
15720 alpine_SSLLIB="/usr/lib"
15722 *-*-dragonfly*)
15723 alpine_SSLDIR="/etc/openssl"
15724 alpine_SSLCERTS="$alpine_SSLDIR/certs"
15725 alpine_SSLKEYS="$alpine_SSLDIR/private"
15726 alpine_SSLINCLUDE="/usr/include/openssl"
15727 alpine_SSLLIB="/usr/lib"
15729 *-openbsd*)
15730 alpine_SSLTYPE="nopwd"
15731 alpine_SSLDIR="/usr"
15732 alpine_SSLCERTS="/etc/ssl/certs"
15734 *-*-freebsd*)
15735 alpine_SSLDIR="/etc/ssl"
15736 alpine_SSLCERTS="$alpine_SSLDIR/certs"
15737 alpine_SSLKEYS="$alpine_SSLDIR/private"
15738 alpine_SSLINCLUDE="/usr/include/openssl"
15739 alpine_SSLLIB="/usr/lib"
15741 *-*-openbsd*)
15742 alpine_SSLDIR="/etc/ssl"
15743 alpine_SSLINCLUDE="/usr/include/openssl"
15744 alpine_SSLLIB="/usr/lib"
15745 alpine_SSLCERTS="/etc/ssl"
15746 alpine_SSLKEYS="/etc/ssl/private"
15748 *-*-cygwin)
15749 alpine_SSLDIR="/usr/ssl"
15750 alpine_SSLCERTS="$alpine_SSLDIR/certs"
15751 alpine_SSLKEYS="$alpine_SSLDIR/certs"
15752 alpine_SSLINCLUDE="/usr/include/openssl"
15753 alpine_SSLLIB="/usr/lib"
15755 *-sco-sysv* | *-sysv*UnixWare | *-sysv*OpenUNIX)
15756 alpine_SSLTYPE="sco.nopwd"
15757 alpine_SSLDIR="/usr/local/ssl"
15759 *-*-solaris*)
15760 if test -d /usr/sfw/include/openssl ; then
15761 alpine_SSLDIR="/usr/sfw"
15762 elif test -d /opt/csw/include/openssl ; then
15763 alpine_SSLDIR="/opt/csw"
15764 if test -d /opt/csw/ssl/certs ; then
15765 alpine_SSLCERTS="/opt/csw/ssl/certs"
15768 if test -z "$alpine_SSLCERTS" -a -d /etc/certs ; then
15769 alpine_SSLCERTS="/etc/certs"
15773 alpine_SSLTYPE="nopwd"
15774 alpine_SSLDIR="/usr/local/ssl"
15776 esac
15779 # Check whether --with-ssl-dir was given.
15780 if test "${with_ssl_dir+set}" = set; then :
15781 withval=$with_ssl_dir;
15782 if test "x$withval" != "xno" ; then
15783 alpine_SSLDIR=$withval
15784 alpine_SSLINCLUDE=$alpine_SSLDIR/include
15785 alpine_SSLLIB=$alpine_SSLDIR/lib
15792 # Check whether --with-ssl-certs-dir was given.
15793 if test "${with_ssl_certs_dir+set}" = set; then :
15794 withval=$with_ssl_certs_dir;
15795 if test "x$withval" != "xno" ; then
15796 alpine_SSLCERTS=$withval
15803 # Check whether --with-ssl-include-dir was given.
15804 if test "${with_ssl_include_dir+set}" = set; then :
15805 withval=$with_ssl_include_dir;
15806 if test "x$withval" != "xno" ; then
15807 alpine_SSLINCLUDE=$withval
15814 # Check whether --with-ssl-lib-dir was given.
15815 if test "${with_ssl_lib_dir+set}" = set; then :
15816 withval=$with_ssl_lib_dir;
15817 if test "x$withval" != "xno" ; then
15818 alpine_SSLLIB=$withval
15823 if test -n "$alpine_SSLINCLUDE" ; then
15824 CPPFLAGS="-I$alpine_SSLINCLUDE $CPPFLAGS"
15825 elif test -n "$alpine_SSLDIR" ; then
15826 CPPFLAGS="-I${alpine_SSLDIR}/include $CPPFLAGS"
15828 if test -n "$alpine_SSLLIB" ; then
15829 LDFLAGS="-L$alpine_SSLLIB $LDFLAGS"
15830 elif test -n "$alpine_SSLDIR" ; then
15831 LDFLAGS="-L${alpine_SSLDIR}/lib $LDFLAGS"
15836 # Check whether --with-krb5 was given.
15837 if test "${with_krb5+set}" = set; then :
15838 withval=$with_krb5; with_krb5=$withval
15842 if test "x$with_krb5" = "xno" ; then
15843 alpine_GSSTYPE="none"
15844 else
15845 alpine_GSSTYPE=
15848 # Check whether --with-krb5-dir was given.
15849 if test "${with_krb5_dir+set}" = set; then :
15850 withval=$with_krb5_dir;
15851 if test "x$withval" != "xno" ; then
15852 CPPFLAGS="$CPPFLAGS -I${withval}/include"
15853 LDFLAGS="$LDFLAGS -L${withval}/lib"
15860 # Check whether --with-krb5-include-dir was given.
15861 if test "${with_krb5_include_dir+set}" = set; then :
15862 withval=$with_krb5_include_dir;
15863 if test "x$withval" != "xno" ; then
15864 CPPFLAGS="$CPPFLAGS -I$withval"
15871 # Check whether --with-krb5-lib-dir was given.
15872 if test "${with_krb5_lib_dir+set}" = set; then :
15873 withval=$with_krb5_lib_dir;
15874 if test "x$withval" != "xno" ; then
15875 LDFLAGS="$LDFLAGS -L$withval"
15883 # Check whether --with-ldap was given.
15884 if test "${with_ldap+set}" = set; then :
15885 withval=$with_ldap; with_ldap=$withval
15889 if test "x$with_ldap" = "xno" ; then
15890 alpine_with_ldap=
15891 { $as_echo "$as_me:${as_lineno-$LINENO}: Excluding LDAP Support" >&5
15892 $as_echo "$as_me: Excluding LDAP Support" >&6;}
15893 else
15895 alpine_with_ldap=yes
15897 # Check whether --with-ldap-dir was given.
15898 if test "${with_ldap_dir+set}" = set; then :
15899 withval=$with_ldap_dir;
15900 if test "x$withval" != "xno" ; then
15901 CPPFLAGS="$CPPFLAGS -I${withval}/include"
15902 LDFLAGS="$LDFLAGS -L${withval}/lib"
15909 # Check whether --with-ldap-include-dir was given.
15910 if test "${with_ldap_include_dir+set}" = set; then :
15911 withval=$with_ldap_include_dir;
15912 if test "x$withval" != "xno" ; then
15913 CPPFLAGS="$CPPFLAGS -I$withval"
15920 # Check whether --with-ldap-lib-dir was given.
15921 if test "${with_ldap_lib_dir+set}" = set; then :
15922 withval=$with_ldap_lib_dir;
15923 if test "x$withval" != "xno" ; then
15924 LDFLAGS="$LDFLAGS -L$withval"
15932 # Check whether --with-smime was given.
15933 if test "${with_smime+set}" = set; then :
15934 withval=$with_smime; with_smime=$withval
15939 # Check whether --with-tcl was given.
15940 if test "${with_tcl+set}" = set; then :
15941 withval=$with_tcl; with_tcl=$withval
15945 if test "x$with_tcl" = "xno" ; then
15946 WEB_BUILD=
15947 { $as_echo "$as_me:${as_lineno-$LINENO}: Excluding TCL Support, and thus Web Alpine Support" >&5
15948 $as_echo "$as_me: Excluding TCL Support, and thus Web Alpine Support" >&6;}
15949 else
15951 # Check whether --with-tcl-lib was given.
15952 if test "${with_tcl_lib+set}" = set; then :
15953 withval=$with_tcl_lib;
15954 if test "x$withval" != "xno" ; then
15955 alpine_TCLLIB=$withval
15961 # Check whether --with-tcl-include was given.
15962 if test "${with_tcl_include+set}" = set; then :
15963 withval=$with_tcl_include;
15964 if test "x$withval" != "xno" ; then
15965 CPPFLAGS="$CPPFLAGS -I$withval"
15966 alpine_TCLINC=$withval
15974 # Check whether --with-supplied-regex was given.
15975 if test "${with_supplied_regex+set}" = set; then :
15976 withval=$with_supplied_regex; alpine_REGEX=$withval
15981 # Check whether --with-pthread was given.
15982 if test "${with_pthread+set}" = set; then :
15983 withval=$with_pthread; with_pthread=$withval
15988 # Check whether --with-system-mail-directory was given.
15989 if test "${with_system_mail_directory+set}" = set; then :
15990 withval=$with_system_mail_directory;
15991 if test "x$withval" != "xno" ; then
15992 alpine_with_local_maildir="$withval"
15999 # Check whether --with-c-client-target was given.
16000 if test "${with_c_client_target+set}" = set; then :
16001 withval=$with_c_client_target;
16002 if test "x$withval" != "xno" ;then
16003 alpine_with_c_client_target="$withval"
16010 alpine_PAM="none"
16012 case "$host" in
16013 *-linux-gnu*|*-k*bsd*-gnu*)
16014 alpine_path_delim="/"
16015 alpine_mode_readonly="(0600)"
16016 if test -f /etc/fedora-release ; then
16017 systype="LFD"
16018 alpine_PAM="yes"
16019 if test -d /etc/pki/tls ; then
16020 alpine_c_client_target="lfd"
16021 else
16022 alpine_c_client_target="lrh"
16024 elif test -f /etc/mandrake-release ; then
16025 systype="LMD"
16026 alpine_c_client_target="lmd"
16027 alpine_PAM="yes"
16028 elif test -f /etc/redhat-release -o -f /etc/redhat_version ; then
16029 systype="LRH"
16030 alpine_PAM="yes"
16031 if test -d /etc/pki/tls ; then
16032 alpine_c_client_target="lr5"
16033 else
16034 alpine_c_client_target="lrh"
16036 elif test -f /etc/debian_release -o -f /etc/debian_version ; then
16037 if test -d /etc/osso-af-init ; then
16038 systype="LN8"
16039 alpine_c_client_target="ln8"
16040 else
16041 systype="DEB"
16042 alpine_c_client_target="ldb"
16043 alpine_PAM="yes"
16045 elif test -f /etc/SuSE-release ; then
16046 systype="LSU"
16047 alpine_c_client_target="lsu"
16048 alpine_PAM="yes"
16049 else
16050 systype="LNX"
16051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
16052 $as_echo_n "checking for pam_start in -lpam... " >&6; }
16053 if ${ac_cv_lib_pam_pam_start+:} false; then :
16054 $as_echo_n "(cached) " >&6
16055 else
16056 ac_check_lib_save_LIBS=$LIBS
16057 LIBS="-lpam $LIBS"
16058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16059 /* end confdefs.h. */
16061 /* Override any GCC internal prototype to avoid an error.
16062 Use char because int might match the return type of a GCC
16063 builtin and then its argument prototype would still apply. */
16064 #ifdef __cplusplus
16065 extern "C"
16066 #endif
16067 char pam_start ();
16069 main ()
16071 return pam_start ();
16073 return 0;
16075 _ACEOF
16076 if ac_fn_c_try_link "$LINENO"; then :
16077 ac_cv_lib_pam_pam_start=yes
16078 else
16079 ac_cv_lib_pam_pam_start=no
16081 rm -f core conftest.err conftest.$ac_objext \
16082 conftest$ac_exeext conftest.$ac_ext
16083 LIBS=$ac_check_lib_save_LIBS
16085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5
16086 $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
16087 if test "x$ac_cv_lib_pam_pam_start" = xyes; then :
16089 alpine_c_client_target="lnp"
16090 alpine_PAM="yes"
16092 else
16094 if test -f /etc/shadow ; then
16095 alpine_c_client_target="slx"
16096 else
16097 alpine_c_client_target="lnx"
16104 *-apple-darwin*)
16105 systype="OSX"
16106 alpine_path_delim="/"
16107 alpine_mode_readonly="(0600)"
16108 LIBS="$LIBS -framework Carbon -framework ApplicationServices -framework Security"
16109 AM_CFLAGS="$AM_CFLAGS -Dbsd"
16111 $as_echo "#define OSX_TARGET 1" >>confdefs.h
16113 case "$alpine_os_credential_cache" in
16118 $as_echo "#define APPLEKEYCHAIN 1" >>confdefs.h
16121 esac
16122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
16123 $as_echo_n "checking for pam_start in -lpam... " >&6; }
16124 if ${ac_cv_lib_pam_pam_start+:} false; then :
16125 $as_echo_n "(cached) " >&6
16126 else
16127 ac_check_lib_save_LIBS=$LIBS
16128 LIBS="-lpam $LIBS"
16129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16130 /* end confdefs.h. */
16132 /* Override any GCC internal prototype to avoid an error.
16133 Use char because int might match the return type of a GCC
16134 builtin and then its argument prototype would still apply. */
16135 #ifdef __cplusplus
16136 extern "C"
16137 #endif
16138 char pam_start ();
16140 main ()
16142 return pam_start ();
16144 return 0;
16146 _ACEOF
16147 if ac_fn_c_try_link "$LINENO"; then :
16148 ac_cv_lib_pam_pam_start=yes
16149 else
16150 ac_cv_lib_pam_pam_start=no
16152 rm -f core conftest.err conftest.$ac_objext \
16153 conftest$ac_exeext conftest.$ac_ext
16154 LIBS=$ac_check_lib_save_LIBS
16156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5
16157 $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
16158 if test "x$ac_cv_lib_pam_pam_start" = xyes; then :
16160 ac_fn_c_check_header_mongrel "$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default"
16161 if test "x$ac_cv_header_security_pam_appl_h" = xyes; then :
16163 alpine_PAM="yes"
16164 alpine_c_client_target="oxs"
16166 else
16167 ac_fn_c_check_header_mongrel "$LINENO" "pam/pam_appl.h" "ac_cv_header_pam_pam_appl_h" "$ac_includes_default"
16168 if test "x$ac_cv_header_pam_pam_appl_h" = xyes; then :
16170 alpine_PAM="yes"
16171 alpine_c_client_target="oxp"
16173 else
16175 alpine_PAM="none"
16176 alpine_pam_none_reason="header files not found"
16186 else
16188 alpine_c_client_target="osx"
16193 *-*-solaris*)
16194 if test x$GCC = "xyes" ; then
16195 systype="GSO"
16196 alpine_c_client_target="gso"
16197 else
16198 systype="SOC"
16199 alpine_c_client_target="soc"
16201 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
16204 alpine_path_delim="/"
16205 alpine_mode_readonly="(0600)"
16207 *-*-sunos4*)
16208 systype="SUN"
16209 alpine_path_delim="/"
16210 alpine_mode_readonly="(0600)"
16211 alpine_c_client_target="s40"
16213 *-*-sco3.2v5*)
16214 if test x$GCC = "xyes" ; then
16215 systype="GO5"
16216 alpine_c_client_target="go5"
16217 else
16218 systype="SC5"
16219 alpine_c_client_target="sc5"
16221 alpine_path_delim="/"
16222 alpine_mode_readonly="(0600)"
16224 *-next-*)
16225 systype="NXT"
16226 alpine_path_delim="/"
16227 alpine_mode_readonly="(0600)"
16228 alpine_c_client_target="nx3"
16230 *-*-netbsd*)
16231 systype="NEB"
16232 alpine_path_delim="/"
16233 alpine_mode_readonly="(0600)"
16234 alpine_c_client_target="neb"
16236 *-*-dragonfly*)
16237 systype="DFB"
16238 alpine_path_delim="/"
16239 alpine_mode_readonly="(0600)"
16240 alpine_c_client_target="neb"
16242 *-*-bsdi*)
16243 systype="BSI"
16244 alpine_path_delim="/"
16245 alpine_mode_readonly="(0600)"
16246 alpine_c_client_target="bsi"
16248 *-*-freebsd*)
16249 systype="BSF"
16250 alpine_path_delim="/"
16251 alpine_mode_readonly="(0600)"
16252 alpine_c_client_target="bsf"
16253 LIBS="$LIBS $LIBINTL"
16255 *-*-openbsd*)
16256 systype="BSO"
16257 alpine_path_delim="/"
16258 alpine_mode_readonly="(0600)"
16259 alpine_c_client_target="bso"
16260 LIBS="$LIBS $LIBINTL"
16262 *-*-aix5*)
16263 systype="A52"
16264 alpine_path_delim="/"
16265 alpine_mode_readonly="(0600)"
16266 alpine_c_client_target="a52"
16268 *-*-aix4*)
16269 systype="A41"
16270 alpine_path_delim="/"
16271 alpine_mode_readonly="(0600)"
16272 alpine_c_client_target="a41"
16274 *-*-aix3*)
16275 systype="A32"
16276 alpine_path_delim="/"
16277 alpine_mode_readonly="(0600)"
16278 alpine_c_client_target="a32"
16280 *-*UNIX_SV | *-*-sysv5UnixWare7* | *-*OpenUNIX*)
16281 systype="UW2"
16282 alpine_path_delim="/"
16283 alpine_mode_readonly="(0600)"
16284 alpine_c_client_target="uw2"
16286 *-*-osf5*)
16287 systype="OSF"
16288 alpine_path_delim="/"
16289 alpine_mode_readonly="(0600)"
16290 alpine_c_client_target="osf"
16292 *-*-cygwin)
16293 systype="CYG"
16294 alpine_path_delim="/"
16295 alpine_mode_readonly="(S_IREAD | S_IWRITE)"
16296 alpine_c_client_target="cyg"
16297 LIBS="$LIBS $LIBINTL"
16299 windows* | *-*-pw32*)
16300 systype="WNT"
16301 alpine_path_delim="\\"
16302 alpine_mode_readonly="(S_IREAD | S_IWRITE)"
16303 alpine_c_client_target="wnt"
16305 $as_echo "#define _WINDOWS 1" >>confdefs.h
16309 as_fn_error $? "Unrecognized system: $host" "$LINENO" 5
16311 esac
16314 # Check whether --with-ipv6 was given.
16315 if test "${with_ipv6+set}" = set; then :
16316 withval=$with_ipv6; with_ipv6=$withval
16320 if test "x$with_ipv6" = "xno" ; then
16321 { $as_echo "$as_me:${as_lineno-$LINENO}: Excluding IPv6 Support" >&5
16322 $as_echo "$as_me: Excluding IPv6 Support" >&6;}
16323 c_client_specials="${c_client_specials}IP6=4 "
16324 c_client_ip6="true"
16325 else
16326 c_client_ip6="touch imap/ip6"
16331 if test x$enable_dmalloc = "xyes" ; then
16332 if test "x$with_pthread" = "xyes" ; then
16333 dmalloc_lib=dmallocth
16334 else
16335 dmalloc_lib=dmalloc
16338 as_ac_Lib=`$as_echo "ac_cv_lib_$dmalloc_lib''_dmalloc_shutdown" | $as_tr_sh`
16339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dmalloc_shutdown in -l$dmalloc_lib" >&5
16340 $as_echo_n "checking for dmalloc_shutdown in -l$dmalloc_lib... " >&6; }
16341 if eval \${$as_ac_Lib+:} false; then :
16342 $as_echo_n "(cached) " >&6
16343 else
16344 ac_check_lib_save_LIBS=$LIBS
16345 LIBS="-l$dmalloc_lib $LIBS"
16346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16347 /* end confdefs.h. */
16349 /* Override any GCC internal prototype to avoid an error.
16350 Use char because int might match the return type of a GCC
16351 builtin and then its argument prototype would still apply. */
16352 #ifdef __cplusplus
16353 extern "C"
16354 #endif
16355 char dmalloc_shutdown ();
16357 main ()
16359 return dmalloc_shutdown ();
16361 return 0;
16363 _ACEOF
16364 if ac_fn_c_try_link "$LINENO"; then :
16365 eval "$as_ac_Lib=yes"
16366 else
16367 eval "$as_ac_Lib=no"
16369 rm -f core conftest.err conftest.$ac_objext \
16370 conftest$ac_exeext conftest.$ac_ext
16371 LIBS=$ac_check_lib_save_LIBS
16373 eval ac_res=\$$as_ac_Lib
16374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16375 $as_echo "$ac_res" >&6; }
16376 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
16377 cat >>confdefs.h <<_ACEOF
16378 #define `$as_echo "HAVE_LIB$dmalloc_lib" | $as_tr_cpp` 1
16379 _ACEOF
16381 LIBS="-l$dmalloc_lib $LIBS"
16383 else
16385 as_fn_error but -ldmalloc not found "$dmalloc_lib requested" "$LINENO" 5
16391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setupterm in -ltinfo" >&5
16392 $as_echo_n "checking for setupterm in -ltinfo... " >&6; }
16393 if ${ac_cv_lib_tinfo_setupterm+:} false; then :
16394 $as_echo_n "(cached) " >&6
16395 else
16396 ac_check_lib_save_LIBS=$LIBS
16397 LIBS="-ltinfo $LIBS"
16398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16399 /* end confdefs.h. */
16401 /* Override any GCC internal prototype to avoid an error.
16402 Use char because int might match the return type of a GCC
16403 builtin and then its argument prototype would still apply. */
16404 #ifdef __cplusplus
16405 extern "C"
16406 #endif
16407 char setupterm ();
16409 main ()
16411 return setupterm ();
16413 return 0;
16415 _ACEOF
16416 if ac_fn_c_try_link "$LINENO"; then :
16417 ac_cv_lib_tinfo_setupterm=yes
16418 else
16419 ac_cv_lib_tinfo_setupterm=no
16421 rm -f core conftest.err conftest.$ac_objext \
16422 conftest$ac_exeext conftest.$ac_ext
16423 LIBS=$ac_check_lib_save_LIBS
16425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_setupterm" >&5
16426 $as_echo "$ac_cv_lib_tinfo_setupterm" >&6; }
16427 if test "x$ac_cv_lib_tinfo_setupterm" = xyes; then :
16429 alpine_termdata=info
16430 LIBS="$LIBS -ltinfo"
16432 else
16434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setupterm in -lncurses" >&5
16435 $as_echo_n "checking for setupterm in -lncurses... " >&6; }
16436 if ${ac_cv_lib_ncurses_setupterm+:} false; then :
16437 $as_echo_n "(cached) " >&6
16438 else
16439 ac_check_lib_save_LIBS=$LIBS
16440 LIBS="-lncurses $LIBS"
16441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16442 /* end confdefs.h. */
16444 /* Override any GCC internal prototype to avoid an error.
16445 Use char because int might match the return type of a GCC
16446 builtin and then its argument prototype would still apply. */
16447 #ifdef __cplusplus
16448 extern "C"
16449 #endif
16450 char setupterm ();
16452 main ()
16454 return setupterm ();
16456 return 0;
16458 _ACEOF
16459 if ac_fn_c_try_link "$LINENO"; then :
16460 ac_cv_lib_ncurses_setupterm=yes
16461 else
16462 ac_cv_lib_ncurses_setupterm=no
16464 rm -f core conftest.err conftest.$ac_objext \
16465 conftest$ac_exeext conftest.$ac_ext
16466 LIBS=$ac_check_lib_save_LIBS
16468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_setupterm" >&5
16469 $as_echo "$ac_cv_lib_ncurses_setupterm" >&6; }
16470 if test "x$ac_cv_lib_ncurses_setupterm" = xyes; then :
16472 alpine_termdata=info
16473 LIBS="$LIBS -lncurses"
16475 else
16477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setupterm in -lcurses" >&5
16478 $as_echo_n "checking for setupterm in -lcurses... " >&6; }
16479 if ${ac_cv_lib_curses_setupterm+:} false; then :
16480 $as_echo_n "(cached) " >&6
16481 else
16482 ac_check_lib_save_LIBS=$LIBS
16483 LIBS="-lcurses $LIBS"
16484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16485 /* end confdefs.h. */
16487 /* Override any GCC internal prototype to avoid an error.
16488 Use char because int might match the return type of a GCC
16489 builtin and then its argument prototype would still apply. */
16490 #ifdef __cplusplus
16491 extern "C"
16492 #endif
16493 char setupterm ();
16495 main ()
16497 return setupterm ();
16499 return 0;
16501 _ACEOF
16502 if ac_fn_c_try_link "$LINENO"; then :
16503 ac_cv_lib_curses_setupterm=yes
16504 else
16505 ac_cv_lib_curses_setupterm=no
16507 rm -f core conftest.err conftest.$ac_objext \
16508 conftest$ac_exeext conftest.$ac_ext
16509 LIBS=$ac_check_lib_save_LIBS
16511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_setupterm" >&5
16512 $as_echo "$ac_cv_lib_curses_setupterm" >&6; }
16513 if test "x$ac_cv_lib_curses_setupterm" = xyes; then :
16515 alpine_termdata=info
16516 LIBS="$LIBS -lcurses"
16518 else
16520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermlib" >&5
16521 $as_echo_n "checking for tgetent in -ltermlib... " >&6; }
16522 if ${ac_cv_lib_termlib_tgetent+:} false; then :
16523 $as_echo_n "(cached) " >&6
16524 else
16525 ac_check_lib_save_LIBS=$LIBS
16526 LIBS="-ltermlib $LIBS"
16527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16528 /* end confdefs.h. */
16530 /* Override any GCC internal prototype to avoid an error.
16531 Use char because int might match the return type of a GCC
16532 builtin and then its argument prototype would still apply. */
16533 #ifdef __cplusplus
16534 extern "C"
16535 #endif
16536 char tgetent ();
16538 main ()
16540 return tgetent ();
16542 return 0;
16544 _ACEOF
16545 if ac_fn_c_try_link "$LINENO"; then :
16546 ac_cv_lib_termlib_tgetent=yes
16547 else
16548 ac_cv_lib_termlib_tgetent=no
16550 rm -f core conftest.err conftest.$ac_objext \
16551 conftest$ac_exeext conftest.$ac_ext
16552 LIBS=$ac_check_lib_save_LIBS
16554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termlib_tgetent" >&5
16555 $as_echo "$ac_cv_lib_termlib_tgetent" >&6; }
16556 if test "x$ac_cv_lib_termlib_tgetent" = xyes; then :
16558 alpine_termdata=cap
16559 LIBS="$LIBS -ltermlib"
16561 else
16563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
16564 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
16565 if ${ac_cv_lib_termcap_tgetent+:} false; then :
16566 $as_echo_n "(cached) " >&6
16567 else
16568 ac_check_lib_save_LIBS=$LIBS
16569 LIBS="-ltermcap $LIBS"
16570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16571 /* end confdefs.h. */
16573 /* Override any GCC internal prototype to avoid an error.
16574 Use char because int might match the return type of a GCC
16575 builtin and then its argument prototype would still apply. */
16576 #ifdef __cplusplus
16577 extern "C"
16578 #endif
16579 char tgetent ();
16581 main ()
16583 return tgetent ();
16585 return 0;
16587 _ACEOF
16588 if ac_fn_c_try_link "$LINENO"; then :
16589 ac_cv_lib_termcap_tgetent=yes
16590 else
16591 ac_cv_lib_termcap_tgetent=no
16593 rm -f core conftest.err conftest.$ac_objext \
16594 conftest$ac_exeext conftest.$ac_ext
16595 LIBS=$ac_check_lib_save_LIBS
16597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
16598 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
16599 if test "x$ac_cv_lib_termcap_tgetent" = xyes; then :
16601 alpine_termdata=cap
16602 LIBS="$LIBS -ltermcap"
16604 else
16606 as_fn_error $? "Terminfo/termcap not found" "$LINENO" 5
16622 case $alpine_termdata in
16623 info)
16625 $as_echo "#define HAS_TERMINFO 1" >>confdefs.h
16628 cap)
16630 $as_echo "#define HAS_TERMCAP 1" >>confdefs.h
16633 esac
16635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
16636 $as_echo_n "checking for library containing dlopen... " >&6; }
16637 if ${ac_cv_search_dlopen+:} false; then :
16638 $as_echo_n "(cached) " >&6
16639 else
16640 ac_func_search_save_LIBS=$LIBS
16641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16642 /* end confdefs.h. */
16644 /* Override any GCC internal prototype to avoid an error.
16645 Use char because int might match the return type of a GCC
16646 builtin and then its argument prototype would still apply. */
16647 #ifdef __cplusplus
16648 extern "C"
16649 #endif
16650 char dlopen ();
16652 main ()
16654 return dlopen ();
16656 return 0;
16658 _ACEOF
16659 for ac_lib in '' dl dld; do
16660 if test -z "$ac_lib"; then
16661 ac_res="none required"
16662 else
16663 ac_res=-l$ac_lib
16664 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16666 if ac_fn_c_try_link "$LINENO"; then :
16667 ac_cv_search_dlopen=$ac_res
16669 rm -f core conftest.err conftest.$ac_objext \
16670 conftest$ac_exeext
16671 if ${ac_cv_search_dlopen+:} false; then :
16672 break
16674 done
16675 if ${ac_cv_search_dlopen+:} false; then :
16677 else
16678 ac_cv_search_dlopen=no
16680 rm conftest.$ac_ext
16681 LIBS=$ac_func_search_save_LIBS
16683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
16684 $as_echo "$ac_cv_search_dlopen" >&6; }
16685 ac_res=$ac_cv_search_dlopen
16686 if test "$ac_res" != no; then :
16687 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16689 else
16690 alpine_DL="none"
16693 if test "x$alpine_DL" = "xnone" ; then
16694 as_fn_error $? "No library containing dlopen found" "$LINENO" 5
16695 exit 1
16698 if test "x$alpine_SSLTYPE" != "xnone" ; then
16699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing SSLeay" >&5
16700 $as_echo_n "checking for library containing SSLeay... " >&6; }
16701 if ${ac_cv_search_SSLeay+:} false; then :
16702 $as_echo_n "(cached) " >&6
16703 else
16704 ac_func_search_save_LIBS=$LIBS
16705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16706 /* end confdefs.h. */
16708 /* Override any GCC internal prototype to avoid an error.
16709 Use char because int might match the return type of a GCC
16710 builtin and then its argument prototype would still apply. */
16711 #ifdef __cplusplus
16712 extern "C"
16713 #endif
16714 char SSLeay ();
16716 main ()
16718 return SSLeay ();
16720 return 0;
16722 _ACEOF
16723 for ac_lib in '' crypto; do
16724 if test -z "$ac_lib"; then
16725 ac_res="none required"
16726 else
16727 ac_res=-l$ac_lib
16728 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16730 if ac_fn_c_try_link "$LINENO"; then :
16731 ac_cv_search_SSLeay=$ac_res
16733 rm -f core conftest.err conftest.$ac_objext \
16734 conftest$ac_exeext
16735 if ${ac_cv_search_SSLeay+:} false; then :
16736 break
16738 done
16739 if ${ac_cv_search_SSLeay+:} false; then :
16741 else
16742 ac_cv_search_SSLeay=no
16744 rm conftest.$ac_ext
16745 LIBS=$ac_func_search_save_LIBS
16747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_SSLeay" >&5
16748 $as_echo "$ac_cv_search_SSLeay" >&6; }
16749 ac_res=$ac_cv_search_SSLeay
16750 if test "$ac_res" != no; then :
16751 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16753 else
16754 alpine_CRYPTO="none"
16757 if test "x$alpine_CRYPTO" = "xnone" ; then
16758 as_fn_error $? "crypto library NOT found" "$LINENO" 5
16759 exit 1
16763 if test "x$alpine_SSLTYPE" != "xnone" ; then
16764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing SSL_library_init" >&5
16765 $as_echo_n "checking for library containing SSL_library_init... " >&6; }
16766 if ${ac_cv_search_SSL_library_init+:} false; then :
16767 $as_echo_n "(cached) " >&6
16768 else
16769 ac_func_search_save_LIBS=$LIBS
16770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16771 /* end confdefs.h. */
16773 /* Override any GCC internal prototype to avoid an error.
16774 Use char because int might match the return type of a GCC
16775 builtin and then its argument prototype would still apply. */
16776 #ifdef __cplusplus
16777 extern "C"
16778 #endif
16779 char SSL_library_init ();
16781 main ()
16783 return SSL_library_init ();
16785 return 0;
16787 _ACEOF
16788 for ac_lib in '' ssl; do
16789 if test -z "$ac_lib"; then
16790 ac_res="none required"
16791 else
16792 ac_res=-l$ac_lib
16793 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16795 if ac_fn_c_try_link "$LINENO"; then :
16796 ac_cv_search_SSL_library_init=$ac_res
16798 rm -f core conftest.err conftest.$ac_objext \
16799 conftest$ac_exeext
16800 if ${ac_cv_search_SSL_library_init+:} false; then :
16801 break
16803 done
16804 if ${ac_cv_search_SSL_library_init+:} false; then :
16806 else
16807 ac_cv_search_SSL_library_init=no
16809 rm conftest.$ac_ext
16810 LIBS=$ac_func_search_save_LIBS
16812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_SSL_library_init" >&5
16813 $as_echo "$ac_cv_search_SSL_library_init" >&6; }
16814 ac_res=$ac_cv_search_SSL_library_init
16815 if test "$ac_res" != no; then :
16816 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16818 else
16819 alpine_SSLTYPE="none"
16823 if test "x$alpine_SSLTYPE" = "xnone" ; then
16824 as_fn_error $? "No library containing SSL_library_init found in your path" "$LINENO" 5
16825 exit 1
16828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Openssl library version >= 1.0.0c" >&5
16829 $as_echo_n "checking Openssl library version >= 1.0.0c... " >&6; }
16830 if test "$cross_compiling" = yes; then :
16831 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16832 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16833 as_fn_error $? "cannot run test program while cross compiling
16834 See \`config.log' for more details" "$LINENO" 5; }
16835 else
16836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16837 /* end confdefs.h. */
16839 #include <stdio.h>
16840 #include <stdlib.h>
16841 #include <openssl/ssl.h>
16842 int main(void) {
16844 if (OPENSSL_VERSION_NUMBER >= 0x1000003f)
16845 exit(0);
16847 exit(2);
16850 _ACEOF
16851 if ac_fn_c_try_run "$LINENO"; then :
16852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16853 $as_echo "yes" >&6; }
16854 else
16855 alpine_SSLTYPE="none"
16857 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16858 conftest.$ac_objext conftest.beam conftest.$ac_ext
16862 if test "x$alpine_SSLTYPE" = "xnone" ; then
16863 as_fn_error $? "Install openssl version >= 1.0.0c" "$LINENO" 5
16864 exit 1
16866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing TLSv1_2_client_method" >&5
16867 $as_echo_n "checking for library containing TLSv1_2_client_method... " >&6; }
16868 if ${ac_cv_search_TLSv1_2_client_method+:} false; then :
16869 $as_echo_n "(cached) " >&6
16870 else
16871 ac_func_search_save_LIBS=$LIBS
16872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16873 /* end confdefs.h. */
16875 /* Override any GCC internal prototype to avoid an error.
16876 Use char because int might match the return type of a GCC
16877 builtin and then its argument prototype would still apply. */
16878 #ifdef __cplusplus
16879 extern "C"
16880 #endif
16881 char TLSv1_2_client_method ();
16883 main ()
16885 return TLSv1_2_client_method ();
16887 return 0;
16889 _ACEOF
16890 for ac_lib in '' ssl; do
16891 if test -z "$ac_lib"; then
16892 ac_res="none required"
16893 else
16894 ac_res=-l$ac_lib
16895 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16897 if ac_fn_c_try_link "$LINENO"; then :
16898 ac_cv_search_TLSv1_2_client_method=$ac_res
16900 rm -f core conftest.err conftest.$ac_objext \
16901 conftest$ac_exeext
16902 if ${ac_cv_search_TLSv1_2_client_method+:} false; then :
16903 break
16905 done
16906 if ${ac_cv_search_TLSv1_2_client_method+:} false; then :
16908 else
16909 ac_cv_search_TLSv1_2_client_method=no
16911 rm conftest.$ac_ext
16912 LIBS=$ac_func_search_save_LIBS
16914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_TLSv1_2_client_method" >&5
16915 $as_echo "$ac_cv_search_TLSv1_2_client_method" >&6; }
16916 ac_res=$ac_cv_search_TLSv1_2_client_method
16917 if test "$ac_res" != no; then :
16918 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16919 alpine_c_client_cflags="$alpine_c_client_cflags -DTLSV1_2"
16921 $as_echo "#define SSL_SUPPORTS_TLSV1_2 1" >>confdefs.h
16928 if test "$alpine_with_ldap" = "yes" ; then
16929 alpine_has_ldap=
16930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_alloc in -llber" >&5
16931 $as_echo_n "checking for ber_alloc in -llber... " >&6; }
16932 if ${ac_cv_lib_lber_ber_alloc+:} false; then :
16933 $as_echo_n "(cached) " >&6
16934 else
16935 ac_check_lib_save_LIBS=$LIBS
16936 LIBS="-llber $LIBS"
16937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16938 /* end confdefs.h. */
16940 /* Override any GCC internal prototype to avoid an error.
16941 Use char because int might match the return type of a GCC
16942 builtin and then its argument prototype would still apply. */
16943 #ifdef __cplusplus
16944 extern "C"
16945 #endif
16946 char ber_alloc ();
16948 main ()
16950 return ber_alloc ();
16952 return 0;
16954 _ACEOF
16955 if ac_fn_c_try_link "$LINENO"; then :
16956 ac_cv_lib_lber_ber_alloc=yes
16957 else
16958 ac_cv_lib_lber_ber_alloc=no
16960 rm -f core conftest.err conftest.$ac_objext \
16961 conftest$ac_exeext conftest.$ac_ext
16962 LIBS=$ac_check_lib_save_LIBS
16964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_alloc" >&5
16965 $as_echo "$ac_cv_lib_lber_ber_alloc" >&6; }
16966 if test "x$ac_cv_lib_lber_ber_alloc" = xyes; then :
16968 LIBS="$LIBS -llber"
16972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldap_init" >&5
16973 $as_echo_n "checking for library containing ldap_init... " >&6; }
16974 if ${ac_cv_search_ldap_init+:} false; then :
16975 $as_echo_n "(cached) " >&6
16976 else
16977 ac_func_search_save_LIBS=$LIBS
16978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16979 /* end confdefs.h. */
16981 /* Override any GCC internal prototype to avoid an error.
16982 Use char because int might match the return type of a GCC
16983 builtin and then its argument prototype would still apply. */
16984 #ifdef __cplusplus
16985 extern "C"
16986 #endif
16987 char ldap_init ();
16989 main ()
16991 return ldap_init ();
16993 return 0;
16995 _ACEOF
16996 for ac_lib in '' ldap; do
16997 if test -z "$ac_lib"; then
16998 ac_res="none required"
16999 else
17000 ac_res=-l$ac_lib
17001 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17003 if ac_fn_c_try_link "$LINENO"; then :
17004 ac_cv_search_ldap_init=$ac_res
17006 rm -f core conftest.err conftest.$ac_objext \
17007 conftest$ac_exeext
17008 if ${ac_cv_search_ldap_init+:} false; then :
17009 break
17011 done
17012 if ${ac_cv_search_ldap_init+:} false; then :
17014 else
17015 ac_cv_search_ldap_init=no
17017 rm conftest.$ac_ext
17018 LIBS=$ac_func_search_save_LIBS
17020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldap_init" >&5
17021 $as_echo "$ac_cv_search_ldap_init" >&6; }
17022 ac_res=$ac_cv_search_ldap_init
17023 if test "$ac_res" != no; then :
17024 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17026 alpine_has_ldap=yes
17028 else
17030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldap_open" >&5
17031 $as_echo_n "checking for library containing ldap_open... " >&6; }
17032 if ${ac_cv_search_ldap_open+:} false; then :
17033 $as_echo_n "(cached) " >&6
17034 else
17035 ac_func_search_save_LIBS=$LIBS
17036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17037 /* end confdefs.h. */
17039 /* Override any GCC internal prototype to avoid an error.
17040 Use char because int might match the return type of a GCC
17041 builtin and then its argument prototype would still apply. */
17042 #ifdef __cplusplus
17043 extern "C"
17044 #endif
17045 char ldap_open ();
17047 main ()
17049 return ldap_open ();
17051 return 0;
17053 _ACEOF
17054 for ac_lib in '' ldap; do
17055 if test -z "$ac_lib"; then
17056 ac_res="none required"
17057 else
17058 ac_res=-l$ac_lib
17059 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17061 if ac_fn_c_try_link "$LINENO"; then :
17062 ac_cv_search_ldap_open=$ac_res
17064 rm -f core conftest.err conftest.$ac_objext \
17065 conftest$ac_exeext
17066 if ${ac_cv_search_ldap_open+:} false; then :
17067 break
17069 done
17070 if ${ac_cv_search_ldap_open+:} false; then :
17072 else
17073 ac_cv_search_ldap_open=no
17075 rm conftest.$ac_ext
17076 LIBS=$ac_func_search_save_LIBS
17078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldap_open" >&5
17079 $as_echo "$ac_cv_search_ldap_open" >&6; }
17080 ac_res=$ac_cv_search_ldap_open
17081 if test "$ac_res" != no; then :
17082 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17084 alpine_has_ldap=yes
17092 if test "$alpine_has_ldap" = "yes" ; then
17093 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * Including LDAP Support" >&5
17094 $as_echo "$as_me: * * * Including LDAP Support" >&6;}
17096 $as_echo "#define ENABLE_LDAP /**/" >>confdefs.h
17099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should define LDAP_DEPRECATED" >&5
17100 $as_echo_n "checking if we should define LDAP_DEPRECATED... " >&6; }
17101 if test "$cross_compiling" = yes; then :
17103 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking" >&5
17104 $as_echo "$as_me: WARNING: cross compiling: not checking" >&2;}
17107 else
17108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17109 /* end confdefs.h. */
17111 #include <stdio.h>
17112 #include <stdlib.h>
17113 #include <ldap.h>
17114 int main(void) {
17116 if (LDAP_VENDOR_VERSION >= 20300)
17117 exit(0);
17119 exit(2);
17122 _ACEOF
17123 if ac_fn_c_try_run "$LINENO"; then :
17125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17126 $as_echo "yes" >&6; }
17128 $as_echo "#define LDAP_DEPRECATED 1" >>confdefs.h
17132 else
17134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17135 $as_echo "no" >&6; }
17138 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17139 conftest.$ac_objext conftest.beam conftest.$ac_ext
17143 else
17144 { $as_echo "$as_me:${as_lineno-$LINENO}: Cannot find LDAP functions! Excluding LDAP support." >&5
17145 $as_echo "$as_me: Cannot find LDAP functions! Excluding LDAP support." >&6;}
17149 if test "x$alpine_PAM" != "xnone" ; then
17150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pam_start" >&5
17151 $as_echo_n "checking for library containing pam_start... " >&6; }
17152 if ${ac_cv_search_pam_start+:} false; then :
17153 $as_echo_n "(cached) " >&6
17154 else
17155 ac_func_search_save_LIBS=$LIBS
17156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17157 /* end confdefs.h. */
17159 /* Override any GCC internal prototype to avoid an error.
17160 Use char because int might match the return type of a GCC
17161 builtin and then its argument prototype would still apply. */
17162 #ifdef __cplusplus
17163 extern "C"
17164 #endif
17165 char pam_start ();
17167 main ()
17169 return pam_start ();
17171 return 0;
17173 _ACEOF
17174 for ac_lib in '' pam; do
17175 if test -z "$ac_lib"; then
17176 ac_res="none required"
17177 else
17178 ac_res=-l$ac_lib
17179 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17181 if ac_fn_c_try_link "$LINENO"; then :
17182 ac_cv_search_pam_start=$ac_res
17184 rm -f core conftest.err conftest.$ac_objext \
17185 conftest$ac_exeext
17186 if ${ac_cv_search_pam_start+:} false; then :
17187 break
17189 done
17190 if ${ac_cv_search_pam_start+:} false; then :
17192 else
17193 ac_cv_search_pam_start=no
17195 rm conftest.$ac_ext
17196 LIBS=$ac_func_search_save_LIBS
17198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pam_start" >&5
17199 $as_echo "$ac_cv_search_pam_start" >&6; }
17200 ac_res=$ac_cv_search_pam_start
17201 if test "$ac_res" != no; then :
17202 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17204 LIBS="$LIBS -lpam"
17205 ac_fn_c_check_header_mongrel "$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default"
17206 if test "x$ac_cv_header_security_pam_appl_h" = xyes; then :
17208 alpine_PAM="yes"
17210 else
17211 ac_fn_c_check_header_mongrel "$LINENO" "pam/pam_appl.h" "ac_cv_header_pam_pam_appl_h" "$ac_includes_default"
17212 if test "x$ac_cv_header_pam_pam_appl_h" = xyes; then :
17214 alpine_PAM="yes"
17215 if test "x$alpine_c_client_target" != "xoxp" ; then
17216 alpine_PAM="none"
17217 alpine_pam_none_reason="header files not in security/ directory"
17220 else
17222 alpine_PAM="none"
17223 alpine_pam_none_reason="header files not found"
17233 else
17235 alpine_PAM="none"
17236 alpine_pam_none_reason="library files not found"
17240 if test -n "$alpine_pam_none_reason" ; then
17241 as_fn_error $? "No PAM support: $alpine_pam_none_reason" "$LINENO" 5
17246 if test "x$alpine_GSSTYPE" != "xnone" ; then
17247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gss_init_sec_context" >&5
17248 $as_echo_n "checking for library containing gss_init_sec_context... " >&6; }
17249 if ${ac_cv_search_gss_init_sec_context+:} false; then :
17250 $as_echo_n "(cached) " >&6
17251 else
17252 ac_func_search_save_LIBS=$LIBS
17253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17254 /* end confdefs.h. */
17256 /* Override any GCC internal prototype to avoid an error.
17257 Use char because int might match the return type of a GCC
17258 builtin and then its argument prototype would still apply. */
17259 #ifdef __cplusplus
17260 extern "C"
17261 #endif
17262 char gss_init_sec_context ();
17264 main ()
17266 return gss_init_sec_context ();
17268 return 0;
17270 _ACEOF
17271 for ac_lib in '' gss gssapi gssapi_krb5; do
17272 if test -z "$ac_lib"; then
17273 ac_res="none required"
17274 else
17275 ac_res=-l$ac_lib
17276 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17278 if ac_fn_c_try_link "$LINENO"; then :
17279 ac_cv_search_gss_init_sec_context=$ac_res
17281 rm -f core conftest.err conftest.$ac_objext \
17282 conftest$ac_exeext
17283 if ${ac_cv_search_gss_init_sec_context+:} false; then :
17284 break
17286 done
17287 if ${ac_cv_search_gss_init_sec_context+:} false; then :
17289 else
17290 ac_cv_search_gss_init_sec_context=no
17292 rm conftest.$ac_ext
17293 LIBS=$ac_func_search_save_LIBS
17295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gss_init_sec_context" >&5
17296 $as_echo "$ac_cv_search_gss_init_sec_context" >&6; }
17297 ac_res=$ac_cv_search_gss_init_sec_context
17298 if test "$ac_res" != no; then :
17299 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17301 LIBS="$LIBS -lkrb5"
17302 ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi_generic.h" "ac_cv_header_gssapi_gssapi_generic_h" "$ac_includes_default"
17303 if test "x$ac_cv_header_gssapi_gssapi_generic_h" = xyes; then :
17305 else
17307 if test ! -d /usr/kerberos/include ; then
17308 alpine_GSSTYPE="none"
17309 alpine_gss_none_reason="header files not found"
17316 else
17318 alpine_GSSTYPE="none"
17319 alpine_gss_none_reason="libraries not found"
17323 if test -n "$alpine_gss_none_reason" ; then
17324 { $as_echo "$as_me:${as_lineno-$LINENO}: NOT including Kerberos Support: $alpine_gss_none_reason" >&5
17325 $as_echo "$as_me: NOT including Kerberos Support: $alpine_gss_none_reason" >&6;}
17329 if test -n "$WEB_BUILD" ; then
17330 TCL_VERSIONS_DOT="tcl8.6 tcl8.5 tcl8.4 tcl8.3"
17331 TCL_VERSIONS_NODOT="`echo ${TCL_VERSIONS_DOT} | ${SED} 's/\.//g'`"
17332 TCL_VERSIONS="${TCL_VERSIONS_DOT} ${TCL_VERSIONS_NODOT} tcl"
17333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing Tcl_Eval" >&5
17334 $as_echo_n "checking for library containing Tcl_Eval... " >&6; }
17335 if ${ac_cv_search_Tcl_Eval+:} false; then :
17336 $as_echo_n "(cached) " >&6
17337 else
17338 ac_func_search_save_LIBS=$LIBS
17339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17340 /* end confdefs.h. */
17342 /* Override any GCC internal prototype to avoid an error.
17343 Use char because int might match the return type of a GCC
17344 builtin and then its argument prototype would still apply. */
17345 #ifdef __cplusplus
17346 extern "C"
17347 #endif
17348 char Tcl_Eval ();
17350 main ()
17352 return Tcl_Eval ();
17354 return 0;
17356 _ACEOF
17357 for ac_lib in '' $alpine_TCLLIB ${TCL_VERSIONS}; do
17358 if test -z "$ac_lib"; then
17359 ac_res="none required"
17360 else
17361 ac_res=-l$ac_lib
17362 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17364 if ac_fn_c_try_link "$LINENO"; then :
17365 ac_cv_search_Tcl_Eval=$ac_res
17367 rm -f core conftest.err conftest.$ac_objext \
17368 conftest$ac_exeext
17369 if ${ac_cv_search_Tcl_Eval+:} false; then :
17370 break
17372 done
17373 if ${ac_cv_search_Tcl_Eval+:} false; then :
17375 else
17376 ac_cv_search_Tcl_Eval=no
17378 rm conftest.$ac_ext
17379 LIBS=$ac_func_search_save_LIBS
17381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_Tcl_Eval" >&5
17382 $as_echo "$ac_cv_search_Tcl_Eval" >&6; }
17383 ac_res=$ac_cv_search_Tcl_Eval
17384 if test "$ac_res" != no; then :
17385 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17387 else
17389 WEB_BUILD=
17394 if test -n "$alpine_TCLINC" ; then
17395 as_ac_Header=`$as_echo "ac_cv_header_$alpine_TCLINC/tcl.h" | $as_tr_sh`
17396 ac_fn_c_check_header_mongrel "$LINENO" "$alpine_TCLINC/tcl.h" "$as_ac_Header" "$ac_includes_default"
17397 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17399 else
17401 WEB_BUILD=
17406 if test -z "$WEB_BUILD" ; then
17407 { $as_echo "$as_me:${as_lineno-$LINENO}: Tcl Include file NOT found" >&5
17408 $as_echo "$as_me: Tcl Include file NOT found" >&6;}
17410 else
17411 ac_fn_c_check_header_mongrel "$LINENO" "tcl.h" "ac_cv_header_tcl_h" "$ac_includes_default"
17412 if test "x$ac_cv_header_tcl_h" = xyes; then :
17414 else
17416 for base in /usr /usr/local ; do
17417 for dir in ${TCL_VERSIONS} ; do
17418 as_ac_File=`$as_echo "ac_cv_file_$base/include/$dir/tcl.h" | $as_tr_sh`
17419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $base/include/$dir/tcl.h" >&5
17420 $as_echo_n "checking for $base/include/$dir/tcl.h... " >&6; }
17421 if eval \${$as_ac_File+:} false; then :
17422 $as_echo_n "(cached) " >&6
17423 else
17424 test "$cross_compiling" = yes &&
17425 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
17426 if test -r "$base/include/$dir/tcl.h"; then
17427 eval "$as_ac_File=yes"
17428 else
17429 eval "$as_ac_File=no"
17432 eval ac_res=\$$as_ac_File
17433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17434 $as_echo "$ac_res" >&6; }
17435 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
17437 found=yes
17441 if test "$found" = "yes" ; then
17442 CPPFLAGS="$CPPFLAGS -I$base/include/$dir"
17443 break
17445 done
17446 if test "$found" = "yes" ; then
17447 break
17449 done
17450 if test "$found" != "yes" ; then
17451 WEB_BUILD=
17452 { $as_echo "$as_me:${as_lineno-$LINENO}: header file tcl.h NOT found: Web Alpine will not be built" >&5
17453 $as_echo "$as_me: header file tcl.h NOT found: Web Alpine will not be built" >&6;}
17462 if test "x$alpine_REGEX" != "xyes" ; then
17463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing regcomp" >&5
17464 $as_echo_n "checking for library containing regcomp... " >&6; }
17465 if ${ac_cv_search_regcomp+:} false; then :
17466 $as_echo_n "(cached) " >&6
17467 else
17468 ac_func_search_save_LIBS=$LIBS
17469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17470 /* end confdefs.h. */
17472 /* Override any GCC internal prototype to avoid an error.
17473 Use char because int might match the return type of a GCC
17474 builtin and then its argument prototype would still apply. */
17475 #ifdef __cplusplus
17476 extern "C"
17477 #endif
17478 char regcomp ();
17480 main ()
17482 return regcomp ();
17484 return 0;
17486 _ACEOF
17487 for ac_lib in '' posix regexp regex re; do
17488 if test -z "$ac_lib"; then
17489 ac_res="none required"
17490 else
17491 ac_res=-l$ac_lib
17492 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17494 if ac_fn_c_try_link "$LINENO"; then :
17495 ac_cv_search_regcomp=$ac_res
17497 rm -f core conftest.err conftest.$ac_objext \
17498 conftest$ac_exeext
17499 if ${ac_cv_search_regcomp+:} false; then :
17500 break
17502 done
17503 if ${ac_cv_search_regcomp+:} false; then :
17505 else
17506 ac_cv_search_regcomp=no
17508 rm conftest.$ac_ext
17509 LIBS=$ac_func_search_save_LIBS
17511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_regcomp" >&5
17512 $as_echo "$ac_cv_search_regcomp" >&6; }
17513 ac_res=$ac_cv_search_regcomp
17514 if test "$ac_res" != no; then :
17515 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17517 else
17519 if test x$alpine_REGEX = "xno" ; then
17520 as_fn_error $? "Unable to find system regex library" "$LINENO" 5
17521 else
17522 alpine_REGEX=yes
17528 if test "x$alpine_REGEX" != "xyes" ; then
17529 ac_fn_c_check_header_mongrel "$LINENO" "regex.h" "ac_cv_header_regex_h" "$ac_includes_default"
17530 if test "x$ac_cv_header_regex_h" = xyes; then :
17532 else
17534 if test x$alpine_REGEX = "xno" ; then
17535 as_fn_error $? "Unable to find system regex include file" "$LINENO" 5
17536 else
17537 alpine_REGEX=yes
17545 $as_echo "#define HAVE_REGEX_H 1" >>confdefs.h
17547 if test "x$alpine_REGEX" = "xyes" ; then
17548 CPPFLAGS="$CPPFLAGS -I${top_builddir}/regex"
17549 LDFLAGS="$LDFLAGS -L${top_builddir}/regex"
17550 REGEX_BUILD=regex
17551 REGEX_MAKEFILE="$REGEX_BUILD/Makefile"
17554 if test "x$with_pthread" != "xno" ; then
17555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread support" >&5
17556 $as_echo_n "checking for pthread support... " >&6; }
17560 ac_ext=c
17561 ac_cpp='$CPP $CPPFLAGS'
17562 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17563 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17564 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17566 acx_pthread_ok=no
17568 # We used to check for pthread.h first, but this fails if pthread.h
17569 # requires special compiler flags (e.g. on True64 or Sequent).
17570 # It gets checked for in the link test anyway.
17572 # First of all, check if the user has set any of the PTHREAD_LIBS,
17573 # etcetera environment variables, and if threads linking works using
17574 # them:
17575 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
17576 save_CFLAGS="$CFLAGS"
17577 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
17578 save_LIBS="$LIBS"
17579 LIBS="$PTHREAD_LIBS $LIBS"
17580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
17581 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
17582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17583 /* end confdefs.h. */
17585 /* Override any GCC internal prototype to avoid an error.
17586 Use char because int might match the return type of a GCC
17587 builtin and then its argument prototype would still apply. */
17588 #ifdef __cplusplus
17589 extern "C"
17590 #endif
17591 char pthread_join ();
17593 main ()
17595 return pthread_join ();
17597 return 0;
17599 _ACEOF
17600 if ac_fn_c_try_link "$LINENO"; then :
17601 acx_pthread_ok=yes
17603 rm -f core conftest.err conftest.$ac_objext \
17604 conftest$ac_exeext conftest.$ac_ext
17605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
17606 $as_echo "$acx_pthread_ok" >&6; }
17607 if test x"$acx_pthread_ok" = xno; then
17608 PTHREAD_LIBS=""
17609 PTHREAD_CFLAGS=""
17611 LIBS="$save_LIBS"
17612 CFLAGS="$save_CFLAGS"
17615 # We must check for the threads library under a number of different
17616 # names; the ordering is very important because some systems
17617 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
17618 # libraries is broken (non-POSIX).
17620 # Create a list of thread flags to try. Items starting with a "-" are
17621 # C compiler flags, and other items are library names, except for "none"
17622 # which indicates that we try without any flags at all, and "pthread-config"
17623 # which is a program returning the flags for the Pth emulation library.
17625 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
17627 # The ordering *is* (sometimes) important. Some notes on the
17628 # individual items follow:
17630 # pthreads: AIX (must check this before -lpthread)
17631 # none: in case threads are in libc; should be tried before -Kthread and
17632 # other compiler flags to prevent continual compiler warnings
17633 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
17634 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
17635 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
17636 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
17637 # -pthreads: Solaris/gcc
17638 # -mthreads: Mingw32/gcc, Lynx/gcc
17639 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
17640 # doesn't hurt to check since this sometimes defines pthreads too;
17641 # also defines -D_REENTRANT)
17642 # ... -mt is also the pthreads flag for HP/aCC
17643 # pthread: Linux, etcetera
17644 # --thread-safe: KAI C++
17645 # pthread-config: use pthread-config program (for GNU Pth library)
17647 case "${host_cpu}-${host_os}" in
17648 *solaris*)
17650 # On Solaris (at least, for some versions), libc contains stubbed
17651 # (non-functional) versions of the pthreads routines, so link-based
17652 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
17653 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
17654 # a function called by this macro, so we could check for that, but
17655 # who knows whether they'll stub that too in a future libc.) So,
17656 # we'll just look for -pthreads and -lpthread first:
17658 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
17660 esac
17662 if test x"$acx_pthread_ok" = xno; then
17663 for flag in $acx_pthread_flags; do
17665 case $flag in
17666 none)
17667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
17668 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
17672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
17673 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
17674 PTHREAD_CFLAGS="$flag"
17677 pthread-config)
17678 # Extract the first word of "pthread-config", so it can be a program name with args.
17679 set dummy pthread-config; ac_word=$2
17680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17681 $as_echo_n "checking for $ac_word... " >&6; }
17682 if ${ac_cv_prog_acx_pthread_config+:} false; then :
17683 $as_echo_n "(cached) " >&6
17684 else
17685 if test -n "$acx_pthread_config"; then
17686 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
17687 else
17688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17689 for as_dir in $PATH
17691 IFS=$as_save_IFS
17692 test -z "$as_dir" && as_dir=.
17693 for ac_exec_ext in '' $ac_executable_extensions; do
17694 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17695 ac_cv_prog_acx_pthread_config="yes"
17696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17697 break 2
17699 done
17700 done
17701 IFS=$as_save_IFS
17703 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
17706 acx_pthread_config=$ac_cv_prog_acx_pthread_config
17707 if test -n "$acx_pthread_config"; then
17708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
17709 $as_echo "$acx_pthread_config" >&6; }
17710 else
17711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17712 $as_echo "no" >&6; }
17716 if test x"$acx_pthread_config" = xno; then continue; fi
17717 PTHREAD_CFLAGS="`pthread-config --cflags`"
17718 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
17722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
17723 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
17724 PTHREAD_LIBS="-l$flag"
17726 esac
17728 save_LIBS="$LIBS"
17729 save_CFLAGS="$CFLAGS"
17730 LIBS="$PTHREAD_LIBS $LIBS"
17731 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
17733 # Check for various functions. We must include pthread.h,
17734 # since some functions may be macros. (On the Sequent, we
17735 # need a special flag -Kthread to make this header compile.)
17736 # We check for pthread_join because it is in -lpthread on IRIX
17737 # while pthread_create is in libc. We check for pthread_attr_init
17738 # due to DEC craziness with -lpthreads. We check for
17739 # pthread_cleanup_push because it is one of the few pthread
17740 # functions on Solaris that doesn't have a non-functional libc stub.
17741 # We try pthread_create on general principles.
17742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17743 /* end confdefs.h. */
17744 #include <pthread.h>
17746 main ()
17748 pthread_t th; pthread_join(th, 0);
17749 pthread_attr_init(0); pthread_cleanup_push(0, 0);
17750 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
17752 return 0;
17754 _ACEOF
17755 if ac_fn_c_try_link "$LINENO"; then :
17756 acx_pthread_ok=yes
17758 rm -f core conftest.err conftest.$ac_objext \
17759 conftest$ac_exeext conftest.$ac_ext
17761 LIBS="$save_LIBS"
17762 CFLAGS="$save_CFLAGS"
17764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
17765 $as_echo "$acx_pthread_ok" >&6; }
17766 if test "x$acx_pthread_ok" = xyes; then
17767 break;
17770 PTHREAD_LIBS=""
17771 PTHREAD_CFLAGS=""
17772 done
17775 # Various other checks:
17776 if test "x$acx_pthread_ok" = xyes; then
17777 save_LIBS="$LIBS"
17778 LIBS="$PTHREAD_LIBS $LIBS"
17779 save_CFLAGS="$CFLAGS"
17780 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
17782 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
17783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
17784 $as_echo_n "checking for joinable pthread attribute... " >&6; }
17785 attr_name=unknown
17786 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
17787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17788 /* end confdefs.h. */
17789 #include <pthread.h>
17791 main ()
17793 int attr=$attr; return attr;
17795 return 0;
17797 _ACEOF
17798 if ac_fn_c_try_link "$LINENO"; then :
17799 attr_name=$attr; break
17801 rm -f core conftest.err conftest.$ac_objext \
17802 conftest$ac_exeext conftest.$ac_ext
17803 done
17804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
17805 $as_echo "$attr_name" >&6; }
17806 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
17808 cat >>confdefs.h <<_ACEOF
17809 #define PTHREAD_CREATE_JOINABLE $attr_name
17810 _ACEOF
17814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
17815 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
17816 flag=no
17817 case "${host_cpu}-${host_os}" in
17818 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
17819 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
17820 esac
17821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
17822 $as_echo "${flag}" >&6; }
17823 if test "x$flag" != xno; then
17824 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
17827 LIBS="$save_LIBS"
17828 CFLAGS="$save_CFLAGS"
17830 # More AIX lossage: must compile with xlc_r or cc_r
17831 if test x"$GCC" != xyes; then
17832 for ac_prog in xlc_r cc_r
17834 # Extract the first word of "$ac_prog", so it can be a program name with args.
17835 set dummy $ac_prog; ac_word=$2
17836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17837 $as_echo_n "checking for $ac_word... " >&6; }
17838 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
17839 $as_echo_n "(cached) " >&6
17840 else
17841 if test -n "$PTHREAD_CC"; then
17842 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
17843 else
17844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17845 for as_dir in $PATH
17847 IFS=$as_save_IFS
17848 test -z "$as_dir" && as_dir=.
17849 for ac_exec_ext in '' $ac_executable_extensions; do
17850 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17851 ac_cv_prog_PTHREAD_CC="$ac_prog"
17852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17853 break 2
17855 done
17856 done
17857 IFS=$as_save_IFS
17861 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
17862 if test -n "$PTHREAD_CC"; then
17863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
17864 $as_echo "$PTHREAD_CC" >&6; }
17865 else
17866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17867 $as_echo "no" >&6; }
17871 test -n "$PTHREAD_CC" && break
17872 done
17873 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
17875 else
17876 PTHREAD_CC=$CC
17878 else
17879 PTHREAD_CC="$CC"
17886 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
17887 if test x"$acx_pthread_ok" = xyes; then
17889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17890 $as_echo "yes" >&6; }
17891 case "$target" in
17892 *openbsd*)
17893 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pthread support on OpenBSD is unstable!" >&5
17894 $as_echo "$as_me: WARNING: pthread support on OpenBSD is unstable!" >&6;}
17895 AM_CFLAGS="$AM_CFLAGS -pthread"
17897 esac
17898 LIBS="$PTHREAD_LIBS $LIBS"
17899 AM_CFLAGS="$AM_CFLAGS $PTHREAD_CFLAGS"
17900 CC="$PTHREAD_CC"
17902 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
17906 else
17907 acx_pthread_ok=no
17909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17910 $as_echo "no" >&6; }
17913 ac_ext=c
17914 ac_cpp='$CPP $CPPFLAGS'
17915 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17916 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17917 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
17922 $as_echo_n "checking for library containing nanosleep... " >&6; }
17923 if ${ac_cv_search_nanosleep+:} false; then :
17924 $as_echo_n "(cached) " >&6
17925 else
17926 ac_func_search_save_LIBS=$LIBS
17927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17928 /* end confdefs.h. */
17930 /* Override any GCC internal prototype to avoid an error.
17931 Use char because int might match the return type of a GCC
17932 builtin and then its argument prototype would still apply. */
17933 #ifdef __cplusplus
17934 extern "C"
17935 #endif
17936 char nanosleep ();
17938 main ()
17940 return nanosleep ();
17942 return 0;
17944 _ACEOF
17945 for ac_lib in '' rt posix4; do
17946 if test -z "$ac_lib"; then
17947 ac_res="none required"
17948 else
17949 ac_res=-l$ac_lib
17950 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17952 if ac_fn_c_try_link "$LINENO"; then :
17953 ac_cv_search_nanosleep=$ac_res
17955 rm -f core conftest.err conftest.$ac_objext \
17956 conftest$ac_exeext
17957 if ${ac_cv_search_nanosleep+:} false; then :
17958 break
17960 done
17961 if ${ac_cv_search_nanosleep+:} false; then :
17963 else
17964 ac_cv_search_nanosleep=no
17966 rm conftest.$ac_ext
17967 LIBS=$ac_func_search_save_LIBS
17969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
17970 $as_echo "$ac_cv_search_nanosleep" >&6; }
17971 ac_res=$ac_cv_search_nanosleep
17972 if test "$ac_res" != no; then :
17973 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17976 $as_echo "#define HAVE_NANOSLEEP 1" >>confdefs.h
17986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
17987 $as_echo_n "checking for ANSI C header files... " >&6; }
17988 if ${ac_cv_header_stdc+:} false; then :
17989 $as_echo_n "(cached) " >&6
17990 else
17991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17992 /* end confdefs.h. */
17993 #include <stdlib.h>
17994 #include <stdarg.h>
17995 #include <string.h>
17996 #include <float.h>
17999 main ()
18003 return 0;
18005 _ACEOF
18006 if ac_fn_c_try_compile "$LINENO"; then :
18007 ac_cv_header_stdc=yes
18008 else
18009 ac_cv_header_stdc=no
18011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18013 if test $ac_cv_header_stdc = yes; then
18014 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
18015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18016 /* end confdefs.h. */
18017 #include <string.h>
18019 _ACEOF
18020 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18021 $EGREP "memchr" >/dev/null 2>&1; then :
18023 else
18024 ac_cv_header_stdc=no
18026 rm -f conftest*
18030 if test $ac_cv_header_stdc = yes; then
18031 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
18032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18033 /* end confdefs.h. */
18034 #include <stdlib.h>
18036 _ACEOF
18037 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18038 $EGREP "free" >/dev/null 2>&1; then :
18040 else
18041 ac_cv_header_stdc=no
18043 rm -f conftest*
18047 if test $ac_cv_header_stdc = yes; then
18048 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
18049 if test "$cross_compiling" = yes; then :
18051 else
18052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18053 /* end confdefs.h. */
18054 #include <ctype.h>
18055 #include <stdlib.h>
18056 #if ((' ' & 0x0FF) == 0x020)
18057 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
18058 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
18059 #else
18060 # define ISLOWER(c) \
18061 (('a' <= (c) && (c) <= 'i') \
18062 || ('j' <= (c) && (c) <= 'r') \
18063 || ('s' <= (c) && (c) <= 'z'))
18064 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
18065 #endif
18067 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
18069 main ()
18071 int i;
18072 for (i = 0; i < 256; i++)
18073 if (XOR (islower (i), ISLOWER (i))
18074 || toupper (i) != TOUPPER (i))
18075 return 2;
18076 return 0;
18078 _ACEOF
18079 if ac_fn_c_try_run "$LINENO"; then :
18081 else
18082 ac_cv_header_stdc=no
18084 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18085 conftest.$ac_objext conftest.beam conftest.$ac_ext
18090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
18091 $as_echo "$ac_cv_header_stdc" >&6; }
18092 if test $ac_cv_header_stdc = yes; then
18094 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
18098 ac_header_dirent=no
18099 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
18100 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
18101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
18102 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
18103 if eval \${$as_ac_Header+:} false; then :
18104 $as_echo_n "(cached) " >&6
18105 else
18106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18107 /* end confdefs.h. */
18108 #include <sys/types.h>
18109 #include <$ac_hdr>
18112 main ()
18114 if ((DIR *) 0)
18115 return 0;
18117 return 0;
18119 _ACEOF
18120 if ac_fn_c_try_compile "$LINENO"; then :
18121 eval "$as_ac_Header=yes"
18122 else
18123 eval "$as_ac_Header=no"
18125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18127 eval ac_res=\$$as_ac_Header
18128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18129 $as_echo "$ac_res" >&6; }
18130 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18131 cat >>confdefs.h <<_ACEOF
18132 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
18133 _ACEOF
18135 ac_header_dirent=$ac_hdr; break
18138 done
18139 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
18140 if test $ac_header_dirent = dirent.h; then
18141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
18142 $as_echo_n "checking for library containing opendir... " >&6; }
18143 if ${ac_cv_search_opendir+:} false; then :
18144 $as_echo_n "(cached) " >&6
18145 else
18146 ac_func_search_save_LIBS=$LIBS
18147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18148 /* end confdefs.h. */
18150 /* Override any GCC internal prototype to avoid an error.
18151 Use char because int might match the return type of a GCC
18152 builtin and then its argument prototype would still apply. */
18153 #ifdef __cplusplus
18154 extern "C"
18155 #endif
18156 char opendir ();
18158 main ()
18160 return opendir ();
18162 return 0;
18164 _ACEOF
18165 for ac_lib in '' dir; do
18166 if test -z "$ac_lib"; then
18167 ac_res="none required"
18168 else
18169 ac_res=-l$ac_lib
18170 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18172 if ac_fn_c_try_link "$LINENO"; then :
18173 ac_cv_search_opendir=$ac_res
18175 rm -f core conftest.err conftest.$ac_objext \
18176 conftest$ac_exeext
18177 if ${ac_cv_search_opendir+:} false; then :
18178 break
18180 done
18181 if ${ac_cv_search_opendir+:} false; then :
18183 else
18184 ac_cv_search_opendir=no
18186 rm conftest.$ac_ext
18187 LIBS=$ac_func_search_save_LIBS
18189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
18190 $as_echo "$ac_cv_search_opendir" >&6; }
18191 ac_res=$ac_cv_search_opendir
18192 if test "$ac_res" != no; then :
18193 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18197 else
18198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
18199 $as_echo_n "checking for library containing opendir... " >&6; }
18200 if ${ac_cv_search_opendir+:} false; then :
18201 $as_echo_n "(cached) " >&6
18202 else
18203 ac_func_search_save_LIBS=$LIBS
18204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18205 /* end confdefs.h. */
18207 /* Override any GCC internal prototype to avoid an error.
18208 Use char because int might match the return type of a GCC
18209 builtin and then its argument prototype would still apply. */
18210 #ifdef __cplusplus
18211 extern "C"
18212 #endif
18213 char opendir ();
18215 main ()
18217 return opendir ();
18219 return 0;
18221 _ACEOF
18222 for ac_lib in '' x; do
18223 if test -z "$ac_lib"; then
18224 ac_res="none required"
18225 else
18226 ac_res=-l$ac_lib
18227 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18229 if ac_fn_c_try_link "$LINENO"; then :
18230 ac_cv_search_opendir=$ac_res
18232 rm -f core conftest.err conftest.$ac_objext \
18233 conftest$ac_exeext
18234 if ${ac_cv_search_opendir+:} false; then :
18235 break
18237 done
18238 if ${ac_cv_search_opendir+:} false; then :
18240 else
18241 ac_cv_search_opendir=no
18243 rm conftest.$ac_ext
18244 LIBS=$ac_func_search_save_LIBS
18246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
18247 $as_echo "$ac_cv_search_opendir" >&6; }
18248 ac_res=$ac_cv_search_opendir
18249 if test "$ac_res" != no; then :
18250 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
18257 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
18258 if ${ac_cv_header_stat_broken+:} false; then :
18259 $as_echo_n "(cached) " >&6
18260 else
18261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18262 /* end confdefs.h. */
18263 #include <sys/types.h>
18264 #include <sys/stat.h>
18266 #if defined S_ISBLK && defined S_IFDIR
18267 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
18268 #endif
18270 #if defined S_ISBLK && defined S_IFCHR
18271 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
18272 #endif
18274 #if defined S_ISLNK && defined S_IFREG
18275 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
18276 #endif
18278 #if defined S_ISSOCK && defined S_IFREG
18279 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
18280 #endif
18282 _ACEOF
18283 if ac_fn_c_try_compile "$LINENO"; then :
18284 ac_cv_header_stat_broken=no
18285 else
18286 ac_cv_header_stat_broken=yes
18288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
18291 $as_echo "$ac_cv_header_stat_broken" >&6; }
18292 if test $ac_cv_header_stat_broken = yes; then
18294 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
18298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
18299 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
18300 if ${ac_cv_header_sys_wait_h+:} false; then :
18301 $as_echo_n "(cached) " >&6
18302 else
18303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18304 /* end confdefs.h. */
18305 #include <sys/types.h>
18306 #include <sys/wait.h>
18307 #ifndef WEXITSTATUS
18308 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
18309 #endif
18310 #ifndef WIFEXITED
18311 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
18312 #endif
18315 main ()
18317 int s;
18318 wait (&s);
18319 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
18321 return 0;
18323 _ACEOF
18324 if ac_fn_c_try_compile "$LINENO"; then :
18325 ac_cv_header_sys_wait_h=yes
18326 else
18327 ac_cv_header_sys_wait_h=no
18329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
18332 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
18333 if test $ac_cv_header_sys_wait_h = yes; then
18335 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
18339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be Included" >&5
18340 $as_echo_n "checking whether time.h and sys/time.h may both be Included... " >&6; }
18341 if ${ac_cv_header_time+:} false; then :
18342 $as_echo_n "(cached) " >&6
18343 else
18344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18345 /* end confdefs.h. */
18346 #include <sys/types.h>
18347 #include <sys/time.h>
18348 #include <time.h>
18351 main ()
18353 if ((struct tm *) 0)
18354 return 0;
18356 return 0;
18358 _ACEOF
18359 if ac_fn_c_try_compile "$LINENO"; then :
18360 ac_cv_header_time=yes
18361 else
18362 ac_cv_header_time=no
18364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
18367 $as_echo "$ac_cv_header_time" >&6; }
18368 if test $ac_cv_header_time = yes; then
18370 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
18374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
18375 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
18376 if ${ac_cv_sys_tiocgwinsz_in_termios_h+:} false; then :
18377 $as_echo_n "(cached) " >&6
18378 else
18379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18380 /* end confdefs.h. */
18381 #include <sys/types.h>
18382 #include <termios.h>
18383 #ifdef TIOCGWINSZ
18385 #endif
18387 _ACEOF
18388 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18389 $EGREP "yes" >/dev/null 2>&1; then :
18390 ac_cv_sys_tiocgwinsz_in_termios_h=yes
18391 else
18392 ac_cv_sys_tiocgwinsz_in_termios_h=no
18394 rm -f conftest*
18397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
18398 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
18400 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
18401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
18402 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
18403 if ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+:} false; then :
18404 $as_echo_n "(cached) " >&6
18405 else
18406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18407 /* end confdefs.h. */
18408 #include <sys/types.h>
18409 #include <sys/ioctl.h>
18410 #ifdef TIOCGWINSZ
18412 #endif
18414 _ACEOF
18415 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18416 $EGREP "yes" >/dev/null 2>&1; then :
18417 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
18418 else
18419 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
18421 rm -f conftest*
18424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
18425 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
18427 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
18429 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
18435 for ac_header in unistd.h
18436 do :
18437 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
18438 if test "x$ac_cv_header_unistd_h" = xyes; then :
18439 cat >>confdefs.h <<_ACEOF
18440 #define HAVE_UNISTD_H 1
18441 _ACEOF
18445 done
18448 for ac_header in errno.h \
18449 ctype.h \
18450 fcntl.h \
18451 signal.h \
18452 setjmp.h \
18453 memory.h \
18454 sys/param.h \
18455 sys/socket.h \
18456 sys/uio.h \
18457 sys/un.h \
18458 limits.h \
18459 wchar.h \
18460 sys/poll.h \
18461 stropts.h \
18462 netdb.h \
18463 syslog.h \
18464 sys/syslog.h \
18465 locale.h \
18466 langinfo.h \
18467 utime.h \
18468 sys/utime.h \
18469 pthread.h \
18470 pwd.h \
18471 assert.h
18472 do :
18473 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18474 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18475 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18476 cat >>confdefs.h <<_ACEOF
18477 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18478 _ACEOF
18482 done
18485 ac_fn_c_check_header_mongrel "$LINENO" "termios.h" "ac_cv_header_termios_h" "$ac_includes_default"
18486 if test "x$ac_cv_header_termios_h" = xyes; then :
18488 $as_echo "#define HAS_TERMIOS 1" >>confdefs.h
18490 else
18492 ac_fn_c_check_header_mongrel "$LINENO" "termio.h" "ac_cv_header_termio_h" "$ac_includes_default"
18493 if test "x$ac_cv_header_termio_h" = xyes; then :
18495 $as_echo "#define HAS_TERMIO 1" >>confdefs.h
18497 else
18499 ac_fn_c_check_header_mongrel "$LINENO" "sgtty.h" "ac_cv_header_sgtty_h" "$ac_includes_default"
18500 if test "x$ac_cv_header_sgtty_h" = xyes; then :
18502 $as_echo "#define HAS_SGTTY 1" >>confdefs.h
18504 else
18506 as_fn_error $? "Unable to figure out terminal control method" "$LINENO" 5
18522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
18523 $as_echo_n "checking return type of signal handlers... " >&6; }
18524 if ${ac_cv_type_signal+:} false; then :
18525 $as_echo_n "(cached) " >&6
18526 else
18527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18528 /* end confdefs.h. */
18529 #include <sys/types.h>
18530 #include <signal.h>
18533 main ()
18535 return *(signal (0, 0)) (0) == 1;
18537 return 0;
18539 _ACEOF
18540 if ac_fn_c_try_compile "$LINENO"; then :
18541 ac_cv_type_signal=int
18542 else
18543 ac_cv_type_signal=void
18545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
18548 $as_echo "$ac_cv_type_signal" >&6; }
18550 cat >>confdefs.h <<_ACEOF
18551 #define RETSIGTYPE $ac_cv_type_signal
18552 _ACEOF
18555 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
18556 if test "x$ac_cv_type_size_t" = xyes; then :
18558 else
18560 cat >>confdefs.h <<_ACEOF
18561 #define size_t unsigned int
18562 _ACEOF
18566 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
18567 if test "x$ac_cv_type_mode_t" = xyes; then :
18569 else
18571 cat >>confdefs.h <<_ACEOF
18572 #define mode_t int
18573 _ACEOF
18577 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
18578 if test "x$ac_cv_type_pid_t" = xyes; then :
18580 else
18582 cat >>confdefs.h <<_ACEOF
18583 #define pid_t int
18584 _ACEOF
18588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
18589 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
18590 if ${ac_cv_type_uid_t+:} false; then :
18591 $as_echo_n "(cached) " >&6
18592 else
18593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18594 /* end confdefs.h. */
18595 #include <sys/types.h>
18597 _ACEOF
18598 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18599 $EGREP "uid_t" >/dev/null 2>&1; then :
18600 ac_cv_type_uid_t=yes
18601 else
18602 ac_cv_type_uid_t=no
18604 rm -f conftest*
18607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
18608 $as_echo "$ac_cv_type_uid_t" >&6; }
18609 if test $ac_cv_type_uid_t = no; then
18611 $as_echo "#define uid_t int" >>confdefs.h
18614 $as_echo "#define gid_t int" >>confdefs.h
18618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
18619 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
18620 if ${ac_cv_struct_tm+:} false; then :
18621 $as_echo_n "(cached) " >&6
18622 else
18623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18624 /* end confdefs.h. */
18625 #include <sys/types.h>
18626 #include <time.h>
18629 main ()
18631 struct tm tm;
18632 int *p = &tm.tm_sec;
18633 return !p;
18635 return 0;
18637 _ACEOF
18638 if ac_fn_c_try_compile "$LINENO"; then :
18639 ac_cv_struct_tm=time.h
18640 else
18641 ac_cv_struct_tm=sys/time.h
18643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
18646 $as_echo "$ac_cv_struct_tm" >&6; }
18647 if test $ac_cv_struct_tm = sys/time.h; then
18649 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
18654 ac_fn_c_check_type "$LINENO" "union wait" "ac_cv_type_union_wait" "$ac_includes_default"
18655 if test "x$ac_cv_type_union_wait" = xyes; then :
18657 cat >>confdefs.h <<_ACEOF
18658 #define HAVE_UNION_WAIT 1
18659 _ACEOF
18665 for ac_header in stdint.h
18666 do :
18667 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
18668 if test "x$ac_cv_header_stdint_h" = xyes; then :
18669 cat >>confdefs.h <<_ACEOF
18670 #define HAVE_STDINT_H 1
18671 _ACEOF
18672 uint16=uint16_t
18673 else
18675 for ac_header in inttypes.h
18676 do :
18677 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
18678 if test "x$ac_cv_header_inttypes_h" = xyes; then :
18679 cat >>confdefs.h <<_ACEOF
18680 #define HAVE_INTTYPES_H 1
18681 _ACEOF
18682 uint16=uint16_t
18683 else
18685 for ac_header in sys/types.h
18686 do :
18687 ac_fn_c_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
18688 if test "x$ac_cv_header_sys_types_h" = xyes; then :
18689 cat >>confdefs.h <<_ACEOF
18690 #define HAVE_SYS_TYPES_H 1
18691 _ACEOF
18692 uint16=u_int16_t
18693 else
18695 # The cast to long int works around a bug in the HP C Compiler
18696 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18697 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18698 # This bug is HP SR number 8606223364.
18699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
18700 $as_echo_n "checking size of unsigned short... " >&6; }
18701 if ${ac_cv_sizeof_unsigned_short+:} false; then :
18702 $as_echo_n "(cached) " >&6
18703 else
18704 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short" "$ac_includes_default"; then :
18706 else
18707 if test "$ac_cv_type_unsigned_short" = yes; then
18708 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18709 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18710 as_fn_error 77 "cannot compute sizeof (unsigned short)
18711 See \`config.log' for more details" "$LINENO" 5; }
18712 else
18713 ac_cv_sizeof_unsigned_short=0
18718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
18719 $as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
18723 cat >>confdefs.h <<_ACEOF
18724 #define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
18725 _ACEOF
18728 if test $ac_cv_sizeof_unsigned_short -eq 2 ; then
18729 uint16="unsigned short"
18730 else
18731 # The cast to long int works around a bug in the HP C Compiler
18732 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18733 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18734 # This bug is HP SR number 8606223364.
18735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
18736 $as_echo_n "checking size of unsigned int... " >&6; }
18737 if ${ac_cv_sizeof_unsigned_int+:} false; then :
18738 $as_echo_n "(cached) " >&6
18739 else
18740 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then :
18742 else
18743 if test "$ac_cv_type_unsigned_int" = yes; then
18744 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18745 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18746 as_fn_error 77 "cannot compute sizeof (unsigned int)
18747 See \`config.log' for more details" "$LINENO" 5; }
18748 else
18749 ac_cv_sizeof_unsigned_int=0
18754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
18755 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
18759 cat >>confdefs.h <<_ACEOF
18760 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
18761 _ACEOF
18764 if $ac_cv_sizeof_unsigned_int -eq 2 ; then
18765 uint16="unsigned int"
18766 else
18767 as_fn_error $? "Unable to determine 16 bit integer type" "$LINENO" 5
18773 done
18778 done
18783 done
18786 cat >>confdefs.h <<_ACEOF
18787 #define UINT16 $uint16
18788 _ACEOF
18791 for ac_header in stdint.h
18792 do :
18793 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
18794 if test "x$ac_cv_header_stdint_h" = xyes; then :
18795 cat >>confdefs.h <<_ACEOF
18796 #define HAVE_STDINT_H 1
18797 _ACEOF
18798 uint32=uint32_t
18799 else
18801 for ac_header in inttypes.h
18802 do :
18803 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
18804 if test "x$ac_cv_header_inttypes_h" = xyes; then :
18805 cat >>confdefs.h <<_ACEOF
18806 #define HAVE_INTTYPES_H 1
18807 _ACEOF
18808 uint32=uint32_t
18809 else
18811 for ac_header in sys/types.h
18812 do :
18813 ac_fn_c_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
18814 if test "x$ac_cv_header_sys_types_h" = xyes; then :
18815 cat >>confdefs.h <<_ACEOF
18816 #define HAVE_SYS_TYPES_H 1
18817 _ACEOF
18818 uint32=u_int32_t
18819 else
18821 # The cast to long int works around a bug in the HP C Compiler
18822 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18823 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18824 # This bug is HP SR number 8606223364.
18825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
18826 $as_echo_n "checking size of unsigned int... " >&6; }
18827 if ${ac_cv_sizeof_unsigned_int+:} false; then :
18828 $as_echo_n "(cached) " >&6
18829 else
18830 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then :
18832 else
18833 if test "$ac_cv_type_unsigned_int" = yes; then
18834 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18835 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18836 as_fn_error 77 "cannot compute sizeof (unsigned int)
18837 See \`config.log' for more details" "$LINENO" 5; }
18838 else
18839 ac_cv_sizeof_unsigned_int=0
18844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
18845 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
18849 cat >>confdefs.h <<_ACEOF
18850 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
18851 _ACEOF
18854 if test $ac_cv_sizeof_unsigned_int -eq 4 ; then
18855 uint32="unsigned int"
18856 else
18857 # The cast to long int works around a bug in the HP C Compiler
18858 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18859 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18860 # This bug is HP SR number 8606223364.
18861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
18862 $as_echo_n "checking size of unsigned long... " >&6; }
18863 if ${ac_cv_sizeof_unsigned_long+:} false; then :
18864 $as_echo_n "(cached) " >&6
18865 else
18866 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
18868 else
18869 if test "$ac_cv_type_unsigned_long" = yes; then
18870 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18871 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18872 as_fn_error 77 "cannot compute sizeof (unsigned long)
18873 See \`config.log' for more details" "$LINENO" 5; }
18874 else
18875 ac_cv_sizeof_unsigned_long=0
18880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
18881 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
18885 cat >>confdefs.h <<_ACEOF
18886 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
18887 _ACEOF
18890 if $ac_cv_sizeof_unsigned_long -eq 4 ; then
18891 uint32="unsigned long"
18892 else
18893 as_fn_error $? "Unable to determine 32 bit integer type" "$LINENO" 5
18899 done
18904 done
18909 done
18912 cat >>confdefs.h <<_ACEOF
18913 #define UINT32 $uint32
18914 _ACEOF
18917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking argument pointer type of qsort compare function and base" >&5
18918 $as_echo_n "checking argument pointer type of qsort compare function and base... " >&6; }
18919 if ${ac_cv_func_qsort_argtype+:} false; then :
18920 $as_echo_n "(cached) " >&6
18921 else
18922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18923 /* end confdefs.h. */
18925 #if HAVE_STDLIB_H
18926 #include "stdlib.h"
18927 #endif
18929 extern void *base;
18930 extern sortf(const void *, const void *);
18931 int sortf(a, b)
18932 const void *a;
18933 const void *b; { return 0; }
18936 main ()
18939 qsort(base, 2, sizeof(char *), sortf);
18942 return 0;
18944 _ACEOF
18945 if ac_fn_c_try_compile "$LINENO"; then :
18946 ac_cv_func_qsort_argtype=void
18947 else
18948 ac_cv_func_qsort_argtype=char
18950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_qsort_argtype" >&5
18954 $as_echo "$ac_cv_func_qsort_argtype" >&6; }
18956 cat >>confdefs.h <<_ACEOF
18957 #define qsort_t $ac_cv_func_qsort_argtype
18958 _ACEOF
18962 for ac_header in sys/select.h sys/socket.h
18963 do :
18964 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18965 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18966 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18967 cat >>confdefs.h <<_ACEOF
18968 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18969 _ACEOF
18973 done
18975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
18976 $as_echo_n "checking types of arguments for select... " >&6; }
18977 if ${ac_cv_func_select_args+:} false; then :
18978 $as_echo_n "(cached) " >&6
18979 else
18980 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
18981 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
18982 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
18983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18984 /* end confdefs.h. */
18985 $ac_includes_default
18986 #ifdef HAVE_SYS_SELECT_H
18987 # include <sys/select.h>
18988 #endif
18989 #ifdef HAVE_SYS_SOCKET_H
18990 # include <sys/socket.h>
18991 #endif
18994 main ()
18996 extern int select ($ac_arg1,
18997 $ac_arg234, $ac_arg234, $ac_arg234,
18998 $ac_arg5);
19000 return 0;
19002 _ACEOF
19003 if ac_fn_c_try_compile "$LINENO"; then :
19004 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
19006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19007 done
19008 done
19009 done
19010 # Provide a safe default value.
19011 : "${ac_cv_func_select_args=int,int *,struct timeval *}"
19014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
19015 $as_echo "$ac_cv_func_select_args" >&6; }
19016 ac_save_IFS=$IFS; IFS=','
19017 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
19018 IFS=$ac_save_IFS
19019 shift
19021 cat >>confdefs.h <<_ACEOF
19022 #define SELECT_TYPE_ARG1 $1
19023 _ACEOF
19026 cat >>confdefs.h <<_ACEOF
19027 #define SELECT_TYPE_ARG234 ($2)
19028 _ACEOF
19031 cat >>confdefs.h <<_ACEOF
19032 #define SELECT_TYPE_ARG5 ($3)
19033 _ACEOF
19035 rm -f conftest*
19038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strcoll" >&5
19039 $as_echo_n "checking for working strcoll... " >&6; }
19040 if ${ac_cv_func_strcoll_works+:} false; then :
19041 $as_echo_n "(cached) " >&6
19042 else
19043 if test "$cross_compiling" = yes; then :
19044 ac_cv_func_strcoll_works=no
19045 else
19046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19047 /* end confdefs.h. */
19048 $ac_includes_default
19050 main ()
19052 return (strcoll ("abc", "def") >= 0 ||
19053 strcoll ("ABC", "DEF") >= 0 ||
19054 strcoll ("123", "456") >= 0)
19056 return 0;
19058 _ACEOF
19059 if ac_fn_c_try_run "$LINENO"; then :
19060 ac_cv_func_strcoll_works=yes
19061 else
19062 ac_cv_func_strcoll_works=no
19064 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19065 conftest.$ac_objext conftest.beam conftest.$ac_ext
19069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strcoll_works" >&5
19070 $as_echo "$ac_cv_func_strcoll_works" >&6; }
19071 if test $ac_cv_func_strcoll_works = yes; then
19073 $as_echo "#define HAVE_STRCOLL 1" >>confdefs.h
19079 for ac_header in vfork.h
19080 do :
19081 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
19082 if test "x$ac_cv_header_vfork_h" = xyes; then :
19083 cat >>confdefs.h <<_ACEOF
19084 #define HAVE_VFORK_H 1
19085 _ACEOF
19089 done
19091 for ac_func in fork vfork
19092 do :
19093 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19094 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19095 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19096 cat >>confdefs.h <<_ACEOF
19097 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19098 _ACEOF
19101 done
19103 if test "x$ac_cv_func_fork" = xyes; then
19104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
19105 $as_echo_n "checking for working fork... " >&6; }
19106 if ${ac_cv_func_fork_works+:} false; then :
19107 $as_echo_n "(cached) " >&6
19108 else
19109 if test "$cross_compiling" = yes; then :
19110 ac_cv_func_fork_works=cross
19111 else
19112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19113 /* end confdefs.h. */
19114 $ac_includes_default
19116 main ()
19119 /* By Ruediger Kuhlmann. */
19120 return fork () < 0;
19123 return 0;
19125 _ACEOF
19126 if ac_fn_c_try_run "$LINENO"; then :
19127 ac_cv_func_fork_works=yes
19128 else
19129 ac_cv_func_fork_works=no
19131 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19132 conftest.$ac_objext conftest.beam conftest.$ac_ext
19136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
19137 $as_echo "$ac_cv_func_fork_works" >&6; }
19139 else
19140 ac_cv_func_fork_works=$ac_cv_func_fork
19142 if test "x$ac_cv_func_fork_works" = xcross; then
19143 case $host in
19144 *-*-amigaos* | *-*-msdosdjgpp*)
19145 # Override, as these systems have only a dummy fork() stub
19146 ac_cv_func_fork_works=no
19149 ac_cv_func_fork_works=yes
19151 esac
19152 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
19153 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
19155 ac_cv_func_vfork_works=$ac_cv_func_vfork
19156 if test "x$ac_cv_func_vfork" = xyes; then
19157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
19158 $as_echo_n "checking for working vfork... " >&6; }
19159 if ${ac_cv_func_vfork_works+:} false; then :
19160 $as_echo_n "(cached) " >&6
19161 else
19162 if test "$cross_compiling" = yes; then :
19163 ac_cv_func_vfork_works=cross
19164 else
19165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19166 /* end confdefs.h. */
19167 /* Thanks to Paul Eggert for this test. */
19168 $ac_includes_default
19169 #include <sys/wait.h>
19170 #ifdef HAVE_VFORK_H
19171 # include <vfork.h>
19172 #endif
19173 /* On some sparc systems, changes by the child to local and incoming
19174 argument registers are propagated back to the parent. The compiler
19175 is told about this with #include <vfork.h>, but some compilers
19176 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
19177 static variable whose address is put into a register that is
19178 clobbered by the vfork. */
19179 static void
19180 #ifdef __cplusplus
19181 sparc_address_test (int arg)
19182 # else
19183 sparc_address_test (arg) int arg;
19184 #endif
19186 static pid_t child;
19187 if (!child) {
19188 child = vfork ();
19189 if (child < 0) {
19190 perror ("vfork");
19191 _exit(2);
19193 if (!child) {
19194 arg = getpid();
19195 write(-1, "", 0);
19196 _exit (arg);
19202 main ()
19204 pid_t parent = getpid ();
19205 pid_t child;
19207 sparc_address_test (0);
19209 child = vfork ();
19211 if (child == 0) {
19212 /* Here is another test for sparc vfork register problems. This
19213 test uses lots of local variables, at least as many local
19214 variables as main has allocated so far including compiler
19215 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
19216 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
19217 reuse the register of parent for one of the local variables,
19218 since it will think that parent can't possibly be used any more
19219 in this routine. Assigning to the local variable will thus
19220 munge parent in the parent process. */
19221 pid_t
19222 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
19223 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
19224 /* Convince the compiler that p..p7 are live; otherwise, it might
19225 use the same hardware register for all 8 local variables. */
19226 if (p != p1 || p != p2 || p != p3 || p != p4
19227 || p != p5 || p != p6 || p != p7)
19228 _exit(1);
19230 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
19231 from child file descriptors. If the child closes a descriptor
19232 before it execs or exits, this munges the parent's descriptor
19233 as well. Test for this by closing stdout in the child. */
19234 _exit(close(fileno(stdout)) != 0);
19235 } else {
19236 int status;
19237 struct stat st;
19239 while (wait(&status) != child)
19241 return (
19242 /* Was there some problem with vforking? */
19243 child < 0
19245 /* Did the child fail? (This shouldn't happen.) */
19246 || status
19248 /* Did the vfork/compiler bug occur? */
19249 || parent != getpid()
19251 /* Did the file descriptor bug occur? */
19252 || fstat(fileno(stdout), &st) != 0
19256 _ACEOF
19257 if ac_fn_c_try_run "$LINENO"; then :
19258 ac_cv_func_vfork_works=yes
19259 else
19260 ac_cv_func_vfork_works=no
19262 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19263 conftest.$ac_objext conftest.beam conftest.$ac_ext
19267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
19268 $as_echo "$ac_cv_func_vfork_works" >&6; }
19271 if test "x$ac_cv_func_fork_works" = xcross; then
19272 ac_cv_func_vfork_works=$ac_cv_func_vfork
19273 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
19274 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
19277 if test "x$ac_cv_func_vfork_works" = xyes; then
19279 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
19281 else
19283 $as_echo "#define vfork fork" >>confdefs.h
19286 if test "x$ac_cv_func_fork_works" = xyes; then
19288 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
19292 for ac_func in strchr \
19293 memcpy \
19294 strtol \
19295 strtoul \
19296 select \
19297 poll \
19298 qsort \
19299 getuid \
19300 getpwuid \
19301 getpwnam \
19302 gettimeofday \
19303 tmpfile \
19304 uname \
19305 rename \
19306 read \
19307 signal \
19308 setjmp \
19309 chown \
19310 wait4 \
19311 waitpid \
19312 wait \
19313 srandom \
19314 popen \
19315 pclose \
19316 fsync \
19317 truncate \
19318 listen \
19319 wcwidth \
19320 mbstowcs \
19321 wcrtomb \
19322 putenv \
19323 setenv
19324 do :
19325 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19326 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19327 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19328 cat >>confdefs.h <<_ACEOF
19329 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19330 _ACEOF
19333 done
19336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostname" >&5
19337 $as_echo_n "checking for library containing gethostname... " >&6; }
19338 if ${ac_cv_search_gethostname+:} false; then :
19339 $as_echo_n "(cached) " >&6
19340 else
19341 ac_func_search_save_LIBS=$LIBS
19342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19343 /* end confdefs.h. */
19345 /* Override any GCC internal prototype to avoid an error.
19346 Use char because int might match the return type of a GCC
19347 builtin and then its argument prototype would still apply. */
19348 #ifdef __cplusplus
19349 extern "C"
19350 #endif
19351 char gethostname ();
19353 main ()
19355 return gethostname ();
19357 return 0;
19359 _ACEOF
19360 for ac_lib in '' nsl; do
19361 if test -z "$ac_lib"; then
19362 ac_res="none required"
19363 else
19364 ac_res=-l$ac_lib
19365 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19367 if ac_fn_c_try_link "$LINENO"; then :
19368 ac_cv_search_gethostname=$ac_res
19370 rm -f core conftest.err conftest.$ac_objext \
19371 conftest$ac_exeext
19372 if ${ac_cv_search_gethostname+:} false; then :
19373 break
19375 done
19376 if ${ac_cv_search_gethostname+:} false; then :
19378 else
19379 ac_cv_search_gethostname=no
19381 rm conftest.$ac_ext
19382 LIBS=$ac_func_search_save_LIBS
19384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostname" >&5
19385 $as_echo "$ac_cv_search_gethostname" >&6; }
19386 ac_res=$ac_cv_search_gethostname
19387 if test "$ac_res" != no; then :
19388 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
19394 $as_echo_n "checking for library containing socket... " >&6; }
19395 if ${ac_cv_search_socket+:} false; then :
19396 $as_echo_n "(cached) " >&6
19397 else
19398 ac_func_search_save_LIBS=$LIBS
19399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19400 /* end confdefs.h. */
19402 /* Override any GCC internal prototype to avoid an error.
19403 Use char because int might match the return type of a GCC
19404 builtin and then its argument prototype would still apply. */
19405 #ifdef __cplusplus
19406 extern "C"
19407 #endif
19408 char socket ();
19410 main ()
19412 return socket ();
19414 return 0;
19416 _ACEOF
19417 for ac_lib in '' socket; do
19418 if test -z "$ac_lib"; then
19419 ac_res="none required"
19420 else
19421 ac_res=-l$ac_lib
19422 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19424 if ac_fn_c_try_link "$LINENO"; then :
19425 ac_cv_search_socket=$ac_res
19427 rm -f core conftest.err conftest.$ac_objext \
19428 conftest$ac_exeext
19429 if ${ac_cv_search_socket+:} false; then :
19430 break
19432 done
19433 if ${ac_cv_search_socket+:} false; then :
19435 else
19436 ac_cv_search_socket=no
19438 rm conftest.$ac_ext
19439 LIBS=$ac_func_search_save_LIBS
19441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
19442 $as_echo "$ac_cv_search_socket" >&6; }
19443 ac_res=$ac_cv_search_socket
19444 if test "$ac_res" != no; then :
19445 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19447 else
19449 WEB_BUILD=
19454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing bind" >&5
19455 $as_echo_n "checking for library containing bind... " >&6; }
19456 if ${ac_cv_search_bind+:} false; then :
19457 $as_echo_n "(cached) " >&6
19458 else
19459 ac_func_search_save_LIBS=$LIBS
19460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19461 /* end confdefs.h. */
19463 /* Override any GCC internal prototype to avoid an error.
19464 Use char because int might match the return type of a GCC
19465 builtin and then its argument prototype would still apply. */
19466 #ifdef __cplusplus
19467 extern "C"
19468 #endif
19469 char bind ();
19471 main ()
19473 return bind ();
19475 return 0;
19477 _ACEOF
19478 for ac_lib in '' bind; do
19479 if test -z "$ac_lib"; then
19480 ac_res="none required"
19481 else
19482 ac_res=-l$ac_lib
19483 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19485 if ac_fn_c_try_link "$LINENO"; then :
19486 ac_cv_search_bind=$ac_res
19488 rm -f core conftest.err conftest.$ac_objext \
19489 conftest$ac_exeext
19490 if ${ac_cv_search_bind+:} false; then :
19491 break
19493 done
19494 if ${ac_cv_search_bind+:} false; then :
19496 else
19497 ac_cv_search_bind=no
19499 rm conftest.$ac_ext
19500 LIBS=$ac_func_search_save_LIBS
19502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_bind" >&5
19503 $as_echo "$ac_cv_search_bind" >&6; }
19504 ac_res=$ac_cv_search_bind
19505 if test "$ac_res" != no; then :
19506 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19508 else
19510 WEB_BUILD=
19515 for ac_func in sigaction sigemptyset sigaddset sigprocmask
19516 do :
19517 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19518 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19519 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19520 cat >>confdefs.h <<_ACEOF
19521 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19522 _ACEOF
19525 $as_echo "#define POSIX_SIGNALS /**/" >>confdefs.h
19528 else
19530 for ac_func in sigset sigrelse
19531 do :
19532 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19533 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19534 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19535 cat >>confdefs.h <<_ACEOF
19536 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19537 _ACEOF
19540 $as_echo "#define SYSV_SIGNALS /**/" >>confdefs.h
19544 done
19548 done
19551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing syslog" >&5
19552 $as_echo_n "checking for library containing syslog... " >&6; }
19553 if ${ac_cv_search_syslog+:} false; then :
19554 $as_echo_n "(cached) " >&6
19555 else
19556 ac_func_search_save_LIBS=$LIBS
19557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19558 /* end confdefs.h. */
19560 /* Override any GCC internal prototype to avoid an error.
19561 Use char because int might match the return type of a GCC
19562 builtin and then its argument prototype would still apply. */
19563 #ifdef __cplusplus
19564 extern "C"
19565 #endif
19566 char syslog ();
19568 main ()
19570 return syslog ();
19572 return 0;
19574 _ACEOF
19575 for ac_lib in '' bsd socket inet; do
19576 if test -z "$ac_lib"; then
19577 ac_res="none required"
19578 else
19579 ac_res=-l$ac_lib
19580 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19582 if ac_fn_c_try_link "$LINENO"; then :
19583 ac_cv_search_syslog=$ac_res
19585 rm -f core conftest.err conftest.$ac_objext \
19586 conftest$ac_exeext
19587 if ${ac_cv_search_syslog+:} false; then :
19588 break
19590 done
19591 if ${ac_cv_search_syslog+:} false; then :
19593 else
19594 ac_cv_search_syslog=no
19596 rm conftest.$ac_ext
19597 LIBS=$ac_func_search_save_LIBS
19599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_syslog" >&5
19600 $as_echo "$ac_cv_search_syslog" >&6; }
19601 ac_res=$ac_cv_search_syslog
19602 if test "$ac_res" != no; then :
19603 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19606 $as_echo "#define HAVE_SYSLOG 1" >>confdefs.h
19613 if test -n "$alpine_with_local_maildir" ; then
19614 alpine_local_maildir=$alpine_with_local_maildir
19615 elif test -d /var/spool/mail ; then
19616 alpine_local_maildir="/var/spool/mail"
19617 elif test -d /var/mail ; then
19618 alpine_local_maildir="/var/mail"
19619 else
19620 alpine_local_maildir="/usr/spool/mail"
19623 if test -n "$alpine_with_c_client_target" ; then
19624 alpine_c_client_target=$alpine_with_c_client_target
19628 cat >>confdefs.h <<_ACEOF
19629 #define SYSTYPE "$systype"
19630 _ACEOF
19633 cat >>confdefs.h <<_ACEOF
19634 #define C_FILESEP '$alpine_path_delim'
19635 _ACEOF
19638 cat >>confdefs.h <<_ACEOF
19639 #define S_FILESEP "$alpine_path_delim"
19640 _ACEOF
19643 cat >>confdefs.h <<_ACEOF
19644 #define MAILDIR "$alpine_local_maildir"
19645 _ACEOF
19648 cat >>confdefs.h <<_ACEOF
19649 #define MODE_READONLY $alpine_mode_readonly
19650 _ACEOF
19653 C_CLIENT_TARGET=$alpine_c_client_target
19655 C_CLIENT_WITH_IPV6=$c_client_ip6
19657 if test "x$alpine_SSLTYPE" = "xnone" ; then
19658 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * NOT Including SSL Support" >&5
19659 $as_echo "$as_me: * * * NOT Including SSL Support" >&6;}
19660 c_client_specials="${c_client_specials}SSLTYPE=none "
19661 else
19663 if test -n "$alpine_SSLCERTS" -a -d "$alpine_SSLCERTS" ; then
19664 certdir="$alpine_SSLCERTS"
19665 elif test -n "$alpine_SSLDIR" -a -d "${alpine_SSLDIR}/certs" ; then
19666 certdir="${alpine_SSLDIR}/certs"
19667 elif test -n "$alpine_SSLDIR" -a -d "${alpine_SSLDIR}/ssl/certs" ; then
19668 certdir="${alpine_SSLDIR}/ssl/certs"
19669 elif test -n "$alpine_SSLCERTS_ORIG" -a -d "$alpine_SSLCERTS_ORIG" ; then
19670 certdir="$alpine_SSLCERTS_ORIG"
19671 else
19672 { $as_echo "$as_me:${as_lineno-$LINENO}: SSL Problem: certificate directory not found" >&5
19673 $as_echo "$as_me: SSL Problem: certificate directory not found" >&6;}
19676 if test "x$with_smime" != "xno" ; then
19677 if test -n "$certdir" ; then
19678 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * S/MIME support enabled" >&5
19679 $as_echo "$as_me: * * * S/MIME support enabled" >&6;}
19681 $as_echo "#define SMIME /**/" >>confdefs.h
19684 cat >>confdefs.h <<_ACEOF
19685 #define SMIME_SSLCERTS "$certdir"
19686 _ACEOF
19691 if test ! -f ${certdir}/factory.pem ; then
19692 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * SSL file \"${certdir}/factory.pem\" is missing." >&5
19693 $as_echo "$as_me: * * * SSL file \"${certdir}/factory.pem\" is missing." >&6;}
19694 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * This might indicate that CA certs did not get properly" >&5
19695 $as_echo "$as_me: * * * This might indicate that CA certs did not get properly" >&6;}
19696 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * installed. If you get certificate validation failures" >&5
19697 $as_echo "$as_me: * * * installed. If you get certificate validation failures" >&6;}
19698 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * in Alpine, this might be the reason for them." >&5
19699 $as_echo "$as_me: * * * in Alpine, this might be the reason for them." >&6;}
19702 if test -z "`ls ${certdir} | $EGREP '^[0-9A-Fa-f]{8}\.[0-9]'`" ; then
19703 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * No 8-hexdigit symlinks in certificate directory \"${certdir}\"." >&5
19704 $as_echo "$as_me: * * * No 8-hexdigit symlinks in certificate directory \"${certdir}\"." >&6;}
19705 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * This might indicate that CA certs did not get properly" >&5
19706 $as_echo "$as_me: * * * This might indicate that CA certs did not get properly" >&6;}
19707 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * installed. If you get certificate validation failures" >&5
19708 $as_echo "$as_me: * * * installed. If you get certificate validation failures" >&6;}
19709 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * in Alpine, this might be the reason for them." >&5
19710 $as_echo "$as_me: * * * in Alpine, this might be the reason for them." >&6;}
19713 if test -n "$alpine_SSLINCLUDE" ; then
19714 c_client_specials="${c_client_specials}SSLINCLUDE=$alpine_SSLINCLUDE "
19717 if test -n "$alpine_SSLLIB" ; then
19718 c_client_specials="${c_client_specials}SSLLIB=$alpine_SSLLIB "
19721 if test -n "$alpine_SSLDIR" ; then
19722 c_client_specials="${c_client_specials}SSLDIR=$alpine_SSLDIR "
19725 if test -n "$certdir" ; then
19726 c_client_specials="${c_client_specials}SSLCERTS=$certdir "
19729 if test -n "$alpine_SSLKEYS" ; then
19730 c_client_specials="${c_client_specials}SSLKEYS=$alpine_SSLKEYS "
19734 if test "x$alpine_GSSTYPE" != "xnone" ; then
19735 c_client_specials="${c_client_specials}EXTRAAUTHENTICATORS=gss "
19736 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * Including Kerberos5 functionality" >&5
19737 $as_echo "$as_me: * * * Including Kerberos5 functionality" >&6;}
19740 if test -n "$CPPFLAGS" ; then
19741 alpine_c_client_cflags="$alpine_c_client_cflags ${CPPFLAGS}"
19743 if test -n "$CFLAGS" ; then
19744 alpine_c_client_cflags="$alpine_c_client_cflags ${CFLAGS}"
19747 if test -n "$alpine_c_client_cflags" ; then
19748 C_CLIENT_CFLAGS=EXTRACFLAGS=\"$alpine_c_client_cflags\"
19752 if test -n "$LDFLAGS" ; then
19753 alpine_c_client_ldflags="$alpine_c_client_ldflags ${LDFLAGS}"
19755 if test -n "$LIBS" ; then
19756 alpine_c_client_ldflags="$alpine_c_client_ldflags ${LIBS}"
19759 if test -n "$alpine_c_client_ldflags" ; then
19760 C_CLIENT_LDFLAGS=EXTRALDFLAGS=\"$alpine_c_client_ldflags\"
19764 if test -n "$alpine_c_client_gccoptlevel" ; then
19765 C_CLIENT_GCCOPTLEVEL=GCCOPTLEVEL=\"$alpine_c_client_gccoptlevel\"
19769 C_CLIENT_SPECIALS=$c_client_specials
19772 if test -z "$WEB_BUILD" ; then
19773 WEB_PUBCOOKIE_BUILD=
19774 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * TCL libraries could not be found." >&5
19775 $as_echo "$as_me: * * * TCL libraries could not be found." >&6;}
19776 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * WEB ALPINE COMPONENT WILL NOT BE BUILT." >&5
19777 $as_echo "$as_me: * * * WEB ALPINE COMPONENT WILL NOT BE BUILT." >&6;}
19778 else
19779 if test -n "$WEB_PUBCOOKIE_BUILD" ; then
19780 if test "x$alpine_GSSTYPE" = "xnone" ; then
19781 WEB_PUBCOOKIE_BUILD=
19782 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * Kerberos5 support not found." >&5
19783 $as_echo "$as_me: * * * Kerberos5 support not found." >&6;}
19784 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * WEB ALPINE PUBCOOKIE COMPONENT WILL NOT BE BUILT." >&5
19785 $as_echo "$as_me: * * * WEB ALPINE PUBCOOKIE COMPONENT WILL NOT BE BUILT." >&6;}
19786 elif test -z "$WEB_BINDIR" ; then
19787 WEB_PUBCOOKIE_BUILD=
19788 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * Web Alpine binary directory not provided." >&5
19789 $as_echo "$as_me: * * * Web Alpine binary directory not provided." >&6;}
19790 as_fn_error $? "* * * --with-pubcookie requires --with-web-bin=PATH.
19791 Please re-run configure with these options:
19792 --with-pubcookie --with-web-bin=/usr/local/libexec/alpine/bin" "$LINENO" 5
19793 else
19795 $as_echo "#define PUBCOOKIE 1" >>confdefs.h
19797 WEB_PUBCOOKIE_LIB=../pubcookie/libauthgssproxy.a
19798 WEB_PUBCOOKIE_LINK=gssapi_proxy.l
19814 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"
19816 cat >confcache <<\_ACEOF
19817 # This file is a shell script that caches the results of configure
19818 # tests run on this system so they can be shared between configure
19819 # scripts and configure runs, see configure's option --config-cache.
19820 # It is not useful on other systems. If it contains results you don't
19821 # want to keep, you may remove or edit it.
19823 # config.status only pays attention to the cache file if you give it
19824 # the --recheck option to rerun configure.
19826 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19827 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19828 # following values.
19830 _ACEOF
19832 # The following way of writing the cache mishandles newlines in values,
19833 # but we know of no workaround that is simple, portable, and efficient.
19834 # So, we kill variables containing newlines.
19835 # Ultrix sh set writes to stderr and can't be redirected directly,
19836 # and sets the high bit in the cache file unless we assign to the vars.
19838 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19839 eval ac_val=\$$ac_var
19840 case $ac_val in #(
19841 *${as_nl}*)
19842 case $ac_var in #(
19843 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19844 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19845 esac
19846 case $ac_var in #(
19847 _ | IFS | as_nl) ;; #(
19848 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19849 *) { eval $ac_var=; unset $ac_var;} ;;
19850 esac ;;
19851 esac
19852 done
19854 (set) 2>&1 |
19855 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19856 *${as_nl}ac_space=\ *)
19857 # `set' does not quote correctly, so add quotes: double-quote
19858 # substitution turns \\\\ into \\, and sed turns \\ into \.
19859 sed -n \
19860 "s/'/'\\\\''/g;
19861 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19862 ;; #(
19864 # `set' quotes correctly as required by POSIX, so do not add quotes.
19865 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19867 esac |
19868 sort
19870 sed '
19871 /^ac_cv_env_/b end
19872 t clear
19873 :clear
19874 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19875 t end
19876 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19877 :end' >>confcache
19878 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19879 if test -w "$cache_file"; then
19880 if test "x$cache_file" != "x/dev/null"; then
19881 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19882 $as_echo "$as_me: updating cache $cache_file" >&6;}
19883 if test ! -f "$cache_file" || test -h "$cache_file"; then
19884 cat confcache >"$cache_file"
19885 else
19886 case $cache_file in #(
19887 */* | ?:*)
19888 mv -f confcache "$cache_file"$$ &&
19889 mv -f "$cache_file"$$ "$cache_file" ;; #(
19891 mv -f confcache "$cache_file" ;;
19892 esac
19895 else
19896 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19897 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19900 rm -f confcache
19902 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19903 # Let make expand exec_prefix.
19904 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19906 DEFS=-DHAVE_CONFIG_H
19908 ac_libobjs=
19909 ac_ltlibobjs=
19911 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19912 # 1. Remove the extension, and $U if already installed.
19913 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19914 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19915 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19916 # will be set to the directory where LIBOBJS objects are built.
19917 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19918 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19919 done
19920 LIBOBJS=$ac_libobjs
19922 LTLIBOBJS=$ac_ltlibobjs
19925 if test -n "$EXEEXT"; then
19926 am__EXEEXT_TRUE=
19927 am__EXEEXT_FALSE='#'
19928 else
19929 am__EXEEXT_TRUE='#'
19930 am__EXEEXT_FALSE=
19933 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19934 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
19935 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19937 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19938 as_fn_error $? "conditional \"AMDEP\" was never defined.
19939 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19941 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19942 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19943 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19946 : "${CONFIG_STATUS=./config.status}"
19947 ac_write_fail=0
19948 ac_clean_files_save=$ac_clean_files
19949 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19950 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19951 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19952 as_write_fail=0
19953 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19954 #! $SHELL
19955 # Generated by $as_me.
19956 # Run this file to recreate the current configuration.
19957 # Compiler output produced by configure, useful for debugging
19958 # configure, is in config.log if it exists.
19960 debug=false
19961 ac_cs_recheck=false
19962 ac_cs_silent=false
19964 SHELL=\${CONFIG_SHELL-$SHELL}
19965 export SHELL
19966 _ASEOF
19967 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19968 ## -------------------- ##
19969 ## M4sh Initialization. ##
19970 ## -------------------- ##
19972 # Be more Bourne compatible
19973 DUALCASE=1; export DUALCASE # for MKS sh
19974 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19975 emulate sh
19976 NULLCMD=:
19977 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19978 # is contrary to our usage. Disable this feature.
19979 alias -g '${1+"$@"}'='"$@"'
19980 setopt NO_GLOB_SUBST
19981 else
19982 case `(set -o) 2>/dev/null` in #(
19983 *posix*) :
19984 set -o posix ;; #(
19985 *) :
19987 esac
19991 as_nl='
19993 export as_nl
19994 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19995 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19996 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19997 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19998 # Prefer a ksh shell builtin over an external printf program on Solaris,
19999 # but without wasting forks for bash or zsh.
20000 if test -z "$BASH_VERSION$ZSH_VERSION" \
20001 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
20002 as_echo='print -r --'
20003 as_echo_n='print -rn --'
20004 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20005 as_echo='printf %s\n'
20006 as_echo_n='printf %s'
20007 else
20008 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20009 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20010 as_echo_n='/usr/ucb/echo -n'
20011 else
20012 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20013 as_echo_n_body='eval
20014 arg=$1;
20015 case $arg in #(
20016 *"$as_nl"*)
20017 expr "X$arg" : "X\\(.*\\)$as_nl";
20018 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20019 esac;
20020 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20022 export as_echo_n_body
20023 as_echo_n='sh -c $as_echo_n_body as_echo'
20025 export as_echo_body
20026 as_echo='sh -c $as_echo_body as_echo'
20029 # The user is always right.
20030 if test "${PATH_SEPARATOR+set}" != set; then
20031 PATH_SEPARATOR=:
20032 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20033 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20034 PATH_SEPARATOR=';'
20039 # IFS
20040 # We need space, tab and new line, in precisely that order. Quoting is
20041 # there to prevent editors from complaining about space-tab.
20042 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20043 # splitting by setting IFS to empty value.)
20044 IFS=" "" $as_nl"
20046 # Find who we are. Look in the path if we contain no directory separator.
20047 as_myself=
20048 case $0 in #((
20049 *[\\/]* ) as_myself=$0 ;;
20050 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20051 for as_dir in $PATH
20053 IFS=$as_save_IFS
20054 test -z "$as_dir" && as_dir=.
20055 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20056 done
20057 IFS=$as_save_IFS
20060 esac
20061 # We did not find ourselves, most probably we were run as `sh COMMAND'
20062 # in which case we are not to be found in the path.
20063 if test "x$as_myself" = x; then
20064 as_myself=$0
20066 if test ! -f "$as_myself"; then
20067 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20068 exit 1
20071 # Unset variables that we do not need and which cause bugs (e.g. in
20072 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
20073 # suppresses any "Segmentation fault" message there. '((' could
20074 # trigger a bug in pdksh 5.2.14.
20075 for as_var in BASH_ENV ENV MAIL MAILPATH
20076 do eval test x\${$as_var+set} = xset \
20077 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20078 done
20079 PS1='$ '
20080 PS2='> '
20081 PS4='+ '
20083 # NLS nuisances.
20084 LC_ALL=C
20085 export LC_ALL
20086 LANGUAGE=C
20087 export LANGUAGE
20089 # CDPATH.
20090 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20093 # as_fn_error STATUS ERROR [LINENO LOG_FD]
20094 # ----------------------------------------
20095 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20096 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20097 # script with STATUS, using 1 if that was 0.
20098 as_fn_error ()
20100 as_status=$1; test $as_status -eq 0 && as_status=1
20101 if test "$4"; then
20102 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20103 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20105 $as_echo "$as_me: error: $2" >&2
20106 as_fn_exit $as_status
20107 } # as_fn_error
20110 # as_fn_set_status STATUS
20111 # -----------------------
20112 # Set $? to STATUS, without forking.
20113 as_fn_set_status ()
20115 return $1
20116 } # as_fn_set_status
20118 # as_fn_exit STATUS
20119 # -----------------
20120 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20121 as_fn_exit ()
20123 set +e
20124 as_fn_set_status $1
20125 exit $1
20126 } # as_fn_exit
20128 # as_fn_unset VAR
20129 # ---------------
20130 # Portably unset VAR.
20131 as_fn_unset ()
20133 { eval $1=; unset $1;}
20135 as_unset=as_fn_unset
20136 # as_fn_append VAR VALUE
20137 # ----------------------
20138 # Append the text in VALUE to the end of the definition contained in VAR. Take
20139 # advantage of any shell optimizations that allow amortized linear growth over
20140 # repeated appends, instead of the typical quadratic growth present in naive
20141 # implementations.
20142 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
20143 eval 'as_fn_append ()
20145 eval $1+=\$2
20147 else
20148 as_fn_append ()
20150 eval $1=\$$1\$2
20152 fi # as_fn_append
20154 # as_fn_arith ARG...
20155 # ------------------
20156 # Perform arithmetic evaluation on the ARGs, and store the result in the
20157 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20158 # must be portable across $(()) and expr.
20159 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
20160 eval 'as_fn_arith ()
20162 as_val=$(( $* ))
20164 else
20165 as_fn_arith ()
20167 as_val=`expr "$@" || test $? -eq 1`
20169 fi # as_fn_arith
20172 if expr a : '\(a\)' >/dev/null 2>&1 &&
20173 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20174 as_expr=expr
20175 else
20176 as_expr=false
20179 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20180 as_basename=basename
20181 else
20182 as_basename=false
20185 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20186 as_dirname=dirname
20187 else
20188 as_dirname=false
20191 as_me=`$as_basename -- "$0" ||
20192 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20193 X"$0" : 'X\(//\)$' \| \
20194 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20195 $as_echo X/"$0" |
20196 sed '/^.*\/\([^/][^/]*\)\/*$/{
20197 s//\1/
20200 /^X\/\(\/\/\)$/{
20201 s//\1/
20204 /^X\/\(\/\).*/{
20205 s//\1/
20208 s/.*/./; q'`
20210 # Avoid depending upon Character Ranges.
20211 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20212 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20213 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20214 as_cr_digits='0123456789'
20215 as_cr_alnum=$as_cr_Letters$as_cr_digits
20217 ECHO_C= ECHO_N= ECHO_T=
20218 case `echo -n x` in #(((((
20219 -n*)
20220 case `echo 'xy\c'` in
20221 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20222 xy) ECHO_C='\c';;
20223 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
20224 ECHO_T=' ';;
20225 esac;;
20227 ECHO_N='-n';;
20228 esac
20230 rm -f conf$$ conf$$.exe conf$$.file
20231 if test -d conf$$.dir; then
20232 rm -f conf$$.dir/conf$$.file
20233 else
20234 rm -f conf$$.dir
20235 mkdir conf$$.dir 2>/dev/null
20237 if (echo >conf$$.file) 2>/dev/null; then
20238 if ln -s conf$$.file conf$$ 2>/dev/null; then
20239 as_ln_s='ln -s'
20240 # ... but there are two gotchas:
20241 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20242 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20243 # In both cases, we have to default to `cp -pR'.
20244 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20245 as_ln_s='cp -pR'
20246 elif ln conf$$.file conf$$ 2>/dev/null; then
20247 as_ln_s=ln
20248 else
20249 as_ln_s='cp -pR'
20251 else
20252 as_ln_s='cp -pR'
20254 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20255 rmdir conf$$.dir 2>/dev/null
20258 # as_fn_mkdir_p
20259 # -------------
20260 # Create "$as_dir" as a directory, including parents if necessary.
20261 as_fn_mkdir_p ()
20264 case $as_dir in #(
20265 -*) as_dir=./$as_dir;;
20266 esac
20267 test -d "$as_dir" || eval $as_mkdir_p || {
20268 as_dirs=
20269 while :; do
20270 case $as_dir in #(
20271 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20272 *) as_qdir=$as_dir;;
20273 esac
20274 as_dirs="'$as_qdir' $as_dirs"
20275 as_dir=`$as_dirname -- "$as_dir" ||
20276 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20277 X"$as_dir" : 'X\(//\)[^/]' \| \
20278 X"$as_dir" : 'X\(//\)$' \| \
20279 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20280 $as_echo X"$as_dir" |
20281 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20282 s//\1/
20285 /^X\(\/\/\)[^/].*/{
20286 s//\1/
20289 /^X\(\/\/\)$/{
20290 s//\1/
20293 /^X\(\/\).*/{
20294 s//\1/
20297 s/.*/./; q'`
20298 test -d "$as_dir" && break
20299 done
20300 test -z "$as_dirs" || eval "mkdir $as_dirs"
20301 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20304 } # as_fn_mkdir_p
20305 if mkdir -p . 2>/dev/null; then
20306 as_mkdir_p='mkdir -p "$as_dir"'
20307 else
20308 test -d ./-p && rmdir ./-p
20309 as_mkdir_p=false
20313 # as_fn_executable_p FILE
20314 # -----------------------
20315 # Test if FILE is an executable regular file.
20316 as_fn_executable_p ()
20318 test -f "$1" && test -x "$1"
20319 } # as_fn_executable_p
20320 as_test_x='test -x'
20321 as_executable_p=as_fn_executable_p
20323 # Sed expression to map a string onto a valid CPP name.
20324 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20326 # Sed expression to map a string onto a valid variable name.
20327 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20330 exec 6>&1
20331 ## ----------------------------------- ##
20332 ## Main body of $CONFIG_STATUS script. ##
20333 ## ----------------------------------- ##
20334 _ASEOF
20335 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20337 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20338 # Save the log message, to keep $0 and so on meaningful, and to
20339 # report actual input values of CONFIG_FILES etc. instead of their
20340 # values after options handling.
20341 ac_log="
20342 This file was extended by alpine $as_me 2.19.11, which was
20343 generated by GNU Autoconf 2.69. Invocation command line was
20345 CONFIG_FILES = $CONFIG_FILES
20346 CONFIG_HEADERS = $CONFIG_HEADERS
20347 CONFIG_LINKS = $CONFIG_LINKS
20348 CONFIG_COMMANDS = $CONFIG_COMMANDS
20349 $ $0 $@
20351 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20354 _ACEOF
20356 case $ac_config_files in *"
20357 "*) set x $ac_config_files; shift; ac_config_files=$*;;
20358 esac
20360 case $ac_config_headers in *"
20361 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20362 esac
20365 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20366 # Files that config.status was made for.
20367 config_files="$ac_config_files"
20368 config_headers="$ac_config_headers"
20369 config_commands="$ac_config_commands"
20371 _ACEOF
20373 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20374 ac_cs_usage="\
20375 \`$as_me' instantiates files and other configuration actions
20376 from templates according to the current configuration. Unless the files
20377 and actions are specified as TAGs, all are instantiated by default.
20379 Usage: $0 [OPTION]... [TAG]...
20381 -h, --help print this help, then exit
20382 -V, --version print version number and configuration settings, then exit
20383 --config print configuration, then exit
20384 -q, --quiet, --silent
20385 do not print progress messages
20386 -d, --debug don't remove temporary files
20387 --recheck update $as_me by reconfiguring in the same conditions
20388 --file=FILE[:TEMPLATE]
20389 instantiate the configuration file FILE
20390 --header=FILE[:TEMPLATE]
20391 instantiate the configuration header FILE
20393 Configuration files:
20394 $config_files
20396 Configuration headers:
20397 $config_headers
20399 Configuration commands:
20400 $config_commands
20402 Report bugs to <chappa@washington.edu>."
20404 _ACEOF
20405 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20406 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20407 ac_cs_version="\\
20408 alpine config.status 2.19.11
20409 configured by $0, generated by GNU Autoconf 2.69,
20410 with options \\"\$ac_cs_config\\"
20412 Copyright (C) 2012 Free Software Foundation, Inc.
20413 This config.status script is free software; the Free Software Foundation
20414 gives unlimited permission to copy, distribute and modify it."
20416 ac_pwd='$ac_pwd'
20417 srcdir='$srcdir'
20418 INSTALL='$INSTALL'
20419 MKDIR_P='$MKDIR_P'
20420 AWK='$AWK'
20421 test -n "\$AWK" || AWK=awk
20422 _ACEOF
20424 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20425 # The default lists apply if the user does not specify any file.
20426 ac_need_defaults=:
20427 while test $# != 0
20429 case $1 in
20430 --*=?*)
20431 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20432 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20433 ac_shift=:
20435 --*=)
20436 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20437 ac_optarg=
20438 ac_shift=:
20441 ac_option=$1
20442 ac_optarg=$2
20443 ac_shift=shift
20445 esac
20447 case $ac_option in
20448 # Handling of the options.
20449 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20450 ac_cs_recheck=: ;;
20451 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20452 $as_echo "$ac_cs_version"; exit ;;
20453 --config | --confi | --conf | --con | --co | --c )
20454 $as_echo "$ac_cs_config"; exit ;;
20455 --debug | --debu | --deb | --de | --d | -d )
20456 debug=: ;;
20457 --file | --fil | --fi | --f )
20458 $ac_shift
20459 case $ac_optarg in
20460 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20461 '') as_fn_error $? "missing file argument" ;;
20462 esac
20463 as_fn_append CONFIG_FILES " '$ac_optarg'"
20464 ac_need_defaults=false;;
20465 --header | --heade | --head | --hea )
20466 $ac_shift
20467 case $ac_optarg in
20468 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20469 esac
20470 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20471 ac_need_defaults=false;;
20472 --he | --h)
20473 # Conflict between --help and --header
20474 as_fn_error $? "ambiguous option: \`$1'
20475 Try \`$0 --help' for more information.";;
20476 --help | --hel | -h )
20477 $as_echo "$ac_cs_usage"; exit ;;
20478 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20479 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20480 ac_cs_silent=: ;;
20482 # This is an error.
20483 -*) as_fn_error $? "unrecognized option: \`$1'
20484 Try \`$0 --help' for more information." ;;
20486 *) as_fn_append ac_config_targets " $1"
20487 ac_need_defaults=false ;;
20489 esac
20490 shift
20491 done
20493 ac_configure_extra_args=
20495 if $ac_cs_silent; then
20496 exec 6>/dev/null
20497 ac_configure_extra_args="$ac_configure_extra_args --silent"
20500 _ACEOF
20501 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20502 if \$ac_cs_recheck; then
20503 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20504 shift
20505 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20506 CONFIG_SHELL='$SHELL'
20507 export CONFIG_SHELL
20508 exec "\$@"
20511 _ACEOF
20512 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20513 exec 5>>config.log
20515 echo
20516 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20517 ## Running $as_me. ##
20518 _ASBOX
20519 $as_echo "$ac_log"
20520 } >&5
20522 _ACEOF
20523 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20525 # INIT-COMMANDS
20527 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20530 # The HP-UX ksh and POSIX shell print the target directory to stdout
20531 # if CDPATH is set.
20532 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20534 sed_quote_subst='$sed_quote_subst'
20535 double_quote_subst='$double_quote_subst'
20536 delay_variable_subst='$delay_variable_subst'
20537 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
20538 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
20539 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
20540 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
20541 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
20542 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
20543 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
20544 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
20545 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
20546 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
20547 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
20548 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
20549 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
20550 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
20551 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
20552 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
20553 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
20554 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
20555 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
20556 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
20557 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
20558 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
20559 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
20560 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
20561 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
20562 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
20563 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
20564 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20565 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
20566 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
20567 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
20568 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
20569 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
20570 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
20571 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
20572 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20573 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20574 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20575 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
20576 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
20577 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
20578 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
20579 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
20580 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
20581 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"`'
20582 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"`'
20583 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
20584 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
20585 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
20586 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
20587 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
20588 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
20589 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
20590 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
20591 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
20592 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
20593 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
20594 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
20595 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
20596 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
20597 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
20598 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
20599 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20600 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20601 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
20602 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
20603 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
20604 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
20605 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
20606 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20607 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20608 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20609 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20610 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20611 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20612 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
20613 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
20614 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
20615 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
20616 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
20617 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
20618 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
20619 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
20620 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
20621 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
20622 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
20623 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
20624 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
20625 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
20626 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
20627 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20628 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
20629 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
20630 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20631 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
20632 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
20633 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
20634 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
20635 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
20636 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
20637 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
20638 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
20639 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
20640 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
20641 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
20642 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20643 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20644 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20645 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
20646 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
20647 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
20648 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
20649 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
20650 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
20651 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
20652 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
20653 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
20654 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
20656 LTCC='$LTCC'
20657 LTCFLAGS='$LTCFLAGS'
20658 compiler='$compiler_DEFAULT'
20660 # Quote evaled strings.
20661 for var in SED \
20662 GREP \
20663 EGREP \
20664 FGREP \
20665 LD \
20666 NM \
20667 LN_S \
20668 lt_SP2NL \
20669 lt_NL2SP \
20670 reload_flag \
20671 OBJDUMP \
20672 deplibs_check_method \
20673 file_magic_cmd \
20674 AR \
20675 AR_FLAGS \
20676 STRIP \
20677 RANLIB \
20678 CC \
20679 CFLAGS \
20680 compiler \
20681 lt_cv_sys_global_symbol_pipe \
20682 lt_cv_sys_global_symbol_to_cdecl \
20683 lt_cv_sys_global_symbol_to_c_name_address \
20684 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20685 SHELL \
20686 ECHO \
20687 lt_prog_compiler_no_builtin_flag \
20688 lt_prog_compiler_wl \
20689 lt_prog_compiler_pic \
20690 lt_prog_compiler_static \
20691 lt_cv_prog_compiler_c_o \
20692 need_locks \
20693 DSYMUTIL \
20694 NMEDIT \
20695 LIPO \
20696 OTOOL \
20697 OTOOL64 \
20698 shrext_cmds \
20699 export_dynamic_flag_spec \
20700 whole_archive_flag_spec \
20701 compiler_needs_object \
20702 with_gnu_ld \
20703 allow_undefined_flag \
20704 no_undefined_flag \
20705 hardcode_libdir_flag_spec \
20706 hardcode_libdir_flag_spec_ld \
20707 hardcode_libdir_separator \
20708 fix_srcfile_path \
20709 exclude_expsyms \
20710 include_expsyms \
20711 file_list_spec \
20712 variables_saved_for_relink \
20713 libname_spec \
20714 library_names_spec \
20715 soname_spec \
20716 finish_eval \
20717 old_striplib \
20718 striplib; do
20719 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
20720 *[\\\\\\\`\\"\\\$]*)
20721 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
20724 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20726 esac
20727 done
20729 # Double-quote double-evaled strings.
20730 for var in reload_cmds \
20731 old_postinstall_cmds \
20732 old_postuninstall_cmds \
20733 old_archive_cmds \
20734 extract_expsyms_cmds \
20735 old_archive_from_new_cmds \
20736 old_archive_from_expsyms_cmds \
20737 archive_cmds \
20738 archive_expsym_cmds \
20739 module_cmds \
20740 module_expsym_cmds \
20741 export_symbols_cmds \
20742 prelink_cmds \
20743 postinstall_cmds \
20744 postuninstall_cmds \
20745 finish_cmds \
20746 sys_lib_search_path_spec \
20747 sys_lib_dlsearch_path_spec; do
20748 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
20749 *[\\\\\\\`\\"\\\$]*)
20750 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
20753 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20755 esac
20756 done
20758 # Fix-up fallback echo if it was mangled by the above quoting rules.
20759 case \$lt_ECHO in
20760 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
20762 esac
20764 ac_aux_dir='$ac_aux_dir'
20765 xsi_shell='$xsi_shell'
20766 lt_shell_append='$lt_shell_append'
20768 # See if we are running on zsh, and set the options which allow our
20769 # commands through without removal of \ escapes INIT.
20770 if test -n "\${ZSH_VERSION+set}" ; then
20771 setopt NO_GLOB_SUBST
20775 PACKAGE='$PACKAGE'
20776 VERSION='$VERSION'
20777 TIMESTAMP='$TIMESTAMP'
20778 RM='$RM'
20779 ofile='$ofile'
20783 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
20784 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
20785 # from automake < 1.5.
20786 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
20787 # Capture the value of LINGUAS because we need it to compute CATALOGS.
20788 LINGUAS="${LINGUAS-%UNSET%}"
20791 _ACEOF
20793 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20795 # Handling of arguments.
20796 for ac_config_target in $ac_config_targets
20798 case $ac_config_target in
20799 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
20800 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20801 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20802 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
20803 "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
20804 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
20805 "$REGEX_MAKEFILE") CONFIG_FILES="$CONFIG_FILES $REGEX_MAKEFILE" ;;
20806 "pith/osdep/Makefile") CONFIG_FILES="$CONFIG_FILES pith/osdep/Makefile" ;;
20807 "pith/charconv/Makefile") CONFIG_FILES="$CONFIG_FILES pith/charconv/Makefile" ;;
20808 "pith/Makefile") CONFIG_FILES="$CONFIG_FILES pith/Makefile" ;;
20809 "pico/osdep/Makefile") CONFIG_FILES="$CONFIG_FILES pico/osdep/Makefile" ;;
20810 "pico/Makefile") CONFIG_FILES="$CONFIG_FILES pico/Makefile" ;;
20811 "alpine/osdep/Makefile") CONFIG_FILES="$CONFIG_FILES alpine/osdep/Makefile" ;;
20812 "alpine/Makefile") CONFIG_FILES="$CONFIG_FILES alpine/Makefile" ;;
20813 "web/src/Makefile") CONFIG_FILES="$CONFIG_FILES web/src/Makefile" ;;
20814 "web/src/pubcookie/Makefile") CONFIG_FILES="$CONFIG_FILES web/src/pubcookie/Makefile" ;;
20815 "web/src/alpined.d/Makefile") CONFIG_FILES="$CONFIG_FILES web/src/alpined.d/Makefile" ;;
20816 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20818 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20819 esac
20820 done
20823 # If the user did not use the arguments to specify the items to instantiate,
20824 # then the envvar interface is used. Set only those that are not.
20825 # We use the long form for the default assignment because of an extremely
20826 # bizarre bug on SunOS 4.1.3.
20827 if $ac_need_defaults; then
20828 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20829 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20830 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20833 # Have a temporary directory for convenience. Make it in the build tree
20834 # simply because there is no reason against having it here, and in addition,
20835 # creating and moving files from /tmp can sometimes cause problems.
20836 # Hook for its removal unless debugging.
20837 # Note that there is a small window in which the directory will not be cleaned:
20838 # after its creation but before its name has been assigned to `$tmp'.
20839 $debug ||
20841 tmp= ac_tmp=
20842 trap 'exit_status=$?
20843 : "${ac_tmp:=$tmp}"
20844 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20846 trap 'as_fn_exit 1' 1 2 13 15
20848 # Create a (secure) tmp directory for tmp files.
20851 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20852 test -d "$tmp"
20853 } ||
20855 tmp=./conf$$-$RANDOM
20856 (umask 077 && mkdir "$tmp")
20857 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20858 ac_tmp=$tmp
20860 # Set up the scripts for CONFIG_FILES section.
20861 # No need to generate them if there are no CONFIG_FILES.
20862 # This happens for instance with `./config.status config.h'.
20863 if test -n "$CONFIG_FILES"; then
20866 ac_cr=`echo X | tr X '\015'`
20867 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20868 # But we know of no other shell where ac_cr would be empty at this
20869 # point, so we can use a bashism as a fallback.
20870 if test "x$ac_cr" = x; then
20871 eval ac_cr=\$\'\\r\'
20873 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20874 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20875 ac_cs_awk_cr='\\r'
20876 else
20877 ac_cs_awk_cr=$ac_cr
20880 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20881 _ACEOF
20885 echo "cat >conf$$subs.awk <<_ACEOF" &&
20886 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20887 echo "_ACEOF"
20888 } >conf$$subs.sh ||
20889 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20890 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20891 ac_delim='%!_!# '
20892 for ac_last_try in false false false false false :; do
20893 . ./conf$$subs.sh ||
20894 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20896 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20897 if test $ac_delim_n = $ac_delim_num; then
20898 break
20899 elif $ac_last_try; then
20900 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20901 else
20902 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20904 done
20905 rm -f conf$$subs.sh
20907 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20908 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20909 _ACEOF
20910 sed -n '
20912 s/^/S["/; s/!.*/"]=/
20915 s/^[^!]*!//
20916 :repl
20917 t repl
20918 s/'"$ac_delim"'$//
20919 t delim
20922 s/\(.\{148\}\)..*/\1/
20923 t more1
20924 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20927 b repl
20928 :more1
20929 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20932 s/.\{148\}//
20933 t nl
20934 :delim
20936 s/\(.\{148\}\)..*/\1/
20937 t more2
20938 s/["\\]/\\&/g; s/^/"/; s/$/"/
20941 :more2
20942 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20945 s/.\{148\}//
20946 t delim
20947 ' <conf$$subs.awk | sed '
20948 /^[^""]/{
20950 s/\n//
20952 ' >>$CONFIG_STATUS || ac_write_fail=1
20953 rm -f conf$$subs.awk
20954 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20955 _ACAWK
20956 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20957 for (key in S) S_is_set[key] = 1
20958 FS = "\a"
20962 line = $ 0
20963 nfields = split(line, field, "@")
20964 substed = 0
20965 len = length(field[1])
20966 for (i = 2; i < nfields; i++) {
20967 key = field[i]
20968 keylen = length(key)
20969 if (S_is_set[key]) {
20970 value = S[key]
20971 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20972 len += length(value) + length(field[++i])
20973 substed = 1
20974 } else
20975 len += 1 + keylen
20978 print line
20981 _ACAWK
20982 _ACEOF
20983 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20984 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20985 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20986 else
20988 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20989 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20990 _ACEOF
20992 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20993 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20994 # trailing colons and then remove the whole line if VPATH becomes empty
20995 # (actually we leave an empty line to preserve line numbers).
20996 if test "x$srcdir" = x.; then
20997 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20999 s///
21000 s/^/:/
21001 s/[ ]*$/:/
21002 s/:\$(srcdir):/:/g
21003 s/:\${srcdir}:/:/g
21004 s/:@srcdir@:/:/g
21005 s/^:*//
21006 s/:*$//
21008 s/\(=[ ]*\).*/\1/
21010 s/\n//
21011 s/^[^=]*=[ ]*$//
21015 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21016 fi # test -n "$CONFIG_FILES"
21018 # Set up the scripts for CONFIG_HEADERS section.
21019 # No need to generate them if there are no CONFIG_HEADERS.
21020 # This happens for instance with `./config.status Makefile'.
21021 if test -n "$CONFIG_HEADERS"; then
21022 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
21023 BEGIN {
21024 _ACEOF
21026 # Transform confdefs.h into an awk script `defines.awk', embedded as
21027 # here-document in config.status, that substitutes the proper values into
21028 # config.h.in to produce config.h.
21030 # Create a delimiter string that does not exist in confdefs.h, to ease
21031 # handling of long lines.
21032 ac_delim='%!_!# '
21033 for ac_last_try in false false :; do
21034 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
21035 if test -z "$ac_tt"; then
21036 break
21037 elif $ac_last_try; then
21038 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
21039 else
21040 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21042 done
21044 # For the awk script, D is an array of macro values keyed by name,
21045 # likewise P contains macro parameters if any. Preserve backslash
21046 # newline sequences.
21048 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21049 sed -n '
21050 s/.\{148\}/&'"$ac_delim"'/g
21051 t rset
21052 :rset
21053 s/^[ ]*#[ ]*define[ ][ ]*/ /
21054 t def
21056 :def
21057 s/\\$//
21058 t bsnl
21059 s/["\\]/\\&/g
21060 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21061 D["\1"]=" \3"/p
21062 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
21064 :bsnl
21065 s/["\\]/\\&/g
21066 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21067 D["\1"]=" \3\\\\\\n"\\/p
21068 t cont
21069 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21070 t cont
21072 :cont
21074 s/.\{148\}/&'"$ac_delim"'/g
21075 t clear
21076 :clear
21077 s/\\$//
21078 t bsnlc
21079 s/["\\]/\\&/g; s/^/"/; s/$/"/p
21081 :bsnlc
21082 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21083 b cont
21084 ' <confdefs.h | sed '
21085 s/'"$ac_delim"'/"\\\
21086 "/g' >>$CONFIG_STATUS || ac_write_fail=1
21088 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21089 for (key in D) D_is_set[key] = 1
21090 FS = "\a"
21092 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21093 line = \$ 0
21094 split(line, arg, " ")
21095 if (arg[1] == "#") {
21096 defundef = arg[2]
21097 mac1 = arg[3]
21098 } else {
21099 defundef = substr(arg[1], 2)
21100 mac1 = arg[2]
21102 split(mac1, mac2, "(") #)
21103 macro = mac2[1]
21104 prefix = substr(line, 1, index(line, defundef) - 1)
21105 if (D_is_set[macro]) {
21106 # Preserve the white space surrounding the "#".
21107 print prefix "define", macro P[macro] D[macro]
21108 next
21109 } else {
21110 # Replace #undef with comments. This is necessary, for example,
21111 # in the case of _POSIX_SOURCE, which is predefined and required
21112 # on some systems where configure will not decide to define it.
21113 if (defundef == "undef") {
21114 print "/*", prefix defundef, macro, "*/"
21115 next
21119 { print }
21120 _ACAWK
21121 _ACEOF
21122 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21123 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21124 fi # test -n "$CONFIG_HEADERS"
21127 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
21128 shift
21129 for ac_tag
21131 case $ac_tag in
21132 :[FHLC]) ac_mode=$ac_tag; continue;;
21133 esac
21134 case $ac_mode$ac_tag in
21135 :[FHL]*:*);;
21136 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
21137 :[FH]-) ac_tag=-:-;;
21138 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21139 esac
21140 ac_save_IFS=$IFS
21141 IFS=:
21142 set x $ac_tag
21143 IFS=$ac_save_IFS
21144 shift
21145 ac_file=$1
21146 shift
21148 case $ac_mode in
21149 :L) ac_source=$1;;
21150 :[FH])
21151 ac_file_inputs=
21152 for ac_f
21154 case $ac_f in
21155 -) ac_f="$ac_tmp/stdin";;
21156 *) # Look for the file first in the build tree, then in the source tree
21157 # (if the path is not absolute). The absolute path cannot be DOS-style,
21158 # because $ac_f cannot contain `:'.
21159 test -f "$ac_f" ||
21160 case $ac_f in
21161 [\\/$]*) false;;
21162 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21163 esac ||
21164 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21165 esac
21166 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21167 as_fn_append ac_file_inputs " '$ac_f'"
21168 done
21170 # Let's still pretend it is `configure' which instantiates (i.e., don't
21171 # use $as_me), people would be surprised to read:
21172 # /* config.h. Generated by config.status. */
21173 configure_input='Generated from '`
21174 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21175 `' by configure.'
21176 if test x"$ac_file" != x-; then
21177 configure_input="$ac_file. $configure_input"
21178 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21179 $as_echo "$as_me: creating $ac_file" >&6;}
21181 # Neutralize special characters interpreted by sed in replacement strings.
21182 case $configure_input in #(
21183 *\&* | *\|* | *\\* )
21184 ac_sed_conf_input=`$as_echo "$configure_input" |
21185 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21186 *) ac_sed_conf_input=$configure_input;;
21187 esac
21189 case $ac_tag in
21190 *:-:* | *:-) cat >"$ac_tmp/stdin" \
21191 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21192 esac
21194 esac
21196 ac_dir=`$as_dirname -- "$ac_file" ||
21197 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21198 X"$ac_file" : 'X\(//\)[^/]' \| \
21199 X"$ac_file" : 'X\(//\)$' \| \
21200 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21201 $as_echo X"$ac_file" |
21202 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21203 s//\1/
21206 /^X\(\/\/\)[^/].*/{
21207 s//\1/
21210 /^X\(\/\/\)$/{
21211 s//\1/
21214 /^X\(\/\).*/{
21215 s//\1/
21218 s/.*/./; q'`
21219 as_dir="$ac_dir"; as_fn_mkdir_p
21220 ac_builddir=.
21222 case "$ac_dir" in
21223 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21225 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21226 # A ".." for each directory in $ac_dir_suffix.
21227 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21228 case $ac_top_builddir_sub in
21229 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21230 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21231 esac ;;
21232 esac
21233 ac_abs_top_builddir=$ac_pwd
21234 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21235 # for backward compatibility:
21236 ac_top_builddir=$ac_top_build_prefix
21238 case $srcdir in
21239 .) # We are building in place.
21240 ac_srcdir=.
21241 ac_top_srcdir=$ac_top_builddir_sub
21242 ac_abs_top_srcdir=$ac_pwd ;;
21243 [\\/]* | ?:[\\/]* ) # Absolute name.
21244 ac_srcdir=$srcdir$ac_dir_suffix;
21245 ac_top_srcdir=$srcdir
21246 ac_abs_top_srcdir=$srcdir ;;
21247 *) # Relative name.
21248 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21249 ac_top_srcdir=$ac_top_build_prefix$srcdir
21250 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21251 esac
21252 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21255 case $ac_mode in
21258 # CONFIG_FILE
21261 case $INSTALL in
21262 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21263 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21264 esac
21265 ac_MKDIR_P=$MKDIR_P
21266 case $MKDIR_P in
21267 [\\/$]* | ?:[\\/]* ) ;;
21268 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21269 esac
21270 _ACEOF
21272 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21273 # If the template does not know about datarootdir, expand it.
21274 # FIXME: This hack should be removed a few years after 2.60.
21275 ac_datarootdir_hack=; ac_datarootdir_seen=
21276 ac_sed_dataroot='
21277 /datarootdir/ {
21281 /@datadir@/p
21282 /@docdir@/p
21283 /@infodir@/p
21284 /@localedir@/p
21285 /@mandir@/p'
21286 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21287 *datarootdir*) ac_datarootdir_seen=yes;;
21288 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21289 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21290 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21291 _ACEOF
21292 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21293 ac_datarootdir_hack='
21294 s&@datadir@&$datadir&g
21295 s&@docdir@&$docdir&g
21296 s&@infodir@&$infodir&g
21297 s&@localedir@&$localedir&g
21298 s&@mandir@&$mandir&g
21299 s&\\\${datarootdir}&$datarootdir&g' ;;
21300 esac
21301 _ACEOF
21303 # Neutralize VPATH when `$srcdir' = `.'.
21304 # Shell code in configure.ac might set extrasub.
21305 # FIXME: do we really want to maintain this feature?
21306 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21307 ac_sed_extra="$ac_vpsub
21308 $extrasub
21309 _ACEOF
21310 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21312 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21313 s|@configure_input@|$ac_sed_conf_input|;t t
21314 s&@top_builddir@&$ac_top_builddir_sub&;t t
21315 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21316 s&@srcdir@&$ac_srcdir&;t t
21317 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21318 s&@top_srcdir@&$ac_top_srcdir&;t t
21319 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21320 s&@builddir@&$ac_builddir&;t t
21321 s&@abs_builddir@&$ac_abs_builddir&;t t
21322 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21323 s&@INSTALL@&$ac_INSTALL&;t t
21324 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21325 $ac_datarootdir_hack
21327 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21328 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21330 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21331 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21332 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
21333 "$ac_tmp/out"`; test -z "$ac_out"; } &&
21334 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21335 which seems to be undefined. Please make sure it is defined" >&5
21336 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21337 which seems to be undefined. Please make sure it is defined" >&2;}
21339 rm -f "$ac_tmp/stdin"
21340 case $ac_file in
21341 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21342 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21343 esac \
21344 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21348 # CONFIG_HEADER
21350 if test x"$ac_file" != x-; then
21352 $as_echo "/* $configure_input */" \
21353 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21354 } >"$ac_tmp/config.h" \
21355 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21356 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21357 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21358 $as_echo "$as_me: $ac_file is unchanged" >&6;}
21359 else
21360 rm -f "$ac_file"
21361 mv "$ac_tmp/config.h" "$ac_file" \
21362 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21364 else
21365 $as_echo "/* $configure_input */" \
21366 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21367 || as_fn_error $? "could not create -" "$LINENO" 5
21369 # Compute "$ac_file"'s index in $config_headers.
21370 _am_arg="$ac_file"
21371 _am_stamp_count=1
21372 for _am_header in $config_headers :; do
21373 case $_am_header in
21374 $_am_arg | $_am_arg:* )
21375 break ;;
21377 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21378 esac
21379 done
21380 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21381 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21382 X"$_am_arg" : 'X\(//\)[^/]' \| \
21383 X"$_am_arg" : 'X\(//\)$' \| \
21384 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21385 $as_echo X"$_am_arg" |
21386 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21387 s//\1/
21390 /^X\(\/\/\)[^/].*/{
21391 s//\1/
21394 /^X\(\/\/\)$/{
21395 s//\1/
21398 /^X\(\/\).*/{
21399 s//\1/
21402 s/.*/./; q'`/stamp-h$_am_stamp_count
21405 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21406 $as_echo "$as_me: executing $ac_file commands" >&6;}
21408 esac
21411 case $ac_file$ac_mode in
21412 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21413 # Autoconf 2.62 quotes --file arguments for eval, but not when files
21414 # are listed without --file. Let's play safe and only enable the eval
21415 # if we detect the quoting.
21416 case $CONFIG_FILES in
21417 *\'*) eval set x "$CONFIG_FILES" ;;
21418 *) set x $CONFIG_FILES ;;
21419 esac
21420 shift
21421 for mf
21423 # Strip MF so we end up with the name of the file.
21424 mf=`echo "$mf" | sed -e 's/:.*$//'`
21425 # Check whether this is an Automake generated Makefile or not.
21426 # We used to match only the files named `Makefile.in', but
21427 # some people rename them; so instead we look at the file content.
21428 # Grep'ing the first line is not enough: some people post-process
21429 # each Makefile.in and add a new line on top of each file to say so.
21430 # Grep'ing the whole file is not good either: AIX grep has a line
21431 # limit of 2048, but all sed's we know have understand at least 4000.
21432 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21433 dirpart=`$as_dirname -- "$mf" ||
21434 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21435 X"$mf" : 'X\(//\)[^/]' \| \
21436 X"$mf" : 'X\(//\)$' \| \
21437 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21438 $as_echo X"$mf" |
21439 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21440 s//\1/
21443 /^X\(\/\/\)[^/].*/{
21444 s//\1/
21447 /^X\(\/\/\)$/{
21448 s//\1/
21451 /^X\(\/\).*/{
21452 s//\1/
21455 s/.*/./; q'`
21456 else
21457 continue
21459 # Extract the definition of DEPDIR, am__include, and am__quote
21460 # from the Makefile without running `make'.
21461 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21462 test -z "$DEPDIR" && continue
21463 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21464 test -z "am__include" && continue
21465 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21466 # When using ansi2knr, U may be empty or an underscore; expand it
21467 U=`sed -n 's/^U = //p' < "$mf"`
21468 # Find all dependency output files, they are included files with
21469 # $(DEPDIR) in their names. We invoke sed twice because it is the
21470 # simplest approach to changing $(DEPDIR) to its actual value in the
21471 # expansion.
21472 for file in `sed -n "
21473 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21474 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21475 # Make sure the directory exists.
21476 test -f "$dirpart/$file" && continue
21477 fdir=`$as_dirname -- "$file" ||
21478 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21479 X"$file" : 'X\(//\)[^/]' \| \
21480 X"$file" : 'X\(//\)$' \| \
21481 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21482 $as_echo X"$file" |
21483 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21484 s//\1/
21487 /^X\(\/\/\)[^/].*/{
21488 s//\1/
21491 /^X\(\/\/\)$/{
21492 s//\1/
21495 /^X\(\/\).*/{
21496 s//\1/
21499 s/.*/./; q'`
21500 as_dir=$dirpart/$fdir; as_fn_mkdir_p
21501 # echo "creating $dirpart/$file"
21502 echo '# dummy' > "$dirpart/$file"
21503 done
21504 done
21507 "libtool":C)
21509 # See if we are running on zsh, and set the options which allow our
21510 # commands through without removal of \ escapes.
21511 if test -n "${ZSH_VERSION+set}" ; then
21512 setopt NO_GLOB_SUBST
21515 cfgfile="${ofile}T"
21516 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21517 $RM "$cfgfile"
21519 cat <<_LT_EOF >> "$cfgfile"
21520 #! $SHELL
21522 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
21523 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
21524 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21526 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
21527 # 2006, 2007, 2008 Free Software Foundation, Inc.
21528 # Written by Gordon Matzigkeit, 1996
21530 # This file is part of GNU Libtool.
21532 # GNU Libtool is free software; you can redistribute it and/or
21533 # modify it under the terms of the GNU General Public License as
21534 # published by the Free Software Foundation; either version 2 of
21535 # the License, or (at your option) any later version.
21537 # As a special exception to the GNU General Public License,
21538 # if you distribute this file as part of a program or library that
21539 # is built using GNU Libtool, you may include this file under the
21540 # same distribution terms that you use for the rest of that program.
21542 # GNU Libtool is distributed in the hope that it will be useful,
21543 # but WITHOUT ANY WARRANTY; without even the implied warranty of
21544 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21545 # GNU General Public License for more details.
21547 # You should have received a copy of the GNU General Public License
21548 # along with GNU Libtool; see the file COPYING. If not, a copy
21549 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
21550 # obtained by writing to the Free Software Foundation, Inc.,
21551 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21554 # The names of the tagged configurations supported by this script.
21555 available_tags=""
21557 # ### BEGIN LIBTOOL CONFIG
21559 # Which release of libtool.m4 was used?
21560 macro_version=$macro_version
21561 macro_revision=$macro_revision
21563 # Whether or not to build shared libraries.
21564 build_libtool_libs=$enable_shared
21566 # Whether or not to build static libraries.
21567 build_old_libs=$enable_static
21569 # What type of objects to build.
21570 pic_mode=$pic_mode
21572 # Whether or not to optimize for fast installation.
21573 fast_install=$enable_fast_install
21575 # The host system.
21576 host_alias=$host_alias
21577 host=$host
21578 host_os=$host_os
21580 # The build system.
21581 build_alias=$build_alias
21582 build=$build
21583 build_os=$build_os
21585 # A sed program that does not truncate output.
21586 SED=$lt_SED
21588 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21589 Xsed="\$SED -e 1s/^X//"
21591 # A grep program that handles long lines.
21592 GREP=$lt_GREP
21594 # An ERE matcher.
21595 EGREP=$lt_EGREP
21597 # A literal string matcher.
21598 FGREP=$lt_FGREP
21600 # A BSD- or MS-compatible name lister.
21601 NM=$lt_NM
21603 # Whether we need soft or hard links.
21604 LN_S=$lt_LN_S
21606 # What is the maximum length of a command?
21607 max_cmd_len=$max_cmd_len
21609 # Object file suffix (normally "o").
21610 objext=$ac_objext
21612 # Executable file suffix (normally "").
21613 exeext=$exeext
21615 # whether the shell understands "unset".
21616 lt_unset=$lt_unset
21618 # turn spaces into newlines.
21619 SP2NL=$lt_lt_SP2NL
21621 # turn newlines into spaces.
21622 NL2SP=$lt_lt_NL2SP
21624 # How to create reloadable object files.
21625 reload_flag=$lt_reload_flag
21626 reload_cmds=$lt_reload_cmds
21628 # An object symbol dumper.
21629 OBJDUMP=$lt_OBJDUMP
21631 # Method to check whether dependent libraries are shared objects.
21632 deplibs_check_method=$lt_deplibs_check_method
21634 # Command to use when deplibs_check_method == "file_magic".
21635 file_magic_cmd=$lt_file_magic_cmd
21637 # The archiver.
21638 AR=$lt_AR
21639 AR_FLAGS=$lt_AR_FLAGS
21641 # A symbol stripping program.
21642 STRIP=$lt_STRIP
21644 # Commands used to install an old-style archive.
21645 RANLIB=$lt_RANLIB
21646 old_postinstall_cmds=$lt_old_postinstall_cmds
21647 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21649 # A C compiler.
21650 LTCC=$lt_CC
21652 # LTCC compiler flags.
21653 LTCFLAGS=$lt_CFLAGS
21655 # Take the output of nm and produce a listing of raw symbols and C names.
21656 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21658 # Transform the output of nm in a proper C declaration.
21659 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21661 # Transform the output of nm in a C name address pair.
21662 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21664 # Transform the output of nm in a C name address pair when lib prefix is needed.
21665 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21667 # The name of the directory that contains temporary libtool files.
21668 objdir=$objdir
21670 # Shell to use when invoking shell scripts.
21671 SHELL=$lt_SHELL
21673 # An echo program that does not interpret backslashes.
21674 ECHO=$lt_ECHO
21676 # Used to examine libraries when file_magic_cmd begins with "file".
21677 MAGIC_CMD=$MAGIC_CMD
21679 # Must we lock files when doing compilation?
21680 need_locks=$lt_need_locks
21682 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21683 DSYMUTIL=$lt_DSYMUTIL
21685 # Tool to change global to local symbols on Mac OS X.
21686 NMEDIT=$lt_NMEDIT
21688 # Tool to manipulate fat objects and archives on Mac OS X.
21689 LIPO=$lt_LIPO
21691 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
21692 OTOOL=$lt_OTOOL
21694 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21695 OTOOL64=$lt_OTOOL64
21697 # Old archive suffix (normally "a").
21698 libext=$libext
21700 # Shared library suffix (normally ".so").
21701 shrext_cmds=$lt_shrext_cmds
21703 # The commands to extract the exported symbol list from a shared archive.
21704 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21706 # Variables whose values should be saved in libtool wrapper scripts and
21707 # restored at link time.
21708 variables_saved_for_relink=$lt_variables_saved_for_relink
21710 # Do we need the "lib" prefix for modules?
21711 need_lib_prefix=$need_lib_prefix
21713 # Do we need a version for libraries?
21714 need_version=$need_version
21716 # Library versioning type.
21717 version_type=$version_type
21719 # Shared library runtime path variable.
21720 runpath_var=$runpath_var
21722 # Shared library path variable.
21723 shlibpath_var=$shlibpath_var
21725 # Is shlibpath searched before the hard-coded library search path?
21726 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21728 # Format of library name prefix.
21729 libname_spec=$lt_libname_spec
21731 # List of archive names. First name is the real one, the rest are links.
21732 # The last name is the one that the linker finds with -lNAME
21733 library_names_spec=$lt_library_names_spec
21735 # The coded name of the library, if different from the real name.
21736 soname_spec=$lt_soname_spec
21738 # Command to use after installation of a shared archive.
21739 postinstall_cmds=$lt_postinstall_cmds
21741 # Command to use after uninstallation of a shared archive.
21742 postuninstall_cmds=$lt_postuninstall_cmds
21744 # Commands used to finish a libtool library installation in a directory.
21745 finish_cmds=$lt_finish_cmds
21747 # As "finish_cmds", except a single script fragment to be evaled but
21748 # not shown.
21749 finish_eval=$lt_finish_eval
21751 # Whether we should hardcode library paths into libraries.
21752 hardcode_into_libs=$hardcode_into_libs
21754 # Compile-time system search path for libraries.
21755 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21757 # Run-time system search path for libraries.
21758 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21760 # Whether dlopen is supported.
21761 dlopen_support=$enable_dlopen
21763 # Whether dlopen of programs is supported.
21764 dlopen_self=$enable_dlopen_self
21766 # Whether dlopen of statically linked programs is supported.
21767 dlopen_self_static=$enable_dlopen_self_static
21769 # Commands to strip libraries.
21770 old_striplib=$lt_old_striplib
21771 striplib=$lt_striplib
21774 # The linker used to build libraries.
21775 LD=$lt_LD
21777 # Commands used to build an old-style archive.
21778 old_archive_cmds=$lt_old_archive_cmds
21780 # A language specific compiler.
21781 CC=$lt_compiler
21783 # Is the compiler the GNU compiler?
21784 with_gcc=$GCC
21786 # Compiler flag to turn off builtin functions.
21787 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21789 # How to pass a linker flag through the compiler.
21790 wl=$lt_lt_prog_compiler_wl
21792 # Additional compiler flags for building library objects.
21793 pic_flag=$lt_lt_prog_compiler_pic
21795 # Compiler flag to prevent dynamic linking.
21796 link_static_flag=$lt_lt_prog_compiler_static
21798 # Does compiler simultaneously support -c and -o options?
21799 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21801 # Whether or not to add -lc for building shared libraries.
21802 build_libtool_need_lc=$archive_cmds_need_lc
21804 # Whether or not to disallow shared libs when runtime libs are static.
21805 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21807 # Compiler flag to allow reflexive dlopens.
21808 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21810 # Compiler flag to generate shared objects directly from archives.
21811 whole_archive_flag_spec=$lt_whole_archive_flag_spec
21813 # Whether the compiler copes with passing no objects directly.
21814 compiler_needs_object=$lt_compiler_needs_object
21816 # Create an old-style archive from a shared archive.
21817 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21819 # Create a temporary old-style archive to link instead of a shared archive.
21820 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21822 # Commands used to build a shared archive.
21823 archive_cmds=$lt_archive_cmds
21824 archive_expsym_cmds=$lt_archive_expsym_cmds
21826 # Commands used to build a loadable module if different from building
21827 # a shared archive.
21828 module_cmds=$lt_module_cmds
21829 module_expsym_cmds=$lt_module_expsym_cmds
21831 # Whether we are building with GNU ld or not.
21832 with_gnu_ld=$lt_with_gnu_ld
21834 # Flag that allows shared libraries with undefined symbols to be built.
21835 allow_undefined_flag=$lt_allow_undefined_flag
21837 # Flag that enforces no undefined symbols.
21838 no_undefined_flag=$lt_no_undefined_flag
21840 # Flag to hardcode \$libdir into a binary during linking.
21841 # This must work even if \$libdir does not exist
21842 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21844 # If ld is used when linking, flag to hardcode \$libdir into a binary
21845 # during linking. This must work even if \$libdir does not exist.
21846 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
21848 # Whether we need a single "-rpath" flag with a separated argument.
21849 hardcode_libdir_separator=$lt_hardcode_libdir_separator
21851 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21852 # DIR into the resulting binary.
21853 hardcode_direct=$hardcode_direct
21855 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21856 # DIR into the resulting binary and the resulting library dependency is
21857 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21858 # library is relocated.
21859 hardcode_direct_absolute=$hardcode_direct_absolute
21861 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21862 # into the resulting binary.
21863 hardcode_minus_L=$hardcode_minus_L
21865 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21866 # into the resulting binary.
21867 hardcode_shlibpath_var=$hardcode_shlibpath_var
21869 # Set to "yes" if building a shared library automatically hardcodes DIR
21870 # into the library and all subsequent libraries and executables linked
21871 # against it.
21872 hardcode_automatic=$hardcode_automatic
21874 # Set to yes if linker adds runtime paths of dependent libraries
21875 # to runtime path list.
21876 inherit_rpath=$inherit_rpath
21878 # Whether libtool must link a program against all its dependency libraries.
21879 link_all_deplibs=$link_all_deplibs
21881 # Fix the shell variable \$srcfile for the compiler.
21882 fix_srcfile_path=$lt_fix_srcfile_path
21884 # Set to "yes" if exported symbols are required.
21885 always_export_symbols=$always_export_symbols
21887 # The commands to list exported symbols.
21888 export_symbols_cmds=$lt_export_symbols_cmds
21890 # Symbols that should not be listed in the preloaded symbols.
21891 exclude_expsyms=$lt_exclude_expsyms
21893 # Symbols that must always be exported.
21894 include_expsyms=$lt_include_expsyms
21896 # Commands necessary for linking programs (against libraries) with templates.
21897 prelink_cmds=$lt_prelink_cmds
21899 # Specify filename containing input files.
21900 file_list_spec=$lt_file_list_spec
21902 # How to hardcode a shared library path into an executable.
21903 hardcode_action=$hardcode_action
21905 # ### END LIBTOOL CONFIG
21907 _LT_EOF
21909 case $host_os in
21910 aix3*)
21911 cat <<\_LT_EOF >> "$cfgfile"
21912 # AIX sometimes has problems with the GCC collect2 program. For some
21913 # reason, if we set the COLLECT_NAMES environment variable, the problems
21914 # vanish in a puff of smoke.
21915 if test "X${COLLECT_NAMES+set}" != Xset; then
21916 COLLECT_NAMES=
21917 export COLLECT_NAMES
21919 _LT_EOF
21921 esac
21924 ltmain="$ac_aux_dir/ltmain.sh"
21927 # We use sed instead of cat because bash on DJGPP gets confused if
21928 # if finds mixed CR/LF and LF-only lines. Since sed operates in
21929 # text mode, it properly converts lines to CR/LF. This bash problem
21930 # is reportedly fixed, but why not run on old versions too?
21931 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
21932 || (rm -f "$cfgfile"; exit 1)
21934 case $xsi_shell in
21935 yes)
21936 cat << \_LT_EOF >> "$cfgfile"
21938 # func_dirname file append nondir_replacement
21939 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
21940 # otherwise set result to NONDIR_REPLACEMENT.
21941 func_dirname ()
21943 case ${1} in
21944 */*) func_dirname_result="${1%/*}${2}" ;;
21945 * ) func_dirname_result="${3}" ;;
21946 esac
21949 # func_basename file
21950 func_basename ()
21952 func_basename_result="${1##*/}"
21955 # func_dirname_and_basename file append nondir_replacement
21956 # perform func_basename and func_dirname in a single function
21957 # call:
21958 # dirname: Compute the dirname of FILE. If nonempty,
21959 # add APPEND to the result, otherwise set result
21960 # to NONDIR_REPLACEMENT.
21961 # value returned in "$func_dirname_result"
21962 # basename: Compute filename of FILE.
21963 # value retuned in "$func_basename_result"
21964 # Implementation must be kept synchronized with func_dirname
21965 # and func_basename. For efficiency, we do not delegate to
21966 # those functions but instead duplicate the functionality here.
21967 func_dirname_and_basename ()
21969 case ${1} in
21970 */*) func_dirname_result="${1%/*}${2}" ;;
21971 * ) func_dirname_result="${3}" ;;
21972 esac
21973 func_basename_result="${1##*/}"
21976 # func_stripname prefix suffix name
21977 # strip PREFIX and SUFFIX off of NAME.
21978 # PREFIX and SUFFIX must not contain globbing or regex special
21979 # characters, hashes, percent signs, but SUFFIX may contain a leading
21980 # dot (in which case that matches only a dot).
21981 func_stripname ()
21983 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
21984 # positional parameters, so assign one to ordinary parameter first.
21985 func_stripname_result=${3}
21986 func_stripname_result=${func_stripname_result#"${1}"}
21987 func_stripname_result=${func_stripname_result%"${2}"}
21990 # func_opt_split
21991 func_opt_split ()
21993 func_opt_split_opt=${1%%=*}
21994 func_opt_split_arg=${1#*=}
21997 # func_lo2o object
21998 func_lo2o ()
22000 case ${1} in
22001 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
22002 *) func_lo2o_result=${1} ;;
22003 esac
22006 # func_xform libobj-or-source
22007 func_xform ()
22009 func_xform_result=${1%.*}.lo
22012 # func_arith arithmetic-term...
22013 func_arith ()
22015 func_arith_result=$(( $* ))
22018 # func_len string
22019 # STRING may not start with a hyphen.
22020 func_len ()
22022 func_len_result=${#1}
22025 _LT_EOF
22027 *) # Bourne compatible functions.
22028 cat << \_LT_EOF >> "$cfgfile"
22030 # func_dirname file append nondir_replacement
22031 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
22032 # otherwise set result to NONDIR_REPLACEMENT.
22033 func_dirname ()
22035 # Extract subdirectory from the argument.
22036 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
22037 if test "X$func_dirname_result" = "X${1}"; then
22038 func_dirname_result="${3}"
22039 else
22040 func_dirname_result="$func_dirname_result${2}"
22044 # func_basename file
22045 func_basename ()
22047 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
22051 # func_stripname prefix suffix name
22052 # strip PREFIX and SUFFIX off of NAME.
22053 # PREFIX and SUFFIX must not contain globbing or regex special
22054 # characters, hashes, percent signs, but SUFFIX may contain a leading
22055 # dot (in which case that matches only a dot).
22056 # func_strip_suffix prefix name
22057 func_stripname ()
22059 case ${2} in
22060 .*) func_stripname_result=`$ECHO "X${3}" \
22061 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
22062 *) func_stripname_result=`$ECHO "X${3}" \
22063 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
22064 esac
22067 # sed scripts:
22068 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
22069 my_sed_long_arg='1s/^-[^=]*=//'
22071 # func_opt_split
22072 func_opt_split ()
22074 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
22075 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
22078 # func_lo2o object
22079 func_lo2o ()
22081 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
22084 # func_xform libobj-or-source
22085 func_xform ()
22087 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
22090 # func_arith arithmetic-term...
22091 func_arith ()
22093 func_arith_result=`expr "$@"`
22096 # func_len string
22097 # STRING may not start with a hyphen.
22098 func_len ()
22100 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
22103 _LT_EOF
22104 esac
22106 case $lt_shell_append in
22107 yes)
22108 cat << \_LT_EOF >> "$cfgfile"
22110 # func_append var value
22111 # Append VALUE to the end of shell variable VAR.
22112 func_append ()
22114 eval "$1+=\$2"
22116 _LT_EOF
22119 cat << \_LT_EOF >> "$cfgfile"
22121 # func_append var value
22122 # Append VALUE to the end of shell variable VAR.
22123 func_append ()
22125 eval "$1=\$$1\$2"
22128 _LT_EOF
22130 esac
22133 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
22134 || (rm -f "$cfgfile"; exit 1)
22136 mv -f "$cfgfile" "$ofile" ||
22137 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22138 chmod +x "$ofile"
22141 "po-directories":C)
22142 for ac_file in $CONFIG_FILES; do
22143 # Support "outfile[:infile[:infile...]]"
22144 case "$ac_file" in
22145 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
22146 esac
22147 # PO directories have a Makefile.in generated from Makefile.in.in.
22148 case "$ac_file" in */Makefile.in)
22149 # Adjust a relative srcdir.
22150 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
22151 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
22152 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
22153 # In autoconf-2.13 it is called $ac_given_srcdir.
22154 # In autoconf-2.50 it is called $srcdir.
22155 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
22156 case "$ac_given_srcdir" in
22157 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
22158 /*) top_srcdir="$ac_given_srcdir" ;;
22159 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
22160 esac
22161 # Treat a directory as a PO directory if and only if it has a
22162 # POTFILES.in file. This allows packages to have multiple PO
22163 # directories under different names or in different locations.
22164 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
22165 rm -f "$ac_dir/POTFILES"
22166 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
22167 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
22168 POMAKEFILEDEPS="POTFILES.in"
22169 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
22170 # on $ac_dir but don't depend on user-specified configuration
22171 # parameters.
22172 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
22173 # The LINGUAS file contains the set of available languages.
22174 if test -n "$OBSOLETE_ALL_LINGUAS"; then
22175 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
22177 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
22178 # Hide the ALL_LINGUAS assigment from automake < 1.5.
22179 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
22180 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
22181 else
22182 # The set of available languages was given in configure.in.
22183 # Hide the ALL_LINGUAS assigment from automake < 1.5.
22184 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
22186 # Compute POFILES
22187 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
22188 # Compute UPDATEPOFILES
22189 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
22190 # Compute DUMMYPOFILES
22191 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
22192 # Compute GMOFILES
22193 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
22194 case "$ac_given_srcdir" in
22195 .) srcdirpre= ;;
22196 *) srcdirpre='$(srcdir)/' ;;
22197 esac
22198 POFILES=
22199 UPDATEPOFILES=
22200 DUMMYPOFILES=
22201 GMOFILES=
22202 for lang in $ALL_LINGUAS; do
22203 POFILES="$POFILES $srcdirpre$lang.po"
22204 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
22205 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
22206 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
22207 done
22208 # CATALOGS depends on both $ac_dir and the user's LINGUAS
22209 # environment variable.
22210 INST_LINGUAS=
22211 if test -n "$ALL_LINGUAS"; then
22212 for presentlang in $ALL_LINGUAS; do
22213 useit=no
22214 if test "%UNSET%" != "$LINGUAS"; then
22215 desiredlanguages="$LINGUAS"
22216 else
22217 desiredlanguages="$ALL_LINGUAS"
22219 for desiredlang in $desiredlanguages; do
22220 # Use the presentlang catalog if desiredlang is
22221 # a. equal to presentlang, or
22222 # b. a variant of presentlang (because in this case,
22223 # presentlang can be used as a fallback for messages
22224 # which are not translated in the desiredlang catalog).
22225 case "$desiredlang" in
22226 "$presentlang"*) useit=yes;;
22227 esac
22228 done
22229 if test $useit = yes; then
22230 INST_LINGUAS="$INST_LINGUAS $presentlang"
22232 done
22234 CATALOGS=
22235 if test -n "$INST_LINGUAS"; then
22236 for lang in $INST_LINGUAS; do
22237 CATALOGS="$CATALOGS $lang.gmo"
22238 done
22240 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
22241 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"
22242 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
22243 if test -f "$f"; then
22244 case "$f" in
22245 *.orig | *.bak | *~) ;;
22246 *) cat "$f" >> "$ac_dir/Makefile" ;;
22247 esac
22249 done
22252 esac
22253 done ;;
22255 esac
22256 done # for ac_tag
22259 as_fn_exit 0
22260 _ACEOF
22261 ac_clean_files=$ac_clean_files_save
22263 test $ac_write_fail = 0 ||
22264 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22267 # configure is writing to config.log, and then calls config.status.
22268 # config.status does its own redirection, appending to config.log.
22269 # Unfortunately, on DOS this fails, as config.log is still kept open
22270 # by configure, so config.status won't be able to write to it; its
22271 # output is simply discarded. So we exec the FD to /dev/null,
22272 # effectively closing config.log, so it can be properly (re)opened and
22273 # appended to by config.status. When coming back to configure, we
22274 # need to make the FD available again.
22275 if test "$no_create" != yes; then
22276 ac_cs_success=:
22277 ac_config_status_args=
22278 test "$silent" = yes &&
22279 ac_config_status_args="$ac_config_status_args --quiet"
22280 exec 5>/dev/null
22281 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22282 exec 5>>config.log
22283 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22284 # would make configure fail if this is the last instruction.
22285 $ac_cs_success || as_fn_exit 1
22287 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22288 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22289 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}