Merge branch 'debian'
[hcoop/debian/courier-authlib.git] / configure
CommitLineData
d9898ee8 1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
64ff59ba 3# Generated by GNU Autoconf 2.61 for courier-authlib 0.60.1.
d9898ee8 4#
5# Report bugs to <courier-users@lists.sourceforge.net>.
6#
64ff59ba 7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006 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
64ff59ba 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=:
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
64ff59ba 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
42# The user is always right.
43if test "${PATH_SEPARATOR+set}" != set; then
44 echo "#! /bin/sh" >conf$$.sh
45 echo "exit 0" >>conf$$.sh
46 chmod +x conf$$.sh
47 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48 PATH_SEPARATOR=';'
49 else
50 PATH_SEPARATOR=:
51 fi
52 rm -f conf$$.sh
d9898ee8 53fi
d9898ee8 54
55# Support unset when possible.
56if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57 as_unset=unset
58else
59 as_unset=false
60fi
61
62
64ff59ba 63# IFS
64# We need space, tab and new line, in precisely that order. Quoting is
65# there to prevent editors from complaining about space-tab.
66# (If _AS_PATH_WALK were called with IFS unset, it would disable word
67# splitting by setting IFS to empty value.)
68as_nl='
69'
70IFS=" "" $as_nl"
71
72# Find who we are. Look in the path if we contain no directory separator.
73case $0 in
74 *[\\/]* ) as_myself=$0 ;;
75 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76for as_dir in $PATH
77do
78 IFS=$as_save_IFS
79 test -z "$as_dir" && as_dir=.
80 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81done
82IFS=$as_save_IFS
83
84 ;;
85esac
86# We did not find ourselves, most probably we were run as `sh COMMAND'
87# in which case we are not to be found in the path.
88if test "x$as_myself" = x; then
89 as_myself=$0
90fi
91if test ! -f "$as_myself"; then
92 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93 { (exit 1); exit 1; }
94fi
95
d9898ee8 96# Work around bugs in pre-3.0 UWIN ksh.
64ff59ba 97for as_var in ENV MAIL MAILPATH
98do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99done
d9898ee8 100PS1='$ '
101PS2='> '
102PS4='+ '
103
104# NLS nuisances.
105for as_var in \
106 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 LC_TELEPHONE LC_TIME
109do
110 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111 eval $as_var=C; export $as_var
112 else
64ff59ba 113 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
d9898ee8 114 fi
115done
116
117# Required to use basename.
64ff59ba 118if expr a : '\(a\)' >/dev/null 2>&1 &&
119 test "X`expr 00001 : '.*\(...\)'`" = X001; then
d9898ee8 120 as_expr=expr
121else
122 as_expr=false
123fi
124
64ff59ba 125if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
d9898ee8 126 as_basename=basename
127else
128 as_basename=false
129fi
130
131
132# Name of the executable.
64ff59ba 133as_me=`$as_basename -- "$0" ||
d9898ee8 134$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135 X"$0" : 'X\(//\)$' \| \
64ff59ba 136 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
d9898ee8 137echo X/"$0" |
64ff59ba 138 sed '/^.*\/\([^/][^/]*\)\/*$/{
139 s//\1/
140 q
141 }
142 /^X\/\(\/\/\)$/{
143 s//\1/
144 q
145 }
146 /^X\/\(\/\).*/{
147 s//\1/
148 q
149 }
150 s/.*/./; q'`
d9898ee8 151
64ff59ba 152# CDPATH.
153$as_unset CDPATH
d9898ee8 154
d9898ee8 155
64ff59ba 156if test "x$CONFIG_SHELL" = x; then
157 if (eval ":") 2>/dev/null; then
158 as_have_required=yes
159else
160 as_have_required=no
d9898ee8 161fi
162
64ff59ba 163 if test $as_have_required = yes && (eval ":
164(as_func_return () {
165 (exit \$1)
166}
167as_func_success () {
168 as_func_return 0
169}
170as_func_failure () {
171 as_func_return 1
172}
173as_func_ret_success () {
174 return 0
175}
176as_func_ret_failure () {
177 return 1
178}
d9898ee8 179
64ff59ba 180exitcode=0
181if as_func_success; then
182 :
183else
184 exitcode=1
185 echo as_func_success failed.
186fi
d9898ee8 187
64ff59ba 188if as_func_failure; then
189 exitcode=1
190 echo as_func_failure succeeded.
191fi
192
193if as_func_ret_success; then
194 :
195else
196 exitcode=1
197 echo as_func_ret_success failed.
198fi
199
200if as_func_ret_failure; then
201 exitcode=1
202 echo as_func_ret_failure succeeded.
203fi
204
205if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
206 :
207else
208 exitcode=1
209 echo positional parameters were not saved.
210fi
211
212test \$exitcode = 0) || { (exit 1); exit 1; }
213
214(
215 as_lineno_1=\$LINENO
216 as_lineno_2=\$LINENO
217 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219") 2> /dev/null; then
220 :
221else
222 as_candidate_shells=
d9898ee8 223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225do
226 IFS=$as_save_IFS
227 test -z "$as_dir" && as_dir=.
64ff59ba 228 case $as_dir in
d9898ee8 229 /*)
64ff59ba 230 for as_base in sh bash ksh sh5; do
231 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232 done;;
233 esac
234done
235IFS=$as_save_IFS
236
237
238 for as_shell in $as_candidate_shells $SHELL; do
239 # Try only shells that exist, to save several forks.
240 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241 { ("$as_shell") 2> /dev/null <<\_ASEOF
242if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243 emulate sh
244 NULLCMD=:
245 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246 # is contrary to our usage. Disable this feature.
247 alias -g '${1+"$@"}'='"$@"'
248 setopt NO_GLOB_SUBST
249else
250 case `(set -o) 2>/dev/null` in
251 *posix*) set -o posix ;;
252esac
253
254fi
255
256
257:
258_ASEOF
259}; then
260 CONFIG_SHELL=$as_shell
261 as_have_required=yes
262 if { "$as_shell" 2> /dev/null <<\_ASEOF
263if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 emulate sh
265 NULLCMD=:
266 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267 # is contrary to our usage. Disable this feature.
268 alias -g '${1+"$@"}'='"$@"'
269 setopt NO_GLOB_SUBST
270else
271 case `(set -o) 2>/dev/null` in
272 *posix*) set -o posix ;;
273esac
274
275fi
276
277
278:
279(as_func_return () {
280 (exit $1)
281}
282as_func_success () {
283 as_func_return 0
284}
285as_func_failure () {
286 as_func_return 1
287}
288as_func_ret_success () {
289 return 0
290}
291as_func_ret_failure () {
292 return 1
293}
294
295exitcode=0
296if as_func_success; then
297 :
298else
299 exitcode=1
300 echo as_func_success failed.
301fi
302
303if as_func_failure; then
304 exitcode=1
305 echo as_func_failure succeeded.
306fi
307
308if as_func_ret_success; then
309 :
310else
311 exitcode=1
312 echo as_func_ret_success failed.
313fi
314
315if as_func_ret_failure; then
316 exitcode=1
317 echo as_func_ret_failure succeeded.
318fi
319
320if ( set x; as_func_ret_success y && test x = "$1" ); then
321 :
322else
323 exitcode=1
324 echo positional parameters were not saved.
325fi
326
327test $exitcode = 0) || { (exit 1); exit 1; }
328
329(
d9898ee8 330 as_lineno_1=$LINENO
331 as_lineno_2=$LINENO
d9898ee8 332 test "x$as_lineno_1" != "x$as_lineno_2" &&
64ff59ba 333 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
334
335_ASEOF
336}; then
337 break
338fi
339
340fi
341
342 done
343
344 if test "x$CONFIG_SHELL" != x; then
345 for as_var in BASH_ENV ENV
346 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347 done
348 export CONFIG_SHELL
349 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
350fi
351
352
353 if test $as_have_required = no; then
354 echo This script requires a shell more modern than all the
355 echo shells that I found on your system. Please install a
356 echo modern shell, or manually run the script under such a
357 echo shell if you do have one.
358 { (exit 1); exit 1; }
359fi
360
361
362fi
363
364fi
365
366
367
368(eval "as_func_return () {
369 (exit \$1)
370}
371as_func_success () {
372 as_func_return 0
373}
374as_func_failure () {
375 as_func_return 1
376}
377as_func_ret_success () {
378 return 0
379}
380as_func_ret_failure () {
381 return 1
382}
383
384exitcode=0
385if as_func_success; then
386 :
387else
388 exitcode=1
389 echo as_func_success failed.
390fi
391
392if as_func_failure; then
393 exitcode=1
394 echo as_func_failure succeeded.
395fi
396
397if as_func_ret_success; then
398 :
399else
400 exitcode=1
401 echo as_func_ret_success failed.
402fi
403
404if as_func_ret_failure; then
405 exitcode=1
406 echo as_func_ret_failure succeeded.
407fi
408
409if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
410 :
411else
412 exitcode=1
413 echo positional parameters were not saved.
414fi
415
416test \$exitcode = 0") || {
417 echo No shell found that supports shell functions.
418 echo Please tell autoconf@gnu.org about your system,
419 echo including any error possibly output before this
420 echo message
421}
422
423
424
425 as_lineno_1=$LINENO
426 as_lineno_2=$LINENO
427 test "x$as_lineno_1" != "x$as_lineno_2" &&
428 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
d9898ee8 429
430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431 # uniformly replaced by the line number. The first 'sed' inserts a
64ff59ba 432 # line-number line after each line using $LINENO; the second 'sed'
433 # does the real work. The second script uses 'N' to pair each
434 # line-number line with the line containing $LINENO, and appends
435 # trailing '-' during substitution so that $LINENO is not a special
436 # case at line end.
d9898ee8 437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
64ff59ba 438 # scripts with optimization help from Paolo Bonzini. Blame Lee
439 # E. McMahon (1931-1989) for sed's syntax. :-)
440 sed -n '
441 p
442 /[$]LINENO/=
443 ' <$as_myself |
d9898ee8 444 sed '
64ff59ba 445 s/[$]LINENO.*/&-/
446 t lineno
447 b
448 :lineno
d9898ee8 449 N
64ff59ba 450 :loop
451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
d9898ee8 452 t loop
64ff59ba 453 s/-\n.*//
d9898ee8 454 ' >$as_me.lineno &&
64ff59ba 455 chmod +x "$as_me.lineno" ||
d9898ee8 456 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457 { (exit 1); exit 1; }; }
458
459 # Don't try to exec as it changes $[0], causing all sort of problems
460 # (the dirname of $[0] is not the place where we might find the
64ff59ba 461 # original and so on. Autoconf is especially sensitive to this).
462 . "./$as_me.lineno"
d9898ee8 463 # Exit status is that of the last command.
464 exit
465}
466
467
64ff59ba 468if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469 as_dirname=dirname
470else
471 as_dirname=false
472fi
473
474ECHO_C= ECHO_N= ECHO_T=
475case `echo -n x` in
476-n*)
477 case `echo 'x\c'` in
478 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
479 *) ECHO_C='\c';;
480 esac;;
481*)
482 ECHO_N='-n';;
d9898ee8 483esac
484
64ff59ba 485if expr a : '\(a\)' >/dev/null 2>&1 &&
486 test "X`expr 00001 : '.*\(...\)'`" = X001; then
d9898ee8 487 as_expr=expr
488else
489 as_expr=false
490fi
491
492rm -f conf$$ conf$$.exe conf$$.file
64ff59ba 493if test -d conf$$.dir; then
494 rm -f conf$$.dir/conf$$.file
495else
496 rm -f conf$$.dir
497 mkdir conf$$.dir
498fi
d9898ee8 499echo >conf$$.file
500if ln -s conf$$.file conf$$ 2>/dev/null; then
64ff59ba 501 as_ln_s='ln -s'
502 # ... but there are two gotchas:
503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505 # In both cases, we have to default to `cp -p'.
506 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
d9898ee8 507 as_ln_s='cp -p'
d9898ee8 508elif ln conf$$.file conf$$ 2>/dev/null; then
509 as_ln_s=ln
510else
511 as_ln_s='cp -p'
512fi
64ff59ba 513rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514rmdir conf$$.dir 2>/dev/null
d9898ee8 515
516if mkdir -p . 2>/dev/null; then
517 as_mkdir_p=:
518else
519 test -d ./-p && rmdir ./-p
520 as_mkdir_p=false
521fi
522
64ff59ba 523if test -x / >/dev/null 2>&1; then
524 as_test_x='test -x'
525else
526 if ls -dL / >/dev/null 2>&1; then
527 as_ls_L_option=L
528 else
529 as_ls_L_option=
530 fi
531 as_test_x='
532 eval sh -c '\''
533 if test -d "$1"; then
534 test -d "$1/.";
535 else
536 case $1 in
537 -*)set "./$1";;
538 esac;
539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540 ???[sx]*):;;*)false;;esac;fi
541 '\'' sh
542 '
543fi
544as_executable_p=$as_test_x
d9898ee8 545
546# Sed expression to map a string onto a valid CPP name.
547as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
548
549# Sed expression to map a string onto a valid variable name.
550as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
551
552
d9898ee8 553
554
555# Check that we are running under the correct shell.
556SHELL=${CONFIG_SHELL-/bin/sh}
557
558case X$ECHO in
559X*--fallback-echo)
560 # Remove one level of quotation (which was required for Make).
561 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
562 ;;
563esac
564
565echo=${ECHO-echo}
566if test "X$1" = X--no-reexec; then
567 # Discard the --no-reexec flag, and continue.
568 shift
569elif test "X$1" = X--fallback-echo; then
570 # Avoid inline document here, it may be left over
571 :
572elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
573 # Yippee, $echo works!
574 :
575else
576 # Restart under the correct shell.
577 exec $SHELL "$0" --no-reexec ${1+"$@"}
578fi
579
580if test "X$1" = X--fallback-echo; then
581 # used as fallback echo
582 shift
583 cat <<EOF
584$*
585EOF
586 exit 0
587fi
588
589# The HP-UX ksh and POSIX shell print the target directory to stdout
590# if CDPATH is set.
591(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
592
593if test -z "$ECHO"; then
594if test "X${echo_test_string+set}" != Xset; then
595# find a string as large as possible, as long as the shell can cope with it
596 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
597 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
598 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
599 echo_test_string=`eval $cmd` &&
600 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
601 then
602 break
603 fi
604 done
605fi
606
607if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
608 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
609 test "X$echo_testing_string" = "X$echo_test_string"; then
610 :
611else
612 # The Solaris, AIX, and Digital Unix default echo programs unquote
613 # backslashes. This makes it impossible to quote backslashes using
614 # echo "$something" | sed 's/\\/\\\\/g'
615 #
616 # So, first we look for a working echo in the user's PATH.
617
618 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
619 for dir in $PATH /usr/ucb; do
620 IFS="$lt_save_ifs"
621 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
622 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
623 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
624 test "X$echo_testing_string" = "X$echo_test_string"; then
625 echo="$dir/echo"
626 break
627 fi
628 done
629 IFS="$lt_save_ifs"
630
631 if test "X$echo" = Xecho; then
632 # We didn't find a better echo, so look for alternatives.
633 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
634 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
635 test "X$echo_testing_string" = "X$echo_test_string"; then
636 # This shell has a builtin print -r that does the trick.
637 echo='print -r'
638 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
639 test "X$CONFIG_SHELL" != X/bin/ksh; then
640 # If we have ksh, try running configure again with it.
641 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
642 export ORIGINAL_CONFIG_SHELL
643 CONFIG_SHELL=/bin/ksh
644 export CONFIG_SHELL
645 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
646 else
647 # Try using printf.
648 echo='printf %s\n'
649 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
650 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
651 test "X$echo_testing_string" = "X$echo_test_string"; then
652 # Cool, printf works
653 :
654 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
655 test "X$echo_testing_string" = 'X\t' &&
656 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
657 test "X$echo_testing_string" = "X$echo_test_string"; then
658 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
659 export CONFIG_SHELL
660 SHELL="$CONFIG_SHELL"
661 export SHELL
662 echo="$CONFIG_SHELL $0 --fallback-echo"
663 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
664 test "X$echo_testing_string" = 'X\t' &&
665 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
666 test "X$echo_testing_string" = "X$echo_test_string"; then
667 echo="$CONFIG_SHELL $0 --fallback-echo"
668 else
669 # maybe with a smaller string...
670 prev=:
671
672 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
673 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
674 then
675 break
676 fi
677 prev="$cmd"
678 done
679
680 if test "$prev" != 'sed 50q "$0"'; then
681 echo_test_string=`eval $prev`
682 export echo_test_string
683 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
684 else
685 # Oops. We lost completely, so just stick with echo.
686 echo=echo
687 fi
688 fi
689 fi
690 fi
691fi
692fi
693
694# Copy echo and quote the copy suitably for passing to libtool from
695# the Makefile, instead of quoting the original, which is used later.
696ECHO=$echo
697if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
698 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
699fi
700
701
702
703
704tagnames=${tagnames+${tagnames},}CXX
705
706tagnames=${tagnames+${tagnames},}F77
707
64ff59ba 708exec 7<&0 </dev/null 6>&1
709
d9898ee8 710# Name of the host.
711# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
712# so uname gets run too.
713ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
714
d9898ee8 715#
716# Initializations.
717#
718ac_default_prefix=/usr/local
64ff59ba 719ac_clean_files=
d9898ee8 720ac_config_libobj_dir=.
64ff59ba 721LIBOBJS=
d9898ee8 722cross_compiling=no
723subdirs=
724MFLAGS=
725MAKEFLAGS=
726SHELL=${CONFIG_SHELL-/bin/sh}
727
d9898ee8 728# Identity of this package.
729PACKAGE_NAME='courier-authlib'
730PACKAGE_TARNAME='courier-authlib'
64ff59ba 731PACKAGE_VERSION='0.60.1'
732PACKAGE_STRING='courier-authlib 0.60.1'
d9898ee8 733PACKAGE_BUGREPORT='courier-users@lists.sourceforge.net'
734
735ac_unique_file="courierauth.h"
736# Factoring default headers for most tests.
737ac_includes_default="\
738#include <stdio.h>
64ff59ba 739#ifdef HAVE_SYS_TYPES_H
d9898ee8 740# include <sys/types.h>
741#endif
64ff59ba 742#ifdef HAVE_SYS_STAT_H
d9898ee8 743# include <sys/stat.h>
744#endif
64ff59ba 745#ifdef STDC_HEADERS
d9898ee8 746# include <stdlib.h>
747# include <stddef.h>
748#else
64ff59ba 749# ifdef HAVE_STDLIB_H
d9898ee8 750# include <stdlib.h>
751# endif
752#endif
64ff59ba 753#ifdef HAVE_STRING_H
754# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
d9898ee8 755# include <memory.h>
756# endif
757# include <string.h>
758#endif
64ff59ba 759#ifdef HAVE_STRINGS_H
d9898ee8 760# include <strings.h>
761#endif
64ff59ba 762#ifdef HAVE_INTTYPES_H
d9898ee8 763# include <inttypes.h>
d9898ee8 764#endif
64ff59ba 765#ifdef HAVE_STDINT_H
766# include <stdint.h>
767#endif
768#ifdef HAVE_UNISTD_H
d9898ee8 769# include <unistd.h>
770#endif"
771
64ff59ba 772ac_subst_vars='SHELL
773PATH_SEPARATOR
774PACKAGE_NAME
775PACKAGE_TARNAME
776PACKAGE_VERSION
777PACKAGE_STRING
778PACKAGE_BUGREPORT
779exec_prefix
780prefix
781program_transform_name
782bindir
783sbindir
784libexecdir
785datarootdir
786datadir
787sysconfdir
788sharedstatedir
789localstatedir
790includedir
791oldincludedir
792docdir
793infodir
794htmldir
795dvidir
796pdfdir
797psdir
798libdir
799localedir
800mandir
801DEFS
802ECHO_C
803ECHO_N
804ECHO_T
805LIBS
806build_alias
807host_alias
808target_alias
809INSTALL_PROGRAM
810INSTALL_SCRIPT
811INSTALL_DATA
812am__isrc
813CYGPATH_W
814PACKAGE
815VERSION
816ACLOCAL
817AUTOCONF
818AUTOMAKE
819AUTOHEADER
820MAKEINFO
821install_sh
822STRIP
823INSTALL_STRIP_PROGRAM
824mkdir_p
825AWK
826SET_MAKE
827am__leading_dot
828AMTAR
829am__tar
830am__untar
831CC
832CFLAGS
833LDFLAGS
834CPPFLAGS
835ac_ct_CC
836EXEEXT
837OBJEXT
838DEPDIR
839am__include
840am__quote
841AMDEP_TRUE
842AMDEP_FALSE
843AMDEPBACKSLASH
844CCDEPMODE
845am__fastdepCC_TRUE
846am__fastdepCC_FALSE
847CPP
848LN_S
849SYSCONFTOOL_PERL
850SYSCONFTOOL
851build
852build_cpu
853build_vendor
854build_os
855host
856host_cpu
857host_vendor
858host_os
859SED
860GREP
861EGREP
862ECHO
863AR
864RANLIB
865CXX
866CXXFLAGS
867ac_ct_CXX
868CXXDEPMODE
869am__fastdepCXX_TRUE
870am__fastdepCXX_FALSE
871CXXCPP
872F77
873FFLAGS
874ac_ct_F77
875LIBTOOL
876LTDLINCL
877LIBLTDL
878PERL
879COURIERCONFIG
880EXPECT
881PASSWD
882MD5LIB
883HAVE_MD5_TRUE
884HAVE_MD5_FALSE
885SHA1LIB
886HAVE_SHA1_TRUE
887HAVE_SHA1_FALSE
888HMACLIB
889HAVE_HMACLIB_TRUE
890HAVE_HMACLIB_FALSE
891NETLIBS
892DBSUBDIR
893USE_GDBM
894USE_DB
895LIBDB
896LIBGDBM
897dblibrary
898LIBAUTHUSERDB
899userdb
900LIBDL
901AUTHPAMCRYPT
902LIBAUTHPAM
903authldaprc
904LDAPLIBS
905LIBAUTHLDAP
906HAVE_LDAP_TRUE
907HAVE_LDAP_FALSE
908SHADOWLIBS
909LIBAUTHSHADOW
910LIBAUTHPWD
911vpopmail_home
912VPOPMAILLIBS
913LIBAUTHVCHKPW
914authpgsqlrc
915PG_CONFIG
916PGSQL_LIBS
917LIBAUTHPGSQL
918HAVE_AUTHPGSQL_TRUE
919HAVE_AUTHPGSQL_FALSE
920authmysqlrc
921MYSQL_CONFIG
922LIBAUTHMYSQL
923MYSQL_LIBS
924HAVE_AUTHMYSQL_TRUE
925HAVE_AUTHMYSQL_FALSE
926HAVE_CUSTOM_TRUE
927HAVE_CUSTOM_FALSE
928LIBAUTHCUSTOM
929authProg
930HAVE_PIPE_TRUE
931HAVE_PIPE_FALSE
932LIBAUTHPIPE
933CRYPTLIBS
934authdaemonrc
935authdaemonvar
936LIBM
937mailuser
938mailgroup
939LIBLTDL_SUBDIR
940REPOSITORY
941HAVE_SGML_TRUE
942HAVE_SGML_FALSE
943subdirs
944LIBOBJS
945LTLIBOBJS'
d9898ee8 946ac_subst_files=''
64ff59ba 947 ac_precious_vars='build_alias
948host_alias
949target_alias
950CC
951CFLAGS
952LDFLAGS
953LIBS
954CPPFLAGS
955CPP
956CXX
957CXXFLAGS
958CCC
959CXXCPP
960F77
961FFLAGS'
962ac_subdirs_all='libltdl bdbobj gdbmobj md5 sha1 libhmac numlib makedat userdb rfc822 random128 liblock liblog'
d9898ee8 963
964# Initialize some variables set by options.
965ac_init_help=
966ac_init_version=false
967# The variables have the same names as the options, with
968# dashes changed to underlines.
969cache_file=/dev/null
970exec_prefix=NONE
971no_create=
972no_recursion=
973prefix=NONE
974program_prefix=NONE
975program_suffix=NONE
976program_transform_name=s,x,x,
977silent=
978site=
979srcdir=
980verbose=
981x_includes=NONE
982x_libraries=NONE
983
984# Installation directory options.
985# These are left unexpanded so users can "make install exec_prefix=/foo"
986# and all the variables that are supposed to be based on exec_prefix
987# by default will actually change.
988# Use braces instead of parens because sh, perl, etc. also accept them.
64ff59ba 989# (The list follows the same order as the GNU Coding Standards.)
d9898ee8 990bindir='${exec_prefix}/bin'
991sbindir='${exec_prefix}/sbin'
992libexecdir='${exec_prefix}/libexec'
64ff59ba 993datarootdir='${prefix}/share'
994datadir='${datarootdir}'
d9898ee8 995sysconfdir='${prefix}/etc'
996sharedstatedir='${prefix}/com'
997localstatedir='${prefix}/var'
d9898ee8 998includedir='${prefix}/include'
999oldincludedir='/usr/include'
64ff59ba 1000docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1001infodir='${datarootdir}/info'
1002htmldir='${docdir}'
1003dvidir='${docdir}'
1004pdfdir='${docdir}'
1005psdir='${docdir}'
1006libdir='${exec_prefix}/lib'
1007localedir='${datarootdir}/locale'
1008mandir='${datarootdir}/man'
d9898ee8 1009
1010ac_prev=
64ff59ba 1011ac_dashdash=
d9898ee8 1012for ac_option
1013do
1014 # If the previous option needs an argument, assign it.
1015 if test -n "$ac_prev"; then
64ff59ba 1016 eval $ac_prev=\$ac_option
d9898ee8 1017 ac_prev=
1018 continue
1019 fi
1020
64ff59ba 1021 case $ac_option in
1022 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1023 *) ac_optarg=yes ;;
1024 esac
d9898ee8 1025
1026 # Accept the important Cygnus configure options, so we can diagnose typos.
1027
64ff59ba 1028 case $ac_dashdash$ac_option in
1029 --)
1030 ac_dashdash=yes ;;
d9898ee8 1031
1032 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1033 ac_prev=bindir ;;
1034 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1035 bindir=$ac_optarg ;;
1036
1037 -build | --build | --buil | --bui | --bu)
1038 ac_prev=build_alias ;;
1039 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1040 build_alias=$ac_optarg ;;
1041
1042 -cache-file | --cache-file | --cache-fil | --cache-fi \
1043 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1044 ac_prev=cache_file ;;
1045 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1046 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1047 cache_file=$ac_optarg ;;
1048
1049 --config-cache | -C)
1050 cache_file=config.cache ;;
1051
64ff59ba 1052 -datadir | --datadir | --datadi | --datad)
d9898ee8 1053 ac_prev=datadir ;;
64ff59ba 1054 -datadir=* | --datadir=* | --datadi=* | --datad=*)
d9898ee8 1055 datadir=$ac_optarg ;;
1056
64ff59ba 1057 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1058 | --dataroo | --dataro | --datar)
1059 ac_prev=datarootdir ;;
1060 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1061 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1062 datarootdir=$ac_optarg ;;
1063
d9898ee8 1064 -disable-* | --disable-*)
1065 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1066 # Reject names that are not valid shell variable names.
64ff59ba 1067 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
d9898ee8 1068 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1069 { (exit 1); exit 1; }; }
64ff59ba 1070 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1071 eval enable_$ac_feature=no ;;
1072
1073 -docdir | --docdir | --docdi | --doc | --do)
1074 ac_prev=docdir ;;
1075 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1076 docdir=$ac_optarg ;;
1077
1078 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1079 ac_prev=dvidir ;;
1080 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1081 dvidir=$ac_optarg ;;
d9898ee8 1082
1083 -enable-* | --enable-*)
1084 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1085 # Reject names that are not valid shell variable names.
64ff59ba 1086 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
d9898ee8 1087 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1088 { (exit 1); exit 1; }; }
64ff59ba 1089 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1090 eval enable_$ac_feature=\$ac_optarg ;;
d9898ee8 1091
1092 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1093 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1094 | --exec | --exe | --ex)
1095 ac_prev=exec_prefix ;;
1096 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1097 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1098 | --exec=* | --exe=* | --ex=*)
1099 exec_prefix=$ac_optarg ;;
1100
1101 -gas | --gas | --ga | --g)
1102 # Obsolete; use --with-gas.
1103 with_gas=yes ;;
1104
1105 -help | --help | --hel | --he | -h)
1106 ac_init_help=long ;;
1107 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1108 ac_init_help=recursive ;;
1109 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1110 ac_init_help=short ;;
1111
1112 -host | --host | --hos | --ho)
1113 ac_prev=host_alias ;;
1114 -host=* | --host=* | --hos=* | --ho=*)
1115 host_alias=$ac_optarg ;;
1116
64ff59ba 1117 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1118 ac_prev=htmldir ;;
1119 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1120 | --ht=*)
1121 htmldir=$ac_optarg ;;
1122
d9898ee8 1123 -includedir | --includedir | --includedi | --included | --include \
1124 | --includ | --inclu | --incl | --inc)
1125 ac_prev=includedir ;;
1126 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1127 | --includ=* | --inclu=* | --incl=* | --inc=*)
1128 includedir=$ac_optarg ;;
1129
1130 -infodir | --infodir | --infodi | --infod | --info | --inf)
1131 ac_prev=infodir ;;
1132 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1133 infodir=$ac_optarg ;;
1134
1135 -libdir | --libdir | --libdi | --libd)
1136 ac_prev=libdir ;;
1137 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1138 libdir=$ac_optarg ;;
1139
1140 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1141 | --libexe | --libex | --libe)
1142 ac_prev=libexecdir ;;
1143 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1144 | --libexe=* | --libex=* | --libe=*)
1145 libexecdir=$ac_optarg ;;
1146
64ff59ba 1147 -localedir | --localedir | --localedi | --localed | --locale)
1148 ac_prev=localedir ;;
1149 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1150 localedir=$ac_optarg ;;
1151
d9898ee8 1152 -localstatedir | --localstatedir | --localstatedi | --localstated \
64ff59ba 1153 | --localstate | --localstat | --localsta | --localst | --locals)
d9898ee8 1154 ac_prev=localstatedir ;;
1155 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
64ff59ba 1156 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
d9898ee8 1157 localstatedir=$ac_optarg ;;
1158
1159 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1160 ac_prev=mandir ;;
1161 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1162 mandir=$ac_optarg ;;
1163
1164 -nfp | --nfp | --nf)
1165 # Obsolete; use --without-fp.
1166 with_fp=no ;;
1167
1168 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1169 | --no-cr | --no-c | -n)
1170 no_create=yes ;;
1171
1172 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1173 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1174 no_recursion=yes ;;
1175
1176 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1177 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1178 | --oldin | --oldi | --old | --ol | --o)
1179 ac_prev=oldincludedir ;;
1180 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1181 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1182 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1183 oldincludedir=$ac_optarg ;;
1184
1185 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1186 ac_prev=prefix ;;
1187 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1188 prefix=$ac_optarg ;;
1189
1190 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1191 | --program-pre | --program-pr | --program-p)
1192 ac_prev=program_prefix ;;
1193 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1194 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1195 program_prefix=$ac_optarg ;;
1196
1197 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1198 | --program-suf | --program-su | --program-s)
1199 ac_prev=program_suffix ;;
1200 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1201 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1202 program_suffix=$ac_optarg ;;
1203
1204 -program-transform-name | --program-transform-name \
1205 | --program-transform-nam | --program-transform-na \
1206 | --program-transform-n | --program-transform- \
1207 | --program-transform | --program-transfor \
1208 | --program-transfo | --program-transf \
1209 | --program-trans | --program-tran \
1210 | --progr-tra | --program-tr | --program-t)
1211 ac_prev=program_transform_name ;;
1212 -program-transform-name=* | --program-transform-name=* \
1213 | --program-transform-nam=* | --program-transform-na=* \
1214 | --program-transform-n=* | --program-transform-=* \
1215 | --program-transform=* | --program-transfor=* \
1216 | --program-transfo=* | --program-transf=* \
1217 | --program-trans=* | --program-tran=* \
1218 | --progr-tra=* | --program-tr=* | --program-t=*)
1219 program_transform_name=$ac_optarg ;;
1220
64ff59ba 1221 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1222 ac_prev=pdfdir ;;
1223 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1224 pdfdir=$ac_optarg ;;
1225
1226 -psdir | --psdir | --psdi | --psd | --ps)
1227 ac_prev=psdir ;;
1228 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1229 psdir=$ac_optarg ;;
1230
d9898ee8 1231 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1232 | -silent | --silent | --silen | --sile | --sil)
1233 silent=yes ;;
1234
1235 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1236 ac_prev=sbindir ;;
1237 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1238 | --sbi=* | --sb=*)
1239 sbindir=$ac_optarg ;;
1240
1241 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1242 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1243 | --sharedst | --shareds | --shared | --share | --shar \
1244 | --sha | --sh)
1245 ac_prev=sharedstatedir ;;
1246 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1247 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1248 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1249 | --sha=* | --sh=*)
1250 sharedstatedir=$ac_optarg ;;
1251
1252 -site | --site | --sit)
1253 ac_prev=site ;;
1254 -site=* | --site=* | --sit=*)
1255 site=$ac_optarg ;;
1256
1257 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1258 ac_prev=srcdir ;;
1259 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1260 srcdir=$ac_optarg ;;
1261
1262 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1263 | --syscon | --sysco | --sysc | --sys | --sy)
1264 ac_prev=sysconfdir ;;
1265 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1266 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1267 sysconfdir=$ac_optarg ;;
1268
1269 -target | --target | --targe | --targ | --tar | --ta | --t)
1270 ac_prev=target_alias ;;
1271 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1272 target_alias=$ac_optarg ;;
1273
1274 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1275 verbose=yes ;;
1276
1277 -version | --version | --versio | --versi | --vers | -V)
1278 ac_init_version=: ;;
1279
1280 -with-* | --with-*)
1281 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1282 # Reject names that are not valid shell variable names.
64ff59ba 1283 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
d9898ee8 1284 { echo "$as_me: error: invalid package name: $ac_package" >&2
1285 { (exit 1); exit 1; }; }
64ff59ba 1286 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1287 eval with_$ac_package=\$ac_optarg ;;
d9898ee8 1288
1289 -without-* | --without-*)
1290 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1291 # Reject names that are not valid shell variable names.
64ff59ba 1292 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
d9898ee8 1293 { echo "$as_me: error: invalid package name: $ac_package" >&2
1294 { (exit 1); exit 1; }; }
64ff59ba 1295 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1296 eval with_$ac_package=no ;;
d9898ee8 1297
1298 --x)
1299 # Obsolete; use --with-x.
1300 with_x=yes ;;
1301
1302 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1303 | --x-incl | --x-inc | --x-in | --x-i)
1304 ac_prev=x_includes ;;
1305 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1306 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1307 x_includes=$ac_optarg ;;
1308
1309 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1310 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1311 ac_prev=x_libraries ;;
1312 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1313 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1314 x_libraries=$ac_optarg ;;
1315
1316 -*) { echo "$as_me: error: unrecognized option: $ac_option
1317Try \`$0 --help' for more information." >&2
1318 { (exit 1); exit 1; }; }
1319 ;;
1320
1321 *=*)
1322 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1323 # Reject names that are not valid shell variable names.
1324 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1325 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1326 { (exit 1); exit 1; }; }
64ff59ba 1327 eval $ac_envvar=\$ac_optarg
d9898ee8 1328 export $ac_envvar ;;
1329
1330 *)
1331 # FIXME: should be removed in autoconf 3.0.
1332 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1333 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1334 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1335 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1336 ;;
1337
1338 esac
1339done
1340
1341if test -n "$ac_prev"; then
1342 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1343 { echo "$as_me: error: missing argument to $ac_option" >&2
1344 { (exit 1); exit 1; }; }
1345fi
1346
64ff59ba 1347# Be sure to have absolute directory names.
1348for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1349 datadir sysconfdir sharedstatedir localstatedir includedir \
1350 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1351 libdir localedir mandir
d9898ee8 1352do
64ff59ba 1353 eval ac_val=\$$ac_var
d9898ee8 1354 case $ac_val in
64ff59ba 1355 [\\/$]* | ?:[\\/]* ) continue;;
1356 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
d9898ee8 1357 esac
64ff59ba 1358 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1359 { (exit 1); exit 1; }; }
d9898ee8 1360done
1361
1362# There might be people who depend on the old broken behavior: `$host'
1363# used to hold the argument of --host etc.
1364# FIXME: To remove some day.
1365build=$build_alias
1366host=$host_alias
1367target=$target_alias
1368
1369# FIXME: To remove some day.
1370if test "x$host_alias" != x; then
1371 if test "x$build_alias" = x; then
1372 cross_compiling=maybe
1373 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1374 If a cross compiler is detected then cross compile mode will be used." >&2
1375 elif test "x$build_alias" != "x$host_alias"; then
1376 cross_compiling=yes
1377 fi
1378fi
1379
1380ac_tool_prefix=
1381test -n "$host_alias" && ac_tool_prefix=$host_alias-
1382
1383test "$silent" = yes && exec 6>/dev/null
1384
1385
64ff59ba 1386ac_pwd=`pwd` && test -n "$ac_pwd" &&
1387ac_ls_di=`ls -di .` &&
1388ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1389 { echo "$as_me: error: Working directory cannot be determined" >&2
1390 { (exit 1); exit 1; }; }
1391test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1392 { echo "$as_me: error: pwd does not report name of working directory" >&2
1393 { (exit 1); exit 1; }; }
1394
1395
d9898ee8 1396# Find the source files, if location was not specified.
1397if test -z "$srcdir"; then
1398 ac_srcdir_defaulted=yes
64ff59ba 1399 # Try the directory containing this script, then the parent directory.
1400 ac_confdir=`$as_dirname -- "$0" ||
d9898ee8 1401$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1402 X"$0" : 'X\(//\)[^/]' \| \
1403 X"$0" : 'X\(//\)$' \| \
64ff59ba 1404 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
d9898ee8 1405echo X"$0" |
64ff59ba 1406 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1407 s//\1/
1408 q
1409 }
1410 /^X\(\/\/\)[^/].*/{
1411 s//\1/
1412 q
1413 }
1414 /^X\(\/\/\)$/{
1415 s//\1/
1416 q
1417 }
1418 /^X\(\/\).*/{
1419 s//\1/
1420 q
1421 }
1422 s/.*/./; q'`
d9898ee8 1423 srcdir=$ac_confdir
64ff59ba 1424 if test ! -r "$srcdir/$ac_unique_file"; then
d9898ee8 1425 srcdir=..
1426 fi
1427else
1428 ac_srcdir_defaulted=no
1429fi
64ff59ba 1430if test ! -r "$srcdir/$ac_unique_file"; then
1431 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1432 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
d9898ee8 1433 { (exit 1); exit 1; }; }
d9898ee8 1434fi
64ff59ba 1435ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1436ac_abs_confdir=`(
1437 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
d9898ee8 1438 { (exit 1); exit 1; }; }
64ff59ba 1439 pwd)`
1440# When building in place, set srcdir=.
1441if test "$ac_abs_confdir" = "$ac_pwd"; then
1442 srcdir=.
1443fi
1444# Remove unnecessary trailing slashes from srcdir.
1445# Double slashes in file names in object file debugging info
1446# mess up M-x gdb in Emacs.
1447case $srcdir in
1448*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1449esac
1450for ac_var in $ac_precious_vars; do
1451 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1452 eval ac_env_${ac_var}_value=\$${ac_var}
1453 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1454 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1455done
d9898ee8 1456
1457#
1458# Report the --help message.
1459#
1460if test "$ac_init_help" = "long"; then
1461 # Omit some internal or obsolete options to make the list less imposing.
1462 # This message is too long to be a string in the A/UX 3.1 sh.
1463 cat <<_ACEOF
64ff59ba 1464\`configure' configures courier-authlib 0.60.1 to adapt to many kinds of systems.
d9898ee8 1465
1466Usage: $0 [OPTION]... [VAR=VALUE]...
1467
1468To assign environment variables (e.g., CC, CFLAGS...), specify them as
1469VAR=VALUE. See below for descriptions of some of the useful variables.
1470
1471Defaults for the options are specified in brackets.
1472
1473Configuration:
1474 -h, --help display this help and exit
1475 --help=short display options specific to this package
1476 --help=recursive display the short help of all the included packages
1477 -V, --version display version information and exit
1478 -q, --quiet, --silent do not print \`checking...' messages
1479 --cache-file=FILE cache test results in FILE [disabled]
1480 -C, --config-cache alias for \`--cache-file=config.cache'
1481 -n, --no-create do not create output files
1482 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1483
d9898ee8 1484Installation directories:
1485 --prefix=PREFIX install architecture-independent files in PREFIX
1486 [$ac_default_prefix]
1487 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1488 [PREFIX]
1489
1490By default, \`make install' will install all the files in
1491\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1492an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1493for instance \`--prefix=\$HOME'.
1494
1495For better control, use the options below.
1496
1497Fine tuning of the installation directories:
1498 --bindir=DIR user executables [EPREFIX/bin]
1499 --sbindir=DIR system admin executables [EPREFIX/sbin]
1500 --libexecdir=DIR program executables [EPREFIX/libexec]
d9898ee8 1501 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1502 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1503 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1504 --libdir=DIR object code libraries [EPREFIX/lib]
1505 --includedir=DIR C header files [PREFIX/include]
1506 --oldincludedir=DIR C header files for non-gcc [/usr/include]
64ff59ba 1507 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1508 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1509 --infodir=DIR info documentation [DATAROOTDIR/info]
1510 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1511 --mandir=DIR man documentation [DATAROOTDIR/man]
1512 --docdir=DIR documentation root [DATAROOTDIR/doc/courier-authlib]
1513 --htmldir=DIR html documentation [DOCDIR]
1514 --dvidir=DIR dvi documentation [DOCDIR]
1515 --pdfdir=DIR pdf documentation [DOCDIR]
1516 --psdir=DIR ps documentation [DOCDIR]
d9898ee8 1517_ACEOF
1518
1519 cat <<\_ACEOF
1520
1521Program names:
1522 --program-prefix=PREFIX prepend PREFIX to installed program names
1523 --program-suffix=SUFFIX append SUFFIX to installed program names
1524 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1525
1526System types:
1527 --build=BUILD configure for building on BUILD [guessed]
1528 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1529_ACEOF
1530fi
1531
1532if test -n "$ac_init_help"; then
1533 case $ac_init_help in
64ff59ba 1534 short | recursive ) echo "Configuration of courier-authlib 0.60.1:";;
d9898ee8 1535 esac
1536 cat <<\_ACEOF
1537
1538Optional Features:
1539 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1540 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1541 --disable-dependency-tracking speeds up one-time build
1542 --enable-dependency-tracking do not reject slow dependency extractors
64ff59ba 1543 --enable-shared[=PKGS] build shared libraries [default=yes]
1544 --enable-static[=PKGS] build static libraries [default=yes]
d9898ee8 1545 --enable-fast-install[=PKGS]
1546 optimize for fast installation [default=yes]
1547 --disable-libtool-lock avoid locking (might break parallel builds)
1548
1549Optional Packages:
1550 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1551 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1552 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1553 --with-pic try to use only PIC/non-PIC objects [default=use
1554 both]
64ff59ba 1555 --with-tags[=TAGS] include additional configurations [automatic]
d9898ee8 1556
1557 --with-pkgconfdir=d Install config files in directory
1558 --with-db=gdbm Use the GDBM library.
1559 --with-db=db Use the libdb.a library.
1560 --without-authuserdb Do not include the authuserdb module
1561
1562 --without-authpam Do not include the authpam module
1563 --with-authpam-libraries="libs" Link 'libs' with authpam, this may be
1564 required for FreeBSD 3.3
1565 --without-authldap Do not include the authldap module
1566 --with-authldaprc=filename Expect to find authldaprc here
1567 --without-authpwd Do not include the authpwd module
1568 --without-authshadow Do not include the authshadow module
1569 --without-authvchkpw Do not include the authvchkpw module
1570 --with-authpgsqlrc=filename Expect to find authpgsql here
1571 --without-authpgsql Do not include the authpgsql module
1572 --with-pgsql-libs=DIR Look for pgsql libs in this dir
1573 --with-pgsql-includes=DIR Look for pgsql includes in this dir
1574 --with-authmysqlrc=filename Expect to find authmysql here
1575 --without-authmysql Do not include the authmysql module
1576 --with-mysql-libs=DIR Look for mysql libs in this dir
1577 --with-mysql-includes=DIR Look for mysql includes in this dir
1578 --without-authcustom Do not include the authcustom module
1579 --with-pipeprog=filename Expect to find the pipe-prog here
1580 --without-authpipe Do not include the authpipe module
1581 --with-authdaemonrc=filename Expect to find authdaemonrc here
1582 --with-authdaemonvar=directory Directory where authdaemon.pid and
1583 the listening socket is created
1584 --with-mailuser=user Specify mail user name (defaults to
1585 courier, daemon, admin, bin, or root)
1586 --with-mailgroup=group Specify mail group name (defaults to courier,
1587 daemon, sys, adm, or root)
1588 --without-stdheaderdir Header files will be installed into a directory
1589 not in the compiler's default search path.
1590
1591Some influential environment variables:
1592 CC C compiler command
1593 CFLAGS C compiler flags
1594 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1595 nonstandard directory <lib dir>
64ff59ba 1596 LIBS libraries to pass to the linker, e.g. -l<library>
1597 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1598 you have headers in a nonstandard directory <include dir>
d9898ee8 1599 CPP C preprocessor
1600 CXX C++ compiler command
1601 CXXFLAGS C++ compiler flags
1602 CXXCPP C++ preprocessor
1603 F77 Fortran 77 compiler command
1604 FFLAGS Fortran 77 compiler flags
1605
1606Use these variables to override the choices made by `configure' or to help
1607it to find libraries and programs with nonstandard names/locations.
1608
1609Report bugs to <courier-users@lists.sourceforge.net>.
1610_ACEOF
64ff59ba 1611ac_status=$?
d9898ee8 1612fi
1613
1614if test "$ac_init_help" = "recursive"; then
1615 # If there are subdirs, report their specific --help.
d9898ee8 1616 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
64ff59ba 1617 test -d "$ac_dir" || continue
d9898ee8 1618 ac_builddir=.
1619
64ff59ba 1620case "$ac_dir" in
1621.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1622*)
d9898ee8 1623 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
64ff59ba 1624 # A ".." for each directory in $ac_dir_suffix.
1625 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1626 case $ac_top_builddir_sub in
1627 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1628 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1629 esac ;;
1630esac
1631ac_abs_top_builddir=$ac_pwd
1632ac_abs_builddir=$ac_pwd$ac_dir_suffix
1633# for backward compatibility:
1634ac_top_builddir=$ac_top_build_prefix
d9898ee8 1635
1636case $srcdir in
64ff59ba 1637 .) # We are building in place.
d9898ee8 1638 ac_srcdir=.
64ff59ba 1639 ac_top_srcdir=$ac_top_builddir_sub
1640 ac_abs_top_srcdir=$ac_pwd ;;
1641 [\\/]* | ?:[\\/]* ) # Absolute name.
d9898ee8 1642 ac_srcdir=$srcdir$ac_dir_suffix;
64ff59ba 1643 ac_top_srcdir=$srcdir
1644 ac_abs_top_srcdir=$srcdir ;;
1645 *) # Relative name.
1646 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1647 ac_top_srcdir=$ac_top_build_prefix$srcdir
1648 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
d9898ee8 1649esac
64ff59ba 1650ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1651
1652 cd "$ac_dir" || { ac_status=$?; continue; }
1653 # Check for guested configure.
1654 if test -f "$ac_srcdir/configure.gnu"; then
1655 echo &&
1656 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1657 elif test -f "$ac_srcdir/configure"; then
1658 echo &&
1659 $SHELL "$ac_srcdir/configure" --help=recursive
d9898ee8 1660 else
1661 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
64ff59ba 1662 fi || ac_status=$?
1663 cd "$ac_pwd" || { ac_status=$?; break; }
d9898ee8 1664 done
1665fi
1666
64ff59ba 1667test -n "$ac_init_help" && exit $ac_status
d9898ee8 1668if $ac_init_version; then
1669 cat <<\_ACEOF
64ff59ba 1670courier-authlib configure 0.60.1
1671generated by GNU Autoconf 2.61
d9898ee8 1672
64ff59ba 1673Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16742002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
d9898ee8 1675This configure script is free software; the Free Software Foundation
1676gives unlimited permission to copy, distribute and modify it.
1677_ACEOF
64ff59ba 1678 exit
d9898ee8 1679fi
64ff59ba 1680cat >config.log <<_ACEOF
d9898ee8 1681This file contains any messages produced by compilers while
1682running configure, to aid debugging if configure makes a mistake.
1683
64ff59ba 1684It was created by courier-authlib $as_me 0.60.1, which was
1685generated by GNU Autoconf 2.61. Invocation command line was
d9898ee8 1686
1687 $ $0 $@
1688
1689_ACEOF
64ff59ba 1690exec 5>>config.log
d9898ee8 1691{
1692cat <<_ASUNAME
1693## --------- ##
1694## Platform. ##
1695## --------- ##
1696
1697hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1698uname -m = `(uname -m) 2>/dev/null || echo unknown`
1699uname -r = `(uname -r) 2>/dev/null || echo unknown`
1700uname -s = `(uname -s) 2>/dev/null || echo unknown`
1701uname -v = `(uname -v) 2>/dev/null || echo unknown`
1702
1703/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1704/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1705
1706/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1707/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1708/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
64ff59ba 1709/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
d9898ee8 1710/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1711/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1712/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1713
1714_ASUNAME
1715
1716as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1717for as_dir in $PATH
1718do
1719 IFS=$as_save_IFS
1720 test -z "$as_dir" && as_dir=.
1721 echo "PATH: $as_dir"
1722done
64ff59ba 1723IFS=$as_save_IFS
d9898ee8 1724
1725} >&5
1726
1727cat >&5 <<_ACEOF
1728
1729
1730## ----------- ##
1731## Core tests. ##
1732## ----------- ##
1733
1734_ACEOF
1735
1736
1737# Keep a trace of the command line.
1738# Strip out --no-create and --no-recursion so they do not pile up.
1739# Strip out --silent because we don't want to record it for future runs.
1740# Also quote any args containing shell meta-characters.
1741# Make two passes to allow for proper duplicate-argument suppression.
1742ac_configure_args=
1743ac_configure_args0=
1744ac_configure_args1=
d9898ee8 1745ac_must_keep_next=false
1746for ac_pass in 1 2
1747do
1748 for ac_arg
1749 do
1750 case $ac_arg in
1751 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1752 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1753 | -silent | --silent | --silen | --sile | --sil)
1754 continue ;;
64ff59ba 1755 *\'*)
d9898ee8 1756 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1757 esac
1758 case $ac_pass in
1759 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1760 2)
1761 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1762 if test $ac_must_keep_next = true; then
1763 ac_must_keep_next=false # Got value, back to normal.
1764 else
1765 case $ac_arg in
1766 *=* | --config-cache | -C | -disable-* | --disable-* \
1767 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1768 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1769 | -with-* | --with-* | -without-* | --without-* | --x)
1770 case "$ac_configure_args0 " in
1771 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1772 esac
1773 ;;
1774 -* ) ac_must_keep_next=true ;;
1775 esac
1776 fi
64ff59ba 1777 ac_configure_args="$ac_configure_args '$ac_arg'"
d9898ee8 1778 ;;
1779 esac
1780 done
1781done
1782$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1783$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1784
1785# When interrupted or exit'd, cleanup temporary files, and complete
1786# config.log. We remove comments because anyway the quotes in there
1787# would cause problems or look ugly.
64ff59ba 1788# WARNING: Use '\'' to represent an apostrophe within the trap.
1789# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
d9898ee8 1790trap 'exit_status=$?
1791 # Save into config.log some information that might help in debugging.
1792 {
1793 echo
1794
1795 cat <<\_ASBOX
1796## ---------------- ##
1797## Cache variables. ##
1798## ---------------- ##
1799_ASBOX
1800 echo
1801 # The following way of writing the cache mishandles newlines in values,
64ff59ba 1802(
1803 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1804 eval ac_val=\$$ac_var
1805 case $ac_val in #(
1806 *${as_nl}*)
1807 case $ac_var in #(
1808 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1809echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1810 esac
1811 case $ac_var in #(
1812 _ | IFS | as_nl) ;; #(
1813 *) $as_unset $ac_var ;;
1814 esac ;;
1815 esac
1816 done
d9898ee8 1817 (set) 2>&1 |
64ff59ba 1818 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1819 *${as_nl}ac_space=\ *)
d9898ee8 1820 sed -n \
64ff59ba 1821 "s/'\''/'\''\\\\'\'''\''/g;
1822 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1823 ;; #(
d9898ee8 1824 *)
64ff59ba 1825 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
d9898ee8 1826 ;;
64ff59ba 1827 esac |
1828 sort
1829)
d9898ee8 1830 echo
1831
1832 cat <<\_ASBOX
1833## ----------------- ##
1834## Output variables. ##
1835## ----------------- ##
1836_ASBOX
1837 echo
1838 for ac_var in $ac_subst_vars
1839 do
64ff59ba 1840 eval ac_val=\$$ac_var
1841 case $ac_val in
1842 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1843 esac
1844 echo "$ac_var='\''$ac_val'\''"
d9898ee8 1845 done | sort
1846 echo
1847
1848 if test -n "$ac_subst_files"; then
1849 cat <<\_ASBOX
64ff59ba 1850## ------------------- ##
1851## File substitutions. ##
1852## ------------------- ##
d9898ee8 1853_ASBOX
1854 echo
1855 for ac_var in $ac_subst_files
1856 do
64ff59ba 1857 eval ac_val=\$$ac_var
1858 case $ac_val in
1859 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1860 esac
1861 echo "$ac_var='\''$ac_val'\''"
d9898ee8 1862 done | sort
1863 echo
1864 fi
1865
1866 if test -s confdefs.h; then
1867 cat <<\_ASBOX
1868## ----------- ##
1869## confdefs.h. ##
1870## ----------- ##
1871_ASBOX
1872 echo
64ff59ba 1873 cat confdefs.h
d9898ee8 1874 echo
1875 fi
1876 test "$ac_signal" != 0 &&
1877 echo "$as_me: caught signal $ac_signal"
1878 echo "$as_me: exit $exit_status"
1879 } >&5
64ff59ba 1880 rm -f core *.core core.conftest.* &&
1881 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
d9898ee8 1882 exit $exit_status
64ff59ba 1883' 0
d9898ee8 1884for ac_signal in 1 2 13 15; do
1885 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1886done
1887ac_signal=0
1888
1889# confdefs.h avoids OS command line length limits that DEFS can exceed.
64ff59ba 1890rm -f -r conftest* confdefs.h
d9898ee8 1891
1892# Predefined preprocessor variables.
1893
1894cat >>confdefs.h <<_ACEOF
1895#define PACKAGE_NAME "$PACKAGE_NAME"
1896_ACEOF
1897
1898
1899cat >>confdefs.h <<_ACEOF
1900#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1901_ACEOF
1902
1903
1904cat >>confdefs.h <<_ACEOF
1905#define PACKAGE_VERSION "$PACKAGE_VERSION"
1906_ACEOF
1907
1908
1909cat >>confdefs.h <<_ACEOF
1910#define PACKAGE_STRING "$PACKAGE_STRING"
1911_ACEOF
1912
1913
1914cat >>confdefs.h <<_ACEOF
1915#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1916_ACEOF
1917
1918
1919# Let the site file select an alternate cache file if it wants to.
1920# Prefer explicitly selected file to automatically selected ones.
64ff59ba 1921if test -n "$CONFIG_SITE"; then
1922 set x "$CONFIG_SITE"
1923elif test "x$prefix" != xNONE; then
1924 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1925else
1926 set x "$ac_default_prefix/share/config.site" \
1927 "$ac_default_prefix/etc/config.site"
d9898ee8 1928fi
64ff59ba 1929shift
1930for ac_site_file
1931do
d9898ee8 1932 if test -r "$ac_site_file"; then
1933 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1934echo "$as_me: loading site script $ac_site_file" >&6;}
1935 sed 's/^/| /' "$ac_site_file" >&5
1936 . "$ac_site_file"
1937 fi
1938done
1939
1940if test -r "$cache_file"; then
1941 # Some versions of bash will fail to source /dev/null (special
1942 # files actually), so we avoid doing that.
1943 if test -f "$cache_file"; then
1944 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1945echo "$as_me: loading cache $cache_file" >&6;}
1946 case $cache_file in
64ff59ba 1947 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1948 *) . "./$cache_file";;
d9898ee8 1949 esac
1950 fi
1951else
1952 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1953echo "$as_me: creating cache $cache_file" >&6;}
1954 >$cache_file
1955fi
1956
1957# Check that the precious variables saved in the cache have kept the same
1958# value.
1959ac_cache_corrupted=false
64ff59ba 1960for ac_var in $ac_precious_vars; do
d9898ee8 1961 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1962 eval ac_new_set=\$ac_env_${ac_var}_set
64ff59ba 1963 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1964 eval ac_new_val=\$ac_env_${ac_var}_value
d9898ee8 1965 case $ac_old_set,$ac_new_set in
1966 set,)
1967 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1968echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1969 ac_cache_corrupted=: ;;
1970 ,set)
1971 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1972echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1973 ac_cache_corrupted=: ;;
1974 ,);;
1975 *)
1976 if test "x$ac_old_val" != "x$ac_new_val"; then
1977 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1978echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1979 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1980echo "$as_me: former value: $ac_old_val" >&2;}
1981 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1982echo "$as_me: current value: $ac_new_val" >&2;}
1983 ac_cache_corrupted=:
1984 fi;;
1985 esac
1986 # Pass precious variables to config.status.
1987 if test "$ac_new_set" = set; then
1988 case $ac_new_val in
64ff59ba 1989 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
d9898ee8 1990 *) ac_arg=$ac_var=$ac_new_val ;;
1991 esac
1992 case " $ac_configure_args " in
1993 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1994 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1995 esac
1996 fi
1997done
1998if $ac_cache_corrupted; then
1999 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2000echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2001 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2002echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2003 { (exit 1); exit 1; }; }
2004fi
2005
d9898ee8 2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
64ff59ba 2030ac_ext=c
2031ac_cpp='$CPP $CPPFLAGS'
2032ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2033ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2034ac_compiler_gnu=$ac_cv_c_compiler_gnu
d9898ee8 2035
2036
2037
2038
64ff59ba 2039ac_config_headers="$ac_config_headers courier_auth_config.h"
d9898ee8 2040
d9898ee8 2041
64ff59ba 2042am__api_version='1.10'
d9898ee8 2043
d9898ee8 2044ac_aux_dir=
64ff59ba 2045for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2046 if test -f "$ac_dir/install-sh"; then
d9898ee8 2047 ac_aux_dir=$ac_dir
2048 ac_install_sh="$ac_aux_dir/install-sh -c"
2049 break
64ff59ba 2050 elif test -f "$ac_dir/install.sh"; then
d9898ee8 2051 ac_aux_dir=$ac_dir
2052 ac_install_sh="$ac_aux_dir/install.sh -c"
2053 break
64ff59ba 2054 elif test -f "$ac_dir/shtool"; then
d9898ee8 2055 ac_aux_dir=$ac_dir
2056 ac_install_sh="$ac_aux_dir/shtool install -c"
2057 break
2058 fi
2059done
2060if test -z "$ac_aux_dir"; then
64ff59ba 2061 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2062echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
d9898ee8 2063 { (exit 1); exit 1; }; }
2064fi
64ff59ba 2065
2066# These three variables are undocumented and unsupported,
2067# and are intended to be withdrawn in a future Autoconf release.
2068# They can cause serious problems if a builder's source tree is in a directory
2069# whose full name contains unusual characters.
2070ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2071ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2072ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2073
d9898ee8 2074
2075# Find a good install program. We prefer a C program (faster),
2076# so one script is as good as another. But avoid the broken or
2077# incompatible versions:
2078# SysV /etc/install, /usr/sbin/install
2079# SunOS /usr/etc/install
2080# IRIX /sbin/install
2081# AIX /bin/install
2082# AmigaOS /C/install, which installs bootblocks on floppy discs
2083# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2084# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2085# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2086# OS/2's system install, which has a completely different semantic
2087# ./install, which can be erroneously created by make from ./install.sh.
64ff59ba 2088{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2089echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
d9898ee8 2090if test -z "$INSTALL"; then
2091if test "${ac_cv_path_install+set}" = set; then
2092 echo $ECHO_N "(cached) $ECHO_C" >&6
2093else
2094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2095for as_dir in $PATH
2096do
2097 IFS=$as_save_IFS
2098 test -z "$as_dir" && as_dir=.
2099 # Account for people who put trailing slashes in PATH elements.
2100case $as_dir/ in
2101 ./ | .// | /cC/* | \
2102 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2103 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2104 /usr/ucb/* ) ;;
2105 *)
2106 # OSF1 and SCO ODT 3.0 have their own names for install.
2107 # Don't use installbsd from OSF since it installs stuff as root
2108 # by default.
2109 for ac_prog in ginstall scoinst install; do
2110 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 2111 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
d9898ee8 2112 if test $ac_prog = install &&
2113 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2114 # AIX install. It has an incompatible calling convention.
2115 :
2116 elif test $ac_prog = install &&
2117 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2118 # program-specific install script used by HP pwplus--don't use.
2119 :
2120 else
2121 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2122 break 3
2123 fi
2124 fi
2125 done
2126 done
2127 ;;
2128esac
2129done
64ff59ba 2130IFS=$as_save_IFS
d9898ee8 2131
2132
2133fi
2134 if test "${ac_cv_path_install+set}" = set; then
2135 INSTALL=$ac_cv_path_install
2136 else
64ff59ba 2137 # As a last resort, use the slow shell script. Don't cache a
2138 # value for INSTALL within a source directory, because that will
d9898ee8 2139 # break other packages using the cache if that directory is
64ff59ba 2140 # removed, or if the value is a relative name.
d9898ee8 2141 INSTALL=$ac_install_sh
2142 fi
2143fi
64ff59ba 2144{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2145echo "${ECHO_T}$INSTALL" >&6; }
d9898ee8 2146
2147# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2148# It thinks the first close brace ends the variable substitution.
2149test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2150
2151test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2152
2153test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2154
64ff59ba 2155{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2156echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
d9898ee8 2157# Just in case
2158sleep 1
2159echo timestamp > conftest.file
2160# Do `set' in a subshell so we don't clobber the current shell's
2161# arguments. Must try -L first in case configure is actually a
2162# symlink; some systems play weird games with the mod time of symlinks
2163# (eg FreeBSD returns the mod time of the symlink's containing
2164# directory).
2165if (
2166 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2167 if test "$*" = "X"; then
2168 # -L didn't work.
2169 set X `ls -t $srcdir/configure conftest.file`
2170 fi
2171 rm -f conftest.file
2172 if test "$*" != "X $srcdir/configure conftest.file" \
2173 && test "$*" != "X conftest.file $srcdir/configure"; then
2174
2175 # If neither matched, then we have a broken ls. This can happen
2176 # if, for instance, CONFIG_SHELL is bash and it inherits a
2177 # broken ls alias from the environment. This has actually
2178 # happened. Such a system could not be considered "sane".
2179 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2180alias in your environment" >&5
2181echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2182alias in your environment" >&2;}
2183 { (exit 1); exit 1; }; }
2184 fi
2185
2186 test "$2" = conftest.file
2187 )
2188then
2189 # Ok.
2190 :
2191else
2192 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2193Check your system clock" >&5
2194echo "$as_me: error: newly created file is older than distributed files!
2195Check your system clock" >&2;}
2196 { (exit 1); exit 1; }; }
2197fi
64ff59ba 2198{ echo "$as_me:$LINENO: result: yes" >&5
2199echo "${ECHO_T}yes" >&6; }
d9898ee8 2200test "$program_prefix" != NONE &&
64ff59ba 2201 program_transform_name="s&^&$program_prefix&;$program_transform_name"
d9898ee8 2202# Use a double $ so make ignores it.
2203test "$program_suffix" != NONE &&
64ff59ba 2204 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
d9898ee8 2205# Double any \ or $. echo might interpret backslashes.
2206# By default was `s,x,x', remove it if useless.
2207cat <<\_ACEOF >conftest.sed
2208s/[\\$]/&&/g;s/;s,x,x,$//
2209_ACEOF
2210program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
64ff59ba 2211rm -f conftest.sed
d9898ee8 2212
2213# expand $ac_aux_dir to an absolute path
2214am_aux_dir=`cd $ac_aux_dir && pwd`
2215
2216test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2217# Use eval to expand $SHELL
2218if eval "$MISSING --run true"; then
2219 am_missing_run="$MISSING --run "
2220else
2221 am_missing_run=
2222 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2223echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2224fi
2225
64ff59ba 2226{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2227echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2228if test -z "$MKDIR_P"; then
2229 if test "${ac_cv_path_mkdir+set}" = set; then
2230 echo $ECHO_N "(cached) $ECHO_C" >&6
2231else
2232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2233for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2234do
2235 IFS=$as_save_IFS
2236 test -z "$as_dir" && as_dir=.
2237 for ac_prog in mkdir gmkdir; do
2238 for ac_exec_ext in '' $ac_executable_extensions; do
2239 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2240 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2241 'mkdir (GNU coreutils) '* | \
2242 'mkdir (coreutils) '* | \
2243 'mkdir (fileutils) '4.1*)
2244 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2245 break 3;;
2246 esac
2247 done
2248 done
2249done
2250IFS=$as_save_IFS
2251
2252fi
2253
2254 if test "${ac_cv_path_mkdir+set}" = set; then
2255 MKDIR_P="$ac_cv_path_mkdir -p"
d9898ee8 2256 else
64ff59ba 2257 # As a last resort, use the slow shell script. Don't cache a
2258 # value for MKDIR_P within a source directory, because that will
2259 # break other packages using the cache if that directory is
2260 # removed, or if the value is a relative name.
2261 test -d ./--version && rmdir ./--version
2262 MKDIR_P="$ac_install_sh -d"
d9898ee8 2263 fi
2264fi
64ff59ba 2265{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2266echo "${ECHO_T}$MKDIR_P" >&6; }
2267
2268mkdir_p="$MKDIR_P"
2269case $mkdir_p in
2270 [\\/$]* | ?:[\\/]*) ;;
2271 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2272esac
d9898ee8 2273
2274for ac_prog in gawk mawk nawk awk
2275do
2276 # Extract the first word of "$ac_prog", so it can be a program name with args.
2277set dummy $ac_prog; ac_word=$2
64ff59ba 2278{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2279echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2280if test "${ac_cv_prog_AWK+set}" = set; then
2281 echo $ECHO_N "(cached) $ECHO_C" >&6
2282else
2283 if test -n "$AWK"; then
2284 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2285else
2286as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2287for as_dir in $PATH
2288do
2289 IFS=$as_save_IFS
2290 test -z "$as_dir" && as_dir=.
2291 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 2292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2293 ac_cv_prog_AWK="$ac_prog"
2294 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2295 break 2
2296 fi
2297done
2298done
64ff59ba 2299IFS=$as_save_IFS
d9898ee8 2300
2301fi
2302fi
2303AWK=$ac_cv_prog_AWK
2304if test -n "$AWK"; then
64ff59ba 2305 { echo "$as_me:$LINENO: result: $AWK" >&5
2306echo "${ECHO_T}$AWK" >&6; }
d9898ee8 2307else
64ff59ba 2308 { echo "$as_me:$LINENO: result: no" >&5
2309echo "${ECHO_T}no" >&6; }
d9898ee8 2310fi
2311
64ff59ba 2312
d9898ee8 2313 test -n "$AWK" && break
2314done
2315
64ff59ba 2316{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2317echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2318set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2319if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 2320 echo $ECHO_N "(cached) $ECHO_C" >&6
2321else
2322 cat >conftest.make <<\_ACEOF
64ff59ba 2323SHELL = /bin/sh
d9898ee8 2324all:
64ff59ba 2325 @echo '@@@%%%=$(MAKE)=@@@%%%'
d9898ee8 2326_ACEOF
2327# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
64ff59ba 2328case `${MAKE-make} -f conftest.make 2>/dev/null` in
2329 *@@@%%%=?*=@@@%%%*)
2330 eval ac_cv_prog_make_${ac_make}_set=yes;;
2331 *)
2332 eval ac_cv_prog_make_${ac_make}_set=no;;
2333esac
d9898ee8 2334rm -f conftest.make
2335fi
64ff59ba 2336if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2337 { echo "$as_me:$LINENO: result: yes" >&5
2338echo "${ECHO_T}yes" >&6; }
d9898ee8 2339 SET_MAKE=
2340else
64ff59ba 2341 { echo "$as_me:$LINENO: result: no" >&5
2342echo "${ECHO_T}no" >&6; }
d9898ee8 2343 SET_MAKE="MAKE=${MAKE-make}"
2344fi
2345
2346rm -rf .tst 2>/dev/null
2347mkdir .tst 2>/dev/null
2348if test -d .tst; then
2349 am__leading_dot=.
2350else
2351 am__leading_dot=_
2352fi
2353rmdir .tst 2>/dev/null
2354
64ff59ba 2355if test "`cd $srcdir && pwd`" != "`pwd`"; then
2356 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2357 # is not polluted with repeated "-I."
2358 am__isrc=' -I$(srcdir)'
2359 # test to see if srcdir already configured
2360 if test -f $srcdir/config.status; then
2361 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
d9898ee8 2362echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2363 { (exit 1); exit 1; }; }
64ff59ba 2364 fi
d9898ee8 2365fi
2366
2367# test whether we have cygpath
2368if test -z "$CYGPATH_W"; then
2369 if (cygpath --version) >/dev/null 2>/dev/null; then
2370 CYGPATH_W='cygpath -w'
2371 else
2372 CYGPATH_W=echo
2373 fi
2374fi
2375
2376
2377# Define the identity of the package.
2378 PACKAGE='courier-authlib'
64ff59ba 2379 VERSION='0.60.1'
d9898ee8 2380
2381
2382cat >>confdefs.h <<_ACEOF
2383#define PACKAGE "$PACKAGE"
2384_ACEOF
2385
2386
2387cat >>confdefs.h <<_ACEOF
2388#define VERSION "$VERSION"
2389_ACEOF
2390
2391# Some tools Automake needs.
2392
2393ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2394
2395
2396AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2397
2398
2399AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2400
2401
2402AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2403
2404
2405MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2406
64ff59ba 2407install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
d9898ee8 2408
2409# Installed binaries are usually stripped using `strip' when the user
2410# run `make install-strip'. However `strip' might not be the right
2411# tool to use in cross-compilation environments, therefore Automake
2412# will honor the `STRIP' environment variable to overrule this program.
2413if test "$cross_compiling" != no; then
2414 if test -n "$ac_tool_prefix"; then
2415 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2416set dummy ${ac_tool_prefix}strip; ac_word=$2
64ff59ba 2417{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2418echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2419if test "${ac_cv_prog_STRIP+set}" = set; then
2420 echo $ECHO_N "(cached) $ECHO_C" >&6
2421else
2422 if test -n "$STRIP"; then
2423 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2424else
2425as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2426for as_dir in $PATH
2427do
2428 IFS=$as_save_IFS
2429 test -z "$as_dir" && as_dir=.
2430 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 2431 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2432 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2433 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2434 break 2
2435 fi
2436done
2437done
64ff59ba 2438IFS=$as_save_IFS
d9898ee8 2439
2440fi
2441fi
2442STRIP=$ac_cv_prog_STRIP
2443if test -n "$STRIP"; then
64ff59ba 2444 { echo "$as_me:$LINENO: result: $STRIP" >&5
2445echo "${ECHO_T}$STRIP" >&6; }
d9898ee8 2446else
64ff59ba 2447 { echo "$as_me:$LINENO: result: no" >&5
2448echo "${ECHO_T}no" >&6; }
d9898ee8 2449fi
2450
64ff59ba 2451
d9898ee8 2452fi
2453if test -z "$ac_cv_prog_STRIP"; then
2454 ac_ct_STRIP=$STRIP
2455 # Extract the first word of "strip", so it can be a program name with args.
2456set dummy strip; ac_word=$2
64ff59ba 2457{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2458echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2459if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2460 echo $ECHO_N "(cached) $ECHO_C" >&6
2461else
2462 if test -n "$ac_ct_STRIP"; then
2463 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2464else
2465as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2466for as_dir in $PATH
2467do
2468 IFS=$as_save_IFS
2469 test -z "$as_dir" && as_dir=.
2470 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 2471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2472 ac_cv_prog_ac_ct_STRIP="strip"
2473 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2474 break 2
2475 fi
2476done
2477done
64ff59ba 2478IFS=$as_save_IFS
d9898ee8 2479
d9898ee8 2480fi
2481fi
2482ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2483if test -n "$ac_ct_STRIP"; then
64ff59ba 2484 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2485echo "${ECHO_T}$ac_ct_STRIP" >&6; }
d9898ee8 2486else
64ff59ba 2487 { echo "$as_me:$LINENO: result: no" >&5
2488echo "${ECHO_T}no" >&6; }
d9898ee8 2489fi
2490
64ff59ba 2491 if test "x$ac_ct_STRIP" = x; then
2492 STRIP=":"
2493 else
2494 case $cross_compiling:$ac_tool_warned in
2495yes:)
2496{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2497whose name does not start with the host triplet. If you think this
2498configuration is useful to you, please write to autoconf@gnu.org." >&5
2499echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2500whose name does not start with the host triplet. If you think this
2501configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2502ac_tool_warned=yes ;;
2503esac
2504 STRIP=$ac_ct_STRIP
2505 fi
d9898ee8 2506else
2507 STRIP="$ac_cv_prog_STRIP"
2508fi
2509
2510fi
64ff59ba 2511INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
d9898ee8 2512
2513# We need awk for the "check" target. The system "awk" is bad on
2514# some platforms.
2515# Always define AMTAR for backward compatibility.
2516
2517AMTAR=${AMTAR-"${am_missing_run}tar"}
2518
2519am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2520
2521
2522
2523
2524
2525>confdefs.h # Kill PACKAGE_ macros
2526
2527LPATH="$PATH:/usr/local/bin"
2528
2529for ac_prog in gawk mawk nawk awk
2530do
2531 # Extract the first word of "$ac_prog", so it can be a program name with args.
2532set dummy $ac_prog; ac_word=$2
64ff59ba 2533{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2534echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2535if test "${ac_cv_prog_AWK+set}" = set; then
2536 echo $ECHO_N "(cached) $ECHO_C" >&6
2537else
2538 if test -n "$AWK"; then
2539 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2540else
2541as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2542for as_dir in $PATH
2543do
2544 IFS=$as_save_IFS
2545 test -z "$as_dir" && as_dir=.
2546 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 2547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2548 ac_cv_prog_AWK="$ac_prog"
2549 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2550 break 2
2551 fi
2552done
2553done
64ff59ba 2554IFS=$as_save_IFS
d9898ee8 2555
2556fi
2557fi
2558AWK=$ac_cv_prog_AWK
2559if test -n "$AWK"; then
64ff59ba 2560 { echo "$as_me:$LINENO: result: $AWK" >&5
2561echo "${ECHO_T}$AWK" >&6; }
d9898ee8 2562else
64ff59ba 2563 { echo "$as_me:$LINENO: result: no" >&5
2564echo "${ECHO_T}no" >&6; }
d9898ee8 2565fi
2566
64ff59ba 2567
d9898ee8 2568 test -n "$AWK" && break
2569done
2570
2571ac_ext=c
2572ac_cpp='$CPP $CPPFLAGS'
2573ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2574ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2575ac_compiler_gnu=$ac_cv_c_compiler_gnu
2576if test -n "$ac_tool_prefix"; then
2577 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2578set dummy ${ac_tool_prefix}gcc; ac_word=$2
64ff59ba 2579{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2580echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2581if test "${ac_cv_prog_CC+set}" = set; then
2582 echo $ECHO_N "(cached) $ECHO_C" >&6
2583else
2584 if test -n "$CC"; then
2585 ac_cv_prog_CC="$CC" # Let the user override the test.
2586else
2587as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2588for as_dir in $PATH
2589do
2590 IFS=$as_save_IFS
2591 test -z "$as_dir" && as_dir=.
2592 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 2593 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2594 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2595 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2596 break 2
2597 fi
2598done
2599done
64ff59ba 2600IFS=$as_save_IFS
d9898ee8 2601
2602fi
2603fi
2604CC=$ac_cv_prog_CC
2605if test -n "$CC"; then
64ff59ba 2606 { echo "$as_me:$LINENO: result: $CC" >&5
2607echo "${ECHO_T}$CC" >&6; }
d9898ee8 2608else
64ff59ba 2609 { echo "$as_me:$LINENO: result: no" >&5
2610echo "${ECHO_T}no" >&6; }
d9898ee8 2611fi
2612
64ff59ba 2613
d9898ee8 2614fi
2615if test -z "$ac_cv_prog_CC"; then
2616 ac_ct_CC=$CC
2617 # Extract the first word of "gcc", so it can be a program name with args.
2618set dummy gcc; ac_word=$2
64ff59ba 2619{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2620echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2621if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2622 echo $ECHO_N "(cached) $ECHO_C" >&6
2623else
2624 if test -n "$ac_ct_CC"; then
2625 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2626else
2627as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2628for as_dir in $PATH
2629do
2630 IFS=$as_save_IFS
2631 test -z "$as_dir" && as_dir=.
2632 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 2633 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2634 ac_cv_prog_ac_ct_CC="gcc"
2635 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2636 break 2
2637 fi
2638done
2639done
64ff59ba 2640IFS=$as_save_IFS
d9898ee8 2641
2642fi
2643fi
2644ac_ct_CC=$ac_cv_prog_ac_ct_CC
2645if test -n "$ac_ct_CC"; then
64ff59ba 2646 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2647echo "${ECHO_T}$ac_ct_CC" >&6; }
d9898ee8 2648else
64ff59ba 2649 { echo "$as_me:$LINENO: result: no" >&5
2650echo "${ECHO_T}no" >&6; }
d9898ee8 2651fi
2652
64ff59ba 2653 if test "x$ac_ct_CC" = x; then
2654 CC=""
2655 else
2656 case $cross_compiling:$ac_tool_warned in
2657yes:)
2658{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2659whose name does not start with the host triplet. If you think this
2660configuration is useful to you, please write to autoconf@gnu.org." >&5
2661echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2662whose name does not start with the host triplet. If you think this
2663configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2664ac_tool_warned=yes ;;
2665esac
2666 CC=$ac_ct_CC
2667 fi
d9898ee8 2668else
2669 CC="$ac_cv_prog_CC"
2670fi
2671
2672if test -z "$CC"; then
64ff59ba 2673 if test -n "$ac_tool_prefix"; then
2674 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
d9898ee8 2675set dummy ${ac_tool_prefix}cc; ac_word=$2
64ff59ba 2676{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2677echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2678if test "${ac_cv_prog_CC+set}" = set; then
2679 echo $ECHO_N "(cached) $ECHO_C" >&6
2680else
2681 if test -n "$CC"; then
2682 ac_cv_prog_CC="$CC" # Let the user override the test.
2683else
2684as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2685for as_dir in $PATH
2686do
2687 IFS=$as_save_IFS
2688 test -z "$as_dir" && as_dir=.
2689 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 2690 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2691 ac_cv_prog_CC="${ac_tool_prefix}cc"
2692 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2693 break 2
2694 fi
2695done
2696done
64ff59ba 2697IFS=$as_save_IFS
d9898ee8 2698
2699fi
2700fi
2701CC=$ac_cv_prog_CC
2702if test -n "$CC"; then
64ff59ba 2703 { echo "$as_me:$LINENO: result: $CC" >&5
2704echo "${ECHO_T}$CC" >&6; }
d9898ee8 2705else
64ff59ba 2706 { echo "$as_me:$LINENO: result: no" >&5
2707echo "${ECHO_T}no" >&6; }
d9898ee8 2708fi
2709
d9898ee8 2710
64ff59ba 2711 fi
d9898ee8 2712fi
2713if test -z "$CC"; then
2714 # Extract the first word of "cc", so it can be a program name with args.
2715set dummy cc; ac_word=$2
64ff59ba 2716{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2717echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2718if test "${ac_cv_prog_CC+set}" = set; then
2719 echo $ECHO_N "(cached) $ECHO_C" >&6
2720else
2721 if test -n "$CC"; then
2722 ac_cv_prog_CC="$CC" # Let the user override the test.
2723else
2724 ac_prog_rejected=no
2725as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2726for as_dir in $PATH
2727do
2728 IFS=$as_save_IFS
2729 test -z "$as_dir" && as_dir=.
2730 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 2731 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2732 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2733 ac_prog_rejected=yes
2734 continue
2735 fi
2736 ac_cv_prog_CC="cc"
2737 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2738 break 2
2739 fi
2740done
2741done
64ff59ba 2742IFS=$as_save_IFS
d9898ee8 2743
2744if test $ac_prog_rejected = yes; then
2745 # We found a bogon in the path, so make sure we never use it.
2746 set dummy $ac_cv_prog_CC
2747 shift
2748 if test $# != 0; then
2749 # We chose a different compiler from the bogus one.
2750 # However, it has the same basename, so the bogon will be chosen
2751 # first if we set CC to just the basename; use the full file name.
2752 shift
2753 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2754 fi
2755fi
2756fi
2757fi
2758CC=$ac_cv_prog_CC
2759if test -n "$CC"; then
64ff59ba 2760 { echo "$as_me:$LINENO: result: $CC" >&5
2761echo "${ECHO_T}$CC" >&6; }
d9898ee8 2762else
64ff59ba 2763 { echo "$as_me:$LINENO: result: no" >&5
2764echo "${ECHO_T}no" >&6; }
d9898ee8 2765fi
2766
64ff59ba 2767
d9898ee8 2768fi
2769if test -z "$CC"; then
2770 if test -n "$ac_tool_prefix"; then
64ff59ba 2771 for ac_prog in cl.exe
d9898ee8 2772 do
2773 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2774set dummy $ac_tool_prefix$ac_prog; ac_word=$2
64ff59ba 2775{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2776echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2777if test "${ac_cv_prog_CC+set}" = set; then
2778 echo $ECHO_N "(cached) $ECHO_C" >&6
2779else
2780 if test -n "$CC"; then
2781 ac_cv_prog_CC="$CC" # Let the user override the test.
2782else
2783as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2784for as_dir in $PATH
2785do
2786 IFS=$as_save_IFS
2787 test -z "$as_dir" && as_dir=.
2788 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 2789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2790 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2791 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2792 break 2
2793 fi
2794done
2795done
64ff59ba 2796IFS=$as_save_IFS
d9898ee8 2797
2798fi
2799fi
2800CC=$ac_cv_prog_CC
2801if test -n "$CC"; then
64ff59ba 2802 { echo "$as_me:$LINENO: result: $CC" >&5
2803echo "${ECHO_T}$CC" >&6; }
d9898ee8 2804else
64ff59ba 2805 { echo "$as_me:$LINENO: result: no" >&5
2806echo "${ECHO_T}no" >&6; }
d9898ee8 2807fi
2808
64ff59ba 2809
d9898ee8 2810 test -n "$CC" && break
2811 done
2812fi
2813if test -z "$CC"; then
2814 ac_ct_CC=$CC
64ff59ba 2815 for ac_prog in cl.exe
d9898ee8 2816do
2817 # Extract the first word of "$ac_prog", so it can be a program name with args.
2818set dummy $ac_prog; ac_word=$2
64ff59ba 2819{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2820echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2821if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2822 echo $ECHO_N "(cached) $ECHO_C" >&6
2823else
2824 if test -n "$ac_ct_CC"; then
2825 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2826else
2827as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2828for as_dir in $PATH
2829do
2830 IFS=$as_save_IFS
2831 test -z "$as_dir" && as_dir=.
2832 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 2833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2834 ac_cv_prog_ac_ct_CC="$ac_prog"
2835 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2836 break 2
2837 fi
2838done
2839done
64ff59ba 2840IFS=$as_save_IFS
d9898ee8 2841
2842fi
2843fi
2844ac_ct_CC=$ac_cv_prog_ac_ct_CC
2845if test -n "$ac_ct_CC"; then
64ff59ba 2846 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2847echo "${ECHO_T}$ac_ct_CC" >&6; }
d9898ee8 2848else
64ff59ba 2849 { echo "$as_me:$LINENO: result: no" >&5
2850echo "${ECHO_T}no" >&6; }
d9898ee8 2851fi
2852
64ff59ba 2853
d9898ee8 2854 test -n "$ac_ct_CC" && break
2855done
2856
64ff59ba 2857 if test "x$ac_ct_CC" = x; then
2858 CC=""
2859 else
2860 case $cross_compiling:$ac_tool_warned in
2861yes:)
2862{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2863whose name does not start with the host triplet. If you think this
2864configuration is useful to you, please write to autoconf@gnu.org." >&5
2865echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2866whose name does not start with the host triplet. If you think this
2867configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2868ac_tool_warned=yes ;;
2869esac
2870 CC=$ac_ct_CC
2871 fi
d9898ee8 2872fi
2873
2874fi
2875
2876
2877test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2878See \`config.log' for more details." >&5
2879echo "$as_me: error: no acceptable C compiler found in \$PATH
2880See \`config.log' for more details." >&2;}
2881 { (exit 1); exit 1; }; }
2882
2883# Provide some information about the compiler.
64ff59ba 2884echo "$as_me:$LINENO: checking for C compiler version" >&5
d9898ee8 2885ac_compiler=`set X $ac_compile; echo $2`
64ff59ba 2886{ (ac_try="$ac_compiler --version >&5"
2887case "(($ac_try" in
2888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2889 *) ac_try_echo=$ac_try;;
2890esac
2891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2892 (eval "$ac_compiler --version >&5") 2>&5
d9898ee8 2893 ac_status=$?
2894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2895 (exit $ac_status); }
64ff59ba 2896{ (ac_try="$ac_compiler -v >&5"
2897case "(($ac_try" in
2898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2899 *) ac_try_echo=$ac_try;;
2900esac
2901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2902 (eval "$ac_compiler -v >&5") 2>&5
d9898ee8 2903 ac_status=$?
2904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2905 (exit $ac_status); }
64ff59ba 2906{ (ac_try="$ac_compiler -V >&5"
2907case "(($ac_try" in
2908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2909 *) ac_try_echo=$ac_try;;
2910esac
2911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2912 (eval "$ac_compiler -V >&5") 2>&5
d9898ee8 2913 ac_status=$?
2914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2915 (exit $ac_status); }
2916
2917cat >conftest.$ac_ext <<_ACEOF
2918/* confdefs.h. */
2919_ACEOF
2920cat confdefs.h >>conftest.$ac_ext
2921cat >>conftest.$ac_ext <<_ACEOF
2922/* end confdefs.h. */
2923
2924int
2925main ()
2926{
2927
2928 ;
2929 return 0;
2930}
2931_ACEOF
2932ac_clean_files_save=$ac_clean_files
2933ac_clean_files="$ac_clean_files a.out a.exe b.out"
2934# Try to create an executable without -o first, disregard a.out.
2935# It will help us diagnose broken compilers, and finding out an intuition
2936# of exeext.
64ff59ba 2937{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2938echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
d9898ee8 2939ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
64ff59ba 2940#
2941# List of possible output files, starting from the most likely.
2942# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2943# only as a last resort. b.out is created by i960 compilers.
2944ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2945#
2946# The IRIX 6 linker writes into existing files which may not be
2947# executable, retaining their permissions. Remove them first so a
2948# subsequent execution test works.
2949ac_rmfiles=
2950for ac_file in $ac_files
2951do
2952 case $ac_file in
2953 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2954 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2955 esac
2956done
2957rm -f $ac_rmfiles
2958
2959if { (ac_try="$ac_link_default"
2960case "(($ac_try" in
2961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2962 *) ac_try_echo=$ac_try;;
2963esac
2964eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2965 (eval "$ac_link_default") 2>&5
d9898ee8 2966 ac_status=$?
2967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2968 (exit $ac_status); }; then
64ff59ba 2969 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2970# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2971# in a Makefile. We should not override ac_cv_exeext if it was cached,
2972# so that the user can short-circuit this test for compilers unknown to
2973# Autoconf.
2974for ac_file in $ac_files ''
d9898ee8 2975do
2976 test -f "$ac_file" || continue
2977 case $ac_file in
64ff59ba 2978 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
d9898ee8 2979 ;;
2980 [ab].out )
2981 # We found the default executable, but exeext='' is most
2982 # certainly right.
2983 break;;
2984 *.* )
64ff59ba 2985 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2986 then :; else
2987 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2988 fi
2989 # We set ac_cv_exeext here because the later test for it is not
2990 # safe: cross compilers may not add the suffix if given an `-o'
2991 # argument, so we may need to know it at that point already.
2992 # Even if this section looks crufty: it has the advantage of
2993 # actually working.
d9898ee8 2994 break;;
2995 * )
2996 break;;
2997 esac
2998done
64ff59ba 2999test "$ac_cv_exeext" = no && ac_cv_exeext=
3000
d9898ee8 3001else
64ff59ba 3002 ac_file=''
3003fi
3004
3005{ echo "$as_me:$LINENO: result: $ac_file" >&5
3006echo "${ECHO_T}$ac_file" >&6; }
3007if test -z "$ac_file"; then
d9898ee8 3008 echo "$as_me: failed program was:" >&5
3009sed 's/^/| /' conftest.$ac_ext >&5
3010
3011{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
3012See \`config.log' for more details." >&5
3013echo "$as_me: error: C compiler cannot create executables
3014See \`config.log' for more details." >&2;}
3015 { (exit 77); exit 77; }; }
3016fi
3017
3018ac_exeext=$ac_cv_exeext
d9898ee8 3019
64ff59ba 3020# Check that the compiler produces executables we can run. If not, either
d9898ee8 3021# the compiler is broken, or we cross compile.
64ff59ba 3022{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3023echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
d9898ee8 3024# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3025# If not cross compiling, check that we can run a simple program.
3026if test "$cross_compiling" != yes; then
3027 if { ac_try='./$ac_file'
64ff59ba 3028 { (case "(($ac_try" in
3029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3030 *) ac_try_echo=$ac_try;;
3031esac
3032eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3033 (eval "$ac_try") 2>&5
d9898ee8 3034 ac_status=$?
3035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3036 (exit $ac_status); }; }; then
3037 cross_compiling=no
3038 else
3039 if test "$cross_compiling" = maybe; then
3040 cross_compiling=yes
3041 else
3042 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3043If you meant to cross compile, use \`--host'.
3044See \`config.log' for more details." >&5
3045echo "$as_me: error: cannot run C compiled programs.
3046If you meant to cross compile, use \`--host'.
3047See \`config.log' for more details." >&2;}
3048 { (exit 1); exit 1; }; }
3049 fi
3050 fi
3051fi
64ff59ba 3052{ echo "$as_me:$LINENO: result: yes" >&5
3053echo "${ECHO_T}yes" >&6; }
d9898ee8 3054
3055rm -f a.out a.exe conftest$ac_cv_exeext b.out
3056ac_clean_files=$ac_clean_files_save
64ff59ba 3057# Check that the compiler produces executables we can run. If not, either
d9898ee8 3058# the compiler is broken, or we cross compile.
64ff59ba 3059{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3060echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3061{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
3062echo "${ECHO_T}$cross_compiling" >&6; }
3063
3064{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
3065echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3066if { (ac_try="$ac_link"
3067case "(($ac_try" in
3068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3069 *) ac_try_echo=$ac_try;;
3070esac
3071eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3072 (eval "$ac_link") 2>&5
d9898ee8 3073 ac_status=$?
3074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3075 (exit $ac_status); }; then
3076 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3077# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3078# work properly (i.e., refer to `conftest.exe'), while it won't with
3079# `rm'.
3080for ac_file in conftest.exe conftest conftest.*; do
3081 test -f "$ac_file" || continue
3082 case $ac_file in
64ff59ba 3083 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
d9898ee8 3084 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
d9898ee8 3085 break;;
3086 * ) break;;
3087 esac
3088done
3089else
3090 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3091See \`config.log' for more details." >&5
3092echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3093See \`config.log' for more details." >&2;}
3094 { (exit 1); exit 1; }; }
3095fi
3096
3097rm -f conftest$ac_cv_exeext
64ff59ba 3098{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3099echo "${ECHO_T}$ac_cv_exeext" >&6; }
d9898ee8 3100
3101rm -f conftest.$ac_ext
3102EXEEXT=$ac_cv_exeext
3103ac_exeext=$EXEEXT
64ff59ba 3104{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
3105echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
d9898ee8 3106if test "${ac_cv_objext+set}" = set; then
3107 echo $ECHO_N "(cached) $ECHO_C" >&6
3108else
3109 cat >conftest.$ac_ext <<_ACEOF
3110/* confdefs.h. */
3111_ACEOF
3112cat confdefs.h >>conftest.$ac_ext
3113cat >>conftest.$ac_ext <<_ACEOF
3114/* end confdefs.h. */
3115
3116int
3117main ()
3118{
3119
3120 ;
3121 return 0;
3122}
3123_ACEOF
3124rm -f conftest.o conftest.obj
64ff59ba 3125if { (ac_try="$ac_compile"
3126case "(($ac_try" in
3127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3128 *) ac_try_echo=$ac_try;;
3129esac
3130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3131 (eval "$ac_compile") 2>&5
d9898ee8 3132 ac_status=$?
3133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134 (exit $ac_status); }; then
64ff59ba 3135 for ac_file in conftest.o conftest.obj conftest.*; do
3136 test -f "$ac_file" || continue;
d9898ee8 3137 case $ac_file in
64ff59ba 3138 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
d9898ee8 3139 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3140 break;;
3141 esac
3142done
3143else
3144 echo "$as_me: failed program was:" >&5
3145sed 's/^/| /' conftest.$ac_ext >&5
3146
3147{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3148See \`config.log' for more details." >&5
3149echo "$as_me: error: cannot compute suffix of object files: cannot compile
3150See \`config.log' for more details." >&2;}
3151 { (exit 1); exit 1; }; }
3152fi
3153
3154rm -f conftest.$ac_cv_objext conftest.$ac_ext
3155fi
64ff59ba 3156{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3157echo "${ECHO_T}$ac_cv_objext" >&6; }
d9898ee8 3158OBJEXT=$ac_cv_objext
3159ac_objext=$OBJEXT
64ff59ba 3160{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3161echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
d9898ee8 3162if test "${ac_cv_c_compiler_gnu+set}" = set; then
3163 echo $ECHO_N "(cached) $ECHO_C" >&6
3164else
3165 cat >conftest.$ac_ext <<_ACEOF
3166/* confdefs.h. */
3167_ACEOF
3168cat confdefs.h >>conftest.$ac_ext
3169cat >>conftest.$ac_ext <<_ACEOF
3170/* end confdefs.h. */
3171
3172int
3173main ()
3174{
3175#ifndef __GNUC__
3176 choke me
3177#endif
3178
3179 ;
3180 return 0;
3181}
3182_ACEOF
3183rm -f conftest.$ac_objext
64ff59ba 3184if { (ac_try="$ac_compile"
3185case "(($ac_try" in
3186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3187 *) ac_try_echo=$ac_try;;
3188esac
3189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3190 (eval "$ac_compile") 2>conftest.er1
d9898ee8 3191 ac_status=$?
3192 grep -v '^ *+' conftest.er1 >conftest.err
3193 rm -f conftest.er1
3194 cat conftest.err >&5
3195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 3196 (exit $ac_status); } && {
3197 test -z "$ac_c_werror_flag" ||
3198 test ! -s conftest.err
3199 } && test -s conftest.$ac_objext; then
d9898ee8 3200 ac_compiler_gnu=yes
3201else
3202 echo "$as_me: failed program was:" >&5
3203sed 's/^/| /' conftest.$ac_ext >&5
3204
64ff59ba 3205 ac_compiler_gnu=no
d9898ee8 3206fi
64ff59ba 3207
3208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 3209ac_cv_c_compiler_gnu=$ac_compiler_gnu
3210
3211fi
64ff59ba 3212{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3213echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
d9898ee8 3214GCC=`test $ac_compiler_gnu = yes && echo yes`
3215ac_test_CFLAGS=${CFLAGS+set}
3216ac_save_CFLAGS=$CFLAGS
64ff59ba 3217{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3218echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
d9898ee8 3219if test "${ac_cv_prog_cc_g+set}" = set; then
3220 echo $ECHO_N "(cached) $ECHO_C" >&6
3221else
64ff59ba 3222 ac_save_c_werror_flag=$ac_c_werror_flag
3223 ac_c_werror_flag=yes
3224 ac_cv_prog_cc_g=no
3225 CFLAGS="-g"
3226 cat >conftest.$ac_ext <<_ACEOF
d9898ee8 3227/* confdefs.h. */
3228_ACEOF
3229cat confdefs.h >>conftest.$ac_ext
3230cat >>conftest.$ac_ext <<_ACEOF
3231/* end confdefs.h. */
3232
3233int
3234main ()
3235{
3236
3237 ;
3238 return 0;
3239}
3240_ACEOF
3241rm -f conftest.$ac_objext
64ff59ba 3242if { (ac_try="$ac_compile"
3243case "(($ac_try" in
3244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3245 *) ac_try_echo=$ac_try;;
3246esac
3247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3248 (eval "$ac_compile") 2>conftest.er1
d9898ee8 3249 ac_status=$?
3250 grep -v '^ *+' conftest.er1 >conftest.err
3251 rm -f conftest.er1
3252 cat conftest.err >&5
3253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 3254 (exit $ac_status); } && {
3255 test -z "$ac_c_werror_flag" ||
3256 test ! -s conftest.err
3257 } && test -s conftest.$ac_objext; then
3258 ac_cv_prog_cc_g=yes
3259else
3260 echo "$as_me: failed program was:" >&5
3261sed 's/^/| /' conftest.$ac_ext >&5
3262
3263 CFLAGS=""
3264 cat >conftest.$ac_ext <<_ACEOF
3265/* confdefs.h. */
3266_ACEOF
3267cat confdefs.h >>conftest.$ac_ext
3268cat >>conftest.$ac_ext <<_ACEOF
3269/* end confdefs.h. */
3270
3271int
3272main ()
3273{
3274
3275 ;
3276 return 0;
3277}
3278_ACEOF
3279rm -f conftest.$ac_objext
3280if { (ac_try="$ac_compile"
3281case "(($ac_try" in
3282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3283 *) ac_try_echo=$ac_try;;
3284esac
3285eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3286 (eval "$ac_compile") 2>conftest.er1
d9898ee8 3287 ac_status=$?
64ff59ba 3288 grep -v '^ *+' conftest.er1 >conftest.err
3289 rm -f conftest.er1
3290 cat conftest.err >&5
d9898ee8 3291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 3292 (exit $ac_status); } && {
3293 test -z "$ac_c_werror_flag" ||
3294 test ! -s conftest.err
3295 } && test -s conftest.$ac_objext; then
3296 :
3297else
3298 echo "$as_me: failed program was:" >&5
3299sed 's/^/| /' conftest.$ac_ext >&5
3300
3301 ac_c_werror_flag=$ac_save_c_werror_flag
3302 CFLAGS="-g"
3303 cat >conftest.$ac_ext <<_ACEOF
3304/* confdefs.h. */
3305_ACEOF
3306cat confdefs.h >>conftest.$ac_ext
3307cat >>conftest.$ac_ext <<_ACEOF
3308/* end confdefs.h. */
3309
3310int
3311main ()
3312{
3313
3314 ;
3315 return 0;
3316}
3317_ACEOF
3318rm -f conftest.$ac_objext
3319if { (ac_try="$ac_compile"
3320case "(($ac_try" in
3321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3322 *) ac_try_echo=$ac_try;;
3323esac
3324eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3325 (eval "$ac_compile") 2>conftest.er1
d9898ee8 3326 ac_status=$?
64ff59ba 3327 grep -v '^ *+' conftest.er1 >conftest.err
3328 rm -f conftest.er1
3329 cat conftest.err >&5
d9898ee8 3330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 3331 (exit $ac_status); } && {
3332 test -z "$ac_c_werror_flag" ||
3333 test ! -s conftest.err
3334 } && test -s conftest.$ac_objext; then
d9898ee8 3335 ac_cv_prog_cc_g=yes
3336else
3337 echo "$as_me: failed program was:" >&5
3338sed 's/^/| /' conftest.$ac_ext >&5
3339
64ff59ba 3340
d9898ee8 3341fi
64ff59ba 3342
3343rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3344fi
3345
3346rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3347fi
3348
3349rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3350 ac_c_werror_flag=$ac_save_c_werror_flag
d9898ee8 3351fi
64ff59ba 3352{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3353echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
d9898ee8 3354if test "$ac_test_CFLAGS" = set; then
3355 CFLAGS=$ac_save_CFLAGS
3356elif test $ac_cv_prog_cc_g = yes; then
3357 if test "$GCC" = yes; then
3358 CFLAGS="-g -O2"
3359 else
3360 CFLAGS="-g"
3361 fi
3362else
3363 if test "$GCC" = yes; then
3364 CFLAGS="-O2"
3365 else
3366 CFLAGS=
3367 fi
3368fi
64ff59ba 3369{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3370echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3371if test "${ac_cv_prog_cc_c89+set}" = set; then
d9898ee8 3372 echo $ECHO_N "(cached) $ECHO_C" >&6
3373else
64ff59ba 3374 ac_cv_prog_cc_c89=no
d9898ee8 3375ac_save_CC=$CC
3376cat >conftest.$ac_ext <<_ACEOF
3377/* confdefs.h. */
3378_ACEOF
3379cat confdefs.h >>conftest.$ac_ext
3380cat >>conftest.$ac_ext <<_ACEOF
3381/* end confdefs.h. */
3382#include <stdarg.h>
3383#include <stdio.h>
3384#include <sys/types.h>
3385#include <sys/stat.h>
3386/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3387struct buf { int x; };
3388FILE * (*rcsopen) (struct buf *, struct stat *, int);
3389static char *e (p, i)
3390 char **p;
3391 int i;
3392{
3393 return p[i];
3394}
3395static char *f (char * (*g) (char **, int), char **p, ...)
3396{
3397 char *s;
3398 va_list v;
3399 va_start (v,p);
3400 s = g (p, va_arg (v,int));
3401 va_end (v);
3402 return s;
3403}
3404
3405/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3406 function prototypes and stuff, but not '\xHH' hex character constants.
3407 These don't provoke an error unfortunately, instead are silently treated
64ff59ba 3408 as 'x'. The following induces an error, until -std is added to get
d9898ee8 3409 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3410 array size at least. It's necessary to write '\x00'==0 to get something
64ff59ba 3411 that's true only with -std. */
d9898ee8 3412int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3413
64ff59ba 3414/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3415 inside strings and character constants. */
3416#define FOO(x) 'x'
3417int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3418
d9898ee8 3419int test (int i, double x);
3420struct s1 {int (*f) (int a);};
3421struct s2 {int (*f) (double a);};
3422int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3423int argc;
3424char **argv;
3425int
3426main ()
3427{
3428return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3429 ;
3430 return 0;
3431}
3432_ACEOF
64ff59ba 3433for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3434 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
d9898ee8 3435do
3436 CC="$ac_save_CC $ac_arg"
3437 rm -f conftest.$ac_objext
64ff59ba 3438if { (ac_try="$ac_compile"
3439case "(($ac_try" in
3440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3441 *) ac_try_echo=$ac_try;;
3442esac
3443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3444 (eval "$ac_compile") 2>conftest.er1
d9898ee8 3445 ac_status=$?
3446 grep -v '^ *+' conftest.er1 >conftest.err
3447 rm -f conftest.er1
3448 cat conftest.err >&5
3449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 3450 (exit $ac_status); } && {
3451 test -z "$ac_c_werror_flag" ||
3452 test ! -s conftest.err
3453 } && test -s conftest.$ac_objext; then
3454 ac_cv_prog_cc_c89=$ac_arg
d9898ee8 3455else
3456 echo "$as_me: failed program was:" >&5
3457sed 's/^/| /' conftest.$ac_ext >&5
3458
64ff59ba 3459
d9898ee8 3460fi
64ff59ba 3461
3462rm -f core conftest.err conftest.$ac_objext
3463 test "x$ac_cv_prog_cc_c89" != "xno" && break
d9898ee8 3464done
64ff59ba 3465rm -f conftest.$ac_ext
d9898ee8 3466CC=$ac_save_CC
3467
3468fi
64ff59ba 3469# AC_CACHE_VAL
3470case "x$ac_cv_prog_cc_c89" in
3471 x)
3472 { echo "$as_me:$LINENO: result: none needed" >&5
3473echo "${ECHO_T}none needed" >&6; } ;;
3474 xno)
3475 { echo "$as_me:$LINENO: result: unsupported" >&5
3476echo "${ECHO_T}unsupported" >&6; } ;;
d9898ee8 3477 *)
64ff59ba 3478 CC="$CC $ac_cv_prog_cc_c89"
3479 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3480echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
d9898ee8 3481esac
3482
d9898ee8 3483
d9898ee8 3484ac_ext=c
3485ac_cpp='$CPP $CPPFLAGS'
3486ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3487ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3488ac_compiler_gnu=$ac_cv_c_compiler_gnu
3489DEPDIR="${am__leading_dot}deps"
3490
64ff59ba 3491ac_config_commands="$ac_config_commands depfiles"
d9898ee8 3492
3493
3494am_make=${MAKE-make}
3495cat > confinc << 'END'
3496am__doit:
3497 @echo done
3498.PHONY: am__doit
3499END
3500# If we don't find an include directive, just comment out the code.
64ff59ba 3501{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3502echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
d9898ee8 3503am__include="#"
3504am__quote=
3505_am_result=none
3506# First try GNU make style include.
3507echo "include confinc" > confmf
3508# We grep out `Entering directory' and `Leaving directory'
3509# messages which can occur if `w' ends up in MAKEFLAGS.
3510# In particular we don't look at `^make:' because GNU make might
3511# be invoked under some other name (usually "gmake"), in which
3512# case it prints its new name instead of `make'.
3513if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3514 am__include=include
3515 am__quote=
3516 _am_result=GNU
3517fi
3518# Now try BSD make style include.
3519if test "$am__include" = "#"; then
3520 echo '.include "confinc"' > confmf
3521 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3522 am__include=.include
3523 am__quote="\""
3524 _am_result=BSD
3525 fi
3526fi
3527
3528
64ff59ba 3529{ echo "$as_me:$LINENO: result: $_am_result" >&5
3530echo "${ECHO_T}$_am_result" >&6; }
d9898ee8 3531rm -f confinc confmf
3532
64ff59ba 3533# Check whether --enable-dependency-tracking was given.
d9898ee8 3534if test "${enable_dependency_tracking+set}" = set; then
64ff59ba 3535 enableval=$enable_dependency_tracking;
3536fi
d9898ee8 3537
d9898ee8 3538if test "x$enable_dependency_tracking" != xno; then
3539 am_depcomp="$ac_aux_dir/depcomp"
3540 AMDEPBACKSLASH='\'
3541fi
64ff59ba 3542 if test "x$enable_dependency_tracking" != xno; then
d9898ee8 3543 AMDEP_TRUE=
3544 AMDEP_FALSE='#'
3545else
3546 AMDEP_TRUE='#'
3547 AMDEP_FALSE=
3548fi
3549
3550
3551
d9898ee8 3552depcc="$CC" am_compiler_list=
3553
64ff59ba 3554{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3555echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
d9898ee8 3556if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3557 echo $ECHO_N "(cached) $ECHO_C" >&6
3558else
3559 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3560 # We make a subdir and do the tests there. Otherwise we can end up
3561 # making bogus files that we don't know about and never remove. For
3562 # instance it was reported that on HP-UX the gcc test will end up
3563 # making a dummy file named `D' -- because `-MD' means `put the output
3564 # in D'.
3565 mkdir conftest.dir
3566 # Copy depcomp to subdir because otherwise we won't find it if we're
3567 # using a relative directory.
3568 cp "$am_depcomp" conftest.dir
3569 cd conftest.dir
3570 # We will build objects and dependencies in a subdirectory because
3571 # it helps to detect inapplicable dependency modes. For instance
3572 # both Tru64's cc and ICC support -MD to output dependencies as a
3573 # side effect of compilation, but ICC will put the dependencies in
3574 # the current directory while Tru64 will put them in the object
3575 # directory.
3576 mkdir sub
3577
3578 am_cv_CC_dependencies_compiler_type=none
3579 if test "$am_compiler_list" = ""; then
3580 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3581 fi
3582 for depmode in $am_compiler_list; do
3583 # Setup a source with many dependencies, because some compilers
3584 # like to wrap large dependency lists on column 80 (with \), and
3585 # we should not choose a depcomp mode which is confused by this.
3586 #
3587 # We need to recreate these files for each test, as the compiler may
3588 # overwrite some of them when testing with obscure command lines.
3589 # This happens at least with the AIX C compiler.
3590 : > sub/conftest.c
3591 for i in 1 2 3 4 5 6; do
3592 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3593 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3594 # Solaris 8's {/usr,}/bin/sh.
3595 touch sub/conftst$i.h
3596 done
3597 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3598
3599 case $depmode in
3600 nosideeffect)
3601 # after this tag, mechanisms are not by side-effect, so they'll
3602 # only be used when explicitly requested
3603 if test "x$enable_dependency_tracking" = xyes; then
3604 continue
3605 else
3606 break
3607 fi
3608 ;;
3609 none) break ;;
3610 esac
3611 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3612 # mode. It turns out that the SunPro C++ compiler does not properly
3613 # handle `-M -o', and we need to detect this.
3614 if depmode=$depmode \
3615 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3616 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3617 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3618 >/dev/null 2>conftest.err &&
64ff59ba 3619 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
d9898ee8 3620 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3621 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3622 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3623 # icc doesn't choke on unknown options, it will just issue warnings
3624 # or remarks (even with -Werror). So we grep stderr for any message
3625 # that says an option was ignored or not supported.
3626 # When given -MP, icc 7.0 and 7.1 complain thusly:
3627 # icc: Command line warning: ignoring option '-M'; no argument required
3628 # The diagnosis changed in icc 8.0:
3629 # icc: Command line remark: option '-MP' not supported
3630 if (grep 'ignoring option' conftest.err ||
3631 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3632 am_cv_CC_dependencies_compiler_type=$depmode
3633 break
3634 fi
3635 fi
3636 done
3637
3638 cd ..
3639 rm -rf conftest.dir
3640else
3641 am_cv_CC_dependencies_compiler_type=none
3642fi
3643
3644fi
64ff59ba 3645{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3646echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
d9898ee8 3647CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3648
64ff59ba 3649 if
d9898ee8 3650 test "x$enable_dependency_tracking" != xno \
3651 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3652 am__fastdepCC_TRUE=
3653 am__fastdepCC_FALSE='#'
3654else
3655 am__fastdepCC_TRUE='#'
3656 am__fastdepCC_FALSE=
3657fi
3658
3659
3660ac_ext=c
3661ac_cpp='$CPP $CPPFLAGS'
3662ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3663ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3664ac_compiler_gnu=$ac_cv_c_compiler_gnu
64ff59ba 3665{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3666echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
d9898ee8 3667# On Suns, sometimes $CPP names a directory.
3668if test -n "$CPP" && test -d "$CPP"; then
3669 CPP=
3670fi
3671if test -z "$CPP"; then
3672 if test "${ac_cv_prog_CPP+set}" = set; then
3673 echo $ECHO_N "(cached) $ECHO_C" >&6
3674else
3675 # Double quotes because CPP needs to be expanded
3676 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3677 do
3678 ac_preproc_ok=false
3679for ac_c_preproc_warn_flag in '' yes
3680do
3681 # Use a header file that comes with gcc, so configuring glibc
3682 # with a fresh cross-compiler works.
3683 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3684 # <limits.h> exists even on freestanding compilers.
3685 # On the NeXT, cc -E runs the code through the compiler's parser,
3686 # not just through cpp. "Syntax error" is here to catch this case.
3687 cat >conftest.$ac_ext <<_ACEOF
3688/* confdefs.h. */
3689_ACEOF
3690cat confdefs.h >>conftest.$ac_ext
3691cat >>conftest.$ac_ext <<_ACEOF
3692/* end confdefs.h. */
3693#ifdef __STDC__
3694# include <limits.h>
3695#else
3696# include <assert.h>
3697#endif
3698 Syntax error
3699_ACEOF
64ff59ba 3700if { (ac_try="$ac_cpp conftest.$ac_ext"
3701case "(($ac_try" in
3702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3703 *) ac_try_echo=$ac_try;;
3704esac
3705eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3706 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 3707 ac_status=$?
3708 grep -v '^ *+' conftest.er1 >conftest.err
3709 rm -f conftest.er1
3710 cat conftest.err >&5
3711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 3712 (exit $ac_status); } >/dev/null && {
3713 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3714 test ! -s conftest.err
3715 }; then
d9898ee8 3716 :
3717else
3718 echo "$as_me: failed program was:" >&5
3719sed 's/^/| /' conftest.$ac_ext >&5
3720
3721 # Broken: fails on valid input.
3722continue
3723fi
64ff59ba 3724
d9898ee8 3725rm -f conftest.err conftest.$ac_ext
3726
64ff59ba 3727 # OK, works on sane cases. Now check whether nonexistent headers
d9898ee8 3728 # can be detected and how.
3729 cat >conftest.$ac_ext <<_ACEOF
3730/* confdefs.h. */
3731_ACEOF
3732cat confdefs.h >>conftest.$ac_ext
3733cat >>conftest.$ac_ext <<_ACEOF
3734/* end confdefs.h. */
3735#include <ac_nonexistent.h>
3736_ACEOF
64ff59ba 3737if { (ac_try="$ac_cpp conftest.$ac_ext"
3738case "(($ac_try" in
3739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3740 *) ac_try_echo=$ac_try;;
3741esac
3742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3743 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 3744 ac_status=$?
3745 grep -v '^ *+' conftest.er1 >conftest.err
3746 rm -f conftest.er1
3747 cat conftest.err >&5
3748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 3749 (exit $ac_status); } >/dev/null && {
3750 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3751 test ! -s conftest.err
3752 }; then
d9898ee8 3753 # Broken: success on invalid input.
3754continue
3755else
3756 echo "$as_me: failed program was:" >&5
3757sed 's/^/| /' conftest.$ac_ext >&5
3758
3759 # Passes both tests.
3760ac_preproc_ok=:
3761break
3762fi
64ff59ba 3763
d9898ee8 3764rm -f conftest.err conftest.$ac_ext
3765
3766done
3767# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3768rm -f conftest.err conftest.$ac_ext
3769if $ac_preproc_ok; then
3770 break
3771fi
3772
3773 done
3774 ac_cv_prog_CPP=$CPP
3775
3776fi
3777 CPP=$ac_cv_prog_CPP
3778else
3779 ac_cv_prog_CPP=$CPP
3780fi
64ff59ba 3781{ echo "$as_me:$LINENO: result: $CPP" >&5
3782echo "${ECHO_T}$CPP" >&6; }
d9898ee8 3783ac_preproc_ok=false
3784for ac_c_preproc_warn_flag in '' yes
3785do
3786 # Use a header file that comes with gcc, so configuring glibc
3787 # with a fresh cross-compiler works.
3788 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3789 # <limits.h> exists even on freestanding compilers.
3790 # On the NeXT, cc -E runs the code through the compiler's parser,
3791 # not just through cpp. "Syntax error" is here to catch this case.
3792 cat >conftest.$ac_ext <<_ACEOF
3793/* confdefs.h. */
3794_ACEOF
3795cat confdefs.h >>conftest.$ac_ext
3796cat >>conftest.$ac_ext <<_ACEOF
3797/* end confdefs.h. */
3798#ifdef __STDC__
3799# include <limits.h>
3800#else
3801# include <assert.h>
3802#endif
3803 Syntax error
3804_ACEOF
64ff59ba 3805if { (ac_try="$ac_cpp conftest.$ac_ext"
3806case "(($ac_try" in
3807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3808 *) ac_try_echo=$ac_try;;
3809esac
3810eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3811 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 3812 ac_status=$?
3813 grep -v '^ *+' conftest.er1 >conftest.err
3814 rm -f conftest.er1
3815 cat conftest.err >&5
3816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 3817 (exit $ac_status); } >/dev/null && {
3818 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3819 test ! -s conftest.err
3820 }; then
d9898ee8 3821 :
3822else
3823 echo "$as_me: failed program was:" >&5
3824sed 's/^/| /' conftest.$ac_ext >&5
3825
3826 # Broken: fails on valid input.
3827continue
3828fi
64ff59ba 3829
d9898ee8 3830rm -f conftest.err conftest.$ac_ext
3831
64ff59ba 3832 # OK, works on sane cases. Now check whether nonexistent headers
d9898ee8 3833 # can be detected and how.
3834 cat >conftest.$ac_ext <<_ACEOF
3835/* confdefs.h. */
3836_ACEOF
3837cat confdefs.h >>conftest.$ac_ext
3838cat >>conftest.$ac_ext <<_ACEOF
3839/* end confdefs.h. */
3840#include <ac_nonexistent.h>
3841_ACEOF
64ff59ba 3842if { (ac_try="$ac_cpp conftest.$ac_ext"
3843case "(($ac_try" in
3844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3845 *) ac_try_echo=$ac_try;;
3846esac
3847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3848 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 3849 ac_status=$?
3850 grep -v '^ *+' conftest.er1 >conftest.err
3851 rm -f conftest.er1
3852 cat conftest.err >&5
3853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 3854 (exit $ac_status); } >/dev/null && {
3855 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3856 test ! -s conftest.err
3857 }; then
d9898ee8 3858 # Broken: success on invalid input.
3859continue
3860else
3861 echo "$as_me: failed program was:" >&5
3862sed 's/^/| /' conftest.$ac_ext >&5
3863
3864 # Passes both tests.
3865ac_preproc_ok=:
3866break
3867fi
64ff59ba 3868
d9898ee8 3869rm -f conftest.err conftest.$ac_ext
3870
3871done
3872# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3873rm -f conftest.err conftest.$ac_ext
3874if $ac_preproc_ok; then
3875 :
3876else
3877 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3878See \`config.log' for more details." >&5
3879echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3880See \`config.log' for more details." >&2;}
3881 { (exit 1); exit 1; }; }
3882fi
3883
3884ac_ext=c
3885ac_cpp='$CPP $CPPFLAGS'
3886ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3887ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3888ac_compiler_gnu=$ac_cv_c_compiler_gnu
3889
3890# Find a good install program. We prefer a C program (faster),
3891# so one script is as good as another. But avoid the broken or
3892# incompatible versions:
3893# SysV /etc/install, /usr/sbin/install
3894# SunOS /usr/etc/install
3895# IRIX /sbin/install
3896# AIX /bin/install
3897# AmigaOS /C/install, which installs bootblocks on floppy discs
3898# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3899# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3900# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3901# OS/2's system install, which has a completely different semantic
3902# ./install, which can be erroneously created by make from ./install.sh.
64ff59ba 3903{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3904echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
d9898ee8 3905if test -z "$INSTALL"; then
3906if test "${ac_cv_path_install+set}" = set; then
3907 echo $ECHO_N "(cached) $ECHO_C" >&6
3908else
3909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3910for as_dir in $PATH
3911do
3912 IFS=$as_save_IFS
3913 test -z "$as_dir" && as_dir=.
3914 # Account for people who put trailing slashes in PATH elements.
3915case $as_dir/ in
3916 ./ | .// | /cC/* | \
3917 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3918 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3919 /usr/ucb/* ) ;;
3920 *)
3921 # OSF1 and SCO ODT 3.0 have their own names for install.
3922 # Don't use installbsd from OSF since it installs stuff as root
3923 # by default.
3924 for ac_prog in ginstall scoinst install; do
3925 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 3926 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
d9898ee8 3927 if test $ac_prog = install &&
3928 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3929 # AIX install. It has an incompatible calling convention.
3930 :
3931 elif test $ac_prog = install &&
3932 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3933 # program-specific install script used by HP pwplus--don't use.
3934 :
3935 else
3936 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3937 break 3
3938 fi
3939 fi
3940 done
3941 done
3942 ;;
3943esac
3944done
64ff59ba 3945IFS=$as_save_IFS
d9898ee8 3946
3947
3948fi
3949 if test "${ac_cv_path_install+set}" = set; then
3950 INSTALL=$ac_cv_path_install
3951 else
64ff59ba 3952 # As a last resort, use the slow shell script. Don't cache a
3953 # value for INSTALL within a source directory, because that will
d9898ee8 3954 # break other packages using the cache if that directory is
64ff59ba 3955 # removed, or if the value is a relative name.
d9898ee8 3956 INSTALL=$ac_install_sh
3957 fi
3958fi
64ff59ba 3959{ echo "$as_me:$LINENO: result: $INSTALL" >&5
3960echo "${ECHO_T}$INSTALL" >&6; }
d9898ee8 3961
3962# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3963# It thinks the first close brace ends the variable substitution.
3964test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3965
3966test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3967
3968test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3969
64ff59ba 3970{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
3971echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
d9898ee8 3972LN_S=$as_ln_s
3973if test "$LN_S" = "ln -s"; then
64ff59ba 3974 { echo "$as_me:$LINENO: result: yes" >&5
3975echo "${ECHO_T}yes" >&6; }
d9898ee8 3976else
64ff59ba 3977 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3978echo "${ECHO_T}no, using $LN_S" >&6; }
d9898ee8 3979fi
3980
3981
3982
3983 for ac_prog in perl5 perl
3984do
3985 # Extract the first word of "$ac_prog", so it can be a program name with args.
3986set dummy $ac_prog; ac_word=$2
64ff59ba 3987{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3988echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 3989if test "${ac_cv_path_SYSCONFTOOL_PERL+set}" = set; then
3990 echo $ECHO_N "(cached) $ECHO_C" >&6
3991else
3992 case $SYSCONFTOOL_PERL in
3993 [\\/]* | ?:[\\/]*)
3994 ac_cv_path_SYSCONFTOOL_PERL="$SYSCONFTOOL_PERL" # Let the user override the test with a path.
3995 ;;
3996 *)
3997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3998for as_dir in $PATH
3999do
4000 IFS=$as_save_IFS
4001 test -z "$as_dir" && as_dir=.
4002 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 4003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 4004 ac_cv_path_SYSCONFTOOL_PERL="$as_dir/$ac_word$ac_exec_ext"
4005 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4006 break 2
4007 fi
4008done
4009done
64ff59ba 4010IFS=$as_save_IFS
d9898ee8 4011
4012 ;;
4013esac
4014fi
4015SYSCONFTOOL_PERL=$ac_cv_path_SYSCONFTOOL_PERL
d9898ee8 4016if test -n "$SYSCONFTOOL_PERL"; then
64ff59ba 4017 { echo "$as_me:$LINENO: result: $SYSCONFTOOL_PERL" >&5
4018echo "${ECHO_T}$SYSCONFTOOL_PERL" >&6; }
d9898ee8 4019else
64ff59ba 4020 { echo "$as_me:$LINENO: result: no" >&5
4021echo "${ECHO_T}no" >&6; }
d9898ee8 4022fi
4023
64ff59ba 4024
d9898ee8 4025 test -n "$SYSCONFTOOL_PERL" && break
4026done
4027test -n "$SYSCONFTOOL_PERL" || SYSCONFTOOL_PERL="perl"
4028
4029
4030 if test "$SYSCONFTOOL_PERL" = "perl"
4031 then
4032 { { echo "$as_me:$LINENO: error: perl not found - please install perl" >&5
4033echo "$as_me: error: perl not found - please install perl" >&2;}
4034 { (exit 1); exit 1; }; }
4035 fi
4036
64ff59ba 4037 { echo "$as_me:$LINENO: checking for sysconftool..." >&5
4038echo $ECHO_N "checking for sysconftool...... $ECHO_C" >&6; }
d9898ee8 4039 SYSCONFTOOL=""
4040 for sysconf_dir in $ac_aux_dir . .. ../..
4041 do
4042 if test -f $srcdir/$sysconf_dir/sysconftool
4043 then
4044 SYSCONFTOOL=$srcdir/$sysconf_dir/sysconftool
4045 break
4046 fi
4047 done
4048
4049 if test "$SYSCONFTOOL" = ""
4050 then
4051 { { echo "$as_me:$LINENO: error: sysconftool missing - not in the package" >&5
4052echo "$as_me: error: sysconftool missing - not in the package" >&2;}
4053 { (exit 1); exit 1; }; }
4054 fi
4055
64ff59ba 4056 { echo "$as_me:$LINENO: result: $SYSCONFTOOL" >&5
4057echo "${ECHO_T}$SYSCONFTOOL" >&6; }
d9898ee8 4058 SYSCONFTOOL="$SYSCONFTOOL_PERL $SYSCONFTOOL"
4059
4060
4061
4062
64ff59ba 4063 { echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
4064echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6; }
d9898ee8 4065if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
4066 echo $ECHO_N "(cached) $ECHO_C" >&6
4067else
4068 ac_check_lib_save_LIBS=$LIBS
4069LIBS="-lltdl $LIBS"
4070cat >conftest.$ac_ext <<_ACEOF
4071/* confdefs.h. */
4072_ACEOF
4073cat confdefs.h >>conftest.$ac_ext
4074cat >>conftest.$ac_ext <<_ACEOF
4075/* end confdefs.h. */
4076
64ff59ba 4077/* Override any GCC internal prototype to avoid an error.
4078 Use char because int might match the return type of a GCC
4079 builtin and then its argument prototype would still apply. */
d9898ee8 4080#ifdef __cplusplus
4081extern "C"
4082#endif
d9898ee8 4083char lt_dlinit ();
4084int
4085main ()
4086{
64ff59ba 4087return lt_dlinit ();
d9898ee8 4088 ;
4089 return 0;
4090}
4091_ACEOF
4092rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 4093if { (ac_try="$ac_link"
4094case "(($ac_try" in
4095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4096 *) ac_try_echo=$ac_try;;
4097esac
4098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4099 (eval "$ac_link") 2>conftest.er1
d9898ee8 4100 ac_status=$?
4101 grep -v '^ *+' conftest.er1 >conftest.err
4102 rm -f conftest.er1
4103 cat conftest.err >&5
4104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 4105 (exit $ac_status); } && {
4106 test -z "$ac_c_werror_flag" ||
4107 test ! -s conftest.err
4108 } && test -s conftest$ac_exeext &&
4109 $as_test_x conftest$ac_exeext; then
d9898ee8 4110 ac_cv_lib_ltdl_lt_dlinit=yes
4111else
4112 echo "$as_me: failed program was:" >&5
4113sed 's/^/| /' conftest.$ac_ext >&5
4114
64ff59ba 4115 ac_cv_lib_ltdl_lt_dlinit=no
d9898ee8 4116fi
64ff59ba 4117
4118rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 4119 conftest$ac_exeext conftest.$ac_ext
4120LIBS=$ac_check_lib_save_LIBS
4121fi
64ff59ba 4122{ echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
4123echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6; }
d9898ee8 4124if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
4125 test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no
4126else
4127 if test x"$enable_ltdl_install" = xno; then
4128 { echo "$as_me:$LINENO: WARNING: libltdl not installed, but installation disabled" >&5
4129echo "$as_me: WARNING: libltdl not installed, but installation disabled" >&2;}
4130 else
4131 enable_ltdl_install=yes
4132 fi
4133
4134fi
4135
4136 if test x"$enable_ltdl_install" = x"yes"; then
4137 ac_configure_args="$ac_configure_args --enable-ltdl-install"
4138 LIBLTDL='${top_builddir}/''libltdl'/libltdl.la
4139 LTDLINCL='-I${top_srcdir}/''libltdl'
4140 else
4141 ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
4142 LIBLTDL="-lltdl"
4143 LTDLINCL=
4144 fi
4145 # For backwards non-gettext consistent compatibility...
4146 INCLTDL="$LTDLINCL"
4147
4148
4149
64ff59ba 4150# Check whether --enable-shared was given.
d9898ee8 4151if test "${enable_shared+set}" = set; then
64ff59ba 4152 enableval=$enable_shared; p=${PACKAGE-default}
d9898ee8 4153 case $enableval in
4154 yes) enable_shared=yes ;;
4155 no) enable_shared=no ;;
4156 *)
4157 enable_shared=no
4158 # Look at the argument we got. We use all the common list separators.
4159 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4160 for pkg in $enableval; do
4161 IFS="$lt_save_ifs"
4162 if test "X$pkg" = "X$p"; then
4163 enable_shared=yes
4164 fi
4165 done
4166 IFS="$lt_save_ifs"
4167 ;;
4168 esac
4169else
4170 enable_shared=yes
64ff59ba 4171fi
d9898ee8 4172
64ff59ba 4173
4174# Check whether --enable-static was given.
d9898ee8 4175if test "${enable_static+set}" = set; then
64ff59ba 4176 enableval=$enable_static; p=${PACKAGE-default}
d9898ee8 4177 case $enableval in
4178 yes) enable_static=yes ;;
4179 no) enable_static=no ;;
4180 *)
4181 enable_static=no
4182 # Look at the argument we got. We use all the common list separators.
4183 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4184 for pkg in $enableval; do
4185 IFS="$lt_save_ifs"
4186 if test "X$pkg" = "X$p"; then
4187 enable_static=yes
4188 fi
4189 done
4190 IFS="$lt_save_ifs"
4191 ;;
4192 esac
4193else
4194 enable_static=yes
64ff59ba 4195fi
d9898ee8 4196
64ff59ba 4197
4198# Check whether --enable-fast-install was given.
d9898ee8 4199if test "${enable_fast_install+set}" = set; then
64ff59ba 4200 enableval=$enable_fast_install; p=${PACKAGE-default}
d9898ee8 4201 case $enableval in
4202 yes) enable_fast_install=yes ;;
4203 no) enable_fast_install=no ;;
4204 *)
4205 enable_fast_install=no
4206 # Look at the argument we got. We use all the common list separators.
4207 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4208 for pkg in $enableval; do
4209 IFS="$lt_save_ifs"
4210 if test "X$pkg" = "X$p"; then
4211 enable_fast_install=yes
4212 fi
4213 done
4214 IFS="$lt_save_ifs"
4215 ;;
4216 esac
4217else
4218 enable_fast_install=yes
64ff59ba 4219fi
4220
d9898ee8 4221
4222# Make sure we can run config.sub.
64ff59ba 4223$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4224 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4225echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
d9898ee8 4226 { (exit 1); exit 1; }; }
4227
64ff59ba 4228{ echo "$as_me:$LINENO: checking build system type" >&5
4229echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
d9898ee8 4230if test "${ac_cv_build+set}" = set; then
4231 echo $ECHO_N "(cached) $ECHO_C" >&6
4232else
64ff59ba 4233 ac_build_alias=$build_alias
4234test "x$ac_build_alias" = x &&
4235 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4236test "x$ac_build_alias" = x &&
d9898ee8 4237 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4238echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4239 { (exit 1); exit 1; }; }
64ff59ba 4240ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4241 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4242echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
d9898ee8 4243 { (exit 1); exit 1; }; }
4244
4245fi
64ff59ba 4246{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4247echo "${ECHO_T}$ac_cv_build" >&6; }
4248case $ac_cv_build in
4249*-*-*) ;;
4250*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4251echo "$as_me: error: invalid value of canonical build" >&2;}
4252 { (exit 1); exit 1; }; };;
4253esac
d9898ee8 4254build=$ac_cv_build
64ff59ba 4255ac_save_IFS=$IFS; IFS='-'
4256set x $ac_cv_build
4257shift
4258build_cpu=$1
4259build_vendor=$2
4260shift; shift
4261# Remember, the first character of IFS is used to create $*,
4262# except with old shells:
4263build_os=$*
4264IFS=$ac_save_IFS
4265case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4266
4267
4268{ echo "$as_me:$LINENO: checking host system type" >&5
4269echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
d9898ee8 4270if test "${ac_cv_host+set}" = set; then
4271 echo $ECHO_N "(cached) $ECHO_C" >&6
4272else
64ff59ba 4273 if test "x$host_alias" = x; then
4274 ac_cv_host=$ac_cv_build
4275else
4276 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4277 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4278echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
d9898ee8 4279 { (exit 1); exit 1; }; }
64ff59ba 4280fi
d9898ee8 4281
4282fi
64ff59ba 4283{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4284echo "${ECHO_T}$ac_cv_host" >&6; }
4285case $ac_cv_host in
4286*-*-*) ;;
4287*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4288echo "$as_me: error: invalid value of canonical host" >&2;}
4289 { (exit 1); exit 1; }; };;
4290esac
d9898ee8 4291host=$ac_cv_host
64ff59ba 4292ac_save_IFS=$IFS; IFS='-'
4293set x $ac_cv_host
4294shift
4295host_cpu=$1
4296host_vendor=$2
4297shift; shift
4298# Remember, the first character of IFS is used to create $*,
4299# except with old shells:
4300host_os=$*
4301IFS=$ac_save_IFS
4302case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4303
4304
4305{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4306echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
d9898ee8 4307if test "${lt_cv_path_SED+set}" = set; then
4308 echo $ECHO_N "(cached) $ECHO_C" >&6
4309else
4310 # Loop through the user's path and test for sed and gsed.
4311# Then use that list of sed's as ones to test for truncation.
4312as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4313for as_dir in $PATH
4314do
4315 IFS=$as_save_IFS
4316 test -z "$as_dir" && as_dir=.
4317 for lt_ac_prog in sed gsed; do
4318 for ac_exec_ext in '' $ac_executable_extensions; do
4319 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4320 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4321 fi
4322 done
4323 done
4324done
4325IFS=$as_save_IFS
4326lt_ac_max=0
4327lt_ac_count=0
4328# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4329# along with /bin/sed that truncates output.
4330for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4331 test ! -f $lt_ac_sed && continue
4332 cat /dev/null > conftest.in
4333 lt_ac_count=0
4334 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4335 # Check for GNU sed and select it if it is found.
4336 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4337 lt_cv_path_SED=$lt_ac_sed
4338 break
4339 fi
4340 while true; do
4341 cat conftest.in conftest.in >conftest.tmp
4342 mv conftest.tmp conftest.in
4343 cp conftest.in conftest.nl
4344 echo >>conftest.nl
4345 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4346 cmp -s conftest.out conftest.nl || break
4347 # 10000 chars as input seems more than enough
4348 test $lt_ac_count -gt 10 && break
4349 lt_ac_count=`expr $lt_ac_count + 1`
4350 if test $lt_ac_count -gt $lt_ac_max; then
4351 lt_ac_max=$lt_ac_count
4352 lt_cv_path_SED=$lt_ac_sed
4353 fi
4354 done
4355done
4356
4357fi
4358
4359SED=$lt_cv_path_SED
4360
64ff59ba 4361{ echo "$as_me:$LINENO: result: $SED" >&5
4362echo "${ECHO_T}$SED" >&6; }
4363
4364{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4365echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4366if test "${ac_cv_path_GREP+set}" = set; then
4367 echo $ECHO_N "(cached) $ECHO_C" >&6
4368else
4369 # Extract the first word of "grep ggrep" to use in msg output
4370if test -z "$GREP"; then
4371set dummy grep ggrep; ac_prog_name=$2
4372if test "${ac_cv_path_GREP+set}" = set; then
4373 echo $ECHO_N "(cached) $ECHO_C" >&6
4374else
4375 ac_path_GREP_found=false
4376# Loop through the user's path and test for each of PROGNAME-LIST
4377as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4378for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4379do
4380 IFS=$as_save_IFS
4381 test -z "$as_dir" && as_dir=.
4382 for ac_prog in grep ggrep; do
4383 for ac_exec_ext in '' $ac_executable_extensions; do
4384 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4385 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4386 # Check for GNU ac_path_GREP and select it if it is found.
4387 # Check for GNU $ac_path_GREP
4388case `"$ac_path_GREP" --version 2>&1` in
4389*GNU*)
4390 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4391*)
4392 ac_count=0
4393 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4394 while :
4395 do
4396 cat "conftest.in" "conftest.in" >"conftest.tmp"
4397 mv "conftest.tmp" "conftest.in"
4398 cp "conftest.in" "conftest.nl"
4399 echo 'GREP' >> "conftest.nl"
4400 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4401 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4402 ac_count=`expr $ac_count + 1`
4403 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4404 # Best one so far, save it but keep looking for a better one
4405 ac_cv_path_GREP="$ac_path_GREP"
4406 ac_path_GREP_max=$ac_count
4407 fi
4408 # 10*(2^10) chars as input seems more than enough
4409 test $ac_count -gt 10 && break
4410 done
4411 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4412esac
4413
4414
4415 $ac_path_GREP_found && break 3
4416 done
4417done
4418
4419done
4420IFS=$as_save_IFS
4421
4422
4423fi
4424
4425GREP="$ac_cv_path_GREP"
4426if test -z "$GREP"; then
4427 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4428echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4429 { (exit 1); exit 1; }; }
4430fi
4431
4432else
4433 ac_cv_path_GREP=$GREP
4434fi
4435
4436
4437fi
4438{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4439echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4440 GREP="$ac_cv_path_GREP"
4441
d9898ee8 4442
64ff59ba 4443{ echo "$as_me:$LINENO: checking for egrep" >&5
4444echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4445if test "${ac_cv_path_EGREP+set}" = set; then
4446 echo $ECHO_N "(cached) $ECHO_C" >&6
4447else
4448 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4449 then ac_cv_path_EGREP="$GREP -E"
4450 else
4451 # Extract the first word of "egrep" to use in msg output
4452if test -z "$EGREP"; then
4453set dummy egrep; ac_prog_name=$2
4454if test "${ac_cv_path_EGREP+set}" = set; then
d9898ee8 4455 echo $ECHO_N "(cached) $ECHO_C" >&6
4456else
64ff59ba 4457 ac_path_EGREP_found=false
4458# Loop through the user's path and test for each of PROGNAME-LIST
4459as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4460for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4461do
4462 IFS=$as_save_IFS
4463 test -z "$as_dir" && as_dir=.
4464 for ac_prog in egrep; do
4465 for ac_exec_ext in '' $ac_executable_extensions; do
4466 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4467 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4468 # Check for GNU ac_path_EGREP and select it if it is found.
4469 # Check for GNU $ac_path_EGREP
4470case `"$ac_path_EGREP" --version 2>&1` in
4471*GNU*)
4472 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4473*)
4474 ac_count=0
4475 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4476 while :
4477 do
4478 cat "conftest.in" "conftest.in" >"conftest.tmp"
4479 mv "conftest.tmp" "conftest.in"
4480 cp "conftest.in" "conftest.nl"
4481 echo 'EGREP' >> "conftest.nl"
4482 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4483 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4484 ac_count=`expr $ac_count + 1`
4485 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4486 # Best one so far, save it but keep looking for a better one
4487 ac_cv_path_EGREP="$ac_path_EGREP"
4488 ac_path_EGREP_max=$ac_count
d9898ee8 4489 fi
64ff59ba 4490 # 10*(2^10) chars as input seems more than enough
4491 test $ac_count -gt 10 && break
4492 done
4493 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4494esac
4495
4496
4497 $ac_path_EGREP_found && break 3
4498 done
4499done
4500
4501done
4502IFS=$as_save_IFS
4503
4504
4505fi
4506
4507EGREP="$ac_cv_path_EGREP"
4508if test -z "$EGREP"; then
4509 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4510echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4511 { (exit 1); exit 1; }; }
4512fi
4513
4514else
4515 ac_cv_path_EGREP=$EGREP
4516fi
4517
4518
4519 fi
d9898ee8 4520fi
64ff59ba 4521{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4522echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4523 EGREP="$ac_cv_path_EGREP"
d9898ee8 4524
4525
4526
64ff59ba 4527# Check whether --with-gnu-ld was given.
d9898ee8 4528if test "${with_gnu_ld+set}" = set; then
64ff59ba 4529 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
d9898ee8 4530else
4531 with_gnu_ld=no
64ff59ba 4532fi
4533
d9898ee8 4534ac_prog=ld
4535if test "$GCC" = yes; then
4536 # Check if gcc -print-prog-name=ld gives a path.
64ff59ba 4537 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4538echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
d9898ee8 4539 case $host in
4540 *-*-mingw*)
4541 # gcc leaves a trailing carriage return which upsets mingw
4542 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4543 *)
4544 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4545 esac
4546 case $ac_prog in
4547 # Accept absolute paths.
4548 [\\/]* | ?:[\\/]*)
4549 re_direlt='/[^/][^/]*/\.\./'
4550 # Canonicalize the pathname of ld
4551 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4552 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4553 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4554 done
4555 test -z "$LD" && LD="$ac_prog"
4556 ;;
4557 "")
4558 # If it fails, then pretend we aren't using GCC.
4559 ac_prog=ld
4560 ;;
4561 *)
4562 # If it is relative, then search for the first ld in PATH.
4563 with_gnu_ld=unknown
4564 ;;
4565 esac
4566elif test "$with_gnu_ld" = yes; then
64ff59ba 4567 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4568echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
d9898ee8 4569else
64ff59ba 4570 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4571echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
d9898ee8 4572fi
4573if test "${lt_cv_path_LD+set}" = set; then
4574 echo $ECHO_N "(cached) $ECHO_C" >&6
4575else
4576 if test -z "$LD"; then
4577 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4578 for ac_dir in $PATH; do
4579 IFS="$lt_save_ifs"
4580 test -z "$ac_dir" && ac_dir=.
4581 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4582 lt_cv_path_LD="$ac_dir/$ac_prog"
4583 # Check to see if the program is GNU ld. I'd rather use --version,
4584 # but apparently some variants of GNU ld only accept -v.
4585 # Break only if it was the GNU/non-GNU ld that we prefer.
4586 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4587 *GNU* | *'with BFD'*)
4588 test "$with_gnu_ld" != no && break
4589 ;;
4590 *)
4591 test "$with_gnu_ld" != yes && break
4592 ;;
4593 esac
4594 fi
4595 done
4596 IFS="$lt_save_ifs"
4597else
4598 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4599fi
4600fi
4601
4602LD="$lt_cv_path_LD"
4603if test -n "$LD"; then
64ff59ba 4604 { echo "$as_me:$LINENO: result: $LD" >&5
4605echo "${ECHO_T}$LD" >&6; }
d9898ee8 4606else
64ff59ba 4607 { echo "$as_me:$LINENO: result: no" >&5
4608echo "${ECHO_T}no" >&6; }
d9898ee8 4609fi
4610test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4611echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4612 { (exit 1); exit 1; }; }
64ff59ba 4613{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4614echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
d9898ee8 4615if test "${lt_cv_prog_gnu_ld+set}" = set; then
4616 echo $ECHO_N "(cached) $ECHO_C" >&6
4617else
4618 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4619case `$LD -v 2>&1 </dev/null` in
4620*GNU* | *'with BFD'*)
4621 lt_cv_prog_gnu_ld=yes
4622 ;;
4623*)
4624 lt_cv_prog_gnu_ld=no
4625 ;;
4626esac
4627fi
64ff59ba 4628{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4629echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
d9898ee8 4630with_gnu_ld=$lt_cv_prog_gnu_ld
4631
4632
64ff59ba 4633{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4634echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
d9898ee8 4635if test "${lt_cv_ld_reload_flag+set}" = set; then
4636 echo $ECHO_N "(cached) $ECHO_C" >&6
4637else
4638 lt_cv_ld_reload_flag='-r'
4639fi
64ff59ba 4640{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4641echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
d9898ee8 4642reload_flag=$lt_cv_ld_reload_flag
4643case $reload_flag in
4644"" | " "*) ;;
4645*) reload_flag=" $reload_flag" ;;
4646esac
4647reload_cmds='$LD$reload_flag -o $output$reload_objs'
4648case $host_os in
4649 darwin*)
4650 if test "$GCC" = yes; then
4651 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4652 else
4653 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4654 fi
4655 ;;
4656esac
4657
64ff59ba 4658{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4659echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
d9898ee8 4660if test "${lt_cv_path_NM+set}" = set; then
4661 echo $ECHO_N "(cached) $ECHO_C" >&6
4662else
4663 if test -n "$NM"; then
4664 # Let the user override the test.
4665 lt_cv_path_NM="$NM"
4666else
4667 lt_nm_to_check="${ac_tool_prefix}nm"
4668 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4669 lt_nm_to_check="$lt_nm_to_check nm"
4670 fi
4671 for lt_tmp_nm in $lt_nm_to_check; do
4672 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4673 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4674 IFS="$lt_save_ifs"
4675 test -z "$ac_dir" && ac_dir=.
4676 tmp_nm="$ac_dir/$lt_tmp_nm"
4677 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4678 # Check to see if the nm accepts a BSD-compat flag.
4679 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4680 # nm: unknown option "B" ignored
4681 # Tru64's nm complains that /dev/null is an invalid object file
4682 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4683 */dev/null* | *'Invalid file or object type'*)
4684 lt_cv_path_NM="$tmp_nm -B"
4685 break
4686 ;;
4687 *)
4688 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4689 */dev/null*)
4690 lt_cv_path_NM="$tmp_nm -p"
4691 break
4692 ;;
4693 *)
4694 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4695 continue # so that we can try to find one that supports BSD flags
4696 ;;
4697 esac
4698 ;;
4699 esac
4700 fi
4701 done
4702 IFS="$lt_save_ifs"
4703 done
4704 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4705fi
4706fi
64ff59ba 4707{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4708echo "${ECHO_T}$lt_cv_path_NM" >&6; }
d9898ee8 4709NM="$lt_cv_path_NM"
4710
64ff59ba 4711{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4712echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
d9898ee8 4713if test "${lt_cv_deplibs_check_method+set}" = set; then
4714 echo $ECHO_N "(cached) $ECHO_C" >&6
4715else
4716 lt_cv_file_magic_cmd='$MAGIC_CMD'
4717lt_cv_file_magic_test_file=
4718lt_cv_deplibs_check_method='unknown'
4719# Need to set the preceding variable on all platforms that support
4720# interlibrary dependencies.
4721# 'none' -- dependencies not supported.
4722# `unknown' -- same as none, but documents that we really don't know.
4723# 'pass_all' -- all dependencies passed with no checks.
4724# 'test_compile' -- check by making test program.
4725# 'file_magic [[regex]]' -- check by looking for files in library path
4726# which responds to the $file_magic_cmd with a given extended regex.
4727# If you have `file' or equivalent on your system and you're not sure
4728# whether `pass_all' will *always* work, you probably want this one.
4729
4730case $host_os in
4731aix4* | aix5*)
4732 lt_cv_deplibs_check_method=pass_all
4733 ;;
4734
4735beos*)
4736 lt_cv_deplibs_check_method=pass_all
4737 ;;
4738
4739bsdi[45]*)
4740 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4741 lt_cv_file_magic_cmd='/usr/bin/file -L'
4742 lt_cv_file_magic_test_file=/shlib/libc.so
4743 ;;
4744
4745cygwin*)
4746 # func_win32_libid is a shell function defined in ltmain.sh
4747 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4748 lt_cv_file_magic_cmd='func_win32_libid'
4749 ;;
4750
4751mingw* | pw32*)
4752 # Base MSYS/MinGW do not provide the 'file' command needed by
4753 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4754 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4755 lt_cv_file_magic_cmd='$OBJDUMP -f'
4756 ;;
4757
4758darwin* | rhapsody*)
4759 lt_cv_deplibs_check_method=pass_all
4760 ;;
4761
4762freebsd* | kfreebsd*-gnu | dragonfly*)
4763 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4764 case $host_cpu in
4765 i*86 )
4766 # Not sure whether the presence of OpenBSD here was a mistake.
4767 # Let's accept both of them until this is cleared up.
4768 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4769 lt_cv_file_magic_cmd=/usr/bin/file
4770 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4771 ;;
4772 esac
4773 else
4774 lt_cv_deplibs_check_method=pass_all
4775 fi
4776 ;;
4777
4778gnu*)
4779 lt_cv_deplibs_check_method=pass_all
4780 ;;
4781
4782hpux10.20* | hpux11*)
4783 lt_cv_file_magic_cmd=/usr/bin/file
4784 case $host_cpu in
4785 ia64*)
4786 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4787 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4788 ;;
4789 hppa*64*)
4790 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]'
4791 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4792 ;;
4793 *)
4794 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4795 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4796 ;;
4797 esac
4798 ;;
4799
4800interix3*)
4801 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4802 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4803 ;;
4804
4805irix5* | irix6* | nonstopux*)
4806 case $LD in
4807 *-32|*"-32 ") libmagic=32-bit;;
4808 *-n32|*"-n32 ") libmagic=N32;;
4809 *-64|*"-64 ") libmagic=64-bit;;
4810 *) libmagic=never-match;;
4811 esac
4812 lt_cv_deplibs_check_method=pass_all
4813 ;;
4814
4815# This must be Linux ELF.
4816linux*)
4817 lt_cv_deplibs_check_method=pass_all
4818 ;;
4819
4820netbsd*)
4821 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4822 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4823 else
4824 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4825 fi
4826 ;;
4827
4828newos6*)
4829 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4830 lt_cv_file_magic_cmd=/usr/bin/file
4831 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4832 ;;
4833
4834nto-qnx*)
4835 lt_cv_deplibs_check_method=unknown
4836 ;;
4837
4838openbsd*)
4839 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4840 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4841 else
4842 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4843 fi
4844 ;;
4845
4846osf3* | osf4* | osf5*)
4847 lt_cv_deplibs_check_method=pass_all
4848 ;;
4849
4850solaris*)
4851 lt_cv_deplibs_check_method=pass_all
4852 ;;
4853
4854sysv4 | sysv4.3*)
4855 case $host_vendor in
4856 motorola)
4857 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]'
4858 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4859 ;;
4860 ncr)
4861 lt_cv_deplibs_check_method=pass_all
4862 ;;
4863 sequent)
4864 lt_cv_file_magic_cmd='/bin/file'
4865 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4866 ;;
4867 sni)
4868 lt_cv_file_magic_cmd='/bin/file'
4869 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4870 lt_cv_file_magic_test_file=/lib/libc.so
4871 ;;
4872 siemens)
4873 lt_cv_deplibs_check_method=pass_all
4874 ;;
4875 pc)
4876 lt_cv_deplibs_check_method=pass_all
4877 ;;
4878 esac
4879 ;;
4880
4881sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4882 lt_cv_deplibs_check_method=pass_all
4883 ;;
4884esac
4885
4886fi
64ff59ba 4887{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4888echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
d9898ee8 4889file_magic_cmd=$lt_cv_file_magic_cmd
4890deplibs_check_method=$lt_cv_deplibs_check_method
4891test -z "$deplibs_check_method" && deplibs_check_method=unknown
4892
4893
4894
4895
4896# If no C compiler was specified, use CC.
4897LTCC=${LTCC-"$CC"}
4898
4899# If no C compiler flags were specified, use CFLAGS.
4900LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4901
4902# Allow CC to be a program name with arguments.
4903compiler=$CC
4904
64ff59ba 4905# Check whether --enable-libtool-lock was given.
d9898ee8 4906if test "${enable_libtool_lock+set}" = set; then
64ff59ba 4907 enableval=$enable_libtool_lock;
4908fi
d9898ee8 4909
d9898ee8 4910test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4911
4912# Some flags need to be propagated to the compiler or linker for good
4913# libtool support.
4914case $host in
4915ia64-*-hpux*)
4916 # Find out which ABI we are using.
4917 echo 'int i;' > conftest.$ac_ext
4918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4919 (eval $ac_compile) 2>&5
4920 ac_status=$?
4921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4922 (exit $ac_status); }; then
4923 case `/usr/bin/file conftest.$ac_objext` in
4924 *ELF-32*)
4925 HPUX_IA64_MODE="32"
4926 ;;
4927 *ELF-64*)
4928 HPUX_IA64_MODE="64"
4929 ;;
4930 esac
4931 fi
4932 rm -rf conftest*
4933 ;;
4934*-*-irix6*)
4935 # Find out which ABI we are using.
64ff59ba 4936 echo '#line 4936 "configure"' > conftest.$ac_ext
d9898ee8 4937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4938 (eval $ac_compile) 2>&5
4939 ac_status=$?
4940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4941 (exit $ac_status); }; then
4942 if test "$lt_cv_prog_gnu_ld" = yes; then
4943 case `/usr/bin/file conftest.$ac_objext` in
4944 *32-bit*)
4945 LD="${LD-ld} -melf32bsmip"
4946 ;;
4947 *N32*)
4948 LD="${LD-ld} -melf32bmipn32"
4949 ;;
4950 *64-bit*)
4951 LD="${LD-ld} -melf64bmip"
4952 ;;
4953 esac
4954 else
4955 case `/usr/bin/file conftest.$ac_objext` in
4956 *32-bit*)
4957 LD="${LD-ld} -32"
4958 ;;
4959 *N32*)
4960 LD="${LD-ld} -n32"
4961 ;;
4962 *64-bit*)
4963 LD="${LD-ld} -64"
4964 ;;
4965 esac
4966 fi
4967 fi
4968 rm -rf conftest*
4969 ;;
4970
4971x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4972 # Find out which ABI we are using.
4973 echo 'int i;' > conftest.$ac_ext
4974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4975 (eval $ac_compile) 2>&5
4976 ac_status=$?
4977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4978 (exit $ac_status); }; then
4979 case `/usr/bin/file conftest.o` in
4980 *32-bit*)
4981 case $host in
4982 x86_64-*linux*)
4983 LD="${LD-ld} -m elf_i386"
4984 ;;
4985 ppc64-*linux*|powerpc64-*linux*)
4986 LD="${LD-ld} -m elf32ppclinux"
4987 ;;
4988 s390x-*linux*)
4989 LD="${LD-ld} -m elf_s390"
4990 ;;
4991 sparc64-*linux*)
4992 LD="${LD-ld} -m elf32_sparc"
4993 ;;
4994 esac
4995 ;;
4996 *64-bit*)
4997 case $host in
4998 x86_64-*linux*)
4999 LD="${LD-ld} -m elf_x86_64"
5000 ;;
5001 ppc*-*linux*|powerpc*-*linux*)
5002 LD="${LD-ld} -m elf64ppc"
5003 ;;
5004 s390*-*linux*)
5005 LD="${LD-ld} -m elf64_s390"
5006 ;;
5007 sparc*-*linux*)
5008 LD="${LD-ld} -m elf64_sparc"
5009 ;;
5010 esac
5011 ;;
5012 esac
5013 fi
5014 rm -rf conftest*
5015 ;;
5016
5017*-*-sco3.2v5*)
5018 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5019 SAVE_CFLAGS="$CFLAGS"
5020 CFLAGS="$CFLAGS -belf"
64ff59ba 5021 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5022echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
d9898ee8 5023if test "${lt_cv_cc_needs_belf+set}" = set; then
5024 echo $ECHO_N "(cached) $ECHO_C" >&6
5025else
5026 ac_ext=c
5027ac_cpp='$CPP $CPPFLAGS'
5028ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5029ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5030ac_compiler_gnu=$ac_cv_c_compiler_gnu
5031
5032 cat >conftest.$ac_ext <<_ACEOF
5033/* confdefs.h. */
5034_ACEOF
5035cat confdefs.h >>conftest.$ac_ext
5036cat >>conftest.$ac_ext <<_ACEOF
5037/* end confdefs.h. */
5038
5039int
5040main ()
5041{
5042
5043 ;
5044 return 0;
5045}
5046_ACEOF
5047rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 5048if { (ac_try="$ac_link"
5049case "(($ac_try" in
5050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5051 *) ac_try_echo=$ac_try;;
5052esac
5053eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5054 (eval "$ac_link") 2>conftest.er1
d9898ee8 5055 ac_status=$?
5056 grep -v '^ *+' conftest.er1 >conftest.err
5057 rm -f conftest.er1
5058 cat conftest.err >&5
5059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 5060 (exit $ac_status); } && {
5061 test -z "$ac_c_werror_flag" ||
5062 test ! -s conftest.err
5063 } && test -s conftest$ac_exeext &&
5064 $as_test_x conftest$ac_exeext; then
d9898ee8 5065 lt_cv_cc_needs_belf=yes
5066else
5067 echo "$as_me: failed program was:" >&5
5068sed 's/^/| /' conftest.$ac_ext >&5
5069
64ff59ba 5070 lt_cv_cc_needs_belf=no
d9898ee8 5071fi
64ff59ba 5072
5073rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 5074 conftest$ac_exeext conftest.$ac_ext
5075 ac_ext=c
5076ac_cpp='$CPP $CPPFLAGS'
5077ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5078ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5079ac_compiler_gnu=$ac_cv_c_compiler_gnu
5080
5081fi
64ff59ba 5082{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5083echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
d9898ee8 5084 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5085 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5086 CFLAGS="$SAVE_CFLAGS"
5087 fi
5088 ;;
5089sparc*-*solaris*)
5090 # Find out which ABI we are using.
5091 echo 'int i;' > conftest.$ac_ext
5092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5093 (eval $ac_compile) 2>&5
5094 ac_status=$?
5095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5096 (exit $ac_status); }; then
5097 case `/usr/bin/file conftest.o` in
5098 *64-bit*)
5099 case $lt_cv_prog_gnu_ld in
5100 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5101 *) LD="${LD-ld} -64" ;;
5102 esac
5103 ;;
5104 esac
5105 fi
5106 rm -rf conftest*
5107 ;;
5108
5109
5110esac
5111
5112need_locks="$enable_libtool_lock"
5113
5114
5115
64ff59ba 5116{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5117echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
d9898ee8 5118if test "${ac_cv_header_stdc+set}" = set; then
5119 echo $ECHO_N "(cached) $ECHO_C" >&6
5120else
5121 cat >conftest.$ac_ext <<_ACEOF
5122/* confdefs.h. */
5123_ACEOF
5124cat confdefs.h >>conftest.$ac_ext
5125cat >>conftest.$ac_ext <<_ACEOF
5126/* end confdefs.h. */
5127#include <stdlib.h>
5128#include <stdarg.h>
5129#include <string.h>
5130#include <float.h>
5131
5132int
5133main ()
5134{
5135
5136 ;
5137 return 0;
5138}
5139_ACEOF
5140rm -f conftest.$ac_objext
64ff59ba 5141if { (ac_try="$ac_compile"
5142case "(($ac_try" in
5143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5144 *) ac_try_echo=$ac_try;;
5145esac
5146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5147 (eval "$ac_compile") 2>conftest.er1
d9898ee8 5148 ac_status=$?
5149 grep -v '^ *+' conftest.er1 >conftest.err
5150 rm -f conftest.er1
5151 cat conftest.err >&5
5152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 5153 (exit $ac_status); } && {
5154 test -z "$ac_c_werror_flag" ||
5155 test ! -s conftest.err
5156 } && test -s conftest.$ac_objext; then
d9898ee8 5157 ac_cv_header_stdc=yes
5158else
5159 echo "$as_me: failed program was:" >&5
5160sed 's/^/| /' conftest.$ac_ext >&5
5161
64ff59ba 5162 ac_cv_header_stdc=no
d9898ee8 5163fi
64ff59ba 5164
5165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 5166
5167if test $ac_cv_header_stdc = yes; then
5168 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5169 cat >conftest.$ac_ext <<_ACEOF
5170/* confdefs.h. */
5171_ACEOF
5172cat confdefs.h >>conftest.$ac_ext
5173cat >>conftest.$ac_ext <<_ACEOF
5174/* end confdefs.h. */
5175#include <string.h>
5176
5177_ACEOF
5178if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5179 $EGREP "memchr" >/dev/null 2>&1; then
5180 :
5181else
5182 ac_cv_header_stdc=no
5183fi
5184rm -f conftest*
5185
5186fi
5187
5188if test $ac_cv_header_stdc = yes; then
5189 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5190 cat >conftest.$ac_ext <<_ACEOF
5191/* confdefs.h. */
5192_ACEOF
5193cat confdefs.h >>conftest.$ac_ext
5194cat >>conftest.$ac_ext <<_ACEOF
5195/* end confdefs.h. */
5196#include <stdlib.h>
5197
5198_ACEOF
5199if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5200 $EGREP "free" >/dev/null 2>&1; then
5201 :
5202else
5203 ac_cv_header_stdc=no
5204fi
5205rm -f conftest*
5206
5207fi
5208
5209if test $ac_cv_header_stdc = yes; then
5210 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5211 if test "$cross_compiling" = yes; then
5212 :
5213else
5214 cat >conftest.$ac_ext <<_ACEOF
5215/* confdefs.h. */
5216_ACEOF
5217cat confdefs.h >>conftest.$ac_ext
5218cat >>conftest.$ac_ext <<_ACEOF
5219/* end confdefs.h. */
5220#include <ctype.h>
64ff59ba 5221#include <stdlib.h>
d9898ee8 5222#if ((' ' & 0x0FF) == 0x020)
5223# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5224# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5225#else
5226# define ISLOWER(c) \
5227 (('a' <= (c) && (c) <= 'i') \
5228 || ('j' <= (c) && (c) <= 'r') \
5229 || ('s' <= (c) && (c) <= 'z'))
5230# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5231#endif
5232
5233#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5234int
5235main ()
5236{
5237 int i;
5238 for (i = 0; i < 256; i++)
5239 if (XOR (islower (i), ISLOWER (i))
5240 || toupper (i) != TOUPPER (i))
64ff59ba 5241 return 2;
5242 return 0;
d9898ee8 5243}
5244_ACEOF
5245rm -f conftest$ac_exeext
64ff59ba 5246if { (ac_try="$ac_link"
5247case "(($ac_try" in
5248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5249 *) ac_try_echo=$ac_try;;
5250esac
5251eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5252 (eval "$ac_link") 2>&5
d9898ee8 5253 ac_status=$?
5254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5255 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
64ff59ba 5256 { (case "(($ac_try" in
5257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5258 *) ac_try_echo=$ac_try;;
5259esac
5260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5261 (eval "$ac_try") 2>&5
d9898ee8 5262 ac_status=$?
5263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5264 (exit $ac_status); }; }; then
5265 :
5266else
5267 echo "$as_me: program exited with status $ac_status" >&5
5268echo "$as_me: failed program was:" >&5
5269sed 's/^/| /' conftest.$ac_ext >&5
5270
5271( exit $ac_status )
5272ac_cv_header_stdc=no
5273fi
64ff59ba 5274rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d9898ee8 5275fi
64ff59ba 5276
5277
d9898ee8 5278fi
5279fi
64ff59ba 5280{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5281echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
d9898ee8 5282if test $ac_cv_header_stdc = yes; then
5283
5284cat >>confdefs.h <<\_ACEOF
5285#define STDC_HEADERS 1
5286_ACEOF
5287
5288fi
5289
5290# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5301 inttypes.h stdint.h unistd.h
5302do
5303as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
64ff59ba 5304{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5305echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5306if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 5307 echo $ECHO_N "(cached) $ECHO_C" >&6
5308else
5309 cat >conftest.$ac_ext <<_ACEOF
5310/* confdefs.h. */
5311_ACEOF
5312cat confdefs.h >>conftest.$ac_ext
5313cat >>conftest.$ac_ext <<_ACEOF
5314/* end confdefs.h. */
5315$ac_includes_default
5316
5317#include <$ac_header>
5318_ACEOF
5319rm -f conftest.$ac_objext
64ff59ba 5320if { (ac_try="$ac_compile"
5321case "(($ac_try" in
5322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5323 *) ac_try_echo=$ac_try;;
5324esac
5325eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5326 (eval "$ac_compile") 2>conftest.er1
d9898ee8 5327 ac_status=$?
5328 grep -v '^ *+' conftest.er1 >conftest.err
5329 rm -f conftest.er1
5330 cat conftest.err >&5
5331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 5332 (exit $ac_status); } && {
5333 test -z "$ac_c_werror_flag" ||
5334 test ! -s conftest.err
5335 } && test -s conftest.$ac_objext; then
d9898ee8 5336 eval "$as_ac_Header=yes"
5337else
5338 echo "$as_me: failed program was:" >&5
5339sed 's/^/| /' conftest.$ac_ext >&5
5340
64ff59ba 5341 eval "$as_ac_Header=no"
d9898ee8 5342fi
64ff59ba 5343
5344rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 5345fi
64ff59ba 5346ac_res=`eval echo '${'$as_ac_Header'}'`
5347 { echo "$as_me:$LINENO: result: $ac_res" >&5
5348echo "${ECHO_T}$ac_res" >&6; }
d9898ee8 5349if test `eval echo '${'$as_ac_Header'}'` = yes; then
5350 cat >>confdefs.h <<_ACEOF
5351#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5352_ACEOF
5353
5354fi
5355
5356done
5357
5358
5359
5360for ac_header in dlfcn.h
5361do
5362as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
64ff59ba 5363if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5364 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5365echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5366if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 5367 echo $ECHO_N "(cached) $ECHO_C" >&6
5368fi
64ff59ba 5369ac_res=`eval echo '${'$as_ac_Header'}'`
5370 { echo "$as_me:$LINENO: result: $ac_res" >&5
5371echo "${ECHO_T}$ac_res" >&6; }
d9898ee8 5372else
5373 # Is the header compilable?
64ff59ba 5374{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5375echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
d9898ee8 5376cat >conftest.$ac_ext <<_ACEOF
5377/* confdefs.h. */
5378_ACEOF
5379cat confdefs.h >>conftest.$ac_ext
5380cat >>conftest.$ac_ext <<_ACEOF
5381/* end confdefs.h. */
5382$ac_includes_default
5383#include <$ac_header>
5384_ACEOF
5385rm -f conftest.$ac_objext
64ff59ba 5386if { (ac_try="$ac_compile"
5387case "(($ac_try" in
5388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5389 *) ac_try_echo=$ac_try;;
5390esac
5391eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5392 (eval "$ac_compile") 2>conftest.er1
d9898ee8 5393 ac_status=$?
5394 grep -v '^ *+' conftest.er1 >conftest.err
5395 rm -f conftest.er1
5396 cat conftest.err >&5
5397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 5398 (exit $ac_status); } && {
5399 test -z "$ac_c_werror_flag" ||
5400 test ! -s conftest.err
5401 } && test -s conftest.$ac_objext; then
d9898ee8 5402 ac_header_compiler=yes
5403else
5404 echo "$as_me: failed program was:" >&5
5405sed 's/^/| /' conftest.$ac_ext >&5
5406
64ff59ba 5407 ac_header_compiler=no
d9898ee8 5408fi
64ff59ba 5409
5410rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5411{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5412echo "${ECHO_T}$ac_header_compiler" >&6; }
d9898ee8 5413
5414# Is the header present?
64ff59ba 5415{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5416echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
d9898ee8 5417cat >conftest.$ac_ext <<_ACEOF
5418/* confdefs.h. */
5419_ACEOF
5420cat confdefs.h >>conftest.$ac_ext
5421cat >>conftest.$ac_ext <<_ACEOF
5422/* end confdefs.h. */
5423#include <$ac_header>
5424_ACEOF
64ff59ba 5425if { (ac_try="$ac_cpp conftest.$ac_ext"
5426case "(($ac_try" in
5427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5428 *) ac_try_echo=$ac_try;;
5429esac
5430eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5431 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 5432 ac_status=$?
5433 grep -v '^ *+' conftest.er1 >conftest.err
5434 rm -f conftest.er1
5435 cat conftest.err >&5
5436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 5437 (exit $ac_status); } >/dev/null && {
5438 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5439 test ! -s conftest.err
5440 }; then
d9898ee8 5441 ac_header_preproc=yes
5442else
5443 echo "$as_me: failed program was:" >&5
5444sed 's/^/| /' conftest.$ac_ext >&5
5445
5446 ac_header_preproc=no
5447fi
64ff59ba 5448
d9898ee8 5449rm -f conftest.err conftest.$ac_ext
64ff59ba 5450{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5451echo "${ECHO_T}$ac_header_preproc" >&6; }
d9898ee8 5452
5453# So? What about this header?
5454case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5455 yes:no: )
5456 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5457echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5458 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5459echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5460 ac_header_preproc=yes
5461 ;;
5462 no:yes:* )
5463 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5464echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5465 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5466echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5467 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5468echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5469 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5470echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5471 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5472echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5473 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5474echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
64ff59ba 5475 ( cat <<\_ASBOX
d9898ee8 5476## -------------------------------------------------- ##
5477## Report this to courier-users@lists.sourceforge.net ##
5478## -------------------------------------------------- ##
5479_ASBOX
64ff59ba 5480 ) | sed "s/^/$as_me: WARNING: /" >&2
d9898ee8 5481 ;;
5482esac
64ff59ba 5483{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5484echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5485if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 5486 echo $ECHO_N "(cached) $ECHO_C" >&6
5487else
5488 eval "$as_ac_Header=\$ac_header_preproc"
5489fi
64ff59ba 5490ac_res=`eval echo '${'$as_ac_Header'}'`
5491 { echo "$as_me:$LINENO: result: $ac_res" >&5
5492echo "${ECHO_T}$ac_res" >&6; }
d9898ee8 5493
5494fi
5495if test `eval echo '${'$as_ac_Header'}'` = yes; then
5496 cat >>confdefs.h <<_ACEOF
5497#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5498_ACEOF
5499
5500fi
5501
5502done
5503
64ff59ba 5504ac_ext=cpp
d9898ee8 5505ac_cpp='$CXXCPP $CPPFLAGS'
5506ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5507ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5508ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
64ff59ba 5509if test -z "$CXX"; then
5510 if test -n "$CCC"; then
5511 CXX=$CCC
5512 else
5513 if test -n "$ac_tool_prefix"; then
5514 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
d9898ee8 5515 do
5516 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5517set dummy $ac_tool_prefix$ac_prog; ac_word=$2
64ff59ba 5518{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5519echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 5520if test "${ac_cv_prog_CXX+set}" = set; then
5521 echo $ECHO_N "(cached) $ECHO_C" >&6
5522else
5523 if test -n "$CXX"; then
5524 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5525else
5526as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5527for as_dir in $PATH
5528do
5529 IFS=$as_save_IFS
5530 test -z "$as_dir" && as_dir=.
5531 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 5532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 5533 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5534 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5535 break 2
5536 fi
5537done
5538done
64ff59ba 5539IFS=$as_save_IFS
d9898ee8 5540
5541fi
5542fi
5543CXX=$ac_cv_prog_CXX
5544if test -n "$CXX"; then
64ff59ba 5545 { echo "$as_me:$LINENO: result: $CXX" >&5
5546echo "${ECHO_T}$CXX" >&6; }
d9898ee8 5547else
64ff59ba 5548 { echo "$as_me:$LINENO: result: no" >&5
5549echo "${ECHO_T}no" >&6; }
d9898ee8 5550fi
5551
64ff59ba 5552
d9898ee8 5553 test -n "$CXX" && break
5554 done
5555fi
5556if test -z "$CXX"; then
5557 ac_ct_CXX=$CXX
64ff59ba 5558 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
d9898ee8 5559do
5560 # Extract the first word of "$ac_prog", so it can be a program name with args.
5561set dummy $ac_prog; ac_word=$2
64ff59ba 5562{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5563echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 5564if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5565 echo $ECHO_N "(cached) $ECHO_C" >&6
5566else
5567 if test -n "$ac_ct_CXX"; then
5568 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5569else
5570as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5571for as_dir in $PATH
5572do
5573 IFS=$as_save_IFS
5574 test -z "$as_dir" && as_dir=.
5575 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 5576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 5577 ac_cv_prog_ac_ct_CXX="$ac_prog"
5578 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5579 break 2
5580 fi
5581done
5582done
64ff59ba 5583IFS=$as_save_IFS
d9898ee8 5584
5585fi
5586fi
5587ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5588if test -n "$ac_ct_CXX"; then
64ff59ba 5589 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5590echo "${ECHO_T}$ac_ct_CXX" >&6; }
d9898ee8 5591else
64ff59ba 5592 { echo "$as_me:$LINENO: result: no" >&5
5593echo "${ECHO_T}no" >&6; }
d9898ee8 5594fi
5595
64ff59ba 5596
d9898ee8 5597 test -n "$ac_ct_CXX" && break
5598done
d9898ee8 5599
64ff59ba 5600 if test "x$ac_ct_CXX" = x; then
5601 CXX="g++"
5602 else
5603 case $cross_compiling:$ac_tool_warned in
5604yes:)
5605{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5606whose name does not start with the host triplet. If you think this
5607configuration is useful to you, please write to autoconf@gnu.org." >&5
5608echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5609whose name does not start with the host triplet. If you think this
5610configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5611ac_tool_warned=yes ;;
5612esac
5613 CXX=$ac_ct_CXX
5614 fi
d9898ee8 5615fi
5616
64ff59ba 5617 fi
5618fi
d9898ee8 5619# Provide some information about the compiler.
64ff59ba 5620echo "$as_me:$LINENO: checking for C++ compiler version" >&5
d9898ee8 5621ac_compiler=`set X $ac_compile; echo $2`
64ff59ba 5622{ (ac_try="$ac_compiler --version >&5"
5623case "(($ac_try" in
5624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5625 *) ac_try_echo=$ac_try;;
5626esac
5627eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5628 (eval "$ac_compiler --version >&5") 2>&5
d9898ee8 5629 ac_status=$?
5630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5631 (exit $ac_status); }
64ff59ba 5632{ (ac_try="$ac_compiler -v >&5"
5633case "(($ac_try" in
5634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5635 *) ac_try_echo=$ac_try;;
5636esac
5637eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5638 (eval "$ac_compiler -v >&5") 2>&5
d9898ee8 5639 ac_status=$?
5640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5641 (exit $ac_status); }
64ff59ba 5642{ (ac_try="$ac_compiler -V >&5"
5643case "(($ac_try" in
5644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5645 *) ac_try_echo=$ac_try;;
5646esac
5647eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5648 (eval "$ac_compiler -V >&5") 2>&5
d9898ee8 5649 ac_status=$?
5650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5651 (exit $ac_status); }
5652
64ff59ba 5653{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5654echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
d9898ee8 5655if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5656 echo $ECHO_N "(cached) $ECHO_C" >&6
5657else
5658 cat >conftest.$ac_ext <<_ACEOF
5659/* confdefs.h. */
5660_ACEOF
5661cat confdefs.h >>conftest.$ac_ext
5662cat >>conftest.$ac_ext <<_ACEOF
5663/* end confdefs.h. */
5664
5665int
5666main ()
5667{
5668#ifndef __GNUC__
5669 choke me
5670#endif
5671
5672 ;
5673 return 0;
5674}
5675_ACEOF
5676rm -f conftest.$ac_objext
64ff59ba 5677if { (ac_try="$ac_compile"
5678case "(($ac_try" in
5679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5680 *) ac_try_echo=$ac_try;;
5681esac
5682eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5683 (eval "$ac_compile") 2>conftest.er1
d9898ee8 5684 ac_status=$?
5685 grep -v '^ *+' conftest.er1 >conftest.err
5686 rm -f conftest.er1
5687 cat conftest.err >&5
5688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 5689 (exit $ac_status); } && {
5690 test -z "$ac_cxx_werror_flag" ||
5691 test ! -s conftest.err
5692 } && test -s conftest.$ac_objext; then
d9898ee8 5693 ac_compiler_gnu=yes
5694else
5695 echo "$as_me: failed program was:" >&5
5696sed 's/^/| /' conftest.$ac_ext >&5
5697
64ff59ba 5698 ac_compiler_gnu=no
d9898ee8 5699fi
64ff59ba 5700
5701rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 5702ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5703
5704fi
64ff59ba 5705{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5706echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
d9898ee8 5707GXX=`test $ac_compiler_gnu = yes && echo yes`
5708ac_test_CXXFLAGS=${CXXFLAGS+set}
5709ac_save_CXXFLAGS=$CXXFLAGS
64ff59ba 5710{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5711echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
d9898ee8 5712if test "${ac_cv_prog_cxx_g+set}" = set; then
5713 echo $ECHO_N "(cached) $ECHO_C" >&6
5714else
64ff59ba 5715 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5716 ac_cxx_werror_flag=yes
5717 ac_cv_prog_cxx_g=no
5718 CXXFLAGS="-g"
5719 cat >conftest.$ac_ext <<_ACEOF
d9898ee8 5720/* confdefs.h. */
5721_ACEOF
5722cat confdefs.h >>conftest.$ac_ext
5723cat >>conftest.$ac_ext <<_ACEOF
5724/* end confdefs.h. */
5725
5726int
5727main ()
5728{
5729
5730 ;
5731 return 0;
5732}
5733_ACEOF
5734rm -f conftest.$ac_objext
64ff59ba 5735if { (ac_try="$ac_compile"
5736case "(($ac_try" in
5737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5738 *) ac_try_echo=$ac_try;;
5739esac
5740eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5741 (eval "$ac_compile") 2>conftest.er1
d9898ee8 5742 ac_status=$?
5743 grep -v '^ *+' conftest.er1 >conftest.err
5744 rm -f conftest.er1
5745 cat conftest.err >&5
5746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 5747 (exit $ac_status); } && {
5748 test -z "$ac_cxx_werror_flag" ||
5749 test ! -s conftest.err
5750 } && test -s conftest.$ac_objext; then
d9898ee8 5751 ac_cv_prog_cxx_g=yes
5752else
5753 echo "$as_me: failed program was:" >&5
5754sed 's/^/| /' conftest.$ac_ext >&5
5755
64ff59ba 5756 CXXFLAGS=""
5757 cat >conftest.$ac_ext <<_ACEOF
d9898ee8 5758/* confdefs.h. */
5759_ACEOF
5760cat confdefs.h >>conftest.$ac_ext
5761cat >>conftest.$ac_ext <<_ACEOF
5762/* end confdefs.h. */
64ff59ba 5763
d9898ee8 5764int
5765main ()
5766{
64ff59ba 5767
d9898ee8 5768 ;
5769 return 0;
5770}
5771_ACEOF
5772rm -f conftest.$ac_objext
64ff59ba 5773if { (ac_try="$ac_compile"
5774case "(($ac_try" in
5775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5776 *) ac_try_echo=$ac_try;;
5777esac
5778eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5779 (eval "$ac_compile") 2>conftest.er1
d9898ee8 5780 ac_status=$?
5781 grep -v '^ *+' conftest.er1 >conftest.err
5782 rm -f conftest.er1
5783 cat conftest.err >&5
5784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 5785 (exit $ac_status); } && {
5786 test -z "$ac_cxx_werror_flag" ||
5787 test ! -s conftest.err
5788 } && test -s conftest.$ac_objext; then
d9898ee8 5789 :
5790else
5791 echo "$as_me: failed program was:" >&5
5792sed 's/^/| /' conftest.$ac_ext >&5
5793
64ff59ba 5794 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5795 CXXFLAGS="-g"
5796 cat >conftest.$ac_ext <<_ACEOF
d9898ee8 5797/* confdefs.h. */
5798_ACEOF
5799cat confdefs.h >>conftest.$ac_ext
5800cat >>conftest.$ac_ext <<_ACEOF
5801/* end confdefs.h. */
64ff59ba 5802
d9898ee8 5803int
5804main ()
5805{
64ff59ba 5806
d9898ee8 5807 ;
5808 return 0;
5809}
5810_ACEOF
5811rm -f conftest.$ac_objext
64ff59ba 5812if { (ac_try="$ac_compile"
5813case "(($ac_try" in
5814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5815 *) ac_try_echo=$ac_try;;
5816esac
5817eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5818 (eval "$ac_compile") 2>conftest.er1
d9898ee8 5819 ac_status=$?
5820 grep -v '^ *+' conftest.er1 >conftest.err
5821 rm -f conftest.er1
5822 cat conftest.err >&5
5823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 5824 (exit $ac_status); } && {
5825 test -z "$ac_cxx_werror_flag" ||
5826 test ! -s conftest.err
5827 } && test -s conftest.$ac_objext; then
5828 ac_cv_prog_cxx_g=yes
d9898ee8 5829else
5830 echo "$as_me: failed program was:" >&5
5831sed 's/^/| /' conftest.$ac_ext >&5
5832
64ff59ba 5833
d9898ee8 5834fi
64ff59ba 5835
5836rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 5837fi
5838
64ff59ba 5839rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5840fi
5841
5842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5843 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5844fi
5845{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5846echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5847if test "$ac_test_CXXFLAGS" = set; then
5848 CXXFLAGS=$ac_save_CXXFLAGS
5849elif test $ac_cv_prog_cxx_g = yes; then
5850 if test "$GXX" = yes; then
5851 CXXFLAGS="-g -O2"
5852 else
5853 CXXFLAGS="-g"
5854 fi
5855else
5856 if test "$GXX" = yes; then
5857 CXXFLAGS="-O2"
5858 else
5859 CXXFLAGS=
5860 fi
5861fi
5862ac_ext=cpp
d9898ee8 5863ac_cpp='$CXXCPP $CPPFLAGS'
5864ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5865ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5866ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5867
5868depcc="$CXX" am_compiler_list=
5869
64ff59ba 5870{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5871echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
d9898ee8 5872if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5873 echo $ECHO_N "(cached) $ECHO_C" >&6
5874else
5875 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5876 # We make a subdir and do the tests there. Otherwise we can end up
5877 # making bogus files that we don't know about and never remove. For
5878 # instance it was reported that on HP-UX the gcc test will end up
5879 # making a dummy file named `D' -- because `-MD' means `put the output
5880 # in D'.
5881 mkdir conftest.dir
5882 # Copy depcomp to subdir because otherwise we won't find it if we're
5883 # using a relative directory.
5884 cp "$am_depcomp" conftest.dir
5885 cd conftest.dir
5886 # We will build objects and dependencies in a subdirectory because
5887 # it helps to detect inapplicable dependency modes. For instance
5888 # both Tru64's cc and ICC support -MD to output dependencies as a
5889 # side effect of compilation, but ICC will put the dependencies in
5890 # the current directory while Tru64 will put them in the object
5891 # directory.
5892 mkdir sub
5893
5894 am_cv_CXX_dependencies_compiler_type=none
5895 if test "$am_compiler_list" = ""; then
5896 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5897 fi
5898 for depmode in $am_compiler_list; do
5899 # Setup a source with many dependencies, because some compilers
5900 # like to wrap large dependency lists on column 80 (with \), and
5901 # we should not choose a depcomp mode which is confused by this.
5902 #
5903 # We need to recreate these files for each test, as the compiler may
5904 # overwrite some of them when testing with obscure command lines.
5905 # This happens at least with the AIX C compiler.
5906 : > sub/conftest.c
5907 for i in 1 2 3 4 5 6; do
5908 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5909 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5910 # Solaris 8's {/usr,}/bin/sh.
5911 touch sub/conftst$i.h
5912 done
5913 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5914
5915 case $depmode in
5916 nosideeffect)
5917 # after this tag, mechanisms are not by side-effect, so they'll
5918 # only be used when explicitly requested
5919 if test "x$enable_dependency_tracking" = xyes; then
5920 continue
5921 else
5922 break
5923 fi
5924 ;;
5925 none) break ;;
5926 esac
5927 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5928 # mode. It turns out that the SunPro C++ compiler does not properly
5929 # handle `-M -o', and we need to detect this.
5930 if depmode=$depmode \
5931 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5932 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5933 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5934 >/dev/null 2>conftest.err &&
64ff59ba 5935 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
d9898ee8 5936 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5937 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5938 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5939 # icc doesn't choke on unknown options, it will just issue warnings
5940 # or remarks (even with -Werror). So we grep stderr for any message
5941 # that says an option was ignored or not supported.
5942 # When given -MP, icc 7.0 and 7.1 complain thusly:
5943 # icc: Command line warning: ignoring option '-M'; no argument required
5944 # The diagnosis changed in icc 8.0:
5945 # icc: Command line remark: option '-MP' not supported
5946 if (grep 'ignoring option' conftest.err ||
5947 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5948 am_cv_CXX_dependencies_compiler_type=$depmode
5949 break
5950 fi
5951 fi
5952 done
5953
5954 cd ..
5955 rm -rf conftest.dir
5956else
5957 am_cv_CXX_dependencies_compiler_type=none
5958fi
5959
5960fi
64ff59ba 5961{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5962echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
d9898ee8 5963CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5964
64ff59ba 5965 if
d9898ee8 5966 test "x$enable_dependency_tracking" != xno \
5967 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5968 am__fastdepCXX_TRUE=
5969 am__fastdepCXX_FALSE='#'
5970else
5971 am__fastdepCXX_TRUE='#'
5972 am__fastdepCXX_FALSE=
5973fi
5974
5975
5976
5977
5978if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5979 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5980 (test "X$CXX" != "Xg++"))) ; then
64ff59ba 5981 ac_ext=cpp
d9898ee8 5982ac_cpp='$CXXCPP $CPPFLAGS'
5983ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5984ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5985ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
64ff59ba 5986{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5987echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
d9898ee8 5988if test -z "$CXXCPP"; then
5989 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5990 echo $ECHO_N "(cached) $ECHO_C" >&6
5991else
5992 # Double quotes because CXXCPP needs to be expanded
5993 for CXXCPP in "$CXX -E" "/lib/cpp"
5994 do
5995 ac_preproc_ok=false
5996for ac_cxx_preproc_warn_flag in '' yes
5997do
5998 # Use a header file that comes with gcc, so configuring glibc
5999 # with a fresh cross-compiler works.
6000 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6001 # <limits.h> exists even on freestanding compilers.
6002 # On the NeXT, cc -E runs the code through the compiler's parser,
6003 # not just through cpp. "Syntax error" is here to catch this case.
6004 cat >conftest.$ac_ext <<_ACEOF
6005/* confdefs.h. */
6006_ACEOF
6007cat confdefs.h >>conftest.$ac_ext
6008cat >>conftest.$ac_ext <<_ACEOF
6009/* end confdefs.h. */
6010#ifdef __STDC__
6011# include <limits.h>
6012#else
6013# include <assert.h>
6014#endif
6015 Syntax error
6016_ACEOF
64ff59ba 6017if { (ac_try="$ac_cpp conftest.$ac_ext"
6018case "(($ac_try" in
6019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6020 *) ac_try_echo=$ac_try;;
6021esac
6022eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6023 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 6024 ac_status=$?
6025 grep -v '^ *+' conftest.er1 >conftest.err
6026 rm -f conftest.er1
6027 cat conftest.err >&5
6028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 6029 (exit $ac_status); } >/dev/null && {
6030 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6031 test ! -s conftest.err
6032 }; then
d9898ee8 6033 :
6034else
6035 echo "$as_me: failed program was:" >&5
6036sed 's/^/| /' conftest.$ac_ext >&5
6037
6038 # Broken: fails on valid input.
6039continue
6040fi
64ff59ba 6041
d9898ee8 6042rm -f conftest.err conftest.$ac_ext
6043
64ff59ba 6044 # OK, works on sane cases. Now check whether nonexistent headers
d9898ee8 6045 # can be detected and how.
6046 cat >conftest.$ac_ext <<_ACEOF
6047/* confdefs.h. */
6048_ACEOF
6049cat confdefs.h >>conftest.$ac_ext
6050cat >>conftest.$ac_ext <<_ACEOF
6051/* end confdefs.h. */
6052#include <ac_nonexistent.h>
6053_ACEOF
64ff59ba 6054if { (ac_try="$ac_cpp conftest.$ac_ext"
6055case "(($ac_try" in
6056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6057 *) ac_try_echo=$ac_try;;
6058esac
6059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6060 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 6061 ac_status=$?
6062 grep -v '^ *+' conftest.er1 >conftest.err
6063 rm -f conftest.er1
6064 cat conftest.err >&5
6065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 6066 (exit $ac_status); } >/dev/null && {
6067 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6068 test ! -s conftest.err
6069 }; then
d9898ee8 6070 # Broken: success on invalid input.
6071continue
6072else
6073 echo "$as_me: failed program was:" >&5
6074sed 's/^/| /' conftest.$ac_ext >&5
6075
6076 # Passes both tests.
6077ac_preproc_ok=:
6078break
6079fi
64ff59ba 6080
d9898ee8 6081rm -f conftest.err conftest.$ac_ext
6082
6083done
6084# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6085rm -f conftest.err conftest.$ac_ext
6086if $ac_preproc_ok; then
6087 break
6088fi
6089
6090 done
6091 ac_cv_prog_CXXCPP=$CXXCPP
6092
6093fi
6094 CXXCPP=$ac_cv_prog_CXXCPP
6095else
6096 ac_cv_prog_CXXCPP=$CXXCPP
6097fi
64ff59ba 6098{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
6099echo "${ECHO_T}$CXXCPP" >&6; }
d9898ee8 6100ac_preproc_ok=false
6101for ac_cxx_preproc_warn_flag in '' yes
6102do
6103 # Use a header file that comes with gcc, so configuring glibc
6104 # with a fresh cross-compiler works.
6105 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6106 # <limits.h> exists even on freestanding compilers.
6107 # On the NeXT, cc -E runs the code through the compiler's parser,
6108 # not just through cpp. "Syntax error" is here to catch this case.
6109 cat >conftest.$ac_ext <<_ACEOF
6110/* confdefs.h. */
6111_ACEOF
6112cat confdefs.h >>conftest.$ac_ext
6113cat >>conftest.$ac_ext <<_ACEOF
6114/* end confdefs.h. */
6115#ifdef __STDC__
6116# include <limits.h>
6117#else
6118# include <assert.h>
6119#endif
6120 Syntax error
6121_ACEOF
64ff59ba 6122if { (ac_try="$ac_cpp conftest.$ac_ext"
6123case "(($ac_try" in
6124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6125 *) ac_try_echo=$ac_try;;
6126esac
6127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6128 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 6129 ac_status=$?
6130 grep -v '^ *+' conftest.er1 >conftest.err
6131 rm -f conftest.er1
6132 cat conftest.err >&5
6133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 6134 (exit $ac_status); } >/dev/null && {
6135 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6136 test ! -s conftest.err
6137 }; then
d9898ee8 6138 :
6139else
6140 echo "$as_me: failed program was:" >&5
6141sed 's/^/| /' conftest.$ac_ext >&5
6142
6143 # Broken: fails on valid input.
6144continue
6145fi
64ff59ba 6146
d9898ee8 6147rm -f conftest.err conftest.$ac_ext
6148
64ff59ba 6149 # OK, works on sane cases. Now check whether nonexistent headers
d9898ee8 6150 # can be detected and how.
6151 cat >conftest.$ac_ext <<_ACEOF
6152/* confdefs.h. */
6153_ACEOF
6154cat confdefs.h >>conftest.$ac_ext
6155cat >>conftest.$ac_ext <<_ACEOF
6156/* end confdefs.h. */
6157#include <ac_nonexistent.h>
6158_ACEOF
64ff59ba 6159if { (ac_try="$ac_cpp conftest.$ac_ext"
6160case "(($ac_try" in
6161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6162 *) ac_try_echo=$ac_try;;
6163esac
6164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6165 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 6166 ac_status=$?
6167 grep -v '^ *+' conftest.er1 >conftest.err
6168 rm -f conftest.er1
6169 cat conftest.err >&5
6170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 6171 (exit $ac_status); } >/dev/null && {
6172 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6173 test ! -s conftest.err
6174 }; then
d9898ee8 6175 # Broken: success on invalid input.
6176continue
6177else
6178 echo "$as_me: failed program was:" >&5
6179sed 's/^/| /' conftest.$ac_ext >&5
6180
6181 # Passes both tests.
6182ac_preproc_ok=:
6183break
6184fi
64ff59ba 6185
d9898ee8 6186rm -f conftest.err conftest.$ac_ext
6187
6188done
6189# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6190rm -f conftest.err conftest.$ac_ext
6191if $ac_preproc_ok; then
6192 :
6193else
6194 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6195See \`config.log' for more details." >&5
6196echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6197See \`config.log' for more details." >&2;}
6198 { (exit 1); exit 1; }; }
6199fi
6200
64ff59ba 6201ac_ext=cpp
d9898ee8 6202ac_cpp='$CXXCPP $CPPFLAGS'
6203ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6204ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6205ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6206
6207fi
6208
6209
6210ac_ext=f
6211ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6212ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6213ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6214if test -n "$ac_tool_prefix"; then
64ff59ba 6215 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
d9898ee8 6216 do
6217 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6218set dummy $ac_tool_prefix$ac_prog; ac_word=$2
64ff59ba 6219{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6220echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 6221if test "${ac_cv_prog_F77+set}" = set; then
6222 echo $ECHO_N "(cached) $ECHO_C" >&6
6223else
6224 if test -n "$F77"; then
6225 ac_cv_prog_F77="$F77" # Let the user override the test.
6226else
6227as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6228for as_dir in $PATH
6229do
6230 IFS=$as_save_IFS
6231 test -z "$as_dir" && as_dir=.
6232 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 6233 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 6234 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6235 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6236 break 2
6237 fi
6238done
6239done
64ff59ba 6240IFS=$as_save_IFS
d9898ee8 6241
6242fi
6243fi
6244F77=$ac_cv_prog_F77
6245if test -n "$F77"; then
64ff59ba 6246 { echo "$as_me:$LINENO: result: $F77" >&5
6247echo "${ECHO_T}$F77" >&6; }
d9898ee8 6248else
64ff59ba 6249 { echo "$as_me:$LINENO: result: no" >&5
6250echo "${ECHO_T}no" >&6; }
d9898ee8 6251fi
6252
64ff59ba 6253
d9898ee8 6254 test -n "$F77" && break
6255 done
6256fi
6257if test -z "$F77"; then
6258 ac_ct_F77=$F77
64ff59ba 6259 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
d9898ee8 6260do
6261 # Extract the first word of "$ac_prog", so it can be a program name with args.
6262set dummy $ac_prog; ac_word=$2
64ff59ba 6263{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6264echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 6265if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6266 echo $ECHO_N "(cached) $ECHO_C" >&6
6267else
6268 if test -n "$ac_ct_F77"; then
6269 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6270else
6271as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6272for as_dir in $PATH
6273do
6274 IFS=$as_save_IFS
6275 test -z "$as_dir" && as_dir=.
6276 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 6277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 6278 ac_cv_prog_ac_ct_F77="$ac_prog"
6279 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6280 break 2
6281 fi
6282done
6283done
64ff59ba 6284IFS=$as_save_IFS
d9898ee8 6285
6286fi
6287fi
6288ac_ct_F77=$ac_cv_prog_ac_ct_F77
6289if test -n "$ac_ct_F77"; then
64ff59ba 6290 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6291echo "${ECHO_T}$ac_ct_F77" >&6; }
d9898ee8 6292else
64ff59ba 6293 { echo "$as_me:$LINENO: result: no" >&5
6294echo "${ECHO_T}no" >&6; }
d9898ee8 6295fi
6296
64ff59ba 6297
d9898ee8 6298 test -n "$ac_ct_F77" && break
6299done
6300
64ff59ba 6301 if test "x$ac_ct_F77" = x; then
6302 F77=""
6303 else
6304 case $cross_compiling:$ac_tool_warned in
6305yes:)
6306{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6307whose name does not start with the host triplet. If you think this
6308configuration is useful to you, please write to autoconf@gnu.org." >&5
6309echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6310whose name does not start with the host triplet. If you think this
6311configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6312ac_tool_warned=yes ;;
6313esac
6314 F77=$ac_ct_F77
6315 fi
d9898ee8 6316fi
6317
6318
6319# Provide some information about the compiler.
64ff59ba 6320echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
d9898ee8 6321ac_compiler=`set X $ac_compile; echo $2`
64ff59ba 6322{ (ac_try="$ac_compiler --version >&5"
6323case "(($ac_try" in
6324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6325 *) ac_try_echo=$ac_try;;
6326esac
6327eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6328 (eval "$ac_compiler --version >&5") 2>&5
d9898ee8 6329 ac_status=$?
6330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6331 (exit $ac_status); }
64ff59ba 6332{ (ac_try="$ac_compiler -v >&5"
6333case "(($ac_try" in
6334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6335 *) ac_try_echo=$ac_try;;
6336esac
6337eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6338 (eval "$ac_compiler -v >&5") 2>&5
d9898ee8 6339 ac_status=$?
6340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6341 (exit $ac_status); }
64ff59ba 6342{ (ac_try="$ac_compiler -V >&5"
6343case "(($ac_try" in
6344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6345 *) ac_try_echo=$ac_try;;
6346esac
6347eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6348 (eval "$ac_compiler -V >&5") 2>&5
d9898ee8 6349 ac_status=$?
6350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6351 (exit $ac_status); }
6352rm -f a.out
6353
6354# If we don't use `.F' as extension, the preprocessor is not run on the
6355# input file. (Note that this only needs to work for GNU compilers.)
6356ac_save_ext=$ac_ext
6357ac_ext=F
64ff59ba 6358{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6359echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
d9898ee8 6360if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6361 echo $ECHO_N "(cached) $ECHO_C" >&6
6362else
6363 cat >conftest.$ac_ext <<_ACEOF
6364 program main
6365#ifndef __GNUC__
6366 choke me
6367#endif
6368
6369 end
6370_ACEOF
6371rm -f conftest.$ac_objext
64ff59ba 6372if { (ac_try="$ac_compile"
6373case "(($ac_try" in
6374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6375 *) ac_try_echo=$ac_try;;
6376esac
6377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6378 (eval "$ac_compile") 2>conftest.er1
d9898ee8 6379 ac_status=$?
6380 grep -v '^ *+' conftest.er1 >conftest.err
6381 rm -f conftest.er1
6382 cat conftest.err >&5
6383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 6384 (exit $ac_status); } && {
6385 test -z "$ac_f77_werror_flag" ||
6386 test ! -s conftest.err
6387 } && test -s conftest.$ac_objext; then
d9898ee8 6388 ac_compiler_gnu=yes
6389else
6390 echo "$as_me: failed program was:" >&5
6391sed 's/^/| /' conftest.$ac_ext >&5
6392
64ff59ba 6393 ac_compiler_gnu=no
d9898ee8 6394fi
64ff59ba 6395
6396rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 6397ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6398
6399fi
64ff59ba 6400{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6401echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
d9898ee8 6402ac_ext=$ac_save_ext
6403ac_test_FFLAGS=${FFLAGS+set}
6404ac_save_FFLAGS=$FFLAGS
6405FFLAGS=
64ff59ba 6406{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6407echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
d9898ee8 6408if test "${ac_cv_prog_f77_g+set}" = set; then
6409 echo $ECHO_N "(cached) $ECHO_C" >&6
6410else
6411 FFLAGS=-g
6412cat >conftest.$ac_ext <<_ACEOF
6413 program main
6414
6415 end
6416_ACEOF
6417rm -f conftest.$ac_objext
64ff59ba 6418if { (ac_try="$ac_compile"
6419case "(($ac_try" in
6420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6421 *) ac_try_echo=$ac_try;;
6422esac
6423eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6424 (eval "$ac_compile") 2>conftest.er1
d9898ee8 6425 ac_status=$?
6426 grep -v '^ *+' conftest.er1 >conftest.err
6427 rm -f conftest.er1
6428 cat conftest.err >&5
6429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 6430 (exit $ac_status); } && {
6431 test -z "$ac_f77_werror_flag" ||
6432 test ! -s conftest.err
6433 } && test -s conftest.$ac_objext; then
d9898ee8 6434 ac_cv_prog_f77_g=yes
6435else
6436 echo "$as_me: failed program was:" >&5
6437sed 's/^/| /' conftest.$ac_ext >&5
6438
64ff59ba 6439 ac_cv_prog_f77_g=no
d9898ee8 6440fi
64ff59ba 6441
6442rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 6443
6444fi
64ff59ba 6445{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6446echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
d9898ee8 6447if test "$ac_test_FFLAGS" = set; then
6448 FFLAGS=$ac_save_FFLAGS
6449elif test $ac_cv_prog_f77_g = yes; then
6450 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6451 FFLAGS="-g -O2"
6452 else
6453 FFLAGS="-g"
6454 fi
6455else
6456 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6457 FFLAGS="-O2"
6458 else
6459 FFLAGS=
6460 fi
6461fi
6462
6463G77=`test $ac_compiler_gnu = yes && echo yes`
6464ac_ext=c
6465ac_cpp='$CPP $CPPFLAGS'
6466ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6467ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6468ac_compiler_gnu=$ac_cv_c_compiler_gnu
6469
6470
6471
6472# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6473
6474# find the maximum length of command line arguments
64ff59ba 6475{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6476echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
d9898ee8 6477if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6478 echo $ECHO_N "(cached) $ECHO_C" >&6
6479else
6480 i=0
6481 teststring="ABCD"
6482
6483 case $build_os in
6484 msdosdjgpp*)
6485 # On DJGPP, this test can blow up pretty badly due to problems in libc
6486 # (any single argument exceeding 2000 bytes causes a buffer overrun
6487 # during glob expansion). Even if it were fixed, the result of this
6488 # check would be larger than it should be.
6489 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6490 ;;
6491
6492 gnu*)
6493 # Under GNU Hurd, this test is not required because there is
6494 # no limit to the length of command line arguments.
6495 # Libtool will interpret -1 as no limit whatsoever
6496 lt_cv_sys_max_cmd_len=-1;
6497 ;;
6498
6499 cygwin* | mingw*)
6500 # On Win9x/ME, this test blows up -- it succeeds, but takes
6501 # about 5 minutes as the teststring grows exponentially.
6502 # Worse, since 9x/ME are not pre-emptively multitasking,
6503 # you end up with a "frozen" computer, even though with patience
6504 # the test eventually succeeds (with a max line length of 256k).
6505 # Instead, let's just punt: use the minimum linelength reported by
6506 # all of the supported platforms: 8192 (on NT/2K/XP).
6507 lt_cv_sys_max_cmd_len=8192;
6508 ;;
6509
6510 amigaos*)
6511 # On AmigaOS with pdksh, this test takes hours, literally.
6512 # So we just punt and use a minimum line length of 8192.
6513 lt_cv_sys_max_cmd_len=8192;
6514 ;;
6515
6516 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6517 # This has been around since 386BSD, at least. Likely further.
6518 if test -x /sbin/sysctl; then
6519 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6520 elif test -x /usr/sbin/sysctl; then
6521 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6522 else
6523 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6524 fi
6525 # And add a safety zone
6526 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6527 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6528 ;;
6529
6530 interix*)
6531 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6532 lt_cv_sys_max_cmd_len=196608
6533 ;;
6534
6535 osf*)
6536 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6537 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6538 # nice to cause kernel panics so lets avoid the loop below.
6539 # First set a reasonable default.
6540 lt_cv_sys_max_cmd_len=16384
6541 #
6542 if test -x /sbin/sysconfig; then
6543 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6544 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6545 esac
6546 fi
6547 ;;
6548 sco3.2v5*)
6549 lt_cv_sys_max_cmd_len=102400
6550 ;;
6551 sysv5* | sco5v6* | sysv4.2uw2*)
6552 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6553 if test -n "$kargmax"; then
6554 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6555 else
6556 lt_cv_sys_max_cmd_len=32768
6557 fi
6558 ;;
6559 *)
6560 # If test is not a shell built-in, we'll probably end up computing a
6561 # maximum length that is only half of the actual maximum length, but
6562 # we can't tell.
6563 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6564 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6565 = "XX$teststring") >/dev/null 2>&1 &&
6566 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6567 lt_cv_sys_max_cmd_len=$new_result &&
6568 test $i != 17 # 1/2 MB should be enough
6569 do
6570 i=`expr $i + 1`
6571 teststring=$teststring$teststring
6572 done
6573 teststring=
6574 # Add a significant safety factor because C++ compilers can tack on massive
6575 # amounts of additional arguments before passing them to the linker.
6576 # It appears as though 1/2 is a usable value.
6577 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6578 ;;
6579 esac
6580
6581fi
6582
6583if test -n $lt_cv_sys_max_cmd_len ; then
64ff59ba 6584 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6585echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
d9898ee8 6586else
64ff59ba 6587 { echo "$as_me:$LINENO: result: none" >&5
6588echo "${ECHO_T}none" >&6; }
d9898ee8 6589fi
6590
6591
6592
6593
6594# Check for command to grab the raw symbol name followed by C symbol from nm.
64ff59ba 6595{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6596echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
d9898ee8 6597if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6598 echo $ECHO_N "(cached) $ECHO_C" >&6
6599else
6600
6601# These are sane defaults that work on at least a few old systems.
6602# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6603
6604# Character class describing NM global symbol codes.
6605symcode='[BCDEGRST]'
6606
6607# Regexp to match symbols that can be accessed directly from C.
6608sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6609
6610# Transform an extracted symbol line into a proper C declaration
6611lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6612
6613# Transform an extracted symbol line into symbol name and symbol address
6614lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6615
6616# Define system-specific variables.
6617case $host_os in
6618aix*)
6619 symcode='[BCDT]'
6620 ;;
6621cygwin* | mingw* | pw32*)
6622 symcode='[ABCDGISTW]'
6623 ;;
6624hpux*) # Its linker distinguishes data from code symbols
6625 if test "$host_cpu" = ia64; then
6626 symcode='[ABCDEGRST]'
6627 fi
6628 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6629 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6630 ;;
6631linux*)
6632 if test "$host_cpu" = ia64; then
6633 symcode='[ABCDGIRSTW]'
6634 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6635 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6636 fi
6637 ;;
6638irix* | nonstopux*)
6639 symcode='[BCDEGRST]'
6640 ;;
6641osf*)
6642 symcode='[BCDEGQRST]'
6643 ;;
6644solaris*)
6645 symcode='[BDRT]'
6646 ;;
6647sco3.2v5*)
6648 symcode='[DT]'
6649 ;;
6650sysv4.2uw2*)
6651 symcode='[DT]'
6652 ;;
6653sysv5* | sco5v6* | unixware* | OpenUNIX*)
6654 symcode='[ABDT]'
6655 ;;
6656sysv4)
6657 symcode='[DFNSTU]'
6658 ;;
6659esac
6660
6661# Handle CRLF in mingw tool chain
6662opt_cr=
6663case $build_os in
6664mingw*)
6665 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6666 ;;
6667esac
6668
6669# If we're using GNU nm, then use its standard symbol codes.
6670case `$NM -V 2>&1` in
6671*GNU* | *'with BFD'*)
6672 symcode='[ABCDGIRSTW]' ;;
6673esac
6674
6675# Try without a prefix undercore, then with it.
6676for ac_symprfx in "" "_"; do
6677
6678 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6679 symxfrm="\\1 $ac_symprfx\\2 \\2"
6680
6681 # Write the raw and C identifiers.
6682 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6683
6684 # Check to see that the pipe works correctly.
6685 pipe_works=no
6686
6687 rm -f conftest*
6688 cat > conftest.$ac_ext <<EOF
6689#ifdef __cplusplus
6690extern "C" {
6691#endif
6692char nm_test_var;
6693void nm_test_func(){}
6694#ifdef __cplusplus
6695}
6696#endif
6697int main(){nm_test_var='a';nm_test_func();return(0);}
6698EOF
6699
6700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6701 (eval $ac_compile) 2>&5
6702 ac_status=$?
6703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6704 (exit $ac_status); }; then
6705 # Now try to grab the symbols.
6706 nlist=conftest.nm
6707 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6708 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6709 ac_status=$?
6710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6711 (exit $ac_status); } && test -s "$nlist"; then
6712 # Try sorting and uniquifying the output.
6713 if sort "$nlist" | uniq > "$nlist"T; then
6714 mv -f "$nlist"T "$nlist"
6715 else
6716 rm -f "$nlist"T
6717 fi
6718
6719 # Make sure that we snagged all the symbols we need.
6720 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6721 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6722 cat <<EOF > conftest.$ac_ext
6723#ifdef __cplusplus
6724extern "C" {
6725#endif
6726
6727EOF
6728 # Now generate the symbol file.
6729 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6730
6731 cat <<EOF >> conftest.$ac_ext
6732#if defined (__STDC__) && __STDC__
6733# define lt_ptr_t void *
6734#else
6735# define lt_ptr_t char *
6736# define const
6737#endif
6738
6739/* The mapping between symbol names and symbols. */
6740const struct {
6741 const char *name;
6742 lt_ptr_t address;
6743}
6744lt_preloaded_symbols[] =
6745{
6746EOF
6747 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6748 cat <<\EOF >> conftest.$ac_ext
6749 {0, (lt_ptr_t) 0}
6750};
6751
6752#ifdef __cplusplus
6753}
6754#endif
6755EOF
6756 # Now try linking the two files.
6757 mv conftest.$ac_objext conftstm.$ac_objext
6758 lt_save_LIBS="$LIBS"
6759 lt_save_CFLAGS="$CFLAGS"
6760 LIBS="conftstm.$ac_objext"
6761 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6762 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6763 (eval $ac_link) 2>&5
6764 ac_status=$?
6765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6766 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6767 pipe_works=yes
6768 fi
6769 LIBS="$lt_save_LIBS"
6770 CFLAGS="$lt_save_CFLAGS"
6771 else
6772 echo "cannot find nm_test_func in $nlist" >&5
6773 fi
6774 else
6775 echo "cannot find nm_test_var in $nlist" >&5
6776 fi
6777 else
6778 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6779 fi
6780 else
6781 echo "$progname: failed program was:" >&5
6782 cat conftest.$ac_ext >&5
6783 fi
6784 rm -f conftest* conftst*
6785
6786 # Do not use the global_symbol_pipe unless it works.
6787 if test "$pipe_works" = yes; then
6788 break
6789 else
6790 lt_cv_sys_global_symbol_pipe=
6791 fi
6792done
6793
6794fi
6795
6796if test -z "$lt_cv_sys_global_symbol_pipe"; then
6797 lt_cv_sys_global_symbol_to_cdecl=
6798fi
6799if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
64ff59ba 6800 { echo "$as_me:$LINENO: result: failed" >&5
6801echo "${ECHO_T}failed" >&6; }
d9898ee8 6802else
64ff59ba 6803 { echo "$as_me:$LINENO: result: ok" >&5
6804echo "${ECHO_T}ok" >&6; }
d9898ee8 6805fi
6806
64ff59ba 6807{ echo "$as_me:$LINENO: checking for objdir" >&5
6808echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
d9898ee8 6809if test "${lt_cv_objdir+set}" = set; then
6810 echo $ECHO_N "(cached) $ECHO_C" >&6
6811else
6812 rm -f .libs 2>/dev/null
6813mkdir .libs 2>/dev/null
6814if test -d .libs; then
6815 lt_cv_objdir=.libs
6816else
6817 # MS-DOS does not allow filenames that begin with a dot.
6818 lt_cv_objdir=_libs
6819fi
6820rmdir .libs 2>/dev/null
6821fi
64ff59ba 6822{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6823echo "${ECHO_T}$lt_cv_objdir" >&6; }
d9898ee8 6824objdir=$lt_cv_objdir
6825
6826
6827
6828
6829
6830case $host_os in
6831aix3*)
6832 # AIX sometimes has problems with the GCC collect2 program. For some
6833 # reason, if we set the COLLECT_NAMES environment variable, the problems
6834 # vanish in a puff of smoke.
6835 if test "X${COLLECT_NAMES+set}" != Xset; then
6836 COLLECT_NAMES=
6837 export COLLECT_NAMES
6838 fi
6839 ;;
6840esac
6841
6842# Sed substitution that helps us do robust quoting. It backslashifies
6843# metacharacters that are still active within double-quoted strings.
6844Xsed='sed -e 1s/^X//'
6845sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6846
6847# Same as above, but do not quote variable references.
6848double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6849
6850# Sed substitution to delay expansion of an escaped shell variable in a
6851# double_quote_subst'ed string.
6852delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6853
6854# Sed substitution to avoid accidental globbing in evaled expressions
6855no_glob_subst='s/\*/\\\*/g'
6856
6857# Constants:
6858rm="rm -f"
6859
6860# Global variables:
6861default_ofile=libtool
6862can_build_shared=yes
6863
6864# All known linkers require a `.a' archive for static linking (except MSVC,
6865# which needs '.lib').
6866libext=a
6867ltmain="$ac_aux_dir/ltmain.sh"
6868ofile="$default_ofile"
6869with_gnu_ld="$lt_cv_prog_gnu_ld"
6870
6871if test -n "$ac_tool_prefix"; then
6872 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6873set dummy ${ac_tool_prefix}ar; ac_word=$2
64ff59ba 6874{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6875echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 6876if test "${ac_cv_prog_AR+set}" = set; then
6877 echo $ECHO_N "(cached) $ECHO_C" >&6
6878else
6879 if test -n "$AR"; then
6880 ac_cv_prog_AR="$AR" # Let the user override the test.
6881else
6882as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6883for as_dir in $PATH
6884do
6885 IFS=$as_save_IFS
6886 test -z "$as_dir" && as_dir=.
6887 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 6888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 6889 ac_cv_prog_AR="${ac_tool_prefix}ar"
6890 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6891 break 2
6892 fi
6893done
6894done
64ff59ba 6895IFS=$as_save_IFS
d9898ee8 6896
6897fi
6898fi
6899AR=$ac_cv_prog_AR
6900if test -n "$AR"; then
64ff59ba 6901 { echo "$as_me:$LINENO: result: $AR" >&5
6902echo "${ECHO_T}$AR" >&6; }
d9898ee8 6903else
64ff59ba 6904 { echo "$as_me:$LINENO: result: no" >&5
6905echo "${ECHO_T}no" >&6; }
d9898ee8 6906fi
6907
64ff59ba 6908
d9898ee8 6909fi
6910if test -z "$ac_cv_prog_AR"; then
6911 ac_ct_AR=$AR
6912 # Extract the first word of "ar", so it can be a program name with args.
6913set dummy ar; ac_word=$2
64ff59ba 6914{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6915echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 6916if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6917 echo $ECHO_N "(cached) $ECHO_C" >&6
6918else
6919 if test -n "$ac_ct_AR"; then
6920 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6921else
6922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6923for as_dir in $PATH
6924do
6925 IFS=$as_save_IFS
6926 test -z "$as_dir" && as_dir=.
6927 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 6928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 6929 ac_cv_prog_ac_ct_AR="ar"
6930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6931 break 2
6932 fi
6933done
6934done
64ff59ba 6935IFS=$as_save_IFS
d9898ee8 6936
d9898ee8 6937fi
6938fi
6939ac_ct_AR=$ac_cv_prog_ac_ct_AR
6940if test -n "$ac_ct_AR"; then
64ff59ba 6941 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6942echo "${ECHO_T}$ac_ct_AR" >&6; }
d9898ee8 6943else
64ff59ba 6944 { echo "$as_me:$LINENO: result: no" >&5
6945echo "${ECHO_T}no" >&6; }
d9898ee8 6946fi
6947
64ff59ba 6948 if test "x$ac_ct_AR" = x; then
6949 AR="false"
6950 else
6951 case $cross_compiling:$ac_tool_warned in
6952yes:)
6953{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6954whose name does not start with the host triplet. If you think this
6955configuration is useful to you, please write to autoconf@gnu.org." >&5
6956echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6957whose name does not start with the host triplet. If you think this
6958configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6959ac_tool_warned=yes ;;
6960esac
6961 AR=$ac_ct_AR
6962 fi
d9898ee8 6963else
6964 AR="$ac_cv_prog_AR"
6965fi
6966
6967if test -n "$ac_tool_prefix"; then
6968 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6969set dummy ${ac_tool_prefix}ranlib; ac_word=$2
64ff59ba 6970{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6971echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 6972if test "${ac_cv_prog_RANLIB+set}" = set; then
6973 echo $ECHO_N "(cached) $ECHO_C" >&6
6974else
6975 if test -n "$RANLIB"; then
6976 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6977else
6978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6979for as_dir in $PATH
6980do
6981 IFS=$as_save_IFS
6982 test -z "$as_dir" && as_dir=.
6983 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 6984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 6985 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6986 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6987 break 2
6988 fi
6989done
6990done
64ff59ba 6991IFS=$as_save_IFS
d9898ee8 6992
6993fi
6994fi
6995RANLIB=$ac_cv_prog_RANLIB
6996if test -n "$RANLIB"; then
64ff59ba 6997 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6998echo "${ECHO_T}$RANLIB" >&6; }
d9898ee8 6999else
64ff59ba 7000 { echo "$as_me:$LINENO: result: no" >&5
7001echo "${ECHO_T}no" >&6; }
d9898ee8 7002fi
7003
64ff59ba 7004
d9898ee8 7005fi
7006if test -z "$ac_cv_prog_RANLIB"; then
7007 ac_ct_RANLIB=$RANLIB
7008 # Extract the first word of "ranlib", so it can be a program name with args.
7009set dummy ranlib; ac_word=$2
64ff59ba 7010{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7011echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 7012if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7013 echo $ECHO_N "(cached) $ECHO_C" >&6
7014else
7015 if test -n "$ac_ct_RANLIB"; then
7016 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7017else
7018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7019for as_dir in $PATH
7020do
7021 IFS=$as_save_IFS
7022 test -z "$as_dir" && as_dir=.
7023 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 7024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 7025 ac_cv_prog_ac_ct_RANLIB="ranlib"
7026 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7027 break 2
7028 fi
7029done
7030done
64ff59ba 7031IFS=$as_save_IFS
d9898ee8 7032
d9898ee8 7033fi
7034fi
7035ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7036if test -n "$ac_ct_RANLIB"; then
64ff59ba 7037 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7038echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
d9898ee8 7039else
64ff59ba 7040 { echo "$as_me:$LINENO: result: no" >&5
7041echo "${ECHO_T}no" >&6; }
d9898ee8 7042fi
7043
64ff59ba 7044 if test "x$ac_ct_RANLIB" = x; then
7045 RANLIB=":"
7046 else
7047 case $cross_compiling:$ac_tool_warned in
7048yes:)
7049{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7050whose name does not start with the host triplet. If you think this
7051configuration is useful to you, please write to autoconf@gnu.org." >&5
7052echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7053whose name does not start with the host triplet. If you think this
7054configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7055ac_tool_warned=yes ;;
7056esac
7057 RANLIB=$ac_ct_RANLIB
7058 fi
d9898ee8 7059else
7060 RANLIB="$ac_cv_prog_RANLIB"
7061fi
7062
7063if test -n "$ac_tool_prefix"; then
7064 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7065set dummy ${ac_tool_prefix}strip; ac_word=$2
64ff59ba 7066{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7067echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 7068if test "${ac_cv_prog_STRIP+set}" = set; then
7069 echo $ECHO_N "(cached) $ECHO_C" >&6
7070else
7071 if test -n "$STRIP"; then
7072 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7073else
7074as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7075for as_dir in $PATH
7076do
7077 IFS=$as_save_IFS
7078 test -z "$as_dir" && as_dir=.
7079 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 7080 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 7081 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7082 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7083 break 2
7084 fi
7085done
7086done
64ff59ba 7087IFS=$as_save_IFS
d9898ee8 7088
7089fi
7090fi
7091STRIP=$ac_cv_prog_STRIP
7092if test -n "$STRIP"; then
64ff59ba 7093 { echo "$as_me:$LINENO: result: $STRIP" >&5
7094echo "${ECHO_T}$STRIP" >&6; }
d9898ee8 7095else
64ff59ba 7096 { echo "$as_me:$LINENO: result: no" >&5
7097echo "${ECHO_T}no" >&6; }
d9898ee8 7098fi
7099
64ff59ba 7100
d9898ee8 7101fi
7102if test -z "$ac_cv_prog_STRIP"; then
7103 ac_ct_STRIP=$STRIP
7104 # Extract the first word of "strip", so it can be a program name with args.
7105set dummy strip; ac_word=$2
64ff59ba 7106{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7107echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 7108if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7109 echo $ECHO_N "(cached) $ECHO_C" >&6
7110else
7111 if test -n "$ac_ct_STRIP"; then
7112 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7113else
7114as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7115for as_dir in $PATH
7116do
7117 IFS=$as_save_IFS
7118 test -z "$as_dir" && as_dir=.
7119 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 7120 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 7121 ac_cv_prog_ac_ct_STRIP="strip"
7122 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7123 break 2
7124 fi
7125done
7126done
64ff59ba 7127IFS=$as_save_IFS
d9898ee8 7128
d9898ee8 7129fi
7130fi
7131ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7132if test -n "$ac_ct_STRIP"; then
64ff59ba 7133 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7134echo "${ECHO_T}$ac_ct_STRIP" >&6; }
d9898ee8 7135else
64ff59ba 7136 { echo "$as_me:$LINENO: result: no" >&5
7137echo "${ECHO_T}no" >&6; }
d9898ee8 7138fi
7139
64ff59ba 7140 if test "x$ac_ct_STRIP" = x; then
7141 STRIP=":"
7142 else
7143 case $cross_compiling:$ac_tool_warned in
7144yes:)
7145{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7146whose name does not start with the host triplet. If you think this
7147configuration is useful to you, please write to autoconf@gnu.org." >&5
7148echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7149whose name does not start with the host triplet. If you think this
7150configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7151ac_tool_warned=yes ;;
7152esac
7153 STRIP=$ac_ct_STRIP
7154 fi
d9898ee8 7155else
7156 STRIP="$ac_cv_prog_STRIP"
7157fi
7158
7159
7160old_CC="$CC"
7161old_CFLAGS="$CFLAGS"
7162
7163# Set sane defaults for various variables
7164test -z "$AR" && AR=ar
7165test -z "$AR_FLAGS" && AR_FLAGS=cru
7166test -z "$AS" && AS=as
7167test -z "$CC" && CC=cc
7168test -z "$LTCC" && LTCC=$CC
7169test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7170test -z "$DLLTOOL" && DLLTOOL=dlltool
7171test -z "$LD" && LD=ld
7172test -z "$LN_S" && LN_S="ln -s"
7173test -z "$MAGIC_CMD" && MAGIC_CMD=file
7174test -z "$NM" && NM=nm
7175test -z "$SED" && SED=sed
7176test -z "$OBJDUMP" && OBJDUMP=objdump
7177test -z "$RANLIB" && RANLIB=:
7178test -z "$STRIP" && STRIP=:
7179test -z "$ac_objext" && ac_objext=o
7180
7181# Determine commands to create old-style static archives.
7182old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7183old_postinstall_cmds='chmod 644 $oldlib'
7184old_postuninstall_cmds=
7185
7186if test -n "$RANLIB"; then
7187 case $host_os in
7188 openbsd*)
7189 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7190 ;;
7191 *)
7192 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7193 ;;
7194 esac
7195 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7196fi
7197
7198for cc_temp in $compiler""; do
7199 case $cc_temp in
7200 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7201 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7202 \-*) ;;
7203 *) break;;
7204 esac
7205done
7206cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7207
7208
7209# Only perform the check for file, if the check method requires it
7210case $deplibs_check_method in
7211file_magic*)
7212 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
64ff59ba 7213 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7214echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
d9898ee8 7215if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7216 echo $ECHO_N "(cached) $ECHO_C" >&6
7217else
7218 case $MAGIC_CMD in
7219[\\/*] | ?:[\\/]*)
7220 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7221 ;;
7222*)
7223 lt_save_MAGIC_CMD="$MAGIC_CMD"
7224 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7225 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7226 for ac_dir in $ac_dummy; do
7227 IFS="$lt_save_ifs"
7228 test -z "$ac_dir" && ac_dir=.
7229 if test -f $ac_dir/${ac_tool_prefix}file; then
7230 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7231 if test -n "$file_magic_test_file"; then
7232 case $deplibs_check_method in
7233 "file_magic "*)
7234 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7235 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7236 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7237 $EGREP "$file_magic_regex" > /dev/null; then
7238 :
7239 else
7240 cat <<EOF 1>&2
7241
7242*** Warning: the command libtool uses to detect shared libraries,
7243*** $file_magic_cmd, produces output that libtool cannot recognize.
7244*** The result is that libtool may fail to recognize shared libraries
7245*** as such. This will affect the creation of libtool libraries that
7246*** depend on shared libraries, but programs linked with such libtool
7247*** libraries will work regardless of this problem. Nevertheless, you
7248*** may want to report the problem to your system manager and/or to
7249*** bug-libtool@gnu.org
7250
7251EOF
7252 fi ;;
7253 esac
7254 fi
7255 break
7256 fi
7257 done
7258 IFS="$lt_save_ifs"
7259 MAGIC_CMD="$lt_save_MAGIC_CMD"
7260 ;;
7261esac
7262fi
7263
7264MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7265if test -n "$MAGIC_CMD"; then
64ff59ba 7266 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7267echo "${ECHO_T}$MAGIC_CMD" >&6; }
d9898ee8 7268else
64ff59ba 7269 { echo "$as_me:$LINENO: result: no" >&5
7270echo "${ECHO_T}no" >&6; }
d9898ee8 7271fi
7272
7273if test -z "$lt_cv_path_MAGIC_CMD"; then
7274 if test -n "$ac_tool_prefix"; then
64ff59ba 7275 { echo "$as_me:$LINENO: checking for file" >&5
7276echo $ECHO_N "checking for file... $ECHO_C" >&6; }
d9898ee8 7277if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7278 echo $ECHO_N "(cached) $ECHO_C" >&6
7279else
7280 case $MAGIC_CMD in
7281[\\/*] | ?:[\\/]*)
7282 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7283 ;;
7284*)
7285 lt_save_MAGIC_CMD="$MAGIC_CMD"
7286 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7287 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7288 for ac_dir in $ac_dummy; do
7289 IFS="$lt_save_ifs"
7290 test -z "$ac_dir" && ac_dir=.
7291 if test -f $ac_dir/file; then
7292 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7293 if test -n "$file_magic_test_file"; then
7294 case $deplibs_check_method in
7295 "file_magic "*)
7296 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7297 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7298 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7299 $EGREP "$file_magic_regex" > /dev/null; then
7300 :
7301 else
7302 cat <<EOF 1>&2
7303
7304*** Warning: the command libtool uses to detect shared libraries,
7305*** $file_magic_cmd, produces output that libtool cannot recognize.
7306*** The result is that libtool may fail to recognize shared libraries
7307*** as such. This will affect the creation of libtool libraries that
7308*** depend on shared libraries, but programs linked with such libtool
7309*** libraries will work regardless of this problem. Nevertheless, you
7310*** may want to report the problem to your system manager and/or to
7311*** bug-libtool@gnu.org
7312
7313EOF
7314 fi ;;
7315 esac
7316 fi
7317 break
7318 fi
7319 done
7320 IFS="$lt_save_ifs"
7321 MAGIC_CMD="$lt_save_MAGIC_CMD"
7322 ;;
7323esac
7324fi
7325
7326MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7327if test -n "$MAGIC_CMD"; then
64ff59ba 7328 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7329echo "${ECHO_T}$MAGIC_CMD" >&6; }
d9898ee8 7330else
64ff59ba 7331 { echo "$as_me:$LINENO: result: no" >&5
7332echo "${ECHO_T}no" >&6; }
d9898ee8 7333fi
7334
7335 else
7336 MAGIC_CMD=:
7337 fi
7338fi
7339
7340 fi
7341 ;;
7342esac
7343
7344enable_dlopen=yes
7345enable_win32_dll=no
7346
64ff59ba 7347# Check whether --enable-libtool-lock was given.
d9898ee8 7348if test "${enable_libtool_lock+set}" = set; then
64ff59ba 7349 enableval=$enable_libtool_lock;
7350fi
d9898ee8 7351
d9898ee8 7352test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7353
7354
64ff59ba 7355# Check whether --with-pic was given.
d9898ee8 7356if test "${with_pic+set}" = set; then
64ff59ba 7357 withval=$with_pic; pic_mode="$withval"
d9898ee8 7358else
7359 pic_mode=default
64ff59ba 7360fi
7361
d9898ee8 7362test -z "$pic_mode" && pic_mode=default
7363
7364# Use C for the default configuration in the libtool script
7365tagname=
7366lt_save_CC="$CC"
7367ac_ext=c
7368ac_cpp='$CPP $CPPFLAGS'
7369ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7370ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7371ac_compiler_gnu=$ac_cv_c_compiler_gnu
7372
7373
7374# Source file extension for C test sources.
7375ac_ext=c
7376
7377# Object file extension for compiled C test sources.
7378objext=o
7379objext=$objext
7380
7381# Code to be used in simple compile tests
7382lt_simple_compile_test_code="int some_variable = 0;\n"
7383
7384# Code to be used in simple link tests
7385lt_simple_link_test_code='int main(){return(0);}\n'
7386
7387
7388# If no C compiler was specified, use CC.
7389LTCC=${LTCC-"$CC"}
7390
7391# If no C compiler flags were specified, use CFLAGS.
7392LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7393
7394# Allow CC to be a program name with arguments.
7395compiler=$CC
7396
7397
7398# save warnings/boilerplate of simple test code
7399ac_outfile=conftest.$ac_objext
7400printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7401eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7402_lt_compiler_boilerplate=`cat conftest.err`
7403$rm conftest*
7404
7405ac_outfile=conftest.$ac_objext
7406printf "$lt_simple_link_test_code" >conftest.$ac_ext
7407eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7408_lt_linker_boilerplate=`cat conftest.err`
7409$rm conftest*
7410
7411
7412
7413lt_prog_compiler_no_builtin_flag=
7414
7415if test "$GCC" = yes; then
7416 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7417
7418
64ff59ba 7419{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7420echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
d9898ee8 7421if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7422 echo $ECHO_N "(cached) $ECHO_C" >&6
7423else
7424 lt_cv_prog_compiler_rtti_exceptions=no
7425 ac_outfile=conftest.$ac_objext
7426 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7427 lt_compiler_flag="-fno-rtti -fno-exceptions"
7428 # Insert the option either (1) after the last *FLAGS variable, or
7429 # (2) before a word containing "conftest.", or (3) at the end.
7430 # Note that $ac_compile itself does not contain backslashes and begins
7431 # with a dollar sign (not a hyphen), so the echo should work correctly.
7432 # The option is referenced via a variable to avoid confusing sed.
7433 lt_compile=`echo "$ac_compile" | $SED \
7434 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7435 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7436 -e 's:$: $lt_compiler_flag:'`
64ff59ba 7437 (eval echo "\"\$as_me:7437: $lt_compile\"" >&5)
d9898ee8 7438 (eval "$lt_compile" 2>conftest.err)
7439 ac_status=$?
7440 cat conftest.err >&5
64ff59ba 7441 echo "$as_me:7441: \$? = $ac_status" >&5
d9898ee8 7442 if (exit $ac_status) && test -s "$ac_outfile"; then
7443 # The compiler can only warn and ignore the option if not recognized
7444 # So say no if there are warnings other than the usual output.
7445 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7446 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7447 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7448 lt_cv_prog_compiler_rtti_exceptions=yes
7449 fi
7450 fi
7451 $rm conftest*
7452
7453fi
64ff59ba 7454{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7455echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
d9898ee8 7456
7457if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7458 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7459else
7460 :
7461fi
7462
7463fi
7464
7465lt_prog_compiler_wl=
7466lt_prog_compiler_pic=
7467lt_prog_compiler_static=
7468
64ff59ba 7469{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7470echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
d9898ee8 7471
7472 if test "$GCC" = yes; then
7473 lt_prog_compiler_wl='-Wl,'
7474 lt_prog_compiler_static='-static'
7475
7476 case $host_os in
7477 aix*)
7478 # All AIX code is PIC.
7479 if test "$host_cpu" = ia64; then
7480 # AIX 5 now supports IA64 processor
7481 lt_prog_compiler_static='-Bstatic'
7482 fi
7483 ;;
7484
7485 amigaos*)
7486 # FIXME: we need at least 68020 code to build shared libraries, but
7487 # adding the `-m68020' flag to GCC prevents building anything better,
7488 # like `-m68040'.
7489 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7490 ;;
7491
7492 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7493 # PIC is the default for these OSes.
7494 ;;
7495
7496 mingw* | pw32* | os2*)
7497 # This hack is so that the source file can tell whether it is being
7498 # built for inclusion in a dll (and should export symbols for example).
7499 lt_prog_compiler_pic='-DDLL_EXPORT'
7500 ;;
7501
7502 darwin* | rhapsody*)
7503 # PIC is the default on this platform
7504 # Common symbols not allowed in MH_DYLIB files
7505 lt_prog_compiler_pic='-fno-common'
7506 ;;
7507
7508 interix3*)
7509 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7510 # Instead, we relocate shared libraries at runtime.
7511 ;;
7512
7513 msdosdjgpp*)
7514 # Just because we use GCC doesn't mean we suddenly get shared libraries
7515 # on systems that don't support them.
7516 lt_prog_compiler_can_build_shared=no
7517 enable_shared=no
7518 ;;
7519
7520 sysv4*MP*)
7521 if test -d /usr/nec; then
7522 lt_prog_compiler_pic=-Kconform_pic
7523 fi
7524 ;;
7525
7526 hpux*)
7527 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7528 # not for PA HP-UX.
7529 case $host_cpu in
7530 hppa*64*|ia64*)
7531 # +Z the default
7532 ;;
7533 *)
7534 lt_prog_compiler_pic='-fPIC'
7535 ;;
7536 esac
7537 ;;
7538
7539 *)
7540 lt_prog_compiler_pic='-fPIC'
7541 ;;
7542 esac
7543 else
7544 # PORTME Check for flag to pass linker flags through the system compiler.
7545 case $host_os in
7546 aix*)
7547 lt_prog_compiler_wl='-Wl,'
7548 if test "$host_cpu" = ia64; then
7549 # AIX 5 now supports IA64 processor
7550 lt_prog_compiler_static='-Bstatic'
7551 else
7552 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7553 fi
7554 ;;
7555 darwin*)
7556 # PIC is the default on this platform
7557 # Common symbols not allowed in MH_DYLIB files
7558 case $cc_basename in
7559 xlc*)
7560 lt_prog_compiler_pic='-qnocommon'
7561 lt_prog_compiler_wl='-Wl,'
7562 ;;
7563 esac
7564 ;;
7565
7566 mingw* | pw32* | os2*)
7567 # This hack is so that the source file can tell whether it is being
7568 # built for inclusion in a dll (and should export symbols for example).
7569 lt_prog_compiler_pic='-DDLL_EXPORT'
7570 ;;
7571
7572 hpux9* | hpux10* | hpux11*)
7573 lt_prog_compiler_wl='-Wl,'
7574 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7575 # not for PA HP-UX.
7576 case $host_cpu in
7577 hppa*64*|ia64*)
7578 # +Z the default
7579 ;;
7580 *)
7581 lt_prog_compiler_pic='+Z'
7582 ;;
7583 esac
7584 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7585 lt_prog_compiler_static='${wl}-a ${wl}archive'
7586 ;;
7587
7588 irix5* | irix6* | nonstopux*)
7589 lt_prog_compiler_wl='-Wl,'
7590 # PIC (with -KPIC) is the default.
7591 lt_prog_compiler_static='-non_shared'
7592 ;;
7593
7594 newsos6)
7595 lt_prog_compiler_pic='-KPIC'
7596 lt_prog_compiler_static='-Bstatic'
7597 ;;
7598
7599 linux*)
7600 case $cc_basename in
7601 icc* | ecc*)
7602 lt_prog_compiler_wl='-Wl,'
7603 lt_prog_compiler_pic='-KPIC'
7604 lt_prog_compiler_static='-static'
7605 ;;
7606 pgcc* | pgf77* | pgf90* | pgf95*)
7607 # Portland Group compilers (*not* the Pentium gcc compiler,
7608 # which looks to be a dead project)
7609 lt_prog_compiler_wl='-Wl,'
7610 lt_prog_compiler_pic='-fpic'
7611 lt_prog_compiler_static='-Bstatic'
7612 ;;
7613 ccc*)
7614 lt_prog_compiler_wl='-Wl,'
7615 # All Alpha code is PIC.
7616 lt_prog_compiler_static='-non_shared'
7617 ;;
7618 esac
7619 ;;
7620
7621 osf3* | osf4* | osf5*)
7622 lt_prog_compiler_wl='-Wl,'
7623 # All OSF/1 code is PIC.
7624 lt_prog_compiler_static='-non_shared'
7625 ;;
7626
7627 solaris*)
7628 lt_prog_compiler_pic='-KPIC'
7629 lt_prog_compiler_static='-Bstatic'
7630 case $cc_basename in
7631 f77* | f90* | f95*)
7632 lt_prog_compiler_wl='-Qoption ld ';;
7633 *)
7634 lt_prog_compiler_wl='-Wl,';;
7635 esac
7636 ;;
7637
7638 sunos4*)
7639 lt_prog_compiler_wl='-Qoption ld '
7640 lt_prog_compiler_pic='-PIC'
7641 lt_prog_compiler_static='-Bstatic'
7642 ;;
7643
7644 sysv4 | sysv4.2uw2* | sysv4.3*)
7645 lt_prog_compiler_wl='-Wl,'
7646 lt_prog_compiler_pic='-KPIC'
7647 lt_prog_compiler_static='-Bstatic'
7648 ;;
7649
7650 sysv4*MP*)
7651 if test -d /usr/nec ;then
7652 lt_prog_compiler_pic='-Kconform_pic'
7653 lt_prog_compiler_static='-Bstatic'
7654 fi
7655 ;;
7656
7657 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7658 lt_prog_compiler_wl='-Wl,'
7659 lt_prog_compiler_pic='-KPIC'
7660 lt_prog_compiler_static='-Bstatic'
7661 ;;
7662
7663 unicos*)
7664 lt_prog_compiler_wl='-Wl,'
7665 lt_prog_compiler_can_build_shared=no
7666 ;;
7667
7668 uts4*)
7669 lt_prog_compiler_pic='-pic'
7670 lt_prog_compiler_static='-Bstatic'
7671 ;;
7672
7673 *)
7674 lt_prog_compiler_can_build_shared=no
7675 ;;
7676 esac
7677 fi
7678
64ff59ba 7679{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7680echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
d9898ee8 7681
7682#
7683# Check to make sure the PIC flag actually works.
7684#
7685if test -n "$lt_prog_compiler_pic"; then
7686
64ff59ba 7687{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7688echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
d9898ee8 7689if test "${lt_prog_compiler_pic_works+set}" = set; then
7690 echo $ECHO_N "(cached) $ECHO_C" >&6
7691else
7692 lt_prog_compiler_pic_works=no
7693 ac_outfile=conftest.$ac_objext
7694 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7695 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7696 # Insert the option either (1) after the last *FLAGS variable, or
7697 # (2) before a word containing "conftest.", or (3) at the end.
7698 # Note that $ac_compile itself does not contain backslashes and begins
7699 # with a dollar sign (not a hyphen), so the echo should work correctly.
7700 # The option is referenced via a variable to avoid confusing sed.
7701 lt_compile=`echo "$ac_compile" | $SED \
7702 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7703 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7704 -e 's:$: $lt_compiler_flag:'`
64ff59ba 7705 (eval echo "\"\$as_me:7705: $lt_compile\"" >&5)
d9898ee8 7706 (eval "$lt_compile" 2>conftest.err)
7707 ac_status=$?
7708 cat conftest.err >&5
64ff59ba 7709 echo "$as_me:7709: \$? = $ac_status" >&5
d9898ee8 7710 if (exit $ac_status) && test -s "$ac_outfile"; then
7711 # The compiler can only warn and ignore the option if not recognized
7712 # So say no if there are warnings other than the usual output.
7713 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7714 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7715 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7716 lt_prog_compiler_pic_works=yes
7717 fi
7718 fi
7719 $rm conftest*
7720
7721fi
64ff59ba 7722{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7723echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
d9898ee8 7724
7725if test x"$lt_prog_compiler_pic_works" = xyes; then
7726 case $lt_prog_compiler_pic in
7727 "" | " "*) ;;
7728 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7729 esac
7730else
7731 lt_prog_compiler_pic=
7732 lt_prog_compiler_can_build_shared=no
7733fi
7734
7735fi
7736case $host_os in
7737 # For platforms which do not support PIC, -DPIC is meaningless:
7738 *djgpp*)
7739 lt_prog_compiler_pic=
7740 ;;
7741 *)
7742 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7743 ;;
7744esac
7745
7746#
7747# Check to make sure the static flag actually works.
7748#
7749wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
64ff59ba 7750{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7751echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
d9898ee8 7752if test "${lt_prog_compiler_static_works+set}" = set; then
7753 echo $ECHO_N "(cached) $ECHO_C" >&6
7754else
7755 lt_prog_compiler_static_works=no
7756 save_LDFLAGS="$LDFLAGS"
7757 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7758 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7759 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7760 # The linker can only warn and ignore the option if not recognized
7761 # So say no if there are warnings
7762 if test -s conftest.err; then
7763 # Append any errors to the config.log.
7764 cat conftest.err 1>&5
7765 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7766 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7767 if diff conftest.exp conftest.er2 >/dev/null; then
7768 lt_prog_compiler_static_works=yes
7769 fi
7770 else
7771 lt_prog_compiler_static_works=yes
7772 fi
7773 fi
7774 $rm conftest*
7775 LDFLAGS="$save_LDFLAGS"
7776
7777fi
64ff59ba 7778{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7779echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
d9898ee8 7780
7781if test x"$lt_prog_compiler_static_works" = xyes; then
7782 :
7783else
7784 lt_prog_compiler_static=
7785fi
7786
7787
64ff59ba 7788{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7789echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
d9898ee8 7790if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7791 echo $ECHO_N "(cached) $ECHO_C" >&6
7792else
7793 lt_cv_prog_compiler_c_o=no
7794 $rm -r conftest 2>/dev/null
7795 mkdir conftest
7796 cd conftest
7797 mkdir out
7798 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7799
7800 lt_compiler_flag="-o out/conftest2.$ac_objext"
7801 # Insert the option either (1) after the last *FLAGS variable, or
7802 # (2) before a word containing "conftest.", or (3) at the end.
7803 # Note that $ac_compile itself does not contain backslashes and begins
7804 # with a dollar sign (not a hyphen), so the echo should work correctly.
7805 lt_compile=`echo "$ac_compile" | $SED \
7806 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7807 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7808 -e 's:$: $lt_compiler_flag:'`
64ff59ba 7809 (eval echo "\"\$as_me:7809: $lt_compile\"" >&5)
d9898ee8 7810 (eval "$lt_compile" 2>out/conftest.err)
7811 ac_status=$?
7812 cat out/conftest.err >&5
64ff59ba 7813 echo "$as_me:7813: \$? = $ac_status" >&5
d9898ee8 7814 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7815 then
7816 # The compiler can only warn and ignore the option if not recognized
7817 # So say no if there are warnings
7818 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7819 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7820 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7821 lt_cv_prog_compiler_c_o=yes
7822 fi
7823 fi
7824 chmod u+w . 2>&5
7825 $rm conftest*
7826 # SGI C++ compiler will create directory out/ii_files/ for
7827 # template instantiation
7828 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7829 $rm out/* && rmdir out
7830 cd ..
7831 rmdir conftest
7832 $rm conftest*
7833
7834fi
64ff59ba 7835{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7836echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
d9898ee8 7837
7838
7839hard_links="nottested"
7840if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7841 # do not overwrite the value of need_locks provided by the user
64ff59ba 7842 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7843echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
d9898ee8 7844 hard_links=yes
7845 $rm conftest*
7846 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7847 touch conftest.a
7848 ln conftest.a conftest.b 2>&5 || hard_links=no
7849 ln conftest.a conftest.b 2>/dev/null && hard_links=no
64ff59ba 7850 { echo "$as_me:$LINENO: result: $hard_links" >&5
7851echo "${ECHO_T}$hard_links" >&6; }
d9898ee8 7852 if test "$hard_links" = no; then
7853 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7854echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7855 need_locks=warn
7856 fi
7857else
7858 need_locks=no
7859fi
7860
64ff59ba 7861{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7862echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
d9898ee8 7863
7864 runpath_var=
7865 allow_undefined_flag=
7866 enable_shared_with_static_runtimes=no
7867 archive_cmds=
7868 archive_expsym_cmds=
7869 old_archive_From_new_cmds=
7870 old_archive_from_expsyms_cmds=
7871 export_dynamic_flag_spec=
7872 whole_archive_flag_spec=
7873 thread_safe_flag_spec=
7874 hardcode_libdir_flag_spec=
7875 hardcode_libdir_flag_spec_ld=
7876 hardcode_libdir_separator=
7877 hardcode_direct=no
7878 hardcode_minus_L=no
7879 hardcode_shlibpath_var=unsupported
7880 link_all_deplibs=unknown
7881 hardcode_automatic=no
7882 module_cmds=
7883 module_expsym_cmds=
7884 always_export_symbols=no
7885 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7886 # include_expsyms should be a list of space-separated symbols to be *always*
7887 # included in the symbol list
7888 include_expsyms=
7889 # exclude_expsyms can be an extended regexp of symbols to exclude
7890 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7891 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7892 # as well as any symbol that contains `d'.
7893 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7894 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7895 # platforms (ab)use it in PIC code, but their linkers get confused if
7896 # the symbol is explicitly referenced. Since portable code cannot
7897 # rely on this symbol name, it's probably fine to never include it in
7898 # preloaded symbol tables.
7899 extract_expsyms_cmds=
7900 # Just being paranoid about ensuring that cc_basename is set.
7901 for cc_temp in $compiler""; do
7902 case $cc_temp in
7903 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7904 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7905 \-*) ;;
7906 *) break;;
7907 esac
7908done
7909cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7910
7911 case $host_os in
7912 cygwin* | mingw* | pw32*)
7913 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7914 # When not using gcc, we currently assume that we are using
7915 # Microsoft Visual C++.
7916 if test "$GCC" != yes; then
7917 with_gnu_ld=no
7918 fi
7919 ;;
7920 interix*)
7921 # we just hope/assume this is gcc and not c89 (= MSVC++)
7922 with_gnu_ld=yes
7923 ;;
7924 openbsd*)
7925 with_gnu_ld=no
7926 ;;
7927 esac
7928
7929 ld_shlibs=yes
7930 if test "$with_gnu_ld" = yes; then
7931 # If archive_cmds runs LD, not CC, wlarc should be empty
7932 wlarc='${wl}'
7933
7934 # Set some defaults for GNU ld with shared library support. These
7935 # are reset later if shared libraries are not supported. Putting them
7936 # here allows them to be overridden if necessary.
7937 runpath_var=LD_RUN_PATH
7938 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7939 export_dynamic_flag_spec='${wl}--export-dynamic'
7940 # ancient GNU ld didn't support --whole-archive et. al.
7941 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7942 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7943 else
7944 whole_archive_flag_spec=
7945 fi
7946 supports_anon_versioning=no
7947 case `$LD -v 2>/dev/null` in
7948 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7949 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7950 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7951 *\ 2.11.*) ;; # other 2.11 versions
7952 *) supports_anon_versioning=yes ;;
7953 esac
7954
7955 # See if GNU ld supports shared libraries.
7956 case $host_os in
7957 aix3* | aix4* | aix5*)
7958 # On AIX/PPC, the GNU linker is very broken
7959 if test "$host_cpu" != ia64; then
7960 ld_shlibs=no
7961 cat <<EOF 1>&2
7962
7963*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7964*** to be unable to reliably create shared libraries on AIX.
7965*** Therefore, libtool is disabling shared libraries support. If you
7966*** really care for shared libraries, you may want to modify your PATH
7967*** so that a non-GNU linker is found, and then restart.
7968
7969EOF
7970 fi
7971 ;;
7972
7973 amigaos*)
7974 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)'
7975 hardcode_libdir_flag_spec='-L$libdir'
7976 hardcode_minus_L=yes
7977
7978 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7979 # that the semantics of dynamic libraries on AmigaOS, at least up
7980 # to version 4, is to share data among multiple programs linked
7981 # with the same dynamic library. Since this doesn't match the
7982 # behavior of shared libraries on other platforms, we can't use
7983 # them.
7984 ld_shlibs=no
7985 ;;
7986
7987 beos*)
7988 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7989 allow_undefined_flag=unsupported
7990 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7991 # support --undefined. This deserves some investigation. FIXME
7992 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7993 else
7994 ld_shlibs=no
7995 fi
7996 ;;
7997
7998 cygwin* | mingw* | pw32*)
7999 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8000 # as there is no search path for DLLs.
8001 hardcode_libdir_flag_spec='-L$libdir'
8002 allow_undefined_flag=unsupported
8003 always_export_symbols=no
8004 enable_shared_with_static_runtimes=yes
8005 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8006
8007 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8008 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8009 # If the export-symbols file already is a .def file (1st line
8010 # is EXPORTS), use it as is; otherwise, prepend...
8011 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8012 cp $export_symbols $output_objdir/$soname.def;
8013 else
8014 echo EXPORTS > $output_objdir/$soname.def;
8015 cat $export_symbols >> $output_objdir/$soname.def;
8016 fi~
8017 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8018 else
8019 ld_shlibs=no
8020 fi
8021 ;;
8022
8023 interix3*)
8024 hardcode_direct=no
8025 hardcode_shlibpath_var=no
8026 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8027 export_dynamic_flag_spec='${wl}-E'
8028 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8029 # Instead, shared libraries are loaded at an image base (0x10000000 by
8030 # default) and relocated if they conflict, which is a slow very memory
8031 # consuming and fragmenting process. To avoid this, we pick a random,
8032 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8033 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8034 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8035 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'
8036 ;;
8037
8038 linux*)
8039 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8040 tmp_addflag=
8041 case $cc_basename,$host_cpu in
8042 pgcc*) # Portland Group C compiler
8043 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'
8044 tmp_addflag=' $pic_flag'
8045 ;;
8046 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8047 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'
8048 tmp_addflag=' $pic_flag -Mnomain' ;;
8049 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8050 tmp_addflag=' -i_dynamic' ;;
8051 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8052 tmp_addflag=' -i_dynamic -nofor_main' ;;
8053 ifc* | ifort*) # Intel Fortran compiler
8054 tmp_addflag=' -nofor_main' ;;
8055 esac
8056 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8057
8058 if test $supports_anon_versioning = yes; then
8059 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8060 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8061 $echo "local: *; };" >> $output_objdir/$libname.ver~
8062 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8063 fi
8064 else
8065 ld_shlibs=no
8066 fi
8067 ;;
8068
8069 netbsd*)
8070 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8071 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8072 wlarc=
8073 else
8074 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8075 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8076 fi
8077 ;;
8078
8079 solaris*)
8080 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8081 ld_shlibs=no
8082 cat <<EOF 1>&2
8083
8084*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8085*** create shared libraries on Solaris systems. Therefore, libtool
8086*** is disabling shared libraries support. We urge you to upgrade GNU
8087*** binutils to release 2.9.1 or newer. Another option is to modify
8088*** your PATH or compiler configuration so that the native linker is
8089*** used, and then restart.
8090
8091EOF
8092 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8093 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8094 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8095 else
8096 ld_shlibs=no
8097 fi
8098 ;;
8099
8100 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8101 case `$LD -v 2>&1` in
8102 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8103 ld_shlibs=no
8104 cat <<_LT_EOF 1>&2
8105
8106*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8107*** reliably create shared libraries on SCO systems. Therefore, libtool
8108*** is disabling shared libraries support. We urge you to upgrade GNU
8109*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8110*** your PATH or compiler configuration so that the native linker is
8111*** used, and then restart.
8112
8113_LT_EOF
8114 ;;
8115 *)
8116 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8117 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8118 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8119 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8120 else
8121 ld_shlibs=no
8122 fi
8123 ;;
8124 esac
8125 ;;
8126
8127 sunos4*)
8128 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8129 wlarc=
8130 hardcode_direct=yes
8131 hardcode_shlibpath_var=no
8132 ;;
8133
8134 *)
8135 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8136 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8137 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8138 else
8139 ld_shlibs=no
8140 fi
8141 ;;
8142 esac
8143
8144 if test "$ld_shlibs" = no; then
8145 runpath_var=
8146 hardcode_libdir_flag_spec=
8147 export_dynamic_flag_spec=
8148 whole_archive_flag_spec=
8149 fi
8150 else
8151 # PORTME fill in a description of your system's linker (not GNU ld)
8152 case $host_os in
8153 aix3*)
8154 allow_undefined_flag=unsupported
8155 always_export_symbols=yes
8156 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'
8157 # Note: this linker hardcodes the directories in LIBPATH if there
8158 # are no directories specified by -L.
8159 hardcode_minus_L=yes
8160 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8161 # Neither direct hardcoding nor static linking is supported with a
8162 # broken collect2.
8163 hardcode_direct=unsupported
8164 fi
8165 ;;
8166
8167 aix4* | aix5*)
8168 if test "$host_cpu" = ia64; then
8169 # On IA64, the linker does run time linking by default, so we don't
8170 # have to do anything special.
8171 aix_use_runtimelinking=no
8172 exp_sym_flag='-Bexport'
8173 no_entry_flag=""
8174 else
8175 # If we're using GNU nm, then we don't want the "-C" option.
8176 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8177 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8178 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'
8179 else
8180 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'
8181 fi
8182 aix_use_runtimelinking=no
8183
8184 # Test if we are trying to use run time linking or normal
8185 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8186 # need to do runtime linking.
8187 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8188 for ld_flag in $LDFLAGS; do
8189 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8190 aix_use_runtimelinking=yes
8191 break
8192 fi
8193 done
8194 ;;
8195 esac
8196
8197 exp_sym_flag='-bexport'
8198 no_entry_flag='-bnoentry'
8199 fi
8200
8201 # When large executables or shared objects are built, AIX ld can
8202 # have problems creating the table of contents. If linking a library
8203 # or program results in "error TOC overflow" add -mminimal-toc to
8204 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8205 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8206
8207 archive_cmds=''
8208 hardcode_direct=yes
8209 hardcode_libdir_separator=':'
8210 link_all_deplibs=yes
8211
8212 if test "$GCC" = yes; then
8213 case $host_os in aix4.[012]|aix4.[012].*)
8214 # We only want to do this on AIX 4.2 and lower, the check
8215 # below for broken collect2 doesn't work under 4.3+
8216 collect2name=`${CC} -print-prog-name=collect2`
8217 if test -f "$collect2name" && \
8218 strings "$collect2name" | grep resolve_lib_name >/dev/null
8219 then
8220 # We have reworked collect2
8221 hardcode_direct=yes
8222 else
8223 # We have old collect2
8224 hardcode_direct=unsupported
8225 # It fails to find uninstalled libraries when the uninstalled
8226 # path is not listed in the libpath. Setting hardcode_minus_L
8227 # to unsupported forces relinking
8228 hardcode_minus_L=yes
8229 hardcode_libdir_flag_spec='-L$libdir'
8230 hardcode_libdir_separator=
8231 fi
8232 ;;
8233 esac
8234 shared_flag='-shared'
8235 if test "$aix_use_runtimelinking" = yes; then
8236 shared_flag="$shared_flag "'${wl}-G'
8237 fi
8238 else
8239 # not using gcc
8240 if test "$host_cpu" = ia64; then
8241 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8242 # chokes on -Wl,-G. The following line is correct:
8243 shared_flag='-G'
8244 else
8245 if test "$aix_use_runtimelinking" = yes; then
8246 shared_flag='${wl}-G'
8247 else
8248 shared_flag='${wl}-bM:SRE'
8249 fi
8250 fi
8251 fi
8252
8253 # It seems that -bexpall does not export symbols beginning with
8254 # underscore (_), so it is better to generate a list of symbols to export.
8255 always_export_symbols=yes
8256 if test "$aix_use_runtimelinking" = yes; then
8257 # Warning - without using the other runtime loading flags (-brtl),
8258 # -berok will link without error, but may produce a broken library.
8259 allow_undefined_flag='-berok'
8260 # Determine the default libpath from the value encoded in an empty executable.
8261 cat >conftest.$ac_ext <<_ACEOF
8262/* confdefs.h. */
8263_ACEOF
8264cat confdefs.h >>conftest.$ac_ext
8265cat >>conftest.$ac_ext <<_ACEOF
8266/* end confdefs.h. */
8267
8268int
8269main ()
8270{
8271
8272 ;
8273 return 0;
8274}
8275_ACEOF
8276rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 8277if { (ac_try="$ac_link"
8278case "(($ac_try" in
8279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8280 *) ac_try_echo=$ac_try;;
8281esac
8282eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8283 (eval "$ac_link") 2>conftest.er1
d9898ee8 8284 ac_status=$?
8285 grep -v '^ *+' conftest.er1 >conftest.err
8286 rm -f conftest.er1
8287 cat conftest.err >&5
8288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 8289 (exit $ac_status); } && {
8290 test -z "$ac_c_werror_flag" ||
8291 test ! -s conftest.err
8292 } && test -s conftest$ac_exeext &&
8293 $as_test_x conftest$ac_exeext; then
d9898ee8 8294
8295aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8296}'`
8297# Check for a 64-bit object if we didn't find anything.
8298if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8299}'`; fi
8300else
8301 echo "$as_me: failed program was:" >&5
8302sed 's/^/| /' conftest.$ac_ext >&5
8303
64ff59ba 8304
d9898ee8 8305fi
64ff59ba 8306
8307rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 8308 conftest$ac_exeext conftest.$ac_ext
8309if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8310
8311 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8312 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 "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8313 else
8314 if test "$host_cpu" = ia64; then
8315 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8316 allow_undefined_flag="-z nodefs"
8317 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"
8318 else
8319 # Determine the default libpath from the value encoded in an empty executable.
8320 cat >conftest.$ac_ext <<_ACEOF
8321/* confdefs.h. */
8322_ACEOF
8323cat confdefs.h >>conftest.$ac_ext
8324cat >>conftest.$ac_ext <<_ACEOF
8325/* end confdefs.h. */
8326
8327int
8328main ()
8329{
8330
8331 ;
8332 return 0;
8333}
8334_ACEOF
8335rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 8336if { (ac_try="$ac_link"
8337case "(($ac_try" in
8338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8339 *) ac_try_echo=$ac_try;;
8340esac
8341eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8342 (eval "$ac_link") 2>conftest.er1
d9898ee8 8343 ac_status=$?
8344 grep -v '^ *+' conftest.er1 >conftest.err
8345 rm -f conftest.er1
8346 cat conftest.err >&5
8347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 8348 (exit $ac_status); } && {
8349 test -z "$ac_c_werror_flag" ||
8350 test ! -s conftest.err
8351 } && test -s conftest$ac_exeext &&
8352 $as_test_x conftest$ac_exeext; then
d9898ee8 8353
8354aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8355}'`
8356# Check for a 64-bit object if we didn't find anything.
8357if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8358}'`; fi
8359else
8360 echo "$as_me: failed program was:" >&5
8361sed 's/^/| /' conftest.$ac_ext >&5
8362
64ff59ba 8363
d9898ee8 8364fi
64ff59ba 8365
8366rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 8367 conftest$ac_exeext conftest.$ac_ext
8368if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8369
8370 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8371 # Warning - without using the other run time loading flags,
8372 # -berok will link without error, but may produce a broken library.
8373 no_undefined_flag=' ${wl}-bernotok'
8374 allow_undefined_flag=' ${wl}-berok'
8375 # Exported symbols can be pulled into shared objects from archives
8376 whole_archive_flag_spec='$convenience'
8377 archive_cmds_need_lc=yes
8378 # This is similar to how AIX traditionally builds its shared libraries.
8379 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'
8380 fi
8381 fi
8382 ;;
8383
8384 amigaos*)
8385 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)'
8386 hardcode_libdir_flag_spec='-L$libdir'
8387 hardcode_minus_L=yes
8388 # see comment about different semantics on the GNU ld section
8389 ld_shlibs=no
8390 ;;
8391
8392 bsdi[45]*)
8393 export_dynamic_flag_spec=-rdynamic
8394 ;;
8395
8396 cygwin* | mingw* | pw32*)
8397 # When not using gcc, we currently assume that we are using
8398 # Microsoft Visual C++.
8399 # hardcode_libdir_flag_spec is actually meaningless, as there is
8400 # no search path for DLLs.
8401 hardcode_libdir_flag_spec=' '
8402 allow_undefined_flag=unsupported
8403 # Tell ltmain to make .lib files, not .a files.
8404 libext=lib
8405 # Tell ltmain to make .dll files, not .so files.
8406 shrext_cmds=".dll"
8407 # FIXME: Setting linknames here is a bad hack.
8408 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8409 # The linker will automatically build a .lib file if we build a DLL.
8410 old_archive_From_new_cmds='true'
8411 # FIXME: Should let the user specify the lib program.
8412 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8413 fix_srcfile_path='`cygpath -w "$srcfile"`'
8414 enable_shared_with_static_runtimes=yes
8415 ;;
8416
8417 darwin* | rhapsody*)
8418 case $host_os in
8419 rhapsody* | darwin1.[012])
8420 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8421 ;;
8422 *) # Darwin 1.3 on
8423 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8424 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8425 else
8426 case ${MACOSX_DEPLOYMENT_TARGET} in
8427 10.[012])
8428 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8429 ;;
8430 10.*)
8431 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8432 ;;
8433 esac
8434 fi
8435 ;;
8436 esac
8437 archive_cmds_need_lc=no
8438 hardcode_direct=no
8439 hardcode_automatic=yes
8440 hardcode_shlibpath_var=unsupported
8441 whole_archive_flag_spec=''
8442 link_all_deplibs=yes
8443 if test "$GCC" = yes ; then
8444 output_verbose_link_cmd='echo'
8445 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8446 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8447 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8448 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8449 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8450 else
8451 case $cc_basename in
8452 xlc*)
8453 output_verbose_link_cmd='echo'
8454 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8455 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8456 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8457 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8458 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8459 ;;
8460 *)
8461 ld_shlibs=no
8462 ;;
8463 esac
8464 fi
8465 ;;
8466
8467 dgux*)
8468 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8469 hardcode_libdir_flag_spec='-L$libdir'
8470 hardcode_shlibpath_var=no
8471 ;;
8472
8473 freebsd1*)
8474 ld_shlibs=no
8475 ;;
8476
8477 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8478 # support. Future versions do this automatically, but an explicit c++rt0.o
8479 # does not break anything, and helps significantly (at the cost of a little
8480 # extra space).
8481 freebsd2.2*)
8482 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8483 hardcode_libdir_flag_spec='-R$libdir'
8484 hardcode_direct=yes
8485 hardcode_shlibpath_var=no
8486 ;;
8487
8488 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8489 freebsd2*)
8490 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8491 hardcode_direct=yes
8492 hardcode_minus_L=yes
8493 hardcode_shlibpath_var=no
8494 ;;
8495
8496 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8497 freebsd* | kfreebsd*-gnu | dragonfly*)
8498 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8499 hardcode_libdir_flag_spec='-R$libdir'
8500 hardcode_direct=yes
8501 hardcode_shlibpath_var=no
8502 ;;
8503
8504 hpux9*)
8505 if test "$GCC" = yes; then
8506 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'
8507 else
8508 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'
8509 fi
8510 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8511 hardcode_libdir_separator=:
8512 hardcode_direct=yes
8513
8514 # hardcode_minus_L: Not really in the search PATH,
8515 # but as the default location of the library.
8516 hardcode_minus_L=yes
8517 export_dynamic_flag_spec='${wl}-E'
8518 ;;
8519
8520 hpux10*)
8521 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8522 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8523 else
8524 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8525 fi
8526 if test "$with_gnu_ld" = no; then
8527 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8528 hardcode_libdir_separator=:
8529
8530 hardcode_direct=yes
8531 export_dynamic_flag_spec='${wl}-E'
8532
8533 # hardcode_minus_L: Not really in the search PATH,
8534 # but as the default location of the library.
8535 hardcode_minus_L=yes
8536 fi
8537 ;;
8538
8539 hpux11*)
8540 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8541 case $host_cpu in
8542 hppa*64*)
8543 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8544 ;;
8545 ia64*)
8546 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8547 ;;
8548 *)
8549 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8550 ;;
8551 esac
8552 else
8553 case $host_cpu in
8554 hppa*64*)
8555 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8556 ;;
8557 ia64*)
8558 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8559 ;;
8560 *)
8561 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8562 ;;
8563 esac
8564 fi
8565 if test "$with_gnu_ld" = no; then
8566 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8567 hardcode_libdir_separator=:
8568
8569 case $host_cpu in
8570 hppa*64*|ia64*)
8571 hardcode_libdir_flag_spec_ld='+b $libdir'
8572 hardcode_direct=no
8573 hardcode_shlibpath_var=no
8574 ;;
8575 *)
8576 hardcode_direct=yes
8577 export_dynamic_flag_spec='${wl}-E'
8578
8579 # hardcode_minus_L: Not really in the search PATH,
8580 # but as the default location of the library.
8581 hardcode_minus_L=yes
8582 ;;
8583 esac
8584 fi
8585 ;;
8586
8587 irix5* | irix6* | nonstopux*)
8588 if test "$GCC" = yes; then
8589 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8590 else
8591 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8592 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8593 fi
8594 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8595 hardcode_libdir_separator=:
8596 link_all_deplibs=yes
8597 ;;
8598
8599 netbsd*)
8600 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8601 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8602 else
8603 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8604 fi
8605 hardcode_libdir_flag_spec='-R$libdir'
8606 hardcode_direct=yes
8607 hardcode_shlibpath_var=no
8608 ;;
8609
8610 newsos6)
8611 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8612 hardcode_direct=yes
8613 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8614 hardcode_libdir_separator=:
8615 hardcode_shlibpath_var=no
8616 ;;
8617
8618 openbsd*)
8619 hardcode_direct=yes
8620 hardcode_shlibpath_var=no
8621 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8622 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8623 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8624 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8625 export_dynamic_flag_spec='${wl}-E'
8626 else
8627 case $host_os in
8628 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8629 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8630 hardcode_libdir_flag_spec='-R$libdir'
8631 ;;
8632 *)
8633 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8634 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8635 ;;
8636 esac
8637 fi
8638 ;;
8639
8640 os2*)
8641 hardcode_libdir_flag_spec='-L$libdir'
8642 hardcode_minus_L=yes
8643 allow_undefined_flag=unsupported
8644 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'
8645 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8646 ;;
8647
8648 osf3*)
8649 if test "$GCC" = yes; then
8650 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8651 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8652 else
8653 allow_undefined_flag=' -expect_unresolved \*'
8654 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8655 fi
8656 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8657 hardcode_libdir_separator=:
8658 ;;
8659
8660 osf4* | osf5*) # as osf3* with the addition of -msym flag
8661 if test "$GCC" = yes; then
8662 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8663 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8664 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8665 else
8666 allow_undefined_flag=' -expect_unresolved \*'
8667 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8668 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8669 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
8670
8671 # Both c and cxx compiler support -rpath directly
8672 hardcode_libdir_flag_spec='-rpath $libdir'
8673 fi
8674 hardcode_libdir_separator=:
8675 ;;
8676
8677 solaris*)
8678 no_undefined_flag=' -z text'
8679 if test "$GCC" = yes; then
8680 wlarc='${wl}'
8681 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8682 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8683 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8684 else
8685 wlarc=''
8686 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8687 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8688 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8689 fi
8690 hardcode_libdir_flag_spec='-R$libdir'
8691 hardcode_shlibpath_var=no
8692 case $host_os in
8693 solaris2.[0-5] | solaris2.[0-5].*) ;;
8694 *)
8695 # The compiler driver will combine linker options so we
8696 # cannot just pass the convience library names through
8697 # without $wl, iff we do not link with $LD.
8698 # Luckily, gcc supports the same syntax we need for Sun Studio.
8699 # Supported since Solaris 2.6 (maybe 2.5.1?)
8700 case $wlarc in
8701 '')
8702 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8703 *)
8704 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
8705 esac ;;
8706 esac
8707 link_all_deplibs=yes
8708 ;;
8709
8710 sunos4*)
8711 if test "x$host_vendor" = xsequent; then
8712 # Use $CC to link under sequent, because it throws in some extra .o
8713 # files that make .init and .fini sections work.
8714 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8715 else
8716 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8717 fi
8718 hardcode_libdir_flag_spec='-L$libdir'
8719 hardcode_direct=yes
8720 hardcode_minus_L=yes
8721 hardcode_shlibpath_var=no
8722 ;;
8723
8724 sysv4)
8725 case $host_vendor in
8726 sni)
8727 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8728 hardcode_direct=yes # is this really true???
8729 ;;
8730 siemens)
8731 ## LD is ld it makes a PLAMLIB
8732 ## CC just makes a GrossModule.
8733 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8734 reload_cmds='$CC -r -o $output$reload_objs'
8735 hardcode_direct=no
8736 ;;
8737 motorola)
8738 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8739 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8740 ;;
8741 esac
8742 runpath_var='LD_RUN_PATH'
8743 hardcode_shlibpath_var=no
8744 ;;
8745
8746 sysv4.3*)
8747 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8748 hardcode_shlibpath_var=no
8749 export_dynamic_flag_spec='-Bexport'
8750 ;;
8751
8752 sysv4*MP*)
8753 if test -d /usr/nec; then
8754 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8755 hardcode_shlibpath_var=no
8756 runpath_var=LD_RUN_PATH
8757 hardcode_runpath_var=yes
8758 ld_shlibs=yes
8759 fi
8760 ;;
8761
8762 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8763 no_undefined_flag='${wl}-z,text'
8764 archive_cmds_need_lc=no
8765 hardcode_shlibpath_var=no
8766 runpath_var='LD_RUN_PATH'
8767
8768 if test "$GCC" = yes; then
8769 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8770 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8771 else
8772 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8773 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8774 fi
8775 ;;
8776
8777 sysv5* | sco3.2v5* | sco5v6*)
8778 # Note: We can NOT use -z defs as we might desire, because we do not
8779 # link with -lc, and that would cause any symbols used from libc to
8780 # always be unresolved, which means just about no library would
8781 # ever link correctly. If we're not using GNU ld we use -z text
8782 # though, which does catch some bad symbols but isn't as heavy-handed
8783 # as -z defs.
8784 no_undefined_flag='${wl}-z,text'
8785 allow_undefined_flag='${wl}-z,nodefs'
8786 archive_cmds_need_lc=no
8787 hardcode_shlibpath_var=no
8788 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8789 hardcode_libdir_separator=':'
8790 link_all_deplibs=yes
8791 export_dynamic_flag_spec='${wl}-Bexport'
8792 runpath_var='LD_RUN_PATH'
8793
8794 if test "$GCC" = yes; then
8795 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8796 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8797 else
8798 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8799 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8800 fi
8801 ;;
8802
8803 uts4*)
8804 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8805 hardcode_libdir_flag_spec='-L$libdir'
8806 hardcode_shlibpath_var=no
8807 ;;
8808
8809 *)
8810 ld_shlibs=no
8811 ;;
8812 esac
8813 fi
8814
64ff59ba 8815{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8816echo "${ECHO_T}$ld_shlibs" >&6; }
d9898ee8 8817test "$ld_shlibs" = no && can_build_shared=no
8818
8819#
8820# Do we need to explicitly link libc?
8821#
8822case "x$archive_cmds_need_lc" in
8823x|xyes)
8824 # Assume -lc should be added
8825 archive_cmds_need_lc=yes
8826
8827 if test "$enable_shared" = yes && test "$GCC" = yes; then
8828 case $archive_cmds in
8829 *'~'*)
8830 # FIXME: we may have to deal with multi-command sequences.
8831 ;;
8832 '$CC '*)
8833 # Test whether the compiler implicitly links with -lc since on some
8834 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8835 # to ld, don't add -lc before -lgcc.
64ff59ba 8836 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8837echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
d9898ee8 8838 $rm conftest*
8839 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8840
8841 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8842 (eval $ac_compile) 2>&5
8843 ac_status=$?
8844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8845 (exit $ac_status); } 2>conftest.err; then
8846 soname=conftest
8847 lib=conftest
8848 libobjs=conftest.$ac_objext
8849 deplibs=
8850 wl=$lt_prog_compiler_wl
8851 pic_flag=$lt_prog_compiler_pic
8852 compiler_flags=-v
8853 linker_flags=-v
8854 verstring=
8855 output_objdir=.
8856 libname=conftest
8857 lt_save_allow_undefined_flag=$allow_undefined_flag
8858 allow_undefined_flag=
8859 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8860 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8861 ac_status=$?
8862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8863 (exit $ac_status); }
8864 then
8865 archive_cmds_need_lc=no
8866 else
8867 archive_cmds_need_lc=yes
8868 fi
8869 allow_undefined_flag=$lt_save_allow_undefined_flag
8870 else
8871 cat conftest.err 1>&5
8872 fi
8873 $rm conftest*
64ff59ba 8874 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8875echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
d9898ee8 8876 ;;
8877 esac
8878 fi
8879 ;;
8880esac
8881
64ff59ba 8882{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8883echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
d9898ee8 8884library_names_spec=
8885libname_spec='lib$name'
8886soname_spec=
8887shrext_cmds=".so"
8888postinstall_cmds=
8889postuninstall_cmds=
8890finish_cmds=
8891finish_eval=
8892shlibpath_var=
8893shlibpath_overrides_runpath=unknown
8894version_type=none
8895dynamic_linker="$host_os ld.so"
8896sys_lib_dlsearch_path_spec="/lib /usr/lib"
8897if test "$GCC" = yes; then
8898 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8899 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8900 # if the path contains ";" then we assume it to be the separator
8901 # otherwise default to the standard path separator (i.e. ":") - it is
8902 # assumed that no part of a normal pathname contains ";" but that should
8903 # okay in the real world where ";" in dirpaths is itself problematic.
8904 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8905 else
8906 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8907 fi
8908else
8909 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8910fi
8911need_lib_prefix=unknown
8912hardcode_into_libs=no
8913
8914# when you set need_version to no, make sure it does not cause -set_version
8915# flags to be left without arguments
8916need_version=unknown
8917
8918case $host_os in
8919aix3*)
8920 version_type=linux
8921 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8922 shlibpath_var=LIBPATH
8923
8924 # AIX 3 has no versioning support, so we append a major version to the name.
8925 soname_spec='${libname}${release}${shared_ext}$major'
8926 ;;
8927
8928aix4* | aix5*)
8929 version_type=linux
8930 need_lib_prefix=no
8931 need_version=no
8932 hardcode_into_libs=yes
8933 if test "$host_cpu" = ia64; then
8934 # AIX 5 supports IA64
8935 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8936 shlibpath_var=LD_LIBRARY_PATH
8937 else
8938 # With GCC up to 2.95.x, collect2 would create an import file
8939 # for dependence libraries. The import file would start with
8940 # the line `#! .'. This would cause the generated library to
8941 # depend on `.', always an invalid library. This was fixed in
8942 # development snapshots of GCC prior to 3.0.
8943 case $host_os in
8944 aix4 | aix4.[01] | aix4.[01].*)
8945 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8946 echo ' yes '
8947 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8948 :
8949 else
8950 can_build_shared=no
8951 fi
8952 ;;
8953 esac
8954 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8955 # soname into executable. Probably we can add versioning support to
8956 # collect2, so additional links can be useful in future.
8957 if test "$aix_use_runtimelinking" = yes; then
8958 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8959 # instead of lib<name>.a to let people know that these are not
8960 # typical AIX shared libraries.
8961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8962 else
8963 # We preserve .a as extension for shared libraries through AIX4.2
8964 # and later when we are not doing run time linking.
8965 library_names_spec='${libname}${release}.a $libname.a'
8966 soname_spec='${libname}${release}${shared_ext}$major'
8967 fi
8968 shlibpath_var=LIBPATH
8969 fi
8970 ;;
8971
8972amigaos*)
8973 library_names_spec='$libname.ixlibrary $libname.a'
8974 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8975 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'
8976 ;;
8977
8978beos*)
8979 library_names_spec='${libname}${shared_ext}'
8980 dynamic_linker="$host_os ld.so"
8981 shlibpath_var=LIBRARY_PATH
8982 ;;
8983
8984bsdi[45]*)
8985 version_type=linux
8986 need_version=no
8987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8988 soname_spec='${libname}${release}${shared_ext}$major'
8989 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8990 shlibpath_var=LD_LIBRARY_PATH
8991 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8992 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8993 # the default ld.so.conf also contains /usr/contrib/lib and
8994 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8995 # libtool to hard-code these into programs
8996 ;;
8997
8998cygwin* | mingw* | pw32*)
8999 version_type=windows
9000 shrext_cmds=".dll"
9001 need_version=no
9002 need_lib_prefix=no
9003
9004 case $GCC,$host_os in
9005 yes,cygwin* | yes,mingw* | yes,pw32*)
9006 library_names_spec='$libname.dll.a'
9007 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9008 postinstall_cmds='base_file=`basename \${file}`~
9009 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9010 dldir=$destdir/`dirname \$dlpath`~
9011 test -d \$dldir || mkdir -p \$dldir~
9012 $install_prog $dir/$dlname \$dldir/$dlname~
9013 chmod a+x \$dldir/$dlname'
9014 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9015 dlpath=$dir/\$dldll~
9016 $rm \$dlpath'
9017 shlibpath_overrides_runpath=yes
9018
9019 case $host_os in
9020 cygwin*)
9021 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9022 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9023 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9024 ;;
9025 mingw*)
9026 # MinGW DLLs use traditional 'lib' prefix
9027 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9028 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9029 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9030 # It is most probably a Windows format PATH printed by
9031 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9032 # path with ; separators, and with drive letters. We can handle the
9033 # drive letters (cygwin fileutils understands them), so leave them,
9034 # especially as we might pass files found there to a mingw objdump,
9035 # which wouldn't understand a cygwinified path. Ahh.
9036 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9037 else
9038 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9039 fi
9040 ;;
9041 pw32*)
9042 # pw32 DLLs use 'pw' prefix rather than 'lib'
9043 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9044 ;;
9045 esac
9046 ;;
9047
9048 *)
9049 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9050 ;;
9051 esac
9052 dynamic_linker='Win32 ld.exe'
9053 # FIXME: first we should search . and the directory the executable is in
9054 shlibpath_var=PATH
9055 ;;
9056
9057darwin* | rhapsody*)
9058 dynamic_linker="$host_os dyld"
9059 version_type=darwin
9060 need_lib_prefix=no
9061 need_version=no
9062 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9063 soname_spec='${libname}${release}${major}$shared_ext'
9064 shlibpath_overrides_runpath=yes
9065 shlibpath_var=DYLD_LIBRARY_PATH
9066 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9067 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9068 if test "$GCC" = yes; then
9069 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
9070 else
9071 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9072 fi
9073 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9074 ;;
9075
9076dgux*)
9077 version_type=linux
9078 need_lib_prefix=no
9079 need_version=no
9080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9081 soname_spec='${libname}${release}${shared_ext}$major'
9082 shlibpath_var=LD_LIBRARY_PATH
9083 ;;
9084
9085freebsd1*)
9086 dynamic_linker=no
9087 ;;
9088
9089kfreebsd*-gnu)
9090 version_type=linux
9091 need_lib_prefix=no
9092 need_version=no
9093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9094 soname_spec='${libname}${release}${shared_ext}$major'
9095 shlibpath_var=LD_LIBRARY_PATH
9096 shlibpath_overrides_runpath=no
9097 hardcode_into_libs=yes
9098 dynamic_linker='GNU ld.so'
9099 ;;
9100
9101freebsd* | dragonfly*)
9102 # DragonFly does not have aout. When/if they implement a new
9103 # versioning mechanism, adjust this.
9104 if test -x /usr/bin/objformat; then
9105 objformat=`/usr/bin/objformat`
9106 else
9107 case $host_os in
9108 freebsd[123]*) objformat=aout ;;
9109 *) objformat=elf ;;
9110 esac
9111 fi
9112 version_type=freebsd-$objformat
9113 case $version_type in
9114 freebsd-elf*)
9115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9116 need_version=no
9117 need_lib_prefix=no
9118 ;;
9119 freebsd-*)
9120 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9121 need_version=yes
9122 ;;
9123 esac
9124 shlibpath_var=LD_LIBRARY_PATH
9125 case $host_os in
9126 freebsd2*)
9127 shlibpath_overrides_runpath=yes
9128 ;;
9129 freebsd3.[01]* | freebsdelf3.[01]*)
9130 shlibpath_overrides_runpath=yes
9131 hardcode_into_libs=yes
9132 ;;
9133 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9134 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9135 shlibpath_overrides_runpath=no
9136 hardcode_into_libs=yes
9137 ;;
9138 freebsd*) # from 4.6 on
9139 shlibpath_overrides_runpath=yes
9140 hardcode_into_libs=yes
9141 ;;
9142 esac
9143 ;;
9144
9145gnu*)
9146 version_type=linux
9147 need_lib_prefix=no
9148 need_version=no
9149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9150 soname_spec='${libname}${release}${shared_ext}$major'
9151 shlibpath_var=LD_LIBRARY_PATH
9152 hardcode_into_libs=yes
9153 ;;
9154
9155hpux9* | hpux10* | hpux11*)
9156 # Give a soname corresponding to the major version so that dld.sl refuses to
9157 # link against other versions.
9158 version_type=sunos
9159 need_lib_prefix=no
9160 need_version=no
9161 case $host_cpu in
9162 ia64*)
9163 shrext_cmds='.so'
9164 hardcode_into_libs=yes
9165 dynamic_linker="$host_os dld.so"
9166 shlibpath_var=LD_LIBRARY_PATH
9167 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9169 soname_spec='${libname}${release}${shared_ext}$major'
9170 if test "X$HPUX_IA64_MODE" = X32; then
9171 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9172 else
9173 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9174 fi
9175 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9176 ;;
9177 hppa*64*)
9178 shrext_cmds='.sl'
9179 hardcode_into_libs=yes
9180 dynamic_linker="$host_os dld.sl"
9181 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9182 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9184 soname_spec='${libname}${release}${shared_ext}$major'
9185 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9186 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9187 ;;
9188 *)
9189 shrext_cmds='.sl'
9190 dynamic_linker="$host_os dld.sl"
9191 shlibpath_var=SHLIB_PATH
9192 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9194 soname_spec='${libname}${release}${shared_ext}$major'
9195 ;;
9196 esac
9197 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9198 postinstall_cmds='chmod 555 $lib'
9199 ;;
9200
9201interix3*)
9202 version_type=linux
9203 need_lib_prefix=no
9204 need_version=no
9205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9206 soname_spec='${libname}${release}${shared_ext}$major'
9207 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9208 shlibpath_var=LD_LIBRARY_PATH
9209 shlibpath_overrides_runpath=no
9210 hardcode_into_libs=yes
9211 ;;
9212
9213irix5* | irix6* | nonstopux*)
9214 case $host_os in
9215 nonstopux*) version_type=nonstopux ;;
9216 *)
9217 if test "$lt_cv_prog_gnu_ld" = yes; then
9218 version_type=linux
9219 else
9220 version_type=irix
9221 fi ;;
9222 esac
9223 need_lib_prefix=no
9224 need_version=no
9225 soname_spec='${libname}${release}${shared_ext}$major'
9226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9227 case $host_os in
9228 irix5* | nonstopux*)
9229 libsuff= shlibsuff=
9230 ;;
9231 *)
9232 case $LD in # libtool.m4 will add one of these switches to LD
9233 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9234 libsuff= shlibsuff= libmagic=32-bit;;
9235 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9236 libsuff=32 shlibsuff=N32 libmagic=N32;;
9237 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9238 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9239 *) libsuff= shlibsuff= libmagic=never-match;;
9240 esac
9241 ;;
9242 esac
9243 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9244 shlibpath_overrides_runpath=no
9245 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9246 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9247 hardcode_into_libs=yes
9248 ;;
9249
9250# No shared lib support for Linux oldld, aout, or coff.
9251linux*oldld* | linux*aout* | linux*coff*)
9252 dynamic_linker=no
9253 ;;
9254
9255# This must be Linux ELF.
9256linux*)
9257 version_type=linux
9258 need_lib_prefix=no
9259 need_version=no
9260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9261 soname_spec='${libname}${release}${shared_ext}$major'
9262 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9263 shlibpath_var=LD_LIBRARY_PATH
9264 shlibpath_overrides_runpath=no
9265 # This implies no fast_install, which is unacceptable.
9266 # Some rework will be needed to allow for fast_install
9267 # before this can be enabled.
9268 hardcode_into_libs=yes
9269
9270 # find out which ABI we are using
9271 libsuff=
9272 case "$host_cpu" in
9273 x86_64*|s390x*|powerpc64*)
64ff59ba 9274 echo '#line 9274 "configure"' > conftest.$ac_ext
d9898ee8 9275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9276 (eval $ac_compile) 2>&5
9277 ac_status=$?
9278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9279 (exit $ac_status); }; then
9280 case `/usr/bin/file conftest.$ac_objext` in
9281 *64-bit*)
9282 libsuff=64
9283 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
9284 ;;
9285 esac
9286 fi
9287 rm -rf conftest*
9288 ;;
9289 esac
9290
9291 # Append ld.so.conf contents to the search path
9292 if test -f /etc/ld.so.conf; then
64ff59ba 9293 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/^ *//;s/#.*//;/^[^\/]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
d9898ee8 9294 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
9295 fi
9296
9297 # We used to test for /lib/ld.so.1 and disable shared libraries on
9298 # powerpc, because MkLinux only supported shared libraries with the
9299 # GNU dynamic linker. Since this was broken with cross compilers,
9300 # most powerpc-linux boxes support dynamic linking these days and
9301 # people can always --disable-shared, the test was removed, and we
9302 # assume the GNU/Linux dynamic linker is in use.
9303 dynamic_linker='GNU/Linux ld.so'
9304 ;;
9305
9306knetbsd*-gnu)
9307 version_type=linux
9308 need_lib_prefix=no
9309 need_version=no
9310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9311 soname_spec='${libname}${release}${shared_ext}$major'
9312 shlibpath_var=LD_LIBRARY_PATH
9313 shlibpath_overrides_runpath=no
9314 hardcode_into_libs=yes
9315 dynamic_linker='GNU ld.so'
9316 ;;
9317
9318netbsd*)
9319 version_type=sunos
9320 need_lib_prefix=no
9321 need_version=no
9322 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9324 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9325 dynamic_linker='NetBSD (a.out) ld.so'
9326 else
9327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9328 soname_spec='${libname}${release}${shared_ext}$major'
9329 dynamic_linker='NetBSD ld.elf_so'
9330 fi
9331 shlibpath_var=LD_LIBRARY_PATH
9332 shlibpath_overrides_runpath=yes
9333 hardcode_into_libs=yes
9334 ;;
9335
9336newsos6)
9337 version_type=linux
9338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9339 shlibpath_var=LD_LIBRARY_PATH
9340 shlibpath_overrides_runpath=yes
9341 ;;
9342
9343nto-qnx*)
9344 version_type=linux
9345 need_lib_prefix=no
9346 need_version=no
9347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9348 soname_spec='${libname}${release}${shared_ext}$major'
9349 shlibpath_var=LD_LIBRARY_PATH
9350 shlibpath_overrides_runpath=yes
9351 ;;
9352
9353openbsd*)
9354 version_type=sunos
9355 sys_lib_dlsearch_path_spec="/usr/lib"
9356 need_lib_prefix=no
9357 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9358 case $host_os in
9359 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9360 *) need_version=no ;;
9361 esac
9362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9363 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9364 shlibpath_var=LD_LIBRARY_PATH
9365 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9366 case $host_os in
9367 openbsd2.[89] | openbsd2.[89].*)
9368 shlibpath_overrides_runpath=no
9369 ;;
9370 *)
9371 shlibpath_overrides_runpath=yes
9372 ;;
9373 esac
9374 else
9375 shlibpath_overrides_runpath=yes
9376 fi
9377 ;;
9378
9379os2*)
9380 libname_spec='$name'
9381 shrext_cmds=".dll"
9382 need_lib_prefix=no
9383 library_names_spec='$libname${shared_ext} $libname.a'
9384 dynamic_linker='OS/2 ld.exe'
9385 shlibpath_var=LIBPATH
9386 ;;
9387
9388osf3* | osf4* | osf5*)
9389 version_type=osf
9390 need_lib_prefix=no
9391 need_version=no
9392 soname_spec='${libname}${release}${shared_ext}$major'
9393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9394 shlibpath_var=LD_LIBRARY_PATH
9395 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9396 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9397 ;;
9398
9399solaris*)
9400 version_type=linux
9401 need_lib_prefix=no
9402 need_version=no
9403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9404 soname_spec='${libname}${release}${shared_ext}$major'
9405 shlibpath_var=LD_LIBRARY_PATH
9406 shlibpath_overrides_runpath=yes
9407 hardcode_into_libs=yes
9408 # ldd complains unless libraries are executable
9409 postinstall_cmds='chmod +x $lib'
9410 ;;
9411
9412sunos4*)
9413 version_type=sunos
9414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9415 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9416 shlibpath_var=LD_LIBRARY_PATH
9417 shlibpath_overrides_runpath=yes
9418 if test "$with_gnu_ld" = yes; then
9419 need_lib_prefix=no
9420 fi
9421 need_version=yes
9422 ;;
9423
9424sysv4 | sysv4.3*)
9425 version_type=linux
9426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9427 soname_spec='${libname}${release}${shared_ext}$major'
9428 shlibpath_var=LD_LIBRARY_PATH
9429 case $host_vendor in
9430 sni)
9431 shlibpath_overrides_runpath=no
9432 need_lib_prefix=no
9433 export_dynamic_flag_spec='${wl}-Blargedynsym'
9434 runpath_var=LD_RUN_PATH
9435 ;;
9436 siemens)
9437 need_lib_prefix=no
9438 ;;
9439 motorola)
9440 need_lib_prefix=no
9441 need_version=no
9442 shlibpath_overrides_runpath=no
9443 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9444 ;;
9445 esac
9446 ;;
9447
9448sysv4*MP*)
9449 if test -d /usr/nec ;then
9450 version_type=linux
9451 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9452 soname_spec='$libname${shared_ext}.$major'
9453 shlibpath_var=LD_LIBRARY_PATH
9454 fi
9455 ;;
9456
9457sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9458 version_type=freebsd-elf
9459 need_lib_prefix=no
9460 need_version=no
9461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9462 soname_spec='${libname}${release}${shared_ext}$major'
9463 shlibpath_var=LD_LIBRARY_PATH
9464 hardcode_into_libs=yes
9465 if test "$with_gnu_ld" = yes; then
9466 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9467 shlibpath_overrides_runpath=no
9468 else
9469 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9470 shlibpath_overrides_runpath=yes
9471 case $host_os in
9472 sco3.2v5*)
9473 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9474 ;;
9475 esac
9476 fi
9477 sys_lib_dlsearch_path_spec='/usr/lib'
9478 ;;
9479
9480uts4*)
9481 version_type=linux
9482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9483 soname_spec='${libname}${release}${shared_ext}$major'
9484 shlibpath_var=LD_LIBRARY_PATH
9485 ;;
9486
9487*)
9488 dynamic_linker=no
9489 ;;
9490esac
64ff59ba 9491{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9492echo "${ECHO_T}$dynamic_linker" >&6; }
d9898ee8 9493test "$dynamic_linker" = no && can_build_shared=no
9494
9495variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9496if test "$GCC" = yes; then
9497 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9498fi
9499
64ff59ba 9500{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9501echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
d9898ee8 9502hardcode_action=
9503if test -n "$hardcode_libdir_flag_spec" || \
9504 test -n "$runpath_var" || \
9505 test "X$hardcode_automatic" = "Xyes" ; then
9506
9507 # We can hardcode non-existant directories.
9508 if test "$hardcode_direct" != no &&
9509 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9510 # have to relink, otherwise we might link with an installed library
9511 # when we should be linking with a yet-to-be-installed one
9512 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9513 test "$hardcode_minus_L" != no; then
9514 # Linking always hardcodes the temporary library directory.
9515 hardcode_action=relink
9516 else
9517 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9518 hardcode_action=immediate
9519 fi
9520else
9521 # We cannot hardcode anything, or else we can only hardcode existing
9522 # directories.
9523 hardcode_action=unsupported
9524fi
64ff59ba 9525{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
9526echo "${ECHO_T}$hardcode_action" >&6; }
d9898ee8 9527
9528if test "$hardcode_action" = relink; then
9529 # Fast installation is not supported
9530 enable_fast_install=no
9531elif test "$shlibpath_overrides_runpath" = yes ||
9532 test "$enable_shared" = no; then
9533 # Fast installation is not necessary
9534 enable_fast_install=needless
9535fi
9536
9537striplib=
9538old_striplib=
64ff59ba 9539{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9540echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
d9898ee8 9541if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9542 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9543 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
64ff59ba 9544 { echo "$as_me:$LINENO: result: yes" >&5
9545echo "${ECHO_T}yes" >&6; }
d9898ee8 9546else
9547# FIXME - insert some real tests, host_os isn't really good enough
9548 case $host_os in
9549 darwin*)
9550 if test -n "$STRIP" ; then
9551 striplib="$STRIP -x"
64ff59ba 9552 { echo "$as_me:$LINENO: result: yes" >&5
9553echo "${ECHO_T}yes" >&6; }
d9898ee8 9554 else
64ff59ba 9555 { echo "$as_me:$LINENO: result: no" >&5
9556echo "${ECHO_T}no" >&6; }
d9898ee8 9557fi
9558 ;;
9559 *)
64ff59ba 9560 { echo "$as_me:$LINENO: result: no" >&5
9561echo "${ECHO_T}no" >&6; }
d9898ee8 9562 ;;
9563 esac
9564fi
9565
9566if test "x$enable_dlopen" != xyes; then
9567 enable_dlopen=unknown
9568 enable_dlopen_self=unknown
9569 enable_dlopen_self_static=unknown
9570else
9571 lt_cv_dlopen=no
9572 lt_cv_dlopen_libs=
9573
9574 case $host_os in
9575 beos*)
9576 lt_cv_dlopen="load_add_on"
9577 lt_cv_dlopen_libs=
9578 lt_cv_dlopen_self=yes
9579 ;;
9580
9581 mingw* | pw32*)
9582 lt_cv_dlopen="LoadLibrary"
9583 lt_cv_dlopen_libs=
9584 ;;
9585
9586 cygwin*)
9587 lt_cv_dlopen="dlopen"
9588 lt_cv_dlopen_libs=
9589 ;;
9590
9591 darwin*)
9592 # if libdl is installed we need to link against it
64ff59ba 9593 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9594echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
d9898ee8 9595if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9596 echo $ECHO_N "(cached) $ECHO_C" >&6
9597else
9598 ac_check_lib_save_LIBS=$LIBS
9599LIBS="-ldl $LIBS"
9600cat >conftest.$ac_ext <<_ACEOF
9601/* confdefs.h. */
9602_ACEOF
9603cat confdefs.h >>conftest.$ac_ext
9604cat >>conftest.$ac_ext <<_ACEOF
9605/* end confdefs.h. */
9606
64ff59ba 9607/* Override any GCC internal prototype to avoid an error.
9608 Use char because int might match the return type of a GCC
9609 builtin and then its argument prototype would still apply. */
d9898ee8 9610#ifdef __cplusplus
9611extern "C"
9612#endif
d9898ee8 9613char dlopen ();
9614int
9615main ()
9616{
64ff59ba 9617return dlopen ();
d9898ee8 9618 ;
9619 return 0;
9620}
9621_ACEOF
9622rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 9623if { (ac_try="$ac_link"
9624case "(($ac_try" in
9625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9626 *) ac_try_echo=$ac_try;;
9627esac
9628eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9629 (eval "$ac_link") 2>conftest.er1
d9898ee8 9630 ac_status=$?
9631 grep -v '^ *+' conftest.er1 >conftest.err
9632 rm -f conftest.er1
9633 cat conftest.err >&5
9634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 9635 (exit $ac_status); } && {
9636 test -z "$ac_c_werror_flag" ||
9637 test ! -s conftest.err
9638 } && test -s conftest$ac_exeext &&
9639 $as_test_x conftest$ac_exeext; then
d9898ee8 9640 ac_cv_lib_dl_dlopen=yes
9641else
9642 echo "$as_me: failed program was:" >&5
9643sed 's/^/| /' conftest.$ac_ext >&5
9644
64ff59ba 9645 ac_cv_lib_dl_dlopen=no
d9898ee8 9646fi
64ff59ba 9647
9648rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 9649 conftest$ac_exeext conftest.$ac_ext
9650LIBS=$ac_check_lib_save_LIBS
9651fi
64ff59ba 9652{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9653echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
d9898ee8 9654if test $ac_cv_lib_dl_dlopen = yes; then
9655 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9656else
9657
9658 lt_cv_dlopen="dyld"
9659 lt_cv_dlopen_libs=
9660 lt_cv_dlopen_self=yes
9661
9662fi
9663
9664 ;;
9665
9666 *)
64ff59ba 9667 { echo "$as_me:$LINENO: checking for shl_load" >&5
9668echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
d9898ee8 9669if test "${ac_cv_func_shl_load+set}" = set; then
9670 echo $ECHO_N "(cached) $ECHO_C" >&6
9671else
9672 cat >conftest.$ac_ext <<_ACEOF
9673/* confdefs.h. */
9674_ACEOF
9675cat confdefs.h >>conftest.$ac_ext
9676cat >>conftest.$ac_ext <<_ACEOF
9677/* end confdefs.h. */
9678/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9679 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9680#define shl_load innocuous_shl_load
9681
9682/* System header to define __stub macros and hopefully few prototypes,
9683 which can conflict with char shl_load (); below.
9684 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9685 <limits.h> exists even on freestanding compilers. */
9686
9687#ifdef __STDC__
9688# include <limits.h>
9689#else
9690# include <assert.h>
9691#endif
9692
9693#undef shl_load
9694
64ff59ba 9695/* Override any GCC internal prototype to avoid an error.
9696 Use char because int might match the return type of a GCC
9697 builtin and then its argument prototype would still apply. */
d9898ee8 9698#ifdef __cplusplus
9699extern "C"
d9898ee8 9700#endif
d9898ee8 9701char shl_load ();
9702/* The GNU C library defines this for functions which it implements
9703 to always fail with ENOSYS. Some functions are actually named
9704 something starting with __ and the normal name is an alias. */
64ff59ba 9705#if defined __stub_shl_load || defined __stub___shl_load
d9898ee8 9706choke me
d9898ee8 9707#endif
9708
9709int
9710main ()
9711{
64ff59ba 9712return shl_load ();
d9898ee8 9713 ;
9714 return 0;
9715}
9716_ACEOF
9717rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 9718if { (ac_try="$ac_link"
9719case "(($ac_try" in
9720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9721 *) ac_try_echo=$ac_try;;
9722esac
9723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9724 (eval "$ac_link") 2>conftest.er1
d9898ee8 9725 ac_status=$?
9726 grep -v '^ *+' conftest.er1 >conftest.err
9727 rm -f conftest.er1
9728 cat conftest.err >&5
9729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 9730 (exit $ac_status); } && {
9731 test -z "$ac_c_werror_flag" ||
9732 test ! -s conftest.err
9733 } && test -s conftest$ac_exeext &&
9734 $as_test_x conftest$ac_exeext; then
d9898ee8 9735 ac_cv_func_shl_load=yes
9736else
9737 echo "$as_me: failed program was:" >&5
9738sed 's/^/| /' conftest.$ac_ext >&5
9739
64ff59ba 9740 ac_cv_func_shl_load=no
d9898ee8 9741fi
64ff59ba 9742
9743rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 9744 conftest$ac_exeext conftest.$ac_ext
9745fi
64ff59ba 9746{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9747echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
d9898ee8 9748if test $ac_cv_func_shl_load = yes; then
9749 lt_cv_dlopen="shl_load"
9750else
64ff59ba 9751 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9752echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
d9898ee8 9753if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9754 echo $ECHO_N "(cached) $ECHO_C" >&6
9755else
9756 ac_check_lib_save_LIBS=$LIBS
9757LIBS="-ldld $LIBS"
9758cat >conftest.$ac_ext <<_ACEOF
9759/* confdefs.h. */
9760_ACEOF
9761cat confdefs.h >>conftest.$ac_ext
9762cat >>conftest.$ac_ext <<_ACEOF
9763/* end confdefs.h. */
9764
64ff59ba 9765/* Override any GCC internal prototype to avoid an error.
9766 Use char because int might match the return type of a GCC
9767 builtin and then its argument prototype would still apply. */
d9898ee8 9768#ifdef __cplusplus
9769extern "C"
9770#endif
d9898ee8 9771char shl_load ();
9772int
9773main ()
9774{
64ff59ba 9775return shl_load ();
d9898ee8 9776 ;
9777 return 0;
9778}
9779_ACEOF
9780rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 9781if { (ac_try="$ac_link"
9782case "(($ac_try" in
9783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9784 *) ac_try_echo=$ac_try;;
9785esac
9786eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9787 (eval "$ac_link") 2>conftest.er1
d9898ee8 9788 ac_status=$?
9789 grep -v '^ *+' conftest.er1 >conftest.err
9790 rm -f conftest.er1
9791 cat conftest.err >&5
9792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 9793 (exit $ac_status); } && {
9794 test -z "$ac_c_werror_flag" ||
9795 test ! -s conftest.err
9796 } && test -s conftest$ac_exeext &&
9797 $as_test_x conftest$ac_exeext; then
d9898ee8 9798 ac_cv_lib_dld_shl_load=yes
9799else
9800 echo "$as_me: failed program was:" >&5
9801sed 's/^/| /' conftest.$ac_ext >&5
9802
64ff59ba 9803 ac_cv_lib_dld_shl_load=no
d9898ee8 9804fi
64ff59ba 9805
9806rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 9807 conftest$ac_exeext conftest.$ac_ext
9808LIBS=$ac_check_lib_save_LIBS
9809fi
64ff59ba 9810{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9811echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
d9898ee8 9812if test $ac_cv_lib_dld_shl_load = yes; then
9813 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9814else
64ff59ba 9815 { echo "$as_me:$LINENO: checking for dlopen" >&5
9816echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
d9898ee8 9817if test "${ac_cv_func_dlopen+set}" = set; then
9818 echo $ECHO_N "(cached) $ECHO_C" >&6
9819else
9820 cat >conftest.$ac_ext <<_ACEOF
9821/* confdefs.h. */
9822_ACEOF
9823cat confdefs.h >>conftest.$ac_ext
9824cat >>conftest.$ac_ext <<_ACEOF
9825/* end confdefs.h. */
9826/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9827 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9828#define dlopen innocuous_dlopen
9829
9830/* System header to define __stub macros and hopefully few prototypes,
9831 which can conflict with char dlopen (); below.
9832 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9833 <limits.h> exists even on freestanding compilers. */
9834
9835#ifdef __STDC__
9836# include <limits.h>
9837#else
9838# include <assert.h>
9839#endif
9840
9841#undef dlopen
9842
64ff59ba 9843/* Override any GCC internal prototype to avoid an error.
9844 Use char because int might match the return type of a GCC
9845 builtin and then its argument prototype would still apply. */
d9898ee8 9846#ifdef __cplusplus
9847extern "C"
d9898ee8 9848#endif
d9898ee8 9849char dlopen ();
9850/* The GNU C library defines this for functions which it implements
9851 to always fail with ENOSYS. Some functions are actually named
9852 something starting with __ and the normal name is an alias. */
64ff59ba 9853#if defined __stub_dlopen || defined __stub___dlopen
d9898ee8 9854choke me
d9898ee8 9855#endif
9856
9857int
9858main ()
9859{
64ff59ba 9860return dlopen ();
d9898ee8 9861 ;
9862 return 0;
9863}
9864_ACEOF
9865rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 9866if { (ac_try="$ac_link"
9867case "(($ac_try" in
9868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9869 *) ac_try_echo=$ac_try;;
9870esac
9871eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9872 (eval "$ac_link") 2>conftest.er1
d9898ee8 9873 ac_status=$?
9874 grep -v '^ *+' conftest.er1 >conftest.err
9875 rm -f conftest.er1
9876 cat conftest.err >&5
9877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 9878 (exit $ac_status); } && {
9879 test -z "$ac_c_werror_flag" ||
9880 test ! -s conftest.err
9881 } && test -s conftest$ac_exeext &&
9882 $as_test_x conftest$ac_exeext; then
d9898ee8 9883 ac_cv_func_dlopen=yes
9884else
9885 echo "$as_me: failed program was:" >&5
9886sed 's/^/| /' conftest.$ac_ext >&5
9887
64ff59ba 9888 ac_cv_func_dlopen=no
d9898ee8 9889fi
64ff59ba 9890
9891rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 9892 conftest$ac_exeext conftest.$ac_ext
9893fi
64ff59ba 9894{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9895echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
d9898ee8 9896if test $ac_cv_func_dlopen = yes; then
9897 lt_cv_dlopen="dlopen"
9898else
64ff59ba 9899 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9900echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
d9898ee8 9901if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9902 echo $ECHO_N "(cached) $ECHO_C" >&6
9903else
9904 ac_check_lib_save_LIBS=$LIBS
9905LIBS="-ldl $LIBS"
9906cat >conftest.$ac_ext <<_ACEOF
9907/* confdefs.h. */
9908_ACEOF
9909cat confdefs.h >>conftest.$ac_ext
9910cat >>conftest.$ac_ext <<_ACEOF
9911/* end confdefs.h. */
9912
64ff59ba 9913/* Override any GCC internal prototype to avoid an error.
9914 Use char because int might match the return type of a GCC
9915 builtin and then its argument prototype would still apply. */
d9898ee8 9916#ifdef __cplusplus
9917extern "C"
9918#endif
d9898ee8 9919char dlopen ();
9920int
9921main ()
9922{
64ff59ba 9923return dlopen ();
d9898ee8 9924 ;
9925 return 0;
9926}
9927_ACEOF
9928rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 9929if { (ac_try="$ac_link"
9930case "(($ac_try" in
9931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9932 *) ac_try_echo=$ac_try;;
9933esac
9934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9935 (eval "$ac_link") 2>conftest.er1
d9898ee8 9936 ac_status=$?
9937 grep -v '^ *+' conftest.er1 >conftest.err
9938 rm -f conftest.er1
9939 cat conftest.err >&5
9940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 9941 (exit $ac_status); } && {
9942 test -z "$ac_c_werror_flag" ||
9943 test ! -s conftest.err
9944 } && test -s conftest$ac_exeext &&
9945 $as_test_x conftest$ac_exeext; then
d9898ee8 9946 ac_cv_lib_dl_dlopen=yes
9947else
9948 echo "$as_me: failed program was:" >&5
9949sed 's/^/| /' conftest.$ac_ext >&5
9950
64ff59ba 9951 ac_cv_lib_dl_dlopen=no
d9898ee8 9952fi
64ff59ba 9953
9954rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 9955 conftest$ac_exeext conftest.$ac_ext
9956LIBS=$ac_check_lib_save_LIBS
9957fi
64ff59ba 9958{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9959echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
d9898ee8 9960if test $ac_cv_lib_dl_dlopen = yes; then
9961 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9962else
64ff59ba 9963 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9964echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
d9898ee8 9965if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9966 echo $ECHO_N "(cached) $ECHO_C" >&6
9967else
9968 ac_check_lib_save_LIBS=$LIBS
9969LIBS="-lsvld $LIBS"
9970cat >conftest.$ac_ext <<_ACEOF
9971/* confdefs.h. */
9972_ACEOF
9973cat confdefs.h >>conftest.$ac_ext
9974cat >>conftest.$ac_ext <<_ACEOF
9975/* end confdefs.h. */
9976
64ff59ba 9977/* Override any GCC internal prototype to avoid an error.
9978 Use char because int might match the return type of a GCC
9979 builtin and then its argument prototype would still apply. */
d9898ee8 9980#ifdef __cplusplus
9981extern "C"
9982#endif
d9898ee8 9983char dlopen ();
9984int
9985main ()
9986{
64ff59ba 9987return dlopen ();
d9898ee8 9988 ;
9989 return 0;
9990}
9991_ACEOF
9992rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 9993if { (ac_try="$ac_link"
9994case "(($ac_try" in
9995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9996 *) ac_try_echo=$ac_try;;
9997esac
9998eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9999 (eval "$ac_link") 2>conftest.er1
d9898ee8 10000 ac_status=$?
10001 grep -v '^ *+' conftest.er1 >conftest.err
10002 rm -f conftest.er1
10003 cat conftest.err >&5
10004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 10005 (exit $ac_status); } && {
10006 test -z "$ac_c_werror_flag" ||
10007 test ! -s conftest.err
10008 } && test -s conftest$ac_exeext &&
10009 $as_test_x conftest$ac_exeext; then
d9898ee8 10010 ac_cv_lib_svld_dlopen=yes
10011else
10012 echo "$as_me: failed program was:" >&5
10013sed 's/^/| /' conftest.$ac_ext >&5
10014
64ff59ba 10015 ac_cv_lib_svld_dlopen=no
d9898ee8 10016fi
64ff59ba 10017
10018rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 10019 conftest$ac_exeext conftest.$ac_ext
10020LIBS=$ac_check_lib_save_LIBS
10021fi
64ff59ba 10022{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10023echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
d9898ee8 10024if test $ac_cv_lib_svld_dlopen = yes; then
10025 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10026else
64ff59ba 10027 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10028echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
d9898ee8 10029if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10030 echo $ECHO_N "(cached) $ECHO_C" >&6
10031else
10032 ac_check_lib_save_LIBS=$LIBS
10033LIBS="-ldld $LIBS"
10034cat >conftest.$ac_ext <<_ACEOF
10035/* confdefs.h. */
10036_ACEOF
10037cat confdefs.h >>conftest.$ac_ext
10038cat >>conftest.$ac_ext <<_ACEOF
10039/* end confdefs.h. */
10040
64ff59ba 10041/* Override any GCC internal prototype to avoid an error.
10042 Use char because int might match the return type of a GCC
10043 builtin and then its argument prototype would still apply. */
d9898ee8 10044#ifdef __cplusplus
10045extern "C"
10046#endif
d9898ee8 10047char dld_link ();
10048int
10049main ()
10050{
64ff59ba 10051return dld_link ();
d9898ee8 10052 ;
10053 return 0;
10054}
10055_ACEOF
10056rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 10057if { (ac_try="$ac_link"
10058case "(($ac_try" in
10059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10060 *) ac_try_echo=$ac_try;;
10061esac
10062eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10063 (eval "$ac_link") 2>conftest.er1
d9898ee8 10064 ac_status=$?
10065 grep -v '^ *+' conftest.er1 >conftest.err
10066 rm -f conftest.er1
10067 cat conftest.err >&5
10068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 10069 (exit $ac_status); } && {
10070 test -z "$ac_c_werror_flag" ||
10071 test ! -s conftest.err
10072 } && test -s conftest$ac_exeext &&
10073 $as_test_x conftest$ac_exeext; then
d9898ee8 10074 ac_cv_lib_dld_dld_link=yes
10075else
10076 echo "$as_me: failed program was:" >&5
10077sed 's/^/| /' conftest.$ac_ext >&5
10078
64ff59ba 10079 ac_cv_lib_dld_dld_link=no
d9898ee8 10080fi
64ff59ba 10081
10082rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 10083 conftest$ac_exeext conftest.$ac_ext
10084LIBS=$ac_check_lib_save_LIBS
10085fi
64ff59ba 10086{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10087echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
d9898ee8 10088if test $ac_cv_lib_dld_dld_link = yes; then
10089 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10090fi
10091
10092
10093fi
10094
10095
10096fi
10097
10098
10099fi
10100
10101
10102fi
10103
10104
10105fi
10106
10107 ;;
10108 esac
10109
10110 if test "x$lt_cv_dlopen" != xno; then
10111 enable_dlopen=yes
10112 else
10113 enable_dlopen=no
10114 fi
10115
10116 case $lt_cv_dlopen in
10117 dlopen)
10118 save_CPPFLAGS="$CPPFLAGS"
10119 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10120
10121 save_LDFLAGS="$LDFLAGS"
10122 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10123
10124 save_LIBS="$LIBS"
10125 LIBS="$lt_cv_dlopen_libs $LIBS"
10126
64ff59ba 10127 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10128echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
d9898ee8 10129if test "${lt_cv_dlopen_self+set}" = set; then
10130 echo $ECHO_N "(cached) $ECHO_C" >&6
10131else
10132 if test "$cross_compiling" = yes; then :
10133 lt_cv_dlopen_self=cross
10134else
10135 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10136 lt_status=$lt_dlunknown
10137 cat > conftest.$ac_ext <<EOF
64ff59ba 10138#line 10138 "configure"
d9898ee8 10139#include "confdefs.h"
10140
10141#if HAVE_DLFCN_H
10142#include <dlfcn.h>
10143#endif
10144
10145#include <stdio.h>
10146
10147#ifdef RTLD_GLOBAL
10148# define LT_DLGLOBAL RTLD_GLOBAL
10149#else
10150# ifdef DL_GLOBAL
10151# define LT_DLGLOBAL DL_GLOBAL
10152# else
10153# define LT_DLGLOBAL 0
10154# endif
10155#endif
10156
10157/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10158 find out it does not work in some platform. */
10159#ifndef LT_DLLAZY_OR_NOW
10160# ifdef RTLD_LAZY
10161# define LT_DLLAZY_OR_NOW RTLD_LAZY
10162# else
10163# ifdef DL_LAZY
10164# define LT_DLLAZY_OR_NOW DL_LAZY
10165# else
10166# ifdef RTLD_NOW
10167# define LT_DLLAZY_OR_NOW RTLD_NOW
10168# else
10169# ifdef DL_NOW
10170# define LT_DLLAZY_OR_NOW DL_NOW
10171# else
10172# define LT_DLLAZY_OR_NOW 0
10173# endif
10174# endif
10175# endif
10176# endif
10177#endif
10178
10179#ifdef __cplusplus
10180extern "C" void exit (int);
10181#endif
10182
10183void fnord() { int i=42;}
10184int main ()
10185{
10186 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10187 int status = $lt_dlunknown;
10188
10189 if (self)
10190 {
10191 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10192 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10193 /* dlclose (self); */
10194 }
10195 else
10196 puts (dlerror ());
10197
10198 exit (status);
10199}
10200EOF
10201 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10202 (eval $ac_link) 2>&5
10203 ac_status=$?
10204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10205 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10206 (./conftest; exit; ) >&5 2>/dev/null
10207 lt_status=$?
10208 case x$lt_status in
10209 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10210 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10211 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10212 esac
10213 else :
10214 # compilation failed
10215 lt_cv_dlopen_self=no
10216 fi
10217fi
10218rm -fr conftest*
10219
10220
10221fi
64ff59ba 10222{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10223echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
d9898ee8 10224
10225 if test "x$lt_cv_dlopen_self" = xyes; then
10226 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
64ff59ba 10227 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10228echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
d9898ee8 10229if test "${lt_cv_dlopen_self_static+set}" = set; then
10230 echo $ECHO_N "(cached) $ECHO_C" >&6
10231else
10232 if test "$cross_compiling" = yes; then :
10233 lt_cv_dlopen_self_static=cross
10234else
10235 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10236 lt_status=$lt_dlunknown
10237 cat > conftest.$ac_ext <<EOF
64ff59ba 10238#line 10238 "configure"
d9898ee8 10239#include "confdefs.h"
10240
10241#if HAVE_DLFCN_H
10242#include <dlfcn.h>
10243#endif
10244
10245#include <stdio.h>
10246
10247#ifdef RTLD_GLOBAL
10248# define LT_DLGLOBAL RTLD_GLOBAL
10249#else
10250# ifdef DL_GLOBAL
10251# define LT_DLGLOBAL DL_GLOBAL
10252# else
10253# define LT_DLGLOBAL 0
10254# endif
10255#endif
10256
10257/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10258 find out it does not work in some platform. */
10259#ifndef LT_DLLAZY_OR_NOW
10260# ifdef RTLD_LAZY
10261# define LT_DLLAZY_OR_NOW RTLD_LAZY
10262# else
10263# ifdef DL_LAZY
10264# define LT_DLLAZY_OR_NOW DL_LAZY
10265# else
10266# ifdef RTLD_NOW
10267# define LT_DLLAZY_OR_NOW RTLD_NOW
10268# else
10269# ifdef DL_NOW
10270# define LT_DLLAZY_OR_NOW DL_NOW
10271# else
10272# define LT_DLLAZY_OR_NOW 0
10273# endif
10274# endif
10275# endif
10276# endif
10277#endif
10278
10279#ifdef __cplusplus
10280extern "C" void exit (int);
10281#endif
10282
10283void fnord() { int i=42;}
10284int main ()
10285{
10286 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10287 int status = $lt_dlunknown;
10288
10289 if (self)
10290 {
10291 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10292 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10293 /* dlclose (self); */
10294 }
10295 else
10296 puts (dlerror ());
10297
10298 exit (status);
10299}
10300EOF
10301 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10302 (eval $ac_link) 2>&5
10303 ac_status=$?
10304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10305 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10306 (./conftest; exit; ) >&5 2>/dev/null
10307 lt_status=$?
10308 case x$lt_status in
10309 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10310 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10311 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10312 esac
10313 else :
10314 # compilation failed
10315 lt_cv_dlopen_self_static=no
10316 fi
10317fi
10318rm -fr conftest*
10319
10320
10321fi
64ff59ba 10322{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10323echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
d9898ee8 10324 fi
10325
10326 CPPFLAGS="$save_CPPFLAGS"
10327 LDFLAGS="$save_LDFLAGS"
10328 LIBS="$save_LIBS"
10329 ;;
10330 esac
10331
10332 case $lt_cv_dlopen_self in
10333 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10334 *) enable_dlopen_self=unknown ;;
10335 esac
10336
10337 case $lt_cv_dlopen_self_static in
10338 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10339 *) enable_dlopen_self_static=unknown ;;
10340 esac
10341fi
10342
10343
10344# Report which library types will actually be built
64ff59ba 10345{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10346echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10347{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
10348echo "${ECHO_T}$can_build_shared" >&6; }
d9898ee8 10349
64ff59ba 10350{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10351echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
d9898ee8 10352test "$can_build_shared" = "no" && enable_shared=no
10353
10354# On AIX, shared libraries and static libraries use the same namespace, and
10355# are all built from PIC.
10356case $host_os in
10357aix3*)
10358 test "$enable_shared" = yes && enable_static=no
10359 if test -n "$RANLIB"; then
10360 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10361 postinstall_cmds='$RANLIB $lib'
10362 fi
10363 ;;
10364
10365aix4* | aix5*)
10366 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10367 test "$enable_shared" = yes && enable_static=no
10368 fi
10369 ;;
10370esac
64ff59ba 10371{ echo "$as_me:$LINENO: result: $enable_shared" >&5
10372echo "${ECHO_T}$enable_shared" >&6; }
d9898ee8 10373
64ff59ba 10374{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10375echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
d9898ee8 10376# Make sure either enable_shared or enable_static is yes.
10377test "$enable_shared" = yes || enable_static=yes
64ff59ba 10378{ echo "$as_me:$LINENO: result: $enable_static" >&5
10379echo "${ECHO_T}$enable_static" >&6; }
d9898ee8 10380
10381# The else clause should only fire when bootstrapping the
10382# libtool distribution, otherwise you forgot to ship ltmain.sh
10383# with your package, and you will get complaints that there are
10384# no rules to generate ltmain.sh.
10385if test -f "$ltmain"; then
10386 # See if we are running on zsh, and set the options which allow our commands through
10387 # without removal of \ escapes.
10388 if test -n "${ZSH_VERSION+set}" ; then
10389 setopt NO_GLOB_SUBST
10390 fi
10391 # Now quote all the things that may contain metacharacters while being
10392 # careful not to overquote the AC_SUBSTed values. We take copies of the
10393 # variables and quote the copies for generation of the libtool script.
10394 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10395 SED SHELL STRIP \
10396 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10397 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10398 deplibs_check_method reload_flag reload_cmds need_locks \
10399 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10400 lt_cv_sys_global_symbol_to_c_name_address \
10401 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10402 old_postinstall_cmds old_postuninstall_cmds \
10403 compiler \
10404 CC \
10405 LD \
10406 lt_prog_compiler_wl \
10407 lt_prog_compiler_pic \
10408 lt_prog_compiler_static \
10409 lt_prog_compiler_no_builtin_flag \
10410 export_dynamic_flag_spec \
10411 thread_safe_flag_spec \
10412 whole_archive_flag_spec \
10413 enable_shared_with_static_runtimes \
10414 old_archive_cmds \
10415 old_archive_from_new_cmds \
10416 predep_objects \
10417 postdep_objects \
10418 predeps \
10419 postdeps \
10420 compiler_lib_search_path \
10421 archive_cmds \
10422 archive_expsym_cmds \
10423 postinstall_cmds \
10424 postuninstall_cmds \
10425 old_archive_from_expsyms_cmds \
10426 allow_undefined_flag \
10427 no_undefined_flag \
10428 export_symbols_cmds \
10429 hardcode_libdir_flag_spec \
10430 hardcode_libdir_flag_spec_ld \
10431 hardcode_libdir_separator \
10432 hardcode_automatic \
10433 module_cmds \
10434 module_expsym_cmds \
10435 lt_cv_prog_compiler_c_o \
10436 exclude_expsyms \
10437 include_expsyms; do
10438
10439 case $var in
10440 old_archive_cmds | \
10441 old_archive_from_new_cmds | \
10442 archive_cmds | \
10443 archive_expsym_cmds | \
10444 module_cmds | \
10445 module_expsym_cmds | \
10446 old_archive_from_expsyms_cmds | \
10447 export_symbols_cmds | \
10448 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10449 postinstall_cmds | postuninstall_cmds | \
10450 old_postinstall_cmds | old_postuninstall_cmds | \
10451 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10452 # Double-quote double-evaled strings.
10453 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10454 ;;
10455 *)
10456 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10457 ;;
10458 esac
10459 done
10460
10461 case $lt_echo in
10462 *'\$0 --fallback-echo"')
10463 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10464 ;;
10465 esac
10466
10467cfgfile="${ofile}T"
10468 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10469 $rm -f "$cfgfile"
10470 { echo "$as_me:$LINENO: creating $ofile" >&5
10471echo "$as_me: creating $ofile" >&6;}
10472
10473 cat <<__EOF__ >> "$cfgfile"
10474#! $SHELL
10475
10476# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10477# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10478# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10479#
10480# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10481# Free Software Foundation, Inc.
10482#
10483# This file is part of GNU Libtool:
10484# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10485#
10486# This program is free software; you can redistribute it and/or modify
10487# it under the terms of the GNU General Public License as published by
10488# the Free Software Foundation; either version 2 of the License, or
10489# (at your option) any later version.
10490#
10491# This program is distributed in the hope that it will be useful, but
10492# WITHOUT ANY WARRANTY; without even the implied warranty of
10493# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10494# General Public License for more details.
10495#
10496# You should have received a copy of the GNU General Public License
10497# along with this program; if not, write to the Free Software
10498# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10499#
10500# As a special exception to the GNU General Public License, if you
10501# distribute this file as part of a program that contains a
10502# configuration script generated by Autoconf, you may include it under
10503# the same distribution terms that you use for the rest of that program.
10504
10505# A sed program that does not truncate output.
10506SED=$lt_SED
10507
10508# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10509Xsed="$SED -e 1s/^X//"
10510
10511# The HP-UX ksh and POSIX shell print the target directory to stdout
10512# if CDPATH is set.
10513(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10514
10515# The names of the tagged configurations supported by this script.
10516available_tags=
10517
10518# ### BEGIN LIBTOOL CONFIG
10519
10520# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10521
10522# Shell to use when invoking shell scripts.
10523SHELL=$lt_SHELL
10524
10525# Whether or not to build shared libraries.
10526build_libtool_libs=$enable_shared
10527
10528# Whether or not to build static libraries.
10529build_old_libs=$enable_static
10530
10531# Whether or not to add -lc for building shared libraries.
10532build_libtool_need_lc=$archive_cmds_need_lc
10533
10534# Whether or not to disallow shared libs when runtime libs are static
10535allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10536
10537# Whether or not to optimize for fast installation.
10538fast_install=$enable_fast_install
10539
10540# The host system.
10541host_alias=$host_alias
10542host=$host
10543host_os=$host_os
10544
10545# The build system.
10546build_alias=$build_alias
10547build=$build
10548build_os=$build_os
10549
10550# An echo program that does not interpret backslashes.
10551echo=$lt_echo
10552
10553# The archiver.
10554AR=$lt_AR
10555AR_FLAGS=$lt_AR_FLAGS
10556
10557# A C compiler.
10558LTCC=$lt_LTCC
10559
10560# LTCC compiler flags.
10561LTCFLAGS=$lt_LTCFLAGS
10562
10563# A language-specific compiler.
10564CC=$lt_compiler
10565
10566# Is the compiler the GNU C compiler?
10567with_gcc=$GCC
10568
d9898ee8 10569# An ERE matcher.
10570EGREP=$lt_EGREP
10571
10572# The linker used to build libraries.
10573LD=$lt_LD
10574
10575# Whether we need hard or soft links.
10576LN_S=$lt_LN_S
10577
10578# A BSD-compatible nm program.
10579NM=$lt_NM
10580
10581# A symbol stripping program
10582STRIP=$lt_STRIP
10583
10584# Used to examine libraries when file_magic_cmd begins "file"
10585MAGIC_CMD=$MAGIC_CMD
10586
10587# Used on cygwin: DLL creation program.
10588DLLTOOL="$DLLTOOL"
10589
10590# Used on cygwin: object dumper.
10591OBJDUMP="$OBJDUMP"
10592
10593# Used on cygwin: assembler.
10594AS="$AS"
10595
10596# The name of the directory that contains temporary libtool files.
10597objdir=$objdir
10598
10599# How to create reloadable object files.
10600reload_flag=$lt_reload_flag
10601reload_cmds=$lt_reload_cmds
10602
10603# How to pass a linker flag through the compiler.
10604wl=$lt_lt_prog_compiler_wl
10605
10606# Object file suffix (normally "o").
10607objext="$ac_objext"
10608
10609# Old archive suffix (normally "a").
10610libext="$libext"
10611
10612# Shared library suffix (normally ".so").
10613shrext_cmds='$shrext_cmds'
10614
10615# Executable file suffix (normally "").
10616exeext="$exeext"
10617
10618# Additional compiler flags for building library objects.
10619pic_flag=$lt_lt_prog_compiler_pic
10620pic_mode=$pic_mode
10621
10622# What is the maximum length of a command?
10623max_cmd_len=$lt_cv_sys_max_cmd_len
10624
10625# Does compiler simultaneously support -c and -o options?
10626compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10627
10628# Must we lock files when doing compilation?
10629need_locks=$lt_need_locks
10630
10631# Do we need the lib prefix for modules?
10632need_lib_prefix=$need_lib_prefix
10633
10634# Do we need a version for libraries?
10635need_version=$need_version
10636
10637# Whether dlopen is supported.
10638dlopen_support=$enable_dlopen
10639
10640# Whether dlopen of programs is supported.
10641dlopen_self=$enable_dlopen_self
10642
10643# Whether dlopen of statically linked programs is supported.
10644dlopen_self_static=$enable_dlopen_self_static
10645
10646# Compiler flag to prevent dynamic linking.
10647link_static_flag=$lt_lt_prog_compiler_static
10648
10649# Compiler flag to turn off builtin functions.
10650no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10651
10652# Compiler flag to allow reflexive dlopens.
10653export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10654
10655# Compiler flag to generate shared objects directly from archives.
10656whole_archive_flag_spec=$lt_whole_archive_flag_spec
10657
10658# Compiler flag to generate thread-safe objects.
10659thread_safe_flag_spec=$lt_thread_safe_flag_spec
10660
10661# Library versioning type.
10662version_type=$version_type
10663
10664# Format of library name prefix.
10665libname_spec=$lt_libname_spec
10666
10667# List of archive names. First name is the real one, the rest are links.
10668# The last name is the one that the linker finds with -lNAME.
10669library_names_spec=$lt_library_names_spec
10670
10671# The coded name of the library, if different from the real name.
10672soname_spec=$lt_soname_spec
10673
10674# Commands used to build and install an old-style archive.
10675RANLIB=$lt_RANLIB
10676old_archive_cmds=$lt_old_archive_cmds
10677old_postinstall_cmds=$lt_old_postinstall_cmds
10678old_postuninstall_cmds=$lt_old_postuninstall_cmds
10679
10680# Create an old-style archive from a shared archive.
10681old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10682
10683# Create a temporary old-style archive to link instead of a shared archive.
10684old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10685
10686# Commands used to build and install a shared archive.
10687archive_cmds=$lt_archive_cmds
10688archive_expsym_cmds=$lt_archive_expsym_cmds
10689postinstall_cmds=$lt_postinstall_cmds
10690postuninstall_cmds=$lt_postuninstall_cmds
10691
10692# Commands used to build a loadable module (assumed same as above if empty)
10693module_cmds=$lt_module_cmds
10694module_expsym_cmds=$lt_module_expsym_cmds
10695
10696# Commands to strip libraries.
10697old_striplib=$lt_old_striplib
10698striplib=$lt_striplib
10699
10700# Dependencies to place before the objects being linked to create a
10701# shared library.
64ff59ba 10702predep_objects=$lt_predep_objects
d9898ee8 10703
10704# Dependencies to place after the objects being linked to create a
10705# shared library.
64ff59ba 10706postdep_objects=$lt_postdep_objects
d9898ee8 10707
10708# Dependencies to place before the objects being linked to create a
10709# shared library.
10710predeps=$lt_predeps
10711
10712# Dependencies to place after the objects being linked to create a
10713# shared library.
10714postdeps=$lt_postdeps
10715
10716# The library search path used internally by the compiler when linking
10717# a shared library.
64ff59ba 10718compiler_lib_search_path=$lt_compiler_lib_search_path
d9898ee8 10719
10720# Method to check whether dependent libraries are shared objects.
10721deplibs_check_method=$lt_deplibs_check_method
10722
10723# Command to use when deplibs_check_method == file_magic.
10724file_magic_cmd=$lt_file_magic_cmd
10725
10726# Flag that allows shared libraries with undefined symbols to be built.
10727allow_undefined_flag=$lt_allow_undefined_flag
10728
10729# Flag that forces no undefined symbols.
10730no_undefined_flag=$lt_no_undefined_flag
10731
10732# Commands used to finish a libtool library installation in a directory.
10733finish_cmds=$lt_finish_cmds
10734
10735# Same as above, but a single script fragment to be evaled but not shown.
10736finish_eval=$lt_finish_eval
10737
10738# Take the output of nm and produce a listing of raw symbols and C names.
10739global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10740
10741# Transform the output of nm in a proper C declaration
10742global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10743
10744# Transform the output of nm in a C name address pair
10745global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10746
10747# This is the shared library runtime path variable.
10748runpath_var=$runpath_var
10749
10750# This is the shared library path variable.
10751shlibpath_var=$shlibpath_var
10752
10753# Is shlibpath searched before the hard-coded library search path?
10754shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10755
10756# How to hardcode a shared library path into an executable.
10757hardcode_action=$hardcode_action
10758
10759# Whether we should hardcode library paths into libraries.
10760hardcode_into_libs=$hardcode_into_libs
10761
10762# Flag to hardcode \$libdir into a binary during linking.
10763# This must work even if \$libdir does not exist.
10764hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10765
10766# If ld is used when linking, flag to hardcode \$libdir into
10767# a binary during linking. This must work even if \$libdir does
10768# not exist.
10769hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10770
10771# Whether we need a single -rpath flag with a separated argument.
10772hardcode_libdir_separator=$lt_hardcode_libdir_separator
10773
10774# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10775# resulting binary.
10776hardcode_direct=$hardcode_direct
10777
10778# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10779# resulting binary.
10780hardcode_minus_L=$hardcode_minus_L
10781
10782# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10783# the resulting binary.
10784hardcode_shlibpath_var=$hardcode_shlibpath_var
10785
10786# Set to yes if building a shared library automatically hardcodes DIR into the library
10787# and all subsequent libraries and executables linked against it.
10788hardcode_automatic=$hardcode_automatic
10789
10790# Variables whose values should be saved in libtool wrapper scripts and
10791# restored at relink time.
10792variables_saved_for_relink="$variables_saved_for_relink"
10793
10794# Whether libtool must link a program against all its dependency libraries.
10795link_all_deplibs=$link_all_deplibs
10796
10797# Compile-time system search path for libraries
64ff59ba 10798sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
d9898ee8 10799
10800# Run-time system search path for libraries
10801sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10802
10803# Fix the shell variable \$srcfile for the compiler.
10804fix_srcfile_path="$fix_srcfile_path"
10805
10806# Set to yes if exported symbols are required.
10807always_export_symbols=$always_export_symbols
10808
10809# The commands to list exported symbols.
10810export_symbols_cmds=$lt_export_symbols_cmds
10811
10812# The commands to extract the exported symbol list from a shared archive.
10813extract_expsyms_cmds=$lt_extract_expsyms_cmds
10814
10815# Symbols that should not be listed in the preloaded symbols.
10816exclude_expsyms=$lt_exclude_expsyms
10817
10818# Symbols that must always be exported.
10819include_expsyms=$lt_include_expsyms
10820
10821# ### END LIBTOOL CONFIG
10822
10823__EOF__
10824
10825
10826 case $host_os in
10827 aix3*)
10828 cat <<\EOF >> "$cfgfile"
10829
10830# AIX sometimes has problems with the GCC collect2 program. For some
10831# reason, if we set the COLLECT_NAMES environment variable, the problems
10832# vanish in a puff of smoke.
10833if test "X${COLLECT_NAMES+set}" != Xset; then
10834 COLLECT_NAMES=
10835 export COLLECT_NAMES
10836fi
10837EOF
10838 ;;
10839 esac
10840
10841 # We use sed instead of cat because bash on DJGPP gets confused if
10842 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10843 # text mode, it properly converts lines to CR/LF. This bash problem
10844 # is reportedly fixed, but why not run on old versions too?
10845 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10846
10847 mv -f "$cfgfile" "$ofile" || \
10848 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10849 chmod +x "$ofile"
10850
10851else
10852 # If there is no Makefile yet, we rely on a make rule to execute
10853 # `config.status --recheck' to rerun these tests and create the
10854 # libtool script then.
10855 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10856 if test -f "$ltmain_in"; then
10857 test -f Makefile && make "$ltmain"
10858 fi
10859fi
10860
10861
10862ac_ext=c
10863ac_cpp='$CPP $CPPFLAGS'
10864ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10865ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10866ac_compiler_gnu=$ac_cv_c_compiler_gnu
10867
10868CC="$lt_save_CC"
10869
10870
64ff59ba 10871# Check whether --with-tags was given.
d9898ee8 10872if test "${with_tags+set}" = set; then
64ff59ba 10873 withval=$with_tags; tagnames="$withval"
10874fi
10875
d9898ee8 10876
10877if test -f "$ltmain" && test -n "$tagnames"; then
10878 if test ! -f "${ofile}"; then
10879 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10880echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10881 fi
10882
10883 if test -z "$LTCC"; then
10884 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10885 if test -z "$LTCC"; then
10886 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10887echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10888 else
10889 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10890echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10891 fi
10892 fi
10893 if test -z "$LTCFLAGS"; then
10894 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10895 fi
10896
10897 # Extract list of available tagged configurations in $ofile.
10898 # Note that this assumes the entire list is on one line.
10899 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10900
10901 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10902 for tagname in $tagnames; do
10903 IFS="$lt_save_ifs"
10904 # Check whether tagname contains only valid characters
10905 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10906 "") ;;
10907 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10908echo "$as_me: error: invalid tag name: $tagname" >&2;}
10909 { (exit 1); exit 1; }; }
10910 ;;
10911 esac
10912
10913 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10914 then
10915 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10916echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10917 { (exit 1); exit 1; }; }
10918 fi
10919
10920 # Update the list of available tags.
10921 if test -n "$tagname"; then
10922 echo appending configuration tag \"$tagname\" to $ofile
10923
10924 case $tagname in
10925 CXX)
10926 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10927 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10928 (test "X$CXX" != "Xg++"))) ; then
64ff59ba 10929 ac_ext=cpp
d9898ee8 10930ac_cpp='$CXXCPP $CPPFLAGS'
10931ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10932ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10933ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10934
10935
10936
10937
10938archive_cmds_need_lc_CXX=no
10939allow_undefined_flag_CXX=
10940always_export_symbols_CXX=no
10941archive_expsym_cmds_CXX=
10942export_dynamic_flag_spec_CXX=
10943hardcode_direct_CXX=no
10944hardcode_libdir_flag_spec_CXX=
10945hardcode_libdir_flag_spec_ld_CXX=
10946hardcode_libdir_separator_CXX=
10947hardcode_minus_L_CXX=no
10948hardcode_shlibpath_var_CXX=unsupported
10949hardcode_automatic_CXX=no
10950module_cmds_CXX=
10951module_expsym_cmds_CXX=
10952link_all_deplibs_CXX=unknown
10953old_archive_cmds_CXX=$old_archive_cmds
10954no_undefined_flag_CXX=
10955whole_archive_flag_spec_CXX=
10956enable_shared_with_static_runtimes_CXX=no
10957
10958# Dependencies to place before and after the object being linked:
10959predep_objects_CXX=
10960postdep_objects_CXX=
10961predeps_CXX=
10962postdeps_CXX=
10963compiler_lib_search_path_CXX=
10964
10965# Source file extension for C++ test sources.
10966ac_ext=cpp
10967
10968# Object file extension for compiled C++ test sources.
10969objext=o
10970objext_CXX=$objext
10971
10972# Code to be used in simple compile tests
10973lt_simple_compile_test_code="int some_variable = 0;\n"
10974
10975# Code to be used in simple link tests
10976lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10977
10978# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10979
10980# If no C compiler was specified, use CC.
10981LTCC=${LTCC-"$CC"}
10982
10983# If no C compiler flags were specified, use CFLAGS.
10984LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10985
10986# Allow CC to be a program name with arguments.
10987compiler=$CC
10988
10989
10990# save warnings/boilerplate of simple test code
10991ac_outfile=conftest.$ac_objext
10992printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10993eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10994_lt_compiler_boilerplate=`cat conftest.err`
10995$rm conftest*
10996
10997ac_outfile=conftest.$ac_objext
10998printf "$lt_simple_link_test_code" >conftest.$ac_ext
10999eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11000_lt_linker_boilerplate=`cat conftest.err`
11001$rm conftest*
11002
11003
11004# Allow CC to be a program name with arguments.
11005lt_save_CC=$CC
11006lt_save_LD=$LD
11007lt_save_GCC=$GCC
11008GCC=$GXX
11009lt_save_with_gnu_ld=$with_gnu_ld
11010lt_save_path_LD=$lt_cv_path_LD
11011if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11012 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11013else
11014 $as_unset lt_cv_prog_gnu_ld
11015fi
11016if test -n "${lt_cv_path_LDCXX+set}"; then
11017 lt_cv_path_LD=$lt_cv_path_LDCXX
11018else
11019 $as_unset lt_cv_path_LD
11020fi
11021test -z "${LDCXX+set}" || LD=$LDCXX
11022CC=${CXX-"c++"}
11023compiler=$CC
11024compiler_CXX=$CC
11025for cc_temp in $compiler""; do
11026 case $cc_temp in
11027 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11028 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11029 \-*) ;;
11030 *) break;;
11031 esac
11032done
11033cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11034
11035
11036# We don't want -fno-exception wen compiling C++ code, so set the
11037# no_builtin_flag separately
11038if test "$GXX" = yes; then
11039 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11040else
11041 lt_prog_compiler_no_builtin_flag_CXX=
11042fi
11043
11044if test "$GXX" = yes; then
11045 # Set up default GNU C++ configuration
11046
11047
64ff59ba 11048# Check whether --with-gnu-ld was given.
d9898ee8 11049if test "${with_gnu_ld+set}" = set; then
64ff59ba 11050 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
d9898ee8 11051else
11052 with_gnu_ld=no
64ff59ba 11053fi
11054
d9898ee8 11055ac_prog=ld
11056if test "$GCC" = yes; then
11057 # Check if gcc -print-prog-name=ld gives a path.
64ff59ba 11058 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11059echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
d9898ee8 11060 case $host in
11061 *-*-mingw*)
11062 # gcc leaves a trailing carriage return which upsets mingw
11063 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11064 *)
11065 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11066 esac
11067 case $ac_prog in
11068 # Accept absolute paths.
11069 [\\/]* | ?:[\\/]*)
11070 re_direlt='/[^/][^/]*/\.\./'
11071 # Canonicalize the pathname of ld
11072 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11073 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11074 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11075 done
11076 test -z "$LD" && LD="$ac_prog"
11077 ;;
11078 "")
11079 # If it fails, then pretend we aren't using GCC.
11080 ac_prog=ld
11081 ;;
11082 *)
11083 # If it is relative, then search for the first ld in PATH.
11084 with_gnu_ld=unknown
11085 ;;
11086 esac
11087elif test "$with_gnu_ld" = yes; then
64ff59ba 11088 { echo "$as_me:$LINENO: checking for GNU ld" >&5
11089echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
d9898ee8 11090else
64ff59ba 11091 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11092echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
d9898ee8 11093fi
11094if test "${lt_cv_path_LD+set}" = set; then
11095 echo $ECHO_N "(cached) $ECHO_C" >&6
11096else
11097 if test -z "$LD"; then
11098 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11099 for ac_dir in $PATH; do
11100 IFS="$lt_save_ifs"
11101 test -z "$ac_dir" && ac_dir=.
11102 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11103 lt_cv_path_LD="$ac_dir/$ac_prog"
11104 # Check to see if the program is GNU ld. I'd rather use --version,
11105 # but apparently some variants of GNU ld only accept -v.
11106 # Break only if it was the GNU/non-GNU ld that we prefer.
11107 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11108 *GNU* | *'with BFD'*)
11109 test "$with_gnu_ld" != no && break
11110 ;;
11111 *)
11112 test "$with_gnu_ld" != yes && break
11113 ;;
11114 esac
11115 fi
11116 done
11117 IFS="$lt_save_ifs"
11118else
11119 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11120fi
11121fi
11122
11123LD="$lt_cv_path_LD"
11124if test -n "$LD"; then
64ff59ba 11125 { echo "$as_me:$LINENO: result: $LD" >&5
11126echo "${ECHO_T}$LD" >&6; }
d9898ee8 11127else
64ff59ba 11128 { echo "$as_me:$LINENO: result: no" >&5
11129echo "${ECHO_T}no" >&6; }
d9898ee8 11130fi
11131test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11132echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11133 { (exit 1); exit 1; }; }
64ff59ba 11134{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11135echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
d9898ee8 11136if test "${lt_cv_prog_gnu_ld+set}" = set; then
11137 echo $ECHO_N "(cached) $ECHO_C" >&6
11138else
11139 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11140case `$LD -v 2>&1 </dev/null` in
11141*GNU* | *'with BFD'*)
11142 lt_cv_prog_gnu_ld=yes
11143 ;;
11144*)
11145 lt_cv_prog_gnu_ld=no
11146 ;;
11147esac
11148fi
64ff59ba 11149{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11150echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
d9898ee8 11151with_gnu_ld=$lt_cv_prog_gnu_ld
11152
11153
11154
11155 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11156 # archiving commands below assume that GNU ld is being used.
11157 if test "$with_gnu_ld" = yes; then
11158 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11159 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11160
11161 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11162 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11163
11164 # If archive_cmds runs LD, not CC, wlarc should be empty
11165 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11166 # investigate it a little bit more. (MM)
11167 wlarc='${wl}'
11168
11169 # ancient GNU ld didn't support --whole-archive et. al.
11170 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11171 grep 'no-whole-archive' > /dev/null; then
11172 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11173 else
11174 whole_archive_flag_spec_CXX=
11175 fi
11176 else
11177 with_gnu_ld=no
11178 wlarc=
11179
11180 # A generic and very simple default shared library creation
11181 # command for GNU C++ for the case where it uses the native
11182 # linker, instead of GNU ld. If possible, this setting should
11183 # overridden to take advantage of the native linker features on
11184 # the platform it is being used on.
11185 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11186 fi
11187
11188 # Commands to make compiler produce verbose output that lists
11189 # what "hidden" libraries, object files and flags are used when
11190 # linking a shared library.
11191 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11192
11193else
11194 GXX=no
11195 with_gnu_ld=no
11196 wlarc=
11197fi
11198
11199# PORTME: fill in a description of your system's C++ link characteristics
64ff59ba 11200{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11201echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
d9898ee8 11202ld_shlibs_CXX=yes
11203case $host_os in
11204 aix3*)
11205 # FIXME: insert proper C++ library support
11206 ld_shlibs_CXX=no
11207 ;;
11208 aix4* | aix5*)
11209 if test "$host_cpu" = ia64; then
11210 # On IA64, the linker does run time linking by default, so we don't
11211 # have to do anything special.
11212 aix_use_runtimelinking=no
11213 exp_sym_flag='-Bexport'
11214 no_entry_flag=""
11215 else
11216 aix_use_runtimelinking=no
11217
11218 # Test if we are trying to use run time linking or normal
11219 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11220 # need to do runtime linking.
11221 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11222 for ld_flag in $LDFLAGS; do
11223 case $ld_flag in
11224 *-brtl*)
11225 aix_use_runtimelinking=yes
11226 break
11227 ;;
11228 esac
11229 done
11230 ;;
11231 esac
11232
11233 exp_sym_flag='-bexport'
11234 no_entry_flag='-bnoentry'
11235 fi
11236
11237 # When large executables or shared objects are built, AIX ld can
11238 # have problems creating the table of contents. If linking a library
11239 # or program results in "error TOC overflow" add -mminimal-toc to
11240 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11241 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11242
11243 archive_cmds_CXX=''
11244 hardcode_direct_CXX=yes
11245 hardcode_libdir_separator_CXX=':'
11246 link_all_deplibs_CXX=yes
11247
11248 if test "$GXX" = yes; then
11249 case $host_os in aix4.[012]|aix4.[012].*)
11250 # We only want to do this on AIX 4.2 and lower, the check
11251 # below for broken collect2 doesn't work under 4.3+
11252 collect2name=`${CC} -print-prog-name=collect2`
11253 if test -f "$collect2name" && \
11254 strings "$collect2name" | grep resolve_lib_name >/dev/null
11255 then
11256 # We have reworked collect2
11257 hardcode_direct_CXX=yes
11258 else
11259 # We have old collect2
11260 hardcode_direct_CXX=unsupported
11261 # It fails to find uninstalled libraries when the uninstalled
11262 # path is not listed in the libpath. Setting hardcode_minus_L
11263 # to unsupported forces relinking
11264 hardcode_minus_L_CXX=yes
11265 hardcode_libdir_flag_spec_CXX='-L$libdir'
11266 hardcode_libdir_separator_CXX=
11267 fi
11268 ;;
11269 esac
11270 shared_flag='-shared'
11271 if test "$aix_use_runtimelinking" = yes; then
11272 shared_flag="$shared_flag "'${wl}-G'
11273 fi
11274 else
11275 # not using gcc
11276 if test "$host_cpu" = ia64; then
11277 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11278 # chokes on -Wl,-G. The following line is correct:
11279 shared_flag='-G'
11280 else
11281 if test "$aix_use_runtimelinking" = yes; then
11282 shared_flag='${wl}-G'
11283 else
11284 shared_flag='${wl}-bM:SRE'
11285 fi
11286 fi
11287 fi
11288
11289 # It seems that -bexpall does not export symbols beginning with
11290 # underscore (_), so it is better to generate a list of symbols to export.
11291 always_export_symbols_CXX=yes
11292 if test "$aix_use_runtimelinking" = yes; then
11293 # Warning - without using the other runtime loading flags (-brtl),
11294 # -berok will link without error, but may produce a broken library.
11295 allow_undefined_flag_CXX='-berok'
11296 # Determine the default libpath from the value encoded in an empty executable.
11297 cat >conftest.$ac_ext <<_ACEOF
11298/* confdefs.h. */
11299_ACEOF
11300cat confdefs.h >>conftest.$ac_ext
11301cat >>conftest.$ac_ext <<_ACEOF
11302/* end confdefs.h. */
11303
11304int
11305main ()
11306{
11307
11308 ;
11309 return 0;
11310}
11311_ACEOF
11312rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 11313if { (ac_try="$ac_link"
11314case "(($ac_try" in
11315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11316 *) ac_try_echo=$ac_try;;
11317esac
11318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11319 (eval "$ac_link") 2>conftest.er1
d9898ee8 11320 ac_status=$?
11321 grep -v '^ *+' conftest.er1 >conftest.err
11322 rm -f conftest.er1
11323 cat conftest.err >&5
11324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 11325 (exit $ac_status); } && {
11326 test -z "$ac_cxx_werror_flag" ||
11327 test ! -s conftest.err
11328 } && test -s conftest$ac_exeext &&
11329 $as_test_x conftest$ac_exeext; then
d9898ee8 11330
11331aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11332}'`
11333# Check for a 64-bit object if we didn't find anything.
11334if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11335}'`; fi
11336else
11337 echo "$as_me: failed program was:" >&5
11338sed 's/^/| /' conftest.$ac_ext >&5
11339
64ff59ba 11340
d9898ee8 11341fi
64ff59ba 11342
11343rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 11344 conftest$ac_exeext conftest.$ac_ext
11345if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11346
11347 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11348
11349 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11350 else
11351 if test "$host_cpu" = ia64; then
11352 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11353 allow_undefined_flag_CXX="-z nodefs"
11354 archive_expsym_cmds_CXX="\$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"
11355 else
11356 # Determine the default libpath from the value encoded in an empty executable.
11357 cat >conftest.$ac_ext <<_ACEOF
11358/* confdefs.h. */
11359_ACEOF
11360cat confdefs.h >>conftest.$ac_ext
11361cat >>conftest.$ac_ext <<_ACEOF
11362/* end confdefs.h. */
11363
11364int
11365main ()
11366{
11367
11368 ;
11369 return 0;
11370}
11371_ACEOF
11372rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 11373if { (ac_try="$ac_link"
11374case "(($ac_try" in
11375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11376 *) ac_try_echo=$ac_try;;
11377esac
11378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11379 (eval "$ac_link") 2>conftest.er1
d9898ee8 11380 ac_status=$?
11381 grep -v '^ *+' conftest.er1 >conftest.err
11382 rm -f conftest.er1
11383 cat conftest.err >&5
11384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 11385 (exit $ac_status); } && {
11386 test -z "$ac_cxx_werror_flag" ||
11387 test ! -s conftest.err
11388 } && test -s conftest$ac_exeext &&
11389 $as_test_x conftest$ac_exeext; then
d9898ee8 11390
11391aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11392}'`
11393# Check for a 64-bit object if we didn't find anything.
11394if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11395}'`; fi
11396else
11397 echo "$as_me: failed program was:" >&5
11398sed 's/^/| /' conftest.$ac_ext >&5
11399
64ff59ba 11400
d9898ee8 11401fi
64ff59ba 11402
11403rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 11404 conftest$ac_exeext conftest.$ac_ext
11405if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11406
11407 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11408 # Warning - without using the other run time loading flags,
11409 # -berok will link without error, but may produce a broken library.
11410 no_undefined_flag_CXX=' ${wl}-bernotok'
11411 allow_undefined_flag_CXX=' ${wl}-berok'
11412 # Exported symbols can be pulled into shared objects from archives
11413 whole_archive_flag_spec_CXX='$convenience'
11414 archive_cmds_need_lc_CXX=yes
11415 # This is similar to how AIX traditionally builds its shared libraries.
11416 archive_expsym_cmds_CXX="\$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'
11417 fi
11418 fi
11419 ;;
11420
11421 beos*)
11422 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11423 allow_undefined_flag_CXX=unsupported
11424 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11425 # support --undefined. This deserves some investigation. FIXME
11426 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11427 else
11428 ld_shlibs_CXX=no
11429 fi
11430 ;;
11431
11432 chorus*)
11433 case $cc_basename in
11434 *)
11435 # FIXME: insert proper C++ library support
11436 ld_shlibs_CXX=no
11437 ;;
11438 esac
11439 ;;
11440
11441 cygwin* | mingw* | pw32*)
11442 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11443 # as there is no search path for DLLs.
11444 hardcode_libdir_flag_spec_CXX='-L$libdir'
11445 allow_undefined_flag_CXX=unsupported
11446 always_export_symbols_CXX=no
11447 enable_shared_with_static_runtimes_CXX=yes
11448
11449 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11450 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11451 # If the export-symbols file already is a .def file (1st line
11452 # is EXPORTS), use it as is; otherwise, prepend...
11453 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11454 cp $export_symbols $output_objdir/$soname.def;
11455 else
11456 echo EXPORTS > $output_objdir/$soname.def;
11457 cat $export_symbols >> $output_objdir/$soname.def;
11458 fi~
11459 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11460 else
11461 ld_shlibs_CXX=no
11462 fi
11463 ;;
11464 darwin* | rhapsody*)
11465 case $host_os in
11466 rhapsody* | darwin1.[012])
11467 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11468 ;;
11469 *) # Darwin 1.3 on
11470 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11471 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11472 else
11473 case ${MACOSX_DEPLOYMENT_TARGET} in
11474 10.[012])
11475 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11476 ;;
11477 10.*)
11478 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11479 ;;
11480 esac
11481 fi
11482 ;;
11483 esac
11484 archive_cmds_need_lc_CXX=no
11485 hardcode_direct_CXX=no
11486 hardcode_automatic_CXX=yes
11487 hardcode_shlibpath_var_CXX=unsupported
11488 whole_archive_flag_spec_CXX=''
11489 link_all_deplibs_CXX=yes
11490
11491 if test "$GXX" = yes ; then
11492 lt_int_apple_cc_single_mod=no
11493 output_verbose_link_cmd='echo'
11494 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11495 lt_int_apple_cc_single_mod=yes
11496 fi
11497 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11498 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11499 else
11500 archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11501 fi
11502 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11503 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11504 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11505 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11506 else
11507 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11508 fi
11509 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11510 else
11511 case $cc_basename in
11512 xlc*)
11513 output_verbose_link_cmd='echo'
11514 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
11515 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11516 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11517 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11518 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11519 ;;
11520 *)
11521 ld_shlibs_CXX=no
11522 ;;
11523 esac
11524 fi
11525 ;;
11526
11527 dgux*)
11528 case $cc_basename in
11529 ec++*)
11530 # FIXME: insert proper C++ library support
11531 ld_shlibs_CXX=no
11532 ;;
11533 ghcx*)
11534 # Green Hills C++ Compiler
11535 # FIXME: insert proper C++ library support
11536 ld_shlibs_CXX=no
11537 ;;
11538 *)
11539 # FIXME: insert proper C++ library support
11540 ld_shlibs_CXX=no
11541 ;;
11542 esac
11543 ;;
11544 freebsd[12]*)
11545 # C++ shared libraries reported to be fairly broken before switch to ELF
11546 ld_shlibs_CXX=no
11547 ;;
11548 freebsd-elf*)
11549 archive_cmds_need_lc_CXX=no
11550 ;;
11551 freebsd* | kfreebsd*-gnu | dragonfly*)
11552 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11553 # conventions
11554 ld_shlibs_CXX=yes
11555 ;;
11556 gnu*)
11557 ;;
11558 hpux9*)
11559 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11560 hardcode_libdir_separator_CXX=:
11561 export_dynamic_flag_spec_CXX='${wl}-E'
11562 hardcode_direct_CXX=yes
11563 hardcode_minus_L_CXX=yes # Not in the search PATH,
11564 # but as the default
11565 # location of the library.
11566
11567 case $cc_basename in
11568 CC*)
11569 # FIXME: insert proper C++ library support
11570 ld_shlibs_CXX=no
11571 ;;
11572 aCC*)
11573 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11574 # Commands to make compiler produce verbose output that lists
11575 # what "hidden" libraries, object files and flags are used when
11576 # linking a shared library.
11577 #
11578 # There doesn't appear to be a way to prevent this compiler from
11579 # explicitly linking system object files so we need to strip them
11580 # from the output so that they don't get included in the library
11581 # dependencies.
11582 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11583 ;;
11584 *)
11585 if test "$GXX" = yes; then
11586 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11587 else
11588 # FIXME: insert proper C++ library support
11589 ld_shlibs_CXX=no
11590 fi
11591 ;;
11592 esac
11593 ;;
11594 hpux10*|hpux11*)
11595 if test $with_gnu_ld = no; then
11596 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11597 hardcode_libdir_separator_CXX=:
11598
11599 case $host_cpu in
11600 hppa*64*|ia64*)
11601 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11602 ;;
11603 *)
11604 export_dynamic_flag_spec_CXX='${wl}-E'
11605 ;;
11606 esac
11607 fi
11608 case $host_cpu in
11609 hppa*64*|ia64*)
11610 hardcode_direct_CXX=no
11611 hardcode_shlibpath_var_CXX=no
11612 ;;
11613 *)
11614 hardcode_direct_CXX=yes
11615 hardcode_minus_L_CXX=yes # Not in the search PATH,
11616 # but as the default
11617 # location of the library.
11618 ;;
11619 esac
11620
11621 case $cc_basename in
11622 CC*)
11623 # FIXME: insert proper C++ library support
11624 ld_shlibs_CXX=no
11625 ;;
11626 aCC*)
11627 case $host_cpu in
11628 hppa*64*)
11629 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11630 ;;
11631 ia64*)
11632 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11633 ;;
11634 *)
11635 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11636 ;;
11637 esac
11638 # Commands to make compiler produce verbose output that lists
11639 # what "hidden" libraries, object files and flags are used when
11640 # linking a shared library.
11641 #
11642 # There doesn't appear to be a way to prevent this compiler from
11643 # explicitly linking system object files so we need to strip them
11644 # from the output so that they don't get included in the library
11645 # dependencies.
11646 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11647 ;;
11648 *)
11649 if test "$GXX" = yes; then
11650 if test $with_gnu_ld = no; then
11651 case $host_cpu in
11652 hppa*64*)
11653 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11654 ;;
11655 ia64*)
11656 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11657 ;;
11658 *)
11659 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11660 ;;
11661 esac
11662 fi
11663 else
11664 # FIXME: insert proper C++ library support
11665 ld_shlibs_CXX=no
11666 fi
11667 ;;
11668 esac
11669 ;;
11670 interix3*)
11671 hardcode_direct_CXX=no
11672 hardcode_shlibpath_var_CXX=no
11673 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11674 export_dynamic_flag_spec_CXX='${wl}-E'
11675 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11676 # Instead, shared libraries are loaded at an image base (0x10000000 by
11677 # default) and relocated if they conflict, which is a slow very memory
11678 # consuming and fragmenting process. To avoid this, we pick a random,
11679 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11680 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11681 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11682 archive_expsym_cmds_CXX='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'
11683 ;;
11684 irix5* | irix6*)
11685 case $cc_basename in
11686 CC*)
11687 # SGI C++
11688 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11689
11690 # Archives containing C++ object files must be created using
11691 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11692 # necessary to make sure instantiated templates are included
11693 # in the archive.
11694 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11695 ;;
11696 *)
11697 if test "$GXX" = yes; then
11698 if test "$with_gnu_ld" = no; then
11699 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11700 else
11701 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
11702 fi
11703 fi
11704 link_all_deplibs_CXX=yes
11705 ;;
11706 esac
11707 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11708 hardcode_libdir_separator_CXX=:
11709 ;;
11710 linux*)
11711 case $cc_basename in
11712 KCC*)
11713 # Kuck and Associates, Inc. (KAI) C++ Compiler
11714
11715 # KCC will only create a shared library if the output file
11716 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11717 # to its proper name (with version) after linking.
11718 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11719 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
11720 # Commands to make compiler produce verbose output that lists
11721 # what "hidden" libraries, object files and flags are used when
11722 # linking a shared library.
11723 #
11724 # There doesn't appear to be a way to prevent this compiler from
11725 # explicitly linking system object files so we need to strip them
11726 # from the output so that they don't get included in the library
11727 # dependencies.
11728 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11729
11730 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11731 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11732
11733 # Archives containing C++ object files must be created using
11734 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11735 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11736 ;;
11737 icpc*)
11738 # Intel C++
11739 with_gnu_ld=yes
11740 # version 8.0 and above of icpc choke on multiply defined symbols
11741 # if we add $predep_objects and $postdep_objects, however 7.1 and
11742 # earlier do not add the objects themselves.
11743 case `$CC -V 2>&1` in
11744 *"Version 7."*)
11745 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11746 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11747 ;;
11748 *) # Version 8.0 or newer
11749 tmp_idyn=
11750 case $host_cpu in
11751 ia64*) tmp_idyn=' -i_dynamic';;
11752 esac
11753 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11754 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11755 ;;
11756 esac
11757 archive_cmds_need_lc_CXX=no
11758 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11759 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11760 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11761 ;;
11762 pgCC*)
11763 # Portland Group C++ compiler
11764 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11765 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
11766
11767 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11768 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11769 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11770 ;;
11771 cxx*)
11772 # Compaq C++
11773 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11774 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
11775
11776 runpath_var=LD_RUN_PATH
11777 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11778 hardcode_libdir_separator_CXX=:
11779
11780 # Commands to make compiler produce verbose output that lists
11781 # what "hidden" libraries, object files and flags are used when
11782 # linking a shared library.
11783 #
11784 # There doesn't appear to be a way to prevent this compiler from
11785 # explicitly linking system object files so we need to strip them
11786 # from the output so that they don't get included in the library
11787 # dependencies.
11788 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11789 ;;
11790 esac
11791 ;;
11792 lynxos*)
11793 # FIXME: insert proper C++ library support
11794 ld_shlibs_CXX=no
11795 ;;
11796 m88k*)
11797 # FIXME: insert proper C++ library support
11798 ld_shlibs_CXX=no
11799 ;;
11800 mvs*)
11801 case $cc_basename in
11802 cxx*)
11803 # FIXME: insert proper C++ library support
11804 ld_shlibs_CXX=no
11805 ;;
11806 *)
11807 # FIXME: insert proper C++ library support
11808 ld_shlibs_CXX=no
11809 ;;
11810 esac
11811 ;;
11812 netbsd*)
11813 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11814 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11815 wlarc=
11816 hardcode_libdir_flag_spec_CXX='-R$libdir'
11817 hardcode_direct_CXX=yes
11818 hardcode_shlibpath_var_CXX=no
11819 fi
11820 # Workaround some broken pre-1.5 toolchains
11821 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11822 ;;
11823 openbsd2*)
11824 # C++ shared libraries are fairly broken
11825 ld_shlibs_CXX=no
11826 ;;
11827 openbsd*)
11828 hardcode_direct_CXX=yes
11829 hardcode_shlibpath_var_CXX=no
11830 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11831 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11832 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11833 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11834 export_dynamic_flag_spec_CXX='${wl}-E'
11835 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11836 fi
11837 output_verbose_link_cmd='echo'
11838 ;;
11839 osf3*)
11840 case $cc_basename in
11841 KCC*)
11842 # Kuck and Associates, Inc. (KAI) C++ Compiler
11843
11844 # KCC will only create a shared library if the output file
11845 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11846 # to its proper name (with version) after linking.
11847 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11848
11849 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11850 hardcode_libdir_separator_CXX=:
11851
11852 # Archives containing C++ object files must be created using
11853 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11854 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11855
11856 ;;
11857 RCC*)
11858 # Rational C++ 2.4.1
11859 # FIXME: insert proper C++ library support
11860 ld_shlibs_CXX=no
11861 ;;
11862 cxx*)
11863 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11864 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11865
11866 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11867 hardcode_libdir_separator_CXX=:
11868
11869 # Commands to make compiler produce verbose output that lists
11870 # what "hidden" libraries, object files and flags are used when
11871 # linking a shared library.
11872 #
11873 # There doesn't appear to be a way to prevent this compiler from
11874 # explicitly linking system object files so we need to strip them
11875 # from the output so that they don't get included in the library
11876 # dependencies.
11877 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11878 ;;
11879 *)
11880 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11881 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11882 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11883
11884 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11885 hardcode_libdir_separator_CXX=:
11886
11887 # Commands to make compiler produce verbose output that lists
11888 # what "hidden" libraries, object files and flags are used when
11889 # linking a shared library.
11890 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11891
11892 else
11893 # FIXME: insert proper C++ library support
11894 ld_shlibs_CXX=no
11895 fi
11896 ;;
11897 esac
11898 ;;
11899 osf4* | osf5*)
11900 case $cc_basename in
11901 KCC*)
11902 # Kuck and Associates, Inc. (KAI) C++ Compiler
11903
11904 # KCC will only create a shared library if the output file
11905 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11906 # to its proper name (with version) after linking.
11907 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11908
11909 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11910 hardcode_libdir_separator_CXX=:
11911
11912 # Archives containing C++ object files must be created using
11913 # the KAI C++ compiler.
11914 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11915 ;;
11916 RCC*)
11917 # Rational C++ 2.4.1
11918 # FIXME: insert proper C++ library support
11919 ld_shlibs_CXX=no
11920 ;;
11921 cxx*)
11922 allow_undefined_flag_CXX=' -expect_unresolved \*'
11923 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11924 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11925 echo "-hidden">> $lib.exp~
11926 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
11927 $rm $lib.exp'
11928
11929 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11930 hardcode_libdir_separator_CXX=:
11931
11932 # Commands to make compiler produce verbose output that lists
11933 # what "hidden" libraries, object files and flags are used when
11934 # linking a shared library.
11935 #
11936 # There doesn't appear to be a way to prevent this compiler from
11937 # explicitly linking system object files so we need to strip them
11938 # from the output so that they don't get included in the library
11939 # dependencies.
11940 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11941 ;;
11942 *)
11943 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11944 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11945 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11946
11947 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11948 hardcode_libdir_separator_CXX=:
11949
11950 # Commands to make compiler produce verbose output that lists
11951 # what "hidden" libraries, object files and flags are used when
11952 # linking a shared library.
11953 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11954
11955 else
11956 # FIXME: insert proper C++ library support
11957 ld_shlibs_CXX=no
11958 fi
11959 ;;
11960 esac
11961 ;;
11962 psos*)
11963 # FIXME: insert proper C++ library support
11964 ld_shlibs_CXX=no
11965 ;;
11966 sunos4*)
11967 case $cc_basename in
11968 CC*)
11969 # Sun C++ 4.x
11970 # FIXME: insert proper C++ library support
11971 ld_shlibs_CXX=no
11972 ;;
11973 lcc*)
11974 # Lucid
11975 # FIXME: insert proper C++ library support
11976 ld_shlibs_CXX=no
11977 ;;
11978 *)
11979 # FIXME: insert proper C++ library support
11980 ld_shlibs_CXX=no
11981 ;;
11982 esac
11983 ;;
11984 solaris*)
11985 case $cc_basename in
11986 CC*)
11987 # Sun C++ 4.2, 5.x and Centerline C++
11988 archive_cmds_need_lc_CXX=yes
11989 no_undefined_flag_CXX=' -zdefs'
11990 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11991 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11992 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11993
11994 hardcode_libdir_flag_spec_CXX='-R$libdir'
11995 hardcode_shlibpath_var_CXX=no
11996 case $host_os in
11997 solaris2.[0-5] | solaris2.[0-5].*) ;;
11998 *)
11999 # The C++ compiler is used as linker so we must use $wl
12000 # flag to pass the commands to the underlying system
12001 # linker. We must also pass each convience library through
12002 # to the system linker between allextract/defaultextract.
12003 # The C++ compiler will combine linker options so we
12004 # cannot just pass the convience library names through
12005 # without $wl.
12006 # Supported since Solaris 2.6 (maybe 2.5.1?)
12007 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
12008 ;;
12009 esac
12010 link_all_deplibs_CXX=yes
12011
12012 output_verbose_link_cmd='echo'
12013
12014 # Archives containing C++ object files must be created using
12015 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12016 # necessary to make sure instantiated templates are included
12017 # in the archive.
12018 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12019 ;;
12020 gcx*)
12021 # Green Hills C++ Compiler
12022 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12023
12024 # The C++ compiler must be used to create the archive.
12025 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12026 ;;
12027 *)
12028 # GNU C++ compiler with Solaris linker
12029 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12030 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12031 if $CC --version | grep -v '^2\.7' > /dev/null; then
12032 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12033 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12034 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12035
12036 # Commands to make compiler produce verbose output that lists
12037 # what "hidden" libraries, object files and flags are used when
12038 # linking a shared library.
12039 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12040 else
12041 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12042 # platform.
12043 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12044 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12045 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12046
12047 # Commands to make compiler produce verbose output that lists
12048 # what "hidden" libraries, object files and flags are used when
12049 # linking a shared library.
12050 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12051 fi
12052
12053 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12054 fi
12055 ;;
12056 esac
12057 ;;
12058 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12059 no_undefined_flag_CXX='${wl}-z,text'
12060 archive_cmds_need_lc_CXX=no
12061 hardcode_shlibpath_var_CXX=no
12062 runpath_var='LD_RUN_PATH'
12063
12064 case $cc_basename in
12065 CC*)
12066 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12067 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12068 ;;
12069 *)
12070 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12071 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12072 ;;
12073 esac
12074 ;;
12075 sysv5* | sco3.2v5* | sco5v6*)
12076 # Note: We can NOT use -z defs as we might desire, because we do not
12077 # link with -lc, and that would cause any symbols used from libc to
12078 # always be unresolved, which means just about no library would
12079 # ever link correctly. If we're not using GNU ld we use -z text
12080 # though, which does catch some bad symbols but isn't as heavy-handed
12081 # as -z defs.
12082 # For security reasons, it is highly recommended that you always
12083 # use absolute paths for naming shared libraries, and exclude the
12084 # DT_RUNPATH tag from executables and libraries. But doing so
12085 # requires that you compile everything twice, which is a pain.
12086 # So that behaviour is only enabled if SCOABSPATH is set to a
12087 # non-empty value in the environment. Most likely only useful for
12088 # creating official distributions of packages.
12089 # This is a hack until libtool officially supports absolute path
12090 # names for shared libraries.
12091 no_undefined_flag_CXX='${wl}-z,text'
12092 allow_undefined_flag_CXX='${wl}-z,nodefs'
12093 archive_cmds_need_lc_CXX=no
12094 hardcode_shlibpath_var_CXX=no
12095 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12096 hardcode_libdir_separator_CXX=':'
12097 link_all_deplibs_CXX=yes
12098 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12099 runpath_var='LD_RUN_PATH'
12100
12101 case $cc_basename in
12102 CC*)
12103 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12104 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12105 ;;
12106 *)
12107 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12108 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12109 ;;
12110 esac
12111 ;;
12112 tandem*)
12113 case $cc_basename in
12114 NCC*)
12115 # NonStop-UX NCC 3.20
12116 # FIXME: insert proper C++ library support
12117 ld_shlibs_CXX=no
12118 ;;
12119 *)
12120 # FIXME: insert proper C++ library support
12121 ld_shlibs_CXX=no
12122 ;;
12123 esac
12124 ;;
12125 vxworks*)
12126 # FIXME: insert proper C++ library support
12127 ld_shlibs_CXX=no
12128 ;;
12129 *)
12130 # FIXME: insert proper C++ library support
12131 ld_shlibs_CXX=no
12132 ;;
12133esac
64ff59ba 12134{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12135echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
d9898ee8 12136test "$ld_shlibs_CXX" = no && can_build_shared=no
12137
12138GCC_CXX="$GXX"
12139LD_CXX="$LD"
12140
12141
12142cat > conftest.$ac_ext <<EOF
12143class Foo
12144{
12145public:
12146 Foo (void) { a = 0; }
12147private:
12148 int a;
12149};
12150EOF
12151
12152if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12153 (eval $ac_compile) 2>&5
12154 ac_status=$?
12155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12156 (exit $ac_status); }; then
12157 # Parse the compiler output and extract the necessary
12158 # objects, libraries and library flags.
12159
12160 # Sentinel used to keep track of whether or not we are before
12161 # the conftest object file.
12162 pre_test_object_deps_done=no
12163
12164 # The `*' in the case matches for architectures that use `case' in
12165 # $output_verbose_cmd can trigger glob expansion during the loop
12166 # eval without this substitution.
12167 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12168
12169 for p in `eval $output_verbose_link_cmd`; do
12170 case $p in
12171
12172 -L* | -R* | -l*)
12173 # Some compilers place space between "-{L,R}" and the path.
12174 # Remove the space.
12175 if test $p = "-L" \
12176 || test $p = "-R"; then
12177 prev=$p
12178 continue
12179 else
12180 prev=
12181 fi
12182
12183 if test "$pre_test_object_deps_done" = no; then
12184 case $p in
12185 -L* | -R*)
12186 # Internal compiler library paths should come after those
12187 # provided the user. The postdeps already come after the
12188 # user supplied libs so there is no need to process them.
12189 if test -z "$compiler_lib_search_path_CXX"; then
12190 compiler_lib_search_path_CXX="${prev}${p}"
12191 else
12192 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12193 fi
12194 ;;
12195 # The "-l" case would never come before the object being
12196 # linked, so don't bother handling this case.
12197 esac
12198 else
12199 if test -z "$postdeps_CXX"; then
12200 postdeps_CXX="${prev}${p}"
12201 else
12202 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12203 fi
12204 fi
12205 ;;
12206
12207 *.$objext)
12208 # This assumes that the test object file only shows up
12209 # once in the compiler output.
12210 if test "$p" = "conftest.$objext"; then
12211 pre_test_object_deps_done=yes
12212 continue
12213 fi
12214
12215 if test "$pre_test_object_deps_done" = no; then
12216 if test -z "$predep_objects_CXX"; then
12217 predep_objects_CXX="$p"
12218 else
12219 predep_objects_CXX="$predep_objects_CXX $p"
12220 fi
12221 else
12222 if test -z "$postdep_objects_CXX"; then
12223 postdep_objects_CXX="$p"
12224 else
12225 postdep_objects_CXX="$postdep_objects_CXX $p"
12226 fi
12227 fi
12228 ;;
12229
12230 *) ;; # Ignore the rest.
12231
12232 esac
12233 done
12234
12235 # Clean up.
12236 rm -f a.out a.exe
12237else
12238 echo "libtool.m4: error: problem compiling CXX test program"
12239fi
12240
12241$rm -f confest.$objext
12242
12243# PORTME: override above test on systems where it is broken
12244case $host_os in
12245interix3*)
12246 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12247 # hack all around it, let's just trust "g++" to DTRT.
12248 predep_objects_CXX=
12249 postdep_objects_CXX=
12250 postdeps_CXX=
12251 ;;
12252
12253solaris*)
12254 case $cc_basename in
12255 CC*)
12256 # Adding this requires a known-good setup of shared libraries for
12257 # Sun compiler versions before 5.6, else PIC objects from an old
12258 # archive will be linked into the output, leading to subtle bugs.
12259 postdeps_CXX='-lCstd -lCrun'
12260 ;;
12261 esac
12262 ;;
12263esac
12264
12265
12266case " $postdeps_CXX " in
12267*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12268esac
12269
12270lt_prog_compiler_wl_CXX=
12271lt_prog_compiler_pic_CXX=
12272lt_prog_compiler_static_CXX=
12273
64ff59ba 12274{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12275echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
d9898ee8 12276
12277 # C++ specific cases for pic, static, wl, etc.
12278 if test "$GXX" = yes; then
12279 lt_prog_compiler_wl_CXX='-Wl,'
12280 lt_prog_compiler_static_CXX='-static'
12281
12282 case $host_os in
12283 aix*)
12284 # All AIX code is PIC.
12285 if test "$host_cpu" = ia64; then
12286 # AIX 5 now supports IA64 processor
12287 lt_prog_compiler_static_CXX='-Bstatic'
12288 fi
12289 ;;
12290 amigaos*)
12291 # FIXME: we need at least 68020 code to build shared libraries, but
12292 # adding the `-m68020' flag to GCC prevents building anything better,
12293 # like `-m68040'.
12294 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12295 ;;
12296 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12297 # PIC is the default for these OSes.
12298 ;;
12299 mingw* | os2* | pw32*)
12300 # This hack is so that the source file can tell whether it is being
12301 # built for inclusion in a dll (and should export symbols for example).
12302 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12303 ;;
12304 darwin* | rhapsody*)
12305 # PIC is the default on this platform
12306 # Common symbols not allowed in MH_DYLIB files
12307 lt_prog_compiler_pic_CXX='-fno-common'
12308 ;;
12309 *djgpp*)
12310 # DJGPP does not support shared libraries at all
12311 lt_prog_compiler_pic_CXX=
12312 ;;
12313 interix3*)
12314 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12315 # Instead, we relocate shared libraries at runtime.
12316 ;;
12317 sysv4*MP*)
12318 if test -d /usr/nec; then
12319 lt_prog_compiler_pic_CXX=-Kconform_pic
12320 fi
12321 ;;
12322 hpux*)
12323 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12324 # not for PA HP-UX.
12325 case $host_cpu in
12326 hppa*64*|ia64*)
12327 ;;
12328 *)
12329 lt_prog_compiler_pic_CXX='-fPIC'
12330 ;;
12331 esac
12332 ;;
12333 *)
12334 lt_prog_compiler_pic_CXX='-fPIC'
12335 ;;
12336 esac
12337 else
12338 case $host_os in
12339 aix4* | aix5*)
12340 # All AIX code is PIC.
12341 if test "$host_cpu" = ia64; then
12342 # AIX 5 now supports IA64 processor
12343 lt_prog_compiler_static_CXX='-Bstatic'
12344 else
12345 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12346 fi
12347 ;;
12348 chorus*)
12349 case $cc_basename in
12350 cxch68*)
12351 # Green Hills C++ Compiler
12352 # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
12353 ;;
12354 esac
12355 ;;
12356 darwin*)
12357 # PIC is the default on this platform
12358 # Common symbols not allowed in MH_DYLIB files
12359 case $cc_basename in
12360 xlc*)
12361 lt_prog_compiler_pic_CXX='-qnocommon'
12362 lt_prog_compiler_wl_CXX='-Wl,'
12363 ;;
12364 esac
12365 ;;
12366 dgux*)
12367 case $cc_basename in
12368 ec++*)
12369 lt_prog_compiler_pic_CXX='-KPIC'
12370 ;;
12371 ghcx*)
12372 # Green Hills C++ Compiler
12373 lt_prog_compiler_pic_CXX='-pic'
12374 ;;
12375 *)
12376 ;;
12377 esac
12378 ;;
12379 freebsd* | kfreebsd*-gnu | dragonfly*)
12380 # FreeBSD uses GNU C++
12381 ;;
12382 hpux9* | hpux10* | hpux11*)
12383 case $cc_basename in
12384 CC*)
12385 lt_prog_compiler_wl_CXX='-Wl,'
12386 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12387 if test "$host_cpu" != ia64; then
12388 lt_prog_compiler_pic_CXX='+Z'
12389 fi
12390 ;;
12391 aCC*)
12392 lt_prog_compiler_wl_CXX='-Wl,'
12393 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12394 case $host_cpu in
12395 hppa*64*|ia64*)
12396 # +Z the default
12397 ;;
12398 *)
12399 lt_prog_compiler_pic_CXX='+Z'
12400 ;;
12401 esac
12402 ;;
12403 *)
12404 ;;
12405 esac
12406 ;;
12407 interix*)
12408 # This is c89, which is MS Visual C++ (no shared libs)
12409 # Anyone wants to do a port?
12410 ;;
12411 irix5* | irix6* | nonstopux*)
12412 case $cc_basename in
12413 CC*)
12414 lt_prog_compiler_wl_CXX='-Wl,'
12415 lt_prog_compiler_static_CXX='-non_shared'
12416 # CC pic flag -KPIC is the default.
12417 ;;
12418 *)
12419 ;;
12420 esac
12421 ;;
12422 linux*)
12423 case $cc_basename in
12424 KCC*)
12425 # KAI C++ Compiler
12426 lt_prog_compiler_wl_CXX='--backend -Wl,'
12427 lt_prog_compiler_pic_CXX='-fPIC'
12428 ;;
12429 icpc* | ecpc*)
12430 # Intel C++
12431 lt_prog_compiler_wl_CXX='-Wl,'
12432 lt_prog_compiler_pic_CXX='-KPIC'
12433 lt_prog_compiler_static_CXX='-static'
12434 ;;
12435 pgCC*)
12436 # Portland Group C++ compiler.
12437 lt_prog_compiler_wl_CXX='-Wl,'
12438 lt_prog_compiler_pic_CXX='-fpic'
12439 lt_prog_compiler_static_CXX='-Bstatic'
12440 ;;
12441 cxx*)
12442 # Compaq C++
12443 # Make sure the PIC flag is empty. It appears that all Alpha
12444 # Linux and Compaq Tru64 Unix objects are PIC.
12445 lt_prog_compiler_pic_CXX=
12446 lt_prog_compiler_static_CXX='-non_shared'
12447 ;;
12448 *)
12449 ;;
12450 esac
12451 ;;
12452 lynxos*)
12453 ;;
12454 m88k*)
12455 ;;
12456 mvs*)
12457 case $cc_basename in
12458 cxx*)
12459 lt_prog_compiler_pic_CXX='-W c,exportall'
12460 ;;
12461 *)
12462 ;;
12463 esac
12464 ;;
12465 netbsd*)
12466 ;;
12467 osf3* | osf4* | osf5*)
12468 case $cc_basename in
12469 KCC*)
12470 lt_prog_compiler_wl_CXX='--backend -Wl,'
12471 ;;
12472 RCC*)
12473 # Rational C++ 2.4.1
12474 lt_prog_compiler_pic_CXX='-pic'
12475 ;;
12476 cxx*)
12477 # Digital/Compaq C++
12478 lt_prog_compiler_wl_CXX='-Wl,'
12479 # Make sure the PIC flag is empty. It appears that all Alpha
12480 # Linux and Compaq Tru64 Unix objects are PIC.
12481 lt_prog_compiler_pic_CXX=
12482 lt_prog_compiler_static_CXX='-non_shared'
12483 ;;
12484 *)
12485 ;;
12486 esac
12487 ;;
12488 psos*)
12489 ;;
12490 solaris*)
12491 case $cc_basename in
12492 CC*)
12493 # Sun C++ 4.2, 5.x and Centerline C++
12494 lt_prog_compiler_pic_CXX='-KPIC'
12495 lt_prog_compiler_static_CXX='-Bstatic'
12496 lt_prog_compiler_wl_CXX='-Qoption ld '
12497 ;;
12498 gcx*)
12499 # Green Hills C++ Compiler
12500 lt_prog_compiler_pic_CXX='-PIC'
12501 ;;
12502 *)
12503 ;;
12504 esac
12505 ;;
12506 sunos4*)
12507 case $cc_basename in
12508 CC*)
12509 # Sun C++ 4.x
12510 lt_prog_compiler_pic_CXX='-pic'
12511 lt_prog_compiler_static_CXX='-Bstatic'
12512 ;;
12513 lcc*)
12514 # Lucid
12515 lt_prog_compiler_pic_CXX='-pic'
12516 ;;
12517 *)
12518 ;;
12519 esac
12520 ;;
12521 tandem*)
12522 case $cc_basename in
12523 NCC*)
12524 # NonStop-UX NCC 3.20
12525 lt_prog_compiler_pic_CXX='-KPIC'
12526 ;;
12527 *)
12528 ;;
12529 esac
12530 ;;
12531 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12532 case $cc_basename in
12533 CC*)
12534 lt_prog_compiler_wl_CXX='-Wl,'
12535 lt_prog_compiler_pic_CXX='-KPIC'
12536 lt_prog_compiler_static_CXX='-Bstatic'
12537 ;;
12538 esac
12539 ;;
12540 vxworks*)
12541 ;;
12542 *)
12543 lt_prog_compiler_can_build_shared_CXX=no
12544 ;;
12545 esac
12546 fi
12547
64ff59ba 12548{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12549echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
d9898ee8 12550
12551#
12552# Check to make sure the PIC flag actually works.
12553#
12554if test -n "$lt_prog_compiler_pic_CXX"; then
12555
64ff59ba 12556{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12557echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
d9898ee8 12558if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12559 echo $ECHO_N "(cached) $ECHO_C" >&6
12560else
12561 lt_prog_compiler_pic_works_CXX=no
12562 ac_outfile=conftest.$ac_objext
12563 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12564 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12565 # Insert the option either (1) after the last *FLAGS variable, or
12566 # (2) before a word containing "conftest.", or (3) at the end.
12567 # Note that $ac_compile itself does not contain backslashes and begins
12568 # with a dollar sign (not a hyphen), so the echo should work correctly.
12569 # The option is referenced via a variable to avoid confusing sed.
12570 lt_compile=`echo "$ac_compile" | $SED \
12571 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12572 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12573 -e 's:$: $lt_compiler_flag:'`
64ff59ba 12574 (eval echo "\"\$as_me:12574: $lt_compile\"" >&5)
d9898ee8 12575 (eval "$lt_compile" 2>conftest.err)
12576 ac_status=$?
12577 cat conftest.err >&5
64ff59ba 12578 echo "$as_me:12578: \$? = $ac_status" >&5
d9898ee8 12579 if (exit $ac_status) && test -s "$ac_outfile"; then
12580 # The compiler can only warn and ignore the option if not recognized
12581 # So say no if there are warnings other than the usual output.
12582 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12583 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12584 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12585 lt_prog_compiler_pic_works_CXX=yes
12586 fi
12587 fi
12588 $rm conftest*
12589
12590fi
64ff59ba 12591{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12592echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
d9898ee8 12593
12594if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12595 case $lt_prog_compiler_pic_CXX in
12596 "" | " "*) ;;
12597 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12598 esac
12599else
12600 lt_prog_compiler_pic_CXX=
12601 lt_prog_compiler_can_build_shared_CXX=no
12602fi
12603
12604fi
12605case $host_os in
12606 # For platforms which do not support PIC, -DPIC is meaningless:
12607 *djgpp*)
12608 lt_prog_compiler_pic_CXX=
12609 ;;
12610 *)
12611 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12612 ;;
12613esac
12614
12615#
12616# Check to make sure the static flag actually works.
12617#
12618wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
64ff59ba 12619{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12620echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
d9898ee8 12621if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12622 echo $ECHO_N "(cached) $ECHO_C" >&6
12623else
12624 lt_prog_compiler_static_works_CXX=no
12625 save_LDFLAGS="$LDFLAGS"
12626 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12627 printf "$lt_simple_link_test_code" > conftest.$ac_ext
12628 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12629 # The linker can only warn and ignore the option if not recognized
12630 # So say no if there are warnings
12631 if test -s conftest.err; then
12632 # Append any errors to the config.log.
12633 cat conftest.err 1>&5
12634 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12635 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12636 if diff conftest.exp conftest.er2 >/dev/null; then
12637 lt_prog_compiler_static_works_CXX=yes
12638 fi
12639 else
12640 lt_prog_compiler_static_works_CXX=yes
12641 fi
12642 fi
12643 $rm conftest*
12644 LDFLAGS="$save_LDFLAGS"
12645
12646fi
64ff59ba 12647{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12648echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
d9898ee8 12649
12650if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12651 :
12652else
12653 lt_prog_compiler_static_CXX=
12654fi
12655
12656
64ff59ba 12657{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12658echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
d9898ee8 12659if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12660 echo $ECHO_N "(cached) $ECHO_C" >&6
12661else
12662 lt_cv_prog_compiler_c_o_CXX=no
12663 $rm -r conftest 2>/dev/null
12664 mkdir conftest
12665 cd conftest
12666 mkdir out
12667 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12668
12669 lt_compiler_flag="-o out/conftest2.$ac_objext"
12670 # Insert the option either (1) after the last *FLAGS variable, or
12671 # (2) before a word containing "conftest.", or (3) at the end.
12672 # Note that $ac_compile itself does not contain backslashes and begins
12673 # with a dollar sign (not a hyphen), so the echo should work correctly.
12674 lt_compile=`echo "$ac_compile" | $SED \
12675 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12676 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12677 -e 's:$: $lt_compiler_flag:'`
64ff59ba 12678 (eval echo "\"\$as_me:12678: $lt_compile\"" >&5)
d9898ee8 12679 (eval "$lt_compile" 2>out/conftest.err)
12680 ac_status=$?
12681 cat out/conftest.err >&5
64ff59ba 12682 echo "$as_me:12682: \$? = $ac_status" >&5
d9898ee8 12683 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12684 then
12685 # The compiler can only warn and ignore the option if not recognized
12686 # So say no if there are warnings
12687 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12688 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12689 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12690 lt_cv_prog_compiler_c_o_CXX=yes
12691 fi
12692 fi
12693 chmod u+w . 2>&5
12694 $rm conftest*
12695 # SGI C++ compiler will create directory out/ii_files/ for
12696 # template instantiation
12697 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12698 $rm out/* && rmdir out
12699 cd ..
12700 rmdir conftest
12701 $rm conftest*
12702
12703fi
64ff59ba 12704{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12705echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
d9898ee8 12706
12707
12708hard_links="nottested"
12709if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12710 # do not overwrite the value of need_locks provided by the user
64ff59ba 12711 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12712echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
d9898ee8 12713 hard_links=yes
12714 $rm conftest*
12715 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12716 touch conftest.a
12717 ln conftest.a conftest.b 2>&5 || hard_links=no
12718 ln conftest.a conftest.b 2>/dev/null && hard_links=no
64ff59ba 12719 { echo "$as_me:$LINENO: result: $hard_links" >&5
12720echo "${ECHO_T}$hard_links" >&6; }
d9898ee8 12721 if test "$hard_links" = no; then
12722 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12723echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12724 need_locks=warn
12725 fi
12726else
12727 need_locks=no
12728fi
12729
64ff59ba 12730{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12731echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
d9898ee8 12732
12733 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12734 case $host_os in
12735 aix4* | aix5*)
12736 # If we're using GNU nm, then we don't want the "-C" option.
12737 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12738 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12739 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12740 else
12741 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12742 fi
12743 ;;
12744 pw32*)
12745 export_symbols_cmds_CXX="$ltdll_cmds"
12746 ;;
12747 cygwin* | mingw*)
12748 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12749 ;;
12750 *)
12751 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12752 ;;
12753 esac
12754
64ff59ba 12755{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12756echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
d9898ee8 12757test "$ld_shlibs_CXX" = no && can_build_shared=no
12758
12759#
12760# Do we need to explicitly link libc?
12761#
12762case "x$archive_cmds_need_lc_CXX" in
12763x|xyes)
12764 # Assume -lc should be added
12765 archive_cmds_need_lc_CXX=yes
12766
12767 if test "$enable_shared" = yes && test "$GCC" = yes; then
12768 case $archive_cmds_CXX in
12769 *'~'*)
12770 # FIXME: we may have to deal with multi-command sequences.
12771 ;;
12772 '$CC '*)
12773 # Test whether the compiler implicitly links with -lc since on some
12774 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12775 # to ld, don't add -lc before -lgcc.
64ff59ba 12776 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12777echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
d9898ee8 12778 $rm conftest*
12779 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12780
12781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12782 (eval $ac_compile) 2>&5
12783 ac_status=$?
12784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12785 (exit $ac_status); } 2>conftest.err; then
12786 soname=conftest
12787 lib=conftest
12788 libobjs=conftest.$ac_objext
12789 deplibs=
12790 wl=$lt_prog_compiler_wl_CXX
12791 pic_flag=$lt_prog_compiler_pic_CXX
12792 compiler_flags=-v
12793 linker_flags=-v
12794 verstring=
12795 output_objdir=.
12796 libname=conftest
12797 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12798 allow_undefined_flag_CXX=
12799 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12800 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12801 ac_status=$?
12802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12803 (exit $ac_status); }
12804 then
12805 archive_cmds_need_lc_CXX=no
12806 else
12807 archive_cmds_need_lc_CXX=yes
12808 fi
12809 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12810 else
12811 cat conftest.err 1>&5
12812 fi
12813 $rm conftest*
64ff59ba 12814 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12815echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
d9898ee8 12816 ;;
12817 esac
12818 fi
12819 ;;
12820esac
12821
64ff59ba 12822{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12823echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
d9898ee8 12824library_names_spec=
12825libname_spec='lib$name'
12826soname_spec=
12827shrext_cmds=".so"
12828postinstall_cmds=
12829postuninstall_cmds=
12830finish_cmds=
12831finish_eval=
12832shlibpath_var=
12833shlibpath_overrides_runpath=unknown
12834version_type=none
12835dynamic_linker="$host_os ld.so"
12836sys_lib_dlsearch_path_spec="/lib /usr/lib"
12837if test "$GCC" = yes; then
12838 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12839 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12840 # if the path contains ";" then we assume it to be the separator
12841 # otherwise default to the standard path separator (i.e. ":") - it is
12842 # assumed that no part of a normal pathname contains ";" but that should
12843 # okay in the real world where ";" in dirpaths is itself problematic.
12844 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12845 else
12846 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12847 fi
12848else
12849 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12850fi
12851need_lib_prefix=unknown
12852hardcode_into_libs=no
12853
12854# when you set need_version to no, make sure it does not cause -set_version
12855# flags to be left without arguments
12856need_version=unknown
12857
12858case $host_os in
12859aix3*)
12860 version_type=linux
12861 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12862 shlibpath_var=LIBPATH
12863
12864 # AIX 3 has no versioning support, so we append a major version to the name.
12865 soname_spec='${libname}${release}${shared_ext}$major'
12866 ;;
12867
12868aix4* | aix5*)
12869 version_type=linux
12870 need_lib_prefix=no
12871 need_version=no
12872 hardcode_into_libs=yes
12873 if test "$host_cpu" = ia64; then
12874 # AIX 5 supports IA64
12875 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12876 shlibpath_var=LD_LIBRARY_PATH
12877 else
12878 # With GCC up to 2.95.x, collect2 would create an import file
12879 # for dependence libraries. The import file would start with
12880 # the line `#! .'. This would cause the generated library to
12881 # depend on `.', always an invalid library. This was fixed in
12882 # development snapshots of GCC prior to 3.0.
12883 case $host_os in
12884 aix4 | aix4.[01] | aix4.[01].*)
12885 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12886 echo ' yes '
12887 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12888 :
12889 else
12890 can_build_shared=no
12891 fi
12892 ;;
12893 esac
12894 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12895 # soname into executable. Probably we can add versioning support to
12896 # collect2, so additional links can be useful in future.
12897 if test "$aix_use_runtimelinking" = yes; then
12898 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12899 # instead of lib<name>.a to let people know that these are not
12900 # typical AIX shared libraries.
12901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12902 else
12903 # We preserve .a as extension for shared libraries through AIX4.2
12904 # and later when we are not doing run time linking.
12905 library_names_spec='${libname}${release}.a $libname.a'
12906 soname_spec='${libname}${release}${shared_ext}$major'
12907 fi
12908 shlibpath_var=LIBPATH
12909 fi
12910 ;;
12911
12912amigaos*)
12913 library_names_spec='$libname.ixlibrary $libname.a'
12914 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12915 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'
12916 ;;
12917
12918beos*)
12919 library_names_spec='${libname}${shared_ext}'
12920 dynamic_linker="$host_os ld.so"
12921 shlibpath_var=LIBRARY_PATH
12922 ;;
12923
12924bsdi[45]*)
12925 version_type=linux
12926 need_version=no
12927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12928 soname_spec='${libname}${release}${shared_ext}$major'
12929 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12930 shlibpath_var=LD_LIBRARY_PATH
12931 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12932 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12933 # the default ld.so.conf also contains /usr/contrib/lib and
12934 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12935 # libtool to hard-code these into programs
12936 ;;
12937
12938cygwin* | mingw* | pw32*)
12939 version_type=windows
12940 shrext_cmds=".dll"
12941 need_version=no
12942 need_lib_prefix=no
12943
12944 case $GCC,$host_os in
12945 yes,cygwin* | yes,mingw* | yes,pw32*)
12946 library_names_spec='$libname.dll.a'
12947 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12948 postinstall_cmds='base_file=`basename \${file}`~
12949 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12950 dldir=$destdir/`dirname \$dlpath`~
12951 test -d \$dldir || mkdir -p \$dldir~
12952 $install_prog $dir/$dlname \$dldir/$dlname~
12953 chmod a+x \$dldir/$dlname'
12954 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12955 dlpath=$dir/\$dldll~
12956 $rm \$dlpath'
12957 shlibpath_overrides_runpath=yes
12958
12959 case $host_os in
12960 cygwin*)
12961 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12962 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12963 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12964 ;;
12965 mingw*)
12966 # MinGW DLLs use traditional 'lib' prefix
12967 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12968 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12969 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12970 # It is most probably a Windows format PATH printed by
12971 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12972 # path with ; separators, and with drive letters. We can handle the
12973 # drive letters (cygwin fileutils understands them), so leave them,
12974 # especially as we might pass files found there to a mingw objdump,
12975 # which wouldn't understand a cygwinified path. Ahh.
12976 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12977 else
12978 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12979 fi
12980 ;;
12981 pw32*)
12982 # pw32 DLLs use 'pw' prefix rather than 'lib'
12983 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12984 ;;
12985 esac
12986 ;;
12987
12988 *)
12989 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12990 ;;
12991 esac
12992 dynamic_linker='Win32 ld.exe'
12993 # FIXME: first we should search . and the directory the executable is in
12994 shlibpath_var=PATH
12995 ;;
12996
12997darwin* | rhapsody*)
12998 dynamic_linker="$host_os dyld"
12999 version_type=darwin
13000 need_lib_prefix=no
13001 need_version=no
13002 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13003 soname_spec='${libname}${release}${major}$shared_ext'
13004 shlibpath_overrides_runpath=yes
13005 shlibpath_var=DYLD_LIBRARY_PATH
13006 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13007 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13008 if test "$GCC" = yes; then
13009 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
13010 else
13011 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13012 fi
13013 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13014 ;;
13015
13016dgux*)
13017 version_type=linux
13018 need_lib_prefix=no
13019 need_version=no
13020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13021 soname_spec='${libname}${release}${shared_ext}$major'
13022 shlibpath_var=LD_LIBRARY_PATH
13023 ;;
13024
13025freebsd1*)
13026 dynamic_linker=no
13027 ;;
13028
13029kfreebsd*-gnu)
13030 version_type=linux
13031 need_lib_prefix=no
13032 need_version=no
13033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13034 soname_spec='${libname}${release}${shared_ext}$major'
13035 shlibpath_var=LD_LIBRARY_PATH
13036 shlibpath_overrides_runpath=no
13037 hardcode_into_libs=yes
13038 dynamic_linker='GNU ld.so'
13039 ;;
13040
13041freebsd* | dragonfly*)
13042 # DragonFly does not have aout. When/if they implement a new
13043 # versioning mechanism, adjust this.
13044 if test -x /usr/bin/objformat; then
13045 objformat=`/usr/bin/objformat`
13046 else
13047 case $host_os in
13048 freebsd[123]*) objformat=aout ;;
13049 *) objformat=elf ;;
13050 esac
13051 fi
13052 version_type=freebsd-$objformat
13053 case $version_type in
13054 freebsd-elf*)
13055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13056 need_version=no
13057 need_lib_prefix=no
13058 ;;
13059 freebsd-*)
13060 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13061 need_version=yes
13062 ;;
13063 esac
13064 shlibpath_var=LD_LIBRARY_PATH
13065 case $host_os in
13066 freebsd2*)
13067 shlibpath_overrides_runpath=yes
13068 ;;
13069 freebsd3.[01]* | freebsdelf3.[01]*)
13070 shlibpath_overrides_runpath=yes
13071 hardcode_into_libs=yes
13072 ;;
13073 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13074 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13075 shlibpath_overrides_runpath=no
13076 hardcode_into_libs=yes
13077 ;;
13078 freebsd*) # from 4.6 on
13079 shlibpath_overrides_runpath=yes
13080 hardcode_into_libs=yes
13081 ;;
13082 esac
13083 ;;
13084
13085gnu*)
13086 version_type=linux
13087 need_lib_prefix=no
13088 need_version=no
13089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13090 soname_spec='${libname}${release}${shared_ext}$major'
13091 shlibpath_var=LD_LIBRARY_PATH
13092 hardcode_into_libs=yes
13093 ;;
13094
13095hpux9* | hpux10* | hpux11*)
13096 # Give a soname corresponding to the major version so that dld.sl refuses to
13097 # link against other versions.
13098 version_type=sunos
13099 need_lib_prefix=no
13100 need_version=no
13101 case $host_cpu in
13102 ia64*)
13103 shrext_cmds='.so'
13104 hardcode_into_libs=yes
13105 dynamic_linker="$host_os dld.so"
13106 shlibpath_var=LD_LIBRARY_PATH
13107 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13109 soname_spec='${libname}${release}${shared_ext}$major'
13110 if test "X$HPUX_IA64_MODE" = X32; then
13111 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13112 else
13113 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13114 fi
13115 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13116 ;;
13117 hppa*64*)
13118 shrext_cmds='.sl'
13119 hardcode_into_libs=yes
13120 dynamic_linker="$host_os dld.sl"
13121 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13122 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13124 soname_spec='${libname}${release}${shared_ext}$major'
13125 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13126 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13127 ;;
13128 *)
13129 shrext_cmds='.sl'
13130 dynamic_linker="$host_os dld.sl"
13131 shlibpath_var=SHLIB_PATH
13132 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13134 soname_spec='${libname}${release}${shared_ext}$major'
13135 ;;
13136 esac
13137 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13138 postinstall_cmds='chmod 555 $lib'
13139 ;;
13140
13141interix3*)
13142 version_type=linux
13143 need_lib_prefix=no
13144 need_version=no
13145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13146 soname_spec='${libname}${release}${shared_ext}$major'
13147 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13148 shlibpath_var=LD_LIBRARY_PATH
13149 shlibpath_overrides_runpath=no
13150 hardcode_into_libs=yes
13151 ;;
13152
13153irix5* | irix6* | nonstopux*)
13154 case $host_os in
13155 nonstopux*) version_type=nonstopux ;;
13156 *)
13157 if test "$lt_cv_prog_gnu_ld" = yes; then
13158 version_type=linux
13159 else
13160 version_type=irix
13161 fi ;;
13162 esac
13163 need_lib_prefix=no
13164 need_version=no
13165 soname_spec='${libname}${release}${shared_ext}$major'
13166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13167 case $host_os in
13168 irix5* | nonstopux*)
13169 libsuff= shlibsuff=
13170 ;;
13171 *)
13172 case $LD in # libtool.m4 will add one of these switches to LD
13173 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13174 libsuff= shlibsuff= libmagic=32-bit;;
13175 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13176 libsuff=32 shlibsuff=N32 libmagic=N32;;
13177 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13178 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13179 *) libsuff= shlibsuff= libmagic=never-match;;
13180 esac
13181 ;;
13182 esac
13183 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13184 shlibpath_overrides_runpath=no
13185 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13186 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13187 hardcode_into_libs=yes
13188 ;;
13189
13190# No shared lib support for Linux oldld, aout, or coff.
13191linux*oldld* | linux*aout* | linux*coff*)
13192 dynamic_linker=no
13193 ;;
13194
13195# This must be Linux ELF.
13196linux*)
13197 version_type=linux
13198 need_lib_prefix=no
13199 need_version=no
13200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13201 soname_spec='${libname}${release}${shared_ext}$major'
13202 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13203 shlibpath_var=LD_LIBRARY_PATH
13204 shlibpath_overrides_runpath=no
13205 # This implies no fast_install, which is unacceptable.
13206 # Some rework will be needed to allow for fast_install
13207 # before this can be enabled.
13208 hardcode_into_libs=yes
13209
13210 # find out which ABI we are using
13211 libsuff=
13212 case "$host_cpu" in
13213 x86_64*|s390x*|powerpc64*)
64ff59ba 13214 echo '#line 13214 "configure"' > conftest.$ac_ext
d9898ee8 13215 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13216 (eval $ac_compile) 2>&5
13217 ac_status=$?
13218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13219 (exit $ac_status); }; then
13220 case `/usr/bin/file conftest.$ac_objext` in
13221 *64-bit*)
13222 libsuff=64
13223 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
13224 ;;
13225 esac
13226 fi
13227 rm -rf conftest*
13228 ;;
13229 esac
13230
13231 # Append ld.so.conf contents to the search path
13232 if test -f /etc/ld.so.conf; then
64ff59ba 13233 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/^ *//;s/#.*//;/^[^\/]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
d9898ee8 13234 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
13235 fi
13236
13237 # We used to test for /lib/ld.so.1 and disable shared libraries on
13238 # powerpc, because MkLinux only supported shared libraries with the
13239 # GNU dynamic linker. Since this was broken with cross compilers,
13240 # most powerpc-linux boxes support dynamic linking these days and
13241 # people can always --disable-shared, the test was removed, and we
13242 # assume the GNU/Linux dynamic linker is in use.
13243 dynamic_linker='GNU/Linux ld.so'
13244 ;;
13245
13246knetbsd*-gnu)
13247 version_type=linux
13248 need_lib_prefix=no
13249 need_version=no
13250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13251 soname_spec='${libname}${release}${shared_ext}$major'
13252 shlibpath_var=LD_LIBRARY_PATH
13253 shlibpath_overrides_runpath=no
13254 hardcode_into_libs=yes
13255 dynamic_linker='GNU ld.so'
13256 ;;
13257
13258netbsd*)
13259 version_type=sunos
13260 need_lib_prefix=no
13261 need_version=no
13262 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13264 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13265 dynamic_linker='NetBSD (a.out) ld.so'
13266 else
13267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13268 soname_spec='${libname}${release}${shared_ext}$major'
13269 dynamic_linker='NetBSD ld.elf_so'
13270 fi
13271 shlibpath_var=LD_LIBRARY_PATH
13272 shlibpath_overrides_runpath=yes
13273 hardcode_into_libs=yes
13274 ;;
13275
13276newsos6)
13277 version_type=linux
13278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13279 shlibpath_var=LD_LIBRARY_PATH
13280 shlibpath_overrides_runpath=yes
13281 ;;
13282
13283nto-qnx*)
13284 version_type=linux
13285 need_lib_prefix=no
13286 need_version=no
13287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13288 soname_spec='${libname}${release}${shared_ext}$major'
13289 shlibpath_var=LD_LIBRARY_PATH
13290 shlibpath_overrides_runpath=yes
13291 ;;
13292
13293openbsd*)
13294 version_type=sunos
13295 sys_lib_dlsearch_path_spec="/usr/lib"
13296 need_lib_prefix=no
13297 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13298 case $host_os in
13299 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13300 *) need_version=no ;;
13301 esac
13302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13303 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13304 shlibpath_var=LD_LIBRARY_PATH
13305 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13306 case $host_os in
13307 openbsd2.[89] | openbsd2.[89].*)
13308 shlibpath_overrides_runpath=no
13309 ;;
13310 *)
13311 shlibpath_overrides_runpath=yes
13312 ;;
13313 esac
13314 else
13315 shlibpath_overrides_runpath=yes
13316 fi
13317 ;;
13318
13319os2*)
13320 libname_spec='$name'
13321 shrext_cmds=".dll"
13322 need_lib_prefix=no
13323 library_names_spec='$libname${shared_ext} $libname.a'
13324 dynamic_linker='OS/2 ld.exe'
13325 shlibpath_var=LIBPATH
13326 ;;
13327
13328osf3* | osf4* | osf5*)
13329 version_type=osf
13330 need_lib_prefix=no
13331 need_version=no
13332 soname_spec='${libname}${release}${shared_ext}$major'
13333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13334 shlibpath_var=LD_LIBRARY_PATH
13335 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13336 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13337 ;;
13338
13339solaris*)
13340 version_type=linux
13341 need_lib_prefix=no
13342 need_version=no
13343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13344 soname_spec='${libname}${release}${shared_ext}$major'
13345 shlibpath_var=LD_LIBRARY_PATH
13346 shlibpath_overrides_runpath=yes
13347 hardcode_into_libs=yes
13348 # ldd complains unless libraries are executable
13349 postinstall_cmds='chmod +x $lib'
13350 ;;
13351
13352sunos4*)
13353 version_type=sunos
13354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13355 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13356 shlibpath_var=LD_LIBRARY_PATH
13357 shlibpath_overrides_runpath=yes
13358 if test "$with_gnu_ld" = yes; then
13359 need_lib_prefix=no
13360 fi
13361 need_version=yes
13362 ;;
13363
13364sysv4 | sysv4.3*)
13365 version_type=linux
13366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13367 soname_spec='${libname}${release}${shared_ext}$major'
13368 shlibpath_var=LD_LIBRARY_PATH
13369 case $host_vendor in
13370 sni)
13371 shlibpath_overrides_runpath=no
13372 need_lib_prefix=no
13373 export_dynamic_flag_spec='${wl}-Blargedynsym'
13374 runpath_var=LD_RUN_PATH
13375 ;;
13376 siemens)
13377 need_lib_prefix=no
13378 ;;
13379 motorola)
13380 need_lib_prefix=no
13381 need_version=no
13382 shlibpath_overrides_runpath=no
13383 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13384 ;;
13385 esac
13386 ;;
13387
13388sysv4*MP*)
13389 if test -d /usr/nec ;then
13390 version_type=linux
13391 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13392 soname_spec='$libname${shared_ext}.$major'
13393 shlibpath_var=LD_LIBRARY_PATH
13394 fi
13395 ;;
13396
13397sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13398 version_type=freebsd-elf
13399 need_lib_prefix=no
13400 need_version=no
13401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13402 soname_spec='${libname}${release}${shared_ext}$major'
13403 shlibpath_var=LD_LIBRARY_PATH
13404 hardcode_into_libs=yes
13405 if test "$with_gnu_ld" = yes; then
13406 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13407 shlibpath_overrides_runpath=no
13408 else
13409 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13410 shlibpath_overrides_runpath=yes
13411 case $host_os in
13412 sco3.2v5*)
13413 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13414 ;;
13415 esac
13416 fi
13417 sys_lib_dlsearch_path_spec='/usr/lib'
13418 ;;
13419
13420uts4*)
13421 version_type=linux
13422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13423 soname_spec='${libname}${release}${shared_ext}$major'
13424 shlibpath_var=LD_LIBRARY_PATH
13425 ;;
13426
13427*)
13428 dynamic_linker=no
13429 ;;
13430esac
64ff59ba 13431{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13432echo "${ECHO_T}$dynamic_linker" >&6; }
d9898ee8 13433test "$dynamic_linker" = no && can_build_shared=no
13434
13435variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13436if test "$GCC" = yes; then
13437 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13438fi
13439
64ff59ba 13440{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13441echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
d9898ee8 13442hardcode_action_CXX=
13443if test -n "$hardcode_libdir_flag_spec_CXX" || \
13444 test -n "$runpath_var_CXX" || \
13445 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13446
13447 # We can hardcode non-existant directories.
13448 if test "$hardcode_direct_CXX" != no &&
13449 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13450 # have to relink, otherwise we might link with an installed library
13451 # when we should be linking with a yet-to-be-installed one
13452 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13453 test "$hardcode_minus_L_CXX" != no; then
13454 # Linking always hardcodes the temporary library directory.
13455 hardcode_action_CXX=relink
13456 else
13457 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13458 hardcode_action_CXX=immediate
13459 fi
13460else
13461 # We cannot hardcode anything, or else we can only hardcode existing
13462 # directories.
13463 hardcode_action_CXX=unsupported
13464fi
64ff59ba 13465{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13466echo "${ECHO_T}$hardcode_action_CXX" >&6; }
d9898ee8 13467
13468if test "$hardcode_action_CXX" = relink; then
13469 # Fast installation is not supported
13470 enable_fast_install=no
13471elif test "$shlibpath_overrides_runpath" = yes ||
13472 test "$enable_shared" = no; then
13473 # Fast installation is not necessary
13474 enable_fast_install=needless
13475fi
13476
13477
13478# The else clause should only fire when bootstrapping the
13479# libtool distribution, otherwise you forgot to ship ltmain.sh
13480# with your package, and you will get complaints that there are
13481# no rules to generate ltmain.sh.
13482if test -f "$ltmain"; then
13483 # See if we are running on zsh, and set the options which allow our commands through
13484 # without removal of \ escapes.
13485 if test -n "${ZSH_VERSION+set}" ; then
13486 setopt NO_GLOB_SUBST
13487 fi
13488 # Now quote all the things that may contain metacharacters while being
13489 # careful not to overquote the AC_SUBSTed values. We take copies of the
13490 # variables and quote the copies for generation of the libtool script.
13491 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13492 SED SHELL STRIP \
13493 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13494 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13495 deplibs_check_method reload_flag reload_cmds need_locks \
13496 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13497 lt_cv_sys_global_symbol_to_c_name_address \
13498 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13499 old_postinstall_cmds old_postuninstall_cmds \
13500 compiler_CXX \
13501 CC_CXX \
13502 LD_CXX \
13503 lt_prog_compiler_wl_CXX \
13504 lt_prog_compiler_pic_CXX \
13505 lt_prog_compiler_static_CXX \
13506 lt_prog_compiler_no_builtin_flag_CXX \
13507 export_dynamic_flag_spec_CXX \
13508 thread_safe_flag_spec_CXX \
13509 whole_archive_flag_spec_CXX \
13510 enable_shared_with_static_runtimes_CXX \
13511 old_archive_cmds_CXX \
13512 old_archive_from_new_cmds_CXX \
13513 predep_objects_CXX \
13514 postdep_objects_CXX \
13515 predeps_CXX \
13516 postdeps_CXX \
13517 compiler_lib_search_path_CXX \
13518 archive_cmds_CXX \
13519 archive_expsym_cmds_CXX \
13520 postinstall_cmds_CXX \
13521 postuninstall_cmds_CXX \
13522 old_archive_from_expsyms_cmds_CXX \
13523 allow_undefined_flag_CXX \
13524 no_undefined_flag_CXX \
13525 export_symbols_cmds_CXX \
13526 hardcode_libdir_flag_spec_CXX \
13527 hardcode_libdir_flag_spec_ld_CXX \
13528 hardcode_libdir_separator_CXX \
13529 hardcode_automatic_CXX \
13530 module_cmds_CXX \
13531 module_expsym_cmds_CXX \
13532 lt_cv_prog_compiler_c_o_CXX \
13533 exclude_expsyms_CXX \
13534 include_expsyms_CXX; do
13535
13536 case $var in
13537 old_archive_cmds_CXX | \
13538 old_archive_from_new_cmds_CXX | \
13539 archive_cmds_CXX | \
13540 archive_expsym_cmds_CXX | \
13541 module_cmds_CXX | \
13542 module_expsym_cmds_CXX | \
13543 old_archive_from_expsyms_cmds_CXX | \
13544 export_symbols_cmds_CXX | \
13545 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13546 postinstall_cmds | postuninstall_cmds | \
13547 old_postinstall_cmds | old_postuninstall_cmds | \
13548 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13549 # Double-quote double-evaled strings.
13550 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13551 ;;
13552 *)
13553 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13554 ;;
13555 esac
13556 done
13557
13558 case $lt_echo in
13559 *'\$0 --fallback-echo"')
13560 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13561 ;;
13562 esac
13563
13564cfgfile="$ofile"
13565
13566 cat <<__EOF__ >> "$cfgfile"
13567# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13568
13569# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13570
13571# Shell to use when invoking shell scripts.
13572SHELL=$lt_SHELL
13573
13574# Whether or not to build shared libraries.
13575build_libtool_libs=$enable_shared
13576
13577# Whether or not to build static libraries.
13578build_old_libs=$enable_static
13579
13580# Whether or not to add -lc for building shared libraries.
13581build_libtool_need_lc=$archive_cmds_need_lc_CXX
13582
13583# Whether or not to disallow shared libs when runtime libs are static
13584allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13585
13586# Whether or not to optimize for fast installation.
13587fast_install=$enable_fast_install
13588
13589# The host system.
13590host_alias=$host_alias
13591host=$host
13592host_os=$host_os
13593
13594# The build system.
13595build_alias=$build_alias
13596build=$build
13597build_os=$build_os
13598
13599# An echo program that does not interpret backslashes.
13600echo=$lt_echo
13601
13602# The archiver.
13603AR=$lt_AR
13604AR_FLAGS=$lt_AR_FLAGS
13605
13606# A C compiler.
13607LTCC=$lt_LTCC
13608
13609# LTCC compiler flags.
13610LTCFLAGS=$lt_LTCFLAGS
13611
13612# A language-specific compiler.
13613CC=$lt_compiler_CXX
13614
13615# Is the compiler the GNU C compiler?
13616with_gcc=$GCC_CXX
13617
d9898ee8 13618# An ERE matcher.
13619EGREP=$lt_EGREP
13620
13621# The linker used to build libraries.
13622LD=$lt_LD_CXX
13623
13624# Whether we need hard or soft links.
13625LN_S=$lt_LN_S
13626
13627# A BSD-compatible nm program.
13628NM=$lt_NM
13629
13630# A symbol stripping program
13631STRIP=$lt_STRIP
13632
13633# Used to examine libraries when file_magic_cmd begins "file"
13634MAGIC_CMD=$MAGIC_CMD
13635
13636# Used on cygwin: DLL creation program.
13637DLLTOOL="$DLLTOOL"
13638
13639# Used on cygwin: object dumper.
13640OBJDUMP="$OBJDUMP"
13641
13642# Used on cygwin: assembler.
13643AS="$AS"
13644
13645# The name of the directory that contains temporary libtool files.
13646objdir=$objdir
13647
13648# How to create reloadable object files.
13649reload_flag=$lt_reload_flag
13650reload_cmds=$lt_reload_cmds
13651
13652# How to pass a linker flag through the compiler.
13653wl=$lt_lt_prog_compiler_wl_CXX
13654
13655# Object file suffix (normally "o").
13656objext="$ac_objext"
13657
13658# Old archive suffix (normally "a").
13659libext="$libext"
13660
13661# Shared library suffix (normally ".so").
13662shrext_cmds='$shrext_cmds'
13663
13664# Executable file suffix (normally "").
13665exeext="$exeext"
13666
13667# Additional compiler flags for building library objects.
13668pic_flag=$lt_lt_prog_compiler_pic_CXX
13669pic_mode=$pic_mode
13670
13671# What is the maximum length of a command?
13672max_cmd_len=$lt_cv_sys_max_cmd_len
13673
13674# Does compiler simultaneously support -c and -o options?
13675compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13676
13677# Must we lock files when doing compilation?
13678need_locks=$lt_need_locks
13679
13680# Do we need the lib prefix for modules?
13681need_lib_prefix=$need_lib_prefix
13682
13683# Do we need a version for libraries?
13684need_version=$need_version
13685
13686# Whether dlopen is supported.
13687dlopen_support=$enable_dlopen
13688
13689# Whether dlopen of programs is supported.
13690dlopen_self=$enable_dlopen_self
13691
13692# Whether dlopen of statically linked programs is supported.
13693dlopen_self_static=$enable_dlopen_self_static
13694
13695# Compiler flag to prevent dynamic linking.
13696link_static_flag=$lt_lt_prog_compiler_static_CXX
13697
13698# Compiler flag to turn off builtin functions.
13699no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13700
13701# Compiler flag to allow reflexive dlopens.
13702export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13703
13704# Compiler flag to generate shared objects directly from archives.
13705whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13706
13707# Compiler flag to generate thread-safe objects.
13708thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13709
13710# Library versioning type.
13711version_type=$version_type
13712
13713# Format of library name prefix.
13714libname_spec=$lt_libname_spec
13715
13716# List of archive names. First name is the real one, the rest are links.
13717# The last name is the one that the linker finds with -lNAME.
13718library_names_spec=$lt_library_names_spec
13719
13720# The coded name of the library, if different from the real name.
13721soname_spec=$lt_soname_spec
13722
13723# Commands used to build and install an old-style archive.
13724RANLIB=$lt_RANLIB
13725old_archive_cmds=$lt_old_archive_cmds_CXX
13726old_postinstall_cmds=$lt_old_postinstall_cmds
13727old_postuninstall_cmds=$lt_old_postuninstall_cmds
13728
13729# Create an old-style archive from a shared archive.
13730old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13731
13732# Create a temporary old-style archive to link instead of a shared archive.
13733old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13734
13735# Commands used to build and install a shared archive.
13736archive_cmds=$lt_archive_cmds_CXX
13737archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13738postinstall_cmds=$lt_postinstall_cmds
13739postuninstall_cmds=$lt_postuninstall_cmds
13740
13741# Commands used to build a loadable module (assumed same as above if empty)
13742module_cmds=$lt_module_cmds_CXX
13743module_expsym_cmds=$lt_module_expsym_cmds_CXX
13744
13745# Commands to strip libraries.
13746old_striplib=$lt_old_striplib
13747striplib=$lt_striplib
13748
13749# Dependencies to place before the objects being linked to create a
13750# shared library.
64ff59ba 13751predep_objects=$lt_predep_objects_CXX
d9898ee8 13752
13753# Dependencies to place after the objects being linked to create a
13754# shared library.
64ff59ba 13755postdep_objects=$lt_postdep_objects_CXX
d9898ee8 13756
13757# Dependencies to place before the objects being linked to create a
13758# shared library.
13759predeps=$lt_predeps_CXX
13760
13761# Dependencies to place after the objects being linked to create a
13762# shared library.
13763postdeps=$lt_postdeps_CXX
13764
13765# The library search path used internally by the compiler when linking
13766# a shared library.
64ff59ba 13767compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
d9898ee8 13768
13769# Method to check whether dependent libraries are shared objects.
13770deplibs_check_method=$lt_deplibs_check_method
13771
13772# Command to use when deplibs_check_method == file_magic.
13773file_magic_cmd=$lt_file_magic_cmd
13774
13775# Flag that allows shared libraries with undefined symbols to be built.
13776allow_undefined_flag=$lt_allow_undefined_flag_CXX
13777
13778# Flag that forces no undefined symbols.
13779no_undefined_flag=$lt_no_undefined_flag_CXX
13780
13781# Commands used to finish a libtool library installation in a directory.
13782finish_cmds=$lt_finish_cmds
13783
13784# Same as above, but a single script fragment to be evaled but not shown.
13785finish_eval=$lt_finish_eval
13786
13787# Take the output of nm and produce a listing of raw symbols and C names.
13788global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13789
13790# Transform the output of nm in a proper C declaration
13791global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13792
13793# Transform the output of nm in a C name address pair
13794global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13795
13796# This is the shared library runtime path variable.
13797runpath_var=$runpath_var
13798
13799# This is the shared library path variable.
13800shlibpath_var=$shlibpath_var
13801
13802# Is shlibpath searched before the hard-coded library search path?
13803shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13804
13805# How to hardcode a shared library path into an executable.
13806hardcode_action=$hardcode_action_CXX
13807
13808# Whether we should hardcode library paths into libraries.
13809hardcode_into_libs=$hardcode_into_libs
13810
13811# Flag to hardcode \$libdir into a binary during linking.
13812# This must work even if \$libdir does not exist.
13813hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13814
13815# If ld is used when linking, flag to hardcode \$libdir into
13816# a binary during linking. This must work even if \$libdir does
13817# not exist.
13818hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13819
13820# Whether we need a single -rpath flag with a separated argument.
13821hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13822
13823# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13824# resulting binary.
13825hardcode_direct=$hardcode_direct_CXX
13826
13827# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13828# resulting binary.
13829hardcode_minus_L=$hardcode_minus_L_CXX
13830
13831# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13832# the resulting binary.
13833hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13834
13835# Set to yes if building a shared library automatically hardcodes DIR into the library
13836# and all subsequent libraries and executables linked against it.
13837hardcode_automatic=$hardcode_automatic_CXX
13838
13839# Variables whose values should be saved in libtool wrapper scripts and
13840# restored at relink time.
13841variables_saved_for_relink="$variables_saved_for_relink"
13842
13843# Whether libtool must link a program against all its dependency libraries.
13844link_all_deplibs=$link_all_deplibs_CXX
13845
13846# Compile-time system search path for libraries
64ff59ba 13847sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
d9898ee8 13848
13849# Run-time system search path for libraries
13850sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13851
13852# Fix the shell variable \$srcfile for the compiler.
13853fix_srcfile_path="$fix_srcfile_path_CXX"
13854
13855# Set to yes if exported symbols are required.
13856always_export_symbols=$always_export_symbols_CXX
13857
13858# The commands to list exported symbols.
13859export_symbols_cmds=$lt_export_symbols_cmds_CXX
13860
13861# The commands to extract the exported symbol list from a shared archive.
13862extract_expsyms_cmds=$lt_extract_expsyms_cmds
13863
13864# Symbols that should not be listed in the preloaded symbols.
13865exclude_expsyms=$lt_exclude_expsyms_CXX
13866
13867# Symbols that must always be exported.
13868include_expsyms=$lt_include_expsyms_CXX
13869
13870# ### END LIBTOOL TAG CONFIG: $tagname
13871
13872__EOF__
13873
13874
13875else
13876 # If there is no Makefile yet, we rely on a make rule to execute
13877 # `config.status --recheck' to rerun these tests and create the
13878 # libtool script then.
13879 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13880 if test -f "$ltmain_in"; then
13881 test -f Makefile && make "$ltmain"
13882 fi
13883fi
13884
13885
13886ac_ext=c
13887ac_cpp='$CPP $CPPFLAGS'
13888ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13889ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13890ac_compiler_gnu=$ac_cv_c_compiler_gnu
13891
13892CC=$lt_save_CC
13893LDCXX=$LD
13894LD=$lt_save_LD
13895GCC=$lt_save_GCC
13896with_gnu_ldcxx=$with_gnu_ld
13897with_gnu_ld=$lt_save_with_gnu_ld
13898lt_cv_path_LDCXX=$lt_cv_path_LD
13899lt_cv_path_LD=$lt_save_path_LD
13900lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13901lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13902
13903 else
13904 tagname=""
13905 fi
13906 ;;
13907
13908 F77)
13909 if test -n "$F77" && test "X$F77" != "Xno"; then
13910
13911ac_ext=f
13912ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13913ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13914ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13915
13916
13917archive_cmds_need_lc_F77=no
13918allow_undefined_flag_F77=
13919always_export_symbols_F77=no
13920archive_expsym_cmds_F77=
13921export_dynamic_flag_spec_F77=
13922hardcode_direct_F77=no
13923hardcode_libdir_flag_spec_F77=
13924hardcode_libdir_flag_spec_ld_F77=
13925hardcode_libdir_separator_F77=
13926hardcode_minus_L_F77=no
13927hardcode_automatic_F77=no
13928module_cmds_F77=
13929module_expsym_cmds_F77=
13930link_all_deplibs_F77=unknown
13931old_archive_cmds_F77=$old_archive_cmds
13932no_undefined_flag_F77=
13933whole_archive_flag_spec_F77=
13934enable_shared_with_static_runtimes_F77=no
13935
13936# Source file extension for f77 test sources.
13937ac_ext=f
13938
13939# Object file extension for compiled f77 test sources.
13940objext=o
13941objext_F77=$objext
13942
13943# Code to be used in simple compile tests
13944lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13945
13946# Code to be used in simple link tests
13947lt_simple_link_test_code=" program t\n end\n"
13948
13949# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13950
13951# If no C compiler was specified, use CC.
13952LTCC=${LTCC-"$CC"}
13953
13954# If no C compiler flags were specified, use CFLAGS.
13955LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13956
13957# Allow CC to be a program name with arguments.
13958compiler=$CC
13959
13960
13961# save warnings/boilerplate of simple test code
13962ac_outfile=conftest.$ac_objext
13963printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13964eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13965_lt_compiler_boilerplate=`cat conftest.err`
13966$rm conftest*
13967
13968ac_outfile=conftest.$ac_objext
13969printf "$lt_simple_link_test_code" >conftest.$ac_ext
13970eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13971_lt_linker_boilerplate=`cat conftest.err`
13972$rm conftest*
13973
13974
13975# Allow CC to be a program name with arguments.
13976lt_save_CC="$CC"
13977CC=${F77-"f77"}
13978compiler=$CC
13979compiler_F77=$CC
13980for cc_temp in $compiler""; do
13981 case $cc_temp in
13982 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13983 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13984 \-*) ;;
13985 *) break;;
13986 esac
13987done
13988cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13989
13990
64ff59ba 13991{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13992echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13993{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
13994echo "${ECHO_T}$can_build_shared" >&6; }
d9898ee8 13995
64ff59ba 13996{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13997echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
d9898ee8 13998test "$can_build_shared" = "no" && enable_shared=no
13999
14000# On AIX, shared libraries and static libraries use the same namespace, and
14001# are all built from PIC.
14002case $host_os in
14003aix3*)
14004 test "$enable_shared" = yes && enable_static=no
14005 if test -n "$RANLIB"; then
14006 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14007 postinstall_cmds='$RANLIB $lib'
14008 fi
14009 ;;
14010aix4* | aix5*)
14011 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14012 test "$enable_shared" = yes && enable_static=no
14013 fi
14014 ;;
14015esac
64ff59ba 14016{ echo "$as_me:$LINENO: result: $enable_shared" >&5
14017echo "${ECHO_T}$enable_shared" >&6; }
d9898ee8 14018
64ff59ba 14019{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14020echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
d9898ee8 14021# Make sure either enable_shared or enable_static is yes.
14022test "$enable_shared" = yes || enable_static=yes
64ff59ba 14023{ echo "$as_me:$LINENO: result: $enable_static" >&5
14024echo "${ECHO_T}$enable_static" >&6; }
d9898ee8 14025
14026GCC_F77="$G77"
14027LD_F77="$LD"
14028
14029lt_prog_compiler_wl_F77=
14030lt_prog_compiler_pic_F77=
14031lt_prog_compiler_static_F77=
14032
64ff59ba 14033{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14034echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
d9898ee8 14035
14036 if test "$GCC" = yes; then
14037 lt_prog_compiler_wl_F77='-Wl,'
14038 lt_prog_compiler_static_F77='-static'
14039
14040 case $host_os in
14041 aix*)
14042 # All AIX code is PIC.
14043 if test "$host_cpu" = ia64; then
14044 # AIX 5 now supports IA64 processor
14045 lt_prog_compiler_static_F77='-Bstatic'
14046 fi
14047 ;;
14048
14049 amigaos*)
14050 # FIXME: we need at least 68020 code to build shared libraries, but
14051 # adding the `-m68020' flag to GCC prevents building anything better,
14052 # like `-m68040'.
14053 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14054 ;;
14055
14056 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14057 # PIC is the default for these OSes.
14058 ;;
14059
14060 mingw* | pw32* | os2*)
14061 # This hack is so that the source file can tell whether it is being
14062 # built for inclusion in a dll (and should export symbols for example).
14063 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14064 ;;
14065
14066 darwin* | rhapsody*)
14067 # PIC is the default on this platform
14068 # Common symbols not allowed in MH_DYLIB files
14069 lt_prog_compiler_pic_F77='-fno-common'
14070 ;;
14071
14072 interix3*)
14073 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14074 # Instead, we relocate shared libraries at runtime.
14075 ;;
14076
14077 msdosdjgpp*)
14078 # Just because we use GCC doesn't mean we suddenly get shared libraries
14079 # on systems that don't support them.
14080 lt_prog_compiler_can_build_shared_F77=no
14081 enable_shared=no
14082 ;;
14083
14084 sysv4*MP*)
14085 if test -d /usr/nec; then
14086 lt_prog_compiler_pic_F77=-Kconform_pic
14087 fi
14088 ;;
14089
14090 hpux*)
14091 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14092 # not for PA HP-UX.
14093 case $host_cpu in
14094 hppa*64*|ia64*)
14095 # +Z the default
14096 ;;
14097 *)
14098 lt_prog_compiler_pic_F77='-fPIC'
14099 ;;
14100 esac
14101 ;;
14102
14103 *)
14104 lt_prog_compiler_pic_F77='-fPIC'
14105 ;;
14106 esac
14107 else
14108 # PORTME Check for flag to pass linker flags through the system compiler.
14109 case $host_os in
14110 aix*)
14111 lt_prog_compiler_wl_F77='-Wl,'
14112 if test "$host_cpu" = ia64; then
14113 # AIX 5 now supports IA64 processor
14114 lt_prog_compiler_static_F77='-Bstatic'
14115 else
14116 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14117 fi
14118 ;;
14119 darwin*)
14120 # PIC is the default on this platform
14121 # Common symbols not allowed in MH_DYLIB files
14122 case $cc_basename in
14123 xlc*)
14124 lt_prog_compiler_pic_F77='-qnocommon'
14125 lt_prog_compiler_wl_F77='-Wl,'
14126 ;;
14127 esac
14128 ;;
14129
14130 mingw* | pw32* | os2*)
14131 # This hack is so that the source file can tell whether it is being
14132 # built for inclusion in a dll (and should export symbols for example).
14133 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14134 ;;
14135
14136 hpux9* | hpux10* | hpux11*)
14137 lt_prog_compiler_wl_F77='-Wl,'
14138 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14139 # not for PA HP-UX.
14140 case $host_cpu in
14141 hppa*64*|ia64*)
14142 # +Z the default
14143 ;;
14144 *)
14145 lt_prog_compiler_pic_F77='+Z'
14146 ;;
14147 esac
14148 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14149 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14150 ;;
14151
14152 irix5* | irix6* | nonstopux*)
14153 lt_prog_compiler_wl_F77='-Wl,'
14154 # PIC (with -KPIC) is the default.
14155 lt_prog_compiler_static_F77='-non_shared'
14156 ;;
14157
14158 newsos6)
14159 lt_prog_compiler_pic_F77='-KPIC'
14160 lt_prog_compiler_static_F77='-Bstatic'
14161 ;;
14162
14163 linux*)
14164 case $cc_basename in
14165 icc* | ecc*)
14166 lt_prog_compiler_wl_F77='-Wl,'
14167 lt_prog_compiler_pic_F77='-KPIC'
14168 lt_prog_compiler_static_F77='-static'
14169 ;;
14170 pgcc* | pgf77* | pgf90* | pgf95*)
14171 # Portland Group compilers (*not* the Pentium gcc compiler,
14172 # which looks to be a dead project)
14173 lt_prog_compiler_wl_F77='-Wl,'
14174 lt_prog_compiler_pic_F77='-fpic'
14175 lt_prog_compiler_static_F77='-Bstatic'
14176 ;;
14177 ccc*)
14178 lt_prog_compiler_wl_F77='-Wl,'
14179 # All Alpha code is PIC.
14180 lt_prog_compiler_static_F77='-non_shared'
14181 ;;
14182 esac
14183 ;;
14184
14185 osf3* | osf4* | osf5*)
14186 lt_prog_compiler_wl_F77='-Wl,'
14187 # All OSF/1 code is PIC.
14188 lt_prog_compiler_static_F77='-non_shared'
14189 ;;
14190
14191 solaris*)
14192 lt_prog_compiler_pic_F77='-KPIC'
14193 lt_prog_compiler_static_F77='-Bstatic'
14194 case $cc_basename in
14195 f77* | f90* | f95*)
14196 lt_prog_compiler_wl_F77='-Qoption ld ';;
14197 *)
14198 lt_prog_compiler_wl_F77='-Wl,';;
14199 esac
14200 ;;
14201
14202 sunos4*)
14203 lt_prog_compiler_wl_F77='-Qoption ld '
14204 lt_prog_compiler_pic_F77='-PIC'
14205 lt_prog_compiler_static_F77='-Bstatic'
14206 ;;
14207
14208 sysv4 | sysv4.2uw2* | sysv4.3*)
14209 lt_prog_compiler_wl_F77='-Wl,'
14210 lt_prog_compiler_pic_F77='-KPIC'
14211 lt_prog_compiler_static_F77='-Bstatic'
14212 ;;
14213
14214 sysv4*MP*)
14215 if test -d /usr/nec ;then
14216 lt_prog_compiler_pic_F77='-Kconform_pic'
14217 lt_prog_compiler_static_F77='-Bstatic'
14218 fi
14219 ;;
14220
14221 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14222 lt_prog_compiler_wl_F77='-Wl,'
14223 lt_prog_compiler_pic_F77='-KPIC'
14224 lt_prog_compiler_static_F77='-Bstatic'
14225 ;;
14226
14227 unicos*)
14228 lt_prog_compiler_wl_F77='-Wl,'
14229 lt_prog_compiler_can_build_shared_F77=no
14230 ;;
14231
14232 uts4*)
14233 lt_prog_compiler_pic_F77='-pic'
14234 lt_prog_compiler_static_F77='-Bstatic'
14235 ;;
14236
14237 *)
14238 lt_prog_compiler_can_build_shared_F77=no
14239 ;;
14240 esac
14241 fi
14242
64ff59ba 14243{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14244echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
d9898ee8 14245
14246#
14247# Check to make sure the PIC flag actually works.
14248#
14249if test -n "$lt_prog_compiler_pic_F77"; then
14250
64ff59ba 14251{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14252echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
d9898ee8 14253if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14254 echo $ECHO_N "(cached) $ECHO_C" >&6
14255else
14256 lt_prog_compiler_pic_works_F77=no
14257 ac_outfile=conftest.$ac_objext
14258 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14259 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14260 # Insert the option either (1) after the last *FLAGS variable, or
14261 # (2) before a word containing "conftest.", or (3) at the end.
14262 # Note that $ac_compile itself does not contain backslashes and begins
14263 # with a dollar sign (not a hyphen), so the echo should work correctly.
14264 # The option is referenced via a variable to avoid confusing sed.
14265 lt_compile=`echo "$ac_compile" | $SED \
14266 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14267 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14268 -e 's:$: $lt_compiler_flag:'`
64ff59ba 14269 (eval echo "\"\$as_me:14269: $lt_compile\"" >&5)
d9898ee8 14270 (eval "$lt_compile" 2>conftest.err)
14271 ac_status=$?
14272 cat conftest.err >&5
64ff59ba 14273 echo "$as_me:14273: \$? = $ac_status" >&5
d9898ee8 14274 if (exit $ac_status) && test -s "$ac_outfile"; then
14275 # The compiler can only warn and ignore the option if not recognized
14276 # So say no if there are warnings other than the usual output.
14277 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14278 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14279 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14280 lt_prog_compiler_pic_works_F77=yes
14281 fi
14282 fi
14283 $rm conftest*
14284
14285fi
64ff59ba 14286{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14287echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
d9898ee8 14288
14289if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14290 case $lt_prog_compiler_pic_F77 in
14291 "" | " "*) ;;
14292 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14293 esac
14294else
14295 lt_prog_compiler_pic_F77=
14296 lt_prog_compiler_can_build_shared_F77=no
14297fi
14298
14299fi
14300case $host_os in
14301 # For platforms which do not support PIC, -DPIC is meaningless:
14302 *djgpp*)
14303 lt_prog_compiler_pic_F77=
14304 ;;
14305 *)
14306 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14307 ;;
14308esac
14309
14310#
14311# Check to make sure the static flag actually works.
14312#
14313wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
64ff59ba 14314{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14315echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
d9898ee8 14316if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14317 echo $ECHO_N "(cached) $ECHO_C" >&6
14318else
14319 lt_prog_compiler_static_works_F77=no
14320 save_LDFLAGS="$LDFLAGS"
14321 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14322 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14323 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14324 # The linker can only warn and ignore the option if not recognized
14325 # So say no if there are warnings
14326 if test -s conftest.err; then
14327 # Append any errors to the config.log.
14328 cat conftest.err 1>&5
14329 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14330 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14331 if diff conftest.exp conftest.er2 >/dev/null; then
14332 lt_prog_compiler_static_works_F77=yes
14333 fi
14334 else
14335 lt_prog_compiler_static_works_F77=yes
14336 fi
14337 fi
14338 $rm conftest*
14339 LDFLAGS="$save_LDFLAGS"
14340
14341fi
64ff59ba 14342{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14343echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
d9898ee8 14344
14345if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14346 :
14347else
14348 lt_prog_compiler_static_F77=
14349fi
14350
14351
64ff59ba 14352{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14353echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
d9898ee8 14354if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14355 echo $ECHO_N "(cached) $ECHO_C" >&6
14356else
14357 lt_cv_prog_compiler_c_o_F77=no
14358 $rm -r conftest 2>/dev/null
14359 mkdir conftest
14360 cd conftest
14361 mkdir out
14362 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14363
14364 lt_compiler_flag="-o out/conftest2.$ac_objext"
14365 # Insert the option either (1) after the last *FLAGS variable, or
14366 # (2) before a word containing "conftest.", or (3) at the end.
14367 # Note that $ac_compile itself does not contain backslashes and begins
14368 # with a dollar sign (not a hyphen), so the echo should work correctly.
14369 lt_compile=`echo "$ac_compile" | $SED \
14370 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14371 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14372 -e 's:$: $lt_compiler_flag:'`
64ff59ba 14373 (eval echo "\"\$as_me:14373: $lt_compile\"" >&5)
d9898ee8 14374 (eval "$lt_compile" 2>out/conftest.err)
14375 ac_status=$?
14376 cat out/conftest.err >&5
64ff59ba 14377 echo "$as_me:14377: \$? = $ac_status" >&5
d9898ee8 14378 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14379 then
14380 # The compiler can only warn and ignore the option if not recognized
14381 # So say no if there are warnings
14382 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14383 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14384 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14385 lt_cv_prog_compiler_c_o_F77=yes
14386 fi
14387 fi
14388 chmod u+w . 2>&5
14389 $rm conftest*
14390 # SGI C++ compiler will create directory out/ii_files/ for
14391 # template instantiation
14392 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14393 $rm out/* && rmdir out
14394 cd ..
14395 rmdir conftest
14396 $rm conftest*
14397
14398fi
64ff59ba 14399{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14400echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
d9898ee8 14401
14402
14403hard_links="nottested"
14404if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14405 # do not overwrite the value of need_locks provided by the user
64ff59ba 14406 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14407echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
d9898ee8 14408 hard_links=yes
14409 $rm conftest*
14410 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14411 touch conftest.a
14412 ln conftest.a conftest.b 2>&5 || hard_links=no
14413 ln conftest.a conftest.b 2>/dev/null && hard_links=no
64ff59ba 14414 { echo "$as_me:$LINENO: result: $hard_links" >&5
14415echo "${ECHO_T}$hard_links" >&6; }
d9898ee8 14416 if test "$hard_links" = no; then
14417 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14418echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14419 need_locks=warn
14420 fi
14421else
14422 need_locks=no
14423fi
14424
64ff59ba 14425{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14426echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
d9898ee8 14427
14428 runpath_var=
14429 allow_undefined_flag_F77=
14430 enable_shared_with_static_runtimes_F77=no
14431 archive_cmds_F77=
14432 archive_expsym_cmds_F77=
14433 old_archive_From_new_cmds_F77=
14434 old_archive_from_expsyms_cmds_F77=
14435 export_dynamic_flag_spec_F77=
14436 whole_archive_flag_spec_F77=
14437 thread_safe_flag_spec_F77=
14438 hardcode_libdir_flag_spec_F77=
14439 hardcode_libdir_flag_spec_ld_F77=
14440 hardcode_libdir_separator_F77=
14441 hardcode_direct_F77=no
14442 hardcode_minus_L_F77=no
14443 hardcode_shlibpath_var_F77=unsupported
14444 link_all_deplibs_F77=unknown
14445 hardcode_automatic_F77=no
14446 module_cmds_F77=
14447 module_expsym_cmds_F77=
14448 always_export_symbols_F77=no
14449 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14450 # include_expsyms should be a list of space-separated symbols to be *always*
14451 # included in the symbol list
14452 include_expsyms_F77=
14453 # exclude_expsyms can be an extended regexp of symbols to exclude
14454 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14455 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14456 # as well as any symbol that contains `d'.
14457 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14458 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14459 # platforms (ab)use it in PIC code, but their linkers get confused if
14460 # the symbol is explicitly referenced. Since portable code cannot
14461 # rely on this symbol name, it's probably fine to never include it in
14462 # preloaded symbol tables.
14463 extract_expsyms_cmds=
14464 # Just being paranoid about ensuring that cc_basename is set.
14465 for cc_temp in $compiler""; do
14466 case $cc_temp in
14467 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14468 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14469 \-*) ;;
14470 *) break;;
14471 esac
14472done
14473cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14474
14475 case $host_os in
14476 cygwin* | mingw* | pw32*)
14477 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14478 # When not using gcc, we currently assume that we are using
14479 # Microsoft Visual C++.
14480 if test "$GCC" != yes; then
14481 with_gnu_ld=no
14482 fi
14483 ;;
14484 interix*)
14485 # we just hope/assume this is gcc and not c89 (= MSVC++)
14486 with_gnu_ld=yes
14487 ;;
14488 openbsd*)
14489 with_gnu_ld=no
14490 ;;
14491 esac
14492
14493 ld_shlibs_F77=yes
14494 if test "$with_gnu_ld" = yes; then
14495 # If archive_cmds runs LD, not CC, wlarc should be empty
14496 wlarc='${wl}'
14497
14498 # Set some defaults for GNU ld with shared library support. These
14499 # are reset later if shared libraries are not supported. Putting them
14500 # here allows them to be overridden if necessary.
14501 runpath_var=LD_RUN_PATH
14502 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14503 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14504 # ancient GNU ld didn't support --whole-archive et. al.
14505 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14506 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14507 else
14508 whole_archive_flag_spec_F77=
14509 fi
14510 supports_anon_versioning=no
14511 case `$LD -v 2>/dev/null` in
14512 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14513 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14514 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14515 *\ 2.11.*) ;; # other 2.11 versions
14516 *) supports_anon_versioning=yes ;;
14517 esac
14518
14519 # See if GNU ld supports shared libraries.
14520 case $host_os in
14521 aix3* | aix4* | aix5*)
14522 # On AIX/PPC, the GNU linker is very broken
14523 if test "$host_cpu" != ia64; then
14524 ld_shlibs_F77=no
14525 cat <<EOF 1>&2
14526
14527*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14528*** to be unable to reliably create shared libraries on AIX.
14529*** Therefore, libtool is disabling shared libraries support. If you
14530*** really care for shared libraries, you may want to modify your PATH
14531*** so that a non-GNU linker is found, and then restart.
14532
14533EOF
14534 fi
14535 ;;
14536
14537 amigaos*)
14538 archive_cmds_F77='$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)'
14539 hardcode_libdir_flag_spec_F77='-L$libdir'
14540 hardcode_minus_L_F77=yes
14541
14542 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14543 # that the semantics of dynamic libraries on AmigaOS, at least up
14544 # to version 4, is to share data among multiple programs linked
14545 # with the same dynamic library. Since this doesn't match the
14546 # behavior of shared libraries on other platforms, we can't use
14547 # them.
14548 ld_shlibs_F77=no
14549 ;;
14550
14551 beos*)
14552 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14553 allow_undefined_flag_F77=unsupported
14554 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14555 # support --undefined. This deserves some investigation. FIXME
14556 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14557 else
14558 ld_shlibs_F77=no
14559 fi
14560 ;;
14561
14562 cygwin* | mingw* | pw32*)
14563 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14564 # as there is no search path for DLLs.
14565 hardcode_libdir_flag_spec_F77='-L$libdir'
14566 allow_undefined_flag_F77=unsupported
14567 always_export_symbols_F77=no
14568 enable_shared_with_static_runtimes_F77=yes
14569 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14570
14571 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14572 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14573 # If the export-symbols file already is a .def file (1st line
14574 # is EXPORTS), use it as is; otherwise, prepend...
14575 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14576 cp $export_symbols $output_objdir/$soname.def;
14577 else
14578 echo EXPORTS > $output_objdir/$soname.def;
14579 cat $export_symbols >> $output_objdir/$soname.def;
14580 fi~
14581 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14582 else
14583 ld_shlibs_F77=no
14584 fi
14585 ;;
14586
14587 interix3*)
14588 hardcode_direct_F77=no
14589 hardcode_shlibpath_var_F77=no
14590 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14591 export_dynamic_flag_spec_F77='${wl}-E'
14592 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14593 # Instead, shared libraries are loaded at an image base (0x10000000 by
14594 # default) and relocated if they conflict, which is a slow very memory
14595 # consuming and fragmenting process. To avoid this, we pick a random,
14596 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14597 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14598 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14599 archive_expsym_cmds_F77='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'
14600 ;;
14601
14602 linux*)
14603 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14604 tmp_addflag=
14605 case $cc_basename,$host_cpu in
14606 pgcc*) # Portland Group C compiler
14607 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14608 tmp_addflag=' $pic_flag'
14609 ;;
14610 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14611 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14612 tmp_addflag=' $pic_flag -Mnomain' ;;
14613 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14614 tmp_addflag=' -i_dynamic' ;;
14615 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14616 tmp_addflag=' -i_dynamic -nofor_main' ;;
14617 ifc* | ifort*) # Intel Fortran compiler
14618 tmp_addflag=' -nofor_main' ;;
14619 esac
14620 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14621
14622 if test $supports_anon_versioning = yes; then
14623 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14624 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14625 $echo "local: *; };" >> $output_objdir/$libname.ver~
14626 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14627 fi
14628 else
14629 ld_shlibs_F77=no
14630 fi
14631 ;;
14632
14633 netbsd*)
14634 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14635 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14636 wlarc=
14637 else
14638 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14639 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14640 fi
14641 ;;
14642
14643 solaris*)
14644 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14645 ld_shlibs_F77=no
14646 cat <<EOF 1>&2
14647
14648*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14649*** create shared libraries on Solaris systems. Therefore, libtool
14650*** is disabling shared libraries support. We urge you to upgrade GNU
14651*** binutils to release 2.9.1 or newer. Another option is to modify
14652*** your PATH or compiler configuration so that the native linker is
14653*** used, and then restart.
14654
14655EOF
14656 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14657 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14658 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14659 else
14660 ld_shlibs_F77=no
14661 fi
14662 ;;
14663
14664 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14665 case `$LD -v 2>&1` in
14666 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14667 ld_shlibs_F77=no
14668 cat <<_LT_EOF 1>&2
14669
14670*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14671*** reliably create shared libraries on SCO systems. Therefore, libtool
14672*** is disabling shared libraries support. We urge you to upgrade GNU
14673*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14674*** your PATH or compiler configuration so that the native linker is
14675*** used, and then restart.
14676
14677_LT_EOF
14678 ;;
14679 *)
14680 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14681 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14682 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14683 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14684 else
14685 ld_shlibs_F77=no
14686 fi
14687 ;;
14688 esac
14689 ;;
14690
14691 sunos4*)
14692 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14693 wlarc=
14694 hardcode_direct_F77=yes
14695 hardcode_shlibpath_var_F77=no
14696 ;;
14697
14698 *)
14699 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14700 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14701 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14702 else
14703 ld_shlibs_F77=no
14704 fi
14705 ;;
14706 esac
14707
14708 if test "$ld_shlibs_F77" = no; then
14709 runpath_var=
14710 hardcode_libdir_flag_spec_F77=
14711 export_dynamic_flag_spec_F77=
14712 whole_archive_flag_spec_F77=
14713 fi
14714 else
14715 # PORTME fill in a description of your system's linker (not GNU ld)
14716 case $host_os in
14717 aix3*)
14718 allow_undefined_flag_F77=unsupported
14719 always_export_symbols_F77=yes
14720 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
14721 # Note: this linker hardcodes the directories in LIBPATH if there
14722 # are no directories specified by -L.
14723 hardcode_minus_L_F77=yes
14724 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14725 # Neither direct hardcoding nor static linking is supported with a
14726 # broken collect2.
14727 hardcode_direct_F77=unsupported
14728 fi
14729 ;;
14730
14731 aix4* | aix5*)
14732 if test "$host_cpu" = ia64; then
14733 # On IA64, the linker does run time linking by default, so we don't
14734 # have to do anything special.
14735 aix_use_runtimelinking=no
14736 exp_sym_flag='-Bexport'
14737 no_entry_flag=""
14738 else
14739 # If we're using GNU nm, then we don't want the "-C" option.
14740 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14741 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14742 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14743 else
14744 export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14745 fi
14746 aix_use_runtimelinking=no
14747
14748 # Test if we are trying to use run time linking or normal
14749 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14750 # need to do runtime linking.
14751 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14752 for ld_flag in $LDFLAGS; do
14753 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14754 aix_use_runtimelinking=yes
14755 break
14756 fi
14757 done
14758 ;;
14759 esac
14760
14761 exp_sym_flag='-bexport'
14762 no_entry_flag='-bnoentry'
14763 fi
14764
14765 # When large executables or shared objects are built, AIX ld can
14766 # have problems creating the table of contents. If linking a library
14767 # or program results in "error TOC overflow" add -mminimal-toc to
14768 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14769 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14770
14771 archive_cmds_F77=''
14772 hardcode_direct_F77=yes
14773 hardcode_libdir_separator_F77=':'
14774 link_all_deplibs_F77=yes
14775
14776 if test "$GCC" = yes; then
14777 case $host_os in aix4.[012]|aix4.[012].*)
14778 # We only want to do this on AIX 4.2 and lower, the check
14779 # below for broken collect2 doesn't work under 4.3+
14780 collect2name=`${CC} -print-prog-name=collect2`
14781 if test -f "$collect2name" && \
14782 strings "$collect2name" | grep resolve_lib_name >/dev/null
14783 then
14784 # We have reworked collect2
14785 hardcode_direct_F77=yes
14786 else
14787 # We have old collect2
14788 hardcode_direct_F77=unsupported
14789 # It fails to find uninstalled libraries when the uninstalled
14790 # path is not listed in the libpath. Setting hardcode_minus_L
14791 # to unsupported forces relinking
14792 hardcode_minus_L_F77=yes
14793 hardcode_libdir_flag_spec_F77='-L$libdir'
14794 hardcode_libdir_separator_F77=
14795 fi
14796 ;;
14797 esac
14798 shared_flag='-shared'
14799 if test "$aix_use_runtimelinking" = yes; then
14800 shared_flag="$shared_flag "'${wl}-G'
14801 fi
14802 else
14803 # not using gcc
14804 if test "$host_cpu" = ia64; then
14805 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14806 # chokes on -Wl,-G. The following line is correct:
14807 shared_flag='-G'
14808 else
14809 if test "$aix_use_runtimelinking" = yes; then
14810 shared_flag='${wl}-G'
14811 else
14812 shared_flag='${wl}-bM:SRE'
14813 fi
14814 fi
14815 fi
14816
14817 # It seems that -bexpall does not export symbols beginning with
14818 # underscore (_), so it is better to generate a list of symbols to export.
14819 always_export_symbols_F77=yes
14820 if test "$aix_use_runtimelinking" = yes; then
14821 # Warning - without using the other runtime loading flags (-brtl),
14822 # -berok will link without error, but may produce a broken library.
14823 allow_undefined_flag_F77='-berok'
14824 # Determine the default libpath from the value encoded in an empty executable.
14825 cat >conftest.$ac_ext <<_ACEOF
14826 program main
14827
14828 end
14829_ACEOF
14830rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 14831if { (ac_try="$ac_link"
14832case "(($ac_try" in
14833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14834 *) ac_try_echo=$ac_try;;
14835esac
14836eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14837 (eval "$ac_link") 2>conftest.er1
d9898ee8 14838 ac_status=$?
14839 grep -v '^ *+' conftest.er1 >conftest.err
14840 rm -f conftest.er1
14841 cat conftest.err >&5
14842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 14843 (exit $ac_status); } && {
14844 test -z "$ac_f77_werror_flag" ||
14845 test ! -s conftest.err
14846 } && test -s conftest$ac_exeext &&
14847 $as_test_x conftest$ac_exeext; then
d9898ee8 14848
14849aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14850}'`
14851# Check for a 64-bit object if we didn't find anything.
14852if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14853}'`; fi
14854else
14855 echo "$as_me: failed program was:" >&5
14856sed 's/^/| /' conftest.$ac_ext >&5
14857
64ff59ba 14858
d9898ee8 14859fi
64ff59ba 14860
14861rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 14862 conftest$ac_exeext conftest.$ac_ext
14863if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14864
14865 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14866 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14867 else
14868 if test "$host_cpu" = ia64; then
14869 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14870 allow_undefined_flag_F77="-z nodefs"
14871 archive_expsym_cmds_F77="\$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"
14872 else
14873 # Determine the default libpath from the value encoded in an empty executable.
14874 cat >conftest.$ac_ext <<_ACEOF
14875 program main
14876
14877 end
14878_ACEOF
14879rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 14880if { (ac_try="$ac_link"
14881case "(($ac_try" in
14882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14883 *) ac_try_echo=$ac_try;;
14884esac
14885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14886 (eval "$ac_link") 2>conftest.er1
d9898ee8 14887 ac_status=$?
14888 grep -v '^ *+' conftest.er1 >conftest.err
14889 rm -f conftest.er1
14890 cat conftest.err >&5
14891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 14892 (exit $ac_status); } && {
14893 test -z "$ac_f77_werror_flag" ||
14894 test ! -s conftest.err
14895 } && test -s conftest$ac_exeext &&
14896 $as_test_x conftest$ac_exeext; then
d9898ee8 14897
14898aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14899}'`
14900# Check for a 64-bit object if we didn't find anything.
14901if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14902}'`; fi
14903else
14904 echo "$as_me: failed program was:" >&5
14905sed 's/^/| /' conftest.$ac_ext >&5
14906
64ff59ba 14907
d9898ee8 14908fi
64ff59ba 14909
14910rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 14911 conftest$ac_exeext conftest.$ac_ext
14912if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14913
14914 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14915 # Warning - without using the other run time loading flags,
14916 # -berok will link without error, but may produce a broken library.
14917 no_undefined_flag_F77=' ${wl}-bernotok'
14918 allow_undefined_flag_F77=' ${wl}-berok'
14919 # Exported symbols can be pulled into shared objects from archives
14920 whole_archive_flag_spec_F77='$convenience'
14921 archive_cmds_need_lc_F77=yes
14922 # This is similar to how AIX traditionally builds its shared libraries.
14923 archive_expsym_cmds_F77="\$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'
14924 fi
14925 fi
14926 ;;
14927
14928 amigaos*)
14929 archive_cmds_F77='$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)'
14930 hardcode_libdir_flag_spec_F77='-L$libdir'
14931 hardcode_minus_L_F77=yes
14932 # see comment about different semantics on the GNU ld section
14933 ld_shlibs_F77=no
14934 ;;
14935
14936 bsdi[45]*)
14937 export_dynamic_flag_spec_F77=-rdynamic
14938 ;;
14939
14940 cygwin* | mingw* | pw32*)
14941 # When not using gcc, we currently assume that we are using
14942 # Microsoft Visual C++.
14943 # hardcode_libdir_flag_spec is actually meaningless, as there is
14944 # no search path for DLLs.
14945 hardcode_libdir_flag_spec_F77=' '
14946 allow_undefined_flag_F77=unsupported
14947 # Tell ltmain to make .lib files, not .a files.
14948 libext=lib
14949 # Tell ltmain to make .dll files, not .so files.
14950 shrext_cmds=".dll"
14951 # FIXME: Setting linknames here is a bad hack.
14952 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14953 # The linker will automatically build a .lib file if we build a DLL.
14954 old_archive_From_new_cmds_F77='true'
14955 # FIXME: Should let the user specify the lib program.
14956 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14957 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14958 enable_shared_with_static_runtimes_F77=yes
14959 ;;
14960
14961 darwin* | rhapsody*)
14962 case $host_os in
14963 rhapsody* | darwin1.[012])
14964 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14965 ;;
14966 *) # Darwin 1.3 on
14967 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14968 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14969 else
14970 case ${MACOSX_DEPLOYMENT_TARGET} in
14971 10.[012])
14972 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14973 ;;
14974 10.*)
14975 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14976 ;;
14977 esac
14978 fi
14979 ;;
14980 esac
14981 archive_cmds_need_lc_F77=no
14982 hardcode_direct_F77=no
14983 hardcode_automatic_F77=yes
14984 hardcode_shlibpath_var_F77=unsupported
14985 whole_archive_flag_spec_F77=''
14986 link_all_deplibs_F77=yes
14987 if test "$GCC" = yes ; then
14988 output_verbose_link_cmd='echo'
14989 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14990 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14991 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14992 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14993 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14994 else
14995 case $cc_basename in
14996 xlc*)
14997 output_verbose_link_cmd='echo'
14998 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14999 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15000 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15001 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15002 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15003 ;;
15004 *)
15005 ld_shlibs_F77=no
15006 ;;
15007 esac
15008 fi
15009 ;;
15010
15011 dgux*)
15012 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15013 hardcode_libdir_flag_spec_F77='-L$libdir'
15014 hardcode_shlibpath_var_F77=no
15015 ;;
15016
15017 freebsd1*)
15018 ld_shlibs_F77=no
15019 ;;
15020
15021 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15022 # support. Future versions do this automatically, but an explicit c++rt0.o
15023 # does not break anything, and helps significantly (at the cost of a little
15024 # extra space).
15025 freebsd2.2*)
15026 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15027 hardcode_libdir_flag_spec_F77='-R$libdir'
15028 hardcode_direct_F77=yes
15029 hardcode_shlibpath_var_F77=no
15030 ;;
15031
15032 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15033 freebsd2*)
15034 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15035 hardcode_direct_F77=yes
15036 hardcode_minus_L_F77=yes
15037 hardcode_shlibpath_var_F77=no
15038 ;;
15039
15040 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15041 freebsd* | kfreebsd*-gnu | dragonfly*)
15042 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15043 hardcode_libdir_flag_spec_F77='-R$libdir'
15044 hardcode_direct_F77=yes
15045 hardcode_shlibpath_var_F77=no
15046 ;;
15047
15048 hpux9*)
15049 if test "$GCC" = yes; then
15050 archive_cmds_F77='$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'
15051 else
15052 archive_cmds_F77='$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'
15053 fi
15054 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15055 hardcode_libdir_separator_F77=:
15056 hardcode_direct_F77=yes
15057
15058 # hardcode_minus_L: Not really in the search PATH,
15059 # but as the default location of the library.
15060 hardcode_minus_L_F77=yes
15061 export_dynamic_flag_spec_F77='${wl}-E'
15062 ;;
15063
15064 hpux10*)
15065 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15066 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15067 else
15068 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15069 fi
15070 if test "$with_gnu_ld" = no; then
15071 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15072 hardcode_libdir_separator_F77=:
15073
15074 hardcode_direct_F77=yes
15075 export_dynamic_flag_spec_F77='${wl}-E'
15076
15077 # hardcode_minus_L: Not really in the search PATH,
15078 # but as the default location of the library.
15079 hardcode_minus_L_F77=yes
15080 fi
15081 ;;
15082
15083 hpux11*)
15084 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15085 case $host_cpu in
15086 hppa*64*)
15087 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15088 ;;
15089 ia64*)
15090 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15091 ;;
15092 *)
15093 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15094 ;;
15095 esac
15096 else
15097 case $host_cpu in
15098 hppa*64*)
15099 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15100 ;;
15101 ia64*)
15102 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15103 ;;
15104 *)
15105 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15106 ;;
15107 esac
15108 fi
15109 if test "$with_gnu_ld" = no; then
15110 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15111 hardcode_libdir_separator_F77=:
15112
15113 case $host_cpu in
15114 hppa*64*|ia64*)
15115 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15116 hardcode_direct_F77=no
15117 hardcode_shlibpath_var_F77=no
15118 ;;
15119 *)
15120 hardcode_direct_F77=yes
15121 export_dynamic_flag_spec_F77='${wl}-E'
15122
15123 # hardcode_minus_L: Not really in the search PATH,
15124 # but as the default location of the library.
15125 hardcode_minus_L_F77=yes
15126 ;;
15127 esac
15128 fi
15129 ;;
15130
15131 irix5* | irix6* | nonstopux*)
15132 if test "$GCC" = yes; then
15133 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15134 else
15135 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15136 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15137 fi
15138 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15139 hardcode_libdir_separator_F77=:
15140 link_all_deplibs_F77=yes
15141 ;;
15142
15143 netbsd*)
15144 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15145 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15146 else
15147 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15148 fi
15149 hardcode_libdir_flag_spec_F77='-R$libdir'
15150 hardcode_direct_F77=yes
15151 hardcode_shlibpath_var_F77=no
15152 ;;
15153
15154 newsos6)
15155 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15156 hardcode_direct_F77=yes
15157 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15158 hardcode_libdir_separator_F77=:
15159 hardcode_shlibpath_var_F77=no
15160 ;;
15161
15162 openbsd*)
15163 hardcode_direct_F77=yes
15164 hardcode_shlibpath_var_F77=no
15165 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15166 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15167 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15168 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15169 export_dynamic_flag_spec_F77='${wl}-E'
15170 else
15171 case $host_os in
15172 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15173 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15174 hardcode_libdir_flag_spec_F77='-R$libdir'
15175 ;;
15176 *)
15177 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15178 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15179 ;;
15180 esac
15181 fi
15182 ;;
15183
15184 os2*)
15185 hardcode_libdir_flag_spec_F77='-L$libdir'
15186 hardcode_minus_L_F77=yes
15187 allow_undefined_flag_F77=unsupported
15188 archive_cmds_F77='$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'
15189 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15190 ;;
15191
15192 osf3*)
15193 if test "$GCC" = yes; then
15194 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15195 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15196 else
15197 allow_undefined_flag_F77=' -expect_unresolved \*'
15198 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15199 fi
15200 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15201 hardcode_libdir_separator_F77=:
15202 ;;
15203
15204 osf4* | osf5*) # as osf3* with the addition of -msym flag
15205 if test "$GCC" = yes; then
15206 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15207 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15208 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15209 else
15210 allow_undefined_flag_F77=' -expect_unresolved \*'
15211 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15212 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15213 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
15214
15215 # Both c and cxx compiler support -rpath directly
15216 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15217 fi
15218 hardcode_libdir_separator_F77=:
15219 ;;
15220
15221 solaris*)
15222 no_undefined_flag_F77=' -z text'
15223 if test "$GCC" = yes; then
15224 wlarc='${wl}'
15225 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15226 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15227 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15228 else
15229 wlarc=''
15230 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15231 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15232 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15233 fi
15234 hardcode_libdir_flag_spec_F77='-R$libdir'
15235 hardcode_shlibpath_var_F77=no
15236 case $host_os in
15237 solaris2.[0-5] | solaris2.[0-5].*) ;;
15238 *)
15239 # The compiler driver will combine linker options so we
15240 # cannot just pass the convience library names through
15241 # without $wl, iff we do not link with $LD.
15242 # Luckily, gcc supports the same syntax we need for Sun Studio.
15243 # Supported since Solaris 2.6 (maybe 2.5.1?)
15244 case $wlarc in
15245 '')
15246 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15247 *)
15248 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
15249 esac ;;
15250 esac
15251 link_all_deplibs_F77=yes
15252 ;;
15253
15254 sunos4*)
15255 if test "x$host_vendor" = xsequent; then
15256 # Use $CC to link under sequent, because it throws in some extra .o
15257 # files that make .init and .fini sections work.
15258 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15259 else
15260 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15261 fi
15262 hardcode_libdir_flag_spec_F77='-L$libdir'
15263 hardcode_direct_F77=yes
15264 hardcode_minus_L_F77=yes
15265 hardcode_shlibpath_var_F77=no
15266 ;;
15267
15268 sysv4)
15269 case $host_vendor in
15270 sni)
15271 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15272 hardcode_direct_F77=yes # is this really true???
15273 ;;
15274 siemens)
15275 ## LD is ld it makes a PLAMLIB
15276 ## CC just makes a GrossModule.
15277 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15278 reload_cmds_F77='$CC -r -o $output$reload_objs'
15279 hardcode_direct_F77=no
15280 ;;
15281 motorola)
15282 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15283 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15284 ;;
15285 esac
15286 runpath_var='LD_RUN_PATH'
15287 hardcode_shlibpath_var_F77=no
15288 ;;
15289
15290 sysv4.3*)
15291 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15292 hardcode_shlibpath_var_F77=no
15293 export_dynamic_flag_spec_F77='-Bexport'
15294 ;;
15295
15296 sysv4*MP*)
15297 if test -d /usr/nec; then
15298 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15299 hardcode_shlibpath_var_F77=no
15300 runpath_var=LD_RUN_PATH
15301 hardcode_runpath_var=yes
15302 ld_shlibs_F77=yes
15303 fi
15304 ;;
15305
15306 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15307 no_undefined_flag_F77='${wl}-z,text'
15308 archive_cmds_need_lc_F77=no
15309 hardcode_shlibpath_var_F77=no
15310 runpath_var='LD_RUN_PATH'
15311
15312 if test "$GCC" = yes; then
15313 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15314 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15315 else
15316 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15317 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15318 fi
15319 ;;
15320
15321 sysv5* | sco3.2v5* | sco5v6*)
15322 # Note: We can NOT use -z defs as we might desire, because we do not
15323 # link with -lc, and that would cause any symbols used from libc to
15324 # always be unresolved, which means just about no library would
15325 # ever link correctly. If we're not using GNU ld we use -z text
15326 # though, which does catch some bad symbols but isn't as heavy-handed
15327 # as -z defs.
15328 no_undefined_flag_F77='${wl}-z,text'
15329 allow_undefined_flag_F77='${wl}-z,nodefs'
15330 archive_cmds_need_lc_F77=no
15331 hardcode_shlibpath_var_F77=no
15332 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15333 hardcode_libdir_separator_F77=':'
15334 link_all_deplibs_F77=yes
15335 export_dynamic_flag_spec_F77='${wl}-Bexport'
15336 runpath_var='LD_RUN_PATH'
15337
15338 if test "$GCC" = yes; then
15339 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15340 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15341 else
15342 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15343 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15344 fi
15345 ;;
15346
15347 uts4*)
15348 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15349 hardcode_libdir_flag_spec_F77='-L$libdir'
15350 hardcode_shlibpath_var_F77=no
15351 ;;
15352
15353 *)
15354 ld_shlibs_F77=no
15355 ;;
15356 esac
15357 fi
15358
64ff59ba 15359{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15360echo "${ECHO_T}$ld_shlibs_F77" >&6; }
d9898ee8 15361test "$ld_shlibs_F77" = no && can_build_shared=no
15362
15363#
15364# Do we need to explicitly link libc?
15365#
15366case "x$archive_cmds_need_lc_F77" in
15367x|xyes)
15368 # Assume -lc should be added
15369 archive_cmds_need_lc_F77=yes
15370
15371 if test "$enable_shared" = yes && test "$GCC" = yes; then
15372 case $archive_cmds_F77 in
15373 *'~'*)
15374 # FIXME: we may have to deal with multi-command sequences.
15375 ;;
15376 '$CC '*)
15377 # Test whether the compiler implicitly links with -lc since on some
15378 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15379 # to ld, don't add -lc before -lgcc.
64ff59ba 15380 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15381echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
d9898ee8 15382 $rm conftest*
15383 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15384
15385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15386 (eval $ac_compile) 2>&5
15387 ac_status=$?
15388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15389 (exit $ac_status); } 2>conftest.err; then
15390 soname=conftest
15391 lib=conftest
15392 libobjs=conftest.$ac_objext
15393 deplibs=
15394 wl=$lt_prog_compiler_wl_F77
15395 pic_flag=$lt_prog_compiler_pic_F77
15396 compiler_flags=-v
15397 linker_flags=-v
15398 verstring=
15399 output_objdir=.
15400 libname=conftest
15401 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15402 allow_undefined_flag_F77=
15403 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15404 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15405 ac_status=$?
15406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15407 (exit $ac_status); }
15408 then
15409 archive_cmds_need_lc_F77=no
15410 else
15411 archive_cmds_need_lc_F77=yes
15412 fi
15413 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15414 else
15415 cat conftest.err 1>&5
15416 fi
15417 $rm conftest*
64ff59ba 15418 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15419echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
d9898ee8 15420 ;;
15421 esac
15422 fi
15423 ;;
15424esac
15425
64ff59ba 15426{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15427echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
d9898ee8 15428library_names_spec=
15429libname_spec='lib$name'
15430soname_spec=
15431shrext_cmds=".so"
15432postinstall_cmds=
15433postuninstall_cmds=
15434finish_cmds=
15435finish_eval=
15436shlibpath_var=
15437shlibpath_overrides_runpath=unknown
15438version_type=none
15439dynamic_linker="$host_os ld.so"
15440sys_lib_dlsearch_path_spec="/lib /usr/lib"
15441if test "$GCC" = yes; then
15442 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15443 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15444 # if the path contains ";" then we assume it to be the separator
15445 # otherwise default to the standard path separator (i.e. ":") - it is
15446 # assumed that no part of a normal pathname contains ";" but that should
15447 # okay in the real world where ";" in dirpaths is itself problematic.
15448 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15449 else
15450 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15451 fi
15452else
15453 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15454fi
15455need_lib_prefix=unknown
15456hardcode_into_libs=no
15457
15458# when you set need_version to no, make sure it does not cause -set_version
15459# flags to be left without arguments
15460need_version=unknown
15461
15462case $host_os in
15463aix3*)
15464 version_type=linux
15465 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15466 shlibpath_var=LIBPATH
15467
15468 # AIX 3 has no versioning support, so we append a major version to the name.
15469 soname_spec='${libname}${release}${shared_ext}$major'
15470 ;;
15471
15472aix4* | aix5*)
15473 version_type=linux
15474 need_lib_prefix=no
15475 need_version=no
15476 hardcode_into_libs=yes
15477 if test "$host_cpu" = ia64; then
15478 # AIX 5 supports IA64
15479 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15480 shlibpath_var=LD_LIBRARY_PATH
15481 else
15482 # With GCC up to 2.95.x, collect2 would create an import file
15483 # for dependence libraries. The import file would start with
15484 # the line `#! .'. This would cause the generated library to
15485 # depend on `.', always an invalid library. This was fixed in
15486 # development snapshots of GCC prior to 3.0.
15487 case $host_os in
15488 aix4 | aix4.[01] | aix4.[01].*)
15489 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15490 echo ' yes '
15491 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15492 :
15493 else
15494 can_build_shared=no
15495 fi
15496 ;;
15497 esac
15498 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15499 # soname into executable. Probably we can add versioning support to
15500 # collect2, so additional links can be useful in future.
15501 if test "$aix_use_runtimelinking" = yes; then
15502 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15503 # instead of lib<name>.a to let people know that these are not
15504 # typical AIX shared libraries.
15505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15506 else
15507 # We preserve .a as extension for shared libraries through AIX4.2
15508 # and later when we are not doing run time linking.
15509 library_names_spec='${libname}${release}.a $libname.a'
15510 soname_spec='${libname}${release}${shared_ext}$major'
15511 fi
15512 shlibpath_var=LIBPATH
15513 fi
15514 ;;
15515
15516amigaos*)
15517 library_names_spec='$libname.ixlibrary $libname.a'
15518 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15519 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'
15520 ;;
15521
15522beos*)
15523 library_names_spec='${libname}${shared_ext}'
15524 dynamic_linker="$host_os ld.so"
15525 shlibpath_var=LIBRARY_PATH
15526 ;;
15527
15528bsdi[45]*)
15529 version_type=linux
15530 need_version=no
15531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15532 soname_spec='${libname}${release}${shared_ext}$major'
15533 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15534 shlibpath_var=LD_LIBRARY_PATH
15535 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15536 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15537 # the default ld.so.conf also contains /usr/contrib/lib and
15538 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15539 # libtool to hard-code these into programs
15540 ;;
15541
15542cygwin* | mingw* | pw32*)
15543 version_type=windows
15544 shrext_cmds=".dll"
15545 need_version=no
15546 need_lib_prefix=no
15547
15548 case $GCC,$host_os in
15549 yes,cygwin* | yes,mingw* | yes,pw32*)
15550 library_names_spec='$libname.dll.a'
15551 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15552 postinstall_cmds='base_file=`basename \${file}`~
15553 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15554 dldir=$destdir/`dirname \$dlpath`~
15555 test -d \$dldir || mkdir -p \$dldir~
15556 $install_prog $dir/$dlname \$dldir/$dlname~
15557 chmod a+x \$dldir/$dlname'
15558 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15559 dlpath=$dir/\$dldll~
15560 $rm \$dlpath'
15561 shlibpath_overrides_runpath=yes
15562
15563 case $host_os in
15564 cygwin*)
15565 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15566 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15567 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15568 ;;
15569 mingw*)
15570 # MinGW DLLs use traditional 'lib' prefix
15571 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15572 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15573 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15574 # It is most probably a Windows format PATH printed by
15575 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15576 # path with ; separators, and with drive letters. We can handle the
15577 # drive letters (cygwin fileutils understands them), so leave them,
15578 # especially as we might pass files found there to a mingw objdump,
15579 # which wouldn't understand a cygwinified path. Ahh.
15580 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15581 else
15582 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15583 fi
15584 ;;
15585 pw32*)
15586 # pw32 DLLs use 'pw' prefix rather than 'lib'
15587 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15588 ;;
15589 esac
15590 ;;
15591
15592 *)
15593 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15594 ;;
15595 esac
15596 dynamic_linker='Win32 ld.exe'
15597 # FIXME: first we should search . and the directory the executable is in
15598 shlibpath_var=PATH
15599 ;;
15600
15601darwin* | rhapsody*)
15602 dynamic_linker="$host_os dyld"
15603 version_type=darwin
15604 need_lib_prefix=no
15605 need_version=no
15606 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15607 soname_spec='${libname}${release}${major}$shared_ext'
15608 shlibpath_overrides_runpath=yes
15609 shlibpath_var=DYLD_LIBRARY_PATH
15610 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15611 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15612 if test "$GCC" = yes; then
15613 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
15614 else
15615 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15616 fi
15617 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15618 ;;
15619
15620dgux*)
15621 version_type=linux
15622 need_lib_prefix=no
15623 need_version=no
15624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15625 soname_spec='${libname}${release}${shared_ext}$major'
15626 shlibpath_var=LD_LIBRARY_PATH
15627 ;;
15628
15629freebsd1*)
15630 dynamic_linker=no
15631 ;;
15632
15633kfreebsd*-gnu)
15634 version_type=linux
15635 need_lib_prefix=no
15636 need_version=no
15637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15638 soname_spec='${libname}${release}${shared_ext}$major'
15639 shlibpath_var=LD_LIBRARY_PATH
15640 shlibpath_overrides_runpath=no
15641 hardcode_into_libs=yes
15642 dynamic_linker='GNU ld.so'
15643 ;;
15644
15645freebsd* | dragonfly*)
15646 # DragonFly does not have aout. When/if they implement a new
15647 # versioning mechanism, adjust this.
15648 if test -x /usr/bin/objformat; then
15649 objformat=`/usr/bin/objformat`
15650 else
15651 case $host_os in
15652 freebsd[123]*) objformat=aout ;;
15653 *) objformat=elf ;;
15654 esac
15655 fi
15656 version_type=freebsd-$objformat
15657 case $version_type in
15658 freebsd-elf*)
15659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15660 need_version=no
15661 need_lib_prefix=no
15662 ;;
15663 freebsd-*)
15664 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15665 need_version=yes
15666 ;;
15667 esac
15668 shlibpath_var=LD_LIBRARY_PATH
15669 case $host_os in
15670 freebsd2*)
15671 shlibpath_overrides_runpath=yes
15672 ;;
15673 freebsd3.[01]* | freebsdelf3.[01]*)
15674 shlibpath_overrides_runpath=yes
15675 hardcode_into_libs=yes
15676 ;;
15677 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15678 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15679 shlibpath_overrides_runpath=no
15680 hardcode_into_libs=yes
15681 ;;
15682 freebsd*) # from 4.6 on
15683 shlibpath_overrides_runpath=yes
15684 hardcode_into_libs=yes
15685 ;;
15686 esac
15687 ;;
15688
15689gnu*)
15690 version_type=linux
15691 need_lib_prefix=no
15692 need_version=no
15693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15694 soname_spec='${libname}${release}${shared_ext}$major'
15695 shlibpath_var=LD_LIBRARY_PATH
15696 hardcode_into_libs=yes
15697 ;;
15698
15699hpux9* | hpux10* | hpux11*)
15700 # Give a soname corresponding to the major version so that dld.sl refuses to
15701 # link against other versions.
15702 version_type=sunos
15703 need_lib_prefix=no
15704 need_version=no
15705 case $host_cpu in
15706 ia64*)
15707 shrext_cmds='.so'
15708 hardcode_into_libs=yes
15709 dynamic_linker="$host_os dld.so"
15710 shlibpath_var=LD_LIBRARY_PATH
15711 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15713 soname_spec='${libname}${release}${shared_ext}$major'
15714 if test "X$HPUX_IA64_MODE" = X32; then
15715 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15716 else
15717 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15718 fi
15719 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15720 ;;
15721 hppa*64*)
15722 shrext_cmds='.sl'
15723 hardcode_into_libs=yes
15724 dynamic_linker="$host_os dld.sl"
15725 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15726 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15728 soname_spec='${libname}${release}${shared_ext}$major'
15729 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15730 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15731 ;;
15732 *)
15733 shrext_cmds='.sl'
15734 dynamic_linker="$host_os dld.sl"
15735 shlibpath_var=SHLIB_PATH
15736 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15738 soname_spec='${libname}${release}${shared_ext}$major'
15739 ;;
15740 esac
15741 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15742 postinstall_cmds='chmod 555 $lib'
15743 ;;
15744
15745interix3*)
15746 version_type=linux
15747 need_lib_prefix=no
15748 need_version=no
15749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15750 soname_spec='${libname}${release}${shared_ext}$major'
15751 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15752 shlibpath_var=LD_LIBRARY_PATH
15753 shlibpath_overrides_runpath=no
15754 hardcode_into_libs=yes
15755 ;;
15756
15757irix5* | irix6* | nonstopux*)
15758 case $host_os in
15759 nonstopux*) version_type=nonstopux ;;
15760 *)
15761 if test "$lt_cv_prog_gnu_ld" = yes; then
15762 version_type=linux
15763 else
15764 version_type=irix
15765 fi ;;
15766 esac
15767 need_lib_prefix=no
15768 need_version=no
15769 soname_spec='${libname}${release}${shared_ext}$major'
15770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15771 case $host_os in
15772 irix5* | nonstopux*)
15773 libsuff= shlibsuff=
15774 ;;
15775 *)
15776 case $LD in # libtool.m4 will add one of these switches to LD
15777 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15778 libsuff= shlibsuff= libmagic=32-bit;;
15779 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15780 libsuff=32 shlibsuff=N32 libmagic=N32;;
15781 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15782 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15783 *) libsuff= shlibsuff= libmagic=never-match;;
15784 esac
15785 ;;
15786 esac
15787 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15788 shlibpath_overrides_runpath=no
15789 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15790 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15791 hardcode_into_libs=yes
15792 ;;
15793
15794# No shared lib support for Linux oldld, aout, or coff.
15795linux*oldld* | linux*aout* | linux*coff*)
15796 dynamic_linker=no
15797 ;;
15798
15799# This must be Linux ELF.
15800linux*)
15801 version_type=linux
15802 need_lib_prefix=no
15803 need_version=no
15804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15805 soname_spec='${libname}${release}${shared_ext}$major'
15806 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15807 shlibpath_var=LD_LIBRARY_PATH
15808 shlibpath_overrides_runpath=no
15809 # This implies no fast_install, which is unacceptable.
15810 # Some rework will be needed to allow for fast_install
15811 # before this can be enabled.
15812 hardcode_into_libs=yes
15813
15814 # find out which ABI we are using
15815 libsuff=
15816 case "$host_cpu" in
15817 x86_64*|s390x*|powerpc64*)
64ff59ba 15818 echo '#line 15818 "configure"' > conftest.$ac_ext
d9898ee8 15819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15820 (eval $ac_compile) 2>&5
15821 ac_status=$?
15822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15823 (exit $ac_status); }; then
15824 case `/usr/bin/file conftest.$ac_objext` in
15825 *64-bit*)
15826 libsuff=64
15827 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
15828 ;;
15829 esac
15830 fi
15831 rm -rf conftest*
15832 ;;
15833 esac
15834
15835 # Append ld.so.conf contents to the search path
15836 if test -f /etc/ld.so.conf; then
64ff59ba 15837 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/^ *//;s/#.*//;/^[^\/]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
d9898ee8 15838 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
15839 fi
15840
15841 # We used to test for /lib/ld.so.1 and disable shared libraries on
15842 # powerpc, because MkLinux only supported shared libraries with the
15843 # GNU dynamic linker. Since this was broken with cross compilers,
15844 # most powerpc-linux boxes support dynamic linking these days and
15845 # people can always --disable-shared, the test was removed, and we
15846 # assume the GNU/Linux dynamic linker is in use.
15847 dynamic_linker='GNU/Linux ld.so'
15848 ;;
15849
15850knetbsd*-gnu)
15851 version_type=linux
15852 need_lib_prefix=no
15853 need_version=no
15854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15855 soname_spec='${libname}${release}${shared_ext}$major'
15856 shlibpath_var=LD_LIBRARY_PATH
15857 shlibpath_overrides_runpath=no
15858 hardcode_into_libs=yes
15859 dynamic_linker='GNU ld.so'
15860 ;;
15861
15862netbsd*)
15863 version_type=sunos
15864 need_lib_prefix=no
15865 need_version=no
15866 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15868 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15869 dynamic_linker='NetBSD (a.out) ld.so'
15870 else
15871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15872 soname_spec='${libname}${release}${shared_ext}$major'
15873 dynamic_linker='NetBSD ld.elf_so'
15874 fi
15875 shlibpath_var=LD_LIBRARY_PATH
15876 shlibpath_overrides_runpath=yes
15877 hardcode_into_libs=yes
15878 ;;
15879
15880newsos6)
15881 version_type=linux
15882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15883 shlibpath_var=LD_LIBRARY_PATH
15884 shlibpath_overrides_runpath=yes
15885 ;;
15886
15887nto-qnx*)
15888 version_type=linux
15889 need_lib_prefix=no
15890 need_version=no
15891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15892 soname_spec='${libname}${release}${shared_ext}$major'
15893 shlibpath_var=LD_LIBRARY_PATH
15894 shlibpath_overrides_runpath=yes
15895 ;;
15896
15897openbsd*)
15898 version_type=sunos
15899 sys_lib_dlsearch_path_spec="/usr/lib"
15900 need_lib_prefix=no
15901 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15902 case $host_os in
15903 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15904 *) need_version=no ;;
15905 esac
15906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15907 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15908 shlibpath_var=LD_LIBRARY_PATH
15909 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15910 case $host_os in
15911 openbsd2.[89] | openbsd2.[89].*)
15912 shlibpath_overrides_runpath=no
15913 ;;
15914 *)
15915 shlibpath_overrides_runpath=yes
15916 ;;
15917 esac
15918 else
15919 shlibpath_overrides_runpath=yes
15920 fi
15921 ;;
15922
15923os2*)
15924 libname_spec='$name'
15925 shrext_cmds=".dll"
15926 need_lib_prefix=no
15927 library_names_spec='$libname${shared_ext} $libname.a'
15928 dynamic_linker='OS/2 ld.exe'
15929 shlibpath_var=LIBPATH
15930 ;;
15931
15932osf3* | osf4* | osf5*)
15933 version_type=osf
15934 need_lib_prefix=no
15935 need_version=no
15936 soname_spec='${libname}${release}${shared_ext}$major'
15937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15938 shlibpath_var=LD_LIBRARY_PATH
15939 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15940 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15941 ;;
15942
15943solaris*)
15944 version_type=linux
15945 need_lib_prefix=no
15946 need_version=no
15947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15948 soname_spec='${libname}${release}${shared_ext}$major'
15949 shlibpath_var=LD_LIBRARY_PATH
15950 shlibpath_overrides_runpath=yes
15951 hardcode_into_libs=yes
15952 # ldd complains unless libraries are executable
15953 postinstall_cmds='chmod +x $lib'
15954 ;;
15955
15956sunos4*)
15957 version_type=sunos
15958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15959 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15960 shlibpath_var=LD_LIBRARY_PATH
15961 shlibpath_overrides_runpath=yes
15962 if test "$with_gnu_ld" = yes; then
15963 need_lib_prefix=no
15964 fi
15965 need_version=yes
15966 ;;
15967
15968sysv4 | sysv4.3*)
15969 version_type=linux
15970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15971 soname_spec='${libname}${release}${shared_ext}$major'
15972 shlibpath_var=LD_LIBRARY_PATH
15973 case $host_vendor in
15974 sni)
15975 shlibpath_overrides_runpath=no
15976 need_lib_prefix=no
15977 export_dynamic_flag_spec='${wl}-Blargedynsym'
15978 runpath_var=LD_RUN_PATH
15979 ;;
15980 siemens)
15981 need_lib_prefix=no
15982 ;;
15983 motorola)
15984 need_lib_prefix=no
15985 need_version=no
15986 shlibpath_overrides_runpath=no
15987 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15988 ;;
15989 esac
15990 ;;
15991
15992sysv4*MP*)
15993 if test -d /usr/nec ;then
15994 version_type=linux
15995 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15996 soname_spec='$libname${shared_ext}.$major'
15997 shlibpath_var=LD_LIBRARY_PATH
15998 fi
15999 ;;
16000
16001sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16002 version_type=freebsd-elf
16003 need_lib_prefix=no
16004 need_version=no
16005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16006 soname_spec='${libname}${release}${shared_ext}$major'
16007 shlibpath_var=LD_LIBRARY_PATH
16008 hardcode_into_libs=yes
16009 if test "$with_gnu_ld" = yes; then
16010 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16011 shlibpath_overrides_runpath=no
16012 else
16013 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16014 shlibpath_overrides_runpath=yes
16015 case $host_os in
16016 sco3.2v5*)
16017 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16018 ;;
16019 esac
16020 fi
16021 sys_lib_dlsearch_path_spec='/usr/lib'
16022 ;;
16023
16024uts4*)
16025 version_type=linux
16026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16027 soname_spec='${libname}${release}${shared_ext}$major'
16028 shlibpath_var=LD_LIBRARY_PATH
16029 ;;
16030
16031*)
16032 dynamic_linker=no
16033 ;;
16034esac
64ff59ba 16035{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16036echo "${ECHO_T}$dynamic_linker" >&6; }
d9898ee8 16037test "$dynamic_linker" = no && can_build_shared=no
16038
16039variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16040if test "$GCC" = yes; then
16041 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16042fi
16043
64ff59ba 16044{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16045echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
d9898ee8 16046hardcode_action_F77=
16047if test -n "$hardcode_libdir_flag_spec_F77" || \
16048 test -n "$runpath_var_F77" || \
16049 test "X$hardcode_automatic_F77" = "Xyes" ; then
16050
16051 # We can hardcode non-existant directories.
16052 if test "$hardcode_direct_F77" != no &&
16053 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16054 # have to relink, otherwise we might link with an installed library
16055 # when we should be linking with a yet-to-be-installed one
16056 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16057 test "$hardcode_minus_L_F77" != no; then
16058 # Linking always hardcodes the temporary library directory.
16059 hardcode_action_F77=relink
16060 else
16061 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16062 hardcode_action_F77=immediate
16063 fi
16064else
16065 # We cannot hardcode anything, or else we can only hardcode existing
16066 # directories.
16067 hardcode_action_F77=unsupported
16068fi
64ff59ba 16069{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16070echo "${ECHO_T}$hardcode_action_F77" >&6; }
d9898ee8 16071
16072if test "$hardcode_action_F77" = relink; then
16073 # Fast installation is not supported
16074 enable_fast_install=no
16075elif test "$shlibpath_overrides_runpath" = yes ||
16076 test "$enable_shared" = no; then
16077 # Fast installation is not necessary
16078 enable_fast_install=needless
16079fi
16080
16081
16082# The else clause should only fire when bootstrapping the
16083# libtool distribution, otherwise you forgot to ship ltmain.sh
16084# with your package, and you will get complaints that there are
16085# no rules to generate ltmain.sh.
16086if test -f "$ltmain"; then
16087 # See if we are running on zsh, and set the options which allow our commands through
16088 # without removal of \ escapes.
16089 if test -n "${ZSH_VERSION+set}" ; then
16090 setopt NO_GLOB_SUBST
16091 fi
16092 # Now quote all the things that may contain metacharacters while being
16093 # careful not to overquote the AC_SUBSTed values. We take copies of the
16094 # variables and quote the copies for generation of the libtool script.
16095 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16096 SED SHELL STRIP \
16097 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16098 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16099 deplibs_check_method reload_flag reload_cmds need_locks \
16100 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16101 lt_cv_sys_global_symbol_to_c_name_address \
16102 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16103 old_postinstall_cmds old_postuninstall_cmds \
16104 compiler_F77 \
16105 CC_F77 \
16106 LD_F77 \
16107 lt_prog_compiler_wl_F77 \
16108 lt_prog_compiler_pic_F77 \
16109 lt_prog_compiler_static_F77 \
16110 lt_prog_compiler_no_builtin_flag_F77 \
16111 export_dynamic_flag_spec_F77 \
16112 thread_safe_flag_spec_F77 \
16113 whole_archive_flag_spec_F77 \
16114 enable_shared_with_static_runtimes_F77 \
16115 old_archive_cmds_F77 \
16116 old_archive_from_new_cmds_F77 \
16117 predep_objects_F77 \
16118 postdep_objects_F77 \
16119 predeps_F77 \
16120 postdeps_F77 \
16121 compiler_lib_search_path_F77 \
16122 archive_cmds_F77 \
16123 archive_expsym_cmds_F77 \
16124 postinstall_cmds_F77 \
16125 postuninstall_cmds_F77 \
16126 old_archive_from_expsyms_cmds_F77 \
16127 allow_undefined_flag_F77 \
16128 no_undefined_flag_F77 \
16129 export_symbols_cmds_F77 \
16130 hardcode_libdir_flag_spec_F77 \
16131 hardcode_libdir_flag_spec_ld_F77 \
16132 hardcode_libdir_separator_F77 \
16133 hardcode_automatic_F77 \
16134 module_cmds_F77 \
16135 module_expsym_cmds_F77 \
16136 lt_cv_prog_compiler_c_o_F77 \
16137 exclude_expsyms_F77 \
16138 include_expsyms_F77; do
16139
16140 case $var in
16141 old_archive_cmds_F77 | \
16142 old_archive_from_new_cmds_F77 | \
16143 archive_cmds_F77 | \
16144 archive_expsym_cmds_F77 | \
16145 module_cmds_F77 | \
16146 module_expsym_cmds_F77 | \
16147 old_archive_from_expsyms_cmds_F77 | \
16148 export_symbols_cmds_F77 | \
16149 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16150 postinstall_cmds | postuninstall_cmds | \
16151 old_postinstall_cmds | old_postuninstall_cmds | \
16152 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16153 # Double-quote double-evaled strings.
16154 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16155 ;;
16156 *)
16157 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16158 ;;
16159 esac
16160 done
16161
16162 case $lt_echo in
16163 *'\$0 --fallback-echo"')
16164 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16165 ;;
16166 esac
16167
16168cfgfile="$ofile"
16169
16170 cat <<__EOF__ >> "$cfgfile"
16171# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16172
16173# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16174
16175# Shell to use when invoking shell scripts.
16176SHELL=$lt_SHELL
16177
16178# Whether or not to build shared libraries.
16179build_libtool_libs=$enable_shared
16180
16181# Whether or not to build static libraries.
16182build_old_libs=$enable_static
16183
16184# Whether or not to add -lc for building shared libraries.
16185build_libtool_need_lc=$archive_cmds_need_lc_F77
16186
16187# Whether or not to disallow shared libs when runtime libs are static
16188allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16189
16190# Whether or not to optimize for fast installation.
16191fast_install=$enable_fast_install
16192
16193# The host system.
16194host_alias=$host_alias
16195host=$host
16196host_os=$host_os
16197
16198# The build system.
16199build_alias=$build_alias
16200build=$build
16201build_os=$build_os
16202
16203# An echo program that does not interpret backslashes.
16204echo=$lt_echo
16205
16206# The archiver.
16207AR=$lt_AR
16208AR_FLAGS=$lt_AR_FLAGS
16209
16210# A C compiler.
16211LTCC=$lt_LTCC
16212
16213# LTCC compiler flags.
16214LTCFLAGS=$lt_LTCFLAGS
16215
16216# A language-specific compiler.
16217CC=$lt_compiler_F77
16218
16219# Is the compiler the GNU C compiler?
16220with_gcc=$GCC_F77
16221
d9898ee8 16222# An ERE matcher.
16223EGREP=$lt_EGREP
16224
16225# The linker used to build libraries.
16226LD=$lt_LD_F77
16227
16228# Whether we need hard or soft links.
16229LN_S=$lt_LN_S
16230
16231# A BSD-compatible nm program.
16232NM=$lt_NM
16233
16234# A symbol stripping program
16235STRIP=$lt_STRIP
16236
16237# Used to examine libraries when file_magic_cmd begins "file"
16238MAGIC_CMD=$MAGIC_CMD
16239
16240# Used on cygwin: DLL creation program.
16241DLLTOOL="$DLLTOOL"
16242
16243# Used on cygwin: object dumper.
16244OBJDUMP="$OBJDUMP"
16245
16246# Used on cygwin: assembler.
16247AS="$AS"
16248
16249# The name of the directory that contains temporary libtool files.
16250objdir=$objdir
16251
16252# How to create reloadable object files.
16253reload_flag=$lt_reload_flag
16254reload_cmds=$lt_reload_cmds
16255
16256# How to pass a linker flag through the compiler.
16257wl=$lt_lt_prog_compiler_wl_F77
16258
16259# Object file suffix (normally "o").
16260objext="$ac_objext"
16261
16262# Old archive suffix (normally "a").
16263libext="$libext"
16264
16265# Shared library suffix (normally ".so").
16266shrext_cmds='$shrext_cmds'
16267
16268# Executable file suffix (normally "").
16269exeext="$exeext"
16270
16271# Additional compiler flags for building library objects.
16272pic_flag=$lt_lt_prog_compiler_pic_F77
16273pic_mode=$pic_mode
16274
16275# What is the maximum length of a command?
16276max_cmd_len=$lt_cv_sys_max_cmd_len
16277
16278# Does compiler simultaneously support -c and -o options?
16279compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16280
16281# Must we lock files when doing compilation?
16282need_locks=$lt_need_locks
16283
16284# Do we need the lib prefix for modules?
16285need_lib_prefix=$need_lib_prefix
16286
16287# Do we need a version for libraries?
16288need_version=$need_version
16289
16290# Whether dlopen is supported.
16291dlopen_support=$enable_dlopen
16292
16293# Whether dlopen of programs is supported.
16294dlopen_self=$enable_dlopen_self
16295
16296# Whether dlopen of statically linked programs is supported.
16297dlopen_self_static=$enable_dlopen_self_static
16298
16299# Compiler flag to prevent dynamic linking.
16300link_static_flag=$lt_lt_prog_compiler_static_F77
16301
16302# Compiler flag to turn off builtin functions.
16303no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16304
16305# Compiler flag to allow reflexive dlopens.
16306export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16307
16308# Compiler flag to generate shared objects directly from archives.
16309whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16310
16311# Compiler flag to generate thread-safe objects.
16312thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16313
16314# Library versioning type.
16315version_type=$version_type
16316
16317# Format of library name prefix.
16318libname_spec=$lt_libname_spec
16319
16320# List of archive names. First name is the real one, the rest are links.
16321# The last name is the one that the linker finds with -lNAME.
16322library_names_spec=$lt_library_names_spec
16323
16324# The coded name of the library, if different from the real name.
16325soname_spec=$lt_soname_spec
16326
16327# Commands used to build and install an old-style archive.
16328RANLIB=$lt_RANLIB
16329old_archive_cmds=$lt_old_archive_cmds_F77
16330old_postinstall_cmds=$lt_old_postinstall_cmds
16331old_postuninstall_cmds=$lt_old_postuninstall_cmds
16332
16333# Create an old-style archive from a shared archive.
16334old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16335
16336# Create a temporary old-style archive to link instead of a shared archive.
16337old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16338
16339# Commands used to build and install a shared archive.
16340archive_cmds=$lt_archive_cmds_F77
16341archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16342postinstall_cmds=$lt_postinstall_cmds
16343postuninstall_cmds=$lt_postuninstall_cmds
16344
16345# Commands used to build a loadable module (assumed same as above if empty)
16346module_cmds=$lt_module_cmds_F77
16347module_expsym_cmds=$lt_module_expsym_cmds_F77
16348
16349# Commands to strip libraries.
16350old_striplib=$lt_old_striplib
16351striplib=$lt_striplib
16352
16353# Dependencies to place before the objects being linked to create a
16354# shared library.
64ff59ba 16355predep_objects=$lt_predep_objects_F77
d9898ee8 16356
16357# Dependencies to place after the objects being linked to create a
16358# shared library.
64ff59ba 16359postdep_objects=$lt_postdep_objects_F77
d9898ee8 16360
16361# Dependencies to place before the objects being linked to create a
16362# shared library.
16363predeps=$lt_predeps_F77
16364
16365# Dependencies to place after the objects being linked to create a
16366# shared library.
16367postdeps=$lt_postdeps_F77
16368
16369# The library search path used internally by the compiler when linking
16370# a shared library.
64ff59ba 16371compiler_lib_search_path=$lt_compiler_lib_search_path_F77
d9898ee8 16372
16373# Method to check whether dependent libraries are shared objects.
16374deplibs_check_method=$lt_deplibs_check_method
16375
16376# Command to use when deplibs_check_method == file_magic.
16377file_magic_cmd=$lt_file_magic_cmd
16378
16379# Flag that allows shared libraries with undefined symbols to be built.
16380allow_undefined_flag=$lt_allow_undefined_flag_F77
16381
16382# Flag that forces no undefined symbols.
16383no_undefined_flag=$lt_no_undefined_flag_F77
16384
16385# Commands used to finish a libtool library installation in a directory.
16386finish_cmds=$lt_finish_cmds
16387
16388# Same as above, but a single script fragment to be evaled but not shown.
16389finish_eval=$lt_finish_eval
16390
16391# Take the output of nm and produce a listing of raw symbols and C names.
16392global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16393
16394# Transform the output of nm in a proper C declaration
16395global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16396
16397# Transform the output of nm in a C name address pair
16398global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16399
16400# This is the shared library runtime path variable.
16401runpath_var=$runpath_var
16402
16403# This is the shared library path variable.
16404shlibpath_var=$shlibpath_var
16405
16406# Is shlibpath searched before the hard-coded library search path?
16407shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16408
16409# How to hardcode a shared library path into an executable.
16410hardcode_action=$hardcode_action_F77
16411
16412# Whether we should hardcode library paths into libraries.
16413hardcode_into_libs=$hardcode_into_libs
16414
16415# Flag to hardcode \$libdir into a binary during linking.
16416# This must work even if \$libdir does not exist.
16417hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16418
16419# If ld is used when linking, flag to hardcode \$libdir into
16420# a binary during linking. This must work even if \$libdir does
16421# not exist.
16422hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16423
16424# Whether we need a single -rpath flag with a separated argument.
16425hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16426
16427# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16428# resulting binary.
16429hardcode_direct=$hardcode_direct_F77
16430
16431# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16432# resulting binary.
16433hardcode_minus_L=$hardcode_minus_L_F77
16434
16435# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16436# the resulting binary.
16437hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16438
16439# Set to yes if building a shared library automatically hardcodes DIR into the library
16440# and all subsequent libraries and executables linked against it.
16441hardcode_automatic=$hardcode_automatic_F77
16442
16443# Variables whose values should be saved in libtool wrapper scripts and
16444# restored at relink time.
16445variables_saved_for_relink="$variables_saved_for_relink"
16446
16447# Whether libtool must link a program against all its dependency libraries.
16448link_all_deplibs=$link_all_deplibs_F77
16449
16450# Compile-time system search path for libraries
64ff59ba 16451sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
d9898ee8 16452
16453# Run-time system search path for libraries
16454sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16455
16456# Fix the shell variable \$srcfile for the compiler.
16457fix_srcfile_path="$fix_srcfile_path_F77"
16458
16459# Set to yes if exported symbols are required.
16460always_export_symbols=$always_export_symbols_F77
16461
16462# The commands to list exported symbols.
16463export_symbols_cmds=$lt_export_symbols_cmds_F77
16464
16465# The commands to extract the exported symbol list from a shared archive.
16466extract_expsyms_cmds=$lt_extract_expsyms_cmds
16467
16468# Symbols that should not be listed in the preloaded symbols.
16469exclude_expsyms=$lt_exclude_expsyms_F77
16470
16471# Symbols that must always be exported.
16472include_expsyms=$lt_include_expsyms_F77
16473
16474# ### END LIBTOOL TAG CONFIG: $tagname
16475
16476__EOF__
16477
16478
16479else
16480 # If there is no Makefile yet, we rely on a make rule to execute
16481 # `config.status --recheck' to rerun these tests and create the
16482 # libtool script then.
16483 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16484 if test -f "$ltmain_in"; then
16485 test -f Makefile && make "$ltmain"
16486 fi
16487fi
16488
16489
16490ac_ext=c
16491ac_cpp='$CPP $CPPFLAGS'
16492ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16493ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16494ac_compiler_gnu=$ac_cv_c_compiler_gnu
16495
16496CC="$lt_save_CC"
16497
16498 else
16499 tagname=""
16500 fi
16501 ;;
16502
16503 GCJ)
16504 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16505
16506
d9898ee8 16507# Source file extension for Java test sources.
16508ac_ext=java
16509
16510# Object file extension for compiled Java test sources.
16511objext=o
16512objext_GCJ=$objext
16513
16514# Code to be used in simple compile tests
16515lt_simple_compile_test_code="class foo {}\n"
16516
16517# Code to be used in simple link tests
16518lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16519
16520# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16521
16522# If no C compiler was specified, use CC.
16523LTCC=${LTCC-"$CC"}
16524
16525# If no C compiler flags were specified, use CFLAGS.
16526LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16527
16528# Allow CC to be a program name with arguments.
16529compiler=$CC
16530
16531
16532# save warnings/boilerplate of simple test code
16533ac_outfile=conftest.$ac_objext
16534printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16535eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16536_lt_compiler_boilerplate=`cat conftest.err`
16537$rm conftest*
16538
16539ac_outfile=conftest.$ac_objext
16540printf "$lt_simple_link_test_code" >conftest.$ac_ext
16541eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16542_lt_linker_boilerplate=`cat conftest.err`
16543$rm conftest*
16544
16545
16546# Allow CC to be a program name with arguments.
16547lt_save_CC="$CC"
16548CC=${GCJ-"gcj"}
16549compiler=$CC
16550compiler_GCJ=$CC
16551for cc_temp in $compiler""; do
16552 case $cc_temp in
16553 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16554 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16555 \-*) ;;
16556 *) break;;
16557 esac
16558done
16559cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16560
16561
16562# GCJ did not exist at the time GCC didn't implicitly link libc in.
16563archive_cmds_need_lc_GCJ=no
16564
16565old_archive_cmds_GCJ=$old_archive_cmds
16566
16567
16568lt_prog_compiler_no_builtin_flag_GCJ=
16569
16570if test "$GCC" = yes; then
16571 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16572
16573
64ff59ba 16574{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16575echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
d9898ee8 16576if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16577 echo $ECHO_N "(cached) $ECHO_C" >&6
16578else
16579 lt_cv_prog_compiler_rtti_exceptions=no
16580 ac_outfile=conftest.$ac_objext
16581 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16582 lt_compiler_flag="-fno-rtti -fno-exceptions"
16583 # Insert the option either (1) after the last *FLAGS variable, or
16584 # (2) before a word containing "conftest.", or (3) at the end.
16585 # Note that $ac_compile itself does not contain backslashes and begins
16586 # with a dollar sign (not a hyphen), so the echo should work correctly.
16587 # The option is referenced via a variable to avoid confusing sed.
16588 lt_compile=`echo "$ac_compile" | $SED \
16589 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16590 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16591 -e 's:$: $lt_compiler_flag:'`
64ff59ba 16592 (eval echo "\"\$as_me:16592: $lt_compile\"" >&5)
d9898ee8 16593 (eval "$lt_compile" 2>conftest.err)
16594 ac_status=$?
16595 cat conftest.err >&5
64ff59ba 16596 echo "$as_me:16596: \$? = $ac_status" >&5
d9898ee8 16597 if (exit $ac_status) && test -s "$ac_outfile"; then
16598 # The compiler can only warn and ignore the option if not recognized
16599 # So say no if there are warnings other than the usual output.
16600 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16601 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16602 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16603 lt_cv_prog_compiler_rtti_exceptions=yes
16604 fi
16605 fi
16606 $rm conftest*
16607
16608fi
64ff59ba 16609{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16610echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
d9898ee8 16611
16612if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16613 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16614else
16615 :
16616fi
16617
16618fi
16619
16620lt_prog_compiler_wl_GCJ=
16621lt_prog_compiler_pic_GCJ=
16622lt_prog_compiler_static_GCJ=
16623
64ff59ba 16624{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16625echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
d9898ee8 16626
16627 if test "$GCC" = yes; then
16628 lt_prog_compiler_wl_GCJ='-Wl,'
16629 lt_prog_compiler_static_GCJ='-static'
16630
16631 case $host_os in
16632 aix*)
16633 # All AIX code is PIC.
16634 if test "$host_cpu" = ia64; then
16635 # AIX 5 now supports IA64 processor
16636 lt_prog_compiler_static_GCJ='-Bstatic'
16637 fi
16638 ;;
16639
16640 amigaos*)
16641 # FIXME: we need at least 68020 code to build shared libraries, but
16642 # adding the `-m68020' flag to GCC prevents building anything better,
16643 # like `-m68040'.
16644 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16645 ;;
16646
16647 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16648 # PIC is the default for these OSes.
16649 ;;
16650
16651 mingw* | pw32* | os2*)
16652 # This hack is so that the source file can tell whether it is being
16653 # built for inclusion in a dll (and should export symbols for example).
16654 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16655 ;;
16656
16657 darwin* | rhapsody*)
16658 # PIC is the default on this platform
16659 # Common symbols not allowed in MH_DYLIB files
16660 lt_prog_compiler_pic_GCJ='-fno-common'
16661 ;;
16662
16663 interix3*)
16664 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16665 # Instead, we relocate shared libraries at runtime.
16666 ;;
16667
16668 msdosdjgpp*)
16669 # Just because we use GCC doesn't mean we suddenly get shared libraries
16670 # on systems that don't support them.
16671 lt_prog_compiler_can_build_shared_GCJ=no
16672 enable_shared=no
16673 ;;
16674
16675 sysv4*MP*)
16676 if test -d /usr/nec; then
16677 lt_prog_compiler_pic_GCJ=-Kconform_pic
16678 fi
16679 ;;
16680
16681 hpux*)
16682 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16683 # not for PA HP-UX.
16684 case $host_cpu in
16685 hppa*64*|ia64*)
16686 # +Z the default
16687 ;;
16688 *)
16689 lt_prog_compiler_pic_GCJ='-fPIC'
16690 ;;
16691 esac
16692 ;;
16693
16694 *)
16695 lt_prog_compiler_pic_GCJ='-fPIC'
16696 ;;
16697 esac
16698 else
16699 # PORTME Check for flag to pass linker flags through the system compiler.
16700 case $host_os in
16701 aix*)
16702 lt_prog_compiler_wl_GCJ='-Wl,'
16703 if test "$host_cpu" = ia64; then
16704 # AIX 5 now supports IA64 processor
16705 lt_prog_compiler_static_GCJ='-Bstatic'
16706 else
16707 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16708 fi
16709 ;;
16710 darwin*)
16711 # PIC is the default on this platform
16712 # Common symbols not allowed in MH_DYLIB files
16713 case $cc_basename in
16714 xlc*)
16715 lt_prog_compiler_pic_GCJ='-qnocommon'
16716 lt_prog_compiler_wl_GCJ='-Wl,'
16717 ;;
16718 esac
16719 ;;
16720
16721 mingw* | pw32* | os2*)
16722 # This hack is so that the source file can tell whether it is being
16723 # built for inclusion in a dll (and should export symbols for example).
16724 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16725 ;;
16726
16727 hpux9* | hpux10* | hpux11*)
16728 lt_prog_compiler_wl_GCJ='-Wl,'
16729 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16730 # not for PA HP-UX.
16731 case $host_cpu in
16732 hppa*64*|ia64*)
16733 # +Z the default
16734 ;;
16735 *)
16736 lt_prog_compiler_pic_GCJ='+Z'
16737 ;;
16738 esac
16739 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16740 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16741 ;;
16742
16743 irix5* | irix6* | nonstopux*)
16744 lt_prog_compiler_wl_GCJ='-Wl,'
16745 # PIC (with -KPIC) is the default.
16746 lt_prog_compiler_static_GCJ='-non_shared'
16747 ;;
16748
16749 newsos6)
16750 lt_prog_compiler_pic_GCJ='-KPIC'
16751 lt_prog_compiler_static_GCJ='-Bstatic'
16752 ;;
16753
16754 linux*)
16755 case $cc_basename in
16756 icc* | ecc*)
16757 lt_prog_compiler_wl_GCJ='-Wl,'
16758 lt_prog_compiler_pic_GCJ='-KPIC'
16759 lt_prog_compiler_static_GCJ='-static'
16760 ;;
16761 pgcc* | pgf77* | pgf90* | pgf95*)
16762 # Portland Group compilers (*not* the Pentium gcc compiler,
16763 # which looks to be a dead project)
16764 lt_prog_compiler_wl_GCJ='-Wl,'
16765 lt_prog_compiler_pic_GCJ='-fpic'
16766 lt_prog_compiler_static_GCJ='-Bstatic'
16767 ;;
16768 ccc*)
16769 lt_prog_compiler_wl_GCJ='-Wl,'
16770 # All Alpha code is PIC.
16771 lt_prog_compiler_static_GCJ='-non_shared'
16772 ;;
16773 esac
16774 ;;
16775
16776 osf3* | osf4* | osf5*)
16777 lt_prog_compiler_wl_GCJ='-Wl,'
16778 # All OSF/1 code is PIC.
16779 lt_prog_compiler_static_GCJ='-non_shared'
16780 ;;
16781
16782 solaris*)
16783 lt_prog_compiler_pic_GCJ='-KPIC'
16784 lt_prog_compiler_static_GCJ='-Bstatic'
16785 case $cc_basename in
16786 f77* | f90* | f95*)
16787 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16788 *)
16789 lt_prog_compiler_wl_GCJ='-Wl,';;
16790 esac
16791 ;;
16792
16793 sunos4*)
16794 lt_prog_compiler_wl_GCJ='-Qoption ld '
16795 lt_prog_compiler_pic_GCJ='-PIC'
16796 lt_prog_compiler_static_GCJ='-Bstatic'
16797 ;;
16798
16799 sysv4 | sysv4.2uw2* | sysv4.3*)
16800 lt_prog_compiler_wl_GCJ='-Wl,'
16801 lt_prog_compiler_pic_GCJ='-KPIC'
16802 lt_prog_compiler_static_GCJ='-Bstatic'
16803 ;;
16804
16805 sysv4*MP*)
16806 if test -d /usr/nec ;then
16807 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16808 lt_prog_compiler_static_GCJ='-Bstatic'
16809 fi
16810 ;;
16811
16812 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16813 lt_prog_compiler_wl_GCJ='-Wl,'
16814 lt_prog_compiler_pic_GCJ='-KPIC'
16815 lt_prog_compiler_static_GCJ='-Bstatic'
16816 ;;
16817
16818 unicos*)
16819 lt_prog_compiler_wl_GCJ='-Wl,'
16820 lt_prog_compiler_can_build_shared_GCJ=no
16821 ;;
16822
16823 uts4*)
16824 lt_prog_compiler_pic_GCJ='-pic'
16825 lt_prog_compiler_static_GCJ='-Bstatic'
16826 ;;
16827
16828 *)
16829 lt_prog_compiler_can_build_shared_GCJ=no
16830 ;;
16831 esac
16832 fi
16833
64ff59ba 16834{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16835echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
d9898ee8 16836
16837#
16838# Check to make sure the PIC flag actually works.
16839#
16840if test -n "$lt_prog_compiler_pic_GCJ"; then
16841
64ff59ba 16842{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16843echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
d9898ee8 16844if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16845 echo $ECHO_N "(cached) $ECHO_C" >&6
16846else
16847 lt_prog_compiler_pic_works_GCJ=no
16848 ac_outfile=conftest.$ac_objext
16849 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16850 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16851 # Insert the option either (1) after the last *FLAGS variable, or
16852 # (2) before a word containing "conftest.", or (3) at the end.
16853 # Note that $ac_compile itself does not contain backslashes and begins
16854 # with a dollar sign (not a hyphen), so the echo should work correctly.
16855 # The option is referenced via a variable to avoid confusing sed.
16856 lt_compile=`echo "$ac_compile" | $SED \
16857 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16858 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16859 -e 's:$: $lt_compiler_flag:'`
64ff59ba 16860 (eval echo "\"\$as_me:16860: $lt_compile\"" >&5)
d9898ee8 16861 (eval "$lt_compile" 2>conftest.err)
16862 ac_status=$?
16863 cat conftest.err >&5
64ff59ba 16864 echo "$as_me:16864: \$? = $ac_status" >&5
d9898ee8 16865 if (exit $ac_status) && test -s "$ac_outfile"; then
16866 # The compiler can only warn and ignore the option if not recognized
16867 # So say no if there are warnings other than the usual output.
16868 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16869 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16870 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16871 lt_prog_compiler_pic_works_GCJ=yes
16872 fi
16873 fi
16874 $rm conftest*
16875
16876fi
64ff59ba 16877{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16878echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
d9898ee8 16879
16880if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16881 case $lt_prog_compiler_pic_GCJ in
16882 "" | " "*) ;;
16883 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16884 esac
16885else
16886 lt_prog_compiler_pic_GCJ=
16887 lt_prog_compiler_can_build_shared_GCJ=no
16888fi
16889
16890fi
16891case $host_os in
16892 # For platforms which do not support PIC, -DPIC is meaningless:
16893 *djgpp*)
16894 lt_prog_compiler_pic_GCJ=
16895 ;;
16896 *)
16897 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16898 ;;
16899esac
16900
16901#
16902# Check to make sure the static flag actually works.
16903#
16904wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
64ff59ba 16905{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16906echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
d9898ee8 16907if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16908 echo $ECHO_N "(cached) $ECHO_C" >&6
16909else
16910 lt_prog_compiler_static_works_GCJ=no
16911 save_LDFLAGS="$LDFLAGS"
16912 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16913 printf "$lt_simple_link_test_code" > conftest.$ac_ext
16914 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16915 # The linker can only warn and ignore the option if not recognized
16916 # So say no if there are warnings
16917 if test -s conftest.err; then
16918 # Append any errors to the config.log.
16919 cat conftest.err 1>&5
16920 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16921 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16922 if diff conftest.exp conftest.er2 >/dev/null; then
16923 lt_prog_compiler_static_works_GCJ=yes
16924 fi
16925 else
16926 lt_prog_compiler_static_works_GCJ=yes
16927 fi
16928 fi
16929 $rm conftest*
16930 LDFLAGS="$save_LDFLAGS"
16931
16932fi
64ff59ba 16933{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16934echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
d9898ee8 16935
16936if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16937 :
16938else
16939 lt_prog_compiler_static_GCJ=
16940fi
16941
16942
64ff59ba 16943{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16944echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
d9898ee8 16945if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16946 echo $ECHO_N "(cached) $ECHO_C" >&6
16947else
16948 lt_cv_prog_compiler_c_o_GCJ=no
16949 $rm -r conftest 2>/dev/null
16950 mkdir conftest
16951 cd conftest
16952 mkdir out
16953 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16954
16955 lt_compiler_flag="-o out/conftest2.$ac_objext"
16956 # Insert the option either (1) after the last *FLAGS variable, or
16957 # (2) before a word containing "conftest.", or (3) at the end.
16958 # Note that $ac_compile itself does not contain backslashes and begins
16959 # with a dollar sign (not a hyphen), so the echo should work correctly.
16960 lt_compile=`echo "$ac_compile" | $SED \
16961 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16962 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16963 -e 's:$: $lt_compiler_flag:'`
64ff59ba 16964 (eval echo "\"\$as_me:16964: $lt_compile\"" >&5)
d9898ee8 16965 (eval "$lt_compile" 2>out/conftest.err)
16966 ac_status=$?
16967 cat out/conftest.err >&5
64ff59ba 16968 echo "$as_me:16968: \$? = $ac_status" >&5
d9898ee8 16969 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16970 then
16971 # The compiler can only warn and ignore the option if not recognized
16972 # So say no if there are warnings
16973 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16974 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16975 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16976 lt_cv_prog_compiler_c_o_GCJ=yes
16977 fi
16978 fi
16979 chmod u+w . 2>&5
16980 $rm conftest*
16981 # SGI C++ compiler will create directory out/ii_files/ for
16982 # template instantiation
16983 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16984 $rm out/* && rmdir out
16985 cd ..
16986 rmdir conftest
16987 $rm conftest*
16988
16989fi
64ff59ba 16990{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16991echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
d9898ee8 16992
16993
16994hard_links="nottested"
16995if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16996 # do not overwrite the value of need_locks provided by the user
64ff59ba 16997 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16998echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
d9898ee8 16999 hard_links=yes
17000 $rm conftest*
17001 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17002 touch conftest.a
17003 ln conftest.a conftest.b 2>&5 || hard_links=no
17004 ln conftest.a conftest.b 2>/dev/null && hard_links=no
64ff59ba 17005 { echo "$as_me:$LINENO: result: $hard_links" >&5
17006echo "${ECHO_T}$hard_links" >&6; }
d9898ee8 17007 if test "$hard_links" = no; then
17008 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17009echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17010 need_locks=warn
17011 fi
17012else
17013 need_locks=no
17014fi
17015
64ff59ba 17016{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17017echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
d9898ee8 17018
17019 runpath_var=
17020 allow_undefined_flag_GCJ=
17021 enable_shared_with_static_runtimes_GCJ=no
17022 archive_cmds_GCJ=
17023 archive_expsym_cmds_GCJ=
17024 old_archive_From_new_cmds_GCJ=
17025 old_archive_from_expsyms_cmds_GCJ=
17026 export_dynamic_flag_spec_GCJ=
17027 whole_archive_flag_spec_GCJ=
17028 thread_safe_flag_spec_GCJ=
17029 hardcode_libdir_flag_spec_GCJ=
17030 hardcode_libdir_flag_spec_ld_GCJ=
17031 hardcode_libdir_separator_GCJ=
17032 hardcode_direct_GCJ=no
17033 hardcode_minus_L_GCJ=no
17034 hardcode_shlibpath_var_GCJ=unsupported
17035 link_all_deplibs_GCJ=unknown
17036 hardcode_automatic_GCJ=no
17037 module_cmds_GCJ=
17038 module_expsym_cmds_GCJ=
17039 always_export_symbols_GCJ=no
17040 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17041 # include_expsyms should be a list of space-separated symbols to be *always*
17042 # included in the symbol list
17043 include_expsyms_GCJ=
17044 # exclude_expsyms can be an extended regexp of symbols to exclude
17045 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17046 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17047 # as well as any symbol that contains `d'.
17048 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17049 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17050 # platforms (ab)use it in PIC code, but their linkers get confused if
17051 # the symbol is explicitly referenced. Since portable code cannot
17052 # rely on this symbol name, it's probably fine to never include it in
17053 # preloaded symbol tables.
17054 extract_expsyms_cmds=
17055 # Just being paranoid about ensuring that cc_basename is set.
17056 for cc_temp in $compiler""; do
17057 case $cc_temp in
17058 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17059 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17060 \-*) ;;
17061 *) break;;
17062 esac
17063done
17064cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17065
17066 case $host_os in
17067 cygwin* | mingw* | pw32*)
17068 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17069 # When not using gcc, we currently assume that we are using
17070 # Microsoft Visual C++.
17071 if test "$GCC" != yes; then
17072 with_gnu_ld=no
17073 fi
17074 ;;
17075 interix*)
17076 # we just hope/assume this is gcc and not c89 (= MSVC++)
17077 with_gnu_ld=yes
17078 ;;
17079 openbsd*)
17080 with_gnu_ld=no
17081 ;;
17082 esac
17083
17084 ld_shlibs_GCJ=yes
17085 if test "$with_gnu_ld" = yes; then
17086 # If archive_cmds runs LD, not CC, wlarc should be empty
17087 wlarc='${wl}'
17088
17089 # Set some defaults for GNU ld with shared library support. These
17090 # are reset later if shared libraries are not supported. Putting them
17091 # here allows them to be overridden if necessary.
17092 runpath_var=LD_RUN_PATH
17093 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17094 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17095 # ancient GNU ld didn't support --whole-archive et. al.
17096 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17097 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17098 else
17099 whole_archive_flag_spec_GCJ=
17100 fi
17101 supports_anon_versioning=no
17102 case `$LD -v 2>/dev/null` in
17103 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17104 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17105 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17106 *\ 2.11.*) ;; # other 2.11 versions
17107 *) supports_anon_versioning=yes ;;
17108 esac
17109
17110 # See if GNU ld supports shared libraries.
17111 case $host_os in
17112 aix3* | aix4* | aix5*)
17113 # On AIX/PPC, the GNU linker is very broken
17114 if test "$host_cpu" != ia64; then
17115 ld_shlibs_GCJ=no
17116 cat <<EOF 1>&2
17117
17118*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17119*** to be unable to reliably create shared libraries on AIX.
17120*** Therefore, libtool is disabling shared libraries support. If you
17121*** really care for shared libraries, you may want to modify your PATH
17122*** so that a non-GNU linker is found, and then restart.
17123
17124EOF
17125 fi
17126 ;;
17127
17128 amigaos*)
17129 archive_cmds_GCJ='$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)'
17130 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17131 hardcode_minus_L_GCJ=yes
17132
17133 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17134 # that the semantics of dynamic libraries on AmigaOS, at least up
17135 # to version 4, is to share data among multiple programs linked
17136 # with the same dynamic library. Since this doesn't match the
17137 # behavior of shared libraries on other platforms, we can't use
17138 # them.
17139 ld_shlibs_GCJ=no
17140 ;;
17141
17142 beos*)
17143 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17144 allow_undefined_flag_GCJ=unsupported
17145 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17146 # support --undefined. This deserves some investigation. FIXME
17147 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17148 else
17149 ld_shlibs_GCJ=no
17150 fi
17151 ;;
17152
17153 cygwin* | mingw* | pw32*)
17154 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17155 # as there is no search path for DLLs.
17156 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17157 allow_undefined_flag_GCJ=unsupported
17158 always_export_symbols_GCJ=no
17159 enable_shared_with_static_runtimes_GCJ=yes
17160 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17161
17162 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17163 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17164 # If the export-symbols file already is a .def file (1st line
17165 # is EXPORTS), use it as is; otherwise, prepend...
17166 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17167 cp $export_symbols $output_objdir/$soname.def;
17168 else
17169 echo EXPORTS > $output_objdir/$soname.def;
17170 cat $export_symbols >> $output_objdir/$soname.def;
17171 fi~
17172 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17173 else
17174 ld_shlibs_GCJ=no
17175 fi
17176 ;;
17177
17178 interix3*)
17179 hardcode_direct_GCJ=no
17180 hardcode_shlibpath_var_GCJ=no
17181 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17182 export_dynamic_flag_spec_GCJ='${wl}-E'
17183 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17184 # Instead, shared libraries are loaded at an image base (0x10000000 by
17185 # default) and relocated if they conflict, which is a slow very memory
17186 # consuming and fragmenting process. To avoid this, we pick a random,
17187 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17188 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17189 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17190 archive_expsym_cmds_GCJ='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'
17191 ;;
17192
17193 linux*)
17194 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17195 tmp_addflag=
17196 case $cc_basename,$host_cpu in
17197 pgcc*) # Portland Group C compiler
17198 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17199 tmp_addflag=' $pic_flag'
17200 ;;
17201 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17202 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17203 tmp_addflag=' $pic_flag -Mnomain' ;;
17204 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17205 tmp_addflag=' -i_dynamic' ;;
17206 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17207 tmp_addflag=' -i_dynamic -nofor_main' ;;
17208 ifc* | ifort*) # Intel Fortran compiler
17209 tmp_addflag=' -nofor_main' ;;
17210 esac
17211 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17212
17213 if test $supports_anon_versioning = yes; then
17214 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17215 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17216 $echo "local: *; };" >> $output_objdir/$libname.ver~
17217 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17218 fi
17219 else
17220 ld_shlibs_GCJ=no
17221 fi
17222 ;;
17223
17224 netbsd*)
17225 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17226 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17227 wlarc=
17228 else
17229 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17230 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17231 fi
17232 ;;
17233
17234 solaris*)
17235 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17236 ld_shlibs_GCJ=no
17237 cat <<EOF 1>&2
17238
17239*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17240*** create shared libraries on Solaris systems. Therefore, libtool
17241*** is disabling shared libraries support. We urge you to upgrade GNU
17242*** binutils to release 2.9.1 or newer. Another option is to modify
17243*** your PATH or compiler configuration so that the native linker is
17244*** used, and then restart.
17245
17246EOF
17247 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17248 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17249 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17250 else
17251 ld_shlibs_GCJ=no
17252 fi
17253 ;;
17254
17255 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17256 case `$LD -v 2>&1` in
17257 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17258 ld_shlibs_GCJ=no
17259 cat <<_LT_EOF 1>&2
17260
17261*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17262*** reliably create shared libraries on SCO systems. Therefore, libtool
17263*** is disabling shared libraries support. We urge you to upgrade GNU
17264*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17265*** your PATH or compiler configuration so that the native linker is
17266*** used, and then restart.
17267
17268_LT_EOF
17269 ;;
17270 *)
17271 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17272 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17273 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17274 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17275 else
17276 ld_shlibs_GCJ=no
17277 fi
17278 ;;
17279 esac
17280 ;;
17281
17282 sunos4*)
17283 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17284 wlarc=
17285 hardcode_direct_GCJ=yes
17286 hardcode_shlibpath_var_GCJ=no
17287 ;;
17288
17289 *)
17290 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17291 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17292 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17293 else
17294 ld_shlibs_GCJ=no
17295 fi
17296 ;;
17297 esac
17298
17299 if test "$ld_shlibs_GCJ" = no; then
17300 runpath_var=
17301 hardcode_libdir_flag_spec_GCJ=
17302 export_dynamic_flag_spec_GCJ=
17303 whole_archive_flag_spec_GCJ=
17304 fi
17305 else
17306 # PORTME fill in a description of your system's linker (not GNU ld)
17307 case $host_os in
17308 aix3*)
17309 allow_undefined_flag_GCJ=unsupported
17310 always_export_symbols_GCJ=yes
17311 archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
17312 # Note: this linker hardcodes the directories in LIBPATH if there
17313 # are no directories specified by -L.
17314 hardcode_minus_L_GCJ=yes
17315 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17316 # Neither direct hardcoding nor static linking is supported with a
17317 # broken collect2.
17318 hardcode_direct_GCJ=unsupported
17319 fi
17320 ;;
17321
17322 aix4* | aix5*)
17323 if test "$host_cpu" = ia64; then
17324 # On IA64, the linker does run time linking by default, so we don't
17325 # have to do anything special.
17326 aix_use_runtimelinking=no
17327 exp_sym_flag='-Bexport'
17328 no_entry_flag=""
17329 else
17330 # If we're using GNU nm, then we don't want the "-C" option.
17331 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17332 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17333 export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17334 else
17335 export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17336 fi
17337 aix_use_runtimelinking=no
17338
17339 # Test if we are trying to use run time linking or normal
17340 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17341 # need to do runtime linking.
17342 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17343 for ld_flag in $LDFLAGS; do
17344 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17345 aix_use_runtimelinking=yes
17346 break
17347 fi
17348 done
17349 ;;
17350 esac
17351
17352 exp_sym_flag='-bexport'
17353 no_entry_flag='-bnoentry'
17354 fi
17355
17356 # When large executables or shared objects are built, AIX ld can
17357 # have problems creating the table of contents. If linking a library
17358 # or program results in "error TOC overflow" add -mminimal-toc to
17359 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17360 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17361
17362 archive_cmds_GCJ=''
17363 hardcode_direct_GCJ=yes
17364 hardcode_libdir_separator_GCJ=':'
17365 link_all_deplibs_GCJ=yes
17366
17367 if test "$GCC" = yes; then
17368 case $host_os in aix4.[012]|aix4.[012].*)
17369 # We only want to do this on AIX 4.2 and lower, the check
17370 # below for broken collect2 doesn't work under 4.3+
17371 collect2name=`${CC} -print-prog-name=collect2`
17372 if test -f "$collect2name" && \
17373 strings "$collect2name" | grep resolve_lib_name >/dev/null
17374 then
17375 # We have reworked collect2
17376 hardcode_direct_GCJ=yes
17377 else
17378 # We have old collect2
17379 hardcode_direct_GCJ=unsupported
17380 # It fails to find uninstalled libraries when the uninstalled
17381 # path is not listed in the libpath. Setting hardcode_minus_L
17382 # to unsupported forces relinking
17383 hardcode_minus_L_GCJ=yes
17384 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17385 hardcode_libdir_separator_GCJ=
17386 fi
17387 ;;
17388 esac
17389 shared_flag='-shared'
17390 if test "$aix_use_runtimelinking" = yes; then
17391 shared_flag="$shared_flag "'${wl}-G'
17392 fi
17393 else
17394 # not using gcc
17395 if test "$host_cpu" = ia64; then
17396 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17397 # chokes on -Wl,-G. The following line is correct:
17398 shared_flag='-G'
17399 else
17400 if test "$aix_use_runtimelinking" = yes; then
17401 shared_flag='${wl}-G'
17402 else
17403 shared_flag='${wl}-bM:SRE'
17404 fi
17405 fi
17406 fi
17407
17408 # It seems that -bexpall does not export symbols beginning with
17409 # underscore (_), so it is better to generate a list of symbols to export.
17410 always_export_symbols_GCJ=yes
17411 if test "$aix_use_runtimelinking" = yes; then
17412 # Warning - without using the other runtime loading flags (-brtl),
17413 # -berok will link without error, but may produce a broken library.
17414 allow_undefined_flag_GCJ='-berok'
17415 # Determine the default libpath from the value encoded in an empty executable.
17416 cat >conftest.$ac_ext <<_ACEOF
17417/* confdefs.h. */
17418_ACEOF
17419cat confdefs.h >>conftest.$ac_ext
17420cat >>conftest.$ac_ext <<_ACEOF
17421/* end confdefs.h. */
17422
17423int
17424main ()
17425{
17426
17427 ;
17428 return 0;
17429}
17430_ACEOF
17431rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 17432if { (ac_try="$ac_link"
17433case "(($ac_try" in
17434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17435 *) ac_try_echo=$ac_try;;
17436esac
17437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17438 (eval "$ac_link") 2>conftest.er1
d9898ee8 17439 ac_status=$?
17440 grep -v '^ *+' conftest.er1 >conftest.err
17441 rm -f conftest.er1
17442 cat conftest.err >&5
17443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 17444 (exit $ac_status); } && {
17445 test -z "$ac_c_werror_flag" ||
17446 test ! -s conftest.err
17447 } && test -s conftest$ac_exeext &&
17448 $as_test_x conftest$ac_exeext; then
d9898ee8 17449
17450aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17451}'`
17452# Check for a 64-bit object if we didn't find anything.
17453if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17454}'`; fi
17455else
17456 echo "$as_me: failed program was:" >&5
17457sed 's/^/| /' conftest.$ac_ext >&5
17458
64ff59ba 17459
d9898ee8 17460fi
64ff59ba 17461
17462rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 17463 conftest$ac_exeext conftest.$ac_ext
17464if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17465
17466 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17467 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17468 else
17469 if test "$host_cpu" = ia64; then
17470 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17471 allow_undefined_flag_GCJ="-z nodefs"
17472 archive_expsym_cmds_GCJ="\$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"
17473 else
17474 # Determine the default libpath from the value encoded in an empty executable.
17475 cat >conftest.$ac_ext <<_ACEOF
17476/* confdefs.h. */
17477_ACEOF
17478cat confdefs.h >>conftest.$ac_ext
17479cat >>conftest.$ac_ext <<_ACEOF
17480/* end confdefs.h. */
17481
17482int
17483main ()
17484{
17485
17486 ;
17487 return 0;
17488}
17489_ACEOF
17490rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 17491if { (ac_try="$ac_link"
17492case "(($ac_try" in
17493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17494 *) ac_try_echo=$ac_try;;
17495esac
17496eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17497 (eval "$ac_link") 2>conftest.er1
d9898ee8 17498 ac_status=$?
17499 grep -v '^ *+' conftest.er1 >conftest.err
17500 rm -f conftest.er1
17501 cat conftest.err >&5
17502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 17503 (exit $ac_status); } && {
17504 test -z "$ac_c_werror_flag" ||
17505 test ! -s conftest.err
17506 } && test -s conftest$ac_exeext &&
17507 $as_test_x conftest$ac_exeext; then
d9898ee8 17508
17509aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17510}'`
17511# Check for a 64-bit object if we didn't find anything.
17512if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17513}'`; fi
17514else
17515 echo "$as_me: failed program was:" >&5
17516sed 's/^/| /' conftest.$ac_ext >&5
17517
64ff59ba 17518
d9898ee8 17519fi
64ff59ba 17520
17521rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 17522 conftest$ac_exeext conftest.$ac_ext
17523if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17524
17525 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17526 # Warning - without using the other run time loading flags,
17527 # -berok will link without error, but may produce a broken library.
17528 no_undefined_flag_GCJ=' ${wl}-bernotok'
17529 allow_undefined_flag_GCJ=' ${wl}-berok'
17530 # Exported symbols can be pulled into shared objects from archives
17531 whole_archive_flag_spec_GCJ='$convenience'
17532 archive_cmds_need_lc_GCJ=yes
17533 # This is similar to how AIX traditionally builds its shared libraries.
17534 archive_expsym_cmds_GCJ="\$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'
17535 fi
17536 fi
17537 ;;
17538
17539 amigaos*)
17540 archive_cmds_GCJ='$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)'
17541 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17542 hardcode_minus_L_GCJ=yes
17543 # see comment about different semantics on the GNU ld section
17544 ld_shlibs_GCJ=no
17545 ;;
17546
17547 bsdi[45]*)
17548 export_dynamic_flag_spec_GCJ=-rdynamic
17549 ;;
17550
17551 cygwin* | mingw* | pw32*)
17552 # When not using gcc, we currently assume that we are using
17553 # Microsoft Visual C++.
17554 # hardcode_libdir_flag_spec is actually meaningless, as there is
17555 # no search path for DLLs.
17556 hardcode_libdir_flag_spec_GCJ=' '
17557 allow_undefined_flag_GCJ=unsupported
17558 # Tell ltmain to make .lib files, not .a files.
17559 libext=lib
17560 # Tell ltmain to make .dll files, not .so files.
17561 shrext_cmds=".dll"
17562 # FIXME: Setting linknames here is a bad hack.
17563 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17564 # The linker will automatically build a .lib file if we build a DLL.
17565 old_archive_From_new_cmds_GCJ='true'
17566 # FIXME: Should let the user specify the lib program.
17567 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17568 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17569 enable_shared_with_static_runtimes_GCJ=yes
17570 ;;
17571
17572 darwin* | rhapsody*)
17573 case $host_os in
17574 rhapsody* | darwin1.[012])
17575 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17576 ;;
17577 *) # Darwin 1.3 on
17578 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17579 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17580 else
17581 case ${MACOSX_DEPLOYMENT_TARGET} in
17582 10.[012])
17583 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17584 ;;
17585 10.*)
17586 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17587 ;;
17588 esac
17589 fi
17590 ;;
17591 esac
17592 archive_cmds_need_lc_GCJ=no
17593 hardcode_direct_GCJ=no
17594 hardcode_automatic_GCJ=yes
17595 hardcode_shlibpath_var_GCJ=unsupported
17596 whole_archive_flag_spec_GCJ=''
17597 link_all_deplibs_GCJ=yes
17598 if test "$GCC" = yes ; then
17599 output_verbose_link_cmd='echo'
17600 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17601 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17602 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17603 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17604 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17605 else
17606 case $cc_basename in
17607 xlc*)
17608 output_verbose_link_cmd='echo'
17609 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17610 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17611 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17612 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17613 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17614 ;;
17615 *)
17616 ld_shlibs_GCJ=no
17617 ;;
17618 esac
17619 fi
17620 ;;
17621
17622 dgux*)
17623 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17624 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17625 hardcode_shlibpath_var_GCJ=no
17626 ;;
17627
17628 freebsd1*)
17629 ld_shlibs_GCJ=no
17630 ;;
17631
17632 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17633 # support. Future versions do this automatically, but an explicit c++rt0.o
17634 # does not break anything, and helps significantly (at the cost of a little
17635 # extra space).
17636 freebsd2.2*)
17637 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17638 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17639 hardcode_direct_GCJ=yes
17640 hardcode_shlibpath_var_GCJ=no
17641 ;;
17642
17643 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17644 freebsd2*)
17645 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17646 hardcode_direct_GCJ=yes
17647 hardcode_minus_L_GCJ=yes
17648 hardcode_shlibpath_var_GCJ=no
17649 ;;
17650
17651 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17652 freebsd* | kfreebsd*-gnu | dragonfly*)
17653 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17654 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17655 hardcode_direct_GCJ=yes
17656 hardcode_shlibpath_var_GCJ=no
17657 ;;
17658
17659 hpux9*)
17660 if test "$GCC" = yes; then
17661 archive_cmds_GCJ='$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'
17662 else
17663 archive_cmds_GCJ='$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'
17664 fi
17665 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17666 hardcode_libdir_separator_GCJ=:
17667 hardcode_direct_GCJ=yes
17668
17669 # hardcode_minus_L: Not really in the search PATH,
17670 # but as the default location of the library.
17671 hardcode_minus_L_GCJ=yes
17672 export_dynamic_flag_spec_GCJ='${wl}-E'
17673 ;;
17674
17675 hpux10*)
17676 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17677 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17678 else
17679 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17680 fi
17681 if test "$with_gnu_ld" = no; then
17682 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17683 hardcode_libdir_separator_GCJ=:
17684
17685 hardcode_direct_GCJ=yes
17686 export_dynamic_flag_spec_GCJ='${wl}-E'
17687
17688 # hardcode_minus_L: Not really in the search PATH,
17689 # but as the default location of the library.
17690 hardcode_minus_L_GCJ=yes
17691 fi
17692 ;;
17693
17694 hpux11*)
17695 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17696 case $host_cpu in
17697 hppa*64*)
17698 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17699 ;;
17700 ia64*)
17701 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17702 ;;
17703 *)
17704 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17705 ;;
17706 esac
17707 else
17708 case $host_cpu in
17709 hppa*64*)
17710 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17711 ;;
17712 ia64*)
17713 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17714 ;;
17715 *)
17716 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17717 ;;
17718 esac
17719 fi
17720 if test "$with_gnu_ld" = no; then
17721 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17722 hardcode_libdir_separator_GCJ=:
17723
17724 case $host_cpu in
17725 hppa*64*|ia64*)
17726 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17727 hardcode_direct_GCJ=no
17728 hardcode_shlibpath_var_GCJ=no
17729 ;;
17730 *)
17731 hardcode_direct_GCJ=yes
17732 export_dynamic_flag_spec_GCJ='${wl}-E'
17733
17734 # hardcode_minus_L: Not really in the search PATH,
17735 # but as the default location of the library.
17736 hardcode_minus_L_GCJ=yes
17737 ;;
17738 esac
17739 fi
17740 ;;
17741
17742 irix5* | irix6* | nonstopux*)
17743 if test "$GCC" = yes; then
17744 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17745 else
17746 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17747 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17748 fi
17749 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17750 hardcode_libdir_separator_GCJ=:
17751 link_all_deplibs_GCJ=yes
17752 ;;
17753
17754 netbsd*)
17755 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17756 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17757 else
17758 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17759 fi
17760 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17761 hardcode_direct_GCJ=yes
17762 hardcode_shlibpath_var_GCJ=no
17763 ;;
17764
17765 newsos6)
17766 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17767 hardcode_direct_GCJ=yes
17768 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17769 hardcode_libdir_separator_GCJ=:
17770 hardcode_shlibpath_var_GCJ=no
17771 ;;
17772
17773 openbsd*)
17774 hardcode_direct_GCJ=yes
17775 hardcode_shlibpath_var_GCJ=no
17776 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17777 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17778 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17779 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17780 export_dynamic_flag_spec_GCJ='${wl}-E'
17781 else
17782 case $host_os in
17783 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17784 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17785 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17786 ;;
17787 *)
17788 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17789 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17790 ;;
17791 esac
17792 fi
17793 ;;
17794
17795 os2*)
17796 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17797 hardcode_minus_L_GCJ=yes
17798 allow_undefined_flag_GCJ=unsupported
17799 archive_cmds_GCJ='$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'
17800 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17801 ;;
17802
17803 osf3*)
17804 if test "$GCC" = yes; then
17805 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17806 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17807 else
17808 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17809 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17810 fi
17811 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17812 hardcode_libdir_separator_GCJ=:
17813 ;;
17814
17815 osf4* | osf5*) # as osf3* with the addition of -msym flag
17816 if test "$GCC" = yes; then
17817 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17818 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17819 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17820 else
17821 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17822 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17823 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
17824 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
17825
17826 # Both c and cxx compiler support -rpath directly
17827 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17828 fi
17829 hardcode_libdir_separator_GCJ=:
17830 ;;
17831
17832 solaris*)
17833 no_undefined_flag_GCJ=' -z text'
17834 if test "$GCC" = yes; then
17835 wlarc='${wl}'
17836 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17837 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17838 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17839 else
17840 wlarc=''
17841 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17842 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17843 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17844 fi
17845 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17846 hardcode_shlibpath_var_GCJ=no
17847 case $host_os in
17848 solaris2.[0-5] | solaris2.[0-5].*) ;;
17849 *)
17850 # The compiler driver will combine linker options so we
17851 # cannot just pass the convience library names through
17852 # without $wl, iff we do not link with $LD.
17853 # Luckily, gcc supports the same syntax we need for Sun Studio.
17854 # Supported since Solaris 2.6 (maybe 2.5.1?)
17855 case $wlarc in
17856 '')
17857 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17858 *)
17859 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
17860 esac ;;
17861 esac
17862 link_all_deplibs_GCJ=yes
17863 ;;
17864
17865 sunos4*)
17866 if test "x$host_vendor" = xsequent; then
17867 # Use $CC to link under sequent, because it throws in some extra .o
17868 # files that make .init and .fini sections work.
17869 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17870 else
17871 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17872 fi
17873 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17874 hardcode_direct_GCJ=yes
17875 hardcode_minus_L_GCJ=yes
17876 hardcode_shlibpath_var_GCJ=no
17877 ;;
17878
17879 sysv4)
17880 case $host_vendor in
17881 sni)
17882 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17883 hardcode_direct_GCJ=yes # is this really true???
17884 ;;
17885 siemens)
17886 ## LD is ld it makes a PLAMLIB
17887 ## CC just makes a GrossModule.
17888 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17889 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17890 hardcode_direct_GCJ=no
17891 ;;
17892 motorola)
17893 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17894 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17895 ;;
17896 esac
17897 runpath_var='LD_RUN_PATH'
17898 hardcode_shlibpath_var_GCJ=no
17899 ;;
17900
17901 sysv4.3*)
17902 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17903 hardcode_shlibpath_var_GCJ=no
17904 export_dynamic_flag_spec_GCJ='-Bexport'
17905 ;;
17906
17907 sysv4*MP*)
17908 if test -d /usr/nec; then
17909 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17910 hardcode_shlibpath_var_GCJ=no
17911 runpath_var=LD_RUN_PATH
17912 hardcode_runpath_var=yes
17913 ld_shlibs_GCJ=yes
17914 fi
17915 ;;
17916
17917 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17918 no_undefined_flag_GCJ='${wl}-z,text'
17919 archive_cmds_need_lc_GCJ=no
17920 hardcode_shlibpath_var_GCJ=no
17921 runpath_var='LD_RUN_PATH'
17922
17923 if test "$GCC" = yes; then
17924 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17925 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17926 else
17927 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17928 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17929 fi
17930 ;;
17931
17932 sysv5* | sco3.2v5* | sco5v6*)
17933 # Note: We can NOT use -z defs as we might desire, because we do not
17934 # link with -lc, and that would cause any symbols used from libc to
17935 # always be unresolved, which means just about no library would
17936 # ever link correctly. If we're not using GNU ld we use -z text
17937 # though, which does catch some bad symbols but isn't as heavy-handed
17938 # as -z defs.
17939 no_undefined_flag_GCJ='${wl}-z,text'
17940 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17941 archive_cmds_need_lc_GCJ=no
17942 hardcode_shlibpath_var_GCJ=no
17943 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17944 hardcode_libdir_separator_GCJ=':'
17945 link_all_deplibs_GCJ=yes
17946 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17947 runpath_var='LD_RUN_PATH'
17948
17949 if test "$GCC" = yes; then
17950 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17951 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17952 else
17953 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17954 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17955 fi
17956 ;;
17957
17958 uts4*)
17959 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17960 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17961 hardcode_shlibpath_var_GCJ=no
17962 ;;
17963
17964 *)
17965 ld_shlibs_GCJ=no
17966 ;;
17967 esac
17968 fi
17969
64ff59ba 17970{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17971echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
d9898ee8 17972test "$ld_shlibs_GCJ" = no && can_build_shared=no
17973
17974#
17975# Do we need to explicitly link libc?
17976#
17977case "x$archive_cmds_need_lc_GCJ" in
17978x|xyes)
17979 # Assume -lc should be added
17980 archive_cmds_need_lc_GCJ=yes
17981
17982 if test "$enable_shared" = yes && test "$GCC" = yes; then
17983 case $archive_cmds_GCJ in
17984 *'~'*)
17985 # FIXME: we may have to deal with multi-command sequences.
17986 ;;
17987 '$CC '*)
17988 # Test whether the compiler implicitly links with -lc since on some
17989 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17990 # to ld, don't add -lc before -lgcc.
64ff59ba 17991 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17992echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
d9898ee8 17993 $rm conftest*
17994 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17995
17996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17997 (eval $ac_compile) 2>&5
17998 ac_status=$?
17999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18000 (exit $ac_status); } 2>conftest.err; then
18001 soname=conftest
18002 lib=conftest
18003 libobjs=conftest.$ac_objext
18004 deplibs=
18005 wl=$lt_prog_compiler_wl_GCJ
18006 pic_flag=$lt_prog_compiler_pic_GCJ
18007 compiler_flags=-v
18008 linker_flags=-v
18009 verstring=
18010 output_objdir=.
18011 libname=conftest
18012 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18013 allow_undefined_flag_GCJ=
18014 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18015 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18016 ac_status=$?
18017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18018 (exit $ac_status); }
18019 then
18020 archive_cmds_need_lc_GCJ=no
18021 else
18022 archive_cmds_need_lc_GCJ=yes
18023 fi
18024 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18025 else
18026 cat conftest.err 1>&5
18027 fi
18028 $rm conftest*
64ff59ba 18029 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18030echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
d9898ee8 18031 ;;
18032 esac
18033 fi
18034 ;;
18035esac
18036
64ff59ba 18037{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18038echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
d9898ee8 18039library_names_spec=
18040libname_spec='lib$name'
18041soname_spec=
18042shrext_cmds=".so"
18043postinstall_cmds=
18044postuninstall_cmds=
18045finish_cmds=
18046finish_eval=
18047shlibpath_var=
18048shlibpath_overrides_runpath=unknown
18049version_type=none
18050dynamic_linker="$host_os ld.so"
18051sys_lib_dlsearch_path_spec="/lib /usr/lib"
18052if test "$GCC" = yes; then
18053 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18054 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18055 # if the path contains ";" then we assume it to be the separator
18056 # otherwise default to the standard path separator (i.e. ":") - it is
18057 # assumed that no part of a normal pathname contains ";" but that should
18058 # okay in the real world where ";" in dirpaths is itself problematic.
18059 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18060 else
18061 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18062 fi
18063else
18064 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18065fi
18066need_lib_prefix=unknown
18067hardcode_into_libs=no
18068
18069# when you set need_version to no, make sure it does not cause -set_version
18070# flags to be left without arguments
18071need_version=unknown
18072
18073case $host_os in
18074aix3*)
18075 version_type=linux
18076 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18077 shlibpath_var=LIBPATH
18078
18079 # AIX 3 has no versioning support, so we append a major version to the name.
18080 soname_spec='${libname}${release}${shared_ext}$major'
18081 ;;
18082
18083aix4* | aix5*)
18084 version_type=linux
18085 need_lib_prefix=no
18086 need_version=no
18087 hardcode_into_libs=yes
18088 if test "$host_cpu" = ia64; then
18089 # AIX 5 supports IA64
18090 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18091 shlibpath_var=LD_LIBRARY_PATH
18092 else
18093 # With GCC up to 2.95.x, collect2 would create an import file
18094 # for dependence libraries. The import file would start with
18095 # the line `#! .'. This would cause the generated library to
18096 # depend on `.', always an invalid library. This was fixed in
18097 # development snapshots of GCC prior to 3.0.
18098 case $host_os in
18099 aix4 | aix4.[01] | aix4.[01].*)
18100 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18101 echo ' yes '
18102 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18103 :
18104 else
18105 can_build_shared=no
18106 fi
18107 ;;
18108 esac
18109 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18110 # soname into executable. Probably we can add versioning support to
18111 # collect2, so additional links can be useful in future.
18112 if test "$aix_use_runtimelinking" = yes; then
18113 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18114 # instead of lib<name>.a to let people know that these are not
18115 # typical AIX shared libraries.
18116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18117 else
18118 # We preserve .a as extension for shared libraries through AIX4.2
18119 # and later when we are not doing run time linking.
18120 library_names_spec='${libname}${release}.a $libname.a'
18121 soname_spec='${libname}${release}${shared_ext}$major'
18122 fi
18123 shlibpath_var=LIBPATH
18124 fi
18125 ;;
18126
18127amigaos*)
18128 library_names_spec='$libname.ixlibrary $libname.a'
18129 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18130 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'
18131 ;;
18132
18133beos*)
18134 library_names_spec='${libname}${shared_ext}'
18135 dynamic_linker="$host_os ld.so"
18136 shlibpath_var=LIBRARY_PATH
18137 ;;
18138
18139bsdi[45]*)
18140 version_type=linux
18141 need_version=no
18142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18143 soname_spec='${libname}${release}${shared_ext}$major'
18144 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18145 shlibpath_var=LD_LIBRARY_PATH
18146 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18147 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18148 # the default ld.so.conf also contains /usr/contrib/lib and
18149 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18150 # libtool to hard-code these into programs
18151 ;;
18152
18153cygwin* | mingw* | pw32*)
18154 version_type=windows
18155 shrext_cmds=".dll"
18156 need_version=no
18157 need_lib_prefix=no
18158
18159 case $GCC,$host_os in
18160 yes,cygwin* | yes,mingw* | yes,pw32*)
18161 library_names_spec='$libname.dll.a'
18162 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18163 postinstall_cmds='base_file=`basename \${file}`~
18164 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18165 dldir=$destdir/`dirname \$dlpath`~
18166 test -d \$dldir || mkdir -p \$dldir~
18167 $install_prog $dir/$dlname \$dldir/$dlname~
18168 chmod a+x \$dldir/$dlname'
18169 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18170 dlpath=$dir/\$dldll~
18171 $rm \$dlpath'
18172 shlibpath_overrides_runpath=yes
18173
18174 case $host_os in
18175 cygwin*)
18176 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18177 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18178 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18179 ;;
18180 mingw*)
18181 # MinGW DLLs use traditional 'lib' prefix
18182 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18183 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18184 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18185 # It is most probably a Windows format PATH printed by
18186 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18187 # path with ; separators, and with drive letters. We can handle the
18188 # drive letters (cygwin fileutils understands them), so leave them,
18189 # especially as we might pass files found there to a mingw objdump,
18190 # which wouldn't understand a cygwinified path. Ahh.
18191 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18192 else
18193 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18194 fi
18195 ;;
18196 pw32*)
18197 # pw32 DLLs use 'pw' prefix rather than 'lib'
18198 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18199 ;;
18200 esac
18201 ;;
18202
18203 *)
18204 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18205 ;;
18206 esac
18207 dynamic_linker='Win32 ld.exe'
18208 # FIXME: first we should search . and the directory the executable is in
18209 shlibpath_var=PATH
18210 ;;
18211
18212darwin* | rhapsody*)
18213 dynamic_linker="$host_os dyld"
18214 version_type=darwin
18215 need_lib_prefix=no
18216 need_version=no
18217 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18218 soname_spec='${libname}${release}${major}$shared_ext'
18219 shlibpath_overrides_runpath=yes
18220 shlibpath_var=DYLD_LIBRARY_PATH
18221 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18222 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18223 if test "$GCC" = yes; then
18224 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
18225 else
18226 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18227 fi
18228 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18229 ;;
18230
18231dgux*)
18232 version_type=linux
18233 need_lib_prefix=no
18234 need_version=no
18235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18236 soname_spec='${libname}${release}${shared_ext}$major'
18237 shlibpath_var=LD_LIBRARY_PATH
18238 ;;
18239
18240freebsd1*)
18241 dynamic_linker=no
18242 ;;
18243
18244kfreebsd*-gnu)
18245 version_type=linux
18246 need_lib_prefix=no
18247 need_version=no
18248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18249 soname_spec='${libname}${release}${shared_ext}$major'
18250 shlibpath_var=LD_LIBRARY_PATH
18251 shlibpath_overrides_runpath=no
18252 hardcode_into_libs=yes
18253 dynamic_linker='GNU ld.so'
18254 ;;
18255
18256freebsd* | dragonfly*)
18257 # DragonFly does not have aout. When/if they implement a new
18258 # versioning mechanism, adjust this.
18259 if test -x /usr/bin/objformat; then
18260 objformat=`/usr/bin/objformat`
18261 else
18262 case $host_os in
18263 freebsd[123]*) objformat=aout ;;
18264 *) objformat=elf ;;
18265 esac
18266 fi
18267 version_type=freebsd-$objformat
18268 case $version_type in
18269 freebsd-elf*)
18270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18271 need_version=no
18272 need_lib_prefix=no
18273 ;;
18274 freebsd-*)
18275 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18276 need_version=yes
18277 ;;
18278 esac
18279 shlibpath_var=LD_LIBRARY_PATH
18280 case $host_os in
18281 freebsd2*)
18282 shlibpath_overrides_runpath=yes
18283 ;;
18284 freebsd3.[01]* | freebsdelf3.[01]*)
18285 shlibpath_overrides_runpath=yes
18286 hardcode_into_libs=yes
18287 ;;
18288 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18289 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18290 shlibpath_overrides_runpath=no
18291 hardcode_into_libs=yes
18292 ;;
18293 freebsd*) # from 4.6 on
18294 shlibpath_overrides_runpath=yes
18295 hardcode_into_libs=yes
18296 ;;
18297 esac
18298 ;;
18299
18300gnu*)
18301 version_type=linux
18302 need_lib_prefix=no
18303 need_version=no
18304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18305 soname_spec='${libname}${release}${shared_ext}$major'
18306 shlibpath_var=LD_LIBRARY_PATH
18307 hardcode_into_libs=yes
18308 ;;
18309
18310hpux9* | hpux10* | hpux11*)
18311 # Give a soname corresponding to the major version so that dld.sl refuses to
18312 # link against other versions.
18313 version_type=sunos
18314 need_lib_prefix=no
18315 need_version=no
18316 case $host_cpu in
18317 ia64*)
18318 shrext_cmds='.so'
18319 hardcode_into_libs=yes
18320 dynamic_linker="$host_os dld.so"
18321 shlibpath_var=LD_LIBRARY_PATH
18322 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18324 soname_spec='${libname}${release}${shared_ext}$major'
18325 if test "X$HPUX_IA64_MODE" = X32; then
18326 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18327 else
18328 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18329 fi
18330 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18331 ;;
18332 hppa*64*)
18333 shrext_cmds='.sl'
18334 hardcode_into_libs=yes
18335 dynamic_linker="$host_os dld.sl"
18336 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18337 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18339 soname_spec='${libname}${release}${shared_ext}$major'
18340 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18341 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18342 ;;
18343 *)
18344 shrext_cmds='.sl'
18345 dynamic_linker="$host_os dld.sl"
18346 shlibpath_var=SHLIB_PATH
18347 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18349 soname_spec='${libname}${release}${shared_ext}$major'
18350 ;;
18351 esac
18352 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18353 postinstall_cmds='chmod 555 $lib'
18354 ;;
18355
18356interix3*)
18357 version_type=linux
18358 need_lib_prefix=no
18359 need_version=no
18360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18361 soname_spec='${libname}${release}${shared_ext}$major'
18362 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18363 shlibpath_var=LD_LIBRARY_PATH
18364 shlibpath_overrides_runpath=no
18365 hardcode_into_libs=yes
18366 ;;
18367
18368irix5* | irix6* | nonstopux*)
18369 case $host_os in
18370 nonstopux*) version_type=nonstopux ;;
18371 *)
18372 if test "$lt_cv_prog_gnu_ld" = yes; then
18373 version_type=linux
18374 else
18375 version_type=irix
18376 fi ;;
18377 esac
18378 need_lib_prefix=no
18379 need_version=no
18380 soname_spec='${libname}${release}${shared_ext}$major'
18381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18382 case $host_os in
18383 irix5* | nonstopux*)
18384 libsuff= shlibsuff=
18385 ;;
18386 *)
18387 case $LD in # libtool.m4 will add one of these switches to LD
18388 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18389 libsuff= shlibsuff= libmagic=32-bit;;
18390 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18391 libsuff=32 shlibsuff=N32 libmagic=N32;;
18392 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18393 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18394 *) libsuff= shlibsuff= libmagic=never-match;;
18395 esac
18396 ;;
18397 esac
18398 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18399 shlibpath_overrides_runpath=no
18400 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18401 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18402 hardcode_into_libs=yes
18403 ;;
18404
18405# No shared lib support for Linux oldld, aout, or coff.
18406linux*oldld* | linux*aout* | linux*coff*)
18407 dynamic_linker=no
18408 ;;
18409
18410# This must be Linux ELF.
18411linux*)
18412 version_type=linux
18413 need_lib_prefix=no
18414 need_version=no
18415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18416 soname_spec='${libname}${release}${shared_ext}$major'
18417 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18418 shlibpath_var=LD_LIBRARY_PATH
18419 shlibpath_overrides_runpath=no
18420 # This implies no fast_install, which is unacceptable.
18421 # Some rework will be needed to allow for fast_install
18422 # before this can be enabled.
18423 hardcode_into_libs=yes
18424
18425 # find out which ABI we are using
18426 libsuff=
18427 case "$host_cpu" in
18428 x86_64*|s390x*|powerpc64*)
64ff59ba 18429 echo '#line 18429 "configure"' > conftest.$ac_ext
d9898ee8 18430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18431 (eval $ac_compile) 2>&5
18432 ac_status=$?
18433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18434 (exit $ac_status); }; then
18435 case `/usr/bin/file conftest.$ac_objext` in
18436 *64-bit*)
18437 libsuff=64
18438 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
18439 ;;
18440 esac
18441 fi
18442 rm -rf conftest*
18443 ;;
18444 esac
18445
18446 # Append ld.so.conf contents to the search path
18447 if test -f /etc/ld.so.conf; then
64ff59ba 18448 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/^ *//;s/#.*//;/^[^\/]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
d9898ee8 18449 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
18450 fi
18451
18452 # We used to test for /lib/ld.so.1 and disable shared libraries on
18453 # powerpc, because MkLinux only supported shared libraries with the
18454 # GNU dynamic linker. Since this was broken with cross compilers,
18455 # most powerpc-linux boxes support dynamic linking these days and
18456 # people can always --disable-shared, the test was removed, and we
18457 # assume the GNU/Linux dynamic linker is in use.
18458 dynamic_linker='GNU/Linux ld.so'
18459 ;;
18460
18461knetbsd*-gnu)
18462 version_type=linux
18463 need_lib_prefix=no
18464 need_version=no
18465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18466 soname_spec='${libname}${release}${shared_ext}$major'
18467 shlibpath_var=LD_LIBRARY_PATH
18468 shlibpath_overrides_runpath=no
18469 hardcode_into_libs=yes
18470 dynamic_linker='GNU ld.so'
18471 ;;
18472
18473netbsd*)
18474 version_type=sunos
18475 need_lib_prefix=no
18476 need_version=no
18477 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18479 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18480 dynamic_linker='NetBSD (a.out) ld.so'
18481 else
18482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18483 soname_spec='${libname}${release}${shared_ext}$major'
18484 dynamic_linker='NetBSD ld.elf_so'
18485 fi
18486 shlibpath_var=LD_LIBRARY_PATH
18487 shlibpath_overrides_runpath=yes
18488 hardcode_into_libs=yes
18489 ;;
18490
18491newsos6)
18492 version_type=linux
18493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18494 shlibpath_var=LD_LIBRARY_PATH
18495 shlibpath_overrides_runpath=yes
18496 ;;
18497
18498nto-qnx*)
18499 version_type=linux
18500 need_lib_prefix=no
18501 need_version=no
18502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18503 soname_spec='${libname}${release}${shared_ext}$major'
18504 shlibpath_var=LD_LIBRARY_PATH
18505 shlibpath_overrides_runpath=yes
18506 ;;
18507
18508openbsd*)
18509 version_type=sunos
18510 sys_lib_dlsearch_path_spec="/usr/lib"
18511 need_lib_prefix=no
18512 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18513 case $host_os in
18514 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18515 *) need_version=no ;;
18516 esac
18517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18518 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18519 shlibpath_var=LD_LIBRARY_PATH
18520 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18521 case $host_os in
18522 openbsd2.[89] | openbsd2.[89].*)
18523 shlibpath_overrides_runpath=no
18524 ;;
18525 *)
18526 shlibpath_overrides_runpath=yes
18527 ;;
18528 esac
18529 else
18530 shlibpath_overrides_runpath=yes
18531 fi
18532 ;;
18533
18534os2*)
18535 libname_spec='$name'
18536 shrext_cmds=".dll"
18537 need_lib_prefix=no
18538 library_names_spec='$libname${shared_ext} $libname.a'
18539 dynamic_linker='OS/2 ld.exe'
18540 shlibpath_var=LIBPATH
18541 ;;
18542
18543osf3* | osf4* | osf5*)
18544 version_type=osf
18545 need_lib_prefix=no
18546 need_version=no
18547 soname_spec='${libname}${release}${shared_ext}$major'
18548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18549 shlibpath_var=LD_LIBRARY_PATH
18550 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18551 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18552 ;;
18553
18554solaris*)
18555 version_type=linux
18556 need_lib_prefix=no
18557 need_version=no
18558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18559 soname_spec='${libname}${release}${shared_ext}$major'
18560 shlibpath_var=LD_LIBRARY_PATH
18561 shlibpath_overrides_runpath=yes
18562 hardcode_into_libs=yes
18563 # ldd complains unless libraries are executable
18564 postinstall_cmds='chmod +x $lib'
18565 ;;
18566
18567sunos4*)
18568 version_type=sunos
18569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18570 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18571 shlibpath_var=LD_LIBRARY_PATH
18572 shlibpath_overrides_runpath=yes
18573 if test "$with_gnu_ld" = yes; then
18574 need_lib_prefix=no
18575 fi
18576 need_version=yes
18577 ;;
18578
18579sysv4 | sysv4.3*)
18580 version_type=linux
18581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18582 soname_spec='${libname}${release}${shared_ext}$major'
18583 shlibpath_var=LD_LIBRARY_PATH
18584 case $host_vendor in
18585 sni)
18586 shlibpath_overrides_runpath=no
18587 need_lib_prefix=no
18588 export_dynamic_flag_spec='${wl}-Blargedynsym'
18589 runpath_var=LD_RUN_PATH
18590 ;;
18591 siemens)
18592 need_lib_prefix=no
18593 ;;
18594 motorola)
18595 need_lib_prefix=no
18596 need_version=no
18597 shlibpath_overrides_runpath=no
18598 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18599 ;;
18600 esac
18601 ;;
18602
18603sysv4*MP*)
18604 if test -d /usr/nec ;then
18605 version_type=linux
18606 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18607 soname_spec='$libname${shared_ext}.$major'
18608 shlibpath_var=LD_LIBRARY_PATH
18609 fi
18610 ;;
18611
18612sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18613 version_type=freebsd-elf
18614 need_lib_prefix=no
18615 need_version=no
18616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18617 soname_spec='${libname}${release}${shared_ext}$major'
18618 shlibpath_var=LD_LIBRARY_PATH
18619 hardcode_into_libs=yes
18620 if test "$with_gnu_ld" = yes; then
18621 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18622 shlibpath_overrides_runpath=no
18623 else
18624 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18625 shlibpath_overrides_runpath=yes
18626 case $host_os in
18627 sco3.2v5*)
18628 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18629 ;;
18630 esac
18631 fi
18632 sys_lib_dlsearch_path_spec='/usr/lib'
18633 ;;
18634
18635uts4*)
18636 version_type=linux
18637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18638 soname_spec='${libname}${release}${shared_ext}$major'
18639 shlibpath_var=LD_LIBRARY_PATH
18640 ;;
18641
18642*)
18643 dynamic_linker=no
18644 ;;
18645esac
64ff59ba 18646{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18647echo "${ECHO_T}$dynamic_linker" >&6; }
d9898ee8 18648test "$dynamic_linker" = no && can_build_shared=no
18649
18650variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18651if test "$GCC" = yes; then
18652 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18653fi
18654
64ff59ba 18655{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18656echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
d9898ee8 18657hardcode_action_GCJ=
18658if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18659 test -n "$runpath_var_GCJ" || \
18660 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18661
18662 # We can hardcode non-existant directories.
18663 if test "$hardcode_direct_GCJ" != no &&
18664 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18665 # have to relink, otherwise we might link with an installed library
18666 # when we should be linking with a yet-to-be-installed one
18667 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18668 test "$hardcode_minus_L_GCJ" != no; then
18669 # Linking always hardcodes the temporary library directory.
18670 hardcode_action_GCJ=relink
18671 else
18672 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18673 hardcode_action_GCJ=immediate
18674 fi
18675else
18676 # We cannot hardcode anything, or else we can only hardcode existing
18677 # directories.
18678 hardcode_action_GCJ=unsupported
18679fi
64ff59ba 18680{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18681echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
d9898ee8 18682
18683if test "$hardcode_action_GCJ" = relink; then
18684 # Fast installation is not supported
18685 enable_fast_install=no
18686elif test "$shlibpath_overrides_runpath" = yes ||
18687 test "$enable_shared" = no; then
18688 # Fast installation is not necessary
18689 enable_fast_install=needless
18690fi
18691
18692
18693# The else clause should only fire when bootstrapping the
18694# libtool distribution, otherwise you forgot to ship ltmain.sh
18695# with your package, and you will get complaints that there are
18696# no rules to generate ltmain.sh.
18697if test -f "$ltmain"; then
18698 # See if we are running on zsh, and set the options which allow our commands through
18699 # without removal of \ escapes.
18700 if test -n "${ZSH_VERSION+set}" ; then
18701 setopt NO_GLOB_SUBST
18702 fi
18703 # Now quote all the things that may contain metacharacters while being
18704 # careful not to overquote the AC_SUBSTed values. We take copies of the
18705 # variables and quote the copies for generation of the libtool script.
18706 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18707 SED SHELL STRIP \
18708 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18709 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18710 deplibs_check_method reload_flag reload_cmds need_locks \
18711 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18712 lt_cv_sys_global_symbol_to_c_name_address \
18713 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18714 old_postinstall_cmds old_postuninstall_cmds \
18715 compiler_GCJ \
18716 CC_GCJ \
18717 LD_GCJ \
18718 lt_prog_compiler_wl_GCJ \
18719 lt_prog_compiler_pic_GCJ \
18720 lt_prog_compiler_static_GCJ \
18721 lt_prog_compiler_no_builtin_flag_GCJ \
18722 export_dynamic_flag_spec_GCJ \
18723 thread_safe_flag_spec_GCJ \
18724 whole_archive_flag_spec_GCJ \
18725 enable_shared_with_static_runtimes_GCJ \
18726 old_archive_cmds_GCJ \
18727 old_archive_from_new_cmds_GCJ \
18728 predep_objects_GCJ \
18729 postdep_objects_GCJ \
18730 predeps_GCJ \
18731 postdeps_GCJ \
18732 compiler_lib_search_path_GCJ \
18733 archive_cmds_GCJ \
18734 archive_expsym_cmds_GCJ \
18735 postinstall_cmds_GCJ \
18736 postuninstall_cmds_GCJ \
18737 old_archive_from_expsyms_cmds_GCJ \
18738 allow_undefined_flag_GCJ \
18739 no_undefined_flag_GCJ \
18740 export_symbols_cmds_GCJ \
18741 hardcode_libdir_flag_spec_GCJ \
18742 hardcode_libdir_flag_spec_ld_GCJ \
18743 hardcode_libdir_separator_GCJ \
18744 hardcode_automatic_GCJ \
18745 module_cmds_GCJ \
18746 module_expsym_cmds_GCJ \
18747 lt_cv_prog_compiler_c_o_GCJ \
18748 exclude_expsyms_GCJ \
18749 include_expsyms_GCJ; do
18750
18751 case $var in
18752 old_archive_cmds_GCJ | \
18753 old_archive_from_new_cmds_GCJ | \
18754 archive_cmds_GCJ | \
18755 archive_expsym_cmds_GCJ | \
18756 module_cmds_GCJ | \
18757 module_expsym_cmds_GCJ | \
18758 old_archive_from_expsyms_cmds_GCJ | \
18759 export_symbols_cmds_GCJ | \
18760 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18761 postinstall_cmds | postuninstall_cmds | \
18762 old_postinstall_cmds | old_postuninstall_cmds | \
18763 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18764 # Double-quote double-evaled strings.
18765 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18766 ;;
18767 *)
18768 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18769 ;;
18770 esac
18771 done
18772
18773 case $lt_echo in
18774 *'\$0 --fallback-echo"')
18775 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18776 ;;
18777 esac
18778
18779cfgfile="$ofile"
18780
18781 cat <<__EOF__ >> "$cfgfile"
18782# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18783
18784# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18785
18786# Shell to use when invoking shell scripts.
18787SHELL=$lt_SHELL
18788
18789# Whether or not to build shared libraries.
18790build_libtool_libs=$enable_shared
18791
18792# Whether or not to build static libraries.
18793build_old_libs=$enable_static
18794
18795# Whether or not to add -lc for building shared libraries.
18796build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18797
18798# Whether or not to disallow shared libs when runtime libs are static
18799allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18800
18801# Whether or not to optimize for fast installation.
18802fast_install=$enable_fast_install
18803
18804# The host system.
18805host_alias=$host_alias
18806host=$host
18807host_os=$host_os
18808
18809# The build system.
18810build_alias=$build_alias
18811build=$build
18812build_os=$build_os
18813
18814# An echo program that does not interpret backslashes.
18815echo=$lt_echo
18816
18817# The archiver.
18818AR=$lt_AR
18819AR_FLAGS=$lt_AR_FLAGS
18820
18821# A C compiler.
18822LTCC=$lt_LTCC
18823
18824# LTCC compiler flags.
18825LTCFLAGS=$lt_LTCFLAGS
18826
18827# A language-specific compiler.
18828CC=$lt_compiler_GCJ
18829
18830# Is the compiler the GNU C compiler?
18831with_gcc=$GCC_GCJ
18832
d9898ee8 18833# An ERE matcher.
18834EGREP=$lt_EGREP
18835
18836# The linker used to build libraries.
18837LD=$lt_LD_GCJ
18838
18839# Whether we need hard or soft links.
18840LN_S=$lt_LN_S
18841
18842# A BSD-compatible nm program.
18843NM=$lt_NM
18844
18845# A symbol stripping program
18846STRIP=$lt_STRIP
18847
18848# Used to examine libraries when file_magic_cmd begins "file"
18849MAGIC_CMD=$MAGIC_CMD
18850
18851# Used on cygwin: DLL creation program.
18852DLLTOOL="$DLLTOOL"
18853
18854# Used on cygwin: object dumper.
18855OBJDUMP="$OBJDUMP"
18856
18857# Used on cygwin: assembler.
18858AS="$AS"
18859
18860# The name of the directory that contains temporary libtool files.
18861objdir=$objdir
18862
18863# How to create reloadable object files.
18864reload_flag=$lt_reload_flag
18865reload_cmds=$lt_reload_cmds
18866
18867# How to pass a linker flag through the compiler.
18868wl=$lt_lt_prog_compiler_wl_GCJ
18869
18870# Object file suffix (normally "o").
18871objext="$ac_objext"
18872
18873# Old archive suffix (normally "a").
18874libext="$libext"
18875
18876# Shared library suffix (normally ".so").
18877shrext_cmds='$shrext_cmds'
18878
18879# Executable file suffix (normally "").
18880exeext="$exeext"
18881
18882# Additional compiler flags for building library objects.
18883pic_flag=$lt_lt_prog_compiler_pic_GCJ
18884pic_mode=$pic_mode
18885
18886# What is the maximum length of a command?
18887max_cmd_len=$lt_cv_sys_max_cmd_len
18888
18889# Does compiler simultaneously support -c and -o options?
18890compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18891
18892# Must we lock files when doing compilation?
18893need_locks=$lt_need_locks
18894
18895# Do we need the lib prefix for modules?
18896need_lib_prefix=$need_lib_prefix
18897
18898# Do we need a version for libraries?
18899need_version=$need_version
18900
18901# Whether dlopen is supported.
18902dlopen_support=$enable_dlopen
18903
18904# Whether dlopen of programs is supported.
18905dlopen_self=$enable_dlopen_self
18906
18907# Whether dlopen of statically linked programs is supported.
18908dlopen_self_static=$enable_dlopen_self_static
18909
18910# Compiler flag to prevent dynamic linking.
18911link_static_flag=$lt_lt_prog_compiler_static_GCJ
18912
18913# Compiler flag to turn off builtin functions.
18914no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18915
18916# Compiler flag to allow reflexive dlopens.
18917export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18918
18919# Compiler flag to generate shared objects directly from archives.
18920whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18921
18922# Compiler flag to generate thread-safe objects.
18923thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18924
18925# Library versioning type.
18926version_type=$version_type
18927
18928# Format of library name prefix.
18929libname_spec=$lt_libname_spec
18930
18931# List of archive names. First name is the real one, the rest are links.
18932# The last name is the one that the linker finds with -lNAME.
18933library_names_spec=$lt_library_names_spec
18934
18935# The coded name of the library, if different from the real name.
18936soname_spec=$lt_soname_spec
18937
18938# Commands used to build and install an old-style archive.
18939RANLIB=$lt_RANLIB
18940old_archive_cmds=$lt_old_archive_cmds_GCJ
18941old_postinstall_cmds=$lt_old_postinstall_cmds
18942old_postuninstall_cmds=$lt_old_postuninstall_cmds
18943
18944# Create an old-style archive from a shared archive.
18945old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18946
18947# Create a temporary old-style archive to link instead of a shared archive.
18948old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18949
18950# Commands used to build and install a shared archive.
18951archive_cmds=$lt_archive_cmds_GCJ
18952archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18953postinstall_cmds=$lt_postinstall_cmds
18954postuninstall_cmds=$lt_postuninstall_cmds
18955
18956# Commands used to build a loadable module (assumed same as above if empty)
18957module_cmds=$lt_module_cmds_GCJ
18958module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18959
18960# Commands to strip libraries.
18961old_striplib=$lt_old_striplib
18962striplib=$lt_striplib
18963
18964# Dependencies to place before the objects being linked to create a
18965# shared library.
64ff59ba 18966predep_objects=$lt_predep_objects_GCJ
d9898ee8 18967
18968# Dependencies to place after the objects being linked to create a
18969# shared library.
64ff59ba 18970postdep_objects=$lt_postdep_objects_GCJ
d9898ee8 18971
18972# Dependencies to place before the objects being linked to create a
18973# shared library.
18974predeps=$lt_predeps_GCJ
18975
18976# Dependencies to place after the objects being linked to create a
18977# shared library.
18978postdeps=$lt_postdeps_GCJ
18979
18980# The library search path used internally by the compiler when linking
18981# a shared library.
64ff59ba 18982compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
d9898ee8 18983
18984# Method to check whether dependent libraries are shared objects.
18985deplibs_check_method=$lt_deplibs_check_method
18986
18987# Command to use when deplibs_check_method == file_magic.
18988file_magic_cmd=$lt_file_magic_cmd
18989
18990# Flag that allows shared libraries with undefined symbols to be built.
18991allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18992
18993# Flag that forces no undefined symbols.
18994no_undefined_flag=$lt_no_undefined_flag_GCJ
18995
18996# Commands used to finish a libtool library installation in a directory.
18997finish_cmds=$lt_finish_cmds
18998
18999# Same as above, but a single script fragment to be evaled but not shown.
19000finish_eval=$lt_finish_eval
19001
19002# Take the output of nm and produce a listing of raw symbols and C names.
19003global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19004
19005# Transform the output of nm in a proper C declaration
19006global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19007
19008# Transform the output of nm in a C name address pair
19009global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19010
19011# This is the shared library runtime path variable.
19012runpath_var=$runpath_var
19013
19014# This is the shared library path variable.
19015shlibpath_var=$shlibpath_var
19016
19017# Is shlibpath searched before the hard-coded library search path?
19018shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19019
19020# How to hardcode a shared library path into an executable.
19021hardcode_action=$hardcode_action_GCJ
19022
19023# Whether we should hardcode library paths into libraries.
19024hardcode_into_libs=$hardcode_into_libs
19025
19026# Flag to hardcode \$libdir into a binary during linking.
19027# This must work even if \$libdir does not exist.
19028hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19029
19030# If ld is used when linking, flag to hardcode \$libdir into
19031# a binary during linking. This must work even if \$libdir does
19032# not exist.
19033hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19034
19035# Whether we need a single -rpath flag with a separated argument.
19036hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19037
19038# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19039# resulting binary.
19040hardcode_direct=$hardcode_direct_GCJ
19041
19042# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19043# resulting binary.
19044hardcode_minus_L=$hardcode_minus_L_GCJ
19045
19046# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19047# the resulting binary.
19048hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19049
19050# Set to yes if building a shared library automatically hardcodes DIR into the library
19051# and all subsequent libraries and executables linked against it.
19052hardcode_automatic=$hardcode_automatic_GCJ
19053
19054# Variables whose values should be saved in libtool wrapper scripts and
19055# restored at relink time.
19056variables_saved_for_relink="$variables_saved_for_relink"
19057
19058# Whether libtool must link a program against all its dependency libraries.
19059link_all_deplibs=$link_all_deplibs_GCJ
19060
19061# Compile-time system search path for libraries
64ff59ba 19062sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
d9898ee8 19063
19064# Run-time system search path for libraries
19065sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19066
19067# Fix the shell variable \$srcfile for the compiler.
19068fix_srcfile_path="$fix_srcfile_path_GCJ"
19069
19070# Set to yes if exported symbols are required.
19071always_export_symbols=$always_export_symbols_GCJ
19072
19073# The commands to list exported symbols.
19074export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19075
19076# The commands to extract the exported symbol list from a shared archive.
19077extract_expsyms_cmds=$lt_extract_expsyms_cmds
19078
19079# Symbols that should not be listed in the preloaded symbols.
19080exclude_expsyms=$lt_exclude_expsyms_GCJ
19081
19082# Symbols that must always be exported.
19083include_expsyms=$lt_include_expsyms_GCJ
19084
19085# ### END LIBTOOL TAG CONFIG: $tagname
19086
19087__EOF__
19088
19089
19090else
19091 # If there is no Makefile yet, we rely on a make rule to execute
19092 # `config.status --recheck' to rerun these tests and create the
19093 # libtool script then.
19094 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19095 if test -f "$ltmain_in"; then
19096 test -f Makefile && make "$ltmain"
19097 fi
19098fi
19099
19100
19101ac_ext=c
19102ac_cpp='$CPP $CPPFLAGS'
19103ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19104ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19105ac_compiler_gnu=$ac_cv_c_compiler_gnu
19106
19107CC="$lt_save_CC"
19108
19109 else
19110 tagname=""
19111 fi
19112 ;;
19113
19114 RC)
19115
19116
d9898ee8 19117# Source file extension for RC test sources.
19118ac_ext=rc
19119
19120# Object file extension for compiled RC test sources.
19121objext=o
19122objext_RC=$objext
19123
19124# Code to be used in simple compile tests
19125lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19126
19127# Code to be used in simple link tests
19128lt_simple_link_test_code="$lt_simple_compile_test_code"
19129
19130# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19131
19132# If no C compiler was specified, use CC.
19133LTCC=${LTCC-"$CC"}
19134
19135# If no C compiler flags were specified, use CFLAGS.
19136LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19137
19138# Allow CC to be a program name with arguments.
19139compiler=$CC
19140
19141
19142# save warnings/boilerplate of simple test code
19143ac_outfile=conftest.$ac_objext
19144printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19145eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19146_lt_compiler_boilerplate=`cat conftest.err`
19147$rm conftest*
19148
19149ac_outfile=conftest.$ac_objext
19150printf "$lt_simple_link_test_code" >conftest.$ac_ext
19151eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19152_lt_linker_boilerplate=`cat conftest.err`
19153$rm conftest*
19154
19155
19156# Allow CC to be a program name with arguments.
19157lt_save_CC="$CC"
19158CC=${RC-"windres"}
19159compiler=$CC
19160compiler_RC=$CC
19161for cc_temp in $compiler""; do
19162 case $cc_temp in
19163 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19164 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19165 \-*) ;;
19166 *) break;;
19167 esac
19168done
19169cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19170
19171lt_cv_prog_compiler_c_o_RC=yes
19172
19173# The else clause should only fire when bootstrapping the
19174# libtool distribution, otherwise you forgot to ship ltmain.sh
19175# with your package, and you will get complaints that there are
19176# no rules to generate ltmain.sh.
19177if test -f "$ltmain"; then
19178 # See if we are running on zsh, and set the options which allow our commands through
19179 # without removal of \ escapes.
19180 if test -n "${ZSH_VERSION+set}" ; then
19181 setopt NO_GLOB_SUBST
19182 fi
19183 # Now quote all the things that may contain metacharacters while being
19184 # careful not to overquote the AC_SUBSTed values. We take copies of the
19185 # variables and quote the copies for generation of the libtool script.
19186 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19187 SED SHELL STRIP \
19188 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19189 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19190 deplibs_check_method reload_flag reload_cmds need_locks \
19191 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19192 lt_cv_sys_global_symbol_to_c_name_address \
19193 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19194 old_postinstall_cmds old_postuninstall_cmds \
19195 compiler_RC \
19196 CC_RC \
19197 LD_RC \
19198 lt_prog_compiler_wl_RC \
19199 lt_prog_compiler_pic_RC \
19200 lt_prog_compiler_static_RC \
19201 lt_prog_compiler_no_builtin_flag_RC \
19202 export_dynamic_flag_spec_RC \
19203 thread_safe_flag_spec_RC \
19204 whole_archive_flag_spec_RC \
19205 enable_shared_with_static_runtimes_RC \
19206 old_archive_cmds_RC \
19207 old_archive_from_new_cmds_RC \
19208 predep_objects_RC \
19209 postdep_objects_RC \
19210 predeps_RC \
19211 postdeps_RC \
19212 compiler_lib_search_path_RC \
19213 archive_cmds_RC \
19214 archive_expsym_cmds_RC \
19215 postinstall_cmds_RC \
19216 postuninstall_cmds_RC \
19217 old_archive_from_expsyms_cmds_RC \
19218 allow_undefined_flag_RC \
19219 no_undefined_flag_RC \
19220 export_symbols_cmds_RC \
19221 hardcode_libdir_flag_spec_RC \
19222 hardcode_libdir_flag_spec_ld_RC \
19223 hardcode_libdir_separator_RC \
19224 hardcode_automatic_RC \
19225 module_cmds_RC \
19226 module_expsym_cmds_RC \
19227 lt_cv_prog_compiler_c_o_RC \
19228 exclude_expsyms_RC \
19229 include_expsyms_RC; do
19230
19231 case $var in
19232 old_archive_cmds_RC | \
19233 old_archive_from_new_cmds_RC | \
19234 archive_cmds_RC | \
19235 archive_expsym_cmds_RC | \
19236 module_cmds_RC | \
19237 module_expsym_cmds_RC | \
19238 old_archive_from_expsyms_cmds_RC | \
19239 export_symbols_cmds_RC | \
19240 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19241 postinstall_cmds | postuninstall_cmds | \
19242 old_postinstall_cmds | old_postuninstall_cmds | \
19243 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19244 # Double-quote double-evaled strings.
19245 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19246 ;;
19247 *)
19248 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19249 ;;
19250 esac
19251 done
19252
19253 case $lt_echo in
19254 *'\$0 --fallback-echo"')
19255 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19256 ;;
19257 esac
19258
19259cfgfile="$ofile"
19260
19261 cat <<__EOF__ >> "$cfgfile"
19262# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19263
19264# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19265
19266# Shell to use when invoking shell scripts.
19267SHELL=$lt_SHELL
19268
19269# Whether or not to build shared libraries.
19270build_libtool_libs=$enable_shared
19271
19272# Whether or not to build static libraries.
19273build_old_libs=$enable_static
19274
19275# Whether or not to add -lc for building shared libraries.
19276build_libtool_need_lc=$archive_cmds_need_lc_RC
19277
19278# Whether or not to disallow shared libs when runtime libs are static
19279allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19280
19281# Whether or not to optimize for fast installation.
19282fast_install=$enable_fast_install
19283
19284# The host system.
19285host_alias=$host_alias
19286host=$host
19287host_os=$host_os
19288
19289# The build system.
19290build_alias=$build_alias
19291build=$build
19292build_os=$build_os
19293
19294# An echo program that does not interpret backslashes.
19295echo=$lt_echo
19296
19297# The archiver.
19298AR=$lt_AR
19299AR_FLAGS=$lt_AR_FLAGS
19300
19301# A C compiler.
19302LTCC=$lt_LTCC
19303
19304# LTCC compiler flags.
19305LTCFLAGS=$lt_LTCFLAGS
19306
19307# A language-specific compiler.
19308CC=$lt_compiler_RC
19309
19310# Is the compiler the GNU C compiler?
19311with_gcc=$GCC_RC
19312
d9898ee8 19313# An ERE matcher.
19314EGREP=$lt_EGREP
19315
19316# The linker used to build libraries.
19317LD=$lt_LD_RC
19318
19319# Whether we need hard or soft links.
19320LN_S=$lt_LN_S
19321
19322# A BSD-compatible nm program.
19323NM=$lt_NM
19324
19325# A symbol stripping program
19326STRIP=$lt_STRIP
19327
19328# Used to examine libraries when file_magic_cmd begins "file"
19329MAGIC_CMD=$MAGIC_CMD
19330
19331# Used on cygwin: DLL creation program.
19332DLLTOOL="$DLLTOOL"
19333
19334# Used on cygwin: object dumper.
19335OBJDUMP="$OBJDUMP"
19336
19337# Used on cygwin: assembler.
19338AS="$AS"
19339
19340# The name of the directory that contains temporary libtool files.
19341objdir=$objdir
19342
19343# How to create reloadable object files.
19344reload_flag=$lt_reload_flag
19345reload_cmds=$lt_reload_cmds
19346
19347# How to pass a linker flag through the compiler.
19348wl=$lt_lt_prog_compiler_wl_RC
19349
19350# Object file suffix (normally "o").
19351objext="$ac_objext"
19352
19353# Old archive suffix (normally "a").
19354libext="$libext"
19355
19356# Shared library suffix (normally ".so").
19357shrext_cmds='$shrext_cmds'
19358
19359# Executable file suffix (normally "").
19360exeext="$exeext"
19361
19362# Additional compiler flags for building library objects.
19363pic_flag=$lt_lt_prog_compiler_pic_RC
19364pic_mode=$pic_mode
19365
19366# What is the maximum length of a command?
19367max_cmd_len=$lt_cv_sys_max_cmd_len
19368
19369# Does compiler simultaneously support -c and -o options?
19370compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19371
19372# Must we lock files when doing compilation?
19373need_locks=$lt_need_locks
19374
19375# Do we need the lib prefix for modules?
19376need_lib_prefix=$need_lib_prefix
19377
19378# Do we need a version for libraries?
19379need_version=$need_version
19380
19381# Whether dlopen is supported.
19382dlopen_support=$enable_dlopen
19383
19384# Whether dlopen of programs is supported.
19385dlopen_self=$enable_dlopen_self
19386
19387# Whether dlopen of statically linked programs is supported.
19388dlopen_self_static=$enable_dlopen_self_static
19389
19390# Compiler flag to prevent dynamic linking.
19391link_static_flag=$lt_lt_prog_compiler_static_RC
19392
19393# Compiler flag to turn off builtin functions.
19394no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19395
19396# Compiler flag to allow reflexive dlopens.
19397export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19398
19399# Compiler flag to generate shared objects directly from archives.
19400whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19401
19402# Compiler flag to generate thread-safe objects.
19403thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19404
19405# Library versioning type.
19406version_type=$version_type
19407
19408# Format of library name prefix.
19409libname_spec=$lt_libname_spec
19410
19411# List of archive names. First name is the real one, the rest are links.
19412# The last name is the one that the linker finds with -lNAME.
19413library_names_spec=$lt_library_names_spec
19414
19415# The coded name of the library, if different from the real name.
19416soname_spec=$lt_soname_spec
19417
19418# Commands used to build and install an old-style archive.
19419RANLIB=$lt_RANLIB
19420old_archive_cmds=$lt_old_archive_cmds_RC
19421old_postinstall_cmds=$lt_old_postinstall_cmds
19422old_postuninstall_cmds=$lt_old_postuninstall_cmds
19423
19424# Create an old-style archive from a shared archive.
19425old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19426
19427# Create a temporary old-style archive to link instead of a shared archive.
19428old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19429
19430# Commands used to build and install a shared archive.
19431archive_cmds=$lt_archive_cmds_RC
19432archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19433postinstall_cmds=$lt_postinstall_cmds
19434postuninstall_cmds=$lt_postuninstall_cmds
19435
19436# Commands used to build a loadable module (assumed same as above if empty)
19437module_cmds=$lt_module_cmds_RC
19438module_expsym_cmds=$lt_module_expsym_cmds_RC
19439
19440# Commands to strip libraries.
19441old_striplib=$lt_old_striplib
19442striplib=$lt_striplib
19443
19444# Dependencies to place before the objects being linked to create a
19445# shared library.
64ff59ba 19446predep_objects=$lt_predep_objects_RC
d9898ee8 19447
19448# Dependencies to place after the objects being linked to create a
19449# shared library.
64ff59ba 19450postdep_objects=$lt_postdep_objects_RC
d9898ee8 19451
19452# Dependencies to place before the objects being linked to create a
19453# shared library.
19454predeps=$lt_predeps_RC
19455
19456# Dependencies to place after the objects being linked to create a
19457# shared library.
19458postdeps=$lt_postdeps_RC
19459
19460# The library search path used internally by the compiler when linking
19461# a shared library.
64ff59ba 19462compiler_lib_search_path=$lt_compiler_lib_search_path_RC
d9898ee8 19463
19464# Method to check whether dependent libraries are shared objects.
19465deplibs_check_method=$lt_deplibs_check_method
19466
19467# Command to use when deplibs_check_method == file_magic.
19468file_magic_cmd=$lt_file_magic_cmd
19469
19470# Flag that allows shared libraries with undefined symbols to be built.
19471allow_undefined_flag=$lt_allow_undefined_flag_RC
19472
19473# Flag that forces no undefined symbols.
19474no_undefined_flag=$lt_no_undefined_flag_RC
19475
19476# Commands used to finish a libtool library installation in a directory.
19477finish_cmds=$lt_finish_cmds
19478
19479# Same as above, but a single script fragment to be evaled but not shown.
19480finish_eval=$lt_finish_eval
19481
19482# Take the output of nm and produce a listing of raw symbols and C names.
19483global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19484
19485# Transform the output of nm in a proper C declaration
19486global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19487
19488# Transform the output of nm in a C name address pair
19489global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19490
19491# This is the shared library runtime path variable.
19492runpath_var=$runpath_var
19493
19494# This is the shared library path variable.
19495shlibpath_var=$shlibpath_var
19496
19497# Is shlibpath searched before the hard-coded library search path?
19498shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19499
19500# How to hardcode a shared library path into an executable.
19501hardcode_action=$hardcode_action_RC
19502
19503# Whether we should hardcode library paths into libraries.
19504hardcode_into_libs=$hardcode_into_libs
19505
19506# Flag to hardcode \$libdir into a binary during linking.
19507# This must work even if \$libdir does not exist.
19508hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19509
19510# If ld is used when linking, flag to hardcode \$libdir into
19511# a binary during linking. This must work even if \$libdir does
19512# not exist.
19513hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19514
19515# Whether we need a single -rpath flag with a separated argument.
19516hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19517
19518# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19519# resulting binary.
19520hardcode_direct=$hardcode_direct_RC
19521
19522# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19523# resulting binary.
19524hardcode_minus_L=$hardcode_minus_L_RC
19525
19526# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19527# the resulting binary.
19528hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19529
19530# Set to yes if building a shared library automatically hardcodes DIR into the library
19531# and all subsequent libraries and executables linked against it.
19532hardcode_automatic=$hardcode_automatic_RC
19533
19534# Variables whose values should be saved in libtool wrapper scripts and
19535# restored at relink time.
19536variables_saved_for_relink="$variables_saved_for_relink"
19537
19538# Whether libtool must link a program against all its dependency libraries.
19539link_all_deplibs=$link_all_deplibs_RC
19540
19541# Compile-time system search path for libraries
64ff59ba 19542sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
d9898ee8 19543
19544# Run-time system search path for libraries
19545sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19546
19547# Fix the shell variable \$srcfile for the compiler.
19548fix_srcfile_path="$fix_srcfile_path_RC"
19549
19550# Set to yes if exported symbols are required.
19551always_export_symbols=$always_export_symbols_RC
19552
19553# The commands to list exported symbols.
19554export_symbols_cmds=$lt_export_symbols_cmds_RC
19555
19556# The commands to extract the exported symbol list from a shared archive.
19557extract_expsyms_cmds=$lt_extract_expsyms_cmds
19558
19559# Symbols that should not be listed in the preloaded symbols.
19560exclude_expsyms=$lt_exclude_expsyms_RC
19561
19562# Symbols that must always be exported.
19563include_expsyms=$lt_include_expsyms_RC
19564
19565# ### END LIBTOOL TAG CONFIG: $tagname
19566
19567__EOF__
19568
19569
19570else
19571 # If there is no Makefile yet, we rely on a make rule to execute
19572 # `config.status --recheck' to rerun these tests and create the
19573 # libtool script then.
19574 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19575 if test -f "$ltmain_in"; then
19576 test -f Makefile && make "$ltmain"
19577 fi
19578fi
19579
19580
19581ac_ext=c
19582ac_cpp='$CPP $CPPFLAGS'
19583ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19584ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19585ac_compiler_gnu=$ac_cv_c_compiler_gnu
19586
19587CC="$lt_save_CC"
19588
19589 ;;
19590
19591 *)
19592 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19593echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19594 { (exit 1); exit 1; }; }
19595 ;;
19596 esac
19597
19598 # Append the new tag name to the list of available tags.
19599 if test -n "$tagname" ; then
19600 available_tags="$available_tags $tagname"
19601 fi
19602 fi
19603 done
19604 IFS="$lt_save_ifs"
19605
19606 # Now substitute the updated list of available tags.
19607 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19608 mv "${ofile}T" "$ofile"
19609 chmod +x "$ofile"
19610 else
19611 rm -f "${ofile}T"
19612 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19613echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19614 { (exit 1); exit 1; }; }
19615 fi
19616fi
19617
19618
19619
19620# This can be used to rebuild libtool when needed
19621LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19622
19623# Always use our own libtool.
19624LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19625
19626# Prevent multiple expansion
19627
19628
19629
19630
19631
19632
19633
19634
19635
19636
19637
19638
19639
19640
19641
19642
19643
19644
19645
19646
19647
19648
19649for ac_prog in perl5 perl
19650do
19651 # Extract the first word of "$ac_prog", so it can be a program name with args.
19652set dummy $ac_prog; ac_word=$2
64ff59ba 19653{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19654echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 19655if test "${ac_cv_path_PERL+set}" = set; then
19656 echo $ECHO_N "(cached) $ECHO_C" >&6
19657else
19658 case $PERL in
19659 [\\/]* | ?:[\\/]*)
19660 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
19661 ;;
19662 *)
19663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19664for as_dir in $LPATH
19665do
19666 IFS=$as_save_IFS
19667 test -z "$as_dir" && as_dir=.
19668 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 19669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 19670 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
19671 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19672 break 2
19673 fi
19674done
19675done
64ff59ba 19676IFS=$as_save_IFS
d9898ee8 19677
19678 ;;
19679esac
19680fi
19681PERL=$ac_cv_path_PERL
d9898ee8 19682if test -n "$PERL"; then
64ff59ba 19683 { echo "$as_me:$LINENO: result: $PERL" >&5
19684echo "${ECHO_T}$PERL" >&6; }
d9898ee8 19685else
64ff59ba 19686 { echo "$as_me:$LINENO: result: no" >&5
19687echo "${ECHO_T}no" >&6; }
d9898ee8 19688fi
19689
64ff59ba 19690
d9898ee8 19691 test -n "$PERL" && break
19692done
19693test -n "$PERL" || PERL="perl"
19694
19695for ac_prog in courier-config
19696do
19697 # Extract the first word of "$ac_prog", so it can be a program name with args.
19698set dummy $ac_prog; ac_word=$2
64ff59ba 19699{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19700echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 19701if test "${ac_cv_path_COURIERCONFIG+set}" = set; then
19702 echo $ECHO_N "(cached) $ECHO_C" >&6
19703else
19704 case $COURIERCONFIG in
19705 [\\/]* | ?:[\\/]*)
19706 ac_cv_path_COURIERCONFIG="$COURIERCONFIG" # Let the user override the test with a path.
19707 ;;
19708 *)
19709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19710for as_dir in $LPATH
19711do
19712 IFS=$as_save_IFS
19713 test -z "$as_dir" && as_dir=.
19714 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 19715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 19716 ac_cv_path_COURIERCONFIG="$as_dir/$ac_word$ac_exec_ext"
19717 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19718 break 2
19719 fi
19720done
19721done
64ff59ba 19722IFS=$as_save_IFS
d9898ee8 19723
19724 ;;
19725esac
19726fi
19727COURIERCONFIG=$ac_cv_path_COURIERCONFIG
d9898ee8 19728if test -n "$COURIERCONFIG"; then
64ff59ba 19729 { echo "$as_me:$LINENO: result: $COURIERCONFIG" >&5
19730echo "${ECHO_T}$COURIERCONFIG" >&6; }
d9898ee8 19731else
64ff59ba 19732 { echo "$as_me:$LINENO: result: no" >&5
19733echo "${ECHO_T}no" >&6; }
d9898ee8 19734fi
19735
64ff59ba 19736
d9898ee8 19737 test -n "$COURIERCONFIG" && break
19738done
19739test -n "$COURIERCONFIG" || COURIERCONFIG="courier-config"
19740
19741
19742if test "$PERL" = "perl"
19743then
19744 { { echo "$as_me:$LINENO: error: Perl is required" >&5
19745echo "$as_me: error: Perl is required" >&2;}
19746 { (exit 1); exit 1; }; }
19747fi
19748
19749test "x$prefix" = xNONE && prefix=$ac_default_prefix
19750test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19751eval "prefix=$prefix"
19752eval "exec_prefix=$exec_prefix"
19753eval "sysconfdir=$sysconfdir"
19754eval "bindir=$bindir"
19755eval "sbindir=$sbindir"
19756eval "localstatedir=$localstatedir"
19757eval "libexecdir=$libexecdir"
19758
19759
64ff59ba 19760# Check whether --with-redhat was given.
d9898ee8 19761if test "${with_redhat+set}" = set; then
64ff59ba 19762 withval=$with_redhat; redhat=$withval
d9898ee8 19763else
19764 redhat=no
64ff59ba 19765fi
19766
d9898ee8 19767
19768if test "$srcdir" = "."
19769then
19770 case `./config.guess` in
19771 *-redhat-*)
19772 if test "$redhat" = "no"
19773 then
19774 hash='#'
19775 { echo "$as_me:$LINENO: WARNING: === I think you are trying to run this configure script" >&5
19776echo "$as_me: WARNING: === I think you are trying to run this configure script" >&2;}
19777 { echo "$as_me:$LINENO: WARNING: === on Red Hat/Fedora. You're doing too much work!" >&5
19778echo "$as_me: WARNING: === on Red Hat/Fedora. You're doing too much work!" >&2;}
19779 { echo "$as_me:$LINENO: WARNING: === It's much faster to create installable binary RPMs" >&5
19780echo "$as_me: WARNING: === It's much faster to create installable binary RPMs" >&2;}
19781 { echo "$as_me:$LINENO: WARNING: === like this: http://www.courier-mta.org/FAQ.html${hash}rpm" >&5
19782echo "$as_me: WARNING: === like this: http://www.courier-mta.org/FAQ.html${hash}rpm" >&2;}
19783 { echo "$as_me:$LINENO: WARNING: === When you do this you may find that RPM will tell you" >&5
19784echo "$as_me: WARNING: === When you do this you may find that RPM will tell you" >&2;}
19785 { echo "$as_me:$LINENO: WARNING: === to install some other software first, before trying to" >&5
19786echo "$as_me: WARNING: === to install some other software first, before trying to" >&2;}
19787 { echo "$as_me:$LINENO: WARNING: === build this one, and even tell you the name of RPMs you" >&5
19788echo "$as_me: WARNING: === build this one, and even tell you the name of RPMs you" >&2;}
19789 { echo "$as_me:$LINENO: WARNING: === need to install from the distribution CD. That's much" >&5
19790echo "$as_me: WARNING: === need to install from the distribution CD. That's much" >&2;}
19791 { echo "$as_me:$LINENO: WARNING: === easier than trying to figure out the same from some" >&5
19792echo "$as_me: WARNING: === easier than trying to figure out the same from some" >&2;}
19793 { echo "$as_me:$LINENO: WARNING: === cryptic error message." >&5
19794echo "$as_me: WARNING: === cryptic error message." >&2;}
19795 { echo "$as_me:$LINENO: WARNING: " >&5
19796echo "$as_me: WARNING: " >&2;}
19797 { echo "$as_me:$LINENO: WARNING: === Even if you don't intend to use everything you need to" >&5
19798echo "$as_me: WARNING: === Even if you don't intend to use everything you need to" >&2;}
19799 { echo "$as_me:$LINENO: WARNING: === have in order to build via RPM, you should still do as" >&5
19800echo "$as_me: WARNING: === have in order to build via RPM, you should still do as" >&2;}
19801 { echo "$as_me:$LINENO: WARNING: === you're told. All the extra stuff (LDAP, SQL, etc...)" >&5
19802echo "$as_me: WARNING: === you're told. All the extra stuff (LDAP, SQL, etc...)" >&2;}
19803 { echo "$as_me:$LINENO: WARNING: === goes into RPM sub-packages, which do not need to be" >&5
19804echo "$as_me: WARNING: === goes into RPM sub-packages, which do not need to be" >&2;}
19805 { echo "$as_me:$LINENO: WARNING: === installed." >&5
19806echo "$as_me: WARNING: === installed." >&2;}
19807 { echo "$as_me:$LINENO: WARNING: === But, if you insist, you can simply add '--with-redhat'" >&5
19808echo "$as_me: WARNING: === But, if you insist, you can simply add '--with-redhat'" >&2;}
19809 { echo "$as_me:$LINENO: WARNING: === parameter to this configure script and not see this" >&5
19810echo "$as_me: WARNING: === parameter to this configure script and not see this" >&2;}
19811 { echo "$as_me:$LINENO: WARNING: === error message. You should also do this when upgrading" >&5
19812echo "$as_me: WARNING: === error message. You should also do this when upgrading" >&2;}
19813 { echo "$as_me:$LINENO: WARNING: === and you didn't use RPM with the older version." >&5
19814echo "$as_me: WARNING: === and you didn't use RPM with the older version." >&2;}
19815 { { echo "$as_me:$LINENO: error: ... in either case you better know what you're doing!" >&5
19816echo "$as_me: error: ... in either case you better know what you're doing!" >&2;}
19817 { (exit 1); exit 1; }; }
19818 fi
19819 ;;
19820 *)
19821 ;;
19822 esac
19823fi
19824for ac_prog in expect
19825do
19826 # Extract the first word of "$ac_prog", so it can be a program name with args.
19827set dummy $ac_prog; ac_word=$2
64ff59ba 19828{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19829echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 19830if test "${ac_cv_path_EXPECT+set}" = set; then
19831 echo $ECHO_N "(cached) $ECHO_C" >&6
19832else
19833 case $EXPECT in
19834 [\\/]* | ?:[\\/]*)
19835 ac_cv_path_EXPECT="$EXPECT" # Let the user override the test with a path.
19836 ;;
19837 *)
19838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19839for as_dir in $LPATH
19840do
19841 IFS=$as_save_IFS
19842 test -z "$as_dir" && as_dir=.
19843 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 19844 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 19845 ac_cv_path_EXPECT="$as_dir/$ac_word$ac_exec_ext"
19846 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19847 break 2
19848 fi
19849done
19850done
64ff59ba 19851IFS=$as_save_IFS
d9898ee8 19852
19853 ;;
19854esac
19855fi
19856EXPECT=$ac_cv_path_EXPECT
d9898ee8 19857if test -n "$EXPECT"; then
64ff59ba 19858 { echo "$as_me:$LINENO: result: $EXPECT" >&5
19859echo "${ECHO_T}$EXPECT" >&6; }
d9898ee8 19860else
64ff59ba 19861 { echo "$as_me:$LINENO: result: no" >&5
19862echo "${ECHO_T}no" >&6; }
d9898ee8 19863fi
19864
64ff59ba 19865
d9898ee8 19866 test -n "$EXPECT" && break
19867done
19868test -n "$EXPECT" || EXPECT="expect"
19869
19870
19871if test "$EXPECT" = "expect"
19872then
19873 { echo "$as_me:$LINENO: WARNING: -----------------------------------------------------" >&5
19874echo "$as_me: WARNING: -----------------------------------------------------" >&2;}
19875 { echo "$as_me:$LINENO: WARNING: expect not found - will not be able to change passwds" >&5
19876echo "$as_me: WARNING: expect not found - will not be able to change passwds" >&2;}
19877 { echo "$as_me:$LINENO: WARNING: in webmail" >&5
19878echo "$as_me: WARNING: in webmail" >&2;}
19879 { echo "$as_me:$LINENO: WARNING: -----------------------------------------------------" >&5
19880echo "$as_me: WARNING: -----------------------------------------------------" >&2;}
19881 sleep 5
19882else
19883
19884cat >>confdefs.h <<_ACEOF
19885#define HAVE_EXPECT 1
19886_ACEOF
19887
19888fi
19889
19890for ac_prog in passwd
19891do
19892 # Extract the first word of "$ac_prog", so it can be a program name with args.
19893set dummy $ac_prog; ac_word=$2
64ff59ba 19894{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19895echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 19896if test "${ac_cv_path_PASSWD+set}" = set; then
19897 echo $ECHO_N "(cached) $ECHO_C" >&6
19898else
19899 case $PASSWD in
19900 [\\/]* | ?:[\\/]*)
19901 ac_cv_path_PASSWD="$PASSWD" # Let the user override the test with a path.
19902 ;;
19903 *)
19904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19905for as_dir in $LPATH
19906do
19907 IFS=$as_save_IFS
19908 test -z "$as_dir" && as_dir=.
19909 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 19910 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 19911 ac_cv_path_PASSWD="$as_dir/$ac_word$ac_exec_ext"
19912 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19913 break 2
19914 fi
19915done
19916done
64ff59ba 19917IFS=$as_save_IFS
d9898ee8 19918
19919 ;;
19920esac
19921fi
19922PASSWD=$ac_cv_path_PASSWD
d9898ee8 19923if test -n "$PASSWD"; then
64ff59ba 19924 { echo "$as_me:$LINENO: result: $PASSWD" >&5
19925echo "${ECHO_T}$PASSWD" >&6; }
d9898ee8 19926else
64ff59ba 19927 { echo "$as_me:$LINENO: result: no" >&5
19928echo "${ECHO_T}no" >&6; }
d9898ee8 19929fi
19930
64ff59ba 19931
d9898ee8 19932 test -n "$PASSWD" && break
19933done
19934test -n "$PASSWD" || PASSWD="passwd"
19935
19936
19937
19938if test "$GCC" = "yes"
19939then
19940 CFLAGS="$CFLAGS -Wall"
19941fi
19942
19943CFLAGS="$CFLAGS -I.. -I${srcdir}/.."
19944
64ff59ba 19945{ echo "$as_me:$LINENO: checking whether -lm is needed for floor" >&5
19946echo $ECHO_N "checking whether -lm is needed for floor... $ECHO_C" >&6; }
d9898ee8 19947cat >conftest.$ac_ext <<_ACEOF
19948/* confdefs.h. */
19949_ACEOF
19950cat confdefs.h >>conftest.$ac_ext
19951cat >>conftest.$ac_ext <<_ACEOF
19952/* end confdefs.h. */
19953
64ff59ba 19954/* Override any GCC internal prototype to avoid an error.
19955 Use char because int might match the return type of a GCC
19956 builtin and then its argument prototype would still apply. */
d9898ee8 19957#ifdef __cplusplus
19958extern "C"
19959#endif
d9898ee8 19960char floor ();
19961int
19962main ()
19963{
64ff59ba 19964return floor ();
d9898ee8 19965 ;
19966 return 0;
19967}
19968_ACEOF
19969rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 19970if { (ac_try="$ac_link"
19971case "(($ac_try" in
19972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19973 *) ac_try_echo=$ac_try;;
19974esac
19975eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19976 (eval "$ac_link") 2>conftest.er1
d9898ee8 19977 ac_status=$?
19978 grep -v '^ *+' conftest.er1 >conftest.err
19979 rm -f conftest.er1
19980 cat conftest.err >&5
19981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 19982 (exit $ac_status); } && {
19983 test -z "$ac_c_werror_flag" ||
19984 test ! -s conftest.err
19985 } && test -s conftest$ac_exeext &&
19986 $as_test_x conftest$ac_exeext; then
19987 { echo "$as_me:$LINENO: result: no" >&5
19988echo "${ECHO_T}no" >&6; }
d9898ee8 19989else
19990 echo "$as_me: failed program was:" >&5
19991sed 's/^/| /' conftest.$ac_ext >&5
19992
64ff59ba 19993 LIBM="-lm"
19994 { echo "$as_me:$LINENO: result: yes" >&5
19995echo "${ECHO_T}yes" >&6; }
d9898ee8 19996fi
64ff59ba 19997
19998rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 19999 conftest$ac_exeext conftest.$ac_ext
20000
20001
64ff59ba 20002# Check whether --with-pkgconfdir was given.
d9898ee8 20003if test "${with_pkgconfdir+set}" = set; then
64ff59ba 20004 withval=$with_pkgconfdir; pkgconfdir="$withval"
d9898ee8 20005else
20006 pkgconfdir="$sysconfdir/authlib"
64ff59ba 20007fi
20008
d9898ee8 20009
20010SASL_LIST="SASL(\"PLAIN\", authsasl_plain, authsaslclient_plain) SASL(\"LOGIN\", authsasl_login, authsaslclient_login)"
20011
20012
20013
20014
20015
20016if test -d ${srcdir}/md5
20017then
20018 MD5=1
20019
20020cat >>confdefs.h <<_ACEOF
20021#define HAVE_MD5LIB 1
20022_ACEOF
20023
20024 MD5LIB=md5/libmd5.la
20025 if test -d ${srcdir}/md5
20026 then
20027 SASL_LIST="SASL(\"CRAM-MD5\", authsasl_cram, authsaslclient_crammd5) $SASL_LIST"
20028 fi
20029else
20030 MD5LIB=""
20031 MD5=0
20032fi
20033
64ff59ba 20034 if test "$MD5" = 1; then
d9898ee8 20035 HAVE_MD5_TRUE=
20036 HAVE_MD5_FALSE='#'
20037else
20038 HAVE_MD5_TRUE='#'
20039 HAVE_MD5_FALSE=
20040fi
20041
20042
20043
20044
20045
20046
20047if test -d ${srcdir}/sha1
20048then
20049 SHA1=1
20050
20051cat >>confdefs.h <<_ACEOF
20052#define HAVE_SHA1LIB 1
20053_ACEOF
20054
20055 SHA1LIB=sha1/libsha1.la
20056 if test -d ${srcdir}/sha1
20057 then
20058 SASL_LIST="SASL(\"CRAM-SHA1\", authsasl_cram, authsaslclient_cramsha1) $SASL_LIST"
20059 SASL_LIST="SASL(\"CRAM-SHA256\", authsasl_cram, authsaslclient_cramsha256) $SASL_LIST"
20060 fi
20061else
20062 SHA1LIB=""
20063 SHA1=0
20064fi
20065
64ff59ba 20066 if test "$SHA1" = 1; then
d9898ee8 20067 HAVE_SHA1_TRUE=
20068 HAVE_SHA1_FALSE='#'
20069else
20070 HAVE_SHA1_TRUE='#'
20071 HAVE_SHA1_FALSE=
20072fi
20073
20074
20075
20076
20077
20078
20079
20080if test -d ${srcdir}/libhmac
20081then
20082 HMAC=1
20083
20084cat >>confdefs.h <<_ACEOF
20085#define HAVE_HMACLIB 1
20086_ACEOF
20087
20088 HMACLIB=libhmac/libhmac.la
20089else
20090 HMACLIB=""
20091 HMAC=0
20092fi
20093
64ff59ba 20094 if test "$HMAC" = 1; then
d9898ee8 20095 HAVE_HMACLIB_TRUE=
20096 HAVE_HMACLIB_FALSE='#'
20097else
20098 HAVE_HMACLIB_TRUE='#'
20099 HAVE_HMACLIB_FALSE=
20100fi
20101
20102
20103saveLIBS="$LIBS"
20104NETLIBS=""
20105USENSL=no
20106
64ff59ba 20107{ echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
20108echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
d9898ee8 20109if test "${ac_cv_lib_socket_socket+set}" = set; then
20110 echo $ECHO_N "(cached) $ECHO_C" >&6
20111else
20112 ac_check_lib_save_LIBS=$LIBS
20113LIBS="-lsocket $LIBS"
20114cat >conftest.$ac_ext <<_ACEOF
20115/* confdefs.h. */
20116_ACEOF
20117cat confdefs.h >>conftest.$ac_ext
20118cat >>conftest.$ac_ext <<_ACEOF
20119/* end confdefs.h. */
20120
64ff59ba 20121/* Override any GCC internal prototype to avoid an error.
20122 Use char because int might match the return type of a GCC
20123 builtin and then its argument prototype would still apply. */
d9898ee8 20124#ifdef __cplusplus
20125extern "C"
20126#endif
d9898ee8 20127char socket ();
20128int
20129main ()
20130{
64ff59ba 20131return socket ();
d9898ee8 20132 ;
20133 return 0;
20134}
20135_ACEOF
20136rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 20137if { (ac_try="$ac_link"
20138case "(($ac_try" in
20139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20140 *) ac_try_echo=$ac_try;;
20141esac
20142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20143 (eval "$ac_link") 2>conftest.er1
d9898ee8 20144 ac_status=$?
20145 grep -v '^ *+' conftest.er1 >conftest.err
20146 rm -f conftest.er1
20147 cat conftest.err >&5
20148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 20149 (exit $ac_status); } && {
20150 test -z "$ac_c_werror_flag" ||
20151 test ! -s conftest.err
20152 } && test -s conftest$ac_exeext &&
20153 $as_test_x conftest$ac_exeext; then
d9898ee8 20154 ac_cv_lib_socket_socket=yes
20155else
20156 echo "$as_me: failed program was:" >&5
20157sed 's/^/| /' conftest.$ac_ext >&5
20158
64ff59ba 20159 ac_cv_lib_socket_socket=no
d9898ee8 20160fi
64ff59ba 20161
20162rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 20163 conftest$ac_exeext conftest.$ac_ext
20164LIBS=$ac_check_lib_save_LIBS
20165fi
64ff59ba 20166{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
20167echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
d9898ee8 20168if test $ac_cv_lib_socket_socket = yes; then
20169 result=yes
20170else
20171 result=no
20172fi
20173
20174if test $result = yes; then
20175 NETLIBS="-lsocket"
20176else
64ff59ba 20177 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
20178echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
d9898ee8 20179if test "${ac_cv_lib_socket_socket+set}" = set; then
20180 echo $ECHO_N "(cached) $ECHO_C" >&6
20181else
20182 ac_check_lib_save_LIBS=$LIBS
20183LIBS="-lsocket -lnsl $LIBS"
20184cat >conftest.$ac_ext <<_ACEOF
20185/* confdefs.h. */
20186_ACEOF
20187cat confdefs.h >>conftest.$ac_ext
20188cat >>conftest.$ac_ext <<_ACEOF
20189/* end confdefs.h. */
20190
64ff59ba 20191/* Override any GCC internal prototype to avoid an error.
20192 Use char because int might match the return type of a GCC
20193 builtin and then its argument prototype would still apply. */
d9898ee8 20194#ifdef __cplusplus
20195extern "C"
20196#endif
d9898ee8 20197char socket ();
20198int
20199main ()
20200{
64ff59ba 20201return socket ();
d9898ee8 20202 ;
20203 return 0;
20204}
20205_ACEOF
20206rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 20207if { (ac_try="$ac_link"
20208case "(($ac_try" in
20209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20210 *) ac_try_echo=$ac_try;;
20211esac
20212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20213 (eval "$ac_link") 2>conftest.er1
d9898ee8 20214 ac_status=$?
20215 grep -v '^ *+' conftest.er1 >conftest.err
20216 rm -f conftest.er1
20217 cat conftest.err >&5
20218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 20219 (exit $ac_status); } && {
20220 test -z "$ac_c_werror_flag" ||
20221 test ! -s conftest.err
20222 } && test -s conftest$ac_exeext &&
20223 $as_test_x conftest$ac_exeext; then
d9898ee8 20224 ac_cv_lib_socket_socket=yes
20225else
20226 echo "$as_me: failed program was:" >&5
20227sed 's/^/| /' conftest.$ac_ext >&5
20228
64ff59ba 20229 ac_cv_lib_socket_socket=no
d9898ee8 20230fi
64ff59ba 20231
20232rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 20233 conftest$ac_exeext conftest.$ac_ext
20234LIBS=$ac_check_lib_save_LIBS
20235fi
64ff59ba 20236{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
20237echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
d9898ee8 20238if test $ac_cv_lib_socket_socket = yes; then
20239 result=yes
20240else
20241 result=no
20242fi
20243
20244 if test $result = yes; then
20245 NETLIBS = "-lsocket -lnsl"
20246 USENSL=yes
20247 else
64ff59ba 20248 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
20249echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
d9898ee8 20250if test "${ac_cv_lib_socket_connect+set}" = set; then
20251 echo $ECHO_N "(cached) $ECHO_C" >&6
20252else
20253 ac_check_lib_save_LIBS=$LIBS
20254LIBS="-lsocket $LIBS"
20255cat >conftest.$ac_ext <<_ACEOF
20256/* confdefs.h. */
20257_ACEOF
20258cat confdefs.h >>conftest.$ac_ext
20259cat >>conftest.$ac_ext <<_ACEOF
20260/* end confdefs.h. */
20261
64ff59ba 20262/* Override any GCC internal prototype to avoid an error.
20263 Use char because int might match the return type of a GCC
20264 builtin and then its argument prototype would still apply. */
d9898ee8 20265#ifdef __cplusplus
20266extern "C"
20267#endif
d9898ee8 20268char connect ();
20269int
20270main ()
20271{
64ff59ba 20272return connect ();
d9898ee8 20273 ;
20274 return 0;
20275}
20276_ACEOF
20277rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 20278if { (ac_try="$ac_link"
20279case "(($ac_try" in
20280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20281 *) ac_try_echo=$ac_try;;
20282esac
20283eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20284 (eval "$ac_link") 2>conftest.er1
d9898ee8 20285 ac_status=$?
20286 grep -v '^ *+' conftest.er1 >conftest.err
20287 rm -f conftest.er1
20288 cat conftest.err >&5
20289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 20290 (exit $ac_status); } && {
20291 test -z "$ac_c_werror_flag" ||
20292 test ! -s conftest.err
20293 } && test -s conftest$ac_exeext &&
20294 $as_test_x conftest$ac_exeext; then
d9898ee8 20295 ac_cv_lib_socket_connect=yes
20296else
20297 echo "$as_me: failed program was:" >&5
20298sed 's/^/| /' conftest.$ac_ext >&5
20299
64ff59ba 20300 ac_cv_lib_socket_connect=no
d9898ee8 20301fi
64ff59ba 20302
20303rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 20304 conftest$ac_exeext conftest.$ac_ext
20305LIBS=$ac_check_lib_save_LIBS
20306fi
64ff59ba 20307{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
20308echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
d9898ee8 20309if test $ac_cv_lib_socket_connect = yes; then
20310 result=yes
20311else
20312 result=no
20313fi
20314
20315 if test $result = yes; then
20316 NETLIBS="-lsocket"
20317 else
64ff59ba 20318 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
20319echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
d9898ee8 20320if test "${ac_cv_lib_socket_connect+set}" = set; then
20321 echo $ECHO_N "(cached) $ECHO_C" >&6
20322else
20323 ac_check_lib_save_LIBS=$LIBS
20324LIBS="-lsocket -lnsl $LIBS"
20325cat >conftest.$ac_ext <<_ACEOF
20326/* confdefs.h. */
20327_ACEOF
20328cat confdefs.h >>conftest.$ac_ext
20329cat >>conftest.$ac_ext <<_ACEOF
20330/* end confdefs.h. */
20331
64ff59ba 20332/* Override any GCC internal prototype to avoid an error.
20333 Use char because int might match the return type of a GCC
20334 builtin and then its argument prototype would still apply. */
d9898ee8 20335#ifdef __cplusplus
20336extern "C"
20337#endif
d9898ee8 20338char connect ();
20339int
20340main ()
20341{
64ff59ba 20342return connect ();
d9898ee8 20343 ;
20344 return 0;
20345}
20346_ACEOF
20347rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 20348if { (ac_try="$ac_link"
20349case "(($ac_try" in
20350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20351 *) ac_try_echo=$ac_try;;
20352esac
20353eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20354 (eval "$ac_link") 2>conftest.er1
d9898ee8 20355 ac_status=$?
20356 grep -v '^ *+' conftest.er1 >conftest.err
20357 rm -f conftest.er1
20358 cat conftest.err >&5
20359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 20360 (exit $ac_status); } && {
20361 test -z "$ac_c_werror_flag" ||
20362 test ! -s conftest.err
20363 } && test -s conftest$ac_exeext &&
20364 $as_test_x conftest$ac_exeext; then
d9898ee8 20365 ac_cv_lib_socket_connect=yes
20366else
20367 echo "$as_me: failed program was:" >&5
20368sed 's/^/| /' conftest.$ac_ext >&5
20369
64ff59ba 20370 ac_cv_lib_socket_connect=no
d9898ee8 20371fi
64ff59ba 20372
20373rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 20374 conftest$ac_exeext conftest.$ac_ext
20375LIBS=$ac_check_lib_save_LIBS
20376fi
64ff59ba 20377{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
20378echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
d9898ee8 20379if test $ac_cv_lib_socket_connect = yes; then
20380 result=yes
20381else
20382 result=no
20383fi
20384
20385 if test $result = yes; then
20386 NETLIBS="-lsocket -lnsl"
20387 USENSL=yes
20388 fi
20389 fi
20390 fi
20391fi
20392
20393if test $USENSL != yes; then
20394 LIBS="$LIBS $NETLIBS"
20395 cat >conftest.$ac_ext <<_ACEOF
20396/* confdefs.h. */
20397_ACEOF
20398cat confdefs.h >>conftest.$ac_ext
20399cat >>conftest.$ac_ext <<_ACEOF
20400/* end confdefs.h. */
20401
64ff59ba 20402/* Override any GCC internal prototype to avoid an error.
20403 Use char because int might match the return type of a GCC
20404 builtin and then its argument prototype would still apply. */
d9898ee8 20405#ifdef __cplusplus
20406extern "C"
20407#endif
d9898ee8 20408char inet_addr ();
20409int
20410main ()
20411{
64ff59ba 20412return inet_addr ();
d9898ee8 20413 ;
20414 return 0;
20415}
20416_ACEOF
20417rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 20418if { (ac_try="$ac_link"
20419case "(($ac_try" in
20420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20421 *) ac_try_echo=$ac_try;;
20422esac
20423eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20424 (eval "$ac_link") 2>conftest.er1
d9898ee8 20425 ac_status=$?
20426 grep -v '^ *+' conftest.er1 >conftest.err
20427 rm -f conftest.er1
20428 cat conftest.err >&5
20429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 20430 (exit $ac_status); } && {
20431 test -z "$ac_c_werror_flag" ||
20432 test ! -s conftest.err
20433 } && test -s conftest$ac_exeext &&
20434 $as_test_x conftest$ac_exeext; then
d9898ee8 20435 :
20436else
20437 echo "$as_me: failed program was:" >&5
20438sed 's/^/| /' conftest.$ac_ext >&5
20439
20440
64ff59ba 20441 { echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
20442echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6; }
d9898ee8 20443if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
20444 echo $ECHO_N "(cached) $ECHO_C" >&6
20445else
20446 ac_check_lib_save_LIBS=$LIBS
20447LIBS="-lnsl $LIBS"
20448cat >conftest.$ac_ext <<_ACEOF
20449/* confdefs.h. */
20450_ACEOF
20451cat confdefs.h >>conftest.$ac_ext
20452cat >>conftest.$ac_ext <<_ACEOF
20453/* end confdefs.h. */
20454
64ff59ba 20455/* Override any GCC internal prototype to avoid an error.
20456 Use char because int might match the return type of a GCC
20457 builtin and then its argument prototype would still apply. */
d9898ee8 20458#ifdef __cplusplus
20459extern "C"
20460#endif
d9898ee8 20461char inet_addr ();
20462int
20463main ()
20464{
64ff59ba 20465return inet_addr ();
d9898ee8 20466 ;
20467 return 0;
20468}
20469_ACEOF
20470rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 20471if { (ac_try="$ac_link"
20472case "(($ac_try" in
20473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20474 *) ac_try_echo=$ac_try;;
20475esac
20476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20477 (eval "$ac_link") 2>conftest.er1
d9898ee8 20478 ac_status=$?
20479 grep -v '^ *+' conftest.er1 >conftest.err
20480 rm -f conftest.er1
20481 cat conftest.err >&5
20482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 20483 (exit $ac_status); } && {
20484 test -z "$ac_c_werror_flag" ||
20485 test ! -s conftest.err
20486 } && test -s conftest$ac_exeext &&
20487 $as_test_x conftest$ac_exeext; then
d9898ee8 20488 ac_cv_lib_nsl_inet_addr=yes
20489else
20490 echo "$as_me: failed program was:" >&5
20491sed 's/^/| /' conftest.$ac_ext >&5
20492
64ff59ba 20493 ac_cv_lib_nsl_inet_addr=no
d9898ee8 20494fi
64ff59ba 20495
20496rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 20497 conftest$ac_exeext conftest.$ac_ext
20498LIBS=$ac_check_lib_save_LIBS
20499fi
64ff59ba 20500{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
20501echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6; }
d9898ee8 20502if test $ac_cv_lib_nsl_inet_addr = yes; then
20503 result=yes
20504else
20505 result=no
20506fi
20507
20508 if test $result = yes; then
20509 NETLIBS="$NETLIBS -lnsl"
20510 fi
20511
20512fi
64ff59ba 20513
20514rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 20515 conftest$ac_exeext conftest.$ac_ext
20516fi
20517
20518LIBS="$saveLIBS"
20519
20520
20521
20522
20523
20524
20525
64ff59ba 20526# Check whether --with-db was given.
d9898ee8 20527if test "${with_db+set}" = set; then
64ff59ba 20528 withval=$with_db; db="$withval"
d9898ee8 20529else
20530 needs_withdb=1
64ff59ba 20531fi
20532
d9898ee8 20533
20534case "$db" in
20535gdbm)
20536 ;;
20537db)
20538 ;;
20539"")
20540 ;;
20541*)
20542 { { echo "$as_me:$LINENO: error: Invalid --with-db option." >&5
20543echo "$as_me: error: Invalid --with-db option." >&2;}
20544 { (exit 1); exit 1; }; }
20545 ;;
20546esac
20547
20548saveLIBS="$LIBS"
20549
20550if test "$db" != "db"
20551then
64ff59ba 20552 { echo "$as_me:$LINENO: checking for gdbm_open in -lgdbm" >&5
20553echo $ECHO_N "checking for gdbm_open in -lgdbm... $ECHO_C" >&6; }
d9898ee8 20554if test "${ac_cv_lib_gdbm_gdbm_open+set}" = set; then
20555 echo $ECHO_N "(cached) $ECHO_C" >&6
20556else
20557 ac_check_lib_save_LIBS=$LIBS
20558LIBS="-lgdbm $LIBS"
20559cat >conftest.$ac_ext <<_ACEOF
20560/* confdefs.h. */
20561_ACEOF
20562cat confdefs.h >>conftest.$ac_ext
20563cat >>conftest.$ac_ext <<_ACEOF
20564/* end confdefs.h. */
20565
64ff59ba 20566/* Override any GCC internal prototype to avoid an error.
20567 Use char because int might match the return type of a GCC
20568 builtin and then its argument prototype would still apply. */
d9898ee8 20569#ifdef __cplusplus
20570extern "C"
20571#endif
d9898ee8 20572char gdbm_open ();
20573int
20574main ()
20575{
64ff59ba 20576return gdbm_open ();
d9898ee8 20577 ;
20578 return 0;
20579}
20580_ACEOF
20581rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 20582if { (ac_try="$ac_link"
20583case "(($ac_try" in
20584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20585 *) ac_try_echo=$ac_try;;
20586esac
20587eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20588 (eval "$ac_link") 2>conftest.er1
d9898ee8 20589 ac_status=$?
20590 grep -v '^ *+' conftest.er1 >conftest.err
20591 rm -f conftest.er1
20592 cat conftest.err >&5
20593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 20594 (exit $ac_status); } && {
20595 test -z "$ac_c_werror_flag" ||
20596 test ! -s conftest.err
20597 } && test -s conftest$ac_exeext &&
20598 $as_test_x conftest$ac_exeext; then
d9898ee8 20599 ac_cv_lib_gdbm_gdbm_open=yes
20600else
20601 echo "$as_me: failed program was:" >&5
20602sed 's/^/| /' conftest.$ac_ext >&5
20603
64ff59ba 20604 ac_cv_lib_gdbm_gdbm_open=no
d9898ee8 20605fi
64ff59ba 20606
20607rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 20608 conftest$ac_exeext conftest.$ac_ext
20609LIBS=$ac_check_lib_save_LIBS
20610fi
64ff59ba 20611{ echo "$as_me:$LINENO: result: $ac_cv_lib_gdbm_gdbm_open" >&5
20612echo "${ECHO_T}$ac_cv_lib_gdbm_gdbm_open" >&6; }
d9898ee8 20613if test $ac_cv_lib_gdbm_gdbm_open = yes; then
20614 LIBGDBM=-lgdbm ; LIBS="-lgdbm $LIBS"
20615fi
20616
64ff59ba 20617 { echo "$as_me:$LINENO: checking for gdbm_open" >&5
20618echo $ECHO_N "checking for gdbm_open... $ECHO_C" >&6; }
d9898ee8 20619if test "${ac_cv_func_gdbm_open+set}" = set; then
20620 echo $ECHO_N "(cached) $ECHO_C" >&6
20621else
20622 cat >conftest.$ac_ext <<_ACEOF
20623/* confdefs.h. */
20624_ACEOF
20625cat confdefs.h >>conftest.$ac_ext
20626cat >>conftest.$ac_ext <<_ACEOF
20627/* end confdefs.h. */
20628/* Define gdbm_open to an innocuous variant, in case <limits.h> declares gdbm_open.
20629 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20630#define gdbm_open innocuous_gdbm_open
20631
20632/* System header to define __stub macros and hopefully few prototypes,
20633 which can conflict with char gdbm_open (); below.
20634 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20635 <limits.h> exists even on freestanding compilers. */
20636
20637#ifdef __STDC__
20638# include <limits.h>
20639#else
20640# include <assert.h>
20641#endif
20642
20643#undef gdbm_open
20644
64ff59ba 20645/* Override any GCC internal prototype to avoid an error.
20646 Use char because int might match the return type of a GCC
20647 builtin and then its argument prototype would still apply. */
d9898ee8 20648#ifdef __cplusplus
20649extern "C"
d9898ee8 20650#endif
d9898ee8 20651char gdbm_open ();
20652/* The GNU C library defines this for functions which it implements
20653 to always fail with ENOSYS. Some functions are actually named
20654 something starting with __ and the normal name is an alias. */
64ff59ba 20655#if defined __stub_gdbm_open || defined __stub___gdbm_open
d9898ee8 20656choke me
d9898ee8 20657#endif
20658
20659int
20660main ()
20661{
64ff59ba 20662return gdbm_open ();
d9898ee8 20663 ;
20664 return 0;
20665}
20666_ACEOF
20667rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 20668if { (ac_try="$ac_link"
20669case "(($ac_try" in
20670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20671 *) ac_try_echo=$ac_try;;
20672esac
20673eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20674 (eval "$ac_link") 2>conftest.er1
d9898ee8 20675 ac_status=$?
20676 grep -v '^ *+' conftest.er1 >conftest.err
20677 rm -f conftest.er1
20678 cat conftest.err >&5
20679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 20680 (exit $ac_status); } && {
20681 test -z "$ac_c_werror_flag" ||
20682 test ! -s conftest.err
20683 } && test -s conftest$ac_exeext &&
20684 $as_test_x conftest$ac_exeext; then
d9898ee8 20685 ac_cv_func_gdbm_open=yes
20686else
20687 echo "$as_me: failed program was:" >&5
20688sed 's/^/| /' conftest.$ac_ext >&5
20689
64ff59ba 20690 ac_cv_func_gdbm_open=no
d9898ee8 20691fi
64ff59ba 20692
20693rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 20694 conftest$ac_exeext conftest.$ac_ext
20695fi
64ff59ba 20696{ echo "$as_me:$LINENO: result: $ac_cv_func_gdbm_open" >&5
20697echo "${ECHO_T}$ac_cv_func_gdbm_open" >&6; }
d9898ee8 20698if test $ac_cv_func_gdbm_open = yes; then
20699 HAVE_GDBM=y
20700fi
20701
20702fi
20703
20704LIBS="$saveLIBS"
20705
20706if test "$db" != "gdbm"
20707then
64ff59ba 20708 { echo "$as_me:$LINENO: checking for dbopen in -ldb" >&5
20709echo $ECHO_N "checking for dbopen in -ldb... $ECHO_C" >&6; }
d9898ee8 20710if test "${ac_cv_lib_db_dbopen+set}" = set; then
20711 echo $ECHO_N "(cached) $ECHO_C" >&6
20712else
20713 ac_check_lib_save_LIBS=$LIBS
20714LIBS="-ldb $LIBS"
20715cat >conftest.$ac_ext <<_ACEOF
20716/* confdefs.h. */
20717_ACEOF
20718cat confdefs.h >>conftest.$ac_ext
20719cat >>conftest.$ac_ext <<_ACEOF
20720/* end confdefs.h. */
20721
64ff59ba 20722/* Override any GCC internal prototype to avoid an error.
20723 Use char because int might match the return type of a GCC
20724 builtin and then its argument prototype would still apply. */
d9898ee8 20725#ifdef __cplusplus
20726extern "C"
20727#endif
d9898ee8 20728char dbopen ();
20729int
20730main ()
20731{
64ff59ba 20732return dbopen ();
d9898ee8 20733 ;
20734 return 0;
20735}
20736_ACEOF
20737rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 20738if { (ac_try="$ac_link"
20739case "(($ac_try" in
20740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20741 *) ac_try_echo=$ac_try;;
20742esac
20743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20744 (eval "$ac_link") 2>conftest.er1
d9898ee8 20745 ac_status=$?
20746 grep -v '^ *+' conftest.er1 >conftest.err
20747 rm -f conftest.er1
20748 cat conftest.err >&5
20749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 20750 (exit $ac_status); } && {
20751 test -z "$ac_c_werror_flag" ||
20752 test ! -s conftest.err
20753 } && test -s conftest$ac_exeext &&
20754 $as_test_x conftest$ac_exeext; then
d9898ee8 20755 ac_cv_lib_db_dbopen=yes
20756else
20757 echo "$as_me: failed program was:" >&5
20758sed 's/^/| /' conftest.$ac_ext >&5
20759
64ff59ba 20760 ac_cv_lib_db_dbopen=no
d9898ee8 20761fi
64ff59ba 20762
20763rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 20764 conftest$ac_exeext conftest.$ac_ext
20765LIBS=$ac_check_lib_save_LIBS
20766fi
64ff59ba 20767{ echo "$as_me:$LINENO: result: $ac_cv_lib_db_dbopen" >&5
20768echo "${ECHO_T}$ac_cv_lib_db_dbopen" >&6; }
d9898ee8 20769if test $ac_cv_lib_db_dbopen = yes; then
20770 LIBDB=-ldb ; LIBS="-ldb $LIBS"
20771else
64ff59ba 20772 { echo "$as_me:$LINENO: checking for db_open in -ldb" >&5
20773echo $ECHO_N "checking for db_open in -ldb... $ECHO_C" >&6; }
d9898ee8 20774if test "${ac_cv_lib_db_db_open+set}" = set; then
20775 echo $ECHO_N "(cached) $ECHO_C" >&6
20776else
20777 ac_check_lib_save_LIBS=$LIBS
20778LIBS="-ldb $LIBS"
20779cat >conftest.$ac_ext <<_ACEOF
20780/* confdefs.h. */
20781_ACEOF
20782cat confdefs.h >>conftest.$ac_ext
20783cat >>conftest.$ac_ext <<_ACEOF
20784/* end confdefs.h. */
20785
64ff59ba 20786/* Override any GCC internal prototype to avoid an error.
20787 Use char because int might match the return type of a GCC
20788 builtin and then its argument prototype would still apply. */
d9898ee8 20789#ifdef __cplusplus
20790extern "C"
20791#endif
d9898ee8 20792char db_open ();
20793int
20794main ()
20795{
64ff59ba 20796return db_open ();
d9898ee8 20797 ;
20798 return 0;
20799}
20800_ACEOF
20801rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 20802if { (ac_try="$ac_link"
20803case "(($ac_try" in
20804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20805 *) ac_try_echo=$ac_try;;
20806esac
20807eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20808 (eval "$ac_link") 2>conftest.er1
d9898ee8 20809 ac_status=$?
20810 grep -v '^ *+' conftest.er1 >conftest.err
20811 rm -f conftest.er1
20812 cat conftest.err >&5
20813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 20814 (exit $ac_status); } && {
20815 test -z "$ac_c_werror_flag" ||
20816 test ! -s conftest.err
20817 } && test -s conftest$ac_exeext &&
20818 $as_test_x conftest$ac_exeext; then
d9898ee8 20819 ac_cv_lib_db_db_open=yes
20820else
20821 echo "$as_me: failed program was:" >&5
20822sed 's/^/| /' conftest.$ac_ext >&5
20823
64ff59ba 20824 ac_cv_lib_db_db_open=no
d9898ee8 20825fi
64ff59ba 20826
20827rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 20828 conftest$ac_exeext conftest.$ac_ext
20829LIBS=$ac_check_lib_save_LIBS
20830fi
64ff59ba 20831{ echo "$as_me:$LINENO: result: $ac_cv_lib_db_db_open" >&5
20832echo "${ECHO_T}$ac_cv_lib_db_db_open" >&6; }
d9898ee8 20833if test $ac_cv_lib_db_db_open = yes; then
20834 LIBDB=-ldb ; LIBS="-ldb $LIBS"
20835else
64ff59ba 20836 { echo "$as_me:$LINENO: checking for db_env_create in -ldb" >&5
20837echo $ECHO_N "checking for db_env_create in -ldb... $ECHO_C" >&6; }
d9898ee8 20838if test "${ac_cv_lib_db_db_env_create+set}" = set; then
20839 echo $ECHO_N "(cached) $ECHO_C" >&6
20840else
20841 ac_check_lib_save_LIBS=$LIBS
20842LIBS="-ldb $LIBS"
20843cat >conftest.$ac_ext <<_ACEOF
20844/* confdefs.h. */
20845_ACEOF
20846cat confdefs.h >>conftest.$ac_ext
20847cat >>conftest.$ac_ext <<_ACEOF
20848/* end confdefs.h. */
20849
64ff59ba 20850/* Override any GCC internal prototype to avoid an error.
20851 Use char because int might match the return type of a GCC
20852 builtin and then its argument prototype would still apply. */
d9898ee8 20853#ifdef __cplusplus
20854extern "C"
20855#endif
d9898ee8 20856char db_env_create ();
20857int
20858main ()
20859{
64ff59ba 20860return db_env_create ();
d9898ee8 20861 ;
20862 return 0;
20863}
20864_ACEOF
20865rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 20866if { (ac_try="$ac_link"
20867case "(($ac_try" in
20868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20869 *) ac_try_echo=$ac_try;;
20870esac
20871eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20872 (eval "$ac_link") 2>conftest.er1
d9898ee8 20873 ac_status=$?
20874 grep -v '^ *+' conftest.er1 >conftest.err
20875 rm -f conftest.er1
20876 cat conftest.err >&5
20877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 20878 (exit $ac_status); } && {
20879 test -z "$ac_c_werror_flag" ||
20880 test ! -s conftest.err
20881 } && test -s conftest$ac_exeext &&
20882 $as_test_x conftest$ac_exeext; then
d9898ee8 20883 ac_cv_lib_db_db_env_create=yes
20884else
20885 echo "$as_me: failed program was:" >&5
20886sed 's/^/| /' conftest.$ac_ext >&5
20887
64ff59ba 20888 ac_cv_lib_db_db_env_create=no
d9898ee8 20889fi
64ff59ba 20890
20891rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 20892 conftest$ac_exeext conftest.$ac_ext
20893LIBS=$ac_check_lib_save_LIBS
20894fi
64ff59ba 20895{ echo "$as_me:$LINENO: result: $ac_cv_lib_db_db_env_create" >&5
20896echo "${ECHO_T}$ac_cv_lib_db_db_env_create" >&6; }
d9898ee8 20897if test $ac_cv_lib_db_db_env_create = yes; then
20898 LIBDB=-ldb; LIBS="-ldb $LIBS"
20899fi
20900
20901
20902fi
20903
20904fi
20905
20906
64ff59ba 20907 { echo "$as_me:$LINENO: checking for dbopen" >&5
20908echo $ECHO_N "checking for dbopen... $ECHO_C" >&6; }
d9898ee8 20909if test "${ac_cv_func_dbopen+set}" = set; then
20910 echo $ECHO_N "(cached) $ECHO_C" >&6
20911else
20912 cat >conftest.$ac_ext <<_ACEOF
20913/* confdefs.h. */
20914_ACEOF
20915cat confdefs.h >>conftest.$ac_ext
20916cat >>conftest.$ac_ext <<_ACEOF
20917/* end confdefs.h. */
20918/* Define dbopen to an innocuous variant, in case <limits.h> declares dbopen.
20919 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20920#define dbopen innocuous_dbopen
20921
20922/* System header to define __stub macros and hopefully few prototypes,
20923 which can conflict with char dbopen (); below.
20924 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20925 <limits.h> exists even on freestanding compilers. */
20926
20927#ifdef __STDC__
20928# include <limits.h>
20929#else
20930# include <assert.h>
20931#endif
20932
20933#undef dbopen
20934
64ff59ba 20935/* Override any GCC internal prototype to avoid an error.
20936 Use char because int might match the return type of a GCC
20937 builtin and then its argument prototype would still apply. */
d9898ee8 20938#ifdef __cplusplus
20939extern "C"
d9898ee8 20940#endif
d9898ee8 20941char dbopen ();
20942/* The GNU C library defines this for functions which it implements
20943 to always fail with ENOSYS. Some functions are actually named
20944 something starting with __ and the normal name is an alias. */
64ff59ba 20945#if defined __stub_dbopen || defined __stub___dbopen
d9898ee8 20946choke me
d9898ee8 20947#endif
20948
20949int
20950main ()
20951{
64ff59ba 20952return dbopen ();
d9898ee8 20953 ;
20954 return 0;
20955}
20956_ACEOF
20957rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 20958if { (ac_try="$ac_link"
20959case "(($ac_try" in
20960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20961 *) ac_try_echo=$ac_try;;
20962esac
20963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20964 (eval "$ac_link") 2>conftest.er1
d9898ee8 20965 ac_status=$?
20966 grep -v '^ *+' conftest.er1 >conftest.err
20967 rm -f conftest.er1
20968 cat conftest.err >&5
20969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 20970 (exit $ac_status); } && {
20971 test -z "$ac_c_werror_flag" ||
20972 test ! -s conftest.err
20973 } && test -s conftest$ac_exeext &&
20974 $as_test_x conftest$ac_exeext; then
d9898ee8 20975 ac_cv_func_dbopen=yes
20976else
20977 echo "$as_me: failed program was:" >&5
20978sed 's/^/| /' conftest.$ac_ext >&5
20979
64ff59ba 20980 ac_cv_func_dbopen=no
d9898ee8 20981fi
64ff59ba 20982
20983rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 20984 conftest$ac_exeext conftest.$ac_ext
20985fi
64ff59ba 20986{ echo "$as_me:$LINENO: result: $ac_cv_func_dbopen" >&5
20987echo "${ECHO_T}$ac_cv_func_dbopen" >&6; }
d9898ee8 20988if test $ac_cv_func_dbopen = yes; then
20989 HAVE_BDB=1
20990fi
20991
64ff59ba 20992 { echo "$as_me:$LINENO: checking for db_open" >&5
20993echo $ECHO_N "checking for db_open... $ECHO_C" >&6; }
d9898ee8 20994if test "${ac_cv_func_db_open+set}" = set; then
20995 echo $ECHO_N "(cached) $ECHO_C" >&6
20996else
20997 cat >conftest.$ac_ext <<_ACEOF
20998/* confdefs.h. */
20999_ACEOF
21000cat confdefs.h >>conftest.$ac_ext
21001cat >>conftest.$ac_ext <<_ACEOF
21002/* end confdefs.h. */
21003/* Define db_open to an innocuous variant, in case <limits.h> declares db_open.
21004 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21005#define db_open innocuous_db_open
21006
21007/* System header to define __stub macros and hopefully few prototypes,
21008 which can conflict with char db_open (); below.
21009 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21010 <limits.h> exists even on freestanding compilers. */
21011
21012#ifdef __STDC__
21013# include <limits.h>
21014#else
21015# include <assert.h>
21016#endif
21017
21018#undef db_open
21019
64ff59ba 21020/* Override any GCC internal prototype to avoid an error.
21021 Use char because int might match the return type of a GCC
21022 builtin and then its argument prototype would still apply. */
d9898ee8 21023#ifdef __cplusplus
21024extern "C"
d9898ee8 21025#endif
d9898ee8 21026char db_open ();
21027/* The GNU C library defines this for functions which it implements
21028 to always fail with ENOSYS. Some functions are actually named
21029 something starting with __ and the normal name is an alias. */
64ff59ba 21030#if defined __stub_db_open || defined __stub___db_open
d9898ee8 21031choke me
d9898ee8 21032#endif
21033
21034int
21035main ()
21036{
64ff59ba 21037return db_open ();
d9898ee8 21038 ;
21039 return 0;
21040}
21041_ACEOF
21042rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 21043if { (ac_try="$ac_link"
21044case "(($ac_try" in
21045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21046 *) ac_try_echo=$ac_try;;
21047esac
21048eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21049 (eval "$ac_link") 2>conftest.er1
d9898ee8 21050 ac_status=$?
21051 grep -v '^ *+' conftest.er1 >conftest.err
21052 rm -f conftest.er1
21053 cat conftest.err >&5
21054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 21055 (exit $ac_status); } && {
21056 test -z "$ac_c_werror_flag" ||
21057 test ! -s conftest.err
21058 } && test -s conftest$ac_exeext &&
21059 $as_test_x conftest$ac_exeext; then
d9898ee8 21060 ac_cv_func_db_open=yes
21061else
21062 echo "$as_me: failed program was:" >&5
21063sed 's/^/| /' conftest.$ac_ext >&5
21064
64ff59ba 21065 ac_cv_func_db_open=no
d9898ee8 21066fi
64ff59ba 21067
21068rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 21069 conftest$ac_exeext conftest.$ac_ext
21070fi
64ff59ba 21071{ echo "$as_me:$LINENO: result: $ac_cv_func_db_open" >&5
21072echo "${ECHO_T}$ac_cv_func_db_open" >&6; }
d9898ee8 21073if test $ac_cv_func_db_open = yes; then
21074 HAVE_BDB=1
21075fi
21076
64ff59ba 21077 { echo "$as_me:$LINENO: checking for db_env_create" >&5
21078echo $ECHO_N "checking for db_env_create... $ECHO_C" >&6; }
d9898ee8 21079if test "${ac_cv_func_db_env_create+set}" = set; then
21080 echo $ECHO_N "(cached) $ECHO_C" >&6
21081else
21082 cat >conftest.$ac_ext <<_ACEOF
21083/* confdefs.h. */
21084_ACEOF
21085cat confdefs.h >>conftest.$ac_ext
21086cat >>conftest.$ac_ext <<_ACEOF
21087/* end confdefs.h. */
21088/* Define db_env_create to an innocuous variant, in case <limits.h> declares db_env_create.
21089 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21090#define db_env_create innocuous_db_env_create
21091
21092/* System header to define __stub macros and hopefully few prototypes,
21093 which can conflict with char db_env_create (); below.
21094 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21095 <limits.h> exists even on freestanding compilers. */
21096
21097#ifdef __STDC__
21098# include <limits.h>
21099#else
21100# include <assert.h>
21101#endif
21102
21103#undef db_env_create
21104
64ff59ba 21105/* Override any GCC internal prototype to avoid an error.
21106 Use char because int might match the return type of a GCC
21107 builtin and then its argument prototype would still apply. */
d9898ee8 21108#ifdef __cplusplus
21109extern "C"
d9898ee8 21110#endif
d9898ee8 21111char db_env_create ();
21112/* The GNU C library defines this for functions which it implements
21113 to always fail with ENOSYS. Some functions are actually named
21114 something starting with __ and the normal name is an alias. */
64ff59ba 21115#if defined __stub_db_env_create || defined __stub___db_env_create
d9898ee8 21116choke me
d9898ee8 21117#endif
21118
21119int
21120main ()
21121{
64ff59ba 21122return db_env_create ();
d9898ee8 21123 ;
21124 return 0;
21125}
21126_ACEOF
21127rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 21128if { (ac_try="$ac_link"
21129case "(($ac_try" in
21130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21131 *) ac_try_echo=$ac_try;;
21132esac
21133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21134 (eval "$ac_link") 2>conftest.er1
d9898ee8 21135 ac_status=$?
21136 grep -v '^ *+' conftest.er1 >conftest.err
21137 rm -f conftest.er1
21138 cat conftest.err >&5
21139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 21140 (exit $ac_status); } && {
21141 test -z "$ac_c_werror_flag" ||
21142 test ! -s conftest.err
21143 } && test -s conftest$ac_exeext &&
21144 $as_test_x conftest$ac_exeext; then
d9898ee8 21145 ac_cv_func_db_env_create=yes
21146else
21147 echo "$as_me: failed program was:" >&5
21148sed 's/^/| /' conftest.$ac_ext >&5
21149
64ff59ba 21150 ac_cv_func_db_env_create=no
d9898ee8 21151fi
64ff59ba 21152
21153rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 21154 conftest$ac_exeext conftest.$ac_ext
21155fi
64ff59ba 21156{ echo "$as_me:$LINENO: result: $ac_cv_func_db_env_create" >&5
21157echo "${ECHO_T}$ac_cv_func_db_env_create" >&6; }
d9898ee8 21158if test $ac_cv_func_db_env_create = yes; then
21159 HAVE_BDB=1
21160fi
21161
21162fi
21163
21164LIBS="$saveLIBS"
21165
21166if test "$HAVE_GDBM$HAVE_BDB" = ""
21167then
21168 { { echo "$as_me:$LINENO: error: Cannot find either the gdbm or the db library." >&5
21169echo "$as_me: error: Cannot find either the gdbm or the db library." >&2;}
21170 { (exit 1); exit 1; }; }
21171fi
21172
21173USE_GDBM=0
21174USE_DB=0
21175
21176if test "$HAVE_GDBM" = "y"
21177then
21178 LIBDB=""
21179 USE_GDBM=1
21180 DBSUBDIR=gdbmobj
21181 if test "$needs_withdb" = 1
21182 then
21183 ac_configure_args="$ac_configure_args --with-db=gdbm"
21184 fi
21185 dblibrary=gdbmobj/libgdbmobj.la
21186else
21187 LIBGDBM=""
21188 USE_DB=1
21189 DBSUBDIR=bdbobj
21190 if test "$needs_withdb" = 1
21191 then
21192 ac_configure_args="$ac_configure_args --with-db=db"
21193 fi
21194 dblibrary=bdbobj/libbdbobj.la
21195fi
21196
21197
21198
21199
21200
21201
21202
21203
64ff59ba 21204# Check whether --with-authuserdb was given.
d9898ee8 21205if test "${with_authuserdb+set}" = set; then
64ff59ba 21206 withval=$with_authuserdb; doauthuserdb="$withval"
d9898ee8 21207else
21208 doauthuserdb="no"
21209 if test -d ${srcdir}/userdb
21210 then
21211 doauthuserdb="yes"
21212 fi
64ff59ba 21213fi
21214
d9898ee8 21215
21216if test "$doauthuserdb" = "no"
21217then
21218 AUTHUSERDB=""
21219else
21220 AUTHUSERDB="authuserdb"
21221 LIBAUTHUSERDB="libauthuserdb.la"
21222
21223fi
21224
21225
64ff59ba 21226# Check whether --with-makedatprog was given.
d9898ee8 21227if test "${with_makedatprog+set}" = set; then
64ff59ba 21228 withval=$with_makedatprog; :
d9898ee8 21229else
21230
21231 ac_configure_args="$ac_configure_args --with-makedatprog=$libexecdir/courier-authlib/makedatprog"
21232
64ff59ba 21233fi
21234
d9898ee8 21235
21236cat >dbobj.config <<EOF
21237LIBDB=$LIBDB
21238LIBGDBM=$LIBGDBM
21239dblibrary=$dblibrary
21240EOF
21241
21242
21243
21244
21245
21246
21247
21248
21249
21250userdb="$pkgconfdir/userdb"
21251
64ff59ba 21252# Check whether --with-userdb was given.
d9898ee8 21253if test "${with_userdb+set}" = set; then
64ff59ba 21254 withval=$with_userdb; userdb="$withval"
d9898ee8 21255else
21256 ac_configure_args="$ac_configure_args '--with-userdb=$userdb'"
64ff59ba 21257fi
21258
d9898ee8 21259
21260
21261cat >>confdefs.h <<_ACEOF
21262#define USERDB "$userdb"
21263_ACEOF
21264
21265
21266
21267
21268for ac_header in stdio.h
21269do
21270as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
64ff59ba 21271if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21272 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21273echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21274if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 21275 echo $ECHO_N "(cached) $ECHO_C" >&6
21276fi
64ff59ba 21277ac_res=`eval echo '${'$as_ac_Header'}'`
21278 { echo "$as_me:$LINENO: result: $ac_res" >&5
21279echo "${ECHO_T}$ac_res" >&6; }
d9898ee8 21280else
21281 # Is the header compilable?
64ff59ba 21282{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
21283echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
d9898ee8 21284cat >conftest.$ac_ext <<_ACEOF
21285/* confdefs.h. */
21286_ACEOF
21287cat confdefs.h >>conftest.$ac_ext
21288cat >>conftest.$ac_ext <<_ACEOF
21289/* end confdefs.h. */
21290$ac_includes_default
21291#include <$ac_header>
21292_ACEOF
21293rm -f conftest.$ac_objext
64ff59ba 21294if { (ac_try="$ac_compile"
21295case "(($ac_try" in
21296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21297 *) ac_try_echo=$ac_try;;
21298esac
21299eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21300 (eval "$ac_compile") 2>conftest.er1
d9898ee8 21301 ac_status=$?
21302 grep -v '^ *+' conftest.er1 >conftest.err
21303 rm -f conftest.er1
21304 cat conftest.err >&5
21305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 21306 (exit $ac_status); } && {
21307 test -z "$ac_c_werror_flag" ||
21308 test ! -s conftest.err
21309 } && test -s conftest.$ac_objext; then
d9898ee8 21310 ac_header_compiler=yes
21311else
21312 echo "$as_me: failed program was:" >&5
21313sed 's/^/| /' conftest.$ac_ext >&5
21314
64ff59ba 21315 ac_header_compiler=no
d9898ee8 21316fi
64ff59ba 21317
21318rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21319{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21320echo "${ECHO_T}$ac_header_compiler" >&6; }
d9898ee8 21321
21322# Is the header present?
64ff59ba 21323{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
21324echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
d9898ee8 21325cat >conftest.$ac_ext <<_ACEOF
21326/* confdefs.h. */
21327_ACEOF
21328cat confdefs.h >>conftest.$ac_ext
21329cat >>conftest.$ac_ext <<_ACEOF
21330/* end confdefs.h. */
21331#include <$ac_header>
21332_ACEOF
64ff59ba 21333if { (ac_try="$ac_cpp conftest.$ac_ext"
21334case "(($ac_try" in
21335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21336 *) ac_try_echo=$ac_try;;
21337esac
21338eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21339 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 21340 ac_status=$?
21341 grep -v '^ *+' conftest.er1 >conftest.err
21342 rm -f conftest.er1
21343 cat conftest.err >&5
21344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 21345 (exit $ac_status); } >/dev/null && {
21346 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21347 test ! -s conftest.err
21348 }; then
d9898ee8 21349 ac_header_preproc=yes
21350else
21351 echo "$as_me: failed program was:" >&5
21352sed 's/^/| /' conftest.$ac_ext >&5
21353
21354 ac_header_preproc=no
21355fi
64ff59ba 21356
d9898ee8 21357rm -f conftest.err conftest.$ac_ext
64ff59ba 21358{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21359echo "${ECHO_T}$ac_header_preproc" >&6; }
d9898ee8 21360
21361# So? What about this header?
21362case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21363 yes:no: )
21364 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21365echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21366 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21367echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21368 ac_header_preproc=yes
21369 ;;
21370 no:yes:* )
21371 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21372echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21373 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21374echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21375 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21376echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21377 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21378echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21379 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21380echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21381 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21382echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
64ff59ba 21383 ( cat <<\_ASBOX
d9898ee8 21384## -------------------------------------------------- ##
21385## Report this to courier-users@lists.sourceforge.net ##
21386## -------------------------------------------------- ##
21387_ASBOX
64ff59ba 21388 ) | sed "s/^/$as_me: WARNING: /" >&2
d9898ee8 21389 ;;
21390esac
64ff59ba 21391{ echo "$as_me:$LINENO: checking for $ac_header" >&5
21392echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21393if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 21394 echo $ECHO_N "(cached) $ECHO_C" >&6
21395else
21396 eval "$as_ac_Header=\$ac_header_preproc"
21397fi
64ff59ba 21398ac_res=`eval echo '${'$as_ac_Header'}'`
21399 { echo "$as_me:$LINENO: result: $ac_res" >&5
21400echo "${ECHO_T}$ac_res" >&6; }
d9898ee8 21401
21402fi
21403if test `eval echo '${'$as_ac_Header'}'` = yes; then
21404 cat >>confdefs.h <<_ACEOF
21405#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21406_ACEOF
21407
21408fi
21409
21410done
21411
21412
21413
21414
21415
21416
64ff59ba 21417# Check whether --with-authpam was given.
d9898ee8 21418if test "${with_authpam+set}" = set; then
64ff59ba 21419 withval=$with_authpam; doauthpam="$withval"
21420fi
21421
d9898ee8 21422
21423
21424
21425for ac_header in security/pam_appl.h Pam/pam_appl.h
21426do
21427as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
64ff59ba 21428if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21429 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21430echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21431if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 21432 echo $ECHO_N "(cached) $ECHO_C" >&6
21433fi
64ff59ba 21434ac_res=`eval echo '${'$as_ac_Header'}'`
21435 { echo "$as_me:$LINENO: result: $ac_res" >&5
21436echo "${ECHO_T}$ac_res" >&6; }
d9898ee8 21437else
21438 # Is the header compilable?
64ff59ba 21439{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
21440echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
d9898ee8 21441cat >conftest.$ac_ext <<_ACEOF
21442/* confdefs.h. */
21443_ACEOF
21444cat confdefs.h >>conftest.$ac_ext
21445cat >>conftest.$ac_ext <<_ACEOF
21446/* end confdefs.h. */
21447$ac_includes_default
21448#include <$ac_header>
21449_ACEOF
21450rm -f conftest.$ac_objext
64ff59ba 21451if { (ac_try="$ac_compile"
21452case "(($ac_try" in
21453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21454 *) ac_try_echo=$ac_try;;
21455esac
21456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21457 (eval "$ac_compile") 2>conftest.er1
d9898ee8 21458 ac_status=$?
21459 grep -v '^ *+' conftest.er1 >conftest.err
21460 rm -f conftest.er1
21461 cat conftest.err >&5
21462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 21463 (exit $ac_status); } && {
21464 test -z "$ac_c_werror_flag" ||
21465 test ! -s conftest.err
21466 } && test -s conftest.$ac_objext; then
d9898ee8 21467 ac_header_compiler=yes
21468else
21469 echo "$as_me: failed program was:" >&5
21470sed 's/^/| /' conftest.$ac_ext >&5
21471
64ff59ba 21472 ac_header_compiler=no
d9898ee8 21473fi
64ff59ba 21474
21475rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21476{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21477echo "${ECHO_T}$ac_header_compiler" >&6; }
d9898ee8 21478
21479# Is the header present?
64ff59ba 21480{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
21481echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
d9898ee8 21482cat >conftest.$ac_ext <<_ACEOF
21483/* confdefs.h. */
21484_ACEOF
21485cat confdefs.h >>conftest.$ac_ext
21486cat >>conftest.$ac_ext <<_ACEOF
21487/* end confdefs.h. */
21488#include <$ac_header>
21489_ACEOF
64ff59ba 21490if { (ac_try="$ac_cpp conftest.$ac_ext"
21491case "(($ac_try" in
21492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21493 *) ac_try_echo=$ac_try;;
21494esac
21495eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21496 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 21497 ac_status=$?
21498 grep -v '^ *+' conftest.er1 >conftest.err
21499 rm -f conftest.er1
21500 cat conftest.err >&5
21501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 21502 (exit $ac_status); } >/dev/null && {
21503 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21504 test ! -s conftest.err
21505 }; then
d9898ee8 21506 ac_header_preproc=yes
21507else
21508 echo "$as_me: failed program was:" >&5
21509sed 's/^/| /' conftest.$ac_ext >&5
21510
21511 ac_header_preproc=no
21512fi
64ff59ba 21513
d9898ee8 21514rm -f conftest.err conftest.$ac_ext
64ff59ba 21515{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21516echo "${ECHO_T}$ac_header_preproc" >&6; }
d9898ee8 21517
21518# So? What about this header?
21519case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21520 yes:no: )
21521 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21522echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21523 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21524echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21525 ac_header_preproc=yes
21526 ;;
21527 no:yes:* )
21528 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21529echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21530 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21531echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21532 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21533echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21534 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21535echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21536 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21537echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21538 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21539echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
64ff59ba 21540 ( cat <<\_ASBOX
d9898ee8 21541## -------------------------------------------------- ##
21542## Report this to courier-users@lists.sourceforge.net ##
21543## -------------------------------------------------- ##
21544_ASBOX
64ff59ba 21545 ) | sed "s/^/$as_me: WARNING: /" >&2
d9898ee8 21546 ;;
21547esac
64ff59ba 21548{ echo "$as_me:$LINENO: checking for $ac_header" >&5
21549echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21550if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 21551 echo $ECHO_N "(cached) $ECHO_C" >&6
21552else
21553 eval "$as_ac_Header=\$ac_header_preproc"
21554fi
64ff59ba 21555ac_res=`eval echo '${'$as_ac_Header'}'`
21556 { echo "$as_me:$LINENO: result: $ac_res" >&5
21557echo "${ECHO_T}$ac_res" >&6; }
d9898ee8 21558
21559fi
21560if test `eval echo '${'$as_ac_Header'}'` = yes; then
21561 cat >>confdefs.h <<_ACEOF
21562#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21563_ACEOF
21564
21565fi
21566
21567done
21568
21569if test "$doauthpam" = "no"
21570then
21571 LIBDL=""
21572else
21573 saveLIBS="$LIBS"
21574 LIBDL=""
64ff59ba 21575 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
21576echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
d9898ee8 21577if test "${ac_cv_lib_dl_dlopen+set}" = set; then
21578 echo $ECHO_N "(cached) $ECHO_C" >&6
21579else
21580 ac_check_lib_save_LIBS=$LIBS
21581LIBS="-ldl $LIBS"
21582cat >conftest.$ac_ext <<_ACEOF
21583/* confdefs.h. */
21584_ACEOF
21585cat confdefs.h >>conftest.$ac_ext
21586cat >>conftest.$ac_ext <<_ACEOF
21587/* end confdefs.h. */
21588
64ff59ba 21589/* Override any GCC internal prototype to avoid an error.
21590 Use char because int might match the return type of a GCC
21591 builtin and then its argument prototype would still apply. */
d9898ee8 21592#ifdef __cplusplus
21593extern "C"
21594#endif
d9898ee8 21595char dlopen ();
21596int
21597main ()
21598{
64ff59ba 21599return dlopen ();
d9898ee8 21600 ;
21601 return 0;
21602}
21603_ACEOF
21604rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 21605if { (ac_try="$ac_link"
21606case "(($ac_try" in
21607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21608 *) ac_try_echo=$ac_try;;
21609esac
21610eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21611 (eval "$ac_link") 2>conftest.er1
d9898ee8 21612 ac_status=$?
21613 grep -v '^ *+' conftest.er1 >conftest.err
21614 rm -f conftest.er1
21615 cat conftest.err >&5
21616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 21617 (exit $ac_status); } && {
21618 test -z "$ac_c_werror_flag" ||
21619 test ! -s conftest.err
21620 } && test -s conftest$ac_exeext &&
21621 $as_test_x conftest$ac_exeext; then
d9898ee8 21622 ac_cv_lib_dl_dlopen=yes
21623else
21624 echo "$as_me: failed program was:" >&5
21625sed 's/^/| /' conftest.$ac_ext >&5
21626
64ff59ba 21627 ac_cv_lib_dl_dlopen=no
d9898ee8 21628fi
64ff59ba 21629
21630rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 21631 conftest$ac_exeext conftest.$ac_ext
21632LIBS=$ac_check_lib_save_LIBS
21633fi
64ff59ba 21634{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
21635echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
d9898ee8 21636if test $ac_cv_lib_dl_dlopen = yes; then
21637 LIBDL="-ldl"
21638fi
21639
21640 LIBS="$saveLIBS"
21641
64ff59ba 21642 { echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
21643echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6; }
d9898ee8 21644if test "${ac_cv_lib_pam_pam_start+set}" = set; then
21645 echo $ECHO_N "(cached) $ECHO_C" >&6
21646else
21647 ac_check_lib_save_LIBS=$LIBS
21648LIBS="-lpam $LIBDL $LIBS"
21649cat >conftest.$ac_ext <<_ACEOF
21650/* confdefs.h. */
21651_ACEOF
21652cat confdefs.h >>conftest.$ac_ext
21653cat >>conftest.$ac_ext <<_ACEOF
21654/* end confdefs.h. */
21655
64ff59ba 21656/* Override any GCC internal prototype to avoid an error.
21657 Use char because int might match the return type of a GCC
21658 builtin and then its argument prototype would still apply. */
d9898ee8 21659#ifdef __cplusplus
21660extern "C"
21661#endif
d9898ee8 21662char pam_start ();
21663int
21664main ()
21665{
64ff59ba 21666return pam_start ();
d9898ee8 21667 ;
21668 return 0;
21669}
21670_ACEOF
21671rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 21672if { (ac_try="$ac_link"
21673case "(($ac_try" in
21674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21675 *) ac_try_echo=$ac_try;;
21676esac
21677eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21678 (eval "$ac_link") 2>conftest.er1
d9898ee8 21679 ac_status=$?
21680 grep -v '^ *+' conftest.er1 >conftest.err
21681 rm -f conftest.er1
21682 cat conftest.err >&5
21683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 21684 (exit $ac_status); } && {
21685 test -z "$ac_c_werror_flag" ||
21686 test ! -s conftest.err
21687 } && test -s conftest$ac_exeext &&
21688 $as_test_x conftest$ac_exeext; then
d9898ee8 21689 ac_cv_lib_pam_pam_start=yes
21690else
21691 echo "$as_me: failed program was:" >&5
21692sed 's/^/| /' conftest.$ac_ext >&5
21693
64ff59ba 21694 ac_cv_lib_pam_pam_start=no
d9898ee8 21695fi
64ff59ba 21696
21697rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 21698 conftest$ac_exeext conftest.$ac_ext
21699LIBS=$ac_check_lib_save_LIBS
21700fi
64ff59ba 21701{ echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
21702echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6; }
d9898ee8 21703if test $ac_cv_lib_pam_pam_start = yes; then
21704 HAVE_PAM=1
21705 LIBS="-lpam $LIBDL $LIBS"
21706
21707for ac_func in pam_setcred
21708do
21709as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
64ff59ba 21710{ echo "$as_me:$LINENO: checking for $ac_func" >&5
21711echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21712if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 21713 echo $ECHO_N "(cached) $ECHO_C" >&6
21714else
21715 cat >conftest.$ac_ext <<_ACEOF
21716/* confdefs.h. */
21717_ACEOF
21718cat confdefs.h >>conftest.$ac_ext
21719cat >>conftest.$ac_ext <<_ACEOF
21720/* end confdefs.h. */
21721/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21722 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21723#define $ac_func innocuous_$ac_func
21724
21725/* System header to define __stub macros and hopefully few prototypes,
21726 which can conflict with char $ac_func (); below.
21727 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21728 <limits.h> exists even on freestanding compilers. */
21729
21730#ifdef __STDC__
21731# include <limits.h>
21732#else
21733# include <assert.h>
21734#endif
21735
21736#undef $ac_func
21737
64ff59ba 21738/* Override any GCC internal prototype to avoid an error.
21739 Use char because int might match the return type of a GCC
21740 builtin and then its argument prototype would still apply. */
d9898ee8 21741#ifdef __cplusplus
21742extern "C"
d9898ee8 21743#endif
d9898ee8 21744char $ac_func ();
21745/* The GNU C library defines this for functions which it implements
21746 to always fail with ENOSYS. Some functions are actually named
21747 something starting with __ and the normal name is an alias. */
64ff59ba 21748#if defined __stub_$ac_func || defined __stub___$ac_func
d9898ee8 21749choke me
d9898ee8 21750#endif
21751
21752int
21753main ()
21754{
64ff59ba 21755return $ac_func ();
d9898ee8 21756 ;
21757 return 0;
21758}
21759_ACEOF
21760rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 21761if { (ac_try="$ac_link"
21762case "(($ac_try" in
21763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21764 *) ac_try_echo=$ac_try;;
21765esac
21766eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21767 (eval "$ac_link") 2>conftest.er1
d9898ee8 21768 ac_status=$?
21769 grep -v '^ *+' conftest.er1 >conftest.err
21770 rm -f conftest.er1
21771 cat conftest.err >&5
21772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 21773 (exit $ac_status); } && {
21774 test -z "$ac_c_werror_flag" ||
21775 test ! -s conftest.err
21776 } && test -s conftest$ac_exeext &&
21777 $as_test_x conftest$ac_exeext; then
d9898ee8 21778 eval "$as_ac_var=yes"
21779else
21780 echo "$as_me: failed program was:" >&5
21781sed 's/^/| /' conftest.$ac_ext >&5
21782
64ff59ba 21783 eval "$as_ac_var=no"
d9898ee8 21784fi
64ff59ba 21785
21786rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 21787 conftest$ac_exeext conftest.$ac_ext
21788fi
64ff59ba 21789ac_res=`eval echo '${'$as_ac_var'}'`
21790 { echo "$as_me:$LINENO: result: $ac_res" >&5
21791echo "${ECHO_T}$ac_res" >&6; }
d9898ee8 21792if test `eval echo '${'$as_ac_var'}'` = yes; then
21793 cat >>confdefs.h <<_ACEOF
21794#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21795_ACEOF
21796
21797fi
21798done
21799
21800else
21801 HAVE_PAM=0
21802fi
21803
21804 LIBS="$saveLIBS"
21805fi
21806
21807
21808LIBAUTHPAM=""
21809if test "$HAVE_PAM" = 1
21810then
21811 LIBAUTHPAM=libauthpam.la
21812fi
21813
21814
64ff59ba 21815# Check whether --with-authpam-libraries was given.
d9898ee8 21816if test "${with_authpam_libraries+set}" = set; then
64ff59ba 21817 withval=$with_authpam_libraries; authpamcrypt="$withval"
21818fi
21819
d9898ee8 21820
21821AUTHPAMCRYPT="$authpamcrypt"
21822
21823
21824
21825
21826
21827
21828
64ff59ba 21829# Check whether --with-authldap was given.
d9898ee8 21830if test "${with_authldap+set}" = set; then
64ff59ba 21831 withval=$with_authldap; doauthldap="$withval"
d9898ee8 21832else
21833 doauthldap="yes"
64ff59ba 21834fi
21835
d9898ee8 21836
21837
21838for ac_header in lber.h
21839do
21840as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
64ff59ba 21841if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21842 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21843echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21844if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 21845 echo $ECHO_N "(cached) $ECHO_C" >&6
21846fi
64ff59ba 21847ac_res=`eval echo '${'$as_ac_Header'}'`
21848 { echo "$as_me:$LINENO: result: $ac_res" >&5
21849echo "${ECHO_T}$ac_res" >&6; }
d9898ee8 21850else
21851 # Is the header compilable?
64ff59ba 21852{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
21853echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
d9898ee8 21854cat >conftest.$ac_ext <<_ACEOF
21855/* confdefs.h. */
21856_ACEOF
21857cat confdefs.h >>conftest.$ac_ext
21858cat >>conftest.$ac_ext <<_ACEOF
21859/* end confdefs.h. */
21860$ac_includes_default
21861#include <$ac_header>
21862_ACEOF
21863rm -f conftest.$ac_objext
64ff59ba 21864if { (ac_try="$ac_compile"
21865case "(($ac_try" in
21866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21867 *) ac_try_echo=$ac_try;;
21868esac
21869eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21870 (eval "$ac_compile") 2>conftest.er1
d9898ee8 21871 ac_status=$?
21872 grep -v '^ *+' conftest.er1 >conftest.err
21873 rm -f conftest.er1
21874 cat conftest.err >&5
21875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 21876 (exit $ac_status); } && {
21877 test -z "$ac_c_werror_flag" ||
21878 test ! -s conftest.err
21879 } && test -s conftest.$ac_objext; then
d9898ee8 21880 ac_header_compiler=yes
21881else
21882 echo "$as_me: failed program was:" >&5
21883sed 's/^/| /' conftest.$ac_ext >&5
21884
64ff59ba 21885 ac_header_compiler=no
d9898ee8 21886fi
64ff59ba 21887
21888rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21889{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21890echo "${ECHO_T}$ac_header_compiler" >&6; }
d9898ee8 21891
21892# Is the header present?
64ff59ba 21893{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
21894echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
d9898ee8 21895cat >conftest.$ac_ext <<_ACEOF
21896/* confdefs.h. */
21897_ACEOF
21898cat confdefs.h >>conftest.$ac_ext
21899cat >>conftest.$ac_ext <<_ACEOF
21900/* end confdefs.h. */
21901#include <$ac_header>
21902_ACEOF
64ff59ba 21903if { (ac_try="$ac_cpp conftest.$ac_ext"
21904case "(($ac_try" in
21905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21906 *) ac_try_echo=$ac_try;;
21907esac
21908eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21909 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 21910 ac_status=$?
21911 grep -v '^ *+' conftest.er1 >conftest.err
21912 rm -f conftest.er1
21913 cat conftest.err >&5
21914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 21915 (exit $ac_status); } >/dev/null && {
21916 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21917 test ! -s conftest.err
21918 }; then
d9898ee8 21919 ac_header_preproc=yes
21920else
21921 echo "$as_me: failed program was:" >&5
21922sed 's/^/| /' conftest.$ac_ext >&5
21923
21924 ac_header_preproc=no
21925fi
64ff59ba 21926
d9898ee8 21927rm -f conftest.err conftest.$ac_ext
64ff59ba 21928{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21929echo "${ECHO_T}$ac_header_preproc" >&6; }
d9898ee8 21930
21931# So? What about this header?
21932case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21933 yes:no: )
21934 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21935echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21936 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21937echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21938 ac_header_preproc=yes
21939 ;;
21940 no:yes:* )
21941 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21942echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21943 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21944echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21945 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21946echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21947 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21948echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21949 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21950echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21951 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21952echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
64ff59ba 21953 ( cat <<\_ASBOX
d9898ee8 21954## -------------------------------------------------- ##
21955## Report this to courier-users@lists.sourceforge.net ##
21956## -------------------------------------------------- ##
21957_ASBOX
64ff59ba 21958 ) | sed "s/^/$as_me: WARNING: /" >&2
d9898ee8 21959 ;;
21960esac
64ff59ba 21961{ echo "$as_me:$LINENO: checking for $ac_header" >&5
21962echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21963if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 21964 echo $ECHO_N "(cached) $ECHO_C" >&6
21965else
21966 eval "$as_ac_Header=\$ac_header_preproc"
21967fi
64ff59ba 21968ac_res=`eval echo '${'$as_ac_Header'}'`
21969 { echo "$as_me:$LINENO: result: $ac_res" >&5
21970echo "${ECHO_T}$ac_res" >&6; }
d9898ee8 21971
21972fi
21973if test `eval echo '${'$as_ac_Header'}'` = yes; then
21974 cat >>confdefs.h <<_ACEOF
21975#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21976_ACEOF
21977
21978fi
21979
21980done
21981
21982
21983for ac_header in ldap.h
21984do
21985as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
64ff59ba 21986if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21987 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21988echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21989if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 21990 echo $ECHO_N "(cached) $ECHO_C" >&6
21991fi
64ff59ba 21992ac_res=`eval echo '${'$as_ac_Header'}'`
21993 { echo "$as_me:$LINENO: result: $ac_res" >&5
21994echo "${ECHO_T}$ac_res" >&6; }
d9898ee8 21995else
21996 # Is the header compilable?
64ff59ba 21997{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
21998echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
d9898ee8 21999cat >conftest.$ac_ext <<_ACEOF
22000/* confdefs.h. */
22001_ACEOF
22002cat confdefs.h >>conftest.$ac_ext
22003cat >>conftest.$ac_ext <<_ACEOF
22004/* end confdefs.h. */
22005$ac_includes_default
22006#include <$ac_header>
22007_ACEOF
22008rm -f conftest.$ac_objext
64ff59ba 22009if { (ac_try="$ac_compile"
22010case "(($ac_try" in
22011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22012 *) ac_try_echo=$ac_try;;
22013esac
22014eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22015 (eval "$ac_compile") 2>conftest.er1
d9898ee8 22016 ac_status=$?
22017 grep -v '^ *+' conftest.er1 >conftest.err
22018 rm -f conftest.er1
22019 cat conftest.err >&5
22020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 22021 (exit $ac_status); } && {
22022 test -z "$ac_c_werror_flag" ||
22023 test ! -s conftest.err
22024 } && test -s conftest.$ac_objext; then
d9898ee8 22025 ac_header_compiler=yes
22026else
22027 echo "$as_me: failed program was:" >&5
22028sed 's/^/| /' conftest.$ac_ext >&5
22029
64ff59ba 22030 ac_header_compiler=no
d9898ee8 22031fi
64ff59ba 22032
22033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22034{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22035echo "${ECHO_T}$ac_header_compiler" >&6; }
d9898ee8 22036
22037# Is the header present?
64ff59ba 22038{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
22039echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
d9898ee8 22040cat >conftest.$ac_ext <<_ACEOF
22041/* confdefs.h. */
22042_ACEOF
22043cat confdefs.h >>conftest.$ac_ext
22044cat >>conftest.$ac_ext <<_ACEOF
22045/* end confdefs.h. */
22046#include <$ac_header>
22047_ACEOF
64ff59ba 22048if { (ac_try="$ac_cpp conftest.$ac_ext"
22049case "(($ac_try" in
22050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22051 *) ac_try_echo=$ac_try;;
22052esac
22053eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22054 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 22055 ac_status=$?
22056 grep -v '^ *+' conftest.er1 >conftest.err
22057 rm -f conftest.er1
22058 cat conftest.err >&5
22059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 22060 (exit $ac_status); } >/dev/null && {
22061 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22062 test ! -s conftest.err
22063 }; then
d9898ee8 22064 ac_header_preproc=yes
22065else
22066 echo "$as_me: failed program was:" >&5
22067sed 's/^/| /' conftest.$ac_ext >&5
22068
22069 ac_header_preproc=no
22070fi
64ff59ba 22071
d9898ee8 22072rm -f conftest.err conftest.$ac_ext
64ff59ba 22073{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22074echo "${ECHO_T}$ac_header_preproc" >&6; }
d9898ee8 22075
22076# So? What about this header?
22077case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22078 yes:no: )
22079 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22080echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22081 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22082echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22083 ac_header_preproc=yes
22084 ;;
22085 no:yes:* )
22086 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22087echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22088 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22089echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22090 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22091echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22092 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22093echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22094 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22095echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22096 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22097echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
64ff59ba 22098 ( cat <<\_ASBOX
d9898ee8 22099## -------------------------------------------------- ##
22100## Report this to courier-users@lists.sourceforge.net ##
22101## -------------------------------------------------- ##
22102_ASBOX
64ff59ba 22103 ) | sed "s/^/$as_me: WARNING: /" >&2
d9898ee8 22104 ;;
22105esac
64ff59ba 22106{ echo "$as_me:$LINENO: checking for $ac_header" >&5
22107echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22108if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 22109 echo $ECHO_N "(cached) $ECHO_C" >&6
22110else
22111 eval "$as_ac_Header=\$ac_header_preproc"
22112fi
64ff59ba 22113ac_res=`eval echo '${'$as_ac_Header'}'`
22114 { echo "$as_me:$LINENO: result: $ac_res" >&5
22115echo "${ECHO_T}$ac_res" >&6; }
d9898ee8 22116
22117fi
22118if test `eval echo '${'$as_ac_Header'}'` = yes; then
22119 cat >>confdefs.h <<_ACEOF
22120#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22121_ACEOF
22122
22123fi
22124
22125done
22126
22127
22128for ac_header in netinet/in.h
22129do
22130as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
64ff59ba 22131if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22132 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22133echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22134if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 22135 echo $ECHO_N "(cached) $ECHO_C" >&6
22136fi
64ff59ba 22137ac_res=`eval echo '${'$as_ac_Header'}'`
22138 { echo "$as_me:$LINENO: result: $ac_res" >&5
22139echo "${ECHO_T}$ac_res" >&6; }
d9898ee8 22140else
22141 # Is the header compilable?
64ff59ba 22142{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
22143echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
d9898ee8 22144cat >conftest.$ac_ext <<_ACEOF
22145/* confdefs.h. */
22146_ACEOF
22147cat confdefs.h >>conftest.$ac_ext
22148cat >>conftest.$ac_ext <<_ACEOF
22149/* end confdefs.h. */
22150$ac_includes_default
22151#include <$ac_header>
22152_ACEOF
22153rm -f conftest.$ac_objext
64ff59ba 22154if { (ac_try="$ac_compile"
22155case "(($ac_try" in
22156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22157 *) ac_try_echo=$ac_try;;
22158esac
22159eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22160 (eval "$ac_compile") 2>conftest.er1
d9898ee8 22161 ac_status=$?
22162 grep -v '^ *+' conftest.er1 >conftest.err
22163 rm -f conftest.er1
22164 cat conftest.err >&5
22165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 22166 (exit $ac_status); } && {
22167 test -z "$ac_c_werror_flag" ||
22168 test ! -s conftest.err
22169 } && test -s conftest.$ac_objext; then
d9898ee8 22170 ac_header_compiler=yes
22171else
22172 echo "$as_me: failed program was:" >&5
22173sed 's/^/| /' conftest.$ac_ext >&5
22174
64ff59ba 22175 ac_header_compiler=no
d9898ee8 22176fi
64ff59ba 22177
22178rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22179{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22180echo "${ECHO_T}$ac_header_compiler" >&6; }
d9898ee8 22181
22182# Is the header present?
64ff59ba 22183{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
22184echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
d9898ee8 22185cat >conftest.$ac_ext <<_ACEOF
22186/* confdefs.h. */
22187_ACEOF
22188cat confdefs.h >>conftest.$ac_ext
22189cat >>conftest.$ac_ext <<_ACEOF
22190/* end confdefs.h. */
22191#include <$ac_header>
22192_ACEOF
64ff59ba 22193if { (ac_try="$ac_cpp conftest.$ac_ext"
22194case "(($ac_try" in
22195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22196 *) ac_try_echo=$ac_try;;
22197esac
22198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22199 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 22200 ac_status=$?
22201 grep -v '^ *+' conftest.er1 >conftest.err
22202 rm -f conftest.er1
22203 cat conftest.err >&5
22204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 22205 (exit $ac_status); } >/dev/null && {
22206 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22207 test ! -s conftest.err
22208 }; then
d9898ee8 22209 ac_header_preproc=yes
22210else
22211 echo "$as_me: failed program was:" >&5
22212sed 's/^/| /' conftest.$ac_ext >&5
22213
22214 ac_header_preproc=no
22215fi
64ff59ba 22216
d9898ee8 22217rm -f conftest.err conftest.$ac_ext
64ff59ba 22218{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22219echo "${ECHO_T}$ac_header_preproc" >&6; }
d9898ee8 22220
22221# So? What about this header?
22222case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22223 yes:no: )
22224 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22225echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22226 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22227echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22228 ac_header_preproc=yes
22229 ;;
22230 no:yes:* )
22231 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22232echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22233 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22234echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22235 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22236echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22237 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22238echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22239 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22240echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22241 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22242echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
64ff59ba 22243 ( cat <<\_ASBOX
d9898ee8 22244## -------------------------------------------------- ##
22245## Report this to courier-users@lists.sourceforge.net ##
22246## -------------------------------------------------- ##
22247_ASBOX
64ff59ba 22248 ) | sed "s/^/$as_me: WARNING: /" >&2
d9898ee8 22249 ;;
22250esac
64ff59ba 22251{ echo "$as_me:$LINENO: checking for $ac_header" >&5
22252echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22253if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 22254 echo $ECHO_N "(cached) $ECHO_C" >&6
22255else
22256 eval "$as_ac_Header=\$ac_header_preproc"
22257fi
64ff59ba 22258ac_res=`eval echo '${'$as_ac_Header'}'`
22259 { echo "$as_me:$LINENO: result: $ac_res" >&5
22260echo "${ECHO_T}$ac_res" >&6; }
d9898ee8 22261
22262fi
22263if test `eval echo '${'$as_ac_Header'}'` = yes; then
22264 cat >>confdefs.h <<_ACEOF
22265#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22266_ACEOF
22267
22268fi
22269
22270done
22271
22272
22273if test "$doauthldap" = "no"
22274then
22275 HAVE_LDAP=0
22276else
22277 saveLIBS="$LIBS"
22278 LIBS="$NETLIBS $LIBS"
22279 LDAPLIBS=""
22280
64ff59ba 22281 { echo "$as_me:$LINENO: checking whether -lresolv is needed for res_query" >&5
22282echo $ECHO_N "checking whether -lresolv is needed for res_query... $ECHO_C" >&6; }
d9898ee8 22283 cat >conftest.$ac_ext <<_ACEOF
22284/* confdefs.h. */
22285_ACEOF
22286cat confdefs.h >>conftest.$ac_ext
22287cat >>conftest.$ac_ext <<_ACEOF
22288/* end confdefs.h. */
22289
22290#include <sys/types.h>
22291#if HAVE_NETINET_IN_H
22292#include <netinet/in.h>
22293#endif
22294#include <resolv.h>
22295
22296void (*func)()= (void (*)())res_query;
22297
22298int
22299main ()
22300{
22301 (*func)();
22302 ;
22303 return 0;
22304}
22305_ACEOF
22306rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 22307if { (ac_try="$ac_link"
22308case "(($ac_try" in
22309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22310 *) ac_try_echo=$ac_try;;
22311esac
22312eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22313 (eval "$ac_link") 2>conftest.er1
d9898ee8 22314 ac_status=$?
22315 grep -v '^ *+' conftest.er1 >conftest.err
22316 rm -f conftest.er1
22317 cat conftest.err >&5
22318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 22319 (exit $ac_status); } && {
22320 test -z "$ac_c_werror_flag" ||
22321 test ! -s conftest.err
22322 } && test -s conftest$ac_exeext &&
22323 $as_test_x conftest$ac_exeext; then
22324 { echo "$as_me:$LINENO: result: no" >&5
22325echo "${ECHO_T}no" >&6; }
d9898ee8 22326else
22327 echo "$as_me: failed program was:" >&5
22328sed 's/^/| /' conftest.$ac_ext >&5
22329
22330
22331 LIBS="-lresolv $LIBS"
22332
22333 cat >conftest.$ac_ext <<_ACEOF
22334/* confdefs.h. */
22335_ACEOF
22336cat confdefs.h >>conftest.$ac_ext
22337cat >>conftest.$ac_ext <<_ACEOF
22338/* end confdefs.h. */
22339
22340#include <sys/types.h>
22341#if HAVE_NETINET_IN_H
22342#include <netinet/in.h>
22343#endif
22344#include <resolv.h>
22345
22346void (*func)()= (void (*)())res_query;
22347
22348int
22349main ()
22350{
22351 (*func)();
22352 ;
22353 return 0;
22354}
22355_ACEOF
22356rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 22357if { (ac_try="$ac_link"
22358case "(($ac_try" in
22359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22360 *) ac_try_echo=$ac_try;;
22361esac
22362eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22363 (eval "$ac_link") 2>conftest.er1
d9898ee8 22364 ac_status=$?
22365 grep -v '^ *+' conftest.er1 >conftest.err
22366 rm -f conftest.er1
22367 cat conftest.err >&5
22368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 22369 (exit $ac_status); } && {
22370 test -z "$ac_c_werror_flag" ||
22371 test ! -s conftest.err
22372 } && test -s conftest$ac_exeext &&
22373 $as_test_x conftest$ac_exeext; then
d9898ee8 22374
22375 LDAPLIBS="-lresolv $LDAPLIBS"
22376 HAVE_LDAP=1
64ff59ba 22377 { echo "$as_me:$LINENO: result: yes" >&5
22378echo "${ECHO_T}yes" >&6; }
d9898ee8 22379
22380else
22381 echo "$as_me: failed program was:" >&5
22382sed 's/^/| /' conftest.$ac_ext >&5
22383
64ff59ba 22384 { { echo "$as_me:$LINENO: error: Cannot find function res_query" >&5
d9898ee8 22385echo "$as_me: error: Cannot find function res_query" >&2;}
22386 { (exit 1); exit 1; }; }
22387fi
64ff59ba 22388
22389rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 22390 conftest$ac_exeext conftest.$ac_ext
22391
22392fi
64ff59ba 22393
22394rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 22395 conftest$ac_exeext conftest.$ac_ext
22396
64ff59ba 22397 { echo "$as_me:$LINENO: checking for ber_scanf in -llber" >&5
22398echo $ECHO_N "checking for ber_scanf in -llber... $ECHO_C" >&6; }
d9898ee8 22399if test "${ac_cv_lib_lber_ber_scanf+set}" = set; then
22400 echo $ECHO_N "(cached) $ECHO_C" >&6
22401else
22402 ac_check_lib_save_LIBS=$LIBS
22403LIBS="-llber $LIBS"
22404cat >conftest.$ac_ext <<_ACEOF
22405/* confdefs.h. */
22406_ACEOF
22407cat confdefs.h >>conftest.$ac_ext
22408cat >>conftest.$ac_ext <<_ACEOF
22409/* end confdefs.h. */
22410
64ff59ba 22411/* Override any GCC internal prototype to avoid an error.
22412 Use char because int might match the return type of a GCC
22413 builtin and then its argument prototype would still apply. */
d9898ee8 22414#ifdef __cplusplus
22415extern "C"
22416#endif
d9898ee8 22417char ber_scanf ();
22418int
22419main ()
22420{
64ff59ba 22421return ber_scanf ();
d9898ee8 22422 ;
22423 return 0;
22424}
22425_ACEOF
22426rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 22427if { (ac_try="$ac_link"
22428case "(($ac_try" in
22429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22430 *) ac_try_echo=$ac_try;;
22431esac
22432eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22433 (eval "$ac_link") 2>conftest.er1
d9898ee8 22434 ac_status=$?
22435 grep -v '^ *+' conftest.er1 >conftest.err
22436 rm -f conftest.er1
22437 cat conftest.err >&5
22438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 22439 (exit $ac_status); } && {
22440 test -z "$ac_c_werror_flag" ||
22441 test ! -s conftest.err
22442 } && test -s conftest$ac_exeext &&
22443 $as_test_x conftest$ac_exeext; then
d9898ee8 22444 ac_cv_lib_lber_ber_scanf=yes
22445else
22446 echo "$as_me: failed program was:" >&5
22447sed 's/^/| /' conftest.$ac_ext >&5
22448
64ff59ba 22449 ac_cv_lib_lber_ber_scanf=no
d9898ee8 22450fi
64ff59ba 22451
22452rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 22453 conftest$ac_exeext conftest.$ac_ext
22454LIBS=$ac_check_lib_save_LIBS
22455fi
64ff59ba 22456{ echo "$as_me:$LINENO: result: $ac_cv_lib_lber_ber_scanf" >&5
22457echo "${ECHO_T}$ac_cv_lib_lber_ber_scanf" >&6; }
d9898ee8 22458if test $ac_cv_lib_lber_ber_scanf = yes; then
22459 LDAPLIBS="-llber $LDAPLIBS" LIBS="-llber $LIBS"
22460fi
22461
64ff59ba 22462 { echo "$as_me:$LINENO: checking for ldap_open in -lldap" >&5
22463echo $ECHO_N "checking for ldap_open in -lldap... $ECHO_C" >&6; }
d9898ee8 22464if test "${ac_cv_lib_ldap_ldap_open+set}" = set; then
22465 echo $ECHO_N "(cached) $ECHO_C" >&6
22466else
22467 ac_check_lib_save_LIBS=$LIBS
22468LIBS="-lldap $LIBS"
22469cat >conftest.$ac_ext <<_ACEOF
22470/* confdefs.h. */
22471_ACEOF
22472cat confdefs.h >>conftest.$ac_ext
22473cat >>conftest.$ac_ext <<_ACEOF
22474/* end confdefs.h. */
22475
64ff59ba 22476/* Override any GCC internal prototype to avoid an error.
22477 Use char because int might match the return type of a GCC
22478 builtin and then its argument prototype would still apply. */
d9898ee8 22479#ifdef __cplusplus
22480extern "C"
22481#endif
d9898ee8 22482char ldap_open ();
22483int
22484main ()
22485{
64ff59ba 22486return ldap_open ();
d9898ee8 22487 ;
22488 return 0;
22489}
22490_ACEOF
22491rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 22492if { (ac_try="$ac_link"
22493case "(($ac_try" in
22494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22495 *) ac_try_echo=$ac_try;;
22496esac
22497eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22498 (eval "$ac_link") 2>conftest.er1
d9898ee8 22499 ac_status=$?
22500 grep -v '^ *+' conftest.er1 >conftest.err
22501 rm -f conftest.er1
22502 cat conftest.err >&5
22503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 22504 (exit $ac_status); } && {
22505 test -z "$ac_c_werror_flag" ||
22506 test ! -s conftest.err
22507 } && test -s conftest$ac_exeext &&
22508 $as_test_x conftest$ac_exeext; then
d9898ee8 22509 ac_cv_lib_ldap_ldap_open=yes
22510else
22511 echo "$as_me: failed program was:" >&5
22512sed 's/^/| /' conftest.$ac_ext >&5
22513
64ff59ba 22514 ac_cv_lib_ldap_ldap_open=no
d9898ee8 22515fi
64ff59ba 22516
22517rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 22518 conftest$ac_exeext conftest.$ac_ext
22519LIBS=$ac_check_lib_save_LIBS
22520fi
64ff59ba 22521{ echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_open" >&5
22522echo "${ECHO_T}$ac_cv_lib_ldap_ldap_open" >&6; }
d9898ee8 22523if test $ac_cv_lib_ldap_ldap_open = yes; then
22524 LDAPLIBS="-lldap $LDAPLIBS" ; LIBS="-lldap $LIBS"
22525fi
22526
64ff59ba 22527 { echo "$as_me:$LINENO: checking for ldap_search_st" >&5
22528echo $ECHO_N "checking for ldap_search_st... $ECHO_C" >&6; }
d9898ee8 22529if test "${ac_cv_func_ldap_search_st+set}" = set; then
22530 echo $ECHO_N "(cached) $ECHO_C" >&6
22531else
22532 cat >conftest.$ac_ext <<_ACEOF
22533/* confdefs.h. */
22534_ACEOF
22535cat confdefs.h >>conftest.$ac_ext
22536cat >>conftest.$ac_ext <<_ACEOF
22537/* end confdefs.h. */
22538/* Define ldap_search_st to an innocuous variant, in case <limits.h> declares ldap_search_st.
22539 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22540#define ldap_search_st innocuous_ldap_search_st
22541
22542/* System header to define __stub macros and hopefully few prototypes,
22543 which can conflict with char ldap_search_st (); below.
22544 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22545 <limits.h> exists even on freestanding compilers. */
22546
22547#ifdef __STDC__
22548# include <limits.h>
22549#else
22550# include <assert.h>
22551#endif
22552
22553#undef ldap_search_st
22554
64ff59ba 22555/* Override any GCC internal prototype to avoid an error.
22556 Use char because int might match the return type of a GCC
22557 builtin and then its argument prototype would still apply. */
d9898ee8 22558#ifdef __cplusplus
22559extern "C"
d9898ee8 22560#endif
d9898ee8 22561char ldap_search_st ();
22562/* The GNU C library defines this for functions which it implements
22563 to always fail with ENOSYS. Some functions are actually named
22564 something starting with __ and the normal name is an alias. */
64ff59ba 22565#if defined __stub_ldap_search_st || defined __stub___ldap_search_st
d9898ee8 22566choke me
d9898ee8 22567#endif
22568
22569int
22570main ()
22571{
64ff59ba 22572return ldap_search_st ();
d9898ee8 22573 ;
22574 return 0;
22575}
22576_ACEOF
22577rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 22578if { (ac_try="$ac_link"
22579case "(($ac_try" in
22580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22581 *) ac_try_echo=$ac_try;;
22582esac
22583eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22584 (eval "$ac_link") 2>conftest.er1
d9898ee8 22585 ac_status=$?
22586 grep -v '^ *+' conftest.er1 >conftest.err
22587 rm -f conftest.er1
22588 cat conftest.err >&5
22589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 22590 (exit $ac_status); } && {
22591 test -z "$ac_c_werror_flag" ||
22592 test ! -s conftest.err
22593 } && test -s conftest$ac_exeext &&
22594 $as_test_x conftest$ac_exeext; then
d9898ee8 22595 ac_cv_func_ldap_search_st=yes
22596else
22597 echo "$as_me: failed program was:" >&5
22598sed 's/^/| /' conftest.$ac_ext >&5
22599
64ff59ba 22600 ac_cv_func_ldap_search_st=no
d9898ee8 22601fi
64ff59ba 22602
22603rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 22604 conftest$ac_exeext conftest.$ac_ext
22605fi
64ff59ba 22606{ echo "$as_me:$LINENO: result: $ac_cv_func_ldap_search_st" >&5
22607echo "${ECHO_T}$ac_cv_func_ldap_search_st" >&6; }
d9898ee8 22608if test $ac_cv_func_ldap_search_st = yes; then
22609 HAVE_LDAP=1
22610else
22611 HAVE_LDAP=0
22612fi
22613
64ff59ba 22614 { echo "$as_me:$LINENO: checking for ldap_start_tls_s" >&5
22615echo $ECHO_N "checking for ldap_start_tls_s... $ECHO_C" >&6; }
d9898ee8 22616if test "${ac_cv_func_ldap_start_tls_s+set}" = set; then
22617 echo $ECHO_N "(cached) $ECHO_C" >&6
22618else
22619 cat >conftest.$ac_ext <<_ACEOF
22620/* confdefs.h. */
22621_ACEOF
22622cat confdefs.h >>conftest.$ac_ext
22623cat >>conftest.$ac_ext <<_ACEOF
22624/* end confdefs.h. */
22625/* Define ldap_start_tls_s to an innocuous variant, in case <limits.h> declares ldap_start_tls_s.
22626 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22627#define ldap_start_tls_s innocuous_ldap_start_tls_s
22628
22629/* System header to define __stub macros and hopefully few prototypes,
22630 which can conflict with char ldap_start_tls_s (); below.
22631 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22632 <limits.h> exists even on freestanding compilers. */
22633
22634#ifdef __STDC__
22635# include <limits.h>
22636#else
22637# include <assert.h>
22638#endif
22639
22640#undef ldap_start_tls_s
22641
64ff59ba 22642/* Override any GCC internal prototype to avoid an error.
22643 Use char because int might match the return type of a GCC
22644 builtin and then its argument prototype would still apply. */
d9898ee8 22645#ifdef __cplusplus
22646extern "C"
d9898ee8 22647#endif
d9898ee8 22648char ldap_start_tls_s ();
22649/* The GNU C library defines this for functions which it implements
22650 to always fail with ENOSYS. Some functions are actually named
22651 something starting with __ and the normal name is an alias. */
64ff59ba 22652#if defined __stub_ldap_start_tls_s || defined __stub___ldap_start_tls_s
d9898ee8 22653choke me
d9898ee8 22654#endif
22655
22656int
22657main ()
22658{
64ff59ba 22659return ldap_start_tls_s ();
d9898ee8 22660 ;
22661 return 0;
22662}
22663_ACEOF
22664rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 22665if { (ac_try="$ac_link"
22666case "(($ac_try" in
22667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22668 *) ac_try_echo=$ac_try;;
22669esac
22670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22671 (eval "$ac_link") 2>conftest.er1
d9898ee8 22672 ac_status=$?
22673 grep -v '^ *+' conftest.er1 >conftest.err
22674 rm -f conftest.er1
22675 cat conftest.err >&5
22676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 22677 (exit $ac_status); } && {
22678 test -z "$ac_c_werror_flag" ||
22679 test ! -s conftest.err
22680 } && test -s conftest$ac_exeext &&
22681 $as_test_x conftest$ac_exeext; then
d9898ee8 22682 ac_cv_func_ldap_start_tls_s=yes
22683else
22684 echo "$as_me: failed program was:" >&5
22685sed 's/^/| /' conftest.$ac_ext >&5
22686
64ff59ba 22687 ac_cv_func_ldap_start_tls_s=no
d9898ee8 22688fi
64ff59ba 22689
22690rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 22691 conftest$ac_exeext conftest.$ac_ext
22692fi
64ff59ba 22693{ echo "$as_me:$LINENO: result: $ac_cv_func_ldap_start_tls_s" >&5
22694echo "${ECHO_T}$ac_cv_func_ldap_start_tls_s" >&6; }
d9898ee8 22695if test $ac_cv_func_ldap_start_tls_s = yes; then
22696 HAVE_LDAP_TLS=1
22697else
22698 HAVE_LDAP_TLS=0
22699fi
22700
64ff59ba 22701 { echo "$as_me:$LINENO: checking for ldap_result2error" >&5
22702echo $ECHO_N "checking for ldap_result2error... $ECHO_C" >&6; }
d9898ee8 22703if test "${ac_cv_func_ldap_result2error+set}" = set; then
22704 echo $ECHO_N "(cached) $ECHO_C" >&6
22705else
22706 cat >conftest.$ac_ext <<_ACEOF
22707/* confdefs.h. */
22708_ACEOF
22709cat confdefs.h >>conftest.$ac_ext
22710cat >>conftest.$ac_ext <<_ACEOF
22711/* end confdefs.h. */
22712/* Define ldap_result2error to an innocuous variant, in case <limits.h> declares ldap_result2error.
22713 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22714#define ldap_result2error innocuous_ldap_result2error
22715
22716/* System header to define __stub macros and hopefully few prototypes,
22717 which can conflict with char ldap_result2error (); below.
22718 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22719 <limits.h> exists even on freestanding compilers. */
22720
22721#ifdef __STDC__
22722# include <limits.h>
22723#else
22724# include <assert.h>
22725#endif
22726
22727#undef ldap_result2error
22728
64ff59ba 22729/* Override any GCC internal prototype to avoid an error.
22730 Use char because int might match the return type of a GCC
22731 builtin and then its argument prototype would still apply. */
d9898ee8 22732#ifdef __cplusplus
22733extern "C"
d9898ee8 22734#endif
d9898ee8 22735char ldap_result2error ();
22736/* The GNU C library defines this for functions which it implements
22737 to always fail with ENOSYS. Some functions are actually named
22738 something starting with __ and the normal name is an alias. */
64ff59ba 22739#if defined __stub_ldap_result2error || defined __stub___ldap_result2error
d9898ee8 22740choke me
d9898ee8 22741#endif
22742
22743int
22744main ()
22745{
64ff59ba 22746return ldap_result2error ();
d9898ee8 22747 ;
22748 return 0;
22749}
22750_ACEOF
22751rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 22752if { (ac_try="$ac_link"
22753case "(($ac_try" in
22754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22755 *) ac_try_echo=$ac_try;;
22756esac
22757eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22758 (eval "$ac_link") 2>conftest.er1
d9898ee8 22759 ac_status=$?
22760 grep -v '^ *+' conftest.er1 >conftest.err
22761 rm -f conftest.er1
22762 cat conftest.err >&5
22763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 22764 (exit $ac_status); } && {
22765 test -z "$ac_c_werror_flag" ||
22766 test ! -s conftest.err
22767 } && test -s conftest$ac_exeext &&
22768 $as_test_x conftest$ac_exeext; then
d9898ee8 22769 ac_cv_func_ldap_result2error=yes
22770else
22771 echo "$as_me: failed program was:" >&5
22772sed 's/^/| /' conftest.$ac_ext >&5
22773
64ff59ba 22774 ac_cv_func_ldap_result2error=no
d9898ee8 22775fi
64ff59ba 22776
22777rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 22778 conftest$ac_exeext conftest.$ac_ext
22779fi
64ff59ba 22780{ echo "$as_me:$LINENO: result: $ac_cv_func_ldap_result2error" >&5
22781echo "${ECHO_T}$ac_cv_func_ldap_result2error" >&6; }
d9898ee8 22782if test $ac_cv_func_ldap_result2error = yes; then
22783 HAVE_LDAP_RESULT2ERROR=1
22784else
22785 HAVE_LDAP_RESULT2ERROR=0
22786fi
22787
64ff59ba 22788 { echo "$as_me:$LINENO: checking for ldap_parse_result" >&5
22789echo $ECHO_N "checking for ldap_parse_result... $ECHO_C" >&6; }
d9898ee8 22790if test "${ac_cv_func_ldap_parse_result+set}" = set; then
22791 echo $ECHO_N "(cached) $ECHO_C" >&6
22792else
22793 cat >conftest.$ac_ext <<_ACEOF
22794/* confdefs.h. */
22795_ACEOF
22796cat confdefs.h >>conftest.$ac_ext
22797cat >>conftest.$ac_ext <<_ACEOF
22798/* end confdefs.h. */
22799/* Define ldap_parse_result to an innocuous variant, in case <limits.h> declares ldap_parse_result.
22800 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22801#define ldap_parse_result innocuous_ldap_parse_result
22802
22803/* System header to define __stub macros and hopefully few prototypes,
22804 which can conflict with char ldap_parse_result (); below.
22805 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22806 <limits.h> exists even on freestanding compilers. */
22807
22808#ifdef __STDC__
22809# include <limits.h>
22810#else
22811# include <assert.h>
22812#endif
22813
22814#undef ldap_parse_result
22815
64ff59ba 22816/* Override any GCC internal prototype to avoid an error.
22817 Use char because int might match the return type of a GCC
22818 builtin and then its argument prototype would still apply. */
d9898ee8 22819#ifdef __cplusplus
22820extern "C"
d9898ee8 22821#endif
d9898ee8 22822char ldap_parse_result ();
22823/* The GNU C library defines this for functions which it implements
22824 to always fail with ENOSYS. Some functions are actually named
22825 something starting with __ and the normal name is an alias. */
64ff59ba 22826#if defined __stub_ldap_parse_result || defined __stub___ldap_parse_result
d9898ee8 22827choke me
d9898ee8 22828#endif
22829
22830int
22831main ()
22832{
64ff59ba 22833return ldap_parse_result ();
d9898ee8 22834 ;
22835 return 0;
22836}
22837_ACEOF
22838rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 22839if { (ac_try="$ac_link"
22840case "(($ac_try" in
22841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22842 *) ac_try_echo=$ac_try;;
22843esac
22844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22845 (eval "$ac_link") 2>conftest.er1
d9898ee8 22846 ac_status=$?
22847 grep -v '^ *+' conftest.er1 >conftest.err
22848 rm -f conftest.er1
22849 cat conftest.err >&5
22850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 22851 (exit $ac_status); } && {
22852 test -z "$ac_c_werror_flag" ||
22853 test ! -s conftest.err
22854 } && test -s conftest$ac_exeext &&
22855 $as_test_x conftest$ac_exeext; then
d9898ee8 22856 ac_cv_func_ldap_parse_result=yes
22857else
22858 echo "$as_me: failed program was:" >&5
22859sed 's/^/| /' conftest.$ac_ext >&5
22860
64ff59ba 22861 ac_cv_func_ldap_parse_result=no
d9898ee8 22862fi
64ff59ba 22863
22864rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 22865 conftest$ac_exeext conftest.$ac_ext
22866fi
64ff59ba 22867{ echo "$as_me:$LINENO: result: $ac_cv_func_ldap_parse_result" >&5
22868echo "${ECHO_T}$ac_cv_func_ldap_parse_result" >&6; }
d9898ee8 22869if test $ac_cv_func_ldap_parse_result = yes; then
22870 HAVE_LDAP_PARSE_RESULT=1
22871else
22872 HAVE_LDAP_PARSE_RESULT=0
22873fi
22874
22875 LIBS="$saveLIBS"
22876fi
22877
22878
64ff59ba 22879# Check whether --with-authldaprc was given.
d9898ee8 22880if test "${with_authldaprc+set}" = set; then
64ff59ba 22881 withval=$with_authldaprc; authldaprc="$withval"
d9898ee8 22882else
22883 authldaprc="$pkgconfdir/authldaprc"
64ff59ba 22884fi
22885
d9898ee8 22886
22887
22888LIBAUTHLDAP=""
22889if test "$HAVE_LDAP" = 1
22890then
22891 LIBAUTHLDAP="libauthldap.la"
22892else
22893 authldaprc=""
22894fi
22895
22896
22897
64ff59ba 22898 if test "$HAVE_LDAP" = 1; then
d9898ee8 22899 HAVE_LDAP_TRUE=
22900 HAVE_LDAP_FALSE='#'
22901else
22902 HAVE_LDAP_TRUE='#'
22903 HAVE_LDAP_FALSE=
22904fi
22905
22906
22907cat >>confdefs.h <<_ACEOF
22908#define HAVE_LDAP_TLS $HAVE_LDAP_TLS
22909_ACEOF
22910
22911
22912cat >>confdefs.h <<_ACEOF
22913#define HAVE_LDAP_RESULT2ERROR $HAVE_LDAP_RESULT2ERROR
22914_ACEOF
22915
22916
22917cat >>confdefs.h <<_ACEOF
22918#define HAVE_LDAP_PARSE_RESULT $HAVE_LDAP_PARSE_RESULT
22919_ACEOF
22920
22921
22922
22923
22924
64ff59ba 22925# Check whether --with-authpwd was given.
d9898ee8 22926if test "${with_authpwd+set}" = set; then
64ff59ba 22927 withval=$with_authpwd; doauthpwd="$withval"
d9898ee8 22928else
22929 doauthpwd="yes"
22930 test "$HAVE_PAM" = 1 && doauthpwd="no"
22931 test "$HAVE_LDAP" = 1 && doauthpwd="no"
22932
64ff59ba 22933fi
22934
d9898ee8 22935
22936HAVE_PWD=1
22937if test "$doauthpwd" = "no"
22938then
22939 HAVE_PWD=0
22940fi
22941
22942for ac_func in endpwent
22943do
22944as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
64ff59ba 22945{ echo "$as_me:$LINENO: checking for $ac_func" >&5
22946echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22947if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 22948 echo $ECHO_N "(cached) $ECHO_C" >&6
22949else
22950 cat >conftest.$ac_ext <<_ACEOF
22951/* confdefs.h. */
22952_ACEOF
22953cat confdefs.h >>conftest.$ac_ext
22954cat >>conftest.$ac_ext <<_ACEOF
22955/* end confdefs.h. */
22956/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22957 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22958#define $ac_func innocuous_$ac_func
22959
22960/* System header to define __stub macros and hopefully few prototypes,
22961 which can conflict with char $ac_func (); below.
22962 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22963 <limits.h> exists even on freestanding compilers. */
22964
22965#ifdef __STDC__
22966# include <limits.h>
22967#else
22968# include <assert.h>
22969#endif
22970
22971#undef $ac_func
22972
64ff59ba 22973/* Override any GCC internal prototype to avoid an error.
22974 Use char because int might match the return type of a GCC
22975 builtin and then its argument prototype would still apply. */
d9898ee8 22976#ifdef __cplusplus
22977extern "C"
d9898ee8 22978#endif
d9898ee8 22979char $ac_func ();
22980/* The GNU C library defines this for functions which it implements
22981 to always fail with ENOSYS. Some functions are actually named
22982 something starting with __ and the normal name is an alias. */
64ff59ba 22983#if defined __stub_$ac_func || defined __stub___$ac_func
d9898ee8 22984choke me
d9898ee8 22985#endif
22986
22987int
22988main ()
22989{
64ff59ba 22990return $ac_func ();
d9898ee8 22991 ;
22992 return 0;
22993}
22994_ACEOF
22995rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 22996if { (ac_try="$ac_link"
22997case "(($ac_try" in
22998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22999 *) ac_try_echo=$ac_try;;
23000esac
23001eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23002 (eval "$ac_link") 2>conftest.er1
d9898ee8 23003 ac_status=$?
23004 grep -v '^ *+' conftest.er1 >conftest.err
23005 rm -f conftest.er1
23006 cat conftest.err >&5
23007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 23008 (exit $ac_status); } && {
23009 test -z "$ac_c_werror_flag" ||
23010 test ! -s conftest.err
23011 } && test -s conftest$ac_exeext &&
23012 $as_test_x conftest$ac_exeext; then
d9898ee8 23013 eval "$as_ac_var=yes"
23014else
23015 echo "$as_me: failed program was:" >&5
23016sed 's/^/| /' conftest.$ac_ext >&5
23017
64ff59ba 23018 eval "$as_ac_var=no"
d9898ee8 23019fi
64ff59ba 23020
23021rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 23022 conftest$ac_exeext conftest.$ac_ext
23023fi
64ff59ba 23024ac_res=`eval echo '${'$as_ac_var'}'`
23025 { echo "$as_me:$LINENO: result: $ac_res" >&5
23026echo "${ECHO_T}$ac_res" >&6; }
d9898ee8 23027if test `eval echo '${'$as_ac_var'}'` = yes; then
23028 cat >>confdefs.h <<_ACEOF
23029#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23030_ACEOF
23031
23032fi
23033done
23034
23035
23036
23037
23038
23039
64ff59ba 23040# Check whether --with-authshadow was given.
d9898ee8 23041if test "${with_authshadow+set}" = set; then
64ff59ba 23042 withval=$with_authshadow; doauthshadow="$withval"
d9898ee8 23043else
23044 doauthshadow="yes"
23045 test "$HAVE_PAM" = 1 && doauthshadow="no"
23046 test "$HAVE_LDAP" = 1 && doauthshadow="no"
64ff59ba 23047fi
23048
d9898ee8 23049
23050
23051for ac_header in shadow.h
23052do
23053as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
64ff59ba 23054if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23055 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23056echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23057if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 23058 echo $ECHO_N "(cached) $ECHO_C" >&6
23059fi
64ff59ba 23060ac_res=`eval echo '${'$as_ac_Header'}'`
23061 { echo "$as_me:$LINENO: result: $ac_res" >&5
23062echo "${ECHO_T}$ac_res" >&6; }
d9898ee8 23063else
23064 # Is the header compilable?
64ff59ba 23065{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
23066echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
d9898ee8 23067cat >conftest.$ac_ext <<_ACEOF
23068/* confdefs.h. */
23069_ACEOF
23070cat confdefs.h >>conftest.$ac_ext
23071cat >>conftest.$ac_ext <<_ACEOF
23072/* end confdefs.h. */
23073$ac_includes_default
23074#include <$ac_header>
23075_ACEOF
23076rm -f conftest.$ac_objext
64ff59ba 23077if { (ac_try="$ac_compile"
23078case "(($ac_try" in
23079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23080 *) ac_try_echo=$ac_try;;
23081esac
23082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23083 (eval "$ac_compile") 2>conftest.er1
d9898ee8 23084 ac_status=$?
23085 grep -v '^ *+' conftest.er1 >conftest.err
23086 rm -f conftest.er1
23087 cat conftest.err >&5
23088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 23089 (exit $ac_status); } && {
23090 test -z "$ac_c_werror_flag" ||
23091 test ! -s conftest.err
23092 } && test -s conftest.$ac_objext; then
d9898ee8 23093 ac_header_compiler=yes
23094else
23095 echo "$as_me: failed program was:" >&5
23096sed 's/^/| /' conftest.$ac_ext >&5
23097
64ff59ba 23098 ac_header_compiler=no
d9898ee8 23099fi
64ff59ba 23100
23101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23102{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23103echo "${ECHO_T}$ac_header_compiler" >&6; }
d9898ee8 23104
23105# Is the header present?
64ff59ba 23106{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
23107echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
d9898ee8 23108cat >conftest.$ac_ext <<_ACEOF
23109/* confdefs.h. */
23110_ACEOF
23111cat confdefs.h >>conftest.$ac_ext
23112cat >>conftest.$ac_ext <<_ACEOF
23113/* end confdefs.h. */
23114#include <$ac_header>
23115_ACEOF
64ff59ba 23116if { (ac_try="$ac_cpp conftest.$ac_ext"
23117case "(($ac_try" in
23118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23119 *) ac_try_echo=$ac_try;;
23120esac
23121eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23122 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 23123 ac_status=$?
23124 grep -v '^ *+' conftest.er1 >conftest.err
23125 rm -f conftest.er1
23126 cat conftest.err >&5
23127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 23128 (exit $ac_status); } >/dev/null && {
23129 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23130 test ! -s conftest.err
23131 }; then
d9898ee8 23132 ac_header_preproc=yes
23133else
23134 echo "$as_me: failed program was:" >&5
23135sed 's/^/| /' conftest.$ac_ext >&5
23136
23137 ac_header_preproc=no
23138fi
64ff59ba 23139
d9898ee8 23140rm -f conftest.err conftest.$ac_ext
64ff59ba 23141{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23142echo "${ECHO_T}$ac_header_preproc" >&6; }
d9898ee8 23143
23144# So? What about this header?
23145case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23146 yes:no: )
23147 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23148echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23149 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23150echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23151 ac_header_preproc=yes
23152 ;;
23153 no:yes:* )
23154 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23155echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23156 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23157echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23158 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23159echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23160 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23161echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23162 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23163echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23164 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23165echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
64ff59ba 23166 ( cat <<\_ASBOX
d9898ee8 23167## -------------------------------------------------- ##
23168## Report this to courier-users@lists.sourceforge.net ##
23169## -------------------------------------------------- ##
23170_ASBOX
64ff59ba 23171 ) | sed "s/^/$as_me: WARNING: /" >&2
d9898ee8 23172 ;;
23173esac
64ff59ba 23174{ echo "$as_me:$LINENO: checking for $ac_header" >&5
23175echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23176if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 23177 echo $ECHO_N "(cached) $ECHO_C" >&6
23178else
23179 eval "$as_ac_Header=\$ac_header_preproc"
23180fi
64ff59ba 23181ac_res=`eval echo '${'$as_ac_Header'}'`
23182 { echo "$as_me:$LINENO: result: $ac_res" >&5
23183echo "${ECHO_T}$ac_res" >&6; }
d9898ee8 23184
23185fi
23186if test `eval echo '${'$as_ac_Header'}'` = yes; then
23187 cat >>confdefs.h <<_ACEOF
23188#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23189_ACEOF
23190
23191fi
23192
23193done
23194
23195saveLIBS="$LIBS"
23196SHADOWLIBS=""
64ff59ba 23197{ echo "$as_me:$LINENO: checking for getspent in -lshadow" >&5
23198echo $ECHO_N "checking for getspent in -lshadow... $ECHO_C" >&6; }
d9898ee8 23199if test "${ac_cv_lib_shadow_getspent+set}" = set; then
23200 echo $ECHO_N "(cached) $ECHO_C" >&6
23201else
23202 ac_check_lib_save_LIBS=$LIBS
23203LIBS="-lshadow $LIBS"
23204cat >conftest.$ac_ext <<_ACEOF
23205/* confdefs.h. */
23206_ACEOF
23207cat confdefs.h >>conftest.$ac_ext
23208cat >>conftest.$ac_ext <<_ACEOF
23209/* end confdefs.h. */
23210
64ff59ba 23211/* Override any GCC internal prototype to avoid an error.
23212 Use char because int might match the return type of a GCC
23213 builtin and then its argument prototype would still apply. */
d9898ee8 23214#ifdef __cplusplus
23215extern "C"
23216#endif
d9898ee8 23217char getspent ();
23218int
23219main ()
23220{
64ff59ba 23221return getspent ();
d9898ee8 23222 ;
23223 return 0;
23224}
23225_ACEOF
23226rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 23227if { (ac_try="$ac_link"
23228case "(($ac_try" in
23229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23230 *) ac_try_echo=$ac_try;;
23231esac
23232eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23233 (eval "$ac_link") 2>conftest.er1
d9898ee8 23234 ac_status=$?
23235 grep -v '^ *+' conftest.er1 >conftest.err
23236 rm -f conftest.er1
23237 cat conftest.err >&5
23238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 23239 (exit $ac_status); } && {
23240 test -z "$ac_c_werror_flag" ||
23241 test ! -s conftest.err
23242 } && test -s conftest$ac_exeext &&
23243 $as_test_x conftest$ac_exeext; then
d9898ee8 23244 ac_cv_lib_shadow_getspent=yes
23245else
23246 echo "$as_me: failed program was:" >&5
23247sed 's/^/| /' conftest.$ac_ext >&5
23248
64ff59ba 23249 ac_cv_lib_shadow_getspent=no
d9898ee8 23250fi
64ff59ba 23251
23252rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 23253 conftest$ac_exeext conftest.$ac_ext
23254LIBS=$ac_check_lib_save_LIBS
23255fi
64ff59ba 23256{ echo "$as_me:$LINENO: result: $ac_cv_lib_shadow_getspent" >&5
23257echo "${ECHO_T}$ac_cv_lib_shadow_getspent" >&6; }
d9898ee8 23258if test $ac_cv_lib_shadow_getspent = yes; then
23259 SHADOWLIBS="-lshadow" ; LIBS="-lshadow $LIBS"
23260fi
23261
23262
23263
23264for ac_func in endspent getspent
23265do
23266as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
64ff59ba 23267{ echo "$as_me:$LINENO: checking for $ac_func" >&5
23268echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23269if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 23270 echo $ECHO_N "(cached) $ECHO_C" >&6
23271else
23272 cat >conftest.$ac_ext <<_ACEOF
23273/* confdefs.h. */
23274_ACEOF
23275cat confdefs.h >>conftest.$ac_ext
23276cat >>conftest.$ac_ext <<_ACEOF
23277/* end confdefs.h. */
23278/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23279 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23280#define $ac_func innocuous_$ac_func
23281
23282/* System header to define __stub macros and hopefully few prototypes,
23283 which can conflict with char $ac_func (); below.
23284 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23285 <limits.h> exists even on freestanding compilers. */
23286
23287#ifdef __STDC__
23288# include <limits.h>
23289#else
23290# include <assert.h>
23291#endif
23292
23293#undef $ac_func
23294
64ff59ba 23295/* Override any GCC internal prototype to avoid an error.
23296 Use char because int might match the return type of a GCC
23297 builtin and then its argument prototype would still apply. */
d9898ee8 23298#ifdef __cplusplus
23299extern "C"
d9898ee8 23300#endif
d9898ee8 23301char $ac_func ();
23302/* The GNU C library defines this for functions which it implements
23303 to always fail with ENOSYS. Some functions are actually named
23304 something starting with __ and the normal name is an alias. */
64ff59ba 23305#if defined __stub_$ac_func || defined __stub___$ac_func
d9898ee8 23306choke me
d9898ee8 23307#endif
23308
23309int
23310main ()
23311{
64ff59ba 23312return $ac_func ();
d9898ee8 23313 ;
23314 return 0;
23315}
23316_ACEOF
23317rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 23318if { (ac_try="$ac_link"
23319case "(($ac_try" in
23320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23321 *) ac_try_echo=$ac_try;;
23322esac
23323eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23324 (eval "$ac_link") 2>conftest.er1
d9898ee8 23325 ac_status=$?
23326 grep -v '^ *+' conftest.er1 >conftest.err
23327 rm -f conftest.er1
23328 cat conftest.err >&5
23329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 23330 (exit $ac_status); } && {
23331 test -z "$ac_c_werror_flag" ||
23332 test ! -s conftest.err
23333 } && test -s conftest$ac_exeext &&
23334 $as_test_x conftest$ac_exeext; then
d9898ee8 23335 eval "$as_ac_var=yes"
23336else
23337 echo "$as_me: failed program was:" >&5
23338sed 's/^/| /' conftest.$ac_ext >&5
23339
64ff59ba 23340 eval "$as_ac_var=no"
d9898ee8 23341fi
64ff59ba 23342
23343rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 23344 conftest$ac_exeext conftest.$ac_ext
23345fi
64ff59ba 23346ac_res=`eval echo '${'$as_ac_var'}'`
23347 { echo "$as_me:$LINENO: result: $ac_res" >&5
23348echo "${ECHO_T}$ac_res" >&6; }
d9898ee8 23349if test `eval echo '${'$as_ac_var'}'` = yes; then
23350 cat >>confdefs.h <<_ACEOF
23351#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23352_ACEOF
23353
23354fi
23355done
23356
23357LIBS="$saveLIBS"
23358
23359if test "$doauthshadow" = "no"
23360then
23361 HAVE_SHADOW=0
23362else
23363
23364 saveLIBS="$LIBS"
23365
64ff59ba 23366{ echo "$as_me:$LINENO: checking for getspent in -lshadow" >&5
23367echo $ECHO_N "checking for getspent in -lshadow... $ECHO_C" >&6; }
d9898ee8 23368if test "${ac_cv_lib_shadow_getspent+set}" = set; then
23369 echo $ECHO_N "(cached) $ECHO_C" >&6
23370else
23371 ac_check_lib_save_LIBS=$LIBS
23372LIBS="-lshadow $LIBS"
23373cat >conftest.$ac_ext <<_ACEOF
23374/* confdefs.h. */
23375_ACEOF
23376cat confdefs.h >>conftest.$ac_ext
23377cat >>conftest.$ac_ext <<_ACEOF
23378/* end confdefs.h. */
23379
64ff59ba 23380/* Override any GCC internal prototype to avoid an error.
23381 Use char because int might match the return type of a GCC
23382 builtin and then its argument prototype would still apply. */
d9898ee8 23383#ifdef __cplusplus
23384extern "C"
23385#endif
d9898ee8 23386char getspent ();
23387int
23388main ()
23389{
64ff59ba 23390return getspent ();
d9898ee8 23391 ;
23392 return 0;
23393}
23394_ACEOF
23395rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 23396if { (ac_try="$ac_link"
23397case "(($ac_try" in
23398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23399 *) ac_try_echo=$ac_try;;
23400esac
23401eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23402 (eval "$ac_link") 2>conftest.er1
d9898ee8 23403 ac_status=$?
23404 grep -v '^ *+' conftest.er1 >conftest.err
23405 rm -f conftest.er1
23406 cat conftest.err >&5
23407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 23408 (exit $ac_status); } && {
23409 test -z "$ac_c_werror_flag" ||
23410 test ! -s conftest.err
23411 } && test -s conftest$ac_exeext &&
23412 $as_test_x conftest$ac_exeext; then
d9898ee8 23413 ac_cv_lib_shadow_getspent=yes
23414else
23415 echo "$as_me: failed program was:" >&5
23416sed 's/^/| /' conftest.$ac_ext >&5
23417
64ff59ba 23418 ac_cv_lib_shadow_getspent=no
d9898ee8 23419fi
64ff59ba 23420
23421rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 23422 conftest$ac_exeext conftest.$ac_ext
23423LIBS=$ac_check_lib_save_LIBS
23424fi
64ff59ba 23425{ echo "$as_me:$LINENO: result: $ac_cv_lib_shadow_getspent" >&5
23426echo "${ECHO_T}$ac_cv_lib_shadow_getspent" >&6; }
d9898ee8 23427if test $ac_cv_lib_shadow_getspent = yes; then
23428 cat >>confdefs.h <<_ACEOF
23429#define HAVE_LIBSHADOW 1
23430_ACEOF
23431
23432 LIBS="-lshadow $LIBS"
23433
23434fi
23435
64ff59ba 23436 { echo "$as_me:$LINENO: checking for getspent" >&5
23437echo $ECHO_N "checking for getspent... $ECHO_C" >&6; }
d9898ee8 23438if test "${ac_cv_func_getspent+set}" = set; then
23439 echo $ECHO_N "(cached) $ECHO_C" >&6
23440else
23441 cat >conftest.$ac_ext <<_ACEOF
23442/* confdefs.h. */
23443_ACEOF
23444cat confdefs.h >>conftest.$ac_ext
23445cat >>conftest.$ac_ext <<_ACEOF
23446/* end confdefs.h. */
23447/* Define getspent to an innocuous variant, in case <limits.h> declares getspent.
23448 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23449#define getspent innocuous_getspent
23450
23451/* System header to define __stub macros and hopefully few prototypes,
23452 which can conflict with char getspent (); below.
23453 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23454 <limits.h> exists even on freestanding compilers. */
23455
23456#ifdef __STDC__
23457# include <limits.h>
23458#else
23459# include <assert.h>
23460#endif
23461
23462#undef getspent
23463
64ff59ba 23464/* Override any GCC internal prototype to avoid an error.
23465 Use char because int might match the return type of a GCC
23466 builtin and then its argument prototype would still apply. */
d9898ee8 23467#ifdef __cplusplus
23468extern "C"
d9898ee8 23469#endif
d9898ee8 23470char getspent ();
23471/* The GNU C library defines this for functions which it implements
23472 to always fail with ENOSYS. Some functions are actually named
23473 something starting with __ and the normal name is an alias. */
64ff59ba 23474#if defined __stub_getspent || defined __stub___getspent
d9898ee8 23475choke me
d9898ee8 23476#endif
23477
23478int
23479main ()
23480{
64ff59ba 23481return getspent ();
d9898ee8 23482 ;
23483 return 0;
23484}
23485_ACEOF
23486rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 23487if { (ac_try="$ac_link"
23488case "(($ac_try" in
23489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23490 *) ac_try_echo=$ac_try;;
23491esac
23492eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23493 (eval "$ac_link") 2>conftest.er1
d9898ee8 23494 ac_status=$?
23495 grep -v '^ *+' conftest.er1 >conftest.err
23496 rm -f conftest.er1
23497 cat conftest.err >&5
23498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 23499 (exit $ac_status); } && {
23500 test -z "$ac_c_werror_flag" ||
23501 test ! -s conftest.err
23502 } && test -s conftest$ac_exeext &&
23503 $as_test_x conftest$ac_exeext; then
d9898ee8 23504 ac_cv_func_getspent=yes
23505else
23506 echo "$as_me: failed program was:" >&5
23507sed 's/^/| /' conftest.$ac_ext >&5
23508
64ff59ba 23509 ac_cv_func_getspent=no
d9898ee8 23510fi
64ff59ba 23511
23512rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 23513 conftest$ac_exeext conftest.$ac_ext
23514fi
64ff59ba 23515{ echo "$as_me:$LINENO: result: $ac_cv_func_getspent" >&5
23516echo "${ECHO_T}$ac_cv_func_getspent" >&6; }
d9898ee8 23517if test $ac_cv_func_getspent = yes; then
23518 HAVE_SHADOW=1
23519else
23520 HAVE_SHADOW=0
23521fi
23522
23523 LIBS="$saveLIBS"
23524fi
23525
23526LIBAUTHSHADOW=""
23527if test "$HAVE_SHADOW" = 1
23528then
23529 LIBAUTHSHADOW="libauthshadow.la"
23530fi
23531
23532
23533
23534LIBAUTHPWD=""
23535if test "$HAVE_PWD" = 1
23536then
23537 LIBAUTHPWD="libauthpwd.la"
23538fi
23539
23540
23541
23542
23543
23544
23545
23546vpopmail_home=`$PERL -e '@a=getpwnam("vpopmail"); print "$a[7]";'`
23547
23548
23549
23550
64ff59ba 23551# Check whether --with-authvchkpw was given.
d9898ee8 23552if test "${with_authvchkpw+set}" = set; then
64ff59ba 23553 withval=$with_authvchkpw; doauthvchkpw="$withval"
d9898ee8 23554else
23555 doauthvchkpw=no
23556 if test "$vpopmail_home" != ""
23557 then
23558 doauthvchkpw=yes
23559 fi
64ff59ba 23560fi
23561
d9898ee8 23562
23563if test "$doauthvchkpw" = "no"
23564then
23565 HAVE_VCHKPW=0
23566 vpopmail_home=.
23567else
23568 HAVE_VCHKPW=1
23569
23570
23571 cat <<EOF
23572----------------------------------------------------
23573 NOTE
23574
23575
23576All questions regarding ANY vpopmail-related problems,
23577such as compiling/building failures, or login errors
23578should be referred to the vpopmail mailing list.
23579Vpopmail questions sent to the Courier mailing lists
23580will be IGNORED.
23581----------------------------------------------------
23582\a
23583EOF
23584 sleep 5
23585
23586 if test -f ${vpopmail_home}/etc/lib_deps
23587 then
23588 CFLAGS="`cat ${vpopmail_home}/etc/inc_deps` $CFLAGS"
23589 VPOPMAILLIBS="`cat ${vpopmail_home}/etc/lib_deps`"
23590 else
23591 { { echo "$as_me:$LINENO: error: ${vpopmail_home}/etc/lib_deps does not exist - upgrade vpopmail to the current version or fix the permissions on this file" >&5
23592echo "$as_me: error: ${vpopmail_home}/etc/lib_deps does not exist - upgrade vpopmail to the current version or fix the permissions on this file" >&2;}
23593 { (exit 1); exit 1; }; }
23594 fi
23595fi
23596
23597
23598
23599LIBAUTHVCHKPW=""
23600if test "$HAVE_VCHKPW" = 1
23601then
23602 LIBAUTHVCHKPW="libauthvchkpw.la"
23603 HAVE_VCHKPW="1"
23604
23605
23606 _SAVE_LIBS=$LIBS
23607 LIBS="$VPOPMAILLIBS $CRYPTLIBS $LIBS"
64ff59ba 23608 { echo "$as_me:$LINENO: checking for open_smtp_relay" >&5
23609echo $ECHO_N "checking for open_smtp_relay... $ECHO_C" >&6; }
d9898ee8 23610if test "${ac_cv_func_open_smtp_relay+set}" = set; then
23611 echo $ECHO_N "(cached) $ECHO_C" >&6
23612else
23613 cat >conftest.$ac_ext <<_ACEOF
23614/* confdefs.h. */
23615_ACEOF
23616cat confdefs.h >>conftest.$ac_ext
23617cat >>conftest.$ac_ext <<_ACEOF
23618/* end confdefs.h. */
23619/* Define open_smtp_relay to an innocuous variant, in case <limits.h> declares open_smtp_relay.
23620 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23621#define open_smtp_relay innocuous_open_smtp_relay
23622
23623/* System header to define __stub macros and hopefully few prototypes,
23624 which can conflict with char open_smtp_relay (); below.
23625 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23626 <limits.h> exists even on freestanding compilers. */
23627
23628#ifdef __STDC__
23629# include <limits.h>
23630#else
23631# include <assert.h>
23632#endif
23633
23634#undef open_smtp_relay
23635
64ff59ba 23636/* Override any GCC internal prototype to avoid an error.
23637 Use char because int might match the return type of a GCC
23638 builtin and then its argument prototype would still apply. */
d9898ee8 23639#ifdef __cplusplus
23640extern "C"
d9898ee8 23641#endif
d9898ee8 23642char open_smtp_relay ();
23643/* The GNU C library defines this for functions which it implements
23644 to always fail with ENOSYS. Some functions are actually named
23645 something starting with __ and the normal name is an alias. */
64ff59ba 23646#if defined __stub_open_smtp_relay || defined __stub___open_smtp_relay
d9898ee8 23647choke me
d9898ee8 23648#endif
23649
23650int
23651main ()
23652{
64ff59ba 23653return open_smtp_relay ();
d9898ee8 23654 ;
23655 return 0;
23656}
23657_ACEOF
23658rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 23659if { (ac_try="$ac_link"
23660case "(($ac_try" in
23661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23662 *) ac_try_echo=$ac_try;;
23663esac
23664eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23665 (eval "$ac_link") 2>conftest.er1
d9898ee8 23666 ac_status=$?
23667 grep -v '^ *+' conftest.er1 >conftest.err
23668 rm -f conftest.er1
23669 cat conftest.err >&5
23670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 23671 (exit $ac_status); } && {
23672 test -z "$ac_c_werror_flag" ||
23673 test ! -s conftest.err
23674 } && test -s conftest$ac_exeext &&
23675 $as_test_x conftest$ac_exeext; then
d9898ee8 23676 ac_cv_func_open_smtp_relay=yes
23677else
23678 echo "$as_me: failed program was:" >&5
23679sed 's/^/| /' conftest.$ac_ext >&5
23680
64ff59ba 23681 ac_cv_func_open_smtp_relay=no
d9898ee8 23682fi
64ff59ba 23683
23684rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 23685 conftest$ac_exeext conftest.$ac_ext
23686fi
64ff59ba 23687{ echo "$as_me:$LINENO: result: $ac_cv_func_open_smtp_relay" >&5
23688echo "${ECHO_T}$ac_cv_func_open_smtp_relay" >&6; }
d9898ee8 23689if test $ac_cv_func_open_smtp_relay = yes; then
23690
23691cat >>confdefs.h <<\_ACEOF
23692#define HAVE_OPEN_SMTP_RELAY 1
23693_ACEOF
23694
23695fi
23696
64ff59ba 23697 { echo "$as_me:$LINENO: checking for vset_lastauth" >&5
23698echo $ECHO_N "checking for vset_lastauth... $ECHO_C" >&6; }
d9898ee8 23699if test "${ac_cv_func_vset_lastauth+set}" = set; then
23700 echo $ECHO_N "(cached) $ECHO_C" >&6
23701else
23702 cat >conftest.$ac_ext <<_ACEOF
23703/* confdefs.h. */
23704_ACEOF
23705cat confdefs.h >>conftest.$ac_ext
23706cat >>conftest.$ac_ext <<_ACEOF
23707/* end confdefs.h. */
23708/* Define vset_lastauth to an innocuous variant, in case <limits.h> declares vset_lastauth.
23709 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23710#define vset_lastauth innocuous_vset_lastauth
23711
23712/* System header to define __stub macros and hopefully few prototypes,
23713 which can conflict with char vset_lastauth (); below.
23714 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23715 <limits.h> exists even on freestanding compilers. */
23716
23717#ifdef __STDC__
23718# include <limits.h>
23719#else
23720# include <assert.h>
23721#endif
23722
23723#undef vset_lastauth
23724
64ff59ba 23725/* Override any GCC internal prototype to avoid an error.
23726 Use char because int might match the return type of a GCC
23727 builtin and then its argument prototype would still apply. */
d9898ee8 23728#ifdef __cplusplus
23729extern "C"
d9898ee8 23730#endif
d9898ee8 23731char vset_lastauth ();
23732/* The GNU C library defines this for functions which it implements
23733 to always fail with ENOSYS. Some functions are actually named
23734 something starting with __ and the normal name is an alias. */
64ff59ba 23735#if defined __stub_vset_lastauth || defined __stub___vset_lastauth
d9898ee8 23736choke me
d9898ee8 23737#endif
23738
23739int
23740main ()
23741{
64ff59ba 23742return vset_lastauth ();
d9898ee8 23743 ;
23744 return 0;
23745}
23746_ACEOF
23747rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 23748if { (ac_try="$ac_link"
23749case "(($ac_try" in
23750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23751 *) ac_try_echo=$ac_try;;
23752esac
23753eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23754 (eval "$ac_link") 2>conftest.er1
d9898ee8 23755 ac_status=$?
23756 grep -v '^ *+' conftest.er1 >conftest.err
23757 rm -f conftest.er1
23758 cat conftest.err >&5
23759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 23760 (exit $ac_status); } && {
23761 test -z "$ac_c_werror_flag" ||
23762 test ! -s conftest.err
23763 } && test -s conftest$ac_exeext &&
23764 $as_test_x conftest$ac_exeext; then
d9898ee8 23765 ac_cv_func_vset_lastauth=yes
23766else
23767 echo "$as_me: failed program was:" >&5
23768sed 's/^/| /' conftest.$ac_ext >&5
23769
64ff59ba 23770 ac_cv_func_vset_lastauth=no
d9898ee8 23771fi
64ff59ba 23772
23773rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 23774 conftest$ac_exeext conftest.$ac_ext
23775fi
64ff59ba 23776{ echo "$as_me:$LINENO: result: $ac_cv_func_vset_lastauth" >&5
23777echo "${ECHO_T}$ac_cv_func_vset_lastauth" >&6; }
d9898ee8 23778if test $ac_cv_func_vset_lastauth = yes; then
23779
23780cat >>confdefs.h <<\_ACEOF
23781#define HAVE_VSET_LASTAUTH 1
23782_ACEOF
23783
23784fi
23785
23786 LIBS=$_SAVE_LIBS
23787fi
23788
23789
23790
23791
23792
23793
23794
64ff59ba 23795# Check whether --with-authpgsqlrc was given.
d9898ee8 23796if test "${with_authpgsqlrc+set}" = set; then
64ff59ba 23797 withval=$with_authpgsqlrc; authpgsqlrc="$withval"
d9898ee8 23798else
23799 authpgsqlrc="$pkgconfdir/authpgsqlrc"
64ff59ba 23800fi
d9898ee8 23801
23802
23803
64ff59ba 23804
23805# Check whether --with-authpgsql was given.
d9898ee8 23806if test "${with_authpgsql+set}" = set; then
64ff59ba 23807 withval=$with_authpgsql; doauthpgsql="$withval"
23808fi
23809
d9898ee8 23810
23811for ac_prog in pg_config
23812do
23813 # Extract the first word of "$ac_prog", so it can be a program name with args.
23814set dummy $ac_prog; ac_word=$2
64ff59ba 23815{ echo "$as_me:$LINENO: checking for $ac_word" >&5
23816echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 23817if test "${ac_cv_path_PG_CONFIG+set}" = set; then
23818 echo $ECHO_N "(cached) $ECHO_C" >&6
23819else
23820 case $PG_CONFIG in
23821 [\\/]* | ?:[\\/]*)
23822 ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
23823 ;;
23824 *)
23825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23826for as_dir in $LPATH
23827do
23828 IFS=$as_save_IFS
23829 test -z "$as_dir" && as_dir=.
23830 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 23831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 23832 ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23833 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23834 break 2
23835 fi
23836done
23837done
64ff59ba 23838IFS=$as_save_IFS
d9898ee8 23839
23840 ;;
23841esac
23842fi
23843PG_CONFIG=$ac_cv_path_PG_CONFIG
d9898ee8 23844if test -n "$PG_CONFIG"; then
64ff59ba 23845 { echo "$as_me:$LINENO: result: $PG_CONFIG" >&5
23846echo "${ECHO_T}$PG_CONFIG" >&6; }
d9898ee8 23847else
64ff59ba 23848 { echo "$as_me:$LINENO: result: no" >&5
23849echo "${ECHO_T}no" >&6; }
d9898ee8 23850fi
23851
64ff59ba 23852
d9898ee8 23853 test -n "$PG_CONFIG" && break
23854done
23855test -n "$PG_CONFIG" || PG_CONFIG="pg_config"
23856
23857
23858PGSQL_LIBS="-lpq"
23859
64ff59ba 23860# Check whether --with-pgsql-libs was given.
d9898ee8 23861if test "${with_pgsql_libs+set}" = set; then
64ff59ba 23862 withval=$with_pgsql_libs; PGSQL_LIBS="-L$withval $PGSQL_LIBS"
d9898ee8 23863else
23864 if test -x $PG_CONFIG
23865 then
23866 PGSQL_LIBS="-L`$PG_CONFIG --libdir` $PGSQL_LIBS"
23867 fi
23868
64ff59ba 23869fi
23870
d9898ee8 23871
64ff59ba 23872# Check whether --with-pgsql-includes was given.
d9898ee8 23873if test "${with_pgsql_includes+set}" = set; then
64ff59ba 23874 withval=$with_pgsql_includes; PGSQL_CFLAGS="-I$withval"
d9898ee8 23875else
23876 if test -x $PG_CONFIG
23877 then
23878 PGSQL_CFLAGS="-I`$PG_CONFIG --includedir`"
23879 fi
23880
64ff59ba 23881fi
23882
d9898ee8 23883
23884if test "$doauthpgsql" = ""
23885then
23886 LIBS="$PGSQL_LIBS $LIBS"
64ff59ba 23887 { echo "$as_me:$LINENO: checking for PQsetdbLogin" >&5
23888echo $ECHO_N "checking for PQsetdbLogin... $ECHO_C" >&6; }
d9898ee8 23889if test "${ac_cv_func_PQsetdbLogin+set}" = set; then
23890 echo $ECHO_N "(cached) $ECHO_C" >&6
23891else
23892 cat >conftest.$ac_ext <<_ACEOF
23893/* confdefs.h. */
23894_ACEOF
23895cat confdefs.h >>conftest.$ac_ext
23896cat >>conftest.$ac_ext <<_ACEOF
23897/* end confdefs.h. */
23898/* Define PQsetdbLogin to an innocuous variant, in case <limits.h> declares PQsetdbLogin.
23899 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23900#define PQsetdbLogin innocuous_PQsetdbLogin
23901
23902/* System header to define __stub macros and hopefully few prototypes,
23903 which can conflict with char PQsetdbLogin (); below.
23904 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23905 <limits.h> exists even on freestanding compilers. */
23906
23907#ifdef __STDC__
23908# include <limits.h>
23909#else
23910# include <assert.h>
23911#endif
23912
23913#undef PQsetdbLogin
23914
64ff59ba 23915/* Override any GCC internal prototype to avoid an error.
23916 Use char because int might match the return type of a GCC
23917 builtin and then its argument prototype would still apply. */
d9898ee8 23918#ifdef __cplusplus
23919extern "C"
d9898ee8 23920#endif
d9898ee8 23921char PQsetdbLogin ();
23922/* The GNU C library defines this for functions which it implements
23923 to always fail with ENOSYS. Some functions are actually named
23924 something starting with __ and the normal name is an alias. */
64ff59ba 23925#if defined __stub_PQsetdbLogin || defined __stub___PQsetdbLogin
d9898ee8 23926choke me
d9898ee8 23927#endif
23928
23929int
23930main ()
23931{
64ff59ba 23932return PQsetdbLogin ();
d9898ee8 23933 ;
23934 return 0;
23935}
23936_ACEOF
23937rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 23938if { (ac_try="$ac_link"
23939case "(($ac_try" in
23940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23941 *) ac_try_echo=$ac_try;;
23942esac
23943eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23944 (eval "$ac_link") 2>conftest.er1
d9898ee8 23945 ac_status=$?
23946 grep -v '^ *+' conftest.er1 >conftest.err
23947 rm -f conftest.er1
23948 cat conftest.err >&5
23949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 23950 (exit $ac_status); } && {
23951 test -z "$ac_c_werror_flag" ||
23952 test ! -s conftest.err
23953 } && test -s conftest$ac_exeext &&
23954 $as_test_x conftest$ac_exeext; then
d9898ee8 23955 ac_cv_func_PQsetdbLogin=yes
23956else
23957 echo "$as_me: failed program was:" >&5
23958sed 's/^/| /' conftest.$ac_ext >&5
23959
64ff59ba 23960 ac_cv_func_PQsetdbLogin=no
d9898ee8 23961fi
64ff59ba 23962
23963rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 23964 conftest$ac_exeext conftest.$ac_ext
23965fi
64ff59ba 23966{ echo "$as_me:$LINENO: result: $ac_cv_func_PQsetdbLogin" >&5
23967echo "${ECHO_T}$ac_cv_func_PQsetdbLogin" >&6; }
d9898ee8 23968if test $ac_cv_func_PQsetdbLogin = yes; then
23969 doauthpgsql="yes"
23970
23971fi
23972
23973 LIBS="$saveLIBS"
23974fi
23975
23976if test "$doauthpgsql" != "yes"
23977then
23978 LIBAUTHPGSQL=""
23979 HAVE_AUTHPGSQL=0
23980else
23981 saveLIBS="$LIBS"
23982 LIBS="$PGSQL_LIBS $LIBS"
64ff59ba 23983 { echo "$as_me:$LINENO: checking for PQsetdbLogin" >&5
23984echo $ECHO_N "checking for PQsetdbLogin... $ECHO_C" >&6; }
d9898ee8 23985if test "${ac_cv_func_PQsetdbLogin+set}" = set; then
23986 echo $ECHO_N "(cached) $ECHO_C" >&6
23987else
23988 cat >conftest.$ac_ext <<_ACEOF
23989/* confdefs.h. */
23990_ACEOF
23991cat confdefs.h >>conftest.$ac_ext
23992cat >>conftest.$ac_ext <<_ACEOF
23993/* end confdefs.h. */
23994/* Define PQsetdbLogin to an innocuous variant, in case <limits.h> declares PQsetdbLogin.
23995 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23996#define PQsetdbLogin innocuous_PQsetdbLogin
23997
23998/* System header to define __stub macros and hopefully few prototypes,
23999 which can conflict with char PQsetdbLogin (); below.
24000 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24001 <limits.h> exists even on freestanding compilers. */
24002
24003#ifdef __STDC__
24004# include <limits.h>
24005#else
24006# include <assert.h>
24007#endif
24008
24009#undef PQsetdbLogin
24010
64ff59ba 24011/* Override any GCC internal prototype to avoid an error.
24012 Use char because int might match the return type of a GCC
24013 builtin and then its argument prototype would still apply. */
d9898ee8 24014#ifdef __cplusplus
24015extern "C"
d9898ee8 24016#endif
d9898ee8 24017char PQsetdbLogin ();
24018/* The GNU C library defines this for functions which it implements
24019 to always fail with ENOSYS. Some functions are actually named
24020 something starting with __ and the normal name is an alias. */
64ff59ba 24021#if defined __stub_PQsetdbLogin || defined __stub___PQsetdbLogin
d9898ee8 24022choke me
d9898ee8 24023#endif
24024
24025int
24026main ()
24027{
64ff59ba 24028return PQsetdbLogin ();
d9898ee8 24029 ;
24030 return 0;
24031}
24032_ACEOF
24033rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 24034if { (ac_try="$ac_link"
24035case "(($ac_try" in
24036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24037 *) ac_try_echo=$ac_try;;
24038esac
24039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24040 (eval "$ac_link") 2>conftest.er1
d9898ee8 24041 ac_status=$?
24042 grep -v '^ *+' conftest.er1 >conftest.err
24043 rm -f conftest.er1
24044 cat conftest.err >&5
24045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 24046 (exit $ac_status); } && {
24047 test -z "$ac_c_werror_flag" ||
24048 test ! -s conftest.err
24049 } && test -s conftest$ac_exeext &&
24050 $as_test_x conftest$ac_exeext; then
d9898ee8 24051 ac_cv_func_PQsetdbLogin=yes
24052else
24053 echo "$as_me: failed program was:" >&5
24054sed 's/^/| /' conftest.$ac_ext >&5
24055
64ff59ba 24056 ac_cv_func_PQsetdbLogin=no
d9898ee8 24057fi
64ff59ba 24058
24059rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 24060 conftest$ac_exeext conftest.$ac_ext
24061fi
64ff59ba 24062{ echo "$as_me:$LINENO: result: $ac_cv_func_PQsetdbLogin" >&5
24063echo "${ECHO_T}$ac_cv_func_PQsetdbLogin" >&6; }
d9898ee8 24064if test $ac_cv_func_PQsetdbLogin = yes; then
24065 AUTHPGSQL="authpgsql"
24066 HAVE_AUTHPGSQL=1
24067else
24068 { { echo "$as_me:$LINENO: error: --with-authpgsql specified but no libpq.so" >&5
24069echo "$as_me: error: --with-authpgsql specified but no libpq.so" >&2;}
24070 { (exit 1); exit 1; }; }
24071fi
24072
24073 LIBS="$saveLIBS"
24074 HAVE_AUTHPGSQL=1
24075 CFLAGS="$PGSQL_CFLAGS $CFLAGS"
24076 LIBAUTHPGSQL="libauthpgsql.la"
24077fi
24078
24079
24080
64ff59ba 24081 if test "$HAVE_AUTHPGSQL" = 1; then
d9898ee8 24082 HAVE_AUTHPGSQL_TRUE=
24083 HAVE_AUTHPGSQL_FALSE='#'
24084else
24085 HAVE_AUTHPGSQL_TRUE='#'
24086 HAVE_AUTHPGSQL_FALSE=
24087fi
24088
24089
24090
24091
24092
24093
64ff59ba 24094# Check whether --with-authmysqlrc was given.
d9898ee8 24095if test "${with_authmysqlrc+set}" = set; then
64ff59ba 24096 withval=$with_authmysqlrc; authmysqlrc="$withval"
d9898ee8 24097else
24098 authmysqlrc="$pkgconfdir/authmysqlrc"
64ff59ba 24099fi
24100
d9898ee8 24101
24102
24103
64ff59ba 24104# Check whether --with-authmysql was given.
d9898ee8 24105if test "${with_authmysql+set}" = set; then
64ff59ba 24106 withval=$with_authmysql; doauthmysql="$withval"
24107fi
24108
d9898ee8 24109
64ff59ba 24110# Check whether --with-mysql-libs was given.
d9898ee8 24111if test "${with_mysql_libs+set}" = set; then
64ff59ba 24112 withval=$with_mysql_libs; MYSQL_LIBS="-L$withval -lmysqlclient"
24113
24114fi
d9898ee8 24115
d9898ee8 24116
64ff59ba 24117# Check whether --with-mysql-includes was given.
d9898ee8 24118if test "${with_mysql_includes+set}" = set; then
64ff59ba 24119 withval=$with_mysql_includes; MYSQL_CFLAGS="-I$withval"
24120
24121fi
d9898ee8 24122
d9898ee8 24123
24124for ac_prog in mysql_config
24125do
24126 # Extract the first word of "$ac_prog", so it can be a program name with args.
24127set dummy $ac_prog; ac_word=$2
64ff59ba 24128{ echo "$as_me:$LINENO: checking for $ac_word" >&5
24129echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 24130if test "${ac_cv_path_MYSQL_CONFIG+set}" = set; then
24131 echo $ECHO_N "(cached) $ECHO_C" >&6
24132else
24133 case $MYSQL_CONFIG in
24134 [\\/]* | ?:[\\/]*)
24135 ac_cv_path_MYSQL_CONFIG="$MYSQL_CONFIG" # Let the user override the test with a path.
24136 ;;
24137 *)
24138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24139for as_dir in $LPATH
24140do
24141 IFS=$as_save_IFS
24142 test -z "$as_dir" && as_dir=.
24143 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 24144 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 24145 ac_cv_path_MYSQL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24146 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24147 break 2
24148 fi
24149done
24150done
64ff59ba 24151IFS=$as_save_IFS
d9898ee8 24152
24153 ;;
24154esac
24155fi
24156MYSQL_CONFIG=$ac_cv_path_MYSQL_CONFIG
d9898ee8 24157if test -n "$MYSQL_CONFIG"; then
64ff59ba 24158 { echo "$as_me:$LINENO: result: $MYSQL_CONFIG" >&5
24159echo "${ECHO_T}$MYSQL_CONFIG" >&6; }
d9898ee8 24160else
64ff59ba 24161 { echo "$as_me:$LINENO: result: no" >&5
24162echo "${ECHO_T}no" >&6; }
d9898ee8 24163fi
24164
64ff59ba 24165
d9898ee8 24166 test -n "$MYSQL_CONFIG" && break
24167done
24168test -n "$MYSQL_CONFIG" || MYSQL_CONFIG="mysql_config"
24169
24170
24171if test -x "$MYSQL_CONFIG"
24172then
24173 MYSQL_CFLAGS="`$MYSQL_CONFIG --cflags`"
24174 MYSQL_LIBS="`$MYSQL_CONFIG --libs`"
24175
24176 eval "MYSQL_CFLAGS=\"\`echo $MYSQL_CFLAGS\`\""
24177 eval "MYSQL_LIBS=\"\`echo $MYSQL_LIBS\`\""
24178fi
24179
24180if test "$doauthmysql" = ""
24181then
24182 LIBS="$MYSQL_LIBS $LIBS"
64ff59ba 24183 { echo "$as_me:$LINENO: checking for mysql_connect" >&5
24184echo $ECHO_N "checking for mysql_connect... $ECHO_C" >&6; }
d9898ee8 24185if test "${ac_cv_func_mysql_connect+set}" = set; then
24186 echo $ECHO_N "(cached) $ECHO_C" >&6
24187else
24188 cat >conftest.$ac_ext <<_ACEOF
24189/* confdefs.h. */
24190_ACEOF
24191cat confdefs.h >>conftest.$ac_ext
24192cat >>conftest.$ac_ext <<_ACEOF
24193/* end confdefs.h. */
24194/* Define mysql_connect to an innocuous variant, in case <limits.h> declares mysql_connect.
24195 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24196#define mysql_connect innocuous_mysql_connect
24197
24198/* System header to define __stub macros and hopefully few prototypes,
24199 which can conflict with char mysql_connect (); below.
24200 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24201 <limits.h> exists even on freestanding compilers. */
24202
24203#ifdef __STDC__
24204# include <limits.h>
24205#else
24206# include <assert.h>
24207#endif
24208
24209#undef mysql_connect
24210
64ff59ba 24211/* Override any GCC internal prototype to avoid an error.
24212 Use char because int might match the return type of a GCC
24213 builtin and then its argument prototype would still apply. */
d9898ee8 24214#ifdef __cplusplus
24215extern "C"
d9898ee8 24216#endif
d9898ee8 24217char mysql_connect ();
24218/* The GNU C library defines this for functions which it implements
24219 to always fail with ENOSYS. Some functions are actually named
24220 something starting with __ and the normal name is an alias. */
64ff59ba 24221#if defined __stub_mysql_connect || defined __stub___mysql_connect
d9898ee8 24222choke me
d9898ee8 24223#endif
24224
24225int
24226main ()
24227{
64ff59ba 24228return mysql_connect ();
d9898ee8 24229 ;
24230 return 0;
24231}
24232_ACEOF
24233rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 24234if { (ac_try="$ac_link"
24235case "(($ac_try" in
24236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24237 *) ac_try_echo=$ac_try;;
24238esac
24239eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24240 (eval "$ac_link") 2>conftest.er1
d9898ee8 24241 ac_status=$?
24242 grep -v '^ *+' conftest.er1 >conftest.err
24243 rm -f conftest.er1
24244 cat conftest.err >&5
24245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 24246 (exit $ac_status); } && {
24247 test -z "$ac_c_werror_flag" ||
24248 test ! -s conftest.err
24249 } && test -s conftest$ac_exeext &&
24250 $as_test_x conftest$ac_exeext; then
d9898ee8 24251 ac_cv_func_mysql_connect=yes
24252else
24253 echo "$as_me: failed program was:" >&5
24254sed 's/^/| /' conftest.$ac_ext >&5
24255
64ff59ba 24256 ac_cv_func_mysql_connect=no
d9898ee8 24257fi
64ff59ba 24258
24259rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 24260 conftest$ac_exeext conftest.$ac_ext
24261fi
64ff59ba 24262{ echo "$as_me:$LINENO: result: $ac_cv_func_mysql_connect" >&5
24263echo "${ECHO_T}$ac_cv_func_mysql_connect" >&6; }
d9898ee8 24264if test $ac_cv_func_mysql_connect = yes; then
24265 doauthmysql="yes"
24266
24267fi
24268
64ff59ba 24269 { echo "$as_me:$LINENO: checking for mysql_real_connect" >&5
24270echo $ECHO_N "checking for mysql_real_connect... $ECHO_C" >&6; }
d9898ee8 24271if test "${ac_cv_func_mysql_real_connect+set}" = set; then
24272 echo $ECHO_N "(cached) $ECHO_C" >&6
24273else
24274 cat >conftest.$ac_ext <<_ACEOF
24275/* confdefs.h. */
24276_ACEOF
24277cat confdefs.h >>conftest.$ac_ext
24278cat >>conftest.$ac_ext <<_ACEOF
24279/* end confdefs.h. */
24280/* Define mysql_real_connect to an innocuous variant, in case <limits.h> declares mysql_real_connect.
24281 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24282#define mysql_real_connect innocuous_mysql_real_connect
24283
24284/* System header to define __stub macros and hopefully few prototypes,
24285 which can conflict with char mysql_real_connect (); below.
24286 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24287 <limits.h> exists even on freestanding compilers. */
24288
24289#ifdef __STDC__
24290# include <limits.h>
24291#else
24292# include <assert.h>
24293#endif
24294
24295#undef mysql_real_connect
24296
64ff59ba 24297/* Override any GCC internal prototype to avoid an error.
24298 Use char because int might match the return type of a GCC
24299 builtin and then its argument prototype would still apply. */
d9898ee8 24300#ifdef __cplusplus
24301extern "C"
d9898ee8 24302#endif
d9898ee8 24303char mysql_real_connect ();
24304/* The GNU C library defines this for functions which it implements
24305 to always fail with ENOSYS. Some functions are actually named
24306 something starting with __ and the normal name is an alias. */
64ff59ba 24307#if defined __stub_mysql_real_connect || defined __stub___mysql_real_connect
d9898ee8 24308choke me
d9898ee8 24309#endif
24310
24311int
24312main ()
24313{
64ff59ba 24314return mysql_real_connect ();
d9898ee8 24315 ;
24316 return 0;
24317}
24318_ACEOF
24319rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 24320if { (ac_try="$ac_link"
24321case "(($ac_try" in
24322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24323 *) ac_try_echo=$ac_try;;
24324esac
24325eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24326 (eval "$ac_link") 2>conftest.er1
d9898ee8 24327 ac_status=$?
24328 grep -v '^ *+' conftest.er1 >conftest.err
24329 rm -f conftest.er1
24330 cat conftest.err >&5
24331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 24332 (exit $ac_status); } && {
24333 test -z "$ac_c_werror_flag" ||
24334 test ! -s conftest.err
24335 } && test -s conftest$ac_exeext &&
24336 $as_test_x conftest$ac_exeext; then
d9898ee8 24337 ac_cv_func_mysql_real_connect=yes
24338else
24339 echo "$as_me: failed program was:" >&5
24340sed 's/^/| /' conftest.$ac_ext >&5
24341
64ff59ba 24342 ac_cv_func_mysql_real_connect=no
d9898ee8 24343fi
64ff59ba 24344
24345rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 24346 conftest$ac_exeext conftest.$ac_ext
24347fi
64ff59ba 24348{ echo "$as_me:$LINENO: result: $ac_cv_func_mysql_real_connect" >&5
24349echo "${ECHO_T}$ac_cv_func_mysql_real_connect" >&6; }
d9898ee8 24350if test $ac_cv_func_mysql_real_connect = yes; then
24351 doauthmysql="yes"
24352
24353fi
24354
24355 LIBS="$saveLIBS"
24356fi
24357
24358if test "$doauthmysql" != "yes"
24359then
24360 LIBAUTHMYSQL=""
24361 HAVE_AUTHMYSQL=0
24362else
24363 saveLIBS="$LIBS"
24364 LIBS="$MYSQL_LIBS $LIBS"
64ff59ba 24365 { echo "$as_me:$LINENO: checking for mysql_connect" >&5
24366echo $ECHO_N "checking for mysql_connect... $ECHO_C" >&6; }
d9898ee8 24367if test "${ac_cv_func_mysql_connect+set}" = set; then
24368 echo $ECHO_N "(cached) $ECHO_C" >&6
24369else
24370 cat >conftest.$ac_ext <<_ACEOF
24371/* confdefs.h. */
24372_ACEOF
24373cat confdefs.h >>conftest.$ac_ext
24374cat >>conftest.$ac_ext <<_ACEOF
24375/* end confdefs.h. */
24376/* Define mysql_connect to an innocuous variant, in case <limits.h> declares mysql_connect.
24377 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24378#define mysql_connect innocuous_mysql_connect
24379
24380/* System header to define __stub macros and hopefully few prototypes,
24381 which can conflict with char mysql_connect (); below.
24382 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24383 <limits.h> exists even on freestanding compilers. */
24384
24385#ifdef __STDC__
24386# include <limits.h>
24387#else
24388# include <assert.h>
24389#endif
24390
24391#undef mysql_connect
24392
64ff59ba 24393/* Override any GCC internal prototype to avoid an error.
24394 Use char because int might match the return type of a GCC
24395 builtin and then its argument prototype would still apply. */
d9898ee8 24396#ifdef __cplusplus
24397extern "C"
d9898ee8 24398#endif
d9898ee8 24399char mysql_connect ();
24400/* The GNU C library defines this for functions which it implements
24401 to always fail with ENOSYS. Some functions are actually named
24402 something starting with __ and the normal name is an alias. */
64ff59ba 24403#if defined __stub_mysql_connect || defined __stub___mysql_connect
d9898ee8 24404choke me
d9898ee8 24405#endif
24406
24407int
24408main ()
24409{
64ff59ba 24410return mysql_connect ();
d9898ee8 24411 ;
24412 return 0;
24413}
24414_ACEOF
24415rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 24416if { (ac_try="$ac_link"
24417case "(($ac_try" in
24418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24419 *) ac_try_echo=$ac_try;;
24420esac
24421eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24422 (eval "$ac_link") 2>conftest.er1
d9898ee8 24423 ac_status=$?
24424 grep -v '^ *+' conftest.er1 >conftest.err
24425 rm -f conftest.er1
24426 cat conftest.err >&5
24427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 24428 (exit $ac_status); } && {
24429 test -z "$ac_c_werror_flag" ||
24430 test ! -s conftest.err
24431 } && test -s conftest$ac_exeext &&
24432 $as_test_x conftest$ac_exeext; then
d9898ee8 24433 ac_cv_func_mysql_connect=yes
24434else
24435 echo "$as_me: failed program was:" >&5
24436sed 's/^/| /' conftest.$ac_ext >&5
24437
64ff59ba 24438 ac_cv_func_mysql_connect=no
d9898ee8 24439fi
64ff59ba 24440
24441rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 24442 conftest$ac_exeext conftest.$ac_ext
24443fi
64ff59ba 24444{ echo "$as_me:$LINENO: result: $ac_cv_func_mysql_connect" >&5
24445echo "${ECHO_T}$ac_cv_func_mysql_connect" >&6; }
d9898ee8 24446if test $ac_cv_func_mysql_connect = yes; then
24447 LIBAUTHMYSQL="libauthmysql.la"
24448 HAVE_AUTHMYSQL=1
24449else
24450
64ff59ba 24451 { echo "$as_me:$LINENO: checking for mysql_real_connect" >&5
24452echo $ECHO_N "checking for mysql_real_connect... $ECHO_C" >&6; }
d9898ee8 24453if test "${ac_cv_func_mysql_real_connect+set}" = set; then
24454 echo $ECHO_N "(cached) $ECHO_C" >&6
24455else
24456 cat >conftest.$ac_ext <<_ACEOF
24457/* confdefs.h. */
24458_ACEOF
24459cat confdefs.h >>conftest.$ac_ext
24460cat >>conftest.$ac_ext <<_ACEOF
24461/* end confdefs.h. */
24462/* Define mysql_real_connect to an innocuous variant, in case <limits.h> declares mysql_real_connect.
24463 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24464#define mysql_real_connect innocuous_mysql_real_connect
24465
24466/* System header to define __stub macros and hopefully few prototypes,
24467 which can conflict with char mysql_real_connect (); below.
24468 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24469 <limits.h> exists even on freestanding compilers. */
24470
24471#ifdef __STDC__
24472# include <limits.h>
24473#else
24474# include <assert.h>
24475#endif
24476
24477#undef mysql_real_connect
24478
64ff59ba 24479/* Override any GCC internal prototype to avoid an error.
24480 Use char because int might match the return type of a GCC
24481 builtin and then its argument prototype would still apply. */
d9898ee8 24482#ifdef __cplusplus
24483extern "C"
d9898ee8 24484#endif
d9898ee8 24485char mysql_real_connect ();
24486/* The GNU C library defines this for functions which it implements
24487 to always fail with ENOSYS. Some functions are actually named
24488 something starting with __ and the normal name is an alias. */
64ff59ba 24489#if defined __stub_mysql_real_connect || defined __stub___mysql_real_connect
d9898ee8 24490choke me
d9898ee8 24491#endif
24492
24493int
24494main ()
24495{
64ff59ba 24496return mysql_real_connect ();
d9898ee8 24497 ;
24498 return 0;
24499}
24500_ACEOF
24501rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 24502if { (ac_try="$ac_link"
24503case "(($ac_try" in
24504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24505 *) ac_try_echo=$ac_try;;
24506esac
24507eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24508 (eval "$ac_link") 2>conftest.er1
d9898ee8 24509 ac_status=$?
24510 grep -v '^ *+' conftest.er1 >conftest.err
24511 rm -f conftest.er1
24512 cat conftest.err >&5
24513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 24514 (exit $ac_status); } && {
24515 test -z "$ac_c_werror_flag" ||
24516 test ! -s conftest.err
24517 } && test -s conftest$ac_exeext &&
24518 $as_test_x conftest$ac_exeext; then
d9898ee8 24519 ac_cv_func_mysql_real_connect=yes
24520else
24521 echo "$as_me: failed program was:" >&5
24522sed 's/^/| /' conftest.$ac_ext >&5
24523
64ff59ba 24524 ac_cv_func_mysql_real_connect=no
d9898ee8 24525fi
64ff59ba 24526
24527rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 24528 conftest$ac_exeext conftest.$ac_ext
24529fi
64ff59ba 24530{ echo "$as_me:$LINENO: result: $ac_cv_func_mysql_real_connect" >&5
24531echo "${ECHO_T}$ac_cv_func_mysql_real_connect" >&6; }
d9898ee8 24532if test $ac_cv_func_mysql_real_connect = yes; then
24533 LIBAUTHMYSQL="libauthmysql.la"
24534 HAVE_AUTHMYSQL=1
24535else
24536 { { echo "$as_me:$LINENO: error: --with-authmysql specified but no mysqlclient.so" >&5
24537echo "$as_me: error: --with-authmysql specified but no mysqlclient.so" >&2;}
24538 { (exit 1); exit 1; }; }
24539
24540fi
24541
24542
24543
24544fi
24545
24546 LIBS="$saveLIBS"
24547 HAVE_AUTHMYSQL=1
24548 CFLAGS="$MYSQL_CFLAGS $CFLAGS"
24549fi
24550
24551
64ff59ba 24552 if test "$HAVE_AUTHMYSQL" = 1; then
d9898ee8 24553 HAVE_AUTHMYSQL_TRUE=
24554 HAVE_AUTHMYSQL_FALSE='#'
24555else
24556 HAVE_AUTHMYSQL_TRUE='#'
24557 HAVE_AUTHMYSQL_FALSE=
24558fi
24559
24560
24561
24562
24563
24564
24565
24566
64ff59ba 24567# Check whether --with-authcustom was given.
d9898ee8 24568if test "${with_authcustom+set}" = set; then
64ff59ba 24569 withval=$with_authcustom; doauthcustom="$withval"
d9898ee8 24570else
24571 doauthcustom=yes
64ff59ba 24572fi
24573
d9898ee8 24574
24575LIBAUTHCUSTOM=""
24576
24577if test "$doauthcustom" = "yes"
24578then
24579 LIBAUTHCUSTOM="libauthcustom.la"
24580fi
24581
64ff59ba 24582 if test "$AUTHCUSTOM" != ""; then
d9898ee8 24583 HAVE_CUSTOM_TRUE=
24584 HAVE_CUSTOM_FALSE='#'
24585else
24586 HAVE_CUSTOM_TRUE='#'
24587 HAVE_CUSTOM_FALSE=
24588fi
24589
24590
24591
24592
24593
24594
24595
24596
24597
64ff59ba 24598# Check whether --with-pipeprog was given.
d9898ee8 24599if test "${with_pipeprog+set}" = set; then
64ff59ba 24600 withval=$with_pipeprog; authProg="$withval"
d9898ee8 24601else
24602 authProg="$pkgconfdir/authProg"
64ff59ba 24603fi
d9898ee8 24604
24605
24606
64ff59ba 24607
24608# Check whether --with-authpipe was given.
d9898ee8 24609if test "${with_authpipe+set}" = set; then
64ff59ba 24610 withval=$with_authpipe; doauthpipe="$withval"
d9898ee8 24611else
24612 doauthpipe=yes
64ff59ba 24613fi
24614
d9898ee8 24615
24616LIBAUTHPIPE=""
24617
24618if test "$doauthpipe" = "yes"
24619then
24620 LIBAUTHPIPE="libauthpipe.la"
24621fi
24622
64ff59ba 24623 if test "$AUTHPIPE" != ""; then
d9898ee8 24624 HAVE_PIPE_TRUE=
24625 HAVE_PIPE_FALSE='#'
24626else
24627 HAVE_PIPE_TRUE='#'
24628 HAVE_PIPE_FALSE=
24629fi
24630
24631
24632
24633
24634
64ff59ba 24635{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
24636echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
d9898ee8 24637if test "${ac_cv_header_stdc+set}" = set; then
24638 echo $ECHO_N "(cached) $ECHO_C" >&6
24639else
24640 cat >conftest.$ac_ext <<_ACEOF
24641/* confdefs.h. */
24642_ACEOF
24643cat confdefs.h >>conftest.$ac_ext
24644cat >>conftest.$ac_ext <<_ACEOF
24645/* end confdefs.h. */
24646#include <stdlib.h>
24647#include <stdarg.h>
24648#include <string.h>
24649#include <float.h>
24650
24651int
24652main ()
24653{
24654
24655 ;
24656 return 0;
24657}
24658_ACEOF
24659rm -f conftest.$ac_objext
64ff59ba 24660if { (ac_try="$ac_compile"
24661case "(($ac_try" in
24662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24663 *) ac_try_echo=$ac_try;;
24664esac
24665eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24666 (eval "$ac_compile") 2>conftest.er1
d9898ee8 24667 ac_status=$?
24668 grep -v '^ *+' conftest.er1 >conftest.err
24669 rm -f conftest.er1
24670 cat conftest.err >&5
24671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 24672 (exit $ac_status); } && {
24673 test -z "$ac_c_werror_flag" ||
24674 test ! -s conftest.err
24675 } && test -s conftest.$ac_objext; then
d9898ee8 24676 ac_cv_header_stdc=yes
24677else
24678 echo "$as_me: failed program was:" >&5
24679sed 's/^/| /' conftest.$ac_ext >&5
24680
64ff59ba 24681 ac_cv_header_stdc=no
d9898ee8 24682fi
64ff59ba 24683
24684rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 24685
24686if test $ac_cv_header_stdc = yes; then
24687 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
24688 cat >conftest.$ac_ext <<_ACEOF
24689/* confdefs.h. */
24690_ACEOF
24691cat confdefs.h >>conftest.$ac_ext
24692cat >>conftest.$ac_ext <<_ACEOF
24693/* end confdefs.h. */
24694#include <string.h>
24695
24696_ACEOF
24697if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24698 $EGREP "memchr" >/dev/null 2>&1; then
24699 :
24700else
24701 ac_cv_header_stdc=no
24702fi
24703rm -f conftest*
24704
24705fi
24706
24707if test $ac_cv_header_stdc = yes; then
24708 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
24709 cat >conftest.$ac_ext <<_ACEOF
24710/* confdefs.h. */
24711_ACEOF
24712cat confdefs.h >>conftest.$ac_ext
24713cat >>conftest.$ac_ext <<_ACEOF
24714/* end confdefs.h. */
24715#include <stdlib.h>
24716
24717_ACEOF
24718if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24719 $EGREP "free" >/dev/null 2>&1; then
24720 :
24721else
24722 ac_cv_header_stdc=no
24723fi
24724rm -f conftest*
24725
24726fi
24727
24728if test $ac_cv_header_stdc = yes; then
24729 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
24730 if test "$cross_compiling" = yes; then
24731 :
24732else
24733 cat >conftest.$ac_ext <<_ACEOF
24734/* confdefs.h. */
24735_ACEOF
24736cat confdefs.h >>conftest.$ac_ext
24737cat >>conftest.$ac_ext <<_ACEOF
24738/* end confdefs.h. */
24739#include <ctype.h>
64ff59ba 24740#include <stdlib.h>
d9898ee8 24741#if ((' ' & 0x0FF) == 0x020)
24742# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
24743# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
24744#else
24745# define ISLOWER(c) \
24746 (('a' <= (c) && (c) <= 'i') \
24747 || ('j' <= (c) && (c) <= 'r') \
24748 || ('s' <= (c) && (c) <= 'z'))
24749# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
24750#endif
24751
24752#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
24753int
24754main ()
24755{
24756 int i;
24757 for (i = 0; i < 256; i++)
24758 if (XOR (islower (i), ISLOWER (i))
24759 || toupper (i) != TOUPPER (i))
64ff59ba 24760 return 2;
24761 return 0;
d9898ee8 24762}
24763_ACEOF
24764rm -f conftest$ac_exeext
64ff59ba 24765if { (ac_try="$ac_link"
24766case "(($ac_try" in
24767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24768 *) ac_try_echo=$ac_try;;
24769esac
24770eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24771 (eval "$ac_link") 2>&5
d9898ee8 24772 ac_status=$?
24773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24774 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
64ff59ba 24775 { (case "(($ac_try" in
24776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24777 *) ac_try_echo=$ac_try;;
24778esac
24779eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24780 (eval "$ac_try") 2>&5
d9898ee8 24781 ac_status=$?
24782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24783 (exit $ac_status); }; }; then
24784 :
24785else
24786 echo "$as_me: program exited with status $ac_status" >&5
24787echo "$as_me: failed program was:" >&5
24788sed 's/^/| /' conftest.$ac_ext >&5
24789
24790( exit $ac_status )
24791ac_cv_header_stdc=no
24792fi
64ff59ba 24793rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d9898ee8 24794fi
64ff59ba 24795
24796
d9898ee8 24797fi
24798fi
64ff59ba 24799{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
24800echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
d9898ee8 24801if test $ac_cv_header_stdc = yes; then
24802
24803cat >>confdefs.h <<\_ACEOF
24804#define STDC_HEADERS 1
24805_ACEOF
24806
24807fi
24808
64ff59ba 24809{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
24810echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
d9898ee8 24811if test "${ac_cv_header_sys_wait_h+set}" = set; then
24812 echo $ECHO_N "(cached) $ECHO_C" >&6
24813else
24814 cat >conftest.$ac_ext <<_ACEOF
24815/* confdefs.h. */
24816_ACEOF
24817cat confdefs.h >>conftest.$ac_ext
24818cat >>conftest.$ac_ext <<_ACEOF
24819/* end confdefs.h. */
24820#include <sys/types.h>
24821#include <sys/wait.h>
24822#ifndef WEXITSTATUS
64ff59ba 24823# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
d9898ee8 24824#endif
24825#ifndef WIFEXITED
24826# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
24827#endif
24828
24829int
24830main ()
24831{
24832 int s;
24833 wait (&s);
24834 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
24835 ;
24836 return 0;
24837}
24838_ACEOF
24839rm -f conftest.$ac_objext
64ff59ba 24840if { (ac_try="$ac_compile"
24841case "(($ac_try" in
24842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24843 *) ac_try_echo=$ac_try;;
24844esac
24845eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24846 (eval "$ac_compile") 2>conftest.er1
d9898ee8 24847 ac_status=$?
24848 grep -v '^ *+' conftest.er1 >conftest.err
24849 rm -f conftest.er1
24850 cat conftest.err >&5
24851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 24852 (exit $ac_status); } && {
24853 test -z "$ac_c_werror_flag" ||
24854 test ! -s conftest.err
24855 } && test -s conftest.$ac_objext; then
d9898ee8 24856 ac_cv_header_sys_wait_h=yes
24857else
24858 echo "$as_me: failed program was:" >&5
24859sed 's/^/| /' conftest.$ac_ext >&5
24860
64ff59ba 24861 ac_cv_header_sys_wait_h=no
d9898ee8 24862fi
64ff59ba 24863
24864rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 24865fi
64ff59ba 24866{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
24867echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
d9898ee8 24868if test $ac_cv_header_sys_wait_h = yes; then
24869
24870cat >>confdefs.h <<\_ACEOF
24871#define HAVE_SYS_WAIT_H 1
24872_ACEOF
24873
24874fi
24875
24876
24877
24878
24879
24880
24881
24882
24883
24884for ac_header in sys/stat.h sys/time.h sys/wait.h sys/select.h unistd.h fcntl.h crypt.h termios.h
24885do
24886as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
64ff59ba 24887if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24888 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24889echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24890if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 24891 echo $ECHO_N "(cached) $ECHO_C" >&6
24892fi
64ff59ba 24893ac_res=`eval echo '${'$as_ac_Header'}'`
24894 { echo "$as_me:$LINENO: result: $ac_res" >&5
24895echo "${ECHO_T}$ac_res" >&6; }
d9898ee8 24896else
24897 # Is the header compilable?
64ff59ba 24898{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
24899echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
d9898ee8 24900cat >conftest.$ac_ext <<_ACEOF
24901/* confdefs.h. */
24902_ACEOF
24903cat confdefs.h >>conftest.$ac_ext
24904cat >>conftest.$ac_ext <<_ACEOF
24905/* end confdefs.h. */
24906$ac_includes_default
24907#include <$ac_header>
24908_ACEOF
24909rm -f conftest.$ac_objext
64ff59ba 24910if { (ac_try="$ac_compile"
24911case "(($ac_try" in
24912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24913 *) ac_try_echo=$ac_try;;
24914esac
24915eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24916 (eval "$ac_compile") 2>conftest.er1
d9898ee8 24917 ac_status=$?
24918 grep -v '^ *+' conftest.er1 >conftest.err
24919 rm -f conftest.er1
24920 cat conftest.err >&5
24921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 24922 (exit $ac_status); } && {
24923 test -z "$ac_c_werror_flag" ||
24924 test ! -s conftest.err
24925 } && test -s conftest.$ac_objext; then
d9898ee8 24926 ac_header_compiler=yes
24927else
24928 echo "$as_me: failed program was:" >&5
24929sed 's/^/| /' conftest.$ac_ext >&5
24930
64ff59ba 24931 ac_header_compiler=no
d9898ee8 24932fi
64ff59ba 24933
24934rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24935{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24936echo "${ECHO_T}$ac_header_compiler" >&6; }
d9898ee8 24937
24938# Is the header present?
64ff59ba 24939{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
24940echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
d9898ee8 24941cat >conftest.$ac_ext <<_ACEOF
24942/* confdefs.h. */
24943_ACEOF
24944cat confdefs.h >>conftest.$ac_ext
24945cat >>conftest.$ac_ext <<_ACEOF
24946/* end confdefs.h. */
24947#include <$ac_header>
24948_ACEOF
64ff59ba 24949if { (ac_try="$ac_cpp conftest.$ac_ext"
24950case "(($ac_try" in
24951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24952 *) ac_try_echo=$ac_try;;
24953esac
24954eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24955 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 24956 ac_status=$?
24957 grep -v '^ *+' conftest.er1 >conftest.err
24958 rm -f conftest.er1
24959 cat conftest.err >&5
24960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 24961 (exit $ac_status); } >/dev/null && {
24962 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24963 test ! -s conftest.err
24964 }; then
d9898ee8 24965 ac_header_preproc=yes
24966else
24967 echo "$as_me: failed program was:" >&5
24968sed 's/^/| /' conftest.$ac_ext >&5
24969
24970 ac_header_preproc=no
24971fi
64ff59ba 24972
d9898ee8 24973rm -f conftest.err conftest.$ac_ext
64ff59ba 24974{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24975echo "${ECHO_T}$ac_header_preproc" >&6; }
d9898ee8 24976
24977# So? What about this header?
24978case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24979 yes:no: )
24980 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24981echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24982 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24983echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24984 ac_header_preproc=yes
24985 ;;
24986 no:yes:* )
24987 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24988echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24989 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24990echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24991 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24992echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24993 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24994echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24995 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24996echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24997 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24998echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
64ff59ba 24999 ( cat <<\_ASBOX
d9898ee8 25000## -------------------------------------------------- ##
25001## Report this to courier-users@lists.sourceforge.net ##
25002## -------------------------------------------------- ##
25003_ASBOX
64ff59ba 25004 ) | sed "s/^/$as_me: WARNING: /" >&2
d9898ee8 25005 ;;
25006esac
64ff59ba 25007{ echo "$as_me:$LINENO: checking for $ac_header" >&5
25008echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25009if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 25010 echo $ECHO_N "(cached) $ECHO_C" >&6
25011else
25012 eval "$as_ac_Header=\$ac_header_preproc"
25013fi
64ff59ba 25014ac_res=`eval echo '${'$as_ac_Header'}'`
25015 { echo "$as_me:$LINENO: result: $ac_res" >&5
25016echo "${ECHO_T}$ac_res" >&6; }
d9898ee8 25017
25018fi
25019if test `eval echo '${'$as_ac_Header'}'` = yes; then
25020 cat >>confdefs.h <<_ACEOF
25021#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25022_ACEOF
25023
25024fi
25025
25026done
25027
25028
64ff59ba 25029{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
25030echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
d9898ee8 25031if test "${ac_cv_c_const+set}" = set; then
25032 echo $ECHO_N "(cached) $ECHO_C" >&6
25033else
25034 cat >conftest.$ac_ext <<_ACEOF
25035/* confdefs.h. */
25036_ACEOF
25037cat confdefs.h >>conftest.$ac_ext
25038cat >>conftest.$ac_ext <<_ACEOF
25039/* end confdefs.h. */
25040
25041int
25042main ()
25043{
25044/* FIXME: Include the comments suggested by Paul. */
25045#ifndef __cplusplus
25046 /* Ultrix mips cc rejects this. */
25047 typedef int charset[2];
64ff59ba 25048 const charset cs;
d9898ee8 25049 /* SunOS 4.1.1 cc rejects this. */
64ff59ba 25050 char const *const *pcpcc;
25051 char **ppc;
d9898ee8 25052 /* NEC SVR4.0.2 mips cc rejects this. */
25053 struct point {int x, y;};
25054 static struct point const zero = {0,0};
25055 /* AIX XL C 1.02.0.0 rejects this.
25056 It does not let you subtract one const X* pointer from another in
25057 an arm of an if-expression whose if-part is not a constant
25058 expression */
25059 const char *g = "string";
64ff59ba 25060 pcpcc = &g + (g ? g-g : 0);
d9898ee8 25061 /* HPUX 7.0 cc rejects these. */
64ff59ba 25062 ++pcpcc;
25063 ppc = (char**) pcpcc;
25064 pcpcc = (char const *const *) ppc;
d9898ee8 25065 { /* SCO 3.2v4 cc rejects this. */
25066 char *t;
25067 char const *s = 0 ? (char *) 0 : (char const *) 0;
25068
25069 *t++ = 0;
64ff59ba 25070 if (s) return 0;
d9898ee8 25071 }
25072 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
25073 int x[] = {25, 17};
25074 const int *foo = &x[0];
25075 ++foo;
25076 }
25077 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
25078 typedef const int *iptr;
25079 iptr p = 0;
25080 ++p;
25081 }
25082 { /* AIX XL C 1.02.0.0 rejects this saying
25083 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
25084 struct s { int j; const int *ap[3]; };
25085 struct s *b; b->j = 5;
25086 }
25087 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
25088 const int foo = 10;
64ff59ba 25089 if (!foo) return 0;
d9898ee8 25090 }
64ff59ba 25091 return !cs[0] && !zero.x;
d9898ee8 25092#endif
25093
25094 ;
25095 return 0;
25096}
25097_ACEOF
25098rm -f conftest.$ac_objext
64ff59ba 25099if { (ac_try="$ac_compile"
25100case "(($ac_try" in
25101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25102 *) ac_try_echo=$ac_try;;
25103esac
25104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25105 (eval "$ac_compile") 2>conftest.er1
d9898ee8 25106 ac_status=$?
25107 grep -v '^ *+' conftest.er1 >conftest.err
25108 rm -f conftest.er1
25109 cat conftest.err >&5
25110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 25111 (exit $ac_status); } && {
25112 test -z "$ac_c_werror_flag" ||
25113 test ! -s conftest.err
25114 } && test -s conftest.$ac_objext; then
d9898ee8 25115 ac_cv_c_const=yes
25116else
25117 echo "$as_me: failed program was:" >&5
25118sed 's/^/| /' conftest.$ac_ext >&5
25119
64ff59ba 25120 ac_cv_c_const=no
d9898ee8 25121fi
64ff59ba 25122
25123rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 25124fi
64ff59ba 25125{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
25126echo "${ECHO_T}$ac_cv_c_const" >&6; }
d9898ee8 25127if test $ac_cv_c_const = no; then
25128
25129cat >>confdefs.h <<\_ACEOF
25130#define const
25131_ACEOF
25132
25133fi
25134
64ff59ba 25135{ echo "$as_me:$LINENO: checking for pid_t" >&5
25136echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
d9898ee8 25137if test "${ac_cv_type_pid_t+set}" = set; then
25138 echo $ECHO_N "(cached) $ECHO_C" >&6
25139else
25140 cat >conftest.$ac_ext <<_ACEOF
25141/* confdefs.h. */
25142_ACEOF
25143cat confdefs.h >>conftest.$ac_ext
25144cat >>conftest.$ac_ext <<_ACEOF
25145/* end confdefs.h. */
25146$ac_includes_default
64ff59ba 25147typedef pid_t ac__type_new_;
d9898ee8 25148int
25149main ()
25150{
64ff59ba 25151if ((ac__type_new_ *) 0)
d9898ee8 25152 return 0;
64ff59ba 25153if (sizeof (ac__type_new_))
d9898ee8 25154 return 0;
25155 ;
25156 return 0;
25157}
25158_ACEOF
25159rm -f conftest.$ac_objext
64ff59ba 25160if { (ac_try="$ac_compile"
25161case "(($ac_try" in
25162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25163 *) ac_try_echo=$ac_try;;
25164esac
25165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25166 (eval "$ac_compile") 2>conftest.er1
d9898ee8 25167 ac_status=$?
25168 grep -v '^ *+' conftest.er1 >conftest.err
25169 rm -f conftest.er1
25170 cat conftest.err >&5
25171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 25172 (exit $ac_status); } && {
25173 test -z "$ac_c_werror_flag" ||
25174 test ! -s conftest.err
25175 } && test -s conftest.$ac_objext; then
d9898ee8 25176 ac_cv_type_pid_t=yes
25177else
25178 echo "$as_me: failed program was:" >&5
25179sed 's/^/| /' conftest.$ac_ext >&5
25180
64ff59ba 25181 ac_cv_type_pid_t=no
d9898ee8 25182fi
64ff59ba 25183
25184rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 25185fi
64ff59ba 25186{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
25187echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
d9898ee8 25188if test $ac_cv_type_pid_t = yes; then
25189 :
25190else
25191
25192cat >>confdefs.h <<_ACEOF
25193#define pid_t int
25194_ACEOF
25195
25196fi
25197
64ff59ba 25198{ echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
25199echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
d9898ee8 25200if test "${ac_cv_type_uid_t+set}" = set; then
25201 echo $ECHO_N "(cached) $ECHO_C" >&6
25202else
25203 cat >conftest.$ac_ext <<_ACEOF
25204/* confdefs.h. */
25205_ACEOF
25206cat confdefs.h >>conftest.$ac_ext
25207cat >>conftest.$ac_ext <<_ACEOF
25208/* end confdefs.h. */
25209#include <sys/types.h>
25210
25211_ACEOF
25212if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25213 $EGREP "uid_t" >/dev/null 2>&1; then
25214 ac_cv_type_uid_t=yes
25215else
25216 ac_cv_type_uid_t=no
25217fi
25218rm -f conftest*
25219
25220fi
64ff59ba 25221{ echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
25222echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
d9898ee8 25223if test $ac_cv_type_uid_t = no; then
25224
25225cat >>confdefs.h <<\_ACEOF
25226#define uid_t int
25227_ACEOF
25228
25229
25230cat >>confdefs.h <<\_ACEOF
25231#define gid_t int
25232_ACEOF
25233
25234fi
25235
64ff59ba 25236{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
25237echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
d9898ee8 25238if test "${ac_cv_type_signal+set}" = set; then
25239 echo $ECHO_N "(cached) $ECHO_C" >&6
25240else
25241 cat >conftest.$ac_ext <<_ACEOF
25242/* confdefs.h. */
25243_ACEOF
25244cat confdefs.h >>conftest.$ac_ext
25245cat >>conftest.$ac_ext <<_ACEOF
25246/* end confdefs.h. */
25247#include <sys/types.h>
25248#include <signal.h>
d9898ee8 25249
25250int
25251main ()
25252{
64ff59ba 25253return *(signal (0, 0)) (0) == 1;
d9898ee8 25254 ;
25255 return 0;
25256}
25257_ACEOF
25258rm -f conftest.$ac_objext
64ff59ba 25259if { (ac_try="$ac_compile"
25260case "(($ac_try" in
25261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25262 *) ac_try_echo=$ac_try;;
25263esac
25264eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25265 (eval "$ac_compile") 2>conftest.er1
d9898ee8 25266 ac_status=$?
25267 grep -v '^ *+' conftest.er1 >conftest.err
25268 rm -f conftest.er1
25269 cat conftest.err >&5
25270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 25271 (exit $ac_status); } && {
25272 test -z "$ac_c_werror_flag" ||
25273 test ! -s conftest.err
25274 } && test -s conftest.$ac_objext; then
25275 ac_cv_type_signal=int
d9898ee8 25276else
25277 echo "$as_me: failed program was:" >&5
25278sed 's/^/| /' conftest.$ac_ext >&5
25279
64ff59ba 25280 ac_cv_type_signal=void
d9898ee8 25281fi
64ff59ba 25282
25283rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 25284fi
64ff59ba 25285{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
25286echo "${ECHO_T}$ac_cv_type_signal" >&6; }
d9898ee8 25287
25288cat >>confdefs.h <<_ACEOF
25289#define RETSIGTYPE $ac_cv_type_signal
25290_ACEOF
25291
25292
25293
25294
25295
25296for ac_func in setsid setlogin
25297do
25298as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
64ff59ba 25299{ echo "$as_me:$LINENO: checking for $ac_func" >&5
25300echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25301if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 25302 echo $ECHO_N "(cached) $ECHO_C" >&6
25303else
25304 cat >conftest.$ac_ext <<_ACEOF
25305/* confdefs.h. */
25306_ACEOF
25307cat confdefs.h >>conftest.$ac_ext
25308cat >>conftest.$ac_ext <<_ACEOF
25309/* end confdefs.h. */
25310/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25311 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25312#define $ac_func innocuous_$ac_func
25313
25314/* System header to define __stub macros and hopefully few prototypes,
25315 which can conflict with char $ac_func (); below.
25316 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25317 <limits.h> exists even on freestanding compilers. */
25318
25319#ifdef __STDC__
25320# include <limits.h>
25321#else
25322# include <assert.h>
25323#endif
25324
25325#undef $ac_func
25326
64ff59ba 25327/* Override any GCC internal prototype to avoid an error.
25328 Use char because int might match the return type of a GCC
25329 builtin and then its argument prototype would still apply. */
d9898ee8 25330#ifdef __cplusplus
25331extern "C"
d9898ee8 25332#endif
d9898ee8 25333char $ac_func ();
25334/* The GNU C library defines this for functions which it implements
25335 to always fail with ENOSYS. Some functions are actually named
25336 something starting with __ and the normal name is an alias. */
64ff59ba 25337#if defined __stub_$ac_func || defined __stub___$ac_func
d9898ee8 25338choke me
d9898ee8 25339#endif
25340
25341int
25342main ()
25343{
64ff59ba 25344return $ac_func ();
d9898ee8 25345 ;
25346 return 0;
25347}
25348_ACEOF
25349rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 25350if { (ac_try="$ac_link"
25351case "(($ac_try" in
25352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25353 *) ac_try_echo=$ac_try;;
25354esac
25355eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25356 (eval "$ac_link") 2>conftest.er1
d9898ee8 25357 ac_status=$?
25358 grep -v '^ *+' conftest.er1 >conftest.err
25359 rm -f conftest.er1
25360 cat conftest.err >&5
25361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 25362 (exit $ac_status); } && {
25363 test -z "$ac_c_werror_flag" ||
25364 test ! -s conftest.err
25365 } && test -s conftest$ac_exeext &&
25366 $as_test_x conftest$ac_exeext; then
d9898ee8 25367 eval "$as_ac_var=yes"
25368else
25369 echo "$as_me: failed program was:" >&5
25370sed 's/^/| /' conftest.$ac_ext >&5
25371
64ff59ba 25372 eval "$as_ac_var=no"
d9898ee8 25373fi
64ff59ba 25374
25375rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 25376 conftest$ac_exeext conftest.$ac_ext
25377fi
64ff59ba 25378ac_res=`eval echo '${'$as_ac_var'}'`
25379 { echo "$as_me:$LINENO: result: $ac_res" >&5
25380echo "${ECHO_T}$ac_res" >&6; }
d9898ee8 25381if test `eval echo '${'$as_ac_var'}'` = yes; then
25382 cat >>confdefs.h <<_ACEOF
25383#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25384_ACEOF
25385
25386fi
25387done
25388
64ff59ba 25389{ echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
25390echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
d9898ee8 25391if test "${ac_cv_lib_crypt_crypt+set}" = set; then
25392 echo $ECHO_N "(cached) $ECHO_C" >&6
25393else
25394 ac_check_lib_save_LIBS=$LIBS
25395LIBS="-lcrypt $LIBS"
25396cat >conftest.$ac_ext <<_ACEOF
25397/* confdefs.h. */
25398_ACEOF
25399cat confdefs.h >>conftest.$ac_ext
25400cat >>conftest.$ac_ext <<_ACEOF
25401/* end confdefs.h. */
25402
64ff59ba 25403/* Override any GCC internal prototype to avoid an error.
25404 Use char because int might match the return type of a GCC
25405 builtin and then its argument prototype would still apply. */
d9898ee8 25406#ifdef __cplusplus
25407extern "C"
25408#endif
d9898ee8 25409char crypt ();
25410int
25411main ()
25412{
64ff59ba 25413return crypt ();
d9898ee8 25414 ;
25415 return 0;
25416}
25417_ACEOF
25418rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 25419if { (ac_try="$ac_link"
25420case "(($ac_try" in
25421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25422 *) ac_try_echo=$ac_try;;
25423esac
25424eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25425 (eval "$ac_link") 2>conftest.er1
d9898ee8 25426 ac_status=$?
25427 grep -v '^ *+' conftest.er1 >conftest.err
25428 rm -f conftest.er1
25429 cat conftest.err >&5
25430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 25431 (exit $ac_status); } && {
25432 test -z "$ac_c_werror_flag" ||
25433 test ! -s conftest.err
25434 } && test -s conftest$ac_exeext &&
25435 $as_test_x conftest$ac_exeext; then
d9898ee8 25436 ac_cv_lib_crypt_crypt=yes
25437else
25438 echo "$as_me: failed program was:" >&5
25439sed 's/^/| /' conftest.$ac_ext >&5
25440
64ff59ba 25441 ac_cv_lib_crypt_crypt=no
d9898ee8 25442fi
64ff59ba 25443
25444rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 25445 conftest$ac_exeext conftest.$ac_ext
25446LIBS=$ac_check_lib_save_LIBS
25447fi
64ff59ba 25448{ echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
25449echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
d9898ee8 25450if test $ac_cv_lib_crypt_crypt = yes; then
25451 CRYPTLIBS="-lcrypt"
25452fi
25453
25454saveLIBS="$LIBS"
25455LIBS="$CRYPTLIBS $LIBS"
64ff59ba 25456{ echo "$as_me:$LINENO: checking for crypt" >&5
25457echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
d9898ee8 25458if test "${ac_cv_func_crypt+set}" = set; then
25459 echo $ECHO_N "(cached) $ECHO_C" >&6
25460else
25461 cat >conftest.$ac_ext <<_ACEOF
25462/* confdefs.h. */
25463_ACEOF
25464cat confdefs.h >>conftest.$ac_ext
25465cat >>conftest.$ac_ext <<_ACEOF
25466/* end confdefs.h. */
25467/* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
25468 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25469#define crypt innocuous_crypt
25470
25471/* System header to define __stub macros and hopefully few prototypes,
25472 which can conflict with char crypt (); below.
25473 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25474 <limits.h> exists even on freestanding compilers. */
25475
25476#ifdef __STDC__
25477# include <limits.h>
25478#else
25479# include <assert.h>
25480#endif
25481
25482#undef crypt
25483
64ff59ba 25484/* Override any GCC internal prototype to avoid an error.
25485 Use char because int might match the return type of a GCC
25486 builtin and then its argument prototype would still apply. */
d9898ee8 25487#ifdef __cplusplus
25488extern "C"
d9898ee8 25489#endif
d9898ee8 25490char crypt ();
25491/* The GNU C library defines this for functions which it implements
25492 to always fail with ENOSYS. Some functions are actually named
25493 something starting with __ and the normal name is an alias. */
64ff59ba 25494#if defined __stub_crypt || defined __stub___crypt
d9898ee8 25495choke me
d9898ee8 25496#endif
25497
25498int
25499main ()
25500{
64ff59ba 25501return crypt ();
d9898ee8 25502 ;
25503 return 0;
25504}
25505_ACEOF
25506rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 25507if { (ac_try="$ac_link"
25508case "(($ac_try" in
25509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25510 *) ac_try_echo=$ac_try;;
25511esac
25512eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25513 (eval "$ac_link") 2>conftest.er1
d9898ee8 25514 ac_status=$?
25515 grep -v '^ *+' conftest.er1 >conftest.err
25516 rm -f conftest.er1
25517 cat conftest.err >&5
25518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 25519 (exit $ac_status); } && {
25520 test -z "$ac_c_werror_flag" ||
25521 test ! -s conftest.err
25522 } && test -s conftest$ac_exeext &&
25523 $as_test_x conftest$ac_exeext; then
d9898ee8 25524 ac_cv_func_crypt=yes
25525else
25526 echo "$as_me: failed program was:" >&5
25527sed 's/^/| /' conftest.$ac_ext >&5
25528
64ff59ba 25529 ac_cv_func_crypt=no
d9898ee8 25530fi
64ff59ba 25531
25532rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 25533 conftest$ac_exeext conftest.$ac_ext
25534fi
64ff59ba 25535{ echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
25536echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
d9898ee8 25537if test $ac_cv_func_crypt = yes; then
25538
25539cat >>confdefs.h <<_ACEOF
25540#define HAVE_CRYPT 1
25541_ACEOF
25542
25543fi
25544
25545LIBS="$saveLIBS"
64ff59ba 25546{ echo "$as_me:$LINENO: checking for crypt() prototype" >&5
25547echo $ECHO_N "checking for crypt() prototype... $ECHO_C" >&6; }
d9898ee8 25548if test "${userdb_cv_NEED_CRYPT_PROTOTYPE+set}" = set; then
25549 echo $ECHO_N "(cached) $ECHO_C" >&6
25550else
25551 cat >conftest.$ac_ext <<_ACEOF
25552/* confdefs.h. */
25553_ACEOF
25554cat confdefs.h >>conftest.$ac_ext
25555cat >>conftest.$ac_ext <<_ACEOF
25556/* end confdefs.h. */
25557
25558 #if HAVE_CRYPT_H
25559 #include <crypt.h>
25560 #endif
25561 #if HAVE_UNISTD_H
25562 #include <unistd.h>
25563 #endif
25564 int crypt(int, int);
25565
25566
25567int
25568main ()
25569{
25570
25571 ;
25572 return 0;
25573}
25574_ACEOF
25575rm -f conftest.$ac_objext
64ff59ba 25576if { (ac_try="$ac_compile"
25577case "(($ac_try" in
25578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25579 *) ac_try_echo=$ac_try;;
25580esac
25581eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25582 (eval "$ac_compile") 2>conftest.er1
d9898ee8 25583 ac_status=$?
25584 grep -v '^ *+' conftest.er1 >conftest.err
25585 rm -f conftest.er1
25586 cat conftest.err >&5
25587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 25588 (exit $ac_status); } && {
25589 test -z "$ac_c_werror_flag" ||
25590 test ! -s conftest.err
25591 } && test -s conftest.$ac_objext; then
d9898ee8 25592 userdb_cv_NEED_CRYPT_PROTOTYPE=1
25593else
25594 echo "$as_me: failed program was:" >&5
25595sed 's/^/| /' conftest.$ac_ext >&5
25596
64ff59ba 25597 userdb_cv_NEED_CRYPT_PROTOTYPE=0
d9898ee8 25598fi
64ff59ba 25599
25600rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 25601
25602
25603fi
64ff59ba 25604{ echo "$as_me:$LINENO: result: $userdb_cv_NEED_CRYPT_PROTOTYPE" >&5
25605echo "${ECHO_T}$userdb_cv_NEED_CRYPT_PROTOTYPE" >&6; }
d9898ee8 25606
25607
25608cat >>confdefs.h <<_ACEOF
25609#define NEED_CRYPT_PROTOTYPE $userdb_cv_NEED_CRYPT_PROTOTYPE
25610_ACEOF
25611
25612
25613
25614
25615
25616
25617
64ff59ba 25618# Check whether --with-authdaemonrc was given.
d9898ee8 25619if test "${with_authdaemonrc+set}" = set; then
64ff59ba 25620 withval=$with_authdaemonrc; authdaemonrc="$withval"
d9898ee8 25621else
25622 authdaemonrc="$pkgconfdir/authdaemonrc"
64ff59ba 25623fi
d9898ee8 25624
25625
25626
64ff59ba 25627
25628# Check whether --with-authdaemonvar was given.
d9898ee8 25629if test "${with_authdaemonvar+set}" = set; then
64ff59ba 25630 withval=$with_authdaemonvar; authdaemonvar="$withval"
d9898ee8 25631else
25632 authdaemonvar="$localstatedir/spool/authdaemon"
64ff59ba 25633fi
25634
d9898ee8 25635
25636
25637
25638
25639
25640
25641cat >>confdefs.h <<_ACEOF
25642#define SASL_LIST $SASL_LIST
25643_ACEOF
25644
25645
25646rm -f authdaemonrc.h authldaprc.h authmysqlrc.h authpgsqlrc.h vpopmail_config.h
25647
25648
25649
25650result=""
25651
25652if test -x "$COURIERCONFIG"
25653then
25654 $COURIERCONFIG >conftest.out || exit 1
25655 sed -n '/^mail/p' <conftest.out >conftest2.out || exit 1
25656 . conftest2.out
25657 rm -f conftest.out conftest2.out
25658
25659 cmailuser="$mailuser"
25660 cmailgroup="$mailgroup"
25661 result=" (from courier-config)"
25662fi
25663
25664if test -x "$bindir/courierauthconfig"
25665then
25666 $bindir/courierauthconfig --configfiles >conftest.out || exit 1
25667 sed -n '/^mail/p' <conftest.out >conftest2.out || exit 1
25668 . conftest2.out
25669 rm -f conftest.out conftest2.out
25670
25671 cmailuser="$mailuser"
25672 cmailgroup="$mailgroup"
25673 result=" (from previous courierauthconfig)"
25674fi
25675
25676
25677
25678LB='['
25679RB=']'
25680
25681
25682
64ff59ba 25683{ echo "$as_me:$LINENO: checking for mail userid" >&5
25684echo $ECHO_N "checking for mail userid... $ECHO_C" >&6; }
d9898ee8 25685
25686
64ff59ba 25687# Check whether --with-mailuser was given.
d9898ee8 25688if test "${with_mailuser+set}" = set; then
64ff59ba 25689 withval=$with_mailuser; mailuser="$withval"
d9898ee8 25690else
25691 if test "$cmailuser" = ""
25692 then
25693 if test "$cross_compiling" = yes; then
25694 { { echo "$as_me:$LINENO: error: Must use --with-mailuser when cross compiling." >&5
25695echo "$as_me: error: Must use --with-mailuser when cross compiling." >&2;}
25696 { (exit 1); exit 1; }; }
25697else
25698 cat >conftest.$ac_ext <<_ACEOF
25699/* confdefs.h. */
25700_ACEOF
25701cat confdefs.h >>conftest.$ac_ext
25702cat >>conftest.$ac_ext <<_ACEOF
25703/* end confdefs.h. */
25704
25705#include <stdio.h>
25706#include <pwd.h>
25707#include <stdlib.h>
25708
25709static const char *ids $LB $RB={"courier","daemon","adm","bin","root", 0};
25710
25711int main()
25712{
25713int i;
25714FILE *f;
25715char *p;
25716
25717 for (i=0; ids $LB i $RB; i++)
25718 if (getpwnam(ids $LB i $RB)) break;
25719
25720 f=fopen("conftest.out", "w");
25721 if (f && ids $LB i $RB)
25722 {
25723 fprintf(f, "%s\n", ids $LB i $RB);
25724 fclose(f);
25725 exit(0);
25726 }
25727 fclose(f);
25728 exit (1);
25729 return (1);
25730}
25731
25732_ACEOF
25733rm -f conftest$ac_exeext
64ff59ba 25734if { (ac_try="$ac_link"
25735case "(($ac_try" in
25736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25737 *) ac_try_echo=$ac_try;;
25738esac
25739eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25740 (eval "$ac_link") 2>&5
d9898ee8 25741 ac_status=$?
25742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25743 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
64ff59ba 25744 { (case "(($ac_try" in
25745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25746 *) ac_try_echo=$ac_try;;
25747esac
25748eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25749 (eval "$ac_try") 2>&5
d9898ee8 25750 ac_status=$?
25751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25752 (exit $ac_status); }; }; then
25753 mailuser=`cat conftest.out`
25754else
25755 echo "$as_me: program exited with status $ac_status" >&5
25756echo "$as_me: failed program was:" >&5
25757sed 's/^/| /' conftest.$ac_ext >&5
25758
25759( exit $ac_status )
25760{ { echo "$as_me:$LINENO: error: Cannot determine mail user" >&5
25761echo "$as_me: error: Cannot determine mail user" >&2;}
25762 { (exit use --with-mailuser.); exit use --with-mailuser.; }; }
25763fi
64ff59ba 25764rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d9898ee8 25765fi
64ff59ba 25766
25767
d9898ee8 25768 else
25769 mailuser="$cmailuser"
25770 fi
25771 ac_configure_args="$ac_configure_args --with-mailuser=$mailuser"
64ff59ba 25772fi
d9898ee8 25773
d9898ee8 25774
64ff59ba 25775{ echo "$as_me:$LINENO: result: $mailuser $result" >&5
25776echo "${ECHO_T}$mailuser $result" >&6; }
d9898ee8 25777
64ff59ba 25778{ echo "$as_me:$LINENO: checking for mail group id" >&5
25779echo $ECHO_N "checking for mail group id... $ECHO_C" >&6; }
d9898ee8 25780
64ff59ba 25781
25782# Check whether --with-mailgroup was given.
d9898ee8 25783if test "${with_mailgroup+set}" = set; then
64ff59ba 25784 withval=$with_mailgroup; mailgroup="$withval"
d9898ee8 25785else
25786 if test "$cmailgroup" = ""
25787 then
25788 if test "$cross_compiling" = yes; then
25789 { { echo "$as_me:$LINENO: error: Must use --with-mailgroup when cross compiling." >&5
25790echo "$as_me: error: Must use --with-mailgroup when cross compiling." >&2;}
25791 { (exit 1); exit 1; }; }
25792else
25793 cat >conftest.$ac_ext <<_ACEOF
25794/* confdefs.h. */
25795_ACEOF
25796cat confdefs.h >>conftest.$ac_ext
25797cat >>conftest.$ac_ext <<_ACEOF
25798/* end confdefs.h. */
25799
25800#include <stdio.h>
25801#include <grp.h>
25802#include <stdlib.h>
25803
25804static const char *ids $LB $RB={"courier", "daemon","sys","adm", "root", 0};
25805
25806int main()
25807{
25808int i;
25809FILE *f;
25810
25811 for (i=0; ids $LB i $RB; i++)
25812 if (getgrnam(ids $LB i $RB)) break;
25813
25814 f=fopen("conftest.out", "w");
25815 if (f && ids $LB i $RB)
25816 {
25817 fprintf(f, "%s\n", ids $LB i $RB);
25818 fclose(f);
25819 exit(0);
25820 }
25821 fclose(f);
25822 exit (1);
25823 return (1);
25824}
25825
25826_ACEOF
25827rm -f conftest$ac_exeext
64ff59ba 25828if { (ac_try="$ac_link"
25829case "(($ac_try" in
25830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25831 *) ac_try_echo=$ac_try;;
25832esac
25833eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25834 (eval "$ac_link") 2>&5
d9898ee8 25835 ac_status=$?
25836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25837 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
64ff59ba 25838 { (case "(($ac_try" in
25839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25840 *) ac_try_echo=$ac_try;;
25841esac
25842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25843 (eval "$ac_try") 2>&5
d9898ee8 25844 ac_status=$?
25845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25846 (exit $ac_status); }; }; then
25847 mailgroup=`cat conftest.out`
25848else
25849 echo "$as_me: program exited with status $ac_status" >&5
25850echo "$as_me: failed program was:" >&5
25851sed 's/^/| /' conftest.$ac_ext >&5
25852
25853( exit $ac_status )
25854{ { echo "$as_me:$LINENO: error: Cannot determine mail group" >&5
25855echo "$as_me: error: Cannot determine mail group" >&2;}
25856 { (exit use --with-mailgroup.); exit use --with-mailgroup.; }; }
25857fi
64ff59ba 25858rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d9898ee8 25859fi
64ff59ba 25860
25861
d9898ee8 25862 else
25863 mailgroup="$cmailgroup"
25864 fi
25865 ac_configure_args="$ac_configure_args --with-mailgroup=$mailgroup"
25866
64ff59ba 25867fi
25868
25869{ echo "$as_me:$LINENO: result: $mailgroup $result" >&5
25870echo "${ECHO_T}$mailgroup $result" >&6; }
d9898ee8 25871
25872
25873rm -f conftest.out
25874
25875
64ff59ba 25876# Check whether --with-stdheaderdir was given.
d9898ee8 25877if test "${with_stdheaderdir+set}" = set; then
64ff59ba 25878 withval=$with_stdheaderdir;
d9898ee8 25879 if test "$withval" = "no"
25880 then
25881
25882cat >>confdefs.h <<_ACEOF
25883#define HAVE_NOSTDHEADERDIR 1
25884_ACEOF
25885
25886 fi
25887
64ff59ba 25888fi
25889
d9898ee8 25890
64ff59ba 25891{ echo "$as_me:$LINENO: checking for socklen_t" >&5
25892echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
d9898ee8 25893if test "${authlib_cv_hassocklen_t+set}" = set; then
25894 echo $ECHO_N "(cached) $ECHO_C" >&6
25895else
25896 cat >conftest.$ac_ext <<_ACEOF
25897/* confdefs.h. */
25898_ACEOF
25899cat confdefs.h >>conftest.$ac_ext
25900cat >>conftest.$ac_ext <<_ACEOF
25901/* end confdefs.h. */
25902
25903#include <sys/types.h>
25904#include <sys/socket.h>
25905
25906socklen_t sl_t;
25907
25908_ACEOF
25909rm -f conftest.$ac_objext
64ff59ba 25910if { (ac_try="$ac_compile"
25911case "(($ac_try" in
25912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25913 *) ac_try_echo=$ac_try;;
25914esac
25915eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25916 (eval "$ac_compile") 2>conftest.er1
d9898ee8 25917 ac_status=$?
25918 grep -v '^ *+' conftest.er1 >conftest.err
25919 rm -f conftest.er1
25920 cat conftest.err >&5
25921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 25922 (exit $ac_status); } && {
25923 test -z "$ac_c_werror_flag" ||
25924 test ! -s conftest.err
25925 } && test -s conftest.$ac_objext; then
d9898ee8 25926 authlib_cv_hassocklen_t=yes
25927else
25928 echo "$as_me: failed program was:" >&5
25929sed 's/^/| /' conftest.$ac_ext >&5
25930
64ff59ba 25931 authlib_cv_hassocklen_t=no
d9898ee8 25932fi
64ff59ba 25933
25934rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 25935
25936fi
64ff59ba 25937{ echo "$as_me:$LINENO: result: $authlib_cv_hassocklen_t" >&5
25938echo "${ECHO_T}$authlib_cv_hassocklen_t" >&6; }
d9898ee8 25939
25940socklen_t="int"
25941
25942if test $authlib_cv_hassocklen_t = yes
25943then
25944 :
25945else
25946
25947cat >>confdefs.h <<_ACEOF
25948#define socklen_t int
25949_ACEOF
25950
25951fi
25952
25953if test x"$enable_ltdl_install" = x"yes"
25954then
25955 LIBLTDL_SUBDIR=libltdl
25956fi
25957
25958
25959
25960
64ff59ba 25961# Check whether --with-repository was given.
d9898ee8 25962if test "${with_repository+set}" = set; then
64ff59ba 25963 withval=$with_repository; REPOSITORY="$withval"
25964fi
d9898ee8 25965
25966
25967
64ff59ba 25968 if test -d ${srcdir}/docbook; then
d9898ee8 25969 HAVE_SGML_TRUE=
25970 HAVE_SGML_FALSE='#'
25971else
25972 HAVE_SGML_TRUE='#'
25973 HAVE_SGML_FALSE=
25974fi
25975
d9898ee8 25976subdirs="$subdirs libltdl bdbobj gdbmobj md5 sha1 libhmac numlib makedat userdb rfc822 random128 liblock liblog"
25977
25978
64ff59ba 25979ac_config_files="$ac_config_files Makefile authdaemond authdaemonrc authsystem.passwd README.authdebug.html dbobj.h authmigrate courier-authlib.spec courier-authlib.lpspec courier-authlib.sysvinit userdb-test-cram-md5.pl"
d9898ee8 25980
25981cat >confcache <<\_ACEOF
25982# This file is a shell script that caches the results of configure
25983# tests run on this system so they can be shared between configure
25984# scripts and configure runs, see configure's option --config-cache.
25985# It is not useful on other systems. If it contains results you don't
25986# want to keep, you may remove or edit it.
25987#
25988# config.status only pays attention to the cache file if you give it
25989# the --recheck option to rerun configure.
25990#
25991# `ac_cv_env_foo' variables (set or unset) will be overridden when
25992# loading this file, other *unset* `ac_cv_foo' will be assigned the
25993# following values.
25994
25995_ACEOF
25996
25997# The following way of writing the cache mishandles newlines in values,
25998# but we know of no workaround that is simple, portable, and efficient.
64ff59ba 25999# So, we kill variables containing newlines.
d9898ee8 26000# Ultrix sh set writes to stderr and can't be redirected directly,
26001# and sets the high bit in the cache file unless we assign to the vars.
64ff59ba 26002(
26003 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26004 eval ac_val=\$$ac_var
26005 case $ac_val in #(
26006 *${as_nl}*)
26007 case $ac_var in #(
26008 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
26009echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
26010 esac
26011 case $ac_var in #(
26012 _ | IFS | as_nl) ;; #(
26013 *) $as_unset $ac_var ;;
26014 esac ;;
26015 esac
26016 done
26017
d9898ee8 26018 (set) 2>&1 |
64ff59ba 26019 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26020 *${as_nl}ac_space=\ *)
d9898ee8 26021 # `set' does not quote correctly, so add quotes (double-quote
26022 # substitution turns \\\\ into \\, and sed turns \\ into \).
26023 sed -n \
26024 "s/'/'\\\\''/g;
26025 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
64ff59ba 26026 ;; #(
d9898ee8 26027 *)
26028 # `set' quotes correctly as required by POSIX, so do not add quotes.
64ff59ba 26029 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
d9898ee8 26030 ;;
64ff59ba 26031 esac |
26032 sort
26033) |
d9898ee8 26034 sed '
64ff59ba 26035 /^ac_cv_env_/b end
d9898ee8 26036 t clear
64ff59ba 26037 :clear
d9898ee8 26038 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26039 t end
64ff59ba 26040 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26041 :end' >>confcache
26042if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26043 if test -w "$cache_file"; then
26044 test "x$cache_file" != "x/dev/null" &&
26045 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
26046echo "$as_me: updating cache $cache_file" >&6;}
d9898ee8 26047 cat confcache >$cache_file
26048 else
64ff59ba 26049 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
26050echo "$as_me: not updating unwritable cache $cache_file" >&6;}
d9898ee8 26051 fi
26052fi
26053rm -f confcache
26054
26055test "x$prefix" = xNONE && prefix=$ac_default_prefix
26056# Let make expand exec_prefix.
26057test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26058
d9898ee8 26059DEFS=-DHAVE_CONFIG_H
26060
26061ac_libobjs=
26062ac_ltlibobjs=
26063for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26064 # 1. Remove the extension, and $U if already installed.
64ff59ba 26065 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26066 ac_i=`echo "$ac_i" | sed "$ac_script"`
26067 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26068 # will be set to the directory where LIBOBJS objects are built.
26069 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26070 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
d9898ee8 26071done
26072LIBOBJS=$ac_libobjs
26073
26074LTLIBOBJS=$ac_ltlibobjs
26075
26076
26077if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
26078 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
26079Usually this means the macro was only invoked conditionally." >&5
26080echo "$as_me: error: conditional \"AMDEP\" was never defined.
26081Usually this means the macro was only invoked conditionally." >&2;}
26082 { (exit 1); exit 1; }; }
26083fi
26084if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26085 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
26086Usually this means the macro was only invoked conditionally." >&5
26087echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
26088Usually this means the macro was only invoked conditionally." >&2;}
26089 { (exit 1); exit 1; }; }
26090fi
26091if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
26092 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
26093Usually this means the macro was only invoked conditionally." >&5
26094echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
26095Usually this means the macro was only invoked conditionally." >&2;}
26096 { (exit 1); exit 1; }; }
26097fi
26098if test -z "${HAVE_MD5_TRUE}" && test -z "${HAVE_MD5_FALSE}"; then
26099 { { echo "$as_me:$LINENO: error: conditional \"HAVE_MD5\" was never defined.
26100Usually this means the macro was only invoked conditionally." >&5
26101echo "$as_me: error: conditional \"HAVE_MD5\" was never defined.
26102Usually this means the macro was only invoked conditionally." >&2;}
26103 { (exit 1); exit 1; }; }
26104fi
26105if test -z "${HAVE_SHA1_TRUE}" && test -z "${HAVE_SHA1_FALSE}"; then
26106 { { echo "$as_me:$LINENO: error: conditional \"HAVE_SHA1\" was never defined.
26107Usually this means the macro was only invoked conditionally." >&5
26108echo "$as_me: error: conditional \"HAVE_SHA1\" was never defined.
26109Usually this means the macro was only invoked conditionally." >&2;}
26110 { (exit 1); exit 1; }; }
26111fi
26112if test -z "${HAVE_HMACLIB_TRUE}" && test -z "${HAVE_HMACLIB_FALSE}"; then
26113 { { echo "$as_me:$LINENO: error: conditional \"HAVE_HMACLIB\" was never defined.
26114Usually this means the macro was only invoked conditionally." >&5
26115echo "$as_me: error: conditional \"HAVE_HMACLIB\" was never defined.
26116Usually this means the macro was only invoked conditionally." >&2;}
26117 { (exit 1); exit 1; }; }
26118fi
26119if test -z "${HAVE_LDAP_TRUE}" && test -z "${HAVE_LDAP_FALSE}"; then
26120 { { echo "$as_me:$LINENO: error: conditional \"HAVE_LDAP\" was never defined.
26121Usually this means the macro was only invoked conditionally." >&5
26122echo "$as_me: error: conditional \"HAVE_LDAP\" was never defined.
26123Usually this means the macro was only invoked conditionally." >&2;}
26124 { (exit 1); exit 1; }; }
26125fi
26126if test -z "${HAVE_AUTHPGSQL_TRUE}" && test -z "${HAVE_AUTHPGSQL_FALSE}"; then
26127 { { echo "$as_me:$LINENO: error: conditional \"HAVE_AUTHPGSQL\" was never defined.
26128Usually this means the macro was only invoked conditionally." >&5
26129echo "$as_me: error: conditional \"HAVE_AUTHPGSQL\" was never defined.
26130Usually this means the macro was only invoked conditionally." >&2;}
26131 { (exit 1); exit 1; }; }
26132fi
26133if test -z "${HAVE_AUTHMYSQL_TRUE}" && test -z "${HAVE_AUTHMYSQL_FALSE}"; then
26134 { { echo "$as_me:$LINENO: error: conditional \"HAVE_AUTHMYSQL\" was never defined.
26135Usually this means the macro was only invoked conditionally." >&5
26136echo "$as_me: error: conditional \"HAVE_AUTHMYSQL\" was never defined.
26137Usually this means the macro was only invoked conditionally." >&2;}
26138 { (exit 1); exit 1; }; }
26139fi
26140if test -z "${HAVE_CUSTOM_TRUE}" && test -z "${HAVE_CUSTOM_FALSE}"; then
26141 { { echo "$as_me:$LINENO: error: conditional \"HAVE_CUSTOM\" was never defined.
26142Usually this means the macro was only invoked conditionally." >&5
26143echo "$as_me: error: conditional \"HAVE_CUSTOM\" was never defined.
26144Usually this means the macro was only invoked conditionally." >&2;}
26145 { (exit 1); exit 1; }; }
26146fi
26147if test -z "${HAVE_PIPE_TRUE}" && test -z "${HAVE_PIPE_FALSE}"; then
26148 { { echo "$as_me:$LINENO: error: conditional \"HAVE_PIPE\" was never defined.
26149Usually this means the macro was only invoked conditionally." >&5
26150echo "$as_me: error: conditional \"HAVE_PIPE\" was never defined.
26151Usually this means the macro was only invoked conditionally." >&2;}
26152 { (exit 1); exit 1; }; }
26153fi
26154if test -z "${HAVE_SGML_TRUE}" && test -z "${HAVE_SGML_FALSE}"; then
26155 { { echo "$as_me:$LINENO: error: conditional \"HAVE_SGML\" was never defined.
26156Usually this means the macro was only invoked conditionally." >&5
26157echo "$as_me: error: conditional \"HAVE_SGML\" was never defined.
26158Usually this means the macro was only invoked conditionally." >&2;}
26159 { (exit 1); exit 1; }; }
26160fi
26161
26162: ${CONFIG_STATUS=./config.status}
26163ac_clean_files_save=$ac_clean_files
26164ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26165{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
26166echo "$as_me: creating $CONFIG_STATUS" >&6;}
26167cat >$CONFIG_STATUS <<_ACEOF
26168#! $SHELL
26169# Generated by $as_me.
26170# Run this file to recreate the current configuration.
26171# Compiler output produced by configure, useful for debugging
26172# configure, is in config.log if it exists.
26173
26174debug=false
26175ac_cs_recheck=false
26176ac_cs_silent=false
26177SHELL=\${CONFIG_SHELL-$SHELL}
26178_ACEOF
26179
26180cat >>$CONFIG_STATUS <<\_ACEOF
26181## --------------------- ##
26182## M4sh Initialization. ##
26183## --------------------- ##
26184
64ff59ba 26185# Be more Bourne compatible
26186DUALCASE=1; export DUALCASE # for MKS sh
d9898ee8 26187if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26188 emulate sh
26189 NULLCMD=:
26190 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
26191 # is contrary to our usage. Disable this feature.
26192 alias -g '${1+"$@"}'='"$@"'
64ff59ba 26193 setopt NO_GLOB_SUBST
26194else
26195 case `(set -o) 2>/dev/null` in
26196 *posix*) set -o posix ;;
26197esac
26198
26199fi
26200
26201
26202
26203
26204# PATH needs CR
26205# Avoid depending upon Character Ranges.
26206as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26207as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26208as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26209as_cr_digits='0123456789'
26210as_cr_alnum=$as_cr_Letters$as_cr_digits
26211
26212# The user is always right.
26213if test "${PATH_SEPARATOR+set}" != set; then
26214 echo "#! /bin/sh" >conf$$.sh
26215 echo "exit 0" >>conf$$.sh
26216 chmod +x conf$$.sh
26217 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
26218 PATH_SEPARATOR=';'
26219 else
26220 PATH_SEPARATOR=:
26221 fi
26222 rm -f conf$$.sh
d9898ee8 26223fi
d9898ee8 26224
26225# Support unset when possible.
26226if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26227 as_unset=unset
26228else
26229 as_unset=false
26230fi
26231
26232
64ff59ba 26233# IFS
26234# We need space, tab and new line, in precisely that order. Quoting is
26235# there to prevent editors from complaining about space-tab.
26236# (If _AS_PATH_WALK were called with IFS unset, it would disable word
26237# splitting by setting IFS to empty value.)
26238as_nl='
26239'
26240IFS=" "" $as_nl"
26241
26242# Find who we are. Look in the path if we contain no directory separator.
26243case $0 in
26244 *[\\/]* ) as_myself=$0 ;;
26245 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26246for as_dir in $PATH
26247do
26248 IFS=$as_save_IFS
26249 test -z "$as_dir" && as_dir=.
26250 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26251done
26252IFS=$as_save_IFS
26253
26254 ;;
26255esac
26256# We did not find ourselves, most probably we were run as `sh COMMAND'
26257# in which case we are not to be found in the path.
26258if test "x$as_myself" = x; then
26259 as_myself=$0
26260fi
26261if test ! -f "$as_myself"; then
26262 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26263 { (exit 1); exit 1; }
26264fi
26265
d9898ee8 26266# Work around bugs in pre-3.0 UWIN ksh.
64ff59ba 26267for as_var in ENV MAIL MAILPATH
26268do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26269done
d9898ee8 26270PS1='$ '
26271PS2='> '
26272PS4='+ '
26273
26274# NLS nuisances.
26275for as_var in \
26276 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
26277 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
26278 LC_TELEPHONE LC_TIME
26279do
26280 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
26281 eval $as_var=C; export $as_var
26282 else
64ff59ba 26283 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
d9898ee8 26284 fi
26285done
26286
26287# Required to use basename.
64ff59ba 26288if expr a : '\(a\)' >/dev/null 2>&1 &&
26289 test "X`expr 00001 : '.*\(...\)'`" = X001; then
d9898ee8 26290 as_expr=expr
26291else
26292 as_expr=false
26293fi
26294
64ff59ba 26295if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
d9898ee8 26296 as_basename=basename
26297else
26298 as_basename=false
26299fi
26300
26301
26302# Name of the executable.
64ff59ba 26303as_me=`$as_basename -- "$0" ||
d9898ee8 26304$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26305 X"$0" : 'X\(//\)$' \| \
64ff59ba 26306 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
d9898ee8 26307echo X/"$0" |
64ff59ba 26308 sed '/^.*\/\([^/][^/]*\)\/*$/{
26309 s//\1/
26310 q
26311 }
26312 /^X\/\(\/\/\)$/{
26313 s//\1/
26314 q
26315 }
26316 /^X\/\(\/\).*/{
26317 s//\1/
26318 q
26319 }
26320 s/.*/./; q'`
d9898ee8 26321
64ff59ba 26322# CDPATH.
26323$as_unset CDPATH
d9898ee8 26324
d9898ee8 26325
26326
26327 as_lineno_1=$LINENO
26328 as_lineno_2=$LINENO
d9898ee8 26329 test "x$as_lineno_1" != "x$as_lineno_2" &&
64ff59ba 26330 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
d9898ee8 26331
26332 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26333 # uniformly replaced by the line number. The first 'sed' inserts a
64ff59ba 26334 # line-number line after each line using $LINENO; the second 'sed'
26335 # does the real work. The second script uses 'N' to pair each
26336 # line-number line with the line containing $LINENO, and appends
26337 # trailing '-' during substitution so that $LINENO is not a special
26338 # case at line end.
d9898ee8 26339 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
64ff59ba 26340 # scripts with optimization help from Paolo Bonzini. Blame Lee
26341 # E. McMahon (1931-1989) for sed's syntax. :-)
26342 sed -n '
26343 p
26344 /[$]LINENO/=
26345 ' <$as_myself |
d9898ee8 26346 sed '
64ff59ba 26347 s/[$]LINENO.*/&-/
26348 t lineno
26349 b
26350 :lineno
d9898ee8 26351 N
64ff59ba 26352 :loop
26353 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
d9898ee8 26354 t loop
64ff59ba 26355 s/-\n.*//
d9898ee8 26356 ' >$as_me.lineno &&
64ff59ba 26357 chmod +x "$as_me.lineno" ||
26358 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
d9898ee8 26359 { (exit 1); exit 1; }; }
26360
26361 # Don't try to exec as it changes $[0], causing all sort of problems
26362 # (the dirname of $[0] is not the place where we might find the
64ff59ba 26363 # original and so on. Autoconf is especially sensitive to this).
26364 . "./$as_me.lineno"
d9898ee8 26365 # Exit status is that of the last command.
26366 exit
26367}
26368
26369
64ff59ba 26370if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26371 as_dirname=dirname
26372else
26373 as_dirname=false
26374fi
26375
26376ECHO_C= ECHO_N= ECHO_T=
26377case `echo -n x` in
26378-n*)
26379 case `echo 'x\c'` in
26380 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
26381 *) ECHO_C='\c';;
26382 esac;;
26383*)
26384 ECHO_N='-n';;
d9898ee8 26385esac
26386
64ff59ba 26387if expr a : '\(a\)' >/dev/null 2>&1 &&
26388 test "X`expr 00001 : '.*\(...\)'`" = X001; then
d9898ee8 26389 as_expr=expr
26390else
26391 as_expr=false
26392fi
26393
26394rm -f conf$$ conf$$.exe conf$$.file
64ff59ba 26395if test -d conf$$.dir; then
26396 rm -f conf$$.dir/conf$$.file
26397else
26398 rm -f conf$$.dir
26399 mkdir conf$$.dir
26400fi
d9898ee8 26401echo >conf$$.file
26402if ln -s conf$$.file conf$$ 2>/dev/null; then
64ff59ba 26403 as_ln_s='ln -s'
26404 # ... but there are two gotchas:
26405 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26406 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26407 # In both cases, we have to default to `cp -p'.
26408 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
d9898ee8 26409 as_ln_s='cp -p'
d9898ee8 26410elif ln conf$$.file conf$$ 2>/dev/null; then
26411 as_ln_s=ln
26412else
26413 as_ln_s='cp -p'
26414fi
64ff59ba 26415rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26416rmdir conf$$.dir 2>/dev/null
d9898ee8 26417
26418if mkdir -p . 2>/dev/null; then
26419 as_mkdir_p=:
26420else
26421 test -d ./-p && rmdir ./-p
26422 as_mkdir_p=false
26423fi
26424
64ff59ba 26425if test -x / >/dev/null 2>&1; then
26426 as_test_x='test -x'
26427else
26428 if ls -dL / >/dev/null 2>&1; then
26429 as_ls_L_option=L
26430 else
26431 as_ls_L_option=
26432 fi
26433 as_test_x='
26434 eval sh -c '\''
26435 if test -d "$1"; then
26436 test -d "$1/.";
26437 else
26438 case $1 in
26439 -*)set "./$1";;
26440 esac;
26441 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
26442 ???[sx]*):;;*)false;;esac;fi
26443 '\'' sh
26444 '
26445fi
26446as_executable_p=$as_test_x
d9898ee8 26447
26448# Sed expression to map a string onto a valid CPP name.
26449as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26450
26451# Sed expression to map a string onto a valid variable name.
26452as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26453
26454
d9898ee8 26455exec 6>&1
26456
64ff59ba 26457# Save the log message, to keep $[0] and so on meaningful, and to
d9898ee8 26458# report actual input values of CONFIG_FILES etc. instead of their
64ff59ba 26459# values after options handling.
26460ac_log="
26461This file was extended by courier-authlib $as_me 0.60.1, which was
26462generated by GNU Autoconf 2.61. Invocation command line was
d9898ee8 26463
26464 CONFIG_FILES = $CONFIG_FILES
26465 CONFIG_HEADERS = $CONFIG_HEADERS
26466 CONFIG_LINKS = $CONFIG_LINKS
26467 CONFIG_COMMANDS = $CONFIG_COMMANDS
26468 $ $0 $@
26469
64ff59ba 26470on `(hostname || uname -n) 2>/dev/null | sed 1q`
26471"
26472
d9898ee8 26473_ACEOF
26474
64ff59ba 26475cat >>$CONFIG_STATUS <<_ACEOF
d9898ee8 26476# Files that config.status was made for.
64ff59ba 26477config_files="$ac_config_files"
26478config_headers="$ac_config_headers"
26479config_commands="$ac_config_commands"
d9898ee8 26480
64ff59ba 26481_ACEOF
d9898ee8 26482
26483cat >>$CONFIG_STATUS <<\_ACEOF
d9898ee8 26484ac_cs_usage="\
26485\`$as_me' instantiates files from templates according to the
26486current configuration.
26487
26488Usage: $0 [OPTIONS] [FILE]...
26489
26490 -h, --help print this help, then exit
64ff59ba 26491 -V, --version print version number and configuration settings, then exit
d9898ee8 26492 -q, --quiet do not print progress messages
26493 -d, --debug don't remove temporary files
26494 --recheck update $as_me by reconfiguring in the same conditions
26495 --file=FILE[:TEMPLATE]
26496 instantiate the configuration file FILE
26497 --header=FILE[:TEMPLATE]
26498 instantiate the configuration header FILE
26499
26500Configuration files:
26501$config_files
26502
26503Configuration headers:
26504$config_headers
26505
26506Configuration commands:
26507$config_commands
26508
26509Report bugs to <bug-autoconf@gnu.org>."
d9898ee8 26510
64ff59ba 26511_ACEOF
d9898ee8 26512cat >>$CONFIG_STATUS <<_ACEOF
26513ac_cs_version="\\
64ff59ba 26514courier-authlib config.status 0.60.1
26515configured by $0, generated by GNU Autoconf 2.61,
26516 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
d9898ee8 26517
64ff59ba 26518Copyright (C) 2006 Free Software Foundation, Inc.
d9898ee8 26519This config.status script is free software; the Free Software Foundation
26520gives unlimited permission to copy, distribute and modify it."
64ff59ba 26521
26522ac_pwd='$ac_pwd'
26523srcdir='$srcdir'
26524INSTALL='$INSTALL'
26525MKDIR_P='$MKDIR_P'
d9898ee8 26526_ACEOF
26527
26528cat >>$CONFIG_STATUS <<\_ACEOF
26529# If no file are specified by the user, then we need to provide default
26530# value. By we need to know if files were specified by the user.
26531ac_need_defaults=:
26532while test $# != 0
26533do
26534 case $1 in
26535 --*=*)
64ff59ba 26536 ac_option=`expr "X$1" : 'X\([^=]*\)='`
26537 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
d9898ee8 26538 ac_shift=:
26539 ;;
64ff59ba 26540 *)
d9898ee8 26541 ac_option=$1
26542 ac_optarg=$2
26543 ac_shift=shift
26544 ;;
d9898ee8 26545 esac
26546
26547 case $ac_option in
26548 # Handling of the options.
d9898ee8 26549 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26550 ac_cs_recheck=: ;;
64ff59ba 26551 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26552 echo "$ac_cs_version"; exit ;;
26553 --debug | --debu | --deb | --de | --d | -d )
d9898ee8 26554 debug=: ;;
26555 --file | --fil | --fi | --f )
26556 $ac_shift
26557 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
26558 ac_need_defaults=false;;
26559 --header | --heade | --head | --hea )
26560 $ac_shift
26561 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
26562 ac_need_defaults=false;;
64ff59ba 26563 --he | --h)
26564 # Conflict between --help and --header
26565 { echo "$as_me: error: ambiguous option: $1
26566Try \`$0 --help' for more information." >&2
26567 { (exit 1); exit 1; }; };;
26568 --help | --hel | -h )
26569 echo "$ac_cs_usage"; exit ;;
d9898ee8 26570 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26571 | -silent | --silent | --silen | --sile | --sil | --si | --s)
26572 ac_cs_silent=: ;;
26573
26574 # This is an error.
64ff59ba 26575 -*) { echo "$as_me: error: unrecognized option: $1
26576Try \`$0 --help' for more information." >&2
d9898ee8 26577 { (exit 1); exit 1; }; } ;;
26578
64ff59ba 26579 *) ac_config_targets="$ac_config_targets $1"
26580 ac_need_defaults=false ;;
d9898ee8 26581
26582 esac
26583 shift
26584done
26585
26586ac_configure_extra_args=
26587
26588if $ac_cs_silent; then
26589 exec 6>/dev/null
26590 ac_configure_extra_args="$ac_configure_extra_args --silent"
26591fi
26592
26593_ACEOF
26594cat >>$CONFIG_STATUS <<_ACEOF
26595if \$ac_cs_recheck; then
64ff59ba 26596 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
26597 CONFIG_SHELL=$SHELL
26598 export CONFIG_SHELL
26599 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
d9898ee8 26600fi
26601
26602_ACEOF
64ff59ba 26603cat >>$CONFIG_STATUS <<\_ACEOF
26604exec 5>>config.log
26605{
26606 echo
26607 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26608## Running $as_me. ##
26609_ASBOX
26610 echo "$ac_log"
26611} >&5
d9898ee8 26612
64ff59ba 26613_ACEOF
d9898ee8 26614cat >>$CONFIG_STATUS <<_ACEOF
26615#
64ff59ba 26616# INIT-COMMANDS
d9898ee8 26617#
d9898ee8 26618AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
26619
26620_ACEOF
26621
d9898ee8 26622cat >>$CONFIG_STATUS <<\_ACEOF
64ff59ba 26623
26624# Handling of arguments.
d9898ee8 26625for ac_config_target in $ac_config_targets
26626do
64ff59ba 26627 case $ac_config_target in
26628 "courier_auth_config.h") CONFIG_HEADERS="$CONFIG_HEADERS courier_auth_config.h" ;;
26629 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
26630 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26631 "authdaemond") CONFIG_FILES="$CONFIG_FILES authdaemond" ;;
26632 "authdaemonrc") CONFIG_FILES="$CONFIG_FILES authdaemonrc" ;;
26633 "authsystem.passwd") CONFIG_FILES="$CONFIG_FILES authsystem.passwd" ;;
26634 "README.authdebug.html") CONFIG_FILES="$CONFIG_FILES README.authdebug.html" ;;
26635 "dbobj.h") CONFIG_FILES="$CONFIG_FILES dbobj.h" ;;
26636 "authmigrate") CONFIG_FILES="$CONFIG_FILES authmigrate" ;;
26637 "courier-authlib.spec") CONFIG_FILES="$CONFIG_FILES courier-authlib.spec" ;;
26638 "courier-authlib.lpspec") CONFIG_FILES="$CONFIG_FILES courier-authlib.lpspec" ;;
26639 "courier-authlib.sysvinit") CONFIG_FILES="$CONFIG_FILES courier-authlib.sysvinit" ;;
26640 "userdb-test-cram-md5.pl") CONFIG_FILES="$CONFIG_FILES userdb-test-cram-md5.pl" ;;
26641
d9898ee8 26642 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26643echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26644 { (exit 1); exit 1; }; };;
26645 esac
26646done
26647
64ff59ba 26648
d9898ee8 26649# If the user did not use the arguments to specify the items to instantiate,
26650# then the envvar interface is used. Set only those that are not.
26651# We use the long form for the default assignment because of an extremely
26652# bizarre bug on SunOS 4.1.3.
26653if $ac_need_defaults; then
26654 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26655 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26656 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26657fi
26658
26659# Have a temporary directory for convenience. Make it in the build tree
64ff59ba 26660# simply because there is no reason against having it here, and in addition,
d9898ee8 26661# creating and moving files from /tmp can sometimes cause problems.
64ff59ba 26662# Hook for its removal unless debugging.
26663# Note that there is a small window in which the directory will not be cleaned:
26664# after its creation but before its name has been assigned to `$tmp'.
d9898ee8 26665$debug ||
26666{
64ff59ba 26667 tmp=
26668 trap 'exit_status=$?
26669 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26670' 0
d9898ee8 26671 trap '{ (exit 1); exit 1; }' 1 2 13 15
26672}
d9898ee8 26673# Create a (secure) tmp directory for tmp files.
26674
26675{
64ff59ba 26676 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
d9898ee8 26677 test -n "$tmp" && test -d "$tmp"
26678} ||
26679{
64ff59ba 26680 tmp=./conf$$-$RANDOM
26681 (umask 077 && mkdir "$tmp")
d9898ee8 26682} ||
26683{
26684 echo "$me: cannot create a temporary directory in ." >&2
26685 { (exit 1); exit 1; }
26686}
26687
d9898ee8 26688#
64ff59ba 26689# Set up the sed scripts for CONFIG_FILES section.
d9898ee8 26690#
26691
26692# No need to generate the scripts if there are no CONFIG_FILES.
26693# This happens for instance when ./config.status config.h
64ff59ba 26694if test -n "$CONFIG_FILES"; then
26695
26696_ACEOF
26697
26698
26699
26700ac_delim='%!_!# '
26701for ac_last_try in false false false false false :; do
26702 cat >conf$$subs.sed <<_ACEOF
26703SHELL!$SHELL$ac_delim
26704PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
26705PACKAGE_NAME!$PACKAGE_NAME$ac_delim
26706PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
26707PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
26708PACKAGE_STRING!$PACKAGE_STRING$ac_delim
26709PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
26710exec_prefix!$exec_prefix$ac_delim
26711prefix!$prefix$ac_delim
26712program_transform_name!$program_transform_name$ac_delim
26713bindir!$bindir$ac_delim
26714sbindir!$sbindir$ac_delim
26715libexecdir!$libexecdir$ac_delim
26716datarootdir!$datarootdir$ac_delim
26717datadir!$datadir$ac_delim
26718sysconfdir!$sysconfdir$ac_delim
26719sharedstatedir!$sharedstatedir$ac_delim
26720localstatedir!$localstatedir$ac_delim
26721includedir!$includedir$ac_delim
26722oldincludedir!$oldincludedir$ac_delim
26723docdir!$docdir$ac_delim
26724infodir!$infodir$ac_delim
26725htmldir!$htmldir$ac_delim
26726dvidir!$dvidir$ac_delim
26727pdfdir!$pdfdir$ac_delim
26728psdir!$psdir$ac_delim
26729libdir!$libdir$ac_delim
26730localedir!$localedir$ac_delim
26731mandir!$mandir$ac_delim
26732DEFS!$DEFS$ac_delim
26733ECHO_C!$ECHO_C$ac_delim
26734ECHO_N!$ECHO_N$ac_delim
26735ECHO_T!$ECHO_T$ac_delim
26736LIBS!$LIBS$ac_delim
26737build_alias!$build_alias$ac_delim
26738host_alias!$host_alias$ac_delim
26739target_alias!$target_alias$ac_delim
26740INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
26741INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
26742INSTALL_DATA!$INSTALL_DATA$ac_delim
26743am__isrc!$am__isrc$ac_delim
26744CYGPATH_W!$CYGPATH_W$ac_delim
26745PACKAGE!$PACKAGE$ac_delim
26746VERSION!$VERSION$ac_delim
26747ACLOCAL!$ACLOCAL$ac_delim
26748AUTOCONF!$AUTOCONF$ac_delim
26749AUTOMAKE!$AUTOMAKE$ac_delim
26750AUTOHEADER!$AUTOHEADER$ac_delim
26751MAKEINFO!$MAKEINFO$ac_delim
26752install_sh!$install_sh$ac_delim
26753STRIP!$STRIP$ac_delim
26754INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
26755mkdir_p!$mkdir_p$ac_delim
26756AWK!$AWK$ac_delim
26757SET_MAKE!$SET_MAKE$ac_delim
26758am__leading_dot!$am__leading_dot$ac_delim
26759AMTAR!$AMTAR$ac_delim
26760am__tar!$am__tar$ac_delim
26761am__untar!$am__untar$ac_delim
26762CC!$CC$ac_delim
26763CFLAGS!$CFLAGS$ac_delim
26764LDFLAGS!$LDFLAGS$ac_delim
26765CPPFLAGS!$CPPFLAGS$ac_delim
26766ac_ct_CC!$ac_ct_CC$ac_delim
26767EXEEXT!$EXEEXT$ac_delim
26768OBJEXT!$OBJEXT$ac_delim
26769DEPDIR!$DEPDIR$ac_delim
26770am__include!$am__include$ac_delim
26771am__quote!$am__quote$ac_delim
26772AMDEP_TRUE!$AMDEP_TRUE$ac_delim
26773AMDEP_FALSE!$AMDEP_FALSE$ac_delim
26774AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
26775CCDEPMODE!$CCDEPMODE$ac_delim
26776am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
26777am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
26778CPP!$CPP$ac_delim
26779LN_S!$LN_S$ac_delim
26780SYSCONFTOOL_PERL!$SYSCONFTOOL_PERL$ac_delim
26781SYSCONFTOOL!$SYSCONFTOOL$ac_delim
26782build!$build$ac_delim
26783build_cpu!$build_cpu$ac_delim
26784build_vendor!$build_vendor$ac_delim
26785build_os!$build_os$ac_delim
26786host!$host$ac_delim
26787host_cpu!$host_cpu$ac_delim
26788host_vendor!$host_vendor$ac_delim
26789host_os!$host_os$ac_delim
26790SED!$SED$ac_delim
26791GREP!$GREP$ac_delim
26792EGREP!$EGREP$ac_delim
26793ECHO!$ECHO$ac_delim
26794AR!$AR$ac_delim
26795RANLIB!$RANLIB$ac_delim
26796CXX!$CXX$ac_delim
26797CXXFLAGS!$CXXFLAGS$ac_delim
26798ac_ct_CXX!$ac_ct_CXX$ac_delim
26799CXXDEPMODE!$CXXDEPMODE$ac_delim
26800_ACEOF
26801
26802 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
26803 break
26804 elif $ac_last_try; then
26805 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26806echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26807 { (exit 1); exit 1; }; }
26808 else
26809 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
d9898ee8 26810 fi
64ff59ba 26811done
d9898ee8 26812
64ff59ba 26813ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26814if test -n "$ac_eof"; then
26815 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
26816 ac_eof=`expr $ac_eof + 1`
26817fi
26818
26819cat >>$CONFIG_STATUS <<_ACEOF
26820cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
26821/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26822_ACEOF
26823sed '
26824s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26825s/^/s,@/; s/!/@,|#_!!_#|/
26826:n
26827t n
26828s/'"$ac_delim"'$/,g/; t
26829s/$/\\/; p
26830N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26831' >>$CONFIG_STATUS <conf$$subs.sed
26832rm -f conf$$subs.sed
26833cat >>$CONFIG_STATUS <<_ACEOF
26834CEOF$ac_eof
26835_ACEOF
26836
26837
26838ac_delim='%!_!# '
26839for ac_last_try in false false false false false :; do
26840 cat >conf$$subs.sed <<_ACEOF
26841am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
26842am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
26843CXXCPP!$CXXCPP$ac_delim
26844F77!$F77$ac_delim
26845FFLAGS!$FFLAGS$ac_delim
26846ac_ct_F77!$ac_ct_F77$ac_delim
26847LIBTOOL!$LIBTOOL$ac_delim
26848LTDLINCL!$LTDLINCL$ac_delim
26849LIBLTDL!$LIBLTDL$ac_delim
26850PERL!$PERL$ac_delim
26851COURIERCONFIG!$COURIERCONFIG$ac_delim
26852EXPECT!$EXPECT$ac_delim
26853PASSWD!$PASSWD$ac_delim
26854MD5LIB!$MD5LIB$ac_delim
26855HAVE_MD5_TRUE!$HAVE_MD5_TRUE$ac_delim
26856HAVE_MD5_FALSE!$HAVE_MD5_FALSE$ac_delim
26857SHA1LIB!$SHA1LIB$ac_delim
26858HAVE_SHA1_TRUE!$HAVE_SHA1_TRUE$ac_delim
26859HAVE_SHA1_FALSE!$HAVE_SHA1_FALSE$ac_delim
26860HMACLIB!$HMACLIB$ac_delim
26861HAVE_HMACLIB_TRUE!$HAVE_HMACLIB_TRUE$ac_delim
26862HAVE_HMACLIB_FALSE!$HAVE_HMACLIB_FALSE$ac_delim
26863NETLIBS!$NETLIBS$ac_delim
26864DBSUBDIR!$DBSUBDIR$ac_delim
26865USE_GDBM!$USE_GDBM$ac_delim
26866USE_DB!$USE_DB$ac_delim
26867LIBDB!$LIBDB$ac_delim
26868LIBGDBM!$LIBGDBM$ac_delim
26869dblibrary!$dblibrary$ac_delim
26870LIBAUTHUSERDB!$LIBAUTHUSERDB$ac_delim
26871userdb!$userdb$ac_delim
26872LIBDL!$LIBDL$ac_delim
26873AUTHPAMCRYPT!$AUTHPAMCRYPT$ac_delim
26874LIBAUTHPAM!$LIBAUTHPAM$ac_delim
26875authldaprc!$authldaprc$ac_delim
26876LDAPLIBS!$LDAPLIBS$ac_delim
26877LIBAUTHLDAP!$LIBAUTHLDAP$ac_delim
26878HAVE_LDAP_TRUE!$HAVE_LDAP_TRUE$ac_delim
26879HAVE_LDAP_FALSE!$HAVE_LDAP_FALSE$ac_delim
26880SHADOWLIBS!$SHADOWLIBS$ac_delim
26881LIBAUTHSHADOW!$LIBAUTHSHADOW$ac_delim
26882LIBAUTHPWD!$LIBAUTHPWD$ac_delim
26883vpopmail_home!$vpopmail_home$ac_delim
26884VPOPMAILLIBS!$VPOPMAILLIBS$ac_delim
26885LIBAUTHVCHKPW!$LIBAUTHVCHKPW$ac_delim
26886authpgsqlrc!$authpgsqlrc$ac_delim
26887PG_CONFIG!$PG_CONFIG$ac_delim
26888PGSQL_LIBS!$PGSQL_LIBS$ac_delim
26889LIBAUTHPGSQL!$LIBAUTHPGSQL$ac_delim
26890HAVE_AUTHPGSQL_TRUE!$HAVE_AUTHPGSQL_TRUE$ac_delim
26891HAVE_AUTHPGSQL_FALSE!$HAVE_AUTHPGSQL_FALSE$ac_delim
26892authmysqlrc!$authmysqlrc$ac_delim
26893MYSQL_CONFIG!$MYSQL_CONFIG$ac_delim
26894LIBAUTHMYSQL!$LIBAUTHMYSQL$ac_delim
26895MYSQL_LIBS!$MYSQL_LIBS$ac_delim
26896HAVE_AUTHMYSQL_TRUE!$HAVE_AUTHMYSQL_TRUE$ac_delim
26897HAVE_AUTHMYSQL_FALSE!$HAVE_AUTHMYSQL_FALSE$ac_delim
26898HAVE_CUSTOM_TRUE!$HAVE_CUSTOM_TRUE$ac_delim
26899HAVE_CUSTOM_FALSE!$HAVE_CUSTOM_FALSE$ac_delim
26900LIBAUTHCUSTOM!$LIBAUTHCUSTOM$ac_delim
26901authProg!$authProg$ac_delim
26902HAVE_PIPE_TRUE!$HAVE_PIPE_TRUE$ac_delim
26903HAVE_PIPE_FALSE!$HAVE_PIPE_FALSE$ac_delim
26904LIBAUTHPIPE!$LIBAUTHPIPE$ac_delim
26905CRYPTLIBS!$CRYPTLIBS$ac_delim
26906authdaemonrc!$authdaemonrc$ac_delim
26907authdaemonvar!$authdaemonvar$ac_delim
26908LIBM!$LIBM$ac_delim
26909mailuser!$mailuser$ac_delim
26910mailgroup!$mailgroup$ac_delim
26911LIBLTDL_SUBDIR!$LIBLTDL_SUBDIR$ac_delim
26912REPOSITORY!$REPOSITORY$ac_delim
26913HAVE_SGML_TRUE!$HAVE_SGML_TRUE$ac_delim
26914HAVE_SGML_FALSE!$HAVE_SGML_FALSE$ac_delim
26915subdirs!$subdirs$ac_delim
26916LIBOBJS!$LIBOBJS$ac_delim
26917LTLIBOBJS!$LTLIBOBJS$ac_delim
26918_ACEOF
26919
26920 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 77; then
26921 break
26922 elif $ac_last_try; then
26923 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26924echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26925 { (exit 1); exit 1; }; }
26926 else
26927 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26928 fi
26929done
26930
26931ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26932if test -n "$ac_eof"; then
26933 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
26934 ac_eof=`expr $ac_eof + 1`
26935fi
26936
26937cat >>$CONFIG_STATUS <<_ACEOF
26938cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
26939/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
26940_ACEOF
26941sed '
26942s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26943s/^/s,@/; s/!/@,|#_!!_#|/
26944:n
26945t n
26946s/'"$ac_delim"'$/,g/; t
26947s/$/\\/; p
26948N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26949' >>$CONFIG_STATUS <conf$$subs.sed
26950rm -f conf$$subs.sed
26951cat >>$CONFIG_STATUS <<_ACEOF
26952:end
26953s/|#_!!_#|//g
26954CEOF$ac_eof
d9898ee8 26955_ACEOF
64ff59ba 26956
26957
26958# VPATH may cause trouble with some makes, so we remove $(srcdir),
26959# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26960# trailing colons and then remove the whole line if VPATH becomes empty
26961# (actually we leave an empty line to preserve line numbers).
26962if test "x$srcdir" = x.; then
26963 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26964s/:*\$(srcdir):*/:/
26965s/:*\${srcdir}:*/:/
26966s/:*@srcdir@:*/:/
26967s/^\([^=]*=[ ]*\):*/\1/
26968s/:*$//
26969s/^[^=]*=[ ]*$//
26970}'
26971fi
26972
d9898ee8 26973cat >>$CONFIG_STATUS <<\_ACEOF
64ff59ba 26974fi # test -n "$CONFIG_FILES"
26975
26976
26977for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
26978do
26979 case $ac_tag in
26980 :[FHLC]) ac_mode=$ac_tag; continue;;
26981 esac
26982 case $ac_mode$ac_tag in
26983 :[FHL]*:*);;
26984 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
26985echo "$as_me: error: Invalid tag $ac_tag." >&2;}
26986 { (exit 1); exit 1; }; };;
26987 :[FH]-) ac_tag=-:-;;
26988 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26989 esac
26990 ac_save_IFS=$IFS
26991 IFS=:
26992 set x $ac_tag
26993 IFS=$ac_save_IFS
26994 shift
26995 ac_file=$1
26996 shift
26997
26998 case $ac_mode in
26999 :L) ac_source=$1;;
27000 :[FH])
27001 ac_file_inputs=
27002 for ac_f
27003 do
27004 case $ac_f in
27005 -) ac_f="$tmp/stdin";;
27006 *) # Look for the file first in the build tree, then in the source tree
27007 # (if the path is not absolute). The absolute path cannot be DOS-style,
27008 # because $ac_f cannot contain `:'.
27009 test -f "$ac_f" ||
27010 case $ac_f in
27011 [\\/$]*) false;;
27012 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27013 esac ||
27014 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
27015echo "$as_me: error: cannot find input file: $ac_f" >&2;}
27016 { (exit 1); exit 1; }; };;
27017 esac
27018 ac_file_inputs="$ac_file_inputs $ac_f"
27019 done
27020
27021 # Let's still pretend it is `configure' which instantiates (i.e., don't
27022 # use $as_me), people would be surprised to read:
27023 # /* config.h. Generated by config.status. */
27024 configure_input="Generated from "`IFS=:
27025 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
27026 if test x"$ac_file" != x-; then
27027 configure_input="$ac_file. $configure_input"
27028 { echo "$as_me:$LINENO: creating $ac_file" >&5
27029echo "$as_me: creating $ac_file" >&6;}
27030 fi
27031
27032 case $ac_tag in
27033 *:-:* | *:-) cat >"$tmp/stdin";;
27034 esac
27035 ;;
d9898ee8 27036 esac
27037
64ff59ba 27038 ac_dir=`$as_dirname -- "$ac_file" ||
d9898ee8 27039$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27040 X"$ac_file" : 'X\(//\)[^/]' \| \
27041 X"$ac_file" : 'X\(//\)$' \| \
64ff59ba 27042 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
d9898ee8 27043echo X"$ac_file" |
64ff59ba 27044 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27045 s//\1/
27046 q
27047 }
27048 /^X\(\/\/\)[^/].*/{
27049 s//\1/
27050 q
27051 }
27052 /^X\(\/\/\)$/{
27053 s//\1/
27054 q
27055 }
27056 /^X\(\/\).*/{
27057 s//\1/
27058 q
27059 }
27060 s/.*/./; q'`
27061 { as_dir="$ac_dir"
27062 case $as_dir in #(
27063 -*) as_dir=./$as_dir;;
27064 esac
27065 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
d9898ee8 27066 as_dirs=
64ff59ba 27067 while :; do
27068 case $as_dir in #(
27069 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
27070 *) as_qdir=$as_dir;;
27071 esac
27072 as_dirs="'$as_qdir' $as_dirs"
27073 as_dir=`$as_dirname -- "$as_dir" ||
d9898ee8 27074$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27075 X"$as_dir" : 'X\(//\)[^/]' \| \
27076 X"$as_dir" : 'X\(//\)$' \| \
64ff59ba 27077 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
d9898ee8 27078echo X"$as_dir" |
64ff59ba 27079 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27080 s//\1/
27081 q
27082 }
27083 /^X\(\/\/\)[^/].*/{
27084 s//\1/
27085 q
27086 }
27087 /^X\(\/\/\)$/{
27088 s//\1/
27089 q
27090 }
27091 /^X\(\/\).*/{
27092 s//\1/
27093 q
27094 }
27095 s/.*/./; q'`
27096 test -d "$as_dir" && break
d9898ee8 27097 done
64ff59ba 27098 test -z "$as_dirs" || eval "mkdir $as_dirs"
27099 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27100echo "$as_me: error: cannot create directory $as_dir" >&2;}
d9898ee8 27101 { (exit 1); exit 1; }; }; }
d9898ee8 27102 ac_builddir=.
27103
64ff59ba 27104case "$ac_dir" in
27105.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27106*)
d9898ee8 27107 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
64ff59ba 27108 # A ".." for each directory in $ac_dir_suffix.
27109 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
27110 case $ac_top_builddir_sub in
27111 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27112 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27113 esac ;;
27114esac
27115ac_abs_top_builddir=$ac_pwd
27116ac_abs_builddir=$ac_pwd$ac_dir_suffix
27117# for backward compatibility:
27118ac_top_builddir=$ac_top_build_prefix
d9898ee8 27119
27120case $srcdir in
64ff59ba 27121 .) # We are building in place.
d9898ee8 27122 ac_srcdir=.
64ff59ba 27123 ac_top_srcdir=$ac_top_builddir_sub
27124 ac_abs_top_srcdir=$ac_pwd ;;
27125 [\\/]* | ?:[\\/]* ) # Absolute name.
d9898ee8 27126 ac_srcdir=$srcdir$ac_dir_suffix;
64ff59ba 27127 ac_top_srcdir=$srcdir
27128 ac_abs_top_srcdir=$srcdir ;;
27129 *) # Relative name.
27130 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27131 ac_top_srcdir=$ac_top_build_prefix$srcdir
27132 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
d9898ee8 27133esac
64ff59ba 27134ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
d9898ee8 27135
d9898ee8 27136
64ff59ba 27137 case $ac_mode in
27138 :F)
27139 #
27140 # CONFIG_FILE
27141 #
d9898ee8 27142
27143 case $INSTALL in
27144 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
64ff59ba 27145 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
d9898ee8 27146 esac
64ff59ba 27147 ac_MKDIR_P=$MKDIR_P
27148 case $MKDIR_P in
27149 [\\/$]* | ?:[\\/]* ) ;;
27150 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
27151 esac
27152_ACEOF
d9898ee8 27153
64ff59ba 27154cat >>$CONFIG_STATUS <<\_ACEOF
27155# If the template does not know about datarootdir, expand it.
27156# FIXME: This hack should be removed a few years after 2.60.
27157ac_datarootdir_hack=; ac_datarootdir_seen=
27158
27159case `sed -n '/datarootdir/ {
27160 p
27161 q
27162}
27163/@datadir@/p
27164/@docdir@/p
27165/@infodir@/p
27166/@localedir@/p
27167/@mandir@/p
27168' $ac_file_inputs` in
27169*datarootdir*) ac_datarootdir_seen=yes;;
27170*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
27171 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27172echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
d9898ee8 27173_ACEOF
64ff59ba 27174cat >>$CONFIG_STATUS <<_ACEOF
27175 ac_datarootdir_hack='
27176 s&@datadir@&$datadir&g
27177 s&@docdir@&$docdir&g
27178 s&@infodir@&$infodir&g
27179 s&@localedir@&$localedir&g
27180 s&@mandir@&$mandir&g
27181 s&\\\${datarootdir}&$datarootdir&g' ;;
27182esac
27183_ACEOF
27184
27185# Neutralize VPATH when `$srcdir' = `.'.
27186# Shell code in configure.ac might set extrasub.
27187# FIXME: do we really want to maintain this feature?
d9898ee8 27188cat >>$CONFIG_STATUS <<_ACEOF
27189 sed "$ac_vpsub
27190$extrasub
27191_ACEOF
27192cat >>$CONFIG_STATUS <<\_ACEOF
27193:t
27194/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
64ff59ba 27195s&@configure_input@&$configure_input&;t t
27196s&@top_builddir@&$ac_top_builddir_sub&;t t
27197s&@srcdir@&$ac_srcdir&;t t
27198s&@abs_srcdir@&$ac_abs_srcdir&;t t
27199s&@top_srcdir@&$ac_top_srcdir&;t t
27200s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27201s&@builddir@&$ac_builddir&;t t
27202s&@abs_builddir@&$ac_abs_builddir&;t t
27203s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27204s&@INSTALL@&$ac_INSTALL&;t t
27205s&@MKDIR_P@&$ac_MKDIR_P&;t t
27206$ac_datarootdir_hack
27207" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
27208
27209test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27210 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
27211 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
27212 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27213which seems to be undefined. Please make sure it is defined." >&5
27214echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27215which seems to be undefined. Please make sure it is defined." >&2;}
27216
27217 rm -f "$tmp/stdin"
d9898ee8 27218 case $ac_file in
64ff59ba 27219 -) cat "$tmp/out"; rm -f "$tmp/out";;
27220 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
d9898ee8 27221 esac
64ff59ba 27222 ;;
27223 :H)
27224 #
27225 # CONFIG_HEADER
27226 #
27227_ACEOF
d9898ee8 27228
64ff59ba 27229# Transform confdefs.h into a sed script `conftest.defines', that
27230# substitutes the proper values into config.h.in to produce config.h.
27231rm -f conftest.defines conftest.tail
27232# First, append a space to every undef/define line, to ease matching.
27233echo 's/$/ /' >conftest.defines
27234# Then, protect against being on the right side of a sed subst, or in
27235# an unquoted here document, in config.status. If some macros were
27236# called several times there might be several #defines for the same
27237# symbol, which is useless. But do not sort them, since the last
27238# AC_DEFINE must be honored.
27239ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27240# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
27241# NAME is the cpp macro being defined, VALUE is the value it is being given.
27242# PARAMS is the parameter list in the macro definition--in most cases, it's
27243# just an empty string.
27244ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
27245ac_dB='\\)[ (].*,\\1define\\2'
27246ac_dC=' '
27247ac_dD=' ,'
27248
27249uniq confdefs.h |
27250 sed -n '
27251 t rset
27252 :rset
27253 s/^[ ]*#[ ]*define[ ][ ]*//
27254 t ok
27255 d
27256 :ok
27257 s/[\\&,]/\\&/g
27258 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
27259 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
27260 ' >>conftest.defines
27261
27262# Remove the space that was appended to ease matching.
27263# Then replace #undef with comments. This is necessary, for
d9898ee8 27264# example, in the case of _POSIX_SOURCE, which is predefined and required
27265# on some systems where configure will not decide to define it.
64ff59ba 27266# (The regexp can be short, since the line contains either #define or #undef.)
27267echo 's/ $//
27268s,^[ #]*u.*,/* & */,' >>conftest.defines
27269
27270# Break up conftest.defines:
27271ac_max_sed_lines=50
27272
27273# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
27274# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
27275# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
27276# et cetera.
27277ac_in='$ac_file_inputs'
27278ac_out='"$tmp/out1"'
27279ac_nxt='"$tmp/out2"'
27280
27281while :
d9898ee8 27282do
64ff59ba 27283 # Write a here document:
27284 cat >>$CONFIG_STATUS <<_ACEOF
27285 # First, check the format of the line:
27286 cat >"\$tmp/defines.sed" <<\\CEOF
27287/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
27288/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
27289b
27290:def
27291_ACEOF
27292 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
d9898ee8 27293 echo 'CEOF
64ff59ba 27294 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
27295 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
27296 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
27297 grep . conftest.tail >/dev/null || break
d9898ee8 27298 rm -f conftest.defines
27299 mv conftest.tail conftest.defines
27300done
64ff59ba 27301rm -f conftest.defines conftest.tail
d9898ee8 27302
64ff59ba 27303echo "ac_result=$ac_in" >>$CONFIG_STATUS
d9898ee8 27304cat >>$CONFIG_STATUS <<\_ACEOF
d9898ee8 27305 if test x"$ac_file" != x-; then
64ff59ba 27306 echo "/* $configure_input */" >"$tmp/config.h"
27307 cat "$ac_result" >>"$tmp/config.h"
27308 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
d9898ee8 27309 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27310echo "$as_me: $ac_file is unchanged" >&6;}
27311 else
d9898ee8 27312 rm -f $ac_file
64ff59ba 27313 mv "$tmp/config.h" $ac_file
d9898ee8 27314 fi
27315 else
64ff59ba 27316 echo "/* $configure_input */"
27317 cat "$ac_result"
d9898ee8 27318 fi
64ff59ba 27319 rm -f "$tmp/out12"
d9898ee8 27320# Compute $ac_file's index in $config_headers.
27321_am_stamp_count=1
27322for _am_header in $config_headers :; do
27323 case $_am_header in
27324 $ac_file | $ac_file:* )
27325 break ;;
27326 * )
27327 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
27328 esac
27329done
64ff59ba 27330echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
d9898ee8 27331$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27332 X$ac_file : 'X\(//\)[^/]' \| \
27333 X$ac_file : 'X\(//\)$' \| \
64ff59ba 27334 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
d9898ee8 27335echo X$ac_file |
64ff59ba 27336 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27337 s//\1/
27338 q
27339 }
27340 /^X\(\/\/\)[^/].*/{
27341 s//\1/
27342 q
27343 }
27344 /^X\(\/\/\)$/{
27345 s//\1/
27346 q
27347 }
27348 /^X\(\/\).*/{
27349 s//\1/
27350 q
27351 }
27352 s/.*/./; q'`/stamp-h$_am_stamp_count
27353 ;;
d9898ee8 27354
64ff59ba 27355 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
27356echo "$as_me: executing $ac_file commands" >&6;}
27357 ;;
27358 esac
d9898ee8 27359
27360
64ff59ba 27361 case $ac_file$ac_mode in
27362 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
d9898ee8 27363 # Strip MF so we end up with the name of the file.
27364 mf=`echo "$mf" | sed -e 's/:.*$//'`
27365 # Check whether this is an Automake generated Makefile or not.
27366 # We used to match only the files named `Makefile.in', but
27367 # some people rename them; so instead we look at the file content.
27368 # Grep'ing the first line is not enough: some people post-process
27369 # each Makefile.in and add a new line on top of each file to say so.
64ff59ba 27370 # Grep'ing the whole file is not good either: AIX grep has a line
27371 # limit of 2048, but all sed's we know have understand at least 4000.
27372 if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
27373 dirpart=`$as_dirname -- "$mf" ||
d9898ee8 27374$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27375 X"$mf" : 'X\(//\)[^/]' \| \
27376 X"$mf" : 'X\(//\)$' \| \
64ff59ba 27377 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
d9898ee8 27378echo X"$mf" |
64ff59ba 27379 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27380 s//\1/
27381 q
27382 }
27383 /^X\(\/\/\)[^/].*/{
27384 s//\1/
27385 q
27386 }
27387 /^X\(\/\/\)$/{
27388 s//\1/
27389 q
27390 }
27391 /^X\(\/\).*/{
27392 s//\1/
27393 q
27394 }
27395 s/.*/./; q'`
d9898ee8 27396 else
27397 continue
27398 fi
27399 # Extract the definition of DEPDIR, am__include, and am__quote
27400 # from the Makefile without running `make'.
27401 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
27402 test -z "$DEPDIR" && continue
27403 am__include=`sed -n 's/^am__include = //p' < "$mf"`
27404 test -z "am__include" && continue
27405 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
27406 # When using ansi2knr, U may be empty or an underscore; expand it
27407 U=`sed -n 's/^U = //p' < "$mf"`
27408 # Find all dependency output files, they are included files with
27409 # $(DEPDIR) in their names. We invoke sed twice because it is the
27410 # simplest approach to changing $(DEPDIR) to its actual value in the
27411 # expansion.
27412 for file in `sed -n "
27413 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
27414 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
27415 # Make sure the directory exists.
27416 test -f "$dirpart/$file" && continue
64ff59ba 27417 fdir=`$as_dirname -- "$file" ||
d9898ee8 27418$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27419 X"$file" : 'X\(//\)[^/]' \| \
27420 X"$file" : 'X\(//\)$' \| \
64ff59ba 27421 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
d9898ee8 27422echo X"$file" |
64ff59ba 27423 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27424 s//\1/
27425 q
27426 }
27427 /^X\(\/\/\)[^/].*/{
27428 s//\1/
27429 q
27430 }
27431 /^X\(\/\/\)$/{
27432 s//\1/
27433 q
27434 }
27435 /^X\(\/\).*/{
27436 s//\1/
27437 q
27438 }
27439 s/.*/./; q'`
27440 { as_dir=$dirpart/$fdir
27441 case $as_dir in #(
27442 -*) as_dir=./$as_dir;;
27443 esac
27444 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
d9898ee8 27445 as_dirs=
64ff59ba 27446 while :; do
27447 case $as_dir in #(
27448 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
27449 *) as_qdir=$as_dir;;
27450 esac
27451 as_dirs="'$as_qdir' $as_dirs"
27452 as_dir=`$as_dirname -- "$as_dir" ||
d9898ee8 27453$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27454 X"$as_dir" : 'X\(//\)[^/]' \| \
27455 X"$as_dir" : 'X\(//\)$' \| \
64ff59ba 27456 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
d9898ee8 27457echo X"$as_dir" |
64ff59ba 27458 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27459 s//\1/
27460 q
27461 }
27462 /^X\(\/\/\)[^/].*/{
27463 s//\1/
27464 q
27465 }
27466 /^X\(\/\/\)$/{
27467 s//\1/
27468 q
27469 }
27470 /^X\(\/\).*/{
27471 s//\1/
27472 q
27473 }
27474 s/.*/./; q'`
27475 test -d "$as_dir" && break
d9898ee8 27476 done
64ff59ba 27477 test -z "$as_dirs" || eval "mkdir $as_dirs"
27478 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27479echo "$as_me: error: cannot create directory $as_dir" >&2;}
d9898ee8 27480 { (exit 1); exit 1; }; }; }
d9898ee8 27481 # echo "creating $dirpart/$file"
27482 echo '# dummy' > "$dirpart/$file"
27483 done
27484done
27485 ;;
64ff59ba 27486
d9898ee8 27487 esac
64ff59ba 27488done # for ac_tag
d9898ee8 27489
d9898ee8 27490
27491{ (exit 0); exit 0; }
27492_ACEOF
27493chmod +x $CONFIG_STATUS
27494ac_clean_files=$ac_clean_files_save
27495
27496
27497# configure is writing to config.log, and then calls config.status.
27498# config.status does its own redirection, appending to config.log.
27499# Unfortunately, on DOS this fails, as config.log is still kept open
27500# by configure, so config.status won't be able to write to it; its
27501# output is simply discarded. So we exec the FD to /dev/null,
27502# effectively closing config.log, so it can be properly (re)opened and
27503# appended to by config.status. When coming back to configure, we
27504# need to make the FD available again.
27505if test "$no_create" != yes; then
27506 ac_cs_success=:
27507 ac_config_status_args=
27508 test "$silent" = yes &&
27509 ac_config_status_args="$ac_config_status_args --quiet"
27510 exec 5>/dev/null
27511 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27512 exec 5>>config.log
27513 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27514 # would make configure fail if this is the last instruction.
27515 $ac_cs_success || { (exit 1); exit 1; }
27516fi
27517
27518#
27519# CONFIG_SUBDIRS section.
27520#
27521if test "$no_recursion" != yes; then
27522
27523 # Remove --cache-file and --srcdir arguments so they do not pile up.
27524 ac_sub_configure_args=
27525 ac_prev=
64ff59ba 27526 eval "set x $ac_configure_args"
27527 shift
27528 for ac_arg
27529 do
d9898ee8 27530 if test -n "$ac_prev"; then
27531 ac_prev=
27532 continue
27533 fi
27534 case $ac_arg in
27535 -cache-file | --cache-file | --cache-fil | --cache-fi \
27536 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
27537 ac_prev=cache_file ;;
27538 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
27539 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
27540 | --c=*)
27541 ;;
27542 --config-cache | -C)
27543 ;;
27544 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
27545 ac_prev=srcdir ;;
27546 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
27547 ;;
27548 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
27549 ac_prev=prefix ;;
27550 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
27551 ;;
64ff59ba 27552 *)
27553 case $ac_arg in
27554 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
27555 esac
27556 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
d9898ee8 27557 esac
27558 done
27559
27560 # Always prepend --prefix to ensure using the same prefix
27561 # in subdir configurations.
64ff59ba 27562 ac_arg="--prefix=$prefix"
27563 case $ac_arg in
27564 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
27565 esac
27566 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
27567
27568 # Pass --silent
27569 if test "$silent" = yes; then
27570 ac_sub_configure_args="--silent $ac_sub_configure_args"
27571 fi
d9898ee8 27572
27573 ac_popdir=`pwd`
27574 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
27575
27576 # Do not complain, so a configure script can configure whichever
27577 # parts of a large source tree are present.
64ff59ba 27578 test -d "$srcdir/$ac_dir" || continue
27579
27580 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
27581 echo "$as_me:$LINENO: $ac_msg" >&5
27582 echo "$ac_msg" >&6
27583 { as_dir="$ac_dir"
27584 case $as_dir in #(
27585 -*) as_dir=./$as_dir;;
27586 esac
27587 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
d9898ee8 27588 as_dirs=
64ff59ba 27589 while :; do
27590 case $as_dir in #(
27591 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
27592 *) as_qdir=$as_dir;;
27593 esac
27594 as_dirs="'$as_qdir' $as_dirs"
27595 as_dir=`$as_dirname -- "$as_dir" ||
d9898ee8 27596$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27597 X"$as_dir" : 'X\(//\)[^/]' \| \
27598 X"$as_dir" : 'X\(//\)$' \| \
64ff59ba 27599 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
d9898ee8 27600echo X"$as_dir" |
64ff59ba 27601 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27602 s//\1/
27603 q
27604 }
27605 /^X\(\/\/\)[^/].*/{
27606 s//\1/
27607 q
27608 }
27609 /^X\(\/\/\)$/{
27610 s//\1/
27611 q
27612 }
27613 /^X\(\/\).*/{
27614 s//\1/
27615 q
27616 }
27617 s/.*/./; q'`
27618 test -d "$as_dir" && break
d9898ee8 27619 done
64ff59ba 27620 test -z "$as_dirs" || eval "mkdir $as_dirs"
27621 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27622echo "$as_me: error: cannot create directory $as_dir" >&2;}
d9898ee8 27623 { (exit 1); exit 1; }; }; }
d9898ee8 27624 ac_builddir=.
27625
64ff59ba 27626case "$ac_dir" in
27627.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27628*)
d9898ee8 27629 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
64ff59ba 27630 # A ".." for each directory in $ac_dir_suffix.
27631 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
27632 case $ac_top_builddir_sub in
27633 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27634 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27635 esac ;;
27636esac
27637ac_abs_top_builddir=$ac_pwd
27638ac_abs_builddir=$ac_pwd$ac_dir_suffix
27639# for backward compatibility:
27640ac_top_builddir=$ac_top_build_prefix
d9898ee8 27641
27642case $srcdir in
64ff59ba 27643 .) # We are building in place.
d9898ee8 27644 ac_srcdir=.
64ff59ba 27645 ac_top_srcdir=$ac_top_builddir_sub
27646 ac_abs_top_srcdir=$ac_pwd ;;
27647 [\\/]* | ?:[\\/]* ) # Absolute name.
d9898ee8 27648 ac_srcdir=$srcdir$ac_dir_suffix;
64ff59ba 27649 ac_top_srcdir=$srcdir
27650 ac_abs_top_srcdir=$srcdir ;;
27651 *) # Relative name.
27652 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27653 ac_top_srcdir=$ac_top_build_prefix$srcdir
27654 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
d9898ee8 27655esac
64ff59ba 27656ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
d9898ee8 27657
27658
64ff59ba 27659 cd "$ac_dir"
d9898ee8 27660
27661 # Check for guested configure; otherwise get Cygnus style configure.
64ff59ba 27662 if test -f "$ac_srcdir/configure.gnu"; then
27663 ac_sub_configure=$ac_srcdir/configure.gnu
27664 elif test -f "$ac_srcdir/configure"; then
27665 ac_sub_configure=$ac_srcdir/configure
27666 elif test -f "$ac_srcdir/configure.in"; then
27667 # This should be Cygnus configure.
27668 ac_sub_configure=$ac_aux_dir/configure
d9898ee8 27669 else
27670 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
27671echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
27672 ac_sub_configure=
27673 fi
27674
27675 # The recursion is here.
27676 if test -n "$ac_sub_configure"; then
27677 # Make the cache file name correct relative to the subdirectory.
27678 case $cache_file in
27679 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
64ff59ba 27680 *) # Relative name.
27681 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
d9898ee8 27682 esac
27683
64ff59ba 27684 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
27685echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
d9898ee8 27686 # The eval makes quoting arguments work.
64ff59ba 27687 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
27688 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
d9898ee8 27689 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
27690echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
27691 { (exit 1); exit 1; }; }
27692 fi
27693
64ff59ba 27694 cd "$ac_popdir"
d9898ee8 27695 done
27696fi
27697
27698