Imported Upstream version 0.63.0
[hcoop/debian/courier-authlib.git] / configure
CommitLineData
d9898ee8 1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
8d138742 3# Generated by GNU Autoconf 2.63 for courier-authlib 0.63.0.
d9898ee8 4#
8d138742 5# Report bugs to <courier-users@lists.sourceforge.net>.
d9898ee8 6#
dd184caf 7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8d138742 8# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
d9898ee8 9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## --------------------- ##
12## M4sh Initialization. ##
13## --------------------- ##
14
dd184caf 15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
d9898ee8 17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 emulate sh
19 NULLCMD=:
8d138742 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
d9898ee8 21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
dd184caf 23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
27esac
28
29fi
30
31
32
33
34# PATH needs CR
35# Avoid depending upon Character Ranges.
36as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39as_cr_digits='0123456789'
40as_cr_alnum=$as_cr_Letters$as_cr_digits
41
8d138742
CE
42as_nl='
43'
44export as_nl
45# Printing a long string crashes Solaris 7 /usr/bin/printf.
46as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
dd184caf 56 else
8d138742
CE
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
dd184caf 69 fi
8d138742
CE
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
d9898ee8 81fi
d9898ee8 82
83# Support unset when possible.
84if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
85 as_unset=unset
86else
87 as_unset=false
88fi
89
90
dd184caf 91# IFS
92# We need space, tab and new line, in precisely that order. Quoting is
93# there to prevent editors from complaining about space-tab.
94# (If _AS_PATH_WALK were called with IFS unset, it would disable word
95# splitting by setting IFS to empty value.)
dd184caf 96IFS=" "" $as_nl"
97
98# Find who we are. Look in the path if we contain no directory separator.
99case $0 in
100 *[\\/]* ) as_myself=$0 ;;
101 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
102for as_dir in $PATH
103do
104 IFS=$as_save_IFS
105 test -z "$as_dir" && as_dir=.
106 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107done
108IFS=$as_save_IFS
109
110 ;;
111esac
112# We did not find ourselves, most probably we were run as `sh COMMAND'
113# in which case we are not to be found in the path.
114if test "x$as_myself" = x; then
115 as_myself=$0
116fi
117if test ! -f "$as_myself"; then
8d138742 118 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
dd184caf 119 { (exit 1); exit 1; }
120fi
121
d9898ee8 122# Work around bugs in pre-3.0 UWIN ksh.
dd184caf 123for as_var in ENV MAIL MAILPATH
124do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
125done
d9898ee8 126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
8d138742
CE
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
d9898ee8 135
136# Required to use basename.
dd184caf 137if expr a : '\(a\)' >/dev/null 2>&1 &&
138 test "X`expr 00001 : '.*\(...\)'`" = X001; then
d9898ee8 139 as_expr=expr
140else
141 as_expr=false
142fi
143
dd184caf 144if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
d9898ee8 145 as_basename=basename
146else
147 as_basename=false
148fi
149
150
151# Name of the executable.
dd184caf 152as_me=`$as_basename -- "$0" ||
d9898ee8 153$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
154 X"$0" : 'X\(//\)$' \| \
dd184caf 155 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8d138742 156$as_echo X/"$0" |
dd184caf 157 sed '/^.*\/\([^/][^/]*\)\/*$/{
158 s//\1/
159 q
160 }
161 /^X\/\(\/\/\)$/{
162 s//\1/
163 q
164 }
165 /^X\/\(\/\).*/{
166 s//\1/
167 q
168 }
169 s/.*/./; q'`
d9898ee8 170
dd184caf 171# CDPATH.
172$as_unset CDPATH
d9898ee8 173
d9898ee8 174
dd184caf 175if test "x$CONFIG_SHELL" = x; then
176 if (eval ":") 2>/dev/null; then
177 as_have_required=yes
178else
179 as_have_required=no
d9898ee8 180fi
181
8d138742 182 if test $as_have_required = yes && (eval ":
dd184caf 183(as_func_return () {
184 (exit \$1)
185}
186as_func_success () {
187 as_func_return 0
188}
189as_func_failure () {
190 as_func_return 1
191}
192as_func_ret_success () {
193 return 0
194}
195as_func_ret_failure () {
196 return 1
197}
d9898ee8 198
dd184caf 199exitcode=0
200if as_func_success; then
201 :
202else
203 exitcode=1
204 echo as_func_success failed.
205fi
d9898ee8 206
dd184caf 207if as_func_failure; then
208 exitcode=1
209 echo as_func_failure succeeded.
210fi
211
212if as_func_ret_success; then
213 :
214else
215 exitcode=1
216 echo as_func_ret_success failed.
217fi
218
219if as_func_ret_failure; then
220 exitcode=1
221 echo as_func_ret_failure succeeded.
222fi
223
224if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
225 :
226else
227 exitcode=1
228 echo positional parameters were not saved.
229fi
230
231test \$exitcode = 0) || { (exit 1); exit 1; }
232
233(
234 as_lineno_1=\$LINENO
235 as_lineno_2=\$LINENO
236 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
237 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
238") 2> /dev/null; then
239 :
240else
241 as_candidate_shells=
d9898ee8 242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
243for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
244do
245 IFS=$as_save_IFS
246 test -z "$as_dir" && as_dir=.
dd184caf 247 case $as_dir in
d9898ee8 248 /*)
dd184caf 249 for as_base in sh bash ksh sh5; do
250 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
251 done;;
252 esac
253done
254IFS=$as_save_IFS
255
256
257 for as_shell in $as_candidate_shells $SHELL; do
258 # Try only shells that exist, to save several forks.
259 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
260 { ("$as_shell") 2> /dev/null <<\_ASEOF
261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
8d138742 264 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
dd184caf 265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271esac
272
273fi
274
275
276:
277_ASEOF
278}; then
279 CONFIG_SHELL=$as_shell
280 as_have_required=yes
281 if { "$as_shell" 2> /dev/null <<\_ASEOF
282if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283 emulate sh
284 NULLCMD=:
8d138742 285 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
dd184caf 286 # is contrary to our usage. Disable this feature.
287 alias -g '${1+"$@"}'='"$@"'
288 setopt NO_GLOB_SUBST
289else
290 case `(set -o) 2>/dev/null` in
291 *posix*) set -o posix ;;
292esac
293
294fi
295
296
297:
298(as_func_return () {
299 (exit $1)
300}
301as_func_success () {
302 as_func_return 0
303}
304as_func_failure () {
305 as_func_return 1
306}
307as_func_ret_success () {
308 return 0
309}
310as_func_ret_failure () {
311 return 1
312}
313
314exitcode=0
315if as_func_success; then
316 :
317else
318 exitcode=1
319 echo as_func_success failed.
320fi
321
322if as_func_failure; then
323 exitcode=1
324 echo as_func_failure succeeded.
325fi
326
327if as_func_ret_success; then
328 :
329else
330 exitcode=1
331 echo as_func_ret_success failed.
332fi
333
334if as_func_ret_failure; then
335 exitcode=1
336 echo as_func_ret_failure succeeded.
337fi
338
339if ( set x; as_func_ret_success y && test x = "$1" ); then
340 :
341else
342 exitcode=1
343 echo positional parameters were not saved.
344fi
345
346test $exitcode = 0) || { (exit 1); exit 1; }
347
348(
d9898ee8 349 as_lineno_1=$LINENO
350 as_lineno_2=$LINENO
d9898ee8 351 test "x$as_lineno_1" != "x$as_lineno_2" &&
dd184caf 352 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
353
354_ASEOF
355}; then
356 break
357fi
358
359fi
360
361 done
362
363 if test "x$CONFIG_SHELL" != x; then
364 for as_var in BASH_ENV ENV
8d138742
CE
365 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366 done
367 export CONFIG_SHELL
368 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
dd184caf 369fi
370
371
372 if test $as_have_required = no; then
373 echo This script requires a shell more modern than all the
374 echo shells that I found on your system. Please install a
375 echo modern shell, or manually run the script under such a
376 echo shell if you do have one.
377 { (exit 1); exit 1; }
378fi
379
380
381fi
382
383fi
384
385
386
387(eval "as_func_return () {
388 (exit \$1)
389}
390as_func_success () {
391 as_func_return 0
392}
393as_func_failure () {
394 as_func_return 1
395}
396as_func_ret_success () {
397 return 0
398}
399as_func_ret_failure () {
400 return 1
401}
402
403exitcode=0
404if as_func_success; then
405 :
406else
407 exitcode=1
408 echo as_func_success failed.
409fi
410
411if as_func_failure; then
412 exitcode=1
413 echo as_func_failure succeeded.
414fi
415
416if as_func_ret_success; then
417 :
418else
419 exitcode=1
420 echo as_func_ret_success failed.
421fi
422
423if as_func_ret_failure; then
424 exitcode=1
425 echo as_func_ret_failure succeeded.
426fi
427
428if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
429 :
430else
431 exitcode=1
432 echo positional parameters were not saved.
433fi
434
435test \$exitcode = 0") || {
436 echo No shell found that supports shell functions.
8d138742
CE
437 echo Please tell bug-autoconf@gnu.org about your system,
438 echo including any error possibly output before this message.
439 echo This can help us improve future autoconf versions.
440 echo Configuration will now proceed without shell functions.
dd184caf 441}
442
443
444
445 as_lineno_1=$LINENO
446 as_lineno_2=$LINENO
447 test "x$as_lineno_1" != "x$as_lineno_2" &&
448 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
d9898ee8 449
450 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
451 # uniformly replaced by the line number. The first 'sed' inserts a
dd184caf 452 # line-number line after each line using $LINENO; the second 'sed'
453 # does the real work. The second script uses 'N' to pair each
454 # line-number line with the line containing $LINENO, and appends
455 # trailing '-' during substitution so that $LINENO is not a special
456 # case at line end.
d9898ee8 457 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
dd184caf 458 # scripts with optimization help from Paolo Bonzini. Blame Lee
459 # E. McMahon (1931-1989) for sed's syntax. :-)
460 sed -n '
461 p
462 /[$]LINENO/=
463 ' <$as_myself |
d9898ee8 464 sed '
dd184caf 465 s/[$]LINENO.*/&-/
466 t lineno
467 b
468 :lineno
d9898ee8 469 N
dd184caf 470 :loop
471 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
d9898ee8 472 t loop
dd184caf 473 s/-\n.*//
d9898ee8 474 ' >$as_me.lineno &&
dd184caf 475 chmod +x "$as_me.lineno" ||
8d138742 476 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
d9898ee8 477 { (exit 1); exit 1; }; }
478
479 # Don't try to exec as it changes $[0], causing all sort of problems
480 # (the dirname of $[0] is not the place where we might find the
dd184caf 481 # original and so on. Autoconf is especially sensitive to this).
482 . "./$as_me.lineno"
d9898ee8 483 # Exit status is that of the last command.
484 exit
485}
486
487
dd184caf 488if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
489 as_dirname=dirname
490else
491 as_dirname=false
492fi
493
494ECHO_C= ECHO_N= ECHO_T=
495case `echo -n x` in
496-n*)
497 case `echo 'x\c'` in
498 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
499 *) ECHO_C='\c';;
500 esac;;
501*)
502 ECHO_N='-n';;
d9898ee8 503esac
dd184caf 504if expr a : '\(a\)' >/dev/null 2>&1 &&
505 test "X`expr 00001 : '.*\(...\)'`" = X001; then
d9898ee8 506 as_expr=expr
507else
508 as_expr=false
509fi
510
511rm -f conf$$ conf$$.exe conf$$.file
dd184caf 512if test -d conf$$.dir; then
513 rm -f conf$$.dir/conf$$.file
514else
515 rm -f conf$$.dir
8d138742
CE
516 mkdir conf$$.dir 2>/dev/null
517fi
518if (echo >conf$$.file) 2>/dev/null; then
519 if ln -s conf$$.file conf$$ 2>/dev/null; then
520 as_ln_s='ln -s'
521 # ... but there are two gotchas:
522 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
523 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
524 # In both cases, we have to default to `cp -p'.
525 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
526 as_ln_s='cp -p'
527 elif ln conf$$.file conf$$ 2>/dev/null; then
528 as_ln_s=ln
529 else
d9898ee8 530 as_ln_s='cp -p'
8d138742 531 fi
d9898ee8 532else
533 as_ln_s='cp -p'
534fi
dd184caf 535rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
536rmdir conf$$.dir 2>/dev/null
d9898ee8 537
538if mkdir -p . 2>/dev/null; then
539 as_mkdir_p=:
540else
541 test -d ./-p && rmdir ./-p
542 as_mkdir_p=false
543fi
544
dd184caf 545if test -x / >/dev/null 2>&1; then
546 as_test_x='test -x'
547else
548 if ls -dL / >/dev/null 2>&1; then
549 as_ls_L_option=L
550 else
551 as_ls_L_option=
552 fi
553 as_test_x='
554 eval sh -c '\''
555 if test -d "$1"; then
8d138742 556 test -d "$1/.";
dd184caf 557 else
558 case $1 in
8d138742 559 -*)set "./$1";;
dd184caf 560 esac;
561 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
562 ???[sx]*):;;*)false;;esac;fi
563 '\'' sh
564 '
565fi
566as_executable_p=$as_test_x
d9898ee8 567
568# Sed expression to map a string onto a valid CPP name.
569as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
570
571# Sed expression to map a string onto a valid variable name.
572as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
573
574
d9898ee8 575
8d138742
CE
576lt_ltdl_dir='libltdl'
577
d9898ee8 578
579# Check that we are running under the correct shell.
580SHELL=${CONFIG_SHELL-/bin/sh}
581
8d138742 582case X$lt_ECHO in
d9898ee8 583X*--fallback-echo)
584 # Remove one level of quotation (which was required for Make).
8d138742 585 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
d9898ee8 586 ;;
587esac
588
8d138742 589ECHO=${lt_ECHO-echo}
d9898ee8 590if test "X$1" = X--no-reexec; then
591 # Discard the --no-reexec flag, and continue.
592 shift
593elif test "X$1" = X--fallback-echo; then
594 # Avoid inline document here, it may be left over
595 :
8d138742
CE
596elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
597 # Yippee, $ECHO works!
d9898ee8 598 :
599else
600 # Restart under the correct shell.
601 exec $SHELL "$0" --no-reexec ${1+"$@"}
602fi
603
604if test "X$1" = X--fallback-echo; then
605 # used as fallback echo
606 shift
8d138742 607 cat <<_LT_EOF
d9898ee8 608$*
8d138742 609_LT_EOF
d9898ee8 610 exit 0
611fi
612
613# The HP-UX ksh and POSIX shell print the target directory to stdout
614# if CDPATH is set.
615(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
616
8d138742
CE
617if test -z "$lt_ECHO"; then
618 if test "X${echo_test_string+set}" != Xset; then
619 # find a string as large as possible, as long as the shell can cope with it
620 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
621 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
622 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
623 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
624 then
625 break
626 fi
627 done
628 fi
d9898ee8 629
8d138742
CE
630 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
631 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
632 test "X$echo_testing_string" = "X$echo_test_string"; then
633 :
634 else
635 # The Solaris, AIX, and Digital Unix default echo programs unquote
636 # backslashes. This makes it impossible to quote backslashes using
637 # echo "$something" | sed 's/\\/\\\\/g'
638 #
639 # So, first we look for a working echo in the user's PATH.
d9898ee8 640
8d138742
CE
641 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
642 for dir in $PATH /usr/ucb; do
643 IFS="$lt_save_ifs"
644 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
645 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
646 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
647 test "X$echo_testing_string" = "X$echo_test_string"; then
648 ECHO="$dir/echo"
649 break
650 fi
651 done
d9898ee8 652 IFS="$lt_save_ifs"
d9898ee8 653
8d138742
CE
654 if test "X$ECHO" = Xecho; then
655 # We didn't find a better echo, so look for alternatives.
656 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
657 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
658 test "X$echo_testing_string" = "X$echo_test_string"; then
659 # This shell has a builtin print -r that does the trick.
660 ECHO='print -r'
661 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
662 test "X$CONFIG_SHELL" != X/bin/ksh; then
663 # If we have ksh, try running configure again with it.
664 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
665 export ORIGINAL_CONFIG_SHELL
666 CONFIG_SHELL=/bin/ksh
667 export CONFIG_SHELL
668 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
d9898ee8 669 else
8d138742
CE
670 # Try using printf.
671 ECHO='printf %s\n'
672 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
673 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
674 test "X$echo_testing_string" = "X$echo_test_string"; then
675 # Cool, printf works
676 :
677 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
678 test "X$echo_testing_string" = 'X\t' &&
679 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
680 test "X$echo_testing_string" = "X$echo_test_string"; then
681 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
682 export CONFIG_SHELL
683 SHELL="$CONFIG_SHELL"
684 export SHELL
685 ECHO="$CONFIG_SHELL $0 --fallback-echo"
686 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
687 test "X$echo_testing_string" = 'X\t' &&
688 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
689 test "X$echo_testing_string" = "X$echo_test_string"; then
690 ECHO="$CONFIG_SHELL $0 --fallback-echo"
691 else
692 # maybe with a smaller string...
693 prev=:
d9898ee8 694
8d138742
CE
695 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
696 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
697 then
698 break
699 fi
700 prev="$cmd"
701 done
d9898ee8 702
8d138742
CE
703 if test "$prev" != 'sed 50q "$0"'; then
704 echo_test_string=`eval $prev`
705 export echo_test_string
706 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
707 else
708 # Oops. We lost completely, so just stick with echo.
709 ECHO=echo
710 fi
711 fi
d9898ee8 712 fi
713 fi
714 fi
715fi
d9898ee8 716
717# Copy echo and quote the copy suitably for passing to libtool from
718# the Makefile, instead of quoting the original, which is used later.
8d138742
CE
719lt_ECHO=$ECHO
720if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
721 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
d9898ee8 722fi
723
724
725
726
8d138742 727lt_dlopen_dir="$lt_ltdl_dir"
d9898ee8 728
dd184caf 729exec 7<&0 </dev/null 6>&1
730
d9898ee8 731# Name of the host.
732# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
733# so uname gets run too.
734ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
735
d9898ee8 736#
737# Initializations.
738#
739ac_default_prefix=/usr/local
dd184caf 740ac_clean_files=
d9898ee8 741ac_config_libobj_dir=.
dd184caf 742LIBOBJS=
d9898ee8 743cross_compiling=no
744subdirs=
745MFLAGS=
746MAKEFLAGS=
747SHELL=${CONFIG_SHELL-/bin/sh}
748
d9898ee8 749# Identity of this package.
750PACKAGE_NAME='courier-authlib'
751PACKAGE_TARNAME='courier-authlib'
8d138742
CE
752PACKAGE_VERSION='0.63.0'
753PACKAGE_STRING='courier-authlib 0.63.0'
754PACKAGE_BUGREPORT='courier-users@lists.sourceforge.net'
d9898ee8 755
756ac_unique_file="courierauth.h"
757# Factoring default headers for most tests.
758ac_includes_default="\
759#include <stdio.h>
dd184caf 760#ifdef HAVE_SYS_TYPES_H
d9898ee8 761# include <sys/types.h>
762#endif
dd184caf 763#ifdef HAVE_SYS_STAT_H
d9898ee8 764# include <sys/stat.h>
765#endif
dd184caf 766#ifdef STDC_HEADERS
d9898ee8 767# include <stdlib.h>
768# include <stddef.h>
769#else
dd184caf 770# ifdef HAVE_STDLIB_H
d9898ee8 771# include <stdlib.h>
772# endif
773#endif
dd184caf 774#ifdef HAVE_STRING_H
775# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
d9898ee8 776# include <memory.h>
777# endif
778# include <string.h>
779#endif
dd184caf 780#ifdef HAVE_STRINGS_H
d9898ee8 781# include <strings.h>
782#endif
dd184caf 783#ifdef HAVE_INTTYPES_H
d9898ee8 784# include <inttypes.h>
d9898ee8 785#endif
dd184caf 786#ifdef HAVE_STDINT_H
787# include <stdint.h>
788#endif
789#ifdef HAVE_UNISTD_H
d9898ee8 790# include <unistd.h>
791#endif"
792
8d138742
CE
793enable_option_checking=no
794ac_subst_vars='ltdl_LTLIBOBJS
795ltdl_LIBOBJS
796am__EXEEXT_FALSE
797am__EXEEXT_TRUE
798LTLIBOBJS
799LIBOBJS
800HAVE_SGML_FALSE
801HAVE_SGML_TRUE
802REPOSITORY
803mailgroup
804mailuser
805LIBM
806authdaemonvar
807authdaemonrc
808CRYPTLIBS
809LIBAUTHPIPE
810HAVE_PIPE_FALSE
811HAVE_PIPE_TRUE
812authProg
813LIBAUTHCUSTOM
814HAVE_CUSTOM_FALSE
815HAVE_CUSTOM_TRUE
816HAVE_AUTHMYSQL_FALSE
817HAVE_AUTHMYSQL_TRUE
818MYSQL_LIBS
819LIBAUTHMYSQL
820MYSQL_CONFIG
821authmysqlrc
822HAVE_AUTHPGSQL_FALSE
823HAVE_AUTHPGSQL_TRUE
824LIBAUTHPGSQL
825PGSQL_LIBS
826PG_CONFIG
827authpgsqlrc
828LIBAUTHPWD
829LIBAUTHSHADOW
830SHADOWLIBS
831HAVE_LDAP_FALSE
832HAVE_LDAP_TRUE
833LIBAUTHLDAP
834LDAPLIBS
835authldaprc
836LIBAUTHPAM
837AUTHPAMCRYPT
838LIBDL
839userdb
840LIBAUTHUSERDB
841LIBDB
842LIBGDBM
843dblibrary
844USE_DB
845USE_GDBM
846NETLIBS
847PASSWD
848EXPECT
849COURIERCONFIG
850PERL
851LTDLOPEN
852LT_CONFIG_H
853subdirs
854CONVENIENCE_LTDL_FALSE
855CONVENIENCE_LTDL_TRUE
856INSTALL_LTDL_FALSE
857INSTALL_LTDL_TRUE
858ARGZ_H
859sys_symbol_underscore
860LIBADD_DL
861LT_DLPREOPEN
862LIBADD_DLD_LINK
863LIBADD_SHL_LOAD
864LIBADD_DLOPEN
865LT_DLLOADERS
866INCLTDL
867LTDLINCL
868LTDLDEPS
869LIBLTDL
870OTOOL64
871OTOOL
872LIPO
873NMEDIT
874DSYMUTIL
875lt_ECHO
876RANLIB
877AR
878OBJDUMP
879NM
880ac_ct_DUMPBIN
881DUMPBIN
882LD
883FGREP
884EGREP
885GREP
886SED
887host_os
888host_vendor
889host_cpu
890host
891build_os
892build_vendor
893build_cpu
894build
895LIBTOOL
896SYSCONFTOOL
897SYSCONFTOOL_PERL
898LN_S
899CPP
900am__fastdepCC_FALSE
901am__fastdepCC_TRUE
902CCDEPMODE
903AMDEPBACKSLASH
904AMDEP_FALSE
905AMDEP_TRUE
906am__quote
907am__include
908DEPDIR
909OBJEXT
910EXEEXT
911ac_ct_CC
912CPPFLAGS
913LDFLAGS
914CFLAGS
915CC
916am__untar
917am__tar
918AMTAR
919am__leading_dot
920SET_MAKE
921AWK
922mkdir_p
923MKDIR_P
924INSTALL_STRIP_PROGRAM
925STRIP
926install_sh
927MAKEINFO
928AUTOHEADER
929AUTOMAKE
930AUTOCONF
931ACLOCAL
932VERSION
933PACKAGE
934CYGPATH_W
935am__isrc
936INSTALL_DATA
937INSTALL_SCRIPT
938INSTALL_PROGRAM
939target_alias
940host_alias
dd184caf 941build_alias
8d138742
CE
942LIBS
943ECHO_T
944ECHO_N
945ECHO_C
946DEFS
947mandir
948localedir
949libdir
950psdir
951pdfdir
952dvidir
953htmldir
954infodir
955docdir
956oldincludedir
957includedir
958localstatedir
959sharedstatedir
960sysconfdir
961datadir
962datarootdir
963libexecdir
964sbindir
965bindir
966program_transform_name
967prefix
968exec_prefix
969PACKAGE_BUGREPORT
970PACKAGE_STRING
971PACKAGE_VERSION
972PACKAGE_TARNAME
973PACKAGE_NAME
974PATH_SEPARATOR
975SHELL'
976ac_subst_files=''
977ac_user_opts='
978enable_option_checking
979enable_dependency_tracking
980enable_shared
981enable_static
982with_pic
983enable_fast_install
984with_gnu_ld
985enable_libtool_lock
986with_included_ltdl
987with_ltdl_include
988with_ltdl_lib
989enable_ltdl_install
990with_redhat
991with_pkgconfdir
992with_db
993with_authuserdb
994with_makedatprog
995with_userdb
996with_authpam
997with_authpam_libraries
998with_authldap
999with_authldaprc
1000with_authpwd
1001with_authshadow
1002with_authpgsqlrc
1003with_authpgsql
1004with_pgsql_libs
1005with_pgsql_includes
1006with_authmysqlrc
1007with_authmysql
1008with_mysql_libs
1009with_mysql_includes
1010with_authcustom
1011with_pipeprog
1012with_authpipe
1013with_authdaemonrc
1014with_authdaemonvar
1015with_mailuser
1016with_mailgroup
1017with_stdheaderdir
1018with_repository
1019'
1020 ac_precious_vars='build_alias
dd184caf 1021host_alias
1022target_alias
1023CC
1024CFLAGS
1025LDFLAGS
1026LIBS
1027CPPFLAGS
8d138742
CE
1028CPP'
1029ac_subdirs_all='libltdl
1030bdbobj gdbmobj md5 sha1 libhmac numlib makedat userdb unicode rfc822 random128 liblock liblog'
d9898ee8 1031
1032# Initialize some variables set by options.
1033ac_init_help=
1034ac_init_version=false
8d138742
CE
1035ac_unrecognized_opts=
1036ac_unrecognized_sep=
d9898ee8 1037# The variables have the same names as the options, with
1038# dashes changed to underlines.
1039cache_file=/dev/null
1040exec_prefix=NONE
1041no_create=
1042no_recursion=
1043prefix=NONE
1044program_prefix=NONE
1045program_suffix=NONE
1046program_transform_name=s,x,x,
1047silent=
1048site=
1049srcdir=
1050verbose=
1051x_includes=NONE
1052x_libraries=NONE
1053
1054# Installation directory options.
1055# These are left unexpanded so users can "make install exec_prefix=/foo"
1056# and all the variables that are supposed to be based on exec_prefix
1057# by default will actually change.
1058# Use braces instead of parens because sh, perl, etc. also accept them.
dd184caf 1059# (The list follows the same order as the GNU Coding Standards.)
d9898ee8 1060bindir='${exec_prefix}/bin'
1061sbindir='${exec_prefix}/sbin'
1062libexecdir='${exec_prefix}/libexec'
dd184caf 1063datarootdir='${prefix}/share'
1064datadir='${datarootdir}'
d9898ee8 1065sysconfdir='${prefix}/etc'
1066sharedstatedir='${prefix}/com'
1067localstatedir='${prefix}/var'
d9898ee8 1068includedir='${prefix}/include'
1069oldincludedir='/usr/include'
dd184caf 1070docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1071infodir='${datarootdir}/info'
1072htmldir='${docdir}'
1073dvidir='${docdir}'
1074pdfdir='${docdir}'
1075psdir='${docdir}'
1076libdir='${exec_prefix}/lib'
1077localedir='${datarootdir}/locale'
1078mandir='${datarootdir}/man'
d9898ee8 1079
1080ac_prev=
dd184caf 1081ac_dashdash=
d9898ee8 1082for ac_option
1083do
1084 # If the previous option needs an argument, assign it.
1085 if test -n "$ac_prev"; then
dd184caf 1086 eval $ac_prev=\$ac_option
d9898ee8 1087 ac_prev=
1088 continue
1089 fi
1090
dd184caf 1091 case $ac_option in
1092 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1093 *) ac_optarg=yes ;;
1094 esac
d9898ee8 1095
1096 # Accept the important Cygnus configure options, so we can diagnose typos.
1097
dd184caf 1098 case $ac_dashdash$ac_option in
1099 --)
1100 ac_dashdash=yes ;;
d9898ee8 1101
1102 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1103 ac_prev=bindir ;;
1104 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1105 bindir=$ac_optarg ;;
1106
1107 -build | --build | --buil | --bui | --bu)
1108 ac_prev=build_alias ;;
1109 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1110 build_alias=$ac_optarg ;;
1111
1112 -cache-file | --cache-file | --cache-fil | --cache-fi \
1113 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1114 ac_prev=cache_file ;;
1115 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1116 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1117 cache_file=$ac_optarg ;;
1118
1119 --config-cache | -C)
1120 cache_file=config.cache ;;
1121
dd184caf 1122 -datadir | --datadir | --datadi | --datad)
d9898ee8 1123 ac_prev=datadir ;;
dd184caf 1124 -datadir=* | --datadir=* | --datadi=* | --datad=*)
d9898ee8 1125 datadir=$ac_optarg ;;
1126
dd184caf 1127 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1128 | --dataroo | --dataro | --datar)
1129 ac_prev=datarootdir ;;
1130 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1131 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1132 datarootdir=$ac_optarg ;;
1133
d9898ee8 1134 -disable-* | --disable-*)
8d138742 1135 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
d9898ee8 1136 # Reject names that are not valid shell variable names.
8d138742
CE
1137 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1138 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
d9898ee8 1139 { (exit 1); exit 1; }; }
8d138742
CE
1140 ac_useropt_orig=$ac_useropt
1141 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1142 case $ac_user_opts in
1143 *"
1144"enable_$ac_useropt"
1145"*) ;;
1146 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1147 ac_unrecognized_sep=', ';;
1148 esac
1149 eval enable_$ac_useropt=no ;;
dd184caf 1150
1151 -docdir | --docdir | --docdi | --doc | --do)
1152 ac_prev=docdir ;;
1153 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1154 docdir=$ac_optarg ;;
1155
1156 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1157 ac_prev=dvidir ;;
1158 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1159 dvidir=$ac_optarg ;;
d9898ee8 1160
1161 -enable-* | --enable-*)
8d138742 1162 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
d9898ee8 1163 # Reject names that are not valid shell variable names.
8d138742
CE
1164 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1165 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
d9898ee8 1166 { (exit 1); exit 1; }; }
8d138742
CE
1167 ac_useropt_orig=$ac_useropt
1168 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1169 case $ac_user_opts in
1170 *"
1171"enable_$ac_useropt"
1172"*) ;;
1173 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1174 ac_unrecognized_sep=', ';;
1175 esac
1176 eval enable_$ac_useropt=\$ac_optarg ;;
d9898ee8 1177
1178 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1179 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1180 | --exec | --exe | --ex)
1181 ac_prev=exec_prefix ;;
1182 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1183 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1184 | --exec=* | --exe=* | --ex=*)
1185 exec_prefix=$ac_optarg ;;
1186
1187 -gas | --gas | --ga | --g)
1188 # Obsolete; use --with-gas.
1189 with_gas=yes ;;
1190
1191 -help | --help | --hel | --he | -h)
1192 ac_init_help=long ;;
1193 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1194 ac_init_help=recursive ;;
1195 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1196 ac_init_help=short ;;
1197
1198 -host | --host | --hos | --ho)
1199 ac_prev=host_alias ;;
1200 -host=* | --host=* | --hos=* | --ho=*)
1201 host_alias=$ac_optarg ;;
1202
dd184caf 1203 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1204 ac_prev=htmldir ;;
1205 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1206 | --ht=*)
1207 htmldir=$ac_optarg ;;
1208
d9898ee8 1209 -includedir | --includedir | --includedi | --included | --include \
1210 | --includ | --inclu | --incl | --inc)
1211 ac_prev=includedir ;;
1212 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1213 | --includ=* | --inclu=* | --incl=* | --inc=*)
1214 includedir=$ac_optarg ;;
1215
1216 -infodir | --infodir | --infodi | --infod | --info | --inf)
1217 ac_prev=infodir ;;
1218 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1219 infodir=$ac_optarg ;;
1220
1221 -libdir | --libdir | --libdi | --libd)
1222 ac_prev=libdir ;;
1223 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1224 libdir=$ac_optarg ;;
1225
1226 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1227 | --libexe | --libex | --libe)
1228 ac_prev=libexecdir ;;
1229 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1230 | --libexe=* | --libex=* | --libe=*)
1231 libexecdir=$ac_optarg ;;
1232
dd184caf 1233 -localedir | --localedir | --localedi | --localed | --locale)
1234 ac_prev=localedir ;;
1235 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1236 localedir=$ac_optarg ;;
1237
d9898ee8 1238 -localstatedir | --localstatedir | --localstatedi | --localstated \
dd184caf 1239 | --localstate | --localstat | --localsta | --localst | --locals)
d9898ee8 1240 ac_prev=localstatedir ;;
1241 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
dd184caf 1242 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
d9898ee8 1243 localstatedir=$ac_optarg ;;
1244
1245 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1246 ac_prev=mandir ;;
1247 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1248 mandir=$ac_optarg ;;
1249
1250 -nfp | --nfp | --nf)
1251 # Obsolete; use --without-fp.
1252 with_fp=no ;;
1253
1254 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1255 | --no-cr | --no-c | -n)
1256 no_create=yes ;;
1257
1258 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1259 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1260 no_recursion=yes ;;
1261
1262 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1263 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1264 | --oldin | --oldi | --old | --ol | --o)
1265 ac_prev=oldincludedir ;;
1266 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1267 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1268 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1269 oldincludedir=$ac_optarg ;;
1270
1271 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1272 ac_prev=prefix ;;
1273 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1274 prefix=$ac_optarg ;;
1275
1276 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1277 | --program-pre | --program-pr | --program-p)
1278 ac_prev=program_prefix ;;
1279 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1280 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1281 program_prefix=$ac_optarg ;;
1282
1283 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1284 | --program-suf | --program-su | --program-s)
1285 ac_prev=program_suffix ;;
1286 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1287 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1288 program_suffix=$ac_optarg ;;
1289
1290 -program-transform-name | --program-transform-name \
1291 | --program-transform-nam | --program-transform-na \
1292 | --program-transform-n | --program-transform- \
1293 | --program-transform | --program-transfor \
1294 | --program-transfo | --program-transf \
1295 | --program-trans | --program-tran \
1296 | --progr-tra | --program-tr | --program-t)
1297 ac_prev=program_transform_name ;;
1298 -program-transform-name=* | --program-transform-name=* \
1299 | --program-transform-nam=* | --program-transform-na=* \
1300 | --program-transform-n=* | --program-transform-=* \
1301 | --program-transform=* | --program-transfor=* \
1302 | --program-transfo=* | --program-transf=* \
1303 | --program-trans=* | --program-tran=* \
1304 | --progr-tra=* | --program-tr=* | --program-t=*)
1305 program_transform_name=$ac_optarg ;;
1306
dd184caf 1307 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1308 ac_prev=pdfdir ;;
1309 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1310 pdfdir=$ac_optarg ;;
1311
1312 -psdir | --psdir | --psdi | --psd | --ps)
1313 ac_prev=psdir ;;
1314 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1315 psdir=$ac_optarg ;;
1316
d9898ee8 1317 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1318 | -silent | --silent | --silen | --sile | --sil)
1319 silent=yes ;;
1320
1321 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1322 ac_prev=sbindir ;;
1323 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1324 | --sbi=* | --sb=*)
1325 sbindir=$ac_optarg ;;
1326
1327 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1328 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1329 | --sharedst | --shareds | --shared | --share | --shar \
1330 | --sha | --sh)
1331 ac_prev=sharedstatedir ;;
1332 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1333 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1334 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1335 | --sha=* | --sh=*)
1336 sharedstatedir=$ac_optarg ;;
1337
1338 -site | --site | --sit)
1339 ac_prev=site ;;
1340 -site=* | --site=* | --sit=*)
1341 site=$ac_optarg ;;
1342
1343 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1344 ac_prev=srcdir ;;
1345 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1346 srcdir=$ac_optarg ;;
1347
1348 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1349 | --syscon | --sysco | --sysc | --sys | --sy)
1350 ac_prev=sysconfdir ;;
1351 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1352 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1353 sysconfdir=$ac_optarg ;;
1354
1355 -target | --target | --targe | --targ | --tar | --ta | --t)
1356 ac_prev=target_alias ;;
1357 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1358 target_alias=$ac_optarg ;;
1359
1360 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1361 verbose=yes ;;
1362
1363 -version | --version | --versio | --versi | --vers | -V)
1364 ac_init_version=: ;;
1365
1366 -with-* | --with-*)
8d138742 1367 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
d9898ee8 1368 # Reject names that are not valid shell variable names.
8d138742
CE
1369 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1370 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
d9898ee8 1371 { (exit 1); exit 1; }; }
8d138742
CE
1372 ac_useropt_orig=$ac_useropt
1373 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1374 case $ac_user_opts in
1375 *"
1376"with_$ac_useropt"
1377"*) ;;
1378 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1379 ac_unrecognized_sep=', ';;
1380 esac
1381 eval with_$ac_useropt=\$ac_optarg ;;
d9898ee8 1382
1383 -without-* | --without-*)
8d138742 1384 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
d9898ee8 1385 # Reject names that are not valid shell variable names.
8d138742
CE
1386 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1387 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
d9898ee8 1388 { (exit 1); exit 1; }; }
8d138742
CE
1389 ac_useropt_orig=$ac_useropt
1390 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1391 case $ac_user_opts in
1392 *"
1393"with_$ac_useropt"
1394"*) ;;
1395 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1396 ac_unrecognized_sep=', ';;
1397 esac
1398 eval with_$ac_useropt=no ;;
d9898ee8 1399
1400 --x)
1401 # Obsolete; use --with-x.
1402 with_x=yes ;;
1403
1404 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1405 | --x-incl | --x-inc | --x-in | --x-i)
1406 ac_prev=x_includes ;;
1407 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1408 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1409 x_includes=$ac_optarg ;;
1410
1411 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1412 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1413 ac_prev=x_libraries ;;
1414 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1415 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1416 x_libraries=$ac_optarg ;;
1417
8d138742 1418 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
d9898ee8 1419Try \`$0 --help' for more information." >&2
1420 { (exit 1); exit 1; }; }
1421 ;;
1422
1423 *=*)
1424 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1425 # Reject names that are not valid shell variable names.
1426 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
8d138742 1427 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
d9898ee8 1428 { (exit 1); exit 1; }; }
dd184caf 1429 eval $ac_envvar=\$ac_optarg
d9898ee8 1430 export $ac_envvar ;;
1431
1432 *)
1433 # FIXME: should be removed in autoconf 3.0.
8d138742 1434 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
d9898ee8 1435 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
8d138742 1436 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
d9898ee8 1437 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1438 ;;
1439
1440 esac
1441done
1442
1443if test -n "$ac_prev"; then
1444 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
8d138742 1445 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
d9898ee8 1446 { (exit 1); exit 1; }; }
1447fi
1448
8d138742
CE
1449if test -n "$ac_unrecognized_opts"; then
1450 case $enable_option_checking in
1451 no) ;;
1452 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1453 { (exit 1); exit 1; }; } ;;
1454 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1455 esac
1456fi
1457
1458# Check all directory arguments for consistency.
dd184caf 1459for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1460 datadir sysconfdir sharedstatedir localstatedir includedir \
1461 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1462 libdir localedir mandir
d9898ee8 1463do
dd184caf 1464 eval ac_val=\$$ac_var
8d138742
CE
1465 # Remove trailing slashes.
1466 case $ac_val in
1467 */ )
1468 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1469 eval $ac_var=\$ac_val;;
1470 esac
1471 # Be sure to have absolute directory names.
d9898ee8 1472 case $ac_val in
dd184caf 1473 [\\/$]* | ?:[\\/]* ) continue;;
1474 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
d9898ee8 1475 esac
8d138742 1476 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
dd184caf 1477 { (exit 1); exit 1; }; }
d9898ee8 1478done
1479
1480# There might be people who depend on the old broken behavior: `$host'
1481# used to hold the argument of --host etc.
1482# FIXME: To remove some day.
1483build=$build_alias
1484host=$host_alias
1485target=$target_alias
1486
1487# FIXME: To remove some day.
1488if test "x$host_alias" != x; then
1489 if test "x$build_alias" = x; then
1490 cross_compiling=maybe
8d138742 1491 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
d9898ee8 1492 If a cross compiler is detected then cross compile mode will be used." >&2
1493 elif test "x$build_alias" != "x$host_alias"; then
1494 cross_compiling=yes
1495 fi
1496fi
1497
1498ac_tool_prefix=
1499test -n "$host_alias" && ac_tool_prefix=$host_alias-
1500
1501test "$silent" = yes && exec 6>/dev/null
1502
1503
dd184caf 1504ac_pwd=`pwd` && test -n "$ac_pwd" &&
1505ac_ls_di=`ls -di .` &&
1506ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
8d138742 1507 { $as_echo "$as_me: error: working directory cannot be determined" >&2
dd184caf 1508 { (exit 1); exit 1; }; }
1509test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
8d138742 1510 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
dd184caf 1511 { (exit 1); exit 1; }; }
1512
1513
d9898ee8 1514# Find the source files, if location was not specified.
1515if test -z "$srcdir"; then
1516 ac_srcdir_defaulted=yes
dd184caf 1517 # Try the directory containing this script, then the parent directory.
8d138742
CE
1518 ac_confdir=`$as_dirname -- "$as_myself" ||
1519$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1520 X"$as_myself" : 'X\(//\)[^/]' \| \
1521 X"$as_myself" : 'X\(//\)$' \| \
1522 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1523$as_echo X"$as_myself" |
dd184caf 1524 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1525 s//\1/
1526 q
1527 }
1528 /^X\(\/\/\)[^/].*/{
1529 s//\1/
1530 q
1531 }
1532 /^X\(\/\/\)$/{
1533 s//\1/
1534 q
1535 }
1536 /^X\(\/\).*/{
1537 s//\1/
1538 q
1539 }
1540 s/.*/./; q'`
d9898ee8 1541 srcdir=$ac_confdir
dd184caf 1542 if test ! -r "$srcdir/$ac_unique_file"; then
d9898ee8 1543 srcdir=..
1544 fi
1545else
1546 ac_srcdir_defaulted=no
1547fi
dd184caf 1548if test ! -r "$srcdir/$ac_unique_file"; then
1549 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
8d138742 1550 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
d9898ee8 1551 { (exit 1); exit 1; }; }
d9898ee8 1552fi
dd184caf 1553ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1554ac_abs_confdir=`(
8d138742 1555 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
d9898ee8 1556 { (exit 1); exit 1; }; }
dd184caf 1557 pwd)`
1558# When building in place, set srcdir=.
1559if test "$ac_abs_confdir" = "$ac_pwd"; then
1560 srcdir=.
1561fi
1562# Remove unnecessary trailing slashes from srcdir.
1563# Double slashes in file names in object file debugging info
1564# mess up M-x gdb in Emacs.
1565case $srcdir in
1566*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1567esac
1568for ac_var in $ac_precious_vars; do
1569 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1570 eval ac_env_${ac_var}_value=\$${ac_var}
1571 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1572 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1573done
d9898ee8 1574
1575#
1576# Report the --help message.
1577#
1578if test "$ac_init_help" = "long"; then
1579 # Omit some internal or obsolete options to make the list less imposing.
1580 # This message is too long to be a string in the A/UX 3.1 sh.
1581 cat <<_ACEOF
8d138742 1582\`configure' configures courier-authlib 0.63.0 to adapt to many kinds of systems.
d9898ee8 1583
1584Usage: $0 [OPTION]... [VAR=VALUE]...
1585
1586To assign environment variables (e.g., CC, CFLAGS...), specify them as
1587VAR=VALUE. See below for descriptions of some of the useful variables.
1588
1589Defaults for the options are specified in brackets.
1590
1591Configuration:
1592 -h, --help display this help and exit
1593 --help=short display options specific to this package
1594 --help=recursive display the short help of all the included packages
1595 -V, --version display version information and exit
1596 -q, --quiet, --silent do not print \`checking...' messages
1597 --cache-file=FILE cache test results in FILE [disabled]
1598 -C, --config-cache alias for \`--cache-file=config.cache'
1599 -n, --no-create do not create output files
1600 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1601
d9898ee8 1602Installation directories:
1603 --prefix=PREFIX install architecture-independent files in PREFIX
8d138742 1604 [$ac_default_prefix]
d9898ee8 1605 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
8d138742 1606 [PREFIX]
d9898ee8 1607
1608By default, \`make install' will install all the files in
1609\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1610an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1611for instance \`--prefix=\$HOME'.
1612
1613For better control, use the options below.
1614
1615Fine tuning of the installation directories:
8d138742
CE
1616 --bindir=DIR user executables [EPREFIX/bin]
1617 --sbindir=DIR system admin executables [EPREFIX/sbin]
1618 --libexecdir=DIR program executables [EPREFIX/libexec]
1619 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1620 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1621 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1622 --libdir=DIR object code libraries [EPREFIX/lib]
1623 --includedir=DIR C header files [PREFIX/include]
1624 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1625 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1626 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1627 --infodir=DIR info documentation [DATAROOTDIR/info]
1628 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1629 --mandir=DIR man documentation [DATAROOTDIR/man]
1630 --docdir=DIR documentation root [DATAROOTDIR/doc/courier-authlib]
1631 --htmldir=DIR html documentation [DOCDIR]
1632 --dvidir=DIR dvi documentation [DOCDIR]
1633 --pdfdir=DIR pdf documentation [DOCDIR]
1634 --psdir=DIR ps documentation [DOCDIR]
d9898ee8 1635_ACEOF
1636
1637 cat <<\_ACEOF
1638
1639Program names:
1640 --program-prefix=PREFIX prepend PREFIX to installed program names
1641 --program-suffix=SUFFIX append SUFFIX to installed program names
1642 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1643
1644System types:
1645 --build=BUILD configure for building on BUILD [guessed]
1646 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1647_ACEOF
1648fi
1649
1650if test -n "$ac_init_help"; then
1651 case $ac_init_help in
8d138742 1652 short | recursive ) echo "Configuration of courier-authlib 0.63.0:";;
d9898ee8 1653 esac
1654 cat <<\_ACEOF
1655
1656Optional Features:
8d138742 1657 --disable-option-checking ignore unrecognized --enable/--with options
d9898ee8 1658 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1659 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1660 --disable-dependency-tracking speeds up one-time build
1661 --enable-dependency-tracking do not reject slow dependency extractors
dd184caf 1662 --enable-shared[=PKGS] build shared libraries [default=yes]
1663 --enable-static[=PKGS] build static libraries [default=yes]
d9898ee8 1664 --enable-fast-install[=PKGS]
1665 optimize for fast installation [default=yes]
1666 --disable-libtool-lock avoid locking (might break parallel builds)
8d138742 1667 --enable-ltdl-install install libltdl
d9898ee8 1668
1669Optional Packages:
1670 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1671 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
d9898ee8 1672 --with-pic try to use only PIC/non-PIC objects [default=use
1673 both]
8d138742
CE
1674 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1675 --with-included-ltdl use the GNU ltdl sources included here
1676 --with-ltdl-include=DIR use the ltdl headers installed in DIR
1677 --with-ltdl-lib=DIR use the libltdl.la installed in DIR
d9898ee8 1678
1679 --with-pkgconfdir=d Install config files in directory
1680 --with-db=gdbm Use the GDBM library.
1681 --with-db=db Use the libdb.a library.
1682 --without-authuserdb Do not include the authuserdb module
1683
1684 --without-authpam Do not include the authpam module
1685 --with-authpam-libraries="libs" Link 'libs' with authpam, this may be
1686 required for FreeBSD 3.3
1687 --without-authldap Do not include the authldap module
1688 --with-authldaprc=filename Expect to find authldaprc here
1689 --without-authpwd Do not include the authpwd module
1690 --without-authshadow Do not include the authshadow module
d9898ee8 1691 --with-authpgsqlrc=filename Expect to find authpgsql here
1692 --without-authpgsql Do not include the authpgsql module
1693 --with-pgsql-libs=DIR Look for pgsql libs in this dir
1694 --with-pgsql-includes=DIR Look for pgsql includes in this dir
1695 --with-authmysqlrc=filename Expect to find authmysql here
1696 --without-authmysql Do not include the authmysql module
1697 --with-mysql-libs=DIR Look for mysql libs in this dir
1698 --with-mysql-includes=DIR Look for mysql includes in this dir
1699 --without-authcustom Do not include the authcustom module
1700 --with-pipeprog=filename Expect to find the pipe-prog here
1701 --without-authpipe Do not include the authpipe module
1702 --with-authdaemonrc=filename Expect to find authdaemonrc here
1703 --with-authdaemonvar=directory Directory where authdaemon.pid and
1704 the listening socket is created
1705 --with-mailuser=user Specify mail user name (defaults to
1706 courier, daemon, admin, bin, or root)
1707 --with-mailgroup=group Specify mail group name (defaults to courier,
1708 daemon, sys, adm, or root)
1709 --without-stdheaderdir Header files will be installed into a directory
1710 not in the compiler's default search path.
1711
1712Some influential environment variables:
1713 CC C compiler command
1714 CFLAGS C compiler flags
1715 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1716 nonstandard directory <lib dir>
dd184caf 1717 LIBS libraries to pass to the linker, e.g. -l<library>
1718 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1719 you have headers in a nonstandard directory <include dir>
d9898ee8 1720 CPP C preprocessor
d9898ee8 1721
1722Use these variables to override the choices made by `configure' or to help
1723it to find libraries and programs with nonstandard names/locations.
1724
8d138742 1725Report bugs to <courier-users@lists.sourceforge.net>.
d9898ee8 1726_ACEOF
dd184caf 1727ac_status=$?
d9898ee8 1728fi
1729
1730if test "$ac_init_help" = "recursive"; then
1731 # If there are subdirs, report their specific --help.
d9898ee8 1732 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
8d138742
CE
1733 test -d "$ac_dir" ||
1734 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1735 continue
d9898ee8 1736 ac_builddir=.
1737
dd184caf 1738case "$ac_dir" in
1739.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1740*)
8d138742 1741 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
dd184caf 1742 # A ".." for each directory in $ac_dir_suffix.
8d138742 1743 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
dd184caf 1744 case $ac_top_builddir_sub in
1745 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1746 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1747 esac ;;
1748esac
1749ac_abs_top_builddir=$ac_pwd
1750ac_abs_builddir=$ac_pwd$ac_dir_suffix
1751# for backward compatibility:
1752ac_top_builddir=$ac_top_build_prefix
d9898ee8 1753
1754case $srcdir in
dd184caf 1755 .) # We are building in place.
d9898ee8 1756 ac_srcdir=.
dd184caf 1757 ac_top_srcdir=$ac_top_builddir_sub
1758 ac_abs_top_srcdir=$ac_pwd ;;
1759 [\\/]* | ?:[\\/]* ) # Absolute name.
d9898ee8 1760 ac_srcdir=$srcdir$ac_dir_suffix;
dd184caf 1761 ac_top_srcdir=$srcdir
1762 ac_abs_top_srcdir=$srcdir ;;
1763 *) # Relative name.
1764 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1765 ac_top_srcdir=$ac_top_build_prefix$srcdir
1766 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
d9898ee8 1767esac
dd184caf 1768ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1769
1770 cd "$ac_dir" || { ac_status=$?; continue; }
1771 # Check for guested configure.
1772 if test -f "$ac_srcdir/configure.gnu"; then
1773 echo &&
1774 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1775 elif test -f "$ac_srcdir/configure"; then
1776 echo &&
1777 $SHELL "$ac_srcdir/configure" --help=recursive
d9898ee8 1778 else
8d138742 1779 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
dd184caf 1780 fi || ac_status=$?
1781 cd "$ac_pwd" || { ac_status=$?; break; }
d9898ee8 1782 done
1783fi
1784
dd184caf 1785test -n "$ac_init_help" && exit $ac_status
d9898ee8 1786if $ac_init_version; then
1787 cat <<\_ACEOF
8d138742
CE
1788courier-authlib configure 0.63.0
1789generated by GNU Autoconf 2.63
d9898ee8 1790
dd184caf 1791Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8d138742 17922002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
d9898ee8 1793This configure script is free software; the Free Software Foundation
1794gives unlimited permission to copy, distribute and modify it.
1795_ACEOF
dd184caf 1796 exit
d9898ee8 1797fi
dd184caf 1798cat >config.log <<_ACEOF
d9898ee8 1799This file contains any messages produced by compilers while
1800running configure, to aid debugging if configure makes a mistake.
1801
8d138742
CE
1802It was created by courier-authlib $as_me 0.63.0, which was
1803generated by GNU Autoconf 2.63. Invocation command line was
d9898ee8 1804
1805 $ $0 $@
1806
1807_ACEOF
dd184caf 1808exec 5>>config.log
d9898ee8 1809{
1810cat <<_ASUNAME
1811## --------- ##
1812## Platform. ##
1813## --------- ##
1814
1815hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1816uname -m = `(uname -m) 2>/dev/null || echo unknown`
1817uname -r = `(uname -r) 2>/dev/null || echo unknown`
1818uname -s = `(uname -s) 2>/dev/null || echo unknown`
1819uname -v = `(uname -v) 2>/dev/null || echo unknown`
1820
1821/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1822/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1823
1824/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1825/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1826/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
dd184caf 1827/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
d9898ee8 1828/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1829/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1830/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1831
1832_ASUNAME
1833
1834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1835for as_dir in $PATH
1836do
1837 IFS=$as_save_IFS
1838 test -z "$as_dir" && as_dir=.
8d138742 1839 $as_echo "PATH: $as_dir"
d9898ee8 1840done
dd184caf 1841IFS=$as_save_IFS
d9898ee8 1842
1843} >&5
1844
1845cat >&5 <<_ACEOF
1846
1847
1848## ----------- ##
1849## Core tests. ##
1850## ----------- ##
1851
1852_ACEOF
1853
1854
1855# Keep a trace of the command line.
1856# Strip out --no-create and --no-recursion so they do not pile up.
1857# Strip out --silent because we don't want to record it for future runs.
1858# Also quote any args containing shell meta-characters.
1859# Make two passes to allow for proper duplicate-argument suppression.
1860ac_configure_args=
1861ac_configure_args0=
1862ac_configure_args1=
d9898ee8 1863ac_must_keep_next=false
1864for ac_pass in 1 2
1865do
1866 for ac_arg
1867 do
1868 case $ac_arg in
1869 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1870 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1871 | -silent | --silent | --silen | --sile | --sil)
1872 continue ;;
dd184caf 1873 *\'*)
8d138742 1874 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
d9898ee8 1875 esac
1876 case $ac_pass in
1877 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1878 2)
1879 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1880 if test $ac_must_keep_next = true; then
1881 ac_must_keep_next=false # Got value, back to normal.
1882 else
1883 case $ac_arg in
1884 *=* | --config-cache | -C | -disable-* | --disable-* \
1885 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1886 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1887 | -with-* | --with-* | -without-* | --without-* | --x)
1888 case "$ac_configure_args0 " in
1889 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1890 esac
1891 ;;
1892 -* ) ac_must_keep_next=true ;;
1893 esac
1894 fi
dd184caf 1895 ac_configure_args="$ac_configure_args '$ac_arg'"
d9898ee8 1896 ;;
1897 esac
1898 done
1899done
1900$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1901$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1902
1903# When interrupted or exit'd, cleanup temporary files, and complete
1904# config.log. We remove comments because anyway the quotes in there
1905# would cause problems or look ugly.
dd184caf 1906# WARNING: Use '\'' to represent an apostrophe within the trap.
1907# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
d9898ee8 1908trap 'exit_status=$?
1909 # Save into config.log some information that might help in debugging.
1910 {
1911 echo
1912
1913 cat <<\_ASBOX
1914## ---------------- ##
1915## Cache variables. ##
1916## ---------------- ##
1917_ASBOX
1918 echo
1919 # The following way of writing the cache mishandles newlines in values,
dd184caf 1920(
1921 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1922 eval ac_val=\$$ac_var
1923 case $ac_val in #(
1924 *${as_nl}*)
1925 case $ac_var in #(
8d138742
CE
1926 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1927$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
dd184caf 1928 esac
1929 case $ac_var in #(
1930 _ | IFS | as_nl) ;; #(
8d138742 1931 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
dd184caf 1932 *) $as_unset $ac_var ;;
1933 esac ;;
1934 esac
1935 done
d9898ee8 1936 (set) 2>&1 |
dd184caf 1937 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1938 *${as_nl}ac_space=\ *)
d9898ee8 1939 sed -n \
dd184caf 1940 "s/'\''/'\''\\\\'\'''\''/g;
1941 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1942 ;; #(
d9898ee8 1943 *)
dd184caf 1944 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
d9898ee8 1945 ;;
dd184caf 1946 esac |
1947 sort
1948)
d9898ee8 1949 echo
1950
1951 cat <<\_ASBOX
1952## ----------------- ##
1953## Output variables. ##
1954## ----------------- ##
1955_ASBOX
1956 echo
1957 for ac_var in $ac_subst_vars
1958 do
dd184caf 1959 eval ac_val=\$$ac_var
1960 case $ac_val in
8d138742 1961 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
dd184caf 1962 esac
8d138742 1963 $as_echo "$ac_var='\''$ac_val'\''"
d9898ee8 1964 done | sort
1965 echo
1966
1967 if test -n "$ac_subst_files"; then
1968 cat <<\_ASBOX
dd184caf 1969## ------------------- ##
1970## File substitutions. ##
1971## ------------------- ##
d9898ee8 1972_ASBOX
1973 echo
1974 for ac_var in $ac_subst_files
1975 do
dd184caf 1976 eval ac_val=\$$ac_var
1977 case $ac_val in
8d138742 1978 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
dd184caf 1979 esac
8d138742 1980 $as_echo "$ac_var='\''$ac_val'\''"
d9898ee8 1981 done | sort
1982 echo
1983 fi
1984
1985 if test -s confdefs.h; then
1986 cat <<\_ASBOX
1987## ----------- ##
1988## confdefs.h. ##
1989## ----------- ##
1990_ASBOX
1991 echo
dd184caf 1992 cat confdefs.h
d9898ee8 1993 echo
1994 fi
1995 test "$ac_signal" != 0 &&
8d138742
CE
1996 $as_echo "$as_me: caught signal $ac_signal"
1997 $as_echo "$as_me: exit $exit_status"
d9898ee8 1998 } >&5
dd184caf 1999 rm -f core *.core core.conftest.* &&
2000 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
d9898ee8 2001 exit $exit_status
dd184caf 2002' 0
d9898ee8 2003for ac_signal in 1 2 13 15; do
2004 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2005done
2006ac_signal=0
2007
2008# confdefs.h avoids OS command line length limits that DEFS can exceed.
dd184caf 2009rm -f -r conftest* confdefs.h
d9898ee8 2010
2011# Predefined preprocessor variables.
2012
2013cat >>confdefs.h <<_ACEOF
2014#define PACKAGE_NAME "$PACKAGE_NAME"
2015_ACEOF
2016
2017
2018cat >>confdefs.h <<_ACEOF
2019#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2020_ACEOF
2021
2022
2023cat >>confdefs.h <<_ACEOF
2024#define PACKAGE_VERSION "$PACKAGE_VERSION"
2025_ACEOF
2026
2027
2028cat >>confdefs.h <<_ACEOF
2029#define PACKAGE_STRING "$PACKAGE_STRING"
2030_ACEOF
2031
2032
2033cat >>confdefs.h <<_ACEOF
2034#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2035_ACEOF
2036
2037
2038# Let the site file select an alternate cache file if it wants to.
8d138742
CE
2039# Prefer an explicitly selected file to automatically selected ones.
2040ac_site_file1=NONE
2041ac_site_file2=NONE
dd184caf 2042if test -n "$CONFIG_SITE"; then
8d138742 2043 ac_site_file1=$CONFIG_SITE
dd184caf 2044elif test "x$prefix" != xNONE; then
8d138742
CE
2045 ac_site_file1=$prefix/share/config.site
2046 ac_site_file2=$prefix/etc/config.site
dd184caf 2047else
8d138742
CE
2048 ac_site_file1=$ac_default_prefix/share/config.site
2049 ac_site_file2=$ac_default_prefix/etc/config.site
d9898ee8 2050fi
8d138742 2051for ac_site_file in "$ac_site_file1" "$ac_site_file2"
dd184caf 2052do
8d138742 2053 test "x$ac_site_file" = xNONE && continue
d9898ee8 2054 if test -r "$ac_site_file"; then
8d138742
CE
2055 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2056$as_echo "$as_me: loading site script $ac_site_file" >&6;}
d9898ee8 2057 sed 's/^/| /' "$ac_site_file" >&5
2058 . "$ac_site_file"
2059 fi
2060done
2061
2062if test -r "$cache_file"; then
2063 # Some versions of bash will fail to source /dev/null (special
2064 # files actually), so we avoid doing that.
2065 if test -f "$cache_file"; then
8d138742
CE
2066 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2067$as_echo "$as_me: loading cache $cache_file" >&6;}
d9898ee8 2068 case $cache_file in
dd184caf 2069 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2070 *) . "./$cache_file";;
d9898ee8 2071 esac
2072 fi
2073else
8d138742
CE
2074 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2075$as_echo "$as_me: creating cache $cache_file" >&6;}
d9898ee8 2076 >$cache_file
2077fi
2078
2079# Check that the precious variables saved in the cache have kept the same
2080# value.
2081ac_cache_corrupted=false
dd184caf 2082for ac_var in $ac_precious_vars; do
d9898ee8 2083 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2084 eval ac_new_set=\$ac_env_${ac_var}_set
dd184caf 2085 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2086 eval ac_new_val=\$ac_env_${ac_var}_value
d9898ee8 2087 case $ac_old_set,$ac_new_set in
2088 set,)
8d138742
CE
2089 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2090$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
d9898ee8 2091 ac_cache_corrupted=: ;;
2092 ,set)
8d138742
CE
2093 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2094$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
d9898ee8 2095 ac_cache_corrupted=: ;;
2096 ,);;
2097 *)
2098 if test "x$ac_old_val" != "x$ac_new_val"; then
8d138742
CE
2099 # differences in whitespace do not lead to failure.
2100 ac_old_val_w=`echo x $ac_old_val`
2101 ac_new_val_w=`echo x $ac_new_val`
2102 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2103 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2104$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2105 ac_cache_corrupted=:
2106 else
2107 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2108$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2109 eval $ac_var=\$ac_old_val
2110 fi
2111 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2112$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2113 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2114$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
d9898ee8 2115 fi;;
2116 esac
2117 # Pass precious variables to config.status.
2118 if test "$ac_new_set" = set; then
2119 case $ac_new_val in
8d138742 2120 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
d9898ee8 2121 *) ac_arg=$ac_var=$ac_new_val ;;
2122 esac
2123 case " $ac_configure_args " in
2124 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2125 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2126 esac
2127 fi
2128done
2129if $ac_cache_corrupted; then
8d138742
CE
2130 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2131$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2132 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2133$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2134 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2135$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
d9898ee8 2136 { (exit 1); exit 1; }; }
2137fi
2138
d9898ee8 2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
dd184caf 2163ac_ext=c
2164ac_cpp='$CPP $CPPFLAGS'
2165ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2166ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2167ac_compiler_gnu=$ac_cv_c_compiler_gnu
d9898ee8 2168
2169
2170
2171
dd184caf 2172ac_config_headers="$ac_config_headers courier_auth_config.h"
d9898ee8 2173
d9898ee8 2174
8d138742
CE
2175
2176am__api_version='1.11'
d9898ee8 2177
d9898ee8 2178ac_aux_dir=
dd184caf 2179for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2180 if test -f "$ac_dir/install-sh"; then
d9898ee8 2181 ac_aux_dir=$ac_dir
2182 ac_install_sh="$ac_aux_dir/install-sh -c"
2183 break
dd184caf 2184 elif test -f "$ac_dir/install.sh"; then
d9898ee8 2185 ac_aux_dir=$ac_dir
2186 ac_install_sh="$ac_aux_dir/install.sh -c"
2187 break
dd184caf 2188 elif test -f "$ac_dir/shtool"; then
d9898ee8 2189 ac_aux_dir=$ac_dir
2190 ac_install_sh="$ac_aux_dir/shtool install -c"
2191 break
2192 fi
2193done
2194if test -z "$ac_aux_dir"; then
8d138742
CE
2195 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2196$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
d9898ee8 2197 { (exit 1); exit 1; }; }
2198fi
dd184caf 2199
2200# These three variables are undocumented and unsupported,
2201# and are intended to be withdrawn in a future Autoconf release.
2202# They can cause serious problems if a builder's source tree is in a directory
2203# whose full name contains unusual characters.
2204ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2205ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2206ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2207
d9898ee8 2208
2209# Find a good install program. We prefer a C program (faster),
2210# so one script is as good as another. But avoid the broken or
2211# incompatible versions:
2212# SysV /etc/install, /usr/sbin/install
2213# SunOS /usr/etc/install
2214# IRIX /sbin/install
2215# AIX /bin/install
2216# AmigaOS /C/install, which installs bootblocks on floppy discs
2217# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2218# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2219# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2220# OS/2's system install, which has a completely different semantic
2221# ./install, which can be erroneously created by make from ./install.sh.
8d138742
CE
2222# Reject install programs that cannot install multiple files.
2223{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2224$as_echo_n "checking for a BSD-compatible install... " >&6; }
d9898ee8 2225if test -z "$INSTALL"; then
2226if test "${ac_cv_path_install+set}" = set; then
8d138742 2227 $as_echo_n "(cached) " >&6
d9898ee8 2228else
2229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2230for as_dir in $PATH
2231do
2232 IFS=$as_save_IFS
2233 test -z "$as_dir" && as_dir=.
2234 # Account for people who put trailing slashes in PATH elements.
2235case $as_dir/ in
2236 ./ | .// | /cC/* | \
2237 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2238 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2239 /usr/ucb/* ) ;;
2240 *)
2241 # OSF1 and SCO ODT 3.0 have their own names for install.
2242 # Don't use installbsd from OSF since it installs stuff as root
2243 # by default.
2244 for ac_prog in ginstall scoinst install; do
2245 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 2246 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
d9898ee8 2247 if test $ac_prog = install &&
2248 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2249 # AIX install. It has an incompatible calling convention.
2250 :
2251 elif test $ac_prog = install &&
2252 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2253 # program-specific install script used by HP pwplus--don't use.
2254 :
2255 else
8d138742
CE
2256 rm -rf conftest.one conftest.two conftest.dir
2257 echo one > conftest.one
2258 echo two > conftest.two
2259 mkdir conftest.dir
2260 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2261 test -s conftest.one && test -s conftest.two &&
2262 test -s conftest.dir/conftest.one &&
2263 test -s conftest.dir/conftest.two
2264 then
2265 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2266 break 3
2267 fi
d9898ee8 2268 fi
2269 fi
2270 done
2271 done
2272 ;;
2273esac
8d138742 2274
d9898ee8 2275done
dd184caf 2276IFS=$as_save_IFS
d9898ee8 2277
8d138742 2278rm -rf conftest.one conftest.two conftest.dir
d9898ee8 2279
2280fi
2281 if test "${ac_cv_path_install+set}" = set; then
2282 INSTALL=$ac_cv_path_install
2283 else
dd184caf 2284 # As a last resort, use the slow shell script. Don't cache a
2285 # value for INSTALL within a source directory, because that will
d9898ee8 2286 # break other packages using the cache if that directory is
dd184caf 2287 # removed, or if the value is a relative name.
d9898ee8 2288 INSTALL=$ac_install_sh
2289 fi
2290fi
8d138742
CE
2291{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2292$as_echo "$INSTALL" >&6; }
d9898ee8 2293
2294# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2295# It thinks the first close brace ends the variable substitution.
2296test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2297
2298test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2299
2300test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2301
8d138742
CE
2302{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2303$as_echo_n "checking whether build environment is sane... " >&6; }
d9898ee8 2304# Just in case
2305sleep 1
2306echo timestamp > conftest.file
8d138742
CE
2307# Reject unsafe characters in $srcdir or the absolute working directory
2308# name. Accept space and tab only in the latter.
2309am_lf='
2310'
2311case `pwd` in
2312 *[\\\"\#\$\&\'\`$am_lf]*)
2313 { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2314$as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2315 { (exit 1); exit 1; }; };;
2316esac
2317case $srcdir in
2318 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2319 { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2320$as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2321 { (exit 1); exit 1; }; };;
2322esac
2323
d9898ee8 2324# Do `set' in a subshell so we don't clobber the current shell's
2325# arguments. Must try -L first in case configure is actually a
2326# symlink; some systems play weird games with the mod time of symlinks
2327# (eg FreeBSD returns the mod time of the symlink's containing
2328# directory).
2329if (
8d138742 2330 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
d9898ee8 2331 if test "$*" = "X"; then
2332 # -L didn't work.
8d138742 2333 set X `ls -t "$srcdir/configure" conftest.file`
d9898ee8 2334 fi
2335 rm -f conftest.file
2336 if test "$*" != "X $srcdir/configure conftest.file" \
2337 && test "$*" != "X conftest.file $srcdir/configure"; then
2338
2339 # If neither matched, then we have a broken ls. This can happen
2340 # if, for instance, CONFIG_SHELL is bash and it inherits a
2341 # broken ls alias from the environment. This has actually
2342 # happened. Such a system could not be considered "sane".
8d138742 2343 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
d9898ee8 2344alias in your environment" >&5
8d138742 2345$as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
d9898ee8 2346alias in your environment" >&2;}
2347 { (exit 1); exit 1; }; }
2348 fi
2349
2350 test "$2" = conftest.file
2351 )
2352then
2353 # Ok.
2354 :
2355else
8d138742 2356 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
d9898ee8 2357Check your system clock" >&5
8d138742 2358$as_echo "$as_me: error: newly created file is older than distributed files!
d9898ee8 2359Check your system clock" >&2;}
2360 { (exit 1); exit 1; }; }
2361fi
8d138742
CE
2362{ $as_echo "$as_me:$LINENO: result: yes" >&5
2363$as_echo "yes" >&6; }
d9898ee8 2364test "$program_prefix" != NONE &&
dd184caf 2365 program_transform_name="s&^&$program_prefix&;$program_transform_name"
d9898ee8 2366# Use a double $ so make ignores it.
2367test "$program_suffix" != NONE &&
dd184caf 2368 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
8d138742 2369# Double any \ or $.
d9898ee8 2370# By default was `s,x,x', remove it if useless.
8d138742
CE
2371ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2372program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
d9898ee8 2373
2374# expand $ac_aux_dir to an absolute path
2375am_aux_dir=`cd $ac_aux_dir && pwd`
2376
8d138742
CE
2377if test x"${MISSING+set}" != xset; then
2378 case $am_aux_dir in
2379 *\ * | *\ *)
2380 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2381 *)
2382 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2383 esac
2384fi
d9898ee8 2385# Use eval to expand $SHELL
2386if eval "$MISSING --run true"; then
2387 am_missing_run="$MISSING --run "
2388else
2389 am_missing_run=
8d138742
CE
2390 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2391$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2392fi
2393
2394if test x"${install_sh}" != xset; then
2395 case $am_aux_dir in
2396 *\ * | *\ *)
2397 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2398 *)
2399 install_sh="\${SHELL} $am_aux_dir/install-sh"
2400 esac
2401fi
2402
2403# Installed binaries are usually stripped using `strip' when the user
2404# run `make install-strip'. However `strip' might not be the right
2405# tool to use in cross-compilation environments, therefore Automake
2406# will honor the `STRIP' environment variable to overrule this program.
2407if test "$cross_compiling" != no; then
2408 if test -n "$ac_tool_prefix"; then
2409 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2410set dummy ${ac_tool_prefix}strip; ac_word=$2
2411{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2412$as_echo_n "checking for $ac_word... " >&6; }
2413if test "${ac_cv_prog_STRIP+set}" = set; then
2414 $as_echo_n "(cached) " >&6
2415else
2416 if test -n "$STRIP"; then
2417 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2418else
2419as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2420for as_dir in $PATH
2421do
2422 IFS=$as_save_IFS
2423 test -z "$as_dir" && as_dir=.
2424 for ac_exec_ext in '' $ac_executable_extensions; do
2425 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2426 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2427 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2428 break 2
2429 fi
2430done
2431done
2432IFS=$as_save_IFS
2433
2434fi
2435fi
2436STRIP=$ac_cv_prog_STRIP
2437if test -n "$STRIP"; then
2438 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2439$as_echo "$STRIP" >&6; }
2440else
2441 { $as_echo "$as_me:$LINENO: result: no" >&5
2442$as_echo "no" >&6; }
2443fi
2444
2445
2446fi
2447if test -z "$ac_cv_prog_STRIP"; then
2448 ac_ct_STRIP=$STRIP
2449 # Extract the first word of "strip", so it can be a program name with args.
2450set dummy strip; ac_word=$2
2451{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2452$as_echo_n "checking for $ac_word... " >&6; }
2453if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2454 $as_echo_n "(cached) " >&6
2455else
2456 if test -n "$ac_ct_STRIP"; then
2457 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2458else
2459as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2460for as_dir in $PATH
2461do
2462 IFS=$as_save_IFS
2463 test -z "$as_dir" && as_dir=.
2464 for ac_exec_ext in '' $ac_executable_extensions; do
2465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2466 ac_cv_prog_ac_ct_STRIP="strip"
2467 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2468 break 2
2469 fi
2470done
2471done
2472IFS=$as_save_IFS
2473
2474fi
2475fi
2476ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2477if test -n "$ac_ct_STRIP"; then
2478 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2479$as_echo "$ac_ct_STRIP" >&6; }
2480else
2481 { $as_echo "$as_me:$LINENO: result: no" >&5
2482$as_echo "no" >&6; }
2483fi
2484
2485 if test "x$ac_ct_STRIP" = x; then
2486 STRIP=":"
2487 else
2488 case $cross_compiling:$ac_tool_warned in
2489yes:)
2490{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2491$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2492ac_tool_warned=yes ;;
2493esac
2494 STRIP=$ac_ct_STRIP
2495 fi
2496else
2497 STRIP="$ac_cv_prog_STRIP"
2498fi
2499
d9898ee8 2500fi
8d138742 2501INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
d9898ee8 2502
8d138742
CE
2503{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2504$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
dd184caf 2505if test -z "$MKDIR_P"; then
2506 if test "${ac_cv_path_mkdir+set}" = set; then
8d138742 2507 $as_echo_n "(cached) " >&6
dd184caf 2508else
2509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2510for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2511do
2512 IFS=$as_save_IFS
2513 test -z "$as_dir" && as_dir=.
2514 for ac_prog in mkdir gmkdir; do
2515 for ac_exec_ext in '' $ac_executable_extensions; do
2516 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2517 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2518 'mkdir (GNU coreutils) '* | \
2519 'mkdir (coreutils) '* | \
2520 'mkdir (fileutils) '4.1*)
2521 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2522 break 3;;
2523 esac
2524 done
2525 done
2526done
2527IFS=$as_save_IFS
2528
2529fi
2530
2531 if test "${ac_cv_path_mkdir+set}" = set; then
2532 MKDIR_P="$ac_cv_path_mkdir -p"
d9898ee8 2533 else
dd184caf 2534 # As a last resort, use the slow shell script. Don't cache a
2535 # value for MKDIR_P within a source directory, because that will
2536 # break other packages using the cache if that directory is
2537 # removed, or if the value is a relative name.
2538 test -d ./--version && rmdir ./--version
2539 MKDIR_P="$ac_install_sh -d"
d9898ee8 2540 fi
2541fi
8d138742
CE
2542{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2543$as_echo "$MKDIR_P" >&6; }
dd184caf 2544
2545mkdir_p="$MKDIR_P"
2546case $mkdir_p in
2547 [\\/$]* | ?:[\\/]*) ;;
2548 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2549esac
d9898ee8 2550
2551for ac_prog in gawk mawk nawk awk
2552do
2553 # Extract the first word of "$ac_prog", so it can be a program name with args.
2554set dummy $ac_prog; ac_word=$2
8d138742
CE
2555{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2556$as_echo_n "checking for $ac_word... " >&6; }
d9898ee8 2557if test "${ac_cv_prog_AWK+set}" = set; then
8d138742 2558 $as_echo_n "(cached) " >&6
d9898ee8 2559else
2560 if test -n "$AWK"; then
2561 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2562else
2563as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2564for as_dir in $PATH
2565do
2566 IFS=$as_save_IFS
2567 test -z "$as_dir" && as_dir=.
2568 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 2569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2570 ac_cv_prog_AWK="$ac_prog"
8d138742 2571 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 2572 break 2
2573 fi
2574done
2575done
dd184caf 2576IFS=$as_save_IFS
d9898ee8 2577
2578fi
2579fi
2580AWK=$ac_cv_prog_AWK
2581if test -n "$AWK"; then
8d138742
CE
2582 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2583$as_echo "$AWK" >&6; }
d9898ee8 2584else
8d138742
CE
2585 { $as_echo "$as_me:$LINENO: result: no" >&5
2586$as_echo "no" >&6; }
d9898ee8 2587fi
2588
dd184caf 2589
d9898ee8 2590 test -n "$AWK" && break
2591done
2592
8d138742
CE
2593{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2594$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2595set x ${MAKE-make}
2596ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
dd184caf 2597if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
8d138742 2598 $as_echo_n "(cached) " >&6
d9898ee8 2599else
2600 cat >conftest.make <<\_ACEOF
dd184caf 2601SHELL = /bin/sh
d9898ee8 2602all:
dd184caf 2603 @echo '@@@%%%=$(MAKE)=@@@%%%'
d9898ee8 2604_ACEOF
2605# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
dd184caf 2606case `${MAKE-make} -f conftest.make 2>/dev/null` in
2607 *@@@%%%=?*=@@@%%%*)
2608 eval ac_cv_prog_make_${ac_make}_set=yes;;
2609 *)
2610 eval ac_cv_prog_make_${ac_make}_set=no;;
2611esac
d9898ee8 2612rm -f conftest.make
2613fi
dd184caf 2614if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8d138742
CE
2615 { $as_echo "$as_me:$LINENO: result: yes" >&5
2616$as_echo "yes" >&6; }
d9898ee8 2617 SET_MAKE=
2618else
8d138742
CE
2619 { $as_echo "$as_me:$LINENO: result: no" >&5
2620$as_echo "no" >&6; }
d9898ee8 2621 SET_MAKE="MAKE=${MAKE-make}"
2622fi
2623
2624rm -rf .tst 2>/dev/null
2625mkdir .tst 2>/dev/null
2626if test -d .tst; then
2627 am__leading_dot=.
2628else
2629 am__leading_dot=_
2630fi
2631rmdir .tst 2>/dev/null
2632
dd184caf 2633if test "`cd $srcdir && pwd`" != "`pwd`"; then
2634 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2635 # is not polluted with repeated "-I."
2636 am__isrc=' -I$(srcdir)'
2637 # test to see if srcdir already configured
2638 if test -f $srcdir/config.status; then
8d138742
CE
2639 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2640$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
d9898ee8 2641 { (exit 1); exit 1; }; }
dd184caf 2642 fi
d9898ee8 2643fi
2644
2645# test whether we have cygpath
2646if test -z "$CYGPATH_W"; then
2647 if (cygpath --version) >/dev/null 2>/dev/null; then
2648 CYGPATH_W='cygpath -w'
2649 else
2650 CYGPATH_W=echo
2651 fi
2652fi
2653
2654
2655# Define the identity of the package.
2656 PACKAGE='courier-authlib'
8d138742 2657 VERSION='0.63.0'
d9898ee8 2658
2659
2660cat >>confdefs.h <<_ACEOF
2661#define PACKAGE "$PACKAGE"
2662_ACEOF
2663
2664
2665cat >>confdefs.h <<_ACEOF
2666#define VERSION "$VERSION"
2667_ACEOF
2668
2669# Some tools Automake needs.
2670
2671ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2672
2673
2674AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2675
2676
2677AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2678
2679
2680AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2681
2682
2683MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2684
8d138742
CE
2685# We need awk for the "check" target. The system "awk" is bad on
2686# some platforms.
2687# Always define AMTAR for backward compatibility.
d9898ee8 2688
2689AMTAR=${AMTAR-"${am_missing_run}tar"}
2690
2691am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2692
2693
2694
2695
2696
2697>confdefs.h # Kill PACKAGE_ macros
2698
2699LPATH="$PATH:/usr/local/bin"
2700
2701for ac_prog in gawk mawk nawk awk
2702do
2703 # Extract the first word of "$ac_prog", so it can be a program name with args.
2704set dummy $ac_prog; ac_word=$2
8d138742
CE
2705{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2706$as_echo_n "checking for $ac_word... " >&6; }
d9898ee8 2707if test "${ac_cv_prog_AWK+set}" = set; then
8d138742 2708 $as_echo_n "(cached) " >&6
d9898ee8 2709else
2710 if test -n "$AWK"; then
2711 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2712else
2713as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2714for as_dir in $PATH
2715do
2716 IFS=$as_save_IFS
2717 test -z "$as_dir" && as_dir=.
2718 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 2719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2720 ac_cv_prog_AWK="$ac_prog"
8d138742 2721 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 2722 break 2
2723 fi
2724done
2725done
dd184caf 2726IFS=$as_save_IFS
d9898ee8 2727
2728fi
2729fi
2730AWK=$ac_cv_prog_AWK
2731if test -n "$AWK"; then
8d138742
CE
2732 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2733$as_echo "$AWK" >&6; }
d9898ee8 2734else
8d138742
CE
2735 { $as_echo "$as_me:$LINENO: result: no" >&5
2736$as_echo "no" >&6; }
d9898ee8 2737fi
2738
dd184caf 2739
d9898ee8 2740 test -n "$AWK" && break
2741done
2742
2743ac_ext=c
2744ac_cpp='$CPP $CPPFLAGS'
2745ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2746ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2747ac_compiler_gnu=$ac_cv_c_compiler_gnu
2748if test -n "$ac_tool_prefix"; then
2749 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2750set dummy ${ac_tool_prefix}gcc; ac_word=$2
8d138742
CE
2751{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2752$as_echo_n "checking for $ac_word... " >&6; }
d9898ee8 2753if test "${ac_cv_prog_CC+set}" = set; then
8d138742 2754 $as_echo_n "(cached) " >&6
d9898ee8 2755else
2756 if test -n "$CC"; then
2757 ac_cv_prog_CC="$CC" # Let the user override the test.
2758else
2759as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2760for as_dir in $PATH
2761do
2762 IFS=$as_save_IFS
2763 test -z "$as_dir" && as_dir=.
2764 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 2765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2766 ac_cv_prog_CC="${ac_tool_prefix}gcc"
8d138742 2767 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 2768 break 2
2769 fi
2770done
2771done
dd184caf 2772IFS=$as_save_IFS
d9898ee8 2773
2774fi
2775fi
2776CC=$ac_cv_prog_CC
2777if test -n "$CC"; then
8d138742
CE
2778 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2779$as_echo "$CC" >&6; }
d9898ee8 2780else
8d138742
CE
2781 { $as_echo "$as_me:$LINENO: result: no" >&5
2782$as_echo "no" >&6; }
d9898ee8 2783fi
2784
dd184caf 2785
d9898ee8 2786fi
2787if test -z "$ac_cv_prog_CC"; then
2788 ac_ct_CC=$CC
2789 # Extract the first word of "gcc", so it can be a program name with args.
2790set dummy gcc; ac_word=$2
8d138742
CE
2791{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2792$as_echo_n "checking for $ac_word... " >&6; }
d9898ee8 2793if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
8d138742 2794 $as_echo_n "(cached) " >&6
d9898ee8 2795else
2796 if test -n "$ac_ct_CC"; then
2797 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2798else
2799as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2800for as_dir in $PATH
2801do
2802 IFS=$as_save_IFS
2803 test -z "$as_dir" && as_dir=.
2804 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 2805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2806 ac_cv_prog_ac_ct_CC="gcc"
8d138742 2807 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 2808 break 2
2809 fi
2810done
2811done
dd184caf 2812IFS=$as_save_IFS
d9898ee8 2813
2814fi
2815fi
2816ac_ct_CC=$ac_cv_prog_ac_ct_CC
2817if test -n "$ac_ct_CC"; then
8d138742
CE
2818 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2819$as_echo "$ac_ct_CC" >&6; }
d9898ee8 2820else
8d138742
CE
2821 { $as_echo "$as_me:$LINENO: result: no" >&5
2822$as_echo "no" >&6; }
d9898ee8 2823fi
2824
dd184caf 2825 if test "x$ac_ct_CC" = x; then
2826 CC=""
2827 else
2828 case $cross_compiling:$ac_tool_warned in
2829yes:)
8d138742
CE
2830{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2831$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
dd184caf 2832ac_tool_warned=yes ;;
2833esac
2834 CC=$ac_ct_CC
2835 fi
d9898ee8 2836else
2837 CC="$ac_cv_prog_CC"
2838fi
2839
2840if test -z "$CC"; then
dd184caf 2841 if test -n "$ac_tool_prefix"; then
2842 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
d9898ee8 2843set dummy ${ac_tool_prefix}cc; ac_word=$2
8d138742
CE
2844{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2845$as_echo_n "checking for $ac_word... " >&6; }
d9898ee8 2846if test "${ac_cv_prog_CC+set}" = set; then
8d138742 2847 $as_echo_n "(cached) " >&6
d9898ee8 2848else
2849 if test -n "$CC"; then
2850 ac_cv_prog_CC="$CC" # Let the user override the test.
2851else
2852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2853for as_dir in $PATH
2854do
2855 IFS=$as_save_IFS
2856 test -z "$as_dir" && as_dir=.
2857 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 2858 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2859 ac_cv_prog_CC="${ac_tool_prefix}cc"
8d138742 2860 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 2861 break 2
2862 fi
2863done
2864done
dd184caf 2865IFS=$as_save_IFS
d9898ee8 2866
2867fi
2868fi
2869CC=$ac_cv_prog_CC
2870if test -n "$CC"; then
8d138742
CE
2871 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2872$as_echo "$CC" >&6; }
d9898ee8 2873else
8d138742
CE
2874 { $as_echo "$as_me:$LINENO: result: no" >&5
2875$as_echo "no" >&6; }
d9898ee8 2876fi
2877
d9898ee8 2878
dd184caf 2879 fi
d9898ee8 2880fi
2881if test -z "$CC"; then
2882 # Extract the first word of "cc", so it can be a program name with args.
2883set dummy cc; ac_word=$2
8d138742
CE
2884{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2885$as_echo_n "checking for $ac_word... " >&6; }
d9898ee8 2886if test "${ac_cv_prog_CC+set}" = set; then
8d138742 2887 $as_echo_n "(cached) " >&6
d9898ee8 2888else
2889 if test -n "$CC"; then
2890 ac_cv_prog_CC="$CC" # Let the user override the test.
2891else
2892 ac_prog_rejected=no
2893as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2894for as_dir in $PATH
2895do
2896 IFS=$as_save_IFS
2897 test -z "$as_dir" && as_dir=.
2898 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 2899 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2900 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2901 ac_prog_rejected=yes
2902 continue
2903 fi
2904 ac_cv_prog_CC="cc"
8d138742 2905 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 2906 break 2
2907 fi
2908done
2909done
dd184caf 2910IFS=$as_save_IFS
d9898ee8 2911
2912if test $ac_prog_rejected = yes; then
2913 # We found a bogon in the path, so make sure we never use it.
2914 set dummy $ac_cv_prog_CC
2915 shift
2916 if test $# != 0; then
2917 # We chose a different compiler from the bogus one.
2918 # However, it has the same basename, so the bogon will be chosen
2919 # first if we set CC to just the basename; use the full file name.
2920 shift
2921 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2922 fi
2923fi
2924fi
2925fi
2926CC=$ac_cv_prog_CC
2927if test -n "$CC"; then
8d138742
CE
2928 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2929$as_echo "$CC" >&6; }
d9898ee8 2930else
8d138742
CE
2931 { $as_echo "$as_me:$LINENO: result: no" >&5
2932$as_echo "no" >&6; }
d9898ee8 2933fi
2934
dd184caf 2935
d9898ee8 2936fi
2937if test -z "$CC"; then
2938 if test -n "$ac_tool_prefix"; then
dd184caf 2939 for ac_prog in cl.exe
d9898ee8 2940 do
2941 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2942set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8d138742
CE
2943{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2944$as_echo_n "checking for $ac_word... " >&6; }
d9898ee8 2945if test "${ac_cv_prog_CC+set}" = set; then
8d138742 2946 $as_echo_n "(cached) " >&6
d9898ee8 2947else
2948 if test -n "$CC"; then
2949 ac_cv_prog_CC="$CC" # Let the user override the test.
2950else
2951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2952for as_dir in $PATH
2953do
2954 IFS=$as_save_IFS
2955 test -z "$as_dir" && as_dir=.
2956 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 2957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2958 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
8d138742 2959 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 2960 break 2
2961 fi
2962done
2963done
dd184caf 2964IFS=$as_save_IFS
d9898ee8 2965
2966fi
2967fi
2968CC=$ac_cv_prog_CC
2969if test -n "$CC"; then
8d138742
CE
2970 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2971$as_echo "$CC" >&6; }
d9898ee8 2972else
8d138742
CE
2973 { $as_echo "$as_me:$LINENO: result: no" >&5
2974$as_echo "no" >&6; }
d9898ee8 2975fi
2976
dd184caf 2977
d9898ee8 2978 test -n "$CC" && break
2979 done
2980fi
2981if test -z "$CC"; then
2982 ac_ct_CC=$CC
dd184caf 2983 for ac_prog in cl.exe
d9898ee8 2984do
2985 # Extract the first word of "$ac_prog", so it can be a program name with args.
2986set dummy $ac_prog; ac_word=$2
8d138742
CE
2987{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2988$as_echo_n "checking for $ac_word... " >&6; }
d9898ee8 2989if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
8d138742 2990 $as_echo_n "(cached) " >&6
d9898ee8 2991else
2992 if test -n "$ac_ct_CC"; then
2993 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2994else
2995as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2996for as_dir in $PATH
2997do
2998 IFS=$as_save_IFS
2999 test -z "$as_dir" && as_dir=.
3000 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 3001 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 3002 ac_cv_prog_ac_ct_CC="$ac_prog"
8d138742 3003 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 3004 break 2
3005 fi
3006done
3007done
dd184caf 3008IFS=$as_save_IFS
d9898ee8 3009
3010fi
3011fi
3012ac_ct_CC=$ac_cv_prog_ac_ct_CC
3013if test -n "$ac_ct_CC"; then
8d138742
CE
3014 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3015$as_echo "$ac_ct_CC" >&6; }
d9898ee8 3016else
8d138742
CE
3017 { $as_echo "$as_me:$LINENO: result: no" >&5
3018$as_echo "no" >&6; }
d9898ee8 3019fi
3020
dd184caf 3021
d9898ee8 3022 test -n "$ac_ct_CC" && break
3023done
3024
dd184caf 3025 if test "x$ac_ct_CC" = x; then
3026 CC=""
3027 else
3028 case $cross_compiling:$ac_tool_warned in
3029yes:)
8d138742
CE
3030{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3031$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
dd184caf 3032ac_tool_warned=yes ;;
3033esac
3034 CC=$ac_ct_CC
3035 fi
d9898ee8 3036fi
3037
3038fi
3039
3040
8d138742
CE
3041test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3042$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3043{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
d9898ee8 3044See \`config.log' for more details." >&5
8d138742 3045$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
d9898ee8 3046See \`config.log' for more details." >&2;}
8d138742 3047 { (exit 1); exit 1; }; }; }
d9898ee8 3048
3049# Provide some information about the compiler.
8d138742
CE
3050$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3051set X $ac_compile
3052ac_compiler=$2
dd184caf 3053{ (ac_try="$ac_compiler --version >&5"
3054case "(($ac_try" in
3055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3056 *) ac_try_echo=$ac_try;;
3057esac
8d138742
CE
3058eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3059$as_echo "$ac_try_echo") >&5
dd184caf 3060 (eval "$ac_compiler --version >&5") 2>&5
d9898ee8 3061 ac_status=$?
8d138742 3062 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9898ee8 3063 (exit $ac_status); }
dd184caf 3064{ (ac_try="$ac_compiler -v >&5"
3065case "(($ac_try" in
3066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3067 *) ac_try_echo=$ac_try;;
3068esac
8d138742
CE
3069eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3070$as_echo "$ac_try_echo") >&5
dd184caf 3071 (eval "$ac_compiler -v >&5") 2>&5
d9898ee8 3072 ac_status=$?
8d138742 3073 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9898ee8 3074 (exit $ac_status); }
dd184caf 3075{ (ac_try="$ac_compiler -V >&5"
3076case "(($ac_try" in
3077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3078 *) ac_try_echo=$ac_try;;
3079esac
8d138742
CE
3080eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3081$as_echo "$ac_try_echo") >&5
dd184caf 3082 (eval "$ac_compiler -V >&5") 2>&5
d9898ee8 3083 ac_status=$?
8d138742 3084 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9898ee8 3085 (exit $ac_status); }
3086
3087cat >conftest.$ac_ext <<_ACEOF
3088/* confdefs.h. */
3089_ACEOF
3090cat confdefs.h >>conftest.$ac_ext
3091cat >>conftest.$ac_ext <<_ACEOF
3092/* end confdefs.h. */
3093
3094int
3095main ()
3096{
3097
3098 ;
3099 return 0;
3100}
3101_ACEOF
3102ac_clean_files_save=$ac_clean_files
8d138742 3103ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
d9898ee8 3104# Try to create an executable without -o first, disregard a.out.
3105# It will help us diagnose broken compilers, and finding out an intuition
3106# of exeext.
8d138742
CE
3107{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3108$as_echo_n "checking for C compiler default output file name... " >&6; }
3109ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3110
3111# The possible output files:
3112ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3113
dd184caf 3114ac_rmfiles=
3115for ac_file in $ac_files
3116do
3117 case $ac_file in
8d138742 3118 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
dd184caf 3119 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3120 esac
3121done
3122rm -f $ac_rmfiles
3123
3124if { (ac_try="$ac_link_default"
3125case "(($ac_try" in
3126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3127 *) ac_try_echo=$ac_try;;
3128esac
8d138742
CE
3129eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3130$as_echo "$ac_try_echo") >&5
dd184caf 3131 (eval "$ac_link_default") 2>&5
d9898ee8 3132 ac_status=$?
8d138742 3133 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9898ee8 3134 (exit $ac_status); }; then
dd184caf 3135 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3136# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3137# in a Makefile. We should not override ac_cv_exeext if it was cached,
3138# so that the user can short-circuit this test for compilers unknown to
3139# Autoconf.
3140for ac_file in $ac_files ''
d9898ee8 3141do
3142 test -f "$ac_file" || continue
3143 case $ac_file in
8d138742 3144 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
d9898ee8 3145 ;;
3146 [ab].out )
3147 # We found the default executable, but exeext='' is most
3148 # certainly right.
3149 break;;
3150 *.* )
dd184caf 3151 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3152 then :; else
3153 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3154 fi
3155 # We set ac_cv_exeext here because the later test for it is not
3156 # safe: cross compilers may not add the suffix if given an `-o'
3157 # argument, so we may need to know it at that point already.
3158 # Even if this section looks crufty: it has the advantage of
3159 # actually working.
d9898ee8 3160 break;;
3161 * )
3162 break;;
3163 esac
3164done
dd184caf 3165test "$ac_cv_exeext" = no && ac_cv_exeext=
3166
d9898ee8 3167else
dd184caf 3168 ac_file=''
3169fi
3170
8d138742
CE
3171{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3172$as_echo "$ac_file" >&6; }
dd184caf 3173if test -z "$ac_file"; then
8d138742 3174 $as_echo "$as_me: failed program was:" >&5
d9898ee8 3175sed 's/^/| /' conftest.$ac_ext >&5
3176
8d138742
CE
3177{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3178$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3179{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
d9898ee8 3180See \`config.log' for more details." >&5
8d138742 3181$as_echo "$as_me: error: C compiler cannot create executables
d9898ee8 3182See \`config.log' for more details." >&2;}
8d138742 3183 { (exit 77); exit 77; }; }; }
d9898ee8 3184fi
3185
3186ac_exeext=$ac_cv_exeext
d9898ee8 3187
dd184caf 3188# Check that the compiler produces executables we can run. If not, either
d9898ee8 3189# the compiler is broken, or we cross compile.
8d138742
CE
3190{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3191$as_echo_n "checking whether the C compiler works... " >&6; }
d9898ee8 3192# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3193# If not cross compiling, check that we can run a simple program.
3194if test "$cross_compiling" != yes; then
3195 if { ac_try='./$ac_file'
dd184caf 3196 { (case "(($ac_try" in
3197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3198 *) ac_try_echo=$ac_try;;
3199esac
8d138742
CE
3200eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3201$as_echo "$ac_try_echo") >&5
dd184caf 3202 (eval "$ac_try") 2>&5
d9898ee8 3203 ac_status=$?
8d138742 3204 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9898ee8 3205 (exit $ac_status); }; }; then
3206 cross_compiling=no
3207 else
3208 if test "$cross_compiling" = maybe; then
3209 cross_compiling=yes
3210 else
8d138742
CE
3211 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3212$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3213{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
d9898ee8 3214If you meant to cross compile, use \`--host'.
3215See \`config.log' for more details." >&5
8d138742 3216$as_echo "$as_me: error: cannot run C compiled programs.
d9898ee8 3217If you meant to cross compile, use \`--host'.
3218See \`config.log' for more details." >&2;}
8d138742 3219 { (exit 1); exit 1; }; }; }
d9898ee8 3220 fi
3221 fi
3222fi
8d138742
CE
3223{ $as_echo "$as_me:$LINENO: result: yes" >&5
3224$as_echo "yes" >&6; }
d9898ee8 3225
8d138742 3226rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
d9898ee8 3227ac_clean_files=$ac_clean_files_save
dd184caf 3228# Check that the compiler produces executables we can run. If not, either
d9898ee8 3229# the compiler is broken, or we cross compile.
8d138742
CE
3230{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3231$as_echo_n "checking whether we are cross compiling... " >&6; }
3232{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3233$as_echo "$cross_compiling" >&6; }
dd184caf 3234
8d138742
CE
3235{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3236$as_echo_n "checking for suffix of executables... " >&6; }
dd184caf 3237if { (ac_try="$ac_link"
3238case "(($ac_try" in
3239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3240 *) ac_try_echo=$ac_try;;
3241esac
8d138742
CE
3242eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3243$as_echo "$ac_try_echo") >&5
dd184caf 3244 (eval "$ac_link") 2>&5
d9898ee8 3245 ac_status=$?
8d138742 3246 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9898ee8 3247 (exit $ac_status); }; then
3248 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3249# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3250# work properly (i.e., refer to `conftest.exe'), while it won't with
3251# `rm'.
3252for ac_file in conftest.exe conftest conftest.*; do
3253 test -f "$ac_file" || continue
3254 case $ac_file in
8d138742 3255 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
d9898ee8 3256 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
d9898ee8 3257 break;;
3258 * ) break;;
3259 esac
3260done
3261else
8d138742
CE
3262 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3263$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3264{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
d9898ee8 3265See \`config.log' for more details." >&5
8d138742 3266$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
d9898ee8 3267See \`config.log' for more details." >&2;}
8d138742 3268 { (exit 1); exit 1; }; }; }
d9898ee8 3269fi
3270
3271rm -f conftest$ac_cv_exeext
8d138742
CE
3272{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3273$as_echo "$ac_cv_exeext" >&6; }
d9898ee8 3274
3275rm -f conftest.$ac_ext
3276EXEEXT=$ac_cv_exeext
3277ac_exeext=$EXEEXT
8d138742
CE
3278{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3279$as_echo_n "checking for suffix of object files... " >&6; }
d9898ee8 3280if test "${ac_cv_objext+set}" = set; then
8d138742 3281 $as_echo_n "(cached) " >&6
d9898ee8 3282else
3283 cat >conftest.$ac_ext <<_ACEOF
3284/* confdefs.h. */
3285_ACEOF
3286cat confdefs.h >>conftest.$ac_ext
3287cat >>conftest.$ac_ext <<_ACEOF
3288/* end confdefs.h. */
3289
3290int
3291main ()
3292{
3293
3294 ;
3295 return 0;
3296}
3297_ACEOF
3298rm -f conftest.o conftest.obj
dd184caf 3299if { (ac_try="$ac_compile"
3300case "(($ac_try" in
3301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3302 *) ac_try_echo=$ac_try;;
3303esac
8d138742
CE
3304eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3305$as_echo "$ac_try_echo") >&5
dd184caf 3306 (eval "$ac_compile") 2>&5
d9898ee8 3307 ac_status=$?
8d138742 3308 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9898ee8 3309 (exit $ac_status); }; then
dd184caf 3310 for ac_file in conftest.o conftest.obj conftest.*; do
3311 test -f "$ac_file" || continue;
d9898ee8 3312 case $ac_file in
8d138742 3313 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
d9898ee8 3314 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3315 break;;
3316 esac
3317done
3318else
8d138742 3319 $as_echo "$as_me: failed program was:" >&5
d9898ee8 3320sed 's/^/| /' conftest.$ac_ext >&5
3321
8d138742
CE
3322{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3323$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3324{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
d9898ee8 3325See \`config.log' for more details." >&5
8d138742 3326$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
d9898ee8 3327See \`config.log' for more details." >&2;}
8d138742 3328 { (exit 1); exit 1; }; }; }
d9898ee8 3329fi
3330
3331rm -f conftest.$ac_cv_objext conftest.$ac_ext
3332fi
8d138742
CE
3333{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3334$as_echo "$ac_cv_objext" >&6; }
d9898ee8 3335OBJEXT=$ac_cv_objext
3336ac_objext=$OBJEXT
8d138742
CE
3337{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3338$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
d9898ee8 3339if test "${ac_cv_c_compiler_gnu+set}" = set; then
8d138742 3340 $as_echo_n "(cached) " >&6
d9898ee8 3341else
3342 cat >conftest.$ac_ext <<_ACEOF
3343/* confdefs.h. */
3344_ACEOF
3345cat confdefs.h >>conftest.$ac_ext
3346cat >>conftest.$ac_ext <<_ACEOF
3347/* end confdefs.h. */
3348
3349int
3350main ()
3351{
3352#ifndef __GNUC__
3353 choke me
3354#endif
3355
3356 ;
3357 return 0;
3358}
3359_ACEOF
3360rm -f conftest.$ac_objext
dd184caf 3361if { (ac_try="$ac_compile"
3362case "(($ac_try" in
3363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3364 *) ac_try_echo=$ac_try;;
3365esac
8d138742
CE
3366eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3367$as_echo "$ac_try_echo") >&5
dd184caf 3368 (eval "$ac_compile") 2>conftest.er1
d9898ee8 3369 ac_status=$?
3370 grep -v '^ *+' conftest.er1 >conftest.err
3371 rm -f conftest.er1
3372 cat conftest.err >&5
8d138742 3373 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 3374 (exit $ac_status); } && {
3375 test -z "$ac_c_werror_flag" ||
3376 test ! -s conftest.err
3377 } && test -s conftest.$ac_objext; then
d9898ee8 3378 ac_compiler_gnu=yes
3379else
8d138742 3380 $as_echo "$as_me: failed program was:" >&5
d9898ee8 3381sed 's/^/| /' conftest.$ac_ext >&5
3382
dd184caf 3383 ac_compiler_gnu=no
d9898ee8 3384fi
dd184caf 3385
3386rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 3387ac_cv_c_compiler_gnu=$ac_compiler_gnu
3388
3389fi
8d138742
CE
3390{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3391$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3392if test $ac_compiler_gnu = yes; then
3393 GCC=yes
3394else
3395 GCC=
3396fi
d9898ee8 3397ac_test_CFLAGS=${CFLAGS+set}
3398ac_save_CFLAGS=$CFLAGS
8d138742
CE
3399{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3400$as_echo_n "checking whether $CC accepts -g... " >&6; }
d9898ee8 3401if test "${ac_cv_prog_cc_g+set}" = set; then
8d138742 3402 $as_echo_n "(cached) " >&6
d9898ee8 3403else
dd184caf 3404 ac_save_c_werror_flag=$ac_c_werror_flag
3405 ac_c_werror_flag=yes
3406 ac_cv_prog_cc_g=no
3407 CFLAGS="-g"
3408 cat >conftest.$ac_ext <<_ACEOF
d9898ee8 3409/* confdefs.h. */
3410_ACEOF
3411cat confdefs.h >>conftest.$ac_ext
3412cat >>conftest.$ac_ext <<_ACEOF
3413/* end confdefs.h. */
3414
3415int
3416main ()
3417{
3418
3419 ;
3420 return 0;
3421}
3422_ACEOF
3423rm -f conftest.$ac_objext
dd184caf 3424if { (ac_try="$ac_compile"
3425case "(($ac_try" in
3426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3427 *) ac_try_echo=$ac_try;;
3428esac
8d138742
CE
3429eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3430$as_echo "$ac_try_echo") >&5
dd184caf 3431 (eval "$ac_compile") 2>conftest.er1
d9898ee8 3432 ac_status=$?
3433 grep -v '^ *+' conftest.er1 >conftest.err
3434 rm -f conftest.er1
3435 cat conftest.err >&5
8d138742 3436 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 3437 (exit $ac_status); } && {
3438 test -z "$ac_c_werror_flag" ||
3439 test ! -s conftest.err
3440 } && test -s conftest.$ac_objext; then
3441 ac_cv_prog_cc_g=yes
3442else
8d138742 3443 $as_echo "$as_me: failed program was:" >&5
dd184caf 3444sed 's/^/| /' conftest.$ac_ext >&5
3445
3446 CFLAGS=""
3447 cat >conftest.$ac_ext <<_ACEOF
3448/* confdefs.h. */
3449_ACEOF
3450cat confdefs.h >>conftest.$ac_ext
3451cat >>conftest.$ac_ext <<_ACEOF
3452/* end confdefs.h. */
3453
3454int
3455main ()
3456{
3457
3458 ;
3459 return 0;
3460}
3461_ACEOF
3462rm -f conftest.$ac_objext
3463if { (ac_try="$ac_compile"
3464case "(($ac_try" in
3465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3466 *) ac_try_echo=$ac_try;;
3467esac
8d138742
CE
3468eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3469$as_echo "$ac_try_echo") >&5
dd184caf 3470 (eval "$ac_compile") 2>conftest.er1
d9898ee8 3471 ac_status=$?
dd184caf 3472 grep -v '^ *+' conftest.er1 >conftest.err
3473 rm -f conftest.er1
3474 cat conftest.err >&5
8d138742 3475 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 3476 (exit $ac_status); } && {
3477 test -z "$ac_c_werror_flag" ||
3478 test ! -s conftest.err
3479 } && test -s conftest.$ac_objext; then
3480 :
3481else
8d138742 3482 $as_echo "$as_me: failed program was:" >&5
dd184caf 3483sed 's/^/| /' conftest.$ac_ext >&5
3484
3485 ac_c_werror_flag=$ac_save_c_werror_flag
3486 CFLAGS="-g"
3487 cat >conftest.$ac_ext <<_ACEOF
3488/* confdefs.h. */
3489_ACEOF
3490cat confdefs.h >>conftest.$ac_ext
3491cat >>conftest.$ac_ext <<_ACEOF
3492/* end confdefs.h. */
3493
3494int
3495main ()
3496{
3497
3498 ;
3499 return 0;
3500}
3501_ACEOF
3502rm -f conftest.$ac_objext
3503if { (ac_try="$ac_compile"
3504case "(($ac_try" in
3505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3506 *) ac_try_echo=$ac_try;;
3507esac
8d138742
CE
3508eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3509$as_echo "$ac_try_echo") >&5
dd184caf 3510 (eval "$ac_compile") 2>conftest.er1
d9898ee8 3511 ac_status=$?
dd184caf 3512 grep -v '^ *+' conftest.er1 >conftest.err
3513 rm -f conftest.er1
3514 cat conftest.err >&5
8d138742 3515 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 3516 (exit $ac_status); } && {
3517 test -z "$ac_c_werror_flag" ||
3518 test ! -s conftest.err
3519 } && test -s conftest.$ac_objext; then
d9898ee8 3520 ac_cv_prog_cc_g=yes
3521else
8d138742 3522 $as_echo "$as_me: failed program was:" >&5
d9898ee8 3523sed 's/^/| /' conftest.$ac_ext >&5
3524
dd184caf 3525
d9898ee8 3526fi
dd184caf 3527
3528rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3529fi
3530
3531rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3532fi
3533
3534rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3535 ac_c_werror_flag=$ac_save_c_werror_flag
d9898ee8 3536fi
8d138742
CE
3537{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3538$as_echo "$ac_cv_prog_cc_g" >&6; }
d9898ee8 3539if test "$ac_test_CFLAGS" = set; then
3540 CFLAGS=$ac_save_CFLAGS
3541elif test $ac_cv_prog_cc_g = yes; then
3542 if test "$GCC" = yes; then
3543 CFLAGS="-g -O2"
3544 else
3545 CFLAGS="-g"
3546 fi
3547else
3548 if test "$GCC" = yes; then
3549 CFLAGS="-O2"
3550 else
3551 CFLAGS=
3552 fi
3553fi
8d138742
CE
3554{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3555$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
dd184caf 3556if test "${ac_cv_prog_cc_c89+set}" = set; then
8d138742 3557 $as_echo_n "(cached) " >&6
d9898ee8 3558else
dd184caf 3559 ac_cv_prog_cc_c89=no
d9898ee8 3560ac_save_CC=$CC
3561cat >conftest.$ac_ext <<_ACEOF
3562/* confdefs.h. */
3563_ACEOF
3564cat confdefs.h >>conftest.$ac_ext
3565cat >>conftest.$ac_ext <<_ACEOF
3566/* end confdefs.h. */
3567#include <stdarg.h>
3568#include <stdio.h>
3569#include <sys/types.h>
3570#include <sys/stat.h>
3571/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3572struct buf { int x; };
3573FILE * (*rcsopen) (struct buf *, struct stat *, int);
3574static char *e (p, i)
3575 char **p;
3576 int i;
3577{
3578 return p[i];
3579}
3580static char *f (char * (*g) (char **, int), char **p, ...)
3581{
3582 char *s;
3583 va_list v;
3584 va_start (v,p);
3585 s = g (p, va_arg (v,int));
3586 va_end (v);
3587 return s;
3588}
3589
3590/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3591 function prototypes and stuff, but not '\xHH' hex character constants.
3592 These don't provoke an error unfortunately, instead are silently treated
dd184caf 3593 as 'x'. The following induces an error, until -std is added to get
d9898ee8 3594 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3595 array size at least. It's necessary to write '\x00'==0 to get something
dd184caf 3596 that's true only with -std. */
d9898ee8 3597int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3598
dd184caf 3599/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3600 inside strings and character constants. */
3601#define FOO(x) 'x'
3602int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3603
d9898ee8 3604int test (int i, double x);
3605struct s1 {int (*f) (int a);};
3606struct s2 {int (*f) (double a);};
3607int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3608int argc;
3609char **argv;
3610int
3611main ()
3612{
3613return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3614 ;
3615 return 0;
3616}
3617_ACEOF
dd184caf 3618for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3619 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
d9898ee8 3620do
3621 CC="$ac_save_CC $ac_arg"
3622 rm -f conftest.$ac_objext
dd184caf 3623if { (ac_try="$ac_compile"
3624case "(($ac_try" in
3625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3626 *) ac_try_echo=$ac_try;;
3627esac
8d138742
CE
3628eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3629$as_echo "$ac_try_echo") >&5
dd184caf 3630 (eval "$ac_compile") 2>conftest.er1
d9898ee8 3631 ac_status=$?
3632 grep -v '^ *+' conftest.er1 >conftest.err
3633 rm -f conftest.er1
3634 cat conftest.err >&5
8d138742 3635 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 3636 (exit $ac_status); } && {
3637 test -z "$ac_c_werror_flag" ||
3638 test ! -s conftest.err
3639 } && test -s conftest.$ac_objext; then
3640 ac_cv_prog_cc_c89=$ac_arg
d9898ee8 3641else
8d138742 3642 $as_echo "$as_me: failed program was:" >&5
d9898ee8 3643sed 's/^/| /' conftest.$ac_ext >&5
3644
dd184caf 3645
d9898ee8 3646fi
dd184caf 3647
3648rm -f core conftest.err conftest.$ac_objext
3649 test "x$ac_cv_prog_cc_c89" != "xno" && break
d9898ee8 3650done
dd184caf 3651rm -f conftest.$ac_ext
d9898ee8 3652CC=$ac_save_CC
3653
3654fi
dd184caf 3655# AC_CACHE_VAL
3656case "x$ac_cv_prog_cc_c89" in
3657 x)
8d138742
CE
3658 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3659$as_echo "none needed" >&6; } ;;
dd184caf 3660 xno)
8d138742
CE
3661 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3662$as_echo "unsupported" >&6; } ;;
d9898ee8 3663 *)
dd184caf 3664 CC="$CC $ac_cv_prog_cc_c89"
8d138742
CE
3665 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3666$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
d9898ee8 3667esac
3668
d9898ee8 3669
d9898ee8 3670ac_ext=c
3671ac_cpp='$CPP $CPPFLAGS'
3672ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3673ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3674ac_compiler_gnu=$ac_cv_c_compiler_gnu
3675DEPDIR="${am__leading_dot}deps"
3676
dd184caf 3677ac_config_commands="$ac_config_commands depfiles"
d9898ee8 3678
3679
3680am_make=${MAKE-make}
3681cat > confinc << 'END'
3682am__doit:
8d138742 3683 @echo this is the am__doit target
d9898ee8 3684.PHONY: am__doit
3685END
3686# If we don't find an include directive, just comment out the code.
8d138742
CE
3687{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3688$as_echo_n "checking for style of include used by $am_make... " >&6; }
d9898ee8 3689am__include="#"
3690am__quote=
3691_am_result=none
3692# First try GNU make style include.
3693echo "include confinc" > confmf
8d138742
CE
3694# Ignore all kinds of additional output from `make'.
3695case `$am_make -s -f confmf 2> /dev/null` in #(
3696*the\ am__doit\ target*)
3697 am__include=include
3698 am__quote=
3699 _am_result=GNU
3700 ;;
3701esac
d9898ee8 3702# Now try BSD make style include.
3703if test "$am__include" = "#"; then
3704 echo '.include "confinc"' > confmf
8d138742
CE
3705 case `$am_make -s -f confmf 2> /dev/null` in #(
3706 *the\ am__doit\ target*)
3707 am__include=.include
3708 am__quote="\""
3709 _am_result=BSD
3710 ;;
3711 esac
d9898ee8 3712fi
3713
3714
8d138742
CE
3715{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
3716$as_echo "$_am_result" >&6; }
d9898ee8 3717rm -f confinc confmf
3718
dd184caf 3719# Check whether --enable-dependency-tracking was given.
d9898ee8 3720if test "${enable_dependency_tracking+set}" = set; then
dd184caf 3721 enableval=$enable_dependency_tracking;
3722fi
d9898ee8 3723
d9898ee8 3724if test "x$enable_dependency_tracking" != xno; then
3725 am_depcomp="$ac_aux_dir/depcomp"
3726 AMDEPBACKSLASH='\'
3727fi
dd184caf 3728 if test "x$enable_dependency_tracking" != xno; then
d9898ee8 3729 AMDEP_TRUE=
3730 AMDEP_FALSE='#'
3731else
3732 AMDEP_TRUE='#'
3733 AMDEP_FALSE=
3734fi
3735
3736
3737
d9898ee8 3738depcc="$CC" am_compiler_list=
3739
8d138742
CE
3740{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3741$as_echo_n "checking dependency style of $depcc... " >&6; }
d9898ee8 3742if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
8d138742 3743 $as_echo_n "(cached) " >&6
d9898ee8 3744else
3745 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3746 # We make a subdir and do the tests there. Otherwise we can end up
3747 # making bogus files that we don't know about and never remove. For
3748 # instance it was reported that on HP-UX the gcc test will end up
3749 # making a dummy file named `D' -- because `-MD' means `put the output
3750 # in D'.
3751 mkdir conftest.dir
3752 # Copy depcomp to subdir because otherwise we won't find it if we're
3753 # using a relative directory.
3754 cp "$am_depcomp" conftest.dir
3755 cd conftest.dir
3756 # We will build objects and dependencies in a subdirectory because
3757 # it helps to detect inapplicable dependency modes. For instance
3758 # both Tru64's cc and ICC support -MD to output dependencies as a
3759 # side effect of compilation, but ICC will put the dependencies in
3760 # the current directory while Tru64 will put them in the object
3761 # directory.
3762 mkdir sub
3763
3764 am_cv_CC_dependencies_compiler_type=none
3765 if test "$am_compiler_list" = ""; then
3766 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3767 fi
8d138742
CE
3768 am__universal=false
3769 case " $depcc " in #(
3770 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3771 esac
3772
d9898ee8 3773 for depmode in $am_compiler_list; do
3774 # Setup a source with many dependencies, because some compilers
3775 # like to wrap large dependency lists on column 80 (with \), and
3776 # we should not choose a depcomp mode which is confused by this.
3777 #
3778 # We need to recreate these files for each test, as the compiler may
3779 # overwrite some of them when testing with obscure command lines.
3780 # This happens at least with the AIX C compiler.
3781 : > sub/conftest.c
3782 for i in 1 2 3 4 5 6; do
3783 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3784 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3785 # Solaris 8's {/usr,}/bin/sh.
3786 touch sub/conftst$i.h
3787 done
3788 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3789
8d138742
CE
3790 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3791 # mode. It turns out that the SunPro C++ compiler does not properly
3792 # handle `-M -o', and we need to detect this. Also, some Intel
3793 # versions had trouble with output in subdirs
3794 am__obj=sub/conftest.${OBJEXT-o}
3795 am__minus_obj="-o $am__obj"
d9898ee8 3796 case $depmode in
8d138742
CE
3797 gcc)
3798 # This depmode causes a compiler race in universal mode.
3799 test "$am__universal" = false || continue
3800 ;;
d9898ee8 3801 nosideeffect)
3802 # after this tag, mechanisms are not by side-effect, so they'll
3803 # only be used when explicitly requested
3804 if test "x$enable_dependency_tracking" = xyes; then
3805 continue
3806 else
3807 break
3808 fi
3809 ;;
8d138742
CE
3810 msvisualcpp | msvcmsys)
3811 # This compiler won't grok `-c -o', but also, the minuso test has
3812 # not run yet. These depmodes are late enough in the game, and
3813 # so weak that their functioning should not be impacted.
3814 am__obj=conftest.${OBJEXT-o}
3815 am__minus_obj=
3816 ;;
d9898ee8 3817 none) break ;;
3818 esac
d9898ee8 3819 if depmode=$depmode \
8d138742 3820 source=sub/conftest.c object=$am__obj \
d9898ee8 3821 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8d138742 3822 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
d9898ee8 3823 >/dev/null 2>conftest.err &&
dd184caf 3824 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
d9898ee8 3825 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8d138742 3826 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
d9898ee8 3827 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3828 # icc doesn't choke on unknown options, it will just issue warnings
3829 # or remarks (even with -Werror). So we grep stderr for any message
3830 # that says an option was ignored or not supported.
3831 # When given -MP, icc 7.0 and 7.1 complain thusly:
3832 # icc: Command line warning: ignoring option '-M'; no argument required
3833 # The diagnosis changed in icc 8.0:
3834 # icc: Command line remark: option '-MP' not supported
3835 if (grep 'ignoring option' conftest.err ||
3836 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3837 am_cv_CC_dependencies_compiler_type=$depmode
3838 break
3839 fi
3840 fi
3841 done
3842
3843 cd ..
3844 rm -rf conftest.dir
3845else
3846 am_cv_CC_dependencies_compiler_type=none
3847fi
3848
3849fi
8d138742
CE
3850{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3851$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
d9898ee8 3852CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3853
dd184caf 3854 if
d9898ee8 3855 test "x$enable_dependency_tracking" != xno \
3856 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3857 am__fastdepCC_TRUE=
3858 am__fastdepCC_FALSE='#'
3859else
3860 am__fastdepCC_TRUE='#'
3861 am__fastdepCC_FALSE=
3862fi
3863
3864
3865ac_ext=c
3866ac_cpp='$CPP $CPPFLAGS'
3867ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3868ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3869ac_compiler_gnu=$ac_cv_c_compiler_gnu
8d138742
CE
3870{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3871$as_echo_n "checking how to run the C preprocessor... " >&6; }
d9898ee8 3872# On Suns, sometimes $CPP names a directory.
3873if test -n "$CPP" && test -d "$CPP"; then
3874 CPP=
3875fi
3876if test -z "$CPP"; then
3877 if test "${ac_cv_prog_CPP+set}" = set; then
8d138742 3878 $as_echo_n "(cached) " >&6
d9898ee8 3879else
3880 # Double quotes because CPP needs to be expanded
3881 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3882 do
3883 ac_preproc_ok=false
3884for ac_c_preproc_warn_flag in '' yes
3885do
3886 # Use a header file that comes with gcc, so configuring glibc
3887 # with a fresh cross-compiler works.
3888 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3889 # <limits.h> exists even on freestanding compilers.
3890 # On the NeXT, cc -E runs the code through the compiler's parser,
3891 # not just through cpp. "Syntax error" is here to catch this case.
3892 cat >conftest.$ac_ext <<_ACEOF
3893/* confdefs.h. */
3894_ACEOF
3895cat confdefs.h >>conftest.$ac_ext
3896cat >>conftest.$ac_ext <<_ACEOF
3897/* end confdefs.h. */
3898#ifdef __STDC__
3899# include <limits.h>
3900#else
3901# include <assert.h>
3902#endif
3903 Syntax error
3904_ACEOF
dd184caf 3905if { (ac_try="$ac_cpp conftest.$ac_ext"
3906case "(($ac_try" in
3907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3908 *) ac_try_echo=$ac_try;;
3909esac
8d138742
CE
3910eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3911$as_echo "$ac_try_echo") >&5
dd184caf 3912 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 3913 ac_status=$?
3914 grep -v '^ *+' conftest.er1 >conftest.err
3915 rm -f conftest.er1
3916 cat conftest.err >&5
8d138742 3917 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 3918 (exit $ac_status); } >/dev/null && {
3919 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3920 test ! -s conftest.err
3921 }; then
d9898ee8 3922 :
3923else
8d138742 3924 $as_echo "$as_me: failed program was:" >&5
d9898ee8 3925sed 's/^/| /' conftest.$ac_ext >&5
3926
3927 # Broken: fails on valid input.
3928continue
3929fi
dd184caf 3930
d9898ee8 3931rm -f conftest.err conftest.$ac_ext
3932
dd184caf 3933 # OK, works on sane cases. Now check whether nonexistent headers
d9898ee8 3934 # can be detected and how.
3935 cat >conftest.$ac_ext <<_ACEOF
3936/* confdefs.h. */
3937_ACEOF
3938cat confdefs.h >>conftest.$ac_ext
3939cat >>conftest.$ac_ext <<_ACEOF
3940/* end confdefs.h. */
3941#include <ac_nonexistent.h>
3942_ACEOF
dd184caf 3943if { (ac_try="$ac_cpp conftest.$ac_ext"
3944case "(($ac_try" in
3945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3946 *) ac_try_echo=$ac_try;;
3947esac
8d138742
CE
3948eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3949$as_echo "$ac_try_echo") >&5
dd184caf 3950 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 3951 ac_status=$?
3952 grep -v '^ *+' conftest.er1 >conftest.err
3953 rm -f conftest.er1
3954 cat conftest.err >&5
8d138742 3955 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 3956 (exit $ac_status); } >/dev/null && {
3957 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3958 test ! -s conftest.err
3959 }; then
d9898ee8 3960 # Broken: success on invalid input.
3961continue
3962else
8d138742 3963 $as_echo "$as_me: failed program was:" >&5
d9898ee8 3964sed 's/^/| /' conftest.$ac_ext >&5
3965
3966 # Passes both tests.
3967ac_preproc_ok=:
3968break
3969fi
dd184caf 3970
d9898ee8 3971rm -f conftest.err conftest.$ac_ext
3972
3973done
3974# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3975rm -f conftest.err conftest.$ac_ext
3976if $ac_preproc_ok; then
3977 break
3978fi
3979
3980 done
3981 ac_cv_prog_CPP=$CPP
3982
3983fi
3984 CPP=$ac_cv_prog_CPP
3985else
3986 ac_cv_prog_CPP=$CPP
3987fi
8d138742
CE
3988{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
3989$as_echo "$CPP" >&6; }
d9898ee8 3990ac_preproc_ok=false
3991for ac_c_preproc_warn_flag in '' yes
3992do
3993 # Use a header file that comes with gcc, so configuring glibc
3994 # with a fresh cross-compiler works.
3995 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3996 # <limits.h> exists even on freestanding compilers.
3997 # On the NeXT, cc -E runs the code through the compiler's parser,
3998 # not just through cpp. "Syntax error" is here to catch this case.
3999 cat >conftest.$ac_ext <<_ACEOF
4000/* confdefs.h. */
4001_ACEOF
4002cat confdefs.h >>conftest.$ac_ext
4003cat >>conftest.$ac_ext <<_ACEOF
4004/* end confdefs.h. */
4005#ifdef __STDC__
4006# include <limits.h>
4007#else
4008# include <assert.h>
4009#endif
4010 Syntax error
4011_ACEOF
dd184caf 4012if { (ac_try="$ac_cpp conftest.$ac_ext"
4013case "(($ac_try" in
4014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4015 *) ac_try_echo=$ac_try;;
4016esac
8d138742
CE
4017eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4018$as_echo "$ac_try_echo") >&5
dd184caf 4019 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 4020 ac_status=$?
4021 grep -v '^ *+' conftest.er1 >conftest.err
4022 rm -f conftest.er1
4023 cat conftest.err >&5
8d138742 4024 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 4025 (exit $ac_status); } >/dev/null && {
4026 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4027 test ! -s conftest.err
4028 }; then
d9898ee8 4029 :
4030else
8d138742 4031 $as_echo "$as_me: failed program was:" >&5
d9898ee8 4032sed 's/^/| /' conftest.$ac_ext >&5
4033
4034 # Broken: fails on valid input.
4035continue
4036fi
dd184caf 4037
d9898ee8 4038rm -f conftest.err conftest.$ac_ext
4039
dd184caf 4040 # OK, works on sane cases. Now check whether nonexistent headers
d9898ee8 4041 # can be detected and how.
4042 cat >conftest.$ac_ext <<_ACEOF
4043/* confdefs.h. */
4044_ACEOF
4045cat confdefs.h >>conftest.$ac_ext
4046cat >>conftest.$ac_ext <<_ACEOF
4047/* end confdefs.h. */
4048#include <ac_nonexistent.h>
4049_ACEOF
dd184caf 4050if { (ac_try="$ac_cpp conftest.$ac_ext"
4051case "(($ac_try" in
4052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4053 *) ac_try_echo=$ac_try;;
4054esac
8d138742
CE
4055eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4056$as_echo "$ac_try_echo") >&5
dd184caf 4057 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 4058 ac_status=$?
4059 grep -v '^ *+' conftest.er1 >conftest.err
4060 rm -f conftest.er1
4061 cat conftest.err >&5
8d138742 4062 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 4063 (exit $ac_status); } >/dev/null && {
4064 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4065 test ! -s conftest.err
4066 }; then
d9898ee8 4067 # Broken: success on invalid input.
4068continue
4069else
8d138742 4070 $as_echo "$as_me: failed program was:" >&5
d9898ee8 4071sed 's/^/| /' conftest.$ac_ext >&5
4072
4073 # Passes both tests.
4074ac_preproc_ok=:
4075break
4076fi
dd184caf 4077
d9898ee8 4078rm -f conftest.err conftest.$ac_ext
4079
4080done
4081# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4082rm -f conftest.err conftest.$ac_ext
4083if $ac_preproc_ok; then
4084 :
4085else
8d138742
CE
4086 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4087$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4088{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
d9898ee8 4089See \`config.log' for more details." >&5
8d138742 4090$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
d9898ee8 4091See \`config.log' for more details." >&2;}
8d138742 4092 { (exit 1); exit 1; }; }; }
d9898ee8 4093fi
4094
4095ac_ext=c
4096ac_cpp='$CPP $CPPFLAGS'
4097ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4098ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4099ac_compiler_gnu=$ac_cv_c_compiler_gnu
4100
4101# Find a good install program. We prefer a C program (faster),
4102# so one script is as good as another. But avoid the broken or
4103# incompatible versions:
4104# SysV /etc/install, /usr/sbin/install
4105# SunOS /usr/etc/install
4106# IRIX /sbin/install
4107# AIX /bin/install
4108# AmigaOS /C/install, which installs bootblocks on floppy discs
4109# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4110# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4111# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4112# OS/2's system install, which has a completely different semantic
4113# ./install, which can be erroneously created by make from ./install.sh.
8d138742
CE
4114# Reject install programs that cannot install multiple files.
4115{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4116$as_echo_n "checking for a BSD-compatible install... " >&6; }
d9898ee8 4117if test -z "$INSTALL"; then
4118if test "${ac_cv_path_install+set}" = set; then
8d138742 4119 $as_echo_n "(cached) " >&6
d9898ee8 4120else
4121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4122for as_dir in $PATH
4123do
4124 IFS=$as_save_IFS
4125 test -z "$as_dir" && as_dir=.
4126 # Account for people who put trailing slashes in PATH elements.
4127case $as_dir/ in
4128 ./ | .// | /cC/* | \
4129 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4130 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4131 /usr/ucb/* ) ;;
4132 *)
4133 # OSF1 and SCO ODT 3.0 have their own names for install.
4134 # Don't use installbsd from OSF since it installs stuff as root
4135 # by default.
4136 for ac_prog in ginstall scoinst install; do
4137 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 4138 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
d9898ee8 4139 if test $ac_prog = install &&
4140 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4141 # AIX install. It has an incompatible calling convention.
4142 :
4143 elif test $ac_prog = install &&
4144 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4145 # program-specific install script used by HP pwplus--don't use.
4146 :
4147 else
8d138742
CE
4148 rm -rf conftest.one conftest.two conftest.dir
4149 echo one > conftest.one
4150 echo two > conftest.two
4151 mkdir conftest.dir
4152 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4153 test -s conftest.one && test -s conftest.two &&
4154 test -s conftest.dir/conftest.one &&
4155 test -s conftest.dir/conftest.two
4156 then
4157 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4158 break 3
4159 fi
d9898ee8 4160 fi
4161 fi
4162 done
4163 done
4164 ;;
4165esac
8d138742 4166
d9898ee8 4167done
dd184caf 4168IFS=$as_save_IFS
d9898ee8 4169
8d138742 4170rm -rf conftest.one conftest.two conftest.dir
d9898ee8 4171
4172fi
4173 if test "${ac_cv_path_install+set}" = set; then
4174 INSTALL=$ac_cv_path_install
4175 else
dd184caf 4176 # As a last resort, use the slow shell script. Don't cache a
4177 # value for INSTALL within a source directory, because that will
d9898ee8 4178 # break other packages using the cache if that directory is
dd184caf 4179 # removed, or if the value is a relative name.
d9898ee8 4180 INSTALL=$ac_install_sh
4181 fi
4182fi
8d138742
CE
4183{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
4184$as_echo "$INSTALL" >&6; }
d9898ee8 4185
4186# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4187# It thinks the first close brace ends the variable substitution.
4188test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4189
4190test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4191
4192test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4193
8d138742
CE
4194{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4195$as_echo_n "checking whether ln -s works... " >&6; }
d9898ee8 4196LN_S=$as_ln_s
4197if test "$LN_S" = "ln -s"; then
8d138742
CE
4198 { $as_echo "$as_me:$LINENO: result: yes" >&5
4199$as_echo "yes" >&6; }
d9898ee8 4200else
8d138742
CE
4201 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4202$as_echo "no, using $LN_S" >&6; }
d9898ee8 4203fi
4204
4205
4206
4207 for ac_prog in perl5 perl
4208do
4209 # Extract the first word of "$ac_prog", so it can be a program name with args.
4210set dummy $ac_prog; ac_word=$2
8d138742
CE
4211{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4212$as_echo_n "checking for $ac_word... " >&6; }
d9898ee8 4213if test "${ac_cv_path_SYSCONFTOOL_PERL+set}" = set; then
8d138742 4214 $as_echo_n "(cached) " >&6
d9898ee8 4215else
4216 case $SYSCONFTOOL_PERL in
4217 [\\/]* | ?:[\\/]*)
4218 ac_cv_path_SYSCONFTOOL_PERL="$SYSCONFTOOL_PERL" # Let the user override the test with a path.
4219 ;;
4220 *)
4221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4222for as_dir in $PATH
4223do
4224 IFS=$as_save_IFS
4225 test -z "$as_dir" && as_dir=.
4226 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 4227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 4228 ac_cv_path_SYSCONFTOOL_PERL="$as_dir/$ac_word$ac_exec_ext"
8d138742 4229 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 4230 break 2
4231 fi
4232done
4233done
dd184caf 4234IFS=$as_save_IFS
d9898ee8 4235
4236 ;;
4237esac
4238fi
4239SYSCONFTOOL_PERL=$ac_cv_path_SYSCONFTOOL_PERL
d9898ee8 4240if test -n "$SYSCONFTOOL_PERL"; then
8d138742
CE
4241 { $as_echo "$as_me:$LINENO: result: $SYSCONFTOOL_PERL" >&5
4242$as_echo "$SYSCONFTOOL_PERL" >&6; }
d9898ee8 4243else
8d138742
CE
4244 { $as_echo "$as_me:$LINENO: result: no" >&5
4245$as_echo "no" >&6; }
d9898ee8 4246fi
4247
dd184caf 4248
d9898ee8 4249 test -n "$SYSCONFTOOL_PERL" && break
4250done
4251test -n "$SYSCONFTOOL_PERL" || SYSCONFTOOL_PERL="perl"
4252
4253
4254 if test "$SYSCONFTOOL_PERL" = "perl"
4255 then
8d138742
CE
4256 { { $as_echo "$as_me:$LINENO: error: perl not found - please install perl" >&5
4257$as_echo "$as_me: error: perl not found - please install perl" >&2;}
d9898ee8 4258 { (exit 1); exit 1; }; }
4259 fi
4260
8d138742
CE
4261 { $as_echo "$as_me:$LINENO: checking for sysconftool..." >&5
4262$as_echo_n "checking for sysconftool...... " >&6; }
d9898ee8 4263 SYSCONFTOOL=""
4264 for sysconf_dir in $ac_aux_dir . .. ../..
4265 do
4266 if test -f $srcdir/$sysconf_dir/sysconftool
4267 then
4268 SYSCONFTOOL=$srcdir/$sysconf_dir/sysconftool
4269 break
4270 fi
4271 done
4272
4273 if test "$SYSCONFTOOL" = ""
4274 then
8d138742
CE
4275 { { $as_echo "$as_me:$LINENO: error: sysconftool missing - not in the package" >&5
4276$as_echo "$as_me: error: sysconftool missing - not in the package" >&2;}
d9898ee8 4277 { (exit 1); exit 1; }; }
4278 fi
4279
8d138742
CE
4280 { $as_echo "$as_me:$LINENO: result: $SYSCONFTOOL" >&5
4281$as_echo "$SYSCONFTOOL" >&6; }
d9898ee8 4282 SYSCONFTOOL="$SYSCONFTOOL_PERL $SYSCONFTOOL"
4283
4284
4285
4286
d9898ee8 4287
8d138742
CE
4288
4289
4290
4291
4292
4293
4294case `pwd` in
4295 *\ * | *\ *)
4296 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4297$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
dd184caf 4298esac
d9898ee8 4299
dd184caf 4300
d9898ee8 4301
8d138742
CE
4302macro_version='2.2.6'
4303macro_revision='1.3012'
4304
4305
4306
4307
d9898ee8 4308
d9898ee8 4309
4310
4311
d9898ee8 4312
dd184caf 4313
d9898ee8 4314
dd184caf 4315
dd184caf 4316
8d138742 4317ltmain="$ac_aux_dir/ltmain.sh"
d9898ee8 4318
4319# Make sure we can run config.sub.
dd184caf 4320$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
8d138742
CE
4321 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4322$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
d9898ee8 4323 { (exit 1); exit 1; }; }
4324
8d138742
CE
4325{ $as_echo "$as_me:$LINENO: checking build system type" >&5
4326$as_echo_n "checking build system type... " >&6; }
d9898ee8 4327if test "${ac_cv_build+set}" = set; then
8d138742 4328 $as_echo_n "(cached) " >&6
d9898ee8 4329else
dd184caf 4330 ac_build_alias=$build_alias
4331test "x$ac_build_alias" = x &&
4332 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4333test "x$ac_build_alias" = x &&
8d138742
CE
4334 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4335$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
d9898ee8 4336 { (exit 1); exit 1; }; }
dd184caf 4337ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
8d138742
CE
4338 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4339$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
d9898ee8 4340 { (exit 1); exit 1; }; }
4341
4342fi
8d138742
CE
4343{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4344$as_echo "$ac_cv_build" >&6; }
dd184caf 4345case $ac_cv_build in
4346*-*-*) ;;
8d138742
CE
4347*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4348$as_echo "$as_me: error: invalid value of canonical build" >&2;}
dd184caf 4349 { (exit 1); exit 1; }; };;
4350esac
d9898ee8 4351build=$ac_cv_build
dd184caf 4352ac_save_IFS=$IFS; IFS='-'
4353set x $ac_cv_build
4354shift
4355build_cpu=$1
4356build_vendor=$2
4357shift; shift
4358# Remember, the first character of IFS is used to create $*,
4359# except with old shells:
4360build_os=$*
4361IFS=$ac_save_IFS
4362case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4363
4364
8d138742
CE
4365{ $as_echo "$as_me:$LINENO: checking host system type" >&5
4366$as_echo_n "checking host system type... " >&6; }
d9898ee8 4367if test "${ac_cv_host+set}" = set; then
8d138742 4368 $as_echo_n "(cached) " >&6
d9898ee8 4369else
dd184caf 4370 if test "x$host_alias" = x; then
4371 ac_cv_host=$ac_cv_build
4372else
4373 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
8d138742
CE
4374 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4375$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
d9898ee8 4376 { (exit 1); exit 1; }; }
dd184caf 4377fi
d9898ee8 4378
4379fi
8d138742
CE
4380{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4381$as_echo "$ac_cv_host" >&6; }
dd184caf 4382case $ac_cv_host in
4383*-*-*) ;;
8d138742
CE
4384*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4385$as_echo "$as_me: error: invalid value of canonical host" >&2;}
dd184caf 4386 { (exit 1); exit 1; }; };;
4387esac
d9898ee8 4388host=$ac_cv_host
dd184caf 4389ac_save_IFS=$IFS; IFS='-'
4390set x $ac_cv_host
4391shift
4392host_cpu=$1
4393host_vendor=$2
4394shift; shift
4395# Remember, the first character of IFS is used to create $*,
4396# except with old shells:
4397host_os=$*
4398IFS=$ac_save_IFS
4399case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4400
4401
8d138742
CE
4402{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4403$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4404if test "${ac_cv_path_SED+set}" = set; then
4405 $as_echo_n "(cached) " >&6
4406else
4407 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4408 for ac_i in 1 2 3 4 5 6 7; do
4409 ac_script="$ac_script$as_nl$ac_script"
4410 done
4411 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4412 $as_unset ac_script || ac_script=
4413 if test -z "$SED"; then
4414 ac_path_SED_found=false
4415 # Loop through the user's path and test for each of PROGNAME-LIST
4416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
d9898ee8 4417for as_dir in $PATH
4418do
4419 IFS=$as_save_IFS
4420 test -z "$as_dir" && as_dir=.
8d138742 4421 for ac_prog in sed gsed; do
d9898ee8 4422 for ac_exec_ext in '' $ac_executable_extensions; do
8d138742
CE
4423 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4424 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4425# Check for GNU ac_path_SED and select it if it is found.
4426 # Check for GNU $ac_path_SED
4427case `"$ac_path_SED" --version 2>&1` in
dd184caf 4428*GNU*)
8d138742 4429 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
dd184caf 4430*)
4431 ac_count=0
8d138742 4432 $as_echo_n 0123456789 >"conftest.in"
dd184caf 4433 while :
4434 do
4435 cat "conftest.in" "conftest.in" >"conftest.tmp"
4436 mv "conftest.tmp" "conftest.in"
4437 cp "conftest.in" "conftest.nl"
8d138742
CE
4438 $as_echo '' >> "conftest.nl"
4439 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
dd184caf 4440 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4441 ac_count=`expr $ac_count + 1`
8d138742 4442 if test $ac_count -gt ${ac_path_SED_max-0}; then
dd184caf 4443 # Best one so far, save it but keep looking for a better one
8d138742
CE
4444 ac_cv_path_SED="$ac_path_SED"
4445 ac_path_SED_max=$ac_count
dd184caf 4446 fi
4447 # 10*(2^10) chars as input seems more than enough
4448 test $ac_count -gt 10 && break
4449 done
4450 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4451esac
4452
8d138742
CE
4453 $ac_path_SED_found && break 3
4454 done
dd184caf 4455 done
4456done
dd184caf 4457IFS=$as_save_IFS
8d138742
CE
4458 if test -z "$ac_cv_path_SED"; then
4459 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
4460$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
4461 { (exit 1); exit 1; }; }
4462 fi
4463else
4464 ac_cv_path_SED=$SED
dd184caf 4465fi
4466
dd184caf 4467fi
8d138742
CE
4468{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
4469$as_echo "$ac_cv_path_SED" >&6; }
4470 SED="$ac_cv_path_SED"
4471 rm -f conftest.sed
4472
4473test -z "$SED" && SED=sed
4474Xsed="$SED -e 1s/^X//"
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4487$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4488if test "${ac_cv_path_GREP+set}" = set; then
4489 $as_echo_n "(cached) " >&6
4490else
4491 if test -z "$GREP"; then
4492 ac_path_GREP_found=false
4493 # Loop through the user's path and test for each of PROGNAME-LIST
4494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4495for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4496do
4497 IFS=$as_save_IFS
4498 test -z "$as_dir" && as_dir=.
4499 for ac_prog in grep ggrep; do
4500 for ac_exec_ext in '' $ac_executable_extensions; do
4501 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4502 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4503# Check for GNU ac_path_GREP and select it if it is found.
4504 # Check for GNU $ac_path_GREP
4505case `"$ac_path_GREP" --version 2>&1` in
4506*GNU*)
4507 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4508*)
4509 ac_count=0
4510 $as_echo_n 0123456789 >"conftest.in"
4511 while :
4512 do
4513 cat "conftest.in" "conftest.in" >"conftest.tmp"
4514 mv "conftest.tmp" "conftest.in"
4515 cp "conftest.in" "conftest.nl"
4516 $as_echo 'GREP' >> "conftest.nl"
4517 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4518 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4519 ac_count=`expr $ac_count + 1`
4520 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4521 # Best one so far, save it but keep looking for a better one
4522 ac_cv_path_GREP="$ac_path_GREP"
4523 ac_path_GREP_max=$ac_count
4524 fi
4525 # 10*(2^10) chars as input seems more than enough
4526 test $ac_count -gt 10 && break
4527 done
4528 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4529esac
dd184caf 4530
8d138742
CE
4531 $ac_path_GREP_found && break 3
4532 done
4533 done
4534done
4535IFS=$as_save_IFS
4536 if test -z "$ac_cv_path_GREP"; then
4537 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4538$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4539 { (exit 1); exit 1; }; }
4540 fi
dd184caf 4541else
4542 ac_cv_path_GREP=$GREP
4543fi
4544
dd184caf 4545fi
8d138742
CE
4546{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4547$as_echo "$ac_cv_path_GREP" >&6; }
dd184caf 4548 GREP="$ac_cv_path_GREP"
4549
d9898ee8 4550
8d138742
CE
4551{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
4552$as_echo_n "checking for egrep... " >&6; }
dd184caf 4553if test "${ac_cv_path_EGREP+set}" = set; then
8d138742 4554 $as_echo_n "(cached) " >&6
dd184caf 4555else
4556 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4557 then ac_cv_path_EGREP="$GREP -E"
4558 else
8d138742 4559 if test -z "$EGREP"; then
dd184caf 4560 ac_path_EGREP_found=false
8d138742
CE
4561 # Loop through the user's path and test for each of PROGNAME-LIST
4562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
dd184caf 4563for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4564do
4565 IFS=$as_save_IFS
4566 test -z "$as_dir" && as_dir=.
4567 for ac_prog in egrep; do
8d138742
CE
4568 for ac_exec_ext in '' $ac_executable_extensions; do
4569 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4570 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4571# Check for GNU ac_path_EGREP and select it if it is found.
dd184caf 4572 # Check for GNU $ac_path_EGREP
4573case `"$ac_path_EGREP" --version 2>&1` in
4574*GNU*)
4575 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4576*)
4577 ac_count=0
8d138742 4578 $as_echo_n 0123456789 >"conftest.in"
dd184caf 4579 while :
4580 do
4581 cat "conftest.in" "conftest.in" >"conftest.tmp"
4582 mv "conftest.tmp" "conftest.in"
4583 cp "conftest.in" "conftest.nl"
8d138742 4584 $as_echo 'EGREP' >> "conftest.nl"
dd184caf 4585 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4586 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4587 ac_count=`expr $ac_count + 1`
4588 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4589 # Best one so far, save it but keep looking for a better one
4590 ac_cv_path_EGREP="$ac_path_EGREP"
4591 ac_path_EGREP_max=$ac_count
d9898ee8 4592 fi
dd184caf 4593 # 10*(2^10) chars as input seems more than enough
4594 test $ac_count -gt 10 && break
4595 done
4596 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4597esac
4598
8d138742
CE
4599 $ac_path_EGREP_found && break 3
4600 done
dd184caf 4601 done
4602done
dd184caf 4603IFS=$as_save_IFS
8d138742
CE
4604 if test -z "$ac_cv_path_EGREP"; then
4605 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4606$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4607 { (exit 1); exit 1; }; }
4608 fi
4609else
4610 ac_cv_path_EGREP=$EGREP
dd184caf 4611fi
4612
8d138742 4613 fi
dd184caf 4614fi
8d138742
CE
4615{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4616$as_echo "$ac_cv_path_EGREP" >&6; }
4617 EGREP="$ac_cv_path_EGREP"
dd184caf 4618
8d138742
CE
4619
4620{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5
4621$as_echo_n "checking for fgrep... " >&6; }
4622if test "${ac_cv_path_FGREP+set}" = set; then
4623 $as_echo_n "(cached) " >&6
dd184caf 4624else
8d138742
CE
4625 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4626 then ac_cv_path_FGREP="$GREP -F"
4627 else
4628 if test -z "$FGREP"; then
4629 ac_path_FGREP_found=false
4630 # Loop through the user's path and test for each of PROGNAME-LIST
4631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4632for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4633do
4634 IFS=$as_save_IFS
4635 test -z "$as_dir" && as_dir=.
4636 for ac_prog in fgrep; do
4637 for ac_exec_ext in '' $ac_executable_extensions; do
4638 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4639 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4640# Check for GNU ac_path_FGREP and select it if it is found.
4641 # Check for GNU $ac_path_FGREP
4642case `"$ac_path_FGREP" --version 2>&1` in
4643*GNU*)
4644 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4645*)
4646 ac_count=0
4647 $as_echo_n 0123456789 >"conftest.in"
4648 while :
4649 do
4650 cat "conftest.in" "conftest.in" >"conftest.tmp"
4651 mv "conftest.tmp" "conftest.in"
4652 cp "conftest.in" "conftest.nl"
4653 $as_echo 'FGREP' >> "conftest.nl"
4654 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4655 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4656 ac_count=`expr $ac_count + 1`
4657 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4658 # Best one so far, save it but keep looking for a better one
4659 ac_cv_path_FGREP="$ac_path_FGREP"
4660 ac_path_FGREP_max=$ac_count
4661 fi
4662 # 10*(2^10) chars as input seems more than enough
4663 test $ac_count -gt 10 && break
4664 done
4665 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4666esac
dd184caf 4667
8d138742
CE
4668 $ac_path_FGREP_found && break 3
4669 done
4670 done
4671done
4672IFS=$as_save_IFS
4673 if test -z "$ac_cv_path_FGREP"; then
4674 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4675$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4676 { (exit 1); exit 1; }; }
4677 fi
4678else
4679 ac_cv_path_FGREP=$FGREP
4680fi
dd184caf 4681
4682 fi
d9898ee8 4683fi
8d138742
CE
4684{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4685$as_echo "$ac_cv_path_FGREP" >&6; }
4686 FGREP="$ac_cv_path_FGREP"
4687
4688
4689test -z "$GREP" && GREP=grep
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
d9898ee8 4706
4707
4708
dd184caf 4709# Check whether --with-gnu-ld was given.
d9898ee8 4710if test "${with_gnu_ld+set}" = set; then
dd184caf 4711 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
d9898ee8 4712else
4713 with_gnu_ld=no
dd184caf 4714fi
4715
d9898ee8 4716ac_prog=ld
4717if test "$GCC" = yes; then
4718 # Check if gcc -print-prog-name=ld gives a path.
8d138742
CE
4719 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4720$as_echo_n "checking for ld used by $CC... " >&6; }
d9898ee8 4721 case $host in
4722 *-*-mingw*)
4723 # gcc leaves a trailing carriage return which upsets mingw
4724 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4725 *)
4726 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4727 esac
4728 case $ac_prog in
4729 # Accept absolute paths.
4730 [\\/]* | ?:[\\/]*)
4731 re_direlt='/[^/][^/]*/\.\./'
4732 # Canonicalize the pathname of ld
8d138742
CE
4733 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4734 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4735 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
d9898ee8 4736 done
4737 test -z "$LD" && LD="$ac_prog"
4738 ;;
4739 "")
4740 # If it fails, then pretend we aren't using GCC.
4741 ac_prog=ld
4742 ;;
4743 *)
4744 # If it is relative, then search for the first ld in PATH.
4745 with_gnu_ld=unknown
4746 ;;
4747 esac
4748elif test "$with_gnu_ld" = yes; then
8d138742
CE
4749 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4750$as_echo_n "checking for GNU ld... " >&6; }
d9898ee8 4751else
8d138742
CE
4752 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4753$as_echo_n "checking for non-GNU ld... " >&6; }
d9898ee8 4754fi
4755if test "${lt_cv_path_LD+set}" = set; then
8d138742 4756 $as_echo_n "(cached) " >&6
d9898ee8 4757else
4758 if test -z "$LD"; then
4759 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4760 for ac_dir in $PATH; do
4761 IFS="$lt_save_ifs"
4762 test -z "$ac_dir" && ac_dir=.
4763 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4764 lt_cv_path_LD="$ac_dir/$ac_prog"
4765 # Check to see if the program is GNU ld. I'd rather use --version,
4766 # but apparently some variants of GNU ld only accept -v.
4767 # Break only if it was the GNU/non-GNU ld that we prefer.
4768 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4769 *GNU* | *'with BFD'*)
4770 test "$with_gnu_ld" != no && break
4771 ;;
4772 *)
4773 test "$with_gnu_ld" != yes && break
4774 ;;
4775 esac
4776 fi
4777 done
4778 IFS="$lt_save_ifs"
4779else
4780 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4781fi
4782fi
4783
4784LD="$lt_cv_path_LD"
4785if test -n "$LD"; then
8d138742
CE
4786 { $as_echo "$as_me:$LINENO: result: $LD" >&5
4787$as_echo "$LD" >&6; }
d9898ee8 4788else
8d138742
CE
4789 { $as_echo "$as_me:$LINENO: result: no" >&5
4790$as_echo "no" >&6; }
d9898ee8 4791fi
8d138742
CE
4792test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4793$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
d9898ee8 4794 { (exit 1); exit 1; }; }
8d138742
CE
4795{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4796$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
d9898ee8 4797if test "${lt_cv_prog_gnu_ld+set}" = set; then
8d138742 4798 $as_echo_n "(cached) " >&6
d9898ee8 4799else
4800 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4801case `$LD -v 2>&1 </dev/null` in
4802*GNU* | *'with BFD'*)
4803 lt_cv_prog_gnu_ld=yes
4804 ;;
4805*)
4806 lt_cv_prog_gnu_ld=no
4807 ;;
4808esac
4809fi
8d138742
CE
4810{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4811$as_echo "$lt_cv_prog_gnu_ld" >&6; }
d9898ee8 4812with_gnu_ld=$lt_cv_prog_gnu_ld
4813
4814
d9898ee8 4815
8d138742
CE
4816
4817
4818
4819
4820
4821
4822{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4823$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
d9898ee8 4824if test "${lt_cv_path_NM+set}" = set; then
8d138742 4825 $as_echo_n "(cached) " >&6
d9898ee8 4826else
4827 if test -n "$NM"; then
4828 # Let the user override the test.
4829 lt_cv_path_NM="$NM"
4830else
4831 lt_nm_to_check="${ac_tool_prefix}nm"
4832 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4833 lt_nm_to_check="$lt_nm_to_check nm"
4834 fi
4835 for lt_tmp_nm in $lt_nm_to_check; do
4836 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4837 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4838 IFS="$lt_save_ifs"
4839 test -z "$ac_dir" && ac_dir=.
4840 tmp_nm="$ac_dir/$lt_tmp_nm"
4841 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4842 # Check to see if the nm accepts a BSD-compat flag.
4843 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4844 # nm: unknown option "B" ignored
4845 # Tru64's nm complains that /dev/null is an invalid object file
4846 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4847 */dev/null* | *'Invalid file or object type'*)
4848 lt_cv_path_NM="$tmp_nm -B"
4849 break
4850 ;;
4851 *)
4852 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4853 */dev/null*)
4854 lt_cv_path_NM="$tmp_nm -p"
4855 break
4856 ;;
4857 *)
4858 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4859 continue # so that we can try to find one that supports BSD flags
4860 ;;
4861 esac
4862 ;;
4863 esac
4864 fi
4865 done
4866 IFS="$lt_save_ifs"
4867 done
8d138742 4868 : ${lt_cv_path_NM=no}
d9898ee8 4869fi
4870fi
8d138742
CE
4871{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4872$as_echo "$lt_cv_path_NM" >&6; }
4873if test "$lt_cv_path_NM" != "no"; then
4874 NM="$lt_cv_path_NM"
4875else
4876 # Didn't find any BSD compatible name lister, look for dumpbin.
4877 if test -n "$ac_tool_prefix"; then
4878 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4879 do
4880 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4881set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4882{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4883$as_echo_n "checking for $ac_word... " >&6; }
4884if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4885 $as_echo_n "(cached) " >&6
4886else
4887 if test -n "$DUMPBIN"; then
4888 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4889else
4890as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4891for as_dir in $PATH
4892do
4893 IFS=$as_save_IFS
4894 test -z "$as_dir" && as_dir=.
4895 for ac_exec_ext in '' $ac_executable_extensions; do
4896 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4897 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4898 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4899 break 2
4900 fi
4901done
4902done
4903IFS=$as_save_IFS
d9898ee8 4904
8d138742
CE
4905fi
4906fi
4907DUMPBIN=$ac_cv_prog_DUMPBIN
4908if test -n "$DUMPBIN"; then
4909 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4910$as_echo "$DUMPBIN" >&6; }
d9898ee8 4911else
8d138742
CE
4912 { $as_echo "$as_me:$LINENO: result: no" >&5
4913$as_echo "no" >&6; }
4914fi
d9898ee8 4915
d9898ee8 4916
8d138742
CE
4917 test -n "$DUMPBIN" && break
4918 done
4919fi
4920if test -z "$DUMPBIN"; then
4921 ac_ct_DUMPBIN=$DUMPBIN
4922 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4923do
4924 # Extract the first word of "$ac_prog", so it can be a program name with args.
4925set dummy $ac_prog; ac_word=$2
4926{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4927$as_echo_n "checking for $ac_word... " >&6; }
4928if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4929 $as_echo_n "(cached) " >&6
4930else
4931 if test -n "$ac_ct_DUMPBIN"; then
4932 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4933else
4934as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4935for as_dir in $PATH
4936do
4937 IFS=$as_save_IFS
4938 test -z "$as_dir" && as_dir=.
4939 for ac_exec_ext in '' $ac_executable_extensions; do
4940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4941 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4942 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4943 break 2
4944 fi
4945done
4946done
4947IFS=$as_save_IFS
d9898ee8 4948
8d138742
CE
4949fi
4950fi
4951ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4952if test -n "$ac_ct_DUMPBIN"; then
4953 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4954$as_echo "$ac_ct_DUMPBIN" >&6; }
4955else
4956 { $as_echo "$as_me:$LINENO: result: no" >&5
4957$as_echo "no" >&6; }
4958fi
d9898ee8 4959
d9898ee8 4960
8d138742
CE
4961 test -n "$ac_ct_DUMPBIN" && break
4962done
4963
4964 if test "x$ac_ct_DUMPBIN" = x; then
4965 DUMPBIN=":"
ac40fd9e 4966 else
8d138742
CE
4967 case $cross_compiling:$ac_tool_warned in
4968yes:)
4969{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4970$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4971ac_tool_warned=yes ;;
4972esac
4973 DUMPBIN=$ac_ct_DUMPBIN
ac40fd9e 4974 fi
8d138742 4975fi
d9898ee8 4976
d9898ee8 4977
8d138742
CE
4978 if test "$DUMPBIN" != ":"; then
4979 NM="$DUMPBIN"
d9898ee8 4980 fi
8d138742
CE
4981fi
4982test -z "$NM" && NM=nm
d9898ee8 4983
d9898ee8 4984
d9898ee8 4985
d9898ee8 4986
d9898ee8 4987
d9898ee8 4988
8d138742
CE
4989{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4990$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4991if test "${lt_cv_nm_interface+set}" = set; then
4992 $as_echo_n "(cached) " >&6
4993else
4994 lt_cv_nm_interface="BSD nm"
4995 echo "int some_variable = 0;" > conftest.$ac_ext
4996 (eval echo "\"\$as_me:4996: $ac_compile\"" >&5)
4997 (eval "$ac_compile" 2>conftest.err)
4998 cat conftest.err >&5
4999 (eval echo "\"\$as_me:4999: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5000 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5001 cat conftest.err >&5
5002 (eval echo "\"\$as_me:5002: output\"" >&5)
5003 cat conftest.out >&5
5004 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5005 lt_cv_nm_interface="MS dumpbin"
d9898ee8 5006 fi
8d138742
CE
5007 rm -f conftest*
5008fi
5009{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
5010$as_echo "$lt_cv_nm_interface" >&6; }
d9898ee8 5011
8d138742
CE
5012# find the maximum length of command line arguments
5013{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5014$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5015if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5016 $as_echo_n "(cached) " >&6
5017else
5018 i=0
5019 teststring="ABCD"
d9898ee8 5020
8d138742
CE
5021 case $build_os in
5022 msdosdjgpp*)
5023 # On DJGPP, this test can blow up pretty badly due to problems in libc
5024 # (any single argument exceeding 2000 bytes causes a buffer overrun
5025 # during glob expansion). Even if it were fixed, the result of this
5026 # check would be larger than it should be.
5027 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5028 ;;
d9898ee8 5029
8d138742
CE
5030 gnu*)
5031 # Under GNU Hurd, this test is not required because there is
5032 # no limit to the length of command line arguments.
5033 # Libtool will interpret -1 as no limit whatsoever
5034 lt_cv_sys_max_cmd_len=-1;
5035 ;;
d9898ee8 5036
8d138742
CE
5037 cygwin* | mingw* | cegcc*)
5038 # On Win9x/ME, this test blows up -- it succeeds, but takes
5039 # about 5 minutes as the teststring grows exponentially.
5040 # Worse, since 9x/ME are not pre-emptively multitasking,
5041 # you end up with a "frozen" computer, even though with patience
5042 # the test eventually succeeds (with a max line length of 256k).
5043 # Instead, let's just punt: use the minimum linelength reported by
5044 # all of the supported platforms: 8192 (on NT/2K/XP).
5045 lt_cv_sys_max_cmd_len=8192;
5046 ;;
ac40fd9e 5047
8d138742
CE
5048 amigaos*)
5049 # On AmigaOS with pdksh, this test takes hours, literally.
5050 # So we just punt and use a minimum line length of 8192.
5051 lt_cv_sys_max_cmd_len=8192;
5052 ;;
d9898ee8 5053
8d138742
CE
5054 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5055 # This has been around since 386BSD, at least. Likely further.
5056 if test -x /sbin/sysctl; then
5057 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5058 elif test -x /usr/sbin/sysctl; then
5059 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5060 else
5061 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5062 fi
5063 # And add a safety zone
5064 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5065 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
d9898ee8 5066 ;;
8d138742
CE
5067
5068 interix*)
5069 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5070 lt_cv_sys_max_cmd_len=196608
d9898ee8 5071 ;;
8d138742
CE
5072
5073 osf*)
5074 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5075 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5076 # nice to cause kernel panics so lets avoid the loop below.
5077 # First set a reasonable default.
5078 lt_cv_sys_max_cmd_len=16384
5079 #
5080 if test -x /sbin/sysconfig; then
5081 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5082 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5083 esac
5084 fi
d9898ee8 5085 ;;
8d138742
CE
5086 sco3.2v5*)
5087 lt_cv_sys_max_cmd_len=102400
d9898ee8 5088 ;;
8d138742
CE
5089 sysv5* | sco5v6* | sysv4.2uw2*)
5090 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5091 if test -n "$kargmax"; then
5092 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5093 else
5094 lt_cv_sys_max_cmd_len=32768
5095 fi
d9898ee8 5096 ;;
8d138742
CE
5097 *)
5098 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5099 if test -n "$lt_cv_sys_max_cmd_len"; then
5100 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5101 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5102 else
5103 # Make teststring a little bigger before we do anything with it.
5104 # a 1K string should be a reasonable start.
5105 for i in 1 2 3 4 5 6 7 8 ; do
5106 teststring=$teststring$teststring
5107 done
5108 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5109 # If test is not a shell built-in, we'll probably end up computing a
5110 # maximum length that is only half of the actual maximum length, but
5111 # we can't tell.
5112 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5113 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5114 test $i != 17 # 1/2 MB should be enough
5115 do
5116 i=`expr $i + 1`
5117 teststring=$teststring$teststring
5118 done
5119 # Only check the string length outside the loop.
5120 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5121 teststring=
5122 # Add a significant safety factor because C++ compilers can tack on
5123 # massive amounts of additional arguments before passing them to the
5124 # linker. It appears as though 1/2 is a usable value.
5125 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5126 fi
d9898ee8 5127 ;;
5128 esac
d9898ee8 5129
8d138742 5130fi
d9898ee8 5131
8d138742
CE
5132if test -n $lt_cv_sys_max_cmd_len ; then
5133 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5134$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5135else
5136 { $as_echo "$as_me:$LINENO: result: none" >&5
5137$as_echo "none" >&6; }
d9898ee8 5138fi
8d138742 5139max_cmd_len=$lt_cv_sys_max_cmd_len
d9898ee8 5140
5141
5142
5143
d9898ee8 5144
d9898ee8 5145
8d138742
CE
5146: ${CP="cp -f"}
5147: ${MV="mv -f"}
5148: ${RM="rm -f"}
d9898ee8 5149
8d138742
CE
5150{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
5151$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5152# Try some XSI features
5153xsi_shell=no
5154( _lt_dummy="a/b/c"
5155 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5156 = c,a/b,, \
5157 && eval 'test $(( 1 + 1 )) -eq 2 \
5158 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5159 && xsi_shell=yes
5160{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
5161$as_echo "$xsi_shell" >&6; }
5162
5163
5164{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
5165$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5166lt_shell_append=no
5167( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5168 >/dev/null 2>&1 \
5169 && lt_shell_append=yes
5170{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
5171$as_echo "$lt_shell_append" >&6; }
5172
5173
5174if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5175 lt_unset=unset
5176else
5177 lt_unset=false
dd184caf 5178fi
d9898ee8 5179
d9898ee8 5180
8d138742
CE
5181
5182
5183
5184# test EBCDIC or ASCII
5185case `echo X|tr X '\101'` in
5186 A) # ASCII based system
5187 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5188 lt_SP2NL='tr \040 \012'
5189 lt_NL2SP='tr \015\012 \040\040'
d9898ee8 5190 ;;
8d138742
CE
5191 *) # EBCDIC based system
5192 lt_SP2NL='tr \100 \n'
5193 lt_NL2SP='tr \r\n \100\100'
d9898ee8 5194 ;;
8d138742 5195esac
d9898ee8 5196
d9898ee8 5197
d9898ee8 5198
d9898ee8 5199
d9898ee8 5200
d9898ee8 5201
dd184caf 5202
d9898ee8 5203
8d138742
CE
5204
5205{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5206$as_echo_n "checking for $LD option to reload object files... " >&6; }
5207if test "${lt_cv_ld_reload_flag+set}" = set; then
5208 $as_echo_n "(cached) " >&6
5209else
5210 lt_cv_ld_reload_flag='-r'
d9898ee8 5211fi
8d138742
CE
5212{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5213$as_echo "$lt_cv_ld_reload_flag" >&6; }
5214reload_flag=$lt_cv_ld_reload_flag
5215case $reload_flag in
5216"" | " "*) ;;
5217*) reload_flag=" $reload_flag" ;;
5218esac
5219reload_cmds='$LD$reload_flag -o $output$reload_objs'
5220case $host_os in
5221 darwin*)
5222 if test "$GCC" = yes; then
5223 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5224 else
5225 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5226 fi
5227 ;;
5228esac
d9898ee8 5229
5230
d9898ee8 5231
d9898ee8 5232
5233
5234
d9898ee8 5235
d9898ee8 5236
8d138742
CE
5237
5238if test -n "$ac_tool_prefix"; then
5239 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5240set dummy ${ac_tool_prefix}objdump; ac_word=$2
5241{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5242$as_echo_n "checking for $ac_word... " >&6; }
5243if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5244 $as_echo_n "(cached) " >&6
d9898ee8 5245else
8d138742
CE
5246 if test -n "$OBJDUMP"; then
5247 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5248else
5249as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5250for as_dir in $PATH
5251do
5252 IFS=$as_save_IFS
5253 test -z "$as_dir" && as_dir=.
5254 for ac_exec_ext in '' $ac_executable_extensions; do
5255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5256 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5257 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5258 break 2
5259 fi
5260done
5261done
5262IFS=$as_save_IFS
d9898ee8 5263
8d138742
CE
5264fi
5265fi
5266OBJDUMP=$ac_cv_prog_OBJDUMP
5267if test -n "$OBJDUMP"; then
5268 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5269$as_echo "$OBJDUMP" >&6; }
5270else
5271 { $as_echo "$as_me:$LINENO: result: no" >&5
5272$as_echo "no" >&6; }
d9898ee8 5273fi
dd184caf 5274
d9898ee8 5275
8d138742
CE
5276fi
5277if test -z "$ac_cv_prog_OBJDUMP"; then
5278 ac_ct_OBJDUMP=$OBJDUMP
5279 # Extract the first word of "objdump", so it can be a program name with args.
5280set dummy objdump; ac_word=$2
5281{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5282$as_echo_n "checking for $ac_word... " >&6; }
5283if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5284 $as_echo_n "(cached) " >&6
5285else
5286 if test -n "$ac_ct_OBJDUMP"; then
5287 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5288else
5289as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5290for as_dir in $PATH
5291do
5292 IFS=$as_save_IFS
5293 test -z "$as_dir" && as_dir=.
5294 for ac_exec_ext in '' $ac_executable_extensions; do
5295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5296 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5297 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5298 break 2
5299 fi
5300done
5301done
5302IFS=$as_save_IFS
d9898ee8 5303
8d138742
CE
5304fi
5305fi
5306ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5307if test -n "$ac_ct_OBJDUMP"; then
5308 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5309$as_echo "$ac_ct_OBJDUMP" >&6; }
d9898ee8 5310else
8d138742
CE
5311 { $as_echo "$as_me:$LINENO: result: no" >&5
5312$as_echo "no" >&6; }
d9898ee8 5313fi
d9898ee8 5314
8d138742
CE
5315 if test "x$ac_ct_OBJDUMP" = x; then
5316 OBJDUMP="false"
5317 else
5318 case $cross_compiling:$ac_tool_warned in
5319yes:)
5320{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5321$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5322ac_tool_warned=yes ;;
5323esac
5324 OBJDUMP=$ac_ct_OBJDUMP
5325 fi
5326else
5327 OBJDUMP="$ac_cv_prog_OBJDUMP"
d9898ee8 5328fi
5329
8d138742 5330test -z "$OBJDUMP" && OBJDUMP=objdump
d9898ee8 5331
d9898ee8 5332
d9898ee8 5333
d9898ee8 5334
d9898ee8 5335
dd184caf 5336
5337
d9898ee8 5338
d9898ee8 5339
8d138742
CE
5340{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5341$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5342if test "${lt_cv_deplibs_check_method+set}" = set; then
5343 $as_echo_n "(cached) " >&6
5344else
5345 lt_cv_file_magic_cmd='$MAGIC_CMD'
5346lt_cv_file_magic_test_file=
5347lt_cv_deplibs_check_method='unknown'
5348# Need to set the preceding variable on all platforms that support
5349# interlibrary dependencies.
5350# 'none' -- dependencies not supported.
5351# `unknown' -- same as none, but documents that we really don't know.
5352# 'pass_all' -- all dependencies passed with no checks.
5353# 'test_compile' -- check by making test program.
5354# 'file_magic [[regex]]' -- check by looking for files in library path
5355# which responds to the $file_magic_cmd with a given extended regex.
5356# If you have `file' or equivalent on your system and you're not sure
5357# whether `pass_all' will *always* work, you probably want this one.
d9898ee8 5358
8d138742
CE
5359case $host_os in
5360aix[4-9]*)
5361 lt_cv_deplibs_check_method=pass_all
5362 ;;
d9898ee8 5363
8d138742
CE
5364beos*)
5365 lt_cv_deplibs_check_method=pass_all
5366 ;;
d9898ee8 5367
8d138742
CE
5368bsdi[45]*)
5369 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5370 lt_cv_file_magic_cmd='/usr/bin/file -L'
5371 lt_cv_file_magic_test_file=/shlib/libc.so
5372 ;;
d9898ee8 5373
8d138742
CE
5374cygwin*)
5375 # func_win32_libid is a shell function defined in ltmain.sh
5376 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5377 lt_cv_file_magic_cmd='func_win32_libid'
5378 ;;
d9898ee8 5379
8d138742
CE
5380mingw* | pw32*)
5381 # Base MSYS/MinGW do not provide the 'file' command needed by
5382 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5383 # unless we find 'file', for example because we are cross-compiling.
5384 if ( file / ) >/dev/null 2>&1; then
5385 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5386 lt_cv_file_magic_cmd='func_win32_libid'
5387 else
5388 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5389 lt_cv_file_magic_cmd='$OBJDUMP -f'
5390 fi
5391 ;;
d9898ee8 5392
8d138742
CE
5393cegcc)
5394 # use the weaker test based on 'objdump'. See mingw*.
5395 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5396 lt_cv_file_magic_cmd='$OBJDUMP -f'
5397 ;;
d9898ee8 5398
8d138742
CE
5399darwin* | rhapsody*)
5400 lt_cv_deplibs_check_method=pass_all
5401 ;;
d9898ee8 5402
8d138742
CE
5403freebsd* | dragonfly*)
5404 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5405 case $host_cpu in
5406 i*86 )
5407 # Not sure whether the presence of OpenBSD here was a mistake.
5408 # Let's accept both of them until this is cleared up.
5409 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5410 lt_cv_file_magic_cmd=/usr/bin/file
5411 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5412 ;;
5413 esac
5414 else
5415 lt_cv_deplibs_check_method=pass_all
5416 fi
5417 ;;
d9898ee8 5418
8d138742
CE
5419gnu*)
5420 lt_cv_deplibs_check_method=pass_all
5421 ;;
d9898ee8 5422
8d138742
CE
5423hpux10.20* | hpux11*)
5424 lt_cv_file_magic_cmd=/usr/bin/file
5425 case $host_cpu in
5426 ia64*)
5427 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5428 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5429 ;;
5430 hppa*64*)
5431 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]'
5432 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5433 ;;
5434 *)
5435 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5436 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5437 ;;
5438 esac
5439 ;;
d9898ee8 5440
8d138742
CE
5441interix[3-9]*)
5442 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5443 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5444 ;;
d9898ee8 5445
8d138742
CE
5446irix5* | irix6* | nonstopux*)
5447 case $LD in
5448 *-32|*"-32 ") libmagic=32-bit;;
5449 *-n32|*"-n32 ") libmagic=N32;;
5450 *-64|*"-64 ") libmagic=64-bit;;
5451 *) libmagic=never-match;;
5452 esac
5453 lt_cv_deplibs_check_method=pass_all
5454 ;;
dd184caf 5455
8d138742
CE
5456# This must be Linux ELF.
5457linux* | k*bsd*-gnu)
5458 lt_cv_deplibs_check_method=pass_all
5459 ;;
d9898ee8 5460
8d138742
CE
5461netbsd*)
5462 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5463 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5464 else
5465 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5466 fi
5467 ;;
d9898ee8 5468
8d138742
CE
5469newos6*)
5470 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5471 lt_cv_file_magic_cmd=/usr/bin/file
5472 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5473 ;;
d9898ee8 5474
8d138742
CE
5475*nto* | *qnx*)
5476 lt_cv_deplibs_check_method=pass_all
5477 ;;
d9898ee8 5478
8d138742
CE
5479openbsd*)
5480 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5481 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5482 else
5483 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5484 fi
5485 ;;
d9898ee8 5486
8d138742
CE
5487osf3* | osf4* | osf5*)
5488 lt_cv_deplibs_check_method=pass_all
5489 ;;
d9898ee8 5490
8d138742
CE
5491rdos*)
5492 lt_cv_deplibs_check_method=pass_all
5493 ;;
dd184caf 5494
8d138742
CE
5495solaris*)
5496 lt_cv_deplibs_check_method=pass_all
5497 ;;
d9898ee8 5498
8d138742
CE
5499sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5500 lt_cv_deplibs_check_method=pass_all
5501 ;;
d9898ee8 5502
8d138742
CE
5503sysv4 | sysv4.3*)
5504 case $host_vendor in
5505 motorola)
5506 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]'
5507 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
d9898ee8 5508 ;;
8d138742
CE
5509 ncr)
5510 lt_cv_deplibs_check_method=pass_all
5511 ;;
5512 sequent)
5513 lt_cv_file_magic_cmd='/bin/file'
5514 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5515 ;;
5516 sni)
5517 lt_cv_file_magic_cmd='/bin/file'
5518 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5519 lt_cv_file_magic_test_file=/lib/libc.so
5520 ;;
5521 siemens)
5522 lt_cv_deplibs_check_method=pass_all
d9898ee8 5523 ;;
8d138742
CE
5524 pc)
5525 lt_cv_deplibs_check_method=pass_all
5526 ;;
5527 esac
5528 ;;
5529
5530tpf*)
5531 lt_cv_deplibs_check_method=pass_all
5532 ;;
d9898ee8 5533esac
d9898ee8 5534
5535fi
8d138742
CE
5536{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5537$as_echo "$lt_cv_deplibs_check_method" >&6; }
5538file_magic_cmd=$lt_cv_file_magic_cmd
5539deplibs_check_method=$lt_cv_deplibs_check_method
5540test -z "$deplibs_check_method" && deplibs_check_method=unknown
d9898ee8 5541
d9898ee8 5542
d9898ee8 5543
8d138742
CE
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553if test -n "$ac_tool_prefix"; then
5554 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5555set dummy ${ac_tool_prefix}ar; ac_word=$2
5556{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5557$as_echo_n "checking for $ac_word... " >&6; }
5558if test "${ac_cv_prog_AR+set}" = set; then
5559 $as_echo_n "(cached) " >&6
d9898ee8 5560else
8d138742
CE
5561 if test -n "$AR"; then
5562 ac_cv_prog_AR="$AR" # Let the user override the test.
d9898ee8 5563else
5564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5565for as_dir in $PATH
5566do
5567 IFS=$as_save_IFS
5568 test -z "$as_dir" && as_dir=.
5569 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 5570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8d138742
CE
5571 ac_cv_prog_AR="${ac_tool_prefix}ar"
5572 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 5573 break 2
5574 fi
5575done
5576done
dd184caf 5577IFS=$as_save_IFS
d9898ee8 5578
5579fi
5580fi
8d138742
CE
5581AR=$ac_cv_prog_AR
5582if test -n "$AR"; then
5583 { $as_echo "$as_me:$LINENO: result: $AR" >&5
5584$as_echo "$AR" >&6; }
d9898ee8 5585else
8d138742
CE
5586 { $as_echo "$as_me:$LINENO: result: no" >&5
5587$as_echo "no" >&6; }
d9898ee8 5588fi
5589
dd184caf 5590
d9898ee8 5591fi
8d138742
CE
5592if test -z "$ac_cv_prog_AR"; then
5593 ac_ct_AR=$AR
5594 # Extract the first word of "ar", so it can be a program name with args.
5595set dummy ar; ac_word=$2
5596{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5597$as_echo_n "checking for $ac_word... " >&6; }
5598if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5599 $as_echo_n "(cached) " >&6
d9898ee8 5600else
8d138742
CE
5601 if test -n "$ac_ct_AR"; then
5602 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
d9898ee8 5603else
5604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5605for as_dir in $PATH
5606do
5607 IFS=$as_save_IFS
5608 test -z "$as_dir" && as_dir=.
5609 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 5610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8d138742
CE
5611 ac_cv_prog_ac_ct_AR="ar"
5612 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 5613 break 2
5614 fi
5615done
5616done
dd184caf 5617IFS=$as_save_IFS
d9898ee8 5618
5619fi
5620fi
8d138742
CE
5621ac_ct_AR=$ac_cv_prog_ac_ct_AR
5622if test -n "$ac_ct_AR"; then
5623 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5624$as_echo "$ac_ct_AR" >&6; }
d9898ee8 5625else
8d138742
CE
5626 { $as_echo "$as_me:$LINENO: result: no" >&5
5627$as_echo "no" >&6; }
d9898ee8 5628fi
5629
8d138742
CE
5630 if test "x$ac_ct_AR" = x; then
5631 AR="false"
dd184caf 5632 else
5633 case $cross_compiling:$ac_tool_warned in
5634yes:)
8d138742
CE
5635{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5636$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
dd184caf 5637ac_tool_warned=yes ;;
5638esac
8d138742 5639 AR=$ac_ct_AR
dd184caf 5640 fi
d9898ee8 5641else
8d138742
CE
5642 AR="$ac_cv_prog_AR"
5643fi
d9898ee8 5644
8d138742
CE
5645test -z "$AR" && AR=ar
5646test -z "$AR_FLAGS" && AR_FLAGS=cru
d9898ee8 5647
d9898ee8 5648
dd184caf 5649
d9898ee8 5650
d9898ee8 5651
d9898ee8 5652
dd184caf 5653
dd184caf 5654
d9898ee8 5655
dd184caf 5656
dd184caf 5657
8d138742
CE
5658if test -n "$ac_tool_prefix"; then
5659 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5660set dummy ${ac_tool_prefix}strip; ac_word=$2
5661{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5662$as_echo_n "checking for $ac_word... " >&6; }
5663if test "${ac_cv_prog_STRIP+set}" = set; then
5664 $as_echo_n "(cached) " >&6
d9898ee8 5665else
8d138742
CE
5666 if test -n "$STRIP"; then
5667 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5668else
5669as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5670for as_dir in $PATH
5671do
5672 IFS=$as_save_IFS
5673 test -z "$as_dir" && as_dir=.
5674 for ac_exec_ext in '' $ac_executable_extensions; do
5675 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5676 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5677 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5678 break 2
5679 fi
5680done
5681done
5682IFS=$as_save_IFS
dd184caf 5683
d9898ee8 5684fi
8d138742
CE
5685fi
5686STRIP=$ac_cv_prog_STRIP
5687if test -n "$STRIP"; then
5688 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
5689$as_echo "$STRIP" >&6; }
5690else
5691 { $as_echo "$as_me:$LINENO: result: no" >&5
5692$as_echo "no" >&6; }
5693fi
5694
dd184caf 5695
d9898ee8 5696fi
8d138742
CE
5697if test -z "$ac_cv_prog_STRIP"; then
5698 ac_ct_STRIP=$STRIP
5699 # Extract the first word of "strip", so it can be a program name with args.
5700set dummy strip; ac_word=$2
5701{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5702$as_echo_n "checking for $ac_word... " >&6; }
5703if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5704 $as_echo_n "(cached) " >&6
5705else
5706 if test -n "$ac_ct_STRIP"; then
5707 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5708else
5709as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5710for as_dir in $PATH
5711do
5712 IFS=$as_save_IFS
5713 test -z "$as_dir" && as_dir=.
5714 for ac_exec_ext in '' $ac_executable_extensions; do
5715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5716 ac_cv_prog_ac_ct_STRIP="strip"
5717 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5718 break 2
5719 fi
5720done
5721done
5722IFS=$as_save_IFS
d9898ee8 5723
8d138742
CE
5724fi
5725fi
5726ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5727if test -n "$ac_ct_STRIP"; then
5728 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5729$as_echo "$ac_ct_STRIP" >&6; }
5730else
5731 { $as_echo "$as_me:$LINENO: result: no" >&5
5732$as_echo "no" >&6; }
dd184caf 5733fi
5734
8d138742
CE
5735 if test "x$ac_ct_STRIP" = x; then
5736 STRIP=":"
dd184caf 5737 else
8d138742
CE
5738 case $cross_compiling:$ac_tool_warned in
5739yes:)
5740{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5741$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5742ac_tool_warned=yes ;;
5743esac
5744 STRIP=$ac_ct_STRIP
dd184caf 5745 fi
5746else
8d138742 5747 STRIP="$ac_cv_prog_STRIP"
dd184caf 5748fi
d9898ee8 5749
8d138742 5750test -z "$STRIP" && STRIP=:
d9898ee8 5751
d9898ee8 5752
d9898ee8 5753
d9898ee8 5754
8d138742
CE
5755
5756
5757if test -n "$ac_tool_prefix"; then
5758 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5759set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5760{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5761$as_echo_n "checking for $ac_word... " >&6; }
5762if test "${ac_cv_prog_RANLIB+set}" = set; then
5763 $as_echo_n "(cached) " >&6
d9898ee8 5764else
8d138742
CE
5765 if test -n "$RANLIB"; then
5766 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5767else
5768as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5769for as_dir in $PATH
5770do
5771 IFS=$as_save_IFS
5772 test -z "$as_dir" && as_dir=.
5773 for ac_exec_ext in '' $ac_executable_extensions; do
5774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5775 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5776 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5777 break 2
5778 fi
5779done
5780done
5781IFS=$as_save_IFS
d9898ee8 5782
5783fi
8d138742
CE
5784fi
5785RANLIB=$ac_cv_prog_RANLIB
5786if test -n "$RANLIB"; then
5787 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5788$as_echo "$RANLIB" >&6; }
d9898ee8 5789else
8d138742
CE
5790 { $as_echo "$as_me:$LINENO: result: no" >&5
5791$as_echo "no" >&6; }
d9898ee8 5792fi
5793
5794
8d138742
CE
5795fi
5796if test -z "$ac_cv_prog_RANLIB"; then
5797 ac_ct_RANLIB=$RANLIB
5798 # Extract the first word of "ranlib", so it can be a program name with args.
5799set dummy ranlib; ac_word=$2
5800{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5801$as_echo_n "checking for $ac_word... " >&6; }
5802if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5803 $as_echo_n "(cached) " >&6
d9898ee8 5804else
8d138742
CE
5805 if test -n "$ac_ct_RANLIB"; then
5806 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
d9898ee8 5807else
8d138742
CE
5808as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5809for as_dir in $PATH
5810do
5811 IFS=$as_save_IFS
5812 test -z "$as_dir" && as_dir=.
5813 for ac_exec_ext in '' $ac_executable_extensions; do
5814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5815 ac_cv_prog_ac_ct_RANLIB="ranlib"
5816 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5817 break 2
5818 fi
5819done
5820done
5821IFS=$as_save_IFS
d9898ee8 5822
8d138742
CE
5823fi
5824fi
5825ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5826if test -n "$ac_ct_RANLIB"; then
5827 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5828$as_echo "$ac_ct_RANLIB" >&6; }
5829else
5830 { $as_echo "$as_me:$LINENO: result: no" >&5
5831$as_echo "no" >&6; }
d9898ee8 5832fi
dd184caf 5833
8d138742
CE
5834 if test "x$ac_ct_RANLIB" = x; then
5835 RANLIB=":"
5836 else
5837 case $cross_compiling:$ac_tool_warned in
5838yes:)
5839{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5840$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5841ac_tool_warned=yes ;;
dd184caf 5842esac
8d138742
CE
5843 RANLIB=$ac_ct_RANLIB
5844 fi
d9898ee8 5845else
8d138742 5846 RANLIB="$ac_cv_prog_RANLIB"
d9898ee8 5847fi
dd184caf 5848
8d138742 5849test -z "$RANLIB" && RANLIB=:
d9898ee8 5850
d9898ee8 5851
d9898ee8 5852
d9898ee8 5853
dd184caf 5854
d9898ee8 5855
8d138742
CE
5856# Determine commands to create old-style static archives.
5857old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5858old_postinstall_cmds='chmod 644 $oldlib'
5859old_postuninstall_cmds=
d9898ee8 5860
8d138742
CE
5861if test -n "$RANLIB"; then
5862 case $host_os in
5863 openbsd*)
5864 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5865 ;;
5866 *)
5867 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5868 ;;
5869 esac
5870 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
d9898ee8 5871fi
dd184caf 5872
d9898ee8 5873
d9898ee8 5874
d9898ee8 5875
d9898ee8 5876
5877
d9898ee8 5878
d9898ee8 5879
dd184caf 5880
d9898ee8 5881
d9898ee8 5882
dd184caf 5883
d9898ee8 5884
d9898ee8 5885
5886
d9898ee8 5887
d9898ee8 5888
d9898ee8 5889
dd184caf 5890
d9898ee8 5891
d9898ee8 5892
5893
5894
d9898ee8 5895
d9898ee8 5896
d9898ee8 5897
d9898ee8 5898
d9898ee8 5899
d9898ee8 5900
d9898ee8 5901
d9898ee8 5902
d9898ee8 5903
d9898ee8 5904
d9898ee8 5905
8d138742
CE
5906# If no C compiler was specified, use CC.
5907LTCC=${LTCC-"$CC"}
d9898ee8 5908
8d138742
CE
5909# If no C compiler flags were specified, use CFLAGS.
5910LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
d9898ee8 5911
8d138742
CE
5912# Allow CC to be a program name with arguments.
5913compiler=$CC
d9898ee8 5914
ac40fd9e 5915
d9898ee8 5916# Check for command to grab the raw symbol name followed by C symbol from nm.
8d138742
CE
5917{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5918$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
d9898ee8 5919if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
8d138742 5920 $as_echo_n "(cached) " >&6
d9898ee8 5921else
5922
5923# These are sane defaults that work on at least a few old systems.
5924# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5925
5926# Character class describing NM global symbol codes.
5927symcode='[BCDEGRST]'
5928
5929# Regexp to match symbols that can be accessed directly from C.
5930sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5931
d9898ee8 5932# Define system-specific variables.
5933case $host_os in
5934aix*)
5935 symcode='[BCDT]'
5936 ;;
8d138742 5937cygwin* | mingw* | pw32* | cegcc*)
d9898ee8 5938 symcode='[ABCDGISTW]'
5939 ;;
8d138742 5940hpux*)
d9898ee8 5941 if test "$host_cpu" = ia64; then
5942 symcode='[ABCDEGRST]'
5943 fi
d9898ee8 5944 ;;
5945irix* | nonstopux*)
5946 symcode='[BCDEGRST]'
5947 ;;
5948osf*)
5949 symcode='[BCDEGQRST]'
5950 ;;
5951solaris*)
5952 symcode='[BDRT]'
5953 ;;
5954sco3.2v5*)
5955 symcode='[DT]'
5956 ;;
5957sysv4.2uw2*)
5958 symcode='[DT]'
5959 ;;
5960sysv5* | sco5v6* | unixware* | OpenUNIX*)
5961 symcode='[ABDT]'
5962 ;;
5963sysv4)
5964 symcode='[DFNSTU]'
5965 ;;
5966esac
5967
8d138742
CE
5968# If we're using GNU nm, then use its standard symbol codes.
5969case `$NM -V 2>&1` in
5970*GNU* | *'with BFD'*)
5971 symcode='[ABCDGIRSTW]' ;;
5972esac
5973
5974# Transform an extracted symbol line into a proper C declaration.
5975# Some systems (esp. on ia64) link data and code symbols differently,
5976# so use this general approach.
5977lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5978
5979# Transform an extracted symbol line into symbol name and symbol address
5980lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5981lt_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'"
5982
d9898ee8 5983# Handle CRLF in mingw tool chain
5984opt_cr=
5985case $build_os in
5986mingw*)
8d138742 5987 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
d9898ee8 5988 ;;
5989esac
5990
8d138742 5991# Try without a prefix underscore, then with it.
d9898ee8 5992for ac_symprfx in "" "_"; do
5993
5994 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5995 symxfrm="\\1 $ac_symprfx\\2 \\2"
5996
5997 # Write the raw and C identifiers.
8d138742
CE
5998 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5999 # Fake it for dumpbin and say T for any non-static function
6000 # and D for any global variable.
6001 # Also find C++ and __fastcall symbols from MSVC++,
6002 # which start with @ or ?.
6003 lt_cv_sys_global_symbol_pipe="$AWK '"\
6004" {last_section=section; section=\$ 3};"\
6005" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6006" \$ 0!~/External *\|/{next};"\
6007" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6008" {if(hide[section]) next};"\
6009" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6010" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6011" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6012" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6013" ' prfx=^$ac_symprfx"
6014 else
6015 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6016 fi
d9898ee8 6017
6018 # Check to see that the pipe works correctly.
6019 pipe_works=no
6020
6021 rm -f conftest*
8d138742 6022 cat > conftest.$ac_ext <<_LT_EOF
d9898ee8 6023#ifdef __cplusplus
6024extern "C" {
6025#endif
6026char nm_test_var;
8d138742
CE
6027void nm_test_func(void);
6028void nm_test_func(void){}
d9898ee8 6029#ifdef __cplusplus
6030}
6031#endif
6032int main(){nm_test_var='a';nm_test_func();return(0);}
8d138742 6033_LT_EOF
d9898ee8 6034
6035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6036 (eval $ac_compile) 2>&5
6037 ac_status=$?
8d138742 6038 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9898ee8 6039 (exit $ac_status); }; then
6040 # Now try to grab the symbols.
6041 nlist=conftest.nm
6042 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6043 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6044 ac_status=$?
8d138742 6045 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9898ee8 6046 (exit $ac_status); } && test -s "$nlist"; then
6047 # Try sorting and uniquifying the output.
6048 if sort "$nlist" | uniq > "$nlist"T; then
6049 mv -f "$nlist"T "$nlist"
6050 else
6051 rm -f "$nlist"T
6052 fi
6053
6054 # Make sure that we snagged all the symbols we need.
8d138742
CE
6055 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6056 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6057 cat <<_LT_EOF > conftest.$ac_ext
d9898ee8 6058#ifdef __cplusplus
6059extern "C" {
6060#endif
6061
8d138742 6062_LT_EOF
d9898ee8 6063 # Now generate the symbol file.
8d138742 6064 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
d9898ee8 6065
8d138742 6066 cat <<_LT_EOF >> conftest.$ac_ext
d9898ee8 6067
8d138742 6068/* The mapping between symbol names and symbols. */
d9898ee8 6069const struct {
6070 const char *name;
8d138742 6071 void *address;
d9898ee8 6072}
8d138742 6073lt__PROGRAM__LTX_preloaded_symbols[] =
d9898ee8 6074{
8d138742
CE
6075 { "@PROGRAM@", (void *) 0 },
6076_LT_EOF
6077 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6078 cat <<\_LT_EOF >> conftest.$ac_ext
6079 {0, (void *) 0}
d9898ee8 6080};
6081
8d138742
CE
6082/* This works around a problem in FreeBSD linker */
6083#ifdef FREEBSD_WORKAROUND
6084static const void *lt_preloaded_setup() {
6085 return lt__PROGRAM__LTX_preloaded_symbols;
6086}
6087#endif
6088
d9898ee8 6089#ifdef __cplusplus
6090}
6091#endif
8d138742 6092_LT_EOF
d9898ee8 6093 # Now try linking the two files.
6094 mv conftest.$ac_objext conftstm.$ac_objext
6095 lt_save_LIBS="$LIBS"
6096 lt_save_CFLAGS="$CFLAGS"
6097 LIBS="conftstm.$ac_objext"
6098 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6099 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6100 (eval $ac_link) 2>&5
6101 ac_status=$?
8d138742 6102 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9898ee8 6103 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6104 pipe_works=yes
6105 fi
6106 LIBS="$lt_save_LIBS"
6107 CFLAGS="$lt_save_CFLAGS"
6108 else
6109 echo "cannot find nm_test_func in $nlist" >&5
6110 fi
6111 else
6112 echo "cannot find nm_test_var in $nlist" >&5
6113 fi
6114 else
6115 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6116 fi
6117 else
6118 echo "$progname: failed program was:" >&5
6119 cat conftest.$ac_ext >&5
6120 fi
8d138742 6121 rm -rf conftest* conftst*
d9898ee8 6122
6123 # Do not use the global_symbol_pipe unless it works.
6124 if test "$pipe_works" = yes; then
6125 break
6126 else
6127 lt_cv_sys_global_symbol_pipe=
6128 fi
6129done
6130
6131fi
6132
6133if test -z "$lt_cv_sys_global_symbol_pipe"; then
6134 lt_cv_sys_global_symbol_to_cdecl=
6135fi
6136if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8d138742
CE
6137 { $as_echo "$as_me:$LINENO: result: failed" >&5
6138$as_echo "failed" >&6; }
d9898ee8 6139else
8d138742
CE
6140 { $as_echo "$as_me:$LINENO: result: ok" >&5
6141$as_echo "ok" >&6; }
d9898ee8 6142fi
6143
d9898ee8 6144
6145
6146
6147
6148
d9898ee8 6149
d9898ee8 6150
d9898ee8 6151
d9898ee8 6152
d9898ee8 6153
d9898ee8 6154
d9898ee8 6155
d9898ee8 6156
d9898ee8 6157
d9898ee8 6158
dd184caf 6159
d9898ee8 6160
8d138742
CE
6161
6162
6163
6164
6165
6166# Check whether --enable-libtool-lock was given.
6167if test "${enable_libtool_lock+set}" = set; then
6168 enableval=$enable_libtool_lock;
d9898ee8 6169fi
8d138742
CE
6170
6171test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6172
6173# Some flags need to be propagated to the compiler or linker for good
6174# libtool support.
6175case $host in
6176ia64-*-hpux*)
6177 # Find out which ABI we are using.
6178 echo 'int i;' > conftest.$ac_ext
6179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6180 (eval $ac_compile) 2>&5
6181 ac_status=$?
6182 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6183 (exit $ac_status); }; then
6184 case `/usr/bin/file conftest.$ac_objext` in
6185 *ELF-32*)
6186 HPUX_IA64_MODE="32"
6187 ;;
6188 *ELF-64*)
6189 HPUX_IA64_MODE="64"
6190 ;;
6191 esac
6192 fi
6193 rm -rf conftest*
6194 ;;
6195*-*-irix6*)
6196 # Find out which ABI we are using.
6197 echo '#line 6197 "configure"' > conftest.$ac_ext
6198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6199 (eval $ac_compile) 2>&5
6200 ac_status=$?
6201 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6202 (exit $ac_status); }; then
6203 if test "$lt_cv_prog_gnu_ld" = yes; then
6204 case `/usr/bin/file conftest.$ac_objext` in
6205 *32-bit*)
6206 LD="${LD-ld} -melf32bsmip"
6207 ;;
6208 *N32*)
6209 LD="${LD-ld} -melf32bmipn32"
6210 ;;
6211 *64-bit*)
6212 LD="${LD-ld} -melf64bmip"
6213 ;;
6214 esac
6215 else
6216 case `/usr/bin/file conftest.$ac_objext` in
6217 *32-bit*)
6218 LD="${LD-ld} -32"
6219 ;;
6220 *N32*)
6221 LD="${LD-ld} -n32"
6222 ;;
6223 *64-bit*)
6224 LD="${LD-ld} -64"
6225 ;;
6226 esac
6227 fi
6228 fi
6229 rm -rf conftest*
6230 ;;
6231
6232x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6233s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6234 # Find out which ABI we are using.
6235 echo 'int i;' > conftest.$ac_ext
6236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6237 (eval $ac_compile) 2>&5
6238 ac_status=$?
6239 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6240 (exit $ac_status); }; then
6241 case `/usr/bin/file conftest.o` in
6242 *32-bit*)
6243 case $host in
6244 x86_64-*kfreebsd*-gnu)
6245 LD="${LD-ld} -m elf_i386_fbsd"
6246 ;;
6247 x86_64-*linux*)
6248 LD="${LD-ld} -m elf_i386"
6249 ;;
6250 ppc64-*linux*|powerpc64-*linux*)
6251 LD="${LD-ld} -m elf32ppclinux"
6252 ;;
6253 s390x-*linux*)
6254 LD="${LD-ld} -m elf_s390"
6255 ;;
6256 sparc64-*linux*)
6257 LD="${LD-ld} -m elf32_sparc"
6258 ;;
6259 esac
6260 ;;
6261 *64-bit*)
6262 case $host in
6263 x86_64-*kfreebsd*-gnu)
6264 LD="${LD-ld} -m elf_x86_64_fbsd"
6265 ;;
6266 x86_64-*linux*)
6267 LD="${LD-ld} -m elf_x86_64"
6268 ;;
6269 ppc*-*linux*|powerpc*-*linux*)
6270 LD="${LD-ld} -m elf64ppc"
6271 ;;
6272 s390*-*linux*|s390*-*tpf*)
6273 LD="${LD-ld} -m elf64_s390"
6274 ;;
6275 sparc*-*linux*)
6276 LD="${LD-ld} -m elf64_sparc"
6277 ;;
6278 esac
6279 ;;
6280 esac
6281 fi
6282 rm -rf conftest*
6283 ;;
6284
6285*-*-sco3.2v5*)
6286 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6287 SAVE_CFLAGS="$CFLAGS"
6288 CFLAGS="$CFLAGS -belf"
6289 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6290$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6291if test "${lt_cv_cc_needs_belf+set}" = set; then
6292 $as_echo_n "(cached) " >&6
d9898ee8 6293else
8d138742
CE
6294 ac_ext=c
6295ac_cpp='$CPP $CPPFLAGS'
6296ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6297ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6298ac_compiler_gnu=$ac_cv_c_compiler_gnu
d9898ee8 6299
8d138742
CE
6300 cat >conftest.$ac_ext <<_ACEOF
6301/* confdefs.h. */
6302_ACEOF
6303cat confdefs.h >>conftest.$ac_ext
6304cat >>conftest.$ac_ext <<_ACEOF
6305/* end confdefs.h. */
6306
6307int
6308main ()
6309{
6310
6311 ;
6312 return 0;
6313}
6314_ACEOF
6315rm -f conftest.$ac_objext conftest$ac_exeext
6316if { (ac_try="$ac_link"
6317case "(($ac_try" in
6318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6319 *) ac_try_echo=$ac_try;;
dd184caf 6320esac
8d138742
CE
6321eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6322$as_echo "$ac_try_echo") >&5
6323 (eval "$ac_link") 2>conftest.er1
6324 ac_status=$?
6325 grep -v '^ *+' conftest.er1 >conftest.err
6326 rm -f conftest.er1
6327 cat conftest.err >&5
6328 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6329 (exit $ac_status); } && {
6330 test -z "$ac_c_werror_flag" ||
6331 test ! -s conftest.err
6332 } && test -s conftest$ac_exeext && {
6333 test "$cross_compiling" = yes ||
6334 $as_test_x conftest$ac_exeext
6335 }; then
6336 lt_cv_cc_needs_belf=yes
d9898ee8 6337else
8d138742
CE
6338 $as_echo "$as_me: failed program was:" >&5
6339sed 's/^/| /' conftest.$ac_ext >&5
6340
6341 lt_cv_cc_needs_belf=no
d9898ee8 6342fi
6343
8d138742
CE
6344rm -rf conftest.dSYM
6345rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6346 conftest$ac_exeext conftest.$ac_ext
6347 ac_ext=c
6348ac_cpp='$CPP $CPPFLAGS'
6349ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6350ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6351ac_compiler_gnu=$ac_cv_c_compiler_gnu
6352
6353fi
6354{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6355$as_echo "$lt_cv_cc_needs_belf" >&6; }
6356 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6357 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6358 CFLAGS="$SAVE_CFLAGS"
6359 fi
6360 ;;
6361sparc*-*solaris*)
6362 # Find out which ABI we are using.
6363 echo 'int i;' > conftest.$ac_ext
6364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6365 (eval $ac_compile) 2>&5
6366 ac_status=$?
6367 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6368 (exit $ac_status); }; then
6369 case `/usr/bin/file conftest.o` in
6370 *64-bit*)
6371 case $lt_cv_prog_gnu_ld in
6372 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6373 *)
6374 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6375 LD="${LD-ld} -64"
6376 fi
6377 ;;
6378 esac
6379 ;;
6380 esac
6381 fi
6382 rm -rf conftest*
6383 ;;
6384esac
6385
6386need_locks="$enable_libtool_lock"
6387
6388
6389 case $host_os in
6390 rhapsody* | darwin*)
6391 if test -n "$ac_tool_prefix"; then
6392 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6393set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6394{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6395$as_echo_n "checking for $ac_word... " >&6; }
6396if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6397 $as_echo_n "(cached) " >&6
d9898ee8 6398else
8d138742
CE
6399 if test -n "$DSYMUTIL"; then
6400 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
d9898ee8 6401else
6402as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6403for as_dir in $PATH
6404do
6405 IFS=$as_save_IFS
6406 test -z "$as_dir" && as_dir=.
6407 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 6408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8d138742
CE
6409 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6410 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 6411 break 2
6412 fi
6413done
6414done
dd184caf 6415IFS=$as_save_IFS
d9898ee8 6416
6417fi
6418fi
8d138742
CE
6419DSYMUTIL=$ac_cv_prog_DSYMUTIL
6420if test -n "$DSYMUTIL"; then
6421 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
6422$as_echo "$DSYMUTIL" >&6; }
d9898ee8 6423else
8d138742
CE
6424 { $as_echo "$as_me:$LINENO: result: no" >&5
6425$as_echo "no" >&6; }
d9898ee8 6426fi
6427
dd184caf 6428
d9898ee8 6429fi
8d138742
CE
6430if test -z "$ac_cv_prog_DSYMUTIL"; then
6431 ac_ct_DSYMUTIL=$DSYMUTIL
6432 # Extract the first word of "dsymutil", so it can be a program name with args.
6433set dummy dsymutil; ac_word=$2
6434{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6435$as_echo_n "checking for $ac_word... " >&6; }
6436if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6437 $as_echo_n "(cached) " >&6
d9898ee8 6438else
8d138742
CE
6439 if test -n "$ac_ct_DSYMUTIL"; then
6440 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
d9898ee8 6441else
6442as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6443for as_dir in $PATH
6444do
6445 IFS=$as_save_IFS
6446 test -z "$as_dir" && as_dir=.
6447 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 6448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8d138742
CE
6449 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6450 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 6451 break 2
6452 fi
6453done
6454done
dd184caf 6455IFS=$as_save_IFS
d9898ee8 6456
d9898ee8 6457fi
6458fi
8d138742
CE
6459ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6460if test -n "$ac_ct_DSYMUTIL"; then
6461 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6462$as_echo "$ac_ct_DSYMUTIL" >&6; }
d9898ee8 6463else
8d138742
CE
6464 { $as_echo "$as_me:$LINENO: result: no" >&5
6465$as_echo "no" >&6; }
d9898ee8 6466fi
6467
8d138742
CE
6468 if test "x$ac_ct_DSYMUTIL" = x; then
6469 DSYMUTIL=":"
dd184caf 6470 else
6471 case $cross_compiling:$ac_tool_warned in
6472yes:)
8d138742
CE
6473{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6474$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
dd184caf 6475ac_tool_warned=yes ;;
6476esac
8d138742 6477 DSYMUTIL=$ac_ct_DSYMUTIL
dd184caf 6478 fi
d9898ee8 6479else
8d138742 6480 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
d9898ee8 6481fi
6482
8d138742
CE
6483 if test -n "$ac_tool_prefix"; then
6484 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6485set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6486{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6487$as_echo_n "checking for $ac_word... " >&6; }
6488if test "${ac_cv_prog_NMEDIT+set}" = set; then
6489 $as_echo_n "(cached) " >&6
d9898ee8 6490else
8d138742
CE
6491 if test -n "$NMEDIT"; then
6492 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
d9898ee8 6493else
6494as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6495for as_dir in $PATH
6496do
6497 IFS=$as_save_IFS
6498 test -z "$as_dir" && as_dir=.
6499 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 6500 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8d138742
CE
6501 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6502 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 6503 break 2
6504 fi
6505done
6506done
dd184caf 6507IFS=$as_save_IFS
d9898ee8 6508
6509fi
6510fi
8d138742
CE
6511NMEDIT=$ac_cv_prog_NMEDIT
6512if test -n "$NMEDIT"; then
6513 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
6514$as_echo "$NMEDIT" >&6; }
d9898ee8 6515else
8d138742
CE
6516 { $as_echo "$as_me:$LINENO: result: no" >&5
6517$as_echo "no" >&6; }
d9898ee8 6518fi
6519
dd184caf 6520
d9898ee8 6521fi
8d138742
CE
6522if test -z "$ac_cv_prog_NMEDIT"; then
6523 ac_ct_NMEDIT=$NMEDIT
6524 # Extract the first word of "nmedit", so it can be a program name with args.
6525set dummy nmedit; ac_word=$2
6526{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6527$as_echo_n "checking for $ac_word... " >&6; }
6528if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6529 $as_echo_n "(cached) " >&6
d9898ee8 6530else
8d138742
CE
6531 if test -n "$ac_ct_NMEDIT"; then
6532 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
d9898ee8 6533else
6534as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6535for as_dir in $PATH
6536do
6537 IFS=$as_save_IFS
6538 test -z "$as_dir" && as_dir=.
6539 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 6540 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8d138742
CE
6541 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6542 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 6543 break 2
6544 fi
6545done
6546done
dd184caf 6547IFS=$as_save_IFS
d9898ee8 6548
d9898ee8 6549fi
6550fi
8d138742
CE
6551ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6552if test -n "$ac_ct_NMEDIT"; then
6553 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6554$as_echo "$ac_ct_NMEDIT" >&6; }
d9898ee8 6555else
8d138742
CE
6556 { $as_echo "$as_me:$LINENO: result: no" >&5
6557$as_echo "no" >&6; }
d9898ee8 6558fi
6559
8d138742
CE
6560 if test "x$ac_ct_NMEDIT" = x; then
6561 NMEDIT=":"
dd184caf 6562 else
6563 case $cross_compiling:$ac_tool_warned in
6564yes:)
8d138742
CE
6565{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6566$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
dd184caf 6567ac_tool_warned=yes ;;
6568esac
8d138742 6569 NMEDIT=$ac_ct_NMEDIT
dd184caf 6570 fi
d9898ee8 6571else
8d138742 6572 NMEDIT="$ac_cv_prog_NMEDIT"
d9898ee8 6573fi
6574
8d138742
CE
6575 if test -n "$ac_tool_prefix"; then
6576 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6577set dummy ${ac_tool_prefix}lipo; ac_word=$2
6578{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6579$as_echo_n "checking for $ac_word... " >&6; }
6580if test "${ac_cv_prog_LIPO+set}" = set; then
6581 $as_echo_n "(cached) " >&6
6582else
6583 if test -n "$LIPO"; then
6584 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6585else
6586as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6587for as_dir in $PATH
6588do
6589 IFS=$as_save_IFS
6590 test -z "$as_dir" && as_dir=.
6591 for ac_exec_ext in '' $ac_executable_extensions; do
6592 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6593 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6594 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6595 break 2
6596 fi
6597done
6598done
6599IFS=$as_save_IFS
d9898ee8 6600
8d138742
CE
6601fi
6602fi
6603LIPO=$ac_cv_prog_LIPO
6604if test -n "$LIPO"; then
6605 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
6606$as_echo "$LIPO" >&6; }
6607else
6608 { $as_echo "$as_me:$LINENO: result: no" >&5
6609$as_echo "no" >&6; }
6610fi
d9898ee8 6611
d9898ee8 6612
d9898ee8 6613fi
8d138742
CE
6614if test -z "$ac_cv_prog_LIPO"; then
6615 ac_ct_LIPO=$LIPO
6616 # Extract the first word of "lipo", so it can be a program name with args.
6617set dummy lipo; ac_word=$2
6618{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6619$as_echo_n "checking for $ac_word... " >&6; }
6620if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6621 $as_echo_n "(cached) " >&6
6622else
6623 if test -n "$ac_ct_LIPO"; then
6624 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6625else
6626as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6627for as_dir in $PATH
6628do
6629 IFS=$as_save_IFS
6630 test -z "$as_dir" && as_dir=.
6631 for ac_exec_ext in '' $ac_executable_extensions; do
6632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6633 ac_cv_prog_ac_ct_LIPO="lipo"
6634 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6635 break 2
6636 fi
d9898ee8 6637done
8d138742
CE
6638done
6639IFS=$as_save_IFS
d9898ee8 6640
8d138742
CE
6641fi
6642fi
6643ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6644if test -n "$ac_ct_LIPO"; then
6645 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6646$as_echo "$ac_ct_LIPO" >&6; }
d9898ee8 6647else
8d138742
CE
6648 { $as_echo "$as_me:$LINENO: result: no" >&5
6649$as_echo "no" >&6; }
6650fi
d9898ee8 6651
8d138742
CE
6652 if test "x$ac_ct_LIPO" = x; then
6653 LIPO=":"
6654 else
6655 case $cross_compiling:$ac_tool_warned in
6656yes:)
6657{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6658$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6659ac_tool_warned=yes ;;
d9898ee8 6660esac
8d138742
CE
6661 LIPO=$ac_ct_LIPO
6662 fi
6663else
6664 LIPO="$ac_cv_prog_LIPO"
d9898ee8 6665fi
6666
8d138742
CE
6667 if test -n "$ac_tool_prefix"; then
6668 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6669set dummy ${ac_tool_prefix}otool; ac_word=$2
6670{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6671$as_echo_n "checking for $ac_word... " >&6; }
6672if test "${ac_cv_prog_OTOOL+set}" = set; then
6673 $as_echo_n "(cached) " >&6
d9898ee8 6674else
8d138742
CE
6675 if test -n "$OTOOL"; then
6676 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6677else
6678as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6679for as_dir in $PATH
6680do
6681 IFS=$as_save_IFS
6682 test -z "$as_dir" && as_dir=.
6683 for ac_exec_ext in '' $ac_executable_extensions; do
6684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6685 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6686 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6687 break 2
6688 fi
6689done
6690done
6691IFS=$as_save_IFS
d9898ee8 6692
8d138742
CE
6693fi
6694fi
6695OTOOL=$ac_cv_prog_OTOOL
6696if test -n "$OTOOL"; then
6697 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
6698$as_echo "$OTOOL" >&6; }
d9898ee8 6699else
8d138742
CE
6700 { $as_echo "$as_me:$LINENO: result: no" >&5
6701$as_echo "no" >&6; }
6702fi
d9898ee8 6703
d9898ee8 6704
d9898ee8 6705fi
8d138742
CE
6706if test -z "$ac_cv_prog_OTOOL"; then
6707 ac_ct_OTOOL=$OTOOL
6708 # Extract the first word of "otool", so it can be a program name with args.
6709set dummy otool; ac_word=$2
6710{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6711$as_echo_n "checking for $ac_word... " >&6; }
6712if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6713 $as_echo_n "(cached) " >&6
6714else
6715 if test -n "$ac_ct_OTOOL"; then
6716 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6717else
6718as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6719for as_dir in $PATH
6720do
6721 IFS=$as_save_IFS
6722 test -z "$as_dir" && as_dir=.
6723 for ac_exec_ext in '' $ac_executable_extensions; do
6724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6725 ac_cv_prog_ac_ct_OTOOL="otool"
6726 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6727 break 2
6728 fi
6729done
6730done
6731IFS=$as_save_IFS
d9898ee8 6732
8d138742
CE
6733fi
6734fi
6735ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6736if test -n "$ac_ct_OTOOL"; then
6737 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6738$as_echo "$ac_ct_OTOOL" >&6; }
d9898ee8 6739else
8d138742
CE
6740 { $as_echo "$as_me:$LINENO: result: no" >&5
6741$as_echo "no" >&6; }
d9898ee8 6742fi
6743
8d138742
CE
6744 if test "x$ac_ct_OTOOL" = x; then
6745 OTOOL=":"
d9898ee8 6746 else
8d138742
CE
6747 case $cross_compiling:$ac_tool_warned in
6748yes:)
6749{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6750$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6751ac_tool_warned=yes ;;
6752esac
6753 OTOOL=$ac_ct_OTOOL
d9898ee8 6754 fi
8d138742
CE
6755else
6756 OTOOL="$ac_cv_prog_OTOOL"
d9898ee8 6757fi
6758
8d138742
CE
6759 if test -n "$ac_tool_prefix"; then
6760 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6761set dummy ${ac_tool_prefix}otool64; ac_word=$2
6762{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6763$as_echo_n "checking for $ac_word... " >&6; }
6764if test "${ac_cv_prog_OTOOL64+set}" = set; then
6765 $as_echo_n "(cached) " >&6
6766else
6767 if test -n "$OTOOL64"; then
6768 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6769else
6770as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6771for as_dir in $PATH
6772do
6773 IFS=$as_save_IFS
6774 test -z "$as_dir" && as_dir=.
6775 for ac_exec_ext in '' $ac_executable_extensions; do
6776 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6777 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6778 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6779 break 2
d9898ee8 6780 fi
8d138742
CE
6781done
6782done
6783IFS=$as_save_IFS
d9898ee8 6784
8d138742
CE
6785fi
6786fi
6787OTOOL64=$ac_cv_prog_OTOOL64
6788if test -n "$OTOOL64"; then
6789 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
6790$as_echo "$OTOOL64" >&6; }
6791else
6792 { $as_echo "$as_me:$LINENO: result: no" >&5
6793$as_echo "no" >&6; }
dd184caf 6794fi
d9898ee8 6795
d9898ee8 6796
8d138742
CE
6797fi
6798if test -z "$ac_cv_prog_OTOOL64"; then
6799 ac_ct_OTOOL64=$OTOOL64
6800 # Extract the first word of "otool64", so it can be a program name with args.
6801set dummy otool64; ac_word=$2
6802{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6803$as_echo_n "checking for $ac_word... " >&6; }
6804if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6805 $as_echo_n "(cached) " >&6
6806else
6807 if test -n "$ac_ct_OTOOL64"; then
6808 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6809else
6810as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6811for as_dir in $PATH
6812do
6813 IFS=$as_save_IFS
6814 test -z "$as_dir" && as_dir=.
6815 for ac_exec_ext in '' $ac_executable_extensions; do
6816 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6817 ac_cv_prog_ac_ct_OTOOL64="otool64"
6818 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6819 break 2
6820 fi
6821done
6822done
6823IFS=$as_save_IFS
d9898ee8 6824
8d138742
CE
6825fi
6826fi
6827ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6828if test -n "$ac_ct_OTOOL64"; then
6829 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6830$as_echo "$ac_ct_OTOOL64" >&6; }
d9898ee8 6831else
8d138742
CE
6832 { $as_echo "$as_me:$LINENO: result: no" >&5
6833$as_echo "no" >&6; }
dd184caf 6834fi
6835
8d138742
CE
6836 if test "x$ac_ct_OTOOL64" = x; then
6837 OTOOL64=":"
6838 else
6839 case $cross_compiling:$ac_tool_warned in
6840yes:)
6841{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6842$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6843ac_tool_warned=yes ;;
6844esac
6845 OTOOL64=$ac_ct_OTOOL64
6846 fi
6847else
6848 OTOOL64="$ac_cv_prog_OTOOL64"
6849fi
d9898ee8 6850
d9898ee8 6851
6852
d9898ee8 6853
d9898ee8 6854
d9898ee8 6855
d9898ee8 6856
6857
d9898ee8 6858
d9898ee8 6859
d9898ee8 6860
6861
d9898ee8 6862
d9898ee8 6863
6864
6865
d9898ee8 6866
d9898ee8 6867
6868
d9898ee8 6869
d9898ee8 6870
d9898ee8 6871
d9898ee8 6872
d9898ee8 6873
d9898ee8 6874
d9898ee8 6875
8d138742
CE
6876
6877 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6878$as_echo_n "checking for -single_module linker flag... " >&6; }
6879if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6880 $as_echo_n "(cached) " >&6
6881else
6882 lt_cv_apple_cc_single_mod=no
6883 if test -z "${LT_MULTI_MODULE}"; then
6884 # By default we will add the -single_module flag. You can override
6885 # by either setting the environment variable LT_MULTI_MODULE
6886 # non-empty at configure time, or by adding -multi_module to the
6887 # link flags.
6888 rm -rf libconftest.dylib*
6889 echo "int foo(void){return 1;}" > conftest.c
6890 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6891-dynamiclib -Wl,-single_module conftest.c" >&5
6892 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6893 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6894 _lt_result=$?
6895 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6896 lt_cv_apple_cc_single_mod=yes
6897 else
6898 cat conftest.err >&5
6899 fi
6900 rm -rf libconftest.dylib*
6901 rm -f conftest.*
d9898ee8 6902 fi
8d138742
CE
6903fi
6904{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6905$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6906 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6907$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6908if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6909 $as_echo_n "(cached) " >&6
6910else
6911 lt_cv_ld_exported_symbols_list=no
6912 save_LDFLAGS=$LDFLAGS
6913 echo "_main" > conftest.sym
6914 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6915 cat >conftest.$ac_ext <<_ACEOF
6916/* confdefs.h. */
6917_ACEOF
6918cat confdefs.h >>conftest.$ac_ext
6919cat >>conftest.$ac_ext <<_ACEOF
6920/* end confdefs.h. */
d9898ee8 6921
8d138742
CE
6922int
6923main ()
6924{
d9898ee8 6925
8d138742
CE
6926 ;
6927 return 0;
6928}
6929_ACEOF
6930rm -f conftest.$ac_objext conftest$ac_exeext
6931if { (ac_try="$ac_link"
6932case "(($ac_try" in
6933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6934 *) ac_try_echo=$ac_try;;
6935esac
6936eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6937$as_echo "$ac_try_echo") >&5
6938 (eval "$ac_link") 2>conftest.er1
6939 ac_status=$?
6940 grep -v '^ *+' conftest.er1 >conftest.err
6941 rm -f conftest.er1
6942 cat conftest.err >&5
6943 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6944 (exit $ac_status); } && {
6945 test -z "$ac_c_werror_flag" ||
6946 test ! -s conftest.err
6947 } && test -s conftest$ac_exeext && {
6948 test "$cross_compiling" = yes ||
6949 $as_test_x conftest$ac_exeext
6950 }; then
6951 lt_cv_ld_exported_symbols_list=yes
6952else
6953 $as_echo "$as_me: failed program was:" >&5
6954sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 6955
8d138742
CE
6956 lt_cv_ld_exported_symbols_list=no
6957fi
d9898ee8 6958
8d138742
CE
6959rm -rf conftest.dSYM
6960rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6961 conftest$ac_exeext conftest.$ac_ext
6962 LDFLAGS="$save_LDFLAGS"
d9898ee8 6963
8d138742
CE
6964fi
6965{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6966$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6967 case $host_os in
6968 rhapsody* | darwin1.[012])
6969 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6970 darwin1.*)
6971 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6972 darwin*) # darwin 5.x on
6973 # if running on 10.5 or later, the deployment target defaults
6974 # to the OS version, if on x86, and 10.4, the deployment
6975 # target defaults to 10.4. Don't you love it?
6976 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6977 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6978 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6979 10.[012]*)
6980 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6981 10.*)
6982 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6983 esac
6984 ;;
6985 esac
6986 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6987 _lt_dar_single_mod='$single_module'
6988 fi
6989 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6990 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6991 else
6992 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6993 fi
6994 if test "$DSYMUTIL" != ":"; then
6995 _lt_dsymutil='~$DSYMUTIL $lib || :'
6996 else
6997 _lt_dsymutil=
6998 fi
6999 ;;
7000 esac
d9898ee8 7001
d9898ee8 7002
8d138742
CE
7003{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7004$as_echo_n "checking for ANSI C header files... " >&6; }
7005if test "${ac_cv_header_stdc+set}" = set; then
7006 $as_echo_n "(cached) " >&6
7007else
7008 cat >conftest.$ac_ext <<_ACEOF
7009/* confdefs.h. */
7010_ACEOF
7011cat confdefs.h >>conftest.$ac_ext
7012cat >>conftest.$ac_ext <<_ACEOF
7013/* end confdefs.h. */
7014#include <stdlib.h>
7015#include <stdarg.h>
7016#include <string.h>
7017#include <float.h>
d9898ee8 7018
8d138742
CE
7019int
7020main ()
7021{
d9898ee8 7022
8d138742
CE
7023 ;
7024 return 0;
7025}
7026_ACEOF
7027rm -f conftest.$ac_objext
7028if { (ac_try="$ac_compile"
7029case "(($ac_try" in
7030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7031 *) ac_try_echo=$ac_try;;
7032esac
7033eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7034$as_echo "$ac_try_echo") >&5
7035 (eval "$ac_compile") 2>conftest.er1
7036 ac_status=$?
7037 grep -v '^ *+' conftest.er1 >conftest.err
7038 rm -f conftest.er1
7039 cat conftest.err >&5
7040 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7041 (exit $ac_status); } && {
7042 test -z "$ac_c_werror_flag" ||
7043 test ! -s conftest.err
7044 } && test -s conftest.$ac_objext; then
7045 ac_cv_header_stdc=yes
7046else
7047 $as_echo "$as_me: failed program was:" >&5
7048sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 7049
8d138742
CE
7050 ac_cv_header_stdc=no
7051fi
d9898ee8 7052
8d138742 7053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 7054
8d138742
CE
7055if test $ac_cv_header_stdc = yes; then
7056 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7057 cat >conftest.$ac_ext <<_ACEOF
7058/* confdefs.h. */
7059_ACEOF
7060cat confdefs.h >>conftest.$ac_ext
7061cat >>conftest.$ac_ext <<_ACEOF
7062/* end confdefs.h. */
7063#include <string.h>
d9898ee8 7064
8d138742
CE
7065_ACEOF
7066if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7067 $EGREP "memchr" >/dev/null 2>&1; then
7068 :
7069else
7070 ac_cv_header_stdc=no
7071fi
7072rm -f conftest*
d9898ee8 7073
8d138742 7074fi
d9898ee8 7075
8d138742
CE
7076if test $ac_cv_header_stdc = yes; then
7077 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7078 cat >conftest.$ac_ext <<_ACEOF
7079/* confdefs.h. */
7080_ACEOF
7081cat confdefs.h >>conftest.$ac_ext
7082cat >>conftest.$ac_ext <<_ACEOF
7083/* end confdefs.h. */
7084#include <stdlib.h>
ac40fd9e 7085
8d138742
CE
7086_ACEOF
7087if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7088 $EGREP "free" >/dev/null 2>&1; then
7089 :
7090else
7091 ac_cv_header_stdc=no
7092fi
7093rm -f conftest*
d9898ee8 7094
8d138742 7095fi
d9898ee8 7096
8d138742
CE
7097if test $ac_cv_header_stdc = yes; then
7098 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7099 if test "$cross_compiling" = yes; then
7100 :
7101else
7102 cat >conftest.$ac_ext <<_ACEOF
7103/* confdefs.h. */
7104_ACEOF
7105cat confdefs.h >>conftest.$ac_ext
7106cat >>conftest.$ac_ext <<_ACEOF
7107/* end confdefs.h. */
7108#include <ctype.h>
7109#include <stdlib.h>
7110#if ((' ' & 0x0FF) == 0x020)
7111# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7112# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7113#else
7114# define ISLOWER(c) \
7115 (('a' <= (c) && (c) <= 'i') \
7116 || ('j' <= (c) && (c) <= 'r') \
7117 || ('s' <= (c) && (c) <= 'z'))
7118# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7119#endif
d9898ee8 7120
8d138742
CE
7121#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7122int
7123main ()
7124{
7125 int i;
7126 for (i = 0; i < 256; i++)
7127 if (XOR (islower (i), ISLOWER (i))
7128 || toupper (i) != TOUPPER (i))
7129 return 2;
7130 return 0;
7131}
7132_ACEOF
7133rm -f conftest$ac_exeext
7134if { (ac_try="$ac_link"
7135case "(($ac_try" in
7136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7137 *) ac_try_echo=$ac_try;;
7138esac
7139eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7140$as_echo "$ac_try_echo") >&5
7141 (eval "$ac_link") 2>&5
7142 ac_status=$?
7143 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7144 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7145 { (case "(($ac_try" in
7146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7147 *) ac_try_echo=$ac_try;;
7148esac
7149eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7150$as_echo "$ac_try_echo") >&5
7151 (eval "$ac_try") 2>&5
7152 ac_status=$?
7153 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7154 (exit $ac_status); }; }; then
7155 :
7156else
7157 $as_echo "$as_me: program exited with status $ac_status" >&5
7158$as_echo "$as_me: failed program was:" >&5
7159sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 7160
8d138742
CE
7161( exit $ac_status )
7162ac_cv_header_stdc=no
7163fi
7164rm -rf conftest.dSYM
7165rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7166fi
d9898ee8 7167
d9898ee8 7168
8d138742
CE
7169fi
7170fi
7171{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7172$as_echo "$ac_cv_header_stdc" >&6; }
7173if test $ac_cv_header_stdc = yes; then
d9898ee8 7174
8d138742
CE
7175cat >>confdefs.h <<\_ACEOF
7176#define STDC_HEADERS 1
7177_ACEOF
d9898ee8 7178
8d138742 7179fi
d9898ee8 7180
8d138742 7181# On IRIX 5.3, sys/types and inttypes.h are conflicting.
d9898ee8 7182
d9898ee8 7183
d9898ee8 7184
d9898ee8 7185
d9898ee8 7186
d9898ee8 7187
d9898ee8 7188
d9898ee8 7189
7190
8d138742
CE
7191for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7192 inttypes.h stdint.h unistd.h
7193do
7194as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7195{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7196$as_echo_n "checking for $ac_header... " >&6; }
7197if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7198 $as_echo_n "(cached) " >&6
d9898ee8 7199else
8d138742
CE
7200 cat >conftest.$ac_ext <<_ACEOF
7201/* confdefs.h. */
7202_ACEOF
7203cat confdefs.h >>conftest.$ac_ext
7204cat >>conftest.$ac_ext <<_ACEOF
7205/* end confdefs.h. */
7206$ac_includes_default
d9898ee8 7207
8d138742
CE
7208#include <$ac_header>
7209_ACEOF
7210rm -f conftest.$ac_objext
7211if { (ac_try="$ac_compile"
7212case "(($ac_try" in
7213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7214 *) ac_try_echo=$ac_try;;
7215esac
7216eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7217$as_echo "$ac_try_echo") >&5
7218 (eval "$ac_compile") 2>conftest.er1
7219 ac_status=$?
7220 grep -v '^ *+' conftest.er1 >conftest.err
7221 rm -f conftest.er1
7222 cat conftest.err >&5
7223 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7224 (exit $ac_status); } && {
7225 test -z "$ac_c_werror_flag" ||
7226 test ! -s conftest.err
7227 } && test -s conftest.$ac_objext; then
7228 eval "$as_ac_Header=yes"
7229else
7230 $as_echo "$as_me: failed program was:" >&5
7231sed 's/^/| /' conftest.$ac_ext >&5
7232
7233 eval "$as_ac_Header=no"
7234fi
d9898ee8 7235
8d138742 7236rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 7237fi
8d138742
CE
7238ac_res=`eval 'as_val=${'$as_ac_Header'}
7239 $as_echo "$as_val"'`
7240 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7241$as_echo "$ac_res" >&6; }
7242as_val=`eval 'as_val=${'$as_ac_Header'}
7243 $as_echo "$as_val"'`
7244 if test "x$as_val" = x""yes; then
7245 cat >>confdefs.h <<_ACEOF
7246#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7247_ACEOF
d9898ee8 7248
8d138742 7249fi
d9898ee8 7250
8d138742
CE
7251done
7252
7253
7254
7255for ac_header in dlfcn.h
7256do
7257as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7258{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7259$as_echo_n "checking for $ac_header... " >&6; }
7260if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7261 $as_echo_n "(cached) " >&6
d9898ee8 7262else
8d138742
CE
7263 cat >conftest.$ac_ext <<_ACEOF
7264/* confdefs.h. */
7265_ACEOF
7266cat confdefs.h >>conftest.$ac_ext
7267cat >>conftest.$ac_ext <<_ACEOF
7268/* end confdefs.h. */
7269$ac_includes_default
7270
7271#include <$ac_header>
7272_ACEOF
7273rm -f conftest.$ac_objext
7274if { (ac_try="$ac_compile"
7275case "(($ac_try" in
7276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7277 *) ac_try_echo=$ac_try;;
7278esac
7279eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7280$as_echo "$ac_try_echo") >&5
7281 (eval "$ac_compile") 2>conftest.er1
7282 ac_status=$?
7283 grep -v '^ *+' conftest.er1 >conftest.err
7284 rm -f conftest.er1
7285 cat conftest.err >&5
7286 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7287 (exit $ac_status); } && {
7288 test -z "$ac_c_werror_flag" ||
7289 test ! -s conftest.err
7290 } && test -s conftest.$ac_objext; then
7291 eval "$as_ac_Header=yes"
7292else
7293 $as_echo "$as_me: failed program was:" >&5
7294sed 's/^/| /' conftest.$ac_ext >&5
7295
7296 eval "$as_ac_Header=no"
d9898ee8 7297fi
7298
8d138742
CE
7299rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7300fi
7301ac_res=`eval 'as_val=${'$as_ac_Header'}
7302 $as_echo "$as_val"'`
7303 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7304$as_echo "$ac_res" >&6; }
7305as_val=`eval 'as_val=${'$as_ac_Header'}
7306 $as_echo "$as_val"'`
7307 if test "x$as_val" = x""yes; then
7308 cat >>confdefs.h <<_ACEOF
7309#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7310_ACEOF
7311
7312fi
d9898ee8 7313
d9898ee8 7314done
d9898ee8 7315
d9898ee8 7316
d9898ee8 7317
8d138742
CE
7318# Set options
7319enable_dlopen=yes
d9898ee8 7320
d9898ee8 7321
d9898ee8 7322
d9898ee8 7323
8d138742 7324 enable_win32_dll=no
d9898ee8 7325
d9898ee8 7326
8d138742
CE
7327 # Check whether --enable-shared was given.
7328if test "${enable_shared+set}" = set; then
7329 enableval=$enable_shared; p=${PACKAGE-default}
7330 case $enableval in
7331 yes) enable_shared=yes ;;
7332 no) enable_shared=no ;;
7333 *)
7334 enable_shared=no
7335 # Look at the argument we got. We use all the common list separators.
7336 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7337 for pkg in $enableval; do
7338 IFS="$lt_save_ifs"
7339 if test "X$pkg" = "X$p"; then
7340 enable_shared=yes
7341 fi
7342 done
7343 IFS="$lt_save_ifs"
d9898ee8 7344 ;;
8d138742
CE
7345 esac
7346else
7347 enable_shared=yes
7348fi
7349
7350
d9898ee8 7351
d9898ee8 7352
d9898ee8 7353
d9898ee8 7354
d9898ee8 7355
8d138742
CE
7356
7357
7358 # Check whether --enable-static was given.
7359if test "${enable_static+set}" = set; then
7360 enableval=$enable_static; p=${PACKAGE-default}
7361 case $enableval in
7362 yes) enable_static=yes ;;
7363 no) enable_static=no ;;
7364 *)
7365 enable_static=no
7366 # Look at the argument we got. We use all the common list separators.
7367 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7368 for pkg in $enableval; do
7369 IFS="$lt_save_ifs"
7370 if test "X$pkg" = "X$p"; then
7371 enable_static=yes
d9898ee8 7372 fi
8d138742
CE
7373 done
7374 IFS="$lt_save_ifs"
d9898ee8 7375 ;;
8d138742
CE
7376 esac
7377else
7378 enable_static=yes
7379fi
d9898ee8 7380
d9898ee8 7381
d9898ee8 7382
d9898ee8 7383
d9898ee8 7384
d9898ee8 7385
d9898ee8 7386
d9898ee8 7387
d9898ee8 7388
8d138742
CE
7389
7390# Check whether --with-pic was given.
7391if test "${with_pic+set}" = set; then
7392 withval=$with_pic; pic_mode="$withval"
7393else
7394 pic_mode=default
7395fi
7396
7397
7398test -z "$pic_mode" && pic_mode=default
7399
7400
7401
7402
7403
7404
7405
7406 # Check whether --enable-fast-install was given.
7407if test "${enable_fast_install+set}" = set; then
7408 enableval=$enable_fast_install; p=${PACKAGE-default}
7409 case $enableval in
7410 yes) enable_fast_install=yes ;;
7411 no) enable_fast_install=no ;;
d9898ee8 7412 *)
8d138742
CE
7413 enable_fast_install=no
7414 # Look at the argument we got. We use all the common list separators.
7415 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7416 for pkg in $enableval; do
7417 IFS="$lt_save_ifs"
7418 if test "X$pkg" = "X$p"; then
7419 enable_fast_install=yes
7420 fi
7421 done
7422 IFS="$lt_save_ifs"
d9898ee8 7423 ;;
7424 esac
8d138742
CE
7425else
7426 enable_fast_install=yes
7427fi
d9898ee8 7428
d9898ee8 7429
d9898ee8 7430
d9898ee8 7431
d9898ee8 7432
d9898ee8 7433
d9898ee8 7434
d9898ee8 7435
d9898ee8 7436
d9898ee8 7437
d9898ee8 7438
8d138742
CE
7439# This can be used to rebuild libtool when needed
7440LIBTOOL_DEPS="$ltmain"
d9898ee8 7441
8d138742
CE
7442# Always use our own libtool.
7443LIBTOOL='$(SHELL) $(top_builddir)/libtool'
dd184caf 7444
dd184caf 7445
d9898ee8 7446
d9898ee8 7447
d9898ee8 7448
d9898ee8 7449
d9898ee8 7450
dd184caf 7451
dd184caf 7452
d9898ee8 7453
d9898ee8 7454
d9898ee8 7455
d9898ee8 7456
d9898ee8 7457
d9898ee8 7458
d9898ee8 7459
d9898ee8 7460
d9898ee8 7461
d9898ee8 7462
d9898ee8 7463
d9898ee8 7464
d9898ee8 7465
d9898ee8 7466
d9898ee8 7467
d9898ee8 7468
8d138742 7469test -z "$LN_S" && LN_S="ln -s"
d9898ee8 7470
d9898ee8 7471
d9898ee8 7472
d9898ee8 7473
d9898ee8 7474
d9898ee8 7475
d9898ee8 7476
d9898ee8 7477
d9898ee8 7478
d9898ee8 7479
d9898ee8 7480
d9898ee8 7481
d9898ee8 7482
d9898ee8 7483
8d138742
CE
7484if test -n "${ZSH_VERSION+set}" ; then
7485 setopt NO_GLOB_SUBST
7486fi
d9898ee8 7487
8d138742
CE
7488{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
7489$as_echo_n "checking for objdir... " >&6; }
7490if test "${lt_cv_objdir+set}" = set; then
7491 $as_echo_n "(cached) " >&6
7492else
7493 rm -f .libs 2>/dev/null
7494mkdir .libs 2>/dev/null
7495if test -d .libs; then
7496 lt_cv_objdir=.libs
7497else
7498 # MS-DOS does not allow filenames that begin with a dot.
7499 lt_cv_objdir=_libs
7500fi
7501rmdir .libs 2>/dev/null
7502fi
7503{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7504$as_echo "$lt_cv_objdir" >&6; }
7505objdir=$lt_cv_objdir
d9898ee8 7506
d9898ee8 7507
d9898ee8 7508
d9898ee8 7509
d9898ee8 7510
8d138742
CE
7511cat >>confdefs.h <<_ACEOF
7512#define LT_OBJDIR "$lt_cv_objdir/"
7513_ACEOF
d9898ee8 7514
d9898ee8 7515
d9898ee8 7516
d9898ee8 7517
d9898ee8 7518
8d138742
CE
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531case $host_os in
7532aix3*)
7533 # AIX sometimes has problems with the GCC collect2 program. For some
7534 # reason, if we set the COLLECT_NAMES environment variable, the problems
7535 # vanish in a puff of smoke.
7536 if test "X${COLLECT_NAMES+set}" != Xset; then
7537 COLLECT_NAMES=
7538 export COLLECT_NAMES
d9898ee8 7539 fi
7540 ;;
7541esac
7542
8d138742
CE
7543# Sed substitution that helps us do robust quoting. It backslashifies
7544# metacharacters that are still active within double-quoted strings.
7545sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
ac40fd9e 7546
8d138742
CE
7547# Same as above, but do not quote variable references.
7548double_quote_subst='s/\(["`\\]\)/\\\1/g'
7549
7550# Sed substitution to delay expansion of an escaped shell variable in a
7551# double_quote_subst'ed string.
7552delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7553
7554# Sed substitution to delay expansion of an escaped single quote.
7555delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7556
7557# Sed substitution to avoid accidental globbing in evaled expressions
7558no_glob_subst='s/\*/\\\*/g'
7559
7560# Global variables:
7561ofile=libtool
7562can_build_shared=yes
7563
7564# All known linkers require a `.a' archive for static linking (except MSVC,
7565# which needs '.lib').
7566libext=a
7567
7568with_gnu_ld="$lt_cv_prog_gnu_ld"
7569
7570old_CC="$CC"
7571old_CFLAGS="$CFLAGS"
7572
7573# Set sane defaults for various variables
7574test -z "$CC" && CC=cc
7575test -z "$LTCC" && LTCC=$CC
7576test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7577test -z "$LD" && LD=ld
7578test -z "$ac_objext" && ac_objext=o
7579
7580for cc_temp in $compiler""; do
7581 case $cc_temp in
7582 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7583 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7584 \-*) ;;
7585 *) break;;
7586 esac
7587done
7588cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7589
7590
7591# Only perform the check for file, if the check method requires it
7592test -z "$MAGIC_CMD" && MAGIC_CMD=file
7593case $deplibs_check_method in
7594file_magic*)
7595 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7596 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7597$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7598if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7599 $as_echo_n "(cached) " >&6
7600else
7601 case $MAGIC_CMD in
7602[\\/*] | ?:[\\/]*)
7603 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7604 ;;
7605*)
7606 lt_save_MAGIC_CMD="$MAGIC_CMD"
7607 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7608 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7609 for ac_dir in $ac_dummy; do
7610 IFS="$lt_save_ifs"
7611 test -z "$ac_dir" && ac_dir=.
7612 if test -f $ac_dir/${ac_tool_prefix}file; then
7613 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7614 if test -n "$file_magic_test_file"; then
7615 case $deplibs_check_method in
7616 "file_magic "*)
7617 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7618 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7619 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7620 $EGREP "$file_magic_regex" > /dev/null; then
7621 :
7622 else
7623 cat <<_LT_EOF 1>&2
7624
7625*** Warning: the command libtool uses to detect shared libraries,
7626*** $file_magic_cmd, produces output that libtool cannot recognize.
7627*** The result is that libtool may fail to recognize shared libraries
7628*** as such. This will affect the creation of libtool libraries that
7629*** depend on shared libraries, but programs linked with such libtool
7630*** libraries will work regardless of this problem. Nevertheless, you
7631*** may want to report the problem to your system manager and/or to
7632*** bug-libtool@gnu.org
7633
7634_LT_EOF
7635 fi ;;
7636 esac
7637 fi
7638 break
ac40fd9e 7639 fi
7640 done
8d138742
CE
7641 IFS="$lt_save_ifs"
7642 MAGIC_CMD="$lt_save_MAGIC_CMD"
7643 ;;
7644esac
7645fi
7646
7647MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7648if test -n "$MAGIC_CMD"; then
7649 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7650$as_echo "$MAGIC_CMD" >&6; }
d9898ee8 7651else
8d138742
CE
7652 { $as_echo "$as_me:$LINENO: result: no" >&5
7653$as_echo "no" >&6; }
d9898ee8 7654fi
d9898ee8 7655
d9898ee8 7656
d9898ee8 7657
8d138742
CE
7658
7659
7660if test -z "$lt_cv_path_MAGIC_CMD"; then
7661 if test -n "$ac_tool_prefix"; then
7662 { $as_echo "$as_me:$LINENO: checking for file" >&5
7663$as_echo_n "checking for file... " >&6; }
7664if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7665 $as_echo_n "(cached) " >&6
7666else
7667 case $MAGIC_CMD in
7668[\\/*] | ?:[\\/]*)
7669 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
d9898ee8 7670 ;;
8d138742
CE
7671*)
7672 lt_save_MAGIC_CMD="$MAGIC_CMD"
7673 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7674 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7675 for ac_dir in $ac_dummy; do
7676 IFS="$lt_save_ifs"
7677 test -z "$ac_dir" && ac_dir=.
7678 if test -f $ac_dir/file; then
7679 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7680 if test -n "$file_magic_test_file"; then
7681 case $deplibs_check_method in
7682 "file_magic "*)
7683 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7684 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7685 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7686 $EGREP "$file_magic_regex" > /dev/null; then
7687 :
7688 else
7689 cat <<_LT_EOF 1>&2
d9898ee8 7690
8d138742
CE
7691*** Warning: the command libtool uses to detect shared libraries,
7692*** $file_magic_cmd, produces output that libtool cannot recognize.
7693*** The result is that libtool may fail to recognize shared libraries
7694*** as such. This will affect the creation of libtool libraries that
7695*** depend on shared libraries, but programs linked with such libtool
7696*** libraries will work regardless of this problem. Nevertheless, you
7697*** may want to report the problem to your system manager and/or to
7698*** bug-libtool@gnu.org
7699
7700_LT_EOF
7701 fi ;;
7702 esac
d9898ee8 7703 fi
8d138742 7704 break
d9898ee8 7705 fi
8d138742
CE
7706 done
7707 IFS="$lt_save_ifs"
7708 MAGIC_CMD="$lt_save_MAGIC_CMD"
d9898ee8 7709 ;;
8d138742
CE
7710esac
7711fi
d9898ee8 7712
8d138742
CE
7713MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7714if test -n "$MAGIC_CMD"; then
7715 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7716$as_echo "$MAGIC_CMD" >&6; }
7717else
7718 { $as_echo "$as_me:$LINENO: result: no" >&5
7719$as_echo "no" >&6; }
7720fi
d9898ee8 7721
d9898ee8 7722
8d138742
CE
7723 else
7724 MAGIC_CMD=:
7725 fi
7726fi
7727
7728 fi
d9898ee8 7729 ;;
8d138742 7730esac
d9898ee8 7731
8d138742 7732# Use C for the default configuration in the libtool script
d9898ee8 7733
8d138742
CE
7734lt_save_CC="$CC"
7735ac_ext=c
7736ac_cpp='$CPP $CPPFLAGS'
7737ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7738ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7739ac_compiler_gnu=$ac_cv_c_compiler_gnu
d9898ee8 7740
d9898ee8 7741
8d138742
CE
7742# Source file extension for C test sources.
7743ac_ext=c
d9898ee8 7744
8d138742
CE
7745# Object file extension for compiled C test sources.
7746objext=o
7747objext=$objext
ac40fd9e 7748
8d138742
CE
7749# Code to be used in simple compile tests
7750lt_simple_compile_test_code="int some_variable = 0;"
d9898ee8 7751
8d138742
CE
7752# Code to be used in simple link tests
7753lt_simple_link_test_code='int main(){return(0);}'
d9898ee8 7754
d9898ee8 7755
d9898ee8 7756
d9898ee8 7757
d9898ee8 7758
d9898ee8 7759
d9898ee8 7760
8d138742
CE
7761# If no C compiler was specified, use CC.
7762LTCC=${LTCC-"$CC"}
d9898ee8 7763
8d138742
CE
7764# If no C compiler flags were specified, use CFLAGS.
7765LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
d9898ee8 7766
8d138742
CE
7767# Allow CC to be a program name with arguments.
7768compiler=$CC
d9898ee8 7769
8d138742
CE
7770# Save the default compiler, since it gets overwritten when the other
7771# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7772compiler_DEFAULT=$CC
d9898ee8 7773
8d138742
CE
7774# save warnings/boilerplate of simple test code
7775ac_outfile=conftest.$ac_objext
7776echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7777eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7778_lt_compiler_boilerplate=`cat conftest.err`
7779$RM conftest*
d9898ee8 7780
8d138742
CE
7781ac_outfile=conftest.$ac_objext
7782echo "$lt_simple_link_test_code" >conftest.$ac_ext
7783eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7784_lt_linker_boilerplate=`cat conftest.err`
7785$RM -r conftest*
d9898ee8 7786
d9898ee8 7787
8d138742 7788if test -n "$compiler"; then
d9898ee8 7789
8d138742 7790lt_prog_compiler_no_builtin_flag=
d9898ee8 7791
8d138742
CE
7792if test "$GCC" = yes; then
7793 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
d9898ee8 7794
8d138742
CE
7795 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7796$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7797if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7798 $as_echo_n "(cached) " >&6
7799else
7800 lt_cv_prog_compiler_rtti_exceptions=no
7801 ac_outfile=conftest.$ac_objext
7802 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7803 lt_compiler_flag="-fno-rtti -fno-exceptions"
7804 # Insert the option either (1) after the last *FLAGS variable, or
7805 # (2) before a word containing "conftest.", or (3) at the end.
7806 # Note that $ac_compile itself does not contain backslashes and begins
7807 # with a dollar sign (not a hyphen), so the echo should work correctly.
7808 # The option is referenced via a variable to avoid confusing sed.
7809 lt_compile=`echo "$ac_compile" | $SED \
7810 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7811 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7812 -e 's:$: $lt_compiler_flag:'`
7813 (eval echo "\"\$as_me:7813: $lt_compile\"" >&5)
7814 (eval "$lt_compile" 2>conftest.err)
7815 ac_status=$?
7816 cat conftest.err >&5
7817 echo "$as_me:7817: \$? = $ac_status" >&5
7818 if (exit $ac_status) && test -s "$ac_outfile"; then
7819 # The compiler can only warn and ignore the option if not recognized
7820 # So say no if there are warnings other than the usual output.
7821 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7822 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7823 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7824 lt_cv_prog_compiler_rtti_exceptions=yes
7825 fi
7826 fi
7827 $RM conftest*
d9898ee8 7828
d9898ee8 7829fi
8d138742
CE
7830{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7831$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
d9898ee8 7832
8d138742
CE
7833if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7834 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
d9898ee8 7835else
8d138742 7836 :
d9898ee8 7837fi
d9898ee8 7838
d9898ee8 7839fi
7840
d9898ee8 7841
d9898ee8 7842
d9898ee8 7843
d9898ee8 7844
d9898ee8 7845
8d138742
CE
7846 lt_prog_compiler_wl=
7847lt_prog_compiler_pic=
7848lt_prog_compiler_static=
d9898ee8 7849
8d138742
CE
7850{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7851$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
d9898ee8 7852
8d138742
CE
7853 if test "$GCC" = yes; then
7854 lt_prog_compiler_wl='-Wl,'
7855 lt_prog_compiler_static='-static'
dd184caf 7856
8d138742
CE
7857 case $host_os in
7858 aix*)
7859 # All AIX code is PIC.
7860 if test "$host_cpu" = ia64; then
7861 # AIX 5 now supports IA64 processor
7862 lt_prog_compiler_static='-Bstatic'
7863 fi
7864 ;;
d9898ee8 7865
8d138742
CE
7866 amigaos*)
7867 case $host_cpu in
7868 powerpc)
7869 # see comment about AmigaOS4 .so support
7870 lt_prog_compiler_pic='-fPIC'
7871 ;;
7872 m68k)
7873 # FIXME: we need at least 68020 code to build shared libraries, but
7874 # adding the `-m68020' flag to GCC prevents building anything better,
7875 # like `-m68040'.
7876 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7877 ;;
7878 esac
7879 ;;
d9898ee8 7880
8d138742
CE
7881 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7882 # PIC is the default for these OSes.
7883 ;;
d9898ee8 7884
8d138742
CE
7885 mingw* | cygwin* | pw32* | os2* | cegcc*)
7886 # This hack is so that the source file can tell whether it is being
7887 # built for inclusion in a dll (and should export symbols for example).
7888 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7889 # (--disable-auto-import) libraries
7890 lt_prog_compiler_pic='-DDLL_EXPORT'
7891 ;;
d9898ee8 7892
8d138742
CE
7893 darwin* | rhapsody*)
7894 # PIC is the default on this platform
7895 # Common symbols not allowed in MH_DYLIB files
7896 lt_prog_compiler_pic='-fno-common'
7897 ;;
d9898ee8 7898
8d138742
CE
7899 hpux*)
7900 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7901 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7902 # sets the default TLS model and affects inlining.
7903 case $host_cpu in
7904 hppa*64*)
7905 # +Z the default
7906 ;;
7907 *)
7908 lt_prog_compiler_pic='-fPIC'
7909 ;;
7910 esac
7911 ;;
d9898ee8 7912
8d138742
CE
7913 interix[3-9]*)
7914 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7915 # Instead, we relocate shared libraries at runtime.
7916 ;;
d9898ee8 7917
8d138742
CE
7918 msdosdjgpp*)
7919 # Just because we use GCC doesn't mean we suddenly get shared libraries
7920 # on systems that don't support them.
7921 lt_prog_compiler_can_build_shared=no
7922 enable_shared=no
7923 ;;
d9898ee8 7924
8d138742
CE
7925 *nto* | *qnx*)
7926 # QNX uses GNU C++, but need to define -shared option too, otherwise
7927 # it will coredump.
7928 lt_prog_compiler_pic='-fPIC -shared'
7929 ;;
d9898ee8 7930
8d138742
CE
7931 sysv4*MP*)
7932 if test -d /usr/nec; then
7933 lt_prog_compiler_pic=-Kconform_pic
7934 fi
7935 ;;
d9898ee8 7936
8d138742
CE
7937 *)
7938 lt_prog_compiler_pic='-fPIC'
7939 ;;
7940 esac
7941 else
7942 # PORTME Check for flag to pass linker flags through the system compiler.
7943 case $host_os in
7944 aix*)
7945 lt_prog_compiler_wl='-Wl,'
7946 if test "$host_cpu" = ia64; then
7947 # AIX 5 now supports IA64 processor
7948 lt_prog_compiler_static='-Bstatic'
7949 else
7950 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7951 fi
7952 ;;
dd184caf 7953
8d138742
CE
7954 mingw* | cygwin* | pw32* | os2* | cegcc*)
7955 # This hack is so that the source file can tell whether it is being
7956 # built for inclusion in a dll (and should export symbols for example).
7957 lt_prog_compiler_pic='-DDLL_EXPORT'
7958 ;;
d9898ee8 7959
8d138742
CE
7960 hpux9* | hpux10* | hpux11*)
7961 lt_prog_compiler_wl='-Wl,'
7962 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7963 # not for PA HP-UX.
7964 case $host_cpu in
7965 hppa*64*|ia64*)
7966 # +Z the default
7967 ;;
7968 *)
7969 lt_prog_compiler_pic='+Z'
7970 ;;
7971 esac
7972 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7973 lt_prog_compiler_static='${wl}-a ${wl}archive'
7974 ;;
d9898ee8 7975
8d138742
CE
7976 irix5* | irix6* | nonstopux*)
7977 lt_prog_compiler_wl='-Wl,'
7978 # PIC (with -KPIC) is the default.
7979 lt_prog_compiler_static='-non_shared'
7980 ;;
dd184caf 7981
8d138742
CE
7982 linux* | k*bsd*-gnu)
7983 case $cc_basename in
7984 # old Intel for x86_64 which still supported -KPIC.
7985 ecc*)
7986 lt_prog_compiler_wl='-Wl,'
7987 lt_prog_compiler_pic='-KPIC'
7988 lt_prog_compiler_static='-static'
7989 ;;
7990 # icc used to be incompatible with GCC.
7991 # ICC 10 doesn't accept -KPIC any more.
7992 icc* | ifort*)
7993 lt_prog_compiler_wl='-Wl,'
7994 lt_prog_compiler_pic='-fPIC'
7995 lt_prog_compiler_static='-static'
7996 ;;
7997 # Lahey Fortran 8.1.
7998 lf95*)
7999 lt_prog_compiler_wl='-Wl,'
8000 lt_prog_compiler_pic='--shared'
8001 lt_prog_compiler_static='--static'
8002 ;;
8003 pgcc* | pgf77* | pgf90* | pgf95*)
8004 # Portland Group compilers (*not* the Pentium gcc compiler,
8005 # which looks to be a dead project)
8006 lt_prog_compiler_wl='-Wl,'
8007 lt_prog_compiler_pic='-fpic'
8008 lt_prog_compiler_static='-Bstatic'
8009 ;;
8010 ccc*)
8011 lt_prog_compiler_wl='-Wl,'
8012 # All Alpha code is PIC.
8013 lt_prog_compiler_static='-non_shared'
8014 ;;
8015 xl*)
8016 # IBM XL C 8.0/Fortran 10.1 on PPC
8017 lt_prog_compiler_wl='-Wl,'
8018 lt_prog_compiler_pic='-qpic'
8019 lt_prog_compiler_static='-qstaticlink'
8020 ;;
8021 *)
8022 case `$CC -V 2>&1 | sed 5q` in
8023 *Sun\ C*)
8024 # Sun C 5.9
8025 lt_prog_compiler_pic='-KPIC'
8026 lt_prog_compiler_static='-Bstatic'
8027 lt_prog_compiler_wl='-Wl,'
8028 ;;
8029 *Sun\ F*)
8030 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8031 lt_prog_compiler_pic='-KPIC'
8032 lt_prog_compiler_static='-Bstatic'
8033 lt_prog_compiler_wl=''
8034 ;;
8035 esac
8036 ;;
8037 esac
8038 ;;
d9898ee8 8039
8d138742
CE
8040 newsos6)
8041 lt_prog_compiler_pic='-KPIC'
8042 lt_prog_compiler_static='-Bstatic'
8043 ;;
d9898ee8 8044
8d138742
CE
8045 *nto* | *qnx*)
8046 # QNX uses GNU C++, but need to define -shared option too, otherwise
8047 # it will coredump.
8048 lt_prog_compiler_pic='-fPIC -shared'
8049 ;;
d9898ee8 8050
8d138742
CE
8051 osf3* | osf4* | osf5*)
8052 lt_prog_compiler_wl='-Wl,'
8053 # All OSF/1 code is PIC.
8054 lt_prog_compiler_static='-non_shared'
8055 ;;
d9898ee8 8056
8d138742
CE
8057 rdos*)
8058 lt_prog_compiler_static='-non_shared'
8059 ;;
d9898ee8 8060
8d138742
CE
8061 solaris*)
8062 lt_prog_compiler_pic='-KPIC'
8063 lt_prog_compiler_static='-Bstatic'
8064 case $cc_basename in
8065 f77* | f90* | f95*)
8066 lt_prog_compiler_wl='-Qoption ld ';;
8067 *)
8068 lt_prog_compiler_wl='-Wl,';;
8069 esac
8070 ;;
d9898ee8 8071
8d138742
CE
8072 sunos4*)
8073 lt_prog_compiler_wl='-Qoption ld '
8074 lt_prog_compiler_pic='-PIC'
8075 lt_prog_compiler_static='-Bstatic'
8076 ;;
dd184caf 8077
8d138742
CE
8078 sysv4 | sysv4.2uw2* | sysv4.3*)
8079 lt_prog_compiler_wl='-Wl,'
8080 lt_prog_compiler_pic='-KPIC'
8081 lt_prog_compiler_static='-Bstatic'
8082 ;;
d9898ee8 8083
8d138742
CE
8084 sysv4*MP*)
8085 if test -d /usr/nec ;then
8086 lt_prog_compiler_pic='-Kconform_pic'
8087 lt_prog_compiler_static='-Bstatic'
8088 fi
8089 ;;
8090
8091 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8092 lt_prog_compiler_wl='-Wl,'
8093 lt_prog_compiler_pic='-KPIC'
8094 lt_prog_compiler_static='-Bstatic'
8095 ;;
8096
8097 unicos*)
8098 lt_prog_compiler_wl='-Wl,'
8099 lt_prog_compiler_can_build_shared=no
8100 ;;
8101
8102 uts4*)
8103 lt_prog_compiler_pic='-pic'
8104 lt_prog_compiler_static='-Bstatic'
8105 ;;
8106
8107 *)
8108 lt_prog_compiler_can_build_shared=no
8109 ;;
8110 esac
8111 fi
8112
8113case $host_os in
8114 # For platforms which do not support PIC, -DPIC is meaningless:
8115 *djgpp*)
8116 lt_prog_compiler_pic=
8117 ;;
8118 *)
8119 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8120 ;;
dd184caf 8121esac
8d138742
CE
8122{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8123$as_echo "$lt_prog_compiler_pic" >&6; }
d9898ee8 8124
dd184caf 8125
d9898ee8 8126
d9898ee8 8127
dd184caf 8128
d9898ee8 8129
8d138742
CE
8130#
8131# Check to make sure the PIC flag actually works.
8132#
8133if test -n "$lt_prog_compiler_pic"; then
8134 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8135$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8136if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8137 $as_echo_n "(cached) " >&6
d9898ee8 8138else
8d138742
CE
8139 lt_cv_prog_compiler_pic_works=no
8140 ac_outfile=conftest.$ac_objext
8141 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8142 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8143 # Insert the option either (1) after the last *FLAGS variable, or
8144 # (2) before a word containing "conftest.", or (3) at the end.
8145 # Note that $ac_compile itself does not contain backslashes and begins
8146 # with a dollar sign (not a hyphen), so the echo should work correctly.
8147 # The option is referenced via a variable to avoid confusing sed.
8148 lt_compile=`echo "$ac_compile" | $SED \
8149 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8150 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8151 -e 's:$: $lt_compiler_flag:'`
8152 (eval echo "\"\$as_me:8152: $lt_compile\"" >&5)
8153 (eval "$lt_compile" 2>conftest.err)
8154 ac_status=$?
8155 cat conftest.err >&5
8156 echo "$as_me:8156: \$? = $ac_status" >&5
8157 if (exit $ac_status) && test -s "$ac_outfile"; then
8158 # The compiler can only warn and ignore the option if not recognized
8159 # So say no if there are warnings other than the usual output.
8160 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8161 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8162 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8163 lt_cv_prog_compiler_pic_works=yes
8164 fi
8165 fi
8166 $RM conftest*
d9898ee8 8167
d9898ee8 8168fi
8d138742
CE
8169{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8170$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
dd184caf 8171
8d138742
CE
8172if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8173 case $lt_prog_compiler_pic in
8174 "" | " "*) ;;
8175 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8176 esac
8177else
8178 lt_prog_compiler_pic=
8179 lt_prog_compiler_can_build_shared=no
d9898ee8 8180fi
8181
d9898ee8 8182fi
8183
8184
d9898ee8 8185
8186
d9898ee8 8187
8188
8d138742
CE
8189#
8190# Check to make sure the static flag actually works.
8191#
8192wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8193{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8194$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8195if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8196 $as_echo_n "(cached) " >&6
8197else
8198 lt_cv_prog_compiler_static_works=no
8199 save_LDFLAGS="$LDFLAGS"
8200 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8201 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8202 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8203 # The linker can only warn and ignore the option if not recognized
8204 # So say no if there are warnings
8205 if test -s conftest.err; then
8206 # Append any errors to the config.log.
8207 cat conftest.err 1>&5
8208 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8209 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8210 if diff conftest.exp conftest.er2 >/dev/null; then
8211 lt_cv_prog_compiler_static_works=yes
8212 fi
8213 else
8214 lt_cv_prog_compiler_static_works=yes
8215 fi
8216 fi
8217 $RM -r conftest*
8218 LDFLAGS="$save_LDFLAGS"
d9898ee8 8219
8d138742
CE
8220fi
8221{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8222$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
d9898ee8 8223
8d138742
CE
8224if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8225 :
8226else
8227 lt_prog_compiler_static=
d9898ee8 8228fi
8229
d9898ee8 8230
d9898ee8 8231
d9898ee8 8232
d9898ee8 8233
d9898ee8 8234
8d138742
CE
8235
8236 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8237$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8238if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8239 $as_echo_n "(cached) " >&6
d9898ee8 8240else
8d138742
CE
8241 lt_cv_prog_compiler_c_o=no
8242 $RM -r conftest 2>/dev/null
8243 mkdir conftest
8244 cd conftest
8245 mkdir out
8246 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 8247
8d138742
CE
8248 lt_compiler_flag="-o out/conftest2.$ac_objext"
8249 # Insert the option either (1) after the last *FLAGS variable, or
8250 # (2) before a word containing "conftest.", or (3) at the end.
8251 # Note that $ac_compile itself does not contain backslashes and begins
8252 # with a dollar sign (not a hyphen), so the echo should work correctly.
8253 lt_compile=`echo "$ac_compile" | $SED \
8254 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8255 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8256 -e 's:$: $lt_compiler_flag:'`
8257 (eval echo "\"\$as_me:8257: $lt_compile\"" >&5)
8258 (eval "$lt_compile" 2>out/conftest.err)
8259 ac_status=$?
8260 cat out/conftest.err >&5
8261 echo "$as_me:8261: \$? = $ac_status" >&5
8262 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8263 then
8264 # The compiler can only warn and ignore the option if not recognized
8265 # So say no if there are warnings
8266 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8267 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8268 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8269 lt_cv_prog_compiler_c_o=yes
8270 fi
8271 fi
8272 chmod u+w . 2>&5
8273 $RM conftest*
8274 # SGI C++ compiler will create directory out/ii_files/ for
8275 # template instantiation
8276 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8277 $RM out/* && rmdir out
8278 cd ..
8279 $RM -r conftest
8280 $RM conftest*
d9898ee8 8281
8d138742
CE
8282fi
8283{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8284$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
d9898ee8 8285
d9898ee8 8286
d9898ee8 8287
d9898ee8 8288
d9898ee8 8289
d9898ee8 8290
8d138742
CE
8291 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8292$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8293if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8294 $as_echo_n "(cached) " >&6
8295else
8296 lt_cv_prog_compiler_c_o=no
8297 $RM -r conftest 2>/dev/null
8298 mkdir conftest
8299 cd conftest
8300 mkdir out
8301 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 8302
8d138742
CE
8303 lt_compiler_flag="-o out/conftest2.$ac_objext"
8304 # Insert the option either (1) after the last *FLAGS variable, or
8305 # (2) before a word containing "conftest.", or (3) at the end.
8306 # Note that $ac_compile itself does not contain backslashes and begins
8307 # with a dollar sign (not a hyphen), so the echo should work correctly.
8308 lt_compile=`echo "$ac_compile" | $SED \
8309 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8310 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8311 -e 's:$: $lt_compiler_flag:'`
8312 (eval echo "\"\$as_me:8312: $lt_compile\"" >&5)
8313 (eval "$lt_compile" 2>out/conftest.err)
8314 ac_status=$?
8315 cat out/conftest.err >&5
8316 echo "$as_me:8316: \$? = $ac_status" >&5
8317 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8318 then
8319 # The compiler can only warn and ignore the option if not recognized
8320 # So say no if there are warnings
8321 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8322 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8323 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8324 lt_cv_prog_compiler_c_o=yes
8325 fi
8326 fi
8327 chmod u+w . 2>&5
8328 $RM conftest*
8329 # SGI C++ compiler will create directory out/ii_files/ for
8330 # template instantiation
8331 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8332 $RM out/* && rmdir out
8333 cd ..
8334 $RM -r conftest
8335 $RM conftest*
d9898ee8 8336
8337fi
8d138742
CE
8338{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8339$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
d9898ee8 8340
d9898ee8 8341
d9898ee8 8342
d9898ee8 8343
8d138742
CE
8344hard_links="nottested"
8345if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8346 # do not overwrite the value of need_locks provided by the user
8347 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8348$as_echo_n "checking if we can lock with hard links... " >&6; }
8349 hard_links=yes
8350 $RM conftest*
8351 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8352 touch conftest.a
8353 ln conftest.a conftest.b 2>&5 || hard_links=no
8354 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8355 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8356$as_echo "$hard_links" >&6; }
8357 if test "$hard_links" = no; then
8358 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8359$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8360 need_locks=warn
8361 fi
8362else
8363 need_locks=no
8364fi
d9898ee8 8365
d9898ee8 8366
d9898ee8 8367
d9898ee8 8368
d9898ee8 8369
d9898ee8 8370
8d138742
CE
8371 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8372$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
d9898ee8 8373
8d138742
CE
8374 runpath_var=
8375 allow_undefined_flag=
8376 always_export_symbols=no
8377 archive_cmds=
8378 archive_expsym_cmds=
8379 compiler_needs_object=no
8380 enable_shared_with_static_runtimes=no
8381 export_dynamic_flag_spec=
8382 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8383 hardcode_automatic=no
8384 hardcode_direct=no
8385 hardcode_direct_absolute=no
8386 hardcode_libdir_flag_spec=
8387 hardcode_libdir_flag_spec_ld=
8388 hardcode_libdir_separator=
8389 hardcode_minus_L=no
8390 hardcode_shlibpath_var=unsupported
8391 inherit_rpath=no
8392 link_all_deplibs=unknown
8393 module_cmds=
8394 module_expsym_cmds=
8395 old_archive_from_new_cmds=
8396 old_archive_from_expsyms_cmds=
8397 thread_safe_flag_spec=
8398 whole_archive_flag_spec=
8399 # include_expsyms should be a list of space-separated symbols to be *always*
8400 # included in the symbol list
8401 include_expsyms=
8402 # exclude_expsyms can be an extended regexp of symbols to exclude
8403 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8404 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8405 # as well as any symbol that contains `d'.
8406 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8407 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8408 # platforms (ab)use it in PIC code, but their linkers get confused if
8409 # the symbol is explicitly referenced. Since portable code cannot
8410 # rely on this symbol name, it's probably fine to never include it in
8411 # preloaded symbol tables.
8412 # Exclude shared library initialization/finalization symbols.
8413 extract_expsyms_cmds=
d9898ee8 8414
8d138742
CE
8415 case $host_os in
8416 cygwin* | mingw* | pw32* | cegcc*)
8417 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8418 # When not using gcc, we currently assume that we are using
8419 # Microsoft Visual C++.
8420 if test "$GCC" != yes; then
8421 with_gnu_ld=no
8422 fi
8423 ;;
8424 interix*)
8425 # we just hope/assume this is gcc and not c89 (= MSVC++)
8426 with_gnu_ld=yes
8427 ;;
8428 openbsd*)
8429 with_gnu_ld=no
d9898ee8 8430 ;;
8431 esac
8432
8d138742
CE
8433 ld_shlibs=yes
8434 if test "$with_gnu_ld" = yes; then
8435 # If archive_cmds runs LD, not CC, wlarc should be empty
8436 wlarc='${wl}'
d9898ee8 8437
8d138742
CE
8438 # Set some defaults for GNU ld with shared library support. These
8439 # are reset later if shared libraries are not supported. Putting them
8440 # here allows them to be overridden if necessary.
8441 runpath_var=LD_RUN_PATH
8442 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8443 export_dynamic_flag_spec='${wl}--export-dynamic'
8444 # ancient GNU ld didn't support --whole-archive et. al.
8445 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8446 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8447 else
8448 whole_archive_flag_spec=
8449 fi
8450 supports_anon_versioning=no
8451 case `$LD -v 2>&1` in
8452 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8453 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8454 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8455 *\ 2.11.*) ;; # other 2.11 versions
8456 *) supports_anon_versioning=yes ;;
8457 esac
d9898ee8 8458
8d138742
CE
8459 # See if GNU ld supports shared libraries.
8460 case $host_os in
8461 aix[3-9]*)
8462 # On AIX/PPC, the GNU linker is very broken
8463 if test "$host_cpu" != ia64; then
8464 ld_shlibs=no
8465 cat <<_LT_EOF 1>&2
d9898ee8 8466
8d138742
CE
8467*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8468*** to be unable to reliably create shared libraries on AIX.
8469*** Therefore, libtool is disabling shared libraries support. If you
8470*** really care for shared libraries, you may want to modify your PATH
8471*** so that a non-GNU linker is found, and then restart.
d9898ee8 8472
8d138742
CE
8473_LT_EOF
8474 fi
8475 ;;
d9898ee8 8476
8d138742
CE
8477 amigaos*)
8478 case $host_cpu in
8479 powerpc)
8480 # see comment about AmigaOS4 .so support
8481 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8482 archive_expsym_cmds=''
8483 ;;
8484 m68k)
8485 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)'
8486 hardcode_libdir_flag_spec='-L$libdir'
8487 hardcode_minus_L=yes
8488 ;;
8489 esac
d9898ee8 8490 ;;
8d138742
CE
8491
8492 beos*)
8493 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8494 allow_undefined_flag=unsupported
8495 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8496 # support --undefined. This deserves some investigation. FIXME
8497 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8498 else
8499 ld_shlibs=no
8500 fi
d9898ee8 8501 ;;
d9898ee8 8502
8d138742
CE
8503 cygwin* | mingw* | pw32* | cegcc*)
8504 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8505 # as there is no search path for DLLs.
8506 hardcode_libdir_flag_spec='-L$libdir'
8507 allow_undefined_flag=unsupported
8508 always_export_symbols=no
8509 enable_shared_with_static_runtimes=yes
8510 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
d9898ee8 8511
8d138742
CE
8512 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8513 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8514 # If the export-symbols file already is a .def file (1st line
8515 # is EXPORTS), use it as is; otherwise, prepend...
8516 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8517 cp $export_symbols $output_objdir/$soname.def;
8518 else
8519 echo EXPORTS > $output_objdir/$soname.def;
8520 cat $export_symbols >> $output_objdir/$soname.def;
8521 fi~
8522 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8523 else
8524 ld_shlibs=no
8525 fi
8526 ;;
d9898ee8 8527
8d138742
CE
8528 interix[3-9]*)
8529 hardcode_direct=no
8530 hardcode_shlibpath_var=no
8531 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8532 export_dynamic_flag_spec='${wl}-E'
8533 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8534 # Instead, shared libraries are loaded at an image base (0x10000000 by
8535 # default) and relocated if they conflict, which is a slow very memory
8536 # consuming and fragmenting process. To avoid this, we pick a random,
8537 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8538 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8539 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8540 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'
8541 ;;
d9898ee8 8542
8d138742
CE
8543 gnu* | linux* | tpf* | k*bsd*-gnu)
8544 tmp_diet=no
8545 if test "$host_os" = linux-dietlibc; then
8546 case $cc_basename in
8547 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8548 esac
8549 fi
8550 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8551 && test "$tmp_diet" = no
8552 then
8553 tmp_addflag=
8554 tmp_sharedflag='-shared'
8555 case $cc_basename,$host_cpu in
8556 pgcc*) # Portland Group C compiler
8557 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'
8558 tmp_addflag=' $pic_flag'
8559 ;;
8560 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8561 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'
8562 tmp_addflag=' $pic_flag -Mnomain' ;;
8563 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8564 tmp_addflag=' -i_dynamic' ;;
8565 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8566 tmp_addflag=' -i_dynamic -nofor_main' ;;
8567 ifc* | ifort*) # Intel Fortran compiler
8568 tmp_addflag=' -nofor_main' ;;
8569 lf95*) # Lahey Fortran 8.1
8570 whole_archive_flag_spec=
8571 tmp_sharedflag='--shared' ;;
8572 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8573 tmp_sharedflag='-qmkshrobj'
8574 tmp_addflag= ;;
8575 esac
8576 case `$CC -V 2>&1 | sed 5q` in
8577 *Sun\ C*) # Sun C 5.9
8578 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'
8579 compiler_needs_object=yes
8580 tmp_sharedflag='-G' ;;
8581 *Sun\ F*) # Sun Fortran 8.3
8582 tmp_sharedflag='-G' ;;
8583 esac
8584 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
d9898ee8 8585
8d138742
CE
8586 if test "x$supports_anon_versioning" = xyes; then
8587 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8588 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8589 echo "local: *; };" >> $output_objdir/$libname.ver~
8590 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8591 fi
d9898ee8 8592
8d138742
CE
8593 case $cc_basename in
8594 xlf*)
8595 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8596 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8597 hardcode_libdir_flag_spec=
8598 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8599 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8600 if test "x$supports_anon_versioning" = xyes; then
8601 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8602 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8603 echo "local: *; };" >> $output_objdir/$libname.ver~
8604 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8605 fi
8606 ;;
8607 esac
8608 else
8609 ld_shlibs=no
8610 fi
8611 ;;
d9898ee8 8612
8d138742
CE
8613 netbsd*)
8614 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8615 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8616 wlarc=
8617 else
8618 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8619 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8620 fi
8621 ;;
d9898ee8 8622
8d138742
CE
8623 solaris*)
8624 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8625 ld_shlibs=no
8626 cat <<_LT_EOF 1>&2
d9898ee8 8627
8d138742
CE
8628*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8629*** create shared libraries on Solaris systems. Therefore, libtool
8630*** is disabling shared libraries support. We urge you to upgrade GNU
8631*** binutils to release 2.9.1 or newer. Another option is to modify
8632*** your PATH or compiler configuration so that the native linker is
8633*** used, and then restart.
d9898ee8 8634
8d138742
CE
8635_LT_EOF
8636 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8637 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8638 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8639 else
8640 ld_shlibs=no
8641 fi
8642 ;;
d9898ee8 8643
8d138742
CE
8644 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8645 case `$LD -v 2>&1` in
8646 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8647 ld_shlibs=no
8648 cat <<_LT_EOF 1>&2
d9898ee8 8649
8d138742
CE
8650*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8651*** reliably create shared libraries on SCO systems. Therefore, libtool
8652*** is disabling shared libraries support. We urge you to upgrade GNU
8653*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8654*** your PATH or compiler configuration so that the native linker is
8655*** used, and then restart.
d9898ee8 8656
8d138742
CE
8657_LT_EOF
8658 ;;
8659 *)
8660 # For security reasons, it is highly recommended that you always
8661 # use absolute paths for naming shared libraries, and exclude the
8662 # DT_RUNPATH tag from executables and libraries. But doing so
8663 # requires that you compile everything twice, which is a pain.
8664 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8665 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8666 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8667 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8668 else
8669 ld_shlibs=no
8670 fi
8671 ;;
8672 esac
8673 ;;
d9898ee8 8674
8d138742
CE
8675 sunos4*)
8676 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8677 wlarc=
8678 hardcode_direct=yes
8679 hardcode_shlibpath_var=no
8680 ;;
d9898ee8 8681
8d138742
CE
8682 *)
8683 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8684 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8685 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8686 else
8687 ld_shlibs=no
8688 fi
8689 ;;
8690 esac
d9898ee8 8691
8d138742
CE
8692 if test "$ld_shlibs" = no; then
8693 runpath_var=
8694 hardcode_libdir_flag_spec=
8695 export_dynamic_flag_spec=
8696 whole_archive_flag_spec=
8697 fi
8698 else
8699 # PORTME fill in a description of your system's linker (not GNU ld)
8700 case $host_os in
8701 aix3*)
8702 allow_undefined_flag=unsupported
8703 always_export_symbols=yes
8704 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'
8705 # Note: this linker hardcodes the directories in LIBPATH if there
8706 # are no directories specified by -L.
8707 hardcode_minus_L=yes
8708 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8709 # Neither direct hardcoding nor static linking is supported with a
8710 # broken collect2.
8711 hardcode_direct=unsupported
8712 fi
8713 ;;
d9898ee8 8714
8d138742
CE
8715 aix[4-9]*)
8716 if test "$host_cpu" = ia64; then
8717 # On IA64, the linker does run time linking by default, so we don't
8718 # have to do anything special.
8719 aix_use_runtimelinking=no
8720 exp_sym_flag='-Bexport'
8721 no_entry_flag=""
8722 else
8723 # If we're using GNU nm, then we don't want the "-C" option.
8724 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8725 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8726 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'
8727 else
8728 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'
8729 fi
8730 aix_use_runtimelinking=no
d9898ee8 8731
8d138742
CE
8732 # Test if we are trying to use run time linking or normal
8733 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8734 # need to do runtime linking.
8735 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8736 for ld_flag in $LDFLAGS; do
8737 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8738 aix_use_runtimelinking=yes
8739 break
8740 fi
8741 done
8742 ;;
8743 esac
d9898ee8 8744
8d138742
CE
8745 exp_sym_flag='-bexport'
8746 no_entry_flag='-bnoentry'
8747 fi
d9898ee8 8748
8d138742
CE
8749 # When large executables or shared objects are built, AIX ld can
8750 # have problems creating the table of contents. If linking a library
8751 # or program results in "error TOC overflow" add -mminimal-toc to
8752 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8753 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
d9898ee8 8754
8d138742
CE
8755 archive_cmds=''
8756 hardcode_direct=yes
8757 hardcode_direct_absolute=yes
8758 hardcode_libdir_separator=':'
8759 link_all_deplibs=yes
8760 file_list_spec='${wl}-f,'
d9898ee8 8761
8d138742
CE
8762 if test "$GCC" = yes; then
8763 case $host_os in aix4.[012]|aix4.[012].*)
8764 # We only want to do this on AIX 4.2 and lower, the check
8765 # below for broken collect2 doesn't work under 4.3+
8766 collect2name=`${CC} -print-prog-name=collect2`
8767 if test -f "$collect2name" &&
8768 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8769 then
8770 # We have reworked collect2
8771 :
8772 else
8773 # We have old collect2
8774 hardcode_direct=unsupported
8775 # It fails to find uninstalled libraries when the uninstalled
8776 # path is not listed in the libpath. Setting hardcode_minus_L
8777 # to unsupported forces relinking
8778 hardcode_minus_L=yes
8779 hardcode_libdir_flag_spec='-L$libdir'
8780 hardcode_libdir_separator=
8781 fi
8782 ;;
8783 esac
8784 shared_flag='-shared'
8785 if test "$aix_use_runtimelinking" = yes; then
8786 shared_flag="$shared_flag "'${wl}-G'
8787 fi
8788 else
8789 # not using gcc
8790 if test "$host_cpu" = ia64; then
8791 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8792 # chokes on -Wl,-G. The following line is correct:
8793 shared_flag='-G'
8794 else
8795 if test "$aix_use_runtimelinking" = yes; then
8796 shared_flag='${wl}-G'
8797 else
8798 shared_flag='${wl}-bM:SRE'
8799 fi
8800 fi
8801 fi
d9898ee8 8802
8d138742
CE
8803 export_dynamic_flag_spec='${wl}-bexpall'
8804 # It seems that -bexpall does not export symbols beginning with
8805 # underscore (_), so it is better to generate a list of symbols to export.
8806 always_export_symbols=yes
8807 if test "$aix_use_runtimelinking" = yes; then
8808 # Warning - without using the other runtime loading flags (-brtl),
8809 # -berok will link without error, but may produce a broken library.
8810 allow_undefined_flag='-berok'
8811 # Determine the default libpath from the value encoded in an
8812 # empty executable.
8813 cat >conftest.$ac_ext <<_ACEOF
8814/* confdefs.h. */
8815_ACEOF
8816cat confdefs.h >>conftest.$ac_ext
8817cat >>conftest.$ac_ext <<_ACEOF
8818/* end confdefs.h. */
d9898ee8 8819
8d138742
CE
8820int
8821main ()
8822{
d9898ee8 8823
8d138742
CE
8824 ;
8825 return 0;
8826}
8827_ACEOF
8828rm -f conftest.$ac_objext conftest$ac_exeext
8829if { (ac_try="$ac_link"
8830case "(($ac_try" in
8831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8832 *) ac_try_echo=$ac_try;;
8833esac
8834eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8835$as_echo "$ac_try_echo") >&5
8836 (eval "$ac_link") 2>conftest.er1
8837 ac_status=$?
8838 grep -v '^ *+' conftest.er1 >conftest.err
8839 rm -f conftest.er1
8840 cat conftest.err >&5
8841 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8842 (exit $ac_status); } && {
8843 test -z "$ac_c_werror_flag" ||
8844 test ! -s conftest.err
8845 } && test -s conftest$ac_exeext && {
8846 test "$cross_compiling" = yes ||
8847 $as_test_x conftest$ac_exeext
8848 }; then
d9898ee8 8849
8d138742
CE
8850lt_aix_libpath_sed='
8851 /Import File Strings/,/^$/ {
8852 /^0/ {
8853 s/^0 *\(.*\)$/\1/
8854 p
8855 }
8856 }'
8857aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8858# Check for a 64-bit object if we didn't find anything.
8859if test -z "$aix_libpath"; then
8860 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8861fi
8862else
8863 $as_echo "$as_me: failed program was:" >&5
8864sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 8865
d9898ee8 8866
8d138742 8867fi
d9898ee8 8868
8d138742
CE
8869rm -rf conftest.dSYM
8870rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8871 conftest$ac_exeext conftest.$ac_ext
8872if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
d9898ee8 8873
8d138742
CE
8874 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8875 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"
8876 else
8877 if test "$host_cpu" = ia64; then
8878 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8879 allow_undefined_flag="-z nodefs"
8880 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"
8881 else
8882 # Determine the default libpath from the value encoded in an
8883 # empty executable.
8884 cat >conftest.$ac_ext <<_ACEOF
8885/* confdefs.h. */
8886_ACEOF
8887cat confdefs.h >>conftest.$ac_ext
8888cat >>conftest.$ac_ext <<_ACEOF
8889/* end confdefs.h. */
d9898ee8 8890
8d138742
CE
8891int
8892main ()
8893{
d9898ee8 8894
8d138742
CE
8895 ;
8896 return 0;
8897}
8898_ACEOF
8899rm -f conftest.$ac_objext conftest$ac_exeext
8900if { (ac_try="$ac_link"
8901case "(($ac_try" in
8902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8903 *) ac_try_echo=$ac_try;;
8904esac
8905eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8906$as_echo "$ac_try_echo") >&5
8907 (eval "$ac_link") 2>conftest.er1
8908 ac_status=$?
8909 grep -v '^ *+' conftest.er1 >conftest.err
8910 rm -f conftest.er1
8911 cat conftest.err >&5
8912 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8913 (exit $ac_status); } && {
8914 test -z "$ac_c_werror_flag" ||
8915 test ! -s conftest.err
8916 } && test -s conftest$ac_exeext && {
8917 test "$cross_compiling" = yes ||
8918 $as_test_x conftest$ac_exeext
8919 }; then
d9898ee8 8920
8d138742
CE
8921lt_aix_libpath_sed='
8922 /Import File Strings/,/^$/ {
8923 /^0/ {
8924 s/^0 *\(.*\)$/\1/
8925 p
8926 }
8927 }'
8928aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8929# Check for a 64-bit object if we didn't find anything.
8930if test -z "$aix_libpath"; then
8931 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8932fi
8933else
8934 $as_echo "$as_me: failed program was:" >&5
8935sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 8936
d9898ee8 8937
8d138742 8938fi
d9898ee8 8939
8d138742
CE
8940rm -rf conftest.dSYM
8941rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8942 conftest$ac_exeext conftest.$ac_ext
8943if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
d9898ee8 8944
8d138742
CE
8945 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8946 # Warning - without using the other run time loading flags,
8947 # -berok will link without error, but may produce a broken library.
8948 no_undefined_flag=' ${wl}-bernotok'
8949 allow_undefined_flag=' ${wl}-berok'
8950 # Exported symbols can be pulled into shared objects from archives
8951 whole_archive_flag_spec='$convenience'
8952 archive_cmds_need_lc=yes
8953 # This is similar to how AIX traditionally builds its shared libraries.
8954 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'
8955 fi
8956 fi
8957 ;;
d9898ee8 8958
8d138742
CE
8959 amigaos*)
8960 case $host_cpu in
8961 powerpc)
8962 # see comment about AmigaOS4 .so support
8963 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8964 archive_expsym_cmds=''
8965 ;;
8966 m68k)
8967 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)'
8968 hardcode_libdir_flag_spec='-L$libdir'
8969 hardcode_minus_L=yes
8970 ;;
8971 esac
8972 ;;
d9898ee8 8973
8d138742
CE
8974 bsdi[45]*)
8975 export_dynamic_flag_spec=-rdynamic
8976 ;;
d9898ee8 8977
8d138742
CE
8978 cygwin* | mingw* | pw32* | cegcc*)
8979 # When not using gcc, we currently assume that we are using
8980 # Microsoft Visual C++.
8981 # hardcode_libdir_flag_spec is actually meaningless, as there is
8982 # no search path for DLLs.
8983 hardcode_libdir_flag_spec=' '
8984 allow_undefined_flag=unsupported
8985 # Tell ltmain to make .lib files, not .a files.
8986 libext=lib
8987 # Tell ltmain to make .dll files, not .so files.
8988 shrext_cmds=".dll"
8989 # FIXME: Setting linknames here is a bad hack.
8990 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8991 # The linker will automatically build a .lib file if we build a DLL.
8992 old_archive_from_new_cmds='true'
8993 # FIXME: Should let the user specify the lib program.
8994 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8995 fix_srcfile_path='`cygpath -w "$srcfile"`'
8996 enable_shared_with_static_runtimes=yes
8997 ;;
d9898ee8 8998
8d138742 8999 darwin* | rhapsody*)
d9898ee8 9000
d9898ee8 9001
8d138742
CE
9002 archive_cmds_need_lc=no
9003 hardcode_direct=no
9004 hardcode_automatic=yes
9005 hardcode_shlibpath_var=unsupported
9006 whole_archive_flag_spec=''
9007 link_all_deplibs=yes
9008 allow_undefined_flag="$_lt_dar_allow_undefined"
9009 case $cc_basename in
9010 ifort*) _lt_dar_can_shared=yes ;;
9011 *) _lt_dar_can_shared=$GCC ;;
9012 esac
9013 if test "$_lt_dar_can_shared" = "yes"; then
9014 output_verbose_link_cmd=echo
9015 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9016 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9017 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}"
9018 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}"
d9898ee8 9019
8d138742
CE
9020 else
9021 ld_shlibs=no
9022 fi
d9898ee8 9023
8d138742 9024 ;;
d9898ee8 9025
8d138742
CE
9026 dgux*)
9027 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9028 hardcode_libdir_flag_spec='-L$libdir'
9029 hardcode_shlibpath_var=no
9030 ;;
d9898ee8 9031
8d138742
CE
9032 freebsd1*)
9033 ld_shlibs=no
9034 ;;
d9898ee8 9035
8d138742
CE
9036 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9037 # support. Future versions do this automatically, but an explicit c++rt0.o
9038 # does not break anything, and helps significantly (at the cost of a little
9039 # extra space).
9040 freebsd2.2*)
9041 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9042 hardcode_libdir_flag_spec='-R$libdir'
9043 hardcode_direct=yes
9044 hardcode_shlibpath_var=no
9045 ;;
d9898ee8 9046
8d138742
CE
9047 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9048 freebsd2*)
9049 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9050 hardcode_direct=yes
9051 hardcode_minus_L=yes
9052 hardcode_shlibpath_var=no
9053 ;;
d9898ee8 9054
8d138742
CE
9055 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9056 freebsd* | dragonfly*)
9057 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9058 hardcode_libdir_flag_spec='-R$libdir'
9059 hardcode_direct=yes
9060 hardcode_shlibpath_var=no
9061 ;;
d9898ee8 9062
8d138742
CE
9063 hpux9*)
9064 if test "$GCC" = yes; then
9065 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'
9066 else
9067 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'
9068 fi
9069 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9070 hardcode_libdir_separator=:
9071 hardcode_direct=yes
d9898ee8 9072
8d138742
CE
9073 # hardcode_minus_L: Not really in the search PATH,
9074 # but as the default location of the library.
9075 hardcode_minus_L=yes
9076 export_dynamic_flag_spec='${wl}-E'
9077 ;;
d9898ee8 9078
8d138742
CE
9079 hpux10*)
9080 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9081 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9082 else
9083 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9084 fi
9085 if test "$with_gnu_ld" = no; then
9086 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9087 hardcode_libdir_flag_spec_ld='+b $libdir'
9088 hardcode_libdir_separator=:
9089 hardcode_direct=yes
9090 hardcode_direct_absolute=yes
9091 export_dynamic_flag_spec='${wl}-E'
9092 # hardcode_minus_L: Not really in the search PATH,
9093 # but as the default location of the library.
9094 hardcode_minus_L=yes
9095 fi
9096 ;;
d9898ee8 9097
8d138742
CE
9098 hpux11*)
9099 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9100 case $host_cpu in
9101 hppa*64*)
9102 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9103 ;;
9104 ia64*)
9105 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9106 ;;
9107 *)
9108 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9109 ;;
9110 esac
9111 else
9112 case $host_cpu in
9113 hppa*64*)
9114 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9115 ;;
9116 ia64*)
9117 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9118 ;;
9119 *)
9120 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9121 ;;
9122 esac
9123 fi
9124 if test "$with_gnu_ld" = no; then
9125 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9126 hardcode_libdir_separator=:
d9898ee8 9127
8d138742
CE
9128 case $host_cpu in
9129 hppa*64*|ia64*)
9130 hardcode_direct=no
9131 hardcode_shlibpath_var=no
9132 ;;
9133 *)
9134 hardcode_direct=yes
9135 hardcode_direct_absolute=yes
9136 export_dynamic_flag_spec='${wl}-E'
d9898ee8 9137
8d138742
CE
9138 # hardcode_minus_L: Not really in the search PATH,
9139 # but as the default location of the library.
9140 hardcode_minus_L=yes
9141 ;;
9142 esac
9143 fi
9144 ;;
d9898ee8 9145
8d138742
CE
9146 irix5* | irix6* | nonstopux*)
9147 if test "$GCC" = yes; then
9148 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'
9149 # Try to use the -exported_symbol ld option, if it does not
9150 # work, assume that -exports_file does not work either and
9151 # implicitly export all symbols.
9152 save_LDFLAGS="$LDFLAGS"
9153 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9154 cat >conftest.$ac_ext <<_ACEOF
9155int foo(void) {}
9156_ACEOF
9157rm -f conftest.$ac_objext conftest$ac_exeext
9158if { (ac_try="$ac_link"
9159case "(($ac_try" in
9160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9161 *) ac_try_echo=$ac_try;;
9162esac
9163eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9164$as_echo "$ac_try_echo") >&5
9165 (eval "$ac_link") 2>conftest.er1
9166 ac_status=$?
9167 grep -v '^ *+' conftest.er1 >conftest.err
9168 rm -f conftest.er1
9169 cat conftest.err >&5
9170 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9171 (exit $ac_status); } && {
9172 test -z "$ac_c_werror_flag" ||
9173 test ! -s conftest.err
9174 } && test -s conftest$ac_exeext && {
9175 test "$cross_compiling" = yes ||
9176 $as_test_x conftest$ac_exeext
9177 }; then
9178 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'
d9898ee8 9179
8d138742
CE
9180else
9181 $as_echo "$as_me: failed program was:" >&5
9182sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 9183
d9898ee8 9184
8d138742 9185fi
d9898ee8 9186
8d138742
CE
9187rm -rf conftest.dSYM
9188rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9189 conftest$ac_exeext conftest.$ac_ext
9190 LDFLAGS="$save_LDFLAGS"
9191 else
9192 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'
9193 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'
9194 fi
9195 archive_cmds_need_lc='no'
9196 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9197 hardcode_libdir_separator=:
9198 inherit_rpath=yes
9199 link_all_deplibs=yes
9200 ;;
d9898ee8 9201
8d138742
CE
9202 netbsd*)
9203 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9204 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9205 else
9206 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9207 fi
9208 hardcode_libdir_flag_spec='-R$libdir'
9209 hardcode_direct=yes
9210 hardcode_shlibpath_var=no
9211 ;;
d9898ee8 9212
8d138742
CE
9213 newsos6)
9214 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9215 hardcode_direct=yes
9216 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9217 hardcode_libdir_separator=:
9218 hardcode_shlibpath_var=no
9219 ;;
d9898ee8 9220
8d138742
CE
9221 *nto* | *qnx*)
9222 ;;
d9898ee8 9223
8d138742
CE
9224 openbsd*)
9225 if test -f /usr/libexec/ld.so; then
9226 hardcode_direct=yes
9227 hardcode_shlibpath_var=no
9228 hardcode_direct_absolute=yes
9229 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9230 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9231 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9232 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9233 export_dynamic_flag_spec='${wl}-E'
9234 else
9235 case $host_os in
9236 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9237 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9238 hardcode_libdir_flag_spec='-R$libdir'
9239 ;;
9240 *)
9241 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9242 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9243 ;;
9244 esac
9245 fi
9246 else
9247 ld_shlibs=no
9248 fi
9249 ;;
d9898ee8 9250
8d138742
CE
9251 os2*)
9252 hardcode_libdir_flag_spec='-L$libdir'
9253 hardcode_minus_L=yes
9254 allow_undefined_flag=unsupported
9255 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'
9256 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9257 ;;
d9898ee8 9258
8d138742
CE
9259 osf3*)
9260 if test "$GCC" = yes; then
9261 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9262 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'
9263 else
9264 allow_undefined_flag=' -expect_unresolved \*'
9265 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'
9266 fi
9267 archive_cmds_need_lc='no'
9268 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9269 hardcode_libdir_separator=:
9270 ;;
d9898ee8 9271
8d138742
CE
9272 osf4* | osf5*) # as osf3* with the addition of -msym flag
9273 if test "$GCC" = yes; then
9274 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9275 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'
9276 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9277 else
9278 allow_undefined_flag=' -expect_unresolved \*'
9279 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'
9280 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~
9281 $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'
d9898ee8 9282
8d138742
CE
9283 # Both c and cxx compiler support -rpath directly
9284 hardcode_libdir_flag_spec='-rpath $libdir'
9285 fi
9286 archive_cmds_need_lc='no'
9287 hardcode_libdir_separator=:
9288 ;;
d9898ee8 9289
8d138742
CE
9290 solaris*)
9291 no_undefined_flag=' -z defs'
9292 if test "$GCC" = yes; then
9293 wlarc='${wl}'
9294 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9295 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9296 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9297 else
9298 case `$CC -V 2>&1` in
9299 *"Compilers 5.0"*)
9300 wlarc=''
9301 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9302 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9303 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9304 ;;
9305 *)
9306 wlarc='${wl}'
9307 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9308 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9309 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9310 ;;
9311 esac
9312 fi
9313 hardcode_libdir_flag_spec='-R$libdir'
9314 hardcode_shlibpath_var=no
9315 case $host_os in
9316 solaris2.[0-5] | solaris2.[0-5].*) ;;
9317 *)
9318 # The compiler driver will combine and reorder linker options,
9319 # but understands `-z linker_flag'. GCC discards it without `$wl',
9320 # but is careful enough not to reorder.
9321 # Supported since Solaris 2.6 (maybe 2.5.1?)
9322 if test "$GCC" = yes; then
9323 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9324 else
9325 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9326 fi
9327 ;;
9328 esac
9329 link_all_deplibs=yes
9330 ;;
d9898ee8 9331
8d138742
CE
9332 sunos4*)
9333 if test "x$host_vendor" = xsequent; then
9334 # Use $CC to link under sequent, because it throws in some extra .o
9335 # files that make .init and .fini sections work.
9336 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9337 else
9338 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9339 fi
9340 hardcode_libdir_flag_spec='-L$libdir'
9341 hardcode_direct=yes
9342 hardcode_minus_L=yes
9343 hardcode_shlibpath_var=no
9344 ;;
d9898ee8 9345
8d138742
CE
9346 sysv4)
9347 case $host_vendor in
9348 sni)
9349 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9350 hardcode_direct=yes # is this really true???
9351 ;;
9352 siemens)
9353 ## LD is ld it makes a PLAMLIB
9354 ## CC just makes a GrossModule.
9355 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9356 reload_cmds='$CC -r -o $output$reload_objs'
9357 hardcode_direct=no
9358 ;;
9359 motorola)
9360 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9361 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9362 ;;
9363 esac
9364 runpath_var='LD_RUN_PATH'
9365 hardcode_shlibpath_var=no
9366 ;;
d9898ee8 9367
8d138742
CE
9368 sysv4.3*)
9369 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9370 hardcode_shlibpath_var=no
9371 export_dynamic_flag_spec='-Bexport'
9372 ;;
d9898ee8 9373
8d138742
CE
9374 sysv4*MP*)
9375 if test -d /usr/nec; then
9376 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9377 hardcode_shlibpath_var=no
9378 runpath_var=LD_RUN_PATH
9379 hardcode_runpath_var=yes
9380 ld_shlibs=yes
9381 fi
9382 ;;
d9898ee8 9383
8d138742
CE
9384 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9385 no_undefined_flag='${wl}-z,text'
9386 archive_cmds_need_lc=no
9387 hardcode_shlibpath_var=no
9388 runpath_var='LD_RUN_PATH'
d9898ee8 9389
8d138742
CE
9390 if test "$GCC" = yes; then
9391 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9392 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9393 else
9394 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9395 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9396 fi
9397 ;;
d9898ee8 9398
8d138742
CE
9399 sysv5* | sco3.2v5* | sco5v6*)
9400 # Note: We can NOT use -z defs as we might desire, because we do not
9401 # link with -lc, and that would cause any symbols used from libc to
9402 # always be unresolved, which means just about no library would
9403 # ever link correctly. If we're not using GNU ld we use -z text
9404 # though, which does catch some bad symbols but isn't as heavy-handed
9405 # as -z defs.
9406 no_undefined_flag='${wl}-z,text'
9407 allow_undefined_flag='${wl}-z,nodefs'
9408 archive_cmds_need_lc=no
9409 hardcode_shlibpath_var=no
9410 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9411 hardcode_libdir_separator=':'
9412 link_all_deplibs=yes
9413 export_dynamic_flag_spec='${wl}-Bexport'
9414 runpath_var='LD_RUN_PATH'
d9898ee8 9415
8d138742
CE
9416 if test "$GCC" = yes; then
9417 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9418 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9419 else
9420 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9421 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9422 fi
9423 ;;
d9898ee8 9424
8d138742
CE
9425 uts4*)
9426 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9427 hardcode_libdir_flag_spec='-L$libdir'
9428 hardcode_shlibpath_var=no
9429 ;;
d9898ee8 9430
8d138742
CE
9431 *)
9432 ld_shlibs=no
9433 ;;
9434 esac
d9898ee8 9435
8d138742
CE
9436 if test x$host_vendor = xsni; then
9437 case $host in
9438 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9439 export_dynamic_flag_spec='${wl}-Blargedynsym'
9440 ;;
9441 esac
9442 fi
9443 fi
d9898ee8 9444
8d138742
CE
9445{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9446$as_echo "$ld_shlibs" >&6; }
9447test "$ld_shlibs" = no && can_build_shared=no
d9898ee8 9448
8d138742 9449with_gnu_ld=$with_gnu_ld
d9898ee8 9450
9451
d9898ee8 9452
d9898ee8 9453
d9898ee8 9454
d9898ee8 9455
d9898ee8 9456
9457
d9898ee8 9458
d9898ee8 9459
9460
dd184caf 9461
d9898ee8 9462
d9898ee8 9463
d9898ee8 9464
8d138742
CE
9465#
9466# Do we need to explicitly link libc?
9467#
9468case "x$archive_cmds_need_lc" in
9469x|xyes)
9470 # Assume -lc should be added
9471 archive_cmds_need_lc=yes
d9898ee8 9472
8d138742
CE
9473 if test "$enable_shared" = yes && test "$GCC" = yes; then
9474 case $archive_cmds in
9475 *'~'*)
9476 # FIXME: we may have to deal with multi-command sequences.
9477 ;;
9478 '$CC '*)
9479 # Test whether the compiler implicitly links with -lc since on some
9480 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9481 # to ld, don't add -lc before -lgcc.
9482 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9483$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9484 $RM conftest*
9485 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9486
9487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9488 (eval $ac_compile) 2>&5
9489 ac_status=$?
9490 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9491 (exit $ac_status); } 2>conftest.err; then
9492 soname=conftest
9493 lib=conftest
9494 libobjs=conftest.$ac_objext
9495 deplibs=
9496 wl=$lt_prog_compiler_wl
9497 pic_flag=$lt_prog_compiler_pic
9498 compiler_flags=-v
9499 linker_flags=-v
9500 verstring=
9501 output_objdir=.
9502 libname=conftest
9503 lt_save_allow_undefined_flag=$allow_undefined_flag
9504 allow_undefined_flag=
9505 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9506 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9507 ac_status=$?
9508 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9509 (exit $ac_status); }
9510 then
9511 archive_cmds_need_lc=no
9512 else
9513 archive_cmds_need_lc=yes
9514 fi
9515 allow_undefined_flag=$lt_save_allow_undefined_flag
9516 else
9517 cat conftest.err 1>&5
9518 fi
9519 $RM conftest*
9520 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9521$as_echo "$archive_cmds_need_lc" >&6; }
9522 ;;
d9898ee8 9523 esac
8d138742
CE
9524 fi
9525 ;;
9526esac
d9898ee8 9527
d9898ee8 9528
d9898ee8 9529
d9898ee8 9530
d9898ee8 9531
d9898ee8 9532
d9898ee8 9533
d9898ee8 9534
d9898ee8 9535
9536
d9898ee8 9537
d9898ee8 9538
9539
d9898ee8 9540
9541
d9898ee8 9542
d9898ee8 9543
9544
dd184caf 9545
d9898ee8 9546
d9898ee8 9547
9548
9549
d9898ee8 9550
d9898ee8 9551
d9898ee8 9552
d9898ee8 9553
d9898ee8 9554
d9898ee8 9555
d9898ee8 9556
d9898ee8 9557
d9898ee8 9558
d9898ee8 9559
d9898ee8 9560
d9898ee8 9561
d9898ee8 9562
dd184caf 9563
dd184caf 9564
d9898ee8 9565
d9898ee8 9566
d9898ee8 9567
d9898ee8 9568
d9898ee8 9569
d9898ee8 9570
dd184caf 9571
dd184caf 9572
d9898ee8 9573
d9898ee8 9574
d9898ee8 9575
d9898ee8 9576
d9898ee8 9577
d9898ee8 9578
d9898ee8 9579
d9898ee8 9580
d9898ee8 9581
d9898ee8 9582
d9898ee8 9583
d9898ee8 9584
d9898ee8 9585
d9898ee8 9586
d9898ee8 9587
d9898ee8 9588
d9898ee8 9589
d9898ee8 9590
d9898ee8 9591
d9898ee8 9592
d9898ee8 9593
d9898ee8 9594
d9898ee8 9595
d9898ee8 9596
9597
d9898ee8 9598
d9898ee8 9599
d9898ee8 9600
d9898ee8 9601
d9898ee8 9602
d9898ee8 9603
d9898ee8 9604
d9898ee8 9605
d9898ee8 9606
ac40fd9e 9607
ac40fd9e 9608
d9898ee8 9609
9610
d9898ee8 9611
d9898ee8 9612
d9898ee8 9613
d9898ee8 9614
d9898ee8 9615
d9898ee8 9616
d9898ee8 9617
d9898ee8 9618
d9898ee8 9619
d9898ee8 9620
d9898ee8 9621
d9898ee8 9622
d9898ee8 9623
d9898ee8 9624
9625
d9898ee8 9626
d9898ee8 9627
d9898ee8 9628
9629
d9898ee8 9630
d9898ee8 9631
d9898ee8 9632
d9898ee8 9633
d9898ee8 9634
d9898ee8 9635
d9898ee8 9636
ac40fd9e 9637
d9898ee8 9638
d9898ee8 9639
d9898ee8 9640
d9898ee8 9641
d9898ee8 9642
d9898ee8 9643
d9898ee8 9644
8d138742
CE
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9685$as_echo_n "checking dynamic linker characteristics... " >&6; }
9686
9687if test "$GCC" = yes; then
9688 case $host_os in
9689 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9690 *) lt_awk_arg="/^libraries:/" ;;
9691 esac
9692 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9693 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9694 # if the path contains ";" then we assume it to be the separator
9695 # otherwise default to the standard path separator (i.e. ":") - it is
9696 # assumed that no part of a normal pathname contains ";" but that should
9697 # okay in the real world where ";" in dirpaths is itself problematic.
9698 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9699 else
9700 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9701 fi
9702 # Ok, now we have the path, separated by spaces, we can step through it
9703 # and add multilib dir if necessary.
9704 lt_tmp_lt_search_path_spec=
9705 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9706 for lt_sys_path in $lt_search_path_spec; do
9707 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9708 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9709 else
9710 test -d "$lt_sys_path" && \
9711 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9712 fi
9713 done
9714 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9715BEGIN {RS=" "; FS="/|\n";} {
9716 lt_foo="";
9717 lt_count=0;
9718 for (lt_i = NF; lt_i > 0; lt_i--) {
9719 if ($lt_i != "" && $lt_i != ".") {
9720 if ($lt_i == "..") {
9721 lt_count++;
9722 } else {
9723 if (lt_count == 0) {
9724 lt_foo="/" $lt_i lt_foo;
9725 } else {
9726 lt_count--;
9727 }
9728 }
9729 }
9730 }
9731 if (lt_foo != "") { lt_freq[lt_foo]++; }
9732 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9733}'`
9734 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9735else
9736 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9737fi
9738library_names_spec=
9739libname_spec='lib$name'
9740soname_spec=
9741shrext_cmds=".so"
9742postinstall_cmds=
9743postuninstall_cmds=
9744finish_cmds=
9745finish_eval=
9746shlibpath_var=
9747shlibpath_overrides_runpath=unknown
9748version_type=none
9749dynamic_linker="$host_os ld.so"
9750sys_lib_dlsearch_path_spec="/lib /usr/lib"
9751need_lib_prefix=unknown
9752hardcode_into_libs=no
9753
9754# when you set need_version to no, make sure it does not cause -set_version
9755# flags to be left without arguments
9756need_version=unknown
9757
9758case $host_os in
9759aix3*)
9760 version_type=linux
9761 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9762 shlibpath_var=LIBPATH
9763
9764 # AIX 3 has no versioning support, so we append a major version to the name.
9765 soname_spec='${libname}${release}${shared_ext}$major'
9766 ;;
9767
9768aix[4-9]*)
9769 version_type=linux
9770 need_lib_prefix=no
9771 need_version=no
9772 hardcode_into_libs=yes
9773 if test "$host_cpu" = ia64; then
9774 # AIX 5 supports IA64
9775 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9776 shlibpath_var=LD_LIBRARY_PATH
9777 else
9778 # With GCC up to 2.95.x, collect2 would create an import file
9779 # for dependence libraries. The import file would start with
9780 # the line `#! .'. This would cause the generated library to
9781 # depend on `.', always an invalid library. This was fixed in
9782 # development snapshots of GCC prior to 3.0.
9783 case $host_os in
9784 aix4 | aix4.[01] | aix4.[01].*)
9785 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9786 echo ' yes '
9787 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9788 :
9789 else
9790 can_build_shared=no
9791 fi
9792 ;;
9793 esac
9794 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9795 # soname into executable. Probably we can add versioning support to
9796 # collect2, so additional links can be useful in future.
9797 if test "$aix_use_runtimelinking" = yes; then
9798 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9799 # instead of lib<name>.a to let people know that these are not
9800 # typical AIX shared libraries.
9801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9802 else
9803 # We preserve .a as extension for shared libraries through AIX4.2
9804 # and later when we are not doing run time linking.
9805 library_names_spec='${libname}${release}.a $libname.a'
9806 soname_spec='${libname}${release}${shared_ext}$major'
9807 fi
9808 shlibpath_var=LIBPATH
9809 fi
9810 ;;
9811
9812amigaos*)
9813 case $host_cpu in
9814 powerpc)
9815 # Since July 2007 AmigaOS4 officially supports .so libraries.
9816 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9818 ;;
9819 m68k)
9820 library_names_spec='$libname.ixlibrary $libname.a'
9821 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9822 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'
9823 ;;
9824 esac
9825 ;;
9826
9827beos*)
9828 library_names_spec='${libname}${shared_ext}'
9829 dynamic_linker="$host_os ld.so"
9830 shlibpath_var=LIBRARY_PATH
9831 ;;
9832
9833bsdi[45]*)
9834 version_type=linux
9835 need_version=no
d9898ee8 9836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9837 soname_spec='${libname}${release}${shared_ext}$major'
9838 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9839 shlibpath_var=LD_LIBRARY_PATH
9840 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9841 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9842 # the default ld.so.conf also contains /usr/contrib/lib and
9843 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9844 # libtool to hard-code these into programs
9845 ;;
9846
8d138742 9847cygwin* | mingw* | pw32* | cegcc*)
d9898ee8 9848 version_type=windows
9849 shrext_cmds=".dll"
9850 need_version=no
9851 need_lib_prefix=no
9852
9853 case $GCC,$host_os in
8d138742 9854 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
d9898ee8 9855 library_names_spec='$libname.dll.a'
9856 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9857 postinstall_cmds='base_file=`basename \${file}`~
8d138742 9858 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
d9898ee8 9859 dldir=$destdir/`dirname \$dlpath`~
9860 test -d \$dldir || mkdir -p \$dldir~
9861 $install_prog $dir/$dlname \$dldir/$dlname~
8d138742
CE
9862 chmod a+x \$dldir/$dlname~
9863 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9864 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9865 fi'
d9898ee8 9866 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9867 dlpath=$dir/\$dldll~
8d138742 9868 $RM \$dlpath'
d9898ee8 9869 shlibpath_overrides_runpath=yes
9870
9871 case $host_os in
9872 cygwin*)
9873 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9874 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9875 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9876 ;;
8d138742 9877 mingw* | cegcc*)
d9898ee8 9878 # MinGW DLLs use traditional 'lib' prefix
9879 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8d138742
CE
9880 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9881 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
d9898ee8 9882 # It is most probably a Windows format PATH printed by
9883 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9884 # path with ; separators, and with drive letters. We can handle the
9885 # drive letters (cygwin fileutils understands them), so leave them,
9886 # especially as we might pass files found there to a mingw objdump,
9887 # which wouldn't understand a cygwinified path. Ahh.
8d138742 9888 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
d9898ee8 9889 else
8d138742 9890 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
d9898ee8 9891 fi
9892 ;;
9893 pw32*)
9894 # pw32 DLLs use 'pw' prefix rather than 'lib'
9895 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9896 ;;
9897 esac
9898 ;;
9899
9900 *)
9901 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9902 ;;
9903 esac
9904 dynamic_linker='Win32 ld.exe'
9905 # FIXME: first we should search . and the directory the executable is in
9906 shlibpath_var=PATH
9907 ;;
9908
9909darwin* | rhapsody*)
9910 dynamic_linker="$host_os dyld"
9911 version_type=darwin
9912 need_lib_prefix=no
9913 need_version=no
8d138742 9914 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
d9898ee8 9915 soname_spec='${libname}${release}${major}$shared_ext'
9916 shlibpath_overrides_runpath=yes
9917 shlibpath_var=DYLD_LIBRARY_PATH
9918 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
ac40fd9e 9919
8d138742 9920 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
d9898ee8 9921 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9922 ;;
9923
9924dgux*)
9925 version_type=linux
9926 need_lib_prefix=no
9927 need_version=no
9928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9929 soname_spec='${libname}${release}${shared_ext}$major'
9930 shlibpath_var=LD_LIBRARY_PATH
9931 ;;
9932
9933freebsd1*)
9934 dynamic_linker=no
9935 ;;
9936
d9898ee8 9937freebsd* | dragonfly*)
9938 # DragonFly does not have aout. When/if they implement a new
9939 # versioning mechanism, adjust this.
9940 if test -x /usr/bin/objformat; then
9941 objformat=`/usr/bin/objformat`
9942 else
9943 case $host_os in
9944 freebsd[123]*) objformat=aout ;;
9945 *) objformat=elf ;;
9946 esac
9947 fi
9948 version_type=freebsd-$objformat
9949 case $version_type in
9950 freebsd-elf*)
9951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9952 need_version=no
9953 need_lib_prefix=no
9954 ;;
9955 freebsd-*)
9956 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9957 need_version=yes
9958 ;;
9959 esac
9960 shlibpath_var=LD_LIBRARY_PATH
9961 case $host_os in
9962 freebsd2*)
9963 shlibpath_overrides_runpath=yes
9964 ;;
9965 freebsd3.[01]* | freebsdelf3.[01]*)
9966 shlibpath_overrides_runpath=yes
9967 hardcode_into_libs=yes
9968 ;;
9969 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9970 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9971 shlibpath_overrides_runpath=no
9972 hardcode_into_libs=yes
9973 ;;
ac40fd9e 9974 *) # from 4.6 on, and DragonFly
d9898ee8 9975 shlibpath_overrides_runpath=yes
9976 hardcode_into_libs=yes
9977 ;;
9978 esac
9979 ;;
9980
9981gnu*)
9982 version_type=linux
9983 need_lib_prefix=no
9984 need_version=no
9985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9986 soname_spec='${libname}${release}${shared_ext}$major'
9987 shlibpath_var=LD_LIBRARY_PATH
9988 hardcode_into_libs=yes
9989 ;;
9990
9991hpux9* | hpux10* | hpux11*)
9992 # Give a soname corresponding to the major version so that dld.sl refuses to
9993 # link against other versions.
9994 version_type=sunos
9995 need_lib_prefix=no
9996 need_version=no
9997 case $host_cpu in
9998 ia64*)
9999 shrext_cmds='.so'
10000 hardcode_into_libs=yes
10001 dynamic_linker="$host_os dld.so"
10002 shlibpath_var=LD_LIBRARY_PATH
10003 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10005 soname_spec='${libname}${release}${shared_ext}$major'
10006 if test "X$HPUX_IA64_MODE" = X32; then
10007 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10008 else
10009 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10010 fi
10011 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10012 ;;
8d138742
CE
10013 hppa*64*)
10014 shrext_cmds='.sl'
10015 hardcode_into_libs=yes
10016 dynamic_linker="$host_os dld.sl"
10017 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10018 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10020 soname_spec='${libname}${release}${shared_ext}$major'
10021 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10022 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10023 ;;
10024 *)
d9898ee8 10025 shrext_cmds='.sl'
10026 dynamic_linker="$host_os dld.sl"
10027 shlibpath_var=SHLIB_PATH
10028 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10030 soname_spec='${libname}${release}${shared_ext}$major'
10031 ;;
10032 esac
10033 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10034 postinstall_cmds='chmod 555 $lib'
10035 ;;
10036
ac40fd9e 10037interix[3-9]*)
d9898ee8 10038 version_type=linux
10039 need_lib_prefix=no
10040 need_version=no
10041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10042 soname_spec='${libname}${release}${shared_ext}$major'
10043 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10044 shlibpath_var=LD_LIBRARY_PATH
10045 shlibpath_overrides_runpath=no
10046 hardcode_into_libs=yes
10047 ;;
10048
10049irix5* | irix6* | nonstopux*)
10050 case $host_os in
10051 nonstopux*) version_type=nonstopux ;;
10052 *)
10053 if test "$lt_cv_prog_gnu_ld" = yes; then
10054 version_type=linux
10055 else
10056 version_type=irix
10057 fi ;;
10058 esac
10059 need_lib_prefix=no
10060 need_version=no
10061 soname_spec='${libname}${release}${shared_ext}$major'
10062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10063 case $host_os in
10064 irix5* | nonstopux*)
10065 libsuff= shlibsuff=
10066 ;;
10067 *)
10068 case $LD in # libtool.m4 will add one of these switches to LD
10069 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10070 libsuff= shlibsuff= libmagic=32-bit;;
10071 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10072 libsuff=32 shlibsuff=N32 libmagic=N32;;
10073 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10074 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10075 *) libsuff= shlibsuff= libmagic=never-match;;
10076 esac
10077 ;;
10078 esac
10079 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10080 shlibpath_overrides_runpath=no
10081 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10082 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10083 hardcode_into_libs=yes
10084 ;;
10085
10086# No shared lib support for Linux oldld, aout, or coff.
10087linux*oldld* | linux*aout* | linux*coff*)
10088 dynamic_linker=no
10089 ;;
10090
10091# This must be Linux ELF.
ac40fd9e 10092linux* | k*bsd*-gnu)
d9898ee8 10093 version_type=linux
10094 need_lib_prefix=no
10095 need_version=no
10096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10097 soname_spec='${libname}${release}${shared_ext}$major'
10098 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10099 shlibpath_var=LD_LIBRARY_PATH
10100 shlibpath_overrides_runpath=no
8d138742
CE
10101 # Some binutils ld are patched to set DT_RUNPATH
10102 save_LDFLAGS=$LDFLAGS
10103 save_libdir=$libdir
10104 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10105 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10106 cat >conftest.$ac_ext <<_ACEOF
10107/* confdefs.h. */
10108_ACEOF
10109cat confdefs.h >>conftest.$ac_ext
10110cat >>conftest.$ac_ext <<_ACEOF
10111/* end confdefs.h. */
10112
10113int
10114main ()
10115{
10116
10117 ;
10118 return 0;
10119}
10120_ACEOF
10121rm -f conftest.$ac_objext conftest$ac_exeext
10122if { (ac_try="$ac_link"
10123case "(($ac_try" in
10124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10125 *) ac_try_echo=$ac_try;;
10126esac
10127eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10128$as_echo "$ac_try_echo") >&5
10129 (eval "$ac_link") 2>conftest.er1
10130 ac_status=$?
10131 grep -v '^ *+' conftest.er1 >conftest.err
10132 rm -f conftest.er1
10133 cat conftest.err >&5
10134 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10135 (exit $ac_status); } && {
10136 test -z "$ac_c_werror_flag" ||
10137 test ! -s conftest.err
10138 } && test -s conftest$ac_exeext && {
10139 test "$cross_compiling" = yes ||
10140 $as_test_x conftest$ac_exeext
10141 }; then
10142 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
10143 shlibpath_overrides_runpath=yes
10144fi
10145
10146else
10147 $as_echo "$as_me: failed program was:" >&5
10148sed 's/^/| /' conftest.$ac_ext >&5
10149
10150
10151fi
10152
10153rm -rf conftest.dSYM
10154rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10155 conftest$ac_exeext conftest.$ac_ext
10156 LDFLAGS=$save_LDFLAGS
10157 libdir=$save_libdir
10158
d9898ee8 10159 # This implies no fast_install, which is unacceptable.
10160 # Some rework will be needed to allow for fast_install
10161 # before this can be enabled.
10162 hardcode_into_libs=yes
8d138742
CE
10163
10164 # Add ABI-specific directories to the system library path.
10165 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
d9898ee8 10166
10167 # Append ld.so.conf contents to the search path
10168 if test -f /etc/ld.so.conf; then
8d138742 10169 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' ' '`
ac40fd9e 10170 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
d9898ee8 10171 fi
10172
10173 # We used to test for /lib/ld.so.1 and disable shared libraries on
10174 # powerpc, because MkLinux only supported shared libraries with the
10175 # GNU dynamic linker. Since this was broken with cross compilers,
10176 # most powerpc-linux boxes support dynamic linking these days and
10177 # people can always --disable-shared, the test was removed, and we
10178 # assume the GNU/Linux dynamic linker is in use.
10179 dynamic_linker='GNU/Linux ld.so'
10180 ;;
10181
d9898ee8 10182netbsd*)
10183 version_type=sunos
10184 need_lib_prefix=no
10185 need_version=no
8d138742 10186 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
d9898ee8 10187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10188 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10189 dynamic_linker='NetBSD (a.out) ld.so'
10190 else
10191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10192 soname_spec='${libname}${release}${shared_ext}$major'
10193 dynamic_linker='NetBSD ld.elf_so'
10194 fi
10195 shlibpath_var=LD_LIBRARY_PATH
10196 shlibpath_overrides_runpath=yes
10197 hardcode_into_libs=yes
10198 ;;
10199
10200newsos6)
10201 version_type=linux
10202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10203 shlibpath_var=LD_LIBRARY_PATH
10204 shlibpath_overrides_runpath=yes
10205 ;;
10206
8d138742
CE
10207*nto* | *qnx*)
10208 version_type=qnx
d9898ee8 10209 need_lib_prefix=no
10210 need_version=no
10211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10212 soname_spec='${libname}${release}${shared_ext}$major'
10213 shlibpath_var=LD_LIBRARY_PATH
8d138742
CE
10214 shlibpath_overrides_runpath=no
10215 hardcode_into_libs=yes
10216 dynamic_linker='ldqnx.so'
d9898ee8 10217 ;;
10218
10219openbsd*)
10220 version_type=sunos
10221 sys_lib_dlsearch_path_spec="/usr/lib"
10222 need_lib_prefix=no
10223 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10224 case $host_os in
8d138742
CE
10225 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10226 *) need_version=no ;;
d9898ee8 10227 esac
10228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10229 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10230 shlibpath_var=LD_LIBRARY_PATH
8d138742 10231 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
d9898ee8 10232 case $host_os in
10233 openbsd2.[89] | openbsd2.[89].*)
10234 shlibpath_overrides_runpath=no
10235 ;;
10236 *)
10237 shlibpath_overrides_runpath=yes
10238 ;;
10239 esac
10240 else
10241 shlibpath_overrides_runpath=yes
10242 fi
10243 ;;
10244
10245os2*)
10246 libname_spec='$name'
10247 shrext_cmds=".dll"
10248 need_lib_prefix=no
10249 library_names_spec='$libname${shared_ext} $libname.a'
10250 dynamic_linker='OS/2 ld.exe'
10251 shlibpath_var=LIBPATH
10252 ;;
10253
10254osf3* | osf4* | osf5*)
10255 version_type=osf
10256 need_lib_prefix=no
10257 need_version=no
10258 soname_spec='${libname}${release}${shared_ext}$major'
10259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10260 shlibpath_var=LD_LIBRARY_PATH
10261 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10262 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10263 ;;
10264
ac40fd9e 10265rdos*)
10266 dynamic_linker=no
10267 ;;
10268
d9898ee8 10269solaris*)
10270 version_type=linux
10271 need_lib_prefix=no
10272 need_version=no
10273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10274 soname_spec='${libname}${release}${shared_ext}$major'
10275 shlibpath_var=LD_LIBRARY_PATH
10276 shlibpath_overrides_runpath=yes
10277 hardcode_into_libs=yes
10278 # ldd complains unless libraries are executable
10279 postinstall_cmds='chmod +x $lib'
10280 ;;
10281
10282sunos4*)
10283 version_type=sunos
10284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10285 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10286 shlibpath_var=LD_LIBRARY_PATH
10287 shlibpath_overrides_runpath=yes
10288 if test "$with_gnu_ld" = yes; then
10289 need_lib_prefix=no
10290 fi
10291 need_version=yes
10292 ;;
10293
10294sysv4 | sysv4.3*)
10295 version_type=linux
10296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10297 soname_spec='${libname}${release}${shared_ext}$major'
10298 shlibpath_var=LD_LIBRARY_PATH
10299 case $host_vendor in
10300 sni)
10301 shlibpath_overrides_runpath=no
10302 need_lib_prefix=no
d9898ee8 10303 runpath_var=LD_RUN_PATH
10304 ;;
10305 siemens)
10306 need_lib_prefix=no
10307 ;;
10308 motorola)
10309 need_lib_prefix=no
10310 need_version=no
10311 shlibpath_overrides_runpath=no
10312 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10313 ;;
10314 esac
10315 ;;
10316
10317sysv4*MP*)
10318 if test -d /usr/nec ;then
10319 version_type=linux
10320 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10321 soname_spec='$libname${shared_ext}.$major'
10322 shlibpath_var=LD_LIBRARY_PATH
10323 fi
10324 ;;
10325
10326sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10327 version_type=freebsd-elf
10328 need_lib_prefix=no
10329 need_version=no
10330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10331 soname_spec='${libname}${release}${shared_ext}$major'
10332 shlibpath_var=LD_LIBRARY_PATH
8d138742 10333 shlibpath_overrides_runpath=yes
d9898ee8 10334 hardcode_into_libs=yes
10335 if test "$with_gnu_ld" = yes; then
10336 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
d9898ee8 10337 else
10338 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
d9898ee8 10339 case $host_os in
10340 sco3.2v5*)
10341 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10342 ;;
10343 esac
10344 fi
10345 sys_lib_dlsearch_path_spec='/usr/lib'
10346 ;;
10347
8d138742
CE
10348tpf*)
10349 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10350 version_type=linux
10351 need_lib_prefix=no
10352 need_version=no
10353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10354 shlibpath_var=LD_LIBRARY_PATH
10355 shlibpath_overrides_runpath=no
10356 hardcode_into_libs=yes
10357 ;;
10358
d9898ee8 10359uts4*)
10360 version_type=linux
10361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10362 soname_spec='${libname}${release}${shared_ext}$major'
10363 shlibpath_var=LD_LIBRARY_PATH
10364 ;;
10365
10366*)
10367 dynamic_linker=no
10368 ;;
10369esac
8d138742
CE
10370{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10371$as_echo "$dynamic_linker" >&6; }
d9898ee8 10372test "$dynamic_linker" = no && can_build_shared=no
10373
10374variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10375if test "$GCC" = yes; then
10376 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10377fi
10378
8d138742
CE
10379if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10380 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10381fi
10382if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10383 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10384fi
d9898ee8 10385
10386
d9898ee8 10387
d9898ee8 10388
d9898ee8 10389
d9898ee8 10390
d9898ee8 10391
d9898ee8 10392
d9898ee8 10393
d9898ee8 10394
d9898ee8 10395
d9898ee8 10396
d9898ee8 10397
d9898ee8 10398
d9898ee8 10399
d9898ee8 10400
d9898ee8 10401
d9898ee8 10402
d9898ee8 10403
d9898ee8 10404
d9898ee8 10405
d9898ee8 10406
d9898ee8 10407
d9898ee8 10408
d9898ee8 10409
d9898ee8 10410
d9898ee8 10411
d9898ee8 10412
d9898ee8 10413
d9898ee8 10414
d9898ee8 10415
d9898ee8 10416
d9898ee8 10417
d9898ee8 10418
d9898ee8 10419
d9898ee8 10420
d9898ee8 10421
d9898ee8 10422
d9898ee8 10423
d9898ee8 10424
d9898ee8 10425
d9898ee8 10426
d9898ee8 10427
d9898ee8 10428
d9898ee8 10429
d9898ee8 10430
d9898ee8 10431
d9898ee8 10432
d9898ee8 10433
d9898ee8 10434
d9898ee8 10435
d9898ee8 10436
d9898ee8 10437
d9898ee8 10438
d9898ee8 10439
d9898ee8 10440
d9898ee8 10441
d9898ee8 10442
d9898ee8 10443
d9898ee8 10444
d9898ee8 10445
d9898ee8 10446
d9898ee8 10447
d9898ee8 10448
d9898ee8 10449
d9898ee8 10450
d9898ee8 10451
d9898ee8 10452
d9898ee8 10453
d9898ee8 10454
d9898ee8 10455
d9898ee8 10456
d9898ee8 10457
d9898ee8 10458
d9898ee8 10459
d9898ee8 10460
d9898ee8 10461
d9898ee8 10462
d9898ee8 10463
d9898ee8 10464
d9898ee8 10465
d9898ee8 10466
d9898ee8 10467
d9898ee8 10468
d9898ee8 10469
d9898ee8 10470
d9898ee8 10471
8d138742
CE
10472 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10473$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10474hardcode_action=
10475if test -n "$hardcode_libdir_flag_spec" ||
10476 test -n "$runpath_var" ||
10477 test "X$hardcode_automatic" = "Xyes" ; then
d9898ee8 10478
8d138742
CE
10479 # We can hardcode non-existent directories.
10480 if test "$hardcode_direct" != no &&
10481 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10482 # have to relink, otherwise we might link with an installed library
10483 # when we should be linking with a yet-to-be-installed one
10484 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10485 test "$hardcode_minus_L" != no; then
10486 # Linking always hardcodes the temporary library directory.
10487 hardcode_action=relink
10488 else
10489 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10490 hardcode_action=immediate
10491 fi
10492else
10493 # We cannot hardcode anything, or else we can only hardcode existing
10494 # directories.
10495 hardcode_action=unsupported
10496fi
10497{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
10498$as_echo "$hardcode_action" >&6; }
d9898ee8 10499
8d138742
CE
10500if test "$hardcode_action" = relink ||
10501 test "$inherit_rpath" = yes; then
10502 # Fast installation is not supported
10503 enable_fast_install=no
10504elif test "$shlibpath_overrides_runpath" = yes ||
10505 test "$enable_shared" = no; then
10506 # Fast installation is not necessary
10507 enable_fast_install=needless
10508fi
d9898ee8 10509
d9898ee8 10510
d9898ee8 10511
d9898ee8 10512
d9898ee8 10513
d9898ee8 10514
8d138742
CE
10515 if test "x$enable_dlopen" != xyes; then
10516 enable_dlopen=unknown
10517 enable_dlopen_self=unknown
10518 enable_dlopen_self_static=unknown
10519else
10520 lt_cv_dlopen=no
10521 lt_cv_dlopen_libs=
d9898ee8 10522
8d138742
CE
10523 case $host_os in
10524 beos*)
10525 lt_cv_dlopen="load_add_on"
10526 lt_cv_dlopen_libs=
10527 lt_cv_dlopen_self=yes
10528 ;;
d9898ee8 10529
8d138742
CE
10530 mingw* | pw32* | cegcc*)
10531 lt_cv_dlopen="LoadLibrary"
10532 lt_cv_dlopen_libs=
10533 ;;
d9898ee8 10534
8d138742
CE
10535 cygwin*)
10536 lt_cv_dlopen="dlopen"
10537 lt_cv_dlopen_libs=
10538 ;;
d9898ee8 10539
8d138742
CE
10540 darwin*)
10541 # if libdl is installed we need to link against it
10542 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10543$as_echo_n "checking for dlopen in -ldl... " >&6; }
10544if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10545 $as_echo_n "(cached) " >&6
10546else
10547 ac_check_lib_save_LIBS=$LIBS
10548LIBS="-ldl $LIBS"
10549cat >conftest.$ac_ext <<_ACEOF
10550/* confdefs.h. */
10551_ACEOF
10552cat confdefs.h >>conftest.$ac_ext
10553cat >>conftest.$ac_ext <<_ACEOF
10554/* end confdefs.h. */
d9898ee8 10555
8d138742
CE
10556/* Override any GCC internal prototype to avoid an error.
10557 Use char because int might match the return type of a GCC
10558 builtin and then its argument prototype would still apply. */
10559#ifdef __cplusplus
10560extern "C"
10561#endif
10562char dlopen ();
10563int
10564main ()
10565{
10566return dlopen ();
10567 ;
10568 return 0;
10569}
10570_ACEOF
10571rm -f conftest.$ac_objext conftest$ac_exeext
10572if { (ac_try="$ac_link"
10573case "(($ac_try" in
10574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10575 *) ac_try_echo=$ac_try;;
10576esac
10577eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10578$as_echo "$ac_try_echo") >&5
10579 (eval "$ac_link") 2>conftest.er1
10580 ac_status=$?
10581 grep -v '^ *+' conftest.er1 >conftest.err
10582 rm -f conftest.er1
10583 cat conftest.err >&5
10584 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10585 (exit $ac_status); } && {
10586 test -z "$ac_c_werror_flag" ||
10587 test ! -s conftest.err
10588 } && test -s conftest$ac_exeext && {
10589 test "$cross_compiling" = yes ||
10590 $as_test_x conftest$ac_exeext
10591 }; then
10592 ac_cv_lib_dl_dlopen=yes
d9898ee8 10593else
8d138742
CE
10594 $as_echo "$as_me: failed program was:" >&5
10595sed 's/^/| /' conftest.$ac_ext >&5
10596
10597 ac_cv_lib_dl_dlopen=no
d9898ee8 10598fi
10599
8d138742
CE
10600rm -rf conftest.dSYM
10601rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10602 conftest$ac_exeext conftest.$ac_ext
10603LIBS=$ac_check_lib_save_LIBS
10604fi
10605{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10606$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10607if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10608 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10609else
d9898ee8 10610
8d138742
CE
10611 lt_cv_dlopen="dyld"
10612 lt_cv_dlopen_libs=
10613 lt_cv_dlopen_self=yes
d9898ee8 10614
8d138742 10615fi
d9898ee8 10616
8d138742 10617 ;;
d9898ee8 10618
8d138742
CE
10619 *)
10620 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
10621$as_echo_n "checking for shl_load... " >&6; }
10622if test "${ac_cv_func_shl_load+set}" = set; then
10623 $as_echo_n "(cached) " >&6
10624else
10625 cat >conftest.$ac_ext <<_ACEOF
10626/* confdefs.h. */
10627_ACEOF
10628cat confdefs.h >>conftest.$ac_ext
10629cat >>conftest.$ac_ext <<_ACEOF
10630/* end confdefs.h. */
10631/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10632 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10633#define shl_load innocuous_shl_load
d9898ee8 10634
8d138742
CE
10635/* System header to define __stub macros and hopefully few prototypes,
10636 which can conflict with char shl_load (); below.
10637 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10638 <limits.h> exists even on freestanding compilers. */
d9898ee8 10639
8d138742
CE
10640#ifdef __STDC__
10641# include <limits.h>
10642#else
10643# include <assert.h>
10644#endif
d9898ee8 10645
8d138742 10646#undef shl_load
d9898ee8 10647
8d138742
CE
10648/* Override any GCC internal prototype to avoid an error.
10649 Use char because int might match the return type of a GCC
10650 builtin and then its argument prototype would still apply. */
10651#ifdef __cplusplus
10652extern "C"
10653#endif
10654char shl_load ();
10655/* The GNU C library defines this for functions which it implements
10656 to always fail with ENOSYS. Some functions are actually named
10657 something starting with __ and the normal name is an alias. */
10658#if defined __stub_shl_load || defined __stub___shl_load
10659choke me
10660#endif
d9898ee8 10661
8d138742
CE
10662int
10663main ()
10664{
10665return shl_load ();
10666 ;
10667 return 0;
10668}
10669_ACEOF
10670rm -f conftest.$ac_objext conftest$ac_exeext
10671if { (ac_try="$ac_link"
10672case "(($ac_try" in
10673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10674 *) ac_try_echo=$ac_try;;
10675esac
10676eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10677$as_echo "$ac_try_echo") >&5
10678 (eval "$ac_link") 2>conftest.er1
10679 ac_status=$?
10680 grep -v '^ *+' conftest.er1 >conftest.err
10681 rm -f conftest.er1
10682 cat conftest.err >&5
10683 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10684 (exit $ac_status); } && {
10685 test -z "$ac_c_werror_flag" ||
10686 test ! -s conftest.err
10687 } && test -s conftest$ac_exeext && {
10688 test "$cross_compiling" = yes ||
10689 $as_test_x conftest$ac_exeext
10690 }; then
10691 ac_cv_func_shl_load=yes
10692else
10693 $as_echo "$as_me: failed program was:" >&5
10694sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 10695
8d138742
CE
10696 ac_cv_func_shl_load=no
10697fi
d9898ee8 10698
8d138742
CE
10699rm -rf conftest.dSYM
10700rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10701 conftest$ac_exeext conftest.$ac_ext
10702fi
10703{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10704$as_echo "$ac_cv_func_shl_load" >&6; }
10705if test "x$ac_cv_func_shl_load" = x""yes; then
10706 lt_cv_dlopen="shl_load"
10707else
10708 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10709$as_echo_n "checking for shl_load in -ldld... " >&6; }
10710if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10711 $as_echo_n "(cached) " >&6
10712else
10713 ac_check_lib_save_LIBS=$LIBS
10714LIBS="-ldld $LIBS"
10715cat >conftest.$ac_ext <<_ACEOF
10716/* confdefs.h. */
10717_ACEOF
10718cat confdefs.h >>conftest.$ac_ext
10719cat >>conftest.$ac_ext <<_ACEOF
10720/* end confdefs.h. */
d9898ee8 10721
8d138742
CE
10722/* Override any GCC internal prototype to avoid an error.
10723 Use char because int might match the return type of a GCC
10724 builtin and then its argument prototype would still apply. */
10725#ifdef __cplusplus
10726extern "C"
10727#endif
10728char shl_load ();
10729int
10730main ()
10731{
10732return shl_load ();
10733 ;
10734 return 0;
10735}
10736_ACEOF
10737rm -f conftest.$ac_objext conftest$ac_exeext
10738if { (ac_try="$ac_link"
10739case "(($ac_try" in
10740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10741 *) ac_try_echo=$ac_try;;
10742esac
10743eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10744$as_echo "$ac_try_echo") >&5
10745 (eval "$ac_link") 2>conftest.er1
10746 ac_status=$?
10747 grep -v '^ *+' conftest.er1 >conftest.err
10748 rm -f conftest.er1
10749 cat conftest.err >&5
10750 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10751 (exit $ac_status); } && {
10752 test -z "$ac_c_werror_flag" ||
10753 test ! -s conftest.err
10754 } && test -s conftest$ac_exeext && {
10755 test "$cross_compiling" = yes ||
10756 $as_test_x conftest$ac_exeext
10757 }; then
10758 ac_cv_lib_dld_shl_load=yes
10759else
10760 $as_echo "$as_me: failed program was:" >&5
10761sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 10762
8d138742
CE
10763 ac_cv_lib_dld_shl_load=no
10764fi
d9898ee8 10765
8d138742
CE
10766rm -rf conftest.dSYM
10767rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10768 conftest$ac_exeext conftest.$ac_ext
10769LIBS=$ac_check_lib_save_LIBS
10770fi
10771{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10772$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10773if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10774 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10775else
10776 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10777$as_echo_n "checking for dlopen... " >&6; }
10778if test "${ac_cv_func_dlopen+set}" = set; then
10779 $as_echo_n "(cached) " >&6
10780else
10781 cat >conftest.$ac_ext <<_ACEOF
10782/* confdefs.h. */
10783_ACEOF
10784cat confdefs.h >>conftest.$ac_ext
10785cat >>conftest.$ac_ext <<_ACEOF
10786/* end confdefs.h. */
10787/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10788 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10789#define dlopen innocuous_dlopen
d9898ee8 10790
8d138742
CE
10791/* System header to define __stub macros and hopefully few prototypes,
10792 which can conflict with char dlopen (); below.
10793 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10794 <limits.h> exists even on freestanding compilers. */
d9898ee8 10795
8d138742
CE
10796#ifdef __STDC__
10797# include <limits.h>
10798#else
10799# include <assert.h>
10800#endif
d9898ee8 10801
8d138742 10802#undef dlopen
d9898ee8 10803
8d138742
CE
10804/* Override any GCC internal prototype to avoid an error.
10805 Use char because int might match the return type of a GCC
10806 builtin and then its argument prototype would still apply. */
10807#ifdef __cplusplus
10808extern "C"
10809#endif
10810char dlopen ();
10811/* The GNU C library defines this for functions which it implements
10812 to always fail with ENOSYS. Some functions are actually named
10813 something starting with __ and the normal name is an alias. */
10814#if defined __stub_dlopen || defined __stub___dlopen
10815choke me
10816#endif
d9898ee8 10817
8d138742
CE
10818int
10819main ()
10820{
10821return dlopen ();
10822 ;
10823 return 0;
10824}
10825_ACEOF
10826rm -f conftest.$ac_objext conftest$ac_exeext
10827if { (ac_try="$ac_link"
10828case "(($ac_try" in
10829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10830 *) ac_try_echo=$ac_try;;
d9898ee8 10831esac
8d138742
CE
10832eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10833$as_echo "$ac_try_echo") >&5
10834 (eval "$ac_link") 2>conftest.er1
10835 ac_status=$?
10836 grep -v '^ *+' conftest.er1 >conftest.err
10837 rm -f conftest.er1
10838 cat conftest.err >&5
10839 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10840 (exit $ac_status); } && {
10841 test -z "$ac_c_werror_flag" ||
10842 test ! -s conftest.err
10843 } && test -s conftest$ac_exeext && {
10844 test "$cross_compiling" = yes ||
10845 $as_test_x conftest$ac_exeext
10846 }; then
10847 ac_cv_func_dlopen=yes
10848else
10849 $as_echo "$as_me: failed program was:" >&5
10850sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 10851
8d138742
CE
10852 ac_cv_func_dlopen=no
10853fi
d9898ee8 10854
8d138742
CE
10855rm -rf conftest.dSYM
10856rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10857 conftest$ac_exeext conftest.$ac_ext
10858fi
10859{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10860$as_echo "$ac_cv_func_dlopen" >&6; }
10861if test "x$ac_cv_func_dlopen" = x""yes; then
10862 lt_cv_dlopen="dlopen"
10863else
10864 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10865$as_echo_n "checking for dlopen in -ldl... " >&6; }
10866if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10867 $as_echo_n "(cached) " >&6
10868else
10869 ac_check_lib_save_LIBS=$LIBS
10870LIBS="-ldl $LIBS"
10871cat >conftest.$ac_ext <<_ACEOF
10872/* confdefs.h. */
10873_ACEOF
10874cat confdefs.h >>conftest.$ac_ext
10875cat >>conftest.$ac_ext <<_ACEOF
10876/* end confdefs.h. */
d9898ee8 10877
8d138742
CE
10878/* Override any GCC internal prototype to avoid an error.
10879 Use char because int might match the return type of a GCC
10880 builtin and then its argument prototype would still apply. */
10881#ifdef __cplusplus
10882extern "C"
10883#endif
10884char dlopen ();
10885int
10886main ()
10887{
10888return dlopen ();
10889 ;
10890 return 0;
10891}
10892_ACEOF
10893rm -f conftest.$ac_objext conftest$ac_exeext
10894if { (ac_try="$ac_link"
10895case "(($ac_try" in
10896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10897 *) ac_try_echo=$ac_try;;
10898esac
10899eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10900$as_echo "$ac_try_echo") >&5
10901 (eval "$ac_link") 2>conftest.er1
10902 ac_status=$?
10903 grep -v '^ *+' conftest.er1 >conftest.err
10904 rm -f conftest.er1
10905 cat conftest.err >&5
10906 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10907 (exit $ac_status); } && {
10908 test -z "$ac_c_werror_flag" ||
10909 test ! -s conftest.err
10910 } && test -s conftest$ac_exeext && {
10911 test "$cross_compiling" = yes ||
10912 $as_test_x conftest$ac_exeext
10913 }; then
10914 ac_cv_lib_dl_dlopen=yes
10915else
10916 $as_echo "$as_me: failed program was:" >&5
10917sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 10918
8d138742
CE
10919 ac_cv_lib_dl_dlopen=no
10920fi
d9898ee8 10921
8d138742
CE
10922rm -rf conftest.dSYM
10923rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10924 conftest$ac_exeext conftest.$ac_ext
10925LIBS=$ac_check_lib_save_LIBS
10926fi
10927{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10928$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10929if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10930 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10931else
10932 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10933$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10934if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10935 $as_echo_n "(cached) " >&6
10936else
10937 ac_check_lib_save_LIBS=$LIBS
10938LIBS="-lsvld $LIBS"
10939cat >conftest.$ac_ext <<_ACEOF
10940/* confdefs.h. */
10941_ACEOF
10942cat confdefs.h >>conftest.$ac_ext
10943cat >>conftest.$ac_ext <<_ACEOF
10944/* end confdefs.h. */
d9898ee8 10945
8d138742
CE
10946/* Override any GCC internal prototype to avoid an error.
10947 Use char because int might match the return type of a GCC
10948 builtin and then its argument prototype would still apply. */
10949#ifdef __cplusplus
10950extern "C"
10951#endif
10952char dlopen ();
10953int
10954main ()
10955{
10956return dlopen ();
10957 ;
10958 return 0;
10959}
10960_ACEOF
10961rm -f conftest.$ac_objext conftest$ac_exeext
10962if { (ac_try="$ac_link"
10963case "(($ac_try" in
10964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10965 *) ac_try_echo=$ac_try;;
10966esac
10967eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10968$as_echo "$ac_try_echo") >&5
10969 (eval "$ac_link") 2>conftest.er1
10970 ac_status=$?
10971 grep -v '^ *+' conftest.er1 >conftest.err
10972 rm -f conftest.er1
10973 cat conftest.err >&5
10974 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10975 (exit $ac_status); } && {
10976 test -z "$ac_c_werror_flag" ||
10977 test ! -s conftest.err
10978 } && test -s conftest$ac_exeext && {
10979 test "$cross_compiling" = yes ||
10980 $as_test_x conftest$ac_exeext
10981 }; then
10982 ac_cv_lib_svld_dlopen=yes
10983else
10984 $as_echo "$as_me: failed program was:" >&5
10985sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 10986
8d138742
CE
10987 ac_cv_lib_svld_dlopen=no
10988fi
d9898ee8 10989
8d138742
CE
10990rm -rf conftest.dSYM
10991rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10992 conftest$ac_exeext conftest.$ac_ext
10993LIBS=$ac_check_lib_save_LIBS
10994fi
10995{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10996$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10997if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
10998 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10999else
11000 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11001$as_echo_n "checking for dld_link in -ldld... " >&6; }
11002if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11003 $as_echo_n "(cached) " >&6
11004else
11005 ac_check_lib_save_LIBS=$LIBS
11006LIBS="-ldld $LIBS"
11007cat >conftest.$ac_ext <<_ACEOF
11008/* confdefs.h. */
11009_ACEOF
11010cat confdefs.h >>conftest.$ac_ext
11011cat >>conftest.$ac_ext <<_ACEOF
11012/* end confdefs.h. */
d9898ee8 11013
8d138742
CE
11014/* Override any GCC internal prototype to avoid an error.
11015 Use char because int might match the return type of a GCC
11016 builtin and then its argument prototype would still apply. */
11017#ifdef __cplusplus
11018extern "C"
11019#endif
11020char dld_link ();
11021int
11022main ()
11023{
11024return dld_link ();
11025 ;
11026 return 0;
11027}
11028_ACEOF
11029rm -f conftest.$ac_objext conftest$ac_exeext
11030if { (ac_try="$ac_link"
11031case "(($ac_try" in
11032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11033 *) ac_try_echo=$ac_try;;
11034esac
11035eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11036$as_echo "$ac_try_echo") >&5
11037 (eval "$ac_link") 2>conftest.er1
11038 ac_status=$?
11039 grep -v '^ *+' conftest.er1 >conftest.err
11040 rm -f conftest.er1
11041 cat conftest.err >&5
11042 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11043 (exit $ac_status); } && {
11044 test -z "$ac_c_werror_flag" ||
11045 test ! -s conftest.err
11046 } && test -s conftest$ac_exeext && {
11047 test "$cross_compiling" = yes ||
11048 $as_test_x conftest$ac_exeext
11049 }; then
11050 ac_cv_lib_dld_dld_link=yes
11051else
11052 $as_echo "$as_me: failed program was:" >&5
11053sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 11054
8d138742
CE
11055 ac_cv_lib_dld_dld_link=no
11056fi
d9898ee8 11057
8d138742
CE
11058rm -rf conftest.dSYM
11059rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11060 conftest$ac_exeext conftest.$ac_ext
11061LIBS=$ac_check_lib_save_LIBS
11062fi
11063{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11064$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11065if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
11066 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11067fi
d9898ee8 11068
d9898ee8 11069
8d138742 11070fi
d9898ee8 11071
d9898ee8 11072
8d138742 11073fi
d9898ee8 11074
d9898ee8 11075
8d138742 11076fi
d9898ee8 11077
d9898ee8 11078
8d138742 11079fi
d9898ee8 11080
d9898ee8 11081
8d138742 11082fi
ac40fd9e 11083
8d138742
CE
11084 ;;
11085 esac
d9898ee8 11086
8d138742
CE
11087 if test "x$lt_cv_dlopen" != xno; then
11088 enable_dlopen=yes
11089 else
11090 enable_dlopen=no
11091 fi
d9898ee8 11092
8d138742
CE
11093 case $lt_cv_dlopen in
11094 dlopen)
11095 save_CPPFLAGS="$CPPFLAGS"
11096 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
d9898ee8 11097
8d138742
CE
11098 save_LDFLAGS="$LDFLAGS"
11099 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
d9898ee8 11100
8d138742
CE
11101 save_LIBS="$LIBS"
11102 LIBS="$lt_cv_dlopen_libs $LIBS"
d9898ee8 11103
8d138742
CE
11104 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11105$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11106if test "${lt_cv_dlopen_self+set}" = set; then
11107 $as_echo_n "(cached) " >&6
11108else
11109 if test "$cross_compiling" = yes; then :
11110 lt_cv_dlopen_self=cross
11111else
11112 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11113 lt_status=$lt_dlunknown
11114 cat > conftest.$ac_ext <<_LT_EOF
11115#line 11115 "configure"
11116#include "confdefs.h"
d9898ee8 11117
8d138742
CE
11118#if HAVE_DLFCN_H
11119#include <dlfcn.h>
11120#endif
d9898ee8 11121
8d138742 11122#include <stdio.h>
d9898ee8 11123
8d138742
CE
11124#ifdef RTLD_GLOBAL
11125# define LT_DLGLOBAL RTLD_GLOBAL
11126#else
11127# ifdef DL_GLOBAL
11128# define LT_DLGLOBAL DL_GLOBAL
11129# else
11130# define LT_DLGLOBAL 0
11131# endif
11132#endif
d9898ee8 11133
8d138742
CE
11134/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11135 find out it does not work in some platform. */
11136#ifndef LT_DLLAZY_OR_NOW
11137# ifdef RTLD_LAZY
11138# define LT_DLLAZY_OR_NOW RTLD_LAZY
11139# else
11140# ifdef DL_LAZY
11141# define LT_DLLAZY_OR_NOW DL_LAZY
11142# else
11143# ifdef RTLD_NOW
11144# define LT_DLLAZY_OR_NOW RTLD_NOW
11145# else
11146# ifdef DL_NOW
11147# define LT_DLLAZY_OR_NOW DL_NOW
11148# else
11149# define LT_DLLAZY_OR_NOW 0
11150# endif
11151# endif
11152# endif
11153# endif
11154#endif
d9898ee8 11155
8d138742
CE
11156void fnord() { int i=42;}
11157int main ()
11158{
11159 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11160 int status = $lt_dlunknown;
d9898ee8 11161
8d138742
CE
11162 if (self)
11163 {
11164 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11165 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11166 /* dlclose (self); */
11167 }
11168 else
11169 puts (dlerror ());
d9898ee8 11170
8d138742
CE
11171 return status;
11172}
11173_LT_EOF
11174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11175 (eval $ac_link) 2>&5
11176 ac_status=$?
11177 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11178 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11179 (./conftest; exit; ) >&5 2>/dev/null
11180 lt_status=$?
11181 case x$lt_status in
11182 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11183 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11184 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11185 esac
11186 else :
11187 # compilation failed
11188 lt_cv_dlopen_self=no
11189 fi
d9898ee8 11190fi
8d138742
CE
11191rm -fr conftest*
11192
d9898ee8 11193
11194fi
8d138742
CE
11195{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11196$as_echo "$lt_cv_dlopen_self" >&6; }
d9898ee8 11197
8d138742
CE
11198 if test "x$lt_cv_dlopen_self" = xyes; then
11199 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11200 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11201$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11202if test "${lt_cv_dlopen_self_static+set}" = set; then
11203 $as_echo_n "(cached) " >&6
d9898ee8 11204else
8d138742
CE
11205 if test "$cross_compiling" = yes; then :
11206 lt_cv_dlopen_self_static=cross
11207else
11208 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11209 lt_status=$lt_dlunknown
11210 cat > conftest.$ac_ext <<_LT_EOF
11211#line 11211 "configure"
11212#include "confdefs.h"
d9898ee8 11213
8d138742
CE
11214#if HAVE_DLFCN_H
11215#include <dlfcn.h>
11216#endif
d9898ee8 11217
8d138742 11218#include <stdio.h>
d9898ee8 11219
8d138742
CE
11220#ifdef RTLD_GLOBAL
11221# define LT_DLGLOBAL RTLD_GLOBAL
11222#else
11223# ifdef DL_GLOBAL
11224# define LT_DLGLOBAL DL_GLOBAL
11225# else
11226# define LT_DLGLOBAL 0
11227# endif
11228#endif
d9898ee8 11229
8d138742
CE
11230/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11231 find out it does not work in some platform. */
11232#ifndef LT_DLLAZY_OR_NOW
11233# ifdef RTLD_LAZY
11234# define LT_DLLAZY_OR_NOW RTLD_LAZY
11235# else
11236# ifdef DL_LAZY
11237# define LT_DLLAZY_OR_NOW DL_LAZY
11238# else
11239# ifdef RTLD_NOW
11240# define LT_DLLAZY_OR_NOW RTLD_NOW
11241# else
11242# ifdef DL_NOW
11243# define LT_DLLAZY_OR_NOW DL_NOW
11244# else
11245# define LT_DLLAZY_OR_NOW 0
11246# endif
11247# endif
11248# endif
11249# endif
11250#endif
d9898ee8 11251
8d138742
CE
11252void fnord() { int i=42;}
11253int main ()
11254{
11255 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11256 int status = $lt_dlunknown;
11257
11258 if (self)
11259 {
11260 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11261 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11262 /* dlclose (self); */
11263 }
11264 else
11265 puts (dlerror ());
d9898ee8 11266
8d138742
CE
11267 return status;
11268}
11269_LT_EOF
11270 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11271 (eval $ac_link) 2>&5
11272 ac_status=$?
11273 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11274 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11275 (./conftest; exit; ) >&5 2>/dev/null
11276 lt_status=$?
11277 case x$lt_status in
11278 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11279 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11280 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11281 esac
11282 else :
11283 # compilation failed
11284 lt_cv_dlopen_self_static=no
11285 fi
d9898ee8 11286fi
8d138742 11287rm -fr conftest*
d9898ee8 11288
11289
d9898ee8 11290fi
8d138742
CE
11291{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11292$as_echo "$lt_cv_dlopen_self_static" >&6; }
11293 fi
d9898ee8 11294
8d138742
CE
11295 CPPFLAGS="$save_CPPFLAGS"
11296 LDFLAGS="$save_LDFLAGS"
11297 LIBS="$save_LIBS"
11298 ;;
11299 esac
d9898ee8 11300
8d138742
CE
11301 case $lt_cv_dlopen_self in
11302 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11303 *) enable_dlopen_self=unknown ;;
d9898ee8 11304 esac
d9898ee8 11305
8d138742
CE
11306 case $lt_cv_dlopen_self_static in
11307 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11308 *) enable_dlopen_self_static=unknown ;;
11309 esac
11310fi
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328striplib=
11329old_striplib=
11330{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11331$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11332if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11333 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11334 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11335 { $as_echo "$as_me:$LINENO: result: yes" >&5
11336$as_echo "yes" >&6; }
11337else
11338# FIXME - insert some real tests, host_os isn't really good enough
d9898ee8 11339 case $host_os in
8d138742
CE
11340 darwin*)
11341 if test -n "$STRIP" ; then
11342 striplib="$STRIP -x"
11343 old_striplib="$STRIP -S"
11344 { $as_echo "$as_me:$LINENO: result: yes" >&5
11345$as_echo "yes" >&6; }
11346 else
11347 { $as_echo "$as_me:$LINENO: result: no" >&5
11348$as_echo "no" >&6; }
d9898ee8 11349 fi
11350 ;;
8d138742
CE
11351 *)
11352 { $as_echo "$as_me:$LINENO: result: no" >&5
11353$as_echo "no" >&6; }
d9898ee8 11354 ;;
11355 esac
8d138742 11356fi
d9898ee8 11357
d9898ee8 11358
8d138742
CE
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369 # Report which library types will actually be built
11370 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11371$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11372 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
11373$as_echo "$can_build_shared" >&6; }
11374
11375 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11376$as_echo_n "checking whether to build shared libraries... " >&6; }
11377 test "$can_build_shared" = "no" && enable_shared=no
11378
11379 # On AIX, shared libraries and static libraries use the same namespace, and
11380 # are all built from PIC.
11381 case $host_os in
11382 aix3*)
11383 test "$enable_shared" = yes && enable_static=no
11384 if test -n "$RANLIB"; then
11385 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11386 postinstall_cmds='$RANLIB $lib'
d9898ee8 11387 fi
8d138742 11388 ;;
d9898ee8 11389
8d138742
CE
11390 aix[4-9]*)
11391 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11392 test "$enable_shared" = yes && enable_static=no
11393 fi
11394 ;;
11395 esac
11396 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
11397$as_echo "$enable_shared" >&6; }
d9898ee8 11398
8d138742
CE
11399 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11400$as_echo_n "checking whether to build static libraries... " >&6; }
11401 # Make sure either enable_shared or enable_static is yes.
11402 test "$enable_shared" = yes || enable_static=yes
11403 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
11404$as_echo "$enable_static" >&6; }
d9898ee8 11405
d9898ee8 11406
d9898ee8 11407
d9898ee8 11408
8d138742
CE
11409fi
11410ac_ext=c
11411ac_cpp='$CPP $CPPFLAGS'
11412ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11413ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11414ac_compiler_gnu=$ac_cv_c_compiler_gnu
d9898ee8 11415
8d138742 11416CC="$lt_save_CC"
d9898ee8 11417
d9898ee8 11418
d9898ee8 11419
d9898ee8 11420
d9898ee8 11421
d9898ee8 11422
d9898ee8 11423
d9898ee8 11424
d9898ee8 11425
d9898ee8 11426
d9898ee8 11427
d9898ee8 11428
d9898ee8 11429
8d138742 11430 ac_config_commands="$ac_config_commands libtool"
d9898ee8 11431
d9898ee8 11432
d9898ee8 11433
d9898ee8 11434
8d138742 11435# Only expand once:
d9898ee8 11436
d9898ee8 11437
8d138742
CE
11438{ $as_echo "$as_me:$LINENO: checking which extension is used for runtime loadable modules" >&5
11439$as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
11440if test "${libltdl_cv_shlibext+set}" = set; then
11441 $as_echo_n "(cached) " >&6
11442else
d9898ee8 11443
8d138742
CE
11444module=yes
11445eval libltdl_cv_shlibext=$shrext_cmds
11446
11447fi
11448{ $as_echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
11449$as_echo "$libltdl_cv_shlibext" >&6; }
11450if test -n "$libltdl_cv_shlibext"; then
11451
11452cat >>confdefs.h <<_ACEOF
11453#define LT_MODULE_EXT "$libltdl_cv_shlibext"
d9898ee8 11454_ACEOF
8d138742
CE
11455
11456fi
11457
11458{ $as_echo "$as_me:$LINENO: checking which variable specifies run-time module search path" >&5
11459$as_echo_n "checking which variable specifies run-time module search path... " >&6; }
11460if test "${lt_cv_module_path_var+set}" = set; then
11461 $as_echo_n "(cached) " >&6
11462else
11463 lt_cv_module_path_var="$shlibpath_var"
11464fi
11465{ $as_echo "$as_me:$LINENO: result: $lt_cv_module_path_var" >&5
11466$as_echo "$lt_cv_module_path_var" >&6; }
11467if test -n "$lt_cv_module_path_var"; then
11468
11469cat >>confdefs.h <<_ACEOF
11470#define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
11471_ACEOF
11472
11473fi
11474
11475{ $as_echo "$as_me:$LINENO: checking for the default library search path" >&5
11476$as_echo_n "checking for the default library search path... " >&6; }
11477if test "${lt_cv_sys_dlsearch_path+set}" = set; then
11478 $as_echo_n "(cached) " >&6
11479else
11480 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
11481fi
11482{ $as_echo "$as_me:$LINENO: result: $lt_cv_sys_dlsearch_path" >&5
11483$as_echo "$lt_cv_sys_dlsearch_path" >&6; }
11484if test -n "$lt_cv_sys_dlsearch_path"; then
11485 sys_dlsearch_path=
11486 for dir in $lt_cv_sys_dlsearch_path; do
11487 if test -z "$sys_dlsearch_path"; then
11488 sys_dlsearch_path="$dir"
11489 else
11490 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
11491 fi
11492 done
11493
11494cat >>confdefs.h <<_ACEOF
11495#define LT_DLSEARCH_PATH "$sys_dlsearch_path"
11496_ACEOF
11497
11498fi
11499
11500
11501LT_DLLOADERS=
11502
11503
11504ac_ext=c
11505ac_cpp='$CPP $CPPFLAGS'
11506ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11507ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11508ac_compiler_gnu=$ac_cv_c_compiler_gnu
11509
11510
11511LIBADD_DLOPEN=
11512{ $as_echo "$as_me:$LINENO: checking for library containing dlopen" >&5
11513$as_echo_n "checking for library containing dlopen... " >&6; }
11514if test "${ac_cv_search_dlopen+set}" = set; then
11515 $as_echo_n "(cached) " >&6
11516else
11517 ac_func_search_save_LIBS=$LIBS
11518cat >conftest.$ac_ext <<_ACEOF
11519/* confdefs.h. */
11520_ACEOF
11521cat confdefs.h >>conftest.$ac_ext
11522cat >>conftest.$ac_ext <<_ACEOF
11523/* end confdefs.h. */
11524
11525/* Override any GCC internal prototype to avoid an error.
11526 Use char because int might match the return type of a GCC
11527 builtin and then its argument prototype would still apply. */
11528#ifdef __cplusplus
11529extern "C"
11530#endif
11531char dlopen ();
11532int
11533main ()
11534{
11535return dlopen ();
11536 ;
11537 return 0;
11538}
11539_ACEOF
11540for ac_lib in '' dl; do
11541 if test -z "$ac_lib"; then
11542 ac_res="none required"
11543 else
11544 ac_res=-l$ac_lib
11545 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11546 fi
11547 rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 11548if { (ac_try="$ac_link"
11549case "(($ac_try" in
11550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11551 *) ac_try_echo=$ac_try;;
11552esac
8d138742
CE
11553eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11554$as_echo "$ac_try_echo") >&5
dd184caf 11555 (eval "$ac_link") 2>conftest.er1
d9898ee8 11556 ac_status=$?
11557 grep -v '^ *+' conftest.er1 >conftest.err
11558 rm -f conftest.er1
11559 cat conftest.err >&5
8d138742 11560 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 11561 (exit $ac_status); } && {
8d138742 11562 test -z "$ac_c_werror_flag" ||
dd184caf 11563 test ! -s conftest.err
8d138742
CE
11564 } && test -s conftest$ac_exeext && {
11565 test "$cross_compiling" = yes ||
11566 $as_test_x conftest$ac_exeext
11567 }; then
11568 ac_cv_search_dlopen=$ac_res
d9898ee8 11569else
8d138742 11570 $as_echo "$as_me: failed program was:" >&5
d9898ee8 11571sed 's/^/| /' conftest.$ac_ext >&5
11572
dd184caf 11573
d9898ee8 11574fi
dd184caf 11575
8d138742 11576rm -rf conftest.dSYM
dd184caf 11577rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8d138742
CE
11578 conftest$ac_exeext
11579 if test "${ac_cv_search_dlopen+set}" = set; then
11580 break
11581fi
11582done
11583if test "${ac_cv_search_dlopen+set}" = set; then
11584 :
11585else
11586 ac_cv_search_dlopen=no
11587fi
11588rm conftest.$ac_ext
11589LIBS=$ac_func_search_save_LIBS
11590fi
11591{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
11592$as_echo "$ac_cv_search_dlopen" >&6; }
11593ac_res=$ac_cv_search_dlopen
11594if test "$ac_res" != no; then
11595 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
d9898ee8 11596
8d138742
CE
11597cat >>confdefs.h <<\_ACEOF
11598#define HAVE_LIBDL 1
11599_ACEOF
11600
11601 if test "$ac_cv_search_dlopen" != "none required" ; then
11602 LIBADD_DLOPEN="-ldl"
11603 fi
11604 libltdl_cv_lib_dl_dlopen="yes"
11605 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
11606else
11607 cat >conftest.$ac_ext <<_ACEOF
11608/* confdefs.h. */
11609_ACEOF
11610cat confdefs.h >>conftest.$ac_ext
11611cat >>conftest.$ac_ext <<_ACEOF
11612/* end confdefs.h. */
11613#if HAVE_DLFCN_H
11614# include <dlfcn.h>
11615#endif
d9898ee8 11616
8d138742
CE
11617int
11618main ()
11619{
11620dlopen(0, 0);
11621 ;
11622 return 0;
11623}
d9898ee8 11624_ACEOF
11625rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 11626if { (ac_try="$ac_link"
11627case "(($ac_try" in
11628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11629 *) ac_try_echo=$ac_try;;
11630esac
8d138742
CE
11631eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11632$as_echo "$ac_try_echo") >&5
dd184caf 11633 (eval "$ac_link") 2>conftest.er1
d9898ee8 11634 ac_status=$?
11635 grep -v '^ *+' conftest.er1 >conftest.err
11636 rm -f conftest.er1
11637 cat conftest.err >&5
8d138742 11638 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 11639 (exit $ac_status); } && {
8d138742 11640 test -z "$ac_c_werror_flag" ||
dd184caf 11641 test ! -s conftest.err
8d138742
CE
11642 } && test -s conftest$ac_exeext && {
11643 test "$cross_compiling" = yes ||
11644 $as_test_x conftest$ac_exeext
11645 }; then
d9898ee8 11646
8d138742
CE
11647cat >>confdefs.h <<\_ACEOF
11648#define HAVE_LIBDL 1
11649_ACEOF
11650
11651 libltdl_cv_func_dlopen="yes"
11652 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
d9898ee8 11653else
8d138742 11654 $as_echo "$as_me: failed program was:" >&5
d9898ee8 11655sed 's/^/| /' conftest.$ac_ext >&5
11656
8d138742
CE
11657 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11658$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11659if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11660 $as_echo_n "(cached) " >&6
11661else
11662 ac_check_lib_save_LIBS=$LIBS
11663LIBS="-lsvld $LIBS"
11664cat >conftest.$ac_ext <<_ACEOF
11665/* confdefs.h. */
11666_ACEOF
11667cat confdefs.h >>conftest.$ac_ext
11668cat >>conftest.$ac_ext <<_ACEOF
11669/* end confdefs.h. */
11670
11671/* Override any GCC internal prototype to avoid an error.
11672 Use char because int might match the return type of a GCC
11673 builtin and then its argument prototype would still apply. */
11674#ifdef __cplusplus
11675extern "C"
11676#endif
11677char dlopen ();
11678int
11679main ()
11680{
11681return dlopen ();
11682 ;
11683 return 0;
11684}
11685_ACEOF
11686rm -f conftest.$ac_objext conftest$ac_exeext
11687if { (ac_try="$ac_link"
11688case "(($ac_try" in
11689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11690 *) ac_try_echo=$ac_try;;
11691esac
11692eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11693$as_echo "$ac_try_echo") >&5
11694 (eval "$ac_link") 2>conftest.er1
11695 ac_status=$?
11696 grep -v '^ *+' conftest.er1 >conftest.err
11697 rm -f conftest.er1
11698 cat conftest.err >&5
11699 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11700 (exit $ac_status); } && {
11701 test -z "$ac_c_werror_flag" ||
11702 test ! -s conftest.err
11703 } && test -s conftest$ac_exeext && {
11704 test "$cross_compiling" = yes ||
11705 $as_test_x conftest$ac_exeext
11706 }; then
11707 ac_cv_lib_svld_dlopen=yes
11708else
11709 $as_echo "$as_me: failed program was:" >&5
11710sed 's/^/| /' conftest.$ac_ext >&5
dd184caf 11711
8d138742 11712 ac_cv_lib_svld_dlopen=no
d9898ee8 11713fi
dd184caf 11714
8d138742 11715rm -rf conftest.dSYM
dd184caf 11716rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 11717 conftest$ac_exeext conftest.$ac_ext
8d138742
CE
11718LIBS=$ac_check_lib_save_LIBS
11719fi
11720{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11721$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11722if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
d9898ee8 11723
8d138742
CE
11724cat >>confdefs.h <<\_ACEOF
11725#define HAVE_LIBDL 1
11726_ACEOF
d9898ee8 11727
8d138742
CE
11728 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
11729 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
11730fi
d9898ee8 11731
8d138742 11732fi
d9898ee8 11733
8d138742
CE
11734rm -rf conftest.dSYM
11735rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11736 conftest$ac_exeext conftest.$ac_ext
11737fi
d9898ee8 11738
8d138742
CE
11739if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
11740then
11741 lt_save_LIBS="$LIBS"
11742 LIBS="$LIBS $LIBADD_DLOPEN"
d9898ee8 11743
8d138742
CE
11744for ac_func in dlerror
11745do
11746as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11747{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11748$as_echo_n "checking for $ac_func... " >&6; }
11749if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11750 $as_echo_n "(cached) " >&6
11751else
11752 cat >conftest.$ac_ext <<_ACEOF
11753/* confdefs.h. */
11754_ACEOF
11755cat confdefs.h >>conftest.$ac_ext
11756cat >>conftest.$ac_ext <<_ACEOF
11757/* end confdefs.h. */
11758/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11759 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11760#define $ac_func innocuous_$ac_func
d9898ee8 11761
8d138742
CE
11762/* System header to define __stub macros and hopefully few prototypes,
11763 which can conflict with char $ac_func (); below.
11764 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11765 <limits.h> exists even on freestanding compilers. */
d9898ee8 11766
8d138742
CE
11767#ifdef __STDC__
11768# include <limits.h>
11769#else
11770# include <assert.h>
11771#endif
d9898ee8 11772
8d138742 11773#undef $ac_func
d9898ee8 11774
8d138742
CE
11775/* Override any GCC internal prototype to avoid an error.
11776 Use char because int might match the return type of a GCC
11777 builtin and then its argument prototype would still apply. */
11778#ifdef __cplusplus
11779extern "C"
11780#endif
11781char $ac_func ();
11782/* The GNU C library defines this for functions which it implements
11783 to always fail with ENOSYS. Some functions are actually named
11784 something starting with __ and the normal name is an alias. */
11785#if defined __stub_$ac_func || defined __stub___$ac_func
11786choke me
11787#endif
d9898ee8 11788
8d138742
CE
11789int
11790main ()
11791{
11792return $ac_func ();
11793 ;
11794 return 0;
11795}
11796_ACEOF
11797rm -f conftest.$ac_objext conftest$ac_exeext
11798if { (ac_try="$ac_link"
11799case "(($ac_try" in
11800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11801 *) ac_try_echo=$ac_try;;
11802esac
11803eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11804$as_echo "$ac_try_echo") >&5
11805 (eval "$ac_link") 2>conftest.er1
11806 ac_status=$?
11807 grep -v '^ *+' conftest.er1 >conftest.err
11808 rm -f conftest.er1
11809 cat conftest.err >&5
11810 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11811 (exit $ac_status); } && {
11812 test -z "$ac_c_werror_flag" ||
11813 test ! -s conftest.err
11814 } && test -s conftest$ac_exeext && {
11815 test "$cross_compiling" = yes ||
11816 $as_test_x conftest$ac_exeext
11817 }; then
11818 eval "$as_ac_var=yes"
11819else
11820 $as_echo "$as_me: failed program was:" >&5
11821sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 11822
8d138742
CE
11823 eval "$as_ac_var=no"
11824fi
d9898ee8 11825
8d138742
CE
11826rm -rf conftest.dSYM
11827rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11828 conftest$ac_exeext conftest.$ac_ext
11829fi
11830ac_res=`eval 'as_val=${'$as_ac_var'}
11831 $as_echo "$as_val"'`
11832 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11833$as_echo "$ac_res" >&6; }
11834as_val=`eval 'as_val=${'$as_ac_var'}
11835 $as_echo "$as_val"'`
11836 if test "x$as_val" = x""yes; then
11837 cat >>confdefs.h <<_ACEOF
11838#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11839_ACEOF
d9898ee8 11840
8d138742
CE
11841fi
11842done
d9898ee8 11843
8d138742
CE
11844 LIBS="$lt_save_LIBS"
11845fi
d9898ee8 11846
d9898ee8 11847
8d138742
CE
11848LIBADD_SHL_LOAD=
11849{ $as_echo "$as_me:$LINENO: checking for shl_load" >&5
11850$as_echo_n "checking for shl_load... " >&6; }
11851if test "${ac_cv_func_shl_load+set}" = set; then
11852 $as_echo_n "(cached) " >&6
11853else
11854 cat >conftest.$ac_ext <<_ACEOF
11855/* confdefs.h. */
11856_ACEOF
11857cat confdefs.h >>conftest.$ac_ext
11858cat >>conftest.$ac_ext <<_ACEOF
11859/* end confdefs.h. */
11860/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11861 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11862#define shl_load innocuous_shl_load
d9898ee8 11863
8d138742
CE
11864/* System header to define __stub macros and hopefully few prototypes,
11865 which can conflict with char shl_load (); below.
11866 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11867 <limits.h> exists even on freestanding compilers. */
d9898ee8 11868
8d138742
CE
11869#ifdef __STDC__
11870# include <limits.h>
11871#else
11872# include <assert.h>
11873#endif
d9898ee8 11874
8d138742 11875#undef shl_load
d9898ee8 11876
8d138742
CE
11877/* Override any GCC internal prototype to avoid an error.
11878 Use char because int might match the return type of a GCC
11879 builtin and then its argument prototype would still apply. */
11880#ifdef __cplusplus
11881extern "C"
11882#endif
11883char shl_load ();
11884/* The GNU C library defines this for functions which it implements
11885 to always fail with ENOSYS. Some functions are actually named
11886 something starting with __ and the normal name is an alias. */
11887#if defined __stub_shl_load || defined __stub___shl_load
11888choke me
11889#endif
d9898ee8 11890
8d138742
CE
11891int
11892main ()
11893{
11894return shl_load ();
11895 ;
11896 return 0;
11897}
11898_ACEOF
11899rm -f conftest.$ac_objext conftest$ac_exeext
11900if { (ac_try="$ac_link"
11901case "(($ac_try" in
11902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11903 *) ac_try_echo=$ac_try;;
11904esac
11905eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11906$as_echo "$ac_try_echo") >&5
11907 (eval "$ac_link") 2>conftest.er1
11908 ac_status=$?
11909 grep -v '^ *+' conftest.er1 >conftest.err
11910 rm -f conftest.er1
11911 cat conftest.err >&5
11912 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11913 (exit $ac_status); } && {
11914 test -z "$ac_c_werror_flag" ||
11915 test ! -s conftest.err
11916 } && test -s conftest$ac_exeext && {
11917 test "$cross_compiling" = yes ||
11918 $as_test_x conftest$ac_exeext
11919 }; then
11920 ac_cv_func_shl_load=yes
11921else
11922 $as_echo "$as_me: failed program was:" >&5
11923sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 11924
8d138742
CE
11925 ac_cv_func_shl_load=no
11926fi
d9898ee8 11927
8d138742
CE
11928rm -rf conftest.dSYM
11929rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11930 conftest$ac_exeext conftest.$ac_ext
11931fi
11932{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11933$as_echo "$ac_cv_func_shl_load" >&6; }
11934if test "x$ac_cv_func_shl_load" = x""yes; then
d9898ee8 11935
8d138742
CE
11936cat >>confdefs.h <<\_ACEOF
11937#define HAVE_SHL_LOAD 1
11938_ACEOF
d9898ee8 11939
8d138742
CE
11940 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
11941else
11942 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11943$as_echo_n "checking for shl_load in -ldld... " >&6; }
11944if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11945 $as_echo_n "(cached) " >&6
11946else
11947 ac_check_lib_save_LIBS=$LIBS
11948LIBS="-ldld $LIBS"
11949cat >conftest.$ac_ext <<_ACEOF
11950/* confdefs.h. */
11951_ACEOF
11952cat confdefs.h >>conftest.$ac_ext
11953cat >>conftest.$ac_ext <<_ACEOF
11954/* end confdefs.h. */
d9898ee8 11955
8d138742
CE
11956/* Override any GCC internal prototype to avoid an error.
11957 Use char because int might match the return type of a GCC
11958 builtin and then its argument prototype would still apply. */
11959#ifdef __cplusplus
11960extern "C"
11961#endif
11962char shl_load ();
11963int
11964main ()
11965{
11966return shl_load ();
11967 ;
11968 return 0;
11969}
11970_ACEOF
11971rm -f conftest.$ac_objext conftest$ac_exeext
11972if { (ac_try="$ac_link"
11973case "(($ac_try" in
11974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11975 *) ac_try_echo=$ac_try;;
11976esac
11977eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11978$as_echo "$ac_try_echo") >&5
11979 (eval "$ac_link") 2>conftest.er1
11980 ac_status=$?
11981 grep -v '^ *+' conftest.er1 >conftest.err
11982 rm -f conftest.er1
11983 cat conftest.err >&5
11984 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11985 (exit $ac_status); } && {
11986 test -z "$ac_c_werror_flag" ||
11987 test ! -s conftest.err
11988 } && test -s conftest$ac_exeext && {
11989 test "$cross_compiling" = yes ||
11990 $as_test_x conftest$ac_exeext
11991 }; then
11992 ac_cv_lib_dld_shl_load=yes
11993else
11994 $as_echo "$as_me: failed program was:" >&5
11995sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 11996
8d138742
CE
11997 ac_cv_lib_dld_shl_load=no
11998fi
d9898ee8 11999
8d138742
CE
12000rm -rf conftest.dSYM
12001rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12002 conftest$ac_exeext conftest.$ac_ext
12003LIBS=$ac_check_lib_save_LIBS
12004fi
12005{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12006$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12007if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
d9898ee8 12008
8d138742
CE
12009cat >>confdefs.h <<\_ACEOF
12010#define HAVE_SHL_LOAD 1
12011_ACEOF
d9898ee8 12012
8d138742
CE
12013 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
12014 LIBADD_SHL_LOAD="-ldld"
12015fi
d9898ee8 12016
8d138742 12017fi
d9898ee8 12018
d9898ee8 12019
d9898ee8 12020
8d138742
CE
12021case $host_os in
12022darwin[1567].*)
12023# We only want this for pre-Mac OS X 10.4.
12024 { $as_echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
12025$as_echo_n "checking for _dyld_func_lookup... " >&6; }
12026if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
12027 $as_echo_n "(cached) " >&6
12028else
12029 cat >conftest.$ac_ext <<_ACEOF
12030/* confdefs.h. */
12031_ACEOF
12032cat confdefs.h >>conftest.$ac_ext
12033cat >>conftest.$ac_ext <<_ACEOF
12034/* end confdefs.h. */
12035/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
12036 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12037#define _dyld_func_lookup innocuous__dyld_func_lookup
d9898ee8 12038
8d138742
CE
12039/* System header to define __stub macros and hopefully few prototypes,
12040 which can conflict with char _dyld_func_lookup (); below.
12041 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12042 <limits.h> exists even on freestanding compilers. */
d9898ee8 12043
8d138742
CE
12044#ifdef __STDC__
12045# include <limits.h>
12046#else
12047# include <assert.h>
12048#endif
d9898ee8 12049
8d138742 12050#undef _dyld_func_lookup
d9898ee8 12051
8d138742
CE
12052/* Override any GCC internal prototype to avoid an error.
12053 Use char because int might match the return type of a GCC
12054 builtin and then its argument prototype would still apply. */
12055#ifdef __cplusplus
12056extern "C"
12057#endif
12058char _dyld_func_lookup ();
12059/* The GNU C library defines this for functions which it implements
12060 to always fail with ENOSYS. Some functions are actually named
12061 something starting with __ and the normal name is an alias. */
12062#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
12063choke me
12064#endif
ac40fd9e 12065
8d138742
CE
12066int
12067main ()
12068{
12069return _dyld_func_lookup ();
12070 ;
12071 return 0;
12072}
12073_ACEOF
12074rm -f conftest.$ac_objext conftest$ac_exeext
12075if { (ac_try="$ac_link"
12076case "(($ac_try" in
12077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12078 *) ac_try_echo=$ac_try;;
12079esac
12080eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12081$as_echo "$ac_try_echo") >&5
12082 (eval "$ac_link") 2>conftest.er1
12083 ac_status=$?
12084 grep -v '^ *+' conftest.er1 >conftest.err
12085 rm -f conftest.er1
12086 cat conftest.err >&5
12087 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12088 (exit $ac_status); } && {
12089 test -z "$ac_c_werror_flag" ||
12090 test ! -s conftest.err
12091 } && test -s conftest$ac_exeext && {
12092 test "$cross_compiling" = yes ||
12093 $as_test_x conftest$ac_exeext
12094 }; then
12095 ac_cv_func__dyld_func_lookup=yes
12096else
12097 $as_echo "$as_me: failed program was:" >&5
12098sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 12099
8d138742
CE
12100 ac_cv_func__dyld_func_lookup=no
12101fi
d9898ee8 12102
8d138742
CE
12103rm -rf conftest.dSYM
12104rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12105 conftest$ac_exeext conftest.$ac_ext
12106fi
12107{ $as_echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
12108$as_echo "$ac_cv_func__dyld_func_lookup" >&6; }
12109if test "x$ac_cv_func__dyld_func_lookup" = x""yes; then
d9898ee8 12110
8d138742
CE
12111cat >>confdefs.h <<\_ACEOF
12112#define HAVE_DYLD 1
12113_ACEOF
d9898ee8 12114
8d138742
CE
12115 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
12116fi
d9898ee8 12117
d9898ee8 12118 ;;
d9898ee8 12119beos*)
8d138742 12120 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
d9898ee8 12121 ;;
8d138742
CE
12122cygwin* | mingw* | os2* | pw32*)
12123 { $as_echo "$as_me:$LINENO: checking whether cygwin_conv_path is declared" >&5
12124$as_echo_n "checking whether cygwin_conv_path is declared... " >&6; }
12125if test "${ac_cv_have_decl_cygwin_conv_path+set}" = set; then
12126 $as_echo_n "(cached) " >&6
12127else
12128 cat >conftest.$ac_ext <<_ACEOF
12129/* confdefs.h. */
12130_ACEOF
12131cat confdefs.h >>conftest.$ac_ext
12132cat >>conftest.$ac_ext <<_ACEOF
12133/* end confdefs.h. */
12134#include <sys/cygwin.h>
d9898ee8 12135
8d138742
CE
12136int
12137main ()
12138{
12139#ifndef cygwin_conv_path
12140 (void) cygwin_conv_path;
12141#endif
d9898ee8 12142
8d138742
CE
12143 ;
12144 return 0;
12145}
12146_ACEOF
12147rm -f conftest.$ac_objext
12148if { (ac_try="$ac_compile"
12149case "(($ac_try" in
12150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12151 *) ac_try_echo=$ac_try;;
12152esac
12153eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12154$as_echo "$ac_try_echo") >&5
12155 (eval "$ac_compile") 2>conftest.er1
12156 ac_status=$?
12157 grep -v '^ *+' conftest.er1 >conftest.err
12158 rm -f conftest.er1
12159 cat conftest.err >&5
12160 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12161 (exit $ac_status); } && {
12162 test -z "$ac_c_werror_flag" ||
12163 test ! -s conftest.err
12164 } && test -s conftest.$ac_objext; then
12165 ac_cv_have_decl_cygwin_conv_path=yes
12166else
12167 $as_echo "$as_me: failed program was:" >&5
12168sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 12169
8d138742
CE
12170 ac_cv_have_decl_cygwin_conv_path=no
12171fi
d9898ee8 12172
8d138742
CE
12173rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12174fi
12175{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_cygwin_conv_path" >&5
12176$as_echo "$ac_cv_have_decl_cygwin_conv_path" >&6; }
12177if test "x$ac_cv_have_decl_cygwin_conv_path" = x""yes; then
d9898ee8 12178
8d138742
CE
12179cat >>confdefs.h <<_ACEOF
12180#define HAVE_DECL_CYGWIN_CONV_PATH 1
12181_ACEOF
ac40fd9e 12182
d9898ee8 12183
8d138742
CE
12184else
12185 cat >>confdefs.h <<_ACEOF
12186#define HAVE_DECL_CYGWIN_CONV_PATH 0
12187_ACEOF
d9898ee8 12188
d9898ee8 12189
8d138742 12190fi
d9898ee8 12191
d9898ee8 12192
8d138742 12193 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
d9898ee8 12194 ;;
8d138742 12195esac
d9898ee8 12196
8d138742
CE
12197{ $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12198$as_echo_n "checking for dld_link in -ldld... " >&6; }
12199if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12200 $as_echo_n "(cached) " >&6
12201else
12202 ac_check_lib_save_LIBS=$LIBS
12203LIBS="-ldld $LIBS"
12204cat >conftest.$ac_ext <<_ACEOF
12205/* confdefs.h. */
12206_ACEOF
12207cat confdefs.h >>conftest.$ac_ext
12208cat >>conftest.$ac_ext <<_ACEOF
12209/* end confdefs.h. */
d9898ee8 12210
8d138742
CE
12211/* Override any GCC internal prototype to avoid an error.
12212 Use char because int might match the return type of a GCC
12213 builtin and then its argument prototype would still apply. */
12214#ifdef __cplusplus
12215extern "C"
12216#endif
12217char dld_link ();
12218int
12219main ()
12220{
12221return dld_link ();
12222 ;
12223 return 0;
12224}
12225_ACEOF
12226rm -f conftest.$ac_objext conftest$ac_exeext
12227if { (ac_try="$ac_link"
12228case "(($ac_try" in
12229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12230 *) ac_try_echo=$ac_try;;
12231esac
12232eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12233$as_echo "$ac_try_echo") >&5
12234 (eval "$ac_link") 2>conftest.er1
12235 ac_status=$?
12236 grep -v '^ *+' conftest.er1 >conftest.err
12237 rm -f conftest.er1
12238 cat conftest.err >&5
12239 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12240 (exit $ac_status); } && {
12241 test -z "$ac_c_werror_flag" ||
12242 test ! -s conftest.err
12243 } && test -s conftest$ac_exeext && {
12244 test "$cross_compiling" = yes ||
12245 $as_test_x conftest$ac_exeext
12246 }; then
12247 ac_cv_lib_dld_dld_link=yes
12248else
12249 $as_echo "$as_me: failed program was:" >&5
12250sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 12251
8d138742
CE
12252 ac_cv_lib_dld_dld_link=no
12253fi
d9898ee8 12254
8d138742
CE
12255rm -rf conftest.dSYM
12256rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12257 conftest$ac_exeext conftest.$ac_ext
12258LIBS=$ac_check_lib_save_LIBS
12259fi
12260{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12261$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12262if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
d9898ee8 12263
8d138742
CE
12264cat >>confdefs.h <<\_ACEOF
12265#define HAVE_DLD 1
12266_ACEOF
d9898ee8 12267
8d138742
CE
12268 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
12269fi
d9898ee8 12270
d9898ee8 12271
d9898ee8 12272
d9898ee8 12273
8d138742
CE
12274LT_DLPREOPEN=
12275if test -n "$LT_DLLOADERS"
12276then
12277 for lt_loader in $LT_DLLOADERS; do
12278 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
12279 done
d9898ee8 12280
8d138742
CE
12281cat >>confdefs.h <<\_ACEOF
12282#define HAVE_LIBDLLOADER 1
12283_ACEOF
d9898ee8 12284
8d138742 12285fi
d9898ee8 12286
ac40fd9e 12287
8d138742 12288LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
d9898ee8 12289
d9898ee8 12290
8d138742
CE
12291ac_ext=c
12292ac_cpp='$CPP $CPPFLAGS'
12293ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12294ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12295ac_compiler_gnu=$ac_cv_c_compiler_gnu
d9898ee8 12296
d9898ee8 12297
8d138742
CE
12298{ $as_echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
12299$as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
12300if test "${lt_cv_sys_symbol_underscore+set}" = set; then
12301 $as_echo_n "(cached) " >&6
12302else
12303 lt_cv_sys_symbol_underscore=no
12304 cat > conftest.$ac_ext <<_LT_EOF
12305void nm_test_func(){}
12306int main(){nm_test_func;return 0;}
12307_LT_EOF
12308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12309 (eval $ac_compile) 2>&5
12310 ac_status=$?
12311 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12312 (exit $ac_status); }; then
12313 # Now try to grab the symbols.
12314 ac_nlist=conftest.nm
12315 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
12316 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
12317 ac_status=$?
12318 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12319 (exit $ac_status); } && test -s "$ac_nlist"; then
12320 # See whether the symbols have a leading underscore.
12321 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
12322 lt_cv_sys_symbol_underscore=yes
12323 else
12324 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
12325 :
12326 else
12327 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
12328 fi
12329 fi
12330 else
12331 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
12332 fi
d9898ee8 12333 else
8d138742
CE
12334 echo "configure: failed program was:" >&5
12335 cat conftest.c >&5
d9898ee8 12336 fi
8d138742 12337 rm -rf conftest*
d9898ee8 12338
d9898ee8 12339fi
8d138742
CE
12340{ $as_echo "$as_me:$LINENO: result: $lt_cv_sys_symbol_underscore" >&5
12341$as_echo "$lt_cv_sys_symbol_underscore" >&6; }
12342 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
d9898ee8 12343
d9898ee8 12344
8d138742
CE
12345if test x"$lt_cv_sys_symbol_underscore" = xyes; then
12346 if test x"$libltdl_cv_func_dlopen" = xyes ||
12347 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
12348 { $as_echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
12349$as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
12350if test "${libltdl_cv_need_uscore+set}" = set; then
12351 $as_echo_n "(cached) " >&6
d9898ee8 12352else
8d138742
CE
12353 libltdl_cv_need_uscore=unknown
12354 save_LIBS="$LIBS"
12355 LIBS="$LIBS $LIBADD_DLOPEN"
12356 if test "$cross_compiling" = yes; then :
12357 libltdl_cv_need_uscore=cross
12358else
12359 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12360 lt_status=$lt_dlunknown
12361 cat > conftest.$ac_ext <<_LT_EOF
12362#line 12362 "configure"
12363#include "confdefs.h"
d9898ee8 12364
8d138742
CE
12365#if HAVE_DLFCN_H
12366#include <dlfcn.h>
12367#endif
d9898ee8 12368
8d138742 12369#include <stdio.h>
d9898ee8 12370
8d138742
CE
12371#ifdef RTLD_GLOBAL
12372# define LT_DLGLOBAL RTLD_GLOBAL
12373#else
12374# ifdef DL_GLOBAL
12375# define LT_DLGLOBAL DL_GLOBAL
12376# else
12377# define LT_DLGLOBAL 0
12378# endif
12379#endif
d9898ee8 12380
8d138742
CE
12381/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12382 find out it does not work in some platform. */
12383#ifndef LT_DLLAZY_OR_NOW
12384# ifdef RTLD_LAZY
12385# define LT_DLLAZY_OR_NOW RTLD_LAZY
12386# else
12387# ifdef DL_LAZY
12388# define LT_DLLAZY_OR_NOW DL_LAZY
12389# else
12390# ifdef RTLD_NOW
12391# define LT_DLLAZY_OR_NOW RTLD_NOW
12392# else
12393# ifdef DL_NOW
12394# define LT_DLLAZY_OR_NOW DL_NOW
12395# else
12396# define LT_DLLAZY_OR_NOW 0
12397# endif
12398# endif
12399# endif
12400# endif
12401#endif
d9898ee8 12402
8d138742
CE
12403void fnord() { int i=42;}
12404int main ()
12405{
12406 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12407 int status = $lt_dlunknown;
d9898ee8 12408
8d138742
CE
12409 if (self)
12410 {
12411 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12412 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12413 /* dlclose (self); */
12414 }
12415 else
12416 puts (dlerror ());
d9898ee8 12417
8d138742
CE
12418 return status;
12419}
12420_LT_EOF
12421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12422 (eval $ac_link) 2>&5
12423 ac_status=$?
12424 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12425 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12426 (./conftest; exit; ) >&5 2>/dev/null
12427 lt_status=$?
12428 case x$lt_status in
12429 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
12430 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
12431 x$lt_dlunknown|x*) ;;
12432 esac
12433 else :
12434 # compilation failed
d9898ee8 12435
8d138742
CE
12436 fi
12437fi
12438rm -fr conftest*
d9898ee8 12439
8d138742 12440 LIBS="$save_LIBS"
d9898ee8 12441
8d138742
CE
12442fi
12443{ $as_echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
12444$as_echo "$libltdl_cv_need_uscore" >&6; }
12445 fi
12446fi
d9898ee8 12447
8d138742 12448if test x"$libltdl_cv_need_uscore" = xyes; then
d9898ee8 12449
8d138742
CE
12450cat >>confdefs.h <<\_ACEOF
12451#define NEED_USCORE 1
12452_ACEOF
d9898ee8 12453
8d138742 12454fi
d9898ee8 12455
8d138742
CE
12456{ $as_echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
12457$as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
12458if test "${lt_cv_sys_dlopen_deplibs+set}" = set; then
12459 $as_echo_n "(cached) " >&6
12460else
12461 # PORTME does your system automatically load deplibs for dlopen?
12462 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
12463 # For now, we just catch OSes we know something about -- in the
12464 # future, we'll try test this programmatically.
12465 lt_cv_sys_dlopen_deplibs=unknown
12466 case $host_os in
12467 aix3*|aix4.1.*|aix4.2.*)
12468 # Unknown whether this is true for these versions of AIX, but
12469 # we want this `case' here to explicitly catch those versions.
12470 lt_cv_sys_dlopen_deplibs=unknown
12471 ;;
12472 aix[4-9]*)
12473 lt_cv_sys_dlopen_deplibs=yes
12474 ;;
12475 amigaos*)
12476 case $host_cpu in
12477 powerpc)
12478 lt_cv_sys_dlopen_deplibs=no
12479 ;;
12480 esac
12481 ;;
12482 darwin*)
12483 # Assuming the user has installed a libdl from somewhere, this is true
12484 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
12485 lt_cv_sys_dlopen_deplibs=yes
12486 ;;
12487 freebsd* | dragonfly*)
12488 lt_cv_sys_dlopen_deplibs=yes
12489 ;;
12490 gnu* | linux* | k*bsd*-gnu)
12491 # GNU and its variants, using gnu ld.so (Glibc)
12492 lt_cv_sys_dlopen_deplibs=yes
12493 ;;
12494 hpux10*|hpux11*)
12495 lt_cv_sys_dlopen_deplibs=yes
12496 ;;
12497 interix*)
12498 lt_cv_sys_dlopen_deplibs=yes
12499 ;;
12500 irix[12345]*|irix6.[01]*)
12501 # Catch all versions of IRIX before 6.2, and indicate that we don't
12502 # know how it worked for any of those versions.
12503 lt_cv_sys_dlopen_deplibs=unknown
12504 ;;
12505 irix*)
12506 # The case above catches anything before 6.2, and it's known that
12507 # at 6.2 and later dlopen does load deplibs.
12508 lt_cv_sys_dlopen_deplibs=yes
12509 ;;
12510 netbsd*)
12511 lt_cv_sys_dlopen_deplibs=yes
12512 ;;
12513 openbsd*)
12514 lt_cv_sys_dlopen_deplibs=yes
12515 ;;
12516 osf[1234]*)
12517 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
12518 # it did *not* use an RPATH in a shared library to find objects the
12519 # library depends on, so we explicitly say `no'.
12520 lt_cv_sys_dlopen_deplibs=no
12521 ;;
12522 osf5.0|osf5.0a|osf5.1)
12523 # dlopen *does* load deplibs and with the right loader patch applied
12524 # it even uses RPATH in a shared library to search for shared objects
12525 # that the library depends on, but there's no easy way to know if that
12526 # patch is installed. Since this is the case, all we can really
12527 # say is unknown -- it depends on the patch being installed. If
12528 # it is, this changes to `yes'. Without it, it would be `no'.
12529 lt_cv_sys_dlopen_deplibs=unknown
12530 ;;
12531 osf*)
12532 # the two cases above should catch all versions of osf <= 5.1. Read
12533 # the comments above for what we know about them.
12534 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
12535 # is used to find them so we can finally say `yes'.
12536 lt_cv_sys_dlopen_deplibs=yes
12537 ;;
12538 qnx*)
12539 lt_cv_sys_dlopen_deplibs=yes
12540 ;;
12541 solaris*)
12542 lt_cv_sys_dlopen_deplibs=yes
12543 ;;
12544 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12545 libltdl_cv_sys_dlopen_deplibs=yes
12546 ;;
12547 esac
d9898ee8 12548
8d138742
CE
12549fi
12550{ $as_echo "$as_me:$LINENO: result: $lt_cv_sys_dlopen_deplibs" >&5
12551$as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
12552if test "$lt_cv_sys_dlopen_deplibs" != yes; then
d9898ee8 12553
8d138742
CE
12554cat >>confdefs.h <<\_ACEOF
12555#define LTDL_DLOPEN_DEPLIBS 1
12556_ACEOF
d9898ee8 12557
8d138742 12558fi
d9898ee8 12559
8d138742 12560:
d9898ee8 12561
d9898ee8 12562
8d138742
CE
12563for ac_header in argz.h
12564do
12565as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12566{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12567$as_echo_n "checking for $ac_header... " >&6; }
12568if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12569 $as_echo_n "(cached) " >&6
12570else
12571 cat >conftest.$ac_ext <<_ACEOF
12572/* confdefs.h. */
12573_ACEOF
12574cat confdefs.h >>conftest.$ac_ext
12575cat >>conftest.$ac_ext <<_ACEOF
12576/* end confdefs.h. */
12577$ac_includes_default
d9898ee8 12578
8d138742
CE
12579#include <$ac_header>
12580_ACEOF
12581rm -f conftest.$ac_objext
12582if { (ac_try="$ac_compile"
12583case "(($ac_try" in
12584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12585 *) ac_try_echo=$ac_try;;
12586esac
12587eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12588$as_echo "$ac_try_echo") >&5
12589 (eval "$ac_compile") 2>conftest.er1
12590 ac_status=$?
12591 grep -v '^ *+' conftest.er1 >conftest.err
12592 rm -f conftest.er1
12593 cat conftest.err >&5
12594 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12595 (exit $ac_status); } && {
12596 test -z "$ac_c_werror_flag" ||
12597 test ! -s conftest.err
12598 } && test -s conftest.$ac_objext; then
12599 eval "$as_ac_Header=yes"
12600else
12601 $as_echo "$as_me: failed program was:" >&5
12602sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 12603
8d138742
CE
12604 eval "$as_ac_Header=no"
12605fi
d9898ee8 12606
8d138742
CE
12607rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12608fi
12609ac_res=`eval 'as_val=${'$as_ac_Header'}
12610 $as_echo "$as_val"'`
12611 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12612$as_echo "$ac_res" >&6; }
12613as_val=`eval 'as_val=${'$as_ac_Header'}
12614 $as_echo "$as_val"'`
12615 if test "x$as_val" = x""yes; then
12616 cat >>confdefs.h <<_ACEOF
12617#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12618_ACEOF
d9898ee8 12619
8d138742 12620fi
d9898ee8 12621
8d138742 12622done
d9898ee8 12623
d9898ee8 12624
8d138742
CE
12625{ $as_echo "$as_me:$LINENO: checking for error_t" >&5
12626$as_echo_n "checking for error_t... " >&6; }
12627if test "${ac_cv_type_error_t+set}" = set; then
12628 $as_echo_n "(cached) " >&6
12629else
12630 ac_cv_type_error_t=no
12631cat >conftest.$ac_ext <<_ACEOF
12632/* confdefs.h. */
12633_ACEOF
12634cat confdefs.h >>conftest.$ac_ext
12635cat >>conftest.$ac_ext <<_ACEOF
12636/* end confdefs.h. */
12637#if defined(HAVE_ARGZ_H)
12638# include <argz.h>
12639#endif
d9898ee8 12640
8d138742
CE
12641int
12642main ()
12643{
12644if (sizeof (error_t))
12645 return 0;
12646 ;
12647 return 0;
12648}
12649_ACEOF
12650rm -f conftest.$ac_objext
12651if { (ac_try="$ac_compile"
12652case "(($ac_try" in
12653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12654 *) ac_try_echo=$ac_try;;
12655esac
12656eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12657$as_echo "$ac_try_echo") >&5
12658 (eval "$ac_compile") 2>conftest.er1
12659 ac_status=$?
12660 grep -v '^ *+' conftest.er1 >conftest.err
12661 rm -f conftest.er1
12662 cat conftest.err >&5
12663 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12664 (exit $ac_status); } && {
12665 test -z "$ac_c_werror_flag" ||
12666 test ! -s conftest.err
12667 } && test -s conftest.$ac_objext; then
12668 cat >conftest.$ac_ext <<_ACEOF
12669/* confdefs.h. */
12670_ACEOF
12671cat confdefs.h >>conftest.$ac_ext
12672cat >>conftest.$ac_ext <<_ACEOF
12673/* end confdefs.h. */
12674#if defined(HAVE_ARGZ_H)
12675# include <argz.h>
12676#endif
d9898ee8 12677
8d138742
CE
12678int
12679main ()
12680{
12681if (sizeof ((error_t)))
12682 return 0;
12683 ;
12684 return 0;
12685}
12686_ACEOF
12687rm -f conftest.$ac_objext
12688if { (ac_try="$ac_compile"
12689case "(($ac_try" in
12690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12691 *) ac_try_echo=$ac_try;;
12692esac
12693eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12694$as_echo "$ac_try_echo") >&5
12695 (eval "$ac_compile") 2>conftest.er1
12696 ac_status=$?
12697 grep -v '^ *+' conftest.er1 >conftest.err
12698 rm -f conftest.er1
12699 cat conftest.err >&5
12700 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12701 (exit $ac_status); } && {
12702 test -z "$ac_c_werror_flag" ||
12703 test ! -s conftest.err
12704 } && test -s conftest.$ac_objext; then
12705 :
12706else
12707 $as_echo "$as_me: failed program was:" >&5
12708sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 12709
8d138742
CE
12710 ac_cv_type_error_t=yes
12711fi
d9898ee8 12712
8d138742
CE
12713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12714else
12715 $as_echo "$as_me: failed program was:" >&5
12716sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 12717
d9898ee8 12718
8d138742 12719fi
d9898ee8 12720
8d138742
CE
12721rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12722fi
12723{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
12724$as_echo "$ac_cv_type_error_t" >&6; }
12725if test "x$ac_cv_type_error_t" = x""yes; then
d9898ee8 12726
8d138742
CE
12727cat >>confdefs.h <<_ACEOF
12728#define HAVE_ERROR_T 1
12729_ACEOF
d9898ee8 12730
d9898ee8 12731
8d138742 12732else
d9898ee8 12733
8d138742
CE
12734cat >>confdefs.h <<\_ACEOF
12735#define error_t int
12736_ACEOF
d9898ee8 12737
d9898ee8 12738
8d138742
CE
12739cat >>confdefs.h <<\_ACEOF
12740#define __error_t_defined 1
12741_ACEOF
d9898ee8 12742
8d138742 12743fi
d9898ee8 12744
d9898ee8 12745
8d138742 12746ARGZ_H=
d9898ee8 12747
d9898ee8 12748
d9898ee8 12749
d9898ee8 12750
d9898ee8 12751
d9898ee8 12752
d9898ee8 12753
8d138742
CE
12754for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
12755 argz_next argz_stringify
12756do
12757as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12758{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12759$as_echo_n "checking for $ac_func... " >&6; }
12760if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12761 $as_echo_n "(cached) " >&6
12762else
12763 cat >conftest.$ac_ext <<_ACEOF
12764/* confdefs.h. */
12765_ACEOF
12766cat confdefs.h >>conftest.$ac_ext
12767cat >>conftest.$ac_ext <<_ACEOF
12768/* end confdefs.h. */
12769/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12770 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12771#define $ac_func innocuous_$ac_func
d9898ee8 12772
8d138742
CE
12773/* System header to define __stub macros and hopefully few prototypes,
12774 which can conflict with char $ac_func (); below.
12775 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12776 <limits.h> exists even on freestanding compilers. */
d9898ee8 12777
8d138742
CE
12778#ifdef __STDC__
12779# include <limits.h>
12780#else
12781# include <assert.h>
12782#endif
d9898ee8 12783
8d138742 12784#undef $ac_func
d9898ee8 12785
8d138742
CE
12786/* Override any GCC internal prototype to avoid an error.
12787 Use char because int might match the return type of a GCC
12788 builtin and then its argument prototype would still apply. */
12789#ifdef __cplusplus
12790extern "C"
12791#endif
12792char $ac_func ();
12793/* The GNU C library defines this for functions which it implements
12794 to always fail with ENOSYS. Some functions are actually named
12795 something starting with __ and the normal name is an alias. */
12796#if defined __stub_$ac_func || defined __stub___$ac_func
12797choke me
12798#endif
d9898ee8 12799
8d138742
CE
12800int
12801main ()
12802{
12803return $ac_func ();
12804 ;
12805 return 0;
12806}
12807_ACEOF
12808rm -f conftest.$ac_objext conftest$ac_exeext
12809if { (ac_try="$ac_link"
12810case "(($ac_try" in
12811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12812 *) ac_try_echo=$ac_try;;
12813esac
12814eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12815$as_echo "$ac_try_echo") >&5
12816 (eval "$ac_link") 2>conftest.er1
12817 ac_status=$?
12818 grep -v '^ *+' conftest.er1 >conftest.err
12819 rm -f conftest.er1
12820 cat conftest.err >&5
12821 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12822 (exit $ac_status); } && {
12823 test -z "$ac_c_werror_flag" ||
12824 test ! -s conftest.err
12825 } && test -s conftest$ac_exeext && {
12826 test "$cross_compiling" = yes ||
12827 $as_test_x conftest$ac_exeext
12828 }; then
12829 eval "$as_ac_var=yes"
12830else
12831 $as_echo "$as_me: failed program was:" >&5
12832sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 12833
8d138742
CE
12834 eval "$as_ac_var=no"
12835fi
d9898ee8 12836
8d138742
CE
12837rm -rf conftest.dSYM
12838rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12839 conftest$ac_exeext conftest.$ac_ext
12840fi
12841ac_res=`eval 'as_val=${'$as_ac_var'}
12842 $as_echo "$as_val"'`
12843 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12844$as_echo "$ac_res" >&6; }
12845as_val=`eval 'as_val=${'$as_ac_var'}
12846 $as_echo "$as_val"'`
12847 if test "x$as_val" = x""yes; then
12848 cat >>confdefs.h <<_ACEOF
12849#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12850_ACEOF
d9898ee8 12851
8d138742
CE
12852else
12853 ARGZ_H=argz.h;
d9898ee8 12854
8d138742 12855 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
d9898ee8 12856
8d138742
CE
12857fi
12858done
d9898ee8 12859
d9898ee8 12860
8d138742
CE
12861if test -z "$ARGZ_H"; then
12862 { $as_echo "$as_me:$LINENO: checking if argz actually works" >&5
12863$as_echo_n "checking if argz actually works... " >&6; }
12864if test "${lt_cv_sys_argz_works+set}" = set; then
12865 $as_echo_n "(cached) " >&6
12866else
12867 case $host_os in #(
12868 *cygwin*)
12869 lt_cv_sys_argz_works=no
12870 if test "$cross_compiling" != no; then
12871 lt_cv_sys_argz_works="guessing no"
12872 else
12873 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
12874 save_IFS=$IFS
12875 IFS=-.
12876 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
12877 IFS=$save_IFS
12878 lt_os_major=${2-0}
12879 lt_os_minor=${3-0}
12880 lt_os_micro=${4-0}
12881 if test "$lt_os_major" -gt 1 \
12882 || { test "$lt_os_major" -eq 1 \
12883 && { test "$lt_os_minor" -gt 5 \
12884 || { test "$lt_os_minor" -eq 5 \
12885 && test "$lt_os_micro" -gt 24; }; }; }; then
12886 lt_cv_sys_argz_works=yes
12887 fi
12888 fi
12889 ;; #(
12890 *) lt_cv_sys_argz_works=yes ;;
12891 esac
12892fi
12893{ $as_echo "$as_me:$LINENO: result: $lt_cv_sys_argz_works" >&5
12894$as_echo "$lt_cv_sys_argz_works" >&6; }
12895 if test $lt_cv_sys_argz_works = yes; then
d9898ee8 12896
8d138742
CE
12897cat >>confdefs.h <<\_ACEOF
12898#define HAVE_WORKING_ARGZ 1
12899_ACEOF
d9898ee8 12900
8d138742
CE
12901else
12902 ARGZ_H=argz.h
d9898ee8 12903
d9898ee8 12904
8d138742 12905 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
d9898ee8 12906
8d138742 12907fi
d9898ee8 12908
8d138742 12909fi
d9898ee8 12910
d9898ee8 12911
d9898ee8 12912
d9898ee8 12913
8d138742
CE
12914{ $as_echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
12915$as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
12916if test "${libltdl_cv_preloaded_symbols+set}" = set; then
12917 $as_echo_n "(cached) " >&6
12918else
12919 if test -n "$lt_cv_sys_global_symbol_pipe"; then
12920 libltdl_cv_preloaded_symbols=yes
12921 else
12922 libltdl_cv_preloaded_symbols=no
12923 fi
d9898ee8 12924
8d138742
CE
12925fi
12926{ $as_echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
12927$as_echo "$libltdl_cv_preloaded_symbols" >&6; }
12928if test x"$libltdl_cv_preloaded_symbols" = xyes; then
d9898ee8 12929
8d138742
CE
12930cat >>confdefs.h <<\_ACEOF
12931#define HAVE_PRELOADED_SYMBOLS 1
12932_ACEOF
d9898ee8 12933
8d138742 12934fi
d9898ee8 12935
d9898ee8 12936
d9898ee8 12937
8d138742 12938# Set options
d9898ee8 12939
d9898ee8 12940
d9898ee8 12941
d9898ee8 12942
d9898ee8 12943
d9898ee8 12944
d9898ee8 12945
d9898ee8 12946
d9898ee8 12947
d9898ee8 12948
d9898ee8 12949
12950
8d138742
CE
12951# Check whether --with-included_ltdl was given.
12952if test "${with_included_ltdl+set}" = set; then
12953 withval=$with_included_ltdl;
d9898ee8 12954fi
12955
12956
8d138742
CE
12957if test "x$with_included_ltdl" != xyes; then
12958 # We are not being forced to use the included libltdl sources, so
12959 # decide whether there is a useful installed version we can use.
12960 { $as_echo "$as_me:$LINENO: checking for ltdl.h" >&5
12961$as_echo_n "checking for ltdl.h... " >&6; }
12962if test "${ac_cv_header_ltdl_h+set}" = set; then
12963 $as_echo_n "(cached) " >&6
12964else
12965 cat >conftest.$ac_ext <<_ACEOF
12966/* confdefs.h. */
12967_ACEOF
12968cat confdefs.h >>conftest.$ac_ext
12969cat >>conftest.$ac_ext <<_ACEOF
12970/* end confdefs.h. */
12971$ac_includes_default
d9898ee8 12972
d9898ee8 12973
8d138742
CE
12974#include <ltdl.h>
12975_ACEOF
12976rm -f conftest.$ac_objext
12977if { (ac_try="$ac_compile"
12978case "(($ac_try" in
12979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12980 *) ac_try_echo=$ac_try;;
12981esac
12982eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12983$as_echo "$ac_try_echo") >&5
12984 (eval "$ac_compile") 2>conftest.er1
12985 ac_status=$?
12986 grep -v '^ *+' conftest.er1 >conftest.err
12987 rm -f conftest.er1
12988 cat conftest.err >&5
12989 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12990 (exit $ac_status); } && {
12991 test -z "$ac_c_werror_flag" ||
12992 test ! -s conftest.err
12993 } && test -s conftest.$ac_objext; then
12994 ac_cv_header_ltdl_h=yes
12995else
12996 $as_echo "$as_me: failed program was:" >&5
12997sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 12998
8d138742
CE
12999 ac_cv_header_ltdl_h=no
13000fi
d9898ee8 13001
8d138742
CE
13002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13003fi
13004{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_ltdl_h" >&5
13005$as_echo "$ac_cv_header_ltdl_h" >&6; }
13006if test "x$ac_cv_header_ltdl_h" = x""yes; then
13007 { $as_echo "$as_me:$LINENO: checking whether lt_dlinterface_register is declared" >&5
13008$as_echo_n "checking whether lt_dlinterface_register is declared... " >&6; }
13009if test "${ac_cv_have_decl_lt_dlinterface_register+set}" = set; then
13010 $as_echo_n "(cached) " >&6
13011else
13012 cat >conftest.$ac_ext <<_ACEOF
13013/* confdefs.h. */
13014_ACEOF
13015cat confdefs.h >>conftest.$ac_ext
13016cat >>conftest.$ac_ext <<_ACEOF
13017/* end confdefs.h. */
13018$ac_includes_default
13019 #include <ltdl.h>
d9898ee8 13020
8d138742
CE
13021int
13022main ()
13023{
13024#ifndef lt_dlinterface_register
13025 (void) lt_dlinterface_register;
13026#endif
d9898ee8 13027
8d138742
CE
13028 ;
13029 return 0;
13030}
13031_ACEOF
13032rm -f conftest.$ac_objext
13033if { (ac_try="$ac_compile"
13034case "(($ac_try" in
13035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13036 *) ac_try_echo=$ac_try;;
13037esac
13038eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13039$as_echo "$ac_try_echo") >&5
13040 (eval "$ac_compile") 2>conftest.er1
13041 ac_status=$?
13042 grep -v '^ *+' conftest.er1 >conftest.err
13043 rm -f conftest.er1
13044 cat conftest.err >&5
13045 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13046 (exit $ac_status); } && {
13047 test -z "$ac_c_werror_flag" ||
13048 test ! -s conftest.err
13049 } && test -s conftest.$ac_objext; then
13050 ac_cv_have_decl_lt_dlinterface_register=yes
13051else
13052 $as_echo "$as_me: failed program was:" >&5
13053sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 13054
8d138742
CE
13055 ac_cv_have_decl_lt_dlinterface_register=no
13056fi
d9898ee8 13057
8d138742
CE
13058rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13059fi
13060{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_lt_dlinterface_register" >&5
13061$as_echo "$ac_cv_have_decl_lt_dlinterface_register" >&6; }
13062if test "x$ac_cv_have_decl_lt_dlinterface_register" = x""yes; then
13063 { $as_echo "$as_me:$LINENO: checking for lt_dladvise_preload in -lltdl" >&5
13064$as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
13065if test "${ac_cv_lib_ltdl_lt_dladvise_preload+set}" = set; then
13066 $as_echo_n "(cached) " >&6
13067else
13068 ac_check_lib_save_LIBS=$LIBS
13069LIBS="-lltdl $LIBS"
13070cat >conftest.$ac_ext <<_ACEOF
13071/* confdefs.h. */
13072_ACEOF
13073cat confdefs.h >>conftest.$ac_ext
13074cat >>conftest.$ac_ext <<_ACEOF
13075/* end confdefs.h. */
13076
13077/* Override any GCC internal prototype to avoid an error.
13078 Use char because int might match the return type of a GCC
13079 builtin and then its argument prototype would still apply. */
13080#ifdef __cplusplus
13081extern "C"
13082#endif
13083char lt_dladvise_preload ();
13084int
13085main ()
13086{
13087return lt_dladvise_preload ();
13088 ;
13089 return 0;
13090}
13091_ACEOF
13092rm -f conftest.$ac_objext conftest$ac_exeext
13093if { (ac_try="$ac_link"
13094case "(($ac_try" in
13095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13096 *) ac_try_echo=$ac_try;;
13097esac
13098eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13099$as_echo "$ac_try_echo") >&5
13100 (eval "$ac_link") 2>conftest.er1
13101 ac_status=$?
13102 grep -v '^ *+' conftest.er1 >conftest.err
13103 rm -f conftest.er1
13104 cat conftest.err >&5
13105 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13106 (exit $ac_status); } && {
13107 test -z "$ac_c_werror_flag" ||
13108 test ! -s conftest.err
13109 } && test -s conftest$ac_exeext && {
13110 test "$cross_compiling" = yes ||
13111 $as_test_x conftest$ac_exeext
13112 }; then
13113 ac_cv_lib_ltdl_lt_dladvise_preload=yes
13114else
13115 $as_echo "$as_me: failed program was:" >&5
13116sed 's/^/| /' conftest.$ac_ext >&5
13117
13118 ac_cv_lib_ltdl_lt_dladvise_preload=no
13119fi
d9898ee8 13120
8d138742
CE
13121rm -rf conftest.dSYM
13122rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13123 conftest$ac_exeext conftest.$ac_ext
13124LIBS=$ac_check_lib_save_LIBS
13125fi
13126{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
13127$as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
13128if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = x""yes; then
13129 with_included_ltdl=no
13130else
13131 with_included_ltdl=yes
13132fi
d9898ee8 13133
8d138742
CE
13134else
13135 with_included_ltdl=yes
13136fi
d9898ee8 13137
8d138742
CE
13138else
13139 with_included_ltdl=yes
13140fi
d9898ee8 13141
13142
8d138742 13143fi
d9898ee8 13144
d9898ee8 13145
13146
d9898ee8 13147
8d138742
CE
13148# Check whether --with-ltdl_include was given.
13149if test "${with_ltdl_include+set}" = set; then
13150 withval=$with_ltdl_include;
d9898ee8 13151fi
d9898ee8 13152
8d138742
CE
13153
13154if test -n "$with_ltdl_include"; then
13155 if test -f "$with_ltdl_include/ltdl.h"; then :
13156 else
13157 { { $as_echo "$as_me:$LINENO: error: invalid ltdl include directory: \`$with_ltdl_include'" >&5
13158$as_echo "$as_me: error: invalid ltdl include directory: \`$with_ltdl_include'" >&2;}
13159 { (exit 1); exit 1; }; }
13160 fi
d9898ee8 13161else
8d138742 13162 with_ltdl_include=no
d9898ee8 13163fi
13164
8d138742
CE
13165
13166# Check whether --with-ltdl_lib was given.
13167if test "${with_ltdl_lib+set}" = set; then
13168 withval=$with_ltdl_lib;
d9898ee8 13169fi
13170
d9898ee8 13171
8d138742
CE
13172if test -n "$with_ltdl_lib"; then
13173 if test -f "$with_ltdl_lib/libltdl.la"; then :
13174 else
13175 { { $as_echo "$as_me:$LINENO: error: invalid ltdl library directory: \`$with_ltdl_lib'" >&5
13176$as_echo "$as_me: error: invalid ltdl library directory: \`$with_ltdl_lib'" >&2;}
13177 { (exit 1); exit 1; }; }
13178 fi
13179else
13180 with_ltdl_lib=no
13181fi
d9898ee8 13182
8d138742
CE
13183case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
13184 ,yes,no,no,)
13185 case $enable_ltdl_convenience in
13186 no) { { $as_echo "$as_me:$LINENO: error: this package needs a convenience libltdl" >&5
13187$as_echo "$as_me: error: this package needs a convenience libltdl" >&2;}
13188 { (exit 1); exit 1; }; } ;;
13189 "") enable_ltdl_convenience=yes
13190 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
13191esac
13192LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
13193LTDLDEPS=$LIBLTDL
13194LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
d9898ee8 13195
d9898ee8 13196
d9898ee8 13197
d9898ee8 13198
d9898ee8 13199
8d138742
CE
13200# For backwards non-gettext consistent compatibility...
13201INCLTDL="$LTDLINCL"
d9898ee8 13202
d9898ee8 13203
8d138742
CE
13204 ;;
13205 ,no,no,no,)
13206 # If the included ltdl is not to be used, then use the
13207 # preinstalled libltdl we found.
d9898ee8 13208
8d138742
CE
13209cat >>confdefs.h <<\_ACEOF
13210#define HAVE_LTDL 1
13211_ACEOF
d9898ee8 13212
8d138742
CE
13213 LIBLTDL=-lltdl
13214 LTDLDEPS=
13215 LTDLINCL=
d9898ee8 13216 ;;
8d138742
CE
13217 ,no*,no,*)
13218 { { $as_echo "$as_me:$LINENO: error: \`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" >&5
13219$as_echo "$as_me: error: \`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" >&2;}
13220 { (exit 1); exit 1; }; }
d9898ee8 13221 ;;
8d138742
CE
13222 *) with_included_ltdl=no
13223 LIBLTDL="-L$with_ltdl_lib -lltdl"
13224 LTDLDEPS=
13225 LTDLINCL="-I$with_ltdl_include"
13226 ;;
13227esac
13228INCLTDL="$LTDLINCL"
d9898ee8 13229
8d138742
CE
13230# Report our decision...
13231{ $as_echo "$as_me:$LINENO: checking where to find libltdl headers" >&5
13232$as_echo_n "checking where to find libltdl headers... " >&6; }
13233{ $as_echo "$as_me:$LINENO: result: $LTDLINCL" >&5
13234$as_echo "$LTDLINCL" >&6; }
13235{ $as_echo "$as_me:$LINENO: checking where to find libltdl library" >&5
13236$as_echo_n "checking where to find libltdl library... " >&6; }
13237{ $as_echo "$as_me:$LINENO: result: $LIBLTDL" >&5
13238$as_echo "$LIBLTDL" >&6; }
d9898ee8 13239
d9898ee8 13240
d9898ee8 13241
8d138742
CE
13242# Check whether --enable-ltdl-install was given.
13243if test "${enable_ltdl_install+set}" = set; then
13244 enableval=$enable_ltdl_install;
13245fi
d9898ee8 13246
d9898ee8 13247
8d138742
CE
13248case ,${enable_ltdl_install},${enable_ltdl_convenience} in
13249 *yes*) ;;
13250 *) enable_ltdl_convenience=yes ;;
13251esac
d9898ee8 13252
8d138742
CE
13253 if test x"${enable_ltdl_install-no}" != xno; then
13254 INSTALL_LTDL_TRUE=
13255 INSTALL_LTDL_FALSE='#'
13256else
13257 INSTALL_LTDL_TRUE='#'
13258 INSTALL_LTDL_FALSE=
13259fi
d9898ee8 13260
8d138742
CE
13261 if test x"${enable_ltdl_convenience-no}" != xno; then
13262 CONVENIENCE_LTDL_TRUE=
13263 CONVENIENCE_LTDL_FALSE='#'
13264else
13265 CONVENIENCE_LTDL_TRUE='#'
13266 CONVENIENCE_LTDL_FALSE=
13267fi
ac40fd9e 13268
d9898ee8 13269
d9898ee8 13270
8d138742 13271 subdirs="$subdirs libltdl"
d9898ee8 13272
d9898ee8 13273
d9898ee8 13274
d9898ee8 13275
d9898ee8 13276
8d138742
CE
13277# In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
13278# the user used. This is so that ltdl.h can pick up the parent projects
13279# config.h file, The first file in AC_CONFIG_HEADERS must contain the
13280# definitions required by ltdl.c.
13281# FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
d9898ee8 13282
d9898ee8 13283
d9898ee8 13284
d9898ee8 13285
d9898ee8 13286
d9898ee8 13287
d9898ee8 13288
d9898ee8 13289
d9898ee8 13290
8d138742
CE
13291for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
13292do
13293as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13294{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13295$as_echo_n "checking for $ac_header... " >&6; }
13296if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13297 $as_echo_n "(cached) " >&6
d9898ee8 13298else
8d138742
CE
13299 cat >conftest.$ac_ext <<_ACEOF
13300/* confdefs.h. */
13301_ACEOF
13302cat confdefs.h >>conftest.$ac_ext
13303cat >>conftest.$ac_ext <<_ACEOF
13304/* end confdefs.h. */
13305$ac_includes_default
d9898ee8 13306
8d138742
CE
13307#include <$ac_header>
13308_ACEOF
13309rm -f conftest.$ac_objext
13310if { (ac_try="$ac_compile"
13311case "(($ac_try" in
13312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13313 *) ac_try_echo=$ac_try;;
13314esac
13315eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13316$as_echo "$ac_try_echo") >&5
13317 (eval "$ac_compile") 2>conftest.er1
13318 ac_status=$?
13319 grep -v '^ *+' conftest.er1 >conftest.err
13320 rm -f conftest.er1
13321 cat conftest.err >&5
13322 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13323 (exit $ac_status); } && {
13324 test -z "$ac_c_werror_flag" ||
13325 test ! -s conftest.err
13326 } && test -s conftest.$ac_objext; then
13327 eval "$as_ac_Header=yes"
d9898ee8 13328else
8d138742
CE
13329 $as_echo "$as_me: failed program was:" >&5
13330sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 13331
8d138742 13332 eval "$as_ac_Header=no"
d9898ee8 13333fi
d9898ee8 13334
8d138742 13335rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 13336fi
8d138742
CE
13337ac_res=`eval 'as_val=${'$as_ac_Header'}
13338 $as_echo "$as_val"'`
13339 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13340$as_echo "$ac_res" >&6; }
13341as_val=`eval 'as_val=${'$as_ac_Header'}
13342 $as_echo "$as_val"'`
13343 if test "x$as_val" = x""yes; then
13344 cat >>confdefs.h <<_ACEOF
13345#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13346_ACEOF
d9898ee8 13347
8d138742 13348fi
d9898ee8 13349
d9898ee8 13350done
d9898ee8 13351
d9898ee8 13352
d9898ee8 13353
d9898ee8 13354
d9898ee8 13355
8d138742
CE
13356for ac_func in closedir opendir readdir
13357do
13358as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13359{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13360$as_echo_n "checking for $ac_func... " >&6; }
13361if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13362 $as_echo_n "(cached) " >&6
13363else
13364 cat >conftest.$ac_ext <<_ACEOF
d9898ee8 13365/* confdefs.h. */
13366_ACEOF
13367cat confdefs.h >>conftest.$ac_ext
13368cat >>conftest.$ac_ext <<_ACEOF
13369/* end confdefs.h. */
8d138742
CE
13370/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13371 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13372#define $ac_func innocuous_$ac_func
13373
13374/* System header to define __stub macros and hopefully few prototypes,
13375 which can conflict with char $ac_func (); below.
13376 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13377 <limits.h> exists even on freestanding compilers. */
13378
13379#ifdef __STDC__
13380# include <limits.h>
13381#else
13382# include <assert.h>
13383#endif
13384
13385#undef $ac_func
13386
13387/* Override any GCC internal prototype to avoid an error.
13388 Use char because int might match the return type of a GCC
13389 builtin and then its argument prototype would still apply. */
13390#ifdef __cplusplus
13391extern "C"
13392#endif
13393char $ac_func ();
13394/* The GNU C library defines this for functions which it implements
13395 to always fail with ENOSYS. Some functions are actually named
13396 something starting with __ and the normal name is an alias. */
13397#if defined __stub_$ac_func || defined __stub___$ac_func
13398choke me
13399#endif
d9898ee8 13400
13401int
13402main ()
13403{
8d138742 13404return $ac_func ();
d9898ee8 13405 ;
13406 return 0;
13407}
13408_ACEOF
13409rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 13410if { (ac_try="$ac_link"
13411case "(($ac_try" in
13412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13413 *) ac_try_echo=$ac_try;;
13414esac
8d138742
CE
13415eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13416$as_echo "$ac_try_echo") >&5
dd184caf 13417 (eval "$ac_link") 2>conftest.er1
d9898ee8 13418 ac_status=$?
13419 grep -v '^ *+' conftest.er1 >conftest.err
13420 rm -f conftest.er1
13421 cat conftest.err >&5
8d138742 13422 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 13423 (exit $ac_status); } && {
13424 test -z "$ac_c_werror_flag" ||
13425 test ! -s conftest.err
8d138742
CE
13426 } && test -s conftest$ac_exeext && {
13427 test "$cross_compiling" = yes ||
13428 $as_test_x conftest$ac_exeext
13429 }; then
13430 eval "$as_ac_var=yes"
d9898ee8 13431else
8d138742 13432 $as_echo "$as_me: failed program was:" >&5
d9898ee8 13433sed 's/^/| /' conftest.$ac_ext >&5
13434
8d138742 13435 eval "$as_ac_var=no"
d9898ee8 13436fi
dd184caf 13437
8d138742 13438rm -rf conftest.dSYM
dd184caf 13439rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 13440 conftest$ac_exeext conftest.$ac_ext
8d138742
CE
13441fi
13442ac_res=`eval 'as_val=${'$as_ac_var'}
13443 $as_echo "$as_val"'`
13444 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13445$as_echo "$ac_res" >&6; }
13446as_val=`eval 'as_val=${'$as_ac_var'}
13447 $as_echo "$as_val"'`
13448 if test "x$as_val" = x""yes; then
13449 cat >>confdefs.h <<_ACEOF
13450#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
d9898ee8 13451_ACEOF
d9898ee8 13452
8d138742 13453else
d9898ee8 13454
8d138742
CE
13455
13456 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
13457
13458fi
13459done
13460
13461
13462
13463for ac_func in strlcat strlcpy
13464do
13465as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13466{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13467$as_echo_n "checking for $ac_func... " >&6; }
13468if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13469 $as_echo_n "(cached) " >&6
13470else
13471 cat >conftest.$ac_ext <<_ACEOF
13472/* confdefs.h. */
13473_ACEOF
13474cat confdefs.h >>conftest.$ac_ext
13475cat >>conftest.$ac_ext <<_ACEOF
13476/* end confdefs.h. */
13477/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13478 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13479#define $ac_func innocuous_$ac_func
13480
13481/* System header to define __stub macros and hopefully few prototypes,
13482 which can conflict with char $ac_func (); below.
13483 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13484 <limits.h> exists even on freestanding compilers. */
13485
13486#ifdef __STDC__
13487# include <limits.h>
13488#else
13489# include <assert.h>
13490#endif
13491
13492#undef $ac_func
13493
13494/* Override any GCC internal prototype to avoid an error.
13495 Use char because int might match the return type of a GCC
13496 builtin and then its argument prototype would still apply. */
13497#ifdef __cplusplus
13498extern "C"
13499#endif
13500char $ac_func ();
13501/* The GNU C library defines this for functions which it implements
13502 to always fail with ENOSYS. Some functions are actually named
13503 something starting with __ and the normal name is an alias. */
13504#if defined __stub_$ac_func || defined __stub___$ac_func
13505choke me
13506#endif
13507
13508int
13509main ()
13510{
13511return $ac_func ();
13512 ;
d9898ee8 13513 return 0;
13514}
13515_ACEOF
13516rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 13517if { (ac_try="$ac_link"
13518case "(($ac_try" in
13519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13520 *) ac_try_echo=$ac_try;;
13521esac
8d138742
CE
13522eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13523$as_echo "$ac_try_echo") >&5
dd184caf 13524 (eval "$ac_link") 2>conftest.er1
d9898ee8 13525 ac_status=$?
13526 grep -v '^ *+' conftest.er1 >conftest.err
13527 rm -f conftest.er1
13528 cat conftest.err >&5
8d138742 13529 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 13530 (exit $ac_status); } && {
13531 test -z "$ac_c_werror_flag" ||
13532 test ! -s conftest.err
8d138742
CE
13533 } && test -s conftest$ac_exeext && {
13534 test "$cross_compiling" = yes ||
13535 $as_test_x conftest$ac_exeext
13536 }; then
13537 eval "$as_ac_var=yes"
d9898ee8 13538else
8d138742 13539 $as_echo "$as_me: failed program was:" >&5
d9898ee8 13540sed 's/^/| /' conftest.$ac_ext >&5
13541
8d138742 13542 eval "$as_ac_var=no"
d9898ee8 13543fi
dd184caf 13544
8d138742 13545rm -rf conftest.dSYM
dd184caf 13546rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 13547 conftest$ac_exeext conftest.$ac_ext
8d138742
CE
13548fi
13549ac_res=`eval 'as_val=${'$as_ac_var'}
13550 $as_echo "$as_val"'`
13551 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13552$as_echo "$ac_res" >&6; }
13553as_val=`eval 'as_val=${'$as_ac_var'}
13554 $as_echo "$as_val"'`
13555 if test "x$as_val" = x""yes; then
13556 cat >>confdefs.h <<_ACEOF
13557#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13558_ACEOF
d9898ee8 13559
8d138742 13560else
d9898ee8 13561
d9898ee8 13562
8d138742 13563 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
d9898ee8 13564
8d138742
CE
13565fi
13566done
d9898ee8 13567
d9898ee8 13568
d9898ee8 13569
8d138742
CE
13570cat >>confdefs.h <<_ACEOF
13571#define LT_LIBEXT "$libext"
13572_ACEOF
d9898ee8 13573
d9898ee8 13574
8d138742
CE
13575name=ltdl
13576LTDLOPEN=`eval "\\$ECHO \"$libname_spec\""`
d9898ee8 13577
d9898ee8 13578
d9898ee8 13579
d9898ee8 13580
d9898ee8 13581
d9898ee8 13582
d9898ee8 13583
d9898ee8 13584
8d138742 13585# Only expand once:
d9898ee8 13586
d9898ee8 13587
d9898ee8 13588
d9898ee8 13589
8d138742
CE
13590for ac_prog in perl5 perl
13591do
13592 # Extract the first word of "$ac_prog", so it can be a program name with args.
13593set dummy $ac_prog; ac_word=$2
13594{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13595$as_echo_n "checking for $ac_word... " >&6; }
13596if test "${ac_cv_path_PERL+set}" = set; then
13597 $as_echo_n "(cached) " >&6
13598else
13599 case $PERL in
13600 [\\/]* | ?:[\\/]*)
13601 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
13602 ;;
13603 *)
13604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13605for as_dir in $LPATH
13606do
13607 IFS=$as_save_IFS
13608 test -z "$as_dir" && as_dir=.
13609 for ac_exec_ext in '' $ac_executable_extensions; do
13610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13611 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
13612 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13613 break 2
13614 fi
13615done
13616done
13617IFS=$as_save_IFS
d9898ee8 13618
8d138742
CE
13619 ;;
13620esac
13621fi
13622PERL=$ac_cv_path_PERL
13623if test -n "$PERL"; then
13624 { $as_echo "$as_me:$LINENO: result: $PERL" >&5
13625$as_echo "$PERL" >&6; }
13626else
13627 { $as_echo "$as_me:$LINENO: result: no" >&5
13628$as_echo "no" >&6; }
13629fi
d9898ee8 13630
d9898ee8 13631
8d138742
CE
13632 test -n "$PERL" && break
13633done
13634test -n "$PERL" || PERL="perl"
d9898ee8 13635
8d138742
CE
13636for ac_prog in courier-config
13637do
13638 # Extract the first word of "$ac_prog", so it can be a program name with args.
13639set dummy $ac_prog; ac_word=$2
13640{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13641$as_echo_n "checking for $ac_word... " >&6; }
13642if test "${ac_cv_path_COURIERCONFIG+set}" = set; then
13643 $as_echo_n "(cached) " >&6
13644else
13645 case $COURIERCONFIG in
13646 [\\/]* | ?:[\\/]*)
13647 ac_cv_path_COURIERCONFIG="$COURIERCONFIG" # Let the user override the test with a path.
13648 ;;
13649 *)
13650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13651for as_dir in $LPATH
13652do
13653 IFS=$as_save_IFS
13654 test -z "$as_dir" && as_dir=.
13655 for ac_exec_ext in '' $ac_executable_extensions; do
13656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13657 ac_cv_path_COURIERCONFIG="$as_dir/$ac_word$ac_exec_ext"
13658 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13659 break 2
13660 fi
13661done
13662done
13663IFS=$as_save_IFS
d9898ee8 13664
8d138742
CE
13665 ;;
13666esac
13667fi
13668COURIERCONFIG=$ac_cv_path_COURIERCONFIG
13669if test -n "$COURIERCONFIG"; then
13670 { $as_echo "$as_me:$LINENO: result: $COURIERCONFIG" >&5
13671$as_echo "$COURIERCONFIG" >&6; }
13672else
13673 { $as_echo "$as_me:$LINENO: result: no" >&5
13674$as_echo "no" >&6; }
13675fi
d9898ee8 13676
d9898ee8 13677
8d138742
CE
13678 test -n "$COURIERCONFIG" && break
13679done
13680test -n "$COURIERCONFIG" || COURIERCONFIG="courier-config"
d9898ee8 13681
d9898ee8 13682
8d138742
CE
13683if test "$PERL" = "perl"
13684then
13685 { { $as_echo "$as_me:$LINENO: error: Perl is required" >&5
13686$as_echo "$as_me: error: Perl is required" >&2;}
13687 { (exit 1); exit 1; }; }
13688fi
d9898ee8 13689
8d138742
CE
13690test "x$prefix" = xNONE && prefix=$ac_default_prefix
13691test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13692eval "prefix=$prefix"
13693eval "exec_prefix=$exec_prefix"
13694eval "sysconfdir=$sysconfdir"
13695eval "bindir=$bindir"
13696eval "sbindir=$sbindir"
13697eval "localstatedir=$localstatedir"
13698eval "libexecdir=$libexecdir"
d9898ee8 13699
d9898ee8 13700
8d138742
CE
13701# Check whether --with-redhat was given.
13702if test "${with_redhat+set}" = set; then
13703 withval=$with_redhat; redhat=$withval
13704else
13705 redhat=no
13706fi
d9898ee8 13707
d9898ee8 13708
8d138742
CE
13709if test "$srcdir" = "."
13710then
13711 case `./config.guess` in
13712 *-redhat-*)
13713 if test "$redhat" = "no"
13714 then
13715 hash='#'
13716 { $as_echo "$as_me:$LINENO: WARNING: === I think you are trying to run this configure script" >&5
13717$as_echo "$as_me: WARNING: === I think you are trying to run this configure script" >&2;}
13718 { $as_echo "$as_me:$LINENO: WARNING: === on Red Hat/Fedora. You're doing too much work!" >&5
13719$as_echo "$as_me: WARNING: === on Red Hat/Fedora. You're doing too much work!" >&2;}
13720 { $as_echo "$as_me:$LINENO: WARNING: === It's much faster to create installable binary RPMs" >&5
13721$as_echo "$as_me: WARNING: === It's much faster to create installable binary RPMs" >&2;}
13722 { $as_echo "$as_me:$LINENO: WARNING: === like this: http://www.courier-mta.org/FAQ.html${hash}rpm" >&5
13723$as_echo "$as_me: WARNING: === like this: http://www.courier-mta.org/FAQ.html${hash}rpm" >&2;}
13724 { $as_echo "$as_me:$LINENO: WARNING: === When you do this you may find that RPM will tell you" >&5
13725$as_echo "$as_me: WARNING: === When you do this you may find that RPM will tell you" >&2;}
13726 { $as_echo "$as_me:$LINENO: WARNING: === to install some other software first, before trying to" >&5
13727$as_echo "$as_me: WARNING: === to install some other software first, before trying to" >&2;}
13728 { $as_echo "$as_me:$LINENO: WARNING: === build this one, and even tell you the name of RPMs you" >&5
13729$as_echo "$as_me: WARNING: === build this one, and even tell you the name of RPMs you" >&2;}
13730 { $as_echo "$as_me:$LINENO: WARNING: === need to install from the distribution CD. That's much" >&5
13731$as_echo "$as_me: WARNING: === need to install from the distribution CD. That's much" >&2;}
13732 { $as_echo "$as_me:$LINENO: WARNING: === easier than trying to figure out the same from some" >&5
13733$as_echo "$as_me: WARNING: === easier than trying to figure out the same from some" >&2;}
13734 { $as_echo "$as_me:$LINENO: WARNING: === cryptic error message." >&5
13735$as_echo "$as_me: WARNING: === cryptic error message." >&2;}
13736 { $as_echo "$as_me:$LINENO: WARNING: " >&5
13737$as_echo "$as_me: WARNING: " >&2;}
13738 { $as_echo "$as_me:$LINENO: WARNING: === Even if you don't intend to use everything you need to" >&5
13739$as_echo "$as_me: WARNING: === Even if you don't intend to use everything you need to" >&2;}
13740 { $as_echo "$as_me:$LINENO: WARNING: === have in order to build via RPM, you should still do as" >&5
13741$as_echo "$as_me: WARNING: === have in order to build via RPM, you should still do as" >&2;}
13742 { $as_echo "$as_me:$LINENO: WARNING: === you're told. All the extra stuff (LDAP, SQL, etc...)" >&5
13743$as_echo "$as_me: WARNING: === you're told. All the extra stuff (LDAP, SQL, etc...)" >&2;}
13744 { $as_echo "$as_me:$LINENO: WARNING: === goes into RPM sub-packages, which do not need to be" >&5
13745$as_echo "$as_me: WARNING: === goes into RPM sub-packages, which do not need to be" >&2;}
13746 { $as_echo "$as_me:$LINENO: WARNING: === installed." >&5
13747$as_echo "$as_me: WARNING: === installed." >&2;}
13748 { $as_echo "$as_me:$LINENO: WARNING: === But, if you insist, you can simply add '--with-redhat'" >&5
13749$as_echo "$as_me: WARNING: === But, if you insist, you can simply add '--with-redhat'" >&2;}
13750 { $as_echo "$as_me:$LINENO: WARNING: === parameter to this configure script and not see this" >&5
13751$as_echo "$as_me: WARNING: === parameter to this configure script and not see this" >&2;}
13752 { $as_echo "$as_me:$LINENO: WARNING: === error message. You should also do this when upgrading" >&5
13753$as_echo "$as_me: WARNING: === error message. You should also do this when upgrading" >&2;}
13754 { $as_echo "$as_me:$LINENO: WARNING: === and you didn't use RPM with the older version." >&5
13755$as_echo "$as_me: WARNING: === and you didn't use RPM with the older version." >&2;}
13756 { { $as_echo "$as_me:$LINENO: error: ... in either case you better know what you're doing!" >&5
13757$as_echo "$as_me: error: ... in either case you better know what you're doing!" >&2;}
13758 { (exit 1); exit 1; }; }
13759 fi
13760 ;;
13761 *)
13762 ;;
13763 esac
13764fi
13765for ac_prog in expect
13766do
13767 # Extract the first word of "$ac_prog", so it can be a program name with args.
13768set dummy $ac_prog; ac_word=$2
13769{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13770$as_echo_n "checking for $ac_word... " >&6; }
13771if test "${ac_cv_path_EXPECT+set}" = set; then
13772 $as_echo_n "(cached) " >&6
13773else
13774 case $EXPECT in
13775 [\\/]* | ?:[\\/]*)
13776 ac_cv_path_EXPECT="$EXPECT" # Let the user override the test with a path.
13777 ;;
13778 *)
13779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13780for as_dir in $LPATH
13781do
13782 IFS=$as_save_IFS
13783 test -z "$as_dir" && as_dir=.
13784 for ac_exec_ext in '' $ac_executable_extensions; do
13785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13786 ac_cv_path_EXPECT="$as_dir/$ac_word$ac_exec_ext"
13787 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13788 break 2
d9898ee8 13789 fi
8d138742
CE
13790done
13791done
13792IFS=$as_save_IFS
d9898ee8 13793
8d138742
CE
13794 ;;
13795esac
13796fi
13797EXPECT=$ac_cv_path_EXPECT
13798if test -n "$EXPECT"; then
13799 { $as_echo "$as_me:$LINENO: result: $EXPECT" >&5
13800$as_echo "$EXPECT" >&6; }
13801else
13802 { $as_echo "$as_me:$LINENO: result: no" >&5
13803$as_echo "no" >&6; }
13804fi
d9898ee8 13805
d9898ee8 13806
8d138742
CE
13807 test -n "$EXPECT" && break
13808done
13809test -n "$EXPECT" || EXPECT="expect"
d9898ee8 13810
8d138742
CE
13811
13812if test "$EXPECT" = "expect"
13813then
13814 { $as_echo "$as_me:$LINENO: WARNING: -----------------------------------------------------" >&5
13815$as_echo "$as_me: WARNING: -----------------------------------------------------" >&2;}
13816 { $as_echo "$as_me:$LINENO: WARNING: expect not found - will not be able to change passwds" >&5
13817$as_echo "$as_me: WARNING: expect not found - will not be able to change passwds" >&2;}
13818 { $as_echo "$as_me:$LINENO: WARNING: in webmail" >&5
13819$as_echo "$as_me: WARNING: in webmail" >&2;}
13820 { $as_echo "$as_me:$LINENO: WARNING: -----------------------------------------------------" >&5
13821$as_echo "$as_me: WARNING: -----------------------------------------------------" >&2;}
13822 sleep 5
13823else
13824
13825cat >>confdefs.h <<_ACEOF
13826#define HAVE_EXPECT 1
13827_ACEOF
13828
13829fi
13830
13831for ac_prog in passwd
13832do
13833 # Extract the first word of "$ac_prog", so it can be a program name with args.
13834set dummy $ac_prog; ac_word=$2
13835{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13836$as_echo_n "checking for $ac_word... " >&6; }
13837if test "${ac_cv_path_PASSWD+set}" = set; then
13838 $as_echo_n "(cached) " >&6
13839else
13840 case $PASSWD in
13841 [\\/]* | ?:[\\/]*)
13842 ac_cv_path_PASSWD="$PASSWD" # Let the user override the test with a path.
13843 ;;
13844 *)
13845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13846for as_dir in $LPATH
13847do
13848 IFS=$as_save_IFS
13849 test -z "$as_dir" && as_dir=.
13850 for ac_exec_ext in '' $ac_executable_extensions; do
13851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13852 ac_cv_path_PASSWD="$as_dir/$ac_word$ac_exec_ext"
13853 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13854 break 2
d9898ee8 13855 fi
8d138742
CE
13856done
13857done
13858IFS=$as_save_IFS
13859
d9898ee8 13860 ;;
13861esac
8d138742
CE
13862fi
13863PASSWD=$ac_cv_path_PASSWD
13864if test -n "$PASSWD"; then
13865 { $as_echo "$as_me:$LINENO: result: $PASSWD" >&5
13866$as_echo "$PASSWD" >&6; }
13867else
13868 { $as_echo "$as_me:$LINENO: result: no" >&5
13869$as_echo "no" >&6; }
13870fi
d9898ee8 13871
ac40fd9e 13872
8d138742
CE
13873 test -n "$PASSWD" && break
13874done
13875test -n "$PASSWD" || PASSWD="passwd"
d9898ee8 13876
d9898ee8 13877
d9898ee8 13878
8d138742
CE
13879if test "$GCC" = "yes"
13880then
13881 CFLAGS="$CFLAGS -Wall"
13882fi
d9898ee8 13883
8d138742 13884CFLAGS="$CFLAGS -I.. -I${srcdir}/.."
d9898ee8 13885
8d138742
CE
13886{ $as_echo "$as_me:$LINENO: checking whether -lm is needed for floor" >&5
13887$as_echo_n "checking whether -lm is needed for floor... " >&6; }
13888cat >conftest.$ac_ext <<_ACEOF
13889/* confdefs.h. */
13890_ACEOF
13891cat confdefs.h >>conftest.$ac_ext
13892cat >>conftest.$ac_ext <<_ACEOF
13893/* end confdefs.h. */
d9898ee8 13894
8d138742
CE
13895/* Override any GCC internal prototype to avoid an error.
13896 Use char because int might match the return type of a GCC
13897 builtin and then its argument prototype would still apply. */
13898#ifdef __cplusplus
13899extern "C"
13900#endif
13901char floor ();
13902int
13903main ()
13904{
13905return floor ();
13906 ;
13907 return 0;
13908}
13909_ACEOF
13910rm -f conftest.$ac_objext conftest$ac_exeext
13911if { (ac_try="$ac_link"
13912case "(($ac_try" in
13913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13914 *) ac_try_echo=$ac_try;;
13915esac
13916eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13917$as_echo "$ac_try_echo") >&5
13918 (eval "$ac_link") 2>conftest.er1
13919 ac_status=$?
13920 grep -v '^ *+' conftest.er1 >conftest.err
13921 rm -f conftest.er1
13922 cat conftest.err >&5
13923 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13924 (exit $ac_status); } && {
13925 test -z "$ac_c_werror_flag" ||
13926 test ! -s conftest.err
13927 } && test -s conftest$ac_exeext && {
13928 test "$cross_compiling" = yes ||
13929 $as_test_x conftest$ac_exeext
13930 }; then
13931 { $as_echo "$as_me:$LINENO: result: no" >&5
13932$as_echo "no" >&6; }
13933else
13934 $as_echo "$as_me: failed program was:" >&5
13935sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 13936
8d138742
CE
13937 LIBM="-lm"
13938 { $as_echo "$as_me:$LINENO: result: yes" >&5
13939$as_echo "yes" >&6; }
13940fi
d9898ee8 13941
8d138742
CE
13942rm -rf conftest.dSYM
13943rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13944 conftest$ac_exeext conftest.$ac_ext
d9898ee8 13945
d9898ee8 13946
8d138742
CE
13947# Check whether --with-pkgconfdir was given.
13948if test "${with_pkgconfdir+set}" = set; then
13949 withval=$with_pkgconfdir; pkgconfdir="$withval"
13950else
13951 pkgconfdir="$sysconfdir/authlib"
13952fi
d9898ee8 13953
d9898ee8 13954
8d138742
CE
13955saveLIBS="$LIBS"
13956NETLIBS=""
13957USENSL=no
ac40fd9e 13958
8d138742
CE
13959{ $as_echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
13960$as_echo_n "checking for socket in -lsocket... " >&6; }
13961if test "${ac_cv_lib_socket_socket+set}" = set; then
13962 $as_echo_n "(cached) " >&6
13963else
13964 ac_check_lib_save_LIBS=$LIBS
13965LIBS="-lsocket $LIBS"
13966cat >conftest.$ac_ext <<_ACEOF
13967/* confdefs.h. */
13968_ACEOF
13969cat confdefs.h >>conftest.$ac_ext
13970cat >>conftest.$ac_ext <<_ACEOF
13971/* end confdefs.h. */
d9898ee8 13972
8d138742
CE
13973/* Override any GCC internal prototype to avoid an error.
13974 Use char because int might match the return type of a GCC
13975 builtin and then its argument prototype would still apply. */
13976#ifdef __cplusplus
13977extern "C"
13978#endif
13979char socket ();
13980int
13981main ()
13982{
13983return socket ();
13984 ;
13985 return 0;
13986}
13987_ACEOF
13988rm -f conftest.$ac_objext conftest$ac_exeext
13989if { (ac_try="$ac_link"
13990case "(($ac_try" in
13991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13992 *) ac_try_echo=$ac_try;;
13993esac
13994eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13995$as_echo "$ac_try_echo") >&5
13996 (eval "$ac_link") 2>conftest.er1
13997 ac_status=$?
13998 grep -v '^ *+' conftest.er1 >conftest.err
13999 rm -f conftest.er1
14000 cat conftest.err >&5
14001 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14002 (exit $ac_status); } && {
14003 test -z "$ac_c_werror_flag" ||
14004 test ! -s conftest.err
14005 } && test -s conftest$ac_exeext && {
14006 test "$cross_compiling" = yes ||
14007 $as_test_x conftest$ac_exeext
14008 }; then
14009 ac_cv_lib_socket_socket=yes
14010else
14011 $as_echo "$as_me: failed program was:" >&5
14012sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 14013
8d138742
CE
14014 ac_cv_lib_socket_socket=no
14015fi
dd184caf 14016
8d138742 14017rm -rf conftest.dSYM
dd184caf 14018rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 14019 conftest$ac_exeext conftest.$ac_ext
14020LIBS=$ac_check_lib_save_LIBS
14021fi
8d138742
CE
14022{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
14023$as_echo "$ac_cv_lib_socket_socket" >&6; }
14024if test "x$ac_cv_lib_socket_socket" = x""yes; then
d9898ee8 14025 result=yes
14026else
14027 result=no
14028fi
14029
14030if test $result = yes; then
14031 NETLIBS="-lsocket"
14032else
8d138742
CE
14033 { $as_echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
14034$as_echo_n "checking for socket in -lsocket... " >&6; }
d9898ee8 14035if test "${ac_cv_lib_socket_socket+set}" = set; then
8d138742 14036 $as_echo_n "(cached) " >&6
d9898ee8 14037else
14038 ac_check_lib_save_LIBS=$LIBS
14039LIBS="-lsocket -lnsl $LIBS"
14040cat >conftest.$ac_ext <<_ACEOF
14041/* confdefs.h. */
14042_ACEOF
14043cat confdefs.h >>conftest.$ac_ext
14044cat >>conftest.$ac_ext <<_ACEOF
14045/* end confdefs.h. */
14046
dd184caf 14047/* Override any GCC internal prototype to avoid an error.
14048 Use char because int might match the return type of a GCC
14049 builtin and then its argument prototype would still apply. */
d9898ee8 14050#ifdef __cplusplus
14051extern "C"
14052#endif
d9898ee8 14053char socket ();
14054int
14055main ()
14056{
dd184caf 14057return socket ();
d9898ee8 14058 ;
14059 return 0;
14060}
14061_ACEOF
14062rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 14063if { (ac_try="$ac_link"
14064case "(($ac_try" in
14065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14066 *) ac_try_echo=$ac_try;;
14067esac
8d138742
CE
14068eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14069$as_echo "$ac_try_echo") >&5
dd184caf 14070 (eval "$ac_link") 2>conftest.er1
d9898ee8 14071 ac_status=$?
14072 grep -v '^ *+' conftest.er1 >conftest.err
14073 rm -f conftest.er1
14074 cat conftest.err >&5
8d138742 14075 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 14076 (exit $ac_status); } && {
14077 test -z "$ac_c_werror_flag" ||
14078 test ! -s conftest.err
8d138742
CE
14079 } && test -s conftest$ac_exeext && {
14080 test "$cross_compiling" = yes ||
14081 $as_test_x conftest$ac_exeext
14082 }; then
d9898ee8 14083 ac_cv_lib_socket_socket=yes
14084else
8d138742 14085 $as_echo "$as_me: failed program was:" >&5
d9898ee8 14086sed 's/^/| /' conftest.$ac_ext >&5
14087
dd184caf 14088 ac_cv_lib_socket_socket=no
d9898ee8 14089fi
dd184caf 14090
8d138742 14091rm -rf conftest.dSYM
dd184caf 14092rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 14093 conftest$ac_exeext conftest.$ac_ext
14094LIBS=$ac_check_lib_save_LIBS
14095fi
8d138742
CE
14096{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
14097$as_echo "$ac_cv_lib_socket_socket" >&6; }
14098if test "x$ac_cv_lib_socket_socket" = x""yes; then
d9898ee8 14099 result=yes
14100else
14101 result=no
14102fi
14103
14104 if test $result = yes; then
14105 NETLIBS = "-lsocket -lnsl"
14106 USENSL=yes
14107 else
8d138742
CE
14108 { $as_echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
14109$as_echo_n "checking for connect in -lsocket... " >&6; }
d9898ee8 14110if test "${ac_cv_lib_socket_connect+set}" = set; then
8d138742 14111 $as_echo_n "(cached) " >&6
d9898ee8 14112else
14113 ac_check_lib_save_LIBS=$LIBS
14114LIBS="-lsocket $LIBS"
14115cat >conftest.$ac_ext <<_ACEOF
14116/* confdefs.h. */
14117_ACEOF
14118cat confdefs.h >>conftest.$ac_ext
14119cat >>conftest.$ac_ext <<_ACEOF
14120/* end confdefs.h. */
14121
dd184caf 14122/* Override any GCC internal prototype to avoid an error.
14123 Use char because int might match the return type of a GCC
14124 builtin and then its argument prototype would still apply. */
d9898ee8 14125#ifdef __cplusplus
14126extern "C"
14127#endif
d9898ee8 14128char connect ();
14129int
14130main ()
14131{
dd184caf 14132return connect ();
d9898ee8 14133 ;
14134 return 0;
14135}
14136_ACEOF
14137rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 14138if { (ac_try="$ac_link"
14139case "(($ac_try" in
14140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14141 *) ac_try_echo=$ac_try;;
14142esac
8d138742
CE
14143eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14144$as_echo "$ac_try_echo") >&5
dd184caf 14145 (eval "$ac_link") 2>conftest.er1
d9898ee8 14146 ac_status=$?
14147 grep -v '^ *+' conftest.er1 >conftest.err
14148 rm -f conftest.er1
14149 cat conftest.err >&5
8d138742 14150 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 14151 (exit $ac_status); } && {
14152 test -z "$ac_c_werror_flag" ||
14153 test ! -s conftest.err
8d138742
CE
14154 } && test -s conftest$ac_exeext && {
14155 test "$cross_compiling" = yes ||
14156 $as_test_x conftest$ac_exeext
14157 }; then
d9898ee8 14158 ac_cv_lib_socket_connect=yes
14159else
8d138742 14160 $as_echo "$as_me: failed program was:" >&5
d9898ee8 14161sed 's/^/| /' conftest.$ac_ext >&5
14162
dd184caf 14163 ac_cv_lib_socket_connect=no
d9898ee8 14164fi
dd184caf 14165
8d138742 14166rm -rf conftest.dSYM
dd184caf 14167rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 14168 conftest$ac_exeext conftest.$ac_ext
14169LIBS=$ac_check_lib_save_LIBS
14170fi
8d138742
CE
14171{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
14172$as_echo "$ac_cv_lib_socket_connect" >&6; }
14173if test "x$ac_cv_lib_socket_connect" = x""yes; then
d9898ee8 14174 result=yes
14175else
14176 result=no
14177fi
14178
14179 if test $result = yes; then
14180 NETLIBS="-lsocket"
14181 else
8d138742
CE
14182 { $as_echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
14183$as_echo_n "checking for connect in -lsocket... " >&6; }
d9898ee8 14184if test "${ac_cv_lib_socket_connect+set}" = set; then
8d138742 14185 $as_echo_n "(cached) " >&6
d9898ee8 14186else
14187 ac_check_lib_save_LIBS=$LIBS
14188LIBS="-lsocket -lnsl $LIBS"
14189cat >conftest.$ac_ext <<_ACEOF
14190/* confdefs.h. */
14191_ACEOF
14192cat confdefs.h >>conftest.$ac_ext
14193cat >>conftest.$ac_ext <<_ACEOF
14194/* end confdefs.h. */
14195
dd184caf 14196/* Override any GCC internal prototype to avoid an error.
14197 Use char because int might match the return type of a GCC
14198 builtin and then its argument prototype would still apply. */
d9898ee8 14199#ifdef __cplusplus
14200extern "C"
14201#endif
d9898ee8 14202char connect ();
14203int
14204main ()
14205{
dd184caf 14206return connect ();
d9898ee8 14207 ;
14208 return 0;
14209}
14210_ACEOF
14211rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 14212if { (ac_try="$ac_link"
14213case "(($ac_try" in
14214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14215 *) ac_try_echo=$ac_try;;
14216esac
8d138742
CE
14217eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14218$as_echo "$ac_try_echo") >&5
dd184caf 14219 (eval "$ac_link") 2>conftest.er1
d9898ee8 14220 ac_status=$?
14221 grep -v '^ *+' conftest.er1 >conftest.err
14222 rm -f conftest.er1
14223 cat conftest.err >&5
8d138742 14224 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 14225 (exit $ac_status); } && {
14226 test -z "$ac_c_werror_flag" ||
14227 test ! -s conftest.err
8d138742
CE
14228 } && test -s conftest$ac_exeext && {
14229 test "$cross_compiling" = yes ||
14230 $as_test_x conftest$ac_exeext
14231 }; then
d9898ee8 14232 ac_cv_lib_socket_connect=yes
14233else
8d138742 14234 $as_echo "$as_me: failed program was:" >&5
d9898ee8 14235sed 's/^/| /' conftest.$ac_ext >&5
14236
dd184caf 14237 ac_cv_lib_socket_connect=no
d9898ee8 14238fi
dd184caf 14239
8d138742 14240rm -rf conftest.dSYM
dd184caf 14241rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 14242 conftest$ac_exeext conftest.$ac_ext
14243LIBS=$ac_check_lib_save_LIBS
14244fi
8d138742
CE
14245{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
14246$as_echo "$ac_cv_lib_socket_connect" >&6; }
14247if test "x$ac_cv_lib_socket_connect" = x""yes; then
d9898ee8 14248 result=yes
14249else
14250 result=no
14251fi
14252
14253 if test $result = yes; then
14254 NETLIBS="-lsocket -lnsl"
14255 USENSL=yes
14256 fi
14257 fi
14258 fi
14259fi
14260
14261if test $USENSL != yes; then
14262 LIBS="$LIBS $NETLIBS"
14263 cat >conftest.$ac_ext <<_ACEOF
14264/* confdefs.h. */
14265_ACEOF
14266cat confdefs.h >>conftest.$ac_ext
14267cat >>conftest.$ac_ext <<_ACEOF
14268/* end confdefs.h. */
14269
dd184caf 14270/* Override any GCC internal prototype to avoid an error.
14271 Use char because int might match the return type of a GCC
14272 builtin and then its argument prototype would still apply. */
d9898ee8 14273#ifdef __cplusplus
14274extern "C"
14275#endif
d9898ee8 14276char inet_addr ();
14277int
14278main ()
14279{
dd184caf 14280return inet_addr ();
d9898ee8 14281 ;
14282 return 0;
14283}
14284_ACEOF
14285rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 14286if { (ac_try="$ac_link"
14287case "(($ac_try" in
14288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14289 *) ac_try_echo=$ac_try;;
14290esac
8d138742
CE
14291eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14292$as_echo "$ac_try_echo") >&5
dd184caf 14293 (eval "$ac_link") 2>conftest.er1
d9898ee8 14294 ac_status=$?
14295 grep -v '^ *+' conftest.er1 >conftest.err
14296 rm -f conftest.er1
14297 cat conftest.err >&5
8d138742 14298 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 14299 (exit $ac_status); } && {
14300 test -z "$ac_c_werror_flag" ||
14301 test ! -s conftest.err
8d138742
CE
14302 } && test -s conftest$ac_exeext && {
14303 test "$cross_compiling" = yes ||
14304 $as_test_x conftest$ac_exeext
14305 }; then
d9898ee8 14306 :
14307else
8d138742 14308 $as_echo "$as_me: failed program was:" >&5
d9898ee8 14309sed 's/^/| /' conftest.$ac_ext >&5
14310
14311
8d138742
CE
14312 { $as_echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
14313$as_echo_n "checking for inet_addr in -lnsl... " >&6; }
d9898ee8 14314if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
8d138742 14315 $as_echo_n "(cached) " >&6
d9898ee8 14316else
14317 ac_check_lib_save_LIBS=$LIBS
14318LIBS="-lnsl $LIBS"
14319cat >conftest.$ac_ext <<_ACEOF
14320/* confdefs.h. */
14321_ACEOF
14322cat confdefs.h >>conftest.$ac_ext
14323cat >>conftest.$ac_ext <<_ACEOF
14324/* end confdefs.h. */
14325
dd184caf 14326/* Override any GCC internal prototype to avoid an error.
14327 Use char because int might match the return type of a GCC
14328 builtin and then its argument prototype would still apply. */
d9898ee8 14329#ifdef __cplusplus
14330extern "C"
14331#endif
d9898ee8 14332char inet_addr ();
14333int
14334main ()
14335{
dd184caf 14336return inet_addr ();
d9898ee8 14337 ;
14338 return 0;
14339}
14340_ACEOF
14341rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 14342if { (ac_try="$ac_link"
14343case "(($ac_try" in
14344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14345 *) ac_try_echo=$ac_try;;
14346esac
8d138742
CE
14347eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14348$as_echo "$ac_try_echo") >&5
dd184caf 14349 (eval "$ac_link") 2>conftest.er1
d9898ee8 14350 ac_status=$?
14351 grep -v '^ *+' conftest.er1 >conftest.err
14352 rm -f conftest.er1
14353 cat conftest.err >&5
8d138742 14354 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 14355 (exit $ac_status); } && {
14356 test -z "$ac_c_werror_flag" ||
14357 test ! -s conftest.err
8d138742
CE
14358 } && test -s conftest$ac_exeext && {
14359 test "$cross_compiling" = yes ||
14360 $as_test_x conftest$ac_exeext
14361 }; then
d9898ee8 14362 ac_cv_lib_nsl_inet_addr=yes
14363else
8d138742 14364 $as_echo "$as_me: failed program was:" >&5
d9898ee8 14365sed 's/^/| /' conftest.$ac_ext >&5
14366
dd184caf 14367 ac_cv_lib_nsl_inet_addr=no
d9898ee8 14368fi
dd184caf 14369
8d138742 14370rm -rf conftest.dSYM
dd184caf 14371rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 14372 conftest$ac_exeext conftest.$ac_ext
14373LIBS=$ac_check_lib_save_LIBS
14374fi
8d138742
CE
14375{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
14376$as_echo "$ac_cv_lib_nsl_inet_addr" >&6; }
14377if test "x$ac_cv_lib_nsl_inet_addr" = x""yes; then
d9898ee8 14378 result=yes
14379else
14380 result=no
14381fi
14382
14383 if test $result = yes; then
14384 NETLIBS="$NETLIBS -lnsl"
14385 fi
14386
14387fi
dd184caf 14388
8d138742 14389rm -rf conftest.dSYM
dd184caf 14390rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 14391 conftest$ac_exeext conftest.$ac_ext
14392fi
14393
14394LIBS="$saveLIBS"
14395
14396
14397
14398
14399
14400
14401
dd184caf 14402# Check whether --with-db was given.
d9898ee8 14403if test "${with_db+set}" = set; then
dd184caf 14404 withval=$with_db; db="$withval"
d9898ee8 14405else
14406 needs_withdb=1
dd184caf 14407fi
14408
d9898ee8 14409
14410case "$db" in
14411gdbm)
14412 ;;
14413db)
14414 ;;
14415"")
14416 ;;
14417*)
8d138742
CE
14418 { { $as_echo "$as_me:$LINENO: error: Invalid --with-db option." >&5
14419$as_echo "$as_me: error: Invalid --with-db option." >&2;}
d9898ee8 14420 { (exit 1); exit 1; }; }
14421 ;;
14422esac
14423
14424saveLIBS="$LIBS"
14425
14426if test "$db" != "db"
14427then
8d138742
CE
14428 { $as_echo "$as_me:$LINENO: checking for gdbm_open in -lgdbm" >&5
14429$as_echo_n "checking for gdbm_open in -lgdbm... " >&6; }
d9898ee8 14430if test "${ac_cv_lib_gdbm_gdbm_open+set}" = set; then
8d138742 14431 $as_echo_n "(cached) " >&6
d9898ee8 14432else
14433 ac_check_lib_save_LIBS=$LIBS
14434LIBS="-lgdbm $LIBS"
14435cat >conftest.$ac_ext <<_ACEOF
14436/* confdefs.h. */
14437_ACEOF
14438cat confdefs.h >>conftest.$ac_ext
14439cat >>conftest.$ac_ext <<_ACEOF
14440/* end confdefs.h. */
14441
dd184caf 14442/* Override any GCC internal prototype to avoid an error.
14443 Use char because int might match the return type of a GCC
14444 builtin and then its argument prototype would still apply. */
d9898ee8 14445#ifdef __cplusplus
14446extern "C"
14447#endif
d9898ee8 14448char gdbm_open ();
14449int
14450main ()
14451{
dd184caf 14452return gdbm_open ();
d9898ee8 14453 ;
14454 return 0;
14455}
14456_ACEOF
14457rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 14458if { (ac_try="$ac_link"
14459case "(($ac_try" in
14460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14461 *) ac_try_echo=$ac_try;;
14462esac
8d138742
CE
14463eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14464$as_echo "$ac_try_echo") >&5
dd184caf 14465 (eval "$ac_link") 2>conftest.er1
d9898ee8 14466 ac_status=$?
14467 grep -v '^ *+' conftest.er1 >conftest.err
14468 rm -f conftest.er1
14469 cat conftest.err >&5
8d138742 14470 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 14471 (exit $ac_status); } && {
14472 test -z "$ac_c_werror_flag" ||
14473 test ! -s conftest.err
8d138742
CE
14474 } && test -s conftest$ac_exeext && {
14475 test "$cross_compiling" = yes ||
14476 $as_test_x conftest$ac_exeext
14477 }; then
d9898ee8 14478 ac_cv_lib_gdbm_gdbm_open=yes
14479else
8d138742 14480 $as_echo "$as_me: failed program was:" >&5
d9898ee8 14481sed 's/^/| /' conftest.$ac_ext >&5
14482
dd184caf 14483 ac_cv_lib_gdbm_gdbm_open=no
d9898ee8 14484fi
dd184caf 14485
8d138742 14486rm -rf conftest.dSYM
dd184caf 14487rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 14488 conftest$ac_exeext conftest.$ac_ext
14489LIBS=$ac_check_lib_save_LIBS
14490fi
8d138742
CE
14491{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gdbm_gdbm_open" >&5
14492$as_echo "$ac_cv_lib_gdbm_gdbm_open" >&6; }
14493if test "x$ac_cv_lib_gdbm_gdbm_open" = x""yes; then
d9898ee8 14494 LIBGDBM=-lgdbm ; LIBS="-lgdbm $LIBS"
14495fi
14496
8d138742
CE
14497 { $as_echo "$as_me:$LINENO: checking for gdbm_open" >&5
14498$as_echo_n "checking for gdbm_open... " >&6; }
d9898ee8 14499if test "${ac_cv_func_gdbm_open+set}" = set; then
8d138742 14500 $as_echo_n "(cached) " >&6
d9898ee8 14501else
14502 cat >conftest.$ac_ext <<_ACEOF
14503/* confdefs.h. */
14504_ACEOF
14505cat confdefs.h >>conftest.$ac_ext
14506cat >>conftest.$ac_ext <<_ACEOF
14507/* end confdefs.h. */
14508/* Define gdbm_open to an innocuous variant, in case <limits.h> declares gdbm_open.
14509 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14510#define gdbm_open innocuous_gdbm_open
14511
14512/* System header to define __stub macros and hopefully few prototypes,
14513 which can conflict with char gdbm_open (); below.
14514 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14515 <limits.h> exists even on freestanding compilers. */
14516
14517#ifdef __STDC__
14518# include <limits.h>
14519#else
14520# include <assert.h>
14521#endif
14522
14523#undef gdbm_open
14524
dd184caf 14525/* Override any GCC internal prototype to avoid an error.
14526 Use char because int might match the return type of a GCC
14527 builtin and then its argument prototype would still apply. */
d9898ee8 14528#ifdef __cplusplus
14529extern "C"
d9898ee8 14530#endif
d9898ee8 14531char gdbm_open ();
14532/* The GNU C library defines this for functions which it implements
14533 to always fail with ENOSYS. Some functions are actually named
14534 something starting with __ and the normal name is an alias. */
dd184caf 14535#if defined __stub_gdbm_open || defined __stub___gdbm_open
d9898ee8 14536choke me
d9898ee8 14537#endif
14538
14539int
14540main ()
14541{
dd184caf 14542return gdbm_open ();
d9898ee8 14543 ;
14544 return 0;
14545}
14546_ACEOF
14547rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 14548if { (ac_try="$ac_link"
14549case "(($ac_try" in
14550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14551 *) ac_try_echo=$ac_try;;
14552esac
8d138742
CE
14553eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14554$as_echo "$ac_try_echo") >&5
dd184caf 14555 (eval "$ac_link") 2>conftest.er1
d9898ee8 14556 ac_status=$?
14557 grep -v '^ *+' conftest.er1 >conftest.err
14558 rm -f conftest.er1
14559 cat conftest.err >&5
8d138742 14560 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 14561 (exit $ac_status); } && {
14562 test -z "$ac_c_werror_flag" ||
14563 test ! -s conftest.err
8d138742
CE
14564 } && test -s conftest$ac_exeext && {
14565 test "$cross_compiling" = yes ||
14566 $as_test_x conftest$ac_exeext
14567 }; then
d9898ee8 14568 ac_cv_func_gdbm_open=yes
14569else
8d138742 14570 $as_echo "$as_me: failed program was:" >&5
d9898ee8 14571sed 's/^/| /' conftest.$ac_ext >&5
14572
dd184caf 14573 ac_cv_func_gdbm_open=no
d9898ee8 14574fi
dd184caf 14575
8d138742 14576rm -rf conftest.dSYM
dd184caf 14577rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 14578 conftest$ac_exeext conftest.$ac_ext
14579fi
8d138742
CE
14580{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_gdbm_open" >&5
14581$as_echo "$ac_cv_func_gdbm_open" >&6; }
14582if test "x$ac_cv_func_gdbm_open" = x""yes; then
d9898ee8 14583 HAVE_GDBM=y
14584fi
14585
14586fi
14587
14588LIBS="$saveLIBS"
14589
14590if test "$db" != "gdbm"
14591then
8d138742
CE
14592 { $as_echo "$as_me:$LINENO: checking for dbopen in -ldb" >&5
14593$as_echo_n "checking for dbopen in -ldb... " >&6; }
d9898ee8 14594if test "${ac_cv_lib_db_dbopen+set}" = set; then
8d138742 14595 $as_echo_n "(cached) " >&6
d9898ee8 14596else
14597 ac_check_lib_save_LIBS=$LIBS
14598LIBS="-ldb $LIBS"
14599cat >conftest.$ac_ext <<_ACEOF
14600/* confdefs.h. */
14601_ACEOF
14602cat confdefs.h >>conftest.$ac_ext
14603cat >>conftest.$ac_ext <<_ACEOF
14604/* end confdefs.h. */
14605
dd184caf 14606/* Override any GCC internal prototype to avoid an error.
14607 Use char because int might match the return type of a GCC
14608 builtin and then its argument prototype would still apply. */
d9898ee8 14609#ifdef __cplusplus
14610extern "C"
14611#endif
d9898ee8 14612char dbopen ();
14613int
14614main ()
14615{
dd184caf 14616return dbopen ();
d9898ee8 14617 ;
14618 return 0;
14619}
14620_ACEOF
14621rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 14622if { (ac_try="$ac_link"
14623case "(($ac_try" in
14624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14625 *) ac_try_echo=$ac_try;;
14626esac
8d138742
CE
14627eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14628$as_echo "$ac_try_echo") >&5
dd184caf 14629 (eval "$ac_link") 2>conftest.er1
d9898ee8 14630 ac_status=$?
14631 grep -v '^ *+' conftest.er1 >conftest.err
14632 rm -f conftest.er1
14633 cat conftest.err >&5
8d138742 14634 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 14635 (exit $ac_status); } && {
14636 test -z "$ac_c_werror_flag" ||
14637 test ! -s conftest.err
8d138742
CE
14638 } && test -s conftest$ac_exeext && {
14639 test "$cross_compiling" = yes ||
14640 $as_test_x conftest$ac_exeext
14641 }; then
d9898ee8 14642 ac_cv_lib_db_dbopen=yes
14643else
8d138742 14644 $as_echo "$as_me: failed program was:" >&5
d9898ee8 14645sed 's/^/| /' conftest.$ac_ext >&5
14646
dd184caf 14647 ac_cv_lib_db_dbopen=no
d9898ee8 14648fi
dd184caf 14649
8d138742 14650rm -rf conftest.dSYM
dd184caf 14651rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 14652 conftest$ac_exeext conftest.$ac_ext
14653LIBS=$ac_check_lib_save_LIBS
14654fi
8d138742
CE
14655{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_db_dbopen" >&5
14656$as_echo "$ac_cv_lib_db_dbopen" >&6; }
14657if test "x$ac_cv_lib_db_dbopen" = x""yes; then
d9898ee8 14658 LIBDB=-ldb ; LIBS="-ldb $LIBS"
14659else
8d138742
CE
14660 { $as_echo "$as_me:$LINENO: checking for db_open in -ldb" >&5
14661$as_echo_n "checking for db_open in -ldb... " >&6; }
d9898ee8 14662if test "${ac_cv_lib_db_db_open+set}" = set; then
8d138742 14663 $as_echo_n "(cached) " >&6
d9898ee8 14664else
14665 ac_check_lib_save_LIBS=$LIBS
14666LIBS="-ldb $LIBS"
14667cat >conftest.$ac_ext <<_ACEOF
14668/* confdefs.h. */
14669_ACEOF
14670cat confdefs.h >>conftest.$ac_ext
14671cat >>conftest.$ac_ext <<_ACEOF
14672/* end confdefs.h. */
14673
dd184caf 14674/* Override any GCC internal prototype to avoid an error.
14675 Use char because int might match the return type of a GCC
14676 builtin and then its argument prototype would still apply. */
d9898ee8 14677#ifdef __cplusplus
14678extern "C"
14679#endif
d9898ee8 14680char db_open ();
14681int
14682main ()
14683{
dd184caf 14684return db_open ();
d9898ee8 14685 ;
14686 return 0;
14687}
14688_ACEOF
14689rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 14690if { (ac_try="$ac_link"
14691case "(($ac_try" in
14692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14693 *) ac_try_echo=$ac_try;;
14694esac
8d138742
CE
14695eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14696$as_echo "$ac_try_echo") >&5
dd184caf 14697 (eval "$ac_link") 2>conftest.er1
d9898ee8 14698 ac_status=$?
14699 grep -v '^ *+' conftest.er1 >conftest.err
14700 rm -f conftest.er1
14701 cat conftest.err >&5
8d138742 14702 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 14703 (exit $ac_status); } && {
14704 test -z "$ac_c_werror_flag" ||
14705 test ! -s conftest.err
8d138742
CE
14706 } && test -s conftest$ac_exeext && {
14707 test "$cross_compiling" = yes ||
14708 $as_test_x conftest$ac_exeext
14709 }; then
d9898ee8 14710 ac_cv_lib_db_db_open=yes
14711else
8d138742 14712 $as_echo "$as_me: failed program was:" >&5
d9898ee8 14713sed 's/^/| /' conftest.$ac_ext >&5
14714
dd184caf 14715 ac_cv_lib_db_db_open=no
d9898ee8 14716fi
dd184caf 14717
8d138742 14718rm -rf conftest.dSYM
dd184caf 14719rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 14720 conftest$ac_exeext conftest.$ac_ext
14721LIBS=$ac_check_lib_save_LIBS
14722fi
8d138742
CE
14723{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_db_db_open" >&5
14724$as_echo "$ac_cv_lib_db_db_open" >&6; }
14725if test "x$ac_cv_lib_db_db_open" = x""yes; then
d9898ee8 14726 LIBDB=-ldb ; LIBS="-ldb $LIBS"
14727else
8d138742
CE
14728 { $as_echo "$as_me:$LINENO: checking for db_env_create in -ldb" >&5
14729$as_echo_n "checking for db_env_create in -ldb... " >&6; }
d9898ee8 14730if test "${ac_cv_lib_db_db_env_create+set}" = set; then
8d138742 14731 $as_echo_n "(cached) " >&6
d9898ee8 14732else
14733 ac_check_lib_save_LIBS=$LIBS
14734LIBS="-ldb $LIBS"
14735cat >conftest.$ac_ext <<_ACEOF
14736/* confdefs.h. */
14737_ACEOF
14738cat confdefs.h >>conftest.$ac_ext
14739cat >>conftest.$ac_ext <<_ACEOF
14740/* end confdefs.h. */
14741
dd184caf 14742/* Override any GCC internal prototype to avoid an error.
14743 Use char because int might match the return type of a GCC
14744 builtin and then its argument prototype would still apply. */
d9898ee8 14745#ifdef __cplusplus
14746extern "C"
14747#endif
d9898ee8 14748char db_env_create ();
14749int
14750main ()
14751{
dd184caf 14752return db_env_create ();
d9898ee8 14753 ;
14754 return 0;
14755}
14756_ACEOF
14757rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 14758if { (ac_try="$ac_link"
14759case "(($ac_try" in
14760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14761 *) ac_try_echo=$ac_try;;
14762esac
8d138742
CE
14763eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14764$as_echo "$ac_try_echo") >&5
dd184caf 14765 (eval "$ac_link") 2>conftest.er1
d9898ee8 14766 ac_status=$?
14767 grep -v '^ *+' conftest.er1 >conftest.err
14768 rm -f conftest.er1
14769 cat conftest.err >&5
8d138742 14770 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 14771 (exit $ac_status); } && {
14772 test -z "$ac_c_werror_flag" ||
14773 test ! -s conftest.err
8d138742
CE
14774 } && test -s conftest$ac_exeext && {
14775 test "$cross_compiling" = yes ||
14776 $as_test_x conftest$ac_exeext
14777 }; then
d9898ee8 14778 ac_cv_lib_db_db_env_create=yes
14779else
8d138742 14780 $as_echo "$as_me: failed program was:" >&5
d9898ee8 14781sed 's/^/| /' conftest.$ac_ext >&5
14782
dd184caf 14783 ac_cv_lib_db_db_env_create=no
d9898ee8 14784fi
dd184caf 14785
8d138742 14786rm -rf conftest.dSYM
dd184caf 14787rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 14788 conftest$ac_exeext conftest.$ac_ext
14789LIBS=$ac_check_lib_save_LIBS
14790fi
8d138742
CE
14791{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_db_db_env_create" >&5
14792$as_echo "$ac_cv_lib_db_db_env_create" >&6; }
14793if test "x$ac_cv_lib_db_db_env_create" = x""yes; then
d9898ee8 14794 LIBDB=-ldb; LIBS="-ldb $LIBS"
14795fi
14796
14797
14798fi
14799
14800fi
14801
14802
8d138742
CE
14803 { $as_echo "$as_me:$LINENO: checking for dbopen" >&5
14804$as_echo_n "checking for dbopen... " >&6; }
d9898ee8 14805if test "${ac_cv_func_dbopen+set}" = set; then
8d138742 14806 $as_echo_n "(cached) " >&6
d9898ee8 14807else
14808 cat >conftest.$ac_ext <<_ACEOF
14809/* confdefs.h. */
14810_ACEOF
14811cat confdefs.h >>conftest.$ac_ext
14812cat >>conftest.$ac_ext <<_ACEOF
14813/* end confdefs.h. */
14814/* Define dbopen to an innocuous variant, in case <limits.h> declares dbopen.
14815 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14816#define dbopen innocuous_dbopen
14817
14818/* System header to define __stub macros and hopefully few prototypes,
14819 which can conflict with char dbopen (); below.
14820 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14821 <limits.h> exists even on freestanding compilers. */
14822
14823#ifdef __STDC__
14824# include <limits.h>
14825#else
14826# include <assert.h>
14827#endif
14828
14829#undef dbopen
14830
dd184caf 14831/* Override any GCC internal prototype to avoid an error.
14832 Use char because int might match the return type of a GCC
14833 builtin and then its argument prototype would still apply. */
d9898ee8 14834#ifdef __cplusplus
14835extern "C"
d9898ee8 14836#endif
d9898ee8 14837char dbopen ();
14838/* The GNU C library defines this for functions which it implements
14839 to always fail with ENOSYS. Some functions are actually named
14840 something starting with __ and the normal name is an alias. */
dd184caf 14841#if defined __stub_dbopen || defined __stub___dbopen
d9898ee8 14842choke me
d9898ee8 14843#endif
14844
14845int
14846main ()
14847{
dd184caf 14848return dbopen ();
d9898ee8 14849 ;
14850 return 0;
14851}
14852_ACEOF
14853rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 14854if { (ac_try="$ac_link"
14855case "(($ac_try" in
14856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14857 *) ac_try_echo=$ac_try;;
14858esac
8d138742
CE
14859eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14860$as_echo "$ac_try_echo") >&5
dd184caf 14861 (eval "$ac_link") 2>conftest.er1
d9898ee8 14862 ac_status=$?
14863 grep -v '^ *+' conftest.er1 >conftest.err
14864 rm -f conftest.er1
14865 cat conftest.err >&5
8d138742 14866 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 14867 (exit $ac_status); } && {
14868 test -z "$ac_c_werror_flag" ||
14869 test ! -s conftest.err
8d138742
CE
14870 } && test -s conftest$ac_exeext && {
14871 test "$cross_compiling" = yes ||
14872 $as_test_x conftest$ac_exeext
14873 }; then
d9898ee8 14874 ac_cv_func_dbopen=yes
14875else
8d138742 14876 $as_echo "$as_me: failed program was:" >&5
d9898ee8 14877sed 's/^/| /' conftest.$ac_ext >&5
14878
dd184caf 14879 ac_cv_func_dbopen=no
d9898ee8 14880fi
dd184caf 14881
8d138742 14882rm -rf conftest.dSYM
dd184caf 14883rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 14884 conftest$ac_exeext conftest.$ac_ext
14885fi
8d138742
CE
14886{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dbopen" >&5
14887$as_echo "$ac_cv_func_dbopen" >&6; }
14888if test "x$ac_cv_func_dbopen" = x""yes; then
d9898ee8 14889 HAVE_BDB=1
14890fi
14891
8d138742
CE
14892 { $as_echo "$as_me:$LINENO: checking for db_open" >&5
14893$as_echo_n "checking for db_open... " >&6; }
d9898ee8 14894if test "${ac_cv_func_db_open+set}" = set; then
8d138742 14895 $as_echo_n "(cached) " >&6
d9898ee8 14896else
14897 cat >conftest.$ac_ext <<_ACEOF
14898/* confdefs.h. */
14899_ACEOF
14900cat confdefs.h >>conftest.$ac_ext
14901cat >>conftest.$ac_ext <<_ACEOF
14902/* end confdefs.h. */
14903/* Define db_open to an innocuous variant, in case <limits.h> declares db_open.
14904 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14905#define db_open innocuous_db_open
14906
14907/* System header to define __stub macros and hopefully few prototypes,
14908 which can conflict with char db_open (); below.
14909 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14910 <limits.h> exists even on freestanding compilers. */
14911
14912#ifdef __STDC__
14913# include <limits.h>
14914#else
14915# include <assert.h>
14916#endif
14917
14918#undef db_open
14919
dd184caf 14920/* Override any GCC internal prototype to avoid an error.
14921 Use char because int might match the return type of a GCC
14922 builtin and then its argument prototype would still apply. */
d9898ee8 14923#ifdef __cplusplus
14924extern "C"
d9898ee8 14925#endif
d9898ee8 14926char db_open ();
14927/* The GNU C library defines this for functions which it implements
14928 to always fail with ENOSYS. Some functions are actually named
14929 something starting with __ and the normal name is an alias. */
dd184caf 14930#if defined __stub_db_open || defined __stub___db_open
d9898ee8 14931choke me
d9898ee8 14932#endif
14933
14934int
14935main ()
14936{
dd184caf 14937return db_open ();
d9898ee8 14938 ;
14939 return 0;
14940}
14941_ACEOF
14942rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 14943if { (ac_try="$ac_link"
14944case "(($ac_try" in
14945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14946 *) ac_try_echo=$ac_try;;
14947esac
8d138742
CE
14948eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14949$as_echo "$ac_try_echo") >&5
dd184caf 14950 (eval "$ac_link") 2>conftest.er1
d9898ee8 14951 ac_status=$?
14952 grep -v '^ *+' conftest.er1 >conftest.err
14953 rm -f conftest.er1
14954 cat conftest.err >&5
8d138742 14955 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 14956 (exit $ac_status); } && {
14957 test -z "$ac_c_werror_flag" ||
14958 test ! -s conftest.err
8d138742
CE
14959 } && test -s conftest$ac_exeext && {
14960 test "$cross_compiling" = yes ||
14961 $as_test_x conftest$ac_exeext
14962 }; then
d9898ee8 14963 ac_cv_func_db_open=yes
14964else
8d138742 14965 $as_echo "$as_me: failed program was:" >&5
d9898ee8 14966sed 's/^/| /' conftest.$ac_ext >&5
14967
dd184caf 14968 ac_cv_func_db_open=no
d9898ee8 14969fi
dd184caf 14970
8d138742 14971rm -rf conftest.dSYM
dd184caf 14972rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 14973 conftest$ac_exeext conftest.$ac_ext
14974fi
8d138742
CE
14975{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_db_open" >&5
14976$as_echo "$ac_cv_func_db_open" >&6; }
14977if test "x$ac_cv_func_db_open" = x""yes; then
d9898ee8 14978 HAVE_BDB=1
14979fi
14980
8d138742
CE
14981 { $as_echo "$as_me:$LINENO: checking for db_env_create" >&5
14982$as_echo_n "checking for db_env_create... " >&6; }
d9898ee8 14983if test "${ac_cv_func_db_env_create+set}" = set; then
8d138742 14984 $as_echo_n "(cached) " >&6
d9898ee8 14985else
14986 cat >conftest.$ac_ext <<_ACEOF
14987/* confdefs.h. */
14988_ACEOF
14989cat confdefs.h >>conftest.$ac_ext
14990cat >>conftest.$ac_ext <<_ACEOF
14991/* end confdefs.h. */
14992/* Define db_env_create to an innocuous variant, in case <limits.h> declares db_env_create.
14993 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14994#define db_env_create innocuous_db_env_create
14995
14996/* System header to define __stub macros and hopefully few prototypes,
14997 which can conflict with char db_env_create (); below.
14998 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14999 <limits.h> exists even on freestanding compilers. */
15000
15001#ifdef __STDC__
15002# include <limits.h>
15003#else
15004# include <assert.h>
15005#endif
15006
15007#undef db_env_create
15008
dd184caf 15009/* Override any GCC internal prototype to avoid an error.
15010 Use char because int might match the return type of a GCC
15011 builtin and then its argument prototype would still apply. */
d9898ee8 15012#ifdef __cplusplus
15013extern "C"
d9898ee8 15014#endif
d9898ee8 15015char db_env_create ();
15016/* The GNU C library defines this for functions which it implements
15017 to always fail with ENOSYS. Some functions are actually named
15018 something starting with __ and the normal name is an alias. */
dd184caf 15019#if defined __stub_db_env_create || defined __stub___db_env_create
d9898ee8 15020choke me
d9898ee8 15021#endif
15022
15023int
15024main ()
15025{
dd184caf 15026return db_env_create ();
d9898ee8 15027 ;
15028 return 0;
15029}
15030_ACEOF
15031rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 15032if { (ac_try="$ac_link"
15033case "(($ac_try" in
15034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15035 *) ac_try_echo=$ac_try;;
15036esac
8d138742
CE
15037eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15038$as_echo "$ac_try_echo") >&5
dd184caf 15039 (eval "$ac_link") 2>conftest.er1
d9898ee8 15040 ac_status=$?
15041 grep -v '^ *+' conftest.er1 >conftest.err
15042 rm -f conftest.er1
15043 cat conftest.err >&5
8d138742 15044 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 15045 (exit $ac_status); } && {
15046 test -z "$ac_c_werror_flag" ||
15047 test ! -s conftest.err
8d138742
CE
15048 } && test -s conftest$ac_exeext && {
15049 test "$cross_compiling" = yes ||
15050 $as_test_x conftest$ac_exeext
15051 }; then
d9898ee8 15052 ac_cv_func_db_env_create=yes
15053else
8d138742 15054 $as_echo "$as_me: failed program was:" >&5
d9898ee8 15055sed 's/^/| /' conftest.$ac_ext >&5
15056
dd184caf 15057 ac_cv_func_db_env_create=no
d9898ee8 15058fi
dd184caf 15059
8d138742 15060rm -rf conftest.dSYM
dd184caf 15061rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 15062 conftest$ac_exeext conftest.$ac_ext
15063fi
8d138742
CE
15064{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_db_env_create" >&5
15065$as_echo "$ac_cv_func_db_env_create" >&6; }
15066if test "x$ac_cv_func_db_env_create" = x""yes; then
d9898ee8 15067 HAVE_BDB=1
15068fi
15069
15070fi
15071
15072LIBS="$saveLIBS"
15073
15074if test "$HAVE_GDBM$HAVE_BDB" = ""
15075then
8d138742
CE
15076 { { $as_echo "$as_me:$LINENO: error: Cannot find either the gdbm or the db library." >&5
15077$as_echo "$as_me: error: Cannot find either the gdbm or the db library." >&2;}
d9898ee8 15078 { (exit 1); exit 1; }; }
15079fi
15080
15081USE_GDBM=0
15082USE_DB=0
15083
15084if test "$HAVE_GDBM" = "y"
15085then
15086 LIBDB=""
15087 USE_GDBM=1
d9898ee8 15088 if test "$needs_withdb" = 1
15089 then
15090 ac_configure_args="$ac_configure_args --with-db=gdbm"
15091 fi
15092 dblibrary=gdbmobj/libgdbmobj.la
15093else
15094 LIBGDBM=""
15095 USE_DB=1
d9898ee8 15096 if test "$needs_withdb" = 1
15097 then
15098 ac_configure_args="$ac_configure_args --with-db=db"
15099 fi
15100 dblibrary=bdbobj/libbdbobj.la
15101fi
15102
15103
15104
15105
15106
dd184caf 15107# Check whether --with-authuserdb was given.
d9898ee8 15108if test "${with_authuserdb+set}" = set; then
dd184caf 15109 withval=$with_authuserdb; doauthuserdb="$withval"
d9898ee8 15110else
15111 doauthuserdb="no"
15112 if test -d ${srcdir}/userdb
15113 then
15114 doauthuserdb="yes"
15115 fi
dd184caf 15116fi
15117
d9898ee8 15118
15119if test "$doauthuserdb" = "no"
15120then
15121 AUTHUSERDB=""
15122else
15123 AUTHUSERDB="authuserdb"
15124 LIBAUTHUSERDB="libauthuserdb.la"
15125
15126fi
15127
15128
dd184caf 15129# Check whether --with-makedatprog was given.
d9898ee8 15130if test "${with_makedatprog+set}" = set; then
dd184caf 15131 withval=$with_makedatprog; :
d9898ee8 15132else
15133
15134 ac_configure_args="$ac_configure_args --with-makedatprog=$libexecdir/courier-authlib/makedatprog"
15135
dd184caf 15136fi
15137
d9898ee8 15138
15139cat >dbobj.config <<EOF
15140LIBDB=$LIBDB
15141LIBGDBM=$LIBGDBM
15142dblibrary=$dblibrary
15143EOF
15144
15145
15146
15147
15148
15149
15150
15151
15152
15153userdb="$pkgconfdir/userdb"
15154
dd184caf 15155# Check whether --with-userdb was given.
d9898ee8 15156if test "${with_userdb+set}" = set; then
dd184caf 15157 withval=$with_userdb; userdb="$withval"
d9898ee8 15158else
15159 ac_configure_args="$ac_configure_args '--with-userdb=$userdb'"
dd184caf 15160fi
15161
d9898ee8 15162
15163
15164cat >>confdefs.h <<_ACEOF
15165#define USERDB "$userdb"
15166_ACEOF
15167
15168
15169
15170
15171for ac_header in stdio.h
15172do
8d138742 15173as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
dd184caf 15174if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8d138742
CE
15175 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15176$as_echo_n "checking for $ac_header... " >&6; }
dd184caf 15177if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8d138742 15178 $as_echo_n "(cached) " >&6
d9898ee8 15179fi
8d138742
CE
15180ac_res=`eval 'as_val=${'$as_ac_Header'}
15181 $as_echo "$as_val"'`
15182 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15183$as_echo "$ac_res" >&6; }
d9898ee8 15184else
15185 # Is the header compilable?
8d138742
CE
15186{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15187$as_echo_n "checking $ac_header usability... " >&6; }
d9898ee8 15188cat >conftest.$ac_ext <<_ACEOF
15189/* confdefs.h. */
15190_ACEOF
15191cat confdefs.h >>conftest.$ac_ext
15192cat >>conftest.$ac_ext <<_ACEOF
15193/* end confdefs.h. */
15194$ac_includes_default
15195#include <$ac_header>
15196_ACEOF
15197rm -f conftest.$ac_objext
dd184caf 15198if { (ac_try="$ac_compile"
15199case "(($ac_try" in
15200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15201 *) ac_try_echo=$ac_try;;
15202esac
8d138742
CE
15203eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15204$as_echo "$ac_try_echo") >&5
dd184caf 15205 (eval "$ac_compile") 2>conftest.er1
d9898ee8 15206 ac_status=$?
15207 grep -v '^ *+' conftest.er1 >conftest.err
15208 rm -f conftest.er1
15209 cat conftest.err >&5
8d138742 15210 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 15211 (exit $ac_status); } && {
15212 test -z "$ac_c_werror_flag" ||
15213 test ! -s conftest.err
15214 } && test -s conftest.$ac_objext; then
d9898ee8 15215 ac_header_compiler=yes
15216else
8d138742 15217 $as_echo "$as_me: failed program was:" >&5
d9898ee8 15218sed 's/^/| /' conftest.$ac_ext >&5
15219
dd184caf 15220 ac_header_compiler=no
d9898ee8 15221fi
dd184caf 15222
15223rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8d138742
CE
15224{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15225$as_echo "$ac_header_compiler" >&6; }
d9898ee8 15226
15227# Is the header present?
8d138742
CE
15228{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15229$as_echo_n "checking $ac_header presence... " >&6; }
d9898ee8 15230cat >conftest.$ac_ext <<_ACEOF
15231/* confdefs.h. */
15232_ACEOF
15233cat confdefs.h >>conftest.$ac_ext
15234cat >>conftest.$ac_ext <<_ACEOF
15235/* end confdefs.h. */
15236#include <$ac_header>
15237_ACEOF
dd184caf 15238if { (ac_try="$ac_cpp conftest.$ac_ext"
15239case "(($ac_try" in
15240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15241 *) ac_try_echo=$ac_try;;
15242esac
8d138742
CE
15243eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15244$as_echo "$ac_try_echo") >&5
dd184caf 15245 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 15246 ac_status=$?
15247 grep -v '^ *+' conftest.er1 >conftest.err
15248 rm -f conftest.er1
15249 cat conftest.err >&5
8d138742 15250 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 15251 (exit $ac_status); } >/dev/null && {
15252 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15253 test ! -s conftest.err
15254 }; then
d9898ee8 15255 ac_header_preproc=yes
15256else
8d138742 15257 $as_echo "$as_me: failed program was:" >&5
d9898ee8 15258sed 's/^/| /' conftest.$ac_ext >&5
15259
15260 ac_header_preproc=no
15261fi
dd184caf 15262
d9898ee8 15263rm -f conftest.err conftest.$ac_ext
8d138742
CE
15264{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15265$as_echo "$ac_header_preproc" >&6; }
d9898ee8 15266
15267# So? What about this header?
15268case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15269 yes:no: )
8d138742
CE
15270 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15271$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15272 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15273$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
d9898ee8 15274 ac_header_preproc=yes
15275 ;;
15276 no:yes:* )
8d138742
CE
15277 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15278$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15279 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15280$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15281 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15282$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15283 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15284$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15285 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15286$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15287 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15288$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
dd184caf 15289 ( cat <<\_ASBOX
8d138742
CE
15290## -------------------------------------------------- ##
15291## Report this to courier-users@lists.sourceforge.net ##
15292## -------------------------------------------------- ##
d9898ee8 15293_ASBOX
dd184caf 15294 ) | sed "s/^/$as_me: WARNING: /" >&2
d9898ee8 15295 ;;
15296esac
8d138742
CE
15297{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15298$as_echo_n "checking for $ac_header... " >&6; }
dd184caf 15299if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8d138742 15300 $as_echo_n "(cached) " >&6
d9898ee8 15301else
15302 eval "$as_ac_Header=\$ac_header_preproc"
15303fi
8d138742
CE
15304ac_res=`eval 'as_val=${'$as_ac_Header'}
15305 $as_echo "$as_val"'`
15306 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15307$as_echo "$ac_res" >&6; }
d9898ee8 15308
15309fi
8d138742
CE
15310as_val=`eval 'as_val=${'$as_ac_Header'}
15311 $as_echo "$as_val"'`
15312 if test "x$as_val" = x""yes; then
d9898ee8 15313 cat >>confdefs.h <<_ACEOF
8d138742 15314#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
d9898ee8 15315_ACEOF
15316
15317fi
15318
15319done
15320
15321
15322
15323
15324
15325
dd184caf 15326# Check whether --with-authpam was given.
d9898ee8 15327if test "${with_authpam+set}" = set; then
dd184caf 15328 withval=$with_authpam; doauthpam="$withval"
15329fi
15330
d9898ee8 15331
15332
15333
15334for ac_header in security/pam_appl.h Pam/pam_appl.h
15335do
8d138742 15336as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
dd184caf 15337if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8d138742
CE
15338 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15339$as_echo_n "checking for $ac_header... " >&6; }
dd184caf 15340if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8d138742 15341 $as_echo_n "(cached) " >&6
d9898ee8 15342fi
8d138742
CE
15343ac_res=`eval 'as_val=${'$as_ac_Header'}
15344 $as_echo "$as_val"'`
15345 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15346$as_echo "$ac_res" >&6; }
d9898ee8 15347else
15348 # Is the header compilable?
8d138742
CE
15349{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15350$as_echo_n "checking $ac_header usability... " >&6; }
d9898ee8 15351cat >conftest.$ac_ext <<_ACEOF
15352/* confdefs.h. */
15353_ACEOF
15354cat confdefs.h >>conftest.$ac_ext
15355cat >>conftest.$ac_ext <<_ACEOF
15356/* end confdefs.h. */
15357$ac_includes_default
15358#include <$ac_header>
15359_ACEOF
15360rm -f conftest.$ac_objext
dd184caf 15361if { (ac_try="$ac_compile"
15362case "(($ac_try" in
15363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15364 *) ac_try_echo=$ac_try;;
15365esac
8d138742
CE
15366eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15367$as_echo "$ac_try_echo") >&5
dd184caf 15368 (eval "$ac_compile") 2>conftest.er1
d9898ee8 15369 ac_status=$?
15370 grep -v '^ *+' conftest.er1 >conftest.err
15371 rm -f conftest.er1
15372 cat conftest.err >&5
8d138742 15373 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 15374 (exit $ac_status); } && {
15375 test -z "$ac_c_werror_flag" ||
15376 test ! -s conftest.err
15377 } && test -s conftest.$ac_objext; then
d9898ee8 15378 ac_header_compiler=yes
15379else
8d138742 15380 $as_echo "$as_me: failed program was:" >&5
d9898ee8 15381sed 's/^/| /' conftest.$ac_ext >&5
15382
dd184caf 15383 ac_header_compiler=no
d9898ee8 15384fi
dd184caf 15385
15386rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8d138742
CE
15387{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15388$as_echo "$ac_header_compiler" >&6; }
d9898ee8 15389
15390# Is the header present?
8d138742
CE
15391{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15392$as_echo_n "checking $ac_header presence... " >&6; }
d9898ee8 15393cat >conftest.$ac_ext <<_ACEOF
15394/* confdefs.h. */
15395_ACEOF
15396cat confdefs.h >>conftest.$ac_ext
15397cat >>conftest.$ac_ext <<_ACEOF
15398/* end confdefs.h. */
15399#include <$ac_header>
15400_ACEOF
dd184caf 15401if { (ac_try="$ac_cpp conftest.$ac_ext"
15402case "(($ac_try" in
15403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15404 *) ac_try_echo=$ac_try;;
15405esac
8d138742
CE
15406eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15407$as_echo "$ac_try_echo") >&5
dd184caf 15408 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 15409 ac_status=$?
15410 grep -v '^ *+' conftest.er1 >conftest.err
15411 rm -f conftest.er1
15412 cat conftest.err >&5
8d138742 15413 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 15414 (exit $ac_status); } >/dev/null && {
15415 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15416 test ! -s conftest.err
15417 }; then
d9898ee8 15418 ac_header_preproc=yes
15419else
8d138742 15420 $as_echo "$as_me: failed program was:" >&5
d9898ee8 15421sed 's/^/| /' conftest.$ac_ext >&5
15422
15423 ac_header_preproc=no
15424fi
dd184caf 15425
d9898ee8 15426rm -f conftest.err conftest.$ac_ext
8d138742
CE
15427{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15428$as_echo "$ac_header_preproc" >&6; }
d9898ee8 15429
15430# So? What about this header?
15431case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15432 yes:no: )
8d138742
CE
15433 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15434$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15435 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15436$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
d9898ee8 15437 ac_header_preproc=yes
15438 ;;
15439 no:yes:* )
8d138742
CE
15440 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15441$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15442 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15443$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15444 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15445$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15446 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15447$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15448 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15449$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15450 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15451$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
dd184caf 15452 ( cat <<\_ASBOX
8d138742
CE
15453## -------------------------------------------------- ##
15454## Report this to courier-users@lists.sourceforge.net ##
15455## -------------------------------------------------- ##
d9898ee8 15456_ASBOX
dd184caf 15457 ) | sed "s/^/$as_me: WARNING: /" >&2
d9898ee8 15458 ;;
15459esac
8d138742
CE
15460{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15461$as_echo_n "checking for $ac_header... " >&6; }
dd184caf 15462if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8d138742 15463 $as_echo_n "(cached) " >&6
d9898ee8 15464else
15465 eval "$as_ac_Header=\$ac_header_preproc"
15466fi
8d138742
CE
15467ac_res=`eval 'as_val=${'$as_ac_Header'}
15468 $as_echo "$as_val"'`
15469 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15470$as_echo "$ac_res" >&6; }
d9898ee8 15471
15472fi
8d138742
CE
15473as_val=`eval 'as_val=${'$as_ac_Header'}
15474 $as_echo "$as_val"'`
15475 if test "x$as_val" = x""yes; then
d9898ee8 15476 cat >>confdefs.h <<_ACEOF
8d138742 15477#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
d9898ee8 15478_ACEOF
15479
15480fi
15481
15482done
15483
15484if test "$doauthpam" = "no"
15485then
15486 LIBDL=""
15487else
15488 saveLIBS="$LIBS"
15489 LIBDL=""
8d138742
CE
15490 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
15491$as_echo_n "checking for dlopen in -ldl... " >&6; }
d9898ee8 15492if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8d138742 15493 $as_echo_n "(cached) " >&6
d9898ee8 15494else
15495 ac_check_lib_save_LIBS=$LIBS
15496LIBS="-ldl $LIBS"
15497cat >conftest.$ac_ext <<_ACEOF
15498/* confdefs.h. */
15499_ACEOF
15500cat confdefs.h >>conftest.$ac_ext
15501cat >>conftest.$ac_ext <<_ACEOF
15502/* end confdefs.h. */
15503
dd184caf 15504/* Override any GCC internal prototype to avoid an error.
15505 Use char because int might match the return type of a GCC
15506 builtin and then its argument prototype would still apply. */
d9898ee8 15507#ifdef __cplusplus
15508extern "C"
15509#endif
d9898ee8 15510char dlopen ();
15511int
15512main ()
15513{
dd184caf 15514return dlopen ();
d9898ee8 15515 ;
15516 return 0;
15517}
15518_ACEOF
15519rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 15520if { (ac_try="$ac_link"
15521case "(($ac_try" in
15522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15523 *) ac_try_echo=$ac_try;;
15524esac
8d138742
CE
15525eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15526$as_echo "$ac_try_echo") >&5
dd184caf 15527 (eval "$ac_link") 2>conftest.er1
d9898ee8 15528 ac_status=$?
15529 grep -v '^ *+' conftest.er1 >conftest.err
15530 rm -f conftest.er1
15531 cat conftest.err >&5
8d138742 15532 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 15533 (exit $ac_status); } && {
15534 test -z "$ac_c_werror_flag" ||
15535 test ! -s conftest.err
8d138742
CE
15536 } && test -s conftest$ac_exeext && {
15537 test "$cross_compiling" = yes ||
15538 $as_test_x conftest$ac_exeext
15539 }; then
d9898ee8 15540 ac_cv_lib_dl_dlopen=yes
15541else
8d138742 15542 $as_echo "$as_me: failed program was:" >&5
d9898ee8 15543sed 's/^/| /' conftest.$ac_ext >&5
15544
dd184caf 15545 ac_cv_lib_dl_dlopen=no
d9898ee8 15546fi
dd184caf 15547
8d138742 15548rm -rf conftest.dSYM
dd184caf 15549rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 15550 conftest$ac_exeext conftest.$ac_ext
15551LIBS=$ac_check_lib_save_LIBS
15552fi
8d138742
CE
15553{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15554$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15555if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
d9898ee8 15556 LIBDL="-ldl"
15557fi
15558
15559 LIBS="$saveLIBS"
15560
8d138742
CE
15561 { $as_echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
15562$as_echo_n "checking for pam_start in -lpam... " >&6; }
d9898ee8 15563if test "${ac_cv_lib_pam_pam_start+set}" = set; then
8d138742 15564 $as_echo_n "(cached) " >&6
d9898ee8 15565else
15566 ac_check_lib_save_LIBS=$LIBS
15567LIBS="-lpam $LIBDL $LIBS"
15568cat >conftest.$ac_ext <<_ACEOF
15569/* confdefs.h. */
15570_ACEOF
15571cat confdefs.h >>conftest.$ac_ext
15572cat >>conftest.$ac_ext <<_ACEOF
15573/* end confdefs.h. */
15574
dd184caf 15575/* Override any GCC internal prototype to avoid an error.
15576 Use char because int might match the return type of a GCC
15577 builtin and then its argument prototype would still apply. */
d9898ee8 15578#ifdef __cplusplus
15579extern "C"
15580#endif
d9898ee8 15581char pam_start ();
15582int
15583main ()
15584{
dd184caf 15585return pam_start ();
d9898ee8 15586 ;
15587 return 0;
15588}
15589_ACEOF
15590rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 15591if { (ac_try="$ac_link"
15592case "(($ac_try" in
15593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15594 *) ac_try_echo=$ac_try;;
15595esac
8d138742
CE
15596eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15597$as_echo "$ac_try_echo") >&5
dd184caf 15598 (eval "$ac_link") 2>conftest.er1
d9898ee8 15599 ac_status=$?
15600 grep -v '^ *+' conftest.er1 >conftest.err
15601 rm -f conftest.er1
15602 cat conftest.err >&5
8d138742 15603 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 15604 (exit $ac_status); } && {
15605 test -z "$ac_c_werror_flag" ||
15606 test ! -s conftest.err
8d138742
CE
15607 } && test -s conftest$ac_exeext && {
15608 test "$cross_compiling" = yes ||
15609 $as_test_x conftest$ac_exeext
15610 }; then
d9898ee8 15611 ac_cv_lib_pam_pam_start=yes
15612else
8d138742 15613 $as_echo "$as_me: failed program was:" >&5
d9898ee8 15614sed 's/^/| /' conftest.$ac_ext >&5
15615
dd184caf 15616 ac_cv_lib_pam_pam_start=no
d9898ee8 15617fi
dd184caf 15618
8d138742 15619rm -rf conftest.dSYM
dd184caf 15620rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 15621 conftest$ac_exeext conftest.$ac_ext
15622LIBS=$ac_check_lib_save_LIBS
15623fi
8d138742
CE
15624{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
15625$as_echo "$ac_cv_lib_pam_pam_start" >&6; }
15626if test "x$ac_cv_lib_pam_pam_start" = x""yes; then
d9898ee8 15627 HAVE_PAM=1
15628 LIBS="-lpam $LIBDL $LIBS"
15629
15630for ac_func in pam_setcred
15631do
8d138742
CE
15632as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15633{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
15634$as_echo_n "checking for $ac_func... " >&6; }
dd184caf 15635if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8d138742 15636 $as_echo_n "(cached) " >&6
d9898ee8 15637else
15638 cat >conftest.$ac_ext <<_ACEOF
15639/* confdefs.h. */
15640_ACEOF
15641cat confdefs.h >>conftest.$ac_ext
15642cat >>conftest.$ac_ext <<_ACEOF
15643/* end confdefs.h. */
15644/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15645 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15646#define $ac_func innocuous_$ac_func
15647
15648/* System header to define __stub macros and hopefully few prototypes,
15649 which can conflict with char $ac_func (); below.
15650 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15651 <limits.h> exists even on freestanding compilers. */
15652
15653#ifdef __STDC__
15654# include <limits.h>
15655#else
15656# include <assert.h>
15657#endif
15658
15659#undef $ac_func
15660
dd184caf 15661/* Override any GCC internal prototype to avoid an error.
15662 Use char because int might match the return type of a GCC
15663 builtin and then its argument prototype would still apply. */
d9898ee8 15664#ifdef __cplusplus
15665extern "C"
d9898ee8 15666#endif
d9898ee8 15667char $ac_func ();
15668/* The GNU C library defines this for functions which it implements
15669 to always fail with ENOSYS. Some functions are actually named
15670 something starting with __ and the normal name is an alias. */
dd184caf 15671#if defined __stub_$ac_func || defined __stub___$ac_func
d9898ee8 15672choke me
d9898ee8 15673#endif
15674
15675int
15676main ()
15677{
dd184caf 15678return $ac_func ();
d9898ee8 15679 ;
15680 return 0;
15681}
15682_ACEOF
15683rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 15684if { (ac_try="$ac_link"
15685case "(($ac_try" in
15686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15687 *) ac_try_echo=$ac_try;;
15688esac
8d138742
CE
15689eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15690$as_echo "$ac_try_echo") >&5
dd184caf 15691 (eval "$ac_link") 2>conftest.er1
d9898ee8 15692 ac_status=$?
15693 grep -v '^ *+' conftest.er1 >conftest.err
15694 rm -f conftest.er1
15695 cat conftest.err >&5
8d138742 15696 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 15697 (exit $ac_status); } && {
15698 test -z "$ac_c_werror_flag" ||
15699 test ! -s conftest.err
8d138742
CE
15700 } && test -s conftest$ac_exeext && {
15701 test "$cross_compiling" = yes ||
15702 $as_test_x conftest$ac_exeext
15703 }; then
d9898ee8 15704 eval "$as_ac_var=yes"
15705else
8d138742 15706 $as_echo "$as_me: failed program was:" >&5
d9898ee8 15707sed 's/^/| /' conftest.$ac_ext >&5
15708
dd184caf 15709 eval "$as_ac_var=no"
d9898ee8 15710fi
dd184caf 15711
8d138742 15712rm -rf conftest.dSYM
dd184caf 15713rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 15714 conftest$ac_exeext conftest.$ac_ext
15715fi
8d138742
CE
15716ac_res=`eval 'as_val=${'$as_ac_var'}
15717 $as_echo "$as_val"'`
15718 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15719$as_echo "$ac_res" >&6; }
15720as_val=`eval 'as_val=${'$as_ac_var'}
15721 $as_echo "$as_val"'`
15722 if test "x$as_val" = x""yes; then
d9898ee8 15723 cat >>confdefs.h <<_ACEOF
8d138742 15724#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
d9898ee8 15725_ACEOF
15726
15727fi
15728done
15729
15730else
15731 HAVE_PAM=0
15732fi
15733
15734 LIBS="$saveLIBS"
15735fi
15736
15737
15738LIBAUTHPAM=""
15739if test "$HAVE_PAM" = 1
15740then
15741 LIBAUTHPAM=libauthpam.la
15742fi
15743
15744
dd184caf 15745# Check whether --with-authpam-libraries was given.
d9898ee8 15746if test "${with_authpam_libraries+set}" = set; then
dd184caf 15747 withval=$with_authpam_libraries; authpamcrypt="$withval"
15748fi
15749
d9898ee8 15750
15751AUTHPAMCRYPT="$authpamcrypt"
15752
15753
15754
15755
15756
15757
15758
dd184caf 15759# Check whether --with-authldap was given.
d9898ee8 15760if test "${with_authldap+set}" = set; then
dd184caf 15761 withval=$with_authldap; doauthldap="$withval"
d9898ee8 15762else
15763 doauthldap="yes"
dd184caf 15764fi
15765
d9898ee8 15766
15767
15768for ac_header in lber.h
15769do
8d138742 15770as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
dd184caf 15771if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8d138742
CE
15772 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15773$as_echo_n "checking for $ac_header... " >&6; }
dd184caf 15774if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8d138742 15775 $as_echo_n "(cached) " >&6
d9898ee8 15776fi
8d138742
CE
15777ac_res=`eval 'as_val=${'$as_ac_Header'}
15778 $as_echo "$as_val"'`
15779 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15780$as_echo "$ac_res" >&6; }
d9898ee8 15781else
15782 # Is the header compilable?
8d138742
CE
15783{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15784$as_echo_n "checking $ac_header usability... " >&6; }
d9898ee8 15785cat >conftest.$ac_ext <<_ACEOF
15786/* confdefs.h. */
15787_ACEOF
15788cat confdefs.h >>conftest.$ac_ext
15789cat >>conftest.$ac_ext <<_ACEOF
15790/* end confdefs.h. */
15791$ac_includes_default
15792#include <$ac_header>
15793_ACEOF
15794rm -f conftest.$ac_objext
dd184caf 15795if { (ac_try="$ac_compile"
15796case "(($ac_try" in
15797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15798 *) ac_try_echo=$ac_try;;
15799esac
8d138742
CE
15800eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15801$as_echo "$ac_try_echo") >&5
dd184caf 15802 (eval "$ac_compile") 2>conftest.er1
d9898ee8 15803 ac_status=$?
15804 grep -v '^ *+' conftest.er1 >conftest.err
15805 rm -f conftest.er1
15806 cat conftest.err >&5
8d138742 15807 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 15808 (exit $ac_status); } && {
15809 test -z "$ac_c_werror_flag" ||
15810 test ! -s conftest.err
15811 } && test -s conftest.$ac_objext; then
d9898ee8 15812 ac_header_compiler=yes
15813else
8d138742 15814 $as_echo "$as_me: failed program was:" >&5
d9898ee8 15815sed 's/^/| /' conftest.$ac_ext >&5
15816
dd184caf 15817 ac_header_compiler=no
d9898ee8 15818fi
dd184caf 15819
15820rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8d138742
CE
15821{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15822$as_echo "$ac_header_compiler" >&6; }
d9898ee8 15823
15824# Is the header present?
8d138742
CE
15825{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15826$as_echo_n "checking $ac_header presence... " >&6; }
d9898ee8 15827cat >conftest.$ac_ext <<_ACEOF
15828/* confdefs.h. */
15829_ACEOF
15830cat confdefs.h >>conftest.$ac_ext
15831cat >>conftest.$ac_ext <<_ACEOF
15832/* end confdefs.h. */
15833#include <$ac_header>
15834_ACEOF
dd184caf 15835if { (ac_try="$ac_cpp conftest.$ac_ext"
15836case "(($ac_try" in
15837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15838 *) ac_try_echo=$ac_try;;
15839esac
8d138742
CE
15840eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15841$as_echo "$ac_try_echo") >&5
dd184caf 15842 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 15843 ac_status=$?
15844 grep -v '^ *+' conftest.er1 >conftest.err
15845 rm -f conftest.er1
15846 cat conftest.err >&5
8d138742 15847 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 15848 (exit $ac_status); } >/dev/null && {
15849 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15850 test ! -s conftest.err
15851 }; then
d9898ee8 15852 ac_header_preproc=yes
15853else
8d138742 15854 $as_echo "$as_me: failed program was:" >&5
d9898ee8 15855sed 's/^/| /' conftest.$ac_ext >&5
15856
15857 ac_header_preproc=no
15858fi
dd184caf 15859
d9898ee8 15860rm -f conftest.err conftest.$ac_ext
8d138742
CE
15861{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15862$as_echo "$ac_header_preproc" >&6; }
d9898ee8 15863
15864# So? What about this header?
15865case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15866 yes:no: )
8d138742
CE
15867 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15868$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15869 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15870$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
d9898ee8 15871 ac_header_preproc=yes
15872 ;;
15873 no:yes:* )
8d138742
CE
15874 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15875$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15876 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15877$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15878 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15879$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15880 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15881$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15882 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15883$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15884 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15885$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
dd184caf 15886 ( cat <<\_ASBOX
8d138742
CE
15887## -------------------------------------------------- ##
15888## Report this to courier-users@lists.sourceforge.net ##
15889## -------------------------------------------------- ##
d9898ee8 15890_ASBOX
dd184caf 15891 ) | sed "s/^/$as_me: WARNING: /" >&2
d9898ee8 15892 ;;
15893esac
8d138742
CE
15894{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15895$as_echo_n "checking for $ac_header... " >&6; }
dd184caf 15896if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8d138742 15897 $as_echo_n "(cached) " >&6
d9898ee8 15898else
15899 eval "$as_ac_Header=\$ac_header_preproc"
15900fi
8d138742
CE
15901ac_res=`eval 'as_val=${'$as_ac_Header'}
15902 $as_echo "$as_val"'`
15903 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15904$as_echo "$ac_res" >&6; }
d9898ee8 15905
15906fi
8d138742
CE
15907as_val=`eval 'as_val=${'$as_ac_Header'}
15908 $as_echo "$as_val"'`
15909 if test "x$as_val" = x""yes; then
d9898ee8 15910 cat >>confdefs.h <<_ACEOF
8d138742 15911#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
d9898ee8 15912_ACEOF
15913
15914fi
15915
15916done
15917
15918
15919for ac_header in ldap.h
15920do
8d138742 15921as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
dd184caf 15922if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8d138742
CE
15923 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15924$as_echo_n "checking for $ac_header... " >&6; }
dd184caf 15925if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8d138742 15926 $as_echo_n "(cached) " >&6
d9898ee8 15927fi
8d138742
CE
15928ac_res=`eval 'as_val=${'$as_ac_Header'}
15929 $as_echo "$as_val"'`
15930 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15931$as_echo "$ac_res" >&6; }
d9898ee8 15932else
15933 # Is the header compilable?
8d138742
CE
15934{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15935$as_echo_n "checking $ac_header usability... " >&6; }
d9898ee8 15936cat >conftest.$ac_ext <<_ACEOF
15937/* confdefs.h. */
15938_ACEOF
15939cat confdefs.h >>conftest.$ac_ext
15940cat >>conftest.$ac_ext <<_ACEOF
15941/* end confdefs.h. */
15942$ac_includes_default
15943#include <$ac_header>
15944_ACEOF
15945rm -f conftest.$ac_objext
dd184caf 15946if { (ac_try="$ac_compile"
15947case "(($ac_try" in
15948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15949 *) ac_try_echo=$ac_try;;
15950esac
8d138742
CE
15951eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15952$as_echo "$ac_try_echo") >&5
dd184caf 15953 (eval "$ac_compile") 2>conftest.er1
d9898ee8 15954 ac_status=$?
15955 grep -v '^ *+' conftest.er1 >conftest.err
15956 rm -f conftest.er1
15957 cat conftest.err >&5
8d138742 15958 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 15959 (exit $ac_status); } && {
15960 test -z "$ac_c_werror_flag" ||
15961 test ! -s conftest.err
15962 } && test -s conftest.$ac_objext; then
d9898ee8 15963 ac_header_compiler=yes
15964else
8d138742 15965 $as_echo "$as_me: failed program was:" >&5
d9898ee8 15966sed 's/^/| /' conftest.$ac_ext >&5
15967
dd184caf 15968 ac_header_compiler=no
d9898ee8 15969fi
dd184caf 15970
15971rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8d138742
CE
15972{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15973$as_echo "$ac_header_compiler" >&6; }
d9898ee8 15974
15975# Is the header present?
8d138742
CE
15976{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15977$as_echo_n "checking $ac_header presence... " >&6; }
d9898ee8 15978cat >conftest.$ac_ext <<_ACEOF
15979/* confdefs.h. */
15980_ACEOF
15981cat confdefs.h >>conftest.$ac_ext
15982cat >>conftest.$ac_ext <<_ACEOF
15983/* end confdefs.h. */
15984#include <$ac_header>
15985_ACEOF
dd184caf 15986if { (ac_try="$ac_cpp conftest.$ac_ext"
15987case "(($ac_try" in
15988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15989 *) ac_try_echo=$ac_try;;
15990esac
8d138742
CE
15991eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15992$as_echo "$ac_try_echo") >&5
dd184caf 15993 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 15994 ac_status=$?
15995 grep -v '^ *+' conftest.er1 >conftest.err
15996 rm -f conftest.er1
15997 cat conftest.err >&5
8d138742 15998 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 15999 (exit $ac_status); } >/dev/null && {
16000 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16001 test ! -s conftest.err
16002 }; then
d9898ee8 16003 ac_header_preproc=yes
16004else
8d138742 16005 $as_echo "$as_me: failed program was:" >&5
d9898ee8 16006sed 's/^/| /' conftest.$ac_ext >&5
16007
16008 ac_header_preproc=no
16009fi
dd184caf 16010
d9898ee8 16011rm -f conftest.err conftest.$ac_ext
8d138742
CE
16012{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16013$as_echo "$ac_header_preproc" >&6; }
d9898ee8 16014
16015# So? What about this header?
16016case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16017 yes:no: )
8d138742
CE
16018 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16019$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16020 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16021$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
d9898ee8 16022 ac_header_preproc=yes
16023 ;;
16024 no:yes:* )
8d138742
CE
16025 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16026$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16027 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16028$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16029 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16030$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16031 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16032$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16033 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16034$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16035 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16036$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
dd184caf 16037 ( cat <<\_ASBOX
8d138742
CE
16038## -------------------------------------------------- ##
16039## Report this to courier-users@lists.sourceforge.net ##
16040## -------------------------------------------------- ##
d9898ee8 16041_ASBOX
dd184caf 16042 ) | sed "s/^/$as_me: WARNING: /" >&2
d9898ee8 16043 ;;
16044esac
8d138742
CE
16045{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16046$as_echo_n "checking for $ac_header... " >&6; }
dd184caf 16047if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8d138742 16048 $as_echo_n "(cached) " >&6
d9898ee8 16049else
16050 eval "$as_ac_Header=\$ac_header_preproc"
16051fi
8d138742
CE
16052ac_res=`eval 'as_val=${'$as_ac_Header'}
16053 $as_echo "$as_val"'`
16054 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16055$as_echo "$ac_res" >&6; }
d9898ee8 16056
16057fi
8d138742
CE
16058as_val=`eval 'as_val=${'$as_ac_Header'}
16059 $as_echo "$as_val"'`
16060 if test "x$as_val" = x""yes; then
d9898ee8 16061 cat >>confdefs.h <<_ACEOF
8d138742 16062#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
d9898ee8 16063_ACEOF
16064
16065fi
16066
16067done
16068
16069
16070for ac_header in netinet/in.h
16071do
8d138742 16072as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
dd184caf 16073if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8d138742
CE
16074 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16075$as_echo_n "checking for $ac_header... " >&6; }
dd184caf 16076if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8d138742 16077 $as_echo_n "(cached) " >&6
d9898ee8 16078fi
8d138742
CE
16079ac_res=`eval 'as_val=${'$as_ac_Header'}
16080 $as_echo "$as_val"'`
16081 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16082$as_echo "$ac_res" >&6; }
d9898ee8 16083else
16084 # Is the header compilable?
8d138742
CE
16085{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16086$as_echo_n "checking $ac_header usability... " >&6; }
d9898ee8 16087cat >conftest.$ac_ext <<_ACEOF
16088/* confdefs.h. */
16089_ACEOF
16090cat confdefs.h >>conftest.$ac_ext
16091cat >>conftest.$ac_ext <<_ACEOF
16092/* end confdefs.h. */
16093$ac_includes_default
16094#include <$ac_header>
16095_ACEOF
16096rm -f conftest.$ac_objext
dd184caf 16097if { (ac_try="$ac_compile"
16098case "(($ac_try" in
16099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16100 *) ac_try_echo=$ac_try;;
16101esac
8d138742
CE
16102eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16103$as_echo "$ac_try_echo") >&5
dd184caf 16104 (eval "$ac_compile") 2>conftest.er1
d9898ee8 16105 ac_status=$?
16106 grep -v '^ *+' conftest.er1 >conftest.err
16107 rm -f conftest.er1
16108 cat conftest.err >&5
8d138742 16109 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 16110 (exit $ac_status); } && {
16111 test -z "$ac_c_werror_flag" ||
16112 test ! -s conftest.err
16113 } && test -s conftest.$ac_objext; then
d9898ee8 16114 ac_header_compiler=yes
16115else
8d138742 16116 $as_echo "$as_me: failed program was:" >&5
d9898ee8 16117sed 's/^/| /' conftest.$ac_ext >&5
16118
dd184caf 16119 ac_header_compiler=no
d9898ee8 16120fi
dd184caf 16121
16122rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8d138742
CE
16123{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16124$as_echo "$ac_header_compiler" >&6; }
d9898ee8 16125
16126# Is the header present?
8d138742
CE
16127{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16128$as_echo_n "checking $ac_header presence... " >&6; }
d9898ee8 16129cat >conftest.$ac_ext <<_ACEOF
16130/* confdefs.h. */
16131_ACEOF
16132cat confdefs.h >>conftest.$ac_ext
16133cat >>conftest.$ac_ext <<_ACEOF
16134/* end confdefs.h. */
16135#include <$ac_header>
16136_ACEOF
dd184caf 16137if { (ac_try="$ac_cpp conftest.$ac_ext"
16138case "(($ac_try" in
16139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16140 *) ac_try_echo=$ac_try;;
16141esac
8d138742
CE
16142eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16143$as_echo "$ac_try_echo") >&5
dd184caf 16144 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 16145 ac_status=$?
16146 grep -v '^ *+' conftest.er1 >conftest.err
16147 rm -f conftest.er1
16148 cat conftest.err >&5
8d138742 16149 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 16150 (exit $ac_status); } >/dev/null && {
16151 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16152 test ! -s conftest.err
16153 }; then
d9898ee8 16154 ac_header_preproc=yes
16155else
8d138742 16156 $as_echo "$as_me: failed program was:" >&5
d9898ee8 16157sed 's/^/| /' conftest.$ac_ext >&5
16158
16159 ac_header_preproc=no
16160fi
dd184caf 16161
d9898ee8 16162rm -f conftest.err conftest.$ac_ext
8d138742
CE
16163{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16164$as_echo "$ac_header_preproc" >&6; }
d9898ee8 16165
16166# So? What about this header?
16167case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16168 yes:no: )
8d138742
CE
16169 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16170$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16171 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16172$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
d9898ee8 16173 ac_header_preproc=yes
16174 ;;
16175 no:yes:* )
8d138742
CE
16176 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16177$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16178 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16179$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16180 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16181$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16182 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16183$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16184 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16185$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16186 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16187$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
dd184caf 16188 ( cat <<\_ASBOX
8d138742
CE
16189## -------------------------------------------------- ##
16190## Report this to courier-users@lists.sourceforge.net ##
16191## -------------------------------------------------- ##
d9898ee8 16192_ASBOX
dd184caf 16193 ) | sed "s/^/$as_me: WARNING: /" >&2
d9898ee8 16194 ;;
16195esac
8d138742
CE
16196{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16197$as_echo_n "checking for $ac_header... " >&6; }
dd184caf 16198if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8d138742 16199 $as_echo_n "(cached) " >&6
d9898ee8 16200else
16201 eval "$as_ac_Header=\$ac_header_preproc"
16202fi
8d138742
CE
16203ac_res=`eval 'as_val=${'$as_ac_Header'}
16204 $as_echo "$as_val"'`
16205 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16206$as_echo "$ac_res" >&6; }
d9898ee8 16207
16208fi
8d138742
CE
16209as_val=`eval 'as_val=${'$as_ac_Header'}
16210 $as_echo "$as_val"'`
16211 if test "x$as_val" = x""yes; then
d9898ee8 16212 cat >>confdefs.h <<_ACEOF
8d138742 16213#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
d9898ee8 16214_ACEOF
16215
16216fi
16217
16218done
16219
16220
16221if test "$doauthldap" = "no"
16222then
16223 HAVE_LDAP=0
16224else
16225 saveLIBS="$LIBS"
16226 LIBS="$NETLIBS $LIBS"
16227 LDAPLIBS=""
16228
8d138742
CE
16229 { $as_echo "$as_me:$LINENO: checking whether -lresolv is needed for res_query" >&5
16230$as_echo_n "checking whether -lresolv is needed for res_query... " >&6; }
d9898ee8 16231 cat >conftest.$ac_ext <<_ACEOF
16232/* confdefs.h. */
16233_ACEOF
16234cat confdefs.h >>conftest.$ac_ext
16235cat >>conftest.$ac_ext <<_ACEOF
16236/* end confdefs.h. */
16237
16238#include <sys/types.h>
16239#if HAVE_NETINET_IN_H
16240#include <netinet/in.h>
16241#endif
16242#include <resolv.h>
16243
16244void (*func)()= (void (*)())res_query;
16245
16246int
16247main ()
16248{
16249 (*func)();
16250 ;
16251 return 0;
16252}
16253_ACEOF
16254rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 16255if { (ac_try="$ac_link"
16256case "(($ac_try" in
16257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16258 *) ac_try_echo=$ac_try;;
16259esac
8d138742
CE
16260eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16261$as_echo "$ac_try_echo") >&5
dd184caf 16262 (eval "$ac_link") 2>conftest.er1
d9898ee8 16263 ac_status=$?
16264 grep -v '^ *+' conftest.er1 >conftest.err
16265 rm -f conftest.er1
16266 cat conftest.err >&5
8d138742 16267 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 16268 (exit $ac_status); } && {
16269 test -z "$ac_c_werror_flag" ||
16270 test ! -s conftest.err
8d138742
CE
16271 } && test -s conftest$ac_exeext && {
16272 test "$cross_compiling" = yes ||
16273 $as_test_x conftest$ac_exeext
16274 }; then
16275 { $as_echo "$as_me:$LINENO: result: no" >&5
16276$as_echo "no" >&6; }
d9898ee8 16277else
8d138742 16278 $as_echo "$as_me: failed program was:" >&5
d9898ee8 16279sed 's/^/| /' conftest.$ac_ext >&5
16280
16281
16282 LIBS="-lresolv $LIBS"
16283
16284 cat >conftest.$ac_ext <<_ACEOF
16285/* confdefs.h. */
16286_ACEOF
16287cat confdefs.h >>conftest.$ac_ext
16288cat >>conftest.$ac_ext <<_ACEOF
16289/* end confdefs.h. */
16290
16291#include <sys/types.h>
16292#if HAVE_NETINET_IN_H
16293#include <netinet/in.h>
16294#endif
16295#include <resolv.h>
16296
16297void (*func)()= (void (*)())res_query;
16298
16299int
16300main ()
16301{
16302 (*func)();
16303 ;
16304 return 0;
16305}
16306_ACEOF
16307rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 16308if { (ac_try="$ac_link"
16309case "(($ac_try" in
16310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16311 *) ac_try_echo=$ac_try;;
16312esac
8d138742
CE
16313eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16314$as_echo "$ac_try_echo") >&5
dd184caf 16315 (eval "$ac_link") 2>conftest.er1
d9898ee8 16316 ac_status=$?
16317 grep -v '^ *+' conftest.er1 >conftest.err
16318 rm -f conftest.er1
16319 cat conftest.err >&5
8d138742 16320 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 16321 (exit $ac_status); } && {
16322 test -z "$ac_c_werror_flag" ||
16323 test ! -s conftest.err
8d138742
CE
16324 } && test -s conftest$ac_exeext && {
16325 test "$cross_compiling" = yes ||
16326 $as_test_x conftest$ac_exeext
16327 }; then
d9898ee8 16328
16329 LDAPLIBS="-lresolv $LDAPLIBS"
16330 HAVE_LDAP=1
8d138742
CE
16331 { $as_echo "$as_me:$LINENO: result: yes" >&5
16332$as_echo "yes" >&6; }
d9898ee8 16333
16334else
8d138742 16335 $as_echo "$as_me: failed program was:" >&5
d9898ee8 16336sed 's/^/| /' conftest.$ac_ext >&5
16337
8d138742
CE
16338 { { $as_echo "$as_me:$LINENO: error: Cannot find function res_query" >&5
16339$as_echo "$as_me: error: Cannot find function res_query" >&2;}
d9898ee8 16340 { (exit 1); exit 1; }; }
16341fi
dd184caf 16342
8d138742 16343rm -rf conftest.dSYM
dd184caf 16344rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 16345 conftest$ac_exeext conftest.$ac_ext
16346
16347fi
dd184caf 16348
8d138742 16349rm -rf conftest.dSYM
dd184caf 16350rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 16351 conftest$ac_exeext conftest.$ac_ext
16352
8d138742
CE
16353 { $as_echo "$as_me:$LINENO: checking for ber_scanf in -llber" >&5
16354$as_echo_n "checking for ber_scanf in -llber... " >&6; }
d9898ee8 16355if test "${ac_cv_lib_lber_ber_scanf+set}" = set; then
8d138742 16356 $as_echo_n "(cached) " >&6
d9898ee8 16357else
16358 ac_check_lib_save_LIBS=$LIBS
16359LIBS="-llber $LIBS"
16360cat >conftest.$ac_ext <<_ACEOF
16361/* confdefs.h. */
16362_ACEOF
16363cat confdefs.h >>conftest.$ac_ext
16364cat >>conftest.$ac_ext <<_ACEOF
16365/* end confdefs.h. */
16366
dd184caf 16367/* Override any GCC internal prototype to avoid an error.
16368 Use char because int might match the return type of a GCC
16369 builtin and then its argument prototype would still apply. */
d9898ee8 16370#ifdef __cplusplus
16371extern "C"
16372#endif
d9898ee8 16373char ber_scanf ();
16374int
16375main ()
16376{
dd184caf 16377return ber_scanf ();
d9898ee8 16378 ;
16379 return 0;
16380}
16381_ACEOF
16382rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 16383if { (ac_try="$ac_link"
16384case "(($ac_try" in
16385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16386 *) ac_try_echo=$ac_try;;
16387esac
8d138742
CE
16388eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16389$as_echo "$ac_try_echo") >&5
dd184caf 16390 (eval "$ac_link") 2>conftest.er1
d9898ee8 16391 ac_status=$?
16392 grep -v '^ *+' conftest.er1 >conftest.err
16393 rm -f conftest.er1
16394 cat conftest.err >&5
8d138742 16395 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 16396 (exit $ac_status); } && {
16397 test -z "$ac_c_werror_flag" ||
16398 test ! -s conftest.err
8d138742
CE
16399 } && test -s conftest$ac_exeext && {
16400 test "$cross_compiling" = yes ||
16401 $as_test_x conftest$ac_exeext
16402 }; then
d9898ee8 16403 ac_cv_lib_lber_ber_scanf=yes
16404else
8d138742 16405 $as_echo "$as_me: failed program was:" >&5
d9898ee8 16406sed 's/^/| /' conftest.$ac_ext >&5
16407
dd184caf 16408 ac_cv_lib_lber_ber_scanf=no
d9898ee8 16409fi
dd184caf 16410
8d138742 16411rm -rf conftest.dSYM
dd184caf 16412rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 16413 conftest$ac_exeext conftest.$ac_ext
16414LIBS=$ac_check_lib_save_LIBS
16415fi
8d138742
CE
16416{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_lber_ber_scanf" >&5
16417$as_echo "$ac_cv_lib_lber_ber_scanf" >&6; }
16418if test "x$ac_cv_lib_lber_ber_scanf" = x""yes; then
d9898ee8 16419 LDAPLIBS="-llber $LDAPLIBS" LIBS="-llber $LIBS"
16420fi
16421
8d138742
CE
16422 { $as_echo "$as_me:$LINENO: checking for ldap_open in -lldap" >&5
16423$as_echo_n "checking for ldap_open in -lldap... " >&6; }
d9898ee8 16424if test "${ac_cv_lib_ldap_ldap_open+set}" = set; then
8d138742 16425 $as_echo_n "(cached) " >&6
d9898ee8 16426else
16427 ac_check_lib_save_LIBS=$LIBS
16428LIBS="-lldap $LIBS"
16429cat >conftest.$ac_ext <<_ACEOF
16430/* confdefs.h. */
16431_ACEOF
16432cat confdefs.h >>conftest.$ac_ext
16433cat >>conftest.$ac_ext <<_ACEOF
16434/* end confdefs.h. */
16435
dd184caf 16436/* Override any GCC internal prototype to avoid an error.
16437 Use char because int might match the return type of a GCC
16438 builtin and then its argument prototype would still apply. */
d9898ee8 16439#ifdef __cplusplus
16440extern "C"
16441#endif
d9898ee8 16442char ldap_open ();
16443int
16444main ()
16445{
dd184caf 16446return ldap_open ();
d9898ee8 16447 ;
16448 return 0;
16449}
16450_ACEOF
16451rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 16452if { (ac_try="$ac_link"
16453case "(($ac_try" in
16454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16455 *) ac_try_echo=$ac_try;;
16456esac
8d138742
CE
16457eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16458$as_echo "$ac_try_echo") >&5
dd184caf 16459 (eval "$ac_link") 2>conftest.er1
d9898ee8 16460 ac_status=$?
16461 grep -v '^ *+' conftest.er1 >conftest.err
16462 rm -f conftest.er1
16463 cat conftest.err >&5
8d138742 16464 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 16465 (exit $ac_status); } && {
16466 test -z "$ac_c_werror_flag" ||
16467 test ! -s conftest.err
8d138742
CE
16468 } && test -s conftest$ac_exeext && {
16469 test "$cross_compiling" = yes ||
16470 $as_test_x conftest$ac_exeext
16471 }; then
d9898ee8 16472 ac_cv_lib_ldap_ldap_open=yes
16473else
8d138742 16474 $as_echo "$as_me: failed program was:" >&5
d9898ee8 16475sed 's/^/| /' conftest.$ac_ext >&5
16476
dd184caf 16477 ac_cv_lib_ldap_ldap_open=no
d9898ee8 16478fi
dd184caf 16479
8d138742 16480rm -rf conftest.dSYM
dd184caf 16481rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 16482 conftest$ac_exeext conftest.$ac_ext
16483LIBS=$ac_check_lib_save_LIBS
16484fi
8d138742
CE
16485{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_open" >&5
16486$as_echo "$ac_cv_lib_ldap_ldap_open" >&6; }
16487if test "x$ac_cv_lib_ldap_ldap_open" = x""yes; then
d9898ee8 16488 LDAPLIBS="-lldap $LDAPLIBS" ; LIBS="-lldap $LIBS"
16489fi
16490
8d138742
CE
16491 { $as_echo "$as_me:$LINENO: checking for ldap_search_st" >&5
16492$as_echo_n "checking for ldap_search_st... " >&6; }
d9898ee8 16493if test "${ac_cv_func_ldap_search_st+set}" = set; then
8d138742 16494 $as_echo_n "(cached) " >&6
d9898ee8 16495else
16496 cat >conftest.$ac_ext <<_ACEOF
16497/* confdefs.h. */
16498_ACEOF
16499cat confdefs.h >>conftest.$ac_ext
16500cat >>conftest.$ac_ext <<_ACEOF
16501/* end confdefs.h. */
16502/* Define ldap_search_st to an innocuous variant, in case <limits.h> declares ldap_search_st.
16503 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16504#define ldap_search_st innocuous_ldap_search_st
16505
16506/* System header to define __stub macros and hopefully few prototypes,
16507 which can conflict with char ldap_search_st (); below.
16508 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16509 <limits.h> exists even on freestanding compilers. */
16510
16511#ifdef __STDC__
16512# include <limits.h>
16513#else
16514# include <assert.h>
16515#endif
16516
16517#undef ldap_search_st
16518
dd184caf 16519/* Override any GCC internal prototype to avoid an error.
16520 Use char because int might match the return type of a GCC
16521 builtin and then its argument prototype would still apply. */
d9898ee8 16522#ifdef __cplusplus
16523extern "C"
d9898ee8 16524#endif
d9898ee8 16525char ldap_search_st ();
16526/* The GNU C library defines this for functions which it implements
16527 to always fail with ENOSYS. Some functions are actually named
16528 something starting with __ and the normal name is an alias. */
dd184caf 16529#if defined __stub_ldap_search_st || defined __stub___ldap_search_st
d9898ee8 16530choke me
d9898ee8 16531#endif
16532
16533int
16534main ()
16535{
dd184caf 16536return ldap_search_st ();
d9898ee8 16537 ;
16538 return 0;
16539}
16540_ACEOF
16541rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 16542if { (ac_try="$ac_link"
16543case "(($ac_try" in
16544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16545 *) ac_try_echo=$ac_try;;
16546esac
8d138742
CE
16547eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16548$as_echo "$ac_try_echo") >&5
dd184caf 16549 (eval "$ac_link") 2>conftest.er1
d9898ee8 16550 ac_status=$?
16551 grep -v '^ *+' conftest.er1 >conftest.err
16552 rm -f conftest.er1
16553 cat conftest.err >&5
8d138742 16554 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 16555 (exit $ac_status); } && {
16556 test -z "$ac_c_werror_flag" ||
16557 test ! -s conftest.err
8d138742
CE
16558 } && test -s conftest$ac_exeext && {
16559 test "$cross_compiling" = yes ||
16560 $as_test_x conftest$ac_exeext
16561 }; then
d9898ee8 16562 ac_cv_func_ldap_search_st=yes
16563else
8d138742 16564 $as_echo "$as_me: failed program was:" >&5
d9898ee8 16565sed 's/^/| /' conftest.$ac_ext >&5
16566
dd184caf 16567 ac_cv_func_ldap_search_st=no
d9898ee8 16568fi
dd184caf 16569
8d138742 16570rm -rf conftest.dSYM
dd184caf 16571rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 16572 conftest$ac_exeext conftest.$ac_ext
16573fi
8d138742
CE
16574{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_ldap_search_st" >&5
16575$as_echo "$ac_cv_func_ldap_search_st" >&6; }
16576if test "x$ac_cv_func_ldap_search_st" = x""yes; then
d9898ee8 16577 HAVE_LDAP=1
16578else
16579 HAVE_LDAP=0
16580fi
16581
8d138742
CE
16582 { $as_echo "$as_me:$LINENO: checking for ldap_start_tls_s" >&5
16583$as_echo_n "checking for ldap_start_tls_s... " >&6; }
d9898ee8 16584if test "${ac_cv_func_ldap_start_tls_s+set}" = set; then
8d138742 16585 $as_echo_n "(cached) " >&6
d9898ee8 16586else
16587 cat >conftest.$ac_ext <<_ACEOF
16588/* confdefs.h. */
16589_ACEOF
16590cat confdefs.h >>conftest.$ac_ext
16591cat >>conftest.$ac_ext <<_ACEOF
16592/* end confdefs.h. */
16593/* Define ldap_start_tls_s to an innocuous variant, in case <limits.h> declares ldap_start_tls_s.
16594 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16595#define ldap_start_tls_s innocuous_ldap_start_tls_s
16596
16597/* System header to define __stub macros and hopefully few prototypes,
16598 which can conflict with char ldap_start_tls_s (); below.
16599 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16600 <limits.h> exists even on freestanding compilers. */
16601
16602#ifdef __STDC__
16603# include <limits.h>
16604#else
16605# include <assert.h>
16606#endif
16607
16608#undef ldap_start_tls_s
16609
dd184caf 16610/* Override any GCC internal prototype to avoid an error.
16611 Use char because int might match the return type of a GCC
16612 builtin and then its argument prototype would still apply. */
d9898ee8 16613#ifdef __cplusplus
16614extern "C"
d9898ee8 16615#endif
d9898ee8 16616char ldap_start_tls_s ();
16617/* The GNU C library defines this for functions which it implements
16618 to always fail with ENOSYS. Some functions are actually named
16619 something starting with __ and the normal name is an alias. */
dd184caf 16620#if defined __stub_ldap_start_tls_s || defined __stub___ldap_start_tls_s
d9898ee8 16621choke me
d9898ee8 16622#endif
16623
16624int
16625main ()
16626{
dd184caf 16627return ldap_start_tls_s ();
d9898ee8 16628 ;
16629 return 0;
16630}
16631_ACEOF
16632rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 16633if { (ac_try="$ac_link"
16634case "(($ac_try" in
16635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16636 *) ac_try_echo=$ac_try;;
16637esac
8d138742
CE
16638eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16639$as_echo "$ac_try_echo") >&5
dd184caf 16640 (eval "$ac_link") 2>conftest.er1
d9898ee8 16641 ac_status=$?
16642 grep -v '^ *+' conftest.er1 >conftest.err
16643 rm -f conftest.er1
16644 cat conftest.err >&5
8d138742 16645 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 16646 (exit $ac_status); } && {
16647 test -z "$ac_c_werror_flag" ||
16648 test ! -s conftest.err
8d138742
CE
16649 } && test -s conftest$ac_exeext && {
16650 test "$cross_compiling" = yes ||
16651 $as_test_x conftest$ac_exeext
16652 }; then
d9898ee8 16653 ac_cv_func_ldap_start_tls_s=yes
16654else
8d138742 16655 $as_echo "$as_me: failed program was:" >&5
d9898ee8 16656sed 's/^/| /' conftest.$ac_ext >&5
16657
dd184caf 16658 ac_cv_func_ldap_start_tls_s=no
d9898ee8 16659fi
dd184caf 16660
8d138742 16661rm -rf conftest.dSYM
dd184caf 16662rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 16663 conftest$ac_exeext conftest.$ac_ext
16664fi
8d138742
CE
16665{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_ldap_start_tls_s" >&5
16666$as_echo "$ac_cv_func_ldap_start_tls_s" >&6; }
16667if test "x$ac_cv_func_ldap_start_tls_s" = x""yes; then
d9898ee8 16668 HAVE_LDAP_TLS=1
16669else
16670 HAVE_LDAP_TLS=0
16671fi
16672
8d138742
CE
16673 { $as_echo "$as_me:$LINENO: checking for ldap_result2error" >&5
16674$as_echo_n "checking for ldap_result2error... " >&6; }
d9898ee8 16675if test "${ac_cv_func_ldap_result2error+set}" = set; then
8d138742 16676 $as_echo_n "(cached) " >&6
d9898ee8 16677else
16678 cat >conftest.$ac_ext <<_ACEOF
16679/* confdefs.h. */
16680_ACEOF
16681cat confdefs.h >>conftest.$ac_ext
16682cat >>conftest.$ac_ext <<_ACEOF
16683/* end confdefs.h. */
16684/* Define ldap_result2error to an innocuous variant, in case <limits.h> declares ldap_result2error.
16685 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16686#define ldap_result2error innocuous_ldap_result2error
16687
16688/* System header to define __stub macros and hopefully few prototypes,
16689 which can conflict with char ldap_result2error (); below.
16690 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16691 <limits.h> exists even on freestanding compilers. */
16692
16693#ifdef __STDC__
16694# include <limits.h>
16695#else
16696# include <assert.h>
16697#endif
16698
16699#undef ldap_result2error
16700
dd184caf 16701/* Override any GCC internal prototype to avoid an error.
16702 Use char because int might match the return type of a GCC
16703 builtin and then its argument prototype would still apply. */
d9898ee8 16704#ifdef __cplusplus
16705extern "C"
d9898ee8 16706#endif
d9898ee8 16707char ldap_result2error ();
16708/* The GNU C library defines this for functions which it implements
16709 to always fail with ENOSYS. Some functions are actually named
16710 something starting with __ and the normal name is an alias. */
dd184caf 16711#if defined __stub_ldap_result2error || defined __stub___ldap_result2error
d9898ee8 16712choke me
d9898ee8 16713#endif
16714
16715int
16716main ()
16717{
dd184caf 16718return ldap_result2error ();
d9898ee8 16719 ;
16720 return 0;
16721}
16722_ACEOF
16723rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 16724if { (ac_try="$ac_link"
16725case "(($ac_try" in
16726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16727 *) ac_try_echo=$ac_try;;
16728esac
8d138742
CE
16729eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16730$as_echo "$ac_try_echo") >&5
dd184caf 16731 (eval "$ac_link") 2>conftest.er1
d9898ee8 16732 ac_status=$?
16733 grep -v '^ *+' conftest.er1 >conftest.err
16734 rm -f conftest.er1
16735 cat conftest.err >&5
8d138742 16736 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 16737 (exit $ac_status); } && {
16738 test -z "$ac_c_werror_flag" ||
16739 test ! -s conftest.err
8d138742
CE
16740 } && test -s conftest$ac_exeext && {
16741 test "$cross_compiling" = yes ||
16742 $as_test_x conftest$ac_exeext
16743 }; then
d9898ee8 16744 ac_cv_func_ldap_result2error=yes
16745else
8d138742 16746 $as_echo "$as_me: failed program was:" >&5
d9898ee8 16747sed 's/^/| /' conftest.$ac_ext >&5
16748
dd184caf 16749 ac_cv_func_ldap_result2error=no
d9898ee8 16750fi
dd184caf 16751
8d138742 16752rm -rf conftest.dSYM
dd184caf 16753rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 16754 conftest$ac_exeext conftest.$ac_ext
16755fi
8d138742
CE
16756{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_ldap_result2error" >&5
16757$as_echo "$ac_cv_func_ldap_result2error" >&6; }
16758if test "x$ac_cv_func_ldap_result2error" = x""yes; then
d9898ee8 16759 HAVE_LDAP_RESULT2ERROR=1
16760else
16761 HAVE_LDAP_RESULT2ERROR=0
16762fi
16763
8d138742
CE
16764 { $as_echo "$as_me:$LINENO: checking for ldap_parse_result" >&5
16765$as_echo_n "checking for ldap_parse_result... " >&6; }
d9898ee8 16766if test "${ac_cv_func_ldap_parse_result+set}" = set; then
8d138742 16767 $as_echo_n "(cached) " >&6
d9898ee8 16768else
16769 cat >conftest.$ac_ext <<_ACEOF
16770/* confdefs.h. */
16771_ACEOF
16772cat confdefs.h >>conftest.$ac_ext
16773cat >>conftest.$ac_ext <<_ACEOF
16774/* end confdefs.h. */
16775/* Define ldap_parse_result to an innocuous variant, in case <limits.h> declares ldap_parse_result.
16776 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16777#define ldap_parse_result innocuous_ldap_parse_result
16778
16779/* System header to define __stub macros and hopefully few prototypes,
16780 which can conflict with char ldap_parse_result (); below.
16781 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16782 <limits.h> exists even on freestanding compilers. */
16783
16784#ifdef __STDC__
16785# include <limits.h>
16786#else
16787# include <assert.h>
16788#endif
16789
16790#undef ldap_parse_result
16791
dd184caf 16792/* Override any GCC internal prototype to avoid an error.
16793 Use char because int might match the return type of a GCC
16794 builtin and then its argument prototype would still apply. */
d9898ee8 16795#ifdef __cplusplus
16796extern "C"
d9898ee8 16797#endif
d9898ee8 16798char ldap_parse_result ();
16799/* The GNU C library defines this for functions which it implements
16800 to always fail with ENOSYS. Some functions are actually named
16801 something starting with __ and the normal name is an alias. */
dd184caf 16802#if defined __stub_ldap_parse_result || defined __stub___ldap_parse_result
d9898ee8 16803choke me
d9898ee8 16804#endif
16805
16806int
16807main ()
16808{
dd184caf 16809return ldap_parse_result ();
d9898ee8 16810 ;
16811 return 0;
16812}
16813_ACEOF
16814rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 16815if { (ac_try="$ac_link"
16816case "(($ac_try" in
16817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16818 *) ac_try_echo=$ac_try;;
16819esac
8d138742
CE
16820eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16821$as_echo "$ac_try_echo") >&5
dd184caf 16822 (eval "$ac_link") 2>conftest.er1
d9898ee8 16823 ac_status=$?
16824 grep -v '^ *+' conftest.er1 >conftest.err
16825 rm -f conftest.er1
16826 cat conftest.err >&5
8d138742 16827 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 16828 (exit $ac_status); } && {
16829 test -z "$ac_c_werror_flag" ||
16830 test ! -s conftest.err
8d138742
CE
16831 } && test -s conftest$ac_exeext && {
16832 test "$cross_compiling" = yes ||
16833 $as_test_x conftest$ac_exeext
16834 }; then
d9898ee8 16835 ac_cv_func_ldap_parse_result=yes
16836else
8d138742 16837 $as_echo "$as_me: failed program was:" >&5
d9898ee8 16838sed 's/^/| /' conftest.$ac_ext >&5
16839
dd184caf 16840 ac_cv_func_ldap_parse_result=no
d9898ee8 16841fi
dd184caf 16842
8d138742 16843rm -rf conftest.dSYM
dd184caf 16844rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 16845 conftest$ac_exeext conftest.$ac_ext
16846fi
8d138742
CE
16847{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_ldap_parse_result" >&5
16848$as_echo "$ac_cv_func_ldap_parse_result" >&6; }
16849if test "x$ac_cv_func_ldap_parse_result" = x""yes; then
d9898ee8 16850 HAVE_LDAP_PARSE_RESULT=1
16851else
16852 HAVE_LDAP_PARSE_RESULT=0
16853fi
16854
16855 LIBS="$saveLIBS"
16856fi
16857
16858
dd184caf 16859# Check whether --with-authldaprc was given.
d9898ee8 16860if test "${with_authldaprc+set}" = set; then
dd184caf 16861 withval=$with_authldaprc; authldaprc="$withval"
d9898ee8 16862else
16863 authldaprc="$pkgconfdir/authldaprc"
dd184caf 16864fi
16865
d9898ee8 16866
16867
16868LIBAUTHLDAP=""
16869if test "$HAVE_LDAP" = 1
16870then
16871 LIBAUTHLDAP="libauthldap.la"
16872else
16873 authldaprc=""
16874fi
16875
16876
16877
dd184caf 16878 if test "$HAVE_LDAP" = 1; then
d9898ee8 16879 HAVE_LDAP_TRUE=
16880 HAVE_LDAP_FALSE='#'
16881else
16882 HAVE_LDAP_TRUE='#'
16883 HAVE_LDAP_FALSE=
16884fi
16885
16886
16887cat >>confdefs.h <<_ACEOF
16888#define HAVE_LDAP_TLS $HAVE_LDAP_TLS
16889_ACEOF
16890
16891
16892cat >>confdefs.h <<_ACEOF
16893#define HAVE_LDAP_RESULT2ERROR $HAVE_LDAP_RESULT2ERROR
16894_ACEOF
16895
16896
16897cat >>confdefs.h <<_ACEOF
16898#define HAVE_LDAP_PARSE_RESULT $HAVE_LDAP_PARSE_RESULT
16899_ACEOF
16900
16901
16902
16903
16904
dd184caf 16905# Check whether --with-authpwd was given.
d9898ee8 16906if test "${with_authpwd+set}" = set; then
dd184caf 16907 withval=$with_authpwd; doauthpwd="$withval"
d9898ee8 16908else
16909 doauthpwd="yes"
16910 test "$HAVE_PAM" = 1 && doauthpwd="no"
16911 test "$HAVE_LDAP" = 1 && doauthpwd="no"
16912
dd184caf 16913fi
16914
d9898ee8 16915
16916HAVE_PWD=1
16917if test "$doauthpwd" = "no"
16918then
16919 HAVE_PWD=0
16920fi
16921
16922for ac_func in endpwent
16923do
8d138742
CE
16924as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16925{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16926$as_echo_n "checking for $ac_func... " >&6; }
dd184caf 16927if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8d138742 16928 $as_echo_n "(cached) " >&6
d9898ee8 16929else
16930 cat >conftest.$ac_ext <<_ACEOF
16931/* confdefs.h. */
16932_ACEOF
16933cat confdefs.h >>conftest.$ac_ext
16934cat >>conftest.$ac_ext <<_ACEOF
16935/* end confdefs.h. */
16936/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16937 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16938#define $ac_func innocuous_$ac_func
16939
16940/* System header to define __stub macros and hopefully few prototypes,
16941 which can conflict with char $ac_func (); below.
16942 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16943 <limits.h> exists even on freestanding compilers. */
16944
16945#ifdef __STDC__
16946# include <limits.h>
16947#else
16948# include <assert.h>
16949#endif
16950
16951#undef $ac_func
16952
dd184caf 16953/* Override any GCC internal prototype to avoid an error.
16954 Use char because int might match the return type of a GCC
16955 builtin and then its argument prototype would still apply. */
d9898ee8 16956#ifdef __cplusplus
16957extern "C"
d9898ee8 16958#endif
d9898ee8 16959char $ac_func ();
16960/* The GNU C library defines this for functions which it implements
16961 to always fail with ENOSYS. Some functions are actually named
16962 something starting with __ and the normal name is an alias. */
dd184caf 16963#if defined __stub_$ac_func || defined __stub___$ac_func
d9898ee8 16964choke me
d9898ee8 16965#endif
16966
16967int
16968main ()
16969{
dd184caf 16970return $ac_func ();
d9898ee8 16971 ;
16972 return 0;
16973}
16974_ACEOF
16975rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 16976if { (ac_try="$ac_link"
16977case "(($ac_try" in
16978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16979 *) ac_try_echo=$ac_try;;
16980esac
8d138742
CE
16981eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16982$as_echo "$ac_try_echo") >&5
dd184caf 16983 (eval "$ac_link") 2>conftest.er1
d9898ee8 16984 ac_status=$?
16985 grep -v '^ *+' conftest.er1 >conftest.err
16986 rm -f conftest.er1
16987 cat conftest.err >&5
8d138742 16988 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 16989 (exit $ac_status); } && {
16990 test -z "$ac_c_werror_flag" ||
16991 test ! -s conftest.err
8d138742
CE
16992 } && test -s conftest$ac_exeext && {
16993 test "$cross_compiling" = yes ||
16994 $as_test_x conftest$ac_exeext
16995 }; then
d9898ee8 16996 eval "$as_ac_var=yes"
16997else
8d138742 16998 $as_echo "$as_me: failed program was:" >&5
d9898ee8 16999sed 's/^/| /' conftest.$ac_ext >&5
17000
dd184caf 17001 eval "$as_ac_var=no"
d9898ee8 17002fi
dd184caf 17003
8d138742 17004rm -rf conftest.dSYM
dd184caf 17005rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 17006 conftest$ac_exeext conftest.$ac_ext
17007fi
8d138742
CE
17008ac_res=`eval 'as_val=${'$as_ac_var'}
17009 $as_echo "$as_val"'`
17010 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17011$as_echo "$ac_res" >&6; }
17012as_val=`eval 'as_val=${'$as_ac_var'}
17013 $as_echo "$as_val"'`
17014 if test "x$as_val" = x""yes; then
d9898ee8 17015 cat >>confdefs.h <<_ACEOF
8d138742 17016#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
d9898ee8 17017_ACEOF
17018
17019fi
17020done
17021
17022
17023
17024
17025
17026
dd184caf 17027# Check whether --with-authshadow was given.
d9898ee8 17028if test "${with_authshadow+set}" = set; then
dd184caf 17029 withval=$with_authshadow; doauthshadow="$withval"
d9898ee8 17030else
17031 doauthshadow="yes"
17032 test "$HAVE_PAM" = 1 && doauthshadow="no"
17033 test "$HAVE_LDAP" = 1 && doauthshadow="no"
dd184caf 17034fi
17035
d9898ee8 17036
17037
17038for ac_header in shadow.h
17039do
8d138742 17040as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
dd184caf 17041if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8d138742
CE
17042 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17043$as_echo_n "checking for $ac_header... " >&6; }
dd184caf 17044if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8d138742 17045 $as_echo_n "(cached) " >&6
d9898ee8 17046fi
8d138742
CE
17047ac_res=`eval 'as_val=${'$as_ac_Header'}
17048 $as_echo "$as_val"'`
17049 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17050$as_echo "$ac_res" >&6; }
d9898ee8 17051else
17052 # Is the header compilable?
8d138742
CE
17053{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17054$as_echo_n "checking $ac_header usability... " >&6; }
d9898ee8 17055cat >conftest.$ac_ext <<_ACEOF
17056/* confdefs.h. */
17057_ACEOF
17058cat confdefs.h >>conftest.$ac_ext
17059cat >>conftest.$ac_ext <<_ACEOF
17060/* end confdefs.h. */
17061$ac_includes_default
17062#include <$ac_header>
17063_ACEOF
17064rm -f conftest.$ac_objext
dd184caf 17065if { (ac_try="$ac_compile"
17066case "(($ac_try" in
17067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17068 *) ac_try_echo=$ac_try;;
17069esac
8d138742
CE
17070eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17071$as_echo "$ac_try_echo") >&5
dd184caf 17072 (eval "$ac_compile") 2>conftest.er1
d9898ee8 17073 ac_status=$?
17074 grep -v '^ *+' conftest.er1 >conftest.err
17075 rm -f conftest.er1
17076 cat conftest.err >&5
8d138742 17077 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 17078 (exit $ac_status); } && {
17079 test -z "$ac_c_werror_flag" ||
17080 test ! -s conftest.err
17081 } && test -s conftest.$ac_objext; then
d9898ee8 17082 ac_header_compiler=yes
17083else
8d138742 17084 $as_echo "$as_me: failed program was:" >&5
d9898ee8 17085sed 's/^/| /' conftest.$ac_ext >&5
17086
dd184caf 17087 ac_header_compiler=no
d9898ee8 17088fi
dd184caf 17089
17090rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8d138742
CE
17091{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17092$as_echo "$ac_header_compiler" >&6; }
d9898ee8 17093
17094# Is the header present?
8d138742
CE
17095{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17096$as_echo_n "checking $ac_header presence... " >&6; }
d9898ee8 17097cat >conftest.$ac_ext <<_ACEOF
17098/* confdefs.h. */
17099_ACEOF
17100cat confdefs.h >>conftest.$ac_ext
17101cat >>conftest.$ac_ext <<_ACEOF
17102/* end confdefs.h. */
17103#include <$ac_header>
17104_ACEOF
dd184caf 17105if { (ac_try="$ac_cpp conftest.$ac_ext"
17106case "(($ac_try" in
17107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17108 *) ac_try_echo=$ac_try;;
17109esac
8d138742
CE
17110eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17111$as_echo "$ac_try_echo") >&5
dd184caf 17112 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 17113 ac_status=$?
17114 grep -v '^ *+' conftest.er1 >conftest.err
17115 rm -f conftest.er1
17116 cat conftest.err >&5
8d138742 17117 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 17118 (exit $ac_status); } >/dev/null && {
17119 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17120 test ! -s conftest.err
17121 }; then
d9898ee8 17122 ac_header_preproc=yes
17123else
8d138742 17124 $as_echo "$as_me: failed program was:" >&5
d9898ee8 17125sed 's/^/| /' conftest.$ac_ext >&5
17126
17127 ac_header_preproc=no
17128fi
dd184caf 17129
d9898ee8 17130rm -f conftest.err conftest.$ac_ext
8d138742
CE
17131{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17132$as_echo "$ac_header_preproc" >&6; }
d9898ee8 17133
17134# So? What about this header?
17135case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17136 yes:no: )
8d138742
CE
17137 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17138$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17139 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17140$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
d9898ee8 17141 ac_header_preproc=yes
17142 ;;
17143 no:yes:* )
8d138742
CE
17144 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17145$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17146 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17147$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17148 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17149$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17150 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17151$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17152 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17153$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17154 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17155$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
dd184caf 17156 ( cat <<\_ASBOX
8d138742
CE
17157## -------------------------------------------------- ##
17158## Report this to courier-users@lists.sourceforge.net ##
17159## -------------------------------------------------- ##
d9898ee8 17160_ASBOX
dd184caf 17161 ) | sed "s/^/$as_me: WARNING: /" >&2
d9898ee8 17162 ;;
17163esac
8d138742
CE
17164{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17165$as_echo_n "checking for $ac_header... " >&6; }
dd184caf 17166if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8d138742 17167 $as_echo_n "(cached) " >&6
d9898ee8 17168else
17169 eval "$as_ac_Header=\$ac_header_preproc"
17170fi
8d138742
CE
17171ac_res=`eval 'as_val=${'$as_ac_Header'}
17172 $as_echo "$as_val"'`
17173 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17174$as_echo "$ac_res" >&6; }
d9898ee8 17175
17176fi
8d138742
CE
17177as_val=`eval 'as_val=${'$as_ac_Header'}
17178 $as_echo "$as_val"'`
17179 if test "x$as_val" = x""yes; then
d9898ee8 17180 cat >>confdefs.h <<_ACEOF
8d138742 17181#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
d9898ee8 17182_ACEOF
17183
17184fi
17185
17186done
17187
17188saveLIBS="$LIBS"
17189SHADOWLIBS=""
8d138742
CE
17190{ $as_echo "$as_me:$LINENO: checking for getspent in -lshadow" >&5
17191$as_echo_n "checking for getspent in -lshadow... " >&6; }
d9898ee8 17192if test "${ac_cv_lib_shadow_getspent+set}" = set; then
8d138742 17193 $as_echo_n "(cached) " >&6
d9898ee8 17194else
17195 ac_check_lib_save_LIBS=$LIBS
17196LIBS="-lshadow $LIBS"
17197cat >conftest.$ac_ext <<_ACEOF
17198/* confdefs.h. */
17199_ACEOF
17200cat confdefs.h >>conftest.$ac_ext
17201cat >>conftest.$ac_ext <<_ACEOF
17202/* end confdefs.h. */
17203
dd184caf 17204/* Override any GCC internal prototype to avoid an error.
17205 Use char because int might match the return type of a GCC
17206 builtin and then its argument prototype would still apply. */
d9898ee8 17207#ifdef __cplusplus
17208extern "C"
17209#endif
d9898ee8 17210char getspent ();
17211int
17212main ()
17213{
dd184caf 17214return getspent ();
d9898ee8 17215 ;
17216 return 0;
17217}
17218_ACEOF
17219rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 17220if { (ac_try="$ac_link"
17221case "(($ac_try" in
17222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17223 *) ac_try_echo=$ac_try;;
17224esac
8d138742
CE
17225eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17226$as_echo "$ac_try_echo") >&5
dd184caf 17227 (eval "$ac_link") 2>conftest.er1
d9898ee8 17228 ac_status=$?
17229 grep -v '^ *+' conftest.er1 >conftest.err
17230 rm -f conftest.er1
17231 cat conftest.err >&5
8d138742 17232 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 17233 (exit $ac_status); } && {
17234 test -z "$ac_c_werror_flag" ||
17235 test ! -s conftest.err
8d138742
CE
17236 } && test -s conftest$ac_exeext && {
17237 test "$cross_compiling" = yes ||
17238 $as_test_x conftest$ac_exeext
17239 }; then
d9898ee8 17240 ac_cv_lib_shadow_getspent=yes
17241else
8d138742 17242 $as_echo "$as_me: failed program was:" >&5
d9898ee8 17243sed 's/^/| /' conftest.$ac_ext >&5
17244
dd184caf 17245 ac_cv_lib_shadow_getspent=no
d9898ee8 17246fi
dd184caf 17247
8d138742 17248rm -rf conftest.dSYM
dd184caf 17249rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 17250 conftest$ac_exeext conftest.$ac_ext
17251LIBS=$ac_check_lib_save_LIBS
17252fi
8d138742
CE
17253{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_shadow_getspent" >&5
17254$as_echo "$ac_cv_lib_shadow_getspent" >&6; }
17255if test "x$ac_cv_lib_shadow_getspent" = x""yes; then
d9898ee8 17256 SHADOWLIBS="-lshadow" ; LIBS="-lshadow $LIBS"
17257fi
17258
17259
17260
17261for ac_func in endspent getspent
17262do
8d138742
CE
17263as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17264{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17265$as_echo_n "checking for $ac_func... " >&6; }
dd184caf 17266if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8d138742 17267 $as_echo_n "(cached) " >&6
d9898ee8 17268else
17269 cat >conftest.$ac_ext <<_ACEOF
17270/* confdefs.h. */
17271_ACEOF
17272cat confdefs.h >>conftest.$ac_ext
17273cat >>conftest.$ac_ext <<_ACEOF
17274/* end confdefs.h. */
17275/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17276 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17277#define $ac_func innocuous_$ac_func
17278
17279/* System header to define __stub macros and hopefully few prototypes,
17280 which can conflict with char $ac_func (); below.
17281 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17282 <limits.h> exists even on freestanding compilers. */
17283
17284#ifdef __STDC__
17285# include <limits.h>
17286#else
17287# include <assert.h>
17288#endif
17289
17290#undef $ac_func
17291
dd184caf 17292/* Override any GCC internal prototype to avoid an error.
17293 Use char because int might match the return type of a GCC
17294 builtin and then its argument prototype would still apply. */
d9898ee8 17295#ifdef __cplusplus
17296extern "C"
d9898ee8 17297#endif
d9898ee8 17298char $ac_func ();
17299/* The GNU C library defines this for functions which it implements
17300 to always fail with ENOSYS. Some functions are actually named
17301 something starting with __ and the normal name is an alias. */
dd184caf 17302#if defined __stub_$ac_func || defined __stub___$ac_func
d9898ee8 17303choke me
d9898ee8 17304#endif
17305
17306int
17307main ()
17308{
dd184caf 17309return $ac_func ();
d9898ee8 17310 ;
17311 return 0;
17312}
17313_ACEOF
17314rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 17315if { (ac_try="$ac_link"
17316case "(($ac_try" in
17317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17318 *) ac_try_echo=$ac_try;;
17319esac
8d138742
CE
17320eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17321$as_echo "$ac_try_echo") >&5
dd184caf 17322 (eval "$ac_link") 2>conftest.er1
d9898ee8 17323 ac_status=$?
17324 grep -v '^ *+' conftest.er1 >conftest.err
17325 rm -f conftest.er1
17326 cat conftest.err >&5
8d138742 17327 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 17328 (exit $ac_status); } && {
17329 test -z "$ac_c_werror_flag" ||
17330 test ! -s conftest.err
8d138742
CE
17331 } && test -s conftest$ac_exeext && {
17332 test "$cross_compiling" = yes ||
17333 $as_test_x conftest$ac_exeext
17334 }; then
d9898ee8 17335 eval "$as_ac_var=yes"
17336else
8d138742 17337 $as_echo "$as_me: failed program was:" >&5
d9898ee8 17338sed 's/^/| /' conftest.$ac_ext >&5
17339
dd184caf 17340 eval "$as_ac_var=no"
d9898ee8 17341fi
dd184caf 17342
8d138742 17343rm -rf conftest.dSYM
dd184caf 17344rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 17345 conftest$ac_exeext conftest.$ac_ext
17346fi
8d138742
CE
17347ac_res=`eval 'as_val=${'$as_ac_var'}
17348 $as_echo "$as_val"'`
17349 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17350$as_echo "$ac_res" >&6; }
17351as_val=`eval 'as_val=${'$as_ac_var'}
17352 $as_echo "$as_val"'`
17353 if test "x$as_val" = x""yes; then
d9898ee8 17354 cat >>confdefs.h <<_ACEOF
8d138742 17355#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
d9898ee8 17356_ACEOF
17357
17358fi
17359done
17360
17361LIBS="$saveLIBS"
17362
17363if test "$doauthshadow" = "no"
17364then
17365 HAVE_SHADOW=0
17366else
17367
17368 saveLIBS="$LIBS"
17369
8d138742
CE
17370{ $as_echo "$as_me:$LINENO: checking for getspent in -lshadow" >&5
17371$as_echo_n "checking for getspent in -lshadow... " >&6; }
d9898ee8 17372if test "${ac_cv_lib_shadow_getspent+set}" = set; then
8d138742 17373 $as_echo_n "(cached) " >&6
d9898ee8 17374else
17375 ac_check_lib_save_LIBS=$LIBS
17376LIBS="-lshadow $LIBS"
17377cat >conftest.$ac_ext <<_ACEOF
17378/* confdefs.h. */
17379_ACEOF
17380cat confdefs.h >>conftest.$ac_ext
17381cat >>conftest.$ac_ext <<_ACEOF
17382/* end confdefs.h. */
17383
dd184caf 17384/* Override any GCC internal prototype to avoid an error.
17385 Use char because int might match the return type of a GCC
17386 builtin and then its argument prototype would still apply. */
d9898ee8 17387#ifdef __cplusplus
17388extern "C"
17389#endif
d9898ee8 17390char getspent ();
17391int
17392main ()
17393{
dd184caf 17394return getspent ();
d9898ee8 17395 ;
17396 return 0;
17397}
17398_ACEOF
17399rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 17400if { (ac_try="$ac_link"
17401case "(($ac_try" in
17402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17403 *) ac_try_echo=$ac_try;;
17404esac
8d138742
CE
17405eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17406$as_echo "$ac_try_echo") >&5
dd184caf 17407 (eval "$ac_link") 2>conftest.er1
d9898ee8 17408 ac_status=$?
17409 grep -v '^ *+' conftest.er1 >conftest.err
17410 rm -f conftest.er1
17411 cat conftest.err >&5
8d138742 17412 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 17413 (exit $ac_status); } && {
17414 test -z "$ac_c_werror_flag" ||
17415 test ! -s conftest.err
8d138742
CE
17416 } && test -s conftest$ac_exeext && {
17417 test "$cross_compiling" = yes ||
17418 $as_test_x conftest$ac_exeext
17419 }; then
d9898ee8 17420 ac_cv_lib_shadow_getspent=yes
17421else
8d138742 17422 $as_echo "$as_me: failed program was:" >&5
d9898ee8 17423sed 's/^/| /' conftest.$ac_ext >&5
17424
dd184caf 17425 ac_cv_lib_shadow_getspent=no
d9898ee8 17426fi
dd184caf 17427
8d138742 17428rm -rf conftest.dSYM
dd184caf 17429rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 17430 conftest$ac_exeext conftest.$ac_ext
17431LIBS=$ac_check_lib_save_LIBS
17432fi
8d138742
CE
17433{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_shadow_getspent" >&5
17434$as_echo "$ac_cv_lib_shadow_getspent" >&6; }
17435if test "x$ac_cv_lib_shadow_getspent" = x""yes; then
d9898ee8 17436 cat >>confdefs.h <<_ACEOF
17437#define HAVE_LIBSHADOW 1
17438_ACEOF
17439
17440 LIBS="-lshadow $LIBS"
17441
17442fi
17443
8d138742
CE
17444 { $as_echo "$as_me:$LINENO: checking for getspent" >&5
17445$as_echo_n "checking for getspent... " >&6; }
d9898ee8 17446if test "${ac_cv_func_getspent+set}" = set; then
8d138742 17447 $as_echo_n "(cached) " >&6
d9898ee8 17448else
17449 cat >conftest.$ac_ext <<_ACEOF
17450/* confdefs.h. */
17451_ACEOF
17452cat confdefs.h >>conftest.$ac_ext
17453cat >>conftest.$ac_ext <<_ACEOF
17454/* end confdefs.h. */
17455/* Define getspent to an innocuous variant, in case <limits.h> declares getspent.
17456 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17457#define getspent innocuous_getspent
17458
17459/* System header to define __stub macros and hopefully few prototypes,
17460 which can conflict with char getspent (); below.
17461 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17462 <limits.h> exists even on freestanding compilers. */
17463
17464#ifdef __STDC__
17465# include <limits.h>
17466#else
17467# include <assert.h>
17468#endif
17469
17470#undef getspent
17471
dd184caf 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. */
d9898ee8 17475#ifdef __cplusplus
17476extern "C"
d9898ee8 17477#endif
d9898ee8 17478char getspent ();
17479/* The GNU C library defines this for functions which it implements
17480 to always fail with ENOSYS. Some functions are actually named
17481 something starting with __ and the normal name is an alias. */
dd184caf 17482#if defined __stub_getspent || defined __stub___getspent
d9898ee8 17483choke me
d9898ee8 17484#endif
17485
17486int
17487main ()
17488{
dd184caf 17489return getspent ();
d9898ee8 17490 ;
17491 return 0;
17492}
17493_ACEOF
17494rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 17495if { (ac_try="$ac_link"
17496case "(($ac_try" in
17497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17498 *) ac_try_echo=$ac_try;;
17499esac
8d138742
CE
17500eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17501$as_echo "$ac_try_echo") >&5
dd184caf 17502 (eval "$ac_link") 2>conftest.er1
d9898ee8 17503 ac_status=$?
17504 grep -v '^ *+' conftest.er1 >conftest.err
17505 rm -f conftest.er1
17506 cat conftest.err >&5
8d138742 17507 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 17508 (exit $ac_status); } && {
17509 test -z "$ac_c_werror_flag" ||
17510 test ! -s conftest.err
8d138742
CE
17511 } && test -s conftest$ac_exeext && {
17512 test "$cross_compiling" = yes ||
17513 $as_test_x conftest$ac_exeext
17514 }; then
d9898ee8 17515 ac_cv_func_getspent=yes
17516else
8d138742 17517 $as_echo "$as_me: failed program was:" >&5
d9898ee8 17518sed 's/^/| /' conftest.$ac_ext >&5
17519
dd184caf 17520 ac_cv_func_getspent=no
d9898ee8 17521fi
dd184caf 17522
8d138742 17523rm -rf conftest.dSYM
dd184caf 17524rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 17525 conftest$ac_exeext conftest.$ac_ext
17526fi
8d138742
CE
17527{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_getspent" >&5
17528$as_echo "$ac_cv_func_getspent" >&6; }
17529if test "x$ac_cv_func_getspent" = x""yes; then
d9898ee8 17530 HAVE_SHADOW=1
17531else
17532 HAVE_SHADOW=0
17533fi
17534
17535 LIBS="$saveLIBS"
17536fi
17537
17538LIBAUTHSHADOW=""
17539if test "$HAVE_SHADOW" = 1
17540then
17541 LIBAUTHSHADOW="libauthshadow.la"
17542fi
17543
17544
17545
17546LIBAUTHPWD=""
17547if test "$HAVE_PWD" = 1
17548then
17549 LIBAUTHPWD="libauthpwd.la"
17550fi
17551
17552
17553
17554
17555
17556
dd184caf 17557# Check whether --with-authpgsqlrc was given.
d9898ee8 17558if test "${with_authpgsqlrc+set}" = set; then
dd184caf 17559 withval=$with_authpgsqlrc; authpgsqlrc="$withval"
d9898ee8 17560else
17561 authpgsqlrc="$pkgconfdir/authpgsqlrc"
dd184caf 17562fi
d9898ee8 17563
17564
17565
dd184caf 17566
17567# Check whether --with-authpgsql was given.
d9898ee8 17568if test "${with_authpgsql+set}" = set; then
dd184caf 17569 withval=$with_authpgsql; doauthpgsql="$withval"
17570fi
17571
d9898ee8 17572
17573for ac_prog in pg_config
17574do
17575 # Extract the first word of "$ac_prog", so it can be a program name with args.
17576set dummy $ac_prog; ac_word=$2
8d138742
CE
17577{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
17578$as_echo_n "checking for $ac_word... " >&6; }
d9898ee8 17579if test "${ac_cv_path_PG_CONFIG+set}" = set; then
8d138742 17580 $as_echo_n "(cached) " >&6
d9898ee8 17581else
17582 case $PG_CONFIG in
17583 [\\/]* | ?:[\\/]*)
17584 ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
17585 ;;
17586 *)
17587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17588for as_dir in $LPATH
17589do
17590 IFS=$as_save_IFS
17591 test -z "$as_dir" && as_dir=.
17592 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 17593 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 17594 ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8d138742 17595 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 17596 break 2
17597 fi
17598done
17599done
dd184caf 17600IFS=$as_save_IFS
d9898ee8 17601
17602 ;;
17603esac
17604fi
17605PG_CONFIG=$ac_cv_path_PG_CONFIG
d9898ee8 17606if test -n "$PG_CONFIG"; then
8d138742
CE
17607 { $as_echo "$as_me:$LINENO: result: $PG_CONFIG" >&5
17608$as_echo "$PG_CONFIG" >&6; }
d9898ee8 17609else
8d138742
CE
17610 { $as_echo "$as_me:$LINENO: result: no" >&5
17611$as_echo "no" >&6; }
d9898ee8 17612fi
17613
dd184caf 17614
d9898ee8 17615 test -n "$PG_CONFIG" && break
17616done
17617test -n "$PG_CONFIG" || PG_CONFIG="pg_config"
17618
17619
17620PGSQL_LIBS="-lpq"
17621
dd184caf 17622# Check whether --with-pgsql-libs was given.
d9898ee8 17623if test "${with_pgsql_libs+set}" = set; then
dd184caf 17624 withval=$with_pgsql_libs; PGSQL_LIBS="-L$withval $PGSQL_LIBS"
d9898ee8 17625else
17626 if test -x $PG_CONFIG
17627 then
17628 PGSQL_LIBS="-L`$PG_CONFIG --libdir` $PGSQL_LIBS"
17629 fi
17630
dd184caf 17631fi
17632
d9898ee8 17633
dd184caf 17634# Check whether --with-pgsql-includes was given.
d9898ee8 17635if test "${with_pgsql_includes+set}" = set; then
dd184caf 17636 withval=$with_pgsql_includes; PGSQL_CFLAGS="-I$withval"
d9898ee8 17637else
17638 if test -x $PG_CONFIG
17639 then
17640 PGSQL_CFLAGS="-I`$PG_CONFIG --includedir`"
17641 fi
17642
dd184caf 17643fi
17644
d9898ee8 17645
17646if test "$doauthpgsql" = ""
17647then
17648 LIBS="$PGSQL_LIBS $LIBS"
8d138742
CE
17649 { $as_echo "$as_me:$LINENO: checking for PQsetdbLogin" >&5
17650$as_echo_n "checking for PQsetdbLogin... " >&6; }
d9898ee8 17651if test "${ac_cv_func_PQsetdbLogin+set}" = set; then
8d138742 17652 $as_echo_n "(cached) " >&6
d9898ee8 17653else
17654 cat >conftest.$ac_ext <<_ACEOF
17655/* confdefs.h. */
17656_ACEOF
17657cat confdefs.h >>conftest.$ac_ext
17658cat >>conftest.$ac_ext <<_ACEOF
17659/* end confdefs.h. */
17660/* Define PQsetdbLogin to an innocuous variant, in case <limits.h> declares PQsetdbLogin.
17661 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17662#define PQsetdbLogin innocuous_PQsetdbLogin
17663
17664/* System header to define __stub macros and hopefully few prototypes,
17665 which can conflict with char PQsetdbLogin (); below.
17666 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17667 <limits.h> exists even on freestanding compilers. */
17668
17669#ifdef __STDC__
17670# include <limits.h>
17671#else
17672# include <assert.h>
17673#endif
17674
17675#undef PQsetdbLogin
17676
dd184caf 17677/* Override any GCC internal prototype to avoid an error.
17678 Use char because int might match the return type of a GCC
17679 builtin and then its argument prototype would still apply. */
d9898ee8 17680#ifdef __cplusplus
17681extern "C"
d9898ee8 17682#endif
d9898ee8 17683char PQsetdbLogin ();
17684/* The GNU C library defines this for functions which it implements
17685 to always fail with ENOSYS. Some functions are actually named
17686 something starting with __ and the normal name is an alias. */
dd184caf 17687#if defined __stub_PQsetdbLogin || defined __stub___PQsetdbLogin
d9898ee8 17688choke me
d9898ee8 17689#endif
17690
17691int
17692main ()
17693{
dd184caf 17694return PQsetdbLogin ();
d9898ee8 17695 ;
17696 return 0;
17697}
17698_ACEOF
17699rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 17700if { (ac_try="$ac_link"
17701case "(($ac_try" in
17702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17703 *) ac_try_echo=$ac_try;;
17704esac
8d138742
CE
17705eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17706$as_echo "$ac_try_echo") >&5
dd184caf 17707 (eval "$ac_link") 2>conftest.er1
d9898ee8 17708 ac_status=$?
17709 grep -v '^ *+' conftest.er1 >conftest.err
17710 rm -f conftest.er1
17711 cat conftest.err >&5
8d138742 17712 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 17713 (exit $ac_status); } && {
17714 test -z "$ac_c_werror_flag" ||
17715 test ! -s conftest.err
8d138742
CE
17716 } && test -s conftest$ac_exeext && {
17717 test "$cross_compiling" = yes ||
17718 $as_test_x conftest$ac_exeext
17719 }; then
d9898ee8 17720 ac_cv_func_PQsetdbLogin=yes
17721else
8d138742 17722 $as_echo "$as_me: failed program was:" >&5
d9898ee8 17723sed 's/^/| /' conftest.$ac_ext >&5
17724
dd184caf 17725 ac_cv_func_PQsetdbLogin=no
d9898ee8 17726fi
dd184caf 17727
8d138742 17728rm -rf conftest.dSYM
dd184caf 17729rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 17730 conftest$ac_exeext conftest.$ac_ext
17731fi
8d138742
CE
17732{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_PQsetdbLogin" >&5
17733$as_echo "$ac_cv_func_PQsetdbLogin" >&6; }
17734if test "x$ac_cv_func_PQsetdbLogin" = x""yes; then
d9898ee8 17735 doauthpgsql="yes"
17736
17737fi
17738
17739 LIBS="$saveLIBS"
17740fi
17741
17742if test "$doauthpgsql" != "yes"
17743then
17744 LIBAUTHPGSQL=""
17745 HAVE_AUTHPGSQL=0
17746else
17747 saveLIBS="$LIBS"
17748 LIBS="$PGSQL_LIBS $LIBS"
8d138742
CE
17749 { $as_echo "$as_me:$LINENO: checking for PQsetdbLogin" >&5
17750$as_echo_n "checking for PQsetdbLogin... " >&6; }
d9898ee8 17751if test "${ac_cv_func_PQsetdbLogin+set}" = set; then
8d138742 17752 $as_echo_n "(cached) " >&6
d9898ee8 17753else
17754 cat >conftest.$ac_ext <<_ACEOF
17755/* confdefs.h. */
17756_ACEOF
17757cat confdefs.h >>conftest.$ac_ext
17758cat >>conftest.$ac_ext <<_ACEOF
17759/* end confdefs.h. */
17760/* Define PQsetdbLogin to an innocuous variant, in case <limits.h> declares PQsetdbLogin.
17761 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17762#define PQsetdbLogin innocuous_PQsetdbLogin
17763
17764/* System header to define __stub macros and hopefully few prototypes,
17765 which can conflict with char PQsetdbLogin (); below.
17766 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17767 <limits.h> exists even on freestanding compilers. */
17768
17769#ifdef __STDC__
17770# include <limits.h>
17771#else
17772# include <assert.h>
17773#endif
17774
17775#undef PQsetdbLogin
17776
dd184caf 17777/* Override any GCC internal prototype to avoid an error.
17778 Use char because int might match the return type of a GCC
17779 builtin and then its argument prototype would still apply. */
d9898ee8 17780#ifdef __cplusplus
17781extern "C"
d9898ee8 17782#endif
d9898ee8 17783char PQsetdbLogin ();
17784/* The GNU C library defines this for functions which it implements
17785 to always fail with ENOSYS. Some functions are actually named
17786 something starting with __ and the normal name is an alias. */
dd184caf 17787#if defined __stub_PQsetdbLogin || defined __stub___PQsetdbLogin
d9898ee8 17788choke me
d9898ee8 17789#endif
17790
17791int
17792main ()
17793{
dd184caf 17794return PQsetdbLogin ();
d9898ee8 17795 ;
17796 return 0;
17797}
17798_ACEOF
17799rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 17800if { (ac_try="$ac_link"
17801case "(($ac_try" in
17802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17803 *) ac_try_echo=$ac_try;;
17804esac
8d138742
CE
17805eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17806$as_echo "$ac_try_echo") >&5
dd184caf 17807 (eval "$ac_link") 2>conftest.er1
d9898ee8 17808 ac_status=$?
17809 grep -v '^ *+' conftest.er1 >conftest.err
17810 rm -f conftest.er1
17811 cat conftest.err >&5
8d138742 17812 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 17813 (exit $ac_status); } && {
17814 test -z "$ac_c_werror_flag" ||
17815 test ! -s conftest.err
8d138742
CE
17816 } && test -s conftest$ac_exeext && {
17817 test "$cross_compiling" = yes ||
17818 $as_test_x conftest$ac_exeext
17819 }; then
d9898ee8 17820 ac_cv_func_PQsetdbLogin=yes
17821else
8d138742 17822 $as_echo "$as_me: failed program was:" >&5
d9898ee8 17823sed 's/^/| /' conftest.$ac_ext >&5
17824
dd184caf 17825 ac_cv_func_PQsetdbLogin=no
d9898ee8 17826fi
dd184caf 17827
8d138742 17828rm -rf conftest.dSYM
dd184caf 17829rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 17830 conftest$ac_exeext conftest.$ac_ext
17831fi
8d138742
CE
17832{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_PQsetdbLogin" >&5
17833$as_echo "$ac_cv_func_PQsetdbLogin" >&6; }
17834if test "x$ac_cv_func_PQsetdbLogin" = x""yes; then
d9898ee8 17835 AUTHPGSQL="authpgsql"
17836 HAVE_AUTHPGSQL=1
17837else
8d138742
CE
17838 { { $as_echo "$as_me:$LINENO: error: --with-authpgsql specified but no libpq.so" >&5
17839$as_echo "$as_me: error: --with-authpgsql specified but no libpq.so" >&2;}
d9898ee8 17840 { (exit 1); exit 1; }; }
17841fi
17842
17843 LIBS="$saveLIBS"
17844 HAVE_AUTHPGSQL=1
17845 CFLAGS="$PGSQL_CFLAGS $CFLAGS"
17846 LIBAUTHPGSQL="libauthpgsql.la"
17847fi
17848
17849
17850
dd184caf 17851 if test "$HAVE_AUTHPGSQL" = 1; then
d9898ee8 17852 HAVE_AUTHPGSQL_TRUE=
17853 HAVE_AUTHPGSQL_FALSE='#'
17854else
17855 HAVE_AUTHPGSQL_TRUE='#'
17856 HAVE_AUTHPGSQL_FALSE=
17857fi
17858
17859
17860
17861
17862
17863
dd184caf 17864# Check whether --with-authmysqlrc was given.
d9898ee8 17865if test "${with_authmysqlrc+set}" = set; then
dd184caf 17866 withval=$with_authmysqlrc; authmysqlrc="$withval"
d9898ee8 17867else
17868 authmysqlrc="$pkgconfdir/authmysqlrc"
dd184caf 17869fi
17870
d9898ee8 17871
17872
17873
dd184caf 17874# Check whether --with-authmysql was given.
d9898ee8 17875if test "${with_authmysql+set}" = set; then
dd184caf 17876 withval=$with_authmysql; doauthmysql="$withval"
17877fi
17878
d9898ee8 17879
dd184caf 17880# Check whether --with-mysql-libs was given.
d9898ee8 17881if test "${with_mysql_libs+set}" = set; then
dd184caf 17882 withval=$with_mysql_libs; MYSQL_LIBS="-L$withval -lmysqlclient"
17883
17884fi
d9898ee8 17885
d9898ee8 17886
dd184caf 17887# Check whether --with-mysql-includes was given.
d9898ee8 17888if test "${with_mysql_includes+set}" = set; then
dd184caf 17889 withval=$with_mysql_includes; MYSQL_CFLAGS="-I$withval"
17890
17891fi
d9898ee8 17892
d9898ee8 17893
17894for ac_prog in mysql_config
17895do
17896 # Extract the first word of "$ac_prog", so it can be a program name with args.
17897set dummy $ac_prog; ac_word=$2
8d138742
CE
17898{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
17899$as_echo_n "checking for $ac_word... " >&6; }
d9898ee8 17900if test "${ac_cv_path_MYSQL_CONFIG+set}" = set; then
8d138742 17901 $as_echo_n "(cached) " >&6
d9898ee8 17902else
17903 case $MYSQL_CONFIG in
17904 [\\/]* | ?:[\\/]*)
17905 ac_cv_path_MYSQL_CONFIG="$MYSQL_CONFIG" # Let the user override the test with a path.
17906 ;;
17907 *)
17908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17909for as_dir in $LPATH
17910do
17911 IFS=$as_save_IFS
17912 test -z "$as_dir" && as_dir=.
17913 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 17914 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 17915 ac_cv_path_MYSQL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8d138742 17916 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 17917 break 2
17918 fi
17919done
17920done
dd184caf 17921IFS=$as_save_IFS
d9898ee8 17922
8d138742
CE
17923 ;;
17924esac
17925fi
17926MYSQL_CONFIG=$ac_cv_path_MYSQL_CONFIG
17927if test -n "$MYSQL_CONFIG"; then
17928 { $as_echo "$as_me:$LINENO: result: $MYSQL_CONFIG" >&5
17929$as_echo "$MYSQL_CONFIG" >&6; }
17930else
17931 { $as_echo "$as_me:$LINENO: result: no" >&5
17932$as_echo "no" >&6; }
17933fi
17934
17935
17936 test -n "$MYSQL_CONFIG" && break
17937done
17938test -n "$MYSQL_CONFIG" || MYSQL_CONFIG="mysql_config"
17939
17940
17941if test -x "$MYSQL_CONFIG"
17942then
17943 MYSQL_CFLAGS="`$MYSQL_CONFIG --cflags`"
17944 MYSQL_LIBS="`$MYSQL_CONFIG --libs`"
17945
17946 eval "MYSQL_CFLAGS=\"\`echo $MYSQL_CFLAGS\`\""
17947 eval "MYSQL_LIBS=\"\`echo $MYSQL_LIBS\`\""
17948fi
17949
17950if test "$doauthmysql" = ""
17951then
17952 LIBS="$MYSQL_LIBS $LIBS"
17953 { $as_echo "$as_me:$LINENO: checking for mysql_connect" >&5
17954$as_echo_n "checking for mysql_connect... " >&6; }
17955if test "${ac_cv_func_mysql_connect+set}" = set; then
17956 $as_echo_n "(cached) " >&6
17957else
17958 cat >conftest.$ac_ext <<_ACEOF
17959/* confdefs.h. */
17960_ACEOF
17961cat confdefs.h >>conftest.$ac_ext
17962cat >>conftest.$ac_ext <<_ACEOF
17963/* end confdefs.h. */
17964/* Define mysql_connect to an innocuous variant, in case <limits.h> declares mysql_connect.
17965 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17966#define mysql_connect innocuous_mysql_connect
17967
17968/* System header to define __stub macros and hopefully few prototypes,
17969 which can conflict with char mysql_connect (); below.
17970 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17971 <limits.h> exists even on freestanding compilers. */
17972
17973#ifdef __STDC__
17974# include <limits.h>
17975#else
17976# include <assert.h>
17977#endif
17978
17979#undef mysql_connect
17980
17981/* Override any GCC internal prototype to avoid an error.
17982 Use char because int might match the return type of a GCC
17983 builtin and then its argument prototype would still apply. */
17984#ifdef __cplusplus
17985extern "C"
17986#endif
17987char mysql_connect ();
17988/* The GNU C library defines this for functions which it implements
17989 to always fail with ENOSYS. Some functions are actually named
17990 something starting with __ and the normal name is an alias. */
17991#if defined __stub_mysql_connect || defined __stub___mysql_connect
17992choke me
17993#endif
17994
17995int
17996main ()
17997{
17998return mysql_connect ();
17999 ;
18000 return 0;
18001}
18002_ACEOF
18003rm -f conftest.$ac_objext conftest$ac_exeext
18004if { (ac_try="$ac_link"
18005case "(($ac_try" in
18006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18007 *) ac_try_echo=$ac_try;;
18008esac
18009eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18010$as_echo "$ac_try_echo") >&5
18011 (eval "$ac_link") 2>conftest.er1
18012 ac_status=$?
18013 grep -v '^ *+' conftest.er1 >conftest.err
18014 rm -f conftest.er1
18015 cat conftest.err >&5
18016 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18017 (exit $ac_status); } && {
18018 test -z "$ac_c_werror_flag" ||
18019 test ! -s conftest.err
18020 } && test -s conftest$ac_exeext && {
18021 test "$cross_compiling" = yes ||
18022 $as_test_x conftest$ac_exeext
18023 }; then
18024 ac_cv_func_mysql_connect=yes
18025else
18026 $as_echo "$as_me: failed program was:" >&5
18027sed 's/^/| /' conftest.$ac_ext >&5
18028
18029 ac_cv_func_mysql_connect=no
18030fi
18031
18032rm -rf conftest.dSYM
18033rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18034 conftest$ac_exeext conftest.$ac_ext
18035fi
18036{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_mysql_connect" >&5
18037$as_echo "$ac_cv_func_mysql_connect" >&6; }
18038if test "x$ac_cv_func_mysql_connect" = x""yes; then
18039 doauthmysql="yes"
18040
18041fi
18042
18043 { $as_echo "$as_me:$LINENO: checking for mysql_real_connect" >&5
18044$as_echo_n "checking for mysql_real_connect... " >&6; }
18045if test "${ac_cv_func_mysql_real_connect+set}" = set; then
18046 $as_echo_n "(cached) " >&6
18047else
18048 cat >conftest.$ac_ext <<_ACEOF
18049/* confdefs.h. */
18050_ACEOF
18051cat confdefs.h >>conftest.$ac_ext
18052cat >>conftest.$ac_ext <<_ACEOF
18053/* end confdefs.h. */
18054/* Define mysql_real_connect to an innocuous variant, in case <limits.h> declares mysql_real_connect.
18055 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18056#define mysql_real_connect innocuous_mysql_real_connect
18057
18058/* System header to define __stub macros and hopefully few prototypes,
18059 which can conflict with char mysql_real_connect (); below.
18060 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18061 <limits.h> exists even on freestanding compilers. */
18062
18063#ifdef __STDC__
18064# include <limits.h>
18065#else
18066# include <assert.h>
18067#endif
18068
18069#undef mysql_real_connect
18070
18071/* Override any GCC internal prototype to avoid an error.
18072 Use char because int might match the return type of a GCC
18073 builtin and then its argument prototype would still apply. */
18074#ifdef __cplusplus
18075extern "C"
18076#endif
18077char mysql_real_connect ();
18078/* The GNU C library defines this for functions which it implements
18079 to always fail with ENOSYS. Some functions are actually named
18080 something starting with __ and the normal name is an alias. */
18081#if defined __stub_mysql_real_connect || defined __stub___mysql_real_connect
18082choke me
18083#endif
18084
18085int
18086main ()
18087{
18088return mysql_real_connect ();
18089 ;
18090 return 0;
18091}
18092_ACEOF
18093rm -f conftest.$ac_objext conftest$ac_exeext
18094if { (ac_try="$ac_link"
18095case "(($ac_try" in
18096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18097 *) ac_try_echo=$ac_try;;
d9898ee8 18098esac
8d138742
CE
18099eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18100$as_echo "$ac_try_echo") >&5
18101 (eval "$ac_link") 2>conftest.er1
18102 ac_status=$?
18103 grep -v '^ *+' conftest.er1 >conftest.err
18104 rm -f conftest.er1
18105 cat conftest.err >&5
18106 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18107 (exit $ac_status); } && {
18108 test -z "$ac_c_werror_flag" ||
18109 test ! -s conftest.err
18110 } && test -s conftest$ac_exeext && {
18111 test "$cross_compiling" = yes ||
18112 $as_test_x conftest$ac_exeext
18113 }; then
18114 ac_cv_func_mysql_real_connect=yes
d9898ee8 18115else
8d138742
CE
18116 $as_echo "$as_me: failed program was:" >&5
18117sed 's/^/| /' conftest.$ac_ext >&5
dd184caf 18118
8d138742
CE
18119 ac_cv_func_mysql_real_connect=no
18120fi
d9898ee8 18121
8d138742
CE
18122rm -rf conftest.dSYM
18123rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18124 conftest$ac_exeext conftest.$ac_ext
18125fi
18126{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_mysql_real_connect" >&5
18127$as_echo "$ac_cv_func_mysql_real_connect" >&6; }
18128if test "x$ac_cv_func_mysql_real_connect" = x""yes; then
18129 doauthmysql="yes"
d9898ee8 18130
8d138742 18131fi
d9898ee8 18132
8d138742 18133 LIBS="$saveLIBS"
d9898ee8 18134fi
18135
8d138742 18136if test "$doauthmysql" != "yes"
d9898ee8 18137then
8d138742
CE
18138 LIBAUTHMYSQL=""
18139 HAVE_AUTHMYSQL=0
18140else
18141 saveLIBS="$LIBS"
d9898ee8 18142 LIBS="$MYSQL_LIBS $LIBS"
8d138742
CE
18143 { $as_echo "$as_me:$LINENO: checking for mysql_connect" >&5
18144$as_echo_n "checking for mysql_connect... " >&6; }
d9898ee8 18145if test "${ac_cv_func_mysql_connect+set}" = set; then
8d138742 18146 $as_echo_n "(cached) " >&6
d9898ee8 18147else
18148 cat >conftest.$ac_ext <<_ACEOF
18149/* confdefs.h. */
18150_ACEOF
18151cat confdefs.h >>conftest.$ac_ext
18152cat >>conftest.$ac_ext <<_ACEOF
18153/* end confdefs.h. */
18154/* Define mysql_connect to an innocuous variant, in case <limits.h> declares mysql_connect.
18155 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18156#define mysql_connect innocuous_mysql_connect
18157
18158/* System header to define __stub macros and hopefully few prototypes,
18159 which can conflict with char mysql_connect (); below.
18160 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18161 <limits.h> exists even on freestanding compilers. */
18162
18163#ifdef __STDC__
18164# include <limits.h>
18165#else
18166# include <assert.h>
18167#endif
18168
18169#undef mysql_connect
18170
dd184caf 18171/* Override any GCC internal prototype to avoid an error.
18172 Use char because int might match the return type of a GCC
18173 builtin and then its argument prototype would still apply. */
d9898ee8 18174#ifdef __cplusplus
18175extern "C"
d9898ee8 18176#endif
d9898ee8 18177char mysql_connect ();
18178/* The GNU C library defines this for functions which it implements
18179 to always fail with ENOSYS. Some functions are actually named
18180 something starting with __ and the normal name is an alias. */
dd184caf 18181#if defined __stub_mysql_connect || defined __stub___mysql_connect
d9898ee8 18182choke me
d9898ee8 18183#endif
18184
18185int
18186main ()
18187{
dd184caf 18188return mysql_connect ();
d9898ee8 18189 ;
18190 return 0;
18191}
18192_ACEOF
18193rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 18194if { (ac_try="$ac_link"
18195case "(($ac_try" in
18196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18197 *) ac_try_echo=$ac_try;;
18198esac
8d138742
CE
18199eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18200$as_echo "$ac_try_echo") >&5
dd184caf 18201 (eval "$ac_link") 2>conftest.er1
d9898ee8 18202 ac_status=$?
18203 grep -v '^ *+' conftest.er1 >conftest.err
18204 rm -f conftest.er1
18205 cat conftest.err >&5
8d138742 18206 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 18207 (exit $ac_status); } && {
18208 test -z "$ac_c_werror_flag" ||
18209 test ! -s conftest.err
8d138742
CE
18210 } && test -s conftest$ac_exeext && {
18211 test "$cross_compiling" = yes ||
18212 $as_test_x conftest$ac_exeext
18213 }; then
d9898ee8 18214 ac_cv_func_mysql_connect=yes
18215else
8d138742 18216 $as_echo "$as_me: failed program was:" >&5
d9898ee8 18217sed 's/^/| /' conftest.$ac_ext >&5
18218
dd184caf 18219 ac_cv_func_mysql_connect=no
d9898ee8 18220fi
dd184caf 18221
8d138742 18222rm -rf conftest.dSYM
dd184caf 18223rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 18224 conftest$ac_exeext conftest.$ac_ext
18225fi
8d138742
CE
18226{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_mysql_connect" >&5
18227$as_echo "$ac_cv_func_mysql_connect" >&6; }
18228if test "x$ac_cv_func_mysql_connect" = x""yes; then
18229 LIBAUTHMYSQL="libauthmysql.la"
18230 HAVE_AUTHMYSQL=1
18231else
d9898ee8 18232
8d138742
CE
18233 { $as_echo "$as_me:$LINENO: checking for mysql_real_connect" >&5
18234$as_echo_n "checking for mysql_real_connect... " >&6; }
d9898ee8 18235if test "${ac_cv_func_mysql_real_connect+set}" = set; then
8d138742 18236 $as_echo_n "(cached) " >&6
d9898ee8 18237else
18238 cat >conftest.$ac_ext <<_ACEOF
18239/* confdefs.h. */
18240_ACEOF
18241cat confdefs.h >>conftest.$ac_ext
18242cat >>conftest.$ac_ext <<_ACEOF
18243/* end confdefs.h. */
18244/* Define mysql_real_connect to an innocuous variant, in case <limits.h> declares mysql_real_connect.
18245 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18246#define mysql_real_connect innocuous_mysql_real_connect
18247
18248/* System header to define __stub macros and hopefully few prototypes,
18249 which can conflict with char mysql_real_connect (); below.
18250 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18251 <limits.h> exists even on freestanding compilers. */
18252
18253#ifdef __STDC__
18254# include <limits.h>
18255#else
18256# include <assert.h>
18257#endif
18258
18259#undef mysql_real_connect
18260
dd184caf 18261/* Override any GCC internal prototype to avoid an error.
18262 Use char because int might match the return type of a GCC
18263 builtin and then its argument prototype would still apply. */
d9898ee8 18264#ifdef __cplusplus
18265extern "C"
d9898ee8 18266#endif
d9898ee8 18267char mysql_real_connect ();
18268/* The GNU C library defines this for functions which it implements
18269 to always fail with ENOSYS. Some functions are actually named
18270 something starting with __ and the normal name is an alias. */
dd184caf 18271#if defined __stub_mysql_real_connect || defined __stub___mysql_real_connect
d9898ee8 18272choke me
d9898ee8 18273#endif
18274
18275int
18276main ()
18277{
dd184caf 18278return mysql_real_connect ();
d9898ee8 18279 ;
18280 return 0;
18281}
18282_ACEOF
18283rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 18284if { (ac_try="$ac_link"
18285case "(($ac_try" in
18286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18287 *) ac_try_echo=$ac_try;;
18288esac
8d138742
CE
18289eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18290$as_echo "$ac_try_echo") >&5
dd184caf 18291 (eval "$ac_link") 2>conftest.er1
d9898ee8 18292 ac_status=$?
18293 grep -v '^ *+' conftest.er1 >conftest.err
18294 rm -f conftest.er1
18295 cat conftest.err >&5
8d138742 18296 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 18297 (exit $ac_status); } && {
18298 test -z "$ac_c_werror_flag" ||
18299 test ! -s conftest.err
8d138742
CE
18300 } && test -s conftest$ac_exeext && {
18301 test "$cross_compiling" = yes ||
18302 $as_test_x conftest$ac_exeext
18303 }; then
d9898ee8 18304 ac_cv_func_mysql_real_connect=yes
18305else
8d138742 18306 $as_echo "$as_me: failed program was:" >&5
d9898ee8 18307sed 's/^/| /' conftest.$ac_ext >&5
18308
dd184caf 18309 ac_cv_func_mysql_real_connect=no
d9898ee8 18310fi
dd184caf 18311
8d138742 18312rm -rf conftest.dSYM
dd184caf 18313rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 18314 conftest$ac_exeext conftest.$ac_ext
18315fi
8d138742
CE
18316{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_mysql_real_connect" >&5
18317$as_echo "$ac_cv_func_mysql_real_connect" >&6; }
18318if test "x$ac_cv_func_mysql_real_connect" = x""yes; then
18319 LIBAUTHMYSQL="libauthmysql.la"
18320 HAVE_AUTHMYSQL=1
18321else
18322 { { $as_echo "$as_me:$LINENO: error: --with-authmysql specified but no mysqlclient.so" >&5
18323$as_echo "$as_me: error: --with-authmysql specified but no mysqlclient.so" >&2;}
18324 { (exit 1); exit 1; }; }
18325
18326fi
18327
18328
d9898ee8 18329
18330fi
18331
18332 LIBS="$saveLIBS"
8d138742
CE
18333 HAVE_AUTHMYSQL=1
18334 CFLAGS="$MYSQL_CFLAGS $CFLAGS"
d9898ee8 18335fi
18336
8d138742
CE
18337
18338 if test "$HAVE_AUTHMYSQL" = 1; then
18339 HAVE_AUTHMYSQL_TRUE=
18340 HAVE_AUTHMYSQL_FALSE='#'
18341else
18342 HAVE_AUTHMYSQL_TRUE='#'
18343 HAVE_AUTHMYSQL_FALSE=
18344fi
18345
18346
18347
18348
18349
18350
18351
18352
18353# Check whether --with-authcustom was given.
18354if test "${with_authcustom+set}" = set; then
18355 withval=$with_authcustom; doauthcustom="$withval"
18356else
18357 doauthcustom=yes
18358fi
18359
18360
18361LIBAUTHCUSTOM=""
18362
18363if test "$doauthcustom" = "yes"
d9898ee8 18364then
8d138742
CE
18365 LIBAUTHCUSTOM="libauthcustom.la"
18366fi
18367
18368 if test "$AUTHCUSTOM" != ""; then
18369 HAVE_CUSTOM_TRUE=
18370 HAVE_CUSTOM_FALSE='#'
d9898ee8 18371else
8d138742
CE
18372 HAVE_CUSTOM_TRUE='#'
18373 HAVE_CUSTOM_FALSE=
18374fi
18375
18376
18377
18378
18379
18380
18381
18382
18383
18384# Check whether --with-pipeprog was given.
18385if test "${with_pipeprog+set}" = set; then
18386 withval=$with_pipeprog; authProg="$withval"
18387else
18388 authProg="$pkgconfdir/authProg"
18389fi
18390
18391
18392
18393
18394# Check whether --with-authpipe was given.
18395if test "${with_authpipe+set}" = set; then
18396 withval=$with_authpipe; doauthpipe="$withval"
18397else
18398 doauthpipe=yes
18399fi
18400
18401
18402LIBAUTHPIPE=""
18403
18404if test "$doauthpipe" = "yes"
18405then
18406 LIBAUTHPIPE="libauthpipe.la"
18407fi
18408
18409 if test "$AUTHPIPE" != ""; then
18410 HAVE_PIPE_TRUE=
18411 HAVE_PIPE_FALSE='#'
18412else
18413 HAVE_PIPE_TRUE='#'
18414 HAVE_PIPE_FALSE=
18415fi
18416
18417
18418
18419
18420
18421{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
18422$as_echo_n "checking for ANSI C header files... " >&6; }
18423if test "${ac_cv_header_stdc+set}" = set; then
18424 $as_echo_n "(cached) " >&6
18425else
18426 cat >conftest.$ac_ext <<_ACEOF
18427/* confdefs.h. */
18428_ACEOF
18429cat confdefs.h >>conftest.$ac_ext
18430cat >>conftest.$ac_ext <<_ACEOF
18431/* end confdefs.h. */
18432#include <stdlib.h>
18433#include <stdarg.h>
18434#include <string.h>
18435#include <float.h>
18436
18437int
18438main ()
18439{
18440
18441 ;
18442 return 0;
18443}
18444_ACEOF
18445rm -f conftest.$ac_objext
18446if { (ac_try="$ac_compile"
18447case "(($ac_try" in
18448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18449 *) ac_try_echo=$ac_try;;
18450esac
18451eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18452$as_echo "$ac_try_echo") >&5
18453 (eval "$ac_compile") 2>conftest.er1
18454 ac_status=$?
18455 grep -v '^ *+' conftest.er1 >conftest.err
18456 rm -f conftest.er1
18457 cat conftest.err >&5
18458 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18459 (exit $ac_status); } && {
18460 test -z "$ac_c_werror_flag" ||
18461 test ! -s conftest.err
18462 } && test -s conftest.$ac_objext; then
18463 ac_cv_header_stdc=yes
18464else
18465 $as_echo "$as_me: failed program was:" >&5
18466sed 's/^/| /' conftest.$ac_ext >&5
18467
18468 ac_cv_header_stdc=no
18469fi
18470
18471rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18472
18473if test $ac_cv_header_stdc = yes; then
18474 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
18475 cat >conftest.$ac_ext <<_ACEOF
18476/* confdefs.h. */
18477_ACEOF
18478cat confdefs.h >>conftest.$ac_ext
18479cat >>conftest.$ac_ext <<_ACEOF
18480/* end confdefs.h. */
18481#include <string.h>
18482
18483_ACEOF
18484if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18485 $EGREP "memchr" >/dev/null 2>&1; then
18486 :
18487else
18488 ac_cv_header_stdc=no
18489fi
18490rm -f conftest*
18491
18492fi
18493
18494if test $ac_cv_header_stdc = yes; then
18495 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
18496 cat >conftest.$ac_ext <<_ACEOF
18497/* confdefs.h. */
18498_ACEOF
18499cat confdefs.h >>conftest.$ac_ext
18500cat >>conftest.$ac_ext <<_ACEOF
18501/* end confdefs.h. */
18502#include <stdlib.h>
18503
18504_ACEOF
18505if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18506 $EGREP "free" >/dev/null 2>&1; then
18507 :
18508else
18509 ac_cv_header_stdc=no
18510fi
18511rm -f conftest*
18512
18513fi
18514
18515if test $ac_cv_header_stdc = yes; then
18516 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
18517 if test "$cross_compiling" = yes; then
18518 :
d9898ee8 18519else
18520 cat >conftest.$ac_ext <<_ACEOF
18521/* confdefs.h. */
18522_ACEOF
18523cat confdefs.h >>conftest.$ac_ext
18524cat >>conftest.$ac_ext <<_ACEOF
18525/* end confdefs.h. */
8d138742
CE
18526#include <ctype.h>
18527#include <stdlib.h>
18528#if ((' ' & 0x0FF) == 0x020)
18529# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
18530# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
d9898ee8 18531#else
8d138742
CE
18532# define ISLOWER(c) \
18533 (('a' <= (c) && (c) <= 'i') \
18534 || ('j' <= (c) && (c) <= 'r') \
18535 || ('s' <= (c) && (c) <= 'z'))
18536# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
d9898ee8 18537#endif
18538
8d138742 18539#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
d9898ee8 18540int
18541main ()
18542{
8d138742
CE
18543 int i;
18544 for (i = 0; i < 256; i++)
18545 if (XOR (islower (i), ISLOWER (i))
18546 || toupper (i) != TOUPPER (i))
18547 return 2;
d9898ee8 18548 return 0;
18549}
18550_ACEOF
8d138742 18551rm -f conftest$ac_exeext
dd184caf 18552if { (ac_try="$ac_link"
18553case "(($ac_try" in
18554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18555 *) ac_try_echo=$ac_try;;
18556esac
8d138742
CE
18557eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18558$as_echo "$ac_try_echo") >&5
18559 (eval "$ac_link") 2>&5
d9898ee8 18560 ac_status=$?
8d138742
CE
18561 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18562 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18563 { (case "(($ac_try" in
18564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18565 *) ac_try_echo=$ac_try;;
18566esac
18567eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18568$as_echo "$ac_try_echo") >&5
18569 (eval "$ac_try") 2>&5
18570 ac_status=$?
18571 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18572 (exit $ac_status); }; }; then
18573 :
d9898ee8 18574else
8d138742
CE
18575 $as_echo "$as_me: program exited with status $ac_status" >&5
18576$as_echo "$as_me: failed program was:" >&5
d9898ee8 18577sed 's/^/| /' conftest.$ac_ext >&5
18578
8d138742
CE
18579( exit $ac_status )
18580ac_cv_header_stdc=no
18581fi
18582rm -rf conftest.dSYM
18583rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d9898ee8 18584fi
dd184caf 18585
8d138742 18586
d9898ee8 18587fi
8d138742
CE
18588fi
18589{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
18590$as_echo "$ac_cv_header_stdc" >&6; }
18591if test $ac_cv_header_stdc = yes; then
d9898ee8 18592
8d138742
CE
18593cat >>confdefs.h <<\_ACEOF
18594#define STDC_HEADERS 1
18595_ACEOF
18596
18597fi
18598
18599{ $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
18600$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
18601if test "${ac_cv_header_sys_wait_h+set}" = set; then
18602 $as_echo_n "(cached) " >&6
d9898ee8 18603else
18604 cat >conftest.$ac_ext <<_ACEOF
18605/* confdefs.h. */
18606_ACEOF
18607cat confdefs.h >>conftest.$ac_ext
18608cat >>conftest.$ac_ext <<_ACEOF
18609/* end confdefs.h. */
8d138742
CE
18610#include <sys/types.h>
18611#include <sys/wait.h>
18612#ifndef WEXITSTATUS
18613# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
d9898ee8 18614#endif
8d138742
CE
18615#ifndef WIFEXITED
18616# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
d9898ee8 18617#endif
18618
18619int
18620main ()
18621{
8d138742
CE
18622 int s;
18623 wait (&s);
18624 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
d9898ee8 18625 ;
18626 return 0;
18627}
18628_ACEOF
8d138742
CE
18629rm -f conftest.$ac_objext
18630if { (ac_try="$ac_compile"
dd184caf 18631case "(($ac_try" in
18632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18633 *) ac_try_echo=$ac_try;;
18634esac
8d138742
CE
18635eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18636$as_echo "$ac_try_echo") >&5
18637 (eval "$ac_compile") 2>conftest.er1
d9898ee8 18638 ac_status=$?
18639 grep -v '^ *+' conftest.er1 >conftest.err
18640 rm -f conftest.er1
18641 cat conftest.err >&5
8d138742 18642 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 18643 (exit $ac_status); } && {
18644 test -z "$ac_c_werror_flag" ||
18645 test ! -s conftest.err
8d138742
CE
18646 } && test -s conftest.$ac_objext; then
18647 ac_cv_header_sys_wait_h=yes
d9898ee8 18648else
8d138742 18649 $as_echo "$as_me: failed program was:" >&5
d9898ee8 18650sed 's/^/| /' conftest.$ac_ext >&5
18651
8d138742 18652 ac_cv_header_sys_wait_h=no
d9898ee8 18653fi
18654
8d138742 18655rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 18656fi
8d138742
CE
18657{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
18658$as_echo "$ac_cv_header_sys_wait_h" >&6; }
18659if test $ac_cv_header_sys_wait_h = yes; then
d9898ee8 18660
8d138742
CE
18661cat >>confdefs.h <<\_ACEOF
18662#define HAVE_SYS_WAIT_H 1
18663_ACEOF
d9898ee8 18664
d9898ee8 18665fi
18666
18667
18668
18669
18670
18671
18672
18673
d9898ee8 18674
8d138742
CE
18675for ac_header in sys/stat.h sys/time.h sys/wait.h sys/select.h unistd.h fcntl.h crypt.h termios.h
18676do
18677as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18678if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18679 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
18680$as_echo_n "checking for $ac_header... " >&6; }
18681if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18682 $as_echo_n "(cached) " >&6
d9898ee8 18683fi
8d138742
CE
18684ac_res=`eval 'as_val=${'$as_ac_Header'}
18685 $as_echo "$as_val"'`
18686 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18687$as_echo "$ac_res" >&6; }
d9898ee8 18688else
8d138742
CE
18689 # Is the header compilable?
18690{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
18691$as_echo_n "checking $ac_header usability... " >&6; }
18692cat >conftest.$ac_ext <<_ACEOF
18693/* confdefs.h. */
18694_ACEOF
18695cat confdefs.h >>conftest.$ac_ext
18696cat >>conftest.$ac_ext <<_ACEOF
18697/* end confdefs.h. */
18698$ac_includes_default
18699#include <$ac_header>
18700_ACEOF
18701rm -f conftest.$ac_objext
18702if { (ac_try="$ac_compile"
18703case "(($ac_try" in
18704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18705 *) ac_try_echo=$ac_try;;
18706esac
18707eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18708$as_echo "$ac_try_echo") >&5
18709 (eval "$ac_compile") 2>conftest.er1
18710 ac_status=$?
18711 grep -v '^ *+' conftest.er1 >conftest.err
18712 rm -f conftest.er1
18713 cat conftest.err >&5
18714 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18715 (exit $ac_status); } && {
18716 test -z "$ac_c_werror_flag" ||
18717 test ! -s conftest.err
18718 } && test -s conftest.$ac_objext; then
18719 ac_header_compiler=yes
18720else
18721 $as_echo "$as_me: failed program was:" >&5
18722sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 18723
8d138742
CE
18724 ac_header_compiler=no
18725fi
d9898ee8 18726
8d138742
CE
18727rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18728{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18729$as_echo "$ac_header_compiler" >&6; }
d9898ee8 18730
8d138742
CE
18731# Is the header present?
18732{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
18733$as_echo_n "checking $ac_header presence... " >&6; }
18734cat >conftest.$ac_ext <<_ACEOF
18735/* confdefs.h. */
18736_ACEOF
18737cat confdefs.h >>conftest.$ac_ext
18738cat >>conftest.$ac_ext <<_ACEOF
18739/* end confdefs.h. */
18740#include <$ac_header>
18741_ACEOF
18742if { (ac_try="$ac_cpp conftest.$ac_ext"
18743case "(($ac_try" in
18744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18745 *) ac_try_echo=$ac_try;;
18746esac
18747eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18748$as_echo "$ac_try_echo") >&5
18749 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18750 ac_status=$?
18751 grep -v '^ *+' conftest.er1 >conftest.err
18752 rm -f conftest.er1
18753 cat conftest.err >&5
18754 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18755 (exit $ac_status); } >/dev/null && {
18756 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18757 test ! -s conftest.err
18758 }; then
18759 ac_header_preproc=yes
d9898ee8 18760else
8d138742
CE
18761 $as_echo "$as_me: failed program was:" >&5
18762sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 18763
8d138742
CE
18764 ac_header_preproc=no
18765fi
d9898ee8 18766
8d138742
CE
18767rm -f conftest.err conftest.$ac_ext
18768{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18769$as_echo "$ac_header_preproc" >&6; }
dd184caf 18770
8d138742
CE
18771# So? What about this header?
18772case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18773 yes:no: )
18774 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18775$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18776 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18777$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18778 ac_header_preproc=yes
18779 ;;
18780 no:yes:* )
18781 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18782$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18783 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18784$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18785 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18786$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18787 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18788$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18789 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18790$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18791 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18792$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18793 ( cat <<\_ASBOX
18794## -------------------------------------------------- ##
18795## Report this to courier-users@lists.sourceforge.net ##
18796## -------------------------------------------------- ##
18797_ASBOX
18798 ) | sed "s/^/$as_me: WARNING: /" >&2
18799 ;;
18800esac
18801{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
18802$as_echo_n "checking for $ac_header... " >&6; }
18803if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18804 $as_echo_n "(cached) " >&6
d9898ee8 18805else
8d138742 18806 eval "$as_ac_Header=\$ac_header_preproc"
dd184caf 18807fi
8d138742
CE
18808ac_res=`eval 'as_val=${'$as_ac_Header'}
18809 $as_echo "$as_val"'`
18810 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18811$as_echo "$ac_res" >&6; }
dd184caf 18812
d9898ee8 18813fi
8d138742
CE
18814as_val=`eval 'as_val=${'$as_ac_Header'}
18815 $as_echo "$as_val"'`
18816 if test "x$as_val" = x""yes; then
18817 cat >>confdefs.h <<_ACEOF
18818#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18819_ACEOF
d9898ee8 18820
d9898ee8 18821fi
18822
8d138742 18823done
d9898ee8 18824
18825
8d138742
CE
18826{ $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
18827$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
18828if test "${ac_cv_c_const+set}" = set; then
18829 $as_echo_n "(cached) " >&6
d9898ee8 18830else
18831 cat >conftest.$ac_ext <<_ACEOF
18832/* confdefs.h. */
18833_ACEOF
18834cat confdefs.h >>conftest.$ac_ext
18835cat >>conftest.$ac_ext <<_ACEOF
18836/* end confdefs.h. */
d9898ee8 18837
18838int
18839main ()
18840{
8d138742
CE
18841/* FIXME: Include the comments suggested by Paul. */
18842#ifndef __cplusplus
18843 /* Ultrix mips cc rejects this. */
18844 typedef int charset[2];
18845 const charset cs;
18846 /* SunOS 4.1.1 cc rejects this. */
18847 char const *const *pcpcc;
18848 char **ppc;
18849 /* NEC SVR4.0.2 mips cc rejects this. */
18850 struct point {int x, y;};
18851 static struct point const zero = {0,0};
18852 /* AIX XL C 1.02.0.0 rejects this.
18853 It does not let you subtract one const X* pointer from another in
18854 an arm of an if-expression whose if-part is not a constant
18855 expression */
18856 const char *g = "string";
18857 pcpcc = &g + (g ? g-g : 0);
18858 /* HPUX 7.0 cc rejects these. */
18859 ++pcpcc;
18860 ppc = (char**) pcpcc;
18861 pcpcc = (char const *const *) ppc;
18862 { /* SCO 3.2v4 cc rejects this. */
18863 char *t;
18864 char const *s = 0 ? (char *) 0 : (char const *) 0;
18865
18866 *t++ = 0;
18867 if (s) return 0;
18868 }
18869 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
18870 int x[] = {25, 17};
18871 const int *foo = &x[0];
18872 ++foo;
18873 }
18874 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18875 typedef const int *iptr;
18876 iptr p = 0;
18877 ++p;
18878 }
18879 { /* AIX XL C 1.02.0.0 rejects this saying
18880 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18881 struct s { int j; const int *ap[3]; };
18882 struct s *b; b->j = 5;
18883 }
18884 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18885 const int foo = 10;
18886 if (!foo) return 0;
18887 }
18888 return !cs[0] && !zero.x;
18889#endif
d9898ee8 18890
18891 ;
18892 return 0;
18893}
18894_ACEOF
18895rm -f conftest.$ac_objext
dd184caf 18896if { (ac_try="$ac_compile"
18897case "(($ac_try" in
18898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18899 *) ac_try_echo=$ac_try;;
18900esac
8d138742
CE
18901eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18902$as_echo "$ac_try_echo") >&5
dd184caf 18903 (eval "$ac_compile") 2>conftest.er1
d9898ee8 18904 ac_status=$?
18905 grep -v '^ *+' conftest.er1 >conftest.err
18906 rm -f conftest.er1
18907 cat conftest.err >&5
8d138742 18908 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 18909 (exit $ac_status); } && {
18910 test -z "$ac_c_werror_flag" ||
18911 test ! -s conftest.err
18912 } && test -s conftest.$ac_objext; then
8d138742 18913 ac_cv_c_const=yes
d9898ee8 18914else
8d138742 18915 $as_echo "$as_me: failed program was:" >&5
d9898ee8 18916sed 's/^/| /' conftest.$ac_ext >&5
18917
8d138742 18918 ac_cv_c_const=no
d9898ee8 18919fi
dd184caf 18920
18921rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8d138742
CE
18922fi
18923{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
18924$as_echo "$ac_cv_c_const" >&6; }
18925if test $ac_cv_c_const = no; then
d9898ee8 18926
8d138742
CE
18927cat >>confdefs.h <<\_ACEOF
18928#define const /**/
d9898ee8 18929_ACEOF
d9898ee8 18930
18931fi
18932
8d138742
CE
18933{ $as_echo "$as_me:$LINENO: checking for pid_t" >&5
18934$as_echo_n "checking for pid_t... " >&6; }
18935if test "${ac_cv_type_pid_t+set}" = set; then
18936 $as_echo_n "(cached) " >&6
18937else
18938 ac_cv_type_pid_t=no
18939cat >conftest.$ac_ext <<_ACEOF
d9898ee8 18940/* confdefs.h. */
18941_ACEOF
18942cat confdefs.h >>conftest.$ac_ext
18943cat >>conftest.$ac_ext <<_ACEOF
18944/* end confdefs.h. */
8d138742
CE
18945$ac_includes_default
18946int
18947main ()
18948{
18949if (sizeof (pid_t))
18950 return 0;
18951 ;
18952 return 0;
18953}
d9898ee8 18954_ACEOF
8d138742
CE
18955rm -f conftest.$ac_objext
18956if { (ac_try="$ac_compile"
18957case "(($ac_try" in
18958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18959 *) ac_try_echo=$ac_try;;
18960esac
18961eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18962$as_echo "$ac_try_echo") >&5
18963 (eval "$ac_compile") 2>conftest.er1
18964 ac_status=$?
18965 grep -v '^ *+' conftest.er1 >conftest.err
18966 rm -f conftest.er1
18967 cat conftest.err >&5
18968 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18969 (exit $ac_status); } && {
18970 test -z "$ac_c_werror_flag" ||
18971 test ! -s conftest.err
18972 } && test -s conftest.$ac_objext; then
d9898ee8 18973 cat >conftest.$ac_ext <<_ACEOF
18974/* confdefs.h. */
18975_ACEOF
18976cat confdefs.h >>conftest.$ac_ext
18977cat >>conftest.$ac_ext <<_ACEOF
18978/* end confdefs.h. */
8d138742 18979$ac_includes_default
d9898ee8 18980int
18981main ()
18982{
8d138742
CE
18983if (sizeof ((pid_t)))
18984 return 0;
18985 ;
dd184caf 18986 return 0;
d9898ee8 18987}
18988_ACEOF
8d138742
CE
18989rm -f conftest.$ac_objext
18990if { (ac_try="$ac_compile"
dd184caf 18991case "(($ac_try" in
18992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18993 *) ac_try_echo=$ac_try;;
18994esac
8d138742
CE
18995eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18996$as_echo "$ac_try_echo") >&5
18997 (eval "$ac_compile") 2>conftest.er1
d9898ee8 18998 ac_status=$?
8d138742
CE
18999 grep -v '^ *+' conftest.er1 >conftest.err
19000 rm -f conftest.er1
19001 cat conftest.err >&5
19002 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19003 (exit $ac_status); } && {
19004 test -z "$ac_c_werror_flag" ||
19005 test ! -s conftest.err
19006 } && test -s conftest.$ac_objext; then
d9898ee8 19007 :
19008else
8d138742 19009 $as_echo "$as_me: failed program was:" >&5
d9898ee8 19010sed 's/^/| /' conftest.$ac_ext >&5
19011
8d138742 19012 ac_cv_type_pid_t=yes
d9898ee8 19013fi
8d138742
CE
19014
19015rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19016else
19017 $as_echo "$as_me: failed program was:" >&5
19018sed 's/^/| /' conftest.$ac_ext >&5
19019
19020
19021fi
19022
19023rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19024fi
19025{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
19026$as_echo "$ac_cv_type_pid_t" >&6; }
19027if test "x$ac_cv_type_pid_t" = x""yes; then
19028 :
19029else
19030
19031cat >>confdefs.h <<_ACEOF
19032#define pid_t int
19033_ACEOF
19034
d9898ee8 19035fi
dd184caf 19036
8d138742
CE
19037{ $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
19038$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
19039if test "${ac_cv_type_uid_t+set}" = set; then
19040 $as_echo_n "(cached) " >&6
19041else
19042 cat >conftest.$ac_ext <<_ACEOF
19043/* confdefs.h. */
19044_ACEOF
19045cat confdefs.h >>conftest.$ac_ext
19046cat >>conftest.$ac_ext <<_ACEOF
19047/* end confdefs.h. */
19048#include <sys/types.h>
dd184caf 19049
8d138742
CE
19050_ACEOF
19051if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19052 $EGREP "uid_t" >/dev/null 2>&1; then
19053 ac_cv_type_uid_t=yes
19054else
19055 ac_cv_type_uid_t=no
d9898ee8 19056fi
8d138742
CE
19057rm -f conftest*
19058
d9898ee8 19059fi
8d138742
CE
19060{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
19061$as_echo "$ac_cv_type_uid_t" >&6; }
19062if test $ac_cv_type_uid_t = no; then
d9898ee8 19063
19064cat >>confdefs.h <<\_ACEOF
8d138742
CE
19065#define uid_t int
19066_ACEOF
19067
19068
19069cat >>confdefs.h <<\_ACEOF
19070#define gid_t int
d9898ee8 19071_ACEOF
19072
19073fi
19074
8d138742
CE
19075
19076
19077for ac_func in setsid setlogin
19078do
19079as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19080{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19081$as_echo_n "checking for $ac_func... " >&6; }
19082if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19083 $as_echo_n "(cached) " >&6
d9898ee8 19084else
19085 cat >conftest.$ac_ext <<_ACEOF
19086/* confdefs.h. */
19087_ACEOF
19088cat confdefs.h >>conftest.$ac_ext
19089cat >>conftest.$ac_ext <<_ACEOF
19090/* end confdefs.h. */
8d138742
CE
19091/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19092 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19093#define $ac_func innocuous_$ac_func
19094
19095/* System header to define __stub macros and hopefully few prototypes,
19096 which can conflict with char $ac_func (); below.
19097 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19098 <limits.h> exists even on freestanding compilers. */
19099
19100#ifdef __STDC__
19101# include <limits.h>
19102#else
19103# include <assert.h>
d9898ee8 19104#endif
8d138742
CE
19105
19106#undef $ac_func
19107
19108/* Override any GCC internal prototype to avoid an error.
19109 Use char because int might match the return type of a GCC
19110 builtin and then its argument prototype would still apply. */
19111#ifdef __cplusplus
19112extern "C"
19113#endif
19114char $ac_func ();
19115/* The GNU C library defines this for functions which it implements
19116 to always fail with ENOSYS. Some functions are actually named
19117 something starting with __ and the normal name is an alias. */
19118#if defined __stub_$ac_func || defined __stub___$ac_func
19119choke me
d9898ee8 19120#endif
19121
19122int
19123main ()
19124{
8d138742 19125return $ac_func ();
d9898ee8 19126 ;
19127 return 0;
19128}
19129_ACEOF
8d138742
CE
19130rm -f conftest.$ac_objext conftest$ac_exeext
19131if { (ac_try="$ac_link"
dd184caf 19132case "(($ac_try" in
19133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19134 *) ac_try_echo=$ac_try;;
19135esac
8d138742
CE
19136eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19137$as_echo "$ac_try_echo") >&5
19138 (eval "$ac_link") 2>conftest.er1
d9898ee8 19139 ac_status=$?
19140 grep -v '^ *+' conftest.er1 >conftest.err
19141 rm -f conftest.er1
19142 cat conftest.err >&5
8d138742 19143 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 19144 (exit $ac_status); } && {
19145 test -z "$ac_c_werror_flag" ||
19146 test ! -s conftest.err
8d138742
CE
19147 } && test -s conftest$ac_exeext && {
19148 test "$cross_compiling" = yes ||
19149 $as_test_x conftest$ac_exeext
19150 }; then
19151 eval "$as_ac_var=yes"
d9898ee8 19152else
8d138742 19153 $as_echo "$as_me: failed program was:" >&5
d9898ee8 19154sed 's/^/| /' conftest.$ac_ext >&5
19155
8d138742 19156 eval "$as_ac_var=no"
d9898ee8 19157fi
dd184caf 19158
8d138742
CE
19159rm -rf conftest.dSYM
19160rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19161 conftest$ac_exeext conftest.$ac_ext
d9898ee8 19162fi
8d138742
CE
19163ac_res=`eval 'as_val=${'$as_ac_var'}
19164 $as_echo "$as_val"'`
19165 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19166$as_echo "$ac_res" >&6; }
19167as_val=`eval 'as_val=${'$as_ac_var'}
19168 $as_echo "$as_val"'`
19169 if test "x$as_val" = x""yes; then
19170 cat >>confdefs.h <<_ACEOF
19171#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
d9898ee8 19172_ACEOF
19173
19174fi
8d138742 19175done
d9898ee8 19176
8d138742
CE
19177{ $as_echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
19178$as_echo_n "checking for crypt in -lcrypt... " >&6; }
19179if test "${ac_cv_lib_crypt_crypt+set}" = set; then
19180 $as_echo_n "(cached) " >&6
d9898ee8 19181else
8d138742
CE
19182 ac_check_lib_save_LIBS=$LIBS
19183LIBS="-lcrypt $LIBS"
d9898ee8 19184cat >conftest.$ac_ext <<_ACEOF
19185/* confdefs.h. */
19186_ACEOF
19187cat confdefs.h >>conftest.$ac_ext
19188cat >>conftest.$ac_ext <<_ACEOF
19189/* end confdefs.h. */
8d138742
CE
19190
19191/* Override any GCC internal prototype to avoid an error.
19192 Use char because int might match the return type of a GCC
19193 builtin and then its argument prototype would still apply. */
19194#ifdef __cplusplus
19195extern "C"
19196#endif
19197char crypt ();
19198int
19199main ()
19200{
19201return crypt ();
19202 ;
19203 return 0;
19204}
d9898ee8 19205_ACEOF
8d138742
CE
19206rm -f conftest.$ac_objext conftest$ac_exeext
19207if { (ac_try="$ac_link"
dd184caf 19208case "(($ac_try" in
19209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19210 *) ac_try_echo=$ac_try;;
19211esac
8d138742
CE
19212eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19213$as_echo "$ac_try_echo") >&5
19214 (eval "$ac_link") 2>conftest.er1
d9898ee8 19215 ac_status=$?
19216 grep -v '^ *+' conftest.er1 >conftest.err
19217 rm -f conftest.er1
19218 cat conftest.err >&5
8d138742 19219 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 19220 (exit $ac_status); } && {
19221 test -z "$ac_c_werror_flag" ||
19222 test ! -s conftest.err
8d138742
CE
19223 } && test -s conftest$ac_exeext && {
19224 test "$cross_compiling" = yes ||
19225 $as_test_x conftest$ac_exeext
19226 }; then
19227 ac_cv_lib_crypt_crypt=yes
d9898ee8 19228else
8d138742 19229 $as_echo "$as_me: failed program was:" >&5
d9898ee8 19230sed 's/^/| /' conftest.$ac_ext >&5
19231
8d138742 19232 ac_cv_lib_crypt_crypt=no
d9898ee8 19233fi
dd184caf 19234
8d138742
CE
19235rm -rf conftest.dSYM
19236rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19237 conftest$ac_exeext conftest.$ac_ext
19238LIBS=$ac_check_lib_save_LIBS
19239fi
19240{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
19241$as_echo "$ac_cv_lib_crypt_crypt" >&6; }
19242if test "x$ac_cv_lib_crypt_crypt" = x""yes; then
19243 CRYPTLIBS="-lcrypt"
19244fi
d9898ee8 19245
8d138742
CE
19246saveLIBS="$LIBS"
19247LIBS="$CRYPTLIBS $LIBS"
19248{ $as_echo "$as_me:$LINENO: checking for crypt" >&5
19249$as_echo_n "checking for crypt... " >&6; }
19250if test "${ac_cv_func_crypt+set}" = set; then
19251 $as_echo_n "(cached) " >&6
19252else
19253 cat >conftest.$ac_ext <<_ACEOF
d9898ee8 19254/* confdefs.h. */
19255_ACEOF
19256cat confdefs.h >>conftest.$ac_ext
19257cat >>conftest.$ac_ext <<_ACEOF
19258/* end confdefs.h. */
8d138742
CE
19259/* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
19260 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19261#define crypt innocuous_crypt
19262
19263/* System header to define __stub macros and hopefully few prototypes,
19264 which can conflict with char crypt (); below.
19265 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19266 <limits.h> exists even on freestanding compilers. */
19267
19268#ifdef __STDC__
19269# include <limits.h>
19270#else
19271# include <assert.h>
19272#endif
19273
19274#undef crypt
19275
19276/* Override any GCC internal prototype to avoid an error.
19277 Use char because int might match the return type of a GCC
19278 builtin and then its argument prototype would still apply. */
19279#ifdef __cplusplus
19280extern "C"
19281#endif
19282char crypt ();
19283/* The GNU C library defines this for functions which it implements
19284 to always fail with ENOSYS. Some functions are actually named
19285 something starting with __ and the normal name is an alias. */
19286#if defined __stub_crypt || defined __stub___crypt
19287choke me
19288#endif
19289
19290int
19291main ()
19292{
19293return crypt ();
19294 ;
19295 return 0;
19296}
d9898ee8 19297_ACEOF
8d138742
CE
19298rm -f conftest.$ac_objext conftest$ac_exeext
19299if { (ac_try="$ac_link"
dd184caf 19300case "(($ac_try" in
19301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19302 *) ac_try_echo=$ac_try;;
19303esac
8d138742
CE
19304eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19305$as_echo "$ac_try_echo") >&5
19306 (eval "$ac_link") 2>conftest.er1
d9898ee8 19307 ac_status=$?
19308 grep -v '^ *+' conftest.er1 >conftest.err
19309 rm -f conftest.er1
19310 cat conftest.err >&5
8d138742
CE
19311 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19312 (exit $ac_status); } && {
19313 test -z "$ac_c_werror_flag" ||
dd184caf 19314 test ! -s conftest.err
8d138742
CE
19315 } && test -s conftest$ac_exeext && {
19316 test "$cross_compiling" = yes ||
19317 $as_test_x conftest$ac_exeext
dd184caf 19318 }; then
8d138742 19319 ac_cv_func_crypt=yes
d9898ee8 19320else
8d138742 19321 $as_echo "$as_me: failed program was:" >&5
d9898ee8 19322sed 's/^/| /' conftest.$ac_ext >&5
19323
8d138742 19324 ac_cv_func_crypt=no
d9898ee8 19325fi
dd184caf 19326
8d138742
CE
19327rm -rf conftest.dSYM
19328rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19329 conftest$ac_exeext conftest.$ac_ext
d9898ee8 19330fi
8d138742
CE
19331{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
19332$as_echo "$ac_cv_func_crypt" >&6; }
19333if test "x$ac_cv_func_crypt" = x""yes; then
d9898ee8 19334
8d138742
CE
19335cat >>confdefs.h <<_ACEOF
19336#define HAVE_CRYPT 1
d9898ee8 19337_ACEOF
19338
19339fi
19340
8d138742
CE
19341LIBS="$saveLIBS"
19342{ $as_echo "$as_me:$LINENO: checking for crypt() prototype" >&5
19343$as_echo_n "checking for crypt() prototype... " >&6; }
19344if test "${userdb_cv_NEED_CRYPT_PROTOTYPE+set}" = set; then
19345 $as_echo_n "(cached) " >&6
d9898ee8 19346else
19347 cat >conftest.$ac_ext <<_ACEOF
19348/* confdefs.h. */
19349_ACEOF
19350cat confdefs.h >>conftest.$ac_ext
19351cat >>conftest.$ac_ext <<_ACEOF
8d138742
CE
19352/* end confdefs.h. */
19353
19354 #if HAVE_CRYPT_H
19355 #include <crypt.h>
19356 #endif
19357 #if HAVE_UNISTD_H
19358 #include <unistd.h>
19359 #endif
19360 int crypt(int, int);
19361
19362
19363int
19364main ()
19365{
d9898ee8 19366
19367 ;
19368 return 0;
19369}
19370_ACEOF
19371rm -f conftest.$ac_objext
dd184caf 19372if { (ac_try="$ac_compile"
19373case "(($ac_try" in
19374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19375 *) ac_try_echo=$ac_try;;
19376esac
8d138742
CE
19377eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19378$as_echo "$ac_try_echo") >&5
dd184caf 19379 (eval "$ac_compile") 2>conftest.er1
d9898ee8 19380 ac_status=$?
19381 grep -v '^ *+' conftest.er1 >conftest.err
19382 rm -f conftest.er1
19383 cat conftest.err >&5
8d138742 19384 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 19385 (exit $ac_status); } && {
19386 test -z "$ac_c_werror_flag" ||
19387 test ! -s conftest.err
19388 } && test -s conftest.$ac_objext; then
8d138742 19389 userdb_cv_NEED_CRYPT_PROTOTYPE=1
d9898ee8 19390else
8d138742 19391 $as_echo "$as_me: failed program was:" >&5
d9898ee8 19392sed 's/^/| /' conftest.$ac_ext >&5
19393
8d138742 19394 userdb_cv_NEED_CRYPT_PROTOTYPE=0
d9898ee8 19395fi
dd184caf 19396
19397rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8d138742
CE
19398
19399
d9898ee8 19400fi
8d138742
CE
19401{ $as_echo "$as_me:$LINENO: result: $userdb_cv_NEED_CRYPT_PROTOTYPE" >&5
19402$as_echo "$userdb_cv_NEED_CRYPT_PROTOTYPE" >&6; }
d9898ee8 19403
8d138742
CE
19404
19405cat >>confdefs.h <<_ACEOF
19406#define NEED_CRYPT_PROTOTYPE $userdb_cv_NEED_CRYPT_PROTOTYPE
d9898ee8 19407_ACEOF
19408
8d138742
CE
19409
19410
19411
19412
19413
19414
19415# Check whether --with-authdaemonrc was given.
19416if test "${with_authdaemonrc+set}" = set; then
19417 withval=$with_authdaemonrc; authdaemonrc="$withval"
19418else
19419 authdaemonrc="$pkgconfdir/authdaemonrc"
19420fi
19421
19422
19423
19424
19425# Check whether --with-authdaemonvar was given.
19426if test "${with_authdaemonvar+set}" = set; then
19427 withval=$with_authdaemonvar; authdaemonvar="$withval"
19428else
19429 authdaemonvar="$localstatedir/spool/authdaemon"
d9898ee8 19430fi
19431
8d138742
CE
19432
19433
19434
19435
19436
19437rm -f authdaemonrc.h authldaprc.h authmysqlrc.h authpgsqlrc.h vpopmail_config.h
19438
19439
19440result=""
19441
19442if test -x "$COURIERCONFIG"
19443then
19444 $COURIERCONFIG >conftest.out || exit 1
19445 sed -n '/^mail/p' <conftest.out >conftest2.out || exit 1
19446 . ./conftest2.out
19447 rm -f conftest.out conftest2.out
19448
19449 cmailuser="$mailuser"
19450 cmailgroup="$mailgroup"
19451 result=" (from courier-config)"
19452fi
19453
19454if test -x "$bindir/courierauthconfig"
19455then
19456 $bindir/courierauthconfig --configfiles >conftest.out || exit 1
19457 sed -n '/^mail/p' <conftest.out >conftest2.out || exit 1
19458 . ./conftest2.out
19459 rm -f conftest.out conftest2.out
19460
19461 cmailuser="$mailuser"
19462 cmailgroup="$mailgroup"
19463 result=" (from previous courierauthconfig)"
19464fi
19465
19466
19467
19468LB='['
19469RB=']'
19470
19471
19472
19473{ $as_echo "$as_me:$LINENO: checking for mail userid" >&5
19474$as_echo_n "checking for mail userid... " >&6; }
19475
19476
19477# Check whether --with-mailuser was given.
19478if test "${with_mailuser+set}" = set; then
19479 withval=$with_mailuser; mailuser="$withval"
19480else
19481 if test "$cmailuser" = ""
19482 then
19483 if test "$cross_compiling" = yes; then
19484 { { $as_echo "$as_me:$LINENO: error: Must use --with-mailuser when cross compiling." >&5
19485$as_echo "$as_me: error: Must use --with-mailuser when cross compiling." >&2;}
19486 { (exit 1); exit 1; }; }
d9898ee8 19487else
19488 cat >conftest.$ac_ext <<_ACEOF
19489/* confdefs.h. */
19490_ACEOF
19491cat confdefs.h >>conftest.$ac_ext
19492cat >>conftest.$ac_ext <<_ACEOF
19493/* end confdefs.h. */
8d138742
CE
19494
19495#include <stdio.h>
19496#include <pwd.h>
19497#include <stdlib.h>
19498
19499static const char *ids $LB $RB={"courier","daemon","adm","bin","root", 0};
19500
19501int main()
d9898ee8 19502{
8d138742
CE
19503int i;
19504FILE *f;
19505char *p;
19506
19507 for (i=0; ids $LB i $RB; i++)
19508 if (getpwnam(ids $LB i $RB)) break;
19509
19510 f=fopen("conftest.out", "w");
19511 if (f && ids $LB i $RB)
19512 {
19513 fprintf(f, "%s\n", ids $LB i $RB);
19514 fclose(f);
19515 exit(0);
19516 }
19517 fclose(f);
19518 exit (1);
19519 return (1);
d9898ee8 19520}
8d138742 19521
d9898ee8 19522_ACEOF
8d138742
CE
19523rm -f conftest$ac_exeext
19524if { (ac_try="$ac_link"
dd184caf 19525case "(($ac_try" in
19526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19527 *) ac_try_echo=$ac_try;;
19528esac
8d138742
CE
19529eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19530$as_echo "$ac_try_echo") >&5
19531 (eval "$ac_link") 2>&5
d9898ee8 19532 ac_status=$?
8d138742
CE
19533 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19534 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19535 { (case "(($ac_try" in
19536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19537 *) ac_try_echo=$ac_try;;
19538esac
19539eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19540$as_echo "$ac_try_echo") >&5
19541 (eval "$ac_try") 2>&5
19542 ac_status=$?
19543 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19544 (exit $ac_status); }; }; then
19545 mailuser=`cat conftest.out`
d9898ee8 19546else
8d138742
CE
19547 $as_echo "$as_me: program exited with status $ac_status" >&5
19548$as_echo "$as_me: failed program was:" >&5
d9898ee8 19549sed 's/^/| /' conftest.$ac_ext >&5
19550
8d138742
CE
19551( exit $ac_status )
19552{ { $as_echo "$as_me:$LINENO: error: Cannot determine mail user" >&5
19553$as_echo "$as_me: error: Cannot determine mail user" >&2;}
19554 { (exit use --with-mailuser.); exit use --with-mailuser.; }; }
d9898ee8 19555fi
8d138742
CE
19556rm -rf conftest.dSYM
19557rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d9898ee8 19558fi
d9898ee8 19559
d9898ee8 19560
8d138742
CE
19561 else
19562 mailuser="$cmailuser"
19563 fi
19564 ac_configure_args="$ac_configure_args --with-mailuser=$mailuser"
d9898ee8 19565fi
19566
8d138742
CE
19567
19568{ $as_echo "$as_me:$LINENO: result: $mailuser $result" >&5
19569$as_echo "$mailuser $result" >&6; }
19570
19571{ $as_echo "$as_me:$LINENO: checking for mail group id" >&5
19572$as_echo_n "checking for mail group id... " >&6; }
19573
19574
19575# Check whether --with-mailgroup was given.
19576if test "${with_mailgroup+set}" = set; then
19577 withval=$with_mailgroup; mailgroup="$withval"
19578else
19579 if test "$cmailgroup" = ""
19580 then
19581 if test "$cross_compiling" = yes; then
19582 { { $as_echo "$as_me:$LINENO: error: Must use --with-mailgroup when cross compiling." >&5
19583$as_echo "$as_me: error: Must use --with-mailgroup when cross compiling." >&2;}
19584 { (exit 1); exit 1; }; }
d9898ee8 19585else
19586 cat >conftest.$ac_ext <<_ACEOF
19587/* confdefs.h. */
19588_ACEOF
19589cat confdefs.h >>conftest.$ac_ext
19590cat >>conftest.$ac_ext <<_ACEOF
19591/* end confdefs.h. */
8d138742
CE
19592
19593#include <stdio.h>
19594#include <grp.h>
19595#include <stdlib.h>
19596
19597static const char *ids $LB $RB={"courier", "daemon","sys","adm", "root", 0};
19598
19599int main()
19600{
19601int i;
19602FILE *f;
19603
19604 for (i=0; ids $LB i $RB; i++)
19605 if (getgrnam(ids $LB i $RB)) break;
19606
19607 f=fopen("conftest.out", "w");
19608 if (f && ids $LB i $RB)
19609 {
19610 fprintf(f, "%s\n", ids $LB i $RB);
19611 fclose(f);
19612 exit(0);
19613 }
19614 fclose(f);
19615 exit (1);
19616 return (1);
19617}
d9898ee8 19618
19619_ACEOF
8d138742
CE
19620rm -f conftest$ac_exeext
19621if { (ac_try="$ac_link"
19622case "(($ac_try" in
19623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19624 *) ac_try_echo=$ac_try;;
19625esac
19626eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19627$as_echo "$ac_try_echo") >&5
19628 (eval "$ac_link") 2>&5
19629 ac_status=$?
19630 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19631 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19632 { (case "(($ac_try" in
19633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19634 *) ac_try_echo=$ac_try;;
19635esac
19636eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19637$as_echo "$ac_try_echo") >&5
19638 (eval "$ac_try") 2>&5
19639 ac_status=$?
19640 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19641 (exit $ac_status); }; }; then
19642 mailgroup=`cat conftest.out`
d9898ee8 19643else
8d138742
CE
19644 $as_echo "$as_me: program exited with status $ac_status" >&5
19645$as_echo "$as_me: failed program was:" >&5
19646sed 's/^/| /' conftest.$ac_ext >&5
19647
19648( exit $ac_status )
19649{ { $as_echo "$as_me:$LINENO: error: Cannot determine mail group" >&5
19650$as_echo "$as_me: error: Cannot determine mail group" >&2;}
19651 { (exit use --with-mailgroup.); exit use --with-mailgroup.; }; }
d9898ee8 19652fi
8d138742
CE
19653rm -rf conftest.dSYM
19654rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19655fi
19656
19657
19658 else
19659 mailgroup="$cmailgroup"
19660 fi
19661 ac_configure_args="$ac_configure_args --with-mailgroup=$mailgroup"
d9898ee8 19662
19663fi
d9898ee8 19664
8d138742
CE
19665{ $as_echo "$as_me:$LINENO: result: $mailgroup $result" >&5
19666$as_echo "$mailgroup $result" >&6; }
d9898ee8 19667
19668
8d138742
CE
19669rm -f conftest.out
19670
19671
19672# Check whether --with-stdheaderdir was given.
19673if test "${with_stdheaderdir+set}" = set; then
19674 withval=$with_stdheaderdir;
19675 if test "$withval" = "no"
19676 then
19677
19678cat >>confdefs.h <<_ACEOF
19679#define HAVE_NOSTDHEADERDIR 1
d9898ee8 19680_ACEOF
19681
8d138742
CE
19682 fi
19683
d9898ee8 19684fi
19685
8d138742
CE
19686
19687{ $as_echo "$as_me:$LINENO: checking for socklen_t" >&5
19688$as_echo_n "checking for socklen_t... " >&6; }
19689if test "${authlib_cv_hassocklen_t+set}" = set; then
19690 $as_echo_n "(cached) " >&6
d9898ee8 19691else
19692 cat >conftest.$ac_ext <<_ACEOF
19693/* confdefs.h. */
19694_ACEOF
19695cat confdefs.h >>conftest.$ac_ext
19696cat >>conftest.$ac_ext <<_ACEOF
19697/* end confdefs.h. */
8d138742 19698
d9898ee8 19699#include <sys/types.h>
8d138742
CE
19700#include <sys/socket.h>
19701
19702socklen_t sl_t;
d9898ee8 19703
d9898ee8 19704_ACEOF
19705rm -f conftest.$ac_objext
dd184caf 19706if { (ac_try="$ac_compile"
19707case "(($ac_try" in
19708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19709 *) ac_try_echo=$ac_try;;
19710esac
8d138742
CE
19711eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19712$as_echo "$ac_try_echo") >&5
dd184caf 19713 (eval "$ac_compile") 2>conftest.er1
d9898ee8 19714 ac_status=$?
19715 grep -v '^ *+' conftest.er1 >conftest.err
19716 rm -f conftest.er1
19717 cat conftest.err >&5
8d138742 19718 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 19719 (exit $ac_status); } && {
19720 test -z "$ac_c_werror_flag" ||
19721 test ! -s conftest.err
19722 } && test -s conftest.$ac_objext; then
8d138742 19723 authlib_cv_hassocklen_t=yes
d9898ee8 19724else
8d138742 19725 $as_echo "$as_me: failed program was:" >&5
d9898ee8 19726sed 's/^/| /' conftest.$ac_ext >&5
19727
8d138742 19728 authlib_cv_hassocklen_t=no
d9898ee8 19729fi
dd184caf 19730
19731rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8d138742 19732
d9898ee8 19733fi
8d138742
CE
19734{ $as_echo "$as_me:$LINENO: result: $authlib_cv_hassocklen_t" >&5
19735$as_echo "$authlib_cv_hassocklen_t" >&6; }
19736
19737socklen_t="int"
19738
19739if test $authlib_cv_hassocklen_t = yes
19740then
19741 :
19742else
d9898ee8 19743
19744cat >>confdefs.h <<_ACEOF
8d138742 19745#define socklen_t int
d9898ee8 19746_ACEOF
19747
8d138742
CE
19748fi
19749
d9898ee8 19750
8d138742
CE
19751# Check whether --with-repository was given.
19752if test "${with_repository+set}" = set; then
19753 withval=$with_repository; REPOSITORY="$withval"
19754fi
d9898ee8 19755
19756
19757
8d138742
CE
19758 if test -d ${srcdir}/docbook; then
19759 HAVE_SGML_TRUE=
19760 HAVE_SGML_FALSE='#'
d9898ee8 19761else
8d138742
CE
19762 HAVE_SGML_TRUE='#'
19763 HAVE_SGML_FALSE=
19764fi
d9898ee8 19765
8d138742 19766subdirs="$subdirs bdbobj gdbmobj md5 sha1 libhmac numlib makedat userdb unicode rfc822 random128 liblock liblog"
d9898ee8 19767
d9898ee8 19768
8d138742 19769ac_config_files="$ac_config_files Makefile authdaemond authdaemonrc authsystem.passwd README.authdebug.html dbobj.config dbobj.h authmigrate courier-authlib.spec courier-authlib.lpspec courier-authlib.sysvinit userdb-test-cram-md5.pl"
d9898ee8 19770
8d138742
CE
19771cat >confcache <<\_ACEOF
19772# This file is a shell script that caches the results of configure
19773# tests run on this system so they can be shared between configure
19774# scripts and configure runs, see configure's option --config-cache.
19775# It is not useful on other systems. If it contains results you don't
19776# want to keep, you may remove or edit it.
19777#
19778# config.status only pays attention to the cache file if you give it
19779# the --recheck option to rerun configure.
19780#
19781# `ac_cv_env_foo' variables (set or unset) will be overridden when
19782# loading this file, other *unset* `ac_cv_foo' will be assigned the
19783# following values.
d9898ee8 19784
d9898ee8 19785_ACEOF
d9898ee8 19786
8d138742
CE
19787# The following way of writing the cache mishandles newlines in values,
19788# but we know of no workaround that is simple, portable, and efficient.
19789# So, we kill variables containing newlines.
19790# Ultrix sh set writes to stderr and can't be redirected directly,
19791# and sets the high bit in the cache file unless we assign to the vars.
19792(
19793 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19794 eval ac_val=\$$ac_var
19795 case $ac_val in #(
19796 *${as_nl}*)
19797 case $ac_var in #(
19798 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
19799$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19800 esac
19801 case $ac_var in #(
19802 _ | IFS | as_nl) ;; #(
19803 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19804 *) $as_unset $ac_var ;;
19805 esac ;;
19806 esac
19807 done
dd184caf 19808
8d138742
CE
19809 (set) 2>&1 |
19810 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19811 *${as_nl}ac_space=\ *)
19812 # `set' does not quote correctly, so add quotes (double-quote
19813 # substitution turns \\\\ into \\, and sed turns \\ into \).
19814 sed -n \
19815 "s/'/'\\\\''/g;
19816 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19817 ;; #(
19818 *)
19819 # `set' quotes correctly as required by POSIX, so do not add quotes.
19820 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19821 ;;
19822 esac |
19823 sort
19824) |
19825 sed '
19826 /^ac_cv_env_/b end
19827 t clear
19828 :clear
19829 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19830 t end
19831 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19832 :end' >>confcache
19833if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19834 if test -w "$cache_file"; then
19835 test "x$cache_file" != "x/dev/null" &&
19836 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
19837$as_echo "$as_me: updating cache $cache_file" >&6;}
19838 cat confcache >$cache_file
19839 else
19840 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
19841$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19842 fi
d9898ee8 19843fi
8d138742 19844rm -f confcache
d9898ee8 19845
8d138742
CE
19846test "x$prefix" = xNONE && prefix=$ac_default_prefix
19847# Let make expand exec_prefix.
19848test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19849
19850DEFS=-DHAVE_CONFIG_H
19851
19852ac_libobjs=
19853ac_ltlibobjs=
19854for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19855 # 1. Remove the extension, and $U if already installed.
19856 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19857 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19858 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19859 # will be set to the directory where LIBOBJS objects are built.
19860 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19861 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
d9898ee8 19862done
8d138742 19863LIBOBJS=$ac_libobjs
d9898ee8 19864
8d138742 19865LTLIBOBJS=$ac_ltlibobjs
d9898ee8 19866
8d138742
CE
19867
19868 if test -n "$EXEEXT"; then
19869 am__EXEEXT_TRUE=
19870 am__EXEEXT_FALSE='#'
d9898ee8 19871else
8d138742
CE
19872 am__EXEEXT_TRUE='#'
19873 am__EXEEXT_FALSE=
19874fi
d9898ee8 19875
8d138742
CE
19876if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19877 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
19878Usually this means the macro was only invoked conditionally." >&5
19879$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
19880Usually this means the macro was only invoked conditionally." >&2;}
19881 { (exit 1); exit 1; }; }
19882fi
19883if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19884 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
19885Usually this means the macro was only invoked conditionally." >&5
19886$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
19887Usually this means the macro was only invoked conditionally." >&2;}
19888 { (exit 1); exit 1; }; }
19889fi
19890if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
19891 { { $as_echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
19892Usually this means the macro was only invoked conditionally." >&5
19893$as_echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
19894Usually this means the macro was only invoked conditionally." >&2;}
19895 { (exit 1); exit 1; }; }
19896fi
19897if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
19898 { { $as_echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
19899Usually this means the macro was only invoked conditionally." >&5
19900$as_echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
19901Usually this means the macro was only invoked conditionally." >&2;}
19902 { (exit 1); exit 1; }; }
19903fi
19904LT_CONFIG_H=courier_auth_config.h
19905
19906 _ltdl_libobjs=
19907 _ltdl_ltlibobjs=
19908 if test -n "$_LT_LIBOBJS"; then
19909 # Remove the extension.
19910 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
19911 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
19912 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
19913 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
19914 done
19915 fi
19916 ltdl_LIBOBJS=$_ltdl_libobjs
19917
19918 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
19919
19920
19921if test -z "${HAVE_LDAP_TRUE}" && test -z "${HAVE_LDAP_FALSE}"; then
19922 { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_LDAP\" was never defined.
19923Usually this means the macro was only invoked conditionally." >&5
19924$as_echo "$as_me: error: conditional \"HAVE_LDAP\" was never defined.
19925Usually this means the macro was only invoked conditionally." >&2;}
19926 { (exit 1); exit 1; }; }
d9898ee8 19927fi
8d138742
CE
19928if test -z "${HAVE_AUTHPGSQL_TRUE}" && test -z "${HAVE_AUTHPGSQL_FALSE}"; then
19929 { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_AUTHPGSQL\" was never defined.
19930Usually this means the macro was only invoked conditionally." >&5
19931$as_echo "$as_me: error: conditional \"HAVE_AUTHPGSQL\" was never defined.
19932Usually this means the macro was only invoked conditionally." >&2;}
19933 { (exit 1); exit 1; }; }
d9898ee8 19934fi
8d138742
CE
19935if test -z "${HAVE_AUTHMYSQL_TRUE}" && test -z "${HAVE_AUTHMYSQL_FALSE}"; then
19936 { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_AUTHMYSQL\" was never defined.
19937Usually this means the macro was only invoked conditionally." >&5
19938$as_echo "$as_me: error: conditional \"HAVE_AUTHMYSQL\" was never defined.
19939Usually this means the macro was only invoked conditionally." >&2;}
19940 { (exit 1); exit 1; }; }
19941fi
19942if test -z "${HAVE_CUSTOM_TRUE}" && test -z "${HAVE_CUSTOM_FALSE}"; then
19943 { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_CUSTOM\" was never defined.
19944Usually this means the macro was only invoked conditionally." >&5
19945$as_echo "$as_me: error: conditional \"HAVE_CUSTOM\" was never defined.
19946Usually this means the macro was only invoked conditionally." >&2;}
19947 { (exit 1); exit 1; }; }
19948fi
19949if test -z "${HAVE_PIPE_TRUE}" && test -z "${HAVE_PIPE_FALSE}"; then
19950 { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_PIPE\" was never defined.
19951Usually this means the macro was only invoked conditionally." >&5
19952$as_echo "$as_me: error: conditional \"HAVE_PIPE\" was never defined.
19953Usually this means the macro was only invoked conditionally." >&2;}
19954 { (exit 1); exit 1; }; }
19955fi
19956if test -z "${HAVE_SGML_TRUE}" && test -z "${HAVE_SGML_FALSE}"; then
19957 { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_SGML\" was never defined.
19958Usually this means the macro was only invoked conditionally." >&5
19959$as_echo "$as_me: error: conditional \"HAVE_SGML\" was never defined.
19960Usually this means the macro was only invoked conditionally." >&2;}
19961 { (exit 1); exit 1; }; }
d9898ee8 19962fi
19963
8d138742
CE
19964: ${CONFIG_STATUS=./config.status}
19965ac_write_fail=0
19966ac_clean_files_save=$ac_clean_files
19967ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19968{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19969$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19970cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19971#! $SHELL
19972# Generated by $as_me.
19973# Run this file to recreate the current configuration.
19974# Compiler output produced by configure, useful for debugging
19975# configure, is in config.log if it exists.
19976
19977debug=false
19978ac_cs_recheck=false
19979ac_cs_silent=false
19980SHELL=\${CONFIG_SHELL-$SHELL}
d9898ee8 19981_ACEOF
d9898ee8 19982
8d138742
CE
19983cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19984## --------------------- ##
19985## M4sh Initialization. ##
19986## --------------------- ##
d9898ee8 19987
8d138742
CE
19988# Be more Bourne compatible
19989DUALCASE=1; export DUALCASE # for MKS sh
19990if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19991 emulate sh
19992 NULLCMD=:
19993 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19994 # is contrary to our usage. Disable this feature.
19995 alias -g '${1+"$@"}'='"$@"'
19996 setopt NO_GLOB_SUBST
19997else
19998 case `(set -o) 2>/dev/null` in
19999 *posix*) set -o posix ;;
20000esac
d9898ee8 20001
8d138742 20002fi
d9898ee8 20003
d9898ee8 20004
d9898ee8 20005
dd184caf 20006
8d138742
CE
20007# PATH needs CR
20008# Avoid depending upon Character Ranges.
20009as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20010as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20011as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20012as_cr_digits='0123456789'
20013as_cr_alnum=$as_cr_Letters$as_cr_digits
d9898ee8 20014
8d138742
CE
20015as_nl='
20016'
20017export as_nl
20018# Printing a long string crashes Solaris 7 /usr/bin/printf.
20019as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20020as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20021as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20022if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20023 as_echo='printf %s\n'
20024 as_echo_n='printf %s'
20025else
20026 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20027 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20028 as_echo_n='/usr/ucb/echo -n'
20029 else
20030 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20031 as_echo_n_body='eval
20032 arg=$1;
20033 case $arg in
20034 *"$as_nl"*)
20035 expr "X$arg" : "X\\(.*\\)$as_nl";
20036 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20037 esac;
20038 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20039 '
20040 export as_echo_n_body
20041 as_echo_n='sh -c $as_echo_n_body as_echo'
20042 fi
20043 export as_echo_body
20044 as_echo='sh -c $as_echo_body as_echo'
20045fi
d9898ee8 20046
8d138742
CE
20047# The user is always right.
20048if test "${PATH_SEPARATOR+set}" != set; then
20049 PATH_SEPARATOR=:
20050 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20051 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20052 PATH_SEPARATOR=';'
20053 }
d9898ee8 20054fi
20055
8d138742
CE
20056# Support unset when possible.
20057if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20058 as_unset=unset
d9898ee8 20059else
8d138742
CE
20060 as_unset=false
20061fi
d9898ee8 20062
d9898ee8 20063
8d138742
CE
20064# IFS
20065# We need space, tab and new line, in precisely that order. Quoting is
20066# there to prevent editors from complaining about space-tab.
20067# (If _AS_PATH_WALK were called with IFS unset, it would disable word
20068# splitting by setting IFS to empty value.)
20069IFS=" "" $as_nl"
d9898ee8 20070
8d138742
CE
20071# Find who we are. Look in the path if we contain no directory separator.
20072case $0 in
20073 *[\\/]* ) as_myself=$0 ;;
20074 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20075for as_dir in $PATH
20076do
20077 IFS=$as_save_IFS
20078 test -z "$as_dir" && as_dir=.
20079 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20080done
20081IFS=$as_save_IFS
d9898ee8 20082
8d138742 20083 ;;
dd184caf 20084esac
8d138742
CE
20085# We did not find ourselves, most probably we were run as `sh COMMAND'
20086# in which case we are not to be found in the path.
20087if test "x$as_myself" = x; then
20088 as_myself=$0
20089fi
20090if test ! -f "$as_myself"; then
20091 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20092 { (exit 1); exit 1; }
d9898ee8 20093fi
dd184caf 20094
8d138742
CE
20095# Work around bugs in pre-3.0 UWIN ksh.
20096for as_var in ENV MAIL MAILPATH
20097do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20098done
20099PS1='$ '
20100PS2='> '
20101PS4='+ '
d9898ee8 20102
8d138742
CE
20103# NLS nuisances.
20104LC_ALL=C
20105export LC_ALL
20106LANGUAGE=C
20107export LANGUAGE
20108
20109# Required to use basename.
20110if expr a : '\(a\)' >/dev/null 2>&1 &&
20111 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20112 as_expr=expr
20113else
20114 as_expr=false
20115fi
d9898ee8 20116
8d138742
CE
20117if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20118 as_basename=basename
20119else
20120 as_basename=false
d9898ee8 20121fi
d9898ee8 20122
20123
8d138742
CE
20124# Name of the executable.
20125as_me=`$as_basename -- "$0" ||
20126$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20127 X"$0" : 'X\(//\)$' \| \
20128 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20129$as_echo X/"$0" |
20130 sed '/^.*\/\([^/][^/]*\)\/*$/{
20131 s//\1/
20132 q
20133 }
20134 /^X\/\(\/\/\)$/{
20135 s//\1/
20136 q
20137 }
20138 /^X\/\(\/\).*/{
20139 s//\1/
20140 q
20141 }
20142 s/.*/./; q'`
20143
20144# CDPATH.
20145$as_unset CDPATH
d9898ee8 20146
20147
20148
8d138742
CE
20149 as_lineno_1=$LINENO
20150 as_lineno_2=$LINENO
20151 test "x$as_lineno_1" != "x$as_lineno_2" &&
20152 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
d9898ee8 20153
8d138742
CE
20154 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20155 # uniformly replaced by the line number. The first 'sed' inserts a
20156 # line-number line after each line using $LINENO; the second 'sed'
20157 # does the real work. The second script uses 'N' to pair each
20158 # line-number line with the line containing $LINENO, and appends
20159 # trailing '-' during substitution so that $LINENO is not a special
20160 # case at line end.
20161 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20162 # scripts with optimization help from Paolo Bonzini. Blame Lee
20163 # E. McMahon (1931-1989) for sed's syntax. :-)
20164 sed -n '
20165 p
20166 /[$]LINENO/=
20167 ' <$as_myself |
20168 sed '
20169 s/[$]LINENO.*/&-/
20170 t lineno
20171 b
20172 :lineno
20173 N
20174 :loop
20175 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20176 t loop
20177 s/-\n.*//
20178 ' >$as_me.lineno &&
20179 chmod +x "$as_me.lineno" ||
20180 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20181 { (exit 1); exit 1; }; }
d9898ee8 20182
8d138742
CE
20183 # Don't try to exec as it changes $[0], causing all sort of problems
20184 # (the dirname of $[0] is not the place where we might find the
20185 # original and so on. Autoconf is especially sensitive to this).
20186 . "./$as_me.lineno"
20187 # Exit status is that of the last command.
20188 exit
20189}
d9898ee8 20190
20191
8d138742
CE
20192if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20193 as_dirname=dirname
d9898ee8 20194else
8d138742 20195 as_dirname=false
dd184caf 20196fi
d9898ee8 20197
8d138742
CE
20198ECHO_C= ECHO_N= ECHO_T=
20199case `echo -n x` in
20200-n*)
20201 case `echo 'x\c'` in
20202 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20203 *) ECHO_C='\c';;
20204 esac;;
20205*)
20206 ECHO_N='-n';;
20207esac
20208if expr a : '\(a\)' >/dev/null 2>&1 &&
20209 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20210 as_expr=expr
d9898ee8 20211else
8d138742 20212 as_expr=false
dd184caf 20213fi
20214
8d138742
CE
20215rm -f conf$$ conf$$.exe conf$$.file
20216if test -d conf$$.dir; then
20217 rm -f conf$$.dir/conf$$.file
20218else
20219 rm -f conf$$.dir
20220 mkdir conf$$.dir 2>/dev/null
20221fi
20222if (echo >conf$$.file) 2>/dev/null; then
20223 if ln -s conf$$.file conf$$ 2>/dev/null; then
20224 as_ln_s='ln -s'
20225 # ... but there are two gotchas:
20226 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20227 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20228 # In both cases, we have to default to `cp -p'.
20229 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20230 as_ln_s='cp -p'
20231 elif ln conf$$.file conf$$ 2>/dev/null; then
20232 as_ln_s=ln
20233 else
20234 as_ln_s='cp -p'
20235 fi
20236else
20237 as_ln_s='cp -p'
20238fi
20239rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20240rmdir conf$$.dir 2>/dev/null
d9898ee8 20241
8d138742
CE
20242if mkdir -p . 2>/dev/null; then
20243 as_mkdir_p=:
20244else
20245 test -d ./-p && rmdir ./-p
20246 as_mkdir_p=false
20247fi
d9898ee8 20248
8d138742
CE
20249if test -x / >/dev/null 2>&1; then
20250 as_test_x='test -x'
20251else
20252 if ls -dL / >/dev/null 2>&1; then
20253 as_ls_L_option=L
20254 else
20255 as_ls_L_option=
20256 fi
20257 as_test_x='
20258 eval sh -c '\''
20259 if test -d "$1"; then
20260 test -d "$1/.";
20261 else
20262 case $1 in
20263 -*)set "./$1";;
20264 esac;
20265 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
20266 ???[sx]*):;;*)false;;esac;fi
20267 '\'' sh
20268 '
20269fi
20270as_executable_p=$as_test_x
d9898ee8 20271
8d138742
CE
20272# Sed expression to map a string onto a valid CPP name.
20273as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
d9898ee8 20274
8d138742
CE
20275# Sed expression to map a string onto a valid variable name.
20276as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
d9898ee8 20277
d9898ee8 20278
8d138742 20279exec 6>&1
d9898ee8 20280
8d138742
CE
20281# Save the log message, to keep $[0] and so on meaningful, and to
20282# report actual input values of CONFIG_FILES etc. instead of their
20283# values after options handling.
20284ac_log="
20285This file was extended by courier-authlib $as_me 0.63.0, which was
20286generated by GNU Autoconf 2.63. Invocation command line was
d9898ee8 20287
8d138742
CE
20288 CONFIG_FILES = $CONFIG_FILES
20289 CONFIG_HEADERS = $CONFIG_HEADERS
20290 CONFIG_LINKS = $CONFIG_LINKS
20291 CONFIG_COMMANDS = $CONFIG_COMMANDS
20292 $ $0 $@
d9898ee8 20293
8d138742
CE
20294on `(hostname || uname -n) 2>/dev/null | sed 1q`
20295"
d9898ee8 20296
8d138742 20297_ACEOF
d9898ee8 20298
8d138742
CE
20299case $ac_config_files in *"
20300"*) set x $ac_config_files; shift; ac_config_files=$*;;
20301esac
d9898ee8 20302
8d138742
CE
20303case $ac_config_headers in *"
20304"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20305esac
d9898ee8 20306
20307
8d138742
CE
20308cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20309# Files that config.status was made for.
20310config_files="$ac_config_files"
20311config_headers="$ac_config_headers"
20312config_commands="$ac_config_commands"
d9898ee8 20313
8d138742 20314_ACEOF
d9898ee8 20315
8d138742
CE
20316cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20317ac_cs_usage="\
20318\`$as_me' instantiates files from templates according to the
20319current configuration.
d9898ee8 20320
8d138742 20321Usage: $0 [OPTION]... [FILE]...
d9898ee8 20322
8d138742
CE
20323 -h, --help print this help, then exit
20324 -V, --version print version number and configuration settings, then exit
20325 -q, --quiet, --silent
20326 do not print progress messages
20327 -d, --debug don't remove temporary files
20328 --recheck update $as_me by reconfiguring in the same conditions
20329 --file=FILE[:TEMPLATE]
20330 instantiate the configuration file FILE
20331 --header=FILE[:TEMPLATE]
20332 instantiate the configuration header FILE
d9898ee8 20333
8d138742
CE
20334Configuration files:
20335$config_files
d9898ee8 20336
8d138742
CE
20337Configuration headers:
20338$config_headers
d9898ee8 20339
8d138742
CE
20340Configuration commands:
20341$config_commands
d9898ee8 20342
8d138742 20343Report bugs to <bug-autoconf@gnu.org>."
d9898ee8 20344
8d138742
CE
20345_ACEOF
20346cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20347ac_cs_version="\\
20348courier-authlib config.status 0.63.0
20349configured by $0, generated by GNU Autoconf 2.63,
20350 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
d9898ee8 20351
8d138742
CE
20352Copyright (C) 2008 Free Software Foundation, Inc.
20353This config.status script is free software; the Free Software Foundation
20354gives unlimited permission to copy, distribute and modify it."
d9898ee8 20355
8d138742
CE
20356ac_pwd='$ac_pwd'
20357srcdir='$srcdir'
20358INSTALL='$INSTALL'
20359MKDIR_P='$MKDIR_P'
20360AWK='$AWK'
20361test -n "\$AWK" || AWK=awk
d9898ee8 20362_ACEOF
d9898ee8 20363
8d138742
CE
20364cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20365# The default lists apply if the user does not specify any file.
20366ac_need_defaults=:
20367while test $# != 0
20368do
20369 case $1 in
20370 --*=*)
20371 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20372 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20373 ac_shift=:
20374 ;;
20375 *)
20376 ac_option=$1
20377 ac_optarg=$2
20378 ac_shift=shift
20379 ;;
20380 esac
20381
20382 case $ac_option in
20383 # Handling of the options.
20384 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20385 ac_cs_recheck=: ;;
20386 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20387 $as_echo "$ac_cs_version"; exit ;;
20388 --debug | --debu | --deb | --de | --d | -d )
20389 debug=: ;;
20390 --file | --fil | --fi | --f )
20391 $ac_shift
20392 case $ac_optarg in
20393 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20394 esac
20395 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
20396 ac_need_defaults=false;;
20397 --header | --heade | --head | --hea )
20398 $ac_shift
20399 case $ac_optarg in
20400 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20401 esac
20402 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
20403 ac_need_defaults=false;;
20404 --he | --h)
20405 # Conflict between --help and --header
20406 { $as_echo "$as_me: error: ambiguous option: $1
20407Try \`$0 --help' for more information." >&2
20408 { (exit 1); exit 1; }; };;
20409 --help | --hel | -h )
20410 $as_echo "$ac_cs_usage"; exit ;;
20411 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20412 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20413 ac_cs_silent=: ;;
dd184caf 20414
8d138742
CE
20415 # This is an error.
20416 -*) { $as_echo "$as_me: error: unrecognized option: $1
20417Try \`$0 --help' for more information." >&2
20418 { (exit 1); exit 1; }; } ;;
dd184caf 20419
8d138742
CE
20420 *) ac_config_targets="$ac_config_targets $1"
20421 ac_need_defaults=false ;;
d9898ee8 20422
8d138742
CE
20423 esac
20424 shift
20425done
d9898ee8 20426
8d138742 20427ac_configure_extra_args=
d9898ee8 20428
8d138742
CE
20429if $ac_cs_silent; then
20430 exec 6>/dev/null
20431 ac_configure_extra_args="$ac_configure_extra_args --silent"
20432fi
d9898ee8 20433
8d138742
CE
20434_ACEOF
20435cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20436if \$ac_cs_recheck; then
20437 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20438 shift
20439 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20440 CONFIG_SHELL='$SHELL'
20441 export CONFIG_SHELL
20442 exec "\$@"
20443fi
dd184caf 20444
d9898ee8 20445_ACEOF
8d138742
CE
20446cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20447exec 5>>config.log
20448{
20449 echo
20450 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20451## Running $as_me. ##
20452_ASBOX
20453 $as_echo "$ac_log"
20454} >&5
d9898ee8 20455
8d138742
CE
20456_ACEOF
20457cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20458#
20459# INIT-COMMANDS
20460#
20461AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
d9898ee8 20462
d9898ee8 20463
8d138742
CE
20464# The HP-UX ksh and POSIX shell print the target directory to stdout
20465# if CDPATH is set.
20466(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
d9898ee8 20467
8d138742
CE
20468sed_quote_subst='$sed_quote_subst'
20469double_quote_subst='$double_quote_subst'
20470delay_variable_subst='$delay_variable_subst'
20471macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
20472macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
20473enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
20474enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
20475pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
20476enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
20477host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
20478host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
20479host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
20480build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
20481build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
20482build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
20483SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
20484Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
20485GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
20486EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
20487FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
20488LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
20489NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
20490LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
20491max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
20492ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
20493exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
20494lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
20495lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
20496lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
20497reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
20498reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20499OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
20500deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
20501file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
20502AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
20503AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
20504STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
20505RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
20506old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20507old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20508old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20509CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
20510CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
20511compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
20512GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
20513lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
20514lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
20515lt_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"`'
20516lt_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"`'
20517objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
20518SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
20519ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
20520MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
20521lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
20522lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
20523lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
20524lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
20525lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
20526need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
20527DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
20528NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
20529LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
20530OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
20531OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
20532libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
20533shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20534extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20535archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
20536enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
20537export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
20538whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
20539compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
20540old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20541old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20542archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20543archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20544module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20545module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20546with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
20547allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
20548no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
20549hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
20550hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
20551hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
20552hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
20553hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
20554hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
20555hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
20556hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
20557inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
20558link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
20559fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
20560always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
20561export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20562exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
20563include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
20564prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20565file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
20566variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
20567need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
20568need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
20569version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
20570runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
20571shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
20572shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
20573libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
20574library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
20575soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
20576postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20577postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20578finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20579finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
20580hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
20581sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
20582sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
20583hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
20584enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
20585enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
20586enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
20587old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
20588striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
20589
20590LTCC='$LTCC'
20591LTCFLAGS='$LTCFLAGS'
20592compiler='$compiler_DEFAULT'
20593
20594# Quote evaled strings.
20595for var in SED \
20596GREP \
20597EGREP \
20598FGREP \
20599LD \
20600NM \
20601LN_S \
20602lt_SP2NL \
20603lt_NL2SP \
20604reload_flag \
20605OBJDUMP \
20606deplibs_check_method \
20607file_magic_cmd \
20608AR \
20609AR_FLAGS \
20610STRIP \
20611RANLIB \
20612CC \
20613CFLAGS \
20614compiler \
20615lt_cv_sys_global_symbol_pipe \
20616lt_cv_sys_global_symbol_to_cdecl \
20617lt_cv_sys_global_symbol_to_c_name_address \
20618lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20619SHELL \
20620ECHO \
20621lt_prog_compiler_no_builtin_flag \
20622lt_prog_compiler_wl \
20623lt_prog_compiler_pic \
20624lt_prog_compiler_static \
20625lt_cv_prog_compiler_c_o \
20626need_locks \
20627DSYMUTIL \
20628NMEDIT \
20629LIPO \
20630OTOOL \
20631OTOOL64 \
20632shrext_cmds \
20633export_dynamic_flag_spec \
20634whole_archive_flag_spec \
20635compiler_needs_object \
20636with_gnu_ld \
20637allow_undefined_flag \
20638no_undefined_flag \
20639hardcode_libdir_flag_spec \
20640hardcode_libdir_flag_spec_ld \
20641hardcode_libdir_separator \
20642fix_srcfile_path \
20643exclude_expsyms \
20644include_expsyms \
20645file_list_spec \
20646variables_saved_for_relink \
20647libname_spec \
20648library_names_spec \
20649soname_spec \
20650finish_eval \
20651old_striplib \
20652striplib; do
20653 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
20654 *[\\\\\\\`\\"\\\$]*)
20655 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
20656 ;;
20657 *)
20658 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20659 ;;
20660 esac
20661done
d9898ee8 20662
8d138742
CE
20663# Double-quote double-evaled strings.
20664for var in reload_cmds \
20665old_postinstall_cmds \
20666old_postuninstall_cmds \
20667old_archive_cmds \
20668extract_expsyms_cmds \
20669old_archive_from_new_cmds \
20670old_archive_from_expsyms_cmds \
20671archive_cmds \
20672archive_expsym_cmds \
20673module_cmds \
20674module_expsym_cmds \
20675export_symbols_cmds \
20676prelink_cmds \
20677postinstall_cmds \
20678postuninstall_cmds \
20679finish_cmds \
20680sys_lib_search_path_spec \
20681sys_lib_dlsearch_path_spec; do
20682 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
20683 *[\\\\\\\`\\"\\\$]*)
20684 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
20685 ;;
20686 *)
20687 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20688 ;;
20689 esac
20690done
d9898ee8 20691
8d138742
CE
20692# Fix-up fallback echo if it was mangled by the above quoting rules.
20693case \$lt_ECHO in
20694*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
20695 ;;
dd184caf 20696esac
d9898ee8 20697
8d138742
CE
20698ac_aux_dir='$ac_aux_dir'
20699xsi_shell='$xsi_shell'
20700lt_shell_append='$lt_shell_append'
20701
20702# See if we are running on zsh, and set the options which allow our
20703# commands through without removal of \ escapes INIT.
20704if test -n "\${ZSH_VERSION+set}" ; then
20705 setopt NO_GLOB_SUBST
d9898ee8 20706fi
dd184caf 20707
20708
8d138742
CE
20709 PACKAGE='$PACKAGE'
20710 VERSION='$VERSION'
20711 TIMESTAMP='$TIMESTAMP'
20712 RM='$RM'
20713 ofile='$ofile'
d9898ee8 20714
dd184caf 20715
d9898ee8 20716
20717
8d138742 20718_ACEOF
d9898ee8 20719
8d138742 20720cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
d9898ee8 20721
8d138742
CE
20722# Handling of arguments.
20723for ac_config_target in $ac_config_targets
20724do
20725 case $ac_config_target in
20726 "courier_auth_config.h") CONFIG_HEADERS="$CONFIG_HEADERS courier_auth_config.h" ;;
20727 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20728 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20729 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20730 "authdaemond") CONFIG_FILES="$CONFIG_FILES authdaemond" ;;
20731 "authdaemonrc") CONFIG_FILES="$CONFIG_FILES authdaemonrc" ;;
20732 "authsystem.passwd") CONFIG_FILES="$CONFIG_FILES authsystem.passwd" ;;
20733 "README.authdebug.html") CONFIG_FILES="$CONFIG_FILES README.authdebug.html" ;;
20734 "dbobj.config") CONFIG_FILES="$CONFIG_FILES dbobj.config" ;;
20735 "dbobj.h") CONFIG_FILES="$CONFIG_FILES dbobj.h" ;;
20736 "authmigrate") CONFIG_FILES="$CONFIG_FILES authmigrate" ;;
20737 "courier-authlib.spec") CONFIG_FILES="$CONFIG_FILES courier-authlib.spec" ;;
20738 "courier-authlib.lpspec") CONFIG_FILES="$CONFIG_FILES courier-authlib.lpspec" ;;
20739 "courier-authlib.sysvinit") CONFIG_FILES="$CONFIG_FILES courier-authlib.sysvinit" ;;
20740 "userdb-test-cram-md5.pl") CONFIG_FILES="$CONFIG_FILES userdb-test-cram-md5.pl" ;;
d9898ee8 20741
8d138742
CE
20742 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20743$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20744 { (exit 1); exit 1; }; };;
20745 esac
20746done
d9898ee8 20747
d9898ee8 20748
8d138742
CE
20749# If the user did not use the arguments to specify the items to instantiate,
20750# then the envvar interface is used. Set only those that are not.
20751# We use the long form for the default assignment because of an extremely
20752# bizarre bug on SunOS 4.1.3.
20753if $ac_need_defaults; then
20754 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20755 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20756 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
dd184caf 20757fi
20758
8d138742
CE
20759# Have a temporary directory for convenience. Make it in the build tree
20760# simply because there is no reason against having it here, and in addition,
20761# creating and moving files from /tmp can sometimes cause problems.
20762# Hook for its removal unless debugging.
20763# Note that there is a small window in which the directory will not be cleaned:
20764# after its creation but before its name has been assigned to `$tmp'.
20765$debug ||
20766{
20767 tmp=
20768 trap 'exit_status=$?
20769 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20770' 0
20771 trap '{ (exit 1); exit 1; }' 1 2 13 15
20772}
20773# Create a (secure) tmp directory for tmp files.
d9898ee8 20774
8d138742
CE
20775{
20776 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20777 test -n "$tmp" && test -d "$tmp"
20778} ||
20779{
20780 tmp=./conf$$-$RANDOM
20781 (umask 077 && mkdir "$tmp")
20782} ||
20783{
20784 $as_echo "$as_me: cannot create a temporary directory in ." >&2
20785 { (exit 1); exit 1; }
20786}
d9898ee8 20787
8d138742
CE
20788# Set up the scripts for CONFIG_FILES section.
20789# No need to generate them if there are no CONFIG_FILES.
20790# This happens for instance with `./config.status config.h'.
20791if test -n "$CONFIG_FILES"; then
d9898ee8 20792
d9898ee8 20793
8d138742
CE
20794ac_cr='\r'
20795ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20796if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20797 ac_cs_awk_cr='\\r'
d9898ee8 20798else
8d138742 20799 ac_cs_awk_cr=$ac_cr
d9898ee8 20800fi
dd184caf 20801
8d138742
CE
20802echo 'BEGIN {' >"$tmp/subs1.awk" &&
20803_ACEOF
d9898ee8 20804
d9898ee8 20805
8d138742
CE
20806{
20807 echo "cat >conf$$subs.awk <<_ACEOF" &&
20808 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20809 echo "_ACEOF"
20810} >conf$$subs.sh ||
20811 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20812$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20813 { (exit 1); exit 1; }; }
20814ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
20815ac_delim='%!_!# '
20816for ac_last_try in false false false false false :; do
20817 . ./conf$$subs.sh ||
20818 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20819$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20820 { (exit 1); exit 1; }; }
20821
20822 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20823 if test $ac_delim_n = $ac_delim_num; then
20824 break
20825 elif $ac_last_try; then
20826 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20827$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20828 { (exit 1); exit 1; }; }
20829 else
20830 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20831 fi
20832done
20833rm -f conf$$subs.sh
20834
20835cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20836cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
20837_ACEOF
20838sed -n '
20839h
20840s/^/S["/; s/!.*/"]=/
20841p
20842g
20843s/^[^!]*!//
20844:repl
20845t repl
20846s/'"$ac_delim"'$//
20847t delim
20848:nl
20849h
20850s/\(.\{148\}\).*/\1/
20851t more1
20852s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20853p
20854n
20855b repl
20856:more1
20857s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20858p
20859g
20860s/.\{148\}//
20861t nl
20862:delim
20863h
20864s/\(.\{148\}\).*/\1/
20865t more2
20866s/["\\]/\\&/g; s/^/"/; s/$/"/
20867p
20868b
20869:more2
20870s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20871p
20872g
20873s/.\{148\}//
20874t delim
20875' <conf$$subs.awk | sed '
20876/^[^""]/{
20877 N
20878 s/\n//
20879}
20880' >>$CONFIG_STATUS || ac_write_fail=1
20881rm -f conf$$subs.awk
20882cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20883_ACAWK
20884cat >>"\$tmp/subs1.awk" <<_ACAWK &&
20885 for (key in S) S_is_set[key] = 1
20886 FS = "\a"
20887
20888}
20889{
20890 line = $ 0
20891 nfields = split(line, field, "@")
20892 substed = 0
20893 len = length(field[1])
20894 for (i = 2; i < nfields; i++) {
20895 key = field[i]
20896 keylen = length(key)
20897 if (S_is_set[key]) {
20898 value = S[key]
20899 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20900 len += length(value) + length(field[++i])
20901 substed = 1
20902 } else
20903 len += 1 + keylen
20904 }
20905
20906 print line
20907}
d9898ee8 20908
8d138742
CE
20909_ACAWK
20910_ACEOF
20911cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20912if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20913 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
d9898ee8 20914else
8d138742
CE
20915 cat
20916fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
20917 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
20918$as_echo "$as_me: error: could not setup config files machinery" >&2;}
20919 { (exit 1); exit 1; }; }
d9898ee8 20920_ACEOF
20921
8d138742
CE
20922# VPATH may cause trouble with some makes, so we remove $(srcdir),
20923# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20924# trailing colons and then remove the whole line if VPATH becomes empty
20925# (actually we leave an empty line to preserve line numbers).
20926if test "x$srcdir" = x.; then
20927 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20928s/:*\$(srcdir):*/:/
20929s/:*\${srcdir}:*/:/
20930s/:*@srcdir@:*/:/
20931s/^\([^=]*=[ ]*\):*/\1/
20932s/:*$//
20933s/^[^=]*=[ ]*$//
20934}'
d9898ee8 20935fi
20936
8d138742
CE
20937cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20938fi # test -n "$CONFIG_FILES"
d9898ee8 20939
8d138742
CE
20940# Set up the scripts for CONFIG_HEADERS section.
20941# No need to generate them if there are no CONFIG_HEADERS.
20942# This happens for instance with `./config.status Makefile'.
20943if test -n "$CONFIG_HEADERS"; then
20944cat >"$tmp/defines.awk" <<\_ACAWK ||
20945BEGIN {
20946_ACEOF
d9898ee8 20947
8d138742
CE
20948# Transform confdefs.h into an awk script `defines.awk', embedded as
20949# here-document in config.status, that substitutes the proper values into
20950# config.h.in to produce config.h.
d9898ee8 20951
8d138742
CE
20952# Create a delimiter string that does not exist in confdefs.h, to ease
20953# handling of long lines.
20954ac_delim='%!_!# '
20955for ac_last_try in false false :; do
20956 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
20957 if test -z "$ac_t"; then
20958 break
20959 elif $ac_last_try; then
20960 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
20961$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
20962 { (exit 1); exit 1; }; }
20963 else
20964 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20965 fi
20966done
d9898ee8 20967
8d138742
CE
20968# For the awk script, D is an array of macro values keyed by name,
20969# likewise P contains macro parameters if any. Preserve backslash
20970# newline sequences.
d9898ee8 20971
8d138742
CE
20972ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20973sed -n '
20974s/.\{148\}/&'"$ac_delim"'/g
20975t rset
20976:rset
20977s/^[ ]*#[ ]*define[ ][ ]*/ /
20978t def
20979d
20980:def
20981s/\\$//
20982t bsnl
20983s/["\\]/\\&/g
20984s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20985D["\1"]=" \3"/p
20986s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
20987d
20988:bsnl
20989s/["\\]/\\&/g
20990s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20991D["\1"]=" \3\\\\\\n"\\/p
20992t cont
20993s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20994t cont
20995d
20996:cont
20997n
20998s/.\{148\}/&'"$ac_delim"'/g
20999t clear
21000:clear
21001s/\\$//
21002t bsnlc
21003s/["\\]/\\&/g; s/^/"/; s/$/"/p
21004d
21005:bsnlc
21006s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21007b cont
21008' <confdefs.h | sed '
21009s/'"$ac_delim"'/"\\\
21010"/g' >>$CONFIG_STATUS || ac_write_fail=1
21011
21012cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21013 for (key in D) D_is_set[key] = 1
21014 FS = "\a"
21015}
21016/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21017 line = \$ 0
21018 split(line, arg, " ")
21019 if (arg[1] == "#") {
21020 defundef = arg[2]
21021 mac1 = arg[3]
21022 } else {
21023 defundef = substr(arg[1], 2)
21024 mac1 = arg[2]
21025 }
21026 split(mac1, mac2, "(") #)
21027 macro = mac2[1]
21028 prefix = substr(line, 1, index(line, defundef) - 1)
21029 if (D_is_set[macro]) {
21030 # Preserve the white space surrounding the "#".
21031 print prefix "define", macro P[macro] D[macro]
21032 next
21033 } else {
21034 # Replace #undef with comments. This is necessary, for example,
21035 # in the case of _POSIX_SOURCE, which is predefined and required
21036 # on some systems where configure will not decide to define it.
21037 if (defundef == "undef") {
21038 print "/*", prefix defundef, macro, "*/"
21039 next
21040 }
21041 }
21042}
21043{ print }
21044_ACAWK
21045_ACEOF
21046cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21047 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
21048$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
21049 { (exit 1); exit 1; }; }
21050fi # test -n "$CONFIG_HEADERS"
d9898ee8 21051
21052
8d138742
CE
21053eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
21054shift
21055for ac_tag
21056do
21057 case $ac_tag in
21058 :[FHLC]) ac_mode=$ac_tag; continue;;
21059 esac
21060 case $ac_mode$ac_tag in
21061 :[FHL]*:*);;
21062 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
21063$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
21064 { (exit 1); exit 1; }; };;
21065 :[FH]-) ac_tag=-:-;;
21066 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21067 esac
21068 ac_save_IFS=$IFS
21069 IFS=:
21070 set x $ac_tag
21071 IFS=$ac_save_IFS
21072 shift
21073 ac_file=$1
21074 shift
d9898ee8 21075
8d138742
CE
21076 case $ac_mode in
21077 :L) ac_source=$1;;
21078 :[FH])
21079 ac_file_inputs=
21080 for ac_f
21081 do
21082 case $ac_f in
21083 -) ac_f="$tmp/stdin";;
21084 *) # Look for the file first in the build tree, then in the source tree
21085 # (if the path is not absolute). The absolute path cannot be DOS-style,
21086 # because $ac_f cannot contain `:'.
21087 test -f "$ac_f" ||
21088 case $ac_f in
21089 [\\/$]*) false;;
21090 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21091 esac ||
21092 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21093$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21094 { (exit 1); exit 1; }; };;
21095 esac
21096 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21097 ac_file_inputs="$ac_file_inputs '$ac_f'"
21098 done
d9898ee8 21099
8d138742
CE
21100 # Let's still pretend it is `configure' which instantiates (i.e., don't
21101 # use $as_me), people would be surprised to read:
21102 # /* config.h. Generated by config.status. */
21103 configure_input='Generated from '`
21104 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21105 `' by configure.'
21106 if test x"$ac_file" != x-; then
21107 configure_input="$ac_file. $configure_input"
21108 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
21109$as_echo "$as_me: creating $ac_file" >&6;}
21110 fi
21111 # Neutralize special characters interpreted by sed in replacement strings.
21112 case $configure_input in #(
21113 *\&* | *\|* | *\\* )
21114 ac_sed_conf_input=`$as_echo "$configure_input" |
21115 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21116 *) ac_sed_conf_input=$configure_input;;
21117 esac
d9898ee8 21118
8d138742
CE
21119 case $ac_tag in
21120 *:-:* | *:-) cat >"$tmp/stdin" \
21121 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
21122$as_echo "$as_me: error: could not create $ac_file" >&2;}
21123 { (exit 1); exit 1; }; } ;;
dd184caf 21124 esac
8d138742
CE
21125 ;;
21126 esac
dd184caf 21127
8d138742
CE
21128 ac_dir=`$as_dirname -- "$ac_file" ||
21129$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21130 X"$ac_file" : 'X\(//\)[^/]' \| \
21131 X"$ac_file" : 'X\(//\)$' \| \
21132 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21133$as_echo X"$ac_file" |
21134 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21135 s//\1/
21136 q
21137 }
21138 /^X\(\/\/\)[^/].*/{
21139 s//\1/
21140 q
21141 }
21142 /^X\(\/\/\)$/{
21143 s//\1/
21144 q
21145 }
21146 /^X\(\/\).*/{
21147 s//\1/
21148 q
21149 }
21150 s/.*/./; q'`
21151 { as_dir="$ac_dir"
21152 case $as_dir in #(
21153 -*) as_dir=./$as_dir;;
21154 esac
21155 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21156 as_dirs=
21157 while :; do
21158 case $as_dir in #(
21159 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21160 *) as_qdir=$as_dir;;
21161 esac
21162 as_dirs="'$as_qdir' $as_dirs"
21163 as_dir=`$as_dirname -- "$as_dir" ||
21164$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21165 X"$as_dir" : 'X\(//\)[^/]' \| \
21166 X"$as_dir" : 'X\(//\)$' \| \
21167 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21168$as_echo X"$as_dir" |
21169 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21170 s//\1/
21171 q
21172 }
21173 /^X\(\/\/\)[^/].*/{
21174 s//\1/
21175 q
21176 }
21177 /^X\(\/\/\)$/{
21178 s//\1/
21179 q
21180 }
21181 /^X\(\/\).*/{
21182 s//\1/
21183 q
21184 }
21185 s/.*/./; q'`
21186 test -d "$as_dir" && break
21187 done
21188 test -z "$as_dirs" || eval "mkdir $as_dirs"
21189 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21190$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
21191 { (exit 1); exit 1; }; }; }
21192 ac_builddir=.
21193
21194case "$ac_dir" in
21195.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21196*)
21197 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21198 # A ".." for each directory in $ac_dir_suffix.
21199 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21200 case $ac_top_builddir_sub in
21201 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21202 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21203 esac ;;
21204esac
21205ac_abs_top_builddir=$ac_pwd
21206ac_abs_builddir=$ac_pwd$ac_dir_suffix
21207# for backward compatibility:
21208ac_top_builddir=$ac_top_build_prefix
21209
21210case $srcdir in
21211 .) # We are building in place.
21212 ac_srcdir=.
21213 ac_top_srcdir=$ac_top_builddir_sub
21214 ac_abs_top_srcdir=$ac_pwd ;;
21215 [\\/]* | ?:[\\/]* ) # Absolute name.
21216 ac_srcdir=$srcdir$ac_dir_suffix;
21217 ac_top_srcdir=$srcdir
21218 ac_abs_top_srcdir=$srcdir ;;
21219 *) # Relative name.
21220 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21221 ac_top_srcdir=$ac_top_build_prefix$srcdir
21222 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21223esac
21224ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
d9898ee8 21225
d9898ee8 21226
8d138742
CE
21227 case $ac_mode in
21228 :F)
21229 #
21230 # CONFIG_FILE
21231 #
d9898ee8 21232
8d138742
CE
21233 case $INSTALL in
21234 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21235 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21236 esac
21237 ac_MKDIR_P=$MKDIR_P
21238 case $MKDIR_P in
21239 [\\/$]* | ?:[\\/]* ) ;;
21240 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21241 esac
21242_ACEOF
d9898ee8 21243
8d138742
CE
21244cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21245# If the template does not know about datarootdir, expand it.
21246# FIXME: This hack should be removed a few years after 2.60.
21247ac_datarootdir_hack=; ac_datarootdir_seen=
d9898ee8 21248
8d138742
CE
21249ac_sed_dataroot='
21250/datarootdir/ {
21251 p
21252 q
21253}
21254/@datadir@/p
21255/@docdir@/p
21256/@infodir@/p
21257/@localedir@/p
21258/@mandir@/p
21259'
21260case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21261*datarootdir*) ac_datarootdir_seen=yes;;
21262*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21263 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21264$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21265_ACEOF
21266cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21267 ac_datarootdir_hack='
21268 s&@datadir@&$datadir&g
21269 s&@docdir@&$docdir&g
21270 s&@infodir@&$infodir&g
21271 s&@localedir@&$localedir&g
21272 s&@mandir@&$mandir&g
21273 s&\\\${datarootdir}&$datarootdir&g' ;;
21274esac
21275_ACEOF
d9898ee8 21276
8d138742
CE
21277# Neutralize VPATH when `$srcdir' = `.'.
21278# Shell code in configure.ac might set extrasub.
21279# FIXME: do we really want to maintain this feature?
21280cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21281ac_sed_extra="$ac_vpsub
21282$extrasub
21283_ACEOF
21284cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21285:t
21286/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21287s|@configure_input@|$ac_sed_conf_input|;t t
21288s&@top_builddir@&$ac_top_builddir_sub&;t t
21289s&@top_build_prefix@&$ac_top_build_prefix&;t t
21290s&@srcdir@&$ac_srcdir&;t t
21291s&@abs_srcdir@&$ac_abs_srcdir&;t t
21292s&@top_srcdir@&$ac_top_srcdir&;t t
21293s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21294s&@builddir@&$ac_builddir&;t t
21295s&@abs_builddir@&$ac_abs_builddir&;t t
21296s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21297s&@INSTALL@&$ac_INSTALL&;t t
21298s&@MKDIR_P@&$ac_MKDIR_P&;t t
21299$ac_datarootdir_hack
21300"
21301eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
21302 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
21303$as_echo "$as_me: error: could not create $ac_file" >&2;}
d9898ee8 21304 { (exit 1); exit 1; }; }
8d138742
CE
21305
21306test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21307 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21308 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21309 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21310which seems to be undefined. Please make sure it is defined." >&5
21311$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21312which seems to be undefined. Please make sure it is defined." >&2;}
21313
21314 rm -f "$tmp/stdin"
21315 case $ac_file in
21316 -) cat "$tmp/out" && rm -f "$tmp/out";;
21317 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
21318 esac \
21319 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
21320$as_echo "$as_me: error: could not create $ac_file" >&2;}
d9898ee8 21321 { (exit 1); exit 1; }; }
8d138742
CE
21322 ;;
21323 :H)
21324 #
21325 # CONFIG_HEADER
21326 #
21327 if test x"$ac_file" != x-; then
21328 {
21329 $as_echo "/* $configure_input */" \
21330 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
21331 } >"$tmp/config.h" \
21332 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
21333$as_echo "$as_me: error: could not create $ac_file" >&2;}
d9898ee8 21334 { (exit 1); exit 1; }; }
8d138742
CE
21335 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
21336 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21337$as_echo "$as_me: $ac_file is unchanged" >&6;}
21338 else
21339 rm -f "$ac_file"
21340 mv "$tmp/config.h" "$ac_file" \
21341 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
21342$as_echo "$as_me: error: could not create $ac_file" >&2;}
d9898ee8 21343 { (exit 1); exit 1; }; }
8d138742
CE
21344 fi
21345 else
21346 $as_echo "/* $configure_input */" \
21347 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
21348 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
21349$as_echo "$as_me: error: could not create -" >&2;}
d9898ee8 21350 { (exit 1); exit 1; }; }
8d138742
CE
21351 fi
21352# Compute "$ac_file"'s index in $config_headers.
21353_am_arg="$ac_file"
21354_am_stamp_count=1
21355for _am_header in $config_headers :; do
21356 case $_am_header in
21357 $_am_arg | $_am_arg:* )
21358 break ;;
21359 * )
21360 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21361 esac
21362done
21363echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21364$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21365 X"$_am_arg" : 'X\(//\)[^/]' \| \
21366 X"$_am_arg" : 'X\(//\)$' \| \
21367 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21368$as_echo X"$_am_arg" |
21369 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21370 s//\1/
21371 q
21372 }
21373 /^X\(\/\/\)[^/].*/{
21374 s//\1/
21375 q
21376 }
21377 /^X\(\/\/\)$/{
21378 s//\1/
21379 q
21380 }
21381 /^X\(\/\).*/{
21382 s//\1/
21383 q
21384 }
21385 s/.*/./; q'`/stamp-h$_am_stamp_count
21386 ;;
21387
21388 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
21389$as_echo "$as_me: executing $ac_file commands" >&6;}
21390 ;;
21391 esac
21392
21393
21394 case $ac_file$ac_mode in
21395 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21396 # Autoconf 2.62 quotes --file arguments for eval, but not when files
21397 # are listed without --file. Let's play safe and only enable the eval
21398 # if we detect the quoting.
21399 case $CONFIG_FILES in
21400 *\'*) eval set x "$CONFIG_FILES" ;;
21401 *) set x $CONFIG_FILES ;;
21402 esac
21403 shift
21404 for mf
21405 do
21406 # Strip MF so we end up with the name of the file.
21407 mf=`echo "$mf" | sed -e 's/:.*$//'`
21408 # Check whether this is an Automake generated Makefile or not.
21409 # We used to match only the files named `Makefile.in', but
21410 # some people rename them; so instead we look at the file content.
21411 # Grep'ing the first line is not enough: some people post-process
21412 # each Makefile.in and add a new line on top of each file to say so.
21413 # Grep'ing the whole file is not good either: AIX grep has a line
21414 # limit of 2048, but all sed's we know have understand at least 4000.
21415 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21416 dirpart=`$as_dirname -- "$mf" ||
21417$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21418 X"$mf" : 'X\(//\)[^/]' \| \
21419 X"$mf" : 'X\(//\)$' \| \
21420 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21421$as_echo X"$mf" |
21422 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21423 s//\1/
21424 q
21425 }
21426 /^X\(\/\/\)[^/].*/{
21427 s//\1/
21428 q
21429 }
21430 /^X\(\/\/\)$/{
21431 s//\1/
21432 q
21433 }
21434 /^X\(\/\).*/{
21435 s//\1/
21436 q
21437 }
21438 s/.*/./; q'`
21439 else
21440 continue
21441 fi
21442 # Extract the definition of DEPDIR, am__include, and am__quote
21443 # from the Makefile without running `make'.
21444 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21445 test -z "$DEPDIR" && continue
21446 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21447 test -z "am__include" && continue
21448 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21449 # When using ansi2knr, U may be empty or an underscore; expand it
21450 U=`sed -n 's/^U = //p' < "$mf"`
21451 # Find all dependency output files, they are included files with
21452 # $(DEPDIR) in their names. We invoke sed twice because it is the
21453 # simplest approach to changing $(DEPDIR) to its actual value in the
21454 # expansion.
21455 for file in `sed -n "
21456 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21457 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21458 # Make sure the directory exists.
21459 test -f "$dirpart/$file" && continue
21460 fdir=`$as_dirname -- "$file" ||
21461$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21462 X"$file" : 'X\(//\)[^/]' \| \
21463 X"$file" : 'X\(//\)$' \| \
21464 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21465$as_echo X"$file" |
21466 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21467 s//\1/
21468 q
21469 }
21470 /^X\(\/\/\)[^/].*/{
21471 s//\1/
21472 q
21473 }
21474 /^X\(\/\/\)$/{
21475 s//\1/
21476 q
21477 }
21478 /^X\(\/\).*/{
21479 s//\1/
21480 q
21481 }
21482 s/.*/./; q'`
21483 { as_dir=$dirpart/$fdir
21484 case $as_dir in #(
21485 -*) as_dir=./$as_dir;;
21486 esac
21487 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21488 as_dirs=
21489 while :; do
21490 case $as_dir in #(
21491 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21492 *) as_qdir=$as_dir;;
21493 esac
21494 as_dirs="'$as_qdir' $as_dirs"
21495 as_dir=`$as_dirname -- "$as_dir" ||
21496$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21497 X"$as_dir" : 'X\(//\)[^/]' \| \
21498 X"$as_dir" : 'X\(//\)$' \| \
21499 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21500$as_echo X"$as_dir" |
21501 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21502 s//\1/
21503 q
21504 }
21505 /^X\(\/\/\)[^/].*/{
21506 s//\1/
21507 q
21508 }
21509 /^X\(\/\/\)$/{
21510 s//\1/
21511 q
21512 }
21513 /^X\(\/\).*/{
21514 s//\1/
21515 q
21516 }
21517 s/.*/./; q'`
21518 test -d "$as_dir" && break
21519 done
21520 test -z "$as_dirs" || eval "mkdir $as_dirs"
21521 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21522$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
21523 { (exit 1); exit 1; }; }; }
21524 # echo "creating $dirpart/$file"
21525 echo '# dummy' > "$dirpart/$file"
21526 done
21527 done
21528}
21529 ;;
21530 "libtool":C)
d9898ee8 21531
8d138742
CE
21532 # See if we are running on zsh, and set the options which allow our
21533 # commands through without removal of \ escapes.
21534 if test -n "${ZSH_VERSION+set}" ; then
21535 setopt NO_GLOB_SUBST
21536 fi
21537
21538 cfgfile="${ofile}T"
21539 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21540 $RM "$cfgfile"
21541
21542 cat <<_LT_EOF >> "$cfgfile"
d9898ee8 21543#! $SHELL
d9898ee8 21544
8d138742
CE
21545# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
21546# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
21547# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21548# NOTE: Changes made to this file will be lost: look at ltmain.sh.
21549#
21550# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
21551# 2006, 2007, 2008 Free Software Foundation, Inc.
21552# Written by Gordon Matzigkeit, 1996
21553#
21554# This file is part of GNU Libtool.
21555#
21556# GNU Libtool is free software; you can redistribute it and/or
21557# modify it under the terms of the GNU General Public License as
21558# published by the Free Software Foundation; either version 2 of
21559# the License, or (at your option) any later version.
21560#
21561# As a special exception to the GNU General Public License,
21562# if you distribute this file as part of a program or library that
21563# is built using GNU Libtool, you may include this file under the
21564# same distribution terms that you use for the rest of that program.
21565#
21566# GNU Libtool is distributed in the hope that it will be useful,
21567# but WITHOUT ANY WARRANTY; without even the implied warranty of
21568# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21569# GNU General Public License for more details.
21570#
21571# You should have received a copy of the GNU General Public License
21572# along with GNU Libtool; see the file COPYING. If not, a copy
21573# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
21574# obtained by writing to the Free Software Foundation, Inc.,
21575# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
d9898ee8 21576
d9898ee8 21577
8d138742
CE
21578# The names of the tagged configurations supported by this script.
21579available_tags=""
dd184caf 21580
8d138742 21581# ### BEGIN LIBTOOL CONFIG
dd184caf 21582
8d138742
CE
21583# Which release of libtool.m4 was used?
21584macro_version=$macro_version
21585macro_revision=$macro_revision
dd184caf 21586
8d138742
CE
21587# Whether or not to build shared libraries.
21588build_libtool_libs=$enable_shared
dd184caf 21589
8d138742
CE
21590# Whether or not to build static libraries.
21591build_old_libs=$enable_static
dd184caf 21592
8d138742
CE
21593# What type of objects to build.
21594pic_mode=$pic_mode
dd184caf 21595
8d138742
CE
21596# Whether or not to optimize for fast installation.
21597fast_install=$enable_fast_install
d9898ee8 21598
8d138742
CE
21599# The host system.
21600host_alias=$host_alias
21601host=$host
21602host_os=$host_os
d9898ee8 21603
8d138742
CE
21604# The build system.
21605build_alias=$build_alias
21606build=$build
21607build_os=$build_os
d9898ee8 21608
8d138742
CE
21609# A sed program that does not truncate output.
21610SED=$lt_SED
dd184caf 21611
8d138742
CE
21612# Sed that helps us avoid accidentally triggering echo(1) options like -n.
21613Xsed="\$SED -e 1s/^X//"
dd184caf 21614
8d138742
CE
21615# A grep program that handles long lines.
21616GREP=$lt_GREP
dd184caf 21617
8d138742
CE
21618# An ERE matcher.
21619EGREP=$lt_EGREP
d9898ee8 21620
8d138742
CE
21621# A literal string matcher.
21622FGREP=$lt_FGREP
d9898ee8 21623
8d138742
CE
21624# A BSD- or MS-compatible name lister.
21625NM=$lt_NM
d9898ee8 21626
8d138742
CE
21627# Whether we need soft or hard links.
21628LN_S=$lt_LN_S
d9898ee8 21629
8d138742
CE
21630# What is the maximum length of a command?
21631max_cmd_len=$max_cmd_len
d9898ee8 21632
8d138742
CE
21633# Object file suffix (normally "o").
21634objext=$ac_objext
d9898ee8 21635
8d138742
CE
21636# Executable file suffix (normally "").
21637exeext=$exeext
d9898ee8 21638
8d138742
CE
21639# whether the shell understands "unset".
21640lt_unset=$lt_unset
d9898ee8 21641
8d138742
CE
21642# turn spaces into newlines.
21643SP2NL=$lt_lt_SP2NL
d9898ee8 21644
8d138742
CE
21645# turn newlines into spaces.
21646NL2SP=$lt_lt_NL2SP
d9898ee8 21647
8d138742
CE
21648# How to create reloadable object files.
21649reload_flag=$lt_reload_flag
21650reload_cmds=$lt_reload_cmds
d9898ee8 21651
8d138742
CE
21652# An object symbol dumper.
21653OBJDUMP=$lt_OBJDUMP
d9898ee8 21654
8d138742
CE
21655# Method to check whether dependent libraries are shared objects.
21656deplibs_check_method=$lt_deplibs_check_method
d9898ee8 21657
8d138742
CE
21658# Command to use when deplibs_check_method == "file_magic".
21659file_magic_cmd=$lt_file_magic_cmd
dd184caf 21660
8d138742
CE
21661# The archiver.
21662AR=$lt_AR
21663AR_FLAGS=$lt_AR_FLAGS
d9898ee8 21664
8d138742
CE
21665# A symbol stripping program.
21666STRIP=$lt_STRIP
21667
21668# Commands used to install an old-style archive.
21669RANLIB=$lt_RANLIB
21670old_postinstall_cmds=$lt_old_postinstall_cmds
21671old_postuninstall_cmds=$lt_old_postuninstall_cmds
21672
21673# A C compiler.
21674LTCC=$lt_CC
21675
21676# LTCC compiler flags.
21677LTCFLAGS=$lt_CFLAGS
21678
21679# Take the output of nm and produce a listing of raw symbols and C names.
21680global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21681
21682# Transform the output of nm in a proper C declaration.
21683global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21684
21685# Transform the output of nm in a C name address pair.
21686global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21687
21688# Transform the output of nm in a C name address pair when lib prefix is needed.
21689global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21690
21691# The name of the directory that contains temporary libtool files.
21692objdir=$objdir
21693
21694# Shell to use when invoking shell scripts.
21695SHELL=$lt_SHELL
21696
21697# An echo program that does not interpret backslashes.
21698ECHO=$lt_ECHO
21699
21700# Used to examine libraries when file_magic_cmd begins with "file".
21701MAGIC_CMD=$MAGIC_CMD
21702
21703# Must we lock files when doing compilation?
21704need_locks=$lt_need_locks
d9898ee8 21705
8d138742
CE
21706# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21707DSYMUTIL=$lt_DSYMUTIL
d9898ee8 21708
8d138742
CE
21709# Tool to change global to local symbols on Mac OS X.
21710NMEDIT=$lt_NMEDIT
d9898ee8 21711
8d138742
CE
21712# Tool to manipulate fat objects and archives on Mac OS X.
21713LIPO=$lt_LIPO
d9898ee8 21714
8d138742
CE
21715# ldd/readelf like tool for Mach-O binaries on Mac OS X.
21716OTOOL=$lt_OTOOL
d9898ee8 21717
8d138742
CE
21718# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21719OTOOL64=$lt_OTOOL64
d9898ee8 21720
8d138742
CE
21721# Old archive suffix (normally "a").
21722libext=$libext
d9898ee8 21723
8d138742
CE
21724# Shared library suffix (normally ".so").
21725shrext_cmds=$lt_shrext_cmds
d9898ee8 21726
8d138742
CE
21727# The commands to extract the exported symbol list from a shared archive.
21728extract_expsyms_cmds=$lt_extract_expsyms_cmds
d9898ee8 21729
8d138742
CE
21730# Variables whose values should be saved in libtool wrapper scripts and
21731# restored at link time.
21732variables_saved_for_relink=$lt_variables_saved_for_relink
d9898ee8 21733
8d138742
CE
21734# Do we need the "lib" prefix for modules?
21735need_lib_prefix=$need_lib_prefix
dd184caf 21736
8d138742
CE
21737# Do we need a version for libraries?
21738need_version=$need_version
d9898ee8 21739
8d138742
CE
21740# Library versioning type.
21741version_type=$version_type
d9898ee8 21742
8d138742
CE
21743# Shared library runtime path variable.
21744runpath_var=$runpath_var
d9898ee8 21745
8d138742
CE
21746# Shared library path variable.
21747shlibpath_var=$shlibpath_var
d9898ee8 21748
8d138742
CE
21749# Is shlibpath searched before the hard-coded library search path?
21750shlibpath_overrides_runpath=$shlibpath_overrides_runpath
d9898ee8 21751
8d138742
CE
21752# Format of library name prefix.
21753libname_spec=$lt_libname_spec
d9898ee8 21754
8d138742
CE
21755# List of archive names. First name is the real one, the rest are links.
21756# The last name is the one that the linker finds with -lNAME
21757library_names_spec=$lt_library_names_spec
d9898ee8 21758
8d138742
CE
21759# The coded name of the library, if different from the real name.
21760soname_spec=$lt_soname_spec
d9898ee8 21761
8d138742
CE
21762# Command to use after installation of a shared archive.
21763postinstall_cmds=$lt_postinstall_cmds
d9898ee8 21764
8d138742
CE
21765# Command to use after uninstallation of a shared archive.
21766postuninstall_cmds=$lt_postuninstall_cmds
d9898ee8 21767
8d138742
CE
21768# Commands used to finish a libtool library installation in a directory.
21769finish_cmds=$lt_finish_cmds
d9898ee8 21770
8d138742
CE
21771# As "finish_cmds", except a single script fragment to be evaled but
21772# not shown.
21773finish_eval=$lt_finish_eval
dd184caf 21774
8d138742
CE
21775# Whether we should hardcode library paths into libraries.
21776hardcode_into_libs=$hardcode_into_libs
d9898ee8 21777
8d138742
CE
21778# Compile-time system search path for libraries.
21779sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
d9898ee8 21780
8d138742
CE
21781# Run-time system search path for libraries.
21782sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
d9898ee8 21783
8d138742
CE
21784# Whether dlopen is supported.
21785dlopen_support=$enable_dlopen
d9898ee8 21786
8d138742
CE
21787# Whether dlopen of programs is supported.
21788dlopen_self=$enable_dlopen_self
d9898ee8 21789
8d138742
CE
21790# Whether dlopen of statically linked programs is supported.
21791dlopen_self_static=$enable_dlopen_self_static
d9898ee8 21792
8d138742
CE
21793# Commands to strip libraries.
21794old_striplib=$lt_old_striplib
21795striplib=$lt_striplib
d9898ee8 21796
d9898ee8 21797
8d138742
CE
21798# The linker used to build libraries.
21799LD=$lt_LD
d9898ee8 21800
8d138742
CE
21801# Commands used to build an old-style archive.
21802old_archive_cmds=$lt_old_archive_cmds
d9898ee8 21803
8d138742
CE
21804# A language specific compiler.
21805CC=$lt_compiler
d9898ee8 21806
8d138742
CE
21807# Is the compiler the GNU compiler?
21808with_gcc=$GCC
d9898ee8 21809
8d138742
CE
21810# Compiler flag to turn off builtin functions.
21811no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
dd184caf 21812
8d138742
CE
21813# How to pass a linker flag through the compiler.
21814wl=$lt_lt_prog_compiler_wl
dd184caf 21815
8d138742
CE
21816# Additional compiler flags for building library objects.
21817pic_flag=$lt_lt_prog_compiler_pic
d9898ee8 21818
8d138742
CE
21819# Compiler flag to prevent dynamic linking.
21820link_static_flag=$lt_lt_prog_compiler_static
dd184caf 21821
8d138742
CE
21822# Does compiler simultaneously support -c and -o options?
21823compiler_c_o=$lt_lt_cv_prog_compiler_c_o
d9898ee8 21824
8d138742
CE
21825# Whether or not to add -lc for building shared libraries.
21826build_libtool_need_lc=$archive_cmds_need_lc
21827
21828# Whether or not to disallow shared libs when runtime libs are static.
21829allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21830
21831# Compiler flag to allow reflexive dlopens.
21832export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21833
21834# Compiler flag to generate shared objects directly from archives.
21835whole_archive_flag_spec=$lt_whole_archive_flag_spec
d9898ee8 21836
8d138742
CE
21837# Whether the compiler copes with passing no objects directly.
21838compiler_needs_object=$lt_compiler_needs_object
d9898ee8 21839
8d138742
CE
21840# Create an old-style archive from a shared archive.
21841old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
d9898ee8 21842
8d138742
CE
21843# Create a temporary old-style archive to link instead of a shared archive.
21844old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
dd184caf 21845
8d138742
CE
21846# Commands used to build a shared archive.
21847archive_cmds=$lt_archive_cmds
21848archive_expsym_cmds=$lt_archive_expsym_cmds
dd184caf 21849
8d138742
CE
21850# Commands used to build a loadable module if different from building
21851# a shared archive.
21852module_cmds=$lt_module_cmds
21853module_expsym_cmds=$lt_module_expsym_cmds
dd184caf 21854
8d138742
CE
21855# Whether we are building with GNU ld or not.
21856with_gnu_ld=$lt_with_gnu_ld
dd184caf 21857
8d138742
CE
21858# Flag that allows shared libraries with undefined symbols to be built.
21859allow_undefined_flag=$lt_allow_undefined_flag
d9898ee8 21860
8d138742
CE
21861# Flag that enforces no undefined symbols.
21862no_undefined_flag=$lt_no_undefined_flag
dd184caf 21863
8d138742
CE
21864# Flag to hardcode \$libdir into a binary during linking.
21865# This must work even if \$libdir does not exist
21866hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
dd184caf 21867
8d138742
CE
21868# If ld is used when linking, flag to hardcode \$libdir into a binary
21869# during linking. This must work even if \$libdir does not exist.
21870hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
dd184caf 21871
8d138742
CE
21872# Whether we need a single "-rpath" flag with a separated argument.
21873hardcode_libdir_separator=$lt_hardcode_libdir_separator
dd184caf 21874
8d138742
CE
21875# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21876# DIR into the resulting binary.
21877hardcode_direct=$hardcode_direct
dd184caf 21878
8d138742
CE
21879# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21880# DIR into the resulting binary and the resulting library dependency is
21881# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21882# library is relocated.
21883hardcode_direct_absolute=$hardcode_direct_absolute
dd184caf 21884
8d138742
CE
21885# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21886# into the resulting binary.
21887hardcode_minus_L=$hardcode_minus_L
dd184caf 21888
8d138742
CE
21889# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21890# into the resulting binary.
21891hardcode_shlibpath_var=$hardcode_shlibpath_var
dd184caf 21892
8d138742
CE
21893# Set to "yes" if building a shared library automatically hardcodes DIR
21894# into the library and all subsequent libraries and executables linked
21895# against it.
21896hardcode_automatic=$hardcode_automatic
dd184caf 21897
8d138742
CE
21898# Set to yes if linker adds runtime paths of dependent libraries
21899# to runtime path list.
21900inherit_rpath=$inherit_rpath
dd184caf 21901
8d138742
CE
21902# Whether libtool must link a program against all its dependency libraries.
21903link_all_deplibs=$link_all_deplibs
dd184caf 21904
8d138742
CE
21905# Fix the shell variable \$srcfile for the compiler.
21906fix_srcfile_path=$lt_fix_srcfile_path
dd184caf 21907
8d138742
CE
21908# Set to "yes" if exported symbols are required.
21909always_export_symbols=$always_export_symbols
dd184caf 21910
8d138742
CE
21911# The commands to list exported symbols.
21912export_symbols_cmds=$lt_export_symbols_cmds
d9898ee8 21913
8d138742
CE
21914# Symbols that should not be listed in the preloaded symbols.
21915exclude_expsyms=$lt_exclude_expsyms
d9898ee8 21916
8d138742
CE
21917# Symbols that must always be exported.
21918include_expsyms=$lt_include_expsyms
d9898ee8 21919
8d138742
CE
21920# Commands necessary for linking programs (against libraries) with templates.
21921prelink_cmds=$lt_prelink_cmds
d9898ee8 21922
8d138742
CE
21923# Specify filename containing input files.
21924file_list_spec=$lt_file_list_spec
d9898ee8 21925
8d138742
CE
21926# How to hardcode a shared library path into an executable.
21927hardcode_action=$hardcode_action
d9898ee8 21928
8d138742
CE
21929# ### END LIBTOOL CONFIG
21930
21931_LT_EOF
21932
21933 case $host_os in
21934 aix3*)
21935 cat <<\_LT_EOF >> "$cfgfile"
21936# AIX sometimes has problems with the GCC collect2 program. For some
21937# reason, if we set the COLLECT_NAMES environment variable, the problems
21938# vanish in a puff of smoke.
21939if test "X${COLLECT_NAMES+set}" != Xset; then
21940 COLLECT_NAMES=
21941 export COLLECT_NAMES
21942fi
21943_LT_EOF
21944 ;;
d9898ee8 21945 esac
8d138742
CE
21946
21947
21948ltmain="$ac_aux_dir/ltmain.sh"
21949
21950
21951 # We use sed instead of cat because bash on DJGPP gets confused if
21952 # if finds mixed CR/LF and LF-only lines. Since sed operates in
21953 # text mode, it properly converts lines to CR/LF. This bash problem
21954 # is reportedly fixed, but why not run on old versions too?
21955 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
21956 || (rm -f "$cfgfile"; exit 1)
21957
21958 case $xsi_shell in
21959 yes)
21960 cat << \_LT_EOF >> "$cfgfile"
21961
21962# func_dirname file append nondir_replacement
21963# Compute the dirname of FILE. If nonempty, add APPEND to the result,
21964# otherwise set result to NONDIR_REPLACEMENT.
21965func_dirname ()
21966{
21967 case ${1} in
21968 */*) func_dirname_result="${1%/*}${2}" ;;
21969 * ) func_dirname_result="${3}" ;;
dd184caf 21970 esac
8d138742 21971}
d9898ee8 21972
8d138742
CE
21973# func_basename file
21974func_basename ()
21975{
21976 func_basename_result="${1##*/}"
21977}
dd184caf 21978
8d138742
CE
21979# func_dirname_and_basename file append nondir_replacement
21980# perform func_basename and func_dirname in a single function
21981# call:
21982# dirname: Compute the dirname of FILE. If nonempty,
21983# add APPEND to the result, otherwise set result
21984# to NONDIR_REPLACEMENT.
21985# value returned in "$func_dirname_result"
21986# basename: Compute filename of FILE.
21987# value retuned in "$func_basename_result"
21988# Implementation must be kept synchronized with func_dirname
21989# and func_basename. For efficiency, we do not delegate to
21990# those functions but instead duplicate the functionality here.
21991func_dirname_and_basename ()
21992{
21993 case ${1} in
21994 */*) func_dirname_result="${1%/*}${2}" ;;
21995 * ) func_dirname_result="${3}" ;;
21996 esac
21997 func_basename_result="${1##*/}"
dd184caf 21998}
dd184caf 21999
8d138742
CE
22000# func_stripname prefix suffix name
22001# strip PREFIX and SUFFIX off of NAME.
22002# PREFIX and SUFFIX must not contain globbing or regex special
22003# characters, hashes, percent signs, but SUFFIX may contain a leading
22004# dot (in which case that matches only a dot).
22005func_stripname ()
22006{
22007 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
22008 # positional parameters, so assign one to ordinary parameter first.
22009 func_stripname_result=${3}
22010 func_stripname_result=${func_stripname_result#"${1}"}
22011 func_stripname_result=${func_stripname_result%"${2}"}
22012}
dd184caf 22013
8d138742
CE
22014# func_opt_split
22015func_opt_split ()
22016{
22017 func_opt_split_opt=${1%%=*}
22018 func_opt_split_arg=${1#*=}
22019}
dd184caf 22020
8d138742
CE
22021# func_lo2o object
22022func_lo2o ()
22023{
22024 case ${1} in
22025 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
22026 *) func_lo2o_result=${1} ;;
d9898ee8 22027 esac
8d138742 22028}
d9898ee8 22029
8d138742
CE
22030# func_xform libobj-or-source
22031func_xform ()
22032{
22033 func_xform_result=${1%.*}.lo
22034}
d9898ee8 22035
8d138742
CE
22036# func_arith arithmetic-term...
22037func_arith ()
22038{
22039 func_arith_result=$(( $* ))
22040}
22041
22042# func_len string
22043# STRING may not start with a hyphen.
22044func_len ()
22045{
22046 func_len_result=${#1}
22047}
22048
22049_LT_EOF
22050 ;;
22051 *) # Bourne compatible functions.
22052 cat << \_LT_EOF >> "$cfgfile"
22053
22054# func_dirname file append nondir_replacement
22055# Compute the dirname of FILE. If nonempty, add APPEND to the result,
22056# otherwise set result to NONDIR_REPLACEMENT.
22057func_dirname ()
22058{
22059 # Extract subdirectory from the argument.
22060 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
22061 if test "X$func_dirname_result" = "X${1}"; then
22062 func_dirname_result="${3}"
d9898ee8 22063 else
8d138742 22064 func_dirname_result="$func_dirname_result${2}"
d9898ee8 22065 fi
8d138742 22066}
d9898ee8 22067
8d138742
CE
22068# func_basename file
22069func_basename ()
22070{
22071 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
22072}
22073
22074
22075# func_stripname prefix suffix name
22076# strip PREFIX and SUFFIX off of NAME.
22077# PREFIX and SUFFIX must not contain globbing or regex special
22078# characters, hashes, percent signs, but SUFFIX may contain a leading
22079# dot (in which case that matches only a dot).
22080# func_strip_suffix prefix name
22081func_stripname ()
22082{
22083 case ${2} in
22084 .*) func_stripname_result=`$ECHO "X${3}" \
22085 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
22086 *) func_stripname_result=`$ECHO "X${3}" \
22087 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
dd184caf 22088 esac
8d138742 22089}
d9898ee8 22090
8d138742
CE
22091# sed scripts:
22092my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
22093my_sed_long_arg='1s/^-[^=]*=//'
d9898ee8 22094
8d138742
CE
22095# func_opt_split
22096func_opt_split ()
22097{
22098 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
22099 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
22100}
22101
22102# func_lo2o object
22103func_lo2o ()
22104{
22105 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
22106}
22107
22108# func_xform libobj-or-source
22109func_xform ()
22110{
22111 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
22112}
22113
22114# func_arith arithmetic-term...
22115func_arith ()
22116{
22117 func_arith_result=`expr "$@"`
22118}
22119
22120# func_len string
22121# STRING may not start with a hyphen.
22122func_len ()
22123{
22124 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
22125}
22126
22127_LT_EOF
22128esac
22129
22130case $lt_shell_append in
22131 yes)
22132 cat << \_LT_EOF >> "$cfgfile"
22133
22134# func_append var value
22135# Append VALUE to the end of shell variable VAR.
22136func_append ()
22137{
22138 eval "$1+=\$2"
22139}
22140_LT_EOF
22141 ;;
22142 *)
22143 cat << \_LT_EOF >> "$cfgfile"
22144
22145# func_append var value
22146# Append VALUE to the end of shell variable VAR.
22147func_append ()
22148{
22149 eval "$1=\$$1\$2"
22150}
22151
22152_LT_EOF
22153 ;;
dd184caf 22154 esac
8d138742
CE
22155
22156
22157 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
22158 || (rm -f "$cfgfile"; exit 1)
22159
22160 mv -f "$cfgfile" "$ofile" ||
22161 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22162 chmod +x "$ofile"
22163
d9898ee8 22164 ;;
dd184caf 22165
d9898ee8 22166 esac
dd184caf 22167done # for ac_tag
d9898ee8 22168
d9898ee8 22169
22170{ (exit 0); exit 0; }
22171_ACEOF
22172chmod +x $CONFIG_STATUS
22173ac_clean_files=$ac_clean_files_save
22174
8d138742
CE
22175test $ac_write_fail = 0 ||
22176 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
22177$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
22178 { (exit 1); exit 1; }; }
22179
d9898ee8 22180
22181# configure is writing to config.log, and then calls config.status.
22182# config.status does its own redirection, appending to config.log.
22183# Unfortunately, on DOS this fails, as config.log is still kept open
22184# by configure, so config.status won't be able to write to it; its
22185# output is simply discarded. So we exec the FD to /dev/null,
22186# effectively closing config.log, so it can be properly (re)opened and
22187# appended to by config.status. When coming back to configure, we
22188# need to make the FD available again.
22189if test "$no_create" != yes; then
22190 ac_cs_success=:
22191 ac_config_status_args=
22192 test "$silent" = yes &&
22193 ac_config_status_args="$ac_config_status_args --quiet"
22194 exec 5>/dev/null
22195 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22196 exec 5>>config.log
22197 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22198 # would make configure fail if this is the last instruction.
22199 $ac_cs_success || { (exit 1); exit 1; }
22200fi
22201
22202#
22203# CONFIG_SUBDIRS section.
22204#
22205if test "$no_recursion" != yes; then
22206
8d138742
CE
22207 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
22208 # so they do not pile up.
d9898ee8 22209 ac_sub_configure_args=
22210 ac_prev=
dd184caf 22211 eval "set x $ac_configure_args"
22212 shift
22213 for ac_arg
22214 do
d9898ee8 22215 if test -n "$ac_prev"; then
22216 ac_prev=
22217 continue
22218 fi
22219 case $ac_arg in
22220 -cache-file | --cache-file | --cache-fil | --cache-fi \
22221 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22222 ac_prev=cache_file ;;
22223 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22224 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22225 | --c=*)
22226 ;;
22227 --config-cache | -C)
22228 ;;
22229 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22230 ac_prev=srcdir ;;
22231 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22232 ;;
22233 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22234 ac_prev=prefix ;;
22235 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22236 ;;
8d138742
CE
22237 --disable-option-checking)
22238 ;;
dd184caf 22239 *)
22240 case $ac_arg in
8d138742 22241 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
dd184caf 22242 esac
22243 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
d9898ee8 22244 esac
22245 done
22246
22247 # Always prepend --prefix to ensure using the same prefix
22248 # in subdir configurations.
dd184caf 22249 ac_arg="--prefix=$prefix"
22250 case $ac_arg in
8d138742 22251 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
dd184caf 22252 esac
22253 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
22254
22255 # Pass --silent
22256 if test "$silent" = yes; then
22257 ac_sub_configure_args="--silent $ac_sub_configure_args"
22258 fi
d9898ee8 22259
8d138742
CE
22260 # Always prepend --disable-option-checking to silence warnings, since
22261 # different subdirs can have different --enable and --with options.
22262 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
22263
d9898ee8 22264 ac_popdir=`pwd`
22265 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22266
22267 # Do not complain, so a configure script can configure whichever
22268 # parts of a large source tree are present.
dd184caf 22269 test -d "$srcdir/$ac_dir" || continue
22270
22271 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
8d138742
CE
22272 $as_echo "$as_me:$LINENO: $ac_msg" >&5
22273 $as_echo "$ac_msg" >&6
dd184caf 22274 { as_dir="$ac_dir"
22275 case $as_dir in #(
22276 -*) as_dir=./$as_dir;;
22277 esac
22278 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
d9898ee8 22279 as_dirs=
dd184caf 22280 while :; do
22281 case $as_dir in #(
8d138742 22282 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
dd184caf 22283 *) as_qdir=$as_dir;;
22284 esac
22285 as_dirs="'$as_qdir' $as_dirs"
22286 as_dir=`$as_dirname -- "$as_dir" ||
d9898ee8 22287$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22288 X"$as_dir" : 'X\(//\)[^/]' \| \
22289 X"$as_dir" : 'X\(//\)$' \| \
dd184caf 22290 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8d138742 22291$as_echo X"$as_dir" |
dd184caf 22292 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22293 s//\1/
22294 q
22295 }
22296 /^X\(\/\/\)[^/].*/{
22297 s//\1/
22298 q
22299 }
22300 /^X\(\/\/\)$/{
22301 s//\1/
22302 q
22303 }
22304 /^X\(\/\).*/{
22305 s//\1/
22306 q
22307 }
22308 s/.*/./; q'`
22309 test -d "$as_dir" && break
d9898ee8 22310 done
dd184caf 22311 test -z "$as_dirs" || eval "mkdir $as_dirs"
8d138742
CE
22312 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22313$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
d9898ee8 22314 { (exit 1); exit 1; }; }; }
d9898ee8 22315 ac_builddir=.
22316
dd184caf 22317case "$ac_dir" in
22318.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22319*)
8d138742 22320 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
dd184caf 22321 # A ".." for each directory in $ac_dir_suffix.
8d138742 22322 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
dd184caf 22323 case $ac_top_builddir_sub in
22324 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22325 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22326 esac ;;
22327esac
22328ac_abs_top_builddir=$ac_pwd
22329ac_abs_builddir=$ac_pwd$ac_dir_suffix
22330# for backward compatibility:
22331ac_top_builddir=$ac_top_build_prefix
d9898ee8 22332
22333case $srcdir in
dd184caf 22334 .) # We are building in place.
d9898ee8 22335 ac_srcdir=.
dd184caf 22336 ac_top_srcdir=$ac_top_builddir_sub
22337 ac_abs_top_srcdir=$ac_pwd ;;
22338 [\\/]* | ?:[\\/]* ) # Absolute name.
d9898ee8 22339 ac_srcdir=$srcdir$ac_dir_suffix;
dd184caf 22340 ac_top_srcdir=$srcdir
22341 ac_abs_top_srcdir=$srcdir ;;
22342 *) # Relative name.
22343 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22344 ac_top_srcdir=$ac_top_build_prefix$srcdir
22345 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
d9898ee8 22346esac
dd184caf 22347ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
d9898ee8 22348
22349
dd184caf 22350 cd "$ac_dir"
d9898ee8 22351
22352 # Check for guested configure; otherwise get Cygnus style configure.
dd184caf 22353 if test -f "$ac_srcdir/configure.gnu"; then
22354 ac_sub_configure=$ac_srcdir/configure.gnu
22355 elif test -f "$ac_srcdir/configure"; then
22356 ac_sub_configure=$ac_srcdir/configure
22357 elif test -f "$ac_srcdir/configure.in"; then
22358 # This should be Cygnus configure.
22359 ac_sub_configure=$ac_aux_dir/configure
d9898ee8 22360 else
8d138742
CE
22361 { $as_echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22362$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
d9898ee8 22363 ac_sub_configure=
22364 fi
22365
22366 # The recursion is here.
22367 if test -n "$ac_sub_configure"; then
22368 # Make the cache file name correct relative to the subdirectory.
22369 case $cache_file in
22370 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
dd184caf 22371 *) # Relative name.
22372 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
d9898ee8 22373 esac
22374
8d138742
CE
22375 { $as_echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22376$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
d9898ee8 22377 # The eval makes quoting arguments work.
dd184caf 22378 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22379 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
8d138742
CE
22380 { { $as_echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22381$as_echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
d9898ee8 22382 { (exit 1); exit 1; }; }
22383 fi
22384
dd184caf 22385 cd "$ac_popdir"
d9898ee8 22386 done
22387fi
8d138742
CE
22388if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22389 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22390$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22391fi
d9898ee8 22392
22393