Imported Upstream version 0.63.0
[hcoop/debian/courier-authlib.git] / gdbmobj / 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 gdbmobj 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='gdbmobj'
747PACKAGE_TARNAME='gdbmobj'
748PACKAGE_VERSION='0.10'
749PACKAGE_STRING='gdbmobj 0.10'
750PACKAGE_BUGREPORT='courier-users@lists.sourceforge.net'
751
752ac_unique_file="gdbmobj.c"
753# Factoring default headers for most tests.
754ac_includes_default="\
755#include <stdio.h>
dd184caf 756#ifdef HAVE_SYS_TYPES_H
d9898ee8 757# include <sys/types.h>
758#endif
dd184caf 759#ifdef HAVE_SYS_STAT_H
d9898ee8 760# include <sys/stat.h>
761#endif
dd184caf 762#ifdef STDC_HEADERS
d9898ee8 763# include <stdlib.h>
764# include <stddef.h>
765#else
dd184caf 766# ifdef HAVE_STDLIB_H
d9898ee8 767# include <stdlib.h>
768# endif
769#endif
dd184caf 770#ifdef HAVE_STRING_H
771# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
d9898ee8 772# include <memory.h>
773# endif
774# include <string.h>
775#endif
dd184caf 776#ifdef HAVE_STRINGS_H
d9898ee8 777# include <strings.h>
778#endif
dd184caf 779#ifdef HAVE_INTTYPES_H
d9898ee8 780# include <inttypes.h>
d9898ee8 781#endif
dd184caf 782#ifdef HAVE_STDINT_H
783# include <stdint.h>
784#endif
785#ifdef HAVE_UNISTD_H
d9898ee8 786# include <unistd.h>
787#endif"
788
8d138742
CE
789ac_subst_vars='am__EXEEXT_FALSE
790am__EXEEXT_TRUE
791LTLIBOBJS
792LIBOBJS
793FOUND_GDBM_FALSE
794FOUND_GDBM_TRUE
795LIBGDBM
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 gdbmobj 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/gdbmobj]
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 gdbmobj 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
1655gdbmobj 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 gdbmobj $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='gdbmobj'
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
8d138742 4457 fi
d9898ee8 4458
8d138742
CE
4459
4460
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 4466 cat >conftest.$ac_ext <<_ACEOF
d9898ee8 4467/* confdefs.h. */
4468_ACEOF
4469cat confdefs.h >>conftest.$ac_ext
4470cat >>conftest.$ac_ext <<_ACEOF
4471/* end confdefs.h. */
4472
8d138742
CE
4473# define __EXTENSIONS__ 1
4474 $ac_includes_default
d9898ee8 4475int
4476main ()
4477{
8d138742 4478
d9898ee8 4479 ;
4480 return 0;
4481}
4482_ACEOF
8d138742
CE
4483rm -f conftest.$ac_objext
4484if { (ac_try="$ac_compile"
dd184caf 4485case "(($ac_try" in
4486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4487 *) ac_try_echo=$ac_try;;
4488esac
8d138742
CE
4489eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4490$as_echo "$ac_try_echo") >&5
4491 (eval "$ac_compile") 2>conftest.er1
d9898ee8 4492 ac_status=$?
4493 grep -v '^ *+' conftest.er1 >conftest.err
4494 rm -f conftest.er1
4495 cat conftest.err >&5
8d138742 4496 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 4497 (exit $ac_status); } && {
4498 test -z "$ac_c_werror_flag" ||
4499 test ! -s conftest.err
8d138742
CE
4500 } && test -s conftest.$ac_objext; then
4501 ac_cv_safe_to_define___extensions__=yes
d9898ee8 4502else
8d138742 4503 $as_echo "$as_me: failed program was:" >&5
d9898ee8 4504sed 's/^/| /' conftest.$ac_ext >&5
4505
8d138742
CE
4506 ac_cv_safe_to_define___extensions__=no
4507fi
dd184caf 4508
8d138742 4509rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 4510fi
8d138742
CE
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
dd184caf 4517
8d138742
CE
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.
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
4557 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4558 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4559 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4560 break 2
4561 fi
dd184caf 4562done
8d138742
CE
4563done
4564IFS=$as_save_IFS
4565
4566fi
4567fi
4568CC=$ac_cv_prog_CC
4569if test -n "$CC"; then
4570 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4571$as_echo "$CC" >&6; }
dd184caf 4572else
8d138742
CE
4573 { $as_echo "$as_me:$LINENO: result: no" >&5
4574$as_echo "no" >&6; }
d9898ee8 4575fi
8d138742
CE
4576
4577
dd184caf 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
4587else
4588 if test -n "$ac_ct_CC"; then
4589 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
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
4597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4598 ac_cv_prog_ac_ct_CC="gcc"
4599 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4600 break 2
4601 fi
4602done
4603done
4604IFS=$as_save_IFS
d9898ee8 4605
8d138742
CE
4606fi
4607fi
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; }
4612else
4613 { $as_echo "$as_me:$LINENO: result: no" >&5
4614$as_echo "no" >&6; }
dd184caf 4615fi
d9898ee8 4616
8d138742
CE
4617 if test "x$ac_ct_CC" = x; then
4618 CC=""
4619 else
4620 case $cross_compiling:$ac_tool_warned in
4621yes:)
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;}
4624ac_tool_warned=yes ;;
4625esac
4626 CC=$ac_ct_CC
4627 fi
d9898ee8 4628else
8d138742
CE
4629 CC="$ac_cv_prog_CC"
4630fi
4631
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.
d9898ee8 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
dd184caf 4650 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8d138742
CE
4651 ac_cv_prog_CC="${ac_tool_prefix}cc"
4652 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 4653 break 2
4654 fi
4655done
4656done
dd184caf 4657IFS=$as_save_IFS
d9898ee8 4658
4659fi
4660fi
8d138742
CE
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; }
d9898ee8 4668fi
4669
dd184caf 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
4680else
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
d9898ee8 4700done
8d138742
CE
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; }
4725fi
4726
4727
4728fi
4729if test -z "$CC"; then
4730 if test -n "$ac_tool_prefix"; then
4731 for ac_prog in cl.exe
d9898ee8 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
8d138742
CE
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
d9898ee8 4739else
8d138742
CE
4740 if test -n "$CC"; then
4741 ac_cv_prog_CC="$CC" # Let the user override the test.
d9898ee8 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
dd184caf 4749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8d138742
CE
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
d9898ee8 4752 break 2
4753 fi
4754done
4755done
dd184caf 4756IFS=$as_save_IFS
d9898ee8 4757
4758fi
4759fi
8d138742
CE
4760CC=$ac_cv_prog_CC
4761if test -n "$CC"; then
4762 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4763$as_echo "$CC" >&6; }
d9898ee8 4764else
8d138742
CE
4765 { $as_echo "$as_me:$LINENO: result: no" >&5
4766$as_echo "no" >&6; }
d9898ee8 4767fi
4768
dd184caf 4769
8d138742 4770 test -n "$CC" && break
d9898ee8 4771 done
4772fi
8d138742
CE
4773if test -z "$CC"; then
4774 ac_ct_CC=$CC
4775 for ac_prog in cl.exe
d9898ee8 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
8d138742
CE
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
d9898ee8 4783else
8d138742
CE
4784 if test -n "$ac_ct_CC"; then
4785 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
d9898ee8 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
dd184caf 4793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8d138742
CE
4794 ac_cv_prog_ac_ct_CC="$ac_prog"
4795 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 4796 break 2
4797 fi
4798done
4799done
dd184caf 4800IFS=$as_save_IFS
d9898ee8 4801
4802fi
4803fi
8d138742
CE
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; }
d9898ee8 4808else
8d138742
CE
4809 { $as_echo "$as_me:$LINENO: result: no" >&5
4810$as_echo "no" >&6; }
d9898ee8 4811fi
4812
dd184caf 4813
8d138742 4814 test -n "$ac_ct_CC" && break
d9898ee8 4815done
d9898ee8 4816
8d138742
CE
4817 if test "x$ac_ct_CC" = x; then
4818 CC=""
dd184caf 4819 else
4820 case $cross_compiling:$ac_tool_warned in
4821yes:)
8d138742
CE
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;}
dd184caf 4824ac_tool_warned=yes ;;
4825esac
8d138742 4826 CC=$ac_ct_CC
dd184caf 4827 fi
d9898ee8 4828fi
4829
dd184caf 4830fi
8d138742
CE
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
d9898ee8 4841# Provide some information about the compiler.
8d138742
CE
4842$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
4843set X $ac_compile
4844ac_compiler=$2
dd184caf 4845{ (ac_try="$ac_compiler --version >&5"
4846case "(($ac_try" in
4847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4848 *) ac_try_echo=$ac_try;;
4849esac
8d138742
CE
4850eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4851$as_echo "$ac_try_echo") >&5
dd184caf 4852 (eval "$ac_compiler --version >&5") 2>&5
d9898ee8 4853 ac_status=$?
8d138742 4854 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9898ee8 4855 (exit $ac_status); }
dd184caf 4856{ (ac_try="$ac_compiler -v >&5"
4857case "(($ac_try" in
4858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4859 *) ac_try_echo=$ac_try;;
4860esac
8d138742
CE
4861eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4862$as_echo "$ac_try_echo") >&5
dd184caf 4863 (eval "$ac_compiler -v >&5") 2>&5
d9898ee8 4864 ac_status=$?
8d138742 4865 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9898ee8 4866 (exit $ac_status); }
dd184caf 4867{ (ac_try="$ac_compiler -V >&5"
4868case "(($ac_try" in
4869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4870 *) ac_try_echo=$ac_try;;
4871esac
8d138742
CE
4872eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4873$as_echo "$ac_try_echo") >&5
dd184caf 4874 (eval "$ac_compiler -V >&5") 2>&5
d9898ee8 4875 ac_status=$?
8d138742 4876 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9898ee8 4877 (exit $ac_status); }
4878
8d138742
CE
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
d9898ee8 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
dd184caf 4903if { (ac_try="$ac_compile"
4904case "(($ac_try" in
4905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4906 *) ac_try_echo=$ac_try;;
4907esac
8d138742
CE
4908eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4909$as_echo "$ac_try_echo") >&5
dd184caf 4910 (eval "$ac_compile") 2>conftest.er1
d9898ee8 4911 ac_status=$?
4912 grep -v '^ *+' conftest.er1 >conftest.err
4913 rm -f conftest.er1
4914 cat conftest.err >&5
8d138742 4915 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 4916 (exit $ac_status); } && {
8d138742 4917 test -z "$ac_c_werror_flag" ||
dd184caf 4918 test ! -s conftest.err
4919 } && test -s conftest.$ac_objext; then
d9898ee8 4920 ac_compiler_gnu=yes
4921else
8d138742 4922 $as_echo "$as_me: failed program was:" >&5
d9898ee8 4923sed 's/^/| /' conftest.$ac_ext >&5
4924
dd184caf 4925 ac_compiler_gnu=no
d9898ee8 4926fi
dd184caf 4927
4928rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8d138742 4929ac_cv_c_compiler_gnu=$ac_compiler_gnu
d9898ee8 4930
4931fi
8d138742
CE
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
d9898ee8 4936else
8d138742
CE
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}
5131
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];
5140
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
d9898ee8 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
8d138742 5218depcc="$CC" am_compiler_list=
d9898ee8 5219
8d138742
CE
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
5345{ $as_echo "$as_me:$LINENO: checking for library containing strerror" >&5
5346$as_echo_n "checking for library containing strerror... " >&6; }
5347if test "${ac_cv_search_strerror+set}" = set; then
5348 $as_echo_n "(cached) " >&6
d9898ee8 5349else
8d138742
CE
5350 ac_func_search_save_LIBS=$LIBS
5351cat >conftest.$ac_ext <<_ACEOF
5352/* confdefs.h. */
5353_ACEOF
5354cat confdefs.h >>conftest.$ac_ext
5355cat >>conftest.$ac_ext <<_ACEOF
5356/* end confdefs.h. */
d9898ee8 5357
8d138742
CE
5358/* Override any GCC internal prototype to avoid an error.
5359 Use char because int might match the return type of a GCC
5360 builtin and then its argument prototype would still apply. */
5361#ifdef __cplusplus
5362extern "C"
5363#endif
5364char strerror ();
5365int
5366main ()
5367{
5368return strerror ();
5369 ;
5370 return 0;
5371}
5372_ACEOF
5373for ac_lib in '' cposix; do
5374 if test -z "$ac_lib"; then
5375 ac_res="none required"
5376 else
5377 ac_res=-l$ac_lib
5378 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5379 fi
5380 rm -f conftest.$ac_objext conftest$ac_exeext
5381if { (ac_try="$ac_link"
5382case "(($ac_try" in
5383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5384 *) ac_try_echo=$ac_try;;
5385esac
5386eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5387$as_echo "$ac_try_echo") >&5
5388 (eval "$ac_link") 2>conftest.er1
5389 ac_status=$?
5390 grep -v '^ *+' conftest.er1 >conftest.err
5391 rm -f conftest.er1
5392 cat conftest.err >&5
5393 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5394 (exit $ac_status); } && {
5395 test -z "$ac_c_werror_flag" ||
5396 test ! -s conftest.err
5397 } && test -s conftest$ac_exeext && {
5398 test "$cross_compiling" = yes ||
5399 $as_test_x conftest$ac_exeext
5400 }; then
5401 ac_cv_search_strerror=$ac_res
d9898ee8 5402else
8d138742
CE
5403 $as_echo "$as_me: failed program was:" >&5
5404sed 's/^/| /' conftest.$ac_ext >&5
dd184caf 5405
d9898ee8 5406
dd184caf 5407fi
5408
8d138742
CE
5409rm -rf conftest.dSYM
5410rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5411 conftest$ac_exeext
5412 if test "${ac_cv_search_strerror+set}" = set; then
5413 break
d9898ee8 5414fi
8d138742
CE
5415done
5416if test "${ac_cv_search_strerror+set}" = set; then
5417 :
dd184caf 5418else
8d138742 5419 ac_cv_search_strerror=no
dd184caf 5420fi
8d138742
CE
5421rm conftest.$ac_ext
5422LIBS=$ac_func_search_save_LIBS
d9898ee8 5423fi
8d138742
CE
5424{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
5425$as_echo "$ac_cv_search_strerror" >&6; }
5426ac_res=$ac_cv_search_strerror
5427if test "$ac_res" != no; then
5428 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
dd184caf 5429
8d138742 5430fi
dd184caf 5431
8d138742
CE
5432for ac_prog in gawk mawk nawk awk
5433do
5434 # Extract the first word of "$ac_prog", so it can be a program name with args.
5435set dummy $ac_prog; ac_word=$2
5436{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5437$as_echo_n "checking for $ac_word... " >&6; }
5438if test "${ac_cv_prog_AWK+set}" = set; then
5439 $as_echo_n "(cached) " >&6
5440else
5441 if test -n "$AWK"; then
5442 ac_cv_prog_AWK="$AWK" # Let the user override the test.
d9898ee8 5443else
d9898ee8 5444as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5445for as_dir in $PATH
5446do
5447 IFS=$as_save_IFS
5448 test -z "$as_dir" && as_dir=.
8d138742
CE
5449 for ac_exec_ext in '' $ac_executable_extensions; do
5450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5451 ac_cv_prog_AWK="$ac_prog"
5452 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5453 break 2
d9898ee8 5454 fi
d9898ee8 5455done
8d138742
CE
5456done
5457IFS=$as_save_IFS
d9898ee8 5458
8d138742
CE
5459fi
5460fi
5461AWK=$ac_cv_prog_AWK
5462if test -n "$AWK"; then
5463 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
5464$as_echo "$AWK" >&6; }
5465else
5466 { $as_echo "$as_me:$LINENO: result: no" >&5
5467$as_echo "no" >&6; }
d9898ee8 5468fi
5469
d9898ee8 5470
8d138742
CE
5471 test -n "$AWK" && break
5472done
d9898ee8 5473
8d138742
CE
5474ac_ext=cpp
5475ac_cpp='$CXXCPP $CPPFLAGS'
5476ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5477ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5478ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5479if test -z "$CXX"; then
5480 if test -n "$CCC"; then
5481 CXX=$CCC
5482 else
5483 if test -n "$ac_tool_prefix"; then
5484 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5485 do
5486 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5487set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5488{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5489$as_echo_n "checking for $ac_word... " >&6; }
5490if test "${ac_cv_prog_CXX+set}" = set; then
5491 $as_echo_n "(cached) " >&6
5492else
5493 if test -n "$CXX"; then
5494 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5495else
5496as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5497for as_dir in $PATH
5498do
5499 IFS=$as_save_IFS
5500 test -z "$as_dir" && as_dir=.
5501 for ac_exec_ext in '' $ac_executable_extensions; do
5502 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5503 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5504 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5505 break 2
5506 fi
5507done
5508done
5509IFS=$as_save_IFS
d9898ee8 5510
8d138742
CE
5511fi
5512fi
5513CXX=$ac_cv_prog_CXX
5514if test -n "$CXX"; then
5515 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
5516$as_echo "$CXX" >&6; }
d9898ee8 5517else
8d138742
CE
5518 { $as_echo "$as_me:$LINENO: result: no" >&5
5519$as_echo "no" >&6; }
dd184caf 5520fi
5521
8d138742
CE
5522
5523 test -n "$CXX" && break
5524 done
d9898ee8 5525fi
8d138742
CE
5526if test -z "$CXX"; then
5527 ac_ct_CXX=$CXX
5528 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5529do
5530 # Extract the first word of "$ac_prog", so it can be a program name with args.
5531set dummy $ac_prog; ac_word=$2
5532{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5533$as_echo_n "checking for $ac_word... " >&6; }
5534if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5535 $as_echo_n "(cached) " >&6
d9898ee8 5536else
8d138742
CE
5537 if test -n "$ac_ct_CXX"; then
5538 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
d9898ee8 5539else
8d138742
CE
5540as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5541for as_dir in $PATH
5542do
5543 IFS=$as_save_IFS
5544 test -z "$as_dir" && as_dir=.
5545 for ac_exec_ext in '' $ac_executable_extensions; do
5546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5547 ac_cv_prog_ac_ct_CXX="$ac_prog"
5548 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5549 break 2
5550 fi
5551done
5552done
5553IFS=$as_save_IFS
d9898ee8 5554
d9898ee8 5555fi
8d138742
CE
5556fi
5557ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5558if test -n "$ac_ct_CXX"; then
5559 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5560$as_echo "$ac_ct_CXX" >&6; }
d9898ee8 5561else
8d138742
CE
5562 { $as_echo "$as_me:$LINENO: result: no" >&5
5563$as_echo "no" >&6; }
d9898ee8 5564fi
d9898ee8 5565
5566
8d138742
CE
5567 test -n "$ac_ct_CXX" && break
5568done
d9898ee8 5569
8d138742
CE
5570 if test "x$ac_ct_CXX" = x; then
5571 CXX="g++"
5572 else
5573 case $cross_compiling:$ac_tool_warned in
5574yes:)
5575{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5576$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5577ac_tool_warned=yes ;;
5578esac
5579 CXX=$ac_ct_CXX
d9898ee8 5580 fi
d9898ee8 5581fi
d9898ee8 5582
8d138742 5583 fi
d9898ee8 5584fi
8d138742
CE
5585# Provide some information about the compiler.
5586$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5587set X $ac_compile
5588ac_compiler=$2
5589{ (ac_try="$ac_compiler --version >&5"
5590case "(($ac_try" in
5591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5592 *) ac_try_echo=$ac_try;;
5593esac
5594eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5595$as_echo "$ac_try_echo") >&5
5596 (eval "$ac_compiler --version >&5") 2>&5
5597 ac_status=$?
5598 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5599 (exit $ac_status); }
5600{ (ac_try="$ac_compiler -v >&5"
5601case "(($ac_try" in
5602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5603 *) ac_try_echo=$ac_try;;
5604esac
5605eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5606$as_echo "$ac_try_echo") >&5
5607 (eval "$ac_compiler -v >&5") 2>&5
5608 ac_status=$?
5609 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5610 (exit $ac_status); }
5611{ (ac_try="$ac_compiler -V >&5"
5612case "(($ac_try" in
5613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5614 *) ac_try_echo=$ac_try;;
5615esac
5616eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5617$as_echo "$ac_try_echo") >&5
5618 (eval "$ac_compiler -V >&5") 2>&5
5619 ac_status=$?
5620 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5621 (exit $ac_status); }
d9898ee8 5622
8d138742
CE
5623{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5624$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5625if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5626 $as_echo_n "(cached) " >&6
d9898ee8 5627else
8d138742
CE
5628 cat >conftest.$ac_ext <<_ACEOF
5629/* confdefs.h. */
5630_ACEOF
5631cat confdefs.h >>conftest.$ac_ext
5632cat >>conftest.$ac_ext <<_ACEOF
5633/* end confdefs.h. */
d9898ee8 5634
8d138742
CE
5635int
5636main ()
5637{
5638#ifndef __GNUC__
5639 choke me
5640#endif
d9898ee8 5641
8d138742
CE
5642 ;
5643 return 0;
5644}
5645_ACEOF
5646rm -f conftest.$ac_objext
5647if { (ac_try="$ac_compile"
5648case "(($ac_try" in
5649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5650 *) ac_try_echo=$ac_try;;
5651esac
5652eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5653$as_echo "$ac_try_echo") >&5
5654 (eval "$ac_compile") 2>conftest.er1
5655 ac_status=$?
5656 grep -v '^ *+' conftest.er1 >conftest.err
5657 rm -f conftest.er1
5658 cat conftest.err >&5
5659 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5660 (exit $ac_status); } && {
5661 test -z "$ac_cxx_werror_flag" ||
5662 test ! -s conftest.err
5663 } && test -s conftest.$ac_objext; then
5664 ac_compiler_gnu=yes
5665else
5666 $as_echo "$as_me: failed program was:" >&5
5667sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 5668
8d138742
CE
5669 ac_compiler_gnu=no
5670fi
d9898ee8 5671
8d138742
CE
5672rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5673ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
d9898ee8 5674
8d138742
CE
5675fi
5676{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5677$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5678if test $ac_compiler_gnu = yes; then
5679 GXX=yes
5680else
5681 GXX=
5682fi
5683ac_test_CXXFLAGS=${CXXFLAGS+set}
5684ac_save_CXXFLAGS=$CXXFLAGS
5685{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5686$as_echo_n "checking whether $CXX accepts -g... " >&6; }
5687if test "${ac_cv_prog_cxx_g+set}" = set; then
5688 $as_echo_n "(cached) " >&6
5689else
5690 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5691 ac_cxx_werror_flag=yes
5692 ac_cv_prog_cxx_g=no
5693 CXXFLAGS="-g"
5694 cat >conftest.$ac_ext <<_ACEOF
5695/* confdefs.h. */
5696_ACEOF
5697cat confdefs.h >>conftest.$ac_ext
5698cat >>conftest.$ac_ext <<_ACEOF
5699/* end confdefs.h. */
d9898ee8 5700
8d138742
CE
5701int
5702main ()
5703{
d9898ee8 5704
8d138742
CE
5705 ;
5706 return 0;
5707}
5708_ACEOF
5709rm -f conftest.$ac_objext
5710if { (ac_try="$ac_compile"
5711case "(($ac_try" in
5712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5713 *) ac_try_echo=$ac_try;;
5714esac
5715eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5716$as_echo "$ac_try_echo") >&5
5717 (eval "$ac_compile") 2>conftest.er1
5718 ac_status=$?
5719 grep -v '^ *+' conftest.er1 >conftest.err
5720 rm -f conftest.er1
5721 cat conftest.err >&5
5722 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5723 (exit $ac_status); } && {
5724 test -z "$ac_cxx_werror_flag" ||
5725 test ! -s conftest.err
5726 } && test -s conftest.$ac_objext; then
5727 ac_cv_prog_cxx_g=yes
5728else
5729 $as_echo "$as_me: failed program was:" >&5
5730sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 5731
8d138742
CE
5732 CXXFLAGS=""
5733 cat >conftest.$ac_ext <<_ACEOF
5734/* confdefs.h. */
5735_ACEOF
5736cat confdefs.h >>conftest.$ac_ext
5737cat >>conftest.$ac_ext <<_ACEOF
5738/* end confdefs.h. */
d9898ee8 5739
8d138742
CE
5740int
5741main ()
5742{
d9898ee8 5743
8d138742
CE
5744 ;
5745 return 0;
5746}
5747_ACEOF
5748rm -f conftest.$ac_objext
5749if { (ac_try="$ac_compile"
5750case "(($ac_try" in
5751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5752 *) ac_try_echo=$ac_try;;
d9898ee8 5753esac
8d138742
CE
5754eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5755$as_echo "$ac_try_echo") >&5
5756 (eval "$ac_compile") 2>conftest.er1
d9898ee8 5757 ac_status=$?
8d138742
CE
5758 grep -v '^ *+' conftest.er1 >conftest.err
5759 rm -f conftest.er1
5760 cat conftest.err >&5
5761 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5762 (exit $ac_status); } && {
5763 test -z "$ac_cxx_werror_flag" ||
5764 test ! -s conftest.err
5765 } && test -s conftest.$ac_objext; then
5766 :
d9898ee8 5767else
8d138742
CE
5768 $as_echo "$as_me: failed program was:" >&5
5769sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 5770
8d138742
CE
5771 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5772 CXXFLAGS="-g"
5773 cat >conftest.$ac_ext <<_ACEOF
d9898ee8 5774/* confdefs.h. */
5775_ACEOF
5776cat confdefs.h >>conftest.$ac_ext
5777cat >>conftest.$ac_ext <<_ACEOF
5778/* end confdefs.h. */
5779
5780int
5781main ()
5782{
5783
5784 ;
5785 return 0;
5786}
5787_ACEOF
8d138742
CE
5788rm -f conftest.$ac_objext
5789if { (ac_try="$ac_compile"
dd184caf 5790case "(($ac_try" in
5791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5792 *) ac_try_echo=$ac_try;;
5793esac
8d138742
CE
5794eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5795$as_echo "$ac_try_echo") >&5
5796 (eval "$ac_compile") 2>conftest.er1
d9898ee8 5797 ac_status=$?
5798 grep -v '^ *+' conftest.er1 >conftest.err
5799 rm -f conftest.er1
5800 cat conftest.err >&5
8d138742 5801 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 5802 (exit $ac_status); } && {
8d138742 5803 test -z "$ac_cxx_werror_flag" ||
dd184caf 5804 test ! -s conftest.err
8d138742
CE
5805 } && test -s conftest.$ac_objext; then
5806 ac_cv_prog_cxx_g=yes
d9898ee8 5807else
8d138742 5808 $as_echo "$as_me: failed program was:" >&5
d9898ee8 5809sed 's/^/| /' conftest.$ac_ext >&5
5810
8d138742 5811
d9898ee8 5812fi
dd184caf 5813
8d138742
CE
5814rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5815fi
5816
5817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5818fi
5819
5820rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5821 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5822fi
5823{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5824$as_echo "$ac_cv_prog_cxx_g" >&6; }
5825if test "$ac_test_CXXFLAGS" = set; then
5826 CXXFLAGS=$ac_save_CXXFLAGS
5827elif test $ac_cv_prog_cxx_g = yes; then
5828 if test "$GXX" = yes; then
5829 CXXFLAGS="-g -O2"
5830 else
5831 CXXFLAGS="-g"
5832 fi
5833else
5834 if test "$GXX" = yes; then
5835 CXXFLAGS="-O2"
5836 else
5837 CXXFLAGS=
5838 fi
5839fi
5840ac_ext=c
d9898ee8 5841ac_cpp='$CPP $CPPFLAGS'
5842ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5843ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5844ac_compiler_gnu=$ac_cv_c_compiler_gnu
5845
8d138742 5846depcc="$CXX" am_compiler_list=
d9898ee8 5847
8d138742
CE
5848{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5849$as_echo_n "checking dependency style of $depcc... " >&6; }
5850if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5851 $as_echo_n "(cached) " >&6
5852else
5853 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5854 # We make a subdir and do the tests there. Otherwise we can end up
5855 # making bogus files that we don't know about and never remove. For
5856 # instance it was reported that on HP-UX the gcc test will end up
5857 # making a dummy file named `D' -- because `-MD' means `put the output
5858 # in D'.
5859 mkdir conftest.dir
5860 # Copy depcomp to subdir because otherwise we won't find it if we're
5861 # using a relative directory.
5862 cp "$am_depcomp" conftest.dir
5863 cd conftest.dir
5864 # We will build objects and dependencies in a subdirectory because
5865 # it helps to detect inapplicable dependency modes. For instance
5866 # both Tru64's cc and ICC support -MD to output dependencies as a
5867 # side effect of compilation, but ICC will put the dependencies in
5868 # the current directory while Tru64 will put them in the object
5869 # directory.
5870 mkdir sub
d9898ee8 5871
8d138742
CE
5872 am_cv_CXX_dependencies_compiler_type=none
5873 if test "$am_compiler_list" = ""; then
5874 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5875 fi
5876 am__universal=false
5877 case " $depcc " in #(
5878 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5879 esac
d9898ee8 5880
8d138742
CE
5881 for depmode in $am_compiler_list; do
5882 # Setup a source with many dependencies, because some compilers
5883 # like to wrap large dependency lists on column 80 (with \), and
5884 # we should not choose a depcomp mode which is confused by this.
5885 #
5886 # We need to recreate these files for each test, as the compiler may
5887 # overwrite some of them when testing with obscure command lines.
5888 # This happens at least with the AIX C compiler.
5889 : > sub/conftest.c
5890 for i in 1 2 3 4 5 6; do
5891 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5892 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5893 # Solaris 8's {/usr,}/bin/sh.
5894 touch sub/conftst$i.h
5895 done
5896 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
d9898ee8 5897
8d138742
CE
5898 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5899 # mode. It turns out that the SunPro C++ compiler does not properly
5900 # handle `-M -o', and we need to detect this. Also, some Intel
5901 # versions had trouble with output in subdirs
5902 am__obj=sub/conftest.${OBJEXT-o}
5903 am__minus_obj="-o $am__obj"
5904 case $depmode in
5905 gcc)
5906 # This depmode causes a compiler race in universal mode.
5907 test "$am__universal" = false || continue
5908 ;;
5909 nosideeffect)
5910 # after this tag, mechanisms are not by side-effect, so they'll
5911 # only be used when explicitly requested
5912 if test "x$enable_dependency_tracking" = xyes; then
5913 continue
5914 else
5915 break
5916 fi
5917 ;;
5918 msvisualcpp | msvcmsys)
5919 # This compiler won't grok `-c -o', but also, the minuso test has
5920 # not run yet. These depmodes are late enough in the game, and
5921 # so weak that their functioning should not be impacted.
5922 am__obj=conftest.${OBJEXT-o}
5923 am__minus_obj=
5924 ;;
5925 none) break ;;
5926 esac
5927 if depmode=$depmode \
5928 source=sub/conftest.c object=$am__obj \
5929 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5930 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5931 >/dev/null 2>conftest.err &&
5932 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5933 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5934 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5935 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5936 # icc doesn't choke on unknown options, it will just issue warnings
5937 # or remarks (even with -Werror). So we grep stderr for any message
5938 # that says an option was ignored or not supported.
5939 # When given -MP, icc 7.0 and 7.1 complain thusly:
5940 # icc: Command line warning: ignoring option '-M'; no argument required
5941 # The diagnosis changed in icc 8.0:
5942 # icc: Command line remark: option '-MP' not supported
5943 if (grep 'ignoring option' conftest.err ||
5944 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5945 am_cv_CXX_dependencies_compiler_type=$depmode
5946 break
5947 fi
5948 fi
5949 done
d9898ee8 5950
8d138742
CE
5951 cd ..
5952 rm -rf conftest.dir
5953else
5954 am_cv_CXX_dependencies_compiler_type=none
5955fi
d9898ee8 5956
d9898ee8 5957fi
8d138742
CE
5958{ $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5959$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5960CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
d9898ee8 5961
8d138742
CE
5962 if
5963 test "x$enable_dependency_tracking" != xno \
5964 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5965 am__fastdepCXX_TRUE=
5966 am__fastdepCXX_FALSE='#'
5967else
5968 am__fastdepCXX_TRUE='#'
5969 am__fastdepCXX_FALSE=
d9898ee8 5970fi
dd184caf 5971
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;} ;;
dd184caf 5977esac
d9898ee8 5978
dd184caf 5979
d9898ee8 5980
8d138742
CE
5981macro_version='2.2.6'
5982macro_revision='1.3012'
d9898ee8 5983
d9898ee8 5984
d9898ee8 5985
d9898ee8 5986
5987
5988
d9898ee8 5989
dd184caf 5990
d9898ee8 5991
d9898ee8 5992
d9898ee8 5993
d9898ee8 5994
d9898ee8 5995
8d138742 5996ltmain="$ac_aux_dir/ltmain.sh"
dd184caf 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
d9898ee8 6008else
8d138742
CE
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
d9898ee8 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
dd184caf 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;}
d9898ee8 6055 { (exit 1); exit 1; }; }
6056fi
6057
d9898ee8 6058fi
8d138742
CE
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
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
d9898ee8 6096for as_dir in $PATH
6097do
6098 IFS=$as_save_IFS
6099 test -z "$as_dir" && as_dir=.
8d138742
CE
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;;
6130esac
6131
6132 $ac_path_SED_found && break 3
6133 done
6134 done
d9898ee8 6135done
dd184caf 6136IFS=$as_save_IFS
8d138742
CE
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 6143 ac_cv_path_SED=$SED
d9898ee8 6144fi
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
d9898ee8 6151
8d138742
CE
6152test -z "$SED" && SED=sed
6153Xsed="$SED -e 1s/^X//"
d9898ee8 6154
dd184caf 6155
d9898ee8 6156
d9898ee8 6157
6158
d9898ee8 6159
d9898ee8 6160
d9898ee8 6161
dd184caf 6162
d9898ee8 6163
d9898ee8 6164
8d138742
CE
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;;
6211esac
d9898ee8 6212
8d138742
CE
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; }; }
d9898ee8 6222 fi
6223else
8d138742 6224 ac_cv_path_FGREP=$FGREP
d9898ee8 6225fi
6226
8d138742
CE
6227 fi
6228fi
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"
d9898ee8 6232
d9898ee8 6233
8d138742 6234test -z "$GREP" && GREP=grep
d9898ee8 6235
d9898ee8 6236
d9898ee8 6237
d9898ee8 6238
d9898ee8 6239
d9898ee8 6240
d9898ee8 6241
d9898ee8 6242
d9898ee8 6243
d9898ee8 6244
6245
6246
6247
ac40fd9e 6248
d9898ee8 6249
d9898ee8 6250
d9898ee8 6251
d9898ee8 6252
d9898ee8 6253
8d138742
CE
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
6257else
6258 with_gnu_ld=no
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; }
6299fi
6300if test "${lt_cv_path_LD+set}" = set; then
6301 $as_echo_n "(cached) " >&6
6302else
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
6327fi
d9898ee8 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; }
6333else
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;}
6339 { (exit 1); exit 1; }; }
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
d9898ee8 6347*GNU* | *'with BFD'*)
8d138742
CE
6348 lt_cv_prog_gnu_ld=yes
6349 ;;
6350*)
6351 lt_cv_prog_gnu_ld=no
6352 ;;
d9898ee8 6353esac
8d138742
CE
6354fi
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
d9898ee8 6361
d9898ee8 6362
d9898ee8 6363
d9898ee8 6364
d9898ee8 6365
d9898ee8 6366
8d138742
CE
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"
d9898ee8 6379 fi
8d138742
CE
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"
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
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
6431else
6432 if test -n "$DUMPBIN"; then
6433 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
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
6441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
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
6444 break 2
d9898ee8 6445 fi
6446done
8d138742
CE
6447done
6448IFS=$as_save_IFS
d9898ee8 6449
6450fi
d9898ee8 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
8d138742
CE
6461
6462 test -n "$DUMPBIN" && break
6463 done
6464fi
6465if test -z "$DUMPBIN"; then
6466 ac_ct_DUMPBIN=$DUMPBIN
6467 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
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
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
8d138742
CE
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
6485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6486 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6487 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6488 break 2
6489 fi
6490done
6491done
6492IFS=$as_save_IFS
6493
6494fi
6495fi
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; }
6500else
6501 { $as_echo "$as_me:$LINENO: result: no" >&5
6502$as_echo "no" >&6; }
6503fi
6504
6505
6506 test -n "$ac_ct_DUMPBIN" && break
6507done
6508
6509 if test "x$ac_ct_DUMPBIN" = x; then
6510 DUMPBIN=":"
6511 else
6512 case $cross_compiling:$ac_tool_warned in
6513yes:)
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;}
6516ac_tool_warned=yes ;;
6517esac
6518 DUMPBIN=$ac_ct_DUMPBIN
6519 fi
6520fi
6521
6522
6523 if test "$DUMPBIN" != ":"; then
6524 NM="$DUMPBIN"
6525 fi
6526fi
6527test -z "$NM" && NM=nm
6528
6529
6530
6531
6532
6533
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
6538else
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
CE
6552 rm -f conftest*
6553fi
6554{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
6555$as_echo "$lt_cv_nm_interface" >&6; }
6556
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
6567
6568# find the maximum length of command line arguments
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; }
6571if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6572 $as_echo_n "(cached) " >&6
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
6593 cygwin* | mingw* | cegcc*)
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
6648 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6649 else
6650 lt_cv_sys_max_cmd_len=32768
6651 fi
6652 ;;
6653 *)
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
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
6664 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
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 &&
6670 test $i != 17 # 1/2 MB should be enough
6671 do
6672 i=`expr $i + 1`
6673 teststring=$teststring$teststring
6674 done
6675 # Only check the string length outside the loop.
6676 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6677 teststring=
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.
6681 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6682 fi
6683 ;;
6684 esac
6685
6686fi
6687
6688if test -n $lt_cv_sys_max_cmd_len ; then
6689 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6690$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6691else
6692 { $as_echo "$as_me:$LINENO: result: none" >&5
6693$as_echo "none" >&6; }
6694fi
6695max_cmd_len=$lt_cv_sys_max_cmd_len
6696
6697
6698
6699
6700
6701
6702: ${CP="cp -f"}
6703: ${MV="mv -f"}
6704: ${RM="rm -f"}
6705
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; }
6718
6719
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; }
6728
6729
6730if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6731 lt_unset=unset
6732else
6733 lt_unset=false
6734fi
6735
6736
6737
6738
6739
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'
d9898ee8 6750 ;;
6751esac
6752
d9898ee8 6753
d9898ee8 6754
d9898ee8 6755
d9898ee8 6756
d9898ee8 6757
d9898ee8 6758
8d138742
CE
6759
6760
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
6765else
6766 lt_cv_ld_reload_flag='-r'
6767fi
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'
6776case $host_os in
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 ;;
6784esac
6785
6786
6787
6788
6789
6790
6791
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.
d9898ee8 7119else
7120as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
7222 if test -n "$STRIP"; then
7223 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
d9898ee8 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
d9898ee8 8298
8d138742
CE
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 ;;
11243
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 ;;
11254
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
8d138742
CE
11277 case $host_os in
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 ;;
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'
11352 ;;
11353 esac
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'
d9898ee8 11366 else
8d138742 11367 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
d9898ee8 11368 fi
11369 ;;
8d138742
CE
11370 esac
11371 link_all_deplibs=yes
11372 ;;
d9898ee8 11373
8d138742
CE
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 ;;
d9898ee8 11387
8d138742
CE
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 ;;
d9898ee8 11440
8d138742
CE
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'
d9898ee8 11457
8d138742
CE
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 ;;
d9898ee8 11466
8d138742
CE
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 ;;
d9898ee8 11472
8d138742
CE
11473 *)
11474 ld_shlibs=no
11475 ;;
11476 esac
d9898ee8 11477
8d138742
CE
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
d9898ee8 11486
8d138742
CE
11487{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
11488$as_echo "$ld_shlibs" >&6; }
11489test "$ld_shlibs" = no && can_build_shared=no
d9898ee8 11490
8d138742 11491with_gnu_ld=$with_gnu_ld
d9898ee8 11492
d9898ee8 11493
d9898ee8 11494
d9898ee8 11495
d9898ee8 11496
d9898ee8 11497
d9898ee8 11498
d9898ee8 11499
d9898ee8 11500
8d138742
CE
11501
11502
11503
11504
11505
11506
11507#
11508# Do we need to explicitly link libc?
11509#
11510case "x$archive_cmds_need_lc" in
11511x|xyes)
11512 # Assume -lc should be added
11513 archive_cmds_need_lc=yes
11514
11515 if test "$enable_shared" = yes && test "$GCC" = yes; then
11516 case $archive_cmds in
11517 *'~'*)
11518 # FIXME: we may have to deal with multi-command sequences.
ac40fd9e 11519 ;;
8d138742
CE
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.
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*
11527 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
ac40fd9e 11528
8d138742
CE
11529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11530 (eval $ac_compile) 2>&5
11531 ac_status=$?
11532 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11533 (exit $ac_status); } 2>conftest.err; then
11534 soname=conftest
11535 lib=conftest
11536 libobjs=conftest.$ac_objext
11537 deplibs=
11538 wl=$lt_prog_compiler_wl
11539 pic_flag=$lt_prog_compiler_pic
11540 compiler_flags=-v
11541 linker_flags=-v
11542 verstring=
11543 output_objdir=.
11544 libname=conftest
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
11549 ac_status=$?
11550 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11551 (exit $ac_status); }
11552 then
11553 archive_cmds_need_lc=no
11554 else
11555 archive_cmds_need_lc=yes
11556 fi
11557 allow_undefined_flag=$lt_save_allow_undefined_flag
11558 else
11559 cat conftest.err 1>&5
11560 fi
11561 $RM conftest*
11562 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
11563$as_echo "$archive_cmds_need_lc" >&6; }
ac40fd9e 11564 ;;
11565 esac
8d138742 11566 fi
d9898ee8 11567 ;;
11568esac
11569
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
d9898ee8 11591
d9898ee8 11592
d9898ee8 11593
d9898ee8 11594
d9898ee8 11595
d9898ee8 11596
d9898ee8 11597
d9898ee8 11598
d9898ee8 11599
d9898ee8 11600
d9898ee8 11601
ac40fd9e 11602
d9898ee8 11603
d9898ee8 11604
d9898ee8 11605
d9898ee8 11606
d9898ee8 11607
d9898ee8 11608
d9898ee8 11609
d9898ee8 11610
d9898ee8 11611
d9898ee8 11612
d9898ee8 11613
11614
d9898ee8 11615
d9898ee8 11616
d9898ee8 11617
d9898ee8 11618
d9898ee8 11619
d9898ee8 11620
d9898ee8 11621
d9898ee8 11622
d9898ee8 11623
d9898ee8 11624
d9898ee8 11625
d9898ee8 11626
d9898ee8 11627
d9898ee8 11628
d9898ee8 11629
d9898ee8 11630
d9898ee8 11631
d9898ee8 11632
d9898ee8 11633
d9898ee8 11634
d9898ee8 11635
d9898ee8 11636
d9898ee8 11637
d9898ee8 11638
d9898ee8 11639
d9898ee8 11640
d9898ee8 11641
d9898ee8 11642
d9898ee8 11643
d9898ee8 11644
d9898ee8 11645
d9898ee8 11646
d9898ee8 11647
d9898ee8 11648
d9898ee8 11649
d9898ee8 11650
d9898ee8 11651
d9898ee8 11652
d9898ee8 11653
d9898ee8 11654
d9898ee8 11655
d9898ee8 11656
d9898ee8 11657
d9898ee8 11658
d9898ee8 11659
d9898ee8 11660
d9898ee8 11661
d9898ee8 11662
d9898ee8 11663
d9898ee8 11664
d9898ee8 11665
d9898ee8 11666
d9898ee8 11667
d9898ee8 11668
d9898ee8 11669
d9898ee8 11670
d9898ee8 11671
d9898ee8 11672
d9898ee8 11673
d9898ee8 11674
d9898ee8 11675
d9898ee8 11676
d9898ee8 11677
d9898ee8 11678
d9898ee8 11679
d9898ee8 11680
d9898ee8 11681
d9898ee8 11682
d9898ee8 11683
d9898ee8 11684
d9898ee8 11685
d9898ee8 11686
d9898ee8 11687
d9898ee8 11688
d9898ee8 11689
d9898ee8 11690
d9898ee8 11691
d9898ee8 11692
d9898ee8 11693
d9898ee8 11694
d9898ee8 11695
d9898ee8 11696
d9898ee8 11697
d9898ee8 11698
d9898ee8 11699
d9898ee8 11700
d9898ee8 11701
d9898ee8 11702
d9898ee8 11703
d9898ee8 11704
d9898ee8 11705
d9898ee8 11706
d9898ee8 11707
d9898ee8 11708
d9898ee8 11709
d9898ee8 11710
d9898ee8 11711
11712
8d138742
CE
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
11730 case $host_os in
11731 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11732 *) lt_awk_arg="/^libraries:/" ;;
11733 esac
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"`
d9898ee8 11743 fi
8d138742
CE
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"
d9898ee8 11779fi
8d138742
CE
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
d9898ee8 11799
8d138742
CE
11800case $host_os in
11801aix3*)
11802 version_type=linux
11803 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11804 shlibpath_var=LIBPATH
d9898ee8 11805
8d138742
CE
11806 # AIX 3 has no versioning support, so we append a major version to the name.
11807 soname_spec='${libname}${release}${shared_ext}$major'
11808 ;;
d9898ee8 11809
8d138742
CE
11810aix[4-9]*)
11811 version_type=linux
11812 need_lib_prefix=no
11813 need_version=no
11814 hardcode_into_libs=yes
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
11851 fi
11852 ;;
11853
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
11867 ;;
11868
11869beos*)
11870 library_names_spec='${libname}${shared_ext}'
11871 dynamic_linker="$host_os ld.so"
11872 shlibpath_var=LIBRARY_PATH
11873 ;;
11874
11875bsdi[45]*)
11876 version_type=linux
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'
11880 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11881 shlibpath_var=LD_LIBRARY_PATH
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
11887 ;;
d9898ee8 11888
8d138742
CE
11889cygwin* | mingw* | pw32* | cegcc*)
11890 version_type=windows
11891 shrext_cmds=".dll"
11892 need_version=no
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"
11918 ;;
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
11934 ;;
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}'
11938 ;;
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
11949 ;;
d9898ee8 11950
8d138742
CE
11951darwin* | rhapsody*)
11952 dynamic_linker="$host_os dyld"
11953 version_type=darwin
11954 need_lib_prefix=no
11955 need_version=no
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`'
d9898ee8 11961
8d138742
CE
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'
11964 ;;
d9898ee8 11965
8d138742
CE
11966dgux*)
11967 version_type=linux
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'
11971 soname_spec='${libname}${release}${shared_ext}$major'
11972 shlibpath_var=LD_LIBRARY_PATH
11973 ;;
d9898ee8 11974
8d138742
CE
11975freebsd1*)
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`
11984 else
11985 case $host_os in
11986 freebsd[123]*) objformat=aout ;;
11987 *) objformat=elf ;;
11988 esac
11989 fi
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
11996 ;;
11997 freebsd-*)
11998 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11999 need_version=yes
12000 ;;
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
12019 ;;
12020 esac
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 ;;
12090
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 ;;
d9898ee8 12100 esac
8d138742
CE
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;;
d9898ee8 12168esac
8d138742
CE
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
d9898ee8 12274 case $host_os in
8d138742
CE
12275 openbsd2.[89] | openbsd2.[89].*)
12276 shlibpath_overrides_runpath=no
d9898ee8 12277 ;;
ac40fd9e 12278 *)
8d138742 12279 shlibpath_overrides_runpath=yes
ac40fd9e 12280 ;;
d9898ee8 12281 esac
8d138742
CE
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 ;;
ac40fd9e 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
d9898ee8 12346 ;;
8d138742
CE
12347 siemens)
12348 need_lib_prefix=no
d9898ee8 12349 ;;
8d138742
CE
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'
d9898ee8 12355 ;;
8d138742
CE
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 ;;
d9898ee8 12385 esac
12386 fi
8d138742
CE
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"
d9898ee8 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"
d9898ee8 12423fi
8d138742
CE
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"
d9898ee8 12426fi
d9898ee8 12427
d9898ee8 12428
d9898ee8 12429
d9898ee8 12430
12431
d9898ee8 12432
d9898ee8 12433
d9898ee8 12434
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
d9898ee8 12448
d9898ee8 12449
d9898ee8 12450
d9898ee8 12451
d9898ee8 12452
d9898ee8 12453
d9898ee8 12454
d9898ee8 12455
d9898ee8 12456
d9898ee8 12457
d9898ee8 12458
d9898ee8 12459
d9898ee8 12460
d9898ee8 12461
d9898ee8 12462
d9898ee8 12463
d9898ee8 12464
d9898ee8 12465
d9898ee8 12466
d9898ee8 12467
d9898ee8 12468
d9898ee8 12469
dd184caf 12470
dd184caf 12471
d9898ee8 12472
d9898ee8 12473
d9898ee8 12474
d9898ee8 12475
dd184caf 12476
dd184caf 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
d9898ee8 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
d9898ee8 12509
d9898ee8 12510
d9898ee8 12511
d9898ee8 12512
d9898ee8 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
d9898ee8 12520
8d138742
CE
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
8d138742
CE
12534else
12535 # We cannot hardcode anything, or else we can only hardcode existing
12536 # directories.
12537 hardcode_action=unsupported
12538fi
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
ac40fd9e 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=
12564
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 ;;
d9898ee8 12581
8d138742
CE
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
d9898ee8 12659 ;;
12660
12661 *)
8d138742
CE
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
12676
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. */
12681
12682#ifdef __STDC__
12683# include <limits.h>
12684#else
12685# include <assert.h>
12686#endif
12687
12688#undef shl_load
12689
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
12703
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
ac40fd9e 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
12859
12860int
12861main ()
12862{
12863return dlopen ();
12864 ;
12865 return 0;
12866}
12867_ACEOF
12868rm -f conftest.$ac_objext conftest$ac_exeext
12869if { (ac_try="$ac_link"
12870case "(($ac_try" in
12871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12872 *) ac_try_echo=$ac_try;;
12873esac
12874eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12875$as_echo "$ac_try_echo") >&5
12876 (eval "$ac_link") 2>conftest.er1
12877 ac_status=$?
12878 grep -v '^ *+' conftest.er1 >conftest.err
12879 rm -f conftest.er1
12880 cat conftest.err >&5
12881 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12882 (exit $ac_status); } && {
12883 test -z "$ac_c_werror_flag" ||
12884 test ! -s conftest.err
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
d9898ee8 12896
8d138742
CE
12897rm -rf conftest.dSYM
12898rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12899 conftest$ac_exeext conftest.$ac_ext
12900fi
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"
12905else
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
d9898ee8 12960
8d138742
CE
12961 ac_cv_lib_dl_dlopen=no
12962fi
d9898ee8 12963
8d138742
CE
12964rm -rf conftest.dSYM
12965rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12966 conftest$ac_exeext conftest.$ac_ext
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
d9898ee8 13028
8d138742
CE
13029 ac_cv_lib_svld_dlopen=no
13030fi
d9898ee8 13031
8d138742
CE
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. */
13055
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}
13070_ACEOF
13071rm -f conftest.$ac_objext conftest$ac_exeext
13072if { (ac_try="$ac_link"
13073case "(($ac_try" in
13074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13075 *) ac_try_echo=$ac_try;;
13076esac
13077eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13078$as_echo "$ac_try_echo") >&5
13079 (eval "$ac_link") 2>conftest.er1
13080 ac_status=$?
13081 grep -v '^ *+' conftest.er1 >conftest.err
13082 rm -f conftest.er1
13083 cat conftest.err >&5
13084 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13085 (exit $ac_status); } && {
13086 test -z "$ac_c_werror_flag" ||
13087 test ! -s conftest.err
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
13093else
13094 $as_echo "$as_me: failed program was:" >&5
13095sed 's/^/| /' conftest.$ac_ext >&5
13096
13097 ac_cv_lib_dld_dld_link=no
13098fi
d9898ee8 13099
8d138742
CE
13100rm -rf conftest.dSYM
13101rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13102 conftest$ac_exeext conftest.$ac_ext
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
ac40fd9e 13113
d9898ee8 13114
8d138742 13115fi
d9898ee8 13116
d9898ee8 13117
8d138742 13118fi
d9898ee8 13119
d9898ee8 13120
8d138742 13121fi
d9898ee8 13122
d9898ee8 13123
d9898ee8 13124fi
13125
8d138742
CE
13126 ;;
13127 esac
d9898ee8 13128
8d138742
CE
13129 if test "x$lt_cv_dlopen" != xno; then
13130 enable_dlopen=yes
d9898ee8 13131 else
8d138742 13132 enable_dlopen=no
d9898ee8 13133 fi
8d138742
CE
13134
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"
13139
13140 save_LDFLAGS="$LDFLAGS"
13141 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13142
13143 save_LIBS="$LIBS"
13144 LIBS="$lt_cv_dlopen_libs $LIBS"
13145
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
d9898ee8 13150else
8d138742
CE
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
13218 ac_status=$?
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 ;;
13227 esac
13228 else :
13229 # compilation failed
13230 lt_cv_dlopen_self=no
13231 fi
13232fi
13233rm -fr conftest*
d9898ee8 13234
d9898ee8 13235
8d138742
CE
13236fi
13237{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
13238$as_echo "$lt_cv_dlopen_self" >&6; }
13239
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"
13255
13256#if HAVE_DLFCN_H
13257#include <dlfcn.h>
13258#endif
13259
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
d9898ee8 13271
8d138742
CE
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
d9898ee8 13293
8d138742
CE
13294void fnord() { int i=42;}
13295int main ()
13296{
13297 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13298 int status = $lt_dlunknown;
d9898ee8 13299
8d138742
CE
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 }
13306 else
13307 puts (dlerror ());
d9898ee8 13308
8d138742
CE
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 ;;
13323 esac
13324 else :
13325 # compilation failed
13326 lt_cv_dlopen_self_static=no
13327 fi
13328fi
13329rm -fr conftest*
d9898ee8 13330
d9898ee8 13331
8d138742
CE
13332fi
13333{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
13334$as_echo "$lt_cv_dlopen_self_static" >&6; }
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
d9898ee8 13358
d9898ee8 13359
d9898ee8 13360
d9898ee8 13361
d9898ee8 13362
d9898ee8 13363
d9898ee8 13364
d9898ee8 13365
d9898ee8 13366
d9898ee8 13367
d9898ee8 13368
d9898ee8 13369
8d138742
CE
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; }
13388 else
13389 { $as_echo "$as_me:$LINENO: result: no" >&5
13390$as_echo "no" >&6; }
13391 fi
13392 ;;
13393 *)
13394 { $as_echo "$as_me:$LINENO: result: no" >&5
13395$as_echo "no" >&6; }
13396 ;;
13397 esac
13398fi
d9898ee8 13399
d9898ee8 13400
d9898ee8 13401
d9898ee8 13402
d9898ee8 13403
d9898ee8 13404
d9898ee8 13405
d9898ee8 13406
d9898ee8 13407
d9898ee8 13408
d9898ee8 13409
d9898ee8 13410
8d138742
CE
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; }
d9898ee8 13416
8d138742
CE
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
d9898ee8 13420
8d138742
CE
13421 # On AIX, shared libraries and static libraries use the same namespace, and
13422 # are all built from PIC.
13423 case $host_os in
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 ;;
d9898ee8 13431
8d138742
CE
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
13436 ;;
13437 esac
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
d9898ee8 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
d9898ee8 13511
d9898ee8 13512
d9898ee8 13513
d9898ee8 13514
8d138742
CE
13515# If no C compiler was specified, use CC.
13516LTCC=${LTCC-"$CC"}
d9898ee8 13517
8d138742
CE
13518# If no C compiler flags were specified, use CFLAGS.
13519LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
d9898ee8 13520
8d138742
CE
13521# Allow CC to be a program name with arguments.
13522compiler=$CC
d9898ee8 13523
d9898ee8 13524
8d138742
CE
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*
d9898ee8 13531
8d138742
CE
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
13548 else
13549 $as_unset lt_cv_prog_gnu_ld
13550 fi
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
13590fi
d9898ee8 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"
13614 ;;
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
13622 ;;
13623 esac
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
d9898ee8 13902
8d138742 13903 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
d9898ee8 13904
8d138742
CE
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
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 ;;
d9898ee8 14046 esac
8d138742
CE
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
d9898ee8 14441 ;;
8d138742
CE
14442
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
d9898ee8 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 ;;
14543
14544 psos*)
14545 # FIXME: insert proper C++ library support
14546 ld_shlibs_CXX=no
14547 ;;
14548
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'
14602
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
d9898ee8 14642 ;;
8d138742
CE
14643
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'
14649
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'
ac40fd9e 14654 ;;
8d138742
CE
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'
ac40fd9e 14658 ;;
d9898ee8 14659 esac
14660 ;;
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
ac40fd9e 14689 ;;
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 ;;
14704
14705 vxworks*)
14706 # FIXME: insert proper C++ library support
14707 ld_shlibs_CXX=no
14708 ;;
14709
d9898ee8 14710 *)
8d138742
CE
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
CE
14817 *) ;; # Ignore the rest.
14818
14819 esac
14820 done
14821
14822 # Clean up.
14823 rm -f a.out a.exe
d9898ee8 14824else
8d138742 14825 echo "libtool.m4: error: problem compiling CXX test program"
d9898ee8 14826fi
14827
8d138742
CE
14828$RM -f confest.$objext
14829
14830# PORTME: override above test on systems where it is broken
d9898ee8 14831case $host_os in
8d138742
CE
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 ;;
14839
14840linux*)
14841 case `$CC -V 2>&1 | sed 5q` in
14842 *Sun\ C*)
14843 # Sun C++ 5.9
14844
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
14854
14855 if test "$solaris_use_stlport4" != yes; then
14856 postdeps_CXX='-library=Cstd -library=Crun'
14857 fi
d9898ee8 14858 ;;
8d138742
CE
14859 esac
14860 ;;
14861
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
14874
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
d9898ee8 14881 ;;
8d138742
CE
14882 esac
14883 ;;
d9898ee8 14884esac
14885
d9898ee8 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
d9898ee8 14894
d9898ee8 14895
14896
d9898ee8 14897
d9898ee8 14898
d9898ee8 14899
14900
d9898ee8 14901
d9898ee8 14902
d9898ee8 14903
d9898ee8 14904
d9898ee8 14905
d9898ee8 14906
d9898ee8 14907
d9898ee8 14908
d9898ee8 14909
d9898ee8 14910
d9898ee8 14911
d9898ee8 14912
d9898ee8 14913
d9898ee8 14914
d9898ee8 14915
d9898ee8 14916
d9898ee8 14917
d9898ee8 14918
8d138742
CE
14919
14920
14921
14922
14923
14924
14925 lt_prog_compiler_wl_CXX=
14926lt_prog_compiler_pic_CXX=
14927lt_prog_compiler_static_CXX=
14928
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; }
14931
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'
14936
14937 case $host_os in
14938 aix*)
14939 # All AIX code is PIC.
14940 if test "$host_cpu" = ia64; then
14941 # AIX 5 now supports IA64 processor
14942 lt_prog_compiler_static_CXX='-Bstatic'
d9898ee8 14943 fi
14944 ;;
14945
8d138742
CE
14946 amigaos*)
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
14959 ;;
d9898ee8 14960
8d138742
CE
14961 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14962 # PIC is the default for these OSes.
14963 ;;
14964 mingw* | cygwin* | os2* | pw32* | cegcc*)
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).
14967 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14968 # (--disable-auto-import) libraries
14969 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14970 ;;
14971 darwin* | rhapsody*)
14972 # PIC is the default on this platform
14973 # Common symbols not allowed in MH_DYLIB files
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=
14979 ;;
14980 interix[3-9]*)
14981 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14982 # Instead, we relocate shared libraries at runtime.
14983 ;;
14984 sysv4*MP*)
14985 if test -d /usr/nec; then
14986 lt_prog_compiler_pic_CXX=-Kconform_pic
14987 fi
14988 ;;
14989 hpux*)
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.
14993 case $host_cpu in
14994 hppa*64*)
d9898ee8 14995 ;;
8d138742
CE
14996 *)
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'
d9898ee8 15005 ;;
d9898ee8 15006 *)
8d138742 15007 lt_prog_compiler_pic_CXX='-fPIC'
d9898ee8 15008 ;;
15009 esac
d9898ee8 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'
d9898ee8 15017 else
8d138742 15018 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
d9898ee8 15019 fi
8d138742
CE
15020 ;;
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"
d9898ee8 15026 ;;
15027 esac
8d138742
CE
15028 ;;
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'
15155 ;;
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 ;;
d9898ee8 15217 esac
8d138742
CE
15218 ;;
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 ;;
15231 *)
15232 lt_prog_compiler_can_build_shared_CXX=no
15233 ;;
15234 esac
15235 fi
d9898ee8 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; }
d9898ee8 15248
d9898ee8 15249
d9898ee8 15250
8d138742
CE
15251#
15252# Check to make sure the PIC flag actually works.
15253#
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
15262 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15263 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
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:'`
15273 (eval echo "\"\$as_me:15273: $lt_compile\"" >&5)
15274 (eval "$lt_compile" 2>conftest.err)
15275 ac_status=$?
15276 cat conftest.err >&5
15277 echo "$as_me:15277: \$? = $ac_status" >&5
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.
15281 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15282 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15283 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15284 lt_cv_prog_compiler_pic_works_CXX=yes
15285 fi
15286 fi
15287 $RM conftest*
dd184caf 15288
d9898ee8 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; }
dd184caf 15292
8d138742
CE
15293if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15294 case $lt_prog_compiler_pic_CXX in
15295 "" | " "*) ;;
15296 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15297 esac
d9898ee8 15298else
8d138742
CE
15299 lt_prog_compiler_pic_CXX=
15300 lt_prog_compiler_can_build_shared_CXX=no
d9898ee8 15301fi
dd184caf 15302
8d138742 15303fi
d9898ee8 15304
d9898ee8 15305
d9898ee8 15306
8d138742
CE
15307#
15308# Check to make sure the static flag actually works.
15309#
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
15315else
15316 lt_cv_prog_compiler_static_works_CXX=no
15317 save_LDFLAGS="$LDFLAGS"
15318 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15319 echo "$lt_simple_link_test_code" > conftest.$ac_ext
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
15326 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15327 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15328 if diff conftest.exp conftest.er2 >/dev/null; then
15329 lt_cv_prog_compiler_static_works_CXX=yes
15330 fi
15331 else
15332 lt_cv_prog_compiler_static_works_CXX=yes
15333 fi
15334 fi
15335 $RM -r conftest*
15336 LDFLAGS="$save_LDFLAGS"
d9898ee8 15337
8d138742
CE
15338fi
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
CE
15342if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15343 :
15344else
15345 lt_prog_compiler_static_CXX=
15346fi
d9898ee8 15347
d9898ee8 15348
d9898ee8 15349
d9898ee8 15350
8d138742
CE
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
15355else
15356 lt_cv_prog_compiler_c_o_CXX=no
15357 $RM -r conftest 2>/dev/null
15358 mkdir conftest
15359 cd conftest
15360 mkdir out
15361 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 15362
8d138742
CE
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:'`
15372 (eval echo "\"\$as_me:15372: $lt_compile\"" >&5)
15373 (eval "$lt_compile" 2>out/conftest.err)
15374 ac_status=$?
15375 cat out/conftest.err >&5
15376 echo "$as_me:15376: \$? = $ac_status" >&5
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
15381 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
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
15384 lt_cv_prog_compiler_c_o_CXX=yes
15385 fi
15386 fi
15387 chmod u+w . 2>&5
15388 $RM conftest*
15389 # SGI C++ compiler will create directory out/ii_files/ for
15390 # template instantiation
15391 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15392 $RM out/* && rmdir out
15393 cd ..
15394 $RM -r conftest
15395 $RM conftest*
d9898ee8 15396
8d138742
CE
15397fi
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; }
15482
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'
15492 fi
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]_.*'
15505
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
15509
15510with_gnu_ld_CXX=$with_gnu_ld
d9898ee8 15511
d9898ee8 15512
d9898ee8 15513
d9898ee8 15514
d9898ee8 15515
d9898ee8 15516
15517#
15518# Do we need to explicitly link libc?
15519#
8d138742 15520case "x$archive_cmds_need_lc_CXX" in
d9898ee8 15521x|xyes)
15522 # Assume -lc should be added
8d138742 15523 archive_cmds_need_lc_CXX=yes
d9898ee8 15524
15525 if test "$enable_shared" = yes && test "$GCC" = yes; then
8d138742 15526 case $archive_cmds_CXX in
d9898ee8 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.
8d138742
CE
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*
ac40fd9e 15537 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 15538
15539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15540 (eval $ac_compile) 2>&5
15541 ac_status=$?
8d138742 15542 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9898ee8 15543 (exit $ac_status); } 2>conftest.err; then
15544 soname=conftest
15545 lib=conftest
15546 libobjs=conftest.$ac_objext
15547 deplibs=
8d138742
CE
15548 wl=$lt_prog_compiler_wl_CXX
15549 pic_flag=$lt_prog_compiler_pic_CXX
d9898ee8 15550 compiler_flags=-v
15551 linker_flags=-v
15552 verstring=
15553 output_objdir=.
15554 libname=conftest
8d138742
CE
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
d9898ee8 15559 ac_status=$?
8d138742 15560 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9898ee8 15561 (exit $ac_status); }
15562 then
8d138742 15563 archive_cmds_need_lc_CXX=no
d9898ee8 15564 else
8d138742 15565 archive_cmds_need_lc_CXX=yes
d9898ee8 15566 fi
8d138742 15567 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
d9898ee8 15568 else
15569 cat conftest.err 1>&5
15570 fi
8d138742
CE
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; }
d9898ee8 15574 ;;
15575 esac
15576 fi
15577 ;;
15578esac
15579
8d138742
CE
15580
15581
15582
15583
15584
15585
15586
15587
15588
15589
15590
15591
15592
15593
15594
15595
15596
15597
15598
15599
15600
15601
15602
15603
15604
15605
15606
15607
15608
15609
15610
15611
15612
15613
15614
15615
15616
15617
15618
15619
15620
15621
15622
15623
15624
15625
15626
15627
15628
15629
15630
15631
15632
15633
15634
15635
15636
15637
15638
15639
15640
15641
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"
16288fi
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"
16291fi
16292
16293
16294
16295
16296
16297
16298
16299
16300
16301
16302
16303
16304
16305
16306
16307
16308
16309
16310
16311
16312
16313
16314
16315
16316
16317
16318
16319
16320
16321
16322
16323
16324
16325
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
16334
16335 # We can hardcode non-existent directories.
16336 if test "$hardcode_direct_CXX" != no &&
d9898ee8 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
8d138742
CE
16340 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16341 test "$hardcode_minus_L_CXX" != no; then
d9898ee8 16342 # Linking always hardcodes the temporary library directory.
8d138742 16343 hardcode_action_CXX=relink
d9898ee8 16344 else
16345 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8d138742 16346 hardcode_action_CXX=immediate
d9898ee8 16347 fi
16348else
16349 # We cannot hardcode anything, or else we can only hardcode existing
16350 # directories.
8d138742 16351 hardcode_action_CXX=unsupported
d9898ee8 16352fi
8d138742
CE
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
d9898ee8 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
16365
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 16403 ac_config_commands="$ac_config_commands libtool"
d9898ee8 16404
d9898ee8 16405
d9898ee8 16406
d9898ee8 16407
8d138742 16408# Only expand once:
d9898ee8 16409
d9898ee8 16410
d9898ee8 16411
d9898ee8 16412
8d138742
CE
16413saveLIBS="$LIBS"
16414{ $as_echo "$as_me:$LINENO: checking for gdbm_open in -lgdbm" >&5
16415$as_echo_n "checking for gdbm_open in -lgdbm... " >&6; }
16416if test "${ac_cv_lib_gdbm_gdbm_open+set}" = set; then
16417 $as_echo_n "(cached) " >&6
16418else
16419 ac_check_lib_save_LIBS=$LIBS
16420LIBS="-lgdbm $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. */
d9898ee8 16427
8d138742
CE
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 gdbm_open ();
16435int
16436main ()
16437{
16438return gdbm_open ();
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_gdbm_gdbm_open=yes
16465else
16466 $as_echo "$as_me: failed program was:" >&5
16467sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 16468
8d138742
CE
16469 ac_cv_lib_gdbm_gdbm_open=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_gdbm_gdbm_open" >&5
16478$as_echo "$ac_cv_lib_gdbm_gdbm_open" >&6; }
16479if test "x$ac_cv_lib_gdbm_gdbm_open" = x""yes; then
16480 LIBGDBM=-lgdbm ; LIBS="-lgdbm $LIBS"
16481fi
d9898ee8 16482
d9898ee8 16483
8d138742
CE
16484{ $as_echo "$as_me:$LINENO: checking for gdbm_open" >&5
16485$as_echo_n "checking for gdbm_open... " >&6; }
16486if test "${ac_cv_func_gdbm_open+set}" = set; then
16487 $as_echo_n "(cached) " >&6
16488else
16489 cat >conftest.$ac_ext <<_ACEOF
16490/* confdefs.h. */
16491_ACEOF
16492cat confdefs.h >>conftest.$ac_ext
16493cat >>conftest.$ac_ext <<_ACEOF
16494/* end confdefs.h. */
16495/* Define gdbm_open to an innocuous variant, in case <limits.h> declares gdbm_open.
16496 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16497#define gdbm_open innocuous_gdbm_open
d9898ee8 16498
8d138742
CE
16499/* System header to define __stub macros and hopefully few prototypes,
16500 which can conflict with char gdbm_open (); below.
16501 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16502 <limits.h> exists even on freestanding compilers. */
d9898ee8 16503
8d138742
CE
16504#ifdef __STDC__
16505# include <limits.h>
16506#else
16507# include <assert.h>
16508#endif
d9898ee8 16509
8d138742 16510#undef gdbm_open
d9898ee8 16511
8d138742
CE
16512/* Override any GCC internal prototype to avoid an error.
16513 Use char because int might match the return type of a GCC
16514 builtin and then its argument prototype would still apply. */
16515#ifdef __cplusplus
16516extern "C"
16517#endif
16518char gdbm_open ();
16519/* The GNU C library defines this for functions which it implements
16520 to always fail with ENOSYS. Some functions are actually named
16521 something starting with __ and the normal name is an alias. */
16522#if defined __stub_gdbm_open || defined __stub___gdbm_open
16523choke me
16524#endif
d9898ee8 16525
8d138742
CE
16526int
16527main ()
16528{
16529return gdbm_open ();
16530 ;
16531 return 0;
16532}
16533_ACEOF
16534rm -f conftest.$ac_objext conftest$ac_exeext
16535if { (ac_try="$ac_link"
16536case "(($ac_try" in
16537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16538 *) ac_try_echo=$ac_try;;
16539esac
16540eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16541$as_echo "$ac_try_echo") >&5
16542 (eval "$ac_link") 2>conftest.er1
16543 ac_status=$?
16544 grep -v '^ *+' conftest.er1 >conftest.err
16545 rm -f conftest.er1
16546 cat conftest.err >&5
16547 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16548 (exit $ac_status); } && {
16549 test -z "$ac_c_werror_flag" ||
16550 test ! -s conftest.err
16551 } && test -s conftest$ac_exeext && {
16552 test "$cross_compiling" = yes ||
16553 $as_test_x conftest$ac_exeext
16554 }; then
16555 ac_cv_func_gdbm_open=yes
16556else
16557 $as_echo "$as_me: failed program was:" >&5
16558sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 16559
8d138742
CE
16560 ac_cv_func_gdbm_open=no
16561fi
d9898ee8 16562
8d138742
CE
16563rm -rf conftest.dSYM
16564rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16565 conftest$ac_exeext conftest.$ac_ext
16566fi
16567{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_gdbm_open" >&5
16568$as_echo "$ac_cv_func_gdbm_open" >&6; }
16569if test "x$ac_cv_func_gdbm_open" = x""yes; then
16570 FOUND_GDBM=1
16571else
16572 FOUND_GDBM=0
16573fi
d9898ee8 16574
d9898ee8 16575
8d138742
CE
16576if test "$FOUND_GDBM" = 1
16577then
d9898ee8 16578
8d138742
CE
16579for ac_func in gdbm_fdesc
16580do
16581as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16582{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16583$as_echo_n "checking for $ac_func... " >&6; }
16584if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16585 $as_echo_n "(cached) " >&6
16586else
16587 cat >conftest.$ac_ext <<_ACEOF
16588/* confdefs.h. */
16589_ACEOF
16590cat confdefs.h >>conftest.$ac_ext
16591cat >>conftest.$ac_ext <<_ACEOF
16592/* end confdefs.h. */
16593/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16594 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16595#define $ac_func innocuous_$ac_func
d9898ee8 16596
8d138742
CE
16597/* System header to define __stub macros and hopefully few prototypes,
16598 which can conflict with char $ac_func (); below.
16599 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16600 <limits.h> exists even on freestanding compilers. */
d9898ee8 16601
8d138742
CE
16602#ifdef __STDC__
16603# include <limits.h>
16604#else
16605# include <assert.h>
16606#endif
d9898ee8 16607
8d138742 16608#undef $ac_func
d9898ee8 16609
8d138742
CE
16610/* Override any GCC internal prototype to avoid an error.
16611 Use char because int might match the return type of a GCC
16612 builtin and then its argument prototype would still apply. */
16613#ifdef __cplusplus
16614extern "C"
16615#endif
16616char $ac_func ();
16617/* The GNU C library defines this for functions which it implements
16618 to always fail with ENOSYS. Some functions are actually named
16619 something starting with __ and the normal name is an alias. */
16620#if defined __stub_$ac_func || defined __stub___$ac_func
16621choke me
16622#endif
d9898ee8 16623
8d138742
CE
16624int
16625main ()
16626{
16627return $ac_func ();
16628 ;
16629 return 0;
16630}
16631_ACEOF
16632rm -f conftest.$ac_objext conftest$ac_exeext
16633if { (ac_try="$ac_link"
16634case "(($ac_try" in
16635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16636 *) ac_try_echo=$ac_try;;
16637esac
16638eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16639$as_echo "$ac_try_echo") >&5
16640 (eval "$ac_link") 2>conftest.er1
16641 ac_status=$?
16642 grep -v '^ *+' conftest.er1 >conftest.err
16643 rm -f conftest.er1
16644 cat conftest.err >&5
16645 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16646 (exit $ac_status); } && {
16647 test -z "$ac_c_werror_flag" ||
16648 test ! -s conftest.err
16649 } && test -s conftest$ac_exeext && {
16650 test "$cross_compiling" = yes ||
16651 $as_test_x conftest$ac_exeext
16652 }; then
16653 eval "$as_ac_var=yes"
16654else
16655 $as_echo "$as_me: failed program was:" >&5
16656sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 16657
8d138742
CE
16658 eval "$as_ac_var=no"
16659fi
d9898ee8 16660
8d138742
CE
16661rm -rf conftest.dSYM
16662rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16663 conftest$ac_exeext conftest.$ac_ext
16664fi
16665ac_res=`eval 'as_val=${'$as_ac_var'}
16666 $as_echo "$as_val"'`
16667 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16668$as_echo "$ac_res" >&6; }
16669as_val=`eval 'as_val=${'$as_ac_var'}
16670 $as_echo "$as_val"'`
16671 if test "x$as_val" = x""yes; then
16672 cat >>confdefs.h <<_ACEOF
16673#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16674_ACEOF
d9898ee8 16675
8d138742
CE
16676fi
16677done
d9898ee8 16678
8d138742 16679fi
d9898ee8 16680
d9898ee8 16681
8d138742
CE
16682for ac_header in unistd.h fcntl.h
16683do
16684as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16685if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16686 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16687$as_echo_n "checking for $ac_header... " >&6; }
16688if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16689 $as_echo_n "(cached) " >&6
16690fi
16691ac_res=`eval 'as_val=${'$as_ac_Header'}
16692 $as_echo "$as_val"'`
16693 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16694$as_echo "$ac_res" >&6; }
16695else
16696 # Is the header compilable?
16697{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16698$as_echo_n "checking $ac_header usability... " >&6; }
16699cat >conftest.$ac_ext <<_ACEOF
16700/* confdefs.h. */
16701_ACEOF
16702cat confdefs.h >>conftest.$ac_ext
16703cat >>conftest.$ac_ext <<_ACEOF
16704/* end confdefs.h. */
16705$ac_includes_default
16706#include <$ac_header>
16707_ACEOF
16708rm -f conftest.$ac_objext
16709if { (ac_try="$ac_compile"
16710case "(($ac_try" in
16711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16712 *) ac_try_echo=$ac_try;;
16713esac
16714eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16715$as_echo "$ac_try_echo") >&5
16716 (eval "$ac_compile") 2>conftest.er1
16717 ac_status=$?
16718 grep -v '^ *+' conftest.er1 >conftest.err
16719 rm -f conftest.er1
16720 cat conftest.err >&5
16721 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16722 (exit $ac_status); } && {
16723 test -z "$ac_c_werror_flag" ||
16724 test ! -s conftest.err
16725 } && test -s conftest.$ac_objext; then
16726 ac_header_compiler=yes
16727else
16728 $as_echo "$as_me: failed program was:" >&5
16729sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 16730
8d138742
CE
16731 ac_header_compiler=no
16732fi
d9898ee8 16733
8d138742
CE
16734rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16735{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16736$as_echo "$ac_header_compiler" >&6; }
d9898ee8 16737
8d138742
CE
16738# Is the header present?
16739{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16740$as_echo_n "checking $ac_header presence... " >&6; }
16741cat >conftest.$ac_ext <<_ACEOF
16742/* confdefs.h. */
16743_ACEOF
16744cat confdefs.h >>conftest.$ac_ext
16745cat >>conftest.$ac_ext <<_ACEOF
16746/* end confdefs.h. */
16747#include <$ac_header>
16748_ACEOF
16749if { (ac_try="$ac_cpp conftest.$ac_ext"
16750case "(($ac_try" in
16751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16752 *) ac_try_echo=$ac_try;;
16753esac
16754eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16755$as_echo "$ac_try_echo") >&5
16756 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16757 ac_status=$?
16758 grep -v '^ *+' conftest.er1 >conftest.err
16759 rm -f conftest.er1
16760 cat conftest.err >&5
16761 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16762 (exit $ac_status); } >/dev/null && {
16763 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16764 test ! -s conftest.err
16765 }; then
16766 ac_header_preproc=yes
16767else
16768 $as_echo "$as_me: failed program was:" >&5
16769sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 16770
8d138742
CE
16771 ac_header_preproc=no
16772fi
d9898ee8 16773
8d138742
CE
16774rm -f conftest.err conftest.$ac_ext
16775{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16776$as_echo "$ac_header_preproc" >&6; }
d9898ee8 16777
8d138742
CE
16778# So? What about this header?
16779case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16780 yes:no: )
16781 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16782$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16783 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16784$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16785 ac_header_preproc=yes
16786 ;;
16787 no:yes:* )
16788 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16789$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16790 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16791$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16792 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16793$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16794 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16795$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16796 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16797$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16798 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16799$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16800 ( cat <<\_ASBOX
16801## -------------------------------------------------- ##
16802## Report this to courier-users@lists.sourceforge.net ##
16803## -------------------------------------------------- ##
16804_ASBOX
16805 ) | sed "s/^/$as_me: WARNING: /" >&2
16806 ;;
16807esac
16808{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16809$as_echo_n "checking for $ac_header... " >&6; }
16810if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16811 $as_echo_n "(cached) " >&6
16812else
16813 eval "$as_ac_Header=\$ac_header_preproc"
16814fi
16815ac_res=`eval 'as_val=${'$as_ac_Header'}
16816 $as_echo "$as_val"'`
16817 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16818$as_echo "$ac_res" >&6; }
d9898ee8 16819
8d138742
CE
16820fi
16821as_val=`eval 'as_val=${'$as_ac_Header'}
16822 $as_echo "$as_val"'`
16823 if test "x$as_val" = x""yes; then
16824 cat >>confdefs.h <<_ACEOF
16825#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16826_ACEOF
d9898ee8 16827
8d138742 16828fi
d9898ee8 16829
8d138742 16830done
d9898ee8 16831
d9898ee8 16832
8d138742 16833LIBS="$saveLIBS"
d9898ee8 16834
d9898ee8 16835
d9898ee8 16836
8d138742
CE
16837 if test "$FOUND_GDBM" = 1; then
16838 FOUND_GDBM_TRUE=
16839 FOUND_GDBM_FALSE='#'
16840else
16841 FOUND_GDBM_TRUE='#'
16842 FOUND_GDBM_FALSE=
16843fi
d9898ee8 16844
d9898ee8 16845
d9898ee8 16846
8d138742
CE
16847{ $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
16848$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
16849if test "${ac_cv_c_const+set}" = set; then
16850 $as_echo_n "(cached) " >&6
16851else
16852 cat >conftest.$ac_ext <<_ACEOF
16853/* confdefs.h. */
16854_ACEOF
16855cat confdefs.h >>conftest.$ac_ext
16856cat >>conftest.$ac_ext <<_ACEOF
16857/* end confdefs.h. */
d9898ee8 16858
8d138742
CE
16859int
16860main ()
16861{
16862/* FIXME: Include the comments suggested by Paul. */
16863#ifndef __cplusplus
16864 /* Ultrix mips cc rejects this. */
16865 typedef int charset[2];
16866 const charset cs;
16867 /* SunOS 4.1.1 cc rejects this. */
16868 char const *const *pcpcc;
16869 char **ppc;
16870 /* NEC SVR4.0.2 mips cc rejects this. */
16871 struct point {int x, y;};
16872 static struct point const zero = {0,0};
16873 /* AIX XL C 1.02.0.0 rejects this.
16874 It does not let you subtract one const X* pointer from another in
16875 an arm of an if-expression whose if-part is not a constant
16876 expression */
16877 const char *g = "string";
16878 pcpcc = &g + (g ? g-g : 0);
16879 /* HPUX 7.0 cc rejects these. */
16880 ++pcpcc;
16881 ppc = (char**) pcpcc;
16882 pcpcc = (char const *const *) ppc;
16883 { /* SCO 3.2v4 cc rejects this. */
16884 char *t;
16885 char const *s = 0 ? (char *) 0 : (char const *) 0;
d9898ee8 16886
8d138742
CE
16887 *t++ = 0;
16888 if (s) return 0;
16889 }
16890 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
16891 int x[] = {25, 17};
16892 const int *foo = &x[0];
16893 ++foo;
16894 }
16895 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16896 typedef const int *iptr;
16897 iptr p = 0;
16898 ++p;
16899 }
16900 { /* AIX XL C 1.02.0.0 rejects this saying
16901 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16902 struct s { int j; const int *ap[3]; };
16903 struct s *b; b->j = 5;
16904 }
16905 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16906 const int foo = 10;
16907 if (!foo) return 0;
16908 }
16909 return !cs[0] && !zero.x;
16910#endif
d9898ee8 16911
8d138742
CE
16912 ;
16913 return 0;
16914}
16915_ACEOF
16916rm -f conftest.$ac_objext
16917if { (ac_try="$ac_compile"
16918case "(($ac_try" in
16919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16920 *) ac_try_echo=$ac_try;;
16921esac
16922eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16923$as_echo "$ac_try_echo") >&5
16924 (eval "$ac_compile") 2>conftest.er1
16925 ac_status=$?
16926 grep -v '^ *+' conftest.er1 >conftest.err
16927 rm -f conftest.er1
16928 cat conftest.err >&5
16929 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16930 (exit $ac_status); } && {
16931 test -z "$ac_c_werror_flag" ||
16932 test ! -s conftest.err
16933 } && test -s conftest.$ac_objext; then
16934 ac_cv_c_const=yes
16935else
16936 $as_echo "$as_me: failed program was:" >&5
16937sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 16938
8d138742
CE
16939 ac_cv_c_const=no
16940fi
d9898ee8 16941
8d138742
CE
16942rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16943fi
16944{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
16945$as_echo "$ac_cv_c_const" >&6; }
16946if test $ac_cv_c_const = no; then
d9898ee8 16947
8d138742
CE
16948cat >>confdefs.h <<\_ACEOF
16949#define const /**/
16950_ACEOF
d9898ee8 16951
8d138742 16952fi
d9898ee8 16953
8d138742
CE
16954{ $as_echo "$as_me:$LINENO: checking for size_t" >&5
16955$as_echo_n "checking for size_t... " >&6; }
16956if test "${ac_cv_type_size_t+set}" = set; then
16957 $as_echo_n "(cached) " >&6
16958else
16959 ac_cv_type_size_t=no
16960cat >conftest.$ac_ext <<_ACEOF
16961/* confdefs.h. */
16962_ACEOF
16963cat confdefs.h >>conftest.$ac_ext
16964cat >>conftest.$ac_ext <<_ACEOF
16965/* end confdefs.h. */
16966$ac_includes_default
16967int
16968main ()
16969{
16970if (sizeof (size_t))
16971 return 0;
16972 ;
16973 return 0;
16974}
16975_ACEOF
16976rm -f conftest.$ac_objext
16977if { (ac_try="$ac_compile"
16978case "(($ac_try" in
16979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16980 *) ac_try_echo=$ac_try;;
16981esac
16982eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16983$as_echo "$ac_try_echo") >&5
16984 (eval "$ac_compile") 2>conftest.er1
16985 ac_status=$?
16986 grep -v '^ *+' conftest.er1 >conftest.err
16987 rm -f conftest.er1
16988 cat conftest.err >&5
16989 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16990 (exit $ac_status); } && {
16991 test -z "$ac_c_werror_flag" ||
16992 test ! -s conftest.err
16993 } && test -s conftest.$ac_objext; then
16994 cat >conftest.$ac_ext <<_ACEOF
16995/* confdefs.h. */
16996_ACEOF
16997cat confdefs.h >>conftest.$ac_ext
16998cat >>conftest.$ac_ext <<_ACEOF
16999/* end confdefs.h. */
17000$ac_includes_default
17001int
17002main ()
17003{
17004if (sizeof ((size_t)))
17005 return 0;
17006 ;
17007 return 0;
17008}
17009_ACEOF
17010rm -f conftest.$ac_objext
17011if { (ac_try="$ac_compile"
17012case "(($ac_try" in
17013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17014 *) ac_try_echo=$ac_try;;
17015esac
17016eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17017$as_echo "$ac_try_echo") >&5
17018 (eval "$ac_compile") 2>conftest.er1
17019 ac_status=$?
17020 grep -v '^ *+' conftest.er1 >conftest.err
17021 rm -f conftest.er1
17022 cat conftest.err >&5
17023 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17024 (exit $ac_status); } && {
17025 test -z "$ac_c_werror_flag" ||
17026 test ! -s conftest.err
17027 } && test -s conftest.$ac_objext; then
17028 :
17029else
17030 $as_echo "$as_me: failed program was:" >&5
17031sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 17032
8d138742
CE
17033 ac_cv_type_size_t=yes
17034fi
d9898ee8 17035
8d138742
CE
17036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17037else
17038 $as_echo "$as_me: failed program was:" >&5
17039sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 17040
17041
d9898ee8 17042fi
17043
8d138742
CE
17044rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17045fi
17046{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17047$as_echo "$ac_cv_type_size_t" >&6; }
17048if test "x$ac_cv_type_size_t" = x""yes; then
17049 :
17050else
d9898ee8 17051
8d138742
CE
17052cat >>confdefs.h <<_ACEOF
17053#define size_t unsigned int
17054_ACEOF
d9898ee8 17055
8d138742 17056fi
d9898ee8 17057
d9898ee8 17058
17059
8d138742
CE
17060ac_ext=cpp
17061ac_cpp='$CXXCPP $CPPFLAGS'
17062ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17063ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17064ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
d9898ee8 17065
8d138742
CE
17066{ $as_echo "$as_me:$LINENO: checking if the C++ compiler needs -fhandle-exceptions" >&5
17067$as_echo_n "checking if the C++ compiler needs -fhandle-exceptions... " >&6; }
17068if test "${ac_cv_need_handlexceptions+set}" = set; then
17069 $as_echo_n "(cached) " >&6
17070else
17071 cat >conftest.$ac_ext <<_ACEOF
17072/* confdefs.h. */
17073_ACEOF
17074cat confdefs.h >>conftest.$ac_ext
17075cat >>conftest.$ac_ext <<_ACEOF
17076/* end confdefs.h. */
d9898ee8 17077
8d138742
CE
17078int
17079main ()
17080{
d9898ee8 17081
8d138742 17082throw;
d9898ee8 17083
8d138742
CE
17084 ;
17085 return 0;
17086}
17087_ACEOF
17088rm -f conftest.$ac_objext
17089if { (ac_try="$ac_compile"
17090case "(($ac_try" in
17091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17092 *) ac_try_echo=$ac_try;;
17093esac
17094eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17095$as_echo "$ac_try_echo") >&5
17096 (eval "$ac_compile") 2>conftest.er1
17097 ac_status=$?
17098 grep -v '^ *+' conftest.er1 >conftest.err
17099 rm -f conftest.er1
17100 cat conftest.err >&5
17101 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17102 (exit $ac_status); } && {
17103 test -z "$ac_cxx_werror_flag" ||
17104 test ! -s conftest.err
17105 } && test -s conftest.$ac_objext; then
17106 ac_cv_need_handlexceptions=no
17107else
17108 $as_echo "$as_me: failed program was:" >&5
17109sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 17110
8d138742
CE
17111 ac_cv_need_handlexceptions=yes
17112fi
d9898ee8 17113
8d138742 17114rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 17115
8d138742
CE
17116fi
17117{ $as_echo "$as_me:$LINENO: result: $ac_cv_need_handlexceptions" >&5
17118$as_echo "$ac_cv_need_handlexceptions" >&6; }
d9898ee8 17119
8d138742
CE
17120if test "$ac_cv_need_handlexceptions" = "yes"
17121then
17122 case "$CXXFLAGS" in
17123 *handle-exceptions*)
17124 ;;
17125 *)
17126 CXXFLAGS="-fhandle-exceptions $CXXFLAGS"
17127 CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-O2//'`
17128 ;;
17129 esac
17130fi
d9898ee8 17131
8d138742 17132ac_config_files="$ac_config_files Makefile"
d9898ee8 17133
8d138742
CE
17134cat >confcache <<\_ACEOF
17135# This file is a shell script that caches the results of configure
17136# tests run on this system so they can be shared between configure
17137# scripts and configure runs, see configure's option --config-cache.
17138# It is not useful on other systems. If it contains results you don't
17139# want to keep, you may remove or edit it.
17140#
17141# config.status only pays attention to the cache file if you give it
17142# the --recheck option to rerun configure.
17143#
17144# `ac_cv_env_foo' variables (set or unset) will be overridden when
17145# loading this file, other *unset* `ac_cv_foo' will be assigned the
17146# following values.
d9898ee8 17147
8d138742 17148_ACEOF
d9898ee8 17149
8d138742
CE
17150# The following way of writing the cache mishandles newlines in values,
17151# but we know of no workaround that is simple, portable, and efficient.
17152# So, we kill variables containing newlines.
17153# Ultrix sh set writes to stderr and can't be redirected directly,
17154# and sets the high bit in the cache file unless we assign to the vars.
17155(
17156 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17157 eval ac_val=\$$ac_var
17158 case $ac_val in #(
17159 *${as_nl}*)
17160 case $ac_var in #(
17161 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
17162$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17163 esac
17164 case $ac_var in #(
17165 _ | IFS | as_nl) ;; #(
17166 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17167 *) $as_unset $ac_var ;;
17168 esac ;;
d9898ee8 17169 esac
17170 done
17171
8d138742
CE
17172 (set) 2>&1 |
17173 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17174 *${as_nl}ac_space=\ *)
17175 # `set' does not quote correctly, so add quotes (double-quote
17176 # substitution turns \\\\ into \\, and sed turns \\ into \).
17177 sed -n \
17178 "s/'/'\\\\''/g;
17179 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17180 ;; #(
17181 *)
17182 # `set' quotes correctly as required by POSIX, so do not add quotes.
17183 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17184 ;;
17185 esac |
17186 sort
17187) |
17188 sed '
17189 /^ac_cv_env_/b end
17190 t clear
17191 :clear
17192 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17193 t end
17194 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17195 :end' >>confcache
17196if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17197 if test -w "$cache_file"; then
17198 test "x$cache_file" != "x/dev/null" &&
17199 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
17200$as_echo "$as_me: updating cache $cache_file" >&6;}
17201 cat confcache >$cache_file
17202 else
17203 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
17204$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17205 fi
17206fi
17207rm -f confcache
d9898ee8 17208
8d138742
CE
17209test "x$prefix" = xNONE && prefix=$ac_default_prefix
17210# Let make expand exec_prefix.
17211test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
d9898ee8 17212
8d138742 17213DEFS=-DHAVE_CONFIG_H
d9898ee8 17214
8d138742
CE
17215ac_libobjs=
17216ac_ltlibobjs=
17217for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17218 # 1. Remove the extension, and $U if already installed.
17219 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17220 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17221 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17222 # will be set to the directory where LIBOBJS objects are built.
17223 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17224 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
17225done
17226LIBOBJS=$ac_libobjs
d9898ee8 17227
8d138742 17228LTLIBOBJS=$ac_ltlibobjs
d9898ee8 17229
d9898ee8 17230
8d138742
CE
17231 if test -n "$EXEEXT"; then
17232 am__EXEEXT_TRUE=
17233 am__EXEEXT_FALSE='#'
17234else
17235 am__EXEEXT_TRUE='#'
17236 am__EXEEXT_FALSE=
17237fi
d9898ee8 17238
8d138742
CE
17239if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17240 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
17241Usually this means the macro was only invoked conditionally." >&5
17242$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
17243Usually this means the macro was only invoked conditionally." >&2;}
17244 { (exit 1); exit 1; }; }
17245fi
17246if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17247 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
17248Usually this means the macro was only invoked conditionally." >&5
17249$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
17250Usually this means the macro was only invoked conditionally." >&2;}
17251 { (exit 1); exit 1; }; }
17252fi
17253if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17254 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
17255Usually this means the macro was only invoked conditionally." >&5
17256$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
17257Usually this means the macro was only invoked conditionally." >&2;}
17258 { (exit 1); exit 1; }; }
17259fi
17260if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17261 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
17262Usually this means the macro was only invoked conditionally." >&5
17263$as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
17264Usually this means the macro was only invoked conditionally." >&2;}
17265 { (exit 1); exit 1; }; }
17266fi
17267if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17268 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
17269Usually this means the macro was only invoked conditionally." >&5
17270$as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
17271Usually this means the macro was only invoked conditionally." >&2;}
17272 { (exit 1); exit 1; }; }
17273fi
17274if test -z "${FOUND_GDBM_TRUE}" && test -z "${FOUND_GDBM_FALSE}"; then
17275 { { $as_echo "$as_me:$LINENO: error: conditional \"FOUND_GDBM\" was never defined.
17276Usually this means the macro was only invoked conditionally." >&5
17277$as_echo "$as_me: error: conditional \"FOUND_GDBM\" was never defined.
17278Usually this means the macro was only invoked conditionally." >&2;}
17279 { (exit 1); exit 1; }; }
17280fi
d9898ee8 17281
8d138742
CE
17282: ${CONFIG_STATUS=./config.status}
17283ac_write_fail=0
17284ac_clean_files_save=$ac_clean_files
17285ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17286{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17287$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17288cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17289#! $SHELL
17290# Generated by $as_me.
17291# Run this file to recreate the current configuration.
17292# Compiler output produced by configure, useful for debugging
17293# configure, is in config.log if it exists.
d9898ee8 17294
8d138742
CE
17295debug=false
17296ac_cs_recheck=false
17297ac_cs_silent=false
17298SHELL=\${CONFIG_SHELL-$SHELL}
17299_ACEOF
d9898ee8 17300
8d138742
CE
17301cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17302## --------------------- ##
17303## M4sh Initialization. ##
17304## --------------------- ##
d9898ee8 17305
8d138742
CE
17306# Be more Bourne compatible
17307DUALCASE=1; export DUALCASE # for MKS sh
17308if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17309 emulate sh
17310 NULLCMD=:
17311 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17312 # is contrary to our usage. Disable this feature.
17313 alias -g '${1+"$@"}'='"$@"'
17314 setopt NO_GLOB_SUBST
17315else
17316 case `(set -o) 2>/dev/null` in
17317 *posix*) set -o posix ;;
17318esac
d9898ee8 17319
8d138742 17320fi
d9898ee8 17321
d9898ee8 17322
d9898ee8 17323
d9898ee8 17324
8d138742
CE
17325# PATH needs CR
17326# Avoid depending upon Character Ranges.
17327as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17328as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17329as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17330as_cr_digits='0123456789'
17331as_cr_alnum=$as_cr_Letters$as_cr_digits
d9898ee8 17332
8d138742
CE
17333as_nl='
17334'
17335export as_nl
17336# Printing a long string crashes Solaris 7 /usr/bin/printf.
17337as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17338as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17339as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17340if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17341 as_echo='printf %s\n'
17342 as_echo_n='printf %s'
17343else
17344 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17345 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17346 as_echo_n='/usr/ucb/echo -n'
17347 else
17348 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17349 as_echo_n_body='eval
17350 arg=$1;
17351 case $arg in
17352 *"$as_nl"*)
17353 expr "X$arg" : "X\\(.*\\)$as_nl";
17354 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17355 esac;
17356 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17357 '
17358 export as_echo_n_body
17359 as_echo_n='sh -c $as_echo_n_body as_echo'
17360 fi
17361 export as_echo_body
17362 as_echo='sh -c $as_echo_body as_echo'
17363fi
d9898ee8 17364
8d138742
CE
17365# The user is always right.
17366if test "${PATH_SEPARATOR+set}" != set; then
17367 PATH_SEPARATOR=:
17368 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17369 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17370 PATH_SEPARATOR=';'
17371 }
17372fi
d9898ee8 17373
8d138742
CE
17374# Support unset when possible.
17375if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
17376 as_unset=unset
17377else
17378 as_unset=false
17379fi
d9898ee8 17380
d9898ee8 17381
8d138742
CE
17382# IFS
17383# We need space, tab and new line, in precisely that order. Quoting is
17384# there to prevent editors from complaining about space-tab.
17385# (If _AS_PATH_WALK were called with IFS unset, it would disable word
17386# splitting by setting IFS to empty value.)
17387IFS=" "" $as_nl"
d9898ee8 17388
8d138742
CE
17389# Find who we are. Look in the path if we contain no directory separator.
17390case $0 in
17391 *[\\/]* ) as_myself=$0 ;;
17392 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17393for as_dir in $PATH
17394do
17395 IFS=$as_save_IFS
17396 test -z "$as_dir" && as_dir=.
17397 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17398done
17399IFS=$as_save_IFS
d9898ee8 17400
8d138742
CE
17401 ;;
17402esac
17403# We did not find ourselves, most probably we were run as `sh COMMAND'
17404# in which case we are not to be found in the path.
17405if test "x$as_myself" = x; then
17406 as_myself=$0
17407fi
17408if test ! -f "$as_myself"; then
17409 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17410 { (exit 1); exit 1; }
17411fi
d9898ee8 17412
8d138742
CE
17413# Work around bugs in pre-3.0 UWIN ksh.
17414for as_var in ENV MAIL MAILPATH
17415do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
17416done
17417PS1='$ '
17418PS2='> '
17419PS4='+ '
d9898ee8 17420
8d138742
CE
17421# NLS nuisances.
17422LC_ALL=C
17423export LC_ALL
17424LANGUAGE=C
17425export LANGUAGE
d9898ee8 17426
8d138742
CE
17427# Required to use basename.
17428if expr a : '\(a\)' >/dev/null 2>&1 &&
17429 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17430 as_expr=expr
17431else
17432 as_expr=false
17433fi
d9898ee8 17434
8d138742
CE
17435if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17436 as_basename=basename
17437else
17438 as_basename=false
17439fi
d9898ee8 17440
d9898ee8 17441
8d138742
CE
17442# Name of the executable.
17443as_me=`$as_basename -- "$0" ||
17444$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17445 X"$0" : 'X\(//\)$' \| \
17446 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17447$as_echo X/"$0" |
17448 sed '/^.*\/\([^/][^/]*\)\/*$/{
17449 s//\1/
17450 q
17451 }
17452 /^X\/\(\/\/\)$/{
17453 s//\1/
17454 q
17455 }
17456 /^X\/\(\/\).*/{
17457 s//\1/
17458 q
17459 }
17460 s/.*/./; q'`
d9898ee8 17461
8d138742
CE
17462# CDPATH.
17463$as_unset CDPATH
d9898ee8 17464
d9898ee8 17465
d9898ee8 17466
8d138742
CE
17467 as_lineno_1=$LINENO
17468 as_lineno_2=$LINENO
17469 test "x$as_lineno_1" != "x$as_lineno_2" &&
17470 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
d9898ee8 17471
8d138742
CE
17472 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17473 # uniformly replaced by the line number. The first 'sed' inserts a
17474 # line-number line after each line using $LINENO; the second 'sed'
17475 # does the real work. The second script uses 'N' to pair each
17476 # line-number line with the line containing $LINENO, and appends
17477 # trailing '-' during substitution so that $LINENO is not a special
17478 # case at line end.
17479 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17480 # scripts with optimization help from Paolo Bonzini. Blame Lee
17481 # E. McMahon (1931-1989) for sed's syntax. :-)
17482 sed -n '
17483 p
17484 /[$]LINENO/=
17485 ' <$as_myself |
17486 sed '
17487 s/[$]LINENO.*/&-/
17488 t lineno
17489 b
17490 :lineno
17491 N
17492 :loop
17493 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
17494 t loop
17495 s/-\n.*//
17496 ' >$as_me.lineno &&
17497 chmod +x "$as_me.lineno" ||
17498 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
17499 { (exit 1); exit 1; }; }
d9898ee8 17500
8d138742
CE
17501 # Don't try to exec as it changes $[0], causing all sort of problems
17502 # (the dirname of $[0] is not the place where we might find the
17503 # original and so on. Autoconf is especially sensitive to this).
17504 . "./$as_me.lineno"
17505 # Exit status is that of the last command.
17506 exit
17507}
d9898ee8 17508
d9898ee8 17509
8d138742
CE
17510if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17511 as_dirname=dirname
17512else
17513 as_dirname=false
17514fi
d9898ee8 17515
8d138742
CE
17516ECHO_C= ECHO_N= ECHO_T=
17517case `echo -n x` in
17518-n*)
17519 case `echo 'x\c'` in
17520 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17521 *) ECHO_C='\c';;
17522 esac;;
17523*)
17524 ECHO_N='-n';;
17525esac
17526if expr a : '\(a\)' >/dev/null 2>&1 &&
17527 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17528 as_expr=expr
17529else
17530 as_expr=false
17531fi
d9898ee8 17532
8d138742
CE
17533rm -f conf$$ conf$$.exe conf$$.file
17534if test -d conf$$.dir; then
17535 rm -f conf$$.dir/conf$$.file
17536else
17537 rm -f conf$$.dir
17538 mkdir conf$$.dir 2>/dev/null
17539fi
17540if (echo >conf$$.file) 2>/dev/null; then
17541 if ln -s conf$$.file conf$$ 2>/dev/null; then
17542 as_ln_s='ln -s'
17543 # ... but there are two gotchas:
17544 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17545 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17546 # In both cases, we have to default to `cp -p'.
17547 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17548 as_ln_s='cp -p'
17549 elif ln conf$$.file conf$$ 2>/dev/null; then
17550 as_ln_s=ln
17551 else
17552 as_ln_s='cp -p'
17553 fi
17554else
17555 as_ln_s='cp -p'
17556fi
17557rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17558rmdir conf$$.dir 2>/dev/null
d9898ee8 17559
8d138742
CE
17560if mkdir -p . 2>/dev/null; then
17561 as_mkdir_p=:
17562else
17563 test -d ./-p && rmdir ./-p
17564 as_mkdir_p=false
17565fi
d9898ee8 17566
8d138742
CE
17567if test -x / >/dev/null 2>&1; then
17568 as_test_x='test -x'
17569else
17570 if ls -dL / >/dev/null 2>&1; then
17571 as_ls_L_option=L
17572 else
17573 as_ls_L_option=
17574 fi
17575 as_test_x='
17576 eval sh -c '\''
17577 if test -d "$1"; then
17578 test -d "$1/.";
17579 else
17580 case $1 in
17581 -*)set "./$1";;
17582 esac;
17583 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
17584 ???[sx]*):;;*)false;;esac;fi
17585 '\'' sh
17586 '
17587fi
17588as_executable_p=$as_test_x
d9898ee8 17589
8d138742
CE
17590# Sed expression to map a string onto a valid CPP name.
17591as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
d9898ee8 17592
8d138742
CE
17593# Sed expression to map a string onto a valid variable name.
17594as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
d9898ee8 17595
d9898ee8 17596
8d138742 17597exec 6>&1
d9898ee8 17598
8d138742
CE
17599# Save the log message, to keep $[0] and so on meaningful, and to
17600# report actual input values of CONFIG_FILES etc. instead of their
17601# values after options handling.
17602ac_log="
17603This file was extended by gdbmobj $as_me 0.10, which was
17604generated by GNU Autoconf 2.63. Invocation command line was
d9898ee8 17605
8d138742
CE
17606 CONFIG_FILES = $CONFIG_FILES
17607 CONFIG_HEADERS = $CONFIG_HEADERS
17608 CONFIG_LINKS = $CONFIG_LINKS
17609 CONFIG_COMMANDS = $CONFIG_COMMANDS
17610 $ $0 $@
d9898ee8 17611
8d138742
CE
17612on `(hostname || uname -n) 2>/dev/null | sed 1q`
17613"
d9898ee8 17614
8d138742 17615_ACEOF
d9898ee8 17616
8d138742
CE
17617case $ac_config_files in *"
17618"*) set x $ac_config_files; shift; ac_config_files=$*;;
17619esac
d9898ee8 17620
8d138742
CE
17621case $ac_config_headers in *"
17622"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17623esac
d9898ee8 17624
d9898ee8 17625
8d138742
CE
17626cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17627# Files that config.status was made for.
17628config_files="$ac_config_files"
17629config_headers="$ac_config_headers"
17630config_commands="$ac_config_commands"
d9898ee8 17631
8d138742 17632_ACEOF
d9898ee8 17633
8d138742
CE
17634cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17635ac_cs_usage="\
17636\`$as_me' instantiates files from templates according to the
17637current configuration.
d9898ee8 17638
8d138742 17639Usage: $0 [OPTION]... [FILE]...
d9898ee8 17640
8d138742
CE
17641 -h, --help print this help, then exit
17642 -V, --version print version number and configuration settings, then exit
17643 -q, --quiet, --silent
17644 do not print progress messages
17645 -d, --debug don't remove temporary files
17646 --recheck update $as_me by reconfiguring in the same conditions
17647 --file=FILE[:TEMPLATE]
17648 instantiate the configuration file FILE
17649 --header=FILE[:TEMPLATE]
17650 instantiate the configuration header FILE
d9898ee8 17651
8d138742
CE
17652Configuration files:
17653$config_files
d9898ee8 17654
8d138742
CE
17655Configuration headers:
17656$config_headers
d9898ee8 17657
8d138742
CE
17658Configuration commands:
17659$config_commands
d9898ee8 17660
8d138742 17661Report bugs to <bug-autoconf@gnu.org>."
d9898ee8 17662
8d138742
CE
17663_ACEOF
17664cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17665ac_cs_version="\\
17666gdbmobj config.status 0.10
17667configured by $0, generated by GNU Autoconf 2.63,
17668 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
d9898ee8 17669
8d138742
CE
17670Copyright (C) 2008 Free Software Foundation, Inc.
17671This config.status script is free software; the Free Software Foundation
17672gives unlimited permission to copy, distribute and modify it."
d9898ee8 17673
8d138742
CE
17674ac_pwd='$ac_pwd'
17675srcdir='$srcdir'
17676INSTALL='$INSTALL'
17677MKDIR_P='$MKDIR_P'
17678AWK='$AWK'
17679test -n "\$AWK" || AWK=awk
17680_ACEOF
d9898ee8 17681
8d138742
CE
17682cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17683# The default lists apply if the user does not specify any file.
17684ac_need_defaults=:
17685while test $# != 0
17686do
17687 case $1 in
17688 --*=*)
17689 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17690 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17691 ac_shift=:
17692 ;;
17693 *)
17694 ac_option=$1
17695 ac_optarg=$2
17696 ac_shift=shift
17697 ;;
17698 esac
d9898ee8 17699
8d138742
CE
17700 case $ac_option in
17701 # Handling of the options.
17702 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17703 ac_cs_recheck=: ;;
17704 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17705 $as_echo "$ac_cs_version"; exit ;;
17706 --debug | --debu | --deb | --de | --d | -d )
17707 debug=: ;;
17708 --file | --fil | --fi | --f )
17709 $ac_shift
17710 case $ac_optarg in
17711 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17712 esac
17713 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
17714 ac_need_defaults=false;;
17715 --header | --heade | --head | --hea )
17716 $ac_shift
17717 case $ac_optarg in
17718 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17719 esac
17720 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
17721 ac_need_defaults=false;;
17722 --he | --h)
17723 # Conflict between --help and --header
17724 { $as_echo "$as_me: error: ambiguous option: $1
17725Try \`$0 --help' for more information." >&2
17726 { (exit 1); exit 1; }; };;
17727 --help | --hel | -h )
17728 $as_echo "$ac_cs_usage"; exit ;;
17729 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17730 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17731 ac_cs_silent=: ;;
d9898ee8 17732
8d138742
CE
17733 # This is an error.
17734 -*) { $as_echo "$as_me: error: unrecognized option: $1
17735Try \`$0 --help' for more information." >&2
17736 { (exit 1); exit 1; }; } ;;
d9898ee8 17737
8d138742
CE
17738 *) ac_config_targets="$ac_config_targets $1"
17739 ac_need_defaults=false ;;
d9898ee8 17740
8d138742
CE
17741 esac
17742 shift
17743done
d9898ee8 17744
8d138742 17745ac_configure_extra_args=
d9898ee8 17746
8d138742
CE
17747if $ac_cs_silent; then
17748 exec 6>/dev/null
17749 ac_configure_extra_args="$ac_configure_extra_args --silent"
17750fi
d9898ee8 17751
8d138742
CE
17752_ACEOF
17753cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17754if \$ac_cs_recheck; then
17755 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17756 shift
17757 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17758 CONFIG_SHELL='$SHELL'
17759 export CONFIG_SHELL
17760 exec "\$@"
17761fi
d9898ee8 17762
8d138742
CE
17763_ACEOF
17764cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17765exec 5>>config.log
17766{
17767 echo
17768 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17769## Running $as_me. ##
17770_ASBOX
17771 $as_echo "$ac_log"
17772} >&5
d9898ee8 17773
8d138742
CE
17774_ACEOF
17775cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17776#
17777# INIT-COMMANDS
17778#
17779AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
d9898ee8 17780
d9898ee8 17781
8d138742
CE
17782# The HP-UX ksh and POSIX shell print the target directory to stdout
17783# if CDPATH is set.
17784(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
d9898ee8 17785
8d138742
CE
17786sed_quote_subst='$sed_quote_subst'
17787double_quote_subst='$double_quote_subst'
17788delay_variable_subst='$delay_variable_subst'
17789macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
17790macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
17791enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
17792enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
17793pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
17794enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
17795host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
17796host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
17797host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
17798build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
17799build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
17800build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
17801SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
17802Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
17803GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
17804EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
17805FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
17806LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
17807NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
17808LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
17809max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
17810ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
17811exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
17812lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
17813lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
17814lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
17815reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
17816reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17817OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
17818deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
17819file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
17820AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
17821AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
17822STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
17823RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
17824old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17825old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17826old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17827CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
17828CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
17829compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
17830GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
17831lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
17832lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
17833lt_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"`'
17834lt_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"`'
17835objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
17836SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
17837ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
17838MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
17839lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
17840lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
17841lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
17842lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
17843lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
17844need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
17845DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
17846NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
17847LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
17848OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
17849OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
17850libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
17851shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17852extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17853archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
17854enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
17855export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17856whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17857compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
17858old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17859old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17860archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17861archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17862module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17863module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17864with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
17865allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
17866no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
17867hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17868hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
17869hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
17870hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
17871hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
17872hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
17873hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17874hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
17875inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
17876link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
17877fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
17878always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
17879export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17880exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
17881include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
17882prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17883file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
17884variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
17885need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
17886need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
17887version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
17888runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17889shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17890shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
17891libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
17892library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
17893soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
17894postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17895postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17896finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17897finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
17898hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
17899sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
17900sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
17901hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
17902enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
17903enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
17904enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
17905old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
17906striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
17907compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
17908predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
17909postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
17910predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
17911postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
17912compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
17913LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17914old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17915compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17916GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17917lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17918lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17919lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17920lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17921lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17922archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17923enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17924export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17925whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17926compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17927old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17928old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17929archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17930archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17931module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17932module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17933with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17934allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17935no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17936hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17937hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17938hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17939hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17940hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17941hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17942hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17943hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17944inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17945link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17946fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17947always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17948export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17949exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17950include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17951prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17952file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17953hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17954compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17955predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17956postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17957predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17958postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17959compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17960
17961LTCC='$LTCC'
17962LTCFLAGS='$LTCFLAGS'
17963compiler='$compiler_DEFAULT'
17964
17965# Quote evaled strings.
17966for var in SED \
17967GREP \
17968EGREP \
17969FGREP \
17970LD \
17971NM \
17972LN_S \
17973lt_SP2NL \
17974lt_NL2SP \
17975reload_flag \
17976OBJDUMP \
17977deplibs_check_method \
17978file_magic_cmd \
17979AR \
17980AR_FLAGS \
17981STRIP \
17982RANLIB \
17983CC \
17984CFLAGS \
17985compiler \
17986lt_cv_sys_global_symbol_pipe \
17987lt_cv_sys_global_symbol_to_cdecl \
17988lt_cv_sys_global_symbol_to_c_name_address \
17989lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17990SHELL \
17991ECHO \
17992lt_prog_compiler_no_builtin_flag \
17993lt_prog_compiler_wl \
17994lt_prog_compiler_pic \
17995lt_prog_compiler_static \
17996lt_cv_prog_compiler_c_o \
17997need_locks \
17998DSYMUTIL \
17999NMEDIT \
18000LIPO \
18001OTOOL \
18002OTOOL64 \
18003shrext_cmds \
18004export_dynamic_flag_spec \
18005whole_archive_flag_spec \
18006compiler_needs_object \
18007with_gnu_ld \
18008allow_undefined_flag \
18009no_undefined_flag \
18010hardcode_libdir_flag_spec \
18011hardcode_libdir_flag_spec_ld \
18012hardcode_libdir_separator \
18013fix_srcfile_path \
18014exclude_expsyms \
18015include_expsyms \
18016file_list_spec \
18017variables_saved_for_relink \
18018libname_spec \
18019library_names_spec \
18020soname_spec \
18021finish_eval \
18022old_striplib \
18023striplib \
18024compiler_lib_search_dirs \
18025predep_objects \
18026postdep_objects \
18027predeps \
18028postdeps \
18029compiler_lib_search_path \
18030LD_CXX \
18031compiler_CXX \
18032lt_prog_compiler_no_builtin_flag_CXX \
18033lt_prog_compiler_wl_CXX \
18034lt_prog_compiler_pic_CXX \
18035lt_prog_compiler_static_CXX \
18036lt_cv_prog_compiler_c_o_CXX \
18037export_dynamic_flag_spec_CXX \
18038whole_archive_flag_spec_CXX \
18039compiler_needs_object_CXX \
18040with_gnu_ld_CXX \
18041allow_undefined_flag_CXX \
18042no_undefined_flag_CXX \
18043hardcode_libdir_flag_spec_CXX \
18044hardcode_libdir_flag_spec_ld_CXX \
18045hardcode_libdir_separator_CXX \
18046fix_srcfile_path_CXX \
18047exclude_expsyms_CXX \
18048include_expsyms_CXX \
18049file_list_spec_CXX \
18050compiler_lib_search_dirs_CXX \
18051predep_objects_CXX \
18052postdep_objects_CXX \
18053predeps_CXX \
18054postdeps_CXX \
18055compiler_lib_search_path_CXX; do
18056 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
18057 *[\\\\\\\`\\"\\\$]*)
18058 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18059 ;;
18060 *)
18061 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18062 ;;
18063 esac
18064done
d9898ee8 18065
8d138742
CE
18066# Double-quote double-evaled strings.
18067for var in reload_cmds \
18068old_postinstall_cmds \
18069old_postuninstall_cmds \
18070old_archive_cmds \
18071extract_expsyms_cmds \
18072old_archive_from_new_cmds \
18073old_archive_from_expsyms_cmds \
18074archive_cmds \
18075archive_expsym_cmds \
18076module_cmds \
18077module_expsym_cmds \
18078export_symbols_cmds \
18079prelink_cmds \
18080postinstall_cmds \
18081postuninstall_cmds \
18082finish_cmds \
18083sys_lib_search_path_spec \
18084sys_lib_dlsearch_path_spec \
18085old_archive_cmds_CXX \
18086old_archive_from_new_cmds_CXX \
18087old_archive_from_expsyms_cmds_CXX \
18088archive_cmds_CXX \
18089archive_expsym_cmds_CXX \
18090module_cmds_CXX \
18091module_expsym_cmds_CXX \
18092export_symbols_cmds_CXX \
18093prelink_cmds_CXX; do
18094 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
18095 *[\\\\\\\`\\"\\\$]*)
18096 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18097 ;;
18098 *)
18099 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18100 ;;
18101 esac
18102done
d9898ee8 18103
8d138742
CE
18104# Fix-up fallback echo if it was mangled by the above quoting rules.
18105case \$lt_ECHO in
18106*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
18107 ;;
18108esac
d9898ee8 18109
8d138742
CE
18110ac_aux_dir='$ac_aux_dir'
18111xsi_shell='$xsi_shell'
18112lt_shell_append='$lt_shell_append'
d9898ee8 18113
8d138742
CE
18114# See if we are running on zsh, and set the options which allow our
18115# commands through without removal of \ escapes INIT.
18116if test -n "\${ZSH_VERSION+set}" ; then
18117 setopt NO_GLOB_SUBST
18118fi
d9898ee8 18119
18120
8d138742
CE
18121 PACKAGE='$PACKAGE'
18122 VERSION='$VERSION'
18123 TIMESTAMP='$TIMESTAMP'
18124 RM='$RM'
18125 ofile='$ofile'
d9898ee8 18126
18127
d9898ee8 18128
d9898ee8 18129
d9898ee8 18130
d9898ee8 18131
8d138742 18132_ACEOF
d9898ee8 18133
8d138742 18134cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
d9898ee8 18135
8d138742
CE
18136# Handling of arguments.
18137for ac_config_target in $ac_config_targets
18138do
18139 case $ac_config_target in
18140 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18141 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18142 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18143 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
d9898ee8 18144
8d138742
CE
18145 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18146$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18147 { (exit 1); exit 1; }; };;
18148 esac
18149done
d9898ee8 18150
d9898ee8 18151
8d138742
CE
18152# If the user did not use the arguments to specify the items to instantiate,
18153# then the envvar interface is used. Set only those that are not.
18154# We use the long form for the default assignment because of an extremely
18155# bizarre bug on SunOS 4.1.3.
18156if $ac_need_defaults; then
18157 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18158 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18159 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18160fi
d9898ee8 18161
8d138742
CE
18162# Have a temporary directory for convenience. Make it in the build tree
18163# simply because there is no reason against having it here, and in addition,
18164# creating and moving files from /tmp can sometimes cause problems.
18165# Hook for its removal unless debugging.
18166# Note that there is a small window in which the directory will not be cleaned:
18167# after its creation but before its name has been assigned to `$tmp'.
18168$debug ||
18169{
18170 tmp=
18171 trap 'exit_status=$?
18172 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18173' 0
18174 trap '{ (exit 1); exit 1; }' 1 2 13 15
18175}
18176# Create a (secure) tmp directory for tmp files.
d9898ee8 18177
8d138742
CE
18178{
18179 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18180 test -n "$tmp" && test -d "$tmp"
18181} ||
18182{
18183 tmp=./conf$$-$RANDOM
18184 (umask 077 && mkdir "$tmp")
18185} ||
18186{
18187 $as_echo "$as_me: cannot create a temporary directory in ." >&2
18188 { (exit 1); exit 1; }
18189}
d9898ee8 18190
8d138742
CE
18191# Set up the scripts for CONFIG_FILES section.
18192# No need to generate them if there are no CONFIG_FILES.
18193# This happens for instance with `./config.status config.h'.
18194if test -n "$CONFIG_FILES"; then
d9898ee8 18195
18196
8d138742
CE
18197ac_cr='\r'
18198ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18199if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18200 ac_cs_awk_cr='\\r'
18201else
18202 ac_cs_awk_cr=$ac_cr
18203fi
d9898ee8 18204
8d138742
CE
18205echo 'BEGIN {' >"$tmp/subs1.awk" &&
18206_ACEOF
d9898ee8 18207
18208
8d138742
CE
18209{
18210 echo "cat >conf$$subs.awk <<_ACEOF" &&
18211 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18212 echo "_ACEOF"
18213} >conf$$subs.sh ||
18214 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18215$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18216 { (exit 1); exit 1; }; }
18217ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
18218ac_delim='%!_!# '
18219for ac_last_try in false false false false false :; do
18220 . ./conf$$subs.sh ||
18221 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18222$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18223 { (exit 1); exit 1; }; }
d9898ee8 18224
8d138742
CE
18225 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18226 if test $ac_delim_n = $ac_delim_num; then
18227 break
18228 elif $ac_last_try; then
18229 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18230$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18231 { (exit 1); exit 1; }; }
18232 else
18233 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18234 fi
18235done
18236rm -f conf$$subs.sh
d9898ee8 18237
8d138742
CE
18238cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18239cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
18240_ACEOF
18241sed -n '
18242h
18243s/^/S["/; s/!.*/"]=/
18244p
18245g
18246s/^[^!]*!//
18247:repl
18248t repl
18249s/'"$ac_delim"'$//
18250t delim
18251:nl
18252h
18253s/\(.\{148\}\).*/\1/
18254t more1
18255s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18256p
18257n
18258b repl
18259:more1
18260s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18261p
18262g
18263s/.\{148\}//
18264t nl
18265:delim
18266h
18267s/\(.\{148\}\).*/\1/
18268t more2
18269s/["\\]/\\&/g; s/^/"/; s/$/"/
18270p
18271b
18272:more2
18273s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18274p
18275g
18276s/.\{148\}//
18277t delim
18278' <conf$$subs.awk | sed '
18279/^[^""]/{
18280 N
18281 s/\n//
18282}
18283' >>$CONFIG_STATUS || ac_write_fail=1
18284rm -f conf$$subs.awk
18285cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18286_ACAWK
18287cat >>"\$tmp/subs1.awk" <<_ACAWK &&
18288 for (key in S) S_is_set[key] = 1
18289 FS = "\a"
d9898ee8 18290
8d138742
CE
18291}
18292{
18293 line = $ 0
18294 nfields = split(line, field, "@")
18295 substed = 0
18296 len = length(field[1])
18297 for (i = 2; i < nfields; i++) {
18298 key = field[i]
18299 keylen = length(key)
18300 if (S_is_set[key]) {
18301 value = S[key]
18302 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18303 len += length(value) + length(field[++i])
18304 substed = 1
18305 } else
18306 len += 1 + keylen
18307 }
d9898ee8 18308
8d138742
CE
18309 print line
18310}
d9898ee8 18311
8d138742
CE
18312_ACAWK
18313_ACEOF
18314cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18315if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18316 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18317else
18318 cat
18319fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
18320 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
18321$as_echo "$as_me: error: could not setup config files machinery" >&2;}
18322 { (exit 1); exit 1; }; }
18323_ACEOF
d9898ee8 18324
8d138742
CE
18325# VPATH may cause trouble with some makes, so we remove $(srcdir),
18326# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18327# trailing colons and then remove the whole line if VPATH becomes empty
18328# (actually we leave an empty line to preserve line numbers).
18329if test "x$srcdir" = x.; then
18330 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18331s/:*\$(srcdir):*/:/
18332s/:*\${srcdir}:*/:/
18333s/:*@srcdir@:*/:/
18334s/^\([^=]*=[ ]*\):*/\1/
18335s/:*$//
18336s/^[^=]*=[ ]*$//
18337}'
18338fi
d9898ee8 18339
8d138742
CE
18340cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18341fi # test -n "$CONFIG_FILES"
d9898ee8 18342
8d138742
CE
18343# Set up the scripts for CONFIG_HEADERS section.
18344# No need to generate them if there are no CONFIG_HEADERS.
18345# This happens for instance with `./config.status Makefile'.
18346if test -n "$CONFIG_HEADERS"; then
18347cat >"$tmp/defines.awk" <<\_ACAWK ||
18348BEGIN {
18349_ACEOF
d9898ee8 18350
8d138742
CE
18351# Transform confdefs.h into an awk script `defines.awk', embedded as
18352# here-document in config.status, that substitutes the proper values into
18353# config.h.in to produce config.h.
d9898ee8 18354
8d138742
CE
18355# Create a delimiter string that does not exist in confdefs.h, to ease
18356# handling of long lines.
18357ac_delim='%!_!# '
18358for ac_last_try in false false :; do
18359 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
18360 if test -z "$ac_t"; then
18361 break
18362 elif $ac_last_try; then
18363 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
18364$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
18365 { (exit 1); exit 1; }; }
18366 else
18367 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18368 fi
18369done
d9898ee8 18370
8d138742
CE
18371# For the awk script, D is an array of macro values keyed by name,
18372# likewise P contains macro parameters if any. Preserve backslash
18373# newline sequences.
d9898ee8 18374
8d138742
CE
18375ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18376sed -n '
18377s/.\{148\}/&'"$ac_delim"'/g
18378t rset
18379:rset
18380s/^[ ]*#[ ]*define[ ][ ]*/ /
18381t def
18382d
18383:def
18384s/\\$//
18385t bsnl
18386s/["\\]/\\&/g
18387s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18388D["\1"]=" \3"/p
18389s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18390d
18391:bsnl
18392s/["\\]/\\&/g
18393s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18394D["\1"]=" \3\\\\\\n"\\/p
18395t cont
18396s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18397t cont
18398d
18399:cont
18400n
18401s/.\{148\}/&'"$ac_delim"'/g
18402t clear
18403:clear
18404s/\\$//
18405t bsnlc
18406s/["\\]/\\&/g; s/^/"/; s/$/"/p
18407d
18408:bsnlc
18409s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18410b cont
18411' <confdefs.h | sed '
18412s/'"$ac_delim"'/"\\\
18413"/g' >>$CONFIG_STATUS || ac_write_fail=1
18414
18415cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18416 for (key in D) D_is_set[key] = 1
18417 FS = "\a"
18418}
18419/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18420 line = \$ 0
18421 split(line, arg, " ")
18422 if (arg[1] == "#") {
18423 defundef = arg[2]
18424 mac1 = arg[3]
18425 } else {
18426 defundef = substr(arg[1], 2)
18427 mac1 = arg[2]
18428 }
18429 split(mac1, mac2, "(") #)
18430 macro = mac2[1]
18431 prefix = substr(line, 1, index(line, defundef) - 1)
18432 if (D_is_set[macro]) {
18433 # Preserve the white space surrounding the "#".
18434 print prefix "define", macro P[macro] D[macro]
18435 next
18436 } else {
18437 # Replace #undef with comments. This is necessary, for example,
18438 # in the case of _POSIX_SOURCE, which is predefined and required
18439 # on some systems where configure will not decide to define it.
18440 if (defundef == "undef") {
18441 print "/*", prefix defundef, macro, "*/"
18442 next
18443 }
18444 }
18445}
18446{ print }
18447_ACAWK
18448_ACEOF
18449cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18450 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
18451$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
18452 { (exit 1); exit 1; }; }
18453fi # test -n "$CONFIG_HEADERS"
d9898ee8 18454
18455
8d138742
CE
18456eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18457shift
18458for ac_tag
18459do
18460 case $ac_tag in
18461 :[FHLC]) ac_mode=$ac_tag; continue;;
18462 esac
18463 case $ac_mode$ac_tag in
18464 :[FHL]*:*);;
18465 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
18466$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
18467 { (exit 1); exit 1; }; };;
18468 :[FH]-) ac_tag=-:-;;
18469 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18470 esac
18471 ac_save_IFS=$IFS
18472 IFS=:
18473 set x $ac_tag
18474 IFS=$ac_save_IFS
18475 shift
18476 ac_file=$1
18477 shift
d9898ee8 18478
8d138742
CE
18479 case $ac_mode in
18480 :L) ac_source=$1;;
18481 :[FH])
18482 ac_file_inputs=
18483 for ac_f
18484 do
18485 case $ac_f in
18486 -) ac_f="$tmp/stdin";;
18487 *) # Look for the file first in the build tree, then in the source tree
18488 # (if the path is not absolute). The absolute path cannot be DOS-style,
18489 # because $ac_f cannot contain `:'.
18490 test -f "$ac_f" ||
18491 case $ac_f in
18492 [\\/$]*) false;;
18493 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18494 esac ||
18495 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
18496$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
18497 { (exit 1); exit 1; }; };;
18498 esac
18499 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18500 ac_file_inputs="$ac_file_inputs '$ac_f'"
18501 done
d9898ee8 18502
8d138742
CE
18503 # Let's still pretend it is `configure' which instantiates (i.e., don't
18504 # use $as_me), people would be surprised to read:
18505 # /* config.h. Generated by config.status. */
18506 configure_input='Generated from '`
18507 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18508 `' by configure.'
18509 if test x"$ac_file" != x-; then
18510 configure_input="$ac_file. $configure_input"
18511 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
18512$as_echo "$as_me: creating $ac_file" >&6;}
18513 fi
18514 # Neutralize special characters interpreted by sed in replacement strings.
18515 case $configure_input in #(
18516 *\&* | *\|* | *\\* )
18517 ac_sed_conf_input=`$as_echo "$configure_input" |
18518 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18519 *) ac_sed_conf_input=$configure_input;;
18520 esac
d9898ee8 18521
8d138742
CE
18522 case $ac_tag in
18523 *:-:* | *:-) cat >"$tmp/stdin" \
18524 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
18525$as_echo "$as_me: error: could not create $ac_file" >&2;}
18526 { (exit 1); exit 1; }; } ;;
18527 esac
18528 ;;
18529 esac
dd184caf 18530
8d138742
CE
18531 ac_dir=`$as_dirname -- "$ac_file" ||
18532$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18533 X"$ac_file" : 'X\(//\)[^/]' \| \
18534 X"$ac_file" : 'X\(//\)$' \| \
18535 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18536$as_echo X"$ac_file" |
18537 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18538 s//\1/
18539 q
18540 }
18541 /^X\(\/\/\)[^/].*/{
18542 s//\1/
18543 q
18544 }
18545 /^X\(\/\/\)$/{
18546 s//\1/
18547 q
18548 }
18549 /^X\(\/\).*/{
18550 s//\1/
18551 q
18552 }
18553 s/.*/./; q'`
18554 { as_dir="$ac_dir"
18555 case $as_dir in #(
18556 -*) as_dir=./$as_dir;;
18557 esac
18558 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
18559 as_dirs=
18560 while :; do
18561 case $as_dir in #(
18562 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18563 *) as_qdir=$as_dir;;
18564 esac
18565 as_dirs="'$as_qdir' $as_dirs"
18566 as_dir=`$as_dirname -- "$as_dir" ||
18567$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18568 X"$as_dir" : 'X\(//\)[^/]' \| \
18569 X"$as_dir" : 'X\(//\)$' \| \
18570 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18571$as_echo X"$as_dir" |
18572 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18573 s//\1/
18574 q
18575 }
18576 /^X\(\/\/\)[^/].*/{
18577 s//\1/
18578 q
18579 }
18580 /^X\(\/\/\)$/{
18581 s//\1/
18582 q
18583 }
18584 /^X\(\/\).*/{
18585 s//\1/
18586 q
18587 }
18588 s/.*/./; q'`
18589 test -d "$as_dir" && break
18590 done
18591 test -z "$as_dirs" || eval "mkdir $as_dirs"
18592 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
18593$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
18594 { (exit 1); exit 1; }; }; }
18595 ac_builddir=.
d9898ee8 18596
8d138742
CE
18597case "$ac_dir" in
18598.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18599*)
18600 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18601 # A ".." for each directory in $ac_dir_suffix.
18602 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18603 case $ac_top_builddir_sub in
18604 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18605 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18606 esac ;;
18607esac
18608ac_abs_top_builddir=$ac_pwd
18609ac_abs_builddir=$ac_pwd$ac_dir_suffix
18610# for backward compatibility:
18611ac_top_builddir=$ac_top_build_prefix
d9898ee8 18612
8d138742
CE
18613case $srcdir in
18614 .) # We are building in place.
18615 ac_srcdir=.
18616 ac_top_srcdir=$ac_top_builddir_sub
18617 ac_abs_top_srcdir=$ac_pwd ;;
18618 [\\/]* | ?:[\\/]* ) # Absolute name.
18619 ac_srcdir=$srcdir$ac_dir_suffix;
18620 ac_top_srcdir=$srcdir
18621 ac_abs_top_srcdir=$srcdir ;;
18622 *) # Relative name.
18623 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18624 ac_top_srcdir=$ac_top_build_prefix$srcdir
18625 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18626esac
18627ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
d9898ee8 18628
d9898ee8 18629
8d138742
CE
18630 case $ac_mode in
18631 :F)
18632 #
18633 # CONFIG_FILE
18634 #
d9898ee8 18635
8d138742
CE
18636 case $INSTALL in
18637 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18638 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18639 esac
18640 ac_MKDIR_P=$MKDIR_P
18641 case $MKDIR_P in
18642 [\\/$]* | ?:[\\/]* ) ;;
18643 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18644 esac
18645_ACEOF
d9898ee8 18646
8d138742
CE
18647cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18648# If the template does not know about datarootdir, expand it.
18649# FIXME: This hack should be removed a few years after 2.60.
18650ac_datarootdir_hack=; ac_datarootdir_seen=
d9898ee8 18651
8d138742
CE
18652ac_sed_dataroot='
18653/datarootdir/ {
18654 p
18655 q
d9898ee8 18656}
8d138742
CE
18657/@datadir@/p
18658/@docdir@/p
18659/@infodir@/p
18660/@localedir@/p
18661/@mandir@/p
18662'
18663case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18664*datarootdir*) ac_datarootdir_seen=yes;;
18665*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18666 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18667$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
d9898ee8 18668_ACEOF
8d138742
CE
18669cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18670 ac_datarootdir_hack='
18671 s&@datadir@&$datadir&g
18672 s&@docdir@&$docdir&g
18673 s&@infodir@&$infodir&g
18674 s&@localedir@&$localedir&g
18675 s&@mandir@&$mandir&g
18676 s&\\\${datarootdir}&$datarootdir&g' ;;
dd184caf 18677esac
8d138742 18678_ACEOF
d9898ee8 18679
8d138742
CE
18680# Neutralize VPATH when `$srcdir' = `.'.
18681# Shell code in configure.ac might set extrasub.
18682# FIXME: do we really want to maintain this feature?
18683cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18684ac_sed_extra="$ac_vpsub
18685$extrasub
d9898ee8 18686_ACEOF
8d138742
CE
18687cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18688:t
18689/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18690s|@configure_input@|$ac_sed_conf_input|;t t
18691s&@top_builddir@&$ac_top_builddir_sub&;t t
18692s&@top_build_prefix@&$ac_top_build_prefix&;t t
18693s&@srcdir@&$ac_srcdir&;t t
18694s&@abs_srcdir@&$ac_abs_srcdir&;t t
18695s&@top_srcdir@&$ac_top_srcdir&;t t
18696s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18697s&@builddir@&$ac_builddir&;t t
18698s&@abs_builddir@&$ac_abs_builddir&;t t
18699s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18700s&@INSTALL@&$ac_INSTALL&;t t
18701s&@MKDIR_P@&$ac_MKDIR_P&;t t
18702$ac_datarootdir_hack
18703"
18704eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
18705 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
18706$as_echo "$as_me: error: could not create $ac_file" >&2;}
18707 { (exit 1); exit 1; }; }
d9898ee8 18708
8d138742
CE
18709test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18710 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
18711 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
18712 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18713which seems to be undefined. Please make sure it is defined." >&5
18714$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18715which seems to be undefined. Please make sure it is defined." >&2;}
d9898ee8 18716
8d138742
CE
18717 rm -f "$tmp/stdin"
18718 case $ac_file in
18719 -) cat "$tmp/out" && rm -f "$tmp/out";;
18720 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
18721 esac \
18722 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
18723$as_echo "$as_me: error: could not create $ac_file" >&2;}
18724 { (exit 1); exit 1; }; }
18725 ;;
18726 :H)
18727 #
18728 # CONFIG_HEADER
18729 #
18730 if test x"$ac_file" != x-; then
18731 {
18732 $as_echo "/* $configure_input */" \
18733 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
18734 } >"$tmp/config.h" \
18735 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
18736$as_echo "$as_me: error: could not create $ac_file" >&2;}
18737 { (exit 1); exit 1; }; }
18738 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
18739 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18740$as_echo "$as_me: $ac_file is unchanged" >&6;}
18741 else
18742 rm -f "$ac_file"
18743 mv "$tmp/config.h" "$ac_file" \
18744 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
18745$as_echo "$as_me: error: could not create $ac_file" >&2;}
18746 { (exit 1); exit 1; }; }
18747 fi
18748 else
18749 $as_echo "/* $configure_input */" \
18750 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
18751 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
18752$as_echo "$as_me: error: could not create -" >&2;}
18753 { (exit 1); exit 1; }; }
18754 fi
18755# Compute "$ac_file"'s index in $config_headers.
18756_am_arg="$ac_file"
18757_am_stamp_count=1
18758for _am_header in $config_headers :; do
18759 case $_am_header in
18760 $_am_arg | $_am_arg:* )
18761 break ;;
18762 * )
18763 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18764 esac
18765done
18766echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18767$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18768 X"$_am_arg" : 'X\(//\)[^/]' \| \
18769 X"$_am_arg" : 'X\(//\)$' \| \
18770 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18771$as_echo X"$_am_arg" |
18772 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18773 s//\1/
18774 q
18775 }
18776 /^X\(\/\/\)[^/].*/{
18777 s//\1/
18778 q
18779 }
18780 /^X\(\/\/\)$/{
18781 s//\1/
18782 q
18783 }
18784 /^X\(\/\).*/{
18785 s//\1/
18786 q
18787 }
18788 s/.*/./; q'`/stamp-h$_am_stamp_count
18789 ;;
d9898ee8 18790
8d138742
CE
18791 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
18792$as_echo "$as_me: executing $ac_file commands" >&6;}
18793 ;;
18794 esac
d9898ee8 18795
d9898ee8 18796
8d138742
CE
18797 case $ac_file$ac_mode in
18798 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18799 # Autoconf 2.62 quotes --file arguments for eval, but not when files
18800 # are listed without --file. Let's play safe and only enable the eval
18801 # if we detect the quoting.
18802 case $CONFIG_FILES in
18803 *\'*) eval set x "$CONFIG_FILES" ;;
18804 *) set x $CONFIG_FILES ;;
18805 esac
18806 shift
18807 for mf
18808 do
18809 # Strip MF so we end up with the name of the file.
18810 mf=`echo "$mf" | sed -e 's/:.*$//'`
18811 # Check whether this is an Automake generated Makefile or not.
18812 # We used to match only the files named `Makefile.in', but
18813 # some people rename them; so instead we look at the file content.
18814 # Grep'ing the first line is not enough: some people post-process
18815 # each Makefile.in and add a new line on top of each file to say so.
18816 # Grep'ing the whole file is not good either: AIX grep has a line
18817 # limit of 2048, but all sed's we know have understand at least 4000.
18818 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18819 dirpart=`$as_dirname -- "$mf" ||
18820$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18821 X"$mf" : 'X\(//\)[^/]' \| \
18822 X"$mf" : 'X\(//\)$' \| \
18823 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18824$as_echo X"$mf" |
18825 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18826 s//\1/
18827 q
18828 }
18829 /^X\(\/\/\)[^/].*/{
18830 s//\1/
18831 q
18832 }
18833 /^X\(\/\/\)$/{
18834 s//\1/
18835 q
18836 }
18837 /^X\(\/\).*/{
18838 s//\1/
18839 q
18840 }
18841 s/.*/./; q'`
18842 else
18843 continue
18844 fi
18845 # Extract the definition of DEPDIR, am__include, and am__quote
18846 # from the Makefile without running `make'.
18847 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18848 test -z "$DEPDIR" && continue
18849 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18850 test -z "am__include" && continue
18851 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18852 # When using ansi2knr, U may be empty or an underscore; expand it
18853 U=`sed -n 's/^U = //p' < "$mf"`
18854 # Find all dependency output files, they are included files with
18855 # $(DEPDIR) in their names. We invoke sed twice because it is the
18856 # simplest approach to changing $(DEPDIR) to its actual value in the
18857 # expansion.
18858 for file in `sed -n "
18859 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18860 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18861 # Make sure the directory exists.
18862 test -f "$dirpart/$file" && continue
18863 fdir=`$as_dirname -- "$file" ||
18864$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18865 X"$file" : 'X\(//\)[^/]' \| \
18866 X"$file" : 'X\(//\)$' \| \
18867 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18868$as_echo X"$file" |
18869 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18870 s//\1/
18871 q
18872 }
18873 /^X\(\/\/\)[^/].*/{
18874 s//\1/
18875 q
18876 }
18877 /^X\(\/\/\)$/{
18878 s//\1/
18879 q
18880 }
18881 /^X\(\/\).*/{
18882 s//\1/
18883 q
18884 }
18885 s/.*/./; q'`
18886 { as_dir=$dirpart/$fdir
18887 case $as_dir in #(
18888 -*) as_dir=./$as_dir;;
18889 esac
18890 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
18891 as_dirs=
18892 while :; do
18893 case $as_dir in #(
18894 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18895 *) as_qdir=$as_dir;;
18896 esac
18897 as_dirs="'$as_qdir' $as_dirs"
18898 as_dir=`$as_dirname -- "$as_dir" ||
18899$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18900 X"$as_dir" : 'X\(//\)[^/]' \| \
18901 X"$as_dir" : 'X\(//\)$' \| \
18902 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18903$as_echo X"$as_dir" |
18904 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18905 s//\1/
18906 q
18907 }
18908 /^X\(\/\/\)[^/].*/{
18909 s//\1/
18910 q
18911 }
18912 /^X\(\/\/\)$/{
18913 s//\1/
18914 q
18915 }
18916 /^X\(\/\).*/{
18917 s//\1/
18918 q
18919 }
18920 s/.*/./; q'`
18921 test -d "$as_dir" && break
18922 done
18923 test -z "$as_dirs" || eval "mkdir $as_dirs"
18924 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
18925$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
18926 { (exit 1); exit 1; }; }; }
18927 # echo "creating $dirpart/$file"
18928 echo '# dummy' > "$dirpart/$file"
18929 done
18930 done
d9898ee8 18931}
8d138742
CE
18932 ;;
18933 "libtool":C)
d9898ee8 18934
8d138742
CE
18935 # See if we are running on zsh, and set the options which allow our
18936 # commands through without removal of \ escapes.
18937 if test -n "${ZSH_VERSION+set}" ; then
18938 setopt NO_GLOB_SUBST
18939 fi
dd184caf 18940
8d138742
CE
18941 cfgfile="${ofile}T"
18942 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18943 $RM "$cfgfile"
d9898ee8 18944
8d138742
CE
18945 cat <<_LT_EOF >> "$cfgfile"
18946#! $SHELL
d9898ee8 18947
8d138742
CE
18948# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18949# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18950# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18951# NOTE: Changes made to this file will be lost: look at ltmain.sh.
18952#
18953# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18954# 2006, 2007, 2008 Free Software Foundation, Inc.
18955# Written by Gordon Matzigkeit, 1996
18956#
18957# This file is part of GNU Libtool.
18958#
18959# GNU Libtool is free software; you can redistribute it and/or
18960# modify it under the terms of the GNU General Public License as
18961# published by the Free Software Foundation; either version 2 of
18962# the License, or (at your option) any later version.
18963#
18964# As a special exception to the GNU General Public License,
18965# if you distribute this file as part of a program or library that
18966# is built using GNU Libtool, you may include this file under the
18967# same distribution terms that you use for the rest of that program.
18968#
18969# GNU Libtool is distributed in the hope that it will be useful,
18970# but WITHOUT ANY WARRANTY; without even the implied warranty of
18971# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18972# GNU General Public License for more details.
18973#
18974# You should have received a copy of the GNU General Public License
18975# along with GNU Libtool; see the file COPYING. If not, a copy
18976# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18977# obtained by writing to the Free Software Foundation, Inc.,
18978# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
d9898ee8 18979
18980
8d138742
CE
18981# The names of the tagged configurations supported by this script.
18982available_tags="CXX "
d9898ee8 18983
8d138742 18984# ### BEGIN LIBTOOL CONFIG
dd184caf 18985
8d138742
CE
18986# Which release of libtool.m4 was used?
18987macro_version=$macro_version
18988macro_revision=$macro_revision
d9898ee8 18989
8d138742
CE
18990# Whether or not to build shared libraries.
18991build_libtool_libs=$enable_shared
d9898ee8 18992
8d138742
CE
18993# Whether or not to build static libraries.
18994build_old_libs=$enable_static
dd184caf 18995
8d138742
CE
18996# What type of objects to build.
18997pic_mode=$pic_mode
d9898ee8 18998
8d138742
CE
18999# Whether or not to optimize for fast installation.
19000fast_install=$enable_fast_install
d9898ee8 19001
8d138742
CE
19002# The host system.
19003host_alias=$host_alias
19004host=$host
19005host_os=$host_os
d9898ee8 19006
8d138742
CE
19007# The build system.
19008build_alias=$build_alias
19009build=$build
19010build_os=$build_os
d9898ee8 19011
8d138742
CE
19012# A sed program that does not truncate output.
19013SED=$lt_SED
d9898ee8 19014
8d138742
CE
19015# Sed that helps us avoid accidentally triggering echo(1) options like -n.
19016Xsed="\$SED -e 1s/^X//"
d9898ee8 19017
8d138742
CE
19018# A grep program that handles long lines.
19019GREP=$lt_GREP
d9898ee8 19020
8d138742
CE
19021# An ERE matcher.
19022EGREP=$lt_EGREP
d9898ee8 19023
8d138742
CE
19024# A literal string matcher.
19025FGREP=$lt_FGREP
d9898ee8 19026
8d138742
CE
19027# A BSD- or MS-compatible name lister.
19028NM=$lt_NM
d9898ee8 19029
8d138742
CE
19030# Whether we need soft or hard links.
19031LN_S=$lt_LN_S
d9898ee8 19032
8d138742
CE
19033# What is the maximum length of a command?
19034max_cmd_len=$max_cmd_len
d9898ee8 19035
8d138742
CE
19036# Object file suffix (normally "o").
19037objext=$ac_objext
d9898ee8 19038
8d138742
CE
19039# Executable file suffix (normally "").
19040exeext=$exeext
d9898ee8 19041
8d138742
CE
19042# whether the shell understands "unset".
19043lt_unset=$lt_unset
d9898ee8 19044
8d138742
CE
19045# turn spaces into newlines.
19046SP2NL=$lt_lt_SP2NL
d9898ee8 19047
8d138742
CE
19048# turn newlines into spaces.
19049NL2SP=$lt_lt_NL2SP
dd184caf 19050
8d138742
CE
19051# How to create reloadable object files.
19052reload_flag=$lt_reload_flag
19053reload_cmds=$lt_reload_cmds
d9898ee8 19054
8d138742
CE
19055# An object symbol dumper.
19056OBJDUMP=$lt_OBJDUMP
d9898ee8 19057
8d138742
CE
19058# Method to check whether dependent libraries are shared objects.
19059deplibs_check_method=$lt_deplibs_check_method
d9898ee8 19060
8d138742
CE
19061# Command to use when deplibs_check_method == "file_magic".
19062file_magic_cmd=$lt_file_magic_cmd
d9898ee8 19063
8d138742
CE
19064# The archiver.
19065AR=$lt_AR
19066AR_FLAGS=$lt_AR_FLAGS
dd184caf 19067
8d138742
CE
19068# A symbol stripping program.
19069STRIP=$lt_STRIP
d9898ee8 19070
8d138742
CE
19071# Commands used to install an old-style archive.
19072RANLIB=$lt_RANLIB
19073old_postinstall_cmds=$lt_old_postinstall_cmds
19074old_postuninstall_cmds=$lt_old_postuninstall_cmds
d9898ee8 19075
8d138742
CE
19076# A C compiler.
19077LTCC=$lt_CC
d9898ee8 19078
8d138742
CE
19079# LTCC compiler flags.
19080LTCFLAGS=$lt_CFLAGS
d9898ee8 19081
8d138742
CE
19082# Take the output of nm and produce a listing of raw symbols and C names.
19083global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
d9898ee8 19084
8d138742
CE
19085# Transform the output of nm in a proper C declaration.
19086global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
d9898ee8 19087
8d138742
CE
19088# Transform the output of nm in a C name address pair.
19089global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
d9898ee8 19090
8d138742
CE
19091# Transform the output of nm in a C name address pair when lib prefix is needed.
19092global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
d9898ee8 19093
8d138742
CE
19094# The name of the directory that contains temporary libtool files.
19095objdir=$objdir
d9898ee8 19096
8d138742
CE
19097# Shell to use when invoking shell scripts.
19098SHELL=$lt_SHELL
d9898ee8 19099
8d138742
CE
19100# An echo program that does not interpret backslashes.
19101ECHO=$lt_ECHO
dd184caf 19102
8d138742
CE
19103# Used to examine libraries when file_magic_cmd begins with "file".
19104MAGIC_CMD=$MAGIC_CMD
d9898ee8 19105
8d138742
CE
19106# Must we lock files when doing compilation?
19107need_locks=$lt_need_locks
d9898ee8 19108
8d138742
CE
19109# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19110DSYMUTIL=$lt_DSYMUTIL
d9898ee8 19111
8d138742
CE
19112# Tool to change global to local symbols on Mac OS X.
19113NMEDIT=$lt_NMEDIT
dd184caf 19114
8d138742
CE
19115# Tool to manipulate fat objects and archives on Mac OS X.
19116LIPO=$lt_LIPO
d9898ee8 19117
8d138742
CE
19118# ldd/readelf like tool for Mach-O binaries on Mac OS X.
19119OTOOL=$lt_OTOOL
d9898ee8 19120
8d138742
CE
19121# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19122OTOOL64=$lt_OTOOL64
dd184caf 19123
8d138742
CE
19124# Old archive suffix (normally "a").
19125libext=$libext
19126
19127# Shared library suffix (normally ".so").
19128shrext_cmds=$lt_shrext_cmds
19129
19130# The commands to extract the exported symbol list from a shared archive.
19131extract_expsyms_cmds=$lt_extract_expsyms_cmds
19132
19133# Variables whose values should be saved in libtool wrapper scripts and
19134# restored at link time.
19135variables_saved_for_relink=$lt_variables_saved_for_relink
19136
19137# Do we need the "lib" prefix for modules?
19138need_lib_prefix=$need_lib_prefix
19139
19140# Do we need a version for libraries?
19141need_version=$need_version
19142
19143# Library versioning type.
19144version_type=$version_type
d9898ee8 19145
8d138742
CE
19146# Shared library runtime path variable.
19147runpath_var=$runpath_var
d9898ee8 19148
8d138742
CE
19149# Shared library path variable.
19150shlibpath_var=$shlibpath_var
d9898ee8 19151
8d138742
CE
19152# Is shlibpath searched before the hard-coded library search path?
19153shlibpath_overrides_runpath=$shlibpath_overrides_runpath
d9898ee8 19154
8d138742
CE
19155# Format of library name prefix.
19156libname_spec=$lt_libname_spec
d9898ee8 19157
8d138742
CE
19158# List of archive names. First name is the real one, the rest are links.
19159# The last name is the one that the linker finds with -lNAME
19160library_names_spec=$lt_library_names_spec
d9898ee8 19161
8d138742
CE
19162# The coded name of the library, if different from the real name.
19163soname_spec=$lt_soname_spec
d9898ee8 19164
8d138742
CE
19165# Command to use after installation of a shared archive.
19166postinstall_cmds=$lt_postinstall_cmds
d9898ee8 19167
8d138742
CE
19168# Command to use after uninstallation of a shared archive.
19169postuninstall_cmds=$lt_postuninstall_cmds
d9898ee8 19170
8d138742
CE
19171# Commands used to finish a libtool library installation in a directory.
19172finish_cmds=$lt_finish_cmds
d9898ee8 19173
8d138742
CE
19174# As "finish_cmds", except a single script fragment to be evaled but
19175# not shown.
19176finish_eval=$lt_finish_eval
dd184caf 19177
8d138742
CE
19178# Whether we should hardcode library paths into libraries.
19179hardcode_into_libs=$hardcode_into_libs
dd184caf 19180
8d138742
CE
19181# Compile-time system search path for libraries.
19182sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
dd184caf 19183
8d138742
CE
19184# Run-time system search path for libraries.
19185sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
dd184caf 19186
8d138742
CE
19187# Whether dlopen is supported.
19188dlopen_support=$enable_dlopen
dd184caf 19189
8d138742
CE
19190# Whether dlopen of programs is supported.
19191dlopen_self=$enable_dlopen_self
dd184caf 19192
8d138742
CE
19193# Whether dlopen of statically linked programs is supported.
19194dlopen_self_static=$enable_dlopen_self_static
d9898ee8 19195
8d138742
CE
19196# Commands to strip libraries.
19197old_striplib=$lt_old_striplib
19198striplib=$lt_striplib
d9898ee8 19199
19200
8d138742
CE
19201# The linker used to build libraries.
19202LD=$lt_LD
dd184caf 19203
8d138742
CE
19204# Commands used to build an old-style archive.
19205old_archive_cmds=$lt_old_archive_cmds
dd184caf 19206
8d138742
CE
19207# A language specific compiler.
19208CC=$lt_compiler
dd184caf 19209
8d138742
CE
19210# Is the compiler the GNU compiler?
19211with_gcc=$GCC
d9898ee8 19212
8d138742
CE
19213# Compiler flag to turn off builtin functions.
19214no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
d9898ee8 19215
8d138742
CE
19216# How to pass a linker flag through the compiler.
19217wl=$lt_lt_prog_compiler_wl
d9898ee8 19218
8d138742
CE
19219# Additional compiler flags for building library objects.
19220pic_flag=$lt_lt_prog_compiler_pic
d9898ee8 19221
8d138742
CE
19222# Compiler flag to prevent dynamic linking.
19223link_static_flag=$lt_lt_prog_compiler_static
d9898ee8 19224
8d138742
CE
19225# Does compiler simultaneously support -c and -o options?
19226compiler_c_o=$lt_lt_cv_prog_compiler_c_o
d9898ee8 19227
8d138742
CE
19228# Whether or not to add -lc for building shared libraries.
19229build_libtool_need_lc=$archive_cmds_need_lc
d9898ee8 19230
8d138742
CE
19231# Whether or not to disallow shared libs when runtime libs are static.
19232allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
d9898ee8 19233
8d138742
CE
19234# Compiler flag to allow reflexive dlopens.
19235export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
d9898ee8 19236
8d138742
CE
19237# Compiler flag to generate shared objects directly from archives.
19238whole_archive_flag_spec=$lt_whole_archive_flag_spec
d9898ee8 19239
8d138742
CE
19240# Whether the compiler copes with passing no objects directly.
19241compiler_needs_object=$lt_compiler_needs_object
d9898ee8 19242
8d138742
CE
19243# Create an old-style archive from a shared archive.
19244old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19245
19246# Create a temporary old-style archive to link instead of a shared archive.
19247old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
d9898ee8 19248
8d138742
CE
19249# Commands used to build a shared archive.
19250archive_cmds=$lt_archive_cmds
19251archive_expsym_cmds=$lt_archive_expsym_cmds
d9898ee8 19252
8d138742
CE
19253# Commands used to build a loadable module if different from building
19254# a shared archive.
19255module_cmds=$lt_module_cmds
19256module_expsym_cmds=$lt_module_expsym_cmds
dd184caf 19257
8d138742
CE
19258# Whether we are building with GNU ld or not.
19259with_gnu_ld=$lt_with_gnu_ld
d9898ee8 19260
8d138742
CE
19261# Flag that allows shared libraries with undefined symbols to be built.
19262allow_undefined_flag=$lt_allow_undefined_flag
d9898ee8 19263
8d138742
CE
19264# Flag that enforces no undefined symbols.
19265no_undefined_flag=$lt_no_undefined_flag
d9898ee8 19266
8d138742
CE
19267# Flag to hardcode \$libdir into a binary during linking.
19268# This must work even if \$libdir does not exist
19269hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
d9898ee8 19270
8d138742
CE
19271# If ld is used when linking, flag to hardcode \$libdir into a binary
19272# during linking. This must work even if \$libdir does not exist.
19273hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
d9898ee8 19274
8d138742
CE
19275# Whether we need a single "-rpath" flag with a separated argument.
19276hardcode_libdir_separator=$lt_hardcode_libdir_separator
d9898ee8 19277
8d138742
CE
19278# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19279# DIR into the resulting binary.
19280hardcode_direct=$hardcode_direct
d9898ee8 19281
8d138742
CE
19282# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19283# DIR into the resulting binary and the resulting library dependency is
19284# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19285# library is relocated.
19286hardcode_direct_absolute=$hardcode_direct_absolute
d9898ee8 19287
8d138742
CE
19288# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19289# into the resulting binary.
19290hardcode_minus_L=$hardcode_minus_L
d9898ee8 19291
8d138742
CE
19292# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19293# into the resulting binary.
19294hardcode_shlibpath_var=$hardcode_shlibpath_var
d9898ee8 19295
8d138742
CE
19296# Set to "yes" if building a shared library automatically hardcodes DIR
19297# into the library and all subsequent libraries and executables linked
19298# against it.
19299hardcode_automatic=$hardcode_automatic
d9898ee8 19300
8d138742
CE
19301# Set to yes if linker adds runtime paths of dependent libraries
19302# to runtime path list.
19303inherit_rpath=$inherit_rpath
dd184caf 19304
8d138742
CE
19305# Whether libtool must link a program against all its dependency libraries.
19306link_all_deplibs=$link_all_deplibs
d9898ee8 19307
8d138742
CE
19308# Fix the shell variable \$srcfile for the compiler.
19309fix_srcfile_path=$lt_fix_srcfile_path
d9898ee8 19310
8d138742
CE
19311# Set to "yes" if exported symbols are required.
19312always_export_symbols=$always_export_symbols
d9898ee8 19313
8d138742
CE
19314# The commands to list exported symbols.
19315export_symbols_cmds=$lt_export_symbols_cmds
d9898ee8 19316
8d138742
CE
19317# Symbols that should not be listed in the preloaded symbols.
19318exclude_expsyms=$lt_exclude_expsyms
d9898ee8 19319
8d138742
CE
19320# Symbols that must always be exported.
19321include_expsyms=$lt_include_expsyms
d9898ee8 19322
8d138742
CE
19323# Commands necessary for linking programs (against libraries) with templates.
19324prelink_cmds=$lt_prelink_cmds
d9898ee8 19325
8d138742
CE
19326# Specify filename containing input files.
19327file_list_spec=$lt_file_list_spec
d9898ee8 19328
8d138742
CE
19329# How to hardcode a shared library path into an executable.
19330hardcode_action=$hardcode_action
d9898ee8 19331
8d138742
CE
19332# The directories searched by this compiler when creating a shared library.
19333compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
d9898ee8 19334
8d138742
CE
19335# Dependencies to place before and after the objects being linked to
19336# create a shared library.
19337predep_objects=$lt_predep_objects
19338postdep_objects=$lt_postdep_objects
19339predeps=$lt_predeps
19340postdeps=$lt_postdeps
d9898ee8 19341
8d138742
CE
19342# The library search path used internally by the compiler when linking
19343# a shared library.
19344compiler_lib_search_path=$lt_compiler_lib_search_path
dd184caf 19345
8d138742 19346# ### END LIBTOOL CONFIG
d9898ee8 19347
8d138742
CE
19348_LT_EOF
19349
19350 case $host_os in
19351 aix3*)
19352 cat <<\_LT_EOF >> "$cfgfile"
19353# AIX sometimes has problems with the GCC collect2 program. For some
19354# reason, if we set the COLLECT_NAMES environment variable, the problems
19355# vanish in a puff of smoke.
19356if test "X${COLLECT_NAMES+set}" != Xset; then
19357 COLLECT_NAMES=
19358 export COLLECT_NAMES
19359fi
19360_LT_EOF
d9898ee8 19361 ;;
d9898ee8 19362 esac
19363
d9898ee8 19364
8d138742 19365ltmain="$ac_aux_dir/ltmain.sh"
d9898ee8 19366
d9898ee8 19367
8d138742
CE
19368 # We use sed instead of cat because bash on DJGPP gets confused if
19369 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19370 # text mode, it properly converts lines to CR/LF. This bash problem
19371 # is reportedly fixed, but why not run on old versions too?
19372 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19373 || (rm -f "$cfgfile"; exit 1)
19374
19375 case $xsi_shell in
19376 yes)
19377 cat << \_LT_EOF >> "$cfgfile"
19378
19379# func_dirname file append nondir_replacement
19380# Compute the dirname of FILE. If nonempty, add APPEND to the result,
19381# otherwise set result to NONDIR_REPLACEMENT.
19382func_dirname ()
19383{
19384 case ${1} in
19385 */*) func_dirname_result="${1%/*}${2}" ;;
19386 * ) func_dirname_result="${3}" ;;
d9898ee8 19387 esac
8d138742 19388}
d9898ee8 19389
8d138742
CE
19390# func_basename file
19391func_basename ()
19392{
19393 func_basename_result="${1##*/}"
19394}
d9898ee8 19395
8d138742
CE
19396# func_dirname_and_basename file append nondir_replacement
19397# perform func_basename and func_dirname in a single function
19398# call:
19399# dirname: Compute the dirname of FILE. If nonempty,
19400# add APPEND to the result, otherwise set result
19401# to NONDIR_REPLACEMENT.
19402# value returned in "$func_dirname_result"
19403# basename: Compute filename of FILE.
19404# value retuned in "$func_basename_result"
19405# Implementation must be kept synchronized with func_dirname
19406# and func_basename. For efficiency, we do not delegate to
19407# those functions but instead duplicate the functionality here.
19408func_dirname_and_basename ()
19409{
19410 case ${1} in
19411 */*) func_dirname_result="${1%/*}${2}" ;;
19412 * ) func_dirname_result="${3}" ;;
19413 esac
19414 func_basename_result="${1##*/}"
19415}
d9898ee8 19416
8d138742
CE
19417# func_stripname prefix suffix name
19418# strip PREFIX and SUFFIX off of NAME.
19419# PREFIX and SUFFIX must not contain globbing or regex special
19420# characters, hashes, percent signs, but SUFFIX may contain a leading
19421# dot (in which case that matches only a dot).
19422func_stripname ()
19423{
19424 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19425 # positional parameters, so assign one to ordinary parameter first.
19426 func_stripname_result=${3}
19427 func_stripname_result=${func_stripname_result#"${1}"}
19428 func_stripname_result=${func_stripname_result%"${2}"}
19429}
d9898ee8 19430
8d138742
CE
19431# func_opt_split
19432func_opt_split ()
dd184caf 19433{
8d138742
CE
19434 func_opt_split_opt=${1%%=*}
19435 func_opt_split_arg=${1#*=}
19436}
d9898ee8 19437
8d138742
CE
19438# func_lo2o object
19439func_lo2o ()
19440{
19441 case ${1} in
19442 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
19443 *) func_lo2o_result=${1} ;;
19444 esac
19445}
d9898ee8 19446
8d138742
CE
19447# func_xform libobj-or-source
19448func_xform ()
19449{
19450 func_xform_result=${1%.*}.lo
19451}
d9898ee8 19452
8d138742
CE
19453# func_arith arithmetic-term...
19454func_arith ()
19455{
19456 func_arith_result=$(( $* ))
19457}
dd184caf 19458
8d138742
CE
19459# func_len string
19460# STRING may not start with a hyphen.
19461func_len ()
19462{
19463 func_len_result=${#1}
19464}
dd184caf 19465
8d138742
CE
19466_LT_EOF
19467 ;;
19468 *) # Bourne compatible functions.
19469 cat << \_LT_EOF >> "$cfgfile"
19470
19471# func_dirname file append nondir_replacement
19472# Compute the dirname of FILE. If nonempty, add APPEND to the result,
19473# otherwise set result to NONDIR_REPLACEMENT.
19474func_dirname ()
19475{
19476 # Extract subdirectory from the argument.
19477 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
19478 if test "X$func_dirname_result" = "X${1}"; then
19479 func_dirname_result="${3}"
19480 else
19481 func_dirname_result="$func_dirname_result${2}"
19482 fi
19483}
19484
19485# func_basename file
19486func_basename ()
19487{
19488 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
19489}
19490
19491
19492# func_stripname prefix suffix name
19493# strip PREFIX and SUFFIX off of NAME.
19494# PREFIX and SUFFIX must not contain globbing or regex special
19495# characters, hashes, percent signs, but SUFFIX may contain a leading
19496# dot (in which case that matches only a dot).
19497# func_strip_suffix prefix name
19498func_stripname ()
19499{
19500 case ${2} in
19501 .*) func_stripname_result=`$ECHO "X${3}" \
19502 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
19503 *) func_stripname_result=`$ECHO "X${3}" \
19504 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
d9898ee8 19505 esac
8d138742 19506}
d9898ee8 19507
8d138742
CE
19508# sed scripts:
19509my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
19510my_sed_long_arg='1s/^-[^=]*=//'
dd184caf 19511
8d138742
CE
19512# func_opt_split
19513func_opt_split ()
19514{
19515 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
19516 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
19517}
d9898ee8 19518
8d138742
CE
19519# func_lo2o object
19520func_lo2o ()
d9898ee8 19521{
8d138742 19522 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
d9898ee8 19523}
d9898ee8 19524
8d138742
CE
19525# func_xform libobj-or-source
19526func_xform ()
d9898ee8 19527{
8d138742
CE
19528 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
19529}
19530
19531# func_arith arithmetic-term...
19532func_arith ()
d9898ee8 19533{
8d138742
CE
19534 func_arith_result=`expr "$@"`
19535}
19536
19537# func_len string
19538# STRING may not start with a hyphen.
19539func_len ()
d9898ee8 19540{
8d138742 19541 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
d9898ee8 19542}
19543
8d138742
CE
19544_LT_EOF
19545esac
d9898ee8 19546
8d138742
CE
19547case $lt_shell_append in
19548 yes)
19549 cat << \_LT_EOF >> "$cfgfile"
d9898ee8 19550
8d138742
CE
19551# func_append var value
19552# Append VALUE to the end of shell variable VAR.
19553func_append ()
19554{
19555 eval "$1+=\$2"
19556}
19557_LT_EOF
19558 ;;
19559 *)
19560 cat << \_LT_EOF >> "$cfgfile"
d9898ee8 19561
8d138742
CE
19562# func_append var value
19563# Append VALUE to the end of shell variable VAR.
19564func_append ()
19565{
19566 eval "$1=\$$1\$2"
19567}
dd184caf 19568
8d138742
CE
19569_LT_EOF
19570 ;;
19571 esac
dd184caf 19572
dd184caf 19573
8d138742
CE
19574 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19575 || (rm -f "$cfgfile"; exit 1)
dd184caf 19576
8d138742
CE
19577 mv -f "$cfgfile" "$ofile" ||
19578 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19579 chmod +x "$ofile"
dd184caf 19580
dd184caf 19581
8d138742 19582 cat <<_LT_EOF >> "$ofile"
dd184caf 19583
8d138742 19584# ### BEGIN LIBTOOL TAG CONFIG: CXX
dd184caf 19585
8d138742
CE
19586# The linker used to build libraries.
19587LD=$lt_LD_CXX
d9898ee8 19588
8d138742
CE
19589# Commands used to build an old-style archive.
19590old_archive_cmds=$lt_old_archive_cmds_CXX
dd184caf 19591
8d138742
CE
19592# A language specific compiler.
19593CC=$lt_compiler_CXX
dd184caf 19594
8d138742
CE
19595# Is the compiler the GNU compiler?
19596with_gcc=$GCC_CXX
dd184caf 19597
8d138742
CE
19598# Compiler flag to turn off builtin functions.
19599no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
dd184caf 19600
8d138742
CE
19601# How to pass a linker flag through the compiler.
19602wl=$lt_lt_prog_compiler_wl_CXX
dd184caf 19603
8d138742
CE
19604# Additional compiler flags for building library objects.
19605pic_flag=$lt_lt_prog_compiler_pic_CXX
dd184caf 19606
8d138742
CE
19607# Compiler flag to prevent dynamic linking.
19608link_static_flag=$lt_lt_prog_compiler_static_CXX
dd184caf 19609
8d138742
CE
19610# Does compiler simultaneously support -c and -o options?
19611compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
dd184caf 19612
8d138742
CE
19613# Whether or not to add -lc for building shared libraries.
19614build_libtool_need_lc=$archive_cmds_need_lc_CXX
dd184caf 19615
8d138742
CE
19616# Whether or not to disallow shared libs when runtime libs are static.
19617allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
d9898ee8 19618
8d138742
CE
19619# Compiler flag to allow reflexive dlopens.
19620export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19621
19622# Compiler flag to generate shared objects directly from archives.
19623whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19624
19625# Whether the compiler copes with passing no objects directly.
19626compiler_needs_object=$lt_compiler_needs_object_CXX
19627
19628# Create an old-style archive from a shared archive.
19629old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19630
19631# Create a temporary old-style archive to link instead of a shared archive.
19632old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19633
19634# Commands used to build a shared archive.
19635archive_cmds=$lt_archive_cmds_CXX
19636archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19637
19638# Commands used to build a loadable module if different from building
19639# a shared archive.
19640module_cmds=$lt_module_cmds_CXX
19641module_expsym_cmds=$lt_module_expsym_cmds_CXX
19642
19643# Whether we are building with GNU ld or not.
19644with_gnu_ld=$lt_with_gnu_ld_CXX
19645
19646# Flag that allows shared libraries with undefined symbols to be built.
19647allow_undefined_flag=$lt_allow_undefined_flag_CXX
19648
19649# Flag that enforces no undefined symbols.
19650no_undefined_flag=$lt_no_undefined_flag_CXX
19651
19652# Flag to hardcode \$libdir into a binary during linking.
19653# This must work even if \$libdir does not exist
19654hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19655
19656# If ld is used when linking, flag to hardcode \$libdir into a binary
19657# during linking. This must work even if \$libdir does not exist.
19658hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
19659
19660# Whether we need a single "-rpath" flag with a separated argument.
19661hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19662
19663# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19664# DIR into the resulting binary.
19665hardcode_direct=$hardcode_direct_CXX
19666
19667# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19668# DIR into the resulting binary and the resulting library dependency is
19669# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19670# library is relocated.
19671hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19672
19673# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19674# into the resulting binary.
19675hardcode_minus_L=$hardcode_minus_L_CXX
d9898ee8 19676
8d138742
CE
19677# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19678# into the resulting binary.
19679hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
d9898ee8 19680
8d138742
CE
19681# Set to "yes" if building a shared library automatically hardcodes DIR
19682# into the library and all subsequent libraries and executables linked
19683# against it.
19684hardcode_automatic=$hardcode_automatic_CXX
d9898ee8 19685
8d138742
CE
19686# Set to yes if linker adds runtime paths of dependent libraries
19687# to runtime path list.
19688inherit_rpath=$inherit_rpath_CXX
d9898ee8 19689
8d138742
CE
19690# Whether libtool must link a program against all its dependency libraries.
19691link_all_deplibs=$link_all_deplibs_CXX
d9898ee8 19692
8d138742
CE
19693# Fix the shell variable \$srcfile for the compiler.
19694fix_srcfile_path=$lt_fix_srcfile_path_CXX
d9898ee8 19695
8d138742
CE
19696# Set to "yes" if exported symbols are required.
19697always_export_symbols=$always_export_symbols_CXX
dd184caf 19698
8d138742
CE
19699# The commands to list exported symbols.
19700export_symbols_cmds=$lt_export_symbols_cmds_CXX
dd184caf 19701
8d138742
CE
19702# Symbols that should not be listed in the preloaded symbols.
19703exclude_expsyms=$lt_exclude_expsyms_CXX
dd184caf 19704
8d138742
CE
19705# Symbols that must always be exported.
19706include_expsyms=$lt_include_expsyms_CXX
dd184caf 19707
8d138742
CE
19708# Commands necessary for linking programs (against libraries) with templates.
19709prelink_cmds=$lt_prelink_cmds_CXX
d9898ee8 19710
8d138742
CE
19711# Specify filename containing input files.
19712file_list_spec=$lt_file_list_spec_CXX
d9898ee8 19713
8d138742
CE
19714# How to hardcode a shared library path into an executable.
19715hardcode_action=$hardcode_action_CXX
d9898ee8 19716
8d138742
CE
19717# The directories searched by this compiler when creating a shared library.
19718compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
d9898ee8 19719
8d138742
CE
19720# Dependencies to place before and after the objects being linked to
19721# create a shared library.
19722predep_objects=$lt_predep_objects_CXX
19723postdep_objects=$lt_postdep_objects_CXX
19724predeps=$lt_predeps_CXX
19725postdeps=$lt_postdeps_CXX
19726
19727# The library search path used internally by the compiler when linking
19728# a shared library.
19729compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19730
19731# ### END LIBTOOL TAG CONFIG: CXX
19732_LT_EOF
d9898ee8 19733
d9898ee8 19734 ;;
dd184caf 19735
d9898ee8 19736 esac
dd184caf 19737done # for ac_tag
d9898ee8 19738
d9898ee8 19739
19740{ (exit 0); exit 0; }
19741_ACEOF
19742chmod +x $CONFIG_STATUS
19743ac_clean_files=$ac_clean_files_save
19744
8d138742
CE
19745test $ac_write_fail = 0 ||
19746 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
19747$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
19748 { (exit 1); exit 1; }; }
19749
d9898ee8 19750
19751# configure is writing to config.log, and then calls config.status.
19752# config.status does its own redirection, appending to config.log.
19753# Unfortunately, on DOS this fails, as config.log is still kept open
19754# by configure, so config.status won't be able to write to it; its
19755# output is simply discarded. So we exec the FD to /dev/null,
19756# effectively closing config.log, so it can be properly (re)opened and
19757# appended to by config.status. When coming back to configure, we
19758# need to make the FD available again.
19759if test "$no_create" != yes; then
19760 ac_cs_success=:
19761 ac_config_status_args=
19762 test "$silent" = yes &&
19763 ac_config_status_args="$ac_config_status_args --quiet"
19764 exec 5>/dev/null
19765 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19766 exec 5>>config.log
19767 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19768 # would make configure fail if this is the last instruction.
19769 $ac_cs_success || { (exit 1); exit 1; }
19770fi
8d138742
CE
19771if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19772 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19773$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19774fi
d9898ee8 19775