Imported Upstream version 0.63.0
[hcoop/debian/courier-authlib.git] / bdbobj / 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 bdbobj 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'
dd184caf 56 else
8d138742
CE
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
dd184caf 69 fi
8d138742
CE
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
d9898ee8 81fi
d9898ee8 82
83# Support unset when possible.
84if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
85 as_unset=unset
86else
87 as_unset=false
88fi
89
90
dd184caf 91# IFS
92# We need space, tab and new line, in precisely that order. Quoting is
93# there to prevent editors from complaining about space-tab.
94# (If _AS_PATH_WALK were called with IFS unset, it would disable word
95# splitting by setting IFS to empty value.)
dd184caf 96IFS=" "" $as_nl"
97
98# Find who we are. Look in the path if we contain no directory separator.
99case $0 in
100 *[\\/]* ) as_myself=$0 ;;
101 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
102for as_dir in $PATH
103do
104 IFS=$as_save_IFS
105 test -z "$as_dir" && as_dir=.
106 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107done
108IFS=$as_save_IFS
109
110 ;;
111esac
112# We did not find ourselves, most probably we were run as `sh COMMAND'
113# in which case we are not to be found in the path.
114if test "x$as_myself" = x; then
115 as_myself=$0
116fi
117if test ! -f "$as_myself"; then
8d138742 118 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
dd184caf 119 { (exit 1); exit 1; }
120fi
121
d9898ee8 122# Work around bugs in pre-3.0 UWIN ksh.
dd184caf 123for as_var in ENV MAIL MAILPATH
124do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
125done
d9898ee8 126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
8d138742
CE
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
d9898ee8 135
136# Required to use basename.
dd184caf 137if expr a : '\(a\)' >/dev/null 2>&1 &&
138 test "X`expr 00001 : '.*\(...\)'`" = X001; then
d9898ee8 139 as_expr=expr
140else
141 as_expr=false
142fi
143
dd184caf 144if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
d9898ee8 145 as_basename=basename
146else
147 as_basename=false
148fi
149
150
151# Name of the executable.
dd184caf 152as_me=`$as_basename -- "$0" ||
d9898ee8 153$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
154 X"$0" : 'X\(//\)$' \| \
dd184caf 155 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8d138742 156$as_echo X/"$0" |
dd184caf 157 sed '/^.*\/\([^/][^/]*\)\/*$/{
158 s//\1/
159 q
160 }
161 /^X\/\(\/\/\)$/{
162 s//\1/
163 q
164 }
165 /^X\/\(\/\).*/{
166 s//\1/
167 q
168 }
169 s/.*/./; q'`
d9898ee8 170
dd184caf 171# CDPATH.
172$as_unset CDPATH
d9898ee8 173
d9898ee8 174
dd184caf 175if test "x$CONFIG_SHELL" = x; then
176 if (eval ":") 2>/dev/null; then
177 as_have_required=yes
178else
179 as_have_required=no
d9898ee8 180fi
181
8d138742 182 if test $as_have_required = yes && (eval ":
dd184caf 183(as_func_return () {
184 (exit \$1)
185}
186as_func_success () {
187 as_func_return 0
188}
189as_func_failure () {
190 as_func_return 1
191}
192as_func_ret_success () {
193 return 0
194}
195as_func_ret_failure () {
196 return 1
197}
d9898ee8 198
dd184caf 199exitcode=0
200if as_func_success; then
201 :
202else
203 exitcode=1
204 echo as_func_success failed.
205fi
d9898ee8 206
dd184caf 207if as_func_failure; then
208 exitcode=1
209 echo as_func_failure succeeded.
210fi
211
212if as_func_ret_success; then
213 :
214else
215 exitcode=1
216 echo as_func_ret_success failed.
217fi
218
219if as_func_ret_failure; then
220 exitcode=1
221 echo as_func_ret_failure succeeded.
222fi
223
224if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
225 :
226else
227 exitcode=1
228 echo positional parameters were not saved.
229fi
230
231test \$exitcode = 0) || { (exit 1); exit 1; }
232
233(
234 as_lineno_1=\$LINENO
235 as_lineno_2=\$LINENO
236 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
237 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
238") 2> /dev/null; then
239 :
240else
241 as_candidate_shells=
d9898ee8 242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
243for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
244do
245 IFS=$as_save_IFS
246 test -z "$as_dir" && as_dir=.
dd184caf 247 case $as_dir in
d9898ee8 248 /*)
dd184caf 249 for as_base in sh bash ksh sh5; do
250 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
251 done;;
252 esac
253done
254IFS=$as_save_IFS
255
256
257 for as_shell in $as_candidate_shells $SHELL; do
258 # Try only shells that exist, to save several forks.
259 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
260 { ("$as_shell") 2> /dev/null <<\_ASEOF
261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
8d138742 264 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
dd184caf 265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271esac
272
273fi
274
275
276:
277_ASEOF
278}; then
279 CONFIG_SHELL=$as_shell
280 as_have_required=yes
281 if { "$as_shell" 2> /dev/null <<\_ASEOF
282if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283 emulate sh
284 NULLCMD=:
8d138742 285 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
dd184caf 286 # is contrary to our usage. Disable this feature.
287 alias -g '${1+"$@"}'='"$@"'
288 setopt NO_GLOB_SUBST
289else
290 case `(set -o) 2>/dev/null` in
291 *posix*) set -o posix ;;
292esac
293
294fi
295
296
297:
298(as_func_return () {
299 (exit $1)
300}
301as_func_success () {
302 as_func_return 0
303}
304as_func_failure () {
305 as_func_return 1
306}
307as_func_ret_success () {
308 return 0
309}
310as_func_ret_failure () {
311 return 1
312}
313
314exitcode=0
315if as_func_success; then
316 :
317else
318 exitcode=1
319 echo as_func_success failed.
320fi
321
322if as_func_failure; then
323 exitcode=1
324 echo as_func_failure succeeded.
325fi
326
327if as_func_ret_success; then
328 :
329else
330 exitcode=1
331 echo as_func_ret_success failed.
332fi
333
334if as_func_ret_failure; then
335 exitcode=1
336 echo as_func_ret_failure succeeded.
337fi
338
339if ( set x; as_func_ret_success y && test x = "$1" ); then
340 :
341else
342 exitcode=1
343 echo positional parameters were not saved.
344fi
345
346test $exitcode = 0) || { (exit 1); exit 1; }
347
348(
d9898ee8 349 as_lineno_1=$LINENO
350 as_lineno_2=$LINENO
d9898ee8 351 test "x$as_lineno_1" != "x$as_lineno_2" &&
dd184caf 352 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
353
354_ASEOF
355}; then
356 break
357fi
358
359fi
360
361 done
362
363 if test "x$CONFIG_SHELL" != x; then
364 for as_var in BASH_ENV ENV
8d138742
CE
365 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366 done
367 export CONFIG_SHELL
368 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
dd184caf 369fi
370
371
372 if test $as_have_required = no; then
373 echo This script requires a shell more modern than all the
374 echo shells that I found on your system. Please install a
375 echo modern shell, or manually run the script under such a
376 echo shell if you do have one.
377 { (exit 1); exit 1; }
378fi
379
380
381fi
382
383fi
384
385
386
387(eval "as_func_return () {
388 (exit \$1)
389}
390as_func_success () {
391 as_func_return 0
392}
393as_func_failure () {
394 as_func_return 1
395}
396as_func_ret_success () {
397 return 0
398}
399as_func_ret_failure () {
400 return 1
401}
402
403exitcode=0
404if as_func_success; then
405 :
406else
407 exitcode=1
408 echo as_func_success failed.
409fi
410
411if as_func_failure; then
412 exitcode=1
413 echo as_func_failure succeeded.
414fi
415
416if as_func_ret_success; then
417 :
418else
419 exitcode=1
420 echo as_func_ret_success failed.
421fi
422
423if as_func_ret_failure; then
424 exitcode=1
425 echo as_func_ret_failure succeeded.
426fi
427
428if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
429 :
430else
431 exitcode=1
432 echo positional parameters were not saved.
433fi
434
435test \$exitcode = 0") || {
436 echo No shell found that supports shell functions.
8d138742
CE
437 echo Please tell bug-autoconf@gnu.org about your system,
438 echo including any error possibly output before this message.
439 echo This can help us improve future autoconf versions.
440 echo Configuration will now proceed without shell functions.
dd184caf 441}
442
443
444
445 as_lineno_1=$LINENO
446 as_lineno_2=$LINENO
447 test "x$as_lineno_1" != "x$as_lineno_2" &&
448 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
d9898ee8 449
450 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
451 # uniformly replaced by the line number. The first 'sed' inserts a
dd184caf 452 # line-number line after each line using $LINENO; the second 'sed'
453 # does the real work. The second script uses 'N' to pair each
454 # line-number line with the line containing $LINENO, and appends
455 # trailing '-' during substitution so that $LINENO is not a special
456 # case at line end.
d9898ee8 457 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
dd184caf 458 # scripts with optimization help from Paolo Bonzini. Blame Lee
459 # E. McMahon (1931-1989) for sed's syntax. :-)
460 sed -n '
461 p
462 /[$]LINENO/=
463 ' <$as_myself |
d9898ee8 464 sed '
dd184caf 465 s/[$]LINENO.*/&-/
466 t lineno
467 b
468 :lineno
d9898ee8 469 N
dd184caf 470 :loop
471 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
d9898ee8 472 t loop
dd184caf 473 s/-\n.*//
d9898ee8 474 ' >$as_me.lineno &&
dd184caf 475 chmod +x "$as_me.lineno" ||
8d138742 476 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
d9898ee8 477 { (exit 1); exit 1; }; }
478
479 # Don't try to exec as it changes $[0], causing all sort of problems
480 # (the dirname of $[0] is not the place where we might find the
dd184caf 481 # original and so on. Autoconf is especially sensitive to this).
482 . "./$as_me.lineno"
d9898ee8 483 # Exit status is that of the last command.
484 exit
485}
486
487
dd184caf 488if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
489 as_dirname=dirname
490else
491 as_dirname=false
492fi
493
494ECHO_C= ECHO_N= ECHO_T=
495case `echo -n x` in
496-n*)
497 case `echo 'x\c'` in
498 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
499 *) ECHO_C='\c';;
500 esac;;
501*)
502 ECHO_N='-n';;
d9898ee8 503esac
dd184caf 504if expr a : '\(a\)' >/dev/null 2>&1 &&
505 test "X`expr 00001 : '.*\(...\)'`" = X001; then
d9898ee8 506 as_expr=expr
507else
508 as_expr=false
509fi
510
511rm -f conf$$ conf$$.exe conf$$.file
dd184caf 512if test -d conf$$.dir; then
513 rm -f conf$$.dir/conf$$.file
514else
515 rm -f conf$$.dir
8d138742
CE
516 mkdir conf$$.dir 2>/dev/null
517fi
518if (echo >conf$$.file) 2>/dev/null; then
519 if ln -s conf$$.file conf$$ 2>/dev/null; then
520 as_ln_s='ln -s'
521 # ... but there are two gotchas:
522 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
523 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
524 # In both cases, we have to default to `cp -p'.
525 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
526 as_ln_s='cp -p'
527 elif ln conf$$.file conf$$ 2>/dev/null; then
528 as_ln_s=ln
529 else
d9898ee8 530 as_ln_s='cp -p'
8d138742 531 fi
d9898ee8 532else
533 as_ln_s='cp -p'
534fi
dd184caf 535rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
536rmdir conf$$.dir 2>/dev/null
d9898ee8 537
538if mkdir -p . 2>/dev/null; then
539 as_mkdir_p=:
540else
541 test -d ./-p && rmdir ./-p
542 as_mkdir_p=false
543fi
544
dd184caf 545if test -x / >/dev/null 2>&1; then
546 as_test_x='test -x'
547else
548 if ls -dL / >/dev/null 2>&1; then
549 as_ls_L_option=L
550 else
551 as_ls_L_option=
552 fi
553 as_test_x='
554 eval sh -c '\''
555 if test -d "$1"; then
8d138742 556 test -d "$1/.";
dd184caf 557 else
558 case $1 in
8d138742 559 -*)set "./$1";;
dd184caf 560 esac;
561 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
562 ???[sx]*):;;*)false;;esac;fi
563 '\'' sh
564 '
565fi
566as_executable_p=$as_test_x
d9898ee8 567
568# Sed expression to map a string onto a valid CPP name.
569as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
570
571# Sed expression to map a string onto a valid variable name.
572as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
573
574
d9898ee8 575
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='bdbobj'
747PACKAGE_TARNAME='bdbobj'
748PACKAGE_VERSION='0.10'
749PACKAGE_STRING='bdbobj 0.10'
750PACKAGE_BUGREPORT='courier-users@lists.sourceforge.net'
751
752ac_unique_file="bdbobj.h"
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
793FOUND_DB_FALSE
794FOUND_DB_TRUE
795LIBDB
796CXXCPP
797OTOOL64
798OTOOL
799LIPO
800NMEDIT
801DSYMUTIL
802lt_ECHO
803RANLIB
804AR
805OBJDUMP
806LN_S
807NM
808ac_ct_DUMPBIN
809DUMPBIN
810LD
811FGREP
812SED
813host_os
814host_vendor
815host_cpu
816host
817build_os
818build_vendor
819build_cpu
820build
821LIBTOOL
822am__fastdepCXX_FALSE
823am__fastdepCXX_TRUE
824CXXDEPMODE
825ac_ct_CXX
826CXXFLAGS
827CXX
828EGREP
829GREP
830CPP
831am__fastdepCC_FALSE
832am__fastdepCC_TRUE
833CCDEPMODE
834AMDEPBACKSLASH
835AMDEP_FALSE
836AMDEP_TRUE
837am__quote
838am__include
839DEPDIR
840OBJEXT
841EXEEXT
842ac_ct_CC
843CPPFLAGS
844LDFLAGS
845CFLAGS
846CC
847am__untar
848am__tar
849AMTAR
850am__leading_dot
851SET_MAKE
852AWK
853mkdir_p
854MKDIR_P
855INSTALL_STRIP_PROGRAM
856STRIP
857install_sh
858MAKEINFO
859AUTOHEADER
860AUTOMAKE
861AUTOCONF
862ACLOCAL
863VERSION
864PACKAGE
865CYGPATH_W
866am__isrc
867INSTALL_DATA
868INSTALL_SCRIPT
869INSTALL_PROGRAM
870target_alias
871host_alias
dd184caf 872build_alias
8d138742
CE
873LIBS
874ECHO_T
875ECHO_N
876ECHO_C
877DEFS
878mandir
879localedir
880libdir
881psdir
882pdfdir
883dvidir
884htmldir
885infodir
886docdir
887oldincludedir
888includedir
889localstatedir
890sharedstatedir
891sysconfdir
892datadir
893datarootdir
894libexecdir
895sbindir
896bindir
897program_transform_name
898prefix
899exec_prefix
900PACKAGE_BUGREPORT
901PACKAGE_STRING
902PACKAGE_VERSION
903PACKAGE_TARNAME
904PACKAGE_NAME
905PATH_SEPARATOR
906SHELL'
907ac_subst_files=''
908ac_user_opts='
909enable_option_checking
910enable_dependency_tracking
911enable_shared
912enable_static
913with_pic
914enable_fast_install
915with_gnu_ld
916enable_libtool_lock
917'
918 ac_precious_vars='build_alias
dd184caf 919host_alias
920target_alias
dd184caf 921CC
922CFLAGS
923LDFLAGS
8d138742 924LIBS
dd184caf 925CPPFLAGS
926CPP
927CXX
928CXXFLAGS
929CCC
8d138742 930CXXCPP'
dd184caf 931
d9898ee8 932
933# Initialize some variables set by options.
934ac_init_help=
935ac_init_version=false
8d138742
CE
936ac_unrecognized_opts=
937ac_unrecognized_sep=
d9898ee8 938# The variables have the same names as the options, with
939# dashes changed to underlines.
940cache_file=/dev/null
941exec_prefix=NONE
942no_create=
943no_recursion=
944prefix=NONE
945program_prefix=NONE
946program_suffix=NONE
947program_transform_name=s,x,x,
948silent=
949site=
950srcdir=
951verbose=
952x_includes=NONE
953x_libraries=NONE
954
955# Installation directory options.
956# These are left unexpanded so users can "make install exec_prefix=/foo"
957# and all the variables that are supposed to be based on exec_prefix
958# by default will actually change.
959# Use braces instead of parens because sh, perl, etc. also accept them.
dd184caf 960# (The list follows the same order as the GNU Coding Standards.)
d9898ee8 961bindir='${exec_prefix}/bin'
962sbindir='${exec_prefix}/sbin'
963libexecdir='${exec_prefix}/libexec'
dd184caf 964datarootdir='${prefix}/share'
965datadir='${datarootdir}'
d9898ee8 966sysconfdir='${prefix}/etc'
967sharedstatedir='${prefix}/com'
968localstatedir='${prefix}/var'
d9898ee8 969includedir='${prefix}/include'
970oldincludedir='/usr/include'
dd184caf 971docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
972infodir='${datarootdir}/info'
973htmldir='${docdir}'
974dvidir='${docdir}'
975pdfdir='${docdir}'
976psdir='${docdir}'
977libdir='${exec_prefix}/lib'
978localedir='${datarootdir}/locale'
979mandir='${datarootdir}/man'
d9898ee8 980
981ac_prev=
dd184caf 982ac_dashdash=
d9898ee8 983for ac_option
984do
985 # If the previous option needs an argument, assign it.
986 if test -n "$ac_prev"; then
dd184caf 987 eval $ac_prev=\$ac_option
d9898ee8 988 ac_prev=
989 continue
990 fi
991
dd184caf 992 case $ac_option in
993 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
994 *) ac_optarg=yes ;;
995 esac
d9898ee8 996
997 # Accept the important Cygnus configure options, so we can diagnose typos.
998
dd184caf 999 case $ac_dashdash$ac_option in
1000 --)
1001 ac_dashdash=yes ;;
d9898ee8 1002
1003 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1004 ac_prev=bindir ;;
1005 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1006 bindir=$ac_optarg ;;
1007
1008 -build | --build | --buil | --bui | --bu)
1009 ac_prev=build_alias ;;
1010 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1011 build_alias=$ac_optarg ;;
1012
1013 -cache-file | --cache-file | --cache-fil | --cache-fi \
1014 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1015 ac_prev=cache_file ;;
1016 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1017 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1018 cache_file=$ac_optarg ;;
1019
1020 --config-cache | -C)
1021 cache_file=config.cache ;;
1022
dd184caf 1023 -datadir | --datadir | --datadi | --datad)
d9898ee8 1024 ac_prev=datadir ;;
dd184caf 1025 -datadir=* | --datadir=* | --datadi=* | --datad=*)
d9898ee8 1026 datadir=$ac_optarg ;;
1027
dd184caf 1028 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1029 | --dataroo | --dataro | --datar)
1030 ac_prev=datarootdir ;;
1031 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1032 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1033 datarootdir=$ac_optarg ;;
1034
d9898ee8 1035 -disable-* | --disable-*)
8d138742 1036 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
d9898ee8 1037 # Reject names that are not valid shell variable names.
8d138742
CE
1038 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1039 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
d9898ee8 1040 { (exit 1); exit 1; }; }
8d138742
CE
1041 ac_useropt_orig=$ac_useropt
1042 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1043 case $ac_user_opts in
1044 *"
1045"enable_$ac_useropt"
1046"*) ;;
1047 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1048 ac_unrecognized_sep=', ';;
1049 esac
1050 eval enable_$ac_useropt=no ;;
dd184caf 1051
1052 -docdir | --docdir | --docdi | --doc | --do)
1053 ac_prev=docdir ;;
1054 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1055 docdir=$ac_optarg ;;
1056
1057 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1058 ac_prev=dvidir ;;
1059 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1060 dvidir=$ac_optarg ;;
d9898ee8 1061
1062 -enable-* | --enable-*)
8d138742 1063 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
d9898ee8 1064 # Reject names that are not valid shell variable names.
8d138742
CE
1065 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1066 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
d9898ee8 1067 { (exit 1); exit 1; }; }
8d138742
CE
1068 ac_useropt_orig=$ac_useropt
1069 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1070 case $ac_user_opts in
1071 *"
1072"enable_$ac_useropt"
1073"*) ;;
1074 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1075 ac_unrecognized_sep=', ';;
1076 esac
1077 eval enable_$ac_useropt=\$ac_optarg ;;
d9898ee8 1078
1079 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1080 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1081 | --exec | --exe | --ex)
1082 ac_prev=exec_prefix ;;
1083 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1084 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1085 | --exec=* | --exe=* | --ex=*)
1086 exec_prefix=$ac_optarg ;;
1087
1088 -gas | --gas | --ga | --g)
1089 # Obsolete; use --with-gas.
1090 with_gas=yes ;;
1091
1092 -help | --help | --hel | --he | -h)
1093 ac_init_help=long ;;
1094 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1095 ac_init_help=recursive ;;
1096 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1097 ac_init_help=short ;;
1098
1099 -host | --host | --hos | --ho)
1100 ac_prev=host_alias ;;
1101 -host=* | --host=* | --hos=* | --ho=*)
1102 host_alias=$ac_optarg ;;
1103
dd184caf 1104 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1105 ac_prev=htmldir ;;
1106 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1107 | --ht=*)
1108 htmldir=$ac_optarg ;;
1109
d9898ee8 1110 -includedir | --includedir | --includedi | --included | --include \
1111 | --includ | --inclu | --incl | --inc)
1112 ac_prev=includedir ;;
1113 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1114 | --includ=* | --inclu=* | --incl=* | --inc=*)
1115 includedir=$ac_optarg ;;
1116
1117 -infodir | --infodir | --infodi | --infod | --info | --inf)
1118 ac_prev=infodir ;;
1119 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1120 infodir=$ac_optarg ;;
1121
1122 -libdir | --libdir | --libdi | --libd)
1123 ac_prev=libdir ;;
1124 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1125 libdir=$ac_optarg ;;
1126
1127 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1128 | --libexe | --libex | --libe)
1129 ac_prev=libexecdir ;;
1130 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1131 | --libexe=* | --libex=* | --libe=*)
1132 libexecdir=$ac_optarg ;;
1133
dd184caf 1134 -localedir | --localedir | --localedi | --localed | --locale)
1135 ac_prev=localedir ;;
1136 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1137 localedir=$ac_optarg ;;
1138
d9898ee8 1139 -localstatedir | --localstatedir | --localstatedi | --localstated \
dd184caf 1140 | --localstate | --localstat | --localsta | --localst | --locals)
d9898ee8 1141 ac_prev=localstatedir ;;
1142 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
dd184caf 1143 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
d9898ee8 1144 localstatedir=$ac_optarg ;;
1145
1146 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1147 ac_prev=mandir ;;
1148 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1149 mandir=$ac_optarg ;;
1150
1151 -nfp | --nfp | --nf)
1152 # Obsolete; use --without-fp.
1153 with_fp=no ;;
1154
1155 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1156 | --no-cr | --no-c | -n)
1157 no_create=yes ;;
1158
1159 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1160 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1161 no_recursion=yes ;;
1162
1163 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1164 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1165 | --oldin | --oldi | --old | --ol | --o)
1166 ac_prev=oldincludedir ;;
1167 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1168 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1169 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1170 oldincludedir=$ac_optarg ;;
1171
1172 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1173 ac_prev=prefix ;;
1174 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1175 prefix=$ac_optarg ;;
1176
1177 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1178 | --program-pre | --program-pr | --program-p)
1179 ac_prev=program_prefix ;;
1180 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1181 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1182 program_prefix=$ac_optarg ;;
1183
1184 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1185 | --program-suf | --program-su | --program-s)
1186 ac_prev=program_suffix ;;
1187 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1188 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1189 program_suffix=$ac_optarg ;;
1190
1191 -program-transform-name | --program-transform-name \
1192 | --program-transform-nam | --program-transform-na \
1193 | --program-transform-n | --program-transform- \
1194 | --program-transform | --program-transfor \
1195 | --program-transfo | --program-transf \
1196 | --program-trans | --program-tran \
1197 | --progr-tra | --program-tr | --program-t)
1198 ac_prev=program_transform_name ;;
1199 -program-transform-name=* | --program-transform-name=* \
1200 | --program-transform-nam=* | --program-transform-na=* \
1201 | --program-transform-n=* | --program-transform-=* \
1202 | --program-transform=* | --program-transfor=* \
1203 | --program-transfo=* | --program-transf=* \
1204 | --program-trans=* | --program-tran=* \
1205 | --progr-tra=* | --program-tr=* | --program-t=*)
1206 program_transform_name=$ac_optarg ;;
1207
dd184caf 1208 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1209 ac_prev=pdfdir ;;
1210 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1211 pdfdir=$ac_optarg ;;
1212
1213 -psdir | --psdir | --psdi | --psd | --ps)
1214 ac_prev=psdir ;;
1215 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1216 psdir=$ac_optarg ;;
1217
d9898ee8 1218 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1219 | -silent | --silent | --silen | --sile | --sil)
1220 silent=yes ;;
1221
1222 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1223 ac_prev=sbindir ;;
1224 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1225 | --sbi=* | --sb=*)
1226 sbindir=$ac_optarg ;;
1227
1228 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1229 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1230 | --sharedst | --shareds | --shared | --share | --shar \
1231 | --sha | --sh)
1232 ac_prev=sharedstatedir ;;
1233 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1234 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1235 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1236 | --sha=* | --sh=*)
1237 sharedstatedir=$ac_optarg ;;
1238
1239 -site | --site | --sit)
1240 ac_prev=site ;;
1241 -site=* | --site=* | --sit=*)
1242 site=$ac_optarg ;;
1243
1244 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1245 ac_prev=srcdir ;;
1246 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1247 srcdir=$ac_optarg ;;
1248
1249 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1250 | --syscon | --sysco | --sysc | --sys | --sy)
1251 ac_prev=sysconfdir ;;
1252 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1253 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1254 sysconfdir=$ac_optarg ;;
1255
1256 -target | --target | --targe | --targ | --tar | --ta | --t)
1257 ac_prev=target_alias ;;
1258 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1259 target_alias=$ac_optarg ;;
1260
1261 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1262 verbose=yes ;;
1263
1264 -version | --version | --versio | --versi | --vers | -V)
1265 ac_init_version=: ;;
1266
1267 -with-* | --with-*)
8d138742 1268 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
d9898ee8 1269 # Reject names that are not valid shell variable names.
8d138742
CE
1270 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1271 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
d9898ee8 1272 { (exit 1); exit 1; }; }
8d138742
CE
1273 ac_useropt_orig=$ac_useropt
1274 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1275 case $ac_user_opts in
1276 *"
1277"with_$ac_useropt"
1278"*) ;;
1279 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1280 ac_unrecognized_sep=', ';;
1281 esac
1282 eval with_$ac_useropt=\$ac_optarg ;;
d9898ee8 1283
1284 -without-* | --without-*)
8d138742 1285 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
d9898ee8 1286 # Reject names that are not valid shell variable names.
8d138742
CE
1287 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1288 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
d9898ee8 1289 { (exit 1); exit 1; }; }
8d138742
CE
1290 ac_useropt_orig=$ac_useropt
1291 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1292 case $ac_user_opts in
1293 *"
1294"with_$ac_useropt"
1295"*) ;;
1296 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1297 ac_unrecognized_sep=', ';;
1298 esac
1299 eval with_$ac_useropt=no ;;
d9898ee8 1300
1301 --x)
1302 # Obsolete; use --with-x.
1303 with_x=yes ;;
1304
1305 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1306 | --x-incl | --x-inc | --x-in | --x-i)
1307 ac_prev=x_includes ;;
1308 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1309 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1310 x_includes=$ac_optarg ;;
1311
1312 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1313 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1314 ac_prev=x_libraries ;;
1315 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1316 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1317 x_libraries=$ac_optarg ;;
1318
8d138742 1319 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
d9898ee8 1320Try \`$0 --help' for more information." >&2
1321 { (exit 1); exit 1; }; }
1322 ;;
1323
1324 *=*)
1325 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1326 # Reject names that are not valid shell variable names.
1327 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
8d138742 1328 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
d9898ee8 1329 { (exit 1); exit 1; }; }
dd184caf 1330 eval $ac_envvar=\$ac_optarg
d9898ee8 1331 export $ac_envvar ;;
1332
1333 *)
1334 # FIXME: should be removed in autoconf 3.0.
8d138742 1335 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
d9898ee8 1336 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
8d138742 1337 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
d9898ee8 1338 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1339 ;;
1340
1341 esac
1342done
1343
1344if test -n "$ac_prev"; then
1345 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
8d138742 1346 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
d9898ee8 1347 { (exit 1); exit 1; }; }
1348fi
1349
8d138742
CE
1350if test -n "$ac_unrecognized_opts"; then
1351 case $enable_option_checking in
1352 no) ;;
1353 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1354 { (exit 1); exit 1; }; } ;;
1355 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1356 esac
1357fi
1358
1359# Check all directory arguments for consistency.
dd184caf 1360for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1361 datadir sysconfdir sharedstatedir localstatedir includedir \
1362 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1363 libdir localedir mandir
d9898ee8 1364do
dd184caf 1365 eval ac_val=\$$ac_var
8d138742
CE
1366 # Remove trailing slashes.
1367 case $ac_val in
1368 */ )
1369 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1370 eval $ac_var=\$ac_val;;
1371 esac
1372 # Be sure to have absolute directory names.
d9898ee8 1373 case $ac_val in
dd184caf 1374 [\\/$]* | ?:[\\/]* ) continue;;
1375 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
d9898ee8 1376 esac
8d138742 1377 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
dd184caf 1378 { (exit 1); exit 1; }; }
d9898ee8 1379done
1380
1381# There might be people who depend on the old broken behavior: `$host'
1382# used to hold the argument of --host etc.
1383# FIXME: To remove some day.
1384build=$build_alias
1385host=$host_alias
1386target=$target_alias
1387
1388# FIXME: To remove some day.
1389if test "x$host_alias" != x; then
1390 if test "x$build_alias" = x; then
1391 cross_compiling=maybe
8d138742 1392 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
d9898ee8 1393 If a cross compiler is detected then cross compile mode will be used." >&2
1394 elif test "x$build_alias" != "x$host_alias"; then
1395 cross_compiling=yes
1396 fi
1397fi
1398
1399ac_tool_prefix=
1400test -n "$host_alias" && ac_tool_prefix=$host_alias-
1401
1402test "$silent" = yes && exec 6>/dev/null
1403
1404
dd184caf 1405ac_pwd=`pwd` && test -n "$ac_pwd" &&
1406ac_ls_di=`ls -di .` &&
1407ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
8d138742 1408 { $as_echo "$as_me: error: working directory cannot be determined" >&2
dd184caf 1409 { (exit 1); exit 1; }; }
1410test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
8d138742 1411 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
dd184caf 1412 { (exit 1); exit 1; }; }
1413
1414
d9898ee8 1415# Find the source files, if location was not specified.
1416if test -z "$srcdir"; then
1417 ac_srcdir_defaulted=yes
dd184caf 1418 # Try the directory containing this script, then the parent directory.
8d138742
CE
1419 ac_confdir=`$as_dirname -- "$as_myself" ||
1420$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1421 X"$as_myself" : 'X\(//\)[^/]' \| \
1422 X"$as_myself" : 'X\(//\)$' \| \
1423 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1424$as_echo X"$as_myself" |
dd184caf 1425 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1426 s//\1/
1427 q
1428 }
1429 /^X\(\/\/\)[^/].*/{
1430 s//\1/
1431 q
1432 }
1433 /^X\(\/\/\)$/{
1434 s//\1/
1435 q
1436 }
1437 /^X\(\/\).*/{
1438 s//\1/
1439 q
1440 }
1441 s/.*/./; q'`
d9898ee8 1442 srcdir=$ac_confdir
dd184caf 1443 if test ! -r "$srcdir/$ac_unique_file"; then
d9898ee8 1444 srcdir=..
1445 fi
1446else
1447 ac_srcdir_defaulted=no
1448fi
dd184caf 1449if test ! -r "$srcdir/$ac_unique_file"; then
1450 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
8d138742 1451 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
d9898ee8 1452 { (exit 1); exit 1; }; }
d9898ee8 1453fi
dd184caf 1454ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1455ac_abs_confdir=`(
8d138742 1456 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
d9898ee8 1457 { (exit 1); exit 1; }; }
dd184caf 1458 pwd)`
1459# When building in place, set srcdir=.
1460if test "$ac_abs_confdir" = "$ac_pwd"; then
1461 srcdir=.
1462fi
1463# Remove unnecessary trailing slashes from srcdir.
1464# Double slashes in file names in object file debugging info
1465# mess up M-x gdb in Emacs.
1466case $srcdir in
1467*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1468esac
1469for ac_var in $ac_precious_vars; do
1470 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1471 eval ac_env_${ac_var}_value=\$${ac_var}
1472 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1473 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1474done
d9898ee8 1475
1476#
1477# Report the --help message.
1478#
1479if test "$ac_init_help" = "long"; then
1480 # Omit some internal or obsolete options to make the list less imposing.
1481 # This message is too long to be a string in the A/UX 3.1 sh.
1482 cat <<_ACEOF
1483\`configure' configures bdbobj 0.10 to adapt to many kinds of systems.
1484
1485Usage: $0 [OPTION]... [VAR=VALUE]...
1486
1487To assign environment variables (e.g., CC, CFLAGS...), specify them as
1488VAR=VALUE. See below for descriptions of some of the useful variables.
1489
1490Defaults for the options are specified in brackets.
1491
1492Configuration:
1493 -h, --help display this help and exit
1494 --help=short display options specific to this package
1495 --help=recursive display the short help of all the included packages
1496 -V, --version display version information and exit
1497 -q, --quiet, --silent do not print \`checking...' messages
1498 --cache-file=FILE cache test results in FILE [disabled]
1499 -C, --config-cache alias for \`--cache-file=config.cache'
1500 -n, --no-create do not create output files
1501 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1502
d9898ee8 1503Installation directories:
1504 --prefix=PREFIX install architecture-independent files in PREFIX
8d138742 1505 [$ac_default_prefix]
d9898ee8 1506 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
8d138742 1507 [PREFIX]
d9898ee8 1508
1509By default, \`make install' will install all the files in
1510\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1511an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1512for instance \`--prefix=\$HOME'.
1513
1514For better control, use the options below.
1515
1516Fine tuning of the installation directories:
8d138742
CE
1517 --bindir=DIR user executables [EPREFIX/bin]
1518 --sbindir=DIR system admin executables [EPREFIX/sbin]
1519 --libexecdir=DIR program executables [EPREFIX/libexec]
1520 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1521 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1522 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1523 --libdir=DIR object code libraries [EPREFIX/lib]
1524 --includedir=DIR C header files [PREFIX/include]
1525 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1526 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1527 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1528 --infodir=DIR info documentation [DATAROOTDIR/info]
1529 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1530 --mandir=DIR man documentation [DATAROOTDIR/man]
1531 --docdir=DIR documentation root [DATAROOTDIR/doc/bdbobj]
1532 --htmldir=DIR html documentation [DOCDIR]
1533 --dvidir=DIR dvi documentation [DOCDIR]
1534 --pdfdir=DIR pdf documentation [DOCDIR]
1535 --psdir=DIR ps documentation [DOCDIR]
d9898ee8 1536_ACEOF
1537
1538 cat <<\_ACEOF
1539
1540Program names:
1541 --program-prefix=PREFIX prepend PREFIX to installed program names
1542 --program-suffix=SUFFIX append SUFFIX to installed program names
1543 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1544
1545System types:
1546 --build=BUILD configure for building on BUILD [guessed]
1547 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1548_ACEOF
1549fi
1550
1551if test -n "$ac_init_help"; then
1552 case $ac_init_help in
1553 short | recursive ) echo "Configuration of bdbobj 0.10:";;
1554 esac
1555 cat <<\_ACEOF
1556
1557Optional Features:
8d138742 1558 --disable-option-checking ignore unrecognized --enable/--with options
d9898ee8 1559 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1560 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1561 --disable-dependency-tracking speeds up one-time build
1562 --enable-dependency-tracking do not reject slow dependency extractors
dd184caf 1563 --enable-shared[=PKGS] build shared libraries [default=yes]
1564 --enable-static[=PKGS] build static libraries [default=yes]
d9898ee8 1565 --enable-fast-install[=PKGS]
1566 optimize for fast installation [default=yes]
1567 --disable-libtool-lock avoid locking (might break parallel builds)
1568
1569Optional Packages:
1570 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1571 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
d9898ee8 1572 --with-pic try to use only PIC/non-PIC objects [default=use
1573 both]
8d138742 1574 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
d9898ee8 1575
1576Some influential environment variables:
1577 CC C compiler command
1578 CFLAGS C compiler flags
1579 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1580 nonstandard directory <lib dir>
dd184caf 1581 LIBS libraries to pass to the linker, e.g. -l<library>
1582 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1583 you have headers in a nonstandard directory <include dir>
d9898ee8 1584 CPP C preprocessor
1585 CXX C++ compiler command
1586 CXXFLAGS C++ compiler flags
1587 CXXCPP C++ preprocessor
d9898ee8 1588
1589Use these variables to override the choices made by `configure' or to help
1590it to find libraries and programs with nonstandard names/locations.
1591
1592Report bugs to <courier-users@lists.sourceforge.net>.
1593_ACEOF
dd184caf 1594ac_status=$?
d9898ee8 1595fi
1596
1597if test "$ac_init_help" = "recursive"; then
1598 # If there are subdirs, report their specific --help.
d9898ee8 1599 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
8d138742
CE
1600 test -d "$ac_dir" ||
1601 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1602 continue
d9898ee8 1603 ac_builddir=.
1604
dd184caf 1605case "$ac_dir" in
1606.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1607*)
8d138742 1608 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
dd184caf 1609 # A ".." for each directory in $ac_dir_suffix.
8d138742 1610 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
dd184caf 1611 case $ac_top_builddir_sub in
1612 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1613 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1614 esac ;;
1615esac
1616ac_abs_top_builddir=$ac_pwd
1617ac_abs_builddir=$ac_pwd$ac_dir_suffix
1618# for backward compatibility:
1619ac_top_builddir=$ac_top_build_prefix
d9898ee8 1620
1621case $srcdir in
dd184caf 1622 .) # We are building in place.
d9898ee8 1623 ac_srcdir=.
dd184caf 1624 ac_top_srcdir=$ac_top_builddir_sub
1625 ac_abs_top_srcdir=$ac_pwd ;;
1626 [\\/]* | ?:[\\/]* ) # Absolute name.
d9898ee8 1627 ac_srcdir=$srcdir$ac_dir_suffix;
dd184caf 1628 ac_top_srcdir=$srcdir
1629 ac_abs_top_srcdir=$srcdir ;;
1630 *) # Relative name.
1631 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1632 ac_top_srcdir=$ac_top_build_prefix$srcdir
1633 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
d9898ee8 1634esac
dd184caf 1635ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1636
1637 cd "$ac_dir" || { ac_status=$?; continue; }
1638 # Check for guested configure.
1639 if test -f "$ac_srcdir/configure.gnu"; then
1640 echo &&
1641 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1642 elif test -f "$ac_srcdir/configure"; then
1643 echo &&
1644 $SHELL "$ac_srcdir/configure" --help=recursive
d9898ee8 1645 else
8d138742 1646 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
dd184caf 1647 fi || ac_status=$?
1648 cd "$ac_pwd" || { ac_status=$?; break; }
d9898ee8 1649 done
1650fi
1651
dd184caf 1652test -n "$ac_init_help" && exit $ac_status
d9898ee8 1653if $ac_init_version; then
1654 cat <<\_ACEOF
1655bdbobj configure 0.10
8d138742 1656generated by GNU Autoconf 2.63
d9898ee8 1657
dd184caf 1658Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8d138742 16592002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
d9898ee8 1660This configure script is free software; the Free Software Foundation
1661gives unlimited permission to copy, distribute and modify it.
1662_ACEOF
dd184caf 1663 exit
d9898ee8 1664fi
dd184caf 1665cat >config.log <<_ACEOF
d9898ee8 1666This file contains any messages produced by compilers while
1667running configure, to aid debugging if configure makes a mistake.
1668
1669It was created by bdbobj $as_me 0.10, which was
8d138742 1670generated by GNU Autoconf 2.63. Invocation command line was
d9898ee8 1671
1672 $ $0 $@
1673
1674_ACEOF
dd184caf 1675exec 5>>config.log
d9898ee8 1676{
1677cat <<_ASUNAME
1678## --------- ##
1679## Platform. ##
1680## --------- ##
1681
1682hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1683uname -m = `(uname -m) 2>/dev/null || echo unknown`
1684uname -r = `(uname -r) 2>/dev/null || echo unknown`
1685uname -s = `(uname -s) 2>/dev/null || echo unknown`
1686uname -v = `(uname -v) 2>/dev/null || echo unknown`
1687
1688/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1689/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1690
1691/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1692/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1693/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
dd184caf 1694/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
d9898ee8 1695/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1696/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1697/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1698
1699_ASUNAME
1700
1701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1702for as_dir in $PATH
1703do
1704 IFS=$as_save_IFS
1705 test -z "$as_dir" && as_dir=.
8d138742 1706 $as_echo "PATH: $as_dir"
d9898ee8 1707done
dd184caf 1708IFS=$as_save_IFS
d9898ee8 1709
1710} >&5
1711
1712cat >&5 <<_ACEOF
1713
1714
1715## ----------- ##
1716## Core tests. ##
1717## ----------- ##
1718
1719_ACEOF
1720
1721
1722# Keep a trace of the command line.
1723# Strip out --no-create and --no-recursion so they do not pile up.
1724# Strip out --silent because we don't want to record it for future runs.
1725# Also quote any args containing shell meta-characters.
1726# Make two passes to allow for proper duplicate-argument suppression.
1727ac_configure_args=
1728ac_configure_args0=
1729ac_configure_args1=
d9898ee8 1730ac_must_keep_next=false
1731for ac_pass in 1 2
1732do
1733 for ac_arg
1734 do
1735 case $ac_arg in
1736 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1737 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1738 | -silent | --silent | --silen | --sile | --sil)
1739 continue ;;
dd184caf 1740 *\'*)
8d138742 1741 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
d9898ee8 1742 esac
1743 case $ac_pass in
1744 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1745 2)
1746 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1747 if test $ac_must_keep_next = true; then
1748 ac_must_keep_next=false # Got value, back to normal.
1749 else
1750 case $ac_arg in
1751 *=* | --config-cache | -C | -disable-* | --disable-* \
1752 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1753 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1754 | -with-* | --with-* | -without-* | --without-* | --x)
1755 case "$ac_configure_args0 " in
1756 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1757 esac
1758 ;;
1759 -* ) ac_must_keep_next=true ;;
1760 esac
1761 fi
dd184caf 1762 ac_configure_args="$ac_configure_args '$ac_arg'"
d9898ee8 1763 ;;
1764 esac
1765 done
1766done
1767$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1768$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1769
1770# When interrupted or exit'd, cleanup temporary files, and complete
1771# config.log. We remove comments because anyway the quotes in there
1772# would cause problems or look ugly.
dd184caf 1773# WARNING: Use '\'' to represent an apostrophe within the trap.
1774# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
d9898ee8 1775trap 'exit_status=$?
1776 # Save into config.log some information that might help in debugging.
1777 {
1778 echo
1779
1780 cat <<\_ASBOX
1781## ---------------- ##
1782## Cache variables. ##
1783## ---------------- ##
1784_ASBOX
1785 echo
1786 # The following way of writing the cache mishandles newlines in values,
dd184caf 1787(
1788 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1789 eval ac_val=\$$ac_var
1790 case $ac_val in #(
1791 *${as_nl}*)
1792 case $ac_var in #(
8d138742
CE
1793 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1794$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
dd184caf 1795 esac
1796 case $ac_var in #(
1797 _ | IFS | as_nl) ;; #(
8d138742 1798 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
dd184caf 1799 *) $as_unset $ac_var ;;
1800 esac ;;
1801 esac
1802 done
d9898ee8 1803 (set) 2>&1 |
dd184caf 1804 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1805 *${as_nl}ac_space=\ *)
d9898ee8 1806 sed -n \
dd184caf 1807 "s/'\''/'\''\\\\'\'''\''/g;
1808 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1809 ;; #(
d9898ee8 1810 *)
dd184caf 1811 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
d9898ee8 1812 ;;
dd184caf 1813 esac |
1814 sort
1815)
d9898ee8 1816 echo
1817
1818 cat <<\_ASBOX
1819## ----------------- ##
1820## Output variables. ##
1821## ----------------- ##
1822_ASBOX
1823 echo
1824 for ac_var in $ac_subst_vars
1825 do
dd184caf 1826 eval ac_val=\$$ac_var
1827 case $ac_val in
8d138742 1828 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
dd184caf 1829 esac
8d138742 1830 $as_echo "$ac_var='\''$ac_val'\''"
d9898ee8 1831 done | sort
1832 echo
1833
1834 if test -n "$ac_subst_files"; then
1835 cat <<\_ASBOX
dd184caf 1836## ------------------- ##
1837## File substitutions. ##
1838## ------------------- ##
d9898ee8 1839_ASBOX
1840 echo
1841 for ac_var in $ac_subst_files
1842 do
dd184caf 1843 eval ac_val=\$$ac_var
1844 case $ac_val in
8d138742 1845 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
dd184caf 1846 esac
8d138742 1847 $as_echo "$ac_var='\''$ac_val'\''"
d9898ee8 1848 done | sort
1849 echo
1850 fi
1851
1852 if test -s confdefs.h; then
1853 cat <<\_ASBOX
1854## ----------- ##
1855## confdefs.h. ##
1856## ----------- ##
1857_ASBOX
1858 echo
dd184caf 1859 cat confdefs.h
d9898ee8 1860 echo
1861 fi
1862 test "$ac_signal" != 0 &&
8d138742
CE
1863 $as_echo "$as_me: caught signal $ac_signal"
1864 $as_echo "$as_me: exit $exit_status"
d9898ee8 1865 } >&5
dd184caf 1866 rm -f core *.core core.conftest.* &&
1867 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
d9898ee8 1868 exit $exit_status
dd184caf 1869' 0
d9898ee8 1870for ac_signal in 1 2 13 15; do
1871 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1872done
1873ac_signal=0
1874
1875# confdefs.h avoids OS command line length limits that DEFS can exceed.
dd184caf 1876rm -f -r conftest* confdefs.h
d9898ee8 1877
1878# Predefined preprocessor variables.
1879
1880cat >>confdefs.h <<_ACEOF
1881#define PACKAGE_NAME "$PACKAGE_NAME"
1882_ACEOF
1883
1884
1885cat >>confdefs.h <<_ACEOF
1886#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1887_ACEOF
1888
1889
1890cat >>confdefs.h <<_ACEOF
1891#define PACKAGE_VERSION "$PACKAGE_VERSION"
1892_ACEOF
1893
1894
1895cat >>confdefs.h <<_ACEOF
1896#define PACKAGE_STRING "$PACKAGE_STRING"
1897_ACEOF
1898
1899
1900cat >>confdefs.h <<_ACEOF
1901#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1902_ACEOF
1903
1904
1905# Let the site file select an alternate cache file if it wants to.
8d138742
CE
1906# Prefer an explicitly selected file to automatically selected ones.
1907ac_site_file1=NONE
1908ac_site_file2=NONE
dd184caf 1909if test -n "$CONFIG_SITE"; then
8d138742 1910 ac_site_file1=$CONFIG_SITE
dd184caf 1911elif test "x$prefix" != xNONE; then
8d138742
CE
1912 ac_site_file1=$prefix/share/config.site
1913 ac_site_file2=$prefix/etc/config.site
dd184caf 1914else
8d138742
CE
1915 ac_site_file1=$ac_default_prefix/share/config.site
1916 ac_site_file2=$ac_default_prefix/etc/config.site
d9898ee8 1917fi
8d138742 1918for ac_site_file in "$ac_site_file1" "$ac_site_file2"
dd184caf 1919do
8d138742 1920 test "x$ac_site_file" = xNONE && continue
d9898ee8 1921 if test -r "$ac_site_file"; then
8d138742
CE
1922 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1923$as_echo "$as_me: loading site script $ac_site_file" >&6;}
d9898ee8 1924 sed 's/^/| /' "$ac_site_file" >&5
1925 . "$ac_site_file"
1926 fi
1927done
1928
1929if test -r "$cache_file"; then
1930 # Some versions of bash will fail to source /dev/null (special
1931 # files actually), so we avoid doing that.
1932 if test -f "$cache_file"; then
8d138742
CE
1933 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1934$as_echo "$as_me: loading cache $cache_file" >&6;}
d9898ee8 1935 case $cache_file in
dd184caf 1936 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1937 *) . "./$cache_file";;
d9898ee8 1938 esac
1939 fi
1940else
8d138742
CE
1941 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1942$as_echo "$as_me: creating cache $cache_file" >&6;}
d9898ee8 1943 >$cache_file
1944fi
1945
1946# Check that the precious variables saved in the cache have kept the same
1947# value.
1948ac_cache_corrupted=false
dd184caf 1949for ac_var in $ac_precious_vars; do
d9898ee8 1950 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1951 eval ac_new_set=\$ac_env_${ac_var}_set
dd184caf 1952 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1953 eval ac_new_val=\$ac_env_${ac_var}_value
d9898ee8 1954 case $ac_old_set,$ac_new_set in
1955 set,)
8d138742
CE
1956 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1957$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
d9898ee8 1958 ac_cache_corrupted=: ;;
1959 ,set)
8d138742
CE
1960 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1961$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
d9898ee8 1962 ac_cache_corrupted=: ;;
1963 ,);;
1964 *)
1965 if test "x$ac_old_val" != "x$ac_new_val"; then
8d138742
CE
1966 # differences in whitespace do not lead to failure.
1967 ac_old_val_w=`echo x $ac_old_val`
1968 ac_new_val_w=`echo x $ac_new_val`
1969 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1970 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1971$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1972 ac_cache_corrupted=:
1973 else
1974 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1975$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1976 eval $ac_var=\$ac_old_val
1977 fi
1978 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1979$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1980 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1981$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
d9898ee8 1982 fi;;
1983 esac
1984 # Pass precious variables to config.status.
1985 if test "$ac_new_set" = set; then
1986 case $ac_new_val in
8d138742 1987 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
d9898ee8 1988 *) ac_arg=$ac_var=$ac_new_val ;;
1989 esac
1990 case " $ac_configure_args " in
1991 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1992 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1993 esac
1994 fi
1995done
1996if $ac_cache_corrupted; then
8d138742
CE
1997 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1998$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1999 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2000$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2001 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2002$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
d9898ee8 2003 { (exit 1); exit 1; }; }
2004fi
2005
d9898ee8 2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
dd184caf 2030ac_ext=c
2031ac_cpp='$CPP $CPPFLAGS'
2032ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2033ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2034ac_compiler_gnu=$ac_cv_c_compiler_gnu
d9898ee8 2035
2036
2037
2038>confdefs.h # Kill PACKAGE_ macros
2039
2040
8d138742 2041am__api_version='1.11'
dd184caf 2042
d9898ee8 2043ac_aux_dir=
dd184caf 2044for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2045 if test -f "$ac_dir/install-sh"; then
d9898ee8 2046 ac_aux_dir=$ac_dir
2047 ac_install_sh="$ac_aux_dir/install-sh -c"
2048 break
dd184caf 2049 elif test -f "$ac_dir/install.sh"; then
d9898ee8 2050 ac_aux_dir=$ac_dir
2051 ac_install_sh="$ac_aux_dir/install.sh -c"
2052 break
dd184caf 2053 elif test -f "$ac_dir/shtool"; then
d9898ee8 2054 ac_aux_dir=$ac_dir
2055 ac_install_sh="$ac_aux_dir/shtool install -c"
2056 break
2057 fi
2058done
2059if test -z "$ac_aux_dir"; then
8d138742
CE
2060 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2061$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
d9898ee8 2062 { (exit 1); exit 1; }; }
2063fi
dd184caf 2064
2065# These three variables are undocumented and unsupported,
2066# and are intended to be withdrawn in a future Autoconf release.
2067# They can cause serious problems if a builder's source tree is in a directory
2068# whose full name contains unusual characters.
2069ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2070ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2071ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2072
d9898ee8 2073
2074# Find a good install program. We prefer a C program (faster),
2075# so one script is as good as another. But avoid the broken or
2076# incompatible versions:
2077# SysV /etc/install, /usr/sbin/install
2078# SunOS /usr/etc/install
2079# IRIX /sbin/install
2080# AIX /bin/install
2081# AmigaOS /C/install, which installs bootblocks on floppy discs
2082# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2083# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2084# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2085# OS/2's system install, which has a completely different semantic
2086# ./install, which can be erroneously created by make from ./install.sh.
8d138742
CE
2087# Reject install programs that cannot install multiple files.
2088{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2089$as_echo_n "checking for a BSD-compatible install... " >&6; }
d9898ee8 2090if test -z "$INSTALL"; then
2091if test "${ac_cv_path_install+set}" = set; then
8d138742 2092 $as_echo_n "(cached) " >&6
d9898ee8 2093else
2094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2095for as_dir in $PATH
2096do
2097 IFS=$as_save_IFS
2098 test -z "$as_dir" && as_dir=.
2099 # Account for people who put trailing slashes in PATH elements.
2100case $as_dir/ in
2101 ./ | .// | /cC/* | \
2102 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2103 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2104 /usr/ucb/* ) ;;
2105 *)
2106 # OSF1 and SCO ODT 3.0 have their own names for install.
2107 # Don't use installbsd from OSF since it installs stuff as root
2108 # by default.
2109 for ac_prog in ginstall scoinst install; do
2110 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 2111 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
d9898ee8 2112 if test $ac_prog = install &&
2113 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2114 # AIX install. It has an incompatible calling convention.
2115 :
2116 elif test $ac_prog = install &&
2117 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2118 # program-specific install script used by HP pwplus--don't use.
2119 :
2120 else
8d138742
CE
2121 rm -rf conftest.one conftest.two conftest.dir
2122 echo one > conftest.one
2123 echo two > conftest.two
2124 mkdir conftest.dir
2125 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2126 test -s conftest.one && test -s conftest.two &&
2127 test -s conftest.dir/conftest.one &&
2128 test -s conftest.dir/conftest.two
2129 then
2130 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2131 break 3
2132 fi
d9898ee8 2133 fi
2134 fi
2135 done
2136 done
2137 ;;
2138esac
8d138742 2139
d9898ee8 2140done
dd184caf 2141IFS=$as_save_IFS
d9898ee8 2142
8d138742 2143rm -rf conftest.one conftest.two conftest.dir
d9898ee8 2144
2145fi
2146 if test "${ac_cv_path_install+set}" = set; then
2147 INSTALL=$ac_cv_path_install
2148 else
dd184caf 2149 # As a last resort, use the slow shell script. Don't cache a
2150 # value for INSTALL within a source directory, because that will
d9898ee8 2151 # break other packages using the cache if that directory is
dd184caf 2152 # removed, or if the value is a relative name.
d9898ee8 2153 INSTALL=$ac_install_sh
2154 fi
2155fi
8d138742
CE
2156{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2157$as_echo "$INSTALL" >&6; }
d9898ee8 2158
2159# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2160# It thinks the first close brace ends the variable substitution.
2161test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2162
2163test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2164
2165test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2166
8d138742
CE
2167{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2168$as_echo_n "checking whether build environment is sane... " >&6; }
d9898ee8 2169# Just in case
2170sleep 1
2171echo timestamp > conftest.file
8d138742
CE
2172# Reject unsafe characters in $srcdir or the absolute working directory
2173# name. Accept space and tab only in the latter.
2174am_lf='
2175'
2176case `pwd` in
2177 *[\\\"\#\$\&\'\`$am_lf]*)
2178 { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2179$as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2180 { (exit 1); exit 1; }; };;
2181esac
2182case $srcdir in
2183 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2184 { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2185$as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2186 { (exit 1); exit 1; }; };;
2187esac
2188
d9898ee8 2189# Do `set' in a subshell so we don't clobber the current shell's
2190# arguments. Must try -L first in case configure is actually a
2191# symlink; some systems play weird games with the mod time of symlinks
2192# (eg FreeBSD returns the mod time of the symlink's containing
2193# directory).
2194if (
8d138742 2195 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
d9898ee8 2196 if test "$*" = "X"; then
2197 # -L didn't work.
8d138742 2198 set X `ls -t "$srcdir/configure" conftest.file`
d9898ee8 2199 fi
2200 rm -f conftest.file
2201 if test "$*" != "X $srcdir/configure conftest.file" \
2202 && test "$*" != "X conftest.file $srcdir/configure"; then
2203
2204 # If neither matched, then we have a broken ls. This can happen
2205 # if, for instance, CONFIG_SHELL is bash and it inherits a
2206 # broken ls alias from the environment. This has actually
2207 # happened. Such a system could not be considered "sane".
8d138742 2208 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
d9898ee8 2209alias in your environment" >&5
8d138742 2210$as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
d9898ee8 2211alias in your environment" >&2;}
2212 { (exit 1); exit 1; }; }
2213 fi
2214
2215 test "$2" = conftest.file
2216 )
2217then
2218 # Ok.
2219 :
2220else
8d138742 2221 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
d9898ee8 2222Check your system clock" >&5
8d138742 2223$as_echo "$as_me: error: newly created file is older than distributed files!
d9898ee8 2224Check your system clock" >&2;}
2225 { (exit 1); exit 1; }; }
2226fi
8d138742
CE
2227{ $as_echo "$as_me:$LINENO: result: yes" >&5
2228$as_echo "yes" >&6; }
d9898ee8 2229test "$program_prefix" != NONE &&
dd184caf 2230 program_transform_name="s&^&$program_prefix&;$program_transform_name"
d9898ee8 2231# Use a double $ so make ignores it.
2232test "$program_suffix" != NONE &&
dd184caf 2233 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
8d138742 2234# Double any \ or $.
d9898ee8 2235# By default was `s,x,x', remove it if useless.
8d138742
CE
2236ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2237program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
d9898ee8 2238
2239# expand $ac_aux_dir to an absolute path
2240am_aux_dir=`cd $ac_aux_dir && pwd`
2241
8d138742
CE
2242if test x"${MISSING+set}" != xset; then
2243 case $am_aux_dir in
2244 *\ * | *\ *)
2245 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2246 *)
2247 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2248 esac
2249fi
d9898ee8 2250# Use eval to expand $SHELL
2251if eval "$MISSING --run true"; then
2252 am_missing_run="$MISSING --run "
2253else
2254 am_missing_run=
8d138742
CE
2255 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2256$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2257fi
2258
2259if test x"${install_sh}" != xset; then
2260 case $am_aux_dir in
2261 *\ * | *\ *)
2262 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2263 *)
2264 install_sh="\${SHELL} $am_aux_dir/install-sh"
2265 esac
2266fi
2267
2268# Installed binaries are usually stripped using `strip' when the user
2269# run `make install-strip'. However `strip' might not be the right
2270# tool to use in cross-compilation environments, therefore Automake
2271# will honor the `STRIP' environment variable to overrule this program.
2272if test "$cross_compiling" != no; then
2273 if test -n "$ac_tool_prefix"; then
2274 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2275set dummy ${ac_tool_prefix}strip; ac_word=$2
2276{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2277$as_echo_n "checking for $ac_word... " >&6; }
2278if test "${ac_cv_prog_STRIP+set}" = set; then
2279 $as_echo_n "(cached) " >&6
2280else
2281 if test -n "$STRIP"; then
2282 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2283else
2284as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2285for as_dir in $PATH
2286do
2287 IFS=$as_save_IFS
2288 test -z "$as_dir" && as_dir=.
2289 for ac_exec_ext in '' $ac_executable_extensions; do
2290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2291 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2292 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2293 break 2
2294 fi
2295done
2296done
2297IFS=$as_save_IFS
2298
2299fi
2300fi
2301STRIP=$ac_cv_prog_STRIP
2302if test -n "$STRIP"; then
2303 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2304$as_echo "$STRIP" >&6; }
2305else
2306 { $as_echo "$as_me:$LINENO: result: no" >&5
2307$as_echo "no" >&6; }
2308fi
2309
2310
2311fi
2312if test -z "$ac_cv_prog_STRIP"; then
2313 ac_ct_STRIP=$STRIP
2314 # Extract the first word of "strip", so it can be a program name with args.
2315set dummy strip; ac_word=$2
2316{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2317$as_echo_n "checking for $ac_word... " >&6; }
2318if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2319 $as_echo_n "(cached) " >&6
2320else
2321 if test -n "$ac_ct_STRIP"; then
2322 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2323else
2324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2325for as_dir in $PATH
2326do
2327 IFS=$as_save_IFS
2328 test -z "$as_dir" && as_dir=.
2329 for ac_exec_ext in '' $ac_executable_extensions; do
2330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2331 ac_cv_prog_ac_ct_STRIP="strip"
2332 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2333 break 2
2334 fi
2335done
2336done
2337IFS=$as_save_IFS
2338
2339fi
2340fi
2341ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2342if test -n "$ac_ct_STRIP"; then
2343 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2344$as_echo "$ac_ct_STRIP" >&6; }
2345else
2346 { $as_echo "$as_me:$LINENO: result: no" >&5
2347$as_echo "no" >&6; }
2348fi
2349
2350 if test "x$ac_ct_STRIP" = x; then
2351 STRIP=":"
2352 else
2353 case $cross_compiling:$ac_tool_warned in
2354yes:)
2355{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2356$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2357ac_tool_warned=yes ;;
2358esac
2359 STRIP=$ac_ct_STRIP
2360 fi
2361else
2362 STRIP="$ac_cv_prog_STRIP"
2363fi
2364
d9898ee8 2365fi
8d138742 2366INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
d9898ee8 2367
8d138742
CE
2368{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2369$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
dd184caf 2370if test -z "$MKDIR_P"; then
2371 if test "${ac_cv_path_mkdir+set}" = set; then
8d138742 2372 $as_echo_n "(cached) " >&6
dd184caf 2373else
2374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2375for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2376do
2377 IFS=$as_save_IFS
2378 test -z "$as_dir" && as_dir=.
2379 for ac_prog in mkdir gmkdir; do
2380 for ac_exec_ext in '' $ac_executable_extensions; do
2381 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2382 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2383 'mkdir (GNU coreutils) '* | \
2384 'mkdir (coreutils) '* | \
2385 'mkdir (fileutils) '4.1*)
2386 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2387 break 3;;
2388 esac
2389 done
2390 done
2391done
2392IFS=$as_save_IFS
2393
2394fi
2395
2396 if test "${ac_cv_path_mkdir+set}" = set; then
2397 MKDIR_P="$ac_cv_path_mkdir -p"
d9898ee8 2398 else
dd184caf 2399 # As a last resort, use the slow shell script. Don't cache a
2400 # value for MKDIR_P within a source directory, because that will
2401 # break other packages using the cache if that directory is
2402 # removed, or if the value is a relative name.
2403 test -d ./--version && rmdir ./--version
2404 MKDIR_P="$ac_install_sh -d"
d9898ee8 2405 fi
2406fi
8d138742
CE
2407{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2408$as_echo "$MKDIR_P" >&6; }
dd184caf 2409
2410mkdir_p="$MKDIR_P"
2411case $mkdir_p in
2412 [\\/$]* | ?:[\\/]*) ;;
2413 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2414esac
d9898ee8 2415
2416for ac_prog in gawk mawk nawk awk
2417do
2418 # Extract the first word of "$ac_prog", so it can be a program name with args.
2419set dummy $ac_prog; ac_word=$2
8d138742
CE
2420{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2421$as_echo_n "checking for $ac_word... " >&6; }
d9898ee8 2422if test "${ac_cv_prog_AWK+set}" = set; then
8d138742 2423 $as_echo_n "(cached) " >&6
d9898ee8 2424else
2425 if test -n "$AWK"; then
2426 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2427else
2428as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2429for as_dir in $PATH
2430do
2431 IFS=$as_save_IFS
2432 test -z "$as_dir" && as_dir=.
2433 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 2434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2435 ac_cv_prog_AWK="$ac_prog"
8d138742 2436 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 2437 break 2
2438 fi
2439done
2440done
dd184caf 2441IFS=$as_save_IFS
d9898ee8 2442
2443fi
2444fi
2445AWK=$ac_cv_prog_AWK
2446if test -n "$AWK"; then
8d138742
CE
2447 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2448$as_echo "$AWK" >&6; }
d9898ee8 2449else
8d138742
CE
2450 { $as_echo "$as_me:$LINENO: result: no" >&5
2451$as_echo "no" >&6; }
d9898ee8 2452fi
2453
dd184caf 2454
d9898ee8 2455 test -n "$AWK" && break
2456done
2457
8d138742
CE
2458{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2459$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2460set x ${MAKE-make}
2461ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
dd184caf 2462if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
8d138742 2463 $as_echo_n "(cached) " >&6
d9898ee8 2464else
2465 cat >conftest.make <<\_ACEOF
dd184caf 2466SHELL = /bin/sh
d9898ee8 2467all:
dd184caf 2468 @echo '@@@%%%=$(MAKE)=@@@%%%'
d9898ee8 2469_ACEOF
2470# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
dd184caf 2471case `${MAKE-make} -f conftest.make 2>/dev/null` in
2472 *@@@%%%=?*=@@@%%%*)
2473 eval ac_cv_prog_make_${ac_make}_set=yes;;
2474 *)
2475 eval ac_cv_prog_make_${ac_make}_set=no;;
2476esac
d9898ee8 2477rm -f conftest.make
2478fi
dd184caf 2479if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8d138742
CE
2480 { $as_echo "$as_me:$LINENO: result: yes" >&5
2481$as_echo "yes" >&6; }
d9898ee8 2482 SET_MAKE=
2483else
8d138742
CE
2484 { $as_echo "$as_me:$LINENO: result: no" >&5
2485$as_echo "no" >&6; }
d9898ee8 2486 SET_MAKE="MAKE=${MAKE-make}"
2487fi
2488
2489rm -rf .tst 2>/dev/null
2490mkdir .tst 2>/dev/null
2491if test -d .tst; then
2492 am__leading_dot=.
2493else
2494 am__leading_dot=_
2495fi
2496rmdir .tst 2>/dev/null
2497
dd184caf 2498if test "`cd $srcdir && pwd`" != "`pwd`"; then
2499 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2500 # is not polluted with repeated "-I."
2501 am__isrc=' -I$(srcdir)'
2502 # test to see if srcdir already configured
2503 if test -f $srcdir/config.status; then
8d138742
CE
2504 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2505$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
d9898ee8 2506 { (exit 1); exit 1; }; }
dd184caf 2507 fi
d9898ee8 2508fi
2509
2510# test whether we have cygpath
2511if test -z "$CYGPATH_W"; then
2512 if (cygpath --version) >/dev/null 2>/dev/null; then
2513 CYGPATH_W='cygpath -w'
2514 else
2515 CYGPATH_W=echo
2516 fi
2517fi
2518
2519
2520# Define the identity of the package.
2521 PACKAGE='bdbobj'
2522 VERSION='0.10'
2523
2524
2525# Some tools Automake needs.
2526
2527ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2528
2529
2530AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2531
2532
2533AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2534
2535
2536AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2537
2538
2539MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2540
8d138742
CE
2541# We need awk for the "check" target. The system "awk" is bad on
2542# some platforms.
2543# Always define AMTAR for backward compatibility.
d9898ee8 2544
8d138742
CE
2545AMTAR=${AMTAR-"${am_missing_run}tar"}
2546
2547am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2548
2549
2550
2551
2552
2553ac_config_headers="$ac_config_headers config.h"
2554
2555
2556DEPDIR="${am__leading_dot}deps"
2557
2558ac_config_commands="$ac_config_commands depfiles"
2559
2560
2561am_make=${MAKE-make}
2562cat > confinc << 'END'
2563am__doit:
2564 @echo this is the am__doit target
2565.PHONY: am__doit
2566END
2567# If we don't find an include directive, just comment out the code.
2568{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2569$as_echo_n "checking for style of include used by $am_make... " >&6; }
2570am__include="#"
2571am__quote=
2572_am_result=none
2573# First try GNU make style include.
2574echo "include confinc" > confmf
2575# Ignore all kinds of additional output from `make'.
2576case `$am_make -s -f confmf 2> /dev/null` in #(
2577*the\ am__doit\ target*)
2578 am__include=include
2579 am__quote=
2580 _am_result=GNU
2581 ;;
2582esac
2583# Now try BSD make style include.
2584if test "$am__include" = "#"; then
2585 echo '.include "confinc"' > confmf
2586 case `$am_make -s -f confmf 2> /dev/null` in #(
2587 *the\ am__doit\ target*)
2588 am__include=.include
2589 am__quote="\""
2590 _am_result=BSD
2591 ;;
2592 esac
2593fi
2594
2595
2596{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
2597$as_echo "$_am_result" >&6; }
2598rm -f confinc confmf
2599
2600# Check whether --enable-dependency-tracking was given.
2601if test "${enable_dependency_tracking+set}" = set; then
2602 enableval=$enable_dependency_tracking;
2603fi
2604
2605if test "x$enable_dependency_tracking" != xno; then
2606 am_depcomp="$ac_aux_dir/depcomp"
2607 AMDEPBACKSLASH='\'
2608fi
2609 if test "x$enable_dependency_tracking" != xno; then
2610 AMDEP_TRUE=
2611 AMDEP_FALSE='#'
d9898ee8 2612else
8d138742
CE
2613 AMDEP_TRUE='#'
2614 AMDEP_FALSE=
2615fi
2616
2617
2618ac_ext=c
2619ac_cpp='$CPP $CPPFLAGS'
2620ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2621ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2622ac_compiler_gnu=$ac_cv_c_compiler_gnu
2623if test -n "$ac_tool_prefix"; then
2624 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2625set dummy ${ac_tool_prefix}gcc; ac_word=$2
2626{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2627$as_echo_n "checking for $ac_word... " >&6; }
2628if test "${ac_cv_prog_CC+set}" = set; then
2629 $as_echo_n "(cached) " >&6
2630else
2631 if test -n "$CC"; then
2632 ac_cv_prog_CC="$CC" # Let the user override the test.
d9898ee8 2633else
2634as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2635for as_dir in $PATH
2636do
2637 IFS=$as_save_IFS
2638 test -z "$as_dir" && as_dir=.
2639 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 2640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8d138742
CE
2641 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2642 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 2643 break 2
2644 fi
2645done
2646done
dd184caf 2647IFS=$as_save_IFS
d9898ee8 2648
2649fi
2650fi
8d138742
CE
2651CC=$ac_cv_prog_CC
2652if test -n "$CC"; then
2653 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2654$as_echo "$CC" >&6; }
d9898ee8 2655else
8d138742
CE
2656 { $as_echo "$as_me:$LINENO: result: no" >&5
2657$as_echo "no" >&6; }
d9898ee8 2658fi
2659
dd184caf 2660
d9898ee8 2661fi
8d138742
CE
2662if test -z "$ac_cv_prog_CC"; then
2663 ac_ct_CC=$CC
2664 # Extract the first word of "gcc", so it can be a program name with args.
2665set dummy gcc; ac_word=$2
2666{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2667$as_echo_n "checking for $ac_word... " >&6; }
2668if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2669 $as_echo_n "(cached) " >&6
d9898ee8 2670else
8d138742
CE
2671 if test -n "$ac_ct_CC"; then
2672 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
d9898ee8 2673else
2674as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2675for as_dir in $PATH
2676do
2677 IFS=$as_save_IFS
2678 test -z "$as_dir" && as_dir=.
2679 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 2680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8d138742
CE
2681 ac_cv_prog_ac_ct_CC="gcc"
2682 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 2683 break 2
2684 fi
2685done
2686done
dd184caf 2687IFS=$as_save_IFS
d9898ee8 2688
d9898ee8 2689fi
2690fi
8d138742
CE
2691ac_ct_CC=$ac_cv_prog_ac_ct_CC
2692if test -n "$ac_ct_CC"; then
2693 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2694$as_echo "$ac_ct_CC" >&6; }
d9898ee8 2695else
8d138742
CE
2696 { $as_echo "$as_me:$LINENO: result: no" >&5
2697$as_echo "no" >&6; }
d9898ee8 2698fi
2699
8d138742
CE
2700 if test "x$ac_ct_CC" = x; then
2701 CC=""
dd184caf 2702 else
2703 case $cross_compiling:$ac_tool_warned in
2704yes:)
8d138742
CE
2705{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2706$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
dd184caf 2707ac_tool_warned=yes ;;
2708esac
8d138742 2709 CC=$ac_ct_CC
dd184caf 2710 fi
d9898ee8 2711else
8d138742 2712 CC="$ac_cv_prog_CC"
d9898ee8 2713fi
2714
2715if test -z "$CC"; then
dd184caf 2716 if test -n "$ac_tool_prefix"; then
2717 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
d9898ee8 2718set dummy ${ac_tool_prefix}cc; ac_word=$2
8d138742
CE
2719{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2720$as_echo_n "checking for $ac_word... " >&6; }
d9898ee8 2721if test "${ac_cv_prog_CC+set}" = set; then
8d138742 2722 $as_echo_n "(cached) " >&6
d9898ee8 2723else
2724 if test -n "$CC"; then
2725 ac_cv_prog_CC="$CC" # Let the user override the test.
2726else
2727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2728for as_dir in $PATH
2729do
2730 IFS=$as_save_IFS
2731 test -z "$as_dir" && as_dir=.
2732 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 2733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2734 ac_cv_prog_CC="${ac_tool_prefix}cc"
8d138742 2735 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 2736 break 2
2737 fi
2738done
2739done
dd184caf 2740IFS=$as_save_IFS
d9898ee8 2741
2742fi
2743fi
2744CC=$ac_cv_prog_CC
2745if test -n "$CC"; then
8d138742
CE
2746 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2747$as_echo "$CC" >&6; }
d9898ee8 2748else
8d138742
CE
2749 { $as_echo "$as_me:$LINENO: result: no" >&5
2750$as_echo "no" >&6; }
d9898ee8 2751fi
2752
d9898ee8 2753
dd184caf 2754 fi
d9898ee8 2755fi
2756if test -z "$CC"; then
2757 # Extract the first word of "cc", so it can be a program name with args.
2758set dummy cc; ac_word=$2
8d138742
CE
2759{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2760$as_echo_n "checking for $ac_word... " >&6; }
d9898ee8 2761if test "${ac_cv_prog_CC+set}" = set; then
8d138742 2762 $as_echo_n "(cached) " >&6
d9898ee8 2763else
2764 if test -n "$CC"; then
2765 ac_cv_prog_CC="$CC" # Let the user override the test.
2766else
2767 ac_prog_rejected=no
2768as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2769for as_dir in $PATH
2770do
2771 IFS=$as_save_IFS
2772 test -z "$as_dir" && as_dir=.
2773 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 2774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2775 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2776 ac_prog_rejected=yes
2777 continue
2778 fi
2779 ac_cv_prog_CC="cc"
8d138742 2780 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 2781 break 2
2782 fi
2783done
2784done
dd184caf 2785IFS=$as_save_IFS
d9898ee8 2786
2787if test $ac_prog_rejected = yes; then
2788 # We found a bogon in the path, so make sure we never use it.
2789 set dummy $ac_cv_prog_CC
2790 shift
2791 if test $# != 0; then
2792 # We chose a different compiler from the bogus one.
2793 # However, it has the same basename, so the bogon will be chosen
2794 # first if we set CC to just the basename; use the full file name.
2795 shift
2796 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2797 fi
2798fi
2799fi
2800fi
2801CC=$ac_cv_prog_CC
2802if test -n "$CC"; then
8d138742
CE
2803 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2804$as_echo "$CC" >&6; }
d9898ee8 2805else
8d138742
CE
2806 { $as_echo "$as_me:$LINENO: result: no" >&5
2807$as_echo "no" >&6; }
d9898ee8 2808fi
2809
dd184caf 2810
d9898ee8 2811fi
2812if test -z "$CC"; then
2813 if test -n "$ac_tool_prefix"; then
dd184caf 2814 for ac_prog in cl.exe
d9898ee8 2815 do
2816 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2817set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8d138742
CE
2818{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2819$as_echo_n "checking for $ac_word... " >&6; }
d9898ee8 2820if test "${ac_cv_prog_CC+set}" = set; then
8d138742 2821 $as_echo_n "(cached) " >&6
d9898ee8 2822else
2823 if test -n "$CC"; then
2824 ac_cv_prog_CC="$CC" # Let the user override the test.
2825else
2826as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2827for as_dir in $PATH
2828do
2829 IFS=$as_save_IFS
2830 test -z "$as_dir" && as_dir=.
2831 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 2832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2833 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
8d138742 2834 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 2835 break 2
2836 fi
2837done
2838done
dd184caf 2839IFS=$as_save_IFS
d9898ee8 2840
2841fi
2842fi
2843CC=$ac_cv_prog_CC
2844if test -n "$CC"; then
8d138742
CE
2845 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2846$as_echo "$CC" >&6; }
d9898ee8 2847else
8d138742
CE
2848 { $as_echo "$as_me:$LINENO: result: no" >&5
2849$as_echo "no" >&6; }
d9898ee8 2850fi
2851
dd184caf 2852
d9898ee8 2853 test -n "$CC" && break
2854 done
2855fi
2856if test -z "$CC"; then
2857 ac_ct_CC=$CC
dd184caf 2858 for ac_prog in cl.exe
d9898ee8 2859do
2860 # Extract the first word of "$ac_prog", so it can be a program name with args.
2861set dummy $ac_prog; ac_word=$2
8d138742
CE
2862{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2863$as_echo_n "checking for $ac_word... " >&6; }
d9898ee8 2864if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
8d138742 2865 $as_echo_n "(cached) " >&6
d9898ee8 2866else
2867 if test -n "$ac_ct_CC"; then
2868 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2869else
2870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2871for as_dir in $PATH
2872do
2873 IFS=$as_save_IFS
2874 test -z "$as_dir" && as_dir=.
2875 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 2876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2877 ac_cv_prog_ac_ct_CC="$ac_prog"
8d138742 2878 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 2879 break 2
2880 fi
2881done
2882done
dd184caf 2883IFS=$as_save_IFS
d9898ee8 2884
2885fi
2886fi
2887ac_ct_CC=$ac_cv_prog_ac_ct_CC
2888if test -n "$ac_ct_CC"; then
8d138742
CE
2889 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2890$as_echo "$ac_ct_CC" >&6; }
d9898ee8 2891else
8d138742
CE
2892 { $as_echo "$as_me:$LINENO: result: no" >&5
2893$as_echo "no" >&6; }
d9898ee8 2894fi
2895
dd184caf 2896
d9898ee8 2897 test -n "$ac_ct_CC" && break
2898done
2899
dd184caf 2900 if test "x$ac_ct_CC" = x; then
2901 CC=""
2902 else
2903 case $cross_compiling:$ac_tool_warned in
2904yes:)
8d138742
CE
2905{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2906$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
dd184caf 2907ac_tool_warned=yes ;;
2908esac
2909 CC=$ac_ct_CC
2910 fi
d9898ee8 2911fi
2912
2913fi
2914
2915
8d138742
CE
2916test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2917$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2918{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
d9898ee8 2919See \`config.log' for more details." >&5
8d138742 2920$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
d9898ee8 2921See \`config.log' for more details." >&2;}
8d138742 2922 { (exit 1); exit 1; }; }; }
d9898ee8 2923
2924# Provide some information about the compiler.
8d138742
CE
2925$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2926set X $ac_compile
2927ac_compiler=$2
dd184caf 2928{ (ac_try="$ac_compiler --version >&5"
2929case "(($ac_try" in
2930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2931 *) ac_try_echo=$ac_try;;
2932esac
8d138742
CE
2933eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2934$as_echo "$ac_try_echo") >&5
dd184caf 2935 (eval "$ac_compiler --version >&5") 2>&5
d9898ee8 2936 ac_status=$?
8d138742 2937 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9898ee8 2938 (exit $ac_status); }
dd184caf 2939{ (ac_try="$ac_compiler -v >&5"
2940case "(($ac_try" in
2941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2942 *) ac_try_echo=$ac_try;;
2943esac
8d138742
CE
2944eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2945$as_echo "$ac_try_echo") >&5
dd184caf 2946 (eval "$ac_compiler -v >&5") 2>&5
d9898ee8 2947 ac_status=$?
8d138742 2948 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9898ee8 2949 (exit $ac_status); }
dd184caf 2950{ (ac_try="$ac_compiler -V >&5"
2951case "(($ac_try" in
2952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2953 *) ac_try_echo=$ac_try;;
2954esac
8d138742
CE
2955eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2956$as_echo "$ac_try_echo") >&5
dd184caf 2957 (eval "$ac_compiler -V >&5") 2>&5
d9898ee8 2958 ac_status=$?
8d138742 2959 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9898ee8 2960 (exit $ac_status); }
2961
2962cat >conftest.$ac_ext <<_ACEOF
2963/* confdefs.h. */
2964_ACEOF
2965cat confdefs.h >>conftest.$ac_ext
2966cat >>conftest.$ac_ext <<_ACEOF
2967/* end confdefs.h. */
2968
2969int
2970main ()
2971{
2972
2973 ;
2974 return 0;
2975}
2976_ACEOF
2977ac_clean_files_save=$ac_clean_files
8d138742 2978ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
d9898ee8 2979# Try to create an executable without -o first, disregard a.out.
2980# It will help us diagnose broken compilers, and finding out an intuition
2981# of exeext.
8d138742
CE
2982{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2983$as_echo_n "checking for C compiler default output file name... " >&6; }
2984ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2985
2986# The possible output files:
2987ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2988
dd184caf 2989ac_rmfiles=
2990for ac_file in $ac_files
2991do
2992 case $ac_file in
8d138742 2993 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
dd184caf 2994 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2995 esac
2996done
2997rm -f $ac_rmfiles
2998
2999if { (ac_try="$ac_link_default"
3000case "(($ac_try" in
3001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3002 *) ac_try_echo=$ac_try;;
3003esac
8d138742
CE
3004eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3005$as_echo "$ac_try_echo") >&5
dd184caf 3006 (eval "$ac_link_default") 2>&5
d9898ee8 3007 ac_status=$?
8d138742 3008 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9898ee8 3009 (exit $ac_status); }; then
dd184caf 3010 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3011# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3012# in a Makefile. We should not override ac_cv_exeext if it was cached,
3013# so that the user can short-circuit this test for compilers unknown to
3014# Autoconf.
3015for ac_file in $ac_files ''
d9898ee8 3016do
3017 test -f "$ac_file" || continue
3018 case $ac_file in
8d138742 3019 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
d9898ee8 3020 ;;
3021 [ab].out )
3022 # We found the default executable, but exeext='' is most
3023 # certainly right.
3024 break;;
3025 *.* )
dd184caf 3026 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3027 then :; else
3028 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3029 fi
3030 # We set ac_cv_exeext here because the later test for it is not
3031 # safe: cross compilers may not add the suffix if given an `-o'
3032 # argument, so we may need to know it at that point already.
3033 # Even if this section looks crufty: it has the advantage of
3034 # actually working.
d9898ee8 3035 break;;
3036 * )
3037 break;;
3038 esac
3039done
dd184caf 3040test "$ac_cv_exeext" = no && ac_cv_exeext=
3041
d9898ee8 3042else
dd184caf 3043 ac_file=''
3044fi
3045
8d138742
CE
3046{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3047$as_echo "$ac_file" >&6; }
dd184caf 3048if test -z "$ac_file"; then
8d138742 3049 $as_echo "$as_me: failed program was:" >&5
d9898ee8 3050sed 's/^/| /' conftest.$ac_ext >&5
3051
8d138742
CE
3052{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3053$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3054{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
d9898ee8 3055See \`config.log' for more details." >&5
8d138742 3056$as_echo "$as_me: error: C compiler cannot create executables
d9898ee8 3057See \`config.log' for more details." >&2;}
8d138742 3058 { (exit 77); exit 77; }; }; }
d9898ee8 3059fi
3060
3061ac_exeext=$ac_cv_exeext
d9898ee8 3062
dd184caf 3063# Check that the compiler produces executables we can run. If not, either
d9898ee8 3064# the compiler is broken, or we cross compile.
8d138742
CE
3065{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3066$as_echo_n "checking whether the C compiler works... " >&6; }
d9898ee8 3067# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3068# If not cross compiling, check that we can run a simple program.
3069if test "$cross_compiling" != yes; then
3070 if { ac_try='./$ac_file'
dd184caf 3071 { (case "(($ac_try" in
3072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3073 *) ac_try_echo=$ac_try;;
3074esac
8d138742
CE
3075eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3076$as_echo "$ac_try_echo") >&5
dd184caf 3077 (eval "$ac_try") 2>&5
d9898ee8 3078 ac_status=$?
8d138742 3079 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9898ee8 3080 (exit $ac_status); }; }; then
3081 cross_compiling=no
3082 else
3083 if test "$cross_compiling" = maybe; then
3084 cross_compiling=yes
3085 else
8d138742
CE
3086 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3087$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3088{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
d9898ee8 3089If you meant to cross compile, use \`--host'.
3090See \`config.log' for more details." >&5
8d138742 3091$as_echo "$as_me: error: cannot run C compiled programs.
d9898ee8 3092If you meant to cross compile, use \`--host'.
3093See \`config.log' for more details." >&2;}
8d138742 3094 { (exit 1); exit 1; }; }; }
d9898ee8 3095 fi
3096 fi
3097fi
8d138742
CE
3098{ $as_echo "$as_me:$LINENO: result: yes" >&5
3099$as_echo "yes" >&6; }
d9898ee8 3100
8d138742 3101rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
d9898ee8 3102ac_clean_files=$ac_clean_files_save
dd184caf 3103# Check that the compiler produces executables we can run. If not, either
d9898ee8 3104# the compiler is broken, or we cross compile.
8d138742
CE
3105{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3106$as_echo_n "checking whether we are cross compiling... " >&6; }
3107{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3108$as_echo "$cross_compiling" >&6; }
dd184caf 3109
8d138742
CE
3110{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3111$as_echo_n "checking for suffix of executables... " >&6; }
dd184caf 3112if { (ac_try="$ac_link"
3113case "(($ac_try" in
3114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3115 *) ac_try_echo=$ac_try;;
3116esac
8d138742
CE
3117eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3118$as_echo "$ac_try_echo") >&5
dd184caf 3119 (eval "$ac_link") 2>&5
d9898ee8 3120 ac_status=$?
8d138742 3121 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9898ee8 3122 (exit $ac_status); }; then
3123 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3124# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3125# work properly (i.e., refer to `conftest.exe'), while it won't with
3126# `rm'.
3127for ac_file in conftest.exe conftest conftest.*; do
3128 test -f "$ac_file" || continue
3129 case $ac_file in
8d138742 3130 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
d9898ee8 3131 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
d9898ee8 3132 break;;
3133 * ) break;;
3134 esac
3135done
3136else
8d138742
CE
3137 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3138$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3139{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
d9898ee8 3140See \`config.log' for more details." >&5
8d138742 3141$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
d9898ee8 3142See \`config.log' for more details." >&2;}
8d138742 3143 { (exit 1); exit 1; }; }; }
d9898ee8 3144fi
3145
3146rm -f conftest$ac_cv_exeext
8d138742
CE
3147{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3148$as_echo "$ac_cv_exeext" >&6; }
d9898ee8 3149
3150rm -f conftest.$ac_ext
3151EXEEXT=$ac_cv_exeext
3152ac_exeext=$EXEEXT
8d138742
CE
3153{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3154$as_echo_n "checking for suffix of object files... " >&6; }
d9898ee8 3155if test "${ac_cv_objext+set}" = set; then
8d138742 3156 $as_echo_n "(cached) " >&6
d9898ee8 3157else
3158 cat >conftest.$ac_ext <<_ACEOF
3159/* confdefs.h. */
3160_ACEOF
3161cat confdefs.h >>conftest.$ac_ext
3162cat >>conftest.$ac_ext <<_ACEOF
3163/* end confdefs.h. */
3164
3165int
3166main ()
3167{
3168
3169 ;
3170 return 0;
3171}
3172_ACEOF
3173rm -f conftest.o conftest.obj
dd184caf 3174if { (ac_try="$ac_compile"
3175case "(($ac_try" in
3176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3177 *) ac_try_echo=$ac_try;;
3178esac
8d138742
CE
3179eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3180$as_echo "$ac_try_echo") >&5
dd184caf 3181 (eval "$ac_compile") 2>&5
d9898ee8 3182 ac_status=$?
8d138742 3183 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9898ee8 3184 (exit $ac_status); }; then
dd184caf 3185 for ac_file in conftest.o conftest.obj conftest.*; do
3186 test -f "$ac_file" || continue;
d9898ee8 3187 case $ac_file in
8d138742 3188 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
d9898ee8 3189 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3190 break;;
3191 esac
3192done
3193else
8d138742 3194 $as_echo "$as_me: failed program was:" >&5
d9898ee8 3195sed 's/^/| /' conftest.$ac_ext >&5
3196
8d138742
CE
3197{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3198$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3199{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
d9898ee8 3200See \`config.log' for more details." >&5
8d138742 3201$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
d9898ee8 3202See \`config.log' for more details." >&2;}
8d138742 3203 { (exit 1); exit 1; }; }; }
d9898ee8 3204fi
3205
3206rm -f conftest.$ac_cv_objext conftest.$ac_ext
3207fi
8d138742
CE
3208{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3209$as_echo "$ac_cv_objext" >&6; }
d9898ee8 3210OBJEXT=$ac_cv_objext
3211ac_objext=$OBJEXT
8d138742
CE
3212{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3213$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
d9898ee8 3214if test "${ac_cv_c_compiler_gnu+set}" = set; then
8d138742 3215 $as_echo_n "(cached) " >&6
d9898ee8 3216else
3217 cat >conftest.$ac_ext <<_ACEOF
3218/* confdefs.h. */
3219_ACEOF
3220cat confdefs.h >>conftest.$ac_ext
3221cat >>conftest.$ac_ext <<_ACEOF
3222/* end confdefs.h. */
3223
3224int
3225main ()
3226{
3227#ifndef __GNUC__
3228 choke me
3229#endif
3230
3231 ;
3232 return 0;
3233}
3234_ACEOF
3235rm -f conftest.$ac_objext
dd184caf 3236if { (ac_try="$ac_compile"
3237case "(($ac_try" in
3238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3239 *) ac_try_echo=$ac_try;;
3240esac
8d138742
CE
3241eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3242$as_echo "$ac_try_echo") >&5
dd184caf 3243 (eval "$ac_compile") 2>conftest.er1
d9898ee8 3244 ac_status=$?
3245 grep -v '^ *+' conftest.er1 >conftest.err
3246 rm -f conftest.er1
3247 cat conftest.err >&5
8d138742 3248 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 3249 (exit $ac_status); } && {
3250 test -z "$ac_c_werror_flag" ||
3251 test ! -s conftest.err
3252 } && test -s conftest.$ac_objext; then
d9898ee8 3253 ac_compiler_gnu=yes
3254else
8d138742 3255 $as_echo "$as_me: failed program was:" >&5
d9898ee8 3256sed 's/^/| /' conftest.$ac_ext >&5
3257
dd184caf 3258 ac_compiler_gnu=no
d9898ee8 3259fi
dd184caf 3260
3261rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 3262ac_cv_c_compiler_gnu=$ac_compiler_gnu
3263
3264fi
8d138742
CE
3265{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3266$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3267if test $ac_compiler_gnu = yes; then
3268 GCC=yes
3269else
3270 GCC=
3271fi
d9898ee8 3272ac_test_CFLAGS=${CFLAGS+set}
3273ac_save_CFLAGS=$CFLAGS
8d138742
CE
3274{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3275$as_echo_n "checking whether $CC accepts -g... " >&6; }
d9898ee8 3276if test "${ac_cv_prog_cc_g+set}" = set; then
8d138742 3277 $as_echo_n "(cached) " >&6
d9898ee8 3278else
dd184caf 3279 ac_save_c_werror_flag=$ac_c_werror_flag
3280 ac_c_werror_flag=yes
3281 ac_cv_prog_cc_g=no
3282 CFLAGS="-g"
3283 cat >conftest.$ac_ext <<_ACEOF
d9898ee8 3284/* confdefs.h. */
3285_ACEOF
3286cat confdefs.h >>conftest.$ac_ext
3287cat >>conftest.$ac_ext <<_ACEOF
3288/* end confdefs.h. */
3289
3290int
3291main ()
3292{
3293
3294 ;
3295 return 0;
3296}
3297_ACEOF
3298rm -f conftest.$ac_objext
dd184caf 3299if { (ac_try="$ac_compile"
3300case "(($ac_try" in
3301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3302 *) ac_try_echo=$ac_try;;
3303esac
8d138742
CE
3304eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3305$as_echo "$ac_try_echo") >&5
dd184caf 3306 (eval "$ac_compile") 2>conftest.er1
d9898ee8 3307 ac_status=$?
3308 grep -v '^ *+' conftest.er1 >conftest.err
3309 rm -f conftest.er1
3310 cat conftest.err >&5
8d138742 3311 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 3312 (exit $ac_status); } && {
3313 test -z "$ac_c_werror_flag" ||
3314 test ! -s conftest.err
3315 } && test -s conftest.$ac_objext; then
3316 ac_cv_prog_cc_g=yes
3317else
8d138742 3318 $as_echo "$as_me: failed program was:" >&5
dd184caf 3319sed 's/^/| /' conftest.$ac_ext >&5
3320
3321 CFLAGS=""
3322 cat >conftest.$ac_ext <<_ACEOF
3323/* confdefs.h. */
3324_ACEOF
3325cat confdefs.h >>conftest.$ac_ext
3326cat >>conftest.$ac_ext <<_ACEOF
3327/* end confdefs.h. */
3328
3329int
3330main ()
3331{
3332
3333 ;
3334 return 0;
3335}
3336_ACEOF
3337rm -f conftest.$ac_objext
3338if { (ac_try="$ac_compile"
3339case "(($ac_try" in
3340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3341 *) ac_try_echo=$ac_try;;
3342esac
8d138742
CE
3343eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3344$as_echo "$ac_try_echo") >&5
dd184caf 3345 (eval "$ac_compile") 2>conftest.er1
d9898ee8 3346 ac_status=$?
dd184caf 3347 grep -v '^ *+' conftest.er1 >conftest.err
3348 rm -f conftest.er1
3349 cat conftest.err >&5
8d138742 3350 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 3351 (exit $ac_status); } && {
3352 test -z "$ac_c_werror_flag" ||
3353 test ! -s conftest.err
3354 } && test -s conftest.$ac_objext; then
3355 :
3356else
8d138742 3357 $as_echo "$as_me: failed program was:" >&5
dd184caf 3358sed 's/^/| /' conftest.$ac_ext >&5
3359
3360 ac_c_werror_flag=$ac_save_c_werror_flag
3361 CFLAGS="-g"
3362 cat >conftest.$ac_ext <<_ACEOF
3363/* confdefs.h. */
3364_ACEOF
3365cat confdefs.h >>conftest.$ac_ext
3366cat >>conftest.$ac_ext <<_ACEOF
3367/* end confdefs.h. */
3368
3369int
3370main ()
3371{
3372
3373 ;
3374 return 0;
3375}
3376_ACEOF
3377rm -f conftest.$ac_objext
3378if { (ac_try="$ac_compile"
3379case "(($ac_try" in
3380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3381 *) ac_try_echo=$ac_try;;
3382esac
8d138742
CE
3383eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3384$as_echo "$ac_try_echo") >&5
dd184caf 3385 (eval "$ac_compile") 2>conftest.er1
d9898ee8 3386 ac_status=$?
dd184caf 3387 grep -v '^ *+' conftest.er1 >conftest.err
3388 rm -f conftest.er1
3389 cat conftest.err >&5
8d138742 3390 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 3391 (exit $ac_status); } && {
3392 test -z "$ac_c_werror_flag" ||
3393 test ! -s conftest.err
3394 } && test -s conftest.$ac_objext; then
d9898ee8 3395 ac_cv_prog_cc_g=yes
3396else
8d138742 3397 $as_echo "$as_me: failed program was:" >&5
d9898ee8 3398sed 's/^/| /' conftest.$ac_ext >&5
3399
dd184caf 3400
3401fi
3402
3403rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3404fi
3405
3406rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 3407fi
dd184caf 3408
3409rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3410 ac_c_werror_flag=$ac_save_c_werror_flag
d9898ee8 3411fi
8d138742
CE
3412{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3413$as_echo "$ac_cv_prog_cc_g" >&6; }
d9898ee8 3414if test "$ac_test_CFLAGS" = set; then
3415 CFLAGS=$ac_save_CFLAGS
3416elif test $ac_cv_prog_cc_g = yes; then
3417 if test "$GCC" = yes; then
3418 CFLAGS="-g -O2"
3419 else
3420 CFLAGS="-g"
3421 fi
3422else
3423 if test "$GCC" = yes; then
3424 CFLAGS="-O2"
3425 else
3426 CFLAGS=
3427 fi
3428fi
8d138742
CE
3429{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3430$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
dd184caf 3431if test "${ac_cv_prog_cc_c89+set}" = set; then
8d138742 3432 $as_echo_n "(cached) " >&6
d9898ee8 3433else
dd184caf 3434 ac_cv_prog_cc_c89=no
d9898ee8 3435ac_save_CC=$CC
3436cat >conftest.$ac_ext <<_ACEOF
3437/* confdefs.h. */
3438_ACEOF
3439cat confdefs.h >>conftest.$ac_ext
3440cat >>conftest.$ac_ext <<_ACEOF
3441/* end confdefs.h. */
3442#include <stdarg.h>
3443#include <stdio.h>
3444#include <sys/types.h>
3445#include <sys/stat.h>
3446/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3447struct buf { int x; };
3448FILE * (*rcsopen) (struct buf *, struct stat *, int);
3449static char *e (p, i)
3450 char **p;
3451 int i;
3452{
3453 return p[i];
3454}
3455static char *f (char * (*g) (char **, int), char **p, ...)
3456{
3457 char *s;
3458 va_list v;
3459 va_start (v,p);
3460 s = g (p, va_arg (v,int));
3461 va_end (v);
3462 return s;
3463}
3464
3465/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3466 function prototypes and stuff, but not '\xHH' hex character constants.
3467 These don't provoke an error unfortunately, instead are silently treated
dd184caf 3468 as 'x'. The following induces an error, until -std is added to get
d9898ee8 3469 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3470 array size at least. It's necessary to write '\x00'==0 to get something
dd184caf 3471 that's true only with -std. */
d9898ee8 3472int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3473
dd184caf 3474/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3475 inside strings and character constants. */
3476#define FOO(x) 'x'
3477int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3478
d9898ee8 3479int test (int i, double x);
3480struct s1 {int (*f) (int a);};
3481struct s2 {int (*f) (double a);};
3482int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3483int argc;
3484char **argv;
3485int
3486main ()
3487{
3488return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3489 ;
3490 return 0;
3491}
3492_ACEOF
dd184caf 3493for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3494 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
d9898ee8 3495do
3496 CC="$ac_save_CC $ac_arg"
3497 rm -f conftest.$ac_objext
dd184caf 3498if { (ac_try="$ac_compile"
3499case "(($ac_try" in
3500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3501 *) ac_try_echo=$ac_try;;
3502esac
8d138742
CE
3503eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3504$as_echo "$ac_try_echo") >&5
dd184caf 3505 (eval "$ac_compile") 2>conftest.er1
d9898ee8 3506 ac_status=$?
3507 grep -v '^ *+' conftest.er1 >conftest.err
3508 rm -f conftest.er1
3509 cat conftest.err >&5
8d138742 3510 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 3511 (exit $ac_status); } && {
3512 test -z "$ac_c_werror_flag" ||
3513 test ! -s conftest.err
3514 } && test -s conftest.$ac_objext; then
3515 ac_cv_prog_cc_c89=$ac_arg
d9898ee8 3516else
8d138742 3517 $as_echo "$as_me: failed program was:" >&5
d9898ee8 3518sed 's/^/| /' conftest.$ac_ext >&5
3519
dd184caf 3520
d9898ee8 3521fi
dd184caf 3522
3523rm -f core conftest.err conftest.$ac_objext
3524 test "x$ac_cv_prog_cc_c89" != "xno" && break
d9898ee8 3525done
dd184caf 3526rm -f conftest.$ac_ext
d9898ee8 3527CC=$ac_save_CC
3528
3529fi
dd184caf 3530# AC_CACHE_VAL
3531case "x$ac_cv_prog_cc_c89" in
3532 x)
8d138742
CE
3533 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3534$as_echo "none needed" >&6; } ;;
dd184caf 3535 xno)
8d138742
CE
3536 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3537$as_echo "unsupported" >&6; } ;;
d9898ee8 3538 *)
dd184caf 3539 CC="$CC $ac_cv_prog_cc_c89"
8d138742
CE
3540 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3541$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
d9898ee8 3542esac
3543
d9898ee8 3544
d9898ee8 3545ac_ext=c
3546ac_cpp='$CPP $CPPFLAGS'
3547ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3548ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3549ac_compiler_gnu=$ac_cv_c_compiler_gnu
d9898ee8 3550
d9898ee8 3551depcc="$CC" am_compiler_list=
3552
8d138742
CE
3553{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3554$as_echo_n "checking dependency style of $depcc... " >&6; }
d9898ee8 3555if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
8d138742 3556 $as_echo_n "(cached) " >&6
d9898ee8 3557else
3558 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3559 # We make a subdir and do the tests there. Otherwise we can end up
3560 # making bogus files that we don't know about and never remove. For
3561 # instance it was reported that on HP-UX the gcc test will end up
3562 # making a dummy file named `D' -- because `-MD' means `put the output
3563 # in D'.
3564 mkdir conftest.dir
3565 # Copy depcomp to subdir because otherwise we won't find it if we're
3566 # using a relative directory.
3567 cp "$am_depcomp" conftest.dir
3568 cd conftest.dir
3569 # We will build objects and dependencies in a subdirectory because
3570 # it helps to detect inapplicable dependency modes. For instance
3571 # both Tru64's cc and ICC support -MD to output dependencies as a
3572 # side effect of compilation, but ICC will put the dependencies in
3573 # the current directory while Tru64 will put them in the object
3574 # directory.
3575 mkdir sub
3576
3577 am_cv_CC_dependencies_compiler_type=none
3578 if test "$am_compiler_list" = ""; then
3579 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3580 fi
8d138742
CE
3581 am__universal=false
3582 case " $depcc " in #(
3583 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3584 esac
3585
d9898ee8 3586 for depmode in $am_compiler_list; do
3587 # Setup a source with many dependencies, because some compilers
3588 # like to wrap large dependency lists on column 80 (with \), and
3589 # we should not choose a depcomp mode which is confused by this.
3590 #
3591 # We need to recreate these files for each test, as the compiler may
3592 # overwrite some of them when testing with obscure command lines.
3593 # This happens at least with the AIX C compiler.
3594 : > sub/conftest.c
3595 for i in 1 2 3 4 5 6; do
3596 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3597 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3598 # Solaris 8's {/usr,}/bin/sh.
3599 touch sub/conftst$i.h
3600 done
3601 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3602
8d138742
CE
3603 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3604 # mode. It turns out that the SunPro C++ compiler does not properly
3605 # handle `-M -o', and we need to detect this. Also, some Intel
3606 # versions had trouble with output in subdirs
3607 am__obj=sub/conftest.${OBJEXT-o}
3608 am__minus_obj="-o $am__obj"
d9898ee8 3609 case $depmode in
8d138742
CE
3610 gcc)
3611 # This depmode causes a compiler race in universal mode.
3612 test "$am__universal" = false || continue
3613 ;;
d9898ee8 3614 nosideeffect)
3615 # after this tag, mechanisms are not by side-effect, so they'll
3616 # only be used when explicitly requested
3617 if test "x$enable_dependency_tracking" = xyes; then
3618 continue
3619 else
3620 break
3621 fi
3622 ;;
8d138742
CE
3623 msvisualcpp | msvcmsys)
3624 # This compiler won't grok `-c -o', but also, the minuso test has
3625 # not run yet. These depmodes are late enough in the game, and
3626 # so weak that their functioning should not be impacted.
3627 am__obj=conftest.${OBJEXT-o}
3628 am__minus_obj=
3629 ;;
d9898ee8 3630 none) break ;;
3631 esac
d9898ee8 3632 if depmode=$depmode \
8d138742 3633 source=sub/conftest.c object=$am__obj \
d9898ee8 3634 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8d138742 3635 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
d9898ee8 3636 >/dev/null 2>conftest.err &&
dd184caf 3637 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
d9898ee8 3638 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8d138742 3639 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
d9898ee8 3640 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3641 # icc doesn't choke on unknown options, it will just issue warnings
3642 # or remarks (even with -Werror). So we grep stderr for any message
3643 # that says an option was ignored or not supported.
3644 # When given -MP, icc 7.0 and 7.1 complain thusly:
3645 # icc: Command line warning: ignoring option '-M'; no argument required
3646 # The diagnosis changed in icc 8.0:
3647 # icc: Command line remark: option '-MP' not supported
3648 if (grep 'ignoring option' conftest.err ||
3649 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3650 am_cv_CC_dependencies_compiler_type=$depmode
3651 break
3652 fi
3653 fi
3654 done
3655
3656 cd ..
3657 rm -rf conftest.dir
3658else
3659 am_cv_CC_dependencies_compiler_type=none
3660fi
3661
3662fi
8d138742
CE
3663{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3664$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
d9898ee8 3665CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3666
dd184caf 3667 if
d9898ee8 3668 test "x$enable_dependency_tracking" != xno \
3669 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3670 am__fastdepCC_TRUE=
3671 am__fastdepCC_FALSE='#'
3672else
3673 am__fastdepCC_TRUE='#'
3674 am__fastdepCC_FALSE=
3675fi
3676
3677
3678
3679ac_ext=c
3680ac_cpp='$CPP $CPPFLAGS'
3681ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3682ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3683ac_compiler_gnu=$ac_cv_c_compiler_gnu
8d138742
CE
3684{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3685$as_echo_n "checking how to run the C preprocessor... " >&6; }
d9898ee8 3686# On Suns, sometimes $CPP names a directory.
3687if test -n "$CPP" && test -d "$CPP"; then
3688 CPP=
3689fi
3690if test -z "$CPP"; then
3691 if test "${ac_cv_prog_CPP+set}" = set; then
8d138742 3692 $as_echo_n "(cached) " >&6
d9898ee8 3693else
3694 # Double quotes because CPP needs to be expanded
3695 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3696 do
3697 ac_preproc_ok=false
3698for ac_c_preproc_warn_flag in '' yes
3699do
3700 # Use a header file that comes with gcc, so configuring glibc
3701 # with a fresh cross-compiler works.
3702 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3703 # <limits.h> exists even on freestanding compilers.
3704 # On the NeXT, cc -E runs the code through the compiler's parser,
3705 # not just through cpp. "Syntax error" is here to catch this case.
3706 cat >conftest.$ac_ext <<_ACEOF
3707/* confdefs.h. */
3708_ACEOF
3709cat confdefs.h >>conftest.$ac_ext
3710cat >>conftest.$ac_ext <<_ACEOF
3711/* end confdefs.h. */
3712#ifdef __STDC__
3713# include <limits.h>
3714#else
3715# include <assert.h>
3716#endif
3717 Syntax error
3718_ACEOF
dd184caf 3719if { (ac_try="$ac_cpp conftest.$ac_ext"
3720case "(($ac_try" in
3721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3722 *) ac_try_echo=$ac_try;;
3723esac
8d138742
CE
3724eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3725$as_echo "$ac_try_echo") >&5
dd184caf 3726 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 3727 ac_status=$?
3728 grep -v '^ *+' conftest.er1 >conftest.err
3729 rm -f conftest.er1
3730 cat conftest.err >&5
8d138742 3731 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 3732 (exit $ac_status); } >/dev/null && {
3733 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3734 test ! -s conftest.err
3735 }; then
d9898ee8 3736 :
3737else
8d138742 3738 $as_echo "$as_me: failed program was:" >&5
d9898ee8 3739sed 's/^/| /' conftest.$ac_ext >&5
3740
3741 # Broken: fails on valid input.
3742continue
3743fi
dd184caf 3744
d9898ee8 3745rm -f conftest.err conftest.$ac_ext
3746
dd184caf 3747 # OK, works on sane cases. Now check whether nonexistent headers
d9898ee8 3748 # can be detected and how.
3749 cat >conftest.$ac_ext <<_ACEOF
3750/* confdefs.h. */
3751_ACEOF
3752cat confdefs.h >>conftest.$ac_ext
3753cat >>conftest.$ac_ext <<_ACEOF
3754/* end confdefs.h. */
3755#include <ac_nonexistent.h>
3756_ACEOF
dd184caf 3757if { (ac_try="$ac_cpp conftest.$ac_ext"
3758case "(($ac_try" in
3759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3760 *) ac_try_echo=$ac_try;;
3761esac
8d138742
CE
3762eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3763$as_echo "$ac_try_echo") >&5
dd184caf 3764 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 3765 ac_status=$?
3766 grep -v '^ *+' conftest.er1 >conftest.err
3767 rm -f conftest.er1
3768 cat conftest.err >&5
8d138742 3769 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 3770 (exit $ac_status); } >/dev/null && {
3771 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3772 test ! -s conftest.err
3773 }; then
d9898ee8 3774 # Broken: success on invalid input.
3775continue
3776else
8d138742 3777 $as_echo "$as_me: failed program was:" >&5
d9898ee8 3778sed 's/^/| /' conftest.$ac_ext >&5
3779
3780 # Passes both tests.
3781ac_preproc_ok=:
3782break
3783fi
dd184caf 3784
d9898ee8 3785rm -f conftest.err conftest.$ac_ext
3786
3787done
3788# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3789rm -f conftest.err conftest.$ac_ext
3790if $ac_preproc_ok; then
3791 break
3792fi
3793
3794 done
3795 ac_cv_prog_CPP=$CPP
3796
3797fi
3798 CPP=$ac_cv_prog_CPP
3799else
3800 ac_cv_prog_CPP=$CPP
3801fi
8d138742
CE
3802{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
3803$as_echo "$CPP" >&6; }
d9898ee8 3804ac_preproc_ok=false
3805for ac_c_preproc_warn_flag in '' yes
3806do
3807 # Use a header file that comes with gcc, so configuring glibc
3808 # with a fresh cross-compiler works.
3809 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3810 # <limits.h> exists even on freestanding compilers.
3811 # On the NeXT, cc -E runs the code through the compiler's parser,
3812 # not just through cpp. "Syntax error" is here to catch this case.
3813 cat >conftest.$ac_ext <<_ACEOF
3814/* confdefs.h. */
3815_ACEOF
3816cat confdefs.h >>conftest.$ac_ext
3817cat >>conftest.$ac_ext <<_ACEOF
3818/* end confdefs.h. */
3819#ifdef __STDC__
3820# include <limits.h>
3821#else
3822# include <assert.h>
3823#endif
3824 Syntax error
3825_ACEOF
dd184caf 3826if { (ac_try="$ac_cpp conftest.$ac_ext"
3827case "(($ac_try" in
3828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3829 *) ac_try_echo=$ac_try;;
3830esac
8d138742
CE
3831eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3832$as_echo "$ac_try_echo") >&5
dd184caf 3833 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 3834 ac_status=$?
3835 grep -v '^ *+' conftest.er1 >conftest.err
3836 rm -f conftest.er1
3837 cat conftest.err >&5
8d138742 3838 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 3839 (exit $ac_status); } >/dev/null && {
3840 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3841 test ! -s conftest.err
3842 }; then
d9898ee8 3843 :
3844else
8d138742 3845 $as_echo "$as_me: failed program was:" >&5
d9898ee8 3846sed 's/^/| /' conftest.$ac_ext >&5
3847
3848 # Broken: fails on valid input.
3849continue
3850fi
dd184caf 3851
d9898ee8 3852rm -f conftest.err conftest.$ac_ext
3853
dd184caf 3854 # OK, works on sane cases. Now check whether nonexistent headers
d9898ee8 3855 # can be detected and how.
3856 cat >conftest.$ac_ext <<_ACEOF
3857/* confdefs.h. */
3858_ACEOF
3859cat confdefs.h >>conftest.$ac_ext
3860cat >>conftest.$ac_ext <<_ACEOF
3861/* end confdefs.h. */
3862#include <ac_nonexistent.h>
3863_ACEOF
dd184caf 3864if { (ac_try="$ac_cpp conftest.$ac_ext"
3865case "(($ac_try" in
3866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3867 *) ac_try_echo=$ac_try;;
3868esac
8d138742
CE
3869eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3870$as_echo "$ac_try_echo") >&5
dd184caf 3871 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 3872 ac_status=$?
3873 grep -v '^ *+' conftest.er1 >conftest.err
3874 rm -f conftest.er1
3875 cat conftest.err >&5
8d138742 3876 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 3877 (exit $ac_status); } >/dev/null && {
3878 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3879 test ! -s conftest.err
3880 }; then
d9898ee8 3881 # Broken: success on invalid input.
3882continue
3883else
8d138742 3884 $as_echo "$as_me: failed program was:" >&5
d9898ee8 3885sed 's/^/| /' conftest.$ac_ext >&5
3886
3887 # Passes both tests.
3888ac_preproc_ok=:
3889break
3890fi
dd184caf 3891
d9898ee8 3892rm -f conftest.err conftest.$ac_ext
3893
3894done
3895# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3896rm -f conftest.err conftest.$ac_ext
3897if $ac_preproc_ok; then
3898 :
3899else
8d138742
CE
3900 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3901$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3902{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
d9898ee8 3903See \`config.log' for more details." >&5
8d138742 3904$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
d9898ee8 3905See \`config.log' for more details." >&2;}
8d138742 3906 { (exit 1); exit 1; }; }; }
d9898ee8 3907fi
3908
3909ac_ext=c
3910ac_cpp='$CPP $CPPFLAGS'
3911ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3912ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3913ac_compiler_gnu=$ac_cv_c_compiler_gnu
3914
3915
8d138742
CE
3916{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3917$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
dd184caf 3918if test "${ac_cv_path_GREP+set}" = set; then
8d138742 3919 $as_echo_n "(cached) " >&6
dd184caf 3920else
8d138742 3921 if test -z "$GREP"; then
dd184caf 3922 ac_path_GREP_found=false
8d138742
CE
3923 # Loop through the user's path and test for each of PROGNAME-LIST
3924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
dd184caf 3925for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3926do
3927 IFS=$as_save_IFS
3928 test -z "$as_dir" && as_dir=.
3929 for ac_prog in grep ggrep; do
8d138742
CE
3930 for ac_exec_ext in '' $ac_executable_extensions; do
3931 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3932 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3933# Check for GNU ac_path_GREP and select it if it is found.
dd184caf 3934 # Check for GNU $ac_path_GREP
3935case `"$ac_path_GREP" --version 2>&1` in
3936*GNU*)
3937 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3938*)
3939 ac_count=0
8d138742 3940 $as_echo_n 0123456789 >"conftest.in"
dd184caf 3941 while :
3942 do
3943 cat "conftest.in" "conftest.in" >"conftest.tmp"
3944 mv "conftest.tmp" "conftest.in"
3945 cp "conftest.in" "conftest.nl"
8d138742 3946 $as_echo 'GREP' >> "conftest.nl"
dd184caf 3947 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3948 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3949 ac_count=`expr $ac_count + 1`
3950 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3951 # Best one so far, save it but keep looking for a better one
3952 ac_cv_path_GREP="$ac_path_GREP"
3953 ac_path_GREP_max=$ac_count
3954 fi
3955 # 10*(2^10) chars as input seems more than enough
3956 test $ac_count -gt 10 && break
3957 done
3958 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3959esac
3960
8d138742
CE
3961 $ac_path_GREP_found && break 3
3962 done
dd184caf 3963 done
3964done
dd184caf 3965IFS=$as_save_IFS
8d138742
CE
3966 if test -z "$ac_cv_path_GREP"; then
3967 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3968$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
dd184caf 3969 { (exit 1); exit 1; }; }
8d138742 3970 fi
dd184caf 3971else
3972 ac_cv_path_GREP=$GREP
3973fi
3974
dd184caf 3975fi
8d138742
CE
3976{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3977$as_echo "$ac_cv_path_GREP" >&6; }
dd184caf 3978 GREP="$ac_cv_path_GREP"
3979
3980
8d138742
CE
3981{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
3982$as_echo_n "checking for egrep... " >&6; }
dd184caf 3983if test "${ac_cv_path_EGREP+set}" = set; then
8d138742 3984 $as_echo_n "(cached) " >&6
d9898ee8 3985else
dd184caf 3986 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3987 then ac_cv_path_EGREP="$GREP -E"
3988 else
8d138742 3989 if test -z "$EGREP"; then
dd184caf 3990 ac_path_EGREP_found=false
8d138742
CE
3991 # Loop through the user's path and test for each of PROGNAME-LIST
3992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
dd184caf 3993for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3994do
3995 IFS=$as_save_IFS
3996 test -z "$as_dir" && as_dir=.
3997 for ac_prog in egrep; do
8d138742
CE
3998 for ac_exec_ext in '' $ac_executable_extensions; do
3999 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4000 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4001# Check for GNU ac_path_EGREP and select it if it is found.
dd184caf 4002 # Check for GNU $ac_path_EGREP
4003case `"$ac_path_EGREP" --version 2>&1` in
4004*GNU*)
4005 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4006*)
4007 ac_count=0
8d138742 4008 $as_echo_n 0123456789 >"conftest.in"
dd184caf 4009 while :
4010 do
4011 cat "conftest.in" "conftest.in" >"conftest.tmp"
4012 mv "conftest.tmp" "conftest.in"
4013 cp "conftest.in" "conftest.nl"
8d138742 4014 $as_echo 'EGREP' >> "conftest.nl"
dd184caf 4015 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4016 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4017 ac_count=`expr $ac_count + 1`
4018 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4019 # Best one so far, save it but keep looking for a better one
4020 ac_cv_path_EGREP="$ac_path_EGREP"
4021 ac_path_EGREP_max=$ac_count
d9898ee8 4022 fi
dd184caf 4023 # 10*(2^10) chars as input seems more than enough
4024 test $ac_count -gt 10 && break
4025 done
4026 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4027esac
4028
8d138742
CE
4029 $ac_path_EGREP_found && break 3
4030 done
dd184caf 4031 done
4032done
dd184caf 4033IFS=$as_save_IFS
8d138742
CE
4034 if test -z "$ac_cv_path_EGREP"; then
4035 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4036$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
dd184caf 4037 { (exit 1); exit 1; }; }
8d138742 4038 fi
dd184caf 4039else
4040 ac_cv_path_EGREP=$EGREP
4041fi
4042
dd184caf 4043 fi
d9898ee8 4044fi
8d138742
CE
4045{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4046$as_echo "$ac_cv_path_EGREP" >&6; }
dd184caf 4047 EGREP="$ac_cv_path_EGREP"
d9898ee8 4048
4049
8d138742
CE
4050{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4051$as_echo_n "checking for ANSI C header files... " >&6; }
d9898ee8 4052if test "${ac_cv_header_stdc+set}" = set; then
8d138742 4053 $as_echo_n "(cached) " >&6
d9898ee8 4054else
4055 cat >conftest.$ac_ext <<_ACEOF
4056/* confdefs.h. */
4057_ACEOF
4058cat confdefs.h >>conftest.$ac_ext
4059cat >>conftest.$ac_ext <<_ACEOF
4060/* end confdefs.h. */
4061#include <stdlib.h>
4062#include <stdarg.h>
4063#include <string.h>
4064#include <float.h>
4065
4066int
4067main ()
4068{
4069
4070 ;
4071 return 0;
4072}
4073_ACEOF
4074rm -f conftest.$ac_objext
dd184caf 4075if { (ac_try="$ac_compile"
4076case "(($ac_try" in
4077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4078 *) ac_try_echo=$ac_try;;
4079esac
8d138742
CE
4080eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4081$as_echo "$ac_try_echo") >&5
dd184caf 4082 (eval "$ac_compile") 2>conftest.er1
d9898ee8 4083 ac_status=$?
4084 grep -v '^ *+' conftest.er1 >conftest.err
4085 rm -f conftest.er1
4086 cat conftest.err >&5
8d138742 4087 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 4088 (exit $ac_status); } && {
4089 test -z "$ac_c_werror_flag" ||
4090 test ! -s conftest.err
4091 } && test -s conftest.$ac_objext; then
d9898ee8 4092 ac_cv_header_stdc=yes
4093else
8d138742 4094 $as_echo "$as_me: failed program was:" >&5
d9898ee8 4095sed 's/^/| /' conftest.$ac_ext >&5
4096
dd184caf 4097 ac_cv_header_stdc=no
d9898ee8 4098fi
dd184caf 4099
4100rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 4101
4102if test $ac_cv_header_stdc = yes; then
4103 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4104 cat >conftest.$ac_ext <<_ACEOF
4105/* confdefs.h. */
4106_ACEOF
4107cat confdefs.h >>conftest.$ac_ext
4108cat >>conftest.$ac_ext <<_ACEOF
4109/* end confdefs.h. */
4110#include <string.h>
4111
4112_ACEOF
4113if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4114 $EGREP "memchr" >/dev/null 2>&1; then
4115 :
4116else
4117 ac_cv_header_stdc=no
4118fi
4119rm -f conftest*
4120
4121fi
4122
4123if test $ac_cv_header_stdc = yes; then
4124 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4125 cat >conftest.$ac_ext <<_ACEOF
4126/* confdefs.h. */
4127_ACEOF
4128cat confdefs.h >>conftest.$ac_ext
4129cat >>conftest.$ac_ext <<_ACEOF
4130/* end confdefs.h. */
4131#include <stdlib.h>
4132
4133_ACEOF
4134if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4135 $EGREP "free" >/dev/null 2>&1; then
4136 :
4137else
4138 ac_cv_header_stdc=no
4139fi
4140rm -f conftest*
4141
4142fi
4143
4144if test $ac_cv_header_stdc = yes; then
4145 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4146 if test "$cross_compiling" = yes; then
4147 :
4148else
4149 cat >conftest.$ac_ext <<_ACEOF
4150/* confdefs.h. */
4151_ACEOF
4152cat confdefs.h >>conftest.$ac_ext
4153cat >>conftest.$ac_ext <<_ACEOF
4154/* end confdefs.h. */
4155#include <ctype.h>
dd184caf 4156#include <stdlib.h>
d9898ee8 4157#if ((' ' & 0x0FF) == 0x020)
4158# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4159# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4160#else
4161# define ISLOWER(c) \
4162 (('a' <= (c) && (c) <= 'i') \
4163 || ('j' <= (c) && (c) <= 'r') \
4164 || ('s' <= (c) && (c) <= 'z'))
4165# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4166#endif
4167
4168#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4169int
4170main ()
4171{
4172 int i;
4173 for (i = 0; i < 256; i++)
4174 if (XOR (islower (i), ISLOWER (i))
4175 || toupper (i) != TOUPPER (i))
dd184caf 4176 return 2;
4177 return 0;
d9898ee8 4178}
4179_ACEOF
4180rm -f conftest$ac_exeext
dd184caf 4181if { (ac_try="$ac_link"
4182case "(($ac_try" in
4183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4184 *) ac_try_echo=$ac_try;;
4185esac
8d138742
CE
4186eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4187$as_echo "$ac_try_echo") >&5
dd184caf 4188 (eval "$ac_link") 2>&5
d9898ee8 4189 ac_status=$?
8d138742 4190 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9898ee8 4191 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
dd184caf 4192 { (case "(($ac_try" in
4193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4194 *) ac_try_echo=$ac_try;;
4195esac
8d138742
CE
4196eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4197$as_echo "$ac_try_echo") >&5
dd184caf 4198 (eval "$ac_try") 2>&5
d9898ee8 4199 ac_status=$?
8d138742 4200 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9898ee8 4201 (exit $ac_status); }; }; then
4202 :
4203else
8d138742
CE
4204 $as_echo "$as_me: program exited with status $ac_status" >&5
4205$as_echo "$as_me: failed program was:" >&5
d9898ee8 4206sed 's/^/| /' conftest.$ac_ext >&5
4207
4208( exit $ac_status )
4209ac_cv_header_stdc=no
4210fi
8d138742 4211rm -rf conftest.dSYM
dd184caf 4212rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d9898ee8 4213fi
dd184caf 4214
4215
d9898ee8 4216fi
4217fi
8d138742
CE
4218{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4219$as_echo "$ac_cv_header_stdc" >&6; }
d9898ee8 4220if test $ac_cv_header_stdc = yes; then
4221
4222cat >>confdefs.h <<\_ACEOF
4223#define STDC_HEADERS 1
4224_ACEOF
4225
4226fi
4227
4228# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4239 inttypes.h stdint.h unistd.h
4240do
8d138742
CE
4241as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4242{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4243$as_echo_n "checking for $ac_header... " >&6; }
dd184caf 4244if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8d138742 4245 $as_echo_n "(cached) " >&6
d9898ee8 4246else
4247 cat >conftest.$ac_ext <<_ACEOF
4248/* confdefs.h. */
4249_ACEOF
4250cat confdefs.h >>conftest.$ac_ext
4251cat >>conftest.$ac_ext <<_ACEOF
4252/* end confdefs.h. */
4253$ac_includes_default
4254
4255#include <$ac_header>
4256_ACEOF
4257rm -f conftest.$ac_objext
dd184caf 4258if { (ac_try="$ac_compile"
4259case "(($ac_try" in
4260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4261 *) ac_try_echo=$ac_try;;
4262esac
8d138742
CE
4263eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4264$as_echo "$ac_try_echo") >&5
dd184caf 4265 (eval "$ac_compile") 2>conftest.er1
d9898ee8 4266 ac_status=$?
4267 grep -v '^ *+' conftest.er1 >conftest.err
4268 rm -f conftest.er1
4269 cat conftest.err >&5
8d138742 4270 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 4271 (exit $ac_status); } && {
4272 test -z "$ac_c_werror_flag" ||
4273 test ! -s conftest.err
4274 } && test -s conftest.$ac_objext; then
d9898ee8 4275 eval "$as_ac_Header=yes"
4276else
8d138742 4277 $as_echo "$as_me: failed program was:" >&5
d9898ee8 4278sed 's/^/| /' conftest.$ac_ext >&5
4279
dd184caf 4280 eval "$as_ac_Header=no"
d9898ee8 4281fi
dd184caf 4282
4283rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 4284fi
8d138742
CE
4285ac_res=`eval 'as_val=${'$as_ac_Header'}
4286 $as_echo "$as_val"'`
4287 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4288$as_echo "$ac_res" >&6; }
4289as_val=`eval 'as_val=${'$as_ac_Header'}
4290 $as_echo "$as_val"'`
4291 if test "x$as_val" = x""yes; then
d9898ee8 4292 cat >>confdefs.h <<_ACEOF
8d138742 4293#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
d9898ee8 4294_ACEOF
4295
4296fi
4297
4298done
4299
4300
8d138742
CE
4301
4302 if test "${ac_cv_header_minix_config_h+set}" = set; then
4303 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4304$as_echo_n "checking for minix/config.h... " >&6; }
d9898ee8 4305if test "${ac_cv_header_minix_config_h+set}" = set; then
8d138742 4306 $as_echo_n "(cached) " >&6
d9898ee8 4307fi
8d138742
CE
4308{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4309$as_echo "$ac_cv_header_minix_config_h" >&6; }
d9898ee8 4310else
4311 # Is the header compilable?
8d138742
CE
4312{ $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4313$as_echo_n "checking minix/config.h usability... " >&6; }
d9898ee8 4314cat >conftest.$ac_ext <<_ACEOF
4315/* confdefs.h. */
4316_ACEOF
4317cat confdefs.h >>conftest.$ac_ext
4318cat >>conftest.$ac_ext <<_ACEOF
4319/* end confdefs.h. */
4320$ac_includes_default
4321#include <minix/config.h>
4322_ACEOF
4323rm -f conftest.$ac_objext
dd184caf 4324if { (ac_try="$ac_compile"
4325case "(($ac_try" in
4326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4327 *) ac_try_echo=$ac_try;;
4328esac
8d138742
CE
4329eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4330$as_echo "$ac_try_echo") >&5
dd184caf 4331 (eval "$ac_compile") 2>conftest.er1
d9898ee8 4332 ac_status=$?
4333 grep -v '^ *+' conftest.er1 >conftest.err
4334 rm -f conftest.er1
4335 cat conftest.err >&5
8d138742 4336 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 4337 (exit $ac_status); } && {
4338 test -z "$ac_c_werror_flag" ||
4339 test ! -s conftest.err
4340 } && test -s conftest.$ac_objext; then
d9898ee8 4341 ac_header_compiler=yes
4342else
8d138742 4343 $as_echo "$as_me: failed program was:" >&5
d9898ee8 4344sed 's/^/| /' conftest.$ac_ext >&5
4345
dd184caf 4346 ac_header_compiler=no
d9898ee8 4347fi
dd184caf 4348
4349rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8d138742
CE
4350{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4351$as_echo "$ac_header_compiler" >&6; }
d9898ee8 4352
4353# Is the header present?
8d138742
CE
4354{ $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4355$as_echo_n "checking minix/config.h presence... " >&6; }
d9898ee8 4356cat >conftest.$ac_ext <<_ACEOF
4357/* confdefs.h. */
4358_ACEOF
4359cat confdefs.h >>conftest.$ac_ext
4360cat >>conftest.$ac_ext <<_ACEOF
4361/* end confdefs.h. */
4362#include <minix/config.h>
4363_ACEOF
dd184caf 4364if { (ac_try="$ac_cpp conftest.$ac_ext"
4365case "(($ac_try" in
4366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4367 *) ac_try_echo=$ac_try;;
4368esac
8d138742
CE
4369eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4370$as_echo "$ac_try_echo") >&5
dd184caf 4371 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 4372 ac_status=$?
4373 grep -v '^ *+' conftest.er1 >conftest.err
4374 rm -f conftest.er1
4375 cat conftest.err >&5
8d138742 4376 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 4377 (exit $ac_status); } >/dev/null && {
4378 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4379 test ! -s conftest.err
4380 }; then
d9898ee8 4381 ac_header_preproc=yes
4382else
8d138742 4383 $as_echo "$as_me: failed program was:" >&5
d9898ee8 4384sed 's/^/| /' conftest.$ac_ext >&5
4385
4386 ac_header_preproc=no
4387fi
dd184caf 4388
d9898ee8 4389rm -f conftest.err conftest.$ac_ext
8d138742
CE
4390{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4391$as_echo "$ac_header_preproc" >&6; }
d9898ee8 4392
4393# So? What about this header?
4394case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4395 yes:no: )
8d138742
CE
4396 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4397$as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4398 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4399$as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
d9898ee8 4400 ac_header_preproc=yes
4401 ;;
4402 no:yes:* )
8d138742
CE
4403 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4404$as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4405 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4406$as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4407 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4408$as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4409 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4410$as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4411 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4412$as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4413 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4414$as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
dd184caf 4415 ( cat <<\_ASBOX
d9898ee8 4416## -------------------------------------------------- ##
4417## Report this to courier-users@lists.sourceforge.net ##
4418## -------------------------------------------------- ##
4419_ASBOX
dd184caf 4420 ) | sed "s/^/$as_me: WARNING: /" >&2
d9898ee8 4421 ;;
4422esac
8d138742
CE
4423{ $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4424$as_echo_n "checking for minix/config.h... " >&6; }
d9898ee8 4425if test "${ac_cv_header_minix_config_h+set}" = set; then
8d138742 4426 $as_echo_n "(cached) " >&6
d9898ee8 4427else
4428 ac_cv_header_minix_config_h=$ac_header_preproc
4429fi
8d138742
CE
4430{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4431$as_echo "$ac_cv_header_minix_config_h" >&6; }
d9898ee8 4432
4433fi
8d138742 4434if test "x$ac_cv_header_minix_config_h" = x""yes; then
d9898ee8 4435 MINIX=yes
4436else
4437 MINIX=
4438fi
4439
4440
8d138742 4441 if test "$MINIX" = yes; then
d9898ee8 4442
4443cat >>confdefs.h <<\_ACEOF
4444#define _POSIX_SOURCE 1
4445_ACEOF
4446
4447
4448cat >>confdefs.h <<\_ACEOF
4449#define _POSIX_1_SOURCE 2
4450_ACEOF
4451
4452
4453cat >>confdefs.h <<\_ACEOF
4454#define _MINIX 1
4455_ACEOF
4456
d9898ee8 4457 fi
d9898ee8 4458
dd184caf 4459
d9898ee8 4460
8d138742
CE
4461 { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4462$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4463if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4464 $as_echo_n "(cached) " >&6
d9898ee8 4465else
8d138742
CE
4466 cat >conftest.$ac_ext <<_ACEOF
4467/* confdefs.h. */
4468_ACEOF
4469cat confdefs.h >>conftest.$ac_ext
4470cat >>conftest.$ac_ext <<_ACEOF
4471/* end confdefs.h. */
4472
4473# define __EXTENSIONS__ 1
4474 $ac_includes_default
4475int
4476main ()
4477{
4478
4479 ;
4480 return 0;
4481}
4482_ACEOF
4483rm -f conftest.$ac_objext
4484if { (ac_try="$ac_compile"
4485case "(($ac_try" in
4486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4487 *) ac_try_echo=$ac_try;;
4488esac
4489eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4490$as_echo "$ac_try_echo") >&5
4491 (eval "$ac_compile") 2>conftest.er1
4492 ac_status=$?
4493 grep -v '^ *+' conftest.er1 >conftest.err
4494 rm -f conftest.er1
4495 cat conftest.err >&5
4496 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4497 (exit $ac_status); } && {
4498 test -z "$ac_c_werror_flag" ||
4499 test ! -s conftest.err
4500 } && test -s conftest.$ac_objext; then
4501 ac_cv_safe_to_define___extensions__=yes
4502else
4503 $as_echo "$as_me: failed program was:" >&5
4504sed 's/^/| /' conftest.$ac_ext >&5
4505
4506 ac_cv_safe_to_define___extensions__=no
4507fi
4508
4509rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4510fi
4511{ $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4512$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4513 test $ac_cv_safe_to_define___extensions__ = yes &&
4514 cat >>confdefs.h <<\_ACEOF
4515#define __EXTENSIONS__ 1
4516_ACEOF
4517
4518 cat >>confdefs.h <<\_ACEOF
4519#define _ALL_SOURCE 1
4520_ACEOF
4521
4522 cat >>confdefs.h <<\_ACEOF
4523#define _GNU_SOURCE 1
4524_ACEOF
4525
4526 cat >>confdefs.h <<\_ACEOF
4527#define _POSIX_PTHREAD_SEMANTICS 1
4528_ACEOF
4529
4530 cat >>confdefs.h <<\_ACEOF
4531#define _TANDEM_SOURCE 1
4532_ACEOF
4533
4534
4535ac_ext=c
4536ac_cpp='$CPP $CPPFLAGS'
4537ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4538ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4539ac_compiler_gnu=$ac_cv_c_compiler_gnu
4540if test -n "$ac_tool_prefix"; then
4541 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4542set dummy ${ac_tool_prefix}gcc; ac_word=$2
4543{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4544$as_echo_n "checking for $ac_word... " >&6; }
4545if test "${ac_cv_prog_CC+set}" = set; then
4546 $as_echo_n "(cached) " >&6
4547else
4548 if test -n "$CC"; then
4549 ac_cv_prog_CC="$CC" # Let the user override the test.
d9898ee8 4550else
4551as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4552for as_dir in $PATH
4553do
4554 IFS=$as_save_IFS
4555 test -z "$as_dir" && as_dir=.
4556 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 4557 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8d138742
CE
4558 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4559 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 4560 break 2
4561 fi
4562done
4563done
dd184caf 4564IFS=$as_save_IFS
d9898ee8 4565
4566fi
4567fi
8d138742
CE
4568CC=$ac_cv_prog_CC
4569if test -n "$CC"; then
4570 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4571$as_echo "$CC" >&6; }
d9898ee8 4572else
8d138742
CE
4573 { $as_echo "$as_me:$LINENO: result: no" >&5
4574$as_echo "no" >&6; }
d9898ee8 4575fi
4576
dd184caf 4577
d9898ee8 4578fi
8d138742
CE
4579if test -z "$ac_cv_prog_CC"; then
4580 ac_ct_CC=$CC
4581 # Extract the first word of "gcc", so it can be a program name with args.
4582set dummy gcc; ac_word=$2
4583{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4584$as_echo_n "checking for $ac_word... " >&6; }
4585if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4586 $as_echo_n "(cached) " >&6
d9898ee8 4587else
8d138742
CE
4588 if test -n "$ac_ct_CC"; then
4589 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
d9898ee8 4590else
4591as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4592for as_dir in $PATH
4593do
4594 IFS=$as_save_IFS
4595 test -z "$as_dir" && as_dir=.
4596 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 4597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8d138742
CE
4598 ac_cv_prog_ac_ct_CC="gcc"
4599 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 4600 break 2
4601 fi
4602done
4603done
dd184caf 4604IFS=$as_save_IFS
d9898ee8 4605
4606fi
4607fi
8d138742
CE
4608ac_ct_CC=$ac_cv_prog_ac_ct_CC
4609if test -n "$ac_ct_CC"; then
4610 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4611$as_echo "$ac_ct_CC" >&6; }
d9898ee8 4612else
8d138742
CE
4613 { $as_echo "$as_me:$LINENO: result: no" >&5
4614$as_echo "no" >&6; }
d9898ee8 4615fi
4616
8d138742
CE
4617 if test "x$ac_ct_CC" = x; then
4618 CC=""
dd184caf 4619 else
4620 case $cross_compiling:$ac_tool_warned in
4621yes:)
8d138742
CE
4622{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4623$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
dd184caf 4624ac_tool_warned=yes ;;
4625esac
8d138742 4626 CC=$ac_ct_CC
dd184caf 4627 fi
8d138742
CE
4628else
4629 CC="$ac_cv_prog_CC"
d9898ee8 4630fi
4631
8d138742
CE
4632if test -z "$CC"; then
4633 if test -n "$ac_tool_prefix"; then
4634 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4635set dummy ${ac_tool_prefix}cc; ac_word=$2
4636{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4637$as_echo_n "checking for $ac_word... " >&6; }
4638if test "${ac_cv_prog_CC+set}" = set; then
4639 $as_echo_n "(cached) " >&6
4640else
4641 if test -n "$CC"; then
4642 ac_cv_prog_CC="$CC" # Let the user override the test.
4643else
4644as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4645for as_dir in $PATH
4646do
4647 IFS=$as_save_IFS
4648 test -z "$as_dir" && as_dir=.
4649 for ac_exec_ext in '' $ac_executable_extensions; do
4650 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4651 ac_cv_prog_CC="${ac_tool_prefix}cc"
4652 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4653 break 2
dd184caf 4654 fi
8d138742
CE
4655done
4656done
4657IFS=$as_save_IFS
d9898ee8 4658
8d138742
CE
4659fi
4660fi
4661CC=$ac_cv_prog_CC
4662if test -n "$CC"; then
4663 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4664$as_echo "$CC" >&6; }
d9898ee8 4665else
8d138742
CE
4666 { $as_echo "$as_me:$LINENO: result: no" >&5
4667$as_echo "no" >&6; }
4668fi
d9898ee8 4669
d9898ee8 4670
8d138742
CE
4671 fi
4672fi
4673if test -z "$CC"; then
4674 # Extract the first word of "cc", so it can be a program name with args.
4675set dummy cc; ac_word=$2
4676{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4677$as_echo_n "checking for $ac_word... " >&6; }
4678if test "${ac_cv_prog_CC+set}" = set; then
4679 $as_echo_n "(cached) " >&6
d9898ee8 4680else
8d138742
CE
4681 if test -n "$CC"; then
4682 ac_cv_prog_CC="$CC" # Let the user override the test.
4683else
4684 ac_prog_rejected=no
4685as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4686for as_dir in $PATH
4687do
4688 IFS=$as_save_IFS
4689 test -z "$as_dir" && as_dir=.
4690 for ac_exec_ext in '' $ac_executable_extensions; do
4691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4692 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4693 ac_prog_rejected=yes
4694 continue
4695 fi
4696 ac_cv_prog_CC="cc"
4697 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4698 break 2
4699 fi
4700done
4701done
4702IFS=$as_save_IFS
d9898ee8 4703
8d138742
CE
4704if test $ac_prog_rejected = yes; then
4705 # We found a bogon in the path, so make sure we never use it.
4706 set dummy $ac_cv_prog_CC
4707 shift
4708 if test $# != 0; then
4709 # We chose a different compiler from the bogus one.
4710 # However, it has the same basename, so the bogon will be chosen
4711 # first if we set CC to just the basename; use the full file name.
4712 shift
4713 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4714 fi
4715fi
4716fi
4717fi
4718CC=$ac_cv_prog_CC
4719if test -n "$CC"; then
4720 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4721$as_echo "$CC" >&6; }
4722else
4723 { $as_echo "$as_me:$LINENO: result: no" >&5
4724$as_echo "no" >&6; }
d9898ee8 4725fi
dd184caf 4726
d9898ee8 4727
4728fi
8d138742
CE
4729if test -z "$CC"; then
4730 if test -n "$ac_tool_prefix"; then
4731 for ac_prog in cl.exe
4732 do
4733 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4734set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4735{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4736$as_echo_n "checking for $ac_word... " >&6; }
4737if test "${ac_cv_prog_CC+set}" = set; then
4738 $as_echo_n "(cached) " >&6
4739else
4740 if test -n "$CC"; then
4741 ac_cv_prog_CC="$CC" # Let the user override the test.
4742else
4743as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4744for as_dir in $PATH
4745do
4746 IFS=$as_save_IFS
4747 test -z "$as_dir" && as_dir=.
4748 for ac_exec_ext in '' $ac_executable_extensions; do
4749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4750 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4751 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4752 break 2
4753 fi
4754done
4755done
4756IFS=$as_save_IFS
4757
4758fi
4759fi
4760CC=$ac_cv_prog_CC
4761if test -n "$CC"; then
4762 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4763$as_echo "$CC" >&6; }
4764else
4765 { $as_echo "$as_me:$LINENO: result: no" >&5
4766$as_echo "no" >&6; }
4767fi
4768
4769
4770 test -n "$CC" && break
4771 done
4772fi
4773if test -z "$CC"; then
4774 ac_ct_CC=$CC
4775 for ac_prog in cl.exe
4776do
4777 # Extract the first word of "$ac_prog", so it can be a program name with args.
4778set dummy $ac_prog; ac_word=$2
4779{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4780$as_echo_n "checking for $ac_word... " >&6; }
4781if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4782 $as_echo_n "(cached) " >&6
4783else
4784 if test -n "$ac_ct_CC"; then
4785 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4786else
4787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4788for as_dir in $PATH
4789do
4790 IFS=$as_save_IFS
4791 test -z "$as_dir" && as_dir=.
4792 for ac_exec_ext in '' $ac_executable_extensions; do
4793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4794 ac_cv_prog_ac_ct_CC="$ac_prog"
4795 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4796 break 2
4797 fi
4798done
4799done
4800IFS=$as_save_IFS
4801
4802fi
4803fi
4804ac_ct_CC=$ac_cv_prog_ac_ct_CC
4805if test -n "$ac_ct_CC"; then
4806 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4807$as_echo "$ac_ct_CC" >&6; }
4808else
4809 { $as_echo "$as_me:$LINENO: result: no" >&5
4810$as_echo "no" >&6; }
4811fi
4812
4813
4814 test -n "$ac_ct_CC" && break
4815done
4816
4817 if test "x$ac_ct_CC" = x; then
4818 CC=""
4819 else
4820 case $cross_compiling:$ac_tool_warned in
4821yes:)
4822{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4823$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4824ac_tool_warned=yes ;;
4825esac
4826 CC=$ac_ct_CC
4827 fi
4828fi
4829
4830fi
4831
4832
4833test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4834$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4835{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4836See \`config.log' for more details." >&5
4837$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
4838See \`config.log' for more details." >&2;}
4839 { (exit 1); exit 1; }; }; }
4840
4841# Provide some information about the compiler.
4842$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
4843set X $ac_compile
4844ac_compiler=$2
4845{ (ac_try="$ac_compiler --version >&5"
4846case "(($ac_try" in
4847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4848 *) ac_try_echo=$ac_try;;
4849esac
4850eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4851$as_echo "$ac_try_echo") >&5
4852 (eval "$ac_compiler --version >&5") 2>&5
4853 ac_status=$?
4854 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4855 (exit $ac_status); }
4856{ (ac_try="$ac_compiler -v >&5"
4857case "(($ac_try" in
4858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4859 *) ac_try_echo=$ac_try;;
4860esac
4861eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4862$as_echo "$ac_try_echo") >&5
4863 (eval "$ac_compiler -v >&5") 2>&5
4864 ac_status=$?
4865 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4866 (exit $ac_status); }
4867{ (ac_try="$ac_compiler -V >&5"
4868case "(($ac_try" in
4869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4870 *) ac_try_echo=$ac_try;;
4871esac
4872eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4873$as_echo "$ac_try_echo") >&5
4874 (eval "$ac_compiler -V >&5") 2>&5
4875 ac_status=$?
4876 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4877 (exit $ac_status); }
4878
4879{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4880$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4881if test "${ac_cv_c_compiler_gnu+set}" = set; then
4882 $as_echo_n "(cached) " >&6
4883else
4884 cat >conftest.$ac_ext <<_ACEOF
4885/* confdefs.h. */
4886_ACEOF
4887cat confdefs.h >>conftest.$ac_ext
4888cat >>conftest.$ac_ext <<_ACEOF
4889/* end confdefs.h. */
4890
4891int
4892main ()
4893{
4894#ifndef __GNUC__
4895 choke me
4896#endif
4897
4898 ;
4899 return 0;
4900}
4901_ACEOF
4902rm -f conftest.$ac_objext
4903if { (ac_try="$ac_compile"
4904case "(($ac_try" in
4905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4906 *) ac_try_echo=$ac_try;;
4907esac
4908eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4909$as_echo "$ac_try_echo") >&5
4910 (eval "$ac_compile") 2>conftest.er1
4911 ac_status=$?
4912 grep -v '^ *+' conftest.er1 >conftest.err
4913 rm -f conftest.er1
4914 cat conftest.err >&5
4915 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4916 (exit $ac_status); } && {
4917 test -z "$ac_c_werror_flag" ||
4918 test ! -s conftest.err
4919 } && test -s conftest.$ac_objext; then
4920 ac_compiler_gnu=yes
4921else
4922 $as_echo "$as_me: failed program was:" >&5
4923sed 's/^/| /' conftest.$ac_ext >&5
4924
4925 ac_compiler_gnu=no
4926fi
4927
4928rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4929ac_cv_c_compiler_gnu=$ac_compiler_gnu
4930
4931fi
4932{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4933$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4934if test $ac_compiler_gnu = yes; then
4935 GCC=yes
4936else
4937 GCC=
4938fi
4939ac_test_CFLAGS=${CFLAGS+set}
4940ac_save_CFLAGS=$CFLAGS
4941{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4942$as_echo_n "checking whether $CC accepts -g... " >&6; }
4943if test "${ac_cv_prog_cc_g+set}" = set; then
4944 $as_echo_n "(cached) " >&6
4945else
4946 ac_save_c_werror_flag=$ac_c_werror_flag
4947 ac_c_werror_flag=yes
4948 ac_cv_prog_cc_g=no
4949 CFLAGS="-g"
dd184caf 4950 cat >conftest.$ac_ext <<_ACEOF
d9898ee8 4951/* confdefs.h. */
4952_ACEOF
4953cat confdefs.h >>conftest.$ac_ext
4954cat >>conftest.$ac_ext <<_ACEOF
4955/* end confdefs.h. */
4956
4957int
4958main ()
4959{
4960
4961 ;
4962 return 0;
4963}
4964_ACEOF
4965rm -f conftest.$ac_objext
dd184caf 4966if { (ac_try="$ac_compile"
4967case "(($ac_try" in
4968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4969 *) ac_try_echo=$ac_try;;
4970esac
8d138742
CE
4971eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4972$as_echo "$ac_try_echo") >&5
dd184caf 4973 (eval "$ac_compile") 2>conftest.er1
d9898ee8 4974 ac_status=$?
4975 grep -v '^ *+' conftest.er1 >conftest.err
4976 rm -f conftest.er1
4977 cat conftest.err >&5
8d138742 4978 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 4979 (exit $ac_status); } && {
8d138742 4980 test -z "$ac_c_werror_flag" ||
dd184caf 4981 test ! -s conftest.err
4982 } && test -s conftest.$ac_objext; then
8d138742 4983 ac_cv_prog_cc_g=yes
d9898ee8 4984else
8d138742 4985 $as_echo "$as_me: failed program was:" >&5
d9898ee8 4986sed 's/^/| /' conftest.$ac_ext >&5
4987
8d138742 4988 CFLAGS=""
dd184caf 4989 cat >conftest.$ac_ext <<_ACEOF
d9898ee8 4990/* confdefs.h. */
4991_ACEOF
4992cat confdefs.h >>conftest.$ac_ext
4993cat >>conftest.$ac_ext <<_ACEOF
4994/* end confdefs.h. */
dd184caf 4995
d9898ee8 4996int
4997main ()
4998{
dd184caf 4999
d9898ee8 5000 ;
5001 return 0;
5002}
5003_ACEOF
5004rm -f conftest.$ac_objext
dd184caf 5005if { (ac_try="$ac_compile"
5006case "(($ac_try" in
5007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5008 *) ac_try_echo=$ac_try;;
5009esac
8d138742
CE
5010eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5011$as_echo "$ac_try_echo") >&5
dd184caf 5012 (eval "$ac_compile") 2>conftest.er1
d9898ee8 5013 ac_status=$?
5014 grep -v '^ *+' conftest.er1 >conftest.err
5015 rm -f conftest.er1
5016 cat conftest.err >&5
8d138742 5017 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 5018 (exit $ac_status); } && {
8d138742 5019 test -z "$ac_c_werror_flag" ||
dd184caf 5020 test ! -s conftest.err
5021 } && test -s conftest.$ac_objext; then
d9898ee8 5022 :
5023else
8d138742 5024 $as_echo "$as_me: failed program was:" >&5
d9898ee8 5025sed 's/^/| /' conftest.$ac_ext >&5
5026
8d138742
CE
5027 ac_c_werror_flag=$ac_save_c_werror_flag
5028 CFLAGS="-g"
dd184caf 5029 cat >conftest.$ac_ext <<_ACEOF
d9898ee8 5030/* confdefs.h. */
5031_ACEOF
5032cat confdefs.h >>conftest.$ac_ext
5033cat >>conftest.$ac_ext <<_ACEOF
5034/* end confdefs.h. */
dd184caf 5035
d9898ee8 5036int
5037main ()
5038{
dd184caf 5039
d9898ee8 5040 ;
5041 return 0;
5042}
5043_ACEOF
5044rm -f conftest.$ac_objext
dd184caf 5045if { (ac_try="$ac_compile"
5046case "(($ac_try" in
5047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5048 *) ac_try_echo=$ac_try;;
5049esac
8d138742
CE
5050eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5051$as_echo "$ac_try_echo") >&5
dd184caf 5052 (eval "$ac_compile") 2>conftest.er1
d9898ee8 5053 ac_status=$?
5054 grep -v '^ *+' conftest.er1 >conftest.err
5055 rm -f conftest.er1
5056 cat conftest.err >&5
8d138742 5057 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 5058 (exit $ac_status); } && {
8d138742 5059 test -z "$ac_c_werror_flag" ||
dd184caf 5060 test ! -s conftest.err
5061 } && test -s conftest.$ac_objext; then
8d138742 5062 ac_cv_prog_cc_g=yes
d9898ee8 5063else
8d138742 5064 $as_echo "$as_me: failed program was:" >&5
d9898ee8 5065sed 's/^/| /' conftest.$ac_ext >&5
5066
dd184caf 5067
d9898ee8 5068fi
dd184caf 5069
5070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5071fi
5072
5073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 5074fi
5075
dd184caf 5076rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8d138742 5077 ac_c_werror_flag=$ac_save_c_werror_flag
dd184caf 5078fi
8d138742
CE
5079{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5080$as_echo "$ac_cv_prog_cc_g" >&6; }
5081if test "$ac_test_CFLAGS" = set; then
5082 CFLAGS=$ac_save_CFLAGS
5083elif test $ac_cv_prog_cc_g = yes; then
5084 if test "$GCC" = yes; then
5085 CFLAGS="-g -O2"
dd184caf 5086 else
8d138742 5087 CFLAGS="-g"
dd184caf 5088 fi
5089else
8d138742
CE
5090 if test "$GCC" = yes; then
5091 CFLAGS="-O2"
dd184caf 5092 else
8d138742 5093 CFLAGS=
dd184caf 5094 fi
5095fi
8d138742
CE
5096{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5097$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5098if test "${ac_cv_prog_cc_c89+set}" = set; then
5099 $as_echo_n "(cached) " >&6
5100else
5101 ac_cv_prog_cc_c89=no
5102ac_save_CC=$CC
5103cat >conftest.$ac_ext <<_ACEOF
5104/* confdefs.h. */
5105_ACEOF
5106cat confdefs.h >>conftest.$ac_ext
5107cat >>conftest.$ac_ext <<_ACEOF
5108/* end confdefs.h. */
5109#include <stdarg.h>
5110#include <stdio.h>
5111#include <sys/types.h>
5112#include <sys/stat.h>
5113/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5114struct buf { int x; };
5115FILE * (*rcsopen) (struct buf *, struct stat *, int);
5116static char *e (p, i)
5117 char **p;
5118 int i;
5119{
5120 return p[i];
5121}
5122static char *f (char * (*g) (char **, int), char **p, ...)
5123{
5124 char *s;
5125 va_list v;
5126 va_start (v,p);
5127 s = g (p, va_arg (v,int));
5128 va_end (v);
5129 return s;
5130}
d9898ee8 5131
8d138742
CE
5132/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5133 function prototypes and stuff, but not '\xHH' hex character constants.
5134 These don't provoke an error unfortunately, instead are silently treated
5135 as 'x'. The following induces an error, until -std is added to get
5136 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5137 array size at least. It's necessary to write '\x00'==0 to get something
5138 that's true only with -std. */
5139int osf4_cc_array ['\x00' == 0 ? 1 : -1];
d9898ee8 5140
8d138742
CE
5141/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5142 inside strings and character constants. */
5143#define FOO(x) 'x'
5144int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5145
5146int test (int i, double x);
5147struct s1 {int (*f) (int a);};
5148struct s2 {int (*f) (double a);};
5149int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5150int argc;
5151char **argv;
5152int
5153main ()
5154{
5155return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5156 ;
5157 return 0;
5158}
5159_ACEOF
5160for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5161 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5162do
5163 CC="$ac_save_CC $ac_arg"
5164 rm -f conftest.$ac_objext
5165if { (ac_try="$ac_compile"
5166case "(($ac_try" in
5167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5168 *) ac_try_echo=$ac_try;;
5169esac
5170eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5171$as_echo "$ac_try_echo") >&5
5172 (eval "$ac_compile") 2>conftest.er1
5173 ac_status=$?
5174 grep -v '^ *+' conftest.er1 >conftest.err
5175 rm -f conftest.er1
5176 cat conftest.err >&5
5177 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5178 (exit $ac_status); } && {
5179 test -z "$ac_c_werror_flag" ||
5180 test ! -s conftest.err
5181 } && test -s conftest.$ac_objext; then
5182 ac_cv_prog_cc_c89=$ac_arg
5183else
5184 $as_echo "$as_me: failed program was:" >&5
5185sed 's/^/| /' conftest.$ac_ext >&5
5186
5187
5188fi
5189
5190rm -f core conftest.err conftest.$ac_objext
5191 test "x$ac_cv_prog_cc_c89" != "xno" && break
5192done
5193rm -f conftest.$ac_ext
5194CC=$ac_save_CC
5195
5196fi
5197# AC_CACHE_VAL
5198case "x$ac_cv_prog_cc_c89" in
5199 x)
5200 { $as_echo "$as_me:$LINENO: result: none needed" >&5
5201$as_echo "none needed" >&6; } ;;
5202 xno)
5203 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
5204$as_echo "unsupported" >&6; } ;;
5205 *)
5206 CC="$CC $ac_cv_prog_cc_c89"
5207 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5208$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5209esac
5210
5211
5212ac_ext=c
5213ac_cpp='$CPP $CPPFLAGS'
5214ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5215ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5216ac_compiler_gnu=$ac_cv_c_compiler_gnu
5217
5218depcc="$CC" am_compiler_list=
5219
5220{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5221$as_echo_n "checking dependency style of $depcc... " >&6; }
5222if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5223 $as_echo_n "(cached) " >&6
d9898ee8 5224else
5225 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5226 # We make a subdir and do the tests there. Otherwise we can end up
5227 # making bogus files that we don't know about and never remove. For
5228 # instance it was reported that on HP-UX the gcc test will end up
5229 # making a dummy file named `D' -- because `-MD' means `put the output
5230 # in D'.
5231 mkdir conftest.dir
5232 # Copy depcomp to subdir because otherwise we won't find it if we're
5233 # using a relative directory.
5234 cp "$am_depcomp" conftest.dir
5235 cd conftest.dir
5236 # We will build objects and dependencies in a subdirectory because
5237 # it helps to detect inapplicable dependency modes. For instance
5238 # both Tru64's cc and ICC support -MD to output dependencies as a
5239 # side effect of compilation, but ICC will put the dependencies in
5240 # the current directory while Tru64 will put them in the object
5241 # directory.
5242 mkdir sub
5243
8d138742 5244 am_cv_CC_dependencies_compiler_type=none
d9898ee8 5245 if test "$am_compiler_list" = ""; then
5246 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5247 fi
8d138742
CE
5248 am__universal=false
5249 case " $depcc " in #(
5250 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5251 esac
5252
d9898ee8 5253 for depmode in $am_compiler_list; do
5254 # Setup a source with many dependencies, because some compilers
5255 # like to wrap large dependency lists on column 80 (with \), and
5256 # we should not choose a depcomp mode which is confused by this.
5257 #
5258 # We need to recreate these files for each test, as the compiler may
5259 # overwrite some of them when testing with obscure command lines.
5260 # This happens at least with the AIX C compiler.
5261 : > sub/conftest.c
5262 for i in 1 2 3 4 5 6; do
5263 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5264 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5265 # Solaris 8's {/usr,}/bin/sh.
5266 touch sub/conftst$i.h
5267 done
5268 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5269
8d138742
CE
5270 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5271 # mode. It turns out that the SunPro C++ compiler does not properly
5272 # handle `-M -o', and we need to detect this. Also, some Intel
5273 # versions had trouble with output in subdirs
5274 am__obj=sub/conftest.${OBJEXT-o}
5275 am__minus_obj="-o $am__obj"
d9898ee8 5276 case $depmode in
8d138742
CE
5277 gcc)
5278 # This depmode causes a compiler race in universal mode.
5279 test "$am__universal" = false || continue
5280 ;;
d9898ee8 5281 nosideeffect)
5282 # after this tag, mechanisms are not by side-effect, so they'll
5283 # only be used when explicitly requested
5284 if test "x$enable_dependency_tracking" = xyes; then
5285 continue
5286 else
5287 break
5288 fi
5289 ;;
8d138742
CE
5290 msvisualcpp | msvcmsys)
5291 # This compiler won't grok `-c -o', but also, the minuso test has
5292 # not run yet. These depmodes are late enough in the game, and
5293 # so weak that their functioning should not be impacted.
5294 am__obj=conftest.${OBJEXT-o}
5295 am__minus_obj=
5296 ;;
d9898ee8 5297 none) break ;;
5298 esac
d9898ee8 5299 if depmode=$depmode \
8d138742 5300 source=sub/conftest.c object=$am__obj \
d9898ee8 5301 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8d138742 5302 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
d9898ee8 5303 >/dev/null 2>conftest.err &&
dd184caf 5304 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
d9898ee8 5305 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8d138742 5306 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
d9898ee8 5307 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5308 # icc doesn't choke on unknown options, it will just issue warnings
5309 # or remarks (even with -Werror). So we grep stderr for any message
5310 # that says an option was ignored or not supported.
5311 # When given -MP, icc 7.0 and 7.1 complain thusly:
5312 # icc: Command line warning: ignoring option '-M'; no argument required
5313 # The diagnosis changed in icc 8.0:
5314 # icc: Command line remark: option '-MP' not supported
5315 if (grep 'ignoring option' conftest.err ||
5316 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8d138742 5317 am_cv_CC_dependencies_compiler_type=$depmode
d9898ee8 5318 break
5319 fi
5320 fi
5321 done
5322
5323 cd ..
5324 rm -rf conftest.dir
5325else
8d138742 5326 am_cv_CC_dependencies_compiler_type=none
d9898ee8 5327fi
5328
5329fi
8d138742
CE
5330{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5331$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5332CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
d9898ee8 5333
dd184caf 5334 if
d9898ee8 5335 test "x$enable_dependency_tracking" != xno \
8d138742
CE
5336 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5337 am__fastdepCC_TRUE=
5338 am__fastdepCC_FALSE='#'
d9898ee8 5339else
8d138742
CE
5340 am__fastdepCC_TRUE='#'
5341 am__fastdepCC_FALSE=
d9898ee8 5342fi
5343
5344
8d138742
CE
5345for ac_prog in gawk mawk nawk awk
5346do
5347 # Extract the first word of "$ac_prog", so it can be a program name with args.
5348set dummy $ac_prog; ac_word=$2
5349{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5350$as_echo_n "checking for $ac_word... " >&6; }
5351if test "${ac_cv_prog_AWK+set}" = set; then
5352 $as_echo_n "(cached) " >&6
d9898ee8 5353else
8d138742
CE
5354 if test -n "$AWK"; then
5355 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5356else
5357as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5358for as_dir in $PATH
5359do
5360 IFS=$as_save_IFS
5361 test -z "$as_dir" && as_dir=.
5362 for ac_exec_ext in '' $ac_executable_extensions; do
5363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5364 ac_cv_prog_AWK="$ac_prog"
5365 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5366 break 2
5367 fi
5368done
5369done
5370IFS=$as_save_IFS
d9898ee8 5371
8d138742
CE
5372fi
5373fi
5374AWK=$ac_cv_prog_AWK
5375if test -n "$AWK"; then
5376 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
5377$as_echo "$AWK" >&6; }
5378else
5379 { $as_echo "$as_me:$LINENO: result: no" >&5
5380$as_echo "no" >&6; }
5381fi
5382
5383
5384 test -n "$AWK" && break
5385done
5386
5387ac_ext=cpp
5388ac_cpp='$CXXCPP $CPPFLAGS'
5389ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5390ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5391ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5392if test -z "$CXX"; then
5393 if test -n "$CCC"; then
5394 CXX=$CCC
dd184caf 5395 else
8d138742
CE
5396 if test -n "$ac_tool_prefix"; then
5397 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5398 do
5399 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5400set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5401{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5402$as_echo_n "checking for $ac_word... " >&6; }
5403if test "${ac_cv_prog_CXX+set}" = set; then
5404 $as_echo_n "(cached) " >&6
5405else
5406 if test -n "$CXX"; then
5407 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5408else
5409as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5410for as_dir in $PATH
5411do
5412 IFS=$as_save_IFS
5413 test -z "$as_dir" && as_dir=.
5414 for ac_exec_ext in '' $ac_executable_extensions; do
5415 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5416 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5417 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5418 break 2
dd184caf 5419 fi
8d138742
CE
5420done
5421done
5422IFS=$as_save_IFS
5423
5424fi
5425fi
5426CXX=$ac_cv_prog_CXX
5427if test -n "$CXX"; then
5428 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
5429$as_echo "$CXX" >&6; }
d9898ee8 5430else
8d138742
CE
5431 { $as_echo "$as_me:$LINENO: result: no" >&5
5432$as_echo "no" >&6; }
5433fi
d9898ee8 5434
dd184caf 5435
8d138742
CE
5436 test -n "$CXX" && break
5437 done
d9898ee8 5438fi
8d138742
CE
5439if test -z "$CXX"; then
5440 ac_ct_CXX=$CXX
5441 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5442do
5443 # Extract the first word of "$ac_prog", so it can be a program name with args.
5444set dummy $ac_prog; ac_word=$2
5445{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5446$as_echo_n "checking for $ac_word... " >&6; }
5447if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5448 $as_echo_n "(cached) " >&6
5449else
5450 if test -n "$ac_ct_CXX"; then
5451 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5452else
5453as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5454for as_dir in $PATH
5455do
5456 IFS=$as_save_IFS
5457 test -z "$as_dir" && as_dir=.
5458 for ac_exec_ext in '' $ac_executable_extensions; do
5459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5460 ac_cv_prog_ac_ct_CXX="$ac_prog"
5461 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5462 break 2
5463 fi
5464done
5465done
5466IFS=$as_save_IFS
dd184caf 5467
d9898ee8 5468fi
d9898ee8 5469fi
8d138742
CE
5470ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5471if test -n "$ac_ct_CXX"; then
5472 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5473$as_echo "$ac_ct_CXX" >&6; }
5474else
5475 { $as_echo "$as_me:$LINENO: result: no" >&5
5476$as_echo "no" >&6; }
dd184caf 5477fi
d9898ee8 5478
dd184caf 5479
8d138742
CE
5480 test -n "$ac_ct_CXX" && break
5481done
d9898ee8 5482
8d138742
CE
5483 if test "x$ac_ct_CXX" = x; then
5484 CXX="g++"
5485 else
5486 case $cross_compiling:$ac_tool_warned in
5487yes:)
5488{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5489$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5490ac_tool_warned=yes ;;
5491esac
5492 CXX=$ac_ct_CXX
5493 fi
dd184caf 5494fi
5495
8d138742 5496 fi
dd184caf 5497fi
8d138742
CE
5498# Provide some information about the compiler.
5499$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5500set X $ac_compile
5501ac_compiler=$2
5502{ (ac_try="$ac_compiler --version >&5"
5503case "(($ac_try" in
5504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5505 *) ac_try_echo=$ac_try;;
5506esac
5507eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5508$as_echo "$ac_try_echo") >&5
5509 (eval "$ac_compiler --version >&5") 2>&5
5510 ac_status=$?
5511 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5512 (exit $ac_status); }
5513{ (ac_try="$ac_compiler -v >&5"
5514case "(($ac_try" in
5515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5516 *) ac_try_echo=$ac_try;;
5517esac
5518eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5519$as_echo "$ac_try_echo") >&5
5520 (eval "$ac_compiler -v >&5") 2>&5
5521 ac_status=$?
5522 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5523 (exit $ac_status); }
5524{ (ac_try="$ac_compiler -V >&5"
5525case "(($ac_try" in
5526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5527 *) ac_try_echo=$ac_try;;
5528esac
5529eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5530$as_echo "$ac_try_echo") >&5
5531 (eval "$ac_compiler -V >&5") 2>&5
5532 ac_status=$?
5533 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5534 (exit $ac_status); }
dd184caf 5535
8d138742
CE
5536{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5537$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5538if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5539 $as_echo_n "(cached) " >&6
5540else
5541 cat >conftest.$ac_ext <<_ACEOF
5542/* confdefs.h. */
5543_ACEOF
5544cat confdefs.h >>conftest.$ac_ext
5545cat >>conftest.$ac_ext <<_ACEOF
5546/* end confdefs.h. */
d9898ee8 5547
8d138742
CE
5548int
5549main ()
5550{
5551#ifndef __GNUC__
5552 choke me
5553#endif
d9898ee8 5554
8d138742
CE
5555 ;
5556 return 0;
5557}
5558_ACEOF
5559rm -f conftest.$ac_objext
5560if { (ac_try="$ac_compile"
5561case "(($ac_try" in
5562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5563 *) ac_try_echo=$ac_try;;
5564esac
5565eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5566$as_echo "$ac_try_echo") >&5
5567 (eval "$ac_compile") 2>conftest.er1
5568 ac_status=$?
5569 grep -v '^ *+' conftest.er1 >conftest.err
5570 rm -f conftest.er1
5571 cat conftest.err >&5
5572 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5573 (exit $ac_status); } && {
5574 test -z "$ac_cxx_werror_flag" ||
5575 test ! -s conftest.err
5576 } && test -s conftest.$ac_objext; then
5577 ac_compiler_gnu=yes
d9898ee8 5578else
8d138742
CE
5579 $as_echo "$as_me: failed program was:" >&5
5580sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 5581
8d138742 5582 ac_compiler_gnu=no
d9898ee8 5583fi
dd184caf 5584
8d138742
CE
5585rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5586ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
dd184caf 5587
dd184caf 5588fi
8d138742
CE
5589{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5590$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5591if test $ac_compiler_gnu = yes; then
5592 GXX=yes
5593else
5594 GXX=
d9898ee8 5595fi
8d138742
CE
5596ac_test_CXXFLAGS=${CXXFLAGS+set}
5597ac_save_CXXFLAGS=$CXXFLAGS
5598{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5599$as_echo_n "checking whether $CXX accepts -g... " >&6; }
5600if test "${ac_cv_prog_cxx_g+set}" = set; then
5601 $as_echo_n "(cached) " >&6
d9898ee8 5602else
8d138742
CE
5603 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5604 ac_cxx_werror_flag=yes
5605 ac_cv_prog_cxx_g=no
5606 CXXFLAGS="-g"
5607 cat >conftest.$ac_ext <<_ACEOF
5608/* confdefs.h. */
5609_ACEOF
5610cat confdefs.h >>conftest.$ac_ext
5611cat >>conftest.$ac_ext <<_ACEOF
5612/* end confdefs.h. */
d9898ee8 5613
8d138742
CE
5614int
5615main ()
5616{
d9898ee8 5617
8d138742
CE
5618 ;
5619 return 0;
5620}
5621_ACEOF
5622rm -f conftest.$ac_objext
5623if { (ac_try="$ac_compile"
5624case "(($ac_try" in
5625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5626 *) ac_try_echo=$ac_try;;
5627esac
5628eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5629$as_echo "$ac_try_echo") >&5
5630 (eval "$ac_compile") 2>conftest.er1
5631 ac_status=$?
5632 grep -v '^ *+' conftest.er1 >conftest.err
5633 rm -f conftest.er1
5634 cat conftest.err >&5
5635 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5636 (exit $ac_status); } && {
5637 test -z "$ac_cxx_werror_flag" ||
5638 test ! -s conftest.err
5639 } && test -s conftest.$ac_objext; then
5640 ac_cv_prog_cxx_g=yes
5641else
5642 $as_echo "$as_me: failed program was:" >&5
5643sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 5644
8d138742
CE
5645 CXXFLAGS=""
5646 cat >conftest.$ac_ext <<_ACEOF
5647/* confdefs.h. */
5648_ACEOF
5649cat confdefs.h >>conftest.$ac_ext
5650cat >>conftest.$ac_ext <<_ACEOF
5651/* end confdefs.h. */
d9898ee8 5652
8d138742
CE
5653int
5654main ()
5655{
d9898ee8 5656
8d138742
CE
5657 ;
5658 return 0;
5659}
5660_ACEOF
5661rm -f conftest.$ac_objext
5662if { (ac_try="$ac_compile"
5663case "(($ac_try" in
5664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5665 *) ac_try_echo=$ac_try;;
5666esac
5667eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5668$as_echo "$ac_try_echo") >&5
5669 (eval "$ac_compile") 2>conftest.er1
5670 ac_status=$?
5671 grep -v '^ *+' conftest.er1 >conftest.err
5672 rm -f conftest.er1
5673 cat conftest.err >&5
5674 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5675 (exit $ac_status); } && {
5676 test -z "$ac_cxx_werror_flag" ||
5677 test ! -s conftest.err
5678 } && test -s conftest.$ac_objext; then
5679 :
d9898ee8 5680else
8d138742
CE
5681 $as_echo "$as_me: failed program was:" >&5
5682sed 's/^/| /' conftest.$ac_ext >&5
dd184caf 5683
8d138742
CE
5684 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5685 CXXFLAGS="-g"
5686 cat >conftest.$ac_ext <<_ACEOF
5687/* confdefs.h. */
5688_ACEOF
5689cat confdefs.h >>conftest.$ac_ext
5690cat >>conftest.$ac_ext <<_ACEOF
5691/* end confdefs.h. */
5692
5693int
5694main ()
5695{
5696
5697 ;
5698 return 0;
5699}
5700_ACEOF
5701rm -f conftest.$ac_objext
5702if { (ac_try="$ac_compile"
5703case "(($ac_try" in
5704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5705 *) ac_try_echo=$ac_try;;
5706esac
5707eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5708$as_echo "$ac_try_echo") >&5
5709 (eval "$ac_compile") 2>conftest.er1
5710 ac_status=$?
5711 grep -v '^ *+' conftest.er1 >conftest.err
5712 rm -f conftest.er1
5713 cat conftest.err >&5
5714 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5715 (exit $ac_status); } && {
5716 test -z "$ac_cxx_werror_flag" ||
5717 test ! -s conftest.err
5718 } && test -s conftest.$ac_objext; then
5719 ac_cv_prog_cxx_g=yes
d9898ee8 5720else
8d138742
CE
5721 $as_echo "$as_me: failed program was:" >&5
5722sed 's/^/| /' conftest.$ac_ext >&5
5723
5724
d9898ee8 5725fi
8d138742
CE
5726
5727rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 5728fi
8d138742
CE
5729
5730rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 5731fi
5732
8d138742
CE
5733rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5734 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
d9898ee8 5735fi
8d138742
CE
5736{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5737$as_echo "$ac_cv_prog_cxx_g" >&6; }
5738if test "$ac_test_CXXFLAGS" = set; then
5739 CXXFLAGS=$ac_save_CXXFLAGS
5740elif test $ac_cv_prog_cxx_g = yes; then
5741 if test "$GXX" = yes; then
5742 CXXFLAGS="-g -O2"
5743 else
5744 CXXFLAGS="-g"
5745 fi
d9898ee8 5746else
8d138742
CE
5747 if test "$GXX" = yes; then
5748 CXXFLAGS="-O2"
5749 else
5750 CXXFLAGS=
5751 fi
d9898ee8 5752fi
8d138742
CE
5753ac_ext=c
5754ac_cpp='$CPP $CPPFLAGS'
5755ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5756ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5757ac_compiler_gnu=$ac_cv_c_compiler_gnu
d9898ee8 5758
8d138742 5759depcc="$CXX" am_compiler_list=
d9898ee8 5760
8d138742
CE
5761{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5762$as_echo_n "checking dependency style of $depcc... " >&6; }
5763if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5764 $as_echo_n "(cached) " >&6
d9898ee8 5765else
8d138742
CE
5766 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5767 # We make a subdir and do the tests there. Otherwise we can end up
5768 # making bogus files that we don't know about and never remove. For
5769 # instance it was reported that on HP-UX the gcc test will end up
5770 # making a dummy file named `D' -- because `-MD' means `put the output
5771 # in D'.
5772 mkdir conftest.dir
5773 # Copy depcomp to subdir because otherwise we won't find it if we're
5774 # using a relative directory.
5775 cp "$am_depcomp" conftest.dir
5776 cd conftest.dir
5777 # We will build objects and dependencies in a subdirectory because
5778 # it helps to detect inapplicable dependency modes. For instance
5779 # both Tru64's cc and ICC support -MD to output dependencies as a
5780 # side effect of compilation, but ICC will put the dependencies in
5781 # the current directory while Tru64 will put them in the object
5782 # directory.
5783 mkdir sub
d9898ee8 5784
8d138742
CE
5785 am_cv_CXX_dependencies_compiler_type=none
5786 if test "$am_compiler_list" = ""; then
5787 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
d9898ee8 5788 fi
8d138742
CE
5789 am__universal=false
5790 case " $depcc " in #(
5791 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5792 esac
5793
5794 for depmode in $am_compiler_list; do
5795 # Setup a source with many dependencies, because some compilers
5796 # like to wrap large dependency lists on column 80 (with \), and
5797 # we should not choose a depcomp mode which is confused by this.
5798 #
5799 # We need to recreate these files for each test, as the compiler may
5800 # overwrite some of them when testing with obscure command lines.
5801 # This happens at least with the AIX C compiler.
5802 : > sub/conftest.c
5803 for i in 1 2 3 4 5 6; do
5804 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5805 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5806 # Solaris 8's {/usr,}/bin/sh.
5807 touch sub/conftst$i.h
d9898ee8 5808 done
8d138742 5809 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
d9898ee8 5810
8d138742
CE
5811 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5812 # mode. It turns out that the SunPro C++ compiler does not properly
5813 # handle `-M -o', and we need to detect this. Also, some Intel
5814 # versions had trouble with output in subdirs
5815 am__obj=sub/conftest.${OBJEXT-o}
5816 am__minus_obj="-o $am__obj"
5817 case $depmode in
5818 gcc)
5819 # This depmode causes a compiler race in universal mode.
5820 test "$am__universal" = false || continue
5821 ;;
5822 nosideeffect)
5823 # after this tag, mechanisms are not by side-effect, so they'll
5824 # only be used when explicitly requested
5825 if test "x$enable_dependency_tracking" = xyes; then
5826 continue
5827 else
5828 break
5829 fi
5830 ;;
5831 msvisualcpp | msvcmsys)
5832 # This compiler won't grok `-c -o', but also, the minuso test has
5833 # not run yet. These depmodes are late enough in the game, and
5834 # so weak that their functioning should not be impacted.
5835 am__obj=conftest.${OBJEXT-o}
5836 am__minus_obj=
5837 ;;
5838 none) break ;;
5839 esac
5840 if depmode=$depmode \
5841 source=sub/conftest.c object=$am__obj \
5842 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5843 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5844 >/dev/null 2>conftest.err &&
5845 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5846 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5847 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5848 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5849 # icc doesn't choke on unknown options, it will just issue warnings
5850 # or remarks (even with -Werror). So we grep stderr for any message
5851 # that says an option was ignored or not supported.
5852 # When given -MP, icc 7.0 and 7.1 complain thusly:
5853 # icc: Command line warning: ignoring option '-M'; no argument required
5854 # The diagnosis changed in icc 8.0:
5855 # icc: Command line remark: option '-MP' not supported
5856 if (grep 'ignoring option' conftest.err ||
5857 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5858 am_cv_CXX_dependencies_compiler_type=$depmode
5859 break
5860 fi
5861 fi
5862 done
d9898ee8 5863
8d138742
CE
5864 cd ..
5865 rm -rf conftest.dir
d9898ee8 5866else
8d138742
CE
5867 am_cv_CXX_dependencies_compiler_type=none
5868fi
d9898ee8 5869
8d138742
CE
5870fi
5871{ $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5872$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5873CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
d9898ee8 5874
8d138742
CE
5875 if
5876 test "x$enable_dependency_tracking" != xno \
5877 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5878 am__fastdepCXX_TRUE=
5879 am__fastdepCXX_FALSE='#'
5880else
5881 am__fastdepCXX_TRUE='#'
5882 am__fastdepCXX_FALSE=
5883fi
d9898ee8 5884
d9898ee8 5885
8d138742
CE
5886{ $as_echo "$as_me:$LINENO: checking for library containing strerror" >&5
5887$as_echo_n "checking for library containing strerror... " >&6; }
5888if test "${ac_cv_search_strerror+set}" = set; then
5889 $as_echo_n "(cached) " >&6
5890else
5891 ac_func_search_save_LIBS=$LIBS
5892cat >conftest.$ac_ext <<_ACEOF
5893/* confdefs.h. */
5894_ACEOF
5895cat confdefs.h >>conftest.$ac_ext
5896cat >>conftest.$ac_ext <<_ACEOF
5897/* end confdefs.h. */
d9898ee8 5898
8d138742
CE
5899/* Override any GCC internal prototype to avoid an error.
5900 Use char because int might match the return type of a GCC
5901 builtin and then its argument prototype would still apply. */
5902#ifdef __cplusplus
5903extern "C"
5904#endif
5905char strerror ();
5906int
5907main ()
5908{
5909return strerror ();
5910 ;
5911 return 0;
5912}
5913_ACEOF
5914for ac_lib in '' cposix; do
5915 if test -z "$ac_lib"; then
5916 ac_res="none required"
ac40fd9e 5917 else
8d138742
CE
5918 ac_res=-l$ac_lib
5919 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
ac40fd9e 5920 fi
8d138742
CE
5921 rm -f conftest.$ac_objext conftest$ac_exeext
5922if { (ac_try="$ac_link"
5923case "(($ac_try" in
5924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5925 *) ac_try_echo=$ac_try;;
5926esac
5927eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5928$as_echo "$ac_try_echo") >&5
5929 (eval "$ac_link") 2>conftest.er1
5930 ac_status=$?
5931 grep -v '^ *+' conftest.er1 >conftest.err
5932 rm -f conftest.er1
5933 cat conftest.err >&5
5934 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5935 (exit $ac_status); } && {
5936 test -z "$ac_c_werror_flag" ||
5937 test ! -s conftest.err
5938 } && test -s conftest$ac_exeext && {
5939 test "$cross_compiling" = yes ||
5940 $as_test_x conftest$ac_exeext
5941 }; then
5942 ac_cv_search_strerror=$ac_res
5943else
5944 $as_echo "$as_me: failed program was:" >&5
5945sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 5946
d9898ee8 5947
8d138742 5948fi
d9898ee8 5949
8d138742
CE
5950rm -rf conftest.dSYM
5951rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5952 conftest$ac_exeext
5953 if test "${ac_cv_search_strerror+set}" = set; then
5954 break
5955fi
5956done
5957if test "${ac_cv_search_strerror+set}" = set; then
5958 :
5959else
5960 ac_cv_search_strerror=no
5961fi
5962rm conftest.$ac_ext
5963LIBS=$ac_func_search_save_LIBS
5964fi
5965{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
5966$as_echo "$ac_cv_search_strerror" >&6; }
5967ac_res=$ac_cv_search_strerror
5968if test "$ac_res" != no; then
5969 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
d9898ee8 5970
8d138742 5971fi
d9898ee8 5972
8d138742
CE
5973case `pwd` in
5974 *\ * | *\ *)
5975 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5976$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5977esac
d9898ee8 5978
d9898ee8 5979
d9898ee8 5980
8d138742
CE
5981macro_version='2.2.6'
5982macro_revision='1.3012'
d9898ee8 5983
d9898ee8 5984
d9898ee8 5985
d9898ee8 5986
d9898ee8 5987
ac40fd9e 5988
d9898ee8 5989
d9898ee8 5990
d9898ee8 5991
d9898ee8 5992
5993
5994
5995
8d138742 5996ltmain="$ac_aux_dir/ltmain.sh"
d9898ee8 5997
8d138742
CE
5998# Make sure we can run config.sub.
5999$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6000 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
6001$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
6002 { (exit 1); exit 1; }; }
d9898ee8 6003
8d138742
CE
6004{ $as_echo "$as_me:$LINENO: checking build system type" >&5
6005$as_echo_n "checking build system type... " >&6; }
6006if test "${ac_cv_build+set}" = set; then
6007 $as_echo_n "(cached) " >&6
6008else
6009 ac_build_alias=$build_alias
6010test "x$ac_build_alias" = x &&
6011 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6012test "x$ac_build_alias" = x &&
6013 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
6014$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
6015 { (exit 1); exit 1; }; }
6016ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6017 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
6018$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
6019 { (exit 1); exit 1; }; }
d9898ee8 6020
dd184caf 6021fi
8d138742
CE
6022{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
6023$as_echo "$ac_cv_build" >&6; }
6024case $ac_cv_build in
6025*-*-*) ;;
6026*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
6027$as_echo "$as_me: error: invalid value of canonical build" >&2;}
6028 { (exit 1); exit 1; }; };;
6029esac
6030build=$ac_cv_build
6031ac_save_IFS=$IFS; IFS='-'
6032set x $ac_cv_build
6033shift
6034build_cpu=$1
6035build_vendor=$2
6036shift; shift
6037# Remember, the first character of IFS is used to create $*,
6038# except with old shells:
6039build_os=$*
6040IFS=$ac_save_IFS
6041case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
d9898ee8 6042
d9898ee8 6043
8d138742
CE
6044{ $as_echo "$as_me:$LINENO: checking host system type" >&5
6045$as_echo_n "checking host system type... " >&6; }
6046if test "${ac_cv_host+set}" = set; then
6047 $as_echo_n "(cached) " >&6
d9898ee8 6048else
8d138742
CE
6049 if test "x$host_alias" = x; then
6050 ac_cv_host=$ac_cv_build
6051else
6052 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6053 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
6054$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
6055 { (exit 1); exit 1; }; }
6056fi
d9898ee8 6057
8d138742
CE
6058fi
6059{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
6060$as_echo "$ac_cv_host" >&6; }
6061case $ac_cv_host in
6062*-*-*) ;;
6063*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
6064$as_echo "$as_me: error: invalid value of canonical host" >&2;}
6065 { (exit 1); exit 1; }; };;
6066esac
6067host=$ac_cv_host
6068ac_save_IFS=$IFS; IFS='-'
6069set x $ac_cv_host
6070shift
6071host_cpu=$1
6072host_vendor=$2
6073shift; shift
6074# Remember, the first character of IFS is used to create $*,
6075# except with old shells:
6076host_os=$*
6077IFS=$ac_save_IFS
6078case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
d9898ee8 6079
d9898ee8 6080
8d138742
CE
6081{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6082$as_echo_n "checking for a sed that does not truncate output... " >&6; }
6083if test "${ac_cv_path_SED+set}" = set; then
6084 $as_echo_n "(cached) " >&6
6085else
6086 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6087 for ac_i in 1 2 3 4 5 6 7; do
6088 ac_script="$ac_script$as_nl$ac_script"
6089 done
6090 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6091 $as_unset ac_script || ac_script=
6092 if test -z "$SED"; then
6093 ac_path_SED_found=false
6094 # Loop through the user's path and test for each of PROGNAME-LIST
6095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6096for as_dir in $PATH
6097do
6098 IFS=$as_save_IFS
6099 test -z "$as_dir" && as_dir=.
6100 for ac_prog in sed gsed; do
6101 for ac_exec_ext in '' $ac_executable_extensions; do
6102 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6103 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6104# Check for GNU ac_path_SED and select it if it is found.
6105 # Check for GNU $ac_path_SED
6106case `"$ac_path_SED" --version 2>&1` in
6107*GNU*)
6108 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6109*)
6110 ac_count=0
6111 $as_echo_n 0123456789 >"conftest.in"
6112 while :
6113 do
6114 cat "conftest.in" "conftest.in" >"conftest.tmp"
6115 mv "conftest.tmp" "conftest.in"
6116 cp "conftest.in" "conftest.nl"
6117 $as_echo '' >> "conftest.nl"
6118 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6119 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6120 ac_count=`expr $ac_count + 1`
6121 if test $ac_count -gt ${ac_path_SED_max-0}; then
6122 # Best one so far, save it but keep looking for a better one
6123 ac_cv_path_SED="$ac_path_SED"
6124 ac_path_SED_max=$ac_count
6125 fi
6126 # 10*(2^10) chars as input seems more than enough
6127 test $ac_count -gt 10 && break
6128 done
6129 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
dd184caf 6130esac
8d138742
CE
6131
6132 $ac_path_SED_found && break 3
6133 done
6134 done
6135done
6136IFS=$as_save_IFS
6137 if test -z "$ac_cv_path_SED"; then
6138 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
6139$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
6140 { (exit 1); exit 1; }; }
6141 fi
d9898ee8 6142else
8d138742
CE
6143 ac_cv_path_SED=$SED
6144fi
d9898ee8 6145
d9898ee8 6146fi
8d138742
CE
6147{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
6148$as_echo "$ac_cv_path_SED" >&6; }
6149 SED="$ac_cv_path_SED"
6150 rm -f conftest.sed
dd184caf 6151
8d138742
CE
6152test -z "$SED" && SED=sed
6153Xsed="$SED -e 1s/^X//"
d9898ee8 6154
d9898ee8 6155
6156
d9898ee8 6157
d9898ee8 6158
6159
6160
8d138742
CE
6161
6162
6163
6164
6165{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5
6166$as_echo_n "checking for fgrep... " >&6; }
6167if test "${ac_cv_path_FGREP+set}" = set; then
6168 $as_echo_n "(cached) " >&6
d9898ee8 6169else
8d138742
CE
6170 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6171 then ac_cv_path_FGREP="$GREP -F"
6172 else
6173 if test -z "$FGREP"; then
6174 ac_path_FGREP_found=false
6175 # Loop through the user's path and test for each of PROGNAME-LIST
6176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6177for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6178do
6179 IFS=$as_save_IFS
6180 test -z "$as_dir" && as_dir=.
6181 for ac_prog in fgrep; do
6182 for ac_exec_ext in '' $ac_executable_extensions; do
6183 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6184 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6185# Check for GNU ac_path_FGREP and select it if it is found.
6186 # Check for GNU $ac_path_FGREP
6187case `"$ac_path_FGREP" --version 2>&1` in
6188*GNU*)
6189 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6190*)
6191 ac_count=0
6192 $as_echo_n 0123456789 >"conftest.in"
6193 while :
6194 do
6195 cat "conftest.in" "conftest.in" >"conftest.tmp"
6196 mv "conftest.tmp" "conftest.in"
6197 cp "conftest.in" "conftest.nl"
6198 $as_echo 'FGREP' >> "conftest.nl"
6199 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6200 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6201 ac_count=`expr $ac_count + 1`
6202 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6203 # Best one so far, save it but keep looking for a better one
6204 ac_cv_path_FGREP="$ac_path_FGREP"
6205 ac_path_FGREP_max=$ac_count
6206 fi
6207 # 10*(2^10) chars as input seems more than enough
6208 test $ac_count -gt 10 && break
6209 done
6210 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
dd184caf 6211esac
8d138742
CE
6212
6213 $ac_path_FGREP_found && break 3
6214 done
6215 done
6216done
6217IFS=$as_save_IFS
6218 if test -z "$ac_cv_path_FGREP"; then
6219 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6220$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6221 { (exit 1); exit 1; }; }
6222 fi
d9898ee8 6223else
8d138742
CE
6224 ac_cv_path_FGREP=$FGREP
6225fi
d9898ee8 6226
8d138742 6227 fi
d9898ee8 6228fi
8d138742
CE
6229{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
6230$as_echo "$ac_cv_path_FGREP" >&6; }
6231 FGREP="$ac_cv_path_FGREP"
dd184caf 6232
d9898ee8 6233
8d138742 6234test -z "$GREP" && GREP=grep
d9898ee8 6235
dd184caf 6236
d9898ee8 6237
d9898ee8 6238
d9898ee8 6239
d9898ee8 6240
d9898ee8 6241
6242
6243
d9898ee8 6244
dd184caf 6245
d9898ee8 6246
d9898ee8 6247
dd184caf 6248
d9898ee8 6249
d9898ee8 6250
d9898ee8 6251
8d138742
CE
6252
6253
6254# Check whether --with-gnu-ld was given.
6255if test "${with_gnu_ld+set}" = set; then
6256 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
d9898ee8 6257else
8d138742 6258 with_gnu_ld=no
d9898ee8 6259fi
d9898ee8 6260
8d138742
CE
6261ac_prog=ld
6262if test "$GCC" = yes; then
6263 # Check if gcc -print-prog-name=ld gives a path.
6264 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6265$as_echo_n "checking for ld used by $CC... " >&6; }
6266 case $host in
6267 *-*-mingw*)
6268 # gcc leaves a trailing carriage return which upsets mingw
6269 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6270 *)
6271 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6272 esac
6273 case $ac_prog in
6274 # Accept absolute paths.
6275 [\\/]* | ?:[\\/]*)
6276 re_direlt='/[^/][^/]*/\.\./'
6277 # Canonicalize the pathname of ld
6278 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6279 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6280 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6281 done
6282 test -z "$LD" && LD="$ac_prog"
6283 ;;
6284 "")
6285 # If it fails, then pretend we aren't using GCC.
6286 ac_prog=ld
6287 ;;
6288 *)
6289 # If it is relative, then search for the first ld in PATH.
6290 with_gnu_ld=unknown
6291 ;;
6292 esac
6293elif test "$with_gnu_ld" = yes; then
6294 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
6295$as_echo_n "checking for GNU ld... " >&6; }
6296else
6297 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6298$as_echo_n "checking for non-GNU ld... " >&6; }
d9898ee8 6299fi
8d138742
CE
6300if test "${lt_cv_path_LD+set}" = set; then
6301 $as_echo_n "(cached) " >&6
d9898ee8 6302else
8d138742
CE
6303 if test -z "$LD"; then
6304 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6305 for ac_dir in $PATH; do
6306 IFS="$lt_save_ifs"
6307 test -z "$ac_dir" && ac_dir=.
6308 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6309 lt_cv_path_LD="$ac_dir/$ac_prog"
6310 # Check to see if the program is GNU ld. I'd rather use --version,
6311 # but apparently some variants of GNU ld only accept -v.
6312 # Break only if it was the GNU/non-GNU ld that we prefer.
6313 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6314 *GNU* | *'with BFD'*)
6315 test "$with_gnu_ld" != no && break
6316 ;;
6317 *)
6318 test "$with_gnu_ld" != yes && break
6319 ;;
6320 esac
6321 fi
6322 done
6323 IFS="$lt_save_ifs"
6324else
6325 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6326fi
d9898ee8 6327fi
dd184caf 6328
8d138742
CE
6329LD="$lt_cv_path_LD"
6330if test -n "$LD"; then
6331 { $as_echo "$as_me:$LINENO: result: $LD" >&5
6332$as_echo "$LD" >&6; }
d9898ee8 6333else
8d138742
CE
6334 { $as_echo "$as_me:$LINENO: result: no" >&5
6335$as_echo "no" >&6; }
6336fi
6337test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6338$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
d9898ee8 6339 { (exit 1); exit 1; }; }
8d138742
CE
6340{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6341$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6342if test "${lt_cv_prog_gnu_ld+set}" = set; then
6343 $as_echo_n "(cached) " >&6
6344else
6345 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6346case `$LD -v 2>&1 </dev/null` in
6347*GNU* | *'with BFD'*)
6348 lt_cv_prog_gnu_ld=yes
6349 ;;
6350*)
6351 lt_cv_prog_gnu_ld=no
6352 ;;
6353esac
d9898ee8 6354fi
8d138742
CE
6355{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6356$as_echo "$lt_cv_prog_gnu_ld" >&6; }
6357with_gnu_ld=$lt_cv_prog_gnu_ld
d9898ee8 6358
d9898ee8 6359
d9898ee8 6360
6361
8d138742
CE
6362
6363
6364
6365
6366
6367{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
6368$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6369if test "${lt_cv_path_NM+set}" = set; then
6370 $as_echo_n "(cached) " >&6
6371else
6372 if test -n "$NM"; then
6373 # Let the user override the test.
6374 lt_cv_path_NM="$NM"
6375else
6376 lt_nm_to_check="${ac_tool_prefix}nm"
6377 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6378 lt_nm_to_check="$lt_nm_to_check nm"
6379 fi
6380 for lt_tmp_nm in $lt_nm_to_check; do
6381 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6382 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6383 IFS="$lt_save_ifs"
6384 test -z "$ac_dir" && ac_dir=.
6385 tmp_nm="$ac_dir/$lt_tmp_nm"
6386 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6387 # Check to see if the nm accepts a BSD-compat flag.
6388 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6389 # nm: unknown option "B" ignored
6390 # Tru64's nm complains that /dev/null is an invalid object file
6391 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6392 */dev/null* | *'Invalid file or object type'*)
6393 lt_cv_path_NM="$tmp_nm -B"
6394 break
6395 ;;
6396 *)
6397 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6398 */dev/null*)
6399 lt_cv_path_NM="$tmp_nm -p"
6400 break
6401 ;;
6402 *)
6403 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6404 continue # so that we can try to find one that supports BSD flags
6405 ;;
6406 esac
6407 ;;
6408 esac
6409 fi
6410 done
6411 IFS="$lt_save_ifs"
6412 done
6413 : ${lt_cv_path_NM=no}
6414fi
6415fi
6416{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6417$as_echo "$lt_cv_path_NM" >&6; }
6418if test "$lt_cv_path_NM" != "no"; then
6419 NM="$lt_cv_path_NM"
6420else
6421 # Didn't find any BSD compatible name lister, look for dumpbin.
6422 if test -n "$ac_tool_prefix"; then
6423 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
d9898ee8 6424 do
6425 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6426set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8d138742
CE
6427{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6428$as_echo_n "checking for $ac_word... " >&6; }
6429if test "${ac_cv_prog_DUMPBIN+set}" = set; then
6430 $as_echo_n "(cached) " >&6
d9898ee8 6431else
8d138742
CE
6432 if test -n "$DUMPBIN"; then
6433 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
d9898ee8 6434else
6435as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6436for as_dir in $PATH
6437do
6438 IFS=$as_save_IFS
6439 test -z "$as_dir" && as_dir=.
6440 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 6441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8d138742
CE
6442 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6443 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 6444 break 2
6445 fi
6446done
6447done
dd184caf 6448IFS=$as_save_IFS
d9898ee8 6449
6450fi
6451fi
8d138742
CE
6452DUMPBIN=$ac_cv_prog_DUMPBIN
6453if test -n "$DUMPBIN"; then
6454 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
6455$as_echo "$DUMPBIN" >&6; }
d9898ee8 6456else
8d138742
CE
6457 { $as_echo "$as_me:$LINENO: result: no" >&5
6458$as_echo "no" >&6; }
d9898ee8 6459fi
6460
dd184caf 6461
8d138742 6462 test -n "$DUMPBIN" && break
d9898ee8 6463 done
6464fi
8d138742
CE
6465if test -z "$DUMPBIN"; then
6466 ac_ct_DUMPBIN=$DUMPBIN
6467 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
d9898ee8 6468do
6469 # Extract the first word of "$ac_prog", so it can be a program name with args.
6470set dummy $ac_prog; ac_word=$2
8d138742
CE
6471{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6472$as_echo_n "checking for $ac_word... " >&6; }
6473if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
6474 $as_echo_n "(cached) " >&6
d9898ee8 6475else
8d138742
CE
6476 if test -n "$ac_ct_DUMPBIN"; then
6477 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
d9898ee8 6478else
6479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6480for as_dir in $PATH
6481do
6482 IFS=$as_save_IFS
6483 test -z "$as_dir" && as_dir=.
6484 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 6485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8d138742
CE
6486 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6487 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 6488 break 2
6489 fi
6490done
6491done
dd184caf 6492IFS=$as_save_IFS
d9898ee8 6493
6494fi
6495fi
8d138742
CE
6496ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6497if test -n "$ac_ct_DUMPBIN"; then
6498 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
6499$as_echo "$ac_ct_DUMPBIN" >&6; }
d9898ee8 6500else
8d138742
CE
6501 { $as_echo "$as_me:$LINENO: result: no" >&5
6502$as_echo "no" >&6; }
d9898ee8 6503fi
6504
dd184caf 6505
8d138742 6506 test -n "$ac_ct_DUMPBIN" && break
d9898ee8 6507done
6508
8d138742
CE
6509 if test "x$ac_ct_DUMPBIN" = x; then
6510 DUMPBIN=":"
dd184caf 6511 else
6512 case $cross_compiling:$ac_tool_warned in
6513yes:)
8d138742
CE
6514{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6515$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
dd184caf 6516ac_tool_warned=yes ;;
6517esac
8d138742 6518 DUMPBIN=$ac_ct_DUMPBIN
dd184caf 6519 fi
d9898ee8 6520fi
6521
6522
8d138742
CE
6523 if test "$DUMPBIN" != ":"; then
6524 NM="$DUMPBIN"
6525 fi
d9898ee8 6526fi
8d138742 6527test -z "$NM" && NM=nm
dd184caf 6528
d9898ee8 6529
d9898ee8 6530
d9898ee8 6531
dd184caf 6532
d9898ee8 6533
8d138742
CE
6534{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
6535$as_echo_n "checking the name lister ($NM) interface... " >&6; }
6536if test "${lt_cv_nm_interface+set}" = set; then
6537 $as_echo_n "(cached) " >&6
d9898ee8 6538else
8d138742
CE
6539 lt_cv_nm_interface="BSD nm"
6540 echo "int some_variable = 0;" > conftest.$ac_ext
6541 (eval echo "\"\$as_me:6541: $ac_compile\"" >&5)
6542 (eval "$ac_compile" 2>conftest.err)
6543 cat conftest.err >&5
6544 (eval echo "\"\$as_me:6544: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6545 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6546 cat conftest.err >&5
6547 (eval echo "\"\$as_me:6547: output\"" >&5)
6548 cat conftest.out >&5
6549 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6550 lt_cv_nm_interface="MS dumpbin"
d9898ee8 6551 fi
8d138742 6552 rm -f conftest*
d9898ee8 6553fi
8d138742
CE
6554{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
6555$as_echo "$lt_cv_nm_interface" >&6; }
d9898ee8 6556
8d138742
CE
6557{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
6558$as_echo_n "checking whether ln -s works... " >&6; }
6559LN_S=$as_ln_s
6560if test "$LN_S" = "ln -s"; then
6561 { $as_echo "$as_me:$LINENO: result: yes" >&5
6562$as_echo "yes" >&6; }
6563else
6564 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6565$as_echo "no, using $LN_S" >&6; }
6566fi
d9898ee8 6567
6568# find the maximum length of command line arguments
8d138742
CE
6569{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6570$as_echo_n "checking the maximum length of command line arguments... " >&6; }
d9898ee8 6571if test "${lt_cv_sys_max_cmd_len+set}" = set; then
8d138742 6572 $as_echo_n "(cached) " >&6
d9898ee8 6573else
6574 i=0
6575 teststring="ABCD"
6576
6577 case $build_os in
6578 msdosdjgpp*)
6579 # On DJGPP, this test can blow up pretty badly due to problems in libc
6580 # (any single argument exceeding 2000 bytes causes a buffer overrun
6581 # during glob expansion). Even if it were fixed, the result of this
6582 # check would be larger than it should be.
6583 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6584 ;;
6585
6586 gnu*)
6587 # Under GNU Hurd, this test is not required because there is
6588 # no limit to the length of command line arguments.
6589 # Libtool will interpret -1 as no limit whatsoever
6590 lt_cv_sys_max_cmd_len=-1;
6591 ;;
6592
8d138742 6593 cygwin* | mingw* | cegcc*)
d9898ee8 6594 # On Win9x/ME, this test blows up -- it succeeds, but takes
6595 # about 5 minutes as the teststring grows exponentially.
6596 # Worse, since 9x/ME are not pre-emptively multitasking,
6597 # you end up with a "frozen" computer, even though with patience
6598 # the test eventually succeeds (with a max line length of 256k).
6599 # Instead, let's just punt: use the minimum linelength reported by
6600 # all of the supported platforms: 8192 (on NT/2K/XP).
6601 lt_cv_sys_max_cmd_len=8192;
6602 ;;
6603
6604 amigaos*)
6605 # On AmigaOS with pdksh, this test takes hours, literally.
6606 # So we just punt and use a minimum line length of 8192.
6607 lt_cv_sys_max_cmd_len=8192;
6608 ;;
6609
6610 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6611 # This has been around since 386BSD, at least. Likely further.
6612 if test -x /sbin/sysctl; then
6613 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6614 elif test -x /usr/sbin/sysctl; then
6615 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6616 else
6617 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6618 fi
6619 # And add a safety zone
6620 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6621 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6622 ;;
6623
6624 interix*)
6625 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6626 lt_cv_sys_max_cmd_len=196608
6627 ;;
6628
6629 osf*)
6630 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6631 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6632 # nice to cause kernel panics so lets avoid the loop below.
6633 # First set a reasonable default.
6634 lt_cv_sys_max_cmd_len=16384
6635 #
6636 if test -x /sbin/sysconfig; then
6637 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6638 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6639 esac
6640 fi
6641 ;;
6642 sco3.2v5*)
6643 lt_cv_sys_max_cmd_len=102400
6644 ;;
6645 sysv5* | sco5v6* | sysv4.2uw2*)
6646 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6647 if test -n "$kargmax"; then
8d138742 6648 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
d9898ee8 6649 else
6650 lt_cv_sys_max_cmd_len=32768
6651 fi
6652 ;;
6653 *)
ac40fd9e 6654 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6655 if test -n "$lt_cv_sys_max_cmd_len"; then
6656 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6657 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6658 else
8d138742
CE
6659 # Make teststring a little bigger before we do anything with it.
6660 # a 1K string should be a reasonable start.
6661 for i in 1 2 3 4 5 6 7 8 ; do
6662 teststring=$teststring$teststring
6663 done
ac40fd9e 6664 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8d138742
CE
6665 # If test is not a shell built-in, we'll probably end up computing a
6666 # maximum length that is only half of the actual maximum length, but
6667 # we can't tell.
6668 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6669 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
ac40fd9e 6670 test $i != 17 # 1/2 MB should be enough
6671 do
6672 i=`expr $i + 1`
6673 teststring=$teststring$teststring
6674 done
8d138742
CE
6675 # Only check the string length outside the loop.
6676 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
ac40fd9e 6677 teststring=
8d138742
CE
6678 # Add a significant safety factor because C++ compilers can tack on
6679 # massive amounts of additional arguments before passing them to the
6680 # linker. It appears as though 1/2 is a usable value.
ac40fd9e 6681 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6682 fi
d9898ee8 6683 ;;
6684 esac
6685
6686fi
6687
6688if test -n $lt_cv_sys_max_cmd_len ; then
8d138742
CE
6689 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6690$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
d9898ee8 6691else
8d138742
CE
6692 { $as_echo "$as_me:$LINENO: result: none" >&5
6693$as_echo "none" >&6; }
d9898ee8 6694fi
8d138742 6695max_cmd_len=$lt_cv_sys_max_cmd_len
d9898ee8 6696
6697
6698
6699
ac40fd9e 6700
d9898ee8 6701
8d138742
CE
6702: ${CP="cp -f"}
6703: ${MV="mv -f"}
6704: ${RM="rm -f"}
d9898ee8 6705
8d138742
CE
6706{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
6707$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6708# Try some XSI features
6709xsi_shell=no
6710( _lt_dummy="a/b/c"
6711 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6712 = c,a/b,, \
6713 && eval 'test $(( 1 + 1 )) -eq 2 \
6714 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6715 && xsi_shell=yes
6716{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
6717$as_echo "$xsi_shell" >&6; }
d9898ee8 6718
d9898ee8 6719
8d138742
CE
6720{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
6721$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6722lt_shell_append=no
6723( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6724 >/dev/null 2>&1 \
6725 && lt_shell_append=yes
6726{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
6727$as_echo "$lt_shell_append" >&6; }
d9898ee8 6728
d9898ee8 6729
8d138742
CE
6730if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6731 lt_unset=unset
6732else
6733 lt_unset=false
6734fi
d9898ee8 6735
d9898ee8 6736
d9898ee8 6737
d9898ee8 6738
d9898ee8 6739
8d138742
CE
6740# test EBCDIC or ASCII
6741case `echo X|tr X '\101'` in
6742 A) # ASCII based system
6743 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6744 lt_SP2NL='tr \040 \012'
6745 lt_NL2SP='tr \015\012 \040\040'
6746 ;;
6747 *) # EBCDIC based system
6748 lt_SP2NL='tr \100 \n'
6749 lt_NL2SP='tr \r\n \100\100'
6750 ;;
6751esac
d9898ee8 6752
d9898ee8 6753
d9898ee8 6754
d9898ee8 6755
d9898ee8 6756
d9898ee8 6757
d9898ee8 6758
d9898ee8 6759
d9898ee8 6760
8d138742
CE
6761{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6762$as_echo_n "checking for $LD option to reload object files... " >&6; }
6763if test "${lt_cv_ld_reload_flag+set}" = set; then
6764 $as_echo_n "(cached) " >&6
d9898ee8 6765else
8d138742 6766 lt_cv_ld_reload_flag='-r'
d9898ee8 6767fi
8d138742
CE
6768{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6769$as_echo "$lt_cv_ld_reload_flag" >&6; }
6770reload_flag=$lt_cv_ld_reload_flag
6771case $reload_flag in
6772"" | " "*) ;;
6773*) reload_flag=" $reload_flag" ;;
6774esac
6775reload_cmds='$LD$reload_flag -o $output$reload_objs'
d9898ee8 6776case $host_os in
8d138742
CE
6777 darwin*)
6778 if test "$GCC" = yes; then
6779 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6780 else
6781 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6782 fi
6783 ;;
d9898ee8 6784esac
6785
d9898ee8 6786
d9898ee8 6787
d9898ee8 6788
d9898ee8 6789
d9898ee8 6790
d9898ee8 6791
8d138742 6792
d9898ee8 6793
6794if test -n "$ac_tool_prefix"; then
8d138742
CE
6795 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6796set dummy ${ac_tool_prefix}objdump; ac_word=$2
6797{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6798$as_echo_n "checking for $ac_word... " >&6; }
6799if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6800 $as_echo_n "(cached) " >&6
d9898ee8 6801else
8d138742
CE
6802 if test -n "$OBJDUMP"; then
6803 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
d9898ee8 6804else
6805as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6806for as_dir in $PATH
6807do
6808 IFS=$as_save_IFS
6809 test -z "$as_dir" && as_dir=.
6810 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 6811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8d138742
CE
6812 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6813 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 6814 break 2
6815 fi
6816done
6817done
dd184caf 6818IFS=$as_save_IFS
d9898ee8 6819
6820fi
6821fi
8d138742
CE
6822OBJDUMP=$ac_cv_prog_OBJDUMP
6823if test -n "$OBJDUMP"; then
6824 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6825$as_echo "$OBJDUMP" >&6; }
d9898ee8 6826else
8d138742
CE
6827 { $as_echo "$as_me:$LINENO: result: no" >&5
6828$as_echo "no" >&6; }
d9898ee8 6829fi
6830
dd184caf 6831
d9898ee8 6832fi
8d138742
CE
6833if test -z "$ac_cv_prog_OBJDUMP"; then
6834 ac_ct_OBJDUMP=$OBJDUMP
6835 # Extract the first word of "objdump", so it can be a program name with args.
6836set dummy objdump; ac_word=$2
6837{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6838$as_echo_n "checking for $ac_word... " >&6; }
6839if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6840 $as_echo_n "(cached) " >&6
d9898ee8 6841else
8d138742
CE
6842 if test -n "$ac_ct_OBJDUMP"; then
6843 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
d9898ee8 6844else
6845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6846for as_dir in $PATH
6847do
6848 IFS=$as_save_IFS
6849 test -z "$as_dir" && as_dir=.
6850 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 6851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8d138742
CE
6852 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6853 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 6854 break 2
6855 fi
6856done
6857done
dd184caf 6858IFS=$as_save_IFS
d9898ee8 6859
d9898ee8 6860fi
6861fi
8d138742
CE
6862ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6863if test -n "$ac_ct_OBJDUMP"; then
6864 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6865$as_echo "$ac_ct_OBJDUMP" >&6; }
d9898ee8 6866else
8d138742
CE
6867 { $as_echo "$as_me:$LINENO: result: no" >&5
6868$as_echo "no" >&6; }
d9898ee8 6869fi
6870
8d138742
CE
6871 if test "x$ac_ct_OBJDUMP" = x; then
6872 OBJDUMP="false"
dd184caf 6873 else
6874 case $cross_compiling:$ac_tool_warned in
6875yes:)
8d138742
CE
6876{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6877$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
dd184caf 6878ac_tool_warned=yes ;;
6879esac
8d138742 6880 OBJDUMP=$ac_ct_OBJDUMP
dd184caf 6881 fi
d9898ee8 6882else
8d138742 6883 OBJDUMP="$ac_cv_prog_OBJDUMP"
d9898ee8 6884fi
6885
8d138742
CE
6886test -z "$OBJDUMP" && OBJDUMP=objdump
6887
6888
6889
6890
6891
6892
6893
6894
6895
6896{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6897$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6898if test "${lt_cv_deplibs_check_method+set}" = set; then
6899 $as_echo_n "(cached) " >&6
6900else
6901 lt_cv_file_magic_cmd='$MAGIC_CMD'
6902lt_cv_file_magic_test_file=
6903lt_cv_deplibs_check_method='unknown'
6904# Need to set the preceding variable on all platforms that support
6905# interlibrary dependencies.
6906# 'none' -- dependencies not supported.
6907# `unknown' -- same as none, but documents that we really don't know.
6908# 'pass_all' -- all dependencies passed with no checks.
6909# 'test_compile' -- check by making test program.
6910# 'file_magic [[regex]]' -- check by looking for files in library path
6911# which responds to the $file_magic_cmd with a given extended regex.
6912# If you have `file' or equivalent on your system and you're not sure
6913# whether `pass_all' will *always* work, you probably want this one.
6914
6915case $host_os in
6916aix[4-9]*)
6917 lt_cv_deplibs_check_method=pass_all
6918 ;;
6919
6920beos*)
6921 lt_cv_deplibs_check_method=pass_all
6922 ;;
6923
6924bsdi[45]*)
6925 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6926 lt_cv_file_magic_cmd='/usr/bin/file -L'
6927 lt_cv_file_magic_test_file=/shlib/libc.so
6928 ;;
6929
6930cygwin*)
6931 # func_win32_libid is a shell function defined in ltmain.sh
6932 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6933 lt_cv_file_magic_cmd='func_win32_libid'
6934 ;;
6935
6936mingw* | pw32*)
6937 # Base MSYS/MinGW do not provide the 'file' command needed by
6938 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6939 # unless we find 'file', for example because we are cross-compiling.
6940 if ( file / ) >/dev/null 2>&1; then
6941 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6942 lt_cv_file_magic_cmd='func_win32_libid'
6943 else
6944 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6945 lt_cv_file_magic_cmd='$OBJDUMP -f'
6946 fi
6947 ;;
6948
6949cegcc)
6950 # use the weaker test based on 'objdump'. See mingw*.
6951 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6952 lt_cv_file_magic_cmd='$OBJDUMP -f'
6953 ;;
6954
6955darwin* | rhapsody*)
6956 lt_cv_deplibs_check_method=pass_all
6957 ;;
6958
6959freebsd* | dragonfly*)
6960 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6961 case $host_cpu in
6962 i*86 )
6963 # Not sure whether the presence of OpenBSD here was a mistake.
6964 # Let's accept both of them until this is cleared up.
6965 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6966 lt_cv_file_magic_cmd=/usr/bin/file
6967 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6968 ;;
6969 esac
6970 else
6971 lt_cv_deplibs_check_method=pass_all
6972 fi
6973 ;;
6974
6975gnu*)
6976 lt_cv_deplibs_check_method=pass_all
6977 ;;
6978
6979hpux10.20* | hpux11*)
6980 lt_cv_file_magic_cmd=/usr/bin/file
6981 case $host_cpu in
6982 ia64*)
6983 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6984 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6985 ;;
6986 hppa*64*)
6987 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]'
6988 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6989 ;;
6990 *)
6991 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6992 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6993 ;;
6994 esac
6995 ;;
6996
6997interix[3-9]*)
6998 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6999 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7000 ;;
7001
7002irix5* | irix6* | nonstopux*)
7003 case $LD in
7004 *-32|*"-32 ") libmagic=32-bit;;
7005 *-n32|*"-n32 ") libmagic=N32;;
7006 *-64|*"-64 ") libmagic=64-bit;;
7007 *) libmagic=never-match;;
7008 esac
7009 lt_cv_deplibs_check_method=pass_all
7010 ;;
7011
7012# This must be Linux ELF.
7013linux* | k*bsd*-gnu)
7014 lt_cv_deplibs_check_method=pass_all
7015 ;;
7016
7017netbsd*)
7018 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7019 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7020 else
7021 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7022 fi
7023 ;;
7024
7025newos6*)
7026 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7027 lt_cv_file_magic_cmd=/usr/bin/file
7028 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7029 ;;
7030
7031*nto* | *qnx*)
7032 lt_cv_deplibs_check_method=pass_all
7033 ;;
7034
7035openbsd*)
7036 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7037 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7038 else
7039 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7040 fi
7041 ;;
7042
7043osf3* | osf4* | osf5*)
7044 lt_cv_deplibs_check_method=pass_all
7045 ;;
7046
7047rdos*)
7048 lt_cv_deplibs_check_method=pass_all
7049 ;;
7050
7051solaris*)
7052 lt_cv_deplibs_check_method=pass_all
7053 ;;
7054
7055sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7056 lt_cv_deplibs_check_method=pass_all
7057 ;;
7058
7059sysv4 | sysv4.3*)
7060 case $host_vendor in
7061 motorola)
7062 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]'
7063 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7064 ;;
7065 ncr)
7066 lt_cv_deplibs_check_method=pass_all
7067 ;;
7068 sequent)
7069 lt_cv_file_magic_cmd='/bin/file'
7070 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7071 ;;
7072 sni)
7073 lt_cv_file_magic_cmd='/bin/file'
7074 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7075 lt_cv_file_magic_test_file=/lib/libc.so
7076 ;;
7077 siemens)
7078 lt_cv_deplibs_check_method=pass_all
7079 ;;
7080 pc)
7081 lt_cv_deplibs_check_method=pass_all
7082 ;;
7083 esac
7084 ;;
7085
7086tpf*)
7087 lt_cv_deplibs_check_method=pass_all
7088 ;;
7089esac
7090
7091fi
7092{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
7093$as_echo "$lt_cv_deplibs_check_method" >&6; }
7094file_magic_cmd=$lt_cv_file_magic_cmd
7095deplibs_check_method=$lt_cv_deplibs_check_method
7096test -z "$deplibs_check_method" && deplibs_check_method=unknown
7097
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109if test -n "$ac_tool_prefix"; then
7110 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7111set dummy ${ac_tool_prefix}ar; ac_word=$2
7112{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7113$as_echo_n "checking for $ac_word... " >&6; }
7114if test "${ac_cv_prog_AR+set}" = set; then
7115 $as_echo_n "(cached) " >&6
7116else
7117 if test -n "$AR"; then
7118 ac_cv_prog_AR="$AR" # Let the user override the test.
7119else
7120as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
d9898ee8 7121for as_dir in $PATH
7122do
7123 IFS=$as_save_IFS
7124 test -z "$as_dir" && as_dir=.
7125 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 7126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8d138742
CE
7127 ac_cv_prog_AR="${ac_tool_prefix}ar"
7128 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 7129 break 2
7130 fi
7131done
7132done
dd184caf 7133IFS=$as_save_IFS
d9898ee8 7134
7135fi
7136fi
8d138742
CE
7137AR=$ac_cv_prog_AR
7138if test -n "$AR"; then
7139 { $as_echo "$as_me:$LINENO: result: $AR" >&5
7140$as_echo "$AR" >&6; }
d9898ee8 7141else
8d138742
CE
7142 { $as_echo "$as_me:$LINENO: result: no" >&5
7143$as_echo "no" >&6; }
d9898ee8 7144fi
7145
dd184caf 7146
d9898ee8 7147fi
8d138742
CE
7148if test -z "$ac_cv_prog_AR"; then
7149 ac_ct_AR=$AR
7150 # Extract the first word of "ar", so it can be a program name with args.
7151set dummy ar; ac_word=$2
7152{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7153$as_echo_n "checking for $ac_word... " >&6; }
7154if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7155 $as_echo_n "(cached) " >&6
d9898ee8 7156else
8d138742
CE
7157 if test -n "$ac_ct_AR"; then
7158 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
d9898ee8 7159else
7160as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7161for as_dir in $PATH
7162do
7163 IFS=$as_save_IFS
7164 test -z "$as_dir" && as_dir=.
7165 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 7166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8d138742
CE
7167 ac_cv_prog_ac_ct_AR="ar"
7168 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 7169 break 2
7170 fi
7171done
7172done
dd184caf 7173IFS=$as_save_IFS
d9898ee8 7174
d9898ee8 7175fi
7176fi
8d138742
CE
7177ac_ct_AR=$ac_cv_prog_ac_ct_AR
7178if test -n "$ac_ct_AR"; then
7179 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7180$as_echo "$ac_ct_AR" >&6; }
d9898ee8 7181else
8d138742
CE
7182 { $as_echo "$as_me:$LINENO: result: no" >&5
7183$as_echo "no" >&6; }
d9898ee8 7184fi
7185
8d138742
CE
7186 if test "x$ac_ct_AR" = x; then
7187 AR="false"
dd184caf 7188 else
7189 case $cross_compiling:$ac_tool_warned in
7190yes:)
8d138742
CE
7191{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7192$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
dd184caf 7193ac_tool_warned=yes ;;
7194esac
8d138742 7195 AR=$ac_ct_AR
dd184caf 7196 fi
d9898ee8 7197else
8d138742 7198 AR="$ac_cv_prog_AR"
d9898ee8 7199fi
7200
8d138742
CE
7201test -z "$AR" && AR=ar
7202test -z "$AR_FLAGS" && AR_FLAGS=cru
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214if test -n "$ac_tool_prefix"; then
7215 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7216set dummy ${ac_tool_prefix}strip; ac_word=$2
7217{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7218$as_echo_n "checking for $ac_word... " >&6; }
7219if test "${ac_cv_prog_STRIP+set}" = set; then
7220 $as_echo_n "(cached) " >&6
7221else
d9898ee8 7222 if test -n "$STRIP"; then
7223 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7224else
7225as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7226for as_dir in $PATH
7227do
7228 IFS=$as_save_IFS
7229 test -z "$as_dir" && as_dir=.
7230 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 7231 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 7232 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8d138742 7233 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 7234 break 2
7235 fi
7236done
7237done
dd184caf 7238IFS=$as_save_IFS
d9898ee8 7239
7240fi
7241fi
7242STRIP=$ac_cv_prog_STRIP
7243if test -n "$STRIP"; then
8d138742
CE
7244 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
7245$as_echo "$STRIP" >&6; }
d9898ee8 7246else
8d138742
CE
7247 { $as_echo "$as_me:$LINENO: result: no" >&5
7248$as_echo "no" >&6; }
d9898ee8 7249fi
7250
dd184caf 7251
d9898ee8 7252fi
7253if test -z "$ac_cv_prog_STRIP"; then
7254 ac_ct_STRIP=$STRIP
7255 # Extract the first word of "strip", so it can be a program name with args.
7256set dummy strip; ac_word=$2
8d138742
CE
7257{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7258$as_echo_n "checking for $ac_word... " >&6; }
d9898ee8 7259if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8d138742 7260 $as_echo_n "(cached) " >&6
d9898ee8 7261else
7262 if test -n "$ac_ct_STRIP"; then
7263 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7264else
7265as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7266for as_dir in $PATH
7267do
7268 IFS=$as_save_IFS
7269 test -z "$as_dir" && as_dir=.
7270 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 7271 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 7272 ac_cv_prog_ac_ct_STRIP="strip"
8d138742 7273 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 7274 break 2
7275 fi
7276done
7277done
dd184caf 7278IFS=$as_save_IFS
d9898ee8 7279
d9898ee8 7280fi
7281fi
7282ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7283if test -n "$ac_ct_STRIP"; then
8d138742
CE
7284 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7285$as_echo "$ac_ct_STRIP" >&6; }
d9898ee8 7286else
8d138742
CE
7287 { $as_echo "$as_me:$LINENO: result: no" >&5
7288$as_echo "no" >&6; }
d9898ee8 7289fi
7290
dd184caf 7291 if test "x$ac_ct_STRIP" = x; then
7292 STRIP=":"
7293 else
7294 case $cross_compiling:$ac_tool_warned in
7295yes:)
8d138742
CE
7296{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7297$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
dd184caf 7298ac_tool_warned=yes ;;
7299esac
7300 STRIP=$ac_ct_STRIP
7301 fi
d9898ee8 7302else
7303 STRIP="$ac_cv_prog_STRIP"
7304fi
7305
8d138742 7306test -z "$STRIP" && STRIP=:
d9898ee8 7307
d9898ee8 7308
8d138742
CE
7309
7310
7311
7312
7313if test -n "$ac_tool_prefix"; then
7314 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7315set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7316{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7317$as_echo_n "checking for $ac_word... " >&6; }
7318if test "${ac_cv_prog_RANLIB+set}" = set; then
7319 $as_echo_n "(cached) " >&6
7320else
7321 if test -n "$RANLIB"; then
7322 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7323else
7324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7325for as_dir in $PATH
7326do
7327 IFS=$as_save_IFS
7328 test -z "$as_dir" && as_dir=.
7329 for ac_exec_ext in '' $ac_executable_extensions; do
7330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7331 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7332 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7333 break 2
7334 fi
7335done
7336done
7337IFS=$as_save_IFS
7338
7339fi
7340fi
7341RANLIB=$ac_cv_prog_RANLIB
7342if test -n "$RANLIB"; then
7343 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
7344$as_echo "$RANLIB" >&6; }
7345else
7346 { $as_echo "$as_me:$LINENO: result: no" >&5
7347$as_echo "no" >&6; }
7348fi
7349
7350
7351fi
7352if test -z "$ac_cv_prog_RANLIB"; then
7353 ac_ct_RANLIB=$RANLIB
7354 # Extract the first word of "ranlib", so it can be a program name with args.
7355set dummy ranlib; ac_word=$2
7356{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7357$as_echo_n "checking for $ac_word... " >&6; }
7358if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7359 $as_echo_n "(cached) " >&6
7360else
7361 if test -n "$ac_ct_RANLIB"; then
7362 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7363else
7364as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7365for as_dir in $PATH
7366do
7367 IFS=$as_save_IFS
7368 test -z "$as_dir" && as_dir=.
7369 for ac_exec_ext in '' $ac_executable_extensions; do
7370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7371 ac_cv_prog_ac_ct_RANLIB="ranlib"
7372 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7373 break 2
7374 fi
7375done
7376done
7377IFS=$as_save_IFS
7378
7379fi
7380fi
7381ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7382if test -n "$ac_ct_RANLIB"; then
7383 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7384$as_echo "$ac_ct_RANLIB" >&6; }
7385else
7386 { $as_echo "$as_me:$LINENO: result: no" >&5
7387$as_echo "no" >&6; }
7388fi
7389
7390 if test "x$ac_ct_RANLIB" = x; then
7391 RANLIB=":"
7392 else
7393 case $cross_compiling:$ac_tool_warned in
7394yes:)
7395{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7396$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7397ac_tool_warned=yes ;;
7398esac
7399 RANLIB=$ac_ct_RANLIB
7400 fi
7401else
7402 RANLIB="$ac_cv_prog_RANLIB"
7403fi
7404
d9898ee8 7405test -z "$RANLIB" && RANLIB=:
8d138742
CE
7406
7407
7408
7409
7410
d9898ee8 7411
7412# Determine commands to create old-style static archives.
ac40fd9e 7413old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
d9898ee8 7414old_postinstall_cmds='chmod 644 $oldlib'
7415old_postuninstall_cmds=
7416
7417if test -n "$RANLIB"; then
7418 case $host_os in
7419 openbsd*)
7420 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7421 ;;
7422 *)
7423 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7424 ;;
7425 esac
7426 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7427fi
7428
d9898ee8 7429
7430
d9898ee8 7431
d9898ee8 7432
d9898ee8 7433
d9898ee8 7434
d9898ee8 7435
d9898ee8 7436
d9898ee8 7437
d9898ee8 7438
d9898ee8 7439
d9898ee8 7440
d9898ee8 7441
d9898ee8 7442
d9898ee8 7443
7444
dd184caf 7445
d9898ee8 7446
d9898ee8 7447
7448
d9898ee8 7449
d9898ee8 7450
d9898ee8 7451
8d138742
CE
7452
7453
7454
7455
7456
7457
7458
7459
d9898ee8 7460
7461
7462# If no C compiler was specified, use CC.
7463LTCC=${LTCC-"$CC"}
7464
7465# If no C compiler flags were specified, use CFLAGS.
7466LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7467
7468# Allow CC to be a program name with arguments.
7469compiler=$CC
7470
7471
8d138742
CE
7472# Check for command to grab the raw symbol name followed by C symbol from nm.
7473{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7474$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7475if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7476 $as_echo_n "(cached) " >&6
7477else
d9898ee8 7478
8d138742
CE
7479# These are sane defaults that work on at least a few old systems.
7480# [They come from Ultrix. What could be older than Ultrix?!! ;)]
d9898ee8 7481
8d138742
CE
7482# Character class describing NM global symbol codes.
7483symcode='[BCDEGRST]'
d9898ee8 7484
8d138742
CE
7485# Regexp to match symbols that can be accessed directly from C.
7486sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
d9898ee8 7487
8d138742
CE
7488# Define system-specific variables.
7489case $host_os in
7490aix*)
7491 symcode='[BCDT]'
7492 ;;
7493cygwin* | mingw* | pw32* | cegcc*)
7494 symcode='[ABCDGISTW]'
7495 ;;
7496hpux*)
7497 if test "$host_cpu" = ia64; then
7498 symcode='[ABCDEGRST]'
7499 fi
7500 ;;
7501irix* | nonstopux*)
7502 symcode='[BCDEGRST]'
7503 ;;
7504osf*)
7505 symcode='[BCDEGQRST]'
7506 ;;
7507solaris*)
7508 symcode='[BDRT]'
7509 ;;
7510sco3.2v5*)
7511 symcode='[DT]'
7512 ;;
7513sysv4.2uw2*)
7514 symcode='[DT]'
7515 ;;
7516sysv5* | sco5v6* | unixware* | OpenUNIX*)
7517 symcode='[ABDT]'
7518 ;;
7519sysv4)
7520 symcode='[DFNSTU]'
7521 ;;
7522esac
d9898ee8 7523
8d138742
CE
7524# If we're using GNU nm, then use its standard symbol codes.
7525case `$NM -V 2>&1` in
7526*GNU* | *'with BFD'*)
7527 symcode='[ABCDGIRSTW]' ;;
7528esac
d9898ee8 7529
8d138742
CE
7530# Transform an extracted symbol line into a proper C declaration.
7531# Some systems (esp. on ia64) link data and code symbols differently,
7532# so use this general approach.
7533lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
d9898ee8 7534
8d138742
CE
7535# Transform an extracted symbol line into symbol name and symbol address
7536lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7537lt_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 7538
8d138742
CE
7539# Handle CRLF in mingw tool chain
7540opt_cr=
7541case $build_os in
7542mingw*)
7543 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7544 ;;
7545esac
d9898ee8 7546
8d138742
CE
7547# Try without a prefix underscore, then with it.
7548for ac_symprfx in "" "_"; do
d9898ee8 7549
8d138742
CE
7550 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7551 symxfrm="\\1 $ac_symprfx\\2 \\2"
d9898ee8 7552
8d138742
CE
7553 # Write the raw and C identifiers.
7554 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7555 # Fake it for dumpbin and say T for any non-static function
7556 # and D for any global variable.
7557 # Also find C++ and __fastcall symbols from MSVC++,
7558 # which start with @ or ?.
7559 lt_cv_sys_global_symbol_pipe="$AWK '"\
7560" {last_section=section; section=\$ 3};"\
7561" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7562" \$ 0!~/External *\|/{next};"\
7563" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7564" {if(hide[section]) next};"\
7565" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7566" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7567" s[1]~/^[@?]/{print s[1], s[1]; next};"\
7568" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7569" ' prfx=^$ac_symprfx"
7570 else
7571 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7572 fi
d9898ee8 7573
8d138742
CE
7574 # Check to see that the pipe works correctly.
7575 pipe_works=no
d9898ee8 7576
8d138742
CE
7577 rm -f conftest*
7578 cat > conftest.$ac_ext <<_LT_EOF
7579#ifdef __cplusplus
7580extern "C" {
7581#endif
7582char nm_test_var;
7583void nm_test_func(void);
7584void nm_test_func(void){}
7585#ifdef __cplusplus
7586}
7587#endif
7588int main(){nm_test_var='a';nm_test_func();return(0);}
7589_LT_EOF
d9898ee8 7590
8d138742
CE
7591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7592 (eval $ac_compile) 2>&5
7593 ac_status=$?
7594 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7595 (exit $ac_status); }; then
7596 # Now try to grab the symbols.
7597 nlist=conftest.nm
7598 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7599 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7600 ac_status=$?
7601 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7602 (exit $ac_status); } && test -s "$nlist"; then
7603 # Try sorting and uniquifying the output.
7604 if sort "$nlist" | uniq > "$nlist"T; then
7605 mv -f "$nlist"T "$nlist"
7606 else
7607 rm -f "$nlist"T
d9898ee8 7608 fi
d9898ee8 7609
8d138742
CE
7610 # Make sure that we snagged all the symbols we need.
7611 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7612 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7613 cat <<_LT_EOF > conftest.$ac_ext
7614#ifdef __cplusplus
7615extern "C" {
7616#endif
d9898ee8 7617
8d138742
CE
7618_LT_EOF
7619 # Now generate the symbol file.
7620 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
d9898ee8 7621
8d138742 7622 cat <<_LT_EOF >> conftest.$ac_ext
d9898ee8 7623
8d138742
CE
7624/* The mapping between symbol names and symbols. */
7625const struct {
7626 const char *name;
7627 void *address;
7628}
7629lt__PROGRAM__LTX_preloaded_symbols[] =
7630{
7631 { "@PROGRAM@", (void *) 0 },
7632_LT_EOF
7633 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7634 cat <<\_LT_EOF >> conftest.$ac_ext
7635 {0, (void *) 0}
7636};
d9898ee8 7637
8d138742
CE
7638/* This works around a problem in FreeBSD linker */
7639#ifdef FREEBSD_WORKAROUND
7640static const void *lt_preloaded_setup() {
7641 return lt__PROGRAM__LTX_preloaded_symbols;
7642}
7643#endif
d9898ee8 7644
8d138742
CE
7645#ifdef __cplusplus
7646}
7647#endif
7648_LT_EOF
7649 # Now try linking the two files.
7650 mv conftest.$ac_objext conftstm.$ac_objext
7651 lt_save_LIBS="$LIBS"
7652 lt_save_CFLAGS="$CFLAGS"
7653 LIBS="conftstm.$ac_objext"
7654 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7655 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7656 (eval $ac_link) 2>&5
7657 ac_status=$?
7658 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7659 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7660 pipe_works=yes
7661 fi
7662 LIBS="$lt_save_LIBS"
7663 CFLAGS="$lt_save_CFLAGS"
7664 else
7665 echo "cannot find nm_test_func in $nlist" >&5
7666 fi
7667 else
7668 echo "cannot find nm_test_var in $nlist" >&5
d9898ee8 7669 fi
8d138742
CE
7670 else
7671 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7672 fi
7673 else
7674 echo "$progname: failed program was:" >&5
7675 cat conftest.$ac_ext >&5
7676 fi
7677 rm -rf conftest* conftst*
d9898ee8 7678
8d138742
CE
7679 # Do not use the global_symbol_pipe unless it works.
7680 if test "$pipe_works" = yes; then
7681 break
d9898ee8 7682 else
8d138742
CE
7683 lt_cv_sys_global_symbol_pipe=
7684 fi
7685done
d9898ee8 7686
8d138742 7687fi
d9898ee8 7688
8d138742
CE
7689if test -z "$lt_cv_sys_global_symbol_pipe"; then
7690 lt_cv_sys_global_symbol_to_cdecl=
7691fi
7692if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7693 { $as_echo "$as_me:$LINENO: result: failed" >&5
7694$as_echo "failed" >&6; }
7695else
7696 { $as_echo "$as_me:$LINENO: result: ok" >&5
7697$as_echo "ok" >&6; }
7698fi
d9898ee8 7699
d9898ee8 7700
d9898ee8 7701
d9898ee8 7702
d9898ee8 7703
ac40fd9e 7704
d9898ee8 7705
d9898ee8 7706
d9898ee8 7707
d9898ee8 7708
d9898ee8 7709
d9898ee8 7710
d9898ee8 7711
d9898ee8 7712
d9898ee8 7713
d9898ee8 7714
d9898ee8 7715
d9898ee8 7716
d9898ee8 7717
d9898ee8 7718
d9898ee8 7719
d9898ee8 7720
8d138742
CE
7721# Check whether --enable-libtool-lock was given.
7722if test "${enable_libtool_lock+set}" = set; then
7723 enableval=$enable_libtool_lock;
d9898ee8 7724fi
7725
8d138742 7726test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
d9898ee8 7727
8d138742
CE
7728# Some flags need to be propagated to the compiler or linker for good
7729# libtool support.
7730case $host in
7731ia64-*-hpux*)
7732 # Find out which ABI we are using.
7733 echo 'int i;' > conftest.$ac_ext
7734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7735 (eval $ac_compile) 2>&5
7736 ac_status=$?
7737 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7738 (exit $ac_status); }; then
7739 case `/usr/bin/file conftest.$ac_objext` in
7740 *ELF-32*)
7741 HPUX_IA64_MODE="32"
7742 ;;
7743 *ELF-64*)
7744 HPUX_IA64_MODE="64"
7745 ;;
7746 esac
7747 fi
7748 rm -rf conftest*
7749 ;;
7750*-*-irix6*)
7751 # Find out which ABI we are using.
7752 echo '#line 7752 "configure"' > conftest.$ac_ext
7753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7754 (eval $ac_compile) 2>&5
7755 ac_status=$?
7756 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7757 (exit $ac_status); }; then
7758 if test "$lt_cv_prog_gnu_ld" = yes; then
7759 case `/usr/bin/file conftest.$ac_objext` in
7760 *32-bit*)
7761 LD="${LD-ld} -melf32bsmip"
7762 ;;
7763 *N32*)
7764 LD="${LD-ld} -melf32bmipn32"
7765 ;;
7766 *64-bit*)
7767 LD="${LD-ld} -melf64bmip"
7768 ;;
7769 esac
7770 else
7771 case `/usr/bin/file conftest.$ac_objext` in
7772 *32-bit*)
7773 LD="${LD-ld} -32"
7774 ;;
7775 *N32*)
7776 LD="${LD-ld} -n32"
7777 ;;
7778 *64-bit*)
7779 LD="${LD-ld} -64"
7780 ;;
7781 esac
7782 fi
7783 fi
7784 rm -rf conftest*
7785 ;;
d9898ee8 7786
8d138742
CE
7787x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7788s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7789 # Find out which ABI we are using.
7790 echo 'int i;' > conftest.$ac_ext
7791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7792 (eval $ac_compile) 2>&5
7793 ac_status=$?
7794 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7795 (exit $ac_status); }; then
7796 case `/usr/bin/file conftest.o` in
7797 *32-bit*)
7798 case $host in
7799 x86_64-*kfreebsd*-gnu)
7800 LD="${LD-ld} -m elf_i386_fbsd"
7801 ;;
7802 x86_64-*linux*)
7803 LD="${LD-ld} -m elf_i386"
7804 ;;
7805 ppc64-*linux*|powerpc64-*linux*)
7806 LD="${LD-ld} -m elf32ppclinux"
7807 ;;
7808 s390x-*linux*)
7809 LD="${LD-ld} -m elf_s390"
7810 ;;
7811 sparc64-*linux*)
7812 LD="${LD-ld} -m elf32_sparc"
7813 ;;
7814 esac
7815 ;;
7816 *64-bit*)
7817 case $host in
7818 x86_64-*kfreebsd*-gnu)
7819 LD="${LD-ld} -m elf_x86_64_fbsd"
7820 ;;
7821 x86_64-*linux*)
7822 LD="${LD-ld} -m elf_x86_64"
7823 ;;
7824 ppc*-*linux*|powerpc*-*linux*)
7825 LD="${LD-ld} -m elf64ppc"
7826 ;;
7827 s390*-*linux*|s390*-*tpf*)
7828 LD="${LD-ld} -m elf64_s390"
7829 ;;
7830 sparc*-*linux*)
7831 LD="${LD-ld} -m elf64_sparc"
7832 ;;
7833 esac
7834 ;;
7835 esac
d9898ee8 7836 fi
8d138742
CE
7837 rm -rf conftest*
7838 ;;
7839
7840*-*-sco3.2v5*)
7841 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7842 SAVE_CFLAGS="$CFLAGS"
7843 CFLAGS="$CFLAGS -belf"
7844 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7845$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7846if test "${lt_cv_cc_needs_belf+set}" = set; then
7847 $as_echo_n "(cached) " >&6
d9898ee8 7848else
8d138742
CE
7849 ac_ext=c
7850ac_cpp='$CPP $CPPFLAGS'
7851ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7852ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7853ac_compiler_gnu=$ac_cv_c_compiler_gnu
d9898ee8 7854
8d138742
CE
7855 cat >conftest.$ac_ext <<_ACEOF
7856/* confdefs.h. */
7857_ACEOF
7858cat confdefs.h >>conftest.$ac_ext
7859cat >>conftest.$ac_ext <<_ACEOF
7860/* end confdefs.h. */
d9898ee8 7861
8d138742
CE
7862int
7863main ()
7864{
d9898ee8 7865
8d138742
CE
7866 ;
7867 return 0;
7868}
7869_ACEOF
7870rm -f conftest.$ac_objext conftest$ac_exeext
7871if { (ac_try="$ac_link"
7872case "(($ac_try" in
7873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7874 *) ac_try_echo=$ac_try;;
7875esac
7876eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7877$as_echo "$ac_try_echo") >&5
7878 (eval "$ac_link") 2>conftest.er1
7879 ac_status=$?
7880 grep -v '^ *+' conftest.er1 >conftest.err
7881 rm -f conftest.er1
7882 cat conftest.err >&5
7883 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7884 (exit $ac_status); } && {
7885 test -z "$ac_c_werror_flag" ||
7886 test ! -s conftest.err
7887 } && test -s conftest$ac_exeext && {
7888 test "$cross_compiling" = yes ||
7889 $as_test_x conftest$ac_exeext
7890 }; then
7891 lt_cv_cc_needs_belf=yes
7892else
7893 $as_echo "$as_me: failed program was:" >&5
7894sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 7895
8d138742
CE
7896 lt_cv_cc_needs_belf=no
7897fi
d9898ee8 7898
8d138742
CE
7899rm -rf conftest.dSYM
7900rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7901 conftest$ac_exeext conftest.$ac_ext
7902 ac_ext=c
7903ac_cpp='$CPP $CPPFLAGS'
7904ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7905ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7906ac_compiler_gnu=$ac_cv_c_compiler_gnu
7907
7908fi
7909{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7910$as_echo "$lt_cv_cc_needs_belf" >&6; }
7911 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7912 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7913 CFLAGS="$SAVE_CFLAGS"
7914 fi
7915 ;;
7916sparc*-*solaris*)
7917 # Find out which ABI we are using.
7918 echo 'int i;' > conftest.$ac_ext
7919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7920 (eval $ac_compile) 2>&5
7921 ac_status=$?
7922 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7923 (exit $ac_status); }; then
7924 case `/usr/bin/file conftest.o` in
7925 *64-bit*)
7926 case $lt_cv_prog_gnu_ld in
7927 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7928 *)
7929 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7930 LD="${LD-ld} -64"
7931 fi
7932 ;;
7933 esac
7934 ;;
d9898ee8 7935 esac
8d138742
CE
7936 fi
7937 rm -rf conftest*
7938 ;;
7939esac
d9898ee8 7940
8d138742 7941need_locks="$enable_libtool_lock"
d9898ee8 7942
d9898ee8 7943
8d138742
CE
7944 case $host_os in
7945 rhapsody* | darwin*)
7946 if test -n "$ac_tool_prefix"; then
7947 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7948set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7949{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7950$as_echo_n "checking for $ac_word... " >&6; }
7951if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7952 $as_echo_n "(cached) " >&6
7953else
7954 if test -n "$DSYMUTIL"; then
7955 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7956else
7957as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7958for as_dir in $PATH
7959do
7960 IFS=$as_save_IFS
7961 test -z "$as_dir" && as_dir=.
7962 for ac_exec_ext in '' $ac_executable_extensions; do
7963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7964 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7965 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7966 break 2
7967 fi
7968done
7969done
7970IFS=$as_save_IFS
d9898ee8 7971
8d138742
CE
7972fi
7973fi
7974DSYMUTIL=$ac_cv_prog_DSYMUTIL
7975if test -n "$DSYMUTIL"; then
7976 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7977$as_echo "$DSYMUTIL" >&6; }
7978else
7979 { $as_echo "$as_me:$LINENO: result: no" >&5
7980$as_echo "no" >&6; }
7981fi
d9898ee8 7982
d9898ee8 7983
8d138742
CE
7984fi
7985if test -z "$ac_cv_prog_DSYMUTIL"; then
7986 ac_ct_DSYMUTIL=$DSYMUTIL
7987 # Extract the first word of "dsymutil", so it can be a program name with args.
7988set dummy dsymutil; ac_word=$2
7989{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7990$as_echo_n "checking for $ac_word... " >&6; }
7991if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7992 $as_echo_n "(cached) " >&6
7993else
7994 if test -n "$ac_ct_DSYMUTIL"; then
7995 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7996else
7997as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7998for as_dir in $PATH
7999do
8000 IFS=$as_save_IFS
8001 test -z "$as_dir" && as_dir=.
8002 for ac_exec_ext in '' $ac_executable_extensions; do
8003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8004 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8005 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8006 break 2
8007 fi
8008done
8009done
8010IFS=$as_save_IFS
d9898ee8 8011
8d138742
CE
8012fi
8013fi
8014ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8015if test -n "$ac_ct_DSYMUTIL"; then
8016 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
8017$as_echo "$ac_ct_DSYMUTIL" >&6; }
8018else
8019 { $as_echo "$as_me:$LINENO: result: no" >&5
8020$as_echo "no" >&6; }
8021fi
d9898ee8 8022
8d138742
CE
8023 if test "x$ac_ct_DSYMUTIL" = x; then
8024 DSYMUTIL=":"
8025 else
8026 case $cross_compiling:$ac_tool_warned in
8027yes:)
8028{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8029$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8030ac_tool_warned=yes ;;
8031esac
8032 DSYMUTIL=$ac_ct_DSYMUTIL
8033 fi
8034else
8035 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8036fi
d9898ee8 8037
8d138742
CE
8038 if test -n "$ac_tool_prefix"; then
8039 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8040set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8041{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8042$as_echo_n "checking for $ac_word... " >&6; }
8043if test "${ac_cv_prog_NMEDIT+set}" = set; then
8044 $as_echo_n "(cached) " >&6
8045else
8046 if test -n "$NMEDIT"; then
8047 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8048else
8049as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8050for as_dir in $PATH
8051do
8052 IFS=$as_save_IFS
8053 test -z "$as_dir" && as_dir=.
8054 for ac_exec_ext in '' $ac_executable_extensions; do
8055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8056 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8057 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8058 break 2
8059 fi
8060done
8061done
8062IFS=$as_save_IFS
d9898ee8 8063
8d138742
CE
8064fi
8065fi
8066NMEDIT=$ac_cv_prog_NMEDIT
8067if test -n "$NMEDIT"; then
8068 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
8069$as_echo "$NMEDIT" >&6; }
8070else
8071 { $as_echo "$as_me:$LINENO: result: no" >&5
8072$as_echo "no" >&6; }
8073fi
d9898ee8 8074
d9898ee8 8075
8d138742
CE
8076fi
8077if test -z "$ac_cv_prog_NMEDIT"; then
8078 ac_ct_NMEDIT=$NMEDIT
8079 # Extract the first word of "nmedit", so it can be a program name with args.
8080set dummy nmedit; ac_word=$2
8081{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8082$as_echo_n "checking for $ac_word... " >&6; }
8083if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
8084 $as_echo_n "(cached) " >&6
8085else
8086 if test -n "$ac_ct_NMEDIT"; then
8087 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8088else
8089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8090for as_dir in $PATH
8091do
8092 IFS=$as_save_IFS
8093 test -z "$as_dir" && as_dir=.
8094 for ac_exec_ext in '' $ac_executable_extensions; do
8095 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8096 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8097 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8098 break 2
8099 fi
8100done
8101done
8102IFS=$as_save_IFS
d9898ee8 8103
8d138742
CE
8104fi
8105fi
8106ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8107if test -n "$ac_ct_NMEDIT"; then
8108 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
8109$as_echo "$ac_ct_NMEDIT" >&6; }
8110else
8111 { $as_echo "$as_me:$LINENO: result: no" >&5
8112$as_echo "no" >&6; }
8113fi
d9898ee8 8114
8d138742
CE
8115 if test "x$ac_ct_NMEDIT" = x; then
8116 NMEDIT=":"
8117 else
8118 case $cross_compiling:$ac_tool_warned in
8119yes:)
8120{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8121$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8122ac_tool_warned=yes ;;
8123esac
8124 NMEDIT=$ac_ct_NMEDIT
8125 fi
8126else
8127 NMEDIT="$ac_cv_prog_NMEDIT"
8128fi
d9898ee8 8129
8d138742
CE
8130 if test -n "$ac_tool_prefix"; then
8131 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8132set dummy ${ac_tool_prefix}lipo; ac_word=$2
8133{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8134$as_echo_n "checking for $ac_word... " >&6; }
8135if test "${ac_cv_prog_LIPO+set}" = set; then
8136 $as_echo_n "(cached) " >&6
8137else
8138 if test -n "$LIPO"; then
8139 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8140else
8141as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8142for as_dir in $PATH
8143do
8144 IFS=$as_save_IFS
8145 test -z "$as_dir" && as_dir=.
8146 for ac_exec_ext in '' $ac_executable_extensions; do
8147 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8148 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8149 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8150 break 2
8151 fi
8152done
8153done
8154IFS=$as_save_IFS
d9898ee8 8155
8d138742
CE
8156fi
8157fi
8158LIPO=$ac_cv_prog_LIPO
8159if test -n "$LIPO"; then
8160 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
8161$as_echo "$LIPO" >&6; }
8162else
8163 { $as_echo "$as_me:$LINENO: result: no" >&5
8164$as_echo "no" >&6; }
8165fi
d9898ee8 8166
d9898ee8 8167
8d138742
CE
8168fi
8169if test -z "$ac_cv_prog_LIPO"; then
8170 ac_ct_LIPO=$LIPO
8171 # Extract the first word of "lipo", so it can be a program name with args.
8172set dummy lipo; ac_word=$2
8173{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8174$as_echo_n "checking for $ac_word... " >&6; }
8175if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
8176 $as_echo_n "(cached) " >&6
8177else
8178 if test -n "$ac_ct_LIPO"; then
8179 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8180else
8181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8182for as_dir in $PATH
8183do
8184 IFS=$as_save_IFS
8185 test -z "$as_dir" && as_dir=.
8186 for ac_exec_ext in '' $ac_executable_extensions; do
8187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8188 ac_cv_prog_ac_ct_LIPO="lipo"
8189 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8190 break 2
8191 fi
8192done
8193done
8194IFS=$as_save_IFS
d9898ee8 8195
8d138742
CE
8196fi
8197fi
8198ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8199if test -n "$ac_ct_LIPO"; then
8200 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
8201$as_echo "$ac_ct_LIPO" >&6; }
8202else
8203 { $as_echo "$as_me:$LINENO: result: no" >&5
8204$as_echo "no" >&6; }
8205fi
d9898ee8 8206
8d138742
CE
8207 if test "x$ac_ct_LIPO" = x; then
8208 LIPO=":"
d9898ee8 8209 else
8d138742
CE
8210 case $cross_compiling:$ac_tool_warned in
8211yes:)
8212{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8213$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8214ac_tool_warned=yes ;;
8215esac
8216 LIPO=$ac_ct_LIPO
8217 fi
8218else
8219 LIPO="$ac_cv_prog_LIPO"
8220fi
d9898ee8 8221
8d138742
CE
8222 if test -n "$ac_tool_prefix"; then
8223 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8224set dummy ${ac_tool_prefix}otool; ac_word=$2
8225{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8226$as_echo_n "checking for $ac_word... " >&6; }
8227if test "${ac_cv_prog_OTOOL+set}" = set; then
8228 $as_echo_n "(cached) " >&6
8229else
8230 if test -n "$OTOOL"; then
8231 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8232else
8233as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8234for as_dir in $PATH
8235do
8236 IFS=$as_save_IFS
8237 test -z "$as_dir" && as_dir=.
8238 for ac_exec_ext in '' $ac_executable_extensions; do
8239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8240 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8241 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8242 break 2
8243 fi
8244done
8245done
8246IFS=$as_save_IFS
d9898ee8 8247
8d138742
CE
8248fi
8249fi
8250OTOOL=$ac_cv_prog_OTOOL
8251if test -n "$OTOOL"; then
8252 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
8253$as_echo "$OTOOL" >&6; }
8254else
8255 { $as_echo "$as_me:$LINENO: result: no" >&5
8256$as_echo "no" >&6; }
8257fi
d9898ee8 8258
d9898ee8 8259
8d138742
CE
8260fi
8261if test -z "$ac_cv_prog_OTOOL"; then
8262 ac_ct_OTOOL=$OTOOL
8263 # Extract the first word of "otool", so it can be a program name with args.
8264set dummy otool; ac_word=$2
8265{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8266$as_echo_n "checking for $ac_word... " >&6; }
8267if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
8268 $as_echo_n "(cached) " >&6
8269else
8270 if test -n "$ac_ct_OTOOL"; then
8271 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8272else
8273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8274for as_dir in $PATH
8275do
8276 IFS=$as_save_IFS
8277 test -z "$as_dir" && as_dir=.
8278 for ac_exec_ext in '' $ac_executable_extensions; do
8279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8280 ac_cv_prog_ac_ct_OTOOL="otool"
8281 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8282 break 2
8283 fi
8284done
8285done
8286IFS=$as_save_IFS
d9898ee8 8287
8d138742
CE
8288fi
8289fi
8290ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8291if test -n "$ac_ct_OTOOL"; then
8292 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
8293$as_echo "$ac_ct_OTOOL" >&6; }
8294else
8295 { $as_echo "$as_me:$LINENO: result: no" >&5
8296$as_echo "no" >&6; }
8297fi
8298
8299 if test "x$ac_ct_OTOOL" = x; then
8300 OTOOL=":"
8301 else
8302 case $cross_compiling:$ac_tool_warned in
8303yes:)
8304{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8305$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8306ac_tool_warned=yes ;;
8307esac
8308 OTOOL=$ac_ct_OTOOL
8309 fi
8310else
8311 OTOOL="$ac_cv_prog_OTOOL"
8312fi
8313
8314 if test -n "$ac_tool_prefix"; then
8315 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8316set dummy ${ac_tool_prefix}otool64; ac_word=$2
8317{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8318$as_echo_n "checking for $ac_word... " >&6; }
8319if test "${ac_cv_prog_OTOOL64+set}" = set; then
8320 $as_echo_n "(cached) " >&6
8321else
8322 if test -n "$OTOOL64"; then
8323 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8324else
8325as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8326for as_dir in $PATH
8327do
8328 IFS=$as_save_IFS
8329 test -z "$as_dir" && as_dir=.
8330 for ac_exec_ext in '' $ac_executable_extensions; do
8331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8332 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8333 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8334 break 2
8335 fi
8336done
8337done
8338IFS=$as_save_IFS
8339
8340fi
8341fi
8342OTOOL64=$ac_cv_prog_OTOOL64
8343if test -n "$OTOOL64"; then
8344 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
8345$as_echo "$OTOOL64" >&6; }
8346else
8347 { $as_echo "$as_me:$LINENO: result: no" >&5
8348$as_echo "no" >&6; }
8349fi
8350
8351
8352fi
8353if test -z "$ac_cv_prog_OTOOL64"; then
8354 ac_ct_OTOOL64=$OTOOL64
8355 # Extract the first word of "otool64", so it can be a program name with args.
8356set dummy otool64; ac_word=$2
8357{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8358$as_echo_n "checking for $ac_word... " >&6; }
8359if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
8360 $as_echo_n "(cached) " >&6
8361else
8362 if test -n "$ac_ct_OTOOL64"; then
8363 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8364else
8365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8366for as_dir in $PATH
8367do
8368 IFS=$as_save_IFS
8369 test -z "$as_dir" && as_dir=.
8370 for ac_exec_ext in '' $ac_executable_extensions; do
8371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8372 ac_cv_prog_ac_ct_OTOOL64="otool64"
8373 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8374 break 2
8375 fi
8376done
8377done
8378IFS=$as_save_IFS
8379
8380fi
8381fi
8382ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8383if test -n "$ac_ct_OTOOL64"; then
8384 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
8385$as_echo "$ac_ct_OTOOL64" >&6; }
8386else
8387 { $as_echo "$as_me:$LINENO: result: no" >&5
8388$as_echo "no" >&6; }
8389fi
8390
8391 if test "x$ac_ct_OTOOL64" = x; then
8392 OTOOL64=":"
8393 else
8394 case $cross_compiling:$ac_tool_warned in
8395yes:)
8396{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8397$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8398ac_tool_warned=yes ;;
8399esac
8400 OTOOL64=$ac_ct_OTOOL64
8401 fi
8402else
8403 OTOOL64="$ac_cv_prog_OTOOL64"
8404fi
8405
8406
8407
8408
8409
8410
8411
8412
8413
8414
8415
8416
8417
8418
8419
8420
8421
8422
8423
8424
8425
8426
8427
8428
8429
8430
8431
8432 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
8433$as_echo_n "checking for -single_module linker flag... " >&6; }
8434if test "${lt_cv_apple_cc_single_mod+set}" = set; then
8435 $as_echo_n "(cached) " >&6
8436else
8437 lt_cv_apple_cc_single_mod=no
8438 if test -z "${LT_MULTI_MODULE}"; then
8439 # By default we will add the -single_module flag. You can override
8440 # by either setting the environment variable LT_MULTI_MODULE
8441 # non-empty at configure time, or by adding -multi_module to the
8442 # link flags.
8443 rm -rf libconftest.dylib*
8444 echo "int foo(void){return 1;}" > conftest.c
8445 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8446-dynamiclib -Wl,-single_module conftest.c" >&5
8447 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8448 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8449 _lt_result=$?
8450 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8451 lt_cv_apple_cc_single_mod=yes
d9898ee8 8452 else
8d138742 8453 cat conftest.err >&5
d9898ee8 8454 fi
8d138742
CE
8455 rm -rf libconftest.dylib*
8456 rm -f conftest.*
d9898ee8 8457 fi
8d138742
CE
8458fi
8459{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
8460$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8461 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
8462$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8463if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
8464 $as_echo_n "(cached) " >&6
8465else
8466 lt_cv_ld_exported_symbols_list=no
8467 save_LDFLAGS=$LDFLAGS
8468 echo "_main" > conftest.sym
8469 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8470 cat >conftest.$ac_ext <<_ACEOF
d9898ee8 8471/* confdefs.h. */
8472_ACEOF
8473cat confdefs.h >>conftest.$ac_ext
8474cat >>conftest.$ac_ext <<_ACEOF
8475/* end confdefs.h. */
8476
8477int
8478main ()
8479{
8480
8481 ;
8482 return 0;
8483}
8484_ACEOF
8485rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 8486if { (ac_try="$ac_link"
8487case "(($ac_try" in
8488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8489 *) ac_try_echo=$ac_try;;
8490esac
8d138742
CE
8491eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8492$as_echo "$ac_try_echo") >&5
dd184caf 8493 (eval "$ac_link") 2>conftest.er1
d9898ee8 8494 ac_status=$?
8495 grep -v '^ *+' conftest.er1 >conftest.err
8496 rm -f conftest.er1
8497 cat conftest.err >&5
8d138742 8498 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 8499 (exit $ac_status); } && {
8500 test -z "$ac_c_werror_flag" ||
8501 test ! -s conftest.err
8d138742
CE
8502 } && test -s conftest$ac_exeext && {
8503 test "$cross_compiling" = yes ||
8504 $as_test_x conftest$ac_exeext
8505 }; then
8506 lt_cv_ld_exported_symbols_list=yes
d9898ee8 8507else
8d138742 8508 $as_echo "$as_me: failed program was:" >&5
d9898ee8 8509sed 's/^/| /' conftest.$ac_ext >&5
8510
8d138742 8511 lt_cv_ld_exported_symbols_list=no
d9898ee8 8512fi
dd184caf 8513
8d138742 8514rm -rf conftest.dSYM
dd184caf 8515rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 8516 conftest$ac_exeext conftest.$ac_ext
8d138742 8517 LDFLAGS="$save_LDFLAGS"
d9898ee8 8518
8d138742
CE
8519fi
8520{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
8521$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8522 case $host_os in
8523 rhapsody* | darwin1.[012])
8524 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8525 darwin1.*)
8526 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8527 darwin*) # darwin 5.x on
8528 # if running on 10.5 or later, the deployment target defaults
8529 # to the OS version, if on x86, and 10.4, the deployment
8530 # target defaults to 10.4. Don't you love it?
8531 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8532 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8533 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8534 10.[012]*)
8535 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8536 10.*)
8537 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8538 esac
8539 ;;
8540 esac
8541 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8542 _lt_dar_single_mod='$single_module'
8543 fi
8544 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8545 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8546 else
8547 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8548 fi
8549 if test "$DSYMUTIL" != ":"; then
8550 _lt_dsymutil='~$DSYMUTIL $lib || :'
8551 else
8552 _lt_dsymutil=
8553 fi
8554 ;;
8555 esac
8556
8557
8558for ac_header in dlfcn.h
8559do
8560as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8561{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8562$as_echo_n "checking for $ac_header... " >&6; }
8563if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8564 $as_echo_n "(cached) " >&6
8565else
8566 cat >conftest.$ac_ext <<_ACEOF
d9898ee8 8567/* confdefs.h. */
8568_ACEOF
8569cat confdefs.h >>conftest.$ac_ext
8570cat >>conftest.$ac_ext <<_ACEOF
8571/* end confdefs.h. */
8d138742 8572$ac_includes_default
d9898ee8 8573
8d138742 8574#include <$ac_header>
d9898ee8 8575_ACEOF
8d138742
CE
8576rm -f conftest.$ac_objext
8577if { (ac_try="$ac_compile"
dd184caf 8578case "(($ac_try" in
8579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8580 *) ac_try_echo=$ac_try;;
8581esac
8d138742
CE
8582eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8583$as_echo "$ac_try_echo") >&5
8584 (eval "$ac_compile") 2>conftest.er1
d9898ee8 8585 ac_status=$?
8586 grep -v '^ *+' conftest.er1 >conftest.err
8587 rm -f conftest.er1
8588 cat conftest.err >&5
8d138742 8589 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 8590 (exit $ac_status); } && {
8591 test -z "$ac_c_werror_flag" ||
8592 test ! -s conftest.err
8d138742
CE
8593 } && test -s conftest.$ac_objext; then
8594 eval "$as_ac_Header=yes"
d9898ee8 8595else
8d138742 8596 $as_echo "$as_me: failed program was:" >&5
d9898ee8 8597sed 's/^/| /' conftest.$ac_ext >&5
8598
8d138742
CE
8599 eval "$as_ac_Header=no"
8600fi
dd184caf 8601
8d138742 8602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 8603fi
8d138742
CE
8604ac_res=`eval 'as_val=${'$as_ac_Header'}
8605 $as_echo "$as_val"'`
8606 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8607$as_echo "$ac_res" >&6; }
8608as_val=`eval 'as_val=${'$as_ac_Header'}
8609 $as_echo "$as_val"'`
8610 if test "x$as_val" = x""yes; then
8611 cat >>confdefs.h <<_ACEOF
8612#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8613_ACEOF
dd184caf 8614
8d138742 8615fi
d9898ee8 8616
8d138742 8617done
d9898ee8 8618
d9898ee8 8619
d9898ee8 8620
8d138742
CE
8621ac_ext=cpp
8622ac_cpp='$CXXCPP $CPPFLAGS'
8623ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8624ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8625ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8626if test -z "$CXX"; then
8627 if test -n "$CCC"; then
8628 CXX=$CCC
8629 else
8630 if test -n "$ac_tool_prefix"; then
8631 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8632 do
8633 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8634set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8635{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8636$as_echo_n "checking for $ac_word... " >&6; }
8637if test "${ac_cv_prog_CXX+set}" = set; then
8638 $as_echo_n "(cached) " >&6
8639else
8640 if test -n "$CXX"; then
8641 ac_cv_prog_CXX="$CXX" # Let the user override the test.
8642else
8643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8644for as_dir in $PATH
8645do
8646 IFS=$as_save_IFS
8647 test -z "$as_dir" && as_dir=.
8648 for ac_exec_ext in '' $ac_executable_extensions; do
8649 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8650 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8651 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8652 break 2
8653 fi
8654done
8655done
8656IFS=$as_save_IFS
d9898ee8 8657
8d138742
CE
8658fi
8659fi
8660CXX=$ac_cv_prog_CXX
8661if test -n "$CXX"; then
8662 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
8663$as_echo "$CXX" >&6; }
8664else
8665 { $as_echo "$as_me:$LINENO: result: no" >&5
8666$as_echo "no" >&6; }
8667fi
d9898ee8 8668
d9898ee8 8669
8d138742
CE
8670 test -n "$CXX" && break
8671 done
8672fi
8673if test -z "$CXX"; then
8674 ac_ct_CXX=$CXX
8675 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8676do
8677 # Extract the first word of "$ac_prog", so it can be a program name with args.
8678set dummy $ac_prog; ac_word=$2
8679{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8680$as_echo_n "checking for $ac_word... " >&6; }
8681if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
8682 $as_echo_n "(cached) " >&6
8683else
8684 if test -n "$ac_ct_CXX"; then
8685 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8686else
8687as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8688for as_dir in $PATH
8689do
8690 IFS=$as_save_IFS
8691 test -z "$as_dir" && as_dir=.
8692 for ac_exec_ext in '' $ac_executable_extensions; do
8693 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8694 ac_cv_prog_ac_ct_CXX="$ac_prog"
8695 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8696 break 2
8697 fi
8698done
8699done
8700IFS=$as_save_IFS
d9898ee8 8701
8d138742
CE
8702fi
8703fi
8704ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8705if test -n "$ac_ct_CXX"; then
8706 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
8707$as_echo "$ac_ct_CXX" >&6; }
8708else
8709 { $as_echo "$as_me:$LINENO: result: no" >&5
8710$as_echo "no" >&6; }
8711fi
d9898ee8 8712
d9898ee8 8713
8d138742
CE
8714 test -n "$ac_ct_CXX" && break
8715done
d9898ee8 8716
8d138742
CE
8717 if test "x$ac_ct_CXX" = x; then
8718 CXX="g++"
8719 else
8720 case $cross_compiling:$ac_tool_warned in
8721yes:)
8722{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8723$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8724ac_tool_warned=yes ;;
8725esac
8726 CXX=$ac_ct_CXX
8727 fi
8728fi
d9898ee8 8729
8d138742
CE
8730 fi
8731fi
8732# Provide some information about the compiler.
8733$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
8734set X $ac_compile
8735ac_compiler=$2
8736{ (ac_try="$ac_compiler --version >&5"
8737case "(($ac_try" in
8738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8739 *) ac_try_echo=$ac_try;;
8740esac
8741eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8742$as_echo "$ac_try_echo") >&5
8743 (eval "$ac_compiler --version >&5") 2>&5
8744 ac_status=$?
8745 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8746 (exit $ac_status); }
8747{ (ac_try="$ac_compiler -v >&5"
8748case "(($ac_try" in
8749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8750 *) ac_try_echo=$ac_try;;
8751esac
8752eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8753$as_echo "$ac_try_echo") >&5
8754 (eval "$ac_compiler -v >&5") 2>&5
8755 ac_status=$?
8756 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8757 (exit $ac_status); }
8758{ (ac_try="$ac_compiler -V >&5"
8759case "(($ac_try" in
8760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8761 *) ac_try_echo=$ac_try;;
8762esac
8763eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8764$as_echo "$ac_try_echo") >&5
8765 (eval "$ac_compiler -V >&5") 2>&5
8766 ac_status=$?
8767 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8768 (exit $ac_status); }
d9898ee8 8769
8d138742
CE
8770{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
8771$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
8772if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
8773 $as_echo_n "(cached) " >&6
8774else
8775 cat >conftest.$ac_ext <<_ACEOF
8776/* confdefs.h. */
8777_ACEOF
8778cat confdefs.h >>conftest.$ac_ext
8779cat >>conftest.$ac_ext <<_ACEOF
8780/* end confdefs.h. */
d9898ee8 8781
8d138742
CE
8782int
8783main ()
8784{
8785#ifndef __GNUC__
8786 choke me
8787#endif
d9898ee8 8788
8d138742
CE
8789 ;
8790 return 0;
8791}
8792_ACEOF
8793rm -f conftest.$ac_objext
8794if { (ac_try="$ac_compile"
8795case "(($ac_try" in
8796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8797 *) ac_try_echo=$ac_try;;
8798esac
8799eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8800$as_echo "$ac_try_echo") >&5
8801 (eval "$ac_compile") 2>conftest.er1
8802 ac_status=$?
8803 grep -v '^ *+' conftest.er1 >conftest.err
8804 rm -f conftest.er1
8805 cat conftest.err >&5
8806 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8807 (exit $ac_status); } && {
8808 test -z "$ac_cxx_werror_flag" ||
8809 test ! -s conftest.err
8810 } && test -s conftest.$ac_objext; then
8811 ac_compiler_gnu=yes
8812else
8813 $as_echo "$as_me: failed program was:" >&5
8814sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 8815
8d138742
CE
8816 ac_compiler_gnu=no
8817fi
d9898ee8 8818
8d138742
CE
8819rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8820ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
d9898ee8 8821
8d138742
CE
8822fi
8823{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
8824$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
8825if test $ac_compiler_gnu = yes; then
8826 GXX=yes
8827else
8828 GXX=
8829fi
8830ac_test_CXXFLAGS=${CXXFLAGS+set}
8831ac_save_CXXFLAGS=$CXXFLAGS
8832{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
8833$as_echo_n "checking whether $CXX accepts -g... " >&6; }
8834if test "${ac_cv_prog_cxx_g+set}" = set; then
8835 $as_echo_n "(cached) " >&6
8836else
8837 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
8838 ac_cxx_werror_flag=yes
8839 ac_cv_prog_cxx_g=no
8840 CXXFLAGS="-g"
8841 cat >conftest.$ac_ext <<_ACEOF
8842/* confdefs.h. */
8843_ACEOF
8844cat confdefs.h >>conftest.$ac_ext
8845cat >>conftest.$ac_ext <<_ACEOF
8846/* end confdefs.h. */
d9898ee8 8847
8d138742
CE
8848int
8849main ()
8850{
d9898ee8 8851
8d138742
CE
8852 ;
8853 return 0;
8854}
8855_ACEOF
8856rm -f conftest.$ac_objext
8857if { (ac_try="$ac_compile"
8858case "(($ac_try" in
8859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8860 *) ac_try_echo=$ac_try;;
8861esac
8862eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8863$as_echo "$ac_try_echo") >&5
8864 (eval "$ac_compile") 2>conftest.er1
8865 ac_status=$?
8866 grep -v '^ *+' conftest.er1 >conftest.err
8867 rm -f conftest.er1
8868 cat conftest.err >&5
8869 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8870 (exit $ac_status); } && {
8871 test -z "$ac_cxx_werror_flag" ||
8872 test ! -s conftest.err
8873 } && test -s conftest.$ac_objext; then
8874 ac_cv_prog_cxx_g=yes
8875else
8876 $as_echo "$as_me: failed program was:" >&5
8877sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 8878
8d138742
CE
8879 CXXFLAGS=""
8880 cat >conftest.$ac_ext <<_ACEOF
8881/* confdefs.h. */
8882_ACEOF
8883cat confdefs.h >>conftest.$ac_ext
8884cat >>conftest.$ac_ext <<_ACEOF
8885/* end confdefs.h. */
d9898ee8 8886
8d138742
CE
8887int
8888main ()
8889{
d9898ee8 8890
8d138742
CE
8891 ;
8892 return 0;
8893}
8894_ACEOF
8895rm -f conftest.$ac_objext
8896if { (ac_try="$ac_compile"
8897case "(($ac_try" in
8898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8899 *) ac_try_echo=$ac_try;;
8900esac
8901eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8902$as_echo "$ac_try_echo") >&5
8903 (eval "$ac_compile") 2>conftest.er1
8904 ac_status=$?
8905 grep -v '^ *+' conftest.er1 >conftest.err
8906 rm -f conftest.er1
8907 cat conftest.err >&5
8908 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8909 (exit $ac_status); } && {
8910 test -z "$ac_cxx_werror_flag" ||
8911 test ! -s conftest.err
8912 } && test -s conftest.$ac_objext; then
8913 :
8914else
8915 $as_echo "$as_me: failed program was:" >&5
8916sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 8917
8d138742
CE
8918 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8919 CXXFLAGS="-g"
8920 cat >conftest.$ac_ext <<_ACEOF
8921/* confdefs.h. */
8922_ACEOF
8923cat confdefs.h >>conftest.$ac_ext
8924cat >>conftest.$ac_ext <<_ACEOF
8925/* end confdefs.h. */
d9898ee8 8926
8d138742
CE
8927int
8928main ()
8929{
d9898ee8 8930
8d138742
CE
8931 ;
8932 return 0;
8933}
8934_ACEOF
8935rm -f conftest.$ac_objext
8936if { (ac_try="$ac_compile"
8937case "(($ac_try" in
8938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8939 *) ac_try_echo=$ac_try;;
8940esac
8941eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8942$as_echo "$ac_try_echo") >&5
8943 (eval "$ac_compile") 2>conftest.er1
8944 ac_status=$?
8945 grep -v '^ *+' conftest.er1 >conftest.err
8946 rm -f conftest.er1
8947 cat conftest.err >&5
8948 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8949 (exit $ac_status); } && {
8950 test -z "$ac_cxx_werror_flag" ||
8951 test ! -s conftest.err
8952 } && test -s conftest.$ac_objext; then
8953 ac_cv_prog_cxx_g=yes
8954else
8955 $as_echo "$as_me: failed program was:" >&5
8956sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 8957
d9898ee8 8958
8d138742 8959fi
d9898ee8 8960
8d138742
CE
8961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8962fi
d9898ee8 8963
8d138742
CE
8964rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8965fi
d9898ee8 8966
8d138742
CE
8967rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8968 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8969fi
8970{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
8971$as_echo "$ac_cv_prog_cxx_g" >&6; }
8972if test "$ac_test_CXXFLAGS" = set; then
8973 CXXFLAGS=$ac_save_CXXFLAGS
8974elif test $ac_cv_prog_cxx_g = yes; then
8975 if test "$GXX" = yes; then
8976 CXXFLAGS="-g -O2"
8977 else
8978 CXXFLAGS="-g"
8979 fi
8980else
8981 if test "$GXX" = yes; then
8982 CXXFLAGS="-O2"
8983 else
8984 CXXFLAGS=
8985 fi
8986fi
8987ac_ext=c
8988ac_cpp='$CPP $CPPFLAGS'
8989ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8990ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8991ac_compiler_gnu=$ac_cv_c_compiler_gnu
d9898ee8 8992
8d138742 8993depcc="$CXX" am_compiler_list=
d9898ee8 8994
8d138742
CE
8995{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
8996$as_echo_n "checking dependency style of $depcc... " >&6; }
8997if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
8998 $as_echo_n "(cached) " >&6
8999else
9000 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
9001 # We make a subdir and do the tests there. Otherwise we can end up
9002 # making bogus files that we don't know about and never remove. For
9003 # instance it was reported that on HP-UX the gcc test will end up
9004 # making a dummy file named `D' -- because `-MD' means `put the output
9005 # in D'.
9006 mkdir conftest.dir
9007 # Copy depcomp to subdir because otherwise we won't find it if we're
9008 # using a relative directory.
9009 cp "$am_depcomp" conftest.dir
9010 cd conftest.dir
9011 # We will build objects and dependencies in a subdirectory because
9012 # it helps to detect inapplicable dependency modes. For instance
9013 # both Tru64's cc and ICC support -MD to output dependencies as a
9014 # side effect of compilation, but ICC will put the dependencies in
9015 # the current directory while Tru64 will put them in the object
9016 # directory.
9017 mkdir sub
d9898ee8 9018
8d138742
CE
9019 am_cv_CXX_dependencies_compiler_type=none
9020 if test "$am_compiler_list" = ""; then
9021 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9022 fi
9023 am__universal=false
9024 case " $depcc " in #(
9025 *\ -arch\ *\ -arch\ *) am__universal=true ;;
9026 esac
d9898ee8 9027
8d138742
CE
9028 for depmode in $am_compiler_list; do
9029 # Setup a source with many dependencies, because some compilers
9030 # like to wrap large dependency lists on column 80 (with \), and
9031 # we should not choose a depcomp mode which is confused by this.
9032 #
9033 # We need to recreate these files for each test, as the compiler may
9034 # overwrite some of them when testing with obscure command lines.
9035 # This happens at least with the AIX C compiler.
9036 : > sub/conftest.c
9037 for i in 1 2 3 4 5 6; do
9038 echo '#include "conftst'$i'.h"' >> sub/conftest.c
9039 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9040 # Solaris 8's {/usr,}/bin/sh.
9041 touch sub/conftst$i.h
9042 done
9043 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
9044
9045 # We check with `-c' and `-o' for the sake of the "dashmstdout"
9046 # mode. It turns out that the SunPro C++ compiler does not properly
9047 # handle `-M -o', and we need to detect this. Also, some Intel
9048 # versions had trouble with output in subdirs
9049 am__obj=sub/conftest.${OBJEXT-o}
9050 am__minus_obj="-o $am__obj"
9051 case $depmode in
9052 gcc)
9053 # This depmode causes a compiler race in universal mode.
9054 test "$am__universal" = false || continue
9055 ;;
9056 nosideeffect)
9057 # after this tag, mechanisms are not by side-effect, so they'll
9058 # only be used when explicitly requested
9059 if test "x$enable_dependency_tracking" = xyes; then
9060 continue
d9898ee8 9061 else
8d138742 9062 break
d9898ee8 9063 fi
9064 ;;
8d138742
CE
9065 msvisualcpp | msvcmsys)
9066 # This compiler won't grok `-c -o', but also, the minuso test has
9067 # not run yet. These depmodes are late enough in the game, and
9068 # so weak that their functioning should not be impacted.
9069 am__obj=conftest.${OBJEXT-o}
9070 am__minus_obj=
d9898ee8 9071 ;;
8d138742 9072 none) break ;;
d9898ee8 9073 esac
8d138742
CE
9074 if depmode=$depmode \
9075 source=sub/conftest.c object=$am__obj \
9076 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9077 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
9078 >/dev/null 2>conftest.err &&
9079 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
9080 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
9081 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
9082 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
9083 # icc doesn't choke on unknown options, it will just issue warnings
9084 # or remarks (even with -Werror). So we grep stderr for any message
9085 # that says an option was ignored or not supported.
9086 # When given -MP, icc 7.0 and 7.1 complain thusly:
9087 # icc: Command line warning: ignoring option '-M'; no argument required
9088 # The diagnosis changed in icc 8.0:
9089 # icc: Command line remark: option '-MP' not supported
9090 if (grep 'ignoring option' conftest.err ||
9091 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9092 am_cv_CXX_dependencies_compiler_type=$depmode
9093 break
9094 fi
9095 fi
9096 done
d9898ee8 9097
8d138742
CE
9098 cd ..
9099 rm -rf conftest.dir
9100else
9101 am_cv_CXX_dependencies_compiler_type=none
9102fi
d9898ee8 9103
8d138742
CE
9104fi
9105{ $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
9106$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
9107CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
d9898ee8 9108
8d138742
CE
9109 if
9110 test "x$enable_dependency_tracking" != xno \
9111 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
9112 am__fastdepCXX_TRUE=
9113 am__fastdepCXX_FALSE='#'
9114else
9115 am__fastdepCXX_TRUE='#'
9116 am__fastdepCXX_FALSE=
9117fi
d9898ee8 9118
ac40fd9e 9119
8d138742
CE
9120if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9121 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9122 (test "X$CXX" != "Xg++"))) ; then
9123 ac_ext=cpp
9124ac_cpp='$CXXCPP $CPPFLAGS'
9125ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9126ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9127ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9128{ $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
9129$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9130if test -z "$CXXCPP"; then
9131 if test "${ac_cv_prog_CXXCPP+set}" = set; then
9132 $as_echo_n "(cached) " >&6
d9898ee8 9133else
8d138742
CE
9134 # Double quotes because CXXCPP needs to be expanded
9135 for CXXCPP in "$CXX -E" "/lib/cpp"
9136 do
9137 ac_preproc_ok=false
9138for ac_cxx_preproc_warn_flag in '' yes
9139do
9140 # Use a header file that comes with gcc, so configuring glibc
9141 # with a fresh cross-compiler works.
9142 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9143 # <limits.h> exists even on freestanding compilers.
9144 # On the NeXT, cc -E runs the code through the compiler's parser,
9145 # not just through cpp. "Syntax error" is here to catch this case.
9146 cat >conftest.$ac_ext <<_ACEOF
9147/* confdefs.h. */
9148_ACEOF
9149cat confdefs.h >>conftest.$ac_ext
9150cat >>conftest.$ac_ext <<_ACEOF
9151/* end confdefs.h. */
9152#ifdef __STDC__
9153# include <limits.h>
9154#else
9155# include <assert.h>
9156#endif
9157 Syntax error
9158_ACEOF
9159if { (ac_try="$ac_cpp conftest.$ac_ext"
9160case "(($ac_try" in
9161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9162 *) ac_try_echo=$ac_try;;
9163esac
9164eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9165$as_echo "$ac_try_echo") >&5
9166 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9167 ac_status=$?
9168 grep -v '^ *+' conftest.er1 >conftest.err
9169 rm -f conftest.er1
9170 cat conftest.err >&5
9171 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9172 (exit $ac_status); } >/dev/null && {
9173 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
9174 test ! -s conftest.err
9175 }; then
9176 :
9177else
9178 $as_echo "$as_me: failed program was:" >&5
9179sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 9180
8d138742
CE
9181 # Broken: fails on valid input.
9182continue
9183fi
d9898ee8 9184
8d138742 9185rm -f conftest.err conftest.$ac_ext
d9898ee8 9186
8d138742
CE
9187 # OK, works on sane cases. Now check whether nonexistent headers
9188 # can be detected and how.
9189 cat >conftest.$ac_ext <<_ACEOF
9190/* confdefs.h. */
9191_ACEOF
9192cat confdefs.h >>conftest.$ac_ext
9193cat >>conftest.$ac_ext <<_ACEOF
9194/* end confdefs.h. */
9195#include <ac_nonexistent.h>
9196_ACEOF
9197if { (ac_try="$ac_cpp conftest.$ac_ext"
9198case "(($ac_try" in
9199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9200 *) ac_try_echo=$ac_try;;
9201esac
9202eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9203$as_echo "$ac_try_echo") >&5
9204 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9205 ac_status=$?
9206 grep -v '^ *+' conftest.er1 >conftest.err
9207 rm -f conftest.er1
9208 cat conftest.err >&5
9209 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9210 (exit $ac_status); } >/dev/null && {
9211 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
9212 test ! -s conftest.err
9213 }; then
9214 # Broken: success on invalid input.
9215continue
9216else
9217 $as_echo "$as_me: failed program was:" >&5
9218sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 9219
8d138742
CE
9220 # Passes both tests.
9221ac_preproc_ok=:
9222break
9223fi
d9898ee8 9224
8d138742 9225rm -f conftest.err conftest.$ac_ext
d9898ee8 9226
8d138742
CE
9227done
9228# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9229rm -f conftest.err conftest.$ac_ext
9230if $ac_preproc_ok; then
9231 break
9232fi
d9898ee8 9233
8d138742
CE
9234 done
9235 ac_cv_prog_CXXCPP=$CXXCPP
d9898ee8 9236
8d138742
CE
9237fi
9238 CXXCPP=$ac_cv_prog_CXXCPP
9239else
9240 ac_cv_prog_CXXCPP=$CXXCPP
9241fi
9242{ $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
9243$as_echo "$CXXCPP" >&6; }
9244ac_preproc_ok=false
9245for ac_cxx_preproc_warn_flag in '' yes
9246do
9247 # Use a header file that comes with gcc, so configuring glibc
9248 # with a fresh cross-compiler works.
9249 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9250 # <limits.h> exists even on freestanding compilers.
9251 # On the NeXT, cc -E runs the code through the compiler's parser,
9252 # not just through cpp. "Syntax error" is here to catch this case.
9253 cat >conftest.$ac_ext <<_ACEOF
9254/* confdefs.h. */
9255_ACEOF
9256cat confdefs.h >>conftest.$ac_ext
9257cat >>conftest.$ac_ext <<_ACEOF
9258/* end confdefs.h. */
9259#ifdef __STDC__
9260# include <limits.h>
9261#else
9262# include <assert.h>
9263#endif
9264 Syntax error
9265_ACEOF
9266if { (ac_try="$ac_cpp conftest.$ac_ext"
9267case "(($ac_try" in
9268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9269 *) ac_try_echo=$ac_try;;
9270esac
9271eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9272$as_echo "$ac_try_echo") >&5
9273 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9274 ac_status=$?
9275 grep -v '^ *+' conftest.er1 >conftest.err
9276 rm -f conftest.er1
9277 cat conftest.err >&5
9278 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9279 (exit $ac_status); } >/dev/null && {
9280 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
9281 test ! -s conftest.err
9282 }; then
9283 :
9284else
9285 $as_echo "$as_me: failed program was:" >&5
9286sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 9287
8d138742
CE
9288 # Broken: fails on valid input.
9289continue
9290fi
d9898ee8 9291
8d138742 9292rm -f conftest.err conftest.$ac_ext
d9898ee8 9293
8d138742
CE
9294 # OK, works on sane cases. Now check whether nonexistent headers
9295 # can be detected and how.
9296 cat >conftest.$ac_ext <<_ACEOF
9297/* confdefs.h. */
9298_ACEOF
9299cat confdefs.h >>conftest.$ac_ext
9300cat >>conftest.$ac_ext <<_ACEOF
9301/* end confdefs.h. */
9302#include <ac_nonexistent.h>
9303_ACEOF
9304if { (ac_try="$ac_cpp conftest.$ac_ext"
9305case "(($ac_try" in
9306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9307 *) ac_try_echo=$ac_try;;
9308esac
9309eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9310$as_echo "$ac_try_echo") >&5
9311 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9312 ac_status=$?
9313 grep -v '^ *+' conftest.er1 >conftest.err
9314 rm -f conftest.er1
9315 cat conftest.err >&5
9316 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9317 (exit $ac_status); } >/dev/null && {
9318 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
9319 test ! -s conftest.err
9320 }; then
9321 # Broken: success on invalid input.
9322continue
9323else
9324 $as_echo "$as_me: failed program was:" >&5
9325sed 's/^/| /' conftest.$ac_ext >&5
ac40fd9e 9326
8d138742
CE
9327 # Passes both tests.
9328ac_preproc_ok=:
9329break
9330fi
d9898ee8 9331
8d138742 9332rm -f conftest.err conftest.$ac_ext
d9898ee8 9333
8d138742
CE
9334done
9335# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9336rm -f conftest.err conftest.$ac_ext
9337if $ac_preproc_ok; then
9338 :
9339else
9340 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
9341$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9342_lt_caught_CXX_error=yes; }
9343fi
d9898ee8 9344
8d138742
CE
9345ac_ext=c
9346ac_cpp='$CPP $CPPFLAGS'
9347ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9348ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9349ac_compiler_gnu=$ac_cv_c_compiler_gnu
d9898ee8 9350
8d138742
CE
9351else
9352 _lt_caught_CXX_error=yes
9353fi
d9898ee8 9354
d9898ee8 9355
d9898ee8 9356
d9898ee8 9357
d9898ee8 9358
8d138742 9359# Set options
d9898ee8 9360
d9898ee8 9361
d9898ee8 9362
8d138742 9363 enable_dlopen=no
d9898ee8 9364
d9898ee8 9365
8d138742 9366 enable_win32_dll=no
d9898ee8 9367
ac40fd9e 9368
8d138742
CE
9369 # Check whether --enable-shared was given.
9370if test "${enable_shared+set}" = set; then
9371 enableval=$enable_shared; p=${PACKAGE-default}
9372 case $enableval in
9373 yes) enable_shared=yes ;;
9374 no) enable_shared=no ;;
9375 *)
9376 enable_shared=no
9377 # Look at the argument we got. We use all the common list separators.
9378 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9379 for pkg in $enableval; do
9380 IFS="$lt_save_ifs"
9381 if test "X$pkg" = "X$p"; then
9382 enable_shared=yes
9383 fi
9384 done
9385 IFS="$lt_save_ifs"
9386 ;;
9387 esac
9388else
9389 enable_shared=yes
9390fi
d9898ee8 9391
d9898ee8 9392
d9898ee8 9393
d9898ee8 9394
d9898ee8 9395
d9898ee8 9396
d9898ee8 9397
d9898ee8 9398
d9898ee8 9399
8d138742
CE
9400 # Check whether --enable-static was given.
9401if test "${enable_static+set}" = set; then
9402 enableval=$enable_static; p=${PACKAGE-default}
9403 case $enableval in
9404 yes) enable_static=yes ;;
9405 no) enable_static=no ;;
9406 *)
9407 enable_static=no
9408 # Look at the argument we got. We use all the common list separators.
9409 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9410 for pkg in $enableval; do
9411 IFS="$lt_save_ifs"
9412 if test "X$pkg" = "X$p"; then
9413 enable_static=yes
9414 fi
9415 done
9416 IFS="$lt_save_ifs"
9417 ;;
9418 esac
d9898ee8 9419else
8d138742 9420 enable_static=yes
d9898ee8 9421fi
d9898ee8 9422
d9898ee8 9423
d9898ee8 9424
d9898ee8 9425
d9898ee8 9426
d9898ee8 9427
d9898ee8 9428
d9898ee8 9429
d9898ee8 9430
dd184caf 9431
8d138742
CE
9432# Check whether --with-pic was given.
9433if test "${with_pic+set}" = set; then
9434 withval=$with_pic; pic_mode="$withval"
d9898ee8 9435else
8d138742
CE
9436 pic_mode=default
9437fi
d9898ee8 9438
d9898ee8 9439
8d138742 9440test -z "$pic_mode" && pic_mode=default
d9898ee8 9441
d9898ee8 9442
d9898ee8 9443
d9898ee8 9444
d9898ee8 9445
d9898ee8 9446
d9898ee8 9447
8d138742
CE
9448 # Check whether --enable-fast-install was given.
9449if test "${enable_fast_install+set}" = set; then
9450 enableval=$enable_fast_install; p=${PACKAGE-default}
9451 case $enableval in
9452 yes) enable_fast_install=yes ;;
9453 no) enable_fast_install=no ;;
9454 *)
9455 enable_fast_install=no
9456 # Look at the argument we got. We use all the common list separators.
9457 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9458 for pkg in $enableval; do
9459 IFS="$lt_save_ifs"
9460 if test "X$pkg" = "X$p"; then
9461 enable_fast_install=yes
9462 fi
9463 done
9464 IFS="$lt_save_ifs"
9465 ;;
9466 esac
d9898ee8 9467else
8d138742 9468 enable_fast_install=yes
d9898ee8 9469fi
dd184caf 9470
d9898ee8 9471
d9898ee8 9472
dd184caf 9473
d9898ee8 9474
d9898ee8 9475
d9898ee8 9476
d9898ee8 9477
d9898ee8 9478
d9898ee8 9479
dd184caf 9480
8d138742
CE
9481# This can be used to rebuild libtool when needed
9482LIBTOOL_DEPS="$ltmain"
d9898ee8 9483
8d138742
CE
9484# Always use our own libtool.
9485LIBTOOL='$(SHELL) $(top_builddir)/libtool'
d9898ee8 9486
dd184caf 9487
d9898ee8 9488
d9898ee8 9489
dd184caf 9490
d9898ee8 9491
d9898ee8 9492
dd184caf 9493
d9898ee8 9494
9495
d9898ee8 9496
9497
d9898ee8 9498
9499
d9898ee8 9500
9501
d9898ee8 9502
9503
d9898ee8 9504
d9898ee8 9505
d9898ee8 9506
d9898ee8 9507
d9898ee8 9508
d9898ee8 9509
d9898ee8 9510
8d138742
CE
9511test -z "$LN_S" && LN_S="ln -s"
9512
9513
d9898ee8 9514
d9898ee8 9515
d9898ee8 9516
d9898ee8 9517
d9898ee8 9518
d9898ee8 9519
d9898ee8 9520
d9898ee8 9521
9522
8d138742
CE
9523
9524
9525
9526if test -n "${ZSH_VERSION+set}" ; then
9527 setopt NO_GLOB_SUBST
d9898ee8 9528fi
d9898ee8 9529
8d138742
CE
9530{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
9531$as_echo_n "checking for objdir... " >&6; }
9532if test "${lt_cv_objdir+set}" = set; then
9533 $as_echo_n "(cached) " >&6
d9898ee8 9534else
8d138742
CE
9535 rm -f .libs 2>/dev/null
9536mkdir .libs 2>/dev/null
9537if test -d .libs; then
9538 lt_cv_objdir=.libs
d9898ee8 9539else
8d138742
CE
9540 # MS-DOS does not allow filenames that begin with a dot.
9541 lt_cv_objdir=_libs
9542fi
9543rmdir .libs 2>/dev/null
9544fi
9545{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
9546$as_echo "$lt_cv_objdir" >&6; }
9547objdir=$lt_cv_objdir
9548
9549
9550
9551
9552
9553cat >>confdefs.h <<_ACEOF
9554#define LT_OBJDIR "$lt_cv_objdir/"
9555_ACEOF
d9898ee8 9556
d9898ee8 9557
d9898ee8 9558
d9898ee8 9559
d9898ee8 9560
d9898ee8 9561
d9898ee8 9562
d9898ee8 9563
d9898ee8 9564
9565
d9898ee8 9566
d9898ee8 9567
d9898ee8 9568
d9898ee8 9569
9570
d9898ee8 9571
d9898ee8 9572
d9898ee8 9573case $host_os in
9574aix3*)
8d138742
CE
9575 # AIX sometimes has problems with the GCC collect2 program. For some
9576 # reason, if we set the COLLECT_NAMES environment variable, the problems
9577 # vanish in a puff of smoke.
9578 if test "X${COLLECT_NAMES+set}" != Xset; then
9579 COLLECT_NAMES=
9580 export COLLECT_NAMES
d9898ee8 9581 fi
9582 ;;
d9898ee8 9583esac
d9898ee8 9584
8d138742
CE
9585# Sed substitution that helps us do robust quoting. It backslashifies
9586# metacharacters that are still active within double-quoted strings.
9587sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
d9898ee8 9588
8d138742
CE
9589# Same as above, but do not quote variable references.
9590double_quote_subst='s/\(["`\\]\)/\\\1/g'
d9898ee8 9591
8d138742
CE
9592# Sed substitution to delay expansion of an escaped shell variable in a
9593# double_quote_subst'ed string.
9594delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
d9898ee8 9595
8d138742
CE
9596# Sed substitution to delay expansion of an escaped single quote.
9597delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
d9898ee8 9598
8d138742
CE
9599# Sed substitution to avoid accidental globbing in evaled expressions
9600no_glob_subst='s/\*/\\\*/g'
d9898ee8 9601
8d138742
CE
9602# Global variables:
9603ofile=libtool
9604can_build_shared=yes
d9898ee8 9605
8d138742
CE
9606# All known linkers require a `.a' archive for static linking (except MSVC,
9607# which needs '.lib').
9608libext=a
d9898ee8 9609
8d138742 9610with_gnu_ld="$lt_cv_prog_gnu_ld"
d9898ee8 9611
8d138742
CE
9612old_CC="$CC"
9613old_CFLAGS="$CFLAGS"
d9898ee8 9614
8d138742
CE
9615# Set sane defaults for various variables
9616test -z "$CC" && CC=cc
9617test -z "$LTCC" && LTCC=$CC
9618test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9619test -z "$LD" && LD=ld
9620test -z "$ac_objext" && ac_objext=o
d9898ee8 9621
8d138742
CE
9622for cc_temp in $compiler""; do
9623 case $cc_temp in
9624 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9625 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9626 \-*) ;;
9627 *) break;;
9628 esac
9629done
9630cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
d9898ee8 9631
d9898ee8 9632
8d138742
CE
9633# Only perform the check for file, if the check method requires it
9634test -z "$MAGIC_CMD" && MAGIC_CMD=file
9635case $deplibs_check_method in
9636file_magic*)
9637 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9638 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
9639$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9640if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9641 $as_echo_n "(cached) " >&6
9642else
9643 case $MAGIC_CMD in
9644[\\/*] | ?:[\\/]*)
9645 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9646 ;;
9647*)
9648 lt_save_MAGIC_CMD="$MAGIC_CMD"
9649 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9650 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9651 for ac_dir in $ac_dummy; do
9652 IFS="$lt_save_ifs"
9653 test -z "$ac_dir" && ac_dir=.
9654 if test -f $ac_dir/${ac_tool_prefix}file; then
9655 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9656 if test -n "$file_magic_test_file"; then
9657 case $deplibs_check_method in
9658 "file_magic "*)
9659 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9660 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9661 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9662 $EGREP "$file_magic_regex" > /dev/null; then
9663 :
9664 else
9665 cat <<_LT_EOF 1>&2
d9898ee8 9666
8d138742
CE
9667*** Warning: the command libtool uses to detect shared libraries,
9668*** $file_magic_cmd, produces output that libtool cannot recognize.
9669*** The result is that libtool may fail to recognize shared libraries
9670*** as such. This will affect the creation of libtool libraries that
9671*** depend on shared libraries, but programs linked with such libtool
9672*** libraries will work regardless of this problem. Nevertheless, you
9673*** may want to report the problem to your system manager and/or to
9674*** bug-libtool@gnu.org
d9898ee8 9675
8d138742
CE
9676_LT_EOF
9677 fi ;;
9678 esac
9679 fi
9680 break
9681 fi
9682 done
9683 IFS="$lt_save_ifs"
9684 MAGIC_CMD="$lt_save_MAGIC_CMD"
9685 ;;
9686esac
9687fi
d9898ee8 9688
8d138742
CE
9689MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9690if test -n "$MAGIC_CMD"; then
9691 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9692$as_echo "$MAGIC_CMD" >&6; }
9693else
9694 { $as_echo "$as_me:$LINENO: result: no" >&5
9695$as_echo "no" >&6; }
9696fi
d9898ee8 9697
d9898ee8 9698
d9898ee8 9699
d9898ee8 9700
d9898ee8 9701
8d138742
CE
9702if test -z "$lt_cv_path_MAGIC_CMD"; then
9703 if test -n "$ac_tool_prefix"; then
9704 { $as_echo "$as_me:$LINENO: checking for file" >&5
9705$as_echo_n "checking for file... " >&6; }
9706if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9707 $as_echo_n "(cached) " >&6
9708else
9709 case $MAGIC_CMD in
9710[\\/*] | ?:[\\/]*)
9711 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9712 ;;
9713*)
9714 lt_save_MAGIC_CMD="$MAGIC_CMD"
9715 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9716 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9717 for ac_dir in $ac_dummy; do
9718 IFS="$lt_save_ifs"
9719 test -z "$ac_dir" && ac_dir=.
9720 if test -f $ac_dir/file; then
9721 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9722 if test -n "$file_magic_test_file"; then
9723 case $deplibs_check_method in
9724 "file_magic "*)
9725 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9726 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9727 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9728 $EGREP "$file_magic_regex" > /dev/null; then
9729 :
9730 else
9731 cat <<_LT_EOF 1>&2
d9898ee8 9732
8d138742
CE
9733*** Warning: the command libtool uses to detect shared libraries,
9734*** $file_magic_cmd, produces output that libtool cannot recognize.
9735*** The result is that libtool may fail to recognize shared libraries
9736*** as such. This will affect the creation of libtool libraries that
9737*** depend on shared libraries, but programs linked with such libtool
9738*** libraries will work regardless of this problem. Nevertheless, you
9739*** may want to report the problem to your system manager and/or to
9740*** bug-libtool@gnu.org
d9898ee8 9741
8d138742
CE
9742_LT_EOF
9743 fi ;;
9744 esac
9745 fi
9746 break
9747 fi
9748 done
9749 IFS="$lt_save_ifs"
9750 MAGIC_CMD="$lt_save_MAGIC_CMD"
9751 ;;
9752esac
9753fi
d9898ee8 9754
8d138742
CE
9755MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9756if test -n "$MAGIC_CMD"; then
9757 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9758$as_echo "$MAGIC_CMD" >&6; }
9759else
9760 { $as_echo "$as_me:$LINENO: result: no" >&5
9761$as_echo "no" >&6; }
9762fi
d9898ee8 9763
d9898ee8 9764
8d138742
CE
9765 else
9766 MAGIC_CMD=:
9767 fi
9768fi
d9898ee8 9769
8d138742
CE
9770 fi
9771 ;;
9772esac
d9898ee8 9773
8d138742 9774# Use C for the default configuration in the libtool script
d9898ee8 9775
8d138742
CE
9776lt_save_CC="$CC"
9777ac_ext=c
9778ac_cpp='$CPP $CPPFLAGS'
9779ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9780ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9781ac_compiler_gnu=$ac_cv_c_compiler_gnu
d9898ee8 9782
d9898ee8 9783
8d138742
CE
9784# Source file extension for C test sources.
9785ac_ext=c
d9898ee8 9786
8d138742
CE
9787# Object file extension for compiled C test sources.
9788objext=o
9789objext=$objext
d9898ee8 9790
8d138742
CE
9791# Code to be used in simple compile tests
9792lt_simple_compile_test_code="int some_variable = 0;"
d9898ee8 9793
8d138742
CE
9794# Code to be used in simple link tests
9795lt_simple_link_test_code='int main(){return(0);}'
d9898ee8 9796
d9898ee8 9797
d9898ee8 9798
d9898ee8 9799
d9898ee8 9800
d9898ee8 9801
d9898ee8 9802
8d138742
CE
9803# If no C compiler was specified, use CC.
9804LTCC=${LTCC-"$CC"}
d9898ee8 9805
8d138742
CE
9806# If no C compiler flags were specified, use CFLAGS.
9807LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
d9898ee8 9808
8d138742
CE
9809# Allow CC to be a program name with arguments.
9810compiler=$CC
d9898ee8 9811
8d138742
CE
9812# Save the default compiler, since it gets overwritten when the other
9813# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9814compiler_DEFAULT=$CC
d9898ee8 9815
8d138742
CE
9816# save warnings/boilerplate of simple test code
9817ac_outfile=conftest.$ac_objext
9818echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9819eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9820_lt_compiler_boilerplate=`cat conftest.err`
9821$RM conftest*
d9898ee8 9822
8d138742
CE
9823ac_outfile=conftest.$ac_objext
9824echo "$lt_simple_link_test_code" >conftest.$ac_ext
9825eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9826_lt_linker_boilerplate=`cat conftest.err`
9827$RM -r conftest*
d9898ee8 9828
d9898ee8 9829
8d138742 9830if test -n "$compiler"; then
d9898ee8 9831
8d138742 9832lt_prog_compiler_no_builtin_flag=
d9898ee8 9833
8d138742
CE
9834if test "$GCC" = yes; then
9835 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
d9898ee8 9836
8d138742
CE
9837 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9838$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9839if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9840 $as_echo_n "(cached) " >&6
9841else
9842 lt_cv_prog_compiler_rtti_exceptions=no
9843 ac_outfile=conftest.$ac_objext
9844 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9845 lt_compiler_flag="-fno-rtti -fno-exceptions"
9846 # Insert the option either (1) after the last *FLAGS variable, or
9847 # (2) before a word containing "conftest.", or (3) at the end.
9848 # Note that $ac_compile itself does not contain backslashes and begins
9849 # with a dollar sign (not a hyphen), so the echo should work correctly.
9850 # The option is referenced via a variable to avoid confusing sed.
9851 lt_compile=`echo "$ac_compile" | $SED \
9852 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9853 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9854 -e 's:$: $lt_compiler_flag:'`
9855 (eval echo "\"\$as_me:9855: $lt_compile\"" >&5)
9856 (eval "$lt_compile" 2>conftest.err)
9857 ac_status=$?
9858 cat conftest.err >&5
9859 echo "$as_me:9859: \$? = $ac_status" >&5
9860 if (exit $ac_status) && test -s "$ac_outfile"; then
9861 # The compiler can only warn and ignore the option if not recognized
9862 # So say no if there are warnings other than the usual output.
9863 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9864 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9865 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9866 lt_cv_prog_compiler_rtti_exceptions=yes
9867 fi
9868 fi
9869 $RM conftest*
d9898ee8 9870
8d138742
CE
9871fi
9872{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9873$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
d9898ee8 9874
8d138742
CE
9875if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9876 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9877else
9878 :
9879fi
d9898ee8 9880
8d138742 9881fi
d9898ee8 9882
d9898ee8 9883
d9898ee8 9884
d9898ee8 9885
d9898ee8 9886
d9898ee8 9887
8d138742
CE
9888 lt_prog_compiler_wl=
9889lt_prog_compiler_pic=
9890lt_prog_compiler_static=
d9898ee8 9891
8d138742
CE
9892{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9893$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
d9898ee8 9894
8d138742
CE
9895 if test "$GCC" = yes; then
9896 lt_prog_compiler_wl='-Wl,'
9897 lt_prog_compiler_static='-static'
d9898ee8 9898
8d138742
CE
9899 case $host_os in
9900 aix*)
9901 # All AIX code is PIC.
9902 if test "$host_cpu" = ia64; then
9903 # AIX 5 now supports IA64 processor
9904 lt_prog_compiler_static='-Bstatic'
9905 fi
9906 ;;
d9898ee8 9907
8d138742
CE
9908 amigaos*)
9909 case $host_cpu in
9910 powerpc)
9911 # see comment about AmigaOS4 .so support
9912 lt_prog_compiler_pic='-fPIC'
9913 ;;
9914 m68k)
9915 # FIXME: we need at least 68020 code to build shared libraries, but
9916 # adding the `-m68020' flag to GCC prevents building anything better,
9917 # like `-m68040'.
9918 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9919 ;;
9920 esac
9921 ;;
d9898ee8 9922
8d138742
CE
9923 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9924 # PIC is the default for these OSes.
9925 ;;
d9898ee8 9926
8d138742
CE
9927 mingw* | cygwin* | pw32* | os2* | cegcc*)
9928 # This hack is so that the source file can tell whether it is being
9929 # built for inclusion in a dll (and should export symbols for example).
9930 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9931 # (--disable-auto-import) libraries
9932 lt_prog_compiler_pic='-DDLL_EXPORT'
9933 ;;
d9898ee8 9934
8d138742
CE
9935 darwin* | rhapsody*)
9936 # PIC is the default on this platform
9937 # Common symbols not allowed in MH_DYLIB files
9938 lt_prog_compiler_pic='-fno-common'
9939 ;;
d9898ee8 9940
8d138742
CE
9941 hpux*)
9942 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9943 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9944 # sets the default TLS model and affects inlining.
9945 case $host_cpu in
9946 hppa*64*)
9947 # +Z the default
9948 ;;
9949 *)
9950 lt_prog_compiler_pic='-fPIC'
9951 ;;
9952 esac
9953 ;;
d9898ee8 9954
8d138742
CE
9955 interix[3-9]*)
9956 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9957 # Instead, we relocate shared libraries at runtime.
9958 ;;
d9898ee8 9959
8d138742
CE
9960 msdosdjgpp*)
9961 # Just because we use GCC doesn't mean we suddenly get shared libraries
9962 # on systems that don't support them.
9963 lt_prog_compiler_can_build_shared=no
9964 enable_shared=no
9965 ;;
d9898ee8 9966
8d138742
CE
9967 *nto* | *qnx*)
9968 # QNX uses GNU C++, but need to define -shared option too, otherwise
9969 # it will coredump.
9970 lt_prog_compiler_pic='-fPIC -shared'
9971 ;;
d9898ee8 9972
8d138742
CE
9973 sysv4*MP*)
9974 if test -d /usr/nec; then
9975 lt_prog_compiler_pic=-Kconform_pic
9976 fi
9977 ;;
d9898ee8 9978
8d138742
CE
9979 *)
9980 lt_prog_compiler_pic='-fPIC'
9981 ;;
9982 esac
9983 else
9984 # PORTME Check for flag to pass linker flags through the system compiler.
9985 case $host_os in
9986 aix*)
9987 lt_prog_compiler_wl='-Wl,'
9988 if test "$host_cpu" = ia64; then
9989 # AIX 5 now supports IA64 processor
9990 lt_prog_compiler_static='-Bstatic'
9991 else
9992 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9993 fi
9994 ;;
d9898ee8 9995
8d138742
CE
9996 mingw* | cygwin* | pw32* | os2* | cegcc*)
9997 # This hack is so that the source file can tell whether it is being
9998 # built for inclusion in a dll (and should export symbols for example).
9999 lt_prog_compiler_pic='-DDLL_EXPORT'
10000 ;;
d9898ee8 10001
8d138742
CE
10002 hpux9* | hpux10* | hpux11*)
10003 lt_prog_compiler_wl='-Wl,'
10004 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10005 # not for PA HP-UX.
10006 case $host_cpu in
10007 hppa*64*|ia64*)
10008 # +Z the default
10009 ;;
10010 *)
10011 lt_prog_compiler_pic='+Z'
10012 ;;
10013 esac
10014 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10015 lt_prog_compiler_static='${wl}-a ${wl}archive'
10016 ;;
d9898ee8 10017
8d138742
CE
10018 irix5* | irix6* | nonstopux*)
10019 lt_prog_compiler_wl='-Wl,'
10020 # PIC (with -KPIC) is the default.
10021 lt_prog_compiler_static='-non_shared'
10022 ;;
d9898ee8 10023
8d138742
CE
10024 linux* | k*bsd*-gnu)
10025 case $cc_basename in
10026 # old Intel for x86_64 which still supported -KPIC.
10027 ecc*)
10028 lt_prog_compiler_wl='-Wl,'
10029 lt_prog_compiler_pic='-KPIC'
10030 lt_prog_compiler_static='-static'
10031 ;;
10032 # icc used to be incompatible with GCC.
10033 # ICC 10 doesn't accept -KPIC any more.
10034 icc* | ifort*)
10035 lt_prog_compiler_wl='-Wl,'
10036 lt_prog_compiler_pic='-fPIC'
10037 lt_prog_compiler_static='-static'
10038 ;;
10039 # Lahey Fortran 8.1.
10040 lf95*)
10041 lt_prog_compiler_wl='-Wl,'
10042 lt_prog_compiler_pic='--shared'
10043 lt_prog_compiler_static='--static'
10044 ;;
10045 pgcc* | pgf77* | pgf90* | pgf95*)
10046 # Portland Group compilers (*not* the Pentium gcc compiler,
10047 # which looks to be a dead project)
10048 lt_prog_compiler_wl='-Wl,'
10049 lt_prog_compiler_pic='-fpic'
10050 lt_prog_compiler_static='-Bstatic'
10051 ;;
10052 ccc*)
10053 lt_prog_compiler_wl='-Wl,'
10054 # All Alpha code is PIC.
10055 lt_prog_compiler_static='-non_shared'
10056 ;;
10057 xl*)
10058 # IBM XL C 8.0/Fortran 10.1 on PPC
10059 lt_prog_compiler_wl='-Wl,'
10060 lt_prog_compiler_pic='-qpic'
10061 lt_prog_compiler_static='-qstaticlink'
10062 ;;
10063 *)
10064 case `$CC -V 2>&1 | sed 5q` in
10065 *Sun\ C*)
10066 # Sun C 5.9
10067 lt_prog_compiler_pic='-KPIC'
10068 lt_prog_compiler_static='-Bstatic'
10069 lt_prog_compiler_wl='-Wl,'
10070 ;;
10071 *Sun\ F*)
10072 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10073 lt_prog_compiler_pic='-KPIC'
10074 lt_prog_compiler_static='-Bstatic'
10075 lt_prog_compiler_wl=''
10076 ;;
10077 esac
10078 ;;
10079 esac
10080 ;;
d9898ee8 10081
8d138742
CE
10082 newsos6)
10083 lt_prog_compiler_pic='-KPIC'
10084 lt_prog_compiler_static='-Bstatic'
10085 ;;
d9898ee8 10086
8d138742
CE
10087 *nto* | *qnx*)
10088 # QNX uses GNU C++, but need to define -shared option too, otherwise
10089 # it will coredump.
10090 lt_prog_compiler_pic='-fPIC -shared'
10091 ;;
d9898ee8 10092
8d138742
CE
10093 osf3* | osf4* | osf5*)
10094 lt_prog_compiler_wl='-Wl,'
10095 # All OSF/1 code is PIC.
10096 lt_prog_compiler_static='-non_shared'
10097 ;;
d9898ee8 10098
8d138742
CE
10099 rdos*)
10100 lt_prog_compiler_static='-non_shared'
10101 ;;
d9898ee8 10102
8d138742
CE
10103 solaris*)
10104 lt_prog_compiler_pic='-KPIC'
10105 lt_prog_compiler_static='-Bstatic'
10106 case $cc_basename in
10107 f77* | f90* | f95*)
10108 lt_prog_compiler_wl='-Qoption ld ';;
10109 *)
10110 lt_prog_compiler_wl='-Wl,';;
10111 esac
10112 ;;
d9898ee8 10113
8d138742
CE
10114 sunos4*)
10115 lt_prog_compiler_wl='-Qoption ld '
10116 lt_prog_compiler_pic='-PIC'
10117 lt_prog_compiler_static='-Bstatic'
10118 ;;
d9898ee8 10119
8d138742
CE
10120 sysv4 | sysv4.2uw2* | sysv4.3*)
10121 lt_prog_compiler_wl='-Wl,'
10122 lt_prog_compiler_pic='-KPIC'
10123 lt_prog_compiler_static='-Bstatic'
10124 ;;
d9898ee8 10125
8d138742
CE
10126 sysv4*MP*)
10127 if test -d /usr/nec ;then
10128 lt_prog_compiler_pic='-Kconform_pic'
10129 lt_prog_compiler_static='-Bstatic'
10130 fi
10131 ;;
d9898ee8 10132
8d138742
CE
10133 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10134 lt_prog_compiler_wl='-Wl,'
10135 lt_prog_compiler_pic='-KPIC'
10136 lt_prog_compiler_static='-Bstatic'
10137 ;;
d9898ee8 10138
8d138742
CE
10139 unicos*)
10140 lt_prog_compiler_wl='-Wl,'
10141 lt_prog_compiler_can_build_shared=no
10142 ;;
d9898ee8 10143
8d138742
CE
10144 uts4*)
10145 lt_prog_compiler_pic='-pic'
10146 lt_prog_compiler_static='-Bstatic'
10147 ;;
d9898ee8 10148
8d138742
CE
10149 *)
10150 lt_prog_compiler_can_build_shared=no
10151 ;;
10152 esac
10153 fi
d9898ee8 10154
8d138742
CE
10155case $host_os in
10156 # For platforms which do not support PIC, -DPIC is meaningless:
10157 *djgpp*)
10158 lt_prog_compiler_pic=
10159 ;;
10160 *)
10161 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10162 ;;
10163esac
10164{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
10165$as_echo "$lt_prog_compiler_pic" >&6; }
d9898ee8 10166
d9898ee8 10167
d9898ee8 10168
d9898ee8 10169
d9898ee8 10170
d9898ee8 10171
8d138742
CE
10172#
10173# Check to make sure the PIC flag actually works.
10174#
10175if test -n "$lt_prog_compiler_pic"; then
10176 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10177$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10178if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
10179 $as_echo_n "(cached) " >&6
10180else
10181 lt_cv_prog_compiler_pic_works=no
10182 ac_outfile=conftest.$ac_objext
10183 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10184 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10185 # Insert the option either (1) after the last *FLAGS variable, or
10186 # (2) before a word containing "conftest.", or (3) at the end.
10187 # Note that $ac_compile itself does not contain backslashes and begins
10188 # with a dollar sign (not a hyphen), so the echo should work correctly.
10189 # The option is referenced via a variable to avoid confusing sed.
10190 lt_compile=`echo "$ac_compile" | $SED \
10191 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10192 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10193 -e 's:$: $lt_compiler_flag:'`
10194 (eval echo "\"\$as_me:10194: $lt_compile\"" >&5)
10195 (eval "$lt_compile" 2>conftest.err)
10196 ac_status=$?
10197 cat conftest.err >&5
10198 echo "$as_me:10198: \$? = $ac_status" >&5
10199 if (exit $ac_status) && test -s "$ac_outfile"; then
10200 # The compiler can only warn and ignore the option if not recognized
10201 # So say no if there are warnings other than the usual output.
10202 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
10203 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10204 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10205 lt_cv_prog_compiler_pic_works=yes
10206 fi
10207 fi
10208 $RM conftest*
d9898ee8 10209
8d138742
CE
10210fi
10211{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
10212$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
d9898ee8 10213
8d138742
CE
10214if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10215 case $lt_prog_compiler_pic in
10216 "" | " "*) ;;
10217 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10218 esac
10219else
10220 lt_prog_compiler_pic=
10221 lt_prog_compiler_can_build_shared=no
10222fi
d9898ee8 10223
8d138742 10224fi
d9898ee8 10225
10226
d9898ee8 10227
d9898ee8 10228
d9898ee8 10229
d9898ee8 10230
8d138742
CE
10231#
10232# Check to make sure the static flag actually works.
10233#
10234wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10235{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10236$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10237if test "${lt_cv_prog_compiler_static_works+set}" = set; then
10238 $as_echo_n "(cached) " >&6
d9898ee8 10239else
8d138742
CE
10240 lt_cv_prog_compiler_static_works=no
10241 save_LDFLAGS="$LDFLAGS"
10242 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10243 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10244 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10245 # The linker can only warn and ignore the option if not recognized
10246 # So say no if there are warnings
10247 if test -s conftest.err; then
10248 # Append any errors to the config.log.
10249 cat conftest.err 1>&5
10250 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
10251 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10252 if diff conftest.exp conftest.er2 >/dev/null; then
10253 lt_cv_prog_compiler_static_works=yes
10254 fi
10255 else
10256 lt_cv_prog_compiler_static_works=yes
10257 fi
10258 fi
10259 $RM -r conftest*
10260 LDFLAGS="$save_LDFLAGS"
d9898ee8 10261
8d138742
CE
10262fi
10263{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
10264$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
d9898ee8 10265
8d138742
CE
10266if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10267 :
10268else
10269 lt_prog_compiler_static=
10270fi
d9898ee8 10271
10272
dd184caf 10273
d9898ee8 10274
d9898ee8 10275
d9898ee8 10276
d9898ee8 10277
8d138742
CE
10278 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10279$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10280if test "${lt_cv_prog_compiler_c_o+set}" = set; then
10281 $as_echo_n "(cached) " >&6
10282else
10283 lt_cv_prog_compiler_c_o=no
10284 $RM -r conftest 2>/dev/null
10285 mkdir conftest
10286 cd conftest
10287 mkdir out
10288 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 10289
8d138742
CE
10290 lt_compiler_flag="-o out/conftest2.$ac_objext"
10291 # Insert the option either (1) after the last *FLAGS variable, or
10292 # (2) before a word containing "conftest.", or (3) at the end.
10293 # Note that $ac_compile itself does not contain backslashes and begins
10294 # with a dollar sign (not a hyphen), so the echo should work correctly.
10295 lt_compile=`echo "$ac_compile" | $SED \
10296 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10297 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10298 -e 's:$: $lt_compiler_flag:'`
10299 (eval echo "\"\$as_me:10299: $lt_compile\"" >&5)
10300 (eval "$lt_compile" 2>out/conftest.err)
10301 ac_status=$?
10302 cat out/conftest.err >&5
10303 echo "$as_me:10303: \$? = $ac_status" >&5
10304 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10305 then
10306 # The compiler can only warn and ignore the option if not recognized
10307 # So say no if there are warnings
10308 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
10309 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10310 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10311 lt_cv_prog_compiler_c_o=yes
10312 fi
10313 fi
10314 chmod u+w . 2>&5
10315 $RM conftest*
10316 # SGI C++ compiler will create directory out/ii_files/ for
10317 # template instantiation
10318 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10319 $RM out/* && rmdir out
10320 cd ..
10321 $RM -r conftest
10322 $RM conftest*
d9898ee8 10323
8d138742
CE
10324fi
10325{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
10326$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
d9898ee8 10327
d9898ee8 10328
10329
10330
10331
d9898ee8 10332
8d138742
CE
10333 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10334$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10335if test "${lt_cv_prog_compiler_c_o+set}" = set; then
10336 $as_echo_n "(cached) " >&6
10337else
10338 lt_cv_prog_compiler_c_o=no
10339 $RM -r conftest 2>/dev/null
10340 mkdir conftest
10341 cd conftest
10342 mkdir out
10343 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 10344
8d138742
CE
10345 lt_compiler_flag="-o out/conftest2.$ac_objext"
10346 # Insert the option either (1) after the last *FLAGS variable, or
10347 # (2) before a word containing "conftest.", or (3) at the end.
10348 # Note that $ac_compile itself does not contain backslashes and begins
10349 # with a dollar sign (not a hyphen), so the echo should work correctly.
10350 lt_compile=`echo "$ac_compile" | $SED \
10351 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10352 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10353 -e 's:$: $lt_compiler_flag:'`
10354 (eval echo "\"\$as_me:10354: $lt_compile\"" >&5)
10355 (eval "$lt_compile" 2>out/conftest.err)
10356 ac_status=$?
10357 cat out/conftest.err >&5
10358 echo "$as_me:10358: \$? = $ac_status" >&5
10359 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10360 then
10361 # The compiler can only warn and ignore the option if not recognized
10362 # So say no if there are warnings
10363 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
10364 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10365 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10366 lt_cv_prog_compiler_c_o=yes
10367 fi
10368 fi
10369 chmod u+w . 2>&5
10370 $RM conftest*
10371 # SGI C++ compiler will create directory out/ii_files/ for
10372 # template instantiation
10373 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10374 $RM out/* && rmdir out
10375 cd ..
10376 $RM -r conftest
10377 $RM conftest*
d9898ee8 10378
8d138742
CE
10379fi
10380{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
10381$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
d9898ee8 10382
d9898ee8 10383
d9898ee8 10384
d9898ee8 10385
8d138742
CE
10386hard_links="nottested"
10387if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10388 # do not overwrite the value of need_locks provided by the user
10389 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10390$as_echo_n "checking if we can lock with hard links... " >&6; }
10391 hard_links=yes
10392 $RM conftest*
10393 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10394 touch conftest.a
10395 ln conftest.a conftest.b 2>&5 || hard_links=no
10396 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10397 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
10398$as_echo "$hard_links" >&6; }
10399 if test "$hard_links" = no; then
10400 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10401$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10402 need_locks=warn
10403 fi
10404else
10405 need_locks=no
10406fi
d9898ee8 10407
d9898ee8 10408
d9898ee8 10409
10410
d9898ee8 10411
d9898ee8 10412
8d138742
CE
10413 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10414$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
d9898ee8 10415
8d138742
CE
10416 runpath_var=
10417 allow_undefined_flag=
10418 always_export_symbols=no
10419 archive_cmds=
10420 archive_expsym_cmds=
10421 compiler_needs_object=no
10422 enable_shared_with_static_runtimes=no
10423 export_dynamic_flag_spec=
10424 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10425 hardcode_automatic=no
10426 hardcode_direct=no
10427 hardcode_direct_absolute=no
10428 hardcode_libdir_flag_spec=
10429 hardcode_libdir_flag_spec_ld=
10430 hardcode_libdir_separator=
10431 hardcode_minus_L=no
10432 hardcode_shlibpath_var=unsupported
10433 inherit_rpath=no
10434 link_all_deplibs=unknown
10435 module_cmds=
10436 module_expsym_cmds=
10437 old_archive_from_new_cmds=
10438 old_archive_from_expsyms_cmds=
10439 thread_safe_flag_spec=
10440 whole_archive_flag_spec=
10441 # include_expsyms should be a list of space-separated symbols to be *always*
10442 # included in the symbol list
10443 include_expsyms=
10444 # exclude_expsyms can be an extended regexp of symbols to exclude
10445 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10446 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10447 # as well as any symbol that contains `d'.
10448 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10449 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10450 # platforms (ab)use it in PIC code, but their linkers get confused if
10451 # the symbol is explicitly referenced. Since portable code cannot
10452 # rely on this symbol name, it's probably fine to never include it in
10453 # preloaded symbol tables.
10454 # Exclude shared library initialization/finalization symbols.
10455 extract_expsyms_cmds=
dd184caf 10456
8d138742
CE
10457 case $host_os in
10458 cygwin* | mingw* | pw32* | cegcc*)
10459 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10460 # When not using gcc, we currently assume that we are using
10461 # Microsoft Visual C++.
10462 if test "$GCC" != yes; then
10463 with_gnu_ld=no
10464 fi
d9898ee8 10465 ;;
8d138742
CE
10466 interix*)
10467 # we just hope/assume this is gcc and not c89 (= MSVC++)
10468 with_gnu_ld=yes
10469 ;;
10470 openbsd*)
10471 with_gnu_ld=no
d9898ee8 10472 ;;
10473 esac
d9898ee8 10474
8d138742 10475 ld_shlibs=yes
d9898ee8 10476 if test "$with_gnu_ld" = yes; then
d9898ee8 10477 # If archive_cmds runs LD, not CC, wlarc should be empty
d9898ee8 10478 wlarc='${wl}'
10479
8d138742
CE
10480 # Set some defaults for GNU ld with shared library support. These
10481 # are reset later if shared libraries are not supported. Putting them
10482 # here allows them to be overridden if necessary.
10483 runpath_var=LD_RUN_PATH
10484 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10485 export_dynamic_flag_spec='${wl}--export-dynamic'
d9898ee8 10486 # ancient GNU ld didn't support --whole-archive et. al.
8d138742
CE
10487 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10488 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
d9898ee8 10489 else
8d138742 10490 whole_archive_flag_spec=
d9898ee8 10491 fi
8d138742
CE
10492 supports_anon_versioning=no
10493 case `$LD -v 2>&1` in
10494 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10495 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10496 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10497 *\ 2.11.*) ;; # other 2.11 versions
10498 *) supports_anon_versioning=yes ;;
10499 esac
10500
10501 # See if GNU ld supports shared libraries.
10502 case $host_os in
10503 aix[3-9]*)
10504 # On AIX/PPC, the GNU linker is very broken
10505 if test "$host_cpu" != ia64; then
10506 ld_shlibs=no
10507 cat <<_LT_EOF 1>&2
d9898ee8 10508
8d138742
CE
10509*** Warning: the GNU linker, at least up to release 2.9.1, is reported
10510*** to be unable to reliably create shared libraries on AIX.
10511*** Therefore, libtool is disabling shared libraries support. If you
10512*** really care for shared libraries, you may want to modify your PATH
10513*** so that a non-GNU linker is found, and then restart.
d9898ee8 10514
8d138742
CE
10515_LT_EOF
10516 fi
10517 ;;
d9898ee8 10518
8d138742
CE
10519 amigaos*)
10520 case $host_cpu in
10521 powerpc)
10522 # see comment about AmigaOS4 .so support
10523 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10524 archive_expsym_cmds=''
10525 ;;
10526 m68k)
10527 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)'
10528 hardcode_libdir_flag_spec='-L$libdir'
10529 hardcode_minus_L=yes
10530 ;;
d9898ee8 10531 esac
8d138742 10532 ;;
d9898ee8 10533
8d138742
CE
10534 beos*)
10535 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10536 allow_undefined_flag=unsupported
10537 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10538 # support --undefined. This deserves some investigation. FIXME
10539 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10540 else
10541 ld_shlibs=no
10542 fi
10543 ;;
d9898ee8 10544
8d138742
CE
10545 cygwin* | mingw* | pw32* | cegcc*)
10546 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10547 # as there is no search path for DLLs.
10548 hardcode_libdir_flag_spec='-L$libdir'
10549 allow_undefined_flag=unsupported
10550 always_export_symbols=no
10551 enable_shared_with_static_runtimes=yes
10552 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
d9898ee8 10553
8d138742
CE
10554 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10555 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10556 # If the export-symbols file already is a .def file (1st line
10557 # is EXPORTS), use it as is; otherwise, prepend...
10558 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10559 cp $export_symbols $output_objdir/$soname.def;
d9898ee8 10560 else
8d138742
CE
10561 echo EXPORTS > $output_objdir/$soname.def;
10562 cat $export_symbols >> $output_objdir/$soname.def;
10563 fi~
10564 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
d9898ee8 10565 else
8d138742 10566 ld_shlibs=no
d9898ee8 10567 fi
8d138742 10568 ;;
d9898ee8 10569
8d138742
CE
10570 interix[3-9]*)
10571 hardcode_direct=no
10572 hardcode_shlibpath_var=no
10573 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10574 export_dynamic_flag_spec='${wl}-E'
10575 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10576 # Instead, shared libraries are loaded at an image base (0x10000000 by
10577 # default) and relocated if they conflict, which is a slow very memory
10578 # consuming and fragmenting process. To avoid this, we pick a random,
10579 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10580 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10581 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10582 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'
10583 ;;
10584
10585 gnu* | linux* | tpf* | k*bsd*-gnu)
10586 tmp_diet=no
10587 if test "$host_os" = linux-dietlibc; then
10588 case $cc_basename in
10589 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10590 esac
10591 fi
10592 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10593 && test "$tmp_diet" = no
10594 then
10595 tmp_addflag=
10596 tmp_sharedflag='-shared'
10597 case $cc_basename,$host_cpu in
10598 pgcc*) # Portland Group C compiler
10599 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'
10600 tmp_addflag=' $pic_flag'
10601 ;;
10602 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
10603 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'
10604 tmp_addflag=' $pic_flag -Mnomain' ;;
10605 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10606 tmp_addflag=' -i_dynamic' ;;
10607 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10608 tmp_addflag=' -i_dynamic -nofor_main' ;;
10609 ifc* | ifort*) # Intel Fortran compiler
10610 tmp_addflag=' -nofor_main' ;;
10611 lf95*) # Lahey Fortran 8.1
10612 whole_archive_flag_spec=
10613 tmp_sharedflag='--shared' ;;
10614 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10615 tmp_sharedflag='-qmkshrobj'
10616 tmp_addflag= ;;
10617 esac
10618 case `$CC -V 2>&1 | sed 5q` in
10619 *Sun\ C*) # Sun C 5.9
10620 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'
10621 compiler_needs_object=yes
10622 tmp_sharedflag='-G' ;;
10623 *Sun\ F*) # Sun Fortran 8.3
10624 tmp_sharedflag='-G' ;;
10625 esac
10626 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10627
10628 if test "x$supports_anon_versioning" = xyes; then
10629 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10630 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10631 echo "local: *; };" >> $output_objdir/$libname.ver~
10632 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10633 fi
10634
10635 case $cc_basename in
10636 xlf*)
10637 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10638 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10639 hardcode_libdir_flag_spec=
10640 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10641 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10642 if test "x$supports_anon_versioning" = xyes; then
10643 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10644 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10645 echo "local: *; };" >> $output_objdir/$libname.ver~
10646 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10647 fi
10648 ;;
10649 esac
10650 else
10651 ld_shlibs=no
10652 fi
10653 ;;
10654
10655 netbsd*)
10656 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10657 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10658 wlarc=
10659 else
10660 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10661 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10662 fi
10663 ;;
10664
10665 solaris*)
10666 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10667 ld_shlibs=no
10668 cat <<_LT_EOF 1>&2
10669
10670*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10671*** create shared libraries on Solaris systems. Therefore, libtool
10672*** is disabling shared libraries support. We urge you to upgrade GNU
10673*** binutils to release 2.9.1 or newer. Another option is to modify
10674*** your PATH or compiler configuration so that the native linker is
10675*** used, and then restart.
10676
10677_LT_EOF
10678 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10679 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10680 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10681 else
10682 ld_shlibs=no
10683 fi
10684 ;;
10685
10686 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10687 case `$LD -v 2>&1` in
10688 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10689 ld_shlibs=no
10690 cat <<_LT_EOF 1>&2
10691
10692*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10693*** reliably create shared libraries on SCO systems. Therefore, libtool
10694*** is disabling shared libraries support. We urge you to upgrade GNU
10695*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10696*** your PATH or compiler configuration so that the native linker is
10697*** used, and then restart.
10698
10699_LT_EOF
10700 ;;
10701 *)
10702 # For security reasons, it is highly recommended that you always
10703 # use absolute paths for naming shared libraries, and exclude the
10704 # DT_RUNPATH tag from executables and libraries. But doing so
10705 # requires that you compile everything twice, which is a pain.
10706 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10707 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10708 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10709 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10710 else
10711 ld_shlibs=no
10712 fi
10713 ;;
10714 esac
10715 ;;
10716
10717 sunos4*)
10718 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10719 wlarc=
10720 hardcode_direct=yes
10721 hardcode_shlibpath_var=no
10722 ;;
10723
10724 *)
10725 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10726 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10727 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10728 else
10729 ld_shlibs=no
10730 fi
10731 ;;
10732 esac
10733
10734 if test "$ld_shlibs" = no; then
10735 runpath_var=
10736 hardcode_libdir_flag_spec=
10737 export_dynamic_flag_spec=
10738 whole_archive_flag_spec=
10739 fi
10740 else
10741 # PORTME fill in a description of your system's linker (not GNU ld)
10742 case $host_os in
10743 aix3*)
10744 allow_undefined_flag=unsupported
10745 always_export_symbols=yes
10746 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'
10747 # Note: this linker hardcodes the directories in LIBPATH if there
10748 # are no directories specified by -L.
10749 hardcode_minus_L=yes
10750 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10751 # Neither direct hardcoding nor static linking is supported with a
10752 # broken collect2.
10753 hardcode_direct=unsupported
10754 fi
10755 ;;
10756
10757 aix[4-9]*)
10758 if test "$host_cpu" = ia64; then
10759 # On IA64, the linker does run time linking by default, so we don't
10760 # have to do anything special.
10761 aix_use_runtimelinking=no
10762 exp_sym_flag='-Bexport'
10763 no_entry_flag=""
10764 else
10765 # If we're using GNU nm, then we don't want the "-C" option.
10766 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10767 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10768 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'
10769 else
10770 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'
10771 fi
10772 aix_use_runtimelinking=no
10773
10774 # Test if we are trying to use run time linking or normal
10775 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10776 # need to do runtime linking.
10777 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10778 for ld_flag in $LDFLAGS; do
10779 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10780 aix_use_runtimelinking=yes
10781 break
10782 fi
10783 done
10784 ;;
10785 esac
10786
10787 exp_sym_flag='-bexport'
10788 no_entry_flag='-bnoentry'
10789 fi
10790
10791 # When large executables or shared objects are built, AIX ld can
10792 # have problems creating the table of contents. If linking a library
10793 # or program results in "error TOC overflow" add -mminimal-toc to
10794 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10795 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10796
10797 archive_cmds=''
10798 hardcode_direct=yes
10799 hardcode_direct_absolute=yes
10800 hardcode_libdir_separator=':'
10801 link_all_deplibs=yes
10802 file_list_spec='${wl}-f,'
10803
10804 if test "$GCC" = yes; then
10805 case $host_os in aix4.[012]|aix4.[012].*)
10806 # We only want to do this on AIX 4.2 and lower, the check
10807 # below for broken collect2 doesn't work under 4.3+
10808 collect2name=`${CC} -print-prog-name=collect2`
10809 if test -f "$collect2name" &&
10810 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10811 then
10812 # We have reworked collect2
10813 :
10814 else
10815 # We have old collect2
10816 hardcode_direct=unsupported
10817 # It fails to find uninstalled libraries when the uninstalled
10818 # path is not listed in the libpath. Setting hardcode_minus_L
10819 # to unsupported forces relinking
10820 hardcode_minus_L=yes
10821 hardcode_libdir_flag_spec='-L$libdir'
10822 hardcode_libdir_separator=
10823 fi
10824 ;;
10825 esac
10826 shared_flag='-shared'
10827 if test "$aix_use_runtimelinking" = yes; then
10828 shared_flag="$shared_flag "'${wl}-G'
10829 fi
10830 else
10831 # not using gcc
10832 if test "$host_cpu" = ia64; then
10833 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10834 # chokes on -Wl,-G. The following line is correct:
10835 shared_flag='-G'
10836 else
10837 if test "$aix_use_runtimelinking" = yes; then
10838 shared_flag='${wl}-G'
10839 else
10840 shared_flag='${wl}-bM:SRE'
10841 fi
10842 fi
10843 fi
10844
10845 export_dynamic_flag_spec='${wl}-bexpall'
10846 # It seems that -bexpall does not export symbols beginning with
10847 # underscore (_), so it is better to generate a list of symbols to export.
10848 always_export_symbols=yes
10849 if test "$aix_use_runtimelinking" = yes; then
10850 # Warning - without using the other runtime loading flags (-brtl),
10851 # -berok will link without error, but may produce a broken library.
10852 allow_undefined_flag='-berok'
10853 # Determine the default libpath from the value encoded in an
10854 # empty executable.
10855 cat >conftest.$ac_ext <<_ACEOF
10856/* confdefs.h. */
10857_ACEOF
10858cat confdefs.h >>conftest.$ac_ext
10859cat >>conftest.$ac_ext <<_ACEOF
10860/* end confdefs.h. */
d9898ee8 10861
10862int
10863main ()
10864{
10865
10866 ;
10867 return 0;
10868}
10869_ACEOF
10870rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 10871if { (ac_try="$ac_link"
10872case "(($ac_try" in
10873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10874 *) ac_try_echo=$ac_try;;
10875esac
8d138742
CE
10876eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10877$as_echo "$ac_try_echo") >&5
dd184caf 10878 (eval "$ac_link") 2>conftest.er1
d9898ee8 10879 ac_status=$?
10880 grep -v '^ *+' conftest.er1 >conftest.err
10881 rm -f conftest.er1
10882 cat conftest.err >&5
8d138742 10883 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 10884 (exit $ac_status); } && {
8d138742 10885 test -z "$ac_c_werror_flag" ||
dd184caf 10886 test ! -s conftest.err
8d138742
CE
10887 } && test -s conftest$ac_exeext && {
10888 test "$cross_compiling" = yes ||
10889 $as_test_x conftest$ac_exeext
10890 }; then
d9898ee8 10891
ac40fd9e 10892lt_aix_libpath_sed='
10893 /Import File Strings/,/^$/ {
10894 /^0/ {
10895 s/^0 *\(.*\)$/\1/
10896 p
10897 }
10898 }'
10899aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
d9898ee8 10900# Check for a 64-bit object if we didn't find anything.
ac40fd9e 10901if test -z "$aix_libpath"; then
10902 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10903fi
d9898ee8 10904else
8d138742 10905 $as_echo "$as_me: failed program was:" >&5
d9898ee8 10906sed 's/^/| /' conftest.$ac_ext >&5
10907
dd184caf 10908
d9898ee8 10909fi
dd184caf 10910
8d138742 10911rm -rf conftest.dSYM
dd184caf 10912rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 10913 conftest$ac_exeext conftest.$ac_ext
10914if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10915
8d138742
CE
10916 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10917 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"
d9898ee8 10918 else
8d138742
CE
10919 if test "$host_cpu" = ia64; then
10920 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10921 allow_undefined_flag="-z nodefs"
10922 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"
10923 else
10924 # Determine the default libpath from the value encoded in an
10925 # empty executable.
10926 cat >conftest.$ac_ext <<_ACEOF
d9898ee8 10927/* confdefs.h. */
10928_ACEOF
10929cat confdefs.h >>conftest.$ac_ext
10930cat >>conftest.$ac_ext <<_ACEOF
10931/* end confdefs.h. */
10932
10933int
10934main ()
10935{
10936
10937 ;
10938 return 0;
10939}
10940_ACEOF
10941rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 10942if { (ac_try="$ac_link"
10943case "(($ac_try" in
10944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10945 *) ac_try_echo=$ac_try;;
10946esac
8d138742
CE
10947eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10948$as_echo "$ac_try_echo") >&5
dd184caf 10949 (eval "$ac_link") 2>conftest.er1
d9898ee8 10950 ac_status=$?
10951 grep -v '^ *+' conftest.er1 >conftest.err
10952 rm -f conftest.er1
10953 cat conftest.err >&5
8d138742 10954 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 10955 (exit $ac_status); } && {
8d138742 10956 test -z "$ac_c_werror_flag" ||
dd184caf 10957 test ! -s conftest.err
8d138742
CE
10958 } && test -s conftest$ac_exeext && {
10959 test "$cross_compiling" = yes ||
10960 $as_test_x conftest$ac_exeext
10961 }; then
d9898ee8 10962
ac40fd9e 10963lt_aix_libpath_sed='
10964 /Import File Strings/,/^$/ {
10965 /^0/ {
10966 s/^0 *\(.*\)$/\1/
10967 p
10968 }
10969 }'
10970aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
d9898ee8 10971# Check for a 64-bit object if we didn't find anything.
ac40fd9e 10972if test -z "$aix_libpath"; then
10973 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10974fi
d9898ee8 10975else
8d138742 10976 $as_echo "$as_me: failed program was:" >&5
d9898ee8 10977sed 's/^/| /' conftest.$ac_ext >&5
10978
dd184caf 10979
d9898ee8 10980fi
dd184caf 10981
8d138742 10982rm -rf conftest.dSYM
dd184caf 10983rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 10984 conftest$ac_exeext conftest.$ac_ext
10985if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10986
8d138742
CE
10987 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10988 # Warning - without using the other run time loading flags,
10989 # -berok will link without error, but may produce a broken library.
10990 no_undefined_flag=' ${wl}-bernotok'
10991 allow_undefined_flag=' ${wl}-berok'
10992 # Exported symbols can be pulled into shared objects from archives
10993 whole_archive_flag_spec='$convenience'
10994 archive_cmds_need_lc=yes
10995 # This is similar to how AIX traditionally builds its shared libraries.
10996 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'
10997 fi
d9898ee8 10998 fi
8d138742 10999 ;;
d9898ee8 11000
8d138742
CE
11001 amigaos*)
11002 case $host_cpu in
11003 powerpc)
11004 # see comment about AmigaOS4 .so support
11005 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11006 archive_expsym_cmds=''
11007 ;;
11008 m68k)
11009 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)'
11010 hardcode_libdir_flag_spec='-L$libdir'
11011 hardcode_minus_L=yes
11012 ;;
11013 esac
11014 ;;
d9898ee8 11015
8d138742
CE
11016 bsdi[45]*)
11017 export_dynamic_flag_spec=-rdynamic
11018 ;;
d9898ee8 11019
8d138742
CE
11020 cygwin* | mingw* | pw32* | cegcc*)
11021 # When not using gcc, we currently assume that we are using
11022 # Microsoft Visual C++.
11023 # hardcode_libdir_flag_spec is actually meaningless, as there is
11024 # no search path for DLLs.
11025 hardcode_libdir_flag_spec=' '
11026 allow_undefined_flag=unsupported
11027 # Tell ltmain to make .lib files, not .a files.
11028 libext=lib
11029 # Tell ltmain to make .dll files, not .so files.
11030 shrext_cmds=".dll"
11031 # FIXME: Setting linknames here is a bad hack.
11032 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
11033 # The linker will automatically build a .lib file if we build a DLL.
11034 old_archive_from_new_cmds='true'
11035 # FIXME: Should let the user specify the lib program.
11036 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11037 fix_srcfile_path='`cygpath -w "$srcfile"`'
11038 enable_shared_with_static_runtimes=yes
11039 ;;
11040
11041 darwin* | rhapsody*)
11042
11043
11044 archive_cmds_need_lc=no
11045 hardcode_direct=no
11046 hardcode_automatic=yes
11047 hardcode_shlibpath_var=unsupported
11048 whole_archive_flag_spec=''
11049 link_all_deplibs=yes
11050 allow_undefined_flag="$_lt_dar_allow_undefined"
11051 case $cc_basename in
11052 ifort*) _lt_dar_can_shared=yes ;;
11053 *) _lt_dar_can_shared=$GCC ;;
11054 esac
11055 if test "$_lt_dar_can_shared" = "yes"; then
11056 output_verbose_link_cmd=echo
11057 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11058 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11059 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}"
11060 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}"
11061
11062 else
11063 ld_shlibs=no
11064 fi
d9898ee8 11065
d9898ee8 11066 ;;
8d138742
CE
11067
11068 dgux*)
11069 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11070 hardcode_libdir_flag_spec='-L$libdir'
11071 hardcode_shlibpath_var=no
d9898ee8 11072 ;;
8d138742
CE
11073
11074 freebsd1*)
11075 ld_shlibs=no
11076 ;;
11077
11078 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11079 # support. Future versions do this automatically, but an explicit c++rt0.o
11080 # does not break anything, and helps significantly (at the cost of a little
11081 # extra space).
11082 freebsd2.2*)
11083 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11084 hardcode_libdir_flag_spec='-R$libdir'
11085 hardcode_direct=yes
11086 hardcode_shlibpath_var=no
11087 ;;
11088
11089 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11090 freebsd2*)
11091 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11092 hardcode_direct=yes
11093 hardcode_minus_L=yes
11094 hardcode_shlibpath_var=no
11095 ;;
11096
11097 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11098 freebsd* | dragonfly*)
11099 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
11100 hardcode_libdir_flag_spec='-R$libdir'
11101 hardcode_direct=yes
11102 hardcode_shlibpath_var=no
11103 ;;
11104
11105 hpux9*)
11106 if test "$GCC" = yes; then
11107 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 11108 else
8d138742 11109 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 11110 fi
8d138742
CE
11111 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11112 hardcode_libdir_separator=:
11113 hardcode_direct=yes
d9898ee8 11114
8d138742
CE
11115 # hardcode_minus_L: Not really in the search PATH,
11116 # but as the default location of the library.
11117 hardcode_minus_L=yes
11118 export_dynamic_flag_spec='${wl}-E'
d9898ee8 11119 ;;
8d138742
CE
11120
11121 hpux10*)
11122 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
11123 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11124 else
11125 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11126 fi
11127 if test "$with_gnu_ld" = no; then
11128 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11129 hardcode_libdir_flag_spec_ld='+b $libdir'
11130 hardcode_libdir_separator=:
11131 hardcode_direct=yes
11132 hardcode_direct_absolute=yes
11133 export_dynamic_flag_spec='${wl}-E'
11134 # hardcode_minus_L: Not really in the search PATH,
11135 # but as the default location of the library.
11136 hardcode_minus_L=yes
11137 fi
d9898ee8 11138 ;;
d9898ee8 11139
8d138742
CE
11140 hpux11*)
11141 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
d9898ee8 11142 case $host_cpu in
11143 hppa*64*)
8d138742 11144 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
d9898ee8 11145 ;;
11146 ia64*)
8d138742 11147 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
d9898ee8 11148 ;;
11149 *)
8d138742 11150 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
d9898ee8 11151 ;;
11152 esac
8d138742
CE
11153 else
11154 case $host_cpu in
11155 hppa*64*)
11156 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
d9898ee8 11157 ;;
8d138742
CE
11158 ia64*)
11159 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11160 ;;
11161 *)
11162 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
d9898ee8 11163 ;;
11164 esac
8d138742
CE
11165 fi
11166 if test "$with_gnu_ld" = no; then
11167 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11168 hardcode_libdir_separator=:
d9898ee8 11169
8d138742
CE
11170 case $host_cpu in
11171 hppa*64*|ia64*)
11172 hardcode_direct=no
11173 hardcode_shlibpath_var=no
11174 ;;
11175 *)
11176 hardcode_direct=yes
11177 hardcode_direct_absolute=yes
11178 export_dynamic_flag_spec='${wl}-E'
11179
11180 # hardcode_minus_L: Not really in the search PATH,
11181 # but as the default location of the library.
11182 hardcode_minus_L=yes
ac40fd9e 11183 ;;
11184 esac
ac40fd9e 11185 fi
8d138742 11186 ;;
d9898ee8 11187
8d138742
CE
11188 irix5* | irix6* | nonstopux*)
11189 if test "$GCC" = yes; then
11190 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'
11191 # Try to use the -exported_symbol ld option, if it does not
11192 # work, assume that -exports_file does not work either and
11193 # implicitly export all symbols.
11194 save_LDFLAGS="$LDFLAGS"
11195 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11196 cat >conftest.$ac_ext <<_ACEOF
11197int foo(void) {}
11198_ACEOF
11199rm -f conftest.$ac_objext conftest$ac_exeext
11200if { (ac_try="$ac_link"
11201case "(($ac_try" in
11202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11203 *) ac_try_echo=$ac_try;;
11204esac
11205eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11206$as_echo "$ac_try_echo") >&5
11207 (eval "$ac_link") 2>conftest.er1
11208 ac_status=$?
11209 grep -v '^ *+' conftest.er1 >conftest.err
11210 rm -f conftest.er1
11211 cat conftest.err >&5
11212 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11213 (exit $ac_status); } && {
11214 test -z "$ac_c_werror_flag" ||
11215 test ! -s conftest.err
11216 } && test -s conftest$ac_exeext && {
11217 test "$cross_compiling" = yes ||
11218 $as_test_x conftest$ac_exeext
11219 }; then
11220 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
d9898ee8 11221
8d138742
CE
11222else
11223 $as_echo "$as_me: failed program was:" >&5
11224sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 11225
d9898ee8 11226
8d138742 11227fi
d9898ee8 11228
8d138742
CE
11229rm -rf conftest.dSYM
11230rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11231 conftest$ac_exeext conftest.$ac_ext
11232 LDFLAGS="$save_LDFLAGS"
11233 else
11234 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'
11235 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'
11236 fi
11237 archive_cmds_need_lc='no'
11238 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11239 hardcode_libdir_separator=:
11240 inherit_rpath=yes
11241 link_all_deplibs=yes
11242 ;;
d9898ee8 11243
8d138742
CE
11244 netbsd*)
11245 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11246 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11247 else
11248 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11249 fi
11250 hardcode_libdir_flag_spec='-R$libdir'
11251 hardcode_direct=yes
11252 hardcode_shlibpath_var=no
11253 ;;
d9898ee8 11254
8d138742
CE
11255 newsos6)
11256 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11257 hardcode_direct=yes
11258 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11259 hardcode_libdir_separator=:
11260 hardcode_shlibpath_var=no
11261 ;;
d9898ee8 11262
8d138742
CE
11263 *nto* | *qnx*)
11264 ;;
d9898ee8 11265
8d138742
CE
11266 openbsd*)
11267 if test -f /usr/libexec/ld.so; then
11268 hardcode_direct=yes
11269 hardcode_shlibpath_var=no
11270 hardcode_direct_absolute=yes
11271 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11272 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11273 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11274 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11275 export_dynamic_flag_spec='${wl}-E'
d9898ee8 11276 else
ac40fd9e 11277 case $host_os in
8d138742
CE
11278 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11279 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11280 hardcode_libdir_flag_spec='-R$libdir'
11281 ;;
11282 *)
11283 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11284 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11285 ;;
ac40fd9e 11286 esac
d9898ee8 11287 fi
8d138742
CE
11288 else
11289 ld_shlibs=no
11290 fi
11291 ;;
d9898ee8 11292
8d138742
CE
11293 os2*)
11294 hardcode_libdir_flag_spec='-L$libdir'
11295 hardcode_minus_L=yes
11296 allow_undefined_flag=unsupported
11297 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'
11298 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11299 ;;
d9898ee8 11300
8d138742
CE
11301 osf3*)
11302 if test "$GCC" = yes; then
11303 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11304 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'
11305 else
11306 allow_undefined_flag=' -expect_unresolved \*'
11307 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'
11308 fi
11309 archive_cmds_need_lc='no'
11310 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11311 hardcode_libdir_separator=:
11312 ;;
d9898ee8 11313
8d138742
CE
11314 osf4* | osf5*) # as osf3* with the addition of -msym flag
11315 if test "$GCC" = yes; then
11316 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11317 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'
11318 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11319 else
11320 allow_undefined_flag=' -expect_unresolved \*'
11321 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'
11322 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~
11323 $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 11324
8d138742
CE
11325 # Both c and cxx compiler support -rpath directly
11326 hardcode_libdir_flag_spec='-rpath $libdir'
11327 fi
11328 archive_cmds_need_lc='no'
11329 hardcode_libdir_separator=:
11330 ;;
d9898ee8 11331
8d138742
CE
11332 solaris*)
11333 no_undefined_flag=' -z defs'
11334 if test "$GCC" = yes; then
11335 wlarc='${wl}'
11336 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11337 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11338 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11339 else
11340 case `$CC -V 2>&1` in
11341 *"Compilers 5.0"*)
11342 wlarc=''
11343 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11344 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11345 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11346 ;;
11347 *)
11348 wlarc='${wl}'
11349 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11350 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11351 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
d9898ee8 11352 ;;
11353 esac
8d138742
CE
11354 fi
11355 hardcode_libdir_flag_spec='-R$libdir'
11356 hardcode_shlibpath_var=no
11357 case $host_os in
11358 solaris2.[0-5] | solaris2.[0-5].*) ;;
11359 *)
11360 # The compiler driver will combine and reorder linker options,
11361 # but understands `-z linker_flag'. GCC discards it without `$wl',
11362 # but is careful enough not to reorder.
11363 # Supported since Solaris 2.6 (maybe 2.5.1?)
11364 if test "$GCC" = yes; then
11365 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11366 else
11367 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11368 fi
d9898ee8 11369 ;;
8d138742
CE
11370 esac
11371 link_all_deplibs=yes
11372 ;;
11373
11374 sunos4*)
11375 if test "x$host_vendor" = xsequent; then
11376 # Use $CC to link under sequent, because it throws in some extra .o
11377 # files that make .init and .fini sections work.
11378 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11379 else
11380 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11381 fi
11382 hardcode_libdir_flag_spec='-L$libdir'
11383 hardcode_direct=yes
11384 hardcode_minus_L=yes
11385 hardcode_shlibpath_var=no
11386 ;;
11387
11388 sysv4)
11389 case $host_vendor in
11390 sni)
11391 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11392 hardcode_direct=yes # is this really true???
d9898ee8 11393 ;;
8d138742
CE
11394 siemens)
11395 ## LD is ld it makes a PLAMLIB
11396 ## CC just makes a GrossModule.
11397 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11398 reload_cmds='$CC -r -o $output$reload_objs'
11399 hardcode_direct=no
11400 ;;
11401 motorola)
11402 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11403 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
d9898ee8 11404 ;;
8d138742
CE
11405 esac
11406 runpath_var='LD_RUN_PATH'
11407 hardcode_shlibpath_var=no
11408 ;;
d9898ee8 11409
8d138742
CE
11410 sysv4.3*)
11411 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11412 hardcode_shlibpath_var=no
11413 export_dynamic_flag_spec='-Bexport'
11414 ;;
d9898ee8 11415
8d138742
CE
11416 sysv4*MP*)
11417 if test -d /usr/nec; then
11418 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11419 hardcode_shlibpath_var=no
11420 runpath_var=LD_RUN_PATH
11421 hardcode_runpath_var=yes
11422 ld_shlibs=yes
11423 fi
11424 ;;
d9898ee8 11425
8d138742
CE
11426 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11427 no_undefined_flag='${wl}-z,text'
11428 archive_cmds_need_lc=no
11429 hardcode_shlibpath_var=no
11430 runpath_var='LD_RUN_PATH'
d9898ee8 11431
8d138742
CE
11432 if test "$GCC" = yes; then
11433 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11434 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11435 else
11436 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11437 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11438 fi
11439 ;;
11440
11441 sysv5* | sco3.2v5* | sco5v6*)
11442 # Note: We can NOT use -z defs as we might desire, because we do not
11443 # link with -lc, and that would cause any symbols used from libc to
11444 # always be unresolved, which means just about no library would
11445 # ever link correctly. If we're not using GNU ld we use -z text
11446 # though, which does catch some bad symbols but isn't as heavy-handed
11447 # as -z defs.
11448 no_undefined_flag='${wl}-z,text'
11449 allow_undefined_flag='${wl}-z,nodefs'
11450 archive_cmds_need_lc=no
11451 hardcode_shlibpath_var=no
11452 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11453 hardcode_libdir_separator=':'
11454 link_all_deplibs=yes
11455 export_dynamic_flag_spec='${wl}-Bexport'
11456 runpath_var='LD_RUN_PATH'
11457
11458 if test "$GCC" = yes; then
11459 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11460 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11461 else
11462 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11463 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11464 fi
11465 ;;
11466
11467 uts4*)
11468 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11469 hardcode_libdir_flag_spec='-L$libdir'
11470 hardcode_shlibpath_var=no
11471 ;;
11472
11473 *)
11474 ld_shlibs=no
11475 ;;
11476 esac
11477
11478 if test x$host_vendor = xsni; then
11479 case $host in
11480 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11481 export_dynamic_flag_spec='${wl}-Blargedynsym'
11482 ;;
11483 esac
11484 fi
11485 fi
11486
11487{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
11488$as_echo "$ld_shlibs" >&6; }
11489test "$ld_shlibs" = no && can_build_shared=no
11490
11491with_gnu_ld=$with_gnu_ld
d9898ee8 11492
d9898ee8 11493
d9898ee8 11494
d9898ee8 11495
d9898ee8 11496
d9898ee8 11497
11498
d9898ee8 11499
d9898ee8 11500
d9898ee8 11501
11502
d9898ee8 11503
d9898ee8 11504
d9898ee8 11505
d9898ee8 11506
11507#
11508# Do we need to explicitly link libc?
11509#
8d138742 11510case "x$archive_cmds_need_lc" in
d9898ee8 11511x|xyes)
11512 # Assume -lc should be added
8d138742 11513 archive_cmds_need_lc=yes
d9898ee8 11514
11515 if test "$enable_shared" = yes && test "$GCC" = yes; then
8d138742 11516 case $archive_cmds in
d9898ee8 11517 *'~'*)
11518 # FIXME: we may have to deal with multi-command sequences.
11519 ;;
11520 '$CC '*)
11521 # Test whether the compiler implicitly links with -lc since on some
11522 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11523 # to ld, don't add -lc before -lgcc.
8d138742
CE
11524 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11525$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11526 $RM conftest*
ac40fd9e 11527 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 11528
11529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11530 (eval $ac_compile) 2>&5
11531 ac_status=$?
8d138742 11532 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9898ee8 11533 (exit $ac_status); } 2>conftest.err; then
11534 soname=conftest
11535 lib=conftest
11536 libobjs=conftest.$ac_objext
11537 deplibs=
8d138742
CE
11538 wl=$lt_prog_compiler_wl
11539 pic_flag=$lt_prog_compiler_pic
d9898ee8 11540 compiler_flags=-v
11541 linker_flags=-v
11542 verstring=
11543 output_objdir=.
11544 libname=conftest
8d138742
CE
11545 lt_save_allow_undefined_flag=$allow_undefined_flag
11546 allow_undefined_flag=
11547 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
11548 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
d9898ee8 11549 ac_status=$?
8d138742 11550 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9898ee8 11551 (exit $ac_status); }
11552 then
8d138742 11553 archive_cmds_need_lc=no
d9898ee8 11554 else
8d138742 11555 archive_cmds_need_lc=yes
d9898ee8 11556 fi
8d138742 11557 allow_undefined_flag=$lt_save_allow_undefined_flag
d9898ee8 11558 else
11559 cat conftest.err 1>&5
11560 fi
8d138742
CE
11561 $RM conftest*
11562 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
11563$as_echo "$archive_cmds_need_lc" >&6; }
d9898ee8 11564 ;;
11565 esac
11566 fi
11567 ;;
11568esac
11569
ac40fd9e 11570
d9898ee8 11571
d9898ee8 11572
d9898ee8 11573
d9898ee8 11574
d9898ee8 11575
d9898ee8 11576
d9898ee8 11577
d9898ee8 11578
d9898ee8 11579
d9898ee8 11580
d9898ee8 11581
d9898ee8 11582
ac40fd9e 11583
d9898ee8 11584
d9898ee8 11585
d9898ee8 11586
d9898ee8 11587
d9898ee8 11588
d9898ee8 11589
d9898ee8 11590
8d138742
CE
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11727$as_echo_n "checking dynamic linker characteristics... " >&6; }
11728
11729if test "$GCC" = yes; then
d9898ee8 11730 case $host_os in
8d138742
CE
11731 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11732 *) lt_awk_arg="/^libraries:/" ;;
d9898ee8 11733 esac
8d138742
CE
11734 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11735 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
11736 # if the path contains ";" then we assume it to be the separator
11737 # otherwise default to the standard path separator (i.e. ":") - it is
11738 # assumed that no part of a normal pathname contains ";" but that should
11739 # okay in the real world where ";" in dirpaths is itself problematic.
11740 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
11741 else
11742 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11743 fi
11744 # Ok, now we have the path, separated by spaces, we can step through it
11745 # and add multilib dir if necessary.
11746 lt_tmp_lt_search_path_spec=
11747 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11748 for lt_sys_path in $lt_search_path_spec; do
11749 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11750 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11751 else
11752 test -d "$lt_sys_path" && \
11753 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11754 fi
11755 done
11756 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
11757BEGIN {RS=" "; FS="/|\n";} {
11758 lt_foo="";
11759 lt_count=0;
11760 for (lt_i = NF; lt_i > 0; lt_i--) {
11761 if ($lt_i != "" && $lt_i != ".") {
11762 if ($lt_i == "..") {
11763 lt_count++;
11764 } else {
11765 if (lt_count == 0) {
11766 lt_foo="/" $lt_i lt_foo;
11767 } else {
11768 lt_count--;
11769 }
11770 }
11771 }
11772 }
11773 if (lt_foo != "") { lt_freq[lt_foo]++; }
11774 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11775}'`
11776 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
11777else
11778 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11779fi
11780library_names_spec=
11781libname_spec='lib$name'
11782soname_spec=
11783shrext_cmds=".so"
11784postinstall_cmds=
11785postuninstall_cmds=
11786finish_cmds=
11787finish_eval=
11788shlibpath_var=
11789shlibpath_overrides_runpath=unknown
11790version_type=none
11791dynamic_linker="$host_os ld.so"
11792sys_lib_dlsearch_path_spec="/lib /usr/lib"
11793need_lib_prefix=unknown
11794hardcode_into_libs=no
d9898ee8 11795
8d138742
CE
11796# when you set need_version to no, make sure it does not cause -set_version
11797# flags to be left without arguments
11798need_version=unknown
11799
11800case $host_os in
11801aix3*)
11802 version_type=linux
11803 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11804 shlibpath_var=LIBPATH
11805
11806 # AIX 3 has no versioning support, so we append a major version to the name.
11807 soname_spec='${libname}${release}${shared_ext}$major'
d9898ee8 11808 ;;
11809
8d138742 11810aix[4-9]*)
d9898ee8 11811 version_type=linux
11812 need_lib_prefix=no
11813 need_version=no
d9898ee8 11814 hardcode_into_libs=yes
8d138742
CE
11815 if test "$host_cpu" = ia64; then
11816 # AIX 5 supports IA64
11817 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11818 shlibpath_var=LD_LIBRARY_PATH
11819 else
11820 # With GCC up to 2.95.x, collect2 would create an import file
11821 # for dependence libraries. The import file would start with
11822 # the line `#! .'. This would cause the generated library to
11823 # depend on `.', always an invalid library. This was fixed in
11824 # development snapshots of GCC prior to 3.0.
11825 case $host_os in
11826 aix4 | aix4.[01] | aix4.[01].*)
11827 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11828 echo ' yes '
11829 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11830 :
11831 else
11832 can_build_shared=no
11833 fi
11834 ;;
11835 esac
11836 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11837 # soname into executable. Probably we can add versioning support to
11838 # collect2, so additional links can be useful in future.
11839 if test "$aix_use_runtimelinking" = yes; then
11840 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11841 # instead of lib<name>.a to let people know that these are not
11842 # typical AIX shared libraries.
11843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11844 else
11845 # We preserve .a as extension for shared libraries through AIX4.2
11846 # and later when we are not doing run time linking.
11847 library_names_spec='${libname}${release}.a $libname.a'
11848 soname_spec='${libname}${release}${shared_ext}$major'
11849 fi
11850 shlibpath_var=LIBPATH
d9898ee8 11851 fi
d9898ee8 11852 ;;
11853
8d138742
CE
11854amigaos*)
11855 case $host_cpu in
11856 powerpc)
11857 # Since July 2007 AmigaOS4 officially supports .so libraries.
11858 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11860 ;;
11861 m68k)
11862 library_names_spec='$libname.ixlibrary $libname.a'
11863 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11864 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'
11865 ;;
11866 esac
d9898ee8 11867 ;;
11868
8d138742
CE
11869beos*)
11870 library_names_spec='${libname}${shared_ext}'
11871 dynamic_linker="$host_os ld.so"
11872 shlibpath_var=LIBRARY_PATH
d9898ee8 11873 ;;
11874
8d138742 11875bsdi[45]*)
d9898ee8 11876 version_type=linux
d9898ee8 11877 need_version=no
11878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11879 soname_spec='${libname}${release}${shared_ext}$major'
8d138742 11880 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
d9898ee8 11881 shlibpath_var=LD_LIBRARY_PATH
8d138742
CE
11882 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11883 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11884 # the default ld.so.conf also contains /usr/contrib/lib and
11885 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11886 # libtool to hard-code these into programs
d9898ee8 11887 ;;
11888
8d138742
CE
11889cygwin* | mingw* | pw32* | cegcc*)
11890 version_type=windows
d9898ee8 11891 shrext_cmds=".dll"
d9898ee8 11892 need_version=no
d9898ee8 11893 need_lib_prefix=no
d9898ee8 11894
8d138742
CE
11895 case $GCC,$host_os in
11896 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11897 library_names_spec='$libname.dll.a'
11898 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11899 postinstall_cmds='base_file=`basename \${file}`~
11900 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11901 dldir=$destdir/`dirname \$dlpath`~
11902 test -d \$dldir || mkdir -p \$dldir~
11903 $install_prog $dir/$dlname \$dldir/$dlname~
11904 chmod a+x \$dldir/$dlname~
11905 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11906 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11907 fi'
11908 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11909 dlpath=$dir/\$dldll~
11910 $RM \$dlpath'
11911 shlibpath_overrides_runpath=yes
d9898ee8 11912
8d138742
CE
11913 case $host_os in
11914 cygwin*)
11915 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11916 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11917 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
d9898ee8 11918 ;;
8d138742
CE
11919 mingw* | cegcc*)
11920 # MinGW DLLs use traditional 'lib' prefix
11921 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11922 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11923 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11924 # It is most probably a Windows format PATH printed by
11925 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11926 # path with ; separators, and with drive letters. We can handle the
11927 # drive letters (cygwin fileutils understands them), so leave them,
11928 # especially as we might pass files found there to a mingw objdump,
11929 # which wouldn't understand a cygwinified path. Ahh.
11930 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11931 else
11932 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11933 fi
d9898ee8 11934 ;;
8d138742
CE
11935 pw32*)
11936 # pw32 DLLs use 'pw' prefix rather than 'lib'
11937 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
d9898ee8 11938 ;;
8d138742
CE
11939 esac
11940 ;;
d9898ee8 11941
8d138742
CE
11942 *)
11943 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11944 ;;
11945 esac
11946 dynamic_linker='Win32 ld.exe'
11947 # FIXME: first we should search . and the directory the executable is in
11948 shlibpath_var=PATH
d9898ee8 11949 ;;
11950
8d138742
CE
11951darwin* | rhapsody*)
11952 dynamic_linker="$host_os dyld"
11953 version_type=darwin
d9898ee8 11954 need_lib_prefix=no
11955 need_version=no
8d138742
CE
11956 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11957 soname_spec='${libname}${release}${major}$shared_ext'
11958 shlibpath_overrides_runpath=yes
11959 shlibpath_var=DYLD_LIBRARY_PATH
11960 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11961
11962 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11963 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
d9898ee8 11964 ;;
11965
8d138742 11966dgux*)
d9898ee8 11967 version_type=linux
8d138742
CE
11968 need_lib_prefix=no
11969 need_version=no
11970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
d9898ee8 11971 soname_spec='${libname}${release}${shared_ext}$major'
11972 shlibpath_var=LD_LIBRARY_PATH
11973 ;;
11974
8d138742 11975freebsd1*)
d9898ee8 11976 dynamic_linker=no
11977 ;;
d9898ee8 11978
8d138742
CE
11979freebsd* | dragonfly*)
11980 # DragonFly does not have aout. When/if they implement a new
11981 # versioning mechanism, adjust this.
11982 if test -x /usr/bin/objformat; then
11983 objformat=`/usr/bin/objformat`
d9898ee8 11984 else
8d138742
CE
11985 case $host_os in
11986 freebsd[123]*) objformat=aout ;;
11987 *) objformat=elf ;;
11988 esac
d9898ee8 11989 fi
8d138742
CE
11990 version_type=freebsd-$objformat
11991 case $version_type in
11992 freebsd-elf*)
11993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11994 need_version=no
11995 need_lib_prefix=no
d9898ee8 11996 ;;
8d138742
CE
11997 freebsd-*)
11998 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11999 need_version=yes
d9898ee8 12000 ;;
8d138742
CE
12001 esac
12002 shlibpath_var=LD_LIBRARY_PATH
12003 case $host_os in
12004 freebsd2*)
12005 shlibpath_overrides_runpath=yes
12006 ;;
12007 freebsd3.[01]* | freebsdelf3.[01]*)
12008 shlibpath_overrides_runpath=yes
12009 hardcode_into_libs=yes
12010 ;;
12011 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12012 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12013 shlibpath_overrides_runpath=no
12014 hardcode_into_libs=yes
12015 ;;
12016 *) # from 4.6 on, and DragonFly
12017 shlibpath_overrides_runpath=yes
12018 hardcode_into_libs=yes
d9898ee8 12019 ;;
12020 esac
8d138742 12021 ;;
d9898ee8 12022
8d138742
CE
12023gnu*)
12024 version_type=linux
12025 need_lib_prefix=no
12026 need_version=no
12027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12028 soname_spec='${libname}${release}${shared_ext}$major'
12029 shlibpath_var=LD_LIBRARY_PATH
12030 hardcode_into_libs=yes
12031 ;;
d9898ee8 12032
8d138742
CE
12033hpux9* | hpux10* | hpux11*)
12034 # Give a soname corresponding to the major version so that dld.sl refuses to
12035 # link against other versions.
12036 version_type=sunos
12037 need_lib_prefix=no
12038 need_version=no
12039 case $host_cpu in
12040 ia64*)
12041 shrext_cmds='.so'
12042 hardcode_into_libs=yes
12043 dynamic_linker="$host_os dld.so"
12044 shlibpath_var=LD_LIBRARY_PATH
12045 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12047 soname_spec='${libname}${release}${shared_ext}$major'
12048 if test "X$HPUX_IA64_MODE" = X32; then
12049 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12050 else
12051 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12052 fi
12053 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12054 ;;
12055 hppa*64*)
12056 shrext_cmds='.sl'
12057 hardcode_into_libs=yes
12058 dynamic_linker="$host_os dld.sl"
12059 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12060 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12062 soname_spec='${libname}${release}${shared_ext}$major'
12063 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12064 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12065 ;;
12066 *)
12067 shrext_cmds='.sl'
12068 dynamic_linker="$host_os dld.sl"
12069 shlibpath_var=SHLIB_PATH
12070 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12072 soname_spec='${libname}${release}${shared_ext}$major'
12073 ;;
12074 esac
12075 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12076 postinstall_cmds='chmod 555 $lib'
12077 ;;
d9898ee8 12078
8d138742
CE
12079interix[3-9]*)
12080 version_type=linux
12081 need_lib_prefix=no
12082 need_version=no
12083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12084 soname_spec='${libname}${release}${shared_ext}$major'
12085 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12086 shlibpath_var=LD_LIBRARY_PATH
12087 shlibpath_overrides_runpath=no
12088 hardcode_into_libs=yes
12089 ;;
d9898ee8 12090
8d138742
CE
12091irix5* | irix6* | nonstopux*)
12092 case $host_os in
12093 nonstopux*) version_type=nonstopux ;;
12094 *)
12095 if test "$lt_cv_prog_gnu_ld" = yes; then
12096 version_type=linux
12097 else
12098 version_type=irix
12099 fi ;;
12100 esac
12101 need_lib_prefix=no
12102 need_version=no
12103 soname_spec='${libname}${release}${shared_ext}$major'
12104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12105 case $host_os in
12106 irix5* | nonstopux*)
12107 libsuff= shlibsuff=
12108 ;;
12109 *)
12110 case $LD in # libtool.m4 will add one of these switches to LD
12111 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12112 libsuff= shlibsuff= libmagic=32-bit;;
12113 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12114 libsuff=32 shlibsuff=N32 libmagic=N32;;
12115 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12116 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12117 *) libsuff= shlibsuff= libmagic=never-match;;
12118 esac
12119 ;;
12120 esac
12121 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12122 shlibpath_overrides_runpath=no
12123 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12124 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12125 hardcode_into_libs=yes
12126 ;;
d9898ee8 12127
8d138742
CE
12128# No shared lib support for Linux oldld, aout, or coff.
12129linux*oldld* | linux*aout* | linux*coff*)
12130 dynamic_linker=no
12131 ;;
d9898ee8 12132
8d138742
CE
12133# This must be Linux ELF.
12134linux* | k*bsd*-gnu)
12135 version_type=linux
12136 need_lib_prefix=no
12137 need_version=no
12138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12139 soname_spec='${libname}${release}${shared_ext}$major'
12140 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12141 shlibpath_var=LD_LIBRARY_PATH
12142 shlibpath_overrides_runpath=no
12143 # Some binutils ld are patched to set DT_RUNPATH
12144 save_LDFLAGS=$LDFLAGS
12145 save_libdir=$libdir
12146 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12147 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12148 cat >conftest.$ac_ext <<_ACEOF
12149/* confdefs.h. */
12150_ACEOF
12151cat confdefs.h >>conftest.$ac_ext
12152cat >>conftest.$ac_ext <<_ACEOF
12153/* end confdefs.h. */
d9898ee8 12154
8d138742
CE
12155int
12156main ()
12157{
d9898ee8 12158
8d138742
CE
12159 ;
12160 return 0;
12161}
12162_ACEOF
12163rm -f conftest.$ac_objext conftest$ac_exeext
12164if { (ac_try="$ac_link"
12165case "(($ac_try" in
12166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12167 *) ac_try_echo=$ac_try;;
12168esac
12169eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12170$as_echo "$ac_try_echo") >&5
12171 (eval "$ac_link") 2>conftest.er1
12172 ac_status=$?
12173 grep -v '^ *+' conftest.er1 >conftest.err
12174 rm -f conftest.er1
12175 cat conftest.err >&5
12176 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12177 (exit $ac_status); } && {
12178 test -z "$ac_c_werror_flag" ||
12179 test ! -s conftest.err
12180 } && test -s conftest$ac_exeext && {
12181 test "$cross_compiling" = yes ||
12182 $as_test_x conftest$ac_exeext
12183 }; then
12184 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
12185 shlibpath_overrides_runpath=yes
12186fi
d9898ee8 12187
8d138742
CE
12188else
12189 $as_echo "$as_me: failed program was:" >&5
12190sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 12191
d9898ee8 12192
8d138742 12193fi
d9898ee8 12194
8d138742
CE
12195rm -rf conftest.dSYM
12196rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12197 conftest$ac_exeext conftest.$ac_ext
12198 LDFLAGS=$save_LDFLAGS
12199 libdir=$save_libdir
d9898ee8 12200
8d138742
CE
12201 # This implies no fast_install, which is unacceptable.
12202 # Some rework will be needed to allow for fast_install
12203 # before this can be enabled.
12204 hardcode_into_libs=yes
d9898ee8 12205
8d138742
CE
12206 # Add ABI-specific directories to the system library path.
12207 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
d9898ee8 12208
8d138742
CE
12209 # Append ld.so.conf contents to the search path
12210 if test -f /etc/ld.so.conf; then
12211 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' ' '`
12212 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
12213 fi
d9898ee8 12214
8d138742
CE
12215 # We used to test for /lib/ld.so.1 and disable shared libraries on
12216 # powerpc, because MkLinux only supported shared libraries with the
12217 # GNU dynamic linker. Since this was broken with cross compilers,
12218 # most powerpc-linux boxes support dynamic linking these days and
12219 # people can always --disable-shared, the test was removed, and we
12220 # assume the GNU/Linux dynamic linker is in use.
12221 dynamic_linker='GNU/Linux ld.so'
12222 ;;
d9898ee8 12223
8d138742
CE
12224netbsd*)
12225 version_type=sunos
12226 need_lib_prefix=no
12227 need_version=no
12228 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12230 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12231 dynamic_linker='NetBSD (a.out) ld.so'
12232 else
12233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12234 soname_spec='${libname}${release}${shared_ext}$major'
12235 dynamic_linker='NetBSD ld.elf_so'
12236 fi
12237 shlibpath_var=LD_LIBRARY_PATH
12238 shlibpath_overrides_runpath=yes
12239 hardcode_into_libs=yes
12240 ;;
d9898ee8 12241
8d138742
CE
12242newsos6)
12243 version_type=linux
12244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12245 shlibpath_var=LD_LIBRARY_PATH
12246 shlibpath_overrides_runpath=yes
12247 ;;
d9898ee8 12248
8d138742
CE
12249*nto* | *qnx*)
12250 version_type=qnx
12251 need_lib_prefix=no
12252 need_version=no
12253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12254 soname_spec='${libname}${release}${shared_ext}$major'
12255 shlibpath_var=LD_LIBRARY_PATH
12256 shlibpath_overrides_runpath=no
12257 hardcode_into_libs=yes
12258 dynamic_linker='ldqnx.so'
12259 ;;
d9898ee8 12260
8d138742
CE
12261openbsd*)
12262 version_type=sunos
12263 sys_lib_dlsearch_path_spec="/usr/lib"
12264 need_lib_prefix=no
12265 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12266 case $host_os in
12267 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12268 *) need_version=no ;;
12269 esac
12270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12271 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12272 shlibpath_var=LD_LIBRARY_PATH
12273 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12274 case $host_os in
12275 openbsd2.[89] | openbsd2.[89].*)
12276 shlibpath_overrides_runpath=no
12277 ;;
12278 *)
12279 shlibpath_overrides_runpath=yes
12280 ;;
12281 esac
12282 else
12283 shlibpath_overrides_runpath=yes
12284 fi
12285 ;;
d9898ee8 12286
8d138742
CE
12287os2*)
12288 libname_spec='$name'
12289 shrext_cmds=".dll"
12290 need_lib_prefix=no
12291 library_names_spec='$libname${shared_ext} $libname.a'
12292 dynamic_linker='OS/2 ld.exe'
12293 shlibpath_var=LIBPATH
12294 ;;
d9898ee8 12295
8d138742
CE
12296osf3* | osf4* | osf5*)
12297 version_type=osf
12298 need_lib_prefix=no
12299 need_version=no
12300 soname_spec='${libname}${release}${shared_ext}$major'
12301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12302 shlibpath_var=LD_LIBRARY_PATH
12303 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12304 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12305 ;;
d9898ee8 12306
8d138742
CE
12307rdos*)
12308 dynamic_linker=no
12309 ;;
d9898ee8 12310
8d138742
CE
12311solaris*)
12312 version_type=linux
12313 need_lib_prefix=no
12314 need_version=no
12315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12316 soname_spec='${libname}${release}${shared_ext}$major'
12317 shlibpath_var=LD_LIBRARY_PATH
12318 shlibpath_overrides_runpath=yes
12319 hardcode_into_libs=yes
12320 # ldd complains unless libraries are executable
12321 postinstall_cmds='chmod +x $lib'
12322 ;;
d9898ee8 12323
8d138742
CE
12324sunos4*)
12325 version_type=sunos
12326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12327 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12328 shlibpath_var=LD_LIBRARY_PATH
12329 shlibpath_overrides_runpath=yes
12330 if test "$with_gnu_ld" = yes; then
12331 need_lib_prefix=no
12332 fi
12333 need_version=yes
12334 ;;
d9898ee8 12335
8d138742
CE
12336sysv4 | sysv4.3*)
12337 version_type=linux
12338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12339 soname_spec='${libname}${release}${shared_ext}$major'
12340 shlibpath_var=LD_LIBRARY_PATH
12341 case $host_vendor in
12342 sni)
12343 shlibpath_overrides_runpath=no
12344 need_lib_prefix=no
12345 runpath_var=LD_RUN_PATH
12346 ;;
12347 siemens)
12348 need_lib_prefix=no
12349 ;;
12350 motorola)
12351 need_lib_prefix=no
12352 need_version=no
12353 shlibpath_overrides_runpath=no
12354 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12355 ;;
12356 esac
12357 ;;
d9898ee8 12358
8d138742
CE
12359sysv4*MP*)
12360 if test -d /usr/nec ;then
12361 version_type=linux
12362 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12363 soname_spec='$libname${shared_ext}.$major'
12364 shlibpath_var=LD_LIBRARY_PATH
12365 fi
12366 ;;
d9898ee8 12367
8d138742
CE
12368sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12369 version_type=freebsd-elf
12370 need_lib_prefix=no
12371 need_version=no
12372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12373 soname_spec='${libname}${release}${shared_ext}$major'
12374 shlibpath_var=LD_LIBRARY_PATH
12375 shlibpath_overrides_runpath=yes
12376 hardcode_into_libs=yes
12377 if test "$with_gnu_ld" = yes; then
12378 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12379 else
12380 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12381 case $host_os in
12382 sco3.2v5*)
12383 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12384 ;;
12385 esac
12386 fi
12387 sys_lib_dlsearch_path_spec='/usr/lib'
12388 ;;
d9898ee8 12389
8d138742
CE
12390tpf*)
12391 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12392 version_type=linux
12393 need_lib_prefix=no
12394 need_version=no
12395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12396 shlibpath_var=LD_LIBRARY_PATH
12397 shlibpath_overrides_runpath=no
12398 hardcode_into_libs=yes
12399 ;;
d9898ee8 12400
8d138742
CE
12401uts4*)
12402 version_type=linux
12403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12404 soname_spec='${libname}${release}${shared_ext}$major'
12405 shlibpath_var=LD_LIBRARY_PATH
12406 ;;
d9898ee8 12407
8d138742
CE
12408*)
12409 dynamic_linker=no
12410 ;;
12411esac
12412{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12413$as_echo "$dynamic_linker" >&6; }
12414test "$dynamic_linker" = no && can_build_shared=no
d9898ee8 12415
8d138742
CE
12416variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12417if test "$GCC" = yes; then
12418 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12419fi
d9898ee8 12420
8d138742
CE
12421if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12422 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12423fi
12424if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12425 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12426fi
d9898ee8 12427
d9898ee8 12428
d9898ee8 12429
d9898ee8 12430
d9898ee8 12431
d9898ee8 12432
d9898ee8 12433
d9898ee8 12434
d9898ee8 12435
d9898ee8 12436
d9898ee8 12437
d9898ee8 12438
d9898ee8 12439
d9898ee8 12440
d9898ee8 12441
d9898ee8 12442
d9898ee8 12443
d9898ee8 12444
d9898ee8 12445
d9898ee8 12446
d9898ee8 12447
12448
d9898ee8 12449
12450
d9898ee8 12451
d9898ee8 12452
d9898ee8 12453
d9898ee8 12454
d9898ee8 12455
d9898ee8 12456
d9898ee8 12457
d9898ee8 12458
d9898ee8 12459
d9898ee8 12460
12461
d9898ee8 12462
d9898ee8 12463
12464
d9898ee8 12465
12466
d9898ee8 12467
d9898ee8 12468
d9898ee8 12469
d9898ee8 12470
d9898ee8 12471
d9898ee8 12472
d9898ee8 12473
d9898ee8 12474
d9898ee8 12475
d9898ee8 12476
d9898ee8 12477
d9898ee8 12478
d9898ee8 12479
d9898ee8 12480
d9898ee8 12481
d9898ee8 12482
d9898ee8 12483
d9898ee8 12484
d9898ee8 12485
d9898ee8 12486
d9898ee8 12487
d9898ee8 12488
d9898ee8 12489
d9898ee8 12490
ac40fd9e 12491
d9898ee8 12492
d9898ee8 12493
d9898ee8 12494
d9898ee8 12495
d9898ee8 12496
d9898ee8 12497
d9898ee8 12498
d9898ee8 12499
d9898ee8 12500
d9898ee8 12501
d9898ee8 12502
d9898ee8 12503
d9898ee8 12504
d9898ee8 12505
d9898ee8 12506
d9898ee8 12507
d9898ee8 12508
12509
d9898ee8 12510
d9898ee8 12511
d9898ee8 12512
12513
8d138742
CE
12514 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12515$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12516hardcode_action=
12517if test -n "$hardcode_libdir_flag_spec" ||
12518 test -n "$runpath_var" ||
12519 test "X$hardcode_automatic" = "Xyes" ; then
12520
12521 # We can hardcode non-existent directories.
12522 if test "$hardcode_direct" != no &&
12523 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12524 # have to relink, otherwise we might link with an installed library
12525 # when we should be linking with a yet-to-be-installed one
12526 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12527 test "$hardcode_minus_L" != no; then
12528 # Linking always hardcodes the temporary library directory.
12529 hardcode_action=relink
12530 else
12531 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12532 hardcode_action=immediate
d9898ee8 12533 fi
12534else
8d138742
CE
12535 # We cannot hardcode anything, or else we can only hardcode existing
12536 # directories.
12537 hardcode_action=unsupported
d9898ee8 12538fi
8d138742
CE
12539{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
12540$as_echo "$hardcode_action" >&6; }
d9898ee8 12541
8d138742
CE
12542if test "$hardcode_action" = relink ||
12543 test "$inherit_rpath" = yes; then
12544 # Fast installation is not supported
12545 enable_fast_install=no
12546elif test "$shlibpath_overrides_runpath" = yes ||
12547 test "$enable_shared" = no; then
12548 # Fast installation is not necessary
12549 enable_fast_install=needless
12550fi
d9898ee8 12551
d9898ee8 12552
d9898ee8 12553
d9898ee8 12554
d9898ee8 12555
d9898ee8 12556
8d138742
CE
12557 if test "x$enable_dlopen" != xyes; then
12558 enable_dlopen=unknown
12559 enable_dlopen_self=unknown
12560 enable_dlopen_self_static=unknown
12561else
12562 lt_cv_dlopen=no
12563 lt_cv_dlopen_libs=
d9898ee8 12564
8d138742
CE
12565 case $host_os in
12566 beos*)
12567 lt_cv_dlopen="load_add_on"
12568 lt_cv_dlopen_libs=
12569 lt_cv_dlopen_self=yes
12570 ;;
d9898ee8 12571
8d138742
CE
12572 mingw* | pw32* | cegcc*)
12573 lt_cv_dlopen="LoadLibrary"
12574 lt_cv_dlopen_libs=
12575 ;;
d9898ee8 12576
8d138742
CE
12577 cygwin*)
12578 lt_cv_dlopen="dlopen"
12579 lt_cv_dlopen_libs=
12580 ;;
12581
12582 darwin*)
12583 # if libdl is installed we need to link against it
12584 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12585$as_echo_n "checking for dlopen in -ldl... " >&6; }
12586if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12587 $as_echo_n "(cached) " >&6
12588else
12589 ac_check_lib_save_LIBS=$LIBS
12590LIBS="-ldl $LIBS"
12591cat >conftest.$ac_ext <<_ACEOF
12592/* confdefs.h. */
12593_ACEOF
12594cat confdefs.h >>conftest.$ac_ext
12595cat >>conftest.$ac_ext <<_ACEOF
12596/* end confdefs.h. */
d9898ee8 12597
8d138742
CE
12598/* Override any GCC internal prototype to avoid an error.
12599 Use char because int might match the return type of a GCC
12600 builtin and then its argument prototype would still apply. */
12601#ifdef __cplusplus
12602extern "C"
12603#endif
12604char dlopen ();
12605int
12606main ()
12607{
12608return dlopen ();
12609 ;
12610 return 0;
12611}
12612_ACEOF
12613rm -f conftest.$ac_objext conftest$ac_exeext
12614if { (ac_try="$ac_link"
12615case "(($ac_try" in
12616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12617 *) ac_try_echo=$ac_try;;
12618esac
12619eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12620$as_echo "$ac_try_echo") >&5
12621 (eval "$ac_link") 2>conftest.er1
12622 ac_status=$?
12623 grep -v '^ *+' conftest.er1 >conftest.err
12624 rm -f conftest.er1
12625 cat conftest.err >&5
12626 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12627 (exit $ac_status); } && {
12628 test -z "$ac_c_werror_flag" ||
12629 test ! -s conftest.err
12630 } && test -s conftest$ac_exeext && {
12631 test "$cross_compiling" = yes ||
12632 $as_test_x conftest$ac_exeext
12633 }; then
12634 ac_cv_lib_dl_dlopen=yes
12635else
12636 $as_echo "$as_me: failed program was:" >&5
12637sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 12638
8d138742
CE
12639 ac_cv_lib_dl_dlopen=no
12640fi
d9898ee8 12641
8d138742
CE
12642rm -rf conftest.dSYM
12643rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12644 conftest$ac_exeext conftest.$ac_ext
12645LIBS=$ac_check_lib_save_LIBS
12646fi
12647{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12648$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12649if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
12650 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12651else
d9898ee8 12652
8d138742
CE
12653 lt_cv_dlopen="dyld"
12654 lt_cv_dlopen_libs=
12655 lt_cv_dlopen_self=yes
d9898ee8 12656
8d138742 12657fi
d9898ee8 12658
8d138742 12659 ;;
d9898ee8 12660
8d138742
CE
12661 *)
12662 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
12663$as_echo_n "checking for shl_load... " >&6; }
12664if test "${ac_cv_func_shl_load+set}" = set; then
12665 $as_echo_n "(cached) " >&6
12666else
12667 cat >conftest.$ac_ext <<_ACEOF
12668/* confdefs.h. */
12669_ACEOF
12670cat confdefs.h >>conftest.$ac_ext
12671cat >>conftest.$ac_ext <<_ACEOF
12672/* end confdefs.h. */
12673/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12674 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12675#define shl_load innocuous_shl_load
d9898ee8 12676
8d138742
CE
12677/* System header to define __stub macros and hopefully few prototypes,
12678 which can conflict with char shl_load (); below.
12679 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12680 <limits.h> exists even on freestanding compilers. */
d9898ee8 12681
8d138742
CE
12682#ifdef __STDC__
12683# include <limits.h>
12684#else
12685# include <assert.h>
12686#endif
d9898ee8 12687
8d138742 12688#undef shl_load
d9898ee8 12689
8d138742
CE
12690/* Override any GCC internal prototype to avoid an error.
12691 Use char because int might match the return type of a GCC
12692 builtin and then its argument prototype would still apply. */
12693#ifdef __cplusplus
12694extern "C"
12695#endif
12696char shl_load ();
12697/* The GNU C library defines this for functions which it implements
12698 to always fail with ENOSYS. Some functions are actually named
12699 something starting with __ and the normal name is an alias. */
12700#if defined __stub_shl_load || defined __stub___shl_load
12701choke me
12702#endif
d9898ee8 12703
8d138742
CE
12704int
12705main ()
12706{
12707return shl_load ();
12708 ;
12709 return 0;
12710}
12711_ACEOF
12712rm -f conftest.$ac_objext conftest$ac_exeext
12713if { (ac_try="$ac_link"
12714case "(($ac_try" in
12715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12716 *) ac_try_echo=$ac_try;;
12717esac
12718eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12719$as_echo "$ac_try_echo") >&5
12720 (eval "$ac_link") 2>conftest.er1
12721 ac_status=$?
12722 grep -v '^ *+' conftest.er1 >conftest.err
12723 rm -f conftest.er1
12724 cat conftest.err >&5
12725 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12726 (exit $ac_status); } && {
12727 test -z "$ac_c_werror_flag" ||
12728 test ! -s conftest.err
12729 } && test -s conftest$ac_exeext && {
12730 test "$cross_compiling" = yes ||
12731 $as_test_x conftest$ac_exeext
12732 }; then
12733 ac_cv_func_shl_load=yes
12734else
12735 $as_echo "$as_me: failed program was:" >&5
12736sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 12737
8d138742
CE
12738 ac_cv_func_shl_load=no
12739fi
d9898ee8 12740
8d138742
CE
12741rm -rf conftest.dSYM
12742rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12743 conftest$ac_exeext conftest.$ac_ext
12744fi
12745{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12746$as_echo "$ac_cv_func_shl_load" >&6; }
12747if test "x$ac_cv_func_shl_load" = x""yes; then
12748 lt_cv_dlopen="shl_load"
12749else
12750 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12751$as_echo_n "checking for shl_load in -ldld... " >&6; }
12752if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12753 $as_echo_n "(cached) " >&6
12754else
12755 ac_check_lib_save_LIBS=$LIBS
12756LIBS="-ldld $LIBS"
12757cat >conftest.$ac_ext <<_ACEOF
12758/* confdefs.h. */
12759_ACEOF
12760cat confdefs.h >>conftest.$ac_ext
12761cat >>conftest.$ac_ext <<_ACEOF
12762/* end confdefs.h. */
d9898ee8 12763
8d138742
CE
12764/* Override any GCC internal prototype to avoid an error.
12765 Use char because int might match the return type of a GCC
12766 builtin and then its argument prototype would still apply. */
12767#ifdef __cplusplus
12768extern "C"
12769#endif
12770char shl_load ();
12771int
12772main ()
12773{
12774return shl_load ();
12775 ;
12776 return 0;
12777}
12778_ACEOF
12779rm -f conftest.$ac_objext conftest$ac_exeext
12780if { (ac_try="$ac_link"
12781case "(($ac_try" in
12782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12783 *) ac_try_echo=$ac_try;;
12784esac
12785eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12786$as_echo "$ac_try_echo") >&5
12787 (eval "$ac_link") 2>conftest.er1
12788 ac_status=$?
12789 grep -v '^ *+' conftest.er1 >conftest.err
12790 rm -f conftest.er1
12791 cat conftest.err >&5
12792 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12793 (exit $ac_status); } && {
12794 test -z "$ac_c_werror_flag" ||
12795 test ! -s conftest.err
12796 } && test -s conftest$ac_exeext && {
12797 test "$cross_compiling" = yes ||
12798 $as_test_x conftest$ac_exeext
12799 }; then
12800 ac_cv_lib_dld_shl_load=yes
12801else
12802 $as_echo "$as_me: failed program was:" >&5
12803sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 12804
8d138742
CE
12805 ac_cv_lib_dld_shl_load=no
12806fi
d9898ee8 12807
8d138742
CE
12808rm -rf conftest.dSYM
12809rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12810 conftest$ac_exeext conftest.$ac_ext
12811LIBS=$ac_check_lib_save_LIBS
12812fi
12813{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12814$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12815if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
12816 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12817else
12818 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
12819$as_echo_n "checking for dlopen... " >&6; }
12820if test "${ac_cv_func_dlopen+set}" = set; then
12821 $as_echo_n "(cached) " >&6
12822else
12823 cat >conftest.$ac_ext <<_ACEOF
12824/* confdefs.h. */
12825_ACEOF
12826cat confdefs.h >>conftest.$ac_ext
12827cat >>conftest.$ac_ext <<_ACEOF
12828/* end confdefs.h. */
12829/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12830 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12831#define dlopen innocuous_dlopen
d9898ee8 12832
8d138742
CE
12833/* System header to define __stub macros and hopefully few prototypes,
12834 which can conflict with char dlopen (); below.
12835 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12836 <limits.h> exists even on freestanding compilers. */
d9898ee8 12837
8d138742
CE
12838#ifdef __STDC__
12839# include <limits.h>
12840#else
12841# include <assert.h>
12842#endif
d9898ee8 12843
8d138742 12844#undef dlopen
d9898ee8 12845
8d138742
CE
12846/* Override any GCC internal prototype to avoid an error.
12847 Use char because int might match the return type of a GCC
12848 builtin and then its argument prototype would still apply. */
12849#ifdef __cplusplus
12850extern "C"
12851#endif
12852char dlopen ();
12853/* The GNU C library defines this for functions which it implements
12854 to always fail with ENOSYS. Some functions are actually named
12855 something starting with __ and the normal name is an alias. */
12856#if defined __stub_dlopen || defined __stub___dlopen
12857choke me
12858#endif
d9898ee8 12859
8d138742
CE
12860int
12861main ()
12862{
12863return dlopen ();
12864 ;
12865 return 0;
12866}
d9898ee8 12867_ACEOF
12868rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 12869if { (ac_try="$ac_link"
12870case "(($ac_try" in
12871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12872 *) ac_try_echo=$ac_try;;
12873esac
8d138742
CE
12874eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12875$as_echo "$ac_try_echo") >&5
dd184caf 12876 (eval "$ac_link") 2>conftest.er1
d9898ee8 12877 ac_status=$?
12878 grep -v '^ *+' conftest.er1 >conftest.err
12879 rm -f conftest.er1
12880 cat conftest.err >&5
8d138742 12881 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 12882 (exit $ac_status); } && {
8d138742 12883 test -z "$ac_c_werror_flag" ||
dd184caf 12884 test ! -s conftest.err
8d138742
CE
12885 } && test -s conftest$ac_exeext && {
12886 test "$cross_compiling" = yes ||
12887 $as_test_x conftest$ac_exeext
12888 }; then
12889 ac_cv_func_dlopen=yes
12890else
12891 $as_echo "$as_me: failed program was:" >&5
12892sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 12893
8d138742
CE
12894 ac_cv_func_dlopen=no
12895fi
12896
12897rm -rf conftest.dSYM
12898rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12899 conftest$ac_exeext conftest.$ac_ext
ac40fd9e 12900fi
8d138742
CE
12901{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12902$as_echo "$ac_cv_func_dlopen" >&6; }
12903if test "x$ac_cv_func_dlopen" = x""yes; then
12904 lt_cv_dlopen="dlopen"
d9898ee8 12905else
8d138742
CE
12906 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12907$as_echo_n "checking for dlopen in -ldl... " >&6; }
12908if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12909 $as_echo_n "(cached) " >&6
12910else
12911 ac_check_lib_save_LIBS=$LIBS
12912LIBS="-ldl $LIBS"
12913cat >conftest.$ac_ext <<_ACEOF
12914/* confdefs.h. */
12915_ACEOF
12916cat confdefs.h >>conftest.$ac_ext
12917cat >>conftest.$ac_ext <<_ACEOF
12918/* end confdefs.h. */
d9898ee8 12919
8d138742
CE
12920/* Override any GCC internal prototype to avoid an error.
12921 Use char because int might match the return type of a GCC
12922 builtin and then its argument prototype would still apply. */
12923#ifdef __cplusplus
12924extern "C"
12925#endif
12926char dlopen ();
12927int
12928main ()
12929{
12930return dlopen ();
12931 ;
12932 return 0;
12933}
12934_ACEOF
12935rm -f conftest.$ac_objext conftest$ac_exeext
12936if { (ac_try="$ac_link"
12937case "(($ac_try" in
12938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12939 *) ac_try_echo=$ac_try;;
12940esac
12941eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12942$as_echo "$ac_try_echo") >&5
12943 (eval "$ac_link") 2>conftest.er1
12944 ac_status=$?
12945 grep -v '^ *+' conftest.er1 >conftest.err
12946 rm -f conftest.er1
12947 cat conftest.err >&5
12948 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12949 (exit $ac_status); } && {
12950 test -z "$ac_c_werror_flag" ||
12951 test ! -s conftest.err
12952 } && test -s conftest$ac_exeext && {
12953 test "$cross_compiling" = yes ||
12954 $as_test_x conftest$ac_exeext
12955 }; then
12956 ac_cv_lib_dl_dlopen=yes
12957else
12958 $as_echo "$as_me: failed program was:" >&5
12959sed 's/^/| /' conftest.$ac_ext >&5
dd184caf 12960
8d138742 12961 ac_cv_lib_dl_dlopen=no
d9898ee8 12962fi
dd184caf 12963
8d138742 12964rm -rf conftest.dSYM
dd184caf 12965rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 12966 conftest$ac_exeext conftest.$ac_ext
8d138742
CE
12967LIBS=$ac_check_lib_save_LIBS
12968fi
12969{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12970$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12971if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
12972 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12973else
12974 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12975$as_echo_n "checking for dlopen in -lsvld... " >&6; }
12976if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12977 $as_echo_n "(cached) " >&6
12978else
12979 ac_check_lib_save_LIBS=$LIBS
12980LIBS="-lsvld $LIBS"
12981cat >conftest.$ac_ext <<_ACEOF
12982/* confdefs.h. */
12983_ACEOF
12984cat confdefs.h >>conftest.$ac_ext
12985cat >>conftest.$ac_ext <<_ACEOF
12986/* end confdefs.h. */
d9898ee8 12987
8d138742
CE
12988/* Override any GCC internal prototype to avoid an error.
12989 Use char because int might match the return type of a GCC
12990 builtin and then its argument prototype would still apply. */
12991#ifdef __cplusplus
12992extern "C"
12993#endif
12994char dlopen ();
12995int
12996main ()
12997{
12998return dlopen ();
12999 ;
13000 return 0;
13001}
13002_ACEOF
13003rm -f conftest.$ac_objext conftest$ac_exeext
13004if { (ac_try="$ac_link"
13005case "(($ac_try" in
13006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13007 *) ac_try_echo=$ac_try;;
13008esac
13009eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13010$as_echo "$ac_try_echo") >&5
13011 (eval "$ac_link") 2>conftest.er1
13012 ac_status=$?
13013 grep -v '^ *+' conftest.er1 >conftest.err
13014 rm -f conftest.er1
13015 cat conftest.err >&5
13016 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13017 (exit $ac_status); } && {
13018 test -z "$ac_c_werror_flag" ||
13019 test ! -s conftest.err
13020 } && test -s conftest$ac_exeext && {
13021 test "$cross_compiling" = yes ||
13022 $as_test_x conftest$ac_exeext
13023 }; then
13024 ac_cv_lib_svld_dlopen=yes
13025else
13026 $as_echo "$as_me: failed program was:" >&5
13027sed 's/^/| /' conftest.$ac_ext >&5
13028
13029 ac_cv_lib_svld_dlopen=no
13030fi
13031
13032rm -rf conftest.dSYM
13033rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13034 conftest$ac_exeext conftest.$ac_ext
13035LIBS=$ac_check_lib_save_LIBS
13036fi
13037{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
13038$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13039if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
13040 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13041else
13042 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
13043$as_echo_n "checking for dld_link in -ldld... " >&6; }
13044if test "${ac_cv_lib_dld_dld_link+set}" = set; then
13045 $as_echo_n "(cached) " >&6
13046else
13047 ac_check_lib_save_LIBS=$LIBS
13048LIBS="-ldld $LIBS"
13049cat >conftest.$ac_ext <<_ACEOF
13050/* confdefs.h. */
13051_ACEOF
13052cat confdefs.h >>conftest.$ac_ext
13053cat >>conftest.$ac_ext <<_ACEOF
13054/* end confdefs.h. */
d9898ee8 13055
8d138742
CE
13056/* Override any GCC internal prototype to avoid an error.
13057 Use char because int might match the return type of a GCC
13058 builtin and then its argument prototype would still apply. */
13059#ifdef __cplusplus
13060extern "C"
13061#endif
13062char dld_link ();
13063int
13064main ()
13065{
13066return dld_link ();
13067 ;
13068 return 0;
13069}
d9898ee8 13070_ACEOF
13071rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 13072if { (ac_try="$ac_link"
13073case "(($ac_try" in
13074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13075 *) ac_try_echo=$ac_try;;
13076esac
8d138742
CE
13077eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13078$as_echo "$ac_try_echo") >&5
dd184caf 13079 (eval "$ac_link") 2>conftest.er1
d9898ee8 13080 ac_status=$?
13081 grep -v '^ *+' conftest.er1 >conftest.err
13082 rm -f conftest.er1
13083 cat conftest.err >&5
8d138742 13084 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 13085 (exit $ac_status); } && {
8d138742 13086 test -z "$ac_c_werror_flag" ||
dd184caf 13087 test ! -s conftest.err
8d138742
CE
13088 } && test -s conftest$ac_exeext && {
13089 test "$cross_compiling" = yes ||
13090 $as_test_x conftest$ac_exeext
13091 }; then
13092 ac_cv_lib_dld_dld_link=yes
d9898ee8 13093else
8d138742 13094 $as_echo "$as_me: failed program was:" >&5
d9898ee8 13095sed 's/^/| /' conftest.$ac_ext >&5
13096
8d138742 13097 ac_cv_lib_dld_dld_link=no
d9898ee8 13098fi
dd184caf 13099
8d138742 13100rm -rf conftest.dSYM
dd184caf 13101rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 13102 conftest$ac_exeext conftest.$ac_ext
8d138742
CE
13103LIBS=$ac_check_lib_save_LIBS
13104fi
13105{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
13106$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13107if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
13108 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
13109fi
d9898ee8 13110
d9898ee8 13111
8d138742 13112fi
d9898ee8 13113
d9898ee8 13114
8d138742 13115fi
d9898ee8 13116
d9898ee8 13117
8d138742 13118fi
d9898ee8 13119
d9898ee8 13120
8d138742 13121fi
d9898ee8 13122
d9898ee8 13123
8d138742 13124fi
d9898ee8 13125
8d138742
CE
13126 ;;
13127 esac
d9898ee8 13128
8d138742
CE
13129 if test "x$lt_cv_dlopen" != xno; then
13130 enable_dlopen=yes
13131 else
13132 enable_dlopen=no
13133 fi
d9898ee8 13134
8d138742
CE
13135 case $lt_cv_dlopen in
13136 dlopen)
13137 save_CPPFLAGS="$CPPFLAGS"
13138 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
d9898ee8 13139
8d138742
CE
13140 save_LDFLAGS="$LDFLAGS"
13141 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
d9898ee8 13142
8d138742
CE
13143 save_LIBS="$LIBS"
13144 LIBS="$lt_cv_dlopen_libs $LIBS"
d9898ee8 13145
8d138742
CE
13146 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
13147$as_echo_n "checking whether a program can dlopen itself... " >&6; }
13148if test "${lt_cv_dlopen_self+set}" = set; then
13149 $as_echo_n "(cached) " >&6
13150else
13151 if test "$cross_compiling" = yes; then :
13152 lt_cv_dlopen_self=cross
13153else
13154 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13155 lt_status=$lt_dlunknown
13156 cat > conftest.$ac_ext <<_LT_EOF
13157#line 13157 "configure"
13158#include "confdefs.h"
d9898ee8 13159
8d138742
CE
13160#if HAVE_DLFCN_H
13161#include <dlfcn.h>
13162#endif
d9898ee8 13163
8d138742 13164#include <stdio.h>
d9898ee8 13165
8d138742
CE
13166#ifdef RTLD_GLOBAL
13167# define LT_DLGLOBAL RTLD_GLOBAL
13168#else
13169# ifdef DL_GLOBAL
13170# define LT_DLGLOBAL DL_GLOBAL
13171# else
13172# define LT_DLGLOBAL 0
13173# endif
13174#endif
d9898ee8 13175
8d138742
CE
13176/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13177 find out it does not work in some platform. */
13178#ifndef LT_DLLAZY_OR_NOW
13179# ifdef RTLD_LAZY
13180# define LT_DLLAZY_OR_NOW RTLD_LAZY
13181# else
13182# ifdef DL_LAZY
13183# define LT_DLLAZY_OR_NOW DL_LAZY
13184# else
13185# ifdef RTLD_NOW
13186# define LT_DLLAZY_OR_NOW RTLD_NOW
13187# else
13188# ifdef DL_NOW
13189# define LT_DLLAZY_OR_NOW DL_NOW
13190# else
13191# define LT_DLLAZY_OR_NOW 0
13192# endif
13193# endif
13194# endif
13195# endif
13196#endif
d9898ee8 13197
8d138742
CE
13198void fnord() { int i=42;}
13199int main ()
13200{
13201 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13202 int status = $lt_dlunknown;
d9898ee8 13203
8d138742
CE
13204 if (self)
13205 {
13206 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13207 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13208 /* dlclose (self); */
13209 }
13210 else
13211 puts (dlerror ());
d9898ee8 13212
8d138742
CE
13213 return status;
13214}
13215_LT_EOF
13216 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13217 (eval $ac_link) 2>&5
d9898ee8 13218 ac_status=$?
8d138742
CE
13219 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13220 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13221 (./conftest; exit; ) >&5 2>/dev/null
13222 lt_status=$?
13223 case x$lt_status in
13224 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13225 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13226 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
d9898ee8 13227 esac
8d138742
CE
13228 else :
13229 # compilation failed
13230 lt_cv_dlopen_self=no
d9898ee8 13231 fi
8d138742
CE
13232fi
13233rm -fr conftest*
d9898ee8 13234
ac40fd9e 13235
8d138742
CE
13236fi
13237{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
13238$as_echo "$lt_cv_dlopen_self" >&6; }
d9898ee8 13239
8d138742
CE
13240 if test "x$lt_cv_dlopen_self" = xyes; then
13241 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13242 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
13243$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13244if test "${lt_cv_dlopen_self_static+set}" = set; then
13245 $as_echo_n "(cached) " >&6
13246else
13247 if test "$cross_compiling" = yes; then :
13248 lt_cv_dlopen_self_static=cross
13249else
13250 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13251 lt_status=$lt_dlunknown
13252 cat > conftest.$ac_ext <<_LT_EOF
13253#line 13253 "configure"
13254#include "confdefs.h"
d9898ee8 13255
8d138742
CE
13256#if HAVE_DLFCN_H
13257#include <dlfcn.h>
13258#endif
d9898ee8 13259
8d138742 13260#include <stdio.h>
d9898ee8 13261
8d138742
CE
13262#ifdef RTLD_GLOBAL
13263# define LT_DLGLOBAL RTLD_GLOBAL
13264#else
13265# ifdef DL_GLOBAL
13266# define LT_DLGLOBAL DL_GLOBAL
13267# else
13268# define LT_DLGLOBAL 0
13269# endif
13270#endif
13271
13272/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13273 find out it does not work in some platform. */
13274#ifndef LT_DLLAZY_OR_NOW
13275# ifdef RTLD_LAZY
13276# define LT_DLLAZY_OR_NOW RTLD_LAZY
13277# else
13278# ifdef DL_LAZY
13279# define LT_DLLAZY_OR_NOW DL_LAZY
13280# else
13281# ifdef RTLD_NOW
13282# define LT_DLLAZY_OR_NOW RTLD_NOW
13283# else
13284# ifdef DL_NOW
13285# define LT_DLLAZY_OR_NOW DL_NOW
13286# else
13287# define LT_DLLAZY_OR_NOW 0
13288# endif
13289# endif
13290# endif
13291# endif
13292#endif
13293
13294void fnord() { int i=42;}
13295int main ()
13296{
13297 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13298 int status = $lt_dlunknown;
13299
13300 if (self)
13301 {
13302 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13303 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13304 /* dlclose (self); */
13305 }
d9898ee8 13306 else
8d138742
CE
13307 puts (dlerror ());
13308
13309 return status;
13310}
13311_LT_EOF
13312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13313 (eval $ac_link) 2>&5
13314 ac_status=$?
13315 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13316 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13317 (./conftest; exit; ) >&5 2>/dev/null
13318 lt_status=$?
13319 case x$lt_status in
13320 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13321 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13322 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
d9898ee8 13323 esac
8d138742
CE
13324 else :
13325 # compilation failed
13326 lt_cv_dlopen_self_static=no
13327 fi
13328fi
13329rm -fr conftest*
13330
13331
13332fi
13333{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
13334$as_echo "$lt_cv_dlopen_self_static" >&6; }
d9898ee8 13335 fi
d9898ee8 13336
8d138742
CE
13337 CPPFLAGS="$save_CPPFLAGS"
13338 LDFLAGS="$save_LDFLAGS"
13339 LIBS="$save_LIBS"
13340 ;;
13341 esac
d9898ee8 13342
8d138742
CE
13343 case $lt_cv_dlopen_self in
13344 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13345 *) enable_dlopen_self=unknown ;;
13346 esac
d9898ee8 13347
8d138742
CE
13348 case $lt_cv_dlopen_self_static in
13349 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13350 *) enable_dlopen_self_static=unknown ;;
13351 esac
13352fi
d9898ee8 13353
d9898ee8 13354
d9898ee8 13355
d9898ee8 13356
d9898ee8 13357
ac40fd9e 13358
d9898ee8 13359
d9898ee8 13360
d9898ee8 13361
d9898ee8 13362
d9898ee8 13363
8d138742
CE
13364
13365
13366
13367
13368
13369
13370striplib=
13371old_striplib=
13372{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13373$as_echo_n "checking whether stripping libraries is possible... " >&6; }
13374if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13375 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13376 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13377 { $as_echo "$as_me:$LINENO: result: yes" >&5
13378$as_echo "yes" >&6; }
13379else
13380# FIXME - insert some real tests, host_os isn't really good enough
13381 case $host_os in
13382 darwin*)
13383 if test -n "$STRIP" ; then
13384 striplib="$STRIP -x"
13385 old_striplib="$STRIP -S"
13386 { $as_echo "$as_me:$LINENO: result: yes" >&5
13387$as_echo "yes" >&6; }
d9898ee8 13388 else
8d138742
CE
13389 { $as_echo "$as_me:$LINENO: result: no" >&5
13390$as_echo "no" >&6; }
d9898ee8 13391 fi
d9898ee8 13392 ;;
8d138742
CE
13393 *)
13394 { $as_echo "$as_me:$LINENO: result: no" >&5
13395$as_echo "no" >&6; }
d9898ee8 13396 ;;
13397 esac
8d138742 13398fi
d9898ee8 13399
d9898ee8 13400
8d138742
CE
13401
13402
13403
13404
13405
13406
13407
13408
13409
13410
13411 # Report which library types will actually be built
13412 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13413$as_echo_n "checking if libtool supports shared libraries... " >&6; }
13414 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
13415$as_echo "$can_build_shared" >&6; }
13416
13417 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13418$as_echo_n "checking whether to build shared libraries... " >&6; }
13419 test "$can_build_shared" = "no" && enable_shared=no
13420
13421 # On AIX, shared libraries and static libraries use the same namespace, and
13422 # are all built from PIC.
d9898ee8 13423 case $host_os in
8d138742
CE
13424 aix3*)
13425 test "$enable_shared" = yes && enable_static=no
13426 if test -n "$RANLIB"; then
13427 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13428 postinstall_cmds='$RANLIB $lib'
13429 fi
13430 ;;
13431
13432 aix[4-9]*)
13433 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13434 test "$enable_shared" = yes && enable_static=no
13435 fi
d9898ee8 13436 ;;
13437 esac
8d138742
CE
13438 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
13439$as_echo "$enable_shared" >&6; }
d9898ee8 13440
8d138742
CE
13441 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13442$as_echo_n "checking whether to build static libraries... " >&6; }
13443 # Make sure either enable_shared or enable_static is yes.
13444 test "$enable_shared" = yes || enable_static=yes
13445 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
13446$as_echo "$enable_static" >&6; }
d9898ee8 13447
d9898ee8 13448
d9898ee8 13449
d9898ee8 13450
8d138742
CE
13451fi
13452ac_ext=c
13453ac_cpp='$CPP $CPPFLAGS'
13454ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13455ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13456ac_compiler_gnu=$ac_cv_c_compiler_gnu
d9898ee8 13457
8d138742 13458CC="$lt_save_CC"
d9898ee8 13459
d9898ee8 13460
8d138742
CE
13461ac_ext=cpp
13462ac_cpp='$CXXCPP $CPPFLAGS'
13463ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13464ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13465ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
d9898ee8 13466
8d138742
CE
13467archive_cmds_need_lc_CXX=no
13468allow_undefined_flag_CXX=
13469always_export_symbols_CXX=no
13470archive_expsym_cmds_CXX=
13471compiler_needs_object_CXX=no
13472export_dynamic_flag_spec_CXX=
13473hardcode_direct_CXX=no
13474hardcode_direct_absolute_CXX=no
13475hardcode_libdir_flag_spec_CXX=
13476hardcode_libdir_flag_spec_ld_CXX=
13477hardcode_libdir_separator_CXX=
13478hardcode_minus_L_CXX=no
13479hardcode_shlibpath_var_CXX=unsupported
13480hardcode_automatic_CXX=no
13481inherit_rpath_CXX=no
13482module_cmds_CXX=
13483module_expsym_cmds_CXX=
13484link_all_deplibs_CXX=unknown
13485old_archive_cmds_CXX=$old_archive_cmds
13486no_undefined_flag_CXX=
13487whole_archive_flag_spec_CXX=
13488enable_shared_with_static_runtimes_CXX=no
d9898ee8 13489
8d138742
CE
13490# Source file extension for C++ test sources.
13491ac_ext=cpp
d9898ee8 13492
8d138742
CE
13493# Object file extension for compiled C++ test sources.
13494objext=o
13495objext_CXX=$objext
ac40fd9e 13496
8d138742
CE
13497# No sense in running all these tests if we already determined that
13498# the CXX compiler isn't working. Some variables (like enable_shared)
13499# are currently assumed to apply to all compilers on this platform,
13500# and will be corrupted by setting them based on a non-working compiler.
13501if test "$_lt_caught_CXX_error" != yes; then
13502 # Code to be used in simple compile tests
13503 lt_simple_compile_test_code="int some_variable = 0;"
d9898ee8 13504
8d138742
CE
13505 # Code to be used in simple link tests
13506 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
d9898ee8 13507
8d138742 13508 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
d9898ee8 13509
d9898ee8 13510
8d138742
CE
13511
13512
13513
13514
13515# If no C compiler was specified, use CC.
13516LTCC=${LTCC-"$CC"}
13517
13518# If no C compiler flags were specified, use CFLAGS.
13519LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13520
13521# Allow CC to be a program name with arguments.
13522compiler=$CC
13523
13524
13525 # save warnings/boilerplate of simple test code
13526 ac_outfile=conftest.$ac_objext
13527echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13528eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13529_lt_compiler_boilerplate=`cat conftest.err`
13530$RM conftest*
13531
13532 ac_outfile=conftest.$ac_objext
13533echo "$lt_simple_link_test_code" >conftest.$ac_ext
13534eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13535_lt_linker_boilerplate=`cat conftest.err`
13536$RM -r conftest*
13537
13538
13539 # Allow CC to be a program name with arguments.
13540 lt_save_CC=$CC
13541 lt_save_LD=$LD
13542 lt_save_GCC=$GCC
13543 GCC=$GXX
13544 lt_save_with_gnu_ld=$with_gnu_ld
13545 lt_save_path_LD=$lt_cv_path_LD
13546 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13547 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
d9898ee8 13548 else
8d138742 13549 $as_unset lt_cv_prog_gnu_ld
d9898ee8 13550 fi
8d138742
CE
13551 if test -n "${lt_cv_path_LDCXX+set}"; then
13552 lt_cv_path_LD=$lt_cv_path_LDCXX
13553 else
13554 $as_unset lt_cv_path_LD
13555 fi
13556 test -z "${LDCXX+set}" || LD=$LDCXX
13557 CC=${CXX-"c++"}
13558 compiler=$CC
13559 compiler_CXX=$CC
13560 for cc_temp in $compiler""; do
13561 case $cc_temp in
13562 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13563 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13564 \-*) ;;
13565 *) break;;
13566 esac
13567done
13568cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
d9898ee8 13569
d9898ee8 13570
8d138742
CE
13571 if test -n "$compiler"; then
13572 # We don't want -fno-exception when compiling C++ code, so set the
13573 # no_builtin_flag separately
13574 if test "$GXX" = yes; then
13575 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13576 else
13577 lt_prog_compiler_no_builtin_flag_CXX=
13578 fi
d9898ee8 13579
8d138742
CE
13580 if test "$GXX" = yes; then
13581 # Set up default GNU C++ configuration
d9898ee8 13582
d9898ee8 13583
d9898ee8 13584
8d138742
CE
13585# Check whether --with-gnu-ld was given.
13586if test "${with_gnu_ld+set}" = set; then
13587 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13588else
13589 with_gnu_ld=no
d9898ee8 13590fi
13591
8d138742
CE
13592ac_prog=ld
13593if test "$GCC" = yes; then
13594 # Check if gcc -print-prog-name=ld gives a path.
13595 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
13596$as_echo_n "checking for ld used by $CC... " >&6; }
13597 case $host in
13598 *-*-mingw*)
13599 # gcc leaves a trailing carriage return which upsets mingw
13600 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13601 *)
13602 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13603 esac
13604 case $ac_prog in
13605 # Accept absolute paths.
13606 [\\/]* | ?:[\\/]*)
13607 re_direlt='/[^/][^/]*/\.\./'
13608 # Canonicalize the pathname of ld
13609 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13610 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13611 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13612 done
13613 test -z "$LD" && LD="$ac_prog"
d9898ee8 13614 ;;
8d138742
CE
13615 "")
13616 # If it fails, then pretend we aren't using GCC.
13617 ac_prog=ld
13618 ;;
13619 *)
13620 # If it is relative, then search for the first ld in PATH.
13621 with_gnu_ld=unknown
d9898ee8 13622 ;;
13623 esac
8d138742
CE
13624elif test "$with_gnu_ld" = yes; then
13625 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
13626$as_echo_n "checking for GNU ld... " >&6; }
13627else
13628 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
13629$as_echo_n "checking for non-GNU ld... " >&6; }
13630fi
13631if test "${lt_cv_path_LD+set}" = set; then
13632 $as_echo_n "(cached) " >&6
13633else
13634 if test -z "$LD"; then
13635 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13636 for ac_dir in $PATH; do
13637 IFS="$lt_save_ifs"
13638 test -z "$ac_dir" && ac_dir=.
13639 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13640 lt_cv_path_LD="$ac_dir/$ac_prog"
13641 # Check to see if the program is GNU ld. I'd rather use --version,
13642 # but apparently some variants of GNU ld only accept -v.
13643 # Break only if it was the GNU/non-GNU ld that we prefer.
13644 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13645 *GNU* | *'with BFD'*)
13646 test "$with_gnu_ld" != no && break
13647 ;;
13648 *)
13649 test "$with_gnu_ld" != yes && break
13650 ;;
13651 esac
13652 fi
13653 done
13654 IFS="$lt_save_ifs"
13655else
13656 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13657fi
13658fi
d9898ee8 13659
8d138742
CE
13660LD="$lt_cv_path_LD"
13661if test -n "$LD"; then
13662 { $as_echo "$as_me:$LINENO: result: $LD" >&5
13663$as_echo "$LD" >&6; }
13664else
13665 { $as_echo "$as_me:$LINENO: result: no" >&5
13666$as_echo "no" >&6; }
13667fi
13668test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
13669$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
13670 { (exit 1); exit 1; }; }
13671{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
13672$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13673if test "${lt_cv_prog_gnu_ld+set}" = set; then
13674 $as_echo_n "(cached) " >&6
13675else
13676 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13677case `$LD -v 2>&1 </dev/null` in
13678*GNU* | *'with BFD'*)
13679 lt_cv_prog_gnu_ld=yes
13680 ;;
13681*)
13682 lt_cv_prog_gnu_ld=no
13683 ;;
13684esac
13685fi
13686{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
13687$as_echo "$lt_cv_prog_gnu_ld" >&6; }
13688with_gnu_ld=$lt_cv_prog_gnu_ld
d9898ee8 13689
d9898ee8 13690
d9898ee8 13691
d9898ee8 13692
d9898ee8 13693
d9898ee8 13694
d9898ee8 13695
8d138742
CE
13696 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13697 # archiving commands below assume that GNU ld is being used.
13698 if test "$with_gnu_ld" = yes; then
13699 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13700 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
d9898ee8 13701
8d138742
CE
13702 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13703 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
d9898ee8 13704
8d138742
CE
13705 # If archive_cmds runs LD, not CC, wlarc should be empty
13706 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13707 # investigate it a little bit more. (MM)
13708 wlarc='${wl}'
d9898ee8 13709
8d138742
CE
13710 # ancient GNU ld didn't support --whole-archive et. al.
13711 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13712 $GREP 'no-whole-archive' > /dev/null; then
13713 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13714 else
13715 whole_archive_flag_spec_CXX=
13716 fi
13717 else
13718 with_gnu_ld=no
13719 wlarc=
13720
13721 # A generic and very simple default shared library creation
13722 # command for GNU C++ for the case where it uses the native
13723 # linker, instead of GNU ld. If possible, this setting should
13724 # overridden to take advantage of the native linker features on
13725 # the platform it is being used on.
13726 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13727 fi
d9898ee8 13728
8d138742
CE
13729 # Commands to make compiler produce verbose output that lists
13730 # what "hidden" libraries, object files and flags are used when
13731 # linking a shared library.
13732 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
d9898ee8 13733
8d138742
CE
13734 else
13735 GXX=no
13736 with_gnu_ld=no
13737 wlarc=
13738 fi
d9898ee8 13739
8d138742
CE
13740 # PORTME: fill in a description of your system's C++ link characteristics
13741 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13742$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13743 ld_shlibs_CXX=yes
13744 case $host_os in
13745 aix3*)
13746 # FIXME: insert proper C++ library support
13747 ld_shlibs_CXX=no
13748 ;;
13749 aix[4-9]*)
13750 if test "$host_cpu" = ia64; then
13751 # On IA64, the linker does run time linking by default, so we don't
13752 # have to do anything special.
13753 aix_use_runtimelinking=no
13754 exp_sym_flag='-Bexport'
13755 no_entry_flag=""
13756 else
13757 aix_use_runtimelinking=no
13758
13759 # Test if we are trying to use run time linking or normal
13760 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13761 # need to do runtime linking.
13762 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13763 for ld_flag in $LDFLAGS; do
13764 case $ld_flag in
13765 *-brtl*)
13766 aix_use_runtimelinking=yes
13767 break
13768 ;;
13769 esac
13770 done
13771 ;;
13772 esac
d9898ee8 13773
8d138742
CE
13774 exp_sym_flag='-bexport'
13775 no_entry_flag='-bnoentry'
13776 fi
d9898ee8 13777
8d138742
CE
13778 # When large executables or shared objects are built, AIX ld can
13779 # have problems creating the table of contents. If linking a library
13780 # or program results in "error TOC overflow" add -mminimal-toc to
13781 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13782 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13783
13784 archive_cmds_CXX=''
13785 hardcode_direct_CXX=yes
13786 hardcode_direct_absolute_CXX=yes
13787 hardcode_libdir_separator_CXX=':'
13788 link_all_deplibs_CXX=yes
13789 file_list_spec_CXX='${wl}-f,'
13790
13791 if test "$GXX" = yes; then
13792 case $host_os in aix4.[012]|aix4.[012].*)
13793 # We only want to do this on AIX 4.2 and lower, the check
13794 # below for broken collect2 doesn't work under 4.3+
13795 collect2name=`${CC} -print-prog-name=collect2`
13796 if test -f "$collect2name" &&
13797 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13798 then
13799 # We have reworked collect2
13800 :
13801 else
13802 # We have old collect2
13803 hardcode_direct_CXX=unsupported
13804 # It fails to find uninstalled libraries when the uninstalled
13805 # path is not listed in the libpath. Setting hardcode_minus_L
13806 # to unsupported forces relinking
13807 hardcode_minus_L_CXX=yes
13808 hardcode_libdir_flag_spec_CXX='-L$libdir'
13809 hardcode_libdir_separator_CXX=
13810 fi
13811 esac
13812 shared_flag='-shared'
13813 if test "$aix_use_runtimelinking" = yes; then
13814 shared_flag="$shared_flag "'${wl}-G'
13815 fi
13816 else
13817 # not using gcc
13818 if test "$host_cpu" = ia64; then
13819 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13820 # chokes on -Wl,-G. The following line is correct:
13821 shared_flag='-G'
13822 else
13823 if test "$aix_use_runtimelinking" = yes; then
13824 shared_flag='${wl}-G'
13825 else
13826 shared_flag='${wl}-bM:SRE'
13827 fi
13828 fi
13829 fi
d9898ee8 13830
8d138742
CE
13831 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13832 # It seems that -bexpall does not export symbols beginning with
13833 # underscore (_), so it is better to generate a list of symbols to
13834 # export.
13835 always_export_symbols_CXX=yes
13836 if test "$aix_use_runtimelinking" = yes; then
13837 # Warning - without using the other runtime loading flags (-brtl),
13838 # -berok will link without error, but may produce a broken library.
13839 allow_undefined_flag_CXX='-berok'
13840 # Determine the default libpath from the value encoded in an empty
13841 # executable.
13842 cat >conftest.$ac_ext <<_ACEOF
13843/* confdefs.h. */
13844_ACEOF
13845cat confdefs.h >>conftest.$ac_ext
13846cat >>conftest.$ac_ext <<_ACEOF
13847/* end confdefs.h. */
d9898ee8 13848
8d138742
CE
13849int
13850main ()
13851{
d9898ee8 13852
8d138742
CE
13853 ;
13854 return 0;
13855}
13856_ACEOF
13857rm -f conftest.$ac_objext conftest$ac_exeext
13858if { (ac_try="$ac_link"
13859case "(($ac_try" in
13860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13861 *) ac_try_echo=$ac_try;;
13862esac
13863eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13864$as_echo "$ac_try_echo") >&5
13865 (eval "$ac_link") 2>conftest.er1
13866 ac_status=$?
13867 grep -v '^ *+' conftest.er1 >conftest.err
13868 rm -f conftest.er1
13869 cat conftest.err >&5
13870 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13871 (exit $ac_status); } && {
13872 test -z "$ac_cxx_werror_flag" ||
13873 test ! -s conftest.err
13874 } && test -s conftest$ac_exeext && {
13875 test "$cross_compiling" = yes ||
13876 $as_test_x conftest$ac_exeext
13877 }; then
d9898ee8 13878
8d138742
CE
13879lt_aix_libpath_sed='
13880 /Import File Strings/,/^$/ {
13881 /^0/ {
13882 s/^0 *\(.*\)$/\1/
13883 p
13884 }
13885 }'
13886aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13887# Check for a 64-bit object if we didn't find anything.
13888if test -z "$aix_libpath"; then
13889 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13890fi
13891else
13892 $as_echo "$as_me: failed program was:" >&5
13893sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 13894
d9898ee8 13895
8d138742 13896fi
d9898ee8 13897
8d138742
CE
13898rm -rf conftest.dSYM
13899rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13900 conftest$ac_exeext conftest.$ac_ext
13901if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13902
13903 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13904
13905 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13906 else
13907 if test "$host_cpu" = ia64; then
13908 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13909 allow_undefined_flag_CXX="-z nodefs"
13910 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
13911 else
13912 # Determine the default libpath from the value encoded in an
13913 # empty executable.
13914 cat >conftest.$ac_ext <<_ACEOF
13915/* confdefs.h. */
13916_ACEOF
13917cat confdefs.h >>conftest.$ac_ext
13918cat >>conftest.$ac_ext <<_ACEOF
13919/* end confdefs.h. */
d9898ee8 13920
8d138742
CE
13921int
13922main ()
13923{
d9898ee8 13924
8d138742
CE
13925 ;
13926 return 0;
13927}
13928_ACEOF
13929rm -f conftest.$ac_objext conftest$ac_exeext
13930if { (ac_try="$ac_link"
13931case "(($ac_try" in
13932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13933 *) ac_try_echo=$ac_try;;
13934esac
13935eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13936$as_echo "$ac_try_echo") >&5
13937 (eval "$ac_link") 2>conftest.er1
13938 ac_status=$?
13939 grep -v '^ *+' conftest.er1 >conftest.err
13940 rm -f conftest.er1
13941 cat conftest.err >&5
13942 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13943 (exit $ac_status); } && {
13944 test -z "$ac_cxx_werror_flag" ||
13945 test ! -s conftest.err
13946 } && test -s conftest$ac_exeext && {
13947 test "$cross_compiling" = yes ||
13948 $as_test_x conftest$ac_exeext
13949 }; then
d9898ee8 13950
8d138742
CE
13951lt_aix_libpath_sed='
13952 /Import File Strings/,/^$/ {
13953 /^0/ {
13954 s/^0 *\(.*\)$/\1/
13955 p
13956 }
13957 }'
13958aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13959# Check for a 64-bit object if we didn't find anything.
13960if test -z "$aix_libpath"; then
13961 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13962fi
13963else
13964 $as_echo "$as_me: failed program was:" >&5
13965sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 13966
d9898ee8 13967
8d138742 13968fi
d9898ee8 13969
8d138742
CE
13970rm -rf conftest.dSYM
13971rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13972 conftest$ac_exeext conftest.$ac_ext
13973if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
d9898ee8 13974
8d138742
CE
13975 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13976 # Warning - without using the other run time loading flags,
13977 # -berok will link without error, but may produce a broken library.
13978 no_undefined_flag_CXX=' ${wl}-bernotok'
13979 allow_undefined_flag_CXX=' ${wl}-berok'
13980 # Exported symbols can be pulled into shared objects from archives
13981 whole_archive_flag_spec_CXX='$convenience'
13982 archive_cmds_need_lc_CXX=yes
13983 # This is similar to how AIX traditionally builds its shared
13984 # libraries.
13985 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13986 fi
13987 fi
13988 ;;
d9898ee8 13989
8d138742
CE
13990 beos*)
13991 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13992 allow_undefined_flag_CXX=unsupported
13993 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13994 # support --undefined. This deserves some investigation. FIXME
13995 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13996 else
13997 ld_shlibs_CXX=no
13998 fi
13999 ;;
d9898ee8 14000
8d138742
CE
14001 chorus*)
14002 case $cc_basename in
14003 *)
14004 # FIXME: insert proper C++ library support
14005 ld_shlibs_CXX=no
14006 ;;
14007 esac
14008 ;;
d9898ee8 14009
8d138742
CE
14010 cygwin* | mingw* | pw32* | cegcc*)
14011 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14012 # as there is no search path for DLLs.
14013 hardcode_libdir_flag_spec_CXX='-L$libdir'
14014 allow_undefined_flag_CXX=unsupported
14015 always_export_symbols_CXX=no
14016 enable_shared_with_static_runtimes_CXX=yes
14017
14018 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14019 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14020 # If the export-symbols file already is a .def file (1st line
14021 # is EXPORTS), use it as is; otherwise, prepend...
14022 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14023 cp $export_symbols $output_objdir/$soname.def;
14024 else
14025 echo EXPORTS > $output_objdir/$soname.def;
14026 cat $export_symbols >> $output_objdir/$soname.def;
14027 fi~
14028 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14029 else
14030 ld_shlibs_CXX=no
14031 fi
14032 ;;
14033 darwin* | rhapsody*)
d9898ee8 14034
d9898ee8 14035
8d138742
CE
14036 archive_cmds_need_lc_CXX=no
14037 hardcode_direct_CXX=no
14038 hardcode_automatic_CXX=yes
14039 hardcode_shlibpath_var_CXX=unsupported
14040 whole_archive_flag_spec_CXX=''
14041 link_all_deplibs_CXX=yes
14042 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
14043 case $cc_basename in
14044 ifort*) _lt_dar_can_shared=yes ;;
14045 *) _lt_dar_can_shared=$GCC ;;
14046 esac
14047 if test "$_lt_dar_can_shared" = "yes"; then
14048 output_verbose_link_cmd=echo
14049 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
14050 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14051 archive_expsym_cmds_CXX="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}"
14052 module_expsym_cmds_CXX="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}"
14053 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
14054 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
14055 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
14056 fi
d9898ee8 14057
8d138742
CE
14058 else
14059 ld_shlibs_CXX=no
14060 fi
d9898ee8 14061
8d138742 14062 ;;
d9898ee8 14063
8d138742
CE
14064 dgux*)
14065 case $cc_basename in
14066 ec++*)
14067 # FIXME: insert proper C++ library support
14068 ld_shlibs_CXX=no
14069 ;;
14070 ghcx*)
14071 # Green Hills C++ Compiler
14072 # FIXME: insert proper C++ library support
14073 ld_shlibs_CXX=no
14074 ;;
14075 *)
14076 # FIXME: insert proper C++ library support
14077 ld_shlibs_CXX=no
14078 ;;
14079 esac
14080 ;;
d9898ee8 14081
8d138742
CE
14082 freebsd[12]*)
14083 # C++ shared libraries reported to be fairly broken before
14084 # switch to ELF
14085 ld_shlibs_CXX=no
14086 ;;
d9898ee8 14087
8d138742
CE
14088 freebsd-elf*)
14089 archive_cmds_need_lc_CXX=no
14090 ;;
d9898ee8 14091
8d138742
CE
14092 freebsd* | dragonfly*)
14093 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14094 # conventions
14095 ld_shlibs_CXX=yes
14096 ;;
d9898ee8 14097
8d138742
CE
14098 gnu*)
14099 ;;
d9898ee8 14100
8d138742
CE
14101 hpux9*)
14102 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14103 hardcode_libdir_separator_CXX=:
14104 export_dynamic_flag_spec_CXX='${wl}-E'
14105 hardcode_direct_CXX=yes
14106 hardcode_minus_L_CXX=yes # Not in the search PATH,
14107 # but as the default
14108 # location of the library.
14109
14110 case $cc_basename in
14111 CC*)
14112 # FIXME: insert proper C++ library support
14113 ld_shlibs_CXX=no
14114 ;;
14115 aCC*)
14116 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14117 # Commands to make compiler produce verbose output that lists
14118 # what "hidden" libraries, object files and flags are used when
14119 # linking a shared library.
14120 #
14121 # There doesn't appear to be a way to prevent this compiler from
14122 # explicitly linking system object files so we need to strip them
14123 # from the output so that they don't get included in the library
14124 # dependencies.
14125 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
14126 ;;
14127 *)
14128 if test "$GXX" = yes; then
14129 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14130 else
14131 # FIXME: insert proper C++ library support
14132 ld_shlibs_CXX=no
14133 fi
14134 ;;
14135 esac
14136 ;;
d9898ee8 14137
8d138742
CE
14138 hpux10*|hpux11*)
14139 if test $with_gnu_ld = no; then
14140 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14141 hardcode_libdir_separator_CXX=:
d9898ee8 14142
8d138742
CE
14143 case $host_cpu in
14144 hppa*64*|ia64*)
14145 ;;
14146 *)
14147 export_dynamic_flag_spec_CXX='${wl}-E'
14148 ;;
14149 esac
14150 fi
14151 case $host_cpu in
14152 hppa*64*|ia64*)
14153 hardcode_direct_CXX=no
14154 hardcode_shlibpath_var_CXX=no
14155 ;;
14156 *)
14157 hardcode_direct_CXX=yes
14158 hardcode_direct_absolute_CXX=yes
14159 hardcode_minus_L_CXX=yes # Not in the search PATH,
14160 # but as the default
14161 # location of the library.
14162 ;;
14163 esac
d9898ee8 14164
8d138742
CE
14165 case $cc_basename in
14166 CC*)
14167 # FIXME: insert proper C++ library support
14168 ld_shlibs_CXX=no
14169 ;;
14170 aCC*)
14171 case $host_cpu in
14172 hppa*64*)
14173 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14174 ;;
14175 ia64*)
14176 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14177 ;;
14178 *)
14179 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14180 ;;
14181 esac
14182 # Commands to make compiler produce verbose output that lists
14183 # what "hidden" libraries, object files and flags are used when
14184 # linking a shared library.
14185 #
14186 # There doesn't appear to be a way to prevent this compiler from
14187 # explicitly linking system object files so we need to strip them
14188 # from the output so that they don't get included in the library
14189 # dependencies.
14190 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
14191 ;;
14192 *)
14193 if test "$GXX" = yes; then
14194 if test $with_gnu_ld = no; then
14195 case $host_cpu in
14196 hppa*64*)
14197 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14198 ;;
14199 ia64*)
14200 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14201 ;;
14202 *)
14203 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14204 ;;
14205 esac
14206 fi
14207 else
14208 # FIXME: insert proper C++ library support
14209 ld_shlibs_CXX=no
14210 fi
14211 ;;
14212 esac
14213 ;;
d9898ee8 14214
8d138742
CE
14215 interix[3-9]*)
14216 hardcode_direct_CXX=no
14217 hardcode_shlibpath_var_CXX=no
14218 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14219 export_dynamic_flag_spec_CXX='${wl}-E'
14220 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14221 # Instead, shared libraries are loaded at an image base (0x10000000 by
14222 # default) and relocated if they conflict, which is a slow very memory
14223 # consuming and fragmenting process. To avoid this, we pick a random,
14224 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14225 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14226 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14227 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14228 ;;
14229 irix5* | irix6*)
14230 case $cc_basename in
14231 CC*)
14232 # SGI C++
14233 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
14234
14235 # Archives containing C++ object files must be created using
14236 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
14237 # necessary to make sure instantiated templates are included
14238 # in the archive.
14239 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14240 ;;
14241 *)
14242 if test "$GXX" = yes; then
14243 if test "$with_gnu_ld" = no; then
14244 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
14245 else
14246 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
14247 fi
14248 fi
14249 link_all_deplibs_CXX=yes
14250 ;;
14251 esac
14252 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14253 hardcode_libdir_separator_CXX=:
14254 inherit_rpath_CXX=yes
14255 ;;
d9898ee8 14256
8d138742
CE
14257 linux* | k*bsd*-gnu)
14258 case $cc_basename in
14259 KCC*)
14260 # Kuck and Associates, Inc. (KAI) C++ Compiler
14261
14262 # KCC will only create a shared library if the output file
14263 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14264 # to its proper name (with version) after linking.
14265 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
14266 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
14267 # Commands to make compiler produce verbose output that lists
14268 # what "hidden" libraries, object files and flags are used when
14269 # linking a shared library.
14270 #
14271 # There doesn't appear to be a way to prevent this compiler from
14272 # explicitly linking system object files so we need to strip them
14273 # from the output so that they don't get included in the library
14274 # dependencies.
14275 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
14276
14277 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14278 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14279
14280 # Archives containing C++ object files must be created using
14281 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14282 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14283 ;;
14284 icpc* | ecpc* )
14285 # Intel C++
14286 with_gnu_ld=yes
14287 # version 8.0 and above of icpc choke on multiply defined symbols
14288 # if we add $predep_objects and $postdep_objects, however 7.1 and
14289 # earlier do not add the objects themselves.
14290 case `$CC -V 2>&1` in
14291 *"Version 7."*)
14292 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14293 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14294 ;;
14295 *) # Version 8.0 or newer
14296 tmp_idyn=
14297 case $host_cpu in
14298 ia64*) tmp_idyn=' -i_dynamic';;
14299 esac
14300 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14301 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14302 ;;
14303 esac
14304 archive_cmds_need_lc_CXX=no
14305 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14306 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14307 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14308 ;;
14309 pgCC* | pgcpp*)
14310 # Portland Group C++ compiler
14311 case `$CC -V` in
14312 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
14313 prelink_cmds_CXX='tpldir=Template.dir~
14314 rm -rf $tpldir~
14315 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14316 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
14317 old_archive_cmds_CXX='tpldir=Template.dir~
14318 rm -rf $tpldir~
14319 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14320 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
14321 $RANLIB $oldlib'
14322 archive_cmds_CXX='tpldir=Template.dir~
14323 rm -rf $tpldir~
14324 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14325 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14326 archive_expsym_cmds_CXX='tpldir=Template.dir~
14327 rm -rf $tpldir~
14328 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14329 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
14330 ;;
14331 *) # Version 6 will use weak symbols
14332 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14333 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
14334 ;;
14335 esac
d9898ee8 14336
8d138742
CE
14337 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14338 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14339 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
14340 ;;
14341 cxx*)
14342 # Compaq C++
14343 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14344 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
d9898ee8 14345
8d138742
CE
14346 runpath_var=LD_RUN_PATH
14347 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14348 hardcode_libdir_separator_CXX=:
d9898ee8 14349
8d138742
CE
14350 # Commands to make compiler produce verbose output that lists
14351 # what "hidden" libraries, object files and flags are used when
14352 # linking a shared library.
14353 #
14354 # There doesn't appear to be a way to prevent this compiler from
14355 # explicitly linking system object files so we need to strip them
14356 # from the output so that they don't get included in the library
14357 # dependencies.
14358 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
14359 ;;
14360 xl*)
14361 # IBM XL 8.0 on PPC, with GNU ld
14362 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14363 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14364 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14365 if test "x$supports_anon_versioning" = xyes; then
14366 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14367 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14368 echo "local: *; };" >> $output_objdir/$libname.ver~
14369 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14370 fi
14371 ;;
14372 *)
14373 case `$CC -V 2>&1 | sed 5q` in
14374 *Sun\ C*)
14375 # Sun C++ 5.9
14376 no_undefined_flag_CXX=' -zdefs'
14377 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14378 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
14379 hardcode_libdir_flag_spec_CXX='-R$libdir'
14380 whole_archive_flag_spec_CXX='${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'
14381 compiler_needs_object_CXX=yes
14382
14383 # Not sure whether something based on
14384 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14385 # would be better.
14386 output_verbose_link_cmd='echo'
14387
14388 # Archives containing C++ object files must be created using
14389 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14390 # necessary to make sure instantiated templates are included
14391 # in the archive.
14392 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14393 ;;
14394 esac
14395 ;;
14396 esac
14397 ;;
d9898ee8 14398
8d138742
CE
14399 lynxos*)
14400 # FIXME: insert proper C++ library support
14401 ld_shlibs_CXX=no
14402 ;;
d9898ee8 14403
8d138742
CE
14404 m88k*)
14405 # FIXME: insert proper C++ library support
14406 ld_shlibs_CXX=no
14407 ;;
d9898ee8 14408
8d138742
CE
14409 mvs*)
14410 case $cc_basename in
14411 cxx*)
14412 # FIXME: insert proper C++ library support
14413 ld_shlibs_CXX=no
14414 ;;
14415 *)
14416 # FIXME: insert proper C++ library support
14417 ld_shlibs_CXX=no
14418 ;;
14419 esac
14420 ;;
d9898ee8 14421
8d138742
CE
14422 netbsd*)
14423 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14424 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14425 wlarc=
14426 hardcode_libdir_flag_spec_CXX='-R$libdir'
14427 hardcode_direct_CXX=yes
14428 hardcode_shlibpath_var_CXX=no
14429 fi
14430 # Workaround some broken pre-1.5 toolchains
14431 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14432 ;;
d9898ee8 14433
8d138742
CE
14434 *nto* | *qnx*)
14435 ld_shlibs_CXX=yes
14436 ;;
d9898ee8 14437
8d138742
CE
14438 openbsd2*)
14439 # C++ shared libraries are fairly broken
14440 ld_shlibs_CXX=no
14441 ;;
d9898ee8 14442
8d138742
CE
14443 openbsd*)
14444 if test -f /usr/libexec/ld.so; then
14445 hardcode_direct_CXX=yes
14446 hardcode_shlibpath_var_CXX=no
14447 hardcode_direct_absolute_CXX=yes
14448 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14449 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14450 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14451 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14452 export_dynamic_flag_spec_CXX='${wl}-E'
14453 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14454 fi
14455 output_verbose_link_cmd=echo
14456 else
14457 ld_shlibs_CXX=no
14458 fi
14459 ;;
d9898ee8 14460
8d138742
CE
14461 osf3* | osf4* | osf5*)
14462 case $cc_basename in
14463 KCC*)
14464 # Kuck and Associates, Inc. (KAI) C++ Compiler
14465
14466 # KCC will only create a shared library if the output file
14467 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14468 # to its proper name (with version) after linking.
14469 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
14470
14471 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14472 hardcode_libdir_separator_CXX=:
14473
14474 # Archives containing C++ object files must be created using
14475 # the KAI C++ compiler.
14476 case $host in
14477 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14478 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14479 esac
14480 ;;
14481 RCC*)
14482 # Rational C++ 2.4.1
14483 # FIXME: insert proper C++ library support
14484 ld_shlibs_CXX=no
14485 ;;
14486 cxx*)
14487 case $host in
14488 osf3*)
14489 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14490 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
14491 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14492 ;;
14493 *)
14494 allow_undefined_flag_CXX=' -expect_unresolved \*'
14495 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
14496 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14497 echo "-hidden">> $lib.exp~
14498 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
14499 $RM $lib.exp'
14500 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14501 ;;
14502 esac
d9898ee8 14503
8d138742 14504 hardcode_libdir_separator_CXX=:
d9898ee8 14505
8d138742
CE
14506 # Commands to make compiler produce verbose output that lists
14507 # what "hidden" libraries, object files and flags are used when
14508 # linking a shared library.
14509 #
14510 # There doesn't appear to be a way to prevent this compiler from
14511 # explicitly linking system object files so we need to strip them
14512 # from the output so that they don't get included in the library
14513 # dependencies.
14514 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
14515 ;;
14516 *)
14517 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14518 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14519 case $host in
14520 osf3*)
14521 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14522 ;;
14523 *)
14524 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14525 ;;
14526 esac
14527
14528 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14529 hardcode_libdir_separator_CXX=:
14530
14531 # Commands to make compiler produce verbose output that lists
14532 # what "hidden" libraries, object files and flags are used when
14533 # linking a shared library.
14534 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14535
14536 else
14537 # FIXME: insert proper C++ library support
14538 ld_shlibs_CXX=no
14539 fi
14540 ;;
14541 esac
14542 ;;
d9898ee8 14543
8d138742
CE
14544 psos*)
14545 # FIXME: insert proper C++ library support
14546 ld_shlibs_CXX=no
14547 ;;
d9898ee8 14548
8d138742
CE
14549 sunos4*)
14550 case $cc_basename in
14551 CC*)
14552 # Sun C++ 4.x
14553 # FIXME: insert proper C++ library support
14554 ld_shlibs_CXX=no
14555 ;;
14556 lcc*)
14557 # Lucid
14558 # FIXME: insert proper C++ library support
14559 ld_shlibs_CXX=no
14560 ;;
14561 *)
14562 # FIXME: insert proper C++ library support
14563 ld_shlibs_CXX=no
14564 ;;
14565 esac
14566 ;;
d9898ee8 14567
8d138742
CE
14568 solaris*)
14569 case $cc_basename in
14570 CC*)
14571 # Sun C++ 4.2, 5.x and Centerline C++
14572 archive_cmds_need_lc_CXX=yes
14573 no_undefined_flag_CXX=' -zdefs'
14574 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14575 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14576 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14577
14578 hardcode_libdir_flag_spec_CXX='-R$libdir'
14579 hardcode_shlibpath_var_CXX=no
14580 case $host_os in
14581 solaris2.[0-5] | solaris2.[0-5].*) ;;
14582 *)
14583 # The compiler driver will combine and reorder linker options,
14584 # but understands `-z linker_flag'.
14585 # Supported since Solaris 2.6 (maybe 2.5.1?)
14586 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14587 ;;
14588 esac
14589 link_all_deplibs_CXX=yes
d9898ee8 14590
8d138742 14591 output_verbose_link_cmd='echo'
d9898ee8 14592
8d138742
CE
14593 # Archives containing C++ object files must be created using
14594 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14595 # necessary to make sure instantiated templates are included
14596 # in the archive.
14597 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14598 ;;
14599 gcx*)
14600 # Green Hills C++ Compiler
14601 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
d9898ee8 14602
8d138742
CE
14603 # The C++ compiler must be used to create the archive.
14604 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14605 ;;
14606 *)
14607 # GNU C++ compiler with Solaris linker
14608 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14609 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14610 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14611 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14612 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14613 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14614
14615 # Commands to make compiler produce verbose output that lists
14616 # what "hidden" libraries, object files and flags are used when
14617 # linking a shared library.
14618 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14619 else
14620 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14621 # platform.
14622 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14623 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14624 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14625
14626 # Commands to make compiler produce verbose output that lists
14627 # what "hidden" libraries, object files and flags are used when
14628 # linking a shared library.
14629 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14630 fi
14631
14632 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14633 case $host_os in
14634 solaris2.[0-5] | solaris2.[0-5].*) ;;
14635 *)
14636 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14637 ;;
14638 esac
14639 fi
14640 ;;
14641 esac
14642 ;;
d9898ee8 14643
8d138742
CE
14644 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14645 no_undefined_flag_CXX='${wl}-z,text'
14646 archive_cmds_need_lc_CXX=no
14647 hardcode_shlibpath_var_CXX=no
14648 runpath_var='LD_RUN_PATH'
d9898ee8 14649
8d138742
CE
14650 case $cc_basename in
14651 CC*)
14652 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14653 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14654 ;;
14655 *)
14656 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14657 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14658 ;;
14659 esac
14660 ;;
d9898ee8 14661
8d138742
CE
14662 sysv5* | sco3.2v5* | sco5v6*)
14663 # Note: We can NOT use -z defs as we might desire, because we do not
14664 # link with -lc, and that would cause any symbols used from libc to
14665 # always be unresolved, which means just about no library would
14666 # ever link correctly. If we're not using GNU ld we use -z text
14667 # though, which does catch some bad symbols but isn't as heavy-handed
14668 # as -z defs.
14669 no_undefined_flag_CXX='${wl}-z,text'
14670 allow_undefined_flag_CXX='${wl}-z,nodefs'
14671 archive_cmds_need_lc_CXX=no
14672 hardcode_shlibpath_var_CXX=no
14673 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14674 hardcode_libdir_separator_CXX=':'
14675 link_all_deplibs_CXX=yes
14676 export_dynamic_flag_spec_CXX='${wl}-Bexport'
14677 runpath_var='LD_RUN_PATH'
d9898ee8 14678
8d138742
CE
14679 case $cc_basename in
14680 CC*)
14681 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14682 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14683 ;;
14684 *)
14685 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14686 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14687 ;;
14688 esac
14689 ;;
d9898ee8 14690
8d138742
CE
14691 tandem*)
14692 case $cc_basename in
14693 NCC*)
14694 # NonStop-UX NCC 3.20
14695 # FIXME: insert proper C++ library support
14696 ld_shlibs_CXX=no
14697 ;;
14698 *)
14699 # FIXME: insert proper C++ library support
14700 ld_shlibs_CXX=no
14701 ;;
14702 esac
14703 ;;
d9898ee8 14704
8d138742
CE
14705 vxworks*)
14706 # FIXME: insert proper C++ library support
14707 ld_shlibs_CXX=no
14708 ;;
d9898ee8 14709
8d138742
CE
14710 *)
14711 # FIXME: insert proper C++ library support
14712 ld_shlibs_CXX=no
14713 ;;
14714 esac
d9898ee8 14715
8d138742
CE
14716 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14717$as_echo "$ld_shlibs_CXX" >&6; }
14718 test "$ld_shlibs_CXX" = no && can_build_shared=no
d9898ee8 14719
8d138742
CE
14720 GCC_CXX="$GXX"
14721 LD_CXX="$LD"
d9898ee8 14722
8d138742
CE
14723 ## CAVEAT EMPTOR:
14724 ## There is no encapsulation within the following macros, do not change
14725 ## the running order or otherwise move them around unless you know exactly
14726 ## what you are doing...
14727 # Dependencies to place before and after the object being linked:
14728predep_objects_CXX=
14729postdep_objects_CXX=
14730predeps_CXX=
14731postdeps_CXX=
14732compiler_lib_search_path_CXX=
d9898ee8 14733
8d138742
CE
14734cat > conftest.$ac_ext <<_LT_EOF
14735class Foo
14736{
14737public:
14738 Foo (void) { a = 0; }
14739private:
14740 int a;
14741};
14742_LT_EOF
d9898ee8 14743
8d138742
CE
14744if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14745 (eval $ac_compile) 2>&5
14746 ac_status=$?
14747 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14748 (exit $ac_status); }; then
14749 # Parse the compiler output and extract the necessary
14750 # objects, libraries and library flags.
d9898ee8 14751
8d138742
CE
14752 # Sentinel used to keep track of whether or not we are before
14753 # the conftest object file.
14754 pre_test_object_deps_done=no
d9898ee8 14755
8d138742
CE
14756 for p in `eval "$output_verbose_link_cmd"`; do
14757 case $p in
d9898ee8 14758
8d138742
CE
14759 -L* | -R* | -l*)
14760 # Some compilers place space between "-{L,R}" and the path.
14761 # Remove the space.
14762 if test $p = "-L" ||
14763 test $p = "-R"; then
14764 prev=$p
14765 continue
14766 else
14767 prev=
14768 fi
d9898ee8 14769
8d138742
CE
14770 if test "$pre_test_object_deps_done" = no; then
14771 case $p in
14772 -L* | -R*)
14773 # Internal compiler library paths should come after those
14774 # provided the user. The postdeps already come after the
14775 # user supplied libs so there is no need to process them.
14776 if test -z "$compiler_lib_search_path_CXX"; then
14777 compiler_lib_search_path_CXX="${prev}${p}"
14778 else
14779 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14780 fi
14781 ;;
14782 # The "-l" case would never come before the object being
14783 # linked, so don't bother handling this case.
14784 esac
14785 else
14786 if test -z "$postdeps_CXX"; then
14787 postdeps_CXX="${prev}${p}"
14788 else
14789 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14790 fi
14791 fi
14792 ;;
d9898ee8 14793
8d138742
CE
14794 *.$objext)
14795 # This assumes that the test object file only shows up
14796 # once in the compiler output.
14797 if test "$p" = "conftest.$objext"; then
14798 pre_test_object_deps_done=yes
14799 continue
14800 fi
d9898ee8 14801
8d138742
CE
14802 if test "$pre_test_object_deps_done" = no; then
14803 if test -z "$predep_objects_CXX"; then
14804 predep_objects_CXX="$p"
14805 else
14806 predep_objects_CXX="$predep_objects_CXX $p"
14807 fi
14808 else
14809 if test -z "$postdep_objects_CXX"; then
14810 postdep_objects_CXX="$p"
14811 else
14812 postdep_objects_CXX="$postdep_objects_CXX $p"
14813 fi
14814 fi
14815 ;;
d9898ee8 14816
8d138742 14817 *) ;; # Ignore the rest.
d9898ee8 14818
8d138742
CE
14819 esac
14820 done
d9898ee8 14821
8d138742
CE
14822 # Clean up.
14823 rm -f a.out a.exe
14824else
14825 echo "libtool.m4: error: problem compiling CXX test program"
14826fi
d9898ee8 14827
8d138742 14828$RM -f confest.$objext
d9898ee8 14829
8d138742
CE
14830# PORTME: override above test on systems where it is broken
14831case $host_os in
14832interix[3-9]*)
14833 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14834 # hack all around it, let's just trust "g++" to DTRT.
14835 predep_objects_CXX=
14836 postdep_objects_CXX=
14837 postdeps_CXX=
14838 ;;
d9898ee8 14839
8d138742
CE
14840linux*)
14841 case `$CC -V 2>&1 | sed 5q` in
14842 *Sun\ C*)
14843 # Sun C++ 5.9
d9898ee8 14844
8d138742
CE
14845 # The more standards-conforming stlport4 library is
14846 # incompatible with the Cstd library. Avoid specifying
14847 # it if it's in CXXFLAGS. Ignore libCrun as
14848 # -library=stlport4 depends on it.
14849 case " $CXX $CXXFLAGS " in
14850 *" -library=stlport4 "*)
14851 solaris_use_stlport4=yes
14852 ;;
14853 esac
d9898ee8 14854
8d138742
CE
14855 if test "$solaris_use_stlport4" != yes; then
14856 postdeps_CXX='-library=Cstd -library=Crun'
14857 fi
14858 ;;
14859 esac
14860 ;;
d9898ee8 14861
8d138742
CE
14862solaris*)
14863 case $cc_basename in
14864 CC*)
14865 # The more standards-conforming stlport4 library is
14866 # incompatible with the Cstd library. Avoid specifying
14867 # it if it's in CXXFLAGS. Ignore libCrun as
14868 # -library=stlport4 depends on it.
14869 case " $CXX $CXXFLAGS " in
14870 *" -library=stlport4 "*)
14871 solaris_use_stlport4=yes
14872 ;;
14873 esac
d9898ee8 14874
8d138742
CE
14875 # Adding this requires a known-good setup of shared libraries for
14876 # Sun compiler versions before 5.6, else PIC objects from an old
14877 # archive will be linked into the output, leading to subtle bugs.
14878 if test "$solaris_use_stlport4" != yes; then
14879 postdeps_CXX='-library=Cstd -library=Crun'
14880 fi
14881 ;;
14882 esac
14883 ;;
14884esac
d9898ee8 14885
14886
8d138742
CE
14887case " $postdeps_CXX " in
14888*" -lc "*) archive_cmds_need_lc_CXX=no ;;
14889esac
14890 compiler_lib_search_dirs_CXX=
14891if test -n "${compiler_lib_search_path_CXX}"; then
14892 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
d9898ee8 14893fi
14894
14895
d9898ee8 14896
d9898ee8 14897
d9898ee8 14898
d9898ee8 14899
14900
d9898ee8 14901
d9898ee8 14902
d9898ee8 14903
d9898ee8 14904
d9898ee8 14905
d9898ee8 14906
d9898ee8 14907
d9898ee8 14908
14909
d9898ee8 14910
d9898ee8 14911
14912
d9898ee8 14913
14914
d9898ee8 14915
d9898ee8 14916
14917
d9898ee8 14918
d9898ee8 14919
14920
d9898ee8 14921
d9898ee8 14922
d9898ee8 14923
d9898ee8 14924
8d138742
CE
14925 lt_prog_compiler_wl_CXX=
14926lt_prog_compiler_pic_CXX=
14927lt_prog_compiler_static_CXX=
d9898ee8 14928
8d138742
CE
14929{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14930$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
d9898ee8 14931
8d138742
CE
14932 # C++ specific cases for pic, static, wl, etc.
14933 if test "$GXX" = yes; then
14934 lt_prog_compiler_wl_CXX='-Wl,'
14935 lt_prog_compiler_static_CXX='-static'
d9898ee8 14936
14937 case $host_os in
8d138742 14938 aix*)
d9898ee8 14939 # All AIX code is PIC.
14940 if test "$host_cpu" = ia64; then
14941 # AIX 5 now supports IA64 processor
8d138742 14942 lt_prog_compiler_static_CXX='-Bstatic'
d9898ee8 14943 fi
14944 ;;
14945
14946 amigaos*)
8d138742
CE
14947 case $host_cpu in
14948 powerpc)
14949 # see comment about AmigaOS4 .so support
14950 lt_prog_compiler_pic_CXX='-fPIC'
14951 ;;
14952 m68k)
14953 # FIXME: we need at least 68020 code to build shared libraries, but
14954 # adding the `-m68020' flag to GCC prevents building anything better,
14955 # like `-m68040'.
14956 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14957 ;;
14958 esac
d9898ee8 14959 ;;
14960
ac40fd9e 14961 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
d9898ee8 14962 # PIC is the default for these OSes.
14963 ;;
8d138742 14964 mingw* | cygwin* | os2* | pw32* | cegcc*)
d9898ee8 14965 # This hack is so that the source file can tell whether it is being
14966 # built for inclusion in a dll (and should export symbols for example).
ac40fd9e 14967 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14968 # (--disable-auto-import) libraries
8d138742 14969 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
d9898ee8 14970 ;;
d9898ee8 14971 darwin* | rhapsody*)
14972 # PIC is the default on this platform
14973 # Common symbols not allowed in MH_DYLIB files
8d138742
CE
14974 lt_prog_compiler_pic_CXX='-fno-common'
14975 ;;
14976 *djgpp*)
14977 # DJGPP does not support shared libraries at all
14978 lt_prog_compiler_pic_CXX=
d9898ee8 14979 ;;
ac40fd9e 14980 interix[3-9]*)
d9898ee8 14981 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14982 # Instead, we relocate shared libraries at runtime.
14983 ;;
d9898ee8 14984 sysv4*MP*)
14985 if test -d /usr/nec; then
8d138742 14986 lt_prog_compiler_pic_CXX=-Kconform_pic
d9898ee8 14987 fi
14988 ;;
d9898ee8 14989 hpux*)
8d138742
CE
14990 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14991 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14992 # sets the default TLS model and affects inlining.
d9898ee8 14993 case $host_cpu in
8d138742 14994 hppa*64*)
d9898ee8 14995 ;;
14996 *)
8d138742 14997 lt_prog_compiler_pic_CXX='-fPIC'
d9898ee8 14998 ;;
14999 esac
15000 ;;
8d138742
CE
15001 *qnx* | *nto*)
15002 # QNX uses GNU C++, but need to define -shared option too, otherwise
15003 # it will coredump.
15004 lt_prog_compiler_pic_CXX='-fPIC -shared'
15005 ;;
d9898ee8 15006 *)
8d138742 15007 lt_prog_compiler_pic_CXX='-fPIC'
d9898ee8 15008 ;;
15009 esac
15010 else
d9898ee8 15011 case $host_os in
8d138742
CE
15012 aix[4-9]*)
15013 # All AIX code is PIC.
15014 if test "$host_cpu" = ia64; then
15015 # AIX 5 now supports IA64 processor
15016 lt_prog_compiler_static_CXX='-Bstatic'
15017 else
15018 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15019 fi
d9898ee8 15020 ;;
8d138742
CE
15021 chorus*)
15022 case $cc_basename in
15023 cxch68*)
15024 # Green Hills C++ Compiler
15025 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
15026 ;;
15027 esac
d9898ee8 15028 ;;
8d138742
CE
15029 dgux*)
15030 case $cc_basename in
15031 ec++*)
15032 lt_prog_compiler_pic_CXX='-KPIC'
15033 ;;
15034 ghcx*)
15035 # Green Hills C++ Compiler
15036 lt_prog_compiler_pic_CXX='-pic'
15037 ;;
15038 *)
15039 ;;
15040 esac
15041 ;;
15042 freebsd* | dragonfly*)
15043 # FreeBSD uses GNU C++
15044 ;;
15045 hpux9* | hpux10* | hpux11*)
15046 case $cc_basename in
15047 CC*)
15048 lt_prog_compiler_wl_CXX='-Wl,'
15049 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15050 if test "$host_cpu" != ia64; then
15051 lt_prog_compiler_pic_CXX='+Z'
15052 fi
15053 ;;
15054 aCC*)
15055 lt_prog_compiler_wl_CXX='-Wl,'
15056 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15057 case $host_cpu in
15058 hppa*64*|ia64*)
15059 # +Z the default
15060 ;;
15061 *)
15062 lt_prog_compiler_pic_CXX='+Z'
15063 ;;
15064 esac
15065 ;;
15066 *)
15067 ;;
15068 esac
15069 ;;
15070 interix*)
15071 # This is c89, which is MS Visual C++ (no shared libs)
15072 # Anyone wants to do a port?
15073 ;;
15074 irix5* | irix6* | nonstopux*)
15075 case $cc_basename in
15076 CC*)
15077 lt_prog_compiler_wl_CXX='-Wl,'
15078 lt_prog_compiler_static_CXX='-non_shared'
15079 # CC pic flag -KPIC is the default.
15080 ;;
15081 *)
15082 ;;
15083 esac
15084 ;;
15085 linux* | k*bsd*-gnu)
15086 case $cc_basename in
15087 KCC*)
15088 # KAI C++ Compiler
15089 lt_prog_compiler_wl_CXX='--backend -Wl,'
15090 lt_prog_compiler_pic_CXX='-fPIC'
15091 ;;
15092 ecpc* )
15093 # old Intel C++ for x86_64 which still supported -KPIC.
15094 lt_prog_compiler_wl_CXX='-Wl,'
15095 lt_prog_compiler_pic_CXX='-KPIC'
15096 lt_prog_compiler_static_CXX='-static'
15097 ;;
15098 icpc* )
15099 # Intel C++, used to be incompatible with GCC.
15100 # ICC 10 doesn't accept -KPIC any more.
15101 lt_prog_compiler_wl_CXX='-Wl,'
15102 lt_prog_compiler_pic_CXX='-fPIC'
15103 lt_prog_compiler_static_CXX='-static'
15104 ;;
15105 pgCC* | pgcpp*)
15106 # Portland Group C++ compiler
15107 lt_prog_compiler_wl_CXX='-Wl,'
15108 lt_prog_compiler_pic_CXX='-fpic'
15109 lt_prog_compiler_static_CXX='-Bstatic'
15110 ;;
15111 cxx*)
15112 # Compaq C++
15113 # Make sure the PIC flag is empty. It appears that all Alpha
15114 # Linux and Compaq Tru64 Unix objects are PIC.
15115 lt_prog_compiler_pic_CXX=
15116 lt_prog_compiler_static_CXX='-non_shared'
15117 ;;
15118 xlc* | xlC*)
15119 # IBM XL 8.0 on PPC
15120 lt_prog_compiler_wl_CXX='-Wl,'
15121 lt_prog_compiler_pic_CXX='-qpic'
15122 lt_prog_compiler_static_CXX='-qstaticlink'
15123 ;;
15124 *)
15125 case `$CC -V 2>&1 | sed 5q` in
15126 *Sun\ C*)
15127 # Sun C++ 5.9
15128 lt_prog_compiler_pic_CXX='-KPIC'
15129 lt_prog_compiler_static_CXX='-Bstatic'
15130 lt_prog_compiler_wl_CXX='-Qoption ld '
15131 ;;
15132 esac
15133 ;;
15134 esac
15135 ;;
15136 lynxos*)
15137 ;;
15138 m88k*)
15139 ;;
15140 mvs*)
15141 case $cc_basename in
15142 cxx*)
15143 lt_prog_compiler_pic_CXX='-W c,exportall'
15144 ;;
15145 *)
15146 ;;
15147 esac
15148 ;;
15149 netbsd*)
15150 ;;
15151 *qnx* | *nto*)
15152 # QNX uses GNU C++, but need to define -shared option too, otherwise
15153 # it will coredump.
15154 lt_prog_compiler_pic_CXX='-fPIC -shared'
d9898ee8 15155 ;;
8d138742
CE
15156 osf3* | osf4* | osf5*)
15157 case $cc_basename in
15158 KCC*)
15159 lt_prog_compiler_wl_CXX='--backend -Wl,'
15160 ;;
15161 RCC*)
15162 # Rational C++ 2.4.1
15163 lt_prog_compiler_pic_CXX='-pic'
15164 ;;
15165 cxx*)
15166 # Digital/Compaq C++
15167 lt_prog_compiler_wl_CXX='-Wl,'
15168 # Make sure the PIC flag is empty. It appears that all Alpha
15169 # Linux and Compaq Tru64 Unix objects are PIC.
15170 lt_prog_compiler_pic_CXX=
15171 lt_prog_compiler_static_CXX='-non_shared'
15172 ;;
15173 *)
15174 ;;
15175 esac
15176 ;;
15177 psos*)
15178 ;;
15179 solaris*)
15180 case $cc_basename in
15181 CC*)
15182 # Sun C++ 4.2, 5.x and Centerline C++
15183 lt_prog_compiler_pic_CXX='-KPIC'
15184 lt_prog_compiler_static_CXX='-Bstatic'
15185 lt_prog_compiler_wl_CXX='-Qoption ld '
15186 ;;
15187 gcx*)
15188 # Green Hills C++ Compiler
15189 lt_prog_compiler_pic_CXX='-PIC'
15190 ;;
15191 *)
15192 ;;
15193 esac
15194 ;;
15195 sunos4*)
15196 case $cc_basename in
15197 CC*)
15198 # Sun C++ 4.x
15199 lt_prog_compiler_pic_CXX='-pic'
15200 lt_prog_compiler_static_CXX='-Bstatic'
15201 ;;
15202 lcc*)
15203 # Lucid
15204 lt_prog_compiler_pic_CXX='-pic'
15205 ;;
15206 *)
15207 ;;
15208 esac
15209 ;;
15210 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15211 case $cc_basename in
15212 CC*)
15213 lt_prog_compiler_wl_CXX='-Wl,'
15214 lt_prog_compiler_pic_CXX='-KPIC'
15215 lt_prog_compiler_static_CXX='-Bstatic'
15216 ;;
ac40fd9e 15217 esac
15218 ;;
8d138742
CE
15219 tandem*)
15220 case $cc_basename in
15221 NCC*)
15222 # NonStop-UX NCC 3.20
15223 lt_prog_compiler_pic_CXX='-KPIC'
15224 ;;
15225 *)
15226 ;;
15227 esac
15228 ;;
15229 vxworks*)
15230 ;;
d9898ee8 15231 *)
8d138742
CE
15232 lt_prog_compiler_can_build_shared_CXX=no
15233 ;;
d9898ee8 15234 esac
15235 fi
15236
8d138742
CE
15237case $host_os in
15238 # For platforms which do not support PIC, -DPIC is meaningless:
15239 *djgpp*)
15240 lt_prog_compiler_pic_CXX=
15241 ;;
15242 *)
15243 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15244 ;;
15245esac
15246{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
15247$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
15248
15249
d9898ee8 15250
15251#
15252# Check to make sure the PIC flag actually works.
15253#
8d138742
CE
15254if test -n "$lt_prog_compiler_pic_CXX"; then
15255 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15256$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15257if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
15258 $as_echo_n "(cached) " >&6
d9898ee8 15259else
8d138742
CE
15260 lt_cv_prog_compiler_pic_works_CXX=no
15261 ac_outfile=conftest.$ac_objext
ac40fd9e 15262 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8d138742 15263 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
d9898ee8 15264 # Insert the option either (1) after the last *FLAGS variable, or
15265 # (2) before a word containing "conftest.", or (3) at the end.
15266 # Note that $ac_compile itself does not contain backslashes and begins
15267 # with a dollar sign (not a hyphen), so the echo should work correctly.
15268 # The option is referenced via a variable to avoid confusing sed.
15269 lt_compile=`echo "$ac_compile" | $SED \
15270 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15271 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15272 -e 's:$: $lt_compiler_flag:'`
8d138742 15273 (eval echo "\"\$as_me:15273: $lt_compile\"" >&5)
d9898ee8 15274 (eval "$lt_compile" 2>conftest.err)
15275 ac_status=$?
15276 cat conftest.err >&5
8d138742 15277 echo "$as_me:15277: \$? = $ac_status" >&5
d9898ee8 15278 if (exit $ac_status) && test -s "$ac_outfile"; then
15279 # The compiler can only warn and ignore the option if not recognized
15280 # So say no if there are warnings other than the usual output.
8d138742 15281 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
d9898ee8 15282 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15283 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8d138742 15284 lt_cv_prog_compiler_pic_works_CXX=yes
d9898ee8 15285 fi
15286 fi
8d138742 15287 $RM conftest*
d9898ee8 15288
15289fi
8d138742
CE
15290{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15291$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
d9898ee8 15292
8d138742
CE
15293if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15294 case $lt_prog_compiler_pic_CXX in
d9898ee8 15295 "" | " "*) ;;
8d138742 15296 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
d9898ee8 15297 esac
15298else
8d138742
CE
15299 lt_prog_compiler_pic_CXX=
15300 lt_prog_compiler_can_build_shared_CXX=no
d9898ee8 15301fi
15302
15303fi
8d138742
CE
15304
15305
d9898ee8 15306
15307#
15308# Check to make sure the static flag actually works.
15309#
8d138742
CE
15310wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15311{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15312$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15313if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
15314 $as_echo_n "(cached) " >&6
d9898ee8 15315else
8d138742 15316 lt_cv_prog_compiler_static_works_CXX=no
d9898ee8 15317 save_LDFLAGS="$LDFLAGS"
15318 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
ac40fd9e 15319 echo "$lt_simple_link_test_code" > conftest.$ac_ext
d9898ee8 15320 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15321 # The linker can only warn and ignore the option if not recognized
15322 # So say no if there are warnings
15323 if test -s conftest.err; then
15324 # Append any errors to the config.log.
15325 cat conftest.err 1>&5
8d138742 15326 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
d9898ee8 15327 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15328 if diff conftest.exp conftest.er2 >/dev/null; then
8d138742 15329 lt_cv_prog_compiler_static_works_CXX=yes
d9898ee8 15330 fi
15331 else
8d138742 15332 lt_cv_prog_compiler_static_works_CXX=yes
d9898ee8 15333 fi
15334 fi
8d138742 15335 $RM -r conftest*
d9898ee8 15336 LDFLAGS="$save_LDFLAGS"
15337
15338fi
8d138742
CE
15339{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15340$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
d9898ee8 15341
8d138742 15342if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
d9898ee8 15343 :
15344else
8d138742 15345 lt_prog_compiler_static_CXX=
d9898ee8 15346fi
15347
15348
8d138742
CE
15349
15350
15351 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15352$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15353if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
15354 $as_echo_n "(cached) " >&6
d9898ee8 15355else
8d138742
CE
15356 lt_cv_prog_compiler_c_o_CXX=no
15357 $RM -r conftest 2>/dev/null
d9898ee8 15358 mkdir conftest
15359 cd conftest
15360 mkdir out
ac40fd9e 15361 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 15362
15363 lt_compiler_flag="-o out/conftest2.$ac_objext"
15364 # Insert the option either (1) after the last *FLAGS variable, or
15365 # (2) before a word containing "conftest.", or (3) at the end.
15366 # Note that $ac_compile itself does not contain backslashes and begins
15367 # with a dollar sign (not a hyphen), so the echo should work correctly.
15368 lt_compile=`echo "$ac_compile" | $SED \
15369 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15370 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15371 -e 's:$: $lt_compiler_flag:'`
8d138742 15372 (eval echo "\"\$as_me:15372: $lt_compile\"" >&5)
d9898ee8 15373 (eval "$lt_compile" 2>out/conftest.err)
15374 ac_status=$?
15375 cat out/conftest.err >&5
8d138742 15376 echo "$as_me:15376: \$? = $ac_status" >&5
d9898ee8 15377 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15378 then
15379 # The compiler can only warn and ignore the option if not recognized
15380 # So say no if there are warnings
8d138742 15381 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
d9898ee8 15382 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15383 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8d138742 15384 lt_cv_prog_compiler_c_o_CXX=yes
d9898ee8 15385 fi
15386 fi
15387 chmod u+w . 2>&5
8d138742 15388 $RM conftest*
d9898ee8 15389 # SGI C++ compiler will create directory out/ii_files/ for
15390 # template instantiation
8d138742
CE
15391 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15392 $RM out/* && rmdir out
d9898ee8 15393 cd ..
8d138742
CE
15394 $RM -r conftest
15395 $RM conftest*
d9898ee8 15396
d9898ee8 15397fi
8d138742
CE
15398{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15399$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
d9898ee8 15400
d9898ee8 15401
d9898ee8 15402
8d138742
CE
15403 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15404$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15405if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
15406 $as_echo_n "(cached) " >&6
15407else
15408 lt_cv_prog_compiler_c_o_CXX=no
15409 $RM -r conftest 2>/dev/null
15410 mkdir conftest
15411 cd conftest
15412 mkdir out
15413 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 15414
8d138742
CE
15415 lt_compiler_flag="-o out/conftest2.$ac_objext"
15416 # Insert the option either (1) after the last *FLAGS variable, or
15417 # (2) before a word containing "conftest.", or (3) at the end.
15418 # Note that $ac_compile itself does not contain backslashes and begins
15419 # with a dollar sign (not a hyphen), so the echo should work correctly.
15420 lt_compile=`echo "$ac_compile" | $SED \
15421 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15422 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15423 -e 's:$: $lt_compiler_flag:'`
15424 (eval echo "\"\$as_me:15424: $lt_compile\"" >&5)
15425 (eval "$lt_compile" 2>out/conftest.err)
15426 ac_status=$?
15427 cat out/conftest.err >&5
15428 echo "$as_me:15428: \$? = $ac_status" >&5
15429 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15430 then
15431 # The compiler can only warn and ignore the option if not recognized
15432 # So say no if there are warnings
15433 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15434 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15435 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15436 lt_cv_prog_compiler_c_o_CXX=yes
15437 fi
15438 fi
15439 chmod u+w . 2>&5
15440 $RM conftest*
15441 # SGI C++ compiler will create directory out/ii_files/ for
15442 # template instantiation
15443 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15444 $RM out/* && rmdir out
15445 cd ..
15446 $RM -r conftest
15447 $RM conftest*
d9898ee8 15448
8d138742
CE
15449fi
15450{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15451$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
d9898ee8 15452
d9898ee8 15453
d9898ee8 15454
d9898ee8 15455
8d138742
CE
15456hard_links="nottested"
15457if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15458 # do not overwrite the value of need_locks provided by the user
15459 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15460$as_echo_n "checking if we can lock with hard links... " >&6; }
15461 hard_links=yes
15462 $RM conftest*
15463 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15464 touch conftest.a
15465 ln conftest.a conftest.b 2>&5 || hard_links=no
15466 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15467 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
15468$as_echo "$hard_links" >&6; }
15469 if test "$hard_links" = no; then
15470 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15471$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15472 need_locks=warn
15473 fi
15474else
15475 need_locks=no
15476fi
d9898ee8 15477
d9898ee8 15478
d9898ee8 15479
8d138742
CE
15480 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15481$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
d9898ee8 15482
8d138742
CE
15483 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15484 case $host_os in
15485 aix[4-9]*)
15486 # If we're using GNU nm, then we don't want the "-C" option.
15487 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15488 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15489 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15490 else
15491 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
d9898ee8 15492 fi
8d138742
CE
15493 ;;
15494 pw32*)
15495 export_symbols_cmds_CXX="$ltdll_cmds"
15496 ;;
15497 cygwin* | mingw* | cegcc*)
15498 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
15499 ;;
15500 *)
15501 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15502 ;;
15503 esac
15504 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
d9898ee8 15505
8d138742
CE
15506{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
15507$as_echo "$ld_shlibs_CXX" >&6; }
15508test "$ld_shlibs_CXX" = no && can_build_shared=no
d9898ee8 15509
8d138742 15510with_gnu_ld_CXX=$with_gnu_ld
d9898ee8 15511
d9898ee8 15512
d9898ee8 15513
d9898ee8 15514
d9898ee8 15515
d9898ee8 15516
8d138742
CE
15517#
15518# Do we need to explicitly link libc?
15519#
15520case "x$archive_cmds_need_lc_CXX" in
15521x|xyes)
15522 # Assume -lc should be added
15523 archive_cmds_need_lc_CXX=yes
d9898ee8 15524
8d138742
CE
15525 if test "$enable_shared" = yes && test "$GCC" = yes; then
15526 case $archive_cmds_CXX in
15527 *'~'*)
15528 # FIXME: we may have to deal with multi-command sequences.
15529 ;;
15530 '$CC '*)
15531 # Test whether the compiler implicitly links with -lc since on some
15532 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15533 # to ld, don't add -lc before -lgcc.
15534 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15535$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15536 $RM conftest*
15537 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15538
15539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15540 (eval $ac_compile) 2>&5
d9898ee8 15541 ac_status=$?
8d138742
CE
15542 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15543 (exit $ac_status); } 2>conftest.err; then
15544 soname=conftest
15545 lib=conftest
15546 libobjs=conftest.$ac_objext
15547 deplibs=
15548 wl=$lt_prog_compiler_wl_CXX
15549 pic_flag=$lt_prog_compiler_pic_CXX
15550 compiler_flags=-v
15551 linker_flags=-v
15552 verstring=
15553 output_objdir=.
15554 libname=conftest
15555 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15556 allow_undefined_flag_CXX=
15557 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
15558 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15559 ac_status=$?
15560 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15561 (exit $ac_status); }
15562 then
15563 archive_cmds_need_lc_CXX=no
15564 else
15565 archive_cmds_need_lc_CXX=yes
15566 fi
15567 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15568 else
15569 cat conftest.err 1>&5
15570 fi
15571 $RM conftest*
15572 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
15573$as_echo "$archive_cmds_need_lc_CXX" >&6; }
15574 ;;
15575 esac
15576 fi
15577 ;;
15578esac
15579
15580
15581
15582
15583
15584
15585
15586
15587
15588
d9898ee8 15589
d9898ee8 15590
dd184caf 15591
dd184caf 15592
d9898ee8 15593
d9898ee8 15594
d9898ee8 15595
d9898ee8 15596
d9898ee8 15597
dd184caf 15598
dd184caf 15599
d9898ee8 15600
d9898ee8 15601
d9898ee8 15602
d9898ee8 15603
d9898ee8 15604
d9898ee8 15605
d9898ee8 15606
d9898ee8 15607
d9898ee8 15608
d9898ee8 15609
d9898ee8 15610
d9898ee8 15611
d9898ee8 15612
d9898ee8 15613
d9898ee8 15614
d9898ee8 15615
d9898ee8 15616
d9898ee8 15617
d9898ee8 15618
d9898ee8 15619
d9898ee8 15620
d9898ee8 15621
d9898ee8 15622
d9898ee8 15623
d9898ee8 15624
d9898ee8 15625
d9898ee8 15626
d9898ee8 15627
d9898ee8 15628
d9898ee8 15629
d9898ee8 15630
d9898ee8 15631
d9898ee8 15632
d9898ee8 15633
d9898ee8 15634
d9898ee8 15635
d9898ee8 15636
d9898ee8 15637
d9898ee8 15638
d9898ee8 15639
d9898ee8 15640
d9898ee8 15641
8d138742
CE
15642
15643 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15644$as_echo_n "checking dynamic linker characteristics... " >&6; }
15645
d9898ee8 15646library_names_spec=
15647libname_spec='lib$name'
15648soname_spec=
15649shrext_cmds=".so"
15650postinstall_cmds=
15651postuninstall_cmds=
15652finish_cmds=
15653finish_eval=
15654shlibpath_var=
15655shlibpath_overrides_runpath=unknown
15656version_type=none
15657dynamic_linker="$host_os ld.so"
15658sys_lib_dlsearch_path_spec="/lib /usr/lib"
d9898ee8 15659need_lib_prefix=unknown
15660hardcode_into_libs=no
15661
15662# when you set need_version to no, make sure it does not cause -set_version
15663# flags to be left without arguments
15664need_version=unknown
15665
15666case $host_os in
15667aix3*)
15668 version_type=linux
15669 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15670 shlibpath_var=LIBPATH
15671
15672 # AIX 3 has no versioning support, so we append a major version to the name.
15673 soname_spec='${libname}${release}${shared_ext}$major'
15674 ;;
15675
8d138742 15676aix[4-9]*)
d9898ee8 15677 version_type=linux
15678 need_lib_prefix=no
15679 need_version=no
15680 hardcode_into_libs=yes
15681 if test "$host_cpu" = ia64; then
15682 # AIX 5 supports IA64
15683 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15684 shlibpath_var=LD_LIBRARY_PATH
15685 else
15686 # With GCC up to 2.95.x, collect2 would create an import file
15687 # for dependence libraries. The import file would start with
15688 # the line `#! .'. This would cause the generated library to
15689 # depend on `.', always an invalid library. This was fixed in
15690 # development snapshots of GCC prior to 3.0.
15691 case $host_os in
15692 aix4 | aix4.[01] | aix4.[01].*)
15693 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15694 echo ' yes '
8d138742 15695 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
d9898ee8 15696 :
15697 else
15698 can_build_shared=no
15699 fi
15700 ;;
15701 esac
15702 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15703 # soname into executable. Probably we can add versioning support to
15704 # collect2, so additional links can be useful in future.
15705 if test "$aix_use_runtimelinking" = yes; then
15706 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15707 # instead of lib<name>.a to let people know that these are not
15708 # typical AIX shared libraries.
15709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15710 else
15711 # We preserve .a as extension for shared libraries through AIX4.2
15712 # and later when we are not doing run time linking.
15713 library_names_spec='${libname}${release}.a $libname.a'
15714 soname_spec='${libname}${release}${shared_ext}$major'
15715 fi
15716 shlibpath_var=LIBPATH
15717 fi
15718 ;;
15719
15720amigaos*)
8d138742
CE
15721 case $host_cpu in
15722 powerpc)
15723 # Since July 2007 AmigaOS4 officially supports .so libraries.
15724 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15726 ;;
15727 m68k)
15728 library_names_spec='$libname.ixlibrary $libname.a'
15729 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15730 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'
15731 ;;
15732 esac
d9898ee8 15733 ;;
15734
15735beos*)
15736 library_names_spec='${libname}${shared_ext}'
15737 dynamic_linker="$host_os ld.so"
15738 shlibpath_var=LIBRARY_PATH
15739 ;;
15740
15741bsdi[45]*)
15742 version_type=linux
15743 need_version=no
15744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15745 soname_spec='${libname}${release}${shared_ext}$major'
15746 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15747 shlibpath_var=LD_LIBRARY_PATH
15748 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15749 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15750 # the default ld.so.conf also contains /usr/contrib/lib and
15751 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15752 # libtool to hard-code these into programs
15753 ;;
15754
8d138742 15755cygwin* | mingw* | pw32* | cegcc*)
d9898ee8 15756 version_type=windows
15757 shrext_cmds=".dll"
15758 need_version=no
15759 need_lib_prefix=no
15760
15761 case $GCC,$host_os in
8d138742 15762 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
d9898ee8 15763 library_names_spec='$libname.dll.a'
15764 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15765 postinstall_cmds='base_file=`basename \${file}`~
8d138742 15766 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
d9898ee8 15767 dldir=$destdir/`dirname \$dlpath`~
15768 test -d \$dldir || mkdir -p \$dldir~
15769 $install_prog $dir/$dlname \$dldir/$dlname~
8d138742
CE
15770 chmod a+x \$dldir/$dlname~
15771 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15772 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15773 fi'
d9898ee8 15774 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15775 dlpath=$dir/\$dldll~
8d138742 15776 $RM \$dlpath'
d9898ee8 15777 shlibpath_overrides_runpath=yes
15778
15779 case $host_os in
15780 cygwin*)
15781 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15782 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15783 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15784 ;;
8d138742 15785 mingw* | cegcc*)
d9898ee8 15786 # MinGW DLLs use traditional 'lib' prefix
15787 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8d138742
CE
15788 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15789 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
d9898ee8 15790 # It is most probably a Windows format PATH printed by
15791 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15792 # path with ; separators, and with drive letters. We can handle the
15793 # drive letters (cygwin fileutils understands them), so leave them,
15794 # especially as we might pass files found there to a mingw objdump,
15795 # which wouldn't understand a cygwinified path. Ahh.
8d138742 15796 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
d9898ee8 15797 else
8d138742 15798 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
d9898ee8 15799 fi
15800 ;;
15801 pw32*)
15802 # pw32 DLLs use 'pw' prefix rather than 'lib'
15803 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15804 ;;
15805 esac
15806 ;;
15807
15808 *)
15809 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15810 ;;
15811 esac
15812 dynamic_linker='Win32 ld.exe'
15813 # FIXME: first we should search . and the directory the executable is in
15814 shlibpath_var=PATH
15815 ;;
15816
15817darwin* | rhapsody*)
15818 dynamic_linker="$host_os dyld"
15819 version_type=darwin
15820 need_lib_prefix=no
15821 need_version=no
8d138742 15822 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
d9898ee8 15823 soname_spec='${libname}${release}${major}$shared_ext'
15824 shlibpath_overrides_runpath=yes
15825 shlibpath_var=DYLD_LIBRARY_PATH
15826 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
ac40fd9e 15827
d9898ee8 15828 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15829 ;;
15830
15831dgux*)
15832 version_type=linux
15833 need_lib_prefix=no
15834 need_version=no
15835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15836 soname_spec='${libname}${release}${shared_ext}$major'
15837 shlibpath_var=LD_LIBRARY_PATH
15838 ;;
15839
15840freebsd1*)
15841 dynamic_linker=no
15842 ;;
15843
d9898ee8 15844freebsd* | dragonfly*)
15845 # DragonFly does not have aout. When/if they implement a new
15846 # versioning mechanism, adjust this.
15847 if test -x /usr/bin/objformat; then
15848 objformat=`/usr/bin/objformat`
15849 else
15850 case $host_os in
15851 freebsd[123]*) objformat=aout ;;
15852 *) objformat=elf ;;
15853 esac
15854 fi
15855 version_type=freebsd-$objformat
15856 case $version_type in
15857 freebsd-elf*)
15858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15859 need_version=no
15860 need_lib_prefix=no
15861 ;;
15862 freebsd-*)
15863 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15864 need_version=yes
15865 ;;
15866 esac
15867 shlibpath_var=LD_LIBRARY_PATH
15868 case $host_os in
15869 freebsd2*)
15870 shlibpath_overrides_runpath=yes
15871 ;;
15872 freebsd3.[01]* | freebsdelf3.[01]*)
15873 shlibpath_overrides_runpath=yes
15874 hardcode_into_libs=yes
15875 ;;
15876 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15877 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15878 shlibpath_overrides_runpath=no
15879 hardcode_into_libs=yes
15880 ;;
ac40fd9e 15881 *) # from 4.6 on, and DragonFly
d9898ee8 15882 shlibpath_overrides_runpath=yes
15883 hardcode_into_libs=yes
15884 ;;
15885 esac
15886 ;;
15887
15888gnu*)
15889 version_type=linux
15890 need_lib_prefix=no
15891 need_version=no
15892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15893 soname_spec='${libname}${release}${shared_ext}$major'
15894 shlibpath_var=LD_LIBRARY_PATH
15895 hardcode_into_libs=yes
15896 ;;
15897
15898hpux9* | hpux10* | hpux11*)
15899 # Give a soname corresponding to the major version so that dld.sl refuses to
15900 # link against other versions.
15901 version_type=sunos
15902 need_lib_prefix=no
15903 need_version=no
15904 case $host_cpu in
15905 ia64*)
15906 shrext_cmds='.so'
15907 hardcode_into_libs=yes
15908 dynamic_linker="$host_os dld.so"
15909 shlibpath_var=LD_LIBRARY_PATH
15910 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15912 soname_spec='${libname}${release}${shared_ext}$major'
15913 if test "X$HPUX_IA64_MODE" = X32; then
15914 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15915 else
15916 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15917 fi
15918 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15919 ;;
8d138742
CE
15920 hppa*64*)
15921 shrext_cmds='.sl'
15922 hardcode_into_libs=yes
15923 dynamic_linker="$host_os dld.sl"
15924 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15925 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15927 soname_spec='${libname}${release}${shared_ext}$major'
15928 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15929 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15930 ;;
15931 *)
d9898ee8 15932 shrext_cmds='.sl'
15933 dynamic_linker="$host_os dld.sl"
15934 shlibpath_var=SHLIB_PATH
15935 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15937 soname_spec='${libname}${release}${shared_ext}$major'
15938 ;;
15939 esac
15940 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15941 postinstall_cmds='chmod 555 $lib'
15942 ;;
15943
ac40fd9e 15944interix[3-9]*)
d9898ee8 15945 version_type=linux
15946 need_lib_prefix=no
15947 need_version=no
15948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15949 soname_spec='${libname}${release}${shared_ext}$major'
15950 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15951 shlibpath_var=LD_LIBRARY_PATH
15952 shlibpath_overrides_runpath=no
15953 hardcode_into_libs=yes
15954 ;;
15955
15956irix5* | irix6* | nonstopux*)
15957 case $host_os in
15958 nonstopux*) version_type=nonstopux ;;
15959 *)
15960 if test "$lt_cv_prog_gnu_ld" = yes; then
15961 version_type=linux
15962 else
15963 version_type=irix
15964 fi ;;
15965 esac
15966 need_lib_prefix=no
15967 need_version=no
15968 soname_spec='${libname}${release}${shared_ext}$major'
15969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15970 case $host_os in
15971 irix5* | nonstopux*)
15972 libsuff= shlibsuff=
15973 ;;
15974 *)
15975 case $LD in # libtool.m4 will add one of these switches to LD
15976 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15977 libsuff= shlibsuff= libmagic=32-bit;;
15978 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15979 libsuff=32 shlibsuff=N32 libmagic=N32;;
15980 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15981 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15982 *) libsuff= shlibsuff= libmagic=never-match;;
15983 esac
15984 ;;
15985 esac
15986 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15987 shlibpath_overrides_runpath=no
15988 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15989 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15990 hardcode_into_libs=yes
15991 ;;
15992
15993# No shared lib support for Linux oldld, aout, or coff.
15994linux*oldld* | linux*aout* | linux*coff*)
15995 dynamic_linker=no
15996 ;;
15997
15998# This must be Linux ELF.
ac40fd9e 15999linux* | k*bsd*-gnu)
d9898ee8 16000 version_type=linux
16001 need_lib_prefix=no
16002 need_version=no
16003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16004 soname_spec='${libname}${release}${shared_ext}$major'
16005 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16006 shlibpath_var=LD_LIBRARY_PATH
16007 shlibpath_overrides_runpath=no
8d138742
CE
16008 # Some binutils ld are patched to set DT_RUNPATH
16009 save_LDFLAGS=$LDFLAGS
16010 save_libdir=$libdir
16011 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16012 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16013 cat >conftest.$ac_ext <<_ACEOF
16014/* confdefs.h. */
16015_ACEOF
16016cat confdefs.h >>conftest.$ac_ext
16017cat >>conftest.$ac_ext <<_ACEOF
16018/* end confdefs.h. */
16019
16020int
16021main ()
16022{
16023
16024 ;
16025 return 0;
16026}
16027_ACEOF
16028rm -f conftest.$ac_objext conftest$ac_exeext
16029if { (ac_try="$ac_link"
16030case "(($ac_try" in
16031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16032 *) ac_try_echo=$ac_try;;
16033esac
16034eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16035$as_echo "$ac_try_echo") >&5
16036 (eval "$ac_link") 2>conftest.er1
16037 ac_status=$?
16038 grep -v '^ *+' conftest.er1 >conftest.err
16039 rm -f conftest.er1
16040 cat conftest.err >&5
16041 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16042 (exit $ac_status); } && {
16043 test -z "$ac_cxx_werror_flag" ||
16044 test ! -s conftest.err
16045 } && test -s conftest$ac_exeext && {
16046 test "$cross_compiling" = yes ||
16047 $as_test_x conftest$ac_exeext
16048 }; then
16049 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
16050 shlibpath_overrides_runpath=yes
16051fi
16052
16053else
16054 $as_echo "$as_me: failed program was:" >&5
16055sed 's/^/| /' conftest.$ac_ext >&5
16056
16057
16058fi
16059
16060rm -rf conftest.dSYM
16061rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16062 conftest$ac_exeext conftest.$ac_ext
16063 LDFLAGS=$save_LDFLAGS
16064 libdir=$save_libdir
16065
d9898ee8 16066 # This implies no fast_install, which is unacceptable.
16067 # Some rework will be needed to allow for fast_install
16068 # before this can be enabled.
16069 hardcode_into_libs=yes
8d138742
CE
16070
16071 # Add ABI-specific directories to the system library path.
16072 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
d9898ee8 16073
16074 # Append ld.so.conf contents to the search path
16075 if test -f /etc/ld.so.conf; then
8d138742 16076 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 16077 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
d9898ee8 16078 fi
16079
16080 # We used to test for /lib/ld.so.1 and disable shared libraries on
16081 # powerpc, because MkLinux only supported shared libraries with the
16082 # GNU dynamic linker. Since this was broken with cross compilers,
16083 # most powerpc-linux boxes support dynamic linking these days and
16084 # people can always --disable-shared, the test was removed, and we
16085 # assume the GNU/Linux dynamic linker is in use.
16086 dynamic_linker='GNU/Linux ld.so'
16087 ;;
16088
d9898ee8 16089netbsd*)
16090 version_type=sunos
16091 need_lib_prefix=no
16092 need_version=no
8d138742 16093 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
d9898ee8 16094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16095 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16096 dynamic_linker='NetBSD (a.out) ld.so'
16097 else
16098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16099 soname_spec='${libname}${release}${shared_ext}$major'
16100 dynamic_linker='NetBSD ld.elf_so'
16101 fi
16102 shlibpath_var=LD_LIBRARY_PATH
16103 shlibpath_overrides_runpath=yes
16104 hardcode_into_libs=yes
16105 ;;
16106
16107newsos6)
16108 version_type=linux
16109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16110 shlibpath_var=LD_LIBRARY_PATH
16111 shlibpath_overrides_runpath=yes
16112 ;;
16113
8d138742
CE
16114*nto* | *qnx*)
16115 version_type=qnx
d9898ee8 16116 need_lib_prefix=no
16117 need_version=no
16118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16119 soname_spec='${libname}${release}${shared_ext}$major'
16120 shlibpath_var=LD_LIBRARY_PATH
8d138742
CE
16121 shlibpath_overrides_runpath=no
16122 hardcode_into_libs=yes
16123 dynamic_linker='ldqnx.so'
d9898ee8 16124 ;;
16125
16126openbsd*)
16127 version_type=sunos
16128 sys_lib_dlsearch_path_spec="/usr/lib"
16129 need_lib_prefix=no
16130 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16131 case $host_os in
8d138742
CE
16132 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16133 *) need_version=no ;;
d9898ee8 16134 esac
16135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16136 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16137 shlibpath_var=LD_LIBRARY_PATH
8d138742 16138 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
d9898ee8 16139 case $host_os in
16140 openbsd2.[89] | openbsd2.[89].*)
16141 shlibpath_overrides_runpath=no
16142 ;;
16143 *)
16144 shlibpath_overrides_runpath=yes
16145 ;;
16146 esac
16147 else
16148 shlibpath_overrides_runpath=yes
16149 fi
16150 ;;
16151
16152os2*)
16153 libname_spec='$name'
16154 shrext_cmds=".dll"
16155 need_lib_prefix=no
16156 library_names_spec='$libname${shared_ext} $libname.a'
16157 dynamic_linker='OS/2 ld.exe'
16158 shlibpath_var=LIBPATH
16159 ;;
16160
16161osf3* | osf4* | osf5*)
16162 version_type=osf
16163 need_lib_prefix=no
16164 need_version=no
16165 soname_spec='${libname}${release}${shared_ext}$major'
16166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16167 shlibpath_var=LD_LIBRARY_PATH
16168 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16169 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16170 ;;
16171
ac40fd9e 16172rdos*)
16173 dynamic_linker=no
16174 ;;
16175
d9898ee8 16176solaris*)
16177 version_type=linux
16178 need_lib_prefix=no
16179 need_version=no
16180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16181 soname_spec='${libname}${release}${shared_ext}$major'
16182 shlibpath_var=LD_LIBRARY_PATH
16183 shlibpath_overrides_runpath=yes
16184 hardcode_into_libs=yes
16185 # ldd complains unless libraries are executable
16186 postinstall_cmds='chmod +x $lib'
16187 ;;
16188
16189sunos4*)
16190 version_type=sunos
16191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16192 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16193 shlibpath_var=LD_LIBRARY_PATH
16194 shlibpath_overrides_runpath=yes
16195 if test "$with_gnu_ld" = yes; then
16196 need_lib_prefix=no
16197 fi
16198 need_version=yes
16199 ;;
16200
16201sysv4 | sysv4.3*)
16202 version_type=linux
16203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16204 soname_spec='${libname}${release}${shared_ext}$major'
16205 shlibpath_var=LD_LIBRARY_PATH
16206 case $host_vendor in
16207 sni)
16208 shlibpath_overrides_runpath=no
16209 need_lib_prefix=no
d9898ee8 16210 runpath_var=LD_RUN_PATH
16211 ;;
16212 siemens)
16213 need_lib_prefix=no
16214 ;;
16215 motorola)
16216 need_lib_prefix=no
16217 need_version=no
16218 shlibpath_overrides_runpath=no
16219 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16220 ;;
16221 esac
16222 ;;
16223
16224sysv4*MP*)
16225 if test -d /usr/nec ;then
16226 version_type=linux
16227 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16228 soname_spec='$libname${shared_ext}.$major'
16229 shlibpath_var=LD_LIBRARY_PATH
16230 fi
16231 ;;
16232
16233sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16234 version_type=freebsd-elf
16235 need_lib_prefix=no
16236 need_version=no
16237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16238 soname_spec='${libname}${release}${shared_ext}$major'
16239 shlibpath_var=LD_LIBRARY_PATH
8d138742 16240 shlibpath_overrides_runpath=yes
d9898ee8 16241 hardcode_into_libs=yes
16242 if test "$with_gnu_ld" = yes; then
16243 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
d9898ee8 16244 else
16245 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
d9898ee8 16246 case $host_os in
16247 sco3.2v5*)
16248 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16249 ;;
16250 esac
16251 fi
16252 sys_lib_dlsearch_path_spec='/usr/lib'
16253 ;;
16254
8d138742
CE
16255tpf*)
16256 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16257 version_type=linux
16258 need_lib_prefix=no
16259 need_version=no
16260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16261 shlibpath_var=LD_LIBRARY_PATH
16262 shlibpath_overrides_runpath=no
16263 hardcode_into_libs=yes
16264 ;;
16265
d9898ee8 16266uts4*)
16267 version_type=linux
16268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16269 soname_spec='${libname}${release}${shared_ext}$major'
16270 shlibpath_var=LD_LIBRARY_PATH
16271 ;;
16272
16273*)
16274 dynamic_linker=no
16275 ;;
16276esac
8d138742
CE
16277{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16278$as_echo "$dynamic_linker" >&6; }
d9898ee8 16279test "$dynamic_linker" = no && can_build_shared=no
16280
16281variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16282if test "$GCC" = yes; then
16283 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16284fi
16285
8d138742
CE
16286if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16287 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
d9898ee8 16288fi
8d138742
CE
16289if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16290 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
d9898ee8 16291fi
16292
16293
d9898ee8 16294
d9898ee8 16295
d9898ee8 16296
d9898ee8 16297
d9898ee8 16298
d9898ee8 16299
d9898ee8 16300
d9898ee8 16301
d9898ee8 16302
d9898ee8 16303
d9898ee8 16304
d9898ee8 16305
d9898ee8 16306
d9898ee8 16307
d9898ee8 16308
d9898ee8 16309
d9898ee8 16310
d9898ee8 16311
d9898ee8 16312
d9898ee8 16313
d9898ee8 16314
d9898ee8 16315
d9898ee8 16316
d9898ee8 16317
d9898ee8 16318
d9898ee8 16319
d9898ee8 16320
d9898ee8 16321
d9898ee8 16322
d9898ee8 16323
d9898ee8 16324
d9898ee8 16325
d9898ee8 16326
d9898ee8 16327
8d138742
CE
16328 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16329$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16330hardcode_action_CXX=
16331if test -n "$hardcode_libdir_flag_spec_CXX" ||
16332 test -n "$runpath_var_CXX" ||
16333 test "X$hardcode_automatic_CXX" = "Xyes" ; then
d9898ee8 16334
8d138742
CE
16335 # We can hardcode non-existent directories.
16336 if test "$hardcode_direct_CXX" != no &&
16337 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16338 # have to relink, otherwise we might link with an installed library
16339 # when we should be linking with a yet-to-be-installed one
16340 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16341 test "$hardcode_minus_L_CXX" != no; then
16342 # Linking always hardcodes the temporary library directory.
16343 hardcode_action_CXX=relink
16344 else
16345 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16346 hardcode_action_CXX=immediate
16347 fi
16348else
16349 # We cannot hardcode anything, or else we can only hardcode existing
16350 # directories.
16351 hardcode_action_CXX=unsupported
16352fi
16353{ $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
16354$as_echo "$hardcode_action_CXX" >&6; }
d9898ee8 16355
8d138742
CE
16356if test "$hardcode_action_CXX" = relink ||
16357 test "$inherit_rpath_CXX" = yes; then
16358 # Fast installation is not supported
16359 enable_fast_install=no
16360elif test "$shlibpath_overrides_runpath" = yes ||
16361 test "$enable_shared" = no; then
16362 # Fast installation is not necessary
16363 enable_fast_install=needless
16364fi
d9898ee8 16365
d9898ee8 16366
d9898ee8 16367
d9898ee8 16368
d9898ee8 16369
d9898ee8 16370
d9898ee8 16371
8d138742 16372 fi # test -n "$compiler"
d9898ee8 16373
8d138742
CE
16374 CC=$lt_save_CC
16375 LDCXX=$LD
16376 LD=$lt_save_LD
16377 GCC=$lt_save_GCC
16378 with_gnu_ld=$lt_save_with_gnu_ld
16379 lt_cv_path_LDCXX=$lt_cv_path_LD
16380 lt_cv_path_LD=$lt_save_path_LD
16381 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16382 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16383fi # test "$_lt_caught_CXX_error" != yes
d9898ee8 16384
8d138742
CE
16385ac_ext=c
16386ac_cpp='$CPP $CPPFLAGS'
16387ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16388ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16389ac_compiler_gnu=$ac_cv_c_compiler_gnu
d9898ee8 16390
d9898ee8 16391
d9898ee8 16392
d9898ee8 16393
d9898ee8 16394
d9898ee8 16395
d9898ee8 16396
d9898ee8 16397
d9898ee8 16398
d9898ee8 16399
d9898ee8 16400
d9898ee8 16401
d9898ee8 16402
8d138742
CE
16403 ac_config_commands="$ac_config_commands libtool"
16404
16405
16406
16407
16408# Only expand once:
16409
16410
16411
16412
16413saveLIBS="$LIBS"
16414{ $as_echo "$as_me:$LINENO: checking for dbopen in -ldb" >&5
16415$as_echo_n "checking for dbopen in -ldb... " >&6; }
16416if test "${ac_cv_lib_db_dbopen+set}" = set; then
16417 $as_echo_n "(cached) " >&6
16418else
16419 ac_check_lib_save_LIBS=$LIBS
16420LIBS="-ldb $LIBS"
16421cat >conftest.$ac_ext <<_ACEOF
16422/* confdefs.h. */
16423_ACEOF
16424cat confdefs.h >>conftest.$ac_ext
16425cat >>conftest.$ac_ext <<_ACEOF
16426/* end confdefs.h. */
16427
16428/* Override any GCC internal prototype to avoid an error.
16429 Use char because int might match the return type of a GCC
16430 builtin and then its argument prototype would still apply. */
16431#ifdef __cplusplus
16432extern "C"
16433#endif
16434char dbopen ();
16435int
16436main ()
16437{
16438return dbopen ();
16439 ;
16440 return 0;
16441}
16442_ACEOF
16443rm -f conftest.$ac_objext conftest$ac_exeext
16444if { (ac_try="$ac_link"
16445case "(($ac_try" in
16446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16447 *) ac_try_echo=$ac_try;;
16448esac
16449eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16450$as_echo "$ac_try_echo") >&5
16451 (eval "$ac_link") 2>conftest.er1
16452 ac_status=$?
16453 grep -v '^ *+' conftest.er1 >conftest.err
16454 rm -f conftest.er1
16455 cat conftest.err >&5
16456 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16457 (exit $ac_status); } && {
16458 test -z "$ac_c_werror_flag" ||
16459 test ! -s conftest.err
16460 } && test -s conftest$ac_exeext && {
16461 test "$cross_compiling" = yes ||
16462 $as_test_x conftest$ac_exeext
16463 }; then
16464 ac_cv_lib_db_dbopen=yes
16465else
16466 $as_echo "$as_me: failed program was:" >&5
16467sed 's/^/| /' conftest.$ac_ext >&5
16468
16469 ac_cv_lib_db_dbopen=no
16470fi
d9898ee8 16471
8d138742
CE
16472rm -rf conftest.dSYM
16473rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16474 conftest$ac_exeext conftest.$ac_ext
16475LIBS=$ac_check_lib_save_LIBS
16476fi
16477{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_db_dbopen" >&5
16478$as_echo "$ac_cv_lib_db_dbopen" >&6; }
16479if test "x$ac_cv_lib_db_dbopen" = x""yes; then
16480 LIBDB=-ldb ; LIBS="-ldb $LIBS"
16481else
16482 { $as_echo "$as_me:$LINENO: checking for db_open in -ldb" >&5
16483$as_echo_n "checking for db_open in -ldb... " >&6; }
16484if test "${ac_cv_lib_db_db_open+set}" = set; then
16485 $as_echo_n "(cached) " >&6
16486else
16487 ac_check_lib_save_LIBS=$LIBS
16488LIBS="-ldb $LIBS"
16489cat >conftest.$ac_ext <<_ACEOF
16490/* confdefs.h. */
16491_ACEOF
16492cat confdefs.h >>conftest.$ac_ext
16493cat >>conftest.$ac_ext <<_ACEOF
16494/* end confdefs.h. */
d9898ee8 16495
8d138742
CE
16496/* Override any GCC internal prototype to avoid an error.
16497 Use char because int might match the return type of a GCC
16498 builtin and then its argument prototype would still apply. */
16499#ifdef __cplusplus
16500extern "C"
16501#endif
16502char db_open ();
16503int
16504main ()
16505{
16506return db_open ();
16507 ;
16508 return 0;
16509}
16510_ACEOF
16511rm -f conftest.$ac_objext conftest$ac_exeext
16512if { (ac_try="$ac_link"
16513case "(($ac_try" in
16514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16515 *) ac_try_echo=$ac_try;;
16516esac
16517eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16518$as_echo "$ac_try_echo") >&5
16519 (eval "$ac_link") 2>conftest.er1
16520 ac_status=$?
16521 grep -v '^ *+' conftest.er1 >conftest.err
16522 rm -f conftest.er1
16523 cat conftest.err >&5
16524 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16525 (exit $ac_status); } && {
16526 test -z "$ac_c_werror_flag" ||
16527 test ! -s conftest.err
16528 } && test -s conftest$ac_exeext && {
16529 test "$cross_compiling" = yes ||
16530 $as_test_x conftest$ac_exeext
16531 }; then
16532 ac_cv_lib_db_db_open=yes
16533else
16534 $as_echo "$as_me: failed program was:" >&5
16535sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 16536
8d138742
CE
16537 ac_cv_lib_db_db_open=no
16538fi
d9898ee8 16539
8d138742
CE
16540rm -rf conftest.dSYM
16541rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16542 conftest$ac_exeext conftest.$ac_ext
16543LIBS=$ac_check_lib_save_LIBS
16544fi
16545{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_db_db_open" >&5
16546$as_echo "$ac_cv_lib_db_db_open" >&6; }
16547if test "x$ac_cv_lib_db_db_open" = x""yes; then
16548 LIBDB=-ldb ; LIBS="-ldb $LIBS"
16549else
16550 { $as_echo "$as_me:$LINENO: checking for db_env_create in -ldb" >&5
16551$as_echo_n "checking for db_env_create in -ldb... " >&6; }
16552if test "${ac_cv_lib_db_db_env_create+set}" = set; then
16553 $as_echo_n "(cached) " >&6
16554else
16555 ac_check_lib_save_LIBS=$LIBS
16556LIBS="-ldb $LIBS"
16557cat >conftest.$ac_ext <<_ACEOF
16558/* confdefs.h. */
16559_ACEOF
16560cat confdefs.h >>conftest.$ac_ext
16561cat >>conftest.$ac_ext <<_ACEOF
16562/* end confdefs.h. */
d9898ee8 16563
8d138742
CE
16564/* Override any GCC internal prototype to avoid an error.
16565 Use char because int might match the return type of a GCC
16566 builtin and then its argument prototype would still apply. */
16567#ifdef __cplusplus
16568extern "C"
16569#endif
16570char db_env_create ();
16571int
16572main ()
16573{
16574return db_env_create ();
16575 ;
16576 return 0;
16577}
16578_ACEOF
16579rm -f conftest.$ac_objext conftest$ac_exeext
16580if { (ac_try="$ac_link"
16581case "(($ac_try" in
16582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16583 *) ac_try_echo=$ac_try;;
16584esac
16585eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16586$as_echo "$ac_try_echo") >&5
16587 (eval "$ac_link") 2>conftest.er1
16588 ac_status=$?
16589 grep -v '^ *+' conftest.er1 >conftest.err
16590 rm -f conftest.er1
16591 cat conftest.err >&5
16592 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16593 (exit $ac_status); } && {
16594 test -z "$ac_c_werror_flag" ||
16595 test ! -s conftest.err
16596 } && test -s conftest$ac_exeext && {
16597 test "$cross_compiling" = yes ||
16598 $as_test_x conftest$ac_exeext
16599 }; then
16600 ac_cv_lib_db_db_env_create=yes
16601else
16602 $as_echo "$as_me: failed program was:" >&5
16603sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 16604
8d138742
CE
16605 ac_cv_lib_db_db_env_create=no
16606fi
d9898ee8 16607
8d138742
CE
16608rm -rf conftest.dSYM
16609rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16610 conftest$ac_exeext conftest.$ac_ext
16611LIBS=$ac_check_lib_save_LIBS
16612fi
16613{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_db_db_env_create" >&5
16614$as_echo "$ac_cv_lib_db_db_env_create" >&6; }
16615if test "x$ac_cv_lib_db_db_env_create" = x""yes; then
16616 LIBDB=-ldb; LIBS="-ldb $LIBS"
16617fi
d9898ee8 16618
d9898ee8 16619
8d138742 16620fi
d9898ee8 16621
8d138742 16622fi
d9898ee8 16623
d9898ee8 16624
8d138742
CE
16625FOUND_DB=0
16626{ $as_echo "$as_me:$LINENO: checking for dbopen" >&5
16627$as_echo_n "checking for dbopen... " >&6; }
16628if test "${ac_cv_func_dbopen+set}" = set; then
16629 $as_echo_n "(cached) " >&6
16630else
16631 cat >conftest.$ac_ext <<_ACEOF
16632/* confdefs.h. */
16633_ACEOF
16634cat confdefs.h >>conftest.$ac_ext
16635cat >>conftest.$ac_ext <<_ACEOF
16636/* end confdefs.h. */
16637/* Define dbopen to an innocuous variant, in case <limits.h> declares dbopen.
16638 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16639#define dbopen innocuous_dbopen
d9898ee8 16640
8d138742
CE
16641/* System header to define __stub macros and hopefully few prototypes,
16642 which can conflict with char dbopen (); below.
16643 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16644 <limits.h> exists even on freestanding compilers. */
d9898ee8 16645
8d138742
CE
16646#ifdef __STDC__
16647# include <limits.h>
16648#else
16649# include <assert.h>
16650#endif
d9898ee8 16651
8d138742 16652#undef dbopen
d9898ee8 16653
8d138742
CE
16654/* Override any GCC internal prototype to avoid an error.
16655 Use char because int might match the return type of a GCC
16656 builtin and then its argument prototype would still apply. */
16657#ifdef __cplusplus
16658extern "C"
16659#endif
16660char dbopen ();
16661/* The GNU C library defines this for functions which it implements
16662 to always fail with ENOSYS. Some functions are actually named
16663 something starting with __ and the normal name is an alias. */
16664#if defined __stub_dbopen || defined __stub___dbopen
16665choke me
16666#endif
d9898ee8 16667
8d138742
CE
16668int
16669main ()
16670{
16671return dbopen ();
16672 ;
16673 return 0;
16674}
16675_ACEOF
16676rm -f conftest.$ac_objext conftest$ac_exeext
16677if { (ac_try="$ac_link"
16678case "(($ac_try" in
16679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16680 *) ac_try_echo=$ac_try;;
16681esac
16682eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16683$as_echo "$ac_try_echo") >&5
16684 (eval "$ac_link") 2>conftest.er1
16685 ac_status=$?
16686 grep -v '^ *+' conftest.er1 >conftest.err
16687 rm -f conftest.er1
16688 cat conftest.err >&5
16689 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16690 (exit $ac_status); } && {
16691 test -z "$ac_c_werror_flag" ||
16692 test ! -s conftest.err
16693 } && test -s conftest$ac_exeext && {
16694 test "$cross_compiling" = yes ||
16695 $as_test_x conftest$ac_exeext
16696 }; then
16697 ac_cv_func_dbopen=yes
16698else
16699 $as_echo "$as_me: failed program was:" >&5
16700sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 16701
8d138742
CE
16702 ac_cv_func_dbopen=no
16703fi
d9898ee8 16704
8d138742
CE
16705rm -rf conftest.dSYM
16706rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16707 conftest$ac_exeext conftest.$ac_ext
16708fi
16709{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dbopen" >&5
16710$as_echo "$ac_cv_func_dbopen" >&6; }
16711if test "x$ac_cv_func_dbopen" = x""yes; then
16712 FOUND_DB=1
16713fi
d9898ee8 16714
8d138742
CE
16715{ $as_echo "$as_me:$LINENO: checking for db_open" >&5
16716$as_echo_n "checking for db_open... " >&6; }
16717if test "${ac_cv_func_db_open+set}" = set; then
16718 $as_echo_n "(cached) " >&6
16719else
16720 cat >conftest.$ac_ext <<_ACEOF
16721/* confdefs.h. */
16722_ACEOF
16723cat confdefs.h >>conftest.$ac_ext
16724cat >>conftest.$ac_ext <<_ACEOF
16725/* end confdefs.h. */
16726/* Define db_open to an innocuous variant, in case <limits.h> declares db_open.
16727 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16728#define db_open innocuous_db_open
d9898ee8 16729
8d138742
CE
16730/* System header to define __stub macros and hopefully few prototypes,
16731 which can conflict with char db_open (); below.
16732 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16733 <limits.h> exists even on freestanding compilers. */
d9898ee8 16734
8d138742
CE
16735#ifdef __STDC__
16736# include <limits.h>
16737#else
16738# include <assert.h>
16739#endif
d9898ee8 16740
8d138742 16741#undef db_open
d9898ee8 16742
8d138742
CE
16743/* Override any GCC internal prototype to avoid an error.
16744 Use char because int might match the return type of a GCC
16745 builtin and then its argument prototype would still apply. */
16746#ifdef __cplusplus
16747extern "C"
16748#endif
16749char db_open ();
16750/* The GNU C library defines this for functions which it implements
16751 to always fail with ENOSYS. Some functions are actually named
16752 something starting with __ and the normal name is an alias. */
16753#if defined __stub_db_open || defined __stub___db_open
16754choke me
16755#endif
d9898ee8 16756
8d138742
CE
16757int
16758main ()
16759{
16760return db_open ();
16761 ;
16762 return 0;
16763}
16764_ACEOF
16765rm -f conftest.$ac_objext conftest$ac_exeext
16766if { (ac_try="$ac_link"
16767case "(($ac_try" in
16768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16769 *) ac_try_echo=$ac_try;;
16770esac
16771eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16772$as_echo "$ac_try_echo") >&5
16773 (eval "$ac_link") 2>conftest.er1
16774 ac_status=$?
16775 grep -v '^ *+' conftest.er1 >conftest.err
16776 rm -f conftest.er1
16777 cat conftest.err >&5
16778 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16779 (exit $ac_status); } && {
16780 test -z "$ac_c_werror_flag" ||
16781 test ! -s conftest.err
16782 } && test -s conftest$ac_exeext && {
16783 test "$cross_compiling" = yes ||
16784 $as_test_x conftest$ac_exeext
16785 }; then
16786 ac_cv_func_db_open=yes
16787else
16788 $as_echo "$as_me: failed program was:" >&5
16789sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 16790
8d138742
CE
16791 ac_cv_func_db_open=no
16792fi
d9898ee8 16793
8d138742
CE
16794rm -rf conftest.dSYM
16795rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16796 conftest$ac_exeext conftest.$ac_ext
16797fi
16798{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_db_open" >&5
16799$as_echo "$ac_cv_func_db_open" >&6; }
16800if test "x$ac_cv_func_db_open" = x""yes; then
16801 FOUND_DB=1
16802fi
d9898ee8 16803
8d138742
CE
16804{ $as_echo "$as_me:$LINENO: checking for db_env_create" >&5
16805$as_echo_n "checking for db_env_create... " >&6; }
16806if test "${ac_cv_func_db_env_create+set}" = set; then
16807 $as_echo_n "(cached) " >&6
16808else
16809 cat >conftest.$ac_ext <<_ACEOF
16810/* confdefs.h. */
16811_ACEOF
16812cat confdefs.h >>conftest.$ac_ext
16813cat >>conftest.$ac_ext <<_ACEOF
16814/* end confdefs.h. */
16815/* Define db_env_create to an innocuous variant, in case <limits.h> declares db_env_create.
16816 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16817#define db_env_create innocuous_db_env_create
d9898ee8 16818
8d138742
CE
16819/* System header to define __stub macros and hopefully few prototypes,
16820 which can conflict with char db_env_create (); below.
16821 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16822 <limits.h> exists even on freestanding compilers. */
d9898ee8 16823
8d138742
CE
16824#ifdef __STDC__
16825# include <limits.h>
16826#else
16827# include <assert.h>
16828#endif
d9898ee8 16829
8d138742 16830#undef db_env_create
d9898ee8 16831
8d138742
CE
16832/* Override any GCC internal prototype to avoid an error.
16833 Use char because int might match the return type of a GCC
16834 builtin and then its argument prototype would still apply. */
16835#ifdef __cplusplus
16836extern "C"
16837#endif
16838char db_env_create ();
16839/* The GNU C library defines this for functions which it implements
16840 to always fail with ENOSYS. Some functions are actually named
16841 something starting with __ and the normal name is an alias. */
16842#if defined __stub_db_env_create || defined __stub___db_env_create
16843choke me
16844#endif
d9898ee8 16845
8d138742
CE
16846int
16847main ()
16848{
16849return db_env_create ();
16850 ;
16851 return 0;
16852}
16853_ACEOF
16854rm -f conftest.$ac_objext conftest$ac_exeext
16855if { (ac_try="$ac_link"
16856case "(($ac_try" in
16857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16858 *) ac_try_echo=$ac_try;;
16859esac
16860eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16861$as_echo "$ac_try_echo") >&5
16862 (eval "$ac_link") 2>conftest.er1
16863 ac_status=$?
16864 grep -v '^ *+' conftest.er1 >conftest.err
16865 rm -f conftest.er1
16866 cat conftest.err >&5
16867 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16868 (exit $ac_status); } && {
16869 test -z "$ac_c_werror_flag" ||
16870 test ! -s conftest.err
16871 } && test -s conftest$ac_exeext && {
16872 test "$cross_compiling" = yes ||
16873 $as_test_x conftest$ac_exeext
16874 }; then
16875 ac_cv_func_db_env_create=yes
16876else
16877 $as_echo "$as_me: failed program was:" >&5
16878sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 16879
8d138742
CE
16880 ac_cv_func_db_env_create=no
16881fi
d9898ee8 16882
8d138742
CE
16883rm -rf conftest.dSYM
16884rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16885 conftest$ac_exeext conftest.$ac_ext
16886fi
16887{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_db_env_create" >&5
16888$as_echo "$ac_cv_func_db_env_create" >&6; }
16889if test "x$ac_cv_func_db_env_create" = x""yes; then
16890 FOUND_DB=1
16891fi
d9898ee8 16892
d9898ee8 16893
8d138742 16894LIBS="$saveLIBS"
d9898ee8 16895
d9898ee8 16896
16897
8d138742
CE
16898 if test "$FOUND_DB" != 0; then
16899 FOUND_DB_TRUE=
16900 FOUND_DB_FALSE='#'
d9898ee8 16901else
8d138742
CE
16902 FOUND_DB_TRUE='#'
16903 FOUND_DB_FALSE=
d9898ee8 16904fi
16905
16906
d9898ee8 16907
d9898ee8 16908
d9898ee8 16909
d9898ee8 16910
8d138742
CE
16911for ac_header in limits.h fcntl.h unistd.h
16912do
16913as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16914if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16915 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16916$as_echo_n "checking for $ac_header... " >&6; }
16917if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16918 $as_echo_n "(cached) " >&6
16919fi
16920ac_res=`eval 'as_val=${'$as_ac_Header'}
16921 $as_echo "$as_val"'`
16922 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16923$as_echo "$ac_res" >&6; }
16924else
16925 # Is the header compilable?
16926{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16927$as_echo_n "checking $ac_header usability... " >&6; }
16928cat >conftest.$ac_ext <<_ACEOF
16929/* confdefs.h. */
16930_ACEOF
16931cat confdefs.h >>conftest.$ac_ext
16932cat >>conftest.$ac_ext <<_ACEOF
16933/* end confdefs.h. */
16934$ac_includes_default
16935#include <$ac_header>
16936_ACEOF
16937rm -f conftest.$ac_objext
16938if { (ac_try="$ac_compile"
16939case "(($ac_try" in
16940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16941 *) ac_try_echo=$ac_try;;
16942esac
16943eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16944$as_echo "$ac_try_echo") >&5
16945 (eval "$ac_compile") 2>conftest.er1
16946 ac_status=$?
16947 grep -v '^ *+' conftest.er1 >conftest.err
16948 rm -f conftest.er1
16949 cat conftest.err >&5
16950 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16951 (exit $ac_status); } && {
16952 test -z "$ac_c_werror_flag" ||
16953 test ! -s conftest.err
16954 } && test -s conftest.$ac_objext; then
16955 ac_header_compiler=yes
16956else
16957 $as_echo "$as_me: failed program was:" >&5
16958sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 16959
8d138742
CE
16960 ac_header_compiler=no
16961fi
d9898ee8 16962
8d138742
CE
16963rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16964{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16965$as_echo "$ac_header_compiler" >&6; }
d9898ee8 16966
8d138742
CE
16967# Is the header present?
16968{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16969$as_echo_n "checking $ac_header presence... " >&6; }
16970cat >conftest.$ac_ext <<_ACEOF
16971/* confdefs.h. */
16972_ACEOF
16973cat confdefs.h >>conftest.$ac_ext
16974cat >>conftest.$ac_ext <<_ACEOF
16975/* end confdefs.h. */
16976#include <$ac_header>
16977_ACEOF
16978if { (ac_try="$ac_cpp conftest.$ac_ext"
16979case "(($ac_try" in
16980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16981 *) ac_try_echo=$ac_try;;
16982esac
16983eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16984$as_echo "$ac_try_echo") >&5
16985 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16986 ac_status=$?
16987 grep -v '^ *+' conftest.er1 >conftest.err
16988 rm -f conftest.er1
16989 cat conftest.err >&5
16990 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16991 (exit $ac_status); } >/dev/null && {
16992 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16993 test ! -s conftest.err
16994 }; then
16995 ac_header_preproc=yes
16996else
16997 $as_echo "$as_me: failed program was:" >&5
16998sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 16999
8d138742
CE
17000 ac_header_preproc=no
17001fi
d9898ee8 17002
8d138742
CE
17003rm -f conftest.err conftest.$ac_ext
17004{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17005$as_echo "$ac_header_preproc" >&6; }
d9898ee8 17006
8d138742
CE
17007# So? What about this header?
17008case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17009 yes:no: )
17010 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17011$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17012 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17013$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17014 ac_header_preproc=yes
17015 ;;
17016 no:yes:* )
17017 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17018$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17019 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17020$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17021 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17022$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17023 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17024$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17025 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17026$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17027 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17028$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17029 ( cat <<\_ASBOX
17030## -------------------------------------------------- ##
17031## Report this to courier-users@lists.sourceforge.net ##
17032## -------------------------------------------------- ##
17033_ASBOX
17034 ) | sed "s/^/$as_me: WARNING: /" >&2
17035 ;;
17036esac
17037{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17038$as_echo_n "checking for $ac_header... " >&6; }
17039if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17040 $as_echo_n "(cached) " >&6
17041else
17042 eval "$as_ac_Header=\$ac_header_preproc"
17043fi
17044ac_res=`eval 'as_val=${'$as_ac_Header'}
17045 $as_echo "$as_val"'`
17046 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17047$as_echo "$ac_res" >&6; }
d9898ee8 17048
8d138742
CE
17049fi
17050as_val=`eval 'as_val=${'$as_ac_Header'}
17051 $as_echo "$as_val"'`
17052 if test "x$as_val" = x""yes; then
17053 cat >>confdefs.h <<_ACEOF
17054#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17055_ACEOF
d9898ee8 17056
8d138742 17057fi
d9898ee8 17058
8d138742 17059done
d9898ee8 17060
d9898ee8 17061
8d138742
CE
17062{ $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
17063$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
17064if test "${ac_cv_c_const+set}" = set; then
17065 $as_echo_n "(cached) " >&6
17066else
17067 cat >conftest.$ac_ext <<_ACEOF
17068/* confdefs.h. */
17069_ACEOF
17070cat confdefs.h >>conftest.$ac_ext
17071cat >>conftest.$ac_ext <<_ACEOF
17072/* end confdefs.h. */
d9898ee8 17073
8d138742
CE
17074int
17075main ()
17076{
17077/* FIXME: Include the comments suggested by Paul. */
17078#ifndef __cplusplus
17079 /* Ultrix mips cc rejects this. */
17080 typedef int charset[2];
17081 const charset cs;
17082 /* SunOS 4.1.1 cc rejects this. */
17083 char const *const *pcpcc;
17084 char **ppc;
17085 /* NEC SVR4.0.2 mips cc rejects this. */
17086 struct point {int x, y;};
17087 static struct point const zero = {0,0};
17088 /* AIX XL C 1.02.0.0 rejects this.
17089 It does not let you subtract one const X* pointer from another in
17090 an arm of an if-expression whose if-part is not a constant
17091 expression */
17092 const char *g = "string";
17093 pcpcc = &g + (g ? g-g : 0);
17094 /* HPUX 7.0 cc rejects these. */
17095 ++pcpcc;
17096 ppc = (char**) pcpcc;
17097 pcpcc = (char const *const *) ppc;
17098 { /* SCO 3.2v4 cc rejects this. */
17099 char *t;
17100 char const *s = 0 ? (char *) 0 : (char const *) 0;
d9898ee8 17101
8d138742
CE
17102 *t++ = 0;
17103 if (s) return 0;
17104 }
17105 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
17106 int x[] = {25, 17};
17107 const int *foo = &x[0];
17108 ++foo;
17109 }
17110 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17111 typedef const int *iptr;
17112 iptr p = 0;
17113 ++p;
17114 }
17115 { /* AIX XL C 1.02.0.0 rejects this saying
17116 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17117 struct s { int j; const int *ap[3]; };
17118 struct s *b; b->j = 5;
17119 }
17120 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17121 const int foo = 10;
17122 if (!foo) return 0;
17123 }
17124 return !cs[0] && !zero.x;
17125#endif
d9898ee8 17126
8d138742
CE
17127 ;
17128 return 0;
17129}
17130_ACEOF
17131rm -f conftest.$ac_objext
17132if { (ac_try="$ac_compile"
17133case "(($ac_try" in
17134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17135 *) ac_try_echo=$ac_try;;
17136esac
17137eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17138$as_echo "$ac_try_echo") >&5
17139 (eval "$ac_compile") 2>conftest.er1
17140 ac_status=$?
17141 grep -v '^ *+' conftest.er1 >conftest.err
17142 rm -f conftest.er1
17143 cat conftest.err >&5
17144 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17145 (exit $ac_status); } && {
17146 test -z "$ac_c_werror_flag" ||
17147 test ! -s conftest.err
17148 } && test -s conftest.$ac_objext; then
17149 ac_cv_c_const=yes
17150else
17151 $as_echo "$as_me: failed program was:" >&5
17152sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 17153
8d138742
CE
17154 ac_cv_c_const=no
17155fi
d9898ee8 17156
8d138742
CE
17157rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17158fi
17159{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
17160$as_echo "$ac_cv_c_const" >&6; }
17161if test $ac_cv_c_const = no; then
d9898ee8 17162
8d138742
CE
17163cat >>confdefs.h <<\_ACEOF
17164#define const /**/
17165_ACEOF
d9898ee8 17166
8d138742 17167fi
d9898ee8 17168
8d138742
CE
17169{ $as_echo "$as_me:$LINENO: checking for size_t" >&5
17170$as_echo_n "checking for size_t... " >&6; }
17171if test "${ac_cv_type_size_t+set}" = set; then
17172 $as_echo_n "(cached) " >&6
17173else
17174 ac_cv_type_size_t=no
17175cat >conftest.$ac_ext <<_ACEOF
17176/* confdefs.h. */
17177_ACEOF
17178cat confdefs.h >>conftest.$ac_ext
17179cat >>conftest.$ac_ext <<_ACEOF
17180/* end confdefs.h. */
17181$ac_includes_default
17182int
17183main ()
17184{
17185if (sizeof (size_t))
17186 return 0;
17187 ;
17188 return 0;
17189}
17190_ACEOF
17191rm -f conftest.$ac_objext
17192if { (ac_try="$ac_compile"
17193case "(($ac_try" in
17194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17195 *) ac_try_echo=$ac_try;;
17196esac
17197eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17198$as_echo "$ac_try_echo") >&5
17199 (eval "$ac_compile") 2>conftest.er1
17200 ac_status=$?
17201 grep -v '^ *+' conftest.er1 >conftest.err
17202 rm -f conftest.er1
17203 cat conftest.err >&5
17204 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17205 (exit $ac_status); } && {
17206 test -z "$ac_c_werror_flag" ||
17207 test ! -s conftest.err
17208 } && test -s conftest.$ac_objext; then
17209 cat >conftest.$ac_ext <<_ACEOF
17210/* confdefs.h. */
17211_ACEOF
17212cat confdefs.h >>conftest.$ac_ext
17213cat >>conftest.$ac_ext <<_ACEOF
17214/* end confdefs.h. */
17215$ac_includes_default
17216int
17217main ()
17218{
17219if (sizeof ((size_t)))
17220 return 0;
17221 ;
17222 return 0;
17223}
17224_ACEOF
17225rm -f conftest.$ac_objext
17226if { (ac_try="$ac_compile"
17227case "(($ac_try" in
17228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17229 *) ac_try_echo=$ac_try;;
17230esac
17231eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17232$as_echo "$ac_try_echo") >&5
17233 (eval "$ac_compile") 2>conftest.er1
17234 ac_status=$?
17235 grep -v '^ *+' conftest.er1 >conftest.err
17236 rm -f conftest.er1
17237 cat conftest.err >&5
17238 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17239 (exit $ac_status); } && {
17240 test -z "$ac_c_werror_flag" ||
17241 test ! -s conftest.err
17242 } && test -s conftest.$ac_objext; then
17243 :
17244else
17245 $as_echo "$as_me: failed program was:" >&5
17246sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 17247
8d138742
CE
17248 ac_cv_type_size_t=yes
17249fi
d9898ee8 17250
8d138742
CE
17251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17252else
17253 $as_echo "$as_me: failed program was:" >&5
17254sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 17255
d9898ee8 17256
8d138742 17257fi
d9898ee8 17258
8d138742
CE
17259rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17260fi
17261{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17262$as_echo "$ac_cv_type_size_t" >&6; }
17263if test "x$ac_cv_type_size_t" = x""yes; then
17264 :
17265else
d9898ee8 17266
8d138742
CE
17267cat >>confdefs.h <<_ACEOF
17268#define size_t unsigned int
17269_ACEOF
d9898ee8 17270
8d138742 17271fi
d9898ee8 17272
d9898ee8 17273
8d138742
CE
17274ac_ext=cpp
17275ac_cpp='$CXXCPP $CPPFLAGS'
17276ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17277ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17278ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
d9898ee8 17279
8d138742
CE
17280{ $as_echo "$as_me:$LINENO: checking if the C++ compiler needs -fhandle-exceptions" >&5
17281$as_echo_n "checking if the C++ compiler needs -fhandle-exceptions... " >&6; }
17282if test "${ac_cv_need_handlexceptions+set}" = set; then
17283 $as_echo_n "(cached) " >&6
17284else
17285 cat >conftest.$ac_ext <<_ACEOF
17286/* confdefs.h. */
17287_ACEOF
17288cat confdefs.h >>conftest.$ac_ext
17289cat >>conftest.$ac_ext <<_ACEOF
17290/* end confdefs.h. */
d9898ee8 17291
8d138742
CE
17292int
17293main ()
17294{
d9898ee8 17295
8d138742 17296throw;
d9898ee8 17297
8d138742
CE
17298 ;
17299 return 0;
17300}
17301_ACEOF
17302rm -f conftest.$ac_objext
17303if { (ac_try="$ac_compile"
17304case "(($ac_try" in
17305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17306 *) ac_try_echo=$ac_try;;
17307esac
17308eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17309$as_echo "$ac_try_echo") >&5
17310 (eval "$ac_compile") 2>conftest.er1
17311 ac_status=$?
17312 grep -v '^ *+' conftest.er1 >conftest.err
17313 rm -f conftest.er1
17314 cat conftest.err >&5
17315 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17316 (exit $ac_status); } && {
17317 test -z "$ac_cxx_werror_flag" ||
17318 test ! -s conftest.err
17319 } && test -s conftest.$ac_objext; then
17320 ac_cv_need_handlexceptions=no
17321else
17322 $as_echo "$as_me: failed program was:" >&5
17323sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 17324
8d138742
CE
17325 ac_cv_need_handlexceptions=yes
17326fi
d9898ee8 17327
8d138742 17328rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 17329
8d138742
CE
17330fi
17331{ $as_echo "$as_me:$LINENO: result: $ac_cv_need_handlexceptions" >&5
17332$as_echo "$ac_cv_need_handlexceptions" >&6; }
d9898ee8 17333
8d138742
CE
17334if test "$ac_cv_need_handlexceptions" = "yes"
17335then
17336 case "$CXXFLAGS" in
17337 *handle-exceptions*)
17338 ;;
17339 *)
17340 CXXFLAGS="-fhandle-exceptions $CXXFLAGS"
17341 CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-O2//'`
17342 ;;
17343 esac
17344fi
d9898ee8 17345
8d138742
CE
17346if test "$GCC" = "yes"
17347then
17348 CFLAGS="-Wall $CFLAGS"
17349fi
d9898ee8 17350
8d138742 17351ac_config_files="$ac_config_files Makefile"
d9898ee8 17352
8d138742
CE
17353cat >confcache <<\_ACEOF
17354# This file is a shell script that caches the results of configure
17355# tests run on this system so they can be shared between configure
17356# scripts and configure runs, see configure's option --config-cache.
17357# It is not useful on other systems. If it contains results you don't
17358# want to keep, you may remove or edit it.
17359#
17360# config.status only pays attention to the cache file if you give it
17361# the --recheck option to rerun configure.
17362#
17363# `ac_cv_env_foo' variables (set or unset) will be overridden when
17364# loading this file, other *unset* `ac_cv_foo' will be assigned the
17365# following values.
d9898ee8 17366
8d138742 17367_ACEOF
d9898ee8 17368
8d138742
CE
17369# The following way of writing the cache mishandles newlines in values,
17370# but we know of no workaround that is simple, portable, and efficient.
17371# So, we kill variables containing newlines.
17372# Ultrix sh set writes to stderr and can't be redirected directly,
17373# and sets the high bit in the cache file unless we assign to the vars.
17374(
17375 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17376 eval ac_val=\$$ac_var
17377 case $ac_val in #(
17378 *${as_nl}*)
17379 case $ac_var in #(
17380 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
17381$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17382 esac
17383 case $ac_var in #(
17384 _ | IFS | as_nl) ;; #(
17385 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17386 *) $as_unset $ac_var ;;
17387 esac ;;
17388 esac
17389 done
d9898ee8 17390
8d138742
CE
17391 (set) 2>&1 |
17392 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17393 *${as_nl}ac_space=\ *)
17394 # `set' does not quote correctly, so add quotes (double-quote
17395 # substitution turns \\\\ into \\, and sed turns \\ into \).
17396 sed -n \
17397 "s/'/'\\\\''/g;
17398 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17399 ;; #(
17400 *)
17401 # `set' quotes correctly as required by POSIX, so do not add quotes.
17402 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17403 ;;
17404 esac |
17405 sort
17406) |
17407 sed '
17408 /^ac_cv_env_/b end
17409 t clear
17410 :clear
17411 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17412 t end
17413 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17414 :end' >>confcache
17415if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17416 if test -w "$cache_file"; then
17417 test "x$cache_file" != "x/dev/null" &&
17418 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
17419$as_echo "$as_me: updating cache $cache_file" >&6;}
17420 cat confcache >$cache_file
17421 else
17422 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
17423$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17424 fi
17425fi
17426rm -f confcache
d9898ee8 17427
8d138742
CE
17428test "x$prefix" = xNONE && prefix=$ac_default_prefix
17429# Let make expand exec_prefix.
17430test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
d9898ee8 17431
8d138742 17432DEFS=-DHAVE_CONFIG_H
d9898ee8 17433
8d138742
CE
17434ac_libobjs=
17435ac_ltlibobjs=
17436for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17437 # 1. Remove the extension, and $U if already installed.
17438 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17439 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17440 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17441 # will be set to the directory where LIBOBJS objects are built.
17442 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17443 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
17444done
17445LIBOBJS=$ac_libobjs
d9898ee8 17446
8d138742 17447LTLIBOBJS=$ac_ltlibobjs
d9898ee8 17448
d9898ee8 17449
8d138742
CE
17450 if test -n "$EXEEXT"; then
17451 am__EXEEXT_TRUE=
17452 am__EXEEXT_FALSE='#'
17453else
17454 am__EXEEXT_TRUE='#'
17455 am__EXEEXT_FALSE=
17456fi
d9898ee8 17457
8d138742
CE
17458if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17459 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
17460Usually this means the macro was only invoked conditionally." >&5
17461$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
17462Usually this means the macro was only invoked conditionally." >&2;}
17463 { (exit 1); exit 1; }; }
17464fi
17465if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17466 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
17467Usually this means the macro was only invoked conditionally." >&5
17468$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
17469Usually this means the macro was only invoked conditionally." >&2;}
17470 { (exit 1); exit 1; }; }
17471fi
17472if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17473 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
17474Usually this means the macro was only invoked conditionally." >&5
17475$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
17476Usually this means the macro was only invoked conditionally." >&2;}
17477 { (exit 1); exit 1; }; }
17478fi
17479if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17480 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
17481Usually this means the macro was only invoked conditionally." >&5
17482$as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
17483Usually this means the macro was only invoked conditionally." >&2;}
17484 { (exit 1); exit 1; }; }
17485fi
17486if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17487 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
17488Usually this means the macro was only invoked conditionally." >&5
17489$as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
17490Usually this means the macro was only invoked conditionally." >&2;}
17491 { (exit 1); exit 1; }; }
17492fi
17493if test -z "${FOUND_DB_TRUE}" && test -z "${FOUND_DB_FALSE}"; then
17494 { { $as_echo "$as_me:$LINENO: error: conditional \"FOUND_DB\" was never defined.
17495Usually this means the macro was only invoked conditionally." >&5
17496$as_echo "$as_me: error: conditional \"FOUND_DB\" was never defined.
17497Usually this means the macro was only invoked conditionally." >&2;}
17498 { (exit 1); exit 1; }; }
17499fi
d9898ee8 17500
8d138742
CE
17501: ${CONFIG_STATUS=./config.status}
17502ac_write_fail=0
17503ac_clean_files_save=$ac_clean_files
17504ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17505{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17506$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17507cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17508#! $SHELL
17509# Generated by $as_me.
17510# Run this file to recreate the current configuration.
17511# Compiler output produced by configure, useful for debugging
17512# configure, is in config.log if it exists.
d9898ee8 17513
8d138742
CE
17514debug=false
17515ac_cs_recheck=false
17516ac_cs_silent=false
17517SHELL=\${CONFIG_SHELL-$SHELL}
17518_ACEOF
d9898ee8 17519
8d138742
CE
17520cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17521## --------------------- ##
17522## M4sh Initialization. ##
17523## --------------------- ##
d9898ee8 17524
8d138742
CE
17525# Be more Bourne compatible
17526DUALCASE=1; export DUALCASE # for MKS sh
17527if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17528 emulate sh
17529 NULLCMD=:
17530 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17531 # is contrary to our usage. Disable this feature.
17532 alias -g '${1+"$@"}'='"$@"'
17533 setopt NO_GLOB_SUBST
17534else
17535 case `(set -o) 2>/dev/null` in
17536 *posix*) set -o posix ;;
17537esac
d9898ee8 17538
8d138742 17539fi
d9898ee8 17540
d9898ee8 17541
d9898ee8 17542
d9898ee8 17543
8d138742
CE
17544# PATH needs CR
17545# Avoid depending upon Character Ranges.
17546as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17547as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17548as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17549as_cr_digits='0123456789'
17550as_cr_alnum=$as_cr_Letters$as_cr_digits
d9898ee8 17551
8d138742
CE
17552as_nl='
17553'
17554export as_nl
17555# Printing a long string crashes Solaris 7 /usr/bin/printf.
17556as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17557as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17558as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17559if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17560 as_echo='printf %s\n'
17561 as_echo_n='printf %s'
17562else
17563 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17564 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17565 as_echo_n='/usr/ucb/echo -n'
17566 else
17567 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17568 as_echo_n_body='eval
17569 arg=$1;
17570 case $arg in
17571 *"$as_nl"*)
17572 expr "X$arg" : "X\\(.*\\)$as_nl";
17573 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17574 esac;
17575 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17576 '
17577 export as_echo_n_body
17578 as_echo_n='sh -c $as_echo_n_body as_echo'
17579 fi
17580 export as_echo_body
17581 as_echo='sh -c $as_echo_body as_echo'
17582fi
d9898ee8 17583
8d138742
CE
17584# The user is always right.
17585if test "${PATH_SEPARATOR+set}" != set; then
17586 PATH_SEPARATOR=:
17587 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17588 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17589 PATH_SEPARATOR=';'
17590 }
17591fi
d9898ee8 17592
8d138742
CE
17593# Support unset when possible.
17594if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
17595 as_unset=unset
17596else
17597 as_unset=false
17598fi
d9898ee8 17599
d9898ee8 17600
8d138742
CE
17601# IFS
17602# We need space, tab and new line, in precisely that order. Quoting is
17603# there to prevent editors from complaining about space-tab.
17604# (If _AS_PATH_WALK were called with IFS unset, it would disable word
17605# splitting by setting IFS to empty value.)
17606IFS=" "" $as_nl"
d9898ee8 17607
8d138742
CE
17608# Find who we are. Look in the path if we contain no directory separator.
17609case $0 in
17610 *[\\/]* ) as_myself=$0 ;;
17611 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17612for as_dir in $PATH
17613do
17614 IFS=$as_save_IFS
17615 test -z "$as_dir" && as_dir=.
17616 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17617done
17618IFS=$as_save_IFS
d9898ee8 17619
8d138742
CE
17620 ;;
17621esac
17622# We did not find ourselves, most probably we were run as `sh COMMAND'
17623# in which case we are not to be found in the path.
17624if test "x$as_myself" = x; then
17625 as_myself=$0
17626fi
17627if test ! -f "$as_myself"; then
17628 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17629 { (exit 1); exit 1; }
17630fi
d9898ee8 17631
8d138742
CE
17632# Work around bugs in pre-3.0 UWIN ksh.
17633for as_var in ENV MAIL MAILPATH
17634do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
17635done
17636PS1='$ '
17637PS2='> '
17638PS4='+ '
d9898ee8 17639
8d138742
CE
17640# NLS nuisances.
17641LC_ALL=C
17642export LC_ALL
17643LANGUAGE=C
17644export LANGUAGE
d9898ee8 17645
8d138742
CE
17646# Required to use basename.
17647if expr a : '\(a\)' >/dev/null 2>&1 &&
17648 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17649 as_expr=expr
17650else
17651 as_expr=false
17652fi
d9898ee8 17653
8d138742
CE
17654if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17655 as_basename=basename
17656else
17657 as_basename=false
17658fi
d9898ee8 17659
d9898ee8 17660
8d138742
CE
17661# Name of the executable.
17662as_me=`$as_basename -- "$0" ||
17663$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17664 X"$0" : 'X\(//\)$' \| \
17665 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17666$as_echo X/"$0" |
17667 sed '/^.*\/\([^/][^/]*\)\/*$/{
17668 s//\1/
17669 q
17670 }
17671 /^X\/\(\/\/\)$/{
17672 s//\1/
17673 q
17674 }
17675 /^X\/\(\/\).*/{
17676 s//\1/
17677 q
17678 }
17679 s/.*/./; q'`
d9898ee8 17680
8d138742
CE
17681# CDPATH.
17682$as_unset CDPATH
d9898ee8 17683
d9898ee8 17684
d9898ee8 17685
8d138742
CE
17686 as_lineno_1=$LINENO
17687 as_lineno_2=$LINENO
17688 test "x$as_lineno_1" != "x$as_lineno_2" &&
17689 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
d9898ee8 17690
8d138742
CE
17691 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17692 # uniformly replaced by the line number. The first 'sed' inserts a
17693 # line-number line after each line using $LINENO; the second 'sed'
17694 # does the real work. The second script uses 'N' to pair each
17695 # line-number line with the line containing $LINENO, and appends
17696 # trailing '-' during substitution so that $LINENO is not a special
17697 # case at line end.
17698 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17699 # scripts with optimization help from Paolo Bonzini. Blame Lee
17700 # E. McMahon (1931-1989) for sed's syntax. :-)
17701 sed -n '
17702 p
17703 /[$]LINENO/=
17704 ' <$as_myself |
17705 sed '
17706 s/[$]LINENO.*/&-/
17707 t lineno
17708 b
17709 :lineno
17710 N
17711 :loop
17712 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
17713 t loop
17714 s/-\n.*//
17715 ' >$as_me.lineno &&
17716 chmod +x "$as_me.lineno" ||
17717 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
17718 { (exit 1); exit 1; }; }
d9898ee8 17719
8d138742
CE
17720 # Don't try to exec as it changes $[0], causing all sort of problems
17721 # (the dirname of $[0] is not the place where we might find the
17722 # original and so on. Autoconf is especially sensitive to this).
17723 . "./$as_me.lineno"
17724 # Exit status is that of the last command.
17725 exit
17726}
d9898ee8 17727
d9898ee8 17728
8d138742
CE
17729if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17730 as_dirname=dirname
17731else
17732 as_dirname=false
17733fi
d9898ee8 17734
8d138742
CE
17735ECHO_C= ECHO_N= ECHO_T=
17736case `echo -n x` in
17737-n*)
17738 case `echo 'x\c'` in
17739 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17740 *) ECHO_C='\c';;
17741 esac;;
17742*)
17743 ECHO_N='-n';;
17744esac
17745if expr a : '\(a\)' >/dev/null 2>&1 &&
17746 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17747 as_expr=expr
17748else
17749 as_expr=false
17750fi
d9898ee8 17751
8d138742
CE
17752rm -f conf$$ conf$$.exe conf$$.file
17753if test -d conf$$.dir; then
17754 rm -f conf$$.dir/conf$$.file
17755else
17756 rm -f conf$$.dir
17757 mkdir conf$$.dir 2>/dev/null
17758fi
17759if (echo >conf$$.file) 2>/dev/null; then
17760 if ln -s conf$$.file conf$$ 2>/dev/null; then
17761 as_ln_s='ln -s'
17762 # ... but there are two gotchas:
17763 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17764 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17765 # In both cases, we have to default to `cp -p'.
17766 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17767 as_ln_s='cp -p'
17768 elif ln conf$$.file conf$$ 2>/dev/null; then
17769 as_ln_s=ln
17770 else
17771 as_ln_s='cp -p'
17772 fi
17773else
17774 as_ln_s='cp -p'
17775fi
17776rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17777rmdir conf$$.dir 2>/dev/null
d9898ee8 17778
8d138742
CE
17779if mkdir -p . 2>/dev/null; then
17780 as_mkdir_p=:
17781else
17782 test -d ./-p && rmdir ./-p
17783 as_mkdir_p=false
17784fi
d9898ee8 17785
8d138742
CE
17786if test -x / >/dev/null 2>&1; then
17787 as_test_x='test -x'
17788else
17789 if ls -dL / >/dev/null 2>&1; then
17790 as_ls_L_option=L
17791 else
17792 as_ls_L_option=
17793 fi
17794 as_test_x='
17795 eval sh -c '\''
17796 if test -d "$1"; then
17797 test -d "$1/.";
17798 else
17799 case $1 in
17800 -*)set "./$1";;
17801 esac;
17802 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
17803 ???[sx]*):;;*)false;;esac;fi
17804 '\'' sh
17805 '
17806fi
17807as_executable_p=$as_test_x
d9898ee8 17808
8d138742
CE
17809# Sed expression to map a string onto a valid CPP name.
17810as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
d9898ee8 17811
8d138742
CE
17812# Sed expression to map a string onto a valid variable name.
17813as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
d9898ee8 17814
d9898ee8 17815
8d138742 17816exec 6>&1
d9898ee8 17817
8d138742
CE
17818# Save the log message, to keep $[0] and so on meaningful, and to
17819# report actual input values of CONFIG_FILES etc. instead of their
17820# values after options handling.
17821ac_log="
17822This file was extended by bdbobj $as_me 0.10, which was
17823generated by GNU Autoconf 2.63. Invocation command line was
d9898ee8 17824
8d138742
CE
17825 CONFIG_FILES = $CONFIG_FILES
17826 CONFIG_HEADERS = $CONFIG_HEADERS
17827 CONFIG_LINKS = $CONFIG_LINKS
17828 CONFIG_COMMANDS = $CONFIG_COMMANDS
17829 $ $0 $@
d9898ee8 17830
8d138742
CE
17831on `(hostname || uname -n) 2>/dev/null | sed 1q`
17832"
d9898ee8 17833
8d138742 17834_ACEOF
d9898ee8 17835
8d138742
CE
17836case $ac_config_files in *"
17837"*) set x $ac_config_files; shift; ac_config_files=$*;;
17838esac
d9898ee8 17839
8d138742
CE
17840case $ac_config_headers in *"
17841"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17842esac
d9898ee8 17843
d9898ee8 17844
8d138742
CE
17845cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17846# Files that config.status was made for.
17847config_files="$ac_config_files"
17848config_headers="$ac_config_headers"
17849config_commands="$ac_config_commands"
d9898ee8 17850
8d138742 17851_ACEOF
d9898ee8 17852
8d138742
CE
17853cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17854ac_cs_usage="\
17855\`$as_me' instantiates files from templates according to the
17856current configuration.
d9898ee8 17857
8d138742 17858Usage: $0 [OPTION]... [FILE]...
d9898ee8 17859
8d138742
CE
17860 -h, --help print this help, then exit
17861 -V, --version print version number and configuration settings, then exit
17862 -q, --quiet, --silent
17863 do not print progress messages
17864 -d, --debug don't remove temporary files
17865 --recheck update $as_me by reconfiguring in the same conditions
17866 --file=FILE[:TEMPLATE]
17867 instantiate the configuration file FILE
17868 --header=FILE[:TEMPLATE]
17869 instantiate the configuration header FILE
d9898ee8 17870
8d138742
CE
17871Configuration files:
17872$config_files
d9898ee8 17873
8d138742
CE
17874Configuration headers:
17875$config_headers
d9898ee8 17876
8d138742
CE
17877Configuration commands:
17878$config_commands
d9898ee8 17879
8d138742 17880Report bugs to <bug-autoconf@gnu.org>."
d9898ee8 17881
8d138742
CE
17882_ACEOF
17883cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17884ac_cs_version="\\
17885bdbobj config.status 0.10
17886configured by $0, generated by GNU Autoconf 2.63,
17887 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
d9898ee8 17888
8d138742
CE
17889Copyright (C) 2008 Free Software Foundation, Inc.
17890This config.status script is free software; the Free Software Foundation
17891gives unlimited permission to copy, distribute and modify it."
d9898ee8 17892
8d138742
CE
17893ac_pwd='$ac_pwd'
17894srcdir='$srcdir'
17895INSTALL='$INSTALL'
17896MKDIR_P='$MKDIR_P'
17897AWK='$AWK'
17898test -n "\$AWK" || AWK=awk
17899_ACEOF
d9898ee8 17900
8d138742
CE
17901cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17902# The default lists apply if the user does not specify any file.
17903ac_need_defaults=:
17904while test $# != 0
17905do
17906 case $1 in
17907 --*=*)
17908 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17909 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17910 ac_shift=:
17911 ;;
17912 *)
17913 ac_option=$1
17914 ac_optarg=$2
17915 ac_shift=shift
17916 ;;
17917 esac
d9898ee8 17918
8d138742
CE
17919 case $ac_option in
17920 # Handling of the options.
17921 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17922 ac_cs_recheck=: ;;
17923 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17924 $as_echo "$ac_cs_version"; exit ;;
17925 --debug | --debu | --deb | --de | --d | -d )
17926 debug=: ;;
17927 --file | --fil | --fi | --f )
17928 $ac_shift
17929 case $ac_optarg in
17930 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17931 esac
17932 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
17933 ac_need_defaults=false;;
17934 --header | --heade | --head | --hea )
17935 $ac_shift
17936 case $ac_optarg in
17937 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17938 esac
17939 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
17940 ac_need_defaults=false;;
17941 --he | --h)
17942 # Conflict between --help and --header
17943 { $as_echo "$as_me: error: ambiguous option: $1
17944Try \`$0 --help' for more information." >&2
17945 { (exit 1); exit 1; }; };;
17946 --help | --hel | -h )
17947 $as_echo "$ac_cs_usage"; exit ;;
17948 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17949 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17950 ac_cs_silent=: ;;
d9898ee8 17951
8d138742
CE
17952 # This is an error.
17953 -*) { $as_echo "$as_me: error: unrecognized option: $1
17954Try \`$0 --help' for more information." >&2
17955 { (exit 1); exit 1; }; } ;;
d9898ee8 17956
8d138742
CE
17957 *) ac_config_targets="$ac_config_targets $1"
17958 ac_need_defaults=false ;;
d9898ee8 17959
8d138742
CE
17960 esac
17961 shift
17962done
d9898ee8 17963
8d138742 17964ac_configure_extra_args=
d9898ee8 17965
8d138742
CE
17966if $ac_cs_silent; then
17967 exec 6>/dev/null
17968 ac_configure_extra_args="$ac_configure_extra_args --silent"
d9898ee8 17969fi
17970
8d138742
CE
17971_ACEOF
17972cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17973if \$ac_cs_recheck; then
17974 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17975 shift
17976 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17977 CONFIG_SHELL='$SHELL'
17978 export CONFIG_SHELL
17979 exec "\$@"
17980fi
d9898ee8 17981
8d138742
CE
17982_ACEOF
17983cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17984exec 5>>config.log
17985{
17986 echo
17987 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17988## Running $as_me. ##
17989_ASBOX
17990 $as_echo "$ac_log"
17991} >&5
d9898ee8 17992
8d138742
CE
17993_ACEOF
17994cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17995#
17996# INIT-COMMANDS
17997#
17998AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
d9898ee8 17999
d9898ee8 18000
8d138742
CE
18001# The HP-UX ksh and POSIX shell print the target directory to stdout
18002# if CDPATH is set.
18003(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
d9898ee8 18004
8d138742
CE
18005sed_quote_subst='$sed_quote_subst'
18006double_quote_subst='$double_quote_subst'
18007delay_variable_subst='$delay_variable_subst'
18008macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
18009macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
18010enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
18011enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
18012pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
18013enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
18014host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
18015host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
18016host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
18017build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
18018build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
18019build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
18020SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
18021Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
18022GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
18023EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
18024FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
18025LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
18026NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
18027LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
18028max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
18029ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
18030exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
18031lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
18032lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
18033lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
18034reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
18035reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18036OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
18037deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
18038file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
18039AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
18040AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
18041STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
18042RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
18043old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18044old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18045old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18046CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
18047CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
18048compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
18049GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
18050lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
18051lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
18052lt_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"`'
18053lt_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"`'
18054objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
18055SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
18056ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
18057MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
18058lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
18059lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
18060lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
18061lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
18062lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
18063need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
18064DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
18065NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
18066LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
18067OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
18068OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
18069libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
18070shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18071extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18072archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
18073enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
18074export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
18075whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
18076compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
18077old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18078old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18079archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18080archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18081module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18082module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18083with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
18084allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
18085no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
18086hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
18087hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
18088hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
18089hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
18090hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
18091hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
18092hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
18093hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
18094inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
18095link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
18096fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
18097always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
18098export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18099exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
18100include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
18101prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18102file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
18103variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
18104need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
18105need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
18106version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
18107runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
18108shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
18109shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
18110libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
18111library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
18112soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
18113postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18114postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18115finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18116finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
18117hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
18118sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
18119sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
18120hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
18121enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
18122enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
18123enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
18124old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
18125striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
18126compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
18127predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
18128postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
18129predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
18130postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
18131compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
18132LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18133old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18134compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18135GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18136lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18137lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18138lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18139lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18140lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18141archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18142enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18143export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18144whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18145compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18146old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18147old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18148archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18149archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18150module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18151module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18152with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18153allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18154no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18155hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18156hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18157hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18158hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18159hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18160hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18161hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18162hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18163inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18164link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18165fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18166always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18167export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18168exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18169include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18170prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18171file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18172hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18173compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18174predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18175postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18176predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18177postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18178compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18179
18180LTCC='$LTCC'
18181LTCFLAGS='$LTCFLAGS'
18182compiler='$compiler_DEFAULT'
18183
18184# Quote evaled strings.
18185for var in SED \
18186GREP \
18187EGREP \
18188FGREP \
18189LD \
18190NM \
18191LN_S \
18192lt_SP2NL \
18193lt_NL2SP \
18194reload_flag \
18195OBJDUMP \
18196deplibs_check_method \
18197file_magic_cmd \
18198AR \
18199AR_FLAGS \
18200STRIP \
18201RANLIB \
18202CC \
18203CFLAGS \
18204compiler \
18205lt_cv_sys_global_symbol_pipe \
18206lt_cv_sys_global_symbol_to_cdecl \
18207lt_cv_sys_global_symbol_to_c_name_address \
18208lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18209SHELL \
18210ECHO \
18211lt_prog_compiler_no_builtin_flag \
18212lt_prog_compiler_wl \
18213lt_prog_compiler_pic \
18214lt_prog_compiler_static \
18215lt_cv_prog_compiler_c_o \
18216need_locks \
18217DSYMUTIL \
18218NMEDIT \
18219LIPO \
18220OTOOL \
18221OTOOL64 \
18222shrext_cmds \
18223export_dynamic_flag_spec \
18224whole_archive_flag_spec \
18225compiler_needs_object \
18226with_gnu_ld \
18227allow_undefined_flag \
18228no_undefined_flag \
18229hardcode_libdir_flag_spec \
18230hardcode_libdir_flag_spec_ld \
18231hardcode_libdir_separator \
18232fix_srcfile_path \
18233exclude_expsyms \
18234include_expsyms \
18235file_list_spec \
18236variables_saved_for_relink \
18237libname_spec \
18238library_names_spec \
18239soname_spec \
18240finish_eval \
18241old_striplib \
18242striplib \
18243compiler_lib_search_dirs \
18244predep_objects \
18245postdep_objects \
18246predeps \
18247postdeps \
18248compiler_lib_search_path \
18249LD_CXX \
18250compiler_CXX \
18251lt_prog_compiler_no_builtin_flag_CXX \
18252lt_prog_compiler_wl_CXX \
18253lt_prog_compiler_pic_CXX \
18254lt_prog_compiler_static_CXX \
18255lt_cv_prog_compiler_c_o_CXX \
18256export_dynamic_flag_spec_CXX \
18257whole_archive_flag_spec_CXX \
18258compiler_needs_object_CXX \
18259with_gnu_ld_CXX \
18260allow_undefined_flag_CXX \
18261no_undefined_flag_CXX \
18262hardcode_libdir_flag_spec_CXX \
18263hardcode_libdir_flag_spec_ld_CXX \
18264hardcode_libdir_separator_CXX \
18265fix_srcfile_path_CXX \
18266exclude_expsyms_CXX \
18267include_expsyms_CXX \
18268file_list_spec_CXX \
18269compiler_lib_search_dirs_CXX \
18270predep_objects_CXX \
18271postdep_objects_CXX \
18272predeps_CXX \
18273postdeps_CXX \
18274compiler_lib_search_path_CXX; do
18275 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
18276 *[\\\\\\\`\\"\\\$]*)
18277 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18278 ;;
18279 *)
18280 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18281 ;;
18282 esac
18283done
d9898ee8 18284
8d138742
CE
18285# Double-quote double-evaled strings.
18286for var in reload_cmds \
18287old_postinstall_cmds \
18288old_postuninstall_cmds \
18289old_archive_cmds \
18290extract_expsyms_cmds \
18291old_archive_from_new_cmds \
18292old_archive_from_expsyms_cmds \
18293archive_cmds \
18294archive_expsym_cmds \
18295module_cmds \
18296module_expsym_cmds \
18297export_symbols_cmds \
18298prelink_cmds \
18299postinstall_cmds \
18300postuninstall_cmds \
18301finish_cmds \
18302sys_lib_search_path_spec \
18303sys_lib_dlsearch_path_spec \
18304old_archive_cmds_CXX \
18305old_archive_from_new_cmds_CXX \
18306old_archive_from_expsyms_cmds_CXX \
18307archive_cmds_CXX \
18308archive_expsym_cmds_CXX \
18309module_cmds_CXX \
18310module_expsym_cmds_CXX \
18311export_symbols_cmds_CXX \
18312prelink_cmds_CXX; do
18313 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
18314 *[\\\\\\\`\\"\\\$]*)
18315 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18316 ;;
18317 *)
18318 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18319 ;;
18320 esac
18321done
d9898ee8 18322
8d138742
CE
18323# Fix-up fallback echo if it was mangled by the above quoting rules.
18324case \$lt_ECHO in
18325*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
18326 ;;
18327esac
d9898ee8 18328
8d138742
CE
18329ac_aux_dir='$ac_aux_dir'
18330xsi_shell='$xsi_shell'
18331lt_shell_append='$lt_shell_append'
d9898ee8 18332
8d138742
CE
18333# See if we are running on zsh, and set the options which allow our
18334# commands through without removal of \ escapes INIT.
18335if test -n "\${ZSH_VERSION+set}" ; then
18336 setopt NO_GLOB_SUBST
18337fi
d9898ee8 18338
18339
8d138742
CE
18340 PACKAGE='$PACKAGE'
18341 VERSION='$VERSION'
18342 TIMESTAMP='$TIMESTAMP'
18343 RM='$RM'
18344 ofile='$ofile'
d9898ee8 18345
18346
18347
18348
18349
18350
8d138742 18351_ACEOF
d9898ee8 18352
8d138742 18353cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
d9898ee8 18354
8d138742
CE
18355# Handling of arguments.
18356for ac_config_target in $ac_config_targets
18357do
18358 case $ac_config_target in
18359 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18360 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18361 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18362 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
d9898ee8 18363
8d138742
CE
18364 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18365$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18366 { (exit 1); exit 1; }; };;
18367 esac
18368done
d9898ee8 18369
18370
8d138742
CE
18371# If the user did not use the arguments to specify the items to instantiate,
18372# then the envvar interface is used. Set only those that are not.
18373# We use the long form for the default assignment because of an extremely
18374# bizarre bug on SunOS 4.1.3.
18375if $ac_need_defaults; then
18376 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18377 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18378 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18379fi
d9898ee8 18380
8d138742
CE
18381# Have a temporary directory for convenience. Make it in the build tree
18382# simply because there is no reason against having it here, and in addition,
18383# creating and moving files from /tmp can sometimes cause problems.
18384# Hook for its removal unless debugging.
18385# Note that there is a small window in which the directory will not be cleaned:
18386# after its creation but before its name has been assigned to `$tmp'.
18387$debug ||
18388{
18389 tmp=
18390 trap 'exit_status=$?
18391 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18392' 0
18393 trap '{ (exit 1); exit 1; }' 1 2 13 15
18394}
18395# Create a (secure) tmp directory for tmp files.
d9898ee8 18396
8d138742
CE
18397{
18398 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18399 test -n "$tmp" && test -d "$tmp"
18400} ||
18401{
18402 tmp=./conf$$-$RANDOM
18403 (umask 077 && mkdir "$tmp")
18404} ||
18405{
18406 $as_echo "$as_me: cannot create a temporary directory in ." >&2
18407 { (exit 1); exit 1; }
18408}
d9898ee8 18409
8d138742
CE
18410# Set up the scripts for CONFIG_FILES section.
18411# No need to generate them if there are no CONFIG_FILES.
18412# This happens for instance with `./config.status config.h'.
18413if test -n "$CONFIG_FILES"; then
d9898ee8 18414
d9898ee8 18415
8d138742
CE
18416ac_cr='\r'
18417ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18418if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18419 ac_cs_awk_cr='\\r'
d9898ee8 18420else
8d138742 18421 ac_cs_awk_cr=$ac_cr
d9898ee8 18422fi
dd184caf 18423
8d138742 18424echo 'BEGIN {' >"$tmp/subs1.awk" &&
d9898ee8 18425_ACEOF
d9898ee8 18426
8d138742 18427
d9898ee8 18428{
8d138742
CE
18429 echo "cat >conf$$subs.awk <<_ACEOF" &&
18430 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18431 echo "_ACEOF"
18432} >conf$$subs.sh ||
18433 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18434$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18435 { (exit 1); exit 1; }; }
18436ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
18437ac_delim='%!_!# '
18438for ac_last_try in false false false false false :; do
18439 . ./conf$$subs.sh ||
18440 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18441$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18442 { (exit 1); exit 1; }; }
d9898ee8 18443
8d138742
CE
18444 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18445 if test $ac_delim_n = $ac_delim_num; then
18446 break
18447 elif $ac_last_try; then
18448 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18449$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18450 { (exit 1); exit 1; }; }
18451 else
18452 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18453 fi
18454done
18455rm -f conf$$subs.sh
dd184caf 18456
8d138742
CE
18457cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18458cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
d9898ee8 18459_ACEOF
8d138742
CE
18460sed -n '
18461h
18462s/^/S["/; s/!.*/"]=/
18463p
18464g
18465s/^[^!]*!//
18466:repl
18467t repl
18468s/'"$ac_delim"'$//
18469t delim
18470:nl
18471h
18472s/\(.\{148\}\).*/\1/
18473t more1
18474s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18475p
18476n
18477b repl
18478:more1
18479s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18480p
18481g
18482s/.\{148\}//
18483t nl
18484:delim
18485h
18486s/\(.\{148\}\).*/\1/
18487t more2
18488s/["\\]/\\&/g; s/^/"/; s/$/"/
18489p
18490b
18491:more2
18492s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18493p
18494g
18495s/.\{148\}//
18496t delim
18497' <conf$$subs.awk | sed '
18498/^[^""]/{
18499 N
18500 s/\n//
18501}
18502' >>$CONFIG_STATUS || ac_write_fail=1
18503rm -f conf$$subs.awk
18504cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18505_ACAWK
18506cat >>"\$tmp/subs1.awk" <<_ACAWK &&
18507 for (key in S) S_is_set[key] = 1
18508 FS = "\a"
d9898ee8 18509
d9898ee8 18510}
8d138742
CE
18511{
18512 line = $ 0
18513 nfields = split(line, field, "@")
18514 substed = 0
18515 len = length(field[1])
18516 for (i = 2; i < nfields; i++) {
18517 key = field[i]
18518 keylen = length(key)
18519 if (S_is_set[key]) {
18520 value = S[key]
18521 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18522 len += length(value) + length(field[++i])
18523 substed = 1
18524 } else
18525 len += 1 + keylen
18526 }
18527
18528 print line
18529}
18530
18531_ACAWK
18532_ACEOF
18533cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18534if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18535 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18536else
18537 cat
18538fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
18539 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
18540$as_echo "$as_me: error: could not setup config files machinery" >&2;}
18541 { (exit 1); exit 1; }; }
d9898ee8 18542_ACEOF
d9898ee8 18543
8d138742
CE
18544# VPATH may cause trouble with some makes, so we remove $(srcdir),
18545# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18546# trailing colons and then remove the whole line if VPATH becomes empty
18547# (actually we leave an empty line to preserve line numbers).
18548if test "x$srcdir" = x.; then
18549 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18550s/:*\$(srcdir):*/:/
18551s/:*\${srcdir}:*/:/
18552s/:*@srcdir@:*/:/
18553s/^\([^=]*=[ ]*\):*/\1/
18554s/:*$//
18555s/^[^=]*=[ ]*$//
18556}'
d9898ee8 18557fi
dd184caf 18558
8d138742
CE
18559cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18560fi # test -n "$CONFIG_FILES"
d9898ee8 18561
8d138742
CE
18562# Set up the scripts for CONFIG_HEADERS section.
18563# No need to generate them if there are no CONFIG_HEADERS.
18564# This happens for instance with `./config.status Makefile'.
18565if test -n "$CONFIG_HEADERS"; then
18566cat >"$tmp/defines.awk" <<\_ACAWK ||
18567BEGIN {
18568_ACEOF
d9898ee8 18569
8d138742
CE
18570# Transform confdefs.h into an awk script `defines.awk', embedded as
18571# here-document in config.status, that substitutes the proper values into
18572# config.h.in to produce config.h.
d9898ee8 18573
8d138742
CE
18574# Create a delimiter string that does not exist in confdefs.h, to ease
18575# handling of long lines.
18576ac_delim='%!_!# '
18577for ac_last_try in false false :; do
18578 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
18579 if test -z "$ac_t"; then
18580 break
18581 elif $ac_last_try; then
18582 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
18583$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
18584 { (exit 1); exit 1; }; }
18585 else
18586 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18587 fi
18588done
d9898ee8 18589
8d138742
CE
18590# For the awk script, D is an array of macro values keyed by name,
18591# likewise P contains macro parameters if any. Preserve backslash
18592# newline sequences.
d9898ee8 18593
8d138742
CE
18594ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18595sed -n '
18596s/.\{148\}/&'"$ac_delim"'/g
18597t rset
18598:rset
18599s/^[ ]*#[ ]*define[ ][ ]*/ /
18600t def
18601d
18602:def
18603s/\\$//
18604t bsnl
18605s/["\\]/\\&/g
18606s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18607D["\1"]=" \3"/p
18608s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18609d
18610:bsnl
18611s/["\\]/\\&/g
18612s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18613D["\1"]=" \3\\\\\\n"\\/p
18614t cont
18615s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18616t cont
18617d
18618:cont
18619n
18620s/.\{148\}/&'"$ac_delim"'/g
18621t clear
18622:clear
18623s/\\$//
18624t bsnlc
18625s/["\\]/\\&/g; s/^/"/; s/$/"/p
18626d
18627:bsnlc
18628s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18629b cont
18630' <confdefs.h | sed '
18631s/'"$ac_delim"'/"\\\
18632"/g' >>$CONFIG_STATUS || ac_write_fail=1
18633
18634cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18635 for (key in D) D_is_set[key] = 1
18636 FS = "\a"
18637}
18638/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18639 line = \$ 0
18640 split(line, arg, " ")
18641 if (arg[1] == "#") {
18642 defundef = arg[2]
18643 mac1 = arg[3]
18644 } else {
18645 defundef = substr(arg[1], 2)
18646 mac1 = arg[2]
18647 }
18648 split(mac1, mac2, "(") #)
18649 macro = mac2[1]
18650 prefix = substr(line, 1, index(line, defundef) - 1)
18651 if (D_is_set[macro]) {
18652 # Preserve the white space surrounding the "#".
18653 print prefix "define", macro P[macro] D[macro]
18654 next
18655 } else {
18656 # Replace #undef with comments. This is necessary, for example,
18657 # in the case of _POSIX_SOURCE, which is predefined and required
18658 # on some systems where configure will not decide to define it.
18659 if (defundef == "undef") {
18660 print "/*", prefix defundef, macro, "*/"
18661 next
18662 }
18663 }
18664}
18665{ print }
18666_ACAWK
d9898ee8 18667_ACEOF
8d138742
CE
18668cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18669 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
18670$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
18671 { (exit 1); exit 1; }; }
18672fi # test -n "$CONFIG_HEADERS"
d9898ee8 18673
d9898ee8 18674
8d138742
CE
18675eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18676shift
18677for ac_tag
18678do
18679 case $ac_tag in
18680 :[FHLC]) ac_mode=$ac_tag; continue;;
18681 esac
18682 case $ac_mode$ac_tag in
18683 :[FHL]*:*);;
18684 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
18685$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
18686 { (exit 1); exit 1; }; };;
18687 :[FH]-) ac_tag=-:-;;
18688 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18689 esac
18690 ac_save_IFS=$IFS
18691 IFS=:
18692 set x $ac_tag
18693 IFS=$ac_save_IFS
18694 shift
18695 ac_file=$1
18696 shift
d9898ee8 18697
8d138742
CE
18698 case $ac_mode in
18699 :L) ac_source=$1;;
18700 :[FH])
18701 ac_file_inputs=
18702 for ac_f
18703 do
18704 case $ac_f in
18705 -) ac_f="$tmp/stdin";;
18706 *) # Look for the file first in the build tree, then in the source tree
18707 # (if the path is not absolute). The absolute path cannot be DOS-style,
18708 # because $ac_f cannot contain `:'.
18709 test -f "$ac_f" ||
18710 case $ac_f in
18711 [\\/$]*) false;;
18712 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18713 esac ||
18714 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
18715$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
18716 { (exit 1); exit 1; }; };;
18717 esac
18718 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18719 ac_file_inputs="$ac_file_inputs '$ac_f'"
18720 done
d9898ee8 18721
8d138742
CE
18722 # Let's still pretend it is `configure' which instantiates (i.e., don't
18723 # use $as_me), people would be surprised to read:
18724 # /* config.h. Generated by config.status. */
18725 configure_input='Generated from '`
18726 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18727 `' by configure.'
18728 if test x"$ac_file" != x-; then
18729 configure_input="$ac_file. $configure_input"
18730 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
18731$as_echo "$as_me: creating $ac_file" >&6;}
18732 fi
18733 # Neutralize special characters interpreted by sed in replacement strings.
18734 case $configure_input in #(
18735 *\&* | *\|* | *\\* )
18736 ac_sed_conf_input=`$as_echo "$configure_input" |
18737 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18738 *) ac_sed_conf_input=$configure_input;;
18739 esac
d9898ee8 18740
8d138742
CE
18741 case $ac_tag in
18742 *:-:* | *:-) cat >"$tmp/stdin" \
18743 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
18744$as_echo "$as_me: error: could not create $ac_file" >&2;}
18745 { (exit 1); exit 1; }; } ;;
18746 esac
18747 ;;
18748 esac
18749
18750 ac_dir=`$as_dirname -- "$ac_file" ||
18751$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18752 X"$ac_file" : 'X\(//\)[^/]' \| \
18753 X"$ac_file" : 'X\(//\)$' \| \
18754 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18755$as_echo X"$ac_file" |
18756 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18757 s//\1/
18758 q
18759 }
18760 /^X\(\/\/\)[^/].*/{
18761 s//\1/
18762 q
18763 }
18764 /^X\(\/\/\)$/{
18765 s//\1/
18766 q
18767 }
18768 /^X\(\/\).*/{
18769 s//\1/
18770 q
18771 }
18772 s/.*/./; q'`
18773 { as_dir="$ac_dir"
18774 case $as_dir in #(
18775 -*) as_dir=./$as_dir;;
18776 esac
18777 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
18778 as_dirs=
18779 while :; do
18780 case $as_dir in #(
18781 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18782 *) as_qdir=$as_dir;;
18783 esac
18784 as_dirs="'$as_qdir' $as_dirs"
18785 as_dir=`$as_dirname -- "$as_dir" ||
18786$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18787 X"$as_dir" : 'X\(//\)[^/]' \| \
18788 X"$as_dir" : 'X\(//\)$' \| \
18789 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18790$as_echo X"$as_dir" |
18791 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18792 s//\1/
18793 q
18794 }
18795 /^X\(\/\/\)[^/].*/{
18796 s//\1/
18797 q
18798 }
18799 /^X\(\/\/\)$/{
18800 s//\1/
18801 q
18802 }
18803 /^X\(\/\).*/{
18804 s//\1/
18805 q
18806 }
18807 s/.*/./; q'`
18808 test -d "$as_dir" && break
18809 done
18810 test -z "$as_dirs" || eval "mkdir $as_dirs"
18811 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
18812$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
18813 { (exit 1); exit 1; }; }; }
18814 ac_builddir=.
18815
18816case "$ac_dir" in
18817.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18818*)
18819 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18820 # A ".." for each directory in $ac_dir_suffix.
18821 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18822 case $ac_top_builddir_sub in
18823 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18824 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18825 esac ;;
dd184caf 18826esac
8d138742
CE
18827ac_abs_top_builddir=$ac_pwd
18828ac_abs_builddir=$ac_pwd$ac_dir_suffix
18829# for backward compatibility:
18830ac_top_builddir=$ac_top_build_prefix
18831
18832case $srcdir in
18833 .) # We are building in place.
18834 ac_srcdir=.
18835 ac_top_srcdir=$ac_top_builddir_sub
18836 ac_abs_top_srcdir=$ac_pwd ;;
18837 [\\/]* | ?:[\\/]* ) # Absolute name.
18838 ac_srcdir=$srcdir$ac_dir_suffix;
18839 ac_top_srcdir=$srcdir
18840 ac_abs_top_srcdir=$srcdir ;;
18841 *) # Relative name.
18842 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18843 ac_top_srcdir=$ac_top_build_prefix$srcdir
18844 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18845esac
18846ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
d9898ee8 18847
dd184caf 18848
8d138742
CE
18849 case $ac_mode in
18850 :F)
18851 #
18852 # CONFIG_FILE
18853 #
d9898ee8 18854
8d138742
CE
18855 case $INSTALL in
18856 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18857 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18858 esac
18859 ac_MKDIR_P=$MKDIR_P
18860 case $MKDIR_P in
18861 [\\/$]* | ?:[\\/]* ) ;;
18862 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18863 esac
d9898ee8 18864_ACEOF
d9898ee8 18865
8d138742
CE
18866cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18867# If the template does not know about datarootdir, expand it.
18868# FIXME: This hack should be removed a few years after 2.60.
18869ac_datarootdir_hack=; ac_datarootdir_seen=
d9898ee8 18870
8d138742
CE
18871ac_sed_dataroot='
18872/datarootdir/ {
18873 p
18874 q
d9898ee8 18875}
8d138742
CE
18876/@datadir@/p
18877/@docdir@/p
18878/@infodir@/p
18879/@localedir@/p
18880/@mandir@/p
18881'
18882case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18883*datarootdir*) ac_datarootdir_seen=yes;;
18884*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18885 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18886$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
d9898ee8 18887_ACEOF
8d138742
CE
18888cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18889 ac_datarootdir_hack='
18890 s&@datadir@&$datadir&g
18891 s&@docdir@&$docdir&g
18892 s&@infodir@&$infodir&g
18893 s&@localedir@&$localedir&g
18894 s&@mandir@&$mandir&g
18895 s&\\\${datarootdir}&$datarootdir&g' ;;
dd184caf 18896esac
8d138742 18897_ACEOF
d9898ee8 18898
8d138742
CE
18899# Neutralize VPATH when `$srcdir' = `.'.
18900# Shell code in configure.ac might set extrasub.
18901# FIXME: do we really want to maintain this feature?
18902cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18903ac_sed_extra="$ac_vpsub
18904$extrasub
18905_ACEOF
18906cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18907:t
18908/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18909s|@configure_input@|$ac_sed_conf_input|;t t
18910s&@top_builddir@&$ac_top_builddir_sub&;t t
18911s&@top_build_prefix@&$ac_top_build_prefix&;t t
18912s&@srcdir@&$ac_srcdir&;t t
18913s&@abs_srcdir@&$ac_abs_srcdir&;t t
18914s&@top_srcdir@&$ac_top_srcdir&;t t
18915s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18916s&@builddir@&$ac_builddir&;t t
18917s&@abs_builddir@&$ac_abs_builddir&;t t
18918s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18919s&@INSTALL@&$ac_INSTALL&;t t
18920s&@MKDIR_P@&$ac_MKDIR_P&;t t
18921$ac_datarootdir_hack
18922"
18923eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
18924 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
18925$as_echo "$as_me: error: could not create $ac_file" >&2;}
18926 { (exit 1); exit 1; }; }
dd184caf 18927
8d138742
CE
18928test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18929 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
18930 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
18931 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18932which seems to be undefined. Please make sure it is defined." >&5
18933$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18934which seems to be undefined. Please make sure it is defined." >&2;}
d9898ee8 18935
8d138742
CE
18936 rm -f "$tmp/stdin"
18937 case $ac_file in
18938 -) cat "$tmp/out" && rm -f "$tmp/out";;
18939 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
18940 esac \
18941 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
18942$as_echo "$as_me: error: could not create $ac_file" >&2;}
18943 { (exit 1); exit 1; }; }
18944 ;;
18945 :H)
18946 #
18947 # CONFIG_HEADER
18948 #
18949 if test x"$ac_file" != x-; then
18950 {
18951 $as_echo "/* $configure_input */" \
18952 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
18953 } >"$tmp/config.h" \
18954 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
18955$as_echo "$as_me: error: could not create $ac_file" >&2;}
18956 { (exit 1); exit 1; }; }
18957 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
18958 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18959$as_echo "$as_me: $ac_file is unchanged" >&6;}
18960 else
18961 rm -f "$ac_file"
18962 mv "$tmp/config.h" "$ac_file" \
18963 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
18964$as_echo "$as_me: error: could not create $ac_file" >&2;}
18965 { (exit 1); exit 1; }; }
18966 fi
18967 else
18968 $as_echo "/* $configure_input */" \
18969 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
18970 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
18971$as_echo "$as_me: error: could not create -" >&2;}
18972 { (exit 1); exit 1; }; }
18973 fi
18974# Compute "$ac_file"'s index in $config_headers.
18975_am_arg="$ac_file"
18976_am_stamp_count=1
18977for _am_header in $config_headers :; do
18978 case $_am_header in
18979 $_am_arg | $_am_arg:* )
18980 break ;;
18981 * )
18982 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18983 esac
18984done
18985echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18986$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18987 X"$_am_arg" : 'X\(//\)[^/]' \| \
18988 X"$_am_arg" : 'X\(//\)$' \| \
18989 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18990$as_echo X"$_am_arg" |
18991 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18992 s//\1/
18993 q
18994 }
18995 /^X\(\/\/\)[^/].*/{
18996 s//\1/
18997 q
18998 }
18999 /^X\(\/\/\)$/{
19000 s//\1/
19001 q
19002 }
19003 /^X\(\/\).*/{
19004 s//\1/
19005 q
19006 }
19007 s/.*/./; q'`/stamp-h$_am_stamp_count
19008 ;;
d9898ee8 19009
8d138742
CE
19010 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
19011$as_echo "$as_me: executing $ac_file commands" >&6;}
19012 ;;
19013 esac
d9898ee8 19014
d9898ee8 19015
8d138742
CE
19016 case $ac_file$ac_mode in
19017 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19018 # Autoconf 2.62 quotes --file arguments for eval, but not when files
19019 # are listed without --file. Let's play safe and only enable the eval
19020 # if we detect the quoting.
19021 case $CONFIG_FILES in
19022 *\'*) eval set x "$CONFIG_FILES" ;;
19023 *) set x $CONFIG_FILES ;;
19024 esac
19025 shift
19026 for mf
19027 do
19028 # Strip MF so we end up with the name of the file.
19029 mf=`echo "$mf" | sed -e 's/:.*$//'`
19030 # Check whether this is an Automake generated Makefile or not.
19031 # We used to match only the files named `Makefile.in', but
19032 # some people rename them; so instead we look at the file content.
19033 # Grep'ing the first line is not enough: some people post-process
19034 # each Makefile.in and add a new line on top of each file to say so.
19035 # Grep'ing the whole file is not good either: AIX grep has a line
19036 # limit of 2048, but all sed's we know have understand at least 4000.
19037 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19038 dirpart=`$as_dirname -- "$mf" ||
19039$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19040 X"$mf" : 'X\(//\)[^/]' \| \
19041 X"$mf" : 'X\(//\)$' \| \
19042 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19043$as_echo X"$mf" |
19044 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19045 s//\1/
19046 q
19047 }
19048 /^X\(\/\/\)[^/].*/{
19049 s//\1/
19050 q
19051 }
19052 /^X\(\/\/\)$/{
19053 s//\1/
19054 q
19055 }
19056 /^X\(\/\).*/{
19057 s//\1/
19058 q
19059 }
19060 s/.*/./; q'`
19061 else
19062 continue
19063 fi
19064 # Extract the definition of DEPDIR, am__include, and am__quote
19065 # from the Makefile without running `make'.
19066 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19067 test -z "$DEPDIR" && continue
19068 am__include=`sed -n 's/^am__include = //p' < "$mf"`
19069 test -z "am__include" && continue
19070 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19071 # When using ansi2knr, U may be empty or an underscore; expand it
19072 U=`sed -n 's/^U = //p' < "$mf"`
19073 # Find all dependency output files, they are included files with
19074 # $(DEPDIR) in their names. We invoke sed twice because it is the
19075 # simplest approach to changing $(DEPDIR) to its actual value in the
19076 # expansion.
19077 for file in `sed -n "
19078 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19079 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
19080 # Make sure the directory exists.
19081 test -f "$dirpart/$file" && continue
19082 fdir=`$as_dirname -- "$file" ||
19083$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19084 X"$file" : 'X\(//\)[^/]' \| \
19085 X"$file" : 'X\(//\)$' \| \
19086 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19087$as_echo X"$file" |
19088 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19089 s//\1/
19090 q
19091 }
19092 /^X\(\/\/\)[^/].*/{
19093 s//\1/
19094 q
19095 }
19096 /^X\(\/\/\)$/{
19097 s//\1/
19098 q
19099 }
19100 /^X\(\/\).*/{
19101 s//\1/
19102 q
19103 }
19104 s/.*/./; q'`
19105 { as_dir=$dirpart/$fdir
19106 case $as_dir in #(
19107 -*) as_dir=./$as_dir;;
19108 esac
19109 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
19110 as_dirs=
19111 while :; do
19112 case $as_dir in #(
19113 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19114 *) as_qdir=$as_dir;;
19115 esac
19116 as_dirs="'$as_qdir' $as_dirs"
19117 as_dir=`$as_dirname -- "$as_dir" ||
19118$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19119 X"$as_dir" : 'X\(//\)[^/]' \| \
19120 X"$as_dir" : 'X\(//\)$' \| \
19121 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19122$as_echo X"$as_dir" |
19123 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19124 s//\1/
19125 q
19126 }
19127 /^X\(\/\/\)[^/].*/{
19128 s//\1/
19129 q
19130 }
19131 /^X\(\/\/\)$/{
19132 s//\1/
19133 q
19134 }
19135 /^X\(\/\).*/{
19136 s//\1/
19137 q
19138 }
19139 s/.*/./; q'`
19140 test -d "$as_dir" && break
19141 done
19142 test -z "$as_dirs" || eval "mkdir $as_dirs"
19143 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
19144$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
19145 { (exit 1); exit 1; }; }; }
19146 # echo "creating $dirpart/$file"
19147 echo '# dummy' > "$dirpart/$file"
19148 done
19149 done
19150}
19151 ;;
19152 "libtool":C)
19153
19154 # See if we are running on zsh, and set the options which allow our
19155 # commands through without removal of \ escapes.
19156 if test -n "${ZSH_VERSION+set}" ; then
19157 setopt NO_GLOB_SUBST
19158 fi
d9898ee8 19159
8d138742
CE
19160 cfgfile="${ofile}T"
19161 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19162 $RM "$cfgfile"
d9898ee8 19163
8d138742
CE
19164 cat <<_LT_EOF >> "$cfgfile"
19165#! $SHELL
d9898ee8 19166
8d138742
CE
19167# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19168# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19169# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19170# NOTE: Changes made to this file will be lost: look at ltmain.sh.
19171#
19172# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19173# 2006, 2007, 2008 Free Software Foundation, Inc.
19174# Written by Gordon Matzigkeit, 1996
19175#
19176# This file is part of GNU Libtool.
19177#
19178# GNU Libtool is free software; you can redistribute it and/or
19179# modify it under the terms of the GNU General Public License as
19180# published by the Free Software Foundation; either version 2 of
19181# the License, or (at your option) any later version.
19182#
19183# As a special exception to the GNU General Public License,
19184# if you distribute this file as part of a program or library that
19185# is built using GNU Libtool, you may include this file under the
19186# same distribution terms that you use for the rest of that program.
19187#
19188# GNU Libtool is distributed in the hope that it will be useful,
19189# but WITHOUT ANY WARRANTY; without even the implied warranty of
19190# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19191# GNU General Public License for more details.
19192#
19193# You should have received a copy of the GNU General Public License
19194# along with GNU Libtool; see the file COPYING. If not, a copy
19195# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19196# obtained by writing to the Free Software Foundation, Inc.,
19197# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
dd184caf 19198
d9898ee8 19199
8d138742
CE
19200# The names of the tagged configurations supported by this script.
19201available_tags="CXX "
d9898ee8 19202
8d138742 19203# ### BEGIN LIBTOOL CONFIG
d9898ee8 19204
8d138742
CE
19205# Which release of libtool.m4 was used?
19206macro_version=$macro_version
19207macro_revision=$macro_revision
d9898ee8 19208
8d138742
CE
19209# Whether or not to build shared libraries.
19210build_libtool_libs=$enable_shared
d9898ee8 19211
8d138742
CE
19212# Whether or not to build static libraries.
19213build_old_libs=$enable_static
d9898ee8 19214
8d138742
CE
19215# What type of objects to build.
19216pic_mode=$pic_mode
d9898ee8 19217
8d138742
CE
19218# Whether or not to optimize for fast installation.
19219fast_install=$enable_fast_install
d9898ee8 19220
8d138742
CE
19221# The host system.
19222host_alias=$host_alias
19223host=$host
19224host_os=$host_os
d9898ee8 19225
8d138742
CE
19226# The build system.
19227build_alias=$build_alias
19228build=$build
19229build_os=$build_os
d9898ee8 19230
8d138742
CE
19231# A sed program that does not truncate output.
19232SED=$lt_SED
d9898ee8 19233
8d138742
CE
19234# Sed that helps us avoid accidentally triggering echo(1) options like -n.
19235Xsed="\$SED -e 1s/^X//"
d9898ee8 19236
8d138742
CE
19237# A grep program that handles long lines.
19238GREP=$lt_GREP
dd184caf 19239
8d138742
CE
19240# An ERE matcher.
19241EGREP=$lt_EGREP
d9898ee8 19242
8d138742
CE
19243# A literal string matcher.
19244FGREP=$lt_FGREP
d9898ee8 19245
8d138742
CE
19246# A BSD- or MS-compatible name lister.
19247NM=$lt_NM
dd184caf 19248
8d138742
CE
19249# Whether we need soft or hard links.
19250LN_S=$lt_LN_S
d9898ee8 19251
8d138742
CE
19252# What is the maximum length of a command?
19253max_cmd_len=$max_cmd_len
d9898ee8 19254
8d138742
CE
19255# Object file suffix (normally "o").
19256objext=$ac_objext
d9898ee8 19257
8d138742
CE
19258# Executable file suffix (normally "").
19259exeext=$exeext
d9898ee8 19260
8d138742
CE
19261# whether the shell understands "unset".
19262lt_unset=$lt_unset
d9898ee8 19263
8d138742
CE
19264# turn spaces into newlines.
19265SP2NL=$lt_lt_SP2NL
d9898ee8 19266
8d138742
CE
19267# turn newlines into spaces.
19268NL2SP=$lt_lt_NL2SP
d9898ee8 19269
8d138742
CE
19270# How to create reloadable object files.
19271reload_flag=$lt_reload_flag
19272reload_cmds=$lt_reload_cmds
d9898ee8 19273
8d138742
CE
19274# An object symbol dumper.
19275OBJDUMP=$lt_OBJDUMP
d9898ee8 19276
8d138742
CE
19277# Method to check whether dependent libraries are shared objects.
19278deplibs_check_method=$lt_deplibs_check_method
d9898ee8 19279
8d138742
CE
19280# Command to use when deplibs_check_method == "file_magic".
19281file_magic_cmd=$lt_file_magic_cmd
dd184caf 19282
8d138742
CE
19283# The archiver.
19284AR=$lt_AR
19285AR_FLAGS=$lt_AR_FLAGS
d9898ee8 19286
8d138742
CE
19287# A symbol stripping program.
19288STRIP=$lt_STRIP
d9898ee8 19289
8d138742
CE
19290# Commands used to install an old-style archive.
19291RANLIB=$lt_RANLIB
19292old_postinstall_cmds=$lt_old_postinstall_cmds
19293old_postuninstall_cmds=$lt_old_postuninstall_cmds
d9898ee8 19294
8d138742
CE
19295# A C compiler.
19296LTCC=$lt_CC
d9898ee8 19297
8d138742
CE
19298# LTCC compiler flags.
19299LTCFLAGS=$lt_CFLAGS
dd184caf 19300
8d138742
CE
19301# Take the output of nm and produce a listing of raw symbols and C names.
19302global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
d9898ee8 19303
8d138742
CE
19304# Transform the output of nm in a proper C declaration.
19305global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
d9898ee8 19306
8d138742
CE
19307# Transform the output of nm in a C name address pair.
19308global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
d9898ee8 19309
8d138742
CE
19310# Transform the output of nm in a C name address pair when lib prefix is needed.
19311global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
d9898ee8 19312
8d138742
CE
19313# The name of the directory that contains temporary libtool files.
19314objdir=$objdir
d9898ee8 19315
8d138742
CE
19316# Shell to use when invoking shell scripts.
19317SHELL=$lt_SHELL
d9898ee8 19318
8d138742
CE
19319# An echo program that does not interpret backslashes.
19320ECHO=$lt_ECHO
d9898ee8 19321
8d138742
CE
19322# Used to examine libraries when file_magic_cmd begins with "file".
19323MAGIC_CMD=$MAGIC_CMD
d9898ee8 19324
8d138742
CE
19325# Must we lock files when doing compilation?
19326need_locks=$lt_need_locks
d9898ee8 19327
8d138742
CE
19328# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19329DSYMUTIL=$lt_DSYMUTIL
dd184caf 19330
8d138742
CE
19331# Tool to change global to local symbols on Mac OS X.
19332NMEDIT=$lt_NMEDIT
d9898ee8 19333
8d138742
CE
19334# Tool to manipulate fat objects and archives on Mac OS X.
19335LIPO=$lt_LIPO
d9898ee8 19336
8d138742
CE
19337# ldd/readelf like tool for Mach-O binaries on Mac OS X.
19338OTOOL=$lt_OTOOL
d9898ee8 19339
8d138742
CE
19340# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19341OTOOL64=$lt_OTOOL64
d9898ee8 19342
8d138742
CE
19343# Old archive suffix (normally "a").
19344libext=$libext
dd184caf 19345
8d138742
CE
19346# Shared library suffix (normally ".so").
19347shrext_cmds=$lt_shrext_cmds
d9898ee8 19348
8d138742
CE
19349# The commands to extract the exported symbol list from a shared archive.
19350extract_expsyms_cmds=$lt_extract_expsyms_cmds
d9898ee8 19351
8d138742
CE
19352# Variables whose values should be saved in libtool wrapper scripts and
19353# restored at link time.
19354variables_saved_for_relink=$lt_variables_saved_for_relink
dd184caf 19355
8d138742
CE
19356# Do we need the "lib" prefix for modules?
19357need_lib_prefix=$need_lib_prefix
19358
19359# Do we need a version for libraries?
19360need_version=$need_version
19361
19362# Library versioning type.
19363version_type=$version_type
d9898ee8 19364
8d138742
CE
19365# Shared library runtime path variable.
19366runpath_var=$runpath_var
d9898ee8 19367
8d138742
CE
19368# Shared library path variable.
19369shlibpath_var=$shlibpath_var
d9898ee8 19370
8d138742
CE
19371# Is shlibpath searched before the hard-coded library search path?
19372shlibpath_overrides_runpath=$shlibpath_overrides_runpath
d9898ee8 19373
8d138742
CE
19374# Format of library name prefix.
19375libname_spec=$lt_libname_spec
d9898ee8 19376
8d138742
CE
19377# List of archive names. First name is the real one, the rest are links.
19378# The last name is the one that the linker finds with -lNAME
19379library_names_spec=$lt_library_names_spec
d9898ee8 19380
8d138742
CE
19381# The coded name of the library, if different from the real name.
19382soname_spec=$lt_soname_spec
d9898ee8 19383
8d138742
CE
19384# Command to use after installation of a shared archive.
19385postinstall_cmds=$lt_postinstall_cmds
d9898ee8 19386
8d138742
CE
19387# Command to use after uninstallation of a shared archive.
19388postuninstall_cmds=$lt_postuninstall_cmds
d9898ee8 19389
8d138742
CE
19390# Commands used to finish a libtool library installation in a directory.
19391finish_cmds=$lt_finish_cmds
d9898ee8 19392
8d138742
CE
19393# As "finish_cmds", except a single script fragment to be evaled but
19394# not shown.
19395finish_eval=$lt_finish_eval
dd184caf 19396
8d138742
CE
19397# Whether we should hardcode library paths into libraries.
19398hardcode_into_libs=$hardcode_into_libs
d9898ee8 19399
8d138742
CE
19400# Compile-time system search path for libraries.
19401sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
d9898ee8 19402
8d138742
CE
19403# Run-time system search path for libraries.
19404sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
d9898ee8 19405
8d138742
CE
19406# Whether dlopen is supported.
19407dlopen_support=$enable_dlopen
d9898ee8 19408
8d138742
CE
19409# Whether dlopen of programs is supported.
19410dlopen_self=$enable_dlopen_self
d9898ee8 19411
8d138742
CE
19412# Whether dlopen of statically linked programs is supported.
19413dlopen_self_static=$enable_dlopen_self_static
d9898ee8 19414
8d138742
CE
19415# Commands to strip libraries.
19416old_striplib=$lt_old_striplib
19417striplib=$lt_striplib
d9898ee8 19418
dd184caf 19419
8d138742
CE
19420# The linker used to build libraries.
19421LD=$lt_LD
dd184caf 19422
8d138742
CE
19423# Commands used to build an old-style archive.
19424old_archive_cmds=$lt_old_archive_cmds
d9898ee8 19425
8d138742
CE
19426# A language specific compiler.
19427CC=$lt_compiler
dd184caf 19428
8d138742
CE
19429# Is the compiler the GNU compiler?
19430with_gcc=$GCC
dd184caf 19431
8d138742
CE
19432# Compiler flag to turn off builtin functions.
19433no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
dd184caf 19434
8d138742
CE
19435# How to pass a linker flag through the compiler.
19436wl=$lt_lt_prog_compiler_wl
dd184caf 19437
8d138742
CE
19438# Additional compiler flags for building library objects.
19439pic_flag=$lt_lt_prog_compiler_pic
dd184caf 19440
8d138742
CE
19441# Compiler flag to prevent dynamic linking.
19442link_static_flag=$lt_lt_prog_compiler_static
dd184caf 19443
8d138742
CE
19444# Does compiler simultaneously support -c and -o options?
19445compiler_c_o=$lt_lt_cv_prog_compiler_c_o
dd184caf 19446
8d138742
CE
19447# Whether or not to add -lc for building shared libraries.
19448build_libtool_need_lc=$archive_cmds_need_lc
dd184caf 19449
8d138742
CE
19450# Whether or not to disallow shared libs when runtime libs are static.
19451allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
dd184caf 19452
8d138742
CE
19453# Compiler flag to allow reflexive dlopens.
19454export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
dd184caf 19455
8d138742
CE
19456# Compiler flag to generate shared objects directly from archives.
19457whole_archive_flag_spec=$lt_whole_archive_flag_spec
d9898ee8 19458
8d138742
CE
19459# Whether the compiler copes with passing no objects directly.
19460compiler_needs_object=$lt_compiler_needs_object
d9898ee8 19461
8d138742
CE
19462# Create an old-style archive from a shared archive.
19463old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19464
19465# Create a temporary old-style archive to link instead of a shared archive.
19466old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
d9898ee8 19467
8d138742
CE
19468# Commands used to build a shared archive.
19469archive_cmds=$lt_archive_cmds
19470archive_expsym_cmds=$lt_archive_expsym_cmds
d9898ee8 19471
8d138742
CE
19472# Commands used to build a loadable module if different from building
19473# a shared archive.
19474module_cmds=$lt_module_cmds
19475module_expsym_cmds=$lt_module_expsym_cmds
dd184caf 19476
8d138742
CE
19477# Whether we are building with GNU ld or not.
19478with_gnu_ld=$lt_with_gnu_ld
d9898ee8 19479
8d138742
CE
19480# Flag that allows shared libraries with undefined symbols to be built.
19481allow_undefined_flag=$lt_allow_undefined_flag
d9898ee8 19482
8d138742
CE
19483# Flag that enforces no undefined symbols.
19484no_undefined_flag=$lt_no_undefined_flag
d9898ee8 19485
8d138742
CE
19486# Flag to hardcode \$libdir into a binary during linking.
19487# This must work even if \$libdir does not exist
19488hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
d9898ee8 19489
8d138742
CE
19490# If ld is used when linking, flag to hardcode \$libdir into a binary
19491# during linking. This must work even if \$libdir does not exist.
19492hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
d9898ee8 19493
8d138742
CE
19494# Whether we need a single "-rpath" flag with a separated argument.
19495hardcode_libdir_separator=$lt_hardcode_libdir_separator
d9898ee8 19496
8d138742
CE
19497# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19498# DIR into the resulting binary.
19499hardcode_direct=$hardcode_direct
d9898ee8 19500
8d138742
CE
19501# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19502# DIR into the resulting binary and the resulting library dependency is
19503# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19504# library is relocated.
19505hardcode_direct_absolute=$hardcode_direct_absolute
d9898ee8 19506
8d138742
CE
19507# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19508# into the resulting binary.
19509hardcode_minus_L=$hardcode_minus_L
d9898ee8 19510
8d138742
CE
19511# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19512# into the resulting binary.
19513hardcode_shlibpath_var=$hardcode_shlibpath_var
d9898ee8 19514
8d138742
CE
19515# Set to "yes" if building a shared library automatically hardcodes DIR
19516# into the library and all subsequent libraries and executables linked
19517# against it.
19518hardcode_automatic=$hardcode_automatic
d9898ee8 19519
8d138742
CE
19520# Set to yes if linker adds runtime paths of dependent libraries
19521# to runtime path list.
19522inherit_rpath=$inherit_rpath
dd184caf 19523
8d138742
CE
19524# Whether libtool must link a program against all its dependency libraries.
19525link_all_deplibs=$link_all_deplibs
d9898ee8 19526
8d138742
CE
19527# Fix the shell variable \$srcfile for the compiler.
19528fix_srcfile_path=$lt_fix_srcfile_path
d9898ee8 19529
8d138742
CE
19530# Set to "yes" if exported symbols are required.
19531always_export_symbols=$always_export_symbols
d9898ee8 19532
8d138742
CE
19533# The commands to list exported symbols.
19534export_symbols_cmds=$lt_export_symbols_cmds
d9898ee8 19535
8d138742
CE
19536# Symbols that should not be listed in the preloaded symbols.
19537exclude_expsyms=$lt_exclude_expsyms
d9898ee8 19538
8d138742
CE
19539# Symbols that must always be exported.
19540include_expsyms=$lt_include_expsyms
d9898ee8 19541
8d138742
CE
19542# Commands necessary for linking programs (against libraries) with templates.
19543prelink_cmds=$lt_prelink_cmds
d9898ee8 19544
8d138742
CE
19545# Specify filename containing input files.
19546file_list_spec=$lt_file_list_spec
d9898ee8 19547
8d138742
CE
19548# How to hardcode a shared library path into an executable.
19549hardcode_action=$hardcode_action
d9898ee8 19550
8d138742
CE
19551# The directories searched by this compiler when creating a shared library.
19552compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
d9898ee8 19553
8d138742
CE
19554# Dependencies to place before and after the objects being linked to
19555# create a shared library.
19556predep_objects=$lt_predep_objects
19557postdep_objects=$lt_postdep_objects
19558predeps=$lt_predeps
19559postdeps=$lt_postdeps
d9898ee8 19560
8d138742
CE
19561# The library search path used internally by the compiler when linking
19562# a shared library.
19563compiler_lib_search_path=$lt_compiler_lib_search_path
dd184caf 19564
8d138742 19565# ### END LIBTOOL CONFIG
d9898ee8 19566
8d138742
CE
19567_LT_EOF
19568
19569 case $host_os in
19570 aix3*)
19571 cat <<\_LT_EOF >> "$cfgfile"
19572# AIX sometimes has problems with the GCC collect2 program. For some
19573# reason, if we set the COLLECT_NAMES environment variable, the problems
19574# vanish in a puff of smoke.
19575if test "X${COLLECT_NAMES+set}" != Xset; then
19576 COLLECT_NAMES=
19577 export COLLECT_NAMES
19578fi
19579_LT_EOF
d9898ee8 19580 ;;
d9898ee8 19581 esac
19582
d9898ee8 19583
8d138742 19584ltmain="$ac_aux_dir/ltmain.sh"
d9898ee8 19585
d9898ee8 19586
8d138742
CE
19587 # We use sed instead of cat because bash on DJGPP gets confused if
19588 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19589 # text mode, it properly converts lines to CR/LF. This bash problem
19590 # is reportedly fixed, but why not run on old versions too?
19591 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19592 || (rm -f "$cfgfile"; exit 1)
19593
19594 case $xsi_shell in
19595 yes)
19596 cat << \_LT_EOF >> "$cfgfile"
19597
19598# func_dirname file append nondir_replacement
19599# Compute the dirname of FILE. If nonempty, add APPEND to the result,
19600# otherwise set result to NONDIR_REPLACEMENT.
19601func_dirname ()
19602{
19603 case ${1} in
19604 */*) func_dirname_result="${1%/*}${2}" ;;
19605 * ) func_dirname_result="${3}" ;;
d9898ee8 19606 esac
8d138742 19607}
d9898ee8 19608
8d138742
CE
19609# func_basename file
19610func_basename ()
19611{
19612 func_basename_result="${1##*/}"
19613}
d9898ee8 19614
8d138742
CE
19615# func_dirname_and_basename file append nondir_replacement
19616# perform func_basename and func_dirname in a single function
19617# call:
19618# dirname: Compute the dirname of FILE. If nonempty,
19619# add APPEND to the result, otherwise set result
19620# to NONDIR_REPLACEMENT.
19621# value returned in "$func_dirname_result"
19622# basename: Compute filename of FILE.
19623# value retuned in "$func_basename_result"
19624# Implementation must be kept synchronized with func_dirname
19625# and func_basename. For efficiency, we do not delegate to
19626# those functions but instead duplicate the functionality here.
19627func_dirname_and_basename ()
19628{
19629 case ${1} in
19630 */*) func_dirname_result="${1%/*}${2}" ;;
19631 * ) func_dirname_result="${3}" ;;
19632 esac
19633 func_basename_result="${1##*/}"
19634}
d9898ee8 19635
8d138742
CE
19636# func_stripname prefix suffix name
19637# strip PREFIX and SUFFIX off of NAME.
19638# PREFIX and SUFFIX must not contain globbing or regex special
19639# characters, hashes, percent signs, but SUFFIX may contain a leading
19640# dot (in which case that matches only a dot).
19641func_stripname ()
19642{
19643 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19644 # positional parameters, so assign one to ordinary parameter first.
19645 func_stripname_result=${3}
19646 func_stripname_result=${func_stripname_result#"${1}"}
19647 func_stripname_result=${func_stripname_result%"${2}"}
19648}
d9898ee8 19649
8d138742
CE
19650# func_opt_split
19651func_opt_split ()
dd184caf 19652{
8d138742
CE
19653 func_opt_split_opt=${1%%=*}
19654 func_opt_split_arg=${1#*=}
19655}
d9898ee8 19656
8d138742
CE
19657# func_lo2o object
19658func_lo2o ()
19659{
19660 case ${1} in
19661 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
19662 *) func_lo2o_result=${1} ;;
19663 esac
19664}
d9898ee8 19665
8d138742
CE
19666# func_xform libobj-or-source
19667func_xform ()
19668{
19669 func_xform_result=${1%.*}.lo
19670}
d9898ee8 19671
8d138742
CE
19672# func_arith arithmetic-term...
19673func_arith ()
19674{
19675 func_arith_result=$(( $* ))
19676}
dd184caf 19677
8d138742
CE
19678# func_len string
19679# STRING may not start with a hyphen.
19680func_len ()
19681{
19682 func_len_result=${#1}
19683}
dd184caf 19684
8d138742
CE
19685_LT_EOF
19686 ;;
19687 *) # Bourne compatible functions.
19688 cat << \_LT_EOF >> "$cfgfile"
19689
19690# func_dirname file append nondir_replacement
19691# Compute the dirname of FILE. If nonempty, add APPEND to the result,
19692# otherwise set result to NONDIR_REPLACEMENT.
19693func_dirname ()
19694{
19695 # Extract subdirectory from the argument.
19696 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
19697 if test "X$func_dirname_result" = "X${1}"; then
19698 func_dirname_result="${3}"
19699 else
19700 func_dirname_result="$func_dirname_result${2}"
19701 fi
19702}
19703
19704# func_basename file
19705func_basename ()
19706{
19707 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
19708}
19709
19710
19711# func_stripname prefix suffix name
19712# strip PREFIX and SUFFIX off of NAME.
19713# PREFIX and SUFFIX must not contain globbing or regex special
19714# characters, hashes, percent signs, but SUFFIX may contain a leading
19715# dot (in which case that matches only a dot).
19716# func_strip_suffix prefix name
19717func_stripname ()
19718{
19719 case ${2} in
19720 .*) func_stripname_result=`$ECHO "X${3}" \
19721 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
19722 *) func_stripname_result=`$ECHO "X${3}" \
19723 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
d9898ee8 19724 esac
8d138742 19725}
d9898ee8 19726
8d138742
CE
19727# sed scripts:
19728my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
19729my_sed_long_arg='1s/^-[^=]*=//'
dd184caf 19730
8d138742
CE
19731# func_opt_split
19732func_opt_split ()
19733{
19734 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
19735 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
19736}
d9898ee8 19737
8d138742
CE
19738# func_lo2o object
19739func_lo2o ()
d9898ee8 19740{
8d138742 19741 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
d9898ee8 19742}
d9898ee8 19743
8d138742
CE
19744# func_xform libobj-or-source
19745func_xform ()
d9898ee8 19746{
8d138742
CE
19747 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
19748}
19749
19750# func_arith arithmetic-term...
19751func_arith ()
d9898ee8 19752{
8d138742
CE
19753 func_arith_result=`expr "$@"`
19754}
19755
19756# func_len string
19757# STRING may not start with a hyphen.
19758func_len ()
d9898ee8 19759{
8d138742 19760 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
d9898ee8 19761}
19762
8d138742
CE
19763_LT_EOF
19764esac
d9898ee8 19765
8d138742
CE
19766case $lt_shell_append in
19767 yes)
19768 cat << \_LT_EOF >> "$cfgfile"
d9898ee8 19769
8d138742
CE
19770# func_append var value
19771# Append VALUE to the end of shell variable VAR.
19772func_append ()
19773{
19774 eval "$1+=\$2"
19775}
19776_LT_EOF
19777 ;;
19778 *)
19779 cat << \_LT_EOF >> "$cfgfile"
d9898ee8 19780
8d138742
CE
19781# func_append var value
19782# Append VALUE to the end of shell variable VAR.
19783func_append ()
19784{
19785 eval "$1=\$$1\$2"
19786}
dd184caf 19787
8d138742
CE
19788_LT_EOF
19789 ;;
19790 esac
dd184caf 19791
dd184caf 19792
8d138742
CE
19793 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19794 || (rm -f "$cfgfile"; exit 1)
dd184caf 19795
8d138742
CE
19796 mv -f "$cfgfile" "$ofile" ||
19797 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19798 chmod +x "$ofile"
dd184caf 19799
dd184caf 19800
8d138742 19801 cat <<_LT_EOF >> "$ofile"
dd184caf 19802
8d138742 19803# ### BEGIN LIBTOOL TAG CONFIG: CXX
dd184caf 19804
8d138742
CE
19805# The linker used to build libraries.
19806LD=$lt_LD_CXX
dd184caf 19807
8d138742
CE
19808# Commands used to build an old-style archive.
19809old_archive_cmds=$lt_old_archive_cmds_CXX
d9898ee8 19810
8d138742
CE
19811# A language specific compiler.
19812CC=$lt_compiler_CXX
dd184caf 19813
8d138742
CE
19814# Is the compiler the GNU compiler?
19815with_gcc=$GCC_CXX
dd184caf 19816
8d138742
CE
19817# Compiler flag to turn off builtin functions.
19818no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
dd184caf 19819
8d138742
CE
19820# How to pass a linker flag through the compiler.
19821wl=$lt_lt_prog_compiler_wl_CXX
dd184caf 19822
8d138742
CE
19823# Additional compiler flags for building library objects.
19824pic_flag=$lt_lt_prog_compiler_pic_CXX
dd184caf 19825
8d138742
CE
19826# Compiler flag to prevent dynamic linking.
19827link_static_flag=$lt_lt_prog_compiler_static_CXX
dd184caf 19828
8d138742
CE
19829# Does compiler simultaneously support -c and -o options?
19830compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
dd184caf 19831
8d138742
CE
19832# Whether or not to add -lc for building shared libraries.
19833build_libtool_need_lc=$archive_cmds_need_lc_CXX
dd184caf 19834
8d138742
CE
19835# Whether or not to disallow shared libs when runtime libs are static.
19836allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
d9898ee8 19837
8d138742
CE
19838# Compiler flag to allow reflexive dlopens.
19839export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19840
19841# Compiler flag to generate shared objects directly from archives.
19842whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19843
19844# Whether the compiler copes with passing no objects directly.
19845compiler_needs_object=$lt_compiler_needs_object_CXX
19846
19847# Create an old-style archive from a shared archive.
19848old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19849
19850# Create a temporary old-style archive to link instead of a shared archive.
19851old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19852
19853# Commands used to build a shared archive.
19854archive_cmds=$lt_archive_cmds_CXX
19855archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19856
19857# Commands used to build a loadable module if different from building
19858# a shared archive.
19859module_cmds=$lt_module_cmds_CXX
19860module_expsym_cmds=$lt_module_expsym_cmds_CXX
19861
19862# Whether we are building with GNU ld or not.
19863with_gnu_ld=$lt_with_gnu_ld_CXX
19864
19865# Flag that allows shared libraries with undefined symbols to be built.
19866allow_undefined_flag=$lt_allow_undefined_flag_CXX
19867
19868# Flag that enforces no undefined symbols.
19869no_undefined_flag=$lt_no_undefined_flag_CXX
19870
19871# Flag to hardcode \$libdir into a binary during linking.
19872# This must work even if \$libdir does not exist
19873hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19874
19875# If ld is used when linking, flag to hardcode \$libdir into a binary
19876# during linking. This must work even if \$libdir does not exist.
19877hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
19878
19879# Whether we need a single "-rpath" flag with a separated argument.
19880hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19881
19882# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19883# DIR into the resulting binary.
19884hardcode_direct=$hardcode_direct_CXX
19885
19886# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19887# DIR into the resulting binary and the resulting library dependency is
19888# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19889# library is relocated.
19890hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19891
19892# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19893# into the resulting binary.
19894hardcode_minus_L=$hardcode_minus_L_CXX
d9898ee8 19895
8d138742
CE
19896# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19897# into the resulting binary.
19898hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
d9898ee8 19899
8d138742
CE
19900# Set to "yes" if building a shared library automatically hardcodes DIR
19901# into the library and all subsequent libraries and executables linked
19902# against it.
19903hardcode_automatic=$hardcode_automatic_CXX
d9898ee8 19904
8d138742
CE
19905# Set to yes if linker adds runtime paths of dependent libraries
19906# to runtime path list.
19907inherit_rpath=$inherit_rpath_CXX
d9898ee8 19908
8d138742
CE
19909# Whether libtool must link a program against all its dependency libraries.
19910link_all_deplibs=$link_all_deplibs_CXX
d9898ee8 19911
8d138742
CE
19912# Fix the shell variable \$srcfile for the compiler.
19913fix_srcfile_path=$lt_fix_srcfile_path_CXX
d9898ee8 19914
8d138742
CE
19915# Set to "yes" if exported symbols are required.
19916always_export_symbols=$always_export_symbols_CXX
dd184caf 19917
8d138742
CE
19918# The commands to list exported symbols.
19919export_symbols_cmds=$lt_export_symbols_cmds_CXX
dd184caf 19920
8d138742
CE
19921# Symbols that should not be listed in the preloaded symbols.
19922exclude_expsyms=$lt_exclude_expsyms_CXX
dd184caf 19923
8d138742
CE
19924# Symbols that must always be exported.
19925include_expsyms=$lt_include_expsyms_CXX
dd184caf 19926
8d138742
CE
19927# Commands necessary for linking programs (against libraries) with templates.
19928prelink_cmds=$lt_prelink_cmds_CXX
d9898ee8 19929
8d138742
CE
19930# Specify filename containing input files.
19931file_list_spec=$lt_file_list_spec_CXX
d9898ee8 19932
8d138742
CE
19933# How to hardcode a shared library path into an executable.
19934hardcode_action=$hardcode_action_CXX
d9898ee8 19935
8d138742
CE
19936# The directories searched by this compiler when creating a shared library.
19937compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
d9898ee8 19938
8d138742
CE
19939# Dependencies to place before and after the objects being linked to
19940# create a shared library.
19941predep_objects=$lt_predep_objects_CXX
19942postdep_objects=$lt_postdep_objects_CXX
19943predeps=$lt_predeps_CXX
19944postdeps=$lt_postdeps_CXX
19945
19946# The library search path used internally by the compiler when linking
19947# a shared library.
19948compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19949
19950# ### END LIBTOOL TAG CONFIG: CXX
19951_LT_EOF
d9898ee8 19952
d9898ee8 19953 ;;
dd184caf 19954
d9898ee8 19955 esac
dd184caf 19956done # for ac_tag
d9898ee8 19957
d9898ee8 19958
19959{ (exit 0); exit 0; }
19960_ACEOF
19961chmod +x $CONFIG_STATUS
19962ac_clean_files=$ac_clean_files_save
19963
8d138742
CE
19964test $ac_write_fail = 0 ||
19965 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
19966$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
19967 { (exit 1); exit 1; }; }
19968
d9898ee8 19969
19970# configure is writing to config.log, and then calls config.status.
19971# config.status does its own redirection, appending to config.log.
19972# Unfortunately, on DOS this fails, as config.log is still kept open
19973# by configure, so config.status won't be able to write to it; its
19974# output is simply discarded. So we exec the FD to /dev/null,
19975# effectively closing config.log, so it can be properly (re)opened and
19976# appended to by config.status. When coming back to configure, we
19977# need to make the FD available again.
19978if test "$no_create" != yes; then
19979 ac_cs_success=:
19980 ac_config_status_args=
19981 test "$silent" = yes &&
19982 ac_config_status_args="$ac_config_status_args --quiet"
19983 exec 5>/dev/null
19984 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19985 exec 5>>config.log
19986 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19987 # would make configure fail if this is the last instruction.
19988 $ac_cs_success || { (exit 1); exit 1; }
19989fi
8d138742
CE
19990if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19991 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19992$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19993fi
d9898ee8 19994