Imported Upstream version 0.63.0
[hcoop/debian/courier-authlib.git] / userdb / configure
CommitLineData
d9898ee8 1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
8d138742 3# Generated by GNU Autoconf 2.63 for libuserdb 0.10.
d9898ee8 4#
5# Report bugs to <courier-users@lists.sourceforge.net>.
6#
dd184caf 7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8d138742 8# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
d9898ee8 9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## --------------------- ##
12## M4sh Initialization. ##
13## --------------------- ##
14
dd184caf 15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
d9898ee8 17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 emulate sh
19 NULLCMD=:
8d138742 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
d9898ee8 21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
dd184caf 23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
27esac
28
29fi
30
31
32
33
34# PATH needs CR
35# Avoid depending upon Character Ranges.
36as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39as_cr_digits='0123456789'
40as_cr_alnum=$as_cr_Letters$as_cr_digits
41
8d138742
CE
42as_nl='
43'
44export as_nl
45# Printing a long string crashes Solaris 7 /usr/bin/printf.
46as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72fi
73
dd184caf 74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
8d138742
CE
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
d9898ee8 81fi
d9898ee8 82
83# Support unset when possible.
84if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
85 as_unset=unset
86else
87 as_unset=false
88fi
89
90
dd184caf 91# IFS
92# We need space, tab and new line, in precisely that order. Quoting is
93# there to prevent editors from complaining about space-tab.
94# (If _AS_PATH_WALK were called with IFS unset, it would disable word
95# splitting by setting IFS to empty value.)
dd184caf 96IFS=" "" $as_nl"
97
98# Find who we are. Look in the path if we contain no directory separator.
99case $0 in
100 *[\\/]* ) as_myself=$0 ;;
101 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
102for as_dir in $PATH
103do
104 IFS=$as_save_IFS
105 test -z "$as_dir" && as_dir=.
106 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107done
108IFS=$as_save_IFS
109
110 ;;
111esac
112# We did not find ourselves, most probably we were run as `sh COMMAND'
113# in which case we are not to be found in the path.
114if test "x$as_myself" = x; then
115 as_myself=$0
116fi
117if test ! -f "$as_myself"; then
8d138742 118 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
dd184caf 119 { (exit 1); exit 1; }
120fi
121
d9898ee8 122# Work around bugs in pre-3.0 UWIN ksh.
dd184caf 123for as_var in ENV MAIL MAILPATH
124do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
125done
d9898ee8 126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
8d138742
CE
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
d9898ee8 135
136# Required to use basename.
dd184caf 137if expr a : '\(a\)' >/dev/null 2>&1 &&
138 test "X`expr 00001 : '.*\(...\)'`" = X001; then
d9898ee8 139 as_expr=expr
140else
141 as_expr=false
142fi
143
dd184caf 144if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
d9898ee8 145 as_basename=basename
146else
147 as_basename=false
148fi
149
150
151# Name of the executable.
dd184caf 152as_me=`$as_basename -- "$0" ||
d9898ee8 153$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
154 X"$0" : 'X\(//\)$' \| \
dd184caf 155 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8d138742 156$as_echo X/"$0" |
dd184caf 157 sed '/^.*\/\([^/][^/]*\)\/*$/{
158 s//\1/
159 q
160 }
161 /^X\/\(\/\/\)$/{
162 s//\1/
163 q
164 }
165 /^X\/\(\/\).*/{
166 s//\1/
167 q
168 }
169 s/.*/./; q'`
d9898ee8 170
dd184caf 171# CDPATH.
172$as_unset CDPATH
d9898ee8 173
d9898ee8 174
dd184caf 175if test "x$CONFIG_SHELL" = x; then
176 if (eval ":") 2>/dev/null; then
177 as_have_required=yes
178else
179 as_have_required=no
d9898ee8 180fi
181
8d138742 182 if test $as_have_required = yes && (eval ":
dd184caf 183(as_func_return () {
184 (exit \$1)
185}
186as_func_success () {
187 as_func_return 0
188}
189as_func_failure () {
190 as_func_return 1
191}
192as_func_ret_success () {
193 return 0
194}
195as_func_ret_failure () {
196 return 1
197}
d9898ee8 198
dd184caf 199exitcode=0
200if as_func_success; then
201 :
202else
203 exitcode=1
204 echo as_func_success failed.
205fi
d9898ee8 206
dd184caf 207if as_func_failure; then
208 exitcode=1
209 echo as_func_failure succeeded.
210fi
211
212if as_func_ret_success; then
213 :
214else
215 exitcode=1
216 echo as_func_ret_success failed.
217fi
218
219if as_func_ret_failure; then
220 exitcode=1
221 echo as_func_ret_failure succeeded.
222fi
223
224if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
225 :
226else
227 exitcode=1
228 echo positional parameters were not saved.
229fi
230
231test \$exitcode = 0) || { (exit 1); exit 1; }
232
233(
234 as_lineno_1=\$LINENO
235 as_lineno_2=\$LINENO
236 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
237 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
238") 2> /dev/null; then
239 :
240else
241 as_candidate_shells=
d9898ee8 242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
243for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
244do
245 IFS=$as_save_IFS
246 test -z "$as_dir" && as_dir=.
dd184caf 247 case $as_dir in
d9898ee8 248 /*)
dd184caf 249 for as_base in sh bash ksh sh5; do
250 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
251 done;;
252 esac
253done
254IFS=$as_save_IFS
255
256
257 for as_shell in $as_candidate_shells $SHELL; do
258 # Try only shells that exist, to save several forks.
259 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
260 { ("$as_shell") 2> /dev/null <<\_ASEOF
261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
8d138742 264 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
dd184caf 265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271esac
272
273fi
274
275
276:
277_ASEOF
278}; then
279 CONFIG_SHELL=$as_shell
280 as_have_required=yes
281 if { "$as_shell" 2> /dev/null <<\_ASEOF
282if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283 emulate sh
284 NULLCMD=:
8d138742 285 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
dd184caf 286 # is contrary to our usage. Disable this feature.
287 alias -g '${1+"$@"}'='"$@"'
288 setopt NO_GLOB_SUBST
289else
290 case `(set -o) 2>/dev/null` in
291 *posix*) set -o posix ;;
292esac
293
294fi
295
296
297:
298(as_func_return () {
299 (exit $1)
300}
301as_func_success () {
302 as_func_return 0
303}
304as_func_failure () {
305 as_func_return 1
306}
307as_func_ret_success () {
308 return 0
309}
310as_func_ret_failure () {
311 return 1
312}
313
314exitcode=0
315if as_func_success; then
316 :
317else
318 exitcode=1
319 echo as_func_success failed.
320fi
321
322if as_func_failure; then
323 exitcode=1
324 echo as_func_failure succeeded.
325fi
326
327if as_func_ret_success; then
328 :
329else
330 exitcode=1
331 echo as_func_ret_success failed.
332fi
333
334if as_func_ret_failure; then
335 exitcode=1
336 echo as_func_ret_failure succeeded.
337fi
338
339if ( set x; as_func_ret_success y && test x = "$1" ); then
340 :
341else
342 exitcode=1
343 echo positional parameters were not saved.
344fi
345
346test $exitcode = 0) || { (exit 1); exit 1; }
347
348(
d9898ee8 349 as_lineno_1=$LINENO
350 as_lineno_2=$LINENO
d9898ee8 351 test "x$as_lineno_1" != "x$as_lineno_2" &&
dd184caf 352 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
353
354_ASEOF
355}; then
356 break
357fi
358
359fi
360
361 done
362
363 if test "x$CONFIG_SHELL" != x; then
364 for as_var in BASH_ENV ENV
8d138742
CE
365 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366 done
367 export CONFIG_SHELL
368 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
dd184caf 369fi
370
371
372 if test $as_have_required = no; then
373 echo This script requires a shell more modern than all the
374 echo shells that I found on your system. Please install a
375 echo modern shell, or manually run the script under such a
376 echo shell if you do have one.
377 { (exit 1); exit 1; }
378fi
379
380
381fi
382
383fi
384
385
386
387(eval "as_func_return () {
388 (exit \$1)
389}
390as_func_success () {
391 as_func_return 0
392}
393as_func_failure () {
394 as_func_return 1
395}
396as_func_ret_success () {
397 return 0
398}
399as_func_ret_failure () {
400 return 1
401}
402
403exitcode=0
404if as_func_success; then
405 :
406else
407 exitcode=1
408 echo as_func_success failed.
409fi
410
411if as_func_failure; then
412 exitcode=1
413 echo as_func_failure succeeded.
414fi
415
416if as_func_ret_success; then
417 :
418else
419 exitcode=1
420 echo as_func_ret_success failed.
421fi
422
423if as_func_ret_failure; then
424 exitcode=1
425 echo as_func_ret_failure succeeded.
426fi
427
428if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
429 :
430else
431 exitcode=1
432 echo positional parameters were not saved.
433fi
434
435test \$exitcode = 0") || {
436 echo No shell found that supports shell functions.
8d138742
CE
437 echo Please tell bug-autoconf@gnu.org about your system,
438 echo including any error possibly output before this message.
439 echo This can help us improve future autoconf versions.
440 echo Configuration will now proceed without shell functions.
dd184caf 441}
442
443
444
445 as_lineno_1=$LINENO
446 as_lineno_2=$LINENO
447 test "x$as_lineno_1" != "x$as_lineno_2" &&
448 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
d9898ee8 449
450 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
451 # uniformly replaced by the line number. The first 'sed' inserts a
dd184caf 452 # line-number line after each line using $LINENO; the second 'sed'
453 # does the real work. The second script uses 'N' to pair each
454 # line-number line with the line containing $LINENO, and appends
455 # trailing '-' during substitution so that $LINENO is not a special
456 # case at line end.
d9898ee8 457 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
dd184caf 458 # scripts with optimization help from Paolo Bonzini. Blame Lee
459 # E. McMahon (1931-1989) for sed's syntax. :-)
460 sed -n '
461 p
462 /[$]LINENO/=
463 ' <$as_myself |
d9898ee8 464 sed '
dd184caf 465 s/[$]LINENO.*/&-/
466 t lineno
467 b
468 :lineno
d9898ee8 469 N
dd184caf 470 :loop
471 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
d9898ee8 472 t loop
dd184caf 473 s/-\n.*//
d9898ee8 474 ' >$as_me.lineno &&
dd184caf 475 chmod +x "$as_me.lineno" ||
8d138742 476 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
d9898ee8 477 { (exit 1); exit 1; }; }
478
479 # Don't try to exec as it changes $[0], causing all sort of problems
480 # (the dirname of $[0] is not the place where we might find the
dd184caf 481 # original and so on. Autoconf is especially sensitive to this).
482 . "./$as_me.lineno"
d9898ee8 483 # Exit status is that of the last command.
484 exit
485}
486
487
dd184caf 488if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
489 as_dirname=dirname
490else
491 as_dirname=false
492fi
493
494ECHO_C= ECHO_N= ECHO_T=
495case `echo -n x` in
496-n*)
497 case `echo 'x\c'` in
498 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
499 *) ECHO_C='\c';;
500 esac;;
501*)
502 ECHO_N='-n';;
d9898ee8 503esac
dd184caf 504if expr a : '\(a\)' >/dev/null 2>&1 &&
505 test "X`expr 00001 : '.*\(...\)'`" = X001; then
d9898ee8 506 as_expr=expr
507else
508 as_expr=false
509fi
510
511rm -f conf$$ conf$$.exe conf$$.file
dd184caf 512if test -d conf$$.dir; then
513 rm -f conf$$.dir/conf$$.file
514else
515 rm -f conf$$.dir
8d138742
CE
516 mkdir conf$$.dir 2>/dev/null
517fi
518if (echo >conf$$.file) 2>/dev/null; then
519 if ln -s conf$$.file conf$$ 2>/dev/null; then
520 as_ln_s='ln -s'
521 # ... but there are two gotchas:
522 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
523 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
524 # In both cases, we have to default to `cp -p'.
525 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
526 as_ln_s='cp -p'
527 elif ln conf$$.file conf$$ 2>/dev/null; then
528 as_ln_s=ln
529 else
d9898ee8 530 as_ln_s='cp -p'
8d138742 531 fi
d9898ee8 532else
533 as_ln_s='cp -p'
534fi
dd184caf 535rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
536rmdir conf$$.dir 2>/dev/null
d9898ee8 537
538if mkdir -p . 2>/dev/null; then
539 as_mkdir_p=:
540else
541 test -d ./-p && rmdir ./-p
542 as_mkdir_p=false
543fi
544
dd184caf 545if test -x / >/dev/null 2>&1; then
546 as_test_x='test -x'
547else
548 if ls -dL / >/dev/null 2>&1; then
549 as_ls_L_option=L
550 else
551 as_ls_L_option=
552 fi
553 as_test_x='
554 eval sh -c '\''
555 if test -d "$1"; then
8d138742 556 test -d "$1/.";
dd184caf 557 else
558 case $1 in
8d138742 559 -*)set "./$1";;
dd184caf 560 esac;
561 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
562 ???[sx]*):;;*)false;;esac;fi
563 '\'' sh
564 '
565fi
566as_executable_p=$as_test_x
d9898ee8 567
568# Sed expression to map a string onto a valid CPP name.
569as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
570
571# Sed expression to map a string onto a valid variable name.
572as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
573
574
d9898ee8 575
576
577# Check that we are running under the correct shell.
578SHELL=${CONFIG_SHELL-/bin/sh}
579
8d138742 580case X$lt_ECHO in
d9898ee8 581X*--fallback-echo)
582 # Remove one level of quotation (which was required for Make).
8d138742 583 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
d9898ee8 584 ;;
585esac
586
8d138742 587ECHO=${lt_ECHO-echo}
d9898ee8 588if test "X$1" = X--no-reexec; then
589 # Discard the --no-reexec flag, and continue.
590 shift
591elif test "X$1" = X--fallback-echo; then
592 # Avoid inline document here, it may be left over
593 :
8d138742
CE
594elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
595 # Yippee, $ECHO works!
d9898ee8 596 :
597else
598 # Restart under the correct shell.
599 exec $SHELL "$0" --no-reexec ${1+"$@"}
600fi
601
602if test "X$1" = X--fallback-echo; then
603 # used as fallback echo
604 shift
8d138742 605 cat <<_LT_EOF
d9898ee8 606$*
8d138742 607_LT_EOF
d9898ee8 608 exit 0
609fi
610
611# The HP-UX ksh and POSIX shell print the target directory to stdout
612# if CDPATH is set.
613(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
614
8d138742
CE
615if test -z "$lt_ECHO"; then
616 if test "X${echo_test_string+set}" != Xset; then
617 # find a string as large as possible, as long as the shell can cope with it
618 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
619 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
620 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
621 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
622 then
623 break
624 fi
625 done
626 fi
d9898ee8 627
8d138742
CE
628 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
629 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
630 test "X$echo_testing_string" = "X$echo_test_string"; then
631 :
632 else
633 # The Solaris, AIX, and Digital Unix default echo programs unquote
634 # backslashes. This makes it impossible to quote backslashes using
635 # echo "$something" | sed 's/\\/\\\\/g'
636 #
637 # So, first we look for a working echo in the user's PATH.
d9898ee8 638
8d138742
CE
639 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
640 for dir in $PATH /usr/ucb; do
641 IFS="$lt_save_ifs"
642 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
643 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
644 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
645 test "X$echo_testing_string" = "X$echo_test_string"; then
646 ECHO="$dir/echo"
647 break
648 fi
649 done
d9898ee8 650 IFS="$lt_save_ifs"
d9898ee8 651
8d138742
CE
652 if test "X$ECHO" = Xecho; then
653 # We didn't find a better echo, so look for alternatives.
654 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
655 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
656 test "X$echo_testing_string" = "X$echo_test_string"; then
657 # This shell has a builtin print -r that does the trick.
658 ECHO='print -r'
659 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
660 test "X$CONFIG_SHELL" != X/bin/ksh; then
661 # If we have ksh, try running configure again with it.
662 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
663 export ORIGINAL_CONFIG_SHELL
664 CONFIG_SHELL=/bin/ksh
665 export CONFIG_SHELL
666 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
d9898ee8 667 else
8d138742
CE
668 # Try using printf.
669 ECHO='printf %s\n'
670 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
671 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
672 test "X$echo_testing_string" = "X$echo_test_string"; then
673 # Cool, printf works
674 :
675 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
676 test "X$echo_testing_string" = 'X\t' &&
677 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
678 test "X$echo_testing_string" = "X$echo_test_string"; then
679 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
680 export CONFIG_SHELL
681 SHELL="$CONFIG_SHELL"
682 export SHELL
683 ECHO="$CONFIG_SHELL $0 --fallback-echo"
684 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
685 test "X$echo_testing_string" = 'X\t' &&
686 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
687 test "X$echo_testing_string" = "X$echo_test_string"; then
688 ECHO="$CONFIG_SHELL $0 --fallback-echo"
689 else
690 # maybe with a smaller string...
691 prev=:
d9898ee8 692
8d138742
CE
693 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
694 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
695 then
696 break
697 fi
698 prev="$cmd"
699 done
d9898ee8 700
8d138742
CE
701 if test "$prev" != 'sed 50q "$0"'; then
702 echo_test_string=`eval $prev`
703 export echo_test_string
704 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
705 else
706 # Oops. We lost completely, so just stick with echo.
707 ECHO=echo
708 fi
709 fi
d9898ee8 710 fi
711 fi
712 fi
713fi
d9898ee8 714
715# Copy echo and quote the copy suitably for passing to libtool from
716# the Makefile, instead of quoting the original, which is used later.
8d138742
CE
717lt_ECHO=$ECHO
718if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
719 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
d9898ee8 720fi
721
722
723
724
dd184caf 725exec 7<&0 </dev/null 6>&1
726
d9898ee8 727# Name of the host.
728# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
729# so uname gets run too.
730ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
731
d9898ee8 732#
733# Initializations.
734#
735ac_default_prefix=/usr/local
dd184caf 736ac_clean_files=
d9898ee8 737ac_config_libobj_dir=.
dd184caf 738LIBOBJS=
d9898ee8 739cross_compiling=no
740subdirs=
741MFLAGS=
742MAKEFLAGS=
743SHELL=${CONFIG_SHELL-/bin/sh}
744
d9898ee8 745# Identity of this package.
746PACKAGE_NAME='libuserdb'
747PACKAGE_TARNAME='libuserdb'
748PACKAGE_VERSION='0.10'
749PACKAGE_STRING='libuserdb 0.10'
750PACKAGE_BUGREPORT='courier-users@lists.sourceforge.net'
751
752ac_unique_file="userdb.c"
753# Factoring default headers for most tests.
754ac_includes_default="\
755#include <stdio.h>
dd184caf 756#ifdef HAVE_SYS_TYPES_H
d9898ee8 757# include <sys/types.h>
758#endif
dd184caf 759#ifdef HAVE_SYS_STAT_H
d9898ee8 760# include <sys/stat.h>
761#endif
dd184caf 762#ifdef STDC_HEADERS
d9898ee8 763# include <stdlib.h>
764# include <stddef.h>
765#else
dd184caf 766# ifdef HAVE_STDLIB_H
d9898ee8 767# include <stdlib.h>
768# endif
769#endif
dd184caf 770#ifdef HAVE_STRING_H
771# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
d9898ee8 772# include <memory.h>
773# endif
774# include <string.h>
775#endif
dd184caf 776#ifdef HAVE_STRINGS_H
d9898ee8 777# include <strings.h>
778#endif
dd184caf 779#ifdef HAVE_INTTYPES_H
d9898ee8 780# include <inttypes.h>
d9898ee8 781#endif
dd184caf 782#ifdef HAVE_STDINT_H
783# include <stdint.h>
784#endif
785#ifdef HAVE_UNISTD_H
d9898ee8 786# include <unistd.h>
787#endif"
788
8d138742
CE
789ac_subst_vars='am__EXEEXT_FALSE
790am__EXEEXT_TRUE
791LTLIBOBJS
792LIBOBJS
793HAVE_SGML_FALSE
794HAVE_SGML_TRUE
795CRYPTLIBS
796HMACLIB
797SHA1LIB
798MD5LIB
799makedat
800tmpdir
801userdbtmpdir
802USERDB
803userdb
804PERL
805CPP
806OTOOL64
807OTOOL
808LIPO
809NMEDIT
810DSYMUTIL
811lt_ECHO
812RANLIB
813AR
814OBJDUMP
815NM
816ac_ct_DUMPBIN
817DUMPBIN
818LD
819FGREP
820EGREP
821GREP
822SED
823host_os
824host_vendor
825host_cpu
826host
827build_os
828build_vendor
829build_cpu
830build
831LIBTOOL
832LN_S
833am__fastdepCC_FALSE
834am__fastdepCC_TRUE
835CCDEPMODE
836AMDEPBACKSLASH
837AMDEP_FALSE
838AMDEP_TRUE
839am__quote
840am__include
841DEPDIR
842OBJEXT
843EXEEXT
844ac_ct_CC
845CPPFLAGS
846LDFLAGS
847CFLAGS
848CC
849am__untar
850am__tar
851AMTAR
852am__leading_dot
853SET_MAKE
854AWK
855mkdir_p
856MKDIR_P
857INSTALL_STRIP_PROGRAM
858STRIP
859install_sh
860MAKEINFO
861AUTOHEADER
862AUTOMAKE
863AUTOCONF
864ACLOCAL
865VERSION
866PACKAGE
867CYGPATH_W
868am__isrc
869INSTALL_DATA
870INSTALL_SCRIPT
871INSTALL_PROGRAM
872target_alias
873host_alias
dd184caf 874build_alias
8d138742
CE
875LIBS
876ECHO_T
877ECHO_N
878ECHO_C
879DEFS
880mandir
881localedir
882libdir
883psdir
884pdfdir
885dvidir
886htmldir
887infodir
888docdir
889oldincludedir
890includedir
891localstatedir
892sharedstatedir
893sysconfdir
894datadir
895datarootdir
896libexecdir
897sbindir
898bindir
899program_transform_name
900prefix
901exec_prefix
902PACKAGE_BUGREPORT
903PACKAGE_STRING
904PACKAGE_VERSION
905PACKAGE_TARNAME
906PACKAGE_NAME
907PATH_SEPARATOR
908SHELL'
909ac_subst_files=''
910ac_user_opts='
911enable_option_checking
912enable_dependency_tracking
913enable_shared
914enable_static
915with_pic
916enable_fast_install
917with_gnu_ld
918enable_libtool_lock
919with_userdb
920with_userdbmandir
921with_userdbtmpdir
922with_makedatprog
923with_random
924'
925 ac_precious_vars='build_alias
dd184caf 926host_alias
927target_alias
dd184caf 928CC
929CFLAGS
930LDFLAGS
8d138742 931LIBS
dd184caf 932CPPFLAGS
8d138742 933CPP'
dd184caf 934
d9898ee8 935
936# Initialize some variables set by options.
937ac_init_help=
938ac_init_version=false
8d138742
CE
939ac_unrecognized_opts=
940ac_unrecognized_sep=
d9898ee8 941# The variables have the same names as the options, with
942# dashes changed to underlines.
943cache_file=/dev/null
944exec_prefix=NONE
945no_create=
946no_recursion=
947prefix=NONE
948program_prefix=NONE
949program_suffix=NONE
950program_transform_name=s,x,x,
951silent=
952site=
953srcdir=
954verbose=
955x_includes=NONE
956x_libraries=NONE
957
958# Installation directory options.
959# These are left unexpanded so users can "make install exec_prefix=/foo"
960# and all the variables that are supposed to be based on exec_prefix
961# by default will actually change.
962# Use braces instead of parens because sh, perl, etc. also accept them.
dd184caf 963# (The list follows the same order as the GNU Coding Standards.)
d9898ee8 964bindir='${exec_prefix}/bin'
965sbindir='${exec_prefix}/sbin'
966libexecdir='${exec_prefix}/libexec'
dd184caf 967datarootdir='${prefix}/share'
968datadir='${datarootdir}'
d9898ee8 969sysconfdir='${prefix}/etc'
970sharedstatedir='${prefix}/com'
971localstatedir='${prefix}/var'
d9898ee8 972includedir='${prefix}/include'
973oldincludedir='/usr/include'
dd184caf 974docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
975infodir='${datarootdir}/info'
976htmldir='${docdir}'
977dvidir='${docdir}'
978pdfdir='${docdir}'
979psdir='${docdir}'
980libdir='${exec_prefix}/lib'
981localedir='${datarootdir}/locale'
982mandir='${datarootdir}/man'
d9898ee8 983
984ac_prev=
dd184caf 985ac_dashdash=
d9898ee8 986for ac_option
987do
988 # If the previous option needs an argument, assign it.
989 if test -n "$ac_prev"; then
dd184caf 990 eval $ac_prev=\$ac_option
d9898ee8 991 ac_prev=
992 continue
993 fi
994
dd184caf 995 case $ac_option in
996 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
997 *) ac_optarg=yes ;;
998 esac
d9898ee8 999
1000 # Accept the important Cygnus configure options, so we can diagnose typos.
1001
dd184caf 1002 case $ac_dashdash$ac_option in
1003 --)
1004 ac_dashdash=yes ;;
d9898ee8 1005
1006 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1007 ac_prev=bindir ;;
1008 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1009 bindir=$ac_optarg ;;
1010
1011 -build | --build | --buil | --bui | --bu)
1012 ac_prev=build_alias ;;
1013 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1014 build_alias=$ac_optarg ;;
1015
1016 -cache-file | --cache-file | --cache-fil | --cache-fi \
1017 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1018 ac_prev=cache_file ;;
1019 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1020 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1021 cache_file=$ac_optarg ;;
1022
1023 --config-cache | -C)
1024 cache_file=config.cache ;;
1025
dd184caf 1026 -datadir | --datadir | --datadi | --datad)
d9898ee8 1027 ac_prev=datadir ;;
dd184caf 1028 -datadir=* | --datadir=* | --datadi=* | --datad=*)
d9898ee8 1029 datadir=$ac_optarg ;;
1030
dd184caf 1031 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1032 | --dataroo | --dataro | --datar)
1033 ac_prev=datarootdir ;;
1034 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1035 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1036 datarootdir=$ac_optarg ;;
1037
d9898ee8 1038 -disable-* | --disable-*)
8d138742 1039 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
d9898ee8 1040 # Reject names that are not valid shell variable names.
8d138742
CE
1041 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1042 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
d9898ee8 1043 { (exit 1); exit 1; }; }
8d138742
CE
1044 ac_useropt_orig=$ac_useropt
1045 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1046 case $ac_user_opts in
1047 *"
1048"enable_$ac_useropt"
1049"*) ;;
1050 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1051 ac_unrecognized_sep=', ';;
1052 esac
1053 eval enable_$ac_useropt=no ;;
dd184caf 1054
1055 -docdir | --docdir | --docdi | --doc | --do)
1056 ac_prev=docdir ;;
1057 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1058 docdir=$ac_optarg ;;
1059
1060 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1061 ac_prev=dvidir ;;
1062 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1063 dvidir=$ac_optarg ;;
d9898ee8 1064
1065 -enable-* | --enable-*)
8d138742 1066 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
d9898ee8 1067 # Reject names that are not valid shell variable names.
8d138742
CE
1068 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1069 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
d9898ee8 1070 { (exit 1); exit 1; }; }
8d138742
CE
1071 ac_useropt_orig=$ac_useropt
1072 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1073 case $ac_user_opts in
1074 *"
1075"enable_$ac_useropt"
1076"*) ;;
1077 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1078 ac_unrecognized_sep=', ';;
1079 esac
1080 eval enable_$ac_useropt=\$ac_optarg ;;
d9898ee8 1081
1082 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1083 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1084 | --exec | --exe | --ex)
1085 ac_prev=exec_prefix ;;
1086 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1087 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1088 | --exec=* | --exe=* | --ex=*)
1089 exec_prefix=$ac_optarg ;;
1090
1091 -gas | --gas | --ga | --g)
1092 # Obsolete; use --with-gas.
1093 with_gas=yes ;;
1094
1095 -help | --help | --hel | --he | -h)
1096 ac_init_help=long ;;
1097 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1098 ac_init_help=recursive ;;
1099 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1100 ac_init_help=short ;;
1101
1102 -host | --host | --hos | --ho)
1103 ac_prev=host_alias ;;
1104 -host=* | --host=* | --hos=* | --ho=*)
1105 host_alias=$ac_optarg ;;
1106
dd184caf 1107 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1108 ac_prev=htmldir ;;
1109 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1110 | --ht=*)
1111 htmldir=$ac_optarg ;;
1112
d9898ee8 1113 -includedir | --includedir | --includedi | --included | --include \
1114 | --includ | --inclu | --incl | --inc)
1115 ac_prev=includedir ;;
1116 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1117 | --includ=* | --inclu=* | --incl=* | --inc=*)
1118 includedir=$ac_optarg ;;
1119
1120 -infodir | --infodir | --infodi | --infod | --info | --inf)
1121 ac_prev=infodir ;;
1122 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1123 infodir=$ac_optarg ;;
1124
1125 -libdir | --libdir | --libdi | --libd)
1126 ac_prev=libdir ;;
1127 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1128 libdir=$ac_optarg ;;
1129
1130 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1131 | --libexe | --libex | --libe)
1132 ac_prev=libexecdir ;;
1133 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1134 | --libexe=* | --libex=* | --libe=*)
1135 libexecdir=$ac_optarg ;;
1136
dd184caf 1137 -localedir | --localedir | --localedi | --localed | --locale)
1138 ac_prev=localedir ;;
1139 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1140 localedir=$ac_optarg ;;
1141
d9898ee8 1142 -localstatedir | --localstatedir | --localstatedi | --localstated \
dd184caf 1143 | --localstate | --localstat | --localsta | --localst | --locals)
d9898ee8 1144 ac_prev=localstatedir ;;
1145 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
dd184caf 1146 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
d9898ee8 1147 localstatedir=$ac_optarg ;;
1148
1149 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1150 ac_prev=mandir ;;
1151 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1152 mandir=$ac_optarg ;;
1153
1154 -nfp | --nfp | --nf)
1155 # Obsolete; use --without-fp.
1156 with_fp=no ;;
1157
1158 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1159 | --no-cr | --no-c | -n)
1160 no_create=yes ;;
1161
1162 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1163 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1164 no_recursion=yes ;;
1165
1166 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1167 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1168 | --oldin | --oldi | --old | --ol | --o)
1169 ac_prev=oldincludedir ;;
1170 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1171 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1172 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1173 oldincludedir=$ac_optarg ;;
1174
1175 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1176 ac_prev=prefix ;;
1177 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1178 prefix=$ac_optarg ;;
1179
1180 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1181 | --program-pre | --program-pr | --program-p)
1182 ac_prev=program_prefix ;;
1183 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1184 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1185 program_prefix=$ac_optarg ;;
1186
1187 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1188 | --program-suf | --program-su | --program-s)
1189 ac_prev=program_suffix ;;
1190 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1191 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1192 program_suffix=$ac_optarg ;;
1193
1194 -program-transform-name | --program-transform-name \
1195 | --program-transform-nam | --program-transform-na \
1196 | --program-transform-n | --program-transform- \
1197 | --program-transform | --program-transfor \
1198 | --program-transfo | --program-transf \
1199 | --program-trans | --program-tran \
1200 | --progr-tra | --program-tr | --program-t)
1201 ac_prev=program_transform_name ;;
1202 -program-transform-name=* | --program-transform-name=* \
1203 | --program-transform-nam=* | --program-transform-na=* \
1204 | --program-transform-n=* | --program-transform-=* \
1205 | --program-transform=* | --program-transfor=* \
1206 | --program-transfo=* | --program-transf=* \
1207 | --program-trans=* | --program-tran=* \
1208 | --progr-tra=* | --program-tr=* | --program-t=*)
1209 program_transform_name=$ac_optarg ;;
1210
dd184caf 1211 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1212 ac_prev=pdfdir ;;
1213 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1214 pdfdir=$ac_optarg ;;
1215
1216 -psdir | --psdir | --psdi | --psd | --ps)
1217 ac_prev=psdir ;;
1218 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1219 psdir=$ac_optarg ;;
1220
d9898ee8 1221 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1222 | -silent | --silent | --silen | --sile | --sil)
1223 silent=yes ;;
1224
1225 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1226 ac_prev=sbindir ;;
1227 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1228 | --sbi=* | --sb=*)
1229 sbindir=$ac_optarg ;;
1230
1231 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1232 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1233 | --sharedst | --shareds | --shared | --share | --shar \
1234 | --sha | --sh)
1235 ac_prev=sharedstatedir ;;
1236 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1237 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1238 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1239 | --sha=* | --sh=*)
1240 sharedstatedir=$ac_optarg ;;
1241
1242 -site | --site | --sit)
1243 ac_prev=site ;;
1244 -site=* | --site=* | --sit=*)
1245 site=$ac_optarg ;;
1246
1247 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1248 ac_prev=srcdir ;;
1249 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1250 srcdir=$ac_optarg ;;
1251
1252 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1253 | --syscon | --sysco | --sysc | --sys | --sy)
1254 ac_prev=sysconfdir ;;
1255 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1256 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1257 sysconfdir=$ac_optarg ;;
1258
1259 -target | --target | --targe | --targ | --tar | --ta | --t)
1260 ac_prev=target_alias ;;
1261 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1262 target_alias=$ac_optarg ;;
1263
1264 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1265 verbose=yes ;;
1266
1267 -version | --version | --versio | --versi | --vers | -V)
1268 ac_init_version=: ;;
1269
1270 -with-* | --with-*)
8d138742 1271 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
d9898ee8 1272 # Reject names that are not valid shell variable names.
8d138742
CE
1273 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1274 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
d9898ee8 1275 { (exit 1); exit 1; }; }
8d138742
CE
1276 ac_useropt_orig=$ac_useropt
1277 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1278 case $ac_user_opts in
1279 *"
1280"with_$ac_useropt"
1281"*) ;;
1282 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1283 ac_unrecognized_sep=', ';;
1284 esac
1285 eval with_$ac_useropt=\$ac_optarg ;;
d9898ee8 1286
1287 -without-* | --without-*)
8d138742 1288 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
d9898ee8 1289 # Reject names that are not valid shell variable names.
8d138742
CE
1290 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1291 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
d9898ee8 1292 { (exit 1); exit 1; }; }
8d138742
CE
1293 ac_useropt_orig=$ac_useropt
1294 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1295 case $ac_user_opts in
1296 *"
1297"with_$ac_useropt"
1298"*) ;;
1299 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1300 ac_unrecognized_sep=', ';;
1301 esac
1302 eval with_$ac_useropt=no ;;
d9898ee8 1303
1304 --x)
1305 # Obsolete; use --with-x.
1306 with_x=yes ;;
1307
1308 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1309 | --x-incl | --x-inc | --x-in | --x-i)
1310 ac_prev=x_includes ;;
1311 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1312 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1313 x_includes=$ac_optarg ;;
1314
1315 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1316 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1317 ac_prev=x_libraries ;;
1318 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1319 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1320 x_libraries=$ac_optarg ;;
1321
8d138742 1322 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
d9898ee8 1323Try \`$0 --help' for more information." >&2
1324 { (exit 1); exit 1; }; }
1325 ;;
1326
1327 *=*)
1328 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1329 # Reject names that are not valid shell variable names.
1330 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
8d138742 1331 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
d9898ee8 1332 { (exit 1); exit 1; }; }
dd184caf 1333 eval $ac_envvar=\$ac_optarg
d9898ee8 1334 export $ac_envvar ;;
1335
1336 *)
1337 # FIXME: should be removed in autoconf 3.0.
8d138742 1338 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
d9898ee8 1339 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
8d138742 1340 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
d9898ee8 1341 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1342 ;;
1343
1344 esac
1345done
1346
1347if test -n "$ac_prev"; then
1348 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
8d138742 1349 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
d9898ee8 1350 { (exit 1); exit 1; }; }
1351fi
1352
8d138742
CE
1353if test -n "$ac_unrecognized_opts"; then
1354 case $enable_option_checking in
1355 no) ;;
1356 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1357 { (exit 1); exit 1; }; } ;;
1358 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1359 esac
1360fi
1361
1362# Check all directory arguments for consistency.
dd184caf 1363for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1364 datadir sysconfdir sharedstatedir localstatedir includedir \
1365 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1366 libdir localedir mandir
d9898ee8 1367do
dd184caf 1368 eval ac_val=\$$ac_var
8d138742
CE
1369 # Remove trailing slashes.
1370 case $ac_val in
1371 */ )
1372 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1373 eval $ac_var=\$ac_val;;
1374 esac
1375 # Be sure to have absolute directory names.
d9898ee8 1376 case $ac_val in
dd184caf 1377 [\\/$]* | ?:[\\/]* ) continue;;
1378 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
d9898ee8 1379 esac
8d138742 1380 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
dd184caf 1381 { (exit 1); exit 1; }; }
d9898ee8 1382done
1383
1384# There might be people who depend on the old broken behavior: `$host'
1385# used to hold the argument of --host etc.
1386# FIXME: To remove some day.
1387build=$build_alias
1388host=$host_alias
1389target=$target_alias
1390
1391# FIXME: To remove some day.
1392if test "x$host_alias" != x; then
1393 if test "x$build_alias" = x; then
1394 cross_compiling=maybe
8d138742 1395 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
d9898ee8 1396 If a cross compiler is detected then cross compile mode will be used." >&2
1397 elif test "x$build_alias" != "x$host_alias"; then
1398 cross_compiling=yes
1399 fi
1400fi
1401
1402ac_tool_prefix=
1403test -n "$host_alias" && ac_tool_prefix=$host_alias-
1404
1405test "$silent" = yes && exec 6>/dev/null
1406
1407
dd184caf 1408ac_pwd=`pwd` && test -n "$ac_pwd" &&
1409ac_ls_di=`ls -di .` &&
1410ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
8d138742 1411 { $as_echo "$as_me: error: working directory cannot be determined" >&2
dd184caf 1412 { (exit 1); exit 1; }; }
1413test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
8d138742 1414 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
dd184caf 1415 { (exit 1); exit 1; }; }
1416
1417
d9898ee8 1418# Find the source files, if location was not specified.
1419if test -z "$srcdir"; then
1420 ac_srcdir_defaulted=yes
dd184caf 1421 # Try the directory containing this script, then the parent directory.
8d138742
CE
1422 ac_confdir=`$as_dirname -- "$as_myself" ||
1423$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1424 X"$as_myself" : 'X\(//\)[^/]' \| \
1425 X"$as_myself" : 'X\(//\)$' \| \
1426 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1427$as_echo X"$as_myself" |
dd184caf 1428 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1429 s//\1/
1430 q
1431 }
1432 /^X\(\/\/\)[^/].*/{
1433 s//\1/
1434 q
1435 }
1436 /^X\(\/\/\)$/{
1437 s//\1/
1438 q
1439 }
1440 /^X\(\/\).*/{
1441 s//\1/
1442 q
1443 }
1444 s/.*/./; q'`
d9898ee8 1445 srcdir=$ac_confdir
dd184caf 1446 if test ! -r "$srcdir/$ac_unique_file"; then
d9898ee8 1447 srcdir=..
1448 fi
1449else
1450 ac_srcdir_defaulted=no
1451fi
dd184caf 1452if test ! -r "$srcdir/$ac_unique_file"; then
1453 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
8d138742 1454 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
d9898ee8 1455 { (exit 1); exit 1; }; }
d9898ee8 1456fi
dd184caf 1457ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1458ac_abs_confdir=`(
8d138742 1459 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
d9898ee8 1460 { (exit 1); exit 1; }; }
dd184caf 1461 pwd)`
1462# When building in place, set srcdir=.
1463if test "$ac_abs_confdir" = "$ac_pwd"; then
1464 srcdir=.
1465fi
1466# Remove unnecessary trailing slashes from srcdir.
1467# Double slashes in file names in object file debugging info
1468# mess up M-x gdb in Emacs.
1469case $srcdir in
1470*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1471esac
1472for ac_var in $ac_precious_vars; do
1473 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1474 eval ac_env_${ac_var}_value=\$${ac_var}
1475 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1476 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1477done
d9898ee8 1478
1479#
1480# Report the --help message.
1481#
1482if test "$ac_init_help" = "long"; then
1483 # Omit some internal or obsolete options to make the list less imposing.
1484 # This message is too long to be a string in the A/UX 3.1 sh.
1485 cat <<_ACEOF
1486\`configure' configures libuserdb 0.10 to adapt to many kinds of systems.
1487
1488Usage: $0 [OPTION]... [VAR=VALUE]...
1489
1490To assign environment variables (e.g., CC, CFLAGS...), specify them as
1491VAR=VALUE. See below for descriptions of some of the useful variables.
1492
1493Defaults for the options are specified in brackets.
1494
1495Configuration:
1496 -h, --help display this help and exit
1497 --help=short display options specific to this package
1498 --help=recursive display the short help of all the included packages
1499 -V, --version display version information and exit
1500 -q, --quiet, --silent do not print \`checking...' messages
1501 --cache-file=FILE cache test results in FILE [disabled]
1502 -C, --config-cache alias for \`--cache-file=config.cache'
1503 -n, --no-create do not create output files
1504 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1505
d9898ee8 1506Installation directories:
1507 --prefix=PREFIX install architecture-independent files in PREFIX
8d138742 1508 [$ac_default_prefix]
d9898ee8 1509 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
8d138742 1510 [PREFIX]
d9898ee8 1511
1512By default, \`make install' will install all the files in
1513\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1514an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1515for instance \`--prefix=\$HOME'.
1516
1517For better control, use the options below.
1518
1519Fine tuning of the installation directories:
8d138742
CE
1520 --bindir=DIR user executables [EPREFIX/bin]
1521 --sbindir=DIR system admin executables [EPREFIX/sbin]
1522 --libexecdir=DIR program executables [EPREFIX/libexec]
1523 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1524 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1525 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1526 --libdir=DIR object code libraries [EPREFIX/lib]
1527 --includedir=DIR C header files [PREFIX/include]
1528 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1529 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1530 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1531 --infodir=DIR info documentation [DATAROOTDIR/info]
1532 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1533 --mandir=DIR man documentation [DATAROOTDIR/man]
1534 --docdir=DIR documentation root [DATAROOTDIR/doc/libuserdb]
1535 --htmldir=DIR html documentation [DOCDIR]
1536 --dvidir=DIR dvi documentation [DOCDIR]
1537 --pdfdir=DIR pdf documentation [DOCDIR]
1538 --psdir=DIR ps documentation [DOCDIR]
d9898ee8 1539_ACEOF
1540
1541 cat <<\_ACEOF
1542
1543Program names:
1544 --program-prefix=PREFIX prepend PREFIX to installed program names
1545 --program-suffix=SUFFIX append SUFFIX to installed program names
1546 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1547
1548System types:
1549 --build=BUILD configure for building on BUILD [guessed]
1550 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1551_ACEOF
1552fi
1553
1554if test -n "$ac_init_help"; then
1555 case $ac_init_help in
1556 short | recursive ) echo "Configuration of libuserdb 0.10:";;
1557 esac
1558 cat <<\_ACEOF
1559
1560Optional Features:
8d138742 1561 --disable-option-checking ignore unrecognized --enable/--with options
d9898ee8 1562 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1563 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1564 --disable-dependency-tracking speeds up one-time build
1565 --enable-dependency-tracking do not reject slow dependency extractors
dd184caf 1566 --enable-shared[=PKGS] build shared libraries [default=yes]
1567 --enable-static[=PKGS] build static libraries [default=yes]
d9898ee8 1568 --enable-fast-install[=PKGS]
1569 optimize for fast installation [default=yes]
1570 --disable-libtool-lock avoid locking (might break parallel builds)
1571
1572Optional Packages:
1573 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1574 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
d9898ee8 1575 --with-pic try to use only PIC/non-PIC objects [default=use
1576 both]
8d138742 1577 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
d9898ee8 1578
1579 --with-random=/dev/urandom - location of the system random file generator
1580--without-random - there is no system random file generator
1581
1582Some influential environment variables:
1583 CC C compiler command
1584 CFLAGS C compiler flags
1585 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1586 nonstandard directory <lib dir>
dd184caf 1587 LIBS libraries to pass to the linker, e.g. -l<library>
1588 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1589 you have headers in a nonstandard directory <include dir>
d9898ee8 1590 CPP C preprocessor
d9898ee8 1591
1592Use these variables to override the choices made by `configure' or to help
1593it to find libraries and programs with nonstandard names/locations.
1594
1595Report bugs to <courier-users@lists.sourceforge.net>.
1596_ACEOF
dd184caf 1597ac_status=$?
d9898ee8 1598fi
1599
1600if test "$ac_init_help" = "recursive"; then
1601 # If there are subdirs, report their specific --help.
d9898ee8 1602 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
8d138742
CE
1603 test -d "$ac_dir" ||
1604 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1605 continue
d9898ee8 1606 ac_builddir=.
1607
dd184caf 1608case "$ac_dir" in
1609.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1610*)
8d138742 1611 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
dd184caf 1612 # A ".." for each directory in $ac_dir_suffix.
8d138742 1613 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
dd184caf 1614 case $ac_top_builddir_sub in
1615 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1616 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1617 esac ;;
1618esac
1619ac_abs_top_builddir=$ac_pwd
1620ac_abs_builddir=$ac_pwd$ac_dir_suffix
1621# for backward compatibility:
1622ac_top_builddir=$ac_top_build_prefix
d9898ee8 1623
1624case $srcdir in
dd184caf 1625 .) # We are building in place.
d9898ee8 1626 ac_srcdir=.
dd184caf 1627 ac_top_srcdir=$ac_top_builddir_sub
1628 ac_abs_top_srcdir=$ac_pwd ;;
1629 [\\/]* | ?:[\\/]* ) # Absolute name.
d9898ee8 1630 ac_srcdir=$srcdir$ac_dir_suffix;
dd184caf 1631 ac_top_srcdir=$srcdir
1632 ac_abs_top_srcdir=$srcdir ;;
1633 *) # Relative name.
1634 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1635 ac_top_srcdir=$ac_top_build_prefix$srcdir
1636 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
d9898ee8 1637esac
dd184caf 1638ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1639
1640 cd "$ac_dir" || { ac_status=$?; continue; }
1641 # Check for guested configure.
1642 if test -f "$ac_srcdir/configure.gnu"; then
1643 echo &&
1644 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1645 elif test -f "$ac_srcdir/configure"; then
1646 echo &&
1647 $SHELL "$ac_srcdir/configure" --help=recursive
d9898ee8 1648 else
8d138742 1649 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
dd184caf 1650 fi || ac_status=$?
1651 cd "$ac_pwd" || { ac_status=$?; break; }
d9898ee8 1652 done
1653fi
1654
dd184caf 1655test -n "$ac_init_help" && exit $ac_status
d9898ee8 1656if $ac_init_version; then
1657 cat <<\_ACEOF
1658libuserdb configure 0.10
8d138742 1659generated by GNU Autoconf 2.63
d9898ee8 1660
dd184caf 1661Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8d138742 16622002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
d9898ee8 1663This configure script is free software; the Free Software Foundation
1664gives unlimited permission to copy, distribute and modify it.
1665_ACEOF
dd184caf 1666 exit
d9898ee8 1667fi
dd184caf 1668cat >config.log <<_ACEOF
d9898ee8 1669This file contains any messages produced by compilers while
1670running configure, to aid debugging if configure makes a mistake.
1671
1672It was created by libuserdb $as_me 0.10, which was
8d138742 1673generated by GNU Autoconf 2.63. Invocation command line was
d9898ee8 1674
1675 $ $0 $@
1676
1677_ACEOF
dd184caf 1678exec 5>>config.log
d9898ee8 1679{
1680cat <<_ASUNAME
1681## --------- ##
1682## Platform. ##
1683## --------- ##
1684
1685hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1686uname -m = `(uname -m) 2>/dev/null || echo unknown`
1687uname -r = `(uname -r) 2>/dev/null || echo unknown`
1688uname -s = `(uname -s) 2>/dev/null || echo unknown`
1689uname -v = `(uname -v) 2>/dev/null || echo unknown`
1690
1691/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1692/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1693
1694/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1695/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1696/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
dd184caf 1697/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
d9898ee8 1698/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1699/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1700/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1701
1702_ASUNAME
1703
1704as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1705for as_dir in $PATH
1706do
1707 IFS=$as_save_IFS
1708 test -z "$as_dir" && as_dir=.
8d138742 1709 $as_echo "PATH: $as_dir"
d9898ee8 1710done
dd184caf 1711IFS=$as_save_IFS
d9898ee8 1712
1713} >&5
1714
1715cat >&5 <<_ACEOF
1716
1717
1718## ----------- ##
1719## Core tests. ##
1720## ----------- ##
1721
1722_ACEOF
1723
1724
1725# Keep a trace of the command line.
1726# Strip out --no-create and --no-recursion so they do not pile up.
1727# Strip out --silent because we don't want to record it for future runs.
1728# Also quote any args containing shell meta-characters.
1729# Make two passes to allow for proper duplicate-argument suppression.
1730ac_configure_args=
1731ac_configure_args0=
1732ac_configure_args1=
d9898ee8 1733ac_must_keep_next=false
1734for ac_pass in 1 2
1735do
1736 for ac_arg
1737 do
1738 case $ac_arg in
1739 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1740 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1741 | -silent | --silent | --silen | --sile | --sil)
1742 continue ;;
dd184caf 1743 *\'*)
8d138742 1744 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
d9898ee8 1745 esac
1746 case $ac_pass in
1747 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1748 2)
1749 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1750 if test $ac_must_keep_next = true; then
1751 ac_must_keep_next=false # Got value, back to normal.
1752 else
1753 case $ac_arg in
1754 *=* | --config-cache | -C | -disable-* | --disable-* \
1755 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1756 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1757 | -with-* | --with-* | -without-* | --without-* | --x)
1758 case "$ac_configure_args0 " in
1759 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1760 esac
1761 ;;
1762 -* ) ac_must_keep_next=true ;;
1763 esac
1764 fi
dd184caf 1765 ac_configure_args="$ac_configure_args '$ac_arg'"
d9898ee8 1766 ;;
1767 esac
1768 done
1769done
1770$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1771$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1772
1773# When interrupted or exit'd, cleanup temporary files, and complete
1774# config.log. We remove comments because anyway the quotes in there
1775# would cause problems or look ugly.
dd184caf 1776# WARNING: Use '\'' to represent an apostrophe within the trap.
1777# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
d9898ee8 1778trap 'exit_status=$?
1779 # Save into config.log some information that might help in debugging.
1780 {
1781 echo
1782
1783 cat <<\_ASBOX
1784## ---------------- ##
1785## Cache variables. ##
1786## ---------------- ##
1787_ASBOX
1788 echo
1789 # The following way of writing the cache mishandles newlines in values,
dd184caf 1790(
1791 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1792 eval ac_val=\$$ac_var
1793 case $ac_val in #(
1794 *${as_nl}*)
1795 case $ac_var in #(
8d138742
CE
1796 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1797$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
dd184caf 1798 esac
1799 case $ac_var in #(
1800 _ | IFS | as_nl) ;; #(
8d138742 1801 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
dd184caf 1802 *) $as_unset $ac_var ;;
1803 esac ;;
1804 esac
1805 done
d9898ee8 1806 (set) 2>&1 |
dd184caf 1807 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1808 *${as_nl}ac_space=\ *)
d9898ee8 1809 sed -n \
dd184caf 1810 "s/'\''/'\''\\\\'\'''\''/g;
1811 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1812 ;; #(
d9898ee8 1813 *)
dd184caf 1814 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
d9898ee8 1815 ;;
dd184caf 1816 esac |
1817 sort
1818)
d9898ee8 1819 echo
1820
1821 cat <<\_ASBOX
1822## ----------------- ##
1823## Output variables. ##
1824## ----------------- ##
1825_ASBOX
1826 echo
1827 for ac_var in $ac_subst_vars
1828 do
dd184caf 1829 eval ac_val=\$$ac_var
1830 case $ac_val in
8d138742 1831 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
dd184caf 1832 esac
8d138742 1833 $as_echo "$ac_var='\''$ac_val'\''"
d9898ee8 1834 done | sort
1835 echo
1836
1837 if test -n "$ac_subst_files"; then
1838 cat <<\_ASBOX
dd184caf 1839## ------------------- ##
1840## File substitutions. ##
1841## ------------------- ##
d9898ee8 1842_ASBOX
1843 echo
1844 for ac_var in $ac_subst_files
1845 do
dd184caf 1846 eval ac_val=\$$ac_var
1847 case $ac_val in
8d138742 1848 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
dd184caf 1849 esac
8d138742 1850 $as_echo "$ac_var='\''$ac_val'\''"
d9898ee8 1851 done | sort
1852 echo
1853 fi
1854
1855 if test -s confdefs.h; then
1856 cat <<\_ASBOX
1857## ----------- ##
1858## confdefs.h. ##
1859## ----------- ##
1860_ASBOX
1861 echo
dd184caf 1862 cat confdefs.h
d9898ee8 1863 echo
1864 fi
1865 test "$ac_signal" != 0 &&
8d138742
CE
1866 $as_echo "$as_me: caught signal $ac_signal"
1867 $as_echo "$as_me: exit $exit_status"
d9898ee8 1868 } >&5
dd184caf 1869 rm -f core *.core core.conftest.* &&
1870 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
d9898ee8 1871 exit $exit_status
dd184caf 1872' 0
d9898ee8 1873for ac_signal in 1 2 13 15; do
1874 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1875done
1876ac_signal=0
1877
1878# confdefs.h avoids OS command line length limits that DEFS can exceed.
dd184caf 1879rm -f -r conftest* confdefs.h
d9898ee8 1880
1881# Predefined preprocessor variables.
1882
1883cat >>confdefs.h <<_ACEOF
1884#define PACKAGE_NAME "$PACKAGE_NAME"
1885_ACEOF
1886
1887
1888cat >>confdefs.h <<_ACEOF
1889#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1890_ACEOF
1891
1892
1893cat >>confdefs.h <<_ACEOF
1894#define PACKAGE_VERSION "$PACKAGE_VERSION"
1895_ACEOF
1896
1897
1898cat >>confdefs.h <<_ACEOF
1899#define PACKAGE_STRING "$PACKAGE_STRING"
1900_ACEOF
1901
1902
1903cat >>confdefs.h <<_ACEOF
1904#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1905_ACEOF
1906
1907
1908# Let the site file select an alternate cache file if it wants to.
8d138742
CE
1909# Prefer an explicitly selected file to automatically selected ones.
1910ac_site_file1=NONE
1911ac_site_file2=NONE
dd184caf 1912if test -n "$CONFIG_SITE"; then
8d138742 1913 ac_site_file1=$CONFIG_SITE
dd184caf 1914elif test "x$prefix" != xNONE; then
8d138742
CE
1915 ac_site_file1=$prefix/share/config.site
1916 ac_site_file2=$prefix/etc/config.site
dd184caf 1917else
8d138742
CE
1918 ac_site_file1=$ac_default_prefix/share/config.site
1919 ac_site_file2=$ac_default_prefix/etc/config.site
d9898ee8 1920fi
8d138742 1921for ac_site_file in "$ac_site_file1" "$ac_site_file2"
dd184caf 1922do
8d138742 1923 test "x$ac_site_file" = xNONE && continue
d9898ee8 1924 if test -r "$ac_site_file"; then
8d138742
CE
1925 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1926$as_echo "$as_me: loading site script $ac_site_file" >&6;}
d9898ee8 1927 sed 's/^/| /' "$ac_site_file" >&5
1928 . "$ac_site_file"
1929 fi
1930done
1931
1932if test -r "$cache_file"; then
1933 # Some versions of bash will fail to source /dev/null (special
1934 # files actually), so we avoid doing that.
1935 if test -f "$cache_file"; then
8d138742
CE
1936 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1937$as_echo "$as_me: loading cache $cache_file" >&6;}
d9898ee8 1938 case $cache_file in
dd184caf 1939 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1940 *) . "./$cache_file";;
d9898ee8 1941 esac
1942 fi
1943else
8d138742
CE
1944 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1945$as_echo "$as_me: creating cache $cache_file" >&6;}
d9898ee8 1946 >$cache_file
1947fi
1948
1949# Check that the precious variables saved in the cache have kept the same
1950# value.
1951ac_cache_corrupted=false
dd184caf 1952for ac_var in $ac_precious_vars; do
d9898ee8 1953 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1954 eval ac_new_set=\$ac_env_${ac_var}_set
dd184caf 1955 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1956 eval ac_new_val=\$ac_env_${ac_var}_value
d9898ee8 1957 case $ac_old_set,$ac_new_set in
1958 set,)
8d138742
CE
1959 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1960$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
d9898ee8 1961 ac_cache_corrupted=: ;;
1962 ,set)
8d138742
CE
1963 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1964$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
d9898ee8 1965 ac_cache_corrupted=: ;;
1966 ,);;
1967 *)
1968 if test "x$ac_old_val" != "x$ac_new_val"; then
8d138742
CE
1969 # differences in whitespace do not lead to failure.
1970 ac_old_val_w=`echo x $ac_old_val`
1971 ac_new_val_w=`echo x $ac_new_val`
1972 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1973 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1974$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1975 ac_cache_corrupted=:
1976 else
1977 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1978$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1979 eval $ac_var=\$ac_old_val
1980 fi
1981 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1982$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1983 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1984$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
d9898ee8 1985 fi;;
1986 esac
1987 # Pass precious variables to config.status.
1988 if test "$ac_new_set" = set; then
1989 case $ac_new_val in
8d138742 1990 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
d9898ee8 1991 *) ac_arg=$ac_var=$ac_new_val ;;
1992 esac
1993 case " $ac_configure_args " in
1994 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1995 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1996 esac
1997 fi
1998done
1999if $ac_cache_corrupted; then
8d138742
CE
2000 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2001$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2002 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2003$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2004 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2005$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
d9898ee8 2006 { (exit 1); exit 1; }; }
2007fi
2008
d9898ee8 2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
dd184caf 2033ac_ext=c
2034ac_cpp='$CPP $CPPFLAGS'
2035ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2036ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2037ac_compiler_gnu=$ac_cv_c_compiler_gnu
d9898ee8 2038
2039
2040
2041>confdefs.h # Kill PACKAGE_ macros.
2042
2043LPATH="$PATH:/usr/local/bin"
2044
2045
8d138742 2046am__api_version='1.11'
dd184caf 2047
d9898ee8 2048ac_aux_dir=
dd184caf 2049for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2050 if 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
dd184caf 2054 elif test -f "$ac_dir/install.sh"; then
d9898ee8 2055 ac_aux_dir=$ac_dir
2056 ac_install_sh="$ac_aux_dir/install.sh -c"
2057 break
dd184caf 2058 elif test -f "$ac_dir/shtool"; then
d9898ee8 2059 ac_aux_dir=$ac_dir
2060 ac_install_sh="$ac_aux_dir/shtool install -c"
2061 break
2062 fi
2063done
2064if test -z "$ac_aux_dir"; then
8d138742
CE
2065 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2066$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
d9898ee8 2067 { (exit 1); exit 1; }; }
2068fi
dd184caf 2069
2070# These three variables are undocumented and unsupported,
2071# and are intended to be withdrawn in a future Autoconf release.
2072# They can cause serious problems if a builder's source tree is in a directory
2073# whose full name contains unusual characters.
2074ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2075ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2076ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2077
d9898ee8 2078
2079# Find a good install program. We prefer a C program (faster),
2080# so one script is as good as another. But avoid the broken or
2081# incompatible versions:
2082# SysV /etc/install, /usr/sbin/install
2083# SunOS /usr/etc/install
2084# IRIX /sbin/install
2085# AIX /bin/install
2086# AmigaOS /C/install, which installs bootblocks on floppy discs
2087# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2088# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2089# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2090# OS/2's system install, which has a completely different semantic
2091# ./install, which can be erroneously created by make from ./install.sh.
8d138742
CE
2092# Reject install programs that cannot install multiple files.
2093{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2094$as_echo_n "checking for a BSD-compatible install... " >&6; }
d9898ee8 2095if test -z "$INSTALL"; then
2096if test "${ac_cv_path_install+set}" = set; then
8d138742 2097 $as_echo_n "(cached) " >&6
d9898ee8 2098else
2099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2100for as_dir in $PATH
2101do
2102 IFS=$as_save_IFS
2103 test -z "$as_dir" && as_dir=.
2104 # Account for people who put trailing slashes in PATH elements.
2105case $as_dir/ in
2106 ./ | .// | /cC/* | \
2107 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2108 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2109 /usr/ucb/* ) ;;
2110 *)
2111 # OSF1 and SCO ODT 3.0 have their own names for install.
2112 # Don't use installbsd from OSF since it installs stuff as root
2113 # by default.
2114 for ac_prog in ginstall scoinst install; do
2115 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 2116 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
d9898ee8 2117 if test $ac_prog = install &&
2118 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2119 # AIX install. It has an incompatible calling convention.
2120 :
2121 elif test $ac_prog = install &&
2122 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2123 # program-specific install script used by HP pwplus--don't use.
2124 :
2125 else
8d138742
CE
2126 rm -rf conftest.one conftest.two conftest.dir
2127 echo one > conftest.one
2128 echo two > conftest.two
2129 mkdir conftest.dir
2130 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2131 test -s conftest.one && test -s conftest.two &&
2132 test -s conftest.dir/conftest.one &&
2133 test -s conftest.dir/conftest.two
2134 then
2135 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2136 break 3
2137 fi
d9898ee8 2138 fi
2139 fi
2140 done
2141 done
2142 ;;
2143esac
8d138742 2144
d9898ee8 2145done
dd184caf 2146IFS=$as_save_IFS
d9898ee8 2147
8d138742 2148rm -rf conftest.one conftest.two conftest.dir
d9898ee8 2149
2150fi
2151 if test "${ac_cv_path_install+set}" = set; then
2152 INSTALL=$ac_cv_path_install
2153 else
dd184caf 2154 # As a last resort, use the slow shell script. Don't cache a
2155 # value for INSTALL within a source directory, because that will
d9898ee8 2156 # break other packages using the cache if that directory is
dd184caf 2157 # removed, or if the value is a relative name.
d9898ee8 2158 INSTALL=$ac_install_sh
2159 fi
2160fi
8d138742
CE
2161{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2162$as_echo "$INSTALL" >&6; }
d9898ee8 2163
2164# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2165# It thinks the first close brace ends the variable substitution.
2166test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2167
2168test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2169
2170test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2171
8d138742
CE
2172{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2173$as_echo_n "checking whether build environment is sane... " >&6; }
d9898ee8 2174# Just in case
2175sleep 1
2176echo timestamp > conftest.file
8d138742
CE
2177# Reject unsafe characters in $srcdir or the absolute working directory
2178# name. Accept space and tab only in the latter.
2179am_lf='
2180'
2181case `pwd` in
2182 *[\\\"\#\$\&\'\`$am_lf]*)
2183 { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2184$as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2185 { (exit 1); exit 1; }; };;
2186esac
2187case $srcdir in
2188 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2189 { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2190$as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2191 { (exit 1); exit 1; }; };;
2192esac
2193
d9898ee8 2194# Do `set' in a subshell so we don't clobber the current shell's
2195# arguments. Must try -L first in case configure is actually a
2196# symlink; some systems play weird games with the mod time of symlinks
2197# (eg FreeBSD returns the mod time of the symlink's containing
2198# directory).
2199if (
8d138742 2200 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
d9898ee8 2201 if test "$*" = "X"; then
2202 # -L didn't work.
8d138742 2203 set X `ls -t "$srcdir/configure" conftest.file`
d9898ee8 2204 fi
2205 rm -f conftest.file
2206 if test "$*" != "X $srcdir/configure conftest.file" \
2207 && test "$*" != "X conftest.file $srcdir/configure"; then
2208
2209 # If neither matched, then we have a broken ls. This can happen
2210 # if, for instance, CONFIG_SHELL is bash and it inherits a
2211 # broken ls alias from the environment. This has actually
2212 # happened. Such a system could not be considered "sane".
8d138742 2213 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
d9898ee8 2214alias in your environment" >&5
8d138742 2215$as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
d9898ee8 2216alias in your environment" >&2;}
2217 { (exit 1); exit 1; }; }
2218 fi
2219
2220 test "$2" = conftest.file
2221 )
2222then
2223 # Ok.
2224 :
2225else
8d138742 2226 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
d9898ee8 2227Check your system clock" >&5
8d138742 2228$as_echo "$as_me: error: newly created file is older than distributed files!
d9898ee8 2229Check your system clock" >&2;}
2230 { (exit 1); exit 1; }; }
2231fi
8d138742
CE
2232{ $as_echo "$as_me:$LINENO: result: yes" >&5
2233$as_echo "yes" >&6; }
d9898ee8 2234test "$program_prefix" != NONE &&
dd184caf 2235 program_transform_name="s&^&$program_prefix&;$program_transform_name"
d9898ee8 2236# Use a double $ so make ignores it.
2237test "$program_suffix" != NONE &&
dd184caf 2238 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
8d138742 2239# Double any \ or $.
d9898ee8 2240# By default was `s,x,x', remove it if useless.
8d138742
CE
2241ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2242program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
d9898ee8 2243
2244# expand $ac_aux_dir to an absolute path
2245am_aux_dir=`cd $ac_aux_dir && pwd`
2246
8d138742
CE
2247if test x"${MISSING+set}" != xset; then
2248 case $am_aux_dir in
2249 *\ * | *\ *)
2250 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2251 *)
2252 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2253 esac
2254fi
d9898ee8 2255# Use eval to expand $SHELL
2256if eval "$MISSING --run true"; then
2257 am_missing_run="$MISSING --run "
2258else
2259 am_missing_run=
8d138742
CE
2260 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2261$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2262fi
2263
2264if test x"${install_sh}" != xset; then
2265 case $am_aux_dir in
2266 *\ * | *\ *)
2267 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2268 *)
2269 install_sh="\${SHELL} $am_aux_dir/install-sh"
2270 esac
2271fi
2272
2273# Installed binaries are usually stripped using `strip' when the user
2274# run `make install-strip'. However `strip' might not be the right
2275# tool to use in cross-compilation environments, therefore Automake
2276# will honor the `STRIP' environment variable to overrule this program.
2277if test "$cross_compiling" != no; then
2278 if test -n "$ac_tool_prefix"; then
2279 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2280set dummy ${ac_tool_prefix}strip; ac_word=$2
2281{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2282$as_echo_n "checking for $ac_word... " >&6; }
2283if test "${ac_cv_prog_STRIP+set}" = set; then
2284 $as_echo_n "(cached) " >&6
2285else
2286 if test -n "$STRIP"; then
2287 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2288else
2289as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2290for as_dir in $PATH
2291do
2292 IFS=$as_save_IFS
2293 test -z "$as_dir" && as_dir=.
2294 for ac_exec_ext in '' $ac_executable_extensions; do
2295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2296 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2297 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2298 break 2
2299 fi
2300done
2301done
2302IFS=$as_save_IFS
2303
2304fi
2305fi
2306STRIP=$ac_cv_prog_STRIP
2307if test -n "$STRIP"; then
2308 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2309$as_echo "$STRIP" >&6; }
2310else
2311 { $as_echo "$as_me:$LINENO: result: no" >&5
2312$as_echo "no" >&6; }
2313fi
2314
2315
2316fi
2317if test -z "$ac_cv_prog_STRIP"; then
2318 ac_ct_STRIP=$STRIP
2319 # Extract the first word of "strip", so it can be a program name with args.
2320set dummy strip; ac_word=$2
2321{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2322$as_echo_n "checking for $ac_word... " >&6; }
2323if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2324 $as_echo_n "(cached) " >&6
2325else
2326 if test -n "$ac_ct_STRIP"; then
2327 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2328else
2329as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2330for as_dir in $PATH
2331do
2332 IFS=$as_save_IFS
2333 test -z "$as_dir" && as_dir=.
2334 for ac_exec_ext in '' $ac_executable_extensions; do
2335 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2336 ac_cv_prog_ac_ct_STRIP="strip"
2337 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2338 break 2
2339 fi
2340done
2341done
2342IFS=$as_save_IFS
2343
2344fi
2345fi
2346ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2347if test -n "$ac_ct_STRIP"; then
2348 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2349$as_echo "$ac_ct_STRIP" >&6; }
2350else
2351 { $as_echo "$as_me:$LINENO: result: no" >&5
2352$as_echo "no" >&6; }
2353fi
2354
2355 if test "x$ac_ct_STRIP" = x; then
2356 STRIP=":"
2357 else
2358 case $cross_compiling:$ac_tool_warned in
2359yes:)
2360{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2361$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2362ac_tool_warned=yes ;;
2363esac
2364 STRIP=$ac_ct_STRIP
2365 fi
2366else
2367 STRIP="$ac_cv_prog_STRIP"
2368fi
2369
d9898ee8 2370fi
8d138742 2371INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
d9898ee8 2372
8d138742
CE
2373{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2374$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
dd184caf 2375if test -z "$MKDIR_P"; then
2376 if test "${ac_cv_path_mkdir+set}" = set; then
8d138742 2377 $as_echo_n "(cached) " >&6
dd184caf 2378else
2379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2380for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2381do
2382 IFS=$as_save_IFS
2383 test -z "$as_dir" && as_dir=.
2384 for ac_prog in mkdir gmkdir; do
2385 for ac_exec_ext in '' $ac_executable_extensions; do
2386 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2387 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2388 'mkdir (GNU coreutils) '* | \
2389 'mkdir (coreutils) '* | \
2390 'mkdir (fileutils) '4.1*)
2391 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2392 break 3;;
2393 esac
2394 done
2395 done
2396done
2397IFS=$as_save_IFS
2398
2399fi
2400
2401 if test "${ac_cv_path_mkdir+set}" = set; then
2402 MKDIR_P="$ac_cv_path_mkdir -p"
d9898ee8 2403 else
dd184caf 2404 # As a last resort, use the slow shell script. Don't cache a
2405 # value for MKDIR_P within a source directory, because that will
2406 # break other packages using the cache if that directory is
2407 # removed, or if the value is a relative name.
2408 test -d ./--version && rmdir ./--version
2409 MKDIR_P="$ac_install_sh -d"
d9898ee8 2410 fi
2411fi
8d138742
CE
2412{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2413$as_echo "$MKDIR_P" >&6; }
dd184caf 2414
2415mkdir_p="$MKDIR_P"
2416case $mkdir_p in
2417 [\\/$]* | ?:[\\/]*) ;;
2418 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2419esac
d9898ee8 2420
2421for ac_prog in gawk mawk nawk awk
2422do
2423 # Extract the first word of "$ac_prog", so it can be a program name with args.
2424set dummy $ac_prog; ac_word=$2
8d138742
CE
2425{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2426$as_echo_n "checking for $ac_word... " >&6; }
d9898ee8 2427if test "${ac_cv_prog_AWK+set}" = set; then
8d138742 2428 $as_echo_n "(cached) " >&6
d9898ee8 2429else
2430 if test -n "$AWK"; then
2431 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2432else
2433as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2434for as_dir in $PATH
2435do
2436 IFS=$as_save_IFS
2437 test -z "$as_dir" && as_dir=.
2438 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 2439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2440 ac_cv_prog_AWK="$ac_prog"
8d138742 2441 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 2442 break 2
2443 fi
2444done
2445done
dd184caf 2446IFS=$as_save_IFS
d9898ee8 2447
2448fi
2449fi
2450AWK=$ac_cv_prog_AWK
2451if test -n "$AWK"; then
8d138742
CE
2452 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2453$as_echo "$AWK" >&6; }
d9898ee8 2454else
8d138742
CE
2455 { $as_echo "$as_me:$LINENO: result: no" >&5
2456$as_echo "no" >&6; }
d9898ee8 2457fi
2458
dd184caf 2459
d9898ee8 2460 test -n "$AWK" && break
2461done
2462
8d138742
CE
2463{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2464$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2465set x ${MAKE-make}
2466ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
dd184caf 2467if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
8d138742 2468 $as_echo_n "(cached) " >&6
d9898ee8 2469else
2470 cat >conftest.make <<\_ACEOF
dd184caf 2471SHELL = /bin/sh
d9898ee8 2472all:
dd184caf 2473 @echo '@@@%%%=$(MAKE)=@@@%%%'
d9898ee8 2474_ACEOF
2475# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
dd184caf 2476case `${MAKE-make} -f conftest.make 2>/dev/null` in
2477 *@@@%%%=?*=@@@%%%*)
2478 eval ac_cv_prog_make_${ac_make}_set=yes;;
2479 *)
2480 eval ac_cv_prog_make_${ac_make}_set=no;;
2481esac
d9898ee8 2482rm -f conftest.make
2483fi
dd184caf 2484if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8d138742
CE
2485 { $as_echo "$as_me:$LINENO: result: yes" >&5
2486$as_echo "yes" >&6; }
d9898ee8 2487 SET_MAKE=
2488else
8d138742
CE
2489 { $as_echo "$as_me:$LINENO: result: no" >&5
2490$as_echo "no" >&6; }
d9898ee8 2491 SET_MAKE="MAKE=${MAKE-make}"
2492fi
2493
2494rm -rf .tst 2>/dev/null
2495mkdir .tst 2>/dev/null
2496if test -d .tst; then
2497 am__leading_dot=.
2498else
2499 am__leading_dot=_
2500fi
2501rmdir .tst 2>/dev/null
2502
dd184caf 2503if test "`cd $srcdir && pwd`" != "`pwd`"; then
2504 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2505 # is not polluted with repeated "-I."
2506 am__isrc=' -I$(srcdir)'
2507 # test to see if srcdir already configured
2508 if test -f $srcdir/config.status; then
8d138742
CE
2509 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2510$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
d9898ee8 2511 { (exit 1); exit 1; }; }
dd184caf 2512 fi
d9898ee8 2513fi
2514
2515# test whether we have cygpath
2516if test -z "$CYGPATH_W"; then
2517 if (cygpath --version) >/dev/null 2>/dev/null; then
2518 CYGPATH_W='cygpath -w'
2519 else
2520 CYGPATH_W=echo
2521 fi
2522fi
2523
2524
2525# Define the identity of the package.
2526 PACKAGE='libuserdb'
2527 VERSION='0.10'
2528
2529
2530# Some tools Automake needs.
2531
2532ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2533
2534
2535AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2536
2537
2538AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2539
2540
2541AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2542
2543
2544MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2545
d9898ee8 2546# We need awk for the "check" target. The system "awk" is bad on
2547# some platforms.
2548# Always define AMTAR for backward compatibility.
2549
2550AMTAR=${AMTAR-"${am_missing_run}tar"}
2551
2552am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2553
2554
2555
2556
2557
2558
2559for ac_prog in gawk mawk nawk awk
2560do
2561 # Extract the first word of "$ac_prog", so it can be a program name with args.
2562set dummy $ac_prog; ac_word=$2
8d138742
CE
2563{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2564$as_echo_n "checking for $ac_word... " >&6; }
d9898ee8 2565if test "${ac_cv_prog_AWK+set}" = set; then
8d138742 2566 $as_echo_n "(cached) " >&6
d9898ee8 2567else
2568 if test -n "$AWK"; then
2569 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2570else
2571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2572for as_dir in $PATH
2573do
2574 IFS=$as_save_IFS
2575 test -z "$as_dir" && as_dir=.
2576 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 2577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2578 ac_cv_prog_AWK="$ac_prog"
8d138742 2579 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 2580 break 2
2581 fi
2582done
2583done
dd184caf 2584IFS=$as_save_IFS
d9898ee8 2585
2586fi
2587fi
2588AWK=$ac_cv_prog_AWK
2589if test -n "$AWK"; then
8d138742
CE
2590 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2591$as_echo "$AWK" >&6; }
d9898ee8 2592else
8d138742
CE
2593 { $as_echo "$as_me:$LINENO: result: no" >&5
2594$as_echo "no" >&6; }
d9898ee8 2595fi
2596
dd184caf 2597
d9898ee8 2598 test -n "$AWK" && break
2599done
2600
2601ac_ext=c
2602ac_cpp='$CPP $CPPFLAGS'
2603ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2604ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2605ac_compiler_gnu=$ac_cv_c_compiler_gnu
2606if test -n "$ac_tool_prefix"; then
2607 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2608set dummy ${ac_tool_prefix}gcc; ac_word=$2
8d138742
CE
2609{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2610$as_echo_n "checking for $ac_word... " >&6; }
d9898ee8 2611if test "${ac_cv_prog_CC+set}" = set; then
8d138742 2612 $as_echo_n "(cached) " >&6
d9898ee8 2613else
2614 if test -n "$CC"; then
2615 ac_cv_prog_CC="$CC" # Let the user override the test.
2616else
2617as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2618for as_dir in $PATH
2619do
2620 IFS=$as_save_IFS
2621 test -z "$as_dir" && as_dir=.
2622 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 2623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2624 ac_cv_prog_CC="${ac_tool_prefix}gcc"
8d138742 2625 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 2626 break 2
2627 fi
2628done
2629done
dd184caf 2630IFS=$as_save_IFS
d9898ee8 2631
2632fi
2633fi
2634CC=$ac_cv_prog_CC
2635if test -n "$CC"; then
8d138742
CE
2636 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2637$as_echo "$CC" >&6; }
d9898ee8 2638else
8d138742
CE
2639 { $as_echo "$as_me:$LINENO: result: no" >&5
2640$as_echo "no" >&6; }
d9898ee8 2641fi
2642
dd184caf 2643
d9898ee8 2644fi
2645if test -z "$ac_cv_prog_CC"; then
2646 ac_ct_CC=$CC
2647 # Extract the first word of "gcc", so it can be a program name with args.
2648set dummy gcc; ac_word=$2
8d138742
CE
2649{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2650$as_echo_n "checking for $ac_word... " >&6; }
d9898ee8 2651if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
8d138742 2652 $as_echo_n "(cached) " >&6
d9898ee8 2653else
2654 if test -n "$ac_ct_CC"; then
2655 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2656else
2657as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2658for as_dir in $PATH
2659do
2660 IFS=$as_save_IFS
2661 test -z "$as_dir" && as_dir=.
2662 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 2663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2664 ac_cv_prog_ac_ct_CC="gcc"
8d138742 2665 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 2666 break 2
2667 fi
2668done
2669done
dd184caf 2670IFS=$as_save_IFS
d9898ee8 2671
2672fi
2673fi
2674ac_ct_CC=$ac_cv_prog_ac_ct_CC
2675if test -n "$ac_ct_CC"; then
8d138742
CE
2676 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2677$as_echo "$ac_ct_CC" >&6; }
d9898ee8 2678else
8d138742
CE
2679 { $as_echo "$as_me:$LINENO: result: no" >&5
2680$as_echo "no" >&6; }
d9898ee8 2681fi
2682
dd184caf 2683 if test "x$ac_ct_CC" = x; then
2684 CC=""
2685 else
2686 case $cross_compiling:$ac_tool_warned in
2687yes:)
8d138742
CE
2688{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2689$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
dd184caf 2690ac_tool_warned=yes ;;
2691esac
2692 CC=$ac_ct_CC
2693 fi
d9898ee8 2694else
2695 CC="$ac_cv_prog_CC"
2696fi
2697
2698if test -z "$CC"; then
dd184caf 2699 if test -n "$ac_tool_prefix"; then
2700 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
d9898ee8 2701set dummy ${ac_tool_prefix}cc; ac_word=$2
8d138742
CE
2702{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2703$as_echo_n "checking for $ac_word... " >&6; }
d9898ee8 2704if test "${ac_cv_prog_CC+set}" = set; then
8d138742 2705 $as_echo_n "(cached) " >&6
d9898ee8 2706else
2707 if test -n "$CC"; then
2708 ac_cv_prog_CC="$CC" # Let the user override the test.
2709else
2710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2711for as_dir in $PATH
2712do
2713 IFS=$as_save_IFS
2714 test -z "$as_dir" && as_dir=.
2715 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 2716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2717 ac_cv_prog_CC="${ac_tool_prefix}cc"
8d138742 2718 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 2719 break 2
2720 fi
2721done
2722done
dd184caf 2723IFS=$as_save_IFS
d9898ee8 2724
2725fi
2726fi
2727CC=$ac_cv_prog_CC
2728if test -n "$CC"; then
8d138742
CE
2729 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2730$as_echo "$CC" >&6; }
d9898ee8 2731else
8d138742
CE
2732 { $as_echo "$as_me:$LINENO: result: no" >&5
2733$as_echo "no" >&6; }
d9898ee8 2734fi
2735
d9898ee8 2736
dd184caf 2737 fi
d9898ee8 2738fi
2739if test -z "$CC"; then
2740 # Extract the first word of "cc", so it can be a program name with args.
2741set dummy cc; ac_word=$2
8d138742
CE
2742{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2743$as_echo_n "checking for $ac_word... " >&6; }
d9898ee8 2744if test "${ac_cv_prog_CC+set}" = set; then
8d138742 2745 $as_echo_n "(cached) " >&6
d9898ee8 2746else
2747 if test -n "$CC"; then
2748 ac_cv_prog_CC="$CC" # Let the user override the test.
2749else
2750 ac_prog_rejected=no
2751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2752for as_dir in $PATH
2753do
2754 IFS=$as_save_IFS
2755 test -z "$as_dir" && as_dir=.
2756 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 2757 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2758 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2759 ac_prog_rejected=yes
2760 continue
2761 fi
2762 ac_cv_prog_CC="cc"
8d138742 2763 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 2764 break 2
2765 fi
2766done
2767done
dd184caf 2768IFS=$as_save_IFS
d9898ee8 2769
2770if test $ac_prog_rejected = yes; then
2771 # We found a bogon in the path, so make sure we never use it.
2772 set dummy $ac_cv_prog_CC
2773 shift
2774 if test $# != 0; then
2775 # We chose a different compiler from the bogus one.
2776 # However, it has the same basename, so the bogon will be chosen
2777 # first if we set CC to just the basename; use the full file name.
2778 shift
2779 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2780 fi
2781fi
2782fi
2783fi
2784CC=$ac_cv_prog_CC
2785if test -n "$CC"; then
8d138742
CE
2786 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2787$as_echo "$CC" >&6; }
d9898ee8 2788else
8d138742
CE
2789 { $as_echo "$as_me:$LINENO: result: no" >&5
2790$as_echo "no" >&6; }
d9898ee8 2791fi
2792
dd184caf 2793
d9898ee8 2794fi
2795if test -z "$CC"; then
2796 if test -n "$ac_tool_prefix"; then
dd184caf 2797 for ac_prog in cl.exe
d9898ee8 2798 do
2799 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2800set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8d138742
CE
2801{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2802$as_echo_n "checking for $ac_word... " >&6; }
d9898ee8 2803if test "${ac_cv_prog_CC+set}" = set; then
8d138742 2804 $as_echo_n "(cached) " >&6
d9898ee8 2805else
2806 if test -n "$CC"; then
2807 ac_cv_prog_CC="$CC" # Let the user override the test.
2808else
2809as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2810for as_dir in $PATH
2811do
2812 IFS=$as_save_IFS
2813 test -z "$as_dir" && as_dir=.
2814 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 2815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2816 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
8d138742 2817 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 2818 break 2
2819 fi
2820done
2821done
dd184caf 2822IFS=$as_save_IFS
d9898ee8 2823
2824fi
2825fi
2826CC=$ac_cv_prog_CC
2827if test -n "$CC"; then
8d138742
CE
2828 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2829$as_echo "$CC" >&6; }
d9898ee8 2830else
8d138742
CE
2831 { $as_echo "$as_me:$LINENO: result: no" >&5
2832$as_echo "no" >&6; }
d9898ee8 2833fi
2834
dd184caf 2835
d9898ee8 2836 test -n "$CC" && break
2837 done
2838fi
2839if test -z "$CC"; then
2840 ac_ct_CC=$CC
dd184caf 2841 for ac_prog in cl.exe
d9898ee8 2842do
2843 # Extract the first word of "$ac_prog", so it can be a program name with args.
2844set dummy $ac_prog; ac_word=$2
8d138742
CE
2845{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2846$as_echo_n "checking for $ac_word... " >&6; }
d9898ee8 2847if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
8d138742 2848 $as_echo_n "(cached) " >&6
d9898ee8 2849else
2850 if test -n "$ac_ct_CC"; then
2851 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2852else
2853as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2854for as_dir in $PATH
2855do
2856 IFS=$as_save_IFS
2857 test -z "$as_dir" && as_dir=.
2858 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 2859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2860 ac_cv_prog_ac_ct_CC="$ac_prog"
8d138742 2861 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 2862 break 2
2863 fi
2864done
2865done
dd184caf 2866IFS=$as_save_IFS
d9898ee8 2867
2868fi
2869fi
2870ac_ct_CC=$ac_cv_prog_ac_ct_CC
2871if test -n "$ac_ct_CC"; then
8d138742
CE
2872 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2873$as_echo "$ac_ct_CC" >&6; }
d9898ee8 2874else
8d138742
CE
2875 { $as_echo "$as_me:$LINENO: result: no" >&5
2876$as_echo "no" >&6; }
d9898ee8 2877fi
2878
dd184caf 2879
d9898ee8 2880 test -n "$ac_ct_CC" && break
2881done
2882
dd184caf 2883 if test "x$ac_ct_CC" = x; then
2884 CC=""
2885 else
2886 case $cross_compiling:$ac_tool_warned in
2887yes:)
8d138742
CE
2888{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2889$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
dd184caf 2890ac_tool_warned=yes ;;
2891esac
2892 CC=$ac_ct_CC
2893 fi
d9898ee8 2894fi
2895
2896fi
2897
2898
8d138742
CE
2899test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2900$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2901{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
d9898ee8 2902See \`config.log' for more details." >&5
8d138742 2903$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
d9898ee8 2904See \`config.log' for more details." >&2;}
8d138742 2905 { (exit 1); exit 1; }; }; }
d9898ee8 2906
2907# Provide some information about the compiler.
8d138742
CE
2908$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2909set X $ac_compile
2910ac_compiler=$2
dd184caf 2911{ (ac_try="$ac_compiler --version >&5"
2912case "(($ac_try" in
2913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2914 *) ac_try_echo=$ac_try;;
2915esac
8d138742
CE
2916eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2917$as_echo "$ac_try_echo") >&5
dd184caf 2918 (eval "$ac_compiler --version >&5") 2>&5
d9898ee8 2919 ac_status=$?
8d138742 2920 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9898ee8 2921 (exit $ac_status); }
dd184caf 2922{ (ac_try="$ac_compiler -v >&5"
2923case "(($ac_try" in
2924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2925 *) ac_try_echo=$ac_try;;
2926esac
8d138742
CE
2927eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2928$as_echo "$ac_try_echo") >&5
dd184caf 2929 (eval "$ac_compiler -v >&5") 2>&5
d9898ee8 2930 ac_status=$?
8d138742 2931 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9898ee8 2932 (exit $ac_status); }
dd184caf 2933{ (ac_try="$ac_compiler -V >&5"
2934case "(($ac_try" in
2935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2936 *) ac_try_echo=$ac_try;;
2937esac
8d138742
CE
2938eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2939$as_echo "$ac_try_echo") >&5
dd184caf 2940 (eval "$ac_compiler -V >&5") 2>&5
d9898ee8 2941 ac_status=$?
8d138742 2942 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9898ee8 2943 (exit $ac_status); }
2944
2945cat >conftest.$ac_ext <<_ACEOF
2946/* confdefs.h. */
2947_ACEOF
2948cat confdefs.h >>conftest.$ac_ext
2949cat >>conftest.$ac_ext <<_ACEOF
2950/* end confdefs.h. */
2951
2952int
2953main ()
2954{
2955
2956 ;
2957 return 0;
2958}
2959_ACEOF
2960ac_clean_files_save=$ac_clean_files
8d138742 2961ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
d9898ee8 2962# Try to create an executable without -o first, disregard a.out.
2963# It will help us diagnose broken compilers, and finding out an intuition
2964# of exeext.
8d138742
CE
2965{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2966$as_echo_n "checking for C compiler default output file name... " >&6; }
2967ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2968
2969# The possible output files:
2970ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2971
dd184caf 2972ac_rmfiles=
2973for ac_file in $ac_files
2974do
2975 case $ac_file in
8d138742 2976 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
dd184caf 2977 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2978 esac
2979done
2980rm -f $ac_rmfiles
2981
2982if { (ac_try="$ac_link_default"
2983case "(($ac_try" in
2984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2985 *) ac_try_echo=$ac_try;;
2986esac
8d138742
CE
2987eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2988$as_echo "$ac_try_echo") >&5
dd184caf 2989 (eval "$ac_link_default") 2>&5
d9898ee8 2990 ac_status=$?
8d138742 2991 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9898ee8 2992 (exit $ac_status); }; then
dd184caf 2993 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2994# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2995# in a Makefile. We should not override ac_cv_exeext if it was cached,
2996# so that the user can short-circuit this test for compilers unknown to
2997# Autoconf.
2998for ac_file in $ac_files ''
d9898ee8 2999do
3000 test -f "$ac_file" || continue
3001 case $ac_file in
8d138742 3002 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
d9898ee8 3003 ;;
3004 [ab].out )
3005 # We found the default executable, but exeext='' is most
3006 # certainly right.
3007 break;;
3008 *.* )
dd184caf 3009 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3010 then :; else
3011 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3012 fi
3013 # We set ac_cv_exeext here because the later test for it is not
3014 # safe: cross compilers may not add the suffix if given an `-o'
3015 # argument, so we may need to know it at that point already.
3016 # Even if this section looks crufty: it has the advantage of
3017 # actually working.
d9898ee8 3018 break;;
3019 * )
3020 break;;
3021 esac
3022done
dd184caf 3023test "$ac_cv_exeext" = no && ac_cv_exeext=
3024
d9898ee8 3025else
dd184caf 3026 ac_file=''
3027fi
3028
8d138742
CE
3029{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3030$as_echo "$ac_file" >&6; }
dd184caf 3031if test -z "$ac_file"; then
8d138742 3032 $as_echo "$as_me: failed program was:" >&5
d9898ee8 3033sed 's/^/| /' conftest.$ac_ext >&5
3034
8d138742
CE
3035{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3036$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3037{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
d9898ee8 3038See \`config.log' for more details." >&5
8d138742 3039$as_echo "$as_me: error: C compiler cannot create executables
d9898ee8 3040See \`config.log' for more details." >&2;}
8d138742 3041 { (exit 77); exit 77; }; }; }
d9898ee8 3042fi
3043
3044ac_exeext=$ac_cv_exeext
d9898ee8 3045
dd184caf 3046# Check that the compiler produces executables we can run. If not, either
d9898ee8 3047# the compiler is broken, or we cross compile.
8d138742
CE
3048{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3049$as_echo_n "checking whether the C compiler works... " >&6; }
d9898ee8 3050# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3051# If not cross compiling, check that we can run a simple program.
3052if test "$cross_compiling" != yes; then
3053 if { ac_try='./$ac_file'
dd184caf 3054 { (case "(($ac_try" in
3055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3056 *) ac_try_echo=$ac_try;;
3057esac
8d138742
CE
3058eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3059$as_echo "$ac_try_echo") >&5
dd184caf 3060 (eval "$ac_try") 2>&5
d9898ee8 3061 ac_status=$?
8d138742 3062 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9898ee8 3063 (exit $ac_status); }; }; then
3064 cross_compiling=no
3065 else
3066 if test "$cross_compiling" = maybe; then
3067 cross_compiling=yes
3068 else
8d138742
CE
3069 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3070$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3071{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
d9898ee8 3072If you meant to cross compile, use \`--host'.
3073See \`config.log' for more details." >&5
8d138742 3074$as_echo "$as_me: error: cannot run C compiled programs.
d9898ee8 3075If you meant to cross compile, use \`--host'.
3076See \`config.log' for more details." >&2;}
8d138742 3077 { (exit 1); exit 1; }; }; }
d9898ee8 3078 fi
3079 fi
3080fi
8d138742
CE
3081{ $as_echo "$as_me:$LINENO: result: yes" >&5
3082$as_echo "yes" >&6; }
d9898ee8 3083
8d138742 3084rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
d9898ee8 3085ac_clean_files=$ac_clean_files_save
dd184caf 3086# Check that the compiler produces executables we can run. If not, either
d9898ee8 3087# the compiler is broken, or we cross compile.
8d138742
CE
3088{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3089$as_echo_n "checking whether we are cross compiling... " >&6; }
3090{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3091$as_echo "$cross_compiling" >&6; }
dd184caf 3092
8d138742
CE
3093{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3094$as_echo_n "checking for suffix of executables... " >&6; }
dd184caf 3095if { (ac_try="$ac_link"
3096case "(($ac_try" in
3097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3098 *) ac_try_echo=$ac_try;;
3099esac
8d138742
CE
3100eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3101$as_echo "$ac_try_echo") >&5
dd184caf 3102 (eval "$ac_link") 2>&5
d9898ee8 3103 ac_status=$?
8d138742 3104 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9898ee8 3105 (exit $ac_status); }; then
3106 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3107# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3108# work properly (i.e., refer to `conftest.exe'), while it won't with
3109# `rm'.
3110for ac_file in conftest.exe conftest conftest.*; do
3111 test -f "$ac_file" || continue
3112 case $ac_file in
8d138742 3113 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
d9898ee8 3114 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
d9898ee8 3115 break;;
3116 * ) break;;
3117 esac
3118done
3119else
8d138742
CE
3120 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3121$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3122{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
d9898ee8 3123See \`config.log' for more details." >&5
8d138742 3124$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
d9898ee8 3125See \`config.log' for more details." >&2;}
8d138742 3126 { (exit 1); exit 1; }; }; }
d9898ee8 3127fi
3128
3129rm -f conftest$ac_cv_exeext
8d138742
CE
3130{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3131$as_echo "$ac_cv_exeext" >&6; }
d9898ee8 3132
3133rm -f conftest.$ac_ext
3134EXEEXT=$ac_cv_exeext
3135ac_exeext=$EXEEXT
8d138742
CE
3136{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3137$as_echo_n "checking for suffix of object files... " >&6; }
d9898ee8 3138if test "${ac_cv_objext+set}" = set; then
8d138742 3139 $as_echo_n "(cached) " >&6
d9898ee8 3140else
3141 cat >conftest.$ac_ext <<_ACEOF
3142/* confdefs.h. */
3143_ACEOF
3144cat confdefs.h >>conftest.$ac_ext
3145cat >>conftest.$ac_ext <<_ACEOF
3146/* end confdefs.h. */
3147
3148int
3149main ()
3150{
3151
3152 ;
3153 return 0;
3154}
3155_ACEOF
3156rm -f conftest.o conftest.obj
dd184caf 3157if { (ac_try="$ac_compile"
3158case "(($ac_try" in
3159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3160 *) ac_try_echo=$ac_try;;
3161esac
8d138742
CE
3162eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3163$as_echo "$ac_try_echo") >&5
dd184caf 3164 (eval "$ac_compile") 2>&5
d9898ee8 3165 ac_status=$?
8d138742 3166 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9898ee8 3167 (exit $ac_status); }; then
dd184caf 3168 for ac_file in conftest.o conftest.obj conftest.*; do
3169 test -f "$ac_file" || continue;
d9898ee8 3170 case $ac_file in
8d138742 3171 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
d9898ee8 3172 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3173 break;;
3174 esac
3175done
3176else
8d138742 3177 $as_echo "$as_me: failed program was:" >&5
d9898ee8 3178sed 's/^/| /' conftest.$ac_ext >&5
3179
8d138742
CE
3180{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3181$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3182{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
d9898ee8 3183See \`config.log' for more details." >&5
8d138742 3184$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
d9898ee8 3185See \`config.log' for more details." >&2;}
8d138742 3186 { (exit 1); exit 1; }; }; }
d9898ee8 3187fi
3188
3189rm -f conftest.$ac_cv_objext conftest.$ac_ext
3190fi
8d138742
CE
3191{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3192$as_echo "$ac_cv_objext" >&6; }
d9898ee8 3193OBJEXT=$ac_cv_objext
3194ac_objext=$OBJEXT
8d138742
CE
3195{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3196$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
d9898ee8 3197if test "${ac_cv_c_compiler_gnu+set}" = set; then
8d138742 3198 $as_echo_n "(cached) " >&6
d9898ee8 3199else
3200 cat >conftest.$ac_ext <<_ACEOF
3201/* confdefs.h. */
3202_ACEOF
3203cat confdefs.h >>conftest.$ac_ext
3204cat >>conftest.$ac_ext <<_ACEOF
3205/* end confdefs.h. */
3206
3207int
3208main ()
3209{
3210#ifndef __GNUC__
3211 choke me
3212#endif
3213
3214 ;
3215 return 0;
3216}
3217_ACEOF
3218rm -f conftest.$ac_objext
dd184caf 3219if { (ac_try="$ac_compile"
3220case "(($ac_try" in
3221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3222 *) ac_try_echo=$ac_try;;
3223esac
8d138742
CE
3224eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3225$as_echo "$ac_try_echo") >&5
dd184caf 3226 (eval "$ac_compile") 2>conftest.er1
d9898ee8 3227 ac_status=$?
3228 grep -v '^ *+' conftest.er1 >conftest.err
3229 rm -f conftest.er1
3230 cat conftest.err >&5
8d138742 3231 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 3232 (exit $ac_status); } && {
3233 test -z "$ac_c_werror_flag" ||
3234 test ! -s conftest.err
3235 } && test -s conftest.$ac_objext; then
d9898ee8 3236 ac_compiler_gnu=yes
3237else
8d138742 3238 $as_echo "$as_me: failed program was:" >&5
d9898ee8 3239sed 's/^/| /' conftest.$ac_ext >&5
3240
dd184caf 3241 ac_compiler_gnu=no
d9898ee8 3242fi
dd184caf 3243
3244rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 3245ac_cv_c_compiler_gnu=$ac_compiler_gnu
3246
3247fi
8d138742
CE
3248{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3249$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3250if test $ac_compiler_gnu = yes; then
3251 GCC=yes
3252else
3253 GCC=
3254fi
d9898ee8 3255ac_test_CFLAGS=${CFLAGS+set}
3256ac_save_CFLAGS=$CFLAGS
8d138742
CE
3257{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3258$as_echo_n "checking whether $CC accepts -g... " >&6; }
d9898ee8 3259if test "${ac_cv_prog_cc_g+set}" = set; then
8d138742 3260 $as_echo_n "(cached) " >&6
d9898ee8 3261else
dd184caf 3262 ac_save_c_werror_flag=$ac_c_werror_flag
3263 ac_c_werror_flag=yes
3264 ac_cv_prog_cc_g=no
3265 CFLAGS="-g"
3266 cat >conftest.$ac_ext <<_ACEOF
d9898ee8 3267/* confdefs.h. */
3268_ACEOF
3269cat confdefs.h >>conftest.$ac_ext
3270cat >>conftest.$ac_ext <<_ACEOF
3271/* end confdefs.h. */
3272
3273int
3274main ()
3275{
3276
3277 ;
3278 return 0;
3279}
3280_ACEOF
3281rm -f conftest.$ac_objext
dd184caf 3282if { (ac_try="$ac_compile"
3283case "(($ac_try" in
3284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3285 *) ac_try_echo=$ac_try;;
3286esac
8d138742
CE
3287eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3288$as_echo "$ac_try_echo") >&5
dd184caf 3289 (eval "$ac_compile") 2>conftest.er1
d9898ee8 3290 ac_status=$?
3291 grep -v '^ *+' conftest.er1 >conftest.err
3292 rm -f conftest.er1
3293 cat conftest.err >&5
8d138742 3294 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 3295 (exit $ac_status); } && {
3296 test -z "$ac_c_werror_flag" ||
3297 test ! -s conftest.err
3298 } && test -s conftest.$ac_objext; then
3299 ac_cv_prog_cc_g=yes
3300else
8d138742 3301 $as_echo "$as_me: failed program was:" >&5
dd184caf 3302sed 's/^/| /' conftest.$ac_ext >&5
3303
3304 CFLAGS=""
3305 cat >conftest.$ac_ext <<_ACEOF
3306/* confdefs.h. */
3307_ACEOF
3308cat confdefs.h >>conftest.$ac_ext
3309cat >>conftest.$ac_ext <<_ACEOF
3310/* end confdefs.h. */
3311
3312int
3313main ()
3314{
3315
3316 ;
3317 return 0;
3318}
3319_ACEOF
3320rm -f conftest.$ac_objext
3321if { (ac_try="$ac_compile"
3322case "(($ac_try" in
3323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3324 *) ac_try_echo=$ac_try;;
3325esac
8d138742
CE
3326eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3327$as_echo "$ac_try_echo") >&5
dd184caf 3328 (eval "$ac_compile") 2>conftest.er1
d9898ee8 3329 ac_status=$?
dd184caf 3330 grep -v '^ *+' conftest.er1 >conftest.err
3331 rm -f conftest.er1
3332 cat conftest.err >&5
8d138742 3333 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 3334 (exit $ac_status); } && {
3335 test -z "$ac_c_werror_flag" ||
3336 test ! -s conftest.err
3337 } && test -s conftest.$ac_objext; then
3338 :
3339else
8d138742 3340 $as_echo "$as_me: failed program was:" >&5
dd184caf 3341sed 's/^/| /' conftest.$ac_ext >&5
3342
3343 ac_c_werror_flag=$ac_save_c_werror_flag
3344 CFLAGS="-g"
3345 cat >conftest.$ac_ext <<_ACEOF
3346/* confdefs.h. */
3347_ACEOF
3348cat confdefs.h >>conftest.$ac_ext
3349cat >>conftest.$ac_ext <<_ACEOF
3350/* end confdefs.h. */
3351
3352int
3353main ()
3354{
3355
3356 ;
3357 return 0;
3358}
3359_ACEOF
3360rm -f conftest.$ac_objext
3361if { (ac_try="$ac_compile"
3362case "(($ac_try" in
3363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3364 *) ac_try_echo=$ac_try;;
3365esac
8d138742
CE
3366eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3367$as_echo "$ac_try_echo") >&5
dd184caf 3368 (eval "$ac_compile") 2>conftest.er1
d9898ee8 3369 ac_status=$?
dd184caf 3370 grep -v '^ *+' conftest.er1 >conftest.err
3371 rm -f conftest.er1
3372 cat conftest.err >&5
8d138742 3373 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 3374 (exit $ac_status); } && {
3375 test -z "$ac_c_werror_flag" ||
3376 test ! -s conftest.err
3377 } && test -s conftest.$ac_objext; then
d9898ee8 3378 ac_cv_prog_cc_g=yes
3379else
8d138742 3380 $as_echo "$as_me: failed program was:" >&5
d9898ee8 3381sed 's/^/| /' conftest.$ac_ext >&5
3382
dd184caf 3383
3384fi
3385
3386rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3387fi
3388
3389rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 3390fi
dd184caf 3391
3392rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3393 ac_c_werror_flag=$ac_save_c_werror_flag
d9898ee8 3394fi
8d138742
CE
3395{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3396$as_echo "$ac_cv_prog_cc_g" >&6; }
d9898ee8 3397if test "$ac_test_CFLAGS" = set; then
3398 CFLAGS=$ac_save_CFLAGS
3399elif test $ac_cv_prog_cc_g = yes; then
3400 if test "$GCC" = yes; then
3401 CFLAGS="-g -O2"
3402 else
3403 CFLAGS="-g"
3404 fi
3405else
3406 if test "$GCC" = yes; then
3407 CFLAGS="-O2"
3408 else
3409 CFLAGS=
3410 fi
3411fi
8d138742
CE
3412{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3413$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
dd184caf 3414if test "${ac_cv_prog_cc_c89+set}" = set; then
8d138742 3415 $as_echo_n "(cached) " >&6
d9898ee8 3416else
dd184caf 3417 ac_cv_prog_cc_c89=no
d9898ee8 3418ac_save_CC=$CC
3419cat >conftest.$ac_ext <<_ACEOF
3420/* confdefs.h. */
3421_ACEOF
3422cat confdefs.h >>conftest.$ac_ext
3423cat >>conftest.$ac_ext <<_ACEOF
3424/* end confdefs.h. */
3425#include <stdarg.h>
3426#include <stdio.h>
3427#include <sys/types.h>
3428#include <sys/stat.h>
3429/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3430struct buf { int x; };
3431FILE * (*rcsopen) (struct buf *, struct stat *, int);
3432static char *e (p, i)
3433 char **p;
3434 int i;
3435{
3436 return p[i];
3437}
3438static char *f (char * (*g) (char **, int), char **p, ...)
3439{
3440 char *s;
3441 va_list v;
3442 va_start (v,p);
3443 s = g (p, va_arg (v,int));
3444 va_end (v);
3445 return s;
3446}
3447
3448/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3449 function prototypes and stuff, but not '\xHH' hex character constants.
3450 These don't provoke an error unfortunately, instead are silently treated
dd184caf 3451 as 'x'. The following induces an error, until -std is added to get
d9898ee8 3452 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3453 array size at least. It's necessary to write '\x00'==0 to get something
dd184caf 3454 that's true only with -std. */
d9898ee8 3455int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3456
dd184caf 3457/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3458 inside strings and character constants. */
3459#define FOO(x) 'x'
3460int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3461
d9898ee8 3462int test (int i, double x);
3463struct s1 {int (*f) (int a);};
3464struct s2 {int (*f) (double a);};
3465int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3466int argc;
3467char **argv;
3468int
3469main ()
3470{
3471return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3472 ;
3473 return 0;
3474}
3475_ACEOF
dd184caf 3476for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3477 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
d9898ee8 3478do
3479 CC="$ac_save_CC $ac_arg"
3480 rm -f conftest.$ac_objext
dd184caf 3481if { (ac_try="$ac_compile"
3482case "(($ac_try" in
3483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3484 *) ac_try_echo=$ac_try;;
3485esac
8d138742
CE
3486eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3487$as_echo "$ac_try_echo") >&5
dd184caf 3488 (eval "$ac_compile") 2>conftest.er1
d9898ee8 3489 ac_status=$?
3490 grep -v '^ *+' conftest.er1 >conftest.err
3491 rm -f conftest.er1
3492 cat conftest.err >&5
8d138742 3493 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 3494 (exit $ac_status); } && {
3495 test -z "$ac_c_werror_flag" ||
3496 test ! -s conftest.err
3497 } && test -s conftest.$ac_objext; then
3498 ac_cv_prog_cc_c89=$ac_arg
d9898ee8 3499else
8d138742 3500 $as_echo "$as_me: failed program was:" >&5
d9898ee8 3501sed 's/^/| /' conftest.$ac_ext >&5
3502
dd184caf 3503
d9898ee8 3504fi
dd184caf 3505
3506rm -f core conftest.err conftest.$ac_objext
3507 test "x$ac_cv_prog_cc_c89" != "xno" && break
d9898ee8 3508done
dd184caf 3509rm -f conftest.$ac_ext
d9898ee8 3510CC=$ac_save_CC
3511
3512fi
dd184caf 3513# AC_CACHE_VAL
3514case "x$ac_cv_prog_cc_c89" in
3515 x)
8d138742
CE
3516 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3517$as_echo "none needed" >&6; } ;;
dd184caf 3518 xno)
8d138742
CE
3519 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3520$as_echo "unsupported" >&6; } ;;
d9898ee8 3521 *)
dd184caf 3522 CC="$CC $ac_cv_prog_cc_c89"
8d138742
CE
3523 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3524$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
d9898ee8 3525esac
3526
d9898ee8 3527
d9898ee8 3528ac_ext=c
3529ac_cpp='$CPP $CPPFLAGS'
3530ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3531ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3532ac_compiler_gnu=$ac_cv_c_compiler_gnu
3533DEPDIR="${am__leading_dot}deps"
3534
dd184caf 3535ac_config_commands="$ac_config_commands depfiles"
d9898ee8 3536
3537
3538am_make=${MAKE-make}
3539cat > confinc << 'END'
3540am__doit:
8d138742 3541 @echo this is the am__doit target
d9898ee8 3542.PHONY: am__doit
3543END
3544# If we don't find an include directive, just comment out the code.
8d138742
CE
3545{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3546$as_echo_n "checking for style of include used by $am_make... " >&6; }
d9898ee8 3547am__include="#"
3548am__quote=
3549_am_result=none
3550# First try GNU make style include.
3551echo "include confinc" > confmf
8d138742
CE
3552# Ignore all kinds of additional output from `make'.
3553case `$am_make -s -f confmf 2> /dev/null` in #(
3554*the\ am__doit\ target*)
3555 am__include=include
3556 am__quote=
3557 _am_result=GNU
3558 ;;
3559esac
d9898ee8 3560# Now try BSD make style include.
3561if test "$am__include" = "#"; then
3562 echo '.include "confinc"' > confmf
8d138742
CE
3563 case `$am_make -s -f confmf 2> /dev/null` in #(
3564 *the\ am__doit\ target*)
3565 am__include=.include
3566 am__quote="\""
3567 _am_result=BSD
3568 ;;
3569 esac
d9898ee8 3570fi
3571
3572
8d138742
CE
3573{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
3574$as_echo "$_am_result" >&6; }
d9898ee8 3575rm -f confinc confmf
3576
dd184caf 3577# Check whether --enable-dependency-tracking was given.
d9898ee8 3578if test "${enable_dependency_tracking+set}" = set; then
dd184caf 3579 enableval=$enable_dependency_tracking;
3580fi
d9898ee8 3581
d9898ee8 3582if test "x$enable_dependency_tracking" != xno; then
3583 am_depcomp="$ac_aux_dir/depcomp"
3584 AMDEPBACKSLASH='\'
3585fi
dd184caf 3586 if test "x$enable_dependency_tracking" != xno; then
d9898ee8 3587 AMDEP_TRUE=
3588 AMDEP_FALSE='#'
3589else
3590 AMDEP_TRUE='#'
3591 AMDEP_FALSE=
3592fi
3593
3594
3595
d9898ee8 3596depcc="$CC" am_compiler_list=
3597
8d138742
CE
3598{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3599$as_echo_n "checking dependency style of $depcc... " >&6; }
d9898ee8 3600if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
8d138742 3601 $as_echo_n "(cached) " >&6
d9898ee8 3602else
3603 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3604 # We make a subdir and do the tests there. Otherwise we can end up
3605 # making bogus files that we don't know about and never remove. For
3606 # instance it was reported that on HP-UX the gcc test will end up
3607 # making a dummy file named `D' -- because `-MD' means `put the output
3608 # in D'.
3609 mkdir conftest.dir
3610 # Copy depcomp to subdir because otherwise we won't find it if we're
3611 # using a relative directory.
3612 cp "$am_depcomp" conftest.dir
3613 cd conftest.dir
3614 # We will build objects and dependencies in a subdirectory because
3615 # it helps to detect inapplicable dependency modes. For instance
3616 # both Tru64's cc and ICC support -MD to output dependencies as a
3617 # side effect of compilation, but ICC will put the dependencies in
3618 # the current directory while Tru64 will put them in the object
3619 # directory.
3620 mkdir sub
3621
3622 am_cv_CC_dependencies_compiler_type=none
3623 if test "$am_compiler_list" = ""; then
3624 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3625 fi
8d138742
CE
3626 am__universal=false
3627 case " $depcc " in #(
3628 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3629 esac
3630
d9898ee8 3631 for depmode in $am_compiler_list; do
3632 # Setup a source with many dependencies, because some compilers
3633 # like to wrap large dependency lists on column 80 (with \), and
3634 # we should not choose a depcomp mode which is confused by this.
3635 #
3636 # We need to recreate these files for each test, as the compiler may
3637 # overwrite some of them when testing with obscure command lines.
3638 # This happens at least with the AIX C compiler.
3639 : > sub/conftest.c
3640 for i in 1 2 3 4 5 6; do
3641 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3642 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3643 # Solaris 8's {/usr,}/bin/sh.
3644 touch sub/conftst$i.h
3645 done
3646 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3647
8d138742
CE
3648 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3649 # mode. It turns out that the SunPro C++ compiler does not properly
3650 # handle `-M -o', and we need to detect this. Also, some Intel
3651 # versions had trouble with output in subdirs
3652 am__obj=sub/conftest.${OBJEXT-o}
3653 am__minus_obj="-o $am__obj"
d9898ee8 3654 case $depmode in
8d138742
CE
3655 gcc)
3656 # This depmode causes a compiler race in universal mode.
3657 test "$am__universal" = false || continue
3658 ;;
d9898ee8 3659 nosideeffect)
3660 # after this tag, mechanisms are not by side-effect, so they'll
3661 # only be used when explicitly requested
3662 if test "x$enable_dependency_tracking" = xyes; then
3663 continue
3664 else
3665 break
3666 fi
3667 ;;
8d138742
CE
3668 msvisualcpp | msvcmsys)
3669 # This compiler won't grok `-c -o', but also, the minuso test has
3670 # not run yet. These depmodes are late enough in the game, and
3671 # so weak that their functioning should not be impacted.
3672 am__obj=conftest.${OBJEXT-o}
3673 am__minus_obj=
3674 ;;
d9898ee8 3675 none) break ;;
3676 esac
d9898ee8 3677 if depmode=$depmode \
8d138742 3678 source=sub/conftest.c object=$am__obj \
d9898ee8 3679 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8d138742 3680 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
d9898ee8 3681 >/dev/null 2>conftest.err &&
dd184caf 3682 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
d9898ee8 3683 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8d138742 3684 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
d9898ee8 3685 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3686 # icc doesn't choke on unknown options, it will just issue warnings
3687 # or remarks (even with -Werror). So we grep stderr for any message
3688 # that says an option was ignored or not supported.
3689 # When given -MP, icc 7.0 and 7.1 complain thusly:
3690 # icc: Command line warning: ignoring option '-M'; no argument required
3691 # The diagnosis changed in icc 8.0:
3692 # icc: Command line remark: option '-MP' not supported
3693 if (grep 'ignoring option' conftest.err ||
3694 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3695 am_cv_CC_dependencies_compiler_type=$depmode
3696 break
3697 fi
3698 fi
3699 done
3700
3701 cd ..
3702 rm -rf conftest.dir
3703else
3704 am_cv_CC_dependencies_compiler_type=none
3705fi
3706
3707fi
8d138742
CE
3708{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3709$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
d9898ee8 3710CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3711
dd184caf 3712 if
d9898ee8 3713 test "x$enable_dependency_tracking" != xno \
3714 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3715 am__fastdepCC_TRUE=
3716 am__fastdepCC_FALSE='#'
3717else
3718 am__fastdepCC_TRUE='#'
3719 am__fastdepCC_FALSE=
3720fi
3721
3722
3723# Find a good install program. We prefer a C program (faster),
3724# so one script is as good as another. But avoid the broken or
3725# incompatible versions:
3726# SysV /etc/install, /usr/sbin/install
3727# SunOS /usr/etc/install
3728# IRIX /sbin/install
3729# AIX /bin/install
3730# AmigaOS /C/install, which installs bootblocks on floppy discs
3731# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3732# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3733# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3734# OS/2's system install, which has a completely different semantic
3735# ./install, which can be erroneously created by make from ./install.sh.
8d138742
CE
3736# Reject install programs that cannot install multiple files.
3737{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3738$as_echo_n "checking for a BSD-compatible install... " >&6; }
d9898ee8 3739if test -z "$INSTALL"; then
3740if test "${ac_cv_path_install+set}" = set; then
8d138742 3741 $as_echo_n "(cached) " >&6
d9898ee8 3742else
3743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3744for as_dir in $PATH
3745do
3746 IFS=$as_save_IFS
3747 test -z "$as_dir" && as_dir=.
3748 # Account for people who put trailing slashes in PATH elements.
3749case $as_dir/ in
3750 ./ | .// | /cC/* | \
3751 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3752 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3753 /usr/ucb/* ) ;;
3754 *)
3755 # OSF1 and SCO ODT 3.0 have their own names for install.
3756 # Don't use installbsd from OSF since it installs stuff as root
3757 # by default.
3758 for ac_prog in ginstall scoinst install; do
3759 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 3760 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
d9898ee8 3761 if test $ac_prog = install &&
3762 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3763 # AIX install. It has an incompatible calling convention.
3764 :
3765 elif test $ac_prog = install &&
3766 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3767 # program-specific install script used by HP pwplus--don't use.
3768 :
3769 else
8d138742
CE
3770 rm -rf conftest.one conftest.two conftest.dir
3771 echo one > conftest.one
3772 echo two > conftest.two
3773 mkdir conftest.dir
3774 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3775 test -s conftest.one && test -s conftest.two &&
3776 test -s conftest.dir/conftest.one &&
3777 test -s conftest.dir/conftest.two
3778 then
3779 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3780 break 3
3781 fi
d9898ee8 3782 fi
3783 fi
3784 done
3785 done
3786 ;;
3787esac
8d138742 3788
d9898ee8 3789done
dd184caf 3790IFS=$as_save_IFS
d9898ee8 3791
8d138742 3792rm -rf conftest.one conftest.two conftest.dir
d9898ee8 3793
3794fi
3795 if test "${ac_cv_path_install+set}" = set; then
3796 INSTALL=$ac_cv_path_install
3797 else
dd184caf 3798 # As a last resort, use the slow shell script. Don't cache a
3799 # value for INSTALL within a source directory, because that will
d9898ee8 3800 # break other packages using the cache if that directory is
dd184caf 3801 # removed, or if the value is a relative name.
d9898ee8 3802 INSTALL=$ac_install_sh
3803 fi
3804fi
8d138742
CE
3805{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3806$as_echo "$INSTALL" >&6; }
d9898ee8 3807
3808# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3809# It thinks the first close brace ends the variable substitution.
3810test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3811
3812test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3813
3814test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3815
8d138742
CE
3816{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
3817$as_echo_n "checking whether ln -s works... " >&6; }
d9898ee8 3818LN_S=$as_ln_s
3819if test "$LN_S" = "ln -s"; then
8d138742
CE
3820 { $as_echo "$as_me:$LINENO: result: yes" >&5
3821$as_echo "yes" >&6; }
d9898ee8 3822else
8d138742
CE
3823 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3824$as_echo "no, using $LN_S" >&6; }
d9898ee8 3825fi
3826
8d138742
CE
3827case `pwd` in
3828 *\ * | *\ *)
3829 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3830$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3831esac
3832
3833
3834
3835macro_version='2.2.6'
3836macro_revision='1.3012'
dd184caf 3837
d9898ee8 3838
dd184caf 3839
d9898ee8 3840
dd184caf 3841
d9898ee8 3842
8d138742
CE
3843
3844
3845
3846
3847
3848
3849
3850ltmain="$ac_aux_dir/ltmain.sh"
3851
d9898ee8 3852# Make sure we can run config.sub.
dd184caf 3853$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
8d138742
CE
3854 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3855$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
d9898ee8 3856 { (exit 1); exit 1; }; }
3857
8d138742
CE
3858{ $as_echo "$as_me:$LINENO: checking build system type" >&5
3859$as_echo_n "checking build system type... " >&6; }
d9898ee8 3860if test "${ac_cv_build+set}" = set; then
8d138742 3861 $as_echo_n "(cached) " >&6
d9898ee8 3862else
dd184caf 3863 ac_build_alias=$build_alias
3864test "x$ac_build_alias" = x &&
3865 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3866test "x$ac_build_alias" = x &&
8d138742
CE
3867 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3868$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
d9898ee8 3869 { (exit 1); exit 1; }; }
dd184caf 3870ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
8d138742
CE
3871 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3872$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
d9898ee8 3873 { (exit 1); exit 1; }; }
3874
3875fi
8d138742
CE
3876{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3877$as_echo "$ac_cv_build" >&6; }
dd184caf 3878case $ac_cv_build in
3879*-*-*) ;;
8d138742
CE
3880*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3881$as_echo "$as_me: error: invalid value of canonical build" >&2;}
dd184caf 3882 { (exit 1); exit 1; }; };;
3883esac
d9898ee8 3884build=$ac_cv_build
dd184caf 3885ac_save_IFS=$IFS; IFS='-'
3886set x $ac_cv_build
3887shift
3888build_cpu=$1
3889build_vendor=$2
3890shift; shift
3891# Remember, the first character of IFS is used to create $*,
3892# except with old shells:
3893build_os=$*
3894IFS=$ac_save_IFS
3895case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3896
3897
8d138742
CE
3898{ $as_echo "$as_me:$LINENO: checking host system type" >&5
3899$as_echo_n "checking host system type... " >&6; }
d9898ee8 3900if test "${ac_cv_host+set}" = set; then
8d138742 3901 $as_echo_n "(cached) " >&6
d9898ee8 3902else
dd184caf 3903 if test "x$host_alias" = x; then
3904 ac_cv_host=$ac_cv_build
3905else
3906 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
8d138742
CE
3907 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3908$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
d9898ee8 3909 { (exit 1); exit 1; }; }
dd184caf 3910fi
d9898ee8 3911
3912fi
8d138742
CE
3913{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3914$as_echo "$ac_cv_host" >&6; }
dd184caf 3915case $ac_cv_host in
3916*-*-*) ;;
8d138742
CE
3917*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3918$as_echo "$as_me: error: invalid value of canonical host" >&2;}
dd184caf 3919 { (exit 1); exit 1; }; };;
3920esac
d9898ee8 3921host=$ac_cv_host
dd184caf 3922ac_save_IFS=$IFS; IFS='-'
3923set x $ac_cv_host
3924shift
3925host_cpu=$1
3926host_vendor=$2
3927shift; shift
3928# Remember, the first character of IFS is used to create $*,
3929# except with old shells:
3930host_os=$*
3931IFS=$ac_save_IFS
3932case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3933
3934
8d138742
CE
3935{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3936$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3937if test "${ac_cv_path_SED+set}" = set; then
3938 $as_echo_n "(cached) " >&6
3939else
3940 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3941 for ac_i in 1 2 3 4 5 6 7; do
3942 ac_script="$ac_script$as_nl$ac_script"
3943 done
3944 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3945 $as_unset ac_script || ac_script=
3946 if test -z "$SED"; then
3947 ac_path_SED_found=false
3948 # Loop through the user's path and test for each of PROGNAME-LIST
3949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
d9898ee8 3950for as_dir in $PATH
3951do
3952 IFS=$as_save_IFS
3953 test -z "$as_dir" && as_dir=.
8d138742 3954 for ac_prog in sed gsed; do
d9898ee8 3955 for ac_exec_ext in '' $ac_executable_extensions; do
8d138742
CE
3956 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3957 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3958# Check for GNU ac_path_SED and select it if it is found.
3959 # Check for GNU $ac_path_SED
3960case `"$ac_path_SED" --version 2>&1` in
3961*GNU*)
3962 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3963*)
3964 ac_count=0
3965 $as_echo_n 0123456789 >"conftest.in"
3966 while :
3967 do
3968 cat "conftest.in" "conftest.in" >"conftest.tmp"
3969 mv "conftest.tmp" "conftest.in"
3970 cp "conftest.in" "conftest.nl"
3971 $as_echo '' >> "conftest.nl"
3972 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3973 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3974 ac_count=`expr $ac_count + 1`
3975 if test $ac_count -gt ${ac_path_SED_max-0}; then
3976 # Best one so far, save it but keep looking for a better one
3977 ac_cv_path_SED="$ac_path_SED"
3978 ac_path_SED_max=$ac_count
3979 fi
3980 # 10*(2^10) chars as input seems more than enough
3981 test $ac_count -gt 10 && break
3982 done
3983 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3984esac
3985
3986 $ac_path_SED_found && break 3
d9898ee8 3987 done
3988 done
3989done
3990IFS=$as_save_IFS
8d138742
CE
3991 if test -z "$ac_cv_path_SED"; then
3992 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
3993$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
3994 { (exit 1); exit 1; }; }
d9898ee8 3995 fi
8d138742
CE
3996else
3997 ac_cv_path_SED=$SED
3998fi
d9898ee8 3999
4000fi
8d138742
CE
4001{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
4002$as_echo "$ac_cv_path_SED" >&6; }
4003 SED="$ac_cv_path_SED"
4004 rm -f conftest.sed
4005
4006test -z "$SED" && SED=sed
4007Xsed="$SED -e 1s/^X//"
d9898ee8 4008
d9898ee8 4009
dd184caf 4010
8d138742
CE
4011
4012
4013
4014
4015
4016
4017
4018
4019{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4020$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
dd184caf 4021if test "${ac_cv_path_GREP+set}" = set; then
8d138742 4022 $as_echo_n "(cached) " >&6
dd184caf 4023else
8d138742 4024 if test -z "$GREP"; then
dd184caf 4025 ac_path_GREP_found=false
8d138742
CE
4026 # Loop through the user's path and test for each of PROGNAME-LIST
4027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
dd184caf 4028for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4029do
4030 IFS=$as_save_IFS
4031 test -z "$as_dir" && as_dir=.
4032 for ac_prog in grep ggrep; do
8d138742
CE
4033 for ac_exec_ext in '' $ac_executable_extensions; do
4034 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4035 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4036# Check for GNU ac_path_GREP and select it if it is found.
dd184caf 4037 # Check for GNU $ac_path_GREP
4038case `"$ac_path_GREP" --version 2>&1` in
4039*GNU*)
4040 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4041*)
4042 ac_count=0
8d138742 4043 $as_echo_n 0123456789 >"conftest.in"
dd184caf 4044 while :
4045 do
4046 cat "conftest.in" "conftest.in" >"conftest.tmp"
4047 mv "conftest.tmp" "conftest.in"
4048 cp "conftest.in" "conftest.nl"
8d138742 4049 $as_echo 'GREP' >> "conftest.nl"
dd184caf 4050 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4051 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4052 ac_count=`expr $ac_count + 1`
4053 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4054 # Best one so far, save it but keep looking for a better one
4055 ac_cv_path_GREP="$ac_path_GREP"
4056 ac_path_GREP_max=$ac_count
4057 fi
4058 # 10*(2^10) chars as input seems more than enough
4059 test $ac_count -gt 10 && break
4060 done
4061 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4062esac
4063
8d138742
CE
4064 $ac_path_GREP_found && break 3
4065 done
dd184caf 4066 done
4067done
dd184caf 4068IFS=$as_save_IFS
8d138742
CE
4069 if test -z "$ac_cv_path_GREP"; then
4070 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4071$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
dd184caf 4072 { (exit 1); exit 1; }; }
8d138742 4073 fi
dd184caf 4074else
4075 ac_cv_path_GREP=$GREP
4076fi
4077
dd184caf 4078fi
8d138742
CE
4079{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4080$as_echo "$ac_cv_path_GREP" >&6; }
dd184caf 4081 GREP="$ac_cv_path_GREP"
4082
4083
8d138742
CE
4084{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
4085$as_echo_n "checking for egrep... " >&6; }
dd184caf 4086if test "${ac_cv_path_EGREP+set}" = set; then
8d138742 4087 $as_echo_n "(cached) " >&6
dd184caf 4088else
4089 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4090 then ac_cv_path_EGREP="$GREP -E"
4091 else
8d138742 4092 if test -z "$EGREP"; then
dd184caf 4093 ac_path_EGREP_found=false
8d138742
CE
4094 # Loop through the user's path and test for each of PROGNAME-LIST
4095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
dd184caf 4096for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4097do
4098 IFS=$as_save_IFS
4099 test -z "$as_dir" && as_dir=.
4100 for ac_prog in egrep; do
8d138742
CE
4101 for ac_exec_ext in '' $ac_executable_extensions; do
4102 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4103 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4104# Check for GNU ac_path_EGREP and select it if it is found.
dd184caf 4105 # Check for GNU $ac_path_EGREP
4106case `"$ac_path_EGREP" --version 2>&1` in
4107*GNU*)
4108 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4109*)
4110 ac_count=0
8d138742 4111 $as_echo_n 0123456789 >"conftest.in"
dd184caf 4112 while :
4113 do
4114 cat "conftest.in" "conftest.in" >"conftest.tmp"
4115 mv "conftest.tmp" "conftest.in"
4116 cp "conftest.in" "conftest.nl"
8d138742 4117 $as_echo 'EGREP' >> "conftest.nl"
dd184caf 4118 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4119 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4120 ac_count=`expr $ac_count + 1`
4121 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4122 # Best one so far, save it but keep looking for a better one
4123 ac_cv_path_EGREP="$ac_path_EGREP"
4124 ac_path_EGREP_max=$ac_count
d9898ee8 4125 fi
dd184caf 4126 # 10*(2^10) chars as input seems more than enough
4127 test $ac_count -gt 10 && break
4128 done
4129 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4130esac
4131
8d138742
CE
4132 $ac_path_EGREP_found && break 3
4133 done
dd184caf 4134 done
4135done
dd184caf 4136IFS=$as_save_IFS
8d138742
CE
4137 if test -z "$ac_cv_path_EGREP"; then
4138 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4139$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4140 { (exit 1); exit 1; }; }
4141 fi
4142else
4143 ac_cv_path_EGREP=$EGREP
dd184caf 4144fi
4145
8d138742 4146 fi
dd184caf 4147fi
8d138742
CE
4148{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4149$as_echo "$ac_cv_path_EGREP" >&6; }
4150 EGREP="$ac_cv_path_EGREP"
dd184caf 4151
8d138742
CE
4152
4153{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5
4154$as_echo_n "checking for fgrep... " >&6; }
4155if test "${ac_cv_path_FGREP+set}" = set; then
4156 $as_echo_n "(cached) " >&6
dd184caf 4157else
8d138742
CE
4158 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4159 then ac_cv_path_FGREP="$GREP -F"
4160 else
4161 if test -z "$FGREP"; then
4162 ac_path_FGREP_found=false
4163 # Loop through the user's path and test for each of PROGNAME-LIST
4164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4165for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4166do
4167 IFS=$as_save_IFS
4168 test -z "$as_dir" && as_dir=.
4169 for ac_prog in fgrep; do
4170 for ac_exec_ext in '' $ac_executable_extensions; do
4171 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4172 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4173# Check for GNU ac_path_FGREP and select it if it is found.
4174 # Check for GNU $ac_path_FGREP
4175case `"$ac_path_FGREP" --version 2>&1` in
4176*GNU*)
4177 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4178*)
4179 ac_count=0
4180 $as_echo_n 0123456789 >"conftest.in"
4181 while :
4182 do
4183 cat "conftest.in" "conftest.in" >"conftest.tmp"
4184 mv "conftest.tmp" "conftest.in"
4185 cp "conftest.in" "conftest.nl"
4186 $as_echo 'FGREP' >> "conftest.nl"
4187 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4188 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4189 ac_count=`expr $ac_count + 1`
4190 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4191 # Best one so far, save it but keep looking for a better one
4192 ac_cv_path_FGREP="$ac_path_FGREP"
4193 ac_path_FGREP_max=$ac_count
4194 fi
4195 # 10*(2^10) chars as input seems more than enough
4196 test $ac_count -gt 10 && break
4197 done
4198 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4199esac
dd184caf 4200
8d138742
CE
4201 $ac_path_FGREP_found && break 3
4202 done
4203 done
4204done
4205IFS=$as_save_IFS
4206 if test -z "$ac_cv_path_FGREP"; then
4207 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4208$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4209 { (exit 1); exit 1; }; }
4210 fi
4211else
4212 ac_cv_path_FGREP=$FGREP
4213fi
dd184caf 4214
4215 fi
d9898ee8 4216fi
8d138742
CE
4217{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4218$as_echo "$ac_cv_path_FGREP" >&6; }
4219 FGREP="$ac_cv_path_FGREP"
4220
4221
4222test -z "$GREP" && GREP=grep
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
d9898ee8 4239
4240
4241
dd184caf 4242# Check whether --with-gnu-ld was given.
d9898ee8 4243if test "${with_gnu_ld+set}" = set; then
dd184caf 4244 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
d9898ee8 4245else
4246 with_gnu_ld=no
dd184caf 4247fi
4248
d9898ee8 4249ac_prog=ld
4250if test "$GCC" = yes; then
4251 # Check if gcc -print-prog-name=ld gives a path.
8d138742
CE
4252 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4253$as_echo_n "checking for ld used by $CC... " >&6; }
d9898ee8 4254 case $host in
4255 *-*-mingw*)
4256 # gcc leaves a trailing carriage return which upsets mingw
4257 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4258 *)
4259 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4260 esac
4261 case $ac_prog in
4262 # Accept absolute paths.
4263 [\\/]* | ?:[\\/]*)
4264 re_direlt='/[^/][^/]*/\.\./'
4265 # Canonicalize the pathname of ld
8d138742
CE
4266 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4267 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4268 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
d9898ee8 4269 done
4270 test -z "$LD" && LD="$ac_prog"
4271 ;;
4272 "")
4273 # If it fails, then pretend we aren't using GCC.
4274 ac_prog=ld
4275 ;;
4276 *)
4277 # If it is relative, then search for the first ld in PATH.
4278 with_gnu_ld=unknown
4279 ;;
4280 esac
4281elif test "$with_gnu_ld" = yes; then
8d138742
CE
4282 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4283$as_echo_n "checking for GNU ld... " >&6; }
d9898ee8 4284else
8d138742
CE
4285 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4286$as_echo_n "checking for non-GNU ld... " >&6; }
d9898ee8 4287fi
4288if test "${lt_cv_path_LD+set}" = set; then
8d138742 4289 $as_echo_n "(cached) " >&6
d9898ee8 4290else
4291 if test -z "$LD"; then
4292 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4293 for ac_dir in $PATH; do
4294 IFS="$lt_save_ifs"
4295 test -z "$ac_dir" && ac_dir=.
4296 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4297 lt_cv_path_LD="$ac_dir/$ac_prog"
4298 # Check to see if the program is GNU ld. I'd rather use --version,
4299 # but apparently some variants of GNU ld only accept -v.
4300 # Break only if it was the GNU/non-GNU ld that we prefer.
4301 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4302 *GNU* | *'with BFD'*)
4303 test "$with_gnu_ld" != no && break
4304 ;;
4305 *)
4306 test "$with_gnu_ld" != yes && break
4307 ;;
4308 esac
4309 fi
4310 done
4311 IFS="$lt_save_ifs"
4312else
4313 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4314fi
4315fi
4316
4317LD="$lt_cv_path_LD"
4318if test -n "$LD"; then
8d138742
CE
4319 { $as_echo "$as_me:$LINENO: result: $LD" >&5
4320$as_echo "$LD" >&6; }
d9898ee8 4321else
8d138742
CE
4322 { $as_echo "$as_me:$LINENO: result: no" >&5
4323$as_echo "no" >&6; }
d9898ee8 4324fi
8d138742
CE
4325test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4326$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
d9898ee8 4327 { (exit 1); exit 1; }; }
8d138742
CE
4328{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4329$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
d9898ee8 4330if test "${lt_cv_prog_gnu_ld+set}" = set; then
8d138742 4331 $as_echo_n "(cached) " >&6
d9898ee8 4332else
4333 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4334case `$LD -v 2>&1 </dev/null` in
4335*GNU* | *'with BFD'*)
4336 lt_cv_prog_gnu_ld=yes
4337 ;;
4338*)
4339 lt_cv_prog_gnu_ld=no
4340 ;;
4341esac
4342fi
8d138742
CE
4343{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4344$as_echo "$lt_cv_prog_gnu_ld" >&6; }
d9898ee8 4345with_gnu_ld=$lt_cv_prog_gnu_ld
4346
4347
d9898ee8 4348
8d138742
CE
4349
4350
4351
4352
4353
4354
4355{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4356$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
d9898ee8 4357if test "${lt_cv_path_NM+set}" = set; then
8d138742 4358 $as_echo_n "(cached) " >&6
d9898ee8 4359else
4360 if test -n "$NM"; then
4361 # Let the user override the test.
4362 lt_cv_path_NM="$NM"
4363else
4364 lt_nm_to_check="${ac_tool_prefix}nm"
4365 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4366 lt_nm_to_check="$lt_nm_to_check nm"
4367 fi
4368 for lt_tmp_nm in $lt_nm_to_check; do
4369 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4370 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4371 IFS="$lt_save_ifs"
4372 test -z "$ac_dir" && ac_dir=.
4373 tmp_nm="$ac_dir/$lt_tmp_nm"
4374 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4375 # Check to see if the nm accepts a BSD-compat flag.
4376 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4377 # nm: unknown option "B" ignored
4378 # Tru64's nm complains that /dev/null is an invalid object file
4379 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4380 */dev/null* | *'Invalid file or object type'*)
4381 lt_cv_path_NM="$tmp_nm -B"
4382 break
4383 ;;
4384 *)
4385 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4386 */dev/null*)
4387 lt_cv_path_NM="$tmp_nm -p"
4388 break
4389 ;;
4390 *)
4391 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4392 continue # so that we can try to find one that supports BSD flags
4393 ;;
4394 esac
4395 ;;
4396 esac
4397 fi
4398 done
4399 IFS="$lt_save_ifs"
4400 done
8d138742 4401 : ${lt_cv_path_NM=no}
d9898ee8 4402fi
4403fi
8d138742
CE
4404{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4405$as_echo "$lt_cv_path_NM" >&6; }
4406if test "$lt_cv_path_NM" != "no"; then
4407 NM="$lt_cv_path_NM"
4408else
4409 # Didn't find any BSD compatible name lister, look for dumpbin.
4410 if test -n "$ac_tool_prefix"; then
4411 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4412 do
4413 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4414set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4415{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4416$as_echo_n "checking for $ac_word... " >&6; }
4417if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4418 $as_echo_n "(cached) " >&6
4419else
4420 if test -n "$DUMPBIN"; then
4421 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4422else
4423as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4424for as_dir in $PATH
4425do
4426 IFS=$as_save_IFS
4427 test -z "$as_dir" && as_dir=.
4428 for ac_exec_ext in '' $ac_executable_extensions; do
4429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4430 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4431 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4432 break 2
4433 fi
4434done
4435done
4436IFS=$as_save_IFS
d9898ee8 4437
8d138742
CE
4438fi
4439fi
4440DUMPBIN=$ac_cv_prog_DUMPBIN
4441if test -n "$DUMPBIN"; then
4442 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4443$as_echo "$DUMPBIN" >&6; }
d9898ee8 4444else
8d138742
CE
4445 { $as_echo "$as_me:$LINENO: result: no" >&5
4446$as_echo "no" >&6; }
4447fi
d9898ee8 4448
d9898ee8 4449
8d138742
CE
4450 test -n "$DUMPBIN" && break
4451 done
4452fi
4453if test -z "$DUMPBIN"; then
4454 ac_ct_DUMPBIN=$DUMPBIN
4455 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4456do
4457 # Extract the first word of "$ac_prog", so it can be a program name with args.
4458set dummy $ac_prog; ac_word=$2
4459{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4460$as_echo_n "checking for $ac_word... " >&6; }
4461if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4462 $as_echo_n "(cached) " >&6
4463else
4464 if test -n "$ac_ct_DUMPBIN"; then
4465 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4466else
4467as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4468for as_dir in $PATH
4469do
4470 IFS=$as_save_IFS
4471 test -z "$as_dir" && as_dir=.
4472 for ac_exec_ext in '' $ac_executable_extensions; do
4473 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4474 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4475 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4476 break 2
4477 fi
4478done
4479done
4480IFS=$as_save_IFS
d9898ee8 4481
8d138742
CE
4482fi
4483fi
4484ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4485if test -n "$ac_ct_DUMPBIN"; then
4486 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4487$as_echo "$ac_ct_DUMPBIN" >&6; }
4488else
4489 { $as_echo "$as_me:$LINENO: result: no" >&5
4490$as_echo "no" >&6; }
4491fi
d9898ee8 4492
d9898ee8 4493
8d138742
CE
4494 test -n "$ac_ct_DUMPBIN" && break
4495done
4496
4497 if test "x$ac_ct_DUMPBIN" = x; then
4498 DUMPBIN=":"
ac40fd9e 4499 else
8d138742
CE
4500 case $cross_compiling:$ac_tool_warned in
4501yes:)
4502{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4503$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4504ac_tool_warned=yes ;;
4505esac
4506 DUMPBIN=$ac_ct_DUMPBIN
ac40fd9e 4507 fi
8d138742 4508fi
d9898ee8 4509
d9898ee8 4510
8d138742
CE
4511 if test "$DUMPBIN" != ":"; then
4512 NM="$DUMPBIN"
d9898ee8 4513 fi
8d138742
CE
4514fi
4515test -z "$NM" && NM=nm
d9898ee8 4516
d9898ee8 4517
d9898ee8 4518
d9898ee8 4519
d9898ee8 4520
d9898ee8 4521
8d138742
CE
4522{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4523$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4524if test "${lt_cv_nm_interface+set}" = set; then
4525 $as_echo_n "(cached) " >&6
4526else
4527 lt_cv_nm_interface="BSD nm"
4528 echo "int some_variable = 0;" > conftest.$ac_ext
4529 (eval echo "\"\$as_me:4529: $ac_compile\"" >&5)
4530 (eval "$ac_compile" 2>conftest.err)
4531 cat conftest.err >&5
4532 (eval echo "\"\$as_me:4532: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4533 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4534 cat conftest.err >&5
4535 (eval echo "\"\$as_me:4535: output\"" >&5)
4536 cat conftest.out >&5
4537 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4538 lt_cv_nm_interface="MS dumpbin"
d9898ee8 4539 fi
8d138742
CE
4540 rm -f conftest*
4541fi
4542{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4543$as_echo "$lt_cv_nm_interface" >&6; }
d9898ee8 4544
8d138742
CE
4545# find the maximum length of command line arguments
4546{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4547$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4548if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4549 $as_echo_n "(cached) " >&6
4550else
4551 i=0
4552 teststring="ABCD"
d9898ee8 4553
8d138742
CE
4554 case $build_os in
4555 msdosdjgpp*)
4556 # On DJGPP, this test can blow up pretty badly due to problems in libc
4557 # (any single argument exceeding 2000 bytes causes a buffer overrun
4558 # during glob expansion). Even if it were fixed, the result of this
4559 # check would be larger than it should be.
4560 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4561 ;;
d9898ee8 4562
8d138742
CE
4563 gnu*)
4564 # Under GNU Hurd, this test is not required because there is
4565 # no limit to the length of command line arguments.
4566 # Libtool will interpret -1 as no limit whatsoever
4567 lt_cv_sys_max_cmd_len=-1;
4568 ;;
d9898ee8 4569
8d138742
CE
4570 cygwin* | mingw* | cegcc*)
4571 # On Win9x/ME, this test blows up -- it succeeds, but takes
4572 # about 5 minutes as the teststring grows exponentially.
4573 # Worse, since 9x/ME are not pre-emptively multitasking,
4574 # you end up with a "frozen" computer, even though with patience
4575 # the test eventually succeeds (with a max line length of 256k).
4576 # Instead, let's just punt: use the minimum linelength reported by
4577 # all of the supported platforms: 8192 (on NT/2K/XP).
4578 lt_cv_sys_max_cmd_len=8192;
4579 ;;
d9898ee8 4580
8d138742
CE
4581 amigaos*)
4582 # On AmigaOS with pdksh, this test takes hours, literally.
4583 # So we just punt and use a minimum line length of 8192.
4584 lt_cv_sys_max_cmd_len=8192;
4585 ;;
ac40fd9e 4586
8d138742
CE
4587 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4588 # This has been around since 386BSD, at least. Likely further.
4589 if test -x /sbin/sysctl; then
4590 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4591 elif test -x /usr/sbin/sysctl; then
4592 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4593 else
4594 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4595 fi
4596 # And add a safety zone
4597 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4598 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4599 ;;
d9898ee8 4600
8d138742
CE
4601 interix*)
4602 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4603 lt_cv_sys_max_cmd_len=196608
d9898ee8 4604 ;;
8d138742
CE
4605
4606 osf*)
4607 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4608 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4609 # nice to cause kernel panics so lets avoid the loop below.
4610 # First set a reasonable default.
4611 lt_cv_sys_max_cmd_len=16384
4612 #
4613 if test -x /sbin/sysconfig; then
4614 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4615 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4616 esac
4617 fi
d9898ee8 4618 ;;
8d138742
CE
4619 sco3.2v5*)
4620 lt_cv_sys_max_cmd_len=102400
d9898ee8 4621 ;;
8d138742
CE
4622 sysv5* | sco5v6* | sysv4.2uw2*)
4623 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4624 if test -n "$kargmax"; then
4625 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4626 else
4627 lt_cv_sys_max_cmd_len=32768
4628 fi
d9898ee8 4629 ;;
8d138742
CE
4630 *)
4631 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4632 if test -n "$lt_cv_sys_max_cmd_len"; then
4633 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4634 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4635 else
4636 # Make teststring a little bigger before we do anything with it.
4637 # a 1K string should be a reasonable start.
4638 for i in 1 2 3 4 5 6 7 8 ; do
4639 teststring=$teststring$teststring
4640 done
4641 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4642 # If test is not a shell built-in, we'll probably end up computing a
4643 # maximum length that is only half of the actual maximum length, but
4644 # we can't tell.
4645 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4646 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4647 test $i != 17 # 1/2 MB should be enough
4648 do
4649 i=`expr $i + 1`
4650 teststring=$teststring$teststring
4651 done
4652 # Only check the string length outside the loop.
4653 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4654 teststring=
4655 # Add a significant safety factor because C++ compilers can tack on
4656 # massive amounts of additional arguments before passing them to the
4657 # linker. It appears as though 1/2 is a usable value.
4658 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4659 fi
d9898ee8 4660 ;;
4661 esac
d9898ee8 4662
8d138742 4663fi
d9898ee8 4664
8d138742
CE
4665if test -n $lt_cv_sys_max_cmd_len ; then
4666 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4667$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4668else
4669 { $as_echo "$as_me:$LINENO: result: none" >&5
4670$as_echo "none" >&6; }
d9898ee8 4671fi
8d138742 4672max_cmd_len=$lt_cv_sys_max_cmd_len
d9898ee8 4673
4674
4675
4676
d9898ee8 4677
d9898ee8 4678
8d138742
CE
4679: ${CP="cp -f"}
4680: ${MV="mv -f"}
4681: ${RM="rm -f"}
d9898ee8 4682
8d138742
CE
4683{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4684$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4685# Try some XSI features
4686xsi_shell=no
4687( _lt_dummy="a/b/c"
4688 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4689 = c,a/b,, \
4690 && eval 'test $(( 1 + 1 )) -eq 2 \
4691 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4692 && xsi_shell=yes
4693{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
4694$as_echo "$xsi_shell" >&6; }
d9898ee8 4695
8d138742
CE
4696
4697{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4698$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4699lt_shell_append=no
4700( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4701 >/dev/null 2>&1 \
4702 && lt_shell_append=yes
4703{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4704$as_echo "$lt_shell_append" >&6; }
4705
4706
4707if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4708 lt_unset=unset
4709else
4710 lt_unset=false
dd184caf 4711fi
d9898ee8 4712
d9898ee8 4713
8d138742
CE
4714
4715
4716
4717# test EBCDIC or ASCII
4718case `echo X|tr X '\101'` in
4719 A) # ASCII based system
4720 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4721 lt_SP2NL='tr \040 \012'
4722 lt_NL2SP='tr \015\012 \040\040'
d9898ee8 4723 ;;
8d138742
CE
4724 *) # EBCDIC based system
4725 lt_SP2NL='tr \100 \n'
4726 lt_NL2SP='tr \r\n \100\100'
d9898ee8 4727 ;;
8d138742 4728esac
d9898ee8 4729
d9898ee8 4730
d9898ee8 4731
d9898ee8 4732
d9898ee8 4733
8d138742
CE
4734
4735
4736
4737
4738{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4739$as_echo_n "checking for $LD option to reload object files... " >&6; }
4740if test "${lt_cv_ld_reload_flag+set}" = set; then
4741 $as_echo_n "(cached) " >&6
4742else
4743 lt_cv_ld_reload_flag='-r'
4744fi
4745{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4746$as_echo "$lt_cv_ld_reload_flag" >&6; }
4747reload_flag=$lt_cv_ld_reload_flag
4748case $reload_flag in
4749"" | " "*) ;;
4750*) reload_flag=" $reload_flag" ;;
dd184caf 4751esac
8d138742
CE
4752reload_cmds='$LD$reload_flag -o $output$reload_objs'
4753case $host_os in
4754 darwin*)
4755 if test "$GCC" = yes; then
4756 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4757 else
4758 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4759 fi
4760 ;;
4761esac
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771if test -n "$ac_tool_prefix"; then
4772 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4773set dummy ${ac_tool_prefix}objdump; ac_word=$2
4774{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4775$as_echo_n "checking for $ac_word... " >&6; }
4776if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4777 $as_echo_n "(cached) " >&6
d9898ee8 4778else
8d138742
CE
4779 if test -n "$OBJDUMP"; then
4780 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4781else
4782as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4783for as_dir in $PATH
4784do
4785 IFS=$as_save_IFS
4786 test -z "$as_dir" && as_dir=.
4787 for ac_exec_ext in '' $ac_executable_extensions; do
4788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4789 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4790 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4791 break 2
4792 fi
4793done
4794done
4795IFS=$as_save_IFS
d9898ee8 4796
8d138742
CE
4797fi
4798fi
4799OBJDUMP=$ac_cv_prog_OBJDUMP
4800if test -n "$OBJDUMP"; then
4801 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4802$as_echo "$OBJDUMP" >&6; }
4803else
4804 { $as_echo "$as_me:$LINENO: result: no" >&5
4805$as_echo "no" >&6; }
d9898ee8 4806fi
dd184caf 4807
d9898ee8 4808
4809fi
8d138742
CE
4810if test -z "$ac_cv_prog_OBJDUMP"; then
4811 ac_ct_OBJDUMP=$OBJDUMP
4812 # Extract the first word of "objdump", so it can be a program name with args.
4813set dummy objdump; ac_word=$2
4814{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4815$as_echo_n "checking for $ac_word... " >&6; }
4816if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4817 $as_echo_n "(cached) " >&6
4818else
4819 if test -n "$ac_ct_OBJDUMP"; then
4820 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4821else
4822as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4823for as_dir in $PATH
4824do
4825 IFS=$as_save_IFS
4826 test -z "$as_dir" && as_dir=.
4827 for ac_exec_ext in '' $ac_executable_extensions; do
4828 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4829 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4830 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4831 break 2
d9898ee8 4832 fi
8d138742
CE
4833done
4834done
4835IFS=$as_save_IFS
d9898ee8 4836
8d138742
CE
4837fi
4838fi
4839ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4840if test -n "$ac_ct_OBJDUMP"; then
4841 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4842$as_echo "$ac_ct_OBJDUMP" >&6; }
4843else
4844 { $as_echo "$as_me:$LINENO: result: no" >&5
4845$as_echo "no" >&6; }
4846fi
d9898ee8 4847
8d138742
CE
4848 if test "x$ac_ct_OBJDUMP" = x; then
4849 OBJDUMP="false"
4850 else
4851 case $cross_compiling:$ac_tool_warned in
4852yes:)
4853{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4854$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4855ac_tool_warned=yes ;;
d9898ee8 4856esac
8d138742
CE
4857 OBJDUMP=$ac_ct_OBJDUMP
4858 fi
4859else
4860 OBJDUMP="$ac_cv_prog_OBJDUMP"
4861fi
d9898ee8 4862
8d138742 4863test -z "$OBJDUMP" && OBJDUMP=objdump
d9898ee8 4864
4865
8d138742
CE
4866
4867
4868
4869
4870
4871
4872
4873{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4874$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4875if test "${lt_cv_deplibs_check_method+set}" = set; then
4876 $as_echo_n "(cached) " >&6
d9898ee8 4877else
8d138742
CE
4878 lt_cv_file_magic_cmd='$MAGIC_CMD'
4879lt_cv_file_magic_test_file=
4880lt_cv_deplibs_check_method='unknown'
4881# Need to set the preceding variable on all platforms that support
4882# interlibrary dependencies.
4883# 'none' -- dependencies not supported.
4884# `unknown' -- same as none, but documents that we really don't know.
4885# 'pass_all' -- all dependencies passed with no checks.
4886# 'test_compile' -- check by making test program.
4887# 'file_magic [[regex]]' -- check by looking for files in library path
4888# which responds to the $file_magic_cmd with a given extended regex.
4889# If you have `file' or equivalent on your system and you're not sure
4890# whether `pass_all' will *always* work, you probably want this one.
d9898ee8 4891
8d138742
CE
4892case $host_os in
4893aix[4-9]*)
4894 lt_cv_deplibs_check_method=pass_all
d9898ee8 4895 ;;
4896
8d138742
CE
4897beos*)
4898 lt_cv_deplibs_check_method=pass_all
4899 ;;
d9898ee8 4900
8d138742
CE
4901bsdi[45]*)
4902 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4903 lt_cv_file_magic_cmd='/usr/bin/file -L'
4904 lt_cv_file_magic_test_file=/shlib/libc.so
4905 ;;
d9898ee8 4906
8d138742
CE
4907cygwin*)
4908 # func_win32_libid is a shell function defined in ltmain.sh
4909 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4910 lt_cv_file_magic_cmd='func_win32_libid'
d9898ee8 4911 ;;
4912
8d138742
CE
4913mingw* | pw32*)
4914 # Base MSYS/MinGW do not provide the 'file' command needed by
4915 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4916 # unless we find 'file', for example because we are cross-compiling.
4917 if ( file / ) >/dev/null 2>&1; then
4918 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4919 lt_cv_file_magic_cmd='func_win32_libid'
d9898ee8 4920 else
8d138742
CE
4921 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4922 lt_cv_file_magic_cmd='$OBJDUMP -f'
d9898ee8 4923 fi
d9898ee8 4924 ;;
4925
8d138742
CE
4926cegcc)
4927 # use the weaker test based on 'objdump'. See mingw*.
4928 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4929 lt_cv_file_magic_cmd='$OBJDUMP -f'
d9898ee8 4930 ;;
4931
8d138742
CE
4932darwin* | rhapsody*)
4933 lt_cv_deplibs_check_method=pass_all
d9898ee8 4934 ;;
4935
8d138742
CE
4936freebsd* | dragonfly*)
4937 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4938 case $host_cpu in
4939 i*86 )
4940 # Not sure whether the presence of OpenBSD here was a mistake.
4941 # Let's accept both of them until this is cleared up.
4942 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4943 lt_cv_file_magic_cmd=/usr/bin/file
4944 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4945 ;;
4946 esac
d9898ee8 4947 else
8d138742 4948 lt_cv_deplibs_check_method=pass_all
d9898ee8 4949 fi
4950 ;;
4951
8d138742
CE
4952gnu*)
4953 lt_cv_deplibs_check_method=pass_all
d9898ee8 4954 ;;
4955
8d138742
CE
4956hpux10.20* | hpux11*)
4957 lt_cv_file_magic_cmd=/usr/bin/file
4958 case $host_cpu in
4959 ia64*)
4960 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4961 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4962 ;;
4963 hppa*64*)
4964 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]'
4965 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4966 ;;
4967 *)
4968 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4969 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4970 ;;
4971 esac
d9898ee8 4972 ;;
4973
8d138742
CE
4974interix[3-9]*)
4975 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4976 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
ac40fd9e 4977 ;;
4978
8d138742
CE
4979irix5* | irix6* | nonstopux*)
4980 case $LD in
4981 *-32|*"-32 ") libmagic=32-bit;;
4982 *-n32|*"-n32 ") libmagic=N32;;
4983 *-64|*"-64 ") libmagic=64-bit;;
4984 *) libmagic=never-match;;
4985 esac
4986 lt_cv_deplibs_check_method=pass_all
d9898ee8 4987 ;;
4988
8d138742
CE
4989# This must be Linux ELF.
4990linux* | k*bsd*-gnu)
4991 lt_cv_deplibs_check_method=pass_all
4992 ;;
4993
4994netbsd*)
4995 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4996 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4997 else
4998 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
d9898ee8 4999 fi
d9898ee8 5000 ;;
5001
8d138742
CE
5002newos6*)
5003 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5004 lt_cv_file_magic_cmd=/usr/bin/file
5005 lt_cv_file_magic_test_file=/usr/lib/libnls.so
d9898ee8 5006 ;;
5007
8d138742
CE
5008*nto* | *qnx*)
5009 lt_cv_deplibs_check_method=pass_all
d9898ee8 5010 ;;
5011
8d138742
CE
5012openbsd*)
5013 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5014 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5015 else
5016 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
d9898ee8 5017 fi
d9898ee8 5018 ;;
5019
8d138742
CE
5020osf3* | osf4* | osf5*)
5021 lt_cv_deplibs_check_method=pass_all
d9898ee8 5022 ;;
5023
8d138742
CE
5024rdos*)
5025 lt_cv_deplibs_check_method=pass_all
5026 ;;
5027
5028solaris*)
5029 lt_cv_deplibs_check_method=pass_all
5030 ;;
5031
5032sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5033 lt_cv_deplibs_check_method=pass_all
5034 ;;
5035
5036sysv4 | sysv4.3*)
5037 case $host_vendor in
5038 motorola)
5039 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]'
5040 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5041 ;;
5042 ncr)
5043 lt_cv_deplibs_check_method=pass_all
5044 ;;
5045 sequent)
5046 lt_cv_file_magic_cmd='/bin/file'
5047 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5048 ;;
5049 sni)
5050 lt_cv_file_magic_cmd='/bin/file'
5051 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5052 lt_cv_file_magic_test_file=/lib/libc.so
5053 ;;
5054 siemens)
5055 lt_cv_deplibs_check_method=pass_all
5056 ;;
5057 pc)
5058 lt_cv_deplibs_check_method=pass_all
5059 ;;
5060 esac
5061 ;;
5062
5063tpf*)
5064 lt_cv_deplibs_check_method=pass_all
d9898ee8 5065 ;;
5066esac
d9898ee8 5067
d9898ee8 5068fi
8d138742
CE
5069{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5070$as_echo "$lt_cv_deplibs_check_method" >&6; }
5071file_magic_cmd=$lt_cv_file_magic_cmd
5072deplibs_check_method=$lt_cv_deplibs_check_method
5073test -z "$deplibs_check_method" && deplibs_check_method=unknown
d9898ee8 5074
d9898ee8 5075
8d138742
CE
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086if test -n "$ac_tool_prefix"; then
5087 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5088set dummy ${ac_tool_prefix}ar; ac_word=$2
5089{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5090$as_echo_n "checking for $ac_word... " >&6; }
5091if test "${ac_cv_prog_AR+set}" = set; then
5092 $as_echo_n "(cached) " >&6
5093else
5094 if test -n "$AR"; then
5095 ac_cv_prog_AR="$AR" # Let the user override the test.
5096else
5097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5098for as_dir in $PATH
5099do
5100 IFS=$as_save_IFS
5101 test -z "$as_dir" && as_dir=.
5102 for ac_exec_ext in '' $ac_executable_extensions; do
5103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5104 ac_cv_prog_AR="${ac_tool_prefix}ar"
5105 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5106 break 2
d9898ee8 5107 fi
8d138742
CE
5108done
5109done
5110IFS=$as_save_IFS
5111
5112fi
5113fi
5114AR=$ac_cv_prog_AR
5115if test -n "$AR"; then
5116 { $as_echo "$as_me:$LINENO: result: $AR" >&5
5117$as_echo "$AR" >&6; }
d9898ee8 5118else
8d138742
CE
5119 { $as_echo "$as_me:$LINENO: result: no" >&5
5120$as_echo "no" >&6; }
d9898ee8 5121fi
d9898ee8 5122
8d138742 5123
d9898ee8 5124fi
8d138742
CE
5125if test -z "$ac_cv_prog_AR"; then
5126 ac_ct_AR=$AR
5127 # Extract the first word of "ar", so it can be a program name with args.
5128set dummy ar; ac_word=$2
5129{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5130$as_echo_n "checking for $ac_word... " >&6; }
5131if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5132 $as_echo_n "(cached) " >&6
5133else
5134 if test -n "$ac_ct_AR"; then
5135 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5136else
5137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5138for as_dir in $PATH
5139do
5140 IFS=$as_save_IFS
5141 test -z "$as_dir" && as_dir=.
5142 for ac_exec_ext in '' $ac_executable_extensions; do
5143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5144 ac_cv_prog_ac_ct_AR="ar"
5145 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5146 break 2
5147 fi
5148done
5149done
5150IFS=$as_save_IFS
d9898ee8 5151
8d138742
CE
5152fi
5153fi
5154ac_ct_AR=$ac_cv_prog_ac_ct_AR
5155if test -n "$ac_ct_AR"; then
5156 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5157$as_echo "$ac_ct_AR" >&6; }
5158else
5159 { $as_echo "$as_me:$LINENO: result: no" >&5
5160$as_echo "no" >&6; }
5161fi
d9898ee8 5162
8d138742
CE
5163 if test "x$ac_ct_AR" = x; then
5164 AR="false"
5165 else
5166 case $cross_compiling:$ac_tool_warned in
5167yes:)
5168{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5169$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5170ac_tool_warned=yes ;;
5171esac
5172 AR=$ac_ct_AR
d9898ee8 5173 fi
8d138742
CE
5174else
5175 AR="$ac_cv_prog_AR"
5176fi
d9898ee8 5177
8d138742
CE
5178test -z "$AR" && AR=ar
5179test -z "$AR_FLAGS" && AR_FLAGS=cru
d9898ee8 5180
d9898ee8 5181
d9898ee8 5182
d9898ee8 5183
d9898ee8 5184
d9898ee8 5185
d9898ee8 5186
d9898ee8 5187
d9898ee8 5188
d9898ee8 5189
d9898ee8 5190
8d138742
CE
5191if test -n "$ac_tool_prefix"; then
5192 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5193set dummy ${ac_tool_prefix}strip; ac_word=$2
5194{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5195$as_echo_n "checking for $ac_word... " >&6; }
5196if test "${ac_cv_prog_STRIP+set}" = set; then
5197 $as_echo_n "(cached) " >&6
5198else
5199 if test -n "$STRIP"; then
5200 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5201else
5202as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5203for as_dir in $PATH
5204do
5205 IFS=$as_save_IFS
5206 test -z "$as_dir" && as_dir=.
5207 for ac_exec_ext in '' $ac_executable_extensions; do
5208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5209 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5210 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5211 break 2
5212 fi
5213done
5214done
5215IFS=$as_save_IFS
d9898ee8 5216
8d138742
CE
5217fi
5218fi
5219STRIP=$ac_cv_prog_STRIP
5220if test -n "$STRIP"; then
5221 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
5222$as_echo "$STRIP" >&6; }
5223else
5224 { $as_echo "$as_me:$LINENO: result: no" >&5
5225$as_echo "no" >&6; }
5226fi
d9898ee8 5227
d9898ee8 5228
8d138742
CE
5229fi
5230if test -z "$ac_cv_prog_STRIP"; then
5231 ac_ct_STRIP=$STRIP
5232 # Extract the first word of "strip", so it can be a program name with args.
5233set dummy strip; ac_word=$2
5234{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5235$as_echo_n "checking for $ac_word... " >&6; }
5236if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5237 $as_echo_n "(cached) " >&6
5238else
5239 if test -n "$ac_ct_STRIP"; then
5240 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5241else
5242as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5243for as_dir in $PATH
5244do
5245 IFS=$as_save_IFS
5246 test -z "$as_dir" && as_dir=.
5247 for ac_exec_ext in '' $ac_executable_extensions; do
5248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5249 ac_cv_prog_ac_ct_STRIP="strip"
5250 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5251 break 2
5252 fi
5253done
5254done
5255IFS=$as_save_IFS
d9898ee8 5256
8d138742
CE
5257fi
5258fi
5259ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5260if test -n "$ac_ct_STRIP"; then
5261 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5262$as_echo "$ac_ct_STRIP" >&6; }
5263else
5264 { $as_echo "$as_me:$LINENO: result: no" >&5
5265$as_echo "no" >&6; }
5266fi
d9898ee8 5267
8d138742
CE
5268 if test "x$ac_ct_STRIP" = x; then
5269 STRIP=":"
5270 else
5271 case $cross_compiling:$ac_tool_warned in
5272yes:)
5273{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5274$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5275ac_tool_warned=yes ;;
5276esac
5277 STRIP=$ac_ct_STRIP
5278 fi
5279else
5280 STRIP="$ac_cv_prog_STRIP"
5281fi
d9898ee8 5282
8d138742 5283test -z "$STRIP" && STRIP=:
d9898ee8 5284
d9898ee8 5285
d9898ee8 5286
d9898ee8 5287
d9898ee8 5288
d9898ee8 5289
8d138742
CE
5290if test -n "$ac_tool_prefix"; then
5291 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5292set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5293{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5294$as_echo_n "checking for $ac_word... " >&6; }
5295if test "${ac_cv_prog_RANLIB+set}" = set; then
5296 $as_echo_n "(cached) " >&6
5297else
5298 if test -n "$RANLIB"; then
5299 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5300else
5301as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5302for as_dir in $PATH
5303do
5304 IFS=$as_save_IFS
5305 test -z "$as_dir" && as_dir=.
5306 for ac_exec_ext in '' $ac_executable_extensions; do
5307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5308 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5309 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5310 break 2
5311 fi
5312done
5313done
5314IFS=$as_save_IFS
d9898ee8 5315
8d138742
CE
5316fi
5317fi
5318RANLIB=$ac_cv_prog_RANLIB
5319if test -n "$RANLIB"; then
5320 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5321$as_echo "$RANLIB" >&6; }
5322else
5323 { $as_echo "$as_me:$LINENO: result: no" >&5
5324$as_echo "no" >&6; }
5325fi
d9898ee8 5326
d9898ee8 5327
8d138742
CE
5328fi
5329if test -z "$ac_cv_prog_RANLIB"; then
5330 ac_ct_RANLIB=$RANLIB
5331 # Extract the first word of "ranlib", so it can be a program name with args.
5332set dummy ranlib; ac_word=$2
5333{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5334$as_echo_n "checking for $ac_word... " >&6; }
5335if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5336 $as_echo_n "(cached) " >&6
5337else
5338 if test -n "$ac_ct_RANLIB"; then
5339 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5340else
5341as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5342for as_dir in $PATH
5343do
5344 IFS=$as_save_IFS
5345 test -z "$as_dir" && as_dir=.
5346 for ac_exec_ext in '' $ac_executable_extensions; do
5347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5348 ac_cv_prog_ac_ct_RANLIB="ranlib"
5349 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5350 break 2
5351 fi
5352done
5353done
5354IFS=$as_save_IFS
d9898ee8 5355
8d138742
CE
5356fi
5357fi
5358ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5359if test -n "$ac_ct_RANLIB"; then
5360 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5361$as_echo "$ac_ct_RANLIB" >&6; }
5362else
5363 { $as_echo "$as_me:$LINENO: result: no" >&5
5364$as_echo "no" >&6; }
5365fi
d9898ee8 5366
8d138742
CE
5367 if test "x$ac_ct_RANLIB" = x; then
5368 RANLIB=":"
5369 else
5370 case $cross_compiling:$ac_tool_warned in
5371yes:)
5372{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5373$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5374ac_tool_warned=yes ;;
5375esac
5376 RANLIB=$ac_ct_RANLIB
5377 fi
5378else
5379 RANLIB="$ac_cv_prog_RANLIB"
5380fi
d9898ee8 5381
8d138742 5382test -z "$RANLIB" && RANLIB=:
d9898ee8 5383
d9898ee8 5384
d9898ee8 5385
d9898ee8 5386
d9898ee8 5387
d9898ee8 5388
8d138742
CE
5389# Determine commands to create old-style static archives.
5390old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5391old_postinstall_cmds='chmod 644 $oldlib'
5392old_postuninstall_cmds=
d9898ee8 5393
8d138742
CE
5394if test -n "$RANLIB"; then
5395 case $host_os in
5396 openbsd*)
5397 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5398 ;;
5399 *)
5400 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5401 ;;
5402 esac
5403 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5404fi
d9898ee8 5405
d9898ee8 5406
d9898ee8 5407
d9898ee8 5408
d9898ee8 5409
d9898ee8 5410
d9898ee8 5411
d9898ee8 5412
d9898ee8 5413
d9898ee8 5414
d9898ee8 5415
d9898ee8 5416
d9898ee8 5417
d9898ee8 5418
d9898ee8 5419
d9898ee8 5420
d9898ee8 5421
d9898ee8 5422
d9898ee8 5423
d9898ee8 5424
d9898ee8 5425
d9898ee8 5426
d9898ee8 5427
d9898ee8 5428
d9898ee8 5429
d9898ee8 5430
d9898ee8 5431
d9898ee8 5432
d9898ee8 5433
d9898ee8 5434
d9898ee8 5435
d9898ee8 5436
d9898ee8 5437
d9898ee8 5438
8d138742
CE
5439# If no C compiler was specified, use CC.
5440LTCC=${LTCC-"$CC"}
d9898ee8 5441
8d138742
CE
5442# If no C compiler flags were specified, use CFLAGS.
5443LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
d9898ee8 5444
8d138742
CE
5445# Allow CC to be a program name with arguments.
5446compiler=$CC
d9898ee8 5447
d9898ee8 5448
8d138742
CE
5449# Check for command to grab the raw symbol name followed by C symbol from nm.
5450{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5451$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5452if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5453 $as_echo_n "(cached) " >&6
5454else
d9898ee8 5455
8d138742
CE
5456# These are sane defaults that work on at least a few old systems.
5457# [They come from Ultrix. What could be older than Ultrix?!! ;)]
d9898ee8 5458
8d138742
CE
5459# Character class describing NM global symbol codes.
5460symcode='[BCDEGRST]'
d9898ee8 5461
8d138742
CE
5462# Regexp to match symbols that can be accessed directly from C.
5463sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
d9898ee8 5464
8d138742
CE
5465# Define system-specific variables.
5466case $host_os in
5467aix*)
5468 symcode='[BCDT]'
5469 ;;
5470cygwin* | mingw* | pw32* | cegcc*)
5471 symcode='[ABCDGISTW]'
5472 ;;
5473hpux*)
5474 if test "$host_cpu" = ia64; then
5475 symcode='[ABCDEGRST]'
5476 fi
5477 ;;
5478irix* | nonstopux*)
5479 symcode='[BCDEGRST]'
5480 ;;
5481osf*)
5482 symcode='[BCDEGQRST]'
5483 ;;
5484solaris*)
5485 symcode='[BDRT]'
5486 ;;
5487sco3.2v5*)
5488 symcode='[DT]'
5489 ;;
5490sysv4.2uw2*)
5491 symcode='[DT]'
5492 ;;
5493sysv5* | sco5v6* | unixware* | OpenUNIX*)
5494 symcode='[ABDT]'
5495 ;;
5496sysv4)
5497 symcode='[DFNSTU]'
5498 ;;
5499esac
d9898ee8 5500
8d138742
CE
5501# If we're using GNU nm, then use its standard symbol codes.
5502case `$NM -V 2>&1` in
5503*GNU* | *'with BFD'*)
5504 symcode='[ABCDGIRSTW]' ;;
5505esac
d9898ee8 5506
8d138742
CE
5507# Transform an extracted symbol line into a proper C declaration.
5508# Some systems (esp. on ia64) link data and code symbols differently,
5509# so use this general approach.
5510lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
d9898ee8 5511
8d138742
CE
5512# Transform an extracted symbol line into symbol name and symbol address
5513lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5514lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
d9898ee8 5515
8d138742
CE
5516# Handle CRLF in mingw tool chain
5517opt_cr=
5518case $build_os in
5519mingw*)
5520 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5521 ;;
5522esac
d9898ee8 5523
8d138742
CE
5524# Try without a prefix underscore, then with it.
5525for ac_symprfx in "" "_"; do
d9898ee8 5526
8d138742
CE
5527 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5528 symxfrm="\\1 $ac_symprfx\\2 \\2"
d9898ee8 5529
8d138742
CE
5530 # Write the raw and C identifiers.
5531 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5532 # Fake it for dumpbin and say T for any non-static function
5533 # and D for any global variable.
5534 # Also find C++ and __fastcall symbols from MSVC++,
5535 # which start with @ or ?.
5536 lt_cv_sys_global_symbol_pipe="$AWK '"\
5537" {last_section=section; section=\$ 3};"\
5538" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5539" \$ 0!~/External *\|/{next};"\
5540" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5541" {if(hide[section]) next};"\
5542" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5543" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5544" s[1]~/^[@?]/{print s[1], s[1]; next};"\
5545" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5546" ' prfx=^$ac_symprfx"
5547 else
5548 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5549 fi
d9898ee8 5550
8d138742
CE
5551 # Check to see that the pipe works correctly.
5552 pipe_works=no
d9898ee8 5553
8d138742
CE
5554 rm -f conftest*
5555 cat > conftest.$ac_ext <<_LT_EOF
5556#ifdef __cplusplus
5557extern "C" {
5558#endif
5559char nm_test_var;
5560void nm_test_func(void);
5561void nm_test_func(void){}
5562#ifdef __cplusplus
5563}
5564#endif
5565int main(){nm_test_var='a';nm_test_func();return(0);}
5566_LT_EOF
d9898ee8 5567
8d138742
CE
5568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5569 (eval $ac_compile) 2>&5
5570 ac_status=$?
5571 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5572 (exit $ac_status); }; then
5573 # Now try to grab the symbols.
5574 nlist=conftest.nm
5575 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5576 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5577 ac_status=$?
5578 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5579 (exit $ac_status); } && test -s "$nlist"; then
5580 # Try sorting and uniquifying the output.
5581 if sort "$nlist" | uniq > "$nlist"T; then
5582 mv -f "$nlist"T "$nlist"
5583 else
5584 rm -f "$nlist"T
5585 fi
d9898ee8 5586
8d138742
CE
5587 # Make sure that we snagged all the symbols we need.
5588 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5589 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5590 cat <<_LT_EOF > conftest.$ac_ext
5591#ifdef __cplusplus
5592extern "C" {
5593#endif
d9898ee8 5594
8d138742
CE
5595_LT_EOF
5596 # Now generate the symbol file.
5597 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
d9898ee8 5598
8d138742 5599 cat <<_LT_EOF >> conftest.$ac_ext
d9898ee8 5600
8d138742
CE
5601/* The mapping between symbol names and symbols. */
5602const struct {
5603 const char *name;
5604 void *address;
5605}
5606lt__PROGRAM__LTX_preloaded_symbols[] =
5607{
5608 { "@PROGRAM@", (void *) 0 },
5609_LT_EOF
5610 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5611 cat <<\_LT_EOF >> conftest.$ac_ext
5612 {0, (void *) 0}
5613};
d9898ee8 5614
8d138742
CE
5615/* This works around a problem in FreeBSD linker */
5616#ifdef FREEBSD_WORKAROUND
5617static const void *lt_preloaded_setup() {
5618 return lt__PROGRAM__LTX_preloaded_symbols;
5619}
5620#endif
d9898ee8 5621
8d138742
CE
5622#ifdef __cplusplus
5623}
5624#endif
5625_LT_EOF
5626 # Now try linking the two files.
5627 mv conftest.$ac_objext conftstm.$ac_objext
5628 lt_save_LIBS="$LIBS"
5629 lt_save_CFLAGS="$CFLAGS"
5630 LIBS="conftstm.$ac_objext"
5631 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5632 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5633 (eval $ac_link) 2>&5
5634 ac_status=$?
5635 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5636 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5637 pipe_works=yes
5638 fi
5639 LIBS="$lt_save_LIBS"
5640 CFLAGS="$lt_save_CFLAGS"
5641 else
5642 echo "cannot find nm_test_func in $nlist" >&5
5643 fi
5644 else
5645 echo "cannot find nm_test_var in $nlist" >&5
5646 fi
5647 else
5648 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5649 fi
5650 else
5651 echo "$progname: failed program was:" >&5
5652 cat conftest.$ac_ext >&5
5653 fi
5654 rm -rf conftest* conftst*
d9898ee8 5655
8d138742
CE
5656 # Do not use the global_symbol_pipe unless it works.
5657 if test "$pipe_works" = yes; then
5658 break
5659 else
5660 lt_cv_sys_global_symbol_pipe=
5661 fi
5662done
d9898ee8 5663
8d138742 5664fi
d9898ee8 5665
8d138742
CE
5666if test -z "$lt_cv_sys_global_symbol_pipe"; then
5667 lt_cv_sys_global_symbol_to_cdecl=
5668fi
5669if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5670 { $as_echo "$as_me:$LINENO: result: failed" >&5
5671$as_echo "failed" >&6; }
d9898ee8 5672else
8d138742
CE
5673 { $as_echo "$as_me:$LINENO: result: ok" >&5
5674$as_echo "ok" >&6; }
d9898ee8 5675fi
5676
5677
d9898ee8 5678
d9898ee8 5679
d9898ee8 5680
d9898ee8 5681
d9898ee8 5682
d9898ee8 5683
d9898ee8 5684
d9898ee8 5685
d9898ee8 5686
5687
d9898ee8 5688
d9898ee8 5689
5690
d9898ee8 5691
5692
d9898ee8 5693
d9898ee8 5694
d9898ee8 5695
d9898ee8 5696
d9898ee8 5697
d9898ee8 5698
8d138742
CE
5699# Check whether --enable-libtool-lock was given.
5700if test "${enable_libtool_lock+set}" = set; then
5701 enableval=$enable_libtool_lock;
5702fi
d9898ee8 5703
8d138742 5704test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
d9898ee8 5705
8d138742
CE
5706# Some flags need to be propagated to the compiler or linker for good
5707# libtool support.
5708case $host in
5709ia64-*-hpux*)
5710 # Find out which ABI we are using.
5711 echo 'int i;' > conftest.$ac_ext
5712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5713 (eval $ac_compile) 2>&5
5714 ac_status=$?
5715 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5716 (exit $ac_status); }; then
5717 case `/usr/bin/file conftest.$ac_objext` in
5718 *ELF-32*)
5719 HPUX_IA64_MODE="32"
5720 ;;
5721 *ELF-64*)
5722 HPUX_IA64_MODE="64"
5723 ;;
5724 esac
5725 fi
5726 rm -rf conftest*
5727 ;;
5728*-*-irix6*)
5729 # Find out which ABI we are using.
5730 echo '#line 5730 "configure"' > conftest.$ac_ext
5731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5732 (eval $ac_compile) 2>&5
5733 ac_status=$?
5734 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5735 (exit $ac_status); }; then
5736 if test "$lt_cv_prog_gnu_ld" = yes; then
5737 case `/usr/bin/file conftest.$ac_objext` in
5738 *32-bit*)
5739 LD="${LD-ld} -melf32bsmip"
5740 ;;
5741 *N32*)
5742 LD="${LD-ld} -melf32bmipn32"
5743 ;;
5744 *64-bit*)
5745 LD="${LD-ld} -melf64bmip"
5746 ;;
5747 esac
5748 else
5749 case `/usr/bin/file conftest.$ac_objext` in
5750 *32-bit*)
5751 LD="${LD-ld} -32"
5752 ;;
5753 *N32*)
5754 LD="${LD-ld} -n32"
5755 ;;
5756 *64-bit*)
5757 LD="${LD-ld} -64"
5758 ;;
5759 esac
5760 fi
5761 fi
5762 rm -rf conftest*
5763 ;;
d9898ee8 5764
8d138742
CE
5765x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5766s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5767 # Find out which ABI we are using.
5768 echo 'int i;' > conftest.$ac_ext
5769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5770 (eval $ac_compile) 2>&5
5771 ac_status=$?
5772 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5773 (exit $ac_status); }; then
5774 case `/usr/bin/file conftest.o` in
5775 *32-bit*)
5776 case $host in
5777 x86_64-*kfreebsd*-gnu)
5778 LD="${LD-ld} -m elf_i386_fbsd"
5779 ;;
5780 x86_64-*linux*)
5781 LD="${LD-ld} -m elf_i386"
5782 ;;
5783 ppc64-*linux*|powerpc64-*linux*)
5784 LD="${LD-ld} -m elf32ppclinux"
5785 ;;
5786 s390x-*linux*)
5787 LD="${LD-ld} -m elf_s390"
5788 ;;
5789 sparc64-*linux*)
5790 LD="${LD-ld} -m elf32_sparc"
5791 ;;
5792 esac
5793 ;;
5794 *64-bit*)
5795 case $host in
5796 x86_64-*kfreebsd*-gnu)
5797 LD="${LD-ld} -m elf_x86_64_fbsd"
5798 ;;
5799 x86_64-*linux*)
5800 LD="${LD-ld} -m elf_x86_64"
5801 ;;
5802 ppc*-*linux*|powerpc*-*linux*)
5803 LD="${LD-ld} -m elf64ppc"
5804 ;;
5805 s390*-*linux*|s390*-*tpf*)
5806 LD="${LD-ld} -m elf64_s390"
5807 ;;
5808 sparc*-*linux*)
5809 LD="${LD-ld} -m elf64_sparc"
5810 ;;
5811 esac
5812 ;;
5813 esac
5814 fi
5815 rm -rf conftest*
5816 ;;
d9898ee8 5817
8d138742
CE
5818*-*-sco3.2v5*)
5819 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5820 SAVE_CFLAGS="$CFLAGS"
5821 CFLAGS="$CFLAGS -belf"
5822 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5823$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5824if test "${lt_cv_cc_needs_belf+set}" = set; then
5825 $as_echo_n "(cached) " >&6
5826else
5827 ac_ext=c
5828ac_cpp='$CPP $CPPFLAGS'
5829ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5830ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5831ac_compiler_gnu=$ac_cv_c_compiler_gnu
d9898ee8 5832
8d138742
CE
5833 cat >conftest.$ac_ext <<_ACEOF
5834/* confdefs.h. */
5835_ACEOF
5836cat confdefs.h >>conftest.$ac_ext
5837cat >>conftest.$ac_ext <<_ACEOF
5838/* end confdefs.h. */
d9898ee8 5839
8d138742
CE
5840int
5841main ()
5842{
d9898ee8 5843
8d138742
CE
5844 ;
5845 return 0;
5846}
5847_ACEOF
5848rm -f conftest.$ac_objext conftest$ac_exeext
5849if { (ac_try="$ac_link"
5850case "(($ac_try" in
5851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5852 *) ac_try_echo=$ac_try;;
5853esac
5854eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5855$as_echo "$ac_try_echo") >&5
5856 (eval "$ac_link") 2>conftest.er1
5857 ac_status=$?
5858 grep -v '^ *+' conftest.er1 >conftest.err
5859 rm -f conftest.er1
5860 cat conftest.err >&5
5861 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5862 (exit $ac_status); } && {
5863 test -z "$ac_c_werror_flag" ||
5864 test ! -s conftest.err
5865 } && test -s conftest$ac_exeext && {
5866 test "$cross_compiling" = yes ||
5867 $as_test_x conftest$ac_exeext
5868 }; then
5869 lt_cv_cc_needs_belf=yes
5870else
5871 $as_echo "$as_me: failed program was:" >&5
5872sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 5873
8d138742
CE
5874 lt_cv_cc_needs_belf=no
5875fi
d9898ee8 5876
8d138742
CE
5877rm -rf conftest.dSYM
5878rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5879 conftest$ac_exeext conftest.$ac_ext
5880 ac_ext=c
5881ac_cpp='$CPP $CPPFLAGS'
5882ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5883ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5884ac_compiler_gnu=$ac_cv_c_compiler_gnu
d9898ee8 5885
8d138742
CE
5886fi
5887{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5888$as_echo "$lt_cv_cc_needs_belf" >&6; }
5889 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5890 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5891 CFLAGS="$SAVE_CFLAGS"
5892 fi
5893 ;;
5894sparc*-*solaris*)
5895 # Find out which ABI we are using.
5896 echo 'int i;' > conftest.$ac_ext
5897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5898 (eval $ac_compile) 2>&5
5899 ac_status=$?
5900 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5901 (exit $ac_status); }; then
5902 case `/usr/bin/file conftest.o` in
5903 *64-bit*)
5904 case $lt_cv_prog_gnu_ld in
5905 yes*) LD="${LD-ld} -m elf64_sparc" ;;
d9898ee8 5906 *)
8d138742
CE
5907 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5908 LD="${LD-ld} -64"
5909 fi
d9898ee8 5910 ;;
5911 esac
5912 ;;
d9898ee8 5913 esac
8d138742
CE
5914 fi
5915 rm -rf conftest*
5916 ;;
5917esac
d9898ee8 5918
8d138742 5919need_locks="$enable_libtool_lock"
d9898ee8 5920
d9898ee8 5921
8d138742
CE
5922 case $host_os in
5923 rhapsody* | darwin*)
5924 if test -n "$ac_tool_prefix"; then
5925 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5926set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5927{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5928$as_echo_n "checking for $ac_word... " >&6; }
5929if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
5930 $as_echo_n "(cached) " >&6
5931else
5932 if test -n "$DSYMUTIL"; then
5933 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5934else
5935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5936for as_dir in $PATH
5937do
5938 IFS=$as_save_IFS
5939 test -z "$as_dir" && as_dir=.
5940 for ac_exec_ext in '' $ac_executable_extensions; do
5941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5942 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5943 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5944 break 2
5945 fi
5946done
5947done
5948IFS=$as_save_IFS
d9898ee8 5949
8d138742
CE
5950fi
5951fi
5952DSYMUTIL=$ac_cv_prog_DSYMUTIL
5953if test -n "$DSYMUTIL"; then
5954 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
5955$as_echo "$DSYMUTIL" >&6; }
5956else
5957 { $as_echo "$as_me:$LINENO: result: no" >&5
5958$as_echo "no" >&6; }
5959fi
d9898ee8 5960
d9898ee8 5961
8d138742
CE
5962fi
5963if test -z "$ac_cv_prog_DSYMUTIL"; then
5964 ac_ct_DSYMUTIL=$DSYMUTIL
5965 # Extract the first word of "dsymutil", so it can be a program name with args.
5966set dummy dsymutil; ac_word=$2
5967{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5968$as_echo_n "checking for $ac_word... " >&6; }
5969if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
5970 $as_echo_n "(cached) " >&6
5971else
5972 if test -n "$ac_ct_DSYMUTIL"; then
5973 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5974else
5975as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5976for as_dir in $PATH
5977do
5978 IFS=$as_save_IFS
5979 test -z "$as_dir" && as_dir=.
5980 for ac_exec_ext in '' $ac_executable_extensions; do
5981 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5982 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5983 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5984 break 2
5985 fi
5986done
5987done
5988IFS=$as_save_IFS
d9898ee8 5989
8d138742
CE
5990fi
5991fi
5992ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5993if test -n "$ac_ct_DSYMUTIL"; then
5994 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
5995$as_echo "$ac_ct_DSYMUTIL" >&6; }
5996else
5997 { $as_echo "$as_me:$LINENO: result: no" >&5
5998$as_echo "no" >&6; }
5999fi
ac40fd9e 6000
8d138742
CE
6001 if test "x$ac_ct_DSYMUTIL" = x; then
6002 DSYMUTIL=":"
6003 else
6004 case $cross_compiling:$ac_tool_warned in
6005yes:)
6006{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6007$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6008ac_tool_warned=yes ;;
6009esac
6010 DSYMUTIL=$ac_ct_DSYMUTIL
6011 fi
6012else
6013 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6014fi
d9898ee8 6015
8d138742
CE
6016 if test -n "$ac_tool_prefix"; then
6017 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6018set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6019{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6020$as_echo_n "checking for $ac_word... " >&6; }
6021if test "${ac_cv_prog_NMEDIT+set}" = set; then
6022 $as_echo_n "(cached) " >&6
6023else
6024 if test -n "$NMEDIT"; then
6025 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6026else
6027as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6028for as_dir in $PATH
6029do
6030 IFS=$as_save_IFS
6031 test -z "$as_dir" && as_dir=.
6032 for ac_exec_ext in '' $ac_executable_extensions; do
6033 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6034 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6035 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6036 break 2
6037 fi
6038done
6039done
6040IFS=$as_save_IFS
d9898ee8 6041
8d138742
CE
6042fi
6043fi
6044NMEDIT=$ac_cv_prog_NMEDIT
6045if test -n "$NMEDIT"; then
6046 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
6047$as_echo "$NMEDIT" >&6; }
6048else
6049 { $as_echo "$as_me:$LINENO: result: no" >&5
6050$as_echo "no" >&6; }
6051fi
d9898ee8 6052
d9898ee8 6053
8d138742
CE
6054fi
6055if test -z "$ac_cv_prog_NMEDIT"; then
6056 ac_ct_NMEDIT=$NMEDIT
6057 # Extract the first word of "nmedit", so it can be a program name with args.
6058set dummy nmedit; ac_word=$2
6059{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6060$as_echo_n "checking for $ac_word... " >&6; }
6061if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6062 $as_echo_n "(cached) " >&6
6063else
6064 if test -n "$ac_ct_NMEDIT"; then
6065 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6066else
6067as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6068for as_dir in $PATH
6069do
6070 IFS=$as_save_IFS
6071 test -z "$as_dir" && as_dir=.
6072 for ac_exec_ext in '' $ac_executable_extensions; do
6073 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6074 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6075 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6076 break 2
6077 fi
6078done
6079done
6080IFS=$as_save_IFS
d9898ee8 6081
8d138742
CE
6082fi
6083fi
6084ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6085if test -n "$ac_ct_NMEDIT"; then
6086 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6087$as_echo "$ac_ct_NMEDIT" >&6; }
6088else
6089 { $as_echo "$as_me:$LINENO: result: no" >&5
6090$as_echo "no" >&6; }
6091fi
d9898ee8 6092
8d138742
CE
6093 if test "x$ac_ct_NMEDIT" = x; then
6094 NMEDIT=":"
6095 else
6096 case $cross_compiling:$ac_tool_warned in
6097yes:)
6098{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6099$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6100ac_tool_warned=yes ;;
6101esac
6102 NMEDIT=$ac_ct_NMEDIT
6103 fi
6104else
6105 NMEDIT="$ac_cv_prog_NMEDIT"
6106fi
d9898ee8 6107
8d138742
CE
6108 if test -n "$ac_tool_prefix"; then
6109 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6110set dummy ${ac_tool_prefix}lipo; ac_word=$2
6111{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6112$as_echo_n "checking for $ac_word... " >&6; }
6113if test "${ac_cv_prog_LIPO+set}" = set; then
6114 $as_echo_n "(cached) " >&6
6115else
6116 if test -n "$LIPO"; then
6117 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6118else
6119as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6120for as_dir in $PATH
6121do
6122 IFS=$as_save_IFS
6123 test -z "$as_dir" && as_dir=.
6124 for ac_exec_ext in '' $ac_executable_extensions; do
6125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6126 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6127 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6128 break 2
d9898ee8 6129 fi
8d138742
CE
6130done
6131done
6132IFS=$as_save_IFS
d9898ee8 6133
8d138742
CE
6134fi
6135fi
6136LIPO=$ac_cv_prog_LIPO
6137if test -n "$LIPO"; then
6138 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
6139$as_echo "$LIPO" >&6; }
6140else
6141 { $as_echo "$as_me:$LINENO: result: no" >&5
6142$as_echo "no" >&6; }
6143fi
d9898ee8 6144
d9898ee8 6145
8d138742
CE
6146fi
6147if test -z "$ac_cv_prog_LIPO"; then
6148 ac_ct_LIPO=$LIPO
6149 # Extract the first word of "lipo", so it can be a program name with args.
6150set dummy lipo; ac_word=$2
6151{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6152$as_echo_n "checking for $ac_word... " >&6; }
6153if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6154 $as_echo_n "(cached) " >&6
d9898ee8 6155else
8d138742
CE
6156 if test -n "$ac_ct_LIPO"; then
6157 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6158else
6159as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6160for as_dir in $PATH
6161do
6162 IFS=$as_save_IFS
6163 test -z "$as_dir" && as_dir=.
6164 for ac_exec_ext in '' $ac_executable_extensions; do
6165 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6166 ac_cv_prog_ac_ct_LIPO="lipo"
6167 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6168 break 2
6169 fi
6170done
6171done
6172IFS=$as_save_IFS
d9898ee8 6173
6174fi
8d138742
CE
6175fi
6176ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6177if test -n "$ac_ct_LIPO"; then
6178 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6179$as_echo "$ac_ct_LIPO" >&6; }
d9898ee8 6180else
8d138742
CE
6181 { $as_echo "$as_me:$LINENO: result: no" >&5
6182$as_echo "no" >&6; }
d9898ee8 6183fi
6184
8d138742
CE
6185 if test "x$ac_ct_LIPO" = x; then
6186 LIPO=":"
6187 else
6188 case $cross_compiling:$ac_tool_warned in
6189yes:)
6190{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6191$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6192ac_tool_warned=yes ;;
d9898ee8 6193esac
8d138742
CE
6194 LIPO=$ac_ct_LIPO
6195 fi
6196else
6197 LIPO="$ac_cv_prog_LIPO"
6198fi
d9898ee8 6199
8d138742
CE
6200 if test -n "$ac_tool_prefix"; then
6201 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6202set dummy ${ac_tool_prefix}otool; ac_word=$2
6203{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6204$as_echo_n "checking for $ac_word... " >&6; }
6205if test "${ac_cv_prog_OTOOL+set}" = set; then
6206 $as_echo_n "(cached) " >&6
d9898ee8 6207else
8d138742
CE
6208 if test -n "$OTOOL"; then
6209 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6210else
6211as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6212for as_dir in $PATH
6213do
6214 IFS=$as_save_IFS
6215 test -z "$as_dir" && as_dir=.
6216 for ac_exec_ext in '' $ac_executable_extensions; do
6217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6218 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6219 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6220 break 2
6221 fi
6222done
6223done
6224IFS=$as_save_IFS
d9898ee8 6225
6226fi
8d138742
CE
6227fi
6228OTOOL=$ac_cv_prog_OTOOL
6229if test -n "$OTOOL"; then
6230 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
6231$as_echo "$OTOOL" >&6; }
d9898ee8 6232else
8d138742
CE
6233 { $as_echo "$as_me:$LINENO: result: no" >&5
6234$as_echo "no" >&6; }
d9898ee8 6235fi
6236
6237
8d138742
CE
6238fi
6239if test -z "$ac_cv_prog_OTOOL"; then
6240 ac_ct_OTOOL=$OTOOL
6241 # Extract the first word of "otool", so it can be a program name with args.
6242set dummy otool; ac_word=$2
6243{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6244$as_echo_n "checking for $ac_word... " >&6; }
6245if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6246 $as_echo_n "(cached) " >&6
d9898ee8 6247else
8d138742
CE
6248 if test -n "$ac_ct_OTOOL"; then
6249 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6250else
6251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6252for as_dir in $PATH
6253do
6254 IFS=$as_save_IFS
6255 test -z "$as_dir" && as_dir=.
6256 for ac_exec_ext in '' $ac_executable_extensions; do
6257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6258 ac_cv_prog_ac_ct_OTOOL="otool"
6259 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6260 break 2
6261 fi
6262done
6263done
6264IFS=$as_save_IFS
d9898ee8 6265
6266fi
8d138742
CE
6267fi
6268ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6269if test -n "$ac_ct_OTOOL"; then
6270 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6271$as_echo "$ac_ct_OTOOL" >&6; }
6272else
6273 { $as_echo "$as_me:$LINENO: result: no" >&5
6274$as_echo "no" >&6; }
6275fi
d9898ee8 6276
8d138742
CE
6277 if test "x$ac_ct_OTOOL" = x; then
6278 OTOOL=":"
6279 else
6280 case $cross_compiling:$ac_tool_warned in
6281yes:)
6282{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6283$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6284ac_tool_warned=yes ;;
6285esac
6286 OTOOL=$ac_ct_OTOOL
d9898ee8 6287 fi
6288else
8d138742 6289 OTOOL="$ac_cv_prog_OTOOL"
d9898ee8 6290fi
6291
8d138742
CE
6292 if test -n "$ac_tool_prefix"; then
6293 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6294set dummy ${ac_tool_prefix}otool64; ac_word=$2
6295{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6296$as_echo_n "checking for $ac_word... " >&6; }
6297if test "${ac_cv_prog_OTOOL64+set}" = set; then
6298 $as_echo_n "(cached) " >&6
6299else
6300 if test -n "$OTOOL64"; then
6301 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6302else
6303as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6304for as_dir in $PATH
6305do
6306 IFS=$as_save_IFS
6307 test -z "$as_dir" && as_dir=.
6308 for ac_exec_ext in '' $ac_executable_extensions; do
6309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6310 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6311 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6312 break 2
6313 fi
d9898ee8 6314done
8d138742
CE
6315done
6316IFS=$as_save_IFS
d9898ee8 6317
8d138742
CE
6318fi
6319fi
6320OTOOL64=$ac_cv_prog_OTOOL64
6321if test -n "$OTOOL64"; then
6322 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
6323$as_echo "$OTOOL64" >&6; }
6324else
6325 { $as_echo "$as_me:$LINENO: result: no" >&5
6326$as_echo "no" >&6; }
6327fi
d9898ee8 6328
d9898ee8 6329
8d138742
CE
6330fi
6331if test -z "$ac_cv_prog_OTOOL64"; then
6332 ac_ct_OTOOL64=$OTOOL64
6333 # Extract the first word of "otool64", so it can be a program name with args.
6334set dummy otool64; ac_word=$2
6335{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6336$as_echo_n "checking for $ac_word... " >&6; }
6337if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6338 $as_echo_n "(cached) " >&6
6339else
6340 if test -n "$ac_ct_OTOOL64"; then
6341 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6342else
6343as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6344for as_dir in $PATH
6345do
6346 IFS=$as_save_IFS
6347 test -z "$as_dir" && as_dir=.
6348 for ac_exec_ext in '' $ac_executable_extensions; do
6349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6350 ac_cv_prog_ac_ct_OTOOL64="otool64"
6351 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6352 break 2
6353 fi
6354done
6355done
6356IFS=$as_save_IFS
d9898ee8 6357
8d138742
CE
6358fi
6359fi
6360ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6361if test -n "$ac_ct_OTOOL64"; then
6362 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6363$as_echo "$ac_ct_OTOOL64" >&6; }
6364else
6365 { $as_echo "$as_me:$LINENO: result: no" >&5
6366$as_echo "no" >&6; }
6367fi
d9898ee8 6368
8d138742
CE
6369 if test "x$ac_ct_OTOOL64" = x; then
6370 OTOOL64=":"
6371 else
6372 case $cross_compiling:$ac_tool_warned in
6373yes:)
6374{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6375$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6376ac_tool_warned=yes ;;
6377esac
6378 OTOOL64=$ac_ct_OTOOL64
6379 fi
6380else
6381 OTOOL64="$ac_cv_prog_OTOOL64"
6382fi
d9898ee8 6383
d9898ee8 6384
d9898ee8 6385
d9898ee8 6386
d9898ee8 6387
d9898ee8 6388
d9898ee8 6389
d9898ee8 6390
d9898ee8 6391
d9898ee8 6392
d9898ee8 6393
d9898ee8 6394
d9898ee8 6395
d9898ee8 6396
d9898ee8 6397
d9898ee8 6398
d9898ee8 6399
d9898ee8 6400
d9898ee8 6401
8d138742
CE
6402
6403
6404
6405
6406
6407
6408
6409
6410 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6411$as_echo_n "checking for -single_module linker flag... " >&6; }
6412if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6413 $as_echo_n "(cached) " >&6
6414else
6415 lt_cv_apple_cc_single_mod=no
6416 if test -z "${LT_MULTI_MODULE}"; then
6417 # By default we will add the -single_module flag. You can override
6418 # by either setting the environment variable LT_MULTI_MODULE
6419 # non-empty at configure time, or by adding -multi_module to the
6420 # link flags.
6421 rm -rf libconftest.dylib*
6422 echo "int foo(void){return 1;}" > conftest.c
6423 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6424-dynamiclib -Wl,-single_module conftest.c" >&5
6425 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6426 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6427 _lt_result=$?
6428 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6429 lt_cv_apple_cc_single_mod=yes
d9898ee8 6430 else
8d138742 6431 cat conftest.err >&5
d9898ee8 6432 fi
8d138742
CE
6433 rm -rf libconftest.dylib*
6434 rm -f conftest.*
d9898ee8 6435 fi
8d138742
CE
6436fi
6437{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6438$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6439 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6440$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6441if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6442 $as_echo_n "(cached) " >&6
6443else
6444 lt_cv_ld_exported_symbols_list=no
6445 save_LDFLAGS=$LDFLAGS
6446 echo "_main" > conftest.sym
6447 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6448 cat >conftest.$ac_ext <<_ACEOF
6449/* confdefs.h. */
6450_ACEOF
6451cat confdefs.h >>conftest.$ac_ext
6452cat >>conftest.$ac_ext <<_ACEOF
6453/* end confdefs.h. */
6454
6455int
6456main ()
6457{
6458
6459 ;
6460 return 0;
6461}
6462_ACEOF
6463rm -f conftest.$ac_objext conftest$ac_exeext
6464if { (ac_try="$ac_link"
6465case "(($ac_try" in
6466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6467 *) ac_try_echo=$ac_try;;
6468esac
6469eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6470$as_echo "$ac_try_echo") >&5
6471 (eval "$ac_link") 2>conftest.er1
6472 ac_status=$?
6473 grep -v '^ *+' conftest.er1 >conftest.err
6474 rm -f conftest.er1
6475 cat conftest.err >&5
6476 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6477 (exit $ac_status); } && {
6478 test -z "$ac_c_werror_flag" ||
6479 test ! -s conftest.err
6480 } && test -s conftest$ac_exeext && {
6481 test "$cross_compiling" = yes ||
6482 $as_test_x conftest$ac_exeext
6483 }; then
6484 lt_cv_ld_exported_symbols_list=yes
6485else
6486 $as_echo "$as_me: failed program was:" >&5
6487sed 's/^/| /' conftest.$ac_ext >&5
6488
6489 lt_cv_ld_exported_symbols_list=no
6490fi
6491
6492rm -rf conftest.dSYM
6493rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6494 conftest$ac_exeext conftest.$ac_ext
6495 LDFLAGS="$save_LDFLAGS"
6496
6497fi
6498{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6499$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6500 case $host_os in
6501 rhapsody* | darwin1.[012])
6502 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6503 darwin1.*)
6504 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6505 darwin*) # darwin 5.x on
6506 # if running on 10.5 or later, the deployment target defaults
6507 # to the OS version, if on x86, and 10.4, the deployment
6508 # target defaults to 10.4. Don't you love it?
6509 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6510 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6511 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6512 10.[012]*)
6513 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6514 10.*)
6515 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6516 esac
6517 ;;
6518 esac
6519 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6520 _lt_dar_single_mod='$single_module'
6521 fi
6522 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6523 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6524 else
6525 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6526 fi
6527 if test "$DSYMUTIL" != ":"; then
6528 _lt_dsymutil='~$DSYMUTIL $lib || :'
6529 else
6530 _lt_dsymutil=
6531 fi
6532 ;;
6533 esac
6534
6535ac_ext=c
6536ac_cpp='$CPP $CPPFLAGS'
6537ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6538ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6539ac_compiler_gnu=$ac_cv_c_compiler_gnu
6540{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6541$as_echo_n "checking how to run the C preprocessor... " >&6; }
6542# On Suns, sometimes $CPP names a directory.
6543if test -n "$CPP" && test -d "$CPP"; then
6544 CPP=
6545fi
6546if test -z "$CPP"; then
6547 if test "${ac_cv_prog_CPP+set}" = set; then
6548 $as_echo_n "(cached) " >&6
6549else
6550 # Double quotes because CPP needs to be expanded
6551 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6552 do
6553 ac_preproc_ok=false
6554for ac_c_preproc_warn_flag in '' yes
6555do
6556 # Use a header file that comes with gcc, so configuring glibc
6557 # with a fresh cross-compiler works.
6558 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6559 # <limits.h> exists even on freestanding compilers.
6560 # On the NeXT, cc -E runs the code through the compiler's parser,
6561 # not just through cpp. "Syntax error" is here to catch this case.
6562 cat >conftest.$ac_ext <<_ACEOF
6563/* confdefs.h. */
6564_ACEOF
6565cat confdefs.h >>conftest.$ac_ext
6566cat >>conftest.$ac_ext <<_ACEOF
6567/* end confdefs.h. */
6568#ifdef __STDC__
6569# include <limits.h>
6570#else
6571# include <assert.h>
6572#endif
6573 Syntax error
6574_ACEOF
6575if { (ac_try="$ac_cpp conftest.$ac_ext"
6576case "(($ac_try" in
6577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6578 *) ac_try_echo=$ac_try;;
6579esac
6580eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6581$as_echo "$ac_try_echo") >&5
6582 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6583 ac_status=$?
6584 grep -v '^ *+' conftest.er1 >conftest.err
6585 rm -f conftest.er1
6586 cat conftest.err >&5
6587 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6588 (exit $ac_status); } >/dev/null && {
6589 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6590 test ! -s conftest.err
6591 }; then
6592 :
6593else
6594 $as_echo "$as_me: failed program was:" >&5
6595sed 's/^/| /' conftest.$ac_ext >&5
6596
6597 # Broken: fails on valid input.
6598continue
6599fi
d9898ee8 6600
8d138742 6601rm -f conftest.err conftest.$ac_ext
d9898ee8 6602
8d138742
CE
6603 # OK, works on sane cases. Now check whether nonexistent headers
6604 # can be detected and how.
6605 cat >conftest.$ac_ext <<_ACEOF
6606/* confdefs.h. */
d9898ee8 6607_ACEOF
8d138742
CE
6608cat confdefs.h >>conftest.$ac_ext
6609cat >>conftest.$ac_ext <<_ACEOF
6610/* end confdefs.h. */
6611#include <ac_nonexistent.h>
6612_ACEOF
6613if { (ac_try="$ac_cpp conftest.$ac_ext"
dd184caf 6614case "(($ac_try" in
6615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6616 *) ac_try_echo=$ac_try;;
6617esac
8d138742
CE
6618eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6619$as_echo "$ac_try_echo") >&5
6620 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 6621 ac_status=$?
6622 grep -v '^ *+' conftest.er1 >conftest.err
6623 rm -f conftest.er1
6624 cat conftest.err >&5
8d138742
CE
6625 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6626 (exit $ac_status); } >/dev/null && {
6627 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
dd184caf 6628 test ! -s conftest.err
8d138742
CE
6629 }; then
6630 # Broken: success on invalid input.
6631continue
d9898ee8 6632else
8d138742 6633 $as_echo "$as_me: failed program was:" >&5
d9898ee8 6634sed 's/^/| /' conftest.$ac_ext >&5
6635
8d138742
CE
6636 # Passes both tests.
6637ac_preproc_ok=:
6638break
d9898ee8 6639fi
dd184caf 6640
8d138742 6641rm -f conftest.err conftest.$ac_ext
d9898ee8 6642
8d138742
CE
6643done
6644# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6645rm -f conftest.err conftest.$ac_ext
6646if $ac_preproc_ok; then
6647 break
6648fi
d9898ee8 6649
8d138742
CE
6650 done
6651 ac_cv_prog_CPP=$CPP
6652
6653fi
6654 CPP=$ac_cv_prog_CPP
6655else
6656 ac_cv_prog_CPP=$CPP
6657fi
6658{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
6659$as_echo "$CPP" >&6; }
6660ac_preproc_ok=false
6661for ac_c_preproc_warn_flag in '' yes
6662do
6663 # Use a header file that comes with gcc, so configuring glibc
6664 # with a fresh cross-compiler works.
6665 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6666 # <limits.h> exists even on freestanding compilers.
6667 # On the NeXT, cc -E runs the code through the compiler's parser,
6668 # not just through cpp. "Syntax error" is here to catch this case.
6669 cat >conftest.$ac_ext <<_ACEOF
6670/* confdefs.h. */
d9898ee8 6671_ACEOF
8d138742
CE
6672cat confdefs.h >>conftest.$ac_ext
6673cat >>conftest.$ac_ext <<_ACEOF
6674/* end confdefs.h. */
6675#ifdef __STDC__
6676# include <limits.h>
6677#else
6678# include <assert.h>
6679#endif
6680 Syntax error
6681_ACEOF
6682if { (ac_try="$ac_cpp conftest.$ac_ext"
dd184caf 6683case "(($ac_try" in
6684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6685 *) ac_try_echo=$ac_try;;
6686esac
8d138742
CE
6687eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6688$as_echo "$ac_try_echo") >&5
6689 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 6690 ac_status=$?
6691 grep -v '^ *+' conftest.er1 >conftest.err
6692 rm -f conftest.er1
6693 cat conftest.err >&5
8d138742
CE
6694 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6695 (exit $ac_status); } >/dev/null && {
6696 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
dd184caf 6697 test ! -s conftest.err
8d138742
CE
6698 }; then
6699 :
d9898ee8 6700else
8d138742 6701 $as_echo "$as_me: failed program was:" >&5
d9898ee8 6702sed 's/^/| /' conftest.$ac_ext >&5
6703
8d138742
CE
6704 # Broken: fails on valid input.
6705continue
d9898ee8 6706fi
dd184caf 6707
8d138742 6708rm -f conftest.err conftest.$ac_ext
d9898ee8 6709
8d138742
CE
6710 # OK, works on sane cases. Now check whether nonexistent headers
6711 # can be detected and how.
6712 cat >conftest.$ac_ext <<_ACEOF
6713/* confdefs.h. */
6714_ACEOF
6715cat confdefs.h >>conftest.$ac_ext
6716cat >>conftest.$ac_ext <<_ACEOF
6717/* end confdefs.h. */
6718#include <ac_nonexistent.h>
6719_ACEOF
6720if { (ac_try="$ac_cpp conftest.$ac_ext"
6721case "(($ac_try" in
6722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6723 *) ac_try_echo=$ac_try;;
6724esac
6725eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6726$as_echo "$ac_try_echo") >&5
6727 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6728 ac_status=$?
6729 grep -v '^ *+' conftest.er1 >conftest.err
6730 rm -f conftest.er1
6731 cat conftest.err >&5
6732 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6733 (exit $ac_status); } >/dev/null && {
6734 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6735 test ! -s conftest.err
6736 }; then
6737 # Broken: success on invalid input.
6738continue
6739else
6740 $as_echo "$as_me: failed program was:" >&5
6741sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 6742
8d138742
CE
6743 # Passes both tests.
6744ac_preproc_ok=:
6745break
6746fi
d9898ee8 6747
8d138742 6748rm -f conftest.err conftest.$ac_ext
d9898ee8 6749
8d138742
CE
6750done
6751# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6752rm -f conftest.err conftest.$ac_ext
6753if $ac_preproc_ok; then
6754 :
6755else
6756 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6757$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6758{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6759See \`config.log' for more details." >&5
6760$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6761See \`config.log' for more details." >&2;}
6762 { (exit 1); exit 1; }; }; }
6763fi
d9898ee8 6764
8d138742
CE
6765ac_ext=c
6766ac_cpp='$CPP $CPPFLAGS'
6767ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6768ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6769ac_compiler_gnu=$ac_cv_c_compiler_gnu
d9898ee8 6770
d9898ee8 6771
8d138742
CE
6772{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6773$as_echo_n "checking for ANSI C header files... " >&6; }
6774if test "${ac_cv_header_stdc+set}" = set; then
6775 $as_echo_n "(cached) " >&6
6776else
6777 cat >conftest.$ac_ext <<_ACEOF
6778/* confdefs.h. */
6779_ACEOF
6780cat confdefs.h >>conftest.$ac_ext
6781cat >>conftest.$ac_ext <<_ACEOF
6782/* end confdefs.h. */
6783#include <stdlib.h>
6784#include <stdarg.h>
6785#include <string.h>
6786#include <float.h>
d9898ee8 6787
8d138742
CE
6788int
6789main ()
6790{
d9898ee8 6791
8d138742
CE
6792 ;
6793 return 0;
6794}
6795_ACEOF
6796rm -f conftest.$ac_objext
6797if { (ac_try="$ac_compile"
6798case "(($ac_try" in
6799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6800 *) ac_try_echo=$ac_try;;
6801esac
6802eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6803$as_echo "$ac_try_echo") >&5
6804 (eval "$ac_compile") 2>conftest.er1
6805 ac_status=$?
6806 grep -v '^ *+' conftest.er1 >conftest.err
6807 rm -f conftest.er1
6808 cat conftest.err >&5
6809 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6810 (exit $ac_status); } && {
6811 test -z "$ac_c_werror_flag" ||
6812 test ! -s conftest.err
6813 } && test -s conftest.$ac_objext; then
6814 ac_cv_header_stdc=yes
6815else
6816 $as_echo "$as_me: failed program was:" >&5
6817sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 6818
8d138742
CE
6819 ac_cv_header_stdc=no
6820fi
d9898ee8 6821
8d138742 6822rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 6823
8d138742
CE
6824if test $ac_cv_header_stdc = yes; then
6825 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6826 cat >conftest.$ac_ext <<_ACEOF
6827/* confdefs.h. */
6828_ACEOF
6829cat confdefs.h >>conftest.$ac_ext
6830cat >>conftest.$ac_ext <<_ACEOF
6831/* end confdefs.h. */
6832#include <string.h>
d9898ee8 6833
8d138742
CE
6834_ACEOF
6835if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6836 $EGREP "memchr" >/dev/null 2>&1; then
6837 :
6838else
6839 ac_cv_header_stdc=no
6840fi
6841rm -f conftest*
d9898ee8 6842
8d138742 6843fi
d9898ee8 6844
8d138742
CE
6845if test $ac_cv_header_stdc = yes; then
6846 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6847 cat >conftest.$ac_ext <<_ACEOF
6848/* confdefs.h. */
6849_ACEOF
6850cat confdefs.h >>conftest.$ac_ext
6851cat >>conftest.$ac_ext <<_ACEOF
6852/* end confdefs.h. */
6853#include <stdlib.h>
d9898ee8 6854
8d138742
CE
6855_ACEOF
6856if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6857 $EGREP "free" >/dev/null 2>&1; then
6858 :
6859else
6860 ac_cv_header_stdc=no
6861fi
6862rm -f conftest*
d9898ee8 6863
8d138742 6864fi
d9898ee8 6865
8d138742
CE
6866if test $ac_cv_header_stdc = yes; then
6867 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6868 if test "$cross_compiling" = yes; then
6869 :
6870else
6871 cat >conftest.$ac_ext <<_ACEOF
6872/* confdefs.h. */
6873_ACEOF
6874cat confdefs.h >>conftest.$ac_ext
6875cat >>conftest.$ac_ext <<_ACEOF
6876/* end confdefs.h. */
6877#include <ctype.h>
6878#include <stdlib.h>
6879#if ((' ' & 0x0FF) == 0x020)
6880# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6881# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6882#else
6883# define ISLOWER(c) \
6884 (('a' <= (c) && (c) <= 'i') \
6885 || ('j' <= (c) && (c) <= 'r') \
6886 || ('s' <= (c) && (c) <= 'z'))
6887# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6888#endif
d9898ee8 6889
8d138742
CE
6890#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6891int
6892main ()
6893{
6894 int i;
6895 for (i = 0; i < 256; i++)
6896 if (XOR (islower (i), ISLOWER (i))
6897 || toupper (i) != TOUPPER (i))
6898 return 2;
6899 return 0;
6900}
6901_ACEOF
6902rm -f conftest$ac_exeext
6903if { (ac_try="$ac_link"
6904case "(($ac_try" in
6905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6906 *) ac_try_echo=$ac_try;;
6907esac
6908eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6909$as_echo "$ac_try_echo") >&5
6910 (eval "$ac_link") 2>&5
6911 ac_status=$?
6912 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6913 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6914 { (case "(($ac_try" in
6915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6916 *) ac_try_echo=$ac_try;;
6917esac
6918eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6919$as_echo "$ac_try_echo") >&5
6920 (eval "$ac_try") 2>&5
6921 ac_status=$?
6922 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6923 (exit $ac_status); }; }; then
6924 :
6925else
6926 $as_echo "$as_me: program exited with status $ac_status" >&5
6927$as_echo "$as_me: failed program was:" >&5
6928sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 6929
8d138742
CE
6930( exit $ac_status )
6931ac_cv_header_stdc=no
6932fi
6933rm -rf conftest.dSYM
6934rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6935fi
d9898ee8 6936
d9898ee8 6937
8d138742
CE
6938fi
6939fi
6940{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6941$as_echo "$ac_cv_header_stdc" >&6; }
6942if test $ac_cv_header_stdc = yes; then
6943
6944cat >>confdefs.h <<\_ACEOF
6945#define STDC_HEADERS 1
6946_ACEOF
d9898ee8 6947
8d138742 6948fi
d9898ee8 6949
8d138742 6950# On IRIX 5.3, sys/types and inttypes.h are conflicting.
d9898ee8 6951
d9898ee8 6952
d9898ee8 6953
ac40fd9e 6954
d9898ee8 6955
d9898ee8 6956
d9898ee8 6957
d9898ee8 6958
d9898ee8 6959
8d138742
CE
6960for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6961 inttypes.h stdint.h unistd.h
6962do
6963as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6964{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6965$as_echo_n "checking for $ac_header... " >&6; }
6966if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6967 $as_echo_n "(cached) " >&6
6968else
6969 cat >conftest.$ac_ext <<_ACEOF
6970/* confdefs.h. */
6971_ACEOF
6972cat confdefs.h >>conftest.$ac_ext
6973cat >>conftest.$ac_ext <<_ACEOF
6974/* end confdefs.h. */
6975$ac_includes_default
d9898ee8 6976
8d138742
CE
6977#include <$ac_header>
6978_ACEOF
6979rm -f conftest.$ac_objext
6980if { (ac_try="$ac_compile"
6981case "(($ac_try" in
6982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6983 *) ac_try_echo=$ac_try;;
6984esac
6985eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6986$as_echo "$ac_try_echo") >&5
6987 (eval "$ac_compile") 2>conftest.er1
6988 ac_status=$?
6989 grep -v '^ *+' conftest.er1 >conftest.err
6990 rm -f conftest.er1
6991 cat conftest.err >&5
6992 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6993 (exit $ac_status); } && {
6994 test -z "$ac_c_werror_flag" ||
6995 test ! -s conftest.err
6996 } && test -s conftest.$ac_objext; then
6997 eval "$as_ac_Header=yes"
6998else
6999 $as_echo "$as_me: failed program was:" >&5
7000sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 7001
8d138742
CE
7002 eval "$as_ac_Header=no"
7003fi
d9898ee8 7004
8d138742
CE
7005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7006fi
7007ac_res=`eval 'as_val=${'$as_ac_Header'}
7008 $as_echo "$as_val"'`
7009 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7010$as_echo "$ac_res" >&6; }
7011as_val=`eval 'as_val=${'$as_ac_Header'}
7012 $as_echo "$as_val"'`
7013 if test "x$as_val" = x""yes; then
7014 cat >>confdefs.h <<_ACEOF
7015#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7016_ACEOF
d9898ee8 7017
8d138742 7018fi
d9898ee8 7019
8d138742 7020done
d9898ee8 7021
d9898ee8 7022
ac40fd9e 7023
8d138742
CE
7024for ac_header in dlfcn.h
7025do
7026as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7027{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7028$as_echo_n "checking for $ac_header... " >&6; }
7029if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7030 $as_echo_n "(cached) " >&6
7031else
7032 cat >conftest.$ac_ext <<_ACEOF
7033/* confdefs.h. */
7034_ACEOF
7035cat confdefs.h >>conftest.$ac_ext
7036cat >>conftest.$ac_ext <<_ACEOF
7037/* end confdefs.h. */
7038$ac_includes_default
d9898ee8 7039
8d138742
CE
7040#include <$ac_header>
7041_ACEOF
7042rm -f conftest.$ac_objext
7043if { (ac_try="$ac_compile"
7044case "(($ac_try" in
7045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7046 *) ac_try_echo=$ac_try;;
7047esac
7048eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7049$as_echo "$ac_try_echo") >&5
7050 (eval "$ac_compile") 2>conftest.er1
7051 ac_status=$?
7052 grep -v '^ *+' conftest.er1 >conftest.err
7053 rm -f conftest.er1
7054 cat conftest.err >&5
7055 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7056 (exit $ac_status); } && {
7057 test -z "$ac_c_werror_flag" ||
7058 test ! -s conftest.err
7059 } && test -s conftest.$ac_objext; then
7060 eval "$as_ac_Header=yes"
7061else
7062 $as_echo "$as_me: failed program was:" >&5
7063sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 7064
8d138742
CE
7065 eval "$as_ac_Header=no"
7066fi
d9898ee8 7067
8d138742
CE
7068rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7069fi
7070ac_res=`eval 'as_val=${'$as_ac_Header'}
7071 $as_echo "$as_val"'`
7072 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7073$as_echo "$ac_res" >&6; }
7074as_val=`eval 'as_val=${'$as_ac_Header'}
7075 $as_echo "$as_val"'`
7076 if test "x$as_val" = x""yes; then
7077 cat >>confdefs.h <<_ACEOF
7078#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7079_ACEOF
d9898ee8 7080
8d138742 7081fi
d9898ee8 7082
8d138742 7083done
d9898ee8 7084
d9898ee8 7085
d9898ee8 7086
8d138742 7087# Set options
d9898ee8 7088
d9898ee8 7089
d9898ee8 7090
8d138742 7091 enable_dlopen=no
d9898ee8 7092
d9898ee8 7093
8d138742 7094 enable_win32_dll=no
d9898ee8 7095
d9898ee8 7096
8d138742
CE
7097 # Check whether --enable-shared was given.
7098if test "${enable_shared+set}" = set; then
7099 enableval=$enable_shared; p=${PACKAGE-default}
7100 case $enableval in
7101 yes) enable_shared=yes ;;
7102 no) enable_shared=no ;;
7103 *)
7104 enable_shared=no
7105 # Look at the argument we got. We use all the common list separators.
7106 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7107 for pkg in $enableval; do
7108 IFS="$lt_save_ifs"
7109 if test "X$pkg" = "X$p"; then
7110 enable_shared=yes
7111 fi
7112 done
7113 IFS="$lt_save_ifs"
7114 ;;
7115 esac
7116else
7117 enable_shared=yes
7118fi
d9898ee8 7119
d9898ee8 7120
d9898ee8 7121
ac40fd9e 7122
d9898ee8 7123
d9898ee8 7124
d9898ee8 7125
d9898ee8 7126
8d138742
CE
7127
7128 # Check whether --enable-static was given.
7129if test "${enable_static+set}" = set; then
7130 enableval=$enable_static; p=${PACKAGE-default}
7131 case $enableval in
7132 yes) enable_static=yes ;;
7133 no) enable_static=no ;;
7134 *)
7135 enable_static=no
7136 # Look at the argument we got. We use all the common list separators.
7137 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7138 for pkg in $enableval; do
7139 IFS="$lt_save_ifs"
7140 if test "X$pkg" = "X$p"; then
7141 enable_static=yes
7142 fi
7143 done
7144 IFS="$lt_save_ifs"
7145 ;;
d9898ee8 7146 esac
8d138742
CE
7147else
7148 enable_static=yes
7149fi
d9898ee8 7150
d9898ee8 7151
d9898ee8 7152
d9898ee8 7153
d9898ee8 7154
8d138742
CE
7155
7156
7157
7158
7159
7160# Check whether --with-pic was given.
7161if test "${with_pic+set}" = set; then
7162 withval=$with_pic; pic_mode="$withval"
d9898ee8 7163else
8d138742 7164 pic_mode=default
d9898ee8 7165fi
d9898ee8 7166
d9898ee8 7167
8d138742 7168test -z "$pic_mode" && pic_mode=default
d9898ee8 7169
8d138742
CE
7170
7171
7172
7173
7174
7175
7176 # Check whether --enable-fast-install was given.
7177if test "${enable_fast_install+set}" = set; then
7178 enableval=$enable_fast_install; p=${PACKAGE-default}
7179 case $enableval in
7180 yes) enable_fast_install=yes ;;
7181 no) enable_fast_install=no ;;
d9898ee8 7182 *)
8d138742
CE
7183 enable_fast_install=no
7184 # Look at the argument we got. We use all the common list separators.
7185 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7186 for pkg in $enableval; do
7187 IFS="$lt_save_ifs"
7188 if test "X$pkg" = "X$p"; then
7189 enable_fast_install=yes
7190 fi
7191 done
7192 IFS="$lt_save_ifs"
d9898ee8 7193 ;;
7194 esac
8d138742
CE
7195else
7196 enable_fast_install=yes
7197fi
d9898ee8 7198
d9898ee8 7199
d9898ee8 7200
d9898ee8 7201
d9898ee8 7202
d9898ee8 7203
d9898ee8 7204
d9898ee8 7205
d9898ee8 7206
d9898ee8 7207
d9898ee8 7208
8d138742
CE
7209# This can be used to rebuild libtool when needed
7210LIBTOOL_DEPS="$ltmain"
d9898ee8 7211
8d138742
CE
7212# Always use our own libtool.
7213LIBTOOL='$(SHELL) $(top_builddir)/libtool'
d9898ee8 7214
d9898ee8 7215
d9898ee8 7216
d9898ee8 7217
d9898ee8 7218
d9898ee8 7219
d9898ee8 7220
d9898ee8 7221
d9898ee8 7222
d9898ee8 7223
d9898ee8 7224
d9898ee8 7225
d9898ee8 7226
d9898ee8 7227
d9898ee8 7228
d9898ee8 7229
d9898ee8 7230
d9898ee8 7231
d9898ee8 7232
d9898ee8 7233
d9898ee8 7234
d9898ee8 7235
d9898ee8 7236
d9898ee8 7237
d9898ee8 7238
8d138742 7239test -z "$LN_S" && LN_S="ln -s"
d9898ee8 7240
d9898ee8 7241
d9898ee8 7242
d9898ee8 7243
d9898ee8 7244
d9898ee8 7245
d9898ee8 7246
d9898ee8 7247
d9898ee8 7248
d9898ee8 7249
d9898ee8 7250
d9898ee8 7251
d9898ee8 7252
d9898ee8 7253
8d138742
CE
7254if test -n "${ZSH_VERSION+set}" ; then
7255 setopt NO_GLOB_SUBST
7256fi
d9898ee8 7257
8d138742
CE
7258{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
7259$as_echo_n "checking for objdir... " >&6; }
7260if test "${lt_cv_objdir+set}" = set; then
7261 $as_echo_n "(cached) " >&6
7262else
7263 rm -f .libs 2>/dev/null
7264mkdir .libs 2>/dev/null
7265if test -d .libs; then
7266 lt_cv_objdir=.libs
7267else
7268 # MS-DOS does not allow filenames that begin with a dot.
7269 lt_cv_objdir=_libs
7270fi
7271rmdir .libs 2>/dev/null
7272fi
7273{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7274$as_echo "$lt_cv_objdir" >&6; }
7275objdir=$lt_cv_objdir
d9898ee8 7276
d9898ee8 7277
d9898ee8 7278
d9898ee8 7279
d9898ee8 7280
8d138742
CE
7281cat >>confdefs.h <<_ACEOF
7282#define LT_OBJDIR "$lt_cv_objdir/"
7283_ACEOF
d9898ee8 7284
d9898ee8 7285
d9898ee8 7286
d9898ee8 7287
d9898ee8 7288
d9898ee8 7289
d9898ee8 7290
d9898ee8 7291
d9898ee8 7292
d9898ee8 7293
d9898ee8 7294
d9898ee8 7295
d9898ee8 7296
d9898ee8 7297
d9898ee8 7298
d9898ee8 7299
d9898ee8 7300
8d138742
CE
7301case $host_os in
7302aix3*)
7303 # AIX sometimes has problems with the GCC collect2 program. For some
7304 # reason, if we set the COLLECT_NAMES environment variable, the problems
7305 # vanish in a puff of smoke.
7306 if test "X${COLLECT_NAMES+set}" != Xset; then
7307 COLLECT_NAMES=
7308 export COLLECT_NAMES
7309 fi
7310 ;;
7311esac
d9898ee8 7312
8d138742
CE
7313# Sed substitution that helps us do robust quoting. It backslashifies
7314# metacharacters that are still active within double-quoted strings.
7315sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
d9898ee8 7316
8d138742
CE
7317# Same as above, but do not quote variable references.
7318double_quote_subst='s/\(["`\\]\)/\\\1/g'
d9898ee8 7319
8d138742
CE
7320# Sed substitution to delay expansion of an escaped shell variable in a
7321# double_quote_subst'ed string.
7322delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
d9898ee8 7323
8d138742
CE
7324# Sed substitution to delay expansion of an escaped single quote.
7325delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
d9898ee8 7326
8d138742
CE
7327# Sed substitution to avoid accidental globbing in evaled expressions
7328no_glob_subst='s/\*/\\\*/g'
d9898ee8 7329
8d138742
CE
7330# Global variables:
7331ofile=libtool
7332can_build_shared=yes
d9898ee8 7333
8d138742
CE
7334# All known linkers require a `.a' archive for static linking (except MSVC,
7335# which needs '.lib').
7336libext=a
d9898ee8 7337
8d138742 7338with_gnu_ld="$lt_cv_prog_gnu_ld"
d9898ee8 7339
8d138742
CE
7340old_CC="$CC"
7341old_CFLAGS="$CFLAGS"
d9898ee8 7342
8d138742
CE
7343# Set sane defaults for various variables
7344test -z "$CC" && CC=cc
7345test -z "$LTCC" && LTCC=$CC
7346test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7347test -z "$LD" && LD=ld
7348test -z "$ac_objext" && ac_objext=o
d9898ee8 7349
8d138742
CE
7350for cc_temp in $compiler""; do
7351 case $cc_temp in
7352 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7353 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7354 \-*) ;;
7355 *) break;;
7356 esac
7357done
7358cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
d9898ee8 7359
d9898ee8 7360
8d138742
CE
7361# Only perform the check for file, if the check method requires it
7362test -z "$MAGIC_CMD" && MAGIC_CMD=file
7363case $deplibs_check_method in
7364file_magic*)
7365 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7366 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7367$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7368if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7369 $as_echo_n "(cached) " >&6
7370else
7371 case $MAGIC_CMD in
7372[\\/*] | ?:[\\/]*)
7373 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7374 ;;
7375*)
7376 lt_save_MAGIC_CMD="$MAGIC_CMD"
7377 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7378 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7379 for ac_dir in $ac_dummy; do
7380 IFS="$lt_save_ifs"
7381 test -z "$ac_dir" && ac_dir=.
7382 if test -f $ac_dir/${ac_tool_prefix}file; then
7383 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7384 if test -n "$file_magic_test_file"; then
7385 case $deplibs_check_method in
7386 "file_magic "*)
7387 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7388 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7389 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7390 $EGREP "$file_magic_regex" > /dev/null; then
7391 :
7392 else
7393 cat <<_LT_EOF 1>&2
d9898ee8 7394
8d138742
CE
7395*** Warning: the command libtool uses to detect shared libraries,
7396*** $file_magic_cmd, produces output that libtool cannot recognize.
7397*** The result is that libtool may fail to recognize shared libraries
7398*** as such. This will affect the creation of libtool libraries that
7399*** depend on shared libraries, but programs linked with such libtool
7400*** libraries will work regardless of this problem. Nevertheless, you
7401*** may want to report the problem to your system manager and/or to
7402*** bug-libtool@gnu.org
d9898ee8 7403
8d138742
CE
7404_LT_EOF
7405 fi ;;
7406 esac
7407 fi
7408 break
7409 fi
7410 done
7411 IFS="$lt_save_ifs"
7412 MAGIC_CMD="$lt_save_MAGIC_CMD"
7413 ;;
7414esac
7415fi
d9898ee8 7416
8d138742
CE
7417MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7418if test -n "$MAGIC_CMD"; then
7419 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7420$as_echo "$MAGIC_CMD" >&6; }
7421else
7422 { $as_echo "$as_me:$LINENO: result: no" >&5
7423$as_echo "no" >&6; }
7424fi
d9898ee8 7425
d9898ee8 7426
d9898ee8 7427
d9898ee8 7428
d9898ee8 7429
8d138742
CE
7430if test -z "$lt_cv_path_MAGIC_CMD"; then
7431 if test -n "$ac_tool_prefix"; then
7432 { $as_echo "$as_me:$LINENO: checking for file" >&5
7433$as_echo_n "checking for file... " >&6; }
7434if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7435 $as_echo_n "(cached) " >&6
7436else
7437 case $MAGIC_CMD in
7438[\\/*] | ?:[\\/]*)
7439 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7440 ;;
7441*)
7442 lt_save_MAGIC_CMD="$MAGIC_CMD"
7443 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7444 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7445 for ac_dir in $ac_dummy; do
7446 IFS="$lt_save_ifs"
7447 test -z "$ac_dir" && ac_dir=.
7448 if test -f $ac_dir/file; then
7449 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7450 if test -n "$file_magic_test_file"; then
7451 case $deplibs_check_method in
7452 "file_magic "*)
7453 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7454 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7455 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7456 $EGREP "$file_magic_regex" > /dev/null; then
7457 :
7458 else
7459 cat <<_LT_EOF 1>&2
d9898ee8 7460
8d138742
CE
7461*** Warning: the command libtool uses to detect shared libraries,
7462*** $file_magic_cmd, produces output that libtool cannot recognize.
7463*** The result is that libtool may fail to recognize shared libraries
7464*** as such. This will affect the creation of libtool libraries that
7465*** depend on shared libraries, but programs linked with such libtool
7466*** libraries will work regardless of this problem. Nevertheless, you
7467*** may want to report the problem to your system manager and/or to
7468*** bug-libtool@gnu.org
d9898ee8 7469
8d138742
CE
7470_LT_EOF
7471 fi ;;
7472 esac
7473 fi
7474 break
7475 fi
7476 done
7477 IFS="$lt_save_ifs"
7478 MAGIC_CMD="$lt_save_MAGIC_CMD"
7479 ;;
7480esac
7481fi
d9898ee8 7482
8d138742
CE
7483MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7484if test -n "$MAGIC_CMD"; then
7485 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7486$as_echo "$MAGIC_CMD" >&6; }
d9898ee8 7487else
8d138742
CE
7488 { $as_echo "$as_me:$LINENO: result: no" >&5
7489$as_echo "no" >&6; }
7490fi
7491
7492
7493 else
7494 MAGIC_CMD=:
d9898ee8 7495 fi
7496fi
7497
8d138742
CE
7498 fi
7499 ;;
7500esac
7501
7502# Use C for the default configuration in the libtool script
d9898ee8 7503
8d138742 7504lt_save_CC="$CC"
d9898ee8 7505ac_ext=c
7506ac_cpp='$CPP $CPPFLAGS'
7507ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7508ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7509ac_compiler_gnu=$ac_cv_c_compiler_gnu
7510
d9898ee8 7511
8d138742
CE
7512# Source file extension for C test sources.
7513ac_ext=c
d9898ee8 7514
8d138742 7515# Object file extension for compiled C test sources.
d9898ee8 7516objext=o
8d138742 7517objext=$objext
d9898ee8 7518
7519# Code to be used in simple compile tests
8d138742 7520lt_simple_compile_test_code="int some_variable = 0;"
d9898ee8 7521
7522# Code to be used in simple link tests
8d138742
CE
7523lt_simple_link_test_code='int main(){return(0);}'
7524
7525
7526
7527
7528
d9898ee8 7529
d9898ee8 7530
7531# If no C compiler was specified, use CC.
7532LTCC=${LTCC-"$CC"}
7533
7534# If no C compiler flags were specified, use CFLAGS.
7535LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7536
7537# Allow CC to be a program name with arguments.
7538compiler=$CC
7539
8d138742
CE
7540# Save the default compiler, since it gets overwritten when the other
7541# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7542compiler_DEFAULT=$CC
d9898ee8 7543
7544# save warnings/boilerplate of simple test code
7545ac_outfile=conftest.$ac_objext
ac40fd9e 7546echo "$lt_simple_compile_test_code" >conftest.$ac_ext
d9898ee8 7547eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7548_lt_compiler_boilerplate=`cat conftest.err`
8d138742 7549$RM conftest*
d9898ee8 7550
7551ac_outfile=conftest.$ac_objext
ac40fd9e 7552echo "$lt_simple_link_test_code" >conftest.$ac_ext
8d138742
CE
7553eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7554_lt_linker_boilerplate=`cat conftest.err`
7555$RM -r conftest*
d9898ee8 7556
d9898ee8 7557
8d138742 7558if test -n "$compiler"; then
d9898ee8 7559
8d138742 7560lt_prog_compiler_no_builtin_flag=
d9898ee8 7561
7562if test "$GCC" = yes; then
8d138742 7563 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
d9898ee8 7564
8d138742
CE
7565 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7566$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
d9898ee8 7567if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8d138742 7568 $as_echo_n "(cached) " >&6
d9898ee8 7569else
7570 lt_cv_prog_compiler_rtti_exceptions=no
8d138742 7571 ac_outfile=conftest.$ac_objext
ac40fd9e 7572 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 7573 lt_compiler_flag="-fno-rtti -fno-exceptions"
7574 # Insert the option either (1) after the last *FLAGS variable, or
7575 # (2) before a word containing "conftest.", or (3) at the end.
7576 # Note that $ac_compile itself does not contain backslashes and begins
7577 # with a dollar sign (not a hyphen), so the echo should work correctly.
7578 # The option is referenced via a variable to avoid confusing sed.
7579 lt_compile=`echo "$ac_compile" | $SED \
7580 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7581 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7582 -e 's:$: $lt_compiler_flag:'`
8d138742 7583 (eval echo "\"\$as_me:7583: $lt_compile\"" >&5)
d9898ee8 7584 (eval "$lt_compile" 2>conftest.err)
7585 ac_status=$?
7586 cat conftest.err >&5
8d138742 7587 echo "$as_me:7587: \$? = $ac_status" >&5
d9898ee8 7588 if (exit $ac_status) && test -s "$ac_outfile"; then
7589 # The compiler can only warn and ignore the option if not recognized
7590 # So say no if there are warnings other than the usual output.
8d138742 7591 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
d9898ee8 7592 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7593 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7594 lt_cv_prog_compiler_rtti_exceptions=yes
7595 fi
7596 fi
8d138742 7597 $RM conftest*
d9898ee8 7598
7599fi
8d138742
CE
7600{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7601$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
d9898ee8 7602
7603if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8d138742 7604 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
d9898ee8 7605else
7606 :
7607fi
7608
7609fi
7610
d9898ee8 7611
8d138742
CE
7612
7613
7614
7615
7616 lt_prog_compiler_wl=
7617lt_prog_compiler_pic=
7618lt_prog_compiler_static=
7619
7620{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7621$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
d9898ee8 7622
7623 if test "$GCC" = yes; then
8d138742
CE
7624 lt_prog_compiler_wl='-Wl,'
7625 lt_prog_compiler_static='-static'
d9898ee8 7626
7627 case $host_os in
7628 aix*)
7629 # All AIX code is PIC.
7630 if test "$host_cpu" = ia64; then
7631 # AIX 5 now supports IA64 processor
8d138742 7632 lt_prog_compiler_static='-Bstatic'
d9898ee8 7633 fi
7634 ;;
7635
7636 amigaos*)
8d138742
CE
7637 case $host_cpu in
7638 powerpc)
7639 # see comment about AmigaOS4 .so support
7640 lt_prog_compiler_pic='-fPIC'
7641 ;;
7642 m68k)
7643 # FIXME: we need at least 68020 code to build shared libraries, but
7644 # adding the `-m68020' flag to GCC prevents building anything better,
7645 # like `-m68040'.
7646 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7647 ;;
7648 esac
d9898ee8 7649 ;;
7650
ac40fd9e 7651 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
d9898ee8 7652 # PIC is the default for these OSes.
7653 ;;
7654
8d138742 7655 mingw* | cygwin* | pw32* | os2* | cegcc*)
d9898ee8 7656 # This hack is so that the source file can tell whether it is being
7657 # built for inclusion in a dll (and should export symbols for example).
ac40fd9e 7658 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7659 # (--disable-auto-import) libraries
8d138742 7660 lt_prog_compiler_pic='-DDLL_EXPORT'
d9898ee8 7661 ;;
7662
7663 darwin* | rhapsody*)
7664 # PIC is the default on this platform
7665 # Common symbols not allowed in MH_DYLIB files
8d138742
CE
7666 lt_prog_compiler_pic='-fno-common'
7667 ;;
7668
7669 hpux*)
7670 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7671 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7672 # sets the default TLS model and affects inlining.
7673 case $host_cpu in
7674 hppa*64*)
7675 # +Z the default
7676 ;;
7677 *)
7678 lt_prog_compiler_pic='-fPIC'
7679 ;;
7680 esac
d9898ee8 7681 ;;
7682
ac40fd9e 7683 interix[3-9]*)
d9898ee8 7684 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7685 # Instead, we relocate shared libraries at runtime.
7686 ;;
7687
7688 msdosdjgpp*)
7689 # Just because we use GCC doesn't mean we suddenly get shared libraries
7690 # on systems that don't support them.
8d138742 7691 lt_prog_compiler_can_build_shared=no
d9898ee8 7692 enable_shared=no
7693 ;;
7694
8d138742
CE
7695 *nto* | *qnx*)
7696 # QNX uses GNU C++, but need to define -shared option too, otherwise
7697 # it will coredump.
7698 lt_prog_compiler_pic='-fPIC -shared'
7699 ;;
7700
d9898ee8 7701 sysv4*MP*)
7702 if test -d /usr/nec; then
8d138742 7703 lt_prog_compiler_pic=-Kconform_pic
d9898ee8 7704 fi
7705 ;;
7706
d9898ee8 7707 *)
8d138742 7708 lt_prog_compiler_pic='-fPIC'
d9898ee8 7709 ;;
7710 esac
7711 else
7712 # PORTME Check for flag to pass linker flags through the system compiler.
7713 case $host_os in
7714 aix*)
8d138742 7715 lt_prog_compiler_wl='-Wl,'
d9898ee8 7716 if test "$host_cpu" = ia64; then
7717 # AIX 5 now supports IA64 processor
8d138742 7718 lt_prog_compiler_static='-Bstatic'
d9898ee8 7719 else
8d138742 7720 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
d9898ee8 7721 fi
7722 ;;
d9898ee8 7723
8d138742 7724 mingw* | cygwin* | pw32* | os2* | cegcc*)
d9898ee8 7725 # This hack is so that the source file can tell whether it is being
7726 # built for inclusion in a dll (and should export symbols for example).
8d138742 7727 lt_prog_compiler_pic='-DDLL_EXPORT'
d9898ee8 7728 ;;
7729
7730 hpux9* | hpux10* | hpux11*)
8d138742 7731 lt_prog_compiler_wl='-Wl,'
d9898ee8 7732 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7733 # not for PA HP-UX.
7734 case $host_cpu in
7735 hppa*64*|ia64*)
7736 # +Z the default
7737 ;;
7738 *)
8d138742 7739 lt_prog_compiler_pic='+Z'
d9898ee8 7740 ;;
7741 esac
7742 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8d138742 7743 lt_prog_compiler_static='${wl}-a ${wl}archive'
d9898ee8 7744 ;;
7745
7746 irix5* | irix6* | nonstopux*)
8d138742 7747 lt_prog_compiler_wl='-Wl,'
d9898ee8 7748 # PIC (with -KPIC) is the default.
8d138742 7749 lt_prog_compiler_static='-non_shared'
d9898ee8 7750 ;;
7751
ac40fd9e 7752 linux* | k*bsd*-gnu)
d9898ee8 7753 case $cc_basename in
8d138742
CE
7754 # old Intel for x86_64 which still supported -KPIC.
7755 ecc*)
7756 lt_prog_compiler_wl='-Wl,'
7757 lt_prog_compiler_pic='-KPIC'
7758 lt_prog_compiler_static='-static'
7759 ;;
7760 # icc used to be incompatible with GCC.
7761 # ICC 10 doesn't accept -KPIC any more.
7762 icc* | ifort*)
7763 lt_prog_compiler_wl='-Wl,'
7764 lt_prog_compiler_pic='-fPIC'
7765 lt_prog_compiler_static='-static'
d9898ee8 7766 ;;
8d138742
CE
7767 # Lahey Fortran 8.1.
7768 lf95*)
7769 lt_prog_compiler_wl='-Wl,'
7770 lt_prog_compiler_pic='--shared'
7771 lt_prog_compiler_static='--static'
7772 ;;
d9898ee8 7773 pgcc* | pgf77* | pgf90* | pgf95*)
7774 # Portland Group compilers (*not* the Pentium gcc compiler,
7775 # which looks to be a dead project)
8d138742
CE
7776 lt_prog_compiler_wl='-Wl,'
7777 lt_prog_compiler_pic='-fpic'
7778 lt_prog_compiler_static='-Bstatic'
d9898ee8 7779 ;;
7780 ccc*)
8d138742 7781 lt_prog_compiler_wl='-Wl,'
d9898ee8 7782 # All Alpha code is PIC.
8d138742 7783 lt_prog_compiler_static='-non_shared'
d9898ee8 7784 ;;
8d138742
CE
7785 xl*)
7786 # IBM XL C 8.0/Fortran 10.1 on PPC
7787 lt_prog_compiler_wl='-Wl,'
7788 lt_prog_compiler_pic='-qpic'
7789 lt_prog_compiler_static='-qstaticlink'
7790 ;;
ac40fd9e 7791 *)
8d138742 7792 case `$CC -V 2>&1 | sed 5q` in
ac40fd9e 7793 *Sun\ C*)
7794 # Sun C 5.9
8d138742
CE
7795 lt_prog_compiler_pic='-KPIC'
7796 lt_prog_compiler_static='-Bstatic'
7797 lt_prog_compiler_wl='-Wl,'
ac40fd9e 7798 ;;
7799 *Sun\ F*)
7800 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8d138742
CE
7801 lt_prog_compiler_pic='-KPIC'
7802 lt_prog_compiler_static='-Bstatic'
7803 lt_prog_compiler_wl=''
ac40fd9e 7804 ;;
7805 esac
7806 ;;
d9898ee8 7807 esac
7808 ;;
7809
8d138742
CE
7810 newsos6)
7811 lt_prog_compiler_pic='-KPIC'
7812 lt_prog_compiler_static='-Bstatic'
7813 ;;
7814
7815 *nto* | *qnx*)
7816 # QNX uses GNU C++, but need to define -shared option too, otherwise
7817 # it will coredump.
7818 lt_prog_compiler_pic='-fPIC -shared'
7819 ;;
7820
d9898ee8 7821 osf3* | osf4* | osf5*)
8d138742 7822 lt_prog_compiler_wl='-Wl,'
d9898ee8 7823 # All OSF/1 code is PIC.
8d138742 7824 lt_prog_compiler_static='-non_shared'
d9898ee8 7825 ;;
7826
ac40fd9e 7827 rdos*)
8d138742 7828 lt_prog_compiler_static='-non_shared'
ac40fd9e 7829 ;;
7830
d9898ee8 7831 solaris*)
8d138742
CE
7832 lt_prog_compiler_pic='-KPIC'
7833 lt_prog_compiler_static='-Bstatic'
d9898ee8 7834 case $cc_basename in
7835 f77* | f90* | f95*)
8d138742 7836 lt_prog_compiler_wl='-Qoption ld ';;
d9898ee8 7837 *)
8d138742 7838 lt_prog_compiler_wl='-Wl,';;
d9898ee8 7839 esac
7840 ;;
7841
7842 sunos4*)
8d138742
CE
7843 lt_prog_compiler_wl='-Qoption ld '
7844 lt_prog_compiler_pic='-PIC'
7845 lt_prog_compiler_static='-Bstatic'
d9898ee8 7846 ;;
7847
7848 sysv4 | sysv4.2uw2* | sysv4.3*)
8d138742
CE
7849 lt_prog_compiler_wl='-Wl,'
7850 lt_prog_compiler_pic='-KPIC'
7851 lt_prog_compiler_static='-Bstatic'
d9898ee8 7852 ;;
7853
7854 sysv4*MP*)
7855 if test -d /usr/nec ;then
8d138742
CE
7856 lt_prog_compiler_pic='-Kconform_pic'
7857 lt_prog_compiler_static='-Bstatic'
d9898ee8 7858 fi
7859 ;;
7860
7861 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8d138742
CE
7862 lt_prog_compiler_wl='-Wl,'
7863 lt_prog_compiler_pic='-KPIC'
7864 lt_prog_compiler_static='-Bstatic'
d9898ee8 7865 ;;
7866
7867 unicos*)
8d138742
CE
7868 lt_prog_compiler_wl='-Wl,'
7869 lt_prog_compiler_can_build_shared=no
d9898ee8 7870 ;;
7871
7872 uts4*)
8d138742
CE
7873 lt_prog_compiler_pic='-pic'
7874 lt_prog_compiler_static='-Bstatic'
d9898ee8 7875 ;;
7876
7877 *)
8d138742 7878 lt_prog_compiler_can_build_shared=no
d9898ee8 7879 ;;
7880 esac
7881 fi
7882
8d138742
CE
7883case $host_os in
7884 # For platforms which do not support PIC, -DPIC is meaningless:
7885 *djgpp*)
7886 lt_prog_compiler_pic=
7887 ;;
7888 *)
7889 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7890 ;;
7891esac
7892{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7893$as_echo "$lt_prog_compiler_pic" >&6; }
7894
7895
7896
7897
7898
d9898ee8 7899
7900#
7901# Check to make sure the PIC flag actually works.
7902#
8d138742
CE
7903if test -n "$lt_prog_compiler_pic"; then
7904 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7905$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7906if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7907 $as_echo_n "(cached) " >&6
d9898ee8 7908else
8d138742
CE
7909 lt_cv_prog_compiler_pic_works=no
7910 ac_outfile=conftest.$ac_objext
ac40fd9e 7911 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8d138742 7912 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
d9898ee8 7913 # Insert the option either (1) after the last *FLAGS variable, or
7914 # (2) before a word containing "conftest.", or (3) at the end.
7915 # Note that $ac_compile itself does not contain backslashes and begins
7916 # with a dollar sign (not a hyphen), so the echo should work correctly.
7917 # The option is referenced via a variable to avoid confusing sed.
7918 lt_compile=`echo "$ac_compile" | $SED \
7919 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7920 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7921 -e 's:$: $lt_compiler_flag:'`
8d138742 7922 (eval echo "\"\$as_me:7922: $lt_compile\"" >&5)
d9898ee8 7923 (eval "$lt_compile" 2>conftest.err)
7924 ac_status=$?
7925 cat conftest.err >&5
8d138742 7926 echo "$as_me:7926: \$? = $ac_status" >&5
d9898ee8 7927 if (exit $ac_status) && test -s "$ac_outfile"; then
7928 # The compiler can only warn and ignore the option if not recognized
7929 # So say no if there are warnings other than the usual output.
8d138742 7930 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
d9898ee8 7931 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7932 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8d138742 7933 lt_cv_prog_compiler_pic_works=yes
d9898ee8 7934 fi
7935 fi
8d138742 7936 $RM conftest*
d9898ee8 7937
7938fi
8d138742
CE
7939{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7940$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
d9898ee8 7941
8d138742
CE
7942if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7943 case $lt_prog_compiler_pic in
d9898ee8 7944 "" | " "*) ;;
8d138742 7945 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
d9898ee8 7946 esac
7947else
8d138742
CE
7948 lt_prog_compiler_pic=
7949 lt_prog_compiler_can_build_shared=no
d9898ee8 7950fi
7951
7952fi
8d138742
CE
7953
7954
7955
7956
7957
d9898ee8 7958
7959#
7960# Check to make sure the static flag actually works.
7961#
8d138742
CE
7962wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7963{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7964$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7965if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7966 $as_echo_n "(cached) " >&6
d9898ee8 7967else
8d138742 7968 lt_cv_prog_compiler_static_works=no
d9898ee8 7969 save_LDFLAGS="$LDFLAGS"
7970 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
ac40fd9e 7971 echo "$lt_simple_link_test_code" > conftest.$ac_ext
d9898ee8 7972 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7973 # The linker can only warn and ignore the option if not recognized
7974 # So say no if there are warnings
7975 if test -s conftest.err; then
7976 # Append any errors to the config.log.
7977 cat conftest.err 1>&5
8d138742 7978 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
d9898ee8 7979 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7980 if diff conftest.exp conftest.er2 >/dev/null; then
8d138742 7981 lt_cv_prog_compiler_static_works=yes
d9898ee8 7982 fi
7983 else
8d138742 7984 lt_cv_prog_compiler_static_works=yes
d9898ee8 7985 fi
7986 fi
8d138742 7987 $RM -r conftest*
d9898ee8 7988 LDFLAGS="$save_LDFLAGS"
7989
7990fi
8d138742
CE
7991{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7992$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
d9898ee8 7993
8d138742 7994if test x"$lt_cv_prog_compiler_static_works" = xyes; then
d9898ee8 7995 :
7996else
8d138742
CE
7997 lt_prog_compiler_static=
7998fi
7999
8000
8001
8002
8003
8004
8005
8006 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8007$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8008if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8009 $as_echo_n "(cached) " >&6
8010else
8011 lt_cv_prog_compiler_c_o=no
8012 $RM -r conftest 2>/dev/null
8013 mkdir conftest
8014 cd conftest
8015 mkdir out
8016 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8017
8018 lt_compiler_flag="-o out/conftest2.$ac_objext"
8019 # Insert the option either (1) after the last *FLAGS variable, or
8020 # (2) before a word containing "conftest.", or (3) at the end.
8021 # Note that $ac_compile itself does not contain backslashes and begins
8022 # with a dollar sign (not a hyphen), so the echo should work correctly.
8023 lt_compile=`echo "$ac_compile" | $SED \
8024 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8025 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8026 -e 's:$: $lt_compiler_flag:'`
8027 (eval echo "\"\$as_me:8027: $lt_compile\"" >&5)
8028 (eval "$lt_compile" 2>out/conftest.err)
8029 ac_status=$?
8030 cat out/conftest.err >&5
8031 echo "$as_me:8031: \$? = $ac_status" >&5
8032 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8033 then
8034 # The compiler can only warn and ignore the option if not recognized
8035 # So say no if there are warnings
8036 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8037 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8038 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8039 lt_cv_prog_compiler_c_o=yes
8040 fi
8041 fi
8042 chmod u+w . 2>&5
8043 $RM conftest*
8044 # SGI C++ compiler will create directory out/ii_files/ for
8045 # template instantiation
8046 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8047 $RM out/* && rmdir out
8048 cd ..
8049 $RM -r conftest
8050 $RM conftest*
8051
d9898ee8 8052fi
8d138742
CE
8053{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8054$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
d9898ee8 8055
8056
8d138742
CE
8057
8058
8059
8060
8061 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8062$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8063if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8064 $as_echo_n "(cached) " >&6
d9898ee8 8065else
8d138742
CE
8066 lt_cv_prog_compiler_c_o=no
8067 $RM -r conftest 2>/dev/null
d9898ee8 8068 mkdir conftest
8069 cd conftest
8070 mkdir out
ac40fd9e 8071 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 8072
8073 lt_compiler_flag="-o out/conftest2.$ac_objext"
8074 # Insert the option either (1) after the last *FLAGS variable, or
8075 # (2) before a word containing "conftest.", or (3) at the end.
8076 # Note that $ac_compile itself does not contain backslashes and begins
8077 # with a dollar sign (not a hyphen), so the echo should work correctly.
8078 lt_compile=`echo "$ac_compile" | $SED \
8079 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8080 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8081 -e 's:$: $lt_compiler_flag:'`
8d138742 8082 (eval echo "\"\$as_me:8082: $lt_compile\"" >&5)
d9898ee8 8083 (eval "$lt_compile" 2>out/conftest.err)
8084 ac_status=$?
8085 cat out/conftest.err >&5
8d138742 8086 echo "$as_me:8086: \$? = $ac_status" >&5
d9898ee8 8087 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8088 then
8089 # The compiler can only warn and ignore the option if not recognized
8090 # So say no if there are warnings
8d138742 8091 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
d9898ee8 8092 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8093 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8d138742 8094 lt_cv_prog_compiler_c_o=yes
d9898ee8 8095 fi
8096 fi
8097 chmod u+w . 2>&5
8d138742 8098 $RM conftest*
d9898ee8 8099 # SGI C++ compiler will create directory out/ii_files/ for
8100 # template instantiation
8d138742
CE
8101 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8102 $RM out/* && rmdir out
d9898ee8 8103 cd ..
8d138742
CE
8104 $RM -r conftest
8105 $RM conftest*
d9898ee8 8106
8107fi
8d138742
CE
8108{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8109$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8110
8111
d9898ee8 8112
8113
8114hard_links="nottested"
8d138742 8115if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
d9898ee8 8116 # do not overwrite the value of need_locks provided by the user
8d138742
CE
8117 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8118$as_echo_n "checking if we can lock with hard links... " >&6; }
d9898ee8 8119 hard_links=yes
8d138742 8120 $RM conftest*
d9898ee8 8121 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8122 touch conftest.a
8123 ln conftest.a conftest.b 2>&5 || hard_links=no
8124 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8d138742
CE
8125 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8126$as_echo "$hard_links" >&6; }
d9898ee8 8127 if test "$hard_links" = no; then
8d138742
CE
8128 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8129$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
d9898ee8 8130 need_locks=warn
8131 fi
8132else
8133 need_locks=no
8134fi
8135
8d138742
CE
8136
8137
8138
8139
8140
8141 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8142$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
d9898ee8 8143
8144 runpath_var=
8d138742
CE
8145 allow_undefined_flag=
8146 always_export_symbols=no
8147 archive_cmds=
8148 archive_expsym_cmds=
8149 compiler_needs_object=no
8150 enable_shared_with_static_runtimes=no
8151 export_dynamic_flag_spec=
8152 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8153 hardcode_automatic=no
8154 hardcode_direct=no
8155 hardcode_direct_absolute=no
8156 hardcode_libdir_flag_spec=
8157 hardcode_libdir_flag_spec_ld=
8158 hardcode_libdir_separator=
8159 hardcode_minus_L=no
8160 hardcode_shlibpath_var=unsupported
8161 inherit_rpath=no
8162 link_all_deplibs=unknown
8163 module_cmds=
8164 module_expsym_cmds=
8165 old_archive_from_new_cmds=
8166 old_archive_from_expsyms_cmds=
8167 thread_safe_flag_spec=
8168 whole_archive_flag_spec=
d9898ee8 8169 # include_expsyms should be a list of space-separated symbols to be *always*
8170 # included in the symbol list
8d138742 8171 include_expsyms=
d9898ee8 8172 # exclude_expsyms can be an extended regexp of symbols to exclude
8173 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8174 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8175 # as well as any symbol that contains `d'.
8d138742 8176 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
d9898ee8 8177 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8178 # platforms (ab)use it in PIC code, but their linkers get confused if
8179 # the symbol is explicitly referenced. Since portable code cannot
8180 # rely on this symbol name, it's probably fine to never include it in
8181 # preloaded symbol tables.
8d138742 8182 # Exclude shared library initialization/finalization symbols.
d9898ee8 8183 extract_expsyms_cmds=
d9898ee8 8184
8185 case $host_os in
8d138742 8186 cygwin* | mingw* | pw32* | cegcc*)
d9898ee8 8187 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8188 # When not using gcc, we currently assume that we are using
8189 # Microsoft Visual C++.
8190 if test "$GCC" != yes; then
8191 with_gnu_ld=no
8192 fi
8193 ;;
8194 interix*)
8195 # we just hope/assume this is gcc and not c89 (= MSVC++)
8196 with_gnu_ld=yes
8197 ;;
8198 openbsd*)
8199 with_gnu_ld=no
8200 ;;
8201 esac
8202
8d138742 8203 ld_shlibs=yes
d9898ee8 8204 if test "$with_gnu_ld" = yes; then
8205 # If archive_cmds runs LD, not CC, wlarc should be empty
8206 wlarc='${wl}'
8207
8208 # Set some defaults for GNU ld with shared library support. These
8209 # are reset later if shared libraries are not supported. Putting them
8210 # here allows them to be overridden if necessary.
8211 runpath_var=LD_RUN_PATH
8d138742
CE
8212 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8213 export_dynamic_flag_spec='${wl}--export-dynamic'
d9898ee8 8214 # ancient GNU ld didn't support --whole-archive et. al.
8d138742
CE
8215 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8216 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8217 else
8218 whole_archive_flag_spec=
d9898ee8 8219 fi
8220 supports_anon_versioning=no
8d138742 8221 case `$LD -v 2>&1` in
d9898ee8 8222 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8223 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8224 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8225 *\ 2.11.*) ;; # other 2.11 versions
8226 *) supports_anon_versioning=yes ;;
8227 esac
8228
8229 # See if GNU ld supports shared libraries.
8230 case $host_os in
8d138742 8231 aix[3-9]*)
d9898ee8 8232 # On AIX/PPC, the GNU linker is very broken
8233 if test "$host_cpu" != ia64; then
8d138742
CE
8234 ld_shlibs=no
8235 cat <<_LT_EOF 1>&2
d9898ee8 8236
8237*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8238*** to be unable to reliably create shared libraries on AIX.
8239*** Therefore, libtool is disabling shared libraries support. If you
8240*** really care for shared libraries, you may want to modify your PATH
8241*** so that a non-GNU linker is found, and then restart.
8242
8d138742 8243_LT_EOF
d9898ee8 8244 fi
8245 ;;
8246
8247 amigaos*)
8d138742
CE
8248 case $host_cpu in
8249 powerpc)
8250 # see comment about AmigaOS4 .so support
8251 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8252 archive_expsym_cmds=''
8253 ;;
8254 m68k)
8255 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)'
8256 hardcode_libdir_flag_spec='-L$libdir'
8257 hardcode_minus_L=yes
8258 ;;
8259 esac
d9898ee8 8260 ;;
8261
8262 beos*)
8d138742
CE
8263 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8264 allow_undefined_flag=unsupported
d9898ee8 8265 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8266 # support --undefined. This deserves some investigation. FIXME
8d138742 8267 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
d9898ee8 8268 else
8d138742 8269 ld_shlibs=no
d9898ee8 8270 fi
8271 ;;
8272
8d138742
CE
8273 cygwin* | mingw* | pw32* | cegcc*)
8274 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8275 # as there is no search path for DLLs.
8276 hardcode_libdir_flag_spec='-L$libdir'
8277 allow_undefined_flag=unsupported
8278 always_export_symbols=no
8279 enable_shared_with_static_runtimes=yes
8280 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8281
8282 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8283 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
d9898ee8 8284 # If the export-symbols file already is a .def file (1st line
8285 # is EXPORTS), use it as is; otherwise, prepend...
8d138742 8286 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
d9898ee8 8287 cp $export_symbols $output_objdir/$soname.def;
8288 else
8289 echo EXPORTS > $output_objdir/$soname.def;
8290 cat $export_symbols >> $output_objdir/$soname.def;
8291 fi~
8292 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8293 else
8d138742 8294 ld_shlibs=no
d9898ee8 8295 fi
8296 ;;
8297
ac40fd9e 8298 interix[3-9]*)
8d138742
CE
8299 hardcode_direct=no
8300 hardcode_shlibpath_var=no
8301 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8302 export_dynamic_flag_spec='${wl}-E'
d9898ee8 8303 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8304 # Instead, shared libraries are loaded at an image base (0x10000000 by
8305 # default) and relocated if they conflict, which is a slow very memory
8306 # consuming and fragmenting process. To avoid this, we pick a random,
8307 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8308 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8d138742
CE
8309 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8310 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'
d9898ee8 8311 ;;
8312
8d138742
CE
8313 gnu* | linux* | tpf* | k*bsd*-gnu)
8314 tmp_diet=no
8315 if test "$host_os" = linux-dietlibc; then
8316 case $cc_basename in
8317 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8318 esac
8319 fi
8320 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8321 && test "$tmp_diet" = no
8322 then
d9898ee8 8323 tmp_addflag=
8d138742 8324 tmp_sharedflag='-shared'
d9898ee8 8325 case $cc_basename,$host_cpu in
8d138742
CE
8326 pgcc*) # Portland Group C compiler
8327 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'
d9898ee8 8328 tmp_addflag=' $pic_flag'
8329 ;;
8330 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8d138742 8331 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'
d9898ee8 8332 tmp_addflag=' $pic_flag -Mnomain' ;;
8d138742 8333 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
d9898ee8 8334 tmp_addflag=' -i_dynamic' ;;
8335 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8336 tmp_addflag=' -i_dynamic -nofor_main' ;;
8337 ifc* | ifort*) # Intel Fortran compiler
8338 tmp_addflag=' -nofor_main' ;;
8d138742
CE
8339 lf95*) # Lahey Fortran 8.1
8340 whole_archive_flag_spec=
8341 tmp_sharedflag='--shared' ;;
8342 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8343 tmp_sharedflag='-qmkshrobj'
8344 tmp_addflag= ;;
d9898ee8 8345 esac
ac40fd9e 8346 case `$CC -V 2>&1 | sed 5q` in
8347 *Sun\ C*) # Sun C 5.9
8d138742
CE
8348 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8349 compiler_needs_object=yes
ac40fd9e 8350 tmp_sharedflag='-G' ;;
8351 *Sun\ F*) # Sun Fortran 8.3
8352 tmp_sharedflag='-G' ;;
ac40fd9e 8353 esac
8d138742 8354 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
d9898ee8 8355
8d138742
CE
8356 if test "x$supports_anon_versioning" = xyes; then
8357 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8358 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8359 echo "local: *; };" >> $output_objdir/$libname.ver~
8360 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8361 fi
8362
8363 case $cc_basename in
8364 xlf*)
8365 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8366 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8367 hardcode_libdir_flag_spec=
8368 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8369 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8370 if test "x$supports_anon_versioning" = xyes; then
8371 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8372 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8373 echo "local: *; };" >> $output_objdir/$libname.ver~
8374 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8375 fi
8376 ;;
8377 esac
d9898ee8 8378 else
8d138742 8379 ld_shlibs=no
d9898ee8 8380 fi
8381 ;;
8382
8383 netbsd*)
8d138742
CE
8384 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8385 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
d9898ee8 8386 wlarc=
8387 else
8d138742
CE
8388 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8389 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
d9898ee8 8390 fi
8391 ;;
8392
8393 solaris*)
8d138742
CE
8394 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8395 ld_shlibs=no
8396 cat <<_LT_EOF 1>&2
d9898ee8 8397
8398*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8399*** create shared libraries on Solaris systems. Therefore, libtool
8400*** is disabling shared libraries support. We urge you to upgrade GNU
8401*** binutils to release 2.9.1 or newer. Another option is to modify
8402*** your PATH or compiler configuration so that the native linker is
8403*** used, and then restart.
8404
8d138742
CE
8405_LT_EOF
8406 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8407 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8408 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
d9898ee8 8409 else
8d138742 8410 ld_shlibs=no
d9898ee8 8411 fi
8412 ;;
8413
8414 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8415 case `$LD -v 2>&1` in
8416 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8d138742 8417 ld_shlibs=no
d9898ee8 8418 cat <<_LT_EOF 1>&2
8419
8420*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8421*** reliably create shared libraries on SCO systems. Therefore, libtool
8422*** is disabling shared libraries support. We urge you to upgrade GNU
8423*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8424*** your PATH or compiler configuration so that the native linker is
8425*** used, and then restart.
8426
8427_LT_EOF
8428 ;;
8429 *)
8d138742
CE
8430 # For security reasons, it is highly recommended that you always
8431 # use absolute paths for naming shared libraries, and exclude the
8432 # DT_RUNPATH tag from executables and libraries. But doing so
8433 # requires that you compile everything twice, which is a pain.
8434 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8435 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8436 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8437 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
d9898ee8 8438 else
8d138742 8439 ld_shlibs=no
d9898ee8 8440 fi
8441 ;;
8442 esac
8443 ;;
8444
8445 sunos4*)
8d138742 8446 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
d9898ee8 8447 wlarc=
8d138742
CE
8448 hardcode_direct=yes
8449 hardcode_shlibpath_var=no
d9898ee8 8450 ;;
8451
8452 *)
8d138742
CE
8453 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8454 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8455 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
d9898ee8 8456 else
8d138742 8457 ld_shlibs=no
d9898ee8 8458 fi
8459 ;;
8460 esac
8461
8d138742 8462 if test "$ld_shlibs" = no; then
d9898ee8 8463 runpath_var=
8d138742
CE
8464 hardcode_libdir_flag_spec=
8465 export_dynamic_flag_spec=
8466 whole_archive_flag_spec=
d9898ee8 8467 fi
8468 else
8469 # PORTME fill in a description of your system's linker (not GNU ld)
8470 case $host_os in
8471 aix3*)
8d138742
CE
8472 allow_undefined_flag=unsupported
8473 always_export_symbols=yes
8474 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'
d9898ee8 8475 # Note: this linker hardcodes the directories in LIBPATH if there
8476 # are no directories specified by -L.
8d138742 8477 hardcode_minus_L=yes
d9898ee8 8478 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8479 # Neither direct hardcoding nor static linking is supported with a
8480 # broken collect2.
8d138742 8481 hardcode_direct=unsupported
d9898ee8 8482 fi
8483 ;;
8484
8d138742 8485 aix[4-9]*)
d9898ee8 8486 if test "$host_cpu" = ia64; then
8487 # On IA64, the linker does run time linking by default, so we don't
8488 # have to do anything special.
8489 aix_use_runtimelinking=no
8490 exp_sym_flag='-Bexport'
8491 no_entry_flag=""
8492 else
8493 # If we're using GNU nm, then we don't want the "-C" option.
8494 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8d138742
CE
8495 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8496 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'
d9898ee8 8497 else
8d138742 8498 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'
d9898ee8 8499 fi
8500 aix_use_runtimelinking=no
8501
8502 # Test if we are trying to use run time linking or normal
8503 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8504 # need to do runtime linking.
8d138742 8505 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
d9898ee8 8506 for ld_flag in $LDFLAGS; do
8d138742
CE
8507 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8508 aix_use_runtimelinking=yes
8509 break
8510 fi
d9898ee8 8511 done
8512 ;;
8513 esac
8514
8515 exp_sym_flag='-bexport'
8516 no_entry_flag='-bnoentry'
8517 fi
8518
8519 # When large executables or shared objects are built, AIX ld can
8520 # have problems creating the table of contents. If linking a library
8521 # or program results in "error TOC overflow" add -mminimal-toc to
8522 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8523 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8524
8d138742
CE
8525 archive_cmds=''
8526 hardcode_direct=yes
8527 hardcode_direct_absolute=yes
8528 hardcode_libdir_separator=':'
8529 link_all_deplibs=yes
8530 file_list_spec='${wl}-f,'
d9898ee8 8531
8532 if test "$GCC" = yes; then
8533 case $host_os in aix4.[012]|aix4.[012].*)
8534 # We only want to do this on AIX 4.2 and lower, the check
8535 # below for broken collect2 doesn't work under 4.3+
8536 collect2name=`${CC} -print-prog-name=collect2`
8d138742
CE
8537 if test -f "$collect2name" &&
8538 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
d9898ee8 8539 then
8d138742
CE
8540 # We have reworked collect2
8541 :
d9898ee8 8542 else
8d138742
CE
8543 # We have old collect2
8544 hardcode_direct=unsupported
8545 # It fails to find uninstalled libraries when the uninstalled
8546 # path is not listed in the libpath. Setting hardcode_minus_L
8547 # to unsupported forces relinking
8548 hardcode_minus_L=yes
8549 hardcode_libdir_flag_spec='-L$libdir'
8550 hardcode_libdir_separator=
d9898ee8 8551 fi
8552 ;;
8553 esac
8554 shared_flag='-shared'
8555 if test "$aix_use_runtimelinking" = yes; then
8556 shared_flag="$shared_flag "'${wl}-G'
8557 fi
8558 else
8559 # not using gcc
8560 if test "$host_cpu" = ia64; then
8d138742
CE
8561 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8562 # chokes on -Wl,-G. The following line is correct:
d9898ee8 8563 shared_flag='-G'
8564 else
8565 if test "$aix_use_runtimelinking" = yes; then
8566 shared_flag='${wl}-G'
8567 else
8568 shared_flag='${wl}-bM:SRE'
8569 fi
8570 fi
8571 fi
8572
8d138742 8573 export_dynamic_flag_spec='${wl}-bexpall'
d9898ee8 8574 # It seems that -bexpall does not export symbols beginning with
8575 # underscore (_), so it is better to generate a list of symbols to export.
8d138742 8576 always_export_symbols=yes
d9898ee8 8577 if test "$aix_use_runtimelinking" = yes; then
8578 # Warning - without using the other runtime loading flags (-brtl),
8579 # -berok will link without error, but may produce a broken library.
8d138742
CE
8580 allow_undefined_flag='-berok'
8581 # Determine the default libpath from the value encoded in an
8582 # empty executable.
8583 cat >conftest.$ac_ext <<_ACEOF
d9898ee8 8584/* confdefs.h. */
8585_ACEOF
8586cat confdefs.h >>conftest.$ac_ext
8587cat >>conftest.$ac_ext <<_ACEOF
8588/* end confdefs.h. */
8589
8590int
8591main ()
8592{
8593
8594 ;
8595 return 0;
8596}
8597_ACEOF
8598rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 8599if { (ac_try="$ac_link"
8600case "(($ac_try" in
8601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8602 *) ac_try_echo=$ac_try;;
8603esac
8d138742
CE
8604eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8605$as_echo "$ac_try_echo") >&5
dd184caf 8606 (eval "$ac_link") 2>conftest.er1
d9898ee8 8607 ac_status=$?
8608 grep -v '^ *+' conftest.er1 >conftest.err
8609 rm -f conftest.er1
8610 cat conftest.err >&5
8d138742 8611 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 8612 (exit $ac_status); } && {
8613 test -z "$ac_c_werror_flag" ||
8614 test ! -s conftest.err
8d138742
CE
8615 } && test -s conftest$ac_exeext && {
8616 test "$cross_compiling" = yes ||
8617 $as_test_x conftest$ac_exeext
8618 }; then
d9898ee8 8619
ac40fd9e 8620lt_aix_libpath_sed='
8621 /Import File Strings/,/^$/ {
8622 /^0/ {
8623 s/^0 *\(.*\)$/\1/
8624 p
8625 }
8626 }'
8627aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
d9898ee8 8628# Check for a 64-bit object if we didn't find anything.
ac40fd9e 8629if test -z "$aix_libpath"; then
8630 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8631fi
d9898ee8 8632else
8d138742 8633 $as_echo "$as_me: failed program was:" >&5
d9898ee8 8634sed 's/^/| /' conftest.$ac_ext >&5
8635
dd184caf 8636
d9898ee8 8637fi
dd184caf 8638
8d138742 8639rm -rf conftest.dSYM
dd184caf 8640rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 8641 conftest$ac_exeext conftest.$ac_ext
8642if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8643
8d138742
CE
8644 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8645 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8646 else
d9898ee8 8647 if test "$host_cpu" = ia64; then
8d138742
CE
8648 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8649 allow_undefined_flag="-z nodefs"
8650 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"
d9898ee8 8651 else
8d138742
CE
8652 # Determine the default libpath from the value encoded in an
8653 # empty executable.
d9898ee8 8654 cat >conftest.$ac_ext <<_ACEOF
8655/* confdefs.h. */
8656_ACEOF
8657cat confdefs.h >>conftest.$ac_ext
8658cat >>conftest.$ac_ext <<_ACEOF
8659/* end confdefs.h. */
8660
8661int
8662main ()
8663{
8664
8665 ;
8666 return 0;
8667}
8668_ACEOF
8669rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 8670if { (ac_try="$ac_link"
8671case "(($ac_try" in
8672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8673 *) ac_try_echo=$ac_try;;
8674esac
8d138742
CE
8675eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8676$as_echo "$ac_try_echo") >&5
dd184caf 8677 (eval "$ac_link") 2>conftest.er1
d9898ee8 8678 ac_status=$?
8679 grep -v '^ *+' conftest.er1 >conftest.err
8680 rm -f conftest.er1
8681 cat conftest.err >&5
8d138742 8682 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 8683 (exit $ac_status); } && {
8684 test -z "$ac_c_werror_flag" ||
8685 test ! -s conftest.err
8d138742
CE
8686 } && test -s conftest$ac_exeext && {
8687 test "$cross_compiling" = yes ||
8688 $as_test_x conftest$ac_exeext
8689 }; then
d9898ee8 8690
ac40fd9e 8691lt_aix_libpath_sed='
8692 /Import File Strings/,/^$/ {
8693 /^0/ {
8694 s/^0 *\(.*\)$/\1/
8695 p
8696 }
8697 }'
8698aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
d9898ee8 8699# Check for a 64-bit object if we didn't find anything.
ac40fd9e 8700if test -z "$aix_libpath"; then
8701 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8702fi
d9898ee8 8703else
8d138742 8704 $as_echo "$as_me: failed program was:" >&5
d9898ee8 8705sed 's/^/| /' conftest.$ac_ext >&5
8706
dd184caf 8707
d9898ee8 8708fi
dd184caf 8709
8d138742 8710rm -rf conftest.dSYM
dd184caf 8711rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 8712 conftest$ac_exeext conftest.$ac_ext
8713if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8714
8d138742 8715 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
d9898ee8 8716 # Warning - without using the other run time loading flags,
8717 # -berok will link without error, but may produce a broken library.
8d138742
CE
8718 no_undefined_flag=' ${wl}-bernotok'
8719 allow_undefined_flag=' ${wl}-berok'
d9898ee8 8720 # Exported symbols can be pulled into shared objects from archives
8d138742
CE
8721 whole_archive_flag_spec='$convenience'
8722 archive_cmds_need_lc=yes
d9898ee8 8723 # This is similar to how AIX traditionally builds its shared libraries.
8d138742 8724 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'
d9898ee8 8725 fi
8726 fi
8727 ;;
8728
8729 amigaos*)
8d138742
CE
8730 case $host_cpu in
8731 powerpc)
8732 # see comment about AmigaOS4 .so support
8733 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8734 archive_expsym_cmds=''
8735 ;;
8736 m68k)
8737 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)'
8738 hardcode_libdir_flag_spec='-L$libdir'
8739 hardcode_minus_L=yes
8740 ;;
8741 esac
d9898ee8 8742 ;;
8743
8744 bsdi[45]*)
8d138742 8745 export_dynamic_flag_spec=-rdynamic
d9898ee8 8746 ;;
8747
8d138742 8748 cygwin* | mingw* | pw32* | cegcc*)
d9898ee8 8749 # When not using gcc, we currently assume that we are using
8750 # Microsoft Visual C++.
8751 # hardcode_libdir_flag_spec is actually meaningless, as there is
8752 # no search path for DLLs.
8d138742
CE
8753 hardcode_libdir_flag_spec=' '
8754 allow_undefined_flag=unsupported
d9898ee8 8755 # Tell ltmain to make .lib files, not .a files.
8756 libext=lib
8757 # Tell ltmain to make .dll files, not .so files.
8758 shrext_cmds=".dll"
8759 # FIXME: Setting linknames here is a bad hack.
8d138742 8760 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
d9898ee8 8761 # The linker will automatically build a .lib file if we build a DLL.
8d138742 8762 old_archive_from_new_cmds='true'
d9898ee8 8763 # FIXME: Should let the user specify the lib program.
8d138742
CE
8764 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8765 fix_srcfile_path='`cygpath -w "$srcfile"`'
8766 enable_shared_with_static_runtimes=yes
d9898ee8 8767 ;;
8768
8769 darwin* | rhapsody*)
8d138742
CE
8770
8771
8772 archive_cmds_need_lc=no
8773 hardcode_direct=no
8774 hardcode_automatic=yes
8775 hardcode_shlibpath_var=unsupported
8776 whole_archive_flag_spec=''
8777 link_all_deplibs=yes
8778 allow_undefined_flag="$_lt_dar_allow_undefined"
8779 case $cc_basename in
8780 ifort*) _lt_dar_can_shared=yes ;;
8781 *) _lt_dar_can_shared=$GCC ;;
8782 esac
8783 if test "$_lt_dar_can_shared" = "yes"; then
8784 output_verbose_link_cmd=echo
8785 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8786 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8787 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
8788 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
8789
8790 else
8791 ld_shlibs=no
8792 fi
8793
d9898ee8 8794 ;;
8795
8796 dgux*)
8d138742
CE
8797 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8798 hardcode_libdir_flag_spec='-L$libdir'
8799 hardcode_shlibpath_var=no
d9898ee8 8800 ;;
8801
8802 freebsd1*)
8d138742 8803 ld_shlibs=no
d9898ee8 8804 ;;
8805
8806 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8807 # support. Future versions do this automatically, but an explicit c++rt0.o
8808 # does not break anything, and helps significantly (at the cost of a little
8809 # extra space).
8810 freebsd2.2*)
8d138742
CE
8811 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8812 hardcode_libdir_flag_spec='-R$libdir'
8813 hardcode_direct=yes
8814 hardcode_shlibpath_var=no
d9898ee8 8815 ;;
8816
8817 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8818 freebsd2*)
8d138742
CE
8819 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8820 hardcode_direct=yes
8821 hardcode_minus_L=yes
8822 hardcode_shlibpath_var=no
d9898ee8 8823 ;;
8824
8825 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
ac40fd9e 8826 freebsd* | dragonfly*)
8d138742
CE
8827 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8828 hardcode_libdir_flag_spec='-R$libdir'
8829 hardcode_direct=yes
8830 hardcode_shlibpath_var=no
d9898ee8 8831 ;;
8832
8833 hpux9*)
8834 if test "$GCC" = yes; then
8d138742 8835 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'
d9898ee8 8836 else
8d138742 8837 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'
d9898ee8 8838 fi
8d138742
CE
8839 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8840 hardcode_libdir_separator=:
8841 hardcode_direct=yes
d9898ee8 8842
8843 # hardcode_minus_L: Not really in the search PATH,
8844 # but as the default location of the library.
8d138742
CE
8845 hardcode_minus_L=yes
8846 export_dynamic_flag_spec='${wl}-E'
d9898ee8 8847 ;;
8848
8849 hpux10*)
8850 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8d138742 8851 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
d9898ee8 8852 else
8d138742 8853 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
d9898ee8 8854 fi
8855 if test "$with_gnu_ld" = no; then
8d138742
CE
8856 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8857 hardcode_libdir_flag_spec_ld='+b $libdir'
8858 hardcode_libdir_separator=:
8859 hardcode_direct=yes
8860 hardcode_direct_absolute=yes
8861 export_dynamic_flag_spec='${wl}-E'
d9898ee8 8862 # hardcode_minus_L: Not really in the search PATH,
8863 # but as the default location of the library.
8d138742 8864 hardcode_minus_L=yes
d9898ee8 8865 fi
8866 ;;
8867
8868 hpux11*)
8869 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8870 case $host_cpu in
8871 hppa*64*)
8d138742 8872 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
d9898ee8 8873 ;;
8874 ia64*)
8d138742 8875 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
d9898ee8 8876 ;;
8877 *)
8d138742 8878 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
d9898ee8 8879 ;;
8880 esac
8881 else
8882 case $host_cpu in
8883 hppa*64*)
8d138742 8884 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
d9898ee8 8885 ;;
8886 ia64*)
8d138742 8887 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
d9898ee8 8888 ;;
8889 *)
8d138742 8890 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
d9898ee8 8891 ;;
8892 esac
8893 fi
8894 if test "$with_gnu_ld" = no; then
8d138742
CE
8895 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8896 hardcode_libdir_separator=:
d9898ee8 8897
8898 case $host_cpu in
8899 hppa*64*|ia64*)
8d138742
CE
8900 hardcode_direct=no
8901 hardcode_shlibpath_var=no
d9898ee8 8902 ;;
8903 *)
8d138742
CE
8904 hardcode_direct=yes
8905 hardcode_direct_absolute=yes
8906 export_dynamic_flag_spec='${wl}-E'
d9898ee8 8907
8908 # hardcode_minus_L: Not really in the search PATH,
8909 # but as the default location of the library.
8d138742 8910 hardcode_minus_L=yes
d9898ee8 8911 ;;
8912 esac
8913 fi
8914 ;;
8915
8916 irix5* | irix6* | nonstopux*)
8917 if test "$GCC" = yes; then
8d138742
CE
8918 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8919 # Try to use the -exported_symbol ld option, if it does not
8920 # work, assume that -exports_file does not work either and
8921 # implicitly export all symbols.
8922 save_LDFLAGS="$LDFLAGS"
8923 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8924 cat >conftest.$ac_ext <<_ACEOF
8925int foo(void) {}
8926_ACEOF
8927rm -f conftest.$ac_objext conftest$ac_exeext
8928if { (ac_try="$ac_link"
8929case "(($ac_try" in
8930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8931 *) ac_try_echo=$ac_try;;
8932esac
8933eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8934$as_echo "$ac_try_echo") >&5
8935 (eval "$ac_link") 2>conftest.er1
8936 ac_status=$?
8937 grep -v '^ *+' conftest.er1 >conftest.err
8938 rm -f conftest.er1
8939 cat conftest.err >&5
8940 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8941 (exit $ac_status); } && {
8942 test -z "$ac_c_werror_flag" ||
8943 test ! -s conftest.err
8944 } && test -s conftest$ac_exeext && {
8945 test "$cross_compiling" = yes ||
8946 $as_test_x conftest$ac_exeext
8947 }; then
8948 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
8949
8950else
8951 $as_echo "$as_me: failed program was:" >&5
8952sed 's/^/| /' conftest.$ac_ext >&5
8953
8954
8955fi
8956
8957rm -rf conftest.dSYM
8958rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8959 conftest$ac_exeext conftest.$ac_ext
8960 LDFLAGS="$save_LDFLAGS"
d9898ee8 8961 else
8d138742
CE
8962 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8963 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
d9898ee8 8964 fi
8d138742
CE
8965 archive_cmds_need_lc='no'
8966 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8967 hardcode_libdir_separator=:
8968 inherit_rpath=yes
8969 link_all_deplibs=yes
d9898ee8 8970 ;;
8971
8972 netbsd*)
8d138742
CE
8973 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8974 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
d9898ee8 8975 else
8d138742 8976 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
d9898ee8 8977 fi
8d138742
CE
8978 hardcode_libdir_flag_spec='-R$libdir'
8979 hardcode_direct=yes
8980 hardcode_shlibpath_var=no
d9898ee8 8981 ;;
8982
8983 newsos6)
8d138742
CE
8984 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8985 hardcode_direct=yes
8986 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8987 hardcode_libdir_separator=:
8988 hardcode_shlibpath_var=no
8989 ;;
8990
8991 *nto* | *qnx*)
d9898ee8 8992 ;;
8993
8994 openbsd*)
ac40fd9e 8995 if test -f /usr/libexec/ld.so; then
8d138742
CE
8996 hardcode_direct=yes
8997 hardcode_shlibpath_var=no
8998 hardcode_direct_absolute=yes
8999 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9000 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9001 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9002 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9003 export_dynamic_flag_spec='${wl}-E'
ac40fd9e 9004 else
9005 case $host_os in
9006 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8d138742
CE
9007 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9008 hardcode_libdir_flag_spec='-R$libdir'
ac40fd9e 9009 ;;
9010 *)
8d138742
CE
9011 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9012 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
ac40fd9e 9013 ;;
9014 esac
8d138742 9015 fi
d9898ee8 9016 else
8d138742 9017 ld_shlibs=no
d9898ee8 9018 fi
9019 ;;
9020
9021 os2*)
8d138742
CE
9022 hardcode_libdir_flag_spec='-L$libdir'
9023 hardcode_minus_L=yes
9024 allow_undefined_flag=unsupported
9025 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'
9026 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
d9898ee8 9027 ;;
9028
9029 osf3*)
9030 if test "$GCC" = yes; then
8d138742
CE
9031 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9032 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
d9898ee8 9033 else
8d138742
CE
9034 allow_undefined_flag=' -expect_unresolved \*'
9035 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
d9898ee8 9036 fi
8d138742
CE
9037 archive_cmds_need_lc='no'
9038 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9039 hardcode_libdir_separator=:
d9898ee8 9040 ;;
9041
9042 osf4* | osf5*) # as osf3* with the addition of -msym flag
9043 if test "$GCC" = yes; then
8d138742
CE
9044 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9045 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9046 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
d9898ee8 9047 else
8d138742
CE
9048 allow_undefined_flag=' -expect_unresolved \*'
9049 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9050 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
9051 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
d9898ee8 9052
9053 # Both c and cxx compiler support -rpath directly
8d138742 9054 hardcode_libdir_flag_spec='-rpath $libdir'
d9898ee8 9055 fi
8d138742
CE
9056 archive_cmds_need_lc='no'
9057 hardcode_libdir_separator=:
d9898ee8 9058 ;;
9059
9060 solaris*)
8d138742 9061 no_undefined_flag=' -z defs'
d9898ee8 9062 if test "$GCC" = yes; then
9063 wlarc='${wl}'
8d138742
CE
9064 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9065 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9066 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
d9898ee8 9067 else
8d138742
CE
9068 case `$CC -V 2>&1` in
9069 *"Compilers 5.0"*)
9070 wlarc=''
9071 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9072 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9073 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9074 ;;
9075 *)
9076 wlarc='${wl}'
9077 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9078 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9079 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9080 ;;
9081 esac
d9898ee8 9082 fi
8d138742
CE
9083 hardcode_libdir_flag_spec='-R$libdir'
9084 hardcode_shlibpath_var=no
d9898ee8 9085 case $host_os in
9086 solaris2.[0-5] | solaris2.[0-5].*) ;;
9087 *)
ac40fd9e 9088 # The compiler driver will combine and reorder linker options,
9089 # but understands `-z linker_flag'. GCC discards it without `$wl',
9090 # but is careful enough not to reorder.
8d138742 9091 # Supported since Solaris 2.6 (maybe 2.5.1?)
ac40fd9e 9092 if test "$GCC" = yes; then
8d138742 9093 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
ac40fd9e 9094 else
8d138742 9095 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
ac40fd9e 9096 fi
9097 ;;
d9898ee8 9098 esac
8d138742 9099 link_all_deplibs=yes
d9898ee8 9100 ;;
9101
9102 sunos4*)
9103 if test "x$host_vendor" = xsequent; then
9104 # Use $CC to link under sequent, because it throws in some extra .o
9105 # files that make .init and .fini sections work.
8d138742 9106 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
d9898ee8 9107 else
8d138742 9108 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
d9898ee8 9109 fi
8d138742
CE
9110 hardcode_libdir_flag_spec='-L$libdir'
9111 hardcode_direct=yes
9112 hardcode_minus_L=yes
9113 hardcode_shlibpath_var=no
d9898ee8 9114 ;;
9115
9116 sysv4)
9117 case $host_vendor in
9118 sni)
8d138742
CE
9119 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9120 hardcode_direct=yes # is this really true???
d9898ee8 9121 ;;
9122 siemens)
9123 ## LD is ld it makes a PLAMLIB
9124 ## CC just makes a GrossModule.
8d138742
CE
9125 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9126 reload_cmds='$CC -r -o $output$reload_objs'
9127 hardcode_direct=no
d9898ee8 9128 ;;
9129 motorola)
8d138742
CE
9130 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9131 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
d9898ee8 9132 ;;
9133 esac
9134 runpath_var='LD_RUN_PATH'
8d138742 9135 hardcode_shlibpath_var=no
d9898ee8 9136 ;;
9137
9138 sysv4.3*)
8d138742
CE
9139 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9140 hardcode_shlibpath_var=no
9141 export_dynamic_flag_spec='-Bexport'
d9898ee8 9142 ;;
9143
9144 sysv4*MP*)
9145 if test -d /usr/nec; then
8d138742
CE
9146 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9147 hardcode_shlibpath_var=no
d9898ee8 9148 runpath_var=LD_RUN_PATH
9149 hardcode_runpath_var=yes
8d138742 9150 ld_shlibs=yes
d9898ee8 9151 fi
9152 ;;
9153
ac40fd9e 9154 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8d138742
CE
9155 no_undefined_flag='${wl}-z,text'
9156 archive_cmds_need_lc=no
9157 hardcode_shlibpath_var=no
d9898ee8 9158 runpath_var='LD_RUN_PATH'
9159
9160 if test "$GCC" = yes; then
8d138742
CE
9161 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9162 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
d9898ee8 9163 else
8d138742
CE
9164 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9165 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
d9898ee8 9166 fi
9167 ;;
9168
9169 sysv5* | sco3.2v5* | sco5v6*)
9170 # Note: We can NOT use -z defs as we might desire, because we do not
9171 # link with -lc, and that would cause any symbols used from libc to
9172 # always be unresolved, which means just about no library would
9173 # ever link correctly. If we're not using GNU ld we use -z text
9174 # though, which does catch some bad symbols but isn't as heavy-handed
9175 # as -z defs.
8d138742
CE
9176 no_undefined_flag='${wl}-z,text'
9177 allow_undefined_flag='${wl}-z,nodefs'
9178 archive_cmds_need_lc=no
9179 hardcode_shlibpath_var=no
9180 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9181 hardcode_libdir_separator=':'
9182 link_all_deplibs=yes
9183 export_dynamic_flag_spec='${wl}-Bexport'
d9898ee8 9184 runpath_var='LD_RUN_PATH'
9185
9186 if test "$GCC" = yes; then
8d138742
CE
9187 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9188 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
d9898ee8 9189 else
8d138742
CE
9190 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9191 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
d9898ee8 9192 fi
9193 ;;
9194
9195 uts4*)
8d138742
CE
9196 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9197 hardcode_libdir_flag_spec='-L$libdir'
9198 hardcode_shlibpath_var=no
d9898ee8 9199 ;;
9200
9201 *)
8d138742 9202 ld_shlibs=no
d9898ee8 9203 ;;
9204 esac
8d138742
CE
9205
9206 if test x$host_vendor = xsni; then
9207 case $host in
9208 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9209 export_dynamic_flag_spec='${wl}-Blargedynsym'
9210 ;;
9211 esac
9212 fi
d9898ee8 9213 fi
9214
8d138742
CE
9215{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9216$as_echo "$ld_shlibs" >&6; }
9217test "$ld_shlibs" = no && can_build_shared=no
9218
9219with_gnu_ld=$with_gnu_ld
9220
9221
9222
9223
9224
9225
9226
9227
9228
9229
9230
9231
9232
9233
d9898ee8 9234
9235#
9236# Do we need to explicitly link libc?
9237#
8d138742 9238case "x$archive_cmds_need_lc" in
d9898ee8 9239x|xyes)
9240 # Assume -lc should be added
8d138742 9241 archive_cmds_need_lc=yes
d9898ee8 9242
9243 if test "$enable_shared" = yes && test "$GCC" = yes; then
8d138742 9244 case $archive_cmds in
d9898ee8 9245 *'~'*)
9246 # FIXME: we may have to deal with multi-command sequences.
9247 ;;
9248 '$CC '*)
9249 # Test whether the compiler implicitly links with -lc since on some
9250 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9251 # to ld, don't add -lc before -lgcc.
8d138742
CE
9252 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9253$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9254 $RM conftest*
ac40fd9e 9255 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 9256
9257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9258 (eval $ac_compile) 2>&5
9259 ac_status=$?
8d138742 9260 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9898ee8 9261 (exit $ac_status); } 2>conftest.err; then
9262 soname=conftest
9263 lib=conftest
9264 libobjs=conftest.$ac_objext
9265 deplibs=
8d138742
CE
9266 wl=$lt_prog_compiler_wl
9267 pic_flag=$lt_prog_compiler_pic
d9898ee8 9268 compiler_flags=-v
9269 linker_flags=-v
9270 verstring=
9271 output_objdir=.
9272 libname=conftest
8d138742
CE
9273 lt_save_allow_undefined_flag=$allow_undefined_flag
9274 allow_undefined_flag=
9275 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9276 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
d9898ee8 9277 ac_status=$?
8d138742 9278 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9898ee8 9279 (exit $ac_status); }
9280 then
8d138742 9281 archive_cmds_need_lc=no
d9898ee8 9282 else
8d138742 9283 archive_cmds_need_lc=yes
d9898ee8 9284 fi
8d138742 9285 allow_undefined_flag=$lt_save_allow_undefined_flag
d9898ee8 9286 else
9287 cat conftest.err 1>&5
9288 fi
8d138742
CE
9289 $RM conftest*
9290 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9291$as_echo "$archive_cmds_need_lc" >&6; }
d9898ee8 9292 ;;
9293 esac
9294 fi
9295 ;;
9296esac
9297
8d138742
CE
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357
9358
9359
9360
9361
9362
9363
9364
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374
9375
9376
9377
9378
9379
9380
9381
9382
9383
9384
9385
9386
9387
9388
9389
9390
9391
9392
9393
9394
9395
9396
9397
9398
9399
9400
9401
9402
9403
9404
9405
9406
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443
9444
9445
9446
9447
9448
9449
9450
9451
9452
9453
9454 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9455$as_echo_n "checking dynamic linker characteristics... " >&6; }
9456
9457if test "$GCC" = yes; then
9458 case $host_os in
9459 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9460 *) lt_awk_arg="/^libraries:/" ;;
9461 esac
9462 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9463 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9464 # if the path contains ";" then we assume it to be the separator
9465 # otherwise default to the standard path separator (i.e. ":") - it is
9466 # assumed that no part of a normal pathname contains ";" but that should
9467 # okay in the real world where ";" in dirpaths is itself problematic.
9468 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9469 else
9470 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9471 fi
9472 # Ok, now we have the path, separated by spaces, we can step through it
9473 # and add multilib dir if necessary.
9474 lt_tmp_lt_search_path_spec=
9475 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9476 for lt_sys_path in $lt_search_path_spec; do
9477 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9478 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9479 else
9480 test -d "$lt_sys_path" && \
9481 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9482 fi
9483 done
9484 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9485BEGIN {RS=" "; FS="/|\n";} {
9486 lt_foo="";
9487 lt_count=0;
9488 for (lt_i = NF; lt_i > 0; lt_i--) {
9489 if ($lt_i != "" && $lt_i != ".") {
9490 if ($lt_i == "..") {
9491 lt_count++;
9492 } else {
9493 if (lt_count == 0) {
9494 lt_foo="/" $lt_i lt_foo;
9495 } else {
9496 lt_count--;
9497 }
9498 }
9499 }
9500 }
9501 if (lt_foo != "") { lt_freq[lt_foo]++; }
9502 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9503}'`
9504 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9505else
9506 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9507fi
d9898ee8 9508library_names_spec=
9509libname_spec='lib$name'
9510soname_spec=
9511shrext_cmds=".so"
9512postinstall_cmds=
9513postuninstall_cmds=
9514finish_cmds=
9515finish_eval=
9516shlibpath_var=
9517shlibpath_overrides_runpath=unknown
9518version_type=none
9519dynamic_linker="$host_os ld.so"
9520sys_lib_dlsearch_path_spec="/lib /usr/lib"
d9898ee8 9521need_lib_prefix=unknown
9522hardcode_into_libs=no
9523
9524# when you set need_version to no, make sure it does not cause -set_version
9525# flags to be left without arguments
9526need_version=unknown
9527
9528case $host_os in
9529aix3*)
9530 version_type=linux
9531 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9532 shlibpath_var=LIBPATH
9533
9534 # AIX 3 has no versioning support, so we append a major version to the name.
9535 soname_spec='${libname}${release}${shared_ext}$major'
9536 ;;
9537
8d138742 9538aix[4-9]*)
d9898ee8 9539 version_type=linux
9540 need_lib_prefix=no
9541 need_version=no
9542 hardcode_into_libs=yes
9543 if test "$host_cpu" = ia64; then
9544 # AIX 5 supports IA64
9545 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9546 shlibpath_var=LD_LIBRARY_PATH
9547 else
9548 # With GCC up to 2.95.x, collect2 would create an import file
9549 # for dependence libraries. The import file would start with
9550 # the line `#! .'. This would cause the generated library to
9551 # depend on `.', always an invalid library. This was fixed in
9552 # development snapshots of GCC prior to 3.0.
9553 case $host_os in
9554 aix4 | aix4.[01] | aix4.[01].*)
9555 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9556 echo ' yes '
8d138742 9557 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
d9898ee8 9558 :
9559 else
9560 can_build_shared=no
9561 fi
9562 ;;
9563 esac
9564 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9565 # soname into executable. Probably we can add versioning support to
9566 # collect2, so additional links can be useful in future.
9567 if test "$aix_use_runtimelinking" = yes; then
9568 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9569 # instead of lib<name>.a to let people know that these are not
9570 # typical AIX shared libraries.
9571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9572 else
9573 # We preserve .a as extension for shared libraries through AIX4.2
9574 # and later when we are not doing run time linking.
9575 library_names_spec='${libname}${release}.a $libname.a'
9576 soname_spec='${libname}${release}${shared_ext}$major'
9577 fi
9578 shlibpath_var=LIBPATH
9579 fi
9580 ;;
9581
9582amigaos*)
8d138742
CE
9583 case $host_cpu in
9584 powerpc)
9585 # Since July 2007 AmigaOS4 officially supports .so libraries.
9586 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9588 ;;
9589 m68k)
9590 library_names_spec='$libname.ixlibrary $libname.a'
9591 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9592 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'
9593 ;;
9594 esac
d9898ee8 9595 ;;
9596
9597beos*)
9598 library_names_spec='${libname}${shared_ext}'
9599 dynamic_linker="$host_os ld.so"
9600 shlibpath_var=LIBRARY_PATH
9601 ;;
9602
9603bsdi[45]*)
9604 version_type=linux
9605 need_version=no
9606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9607 soname_spec='${libname}${release}${shared_ext}$major'
9608 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9609 shlibpath_var=LD_LIBRARY_PATH
9610 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9611 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9612 # the default ld.so.conf also contains /usr/contrib/lib and
9613 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9614 # libtool to hard-code these into programs
9615 ;;
9616
8d138742 9617cygwin* | mingw* | pw32* | cegcc*)
d9898ee8 9618 version_type=windows
9619 shrext_cmds=".dll"
9620 need_version=no
9621 need_lib_prefix=no
9622
9623 case $GCC,$host_os in
8d138742 9624 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
d9898ee8 9625 library_names_spec='$libname.dll.a'
9626 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9627 postinstall_cmds='base_file=`basename \${file}`~
8d138742 9628 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
d9898ee8 9629 dldir=$destdir/`dirname \$dlpath`~
9630 test -d \$dldir || mkdir -p \$dldir~
9631 $install_prog $dir/$dlname \$dldir/$dlname~
8d138742
CE
9632 chmod a+x \$dldir/$dlname~
9633 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9634 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9635 fi'
d9898ee8 9636 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9637 dlpath=$dir/\$dldll~
8d138742 9638 $RM \$dlpath'
d9898ee8 9639 shlibpath_overrides_runpath=yes
9640
9641 case $host_os in
9642 cygwin*)
9643 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9644 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9645 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9646 ;;
8d138742 9647 mingw* | cegcc*)
d9898ee8 9648 # MinGW DLLs use traditional 'lib' prefix
9649 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8d138742
CE
9650 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9651 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
d9898ee8 9652 # It is most probably a Windows format PATH printed by
9653 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9654 # path with ; separators, and with drive letters. We can handle the
9655 # drive letters (cygwin fileutils understands them), so leave them,
9656 # especially as we might pass files found there to a mingw objdump,
9657 # which wouldn't understand a cygwinified path. Ahh.
8d138742 9658 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
d9898ee8 9659 else
8d138742 9660 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
d9898ee8 9661 fi
9662 ;;
9663 pw32*)
9664 # pw32 DLLs use 'pw' prefix rather than 'lib'
9665 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9666 ;;
9667 esac
9668 ;;
9669
9670 *)
9671 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9672 ;;
9673 esac
9674 dynamic_linker='Win32 ld.exe'
9675 # FIXME: first we should search . and the directory the executable is in
9676 shlibpath_var=PATH
9677 ;;
9678
9679darwin* | rhapsody*)
9680 dynamic_linker="$host_os dyld"
9681 version_type=darwin
9682 need_lib_prefix=no
9683 need_version=no
8d138742 9684 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
d9898ee8 9685 soname_spec='${libname}${release}${major}$shared_ext'
9686 shlibpath_overrides_runpath=yes
9687 shlibpath_var=DYLD_LIBRARY_PATH
9688 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
ac40fd9e 9689
8d138742 9690 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
d9898ee8 9691 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9692 ;;
9693
9694dgux*)
9695 version_type=linux
9696 need_lib_prefix=no
9697 need_version=no
9698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9699 soname_spec='${libname}${release}${shared_ext}$major'
9700 shlibpath_var=LD_LIBRARY_PATH
9701 ;;
9702
9703freebsd1*)
9704 dynamic_linker=no
9705 ;;
9706
d9898ee8 9707freebsd* | dragonfly*)
9708 # DragonFly does not have aout. When/if they implement a new
9709 # versioning mechanism, adjust this.
9710 if test -x /usr/bin/objformat; then
9711 objformat=`/usr/bin/objformat`
9712 else
9713 case $host_os in
9714 freebsd[123]*) objformat=aout ;;
9715 *) objformat=elf ;;
9716 esac
9717 fi
9718 version_type=freebsd-$objformat
9719 case $version_type in
9720 freebsd-elf*)
9721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9722 need_version=no
9723 need_lib_prefix=no
9724 ;;
9725 freebsd-*)
9726 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9727 need_version=yes
9728 ;;
9729 esac
9730 shlibpath_var=LD_LIBRARY_PATH
9731 case $host_os in
9732 freebsd2*)
9733 shlibpath_overrides_runpath=yes
9734 ;;
9735 freebsd3.[01]* | freebsdelf3.[01]*)
9736 shlibpath_overrides_runpath=yes
9737 hardcode_into_libs=yes
9738 ;;
9739 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9740 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9741 shlibpath_overrides_runpath=no
9742 hardcode_into_libs=yes
9743 ;;
ac40fd9e 9744 *) # from 4.6 on, and DragonFly
d9898ee8 9745 shlibpath_overrides_runpath=yes
9746 hardcode_into_libs=yes
9747 ;;
9748 esac
9749 ;;
9750
9751gnu*)
9752 version_type=linux
9753 need_lib_prefix=no
9754 need_version=no
9755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9756 soname_spec='${libname}${release}${shared_ext}$major'
9757 shlibpath_var=LD_LIBRARY_PATH
9758 hardcode_into_libs=yes
9759 ;;
9760
9761hpux9* | hpux10* | hpux11*)
9762 # Give a soname corresponding to the major version so that dld.sl refuses to
9763 # link against other versions.
9764 version_type=sunos
9765 need_lib_prefix=no
9766 need_version=no
9767 case $host_cpu in
9768 ia64*)
9769 shrext_cmds='.so'
9770 hardcode_into_libs=yes
9771 dynamic_linker="$host_os dld.so"
9772 shlibpath_var=LD_LIBRARY_PATH
9773 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9775 soname_spec='${libname}${release}${shared_ext}$major'
9776 if test "X$HPUX_IA64_MODE" = X32; then
9777 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9778 else
9779 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9780 fi
9781 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9782 ;;
8d138742
CE
9783 hppa*64*)
9784 shrext_cmds='.sl'
9785 hardcode_into_libs=yes
9786 dynamic_linker="$host_os dld.sl"
9787 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9788 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9790 soname_spec='${libname}${release}${shared_ext}$major'
9791 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9792 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9793 ;;
9794 *)
d9898ee8 9795 shrext_cmds='.sl'
9796 dynamic_linker="$host_os dld.sl"
9797 shlibpath_var=SHLIB_PATH
9798 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9800 soname_spec='${libname}${release}${shared_ext}$major'
9801 ;;
9802 esac
9803 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9804 postinstall_cmds='chmod 555 $lib'
9805 ;;
9806
ac40fd9e 9807interix[3-9]*)
d9898ee8 9808 version_type=linux
9809 need_lib_prefix=no
9810 need_version=no
9811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9812 soname_spec='${libname}${release}${shared_ext}$major'
9813 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9814 shlibpath_var=LD_LIBRARY_PATH
9815 shlibpath_overrides_runpath=no
9816 hardcode_into_libs=yes
9817 ;;
9818
9819irix5* | irix6* | nonstopux*)
9820 case $host_os in
9821 nonstopux*) version_type=nonstopux ;;
9822 *)
9823 if test "$lt_cv_prog_gnu_ld" = yes; then
9824 version_type=linux
9825 else
9826 version_type=irix
9827 fi ;;
9828 esac
9829 need_lib_prefix=no
9830 need_version=no
9831 soname_spec='${libname}${release}${shared_ext}$major'
9832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9833 case $host_os in
9834 irix5* | nonstopux*)
9835 libsuff= shlibsuff=
9836 ;;
9837 *)
9838 case $LD in # libtool.m4 will add one of these switches to LD
9839 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9840 libsuff= shlibsuff= libmagic=32-bit;;
9841 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9842 libsuff=32 shlibsuff=N32 libmagic=N32;;
9843 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9844 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9845 *) libsuff= shlibsuff= libmagic=never-match;;
9846 esac
9847 ;;
9848 esac
9849 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9850 shlibpath_overrides_runpath=no
9851 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9852 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9853 hardcode_into_libs=yes
9854 ;;
9855
9856# No shared lib support for Linux oldld, aout, or coff.
9857linux*oldld* | linux*aout* | linux*coff*)
9858 dynamic_linker=no
9859 ;;
9860
9861# This must be Linux ELF.
ac40fd9e 9862linux* | k*bsd*-gnu)
d9898ee8 9863 version_type=linux
9864 need_lib_prefix=no
9865 need_version=no
9866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9867 soname_spec='${libname}${release}${shared_ext}$major'
9868 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9869 shlibpath_var=LD_LIBRARY_PATH
9870 shlibpath_overrides_runpath=no
8d138742
CE
9871 # Some binutils ld are patched to set DT_RUNPATH
9872 save_LDFLAGS=$LDFLAGS
9873 save_libdir=$libdir
9874 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9875 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9876 cat >conftest.$ac_ext <<_ACEOF
9877/* confdefs.h. */
9878_ACEOF
9879cat confdefs.h >>conftest.$ac_ext
9880cat >>conftest.$ac_ext <<_ACEOF
9881/* end confdefs.h. */
9882
9883int
9884main ()
9885{
9886
9887 ;
9888 return 0;
9889}
9890_ACEOF
9891rm -f conftest.$ac_objext conftest$ac_exeext
9892if { (ac_try="$ac_link"
9893case "(($ac_try" in
9894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9895 *) ac_try_echo=$ac_try;;
9896esac
9897eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9898$as_echo "$ac_try_echo") >&5
9899 (eval "$ac_link") 2>conftest.er1
9900 ac_status=$?
9901 grep -v '^ *+' conftest.er1 >conftest.err
9902 rm -f conftest.er1
9903 cat conftest.err >&5
9904 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9905 (exit $ac_status); } && {
9906 test -z "$ac_c_werror_flag" ||
9907 test ! -s conftest.err
9908 } && test -s conftest$ac_exeext && {
9909 test "$cross_compiling" = yes ||
9910 $as_test_x conftest$ac_exeext
9911 }; then
9912 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
9913 shlibpath_overrides_runpath=yes
9914fi
9915
9916else
9917 $as_echo "$as_me: failed program was:" >&5
9918sed 's/^/| /' conftest.$ac_ext >&5
9919
9920
9921fi
9922
9923rm -rf conftest.dSYM
9924rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9925 conftest$ac_exeext conftest.$ac_ext
9926 LDFLAGS=$save_LDFLAGS
9927 libdir=$save_libdir
9928
d9898ee8 9929 # This implies no fast_install, which is unacceptable.
9930 # Some rework will be needed to allow for fast_install
9931 # before this can be enabled.
9932 hardcode_into_libs=yes
8d138742
CE
9933
9934 # Add ABI-specific directories to the system library path.
9935 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
d9898ee8 9936
9937 # Append ld.so.conf contents to the search path
9938 if test -f /etc/ld.so.conf; then
8d138742 9939 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
ac40fd9e 9940 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
d9898ee8 9941 fi
9942
9943 # We used to test for /lib/ld.so.1 and disable shared libraries on
9944 # powerpc, because MkLinux only supported shared libraries with the
9945 # GNU dynamic linker. Since this was broken with cross compilers,
9946 # most powerpc-linux boxes support dynamic linking these days and
9947 # people can always --disable-shared, the test was removed, and we
9948 # assume the GNU/Linux dynamic linker is in use.
9949 dynamic_linker='GNU/Linux ld.so'
9950 ;;
9951
d9898ee8 9952netbsd*)
9953 version_type=sunos
9954 need_lib_prefix=no
9955 need_version=no
8d138742 9956 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
d9898ee8 9957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9958 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9959 dynamic_linker='NetBSD (a.out) ld.so'
9960 else
9961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9962 soname_spec='${libname}${release}${shared_ext}$major'
9963 dynamic_linker='NetBSD ld.elf_so'
9964 fi
9965 shlibpath_var=LD_LIBRARY_PATH
9966 shlibpath_overrides_runpath=yes
9967 hardcode_into_libs=yes
9968 ;;
9969
9970newsos6)
9971 version_type=linux
9972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9973 shlibpath_var=LD_LIBRARY_PATH
9974 shlibpath_overrides_runpath=yes
9975 ;;
9976
8d138742
CE
9977*nto* | *qnx*)
9978 version_type=qnx
d9898ee8 9979 need_lib_prefix=no
9980 need_version=no
9981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9982 soname_spec='${libname}${release}${shared_ext}$major'
9983 shlibpath_var=LD_LIBRARY_PATH
8d138742
CE
9984 shlibpath_overrides_runpath=no
9985 hardcode_into_libs=yes
9986 dynamic_linker='ldqnx.so'
d9898ee8 9987 ;;
9988
9989openbsd*)
9990 version_type=sunos
9991 sys_lib_dlsearch_path_spec="/usr/lib"
9992 need_lib_prefix=no
9993 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9994 case $host_os in
8d138742
CE
9995 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9996 *) need_version=no ;;
d9898ee8 9997 esac
9998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9999 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10000 shlibpath_var=LD_LIBRARY_PATH
8d138742 10001 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
d9898ee8 10002 case $host_os in
10003 openbsd2.[89] | openbsd2.[89].*)
10004 shlibpath_overrides_runpath=no
10005 ;;
10006 *)
10007 shlibpath_overrides_runpath=yes
10008 ;;
10009 esac
10010 else
10011 shlibpath_overrides_runpath=yes
10012 fi
10013 ;;
10014
10015os2*)
10016 libname_spec='$name'
10017 shrext_cmds=".dll"
10018 need_lib_prefix=no
10019 library_names_spec='$libname${shared_ext} $libname.a'
10020 dynamic_linker='OS/2 ld.exe'
10021 shlibpath_var=LIBPATH
10022 ;;
10023
10024osf3* | osf4* | osf5*)
10025 version_type=osf
10026 need_lib_prefix=no
10027 need_version=no
10028 soname_spec='${libname}${release}${shared_ext}$major'
10029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10030 shlibpath_var=LD_LIBRARY_PATH
10031 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10032 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10033 ;;
10034
ac40fd9e 10035rdos*)
10036 dynamic_linker=no
10037 ;;
10038
d9898ee8 10039solaris*)
10040 version_type=linux
10041 need_lib_prefix=no
10042 need_version=no
10043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10044 soname_spec='${libname}${release}${shared_ext}$major'
10045 shlibpath_var=LD_LIBRARY_PATH
10046 shlibpath_overrides_runpath=yes
10047 hardcode_into_libs=yes
10048 # ldd complains unless libraries are executable
10049 postinstall_cmds='chmod +x $lib'
10050 ;;
10051
10052sunos4*)
10053 version_type=sunos
10054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10055 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10056 shlibpath_var=LD_LIBRARY_PATH
10057 shlibpath_overrides_runpath=yes
10058 if test "$with_gnu_ld" = yes; then
10059 need_lib_prefix=no
10060 fi
10061 need_version=yes
10062 ;;
10063
10064sysv4 | sysv4.3*)
10065 version_type=linux
10066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10067 soname_spec='${libname}${release}${shared_ext}$major'
10068 shlibpath_var=LD_LIBRARY_PATH
10069 case $host_vendor in
10070 sni)
10071 shlibpath_overrides_runpath=no
10072 need_lib_prefix=no
d9898ee8 10073 runpath_var=LD_RUN_PATH
10074 ;;
10075 siemens)
10076 need_lib_prefix=no
10077 ;;
10078 motorola)
10079 need_lib_prefix=no
10080 need_version=no
10081 shlibpath_overrides_runpath=no
10082 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10083 ;;
10084 esac
10085 ;;
10086
10087sysv4*MP*)
10088 if test -d /usr/nec ;then
10089 version_type=linux
10090 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10091 soname_spec='$libname${shared_ext}.$major'
10092 shlibpath_var=LD_LIBRARY_PATH
10093 fi
10094 ;;
10095
10096sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10097 version_type=freebsd-elf
10098 need_lib_prefix=no
10099 need_version=no
10100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10101 soname_spec='${libname}${release}${shared_ext}$major'
10102 shlibpath_var=LD_LIBRARY_PATH
8d138742 10103 shlibpath_overrides_runpath=yes
d9898ee8 10104 hardcode_into_libs=yes
10105 if test "$with_gnu_ld" = yes; then
10106 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
d9898ee8 10107 else
10108 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
d9898ee8 10109 case $host_os in
10110 sco3.2v5*)
10111 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10112 ;;
10113 esac
10114 fi
10115 sys_lib_dlsearch_path_spec='/usr/lib'
10116 ;;
10117
8d138742
CE
10118tpf*)
10119 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10120 version_type=linux
10121 need_lib_prefix=no
10122 need_version=no
10123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10124 shlibpath_var=LD_LIBRARY_PATH
10125 shlibpath_overrides_runpath=no
10126 hardcode_into_libs=yes
10127 ;;
10128
d9898ee8 10129uts4*)
10130 version_type=linux
10131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10132 soname_spec='${libname}${release}${shared_ext}$major'
10133 shlibpath_var=LD_LIBRARY_PATH
10134 ;;
10135
10136*)
10137 dynamic_linker=no
10138 ;;
10139esac
8d138742
CE
10140{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10141$as_echo "$dynamic_linker" >&6; }
d9898ee8 10142test "$dynamic_linker" = no && can_build_shared=no
10143
10144variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10145if test "$GCC" = yes; then
10146 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10147fi
10148
8d138742
CE
10149if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10150 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
d9898ee8 10151fi
8d138742
CE
10152if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10153 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
d9898ee8 10154fi
10155
10156
d9898ee8 10157
d9898ee8 10158
d9898ee8 10159
d9898ee8 10160
d9898ee8 10161
d9898ee8 10162
d9898ee8 10163
d9898ee8 10164
d9898ee8 10165
d9898ee8 10166
d9898ee8 10167
d9898ee8 10168
d9898ee8 10169
d9898ee8 10170
d9898ee8 10171
d9898ee8 10172
d9898ee8 10173
d9898ee8 10174
d9898ee8 10175
d9898ee8 10176
d9898ee8 10177
d9898ee8 10178
d9898ee8 10179
d9898ee8 10180
d9898ee8 10181
d9898ee8 10182
d9898ee8 10183
d9898ee8 10184
d9898ee8 10185
d9898ee8 10186
d9898ee8 10187
d9898ee8 10188
d9898ee8 10189
d9898ee8 10190
d9898ee8 10191
d9898ee8 10192
d9898ee8 10193
d9898ee8 10194
d9898ee8 10195
d9898ee8 10196
d9898ee8 10197
d9898ee8 10198
d9898ee8 10199
d9898ee8 10200
d9898ee8 10201
d9898ee8 10202
d9898ee8 10203
d9898ee8 10204
d9898ee8 10205
d9898ee8 10206
d9898ee8 10207
d9898ee8 10208
d9898ee8 10209
d9898ee8 10210
d9898ee8 10211
d9898ee8 10212
d9898ee8 10213
d9898ee8 10214
d9898ee8 10215
d9898ee8 10216
d9898ee8 10217
d9898ee8 10218
d9898ee8 10219
d9898ee8 10220
d9898ee8 10221
d9898ee8 10222
d9898ee8 10223
d9898ee8 10224
d9898ee8 10225
d9898ee8 10226
d9898ee8 10227
d9898ee8 10228
d9898ee8 10229
d9898ee8 10230
d9898ee8 10231
d9898ee8 10232
d9898ee8 10233
d9898ee8 10234
d9898ee8 10235
d9898ee8 10236
d9898ee8 10237
d9898ee8 10238
d9898ee8 10239
d9898ee8 10240
d9898ee8 10241
8d138742
CE
10242 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10243$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10244hardcode_action=
10245if test -n "$hardcode_libdir_flag_spec" ||
10246 test -n "$runpath_var" ||
10247 test "X$hardcode_automatic" = "Xyes" ; then
10248
10249 # We can hardcode non-existent directories.
10250 if test "$hardcode_direct" != no &&
10251 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10252 # have to relink, otherwise we might link with an installed library
10253 # when we should be linking with a yet-to-be-installed one
10254 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10255 test "$hardcode_minus_L" != no; then
10256 # Linking always hardcodes the temporary library directory.
10257 hardcode_action=relink
10258 else
10259 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10260 hardcode_action=immediate
10261 fi
10262else
10263 # We cannot hardcode anything, or else we can only hardcode existing
10264 # directories.
10265 hardcode_action=unsupported
10266fi
10267{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
10268$as_echo "$hardcode_action" >&6; }
10269
10270if test "$hardcode_action" = relink ||
10271 test "$inherit_rpath" = yes; then
10272 # Fast installation is not supported
10273 enable_fast_install=no
10274elif test "$shlibpath_overrides_runpath" = yes ||
10275 test "$enable_shared" = no; then
10276 # Fast installation is not necessary
10277 enable_fast_install=needless
10278fi
10279
10280
10281
10282
10283
10284
10285 if test "x$enable_dlopen" != xyes; then
10286 enable_dlopen=unknown
10287 enable_dlopen_self=unknown
10288 enable_dlopen_self_static=unknown
10289else
10290 lt_cv_dlopen=no
10291 lt_cv_dlopen_libs=
10292
10293 case $host_os in
10294 beos*)
10295 lt_cv_dlopen="load_add_on"
10296 lt_cv_dlopen_libs=
10297 lt_cv_dlopen_self=yes
10298 ;;
10299
10300 mingw* | pw32* | cegcc*)
10301 lt_cv_dlopen="LoadLibrary"
10302 lt_cv_dlopen_libs=
10303 ;;
10304
10305 cygwin*)
10306 lt_cv_dlopen="dlopen"
10307 lt_cv_dlopen_libs=
10308 ;;
10309
10310 darwin*)
10311 # if libdl is installed we need to link against it
10312 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10313$as_echo_n "checking for dlopen in -ldl... " >&6; }
10314if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10315 $as_echo_n "(cached) " >&6
10316else
10317 ac_check_lib_save_LIBS=$LIBS
10318LIBS="-ldl $LIBS"
10319cat >conftest.$ac_ext <<_ACEOF
10320/* confdefs.h. */
10321_ACEOF
10322cat confdefs.h >>conftest.$ac_ext
10323cat >>conftest.$ac_ext <<_ACEOF
10324/* end confdefs.h. */
10325
10326/* Override any GCC internal prototype to avoid an error.
10327 Use char because int might match the return type of a GCC
10328 builtin and then its argument prototype would still apply. */
10329#ifdef __cplusplus
10330extern "C"
10331#endif
10332char dlopen ();
10333int
10334main ()
10335{
10336return dlopen ();
10337 ;
10338 return 0;
10339}
10340_ACEOF
10341rm -f conftest.$ac_objext conftest$ac_exeext
10342if { (ac_try="$ac_link"
10343case "(($ac_try" in
10344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10345 *) ac_try_echo=$ac_try;;
10346esac
10347eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10348$as_echo "$ac_try_echo") >&5
10349 (eval "$ac_link") 2>conftest.er1
10350 ac_status=$?
10351 grep -v '^ *+' conftest.er1 >conftest.err
10352 rm -f conftest.er1
10353 cat conftest.err >&5
10354 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10355 (exit $ac_status); } && {
10356 test -z "$ac_c_werror_flag" ||
10357 test ! -s conftest.err
10358 } && test -s conftest$ac_exeext && {
10359 test "$cross_compiling" = yes ||
10360 $as_test_x conftest$ac_exeext
10361 }; then
10362 ac_cv_lib_dl_dlopen=yes
10363else
10364 $as_echo "$as_me: failed program was:" >&5
10365sed 's/^/| /' conftest.$ac_ext >&5
10366
10367 ac_cv_lib_dl_dlopen=no
10368fi
10369
10370rm -rf conftest.dSYM
10371rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10372 conftest$ac_exeext conftest.$ac_ext
10373LIBS=$ac_check_lib_save_LIBS
10374fi
10375{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10376$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10377if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10378 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10379else
10380
10381 lt_cv_dlopen="dyld"
10382 lt_cv_dlopen_libs=
10383 lt_cv_dlopen_self=yes
10384
10385fi
10386
10387 ;;
10388
10389 *)
10390 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
10391$as_echo_n "checking for shl_load... " >&6; }
10392if test "${ac_cv_func_shl_load+set}" = set; then
10393 $as_echo_n "(cached) " >&6
10394else
10395 cat >conftest.$ac_ext <<_ACEOF
10396/* confdefs.h. */
10397_ACEOF
10398cat confdefs.h >>conftest.$ac_ext
10399cat >>conftest.$ac_ext <<_ACEOF
10400/* end confdefs.h. */
10401/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10402 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10403#define shl_load innocuous_shl_load
10404
10405/* System header to define __stub macros and hopefully few prototypes,
10406 which can conflict with char shl_load (); below.
10407 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10408 <limits.h> exists even on freestanding compilers. */
10409
10410#ifdef __STDC__
10411# include <limits.h>
10412#else
10413# include <assert.h>
10414#endif
10415
10416#undef shl_load
10417
10418/* Override any GCC internal prototype to avoid an error.
10419 Use char because int might match the return type of a GCC
10420 builtin and then its argument prototype would still apply. */
10421#ifdef __cplusplus
10422extern "C"
10423#endif
10424char shl_load ();
10425/* The GNU C library defines this for functions which it implements
10426 to always fail with ENOSYS. Some functions are actually named
10427 something starting with __ and the normal name is an alias. */
10428#if defined __stub_shl_load || defined __stub___shl_load
10429choke me
10430#endif
10431
10432int
10433main ()
10434{
10435return shl_load ();
10436 ;
10437 return 0;
10438}
10439_ACEOF
10440rm -f conftest.$ac_objext conftest$ac_exeext
10441if { (ac_try="$ac_link"
10442case "(($ac_try" in
10443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10444 *) ac_try_echo=$ac_try;;
10445esac
10446eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10447$as_echo "$ac_try_echo") >&5
10448 (eval "$ac_link") 2>conftest.er1
10449 ac_status=$?
10450 grep -v '^ *+' conftest.er1 >conftest.err
10451 rm -f conftest.er1
10452 cat conftest.err >&5
10453 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10454 (exit $ac_status); } && {
10455 test -z "$ac_c_werror_flag" ||
10456 test ! -s conftest.err
10457 } && test -s conftest$ac_exeext && {
10458 test "$cross_compiling" = yes ||
10459 $as_test_x conftest$ac_exeext
10460 }; then
10461 ac_cv_func_shl_load=yes
10462else
10463 $as_echo "$as_me: failed program was:" >&5
10464sed 's/^/| /' conftest.$ac_ext >&5
10465
10466 ac_cv_func_shl_load=no
10467fi
10468
10469rm -rf conftest.dSYM
10470rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10471 conftest$ac_exeext conftest.$ac_ext
10472fi
10473{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10474$as_echo "$ac_cv_func_shl_load" >&6; }
10475if test "x$ac_cv_func_shl_load" = x""yes; then
10476 lt_cv_dlopen="shl_load"
10477else
10478 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10479$as_echo_n "checking for shl_load in -ldld... " >&6; }
10480if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10481 $as_echo_n "(cached) " >&6
10482else
10483 ac_check_lib_save_LIBS=$LIBS
10484LIBS="-ldld $LIBS"
10485cat >conftest.$ac_ext <<_ACEOF
10486/* confdefs.h. */
10487_ACEOF
10488cat confdefs.h >>conftest.$ac_ext
10489cat >>conftest.$ac_ext <<_ACEOF
10490/* end confdefs.h. */
10491
10492/* Override any GCC internal prototype to avoid an error.
10493 Use char because int might match the return type of a GCC
10494 builtin and then its argument prototype would still apply. */
10495#ifdef __cplusplus
10496extern "C"
10497#endif
10498char shl_load ();
10499int
10500main ()
10501{
10502return shl_load ();
10503 ;
10504 return 0;
10505}
10506_ACEOF
10507rm -f conftest.$ac_objext conftest$ac_exeext
10508if { (ac_try="$ac_link"
10509case "(($ac_try" in
10510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10511 *) ac_try_echo=$ac_try;;
10512esac
10513eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10514$as_echo "$ac_try_echo") >&5
10515 (eval "$ac_link") 2>conftest.er1
10516 ac_status=$?
10517 grep -v '^ *+' conftest.er1 >conftest.err
10518 rm -f conftest.er1
10519 cat conftest.err >&5
10520 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10521 (exit $ac_status); } && {
10522 test -z "$ac_c_werror_flag" ||
10523 test ! -s conftest.err
10524 } && test -s conftest$ac_exeext && {
10525 test "$cross_compiling" = yes ||
10526 $as_test_x conftest$ac_exeext
10527 }; then
10528 ac_cv_lib_dld_shl_load=yes
10529else
10530 $as_echo "$as_me: failed program was:" >&5
10531sed 's/^/| /' conftest.$ac_ext >&5
10532
10533 ac_cv_lib_dld_shl_load=no
10534fi
10535
10536rm -rf conftest.dSYM
10537rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10538 conftest$ac_exeext conftest.$ac_ext
10539LIBS=$ac_check_lib_save_LIBS
10540fi
10541{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10542$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10543if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10544 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10545else
10546 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10547$as_echo_n "checking for dlopen... " >&6; }
10548if test "${ac_cv_func_dlopen+set}" = set; then
10549 $as_echo_n "(cached) " >&6
10550else
10551 cat >conftest.$ac_ext <<_ACEOF
10552/* confdefs.h. */
10553_ACEOF
10554cat confdefs.h >>conftest.$ac_ext
10555cat >>conftest.$ac_ext <<_ACEOF
10556/* end confdefs.h. */
10557/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10558 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10559#define dlopen innocuous_dlopen
10560
10561/* System header to define __stub macros and hopefully few prototypes,
10562 which can conflict with char dlopen (); below.
10563 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10564 <limits.h> exists even on freestanding compilers. */
10565
10566#ifdef __STDC__
10567# include <limits.h>
10568#else
10569# include <assert.h>
10570#endif
10571
10572#undef dlopen
10573
10574/* Override any GCC internal prototype to avoid an error.
10575 Use char because int might match the return type of a GCC
10576 builtin and then its argument prototype would still apply. */
10577#ifdef __cplusplus
10578extern "C"
10579#endif
10580char dlopen ();
10581/* The GNU C library defines this for functions which it implements
10582 to always fail with ENOSYS. Some functions are actually named
10583 something starting with __ and the normal name is an alias. */
10584#if defined __stub_dlopen || defined __stub___dlopen
10585choke me
10586#endif
10587
10588int
10589main ()
10590{
10591return dlopen ();
10592 ;
10593 return 0;
10594}
10595_ACEOF
10596rm -f conftest.$ac_objext conftest$ac_exeext
10597if { (ac_try="$ac_link"
10598case "(($ac_try" in
10599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10600 *) ac_try_echo=$ac_try;;
10601esac
10602eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10603$as_echo "$ac_try_echo") >&5
10604 (eval "$ac_link") 2>conftest.er1
10605 ac_status=$?
10606 grep -v '^ *+' conftest.er1 >conftest.err
10607 rm -f conftest.er1
10608 cat conftest.err >&5
10609 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10610 (exit $ac_status); } && {
10611 test -z "$ac_c_werror_flag" ||
10612 test ! -s conftest.err
10613 } && test -s conftest$ac_exeext && {
10614 test "$cross_compiling" = yes ||
10615 $as_test_x conftest$ac_exeext
10616 }; then
10617 ac_cv_func_dlopen=yes
10618else
10619 $as_echo "$as_me: failed program was:" >&5
10620sed 's/^/| /' conftest.$ac_ext >&5
10621
10622 ac_cv_func_dlopen=no
10623fi
10624
10625rm -rf conftest.dSYM
10626rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10627 conftest$ac_exeext conftest.$ac_ext
10628fi
10629{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10630$as_echo "$ac_cv_func_dlopen" >&6; }
10631if test "x$ac_cv_func_dlopen" = x""yes; then
10632 lt_cv_dlopen="dlopen"
10633else
10634 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10635$as_echo_n "checking for dlopen in -ldl... " >&6; }
10636if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10637 $as_echo_n "(cached) " >&6
10638else
10639 ac_check_lib_save_LIBS=$LIBS
10640LIBS="-ldl $LIBS"
10641cat >conftest.$ac_ext <<_ACEOF
10642/* confdefs.h. */
10643_ACEOF
10644cat confdefs.h >>conftest.$ac_ext
10645cat >>conftest.$ac_ext <<_ACEOF
10646/* end confdefs.h. */
10647
10648/* Override any GCC internal prototype to avoid an error.
10649 Use char because int might match the return type of a GCC
10650 builtin and then its argument prototype would still apply. */
10651#ifdef __cplusplus
10652extern "C"
10653#endif
10654char dlopen ();
10655int
10656main ()
10657{
10658return dlopen ();
10659 ;
10660 return 0;
10661}
10662_ACEOF
10663rm -f conftest.$ac_objext conftest$ac_exeext
10664if { (ac_try="$ac_link"
10665case "(($ac_try" in
10666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10667 *) ac_try_echo=$ac_try;;
10668esac
10669eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10670$as_echo "$ac_try_echo") >&5
10671 (eval "$ac_link") 2>conftest.er1
10672 ac_status=$?
10673 grep -v '^ *+' conftest.er1 >conftest.err
10674 rm -f conftest.er1
10675 cat conftest.err >&5
10676 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10677 (exit $ac_status); } && {
10678 test -z "$ac_c_werror_flag" ||
10679 test ! -s conftest.err
10680 } && test -s conftest$ac_exeext && {
10681 test "$cross_compiling" = yes ||
10682 $as_test_x conftest$ac_exeext
10683 }; then
10684 ac_cv_lib_dl_dlopen=yes
10685else
10686 $as_echo "$as_me: failed program was:" >&5
10687sed 's/^/| /' conftest.$ac_ext >&5
10688
10689 ac_cv_lib_dl_dlopen=no
10690fi
10691
10692rm -rf conftest.dSYM
10693rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10694 conftest$ac_exeext conftest.$ac_ext
10695LIBS=$ac_check_lib_save_LIBS
10696fi
10697{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10698$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10699if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10700 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10701else
10702 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10703$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10704if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10705 $as_echo_n "(cached) " >&6
10706else
10707 ac_check_lib_save_LIBS=$LIBS
10708LIBS="-lsvld $LIBS"
10709cat >conftest.$ac_ext <<_ACEOF
10710/* confdefs.h. */
10711_ACEOF
10712cat confdefs.h >>conftest.$ac_ext
10713cat >>conftest.$ac_ext <<_ACEOF
10714/* end confdefs.h. */
10715
10716/* Override any GCC internal prototype to avoid an error.
10717 Use char because int might match the return type of a GCC
10718 builtin and then its argument prototype would still apply. */
10719#ifdef __cplusplus
10720extern "C"
10721#endif
10722char dlopen ();
10723int
10724main ()
10725{
10726return dlopen ();
10727 ;
10728 return 0;
10729}
10730_ACEOF
10731rm -f conftest.$ac_objext conftest$ac_exeext
10732if { (ac_try="$ac_link"
10733case "(($ac_try" in
10734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10735 *) ac_try_echo=$ac_try;;
10736esac
10737eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10738$as_echo "$ac_try_echo") >&5
10739 (eval "$ac_link") 2>conftest.er1
10740 ac_status=$?
10741 grep -v '^ *+' conftest.er1 >conftest.err
10742 rm -f conftest.er1
10743 cat conftest.err >&5
10744 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10745 (exit $ac_status); } && {
10746 test -z "$ac_c_werror_flag" ||
10747 test ! -s conftest.err
10748 } && test -s conftest$ac_exeext && {
10749 test "$cross_compiling" = yes ||
10750 $as_test_x conftest$ac_exeext
10751 }; then
10752 ac_cv_lib_svld_dlopen=yes
10753else
10754 $as_echo "$as_me: failed program was:" >&5
10755sed 's/^/| /' conftest.$ac_ext >&5
10756
10757 ac_cv_lib_svld_dlopen=no
10758fi
10759
10760rm -rf conftest.dSYM
10761rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10762 conftest$ac_exeext conftest.$ac_ext
10763LIBS=$ac_check_lib_save_LIBS
10764fi
10765{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10766$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10767if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
10768 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10769else
10770 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10771$as_echo_n "checking for dld_link in -ldld... " >&6; }
10772if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10773 $as_echo_n "(cached) " >&6
10774else
10775 ac_check_lib_save_LIBS=$LIBS
10776LIBS="-ldld $LIBS"
10777cat >conftest.$ac_ext <<_ACEOF
10778/* confdefs.h. */
10779_ACEOF
10780cat confdefs.h >>conftest.$ac_ext
10781cat >>conftest.$ac_ext <<_ACEOF
10782/* end confdefs.h. */
10783
10784/* Override any GCC internal prototype to avoid an error.
10785 Use char because int might match the return type of a GCC
10786 builtin and then its argument prototype would still apply. */
10787#ifdef __cplusplus
10788extern "C"
10789#endif
10790char dld_link ();
10791int
10792main ()
10793{
10794return dld_link ();
10795 ;
10796 return 0;
10797}
10798_ACEOF
10799rm -f conftest.$ac_objext conftest$ac_exeext
10800if { (ac_try="$ac_link"
10801case "(($ac_try" in
10802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10803 *) ac_try_echo=$ac_try;;
10804esac
10805eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10806$as_echo "$ac_try_echo") >&5
10807 (eval "$ac_link") 2>conftest.er1
10808 ac_status=$?
10809 grep -v '^ *+' conftest.er1 >conftest.err
10810 rm -f conftest.er1
10811 cat conftest.err >&5
10812 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10813 (exit $ac_status); } && {
10814 test -z "$ac_c_werror_flag" ||
10815 test ! -s conftest.err
10816 } && test -s conftest$ac_exeext && {
10817 test "$cross_compiling" = yes ||
10818 $as_test_x conftest$ac_exeext
10819 }; then
10820 ac_cv_lib_dld_dld_link=yes
10821else
10822 $as_echo "$as_me: failed program was:" >&5
10823sed 's/^/| /' conftest.$ac_ext >&5
10824
10825 ac_cv_lib_dld_dld_link=no
10826fi
10827
10828rm -rf conftest.dSYM
10829rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10830 conftest$ac_exeext conftest.$ac_ext
10831LIBS=$ac_check_lib_save_LIBS
10832fi
10833{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10834$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10835if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
10836 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10837fi
10838
10839
10840fi
10841
10842
10843fi
10844
10845
10846fi
10847
10848
10849fi
10850
10851
10852fi
10853
10854 ;;
10855 esac
10856
10857 if test "x$lt_cv_dlopen" != xno; then
10858 enable_dlopen=yes
10859 else
10860 enable_dlopen=no
10861 fi
10862
10863 case $lt_cv_dlopen in
10864 dlopen)
10865 save_CPPFLAGS="$CPPFLAGS"
10866 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10867
10868 save_LDFLAGS="$LDFLAGS"
10869 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10870
10871 save_LIBS="$LIBS"
10872 LIBS="$lt_cv_dlopen_libs $LIBS"
10873
10874 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10875$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10876if test "${lt_cv_dlopen_self+set}" = set; then
10877 $as_echo_n "(cached) " >&6
10878else
10879 if test "$cross_compiling" = yes; then :
10880 lt_cv_dlopen_self=cross
10881else
10882 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10883 lt_status=$lt_dlunknown
10884 cat > conftest.$ac_ext <<_LT_EOF
10885#line 10885 "configure"
10886#include "confdefs.h"
10887
10888#if HAVE_DLFCN_H
10889#include <dlfcn.h>
10890#endif
10891
10892#include <stdio.h>
10893
10894#ifdef RTLD_GLOBAL
10895# define LT_DLGLOBAL RTLD_GLOBAL
10896#else
10897# ifdef DL_GLOBAL
10898# define LT_DLGLOBAL DL_GLOBAL
10899# else
10900# define LT_DLGLOBAL 0
10901# endif
10902#endif
10903
10904/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10905 find out it does not work in some platform. */
10906#ifndef LT_DLLAZY_OR_NOW
10907# ifdef RTLD_LAZY
10908# define LT_DLLAZY_OR_NOW RTLD_LAZY
10909# else
10910# ifdef DL_LAZY
10911# define LT_DLLAZY_OR_NOW DL_LAZY
10912# else
10913# ifdef RTLD_NOW
10914# define LT_DLLAZY_OR_NOW RTLD_NOW
10915# else
10916# ifdef DL_NOW
10917# define LT_DLLAZY_OR_NOW DL_NOW
10918# else
10919# define LT_DLLAZY_OR_NOW 0
10920# endif
10921# endif
10922# endif
10923# endif
10924#endif
10925
10926void fnord() { int i=42;}
10927int main ()
10928{
10929 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10930 int status = $lt_dlunknown;
10931
10932 if (self)
10933 {
10934 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10935 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10936 /* dlclose (self); */
10937 }
10938 else
10939 puts (dlerror ());
d9898ee8 10940
8d138742
CE
10941 return status;
10942}
10943_LT_EOF
10944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10945 (eval $ac_link) 2>&5
10946 ac_status=$?
10947 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10948 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10949 (./conftest; exit; ) >&5 2>/dev/null
10950 lt_status=$?
10951 case x$lt_status in
10952 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10953 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10954 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10955 esac
10956 else :
10957 # compilation failed
10958 lt_cv_dlopen_self=no
10959 fi
10960fi
10961rm -fr conftest*
d9898ee8 10962
d9898ee8 10963
8d138742
CE
10964fi
10965{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10966$as_echo "$lt_cv_dlopen_self" >&6; }
d9898ee8 10967
8d138742
CE
10968 if test "x$lt_cv_dlopen_self" = xyes; then
10969 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10970 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10971$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10972if test "${lt_cv_dlopen_self_static+set}" = set; then
10973 $as_echo_n "(cached) " >&6
10974else
10975 if test "$cross_compiling" = yes; then :
10976 lt_cv_dlopen_self_static=cross
10977else
10978 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10979 lt_status=$lt_dlunknown
10980 cat > conftest.$ac_ext <<_LT_EOF
10981#line 10981 "configure"
10982#include "confdefs.h"
d9898ee8 10983
8d138742
CE
10984#if HAVE_DLFCN_H
10985#include <dlfcn.h>
10986#endif
d9898ee8 10987
8d138742 10988#include <stdio.h>
d9898ee8 10989
8d138742
CE
10990#ifdef RTLD_GLOBAL
10991# define LT_DLGLOBAL RTLD_GLOBAL
10992#else
10993# ifdef DL_GLOBAL
10994# define LT_DLGLOBAL DL_GLOBAL
10995# else
10996# define LT_DLGLOBAL 0
10997# endif
10998#endif
d9898ee8 10999
8d138742
CE
11000/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11001 find out it does not work in some platform. */
11002#ifndef LT_DLLAZY_OR_NOW
11003# ifdef RTLD_LAZY
11004# define LT_DLLAZY_OR_NOW RTLD_LAZY
11005# else
11006# ifdef DL_LAZY
11007# define LT_DLLAZY_OR_NOW DL_LAZY
11008# else
11009# ifdef RTLD_NOW
11010# define LT_DLLAZY_OR_NOW RTLD_NOW
11011# else
11012# ifdef DL_NOW
11013# define LT_DLLAZY_OR_NOW DL_NOW
11014# else
11015# define LT_DLLAZY_OR_NOW 0
11016# endif
11017# endif
11018# endif
11019# endif
11020#endif
d9898ee8 11021
8d138742
CE
11022void fnord() { int i=42;}
11023int main ()
11024{
11025 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11026 int status = $lt_dlunknown;
d9898ee8 11027
8d138742
CE
11028 if (self)
11029 {
11030 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11031 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11032 /* dlclose (self); */
11033 }
11034 else
11035 puts (dlerror ());
d9898ee8 11036
8d138742
CE
11037 return status;
11038}
11039_LT_EOF
11040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11041 (eval $ac_link) 2>&5
11042 ac_status=$?
11043 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11044 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11045 (./conftest; exit; ) >&5 2>/dev/null
11046 lt_status=$?
11047 case x$lt_status in
11048 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11049 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11050 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11051 esac
11052 else :
11053 # compilation failed
11054 lt_cv_dlopen_self_static=no
11055 fi
11056fi
11057rm -fr conftest*
d9898ee8 11058
11059
d9898ee8 11060fi
8d138742
CE
11061{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11062$as_echo "$lt_cv_dlopen_self_static" >&6; }
11063 fi
d9898ee8 11064
8d138742
CE
11065 CPPFLAGS="$save_CPPFLAGS"
11066 LDFLAGS="$save_LDFLAGS"
11067 LIBS="$save_LIBS"
11068 ;;
11069 esac
d9898ee8 11070
8d138742
CE
11071 case $lt_cv_dlopen_self in
11072 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11073 *) enable_dlopen_self=unknown ;;
11074 esac
d9898ee8 11075
8d138742
CE
11076 case $lt_cv_dlopen_self_static in
11077 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11078 *) enable_dlopen_self_static=unknown ;;
11079 esac
11080fi
d9898ee8 11081
d9898ee8 11082
d9898ee8 11083
11084
d9898ee8 11085
d9898ee8 11086
d9898ee8 11087
d9898ee8 11088
d9898ee8 11089
d9898ee8 11090
d9898ee8 11091
d9898ee8 11092
11093
d9898ee8 11094
d9898ee8 11095
11096
d9898ee8 11097
8d138742
CE
11098striplib=
11099old_striplib=
11100{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11101$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11102if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11103 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11104 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11105 { $as_echo "$as_me:$LINENO: result: yes" >&5
11106$as_echo "yes" >&6; }
11107else
11108# FIXME - insert some real tests, host_os isn't really good enough
11109 case $host_os in
11110 darwin*)
11111 if test -n "$STRIP" ; then
11112 striplib="$STRIP -x"
11113 old_striplib="$STRIP -S"
11114 { $as_echo "$as_me:$LINENO: result: yes" >&5
11115$as_echo "yes" >&6; }
11116 else
11117 { $as_echo "$as_me:$LINENO: result: no" >&5
11118$as_echo "no" >&6; }
11119 fi
11120 ;;
11121 *)
11122 { $as_echo "$as_me:$LINENO: result: no" >&5
11123$as_echo "no" >&6; }
d9898ee8 11124 ;;
11125 esac
8d138742 11126fi
d9898ee8 11127
d9898ee8 11128
d9898ee8 11129
d9898ee8 11130
d9898ee8 11131
d9898ee8 11132
d9898ee8 11133
d9898ee8 11134
d9898ee8 11135
d9898ee8 11136
d9898ee8 11137
d9898ee8 11138
8d138742
CE
11139 # Report which library types will actually be built
11140 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11141$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11142 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
11143$as_echo "$can_build_shared" >&6; }
d9898ee8 11144
8d138742
CE
11145 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11146$as_echo_n "checking whether to build shared libraries... " >&6; }
11147 test "$can_build_shared" = "no" && enable_shared=no
d9898ee8 11148
8d138742
CE
11149 # On AIX, shared libraries and static libraries use the same namespace, and
11150 # are all built from PIC.
11151 case $host_os in
11152 aix3*)
11153 test "$enable_shared" = yes && enable_static=no
11154 if test -n "$RANLIB"; then
11155 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11156 postinstall_cmds='$RANLIB $lib'
11157 fi
11158 ;;
d9898ee8 11159
8d138742
CE
11160 aix[4-9]*)
11161 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11162 test "$enable_shared" = yes && enable_static=no
11163 fi
11164 ;;
11165 esac
11166 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
11167$as_echo "$enable_shared" >&6; }
d9898ee8 11168
8d138742
CE
11169 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11170$as_echo_n "checking whether to build static libraries... " >&6; }
11171 # Make sure either enable_shared or enable_static is yes.
11172 test "$enable_shared" = yes || enable_static=yes
11173 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
11174$as_echo "$enable_static" >&6; }
d9898ee8 11175
d9898ee8 11176
d9898ee8 11177
d9898ee8 11178
8d138742
CE
11179fi
11180ac_ext=c
11181ac_cpp='$CPP $CPPFLAGS'
11182ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11183ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11184ac_compiler_gnu=$ac_cv_c_compiler_gnu
d9898ee8 11185
8d138742 11186CC="$lt_save_CC"
d9898ee8 11187
d9898ee8 11188
d9898ee8 11189
d9898ee8 11190
d9898ee8 11191
d9898ee8 11192
d9898ee8 11193
d9898ee8 11194
d9898ee8 11195
d9898ee8 11196
d9898ee8 11197
d9898ee8 11198
d9898ee8 11199
8d138742 11200 ac_config_commands="$ac_config_commands libtool"
d9898ee8 11201
d9898ee8 11202
d9898ee8 11203
d9898ee8 11204
8d138742
CE
11205# Only expand once:
11206
11207
11208for ac_prog in perl5 perl
11209do
11210 # Extract the first word of "$ac_prog", so it can be a program name with args.
11211set dummy $ac_prog; ac_word=$2
11212{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11213$as_echo_n "checking for $ac_word... " >&6; }
11214if test "${ac_cv_path_PERL+set}" = set; then
11215 $as_echo_n "(cached) " >&6
11216else
11217 case $PERL in
11218 [\\/]* | ?:[\\/]*)
11219 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
11220 ;;
11221 *)
11222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11223for as_dir in $LPATH
11224do
11225 IFS=$as_save_IFS
11226 test -z "$as_dir" && as_dir=.
11227 for ac_exec_ext in '' $ac_executable_extensions; do
11228 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11229 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
11230 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11231 break 2
11232 fi
11233done
11234done
11235IFS=$as_save_IFS
d9898ee8 11236
8d138742
CE
11237 ;;
11238esac
11239fi
11240PERL=$ac_cv_path_PERL
11241if test -n "$PERL"; then
11242 { $as_echo "$as_me:$LINENO: result: $PERL" >&5
11243$as_echo "$PERL" >&6; }
11244else
11245 { $as_echo "$as_me:$LINENO: result: no" >&5
11246$as_echo "no" >&6; }
11247fi
d9898ee8 11248
d9898ee8 11249
8d138742
CE
11250 test -n "$PERL" && break
11251done
11252test -n "$PERL" || PERL="perl"
d9898ee8 11253
d9898ee8 11254
8d138742
CE
11255if test "$PERL" = "perl"
11256then
11257 { { $as_echo "$as_me:$LINENO: error: Perl not found." >&5
11258$as_echo "$as_me: error: Perl not found." >&2;}
11259 { (exit 1); exit 1; }; }
11260fi
d9898ee8 11261
8d138742
CE
11262if test "$GCC" = "yes"
11263then
11264 CFLAGS="$CFLAGS -Wall"
11265fi
d9898ee8 11266
8d138742 11267CFLAGS="$CFLAGS -I.. -I${srcdir}/.."
d9898ee8 11268
d9898ee8 11269
d9898ee8 11270
8d138742
CE
11271# Check whether --with-userdb was given.
11272if test "${with_userdb+set}" = set; then
11273 withval=$with_userdb; userdb="$withval"
11274else
11275 userdb="/etc/userdb"
11276fi
d9898ee8 11277
d9898ee8 11278
8d138742 11279USERDB="`echo $userdb | tr 'a-z' 'A-Z'`"
d9898ee8 11280
d9898ee8 11281
d9898ee8 11282
8d138742
CE
11283# Check whether --with-userdbmandir was given.
11284if test "${with_userdbmandir+set}" = set; then
11285 withval=$with_userdbmandir; mandir="$withval"
11286fi
d9898ee8 11287
d9898ee8 11288
d9898ee8 11289
8d138742
CE
11290# Check whether --with-userdbtmpdir was given.
11291if test "${with_userdbtmpdir+set}" = set; then
11292 withval=$with_userdbtmpdir; tmpdir="$withval"
11293else
11294 tmpdir=""
11295fi
d9898ee8 11296
d9898ee8 11297
d9898ee8 11298
d9898ee8 11299
8d138742
CE
11300if test "$tmpdir" = ""
11301then
11302 tmpdir=`echo "$userdb" | sed 's/\/[^\/]*$//'`
11303fi
d9898ee8 11304
d9898ee8 11305
d9898ee8 11306
d9898ee8 11307
d9898ee8 11308
d9898ee8 11309
d9898ee8 11310
8d138742
CE
11311# Check whether --with-makedatprog was given.
11312if test "${with_makedatprog+set}" = set; then
11313 withval=$with_makedatprog; makedat="$withval"
11314else
11315 makedat="$bindir/makedat"
11316fi
d9898ee8 11317
d9898ee8 11318
d9898ee8 11319
8d138742
CE
11320if test -d ${srcdir}/../md5
11321then
d9898ee8 11322
8d138742
CE
11323cat >>confdefs.h <<_ACEOF
11324#define HAVE_MD5 1
11325_ACEOF
d9898ee8 11326
8d138742
CE
11327 MD5LIB=../md5/libmd5.la
11328else
11329 MD5LIB=""
11330fi
d9898ee8 11331
d9898ee8 11332
8d138742
CE
11333if test -d ${srcdir}/../sha1
11334then
11335 SHA1LIB=../sha1/libsha1.la
11336else
11337 SHA1LIB=""
11338fi
d9898ee8 11339
d9898ee8 11340
8d138742
CE
11341if test -d ${srcdir}/../libhmac
11342then
d9898ee8 11343
8d138742
CE
11344cat >>confdefs.h <<_ACEOF
11345#define HAVE_HMAC 1
11346_ACEOF
d9898ee8 11347
8d138742
CE
11348 HMACLIB=../libhmac/libhmac.la
11349else
11350 HMACLIB=""
11351fi
d9898ee8 11352
d9898ee8 11353
8d138742
CE
11354{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
11355$as_echo_n "checking for ANSI C header files... " >&6; }
11356if test "${ac_cv_header_stdc+set}" = set; then
11357 $as_echo_n "(cached) " >&6
11358else
11359 cat >conftest.$ac_ext <<_ACEOF
11360/* confdefs.h. */
11361_ACEOF
11362cat confdefs.h >>conftest.$ac_ext
11363cat >>conftest.$ac_ext <<_ACEOF
11364/* end confdefs.h. */
11365#include <stdlib.h>
11366#include <stdarg.h>
11367#include <string.h>
11368#include <float.h>
d9898ee8 11369
8d138742
CE
11370int
11371main ()
11372{
d9898ee8 11373
8d138742
CE
11374 ;
11375 return 0;
11376}
11377_ACEOF
11378rm -f conftest.$ac_objext
11379if { (ac_try="$ac_compile"
11380case "(($ac_try" in
11381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11382 *) ac_try_echo=$ac_try;;
11383esac
11384eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11385$as_echo "$ac_try_echo") >&5
11386 (eval "$ac_compile") 2>conftest.er1
11387 ac_status=$?
11388 grep -v '^ *+' conftest.er1 >conftest.err
11389 rm -f conftest.er1
11390 cat conftest.err >&5
11391 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11392 (exit $ac_status); } && {
11393 test -z "$ac_c_werror_flag" ||
11394 test ! -s conftest.err
11395 } && test -s conftest.$ac_objext; then
11396 ac_cv_header_stdc=yes
11397else
11398 $as_echo "$as_me: failed program was:" >&5
11399sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 11400
8d138742
CE
11401 ac_cv_header_stdc=no
11402fi
d9898ee8 11403
8d138742 11404rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 11405
8d138742
CE
11406if test $ac_cv_header_stdc = yes; then
11407 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11408 cat >conftest.$ac_ext <<_ACEOF
11409/* confdefs.h. */
11410_ACEOF
11411cat confdefs.h >>conftest.$ac_ext
11412cat >>conftest.$ac_ext <<_ACEOF
11413/* end confdefs.h. */
11414#include <string.h>
d9898ee8 11415
8d138742
CE
11416_ACEOF
11417if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11418 $EGREP "memchr" >/dev/null 2>&1; then
11419 :
11420else
11421 ac_cv_header_stdc=no
11422fi
11423rm -f conftest*
d9898ee8 11424
8d138742 11425fi
d9898ee8 11426
8d138742
CE
11427if test $ac_cv_header_stdc = yes; then
11428 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11429 cat >conftest.$ac_ext <<_ACEOF
11430/* confdefs.h. */
11431_ACEOF
11432cat confdefs.h >>conftest.$ac_ext
11433cat >>conftest.$ac_ext <<_ACEOF
11434/* end confdefs.h. */
11435#include <stdlib.h>
d9898ee8 11436
8d138742
CE
11437_ACEOF
11438if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11439 $EGREP "free" >/dev/null 2>&1; then
11440 :
11441else
11442 ac_cv_header_stdc=no
11443fi
11444rm -f conftest*
d9898ee8 11445
8d138742 11446fi
d9898ee8 11447
8d138742
CE
11448if test $ac_cv_header_stdc = yes; then
11449 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11450 if test "$cross_compiling" = yes; then
11451 :
11452else
11453 cat >conftest.$ac_ext <<_ACEOF
11454/* confdefs.h. */
11455_ACEOF
11456cat confdefs.h >>conftest.$ac_ext
11457cat >>conftest.$ac_ext <<_ACEOF
11458/* end confdefs.h. */
11459#include <ctype.h>
11460#include <stdlib.h>
11461#if ((' ' & 0x0FF) == 0x020)
11462# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11463# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11464#else
11465# define ISLOWER(c) \
11466 (('a' <= (c) && (c) <= 'i') \
11467 || ('j' <= (c) && (c) <= 'r') \
11468 || ('s' <= (c) && (c) <= 'z'))
11469# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11470#endif
d9898ee8 11471
8d138742
CE
11472#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11473int
11474main ()
11475{
11476 int i;
11477 for (i = 0; i < 256; i++)
11478 if (XOR (islower (i), ISLOWER (i))
11479 || toupper (i) != TOUPPER (i))
11480 return 2;
11481 return 0;
11482}
11483_ACEOF
11484rm -f conftest$ac_exeext
11485if { (ac_try="$ac_link"
11486case "(($ac_try" in
11487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11488 *) ac_try_echo=$ac_try;;
11489esac
11490eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11491$as_echo "$ac_try_echo") >&5
11492 (eval "$ac_link") 2>&5
11493 ac_status=$?
11494 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11495 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11496 { (case "(($ac_try" in
11497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11498 *) ac_try_echo=$ac_try;;
11499esac
11500eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11501$as_echo "$ac_try_echo") >&5
11502 (eval "$ac_try") 2>&5
11503 ac_status=$?
11504 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11505 (exit $ac_status); }; }; then
11506 :
11507else
11508 $as_echo "$as_me: program exited with status $ac_status" >&5
11509$as_echo "$as_me: failed program was:" >&5
11510sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 11511
8d138742
CE
11512( exit $ac_status )
11513ac_cv_header_stdc=no
11514fi
11515rm -rf conftest.dSYM
11516rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11517fi
d9898ee8 11518
d9898ee8 11519
8d138742
CE
11520fi
11521fi
11522{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
11523$as_echo "$ac_cv_header_stdc" >&6; }
11524if test $ac_cv_header_stdc = yes; then
d9898ee8 11525
8d138742
CE
11526cat >>confdefs.h <<\_ACEOF
11527#define STDC_HEADERS 1
11528_ACEOF
d9898ee8 11529
d9898ee8 11530fi
11531
11532
d9898ee8 11533
d9898ee8 11534
d9898ee8 11535
d9898ee8 11536
d9898ee8 11537
8d138742
CE
11538for ac_header in sys/stat.h sys/time.h unistd.h fcntl.h termios.h crypt.h
11539do
11540as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11541if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11542 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11543$as_echo_n "checking for $ac_header... " >&6; }
11544if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11545 $as_echo_n "(cached) " >&6
d9898ee8 11546fi
8d138742
CE
11547ac_res=`eval 'as_val=${'$as_ac_Header'}
11548 $as_echo "$as_val"'`
11549 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11550$as_echo "$ac_res" >&6; }
11551else
11552 # Is the header compilable?
11553{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11554$as_echo_n "checking $ac_header usability... " >&6; }
11555cat >conftest.$ac_ext <<_ACEOF
11556/* confdefs.h. */
11557_ACEOF
11558cat confdefs.h >>conftest.$ac_ext
11559cat >>conftest.$ac_ext <<_ACEOF
11560/* end confdefs.h. */
11561$ac_includes_default
11562#include <$ac_header>
11563_ACEOF
11564rm -f conftest.$ac_objext
11565if { (ac_try="$ac_compile"
11566case "(($ac_try" in
11567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11568 *) ac_try_echo=$ac_try;;
11569esac
11570eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11571$as_echo "$ac_try_echo") >&5
11572 (eval "$ac_compile") 2>conftest.er1
11573 ac_status=$?
11574 grep -v '^ *+' conftest.er1 >conftest.err
11575 rm -f conftest.er1
11576 cat conftest.err >&5
11577 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11578 (exit $ac_status); } && {
11579 test -z "$ac_c_werror_flag" ||
11580 test ! -s conftest.err
11581 } && test -s conftest.$ac_objext; then
11582 ac_header_compiler=yes
11583else
11584 $as_echo "$as_me: failed program was:" >&5
11585sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 11586
8d138742
CE
11587 ac_header_compiler=no
11588fi
d9898ee8 11589
8d138742
CE
11590rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11591{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11592$as_echo "$ac_header_compiler" >&6; }
d9898ee8 11593
8d138742
CE
11594# Is the header present?
11595{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11596$as_echo_n "checking $ac_header presence... " >&6; }
11597cat >conftest.$ac_ext <<_ACEOF
11598/* confdefs.h. */
11599_ACEOF
11600cat confdefs.h >>conftest.$ac_ext
11601cat >>conftest.$ac_ext <<_ACEOF
11602/* end confdefs.h. */
11603#include <$ac_header>
11604_ACEOF
11605if { (ac_try="$ac_cpp conftest.$ac_ext"
11606case "(($ac_try" in
11607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11608 *) ac_try_echo=$ac_try;;
11609esac
11610eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11611$as_echo "$ac_try_echo") >&5
11612 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11613 ac_status=$?
11614 grep -v '^ *+' conftest.er1 >conftest.err
11615 rm -f conftest.er1
11616 cat conftest.err >&5
11617 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11618 (exit $ac_status); } >/dev/null && {
11619 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11620 test ! -s conftest.err
11621 }; then
11622 ac_header_preproc=yes
11623else
11624 $as_echo "$as_me: failed program was:" >&5
11625sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 11626
8d138742
CE
11627 ac_header_preproc=no
11628fi
d9898ee8 11629
8d138742
CE
11630rm -f conftest.err conftest.$ac_ext
11631{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11632$as_echo "$ac_header_preproc" >&6; }
d9898ee8 11633
8d138742
CE
11634# So? What about this header?
11635case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11636 yes:no: )
11637 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11638$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11639 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11640$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11641 ac_header_preproc=yes
11642 ;;
11643 no:yes:* )
11644 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11645$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11646 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11647$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11648 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11649$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11650 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11651$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11652 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11653$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11654 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11655$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11656 ( cat <<\_ASBOX
11657## -------------------------------------------------- ##
11658## Report this to courier-users@lists.sourceforge.net ##
11659## -------------------------------------------------- ##
11660_ASBOX
11661 ) | sed "s/^/$as_me: WARNING: /" >&2
11662 ;;
11663esac
11664{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11665$as_echo_n "checking for $ac_header... " >&6; }
11666if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11667 $as_echo_n "(cached) " >&6
11668else
11669 eval "$as_ac_Header=\$ac_header_preproc"
11670fi
11671ac_res=`eval 'as_val=${'$as_ac_Header'}
11672 $as_echo "$as_val"'`
11673 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11674$as_echo "$ac_res" >&6; }
d9898ee8 11675
8d138742
CE
11676fi
11677as_val=`eval 'as_val=${'$as_ac_Header'}
11678 $as_echo "$as_val"'`
11679 if test "x$as_val" = x""yes; then
11680 cat >>confdefs.h <<_ACEOF
11681#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11682_ACEOF
d9898ee8 11683
8d138742 11684fi
d9898ee8 11685
8d138742 11686done
d9898ee8 11687
8d138742
CE
11688{ $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
11689$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
11690if test "${ac_cv_header_time+set}" = set; then
11691 $as_echo_n "(cached) " >&6
11692else
11693 cat >conftest.$ac_ext <<_ACEOF
11694/* confdefs.h. */
11695_ACEOF
11696cat confdefs.h >>conftest.$ac_ext
11697cat >>conftest.$ac_ext <<_ACEOF
11698/* end confdefs.h. */
11699#include <sys/types.h>
11700#include <sys/time.h>
11701#include <time.h>
d9898ee8 11702
8d138742
CE
11703int
11704main ()
11705{
11706if ((struct tm *) 0)
11707return 0;
11708 ;
11709 return 0;
11710}
11711_ACEOF
11712rm -f conftest.$ac_objext
11713if { (ac_try="$ac_compile"
11714case "(($ac_try" in
11715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11716 *) ac_try_echo=$ac_try;;
11717esac
11718eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11719$as_echo "$ac_try_echo") >&5
11720 (eval "$ac_compile") 2>conftest.er1
11721 ac_status=$?
11722 grep -v '^ *+' conftest.er1 >conftest.err
11723 rm -f conftest.er1
11724 cat conftest.err >&5
11725 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11726 (exit $ac_status); } && {
11727 test -z "$ac_c_werror_flag" ||
11728 test ! -s conftest.err
11729 } && test -s conftest.$ac_objext; then
11730 ac_cv_header_time=yes
11731else
11732 $as_echo "$as_me: failed program was:" >&5
11733sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 11734
8d138742
CE
11735 ac_cv_header_time=no
11736fi
d9898ee8 11737
8d138742
CE
11738rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11739fi
11740{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
11741$as_echo "$ac_cv_header_time" >&6; }
11742if test $ac_cv_header_time = yes; then
d9898ee8 11743
8d138742
CE
11744cat >>confdefs.h <<\_ACEOF
11745#define TIME_WITH_SYS_TIME 1
11746_ACEOF
d9898ee8 11747
8d138742 11748fi
d9898ee8 11749
11750
8d138742
CE
11751{ $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
11752$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
11753if test "${ac_cv_c_const+set}" = set; then
11754 $as_echo_n "(cached) " >&6
11755else
11756 cat >conftest.$ac_ext <<_ACEOF
11757/* confdefs.h. */
11758_ACEOF
11759cat confdefs.h >>conftest.$ac_ext
11760cat >>conftest.$ac_ext <<_ACEOF
11761/* end confdefs.h. */
d9898ee8 11762
8d138742
CE
11763int
11764main ()
11765{
11766/* FIXME: Include the comments suggested by Paul. */
11767#ifndef __cplusplus
11768 /* Ultrix mips cc rejects this. */
11769 typedef int charset[2];
11770 const charset cs;
11771 /* SunOS 4.1.1 cc rejects this. */
11772 char const *const *pcpcc;
11773 char **ppc;
11774 /* NEC SVR4.0.2 mips cc rejects this. */
11775 struct point {int x, y;};
11776 static struct point const zero = {0,0};
11777 /* AIX XL C 1.02.0.0 rejects this.
11778 It does not let you subtract one const X* pointer from another in
11779 an arm of an if-expression whose if-part is not a constant
11780 expression */
11781 const char *g = "string";
11782 pcpcc = &g + (g ? g-g : 0);
11783 /* HPUX 7.0 cc rejects these. */
11784 ++pcpcc;
11785 ppc = (char**) pcpcc;
11786 pcpcc = (char const *const *) ppc;
11787 { /* SCO 3.2v4 cc rejects this. */
11788 char *t;
11789 char const *s = 0 ? (char *) 0 : (char const *) 0;
d9898ee8 11790
8d138742
CE
11791 *t++ = 0;
11792 if (s) return 0;
11793 }
11794 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11795 int x[] = {25, 17};
11796 const int *foo = &x[0];
11797 ++foo;
11798 }
11799 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11800 typedef const int *iptr;
11801 iptr p = 0;
11802 ++p;
11803 }
11804 { /* AIX XL C 1.02.0.0 rejects this saying
11805 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11806 struct s { int j; const int *ap[3]; };
11807 struct s *b; b->j = 5;
11808 }
11809 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11810 const int foo = 10;
11811 if (!foo) return 0;
11812 }
11813 return !cs[0] && !zero.x;
11814#endif
d9898ee8 11815
8d138742
CE
11816 ;
11817 return 0;
11818}
11819_ACEOF
11820rm -f conftest.$ac_objext
11821if { (ac_try="$ac_compile"
11822case "(($ac_try" in
11823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11824 *) ac_try_echo=$ac_try;;
11825esac
11826eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11827$as_echo "$ac_try_echo") >&5
11828 (eval "$ac_compile") 2>conftest.er1
11829 ac_status=$?
11830 grep -v '^ *+' conftest.er1 >conftest.err
11831 rm -f conftest.er1
11832 cat conftest.err >&5
11833 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11834 (exit $ac_status); } && {
11835 test -z "$ac_c_werror_flag" ||
11836 test ! -s conftest.err
11837 } && test -s conftest.$ac_objext; then
11838 ac_cv_c_const=yes
11839else
11840 $as_echo "$as_me: failed program was:" >&5
11841sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 11842
8d138742
CE
11843 ac_cv_c_const=no
11844fi
d9898ee8 11845
8d138742
CE
11846rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11847fi
11848{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
11849$as_echo "$ac_cv_c_const" >&6; }
11850if test $ac_cv_c_const = no; then
d9898ee8 11851
8d138742
CE
11852cat >>confdefs.h <<\_ACEOF
11853#define const /**/
11854_ACEOF
d9898ee8 11855
8d138742 11856fi
d9898ee8 11857
8d138742
CE
11858{ $as_echo "$as_me:$LINENO: checking for pid_t" >&5
11859$as_echo_n "checking for pid_t... " >&6; }
11860if test "${ac_cv_type_pid_t+set}" = set; then
11861 $as_echo_n "(cached) " >&6
d9898ee8 11862else
8d138742
CE
11863 ac_cv_type_pid_t=no
11864cat >conftest.$ac_ext <<_ACEOF
11865/* confdefs.h. */
11866_ACEOF
11867cat confdefs.h >>conftest.$ac_ext
11868cat >>conftest.$ac_ext <<_ACEOF
11869/* end confdefs.h. */
11870$ac_includes_default
11871int
11872main ()
11873{
11874if (sizeof (pid_t))
11875 return 0;
11876 ;
11877 return 0;
11878}
11879_ACEOF
11880rm -f conftest.$ac_objext
11881if { (ac_try="$ac_compile"
11882case "(($ac_try" in
11883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11884 *) ac_try_echo=$ac_try;;
d9898ee8 11885esac
8d138742
CE
11886eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11887$as_echo "$ac_try_echo") >&5
11888 (eval "$ac_compile") 2>conftest.er1
11889 ac_status=$?
11890 grep -v '^ *+' conftest.er1 >conftest.err
11891 rm -f conftest.er1
11892 cat conftest.err >&5
11893 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11894 (exit $ac_status); } && {
11895 test -z "$ac_c_werror_flag" ||
11896 test ! -s conftest.err
11897 } && test -s conftest.$ac_objext; then
11898 cat >conftest.$ac_ext <<_ACEOF
11899/* confdefs.h. */
11900_ACEOF
11901cat confdefs.h >>conftest.$ac_ext
11902cat >>conftest.$ac_ext <<_ACEOF
11903/* end confdefs.h. */
11904$ac_includes_default
11905int
11906main ()
11907{
11908if (sizeof ((pid_t)))
11909 return 0;
11910 ;
11911 return 0;
11912}
11913_ACEOF
11914rm -f conftest.$ac_objext
11915if { (ac_try="$ac_compile"
11916case "(($ac_try" in
11917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11918 *) ac_try_echo=$ac_try;;
11919esac
11920eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11921$as_echo "$ac_try_echo") >&5
11922 (eval "$ac_compile") 2>conftest.er1
11923 ac_status=$?
11924 grep -v '^ *+' conftest.er1 >conftest.err
11925 rm -f conftest.er1
11926 cat conftest.err >&5
11927 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11928 (exit $ac_status); } && {
11929 test -z "$ac_c_werror_flag" ||
11930 test ! -s conftest.err
11931 } && test -s conftest.$ac_objext; then
11932 :
d9898ee8 11933else
8d138742
CE
11934 $as_echo "$as_me: failed program was:" >&5
11935sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 11936
8d138742
CE
11937 ac_cv_type_pid_t=yes
11938fi
dd184caf 11939
8d138742
CE
11940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11941else
11942 $as_echo "$as_me: failed program was:" >&5
11943sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 11944
11945
d9898ee8 11946fi
11947
8d138742 11948rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 11949fi
8d138742
CE
11950{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
11951$as_echo "$ac_cv_type_pid_t" >&6; }
11952if test "x$ac_cv_type_pid_t" = x""yes; then
11953 :
11954else
d9898ee8 11955
8d138742
CE
11956cat >>confdefs.h <<_ACEOF
11957#define pid_t int
11958_ACEOF
d9898ee8 11959
8d138742 11960fi
d9898ee8 11961
8d138742
CE
11962{ $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
11963$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
11964if test "${ac_cv_type_uid_t+set}" = set; then
11965 $as_echo_n "(cached) " >&6
11966else
11967 cat >conftest.$ac_ext <<_ACEOF
11968/* confdefs.h. */
11969_ACEOF
11970cat confdefs.h >>conftest.$ac_ext
11971cat >>conftest.$ac_ext <<_ACEOF
11972/* end confdefs.h. */
11973#include <sys/types.h>
d9898ee8 11974
8d138742
CE
11975_ACEOF
11976if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11977 $EGREP "uid_t" >/dev/null 2>&1; then
11978 ac_cv_type_uid_t=yes
d9898ee8 11979else
8d138742 11980 ac_cv_type_uid_t=no
dd184caf 11981fi
8d138742 11982rm -f conftest*
dd184caf 11983
8d138742
CE
11984fi
11985{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
11986$as_echo "$ac_cv_type_uid_t" >&6; }
11987if test $ac_cv_type_uid_t = no; then
d9898ee8 11988
8d138742
CE
11989cat >>confdefs.h <<\_ACEOF
11990#define uid_t int
11991_ACEOF
d9898ee8 11992
11993
8d138742
CE
11994cat >>confdefs.h <<\_ACEOF
11995#define gid_t int
11996_ACEOF
d9898ee8 11997
dd184caf 11998fi
d9898ee8 11999
8d138742
CE
12000{ $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
12001$as_echo_n "checking return type of signal handlers... " >&6; }
12002if test "${ac_cv_type_signal+set}" = set; then
12003 $as_echo_n "(cached) " >&6
12004else
12005 cat >conftest.$ac_ext <<_ACEOF
12006/* confdefs.h. */
12007_ACEOF
12008cat confdefs.h >>conftest.$ac_ext
12009cat >>conftest.$ac_ext <<_ACEOF
12010/* end confdefs.h. */
12011#include <sys/types.h>
12012#include <signal.h>
d9898ee8 12013
8d138742
CE
12014int
12015main ()
12016{
12017return *(signal (0, 0)) (0) == 1;
12018 ;
12019 return 0;
12020}
12021_ACEOF
12022rm -f conftest.$ac_objext
12023if { (ac_try="$ac_compile"
12024case "(($ac_try" in
12025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12026 *) ac_try_echo=$ac_try;;
12027esac
12028eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12029$as_echo "$ac_try_echo") >&5
12030 (eval "$ac_compile") 2>conftest.er1
12031 ac_status=$?
12032 grep -v '^ *+' conftest.er1 >conftest.err
12033 rm -f conftest.er1
12034 cat conftest.err >&5
12035 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12036 (exit $ac_status); } && {
12037 test -z "$ac_c_werror_flag" ||
12038 test ! -s conftest.err
12039 } && test -s conftest.$ac_objext; then
12040 ac_cv_type_signal=int
d9898ee8 12041else
8d138742
CE
12042 $as_echo "$as_me: failed program was:" >&5
12043sed 's/^/| /' conftest.$ac_ext >&5
dd184caf 12044
8d138742
CE
12045 ac_cv_type_signal=void
12046fi
d9898ee8 12047
8d138742
CE
12048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12049fi
12050{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
12051$as_echo "$ac_cv_type_signal" >&6; }
d9898ee8 12052
8d138742
CE
12053cat >>confdefs.h <<_ACEOF
12054#define RETSIGTYPE $ac_cv_type_signal
12055_ACEOF
d9898ee8 12056
d9898ee8 12057
12058
12059
8d138742
CE
12060{ $as_echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
12061$as_echo_n "checking for crypt in -lcrypt... " >&6; }
12062if test "${ac_cv_lib_crypt_crypt+set}" = set; then
12063 $as_echo_n "(cached) " >&6
12064else
12065 ac_check_lib_save_LIBS=$LIBS
12066LIBS="-lcrypt $LIBS"
12067cat >conftest.$ac_ext <<_ACEOF
12068/* confdefs.h. */
12069_ACEOF
12070cat confdefs.h >>conftest.$ac_ext
12071cat >>conftest.$ac_ext <<_ACEOF
12072/* end confdefs.h. */
d9898ee8 12073
8d138742
CE
12074/* Override any GCC internal prototype to avoid an error.
12075 Use char because int might match the return type of a GCC
12076 builtin and then its argument prototype would still apply. */
12077#ifdef __cplusplus
12078extern "C"
12079#endif
12080char crypt ();
12081int
12082main ()
12083{
12084return crypt ();
12085 ;
12086 return 0;
12087}
12088_ACEOF
12089rm -f conftest.$ac_objext conftest$ac_exeext
12090if { (ac_try="$ac_link"
12091case "(($ac_try" in
12092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12093 *) ac_try_echo=$ac_try;;
12094esac
12095eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12096$as_echo "$ac_try_echo") >&5
12097 (eval "$ac_link") 2>conftest.er1
12098 ac_status=$?
12099 grep -v '^ *+' conftest.er1 >conftest.err
12100 rm -f conftest.er1
12101 cat conftest.err >&5
12102 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12103 (exit $ac_status); } && {
12104 test -z "$ac_c_werror_flag" ||
12105 test ! -s conftest.err
12106 } && test -s conftest$ac_exeext && {
12107 test "$cross_compiling" = yes ||
12108 $as_test_x conftest$ac_exeext
12109 }; then
12110 ac_cv_lib_crypt_crypt=yes
12111else
12112 $as_echo "$as_me: failed program was:" >&5
12113sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 12114
8d138742
CE
12115 ac_cv_lib_crypt_crypt=no
12116fi
d9898ee8 12117
8d138742
CE
12118rm -rf conftest.dSYM
12119rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12120 conftest$ac_exeext conftest.$ac_ext
12121LIBS=$ac_check_lib_save_LIBS
12122fi
12123{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
12124$as_echo "$ac_cv_lib_crypt_crypt" >&6; }
12125if test "x$ac_cv_lib_crypt_crypt" = x""yes; then
12126 CRYPTLIBS="-lcrypt"
12127fi
d9898ee8 12128
8d138742
CE
12129saveLIBS="$LIBS"
12130LIBS="$CRYPTLIBS $LIBS"
12131{ $as_echo "$as_me:$LINENO: checking for crypt" >&5
12132$as_echo_n "checking for crypt... " >&6; }
12133if test "${ac_cv_func_crypt+set}" = set; then
12134 $as_echo_n "(cached) " >&6
d9898ee8 12135else
8d138742
CE
12136 cat >conftest.$ac_ext <<_ACEOF
12137/* confdefs.h. */
12138_ACEOF
12139cat confdefs.h >>conftest.$ac_ext
12140cat >>conftest.$ac_ext <<_ACEOF
12141/* end confdefs.h. */
12142/* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
12143 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12144#define crypt innocuous_crypt
12145
12146/* System header to define __stub macros and hopefully few prototypes,
12147 which can conflict with char crypt (); below.
12148 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12149 <limits.h> exists even on freestanding compilers. */
dd184caf 12150
8d138742
CE
12151#ifdef __STDC__
12152# include <limits.h>
12153#else
12154# include <assert.h>
12155#endif
d9898ee8 12156
8d138742 12157#undef crypt
d9898ee8 12158
8d138742
CE
12159/* Override any GCC internal prototype to avoid an error.
12160 Use char because int might match the return type of a GCC
12161 builtin and then its argument prototype would still apply. */
12162#ifdef __cplusplus
12163extern "C"
12164#endif
12165char crypt ();
12166/* The GNU C library defines this for functions which it implements
12167 to always fail with ENOSYS. Some functions are actually named
12168 something starting with __ and the normal name is an alias. */
12169#if defined __stub_crypt || defined __stub___crypt
12170choke me
12171#endif
d9898ee8 12172
8d138742
CE
12173int
12174main ()
12175{
12176return crypt ();
12177 ;
12178 return 0;
12179}
d9898ee8 12180_ACEOF
8d138742
CE
12181rm -f conftest.$ac_objext conftest$ac_exeext
12182if { (ac_try="$ac_link"
12183case "(($ac_try" in
12184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12185 *) ac_try_echo=$ac_try;;
12186esac
12187eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12188$as_echo "$ac_try_echo") >&5
12189 (eval "$ac_link") 2>conftest.er1
12190 ac_status=$?
12191 grep -v '^ *+' conftest.er1 >conftest.err
12192 rm -f conftest.er1
12193 cat conftest.err >&5
12194 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12195 (exit $ac_status); } && {
12196 test -z "$ac_c_werror_flag" ||
12197 test ! -s conftest.err
12198 } && test -s conftest$ac_exeext && {
12199 test "$cross_compiling" = yes ||
12200 $as_test_x conftest$ac_exeext
12201 }; then
12202 ac_cv_func_crypt=yes
d9898ee8 12203else
8d138742
CE
12204 $as_echo "$as_me: failed program was:" >&5
12205sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 12206
8d138742 12207 ac_cv_func_crypt=no
d9898ee8 12208fi
12209
8d138742
CE
12210rm -rf conftest.dSYM
12211rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12212 conftest$ac_exeext conftest.$ac_ext
12213fi
12214{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
12215$as_echo "$ac_cv_func_crypt" >&6; }
12216if test "x$ac_cv_func_crypt" = x""yes; then
d9898ee8 12217
12218cat >>confdefs.h <<_ACEOF
8d138742 12219#define HAVE_CRYPT 1
d9898ee8 12220_ACEOF
12221
d9898ee8 12222fi
12223
8d138742
CE
12224LIBS="$saveLIBS"
12225{ $as_echo "$as_me:$LINENO: checking for crypt() prototype" >&5
12226$as_echo_n "checking for crypt() prototype... " >&6; }
12227if test "${userdb_cv_NEED_CRYPT_PROTOTYPE+set}" = set; then
12228 $as_echo_n "(cached) " >&6
d9898ee8 12229else
12230 cat >conftest.$ac_ext <<_ACEOF
12231/* confdefs.h. */
12232_ACEOF
12233cat confdefs.h >>conftest.$ac_ext
12234cat >>conftest.$ac_ext <<_ACEOF
12235/* end confdefs.h. */
8d138742
CE
12236
12237 #if HAVE_CRYPT_H
12238 #include <crypt.h>
12239 #endif
12240 #if HAVE_UNISTD_H
12241 #include <unistd.h>
12242 #endif
12243 int crypt(int, int);
12244
d9898ee8 12245
12246int
12247main ()
12248{
12249
12250 ;
12251 return 0;
12252}
12253_ACEOF
12254rm -f conftest.$ac_objext
dd184caf 12255if { (ac_try="$ac_compile"
12256case "(($ac_try" in
12257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12258 *) ac_try_echo=$ac_try;;
12259esac
8d138742
CE
12260eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12261$as_echo "$ac_try_echo") >&5
dd184caf 12262 (eval "$ac_compile") 2>conftest.er1
d9898ee8 12263 ac_status=$?
12264 grep -v '^ *+' conftest.er1 >conftest.err
12265 rm -f conftest.er1
12266 cat conftest.err >&5
8d138742 12267 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 12268 (exit $ac_status); } && {
12269 test -z "$ac_c_werror_flag" ||
12270 test ! -s conftest.err
12271 } && test -s conftest.$ac_objext; then
8d138742 12272 userdb_cv_NEED_CRYPT_PROTOTYPE=1
d9898ee8 12273else
8d138742 12274 $as_echo "$as_me: failed program was:" >&5
d9898ee8 12275sed 's/^/| /' conftest.$ac_ext >&5
12276
8d138742 12277 userdb_cv_NEED_CRYPT_PROTOTYPE=0
d9898ee8 12278fi
dd184caf 12279
12280rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 12281
d9898ee8 12282
d9898ee8 12283fi
8d138742
CE
12284{ $as_echo "$as_me:$LINENO: result: $userdb_cv_NEED_CRYPT_PROTOTYPE" >&5
12285$as_echo "$userdb_cv_NEED_CRYPT_PROTOTYPE" >&6; }
d9898ee8 12286
d9898ee8 12287
8d138742
CE
12288cat >>confdefs.h <<_ACEOF
12289#define NEED_CRYPT_PROTOTYPE $userdb_cv_NEED_CRYPT_PROTOTYPE
d9898ee8 12290_ACEOF
d9898ee8 12291
d9898ee8 12292
d9898ee8 12293
8d138742
CE
12294
12295
12296for ac_func in isatty gettimeofday
12297do
12298as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12299{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12300$as_echo_n "checking for $ac_func... " >&6; }
12301if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12302 $as_echo_n "(cached) " >&6
d9898ee8 12303else
12304 cat >conftest.$ac_ext <<_ACEOF
12305/* confdefs.h. */
12306_ACEOF
12307cat confdefs.h >>conftest.$ac_ext
12308cat >>conftest.$ac_ext <<_ACEOF
12309/* end confdefs.h. */
8d138742
CE
12310/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12311 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12312#define $ac_func innocuous_$ac_func
12313
12314/* System header to define __stub macros and hopefully few prototypes,
12315 which can conflict with char $ac_func (); below.
12316 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12317 <limits.h> exists even on freestanding compilers. */
12318
12319#ifdef __STDC__
12320# include <limits.h>
d9898ee8 12321#else
8d138742
CE
12322# include <assert.h>
12323#endif
12324
12325#undef $ac_func
12326
12327/* Override any GCC internal prototype to avoid an error.
12328 Use char because int might match the return type of a GCC
12329 builtin and then its argument prototype would still apply. */
12330#ifdef __cplusplus
12331extern "C"
12332#endif
12333char $ac_func ();
12334/* The GNU C library defines this for functions which it implements
12335 to always fail with ENOSYS. Some functions are actually named
12336 something starting with __ and the normal name is an alias. */
12337#if defined __stub_$ac_func || defined __stub___$ac_func
12338choke me
d9898ee8 12339#endif
12340
d9898ee8 12341int
12342main ()
12343{
8d138742
CE
12344return $ac_func ();
12345 ;
dd184caf 12346 return 0;
d9898ee8 12347}
12348_ACEOF
8d138742 12349rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 12350if { (ac_try="$ac_link"
12351case "(($ac_try" in
12352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12353 *) ac_try_echo=$ac_try;;
12354esac
8d138742
CE
12355eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12356$as_echo "$ac_try_echo") >&5
12357 (eval "$ac_link") 2>conftest.er1
d9898ee8 12358 ac_status=$?
8d138742
CE
12359 grep -v '^ *+' conftest.er1 >conftest.err
12360 rm -f conftest.er1
12361 cat conftest.err >&5
12362 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12363 (exit $ac_status); } && {
12364 test -z "$ac_c_werror_flag" ||
12365 test ! -s conftest.err
12366 } && test -s conftest$ac_exeext && {
12367 test "$cross_compiling" = yes ||
12368 $as_test_x conftest$ac_exeext
12369 }; then
12370 eval "$as_ac_var=yes"
12371else
12372 $as_echo "$as_me: failed program was:" >&5
12373sed 's/^/| /' conftest.$ac_ext >&5
12374
12375 eval "$as_ac_var=no"
12376fi
12377
12378rm -rf conftest.dSYM
12379rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12380 conftest$ac_exeext conftest.$ac_ext
12381fi
12382ac_res=`eval 'as_val=${'$as_ac_var'}
12383 $as_echo "$as_val"'`
12384 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12385$as_echo "$ac_res" >&6; }
12386as_val=`eval 'as_val=${'$as_ac_var'}
12387 $as_echo "$as_val"'`
12388 if test "x$as_val" = x""yes; then
12389 cat >>confdefs.h <<_ACEOF
12390#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12391_ACEOF
12392
12393fi
12394done
12395
12396
12397
12398# Check whether --with-random was given.
12399if test "${with_random+set}" = set; then
12400 withval=$with_random; random="$withval"
12401else
12402 random="y"
12403fi
12404
12405
12406case "$random" in
12407/*)
12408 ;;
12409y*|1*)
12410 { $as_echo "$as_me:$LINENO: checking for random source" >&5
12411$as_echo_n "checking for random source... " >&6; }
12412if test "${userdb_cv_RANDOM+set}" = set; then
12413 $as_echo_n "(cached) " >&6
d9898ee8 12414else
8d138742
CE
12415 if test -c /dev/urandom
12416 then
12417 userdb_cv_RANDOM=/dev/urandom
12418 else
12419 if test -c /dev/random
12420 then
12421 userdb_cv_RANDOM=/dev/random
12422 else
12423 userdb_cv_RANDOM="none"
12424 fi
12425 fi
d9898ee8 12426
d9898ee8 12427fi
8d138742
CE
12428{ $as_echo "$as_me:$LINENO: result: $userdb_cv_RANDOM" >&5
12429$as_echo "$userdb_cv_RANDOM" >&6; }
12430 random="$userdb_cv_RANDOM"
12431 ;;
12432*)
12433 random="none"
12434 ;;
12435esac
12436
12437if test "$random" != "none"
12438then
dd184caf 12439
8d138742
CE
12440cat >>confdefs.h <<_ACEOF
12441#define RANDOM "$random"
12442_ACEOF
dd184caf 12443
d9898ee8 12444fi
8d138742
CE
12445
12446 if test -d ${srcdir}/../docbook; then
12447 HAVE_SGML_TRUE=
12448 HAVE_SGML_FALSE='#'
12449else
12450 HAVE_SGML_TRUE='#'
12451 HAVE_SGML_FALSE=
d9898ee8 12452fi
d9898ee8 12453
8d138742
CE
12454
12455ac_config_files="$ac_config_files Makefile userdb.pl makeuserdb pw2userdb"
12456
12457cat >confcache <<\_ACEOF
12458# This file is a shell script that caches the results of configure
12459# tests run on this system so they can be shared between configure
12460# scripts and configure runs, see configure's option --config-cache.
12461# It is not useful on other systems. If it contains results you don't
12462# want to keep, you may remove or edit it.
12463#
12464# config.status only pays attention to the cache file if you give it
12465# the --recheck option to rerun configure.
12466#
12467# `ac_cv_env_foo' variables (set or unset) will be overridden when
12468# loading this file, other *unset* `ac_cv_foo' will be assigned the
12469# following values.
12470
d9898ee8 12471_ACEOF
12472
8d138742
CE
12473# The following way of writing the cache mishandles newlines in values,
12474# but we know of no workaround that is simple, portable, and efficient.
12475# So, we kill variables containing newlines.
12476# Ultrix sh set writes to stderr and can't be redirected directly,
12477# and sets the high bit in the cache file unless we assign to the vars.
12478(
12479 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12480 eval ac_val=\$$ac_var
12481 case $ac_val in #(
12482 *${as_nl}*)
12483 case $ac_var in #(
12484 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
12485$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12486 esac
12487 case $ac_var in #(
12488 _ | IFS | as_nl) ;; #(
12489 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12490 *) $as_unset $ac_var ;;
12491 esac ;;
12492 esac
12493 done
12494
12495 (set) 2>&1 |
12496 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12497 *${as_nl}ac_space=\ *)
12498 # `set' does not quote correctly, so add quotes (double-quote
12499 # substitution turns \\\\ into \\, and sed turns \\ into \).
12500 sed -n \
12501 "s/'/'\\\\''/g;
12502 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12503 ;; #(
12504 *)
12505 # `set' quotes correctly as required by POSIX, so do not add quotes.
12506 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12507 ;;
12508 esac |
12509 sort
12510) |
12511 sed '
12512 /^ac_cv_env_/b end
12513 t clear
12514 :clear
12515 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12516 t end
12517 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12518 :end' >>confcache
12519if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12520 if test -w "$cache_file"; then
12521 test "x$cache_file" != "x/dev/null" &&
12522 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
12523$as_echo "$as_me: updating cache $cache_file" >&6;}
12524 cat confcache >$cache_file
12525 else
12526 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
12527$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12528 fi
d9898ee8 12529fi
8d138742 12530rm -f confcache
d9898ee8 12531
8d138742
CE
12532test "x$prefix" = xNONE && prefix=$ac_default_prefix
12533# Let make expand exec_prefix.
12534test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
d9898ee8 12535
8d138742
CE
12536# Transform confdefs.h into DEFS.
12537# Protect against shell expansion while executing Makefile rules.
12538# Protect against Makefile macro expansion.
12539#
12540# If the first sed substitution is executed (which looks for macros that
12541# take arguments), then branch to the quote section. Otherwise,
12542# look for a macro that doesn't take arguments.
12543ac_script='
12544:mline
12545/\\$/{
12546 N
12547 s,\\\n,,
12548 b mline
12549}
12550t clear
12551:clear
12552s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
12553t quote
12554s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
12555t quote
12556b any
12557:quote
12558s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
12559s/\[/\\&/g
12560s/\]/\\&/g
12561s/\$/$$/g
12562H
12563:any
12564${
12565 g
12566 s/^\n//
12567 s/\n/ /g
12568 p
12569}
12570'
12571DEFS=`sed -n "$ac_script" confdefs.h`
d9898ee8 12572
12573
8d138742
CE
12574ac_libobjs=
12575ac_ltlibobjs=
12576for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12577 # 1. Remove the extension, and $U if already installed.
12578 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12579 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12580 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12581 # will be set to the directory where LIBOBJS objects are built.
12582 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12583 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
12584done
12585LIBOBJS=$ac_libobjs
d9898ee8 12586
8d138742 12587LTLIBOBJS=$ac_ltlibobjs
d9898ee8 12588
12589
8d138742
CE
12590 if test -n "$EXEEXT"; then
12591 am__EXEEXT_TRUE=
12592 am__EXEEXT_FALSE='#'
d9898ee8 12593else
8d138742
CE
12594 am__EXEEXT_TRUE='#'
12595 am__EXEEXT_FALSE=
12596fi
d9898ee8 12597
8d138742
CE
12598if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12599 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
12600Usually this means the macro was only invoked conditionally." >&5
12601$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
12602Usually this means the macro was only invoked conditionally." >&2;}
12603 { (exit 1); exit 1; }; }
12604fi
12605if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12606 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
12607Usually this means the macro was only invoked conditionally." >&5
12608$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
12609Usually this means the macro was only invoked conditionally." >&2;}
12610 { (exit 1); exit 1; }; }
12611fi
12612if test -z "${HAVE_SGML_TRUE}" && test -z "${HAVE_SGML_FALSE}"; then
12613 { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_SGML\" was never defined.
12614Usually this means the macro was only invoked conditionally." >&5
12615$as_echo "$as_me: error: conditional \"HAVE_SGML\" was never defined.
12616Usually this means the macro was only invoked conditionally." >&2;}
12617 { (exit 1); exit 1; }; }
d9898ee8 12618fi
dd184caf 12619
8d138742
CE
12620: ${CONFIG_STATUS=./config.status}
12621ac_write_fail=0
12622ac_clean_files_save=$ac_clean_files
12623ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12624{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12625$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12626cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12627#! $SHELL
12628# Generated by $as_me.
12629# Run this file to recreate the current configuration.
12630# Compiler output produced by configure, useful for debugging
12631# configure, is in config.log if it exists.
d9898ee8 12632
8d138742
CE
12633debug=false
12634ac_cs_recheck=false
12635ac_cs_silent=false
12636SHELL=\${CONFIG_SHELL-$SHELL}
d9898ee8 12637_ACEOF
8d138742
CE
12638
12639cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12640## --------------------- ##
12641## M4sh Initialization. ##
12642## --------------------- ##
12643
12644# Be more Bourne compatible
12645DUALCASE=1; export DUALCASE # for MKS sh
12646if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12647 emulate sh
12648 NULLCMD=:
12649 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12650 # is contrary to our usage. Disable this feature.
12651 alias -g '${1+"$@"}'='"$@"'
12652 setopt NO_GLOB_SUBST
d9898ee8 12653else
8d138742
CE
12654 case `(set -o) 2>/dev/null` in
12655 *posix*) set -o posix ;;
12656esac
d9898ee8 12657
d9898ee8 12658fi
dd184caf 12659
d9898ee8 12660
8d138742
CE
12661
12662
12663# PATH needs CR
12664# Avoid depending upon Character Ranges.
12665as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12666as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12667as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12668as_cr_digits='0123456789'
12669as_cr_alnum=$as_cr_Letters$as_cr_digits
12670
12671as_nl='
12672'
12673export as_nl
12674# Printing a long string crashes Solaris 7 /usr/bin/printf.
12675as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12676as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12677as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12678if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12679 as_echo='printf %s\n'
12680 as_echo_n='printf %s'
12681else
12682 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12683 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12684 as_echo_n='/usr/ucb/echo -n'
12685 else
12686 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12687 as_echo_n_body='eval
12688 arg=$1;
12689 case $arg in
12690 *"$as_nl"*)
12691 expr "X$arg" : "X\\(.*\\)$as_nl";
12692 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12693 esac;
12694 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12695 '
12696 export as_echo_n_body
12697 as_echo_n='sh -c $as_echo_n_body as_echo'
12698 fi
12699 export as_echo_body
12700 as_echo='sh -c $as_echo_body as_echo'
d9898ee8 12701fi
d9898ee8 12702
8d138742
CE
12703# The user is always right.
12704if test "${PATH_SEPARATOR+set}" != set; then
12705 PATH_SEPARATOR=:
12706 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12707 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12708 PATH_SEPARATOR=';'
12709 }
d9898ee8 12710fi
d9898ee8 12711
8d138742
CE
12712# Support unset when possible.
12713if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12714 as_unset=unset
12715else
12716 as_unset=false
d9898ee8 12717fi
12718
d9898ee8 12719
8d138742
CE
12720# IFS
12721# We need space, tab and new line, in precisely that order. Quoting is
12722# there to prevent editors from complaining about space-tab.
12723# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12724# splitting by setting IFS to empty value.)
12725IFS=" "" $as_nl"
d9898ee8 12726
8d138742
CE
12727# Find who we are. Look in the path if we contain no directory separator.
12728case $0 in
12729 *[\\/]* ) as_myself=$0 ;;
12730 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12731for as_dir in $PATH
12732do
12733 IFS=$as_save_IFS
12734 test -z "$as_dir" && as_dir=.
12735 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12736done
12737IFS=$as_save_IFS
12738
12739 ;;
dd184caf 12740esac
8d138742
CE
12741# We did not find ourselves, most probably we were run as `sh COMMAND'
12742# in which case we are not to be found in the path.
12743if test "x$as_myself" = x; then
12744 as_myself=$0
12745fi
12746if test ! -f "$as_myself"; then
12747 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12748 { (exit 1); exit 1; }
12749fi
d9898ee8 12750
8d138742
CE
12751# Work around bugs in pre-3.0 UWIN ksh.
12752for as_var in ENV MAIL MAILPATH
12753do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
12754done
12755PS1='$ '
12756PS2='> '
12757PS4='+ '
12758
12759# NLS nuisances.
12760LC_ALL=C
12761export LC_ALL
12762LANGUAGE=C
12763export LANGUAGE
12764
12765# Required to use basename.
12766if expr a : '\(a\)' >/dev/null 2>&1 &&
12767 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12768 as_expr=expr
12769else
12770 as_expr=false
d9898ee8 12771fi
dd184caf 12772
8d138742
CE
12773if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12774 as_basename=basename
12775else
12776 as_basename=false
d9898ee8 12777fi
d9898ee8 12778
d9898ee8 12779
8d138742
CE
12780# Name of the executable.
12781as_me=`$as_basename -- "$0" ||
12782$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12783 X"$0" : 'X\(//\)$' \| \
12784 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12785$as_echo X/"$0" |
12786 sed '/^.*\/\([^/][^/]*\)\/*$/{
12787 s//\1/
12788 q
12789 }
12790 /^X\/\(\/\/\)$/{
12791 s//\1/
12792 q
12793 }
12794 /^X\/\(\/\).*/{
12795 s//\1/
12796 q
12797 }
12798 s/.*/./; q'`
d9898ee8 12799
8d138742
CE
12800# CDPATH.
12801$as_unset CDPATH
d9898ee8 12802
d9898ee8 12803
d9898ee8 12804
8d138742
CE
12805 as_lineno_1=$LINENO
12806 as_lineno_2=$LINENO
12807 test "x$as_lineno_1" != "x$as_lineno_2" &&
12808 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
d9898ee8 12809
8d138742
CE
12810 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12811 # uniformly replaced by the line number. The first 'sed' inserts a
12812 # line-number line after each line using $LINENO; the second 'sed'
12813 # does the real work. The second script uses 'N' to pair each
12814 # line-number line with the line containing $LINENO, and appends
12815 # trailing '-' during substitution so that $LINENO is not a special
12816 # case at line end.
12817 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12818 # scripts with optimization help from Paolo Bonzini. Blame Lee
12819 # E. McMahon (1931-1989) for sed's syntax. :-)
12820 sed -n '
12821 p
12822 /[$]LINENO/=
12823 ' <$as_myself |
12824 sed '
12825 s/[$]LINENO.*/&-/
12826 t lineno
12827 b
12828 :lineno
12829 N
12830 :loop
12831 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
12832 t loop
12833 s/-\n.*//
12834 ' >$as_me.lineno &&
12835 chmod +x "$as_me.lineno" ||
12836 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
12837 { (exit 1); exit 1; }; }
12838
12839 # Don't try to exec as it changes $[0], causing all sort of problems
12840 # (the dirname of $[0] is not the place where we might find the
12841 # original and so on. Autoconf is especially sensitive to this).
12842 . "./$as_me.lineno"
12843 # Exit status is that of the last command.
12844 exit
d9898ee8 12845}
d9898ee8 12846
dd184caf 12847
8d138742
CE
12848if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12849 as_dirname=dirname
12850else
12851 as_dirname=false
d9898ee8 12852fi
d9898ee8 12853
8d138742
CE
12854ECHO_C= ECHO_N= ECHO_T=
12855case `echo -n x` in
12856-n*)
12857 case `echo 'x\c'` in
12858 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12859 *) ECHO_C='\c';;
12860 esac;;
12861*)
12862 ECHO_N='-n';;
12863esac
12864if expr a : '\(a\)' >/dev/null 2>&1 &&
12865 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12866 as_expr=expr
12867else
12868 as_expr=false
d9898ee8 12869fi
12870
8d138742
CE
12871rm -f conf$$ conf$$.exe conf$$.file
12872if test -d conf$$.dir; then
12873 rm -f conf$$.dir/conf$$.file
d9898ee8 12874else
8d138742
CE
12875 rm -f conf$$.dir
12876 mkdir conf$$.dir 2>/dev/null
12877fi
12878if (echo >conf$$.file) 2>/dev/null; then
12879 if ln -s conf$$.file conf$$ 2>/dev/null; then
12880 as_ln_s='ln -s'
12881 # ... but there are two gotchas:
12882 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12883 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12884 # In both cases, we have to default to `cp -p'.
12885 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12886 as_ln_s='cp -p'
12887 elif ln conf$$.file conf$$ 2>/dev/null; then
12888 as_ln_s=ln
12889 else
12890 as_ln_s='cp -p'
12891 fi
d9898ee8 12892else
8d138742 12893 as_ln_s='cp -p'
d9898ee8 12894fi
8d138742
CE
12895rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12896rmdir conf$$.dir 2>/dev/null
dd184caf 12897
8d138742
CE
12898if mkdir -p . 2>/dev/null; then
12899 as_mkdir_p=:
12900else
12901 test -d ./-p && rmdir ./-p
12902 as_mkdir_p=false
d9898ee8 12903fi
8d138742
CE
12904
12905if test -x / >/dev/null 2>&1; then
12906 as_test_x='test -x'
d9898ee8 12907else
8d138742
CE
12908 if ls -dL / >/dev/null 2>&1; then
12909 as_ls_L_option=L
12910 else
12911 as_ls_L_option=
12912 fi
12913 as_test_x='
12914 eval sh -c '\''
12915 if test -d "$1"; then
12916 test -d "$1/.";
12917 else
12918 case $1 in
12919 -*)set "./$1";;
12920 esac;
12921 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
12922 ???[sx]*):;;*)false;;esac;fi
12923 '\'' sh
12924 '
12925fi
12926as_executable_p=$as_test_x
d9898ee8 12927
8d138742
CE
12928# Sed expression to map a string onto a valid CPP name.
12929as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
d9898ee8 12930
8d138742
CE
12931# Sed expression to map a string onto a valid variable name.
12932as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
d9898ee8 12933
d9898ee8 12934
8d138742 12935exec 6>&1
d9898ee8 12936
8d138742
CE
12937# Save the log message, to keep $[0] and so on meaningful, and to
12938# report actual input values of CONFIG_FILES etc. instead of their
12939# values after options handling.
12940ac_log="
12941This file was extended by libuserdb $as_me 0.10, which was
12942generated by GNU Autoconf 2.63. Invocation command line was
12943
12944 CONFIG_FILES = $CONFIG_FILES
12945 CONFIG_HEADERS = $CONFIG_HEADERS
12946 CONFIG_LINKS = $CONFIG_LINKS
12947 CONFIG_COMMANDS = $CONFIG_COMMANDS
12948 $ $0 $@
12949
12950on `(hostname || uname -n) 2>/dev/null | sed 1q`
12951"
d9898ee8 12952
d9898ee8 12953_ACEOF
12954
8d138742
CE
12955case $ac_config_files in *"
12956"*) set x $ac_config_files; shift; ac_config_files=$*;;
12957esac
12958
12959
12960
12961cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12962# Files that config.status was made for.
12963config_files="$ac_config_files"
12964config_commands="$ac_config_commands"
d9898ee8 12965
d9898ee8 12966_ACEOF
12967
8d138742
CE
12968cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12969ac_cs_usage="\
12970\`$as_me' instantiates files from templates according to the
12971current configuration.
12972
12973Usage: $0 [OPTION]... [FILE]...
12974
12975 -h, --help print this help, then exit
12976 -V, --version print version number and configuration settings, then exit
12977 -q, --quiet, --silent
12978 do not print progress messages
12979 -d, --debug don't remove temporary files
12980 --recheck update $as_me by reconfiguring in the same conditions
12981 --file=FILE[:TEMPLATE]
12982 instantiate the configuration file FILE
12983
12984Configuration files:
12985$config_files
12986
12987Configuration commands:
12988$config_commands
12989
12990Report bugs to <bug-autoconf@gnu.org>."
d9898ee8 12991
d9898ee8 12992_ACEOF
8d138742
CE
12993cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12994ac_cs_version="\\
12995libuserdb config.status 0.10
12996configured by $0, generated by GNU Autoconf 2.63,
12997 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
d9898ee8 12998
8d138742
CE
12999Copyright (C) 2008 Free Software Foundation, Inc.
13000This config.status script is free software; the Free Software Foundation
13001gives unlimited permission to copy, distribute and modify it."
13002
13003ac_pwd='$ac_pwd'
13004srcdir='$srcdir'
13005INSTALL='$INSTALL'
13006MKDIR_P='$MKDIR_P'
13007AWK='$AWK'
13008test -n "\$AWK" || AWK=awk
d9898ee8 13009_ACEOF
d9898ee8 13010
8d138742
CE
13011cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13012# The default lists apply if the user does not specify any file.
13013ac_need_defaults=:
13014while test $# != 0
13015do
13016 case $1 in
13017 --*=*)
13018 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13019 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13020 ac_shift=:
13021 ;;
13022 *)
13023 ac_option=$1
13024 ac_optarg=$2
13025 ac_shift=shift
13026 ;;
13027 esac
13028
13029 case $ac_option in
13030 # Handling of the options.
13031 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13032 ac_cs_recheck=: ;;
13033 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13034 $as_echo "$ac_cs_version"; exit ;;
13035 --debug | --debu | --deb | --de | --d | -d )
13036 debug=: ;;
13037 --file | --fil | --fi | --f )
13038 $ac_shift
13039 case $ac_optarg in
13040 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13041 esac
13042 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
13043 ac_need_defaults=false;;
13044 --he | --h | --help | --hel | -h )
13045 $as_echo "$ac_cs_usage"; exit ;;
13046 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13047 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13048 ac_cs_silent=: ;;
13049
13050 # This is an error.
13051 -*) { $as_echo "$as_me: error: unrecognized option: $1
13052Try \`$0 --help' for more information." >&2
13053 { (exit 1); exit 1; }; } ;;
13054
13055 *) ac_config_targets="$ac_config_targets $1"
13056 ac_need_defaults=false ;;
13057
13058 esac
13059 shift
13060done
13061
13062ac_configure_extra_args=
13063
13064if $ac_cs_silent; then
13065 exec 6>/dev/null
13066 ac_configure_extra_args="$ac_configure_extra_args --silent"
d9898ee8 13067fi
dd184caf 13068
8d138742
CE
13069_ACEOF
13070cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13071if \$ac_cs_recheck; then
13072 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13073 shift
13074 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13075 CONFIG_SHELL='$SHELL'
13076 export CONFIG_SHELL
13077 exec "\$@"
d9898ee8 13078fi
d9898ee8 13079
d9898ee8 13080_ACEOF
8d138742
CE
13081cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13082exec 5>>config.log
13083{
13084 echo
13085 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13086## Running $as_me. ##
13087_ASBOX
13088 $as_echo "$ac_log"
13089} >&5
d9898ee8 13090
8d138742
CE
13091_ACEOF
13092cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13093#
13094# INIT-COMMANDS
13095#
13096AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
d9898ee8 13097
13098
8d138742
CE
13099# The HP-UX ksh and POSIX shell print the target directory to stdout
13100# if CDPATH is set.
13101(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
d9898ee8 13102
8d138742
CE
13103sed_quote_subst='$sed_quote_subst'
13104double_quote_subst='$double_quote_subst'
13105delay_variable_subst='$delay_variable_subst'
13106macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
13107macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
13108enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
13109enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
13110pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
13111enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
13112host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
13113host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
13114host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
13115build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
13116build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
13117build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
13118SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
13119Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
13120GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
13121EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
13122FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
13123LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
13124NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
13125LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
13126max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
13127ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
13128exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
13129lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
13130lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
13131lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
13132reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
13133reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13134OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
13135deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
13136file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
13137AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
13138AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13139STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
13140RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
13141old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13142old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13143old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13144CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
13145CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13146compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
13147GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
13148lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
13149lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
13150lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
13151lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13152objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
13153SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
13154ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
13155MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
13156lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
13157lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
13158lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
13159lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
13160lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
13161need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
13162DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
13163NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
13164LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
13165OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
13166OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
13167libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
13168shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13169extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13170archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
13171enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
13172export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13173whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13174compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
13175old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13176old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13177archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13178archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13179module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13180module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13181with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
13182allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13183no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13184hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13185hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
13186hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
13187hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
13188hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
13189hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
13190hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13191hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
13192inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
13193link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
13194fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
13195always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
13196export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13197exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13198include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13199prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13200file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
13201variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
13202need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13203need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
13204version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
13205runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13206shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13207shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
13208libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13209library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
13210soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13211postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13212postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13213finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13214finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
13215hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
13216sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13217sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13218hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
13219enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
13220enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
13221enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
13222old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
13223striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
13224
13225LTCC='$LTCC'
13226LTCFLAGS='$LTCFLAGS'
13227compiler='$compiler_DEFAULT'
13228
13229# Quote evaled strings.
13230for var in SED \
13231GREP \
13232EGREP \
13233FGREP \
13234LD \
13235NM \
13236LN_S \
13237lt_SP2NL \
13238lt_NL2SP \
13239reload_flag \
13240OBJDUMP \
13241deplibs_check_method \
13242file_magic_cmd \
13243AR \
13244AR_FLAGS \
13245STRIP \
13246RANLIB \
13247CC \
13248CFLAGS \
13249compiler \
13250lt_cv_sys_global_symbol_pipe \
13251lt_cv_sys_global_symbol_to_cdecl \
13252lt_cv_sys_global_symbol_to_c_name_address \
13253lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13254SHELL \
13255ECHO \
13256lt_prog_compiler_no_builtin_flag \
13257lt_prog_compiler_wl \
13258lt_prog_compiler_pic \
13259lt_prog_compiler_static \
13260lt_cv_prog_compiler_c_o \
13261need_locks \
13262DSYMUTIL \
13263NMEDIT \
13264LIPO \
13265OTOOL \
13266OTOOL64 \
13267shrext_cmds \
13268export_dynamic_flag_spec \
13269whole_archive_flag_spec \
13270compiler_needs_object \
13271with_gnu_ld \
13272allow_undefined_flag \
13273no_undefined_flag \
13274hardcode_libdir_flag_spec \
13275hardcode_libdir_flag_spec_ld \
13276hardcode_libdir_separator \
13277fix_srcfile_path \
13278exclude_expsyms \
13279include_expsyms \
13280file_list_spec \
13281variables_saved_for_relink \
13282libname_spec \
13283library_names_spec \
13284soname_spec \
13285finish_eval \
13286old_striplib \
13287striplib; do
13288 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13289 *[\\\\\\\`\\"\\\$]*)
13290 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13291 ;;
13292 *)
13293 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13294 ;;
13295 esac
13296done
d9898ee8 13297
8d138742
CE
13298# Double-quote double-evaled strings.
13299for var in reload_cmds \
13300old_postinstall_cmds \
13301old_postuninstall_cmds \
13302old_archive_cmds \
13303extract_expsyms_cmds \
13304old_archive_from_new_cmds \
13305old_archive_from_expsyms_cmds \
13306archive_cmds \
13307archive_expsym_cmds \
13308module_cmds \
13309module_expsym_cmds \
13310export_symbols_cmds \
13311prelink_cmds \
13312postinstall_cmds \
13313postuninstall_cmds \
13314finish_cmds \
13315sys_lib_search_path_spec \
13316sys_lib_dlsearch_path_spec; do
13317 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13318 *[\\\\\\\`\\"\\\$]*)
13319 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13320 ;;
13321 *)
13322 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13323 ;;
13324 esac
13325done
13326
13327# Fix-up fallback echo if it was mangled by the above quoting rules.
13328case \$lt_ECHO in
13329*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
13330 ;;
dd184caf 13331esac
d9898ee8 13332
8d138742
CE
13333ac_aux_dir='$ac_aux_dir'
13334xsi_shell='$xsi_shell'
13335lt_shell_append='$lt_shell_append'
dd184caf 13336
8d138742
CE
13337# See if we are running on zsh, and set the options which allow our
13338# commands through without removal of \ escapes INIT.
13339if test -n "\${ZSH_VERSION+set}" ; then
13340 setopt NO_GLOB_SUBST
d9898ee8 13341fi
13342
d9898ee8 13343
8d138742
CE
13344 PACKAGE='$PACKAGE'
13345 VERSION='$VERSION'
13346 TIMESTAMP='$TIMESTAMP'
13347 RM='$RM'
13348 ofile='$ofile'
d9898ee8 13349
d9898ee8 13350
d9898ee8 13351
d9898ee8 13352
d9898ee8 13353_ACEOF
d9898ee8 13354
8d138742 13355cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
d9898ee8 13356
8d138742
CE
13357# Handling of arguments.
13358for ac_config_target in $ac_config_targets
13359do
13360 case $ac_config_target in
13361 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13362 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13363 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13364 "userdb.pl") CONFIG_FILES="$CONFIG_FILES userdb.pl" ;;
13365 "makeuserdb") CONFIG_FILES="$CONFIG_FILES makeuserdb" ;;
13366 "pw2userdb") CONFIG_FILES="$CONFIG_FILES pw2userdb" ;;
d9898ee8 13367
8d138742
CE
13368 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13369$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13370 { (exit 1); exit 1; }; };;
13371 esac
13372done
d9898ee8 13373
d9898ee8 13374
8d138742
CE
13375# If the user did not use the arguments to specify the items to instantiate,
13376# then the envvar interface is used. Set only those that are not.
13377# We use the long form for the default assignment because of an extremely
13378# bizarre bug on SunOS 4.1.3.
13379if $ac_need_defaults; then
13380 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13381 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13382fi
d9898ee8 13383
8d138742
CE
13384# Have a temporary directory for convenience. Make it in the build tree
13385# simply because there is no reason against having it here, and in addition,
13386# creating and moving files from /tmp can sometimes cause problems.
13387# Hook for its removal unless debugging.
13388# Note that there is a small window in which the directory will not be cleaned:
13389# after its creation but before its name has been assigned to `$tmp'.
13390$debug ||
d9898ee8 13391{
8d138742
CE
13392 tmp=
13393 trap 'exit_status=$?
13394 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13395' 0
13396 trap '{ (exit 1); exit 1; }' 1 2 13 15
d9898ee8 13397}
8d138742 13398# Create a (secure) tmp directory for tmp files.
d9898ee8 13399
8d138742
CE
13400{
13401 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13402 test -n "$tmp" && test -d "$tmp"
13403} ||
13404{
13405 tmp=./conf$$-$RANDOM
13406 (umask 077 && mkdir "$tmp")
13407} ||
13408{
13409 $as_echo "$as_me: cannot create a temporary directory in ." >&2
13410 { (exit 1); exit 1; }
13411}
dd184caf 13412
8d138742
CE
13413# Set up the scripts for CONFIG_FILES section.
13414# No need to generate them if there are no CONFIG_FILES.
13415# This happens for instance with `./config.status config.h'.
13416if test -n "$CONFIG_FILES"; then
d9898ee8 13417
13418
8d138742
CE
13419ac_cr='\r'
13420ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13421if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13422 ac_cs_awk_cr='\\r'
13423else
13424 ac_cs_awk_cr=$ac_cr
d9898ee8 13425fi
d9898ee8 13426
8d138742 13427echo 'BEGIN {' >"$tmp/subs1.awk" &&
d9898ee8 13428_ACEOF
13429
13430
8d138742
CE
13431{
13432 echo "cat >conf$$subs.awk <<_ACEOF" &&
13433 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13434 echo "_ACEOF"
13435} >conf$$subs.sh ||
13436 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13437$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13438 { (exit 1); exit 1; }; }
13439ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
13440ac_delim='%!_!# '
13441for ac_last_try in false false false false false :; do
13442 . ./conf$$subs.sh ||
13443 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13444$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13445 { (exit 1); exit 1; }; }
d9898ee8 13446
8d138742
CE
13447 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13448 if test $ac_delim_n = $ac_delim_num; then
13449 break
13450 elif $ac_last_try; then
13451 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13452$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13453 { (exit 1); exit 1; }; }
13454 else
13455 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13456 fi
13457done
13458rm -f conf$$subs.sh
13459
13460cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13461cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
13462_ACEOF
13463sed -n '
13464h
13465s/^/S["/; s/!.*/"]=/
13466p
13467g
13468s/^[^!]*!//
13469:repl
13470t repl
13471s/'"$ac_delim"'$//
13472t delim
13473:nl
13474h
13475s/\(.\{148\}\).*/\1/
13476t more1
13477s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13478p
13479n
13480b repl
13481:more1
13482s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13483p
13484g
13485s/.\{148\}//
13486t nl
13487:delim
13488h
13489s/\(.\{148\}\).*/\1/
13490t more2
13491s/["\\]/\\&/g; s/^/"/; s/$/"/
13492p
13493b
13494:more2
13495s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13496p
13497g
13498s/.\{148\}//
13499t delim
13500' <conf$$subs.awk | sed '
13501/^[^""]/{
13502 N
13503 s/\n//
13504}
13505' >>$CONFIG_STATUS || ac_write_fail=1
13506rm -f conf$$subs.awk
13507cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13508_ACAWK
13509cat >>"\$tmp/subs1.awk" <<_ACAWK &&
13510 for (key in S) S_is_set[key] = 1
13511 FS = "\a"
d9898ee8 13512
8d138742
CE
13513}
13514{
13515 line = $ 0
13516 nfields = split(line, field, "@")
13517 substed = 0
13518 len = length(field[1])
13519 for (i = 2; i < nfields; i++) {
13520 key = field[i]
13521 keylen = length(key)
13522 if (S_is_set[key]) {
13523 value = S[key]
13524 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13525 len += length(value) + length(field[++i])
13526 substed = 1
13527 } else
13528 len += 1 + keylen
13529 }
d9898ee8 13530
8d138742
CE
13531 print line
13532}
13533
13534_ACAWK
13535_ACEOF
13536cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13537if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13538 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
d9898ee8 13539else
8d138742
CE
13540 cat
13541fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
13542 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
13543$as_echo "$as_me: error: could not setup config files machinery" >&2;}
13544 { (exit 1); exit 1; }; }
d9898ee8 13545_ACEOF
d9898ee8 13546
8d138742
CE
13547# VPATH may cause trouble with some makes, so we remove $(srcdir),
13548# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13549# trailing colons and then remove the whole line if VPATH becomes empty
13550# (actually we leave an empty line to preserve line numbers).
13551if test "x$srcdir" = x.; then
13552 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13553s/:*\$(srcdir):*/:/
13554s/:*\${srcdir}:*/:/
13555s/:*@srcdir@:*/:/
13556s/^\([^=]*=[ ]*\):*/\1/
13557s/:*$//
13558s/^[^=]*=[ ]*$//
13559}'
13560fi
d9898ee8 13561
8d138742
CE
13562cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13563fi # test -n "$CONFIG_FILES"
d9898ee8 13564
d9898ee8 13565
8d138742
CE
13566eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
13567shift
13568for ac_tag
13569do
13570 case $ac_tag in
13571 :[FHLC]) ac_mode=$ac_tag; continue;;
13572 esac
13573 case $ac_mode$ac_tag in
13574 :[FHL]*:*);;
13575 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
13576$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
13577 { (exit 1); exit 1; }; };;
13578 :[FH]-) ac_tag=-:-;;
13579 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13580 esac
13581 ac_save_IFS=$IFS
13582 IFS=:
13583 set x $ac_tag
13584 IFS=$ac_save_IFS
13585 shift
13586 ac_file=$1
13587 shift
d9898ee8 13588
8d138742
CE
13589 case $ac_mode in
13590 :L) ac_source=$1;;
13591 :[FH])
13592 ac_file_inputs=
13593 for ac_f
13594 do
13595 case $ac_f in
13596 -) ac_f="$tmp/stdin";;
13597 *) # Look for the file first in the build tree, then in the source tree
13598 # (if the path is not absolute). The absolute path cannot be DOS-style,
13599 # because $ac_f cannot contain `:'.
13600 test -f "$ac_f" ||
13601 case $ac_f in
13602 [\\/$]*) false;;
13603 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13604 esac ||
13605 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
13606$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
13607 { (exit 1); exit 1; }; };;
13608 esac
13609 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13610 ac_file_inputs="$ac_file_inputs '$ac_f'"
13611 done
dd184caf 13612
8d138742
CE
13613 # Let's still pretend it is `configure' which instantiates (i.e., don't
13614 # use $as_me), people would be surprised to read:
13615 # /* config.h. Generated by config.status. */
13616 configure_input='Generated from '`
13617 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13618 `' by configure.'
13619 if test x"$ac_file" != x-; then
13620 configure_input="$ac_file. $configure_input"
13621 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
13622$as_echo "$as_me: creating $ac_file" >&6;}
13623 fi
13624 # Neutralize special characters interpreted by sed in replacement strings.
13625 case $configure_input in #(
13626 *\&* | *\|* | *\\* )
13627 ac_sed_conf_input=`$as_echo "$configure_input" |
13628 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13629 *) ac_sed_conf_input=$configure_input;;
13630 esac
d9898ee8 13631
8d138742
CE
13632 case $ac_tag in
13633 *:-:* | *:-) cat >"$tmp/stdin" \
13634 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13635$as_echo "$as_me: error: could not create $ac_file" >&2;}
13636 { (exit 1); exit 1; }; } ;;
13637 esac
13638 ;;
13639 esac
d9898ee8 13640
8d138742
CE
13641 ac_dir=`$as_dirname -- "$ac_file" ||
13642$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13643 X"$ac_file" : 'X\(//\)[^/]' \| \
13644 X"$ac_file" : 'X\(//\)$' \| \
13645 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13646$as_echo X"$ac_file" |
13647 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13648 s//\1/
13649 q
13650 }
13651 /^X\(\/\/\)[^/].*/{
13652 s//\1/
13653 q
13654 }
13655 /^X\(\/\/\)$/{
13656 s//\1/
13657 q
13658 }
13659 /^X\(\/\).*/{
13660 s//\1/
13661 q
13662 }
13663 s/.*/./; q'`
13664 { as_dir="$ac_dir"
13665 case $as_dir in #(
13666 -*) as_dir=./$as_dir;;
13667 esac
13668 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
13669 as_dirs=
13670 while :; do
13671 case $as_dir in #(
13672 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13673 *) as_qdir=$as_dir;;
13674 esac
13675 as_dirs="'$as_qdir' $as_dirs"
13676 as_dir=`$as_dirname -- "$as_dir" ||
13677$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13678 X"$as_dir" : 'X\(//\)[^/]' \| \
13679 X"$as_dir" : 'X\(//\)$' \| \
13680 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13681$as_echo X"$as_dir" |
13682 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13683 s//\1/
13684 q
13685 }
13686 /^X\(\/\/\)[^/].*/{
13687 s//\1/
13688 q
13689 }
13690 /^X\(\/\/\)$/{
13691 s//\1/
13692 q
13693 }
13694 /^X\(\/\).*/{
13695 s//\1/
13696 q
13697 }
13698 s/.*/./; q'`
13699 test -d "$as_dir" && break
13700 done
13701 test -z "$as_dirs" || eval "mkdir $as_dirs"
13702 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
13703$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
13704 { (exit 1); exit 1; }; }; }
13705 ac_builddir=.
d9898ee8 13706
8d138742
CE
13707case "$ac_dir" in
13708.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13709*)
13710 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13711 # A ".." for each directory in $ac_dir_suffix.
13712 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13713 case $ac_top_builddir_sub in
13714 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13715 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13716 esac ;;
13717esac
13718ac_abs_top_builddir=$ac_pwd
13719ac_abs_builddir=$ac_pwd$ac_dir_suffix
13720# for backward compatibility:
13721ac_top_builddir=$ac_top_build_prefix
d9898ee8 13722
8d138742
CE
13723case $srcdir in
13724 .) # We are building in place.
13725 ac_srcdir=.
13726 ac_top_srcdir=$ac_top_builddir_sub
13727 ac_abs_top_srcdir=$ac_pwd ;;
13728 [\\/]* | ?:[\\/]* ) # Absolute name.
13729 ac_srcdir=$srcdir$ac_dir_suffix;
13730 ac_top_srcdir=$srcdir
13731 ac_abs_top_srcdir=$srcdir ;;
13732 *) # Relative name.
13733 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13734 ac_top_srcdir=$ac_top_build_prefix$srcdir
13735 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13736esac
13737ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
dd184caf 13738
d9898ee8 13739
8d138742
CE
13740 case $ac_mode in
13741 :F)
13742 #
13743 # CONFIG_FILE
13744 #
d9898ee8 13745
8d138742
CE
13746 case $INSTALL in
13747 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13748 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13749 esac
13750 ac_MKDIR_P=$MKDIR_P
13751 case $MKDIR_P in
13752 [\\/$]* | ?:[\\/]* ) ;;
13753 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13754 esac
13755_ACEOF
d9898ee8 13756
8d138742
CE
13757cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13758# If the template does not know about datarootdir, expand it.
13759# FIXME: This hack should be removed a few years after 2.60.
13760ac_datarootdir_hack=; ac_datarootdir_seen=
d9898ee8 13761
8d138742
CE
13762ac_sed_dataroot='
13763/datarootdir/ {
13764 p
13765 q
13766}
13767/@datadir@/p
13768/@docdir@/p
13769/@infodir@/p
13770/@localedir@/p
13771/@mandir@/p
13772'
13773case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13774*datarootdir*) ac_datarootdir_seen=yes;;
13775*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13776 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13777$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13778_ACEOF
13779cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13780 ac_datarootdir_hack='
13781 s&@datadir@&$datadir&g
13782 s&@docdir@&$docdir&g
13783 s&@infodir@&$infodir&g
13784 s&@localedir@&$localedir&g
13785 s&@mandir@&$mandir&g
13786 s&\\\${datarootdir}&$datarootdir&g' ;;
13787esac
d9898ee8 13788_ACEOF
13789
8d138742
CE
13790# Neutralize VPATH when `$srcdir' = `.'.
13791# Shell code in configure.ac might set extrasub.
13792# FIXME: do we really want to maintain this feature?
13793cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13794ac_sed_extra="$ac_vpsub
13795$extrasub
13796_ACEOF
13797cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13798:t
13799/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13800s|@configure_input@|$ac_sed_conf_input|;t t
13801s&@top_builddir@&$ac_top_builddir_sub&;t t
13802s&@top_build_prefix@&$ac_top_build_prefix&;t t
13803s&@srcdir@&$ac_srcdir&;t t
13804s&@abs_srcdir@&$ac_abs_srcdir&;t t
13805s&@top_srcdir@&$ac_top_srcdir&;t t
13806s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13807s&@builddir@&$ac_builddir&;t t
13808s&@abs_builddir@&$ac_abs_builddir&;t t
13809s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13810s&@INSTALL@&$ac_INSTALL&;t t
13811s&@MKDIR_P@&$ac_MKDIR_P&;t t
13812$ac_datarootdir_hack
13813"
13814eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
13815 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13816$as_echo "$as_me: error: could not create $ac_file" >&2;}
13817 { (exit 1); exit 1; }; }
d9898ee8 13818
8d138742
CE
13819test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13820 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13821 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
13822 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13823which seems to be undefined. Please make sure it is defined." >&5
13824$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13825which seems to be undefined. Please make sure it is defined." >&2;}
d9898ee8 13826
8d138742
CE
13827 rm -f "$tmp/stdin"
13828 case $ac_file in
13829 -) cat "$tmp/out" && rm -f "$tmp/out";;
13830 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
13831 esac \
13832 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13833$as_echo "$as_me: error: could not create $ac_file" >&2;}
13834 { (exit 1); exit 1; }; }
13835 ;;
d9898ee8 13836
dd184caf 13837
8d138742
CE
13838 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
13839$as_echo "$as_me: executing $ac_file commands" >&6;}
13840 ;;
13841 esac
d9898ee8 13842
d9898ee8 13843
8d138742
CE
13844 case $ac_file$ac_mode in
13845 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13846 # Autoconf 2.62 quotes --file arguments for eval, but not when files
13847 # are listed without --file. Let's play safe and only enable the eval
13848 # if we detect the quoting.
13849 case $CONFIG_FILES in
13850 *\'*) eval set x "$CONFIG_FILES" ;;
13851 *) set x $CONFIG_FILES ;;
13852 esac
13853 shift
13854 for mf
13855 do
13856 # Strip MF so we end up with the name of the file.
13857 mf=`echo "$mf" | sed -e 's/:.*$//'`
13858 # Check whether this is an Automake generated Makefile or not.
13859 # We used to match only the files named `Makefile.in', but
13860 # some people rename them; so instead we look at the file content.
13861 # Grep'ing the first line is not enough: some people post-process
13862 # each Makefile.in and add a new line on top of each file to say so.
13863 # Grep'ing the whole file is not good either: AIX grep has a line
13864 # limit of 2048, but all sed's we know have understand at least 4000.
13865 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13866 dirpart=`$as_dirname -- "$mf" ||
13867$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13868 X"$mf" : 'X\(//\)[^/]' \| \
13869 X"$mf" : 'X\(//\)$' \| \
13870 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13871$as_echo X"$mf" |
13872 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13873 s//\1/
13874 q
13875 }
13876 /^X\(\/\/\)[^/].*/{
13877 s//\1/
13878 q
13879 }
13880 /^X\(\/\/\)$/{
13881 s//\1/
13882 q
13883 }
13884 /^X\(\/\).*/{
13885 s//\1/
13886 q
13887 }
13888 s/.*/./; q'`
13889 else
13890 continue
13891 fi
13892 # Extract the definition of DEPDIR, am__include, and am__quote
13893 # from the Makefile without running `make'.
13894 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13895 test -z "$DEPDIR" && continue
13896 am__include=`sed -n 's/^am__include = //p' < "$mf"`
13897 test -z "am__include" && continue
13898 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13899 # When using ansi2knr, U may be empty or an underscore; expand it
13900 U=`sed -n 's/^U = //p' < "$mf"`
13901 # Find all dependency output files, they are included files with
13902 # $(DEPDIR) in their names. We invoke sed twice because it is the
13903 # simplest approach to changing $(DEPDIR) to its actual value in the
13904 # expansion.
13905 for file in `sed -n "
13906 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13907 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13908 # Make sure the directory exists.
13909 test -f "$dirpart/$file" && continue
13910 fdir=`$as_dirname -- "$file" ||
13911$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13912 X"$file" : 'X\(//\)[^/]' \| \
13913 X"$file" : 'X\(//\)$' \| \
13914 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13915$as_echo X"$file" |
13916 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13917 s//\1/
13918 q
13919 }
13920 /^X\(\/\/\)[^/].*/{
13921 s//\1/
13922 q
13923 }
13924 /^X\(\/\/\)$/{
13925 s//\1/
13926 q
13927 }
13928 /^X\(\/\).*/{
13929 s//\1/
13930 q
13931 }
13932 s/.*/./; q'`
13933 { as_dir=$dirpart/$fdir
13934 case $as_dir in #(
13935 -*) as_dir=./$as_dir;;
13936 esac
13937 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
13938 as_dirs=
13939 while :; do
13940 case $as_dir in #(
13941 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13942 *) as_qdir=$as_dir;;
dd184caf 13943 esac
8d138742
CE
13944 as_dirs="'$as_qdir' $as_dirs"
13945 as_dir=`$as_dirname -- "$as_dir" ||
13946$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13947 X"$as_dir" : 'X\(//\)[^/]' \| \
13948 X"$as_dir" : 'X\(//\)$' \| \
13949 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13950$as_echo X"$as_dir" |
13951 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13952 s//\1/
13953 q
13954 }
13955 /^X\(\/\/\)[^/].*/{
13956 s//\1/
13957 q
13958 }
13959 /^X\(\/\/\)$/{
13960 s//\1/
13961 q
13962 }
13963 /^X\(\/\).*/{
13964 s//\1/
13965 q
13966 }
13967 s/.*/./; q'`
13968 test -d "$as_dir" && break
13969 done
13970 test -z "$as_dirs" || eval "mkdir $as_dirs"
13971 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
13972$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
13973 { (exit 1); exit 1; }; }; }
13974 # echo "creating $dirpart/$file"
13975 echo '# dummy' > "$dirpart/$file"
13976 done
13977 done
13978}
13979 ;;
13980 "libtool":C)
d9898ee8 13981
8d138742
CE
13982 # See if we are running on zsh, and set the options which allow our
13983 # commands through without removal of \ escapes.
13984 if test -n "${ZSH_VERSION+set}" ; then
13985 setopt NO_GLOB_SUBST
13986 fi
d9898ee8 13987
8d138742
CE
13988 cfgfile="${ofile}T"
13989 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13990 $RM "$cfgfile"
13991
13992 cat <<_LT_EOF >> "$cfgfile"
13993#! $SHELL
13994
13995# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13996# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13997# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13998# NOTE: Changes made to this file will be lost: look at ltmain.sh.
d9898ee8 13999#
8d138742
CE
14000# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14001# 2006, 2007, 2008 Free Software Foundation, Inc.
14002# Written by Gordon Matzigkeit, 1996
14003#
14004# This file is part of GNU Libtool.
14005#
14006# GNU Libtool is free software; you can redistribute it and/or
14007# modify it under the terms of the GNU General Public License as
14008# published by the Free Software Foundation; either version 2 of
14009# the License, or (at your option) any later version.
14010#
14011# As a special exception to the GNU General Public License,
14012# if you distribute this file as part of a program or library that
14013# is built using GNU Libtool, you may include this file under the
14014# same distribution terms that you use for the rest of that program.
14015#
14016# GNU Libtool is distributed in the hope that it will be useful,
14017# but WITHOUT ANY WARRANTY; without even the implied warranty of
14018# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14019# GNU General Public License for more details.
14020#
14021# You should have received a copy of the GNU General Public License
14022# along with GNU Libtool; see the file COPYING. If not, a copy
14023# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14024# obtained by writing to the Free Software Foundation, Inc.,
14025# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
d9898ee8 14026
14027
8d138742
CE
14028# The names of the tagged configurations supported by this script.
14029available_tags=""
d9898ee8 14030
8d138742 14031# ### BEGIN LIBTOOL CONFIG
d9898ee8 14032
8d138742
CE
14033# Which release of libtool.m4 was used?
14034macro_version=$macro_version
14035macro_revision=$macro_revision
d9898ee8 14036
8d138742
CE
14037# Whether or not to build shared libraries.
14038build_libtool_libs=$enable_shared
d9898ee8 14039
8d138742
CE
14040# Whether or not to build static libraries.
14041build_old_libs=$enable_static
d9898ee8 14042
8d138742
CE
14043# What type of objects to build.
14044pic_mode=$pic_mode
d9898ee8 14045
8d138742
CE
14046# Whether or not to optimize for fast installation.
14047fast_install=$enable_fast_install
d9898ee8 14048
8d138742
CE
14049# The host system.
14050host_alias=$host_alias
14051host=$host
14052host_os=$host_os
d9898ee8 14053
8d138742
CE
14054# The build system.
14055build_alias=$build_alias
14056build=$build
14057build_os=$build_os
14058
14059# A sed program that does not truncate output.
14060SED=$lt_SED
d9898ee8 14061
8d138742
CE
14062# Sed that helps us avoid accidentally triggering echo(1) options like -n.
14063Xsed="\$SED -e 1s/^X//"
d9898ee8 14064
8d138742
CE
14065# A grep program that handles long lines.
14066GREP=$lt_GREP
d9898ee8 14067
8d138742
CE
14068# An ERE matcher.
14069EGREP=$lt_EGREP
d9898ee8 14070
8d138742
CE
14071# A literal string matcher.
14072FGREP=$lt_FGREP
d9898ee8 14073
8d138742
CE
14074# A BSD- or MS-compatible name lister.
14075NM=$lt_NM
d9898ee8 14076
8d138742
CE
14077# Whether we need soft or hard links.
14078LN_S=$lt_LN_S
dd184caf 14079
8d138742
CE
14080# What is the maximum length of a command?
14081max_cmd_len=$max_cmd_len
dd184caf 14082
8d138742
CE
14083# Object file suffix (normally "o").
14084objext=$ac_objext
dd184caf 14085
8d138742
CE
14086# Executable file suffix (normally "").
14087exeext=$exeext
d9898ee8 14088
8d138742
CE
14089# whether the shell understands "unset".
14090lt_unset=$lt_unset
dd184caf 14091
8d138742
CE
14092# turn spaces into newlines.
14093SP2NL=$lt_lt_SP2NL
dd184caf 14094
8d138742
CE
14095# turn newlines into spaces.
14096NL2SP=$lt_lt_NL2SP
dd184caf 14097
8d138742
CE
14098# How to create reloadable object files.
14099reload_flag=$lt_reload_flag
14100reload_cmds=$lt_reload_cmds
dd184caf 14101
8d138742
CE
14102# An object symbol dumper.
14103OBJDUMP=$lt_OBJDUMP
dd184caf 14104
8d138742
CE
14105# Method to check whether dependent libraries are shared objects.
14106deplibs_check_method=$lt_deplibs_check_method
dd184caf 14107
8d138742
CE
14108# Command to use when deplibs_check_method == "file_magic".
14109file_magic_cmd=$lt_file_magic_cmd
14110
14111# The archiver.
14112AR=$lt_AR
14113AR_FLAGS=$lt_AR_FLAGS
14114
14115# A symbol stripping program.
14116STRIP=$lt_STRIP
14117
14118# Commands used to install an old-style archive.
14119RANLIB=$lt_RANLIB
14120old_postinstall_cmds=$lt_old_postinstall_cmds
14121old_postuninstall_cmds=$lt_old_postuninstall_cmds
14122
14123# A C compiler.
14124LTCC=$lt_CC
14125
14126# LTCC compiler flags.
14127LTCFLAGS=$lt_CFLAGS
14128
14129# Take the output of nm and produce a listing of raw symbols and C names.
14130global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14131
14132# Transform the output of nm in a proper C declaration.
14133global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14134
14135# Transform the output of nm in a C name address pair.
14136global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14137
14138# Transform the output of nm in a C name address pair when lib prefix is needed.
14139global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14140
14141# The name of the directory that contains temporary libtool files.
14142objdir=$objdir
dd184caf 14143
8d138742
CE
14144# Shell to use when invoking shell scripts.
14145SHELL=$lt_SHELL
dd184caf 14146
8d138742
CE
14147# An echo program that does not interpret backslashes.
14148ECHO=$lt_ECHO
dd184caf 14149
8d138742
CE
14150# Used to examine libraries when file_magic_cmd begins with "file".
14151MAGIC_CMD=$MAGIC_CMD
dd184caf 14152
8d138742
CE
14153# Must we lock files when doing compilation?
14154need_locks=$lt_need_locks
d9898ee8 14155
8d138742
CE
14156# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14157DSYMUTIL=$lt_DSYMUTIL
d9898ee8 14158
8d138742
CE
14159# Tool to change global to local symbols on Mac OS X.
14160NMEDIT=$lt_NMEDIT
d9898ee8 14161
8d138742
CE
14162# Tool to manipulate fat objects and archives on Mac OS X.
14163LIPO=$lt_LIPO
d9898ee8 14164
8d138742
CE
14165# ldd/readelf like tool for Mach-O binaries on Mac OS X.
14166OTOOL=$lt_OTOOL
dd184caf 14167
8d138742
CE
14168# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14169OTOOL64=$lt_OTOOL64
d9898ee8 14170
8d138742
CE
14171# Old archive suffix (normally "a").
14172libext=$libext
d9898ee8 14173
8d138742
CE
14174# Shared library suffix (normally ".so").
14175shrext_cmds=$lt_shrext_cmds
d9898ee8 14176
8d138742
CE
14177# The commands to extract the exported symbol list from a shared archive.
14178extract_expsyms_cmds=$lt_extract_expsyms_cmds
d9898ee8 14179
8d138742
CE
14180# Variables whose values should be saved in libtool wrapper scripts and
14181# restored at link time.
14182variables_saved_for_relink=$lt_variables_saved_for_relink
d9898ee8 14183
8d138742
CE
14184# Do we need the "lib" prefix for modules?
14185need_lib_prefix=$need_lib_prefix
d9898ee8 14186
8d138742
CE
14187# Do we need a version for libraries?
14188need_version=$need_version
d9898ee8 14189
8d138742
CE
14190# Library versioning type.
14191version_type=$version_type
d9898ee8 14192
8d138742
CE
14193# Shared library runtime path variable.
14194runpath_var=$runpath_var
d9898ee8 14195
8d138742
CE
14196# Shared library path variable.
14197shlibpath_var=$shlibpath_var
d9898ee8 14198
8d138742
CE
14199# Is shlibpath searched before the hard-coded library search path?
14200shlibpath_overrides_runpath=$shlibpath_overrides_runpath
d9898ee8 14201
8d138742
CE
14202# Format of library name prefix.
14203libname_spec=$lt_libname_spec
dd184caf 14204
8d138742
CE
14205# List of archive names. First name is the real one, the rest are links.
14206# The last name is the one that the linker finds with -lNAME
14207library_names_spec=$lt_library_names_spec
d9898ee8 14208
8d138742
CE
14209# The coded name of the library, if different from the real name.
14210soname_spec=$lt_soname_spec
d9898ee8 14211
8d138742
CE
14212# Command to use after installation of a shared archive.
14213postinstall_cmds=$lt_postinstall_cmds
d9898ee8 14214
8d138742
CE
14215# Command to use after uninstallation of a shared archive.
14216postuninstall_cmds=$lt_postuninstall_cmds
d9898ee8 14217
8d138742
CE
14218# Commands used to finish a libtool library installation in a directory.
14219finish_cmds=$lt_finish_cmds
d9898ee8 14220
8d138742
CE
14221# As "finish_cmds", except a single script fragment to be evaled but
14222# not shown.
14223finish_eval=$lt_finish_eval
d9898ee8 14224
8d138742
CE
14225# Whether we should hardcode library paths into libraries.
14226hardcode_into_libs=$hardcode_into_libs
d9898ee8 14227
8d138742
CE
14228# Compile-time system search path for libraries.
14229sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
d9898ee8 14230
8d138742
CE
14231# Run-time system search path for libraries.
14232sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
d9898ee8 14233
8d138742
CE
14234# Whether dlopen is supported.
14235dlopen_support=$enable_dlopen
d9898ee8 14236
8d138742
CE
14237# Whether dlopen of programs is supported.
14238dlopen_self=$enable_dlopen_self
dd184caf 14239
8d138742
CE
14240# Whether dlopen of statically linked programs is supported.
14241dlopen_self_static=$enable_dlopen_self_static
d9898ee8 14242
8d138742
CE
14243# Commands to strip libraries.
14244old_striplib=$lt_old_striplib
14245striplib=$lt_striplib
d9898ee8 14246
d9898ee8 14247
8d138742
CE
14248# The linker used to build libraries.
14249LD=$lt_LD
d9898ee8 14250
8d138742
CE
14251# Commands used to build an old-style archive.
14252old_archive_cmds=$lt_old_archive_cmds
d9898ee8 14253
8d138742
CE
14254# A language specific compiler.
14255CC=$lt_compiler
d9898ee8 14256
8d138742
CE
14257# Is the compiler the GNU compiler?
14258with_gcc=$GCC
d9898ee8 14259
8d138742
CE
14260# Compiler flag to turn off builtin functions.
14261no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
d9898ee8 14262
8d138742
CE
14263# How to pass a linker flag through the compiler.
14264wl=$lt_lt_prog_compiler_wl
d9898ee8 14265
8d138742
CE
14266# Additional compiler flags for building library objects.
14267pic_flag=$lt_lt_prog_compiler_pic
14268
14269# Compiler flag to prevent dynamic linking.
14270link_static_flag=$lt_lt_prog_compiler_static
d9898ee8 14271
8d138742
CE
14272# Does compiler simultaneously support -c and -o options?
14273compiler_c_o=$lt_lt_cv_prog_compiler_c_o
d9898ee8 14274
8d138742
CE
14275# Whether or not to add -lc for building shared libraries.
14276build_libtool_need_lc=$archive_cmds_need_lc
d9898ee8 14277
8d138742
CE
14278# Whether or not to disallow shared libs when runtime libs are static.
14279allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
dd184caf 14280
8d138742
CE
14281# Compiler flag to allow reflexive dlopens.
14282export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
dd184caf 14283
8d138742
CE
14284# Compiler flag to generate shared objects directly from archives.
14285whole_archive_flag_spec=$lt_whole_archive_flag_spec
d9898ee8 14286
8d138742
CE
14287# Whether the compiler copes with passing no objects directly.
14288compiler_needs_object=$lt_compiler_needs_object
dd184caf 14289
8d138742
CE
14290# Create an old-style archive from a shared archive.
14291old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
d9898ee8 14292
8d138742
CE
14293# Create a temporary old-style archive to link instead of a shared archive.
14294old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
d9898ee8 14295
8d138742
CE
14296# Commands used to build a shared archive.
14297archive_cmds=$lt_archive_cmds
14298archive_expsym_cmds=$lt_archive_expsym_cmds
d9898ee8 14299
8d138742
CE
14300# Commands used to build a loadable module if different from building
14301# a shared archive.
14302module_cmds=$lt_module_cmds
14303module_expsym_cmds=$lt_module_expsym_cmds
d9898ee8 14304
8d138742
CE
14305# Whether we are building with GNU ld or not.
14306with_gnu_ld=$lt_with_gnu_ld
d9898ee8 14307
8d138742
CE
14308# Flag that allows shared libraries with undefined symbols to be built.
14309allow_undefined_flag=$lt_allow_undefined_flag
d9898ee8 14310
8d138742
CE
14311# Flag that enforces no undefined symbols.
14312no_undefined_flag=$lt_no_undefined_flag
dd184caf 14313
8d138742
CE
14314# Flag to hardcode \$libdir into a binary during linking.
14315# This must work even if \$libdir does not exist
14316hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
dd184caf 14317
8d138742
CE
14318# If ld is used when linking, flag to hardcode \$libdir into a binary
14319# during linking. This must work even if \$libdir does not exist.
14320hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
dd184caf 14321
8d138742
CE
14322# Whether we need a single "-rpath" flag with a separated argument.
14323hardcode_libdir_separator=$lt_hardcode_libdir_separator
dd184caf 14324
8d138742
CE
14325# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14326# DIR into the resulting binary.
14327hardcode_direct=$hardcode_direct
dd184caf 14328
8d138742
CE
14329# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14330# DIR into the resulting binary and the resulting library dependency is
14331# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14332# library is relocated.
14333hardcode_direct_absolute=$hardcode_direct_absolute
dd184caf 14334
8d138742
CE
14335# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14336# into the resulting binary.
14337hardcode_minus_L=$hardcode_minus_L
d9898ee8 14338
8d138742
CE
14339# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14340# into the resulting binary.
14341hardcode_shlibpath_var=$hardcode_shlibpath_var
dd184caf 14342
8d138742
CE
14343# Set to "yes" if building a shared library automatically hardcodes DIR
14344# into the library and all subsequent libraries and executables linked
14345# against it.
14346hardcode_automatic=$hardcode_automatic
dd184caf 14347
8d138742
CE
14348# Set to yes if linker adds runtime paths of dependent libraries
14349# to runtime path list.
14350inherit_rpath=$inherit_rpath
dd184caf 14351
8d138742
CE
14352# Whether libtool must link a program against all its dependency libraries.
14353link_all_deplibs=$link_all_deplibs
dd184caf 14354
8d138742
CE
14355# Fix the shell variable \$srcfile for the compiler.
14356fix_srcfile_path=$lt_fix_srcfile_path
dd184caf 14357
8d138742
CE
14358# Set to "yes" if exported symbols are required.
14359always_export_symbols=$always_export_symbols
dd184caf 14360
8d138742
CE
14361# The commands to list exported symbols.
14362export_symbols_cmds=$lt_export_symbols_cmds
dd184caf 14363
8d138742
CE
14364# Symbols that should not be listed in the preloaded symbols.
14365exclude_expsyms=$lt_exclude_expsyms
dd184caf 14366
8d138742
CE
14367# Symbols that must always be exported.
14368include_expsyms=$lt_include_expsyms
dd184caf 14369
8d138742
CE
14370# Commands necessary for linking programs (against libraries) with templates.
14371prelink_cmds=$lt_prelink_cmds
dd184caf 14372
8d138742
CE
14373# Specify filename containing input files.
14374file_list_spec=$lt_file_list_spec
dd184caf 14375
8d138742
CE
14376# How to hardcode a shared library path into an executable.
14377hardcode_action=$hardcode_action
d9898ee8 14378
8d138742
CE
14379# ### END LIBTOOL CONFIG
14380
14381_LT_EOF
14382
14383 case $host_os in
14384 aix3*)
14385 cat <<\_LT_EOF >> "$cfgfile"
14386# AIX sometimes has problems with the GCC collect2 program. For some
14387# reason, if we set the COLLECT_NAMES environment variable, the problems
14388# vanish in a puff of smoke.
14389if test "X${COLLECT_NAMES+set}" != Xset; then
14390 COLLECT_NAMES=
14391 export COLLECT_NAMES
14392fi
14393_LT_EOF
14394 ;;
14395 esac
d9898ee8 14396
d9898ee8 14397
8d138742 14398ltmain="$ac_aux_dir/ltmain.sh"
d9898ee8 14399
d9898ee8 14400
8d138742
CE
14401 # We use sed instead of cat because bash on DJGPP gets confused if
14402 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14403 # text mode, it properly converts lines to CR/LF. This bash problem
14404 # is reportedly fixed, but why not run on old versions too?
14405 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14406 || (rm -f "$cfgfile"; exit 1)
d9898ee8 14407
8d138742
CE
14408 case $xsi_shell in
14409 yes)
14410 cat << \_LT_EOF >> "$cfgfile"
14411
14412# func_dirname file append nondir_replacement
14413# Compute the dirname of FILE. If nonempty, add APPEND to the result,
14414# otherwise set result to NONDIR_REPLACEMENT.
14415func_dirname ()
14416{
14417 case ${1} in
14418 */*) func_dirname_result="${1%/*}${2}" ;;
14419 * ) func_dirname_result="${3}" ;;
d9898ee8 14420 esac
8d138742 14421}
d9898ee8 14422
8d138742
CE
14423# func_basename file
14424func_basename ()
14425{
14426 func_basename_result="${1##*/}"
14427}
dd184caf 14428
8d138742
CE
14429# func_dirname_and_basename file append nondir_replacement
14430# perform func_basename and func_dirname in a single function
14431# call:
14432# dirname: Compute the dirname of FILE. If nonempty,
14433# add APPEND to the result, otherwise set result
14434# to NONDIR_REPLACEMENT.
14435# value returned in "$func_dirname_result"
14436# basename: Compute filename of FILE.
14437# value retuned in "$func_basename_result"
14438# Implementation must be kept synchronized with func_dirname
14439# and func_basename. For efficiency, we do not delegate to
14440# those functions but instead duplicate the functionality here.
14441func_dirname_and_basename ()
14442{
14443 case ${1} in
14444 */*) func_dirname_result="${1%/*}${2}" ;;
14445 * ) func_dirname_result="${3}" ;;
14446 esac
14447 func_basename_result="${1##*/}"
dd184caf 14448}
dd184caf 14449
8d138742
CE
14450# func_stripname prefix suffix name
14451# strip PREFIX and SUFFIX off of NAME.
14452# PREFIX and SUFFIX must not contain globbing or regex special
14453# characters, hashes, percent signs, but SUFFIX may contain a leading
14454# dot (in which case that matches only a dot).
14455func_stripname ()
14456{
14457 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14458 # positional parameters, so assign one to ordinary parameter first.
14459 func_stripname_result=${3}
14460 func_stripname_result=${func_stripname_result#"${1}"}
14461 func_stripname_result=${func_stripname_result%"${2}"}
14462}
dd184caf 14463
8d138742
CE
14464# func_opt_split
14465func_opt_split ()
14466{
14467 func_opt_split_opt=${1%%=*}
14468 func_opt_split_arg=${1#*=}
14469}
dd184caf 14470
8d138742
CE
14471# func_lo2o object
14472func_lo2o ()
14473{
14474 case ${1} in
14475 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14476 *) func_lo2o_result=${1} ;;
dd184caf 14477 esac
8d138742 14478}
d9898ee8 14479
8d138742
CE
14480# func_xform libobj-or-source
14481func_xform ()
14482{
14483 func_xform_result=${1%.*}.lo
14484}
d9898ee8 14485
8d138742
CE
14486# func_arith arithmetic-term...
14487func_arith ()
14488{
14489 func_arith_result=$(( $* ))
14490}
d9898ee8 14491
8d138742
CE
14492# func_len string
14493# STRING may not start with a hyphen.
14494func_len ()
14495{
14496 func_len_result=${#1}
14497}
d9898ee8 14498
8d138742
CE
14499_LT_EOF
14500 ;;
14501 *) # Bourne compatible functions.
14502 cat << \_LT_EOF >> "$cfgfile"
14503
14504# func_dirname file append nondir_replacement
14505# Compute the dirname of FILE. If nonempty, add APPEND to the result,
14506# otherwise set result to NONDIR_REPLACEMENT.
14507func_dirname ()
14508{
14509 # Extract subdirectory from the argument.
14510 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
14511 if test "X$func_dirname_result" = "X${1}"; then
14512 func_dirname_result="${3}"
d9898ee8 14513 else
8d138742 14514 func_dirname_result="$func_dirname_result${2}"
d9898ee8 14515 fi
8d138742
CE
14516}
14517
14518# func_basename file
14519func_basename ()
14520{
14521 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
14522}
14523
14524
14525# func_stripname prefix suffix name
14526# strip PREFIX and SUFFIX off of NAME.
14527# PREFIX and SUFFIX must not contain globbing or regex special
14528# characters, hashes, percent signs, but SUFFIX may contain a leading
14529# dot (in which case that matches only a dot).
14530# func_strip_suffix prefix name
14531func_stripname ()
14532{
14533 case ${2} in
14534 .*) func_stripname_result=`$ECHO "X${3}" \
14535 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
14536 *) func_stripname_result=`$ECHO "X${3}" \
14537 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
dd184caf 14538 esac
8d138742
CE
14539}
14540
14541# sed scripts:
14542my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14543my_sed_long_arg='1s/^-[^=]*=//'
14544
14545# func_opt_split
14546func_opt_split ()
14547{
14548 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
14549 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
14550}
14551
14552# func_lo2o object
14553func_lo2o ()
14554{
14555 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
14556}
14557
14558# func_xform libobj-or-source
14559func_xform ()
14560{
14561 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
14562}
14563
14564# func_arith arithmetic-term...
14565func_arith ()
14566{
14567 func_arith_result=`expr "$@"`
14568}
14569
14570# func_len string
14571# STRING may not start with a hyphen.
14572func_len ()
14573{
14574 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
14575}
14576
14577_LT_EOF
14578esac
14579
14580case $lt_shell_append in
14581 yes)
14582 cat << \_LT_EOF >> "$cfgfile"
14583
14584# func_append var value
14585# Append VALUE to the end of shell variable VAR.
14586func_append ()
14587{
14588 eval "$1+=\$2"
14589}
14590_LT_EOF
14591 ;;
14592 *)
14593 cat << \_LT_EOF >> "$cfgfile"
14594
14595# func_append var value
14596# Append VALUE to the end of shell variable VAR.
14597func_append ()
14598{
14599 eval "$1=\$$1\$2"
14600}
14601
14602_LT_EOF
14603 ;;
14604 esac
14605
14606
14607 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
14608 || (rm -f "$cfgfile"; exit 1)
14609
14610 mv -f "$cfgfile" "$ofile" ||
14611 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14612 chmod +x "$ofile"
14613
d9898ee8 14614 ;;
dd184caf 14615
d9898ee8 14616 esac
dd184caf 14617done # for ac_tag
d9898ee8 14618
d9898ee8 14619
14620{ (exit 0); exit 0; }
14621_ACEOF
14622chmod +x $CONFIG_STATUS
14623ac_clean_files=$ac_clean_files_save
14624
8d138742
CE
14625test $ac_write_fail = 0 ||
14626 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
14627$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
14628 { (exit 1); exit 1; }; }
14629
d9898ee8 14630
14631# configure is writing to config.log, and then calls config.status.
14632# config.status does its own redirection, appending to config.log.
14633# Unfortunately, on DOS this fails, as config.log is still kept open
14634# by configure, so config.status won't be able to write to it; its
14635# output is simply discarded. So we exec the FD to /dev/null,
14636# effectively closing config.log, so it can be properly (re)opened and
14637# appended to by config.status. When coming back to configure, we
14638# need to make the FD available again.
14639if test "$no_create" != yes; then
14640 ac_cs_success=:
14641 ac_config_status_args=
14642 test "$silent" = yes &&
14643 ac_config_status_args="$ac_config_status_args --quiet"
14644 exec 5>/dev/null
14645 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14646 exec 5>>config.log
14647 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14648 # would make configure fail if this is the last instruction.
14649 $ac_cs_success || { (exit 1); exit 1; }
14650fi
8d138742
CE
14651if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14652 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14653$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14654fi
d9898ee8 14655