Imported upstream version 0.61.0
[hcoop/debian/courier-authlib.git] / gdbmobj / configure
CommitLineData
d9898ee8 1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
dd184caf 3# Generated by GNU Autoconf 2.61 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,
8# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
d9898ee8 9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## --------------------- ##
12## M4sh Initialization. ##
13## --------------------- ##
14
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=:
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
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
42# The user is always right.
43if test "${PATH_SEPARATOR+set}" != set; then
44 echo "#! /bin/sh" >conf$$.sh
45 echo "exit 0" >>conf$$.sh
46 chmod +x conf$$.sh
47 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48 PATH_SEPARATOR=';'
49 else
50 PATH_SEPARATOR=:
51 fi
52 rm -f conf$$.sh
d9898ee8 53fi
d9898ee8 54
55# Support unset when possible.
56if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57 as_unset=unset
58else
59 as_unset=false
60fi
61
62
dd184caf 63# IFS
64# We need space, tab and new line, in precisely that order. Quoting is
65# there to prevent editors from complaining about space-tab.
66# (If _AS_PATH_WALK were called with IFS unset, it would disable word
67# splitting by setting IFS to empty value.)
68as_nl='
69'
70IFS=" "" $as_nl"
71
72# Find who we are. Look in the path if we contain no directory separator.
73case $0 in
74 *[\\/]* ) as_myself=$0 ;;
75 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76for as_dir in $PATH
77do
78 IFS=$as_save_IFS
79 test -z "$as_dir" && as_dir=.
80 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81done
82IFS=$as_save_IFS
83
84 ;;
85esac
86# We did not find ourselves, most probably we were run as `sh COMMAND'
87# in which case we are not to be found in the path.
88if test "x$as_myself" = x; then
89 as_myself=$0
90fi
91if test ! -f "$as_myself"; then
92 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93 { (exit 1); exit 1; }
94fi
95
d9898ee8 96# Work around bugs in pre-3.0 UWIN ksh.
dd184caf 97for as_var in ENV MAIL MAILPATH
98do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99done
d9898ee8 100PS1='$ '
101PS2='> '
102PS4='+ '
103
104# NLS nuisances.
105for as_var in \
106 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 LC_TELEPHONE LC_TIME
109do
110 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111 eval $as_var=C; export $as_var
112 else
dd184caf 113 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
d9898ee8 114 fi
115done
116
117# Required to use basename.
dd184caf 118if expr a : '\(a\)' >/dev/null 2>&1 &&
119 test "X`expr 00001 : '.*\(...\)'`" = X001; then
d9898ee8 120 as_expr=expr
121else
122 as_expr=false
123fi
124
dd184caf 125if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
d9898ee8 126 as_basename=basename
127else
128 as_basename=false
129fi
130
131
132# Name of the executable.
dd184caf 133as_me=`$as_basename -- "$0" ||
d9898ee8 134$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135 X"$0" : 'X\(//\)$' \| \
dd184caf 136 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
d9898ee8 137echo X/"$0" |
dd184caf 138 sed '/^.*\/\([^/][^/]*\)\/*$/{
139 s//\1/
140 q
141 }
142 /^X\/\(\/\/\)$/{
143 s//\1/
144 q
145 }
146 /^X\/\(\/\).*/{
147 s//\1/
148 q
149 }
150 s/.*/./; q'`
d9898ee8 151
dd184caf 152# CDPATH.
153$as_unset CDPATH
d9898ee8 154
d9898ee8 155
dd184caf 156if test "x$CONFIG_SHELL" = x; then
157 if (eval ":") 2>/dev/null; then
158 as_have_required=yes
159else
160 as_have_required=no
d9898ee8 161fi
162
dd184caf 163 if test $as_have_required = yes && (eval ":
164(as_func_return () {
165 (exit \$1)
166}
167as_func_success () {
168 as_func_return 0
169}
170as_func_failure () {
171 as_func_return 1
172}
173as_func_ret_success () {
174 return 0
175}
176as_func_ret_failure () {
177 return 1
178}
d9898ee8 179
dd184caf 180exitcode=0
181if as_func_success; then
182 :
183else
184 exitcode=1
185 echo as_func_success failed.
186fi
d9898ee8 187
dd184caf 188if as_func_failure; then
189 exitcode=1
190 echo as_func_failure succeeded.
191fi
192
193if as_func_ret_success; then
194 :
195else
196 exitcode=1
197 echo as_func_ret_success failed.
198fi
199
200if as_func_ret_failure; then
201 exitcode=1
202 echo as_func_ret_failure succeeded.
203fi
204
205if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
206 :
207else
208 exitcode=1
209 echo positional parameters were not saved.
210fi
211
212test \$exitcode = 0) || { (exit 1); exit 1; }
213
214(
215 as_lineno_1=\$LINENO
216 as_lineno_2=\$LINENO
217 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219") 2> /dev/null; then
220 :
221else
222 as_candidate_shells=
d9898ee8 223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225do
226 IFS=$as_save_IFS
227 test -z "$as_dir" && as_dir=.
dd184caf 228 case $as_dir in
d9898ee8 229 /*)
dd184caf 230 for as_base in sh bash ksh sh5; do
231 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232 done;;
233 esac
234done
235IFS=$as_save_IFS
236
237
238 for as_shell in $as_candidate_shells $SHELL; do
239 # Try only shells that exist, to save several forks.
240 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241 { ("$as_shell") 2> /dev/null <<\_ASEOF
242if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243 emulate sh
244 NULLCMD=:
245 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246 # is contrary to our usage. Disable this feature.
247 alias -g '${1+"$@"}'='"$@"'
248 setopt NO_GLOB_SUBST
249else
250 case `(set -o) 2>/dev/null` in
251 *posix*) set -o posix ;;
252esac
253
254fi
255
256
257:
258_ASEOF
259}; then
260 CONFIG_SHELL=$as_shell
261 as_have_required=yes
262 if { "$as_shell" 2> /dev/null <<\_ASEOF
263if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 emulate sh
265 NULLCMD=:
266 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267 # is contrary to our usage. Disable this feature.
268 alias -g '${1+"$@"}'='"$@"'
269 setopt NO_GLOB_SUBST
270else
271 case `(set -o) 2>/dev/null` in
272 *posix*) set -o posix ;;
273esac
274
275fi
276
277
278:
279(as_func_return () {
280 (exit $1)
281}
282as_func_success () {
283 as_func_return 0
284}
285as_func_failure () {
286 as_func_return 1
287}
288as_func_ret_success () {
289 return 0
290}
291as_func_ret_failure () {
292 return 1
293}
294
295exitcode=0
296if as_func_success; then
297 :
298else
299 exitcode=1
300 echo as_func_success failed.
301fi
302
303if as_func_failure; then
304 exitcode=1
305 echo as_func_failure succeeded.
306fi
307
308if as_func_ret_success; then
309 :
310else
311 exitcode=1
312 echo as_func_ret_success failed.
313fi
314
315if as_func_ret_failure; then
316 exitcode=1
317 echo as_func_ret_failure succeeded.
318fi
319
320if ( set x; as_func_ret_success y && test x = "$1" ); then
321 :
322else
323 exitcode=1
324 echo positional parameters were not saved.
325fi
326
327test $exitcode = 0) || { (exit 1); exit 1; }
328
329(
d9898ee8 330 as_lineno_1=$LINENO
331 as_lineno_2=$LINENO
d9898ee8 332 test "x$as_lineno_1" != "x$as_lineno_2" &&
dd184caf 333 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
334
335_ASEOF
336}; then
337 break
338fi
339
340fi
341
342 done
343
344 if test "x$CONFIG_SHELL" != x; then
345 for as_var in BASH_ENV ENV
346 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347 done
348 export CONFIG_SHELL
349 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
350fi
351
352
353 if test $as_have_required = no; then
354 echo This script requires a shell more modern than all the
355 echo shells that I found on your system. Please install a
356 echo modern shell, or manually run the script under such a
357 echo shell if you do have one.
358 { (exit 1); exit 1; }
359fi
360
361
362fi
363
364fi
365
366
367
368(eval "as_func_return () {
369 (exit \$1)
370}
371as_func_success () {
372 as_func_return 0
373}
374as_func_failure () {
375 as_func_return 1
376}
377as_func_ret_success () {
378 return 0
379}
380as_func_ret_failure () {
381 return 1
382}
383
384exitcode=0
385if as_func_success; then
386 :
387else
388 exitcode=1
389 echo as_func_success failed.
390fi
391
392if as_func_failure; then
393 exitcode=1
394 echo as_func_failure succeeded.
395fi
396
397if as_func_ret_success; then
398 :
399else
400 exitcode=1
401 echo as_func_ret_success failed.
402fi
403
404if as_func_ret_failure; then
405 exitcode=1
406 echo as_func_ret_failure succeeded.
407fi
408
409if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
410 :
411else
412 exitcode=1
413 echo positional parameters were not saved.
414fi
415
416test \$exitcode = 0") || {
417 echo No shell found that supports shell functions.
418 echo Please tell autoconf@gnu.org about your system,
419 echo including any error possibly output before this
420 echo message
421}
422
423
424
425 as_lineno_1=$LINENO
426 as_lineno_2=$LINENO
427 test "x$as_lineno_1" != "x$as_lineno_2" &&
428 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
d9898ee8 429
430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431 # uniformly replaced by the line number. The first 'sed' inserts a
dd184caf 432 # line-number line after each line using $LINENO; the second 'sed'
433 # does the real work. The second script uses 'N' to pair each
434 # line-number line with the line containing $LINENO, and appends
435 # trailing '-' during substitution so that $LINENO is not a special
436 # case at line end.
d9898ee8 437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
dd184caf 438 # scripts with optimization help from Paolo Bonzini. Blame Lee
439 # E. McMahon (1931-1989) for sed's syntax. :-)
440 sed -n '
441 p
442 /[$]LINENO/=
443 ' <$as_myself |
d9898ee8 444 sed '
dd184caf 445 s/[$]LINENO.*/&-/
446 t lineno
447 b
448 :lineno
d9898ee8 449 N
dd184caf 450 :loop
451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
d9898ee8 452 t loop
dd184caf 453 s/-\n.*//
d9898ee8 454 ' >$as_me.lineno &&
dd184caf 455 chmod +x "$as_me.lineno" ||
d9898ee8 456 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457 { (exit 1); exit 1; }; }
458
459 # Don't try to exec as it changes $[0], causing all sort of problems
460 # (the dirname of $[0] is not the place where we might find the
dd184caf 461 # original and so on. Autoconf is especially sensitive to this).
462 . "./$as_me.lineno"
d9898ee8 463 # Exit status is that of the last command.
464 exit
465}
466
467
dd184caf 468if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469 as_dirname=dirname
470else
471 as_dirname=false
472fi
473
474ECHO_C= ECHO_N= ECHO_T=
475case `echo -n x` in
476-n*)
477 case `echo 'x\c'` in
478 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
479 *) ECHO_C='\c';;
480 esac;;
481*)
482 ECHO_N='-n';;
d9898ee8 483esac
484
dd184caf 485if expr a : '\(a\)' >/dev/null 2>&1 &&
486 test "X`expr 00001 : '.*\(...\)'`" = X001; then
d9898ee8 487 as_expr=expr
488else
489 as_expr=false
490fi
491
492rm -f conf$$ conf$$.exe conf$$.file
dd184caf 493if test -d conf$$.dir; then
494 rm -f conf$$.dir/conf$$.file
495else
496 rm -f conf$$.dir
497 mkdir conf$$.dir
498fi
d9898ee8 499echo >conf$$.file
500if ln -s conf$$.file conf$$ 2>/dev/null; then
dd184caf 501 as_ln_s='ln -s'
502 # ... but there are two gotchas:
503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505 # In both cases, we have to default to `cp -p'.
506 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
d9898ee8 507 as_ln_s='cp -p'
d9898ee8 508elif ln conf$$.file conf$$ 2>/dev/null; then
509 as_ln_s=ln
510else
511 as_ln_s='cp -p'
512fi
dd184caf 513rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514rmdir conf$$.dir 2>/dev/null
d9898ee8 515
516if mkdir -p . 2>/dev/null; then
517 as_mkdir_p=:
518else
519 test -d ./-p && rmdir ./-p
520 as_mkdir_p=false
521fi
522
dd184caf 523if test -x / >/dev/null 2>&1; then
524 as_test_x='test -x'
525else
526 if ls -dL / >/dev/null 2>&1; then
527 as_ls_L_option=L
528 else
529 as_ls_L_option=
530 fi
531 as_test_x='
532 eval sh -c '\''
533 if test -d "$1"; then
534 test -d "$1/.";
535 else
536 case $1 in
537 -*)set "./$1";;
538 esac;
539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540 ???[sx]*):;;*)false;;esac;fi
541 '\'' sh
542 '
543fi
544as_executable_p=$as_test_x
d9898ee8 545
546# Sed expression to map a string onto a valid CPP name.
547as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
548
549# Sed expression to map a string onto a valid variable name.
550as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
551
552
d9898ee8 553
554
555# Check that we are running under the correct shell.
556SHELL=${CONFIG_SHELL-/bin/sh}
557
558case X$ECHO in
559X*--fallback-echo)
560 # Remove one level of quotation (which was required for Make).
561 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
562 ;;
563esac
564
565echo=${ECHO-echo}
566if test "X$1" = X--no-reexec; then
567 # Discard the --no-reexec flag, and continue.
568 shift
569elif test "X$1" = X--fallback-echo; then
570 # Avoid inline document here, it may be left over
571 :
572elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
573 # Yippee, $echo works!
574 :
575else
576 # Restart under the correct shell.
577 exec $SHELL "$0" --no-reexec ${1+"$@"}
578fi
579
580if test "X$1" = X--fallback-echo; then
581 # used as fallback echo
582 shift
583 cat <<EOF
584$*
585EOF
586 exit 0
587fi
588
589# The HP-UX ksh and POSIX shell print the target directory to stdout
590# if CDPATH is set.
591(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
592
593if test -z "$ECHO"; then
594if test "X${echo_test_string+set}" != Xset; then
595# find a string as large as possible, as long as the shell can cope with it
596 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
597 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
598 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
599 echo_test_string=`eval $cmd` &&
600 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
601 then
602 break
603 fi
604 done
605fi
606
607if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
608 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
609 test "X$echo_testing_string" = "X$echo_test_string"; then
610 :
611else
612 # The Solaris, AIX, and Digital Unix default echo programs unquote
613 # backslashes. This makes it impossible to quote backslashes using
614 # echo "$something" | sed 's/\\/\\\\/g'
615 #
616 # So, first we look for a working echo in the user's PATH.
617
618 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
619 for dir in $PATH /usr/ucb; do
620 IFS="$lt_save_ifs"
621 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
622 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
623 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
624 test "X$echo_testing_string" = "X$echo_test_string"; then
625 echo="$dir/echo"
626 break
627 fi
628 done
629 IFS="$lt_save_ifs"
630
631 if test "X$echo" = Xecho; then
632 # We didn't find a better echo, so look for alternatives.
633 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
634 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
635 test "X$echo_testing_string" = "X$echo_test_string"; then
636 # This shell has a builtin print -r that does the trick.
637 echo='print -r'
638 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
639 test "X$CONFIG_SHELL" != X/bin/ksh; then
640 # If we have ksh, try running configure again with it.
641 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
642 export ORIGINAL_CONFIG_SHELL
643 CONFIG_SHELL=/bin/ksh
644 export CONFIG_SHELL
645 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
646 else
647 # Try using printf.
648 echo='printf %s\n'
649 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
650 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
651 test "X$echo_testing_string" = "X$echo_test_string"; then
652 # Cool, printf works
653 :
654 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
655 test "X$echo_testing_string" = 'X\t' &&
656 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
657 test "X$echo_testing_string" = "X$echo_test_string"; then
658 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
659 export CONFIG_SHELL
660 SHELL="$CONFIG_SHELL"
661 export SHELL
662 echo="$CONFIG_SHELL $0 --fallback-echo"
663 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
664 test "X$echo_testing_string" = 'X\t' &&
665 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
666 test "X$echo_testing_string" = "X$echo_test_string"; then
667 echo="$CONFIG_SHELL $0 --fallback-echo"
668 else
669 # maybe with a smaller string...
670 prev=:
671
672 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
673 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
674 then
675 break
676 fi
677 prev="$cmd"
678 done
679
680 if test "$prev" != 'sed 50q "$0"'; then
681 echo_test_string=`eval $prev`
682 export echo_test_string
683 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
684 else
685 # Oops. We lost completely, so just stick with echo.
686 echo=echo
687 fi
688 fi
689 fi
690 fi
691fi
692fi
693
694# Copy echo and quote the copy suitably for passing to libtool from
695# the Makefile, instead of quoting the original, which is used later.
696ECHO=$echo
697if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
698 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
699fi
700
701
702
703
704tagnames=${tagnames+${tagnames},}CXX
705
706tagnames=${tagnames+${tagnames},}F77
707
dd184caf 708exec 7<&0 </dev/null 6>&1
709
d9898ee8 710# Name of the host.
711# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
712# so uname gets run too.
713ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
714
d9898ee8 715#
716# Initializations.
717#
718ac_default_prefix=/usr/local
dd184caf 719ac_clean_files=
d9898ee8 720ac_config_libobj_dir=.
dd184caf 721LIBOBJS=
d9898ee8 722cross_compiling=no
723subdirs=
724MFLAGS=
725MAKEFLAGS=
726SHELL=${CONFIG_SHELL-/bin/sh}
727
d9898ee8 728# Identity of this package.
729PACKAGE_NAME='gdbmobj'
730PACKAGE_TARNAME='gdbmobj'
731PACKAGE_VERSION='0.10'
732PACKAGE_STRING='gdbmobj 0.10'
733PACKAGE_BUGREPORT='courier-users@lists.sourceforge.net'
734
735ac_unique_file="gdbmobj.c"
736# Factoring default headers for most tests.
737ac_includes_default="\
738#include <stdio.h>
dd184caf 739#ifdef HAVE_SYS_TYPES_H
d9898ee8 740# include <sys/types.h>
741#endif
dd184caf 742#ifdef HAVE_SYS_STAT_H
d9898ee8 743# include <sys/stat.h>
744#endif
dd184caf 745#ifdef STDC_HEADERS
d9898ee8 746# include <stdlib.h>
747# include <stddef.h>
748#else
dd184caf 749# ifdef HAVE_STDLIB_H
d9898ee8 750# include <stdlib.h>
751# endif
752#endif
dd184caf 753#ifdef HAVE_STRING_H
754# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
d9898ee8 755# include <memory.h>
756# endif
757# include <string.h>
758#endif
dd184caf 759#ifdef HAVE_STRINGS_H
d9898ee8 760# include <strings.h>
761#endif
dd184caf 762#ifdef HAVE_INTTYPES_H
d9898ee8 763# include <inttypes.h>
d9898ee8 764#endif
dd184caf 765#ifdef HAVE_STDINT_H
766# include <stdint.h>
767#endif
768#ifdef HAVE_UNISTD_H
d9898ee8 769# include <unistd.h>
770#endif"
771
dd184caf 772ac_subst_vars='SHELL
773PATH_SEPARATOR
774PACKAGE_NAME
775PACKAGE_TARNAME
776PACKAGE_VERSION
777PACKAGE_STRING
778PACKAGE_BUGREPORT
779exec_prefix
780prefix
781program_transform_name
782bindir
783sbindir
784libexecdir
785datarootdir
786datadir
787sysconfdir
788sharedstatedir
789localstatedir
790includedir
791oldincludedir
792docdir
793infodir
794htmldir
795dvidir
796pdfdir
797psdir
798libdir
799localedir
800mandir
801DEFS
802ECHO_C
803ECHO_N
804ECHO_T
805LIBS
806build_alias
807host_alias
808target_alias
809INSTALL_PROGRAM
810INSTALL_SCRIPT
811INSTALL_DATA
812am__isrc
813CYGPATH_W
814PACKAGE
815VERSION
816ACLOCAL
817AUTOCONF
818AUTOMAKE
819AUTOHEADER
820MAKEINFO
821install_sh
822STRIP
823INSTALL_STRIP_PROGRAM
824mkdir_p
825AWK
826SET_MAKE
827am__leading_dot
828AMTAR
829am__tar
830am__untar
831CC
832CFLAGS
833LDFLAGS
834CPPFLAGS
835ac_ct_CC
836EXEEXT
837OBJEXT
838DEPDIR
839am__include
840am__quote
841AMDEP_TRUE
842AMDEP_FALSE
843AMDEPBACKSLASH
844CCDEPMODE
845am__fastdepCC_TRUE
846am__fastdepCC_FALSE
847CPP
848GREP
849EGREP
850CXX
851CXXFLAGS
852ac_ct_CXX
853CXXDEPMODE
854am__fastdepCXX_TRUE
855am__fastdepCXX_FALSE
856build
857build_cpu
858build_vendor
859build_os
860host
861host_cpu
862host_vendor
863host_os
864SED
865LN_S
866ECHO
867AR
868RANLIB
869CXXCPP
870F77
871FFLAGS
872ac_ct_F77
873LIBTOOL
874LIBGDBM
875FOUND_GDBM_TRUE
876FOUND_GDBM_FALSE
877LIBOBJS
878LTLIBOBJS'
d9898ee8 879ac_subst_files=''
dd184caf 880 ac_precious_vars='build_alias
881host_alias
882target_alias
883CC
884CFLAGS
885LDFLAGS
886LIBS
887CPPFLAGS
888CPP
889CXX
890CXXFLAGS
891CCC
892CXXCPP
893F77
894FFLAGS'
895
d9898ee8 896
897# Initialize some variables set by options.
898ac_init_help=
899ac_init_version=false
900# The variables have the same names as the options, with
901# dashes changed to underlines.
902cache_file=/dev/null
903exec_prefix=NONE
904no_create=
905no_recursion=
906prefix=NONE
907program_prefix=NONE
908program_suffix=NONE
909program_transform_name=s,x,x,
910silent=
911site=
912srcdir=
913verbose=
914x_includes=NONE
915x_libraries=NONE
916
917# Installation directory options.
918# These are left unexpanded so users can "make install exec_prefix=/foo"
919# and all the variables that are supposed to be based on exec_prefix
920# by default will actually change.
921# Use braces instead of parens because sh, perl, etc. also accept them.
dd184caf 922# (The list follows the same order as the GNU Coding Standards.)
d9898ee8 923bindir='${exec_prefix}/bin'
924sbindir='${exec_prefix}/sbin'
925libexecdir='${exec_prefix}/libexec'
dd184caf 926datarootdir='${prefix}/share'
927datadir='${datarootdir}'
d9898ee8 928sysconfdir='${prefix}/etc'
929sharedstatedir='${prefix}/com'
930localstatedir='${prefix}/var'
d9898ee8 931includedir='${prefix}/include'
932oldincludedir='/usr/include'
dd184caf 933docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
934infodir='${datarootdir}/info'
935htmldir='${docdir}'
936dvidir='${docdir}'
937pdfdir='${docdir}'
938psdir='${docdir}'
939libdir='${exec_prefix}/lib'
940localedir='${datarootdir}/locale'
941mandir='${datarootdir}/man'
d9898ee8 942
943ac_prev=
dd184caf 944ac_dashdash=
d9898ee8 945for ac_option
946do
947 # If the previous option needs an argument, assign it.
948 if test -n "$ac_prev"; then
dd184caf 949 eval $ac_prev=\$ac_option
d9898ee8 950 ac_prev=
951 continue
952 fi
953
dd184caf 954 case $ac_option in
955 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
956 *) ac_optarg=yes ;;
957 esac
d9898ee8 958
959 # Accept the important Cygnus configure options, so we can diagnose typos.
960
dd184caf 961 case $ac_dashdash$ac_option in
962 --)
963 ac_dashdash=yes ;;
d9898ee8 964
965 -bindir | --bindir | --bindi | --bind | --bin | --bi)
966 ac_prev=bindir ;;
967 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
968 bindir=$ac_optarg ;;
969
970 -build | --build | --buil | --bui | --bu)
971 ac_prev=build_alias ;;
972 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
973 build_alias=$ac_optarg ;;
974
975 -cache-file | --cache-file | --cache-fil | --cache-fi \
976 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
977 ac_prev=cache_file ;;
978 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
979 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
980 cache_file=$ac_optarg ;;
981
982 --config-cache | -C)
983 cache_file=config.cache ;;
984
dd184caf 985 -datadir | --datadir | --datadi | --datad)
d9898ee8 986 ac_prev=datadir ;;
dd184caf 987 -datadir=* | --datadir=* | --datadi=* | --datad=*)
d9898ee8 988 datadir=$ac_optarg ;;
989
dd184caf 990 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
991 | --dataroo | --dataro | --datar)
992 ac_prev=datarootdir ;;
993 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
994 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
995 datarootdir=$ac_optarg ;;
996
d9898ee8 997 -disable-* | --disable-*)
998 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
999 # Reject names that are not valid shell variable names.
dd184caf 1000 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
d9898ee8 1001 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1002 { (exit 1); exit 1; }; }
dd184caf 1003 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1004 eval enable_$ac_feature=no ;;
1005
1006 -docdir | --docdir | --docdi | --doc | --do)
1007 ac_prev=docdir ;;
1008 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1009 docdir=$ac_optarg ;;
1010
1011 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1012 ac_prev=dvidir ;;
1013 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1014 dvidir=$ac_optarg ;;
d9898ee8 1015
1016 -enable-* | --enable-*)
1017 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1018 # Reject names that are not valid shell variable names.
dd184caf 1019 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
d9898ee8 1020 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1021 { (exit 1); exit 1; }; }
dd184caf 1022 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1023 eval enable_$ac_feature=\$ac_optarg ;;
d9898ee8 1024
1025 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1026 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1027 | --exec | --exe | --ex)
1028 ac_prev=exec_prefix ;;
1029 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1030 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1031 | --exec=* | --exe=* | --ex=*)
1032 exec_prefix=$ac_optarg ;;
1033
1034 -gas | --gas | --ga | --g)
1035 # Obsolete; use --with-gas.
1036 with_gas=yes ;;
1037
1038 -help | --help | --hel | --he | -h)
1039 ac_init_help=long ;;
1040 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1041 ac_init_help=recursive ;;
1042 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1043 ac_init_help=short ;;
1044
1045 -host | --host | --hos | --ho)
1046 ac_prev=host_alias ;;
1047 -host=* | --host=* | --hos=* | --ho=*)
1048 host_alias=$ac_optarg ;;
1049
dd184caf 1050 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1051 ac_prev=htmldir ;;
1052 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1053 | --ht=*)
1054 htmldir=$ac_optarg ;;
1055
d9898ee8 1056 -includedir | --includedir | --includedi | --included | --include \
1057 | --includ | --inclu | --incl | --inc)
1058 ac_prev=includedir ;;
1059 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1060 | --includ=* | --inclu=* | --incl=* | --inc=*)
1061 includedir=$ac_optarg ;;
1062
1063 -infodir | --infodir | --infodi | --infod | --info | --inf)
1064 ac_prev=infodir ;;
1065 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1066 infodir=$ac_optarg ;;
1067
1068 -libdir | --libdir | --libdi | --libd)
1069 ac_prev=libdir ;;
1070 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1071 libdir=$ac_optarg ;;
1072
1073 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1074 | --libexe | --libex | --libe)
1075 ac_prev=libexecdir ;;
1076 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1077 | --libexe=* | --libex=* | --libe=*)
1078 libexecdir=$ac_optarg ;;
1079
dd184caf 1080 -localedir | --localedir | --localedi | --localed | --locale)
1081 ac_prev=localedir ;;
1082 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1083 localedir=$ac_optarg ;;
1084
d9898ee8 1085 -localstatedir | --localstatedir | --localstatedi | --localstated \
dd184caf 1086 | --localstate | --localstat | --localsta | --localst | --locals)
d9898ee8 1087 ac_prev=localstatedir ;;
1088 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
dd184caf 1089 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
d9898ee8 1090 localstatedir=$ac_optarg ;;
1091
1092 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1093 ac_prev=mandir ;;
1094 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1095 mandir=$ac_optarg ;;
1096
1097 -nfp | --nfp | --nf)
1098 # Obsolete; use --without-fp.
1099 with_fp=no ;;
1100
1101 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1102 | --no-cr | --no-c | -n)
1103 no_create=yes ;;
1104
1105 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1106 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1107 no_recursion=yes ;;
1108
1109 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1110 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1111 | --oldin | --oldi | --old | --ol | --o)
1112 ac_prev=oldincludedir ;;
1113 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1114 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1115 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1116 oldincludedir=$ac_optarg ;;
1117
1118 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1119 ac_prev=prefix ;;
1120 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1121 prefix=$ac_optarg ;;
1122
1123 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1124 | --program-pre | --program-pr | --program-p)
1125 ac_prev=program_prefix ;;
1126 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1127 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1128 program_prefix=$ac_optarg ;;
1129
1130 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1131 | --program-suf | --program-su | --program-s)
1132 ac_prev=program_suffix ;;
1133 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1134 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1135 program_suffix=$ac_optarg ;;
1136
1137 -program-transform-name | --program-transform-name \
1138 | --program-transform-nam | --program-transform-na \
1139 | --program-transform-n | --program-transform- \
1140 | --program-transform | --program-transfor \
1141 | --program-transfo | --program-transf \
1142 | --program-trans | --program-tran \
1143 | --progr-tra | --program-tr | --program-t)
1144 ac_prev=program_transform_name ;;
1145 -program-transform-name=* | --program-transform-name=* \
1146 | --program-transform-nam=* | --program-transform-na=* \
1147 | --program-transform-n=* | --program-transform-=* \
1148 | --program-transform=* | --program-transfor=* \
1149 | --program-transfo=* | --program-transf=* \
1150 | --program-trans=* | --program-tran=* \
1151 | --progr-tra=* | --program-tr=* | --program-t=*)
1152 program_transform_name=$ac_optarg ;;
1153
dd184caf 1154 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1155 ac_prev=pdfdir ;;
1156 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1157 pdfdir=$ac_optarg ;;
1158
1159 -psdir | --psdir | --psdi | --psd | --ps)
1160 ac_prev=psdir ;;
1161 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1162 psdir=$ac_optarg ;;
1163
d9898ee8 1164 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1165 | -silent | --silent | --silen | --sile | --sil)
1166 silent=yes ;;
1167
1168 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1169 ac_prev=sbindir ;;
1170 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1171 | --sbi=* | --sb=*)
1172 sbindir=$ac_optarg ;;
1173
1174 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1175 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1176 | --sharedst | --shareds | --shared | --share | --shar \
1177 | --sha | --sh)
1178 ac_prev=sharedstatedir ;;
1179 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1180 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1181 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1182 | --sha=* | --sh=*)
1183 sharedstatedir=$ac_optarg ;;
1184
1185 -site | --site | --sit)
1186 ac_prev=site ;;
1187 -site=* | --site=* | --sit=*)
1188 site=$ac_optarg ;;
1189
1190 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1191 ac_prev=srcdir ;;
1192 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1193 srcdir=$ac_optarg ;;
1194
1195 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1196 | --syscon | --sysco | --sysc | --sys | --sy)
1197 ac_prev=sysconfdir ;;
1198 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1199 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1200 sysconfdir=$ac_optarg ;;
1201
1202 -target | --target | --targe | --targ | --tar | --ta | --t)
1203 ac_prev=target_alias ;;
1204 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1205 target_alias=$ac_optarg ;;
1206
1207 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1208 verbose=yes ;;
1209
1210 -version | --version | --versio | --versi | --vers | -V)
1211 ac_init_version=: ;;
1212
1213 -with-* | --with-*)
1214 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1215 # Reject names that are not valid shell variable names.
dd184caf 1216 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
d9898ee8 1217 { echo "$as_me: error: invalid package name: $ac_package" >&2
1218 { (exit 1); exit 1; }; }
dd184caf 1219 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1220 eval with_$ac_package=\$ac_optarg ;;
d9898ee8 1221
1222 -without-* | --without-*)
1223 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1224 # Reject names that are not valid shell variable names.
dd184caf 1225 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
d9898ee8 1226 { echo "$as_me: error: invalid package name: $ac_package" >&2
1227 { (exit 1); exit 1; }; }
dd184caf 1228 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1229 eval with_$ac_package=no ;;
d9898ee8 1230
1231 --x)
1232 # Obsolete; use --with-x.
1233 with_x=yes ;;
1234
1235 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1236 | --x-incl | --x-inc | --x-in | --x-i)
1237 ac_prev=x_includes ;;
1238 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1239 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1240 x_includes=$ac_optarg ;;
1241
1242 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1243 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1244 ac_prev=x_libraries ;;
1245 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1246 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1247 x_libraries=$ac_optarg ;;
1248
1249 -*) { echo "$as_me: error: unrecognized option: $ac_option
1250Try \`$0 --help' for more information." >&2
1251 { (exit 1); exit 1; }; }
1252 ;;
1253
1254 *=*)
1255 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1256 # Reject names that are not valid shell variable names.
1257 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1258 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1259 { (exit 1); exit 1; }; }
dd184caf 1260 eval $ac_envvar=\$ac_optarg
d9898ee8 1261 export $ac_envvar ;;
1262
1263 *)
1264 # FIXME: should be removed in autoconf 3.0.
1265 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1266 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1267 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1268 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1269 ;;
1270
1271 esac
1272done
1273
1274if test -n "$ac_prev"; then
1275 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1276 { echo "$as_me: error: missing argument to $ac_option" >&2
1277 { (exit 1); exit 1; }; }
1278fi
1279
dd184caf 1280# Be sure to have absolute directory names.
1281for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1282 datadir sysconfdir sharedstatedir localstatedir includedir \
1283 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1284 libdir localedir mandir
d9898ee8 1285do
dd184caf 1286 eval ac_val=\$$ac_var
d9898ee8 1287 case $ac_val in
dd184caf 1288 [\\/$]* | ?:[\\/]* ) continue;;
1289 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
d9898ee8 1290 esac
dd184caf 1291 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1292 { (exit 1); exit 1; }; }
d9898ee8 1293done
1294
1295# There might be people who depend on the old broken behavior: `$host'
1296# used to hold the argument of --host etc.
1297# FIXME: To remove some day.
1298build=$build_alias
1299host=$host_alias
1300target=$target_alias
1301
1302# FIXME: To remove some day.
1303if test "x$host_alias" != x; then
1304 if test "x$build_alias" = x; then
1305 cross_compiling=maybe
1306 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1307 If a cross compiler is detected then cross compile mode will be used." >&2
1308 elif test "x$build_alias" != "x$host_alias"; then
1309 cross_compiling=yes
1310 fi
1311fi
1312
1313ac_tool_prefix=
1314test -n "$host_alias" && ac_tool_prefix=$host_alias-
1315
1316test "$silent" = yes && exec 6>/dev/null
1317
1318
dd184caf 1319ac_pwd=`pwd` && test -n "$ac_pwd" &&
1320ac_ls_di=`ls -di .` &&
1321ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1322 { echo "$as_me: error: Working directory cannot be determined" >&2
1323 { (exit 1); exit 1; }; }
1324test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1325 { echo "$as_me: error: pwd does not report name of working directory" >&2
1326 { (exit 1); exit 1; }; }
1327
1328
d9898ee8 1329# Find the source files, if location was not specified.
1330if test -z "$srcdir"; then
1331 ac_srcdir_defaulted=yes
dd184caf 1332 # Try the directory containing this script, then the parent directory.
1333 ac_confdir=`$as_dirname -- "$0" ||
d9898ee8 1334$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1335 X"$0" : 'X\(//\)[^/]' \| \
1336 X"$0" : 'X\(//\)$' \| \
dd184caf 1337 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
d9898ee8 1338echo X"$0" |
dd184caf 1339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1340 s//\1/
1341 q
1342 }
1343 /^X\(\/\/\)[^/].*/{
1344 s//\1/
1345 q
1346 }
1347 /^X\(\/\/\)$/{
1348 s//\1/
1349 q
1350 }
1351 /^X\(\/\).*/{
1352 s//\1/
1353 q
1354 }
1355 s/.*/./; q'`
d9898ee8 1356 srcdir=$ac_confdir
dd184caf 1357 if test ! -r "$srcdir/$ac_unique_file"; then
d9898ee8 1358 srcdir=..
1359 fi
1360else
1361 ac_srcdir_defaulted=no
1362fi
dd184caf 1363if test ! -r "$srcdir/$ac_unique_file"; then
1364 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1365 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
d9898ee8 1366 { (exit 1); exit 1; }; }
d9898ee8 1367fi
dd184caf 1368ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1369ac_abs_confdir=`(
1370 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
d9898ee8 1371 { (exit 1); exit 1; }; }
dd184caf 1372 pwd)`
1373# When building in place, set srcdir=.
1374if test "$ac_abs_confdir" = "$ac_pwd"; then
1375 srcdir=.
1376fi
1377# Remove unnecessary trailing slashes from srcdir.
1378# Double slashes in file names in object file debugging info
1379# mess up M-x gdb in Emacs.
1380case $srcdir in
1381*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1382esac
1383for ac_var in $ac_precious_vars; do
1384 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1385 eval ac_env_${ac_var}_value=\$${ac_var}
1386 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1387 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1388done
d9898ee8 1389
1390#
1391# Report the --help message.
1392#
1393if test "$ac_init_help" = "long"; then
1394 # Omit some internal or obsolete options to make the list less imposing.
1395 # This message is too long to be a string in the A/UX 3.1 sh.
1396 cat <<_ACEOF
1397\`configure' configures gdbmobj 0.10 to adapt to many kinds of systems.
1398
1399Usage: $0 [OPTION]... [VAR=VALUE]...
1400
1401To assign environment variables (e.g., CC, CFLAGS...), specify them as
1402VAR=VALUE. See below for descriptions of some of the useful variables.
1403
1404Defaults for the options are specified in brackets.
1405
1406Configuration:
1407 -h, --help display this help and exit
1408 --help=short display options specific to this package
1409 --help=recursive display the short help of all the included packages
1410 -V, --version display version information and exit
1411 -q, --quiet, --silent do not print \`checking...' messages
1412 --cache-file=FILE cache test results in FILE [disabled]
1413 -C, --config-cache alias for \`--cache-file=config.cache'
1414 -n, --no-create do not create output files
1415 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1416
d9898ee8 1417Installation directories:
1418 --prefix=PREFIX install architecture-independent files in PREFIX
1419 [$ac_default_prefix]
1420 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1421 [PREFIX]
1422
1423By default, \`make install' will install all the files in
1424\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1425an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1426for instance \`--prefix=\$HOME'.
1427
1428For better control, use the options below.
1429
1430Fine tuning of the installation directories:
1431 --bindir=DIR user executables [EPREFIX/bin]
1432 --sbindir=DIR system admin executables [EPREFIX/sbin]
1433 --libexecdir=DIR program executables [EPREFIX/libexec]
d9898ee8 1434 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1435 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1436 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1437 --libdir=DIR object code libraries [EPREFIX/lib]
1438 --includedir=DIR C header files [PREFIX/include]
1439 --oldincludedir=DIR C header files for non-gcc [/usr/include]
dd184caf 1440 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1441 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1442 --infodir=DIR info documentation [DATAROOTDIR/info]
1443 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1444 --mandir=DIR man documentation [DATAROOTDIR/man]
1445 --docdir=DIR documentation root [DATAROOTDIR/doc/gdbmobj]
1446 --htmldir=DIR html documentation [DOCDIR]
1447 --dvidir=DIR dvi documentation [DOCDIR]
1448 --pdfdir=DIR pdf documentation [DOCDIR]
1449 --psdir=DIR ps documentation [DOCDIR]
d9898ee8 1450_ACEOF
1451
1452 cat <<\_ACEOF
1453
1454Program names:
1455 --program-prefix=PREFIX prepend PREFIX to installed program names
1456 --program-suffix=SUFFIX append SUFFIX to installed program names
1457 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1458
1459System types:
1460 --build=BUILD configure for building on BUILD [guessed]
1461 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1462_ACEOF
1463fi
1464
1465if test -n "$ac_init_help"; then
1466 case $ac_init_help in
1467 short | recursive ) echo "Configuration of gdbmobj 0.10:";;
1468 esac
1469 cat <<\_ACEOF
1470
1471Optional Features:
1472 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1473 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1474 --disable-dependency-tracking speeds up one-time build
1475 --enable-dependency-tracking do not reject slow dependency extractors
dd184caf 1476 --enable-shared[=PKGS] build shared libraries [default=yes]
1477 --enable-static[=PKGS] build static libraries [default=yes]
d9898ee8 1478 --enable-fast-install[=PKGS]
1479 optimize for fast installation [default=yes]
1480 --disable-libtool-lock avoid locking (might break parallel builds)
1481
1482Optional Packages:
1483 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1484 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1485 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1486 --with-pic try to use only PIC/non-PIC objects [default=use
1487 both]
dd184caf 1488 --with-tags[=TAGS] include additional configurations [automatic]
d9898ee8 1489
1490Some influential environment variables:
1491 CC C compiler command
1492 CFLAGS C compiler flags
1493 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1494 nonstandard directory <lib dir>
dd184caf 1495 LIBS libraries to pass to the linker, e.g. -l<library>
1496 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1497 you have headers in a nonstandard directory <include dir>
d9898ee8 1498 CPP C preprocessor
1499 CXX C++ compiler command
1500 CXXFLAGS C++ compiler flags
1501 CXXCPP C++ preprocessor
1502 F77 Fortran 77 compiler command
1503 FFLAGS Fortran 77 compiler flags
1504
1505Use these variables to override the choices made by `configure' or to help
1506it to find libraries and programs with nonstandard names/locations.
1507
1508Report bugs to <courier-users@lists.sourceforge.net>.
1509_ACEOF
dd184caf 1510ac_status=$?
d9898ee8 1511fi
1512
1513if test "$ac_init_help" = "recursive"; then
1514 # If there are subdirs, report their specific --help.
d9898ee8 1515 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
dd184caf 1516 test -d "$ac_dir" || continue
d9898ee8 1517 ac_builddir=.
1518
dd184caf 1519case "$ac_dir" in
1520.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1521*)
d9898ee8 1522 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
dd184caf 1523 # A ".." for each directory in $ac_dir_suffix.
1524 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1525 case $ac_top_builddir_sub in
1526 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1527 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1528 esac ;;
1529esac
1530ac_abs_top_builddir=$ac_pwd
1531ac_abs_builddir=$ac_pwd$ac_dir_suffix
1532# for backward compatibility:
1533ac_top_builddir=$ac_top_build_prefix
d9898ee8 1534
1535case $srcdir in
dd184caf 1536 .) # We are building in place.
d9898ee8 1537 ac_srcdir=.
dd184caf 1538 ac_top_srcdir=$ac_top_builddir_sub
1539 ac_abs_top_srcdir=$ac_pwd ;;
1540 [\\/]* | ?:[\\/]* ) # Absolute name.
d9898ee8 1541 ac_srcdir=$srcdir$ac_dir_suffix;
dd184caf 1542 ac_top_srcdir=$srcdir
1543 ac_abs_top_srcdir=$srcdir ;;
1544 *) # Relative name.
1545 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1546 ac_top_srcdir=$ac_top_build_prefix$srcdir
1547 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
d9898ee8 1548esac
dd184caf 1549ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1550
1551 cd "$ac_dir" || { ac_status=$?; continue; }
1552 # Check for guested configure.
1553 if test -f "$ac_srcdir/configure.gnu"; then
1554 echo &&
1555 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1556 elif test -f "$ac_srcdir/configure"; then
1557 echo &&
1558 $SHELL "$ac_srcdir/configure" --help=recursive
d9898ee8 1559 else
1560 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
dd184caf 1561 fi || ac_status=$?
1562 cd "$ac_pwd" || { ac_status=$?; break; }
d9898ee8 1563 done
1564fi
1565
dd184caf 1566test -n "$ac_init_help" && exit $ac_status
d9898ee8 1567if $ac_init_version; then
1568 cat <<\_ACEOF
1569gdbmobj configure 0.10
dd184caf 1570generated by GNU Autoconf 2.61
d9898ee8 1571
dd184caf 1572Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15732002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
d9898ee8 1574This configure script is free software; the Free Software Foundation
1575gives unlimited permission to copy, distribute and modify it.
1576_ACEOF
dd184caf 1577 exit
d9898ee8 1578fi
dd184caf 1579cat >config.log <<_ACEOF
d9898ee8 1580This file contains any messages produced by compilers while
1581running configure, to aid debugging if configure makes a mistake.
1582
1583It was created by gdbmobj $as_me 0.10, which was
dd184caf 1584generated by GNU Autoconf 2.61. Invocation command line was
d9898ee8 1585
1586 $ $0 $@
1587
1588_ACEOF
dd184caf 1589exec 5>>config.log
d9898ee8 1590{
1591cat <<_ASUNAME
1592## --------- ##
1593## Platform. ##
1594## --------- ##
1595
1596hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1597uname -m = `(uname -m) 2>/dev/null || echo unknown`
1598uname -r = `(uname -r) 2>/dev/null || echo unknown`
1599uname -s = `(uname -s) 2>/dev/null || echo unknown`
1600uname -v = `(uname -v) 2>/dev/null || echo unknown`
1601
1602/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1603/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1604
1605/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1606/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1607/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
dd184caf 1608/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
d9898ee8 1609/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1610/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1611/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1612
1613_ASUNAME
1614
1615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1616for as_dir in $PATH
1617do
1618 IFS=$as_save_IFS
1619 test -z "$as_dir" && as_dir=.
1620 echo "PATH: $as_dir"
1621done
dd184caf 1622IFS=$as_save_IFS
d9898ee8 1623
1624} >&5
1625
1626cat >&5 <<_ACEOF
1627
1628
1629## ----------- ##
1630## Core tests. ##
1631## ----------- ##
1632
1633_ACEOF
1634
1635
1636# Keep a trace of the command line.
1637# Strip out --no-create and --no-recursion so they do not pile up.
1638# Strip out --silent because we don't want to record it for future runs.
1639# Also quote any args containing shell meta-characters.
1640# Make two passes to allow for proper duplicate-argument suppression.
1641ac_configure_args=
1642ac_configure_args0=
1643ac_configure_args1=
d9898ee8 1644ac_must_keep_next=false
1645for ac_pass in 1 2
1646do
1647 for ac_arg
1648 do
1649 case $ac_arg in
1650 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1651 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1652 | -silent | --silent | --silen | --sile | --sil)
1653 continue ;;
dd184caf 1654 *\'*)
d9898ee8 1655 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1656 esac
1657 case $ac_pass in
1658 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1659 2)
1660 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1661 if test $ac_must_keep_next = true; then
1662 ac_must_keep_next=false # Got value, back to normal.
1663 else
1664 case $ac_arg in
1665 *=* | --config-cache | -C | -disable-* | --disable-* \
1666 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1667 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1668 | -with-* | --with-* | -without-* | --without-* | --x)
1669 case "$ac_configure_args0 " in
1670 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1671 esac
1672 ;;
1673 -* ) ac_must_keep_next=true ;;
1674 esac
1675 fi
dd184caf 1676 ac_configure_args="$ac_configure_args '$ac_arg'"
d9898ee8 1677 ;;
1678 esac
1679 done
1680done
1681$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1682$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1683
1684# When interrupted or exit'd, cleanup temporary files, and complete
1685# config.log. We remove comments because anyway the quotes in there
1686# would cause problems or look ugly.
dd184caf 1687# WARNING: Use '\'' to represent an apostrophe within the trap.
1688# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
d9898ee8 1689trap 'exit_status=$?
1690 # Save into config.log some information that might help in debugging.
1691 {
1692 echo
1693
1694 cat <<\_ASBOX
1695## ---------------- ##
1696## Cache variables. ##
1697## ---------------- ##
1698_ASBOX
1699 echo
1700 # The following way of writing the cache mishandles newlines in values,
dd184caf 1701(
1702 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1703 eval ac_val=\$$ac_var
1704 case $ac_val in #(
1705 *${as_nl}*)
1706 case $ac_var in #(
1707 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1708echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1709 esac
1710 case $ac_var in #(
1711 _ | IFS | as_nl) ;; #(
1712 *) $as_unset $ac_var ;;
1713 esac ;;
1714 esac
1715 done
d9898ee8 1716 (set) 2>&1 |
dd184caf 1717 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1718 *${as_nl}ac_space=\ *)
d9898ee8 1719 sed -n \
dd184caf 1720 "s/'\''/'\''\\\\'\'''\''/g;
1721 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1722 ;; #(
d9898ee8 1723 *)
dd184caf 1724 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
d9898ee8 1725 ;;
dd184caf 1726 esac |
1727 sort
1728)
d9898ee8 1729 echo
1730
1731 cat <<\_ASBOX
1732## ----------------- ##
1733## Output variables. ##
1734## ----------------- ##
1735_ASBOX
1736 echo
1737 for ac_var in $ac_subst_vars
1738 do
dd184caf 1739 eval ac_val=\$$ac_var
1740 case $ac_val in
1741 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1742 esac
1743 echo "$ac_var='\''$ac_val'\''"
d9898ee8 1744 done | sort
1745 echo
1746
1747 if test -n "$ac_subst_files"; then
1748 cat <<\_ASBOX
dd184caf 1749## ------------------- ##
1750## File substitutions. ##
1751## ------------------- ##
d9898ee8 1752_ASBOX
1753 echo
1754 for ac_var in $ac_subst_files
1755 do
dd184caf 1756 eval ac_val=\$$ac_var
1757 case $ac_val in
1758 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1759 esac
1760 echo "$ac_var='\''$ac_val'\''"
d9898ee8 1761 done | sort
1762 echo
1763 fi
1764
1765 if test -s confdefs.h; then
1766 cat <<\_ASBOX
1767## ----------- ##
1768## confdefs.h. ##
1769## ----------- ##
1770_ASBOX
1771 echo
dd184caf 1772 cat confdefs.h
d9898ee8 1773 echo
1774 fi
1775 test "$ac_signal" != 0 &&
1776 echo "$as_me: caught signal $ac_signal"
1777 echo "$as_me: exit $exit_status"
1778 } >&5
dd184caf 1779 rm -f core *.core core.conftest.* &&
1780 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
d9898ee8 1781 exit $exit_status
dd184caf 1782' 0
d9898ee8 1783for ac_signal in 1 2 13 15; do
1784 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1785done
1786ac_signal=0
1787
1788# confdefs.h avoids OS command line length limits that DEFS can exceed.
dd184caf 1789rm -f -r conftest* confdefs.h
d9898ee8 1790
1791# Predefined preprocessor variables.
1792
1793cat >>confdefs.h <<_ACEOF
1794#define PACKAGE_NAME "$PACKAGE_NAME"
1795_ACEOF
1796
1797
1798cat >>confdefs.h <<_ACEOF
1799#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1800_ACEOF
1801
1802
1803cat >>confdefs.h <<_ACEOF
1804#define PACKAGE_VERSION "$PACKAGE_VERSION"
1805_ACEOF
1806
1807
1808cat >>confdefs.h <<_ACEOF
1809#define PACKAGE_STRING "$PACKAGE_STRING"
1810_ACEOF
1811
1812
1813cat >>confdefs.h <<_ACEOF
1814#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1815_ACEOF
1816
1817
1818# Let the site file select an alternate cache file if it wants to.
1819# Prefer explicitly selected file to automatically selected ones.
dd184caf 1820if test -n "$CONFIG_SITE"; then
1821 set x "$CONFIG_SITE"
1822elif test "x$prefix" != xNONE; then
1823 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1824else
1825 set x "$ac_default_prefix/share/config.site" \
1826 "$ac_default_prefix/etc/config.site"
d9898ee8 1827fi
dd184caf 1828shift
1829for ac_site_file
1830do
d9898ee8 1831 if test -r "$ac_site_file"; then
1832 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1833echo "$as_me: loading site script $ac_site_file" >&6;}
1834 sed 's/^/| /' "$ac_site_file" >&5
1835 . "$ac_site_file"
1836 fi
1837done
1838
1839if test -r "$cache_file"; then
1840 # Some versions of bash will fail to source /dev/null (special
1841 # files actually), so we avoid doing that.
1842 if test -f "$cache_file"; then
1843 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1844echo "$as_me: loading cache $cache_file" >&6;}
1845 case $cache_file in
dd184caf 1846 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1847 *) . "./$cache_file";;
d9898ee8 1848 esac
1849 fi
1850else
1851 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1852echo "$as_me: creating cache $cache_file" >&6;}
1853 >$cache_file
1854fi
1855
1856# Check that the precious variables saved in the cache have kept the same
1857# value.
1858ac_cache_corrupted=false
dd184caf 1859for ac_var in $ac_precious_vars; do
d9898ee8 1860 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1861 eval ac_new_set=\$ac_env_${ac_var}_set
dd184caf 1862 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1863 eval ac_new_val=\$ac_env_${ac_var}_value
d9898ee8 1864 case $ac_old_set,$ac_new_set in
1865 set,)
1866 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1867echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1868 ac_cache_corrupted=: ;;
1869 ,set)
1870 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1871echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1872 ac_cache_corrupted=: ;;
1873 ,);;
1874 *)
1875 if test "x$ac_old_val" != "x$ac_new_val"; then
1876 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1877echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1878 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1879echo "$as_me: former value: $ac_old_val" >&2;}
1880 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1881echo "$as_me: current value: $ac_new_val" >&2;}
1882 ac_cache_corrupted=:
1883 fi;;
1884 esac
1885 # Pass precious variables to config.status.
1886 if test "$ac_new_set" = set; then
1887 case $ac_new_val in
dd184caf 1888 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
d9898ee8 1889 *) ac_arg=$ac_var=$ac_new_val ;;
1890 esac
1891 case " $ac_configure_args " in
1892 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1893 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1894 esac
1895 fi
1896done
1897if $ac_cache_corrupted; then
1898 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1899echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1900 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1901echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1902 { (exit 1); exit 1; }; }
1903fi
1904
d9898ee8 1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
dd184caf 1929ac_ext=c
1930ac_cpp='$CPP $CPPFLAGS'
1931ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1932ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1933ac_compiler_gnu=$ac_cv_c_compiler_gnu
d9898ee8 1934
1935
1936
1937>confdefs.h # Kill PACKAGE_ macros
1938
1939
dd184caf 1940am__api_version='1.10'
1941
d9898ee8 1942ac_aux_dir=
dd184caf 1943for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1944 if test -f "$ac_dir/install-sh"; then
d9898ee8 1945 ac_aux_dir=$ac_dir
1946 ac_install_sh="$ac_aux_dir/install-sh -c"
1947 break
dd184caf 1948 elif test -f "$ac_dir/install.sh"; then
d9898ee8 1949 ac_aux_dir=$ac_dir
1950 ac_install_sh="$ac_aux_dir/install.sh -c"
1951 break
dd184caf 1952 elif test -f "$ac_dir/shtool"; then
d9898ee8 1953 ac_aux_dir=$ac_dir
1954 ac_install_sh="$ac_aux_dir/shtool install -c"
1955 break
1956 fi
1957done
1958if test -z "$ac_aux_dir"; then
dd184caf 1959 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1960echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
d9898ee8 1961 { (exit 1); exit 1; }; }
1962fi
dd184caf 1963
1964# These three variables are undocumented and unsupported,
1965# and are intended to be withdrawn in a future Autoconf release.
1966# They can cause serious problems if a builder's source tree is in a directory
1967# whose full name contains unusual characters.
1968ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1969ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1970ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1971
d9898ee8 1972
1973# Find a good install program. We prefer a C program (faster),
1974# so one script is as good as another. But avoid the broken or
1975# incompatible versions:
1976# SysV /etc/install, /usr/sbin/install
1977# SunOS /usr/etc/install
1978# IRIX /sbin/install
1979# AIX /bin/install
1980# AmigaOS /C/install, which installs bootblocks on floppy discs
1981# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1982# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1983# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1984# OS/2's system install, which has a completely different semantic
1985# ./install, which can be erroneously created by make from ./install.sh.
dd184caf 1986{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1987echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
d9898ee8 1988if test -z "$INSTALL"; then
1989if test "${ac_cv_path_install+set}" = set; then
1990 echo $ECHO_N "(cached) $ECHO_C" >&6
1991else
1992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1993for as_dir in $PATH
1994do
1995 IFS=$as_save_IFS
1996 test -z "$as_dir" && as_dir=.
1997 # Account for people who put trailing slashes in PATH elements.
1998case $as_dir/ in
1999 ./ | .// | /cC/* | \
2000 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2001 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2002 /usr/ucb/* ) ;;
2003 *)
2004 # OSF1 and SCO ODT 3.0 have their own names for install.
2005 # Don't use installbsd from OSF since it installs stuff as root
2006 # by default.
2007 for ac_prog in ginstall scoinst install; do
2008 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 2009 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
d9898ee8 2010 if test $ac_prog = install &&
2011 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2012 # AIX install. It has an incompatible calling convention.
2013 :
2014 elif test $ac_prog = install &&
2015 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2016 # program-specific install script used by HP pwplus--don't use.
2017 :
2018 else
2019 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2020 break 3
2021 fi
2022 fi
2023 done
2024 done
2025 ;;
2026esac
2027done
dd184caf 2028IFS=$as_save_IFS
d9898ee8 2029
2030
2031fi
2032 if test "${ac_cv_path_install+set}" = set; then
2033 INSTALL=$ac_cv_path_install
2034 else
dd184caf 2035 # As a last resort, use the slow shell script. Don't cache a
2036 # value for INSTALL within a source directory, because that will
d9898ee8 2037 # break other packages using the cache if that directory is
dd184caf 2038 # removed, or if the value is a relative name.
d9898ee8 2039 INSTALL=$ac_install_sh
2040 fi
2041fi
dd184caf 2042{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2043echo "${ECHO_T}$INSTALL" >&6; }
d9898ee8 2044
2045# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2046# It thinks the first close brace ends the variable substitution.
2047test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2048
2049test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2050
2051test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2052
dd184caf 2053{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2054echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
d9898ee8 2055# Just in case
2056sleep 1
2057echo timestamp > conftest.file
2058# Do `set' in a subshell so we don't clobber the current shell's
2059# arguments. Must try -L first in case configure is actually a
2060# symlink; some systems play weird games with the mod time of symlinks
2061# (eg FreeBSD returns the mod time of the symlink's containing
2062# directory).
2063if (
2064 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2065 if test "$*" = "X"; then
2066 # -L didn't work.
2067 set X `ls -t $srcdir/configure conftest.file`
2068 fi
2069 rm -f conftest.file
2070 if test "$*" != "X $srcdir/configure conftest.file" \
2071 && test "$*" != "X conftest.file $srcdir/configure"; then
2072
2073 # If neither matched, then we have a broken ls. This can happen
2074 # if, for instance, CONFIG_SHELL is bash and it inherits a
2075 # broken ls alias from the environment. This has actually
2076 # happened. Such a system could not be considered "sane".
2077 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2078alias in your environment" >&5
2079echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2080alias in your environment" >&2;}
2081 { (exit 1); exit 1; }; }
2082 fi
2083
2084 test "$2" = conftest.file
2085 )
2086then
2087 # Ok.
2088 :
2089else
2090 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2091Check your system clock" >&5
2092echo "$as_me: error: newly created file is older than distributed files!
2093Check your system clock" >&2;}
2094 { (exit 1); exit 1; }; }
2095fi
dd184caf 2096{ echo "$as_me:$LINENO: result: yes" >&5
2097echo "${ECHO_T}yes" >&6; }
d9898ee8 2098test "$program_prefix" != NONE &&
dd184caf 2099 program_transform_name="s&^&$program_prefix&;$program_transform_name"
d9898ee8 2100# Use a double $ so make ignores it.
2101test "$program_suffix" != NONE &&
dd184caf 2102 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
d9898ee8 2103# Double any \ or $. echo might interpret backslashes.
2104# By default was `s,x,x', remove it if useless.
2105cat <<\_ACEOF >conftest.sed
2106s/[\\$]/&&/g;s/;s,x,x,$//
2107_ACEOF
2108program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
dd184caf 2109rm -f conftest.sed
d9898ee8 2110
2111# expand $ac_aux_dir to an absolute path
2112am_aux_dir=`cd $ac_aux_dir && pwd`
2113
2114test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2115# Use eval to expand $SHELL
2116if eval "$MISSING --run true"; then
2117 am_missing_run="$MISSING --run "
2118else
2119 am_missing_run=
2120 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2121echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2122fi
2123
dd184caf 2124{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2125echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2126if test -z "$MKDIR_P"; then
2127 if test "${ac_cv_path_mkdir+set}" = set; then
2128 echo $ECHO_N "(cached) $ECHO_C" >&6
2129else
2130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2131for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2132do
2133 IFS=$as_save_IFS
2134 test -z "$as_dir" && as_dir=.
2135 for ac_prog in mkdir gmkdir; do
2136 for ac_exec_ext in '' $ac_executable_extensions; do
2137 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2138 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2139 'mkdir (GNU coreutils) '* | \
2140 'mkdir (coreutils) '* | \
2141 'mkdir (fileutils) '4.1*)
2142 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2143 break 3;;
2144 esac
2145 done
2146 done
2147done
2148IFS=$as_save_IFS
2149
2150fi
2151
2152 if test "${ac_cv_path_mkdir+set}" = set; then
2153 MKDIR_P="$ac_cv_path_mkdir -p"
d9898ee8 2154 else
dd184caf 2155 # As a last resort, use the slow shell script. Don't cache a
2156 # value for MKDIR_P within a source directory, because that will
2157 # break other packages using the cache if that directory is
2158 # removed, or if the value is a relative name.
2159 test -d ./--version && rmdir ./--version
2160 MKDIR_P="$ac_install_sh -d"
d9898ee8 2161 fi
2162fi
dd184caf 2163{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2164echo "${ECHO_T}$MKDIR_P" >&6; }
2165
2166mkdir_p="$MKDIR_P"
2167case $mkdir_p in
2168 [\\/$]* | ?:[\\/]*) ;;
2169 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2170esac
d9898ee8 2171
2172for ac_prog in gawk mawk nawk awk
2173do
2174 # Extract the first word of "$ac_prog", so it can be a program name with args.
2175set dummy $ac_prog; ac_word=$2
dd184caf 2176{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2177echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2178if test "${ac_cv_prog_AWK+set}" = set; then
2179 echo $ECHO_N "(cached) $ECHO_C" >&6
2180else
2181 if test -n "$AWK"; then
2182 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2183else
2184as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2185for as_dir in $PATH
2186do
2187 IFS=$as_save_IFS
2188 test -z "$as_dir" && as_dir=.
2189 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 2190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2191 ac_cv_prog_AWK="$ac_prog"
2192 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2193 break 2
2194 fi
2195done
2196done
dd184caf 2197IFS=$as_save_IFS
d9898ee8 2198
2199fi
2200fi
2201AWK=$ac_cv_prog_AWK
2202if test -n "$AWK"; then
dd184caf 2203 { echo "$as_me:$LINENO: result: $AWK" >&5
2204echo "${ECHO_T}$AWK" >&6; }
d9898ee8 2205else
dd184caf 2206 { echo "$as_me:$LINENO: result: no" >&5
2207echo "${ECHO_T}no" >&6; }
d9898ee8 2208fi
2209
dd184caf 2210
d9898ee8 2211 test -n "$AWK" && break
2212done
2213
dd184caf 2214{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2215echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2216set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2217if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 2218 echo $ECHO_N "(cached) $ECHO_C" >&6
2219else
2220 cat >conftest.make <<\_ACEOF
dd184caf 2221SHELL = /bin/sh
d9898ee8 2222all:
dd184caf 2223 @echo '@@@%%%=$(MAKE)=@@@%%%'
d9898ee8 2224_ACEOF
2225# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
dd184caf 2226case `${MAKE-make} -f conftest.make 2>/dev/null` in
2227 *@@@%%%=?*=@@@%%%*)
2228 eval ac_cv_prog_make_${ac_make}_set=yes;;
2229 *)
2230 eval ac_cv_prog_make_${ac_make}_set=no;;
2231esac
d9898ee8 2232rm -f conftest.make
2233fi
dd184caf 2234if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2235 { echo "$as_me:$LINENO: result: yes" >&5
2236echo "${ECHO_T}yes" >&6; }
d9898ee8 2237 SET_MAKE=
2238else
dd184caf 2239 { echo "$as_me:$LINENO: result: no" >&5
2240echo "${ECHO_T}no" >&6; }
d9898ee8 2241 SET_MAKE="MAKE=${MAKE-make}"
2242fi
2243
2244rm -rf .tst 2>/dev/null
2245mkdir .tst 2>/dev/null
2246if test -d .tst; then
2247 am__leading_dot=.
2248else
2249 am__leading_dot=_
2250fi
2251rmdir .tst 2>/dev/null
2252
dd184caf 2253if test "`cd $srcdir && pwd`" != "`pwd`"; then
2254 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2255 # is not polluted with repeated "-I."
2256 am__isrc=' -I$(srcdir)'
2257 # test to see if srcdir already configured
2258 if test -f $srcdir/config.status; then
2259 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
d9898ee8 2260echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2261 { (exit 1); exit 1; }; }
dd184caf 2262 fi
d9898ee8 2263fi
2264
2265# test whether we have cygpath
2266if test -z "$CYGPATH_W"; then
2267 if (cygpath --version) >/dev/null 2>/dev/null; then
2268 CYGPATH_W='cygpath -w'
2269 else
2270 CYGPATH_W=echo
2271 fi
2272fi
2273
2274
2275# Define the identity of the package.
2276 PACKAGE='gdbmobj'
2277 VERSION='0.10'
2278
2279
2280# Some tools Automake needs.
2281
2282ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2283
2284
2285AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2286
2287
2288AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2289
2290
2291AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2292
2293
2294MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2295
dd184caf 2296install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
d9898ee8 2297
2298# Installed binaries are usually stripped using `strip' when the user
2299# run `make install-strip'. However `strip' might not be the right
2300# tool to use in cross-compilation environments, therefore Automake
2301# will honor the `STRIP' environment variable to overrule this program.
2302if test "$cross_compiling" != no; then
2303 if test -n "$ac_tool_prefix"; then
2304 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2305set dummy ${ac_tool_prefix}strip; ac_word=$2
dd184caf 2306{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2307echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2308if test "${ac_cv_prog_STRIP+set}" = set; then
2309 echo $ECHO_N "(cached) $ECHO_C" >&6
2310else
2311 if test -n "$STRIP"; then
2312 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2313else
2314as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2315for as_dir in $PATH
2316do
2317 IFS=$as_save_IFS
2318 test -z "$as_dir" && as_dir=.
2319 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 2320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2321 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2322 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2323 break 2
2324 fi
2325done
2326done
dd184caf 2327IFS=$as_save_IFS
d9898ee8 2328
2329fi
2330fi
2331STRIP=$ac_cv_prog_STRIP
2332if test -n "$STRIP"; then
dd184caf 2333 { echo "$as_me:$LINENO: result: $STRIP" >&5
2334echo "${ECHO_T}$STRIP" >&6; }
d9898ee8 2335else
dd184caf 2336 { echo "$as_me:$LINENO: result: no" >&5
2337echo "${ECHO_T}no" >&6; }
d9898ee8 2338fi
2339
dd184caf 2340
d9898ee8 2341fi
2342if test -z "$ac_cv_prog_STRIP"; then
2343 ac_ct_STRIP=$STRIP
2344 # Extract the first word of "strip", so it can be a program name with args.
2345set dummy strip; ac_word=$2
dd184caf 2346{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2347echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2348if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2349 echo $ECHO_N "(cached) $ECHO_C" >&6
2350else
2351 if test -n "$ac_ct_STRIP"; then
2352 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2353else
2354as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2355for as_dir in $PATH
2356do
2357 IFS=$as_save_IFS
2358 test -z "$as_dir" && as_dir=.
2359 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 2360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2361 ac_cv_prog_ac_ct_STRIP="strip"
2362 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2363 break 2
2364 fi
2365done
2366done
dd184caf 2367IFS=$as_save_IFS
d9898ee8 2368
d9898ee8 2369fi
2370fi
2371ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2372if test -n "$ac_ct_STRIP"; then
dd184caf 2373 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2374echo "${ECHO_T}$ac_ct_STRIP" >&6; }
d9898ee8 2375else
dd184caf 2376 { echo "$as_me:$LINENO: result: no" >&5
2377echo "${ECHO_T}no" >&6; }
d9898ee8 2378fi
2379
dd184caf 2380 if test "x$ac_ct_STRIP" = x; then
2381 STRIP=":"
2382 else
2383 case $cross_compiling:$ac_tool_warned in
2384yes:)
2385{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2386whose name does not start with the host triplet. If you think this
2387configuration is useful to you, please write to autoconf@gnu.org." >&5
2388echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2389whose name does not start with the host triplet. If you think this
2390configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2391ac_tool_warned=yes ;;
2392esac
2393 STRIP=$ac_ct_STRIP
2394 fi
d9898ee8 2395else
2396 STRIP="$ac_cv_prog_STRIP"
2397fi
2398
2399fi
dd184caf 2400INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
d9898ee8 2401
2402# We need awk for the "check" target. The system "awk" is bad on
2403# some platforms.
2404# Always define AMTAR for backward compatibility.
2405
2406AMTAR=${AMTAR-"${am_missing_run}tar"}
2407
2408am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2409
2410
2411
2412
2413
dd184caf 2414ac_config_headers="$ac_config_headers config.h"
d9898ee8 2415
2416
2417ac_ext=c
2418ac_cpp='$CPP $CPPFLAGS'
2419ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2420ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2421ac_compiler_gnu=$ac_cv_c_compiler_gnu
2422if test -n "$ac_tool_prefix"; then
2423 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2424set dummy ${ac_tool_prefix}gcc; ac_word=$2
dd184caf 2425{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2426echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2427if test "${ac_cv_prog_CC+set}" = set; then
2428 echo $ECHO_N "(cached) $ECHO_C" >&6
2429else
2430 if test -n "$CC"; then
2431 ac_cv_prog_CC="$CC" # Let the user override the test.
2432else
2433as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2434for as_dir in $PATH
2435do
2436 IFS=$as_save_IFS
2437 test -z "$as_dir" && as_dir=.
2438 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 2439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2440 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2441 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2442 break 2
2443 fi
2444done
2445done
dd184caf 2446IFS=$as_save_IFS
d9898ee8 2447
2448fi
2449fi
2450CC=$ac_cv_prog_CC
2451if test -n "$CC"; then
dd184caf 2452 { echo "$as_me:$LINENO: result: $CC" >&5
2453echo "${ECHO_T}$CC" >&6; }
d9898ee8 2454else
dd184caf 2455 { echo "$as_me:$LINENO: result: no" >&5
2456echo "${ECHO_T}no" >&6; }
d9898ee8 2457fi
2458
dd184caf 2459
d9898ee8 2460fi
2461if test -z "$ac_cv_prog_CC"; then
2462 ac_ct_CC=$CC
2463 # Extract the first word of "gcc", so it can be a program name with args.
2464set dummy gcc; ac_word=$2
dd184caf 2465{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2466echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2467if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2468 echo $ECHO_N "(cached) $ECHO_C" >&6
2469else
2470 if test -n "$ac_ct_CC"; then
2471 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2472else
2473as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2474for as_dir in $PATH
2475do
2476 IFS=$as_save_IFS
2477 test -z "$as_dir" && as_dir=.
2478 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 2479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2480 ac_cv_prog_ac_ct_CC="gcc"
2481 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2482 break 2
2483 fi
2484done
2485done
dd184caf 2486IFS=$as_save_IFS
d9898ee8 2487
2488fi
2489fi
2490ac_ct_CC=$ac_cv_prog_ac_ct_CC
2491if test -n "$ac_ct_CC"; then
dd184caf 2492 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2493echo "${ECHO_T}$ac_ct_CC" >&6; }
d9898ee8 2494else
dd184caf 2495 { echo "$as_me:$LINENO: result: no" >&5
2496echo "${ECHO_T}no" >&6; }
d9898ee8 2497fi
2498
dd184caf 2499 if test "x$ac_ct_CC" = x; then
2500 CC=""
2501 else
2502 case $cross_compiling:$ac_tool_warned in
2503yes:)
2504{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2505whose name does not start with the host triplet. If you think this
2506configuration is useful to you, please write to autoconf@gnu.org." >&5
2507echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2508whose name does not start with the host triplet. If you think this
2509configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2510ac_tool_warned=yes ;;
2511esac
2512 CC=$ac_ct_CC
2513 fi
d9898ee8 2514else
2515 CC="$ac_cv_prog_CC"
2516fi
2517
2518if test -z "$CC"; then
dd184caf 2519 if test -n "$ac_tool_prefix"; then
2520 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
d9898ee8 2521set dummy ${ac_tool_prefix}cc; ac_word=$2
dd184caf 2522{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2523echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2524if test "${ac_cv_prog_CC+set}" = set; then
2525 echo $ECHO_N "(cached) $ECHO_C" >&6
2526else
2527 if test -n "$CC"; then
2528 ac_cv_prog_CC="$CC" # Let the user override the test.
2529else
2530as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2531for as_dir in $PATH
2532do
2533 IFS=$as_save_IFS
2534 test -z "$as_dir" && as_dir=.
2535 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 2536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2537 ac_cv_prog_CC="${ac_tool_prefix}cc"
2538 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2539 break 2
2540 fi
2541done
2542done
dd184caf 2543IFS=$as_save_IFS
d9898ee8 2544
2545fi
2546fi
2547CC=$ac_cv_prog_CC
2548if test -n "$CC"; then
dd184caf 2549 { echo "$as_me:$LINENO: result: $CC" >&5
2550echo "${ECHO_T}$CC" >&6; }
d9898ee8 2551else
dd184caf 2552 { echo "$as_me:$LINENO: result: no" >&5
2553echo "${ECHO_T}no" >&6; }
d9898ee8 2554fi
2555
d9898ee8 2556
dd184caf 2557 fi
d9898ee8 2558fi
2559if test -z "$CC"; then
2560 # Extract the first word of "cc", so it can be a program name with args.
2561set dummy cc; ac_word=$2
dd184caf 2562{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2563echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2564if test "${ac_cv_prog_CC+set}" = set; then
2565 echo $ECHO_N "(cached) $ECHO_C" >&6
2566else
2567 if test -n "$CC"; then
2568 ac_cv_prog_CC="$CC" # Let the user override the test.
2569else
2570 ac_prog_rejected=no
2571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2572for as_dir in $PATH
2573do
2574 IFS=$as_save_IFS
2575 test -z "$as_dir" && as_dir=.
2576 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 2577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2578 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2579 ac_prog_rejected=yes
2580 continue
2581 fi
2582 ac_cv_prog_CC="cc"
2583 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2584 break 2
2585 fi
2586done
2587done
dd184caf 2588IFS=$as_save_IFS
d9898ee8 2589
2590if test $ac_prog_rejected = yes; then
2591 # We found a bogon in the path, so make sure we never use it.
2592 set dummy $ac_cv_prog_CC
2593 shift
2594 if test $# != 0; then
2595 # We chose a different compiler from the bogus one.
2596 # However, it has the same basename, so the bogon will be chosen
2597 # first if we set CC to just the basename; use the full file name.
2598 shift
2599 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2600 fi
2601fi
2602fi
2603fi
2604CC=$ac_cv_prog_CC
2605if test -n "$CC"; then
dd184caf 2606 { echo "$as_me:$LINENO: result: $CC" >&5
2607echo "${ECHO_T}$CC" >&6; }
d9898ee8 2608else
dd184caf 2609 { echo "$as_me:$LINENO: result: no" >&5
2610echo "${ECHO_T}no" >&6; }
d9898ee8 2611fi
2612
dd184caf 2613
d9898ee8 2614fi
2615if test -z "$CC"; then
2616 if test -n "$ac_tool_prefix"; then
dd184caf 2617 for ac_prog in cl.exe
d9898ee8 2618 do
2619 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2620set dummy $ac_tool_prefix$ac_prog; ac_word=$2
dd184caf 2621{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2622echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2623if test "${ac_cv_prog_CC+set}" = set; then
2624 echo $ECHO_N "(cached) $ECHO_C" >&6
2625else
2626 if test -n "$CC"; then
2627 ac_cv_prog_CC="$CC" # Let the user override the test.
2628else
2629as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2630for as_dir in $PATH
2631do
2632 IFS=$as_save_IFS
2633 test -z "$as_dir" && as_dir=.
2634 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 2635 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2636 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2637 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2638 break 2
2639 fi
2640done
2641done
dd184caf 2642IFS=$as_save_IFS
d9898ee8 2643
2644fi
2645fi
2646CC=$ac_cv_prog_CC
2647if test -n "$CC"; then
dd184caf 2648 { echo "$as_me:$LINENO: result: $CC" >&5
2649echo "${ECHO_T}$CC" >&6; }
d9898ee8 2650else
dd184caf 2651 { echo "$as_me:$LINENO: result: no" >&5
2652echo "${ECHO_T}no" >&6; }
d9898ee8 2653fi
2654
dd184caf 2655
d9898ee8 2656 test -n "$CC" && break
2657 done
2658fi
2659if test -z "$CC"; then
2660 ac_ct_CC=$CC
dd184caf 2661 for ac_prog in cl.exe
d9898ee8 2662do
2663 # Extract the first word of "$ac_prog", so it can be a program name with args.
2664set dummy $ac_prog; ac_word=$2
dd184caf 2665{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2666echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2667if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2668 echo $ECHO_N "(cached) $ECHO_C" >&6
2669else
2670 if test -n "$ac_ct_CC"; then
2671 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2672else
2673as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2674for as_dir in $PATH
2675do
2676 IFS=$as_save_IFS
2677 test -z "$as_dir" && as_dir=.
2678 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 2679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2680 ac_cv_prog_ac_ct_CC="$ac_prog"
2681 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2682 break 2
2683 fi
2684done
2685done
dd184caf 2686IFS=$as_save_IFS
d9898ee8 2687
2688fi
2689fi
2690ac_ct_CC=$ac_cv_prog_ac_ct_CC
2691if test -n "$ac_ct_CC"; then
dd184caf 2692 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2693echo "${ECHO_T}$ac_ct_CC" >&6; }
d9898ee8 2694else
dd184caf 2695 { echo "$as_me:$LINENO: result: no" >&5
2696echo "${ECHO_T}no" >&6; }
d9898ee8 2697fi
2698
dd184caf 2699
d9898ee8 2700 test -n "$ac_ct_CC" && break
2701done
2702
dd184caf 2703 if test "x$ac_ct_CC" = x; then
2704 CC=""
2705 else
2706 case $cross_compiling:$ac_tool_warned in
2707yes:)
2708{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2709whose name does not start with the host triplet. If you think this
2710configuration is useful to you, please write to autoconf@gnu.org." >&5
2711echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2712whose name does not start with the host triplet. If you think this
2713configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2714ac_tool_warned=yes ;;
2715esac
2716 CC=$ac_ct_CC
2717 fi
d9898ee8 2718fi
2719
2720fi
2721
2722
2723test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2724See \`config.log' for more details." >&5
2725echo "$as_me: error: no acceptable C compiler found in \$PATH
2726See \`config.log' for more details." >&2;}
2727 { (exit 1); exit 1; }; }
2728
2729# Provide some information about the compiler.
dd184caf 2730echo "$as_me:$LINENO: checking for C compiler version" >&5
d9898ee8 2731ac_compiler=`set X $ac_compile; echo $2`
dd184caf 2732{ (ac_try="$ac_compiler --version >&5"
2733case "(($ac_try" in
2734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2735 *) ac_try_echo=$ac_try;;
2736esac
2737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2738 (eval "$ac_compiler --version >&5") 2>&5
d9898ee8 2739 ac_status=$?
2740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741 (exit $ac_status); }
dd184caf 2742{ (ac_try="$ac_compiler -v >&5"
2743case "(($ac_try" in
2744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2745 *) ac_try_echo=$ac_try;;
2746esac
2747eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2748 (eval "$ac_compiler -v >&5") 2>&5
d9898ee8 2749 ac_status=$?
2750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2751 (exit $ac_status); }
dd184caf 2752{ (ac_try="$ac_compiler -V >&5"
2753case "(($ac_try" in
2754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2755 *) ac_try_echo=$ac_try;;
2756esac
2757eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2758 (eval "$ac_compiler -V >&5") 2>&5
d9898ee8 2759 ac_status=$?
2760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2761 (exit $ac_status); }
2762
2763cat >conftest.$ac_ext <<_ACEOF
2764/* confdefs.h. */
2765_ACEOF
2766cat confdefs.h >>conftest.$ac_ext
2767cat >>conftest.$ac_ext <<_ACEOF
2768/* end confdefs.h. */
2769
2770int
2771main ()
2772{
2773
2774 ;
2775 return 0;
2776}
2777_ACEOF
2778ac_clean_files_save=$ac_clean_files
2779ac_clean_files="$ac_clean_files a.out a.exe b.out"
2780# Try to create an executable without -o first, disregard a.out.
2781# It will help us diagnose broken compilers, and finding out an intuition
2782# of exeext.
dd184caf 2783{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2784echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
d9898ee8 2785ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
dd184caf 2786#
2787# List of possible output files, starting from the most likely.
2788# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2789# only as a last resort. b.out is created by i960 compilers.
2790ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2791#
2792# The IRIX 6 linker writes into existing files which may not be
2793# executable, retaining their permissions. Remove them first so a
2794# subsequent execution test works.
2795ac_rmfiles=
2796for ac_file in $ac_files
2797do
2798 case $ac_file in
2799 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2800 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2801 esac
2802done
2803rm -f $ac_rmfiles
2804
2805if { (ac_try="$ac_link_default"
2806case "(($ac_try" in
2807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2808 *) ac_try_echo=$ac_try;;
2809esac
2810eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2811 (eval "$ac_link_default") 2>&5
d9898ee8 2812 ac_status=$?
2813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2814 (exit $ac_status); }; then
dd184caf 2815 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2816# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2817# in a Makefile. We should not override ac_cv_exeext if it was cached,
2818# so that the user can short-circuit this test for compilers unknown to
2819# Autoconf.
2820for ac_file in $ac_files ''
d9898ee8 2821do
2822 test -f "$ac_file" || continue
2823 case $ac_file in
dd184caf 2824 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
d9898ee8 2825 ;;
2826 [ab].out )
2827 # We found the default executable, but exeext='' is most
2828 # certainly right.
2829 break;;
2830 *.* )
dd184caf 2831 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2832 then :; else
2833 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2834 fi
2835 # We set ac_cv_exeext here because the later test for it is not
2836 # safe: cross compilers may not add the suffix if given an `-o'
2837 # argument, so we may need to know it at that point already.
2838 # Even if this section looks crufty: it has the advantage of
2839 # actually working.
d9898ee8 2840 break;;
2841 * )
2842 break;;
2843 esac
2844done
dd184caf 2845test "$ac_cv_exeext" = no && ac_cv_exeext=
2846
d9898ee8 2847else
dd184caf 2848 ac_file=''
2849fi
2850
2851{ echo "$as_me:$LINENO: result: $ac_file" >&5
2852echo "${ECHO_T}$ac_file" >&6; }
2853if test -z "$ac_file"; then
d9898ee8 2854 echo "$as_me: failed program was:" >&5
2855sed 's/^/| /' conftest.$ac_ext >&5
2856
2857{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2858See \`config.log' for more details." >&5
2859echo "$as_me: error: C compiler cannot create executables
2860See \`config.log' for more details." >&2;}
2861 { (exit 77); exit 77; }; }
2862fi
2863
2864ac_exeext=$ac_cv_exeext
d9898ee8 2865
dd184caf 2866# Check that the compiler produces executables we can run. If not, either
d9898ee8 2867# the compiler is broken, or we cross compile.
dd184caf 2868{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2869echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
d9898ee8 2870# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2871# If not cross compiling, check that we can run a simple program.
2872if test "$cross_compiling" != yes; then
2873 if { ac_try='./$ac_file'
dd184caf 2874 { (case "(($ac_try" in
2875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2876 *) ac_try_echo=$ac_try;;
2877esac
2878eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2879 (eval "$ac_try") 2>&5
d9898ee8 2880 ac_status=$?
2881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2882 (exit $ac_status); }; }; then
2883 cross_compiling=no
2884 else
2885 if test "$cross_compiling" = maybe; then
2886 cross_compiling=yes
2887 else
2888 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2889If you meant to cross compile, use \`--host'.
2890See \`config.log' for more details." >&5
2891echo "$as_me: error: cannot run C compiled programs.
2892If you meant to cross compile, use \`--host'.
2893See \`config.log' for more details." >&2;}
2894 { (exit 1); exit 1; }; }
2895 fi
2896 fi
2897fi
dd184caf 2898{ echo "$as_me:$LINENO: result: yes" >&5
2899echo "${ECHO_T}yes" >&6; }
d9898ee8 2900
2901rm -f a.out a.exe conftest$ac_cv_exeext b.out
2902ac_clean_files=$ac_clean_files_save
dd184caf 2903# Check that the compiler produces executables we can run. If not, either
d9898ee8 2904# the compiler is broken, or we cross compile.
dd184caf 2905{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2906echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2907{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2908echo "${ECHO_T}$cross_compiling" >&6; }
2909
2910{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2911echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2912if { (ac_try="$ac_link"
2913case "(($ac_try" in
2914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2915 *) ac_try_echo=$ac_try;;
2916esac
2917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2918 (eval "$ac_link") 2>&5
d9898ee8 2919 ac_status=$?
2920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2921 (exit $ac_status); }; then
2922 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2923# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2924# work properly (i.e., refer to `conftest.exe'), while it won't with
2925# `rm'.
2926for ac_file in conftest.exe conftest conftest.*; do
2927 test -f "$ac_file" || continue
2928 case $ac_file in
dd184caf 2929 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
d9898ee8 2930 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
d9898ee8 2931 break;;
2932 * ) break;;
2933 esac
2934done
2935else
2936 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2937See \`config.log' for more details." >&5
2938echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2939See \`config.log' for more details." >&2;}
2940 { (exit 1); exit 1; }; }
2941fi
2942
2943rm -f conftest$ac_cv_exeext
dd184caf 2944{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2945echo "${ECHO_T}$ac_cv_exeext" >&6; }
d9898ee8 2946
2947rm -f conftest.$ac_ext
2948EXEEXT=$ac_cv_exeext
2949ac_exeext=$EXEEXT
dd184caf 2950{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2951echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
d9898ee8 2952if test "${ac_cv_objext+set}" = set; then
2953 echo $ECHO_N "(cached) $ECHO_C" >&6
2954else
2955 cat >conftest.$ac_ext <<_ACEOF
2956/* confdefs.h. */
2957_ACEOF
2958cat confdefs.h >>conftest.$ac_ext
2959cat >>conftest.$ac_ext <<_ACEOF
2960/* end confdefs.h. */
2961
2962int
2963main ()
2964{
2965
2966 ;
2967 return 0;
2968}
2969_ACEOF
2970rm -f conftest.o conftest.obj
dd184caf 2971if { (ac_try="$ac_compile"
2972case "(($ac_try" in
2973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2974 *) ac_try_echo=$ac_try;;
2975esac
2976eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2977 (eval "$ac_compile") 2>&5
d9898ee8 2978 ac_status=$?
2979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2980 (exit $ac_status); }; then
dd184caf 2981 for ac_file in conftest.o conftest.obj conftest.*; do
2982 test -f "$ac_file" || continue;
d9898ee8 2983 case $ac_file in
dd184caf 2984 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
d9898ee8 2985 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2986 break;;
2987 esac
2988done
2989else
2990 echo "$as_me: failed program was:" >&5
2991sed 's/^/| /' conftest.$ac_ext >&5
2992
2993{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2994See \`config.log' for more details." >&5
2995echo "$as_me: error: cannot compute suffix of object files: cannot compile
2996See \`config.log' for more details." >&2;}
2997 { (exit 1); exit 1; }; }
2998fi
2999
3000rm -f conftest.$ac_cv_objext conftest.$ac_ext
3001fi
dd184caf 3002{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3003echo "${ECHO_T}$ac_cv_objext" >&6; }
d9898ee8 3004OBJEXT=$ac_cv_objext
3005ac_objext=$OBJEXT
dd184caf 3006{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3007echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
d9898ee8 3008if test "${ac_cv_c_compiler_gnu+set}" = set; then
3009 echo $ECHO_N "(cached) $ECHO_C" >&6
3010else
3011 cat >conftest.$ac_ext <<_ACEOF
3012/* confdefs.h. */
3013_ACEOF
3014cat confdefs.h >>conftest.$ac_ext
3015cat >>conftest.$ac_ext <<_ACEOF
3016/* end confdefs.h. */
3017
3018int
3019main ()
3020{
3021#ifndef __GNUC__
3022 choke me
3023#endif
3024
3025 ;
3026 return 0;
3027}
3028_ACEOF
3029rm -f conftest.$ac_objext
dd184caf 3030if { (ac_try="$ac_compile"
3031case "(($ac_try" in
3032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3033 *) ac_try_echo=$ac_try;;
3034esac
3035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3036 (eval "$ac_compile") 2>conftest.er1
d9898ee8 3037 ac_status=$?
3038 grep -v '^ *+' conftest.er1 >conftest.err
3039 rm -f conftest.er1
3040 cat conftest.err >&5
3041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 3042 (exit $ac_status); } && {
3043 test -z "$ac_c_werror_flag" ||
3044 test ! -s conftest.err
3045 } && test -s conftest.$ac_objext; then
d9898ee8 3046 ac_compiler_gnu=yes
3047else
3048 echo "$as_me: failed program was:" >&5
3049sed 's/^/| /' conftest.$ac_ext >&5
3050
dd184caf 3051 ac_compiler_gnu=no
d9898ee8 3052fi
dd184caf 3053
3054rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 3055ac_cv_c_compiler_gnu=$ac_compiler_gnu
3056
3057fi
dd184caf 3058{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3059echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
d9898ee8 3060GCC=`test $ac_compiler_gnu = yes && echo yes`
3061ac_test_CFLAGS=${CFLAGS+set}
3062ac_save_CFLAGS=$CFLAGS
dd184caf 3063{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3064echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
d9898ee8 3065if test "${ac_cv_prog_cc_g+set}" = set; then
3066 echo $ECHO_N "(cached) $ECHO_C" >&6
3067else
dd184caf 3068 ac_save_c_werror_flag=$ac_c_werror_flag
3069 ac_c_werror_flag=yes
3070 ac_cv_prog_cc_g=no
3071 CFLAGS="-g"
3072 cat >conftest.$ac_ext <<_ACEOF
d9898ee8 3073/* confdefs.h. */
3074_ACEOF
3075cat confdefs.h >>conftest.$ac_ext
3076cat >>conftest.$ac_ext <<_ACEOF
3077/* end confdefs.h. */
3078
3079int
3080main ()
3081{
3082
3083 ;
3084 return 0;
3085}
3086_ACEOF
3087rm -f conftest.$ac_objext
dd184caf 3088if { (ac_try="$ac_compile"
3089case "(($ac_try" in
3090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3091 *) ac_try_echo=$ac_try;;
3092esac
3093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3094 (eval "$ac_compile") 2>conftest.er1
d9898ee8 3095 ac_status=$?
3096 grep -v '^ *+' conftest.er1 >conftest.err
3097 rm -f conftest.er1
3098 cat conftest.err >&5
3099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 3100 (exit $ac_status); } && {
3101 test -z "$ac_c_werror_flag" ||
3102 test ! -s conftest.err
3103 } && test -s conftest.$ac_objext; then
3104 ac_cv_prog_cc_g=yes
3105else
3106 echo "$as_me: failed program was:" >&5
3107sed 's/^/| /' conftest.$ac_ext >&5
3108
3109 CFLAGS=""
3110 cat >conftest.$ac_ext <<_ACEOF
3111/* confdefs.h. */
3112_ACEOF
3113cat confdefs.h >>conftest.$ac_ext
3114cat >>conftest.$ac_ext <<_ACEOF
3115/* end confdefs.h. */
3116
3117int
3118main ()
3119{
3120
3121 ;
3122 return 0;
3123}
3124_ACEOF
3125rm -f conftest.$ac_objext
3126if { (ac_try="$ac_compile"
3127case "(($ac_try" in
3128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3129 *) ac_try_echo=$ac_try;;
3130esac
3131eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3132 (eval "$ac_compile") 2>conftest.er1
d9898ee8 3133 ac_status=$?
dd184caf 3134 grep -v '^ *+' conftest.er1 >conftest.err
3135 rm -f conftest.er1
3136 cat conftest.err >&5
d9898ee8 3137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 3138 (exit $ac_status); } && {
3139 test -z "$ac_c_werror_flag" ||
3140 test ! -s conftest.err
3141 } && test -s conftest.$ac_objext; then
3142 :
3143else
3144 echo "$as_me: failed program was:" >&5
3145sed 's/^/| /' conftest.$ac_ext >&5
3146
3147 ac_c_werror_flag=$ac_save_c_werror_flag
3148 CFLAGS="-g"
3149 cat >conftest.$ac_ext <<_ACEOF
3150/* confdefs.h. */
3151_ACEOF
3152cat confdefs.h >>conftest.$ac_ext
3153cat >>conftest.$ac_ext <<_ACEOF
3154/* end confdefs.h. */
3155
3156int
3157main ()
3158{
3159
3160 ;
3161 return 0;
3162}
3163_ACEOF
3164rm -f conftest.$ac_objext
3165if { (ac_try="$ac_compile"
3166case "(($ac_try" in
3167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3168 *) ac_try_echo=$ac_try;;
3169esac
3170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3171 (eval "$ac_compile") 2>conftest.er1
d9898ee8 3172 ac_status=$?
dd184caf 3173 grep -v '^ *+' conftest.er1 >conftest.err
3174 rm -f conftest.er1
3175 cat conftest.err >&5
d9898ee8 3176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 3177 (exit $ac_status); } && {
3178 test -z "$ac_c_werror_flag" ||
3179 test ! -s conftest.err
3180 } && test -s conftest.$ac_objext; then
d9898ee8 3181 ac_cv_prog_cc_g=yes
3182else
3183 echo "$as_me: failed program was:" >&5
3184sed 's/^/| /' conftest.$ac_ext >&5
3185
dd184caf 3186
3187fi
3188
3189rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3190fi
3191
3192rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 3193fi
dd184caf 3194
3195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3196 ac_c_werror_flag=$ac_save_c_werror_flag
d9898ee8 3197fi
dd184caf 3198{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3199echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
d9898ee8 3200if test "$ac_test_CFLAGS" = set; then
3201 CFLAGS=$ac_save_CFLAGS
3202elif test $ac_cv_prog_cc_g = yes; then
3203 if test "$GCC" = yes; then
3204 CFLAGS="-g -O2"
3205 else
3206 CFLAGS="-g"
3207 fi
3208else
3209 if test "$GCC" = yes; then
3210 CFLAGS="-O2"
3211 else
3212 CFLAGS=
3213 fi
3214fi
dd184caf 3215{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3216echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3217if test "${ac_cv_prog_cc_c89+set}" = set; then
d9898ee8 3218 echo $ECHO_N "(cached) $ECHO_C" >&6
3219else
dd184caf 3220 ac_cv_prog_cc_c89=no
d9898ee8 3221ac_save_CC=$CC
3222cat >conftest.$ac_ext <<_ACEOF
3223/* confdefs.h. */
3224_ACEOF
3225cat confdefs.h >>conftest.$ac_ext
3226cat >>conftest.$ac_ext <<_ACEOF
3227/* end confdefs.h. */
3228#include <stdarg.h>
3229#include <stdio.h>
3230#include <sys/types.h>
3231#include <sys/stat.h>
3232/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3233struct buf { int x; };
3234FILE * (*rcsopen) (struct buf *, struct stat *, int);
3235static char *e (p, i)
3236 char **p;
3237 int i;
3238{
3239 return p[i];
3240}
3241static char *f (char * (*g) (char **, int), char **p, ...)
3242{
3243 char *s;
3244 va_list v;
3245 va_start (v,p);
3246 s = g (p, va_arg (v,int));
3247 va_end (v);
3248 return s;
3249}
3250
3251/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3252 function prototypes and stuff, but not '\xHH' hex character constants.
3253 These don't provoke an error unfortunately, instead are silently treated
dd184caf 3254 as 'x'. The following induces an error, until -std is added to get
d9898ee8 3255 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3256 array size at least. It's necessary to write '\x00'==0 to get something
dd184caf 3257 that's true only with -std. */
d9898ee8 3258int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3259
dd184caf 3260/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3261 inside strings and character constants. */
3262#define FOO(x) 'x'
3263int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3264
d9898ee8 3265int test (int i, double x);
3266struct s1 {int (*f) (int a);};
3267struct s2 {int (*f) (double a);};
3268int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3269int argc;
3270char **argv;
3271int
3272main ()
3273{
3274return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3275 ;
3276 return 0;
3277}
3278_ACEOF
dd184caf 3279for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3280 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
d9898ee8 3281do
3282 CC="$ac_save_CC $ac_arg"
3283 rm -f conftest.$ac_objext
dd184caf 3284if { (ac_try="$ac_compile"
3285case "(($ac_try" in
3286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3287 *) ac_try_echo=$ac_try;;
3288esac
3289eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3290 (eval "$ac_compile") 2>conftest.er1
d9898ee8 3291 ac_status=$?
3292 grep -v '^ *+' conftest.er1 >conftest.err
3293 rm -f conftest.er1
3294 cat conftest.err >&5
3295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 3296 (exit $ac_status); } && {
3297 test -z "$ac_c_werror_flag" ||
3298 test ! -s conftest.err
3299 } && test -s conftest.$ac_objext; then
3300 ac_cv_prog_cc_c89=$ac_arg
d9898ee8 3301else
3302 echo "$as_me: failed program was:" >&5
3303sed 's/^/| /' conftest.$ac_ext >&5
3304
dd184caf 3305
d9898ee8 3306fi
dd184caf 3307
3308rm -f core conftest.err conftest.$ac_objext
3309 test "x$ac_cv_prog_cc_c89" != "xno" && break
d9898ee8 3310done
dd184caf 3311rm -f conftest.$ac_ext
d9898ee8 3312CC=$ac_save_CC
3313
3314fi
dd184caf 3315# AC_CACHE_VAL
3316case "x$ac_cv_prog_cc_c89" in
3317 x)
3318 { echo "$as_me:$LINENO: result: none needed" >&5
3319echo "${ECHO_T}none needed" >&6; } ;;
3320 xno)
3321 { echo "$as_me:$LINENO: result: unsupported" >&5
3322echo "${ECHO_T}unsupported" >&6; } ;;
d9898ee8 3323 *)
dd184caf 3324 CC="$CC $ac_cv_prog_cc_c89"
3325 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3326echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
d9898ee8 3327esac
3328
d9898ee8 3329
d9898ee8 3330ac_ext=c
3331ac_cpp='$CPP $CPPFLAGS'
3332ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3333ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3334ac_compiler_gnu=$ac_cv_c_compiler_gnu
3335DEPDIR="${am__leading_dot}deps"
3336
dd184caf 3337ac_config_commands="$ac_config_commands depfiles"
d9898ee8 3338
3339
3340am_make=${MAKE-make}
3341cat > confinc << 'END'
3342am__doit:
3343 @echo done
3344.PHONY: am__doit
3345END
3346# If we don't find an include directive, just comment out the code.
dd184caf 3347{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3348echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
d9898ee8 3349am__include="#"
3350am__quote=
3351_am_result=none
3352# First try GNU make style include.
3353echo "include confinc" > confmf
3354# We grep out `Entering directory' and `Leaving directory'
3355# messages which can occur if `w' ends up in MAKEFLAGS.
3356# In particular we don't look at `^make:' because GNU make might
3357# be invoked under some other name (usually "gmake"), in which
3358# case it prints its new name instead of `make'.
3359if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3360 am__include=include
3361 am__quote=
3362 _am_result=GNU
3363fi
3364# Now try BSD make style include.
3365if test "$am__include" = "#"; then
3366 echo '.include "confinc"' > confmf
3367 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3368 am__include=.include
3369 am__quote="\""
3370 _am_result=BSD
3371 fi
3372fi
3373
3374
dd184caf 3375{ echo "$as_me:$LINENO: result: $_am_result" >&5
3376echo "${ECHO_T}$_am_result" >&6; }
d9898ee8 3377rm -f confinc confmf
3378
dd184caf 3379# Check whether --enable-dependency-tracking was given.
d9898ee8 3380if test "${enable_dependency_tracking+set}" = set; then
dd184caf 3381 enableval=$enable_dependency_tracking;
3382fi
d9898ee8 3383
d9898ee8 3384if test "x$enable_dependency_tracking" != xno; then
3385 am_depcomp="$ac_aux_dir/depcomp"
3386 AMDEPBACKSLASH='\'
3387fi
dd184caf 3388 if test "x$enable_dependency_tracking" != xno; then
d9898ee8 3389 AMDEP_TRUE=
3390 AMDEP_FALSE='#'
3391else
3392 AMDEP_TRUE='#'
3393 AMDEP_FALSE=
3394fi
3395
3396
3397
d9898ee8 3398depcc="$CC" am_compiler_list=
3399
dd184caf 3400{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3401echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
d9898ee8 3402if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3403 echo $ECHO_N "(cached) $ECHO_C" >&6
3404else
3405 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3406 # We make a subdir and do the tests there. Otherwise we can end up
3407 # making bogus files that we don't know about and never remove. For
3408 # instance it was reported that on HP-UX the gcc test will end up
3409 # making a dummy file named `D' -- because `-MD' means `put the output
3410 # in D'.
3411 mkdir conftest.dir
3412 # Copy depcomp to subdir because otherwise we won't find it if we're
3413 # using a relative directory.
3414 cp "$am_depcomp" conftest.dir
3415 cd conftest.dir
3416 # We will build objects and dependencies in a subdirectory because
3417 # it helps to detect inapplicable dependency modes. For instance
3418 # both Tru64's cc and ICC support -MD to output dependencies as a
3419 # side effect of compilation, but ICC will put the dependencies in
3420 # the current directory while Tru64 will put them in the object
3421 # directory.
3422 mkdir sub
3423
3424 am_cv_CC_dependencies_compiler_type=none
3425 if test "$am_compiler_list" = ""; then
3426 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3427 fi
3428 for depmode in $am_compiler_list; do
3429 # Setup a source with many dependencies, because some compilers
3430 # like to wrap large dependency lists on column 80 (with \), and
3431 # we should not choose a depcomp mode which is confused by this.
3432 #
3433 # We need to recreate these files for each test, as the compiler may
3434 # overwrite some of them when testing with obscure command lines.
3435 # This happens at least with the AIX C compiler.
3436 : > sub/conftest.c
3437 for i in 1 2 3 4 5 6; do
3438 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3439 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3440 # Solaris 8's {/usr,}/bin/sh.
3441 touch sub/conftst$i.h
3442 done
3443 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3444
3445 case $depmode in
3446 nosideeffect)
3447 # after this tag, mechanisms are not by side-effect, so they'll
3448 # only be used when explicitly requested
3449 if test "x$enable_dependency_tracking" = xyes; then
3450 continue
3451 else
3452 break
3453 fi
3454 ;;
3455 none) break ;;
3456 esac
3457 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3458 # mode. It turns out that the SunPro C++ compiler does not properly
3459 # handle `-M -o', and we need to detect this.
3460 if depmode=$depmode \
3461 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3462 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3463 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3464 >/dev/null 2>conftest.err &&
dd184caf 3465 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
d9898ee8 3466 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3467 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3468 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3469 # icc doesn't choke on unknown options, it will just issue warnings
3470 # or remarks (even with -Werror). So we grep stderr for any message
3471 # that says an option was ignored or not supported.
3472 # When given -MP, icc 7.0 and 7.1 complain thusly:
3473 # icc: Command line warning: ignoring option '-M'; no argument required
3474 # The diagnosis changed in icc 8.0:
3475 # icc: Command line remark: option '-MP' not supported
3476 if (grep 'ignoring option' conftest.err ||
3477 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3478 am_cv_CC_dependencies_compiler_type=$depmode
3479 break
3480 fi
3481 fi
3482 done
3483
3484 cd ..
3485 rm -rf conftest.dir
3486else
3487 am_cv_CC_dependencies_compiler_type=none
3488fi
3489
3490fi
dd184caf 3491{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3492echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
d9898ee8 3493CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3494
dd184caf 3495 if
d9898ee8 3496 test "x$enable_dependency_tracking" != xno \
3497 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3498 am__fastdepCC_TRUE=
3499 am__fastdepCC_FALSE='#'
3500else
3501 am__fastdepCC_TRUE='#'
3502 am__fastdepCC_FALSE=
3503fi
3504
3505
3506
3507ac_ext=c
3508ac_cpp='$CPP $CPPFLAGS'
3509ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3510ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3511ac_compiler_gnu=$ac_cv_c_compiler_gnu
dd184caf 3512{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3513echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
d9898ee8 3514# On Suns, sometimes $CPP names a directory.
3515if test -n "$CPP" && test -d "$CPP"; then
3516 CPP=
3517fi
3518if test -z "$CPP"; then
3519 if test "${ac_cv_prog_CPP+set}" = set; then
3520 echo $ECHO_N "(cached) $ECHO_C" >&6
3521else
3522 # Double quotes because CPP needs to be expanded
3523 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3524 do
3525 ac_preproc_ok=false
3526for ac_c_preproc_warn_flag in '' yes
3527do
3528 # Use a header file that comes with gcc, so configuring glibc
3529 # with a fresh cross-compiler works.
3530 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3531 # <limits.h> exists even on freestanding compilers.
3532 # On the NeXT, cc -E runs the code through the compiler's parser,
3533 # not just through cpp. "Syntax error" is here to catch this case.
3534 cat >conftest.$ac_ext <<_ACEOF
3535/* confdefs.h. */
3536_ACEOF
3537cat confdefs.h >>conftest.$ac_ext
3538cat >>conftest.$ac_ext <<_ACEOF
3539/* end confdefs.h. */
3540#ifdef __STDC__
3541# include <limits.h>
3542#else
3543# include <assert.h>
3544#endif
3545 Syntax error
3546_ACEOF
dd184caf 3547if { (ac_try="$ac_cpp conftest.$ac_ext"
3548case "(($ac_try" in
3549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3550 *) ac_try_echo=$ac_try;;
3551esac
3552eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3553 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 3554 ac_status=$?
3555 grep -v '^ *+' conftest.er1 >conftest.err
3556 rm -f conftest.er1
3557 cat conftest.err >&5
3558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 3559 (exit $ac_status); } >/dev/null && {
3560 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3561 test ! -s conftest.err
3562 }; then
d9898ee8 3563 :
3564else
3565 echo "$as_me: failed program was:" >&5
3566sed 's/^/| /' conftest.$ac_ext >&5
3567
3568 # Broken: fails on valid input.
3569continue
3570fi
dd184caf 3571
d9898ee8 3572rm -f conftest.err conftest.$ac_ext
3573
dd184caf 3574 # OK, works on sane cases. Now check whether nonexistent headers
d9898ee8 3575 # can be detected and how.
3576 cat >conftest.$ac_ext <<_ACEOF
3577/* confdefs.h. */
3578_ACEOF
3579cat confdefs.h >>conftest.$ac_ext
3580cat >>conftest.$ac_ext <<_ACEOF
3581/* end confdefs.h. */
3582#include <ac_nonexistent.h>
3583_ACEOF
dd184caf 3584if { (ac_try="$ac_cpp conftest.$ac_ext"
3585case "(($ac_try" in
3586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3587 *) ac_try_echo=$ac_try;;
3588esac
3589eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3590 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 3591 ac_status=$?
3592 grep -v '^ *+' conftest.er1 >conftest.err
3593 rm -f conftest.er1
3594 cat conftest.err >&5
3595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 3596 (exit $ac_status); } >/dev/null && {
3597 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3598 test ! -s conftest.err
3599 }; then
d9898ee8 3600 # Broken: success on invalid input.
3601continue
3602else
3603 echo "$as_me: failed program was:" >&5
3604sed 's/^/| /' conftest.$ac_ext >&5
3605
3606 # Passes both tests.
3607ac_preproc_ok=:
3608break
3609fi
dd184caf 3610
d9898ee8 3611rm -f conftest.err conftest.$ac_ext
3612
3613done
3614# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3615rm -f conftest.err conftest.$ac_ext
3616if $ac_preproc_ok; then
3617 break
3618fi
3619
3620 done
3621 ac_cv_prog_CPP=$CPP
3622
3623fi
3624 CPP=$ac_cv_prog_CPP
3625else
3626 ac_cv_prog_CPP=$CPP
3627fi
dd184caf 3628{ echo "$as_me:$LINENO: result: $CPP" >&5
3629echo "${ECHO_T}$CPP" >&6; }
d9898ee8 3630ac_preproc_ok=false
3631for ac_c_preproc_warn_flag in '' yes
3632do
3633 # Use a header file that comes with gcc, so configuring glibc
3634 # with a fresh cross-compiler works.
3635 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3636 # <limits.h> exists even on freestanding compilers.
3637 # On the NeXT, cc -E runs the code through the compiler's parser,
3638 # not just through cpp. "Syntax error" is here to catch this case.
3639 cat >conftest.$ac_ext <<_ACEOF
3640/* confdefs.h. */
3641_ACEOF
3642cat confdefs.h >>conftest.$ac_ext
3643cat >>conftest.$ac_ext <<_ACEOF
3644/* end confdefs.h. */
3645#ifdef __STDC__
3646# include <limits.h>
3647#else
3648# include <assert.h>
3649#endif
3650 Syntax error
3651_ACEOF
dd184caf 3652if { (ac_try="$ac_cpp conftest.$ac_ext"
3653case "(($ac_try" in
3654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3655 *) ac_try_echo=$ac_try;;
3656esac
3657eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3658 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 3659 ac_status=$?
3660 grep -v '^ *+' conftest.er1 >conftest.err
3661 rm -f conftest.er1
3662 cat conftest.err >&5
3663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 3664 (exit $ac_status); } >/dev/null && {
3665 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3666 test ! -s conftest.err
3667 }; then
d9898ee8 3668 :
3669else
3670 echo "$as_me: failed program was:" >&5
3671sed 's/^/| /' conftest.$ac_ext >&5
3672
3673 # Broken: fails on valid input.
3674continue
3675fi
dd184caf 3676
d9898ee8 3677rm -f conftest.err conftest.$ac_ext
3678
dd184caf 3679 # OK, works on sane cases. Now check whether nonexistent headers
d9898ee8 3680 # can be detected and how.
3681 cat >conftest.$ac_ext <<_ACEOF
3682/* confdefs.h. */
3683_ACEOF
3684cat confdefs.h >>conftest.$ac_ext
3685cat >>conftest.$ac_ext <<_ACEOF
3686/* end confdefs.h. */
3687#include <ac_nonexistent.h>
3688_ACEOF
dd184caf 3689if { (ac_try="$ac_cpp conftest.$ac_ext"
3690case "(($ac_try" in
3691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3692 *) ac_try_echo=$ac_try;;
3693esac
3694eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3695 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 3696 ac_status=$?
3697 grep -v '^ *+' conftest.er1 >conftest.err
3698 rm -f conftest.er1
3699 cat conftest.err >&5
3700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 3701 (exit $ac_status); } >/dev/null && {
3702 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3703 test ! -s conftest.err
3704 }; then
d9898ee8 3705 # Broken: success on invalid input.
3706continue
3707else
3708 echo "$as_me: failed program was:" >&5
3709sed 's/^/| /' conftest.$ac_ext >&5
3710
3711 # Passes both tests.
3712ac_preproc_ok=:
3713break
3714fi
dd184caf 3715
d9898ee8 3716rm -f conftest.err conftest.$ac_ext
3717
3718done
3719# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3720rm -f conftest.err conftest.$ac_ext
3721if $ac_preproc_ok; then
3722 :
3723else
3724 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3725See \`config.log' for more details." >&5
3726echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3727See \`config.log' for more details." >&2;}
3728 { (exit 1); exit 1; }; }
3729fi
3730
3731ac_ext=c
3732ac_cpp='$CPP $CPPFLAGS'
3733ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3734ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3735ac_compiler_gnu=$ac_cv_c_compiler_gnu
3736
3737
dd184caf 3738{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3739echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3740if test "${ac_cv_path_GREP+set}" = set; then
3741 echo $ECHO_N "(cached) $ECHO_C" >&6
3742else
3743 # Extract the first word of "grep ggrep" to use in msg output
3744if test -z "$GREP"; then
3745set dummy grep ggrep; ac_prog_name=$2
3746if test "${ac_cv_path_GREP+set}" = set; then
3747 echo $ECHO_N "(cached) $ECHO_C" >&6
3748else
3749 ac_path_GREP_found=false
3750# Loop through the user's path and test for each of PROGNAME-LIST
3751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3752for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3753do
3754 IFS=$as_save_IFS
3755 test -z "$as_dir" && as_dir=.
3756 for ac_prog in grep ggrep; do
3757 for ac_exec_ext in '' $ac_executable_extensions; do
3758 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3759 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3760 # Check for GNU ac_path_GREP and select it if it is found.
3761 # Check for GNU $ac_path_GREP
3762case `"$ac_path_GREP" --version 2>&1` in
3763*GNU*)
3764 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3765*)
3766 ac_count=0
3767 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3768 while :
3769 do
3770 cat "conftest.in" "conftest.in" >"conftest.tmp"
3771 mv "conftest.tmp" "conftest.in"
3772 cp "conftest.in" "conftest.nl"
3773 echo 'GREP' >> "conftest.nl"
3774 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3775 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3776 ac_count=`expr $ac_count + 1`
3777 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3778 # Best one so far, save it but keep looking for a better one
3779 ac_cv_path_GREP="$ac_path_GREP"
3780 ac_path_GREP_max=$ac_count
3781 fi
3782 # 10*(2^10) chars as input seems more than enough
3783 test $ac_count -gt 10 && break
3784 done
3785 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3786esac
3787
3788
3789 $ac_path_GREP_found && break 3
3790 done
3791done
3792
3793done
3794IFS=$as_save_IFS
3795
3796
3797fi
3798
3799GREP="$ac_cv_path_GREP"
3800if test -z "$GREP"; then
3801 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3802echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3803 { (exit 1); exit 1; }; }
3804fi
3805
3806else
3807 ac_cv_path_GREP=$GREP
3808fi
3809
3810
3811fi
3812{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3813echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3814 GREP="$ac_cv_path_GREP"
3815
3816
3817{ echo "$as_me:$LINENO: checking for egrep" >&5
3818echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3819if test "${ac_cv_path_EGREP+set}" = set; then
d9898ee8 3820 echo $ECHO_N "(cached) $ECHO_C" >&6
3821else
dd184caf 3822 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3823 then ac_cv_path_EGREP="$GREP -E"
3824 else
3825 # Extract the first word of "egrep" to use in msg output
3826if test -z "$EGREP"; then
3827set dummy egrep; ac_prog_name=$2
3828if test "${ac_cv_path_EGREP+set}" = set; then
3829 echo $ECHO_N "(cached) $ECHO_C" >&6
3830else
3831 ac_path_EGREP_found=false
3832# Loop through the user's path and test for each of PROGNAME-LIST
3833as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3834for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3835do
3836 IFS=$as_save_IFS
3837 test -z "$as_dir" && as_dir=.
3838 for ac_prog in egrep; do
3839 for ac_exec_ext in '' $ac_executable_extensions; do
3840 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3841 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3842 # Check for GNU ac_path_EGREP and select it if it is found.
3843 # Check for GNU $ac_path_EGREP
3844case `"$ac_path_EGREP" --version 2>&1` in
3845*GNU*)
3846 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3847*)
3848 ac_count=0
3849 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3850 while :
3851 do
3852 cat "conftest.in" "conftest.in" >"conftest.tmp"
3853 mv "conftest.tmp" "conftest.in"
3854 cp "conftest.in" "conftest.nl"
3855 echo 'EGREP' >> "conftest.nl"
3856 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3857 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3858 ac_count=`expr $ac_count + 1`
3859 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3860 # Best one so far, save it but keep looking for a better one
3861 ac_cv_path_EGREP="$ac_path_EGREP"
3862 ac_path_EGREP_max=$ac_count
d9898ee8 3863 fi
dd184caf 3864 # 10*(2^10) chars as input seems more than enough
3865 test $ac_count -gt 10 && break
3866 done
3867 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3868esac
3869
3870
3871 $ac_path_EGREP_found && break 3
3872 done
3873done
3874
3875done
3876IFS=$as_save_IFS
3877
3878
3879fi
3880
3881EGREP="$ac_cv_path_EGREP"
3882if test -z "$EGREP"; then
3883 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3884echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3885 { (exit 1); exit 1; }; }
3886fi
3887
3888else
3889 ac_cv_path_EGREP=$EGREP
3890fi
3891
3892
3893 fi
d9898ee8 3894fi
dd184caf 3895{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3896echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3897 EGREP="$ac_cv_path_EGREP"
d9898ee8 3898
3899
3900
dd184caf 3901{ echo "$as_me:$LINENO: checking for AIX" >&5
3902echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
d9898ee8 3903cat >conftest.$ac_ext <<_ACEOF
3904/* confdefs.h. */
3905_ACEOF
3906cat confdefs.h >>conftest.$ac_ext
3907cat >>conftest.$ac_ext <<_ACEOF
3908/* end confdefs.h. */
3909#ifdef _AIX
3910 yes
3911#endif
3912
3913_ACEOF
3914if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3915 $EGREP "yes" >/dev/null 2>&1; then
dd184caf 3916 { echo "$as_me:$LINENO: result: yes" >&5
3917echo "${ECHO_T}yes" >&6; }
d9898ee8 3918cat >>confdefs.h <<\_ACEOF
3919#define _ALL_SOURCE 1
3920_ACEOF
3921
3922else
dd184caf 3923 { echo "$as_me:$LINENO: result: no" >&5
3924echo "${ECHO_T}no" >&6; }
d9898ee8 3925fi
3926rm -f conftest*
3927
3928
dd184caf 3929{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3930echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
d9898ee8 3931if test "${ac_cv_header_stdc+set}" = set; then
3932 echo $ECHO_N "(cached) $ECHO_C" >&6
3933else
3934 cat >conftest.$ac_ext <<_ACEOF
3935/* confdefs.h. */
3936_ACEOF
3937cat confdefs.h >>conftest.$ac_ext
3938cat >>conftest.$ac_ext <<_ACEOF
3939/* end confdefs.h. */
3940#include <stdlib.h>
3941#include <stdarg.h>
3942#include <string.h>
3943#include <float.h>
3944
3945int
3946main ()
3947{
3948
3949 ;
3950 return 0;
3951}
3952_ACEOF
3953rm -f conftest.$ac_objext
dd184caf 3954if { (ac_try="$ac_compile"
3955case "(($ac_try" in
3956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3957 *) ac_try_echo=$ac_try;;
3958esac
3959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3960 (eval "$ac_compile") 2>conftest.er1
d9898ee8 3961 ac_status=$?
3962 grep -v '^ *+' conftest.er1 >conftest.err
3963 rm -f conftest.er1
3964 cat conftest.err >&5
3965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 3966 (exit $ac_status); } && {
3967 test -z "$ac_c_werror_flag" ||
3968 test ! -s conftest.err
3969 } && test -s conftest.$ac_objext; then
d9898ee8 3970 ac_cv_header_stdc=yes
3971else
3972 echo "$as_me: failed program was:" >&5
3973sed 's/^/| /' conftest.$ac_ext >&5
3974
dd184caf 3975 ac_cv_header_stdc=no
d9898ee8 3976fi
dd184caf 3977
3978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 3979
3980if test $ac_cv_header_stdc = yes; then
3981 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3982 cat >conftest.$ac_ext <<_ACEOF
3983/* confdefs.h. */
3984_ACEOF
3985cat confdefs.h >>conftest.$ac_ext
3986cat >>conftest.$ac_ext <<_ACEOF
3987/* end confdefs.h. */
3988#include <string.h>
3989
3990_ACEOF
3991if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3992 $EGREP "memchr" >/dev/null 2>&1; then
3993 :
3994else
3995 ac_cv_header_stdc=no
3996fi
3997rm -f conftest*
3998
3999fi
4000
4001if test $ac_cv_header_stdc = yes; then
4002 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4003 cat >conftest.$ac_ext <<_ACEOF
4004/* confdefs.h. */
4005_ACEOF
4006cat confdefs.h >>conftest.$ac_ext
4007cat >>conftest.$ac_ext <<_ACEOF
4008/* end confdefs.h. */
4009#include <stdlib.h>
4010
4011_ACEOF
4012if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4013 $EGREP "free" >/dev/null 2>&1; then
4014 :
4015else
4016 ac_cv_header_stdc=no
4017fi
4018rm -f conftest*
4019
4020fi
4021
4022if test $ac_cv_header_stdc = yes; then
4023 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4024 if test "$cross_compiling" = yes; then
4025 :
4026else
4027 cat >conftest.$ac_ext <<_ACEOF
4028/* confdefs.h. */
4029_ACEOF
4030cat confdefs.h >>conftest.$ac_ext
4031cat >>conftest.$ac_ext <<_ACEOF
4032/* end confdefs.h. */
4033#include <ctype.h>
dd184caf 4034#include <stdlib.h>
d9898ee8 4035#if ((' ' & 0x0FF) == 0x020)
4036# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4037# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4038#else
4039# define ISLOWER(c) \
4040 (('a' <= (c) && (c) <= 'i') \
4041 || ('j' <= (c) && (c) <= 'r') \
4042 || ('s' <= (c) && (c) <= 'z'))
4043# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4044#endif
4045
4046#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4047int
4048main ()
4049{
4050 int i;
4051 for (i = 0; i < 256; i++)
4052 if (XOR (islower (i), ISLOWER (i))
4053 || toupper (i) != TOUPPER (i))
dd184caf 4054 return 2;
4055 return 0;
d9898ee8 4056}
4057_ACEOF
4058rm -f conftest$ac_exeext
dd184caf 4059if { (ac_try="$ac_link"
4060case "(($ac_try" in
4061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4062 *) ac_try_echo=$ac_try;;
4063esac
4064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4065 (eval "$ac_link") 2>&5
d9898ee8 4066 ac_status=$?
4067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4068 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
dd184caf 4069 { (case "(($ac_try" in
4070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4071 *) ac_try_echo=$ac_try;;
4072esac
4073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4074 (eval "$ac_try") 2>&5
d9898ee8 4075 ac_status=$?
4076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4077 (exit $ac_status); }; }; then
4078 :
4079else
4080 echo "$as_me: program exited with status $ac_status" >&5
4081echo "$as_me: failed program was:" >&5
4082sed 's/^/| /' conftest.$ac_ext >&5
4083
4084( exit $ac_status )
4085ac_cv_header_stdc=no
4086fi
dd184caf 4087rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d9898ee8 4088fi
dd184caf 4089
4090
d9898ee8 4091fi
4092fi
dd184caf 4093{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4094echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
d9898ee8 4095if test $ac_cv_header_stdc = yes; then
4096
4097cat >>confdefs.h <<\_ACEOF
4098#define STDC_HEADERS 1
4099_ACEOF
4100
4101fi
4102
4103# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4114 inttypes.h stdint.h unistd.h
4115do
4116as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
dd184caf 4117{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4118echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4119if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 4120 echo $ECHO_N "(cached) $ECHO_C" >&6
4121else
4122 cat >conftest.$ac_ext <<_ACEOF
4123/* confdefs.h. */
4124_ACEOF
4125cat confdefs.h >>conftest.$ac_ext
4126cat >>conftest.$ac_ext <<_ACEOF
4127/* end confdefs.h. */
4128$ac_includes_default
4129
4130#include <$ac_header>
4131_ACEOF
4132rm -f conftest.$ac_objext
dd184caf 4133if { (ac_try="$ac_compile"
4134case "(($ac_try" in
4135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4136 *) ac_try_echo=$ac_try;;
4137esac
4138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4139 (eval "$ac_compile") 2>conftest.er1
d9898ee8 4140 ac_status=$?
4141 grep -v '^ *+' conftest.er1 >conftest.err
4142 rm -f conftest.er1
4143 cat conftest.err >&5
4144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 4145 (exit $ac_status); } && {
4146 test -z "$ac_c_werror_flag" ||
4147 test ! -s conftest.err
4148 } && test -s conftest.$ac_objext; then
d9898ee8 4149 eval "$as_ac_Header=yes"
4150else
4151 echo "$as_me: failed program was:" >&5
4152sed 's/^/| /' conftest.$ac_ext >&5
4153
dd184caf 4154 eval "$as_ac_Header=no"
d9898ee8 4155fi
dd184caf 4156
4157rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 4158fi
dd184caf 4159ac_res=`eval echo '${'$as_ac_Header'}'`
4160 { echo "$as_me:$LINENO: result: $ac_res" >&5
4161echo "${ECHO_T}$ac_res" >&6; }
d9898ee8 4162if test `eval echo '${'$as_ac_Header'}'` = yes; then
4163 cat >>confdefs.h <<_ACEOF
4164#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4165_ACEOF
4166
4167fi
4168
4169done
4170
4171
4172if test "${ac_cv_header_minix_config_h+set}" = set; then
dd184caf 4173 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4174echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
d9898ee8 4175if test "${ac_cv_header_minix_config_h+set}" = set; then
4176 echo $ECHO_N "(cached) $ECHO_C" >&6
4177fi
dd184caf 4178{ echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4179echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
d9898ee8 4180else
4181 # Is the header compilable?
dd184caf 4182{ echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4183echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
d9898ee8 4184cat >conftest.$ac_ext <<_ACEOF
4185/* confdefs.h. */
4186_ACEOF
4187cat confdefs.h >>conftest.$ac_ext
4188cat >>conftest.$ac_ext <<_ACEOF
4189/* end confdefs.h. */
4190$ac_includes_default
4191#include <minix/config.h>
4192_ACEOF
4193rm -f conftest.$ac_objext
dd184caf 4194if { (ac_try="$ac_compile"
4195case "(($ac_try" in
4196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4197 *) ac_try_echo=$ac_try;;
4198esac
4199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4200 (eval "$ac_compile") 2>conftest.er1
d9898ee8 4201 ac_status=$?
4202 grep -v '^ *+' conftest.er1 >conftest.err
4203 rm -f conftest.er1
4204 cat conftest.err >&5
4205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 4206 (exit $ac_status); } && {
4207 test -z "$ac_c_werror_flag" ||
4208 test ! -s conftest.err
4209 } && test -s conftest.$ac_objext; then
d9898ee8 4210 ac_header_compiler=yes
4211else
4212 echo "$as_me: failed program was:" >&5
4213sed 's/^/| /' conftest.$ac_ext >&5
4214
dd184caf 4215 ac_header_compiler=no
d9898ee8 4216fi
dd184caf 4217
4218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4219{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4220echo "${ECHO_T}$ac_header_compiler" >&6; }
d9898ee8 4221
4222# Is the header present?
dd184caf 4223{ echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4224echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
d9898ee8 4225cat >conftest.$ac_ext <<_ACEOF
4226/* confdefs.h. */
4227_ACEOF
4228cat confdefs.h >>conftest.$ac_ext
4229cat >>conftest.$ac_ext <<_ACEOF
4230/* end confdefs.h. */
4231#include <minix/config.h>
4232_ACEOF
dd184caf 4233if { (ac_try="$ac_cpp conftest.$ac_ext"
4234case "(($ac_try" in
4235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4236 *) ac_try_echo=$ac_try;;
4237esac
4238eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4239 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 4240 ac_status=$?
4241 grep -v '^ *+' conftest.er1 >conftest.err
4242 rm -f conftest.er1
4243 cat conftest.err >&5
4244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 4245 (exit $ac_status); } >/dev/null && {
4246 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4247 test ! -s conftest.err
4248 }; then
d9898ee8 4249 ac_header_preproc=yes
4250else
4251 echo "$as_me: failed program was:" >&5
4252sed 's/^/| /' conftest.$ac_ext >&5
4253
4254 ac_header_preproc=no
4255fi
dd184caf 4256
d9898ee8 4257rm -f conftest.err conftest.$ac_ext
dd184caf 4258{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4259echo "${ECHO_T}$ac_header_preproc" >&6; }
d9898ee8 4260
4261# So? What about this header?
4262case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4263 yes:no: )
4264 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4265echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4266 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4267echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4268 ac_header_preproc=yes
4269 ;;
4270 no:yes:* )
4271 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4272echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4273 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4274echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4275 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4276echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4277 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4278echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4279 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4280echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4281 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4282echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
dd184caf 4283 ( cat <<\_ASBOX
d9898ee8 4284## -------------------------------------------------- ##
4285## Report this to courier-users@lists.sourceforge.net ##
4286## -------------------------------------------------- ##
4287_ASBOX
dd184caf 4288 ) | sed "s/^/$as_me: WARNING: /" >&2
d9898ee8 4289 ;;
4290esac
dd184caf 4291{ echo "$as_me:$LINENO: checking for minix/config.h" >&5
4292echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
d9898ee8 4293if test "${ac_cv_header_minix_config_h+set}" = set; then
4294 echo $ECHO_N "(cached) $ECHO_C" >&6
4295else
4296 ac_cv_header_minix_config_h=$ac_header_preproc
4297fi
dd184caf 4298{ echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4299echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
d9898ee8 4300
4301fi
4302if test $ac_cv_header_minix_config_h = yes; then
4303 MINIX=yes
4304else
4305 MINIX=
4306fi
4307
4308
4309if test "$MINIX" = yes; then
4310
4311cat >>confdefs.h <<\_ACEOF
4312#define _POSIX_SOURCE 1
4313_ACEOF
4314
4315
4316cat >>confdefs.h <<\_ACEOF
4317#define _POSIX_1_SOURCE 2
4318_ACEOF
4319
4320
4321cat >>confdefs.h <<\_ACEOF
4322#define _MINIX 1
4323_ACEOF
4324
4325fi
4326
dd184caf 4327{ echo "$as_me:$LINENO: checking for library containing strerror" >&5
4328echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
4329if test "${ac_cv_search_strerror+set}" = set; then
d9898ee8 4330 echo $ECHO_N "(cached) $ECHO_C" >&6
4331else
dd184caf 4332 ac_func_search_save_LIBS=$LIBS
d9898ee8 4333cat >conftest.$ac_ext <<_ACEOF
4334/* confdefs.h. */
4335_ACEOF
4336cat confdefs.h >>conftest.$ac_ext
4337cat >>conftest.$ac_ext <<_ACEOF
4338/* end confdefs.h. */
4339
dd184caf 4340/* Override any GCC internal prototype to avoid an error.
4341 Use char because int might match the return type of a GCC
4342 builtin and then its argument prototype would still apply. */
d9898ee8 4343#ifdef __cplusplus
4344extern "C"
4345#endif
d9898ee8 4346char strerror ();
4347int
4348main ()
4349{
dd184caf 4350return strerror ();
d9898ee8 4351 ;
4352 return 0;
4353}
4354_ACEOF
dd184caf 4355for ac_lib in '' cposix; do
4356 if test -z "$ac_lib"; then
4357 ac_res="none required"
4358 else
4359 ac_res=-l$ac_lib
4360 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4361 fi
4362 rm -f conftest.$ac_objext conftest$ac_exeext
4363if { (ac_try="$ac_link"
4364case "(($ac_try" in
4365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4366 *) ac_try_echo=$ac_try;;
4367esac
4368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4369 (eval "$ac_link") 2>conftest.er1
d9898ee8 4370 ac_status=$?
4371 grep -v '^ *+' conftest.er1 >conftest.err
4372 rm -f conftest.er1
4373 cat conftest.err >&5
4374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 4375 (exit $ac_status); } && {
4376 test -z "$ac_c_werror_flag" ||
4377 test ! -s conftest.err
4378 } && test -s conftest$ac_exeext &&
4379 $as_test_x conftest$ac_exeext; then
4380 ac_cv_search_strerror=$ac_res
d9898ee8 4381else
4382 echo "$as_me: failed program was:" >&5
4383sed 's/^/| /' conftest.$ac_ext >&5
4384
dd184caf 4385
d9898ee8 4386fi
dd184caf 4387
4388rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4389 conftest$ac_exeext
4390 if test "${ac_cv_search_strerror+set}" = set; then
4391 break
d9898ee8 4392fi
dd184caf 4393done
4394if test "${ac_cv_search_strerror+set}" = set; then
4395 :
4396else
4397 ac_cv_search_strerror=no
d9898ee8 4398fi
dd184caf 4399rm conftest.$ac_ext
4400LIBS=$ac_func_search_save_LIBS
4401fi
4402{ echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
4403echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
4404ac_res=$ac_cv_search_strerror
4405if test "$ac_res" != no; then
4406 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
d9898ee8 4407
dd184caf 4408fi
d9898ee8 4409
4410for ac_prog in gawk mawk nawk awk
4411do
4412 # Extract the first word of "$ac_prog", so it can be a program name with args.
4413set dummy $ac_prog; ac_word=$2
dd184caf 4414{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4415echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 4416if test "${ac_cv_prog_AWK+set}" = set; then
4417 echo $ECHO_N "(cached) $ECHO_C" >&6
4418else
4419 if test -n "$AWK"; then
4420 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4421else
4422as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4423for as_dir in $PATH
4424do
4425 IFS=$as_save_IFS
4426 test -z "$as_dir" && as_dir=.
4427 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 4428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 4429 ac_cv_prog_AWK="$ac_prog"
4430 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4431 break 2
4432 fi
4433done
4434done
dd184caf 4435IFS=$as_save_IFS
d9898ee8 4436
4437fi
4438fi
4439AWK=$ac_cv_prog_AWK
4440if test -n "$AWK"; then
dd184caf 4441 { echo "$as_me:$LINENO: result: $AWK" >&5
4442echo "${ECHO_T}$AWK" >&6; }
d9898ee8 4443else
dd184caf 4444 { echo "$as_me:$LINENO: result: no" >&5
4445echo "${ECHO_T}no" >&6; }
d9898ee8 4446fi
4447
dd184caf 4448
d9898ee8 4449 test -n "$AWK" && break
4450done
4451
dd184caf 4452ac_ext=cpp
d9898ee8 4453ac_cpp='$CXXCPP $CPPFLAGS'
4454ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4455ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4456ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
dd184caf 4457if test -z "$CXX"; then
4458 if test -n "$CCC"; then
4459 CXX=$CCC
4460 else
4461 if test -n "$ac_tool_prefix"; then
4462 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
d9898ee8 4463 do
4464 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4465set dummy $ac_tool_prefix$ac_prog; ac_word=$2
dd184caf 4466{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4467echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 4468if test "${ac_cv_prog_CXX+set}" = set; then
4469 echo $ECHO_N "(cached) $ECHO_C" >&6
4470else
4471 if test -n "$CXX"; then
4472 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4473else
4474as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4475for as_dir in $PATH
4476do
4477 IFS=$as_save_IFS
4478 test -z "$as_dir" && as_dir=.
4479 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 4480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 4481 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4482 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4483 break 2
4484 fi
4485done
4486done
dd184caf 4487IFS=$as_save_IFS
d9898ee8 4488
4489fi
4490fi
4491CXX=$ac_cv_prog_CXX
4492if test -n "$CXX"; then
dd184caf 4493 { echo "$as_me:$LINENO: result: $CXX" >&5
4494echo "${ECHO_T}$CXX" >&6; }
d9898ee8 4495else
dd184caf 4496 { echo "$as_me:$LINENO: result: no" >&5
4497echo "${ECHO_T}no" >&6; }
d9898ee8 4498fi
4499
dd184caf 4500
d9898ee8 4501 test -n "$CXX" && break
4502 done
4503fi
4504if test -z "$CXX"; then
4505 ac_ct_CXX=$CXX
dd184caf 4506 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
d9898ee8 4507do
4508 # Extract the first word of "$ac_prog", so it can be a program name with args.
4509set dummy $ac_prog; ac_word=$2
dd184caf 4510{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4511echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 4512if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4513 echo $ECHO_N "(cached) $ECHO_C" >&6
4514else
4515 if test -n "$ac_ct_CXX"; then
4516 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4517else
4518as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4519for as_dir in $PATH
4520do
4521 IFS=$as_save_IFS
4522 test -z "$as_dir" && as_dir=.
4523 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 4524 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 4525 ac_cv_prog_ac_ct_CXX="$ac_prog"
4526 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4527 break 2
4528 fi
4529done
4530done
dd184caf 4531IFS=$as_save_IFS
d9898ee8 4532
4533fi
4534fi
4535ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4536if test -n "$ac_ct_CXX"; then
dd184caf 4537 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4538echo "${ECHO_T}$ac_ct_CXX" >&6; }
d9898ee8 4539else
dd184caf 4540 { echo "$as_me:$LINENO: result: no" >&5
4541echo "${ECHO_T}no" >&6; }
d9898ee8 4542fi
4543
dd184caf 4544
d9898ee8 4545 test -n "$ac_ct_CXX" && break
4546done
d9898ee8 4547
dd184caf 4548 if test "x$ac_ct_CXX" = x; then
4549 CXX="g++"
4550 else
4551 case $cross_compiling:$ac_tool_warned in
4552yes:)
4553{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4554whose name does not start with the host triplet. If you think this
4555configuration is useful to you, please write to autoconf@gnu.org." >&5
4556echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4557whose name does not start with the host triplet. If you think this
4558configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4559ac_tool_warned=yes ;;
4560esac
4561 CXX=$ac_ct_CXX
4562 fi
d9898ee8 4563fi
4564
dd184caf 4565 fi
4566fi
d9898ee8 4567# Provide some information about the compiler.
dd184caf 4568echo "$as_me:$LINENO: checking for C++ compiler version" >&5
d9898ee8 4569ac_compiler=`set X $ac_compile; echo $2`
dd184caf 4570{ (ac_try="$ac_compiler --version >&5"
4571case "(($ac_try" in
4572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4573 *) ac_try_echo=$ac_try;;
4574esac
4575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4576 (eval "$ac_compiler --version >&5") 2>&5
d9898ee8 4577 ac_status=$?
4578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4579 (exit $ac_status); }
dd184caf 4580{ (ac_try="$ac_compiler -v >&5"
4581case "(($ac_try" in
4582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4583 *) ac_try_echo=$ac_try;;
4584esac
4585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4586 (eval "$ac_compiler -v >&5") 2>&5
d9898ee8 4587 ac_status=$?
4588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4589 (exit $ac_status); }
dd184caf 4590{ (ac_try="$ac_compiler -V >&5"
4591case "(($ac_try" in
4592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4593 *) ac_try_echo=$ac_try;;
4594esac
4595eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4596 (eval "$ac_compiler -V >&5") 2>&5
d9898ee8 4597 ac_status=$?
4598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4599 (exit $ac_status); }
4600
dd184caf 4601{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4602echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
d9898ee8 4603if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4604 echo $ECHO_N "(cached) $ECHO_C" >&6
4605else
4606 cat >conftest.$ac_ext <<_ACEOF
4607/* confdefs.h. */
4608_ACEOF
4609cat confdefs.h >>conftest.$ac_ext
4610cat >>conftest.$ac_ext <<_ACEOF
4611/* end confdefs.h. */
4612
4613int
4614main ()
4615{
4616#ifndef __GNUC__
4617 choke me
4618#endif
4619
4620 ;
4621 return 0;
4622}
4623_ACEOF
4624rm -f conftest.$ac_objext
dd184caf 4625if { (ac_try="$ac_compile"
4626case "(($ac_try" in
4627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4628 *) ac_try_echo=$ac_try;;
4629esac
4630eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4631 (eval "$ac_compile") 2>conftest.er1
d9898ee8 4632 ac_status=$?
4633 grep -v '^ *+' conftest.er1 >conftest.err
4634 rm -f conftest.er1
4635 cat conftest.err >&5
4636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 4637 (exit $ac_status); } && {
4638 test -z "$ac_cxx_werror_flag" ||
4639 test ! -s conftest.err
4640 } && test -s conftest.$ac_objext; then
d9898ee8 4641 ac_compiler_gnu=yes
4642else
4643 echo "$as_me: failed program was:" >&5
4644sed 's/^/| /' conftest.$ac_ext >&5
4645
dd184caf 4646 ac_compiler_gnu=no
d9898ee8 4647fi
dd184caf 4648
4649rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 4650ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4651
4652fi
dd184caf 4653{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4654echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
d9898ee8 4655GXX=`test $ac_compiler_gnu = yes && echo yes`
4656ac_test_CXXFLAGS=${CXXFLAGS+set}
4657ac_save_CXXFLAGS=$CXXFLAGS
dd184caf 4658{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4659echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
d9898ee8 4660if test "${ac_cv_prog_cxx_g+set}" = set; then
4661 echo $ECHO_N "(cached) $ECHO_C" >&6
4662else
dd184caf 4663 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4664 ac_cxx_werror_flag=yes
4665 ac_cv_prog_cxx_g=no
4666 CXXFLAGS="-g"
4667 cat >conftest.$ac_ext <<_ACEOF
d9898ee8 4668/* confdefs.h. */
4669_ACEOF
4670cat confdefs.h >>conftest.$ac_ext
4671cat >>conftest.$ac_ext <<_ACEOF
4672/* end confdefs.h. */
4673
4674int
4675main ()
4676{
4677
4678 ;
4679 return 0;
4680}
4681_ACEOF
4682rm -f conftest.$ac_objext
dd184caf 4683if { (ac_try="$ac_compile"
4684case "(($ac_try" in
4685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4686 *) ac_try_echo=$ac_try;;
4687esac
4688eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4689 (eval "$ac_compile") 2>conftest.er1
d9898ee8 4690 ac_status=$?
4691 grep -v '^ *+' conftest.er1 >conftest.err
4692 rm -f conftest.er1
4693 cat conftest.err >&5
4694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 4695 (exit $ac_status); } && {
4696 test -z "$ac_cxx_werror_flag" ||
4697 test ! -s conftest.err
4698 } && test -s conftest.$ac_objext; then
d9898ee8 4699 ac_cv_prog_cxx_g=yes
4700else
4701 echo "$as_me: failed program was:" >&5
4702sed 's/^/| /' conftest.$ac_ext >&5
4703
dd184caf 4704 CXXFLAGS=""
4705 cat >conftest.$ac_ext <<_ACEOF
d9898ee8 4706/* confdefs.h. */
4707_ACEOF
4708cat confdefs.h >>conftest.$ac_ext
4709cat >>conftest.$ac_ext <<_ACEOF
4710/* end confdefs.h. */
dd184caf 4711
d9898ee8 4712int
4713main ()
4714{
dd184caf 4715
d9898ee8 4716 ;
4717 return 0;
4718}
4719_ACEOF
4720rm -f conftest.$ac_objext
dd184caf 4721if { (ac_try="$ac_compile"
4722case "(($ac_try" in
4723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4724 *) ac_try_echo=$ac_try;;
4725esac
4726eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4727 (eval "$ac_compile") 2>conftest.er1
d9898ee8 4728 ac_status=$?
4729 grep -v '^ *+' conftest.er1 >conftest.err
4730 rm -f conftest.er1
4731 cat conftest.err >&5
4732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 4733 (exit $ac_status); } && {
4734 test -z "$ac_cxx_werror_flag" ||
4735 test ! -s conftest.err
4736 } && test -s conftest.$ac_objext; then
d9898ee8 4737 :
4738else
4739 echo "$as_me: failed program was:" >&5
4740sed 's/^/| /' conftest.$ac_ext >&5
4741
dd184caf 4742 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4743 CXXFLAGS="-g"
4744 cat >conftest.$ac_ext <<_ACEOF
d9898ee8 4745/* confdefs.h. */
4746_ACEOF
4747cat confdefs.h >>conftest.$ac_ext
4748cat >>conftest.$ac_ext <<_ACEOF
4749/* end confdefs.h. */
dd184caf 4750
d9898ee8 4751int
4752main ()
4753{
dd184caf 4754
d9898ee8 4755 ;
4756 return 0;
4757}
4758_ACEOF
4759rm -f conftest.$ac_objext
dd184caf 4760if { (ac_try="$ac_compile"
4761case "(($ac_try" in
4762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4763 *) ac_try_echo=$ac_try;;
4764esac
4765eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4766 (eval "$ac_compile") 2>conftest.er1
d9898ee8 4767 ac_status=$?
4768 grep -v '^ *+' conftest.er1 >conftest.err
4769 rm -f conftest.er1
4770 cat conftest.err >&5
4771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 4772 (exit $ac_status); } && {
4773 test -z "$ac_cxx_werror_flag" ||
4774 test ! -s conftest.err
4775 } && test -s conftest.$ac_objext; then
4776 ac_cv_prog_cxx_g=yes
d9898ee8 4777else
4778 echo "$as_me: failed program was:" >&5
4779sed 's/^/| /' conftest.$ac_ext >&5
4780
dd184caf 4781
d9898ee8 4782fi
dd184caf 4783
4784rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4785fi
4786
4787rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 4788fi
4789
dd184caf 4790rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4791 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4792fi
4793{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4794echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
4795if test "$ac_test_CXXFLAGS" = set; then
4796 CXXFLAGS=$ac_save_CXXFLAGS
4797elif test $ac_cv_prog_cxx_g = yes; then
4798 if test "$GXX" = yes; then
4799 CXXFLAGS="-g -O2"
4800 else
4801 CXXFLAGS="-g"
4802 fi
4803else
4804 if test "$GXX" = yes; then
4805 CXXFLAGS="-O2"
4806 else
4807 CXXFLAGS=
4808 fi
4809fi
d9898ee8 4810ac_ext=c
4811ac_cpp='$CPP $CPPFLAGS'
4812ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4813ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4814ac_compiler_gnu=$ac_cv_c_compiler_gnu
4815
4816depcc="$CXX" am_compiler_list=
4817
dd184caf 4818{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4819echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
d9898ee8 4820if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4821 echo $ECHO_N "(cached) $ECHO_C" >&6
4822else
4823 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4824 # We make a subdir and do the tests there. Otherwise we can end up
4825 # making bogus files that we don't know about and never remove. For
4826 # instance it was reported that on HP-UX the gcc test will end up
4827 # making a dummy file named `D' -- because `-MD' means `put the output
4828 # in D'.
4829 mkdir conftest.dir
4830 # Copy depcomp to subdir because otherwise we won't find it if we're
4831 # using a relative directory.
4832 cp "$am_depcomp" conftest.dir
4833 cd conftest.dir
4834 # We will build objects and dependencies in a subdirectory because
4835 # it helps to detect inapplicable dependency modes. For instance
4836 # both Tru64's cc and ICC support -MD to output dependencies as a
4837 # side effect of compilation, but ICC will put the dependencies in
4838 # the current directory while Tru64 will put them in the object
4839 # directory.
4840 mkdir sub
4841
4842 am_cv_CXX_dependencies_compiler_type=none
4843 if test "$am_compiler_list" = ""; then
4844 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4845 fi
4846 for depmode in $am_compiler_list; do
4847 # Setup a source with many dependencies, because some compilers
4848 # like to wrap large dependency lists on column 80 (with \), and
4849 # we should not choose a depcomp mode which is confused by this.
4850 #
4851 # We need to recreate these files for each test, as the compiler may
4852 # overwrite some of them when testing with obscure command lines.
4853 # This happens at least with the AIX C compiler.
4854 : > sub/conftest.c
4855 for i in 1 2 3 4 5 6; do
4856 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4857 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4858 # Solaris 8's {/usr,}/bin/sh.
4859 touch sub/conftst$i.h
4860 done
4861 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4862
4863 case $depmode in
4864 nosideeffect)
4865 # after this tag, mechanisms are not by side-effect, so they'll
4866 # only be used when explicitly requested
4867 if test "x$enable_dependency_tracking" = xyes; then
4868 continue
4869 else
4870 break
4871 fi
4872 ;;
4873 none) break ;;
4874 esac
4875 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4876 # mode. It turns out that the SunPro C++ compiler does not properly
4877 # handle `-M -o', and we need to detect this.
4878 if depmode=$depmode \
4879 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4880 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4881 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4882 >/dev/null 2>conftest.err &&
dd184caf 4883 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
d9898ee8 4884 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4885 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4886 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4887 # icc doesn't choke on unknown options, it will just issue warnings
4888 # or remarks (even with -Werror). So we grep stderr for any message
4889 # that says an option was ignored or not supported.
4890 # When given -MP, icc 7.0 and 7.1 complain thusly:
4891 # icc: Command line warning: ignoring option '-M'; no argument required
4892 # The diagnosis changed in icc 8.0:
4893 # icc: Command line remark: option '-MP' not supported
4894 if (grep 'ignoring option' conftest.err ||
4895 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4896 am_cv_CXX_dependencies_compiler_type=$depmode
4897 break
4898 fi
4899 fi
4900 done
4901
4902 cd ..
4903 rm -rf conftest.dir
4904else
4905 am_cv_CXX_dependencies_compiler_type=none
4906fi
4907
4908fi
dd184caf 4909{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4910echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
d9898ee8 4911CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4912
dd184caf 4913 if
d9898ee8 4914 test "x$enable_dependency_tracking" != xno \
4915 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4916 am__fastdepCXX_TRUE=
4917 am__fastdepCXX_FALSE='#'
4918else
4919 am__fastdepCXX_TRUE='#'
4920 am__fastdepCXX_FALSE=
4921fi
4922
4923
dd184caf 4924# Check whether --enable-shared was given.
d9898ee8 4925if test "${enable_shared+set}" = set; then
dd184caf 4926 enableval=$enable_shared; p=${PACKAGE-default}
d9898ee8 4927 case $enableval in
4928 yes) enable_shared=yes ;;
4929 no) enable_shared=no ;;
4930 *)
4931 enable_shared=no
4932 # Look at the argument we got. We use all the common list separators.
4933 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4934 for pkg in $enableval; do
4935 IFS="$lt_save_ifs"
4936 if test "X$pkg" = "X$p"; then
4937 enable_shared=yes
4938 fi
4939 done
4940 IFS="$lt_save_ifs"
4941 ;;
4942 esac
4943else
4944 enable_shared=yes
dd184caf 4945fi
4946
d9898ee8 4947
dd184caf 4948# Check whether --enable-static was given.
d9898ee8 4949if test "${enable_static+set}" = set; then
dd184caf 4950 enableval=$enable_static; p=${PACKAGE-default}
d9898ee8 4951 case $enableval in
4952 yes) enable_static=yes ;;
4953 no) enable_static=no ;;
4954 *)
4955 enable_static=no
4956 # Look at the argument we got. We use all the common list separators.
4957 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4958 for pkg in $enableval; do
4959 IFS="$lt_save_ifs"
4960 if test "X$pkg" = "X$p"; then
4961 enable_static=yes
4962 fi
4963 done
4964 IFS="$lt_save_ifs"
4965 ;;
4966 esac
4967else
4968 enable_static=yes
dd184caf 4969fi
4970
d9898ee8 4971
dd184caf 4972# Check whether --enable-fast-install was given.
d9898ee8 4973if test "${enable_fast_install+set}" = set; then
dd184caf 4974 enableval=$enable_fast_install; p=${PACKAGE-default}
d9898ee8 4975 case $enableval in
4976 yes) enable_fast_install=yes ;;
4977 no) enable_fast_install=no ;;
4978 *)
4979 enable_fast_install=no
4980 # Look at the argument we got. We use all the common list separators.
4981 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4982 for pkg in $enableval; do
4983 IFS="$lt_save_ifs"
4984 if test "X$pkg" = "X$p"; then
4985 enable_fast_install=yes
4986 fi
4987 done
4988 IFS="$lt_save_ifs"
4989 ;;
4990 esac
4991else
4992 enable_fast_install=yes
dd184caf 4993fi
4994
d9898ee8 4995
4996# Make sure we can run config.sub.
dd184caf 4997$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4998 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4999echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
d9898ee8 5000 { (exit 1); exit 1; }; }
5001
dd184caf 5002{ echo "$as_me:$LINENO: checking build system type" >&5
5003echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
d9898ee8 5004if test "${ac_cv_build+set}" = set; then
5005 echo $ECHO_N "(cached) $ECHO_C" >&6
5006else
dd184caf 5007 ac_build_alias=$build_alias
5008test "x$ac_build_alias" = x &&
5009 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5010test "x$ac_build_alias" = x &&
d9898ee8 5011 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5012echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5013 { (exit 1); exit 1; }; }
dd184caf 5014ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5015 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5016echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
d9898ee8 5017 { (exit 1); exit 1; }; }
5018
5019fi
dd184caf 5020{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5021echo "${ECHO_T}$ac_cv_build" >&6; }
5022case $ac_cv_build in
5023*-*-*) ;;
5024*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5025echo "$as_me: error: invalid value of canonical build" >&2;}
5026 { (exit 1); exit 1; }; };;
5027esac
d9898ee8 5028build=$ac_cv_build
dd184caf 5029ac_save_IFS=$IFS; IFS='-'
5030set x $ac_cv_build
5031shift
5032build_cpu=$1
5033build_vendor=$2
5034shift; shift
5035# Remember, the first character of IFS is used to create $*,
5036# except with old shells:
5037build_os=$*
5038IFS=$ac_save_IFS
5039case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5040
5041
5042{ echo "$as_me:$LINENO: checking host system type" >&5
5043echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
d9898ee8 5044if test "${ac_cv_host+set}" = set; then
5045 echo $ECHO_N "(cached) $ECHO_C" >&6
5046else
dd184caf 5047 if test "x$host_alias" = x; then
5048 ac_cv_host=$ac_cv_build
5049else
5050 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5051 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5052echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
d9898ee8 5053 { (exit 1); exit 1; }; }
dd184caf 5054fi
d9898ee8 5055
5056fi
dd184caf 5057{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5058echo "${ECHO_T}$ac_cv_host" >&6; }
5059case $ac_cv_host in
5060*-*-*) ;;
5061*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5062echo "$as_me: error: invalid value of canonical host" >&2;}
5063 { (exit 1); exit 1; }; };;
5064esac
d9898ee8 5065host=$ac_cv_host
dd184caf 5066ac_save_IFS=$IFS; IFS='-'
5067set x $ac_cv_host
5068shift
5069host_cpu=$1
5070host_vendor=$2
5071shift; shift
5072# Remember, the first character of IFS is used to create $*,
5073# except with old shells:
5074host_os=$*
5075IFS=$ac_save_IFS
5076case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5077
5078
5079{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5080echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
d9898ee8 5081if test "${lt_cv_path_SED+set}" = set; then
5082 echo $ECHO_N "(cached) $ECHO_C" >&6
5083else
5084 # Loop through the user's path and test for sed and gsed.
5085# Then use that list of sed's as ones to test for truncation.
5086as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5087for as_dir in $PATH
5088do
5089 IFS=$as_save_IFS
5090 test -z "$as_dir" && as_dir=.
5091 for lt_ac_prog in sed gsed; do
5092 for ac_exec_ext in '' $ac_executable_extensions; do
ac40fd9e 5093 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
d9898ee8 5094 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5095 fi
5096 done
5097 done
5098done
5099IFS=$as_save_IFS
5100lt_ac_max=0
5101lt_ac_count=0
5102# Add /usr/xpg4/bin/sed as it is typically found on Solaris
5103# along with /bin/sed that truncates output.
5104for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5105 test ! -f $lt_ac_sed && continue
5106 cat /dev/null > conftest.in
5107 lt_ac_count=0
5108 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5109 # Check for GNU sed and select it if it is found.
5110 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5111 lt_cv_path_SED=$lt_ac_sed
5112 break
5113 fi
5114 while true; do
5115 cat conftest.in conftest.in >conftest.tmp
5116 mv conftest.tmp conftest.in
5117 cp conftest.in conftest.nl
5118 echo >>conftest.nl
5119 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5120 cmp -s conftest.out conftest.nl || break
5121 # 10000 chars as input seems more than enough
5122 test $lt_ac_count -gt 10 && break
5123 lt_ac_count=`expr $lt_ac_count + 1`
5124 if test $lt_ac_count -gt $lt_ac_max; then
5125 lt_ac_max=$lt_ac_count
5126 lt_cv_path_SED=$lt_ac_sed
5127 fi
5128 done
5129done
5130
5131fi
5132
5133SED=$lt_cv_path_SED
5134
dd184caf 5135{ echo "$as_me:$LINENO: result: $SED" >&5
5136echo "${ECHO_T}$SED" >&6; }
d9898ee8 5137
5138
dd184caf 5139# Check whether --with-gnu-ld was given.
d9898ee8 5140if test "${with_gnu_ld+set}" = set; then
dd184caf 5141 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
d9898ee8 5142else
5143 with_gnu_ld=no
dd184caf 5144fi
5145
d9898ee8 5146ac_prog=ld
5147if test "$GCC" = yes; then
5148 # Check if gcc -print-prog-name=ld gives a path.
dd184caf 5149 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5150echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
d9898ee8 5151 case $host in
5152 *-*-mingw*)
5153 # gcc leaves a trailing carriage return which upsets mingw
5154 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5155 *)
5156 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5157 esac
5158 case $ac_prog in
5159 # Accept absolute paths.
5160 [\\/]* | ?:[\\/]*)
5161 re_direlt='/[^/][^/]*/\.\./'
5162 # Canonicalize the pathname of ld
5163 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5164 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5165 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5166 done
5167 test -z "$LD" && LD="$ac_prog"
5168 ;;
5169 "")
5170 # If it fails, then pretend we aren't using GCC.
5171 ac_prog=ld
5172 ;;
5173 *)
5174 # If it is relative, then search for the first ld in PATH.
5175 with_gnu_ld=unknown
5176 ;;
5177 esac
5178elif test "$with_gnu_ld" = yes; then
dd184caf 5179 { echo "$as_me:$LINENO: checking for GNU ld" >&5
5180echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
d9898ee8 5181else
dd184caf 5182 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5183echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
d9898ee8 5184fi
5185if test "${lt_cv_path_LD+set}" = set; then
5186 echo $ECHO_N "(cached) $ECHO_C" >&6
5187else
5188 if test -z "$LD"; then
5189 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5190 for ac_dir in $PATH; do
5191 IFS="$lt_save_ifs"
5192 test -z "$ac_dir" && ac_dir=.
5193 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5194 lt_cv_path_LD="$ac_dir/$ac_prog"
5195 # Check to see if the program is GNU ld. I'd rather use --version,
5196 # but apparently some variants of GNU ld only accept -v.
5197 # Break only if it was the GNU/non-GNU ld that we prefer.
5198 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5199 *GNU* | *'with BFD'*)
5200 test "$with_gnu_ld" != no && break
5201 ;;
5202 *)
5203 test "$with_gnu_ld" != yes && break
5204 ;;
5205 esac
5206 fi
5207 done
5208 IFS="$lt_save_ifs"
5209else
5210 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5211fi
5212fi
5213
5214LD="$lt_cv_path_LD"
5215if test -n "$LD"; then
dd184caf 5216 { echo "$as_me:$LINENO: result: $LD" >&5
5217echo "${ECHO_T}$LD" >&6; }
d9898ee8 5218else
dd184caf 5219 { echo "$as_me:$LINENO: result: no" >&5
5220echo "${ECHO_T}no" >&6; }
d9898ee8 5221fi
5222test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5223echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5224 { (exit 1); exit 1; }; }
dd184caf 5225{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5226echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
d9898ee8 5227if test "${lt_cv_prog_gnu_ld+set}" = set; then
5228 echo $ECHO_N "(cached) $ECHO_C" >&6
5229else
5230 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5231case `$LD -v 2>&1 </dev/null` in
5232*GNU* | *'with BFD'*)
5233 lt_cv_prog_gnu_ld=yes
5234 ;;
5235*)
5236 lt_cv_prog_gnu_ld=no
5237 ;;
5238esac
5239fi
dd184caf 5240{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5241echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
d9898ee8 5242with_gnu_ld=$lt_cv_prog_gnu_ld
5243
5244
dd184caf 5245{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5246echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
d9898ee8 5247if test "${lt_cv_ld_reload_flag+set}" = set; then
5248 echo $ECHO_N "(cached) $ECHO_C" >&6
5249else
5250 lt_cv_ld_reload_flag='-r'
5251fi
dd184caf 5252{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5253echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
d9898ee8 5254reload_flag=$lt_cv_ld_reload_flag
5255case $reload_flag in
5256"" | " "*) ;;
5257*) reload_flag=" $reload_flag" ;;
5258esac
5259reload_cmds='$LD$reload_flag -o $output$reload_objs'
5260case $host_os in
5261 darwin*)
5262 if test "$GCC" = yes; then
5263 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5264 else
5265 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5266 fi
5267 ;;
5268esac
5269
dd184caf 5270{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5271echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
d9898ee8 5272if test "${lt_cv_path_NM+set}" = set; then
5273 echo $ECHO_N "(cached) $ECHO_C" >&6
5274else
5275 if test -n "$NM"; then
5276 # Let the user override the test.
5277 lt_cv_path_NM="$NM"
5278else
5279 lt_nm_to_check="${ac_tool_prefix}nm"
5280 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5281 lt_nm_to_check="$lt_nm_to_check nm"
5282 fi
5283 for lt_tmp_nm in $lt_nm_to_check; do
5284 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5285 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5286 IFS="$lt_save_ifs"
5287 test -z "$ac_dir" && ac_dir=.
5288 tmp_nm="$ac_dir/$lt_tmp_nm"
5289 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5290 # Check to see if the nm accepts a BSD-compat flag.
5291 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5292 # nm: unknown option "B" ignored
5293 # Tru64's nm complains that /dev/null is an invalid object file
5294 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5295 */dev/null* | *'Invalid file or object type'*)
5296 lt_cv_path_NM="$tmp_nm -B"
5297 break
5298 ;;
5299 *)
5300 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5301 */dev/null*)
5302 lt_cv_path_NM="$tmp_nm -p"
5303 break
5304 ;;
5305 *)
5306 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5307 continue # so that we can try to find one that supports BSD flags
5308 ;;
5309 esac
5310 ;;
5311 esac
5312 fi
5313 done
5314 IFS="$lt_save_ifs"
5315 done
5316 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5317fi
5318fi
dd184caf 5319{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5320echo "${ECHO_T}$lt_cv_path_NM" >&6; }
d9898ee8 5321NM="$lt_cv_path_NM"
5322
dd184caf 5323{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
5324echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
d9898ee8 5325LN_S=$as_ln_s
5326if test "$LN_S" = "ln -s"; then
dd184caf 5327 { echo "$as_me:$LINENO: result: yes" >&5
5328echo "${ECHO_T}yes" >&6; }
d9898ee8 5329else
dd184caf 5330 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5331echo "${ECHO_T}no, using $LN_S" >&6; }
d9898ee8 5332fi
5333
ac40fd9e 5334{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5335echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
d9898ee8 5336if test "${lt_cv_deplibs_check_method+set}" = set; then
5337 echo $ECHO_N "(cached) $ECHO_C" >&6
5338else
5339 lt_cv_file_magic_cmd='$MAGIC_CMD'
5340lt_cv_file_magic_test_file=
5341lt_cv_deplibs_check_method='unknown'
5342# Need to set the preceding variable on all platforms that support
5343# interlibrary dependencies.
5344# 'none' -- dependencies not supported.
5345# `unknown' -- same as none, but documents that we really don't know.
5346# 'pass_all' -- all dependencies passed with no checks.
5347# 'test_compile' -- check by making test program.
5348# 'file_magic [[regex]]' -- check by looking for files in library path
5349# which responds to the $file_magic_cmd with a given extended regex.
5350# If you have `file' or equivalent on your system and you're not sure
5351# whether `pass_all' will *always* work, you probably want this one.
5352
5353case $host_os in
5354aix4* | aix5*)
5355 lt_cv_deplibs_check_method=pass_all
5356 ;;
5357
5358beos*)
5359 lt_cv_deplibs_check_method=pass_all
5360 ;;
5361
5362bsdi[45]*)
5363 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5364 lt_cv_file_magic_cmd='/usr/bin/file -L'
5365 lt_cv_file_magic_test_file=/shlib/libc.so
5366 ;;
5367
5368cygwin*)
5369 # func_win32_libid is a shell function defined in ltmain.sh
5370 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5371 lt_cv_file_magic_cmd='func_win32_libid'
5372 ;;
5373
5374mingw* | pw32*)
5375 # Base MSYS/MinGW do not provide the 'file' command needed by
ac40fd9e 5376 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5377 # unless we find 'file', for example because we are cross-compiling.
5378 if ( file / ) >/dev/null 2>&1; then
5379 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5380 lt_cv_file_magic_cmd='func_win32_libid'
5381 else
5382 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5383 lt_cv_file_magic_cmd='$OBJDUMP -f'
5384 fi
d9898ee8 5385 ;;
5386
5387darwin* | rhapsody*)
5388 lt_cv_deplibs_check_method=pass_all
5389 ;;
5390
ac40fd9e 5391freebsd* | dragonfly*)
d9898ee8 5392 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5393 case $host_cpu in
5394 i*86 )
5395 # Not sure whether the presence of OpenBSD here was a mistake.
5396 # Let's accept both of them until this is cleared up.
5397 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5398 lt_cv_file_magic_cmd=/usr/bin/file
5399 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5400 ;;
5401 esac
5402 else
5403 lt_cv_deplibs_check_method=pass_all
5404 fi
5405 ;;
5406
5407gnu*)
5408 lt_cv_deplibs_check_method=pass_all
5409 ;;
5410
5411hpux10.20* | hpux11*)
5412 lt_cv_file_magic_cmd=/usr/bin/file
5413 case $host_cpu in
5414 ia64*)
5415 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5416 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5417 ;;
5418 hppa*64*)
5419 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]'
5420 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5421 ;;
5422 *)
5423 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5424 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5425 ;;
5426 esac
5427 ;;
5428
ac40fd9e 5429interix[3-9]*)
d9898ee8 5430 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5431 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5432 ;;
5433
5434irix5* | irix6* | nonstopux*)
5435 case $LD in
5436 *-32|*"-32 ") libmagic=32-bit;;
5437 *-n32|*"-n32 ") libmagic=N32;;
5438 *-64|*"-64 ") libmagic=64-bit;;
5439 *) libmagic=never-match;;
5440 esac
5441 lt_cv_deplibs_check_method=pass_all
5442 ;;
5443
5444# This must be Linux ELF.
ac40fd9e 5445linux* | k*bsd*-gnu)
d9898ee8 5446 lt_cv_deplibs_check_method=pass_all
5447 ;;
5448
5449netbsd*)
5450 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5451 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5452 else
5453 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5454 fi
5455 ;;
5456
5457newos6*)
5458 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5459 lt_cv_file_magic_cmd=/usr/bin/file
5460 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5461 ;;
5462
5463nto-qnx*)
5464 lt_cv_deplibs_check_method=unknown
5465 ;;
5466
5467openbsd*)
5468 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5469 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5470 else
5471 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5472 fi
5473 ;;
5474
5475osf3* | osf4* | osf5*)
5476 lt_cv_deplibs_check_method=pass_all
5477 ;;
5478
ac40fd9e 5479rdos*)
5480 lt_cv_deplibs_check_method=pass_all
5481 ;;
5482
d9898ee8 5483solaris*)
5484 lt_cv_deplibs_check_method=pass_all
5485 ;;
5486
5487sysv4 | sysv4.3*)
5488 case $host_vendor in
5489 motorola)
5490 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]'
5491 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5492 ;;
5493 ncr)
5494 lt_cv_deplibs_check_method=pass_all
5495 ;;
5496 sequent)
5497 lt_cv_file_magic_cmd='/bin/file'
5498 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5499 ;;
5500 sni)
5501 lt_cv_file_magic_cmd='/bin/file'
5502 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5503 lt_cv_file_magic_test_file=/lib/libc.so
5504 ;;
5505 siemens)
5506 lt_cv_deplibs_check_method=pass_all
5507 ;;
5508 pc)
5509 lt_cv_deplibs_check_method=pass_all
5510 ;;
5511 esac
5512 ;;
5513
5514sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5515 lt_cv_deplibs_check_method=pass_all
5516 ;;
5517esac
5518
5519fi
dd184caf 5520{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5521echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
d9898ee8 5522file_magic_cmd=$lt_cv_file_magic_cmd
5523deplibs_check_method=$lt_cv_deplibs_check_method
5524test -z "$deplibs_check_method" && deplibs_check_method=unknown
5525
5526
5527
5528
5529# If no C compiler was specified, use CC.
5530LTCC=${LTCC-"$CC"}
5531
5532# If no C compiler flags were specified, use CFLAGS.
5533LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5534
5535# Allow CC to be a program name with arguments.
5536compiler=$CC
5537
dd184caf 5538# Check whether --enable-libtool-lock was given.
d9898ee8 5539if test "${enable_libtool_lock+set}" = set; then
dd184caf 5540 enableval=$enable_libtool_lock;
5541fi
d9898ee8 5542
d9898ee8 5543test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5544
5545# Some flags need to be propagated to the compiler or linker for good
5546# libtool support.
5547case $host in
5548ia64-*-hpux*)
5549 # Find out which ABI we are using.
5550 echo 'int i;' > conftest.$ac_ext
5551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5552 (eval $ac_compile) 2>&5
5553 ac_status=$?
5554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5555 (exit $ac_status); }; then
5556 case `/usr/bin/file conftest.$ac_objext` in
5557 *ELF-32*)
5558 HPUX_IA64_MODE="32"
5559 ;;
5560 *ELF-64*)
5561 HPUX_IA64_MODE="64"
5562 ;;
5563 esac
5564 fi
5565 rm -rf conftest*
5566 ;;
5567*-*-irix6*)
5568 # Find out which ABI we are using.
ac40fd9e 5569 echo '#line 5569 "configure"' > conftest.$ac_ext
d9898ee8 5570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5571 (eval $ac_compile) 2>&5
5572 ac_status=$?
5573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5574 (exit $ac_status); }; then
5575 if test "$lt_cv_prog_gnu_ld" = yes; then
5576 case `/usr/bin/file conftest.$ac_objext` in
5577 *32-bit*)
5578 LD="${LD-ld} -melf32bsmip"
5579 ;;
5580 *N32*)
5581 LD="${LD-ld} -melf32bmipn32"
5582 ;;
5583 *64-bit*)
5584 LD="${LD-ld} -melf64bmip"
5585 ;;
5586 esac
5587 else
5588 case `/usr/bin/file conftest.$ac_objext` in
5589 *32-bit*)
5590 LD="${LD-ld} -32"
5591 ;;
5592 *N32*)
5593 LD="${LD-ld} -n32"
5594 ;;
5595 *64-bit*)
5596 LD="${LD-ld} -64"
5597 ;;
5598 esac
5599 fi
5600 fi
5601 rm -rf conftest*
5602 ;;
5603
ac40fd9e 5604x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5605s390*-*linux*|sparc*-*linux*)
d9898ee8 5606 # Find out which ABI we are using.
5607 echo 'int i;' > conftest.$ac_ext
5608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5609 (eval $ac_compile) 2>&5
5610 ac_status=$?
5611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5612 (exit $ac_status); }; then
5613 case `/usr/bin/file conftest.o` in
5614 *32-bit*)
5615 case $host in
ac40fd9e 5616 x86_64-*kfreebsd*-gnu)
5617 LD="${LD-ld} -m elf_i386_fbsd"
5618 ;;
d9898ee8 5619 x86_64-*linux*)
5620 LD="${LD-ld} -m elf_i386"
5621 ;;
5622 ppc64-*linux*|powerpc64-*linux*)
5623 LD="${LD-ld} -m elf32ppclinux"
5624 ;;
5625 s390x-*linux*)
5626 LD="${LD-ld} -m elf_s390"
5627 ;;
5628 sparc64-*linux*)
5629 LD="${LD-ld} -m elf32_sparc"
5630 ;;
5631 esac
5632 ;;
5633 *64-bit*)
ac40fd9e 5634 libsuff=64
d9898ee8 5635 case $host in
ac40fd9e 5636 x86_64-*kfreebsd*-gnu)
5637 LD="${LD-ld} -m elf_x86_64_fbsd"
5638 ;;
d9898ee8 5639 x86_64-*linux*)
5640 LD="${LD-ld} -m elf_x86_64"
5641 ;;
5642 ppc*-*linux*|powerpc*-*linux*)
5643 LD="${LD-ld} -m elf64ppc"
5644 ;;
5645 s390*-*linux*)
5646 LD="${LD-ld} -m elf64_s390"
5647 ;;
5648 sparc*-*linux*)
5649 LD="${LD-ld} -m elf64_sparc"
5650 ;;
5651 esac
5652 ;;
5653 esac
5654 fi
5655 rm -rf conftest*
5656 ;;
5657
5658*-*-sco3.2v5*)
5659 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5660 SAVE_CFLAGS="$CFLAGS"
5661 CFLAGS="$CFLAGS -belf"
dd184caf 5662 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5663echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
d9898ee8 5664if test "${lt_cv_cc_needs_belf+set}" = set; then
5665 echo $ECHO_N "(cached) $ECHO_C" >&6
5666else
5667 ac_ext=c
5668ac_cpp='$CPP $CPPFLAGS'
5669ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5670ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5671ac_compiler_gnu=$ac_cv_c_compiler_gnu
5672
5673 cat >conftest.$ac_ext <<_ACEOF
5674/* confdefs.h. */
5675_ACEOF
5676cat confdefs.h >>conftest.$ac_ext
5677cat >>conftest.$ac_ext <<_ACEOF
5678/* end confdefs.h. */
5679
5680int
5681main ()
5682{
5683
5684 ;
5685 return 0;
5686}
5687_ACEOF
5688rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 5689if { (ac_try="$ac_link"
5690case "(($ac_try" in
5691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5692 *) ac_try_echo=$ac_try;;
5693esac
5694eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5695 (eval "$ac_link") 2>conftest.er1
d9898ee8 5696 ac_status=$?
5697 grep -v '^ *+' conftest.er1 >conftest.err
5698 rm -f conftest.er1
5699 cat conftest.err >&5
5700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 5701 (exit $ac_status); } && {
5702 test -z "$ac_c_werror_flag" ||
5703 test ! -s conftest.err
5704 } && test -s conftest$ac_exeext &&
5705 $as_test_x conftest$ac_exeext; then
d9898ee8 5706 lt_cv_cc_needs_belf=yes
5707else
5708 echo "$as_me: failed program was:" >&5
5709sed 's/^/| /' conftest.$ac_ext >&5
5710
dd184caf 5711 lt_cv_cc_needs_belf=no
d9898ee8 5712fi
dd184caf 5713
5714rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 5715 conftest$ac_exeext conftest.$ac_ext
5716 ac_ext=c
5717ac_cpp='$CPP $CPPFLAGS'
5718ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5719ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5720ac_compiler_gnu=$ac_cv_c_compiler_gnu
5721
5722fi
dd184caf 5723{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5724echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
d9898ee8 5725 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5726 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5727 CFLAGS="$SAVE_CFLAGS"
5728 fi
5729 ;;
5730sparc*-*solaris*)
5731 # Find out which ABI we are using.
5732 echo 'int i;' > conftest.$ac_ext
5733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5734 (eval $ac_compile) 2>&5
5735 ac_status=$?
5736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5737 (exit $ac_status); }; then
5738 case `/usr/bin/file conftest.o` in
5739 *64-bit*)
5740 case $lt_cv_prog_gnu_ld in
5741 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5742 *) LD="${LD-ld} -64" ;;
5743 esac
5744 ;;
5745 esac
5746 fi
5747 rm -rf conftest*
5748 ;;
5749
5750
5751esac
5752
5753need_locks="$enable_libtool_lock"
5754
5755
5756
5757for ac_header in dlfcn.h
5758do
5759as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
dd184caf 5760if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5761 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5762echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5763if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 5764 echo $ECHO_N "(cached) $ECHO_C" >&6
5765fi
dd184caf 5766ac_res=`eval echo '${'$as_ac_Header'}'`
5767 { echo "$as_me:$LINENO: result: $ac_res" >&5
5768echo "${ECHO_T}$ac_res" >&6; }
d9898ee8 5769else
5770 # Is the header compilable?
dd184caf 5771{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5772echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
d9898ee8 5773cat >conftest.$ac_ext <<_ACEOF
5774/* confdefs.h. */
5775_ACEOF
5776cat confdefs.h >>conftest.$ac_ext
5777cat >>conftest.$ac_ext <<_ACEOF
5778/* end confdefs.h. */
5779$ac_includes_default
5780#include <$ac_header>
5781_ACEOF
5782rm -f conftest.$ac_objext
dd184caf 5783if { (ac_try="$ac_compile"
5784case "(($ac_try" in
5785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5786 *) ac_try_echo=$ac_try;;
5787esac
5788eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5789 (eval "$ac_compile") 2>conftest.er1
d9898ee8 5790 ac_status=$?
5791 grep -v '^ *+' conftest.er1 >conftest.err
5792 rm -f conftest.er1
5793 cat conftest.err >&5
5794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 5795 (exit $ac_status); } && {
5796 test -z "$ac_c_werror_flag" ||
5797 test ! -s conftest.err
5798 } && test -s conftest.$ac_objext; then
d9898ee8 5799 ac_header_compiler=yes
5800else
5801 echo "$as_me: failed program was:" >&5
5802sed 's/^/| /' conftest.$ac_ext >&5
5803
dd184caf 5804 ac_header_compiler=no
d9898ee8 5805fi
dd184caf 5806
5807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5808{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5809echo "${ECHO_T}$ac_header_compiler" >&6; }
d9898ee8 5810
5811# Is the header present?
dd184caf 5812{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5813echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
d9898ee8 5814cat >conftest.$ac_ext <<_ACEOF
5815/* confdefs.h. */
5816_ACEOF
5817cat confdefs.h >>conftest.$ac_ext
5818cat >>conftest.$ac_ext <<_ACEOF
5819/* end confdefs.h. */
5820#include <$ac_header>
5821_ACEOF
dd184caf 5822if { (ac_try="$ac_cpp conftest.$ac_ext"
5823case "(($ac_try" in
5824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5825 *) ac_try_echo=$ac_try;;
5826esac
5827eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5828 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 5829 ac_status=$?
5830 grep -v '^ *+' conftest.er1 >conftest.err
5831 rm -f conftest.er1
5832 cat conftest.err >&5
5833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 5834 (exit $ac_status); } >/dev/null && {
5835 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5836 test ! -s conftest.err
5837 }; then
d9898ee8 5838 ac_header_preproc=yes
5839else
5840 echo "$as_me: failed program was:" >&5
5841sed 's/^/| /' conftest.$ac_ext >&5
5842
5843 ac_header_preproc=no
5844fi
dd184caf 5845
d9898ee8 5846rm -f conftest.err conftest.$ac_ext
dd184caf 5847{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5848echo "${ECHO_T}$ac_header_preproc" >&6; }
d9898ee8 5849
5850# So? What about this header?
5851case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5852 yes:no: )
5853 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5854echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5855 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5856echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5857 ac_header_preproc=yes
5858 ;;
5859 no:yes:* )
5860 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5861echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5862 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5863echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5864 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5865echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5866 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5867echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5868 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5869echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5870 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5871echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
dd184caf 5872 ( cat <<\_ASBOX
d9898ee8 5873## -------------------------------------------------- ##
5874## Report this to courier-users@lists.sourceforge.net ##
5875## -------------------------------------------------- ##
5876_ASBOX
dd184caf 5877 ) | sed "s/^/$as_me: WARNING: /" >&2
d9898ee8 5878 ;;
5879esac
dd184caf 5880{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5881echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5882if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 5883 echo $ECHO_N "(cached) $ECHO_C" >&6
5884else
5885 eval "$as_ac_Header=\$ac_header_preproc"
5886fi
dd184caf 5887ac_res=`eval echo '${'$as_ac_Header'}'`
5888 { echo "$as_me:$LINENO: result: $ac_res" >&5
5889echo "${ECHO_T}$ac_res" >&6; }
d9898ee8 5890
5891fi
5892if test `eval echo '${'$as_ac_Header'}'` = yes; then
5893 cat >>confdefs.h <<_ACEOF
5894#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5895_ACEOF
5896
5897fi
5898
5899done
5900
5901
5902
5903if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5904 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5905 (test "X$CXX" != "Xg++"))) ; then
dd184caf 5906 ac_ext=cpp
d9898ee8 5907ac_cpp='$CXXCPP $CPPFLAGS'
5908ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5909ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5910ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
dd184caf 5911{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5912echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
d9898ee8 5913if test -z "$CXXCPP"; then
5914 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5915 echo $ECHO_N "(cached) $ECHO_C" >&6
5916else
5917 # Double quotes because CXXCPP needs to be expanded
5918 for CXXCPP in "$CXX -E" "/lib/cpp"
5919 do
5920 ac_preproc_ok=false
5921for ac_cxx_preproc_warn_flag in '' yes
5922do
5923 # Use a header file that comes with gcc, so configuring glibc
5924 # with a fresh cross-compiler works.
5925 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5926 # <limits.h> exists even on freestanding compilers.
5927 # On the NeXT, cc -E runs the code through the compiler's parser,
5928 # not just through cpp. "Syntax error" is here to catch this case.
5929 cat >conftest.$ac_ext <<_ACEOF
5930/* confdefs.h. */
5931_ACEOF
5932cat confdefs.h >>conftest.$ac_ext
5933cat >>conftest.$ac_ext <<_ACEOF
5934/* end confdefs.h. */
5935#ifdef __STDC__
5936# include <limits.h>
5937#else
5938# include <assert.h>
5939#endif
5940 Syntax error
5941_ACEOF
dd184caf 5942if { (ac_try="$ac_cpp conftest.$ac_ext"
5943case "(($ac_try" in
5944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5945 *) ac_try_echo=$ac_try;;
5946esac
5947eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5948 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 5949 ac_status=$?
5950 grep -v '^ *+' conftest.er1 >conftest.err
5951 rm -f conftest.er1
5952 cat conftest.err >&5
5953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 5954 (exit $ac_status); } >/dev/null && {
5955 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5956 test ! -s conftest.err
5957 }; then
d9898ee8 5958 :
5959else
5960 echo "$as_me: failed program was:" >&5
5961sed 's/^/| /' conftest.$ac_ext >&5
5962
5963 # Broken: fails on valid input.
5964continue
5965fi
dd184caf 5966
d9898ee8 5967rm -f conftest.err conftest.$ac_ext
5968
dd184caf 5969 # OK, works on sane cases. Now check whether nonexistent headers
d9898ee8 5970 # can be detected and how.
5971 cat >conftest.$ac_ext <<_ACEOF
5972/* confdefs.h. */
5973_ACEOF
5974cat confdefs.h >>conftest.$ac_ext
5975cat >>conftest.$ac_ext <<_ACEOF
5976/* end confdefs.h. */
5977#include <ac_nonexistent.h>
5978_ACEOF
dd184caf 5979if { (ac_try="$ac_cpp conftest.$ac_ext"
5980case "(($ac_try" in
5981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5982 *) ac_try_echo=$ac_try;;
5983esac
5984eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5985 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 5986 ac_status=$?
5987 grep -v '^ *+' conftest.er1 >conftest.err
5988 rm -f conftest.er1
5989 cat conftest.err >&5
5990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 5991 (exit $ac_status); } >/dev/null && {
5992 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5993 test ! -s conftest.err
5994 }; then
d9898ee8 5995 # Broken: success on invalid input.
5996continue
5997else
5998 echo "$as_me: failed program was:" >&5
5999sed 's/^/| /' conftest.$ac_ext >&5
6000
6001 # Passes both tests.
6002ac_preproc_ok=:
6003break
6004fi
dd184caf 6005
d9898ee8 6006rm -f conftest.err conftest.$ac_ext
6007
6008done
6009# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6010rm -f conftest.err conftest.$ac_ext
6011if $ac_preproc_ok; then
6012 break
6013fi
6014
6015 done
6016 ac_cv_prog_CXXCPP=$CXXCPP
6017
6018fi
6019 CXXCPP=$ac_cv_prog_CXXCPP
6020else
6021 ac_cv_prog_CXXCPP=$CXXCPP
6022fi
dd184caf 6023{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
6024echo "${ECHO_T}$CXXCPP" >&6; }
d9898ee8 6025ac_preproc_ok=false
6026for ac_cxx_preproc_warn_flag in '' yes
6027do
6028 # Use a header file that comes with gcc, so configuring glibc
6029 # with a fresh cross-compiler works.
6030 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6031 # <limits.h> exists even on freestanding compilers.
6032 # On the NeXT, cc -E runs the code through the compiler's parser,
6033 # not just through cpp. "Syntax error" is here to catch this case.
6034 cat >conftest.$ac_ext <<_ACEOF
6035/* confdefs.h. */
6036_ACEOF
6037cat confdefs.h >>conftest.$ac_ext
6038cat >>conftest.$ac_ext <<_ACEOF
6039/* end confdefs.h. */
6040#ifdef __STDC__
6041# include <limits.h>
6042#else
6043# include <assert.h>
6044#endif
6045 Syntax error
6046_ACEOF
dd184caf 6047if { (ac_try="$ac_cpp conftest.$ac_ext"
6048case "(($ac_try" in
6049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6050 *) ac_try_echo=$ac_try;;
6051esac
6052eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6053 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 6054 ac_status=$?
6055 grep -v '^ *+' conftest.er1 >conftest.err
6056 rm -f conftest.er1
6057 cat conftest.err >&5
6058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 6059 (exit $ac_status); } >/dev/null && {
6060 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6061 test ! -s conftest.err
6062 }; then
d9898ee8 6063 :
6064else
6065 echo "$as_me: failed program was:" >&5
6066sed 's/^/| /' conftest.$ac_ext >&5
6067
6068 # Broken: fails on valid input.
6069continue
6070fi
dd184caf 6071
d9898ee8 6072rm -f conftest.err conftest.$ac_ext
6073
dd184caf 6074 # OK, works on sane cases. Now check whether nonexistent headers
d9898ee8 6075 # can be detected and how.
6076 cat >conftest.$ac_ext <<_ACEOF
6077/* confdefs.h. */
6078_ACEOF
6079cat confdefs.h >>conftest.$ac_ext
6080cat >>conftest.$ac_ext <<_ACEOF
6081/* end confdefs.h. */
6082#include <ac_nonexistent.h>
6083_ACEOF
dd184caf 6084if { (ac_try="$ac_cpp conftest.$ac_ext"
6085case "(($ac_try" in
6086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6087 *) ac_try_echo=$ac_try;;
6088esac
6089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6090 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 6091 ac_status=$?
6092 grep -v '^ *+' conftest.er1 >conftest.err
6093 rm -f conftest.er1
6094 cat conftest.err >&5
6095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 6096 (exit $ac_status); } >/dev/null && {
6097 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6098 test ! -s conftest.err
6099 }; then
d9898ee8 6100 # Broken: success on invalid input.
6101continue
6102else
6103 echo "$as_me: failed program was:" >&5
6104sed 's/^/| /' conftest.$ac_ext >&5
6105
6106 # Passes both tests.
6107ac_preproc_ok=:
6108break
6109fi
dd184caf 6110
d9898ee8 6111rm -f conftest.err conftest.$ac_ext
6112
6113done
6114# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6115rm -f conftest.err conftest.$ac_ext
6116if $ac_preproc_ok; then
6117 :
6118else
6119 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6120See \`config.log' for more details." >&5
6121echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6122See \`config.log' for more details." >&2;}
6123 { (exit 1); exit 1; }; }
6124fi
6125
dd184caf 6126ac_ext=cpp
d9898ee8 6127ac_cpp='$CXXCPP $CPPFLAGS'
6128ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6129ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6130ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6131
6132fi
6133
6134
6135ac_ext=f
6136ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6137ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6138ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6139if test -n "$ac_tool_prefix"; then
dd184caf 6140 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
d9898ee8 6141 do
6142 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6143set dummy $ac_tool_prefix$ac_prog; ac_word=$2
dd184caf 6144{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6145echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 6146if test "${ac_cv_prog_F77+set}" = set; then
6147 echo $ECHO_N "(cached) $ECHO_C" >&6
6148else
6149 if test -n "$F77"; then
6150 ac_cv_prog_F77="$F77" # Let the user override the test.
6151else
6152as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6153for as_dir in $PATH
6154do
6155 IFS=$as_save_IFS
6156 test -z "$as_dir" && as_dir=.
6157 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 6158 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 6159 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6160 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6161 break 2
6162 fi
6163done
6164done
dd184caf 6165IFS=$as_save_IFS
d9898ee8 6166
6167fi
6168fi
6169F77=$ac_cv_prog_F77
6170if test -n "$F77"; then
dd184caf 6171 { echo "$as_me:$LINENO: result: $F77" >&5
6172echo "${ECHO_T}$F77" >&6; }
d9898ee8 6173else
dd184caf 6174 { echo "$as_me:$LINENO: result: no" >&5
6175echo "${ECHO_T}no" >&6; }
d9898ee8 6176fi
6177
dd184caf 6178
d9898ee8 6179 test -n "$F77" && break
6180 done
6181fi
6182if test -z "$F77"; then
6183 ac_ct_F77=$F77
dd184caf 6184 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
d9898ee8 6185do
6186 # Extract the first word of "$ac_prog", so it can be a program name with args.
6187set dummy $ac_prog; ac_word=$2
dd184caf 6188{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6189echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 6190if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6191 echo $ECHO_N "(cached) $ECHO_C" >&6
6192else
6193 if test -n "$ac_ct_F77"; then
6194 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6195else
6196as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6197for as_dir in $PATH
6198do
6199 IFS=$as_save_IFS
6200 test -z "$as_dir" && as_dir=.
6201 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 6202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 6203 ac_cv_prog_ac_ct_F77="$ac_prog"
6204 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6205 break 2
6206 fi
6207done
6208done
dd184caf 6209IFS=$as_save_IFS
d9898ee8 6210
6211fi
6212fi
6213ac_ct_F77=$ac_cv_prog_ac_ct_F77
6214if test -n "$ac_ct_F77"; then
dd184caf 6215 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6216echo "${ECHO_T}$ac_ct_F77" >&6; }
d9898ee8 6217else
dd184caf 6218 { echo "$as_me:$LINENO: result: no" >&5
6219echo "${ECHO_T}no" >&6; }
d9898ee8 6220fi
6221
dd184caf 6222
d9898ee8 6223 test -n "$ac_ct_F77" && break
6224done
6225
dd184caf 6226 if test "x$ac_ct_F77" = x; then
6227 F77=""
6228 else
6229 case $cross_compiling:$ac_tool_warned in
6230yes:)
6231{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6232whose name does not start with the host triplet. If you think this
6233configuration is useful to you, please write to autoconf@gnu.org." >&5
6234echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6235whose name does not start with the host triplet. If you think this
6236configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6237ac_tool_warned=yes ;;
6238esac
6239 F77=$ac_ct_F77
6240 fi
d9898ee8 6241fi
6242
6243
6244# Provide some information about the compiler.
dd184caf 6245echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
d9898ee8 6246ac_compiler=`set X $ac_compile; echo $2`
dd184caf 6247{ (ac_try="$ac_compiler --version >&5"
6248case "(($ac_try" in
6249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6250 *) ac_try_echo=$ac_try;;
6251esac
6252eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6253 (eval "$ac_compiler --version >&5") 2>&5
d9898ee8 6254 ac_status=$?
6255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6256 (exit $ac_status); }
dd184caf 6257{ (ac_try="$ac_compiler -v >&5"
6258case "(($ac_try" in
6259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6260 *) ac_try_echo=$ac_try;;
6261esac
6262eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6263 (eval "$ac_compiler -v >&5") 2>&5
d9898ee8 6264 ac_status=$?
6265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6266 (exit $ac_status); }
dd184caf 6267{ (ac_try="$ac_compiler -V >&5"
6268case "(($ac_try" in
6269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6270 *) ac_try_echo=$ac_try;;
6271esac
6272eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6273 (eval "$ac_compiler -V >&5") 2>&5
d9898ee8 6274 ac_status=$?
6275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6276 (exit $ac_status); }
6277rm -f a.out
6278
6279# If we don't use `.F' as extension, the preprocessor is not run on the
6280# input file. (Note that this only needs to work for GNU compilers.)
6281ac_save_ext=$ac_ext
6282ac_ext=F
dd184caf 6283{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6284echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
d9898ee8 6285if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6286 echo $ECHO_N "(cached) $ECHO_C" >&6
6287else
6288 cat >conftest.$ac_ext <<_ACEOF
6289 program main
6290#ifndef __GNUC__
6291 choke me
6292#endif
6293
6294 end
6295_ACEOF
6296rm -f conftest.$ac_objext
dd184caf 6297if { (ac_try="$ac_compile"
6298case "(($ac_try" in
6299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6300 *) ac_try_echo=$ac_try;;
6301esac
6302eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6303 (eval "$ac_compile") 2>conftest.er1
d9898ee8 6304 ac_status=$?
6305 grep -v '^ *+' conftest.er1 >conftest.err
6306 rm -f conftest.er1
6307 cat conftest.err >&5
6308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 6309 (exit $ac_status); } && {
6310 test -z "$ac_f77_werror_flag" ||
6311 test ! -s conftest.err
6312 } && test -s conftest.$ac_objext; then
d9898ee8 6313 ac_compiler_gnu=yes
6314else
6315 echo "$as_me: failed program was:" >&5
6316sed 's/^/| /' conftest.$ac_ext >&5
6317
dd184caf 6318 ac_compiler_gnu=no
d9898ee8 6319fi
dd184caf 6320
6321rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 6322ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6323
6324fi
dd184caf 6325{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6326echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
d9898ee8 6327ac_ext=$ac_save_ext
6328ac_test_FFLAGS=${FFLAGS+set}
6329ac_save_FFLAGS=$FFLAGS
6330FFLAGS=
dd184caf 6331{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6332echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
d9898ee8 6333if test "${ac_cv_prog_f77_g+set}" = set; then
6334 echo $ECHO_N "(cached) $ECHO_C" >&6
6335else
6336 FFLAGS=-g
6337cat >conftest.$ac_ext <<_ACEOF
6338 program main
6339
6340 end
6341_ACEOF
6342rm -f conftest.$ac_objext
dd184caf 6343if { (ac_try="$ac_compile"
6344case "(($ac_try" in
6345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6346 *) ac_try_echo=$ac_try;;
6347esac
6348eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6349 (eval "$ac_compile") 2>conftest.er1
d9898ee8 6350 ac_status=$?
6351 grep -v '^ *+' conftest.er1 >conftest.err
6352 rm -f conftest.er1
6353 cat conftest.err >&5
6354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 6355 (exit $ac_status); } && {
6356 test -z "$ac_f77_werror_flag" ||
6357 test ! -s conftest.err
6358 } && test -s conftest.$ac_objext; then
d9898ee8 6359 ac_cv_prog_f77_g=yes
6360else
6361 echo "$as_me: failed program was:" >&5
6362sed 's/^/| /' conftest.$ac_ext >&5
6363
dd184caf 6364 ac_cv_prog_f77_g=no
d9898ee8 6365fi
dd184caf 6366
6367rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 6368
6369fi
dd184caf 6370{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6371echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
d9898ee8 6372if test "$ac_test_FFLAGS" = set; then
6373 FFLAGS=$ac_save_FFLAGS
6374elif test $ac_cv_prog_f77_g = yes; then
6375 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6376 FFLAGS="-g -O2"
6377 else
6378 FFLAGS="-g"
6379 fi
6380else
6381 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6382 FFLAGS="-O2"
6383 else
6384 FFLAGS=
6385 fi
6386fi
6387
6388G77=`test $ac_compiler_gnu = yes && echo yes`
6389ac_ext=c
6390ac_cpp='$CPP $CPPFLAGS'
6391ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6392ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6393ac_compiler_gnu=$ac_cv_c_compiler_gnu
6394
6395
6396
6397# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6398
6399# find the maximum length of command line arguments
dd184caf 6400{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6401echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
d9898ee8 6402if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6403 echo $ECHO_N "(cached) $ECHO_C" >&6
6404else
6405 i=0
6406 teststring="ABCD"
6407
6408 case $build_os in
6409 msdosdjgpp*)
6410 # On DJGPP, this test can blow up pretty badly due to problems in libc
6411 # (any single argument exceeding 2000 bytes causes a buffer overrun
6412 # during glob expansion). Even if it were fixed, the result of this
6413 # check would be larger than it should be.
6414 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6415 ;;
6416
6417 gnu*)
6418 # Under GNU Hurd, this test is not required because there is
6419 # no limit to the length of command line arguments.
6420 # Libtool will interpret -1 as no limit whatsoever
6421 lt_cv_sys_max_cmd_len=-1;
6422 ;;
6423
6424 cygwin* | mingw*)
6425 # On Win9x/ME, this test blows up -- it succeeds, but takes
6426 # about 5 minutes as the teststring grows exponentially.
6427 # Worse, since 9x/ME are not pre-emptively multitasking,
6428 # you end up with a "frozen" computer, even though with patience
6429 # the test eventually succeeds (with a max line length of 256k).
6430 # Instead, let's just punt: use the minimum linelength reported by
6431 # all of the supported platforms: 8192 (on NT/2K/XP).
6432 lt_cv_sys_max_cmd_len=8192;
6433 ;;
6434
6435 amigaos*)
6436 # On AmigaOS with pdksh, this test takes hours, literally.
6437 # So we just punt and use a minimum line length of 8192.
6438 lt_cv_sys_max_cmd_len=8192;
6439 ;;
6440
6441 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6442 # This has been around since 386BSD, at least. Likely further.
6443 if test -x /sbin/sysctl; then
6444 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6445 elif test -x /usr/sbin/sysctl; then
6446 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6447 else
6448 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6449 fi
6450 # And add a safety zone
6451 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6452 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6453 ;;
6454
6455 interix*)
6456 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6457 lt_cv_sys_max_cmd_len=196608
6458 ;;
6459
6460 osf*)
6461 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6462 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6463 # nice to cause kernel panics so lets avoid the loop below.
6464 # First set a reasonable default.
6465 lt_cv_sys_max_cmd_len=16384
6466 #
6467 if test -x /sbin/sysconfig; then
6468 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6469 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6470 esac
6471 fi
6472 ;;
6473 sco3.2v5*)
6474 lt_cv_sys_max_cmd_len=102400
6475 ;;
6476 sysv5* | sco5v6* | sysv4.2uw2*)
6477 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6478 if test -n "$kargmax"; then
6479 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6480 else
6481 lt_cv_sys_max_cmd_len=32768
6482 fi
6483 ;;
6484 *)
ac40fd9e 6485 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6486 if test -n "$lt_cv_sys_max_cmd_len"; then
6487 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6488 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6489 else
6490 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6491 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
d9898ee8 6492 = "XX$teststring") >/dev/null 2>&1 &&
ac40fd9e 6493 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6494 lt_cv_sys_max_cmd_len=$new_result &&
6495 test $i != 17 # 1/2 MB should be enough
6496 do
6497 i=`expr $i + 1`
6498 teststring=$teststring$teststring
6499 done
6500 teststring=
6501 # Add a significant safety factor because C++ compilers can tack on massive
6502 # amounts of additional arguments before passing them to the linker.
6503 # It appears as though 1/2 is a usable value.
6504 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6505 fi
d9898ee8 6506 ;;
6507 esac
6508
6509fi
6510
6511if test -n $lt_cv_sys_max_cmd_len ; then
dd184caf 6512 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6513echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
d9898ee8 6514else
dd184caf 6515 { echo "$as_me:$LINENO: result: none" >&5
6516echo "${ECHO_T}none" >&6; }
d9898ee8 6517fi
6518
6519
6520
6521
ac40fd9e 6522
d9898ee8 6523# Check for command to grab the raw symbol name followed by C symbol from nm.
dd184caf 6524{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6525echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
d9898ee8 6526if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6527 echo $ECHO_N "(cached) $ECHO_C" >&6
6528else
6529
6530# These are sane defaults that work on at least a few old systems.
6531# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6532
6533# Character class describing NM global symbol codes.
6534symcode='[BCDEGRST]'
6535
6536# Regexp to match symbols that can be accessed directly from C.
6537sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6538
6539# Transform an extracted symbol line into a proper C declaration
6540lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6541
6542# Transform an extracted symbol line into symbol name and symbol address
6543lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6544
6545# Define system-specific variables.
6546case $host_os in
6547aix*)
6548 symcode='[BCDT]'
6549 ;;
6550cygwin* | mingw* | pw32*)
6551 symcode='[ABCDGISTW]'
6552 ;;
6553hpux*) # Its linker distinguishes data from code symbols
6554 if test "$host_cpu" = ia64; then
6555 symcode='[ABCDEGRST]'
6556 fi
6557 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6558 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6559 ;;
ac40fd9e 6560linux* | k*bsd*-gnu)
d9898ee8 6561 if test "$host_cpu" = ia64; then
6562 symcode='[ABCDGIRSTW]'
6563 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6564 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6565 fi
6566 ;;
6567irix* | nonstopux*)
6568 symcode='[BCDEGRST]'
6569 ;;
6570osf*)
6571 symcode='[BCDEGQRST]'
6572 ;;
6573solaris*)
6574 symcode='[BDRT]'
6575 ;;
6576sco3.2v5*)
6577 symcode='[DT]'
6578 ;;
6579sysv4.2uw2*)
6580 symcode='[DT]'
6581 ;;
6582sysv5* | sco5v6* | unixware* | OpenUNIX*)
6583 symcode='[ABDT]'
6584 ;;
6585sysv4)
6586 symcode='[DFNSTU]'
6587 ;;
6588esac
6589
6590# Handle CRLF in mingw tool chain
6591opt_cr=
6592case $build_os in
6593mingw*)
6594 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6595 ;;
6596esac
6597
6598# If we're using GNU nm, then use its standard symbol codes.
6599case `$NM -V 2>&1` in
6600*GNU* | *'with BFD'*)
6601 symcode='[ABCDGIRSTW]' ;;
6602esac
6603
6604# Try without a prefix undercore, then with it.
6605for ac_symprfx in "" "_"; do
6606
6607 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6608 symxfrm="\\1 $ac_symprfx\\2 \\2"
6609
6610 # Write the raw and C identifiers.
6611 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6612
6613 # Check to see that the pipe works correctly.
6614 pipe_works=no
6615
6616 rm -f conftest*
6617 cat > conftest.$ac_ext <<EOF
6618#ifdef __cplusplus
6619extern "C" {
6620#endif
6621char nm_test_var;
6622void nm_test_func(){}
6623#ifdef __cplusplus
6624}
6625#endif
6626int main(){nm_test_var='a';nm_test_func();return(0);}
6627EOF
6628
6629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6630 (eval $ac_compile) 2>&5
6631 ac_status=$?
6632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6633 (exit $ac_status); }; then
6634 # Now try to grab the symbols.
6635 nlist=conftest.nm
6636 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6637 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6638 ac_status=$?
6639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6640 (exit $ac_status); } && test -s "$nlist"; then
6641 # Try sorting and uniquifying the output.
6642 if sort "$nlist" | uniq > "$nlist"T; then
6643 mv -f "$nlist"T "$nlist"
6644 else
6645 rm -f "$nlist"T
6646 fi
6647
6648 # Make sure that we snagged all the symbols we need.
6649 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6650 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6651 cat <<EOF > conftest.$ac_ext
6652#ifdef __cplusplus
6653extern "C" {
6654#endif
6655
6656EOF
6657 # Now generate the symbol file.
6658 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6659
6660 cat <<EOF >> conftest.$ac_ext
6661#if defined (__STDC__) && __STDC__
6662# define lt_ptr_t void *
6663#else
6664# define lt_ptr_t char *
6665# define const
6666#endif
6667
6668/* The mapping between symbol names and symbols. */
6669const struct {
6670 const char *name;
6671 lt_ptr_t address;
6672}
6673lt_preloaded_symbols[] =
6674{
6675EOF
6676 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6677 cat <<\EOF >> conftest.$ac_ext
6678 {0, (lt_ptr_t) 0}
6679};
6680
6681#ifdef __cplusplus
6682}
6683#endif
6684EOF
6685 # Now try linking the two files.
6686 mv conftest.$ac_objext conftstm.$ac_objext
6687 lt_save_LIBS="$LIBS"
6688 lt_save_CFLAGS="$CFLAGS"
6689 LIBS="conftstm.$ac_objext"
6690 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6691 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6692 (eval $ac_link) 2>&5
6693 ac_status=$?
6694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6695 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6696 pipe_works=yes
6697 fi
6698 LIBS="$lt_save_LIBS"
6699 CFLAGS="$lt_save_CFLAGS"
6700 else
6701 echo "cannot find nm_test_func in $nlist" >&5
6702 fi
6703 else
6704 echo "cannot find nm_test_var in $nlist" >&5
6705 fi
6706 else
6707 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6708 fi
6709 else
6710 echo "$progname: failed program was:" >&5
6711 cat conftest.$ac_ext >&5
6712 fi
6713 rm -f conftest* conftst*
6714
6715 # Do not use the global_symbol_pipe unless it works.
6716 if test "$pipe_works" = yes; then
6717 break
6718 else
6719 lt_cv_sys_global_symbol_pipe=
6720 fi
6721done
6722
6723fi
6724
6725if test -z "$lt_cv_sys_global_symbol_pipe"; then
6726 lt_cv_sys_global_symbol_to_cdecl=
6727fi
6728if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
dd184caf 6729 { echo "$as_me:$LINENO: result: failed" >&5
6730echo "${ECHO_T}failed" >&6; }
d9898ee8 6731else
dd184caf 6732 { echo "$as_me:$LINENO: result: ok" >&5
6733echo "${ECHO_T}ok" >&6; }
d9898ee8 6734fi
6735
dd184caf 6736{ echo "$as_me:$LINENO: checking for objdir" >&5
6737echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
d9898ee8 6738if test "${lt_cv_objdir+set}" = set; then
6739 echo $ECHO_N "(cached) $ECHO_C" >&6
6740else
6741 rm -f .libs 2>/dev/null
6742mkdir .libs 2>/dev/null
6743if test -d .libs; then
6744 lt_cv_objdir=.libs
6745else
6746 # MS-DOS does not allow filenames that begin with a dot.
6747 lt_cv_objdir=_libs
6748fi
6749rmdir .libs 2>/dev/null
6750fi
dd184caf 6751{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6752echo "${ECHO_T}$lt_cv_objdir" >&6; }
d9898ee8 6753objdir=$lt_cv_objdir
6754
6755
6756
6757
6758
6759case $host_os in
6760aix3*)
6761 # AIX sometimes has problems with the GCC collect2 program. For some
6762 # reason, if we set the COLLECT_NAMES environment variable, the problems
6763 # vanish in a puff of smoke.
6764 if test "X${COLLECT_NAMES+set}" != Xset; then
6765 COLLECT_NAMES=
6766 export COLLECT_NAMES
6767 fi
6768 ;;
6769esac
6770
6771# Sed substitution that helps us do robust quoting. It backslashifies
6772# metacharacters that are still active within double-quoted strings.
6773Xsed='sed -e 1s/^X//'
6774sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6775
6776# Same as above, but do not quote variable references.
6777double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6778
6779# Sed substitution to delay expansion of an escaped shell variable in a
6780# double_quote_subst'ed string.
6781delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6782
6783# Sed substitution to avoid accidental globbing in evaled expressions
6784no_glob_subst='s/\*/\\\*/g'
6785
6786# Constants:
6787rm="rm -f"
6788
6789# Global variables:
6790default_ofile=libtool
6791can_build_shared=yes
6792
6793# All known linkers require a `.a' archive for static linking (except MSVC,
6794# which needs '.lib').
6795libext=a
6796ltmain="$ac_aux_dir/ltmain.sh"
6797ofile="$default_ofile"
6798with_gnu_ld="$lt_cv_prog_gnu_ld"
6799
6800if test -n "$ac_tool_prefix"; then
6801 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6802set dummy ${ac_tool_prefix}ar; ac_word=$2
dd184caf 6803{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6804echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 6805if test "${ac_cv_prog_AR+set}" = set; then
6806 echo $ECHO_N "(cached) $ECHO_C" >&6
6807else
6808 if test -n "$AR"; then
6809 ac_cv_prog_AR="$AR" # Let the user override the test.
6810else
6811as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6812for as_dir in $PATH
6813do
6814 IFS=$as_save_IFS
6815 test -z "$as_dir" && as_dir=.
6816 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 6817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 6818 ac_cv_prog_AR="${ac_tool_prefix}ar"
6819 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6820 break 2
6821 fi
6822done
6823done
dd184caf 6824IFS=$as_save_IFS
d9898ee8 6825
6826fi
6827fi
6828AR=$ac_cv_prog_AR
6829if test -n "$AR"; then
dd184caf 6830 { echo "$as_me:$LINENO: result: $AR" >&5
6831echo "${ECHO_T}$AR" >&6; }
d9898ee8 6832else
dd184caf 6833 { echo "$as_me:$LINENO: result: no" >&5
6834echo "${ECHO_T}no" >&6; }
d9898ee8 6835fi
6836
dd184caf 6837
d9898ee8 6838fi
6839if test -z "$ac_cv_prog_AR"; then
6840 ac_ct_AR=$AR
6841 # Extract the first word of "ar", so it can be a program name with args.
6842set dummy ar; ac_word=$2
dd184caf 6843{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6844echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 6845if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6846 echo $ECHO_N "(cached) $ECHO_C" >&6
6847else
6848 if test -n "$ac_ct_AR"; then
6849 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6850else
6851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6852for as_dir in $PATH
6853do
6854 IFS=$as_save_IFS
6855 test -z "$as_dir" && as_dir=.
6856 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 6857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 6858 ac_cv_prog_ac_ct_AR="ar"
6859 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6860 break 2
6861 fi
6862done
6863done
dd184caf 6864IFS=$as_save_IFS
d9898ee8 6865
d9898ee8 6866fi
6867fi
6868ac_ct_AR=$ac_cv_prog_ac_ct_AR
6869if test -n "$ac_ct_AR"; then
dd184caf 6870 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6871echo "${ECHO_T}$ac_ct_AR" >&6; }
d9898ee8 6872else
dd184caf 6873 { echo "$as_me:$LINENO: result: no" >&5
6874echo "${ECHO_T}no" >&6; }
d9898ee8 6875fi
6876
dd184caf 6877 if test "x$ac_ct_AR" = x; then
6878 AR="false"
6879 else
6880 case $cross_compiling:$ac_tool_warned in
6881yes:)
6882{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6883whose name does not start with the host triplet. If you think this
6884configuration is useful to you, please write to autoconf@gnu.org." >&5
6885echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6886whose name does not start with the host triplet. If you think this
6887configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6888ac_tool_warned=yes ;;
6889esac
6890 AR=$ac_ct_AR
6891 fi
d9898ee8 6892else
6893 AR="$ac_cv_prog_AR"
6894fi
6895
6896if test -n "$ac_tool_prefix"; then
6897 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6898set dummy ${ac_tool_prefix}ranlib; ac_word=$2
dd184caf 6899{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6900echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 6901if test "${ac_cv_prog_RANLIB+set}" = set; then
6902 echo $ECHO_N "(cached) $ECHO_C" >&6
6903else
6904 if test -n "$RANLIB"; then
6905 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6906else
6907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6908for as_dir in $PATH
6909do
6910 IFS=$as_save_IFS
6911 test -z "$as_dir" && as_dir=.
6912 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 6913 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 6914 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6915 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6916 break 2
6917 fi
6918done
6919done
dd184caf 6920IFS=$as_save_IFS
d9898ee8 6921
6922fi
6923fi
6924RANLIB=$ac_cv_prog_RANLIB
6925if test -n "$RANLIB"; then
dd184caf 6926 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6927echo "${ECHO_T}$RANLIB" >&6; }
d9898ee8 6928else
dd184caf 6929 { echo "$as_me:$LINENO: result: no" >&5
6930echo "${ECHO_T}no" >&6; }
d9898ee8 6931fi
6932
dd184caf 6933
d9898ee8 6934fi
6935if test -z "$ac_cv_prog_RANLIB"; then
6936 ac_ct_RANLIB=$RANLIB
6937 # Extract the first word of "ranlib", so it can be a program name with args.
6938set dummy ranlib; ac_word=$2
dd184caf 6939{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6940echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 6941if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6942 echo $ECHO_N "(cached) $ECHO_C" >&6
6943else
6944 if test -n "$ac_ct_RANLIB"; then
6945 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6946else
6947as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6948for as_dir in $PATH
6949do
6950 IFS=$as_save_IFS
6951 test -z "$as_dir" && as_dir=.
6952 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 6953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 6954 ac_cv_prog_ac_ct_RANLIB="ranlib"
6955 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6956 break 2
6957 fi
6958done
6959done
dd184caf 6960IFS=$as_save_IFS
d9898ee8 6961
d9898ee8 6962fi
6963fi
6964ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6965if test -n "$ac_ct_RANLIB"; then
dd184caf 6966 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6967echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
d9898ee8 6968else
dd184caf 6969 { echo "$as_me:$LINENO: result: no" >&5
6970echo "${ECHO_T}no" >&6; }
d9898ee8 6971fi
6972
dd184caf 6973 if test "x$ac_ct_RANLIB" = x; then
6974 RANLIB=":"
6975 else
6976 case $cross_compiling:$ac_tool_warned in
6977yes:)
6978{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6979whose name does not start with the host triplet. If you think this
6980configuration is useful to you, please write to autoconf@gnu.org." >&5
6981echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6982whose name does not start with the host triplet. If you think this
6983configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6984ac_tool_warned=yes ;;
6985esac
6986 RANLIB=$ac_ct_RANLIB
6987 fi
d9898ee8 6988else
6989 RANLIB="$ac_cv_prog_RANLIB"
6990fi
6991
6992if test -n "$ac_tool_prefix"; then
6993 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6994set dummy ${ac_tool_prefix}strip; ac_word=$2
dd184caf 6995{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6996echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 6997if test "${ac_cv_prog_STRIP+set}" = set; then
6998 echo $ECHO_N "(cached) $ECHO_C" >&6
6999else
7000 if test -n "$STRIP"; then
7001 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7002else
7003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7004for as_dir in $PATH
7005do
7006 IFS=$as_save_IFS
7007 test -z "$as_dir" && as_dir=.
7008 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 7009 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 7010 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7011 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7012 break 2
7013 fi
7014done
7015done
dd184caf 7016IFS=$as_save_IFS
d9898ee8 7017
7018fi
7019fi
7020STRIP=$ac_cv_prog_STRIP
7021if test -n "$STRIP"; then
dd184caf 7022 { echo "$as_me:$LINENO: result: $STRIP" >&5
7023echo "${ECHO_T}$STRIP" >&6; }
d9898ee8 7024else
dd184caf 7025 { echo "$as_me:$LINENO: result: no" >&5
7026echo "${ECHO_T}no" >&6; }
d9898ee8 7027fi
7028
dd184caf 7029
d9898ee8 7030fi
7031if test -z "$ac_cv_prog_STRIP"; then
7032 ac_ct_STRIP=$STRIP
7033 # Extract the first word of "strip", so it can be a program name with args.
7034set dummy strip; ac_word=$2
dd184caf 7035{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7036echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 7037if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7038 echo $ECHO_N "(cached) $ECHO_C" >&6
7039else
7040 if test -n "$ac_ct_STRIP"; then
7041 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7042else
7043as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7044for as_dir in $PATH
7045do
7046 IFS=$as_save_IFS
7047 test -z "$as_dir" && as_dir=.
7048 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 7049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 7050 ac_cv_prog_ac_ct_STRIP="strip"
7051 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7052 break 2
7053 fi
7054done
7055done
dd184caf 7056IFS=$as_save_IFS
d9898ee8 7057
d9898ee8 7058fi
7059fi
7060ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7061if test -n "$ac_ct_STRIP"; then
dd184caf 7062 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7063echo "${ECHO_T}$ac_ct_STRIP" >&6; }
d9898ee8 7064else
dd184caf 7065 { echo "$as_me:$LINENO: result: no" >&5
7066echo "${ECHO_T}no" >&6; }
d9898ee8 7067fi
7068
dd184caf 7069 if test "x$ac_ct_STRIP" = x; then
7070 STRIP=":"
7071 else
7072 case $cross_compiling:$ac_tool_warned in
7073yes:)
7074{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7075whose name does not start with the host triplet. If you think this
7076configuration is useful to you, please write to autoconf@gnu.org." >&5
7077echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7078whose name does not start with the host triplet. If you think this
7079configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7080ac_tool_warned=yes ;;
7081esac
7082 STRIP=$ac_ct_STRIP
7083 fi
d9898ee8 7084else
7085 STRIP="$ac_cv_prog_STRIP"
7086fi
7087
7088
7089old_CC="$CC"
7090old_CFLAGS="$CFLAGS"
7091
7092# Set sane defaults for various variables
7093test -z "$AR" && AR=ar
7094test -z "$AR_FLAGS" && AR_FLAGS=cru
7095test -z "$AS" && AS=as
7096test -z "$CC" && CC=cc
7097test -z "$LTCC" && LTCC=$CC
7098test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7099test -z "$DLLTOOL" && DLLTOOL=dlltool
7100test -z "$LD" && LD=ld
7101test -z "$LN_S" && LN_S="ln -s"
7102test -z "$MAGIC_CMD" && MAGIC_CMD=file
7103test -z "$NM" && NM=nm
7104test -z "$SED" && SED=sed
7105test -z "$OBJDUMP" && OBJDUMP=objdump
7106test -z "$RANLIB" && RANLIB=:
7107test -z "$STRIP" && STRIP=:
7108test -z "$ac_objext" && ac_objext=o
7109
7110# Determine commands to create old-style static archives.
ac40fd9e 7111old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
d9898ee8 7112old_postinstall_cmds='chmod 644 $oldlib'
7113old_postuninstall_cmds=
7114
7115if test -n "$RANLIB"; then
7116 case $host_os in
7117 openbsd*)
7118 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7119 ;;
7120 *)
7121 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7122 ;;
7123 esac
7124 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7125fi
7126
7127for cc_temp in $compiler""; do
7128 case $cc_temp in
7129 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7130 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7131 \-*) ;;
7132 *) break;;
7133 esac
7134done
7135cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7136
7137
7138# Only perform the check for file, if the check method requires it
7139case $deplibs_check_method in
7140file_magic*)
7141 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
dd184caf 7142 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7143echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
d9898ee8 7144if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7145 echo $ECHO_N "(cached) $ECHO_C" >&6
7146else
7147 case $MAGIC_CMD in
7148[\\/*] | ?:[\\/]*)
7149 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7150 ;;
7151*)
7152 lt_save_MAGIC_CMD="$MAGIC_CMD"
7153 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7154 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7155 for ac_dir in $ac_dummy; do
7156 IFS="$lt_save_ifs"
7157 test -z "$ac_dir" && ac_dir=.
7158 if test -f $ac_dir/${ac_tool_prefix}file; then
7159 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7160 if test -n "$file_magic_test_file"; then
7161 case $deplibs_check_method in
7162 "file_magic "*)
7163 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7164 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7165 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7166 $EGREP "$file_magic_regex" > /dev/null; then
7167 :
7168 else
7169 cat <<EOF 1>&2
7170
7171*** Warning: the command libtool uses to detect shared libraries,
7172*** $file_magic_cmd, produces output that libtool cannot recognize.
7173*** The result is that libtool may fail to recognize shared libraries
7174*** as such. This will affect the creation of libtool libraries that
7175*** depend on shared libraries, but programs linked with such libtool
7176*** libraries will work regardless of this problem. Nevertheless, you
7177*** may want to report the problem to your system manager and/or to
7178*** bug-libtool@gnu.org
7179
7180EOF
7181 fi ;;
7182 esac
7183 fi
7184 break
7185 fi
7186 done
7187 IFS="$lt_save_ifs"
7188 MAGIC_CMD="$lt_save_MAGIC_CMD"
7189 ;;
7190esac
7191fi
7192
7193MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7194if test -n "$MAGIC_CMD"; then
dd184caf 7195 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7196echo "${ECHO_T}$MAGIC_CMD" >&6; }
d9898ee8 7197else
dd184caf 7198 { echo "$as_me:$LINENO: result: no" >&5
7199echo "${ECHO_T}no" >&6; }
d9898ee8 7200fi
7201
7202if test -z "$lt_cv_path_MAGIC_CMD"; then
7203 if test -n "$ac_tool_prefix"; then
dd184caf 7204 { echo "$as_me:$LINENO: checking for file" >&5
7205echo $ECHO_N "checking for file... $ECHO_C" >&6; }
d9898ee8 7206if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7207 echo $ECHO_N "(cached) $ECHO_C" >&6
7208else
7209 case $MAGIC_CMD in
7210[\\/*] | ?:[\\/]*)
7211 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7212 ;;
7213*)
7214 lt_save_MAGIC_CMD="$MAGIC_CMD"
7215 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7216 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7217 for ac_dir in $ac_dummy; do
7218 IFS="$lt_save_ifs"
7219 test -z "$ac_dir" && ac_dir=.
7220 if test -f $ac_dir/file; then
7221 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7222 if test -n "$file_magic_test_file"; then
7223 case $deplibs_check_method in
7224 "file_magic "*)
7225 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7226 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7227 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7228 $EGREP "$file_magic_regex" > /dev/null; then
7229 :
7230 else
7231 cat <<EOF 1>&2
7232
7233*** Warning: the command libtool uses to detect shared libraries,
7234*** $file_magic_cmd, produces output that libtool cannot recognize.
7235*** The result is that libtool may fail to recognize shared libraries
7236*** as such. This will affect the creation of libtool libraries that
7237*** depend on shared libraries, but programs linked with such libtool
7238*** libraries will work regardless of this problem. Nevertheless, you
7239*** may want to report the problem to your system manager and/or to
7240*** bug-libtool@gnu.org
7241
7242EOF
7243 fi ;;
7244 esac
7245 fi
7246 break
7247 fi
7248 done
7249 IFS="$lt_save_ifs"
7250 MAGIC_CMD="$lt_save_MAGIC_CMD"
7251 ;;
7252esac
7253fi
7254
7255MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7256if test -n "$MAGIC_CMD"; then
dd184caf 7257 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7258echo "${ECHO_T}$MAGIC_CMD" >&6; }
d9898ee8 7259else
dd184caf 7260 { echo "$as_me:$LINENO: result: no" >&5
7261echo "${ECHO_T}no" >&6; }
d9898ee8 7262fi
7263
7264 else
7265 MAGIC_CMD=:
7266 fi
7267fi
7268
7269 fi
7270 ;;
7271esac
7272
7273enable_dlopen=no
7274enable_win32_dll=no
7275
dd184caf 7276# Check whether --enable-libtool-lock was given.
d9898ee8 7277if test "${enable_libtool_lock+set}" = set; then
dd184caf 7278 enableval=$enable_libtool_lock;
7279fi
d9898ee8 7280
d9898ee8 7281test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7282
7283
dd184caf 7284# Check whether --with-pic was given.
d9898ee8 7285if test "${with_pic+set}" = set; then
dd184caf 7286 withval=$with_pic; pic_mode="$withval"
d9898ee8 7287else
7288 pic_mode=default
dd184caf 7289fi
7290
d9898ee8 7291test -z "$pic_mode" && pic_mode=default
7292
7293# Use C for the default configuration in the libtool script
7294tagname=
7295lt_save_CC="$CC"
7296ac_ext=c
7297ac_cpp='$CPP $CPPFLAGS'
7298ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7299ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7300ac_compiler_gnu=$ac_cv_c_compiler_gnu
7301
7302
7303# Source file extension for C test sources.
7304ac_ext=c
7305
7306# Object file extension for compiled C test sources.
7307objext=o
7308objext=$objext
7309
7310# Code to be used in simple compile tests
ac40fd9e 7311lt_simple_compile_test_code="int some_variable = 0;"
d9898ee8 7312
7313# Code to be used in simple link tests
ac40fd9e 7314lt_simple_link_test_code='int main(){return(0);}'
d9898ee8 7315
7316
7317# If no C compiler was specified, use CC.
7318LTCC=${LTCC-"$CC"}
7319
7320# If no C compiler flags were specified, use CFLAGS.
7321LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7322
7323# Allow CC to be a program name with arguments.
7324compiler=$CC
7325
7326
7327# save warnings/boilerplate of simple test code
7328ac_outfile=conftest.$ac_objext
ac40fd9e 7329echo "$lt_simple_compile_test_code" >conftest.$ac_ext
d9898ee8 7330eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7331_lt_compiler_boilerplate=`cat conftest.err`
7332$rm conftest*
7333
7334ac_outfile=conftest.$ac_objext
ac40fd9e 7335echo "$lt_simple_link_test_code" >conftest.$ac_ext
d9898ee8 7336eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7337_lt_linker_boilerplate=`cat conftest.err`
7338$rm conftest*
7339
7340
7341
7342lt_prog_compiler_no_builtin_flag=
7343
7344if test "$GCC" = yes; then
7345 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7346
7347
dd184caf 7348{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7349echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
d9898ee8 7350if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7351 echo $ECHO_N "(cached) $ECHO_C" >&6
7352else
7353 lt_cv_prog_compiler_rtti_exceptions=no
7354 ac_outfile=conftest.$ac_objext
ac40fd9e 7355 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 7356 lt_compiler_flag="-fno-rtti -fno-exceptions"
7357 # Insert the option either (1) after the last *FLAGS variable, or
7358 # (2) before a word containing "conftest.", or (3) at the end.
7359 # Note that $ac_compile itself does not contain backslashes and begins
7360 # with a dollar sign (not a hyphen), so the echo should work correctly.
7361 # The option is referenced via a variable to avoid confusing sed.
7362 lt_compile=`echo "$ac_compile" | $SED \
7363 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7364 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7365 -e 's:$: $lt_compiler_flag:'`
ac40fd9e 7366 (eval echo "\"\$as_me:7366: $lt_compile\"" >&5)
d9898ee8 7367 (eval "$lt_compile" 2>conftest.err)
7368 ac_status=$?
7369 cat conftest.err >&5
ac40fd9e 7370 echo "$as_me:7370: \$? = $ac_status" >&5
d9898ee8 7371 if (exit $ac_status) && test -s "$ac_outfile"; then
7372 # The compiler can only warn and ignore the option if not recognized
7373 # So say no if there are warnings other than the usual output.
7374 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7375 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7376 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7377 lt_cv_prog_compiler_rtti_exceptions=yes
7378 fi
7379 fi
7380 $rm conftest*
7381
7382fi
dd184caf 7383{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7384echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
d9898ee8 7385
7386if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7387 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7388else
7389 :
7390fi
7391
7392fi
7393
7394lt_prog_compiler_wl=
7395lt_prog_compiler_pic=
7396lt_prog_compiler_static=
7397
dd184caf 7398{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7399echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
d9898ee8 7400
7401 if test "$GCC" = yes; then
7402 lt_prog_compiler_wl='-Wl,'
7403 lt_prog_compiler_static='-static'
7404
7405 case $host_os in
7406 aix*)
7407 # All AIX code is PIC.
7408 if test "$host_cpu" = ia64; then
7409 # AIX 5 now supports IA64 processor
7410 lt_prog_compiler_static='-Bstatic'
7411 fi
7412 ;;
7413
7414 amigaos*)
7415 # FIXME: we need at least 68020 code to build shared libraries, but
7416 # adding the `-m68020' flag to GCC prevents building anything better,
7417 # like `-m68040'.
7418 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7419 ;;
7420
ac40fd9e 7421 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
d9898ee8 7422 # PIC is the default for these OSes.
7423 ;;
7424
ac40fd9e 7425 mingw* | cygwin* | pw32* | os2*)
d9898ee8 7426 # This hack is so that the source file can tell whether it is being
7427 # built for inclusion in a dll (and should export symbols for example).
ac40fd9e 7428 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7429 # (--disable-auto-import) libraries
d9898ee8 7430 lt_prog_compiler_pic='-DDLL_EXPORT'
7431 ;;
7432
7433 darwin* | rhapsody*)
7434 # PIC is the default on this platform
7435 # Common symbols not allowed in MH_DYLIB files
7436 lt_prog_compiler_pic='-fno-common'
7437 ;;
7438
ac40fd9e 7439 interix[3-9]*)
d9898ee8 7440 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7441 # Instead, we relocate shared libraries at runtime.
7442 ;;
7443
7444 msdosdjgpp*)
7445 # Just because we use GCC doesn't mean we suddenly get shared libraries
7446 # on systems that don't support them.
7447 lt_prog_compiler_can_build_shared=no
7448 enable_shared=no
7449 ;;
7450
7451 sysv4*MP*)
7452 if test -d /usr/nec; then
7453 lt_prog_compiler_pic=-Kconform_pic
7454 fi
7455 ;;
7456
7457 hpux*)
7458 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7459 # not for PA HP-UX.
7460 case $host_cpu in
7461 hppa*64*|ia64*)
7462 # +Z the default
7463 ;;
7464 *)
7465 lt_prog_compiler_pic='-fPIC'
7466 ;;
7467 esac
7468 ;;
7469
7470 *)
7471 lt_prog_compiler_pic='-fPIC'
7472 ;;
7473 esac
7474 else
7475 # PORTME Check for flag to pass linker flags through the system compiler.
7476 case $host_os in
7477 aix*)
7478 lt_prog_compiler_wl='-Wl,'
7479 if test "$host_cpu" = ia64; then
7480 # AIX 5 now supports IA64 processor
7481 lt_prog_compiler_static='-Bstatic'
7482 else
7483 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7484 fi
7485 ;;
7486 darwin*)
7487 # PIC is the default on this platform
7488 # Common symbols not allowed in MH_DYLIB files
7489 case $cc_basename in
7490 xlc*)
7491 lt_prog_compiler_pic='-qnocommon'
7492 lt_prog_compiler_wl='-Wl,'
7493 ;;
7494 esac
7495 ;;
7496
ac40fd9e 7497 mingw* | cygwin* | pw32* | os2*)
d9898ee8 7498 # This hack is so that the source file can tell whether it is being
7499 # built for inclusion in a dll (and should export symbols for example).
7500 lt_prog_compiler_pic='-DDLL_EXPORT'
7501 ;;
7502
7503 hpux9* | hpux10* | hpux11*)
7504 lt_prog_compiler_wl='-Wl,'
7505 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7506 # not for PA HP-UX.
7507 case $host_cpu in
7508 hppa*64*|ia64*)
7509 # +Z the default
7510 ;;
7511 *)
7512 lt_prog_compiler_pic='+Z'
7513 ;;
7514 esac
7515 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7516 lt_prog_compiler_static='${wl}-a ${wl}archive'
7517 ;;
7518
7519 irix5* | irix6* | nonstopux*)
7520 lt_prog_compiler_wl='-Wl,'
7521 # PIC (with -KPIC) is the default.
7522 lt_prog_compiler_static='-non_shared'
7523 ;;
7524
7525 newsos6)
7526 lt_prog_compiler_pic='-KPIC'
7527 lt_prog_compiler_static='-Bstatic'
7528 ;;
7529
ac40fd9e 7530 linux* | k*bsd*-gnu)
d9898ee8 7531 case $cc_basename in
7532 icc* | ecc*)
7533 lt_prog_compiler_wl='-Wl,'
7534 lt_prog_compiler_pic='-KPIC'
7535 lt_prog_compiler_static='-static'
7536 ;;
7537 pgcc* | pgf77* | pgf90* | pgf95*)
7538 # Portland Group compilers (*not* the Pentium gcc compiler,
7539 # which looks to be a dead project)
7540 lt_prog_compiler_wl='-Wl,'
7541 lt_prog_compiler_pic='-fpic'
7542 lt_prog_compiler_static='-Bstatic'
7543 ;;
7544 ccc*)
7545 lt_prog_compiler_wl='-Wl,'
7546 # All Alpha code is PIC.
7547 lt_prog_compiler_static='-non_shared'
7548 ;;
ac40fd9e 7549 *)
7550 case `$CC -V 2>&1 | sed 5q` in
7551 *Sun\ C*)
7552 # Sun C 5.9
7553 lt_prog_compiler_pic='-KPIC'
7554 lt_prog_compiler_static='-Bstatic'
7555 lt_prog_compiler_wl='-Wl,'
7556 ;;
7557 *Sun\ F*)
7558 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7559 lt_prog_compiler_pic='-KPIC'
7560 lt_prog_compiler_static='-Bstatic'
7561 lt_prog_compiler_wl=''
7562 ;;
7563 esac
7564 ;;
d9898ee8 7565 esac
7566 ;;
7567
7568 osf3* | osf4* | osf5*)
7569 lt_prog_compiler_wl='-Wl,'
7570 # All OSF/1 code is PIC.
7571 lt_prog_compiler_static='-non_shared'
7572 ;;
7573
ac40fd9e 7574 rdos*)
7575 lt_prog_compiler_static='-non_shared'
7576 ;;
7577
d9898ee8 7578 solaris*)
7579 lt_prog_compiler_pic='-KPIC'
7580 lt_prog_compiler_static='-Bstatic'
7581 case $cc_basename in
7582 f77* | f90* | f95*)
7583 lt_prog_compiler_wl='-Qoption ld ';;
7584 *)
7585 lt_prog_compiler_wl='-Wl,';;
7586 esac
7587 ;;
7588
7589 sunos4*)
7590 lt_prog_compiler_wl='-Qoption ld '
7591 lt_prog_compiler_pic='-PIC'
7592 lt_prog_compiler_static='-Bstatic'
7593 ;;
7594
7595 sysv4 | sysv4.2uw2* | sysv4.3*)
7596 lt_prog_compiler_wl='-Wl,'
7597 lt_prog_compiler_pic='-KPIC'
7598 lt_prog_compiler_static='-Bstatic'
7599 ;;
7600
7601 sysv4*MP*)
7602 if test -d /usr/nec ;then
7603 lt_prog_compiler_pic='-Kconform_pic'
7604 lt_prog_compiler_static='-Bstatic'
7605 fi
7606 ;;
7607
7608 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7609 lt_prog_compiler_wl='-Wl,'
7610 lt_prog_compiler_pic='-KPIC'
7611 lt_prog_compiler_static='-Bstatic'
7612 ;;
7613
7614 unicos*)
7615 lt_prog_compiler_wl='-Wl,'
7616 lt_prog_compiler_can_build_shared=no
7617 ;;
7618
7619 uts4*)
7620 lt_prog_compiler_pic='-pic'
7621 lt_prog_compiler_static='-Bstatic'
7622 ;;
7623
7624 *)
7625 lt_prog_compiler_can_build_shared=no
7626 ;;
7627 esac
7628 fi
7629
dd184caf 7630{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7631echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
d9898ee8 7632
7633#
7634# Check to make sure the PIC flag actually works.
7635#
7636if test -n "$lt_prog_compiler_pic"; then
7637
dd184caf 7638{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7639echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
d9898ee8 7640if test "${lt_prog_compiler_pic_works+set}" = set; then
7641 echo $ECHO_N "(cached) $ECHO_C" >&6
7642else
7643 lt_prog_compiler_pic_works=no
7644 ac_outfile=conftest.$ac_objext
ac40fd9e 7645 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 7646 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7647 # Insert the option either (1) after the last *FLAGS variable, or
7648 # (2) before a word containing "conftest.", or (3) at the end.
7649 # Note that $ac_compile itself does not contain backslashes and begins
7650 # with a dollar sign (not a hyphen), so the echo should work correctly.
7651 # The option is referenced via a variable to avoid confusing sed.
7652 lt_compile=`echo "$ac_compile" | $SED \
7653 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7654 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7655 -e 's:$: $lt_compiler_flag:'`
ac40fd9e 7656 (eval echo "\"\$as_me:7656: $lt_compile\"" >&5)
d9898ee8 7657 (eval "$lt_compile" 2>conftest.err)
7658 ac_status=$?
7659 cat conftest.err >&5
ac40fd9e 7660 echo "$as_me:7660: \$? = $ac_status" >&5
d9898ee8 7661 if (exit $ac_status) && test -s "$ac_outfile"; then
7662 # The compiler can only warn and ignore the option if not recognized
7663 # So say no if there are warnings other than the usual output.
7664 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7665 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7666 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7667 lt_prog_compiler_pic_works=yes
7668 fi
7669 fi
7670 $rm conftest*
7671
7672fi
dd184caf 7673{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7674echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
d9898ee8 7675
7676if test x"$lt_prog_compiler_pic_works" = xyes; then
7677 case $lt_prog_compiler_pic in
7678 "" | " "*) ;;
7679 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7680 esac
7681else
7682 lt_prog_compiler_pic=
7683 lt_prog_compiler_can_build_shared=no
7684fi
7685
7686fi
7687case $host_os in
7688 # For platforms which do not support PIC, -DPIC is meaningless:
7689 *djgpp*)
7690 lt_prog_compiler_pic=
7691 ;;
7692 *)
7693 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7694 ;;
7695esac
7696
7697#
7698# Check to make sure the static flag actually works.
7699#
7700wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
dd184caf 7701{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7702echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
d9898ee8 7703if test "${lt_prog_compiler_static_works+set}" = set; then
7704 echo $ECHO_N "(cached) $ECHO_C" >&6
7705else
7706 lt_prog_compiler_static_works=no
7707 save_LDFLAGS="$LDFLAGS"
7708 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
ac40fd9e 7709 echo "$lt_simple_link_test_code" > conftest.$ac_ext
d9898ee8 7710 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7711 # The linker can only warn and ignore the option if not recognized
7712 # So say no if there are warnings
7713 if test -s conftest.err; then
7714 # Append any errors to the config.log.
7715 cat conftest.err 1>&5
7716 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7717 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7718 if diff conftest.exp conftest.er2 >/dev/null; then
7719 lt_prog_compiler_static_works=yes
7720 fi
7721 else
7722 lt_prog_compiler_static_works=yes
7723 fi
7724 fi
7725 $rm conftest*
7726 LDFLAGS="$save_LDFLAGS"
7727
7728fi
dd184caf 7729{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7730echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
d9898ee8 7731
7732if test x"$lt_prog_compiler_static_works" = xyes; then
7733 :
7734else
7735 lt_prog_compiler_static=
7736fi
7737
7738
dd184caf 7739{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7740echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
d9898ee8 7741if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7742 echo $ECHO_N "(cached) $ECHO_C" >&6
7743else
7744 lt_cv_prog_compiler_c_o=no
7745 $rm -r conftest 2>/dev/null
7746 mkdir conftest
7747 cd conftest
7748 mkdir out
ac40fd9e 7749 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 7750
7751 lt_compiler_flag="-o out/conftest2.$ac_objext"
7752 # Insert the option either (1) after the last *FLAGS variable, or
7753 # (2) before a word containing "conftest.", or (3) at the end.
7754 # Note that $ac_compile itself does not contain backslashes and begins
7755 # with a dollar sign (not a hyphen), so the echo should work correctly.
7756 lt_compile=`echo "$ac_compile" | $SED \
7757 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7758 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7759 -e 's:$: $lt_compiler_flag:'`
ac40fd9e 7760 (eval echo "\"\$as_me:7760: $lt_compile\"" >&5)
d9898ee8 7761 (eval "$lt_compile" 2>out/conftest.err)
7762 ac_status=$?
7763 cat out/conftest.err >&5
ac40fd9e 7764 echo "$as_me:7764: \$? = $ac_status" >&5
d9898ee8 7765 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7766 then
7767 # The compiler can only warn and ignore the option if not recognized
7768 # So say no if there are warnings
7769 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7770 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7771 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7772 lt_cv_prog_compiler_c_o=yes
7773 fi
7774 fi
7775 chmod u+w . 2>&5
7776 $rm conftest*
7777 # SGI C++ compiler will create directory out/ii_files/ for
7778 # template instantiation
7779 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7780 $rm out/* && rmdir out
7781 cd ..
7782 rmdir conftest
7783 $rm conftest*
7784
7785fi
dd184caf 7786{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7787echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
d9898ee8 7788
7789
7790hard_links="nottested"
7791if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7792 # do not overwrite the value of need_locks provided by the user
dd184caf 7793 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7794echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
d9898ee8 7795 hard_links=yes
7796 $rm conftest*
7797 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7798 touch conftest.a
7799 ln conftest.a conftest.b 2>&5 || hard_links=no
7800 ln conftest.a conftest.b 2>/dev/null && hard_links=no
dd184caf 7801 { echo "$as_me:$LINENO: result: $hard_links" >&5
7802echo "${ECHO_T}$hard_links" >&6; }
d9898ee8 7803 if test "$hard_links" = no; then
7804 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7805echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7806 need_locks=warn
7807 fi
7808else
7809 need_locks=no
7810fi
7811
dd184caf 7812{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7813echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
d9898ee8 7814
7815 runpath_var=
7816 allow_undefined_flag=
7817 enable_shared_with_static_runtimes=no
7818 archive_cmds=
7819 archive_expsym_cmds=
7820 old_archive_From_new_cmds=
7821 old_archive_from_expsyms_cmds=
7822 export_dynamic_flag_spec=
7823 whole_archive_flag_spec=
7824 thread_safe_flag_spec=
7825 hardcode_libdir_flag_spec=
7826 hardcode_libdir_flag_spec_ld=
7827 hardcode_libdir_separator=
7828 hardcode_direct=no
7829 hardcode_minus_L=no
7830 hardcode_shlibpath_var=unsupported
7831 link_all_deplibs=unknown
7832 hardcode_automatic=no
7833 module_cmds=
7834 module_expsym_cmds=
7835 always_export_symbols=no
7836 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7837 # include_expsyms should be a list of space-separated symbols to be *always*
7838 # included in the symbol list
7839 include_expsyms=
7840 # exclude_expsyms can be an extended regexp of symbols to exclude
7841 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7842 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7843 # as well as any symbol that contains `d'.
7844 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7845 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7846 # platforms (ab)use it in PIC code, but their linkers get confused if
7847 # the symbol is explicitly referenced. Since portable code cannot
7848 # rely on this symbol name, it's probably fine to never include it in
7849 # preloaded symbol tables.
7850 extract_expsyms_cmds=
7851 # Just being paranoid about ensuring that cc_basename is set.
7852 for cc_temp in $compiler""; do
7853 case $cc_temp in
7854 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7855 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7856 \-*) ;;
7857 *) break;;
7858 esac
7859done
7860cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7861
7862 case $host_os in
7863 cygwin* | mingw* | pw32*)
7864 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7865 # When not using gcc, we currently assume that we are using
7866 # Microsoft Visual C++.
7867 if test "$GCC" != yes; then
7868 with_gnu_ld=no
7869 fi
7870 ;;
7871 interix*)
7872 # we just hope/assume this is gcc and not c89 (= MSVC++)
7873 with_gnu_ld=yes
7874 ;;
7875 openbsd*)
7876 with_gnu_ld=no
7877 ;;
7878 esac
7879
7880 ld_shlibs=yes
7881 if test "$with_gnu_ld" = yes; then
7882 # If archive_cmds runs LD, not CC, wlarc should be empty
7883 wlarc='${wl}'
7884
7885 # Set some defaults for GNU ld with shared library support. These
7886 # are reset later if shared libraries are not supported. Putting them
7887 # here allows them to be overridden if necessary.
7888 runpath_var=LD_RUN_PATH
7889 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7890 export_dynamic_flag_spec='${wl}--export-dynamic'
7891 # ancient GNU ld didn't support --whole-archive et. al.
7892 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7893 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7894 else
7895 whole_archive_flag_spec=
7896 fi
7897 supports_anon_versioning=no
7898 case `$LD -v 2>/dev/null` in
7899 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7900 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7901 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7902 *\ 2.11.*) ;; # other 2.11 versions
7903 *) supports_anon_versioning=yes ;;
7904 esac
7905
7906 # See if GNU ld supports shared libraries.
7907 case $host_os in
7908 aix3* | aix4* | aix5*)
7909 # On AIX/PPC, the GNU linker is very broken
7910 if test "$host_cpu" != ia64; then
7911 ld_shlibs=no
7912 cat <<EOF 1>&2
7913
7914*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7915*** to be unable to reliably create shared libraries on AIX.
7916*** Therefore, libtool is disabling shared libraries support. If you
7917*** really care for shared libraries, you may want to modify your PATH
7918*** so that a non-GNU linker is found, and then restart.
7919
7920EOF
7921 fi
7922 ;;
7923
7924 amigaos*)
7925 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)'
7926 hardcode_libdir_flag_spec='-L$libdir'
7927 hardcode_minus_L=yes
7928
7929 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7930 # that the semantics of dynamic libraries on AmigaOS, at least up
7931 # to version 4, is to share data among multiple programs linked
7932 # with the same dynamic library. Since this doesn't match the
7933 # behavior of shared libraries on other platforms, we can't use
7934 # them.
7935 ld_shlibs=no
7936 ;;
7937
7938 beos*)
7939 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7940 allow_undefined_flag=unsupported
7941 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7942 # support --undefined. This deserves some investigation. FIXME
7943 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7944 else
7945 ld_shlibs=no
7946 fi
7947 ;;
7948
7949 cygwin* | mingw* | pw32*)
7950 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7951 # as there is no search path for DLLs.
7952 hardcode_libdir_flag_spec='-L$libdir'
7953 allow_undefined_flag=unsupported
7954 always_export_symbols=no
7955 enable_shared_with_static_runtimes=yes
ac40fd9e 7956 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
d9898ee8 7957
7958 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7959 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7960 # If the export-symbols file already is a .def file (1st line
7961 # is EXPORTS), use it as is; otherwise, prepend...
7962 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7963 cp $export_symbols $output_objdir/$soname.def;
7964 else
7965 echo EXPORTS > $output_objdir/$soname.def;
7966 cat $export_symbols >> $output_objdir/$soname.def;
7967 fi~
7968 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7969 else
7970 ld_shlibs=no
7971 fi
7972 ;;
7973
ac40fd9e 7974 interix[3-9]*)
d9898ee8 7975 hardcode_direct=no
7976 hardcode_shlibpath_var=no
7977 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7978 export_dynamic_flag_spec='${wl}-E'
7979 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7980 # Instead, shared libraries are loaded at an image base (0x10000000 by
7981 # default) and relocated if they conflict, which is a slow very memory
7982 # consuming and fragmenting process. To avoid this, we pick a random,
7983 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7984 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7985 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7986 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'
7987 ;;
7988
ac40fd9e 7989 gnu* | linux* | k*bsd*-gnu)
d9898ee8 7990 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7991 tmp_addflag=
7992 case $cc_basename,$host_cpu in
7993 pgcc*) # Portland Group C compiler
7994 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'
7995 tmp_addflag=' $pic_flag'
7996 ;;
7997 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7998 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'
7999 tmp_addflag=' $pic_flag -Mnomain' ;;
8000 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8001 tmp_addflag=' -i_dynamic' ;;
8002 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8003 tmp_addflag=' -i_dynamic -nofor_main' ;;
8004 ifc* | ifort*) # Intel Fortran compiler
8005 tmp_addflag=' -nofor_main' ;;
8006 esac
ac40fd9e 8007 case `$CC -V 2>&1 | sed 5q` in
8008 *Sun\ C*) # Sun C 5.9
8009 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'
8010 tmp_sharedflag='-G' ;;
8011 *Sun\ F*) # Sun Fortran 8.3
8012 tmp_sharedflag='-G' ;;
8013 *)
8014 tmp_sharedflag='-shared' ;;
8015 esac
8016 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
d9898ee8 8017
8018 if test $supports_anon_versioning = yes; then
8019 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8020 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8021 $echo "local: *; };" >> $output_objdir/$libname.ver~
ac40fd9e 8022 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
d9898ee8 8023 fi
8024 else
8025 ld_shlibs=no
8026 fi
8027 ;;
8028
8029 netbsd*)
8030 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8031 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8032 wlarc=
8033 else
8034 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8035 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8036 fi
8037 ;;
8038
8039 solaris*)
8040 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8041 ld_shlibs=no
8042 cat <<EOF 1>&2
8043
8044*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8045*** create shared libraries on Solaris systems. Therefore, libtool
8046*** is disabling shared libraries support. We urge you to upgrade GNU
8047*** binutils to release 2.9.1 or newer. Another option is to modify
8048*** your PATH or compiler configuration so that the native linker is
8049*** used, and then restart.
8050
8051EOF
8052 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8053 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8054 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8055 else
8056 ld_shlibs=no
8057 fi
8058 ;;
8059
8060 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8061 case `$LD -v 2>&1` in
8062 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8063 ld_shlibs=no
8064 cat <<_LT_EOF 1>&2
8065
8066*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8067*** reliably create shared libraries on SCO systems. Therefore, libtool
8068*** is disabling shared libraries support. We urge you to upgrade GNU
8069*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8070*** your PATH or compiler configuration so that the native linker is
8071*** used, and then restart.
8072
8073_LT_EOF
8074 ;;
8075 *)
8076 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8077 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8078 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8079 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8080 else
8081 ld_shlibs=no
8082 fi
8083 ;;
8084 esac
8085 ;;
8086
8087 sunos4*)
8088 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8089 wlarc=
8090 hardcode_direct=yes
8091 hardcode_shlibpath_var=no
8092 ;;
8093
8094 *)
8095 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8096 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8097 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8098 else
8099 ld_shlibs=no
8100 fi
8101 ;;
8102 esac
8103
8104 if test "$ld_shlibs" = no; then
8105 runpath_var=
8106 hardcode_libdir_flag_spec=
8107 export_dynamic_flag_spec=
8108 whole_archive_flag_spec=
8109 fi
8110 else
8111 # PORTME fill in a description of your system's linker (not GNU ld)
8112 case $host_os in
8113 aix3*)
8114 allow_undefined_flag=unsupported
8115 always_export_symbols=yes
8116 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'
8117 # Note: this linker hardcodes the directories in LIBPATH if there
8118 # are no directories specified by -L.
8119 hardcode_minus_L=yes
8120 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8121 # Neither direct hardcoding nor static linking is supported with a
8122 # broken collect2.
8123 hardcode_direct=unsupported
8124 fi
8125 ;;
8126
8127 aix4* | aix5*)
8128 if test "$host_cpu" = ia64; then
8129 # On IA64, the linker does run time linking by default, so we don't
8130 # have to do anything special.
8131 aix_use_runtimelinking=no
8132 exp_sym_flag='-Bexport'
8133 no_entry_flag=""
8134 else
8135 # If we're using GNU nm, then we don't want the "-C" option.
8136 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8137 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8138 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'
8139 else
8140 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'
8141 fi
8142 aix_use_runtimelinking=no
8143
8144 # Test if we are trying to use run time linking or normal
8145 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8146 # need to do runtime linking.
8147 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8148 for ld_flag in $LDFLAGS; do
8149 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8150 aix_use_runtimelinking=yes
8151 break
8152 fi
8153 done
8154 ;;
8155 esac
8156
8157 exp_sym_flag='-bexport'
8158 no_entry_flag='-bnoentry'
8159 fi
8160
8161 # When large executables or shared objects are built, AIX ld can
8162 # have problems creating the table of contents. If linking a library
8163 # or program results in "error TOC overflow" add -mminimal-toc to
8164 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8165 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8166
8167 archive_cmds=''
8168 hardcode_direct=yes
8169 hardcode_libdir_separator=':'
8170 link_all_deplibs=yes
8171
8172 if test "$GCC" = yes; then
8173 case $host_os in aix4.[012]|aix4.[012].*)
8174 # We only want to do this on AIX 4.2 and lower, the check
8175 # below for broken collect2 doesn't work under 4.3+
8176 collect2name=`${CC} -print-prog-name=collect2`
8177 if test -f "$collect2name" && \
8178 strings "$collect2name" | grep resolve_lib_name >/dev/null
8179 then
8180 # We have reworked collect2
ac40fd9e 8181 :
d9898ee8 8182 else
8183 # We have old collect2
8184 hardcode_direct=unsupported
8185 # It fails to find uninstalled libraries when the uninstalled
8186 # path is not listed in the libpath. Setting hardcode_minus_L
8187 # to unsupported forces relinking
8188 hardcode_minus_L=yes
8189 hardcode_libdir_flag_spec='-L$libdir'
8190 hardcode_libdir_separator=
8191 fi
8192 ;;
8193 esac
8194 shared_flag='-shared'
8195 if test "$aix_use_runtimelinking" = yes; then
8196 shared_flag="$shared_flag "'${wl}-G'
8197 fi
8198 else
8199 # not using gcc
8200 if test "$host_cpu" = ia64; then
8201 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8202 # chokes on -Wl,-G. The following line is correct:
8203 shared_flag='-G'
8204 else
8205 if test "$aix_use_runtimelinking" = yes; then
8206 shared_flag='${wl}-G'
8207 else
8208 shared_flag='${wl}-bM:SRE'
8209 fi
8210 fi
8211 fi
8212
8213 # It seems that -bexpall does not export symbols beginning with
8214 # underscore (_), so it is better to generate a list of symbols to export.
8215 always_export_symbols=yes
8216 if test "$aix_use_runtimelinking" = yes; then
8217 # Warning - without using the other runtime loading flags (-brtl),
8218 # -berok will link without error, but may produce a broken library.
8219 allow_undefined_flag='-berok'
8220 # Determine the default libpath from the value encoded in an empty executable.
8221 cat >conftest.$ac_ext <<_ACEOF
8222/* confdefs.h. */
8223_ACEOF
8224cat confdefs.h >>conftest.$ac_ext
8225cat >>conftest.$ac_ext <<_ACEOF
8226/* end confdefs.h. */
8227
8228int
8229main ()
8230{
8231
8232 ;
8233 return 0;
8234}
8235_ACEOF
8236rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 8237if { (ac_try="$ac_link"
8238case "(($ac_try" in
8239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8240 *) ac_try_echo=$ac_try;;
8241esac
8242eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8243 (eval "$ac_link") 2>conftest.er1
d9898ee8 8244 ac_status=$?
8245 grep -v '^ *+' conftest.er1 >conftest.err
8246 rm -f conftest.er1
8247 cat conftest.err >&5
8248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 8249 (exit $ac_status); } && {
8250 test -z "$ac_c_werror_flag" ||
8251 test ! -s conftest.err
8252 } && test -s conftest$ac_exeext &&
8253 $as_test_x conftest$ac_exeext; then
d9898ee8 8254
ac40fd9e 8255lt_aix_libpath_sed='
8256 /Import File Strings/,/^$/ {
8257 /^0/ {
8258 s/^0 *\(.*\)$/\1/
8259 p
8260 }
8261 }'
8262aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
d9898ee8 8263# Check for a 64-bit object if we didn't find anything.
ac40fd9e 8264if test -z "$aix_libpath"; then
8265 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8266fi
d9898ee8 8267else
8268 echo "$as_me: failed program was:" >&5
8269sed 's/^/| /' conftest.$ac_ext >&5
8270
dd184caf 8271
d9898ee8 8272fi
dd184caf 8273
8274rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 8275 conftest$ac_exeext conftest.$ac_ext
8276if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8277
8278 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8279 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8280 else
8281 if test "$host_cpu" = ia64; then
8282 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8283 allow_undefined_flag="-z nodefs"
8284 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"
8285 else
8286 # Determine the default libpath from the value encoded in an empty executable.
8287 cat >conftest.$ac_ext <<_ACEOF
8288/* confdefs.h. */
8289_ACEOF
8290cat confdefs.h >>conftest.$ac_ext
8291cat >>conftest.$ac_ext <<_ACEOF
8292/* end confdefs.h. */
8293
8294int
8295main ()
8296{
8297
8298 ;
8299 return 0;
8300}
8301_ACEOF
8302rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 8303if { (ac_try="$ac_link"
8304case "(($ac_try" in
8305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8306 *) ac_try_echo=$ac_try;;
8307esac
8308eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8309 (eval "$ac_link") 2>conftest.er1
d9898ee8 8310 ac_status=$?
8311 grep -v '^ *+' conftest.er1 >conftest.err
8312 rm -f conftest.er1
8313 cat conftest.err >&5
8314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 8315 (exit $ac_status); } && {
8316 test -z "$ac_c_werror_flag" ||
8317 test ! -s conftest.err
8318 } && test -s conftest$ac_exeext &&
8319 $as_test_x conftest$ac_exeext; then
d9898ee8 8320
ac40fd9e 8321lt_aix_libpath_sed='
8322 /Import File Strings/,/^$/ {
8323 /^0/ {
8324 s/^0 *\(.*\)$/\1/
8325 p
8326 }
8327 }'
8328aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
d9898ee8 8329# Check for a 64-bit object if we didn't find anything.
ac40fd9e 8330if test -z "$aix_libpath"; then
8331 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8332fi
d9898ee8 8333else
8334 echo "$as_me: failed program was:" >&5
8335sed 's/^/| /' conftest.$ac_ext >&5
8336
dd184caf 8337
d9898ee8 8338fi
dd184caf 8339
8340rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 8341 conftest$ac_exeext conftest.$ac_ext
8342if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8343
8344 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8345 # Warning - without using the other run time loading flags,
8346 # -berok will link without error, but may produce a broken library.
8347 no_undefined_flag=' ${wl}-bernotok'
8348 allow_undefined_flag=' ${wl}-berok'
8349 # Exported symbols can be pulled into shared objects from archives
8350 whole_archive_flag_spec='$convenience'
8351 archive_cmds_need_lc=yes
8352 # This is similar to how AIX traditionally builds its shared libraries.
8353 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'
8354 fi
8355 fi
8356 ;;
8357
8358 amigaos*)
8359 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)'
8360 hardcode_libdir_flag_spec='-L$libdir'
8361 hardcode_minus_L=yes
8362 # see comment about different semantics on the GNU ld section
8363 ld_shlibs=no
8364 ;;
8365
8366 bsdi[45]*)
8367 export_dynamic_flag_spec=-rdynamic
8368 ;;
8369
8370 cygwin* | mingw* | pw32*)
8371 # When not using gcc, we currently assume that we are using
8372 # Microsoft Visual C++.
8373 # hardcode_libdir_flag_spec is actually meaningless, as there is
8374 # no search path for DLLs.
8375 hardcode_libdir_flag_spec=' '
8376 allow_undefined_flag=unsupported
8377 # Tell ltmain to make .lib files, not .a files.
8378 libext=lib
8379 # Tell ltmain to make .dll files, not .so files.
8380 shrext_cmds=".dll"
8381 # FIXME: Setting linknames here is a bad hack.
8382 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8383 # The linker will automatically build a .lib file if we build a DLL.
8384 old_archive_From_new_cmds='true'
8385 # FIXME: Should let the user specify the lib program.
ac40fd9e 8386 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
d9898ee8 8387 fix_srcfile_path='`cygpath -w "$srcfile"`'
8388 enable_shared_with_static_runtimes=yes
8389 ;;
8390
8391 darwin* | rhapsody*)
8392 case $host_os in
8393 rhapsody* | darwin1.[012])
8394 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8395 ;;
8396 *) # Darwin 1.3 on
8397 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8398 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8399 else
8400 case ${MACOSX_DEPLOYMENT_TARGET} in
8401 10.[012])
8402 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8403 ;;
8404 10.*)
8405 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8406 ;;
8407 esac
8408 fi
8409 ;;
8410 esac
8411 archive_cmds_need_lc=no
8412 hardcode_direct=no
8413 hardcode_automatic=yes
8414 hardcode_shlibpath_var=unsupported
8415 whole_archive_flag_spec=''
8416 link_all_deplibs=yes
8417 if test "$GCC" = yes ; then
8418 output_verbose_link_cmd='echo'
8419 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8420 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8421 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8422 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8423 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8424 else
8425 case $cc_basename in
8426 xlc*)
8427 output_verbose_link_cmd='echo'
ac40fd9e 8428 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
d9898ee8 8429 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8430 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
ac40fd9e 8431 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
d9898ee8 8432 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8433 ;;
8434 *)
8435 ld_shlibs=no
8436 ;;
8437 esac
8438 fi
8439 ;;
8440
8441 dgux*)
8442 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8443 hardcode_libdir_flag_spec='-L$libdir'
8444 hardcode_shlibpath_var=no
8445 ;;
8446
8447 freebsd1*)
8448 ld_shlibs=no
8449 ;;
8450
8451 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8452 # support. Future versions do this automatically, but an explicit c++rt0.o
8453 # does not break anything, and helps significantly (at the cost of a little
8454 # extra space).
8455 freebsd2.2*)
8456 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8457 hardcode_libdir_flag_spec='-R$libdir'
8458 hardcode_direct=yes
8459 hardcode_shlibpath_var=no
8460 ;;
8461
8462 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8463 freebsd2*)
8464 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8465 hardcode_direct=yes
8466 hardcode_minus_L=yes
8467 hardcode_shlibpath_var=no
8468 ;;
8469
8470 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
ac40fd9e 8471 freebsd* | dragonfly*)
d9898ee8 8472 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8473 hardcode_libdir_flag_spec='-R$libdir'
8474 hardcode_direct=yes
8475 hardcode_shlibpath_var=no
8476 ;;
8477
8478 hpux9*)
8479 if test "$GCC" = yes; then
8480 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'
8481 else
8482 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'
8483 fi
8484 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8485 hardcode_libdir_separator=:
8486 hardcode_direct=yes
8487
8488 # hardcode_minus_L: Not really in the search PATH,
8489 # but as the default location of the library.
8490 hardcode_minus_L=yes
8491 export_dynamic_flag_spec='${wl}-E'
8492 ;;
8493
8494 hpux10*)
8495 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8496 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8497 else
8498 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8499 fi
8500 if test "$with_gnu_ld" = no; then
8501 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8502 hardcode_libdir_separator=:
8503
8504 hardcode_direct=yes
8505 export_dynamic_flag_spec='${wl}-E'
8506
8507 # hardcode_minus_L: Not really in the search PATH,
8508 # but as the default location of the library.
8509 hardcode_minus_L=yes
8510 fi
8511 ;;
8512
8513 hpux11*)
8514 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8515 case $host_cpu in
8516 hppa*64*)
8517 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8518 ;;
8519 ia64*)
8520 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8521 ;;
8522 *)
8523 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8524 ;;
8525 esac
8526 else
8527 case $host_cpu in
8528 hppa*64*)
8529 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8530 ;;
8531 ia64*)
8532 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8533 ;;
8534 *)
8535 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8536 ;;
8537 esac
8538 fi
8539 if test "$with_gnu_ld" = no; then
8540 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8541 hardcode_libdir_separator=:
8542
8543 case $host_cpu in
8544 hppa*64*|ia64*)
8545 hardcode_libdir_flag_spec_ld='+b $libdir'
8546 hardcode_direct=no
8547 hardcode_shlibpath_var=no
8548 ;;
8549 *)
8550 hardcode_direct=yes
8551 export_dynamic_flag_spec='${wl}-E'
8552
8553 # hardcode_minus_L: Not really in the search PATH,
8554 # but as the default location of the library.
8555 hardcode_minus_L=yes
8556 ;;
8557 esac
8558 fi
8559 ;;
8560
8561 irix5* | irix6* | nonstopux*)
8562 if test "$GCC" = yes; then
8563 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8564 else
8565 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8566 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8567 fi
8568 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8569 hardcode_libdir_separator=:
8570 link_all_deplibs=yes
8571 ;;
8572
8573 netbsd*)
8574 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8575 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8576 else
8577 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8578 fi
8579 hardcode_libdir_flag_spec='-R$libdir'
8580 hardcode_direct=yes
8581 hardcode_shlibpath_var=no
8582 ;;
8583
8584 newsos6)
8585 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8586 hardcode_direct=yes
8587 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8588 hardcode_libdir_separator=:
8589 hardcode_shlibpath_var=no
8590 ;;
8591
8592 openbsd*)
ac40fd9e 8593 if test -f /usr/libexec/ld.so; then
8594 hardcode_direct=yes
8595 hardcode_shlibpath_var=no
8596 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8597 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8598 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8599 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8600 export_dynamic_flag_spec='${wl}-E'
8601 else
8602 case $host_os in
8603 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8604 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8605 hardcode_libdir_flag_spec='-R$libdir'
8606 ;;
8607 *)
8608 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8609 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8610 ;;
8611 esac
8612 fi
d9898ee8 8613 else
ac40fd9e 8614 ld_shlibs=no
d9898ee8 8615 fi
8616 ;;
8617
8618 os2*)
8619 hardcode_libdir_flag_spec='-L$libdir'
8620 hardcode_minus_L=yes
8621 allow_undefined_flag=unsupported
8622 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'
8623 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8624 ;;
8625
8626 osf3*)
8627 if test "$GCC" = yes; then
8628 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8629 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8630 else
8631 allow_undefined_flag=' -expect_unresolved \*'
8632 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8633 fi
8634 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8635 hardcode_libdir_separator=:
8636 ;;
8637
8638 osf4* | osf5*) # as osf3* with the addition of -msym flag
8639 if test "$GCC" = yes; then
8640 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8641 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8642 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8643 else
8644 allow_undefined_flag=' -expect_unresolved \*'
8645 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8646 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8647 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
8648
8649 # Both c and cxx compiler support -rpath directly
8650 hardcode_libdir_flag_spec='-rpath $libdir'
8651 fi
8652 hardcode_libdir_separator=:
8653 ;;
8654
8655 solaris*)
8656 no_undefined_flag=' -z text'
8657 if test "$GCC" = yes; then
8658 wlarc='${wl}'
8659 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8660 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8661 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8662 else
8663 wlarc=''
8664 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8665 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8666 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8667 fi
8668 hardcode_libdir_flag_spec='-R$libdir'
8669 hardcode_shlibpath_var=no
8670 case $host_os in
8671 solaris2.[0-5] | solaris2.[0-5].*) ;;
8672 *)
ac40fd9e 8673 # The compiler driver will combine and reorder linker options,
8674 # but understands `-z linker_flag'. GCC discards it without `$wl',
8675 # but is careful enough not to reorder.
d9898ee8 8676 # Supported since Solaris 2.6 (maybe 2.5.1?)
ac40fd9e 8677 if test "$GCC" = yes; then
8678 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8679 else
8680 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8681 fi
8682 ;;
d9898ee8 8683 esac
8684 link_all_deplibs=yes
8685 ;;
8686
8687 sunos4*)
8688 if test "x$host_vendor" = xsequent; then
8689 # Use $CC to link under sequent, because it throws in some extra .o
8690 # files that make .init and .fini sections work.
8691 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8692 else
8693 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8694 fi
8695 hardcode_libdir_flag_spec='-L$libdir'
8696 hardcode_direct=yes
8697 hardcode_minus_L=yes
8698 hardcode_shlibpath_var=no
8699 ;;
8700
8701 sysv4)
8702 case $host_vendor in
8703 sni)
8704 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8705 hardcode_direct=yes # is this really true???
8706 ;;
8707 siemens)
8708 ## LD is ld it makes a PLAMLIB
8709 ## CC just makes a GrossModule.
8710 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8711 reload_cmds='$CC -r -o $output$reload_objs'
8712 hardcode_direct=no
8713 ;;
8714 motorola)
8715 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8716 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8717 ;;
8718 esac
8719 runpath_var='LD_RUN_PATH'
8720 hardcode_shlibpath_var=no
8721 ;;
8722
8723 sysv4.3*)
8724 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8725 hardcode_shlibpath_var=no
8726 export_dynamic_flag_spec='-Bexport'
8727 ;;
8728
8729 sysv4*MP*)
8730 if test -d /usr/nec; then
8731 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8732 hardcode_shlibpath_var=no
8733 runpath_var=LD_RUN_PATH
8734 hardcode_runpath_var=yes
8735 ld_shlibs=yes
8736 fi
8737 ;;
8738
ac40fd9e 8739 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
d9898ee8 8740 no_undefined_flag='${wl}-z,text'
8741 archive_cmds_need_lc=no
8742 hardcode_shlibpath_var=no
8743 runpath_var='LD_RUN_PATH'
8744
8745 if test "$GCC" = yes; then
8746 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8747 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8748 else
8749 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8750 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8751 fi
8752 ;;
8753
8754 sysv5* | sco3.2v5* | sco5v6*)
8755 # Note: We can NOT use -z defs as we might desire, because we do not
8756 # link with -lc, and that would cause any symbols used from libc to
8757 # always be unresolved, which means just about no library would
8758 # ever link correctly. If we're not using GNU ld we use -z text
8759 # though, which does catch some bad symbols but isn't as heavy-handed
8760 # as -z defs.
8761 no_undefined_flag='${wl}-z,text'
8762 allow_undefined_flag='${wl}-z,nodefs'
8763 archive_cmds_need_lc=no
8764 hardcode_shlibpath_var=no
8765 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8766 hardcode_libdir_separator=':'
8767 link_all_deplibs=yes
8768 export_dynamic_flag_spec='${wl}-Bexport'
8769 runpath_var='LD_RUN_PATH'
8770
8771 if test "$GCC" = yes; then
8772 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8773 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8774 else
8775 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8776 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8777 fi
8778 ;;
8779
8780 uts4*)
8781 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8782 hardcode_libdir_flag_spec='-L$libdir'
8783 hardcode_shlibpath_var=no
8784 ;;
8785
8786 *)
8787 ld_shlibs=no
8788 ;;
8789 esac
8790 fi
8791
dd184caf 8792{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8793echo "${ECHO_T}$ld_shlibs" >&6; }
d9898ee8 8794test "$ld_shlibs" = no && can_build_shared=no
8795
8796#
8797# Do we need to explicitly link libc?
8798#
8799case "x$archive_cmds_need_lc" in
8800x|xyes)
8801 # Assume -lc should be added
8802 archive_cmds_need_lc=yes
8803
8804 if test "$enable_shared" = yes && test "$GCC" = yes; then
8805 case $archive_cmds in
8806 *'~'*)
8807 # FIXME: we may have to deal with multi-command sequences.
8808 ;;
8809 '$CC '*)
8810 # Test whether the compiler implicitly links with -lc since on some
8811 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8812 # to ld, don't add -lc before -lgcc.
dd184caf 8813 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8814echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
d9898ee8 8815 $rm conftest*
ac40fd9e 8816 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 8817
8818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8819 (eval $ac_compile) 2>&5
8820 ac_status=$?
8821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8822 (exit $ac_status); } 2>conftest.err; then
8823 soname=conftest
8824 lib=conftest
8825 libobjs=conftest.$ac_objext
8826 deplibs=
8827 wl=$lt_prog_compiler_wl
8828 pic_flag=$lt_prog_compiler_pic
8829 compiler_flags=-v
8830 linker_flags=-v
8831 verstring=
8832 output_objdir=.
8833 libname=conftest
8834 lt_save_allow_undefined_flag=$allow_undefined_flag
8835 allow_undefined_flag=
8836 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8837 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8838 ac_status=$?
8839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8840 (exit $ac_status); }
8841 then
8842 archive_cmds_need_lc=no
8843 else
8844 archive_cmds_need_lc=yes
8845 fi
8846 allow_undefined_flag=$lt_save_allow_undefined_flag
8847 else
8848 cat conftest.err 1>&5
8849 fi
8850 $rm conftest*
dd184caf 8851 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8852echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
d9898ee8 8853 ;;
8854 esac
8855 fi
8856 ;;
8857esac
8858
dd184caf 8859{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8860echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
d9898ee8 8861library_names_spec=
8862libname_spec='lib$name'
8863soname_spec=
8864shrext_cmds=".so"
8865postinstall_cmds=
8866postuninstall_cmds=
8867finish_cmds=
8868finish_eval=
8869shlibpath_var=
8870shlibpath_overrides_runpath=unknown
8871version_type=none
8872dynamic_linker="$host_os ld.so"
8873sys_lib_dlsearch_path_spec="/lib /usr/lib"
ac40fd9e 8874
d9898ee8 8875if test "$GCC" = yes; then
ac40fd9e 8876 case $host_os in
8877 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8878 *) lt_awk_arg="/^libraries:/" ;;
8879 esac
8880 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8881 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
d9898ee8 8882 # if the path contains ";" then we assume it to be the separator
8883 # otherwise default to the standard path separator (i.e. ":") - it is
8884 # assumed that no part of a normal pathname contains ";" but that should
8885 # okay in the real world where ";" in dirpaths is itself problematic.
ac40fd9e 8886 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
d9898ee8 8887 else
ac40fd9e 8888 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
d9898ee8 8889 fi
ac40fd9e 8890 # Ok, now we have the path, separated by spaces, we can step through it
8891 # and add multilib dir if necessary.
8892 lt_tmp_lt_search_path_spec=
8893 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8894 for lt_sys_path in $lt_search_path_spec; do
8895 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8896 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8897 else
8898 test -d "$lt_sys_path" && \
8899 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8900 fi
8901 done
8902 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
8903BEGIN {RS=" "; FS="/|\n";} {
8904 lt_foo="";
8905 lt_count=0;
8906 for (lt_i = NF; lt_i > 0; lt_i--) {
8907 if ($lt_i != "" && $lt_i != ".") {
8908 if ($lt_i == "..") {
8909 lt_count++;
8910 } else {
8911 if (lt_count == 0) {
8912 lt_foo="/" $lt_i lt_foo;
8913 } else {
8914 lt_count--;
8915 }
8916 }
8917 }
8918 }
8919 if (lt_foo != "") { lt_freq[lt_foo]++; }
8920 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8921}'`
8922 sys_lib_search_path_spec=`echo $lt_search_path_spec`
d9898ee8 8923else
8924 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8925fi
8926need_lib_prefix=unknown
8927hardcode_into_libs=no
8928
8929# when you set need_version to no, make sure it does not cause -set_version
8930# flags to be left without arguments
8931need_version=unknown
8932
8933case $host_os in
8934aix3*)
8935 version_type=linux
8936 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8937 shlibpath_var=LIBPATH
8938
8939 # AIX 3 has no versioning support, so we append a major version to the name.
8940 soname_spec='${libname}${release}${shared_ext}$major'
8941 ;;
8942
8943aix4* | aix5*)
8944 version_type=linux
8945 need_lib_prefix=no
8946 need_version=no
8947 hardcode_into_libs=yes
8948 if test "$host_cpu" = ia64; then
8949 # AIX 5 supports IA64
8950 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8951 shlibpath_var=LD_LIBRARY_PATH
8952 else
8953 # With GCC up to 2.95.x, collect2 would create an import file
8954 # for dependence libraries. The import file would start with
8955 # the line `#! .'. This would cause the generated library to
8956 # depend on `.', always an invalid library. This was fixed in
8957 # development snapshots of GCC prior to 3.0.
8958 case $host_os in
8959 aix4 | aix4.[01] | aix4.[01].*)
8960 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8961 echo ' yes '
8962 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8963 :
8964 else
8965 can_build_shared=no
8966 fi
8967 ;;
8968 esac
8969 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8970 # soname into executable. Probably we can add versioning support to
8971 # collect2, so additional links can be useful in future.
8972 if test "$aix_use_runtimelinking" = yes; then
8973 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8974 # instead of lib<name>.a to let people know that these are not
8975 # typical AIX shared libraries.
8976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8977 else
8978 # We preserve .a as extension for shared libraries through AIX4.2
8979 # and later when we are not doing run time linking.
8980 library_names_spec='${libname}${release}.a $libname.a'
8981 soname_spec='${libname}${release}${shared_ext}$major'
8982 fi
8983 shlibpath_var=LIBPATH
8984 fi
8985 ;;
8986
8987amigaos*)
8988 library_names_spec='$libname.ixlibrary $libname.a'
8989 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8990 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'
8991 ;;
8992
8993beos*)
8994 library_names_spec='${libname}${shared_ext}'
8995 dynamic_linker="$host_os ld.so"
8996 shlibpath_var=LIBRARY_PATH
8997 ;;
8998
8999bsdi[45]*)
9000 version_type=linux
9001 need_version=no
9002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9003 soname_spec='${libname}${release}${shared_ext}$major'
9004 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9005 shlibpath_var=LD_LIBRARY_PATH
9006 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9007 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9008 # the default ld.so.conf also contains /usr/contrib/lib and
9009 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9010 # libtool to hard-code these into programs
9011 ;;
9012
9013cygwin* | mingw* | pw32*)
9014 version_type=windows
9015 shrext_cmds=".dll"
9016 need_version=no
9017 need_lib_prefix=no
9018
9019 case $GCC,$host_os in
9020 yes,cygwin* | yes,mingw* | yes,pw32*)
9021 library_names_spec='$libname.dll.a'
9022 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9023 postinstall_cmds='base_file=`basename \${file}`~
9024 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9025 dldir=$destdir/`dirname \$dlpath`~
9026 test -d \$dldir || mkdir -p \$dldir~
9027 $install_prog $dir/$dlname \$dldir/$dlname~
9028 chmod a+x \$dldir/$dlname'
9029 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9030 dlpath=$dir/\$dldll~
9031 $rm \$dlpath'
9032 shlibpath_overrides_runpath=yes
9033
9034 case $host_os in
9035 cygwin*)
9036 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9037 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9038 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9039 ;;
9040 mingw*)
9041 # MinGW DLLs use traditional 'lib' prefix
9042 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9043 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9044 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9045 # It is most probably a Windows format PATH printed by
9046 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9047 # path with ; separators, and with drive letters. We can handle the
9048 # drive letters (cygwin fileutils understands them), so leave them,
9049 # especially as we might pass files found there to a mingw objdump,
9050 # which wouldn't understand a cygwinified path. Ahh.
9051 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9052 else
9053 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9054 fi
9055 ;;
9056 pw32*)
9057 # pw32 DLLs use 'pw' prefix rather than 'lib'
9058 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9059 ;;
9060 esac
9061 ;;
9062
9063 *)
9064 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9065 ;;
9066 esac
9067 dynamic_linker='Win32 ld.exe'
9068 # FIXME: first we should search . and the directory the executable is in
9069 shlibpath_var=PATH
9070 ;;
9071
9072darwin* | rhapsody*)
9073 dynamic_linker="$host_os dyld"
9074 version_type=darwin
9075 need_lib_prefix=no
9076 need_version=no
9077 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9078 soname_spec='${libname}${release}${major}$shared_ext'
9079 shlibpath_overrides_runpath=yes
9080 shlibpath_var=DYLD_LIBRARY_PATH
9081 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
ac40fd9e 9082
9083 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
d9898ee8 9084 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9085 ;;
9086
9087dgux*)
9088 version_type=linux
9089 need_lib_prefix=no
9090 need_version=no
9091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9092 soname_spec='${libname}${release}${shared_ext}$major'
9093 shlibpath_var=LD_LIBRARY_PATH
9094 ;;
9095
9096freebsd1*)
9097 dynamic_linker=no
9098 ;;
9099
d9898ee8 9100freebsd* | dragonfly*)
9101 # DragonFly does not have aout. When/if they implement a new
9102 # versioning mechanism, adjust this.
9103 if test -x /usr/bin/objformat; then
9104 objformat=`/usr/bin/objformat`
9105 else
9106 case $host_os in
9107 freebsd[123]*) objformat=aout ;;
9108 *) objformat=elf ;;
9109 esac
9110 fi
9111 version_type=freebsd-$objformat
9112 case $version_type in
9113 freebsd-elf*)
9114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9115 need_version=no
9116 need_lib_prefix=no
9117 ;;
9118 freebsd-*)
9119 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9120 need_version=yes
9121 ;;
9122 esac
9123 shlibpath_var=LD_LIBRARY_PATH
9124 case $host_os in
9125 freebsd2*)
9126 shlibpath_overrides_runpath=yes
9127 ;;
9128 freebsd3.[01]* | freebsdelf3.[01]*)
9129 shlibpath_overrides_runpath=yes
9130 hardcode_into_libs=yes
9131 ;;
9132 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9133 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9134 shlibpath_overrides_runpath=no
9135 hardcode_into_libs=yes
9136 ;;
ac40fd9e 9137 *) # from 4.6 on, and DragonFly
d9898ee8 9138 shlibpath_overrides_runpath=yes
9139 hardcode_into_libs=yes
9140 ;;
9141 esac
9142 ;;
9143
9144gnu*)
9145 version_type=linux
9146 need_lib_prefix=no
9147 need_version=no
9148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9149 soname_spec='${libname}${release}${shared_ext}$major'
9150 shlibpath_var=LD_LIBRARY_PATH
9151 hardcode_into_libs=yes
9152 ;;
9153
9154hpux9* | hpux10* | hpux11*)
9155 # Give a soname corresponding to the major version so that dld.sl refuses to
9156 # link against other versions.
9157 version_type=sunos
9158 need_lib_prefix=no
9159 need_version=no
9160 case $host_cpu in
9161 ia64*)
9162 shrext_cmds='.so'
9163 hardcode_into_libs=yes
9164 dynamic_linker="$host_os dld.so"
9165 shlibpath_var=LD_LIBRARY_PATH
9166 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9168 soname_spec='${libname}${release}${shared_ext}$major'
9169 if test "X$HPUX_IA64_MODE" = X32; then
9170 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9171 else
9172 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9173 fi
9174 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9175 ;;
9176 hppa*64*)
9177 shrext_cmds='.sl'
9178 hardcode_into_libs=yes
9179 dynamic_linker="$host_os dld.sl"
9180 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9181 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9183 soname_spec='${libname}${release}${shared_ext}$major'
9184 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9185 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9186 ;;
9187 *)
9188 shrext_cmds='.sl'
9189 dynamic_linker="$host_os dld.sl"
9190 shlibpath_var=SHLIB_PATH
9191 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9193 soname_spec='${libname}${release}${shared_ext}$major'
9194 ;;
9195 esac
9196 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9197 postinstall_cmds='chmod 555 $lib'
9198 ;;
9199
ac40fd9e 9200interix[3-9]*)
d9898ee8 9201 version_type=linux
9202 need_lib_prefix=no
9203 need_version=no
9204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9205 soname_spec='${libname}${release}${shared_ext}$major'
9206 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9207 shlibpath_var=LD_LIBRARY_PATH
9208 shlibpath_overrides_runpath=no
9209 hardcode_into_libs=yes
9210 ;;
9211
9212irix5* | irix6* | nonstopux*)
9213 case $host_os in
9214 nonstopux*) version_type=nonstopux ;;
9215 *)
9216 if test "$lt_cv_prog_gnu_ld" = yes; then
9217 version_type=linux
9218 else
9219 version_type=irix
9220 fi ;;
9221 esac
9222 need_lib_prefix=no
9223 need_version=no
9224 soname_spec='${libname}${release}${shared_ext}$major'
9225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9226 case $host_os in
9227 irix5* | nonstopux*)
9228 libsuff= shlibsuff=
9229 ;;
9230 *)
9231 case $LD in # libtool.m4 will add one of these switches to LD
9232 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9233 libsuff= shlibsuff= libmagic=32-bit;;
9234 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9235 libsuff=32 shlibsuff=N32 libmagic=N32;;
9236 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9237 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9238 *) libsuff= shlibsuff= libmagic=never-match;;
9239 esac
9240 ;;
9241 esac
9242 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9243 shlibpath_overrides_runpath=no
9244 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9245 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9246 hardcode_into_libs=yes
9247 ;;
9248
9249# No shared lib support for Linux oldld, aout, or coff.
9250linux*oldld* | linux*aout* | linux*coff*)
9251 dynamic_linker=no
9252 ;;
9253
9254# This must be Linux ELF.
ac40fd9e 9255linux* | k*bsd*-gnu)
d9898ee8 9256 version_type=linux
9257 need_lib_prefix=no
9258 need_version=no
9259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9260 soname_spec='${libname}${release}${shared_ext}$major'
9261 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9262 shlibpath_var=LD_LIBRARY_PATH
9263 shlibpath_overrides_runpath=no
9264 # This implies no fast_install, which is unacceptable.
9265 # Some rework will be needed to allow for fast_install
9266 # before this can be enabled.
9267 hardcode_into_libs=yes
ac40fd9e 9268 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9269 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
d9898ee8 9270
9271 # Append ld.so.conf contents to the search path
9272 if test -f /etc/ld.so.conf; then
ac40fd9e 9273 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' ' '`
9274 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
d9898ee8 9275 fi
9276
9277 # We used to test for /lib/ld.so.1 and disable shared libraries on
9278 # powerpc, because MkLinux only supported shared libraries with the
9279 # GNU dynamic linker. Since this was broken with cross compilers,
9280 # most powerpc-linux boxes support dynamic linking these days and
9281 # people can always --disable-shared, the test was removed, and we
9282 # assume the GNU/Linux dynamic linker is in use.
9283 dynamic_linker='GNU/Linux ld.so'
9284 ;;
9285
d9898ee8 9286netbsd*)
9287 version_type=sunos
9288 need_lib_prefix=no
9289 need_version=no
9290 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9292 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9293 dynamic_linker='NetBSD (a.out) ld.so'
9294 else
9295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9296 soname_spec='${libname}${release}${shared_ext}$major'
9297 dynamic_linker='NetBSD ld.elf_so'
9298 fi
9299 shlibpath_var=LD_LIBRARY_PATH
9300 shlibpath_overrides_runpath=yes
9301 hardcode_into_libs=yes
9302 ;;
9303
9304newsos6)
9305 version_type=linux
9306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9307 shlibpath_var=LD_LIBRARY_PATH
9308 shlibpath_overrides_runpath=yes
9309 ;;
9310
9311nto-qnx*)
9312 version_type=linux
9313 need_lib_prefix=no
9314 need_version=no
9315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9316 soname_spec='${libname}${release}${shared_ext}$major'
9317 shlibpath_var=LD_LIBRARY_PATH
9318 shlibpath_overrides_runpath=yes
9319 ;;
9320
9321openbsd*)
9322 version_type=sunos
9323 sys_lib_dlsearch_path_spec="/usr/lib"
9324 need_lib_prefix=no
9325 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9326 case $host_os in
9327 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9328 *) need_version=no ;;
9329 esac
9330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9331 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9332 shlibpath_var=LD_LIBRARY_PATH
9333 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9334 case $host_os in
9335 openbsd2.[89] | openbsd2.[89].*)
9336 shlibpath_overrides_runpath=no
9337 ;;
9338 *)
9339 shlibpath_overrides_runpath=yes
9340 ;;
9341 esac
9342 else
9343 shlibpath_overrides_runpath=yes
9344 fi
9345 ;;
9346
9347os2*)
9348 libname_spec='$name'
9349 shrext_cmds=".dll"
9350 need_lib_prefix=no
9351 library_names_spec='$libname${shared_ext} $libname.a'
9352 dynamic_linker='OS/2 ld.exe'
9353 shlibpath_var=LIBPATH
9354 ;;
9355
9356osf3* | osf4* | osf5*)
9357 version_type=osf
9358 need_lib_prefix=no
9359 need_version=no
9360 soname_spec='${libname}${release}${shared_ext}$major'
9361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9362 shlibpath_var=LD_LIBRARY_PATH
9363 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9364 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9365 ;;
9366
ac40fd9e 9367rdos*)
9368 dynamic_linker=no
9369 ;;
9370
d9898ee8 9371solaris*)
9372 version_type=linux
9373 need_lib_prefix=no
9374 need_version=no
9375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9376 soname_spec='${libname}${release}${shared_ext}$major'
9377 shlibpath_var=LD_LIBRARY_PATH
9378 shlibpath_overrides_runpath=yes
9379 hardcode_into_libs=yes
9380 # ldd complains unless libraries are executable
9381 postinstall_cmds='chmod +x $lib'
9382 ;;
9383
9384sunos4*)
9385 version_type=sunos
9386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9387 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9388 shlibpath_var=LD_LIBRARY_PATH
9389 shlibpath_overrides_runpath=yes
9390 if test "$with_gnu_ld" = yes; then
9391 need_lib_prefix=no
9392 fi
9393 need_version=yes
9394 ;;
9395
9396sysv4 | sysv4.3*)
9397 version_type=linux
9398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9399 soname_spec='${libname}${release}${shared_ext}$major'
9400 shlibpath_var=LD_LIBRARY_PATH
9401 case $host_vendor in
9402 sni)
9403 shlibpath_overrides_runpath=no
9404 need_lib_prefix=no
9405 export_dynamic_flag_spec='${wl}-Blargedynsym'
9406 runpath_var=LD_RUN_PATH
9407 ;;
9408 siemens)
9409 need_lib_prefix=no
9410 ;;
9411 motorola)
9412 need_lib_prefix=no
9413 need_version=no
9414 shlibpath_overrides_runpath=no
9415 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9416 ;;
9417 esac
9418 ;;
9419
9420sysv4*MP*)
9421 if test -d /usr/nec ;then
9422 version_type=linux
9423 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9424 soname_spec='$libname${shared_ext}.$major'
9425 shlibpath_var=LD_LIBRARY_PATH
9426 fi
9427 ;;
9428
9429sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9430 version_type=freebsd-elf
9431 need_lib_prefix=no
9432 need_version=no
9433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9434 soname_spec='${libname}${release}${shared_ext}$major'
9435 shlibpath_var=LD_LIBRARY_PATH
9436 hardcode_into_libs=yes
9437 if test "$with_gnu_ld" = yes; then
9438 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9439 shlibpath_overrides_runpath=no
9440 else
9441 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9442 shlibpath_overrides_runpath=yes
9443 case $host_os in
9444 sco3.2v5*)
9445 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9446 ;;
9447 esac
9448 fi
9449 sys_lib_dlsearch_path_spec='/usr/lib'
9450 ;;
9451
9452uts4*)
9453 version_type=linux
9454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9455 soname_spec='${libname}${release}${shared_ext}$major'
9456 shlibpath_var=LD_LIBRARY_PATH
9457 ;;
9458
9459*)
9460 dynamic_linker=no
9461 ;;
9462esac
dd184caf 9463{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9464echo "${ECHO_T}$dynamic_linker" >&6; }
d9898ee8 9465test "$dynamic_linker" = no && can_build_shared=no
9466
9467variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9468if test "$GCC" = yes; then
9469 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9470fi
9471
dd184caf 9472{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9473echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
d9898ee8 9474hardcode_action=
9475if test -n "$hardcode_libdir_flag_spec" || \
9476 test -n "$runpath_var" || \
9477 test "X$hardcode_automatic" = "Xyes" ; then
9478
9479 # We can hardcode non-existant directories.
9480 if test "$hardcode_direct" != no &&
9481 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9482 # have to relink, otherwise we might link with an installed library
9483 # when we should be linking with a yet-to-be-installed one
9484 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9485 test "$hardcode_minus_L" != no; then
9486 # Linking always hardcodes the temporary library directory.
9487 hardcode_action=relink
9488 else
9489 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9490 hardcode_action=immediate
9491 fi
9492else
9493 # We cannot hardcode anything, or else we can only hardcode existing
9494 # directories.
9495 hardcode_action=unsupported
9496fi
dd184caf 9497{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
9498echo "${ECHO_T}$hardcode_action" >&6; }
d9898ee8 9499
9500if test "$hardcode_action" = relink; then
9501 # Fast installation is not supported
9502 enable_fast_install=no
9503elif test "$shlibpath_overrides_runpath" = yes ||
9504 test "$enable_shared" = no; then
9505 # Fast installation is not necessary
9506 enable_fast_install=needless
9507fi
9508
9509striplib=
9510old_striplib=
dd184caf 9511{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9512echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
d9898ee8 9513if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9514 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9515 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
dd184caf 9516 { echo "$as_me:$LINENO: result: yes" >&5
9517echo "${ECHO_T}yes" >&6; }
d9898ee8 9518else
9519# FIXME - insert some real tests, host_os isn't really good enough
9520 case $host_os in
9521 darwin*)
9522 if test -n "$STRIP" ; then
9523 striplib="$STRIP -x"
ac40fd9e 9524 old_striplib="$STRIP -S"
dd184caf 9525 { echo "$as_me:$LINENO: result: yes" >&5
9526echo "${ECHO_T}yes" >&6; }
d9898ee8 9527 else
dd184caf 9528 { echo "$as_me:$LINENO: result: no" >&5
9529echo "${ECHO_T}no" >&6; }
d9898ee8 9530fi
9531 ;;
9532 *)
dd184caf 9533 { echo "$as_me:$LINENO: result: no" >&5
9534echo "${ECHO_T}no" >&6; }
d9898ee8 9535 ;;
9536 esac
9537fi
9538
9539if test "x$enable_dlopen" != xyes; then
9540 enable_dlopen=unknown
9541 enable_dlopen_self=unknown
9542 enable_dlopen_self_static=unknown
9543else
9544 lt_cv_dlopen=no
9545 lt_cv_dlopen_libs=
9546
9547 case $host_os in
9548 beos*)
9549 lt_cv_dlopen="load_add_on"
9550 lt_cv_dlopen_libs=
9551 lt_cv_dlopen_self=yes
9552 ;;
9553
9554 mingw* | pw32*)
9555 lt_cv_dlopen="LoadLibrary"
9556 lt_cv_dlopen_libs=
9557 ;;
9558
9559 cygwin*)
9560 lt_cv_dlopen="dlopen"
9561 lt_cv_dlopen_libs=
9562 ;;
9563
9564 darwin*)
9565 # if libdl is installed we need to link against it
dd184caf 9566 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9567echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
d9898ee8 9568if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9569 echo $ECHO_N "(cached) $ECHO_C" >&6
9570else
9571 ac_check_lib_save_LIBS=$LIBS
9572LIBS="-ldl $LIBS"
9573cat >conftest.$ac_ext <<_ACEOF
9574/* confdefs.h. */
9575_ACEOF
9576cat confdefs.h >>conftest.$ac_ext
9577cat >>conftest.$ac_ext <<_ACEOF
9578/* end confdefs.h. */
9579
dd184caf 9580/* Override any GCC internal prototype to avoid an error.
9581 Use char because int might match the return type of a GCC
9582 builtin and then its argument prototype would still apply. */
d9898ee8 9583#ifdef __cplusplus
9584extern "C"
9585#endif
d9898ee8 9586char dlopen ();
9587int
9588main ()
9589{
dd184caf 9590return dlopen ();
d9898ee8 9591 ;
9592 return 0;
9593}
9594_ACEOF
9595rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 9596if { (ac_try="$ac_link"
9597case "(($ac_try" in
9598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9599 *) ac_try_echo=$ac_try;;
9600esac
9601eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9602 (eval "$ac_link") 2>conftest.er1
d9898ee8 9603 ac_status=$?
9604 grep -v '^ *+' conftest.er1 >conftest.err
9605 rm -f conftest.er1
9606 cat conftest.err >&5
9607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 9608 (exit $ac_status); } && {
9609 test -z "$ac_c_werror_flag" ||
9610 test ! -s conftest.err
9611 } && test -s conftest$ac_exeext &&
9612 $as_test_x conftest$ac_exeext; then
d9898ee8 9613 ac_cv_lib_dl_dlopen=yes
9614else
9615 echo "$as_me: failed program was:" >&5
9616sed 's/^/| /' conftest.$ac_ext >&5
9617
dd184caf 9618 ac_cv_lib_dl_dlopen=no
d9898ee8 9619fi
dd184caf 9620
9621rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 9622 conftest$ac_exeext conftest.$ac_ext
9623LIBS=$ac_check_lib_save_LIBS
9624fi
dd184caf 9625{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9626echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
d9898ee8 9627if test $ac_cv_lib_dl_dlopen = yes; then
9628 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9629else
9630
9631 lt_cv_dlopen="dyld"
9632 lt_cv_dlopen_libs=
9633 lt_cv_dlopen_self=yes
9634
9635fi
9636
9637 ;;
9638
9639 *)
dd184caf 9640 { echo "$as_me:$LINENO: checking for shl_load" >&5
9641echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
d9898ee8 9642if test "${ac_cv_func_shl_load+set}" = set; then
9643 echo $ECHO_N "(cached) $ECHO_C" >&6
9644else
9645 cat >conftest.$ac_ext <<_ACEOF
9646/* confdefs.h. */
9647_ACEOF
9648cat confdefs.h >>conftest.$ac_ext
9649cat >>conftest.$ac_ext <<_ACEOF
9650/* end confdefs.h. */
9651/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9652 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9653#define shl_load innocuous_shl_load
9654
9655/* System header to define __stub macros and hopefully few prototypes,
9656 which can conflict with char shl_load (); below.
9657 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9658 <limits.h> exists even on freestanding compilers. */
9659
9660#ifdef __STDC__
9661# include <limits.h>
9662#else
9663# include <assert.h>
9664#endif
9665
9666#undef shl_load
9667
dd184caf 9668/* Override any GCC internal prototype to avoid an error.
9669 Use char because int might match the return type of a GCC
9670 builtin and then its argument prototype would still apply. */
d9898ee8 9671#ifdef __cplusplus
9672extern "C"
d9898ee8 9673#endif
d9898ee8 9674char shl_load ();
9675/* The GNU C library defines this for functions which it implements
9676 to always fail with ENOSYS. Some functions are actually named
9677 something starting with __ and the normal name is an alias. */
dd184caf 9678#if defined __stub_shl_load || defined __stub___shl_load
d9898ee8 9679choke me
d9898ee8 9680#endif
9681
9682int
9683main ()
9684{
dd184caf 9685return shl_load ();
d9898ee8 9686 ;
9687 return 0;
9688}
9689_ACEOF
9690rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 9691if { (ac_try="$ac_link"
9692case "(($ac_try" in
9693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9694 *) ac_try_echo=$ac_try;;
9695esac
9696eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9697 (eval "$ac_link") 2>conftest.er1
d9898ee8 9698 ac_status=$?
9699 grep -v '^ *+' conftest.er1 >conftest.err
9700 rm -f conftest.er1
9701 cat conftest.err >&5
9702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 9703 (exit $ac_status); } && {
9704 test -z "$ac_c_werror_flag" ||
9705 test ! -s conftest.err
9706 } && test -s conftest$ac_exeext &&
9707 $as_test_x conftest$ac_exeext; then
d9898ee8 9708 ac_cv_func_shl_load=yes
9709else
9710 echo "$as_me: failed program was:" >&5
9711sed 's/^/| /' conftest.$ac_ext >&5
9712
dd184caf 9713 ac_cv_func_shl_load=no
d9898ee8 9714fi
dd184caf 9715
9716rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 9717 conftest$ac_exeext conftest.$ac_ext
9718fi
dd184caf 9719{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9720echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
d9898ee8 9721if test $ac_cv_func_shl_load = yes; then
9722 lt_cv_dlopen="shl_load"
9723else
dd184caf 9724 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9725echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
d9898ee8 9726if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9727 echo $ECHO_N "(cached) $ECHO_C" >&6
9728else
9729 ac_check_lib_save_LIBS=$LIBS
9730LIBS="-ldld $LIBS"
9731cat >conftest.$ac_ext <<_ACEOF
9732/* confdefs.h. */
9733_ACEOF
9734cat confdefs.h >>conftest.$ac_ext
9735cat >>conftest.$ac_ext <<_ACEOF
9736/* end confdefs.h. */
9737
dd184caf 9738/* Override any GCC internal prototype to avoid an error.
9739 Use char because int might match the return type of a GCC
9740 builtin and then its argument prototype would still apply. */
d9898ee8 9741#ifdef __cplusplus
9742extern "C"
9743#endif
d9898ee8 9744char shl_load ();
9745int
9746main ()
9747{
dd184caf 9748return shl_load ();
d9898ee8 9749 ;
9750 return 0;
9751}
9752_ACEOF
9753rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 9754if { (ac_try="$ac_link"
9755case "(($ac_try" in
9756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9757 *) ac_try_echo=$ac_try;;
9758esac
9759eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9760 (eval "$ac_link") 2>conftest.er1
d9898ee8 9761 ac_status=$?
9762 grep -v '^ *+' conftest.er1 >conftest.err
9763 rm -f conftest.er1
9764 cat conftest.err >&5
9765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 9766 (exit $ac_status); } && {
9767 test -z "$ac_c_werror_flag" ||
9768 test ! -s conftest.err
9769 } && test -s conftest$ac_exeext &&
9770 $as_test_x conftest$ac_exeext; then
d9898ee8 9771 ac_cv_lib_dld_shl_load=yes
9772else
9773 echo "$as_me: failed program was:" >&5
9774sed 's/^/| /' conftest.$ac_ext >&5
9775
dd184caf 9776 ac_cv_lib_dld_shl_load=no
d9898ee8 9777fi
dd184caf 9778
9779rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 9780 conftest$ac_exeext conftest.$ac_ext
9781LIBS=$ac_check_lib_save_LIBS
9782fi
dd184caf 9783{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9784echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
d9898ee8 9785if test $ac_cv_lib_dld_shl_load = yes; then
9786 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9787else
dd184caf 9788 { echo "$as_me:$LINENO: checking for dlopen" >&5
9789echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
d9898ee8 9790if test "${ac_cv_func_dlopen+set}" = set; then
9791 echo $ECHO_N "(cached) $ECHO_C" >&6
9792else
9793 cat >conftest.$ac_ext <<_ACEOF
9794/* confdefs.h. */
9795_ACEOF
9796cat confdefs.h >>conftest.$ac_ext
9797cat >>conftest.$ac_ext <<_ACEOF
9798/* end confdefs.h. */
9799/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9800 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9801#define dlopen innocuous_dlopen
9802
9803/* System header to define __stub macros and hopefully few prototypes,
9804 which can conflict with char dlopen (); below.
9805 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9806 <limits.h> exists even on freestanding compilers. */
9807
9808#ifdef __STDC__
9809# include <limits.h>
9810#else
9811# include <assert.h>
9812#endif
9813
9814#undef dlopen
9815
dd184caf 9816/* Override any GCC internal prototype to avoid an error.
9817 Use char because int might match the return type of a GCC
9818 builtin and then its argument prototype would still apply. */
d9898ee8 9819#ifdef __cplusplus
9820extern "C"
d9898ee8 9821#endif
d9898ee8 9822char dlopen ();
9823/* The GNU C library defines this for functions which it implements
9824 to always fail with ENOSYS. Some functions are actually named
9825 something starting with __ and the normal name is an alias. */
dd184caf 9826#if defined __stub_dlopen || defined __stub___dlopen
d9898ee8 9827choke me
d9898ee8 9828#endif
9829
9830int
9831main ()
9832{
dd184caf 9833return dlopen ();
d9898ee8 9834 ;
9835 return 0;
9836}
9837_ACEOF
9838rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 9839if { (ac_try="$ac_link"
9840case "(($ac_try" in
9841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9842 *) ac_try_echo=$ac_try;;
9843esac
9844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9845 (eval "$ac_link") 2>conftest.er1
d9898ee8 9846 ac_status=$?
9847 grep -v '^ *+' conftest.er1 >conftest.err
9848 rm -f conftest.er1
9849 cat conftest.err >&5
9850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 9851 (exit $ac_status); } && {
9852 test -z "$ac_c_werror_flag" ||
9853 test ! -s conftest.err
9854 } && test -s conftest$ac_exeext &&
9855 $as_test_x conftest$ac_exeext; then
d9898ee8 9856 ac_cv_func_dlopen=yes
9857else
9858 echo "$as_me: failed program was:" >&5
9859sed 's/^/| /' conftest.$ac_ext >&5
9860
dd184caf 9861 ac_cv_func_dlopen=no
d9898ee8 9862fi
dd184caf 9863
9864rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 9865 conftest$ac_exeext conftest.$ac_ext
9866fi
dd184caf 9867{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9868echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
d9898ee8 9869if test $ac_cv_func_dlopen = yes; then
9870 lt_cv_dlopen="dlopen"
9871else
dd184caf 9872 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9873echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
d9898ee8 9874if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9875 echo $ECHO_N "(cached) $ECHO_C" >&6
9876else
9877 ac_check_lib_save_LIBS=$LIBS
9878LIBS="-ldl $LIBS"
9879cat >conftest.$ac_ext <<_ACEOF
9880/* confdefs.h. */
9881_ACEOF
9882cat confdefs.h >>conftest.$ac_ext
9883cat >>conftest.$ac_ext <<_ACEOF
9884/* end confdefs.h. */
9885
dd184caf 9886/* Override any GCC internal prototype to avoid an error.
9887 Use char because int might match the return type of a GCC
9888 builtin and then its argument prototype would still apply. */
d9898ee8 9889#ifdef __cplusplus
9890extern "C"
9891#endif
d9898ee8 9892char dlopen ();
9893int
9894main ()
9895{
dd184caf 9896return dlopen ();
d9898ee8 9897 ;
9898 return 0;
9899}
9900_ACEOF
9901rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 9902if { (ac_try="$ac_link"
9903case "(($ac_try" in
9904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9905 *) ac_try_echo=$ac_try;;
9906esac
9907eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9908 (eval "$ac_link") 2>conftest.er1
d9898ee8 9909 ac_status=$?
9910 grep -v '^ *+' conftest.er1 >conftest.err
9911 rm -f conftest.er1
9912 cat conftest.err >&5
9913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 9914 (exit $ac_status); } && {
9915 test -z "$ac_c_werror_flag" ||
9916 test ! -s conftest.err
9917 } && test -s conftest$ac_exeext &&
9918 $as_test_x conftest$ac_exeext; then
d9898ee8 9919 ac_cv_lib_dl_dlopen=yes
9920else
9921 echo "$as_me: failed program was:" >&5
9922sed 's/^/| /' conftest.$ac_ext >&5
9923
dd184caf 9924 ac_cv_lib_dl_dlopen=no
d9898ee8 9925fi
dd184caf 9926
9927rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 9928 conftest$ac_exeext conftest.$ac_ext
9929LIBS=$ac_check_lib_save_LIBS
9930fi
dd184caf 9931{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9932echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
d9898ee8 9933if test $ac_cv_lib_dl_dlopen = yes; then
9934 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9935else
dd184caf 9936 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9937echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
d9898ee8 9938if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9939 echo $ECHO_N "(cached) $ECHO_C" >&6
9940else
9941 ac_check_lib_save_LIBS=$LIBS
9942LIBS="-lsvld $LIBS"
9943cat >conftest.$ac_ext <<_ACEOF
9944/* confdefs.h. */
9945_ACEOF
9946cat confdefs.h >>conftest.$ac_ext
9947cat >>conftest.$ac_ext <<_ACEOF
9948/* end confdefs.h. */
9949
dd184caf 9950/* Override any GCC internal prototype to avoid an error.
9951 Use char because int might match the return type of a GCC
9952 builtin and then its argument prototype would still apply. */
d9898ee8 9953#ifdef __cplusplus
9954extern "C"
9955#endif
d9898ee8 9956char dlopen ();
9957int
9958main ()
9959{
dd184caf 9960return dlopen ();
d9898ee8 9961 ;
9962 return 0;
9963}
9964_ACEOF
9965rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 9966if { (ac_try="$ac_link"
9967case "(($ac_try" in
9968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9969 *) ac_try_echo=$ac_try;;
9970esac
9971eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9972 (eval "$ac_link") 2>conftest.er1
d9898ee8 9973 ac_status=$?
9974 grep -v '^ *+' conftest.er1 >conftest.err
9975 rm -f conftest.er1
9976 cat conftest.err >&5
9977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 9978 (exit $ac_status); } && {
9979 test -z "$ac_c_werror_flag" ||
9980 test ! -s conftest.err
9981 } && test -s conftest$ac_exeext &&
9982 $as_test_x conftest$ac_exeext; then
d9898ee8 9983 ac_cv_lib_svld_dlopen=yes
9984else
9985 echo "$as_me: failed program was:" >&5
9986sed 's/^/| /' conftest.$ac_ext >&5
9987
dd184caf 9988 ac_cv_lib_svld_dlopen=no
d9898ee8 9989fi
dd184caf 9990
9991rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 9992 conftest$ac_exeext conftest.$ac_ext
9993LIBS=$ac_check_lib_save_LIBS
9994fi
dd184caf 9995{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9996echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
d9898ee8 9997if test $ac_cv_lib_svld_dlopen = yes; then
9998 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9999else
dd184caf 10000 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10001echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
d9898ee8 10002if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10003 echo $ECHO_N "(cached) $ECHO_C" >&6
10004else
10005 ac_check_lib_save_LIBS=$LIBS
10006LIBS="-ldld $LIBS"
10007cat >conftest.$ac_ext <<_ACEOF
10008/* confdefs.h. */
10009_ACEOF
10010cat confdefs.h >>conftest.$ac_ext
10011cat >>conftest.$ac_ext <<_ACEOF
10012/* end confdefs.h. */
10013
dd184caf 10014/* Override any GCC internal prototype to avoid an error.
10015 Use char because int might match the return type of a GCC
10016 builtin and then its argument prototype would still apply. */
d9898ee8 10017#ifdef __cplusplus
10018extern "C"
10019#endif
d9898ee8 10020char dld_link ();
10021int
10022main ()
10023{
dd184caf 10024return dld_link ();
d9898ee8 10025 ;
10026 return 0;
10027}
10028_ACEOF
10029rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 10030if { (ac_try="$ac_link"
10031case "(($ac_try" in
10032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10033 *) ac_try_echo=$ac_try;;
10034esac
10035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10036 (eval "$ac_link") 2>conftest.er1
d9898ee8 10037 ac_status=$?
10038 grep -v '^ *+' conftest.er1 >conftest.err
10039 rm -f conftest.er1
10040 cat conftest.err >&5
10041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 10042 (exit $ac_status); } && {
10043 test -z "$ac_c_werror_flag" ||
10044 test ! -s conftest.err
10045 } && test -s conftest$ac_exeext &&
10046 $as_test_x conftest$ac_exeext; then
d9898ee8 10047 ac_cv_lib_dld_dld_link=yes
10048else
10049 echo "$as_me: failed program was:" >&5
10050sed 's/^/| /' conftest.$ac_ext >&5
10051
dd184caf 10052 ac_cv_lib_dld_dld_link=no
d9898ee8 10053fi
dd184caf 10054
10055rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 10056 conftest$ac_exeext conftest.$ac_ext
10057LIBS=$ac_check_lib_save_LIBS
10058fi
dd184caf 10059{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10060echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
d9898ee8 10061if test $ac_cv_lib_dld_dld_link = yes; then
10062 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10063fi
10064
10065
10066fi
10067
10068
10069fi
10070
10071
10072fi
10073
10074
10075fi
10076
10077
10078fi
10079
10080 ;;
10081 esac
10082
10083 if test "x$lt_cv_dlopen" != xno; then
10084 enable_dlopen=yes
10085 else
10086 enable_dlopen=no
10087 fi
10088
10089 case $lt_cv_dlopen in
10090 dlopen)
10091 save_CPPFLAGS="$CPPFLAGS"
10092 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10093
10094 save_LDFLAGS="$LDFLAGS"
10095 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10096
10097 save_LIBS="$LIBS"
10098 LIBS="$lt_cv_dlopen_libs $LIBS"
10099
dd184caf 10100 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10101echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
d9898ee8 10102if test "${lt_cv_dlopen_self+set}" = set; then
10103 echo $ECHO_N "(cached) $ECHO_C" >&6
10104else
10105 if test "$cross_compiling" = yes; then :
10106 lt_cv_dlopen_self=cross
10107else
10108 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10109 lt_status=$lt_dlunknown
10110 cat > conftest.$ac_ext <<EOF
ac40fd9e 10111#line 10111 "configure"
d9898ee8 10112#include "confdefs.h"
10113
10114#if HAVE_DLFCN_H
10115#include <dlfcn.h>
10116#endif
10117
10118#include <stdio.h>
10119
10120#ifdef RTLD_GLOBAL
10121# define LT_DLGLOBAL RTLD_GLOBAL
10122#else
10123# ifdef DL_GLOBAL
10124# define LT_DLGLOBAL DL_GLOBAL
10125# else
10126# define LT_DLGLOBAL 0
10127# endif
10128#endif
10129
10130/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10131 find out it does not work in some platform. */
10132#ifndef LT_DLLAZY_OR_NOW
10133# ifdef RTLD_LAZY
10134# define LT_DLLAZY_OR_NOW RTLD_LAZY
10135# else
10136# ifdef DL_LAZY
10137# define LT_DLLAZY_OR_NOW DL_LAZY
10138# else
10139# ifdef RTLD_NOW
10140# define LT_DLLAZY_OR_NOW RTLD_NOW
10141# else
10142# ifdef DL_NOW
10143# define LT_DLLAZY_OR_NOW DL_NOW
10144# else
10145# define LT_DLLAZY_OR_NOW 0
10146# endif
10147# endif
10148# endif
10149# endif
10150#endif
10151
10152#ifdef __cplusplus
10153extern "C" void exit (int);
10154#endif
10155
10156void fnord() { int i=42;}
10157int main ()
10158{
10159 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10160 int status = $lt_dlunknown;
10161
10162 if (self)
10163 {
10164 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10165 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10166 /* dlclose (self); */
10167 }
10168 else
10169 puts (dlerror ());
10170
10171 exit (status);
10172}
10173EOF
10174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10175 (eval $ac_link) 2>&5
10176 ac_status=$?
10177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10178 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10179 (./conftest; exit; ) >&5 2>/dev/null
10180 lt_status=$?
10181 case x$lt_status in
10182 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10183 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10184 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10185 esac
10186 else :
10187 # compilation failed
10188 lt_cv_dlopen_self=no
10189 fi
10190fi
10191rm -fr conftest*
10192
10193
10194fi
dd184caf 10195{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10196echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
d9898ee8 10197
10198 if test "x$lt_cv_dlopen_self" = xyes; then
10199 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
dd184caf 10200 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10201echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
d9898ee8 10202if test "${lt_cv_dlopen_self_static+set}" = set; then
10203 echo $ECHO_N "(cached) $ECHO_C" >&6
10204else
10205 if test "$cross_compiling" = yes; then :
10206 lt_cv_dlopen_self_static=cross
10207else
10208 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10209 lt_status=$lt_dlunknown
10210 cat > conftest.$ac_ext <<EOF
ac40fd9e 10211#line 10211 "configure"
d9898ee8 10212#include "confdefs.h"
10213
10214#if HAVE_DLFCN_H
10215#include <dlfcn.h>
10216#endif
10217
10218#include <stdio.h>
10219
10220#ifdef RTLD_GLOBAL
10221# define LT_DLGLOBAL RTLD_GLOBAL
10222#else
10223# ifdef DL_GLOBAL
10224# define LT_DLGLOBAL DL_GLOBAL
10225# else
10226# define LT_DLGLOBAL 0
10227# endif
10228#endif
10229
10230/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10231 find out it does not work in some platform. */
10232#ifndef LT_DLLAZY_OR_NOW
10233# ifdef RTLD_LAZY
10234# define LT_DLLAZY_OR_NOW RTLD_LAZY
10235# else
10236# ifdef DL_LAZY
10237# define LT_DLLAZY_OR_NOW DL_LAZY
10238# else
10239# ifdef RTLD_NOW
10240# define LT_DLLAZY_OR_NOW RTLD_NOW
10241# else
10242# ifdef DL_NOW
10243# define LT_DLLAZY_OR_NOW DL_NOW
10244# else
10245# define LT_DLLAZY_OR_NOW 0
10246# endif
10247# endif
10248# endif
10249# endif
10250#endif
10251
10252#ifdef __cplusplus
10253extern "C" void exit (int);
10254#endif
10255
10256void fnord() { int i=42;}
10257int main ()
10258{
10259 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10260 int status = $lt_dlunknown;
10261
10262 if (self)
10263 {
10264 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10265 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10266 /* dlclose (self); */
10267 }
10268 else
10269 puts (dlerror ());
10270
10271 exit (status);
10272}
10273EOF
10274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10275 (eval $ac_link) 2>&5
10276 ac_status=$?
10277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10278 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10279 (./conftest; exit; ) >&5 2>/dev/null
10280 lt_status=$?
10281 case x$lt_status in
10282 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10283 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10284 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10285 esac
10286 else :
10287 # compilation failed
10288 lt_cv_dlopen_self_static=no
10289 fi
10290fi
10291rm -fr conftest*
10292
10293
10294fi
dd184caf 10295{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10296echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
d9898ee8 10297 fi
10298
10299 CPPFLAGS="$save_CPPFLAGS"
10300 LDFLAGS="$save_LDFLAGS"
10301 LIBS="$save_LIBS"
10302 ;;
10303 esac
10304
10305 case $lt_cv_dlopen_self in
10306 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10307 *) enable_dlopen_self=unknown ;;
10308 esac
10309
10310 case $lt_cv_dlopen_self_static in
10311 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10312 *) enable_dlopen_self_static=unknown ;;
10313 esac
10314fi
10315
10316
10317# Report which library types will actually be built
dd184caf 10318{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10319echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10320{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
10321echo "${ECHO_T}$can_build_shared" >&6; }
d9898ee8 10322
dd184caf 10323{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10324echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
d9898ee8 10325test "$can_build_shared" = "no" && enable_shared=no
10326
10327# On AIX, shared libraries and static libraries use the same namespace, and
10328# are all built from PIC.
10329case $host_os in
10330aix3*)
10331 test "$enable_shared" = yes && enable_static=no
10332 if test -n "$RANLIB"; then
10333 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10334 postinstall_cmds='$RANLIB $lib'
10335 fi
10336 ;;
10337
10338aix4* | aix5*)
10339 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10340 test "$enable_shared" = yes && enable_static=no
10341 fi
10342 ;;
10343esac
dd184caf 10344{ echo "$as_me:$LINENO: result: $enable_shared" >&5
10345echo "${ECHO_T}$enable_shared" >&6; }
d9898ee8 10346
dd184caf 10347{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10348echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
d9898ee8 10349# Make sure either enable_shared or enable_static is yes.
10350test "$enable_shared" = yes || enable_static=yes
dd184caf 10351{ echo "$as_me:$LINENO: result: $enable_static" >&5
10352echo "${ECHO_T}$enable_static" >&6; }
d9898ee8 10353
10354# The else clause should only fire when bootstrapping the
10355# libtool distribution, otherwise you forgot to ship ltmain.sh
10356# with your package, and you will get complaints that there are
10357# no rules to generate ltmain.sh.
10358if test -f "$ltmain"; then
10359 # See if we are running on zsh, and set the options which allow our commands through
10360 # without removal of \ escapes.
10361 if test -n "${ZSH_VERSION+set}" ; then
10362 setopt NO_GLOB_SUBST
10363 fi
10364 # Now quote all the things that may contain metacharacters while being
10365 # careful not to overquote the AC_SUBSTed values. We take copies of the
10366 # variables and quote the copies for generation of the libtool script.
10367 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10368 SED SHELL STRIP \
10369 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10370 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10371 deplibs_check_method reload_flag reload_cmds need_locks \
10372 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10373 lt_cv_sys_global_symbol_to_c_name_address \
10374 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10375 old_postinstall_cmds old_postuninstall_cmds \
10376 compiler \
10377 CC \
10378 LD \
10379 lt_prog_compiler_wl \
10380 lt_prog_compiler_pic \
10381 lt_prog_compiler_static \
10382 lt_prog_compiler_no_builtin_flag \
10383 export_dynamic_flag_spec \
10384 thread_safe_flag_spec \
10385 whole_archive_flag_spec \
10386 enable_shared_with_static_runtimes \
10387 old_archive_cmds \
10388 old_archive_from_new_cmds \
10389 predep_objects \
10390 postdep_objects \
10391 predeps \
10392 postdeps \
10393 compiler_lib_search_path \
10394 archive_cmds \
10395 archive_expsym_cmds \
10396 postinstall_cmds \
10397 postuninstall_cmds \
10398 old_archive_from_expsyms_cmds \
10399 allow_undefined_flag \
10400 no_undefined_flag \
10401 export_symbols_cmds \
10402 hardcode_libdir_flag_spec \
10403 hardcode_libdir_flag_spec_ld \
10404 hardcode_libdir_separator \
10405 hardcode_automatic \
10406 module_cmds \
10407 module_expsym_cmds \
10408 lt_cv_prog_compiler_c_o \
ac40fd9e 10409 fix_srcfile_path \
d9898ee8 10410 exclude_expsyms \
10411 include_expsyms; do
10412
10413 case $var in
10414 old_archive_cmds | \
10415 old_archive_from_new_cmds | \
10416 archive_cmds | \
10417 archive_expsym_cmds | \
10418 module_cmds | \
10419 module_expsym_cmds | \
10420 old_archive_from_expsyms_cmds | \
10421 export_symbols_cmds | \
10422 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10423 postinstall_cmds | postuninstall_cmds | \
10424 old_postinstall_cmds | old_postuninstall_cmds | \
10425 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10426 # Double-quote double-evaled strings.
10427 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10428 ;;
10429 *)
10430 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10431 ;;
10432 esac
10433 done
10434
10435 case $lt_echo in
10436 *'\$0 --fallback-echo"')
10437 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10438 ;;
10439 esac
10440
10441cfgfile="${ofile}T"
10442 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10443 $rm -f "$cfgfile"
10444 { echo "$as_me:$LINENO: creating $ofile" >&5
10445echo "$as_me: creating $ofile" >&6;}
10446
10447 cat <<__EOF__ >> "$cfgfile"
10448#! $SHELL
10449
10450# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10451# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10452# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10453#
ac40fd9e 10454# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
d9898ee8 10455# Free Software Foundation, Inc.
10456#
10457# This file is part of GNU Libtool:
10458# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10459#
10460# This program is free software; you can redistribute it and/or modify
10461# it under the terms of the GNU General Public License as published by
10462# the Free Software Foundation; either version 2 of the License, or
10463# (at your option) any later version.
10464#
10465# This program is distributed in the hope that it will be useful, but
10466# WITHOUT ANY WARRANTY; without even the implied warranty of
10467# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10468# General Public License for more details.
10469#
10470# You should have received a copy of the GNU General Public License
10471# along with this program; if not, write to the Free Software
10472# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10473#
10474# As a special exception to the GNU General Public License, if you
10475# distribute this file as part of a program that contains a
10476# configuration script generated by Autoconf, you may include it under
10477# the same distribution terms that you use for the rest of that program.
10478
10479# A sed program that does not truncate output.
10480SED=$lt_SED
10481
10482# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10483Xsed="$SED -e 1s/^X//"
10484
10485# The HP-UX ksh and POSIX shell print the target directory to stdout
10486# if CDPATH is set.
10487(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10488
10489# The names of the tagged configurations supported by this script.
10490available_tags=
10491
10492# ### BEGIN LIBTOOL CONFIG
10493
10494# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10495
10496# Shell to use when invoking shell scripts.
10497SHELL=$lt_SHELL
10498
10499# Whether or not to build shared libraries.
10500build_libtool_libs=$enable_shared
10501
10502# Whether or not to build static libraries.
10503build_old_libs=$enable_static
10504
10505# Whether or not to add -lc for building shared libraries.
10506build_libtool_need_lc=$archive_cmds_need_lc
10507
10508# Whether or not to disallow shared libs when runtime libs are static
10509allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10510
10511# Whether or not to optimize for fast installation.
10512fast_install=$enable_fast_install
10513
10514# The host system.
10515host_alias=$host_alias
10516host=$host
10517host_os=$host_os
10518
10519# The build system.
10520build_alias=$build_alias
10521build=$build
10522build_os=$build_os
10523
10524# An echo program that does not interpret backslashes.
10525echo=$lt_echo
10526
10527# The archiver.
10528AR=$lt_AR
10529AR_FLAGS=$lt_AR_FLAGS
10530
10531# A C compiler.
10532LTCC=$lt_LTCC
10533
10534# LTCC compiler flags.
10535LTCFLAGS=$lt_LTCFLAGS
10536
10537# A language-specific compiler.
10538CC=$lt_compiler
10539
10540# Is the compiler the GNU C compiler?
10541with_gcc=$GCC
10542
d9898ee8 10543# An ERE matcher.
10544EGREP=$lt_EGREP
10545
10546# The linker used to build libraries.
10547LD=$lt_LD
10548
10549# Whether we need hard or soft links.
10550LN_S=$lt_LN_S
10551
10552# A BSD-compatible nm program.
10553NM=$lt_NM
10554
10555# A symbol stripping program
10556STRIP=$lt_STRIP
10557
10558# Used to examine libraries when file_magic_cmd begins "file"
10559MAGIC_CMD=$MAGIC_CMD
10560
10561# Used on cygwin: DLL creation program.
10562DLLTOOL="$DLLTOOL"
10563
10564# Used on cygwin: object dumper.
10565OBJDUMP="$OBJDUMP"
10566
10567# Used on cygwin: assembler.
10568AS="$AS"
10569
10570# The name of the directory that contains temporary libtool files.
10571objdir=$objdir
10572
10573# How to create reloadable object files.
10574reload_flag=$lt_reload_flag
10575reload_cmds=$lt_reload_cmds
10576
10577# How to pass a linker flag through the compiler.
10578wl=$lt_lt_prog_compiler_wl
10579
10580# Object file suffix (normally "o").
10581objext="$ac_objext"
10582
10583# Old archive suffix (normally "a").
10584libext="$libext"
10585
10586# Shared library suffix (normally ".so").
10587shrext_cmds='$shrext_cmds'
10588
10589# Executable file suffix (normally "").
10590exeext="$exeext"
10591
10592# Additional compiler flags for building library objects.
10593pic_flag=$lt_lt_prog_compiler_pic
10594pic_mode=$pic_mode
10595
10596# What is the maximum length of a command?
10597max_cmd_len=$lt_cv_sys_max_cmd_len
10598
10599# Does compiler simultaneously support -c and -o options?
10600compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10601
10602# Must we lock files when doing compilation?
10603need_locks=$lt_need_locks
10604
10605# Do we need the lib prefix for modules?
10606need_lib_prefix=$need_lib_prefix
10607
10608# Do we need a version for libraries?
10609need_version=$need_version
10610
10611# Whether dlopen is supported.
10612dlopen_support=$enable_dlopen
10613
10614# Whether dlopen of programs is supported.
10615dlopen_self=$enable_dlopen_self
10616
10617# Whether dlopen of statically linked programs is supported.
10618dlopen_self_static=$enable_dlopen_self_static
10619
10620# Compiler flag to prevent dynamic linking.
10621link_static_flag=$lt_lt_prog_compiler_static
10622
10623# Compiler flag to turn off builtin functions.
10624no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10625
10626# Compiler flag to allow reflexive dlopens.
10627export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10628
10629# Compiler flag to generate shared objects directly from archives.
10630whole_archive_flag_spec=$lt_whole_archive_flag_spec
10631
10632# Compiler flag to generate thread-safe objects.
10633thread_safe_flag_spec=$lt_thread_safe_flag_spec
10634
10635# Library versioning type.
10636version_type=$version_type
10637
10638# Format of library name prefix.
10639libname_spec=$lt_libname_spec
10640
10641# List of archive names. First name is the real one, the rest are links.
10642# The last name is the one that the linker finds with -lNAME.
10643library_names_spec=$lt_library_names_spec
10644
10645# The coded name of the library, if different from the real name.
10646soname_spec=$lt_soname_spec
10647
10648# Commands used to build and install an old-style archive.
10649RANLIB=$lt_RANLIB
10650old_archive_cmds=$lt_old_archive_cmds
10651old_postinstall_cmds=$lt_old_postinstall_cmds
10652old_postuninstall_cmds=$lt_old_postuninstall_cmds
10653
10654# Create an old-style archive from a shared archive.
10655old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10656
10657# Create a temporary old-style archive to link instead of a shared archive.
10658old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10659
10660# Commands used to build and install a shared archive.
10661archive_cmds=$lt_archive_cmds
10662archive_expsym_cmds=$lt_archive_expsym_cmds
10663postinstall_cmds=$lt_postinstall_cmds
10664postuninstall_cmds=$lt_postuninstall_cmds
10665
10666# Commands used to build a loadable module (assumed same as above if empty)
10667module_cmds=$lt_module_cmds
10668module_expsym_cmds=$lt_module_expsym_cmds
10669
10670# Commands to strip libraries.
10671old_striplib=$lt_old_striplib
10672striplib=$lt_striplib
10673
10674# Dependencies to place before the objects being linked to create a
10675# shared library.
dd184caf 10676predep_objects=$lt_predep_objects
d9898ee8 10677
10678# Dependencies to place after the objects being linked to create a
10679# shared library.
dd184caf 10680postdep_objects=$lt_postdep_objects
d9898ee8 10681
10682# Dependencies to place before the objects being linked to create a
10683# shared library.
10684predeps=$lt_predeps
10685
10686# Dependencies to place after the objects being linked to create a
10687# shared library.
10688postdeps=$lt_postdeps
10689
10690# The library search path used internally by the compiler when linking
10691# a shared library.
dd184caf 10692compiler_lib_search_path=$lt_compiler_lib_search_path
d9898ee8 10693
10694# Method to check whether dependent libraries are shared objects.
10695deplibs_check_method=$lt_deplibs_check_method
10696
10697# Command to use when deplibs_check_method == file_magic.
10698file_magic_cmd=$lt_file_magic_cmd
10699
10700# Flag that allows shared libraries with undefined symbols to be built.
10701allow_undefined_flag=$lt_allow_undefined_flag
10702
10703# Flag that forces no undefined symbols.
10704no_undefined_flag=$lt_no_undefined_flag
10705
10706# Commands used to finish a libtool library installation in a directory.
10707finish_cmds=$lt_finish_cmds
10708
10709# Same as above, but a single script fragment to be evaled but not shown.
10710finish_eval=$lt_finish_eval
10711
10712# Take the output of nm and produce a listing of raw symbols and C names.
10713global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10714
10715# Transform the output of nm in a proper C declaration
10716global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10717
10718# Transform the output of nm in a C name address pair
10719global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10720
10721# This is the shared library runtime path variable.
10722runpath_var=$runpath_var
10723
10724# This is the shared library path variable.
10725shlibpath_var=$shlibpath_var
10726
10727# Is shlibpath searched before the hard-coded library search path?
10728shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10729
10730# How to hardcode a shared library path into an executable.
10731hardcode_action=$hardcode_action
10732
10733# Whether we should hardcode library paths into libraries.
10734hardcode_into_libs=$hardcode_into_libs
10735
10736# Flag to hardcode \$libdir into a binary during linking.
10737# This must work even if \$libdir does not exist.
10738hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10739
10740# If ld is used when linking, flag to hardcode \$libdir into
10741# a binary during linking. This must work even if \$libdir does
10742# not exist.
10743hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10744
10745# Whether we need a single -rpath flag with a separated argument.
10746hardcode_libdir_separator=$lt_hardcode_libdir_separator
10747
10748# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10749# resulting binary.
10750hardcode_direct=$hardcode_direct
10751
10752# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10753# resulting binary.
10754hardcode_minus_L=$hardcode_minus_L
10755
10756# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10757# the resulting binary.
10758hardcode_shlibpath_var=$hardcode_shlibpath_var
10759
10760# Set to yes if building a shared library automatically hardcodes DIR into the library
10761# and all subsequent libraries and executables linked against it.
10762hardcode_automatic=$hardcode_automatic
10763
10764# Variables whose values should be saved in libtool wrapper scripts and
10765# restored at relink time.
10766variables_saved_for_relink="$variables_saved_for_relink"
10767
10768# Whether libtool must link a program against all its dependency libraries.
10769link_all_deplibs=$link_all_deplibs
10770
10771# Compile-time system search path for libraries
dd184caf 10772sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
d9898ee8 10773
10774# Run-time system search path for libraries
10775sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10776
10777# Fix the shell variable \$srcfile for the compiler.
ac40fd9e 10778fix_srcfile_path=$lt_fix_srcfile_path
d9898ee8 10779
10780# Set to yes if exported symbols are required.
10781always_export_symbols=$always_export_symbols
10782
10783# The commands to list exported symbols.
10784export_symbols_cmds=$lt_export_symbols_cmds
10785
10786# The commands to extract the exported symbol list from a shared archive.
10787extract_expsyms_cmds=$lt_extract_expsyms_cmds
10788
10789# Symbols that should not be listed in the preloaded symbols.
10790exclude_expsyms=$lt_exclude_expsyms
10791
10792# Symbols that must always be exported.
10793include_expsyms=$lt_include_expsyms
10794
10795# ### END LIBTOOL CONFIG
10796
10797__EOF__
10798
10799
10800 case $host_os in
10801 aix3*)
10802 cat <<\EOF >> "$cfgfile"
10803
10804# AIX sometimes has problems with the GCC collect2 program. For some
10805# reason, if we set the COLLECT_NAMES environment variable, the problems
10806# vanish in a puff of smoke.
10807if test "X${COLLECT_NAMES+set}" != Xset; then
10808 COLLECT_NAMES=
10809 export COLLECT_NAMES
10810fi
10811EOF
10812 ;;
10813 esac
10814
10815 # We use sed instead of cat because bash on DJGPP gets confused if
10816 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10817 # text mode, it properly converts lines to CR/LF. This bash problem
10818 # is reportedly fixed, but why not run on old versions too?
10819 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10820
10821 mv -f "$cfgfile" "$ofile" || \
10822 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10823 chmod +x "$ofile"
10824
10825else
10826 # If there is no Makefile yet, we rely on a make rule to execute
10827 # `config.status --recheck' to rerun these tests and create the
10828 # libtool script then.
10829 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10830 if test -f "$ltmain_in"; then
10831 test -f Makefile && make "$ltmain"
10832 fi
10833fi
10834
10835
10836ac_ext=c
10837ac_cpp='$CPP $CPPFLAGS'
10838ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10839ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10840ac_compiler_gnu=$ac_cv_c_compiler_gnu
10841
10842CC="$lt_save_CC"
10843
10844
dd184caf 10845# Check whether --with-tags was given.
d9898ee8 10846if test "${with_tags+set}" = set; then
dd184caf 10847 withval=$with_tags; tagnames="$withval"
10848fi
10849
d9898ee8 10850
10851if test -f "$ltmain" && test -n "$tagnames"; then
10852 if test ! -f "${ofile}"; then
10853 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10854echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10855 fi
10856
10857 if test -z "$LTCC"; then
10858 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10859 if test -z "$LTCC"; then
10860 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10861echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10862 else
10863 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10864echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10865 fi
10866 fi
10867 if test -z "$LTCFLAGS"; then
10868 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10869 fi
10870
10871 # Extract list of available tagged configurations in $ofile.
10872 # Note that this assumes the entire list is on one line.
10873 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10874
10875 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10876 for tagname in $tagnames; do
10877 IFS="$lt_save_ifs"
10878 # Check whether tagname contains only valid characters
10879 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10880 "") ;;
10881 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10882echo "$as_me: error: invalid tag name: $tagname" >&2;}
10883 { (exit 1); exit 1; }; }
10884 ;;
10885 esac
10886
10887 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10888 then
10889 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10890echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10891 { (exit 1); exit 1; }; }
10892 fi
10893
10894 # Update the list of available tags.
10895 if test -n "$tagname"; then
10896 echo appending configuration tag \"$tagname\" to $ofile
10897
10898 case $tagname in
10899 CXX)
10900 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10901 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10902 (test "X$CXX" != "Xg++"))) ; then
dd184caf 10903 ac_ext=cpp
d9898ee8 10904ac_cpp='$CXXCPP $CPPFLAGS'
10905ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10906ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10907ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10908
10909
10910
10911
10912archive_cmds_need_lc_CXX=no
10913allow_undefined_flag_CXX=
10914always_export_symbols_CXX=no
10915archive_expsym_cmds_CXX=
10916export_dynamic_flag_spec_CXX=
10917hardcode_direct_CXX=no
10918hardcode_libdir_flag_spec_CXX=
10919hardcode_libdir_flag_spec_ld_CXX=
10920hardcode_libdir_separator_CXX=
10921hardcode_minus_L_CXX=no
10922hardcode_shlibpath_var_CXX=unsupported
10923hardcode_automatic_CXX=no
10924module_cmds_CXX=
10925module_expsym_cmds_CXX=
10926link_all_deplibs_CXX=unknown
10927old_archive_cmds_CXX=$old_archive_cmds
10928no_undefined_flag_CXX=
10929whole_archive_flag_spec_CXX=
10930enable_shared_with_static_runtimes_CXX=no
10931
10932# Dependencies to place before and after the object being linked:
10933predep_objects_CXX=
10934postdep_objects_CXX=
10935predeps_CXX=
10936postdeps_CXX=
10937compiler_lib_search_path_CXX=
10938
10939# Source file extension for C++ test sources.
10940ac_ext=cpp
10941
10942# Object file extension for compiled C++ test sources.
10943objext=o
10944objext_CXX=$objext
10945
10946# Code to be used in simple compile tests
ac40fd9e 10947lt_simple_compile_test_code="int some_variable = 0;"
d9898ee8 10948
10949# Code to be used in simple link tests
ac40fd9e 10950lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
d9898ee8 10951
10952# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10953
10954# If no C compiler was specified, use CC.
10955LTCC=${LTCC-"$CC"}
10956
10957# If no C compiler flags were specified, use CFLAGS.
10958LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10959
10960# Allow CC to be a program name with arguments.
10961compiler=$CC
10962
10963
10964# save warnings/boilerplate of simple test code
10965ac_outfile=conftest.$ac_objext
ac40fd9e 10966echo "$lt_simple_compile_test_code" >conftest.$ac_ext
d9898ee8 10967eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10968_lt_compiler_boilerplate=`cat conftest.err`
10969$rm conftest*
10970
10971ac_outfile=conftest.$ac_objext
ac40fd9e 10972echo "$lt_simple_link_test_code" >conftest.$ac_ext
d9898ee8 10973eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10974_lt_linker_boilerplate=`cat conftest.err`
10975$rm conftest*
10976
10977
10978# Allow CC to be a program name with arguments.
10979lt_save_CC=$CC
10980lt_save_LD=$LD
10981lt_save_GCC=$GCC
10982GCC=$GXX
10983lt_save_with_gnu_ld=$with_gnu_ld
10984lt_save_path_LD=$lt_cv_path_LD
10985if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10986 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10987else
10988 $as_unset lt_cv_prog_gnu_ld
10989fi
10990if test -n "${lt_cv_path_LDCXX+set}"; then
10991 lt_cv_path_LD=$lt_cv_path_LDCXX
10992else
10993 $as_unset lt_cv_path_LD
10994fi
10995test -z "${LDCXX+set}" || LD=$LDCXX
10996CC=${CXX-"c++"}
10997compiler=$CC
10998compiler_CXX=$CC
10999for cc_temp in $compiler""; do
11000 case $cc_temp in
11001 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11002 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11003 \-*) ;;
11004 *) break;;
11005 esac
11006done
11007cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11008
11009
11010# We don't want -fno-exception wen compiling C++ code, so set the
11011# no_builtin_flag separately
11012if test "$GXX" = yes; then
11013 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11014else
11015 lt_prog_compiler_no_builtin_flag_CXX=
11016fi
11017
11018if test "$GXX" = yes; then
11019 # Set up default GNU C++ configuration
11020
11021
dd184caf 11022# Check whether --with-gnu-ld was given.
d9898ee8 11023if test "${with_gnu_ld+set}" = set; then
dd184caf 11024 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
d9898ee8 11025else
11026 with_gnu_ld=no
dd184caf 11027fi
11028
d9898ee8 11029ac_prog=ld
11030if test "$GCC" = yes; then
11031 # Check if gcc -print-prog-name=ld gives a path.
dd184caf 11032 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11033echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
d9898ee8 11034 case $host in
11035 *-*-mingw*)
11036 # gcc leaves a trailing carriage return which upsets mingw
11037 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11038 *)
11039 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11040 esac
11041 case $ac_prog in
11042 # Accept absolute paths.
11043 [\\/]* | ?:[\\/]*)
11044 re_direlt='/[^/][^/]*/\.\./'
11045 # Canonicalize the pathname of ld
11046 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11047 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11048 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11049 done
11050 test -z "$LD" && LD="$ac_prog"
11051 ;;
11052 "")
11053 # If it fails, then pretend we aren't using GCC.
11054 ac_prog=ld
11055 ;;
11056 *)
11057 # If it is relative, then search for the first ld in PATH.
11058 with_gnu_ld=unknown
11059 ;;
11060 esac
11061elif test "$with_gnu_ld" = yes; then
dd184caf 11062 { echo "$as_me:$LINENO: checking for GNU ld" >&5
11063echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
d9898ee8 11064else
dd184caf 11065 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11066echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
d9898ee8 11067fi
11068if test "${lt_cv_path_LD+set}" = set; then
11069 echo $ECHO_N "(cached) $ECHO_C" >&6
11070else
11071 if test -z "$LD"; then
11072 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11073 for ac_dir in $PATH; do
11074 IFS="$lt_save_ifs"
11075 test -z "$ac_dir" && ac_dir=.
11076 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11077 lt_cv_path_LD="$ac_dir/$ac_prog"
11078 # Check to see if the program is GNU ld. I'd rather use --version,
11079 # but apparently some variants of GNU ld only accept -v.
11080 # Break only if it was the GNU/non-GNU ld that we prefer.
11081 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11082 *GNU* | *'with BFD'*)
11083 test "$with_gnu_ld" != no && break
11084 ;;
11085 *)
11086 test "$with_gnu_ld" != yes && break
11087 ;;
11088 esac
11089 fi
11090 done
11091 IFS="$lt_save_ifs"
11092else
11093 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11094fi
11095fi
11096
11097LD="$lt_cv_path_LD"
11098if test -n "$LD"; then
dd184caf 11099 { echo "$as_me:$LINENO: result: $LD" >&5
11100echo "${ECHO_T}$LD" >&6; }
d9898ee8 11101else
dd184caf 11102 { echo "$as_me:$LINENO: result: no" >&5
11103echo "${ECHO_T}no" >&6; }
d9898ee8 11104fi
11105test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11106echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11107 { (exit 1); exit 1; }; }
dd184caf 11108{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11109echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
d9898ee8 11110if test "${lt_cv_prog_gnu_ld+set}" = set; then
11111 echo $ECHO_N "(cached) $ECHO_C" >&6
11112else
11113 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11114case `$LD -v 2>&1 </dev/null` in
11115*GNU* | *'with BFD'*)
11116 lt_cv_prog_gnu_ld=yes
11117 ;;
11118*)
11119 lt_cv_prog_gnu_ld=no
11120 ;;
11121esac
11122fi
dd184caf 11123{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11124echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
d9898ee8 11125with_gnu_ld=$lt_cv_prog_gnu_ld
11126
11127
11128
11129 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11130 # archiving commands below assume that GNU ld is being used.
11131 if test "$with_gnu_ld" = yes; then
11132 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11133 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'
11134
11135 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11136 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11137
11138 # If archive_cmds runs LD, not CC, wlarc should be empty
11139 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11140 # investigate it a little bit more. (MM)
11141 wlarc='${wl}'
11142
11143 # ancient GNU ld didn't support --whole-archive et. al.
11144 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11145 grep 'no-whole-archive' > /dev/null; then
11146 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11147 else
11148 whole_archive_flag_spec_CXX=
11149 fi
11150 else
11151 with_gnu_ld=no
11152 wlarc=
11153
11154 # A generic and very simple default shared library creation
11155 # command for GNU C++ for the case where it uses the native
11156 # linker, instead of GNU ld. If possible, this setting should
11157 # overridden to take advantage of the native linker features on
11158 # the platform it is being used on.
11159 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11160 fi
11161
11162 # Commands to make compiler produce verbose output that lists
11163 # what "hidden" libraries, object files and flags are used when
11164 # linking a shared library.
11165 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11166
11167else
11168 GXX=no
11169 with_gnu_ld=no
11170 wlarc=
11171fi
11172
11173# PORTME: fill in a description of your system's C++ link characteristics
dd184caf 11174{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11175echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
d9898ee8 11176ld_shlibs_CXX=yes
11177case $host_os in
11178 aix3*)
11179 # FIXME: insert proper C++ library support
11180 ld_shlibs_CXX=no
11181 ;;
11182 aix4* | aix5*)
11183 if test "$host_cpu" = ia64; then
11184 # On IA64, the linker does run time linking by default, so we don't
11185 # have to do anything special.
11186 aix_use_runtimelinking=no
11187 exp_sym_flag='-Bexport'
11188 no_entry_flag=""
11189 else
11190 aix_use_runtimelinking=no
11191
11192 # Test if we are trying to use run time linking or normal
11193 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11194 # need to do runtime linking.
11195 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11196 for ld_flag in $LDFLAGS; do
11197 case $ld_flag in
11198 *-brtl*)
11199 aix_use_runtimelinking=yes
11200 break
11201 ;;
11202 esac
11203 done
11204 ;;
11205 esac
11206
11207 exp_sym_flag='-bexport'
11208 no_entry_flag='-bnoentry'
11209 fi
11210
11211 # When large executables or shared objects are built, AIX ld can
11212 # have problems creating the table of contents. If linking a library
11213 # or program results in "error TOC overflow" add -mminimal-toc to
11214 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11215 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11216
11217 archive_cmds_CXX=''
11218 hardcode_direct_CXX=yes
11219 hardcode_libdir_separator_CXX=':'
11220 link_all_deplibs_CXX=yes
11221
11222 if test "$GXX" = yes; then
11223 case $host_os in aix4.[012]|aix4.[012].*)
11224 # We only want to do this on AIX 4.2 and lower, the check
11225 # below for broken collect2 doesn't work under 4.3+
11226 collect2name=`${CC} -print-prog-name=collect2`
11227 if test -f "$collect2name" && \
11228 strings "$collect2name" | grep resolve_lib_name >/dev/null
11229 then
11230 # We have reworked collect2
ac40fd9e 11231 :
d9898ee8 11232 else
11233 # We have old collect2
11234 hardcode_direct_CXX=unsupported
11235 # It fails to find uninstalled libraries when the uninstalled
11236 # path is not listed in the libpath. Setting hardcode_minus_L
11237 # to unsupported forces relinking
11238 hardcode_minus_L_CXX=yes
11239 hardcode_libdir_flag_spec_CXX='-L$libdir'
11240 hardcode_libdir_separator_CXX=
11241 fi
11242 ;;
11243 esac
11244 shared_flag='-shared'
11245 if test "$aix_use_runtimelinking" = yes; then
11246 shared_flag="$shared_flag "'${wl}-G'
11247 fi
11248 else
11249 # not using gcc
11250 if test "$host_cpu" = ia64; then
11251 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11252 # chokes on -Wl,-G. The following line is correct:
11253 shared_flag='-G'
11254 else
11255 if test "$aix_use_runtimelinking" = yes; then
11256 shared_flag='${wl}-G'
11257 else
11258 shared_flag='${wl}-bM:SRE'
11259 fi
11260 fi
11261 fi
11262
11263 # It seems that -bexpall does not export symbols beginning with
11264 # underscore (_), so it is better to generate a list of symbols to export.
11265 always_export_symbols_CXX=yes
11266 if test "$aix_use_runtimelinking" = yes; then
11267 # Warning - without using the other runtime loading flags (-brtl),
11268 # -berok will link without error, but may produce a broken library.
11269 allow_undefined_flag_CXX='-berok'
11270 # Determine the default libpath from the value encoded in an empty executable.
11271 cat >conftest.$ac_ext <<_ACEOF
11272/* confdefs.h. */
11273_ACEOF
11274cat confdefs.h >>conftest.$ac_ext
11275cat >>conftest.$ac_ext <<_ACEOF
11276/* end confdefs.h. */
11277
11278int
11279main ()
11280{
11281
11282 ;
11283 return 0;
11284}
11285_ACEOF
11286rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 11287if { (ac_try="$ac_link"
11288case "(($ac_try" in
11289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11290 *) ac_try_echo=$ac_try;;
11291esac
11292eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11293 (eval "$ac_link") 2>conftest.er1
d9898ee8 11294 ac_status=$?
11295 grep -v '^ *+' conftest.er1 >conftest.err
11296 rm -f conftest.er1
11297 cat conftest.err >&5
11298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 11299 (exit $ac_status); } && {
11300 test -z "$ac_cxx_werror_flag" ||
11301 test ! -s conftest.err
11302 } && test -s conftest$ac_exeext &&
11303 $as_test_x conftest$ac_exeext; then
d9898ee8 11304
ac40fd9e 11305lt_aix_libpath_sed='
11306 /Import File Strings/,/^$/ {
11307 /^0/ {
11308 s/^0 *\(.*\)$/\1/
11309 p
11310 }
11311 }'
11312aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
d9898ee8 11313# Check for a 64-bit object if we didn't find anything.
ac40fd9e 11314if test -z "$aix_libpath"; then
11315 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11316fi
d9898ee8 11317else
11318 echo "$as_me: failed program was:" >&5
11319sed 's/^/| /' conftest.$ac_ext >&5
11320
dd184caf 11321
d9898ee8 11322fi
dd184caf 11323
11324rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 11325 conftest$ac_exeext conftest.$ac_ext
11326if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11327
11328 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11329
11330 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11331 else
11332 if test "$host_cpu" = ia64; then
11333 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11334 allow_undefined_flag_CXX="-z nodefs"
11335 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"
11336 else
11337 # Determine the default libpath from the value encoded in an empty executable.
11338 cat >conftest.$ac_ext <<_ACEOF
11339/* confdefs.h. */
11340_ACEOF
11341cat confdefs.h >>conftest.$ac_ext
11342cat >>conftest.$ac_ext <<_ACEOF
11343/* end confdefs.h. */
11344
11345int
11346main ()
11347{
11348
11349 ;
11350 return 0;
11351}
11352_ACEOF
11353rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 11354if { (ac_try="$ac_link"
11355case "(($ac_try" in
11356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11357 *) ac_try_echo=$ac_try;;
11358esac
11359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11360 (eval "$ac_link") 2>conftest.er1
d9898ee8 11361 ac_status=$?
11362 grep -v '^ *+' conftest.er1 >conftest.err
11363 rm -f conftest.er1
11364 cat conftest.err >&5
11365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 11366 (exit $ac_status); } && {
11367 test -z "$ac_cxx_werror_flag" ||
11368 test ! -s conftest.err
11369 } && test -s conftest$ac_exeext &&
11370 $as_test_x conftest$ac_exeext; then
d9898ee8 11371
ac40fd9e 11372lt_aix_libpath_sed='
11373 /Import File Strings/,/^$/ {
11374 /^0/ {
11375 s/^0 *\(.*\)$/\1/
11376 p
11377 }
11378 }'
11379aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
d9898ee8 11380# Check for a 64-bit object if we didn't find anything.
ac40fd9e 11381if test -z "$aix_libpath"; then
11382 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11383fi
d9898ee8 11384else
11385 echo "$as_me: failed program was:" >&5
11386sed 's/^/| /' conftest.$ac_ext >&5
11387
dd184caf 11388
d9898ee8 11389fi
dd184caf 11390
11391rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 11392 conftest$ac_exeext conftest.$ac_ext
11393if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11394
11395 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11396 # Warning - without using the other run time loading flags,
11397 # -berok will link without error, but may produce a broken library.
11398 no_undefined_flag_CXX=' ${wl}-bernotok'
11399 allow_undefined_flag_CXX=' ${wl}-berok'
11400 # Exported symbols can be pulled into shared objects from archives
11401 whole_archive_flag_spec_CXX='$convenience'
11402 archive_cmds_need_lc_CXX=yes
11403 # This is similar to how AIX traditionally builds its shared libraries.
11404 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'
11405 fi
11406 fi
11407 ;;
11408
11409 beos*)
11410 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11411 allow_undefined_flag_CXX=unsupported
11412 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11413 # support --undefined. This deserves some investigation. FIXME
11414 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11415 else
11416 ld_shlibs_CXX=no
11417 fi
11418 ;;
11419
11420 chorus*)
11421 case $cc_basename in
11422 *)
11423 # FIXME: insert proper C++ library support
11424 ld_shlibs_CXX=no
11425 ;;
11426 esac
11427 ;;
11428
11429 cygwin* | mingw* | pw32*)
11430 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11431 # as there is no search path for DLLs.
11432 hardcode_libdir_flag_spec_CXX='-L$libdir'
11433 allow_undefined_flag_CXX=unsupported
11434 always_export_symbols_CXX=no
11435 enable_shared_with_static_runtimes_CXX=yes
11436
11437 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11438 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'
11439 # If the export-symbols file already is a .def file (1st line
11440 # is EXPORTS), use it as is; otherwise, prepend...
11441 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11442 cp $export_symbols $output_objdir/$soname.def;
11443 else
11444 echo EXPORTS > $output_objdir/$soname.def;
11445 cat $export_symbols >> $output_objdir/$soname.def;
11446 fi~
11447 $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'
11448 else
11449 ld_shlibs_CXX=no
11450 fi
11451 ;;
11452 darwin* | rhapsody*)
11453 case $host_os in
11454 rhapsody* | darwin1.[012])
11455 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11456 ;;
11457 *) # Darwin 1.3 on
11458 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11459 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11460 else
11461 case ${MACOSX_DEPLOYMENT_TARGET} in
11462 10.[012])
11463 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11464 ;;
11465 10.*)
11466 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11467 ;;
11468 esac
11469 fi
11470 ;;
11471 esac
11472 archive_cmds_need_lc_CXX=no
11473 hardcode_direct_CXX=no
11474 hardcode_automatic_CXX=yes
11475 hardcode_shlibpath_var_CXX=unsupported
11476 whole_archive_flag_spec_CXX=''
11477 link_all_deplibs_CXX=yes
11478
11479 if test "$GXX" = yes ; then
11480 lt_int_apple_cc_single_mod=no
11481 output_verbose_link_cmd='echo'
11482 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11483 lt_int_apple_cc_single_mod=yes
11484 fi
11485 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11486 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11487 else
11488 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'
11489 fi
11490 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11491 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11492 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11493 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11494 else
11495 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11496 fi
11497 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11498 else
11499 case $cc_basename in
11500 xlc*)
11501 output_verbose_link_cmd='echo'
ac40fd9e 11502 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
d9898ee8 11503 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11504 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
ac40fd9e 11505 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
d9898ee8 11506 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11507 ;;
11508 *)
11509 ld_shlibs_CXX=no
11510 ;;
11511 esac
11512 fi
11513 ;;
11514
11515 dgux*)
11516 case $cc_basename in
11517 ec++*)
11518 # FIXME: insert proper C++ library support
11519 ld_shlibs_CXX=no
11520 ;;
11521 ghcx*)
11522 # Green Hills C++ Compiler
11523 # FIXME: insert proper C++ library support
11524 ld_shlibs_CXX=no
11525 ;;
11526 *)
11527 # FIXME: insert proper C++ library support
11528 ld_shlibs_CXX=no
11529 ;;
11530 esac
11531 ;;
11532 freebsd[12]*)
11533 # C++ shared libraries reported to be fairly broken before switch to ELF
11534 ld_shlibs_CXX=no
11535 ;;
11536 freebsd-elf*)
11537 archive_cmds_need_lc_CXX=no
11538 ;;
ac40fd9e 11539 freebsd* | dragonfly*)
d9898ee8 11540 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11541 # conventions
11542 ld_shlibs_CXX=yes
11543 ;;
11544 gnu*)
11545 ;;
11546 hpux9*)
11547 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11548 hardcode_libdir_separator_CXX=:
11549 export_dynamic_flag_spec_CXX='${wl}-E'
11550 hardcode_direct_CXX=yes
11551 hardcode_minus_L_CXX=yes # Not in the search PATH,
11552 # but as the default
11553 # location of the library.
11554
11555 case $cc_basename in
11556 CC*)
11557 # FIXME: insert proper C++ library support
11558 ld_shlibs_CXX=no
11559 ;;
11560 aCC*)
11561 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'
11562 # Commands to make compiler produce verbose output that lists
11563 # what "hidden" libraries, object files and flags are used when
11564 # linking a shared library.
11565 #
11566 # There doesn't appear to be a way to prevent this compiler from
11567 # explicitly linking system object files so we need to strip them
11568 # from the output so that they don't get included in the library
11569 # dependencies.
11570 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11571 ;;
11572 *)
11573 if test "$GXX" = yes; then
11574 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'
11575 else
11576 # FIXME: insert proper C++ library support
11577 ld_shlibs_CXX=no
11578 fi
11579 ;;
11580 esac
11581 ;;
11582 hpux10*|hpux11*)
11583 if test $with_gnu_ld = no; then
11584 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11585 hardcode_libdir_separator_CXX=:
11586
11587 case $host_cpu in
ac40fd9e 11588 hppa*64*|ia64*) ;;
d9898ee8 11589 *)
11590 export_dynamic_flag_spec_CXX='${wl}-E'
11591 ;;
11592 esac
11593 fi
11594 case $host_cpu in
11595 hppa*64*|ia64*)
11596 hardcode_direct_CXX=no
11597 hardcode_shlibpath_var_CXX=no
11598 ;;
11599 *)
11600 hardcode_direct_CXX=yes
11601 hardcode_minus_L_CXX=yes # Not in the search PATH,
11602 # but as the default
11603 # location of the library.
11604 ;;
11605 esac
11606
11607 case $cc_basename in
11608 CC*)
11609 # FIXME: insert proper C++ library support
11610 ld_shlibs_CXX=no
11611 ;;
11612 aCC*)
11613 case $host_cpu in
11614 hppa*64*)
11615 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11616 ;;
11617 ia64*)
11618 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11619 ;;
11620 *)
11621 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11622 ;;
11623 esac
11624 # Commands to make compiler produce verbose output that lists
11625 # what "hidden" libraries, object files and flags are used when
11626 # linking a shared library.
11627 #
11628 # There doesn't appear to be a way to prevent this compiler from
11629 # explicitly linking system object files so we need to strip them
11630 # from the output so that they don't get included in the library
11631 # dependencies.
11632 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11633 ;;
11634 *)
11635 if test "$GXX" = yes; then
11636 if test $with_gnu_ld = no; then
11637 case $host_cpu in
11638 hppa*64*)
11639 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11640 ;;
11641 ia64*)
11642 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11643 ;;
11644 *)
11645 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'
11646 ;;
11647 esac
11648 fi
11649 else
11650 # FIXME: insert proper C++ library support
11651 ld_shlibs_CXX=no
11652 fi
11653 ;;
11654 esac
11655 ;;
ac40fd9e 11656 interix[3-9]*)
d9898ee8 11657 hardcode_direct_CXX=no
11658 hardcode_shlibpath_var_CXX=no
11659 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11660 export_dynamic_flag_spec_CXX='${wl}-E'
11661 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11662 # Instead, shared libraries are loaded at an image base (0x10000000 by
11663 # default) and relocated if they conflict, which is a slow very memory
11664 # consuming and fragmenting process. To avoid this, we pick a random,
11665 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11666 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11667 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'
11668 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'
11669 ;;
11670 irix5* | irix6*)
11671 case $cc_basename in
11672 CC*)
11673 # SGI C++
11674 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11675
11676 # Archives containing C++ object files must be created using
11677 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11678 # necessary to make sure instantiated templates are included
11679 # in the archive.
11680 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11681 ;;
11682 *)
11683 if test "$GXX" = yes; then
11684 if test "$with_gnu_ld" = no; then
11685 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11686 else
11687 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
11688 fi
11689 fi
11690 link_all_deplibs_CXX=yes
11691 ;;
11692 esac
11693 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11694 hardcode_libdir_separator_CXX=:
11695 ;;
ac40fd9e 11696 linux* | k*bsd*-gnu)
d9898ee8 11697 case $cc_basename in
11698 KCC*)
11699 # Kuck and Associates, Inc. (KAI) C++ Compiler
11700
11701 # KCC will only create a shared library if the output file
11702 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11703 # to its proper name (with version) after linking.
11704 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'
11705 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'
11706 # Commands to make compiler produce verbose output that lists
11707 # what "hidden" libraries, object files and flags are used when
11708 # linking a shared library.
11709 #
11710 # There doesn't appear to be a way to prevent this compiler from
11711 # explicitly linking system object files so we need to strip them
11712 # from the output so that they don't get included in the library
11713 # dependencies.
11714 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11715
11716 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11717 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11718
11719 # Archives containing C++ object files must be created using
11720 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11721 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11722 ;;
11723 icpc*)
11724 # Intel C++
11725 with_gnu_ld=yes
11726 # version 8.0 and above of icpc choke on multiply defined symbols
11727 # if we add $predep_objects and $postdep_objects, however 7.1 and
11728 # earlier do not add the objects themselves.
11729 case `$CC -V 2>&1` in
11730 *"Version 7."*)
11731 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11732 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'
11733 ;;
11734 *) # Version 8.0 or newer
11735 tmp_idyn=
11736 case $host_cpu in
11737 ia64*) tmp_idyn=' -i_dynamic';;
11738 esac
11739 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11740 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'
11741 ;;
11742 esac
11743 archive_cmds_need_lc_CXX=no
11744 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11745 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11746 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11747 ;;
11748 pgCC*)
11749 # Portland Group C++ compiler
11750 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11751 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'
11752
11753 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11754 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11755 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'
11756 ;;
11757 cxx*)
11758 # Compaq C++
11759 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11760 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'
11761
11762 runpath_var=LD_RUN_PATH
11763 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11764 hardcode_libdir_separator_CXX=:
11765
11766 # Commands to make compiler produce verbose output that lists
11767 # what "hidden" libraries, object files and flags are used when
11768 # linking a shared library.
11769 #
11770 # There doesn't appear to be a way to prevent this compiler from
11771 # explicitly linking system object files so we need to strip them
11772 # from the output so that they don't get included in the library
11773 # dependencies.
11774 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11775 ;;
ac40fd9e 11776 *)
11777 case `$CC -V 2>&1 | sed 5q` in
11778 *Sun\ C*)
11779 # Sun C++ 5.9
11780 no_undefined_flag_CXX=' -zdefs'
11781 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11782 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'
11783 hardcode_libdir_flag_spec_CXX='-R$libdir'
11784 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'
11785
11786 # Not sure whether something based on
11787 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11788 # would be better.
11789 output_verbose_link_cmd='echo'
11790
11791 # Archives containing C++ object files must be created using
11792 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11793 # necessary to make sure instantiated templates are included
11794 # in the archive.
11795 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11796 ;;
11797 esac
11798 ;;
d9898ee8 11799 esac
11800 ;;
11801 lynxos*)
11802 # FIXME: insert proper C++ library support
11803 ld_shlibs_CXX=no
11804 ;;
11805 m88k*)
11806 # FIXME: insert proper C++ library support
11807 ld_shlibs_CXX=no
11808 ;;
11809 mvs*)
11810 case $cc_basename in
11811 cxx*)
11812 # FIXME: insert proper C++ library support
11813 ld_shlibs_CXX=no
11814 ;;
11815 *)
11816 # FIXME: insert proper C++ library support
11817 ld_shlibs_CXX=no
11818 ;;
11819 esac
11820 ;;
11821 netbsd*)
11822 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11823 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11824 wlarc=
11825 hardcode_libdir_flag_spec_CXX='-R$libdir'
11826 hardcode_direct_CXX=yes
11827 hardcode_shlibpath_var_CXX=no
11828 fi
11829 # Workaround some broken pre-1.5 toolchains
11830 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11831 ;;
11832 openbsd2*)
11833 # C++ shared libraries are fairly broken
11834 ld_shlibs_CXX=no
11835 ;;
11836 openbsd*)
ac40fd9e 11837 if test -f /usr/libexec/ld.so; then
11838 hardcode_direct_CXX=yes
11839 hardcode_shlibpath_var_CXX=no
11840 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11841 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11842 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11843 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11844 export_dynamic_flag_spec_CXX='${wl}-E'
11845 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11846 fi
11847 output_verbose_link_cmd='echo'
11848 else
11849 ld_shlibs_CXX=no
d9898ee8 11850 fi
d9898ee8 11851 ;;
11852 osf3*)
11853 case $cc_basename in
11854 KCC*)
11855 # Kuck and Associates, Inc. (KAI) C++ Compiler
11856
11857 # KCC will only create a shared library if the output file
11858 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11859 # to its proper name (with version) after linking.
11860 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'
11861
11862 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11863 hardcode_libdir_separator_CXX=:
11864
11865 # Archives containing C++ object files must be created using
11866 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11867 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11868
11869 ;;
11870 RCC*)
11871 # Rational C++ 2.4.1
11872 # FIXME: insert proper C++ library support
11873 ld_shlibs_CXX=no
11874 ;;
11875 cxx*)
11876 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11877 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11878
11879 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11880 hardcode_libdir_separator_CXX=:
11881
11882 # Commands to make compiler produce verbose output that lists
11883 # what "hidden" libraries, object files and flags are used when
11884 # linking a shared library.
11885 #
11886 # There doesn't appear to be a way to prevent this compiler from
11887 # explicitly linking system object files so we need to strip them
11888 # from the output so that they don't get included in the library
11889 # dependencies.
11890 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11891 ;;
11892 *)
11893 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11894 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11895 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11896
11897 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11898 hardcode_libdir_separator_CXX=:
11899
11900 # Commands to make compiler produce verbose output that lists
11901 # what "hidden" libraries, object files and flags are used when
11902 # linking a shared library.
11903 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11904
11905 else
11906 # FIXME: insert proper C++ library support
11907 ld_shlibs_CXX=no
11908 fi
11909 ;;
11910 esac
11911 ;;
11912 osf4* | osf5*)
11913 case $cc_basename in
11914 KCC*)
11915 # Kuck and Associates, Inc. (KAI) C++ Compiler
11916
11917 # KCC will only create a shared library if the output file
11918 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11919 # to its proper name (with version) after linking.
11920 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'
11921
11922 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11923 hardcode_libdir_separator_CXX=:
11924
11925 # Archives containing C++ object files must be created using
11926 # the KAI C++ compiler.
11927 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11928 ;;
11929 RCC*)
11930 # Rational C++ 2.4.1
11931 # FIXME: insert proper C++ library support
11932 ld_shlibs_CXX=no
11933 ;;
11934 cxx*)
11935 allow_undefined_flag_CXX=' -expect_unresolved \*'
11936 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11937 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11938 echo "-hidden">> $lib.exp~
11939 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
11940 $rm $lib.exp'
11941
11942 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11943 hardcode_libdir_separator_CXX=:
11944
11945 # Commands to make compiler produce verbose output that lists
11946 # what "hidden" libraries, object files and flags are used when
11947 # linking a shared library.
11948 #
11949 # There doesn't appear to be a way to prevent this compiler from
11950 # explicitly linking system object files so we need to strip them
11951 # from the output so that they don't get included in the library
11952 # dependencies.
11953 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11954 ;;
11955 *)
11956 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11957 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11958 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11959
11960 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11961 hardcode_libdir_separator_CXX=:
11962
11963 # Commands to make compiler produce verbose output that lists
11964 # what "hidden" libraries, object files and flags are used when
11965 # linking a shared library.
11966 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11967
11968 else
11969 # FIXME: insert proper C++ library support
11970 ld_shlibs_CXX=no
11971 fi
11972 ;;
11973 esac
11974 ;;
11975 psos*)
11976 # FIXME: insert proper C++ library support
11977 ld_shlibs_CXX=no
11978 ;;
11979 sunos4*)
11980 case $cc_basename in
11981 CC*)
11982 # Sun C++ 4.x
11983 # FIXME: insert proper C++ library support
11984 ld_shlibs_CXX=no
11985 ;;
11986 lcc*)
11987 # Lucid
11988 # FIXME: insert proper C++ library support
11989 ld_shlibs_CXX=no
11990 ;;
11991 *)
11992 # FIXME: insert proper C++ library support
11993 ld_shlibs_CXX=no
11994 ;;
11995 esac
11996 ;;
11997 solaris*)
11998 case $cc_basename in
11999 CC*)
12000 # Sun C++ 4.2, 5.x and Centerline C++
12001 archive_cmds_need_lc_CXX=yes
12002 no_undefined_flag_CXX=' -zdefs'
12003 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12004 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12005 $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'
12006
12007 hardcode_libdir_flag_spec_CXX='-R$libdir'
12008 hardcode_shlibpath_var_CXX=no
12009 case $host_os in
12010 solaris2.[0-5] | solaris2.[0-5].*) ;;
12011 *)
ac40fd9e 12012 # The compiler driver will combine and reorder linker options,
12013 # but understands `-z linker_flag'.
d9898ee8 12014 # Supported since Solaris 2.6 (maybe 2.5.1?)
ac40fd9e 12015 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
d9898ee8 12016 ;;
12017 esac
12018 link_all_deplibs_CXX=yes
12019
12020 output_verbose_link_cmd='echo'
12021
12022 # Archives containing C++ object files must be created using
12023 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12024 # necessary to make sure instantiated templates are included
12025 # in the archive.
12026 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12027 ;;
12028 gcx*)
12029 # Green Hills C++ Compiler
12030 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12031
12032 # The C++ compiler must be used to create the archive.
12033 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12034 ;;
12035 *)
12036 # GNU C++ compiler with Solaris linker
12037 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12038 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12039 if $CC --version | grep -v '^2\.7' > /dev/null; then
12040 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12041 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12042 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12043
12044 # Commands to make compiler produce verbose output that lists
12045 # what "hidden" libraries, object files and flags are used when
12046 # linking a shared library.
12047 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12048 else
12049 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12050 # platform.
12051 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12052 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12053 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12054
12055 # Commands to make compiler produce verbose output that lists
12056 # what "hidden" libraries, object files and flags are used when
12057 # linking a shared library.
12058 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12059 fi
12060
12061 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
ac40fd9e 12062 case $host_os in
12063 solaris2.[0-5] | solaris2.[0-5].*) ;;
12064 *)
12065 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12066 ;;
12067 esac
d9898ee8 12068 fi
12069 ;;
12070 esac
12071 ;;
12072 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12073 no_undefined_flag_CXX='${wl}-z,text'
12074 archive_cmds_need_lc_CXX=no
12075 hardcode_shlibpath_var_CXX=no
12076 runpath_var='LD_RUN_PATH'
12077
12078 case $cc_basename in
12079 CC*)
12080 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12081 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12082 ;;
12083 *)
12084 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12085 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12086 ;;
12087 esac
12088 ;;
12089 sysv5* | sco3.2v5* | sco5v6*)
12090 # Note: We can NOT use -z defs as we might desire, because we do not
12091 # link with -lc, and that would cause any symbols used from libc to
12092 # always be unresolved, which means just about no library would
12093 # ever link correctly. If we're not using GNU ld we use -z text
12094 # though, which does catch some bad symbols but isn't as heavy-handed
12095 # as -z defs.
12096 # For security reasons, it is highly recommended that you always
12097 # use absolute paths for naming shared libraries, and exclude the
12098 # DT_RUNPATH tag from executables and libraries. But doing so
12099 # requires that you compile everything twice, which is a pain.
12100 # So that behaviour is only enabled if SCOABSPATH is set to a
12101 # non-empty value in the environment. Most likely only useful for
12102 # creating official distributions of packages.
12103 # This is a hack until libtool officially supports absolute path
12104 # names for shared libraries.
12105 no_undefined_flag_CXX='${wl}-z,text'
12106 allow_undefined_flag_CXX='${wl}-z,nodefs'
12107 archive_cmds_need_lc_CXX=no
12108 hardcode_shlibpath_var_CXX=no
12109 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12110 hardcode_libdir_separator_CXX=':'
12111 link_all_deplibs_CXX=yes
12112 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12113 runpath_var='LD_RUN_PATH'
12114
12115 case $cc_basename in
12116 CC*)
12117 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12118 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12119 ;;
12120 *)
12121 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12122 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12123 ;;
12124 esac
12125 ;;
12126 tandem*)
12127 case $cc_basename in
12128 NCC*)
12129 # NonStop-UX NCC 3.20
12130 # FIXME: insert proper C++ library support
12131 ld_shlibs_CXX=no
12132 ;;
12133 *)
12134 # FIXME: insert proper C++ library support
12135 ld_shlibs_CXX=no
12136 ;;
12137 esac
12138 ;;
12139 vxworks*)
12140 # FIXME: insert proper C++ library support
12141 ld_shlibs_CXX=no
12142 ;;
12143 *)
12144 # FIXME: insert proper C++ library support
12145 ld_shlibs_CXX=no
12146 ;;
12147esac
dd184caf 12148{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12149echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
d9898ee8 12150test "$ld_shlibs_CXX" = no && can_build_shared=no
12151
12152GCC_CXX="$GXX"
12153LD_CXX="$LD"
12154
12155
12156cat > conftest.$ac_ext <<EOF
12157class Foo
12158{
12159public:
12160 Foo (void) { a = 0; }
12161private:
12162 int a;
12163};
12164EOF
12165
12166if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12167 (eval $ac_compile) 2>&5
12168 ac_status=$?
12169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12170 (exit $ac_status); }; then
12171 # Parse the compiler output and extract the necessary
12172 # objects, libraries and library flags.
12173
12174 # Sentinel used to keep track of whether or not we are before
12175 # the conftest object file.
12176 pre_test_object_deps_done=no
12177
12178 # The `*' in the case matches for architectures that use `case' in
12179 # $output_verbose_cmd can trigger glob expansion during the loop
12180 # eval without this substitution.
12181 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12182
12183 for p in `eval $output_verbose_link_cmd`; do
12184 case $p in
12185
12186 -L* | -R* | -l*)
12187 # Some compilers place space between "-{L,R}" and the path.
12188 # Remove the space.
12189 if test $p = "-L" \
12190 || test $p = "-R"; then
12191 prev=$p
12192 continue
12193 else
12194 prev=
12195 fi
12196
12197 if test "$pre_test_object_deps_done" = no; then
12198 case $p in
12199 -L* | -R*)
12200 # Internal compiler library paths should come after those
12201 # provided the user. The postdeps already come after the
12202 # user supplied libs so there is no need to process them.
12203 if test -z "$compiler_lib_search_path_CXX"; then
12204 compiler_lib_search_path_CXX="${prev}${p}"
12205 else
12206 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12207 fi
12208 ;;
12209 # The "-l" case would never come before the object being
12210 # linked, so don't bother handling this case.
12211 esac
12212 else
12213 if test -z "$postdeps_CXX"; then
12214 postdeps_CXX="${prev}${p}"
12215 else
12216 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12217 fi
12218 fi
12219 ;;
12220
12221 *.$objext)
12222 # This assumes that the test object file only shows up
12223 # once in the compiler output.
12224 if test "$p" = "conftest.$objext"; then
12225 pre_test_object_deps_done=yes
12226 continue
12227 fi
12228
12229 if test "$pre_test_object_deps_done" = no; then
12230 if test -z "$predep_objects_CXX"; then
12231 predep_objects_CXX="$p"
12232 else
12233 predep_objects_CXX="$predep_objects_CXX $p"
12234 fi
12235 else
12236 if test -z "$postdep_objects_CXX"; then
12237 postdep_objects_CXX="$p"
12238 else
12239 postdep_objects_CXX="$postdep_objects_CXX $p"
12240 fi
12241 fi
12242 ;;
12243
12244 *) ;; # Ignore the rest.
12245
12246 esac
12247 done
12248
12249 # Clean up.
12250 rm -f a.out a.exe
12251else
12252 echo "libtool.m4: error: problem compiling CXX test program"
12253fi
12254
12255$rm -f confest.$objext
12256
12257# PORTME: override above test on systems where it is broken
12258case $host_os in
ac40fd9e 12259interix[3-9]*)
d9898ee8 12260 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12261 # hack all around it, let's just trust "g++" to DTRT.
12262 predep_objects_CXX=
12263 postdep_objects_CXX=
12264 postdeps_CXX=
12265 ;;
12266
ac40fd9e 12267linux*)
12268 case `$CC -V 2>&1 | sed 5q` in
12269 *Sun\ C*)
12270 # Sun C++ 5.9
12271 #
12272 # The more standards-conforming stlport4 library is
12273 # incompatible with the Cstd library. Avoid specifying
12274 # it if it's in CXXFLAGS. Ignore libCrun as
12275 # -library=stlport4 depends on it.
12276 case " $CXX $CXXFLAGS " in
12277 *" -library=stlport4 "*)
12278 solaris_use_stlport4=yes
12279 ;;
12280 esac
12281 if test "$solaris_use_stlport4" != yes; then
12282 postdeps_CXX='-library=Cstd -library=Crun'
12283 fi
12284 ;;
12285 esac
12286 ;;
12287
d9898ee8 12288solaris*)
12289 case $cc_basename in
12290 CC*)
ac40fd9e 12291 # The more standards-conforming stlport4 library is
12292 # incompatible with the Cstd library. Avoid specifying
12293 # it if it's in CXXFLAGS. Ignore libCrun as
12294 # -library=stlport4 depends on it.
12295 case " $CXX $CXXFLAGS " in
12296 *" -library=stlport4 "*)
12297 solaris_use_stlport4=yes
12298 ;;
12299 esac
12300
d9898ee8 12301 # Adding this requires a known-good setup of shared libraries for
12302 # Sun compiler versions before 5.6, else PIC objects from an old
12303 # archive will be linked into the output, leading to subtle bugs.
ac40fd9e 12304 if test "$solaris_use_stlport4" != yes; then
12305 postdeps_CXX='-library=Cstd -library=Crun'
12306 fi
d9898ee8 12307 ;;
12308 esac
12309 ;;
12310esac
12311
12312
12313case " $postdeps_CXX " in
12314*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12315esac
12316
12317lt_prog_compiler_wl_CXX=
12318lt_prog_compiler_pic_CXX=
12319lt_prog_compiler_static_CXX=
12320
dd184caf 12321{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12322echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
d9898ee8 12323
12324 # C++ specific cases for pic, static, wl, etc.
12325 if test "$GXX" = yes; then
12326 lt_prog_compiler_wl_CXX='-Wl,'
12327 lt_prog_compiler_static_CXX='-static'
12328
12329 case $host_os in
12330 aix*)
12331 # All AIX code is PIC.
12332 if test "$host_cpu" = ia64; then
12333 # AIX 5 now supports IA64 processor
12334 lt_prog_compiler_static_CXX='-Bstatic'
12335 fi
12336 ;;
12337 amigaos*)
12338 # FIXME: we need at least 68020 code to build shared libraries, but
12339 # adding the `-m68020' flag to GCC prevents building anything better,
12340 # like `-m68040'.
12341 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12342 ;;
ac40fd9e 12343 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
d9898ee8 12344 # PIC is the default for these OSes.
12345 ;;
ac40fd9e 12346 mingw* | cygwin* | os2* | pw32*)
d9898ee8 12347 # This hack is so that the source file can tell whether it is being
12348 # built for inclusion in a dll (and should export symbols for example).
ac40fd9e 12349 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12350 # (--disable-auto-import) libraries
d9898ee8 12351 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12352 ;;
12353 darwin* | rhapsody*)
12354 # PIC is the default on this platform
12355 # Common symbols not allowed in MH_DYLIB files
12356 lt_prog_compiler_pic_CXX='-fno-common'
12357 ;;
12358 *djgpp*)
12359 # DJGPP does not support shared libraries at all
12360 lt_prog_compiler_pic_CXX=
12361 ;;
ac40fd9e 12362 interix[3-9]*)
d9898ee8 12363 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12364 # Instead, we relocate shared libraries at runtime.
12365 ;;
12366 sysv4*MP*)
12367 if test -d /usr/nec; then
12368 lt_prog_compiler_pic_CXX=-Kconform_pic
12369 fi
12370 ;;
12371 hpux*)
12372 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12373 # not for PA HP-UX.
12374 case $host_cpu in
12375 hppa*64*|ia64*)
12376 ;;
12377 *)
12378 lt_prog_compiler_pic_CXX='-fPIC'
12379 ;;
12380 esac
12381 ;;
12382 *)
12383 lt_prog_compiler_pic_CXX='-fPIC'
12384 ;;
12385 esac
12386 else
12387 case $host_os in
12388 aix4* | aix5*)
12389 # All AIX code is PIC.
12390 if test "$host_cpu" = ia64; then
12391 # AIX 5 now supports IA64 processor
12392 lt_prog_compiler_static_CXX='-Bstatic'
12393 else
12394 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12395 fi
12396 ;;
12397 chorus*)
12398 case $cc_basename in
12399 cxch68*)
12400 # Green Hills C++ Compiler
12401 # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
12402 ;;
12403 esac
12404 ;;
12405 darwin*)
12406 # PIC is the default on this platform
12407 # Common symbols not allowed in MH_DYLIB files
12408 case $cc_basename in
12409 xlc*)
12410 lt_prog_compiler_pic_CXX='-qnocommon'
12411 lt_prog_compiler_wl_CXX='-Wl,'
12412 ;;
12413 esac
12414 ;;
12415 dgux*)
12416 case $cc_basename in
12417 ec++*)
12418 lt_prog_compiler_pic_CXX='-KPIC'
12419 ;;
12420 ghcx*)
12421 # Green Hills C++ Compiler
12422 lt_prog_compiler_pic_CXX='-pic'
12423 ;;
12424 *)
12425 ;;
12426 esac
12427 ;;
ac40fd9e 12428 freebsd* | dragonfly*)
d9898ee8 12429 # FreeBSD uses GNU C++
12430 ;;
12431 hpux9* | hpux10* | hpux11*)
12432 case $cc_basename in
12433 CC*)
12434 lt_prog_compiler_wl_CXX='-Wl,'
12435 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12436 if test "$host_cpu" != ia64; then
12437 lt_prog_compiler_pic_CXX='+Z'
12438 fi
12439 ;;
12440 aCC*)
12441 lt_prog_compiler_wl_CXX='-Wl,'
12442 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12443 case $host_cpu in
12444 hppa*64*|ia64*)
12445 # +Z the default
12446 ;;
12447 *)
12448 lt_prog_compiler_pic_CXX='+Z'
12449 ;;
12450 esac
12451 ;;
12452 *)
12453 ;;
12454 esac
12455 ;;
12456 interix*)
12457 # This is c89, which is MS Visual C++ (no shared libs)
12458 # Anyone wants to do a port?
12459 ;;
12460 irix5* | irix6* | nonstopux*)
12461 case $cc_basename in
12462 CC*)
12463 lt_prog_compiler_wl_CXX='-Wl,'
12464 lt_prog_compiler_static_CXX='-non_shared'
12465 # CC pic flag -KPIC is the default.
12466 ;;
12467 *)
12468 ;;
12469 esac
12470 ;;
ac40fd9e 12471 linux* | k*bsd*-gnu)
d9898ee8 12472 case $cc_basename in
12473 KCC*)
12474 # KAI C++ Compiler
12475 lt_prog_compiler_wl_CXX='--backend -Wl,'
12476 lt_prog_compiler_pic_CXX='-fPIC'
12477 ;;
12478 icpc* | ecpc*)
12479 # Intel C++
12480 lt_prog_compiler_wl_CXX='-Wl,'
12481 lt_prog_compiler_pic_CXX='-KPIC'
12482 lt_prog_compiler_static_CXX='-static'
12483 ;;
12484 pgCC*)
12485 # Portland Group C++ compiler.
12486 lt_prog_compiler_wl_CXX='-Wl,'
12487 lt_prog_compiler_pic_CXX='-fpic'
12488 lt_prog_compiler_static_CXX='-Bstatic'
12489 ;;
12490 cxx*)
12491 # Compaq C++
12492 # Make sure the PIC flag is empty. It appears that all Alpha
12493 # Linux and Compaq Tru64 Unix objects are PIC.
12494 lt_prog_compiler_pic_CXX=
12495 lt_prog_compiler_static_CXX='-non_shared'
12496 ;;
12497 *)
ac40fd9e 12498 case `$CC -V 2>&1 | sed 5q` in
12499 *Sun\ C*)
12500 # Sun C++ 5.9
12501 lt_prog_compiler_pic_CXX='-KPIC'
12502 lt_prog_compiler_static_CXX='-Bstatic'
12503 lt_prog_compiler_wl_CXX='-Qoption ld '
12504 ;;
12505 esac
d9898ee8 12506 ;;
12507 esac
12508 ;;
12509 lynxos*)
12510 ;;
12511 m88k*)
12512 ;;
12513 mvs*)
12514 case $cc_basename in
12515 cxx*)
12516 lt_prog_compiler_pic_CXX='-W c,exportall'
12517 ;;
12518 *)
12519 ;;
12520 esac
12521 ;;
12522 netbsd*)
12523 ;;
12524 osf3* | osf4* | osf5*)
12525 case $cc_basename in
12526 KCC*)
12527 lt_prog_compiler_wl_CXX='--backend -Wl,'
12528 ;;
12529 RCC*)
12530 # Rational C++ 2.4.1
12531 lt_prog_compiler_pic_CXX='-pic'
12532 ;;
12533 cxx*)
12534 # Digital/Compaq C++
12535 lt_prog_compiler_wl_CXX='-Wl,'
12536 # Make sure the PIC flag is empty. It appears that all Alpha
12537 # Linux and Compaq Tru64 Unix objects are PIC.
12538 lt_prog_compiler_pic_CXX=
12539 lt_prog_compiler_static_CXX='-non_shared'
12540 ;;
12541 *)
12542 ;;
12543 esac
12544 ;;
12545 psos*)
12546 ;;
12547 solaris*)
12548 case $cc_basename in
12549 CC*)
12550 # Sun C++ 4.2, 5.x and Centerline C++
12551 lt_prog_compiler_pic_CXX='-KPIC'
12552 lt_prog_compiler_static_CXX='-Bstatic'
12553 lt_prog_compiler_wl_CXX='-Qoption ld '
12554 ;;
12555 gcx*)
12556 # Green Hills C++ Compiler
12557 lt_prog_compiler_pic_CXX='-PIC'
12558 ;;
12559 *)
12560 ;;
12561 esac
12562 ;;
12563 sunos4*)
12564 case $cc_basename in
12565 CC*)
12566 # Sun C++ 4.x
12567 lt_prog_compiler_pic_CXX='-pic'
12568 lt_prog_compiler_static_CXX='-Bstatic'
12569 ;;
12570 lcc*)
12571 # Lucid
12572 lt_prog_compiler_pic_CXX='-pic'
12573 ;;
12574 *)
12575 ;;
12576 esac
12577 ;;
12578 tandem*)
12579 case $cc_basename in
12580 NCC*)
12581 # NonStop-UX NCC 3.20
12582 lt_prog_compiler_pic_CXX='-KPIC'
12583 ;;
12584 *)
12585 ;;
12586 esac
12587 ;;
12588 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12589 case $cc_basename in
12590 CC*)
12591 lt_prog_compiler_wl_CXX='-Wl,'
12592 lt_prog_compiler_pic_CXX='-KPIC'
12593 lt_prog_compiler_static_CXX='-Bstatic'
12594 ;;
12595 esac
12596 ;;
12597 vxworks*)
12598 ;;
12599 *)
12600 lt_prog_compiler_can_build_shared_CXX=no
12601 ;;
12602 esac
12603 fi
12604
dd184caf 12605{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12606echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
d9898ee8 12607
12608#
12609# Check to make sure the PIC flag actually works.
12610#
12611if test -n "$lt_prog_compiler_pic_CXX"; then
12612
dd184caf 12613{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12614echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
d9898ee8 12615if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12616 echo $ECHO_N "(cached) $ECHO_C" >&6
12617else
12618 lt_prog_compiler_pic_works_CXX=no
12619 ac_outfile=conftest.$ac_objext
ac40fd9e 12620 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 12621 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12622 # Insert the option either (1) after the last *FLAGS variable, or
12623 # (2) before a word containing "conftest.", or (3) at the end.
12624 # Note that $ac_compile itself does not contain backslashes and begins
12625 # with a dollar sign (not a hyphen), so the echo should work correctly.
12626 # The option is referenced via a variable to avoid confusing sed.
12627 lt_compile=`echo "$ac_compile" | $SED \
12628 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12629 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12630 -e 's:$: $lt_compiler_flag:'`
ac40fd9e 12631 (eval echo "\"\$as_me:12631: $lt_compile\"" >&5)
d9898ee8 12632 (eval "$lt_compile" 2>conftest.err)
12633 ac_status=$?
12634 cat conftest.err >&5
ac40fd9e 12635 echo "$as_me:12635: \$? = $ac_status" >&5
d9898ee8 12636 if (exit $ac_status) && test -s "$ac_outfile"; then
12637 # The compiler can only warn and ignore the option if not recognized
12638 # So say no if there are warnings other than the usual output.
12639 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12640 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12641 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12642 lt_prog_compiler_pic_works_CXX=yes
12643 fi
12644 fi
12645 $rm conftest*
12646
12647fi
dd184caf 12648{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12649echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
d9898ee8 12650
12651if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12652 case $lt_prog_compiler_pic_CXX in
12653 "" | " "*) ;;
12654 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12655 esac
12656else
12657 lt_prog_compiler_pic_CXX=
12658 lt_prog_compiler_can_build_shared_CXX=no
12659fi
12660
12661fi
12662case $host_os in
12663 # For platforms which do not support PIC, -DPIC is meaningless:
12664 *djgpp*)
12665 lt_prog_compiler_pic_CXX=
12666 ;;
12667 *)
12668 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12669 ;;
12670esac
12671
12672#
12673# Check to make sure the static flag actually works.
12674#
12675wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
dd184caf 12676{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12677echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
d9898ee8 12678if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12679 echo $ECHO_N "(cached) $ECHO_C" >&6
12680else
12681 lt_prog_compiler_static_works_CXX=no
12682 save_LDFLAGS="$LDFLAGS"
12683 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
ac40fd9e 12684 echo "$lt_simple_link_test_code" > conftest.$ac_ext
d9898ee8 12685 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12686 # The linker can only warn and ignore the option if not recognized
12687 # So say no if there are warnings
12688 if test -s conftest.err; then
12689 # Append any errors to the config.log.
12690 cat conftest.err 1>&5
12691 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12692 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12693 if diff conftest.exp conftest.er2 >/dev/null; then
12694 lt_prog_compiler_static_works_CXX=yes
12695 fi
12696 else
12697 lt_prog_compiler_static_works_CXX=yes
12698 fi
12699 fi
12700 $rm conftest*
12701 LDFLAGS="$save_LDFLAGS"
12702
12703fi
dd184caf 12704{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12705echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
d9898ee8 12706
12707if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12708 :
12709else
12710 lt_prog_compiler_static_CXX=
12711fi
12712
12713
dd184caf 12714{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12715echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
d9898ee8 12716if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12717 echo $ECHO_N "(cached) $ECHO_C" >&6
12718else
12719 lt_cv_prog_compiler_c_o_CXX=no
12720 $rm -r conftest 2>/dev/null
12721 mkdir conftest
12722 cd conftest
12723 mkdir out
ac40fd9e 12724 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 12725
12726 lt_compiler_flag="-o out/conftest2.$ac_objext"
12727 # Insert the option either (1) after the last *FLAGS variable, or
12728 # (2) before a word containing "conftest.", or (3) at the end.
12729 # Note that $ac_compile itself does not contain backslashes and begins
12730 # with a dollar sign (not a hyphen), so the echo should work correctly.
12731 lt_compile=`echo "$ac_compile" | $SED \
12732 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12733 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12734 -e 's:$: $lt_compiler_flag:'`
ac40fd9e 12735 (eval echo "\"\$as_me:12735: $lt_compile\"" >&5)
d9898ee8 12736 (eval "$lt_compile" 2>out/conftest.err)
12737 ac_status=$?
12738 cat out/conftest.err >&5
ac40fd9e 12739 echo "$as_me:12739: \$? = $ac_status" >&5
d9898ee8 12740 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12741 then
12742 # The compiler can only warn and ignore the option if not recognized
12743 # So say no if there are warnings
12744 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12745 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12746 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12747 lt_cv_prog_compiler_c_o_CXX=yes
12748 fi
12749 fi
12750 chmod u+w . 2>&5
12751 $rm conftest*
12752 # SGI C++ compiler will create directory out/ii_files/ for
12753 # template instantiation
12754 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12755 $rm out/* && rmdir out
12756 cd ..
12757 rmdir conftest
12758 $rm conftest*
12759
12760fi
dd184caf 12761{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12762echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
d9898ee8 12763
12764
12765hard_links="nottested"
12766if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12767 # do not overwrite the value of need_locks provided by the user
dd184caf 12768 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12769echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
d9898ee8 12770 hard_links=yes
12771 $rm conftest*
12772 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12773 touch conftest.a
12774 ln conftest.a conftest.b 2>&5 || hard_links=no
12775 ln conftest.a conftest.b 2>/dev/null && hard_links=no
dd184caf 12776 { echo "$as_me:$LINENO: result: $hard_links" >&5
12777echo "${ECHO_T}$hard_links" >&6; }
d9898ee8 12778 if test "$hard_links" = no; then
12779 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12780echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12781 need_locks=warn
12782 fi
12783else
12784 need_locks=no
12785fi
12786
dd184caf 12787{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12788echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
d9898ee8 12789
12790 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12791 case $host_os in
12792 aix4* | aix5*)
12793 # If we're using GNU nm, then we don't want the "-C" option.
12794 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12795 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12796 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'
12797 else
12798 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'
12799 fi
12800 ;;
12801 pw32*)
12802 export_symbols_cmds_CXX="$ltdll_cmds"
12803 ;;
12804 cygwin* | mingw*)
ac40fd9e 12805 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'
d9898ee8 12806 ;;
12807 *)
12808 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12809 ;;
12810 esac
12811
dd184caf 12812{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12813echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
d9898ee8 12814test "$ld_shlibs_CXX" = no && can_build_shared=no
12815
12816#
12817# Do we need to explicitly link libc?
12818#
12819case "x$archive_cmds_need_lc_CXX" in
12820x|xyes)
12821 # Assume -lc should be added
12822 archive_cmds_need_lc_CXX=yes
12823
12824 if test "$enable_shared" = yes && test "$GCC" = yes; then
12825 case $archive_cmds_CXX in
12826 *'~'*)
12827 # FIXME: we may have to deal with multi-command sequences.
12828 ;;
12829 '$CC '*)
12830 # Test whether the compiler implicitly links with -lc since on some
12831 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12832 # to ld, don't add -lc before -lgcc.
dd184caf 12833 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12834echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
d9898ee8 12835 $rm conftest*
ac40fd9e 12836 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 12837
12838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12839 (eval $ac_compile) 2>&5
12840 ac_status=$?
12841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12842 (exit $ac_status); } 2>conftest.err; then
12843 soname=conftest
12844 lib=conftest
12845 libobjs=conftest.$ac_objext
12846 deplibs=
12847 wl=$lt_prog_compiler_wl_CXX
12848 pic_flag=$lt_prog_compiler_pic_CXX
12849 compiler_flags=-v
12850 linker_flags=-v
12851 verstring=
12852 output_objdir=.
12853 libname=conftest
12854 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12855 allow_undefined_flag_CXX=
12856 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12857 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12858 ac_status=$?
12859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12860 (exit $ac_status); }
12861 then
12862 archive_cmds_need_lc_CXX=no
12863 else
12864 archive_cmds_need_lc_CXX=yes
12865 fi
12866 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12867 else
12868 cat conftest.err 1>&5
12869 fi
12870 $rm conftest*
dd184caf 12871 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12872echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
d9898ee8 12873 ;;
12874 esac
12875 fi
12876 ;;
12877esac
12878
dd184caf 12879{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12880echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
d9898ee8 12881library_names_spec=
12882libname_spec='lib$name'
12883soname_spec=
12884shrext_cmds=".so"
12885postinstall_cmds=
12886postuninstall_cmds=
12887finish_cmds=
12888finish_eval=
12889shlibpath_var=
12890shlibpath_overrides_runpath=unknown
12891version_type=none
12892dynamic_linker="$host_os ld.so"
12893sys_lib_dlsearch_path_spec="/lib /usr/lib"
ac40fd9e 12894
d9898ee8 12895need_lib_prefix=unknown
12896hardcode_into_libs=no
12897
12898# when you set need_version to no, make sure it does not cause -set_version
12899# flags to be left without arguments
12900need_version=unknown
12901
12902case $host_os in
12903aix3*)
12904 version_type=linux
12905 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12906 shlibpath_var=LIBPATH
12907
12908 # AIX 3 has no versioning support, so we append a major version to the name.
12909 soname_spec='${libname}${release}${shared_ext}$major'
12910 ;;
12911
12912aix4* | aix5*)
12913 version_type=linux
12914 need_lib_prefix=no
12915 need_version=no
12916 hardcode_into_libs=yes
12917 if test "$host_cpu" = ia64; then
12918 # AIX 5 supports IA64
12919 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12920 shlibpath_var=LD_LIBRARY_PATH
12921 else
12922 # With GCC up to 2.95.x, collect2 would create an import file
12923 # for dependence libraries. The import file would start with
12924 # the line `#! .'. This would cause the generated library to
12925 # depend on `.', always an invalid library. This was fixed in
12926 # development snapshots of GCC prior to 3.0.
12927 case $host_os in
12928 aix4 | aix4.[01] | aix4.[01].*)
12929 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12930 echo ' yes '
12931 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12932 :
12933 else
12934 can_build_shared=no
12935 fi
12936 ;;
12937 esac
12938 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12939 # soname into executable. Probably we can add versioning support to
12940 # collect2, so additional links can be useful in future.
12941 if test "$aix_use_runtimelinking" = yes; then
12942 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12943 # instead of lib<name>.a to let people know that these are not
12944 # typical AIX shared libraries.
12945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12946 else
12947 # We preserve .a as extension for shared libraries through AIX4.2
12948 # and later when we are not doing run time linking.
12949 library_names_spec='${libname}${release}.a $libname.a'
12950 soname_spec='${libname}${release}${shared_ext}$major'
12951 fi
12952 shlibpath_var=LIBPATH
12953 fi
12954 ;;
12955
12956amigaos*)
12957 library_names_spec='$libname.ixlibrary $libname.a'
12958 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12959 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'
12960 ;;
12961
12962beos*)
12963 library_names_spec='${libname}${shared_ext}'
12964 dynamic_linker="$host_os ld.so"
12965 shlibpath_var=LIBRARY_PATH
12966 ;;
12967
12968bsdi[45]*)
12969 version_type=linux
12970 need_version=no
12971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12972 soname_spec='${libname}${release}${shared_ext}$major'
12973 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12974 shlibpath_var=LD_LIBRARY_PATH
12975 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12976 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12977 # the default ld.so.conf also contains /usr/contrib/lib and
12978 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12979 # libtool to hard-code these into programs
12980 ;;
12981
12982cygwin* | mingw* | pw32*)
12983 version_type=windows
12984 shrext_cmds=".dll"
12985 need_version=no
12986 need_lib_prefix=no
12987
12988 case $GCC,$host_os in
12989 yes,cygwin* | yes,mingw* | yes,pw32*)
12990 library_names_spec='$libname.dll.a'
12991 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12992 postinstall_cmds='base_file=`basename \${file}`~
12993 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12994 dldir=$destdir/`dirname \$dlpath`~
12995 test -d \$dldir || mkdir -p \$dldir~
12996 $install_prog $dir/$dlname \$dldir/$dlname~
12997 chmod a+x \$dldir/$dlname'
12998 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12999 dlpath=$dir/\$dldll~
13000 $rm \$dlpath'
13001 shlibpath_overrides_runpath=yes
13002
13003 case $host_os in
13004 cygwin*)
13005 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13006 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13007 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13008 ;;
13009 mingw*)
13010 # MinGW DLLs use traditional 'lib' prefix
13011 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13012 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13013 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13014 # It is most probably a Windows format PATH printed by
13015 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13016 # path with ; separators, and with drive letters. We can handle the
13017 # drive letters (cygwin fileutils understands them), so leave them,
13018 # especially as we might pass files found there to a mingw objdump,
13019 # which wouldn't understand a cygwinified path. Ahh.
13020 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13021 else
13022 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13023 fi
13024 ;;
13025 pw32*)
13026 # pw32 DLLs use 'pw' prefix rather than 'lib'
13027 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13028 ;;
13029 esac
13030 ;;
13031
13032 *)
13033 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13034 ;;
13035 esac
13036 dynamic_linker='Win32 ld.exe'
13037 # FIXME: first we should search . and the directory the executable is in
13038 shlibpath_var=PATH
13039 ;;
13040
13041darwin* | rhapsody*)
13042 dynamic_linker="$host_os dyld"
13043 version_type=darwin
13044 need_lib_prefix=no
13045 need_version=no
13046 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13047 soname_spec='${libname}${release}${major}$shared_ext'
13048 shlibpath_overrides_runpath=yes
13049 shlibpath_var=DYLD_LIBRARY_PATH
13050 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
ac40fd9e 13051
d9898ee8 13052 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13053 ;;
13054
13055dgux*)
13056 version_type=linux
13057 need_lib_prefix=no
13058 need_version=no
13059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13060 soname_spec='${libname}${release}${shared_ext}$major'
13061 shlibpath_var=LD_LIBRARY_PATH
13062 ;;
13063
13064freebsd1*)
13065 dynamic_linker=no
13066 ;;
13067
d9898ee8 13068freebsd* | dragonfly*)
13069 # DragonFly does not have aout. When/if they implement a new
13070 # versioning mechanism, adjust this.
13071 if test -x /usr/bin/objformat; then
13072 objformat=`/usr/bin/objformat`
13073 else
13074 case $host_os in
13075 freebsd[123]*) objformat=aout ;;
13076 *) objformat=elf ;;
13077 esac
13078 fi
13079 version_type=freebsd-$objformat
13080 case $version_type in
13081 freebsd-elf*)
13082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13083 need_version=no
13084 need_lib_prefix=no
13085 ;;
13086 freebsd-*)
13087 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13088 need_version=yes
13089 ;;
13090 esac
13091 shlibpath_var=LD_LIBRARY_PATH
13092 case $host_os in
13093 freebsd2*)
13094 shlibpath_overrides_runpath=yes
13095 ;;
13096 freebsd3.[01]* | freebsdelf3.[01]*)
13097 shlibpath_overrides_runpath=yes
13098 hardcode_into_libs=yes
13099 ;;
13100 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13101 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13102 shlibpath_overrides_runpath=no
13103 hardcode_into_libs=yes
13104 ;;
ac40fd9e 13105 *) # from 4.6 on, and DragonFly
d9898ee8 13106 shlibpath_overrides_runpath=yes
13107 hardcode_into_libs=yes
13108 ;;
13109 esac
13110 ;;
13111
13112gnu*)
13113 version_type=linux
13114 need_lib_prefix=no
13115 need_version=no
13116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13117 soname_spec='${libname}${release}${shared_ext}$major'
13118 shlibpath_var=LD_LIBRARY_PATH
13119 hardcode_into_libs=yes
13120 ;;
13121
13122hpux9* | hpux10* | hpux11*)
13123 # Give a soname corresponding to the major version so that dld.sl refuses to
13124 # link against other versions.
13125 version_type=sunos
13126 need_lib_prefix=no
13127 need_version=no
13128 case $host_cpu in
13129 ia64*)
13130 shrext_cmds='.so'
13131 hardcode_into_libs=yes
13132 dynamic_linker="$host_os dld.so"
13133 shlibpath_var=LD_LIBRARY_PATH
13134 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13136 soname_spec='${libname}${release}${shared_ext}$major'
13137 if test "X$HPUX_IA64_MODE" = X32; then
13138 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13139 else
13140 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13141 fi
13142 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13143 ;;
13144 hppa*64*)
13145 shrext_cmds='.sl'
13146 hardcode_into_libs=yes
13147 dynamic_linker="$host_os dld.sl"
13148 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13149 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13151 soname_spec='${libname}${release}${shared_ext}$major'
13152 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13153 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13154 ;;
13155 *)
13156 shrext_cmds='.sl'
13157 dynamic_linker="$host_os dld.sl"
13158 shlibpath_var=SHLIB_PATH
13159 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13161 soname_spec='${libname}${release}${shared_ext}$major'
13162 ;;
13163 esac
13164 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13165 postinstall_cmds='chmod 555 $lib'
13166 ;;
13167
ac40fd9e 13168interix[3-9]*)
d9898ee8 13169 version_type=linux
13170 need_lib_prefix=no
13171 need_version=no
13172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13173 soname_spec='${libname}${release}${shared_ext}$major'
13174 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13175 shlibpath_var=LD_LIBRARY_PATH
13176 shlibpath_overrides_runpath=no
13177 hardcode_into_libs=yes
13178 ;;
13179
13180irix5* | irix6* | nonstopux*)
13181 case $host_os in
13182 nonstopux*) version_type=nonstopux ;;
13183 *)
13184 if test "$lt_cv_prog_gnu_ld" = yes; then
13185 version_type=linux
13186 else
13187 version_type=irix
13188 fi ;;
13189 esac
13190 need_lib_prefix=no
13191 need_version=no
13192 soname_spec='${libname}${release}${shared_ext}$major'
13193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13194 case $host_os in
13195 irix5* | nonstopux*)
13196 libsuff= shlibsuff=
13197 ;;
13198 *)
13199 case $LD in # libtool.m4 will add one of these switches to LD
13200 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13201 libsuff= shlibsuff= libmagic=32-bit;;
13202 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13203 libsuff=32 shlibsuff=N32 libmagic=N32;;
13204 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13205 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13206 *) libsuff= shlibsuff= libmagic=never-match;;
13207 esac
13208 ;;
13209 esac
13210 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13211 shlibpath_overrides_runpath=no
13212 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13213 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13214 hardcode_into_libs=yes
13215 ;;
13216
13217# No shared lib support for Linux oldld, aout, or coff.
13218linux*oldld* | linux*aout* | linux*coff*)
13219 dynamic_linker=no
13220 ;;
13221
13222# This must be Linux ELF.
ac40fd9e 13223linux* | k*bsd*-gnu)
d9898ee8 13224 version_type=linux
13225 need_lib_prefix=no
13226 need_version=no
13227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13228 soname_spec='${libname}${release}${shared_ext}$major'
13229 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13230 shlibpath_var=LD_LIBRARY_PATH
13231 shlibpath_overrides_runpath=no
13232 # This implies no fast_install, which is unacceptable.
13233 # Some rework will be needed to allow for fast_install
13234 # before this can be enabled.
13235 hardcode_into_libs=yes
ac40fd9e 13236 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13237 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
d9898ee8 13238
13239 # Append ld.so.conf contents to the search path
13240 if test -f /etc/ld.so.conf; then
ac40fd9e 13241 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' ' '`
13242 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
d9898ee8 13243 fi
13244
13245 # We used to test for /lib/ld.so.1 and disable shared libraries on
13246 # powerpc, because MkLinux only supported shared libraries with the
13247 # GNU dynamic linker. Since this was broken with cross compilers,
13248 # most powerpc-linux boxes support dynamic linking these days and
13249 # people can always --disable-shared, the test was removed, and we
13250 # assume the GNU/Linux dynamic linker is in use.
13251 dynamic_linker='GNU/Linux ld.so'
13252 ;;
13253
d9898ee8 13254netbsd*)
13255 version_type=sunos
13256 need_lib_prefix=no
13257 need_version=no
13258 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13260 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13261 dynamic_linker='NetBSD (a.out) ld.so'
13262 else
13263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13264 soname_spec='${libname}${release}${shared_ext}$major'
13265 dynamic_linker='NetBSD ld.elf_so'
13266 fi
13267 shlibpath_var=LD_LIBRARY_PATH
13268 shlibpath_overrides_runpath=yes
13269 hardcode_into_libs=yes
13270 ;;
13271
13272newsos6)
13273 version_type=linux
13274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13275 shlibpath_var=LD_LIBRARY_PATH
13276 shlibpath_overrides_runpath=yes
13277 ;;
13278
13279nto-qnx*)
13280 version_type=linux
13281 need_lib_prefix=no
13282 need_version=no
13283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13284 soname_spec='${libname}${release}${shared_ext}$major'
13285 shlibpath_var=LD_LIBRARY_PATH
13286 shlibpath_overrides_runpath=yes
13287 ;;
13288
13289openbsd*)
13290 version_type=sunos
13291 sys_lib_dlsearch_path_spec="/usr/lib"
13292 need_lib_prefix=no
13293 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13294 case $host_os in
13295 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13296 *) need_version=no ;;
13297 esac
13298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13299 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13300 shlibpath_var=LD_LIBRARY_PATH
13301 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13302 case $host_os in
13303 openbsd2.[89] | openbsd2.[89].*)
13304 shlibpath_overrides_runpath=no
13305 ;;
13306 *)
13307 shlibpath_overrides_runpath=yes
13308 ;;
13309 esac
13310 else
13311 shlibpath_overrides_runpath=yes
13312 fi
13313 ;;
13314
13315os2*)
13316 libname_spec='$name'
13317 shrext_cmds=".dll"
13318 need_lib_prefix=no
13319 library_names_spec='$libname${shared_ext} $libname.a'
13320 dynamic_linker='OS/2 ld.exe'
13321 shlibpath_var=LIBPATH
13322 ;;
13323
13324osf3* | osf4* | osf5*)
13325 version_type=osf
13326 need_lib_prefix=no
13327 need_version=no
13328 soname_spec='${libname}${release}${shared_ext}$major'
13329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13330 shlibpath_var=LD_LIBRARY_PATH
13331 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13332 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13333 ;;
13334
ac40fd9e 13335rdos*)
13336 dynamic_linker=no
13337 ;;
13338
d9898ee8 13339solaris*)
13340 version_type=linux
13341 need_lib_prefix=no
13342 need_version=no
13343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13344 soname_spec='${libname}${release}${shared_ext}$major'
13345 shlibpath_var=LD_LIBRARY_PATH
13346 shlibpath_overrides_runpath=yes
13347 hardcode_into_libs=yes
13348 # ldd complains unless libraries are executable
13349 postinstall_cmds='chmod +x $lib'
13350 ;;
13351
13352sunos4*)
13353 version_type=sunos
13354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13355 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13356 shlibpath_var=LD_LIBRARY_PATH
13357 shlibpath_overrides_runpath=yes
13358 if test "$with_gnu_ld" = yes; then
13359 need_lib_prefix=no
13360 fi
13361 need_version=yes
13362 ;;
13363
13364sysv4 | sysv4.3*)
13365 version_type=linux
13366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13367 soname_spec='${libname}${release}${shared_ext}$major'
13368 shlibpath_var=LD_LIBRARY_PATH
13369 case $host_vendor in
13370 sni)
13371 shlibpath_overrides_runpath=no
13372 need_lib_prefix=no
13373 export_dynamic_flag_spec='${wl}-Blargedynsym'
13374 runpath_var=LD_RUN_PATH
13375 ;;
13376 siemens)
13377 need_lib_prefix=no
13378 ;;
13379 motorola)
13380 need_lib_prefix=no
13381 need_version=no
13382 shlibpath_overrides_runpath=no
13383 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13384 ;;
13385 esac
13386 ;;
13387
13388sysv4*MP*)
13389 if test -d /usr/nec ;then
13390 version_type=linux
13391 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13392 soname_spec='$libname${shared_ext}.$major'
13393 shlibpath_var=LD_LIBRARY_PATH
13394 fi
13395 ;;
13396
13397sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13398 version_type=freebsd-elf
13399 need_lib_prefix=no
13400 need_version=no
13401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13402 soname_spec='${libname}${release}${shared_ext}$major'
13403 shlibpath_var=LD_LIBRARY_PATH
13404 hardcode_into_libs=yes
13405 if test "$with_gnu_ld" = yes; then
13406 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13407 shlibpath_overrides_runpath=no
13408 else
13409 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13410 shlibpath_overrides_runpath=yes
13411 case $host_os in
13412 sco3.2v5*)
13413 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13414 ;;
13415 esac
13416 fi
13417 sys_lib_dlsearch_path_spec='/usr/lib'
13418 ;;
13419
13420uts4*)
13421 version_type=linux
13422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13423 soname_spec='${libname}${release}${shared_ext}$major'
13424 shlibpath_var=LD_LIBRARY_PATH
13425 ;;
13426
13427*)
13428 dynamic_linker=no
13429 ;;
13430esac
dd184caf 13431{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13432echo "${ECHO_T}$dynamic_linker" >&6; }
d9898ee8 13433test "$dynamic_linker" = no && can_build_shared=no
13434
13435variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13436if test "$GCC" = yes; then
13437 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13438fi
13439
dd184caf 13440{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13441echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
d9898ee8 13442hardcode_action_CXX=
13443if test -n "$hardcode_libdir_flag_spec_CXX" || \
13444 test -n "$runpath_var_CXX" || \
13445 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13446
13447 # We can hardcode non-existant directories.
13448 if test "$hardcode_direct_CXX" != no &&
13449 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13450 # have to relink, otherwise we might link with an installed library
13451 # when we should be linking with a yet-to-be-installed one
13452 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13453 test "$hardcode_minus_L_CXX" != no; then
13454 # Linking always hardcodes the temporary library directory.
13455 hardcode_action_CXX=relink
13456 else
13457 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13458 hardcode_action_CXX=immediate
13459 fi
13460else
13461 # We cannot hardcode anything, or else we can only hardcode existing
13462 # directories.
13463 hardcode_action_CXX=unsupported
13464fi
dd184caf 13465{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13466echo "${ECHO_T}$hardcode_action_CXX" >&6; }
d9898ee8 13467
13468if test "$hardcode_action_CXX" = relink; then
13469 # Fast installation is not supported
13470 enable_fast_install=no
13471elif test "$shlibpath_overrides_runpath" = yes ||
13472 test "$enable_shared" = no; then
13473 # Fast installation is not necessary
13474 enable_fast_install=needless
13475fi
13476
13477
13478# The else clause should only fire when bootstrapping the
13479# libtool distribution, otherwise you forgot to ship ltmain.sh
13480# with your package, and you will get complaints that there are
13481# no rules to generate ltmain.sh.
13482if test -f "$ltmain"; then
13483 # See if we are running on zsh, and set the options which allow our commands through
13484 # without removal of \ escapes.
13485 if test -n "${ZSH_VERSION+set}" ; then
13486 setopt NO_GLOB_SUBST
13487 fi
13488 # Now quote all the things that may contain metacharacters while being
13489 # careful not to overquote the AC_SUBSTed values. We take copies of the
13490 # variables and quote the copies for generation of the libtool script.
13491 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13492 SED SHELL STRIP \
13493 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13494 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13495 deplibs_check_method reload_flag reload_cmds need_locks \
13496 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13497 lt_cv_sys_global_symbol_to_c_name_address \
13498 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13499 old_postinstall_cmds old_postuninstall_cmds \
13500 compiler_CXX \
13501 CC_CXX \
13502 LD_CXX \
13503 lt_prog_compiler_wl_CXX \
13504 lt_prog_compiler_pic_CXX \
13505 lt_prog_compiler_static_CXX \
13506 lt_prog_compiler_no_builtin_flag_CXX \
13507 export_dynamic_flag_spec_CXX \
13508 thread_safe_flag_spec_CXX \
13509 whole_archive_flag_spec_CXX \
13510 enable_shared_with_static_runtimes_CXX \
13511 old_archive_cmds_CXX \
13512 old_archive_from_new_cmds_CXX \
13513 predep_objects_CXX \
13514 postdep_objects_CXX \
13515 predeps_CXX \
13516 postdeps_CXX \
13517 compiler_lib_search_path_CXX \
13518 archive_cmds_CXX \
13519 archive_expsym_cmds_CXX \
13520 postinstall_cmds_CXX \
13521 postuninstall_cmds_CXX \
13522 old_archive_from_expsyms_cmds_CXX \
13523 allow_undefined_flag_CXX \
13524 no_undefined_flag_CXX \
13525 export_symbols_cmds_CXX \
13526 hardcode_libdir_flag_spec_CXX \
13527 hardcode_libdir_flag_spec_ld_CXX \
13528 hardcode_libdir_separator_CXX \
13529 hardcode_automatic_CXX \
13530 module_cmds_CXX \
13531 module_expsym_cmds_CXX \
13532 lt_cv_prog_compiler_c_o_CXX \
ac40fd9e 13533 fix_srcfile_path_CXX \
d9898ee8 13534 exclude_expsyms_CXX \
13535 include_expsyms_CXX; do
13536
13537 case $var in
13538 old_archive_cmds_CXX | \
13539 old_archive_from_new_cmds_CXX | \
13540 archive_cmds_CXX | \
13541 archive_expsym_cmds_CXX | \
13542 module_cmds_CXX | \
13543 module_expsym_cmds_CXX | \
13544 old_archive_from_expsyms_cmds_CXX | \
13545 export_symbols_cmds_CXX | \
13546 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13547 postinstall_cmds | postuninstall_cmds | \
13548 old_postinstall_cmds | old_postuninstall_cmds | \
13549 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13550 # Double-quote double-evaled strings.
13551 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13552 ;;
13553 *)
13554 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13555 ;;
13556 esac
13557 done
13558
13559 case $lt_echo in
13560 *'\$0 --fallback-echo"')
13561 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13562 ;;
13563 esac
13564
13565cfgfile="$ofile"
13566
13567 cat <<__EOF__ >> "$cfgfile"
13568# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13569
13570# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13571
13572# Shell to use when invoking shell scripts.
13573SHELL=$lt_SHELL
13574
13575# Whether or not to build shared libraries.
13576build_libtool_libs=$enable_shared
13577
13578# Whether or not to build static libraries.
13579build_old_libs=$enable_static
13580
13581# Whether or not to add -lc for building shared libraries.
13582build_libtool_need_lc=$archive_cmds_need_lc_CXX
13583
13584# Whether or not to disallow shared libs when runtime libs are static
13585allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13586
13587# Whether or not to optimize for fast installation.
13588fast_install=$enable_fast_install
13589
13590# The host system.
13591host_alias=$host_alias
13592host=$host
13593host_os=$host_os
13594
13595# The build system.
13596build_alias=$build_alias
13597build=$build
13598build_os=$build_os
13599
13600# An echo program that does not interpret backslashes.
13601echo=$lt_echo
13602
13603# The archiver.
13604AR=$lt_AR
13605AR_FLAGS=$lt_AR_FLAGS
13606
13607# A C compiler.
13608LTCC=$lt_LTCC
13609
13610# LTCC compiler flags.
13611LTCFLAGS=$lt_LTCFLAGS
13612
13613# A language-specific compiler.
13614CC=$lt_compiler_CXX
13615
13616# Is the compiler the GNU C compiler?
13617with_gcc=$GCC_CXX
13618
d9898ee8 13619# An ERE matcher.
13620EGREP=$lt_EGREP
13621
13622# The linker used to build libraries.
13623LD=$lt_LD_CXX
13624
13625# Whether we need hard or soft links.
13626LN_S=$lt_LN_S
13627
13628# A BSD-compatible nm program.
13629NM=$lt_NM
13630
13631# A symbol stripping program
13632STRIP=$lt_STRIP
13633
13634# Used to examine libraries when file_magic_cmd begins "file"
13635MAGIC_CMD=$MAGIC_CMD
13636
13637# Used on cygwin: DLL creation program.
13638DLLTOOL="$DLLTOOL"
13639
13640# Used on cygwin: object dumper.
13641OBJDUMP="$OBJDUMP"
13642
13643# Used on cygwin: assembler.
13644AS="$AS"
13645
13646# The name of the directory that contains temporary libtool files.
13647objdir=$objdir
13648
13649# How to create reloadable object files.
13650reload_flag=$lt_reload_flag
13651reload_cmds=$lt_reload_cmds
13652
13653# How to pass a linker flag through the compiler.
13654wl=$lt_lt_prog_compiler_wl_CXX
13655
13656# Object file suffix (normally "o").
13657objext="$ac_objext"
13658
13659# Old archive suffix (normally "a").
13660libext="$libext"
13661
13662# Shared library suffix (normally ".so").
13663shrext_cmds='$shrext_cmds'
13664
13665# Executable file suffix (normally "").
13666exeext="$exeext"
13667
13668# Additional compiler flags for building library objects.
13669pic_flag=$lt_lt_prog_compiler_pic_CXX
13670pic_mode=$pic_mode
13671
13672# What is the maximum length of a command?
13673max_cmd_len=$lt_cv_sys_max_cmd_len
13674
13675# Does compiler simultaneously support -c and -o options?
13676compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13677
13678# Must we lock files when doing compilation?
13679need_locks=$lt_need_locks
13680
13681# Do we need the lib prefix for modules?
13682need_lib_prefix=$need_lib_prefix
13683
13684# Do we need a version for libraries?
13685need_version=$need_version
13686
13687# Whether dlopen is supported.
13688dlopen_support=$enable_dlopen
13689
13690# Whether dlopen of programs is supported.
13691dlopen_self=$enable_dlopen_self
13692
13693# Whether dlopen of statically linked programs is supported.
13694dlopen_self_static=$enable_dlopen_self_static
13695
13696# Compiler flag to prevent dynamic linking.
13697link_static_flag=$lt_lt_prog_compiler_static_CXX
13698
13699# Compiler flag to turn off builtin functions.
13700no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13701
13702# Compiler flag to allow reflexive dlopens.
13703export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13704
13705# Compiler flag to generate shared objects directly from archives.
13706whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13707
13708# Compiler flag to generate thread-safe objects.
13709thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13710
13711# Library versioning type.
13712version_type=$version_type
13713
13714# Format of library name prefix.
13715libname_spec=$lt_libname_spec
13716
13717# List of archive names. First name is the real one, the rest are links.
13718# The last name is the one that the linker finds with -lNAME.
13719library_names_spec=$lt_library_names_spec
13720
13721# The coded name of the library, if different from the real name.
13722soname_spec=$lt_soname_spec
13723
13724# Commands used to build and install an old-style archive.
13725RANLIB=$lt_RANLIB
13726old_archive_cmds=$lt_old_archive_cmds_CXX
13727old_postinstall_cmds=$lt_old_postinstall_cmds
13728old_postuninstall_cmds=$lt_old_postuninstall_cmds
13729
13730# Create an old-style archive from a shared archive.
13731old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13732
13733# Create a temporary old-style archive to link instead of a shared archive.
13734old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13735
13736# Commands used to build and install a shared archive.
13737archive_cmds=$lt_archive_cmds_CXX
13738archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13739postinstall_cmds=$lt_postinstall_cmds
13740postuninstall_cmds=$lt_postuninstall_cmds
13741
13742# Commands used to build a loadable module (assumed same as above if empty)
13743module_cmds=$lt_module_cmds_CXX
13744module_expsym_cmds=$lt_module_expsym_cmds_CXX
13745
13746# Commands to strip libraries.
13747old_striplib=$lt_old_striplib
13748striplib=$lt_striplib
13749
13750# Dependencies to place before the objects being linked to create a
13751# shared library.
dd184caf 13752predep_objects=$lt_predep_objects_CXX
d9898ee8 13753
13754# Dependencies to place after the objects being linked to create a
13755# shared library.
dd184caf 13756postdep_objects=$lt_postdep_objects_CXX
d9898ee8 13757
13758# Dependencies to place before the objects being linked to create a
13759# shared library.
13760predeps=$lt_predeps_CXX
13761
13762# Dependencies to place after the objects being linked to create a
13763# shared library.
13764postdeps=$lt_postdeps_CXX
13765
13766# The library search path used internally by the compiler when linking
13767# a shared library.
dd184caf 13768compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
d9898ee8 13769
13770# Method to check whether dependent libraries are shared objects.
13771deplibs_check_method=$lt_deplibs_check_method
13772
13773# Command to use when deplibs_check_method == file_magic.
13774file_magic_cmd=$lt_file_magic_cmd
13775
13776# Flag that allows shared libraries with undefined symbols to be built.
13777allow_undefined_flag=$lt_allow_undefined_flag_CXX
13778
13779# Flag that forces no undefined symbols.
13780no_undefined_flag=$lt_no_undefined_flag_CXX
13781
13782# Commands used to finish a libtool library installation in a directory.
13783finish_cmds=$lt_finish_cmds
13784
13785# Same as above, but a single script fragment to be evaled but not shown.
13786finish_eval=$lt_finish_eval
13787
13788# Take the output of nm and produce a listing of raw symbols and C names.
13789global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13790
13791# Transform the output of nm in a proper C declaration
13792global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13793
13794# Transform the output of nm in a C name address pair
13795global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13796
13797# This is the shared library runtime path variable.
13798runpath_var=$runpath_var
13799
13800# This is the shared library path variable.
13801shlibpath_var=$shlibpath_var
13802
13803# Is shlibpath searched before the hard-coded library search path?
13804shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13805
13806# How to hardcode a shared library path into an executable.
13807hardcode_action=$hardcode_action_CXX
13808
13809# Whether we should hardcode library paths into libraries.
13810hardcode_into_libs=$hardcode_into_libs
13811
13812# Flag to hardcode \$libdir into a binary during linking.
13813# This must work even if \$libdir does not exist.
13814hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13815
13816# If ld is used when linking, flag to hardcode \$libdir into
13817# a binary during linking. This must work even if \$libdir does
13818# not exist.
13819hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13820
13821# Whether we need a single -rpath flag with a separated argument.
13822hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13823
13824# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13825# resulting binary.
13826hardcode_direct=$hardcode_direct_CXX
13827
13828# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13829# resulting binary.
13830hardcode_minus_L=$hardcode_minus_L_CXX
13831
13832# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13833# the resulting binary.
13834hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13835
13836# Set to yes if building a shared library automatically hardcodes DIR into the library
13837# and all subsequent libraries and executables linked against it.
13838hardcode_automatic=$hardcode_automatic_CXX
13839
13840# Variables whose values should be saved in libtool wrapper scripts and
13841# restored at relink time.
13842variables_saved_for_relink="$variables_saved_for_relink"
13843
13844# Whether libtool must link a program against all its dependency libraries.
13845link_all_deplibs=$link_all_deplibs_CXX
13846
13847# Compile-time system search path for libraries
dd184caf 13848sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
d9898ee8 13849
13850# Run-time system search path for libraries
13851sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13852
13853# Fix the shell variable \$srcfile for the compiler.
ac40fd9e 13854fix_srcfile_path=$lt_fix_srcfile_path
d9898ee8 13855
13856# Set to yes if exported symbols are required.
13857always_export_symbols=$always_export_symbols_CXX
13858
13859# The commands to list exported symbols.
13860export_symbols_cmds=$lt_export_symbols_cmds_CXX
13861
13862# The commands to extract the exported symbol list from a shared archive.
13863extract_expsyms_cmds=$lt_extract_expsyms_cmds
13864
13865# Symbols that should not be listed in the preloaded symbols.
13866exclude_expsyms=$lt_exclude_expsyms_CXX
13867
13868# Symbols that must always be exported.
13869include_expsyms=$lt_include_expsyms_CXX
13870
13871# ### END LIBTOOL TAG CONFIG: $tagname
13872
13873__EOF__
13874
13875
13876else
13877 # If there is no Makefile yet, we rely on a make rule to execute
13878 # `config.status --recheck' to rerun these tests and create the
13879 # libtool script then.
13880 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13881 if test -f "$ltmain_in"; then
13882 test -f Makefile && make "$ltmain"
13883 fi
13884fi
13885
13886
13887ac_ext=c
13888ac_cpp='$CPP $CPPFLAGS'
13889ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13890ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13891ac_compiler_gnu=$ac_cv_c_compiler_gnu
13892
13893CC=$lt_save_CC
13894LDCXX=$LD
13895LD=$lt_save_LD
13896GCC=$lt_save_GCC
13897with_gnu_ldcxx=$with_gnu_ld
13898with_gnu_ld=$lt_save_with_gnu_ld
13899lt_cv_path_LDCXX=$lt_cv_path_LD
13900lt_cv_path_LD=$lt_save_path_LD
13901lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13902lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13903
13904 else
13905 tagname=""
13906 fi
13907 ;;
13908
13909 F77)
13910 if test -n "$F77" && test "X$F77" != "Xno"; then
13911
13912ac_ext=f
13913ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13914ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13915ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13916
13917
13918archive_cmds_need_lc_F77=no
13919allow_undefined_flag_F77=
13920always_export_symbols_F77=no
13921archive_expsym_cmds_F77=
13922export_dynamic_flag_spec_F77=
13923hardcode_direct_F77=no
13924hardcode_libdir_flag_spec_F77=
13925hardcode_libdir_flag_spec_ld_F77=
13926hardcode_libdir_separator_F77=
13927hardcode_minus_L_F77=no
13928hardcode_automatic_F77=no
13929module_cmds_F77=
13930module_expsym_cmds_F77=
13931link_all_deplibs_F77=unknown
13932old_archive_cmds_F77=$old_archive_cmds
13933no_undefined_flag_F77=
13934whole_archive_flag_spec_F77=
13935enable_shared_with_static_runtimes_F77=no
13936
13937# Source file extension for f77 test sources.
13938ac_ext=f
13939
13940# Object file extension for compiled f77 test sources.
13941objext=o
13942objext_F77=$objext
13943
13944# Code to be used in simple compile tests
ac40fd9e 13945lt_simple_compile_test_code="\
13946 subroutine t
13947 return
13948 end
13949"
d9898ee8 13950
13951# Code to be used in simple link tests
ac40fd9e 13952lt_simple_link_test_code="\
13953 program t
13954 end
13955"
d9898ee8 13956
13957# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13958
13959# If no C compiler was specified, use CC.
13960LTCC=${LTCC-"$CC"}
13961
13962# If no C compiler flags were specified, use CFLAGS.
13963LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13964
13965# Allow CC to be a program name with arguments.
13966compiler=$CC
13967
13968
13969# save warnings/boilerplate of simple test code
13970ac_outfile=conftest.$ac_objext
ac40fd9e 13971echo "$lt_simple_compile_test_code" >conftest.$ac_ext
d9898ee8 13972eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13973_lt_compiler_boilerplate=`cat conftest.err`
13974$rm conftest*
13975
13976ac_outfile=conftest.$ac_objext
ac40fd9e 13977echo "$lt_simple_link_test_code" >conftest.$ac_ext
d9898ee8 13978eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13979_lt_linker_boilerplate=`cat conftest.err`
13980$rm conftest*
13981
13982
13983# Allow CC to be a program name with arguments.
13984lt_save_CC="$CC"
13985CC=${F77-"f77"}
13986compiler=$CC
13987compiler_F77=$CC
13988for cc_temp in $compiler""; do
13989 case $cc_temp in
13990 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13991 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13992 \-*) ;;
13993 *) break;;
13994 esac
13995done
13996cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13997
13998
dd184caf 13999{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14000echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14001{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
14002echo "${ECHO_T}$can_build_shared" >&6; }
d9898ee8 14003
dd184caf 14004{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14005echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
d9898ee8 14006test "$can_build_shared" = "no" && enable_shared=no
14007
14008# On AIX, shared libraries and static libraries use the same namespace, and
14009# are all built from PIC.
14010case $host_os in
14011aix3*)
14012 test "$enable_shared" = yes && enable_static=no
14013 if test -n "$RANLIB"; then
14014 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14015 postinstall_cmds='$RANLIB $lib'
14016 fi
14017 ;;
14018aix4* | aix5*)
14019 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14020 test "$enable_shared" = yes && enable_static=no
14021 fi
14022 ;;
14023esac
dd184caf 14024{ echo "$as_me:$LINENO: result: $enable_shared" >&5
14025echo "${ECHO_T}$enable_shared" >&6; }
d9898ee8 14026
dd184caf 14027{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14028echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
d9898ee8 14029# Make sure either enable_shared or enable_static is yes.
14030test "$enable_shared" = yes || enable_static=yes
dd184caf 14031{ echo "$as_me:$LINENO: result: $enable_static" >&5
14032echo "${ECHO_T}$enable_static" >&6; }
d9898ee8 14033
14034GCC_F77="$G77"
14035LD_F77="$LD"
14036
14037lt_prog_compiler_wl_F77=
14038lt_prog_compiler_pic_F77=
14039lt_prog_compiler_static_F77=
14040
dd184caf 14041{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14042echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
d9898ee8 14043
14044 if test "$GCC" = yes; then
14045 lt_prog_compiler_wl_F77='-Wl,'
14046 lt_prog_compiler_static_F77='-static'
14047
14048 case $host_os in
14049 aix*)
14050 # All AIX code is PIC.
14051 if test "$host_cpu" = ia64; then
14052 # AIX 5 now supports IA64 processor
14053 lt_prog_compiler_static_F77='-Bstatic'
14054 fi
14055 ;;
14056
14057 amigaos*)
14058 # FIXME: we need at least 68020 code to build shared libraries, but
14059 # adding the `-m68020' flag to GCC prevents building anything better,
14060 # like `-m68040'.
14061 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14062 ;;
14063
ac40fd9e 14064 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
d9898ee8 14065 # PIC is the default for these OSes.
14066 ;;
14067
ac40fd9e 14068 mingw* | cygwin* | pw32* | os2*)
d9898ee8 14069 # This hack is so that the source file can tell whether it is being
14070 # built for inclusion in a dll (and should export symbols for example).
ac40fd9e 14071 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14072 # (--disable-auto-import) libraries
d9898ee8 14073 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14074 ;;
14075
14076 darwin* | rhapsody*)
14077 # PIC is the default on this platform
14078 # Common symbols not allowed in MH_DYLIB files
14079 lt_prog_compiler_pic_F77='-fno-common'
14080 ;;
14081
ac40fd9e 14082 interix[3-9]*)
d9898ee8 14083 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14084 # Instead, we relocate shared libraries at runtime.
14085 ;;
14086
14087 msdosdjgpp*)
14088 # Just because we use GCC doesn't mean we suddenly get shared libraries
14089 # on systems that don't support them.
14090 lt_prog_compiler_can_build_shared_F77=no
14091 enable_shared=no
14092 ;;
14093
14094 sysv4*MP*)
14095 if test -d /usr/nec; then
14096 lt_prog_compiler_pic_F77=-Kconform_pic
14097 fi
14098 ;;
14099
14100 hpux*)
14101 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14102 # not for PA HP-UX.
14103 case $host_cpu in
14104 hppa*64*|ia64*)
14105 # +Z the default
14106 ;;
14107 *)
14108 lt_prog_compiler_pic_F77='-fPIC'
14109 ;;
14110 esac
14111 ;;
14112
14113 *)
14114 lt_prog_compiler_pic_F77='-fPIC'
14115 ;;
14116 esac
14117 else
14118 # PORTME Check for flag to pass linker flags through the system compiler.
14119 case $host_os in
14120 aix*)
14121 lt_prog_compiler_wl_F77='-Wl,'
14122 if test "$host_cpu" = ia64; then
14123 # AIX 5 now supports IA64 processor
14124 lt_prog_compiler_static_F77='-Bstatic'
14125 else
14126 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14127 fi
14128 ;;
14129 darwin*)
14130 # PIC is the default on this platform
14131 # Common symbols not allowed in MH_DYLIB files
14132 case $cc_basename in
14133 xlc*)
14134 lt_prog_compiler_pic_F77='-qnocommon'
14135 lt_prog_compiler_wl_F77='-Wl,'
14136 ;;
14137 esac
14138 ;;
14139
ac40fd9e 14140 mingw* | cygwin* | pw32* | os2*)
d9898ee8 14141 # This hack is so that the source file can tell whether it is being
14142 # built for inclusion in a dll (and should export symbols for example).
14143 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14144 ;;
14145
14146 hpux9* | hpux10* | hpux11*)
14147 lt_prog_compiler_wl_F77='-Wl,'
14148 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14149 # not for PA HP-UX.
14150 case $host_cpu in
14151 hppa*64*|ia64*)
14152 # +Z the default
14153 ;;
14154 *)
14155 lt_prog_compiler_pic_F77='+Z'
14156 ;;
14157 esac
14158 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14159 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14160 ;;
14161
14162 irix5* | irix6* | nonstopux*)
14163 lt_prog_compiler_wl_F77='-Wl,'
14164 # PIC (with -KPIC) is the default.
14165 lt_prog_compiler_static_F77='-non_shared'
14166 ;;
14167
14168 newsos6)
14169 lt_prog_compiler_pic_F77='-KPIC'
14170 lt_prog_compiler_static_F77='-Bstatic'
14171 ;;
14172
ac40fd9e 14173 linux* | k*bsd*-gnu)
d9898ee8 14174 case $cc_basename in
14175 icc* | ecc*)
14176 lt_prog_compiler_wl_F77='-Wl,'
14177 lt_prog_compiler_pic_F77='-KPIC'
14178 lt_prog_compiler_static_F77='-static'
14179 ;;
14180 pgcc* | pgf77* | pgf90* | pgf95*)
14181 # Portland Group compilers (*not* the Pentium gcc compiler,
14182 # which looks to be a dead project)
14183 lt_prog_compiler_wl_F77='-Wl,'
14184 lt_prog_compiler_pic_F77='-fpic'
14185 lt_prog_compiler_static_F77='-Bstatic'
14186 ;;
14187 ccc*)
14188 lt_prog_compiler_wl_F77='-Wl,'
14189 # All Alpha code is PIC.
14190 lt_prog_compiler_static_F77='-non_shared'
14191 ;;
ac40fd9e 14192 *)
14193 case `$CC -V 2>&1 | sed 5q` in
14194 *Sun\ C*)
14195 # Sun C 5.9
14196 lt_prog_compiler_pic_F77='-KPIC'
14197 lt_prog_compiler_static_F77='-Bstatic'
14198 lt_prog_compiler_wl_F77='-Wl,'
14199 ;;
14200 *Sun\ F*)
14201 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14202 lt_prog_compiler_pic_F77='-KPIC'
14203 lt_prog_compiler_static_F77='-Bstatic'
14204 lt_prog_compiler_wl_F77=''
14205 ;;
14206 esac
14207 ;;
d9898ee8 14208 esac
14209 ;;
14210
14211 osf3* | osf4* | osf5*)
14212 lt_prog_compiler_wl_F77='-Wl,'
14213 # All OSF/1 code is PIC.
14214 lt_prog_compiler_static_F77='-non_shared'
14215 ;;
14216
ac40fd9e 14217 rdos*)
14218 lt_prog_compiler_static_F77='-non_shared'
14219 ;;
14220
d9898ee8 14221 solaris*)
14222 lt_prog_compiler_pic_F77='-KPIC'
14223 lt_prog_compiler_static_F77='-Bstatic'
14224 case $cc_basename in
14225 f77* | f90* | f95*)
14226 lt_prog_compiler_wl_F77='-Qoption ld ';;
14227 *)
14228 lt_prog_compiler_wl_F77='-Wl,';;
14229 esac
14230 ;;
14231
14232 sunos4*)
14233 lt_prog_compiler_wl_F77='-Qoption ld '
14234 lt_prog_compiler_pic_F77='-PIC'
14235 lt_prog_compiler_static_F77='-Bstatic'
14236 ;;
14237
14238 sysv4 | sysv4.2uw2* | sysv4.3*)
14239 lt_prog_compiler_wl_F77='-Wl,'
14240 lt_prog_compiler_pic_F77='-KPIC'
14241 lt_prog_compiler_static_F77='-Bstatic'
14242 ;;
14243
14244 sysv4*MP*)
14245 if test -d /usr/nec ;then
14246 lt_prog_compiler_pic_F77='-Kconform_pic'
14247 lt_prog_compiler_static_F77='-Bstatic'
14248 fi
14249 ;;
14250
14251 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14252 lt_prog_compiler_wl_F77='-Wl,'
14253 lt_prog_compiler_pic_F77='-KPIC'
14254 lt_prog_compiler_static_F77='-Bstatic'
14255 ;;
14256
14257 unicos*)
14258 lt_prog_compiler_wl_F77='-Wl,'
14259 lt_prog_compiler_can_build_shared_F77=no
14260 ;;
14261
14262 uts4*)
14263 lt_prog_compiler_pic_F77='-pic'
14264 lt_prog_compiler_static_F77='-Bstatic'
14265 ;;
14266
14267 *)
14268 lt_prog_compiler_can_build_shared_F77=no
14269 ;;
14270 esac
14271 fi
14272
dd184caf 14273{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14274echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
d9898ee8 14275
14276#
14277# Check to make sure the PIC flag actually works.
14278#
14279if test -n "$lt_prog_compiler_pic_F77"; then
14280
dd184caf 14281{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14282echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
d9898ee8 14283if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14284 echo $ECHO_N "(cached) $ECHO_C" >&6
14285else
14286 lt_prog_compiler_pic_works_F77=no
14287 ac_outfile=conftest.$ac_objext
ac40fd9e 14288 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 14289 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14290 # Insert the option either (1) after the last *FLAGS variable, or
14291 # (2) before a word containing "conftest.", or (3) at the end.
14292 # Note that $ac_compile itself does not contain backslashes and begins
14293 # with a dollar sign (not a hyphen), so the echo should work correctly.
14294 # The option is referenced via a variable to avoid confusing sed.
14295 lt_compile=`echo "$ac_compile" | $SED \
14296 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14297 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14298 -e 's:$: $lt_compiler_flag:'`
ac40fd9e 14299 (eval echo "\"\$as_me:14299: $lt_compile\"" >&5)
d9898ee8 14300 (eval "$lt_compile" 2>conftest.err)
14301 ac_status=$?
14302 cat conftest.err >&5
ac40fd9e 14303 echo "$as_me:14303: \$? = $ac_status" >&5
d9898ee8 14304 if (exit $ac_status) && test -s "$ac_outfile"; then
14305 # The compiler can only warn and ignore the option if not recognized
14306 # So say no if there are warnings other than the usual output.
14307 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14308 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14309 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14310 lt_prog_compiler_pic_works_F77=yes
14311 fi
14312 fi
14313 $rm conftest*
14314
14315fi
dd184caf 14316{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14317echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
d9898ee8 14318
14319if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14320 case $lt_prog_compiler_pic_F77 in
14321 "" | " "*) ;;
14322 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14323 esac
14324else
14325 lt_prog_compiler_pic_F77=
14326 lt_prog_compiler_can_build_shared_F77=no
14327fi
14328
14329fi
14330case $host_os in
14331 # For platforms which do not support PIC, -DPIC is meaningless:
14332 *djgpp*)
14333 lt_prog_compiler_pic_F77=
14334 ;;
14335 *)
14336 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14337 ;;
14338esac
14339
14340#
14341# Check to make sure the static flag actually works.
14342#
14343wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
dd184caf 14344{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14345echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
d9898ee8 14346if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14347 echo $ECHO_N "(cached) $ECHO_C" >&6
14348else
14349 lt_prog_compiler_static_works_F77=no
14350 save_LDFLAGS="$LDFLAGS"
14351 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
ac40fd9e 14352 echo "$lt_simple_link_test_code" > conftest.$ac_ext
d9898ee8 14353 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14354 # The linker can only warn and ignore the option if not recognized
14355 # So say no if there are warnings
14356 if test -s conftest.err; then
14357 # Append any errors to the config.log.
14358 cat conftest.err 1>&5
14359 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14360 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14361 if diff conftest.exp conftest.er2 >/dev/null; then
14362 lt_prog_compiler_static_works_F77=yes
14363 fi
14364 else
14365 lt_prog_compiler_static_works_F77=yes
14366 fi
14367 fi
14368 $rm conftest*
14369 LDFLAGS="$save_LDFLAGS"
14370
14371fi
dd184caf 14372{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14373echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
d9898ee8 14374
14375if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14376 :
14377else
14378 lt_prog_compiler_static_F77=
14379fi
14380
14381
dd184caf 14382{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14383echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
d9898ee8 14384if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14385 echo $ECHO_N "(cached) $ECHO_C" >&6
14386else
14387 lt_cv_prog_compiler_c_o_F77=no
14388 $rm -r conftest 2>/dev/null
14389 mkdir conftest
14390 cd conftest
14391 mkdir out
ac40fd9e 14392 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 14393
14394 lt_compiler_flag="-o out/conftest2.$ac_objext"
14395 # Insert the option either (1) after the last *FLAGS variable, or
14396 # (2) before a word containing "conftest.", or (3) at the end.
14397 # Note that $ac_compile itself does not contain backslashes and begins
14398 # with a dollar sign (not a hyphen), so the echo should work correctly.
14399 lt_compile=`echo "$ac_compile" | $SED \
14400 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14401 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14402 -e 's:$: $lt_compiler_flag:'`
ac40fd9e 14403 (eval echo "\"\$as_me:14403: $lt_compile\"" >&5)
d9898ee8 14404 (eval "$lt_compile" 2>out/conftest.err)
14405 ac_status=$?
14406 cat out/conftest.err >&5
ac40fd9e 14407 echo "$as_me:14407: \$? = $ac_status" >&5
d9898ee8 14408 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14409 then
14410 # The compiler can only warn and ignore the option if not recognized
14411 # So say no if there are warnings
14412 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14413 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14414 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14415 lt_cv_prog_compiler_c_o_F77=yes
14416 fi
14417 fi
14418 chmod u+w . 2>&5
14419 $rm conftest*
14420 # SGI C++ compiler will create directory out/ii_files/ for
14421 # template instantiation
14422 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14423 $rm out/* && rmdir out
14424 cd ..
14425 rmdir conftest
14426 $rm conftest*
14427
14428fi
dd184caf 14429{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14430echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
d9898ee8 14431
14432
14433hard_links="nottested"
14434if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14435 # do not overwrite the value of need_locks provided by the user
dd184caf 14436 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14437echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
d9898ee8 14438 hard_links=yes
14439 $rm conftest*
14440 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14441 touch conftest.a
14442 ln conftest.a conftest.b 2>&5 || hard_links=no
14443 ln conftest.a conftest.b 2>/dev/null && hard_links=no
dd184caf 14444 { echo "$as_me:$LINENO: result: $hard_links" >&5
14445echo "${ECHO_T}$hard_links" >&6; }
d9898ee8 14446 if test "$hard_links" = no; then
14447 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14448echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14449 need_locks=warn
14450 fi
14451else
14452 need_locks=no
14453fi
14454
dd184caf 14455{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14456echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
d9898ee8 14457
14458 runpath_var=
14459 allow_undefined_flag_F77=
14460 enable_shared_with_static_runtimes_F77=no
14461 archive_cmds_F77=
14462 archive_expsym_cmds_F77=
14463 old_archive_From_new_cmds_F77=
14464 old_archive_from_expsyms_cmds_F77=
14465 export_dynamic_flag_spec_F77=
14466 whole_archive_flag_spec_F77=
14467 thread_safe_flag_spec_F77=
14468 hardcode_libdir_flag_spec_F77=
14469 hardcode_libdir_flag_spec_ld_F77=
14470 hardcode_libdir_separator_F77=
14471 hardcode_direct_F77=no
14472 hardcode_minus_L_F77=no
14473 hardcode_shlibpath_var_F77=unsupported
14474 link_all_deplibs_F77=unknown
14475 hardcode_automatic_F77=no
14476 module_cmds_F77=
14477 module_expsym_cmds_F77=
14478 always_export_symbols_F77=no
14479 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14480 # include_expsyms should be a list of space-separated symbols to be *always*
14481 # included in the symbol list
14482 include_expsyms_F77=
14483 # exclude_expsyms can be an extended regexp of symbols to exclude
14484 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14485 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14486 # as well as any symbol that contains `d'.
14487 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14488 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14489 # platforms (ab)use it in PIC code, but their linkers get confused if
14490 # the symbol is explicitly referenced. Since portable code cannot
14491 # rely on this symbol name, it's probably fine to never include it in
14492 # preloaded symbol tables.
14493 extract_expsyms_cmds=
14494 # Just being paranoid about ensuring that cc_basename is set.
14495 for cc_temp in $compiler""; do
14496 case $cc_temp in
14497 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14498 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14499 \-*) ;;
14500 *) break;;
14501 esac
14502done
14503cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14504
14505 case $host_os in
14506 cygwin* | mingw* | pw32*)
14507 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14508 # When not using gcc, we currently assume that we are using
14509 # Microsoft Visual C++.
14510 if test "$GCC" != yes; then
14511 with_gnu_ld=no
14512 fi
14513 ;;
14514 interix*)
14515 # we just hope/assume this is gcc and not c89 (= MSVC++)
14516 with_gnu_ld=yes
14517 ;;
14518 openbsd*)
14519 with_gnu_ld=no
14520 ;;
14521 esac
14522
14523 ld_shlibs_F77=yes
14524 if test "$with_gnu_ld" = yes; then
14525 # If archive_cmds runs LD, not CC, wlarc should be empty
14526 wlarc='${wl}'
14527
14528 # Set some defaults for GNU ld with shared library support. These
14529 # are reset later if shared libraries are not supported. Putting them
14530 # here allows them to be overridden if necessary.
14531 runpath_var=LD_RUN_PATH
14532 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14533 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14534 # ancient GNU ld didn't support --whole-archive et. al.
14535 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14536 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14537 else
14538 whole_archive_flag_spec_F77=
14539 fi
14540 supports_anon_versioning=no
14541 case `$LD -v 2>/dev/null` in
14542 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14543 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14544 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14545 *\ 2.11.*) ;; # other 2.11 versions
14546 *) supports_anon_versioning=yes ;;
14547 esac
14548
14549 # See if GNU ld supports shared libraries.
14550 case $host_os in
14551 aix3* | aix4* | aix5*)
14552 # On AIX/PPC, the GNU linker is very broken
14553 if test "$host_cpu" != ia64; then
14554 ld_shlibs_F77=no
14555 cat <<EOF 1>&2
14556
14557*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14558*** to be unable to reliably create shared libraries on AIX.
14559*** Therefore, libtool is disabling shared libraries support. If you
14560*** really care for shared libraries, you may want to modify your PATH
14561*** so that a non-GNU linker is found, and then restart.
14562
14563EOF
14564 fi
14565 ;;
14566
14567 amigaos*)
14568 archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
14569 hardcode_libdir_flag_spec_F77='-L$libdir'
14570 hardcode_minus_L_F77=yes
14571
14572 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14573 # that the semantics of dynamic libraries on AmigaOS, at least up
14574 # to version 4, is to share data among multiple programs linked
14575 # with the same dynamic library. Since this doesn't match the
14576 # behavior of shared libraries on other platforms, we can't use
14577 # them.
14578 ld_shlibs_F77=no
14579 ;;
14580
14581 beos*)
14582 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14583 allow_undefined_flag_F77=unsupported
14584 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14585 # support --undefined. This deserves some investigation. FIXME
14586 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14587 else
14588 ld_shlibs_F77=no
14589 fi
14590 ;;
14591
14592 cygwin* | mingw* | pw32*)
14593 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14594 # as there is no search path for DLLs.
14595 hardcode_libdir_flag_spec_F77='-L$libdir'
14596 allow_undefined_flag_F77=unsupported
14597 always_export_symbols_F77=no
14598 enable_shared_with_static_runtimes_F77=yes
ac40fd9e 14599 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
d9898ee8 14600
14601 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14602 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14603 # If the export-symbols file already is a .def file (1st line
14604 # is EXPORTS), use it as is; otherwise, prepend...
14605 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14606 cp $export_symbols $output_objdir/$soname.def;
14607 else
14608 echo EXPORTS > $output_objdir/$soname.def;
14609 cat $export_symbols >> $output_objdir/$soname.def;
14610 fi~
14611 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14612 else
14613 ld_shlibs_F77=no
14614 fi
14615 ;;
14616
ac40fd9e 14617 interix[3-9]*)
d9898ee8 14618 hardcode_direct_F77=no
14619 hardcode_shlibpath_var_F77=no
14620 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14621 export_dynamic_flag_spec_F77='${wl}-E'
14622 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14623 # Instead, shared libraries are loaded at an image base (0x10000000 by
14624 # default) and relocated if they conflict, which is a slow very memory
14625 # consuming and fragmenting process. To avoid this, we pick a random,
14626 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14627 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14628 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14629 archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14630 ;;
14631
ac40fd9e 14632 gnu* | linux* | k*bsd*-gnu)
d9898ee8 14633 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14634 tmp_addflag=
14635 case $cc_basename,$host_cpu in
14636 pgcc*) # Portland Group C compiler
14637 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14638 tmp_addflag=' $pic_flag'
14639 ;;
14640 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14641 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14642 tmp_addflag=' $pic_flag -Mnomain' ;;
14643 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14644 tmp_addflag=' -i_dynamic' ;;
14645 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14646 tmp_addflag=' -i_dynamic -nofor_main' ;;
14647 ifc* | ifort*) # Intel Fortran compiler
14648 tmp_addflag=' -nofor_main' ;;
14649 esac
ac40fd9e 14650 case `$CC -V 2>&1 | sed 5q` in
14651 *Sun\ C*) # Sun C 5.9
14652 whole_archive_flag_spec_F77='${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'
14653 tmp_sharedflag='-G' ;;
14654 *Sun\ F*) # Sun Fortran 8.3
14655 tmp_sharedflag='-G' ;;
14656 *)
14657 tmp_sharedflag='-shared' ;;
14658 esac
14659 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
d9898ee8 14660
14661 if test $supports_anon_versioning = yes; then
14662 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14663 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14664 $echo "local: *; };" >> $output_objdir/$libname.ver~
ac40fd9e 14665 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
d9898ee8 14666 fi
14667 else
14668 ld_shlibs_F77=no
14669 fi
14670 ;;
14671
14672 netbsd*)
14673 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14674 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14675 wlarc=
14676 else
14677 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14678 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14679 fi
14680 ;;
14681
14682 solaris*)
14683 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14684 ld_shlibs_F77=no
14685 cat <<EOF 1>&2
14686
14687*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14688*** create shared libraries on Solaris systems. Therefore, libtool
14689*** is disabling shared libraries support. We urge you to upgrade GNU
14690*** binutils to release 2.9.1 or newer. Another option is to modify
14691*** your PATH or compiler configuration so that the native linker is
14692*** used, and then restart.
14693
14694EOF
14695 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14696 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14697 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14698 else
14699 ld_shlibs_F77=no
14700 fi
14701 ;;
14702
14703 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14704 case `$LD -v 2>&1` in
14705 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14706 ld_shlibs_F77=no
14707 cat <<_LT_EOF 1>&2
14708
14709*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14710*** reliably create shared libraries on SCO systems. Therefore, libtool
14711*** is disabling shared libraries support. We urge you to upgrade GNU
14712*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14713*** your PATH or compiler configuration so that the native linker is
14714*** used, and then restart.
14715
14716_LT_EOF
14717 ;;
14718 *)
14719 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14720 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14721 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14722 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14723 else
14724 ld_shlibs_F77=no
14725 fi
14726 ;;
14727 esac
14728 ;;
14729
14730 sunos4*)
14731 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14732 wlarc=
14733 hardcode_direct_F77=yes
14734 hardcode_shlibpath_var_F77=no
14735 ;;
14736
14737 *)
14738 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14739 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14740 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14741 else
14742 ld_shlibs_F77=no
14743 fi
14744 ;;
14745 esac
14746
14747 if test "$ld_shlibs_F77" = no; then
14748 runpath_var=
14749 hardcode_libdir_flag_spec_F77=
14750 export_dynamic_flag_spec_F77=
14751 whole_archive_flag_spec_F77=
14752 fi
14753 else
14754 # PORTME fill in a description of your system's linker (not GNU ld)
14755 case $host_os in
14756 aix3*)
14757 allow_undefined_flag_F77=unsupported
14758 always_export_symbols_F77=yes
14759 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
14760 # Note: this linker hardcodes the directories in LIBPATH if there
14761 # are no directories specified by -L.
14762 hardcode_minus_L_F77=yes
14763 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14764 # Neither direct hardcoding nor static linking is supported with a
14765 # broken collect2.
14766 hardcode_direct_F77=unsupported
14767 fi
14768 ;;
14769
14770 aix4* | aix5*)
14771 if test "$host_cpu" = ia64; then
14772 # On IA64, the linker does run time linking by default, so we don't
14773 # have to do anything special.
14774 aix_use_runtimelinking=no
14775 exp_sym_flag='-Bexport'
14776 no_entry_flag=""
14777 else
14778 # If we're using GNU nm, then we don't want the "-C" option.
14779 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14780 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14781 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14782 else
14783 export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14784 fi
14785 aix_use_runtimelinking=no
14786
14787 # Test if we are trying to use run time linking or normal
14788 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14789 # need to do runtime linking.
14790 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14791 for ld_flag in $LDFLAGS; do
14792 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14793 aix_use_runtimelinking=yes
14794 break
14795 fi
14796 done
14797 ;;
14798 esac
14799
14800 exp_sym_flag='-bexport'
14801 no_entry_flag='-bnoentry'
14802 fi
14803
14804 # When large executables or shared objects are built, AIX ld can
14805 # have problems creating the table of contents. If linking a library
14806 # or program results in "error TOC overflow" add -mminimal-toc to
14807 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14808 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14809
14810 archive_cmds_F77=''
14811 hardcode_direct_F77=yes
14812 hardcode_libdir_separator_F77=':'
14813 link_all_deplibs_F77=yes
14814
14815 if test "$GCC" = yes; then
14816 case $host_os in aix4.[012]|aix4.[012].*)
14817 # We only want to do this on AIX 4.2 and lower, the check
14818 # below for broken collect2 doesn't work under 4.3+
14819 collect2name=`${CC} -print-prog-name=collect2`
14820 if test -f "$collect2name" && \
14821 strings "$collect2name" | grep resolve_lib_name >/dev/null
14822 then
14823 # We have reworked collect2
ac40fd9e 14824 :
d9898ee8 14825 else
14826 # We have old collect2
14827 hardcode_direct_F77=unsupported
14828 # It fails to find uninstalled libraries when the uninstalled
14829 # path is not listed in the libpath. Setting hardcode_minus_L
14830 # to unsupported forces relinking
14831 hardcode_minus_L_F77=yes
14832 hardcode_libdir_flag_spec_F77='-L$libdir'
14833 hardcode_libdir_separator_F77=
14834 fi
14835 ;;
14836 esac
14837 shared_flag='-shared'
14838 if test "$aix_use_runtimelinking" = yes; then
14839 shared_flag="$shared_flag "'${wl}-G'
14840 fi
14841 else
14842 # not using gcc
14843 if test "$host_cpu" = ia64; then
14844 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14845 # chokes on -Wl,-G. The following line is correct:
14846 shared_flag='-G'
14847 else
14848 if test "$aix_use_runtimelinking" = yes; then
14849 shared_flag='${wl}-G'
14850 else
14851 shared_flag='${wl}-bM:SRE'
14852 fi
14853 fi
14854 fi
14855
14856 # It seems that -bexpall does not export symbols beginning with
14857 # underscore (_), so it is better to generate a list of symbols to export.
14858 always_export_symbols_F77=yes
14859 if test "$aix_use_runtimelinking" = yes; then
14860 # Warning - without using the other runtime loading flags (-brtl),
14861 # -berok will link without error, but may produce a broken library.
14862 allow_undefined_flag_F77='-berok'
14863 # Determine the default libpath from the value encoded in an empty executable.
14864 cat >conftest.$ac_ext <<_ACEOF
14865 program main
14866
14867 end
14868_ACEOF
14869rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 14870if { (ac_try="$ac_link"
14871case "(($ac_try" in
14872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14873 *) ac_try_echo=$ac_try;;
14874esac
14875eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14876 (eval "$ac_link") 2>conftest.er1
d9898ee8 14877 ac_status=$?
14878 grep -v '^ *+' conftest.er1 >conftest.err
14879 rm -f conftest.er1
14880 cat conftest.err >&5
14881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 14882 (exit $ac_status); } && {
14883 test -z "$ac_f77_werror_flag" ||
14884 test ! -s conftest.err
14885 } && test -s conftest$ac_exeext &&
14886 $as_test_x conftest$ac_exeext; then
d9898ee8 14887
ac40fd9e 14888lt_aix_libpath_sed='
14889 /Import File Strings/,/^$/ {
14890 /^0/ {
14891 s/^0 *\(.*\)$/\1/
14892 p
14893 }
14894 }'
14895aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
d9898ee8 14896# Check for a 64-bit object if we didn't find anything.
ac40fd9e 14897if test -z "$aix_libpath"; then
14898 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14899fi
d9898ee8 14900else
14901 echo "$as_me: failed program was:" >&5
14902sed 's/^/| /' conftest.$ac_ext >&5
14903
dd184caf 14904
d9898ee8 14905fi
dd184caf 14906
14907rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 14908 conftest$ac_exeext conftest.$ac_ext
14909if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14910
14911 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14912 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14913 else
14914 if test "$host_cpu" = ia64; then
14915 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14916 allow_undefined_flag_F77="-z nodefs"
14917 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
14918 else
14919 # Determine the default libpath from the value encoded in an empty executable.
14920 cat >conftest.$ac_ext <<_ACEOF
14921 program main
14922
14923 end
14924_ACEOF
14925rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 14926if { (ac_try="$ac_link"
14927case "(($ac_try" in
14928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14929 *) ac_try_echo=$ac_try;;
14930esac
14931eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14932 (eval "$ac_link") 2>conftest.er1
d9898ee8 14933 ac_status=$?
14934 grep -v '^ *+' conftest.er1 >conftest.err
14935 rm -f conftest.er1
14936 cat conftest.err >&5
14937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 14938 (exit $ac_status); } && {
14939 test -z "$ac_f77_werror_flag" ||
14940 test ! -s conftest.err
14941 } && test -s conftest$ac_exeext &&
14942 $as_test_x conftest$ac_exeext; then
d9898ee8 14943
ac40fd9e 14944lt_aix_libpath_sed='
14945 /Import File Strings/,/^$/ {
14946 /^0/ {
14947 s/^0 *\(.*\)$/\1/
14948 p
14949 }
14950 }'
14951aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
d9898ee8 14952# Check for a 64-bit object if we didn't find anything.
ac40fd9e 14953if test -z "$aix_libpath"; then
14954 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14955fi
d9898ee8 14956else
14957 echo "$as_me: failed program was:" >&5
14958sed 's/^/| /' conftest.$ac_ext >&5
14959
dd184caf 14960
d9898ee8 14961fi
dd184caf 14962
14963rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 14964 conftest$ac_exeext conftest.$ac_ext
14965if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14966
14967 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14968 # Warning - without using the other run time loading flags,
14969 # -berok will link without error, but may produce a broken library.
14970 no_undefined_flag_F77=' ${wl}-bernotok'
14971 allow_undefined_flag_F77=' ${wl}-berok'
14972 # Exported symbols can be pulled into shared objects from archives
14973 whole_archive_flag_spec_F77='$convenience'
14974 archive_cmds_need_lc_F77=yes
14975 # This is similar to how AIX traditionally builds its shared libraries.
14976 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14977 fi
14978 fi
14979 ;;
14980
14981 amigaos*)
14982 archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
14983 hardcode_libdir_flag_spec_F77='-L$libdir'
14984 hardcode_minus_L_F77=yes
14985 # see comment about different semantics on the GNU ld section
14986 ld_shlibs_F77=no
14987 ;;
14988
14989 bsdi[45]*)
14990 export_dynamic_flag_spec_F77=-rdynamic
14991 ;;
14992
14993 cygwin* | mingw* | pw32*)
14994 # When not using gcc, we currently assume that we are using
14995 # Microsoft Visual C++.
14996 # hardcode_libdir_flag_spec is actually meaningless, as there is
14997 # no search path for DLLs.
14998 hardcode_libdir_flag_spec_F77=' '
14999 allow_undefined_flag_F77=unsupported
15000 # Tell ltmain to make .lib files, not .a files.
15001 libext=lib
15002 # Tell ltmain to make .dll files, not .so files.
15003 shrext_cmds=".dll"
15004 # FIXME: Setting linknames here is a bad hack.
15005 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15006 # The linker will automatically build a .lib file if we build a DLL.
15007 old_archive_From_new_cmds_F77='true'
15008 # FIXME: Should let the user specify the lib program.
ac40fd9e 15009 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
d9898ee8 15010 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15011 enable_shared_with_static_runtimes_F77=yes
15012 ;;
15013
15014 darwin* | rhapsody*)
15015 case $host_os in
15016 rhapsody* | darwin1.[012])
15017 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15018 ;;
15019 *) # Darwin 1.3 on
15020 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15021 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15022 else
15023 case ${MACOSX_DEPLOYMENT_TARGET} in
15024 10.[012])
15025 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15026 ;;
15027 10.*)
15028 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15029 ;;
15030 esac
15031 fi
15032 ;;
15033 esac
15034 archive_cmds_need_lc_F77=no
15035 hardcode_direct_F77=no
15036 hardcode_automatic_F77=yes
15037 hardcode_shlibpath_var_F77=unsupported
15038 whole_archive_flag_spec_F77=''
15039 link_all_deplibs_F77=yes
15040 if test "$GCC" = yes ; then
15041 output_verbose_link_cmd='echo'
15042 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15043 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15044 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15045 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15046 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15047 else
15048 case $cc_basename in
15049 xlc*)
15050 output_verbose_link_cmd='echo'
ac40fd9e 15051 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
d9898ee8 15052 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15053 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
ac40fd9e 15054 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
d9898ee8 15055 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15056 ;;
15057 *)
15058 ld_shlibs_F77=no
15059 ;;
15060 esac
15061 fi
15062 ;;
15063
15064 dgux*)
15065 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15066 hardcode_libdir_flag_spec_F77='-L$libdir'
15067 hardcode_shlibpath_var_F77=no
15068 ;;
15069
15070 freebsd1*)
15071 ld_shlibs_F77=no
15072 ;;
15073
15074 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15075 # support. Future versions do this automatically, but an explicit c++rt0.o
15076 # does not break anything, and helps significantly (at the cost of a little
15077 # extra space).
15078 freebsd2.2*)
15079 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15080 hardcode_libdir_flag_spec_F77='-R$libdir'
15081 hardcode_direct_F77=yes
15082 hardcode_shlibpath_var_F77=no
15083 ;;
15084
15085 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15086 freebsd2*)
15087 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15088 hardcode_direct_F77=yes
15089 hardcode_minus_L_F77=yes
15090 hardcode_shlibpath_var_F77=no
15091 ;;
15092
15093 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
ac40fd9e 15094 freebsd* | dragonfly*)
d9898ee8 15095 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15096 hardcode_libdir_flag_spec_F77='-R$libdir'
15097 hardcode_direct_F77=yes
15098 hardcode_shlibpath_var_F77=no
15099 ;;
15100
15101 hpux9*)
15102 if test "$GCC" = yes; then
15103 archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15104 else
15105 archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15106 fi
15107 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15108 hardcode_libdir_separator_F77=:
15109 hardcode_direct_F77=yes
15110
15111 # hardcode_minus_L: Not really in the search PATH,
15112 # but as the default location of the library.
15113 hardcode_minus_L_F77=yes
15114 export_dynamic_flag_spec_F77='${wl}-E'
15115 ;;
15116
15117 hpux10*)
15118 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15119 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15120 else
15121 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15122 fi
15123 if test "$with_gnu_ld" = no; then
15124 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15125 hardcode_libdir_separator_F77=:
15126
15127 hardcode_direct_F77=yes
15128 export_dynamic_flag_spec_F77='${wl}-E'
15129
15130 # hardcode_minus_L: Not really in the search PATH,
15131 # but as the default location of the library.
15132 hardcode_minus_L_F77=yes
15133 fi
15134 ;;
15135
15136 hpux11*)
15137 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15138 case $host_cpu in
15139 hppa*64*)
15140 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15141 ;;
15142 ia64*)
15143 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15144 ;;
15145 *)
15146 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15147 ;;
15148 esac
15149 else
15150 case $host_cpu in
15151 hppa*64*)
15152 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15153 ;;
15154 ia64*)
15155 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15156 ;;
15157 *)
15158 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15159 ;;
15160 esac
15161 fi
15162 if test "$with_gnu_ld" = no; then
15163 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15164 hardcode_libdir_separator_F77=:
15165
15166 case $host_cpu in
15167 hppa*64*|ia64*)
15168 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15169 hardcode_direct_F77=no
15170 hardcode_shlibpath_var_F77=no
15171 ;;
15172 *)
15173 hardcode_direct_F77=yes
15174 export_dynamic_flag_spec_F77='${wl}-E'
15175
15176 # hardcode_minus_L: Not really in the search PATH,
15177 # but as the default location of the library.
15178 hardcode_minus_L_F77=yes
15179 ;;
15180 esac
15181 fi
15182 ;;
15183
15184 irix5* | irix6* | nonstopux*)
15185 if test "$GCC" = yes; then
15186 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15187 else
15188 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15189 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15190 fi
15191 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15192 hardcode_libdir_separator_F77=:
15193 link_all_deplibs_F77=yes
15194 ;;
15195
15196 netbsd*)
15197 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15198 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15199 else
15200 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15201 fi
15202 hardcode_libdir_flag_spec_F77='-R$libdir'
15203 hardcode_direct_F77=yes
15204 hardcode_shlibpath_var_F77=no
15205 ;;
15206
15207 newsos6)
15208 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15209 hardcode_direct_F77=yes
15210 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15211 hardcode_libdir_separator_F77=:
15212 hardcode_shlibpath_var_F77=no
15213 ;;
15214
15215 openbsd*)
ac40fd9e 15216 if test -f /usr/libexec/ld.so; then
15217 hardcode_direct_F77=yes
15218 hardcode_shlibpath_var_F77=no
15219 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15220 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15221 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15222 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15223 export_dynamic_flag_spec_F77='${wl}-E'
15224 else
15225 case $host_os in
15226 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15227 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15228 hardcode_libdir_flag_spec_F77='-R$libdir'
15229 ;;
15230 *)
15231 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15232 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15233 ;;
15234 esac
15235 fi
d9898ee8 15236 else
ac40fd9e 15237 ld_shlibs_F77=no
d9898ee8 15238 fi
15239 ;;
15240
15241 os2*)
15242 hardcode_libdir_flag_spec_F77='-L$libdir'
15243 hardcode_minus_L_F77=yes
15244 allow_undefined_flag_F77=unsupported
15245 archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
15246 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15247 ;;
15248
15249 osf3*)
15250 if test "$GCC" = yes; then
15251 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15252 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15253 else
15254 allow_undefined_flag_F77=' -expect_unresolved \*'
15255 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15256 fi
15257 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15258 hardcode_libdir_separator_F77=:
15259 ;;
15260
15261 osf4* | osf5*) # as osf3* with the addition of -msym flag
15262 if test "$GCC" = yes; then
15263 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15264 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15265 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15266 else
15267 allow_undefined_flag_F77=' -expect_unresolved \*'
15268 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15269 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15270 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
15271
15272 # Both c and cxx compiler support -rpath directly
15273 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15274 fi
15275 hardcode_libdir_separator_F77=:
15276 ;;
15277
15278 solaris*)
15279 no_undefined_flag_F77=' -z text'
15280 if test "$GCC" = yes; then
15281 wlarc='${wl}'
15282 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15283 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15284 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15285 else
15286 wlarc=''
15287 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15288 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15289 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15290 fi
15291 hardcode_libdir_flag_spec_F77='-R$libdir'
15292 hardcode_shlibpath_var_F77=no
15293 case $host_os in
15294 solaris2.[0-5] | solaris2.[0-5].*) ;;
15295 *)
ac40fd9e 15296 # The compiler driver will combine and reorder linker options,
15297 # but understands `-z linker_flag'. GCC discards it without `$wl',
15298 # but is careful enough not to reorder.
d9898ee8 15299 # Supported since Solaris 2.6 (maybe 2.5.1?)
ac40fd9e 15300 if test "$GCC" = yes; then
15301 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15302 else
15303 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15304 fi
15305 ;;
d9898ee8 15306 esac
15307 link_all_deplibs_F77=yes
15308 ;;
15309
15310 sunos4*)
15311 if test "x$host_vendor" = xsequent; then
15312 # Use $CC to link under sequent, because it throws in some extra .o
15313 # files that make .init and .fini sections work.
15314 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15315 else
15316 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15317 fi
15318 hardcode_libdir_flag_spec_F77='-L$libdir'
15319 hardcode_direct_F77=yes
15320 hardcode_minus_L_F77=yes
15321 hardcode_shlibpath_var_F77=no
15322 ;;
15323
15324 sysv4)
15325 case $host_vendor in
15326 sni)
15327 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15328 hardcode_direct_F77=yes # is this really true???
15329 ;;
15330 siemens)
15331 ## LD is ld it makes a PLAMLIB
15332 ## CC just makes a GrossModule.
15333 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15334 reload_cmds_F77='$CC -r -o $output$reload_objs'
15335 hardcode_direct_F77=no
15336 ;;
15337 motorola)
15338 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15339 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15340 ;;
15341 esac
15342 runpath_var='LD_RUN_PATH'
15343 hardcode_shlibpath_var_F77=no
15344 ;;
15345
15346 sysv4.3*)
15347 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15348 hardcode_shlibpath_var_F77=no
15349 export_dynamic_flag_spec_F77='-Bexport'
15350 ;;
15351
15352 sysv4*MP*)
15353 if test -d /usr/nec; then
15354 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15355 hardcode_shlibpath_var_F77=no
15356 runpath_var=LD_RUN_PATH
15357 hardcode_runpath_var=yes
15358 ld_shlibs_F77=yes
15359 fi
15360 ;;
15361
ac40fd9e 15362 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
d9898ee8 15363 no_undefined_flag_F77='${wl}-z,text'
15364 archive_cmds_need_lc_F77=no
15365 hardcode_shlibpath_var_F77=no
15366 runpath_var='LD_RUN_PATH'
15367
15368 if test "$GCC" = yes; then
15369 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15370 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15371 else
15372 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15373 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15374 fi
15375 ;;
15376
15377 sysv5* | sco3.2v5* | sco5v6*)
15378 # Note: We can NOT use -z defs as we might desire, because we do not
15379 # link with -lc, and that would cause any symbols used from libc to
15380 # always be unresolved, which means just about no library would
15381 # ever link correctly. If we're not using GNU ld we use -z text
15382 # though, which does catch some bad symbols but isn't as heavy-handed
15383 # as -z defs.
15384 no_undefined_flag_F77='${wl}-z,text'
15385 allow_undefined_flag_F77='${wl}-z,nodefs'
15386 archive_cmds_need_lc_F77=no
15387 hardcode_shlibpath_var_F77=no
15388 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15389 hardcode_libdir_separator_F77=':'
15390 link_all_deplibs_F77=yes
15391 export_dynamic_flag_spec_F77='${wl}-Bexport'
15392 runpath_var='LD_RUN_PATH'
15393
15394 if test "$GCC" = yes; then
15395 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15396 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15397 else
15398 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15399 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15400 fi
15401 ;;
15402
15403 uts4*)
15404 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15405 hardcode_libdir_flag_spec_F77='-L$libdir'
15406 hardcode_shlibpath_var_F77=no
15407 ;;
15408
15409 *)
15410 ld_shlibs_F77=no
15411 ;;
15412 esac
15413 fi
15414
dd184caf 15415{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15416echo "${ECHO_T}$ld_shlibs_F77" >&6; }
d9898ee8 15417test "$ld_shlibs_F77" = no && can_build_shared=no
15418
15419#
15420# Do we need to explicitly link libc?
15421#
15422case "x$archive_cmds_need_lc_F77" in
15423x|xyes)
15424 # Assume -lc should be added
15425 archive_cmds_need_lc_F77=yes
15426
15427 if test "$enable_shared" = yes && test "$GCC" = yes; then
15428 case $archive_cmds_F77 in
15429 *'~'*)
15430 # FIXME: we may have to deal with multi-command sequences.
15431 ;;
15432 '$CC '*)
15433 # Test whether the compiler implicitly links with -lc since on some
15434 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15435 # to ld, don't add -lc before -lgcc.
dd184caf 15436 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15437echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
d9898ee8 15438 $rm conftest*
ac40fd9e 15439 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 15440
15441 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15442 (eval $ac_compile) 2>&5
15443 ac_status=$?
15444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15445 (exit $ac_status); } 2>conftest.err; then
15446 soname=conftest
15447 lib=conftest
15448 libobjs=conftest.$ac_objext
15449 deplibs=
15450 wl=$lt_prog_compiler_wl_F77
15451 pic_flag=$lt_prog_compiler_pic_F77
15452 compiler_flags=-v
15453 linker_flags=-v
15454 verstring=
15455 output_objdir=.
15456 libname=conftest
15457 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15458 allow_undefined_flag_F77=
15459 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15460 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15461 ac_status=$?
15462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15463 (exit $ac_status); }
15464 then
15465 archive_cmds_need_lc_F77=no
15466 else
15467 archive_cmds_need_lc_F77=yes
15468 fi
15469 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15470 else
15471 cat conftest.err 1>&5
15472 fi
15473 $rm conftest*
dd184caf 15474 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15475echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
d9898ee8 15476 ;;
15477 esac
15478 fi
15479 ;;
15480esac
15481
dd184caf 15482{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15483echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
d9898ee8 15484library_names_spec=
15485libname_spec='lib$name'
15486soname_spec=
15487shrext_cmds=".so"
15488postinstall_cmds=
15489postuninstall_cmds=
15490finish_cmds=
15491finish_eval=
15492shlibpath_var=
15493shlibpath_overrides_runpath=unknown
15494version_type=none
15495dynamic_linker="$host_os ld.so"
15496sys_lib_dlsearch_path_spec="/lib /usr/lib"
ac40fd9e 15497
d9898ee8 15498need_lib_prefix=unknown
15499hardcode_into_libs=no
15500
15501# when you set need_version to no, make sure it does not cause -set_version
15502# flags to be left without arguments
15503need_version=unknown
15504
15505case $host_os in
15506aix3*)
15507 version_type=linux
15508 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15509 shlibpath_var=LIBPATH
15510
15511 # AIX 3 has no versioning support, so we append a major version to the name.
15512 soname_spec='${libname}${release}${shared_ext}$major'
15513 ;;
15514
15515aix4* | aix5*)
15516 version_type=linux
15517 need_lib_prefix=no
15518 need_version=no
15519 hardcode_into_libs=yes
15520 if test "$host_cpu" = ia64; then
15521 # AIX 5 supports IA64
15522 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15523 shlibpath_var=LD_LIBRARY_PATH
15524 else
15525 # With GCC up to 2.95.x, collect2 would create an import file
15526 # for dependence libraries. The import file would start with
15527 # the line `#! .'. This would cause the generated library to
15528 # depend on `.', always an invalid library. This was fixed in
15529 # development snapshots of GCC prior to 3.0.
15530 case $host_os in
15531 aix4 | aix4.[01] | aix4.[01].*)
15532 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15533 echo ' yes '
15534 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15535 :
15536 else
15537 can_build_shared=no
15538 fi
15539 ;;
15540 esac
15541 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15542 # soname into executable. Probably we can add versioning support to
15543 # collect2, so additional links can be useful in future.
15544 if test "$aix_use_runtimelinking" = yes; then
15545 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15546 # instead of lib<name>.a to let people know that these are not
15547 # typical AIX shared libraries.
15548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15549 else
15550 # We preserve .a as extension for shared libraries through AIX4.2
15551 # and later when we are not doing run time linking.
15552 library_names_spec='${libname}${release}.a $libname.a'
15553 soname_spec='${libname}${release}${shared_ext}$major'
15554 fi
15555 shlibpath_var=LIBPATH
15556 fi
15557 ;;
15558
15559amigaos*)
15560 library_names_spec='$libname.ixlibrary $libname.a'
15561 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15562 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'
15563 ;;
15564
15565beos*)
15566 library_names_spec='${libname}${shared_ext}'
15567 dynamic_linker="$host_os ld.so"
15568 shlibpath_var=LIBRARY_PATH
15569 ;;
15570
15571bsdi[45]*)
15572 version_type=linux
15573 need_version=no
15574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15575 soname_spec='${libname}${release}${shared_ext}$major'
15576 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15577 shlibpath_var=LD_LIBRARY_PATH
15578 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15579 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15580 # the default ld.so.conf also contains /usr/contrib/lib and
15581 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15582 # libtool to hard-code these into programs
15583 ;;
15584
15585cygwin* | mingw* | pw32*)
15586 version_type=windows
15587 shrext_cmds=".dll"
15588 need_version=no
15589 need_lib_prefix=no
15590
15591 case $GCC,$host_os in
15592 yes,cygwin* | yes,mingw* | yes,pw32*)
15593 library_names_spec='$libname.dll.a'
15594 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15595 postinstall_cmds='base_file=`basename \${file}`~
15596 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15597 dldir=$destdir/`dirname \$dlpath`~
15598 test -d \$dldir || mkdir -p \$dldir~
15599 $install_prog $dir/$dlname \$dldir/$dlname~
15600 chmod a+x \$dldir/$dlname'
15601 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15602 dlpath=$dir/\$dldll~
15603 $rm \$dlpath'
15604 shlibpath_overrides_runpath=yes
15605
15606 case $host_os in
15607 cygwin*)
15608 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15609 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15610 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15611 ;;
15612 mingw*)
15613 # MinGW DLLs use traditional 'lib' prefix
15614 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15615 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15616 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15617 # It is most probably a Windows format PATH printed by
15618 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15619 # path with ; separators, and with drive letters. We can handle the
15620 # drive letters (cygwin fileutils understands them), so leave them,
15621 # especially as we might pass files found there to a mingw objdump,
15622 # which wouldn't understand a cygwinified path. Ahh.
15623 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15624 else
15625 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15626 fi
15627 ;;
15628 pw32*)
15629 # pw32 DLLs use 'pw' prefix rather than 'lib'
15630 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15631 ;;
15632 esac
15633 ;;
15634
15635 *)
15636 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15637 ;;
15638 esac
15639 dynamic_linker='Win32 ld.exe'
15640 # FIXME: first we should search . and the directory the executable is in
15641 shlibpath_var=PATH
15642 ;;
15643
15644darwin* | rhapsody*)
15645 dynamic_linker="$host_os dyld"
15646 version_type=darwin
15647 need_lib_prefix=no
15648 need_version=no
15649 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15650 soname_spec='${libname}${release}${major}$shared_ext'
15651 shlibpath_overrides_runpath=yes
15652 shlibpath_var=DYLD_LIBRARY_PATH
15653 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
ac40fd9e 15654
d9898ee8 15655 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15656 ;;
15657
15658dgux*)
15659 version_type=linux
15660 need_lib_prefix=no
15661 need_version=no
15662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15663 soname_spec='${libname}${release}${shared_ext}$major'
15664 shlibpath_var=LD_LIBRARY_PATH
15665 ;;
15666
15667freebsd1*)
15668 dynamic_linker=no
15669 ;;
15670
d9898ee8 15671freebsd* | dragonfly*)
15672 # DragonFly does not have aout. When/if they implement a new
15673 # versioning mechanism, adjust this.
15674 if test -x /usr/bin/objformat; then
15675 objformat=`/usr/bin/objformat`
15676 else
15677 case $host_os in
15678 freebsd[123]*) objformat=aout ;;
15679 *) objformat=elf ;;
15680 esac
15681 fi
15682 version_type=freebsd-$objformat
15683 case $version_type in
15684 freebsd-elf*)
15685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15686 need_version=no
15687 need_lib_prefix=no
15688 ;;
15689 freebsd-*)
15690 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15691 need_version=yes
15692 ;;
15693 esac
15694 shlibpath_var=LD_LIBRARY_PATH
15695 case $host_os in
15696 freebsd2*)
15697 shlibpath_overrides_runpath=yes
15698 ;;
15699 freebsd3.[01]* | freebsdelf3.[01]*)
15700 shlibpath_overrides_runpath=yes
15701 hardcode_into_libs=yes
15702 ;;
15703 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15704 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15705 shlibpath_overrides_runpath=no
15706 hardcode_into_libs=yes
15707 ;;
ac40fd9e 15708 *) # from 4.6 on, and DragonFly
d9898ee8 15709 shlibpath_overrides_runpath=yes
15710 hardcode_into_libs=yes
15711 ;;
15712 esac
15713 ;;
15714
15715gnu*)
15716 version_type=linux
15717 need_lib_prefix=no
15718 need_version=no
15719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15720 soname_spec='${libname}${release}${shared_ext}$major'
15721 shlibpath_var=LD_LIBRARY_PATH
15722 hardcode_into_libs=yes
15723 ;;
15724
15725hpux9* | hpux10* | hpux11*)
15726 # Give a soname corresponding to the major version so that dld.sl refuses to
15727 # link against other versions.
15728 version_type=sunos
15729 need_lib_prefix=no
15730 need_version=no
15731 case $host_cpu in
15732 ia64*)
15733 shrext_cmds='.so'
15734 hardcode_into_libs=yes
15735 dynamic_linker="$host_os dld.so"
15736 shlibpath_var=LD_LIBRARY_PATH
15737 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15739 soname_spec='${libname}${release}${shared_ext}$major'
15740 if test "X$HPUX_IA64_MODE" = X32; then
15741 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15742 else
15743 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15744 fi
15745 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15746 ;;
15747 hppa*64*)
15748 shrext_cmds='.sl'
15749 hardcode_into_libs=yes
15750 dynamic_linker="$host_os dld.sl"
15751 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15752 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15754 soname_spec='${libname}${release}${shared_ext}$major'
15755 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15756 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15757 ;;
15758 *)
15759 shrext_cmds='.sl'
15760 dynamic_linker="$host_os dld.sl"
15761 shlibpath_var=SHLIB_PATH
15762 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15764 soname_spec='${libname}${release}${shared_ext}$major'
15765 ;;
15766 esac
15767 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15768 postinstall_cmds='chmod 555 $lib'
15769 ;;
15770
ac40fd9e 15771interix[3-9]*)
d9898ee8 15772 version_type=linux
15773 need_lib_prefix=no
15774 need_version=no
15775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15776 soname_spec='${libname}${release}${shared_ext}$major'
15777 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15778 shlibpath_var=LD_LIBRARY_PATH
15779 shlibpath_overrides_runpath=no
15780 hardcode_into_libs=yes
15781 ;;
15782
15783irix5* | irix6* | nonstopux*)
15784 case $host_os in
15785 nonstopux*) version_type=nonstopux ;;
15786 *)
15787 if test "$lt_cv_prog_gnu_ld" = yes; then
15788 version_type=linux
15789 else
15790 version_type=irix
15791 fi ;;
15792 esac
15793 need_lib_prefix=no
15794 need_version=no
15795 soname_spec='${libname}${release}${shared_ext}$major'
15796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15797 case $host_os in
15798 irix5* | nonstopux*)
15799 libsuff= shlibsuff=
15800 ;;
15801 *)
15802 case $LD in # libtool.m4 will add one of these switches to LD
15803 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15804 libsuff= shlibsuff= libmagic=32-bit;;
15805 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15806 libsuff=32 shlibsuff=N32 libmagic=N32;;
15807 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15808 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15809 *) libsuff= shlibsuff= libmagic=never-match;;
15810 esac
15811 ;;
15812 esac
15813 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15814 shlibpath_overrides_runpath=no
15815 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15816 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15817 hardcode_into_libs=yes
15818 ;;
15819
15820# No shared lib support for Linux oldld, aout, or coff.
15821linux*oldld* | linux*aout* | linux*coff*)
15822 dynamic_linker=no
15823 ;;
15824
15825# This must be Linux ELF.
ac40fd9e 15826linux* | k*bsd*-gnu)
d9898ee8 15827 version_type=linux
15828 need_lib_prefix=no
15829 need_version=no
15830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15831 soname_spec='${libname}${release}${shared_ext}$major'
15832 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15833 shlibpath_var=LD_LIBRARY_PATH
15834 shlibpath_overrides_runpath=no
15835 # This implies no fast_install, which is unacceptable.
15836 # Some rework will be needed to allow for fast_install
15837 # before this can be enabled.
15838 hardcode_into_libs=yes
ac40fd9e 15839 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15840 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
d9898ee8 15841
15842 # Append ld.so.conf contents to the search path
15843 if test -f /etc/ld.so.conf; then
ac40fd9e 15844 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' ' '`
15845 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
d9898ee8 15846 fi
15847
15848 # We used to test for /lib/ld.so.1 and disable shared libraries on
15849 # powerpc, because MkLinux only supported shared libraries with the
15850 # GNU dynamic linker. Since this was broken with cross compilers,
15851 # most powerpc-linux boxes support dynamic linking these days and
15852 # people can always --disable-shared, the test was removed, and we
15853 # assume the GNU/Linux dynamic linker is in use.
15854 dynamic_linker='GNU/Linux ld.so'
15855 ;;
15856
d9898ee8 15857netbsd*)
15858 version_type=sunos
15859 need_lib_prefix=no
15860 need_version=no
15861 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15863 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15864 dynamic_linker='NetBSD (a.out) ld.so'
15865 else
15866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15867 soname_spec='${libname}${release}${shared_ext}$major'
15868 dynamic_linker='NetBSD ld.elf_so'
15869 fi
15870 shlibpath_var=LD_LIBRARY_PATH
15871 shlibpath_overrides_runpath=yes
15872 hardcode_into_libs=yes
15873 ;;
15874
15875newsos6)
15876 version_type=linux
15877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15878 shlibpath_var=LD_LIBRARY_PATH
15879 shlibpath_overrides_runpath=yes
15880 ;;
15881
15882nto-qnx*)
15883 version_type=linux
15884 need_lib_prefix=no
15885 need_version=no
15886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15887 soname_spec='${libname}${release}${shared_ext}$major'
15888 shlibpath_var=LD_LIBRARY_PATH
15889 shlibpath_overrides_runpath=yes
15890 ;;
15891
15892openbsd*)
15893 version_type=sunos
15894 sys_lib_dlsearch_path_spec="/usr/lib"
15895 need_lib_prefix=no
15896 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15897 case $host_os in
15898 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15899 *) need_version=no ;;
15900 esac
15901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15902 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15903 shlibpath_var=LD_LIBRARY_PATH
15904 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15905 case $host_os in
15906 openbsd2.[89] | openbsd2.[89].*)
15907 shlibpath_overrides_runpath=no
15908 ;;
15909 *)
15910 shlibpath_overrides_runpath=yes
15911 ;;
15912 esac
15913 else
15914 shlibpath_overrides_runpath=yes
15915 fi
15916 ;;
15917
15918os2*)
15919 libname_spec='$name'
15920 shrext_cmds=".dll"
15921 need_lib_prefix=no
15922 library_names_spec='$libname${shared_ext} $libname.a'
15923 dynamic_linker='OS/2 ld.exe'
15924 shlibpath_var=LIBPATH
15925 ;;
15926
15927osf3* | osf4* | osf5*)
15928 version_type=osf
15929 need_lib_prefix=no
15930 need_version=no
15931 soname_spec='${libname}${release}${shared_ext}$major'
15932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15933 shlibpath_var=LD_LIBRARY_PATH
15934 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15935 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15936 ;;
15937
ac40fd9e 15938rdos*)
15939 dynamic_linker=no
15940 ;;
15941
d9898ee8 15942solaris*)
15943 version_type=linux
15944 need_lib_prefix=no
15945 need_version=no
15946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15947 soname_spec='${libname}${release}${shared_ext}$major'
15948 shlibpath_var=LD_LIBRARY_PATH
15949 shlibpath_overrides_runpath=yes
15950 hardcode_into_libs=yes
15951 # ldd complains unless libraries are executable
15952 postinstall_cmds='chmod +x $lib'
15953 ;;
15954
15955sunos4*)
15956 version_type=sunos
15957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15958 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15959 shlibpath_var=LD_LIBRARY_PATH
15960 shlibpath_overrides_runpath=yes
15961 if test "$with_gnu_ld" = yes; then
15962 need_lib_prefix=no
15963 fi
15964 need_version=yes
15965 ;;
15966
15967sysv4 | sysv4.3*)
15968 version_type=linux
15969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15970 soname_spec='${libname}${release}${shared_ext}$major'
15971 shlibpath_var=LD_LIBRARY_PATH
15972 case $host_vendor in
15973 sni)
15974 shlibpath_overrides_runpath=no
15975 need_lib_prefix=no
15976 export_dynamic_flag_spec='${wl}-Blargedynsym'
15977 runpath_var=LD_RUN_PATH
15978 ;;
15979 siemens)
15980 need_lib_prefix=no
15981 ;;
15982 motorola)
15983 need_lib_prefix=no
15984 need_version=no
15985 shlibpath_overrides_runpath=no
15986 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15987 ;;
15988 esac
15989 ;;
15990
15991sysv4*MP*)
15992 if test -d /usr/nec ;then
15993 version_type=linux
15994 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15995 soname_spec='$libname${shared_ext}.$major'
15996 shlibpath_var=LD_LIBRARY_PATH
15997 fi
15998 ;;
15999
16000sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16001 version_type=freebsd-elf
16002 need_lib_prefix=no
16003 need_version=no
16004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16005 soname_spec='${libname}${release}${shared_ext}$major'
16006 shlibpath_var=LD_LIBRARY_PATH
16007 hardcode_into_libs=yes
16008 if test "$with_gnu_ld" = yes; then
16009 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16010 shlibpath_overrides_runpath=no
16011 else
16012 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16013 shlibpath_overrides_runpath=yes
16014 case $host_os in
16015 sco3.2v5*)
16016 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16017 ;;
16018 esac
16019 fi
16020 sys_lib_dlsearch_path_spec='/usr/lib'
16021 ;;
16022
16023uts4*)
16024 version_type=linux
16025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16026 soname_spec='${libname}${release}${shared_ext}$major'
16027 shlibpath_var=LD_LIBRARY_PATH
16028 ;;
16029
16030*)
16031 dynamic_linker=no
16032 ;;
16033esac
dd184caf 16034{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16035echo "${ECHO_T}$dynamic_linker" >&6; }
d9898ee8 16036test "$dynamic_linker" = no && can_build_shared=no
16037
16038variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16039if test "$GCC" = yes; then
16040 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16041fi
16042
dd184caf 16043{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16044echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
d9898ee8 16045hardcode_action_F77=
16046if test -n "$hardcode_libdir_flag_spec_F77" || \
16047 test -n "$runpath_var_F77" || \
16048 test "X$hardcode_automatic_F77" = "Xyes" ; then
16049
16050 # We can hardcode non-existant directories.
16051 if test "$hardcode_direct_F77" != no &&
16052 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16053 # have to relink, otherwise we might link with an installed library
16054 # when we should be linking with a yet-to-be-installed one
16055 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16056 test "$hardcode_minus_L_F77" != no; then
16057 # Linking always hardcodes the temporary library directory.
16058 hardcode_action_F77=relink
16059 else
16060 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16061 hardcode_action_F77=immediate
16062 fi
16063else
16064 # We cannot hardcode anything, or else we can only hardcode existing
16065 # directories.
16066 hardcode_action_F77=unsupported
16067fi
dd184caf 16068{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16069echo "${ECHO_T}$hardcode_action_F77" >&6; }
d9898ee8 16070
16071if test "$hardcode_action_F77" = relink; then
16072 # Fast installation is not supported
16073 enable_fast_install=no
16074elif test "$shlibpath_overrides_runpath" = yes ||
16075 test "$enable_shared" = no; then
16076 # Fast installation is not necessary
16077 enable_fast_install=needless
16078fi
16079
16080
16081# The else clause should only fire when bootstrapping the
16082# libtool distribution, otherwise you forgot to ship ltmain.sh
16083# with your package, and you will get complaints that there are
16084# no rules to generate ltmain.sh.
16085if test -f "$ltmain"; then
16086 # See if we are running on zsh, and set the options which allow our commands through
16087 # without removal of \ escapes.
16088 if test -n "${ZSH_VERSION+set}" ; then
16089 setopt NO_GLOB_SUBST
16090 fi
16091 # Now quote all the things that may contain metacharacters while being
16092 # careful not to overquote the AC_SUBSTed values. We take copies of the
16093 # variables and quote the copies for generation of the libtool script.
16094 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16095 SED SHELL STRIP \
16096 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16097 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16098 deplibs_check_method reload_flag reload_cmds need_locks \
16099 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16100 lt_cv_sys_global_symbol_to_c_name_address \
16101 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16102 old_postinstall_cmds old_postuninstall_cmds \
16103 compiler_F77 \
16104 CC_F77 \
16105 LD_F77 \
16106 lt_prog_compiler_wl_F77 \
16107 lt_prog_compiler_pic_F77 \
16108 lt_prog_compiler_static_F77 \
16109 lt_prog_compiler_no_builtin_flag_F77 \
16110 export_dynamic_flag_spec_F77 \
16111 thread_safe_flag_spec_F77 \
16112 whole_archive_flag_spec_F77 \
16113 enable_shared_with_static_runtimes_F77 \
16114 old_archive_cmds_F77 \
16115 old_archive_from_new_cmds_F77 \
16116 predep_objects_F77 \
16117 postdep_objects_F77 \
16118 predeps_F77 \
16119 postdeps_F77 \
16120 compiler_lib_search_path_F77 \
16121 archive_cmds_F77 \
16122 archive_expsym_cmds_F77 \
16123 postinstall_cmds_F77 \
16124 postuninstall_cmds_F77 \
16125 old_archive_from_expsyms_cmds_F77 \
16126 allow_undefined_flag_F77 \
16127 no_undefined_flag_F77 \
16128 export_symbols_cmds_F77 \
16129 hardcode_libdir_flag_spec_F77 \
16130 hardcode_libdir_flag_spec_ld_F77 \
16131 hardcode_libdir_separator_F77 \
16132 hardcode_automatic_F77 \
16133 module_cmds_F77 \
16134 module_expsym_cmds_F77 \
16135 lt_cv_prog_compiler_c_o_F77 \
ac40fd9e 16136 fix_srcfile_path_F77 \
d9898ee8 16137 exclude_expsyms_F77 \
16138 include_expsyms_F77; do
16139
16140 case $var in
16141 old_archive_cmds_F77 | \
16142 old_archive_from_new_cmds_F77 | \
16143 archive_cmds_F77 | \
16144 archive_expsym_cmds_F77 | \
16145 module_cmds_F77 | \
16146 module_expsym_cmds_F77 | \
16147 old_archive_from_expsyms_cmds_F77 | \
16148 export_symbols_cmds_F77 | \
16149 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16150 postinstall_cmds | postuninstall_cmds | \
16151 old_postinstall_cmds | old_postuninstall_cmds | \
16152 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16153 # Double-quote double-evaled strings.
16154 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16155 ;;
16156 *)
16157 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16158 ;;
16159 esac
16160 done
16161
16162 case $lt_echo in
16163 *'\$0 --fallback-echo"')
16164 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16165 ;;
16166 esac
16167
16168cfgfile="$ofile"
16169
16170 cat <<__EOF__ >> "$cfgfile"
16171# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16172
16173# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16174
16175# Shell to use when invoking shell scripts.
16176SHELL=$lt_SHELL
16177
16178# Whether or not to build shared libraries.
16179build_libtool_libs=$enable_shared
16180
16181# Whether or not to build static libraries.
16182build_old_libs=$enable_static
16183
16184# Whether or not to add -lc for building shared libraries.
16185build_libtool_need_lc=$archive_cmds_need_lc_F77
16186
16187# Whether or not to disallow shared libs when runtime libs are static
16188allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16189
16190# Whether or not to optimize for fast installation.
16191fast_install=$enable_fast_install
16192
16193# The host system.
16194host_alias=$host_alias
16195host=$host
16196host_os=$host_os
16197
16198# The build system.
16199build_alias=$build_alias
16200build=$build
16201build_os=$build_os
16202
16203# An echo program that does not interpret backslashes.
16204echo=$lt_echo
16205
16206# The archiver.
16207AR=$lt_AR
16208AR_FLAGS=$lt_AR_FLAGS
16209
16210# A C compiler.
16211LTCC=$lt_LTCC
16212
16213# LTCC compiler flags.
16214LTCFLAGS=$lt_LTCFLAGS
16215
16216# A language-specific compiler.
16217CC=$lt_compiler_F77
16218
16219# Is the compiler the GNU C compiler?
16220with_gcc=$GCC_F77
16221
d9898ee8 16222# An ERE matcher.
16223EGREP=$lt_EGREP
16224
16225# The linker used to build libraries.
16226LD=$lt_LD_F77
16227
16228# Whether we need hard or soft links.
16229LN_S=$lt_LN_S
16230
16231# A BSD-compatible nm program.
16232NM=$lt_NM
16233
16234# A symbol stripping program
16235STRIP=$lt_STRIP
16236
16237# Used to examine libraries when file_magic_cmd begins "file"
16238MAGIC_CMD=$MAGIC_CMD
16239
16240# Used on cygwin: DLL creation program.
16241DLLTOOL="$DLLTOOL"
16242
16243# Used on cygwin: object dumper.
16244OBJDUMP="$OBJDUMP"
16245
16246# Used on cygwin: assembler.
16247AS="$AS"
16248
16249# The name of the directory that contains temporary libtool files.
16250objdir=$objdir
16251
16252# How to create reloadable object files.
16253reload_flag=$lt_reload_flag
16254reload_cmds=$lt_reload_cmds
16255
16256# How to pass a linker flag through the compiler.
16257wl=$lt_lt_prog_compiler_wl_F77
16258
16259# Object file suffix (normally "o").
16260objext="$ac_objext"
16261
16262# Old archive suffix (normally "a").
16263libext="$libext"
16264
16265# Shared library suffix (normally ".so").
16266shrext_cmds='$shrext_cmds'
16267
16268# Executable file suffix (normally "").
16269exeext="$exeext"
16270
16271# Additional compiler flags for building library objects.
16272pic_flag=$lt_lt_prog_compiler_pic_F77
16273pic_mode=$pic_mode
16274
16275# What is the maximum length of a command?
16276max_cmd_len=$lt_cv_sys_max_cmd_len
16277
16278# Does compiler simultaneously support -c and -o options?
16279compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16280
16281# Must we lock files when doing compilation?
16282need_locks=$lt_need_locks
16283
16284# Do we need the lib prefix for modules?
16285need_lib_prefix=$need_lib_prefix
16286
16287# Do we need a version for libraries?
16288need_version=$need_version
16289
16290# Whether dlopen is supported.
16291dlopen_support=$enable_dlopen
16292
16293# Whether dlopen of programs is supported.
16294dlopen_self=$enable_dlopen_self
16295
16296# Whether dlopen of statically linked programs is supported.
16297dlopen_self_static=$enable_dlopen_self_static
16298
16299# Compiler flag to prevent dynamic linking.
16300link_static_flag=$lt_lt_prog_compiler_static_F77
16301
16302# Compiler flag to turn off builtin functions.
16303no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16304
16305# Compiler flag to allow reflexive dlopens.
16306export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16307
16308# Compiler flag to generate shared objects directly from archives.
16309whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16310
16311# Compiler flag to generate thread-safe objects.
16312thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16313
16314# Library versioning type.
16315version_type=$version_type
16316
16317# Format of library name prefix.
16318libname_spec=$lt_libname_spec
16319
16320# List of archive names. First name is the real one, the rest are links.
16321# The last name is the one that the linker finds with -lNAME.
16322library_names_spec=$lt_library_names_spec
16323
16324# The coded name of the library, if different from the real name.
16325soname_spec=$lt_soname_spec
16326
16327# Commands used to build and install an old-style archive.
16328RANLIB=$lt_RANLIB
16329old_archive_cmds=$lt_old_archive_cmds_F77
16330old_postinstall_cmds=$lt_old_postinstall_cmds
16331old_postuninstall_cmds=$lt_old_postuninstall_cmds
16332
16333# Create an old-style archive from a shared archive.
16334old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16335
16336# Create a temporary old-style archive to link instead of a shared archive.
16337old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16338
16339# Commands used to build and install a shared archive.
16340archive_cmds=$lt_archive_cmds_F77
16341archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16342postinstall_cmds=$lt_postinstall_cmds
16343postuninstall_cmds=$lt_postuninstall_cmds
16344
16345# Commands used to build a loadable module (assumed same as above if empty)
16346module_cmds=$lt_module_cmds_F77
16347module_expsym_cmds=$lt_module_expsym_cmds_F77
16348
16349# Commands to strip libraries.
16350old_striplib=$lt_old_striplib
16351striplib=$lt_striplib
16352
16353# Dependencies to place before the objects being linked to create a
16354# shared library.
dd184caf 16355predep_objects=$lt_predep_objects_F77
d9898ee8 16356
16357# Dependencies to place after the objects being linked to create a
16358# shared library.
dd184caf 16359postdep_objects=$lt_postdep_objects_F77
d9898ee8 16360
16361# Dependencies to place before the objects being linked to create a
16362# shared library.
16363predeps=$lt_predeps_F77
16364
16365# Dependencies to place after the objects being linked to create a
16366# shared library.
16367postdeps=$lt_postdeps_F77
16368
16369# The library search path used internally by the compiler when linking
16370# a shared library.
dd184caf 16371compiler_lib_search_path=$lt_compiler_lib_search_path_F77
d9898ee8 16372
16373# Method to check whether dependent libraries are shared objects.
16374deplibs_check_method=$lt_deplibs_check_method
16375
16376# Command to use when deplibs_check_method == file_magic.
16377file_magic_cmd=$lt_file_magic_cmd
16378
16379# Flag that allows shared libraries with undefined symbols to be built.
16380allow_undefined_flag=$lt_allow_undefined_flag_F77
16381
16382# Flag that forces no undefined symbols.
16383no_undefined_flag=$lt_no_undefined_flag_F77
16384
16385# Commands used to finish a libtool library installation in a directory.
16386finish_cmds=$lt_finish_cmds
16387
16388# Same as above, but a single script fragment to be evaled but not shown.
16389finish_eval=$lt_finish_eval
16390
16391# Take the output of nm and produce a listing of raw symbols and C names.
16392global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16393
16394# Transform the output of nm in a proper C declaration
16395global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16396
16397# Transform the output of nm in a C name address pair
16398global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16399
16400# This is the shared library runtime path variable.
16401runpath_var=$runpath_var
16402
16403# This is the shared library path variable.
16404shlibpath_var=$shlibpath_var
16405
16406# Is shlibpath searched before the hard-coded library search path?
16407shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16408
16409# How to hardcode a shared library path into an executable.
16410hardcode_action=$hardcode_action_F77
16411
16412# Whether we should hardcode library paths into libraries.
16413hardcode_into_libs=$hardcode_into_libs
16414
16415# Flag to hardcode \$libdir into a binary during linking.
16416# This must work even if \$libdir does not exist.
16417hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16418
16419# If ld is used when linking, flag to hardcode \$libdir into
16420# a binary during linking. This must work even if \$libdir does
16421# not exist.
16422hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16423
16424# Whether we need a single -rpath flag with a separated argument.
16425hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16426
16427# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16428# resulting binary.
16429hardcode_direct=$hardcode_direct_F77
16430
16431# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16432# resulting binary.
16433hardcode_minus_L=$hardcode_minus_L_F77
16434
16435# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16436# the resulting binary.
16437hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16438
16439# Set to yes if building a shared library automatically hardcodes DIR into the library
16440# and all subsequent libraries and executables linked against it.
16441hardcode_automatic=$hardcode_automatic_F77
16442
16443# Variables whose values should be saved in libtool wrapper scripts and
16444# restored at relink time.
16445variables_saved_for_relink="$variables_saved_for_relink"
16446
16447# Whether libtool must link a program against all its dependency libraries.
16448link_all_deplibs=$link_all_deplibs_F77
16449
16450# Compile-time system search path for libraries
dd184caf 16451sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
d9898ee8 16452
16453# Run-time system search path for libraries
16454sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16455
16456# Fix the shell variable \$srcfile for the compiler.
ac40fd9e 16457fix_srcfile_path=$lt_fix_srcfile_path
d9898ee8 16458
16459# Set to yes if exported symbols are required.
16460always_export_symbols=$always_export_symbols_F77
16461
16462# The commands to list exported symbols.
16463export_symbols_cmds=$lt_export_symbols_cmds_F77
16464
16465# The commands to extract the exported symbol list from a shared archive.
16466extract_expsyms_cmds=$lt_extract_expsyms_cmds
16467
16468# Symbols that should not be listed in the preloaded symbols.
16469exclude_expsyms=$lt_exclude_expsyms_F77
16470
16471# Symbols that must always be exported.
16472include_expsyms=$lt_include_expsyms_F77
16473
16474# ### END LIBTOOL TAG CONFIG: $tagname
16475
16476__EOF__
16477
16478
16479else
16480 # If there is no Makefile yet, we rely on a make rule to execute
16481 # `config.status --recheck' to rerun these tests and create the
16482 # libtool script then.
16483 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16484 if test -f "$ltmain_in"; then
16485 test -f Makefile && make "$ltmain"
16486 fi
16487fi
16488
16489
16490ac_ext=c
16491ac_cpp='$CPP $CPPFLAGS'
16492ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16493ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16494ac_compiler_gnu=$ac_cv_c_compiler_gnu
16495
16496CC="$lt_save_CC"
16497
16498 else
16499 tagname=""
16500 fi
16501 ;;
16502
16503 GCJ)
16504 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16505
16506
d9898ee8 16507# Source file extension for Java test sources.
16508ac_ext=java
16509
16510# Object file extension for compiled Java test sources.
16511objext=o
16512objext_GCJ=$objext
16513
16514# Code to be used in simple compile tests
ac40fd9e 16515lt_simple_compile_test_code="class foo {}"
d9898ee8 16516
16517# Code to be used in simple link tests
ac40fd9e 16518lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
d9898ee8 16519
16520# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16521
16522# If no C compiler was specified, use CC.
16523LTCC=${LTCC-"$CC"}
16524
16525# If no C compiler flags were specified, use CFLAGS.
16526LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16527
16528# Allow CC to be a program name with arguments.
16529compiler=$CC
16530
16531
16532# save warnings/boilerplate of simple test code
16533ac_outfile=conftest.$ac_objext
ac40fd9e 16534echo "$lt_simple_compile_test_code" >conftest.$ac_ext
d9898ee8 16535eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16536_lt_compiler_boilerplate=`cat conftest.err`
16537$rm conftest*
16538
16539ac_outfile=conftest.$ac_objext
ac40fd9e 16540echo "$lt_simple_link_test_code" >conftest.$ac_ext
d9898ee8 16541eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16542_lt_linker_boilerplate=`cat conftest.err`
16543$rm conftest*
16544
16545
16546# Allow CC to be a program name with arguments.
16547lt_save_CC="$CC"
16548CC=${GCJ-"gcj"}
16549compiler=$CC
16550compiler_GCJ=$CC
16551for cc_temp in $compiler""; do
16552 case $cc_temp in
16553 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16554 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16555 \-*) ;;
16556 *) break;;
16557 esac
16558done
16559cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16560
16561
16562# GCJ did not exist at the time GCC didn't implicitly link libc in.
16563archive_cmds_need_lc_GCJ=no
16564
16565old_archive_cmds_GCJ=$old_archive_cmds
16566
16567
16568lt_prog_compiler_no_builtin_flag_GCJ=
16569
16570if test "$GCC" = yes; then
16571 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16572
16573
dd184caf 16574{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16575echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
d9898ee8 16576if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16577 echo $ECHO_N "(cached) $ECHO_C" >&6
16578else
16579 lt_cv_prog_compiler_rtti_exceptions=no
16580 ac_outfile=conftest.$ac_objext
ac40fd9e 16581 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 16582 lt_compiler_flag="-fno-rtti -fno-exceptions"
16583 # Insert the option either (1) after the last *FLAGS variable, or
16584 # (2) before a word containing "conftest.", or (3) at the end.
16585 # Note that $ac_compile itself does not contain backslashes and begins
16586 # with a dollar sign (not a hyphen), so the echo should work correctly.
16587 # The option is referenced via a variable to avoid confusing sed.
16588 lt_compile=`echo "$ac_compile" | $SED \
16589 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16590 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16591 -e 's:$: $lt_compiler_flag:'`
ac40fd9e 16592 (eval echo "\"\$as_me:16592: $lt_compile\"" >&5)
d9898ee8 16593 (eval "$lt_compile" 2>conftest.err)
16594 ac_status=$?
16595 cat conftest.err >&5
ac40fd9e 16596 echo "$as_me:16596: \$? = $ac_status" >&5
d9898ee8 16597 if (exit $ac_status) && test -s "$ac_outfile"; then
16598 # The compiler can only warn and ignore the option if not recognized
16599 # So say no if there are warnings other than the usual output.
16600 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16601 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16602 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16603 lt_cv_prog_compiler_rtti_exceptions=yes
16604 fi
16605 fi
16606 $rm conftest*
16607
16608fi
dd184caf 16609{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16610echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
d9898ee8 16611
16612if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16613 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16614else
16615 :
16616fi
16617
16618fi
16619
16620lt_prog_compiler_wl_GCJ=
16621lt_prog_compiler_pic_GCJ=
16622lt_prog_compiler_static_GCJ=
16623
dd184caf 16624{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16625echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
d9898ee8 16626
16627 if test "$GCC" = yes; then
16628 lt_prog_compiler_wl_GCJ='-Wl,'
16629 lt_prog_compiler_static_GCJ='-static'
16630
16631 case $host_os in
16632 aix*)
16633 # All AIX code is PIC.
16634 if test "$host_cpu" = ia64; then
16635 # AIX 5 now supports IA64 processor
16636 lt_prog_compiler_static_GCJ='-Bstatic'
16637 fi
16638 ;;
16639
16640 amigaos*)
16641 # FIXME: we need at least 68020 code to build shared libraries, but
16642 # adding the `-m68020' flag to GCC prevents building anything better,
16643 # like `-m68040'.
16644 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16645 ;;
16646
ac40fd9e 16647 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
d9898ee8 16648 # PIC is the default for these OSes.
16649 ;;
16650
ac40fd9e 16651 mingw* | cygwin* | pw32* | os2*)
d9898ee8 16652 # This hack is so that the source file can tell whether it is being
16653 # built for inclusion in a dll (and should export symbols for example).
ac40fd9e 16654 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16655 # (--disable-auto-import) libraries
d9898ee8 16656 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16657 ;;
16658
16659 darwin* | rhapsody*)
16660 # PIC is the default on this platform
16661 # Common symbols not allowed in MH_DYLIB files
16662 lt_prog_compiler_pic_GCJ='-fno-common'
16663 ;;
16664
ac40fd9e 16665 interix[3-9]*)
d9898ee8 16666 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16667 # Instead, we relocate shared libraries at runtime.
16668 ;;
16669
16670 msdosdjgpp*)
16671 # Just because we use GCC doesn't mean we suddenly get shared libraries
16672 # on systems that don't support them.
16673 lt_prog_compiler_can_build_shared_GCJ=no
16674 enable_shared=no
16675 ;;
16676
16677 sysv4*MP*)
16678 if test -d /usr/nec; then
16679 lt_prog_compiler_pic_GCJ=-Kconform_pic
16680 fi
16681 ;;
16682
16683 hpux*)
16684 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16685 # not for PA HP-UX.
16686 case $host_cpu in
16687 hppa*64*|ia64*)
16688 # +Z the default
16689 ;;
16690 *)
16691 lt_prog_compiler_pic_GCJ='-fPIC'
16692 ;;
16693 esac
16694 ;;
16695
16696 *)
16697 lt_prog_compiler_pic_GCJ='-fPIC'
16698 ;;
16699 esac
16700 else
16701 # PORTME Check for flag to pass linker flags through the system compiler.
16702 case $host_os in
16703 aix*)
16704 lt_prog_compiler_wl_GCJ='-Wl,'
16705 if test "$host_cpu" = ia64; then
16706 # AIX 5 now supports IA64 processor
16707 lt_prog_compiler_static_GCJ='-Bstatic'
16708 else
16709 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16710 fi
16711 ;;
16712 darwin*)
16713 # PIC is the default on this platform
16714 # Common symbols not allowed in MH_DYLIB files
16715 case $cc_basename in
16716 xlc*)
16717 lt_prog_compiler_pic_GCJ='-qnocommon'
16718 lt_prog_compiler_wl_GCJ='-Wl,'
16719 ;;
16720 esac
16721 ;;
16722
ac40fd9e 16723 mingw* | cygwin* | pw32* | os2*)
d9898ee8 16724 # This hack is so that the source file can tell whether it is being
16725 # built for inclusion in a dll (and should export symbols for example).
16726 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16727 ;;
16728
16729 hpux9* | hpux10* | hpux11*)
16730 lt_prog_compiler_wl_GCJ='-Wl,'
16731 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16732 # not for PA HP-UX.
16733 case $host_cpu in
16734 hppa*64*|ia64*)
16735 # +Z the default
16736 ;;
16737 *)
16738 lt_prog_compiler_pic_GCJ='+Z'
16739 ;;
16740 esac
16741 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16742 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16743 ;;
16744
16745 irix5* | irix6* | nonstopux*)
16746 lt_prog_compiler_wl_GCJ='-Wl,'
16747 # PIC (with -KPIC) is the default.
16748 lt_prog_compiler_static_GCJ='-non_shared'
16749 ;;
16750
16751 newsos6)
16752 lt_prog_compiler_pic_GCJ='-KPIC'
16753 lt_prog_compiler_static_GCJ='-Bstatic'
16754 ;;
16755
ac40fd9e 16756 linux* | k*bsd*-gnu)
d9898ee8 16757 case $cc_basename in
16758 icc* | ecc*)
16759 lt_prog_compiler_wl_GCJ='-Wl,'
16760 lt_prog_compiler_pic_GCJ='-KPIC'
16761 lt_prog_compiler_static_GCJ='-static'
16762 ;;
16763 pgcc* | pgf77* | pgf90* | pgf95*)
16764 # Portland Group compilers (*not* the Pentium gcc compiler,
16765 # which looks to be a dead project)
16766 lt_prog_compiler_wl_GCJ='-Wl,'
16767 lt_prog_compiler_pic_GCJ='-fpic'
16768 lt_prog_compiler_static_GCJ='-Bstatic'
16769 ;;
16770 ccc*)
16771 lt_prog_compiler_wl_GCJ='-Wl,'
16772 # All Alpha code is PIC.
16773 lt_prog_compiler_static_GCJ='-non_shared'
16774 ;;
ac40fd9e 16775 *)
16776 case `$CC -V 2>&1 | sed 5q` in
16777 *Sun\ C*)
16778 # Sun C 5.9
16779 lt_prog_compiler_pic_GCJ='-KPIC'
16780 lt_prog_compiler_static_GCJ='-Bstatic'
16781 lt_prog_compiler_wl_GCJ='-Wl,'
16782 ;;
16783 *Sun\ F*)
16784 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16785 lt_prog_compiler_pic_GCJ='-KPIC'
16786 lt_prog_compiler_static_GCJ='-Bstatic'
16787 lt_prog_compiler_wl_GCJ=''
16788 ;;
16789 esac
16790 ;;
d9898ee8 16791 esac
16792 ;;
16793
16794 osf3* | osf4* | osf5*)
16795 lt_prog_compiler_wl_GCJ='-Wl,'
16796 # All OSF/1 code is PIC.
16797 lt_prog_compiler_static_GCJ='-non_shared'
16798 ;;
16799
ac40fd9e 16800 rdos*)
16801 lt_prog_compiler_static_GCJ='-non_shared'
16802 ;;
16803
d9898ee8 16804 solaris*)
16805 lt_prog_compiler_pic_GCJ='-KPIC'
16806 lt_prog_compiler_static_GCJ='-Bstatic'
16807 case $cc_basename in
16808 f77* | f90* | f95*)
16809 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16810 *)
16811 lt_prog_compiler_wl_GCJ='-Wl,';;
16812 esac
16813 ;;
16814
16815 sunos4*)
16816 lt_prog_compiler_wl_GCJ='-Qoption ld '
16817 lt_prog_compiler_pic_GCJ='-PIC'
16818 lt_prog_compiler_static_GCJ='-Bstatic'
16819 ;;
16820
16821 sysv4 | sysv4.2uw2* | sysv4.3*)
16822 lt_prog_compiler_wl_GCJ='-Wl,'
16823 lt_prog_compiler_pic_GCJ='-KPIC'
16824 lt_prog_compiler_static_GCJ='-Bstatic'
16825 ;;
16826
16827 sysv4*MP*)
16828 if test -d /usr/nec ;then
16829 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16830 lt_prog_compiler_static_GCJ='-Bstatic'
16831 fi
16832 ;;
16833
16834 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16835 lt_prog_compiler_wl_GCJ='-Wl,'
16836 lt_prog_compiler_pic_GCJ='-KPIC'
16837 lt_prog_compiler_static_GCJ='-Bstatic'
16838 ;;
16839
16840 unicos*)
16841 lt_prog_compiler_wl_GCJ='-Wl,'
16842 lt_prog_compiler_can_build_shared_GCJ=no
16843 ;;
16844
16845 uts4*)
16846 lt_prog_compiler_pic_GCJ='-pic'
16847 lt_prog_compiler_static_GCJ='-Bstatic'
16848 ;;
16849
16850 *)
16851 lt_prog_compiler_can_build_shared_GCJ=no
16852 ;;
16853 esac
16854 fi
16855
dd184caf 16856{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16857echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
d9898ee8 16858
16859#
16860# Check to make sure the PIC flag actually works.
16861#
16862if test -n "$lt_prog_compiler_pic_GCJ"; then
16863
dd184caf 16864{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16865echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
d9898ee8 16866if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16867 echo $ECHO_N "(cached) $ECHO_C" >&6
16868else
16869 lt_prog_compiler_pic_works_GCJ=no
16870 ac_outfile=conftest.$ac_objext
ac40fd9e 16871 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 16872 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16873 # Insert the option either (1) after the last *FLAGS variable, or
16874 # (2) before a word containing "conftest.", or (3) at the end.
16875 # Note that $ac_compile itself does not contain backslashes and begins
16876 # with a dollar sign (not a hyphen), so the echo should work correctly.
16877 # The option is referenced via a variable to avoid confusing sed.
16878 lt_compile=`echo "$ac_compile" | $SED \
16879 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16880 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16881 -e 's:$: $lt_compiler_flag:'`
ac40fd9e 16882 (eval echo "\"\$as_me:16882: $lt_compile\"" >&5)
d9898ee8 16883 (eval "$lt_compile" 2>conftest.err)
16884 ac_status=$?
16885 cat conftest.err >&5
ac40fd9e 16886 echo "$as_me:16886: \$? = $ac_status" >&5
d9898ee8 16887 if (exit $ac_status) && test -s "$ac_outfile"; then
16888 # The compiler can only warn and ignore the option if not recognized
16889 # So say no if there are warnings other than the usual output.
16890 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16891 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16892 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16893 lt_prog_compiler_pic_works_GCJ=yes
16894 fi
16895 fi
16896 $rm conftest*
16897
16898fi
dd184caf 16899{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16900echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
d9898ee8 16901
16902if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16903 case $lt_prog_compiler_pic_GCJ in
16904 "" | " "*) ;;
16905 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16906 esac
16907else
16908 lt_prog_compiler_pic_GCJ=
16909 lt_prog_compiler_can_build_shared_GCJ=no
16910fi
16911
16912fi
16913case $host_os in
16914 # For platforms which do not support PIC, -DPIC is meaningless:
16915 *djgpp*)
16916 lt_prog_compiler_pic_GCJ=
16917 ;;
16918 *)
16919 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16920 ;;
16921esac
16922
16923#
16924# Check to make sure the static flag actually works.
16925#
16926wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
dd184caf 16927{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16928echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
d9898ee8 16929if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16930 echo $ECHO_N "(cached) $ECHO_C" >&6
16931else
16932 lt_prog_compiler_static_works_GCJ=no
16933 save_LDFLAGS="$LDFLAGS"
16934 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
ac40fd9e 16935 echo "$lt_simple_link_test_code" > conftest.$ac_ext
d9898ee8 16936 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16937 # The linker can only warn and ignore the option if not recognized
16938 # So say no if there are warnings
16939 if test -s conftest.err; then
16940 # Append any errors to the config.log.
16941 cat conftest.err 1>&5
16942 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16943 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16944 if diff conftest.exp conftest.er2 >/dev/null; then
16945 lt_prog_compiler_static_works_GCJ=yes
16946 fi
16947 else
16948 lt_prog_compiler_static_works_GCJ=yes
16949 fi
16950 fi
16951 $rm conftest*
16952 LDFLAGS="$save_LDFLAGS"
16953
16954fi
dd184caf 16955{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16956echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
d9898ee8 16957
16958if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16959 :
16960else
16961 lt_prog_compiler_static_GCJ=
16962fi
16963
16964
dd184caf 16965{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16966echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
d9898ee8 16967if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16968 echo $ECHO_N "(cached) $ECHO_C" >&6
16969else
16970 lt_cv_prog_compiler_c_o_GCJ=no
16971 $rm -r conftest 2>/dev/null
16972 mkdir conftest
16973 cd conftest
16974 mkdir out
ac40fd9e 16975 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 16976
16977 lt_compiler_flag="-o out/conftest2.$ac_objext"
16978 # Insert the option either (1) after the last *FLAGS variable, or
16979 # (2) before a word containing "conftest.", or (3) at the end.
16980 # Note that $ac_compile itself does not contain backslashes and begins
16981 # with a dollar sign (not a hyphen), so the echo should work correctly.
16982 lt_compile=`echo "$ac_compile" | $SED \
16983 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16984 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16985 -e 's:$: $lt_compiler_flag:'`
ac40fd9e 16986 (eval echo "\"\$as_me:16986: $lt_compile\"" >&5)
d9898ee8 16987 (eval "$lt_compile" 2>out/conftest.err)
16988 ac_status=$?
16989 cat out/conftest.err >&5
ac40fd9e 16990 echo "$as_me:16990: \$? = $ac_status" >&5
d9898ee8 16991 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16992 then
16993 # The compiler can only warn and ignore the option if not recognized
16994 # So say no if there are warnings
16995 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16996 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16997 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16998 lt_cv_prog_compiler_c_o_GCJ=yes
16999 fi
17000 fi
17001 chmod u+w . 2>&5
17002 $rm conftest*
17003 # SGI C++ compiler will create directory out/ii_files/ for
17004 # template instantiation
17005 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17006 $rm out/* && rmdir out
17007 cd ..
17008 rmdir conftest
17009 $rm conftest*
17010
17011fi
dd184caf 17012{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17013echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
d9898ee8 17014
17015
17016hard_links="nottested"
17017if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17018 # do not overwrite the value of need_locks provided by the user
dd184caf 17019 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17020echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
d9898ee8 17021 hard_links=yes
17022 $rm conftest*
17023 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17024 touch conftest.a
17025 ln conftest.a conftest.b 2>&5 || hard_links=no
17026 ln conftest.a conftest.b 2>/dev/null && hard_links=no
dd184caf 17027 { echo "$as_me:$LINENO: result: $hard_links" >&5
17028echo "${ECHO_T}$hard_links" >&6; }
d9898ee8 17029 if test "$hard_links" = no; then
17030 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17031echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17032 need_locks=warn
17033 fi
17034else
17035 need_locks=no
17036fi
17037
dd184caf 17038{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17039echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
d9898ee8 17040
17041 runpath_var=
17042 allow_undefined_flag_GCJ=
17043 enable_shared_with_static_runtimes_GCJ=no
17044 archive_cmds_GCJ=
17045 archive_expsym_cmds_GCJ=
17046 old_archive_From_new_cmds_GCJ=
17047 old_archive_from_expsyms_cmds_GCJ=
17048 export_dynamic_flag_spec_GCJ=
17049 whole_archive_flag_spec_GCJ=
17050 thread_safe_flag_spec_GCJ=
17051 hardcode_libdir_flag_spec_GCJ=
17052 hardcode_libdir_flag_spec_ld_GCJ=
17053 hardcode_libdir_separator_GCJ=
17054 hardcode_direct_GCJ=no
17055 hardcode_minus_L_GCJ=no
17056 hardcode_shlibpath_var_GCJ=unsupported
17057 link_all_deplibs_GCJ=unknown
17058 hardcode_automatic_GCJ=no
17059 module_cmds_GCJ=
17060 module_expsym_cmds_GCJ=
17061 always_export_symbols_GCJ=no
17062 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17063 # include_expsyms should be a list of space-separated symbols to be *always*
17064 # included in the symbol list
17065 include_expsyms_GCJ=
17066 # exclude_expsyms can be an extended regexp of symbols to exclude
17067 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17068 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17069 # as well as any symbol that contains `d'.
17070 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17071 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17072 # platforms (ab)use it in PIC code, but their linkers get confused if
17073 # the symbol is explicitly referenced. Since portable code cannot
17074 # rely on this symbol name, it's probably fine to never include it in
17075 # preloaded symbol tables.
17076 extract_expsyms_cmds=
17077 # Just being paranoid about ensuring that cc_basename is set.
17078 for cc_temp in $compiler""; do
17079 case $cc_temp in
17080 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17081 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17082 \-*) ;;
17083 *) break;;
17084 esac
17085done
17086cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17087
17088 case $host_os in
17089 cygwin* | mingw* | pw32*)
17090 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17091 # When not using gcc, we currently assume that we are using
17092 # Microsoft Visual C++.
17093 if test "$GCC" != yes; then
17094 with_gnu_ld=no
17095 fi
17096 ;;
17097 interix*)
17098 # we just hope/assume this is gcc and not c89 (= MSVC++)
17099 with_gnu_ld=yes
17100 ;;
17101 openbsd*)
17102 with_gnu_ld=no
17103 ;;
17104 esac
17105
17106 ld_shlibs_GCJ=yes
17107 if test "$with_gnu_ld" = yes; then
17108 # If archive_cmds runs LD, not CC, wlarc should be empty
17109 wlarc='${wl}'
17110
17111 # Set some defaults for GNU ld with shared library support. These
17112 # are reset later if shared libraries are not supported. Putting them
17113 # here allows them to be overridden if necessary.
17114 runpath_var=LD_RUN_PATH
17115 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17116 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17117 # ancient GNU ld didn't support --whole-archive et. al.
17118 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17119 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17120 else
17121 whole_archive_flag_spec_GCJ=
17122 fi
17123 supports_anon_versioning=no
17124 case `$LD -v 2>/dev/null` in
17125 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17126 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17127 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17128 *\ 2.11.*) ;; # other 2.11 versions
17129 *) supports_anon_versioning=yes ;;
17130 esac
17131
17132 # See if GNU ld supports shared libraries.
17133 case $host_os in
17134 aix3* | aix4* | aix5*)
17135 # On AIX/PPC, the GNU linker is very broken
17136 if test "$host_cpu" != ia64; then
17137 ld_shlibs_GCJ=no
17138 cat <<EOF 1>&2
17139
17140*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17141*** to be unable to reliably create shared libraries on AIX.
17142*** Therefore, libtool is disabling shared libraries support. If you
17143*** really care for shared libraries, you may want to modify your PATH
17144*** so that a non-GNU linker is found, and then restart.
17145
17146EOF
17147 fi
17148 ;;
17149
17150 amigaos*)
17151 archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
17152 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17153 hardcode_minus_L_GCJ=yes
17154
17155 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17156 # that the semantics of dynamic libraries on AmigaOS, at least up
17157 # to version 4, is to share data among multiple programs linked
17158 # with the same dynamic library. Since this doesn't match the
17159 # behavior of shared libraries on other platforms, we can't use
17160 # them.
17161 ld_shlibs_GCJ=no
17162 ;;
17163
17164 beos*)
17165 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17166 allow_undefined_flag_GCJ=unsupported
17167 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17168 # support --undefined. This deserves some investigation. FIXME
17169 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17170 else
17171 ld_shlibs_GCJ=no
17172 fi
17173 ;;
17174
17175 cygwin* | mingw* | pw32*)
17176 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17177 # as there is no search path for DLLs.
17178 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17179 allow_undefined_flag_GCJ=unsupported
17180 always_export_symbols_GCJ=no
17181 enable_shared_with_static_runtimes_GCJ=yes
ac40fd9e 17182 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
d9898ee8 17183
17184 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17185 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17186 # If the export-symbols file already is a .def file (1st line
17187 # is EXPORTS), use it as is; otherwise, prepend...
17188 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17189 cp $export_symbols $output_objdir/$soname.def;
17190 else
17191 echo EXPORTS > $output_objdir/$soname.def;
17192 cat $export_symbols >> $output_objdir/$soname.def;
17193 fi~
17194 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17195 else
17196 ld_shlibs_GCJ=no
17197 fi
17198 ;;
17199
ac40fd9e 17200 interix[3-9]*)
d9898ee8 17201 hardcode_direct_GCJ=no
17202 hardcode_shlibpath_var_GCJ=no
17203 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17204 export_dynamic_flag_spec_GCJ='${wl}-E'
17205 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17206 # Instead, shared libraries are loaded at an image base (0x10000000 by
17207 # default) and relocated if they conflict, which is a slow very memory
17208 # consuming and fragmenting process. To avoid this, we pick a random,
17209 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17210 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17211 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17212 archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17213 ;;
17214
ac40fd9e 17215 gnu* | linux* | k*bsd*-gnu)
d9898ee8 17216 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17217 tmp_addflag=
17218 case $cc_basename,$host_cpu in
17219 pgcc*) # Portland Group C compiler
17220 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17221 tmp_addflag=' $pic_flag'
17222 ;;
17223 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17224 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17225 tmp_addflag=' $pic_flag -Mnomain' ;;
17226 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17227 tmp_addflag=' -i_dynamic' ;;
17228 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17229 tmp_addflag=' -i_dynamic -nofor_main' ;;
17230 ifc* | ifort*) # Intel Fortran compiler
17231 tmp_addflag=' -nofor_main' ;;
17232 esac
ac40fd9e 17233 case `$CC -V 2>&1 | sed 5q` in
17234 *Sun\ C*) # Sun C 5.9
17235 whole_archive_flag_spec_GCJ='${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'
17236 tmp_sharedflag='-G' ;;
17237 *Sun\ F*) # Sun Fortran 8.3
17238 tmp_sharedflag='-G' ;;
17239 *)
17240 tmp_sharedflag='-shared' ;;
17241 esac
17242 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
d9898ee8 17243
17244 if test $supports_anon_versioning = yes; then
17245 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17246 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17247 $echo "local: *; };" >> $output_objdir/$libname.ver~
ac40fd9e 17248 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
d9898ee8 17249 fi
17250 else
17251 ld_shlibs_GCJ=no
17252 fi
17253 ;;
17254
17255 netbsd*)
17256 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17257 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17258 wlarc=
17259 else
17260 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17261 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17262 fi
17263 ;;
17264
17265 solaris*)
17266 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17267 ld_shlibs_GCJ=no
17268 cat <<EOF 1>&2
17269
17270*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17271*** create shared libraries on Solaris systems. Therefore, libtool
17272*** is disabling shared libraries support. We urge you to upgrade GNU
17273*** binutils to release 2.9.1 or newer. Another option is to modify
17274*** your PATH or compiler configuration so that the native linker is
17275*** used, and then restart.
17276
17277EOF
17278 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17279 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17280 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17281 else
17282 ld_shlibs_GCJ=no
17283 fi
17284 ;;
17285
17286 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17287 case `$LD -v 2>&1` in
17288 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17289 ld_shlibs_GCJ=no
17290 cat <<_LT_EOF 1>&2
17291
17292*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17293*** reliably create shared libraries on SCO systems. Therefore, libtool
17294*** is disabling shared libraries support. We urge you to upgrade GNU
17295*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17296*** your PATH or compiler configuration so that the native linker is
17297*** used, and then restart.
17298
17299_LT_EOF
17300 ;;
17301 *)
17302 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17303 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17304 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17305 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17306 else
17307 ld_shlibs_GCJ=no
17308 fi
17309 ;;
17310 esac
17311 ;;
17312
17313 sunos4*)
17314 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17315 wlarc=
17316 hardcode_direct_GCJ=yes
17317 hardcode_shlibpath_var_GCJ=no
17318 ;;
17319
17320 *)
17321 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17322 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17323 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17324 else
17325 ld_shlibs_GCJ=no
17326 fi
17327 ;;
17328 esac
17329
17330 if test "$ld_shlibs_GCJ" = no; then
17331 runpath_var=
17332 hardcode_libdir_flag_spec_GCJ=
17333 export_dynamic_flag_spec_GCJ=
17334 whole_archive_flag_spec_GCJ=
17335 fi
17336 else
17337 # PORTME fill in a description of your system's linker (not GNU ld)
17338 case $host_os in
17339 aix3*)
17340 allow_undefined_flag_GCJ=unsupported
17341 always_export_symbols_GCJ=yes
17342 archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
17343 # Note: this linker hardcodes the directories in LIBPATH if there
17344 # are no directories specified by -L.
17345 hardcode_minus_L_GCJ=yes
17346 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17347 # Neither direct hardcoding nor static linking is supported with a
17348 # broken collect2.
17349 hardcode_direct_GCJ=unsupported
17350 fi
17351 ;;
17352
17353 aix4* | aix5*)
17354 if test "$host_cpu" = ia64; then
17355 # On IA64, the linker does run time linking by default, so we don't
17356 # have to do anything special.
17357 aix_use_runtimelinking=no
17358 exp_sym_flag='-Bexport'
17359 no_entry_flag=""
17360 else
17361 # If we're using GNU nm, then we don't want the "-C" option.
17362 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17363 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17364 export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17365 else
17366 export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17367 fi
17368 aix_use_runtimelinking=no
17369
17370 # Test if we are trying to use run time linking or normal
17371 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17372 # need to do runtime linking.
17373 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17374 for ld_flag in $LDFLAGS; do
17375 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17376 aix_use_runtimelinking=yes
17377 break
17378 fi
17379 done
17380 ;;
17381 esac
17382
17383 exp_sym_flag='-bexport'
17384 no_entry_flag='-bnoentry'
17385 fi
17386
17387 # When large executables or shared objects are built, AIX ld can
17388 # have problems creating the table of contents. If linking a library
17389 # or program results in "error TOC overflow" add -mminimal-toc to
17390 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17391 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17392
17393 archive_cmds_GCJ=''
17394 hardcode_direct_GCJ=yes
17395 hardcode_libdir_separator_GCJ=':'
17396 link_all_deplibs_GCJ=yes
17397
17398 if test "$GCC" = yes; then
17399 case $host_os in aix4.[012]|aix4.[012].*)
17400 # We only want to do this on AIX 4.2 and lower, the check
17401 # below for broken collect2 doesn't work under 4.3+
17402 collect2name=`${CC} -print-prog-name=collect2`
17403 if test -f "$collect2name" && \
17404 strings "$collect2name" | grep resolve_lib_name >/dev/null
17405 then
17406 # We have reworked collect2
ac40fd9e 17407 :
d9898ee8 17408 else
17409 # We have old collect2
17410 hardcode_direct_GCJ=unsupported
17411 # It fails to find uninstalled libraries when the uninstalled
17412 # path is not listed in the libpath. Setting hardcode_minus_L
17413 # to unsupported forces relinking
17414 hardcode_minus_L_GCJ=yes
17415 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17416 hardcode_libdir_separator_GCJ=
17417 fi
17418 ;;
17419 esac
17420 shared_flag='-shared'
17421 if test "$aix_use_runtimelinking" = yes; then
17422 shared_flag="$shared_flag "'${wl}-G'
17423 fi
17424 else
17425 # not using gcc
17426 if test "$host_cpu" = ia64; then
17427 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17428 # chokes on -Wl,-G. The following line is correct:
17429 shared_flag='-G'
17430 else
17431 if test "$aix_use_runtimelinking" = yes; then
17432 shared_flag='${wl}-G'
17433 else
17434 shared_flag='${wl}-bM:SRE'
17435 fi
17436 fi
17437 fi
17438
17439 # It seems that -bexpall does not export symbols beginning with
17440 # underscore (_), so it is better to generate a list of symbols to export.
17441 always_export_symbols_GCJ=yes
17442 if test "$aix_use_runtimelinking" = yes; then
17443 # Warning - without using the other runtime loading flags (-brtl),
17444 # -berok will link without error, but may produce a broken library.
17445 allow_undefined_flag_GCJ='-berok'
17446 # Determine the default libpath from the value encoded in an empty executable.
17447 cat >conftest.$ac_ext <<_ACEOF
17448/* confdefs.h. */
17449_ACEOF
17450cat confdefs.h >>conftest.$ac_ext
17451cat >>conftest.$ac_ext <<_ACEOF
17452/* end confdefs.h. */
17453
17454int
17455main ()
17456{
17457
17458 ;
17459 return 0;
17460}
17461_ACEOF
17462rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 17463if { (ac_try="$ac_link"
17464case "(($ac_try" in
17465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17466 *) ac_try_echo=$ac_try;;
17467esac
17468eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17469 (eval "$ac_link") 2>conftest.er1
d9898ee8 17470 ac_status=$?
17471 grep -v '^ *+' conftest.er1 >conftest.err
17472 rm -f conftest.er1
17473 cat conftest.err >&5
17474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 17475 (exit $ac_status); } && {
17476 test -z "$ac_c_werror_flag" ||
17477 test ! -s conftest.err
17478 } && test -s conftest$ac_exeext &&
17479 $as_test_x conftest$ac_exeext; then
d9898ee8 17480
ac40fd9e 17481lt_aix_libpath_sed='
17482 /Import File Strings/,/^$/ {
17483 /^0/ {
17484 s/^0 *\(.*\)$/\1/
17485 p
17486 }
17487 }'
17488aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
d9898ee8 17489# Check for a 64-bit object if we didn't find anything.
ac40fd9e 17490if test -z "$aix_libpath"; then
17491 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17492fi
d9898ee8 17493else
17494 echo "$as_me: failed program was:" >&5
17495sed 's/^/| /' conftest.$ac_ext >&5
17496
dd184caf 17497
d9898ee8 17498fi
dd184caf 17499
17500rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 17501 conftest$ac_exeext conftest.$ac_ext
17502if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17503
17504 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17505 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17506 else
17507 if test "$host_cpu" = ia64; then
17508 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17509 allow_undefined_flag_GCJ="-z nodefs"
17510 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
17511 else
17512 # Determine the default libpath from the value encoded in an empty executable.
17513 cat >conftest.$ac_ext <<_ACEOF
17514/* confdefs.h. */
17515_ACEOF
17516cat confdefs.h >>conftest.$ac_ext
17517cat >>conftest.$ac_ext <<_ACEOF
17518/* end confdefs.h. */
17519
17520int
17521main ()
17522{
17523
17524 ;
17525 return 0;
17526}
17527_ACEOF
17528rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 17529if { (ac_try="$ac_link"
17530case "(($ac_try" in
17531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17532 *) ac_try_echo=$ac_try;;
17533esac
17534eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17535 (eval "$ac_link") 2>conftest.er1
d9898ee8 17536 ac_status=$?
17537 grep -v '^ *+' conftest.er1 >conftest.err
17538 rm -f conftest.er1
17539 cat conftest.err >&5
17540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 17541 (exit $ac_status); } && {
17542 test -z "$ac_c_werror_flag" ||
17543 test ! -s conftest.err
17544 } && test -s conftest$ac_exeext &&
17545 $as_test_x conftest$ac_exeext; then
d9898ee8 17546
ac40fd9e 17547lt_aix_libpath_sed='
17548 /Import File Strings/,/^$/ {
17549 /^0/ {
17550 s/^0 *\(.*\)$/\1/
17551 p
17552 }
17553 }'
17554aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
d9898ee8 17555# Check for a 64-bit object if we didn't find anything.
ac40fd9e 17556if test -z "$aix_libpath"; then
17557 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17558fi
d9898ee8 17559else
17560 echo "$as_me: failed program was:" >&5
17561sed 's/^/| /' conftest.$ac_ext >&5
17562
dd184caf 17563
d9898ee8 17564fi
dd184caf 17565
17566rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 17567 conftest$ac_exeext conftest.$ac_ext
17568if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17569
17570 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17571 # Warning - without using the other run time loading flags,
17572 # -berok will link without error, but may produce a broken library.
17573 no_undefined_flag_GCJ=' ${wl}-bernotok'
17574 allow_undefined_flag_GCJ=' ${wl}-berok'
17575 # Exported symbols can be pulled into shared objects from archives
17576 whole_archive_flag_spec_GCJ='$convenience'
17577 archive_cmds_need_lc_GCJ=yes
17578 # This is similar to how AIX traditionally builds its shared libraries.
17579 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
17580 fi
17581 fi
17582 ;;
17583
17584 amigaos*)
17585 archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
17586 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17587 hardcode_minus_L_GCJ=yes
17588 # see comment about different semantics on the GNU ld section
17589 ld_shlibs_GCJ=no
17590 ;;
17591
17592 bsdi[45]*)
17593 export_dynamic_flag_spec_GCJ=-rdynamic
17594 ;;
17595
17596 cygwin* | mingw* | pw32*)
17597 # When not using gcc, we currently assume that we are using
17598 # Microsoft Visual C++.
17599 # hardcode_libdir_flag_spec is actually meaningless, as there is
17600 # no search path for DLLs.
17601 hardcode_libdir_flag_spec_GCJ=' '
17602 allow_undefined_flag_GCJ=unsupported
17603 # Tell ltmain to make .lib files, not .a files.
17604 libext=lib
17605 # Tell ltmain to make .dll files, not .so files.
17606 shrext_cmds=".dll"
17607 # FIXME: Setting linknames here is a bad hack.
17608 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17609 # The linker will automatically build a .lib file if we build a DLL.
17610 old_archive_From_new_cmds_GCJ='true'
17611 # FIXME: Should let the user specify the lib program.
ac40fd9e 17612 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
d9898ee8 17613 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17614 enable_shared_with_static_runtimes_GCJ=yes
17615 ;;
17616
17617 darwin* | rhapsody*)
17618 case $host_os in
17619 rhapsody* | darwin1.[012])
17620 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17621 ;;
17622 *) # Darwin 1.3 on
17623 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17624 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17625 else
17626 case ${MACOSX_DEPLOYMENT_TARGET} in
17627 10.[012])
17628 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17629 ;;
17630 10.*)
17631 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17632 ;;
17633 esac
17634 fi
17635 ;;
17636 esac
17637 archive_cmds_need_lc_GCJ=no
17638 hardcode_direct_GCJ=no
17639 hardcode_automatic_GCJ=yes
17640 hardcode_shlibpath_var_GCJ=unsupported
17641 whole_archive_flag_spec_GCJ=''
17642 link_all_deplibs_GCJ=yes
17643 if test "$GCC" = yes ; then
17644 output_verbose_link_cmd='echo'
17645 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17646 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17647 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17648 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17649 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17650 else
17651 case $cc_basename in
17652 xlc*)
17653 output_verbose_link_cmd='echo'
ac40fd9e 17654 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
d9898ee8 17655 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17656 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
ac40fd9e 17657 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
d9898ee8 17658 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17659 ;;
17660 *)
17661 ld_shlibs_GCJ=no
17662 ;;
17663 esac
17664 fi
17665 ;;
17666
17667 dgux*)
17668 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17669 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17670 hardcode_shlibpath_var_GCJ=no
17671 ;;
17672
17673 freebsd1*)
17674 ld_shlibs_GCJ=no
17675 ;;
17676
17677 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17678 # support. Future versions do this automatically, but an explicit c++rt0.o
17679 # does not break anything, and helps significantly (at the cost of a little
17680 # extra space).
17681 freebsd2.2*)
17682 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17683 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17684 hardcode_direct_GCJ=yes
17685 hardcode_shlibpath_var_GCJ=no
17686 ;;
17687
17688 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17689 freebsd2*)
17690 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17691 hardcode_direct_GCJ=yes
17692 hardcode_minus_L_GCJ=yes
17693 hardcode_shlibpath_var_GCJ=no
17694 ;;
17695
17696 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
ac40fd9e 17697 freebsd* | dragonfly*)
d9898ee8 17698 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17699 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17700 hardcode_direct_GCJ=yes
17701 hardcode_shlibpath_var_GCJ=no
17702 ;;
17703
17704 hpux9*)
17705 if test "$GCC" = yes; then
17706 archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
17707 else
17708 archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
17709 fi
17710 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17711 hardcode_libdir_separator_GCJ=:
17712 hardcode_direct_GCJ=yes
17713
17714 # hardcode_minus_L: Not really in the search PATH,
17715 # but as the default location of the library.
17716 hardcode_minus_L_GCJ=yes
17717 export_dynamic_flag_spec_GCJ='${wl}-E'
17718 ;;
17719
17720 hpux10*)
17721 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17722 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17723 else
17724 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17725 fi
17726 if test "$with_gnu_ld" = no; then
17727 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17728 hardcode_libdir_separator_GCJ=:
17729
17730 hardcode_direct_GCJ=yes
17731 export_dynamic_flag_spec_GCJ='${wl}-E'
17732
17733 # hardcode_minus_L: Not really in the search PATH,
17734 # but as the default location of the library.
17735 hardcode_minus_L_GCJ=yes
17736 fi
17737 ;;
17738
17739 hpux11*)
17740 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17741 case $host_cpu in
17742 hppa*64*)
17743 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17744 ;;
17745 ia64*)
17746 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17747 ;;
17748 *)
17749 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17750 ;;
17751 esac
17752 else
17753 case $host_cpu in
17754 hppa*64*)
17755 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17756 ;;
17757 ia64*)
17758 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17759 ;;
17760 *)
17761 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17762 ;;
17763 esac
17764 fi
17765 if test "$with_gnu_ld" = no; then
17766 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17767 hardcode_libdir_separator_GCJ=:
17768
17769 case $host_cpu in
17770 hppa*64*|ia64*)
17771 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17772 hardcode_direct_GCJ=no
17773 hardcode_shlibpath_var_GCJ=no
17774 ;;
17775 *)
17776 hardcode_direct_GCJ=yes
17777 export_dynamic_flag_spec_GCJ='${wl}-E'
17778
17779 # hardcode_minus_L: Not really in the search PATH,
17780 # but as the default location of the library.
17781 hardcode_minus_L_GCJ=yes
17782 ;;
17783 esac
17784 fi
17785 ;;
17786
17787 irix5* | irix6* | nonstopux*)
17788 if test "$GCC" = yes; then
17789 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17790 else
17791 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17792 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17793 fi
17794 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17795 hardcode_libdir_separator_GCJ=:
17796 link_all_deplibs_GCJ=yes
17797 ;;
17798
17799 netbsd*)
17800 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17801 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17802 else
17803 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17804 fi
17805 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17806 hardcode_direct_GCJ=yes
17807 hardcode_shlibpath_var_GCJ=no
17808 ;;
17809
17810 newsos6)
17811 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17812 hardcode_direct_GCJ=yes
17813 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17814 hardcode_libdir_separator_GCJ=:
17815 hardcode_shlibpath_var_GCJ=no
17816 ;;
17817
17818 openbsd*)
ac40fd9e 17819 if test -f /usr/libexec/ld.so; then
17820 hardcode_direct_GCJ=yes
17821 hardcode_shlibpath_var_GCJ=no
17822 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17823 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17824 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17825 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17826 export_dynamic_flag_spec_GCJ='${wl}-E'
17827 else
17828 case $host_os in
17829 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17830 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17831 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17832 ;;
17833 *)
17834 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17835 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17836 ;;
17837 esac
17838 fi
d9898ee8 17839 else
ac40fd9e 17840 ld_shlibs_GCJ=no
d9898ee8 17841 fi
17842 ;;
17843
17844 os2*)
17845 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17846 hardcode_minus_L_GCJ=yes
17847 allow_undefined_flag_GCJ=unsupported
17848 archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
17849 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17850 ;;
17851
17852 osf3*)
17853 if test "$GCC" = yes; then
17854 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17855 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17856 else
17857 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17858 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17859 fi
17860 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17861 hardcode_libdir_separator_GCJ=:
17862 ;;
17863
17864 osf4* | osf5*) # as osf3* with the addition of -msym flag
17865 if test "$GCC" = yes; then
17866 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17867 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17868 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17869 else
17870 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17871 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17872 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
17873 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
17874
17875 # Both c and cxx compiler support -rpath directly
17876 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17877 fi
17878 hardcode_libdir_separator_GCJ=:
17879 ;;
17880
17881 solaris*)
17882 no_undefined_flag_GCJ=' -z text'
17883 if test "$GCC" = yes; then
17884 wlarc='${wl}'
17885 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17886 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17887 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17888 else
17889 wlarc=''
17890 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17891 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17892 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17893 fi
17894 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17895 hardcode_shlibpath_var_GCJ=no
17896 case $host_os in
17897 solaris2.[0-5] | solaris2.[0-5].*) ;;
17898 *)
ac40fd9e 17899 # The compiler driver will combine and reorder linker options,
17900 # but understands `-z linker_flag'. GCC discards it without `$wl',
17901 # but is careful enough not to reorder.
d9898ee8 17902 # Supported since Solaris 2.6 (maybe 2.5.1?)
ac40fd9e 17903 if test "$GCC" = yes; then
17904 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17905 else
17906 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
17907 fi
17908 ;;
d9898ee8 17909 esac
17910 link_all_deplibs_GCJ=yes
17911 ;;
17912
17913 sunos4*)
17914 if test "x$host_vendor" = xsequent; then
17915 # Use $CC to link under sequent, because it throws in some extra .o
17916 # files that make .init and .fini sections work.
17917 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17918 else
17919 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17920 fi
17921 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17922 hardcode_direct_GCJ=yes
17923 hardcode_minus_L_GCJ=yes
17924 hardcode_shlibpath_var_GCJ=no
17925 ;;
17926
17927 sysv4)
17928 case $host_vendor in
17929 sni)
17930 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17931 hardcode_direct_GCJ=yes # is this really true???
17932 ;;
17933 siemens)
17934 ## LD is ld it makes a PLAMLIB
17935 ## CC just makes a GrossModule.
17936 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17937 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17938 hardcode_direct_GCJ=no
17939 ;;
17940 motorola)
17941 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17942 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17943 ;;
17944 esac
17945 runpath_var='LD_RUN_PATH'
17946 hardcode_shlibpath_var_GCJ=no
17947 ;;
17948
17949 sysv4.3*)
17950 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17951 hardcode_shlibpath_var_GCJ=no
17952 export_dynamic_flag_spec_GCJ='-Bexport'
17953 ;;
17954
17955 sysv4*MP*)
17956 if test -d /usr/nec; then
17957 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17958 hardcode_shlibpath_var_GCJ=no
17959 runpath_var=LD_RUN_PATH
17960 hardcode_runpath_var=yes
17961 ld_shlibs_GCJ=yes
17962 fi
17963 ;;
17964
ac40fd9e 17965 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
d9898ee8 17966 no_undefined_flag_GCJ='${wl}-z,text'
17967 archive_cmds_need_lc_GCJ=no
17968 hardcode_shlibpath_var_GCJ=no
17969 runpath_var='LD_RUN_PATH'
17970
17971 if test "$GCC" = yes; then
17972 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17973 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17974 else
17975 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17976 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17977 fi
17978 ;;
17979
17980 sysv5* | sco3.2v5* | sco5v6*)
17981 # Note: We can NOT use -z defs as we might desire, because we do not
17982 # link with -lc, and that would cause any symbols used from libc to
17983 # always be unresolved, which means just about no library would
17984 # ever link correctly. If we're not using GNU ld we use -z text
17985 # though, which does catch some bad symbols but isn't as heavy-handed
17986 # as -z defs.
17987 no_undefined_flag_GCJ='${wl}-z,text'
17988 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17989 archive_cmds_need_lc_GCJ=no
17990 hardcode_shlibpath_var_GCJ=no
17991 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17992 hardcode_libdir_separator_GCJ=':'
17993 link_all_deplibs_GCJ=yes
17994 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17995 runpath_var='LD_RUN_PATH'
17996
17997 if test "$GCC" = yes; then
17998 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17999 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18000 else
18001 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18002 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18003 fi
18004 ;;
18005
18006 uts4*)
18007 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18008 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18009 hardcode_shlibpath_var_GCJ=no
18010 ;;
18011
18012 *)
18013 ld_shlibs_GCJ=no
18014 ;;
18015 esac
18016 fi
18017
dd184caf 18018{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18019echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
d9898ee8 18020test "$ld_shlibs_GCJ" = no && can_build_shared=no
18021
18022#
18023# Do we need to explicitly link libc?
18024#
18025case "x$archive_cmds_need_lc_GCJ" in
18026x|xyes)
18027 # Assume -lc should be added
18028 archive_cmds_need_lc_GCJ=yes
18029
18030 if test "$enable_shared" = yes && test "$GCC" = yes; then
18031 case $archive_cmds_GCJ in
18032 *'~'*)
18033 # FIXME: we may have to deal with multi-command sequences.
18034 ;;
18035 '$CC '*)
18036 # Test whether the compiler implicitly links with -lc since on some
18037 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18038 # to ld, don't add -lc before -lgcc.
dd184caf 18039 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18040echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
d9898ee8 18041 $rm conftest*
ac40fd9e 18042 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 18043
18044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18045 (eval $ac_compile) 2>&5
18046 ac_status=$?
18047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18048 (exit $ac_status); } 2>conftest.err; then
18049 soname=conftest
18050 lib=conftest
18051 libobjs=conftest.$ac_objext
18052 deplibs=
18053 wl=$lt_prog_compiler_wl_GCJ
18054 pic_flag=$lt_prog_compiler_pic_GCJ
18055 compiler_flags=-v
18056 linker_flags=-v
18057 verstring=
18058 output_objdir=.
18059 libname=conftest
18060 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18061 allow_undefined_flag_GCJ=
18062 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18063 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18064 ac_status=$?
18065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18066 (exit $ac_status); }
18067 then
18068 archive_cmds_need_lc_GCJ=no
18069 else
18070 archive_cmds_need_lc_GCJ=yes
18071 fi
18072 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18073 else
18074 cat conftest.err 1>&5
18075 fi
18076 $rm conftest*
dd184caf 18077 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18078echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
d9898ee8 18079 ;;
18080 esac
18081 fi
18082 ;;
18083esac
18084
dd184caf 18085{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18086echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
d9898ee8 18087library_names_spec=
18088libname_spec='lib$name'
18089soname_spec=
18090shrext_cmds=".so"
18091postinstall_cmds=
18092postuninstall_cmds=
18093finish_cmds=
18094finish_eval=
18095shlibpath_var=
18096shlibpath_overrides_runpath=unknown
18097version_type=none
18098dynamic_linker="$host_os ld.so"
18099sys_lib_dlsearch_path_spec="/lib /usr/lib"
ac40fd9e 18100
d9898ee8 18101need_lib_prefix=unknown
18102hardcode_into_libs=no
18103
18104# when you set need_version to no, make sure it does not cause -set_version
18105# flags to be left without arguments
18106need_version=unknown
18107
18108case $host_os in
18109aix3*)
18110 version_type=linux
18111 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18112 shlibpath_var=LIBPATH
18113
18114 # AIX 3 has no versioning support, so we append a major version to the name.
18115 soname_spec='${libname}${release}${shared_ext}$major'
18116 ;;
18117
18118aix4* | aix5*)
18119 version_type=linux
18120 need_lib_prefix=no
18121 need_version=no
18122 hardcode_into_libs=yes
18123 if test "$host_cpu" = ia64; then
18124 # AIX 5 supports IA64
18125 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18126 shlibpath_var=LD_LIBRARY_PATH
18127 else
18128 # With GCC up to 2.95.x, collect2 would create an import file
18129 # for dependence libraries. The import file would start with
18130 # the line `#! .'. This would cause the generated library to
18131 # depend on `.', always an invalid library. This was fixed in
18132 # development snapshots of GCC prior to 3.0.
18133 case $host_os in
18134 aix4 | aix4.[01] | aix4.[01].*)
18135 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18136 echo ' yes '
18137 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18138 :
18139 else
18140 can_build_shared=no
18141 fi
18142 ;;
18143 esac
18144 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18145 # soname into executable. Probably we can add versioning support to
18146 # collect2, so additional links can be useful in future.
18147 if test "$aix_use_runtimelinking" = yes; then
18148 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18149 # instead of lib<name>.a to let people know that these are not
18150 # typical AIX shared libraries.
18151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18152 else
18153 # We preserve .a as extension for shared libraries through AIX4.2
18154 # and later when we are not doing run time linking.
18155 library_names_spec='${libname}${release}.a $libname.a'
18156 soname_spec='${libname}${release}${shared_ext}$major'
18157 fi
18158 shlibpath_var=LIBPATH
18159 fi
18160 ;;
18161
18162amigaos*)
18163 library_names_spec='$libname.ixlibrary $libname.a'
18164 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18165 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'
18166 ;;
18167
18168beos*)
18169 library_names_spec='${libname}${shared_ext}'
18170 dynamic_linker="$host_os ld.so"
18171 shlibpath_var=LIBRARY_PATH
18172 ;;
18173
18174bsdi[45]*)
18175 version_type=linux
18176 need_version=no
18177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18178 soname_spec='${libname}${release}${shared_ext}$major'
18179 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18180 shlibpath_var=LD_LIBRARY_PATH
18181 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18182 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18183 # the default ld.so.conf also contains /usr/contrib/lib and
18184 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18185 # libtool to hard-code these into programs
18186 ;;
18187
18188cygwin* | mingw* | pw32*)
18189 version_type=windows
18190 shrext_cmds=".dll"
18191 need_version=no
18192 need_lib_prefix=no
18193
18194 case $GCC,$host_os in
18195 yes,cygwin* | yes,mingw* | yes,pw32*)
18196 library_names_spec='$libname.dll.a'
18197 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18198 postinstall_cmds='base_file=`basename \${file}`~
18199 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18200 dldir=$destdir/`dirname \$dlpath`~
18201 test -d \$dldir || mkdir -p \$dldir~
18202 $install_prog $dir/$dlname \$dldir/$dlname~
18203 chmod a+x \$dldir/$dlname'
18204 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18205 dlpath=$dir/\$dldll~
18206 $rm \$dlpath'
18207 shlibpath_overrides_runpath=yes
18208
18209 case $host_os in
18210 cygwin*)
18211 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18212 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18213 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18214 ;;
18215 mingw*)
18216 # MinGW DLLs use traditional 'lib' prefix
18217 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18218 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18219 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18220 # It is most probably a Windows format PATH printed by
18221 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18222 # path with ; separators, and with drive letters. We can handle the
18223 # drive letters (cygwin fileutils understands them), so leave them,
18224 # especially as we might pass files found there to a mingw objdump,
18225 # which wouldn't understand a cygwinified path. Ahh.
18226 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18227 else
18228 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18229 fi
18230 ;;
18231 pw32*)
18232 # pw32 DLLs use 'pw' prefix rather than 'lib'
18233 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18234 ;;
18235 esac
18236 ;;
18237
18238 *)
18239 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18240 ;;
18241 esac
18242 dynamic_linker='Win32 ld.exe'
18243 # FIXME: first we should search . and the directory the executable is in
18244 shlibpath_var=PATH
18245 ;;
18246
18247darwin* | rhapsody*)
18248 dynamic_linker="$host_os dyld"
18249 version_type=darwin
18250 need_lib_prefix=no
18251 need_version=no
18252 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18253 soname_spec='${libname}${release}${major}$shared_ext'
18254 shlibpath_overrides_runpath=yes
18255 shlibpath_var=DYLD_LIBRARY_PATH
18256 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
ac40fd9e 18257
d9898ee8 18258 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18259 ;;
18260
18261dgux*)
18262 version_type=linux
18263 need_lib_prefix=no
18264 need_version=no
18265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18266 soname_spec='${libname}${release}${shared_ext}$major'
18267 shlibpath_var=LD_LIBRARY_PATH
18268 ;;
18269
18270freebsd1*)
18271 dynamic_linker=no
18272 ;;
18273
d9898ee8 18274freebsd* | dragonfly*)
18275 # DragonFly does not have aout. When/if they implement a new
18276 # versioning mechanism, adjust this.
18277 if test -x /usr/bin/objformat; then
18278 objformat=`/usr/bin/objformat`
18279 else
18280 case $host_os in
18281 freebsd[123]*) objformat=aout ;;
18282 *) objformat=elf ;;
18283 esac
18284 fi
18285 version_type=freebsd-$objformat
18286 case $version_type in
18287 freebsd-elf*)
18288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18289 need_version=no
18290 need_lib_prefix=no
18291 ;;
18292 freebsd-*)
18293 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18294 need_version=yes
18295 ;;
18296 esac
18297 shlibpath_var=LD_LIBRARY_PATH
18298 case $host_os in
18299 freebsd2*)
18300 shlibpath_overrides_runpath=yes
18301 ;;
18302 freebsd3.[01]* | freebsdelf3.[01]*)
18303 shlibpath_overrides_runpath=yes
18304 hardcode_into_libs=yes
18305 ;;
18306 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18307 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18308 shlibpath_overrides_runpath=no
18309 hardcode_into_libs=yes
18310 ;;
ac40fd9e 18311 *) # from 4.6 on, and DragonFly
d9898ee8 18312 shlibpath_overrides_runpath=yes
18313 hardcode_into_libs=yes
18314 ;;
18315 esac
18316 ;;
18317
18318gnu*)
18319 version_type=linux
18320 need_lib_prefix=no
18321 need_version=no
18322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18323 soname_spec='${libname}${release}${shared_ext}$major'
18324 shlibpath_var=LD_LIBRARY_PATH
18325 hardcode_into_libs=yes
18326 ;;
18327
18328hpux9* | hpux10* | hpux11*)
18329 # Give a soname corresponding to the major version so that dld.sl refuses to
18330 # link against other versions.
18331 version_type=sunos
18332 need_lib_prefix=no
18333 need_version=no
18334 case $host_cpu in
18335 ia64*)
18336 shrext_cmds='.so'
18337 hardcode_into_libs=yes
18338 dynamic_linker="$host_os dld.so"
18339 shlibpath_var=LD_LIBRARY_PATH
18340 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18342 soname_spec='${libname}${release}${shared_ext}$major'
18343 if test "X$HPUX_IA64_MODE" = X32; then
18344 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18345 else
18346 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18347 fi
18348 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18349 ;;
18350 hppa*64*)
18351 shrext_cmds='.sl'
18352 hardcode_into_libs=yes
18353 dynamic_linker="$host_os dld.sl"
18354 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18355 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18357 soname_spec='${libname}${release}${shared_ext}$major'
18358 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18359 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18360 ;;
18361 *)
18362 shrext_cmds='.sl'
18363 dynamic_linker="$host_os dld.sl"
18364 shlibpath_var=SHLIB_PATH
18365 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18367 soname_spec='${libname}${release}${shared_ext}$major'
18368 ;;
18369 esac
18370 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18371 postinstall_cmds='chmod 555 $lib'
18372 ;;
18373
ac40fd9e 18374interix[3-9]*)
d9898ee8 18375 version_type=linux
18376 need_lib_prefix=no
18377 need_version=no
18378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18379 soname_spec='${libname}${release}${shared_ext}$major'
18380 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18381 shlibpath_var=LD_LIBRARY_PATH
18382 shlibpath_overrides_runpath=no
18383 hardcode_into_libs=yes
18384 ;;
18385
18386irix5* | irix6* | nonstopux*)
18387 case $host_os in
18388 nonstopux*) version_type=nonstopux ;;
18389 *)
18390 if test "$lt_cv_prog_gnu_ld" = yes; then
18391 version_type=linux
18392 else
18393 version_type=irix
18394 fi ;;
18395 esac
18396 need_lib_prefix=no
18397 need_version=no
18398 soname_spec='${libname}${release}${shared_ext}$major'
18399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18400 case $host_os in
18401 irix5* | nonstopux*)
18402 libsuff= shlibsuff=
18403 ;;
18404 *)
18405 case $LD in # libtool.m4 will add one of these switches to LD
18406 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18407 libsuff= shlibsuff= libmagic=32-bit;;
18408 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18409 libsuff=32 shlibsuff=N32 libmagic=N32;;
18410 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18411 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18412 *) libsuff= shlibsuff= libmagic=never-match;;
18413 esac
18414 ;;
18415 esac
18416 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18417 shlibpath_overrides_runpath=no
18418 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18419 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18420 hardcode_into_libs=yes
18421 ;;
18422
18423# No shared lib support for Linux oldld, aout, or coff.
18424linux*oldld* | linux*aout* | linux*coff*)
18425 dynamic_linker=no
18426 ;;
18427
18428# This must be Linux ELF.
ac40fd9e 18429linux* | k*bsd*-gnu)
d9898ee8 18430 version_type=linux
18431 need_lib_prefix=no
18432 need_version=no
18433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18434 soname_spec='${libname}${release}${shared_ext}$major'
18435 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18436 shlibpath_var=LD_LIBRARY_PATH
18437 shlibpath_overrides_runpath=no
18438 # This implies no fast_install, which is unacceptable.
18439 # Some rework will be needed to allow for fast_install
18440 # before this can be enabled.
18441 hardcode_into_libs=yes
ac40fd9e 18442 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18443 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
d9898ee8 18444
18445 # Append ld.so.conf contents to the search path
18446 if test -f /etc/ld.so.conf; then
ac40fd9e 18447 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' ' '`
18448 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
d9898ee8 18449 fi
18450
18451 # We used to test for /lib/ld.so.1 and disable shared libraries on
18452 # powerpc, because MkLinux only supported shared libraries with the
18453 # GNU dynamic linker. Since this was broken with cross compilers,
18454 # most powerpc-linux boxes support dynamic linking these days and
18455 # people can always --disable-shared, the test was removed, and we
18456 # assume the GNU/Linux dynamic linker is in use.
18457 dynamic_linker='GNU/Linux ld.so'
18458 ;;
18459
d9898ee8 18460netbsd*)
18461 version_type=sunos
18462 need_lib_prefix=no
18463 need_version=no
18464 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18466 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18467 dynamic_linker='NetBSD (a.out) ld.so'
18468 else
18469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18470 soname_spec='${libname}${release}${shared_ext}$major'
18471 dynamic_linker='NetBSD ld.elf_so'
18472 fi
18473 shlibpath_var=LD_LIBRARY_PATH
18474 shlibpath_overrides_runpath=yes
18475 hardcode_into_libs=yes
18476 ;;
18477
18478newsos6)
18479 version_type=linux
18480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18481 shlibpath_var=LD_LIBRARY_PATH
18482 shlibpath_overrides_runpath=yes
18483 ;;
18484
18485nto-qnx*)
18486 version_type=linux
18487 need_lib_prefix=no
18488 need_version=no
18489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18490 soname_spec='${libname}${release}${shared_ext}$major'
18491 shlibpath_var=LD_LIBRARY_PATH
18492 shlibpath_overrides_runpath=yes
18493 ;;
18494
18495openbsd*)
18496 version_type=sunos
18497 sys_lib_dlsearch_path_spec="/usr/lib"
18498 need_lib_prefix=no
18499 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18500 case $host_os in
18501 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18502 *) need_version=no ;;
18503 esac
18504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18505 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18506 shlibpath_var=LD_LIBRARY_PATH
18507 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18508 case $host_os in
18509 openbsd2.[89] | openbsd2.[89].*)
18510 shlibpath_overrides_runpath=no
18511 ;;
18512 *)
18513 shlibpath_overrides_runpath=yes
18514 ;;
18515 esac
18516 else
18517 shlibpath_overrides_runpath=yes
18518 fi
18519 ;;
18520
18521os2*)
18522 libname_spec='$name'
18523 shrext_cmds=".dll"
18524 need_lib_prefix=no
18525 library_names_spec='$libname${shared_ext} $libname.a'
18526 dynamic_linker='OS/2 ld.exe'
18527 shlibpath_var=LIBPATH
18528 ;;
18529
18530osf3* | osf4* | osf5*)
18531 version_type=osf
18532 need_lib_prefix=no
18533 need_version=no
18534 soname_spec='${libname}${release}${shared_ext}$major'
18535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18536 shlibpath_var=LD_LIBRARY_PATH
18537 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18538 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18539 ;;
18540
ac40fd9e 18541rdos*)
18542 dynamic_linker=no
18543 ;;
18544
d9898ee8 18545solaris*)
18546 version_type=linux
18547 need_lib_prefix=no
18548 need_version=no
18549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18550 soname_spec='${libname}${release}${shared_ext}$major'
18551 shlibpath_var=LD_LIBRARY_PATH
18552 shlibpath_overrides_runpath=yes
18553 hardcode_into_libs=yes
18554 # ldd complains unless libraries are executable
18555 postinstall_cmds='chmod +x $lib'
18556 ;;
18557
18558sunos4*)
18559 version_type=sunos
18560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18561 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18562 shlibpath_var=LD_LIBRARY_PATH
18563 shlibpath_overrides_runpath=yes
18564 if test "$with_gnu_ld" = yes; then
18565 need_lib_prefix=no
18566 fi
18567 need_version=yes
18568 ;;
18569
18570sysv4 | sysv4.3*)
18571 version_type=linux
18572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18573 soname_spec='${libname}${release}${shared_ext}$major'
18574 shlibpath_var=LD_LIBRARY_PATH
18575 case $host_vendor in
18576 sni)
18577 shlibpath_overrides_runpath=no
18578 need_lib_prefix=no
18579 export_dynamic_flag_spec='${wl}-Blargedynsym'
18580 runpath_var=LD_RUN_PATH
18581 ;;
18582 siemens)
18583 need_lib_prefix=no
18584 ;;
18585 motorola)
18586 need_lib_prefix=no
18587 need_version=no
18588 shlibpath_overrides_runpath=no
18589 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18590 ;;
18591 esac
18592 ;;
18593
18594sysv4*MP*)
18595 if test -d /usr/nec ;then
18596 version_type=linux
18597 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18598 soname_spec='$libname${shared_ext}.$major'
18599 shlibpath_var=LD_LIBRARY_PATH
18600 fi
18601 ;;
18602
18603sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18604 version_type=freebsd-elf
18605 need_lib_prefix=no
18606 need_version=no
18607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18608 soname_spec='${libname}${release}${shared_ext}$major'
18609 shlibpath_var=LD_LIBRARY_PATH
18610 hardcode_into_libs=yes
18611 if test "$with_gnu_ld" = yes; then
18612 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18613 shlibpath_overrides_runpath=no
18614 else
18615 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18616 shlibpath_overrides_runpath=yes
18617 case $host_os in
18618 sco3.2v5*)
18619 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18620 ;;
18621 esac
18622 fi
18623 sys_lib_dlsearch_path_spec='/usr/lib'
18624 ;;
18625
18626uts4*)
18627 version_type=linux
18628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18629 soname_spec='${libname}${release}${shared_ext}$major'
18630 shlibpath_var=LD_LIBRARY_PATH
18631 ;;
18632
18633*)
18634 dynamic_linker=no
18635 ;;
18636esac
dd184caf 18637{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18638echo "${ECHO_T}$dynamic_linker" >&6; }
d9898ee8 18639test "$dynamic_linker" = no && can_build_shared=no
18640
18641variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18642if test "$GCC" = yes; then
18643 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18644fi
18645
dd184caf 18646{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18647echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
d9898ee8 18648hardcode_action_GCJ=
18649if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18650 test -n "$runpath_var_GCJ" || \
18651 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18652
18653 # We can hardcode non-existant directories.
18654 if test "$hardcode_direct_GCJ" != no &&
18655 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18656 # have to relink, otherwise we might link with an installed library
18657 # when we should be linking with a yet-to-be-installed one
18658 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18659 test "$hardcode_minus_L_GCJ" != no; then
18660 # Linking always hardcodes the temporary library directory.
18661 hardcode_action_GCJ=relink
18662 else
18663 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18664 hardcode_action_GCJ=immediate
18665 fi
18666else
18667 # We cannot hardcode anything, or else we can only hardcode existing
18668 # directories.
18669 hardcode_action_GCJ=unsupported
18670fi
dd184caf 18671{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18672echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
d9898ee8 18673
18674if test "$hardcode_action_GCJ" = relink; then
18675 # Fast installation is not supported
18676 enable_fast_install=no
18677elif test "$shlibpath_overrides_runpath" = yes ||
18678 test "$enable_shared" = no; then
18679 # Fast installation is not necessary
18680 enable_fast_install=needless
18681fi
18682
18683
18684# The else clause should only fire when bootstrapping the
18685# libtool distribution, otherwise you forgot to ship ltmain.sh
18686# with your package, and you will get complaints that there are
18687# no rules to generate ltmain.sh.
18688if test -f "$ltmain"; then
18689 # See if we are running on zsh, and set the options which allow our commands through
18690 # without removal of \ escapes.
18691 if test -n "${ZSH_VERSION+set}" ; then
18692 setopt NO_GLOB_SUBST
18693 fi
18694 # Now quote all the things that may contain metacharacters while being
18695 # careful not to overquote the AC_SUBSTed values. We take copies of the
18696 # variables and quote the copies for generation of the libtool script.
18697 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18698 SED SHELL STRIP \
18699 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18700 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18701 deplibs_check_method reload_flag reload_cmds need_locks \
18702 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18703 lt_cv_sys_global_symbol_to_c_name_address \
18704 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18705 old_postinstall_cmds old_postuninstall_cmds \
18706 compiler_GCJ \
18707 CC_GCJ \
18708 LD_GCJ \
18709 lt_prog_compiler_wl_GCJ \
18710 lt_prog_compiler_pic_GCJ \
18711 lt_prog_compiler_static_GCJ \
18712 lt_prog_compiler_no_builtin_flag_GCJ \
18713 export_dynamic_flag_spec_GCJ \
18714 thread_safe_flag_spec_GCJ \
18715 whole_archive_flag_spec_GCJ \
18716 enable_shared_with_static_runtimes_GCJ \
18717 old_archive_cmds_GCJ \
18718 old_archive_from_new_cmds_GCJ \
18719 predep_objects_GCJ \
18720 postdep_objects_GCJ \
18721 predeps_GCJ \
18722 postdeps_GCJ \
18723 compiler_lib_search_path_GCJ \
18724 archive_cmds_GCJ \
18725 archive_expsym_cmds_GCJ \
18726 postinstall_cmds_GCJ \
18727 postuninstall_cmds_GCJ \
18728 old_archive_from_expsyms_cmds_GCJ \
18729 allow_undefined_flag_GCJ \
18730 no_undefined_flag_GCJ \
18731 export_symbols_cmds_GCJ \
18732 hardcode_libdir_flag_spec_GCJ \
18733 hardcode_libdir_flag_spec_ld_GCJ \
18734 hardcode_libdir_separator_GCJ \
18735 hardcode_automatic_GCJ \
18736 module_cmds_GCJ \
18737 module_expsym_cmds_GCJ \
18738 lt_cv_prog_compiler_c_o_GCJ \
ac40fd9e 18739 fix_srcfile_path_GCJ \
d9898ee8 18740 exclude_expsyms_GCJ \
18741 include_expsyms_GCJ; do
18742
18743 case $var in
18744 old_archive_cmds_GCJ | \
18745 old_archive_from_new_cmds_GCJ | \
18746 archive_cmds_GCJ | \
18747 archive_expsym_cmds_GCJ | \
18748 module_cmds_GCJ | \
18749 module_expsym_cmds_GCJ | \
18750 old_archive_from_expsyms_cmds_GCJ | \
18751 export_symbols_cmds_GCJ | \
18752 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18753 postinstall_cmds | postuninstall_cmds | \
18754 old_postinstall_cmds | old_postuninstall_cmds | \
18755 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18756 # Double-quote double-evaled strings.
18757 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18758 ;;
18759 *)
18760 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18761 ;;
18762 esac
18763 done
18764
18765 case $lt_echo in
18766 *'\$0 --fallback-echo"')
18767 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18768 ;;
18769 esac
18770
18771cfgfile="$ofile"
18772
18773 cat <<__EOF__ >> "$cfgfile"
18774# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18775
18776# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18777
18778# Shell to use when invoking shell scripts.
18779SHELL=$lt_SHELL
18780
18781# Whether or not to build shared libraries.
18782build_libtool_libs=$enable_shared
18783
18784# Whether or not to build static libraries.
18785build_old_libs=$enable_static
18786
18787# Whether or not to add -lc for building shared libraries.
18788build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18789
18790# Whether or not to disallow shared libs when runtime libs are static
18791allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18792
18793# Whether or not to optimize for fast installation.
18794fast_install=$enable_fast_install
18795
18796# The host system.
18797host_alias=$host_alias
18798host=$host
18799host_os=$host_os
18800
18801# The build system.
18802build_alias=$build_alias
18803build=$build
18804build_os=$build_os
18805
18806# An echo program that does not interpret backslashes.
18807echo=$lt_echo
18808
18809# The archiver.
18810AR=$lt_AR
18811AR_FLAGS=$lt_AR_FLAGS
18812
18813# A C compiler.
18814LTCC=$lt_LTCC
18815
18816# LTCC compiler flags.
18817LTCFLAGS=$lt_LTCFLAGS
18818
18819# A language-specific compiler.
18820CC=$lt_compiler_GCJ
18821
18822# Is the compiler the GNU C compiler?
18823with_gcc=$GCC_GCJ
18824
d9898ee8 18825# An ERE matcher.
18826EGREP=$lt_EGREP
18827
18828# The linker used to build libraries.
18829LD=$lt_LD_GCJ
18830
18831# Whether we need hard or soft links.
18832LN_S=$lt_LN_S
18833
18834# A BSD-compatible nm program.
18835NM=$lt_NM
18836
18837# A symbol stripping program
18838STRIP=$lt_STRIP
18839
18840# Used to examine libraries when file_magic_cmd begins "file"
18841MAGIC_CMD=$MAGIC_CMD
18842
18843# Used on cygwin: DLL creation program.
18844DLLTOOL="$DLLTOOL"
18845
18846# Used on cygwin: object dumper.
18847OBJDUMP="$OBJDUMP"
18848
18849# Used on cygwin: assembler.
18850AS="$AS"
18851
18852# The name of the directory that contains temporary libtool files.
18853objdir=$objdir
18854
18855# How to create reloadable object files.
18856reload_flag=$lt_reload_flag
18857reload_cmds=$lt_reload_cmds
18858
18859# How to pass a linker flag through the compiler.
18860wl=$lt_lt_prog_compiler_wl_GCJ
18861
18862# Object file suffix (normally "o").
18863objext="$ac_objext"
18864
18865# Old archive suffix (normally "a").
18866libext="$libext"
18867
18868# Shared library suffix (normally ".so").
18869shrext_cmds='$shrext_cmds'
18870
18871# Executable file suffix (normally "").
18872exeext="$exeext"
18873
18874# Additional compiler flags for building library objects.
18875pic_flag=$lt_lt_prog_compiler_pic_GCJ
18876pic_mode=$pic_mode
18877
18878# What is the maximum length of a command?
18879max_cmd_len=$lt_cv_sys_max_cmd_len
18880
18881# Does compiler simultaneously support -c and -o options?
18882compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18883
18884# Must we lock files when doing compilation?
18885need_locks=$lt_need_locks
18886
18887# Do we need the lib prefix for modules?
18888need_lib_prefix=$need_lib_prefix
18889
18890# Do we need a version for libraries?
18891need_version=$need_version
18892
18893# Whether dlopen is supported.
18894dlopen_support=$enable_dlopen
18895
18896# Whether dlopen of programs is supported.
18897dlopen_self=$enable_dlopen_self
18898
18899# Whether dlopen of statically linked programs is supported.
18900dlopen_self_static=$enable_dlopen_self_static
18901
18902# Compiler flag to prevent dynamic linking.
18903link_static_flag=$lt_lt_prog_compiler_static_GCJ
18904
18905# Compiler flag to turn off builtin functions.
18906no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18907
18908# Compiler flag to allow reflexive dlopens.
18909export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18910
18911# Compiler flag to generate shared objects directly from archives.
18912whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18913
18914# Compiler flag to generate thread-safe objects.
18915thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18916
18917# Library versioning type.
18918version_type=$version_type
18919
18920# Format of library name prefix.
18921libname_spec=$lt_libname_spec
18922
18923# List of archive names. First name is the real one, the rest are links.
18924# The last name is the one that the linker finds with -lNAME.
18925library_names_spec=$lt_library_names_spec
18926
18927# The coded name of the library, if different from the real name.
18928soname_spec=$lt_soname_spec
18929
18930# Commands used to build and install an old-style archive.
18931RANLIB=$lt_RANLIB
18932old_archive_cmds=$lt_old_archive_cmds_GCJ
18933old_postinstall_cmds=$lt_old_postinstall_cmds
18934old_postuninstall_cmds=$lt_old_postuninstall_cmds
18935
18936# Create an old-style archive from a shared archive.
18937old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18938
18939# Create a temporary old-style archive to link instead of a shared archive.
18940old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18941
18942# Commands used to build and install a shared archive.
18943archive_cmds=$lt_archive_cmds_GCJ
18944archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18945postinstall_cmds=$lt_postinstall_cmds
18946postuninstall_cmds=$lt_postuninstall_cmds
18947
18948# Commands used to build a loadable module (assumed same as above if empty)
18949module_cmds=$lt_module_cmds_GCJ
18950module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18951
18952# Commands to strip libraries.
18953old_striplib=$lt_old_striplib
18954striplib=$lt_striplib
18955
18956# Dependencies to place before the objects being linked to create a
18957# shared library.
dd184caf 18958predep_objects=$lt_predep_objects_GCJ
d9898ee8 18959
18960# Dependencies to place after the objects being linked to create a
18961# shared library.
dd184caf 18962postdep_objects=$lt_postdep_objects_GCJ
d9898ee8 18963
18964# Dependencies to place before the objects being linked to create a
18965# shared library.
18966predeps=$lt_predeps_GCJ
18967
18968# Dependencies to place after the objects being linked to create a
18969# shared library.
18970postdeps=$lt_postdeps_GCJ
18971
18972# The library search path used internally by the compiler when linking
18973# a shared library.
dd184caf 18974compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
d9898ee8 18975
18976# Method to check whether dependent libraries are shared objects.
18977deplibs_check_method=$lt_deplibs_check_method
18978
18979# Command to use when deplibs_check_method == file_magic.
18980file_magic_cmd=$lt_file_magic_cmd
18981
18982# Flag that allows shared libraries with undefined symbols to be built.
18983allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18984
18985# Flag that forces no undefined symbols.
18986no_undefined_flag=$lt_no_undefined_flag_GCJ
18987
18988# Commands used to finish a libtool library installation in a directory.
18989finish_cmds=$lt_finish_cmds
18990
18991# Same as above, but a single script fragment to be evaled but not shown.
18992finish_eval=$lt_finish_eval
18993
18994# Take the output of nm and produce a listing of raw symbols and C names.
18995global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18996
18997# Transform the output of nm in a proper C declaration
18998global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18999
19000# Transform the output of nm in a C name address pair
19001global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19002
19003# This is the shared library runtime path variable.
19004runpath_var=$runpath_var
19005
19006# This is the shared library path variable.
19007shlibpath_var=$shlibpath_var
19008
19009# Is shlibpath searched before the hard-coded library search path?
19010shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19011
19012# How to hardcode a shared library path into an executable.
19013hardcode_action=$hardcode_action_GCJ
19014
19015# Whether we should hardcode library paths into libraries.
19016hardcode_into_libs=$hardcode_into_libs
19017
19018# Flag to hardcode \$libdir into a binary during linking.
19019# This must work even if \$libdir does not exist.
19020hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19021
19022# If ld is used when linking, flag to hardcode \$libdir into
19023# a binary during linking. This must work even if \$libdir does
19024# not exist.
19025hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19026
19027# Whether we need a single -rpath flag with a separated argument.
19028hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19029
19030# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19031# resulting binary.
19032hardcode_direct=$hardcode_direct_GCJ
19033
19034# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19035# resulting binary.
19036hardcode_minus_L=$hardcode_minus_L_GCJ
19037
19038# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19039# the resulting binary.
19040hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19041
19042# Set to yes if building a shared library automatically hardcodes DIR into the library
19043# and all subsequent libraries and executables linked against it.
19044hardcode_automatic=$hardcode_automatic_GCJ
19045
19046# Variables whose values should be saved in libtool wrapper scripts and
19047# restored at relink time.
19048variables_saved_for_relink="$variables_saved_for_relink"
19049
19050# Whether libtool must link a program against all its dependency libraries.
19051link_all_deplibs=$link_all_deplibs_GCJ
19052
19053# Compile-time system search path for libraries
dd184caf 19054sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
d9898ee8 19055
19056# Run-time system search path for libraries
19057sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19058
19059# Fix the shell variable \$srcfile for the compiler.
ac40fd9e 19060fix_srcfile_path=$lt_fix_srcfile_path
d9898ee8 19061
19062# Set to yes if exported symbols are required.
19063always_export_symbols=$always_export_symbols_GCJ
19064
19065# The commands to list exported symbols.
19066export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19067
19068# The commands to extract the exported symbol list from a shared archive.
19069extract_expsyms_cmds=$lt_extract_expsyms_cmds
19070
19071# Symbols that should not be listed in the preloaded symbols.
19072exclude_expsyms=$lt_exclude_expsyms_GCJ
19073
19074# Symbols that must always be exported.
19075include_expsyms=$lt_include_expsyms_GCJ
19076
19077# ### END LIBTOOL TAG CONFIG: $tagname
19078
19079__EOF__
19080
19081
19082else
19083 # If there is no Makefile yet, we rely on a make rule to execute
19084 # `config.status --recheck' to rerun these tests and create the
19085 # libtool script then.
19086 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19087 if test -f "$ltmain_in"; then
19088 test -f Makefile && make "$ltmain"
19089 fi
19090fi
19091
19092
19093ac_ext=c
19094ac_cpp='$CPP $CPPFLAGS'
19095ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19096ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19097ac_compiler_gnu=$ac_cv_c_compiler_gnu
19098
19099CC="$lt_save_CC"
19100
19101 else
19102 tagname=""
19103 fi
19104 ;;
19105
19106 RC)
19107
19108
d9898ee8 19109# Source file extension for RC test sources.
19110ac_ext=rc
19111
19112# Object file extension for compiled RC test sources.
19113objext=o
19114objext_RC=$objext
19115
19116# Code to be used in simple compile tests
ac40fd9e 19117lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
d9898ee8 19118
19119# Code to be used in simple link tests
19120lt_simple_link_test_code="$lt_simple_compile_test_code"
19121
19122# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19123
19124# If no C compiler was specified, use CC.
19125LTCC=${LTCC-"$CC"}
19126
19127# If no C compiler flags were specified, use CFLAGS.
19128LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19129
19130# Allow CC to be a program name with arguments.
19131compiler=$CC
19132
19133
19134# save warnings/boilerplate of simple test code
19135ac_outfile=conftest.$ac_objext
ac40fd9e 19136echo "$lt_simple_compile_test_code" >conftest.$ac_ext
d9898ee8 19137eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19138_lt_compiler_boilerplate=`cat conftest.err`
19139$rm conftest*
19140
19141ac_outfile=conftest.$ac_objext
ac40fd9e 19142echo "$lt_simple_link_test_code" >conftest.$ac_ext
d9898ee8 19143eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19144_lt_linker_boilerplate=`cat conftest.err`
19145$rm conftest*
19146
19147
19148# Allow CC to be a program name with arguments.
19149lt_save_CC="$CC"
19150CC=${RC-"windres"}
19151compiler=$CC
19152compiler_RC=$CC
19153for cc_temp in $compiler""; do
19154 case $cc_temp in
19155 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19156 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19157 \-*) ;;
19158 *) break;;
19159 esac
19160done
19161cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19162
19163lt_cv_prog_compiler_c_o_RC=yes
19164
19165# The else clause should only fire when bootstrapping the
19166# libtool distribution, otherwise you forgot to ship ltmain.sh
19167# with your package, and you will get complaints that there are
19168# no rules to generate ltmain.sh.
19169if test -f "$ltmain"; then
19170 # See if we are running on zsh, and set the options which allow our commands through
19171 # without removal of \ escapes.
19172 if test -n "${ZSH_VERSION+set}" ; then
19173 setopt NO_GLOB_SUBST
19174 fi
19175 # Now quote all the things that may contain metacharacters while being
19176 # careful not to overquote the AC_SUBSTed values. We take copies of the
19177 # variables and quote the copies for generation of the libtool script.
19178 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19179 SED SHELL STRIP \
19180 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19181 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19182 deplibs_check_method reload_flag reload_cmds need_locks \
19183 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19184 lt_cv_sys_global_symbol_to_c_name_address \
19185 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19186 old_postinstall_cmds old_postuninstall_cmds \
19187 compiler_RC \
19188 CC_RC \
19189 LD_RC \
19190 lt_prog_compiler_wl_RC \
19191 lt_prog_compiler_pic_RC \
19192 lt_prog_compiler_static_RC \
19193 lt_prog_compiler_no_builtin_flag_RC \
19194 export_dynamic_flag_spec_RC \
19195 thread_safe_flag_spec_RC \
19196 whole_archive_flag_spec_RC \
19197 enable_shared_with_static_runtimes_RC \
19198 old_archive_cmds_RC \
19199 old_archive_from_new_cmds_RC \
19200 predep_objects_RC \
19201 postdep_objects_RC \
19202 predeps_RC \
19203 postdeps_RC \
19204 compiler_lib_search_path_RC \
19205 archive_cmds_RC \
19206 archive_expsym_cmds_RC \
19207 postinstall_cmds_RC \
19208 postuninstall_cmds_RC \
19209 old_archive_from_expsyms_cmds_RC \
19210 allow_undefined_flag_RC \
19211 no_undefined_flag_RC \
19212 export_symbols_cmds_RC \
19213 hardcode_libdir_flag_spec_RC \
19214 hardcode_libdir_flag_spec_ld_RC \
19215 hardcode_libdir_separator_RC \
19216 hardcode_automatic_RC \
19217 module_cmds_RC \
19218 module_expsym_cmds_RC \
19219 lt_cv_prog_compiler_c_o_RC \
ac40fd9e 19220 fix_srcfile_path_RC \
d9898ee8 19221 exclude_expsyms_RC \
19222 include_expsyms_RC; do
19223
19224 case $var in
19225 old_archive_cmds_RC | \
19226 old_archive_from_new_cmds_RC | \
19227 archive_cmds_RC | \
19228 archive_expsym_cmds_RC | \
19229 module_cmds_RC | \
19230 module_expsym_cmds_RC | \
19231 old_archive_from_expsyms_cmds_RC | \
19232 export_symbols_cmds_RC | \
19233 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19234 postinstall_cmds | postuninstall_cmds | \
19235 old_postinstall_cmds | old_postuninstall_cmds | \
19236 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19237 # Double-quote double-evaled strings.
19238 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19239 ;;
19240 *)
19241 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19242 ;;
19243 esac
19244 done
19245
19246 case $lt_echo in
19247 *'\$0 --fallback-echo"')
19248 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19249 ;;
19250 esac
19251
19252cfgfile="$ofile"
19253
19254 cat <<__EOF__ >> "$cfgfile"
19255# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19256
19257# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19258
19259# Shell to use when invoking shell scripts.
19260SHELL=$lt_SHELL
19261
19262# Whether or not to build shared libraries.
19263build_libtool_libs=$enable_shared
19264
19265# Whether or not to build static libraries.
19266build_old_libs=$enable_static
19267
19268# Whether or not to add -lc for building shared libraries.
19269build_libtool_need_lc=$archive_cmds_need_lc_RC
19270
19271# Whether or not to disallow shared libs when runtime libs are static
19272allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19273
19274# Whether or not to optimize for fast installation.
19275fast_install=$enable_fast_install
19276
19277# The host system.
19278host_alias=$host_alias
19279host=$host
19280host_os=$host_os
19281
19282# The build system.
19283build_alias=$build_alias
19284build=$build
19285build_os=$build_os
19286
19287# An echo program that does not interpret backslashes.
19288echo=$lt_echo
19289
19290# The archiver.
19291AR=$lt_AR
19292AR_FLAGS=$lt_AR_FLAGS
19293
19294# A C compiler.
19295LTCC=$lt_LTCC
19296
19297# LTCC compiler flags.
19298LTCFLAGS=$lt_LTCFLAGS
19299
19300# A language-specific compiler.
19301CC=$lt_compiler_RC
19302
19303# Is the compiler the GNU C compiler?
19304with_gcc=$GCC_RC
19305
d9898ee8 19306# An ERE matcher.
19307EGREP=$lt_EGREP
19308
19309# The linker used to build libraries.
19310LD=$lt_LD_RC
19311
19312# Whether we need hard or soft links.
19313LN_S=$lt_LN_S
19314
19315# A BSD-compatible nm program.
19316NM=$lt_NM
19317
19318# A symbol stripping program
19319STRIP=$lt_STRIP
19320
19321# Used to examine libraries when file_magic_cmd begins "file"
19322MAGIC_CMD=$MAGIC_CMD
19323
19324# Used on cygwin: DLL creation program.
19325DLLTOOL="$DLLTOOL"
19326
19327# Used on cygwin: object dumper.
19328OBJDUMP="$OBJDUMP"
19329
19330# Used on cygwin: assembler.
19331AS="$AS"
19332
19333# The name of the directory that contains temporary libtool files.
19334objdir=$objdir
19335
19336# How to create reloadable object files.
19337reload_flag=$lt_reload_flag
19338reload_cmds=$lt_reload_cmds
19339
19340# How to pass a linker flag through the compiler.
19341wl=$lt_lt_prog_compiler_wl_RC
19342
19343# Object file suffix (normally "o").
19344objext="$ac_objext"
19345
19346# Old archive suffix (normally "a").
19347libext="$libext"
19348
19349# Shared library suffix (normally ".so").
19350shrext_cmds='$shrext_cmds'
19351
19352# Executable file suffix (normally "").
19353exeext="$exeext"
19354
19355# Additional compiler flags for building library objects.
19356pic_flag=$lt_lt_prog_compiler_pic_RC
19357pic_mode=$pic_mode
19358
19359# What is the maximum length of a command?
19360max_cmd_len=$lt_cv_sys_max_cmd_len
19361
19362# Does compiler simultaneously support -c and -o options?
19363compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19364
19365# Must we lock files when doing compilation?
19366need_locks=$lt_need_locks
19367
19368# Do we need the lib prefix for modules?
19369need_lib_prefix=$need_lib_prefix
19370
19371# Do we need a version for libraries?
19372need_version=$need_version
19373
19374# Whether dlopen is supported.
19375dlopen_support=$enable_dlopen
19376
19377# Whether dlopen of programs is supported.
19378dlopen_self=$enable_dlopen_self
19379
19380# Whether dlopen of statically linked programs is supported.
19381dlopen_self_static=$enable_dlopen_self_static
19382
19383# Compiler flag to prevent dynamic linking.
19384link_static_flag=$lt_lt_prog_compiler_static_RC
19385
19386# Compiler flag to turn off builtin functions.
19387no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19388
19389# Compiler flag to allow reflexive dlopens.
19390export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19391
19392# Compiler flag to generate shared objects directly from archives.
19393whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19394
19395# Compiler flag to generate thread-safe objects.
19396thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19397
19398# Library versioning type.
19399version_type=$version_type
19400
19401# Format of library name prefix.
19402libname_spec=$lt_libname_spec
19403
19404# List of archive names. First name is the real one, the rest are links.
19405# The last name is the one that the linker finds with -lNAME.
19406library_names_spec=$lt_library_names_spec
19407
19408# The coded name of the library, if different from the real name.
19409soname_spec=$lt_soname_spec
19410
19411# Commands used to build and install an old-style archive.
19412RANLIB=$lt_RANLIB
19413old_archive_cmds=$lt_old_archive_cmds_RC
19414old_postinstall_cmds=$lt_old_postinstall_cmds
19415old_postuninstall_cmds=$lt_old_postuninstall_cmds
19416
19417# Create an old-style archive from a shared archive.
19418old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19419
19420# Create a temporary old-style archive to link instead of a shared archive.
19421old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19422
19423# Commands used to build and install a shared archive.
19424archive_cmds=$lt_archive_cmds_RC
19425archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19426postinstall_cmds=$lt_postinstall_cmds
19427postuninstall_cmds=$lt_postuninstall_cmds
19428
19429# Commands used to build a loadable module (assumed same as above if empty)
19430module_cmds=$lt_module_cmds_RC
19431module_expsym_cmds=$lt_module_expsym_cmds_RC
19432
19433# Commands to strip libraries.
19434old_striplib=$lt_old_striplib
19435striplib=$lt_striplib
19436
19437# Dependencies to place before the objects being linked to create a
19438# shared library.
dd184caf 19439predep_objects=$lt_predep_objects_RC
d9898ee8 19440
19441# Dependencies to place after the objects being linked to create a
19442# shared library.
dd184caf 19443postdep_objects=$lt_postdep_objects_RC
d9898ee8 19444
19445# Dependencies to place before the objects being linked to create a
19446# shared library.
19447predeps=$lt_predeps_RC
19448
19449# Dependencies to place after the objects being linked to create a
19450# shared library.
19451postdeps=$lt_postdeps_RC
19452
19453# The library search path used internally by the compiler when linking
19454# a shared library.
dd184caf 19455compiler_lib_search_path=$lt_compiler_lib_search_path_RC
d9898ee8 19456
19457# Method to check whether dependent libraries are shared objects.
19458deplibs_check_method=$lt_deplibs_check_method
19459
19460# Command to use when deplibs_check_method == file_magic.
19461file_magic_cmd=$lt_file_magic_cmd
19462
19463# Flag that allows shared libraries with undefined symbols to be built.
19464allow_undefined_flag=$lt_allow_undefined_flag_RC
19465
19466# Flag that forces no undefined symbols.
19467no_undefined_flag=$lt_no_undefined_flag_RC
19468
19469# Commands used to finish a libtool library installation in a directory.
19470finish_cmds=$lt_finish_cmds
19471
19472# Same as above, but a single script fragment to be evaled but not shown.
19473finish_eval=$lt_finish_eval
19474
19475# Take the output of nm and produce a listing of raw symbols and C names.
19476global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19477
19478# Transform the output of nm in a proper C declaration
19479global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19480
19481# Transform the output of nm in a C name address pair
19482global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19483
19484# This is the shared library runtime path variable.
19485runpath_var=$runpath_var
19486
19487# This is the shared library path variable.
19488shlibpath_var=$shlibpath_var
19489
19490# Is shlibpath searched before the hard-coded library search path?
19491shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19492
19493# How to hardcode a shared library path into an executable.
19494hardcode_action=$hardcode_action_RC
19495
19496# Whether we should hardcode library paths into libraries.
19497hardcode_into_libs=$hardcode_into_libs
19498
19499# Flag to hardcode \$libdir into a binary during linking.
19500# This must work even if \$libdir does not exist.
19501hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19502
19503# If ld is used when linking, flag to hardcode \$libdir into
19504# a binary during linking. This must work even if \$libdir does
19505# not exist.
19506hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19507
19508# Whether we need a single -rpath flag with a separated argument.
19509hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19510
19511# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19512# resulting binary.
19513hardcode_direct=$hardcode_direct_RC
19514
19515# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19516# resulting binary.
19517hardcode_minus_L=$hardcode_minus_L_RC
19518
19519# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19520# the resulting binary.
19521hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19522
19523# Set to yes if building a shared library automatically hardcodes DIR into the library
19524# and all subsequent libraries and executables linked against it.
19525hardcode_automatic=$hardcode_automatic_RC
19526
19527# Variables whose values should be saved in libtool wrapper scripts and
19528# restored at relink time.
19529variables_saved_for_relink="$variables_saved_for_relink"
19530
19531# Whether libtool must link a program against all its dependency libraries.
19532link_all_deplibs=$link_all_deplibs_RC
19533
19534# Compile-time system search path for libraries
dd184caf 19535sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
d9898ee8 19536
19537# Run-time system search path for libraries
19538sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19539
19540# Fix the shell variable \$srcfile for the compiler.
ac40fd9e 19541fix_srcfile_path=$lt_fix_srcfile_path
d9898ee8 19542
19543# Set to yes if exported symbols are required.
19544always_export_symbols=$always_export_symbols_RC
19545
19546# The commands to list exported symbols.
19547export_symbols_cmds=$lt_export_symbols_cmds_RC
19548
19549# The commands to extract the exported symbol list from a shared archive.
19550extract_expsyms_cmds=$lt_extract_expsyms_cmds
19551
19552# Symbols that should not be listed in the preloaded symbols.
19553exclude_expsyms=$lt_exclude_expsyms_RC
19554
19555# Symbols that must always be exported.
19556include_expsyms=$lt_include_expsyms_RC
19557
19558# ### END LIBTOOL TAG CONFIG: $tagname
19559
19560__EOF__
19561
19562
19563else
19564 # If there is no Makefile yet, we rely on a make rule to execute
19565 # `config.status --recheck' to rerun these tests and create the
19566 # libtool script then.
19567 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19568 if test -f "$ltmain_in"; then
19569 test -f Makefile && make "$ltmain"
19570 fi
19571fi
19572
19573
19574ac_ext=c
19575ac_cpp='$CPP $CPPFLAGS'
19576ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19577ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19578ac_compiler_gnu=$ac_cv_c_compiler_gnu
19579
19580CC="$lt_save_CC"
19581
19582 ;;
19583
19584 *)
19585 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19586echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19587 { (exit 1); exit 1; }; }
19588 ;;
19589 esac
19590
19591 # Append the new tag name to the list of available tags.
19592 if test -n "$tagname" ; then
19593 available_tags="$available_tags $tagname"
19594 fi
19595 fi
19596 done
19597 IFS="$lt_save_ifs"
19598
19599 # Now substitute the updated list of available tags.
19600 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19601 mv "${ofile}T" "$ofile"
19602 chmod +x "$ofile"
19603 else
19604 rm -f "${ofile}T"
19605 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19606echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19607 { (exit 1); exit 1; }; }
19608 fi
19609fi
19610
19611
19612
19613# This can be used to rebuild libtool when needed
19614LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19615
19616# Always use our own libtool.
19617LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19618
19619# Prevent multiple expansion
19620
19621
19622
19623
19624
19625
19626
19627
19628
19629
19630
19631
19632
19633
19634
19635
19636
19637
19638
19639
19640
19641
19642saveLIBS="$LIBS"
dd184caf 19643{ echo "$as_me:$LINENO: checking for gdbm_open in -lgdbm" >&5
19644echo $ECHO_N "checking for gdbm_open in -lgdbm... $ECHO_C" >&6; }
d9898ee8 19645if test "${ac_cv_lib_gdbm_gdbm_open+set}" = set; then
19646 echo $ECHO_N "(cached) $ECHO_C" >&6
19647else
19648 ac_check_lib_save_LIBS=$LIBS
19649LIBS="-lgdbm $LIBS"
19650cat >conftest.$ac_ext <<_ACEOF
19651/* confdefs.h. */
19652_ACEOF
19653cat confdefs.h >>conftest.$ac_ext
19654cat >>conftest.$ac_ext <<_ACEOF
19655/* end confdefs.h. */
19656
dd184caf 19657/* Override any GCC internal prototype to avoid an error.
19658 Use char because int might match the return type of a GCC
19659 builtin and then its argument prototype would still apply. */
d9898ee8 19660#ifdef __cplusplus
19661extern "C"
19662#endif
d9898ee8 19663char gdbm_open ();
19664int
19665main ()
19666{
dd184caf 19667return gdbm_open ();
d9898ee8 19668 ;
19669 return 0;
19670}
19671_ACEOF
19672rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 19673if { (ac_try="$ac_link"
19674case "(($ac_try" in
19675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19676 *) ac_try_echo=$ac_try;;
19677esac
19678eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19679 (eval "$ac_link") 2>conftest.er1
d9898ee8 19680 ac_status=$?
19681 grep -v '^ *+' conftest.er1 >conftest.err
19682 rm -f conftest.er1
19683 cat conftest.err >&5
19684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 19685 (exit $ac_status); } && {
19686 test -z "$ac_c_werror_flag" ||
19687 test ! -s conftest.err
19688 } && test -s conftest$ac_exeext &&
19689 $as_test_x conftest$ac_exeext; then
d9898ee8 19690 ac_cv_lib_gdbm_gdbm_open=yes
19691else
19692 echo "$as_me: failed program was:" >&5
19693sed 's/^/| /' conftest.$ac_ext >&5
19694
dd184caf 19695 ac_cv_lib_gdbm_gdbm_open=no
d9898ee8 19696fi
dd184caf 19697
19698rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 19699 conftest$ac_exeext conftest.$ac_ext
19700LIBS=$ac_check_lib_save_LIBS
19701fi
dd184caf 19702{ echo "$as_me:$LINENO: result: $ac_cv_lib_gdbm_gdbm_open" >&5
19703echo "${ECHO_T}$ac_cv_lib_gdbm_gdbm_open" >&6; }
d9898ee8 19704if test $ac_cv_lib_gdbm_gdbm_open = yes; then
19705 LIBGDBM=-lgdbm ; LIBS="-lgdbm $LIBS"
19706fi
19707
19708
dd184caf 19709{ echo "$as_me:$LINENO: checking for gdbm_open" >&5
19710echo $ECHO_N "checking for gdbm_open... $ECHO_C" >&6; }
d9898ee8 19711if test "${ac_cv_func_gdbm_open+set}" = set; then
19712 echo $ECHO_N "(cached) $ECHO_C" >&6
19713else
19714 cat >conftest.$ac_ext <<_ACEOF
19715/* confdefs.h. */
19716_ACEOF
19717cat confdefs.h >>conftest.$ac_ext
19718cat >>conftest.$ac_ext <<_ACEOF
19719/* end confdefs.h. */
19720/* Define gdbm_open to an innocuous variant, in case <limits.h> declares gdbm_open.
19721 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19722#define gdbm_open innocuous_gdbm_open
19723
19724/* System header to define __stub macros and hopefully few prototypes,
19725 which can conflict with char gdbm_open (); below.
19726 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19727 <limits.h> exists even on freestanding compilers. */
19728
19729#ifdef __STDC__
19730# include <limits.h>
19731#else
19732# include <assert.h>
19733#endif
19734
19735#undef gdbm_open
19736
dd184caf 19737/* Override any GCC internal prototype to avoid an error.
19738 Use char because int might match the return type of a GCC
19739 builtin and then its argument prototype would still apply. */
d9898ee8 19740#ifdef __cplusplus
19741extern "C"
d9898ee8 19742#endif
d9898ee8 19743char gdbm_open ();
19744/* The GNU C library defines this for functions which it implements
19745 to always fail with ENOSYS. Some functions are actually named
19746 something starting with __ and the normal name is an alias. */
dd184caf 19747#if defined __stub_gdbm_open || defined __stub___gdbm_open
d9898ee8 19748choke me
d9898ee8 19749#endif
19750
19751int
19752main ()
19753{
dd184caf 19754return gdbm_open ();
d9898ee8 19755 ;
19756 return 0;
19757}
19758_ACEOF
19759rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 19760if { (ac_try="$ac_link"
19761case "(($ac_try" in
19762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19763 *) ac_try_echo=$ac_try;;
19764esac
19765eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19766 (eval "$ac_link") 2>conftest.er1
d9898ee8 19767 ac_status=$?
19768 grep -v '^ *+' conftest.er1 >conftest.err
19769 rm -f conftest.er1
19770 cat conftest.err >&5
19771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 19772 (exit $ac_status); } && {
19773 test -z "$ac_c_werror_flag" ||
19774 test ! -s conftest.err
19775 } && test -s conftest$ac_exeext &&
19776 $as_test_x conftest$ac_exeext; then
d9898ee8 19777 ac_cv_func_gdbm_open=yes
19778else
19779 echo "$as_me: failed program was:" >&5
19780sed 's/^/| /' conftest.$ac_ext >&5
19781
dd184caf 19782 ac_cv_func_gdbm_open=no
d9898ee8 19783fi
dd184caf 19784
19785rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 19786 conftest$ac_exeext conftest.$ac_ext
19787fi
dd184caf 19788{ echo "$as_me:$LINENO: result: $ac_cv_func_gdbm_open" >&5
19789echo "${ECHO_T}$ac_cv_func_gdbm_open" >&6; }
d9898ee8 19790if test $ac_cv_func_gdbm_open = yes; then
19791 FOUND_GDBM=1
19792else
19793 FOUND_GDBM=0
19794fi
19795
19796
19797if test "$FOUND_GDBM" = 1
19798then
19799
19800for ac_func in gdbm_fdesc
19801do
19802as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
dd184caf 19803{ echo "$as_me:$LINENO: checking for $ac_func" >&5
19804echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19805if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 19806 echo $ECHO_N "(cached) $ECHO_C" >&6
19807else
19808 cat >conftest.$ac_ext <<_ACEOF
19809/* confdefs.h. */
19810_ACEOF
19811cat confdefs.h >>conftest.$ac_ext
19812cat >>conftest.$ac_ext <<_ACEOF
19813/* end confdefs.h. */
19814/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19815 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19816#define $ac_func innocuous_$ac_func
19817
19818/* System header to define __stub macros and hopefully few prototypes,
19819 which can conflict with char $ac_func (); below.
19820 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19821 <limits.h> exists even on freestanding compilers. */
19822
19823#ifdef __STDC__
19824# include <limits.h>
19825#else
19826# include <assert.h>
19827#endif
19828
19829#undef $ac_func
19830
dd184caf 19831/* Override any GCC internal prototype to avoid an error.
19832 Use char because int might match the return type of a GCC
19833 builtin and then its argument prototype would still apply. */
d9898ee8 19834#ifdef __cplusplus
19835extern "C"
d9898ee8 19836#endif
d9898ee8 19837char $ac_func ();
19838/* The GNU C library defines this for functions which it implements
19839 to always fail with ENOSYS. Some functions are actually named
19840 something starting with __ and the normal name is an alias. */
dd184caf 19841#if defined __stub_$ac_func || defined __stub___$ac_func
d9898ee8 19842choke me
d9898ee8 19843#endif
19844
19845int
19846main ()
19847{
dd184caf 19848return $ac_func ();
d9898ee8 19849 ;
19850 return 0;
19851}
19852_ACEOF
19853rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 19854if { (ac_try="$ac_link"
19855case "(($ac_try" in
19856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19857 *) ac_try_echo=$ac_try;;
19858esac
19859eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19860 (eval "$ac_link") 2>conftest.er1
d9898ee8 19861 ac_status=$?
19862 grep -v '^ *+' conftest.er1 >conftest.err
19863 rm -f conftest.er1
19864 cat conftest.err >&5
19865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 19866 (exit $ac_status); } && {
19867 test -z "$ac_c_werror_flag" ||
19868 test ! -s conftest.err
19869 } && test -s conftest$ac_exeext &&
19870 $as_test_x conftest$ac_exeext; then
d9898ee8 19871 eval "$as_ac_var=yes"
19872else
19873 echo "$as_me: failed program was:" >&5
19874sed 's/^/| /' conftest.$ac_ext >&5
19875
dd184caf 19876 eval "$as_ac_var=no"
d9898ee8 19877fi
dd184caf 19878
19879rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 19880 conftest$ac_exeext conftest.$ac_ext
19881fi
dd184caf 19882ac_res=`eval echo '${'$as_ac_var'}'`
19883 { echo "$as_me:$LINENO: result: $ac_res" >&5
19884echo "${ECHO_T}$ac_res" >&6; }
d9898ee8 19885if test `eval echo '${'$as_ac_var'}'` = yes; then
19886 cat >>confdefs.h <<_ACEOF
19887#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19888_ACEOF
19889
19890fi
19891done
19892
19893fi
19894
19895
19896for ac_header in unistd.h fcntl.h
19897do
19898as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
dd184caf 19899if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19900 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19901echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19902if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 19903 echo $ECHO_N "(cached) $ECHO_C" >&6
19904fi
dd184caf 19905ac_res=`eval echo '${'$as_ac_Header'}'`
19906 { echo "$as_me:$LINENO: result: $ac_res" >&5
19907echo "${ECHO_T}$ac_res" >&6; }
d9898ee8 19908else
19909 # Is the header compilable?
dd184caf 19910{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
19911echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
d9898ee8 19912cat >conftest.$ac_ext <<_ACEOF
19913/* confdefs.h. */
19914_ACEOF
19915cat confdefs.h >>conftest.$ac_ext
19916cat >>conftest.$ac_ext <<_ACEOF
19917/* end confdefs.h. */
19918$ac_includes_default
19919#include <$ac_header>
19920_ACEOF
19921rm -f conftest.$ac_objext
dd184caf 19922if { (ac_try="$ac_compile"
19923case "(($ac_try" in
19924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19925 *) ac_try_echo=$ac_try;;
19926esac
19927eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19928 (eval "$ac_compile") 2>conftest.er1
d9898ee8 19929 ac_status=$?
19930 grep -v '^ *+' conftest.er1 >conftest.err
19931 rm -f conftest.er1
19932 cat conftest.err >&5
19933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 19934 (exit $ac_status); } && {
19935 test -z "$ac_c_werror_flag" ||
19936 test ! -s conftest.err
19937 } && test -s conftest.$ac_objext; then
d9898ee8 19938 ac_header_compiler=yes
19939else
19940 echo "$as_me: failed program was:" >&5
19941sed 's/^/| /' conftest.$ac_ext >&5
19942
dd184caf 19943 ac_header_compiler=no
d9898ee8 19944fi
dd184caf 19945
19946rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19947{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19948echo "${ECHO_T}$ac_header_compiler" >&6; }
d9898ee8 19949
19950# Is the header present?
dd184caf 19951{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
19952echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
d9898ee8 19953cat >conftest.$ac_ext <<_ACEOF
19954/* confdefs.h. */
19955_ACEOF
19956cat confdefs.h >>conftest.$ac_ext
19957cat >>conftest.$ac_ext <<_ACEOF
19958/* end confdefs.h. */
19959#include <$ac_header>
19960_ACEOF
dd184caf 19961if { (ac_try="$ac_cpp conftest.$ac_ext"
19962case "(($ac_try" in
19963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19964 *) ac_try_echo=$ac_try;;
19965esac
19966eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19967 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 19968 ac_status=$?
19969 grep -v '^ *+' conftest.er1 >conftest.err
19970 rm -f conftest.er1
19971 cat conftest.err >&5
19972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 19973 (exit $ac_status); } >/dev/null && {
19974 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19975 test ! -s conftest.err
19976 }; then
d9898ee8 19977 ac_header_preproc=yes
19978else
19979 echo "$as_me: failed program was:" >&5
19980sed 's/^/| /' conftest.$ac_ext >&5
19981
19982 ac_header_preproc=no
19983fi
dd184caf 19984
d9898ee8 19985rm -f conftest.err conftest.$ac_ext
dd184caf 19986{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19987echo "${ECHO_T}$ac_header_preproc" >&6; }
d9898ee8 19988
19989# So? What about this header?
19990case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19991 yes:no: )
19992 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19993echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19994 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19995echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19996 ac_header_preproc=yes
19997 ;;
19998 no:yes:* )
19999 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20000echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20001 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20002echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20003 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20004echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20005 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20006echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20007 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20008echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20009 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20010echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
dd184caf 20011 ( cat <<\_ASBOX
d9898ee8 20012## -------------------------------------------------- ##
20013## Report this to courier-users@lists.sourceforge.net ##
20014## -------------------------------------------------- ##
20015_ASBOX
dd184caf 20016 ) | sed "s/^/$as_me: WARNING: /" >&2
d9898ee8 20017 ;;
20018esac
dd184caf 20019{ echo "$as_me:$LINENO: checking for $ac_header" >&5
20020echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20021if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 20022 echo $ECHO_N "(cached) $ECHO_C" >&6
20023else
20024 eval "$as_ac_Header=\$ac_header_preproc"
20025fi
dd184caf 20026ac_res=`eval echo '${'$as_ac_Header'}'`
20027 { echo "$as_me:$LINENO: result: $ac_res" >&5
20028echo "${ECHO_T}$ac_res" >&6; }
d9898ee8 20029
20030fi
20031if test `eval echo '${'$as_ac_Header'}'` = yes; then
20032 cat >>confdefs.h <<_ACEOF
20033#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20034_ACEOF
20035
20036fi
20037
20038done
20039
20040
20041LIBS="$saveLIBS"
20042
20043
20044
dd184caf 20045 if test "$FOUND_GDBM" = 1; then
d9898ee8 20046 FOUND_GDBM_TRUE=
20047 FOUND_GDBM_FALSE='#'
20048else
20049 FOUND_GDBM_TRUE='#'
20050 FOUND_GDBM_FALSE=
20051fi
20052
20053
20054
dd184caf 20055{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20056echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
d9898ee8 20057if test "${ac_cv_c_const+set}" = set; then
20058 echo $ECHO_N "(cached) $ECHO_C" >&6
20059else
20060 cat >conftest.$ac_ext <<_ACEOF
20061/* confdefs.h. */
20062_ACEOF
20063cat confdefs.h >>conftest.$ac_ext
20064cat >>conftest.$ac_ext <<_ACEOF
20065/* end confdefs.h. */
20066
20067int
20068main ()
20069{
20070/* FIXME: Include the comments suggested by Paul. */
20071#ifndef __cplusplus
20072 /* Ultrix mips cc rejects this. */
20073 typedef int charset[2];
dd184caf 20074 const charset cs;
d9898ee8 20075 /* SunOS 4.1.1 cc rejects this. */
dd184caf 20076 char const *const *pcpcc;
20077 char **ppc;
d9898ee8 20078 /* NEC SVR4.0.2 mips cc rejects this. */
20079 struct point {int x, y;};
20080 static struct point const zero = {0,0};
20081 /* AIX XL C 1.02.0.0 rejects this.
20082 It does not let you subtract one const X* pointer from another in
20083 an arm of an if-expression whose if-part is not a constant
20084 expression */
20085 const char *g = "string";
dd184caf 20086 pcpcc = &g + (g ? g-g : 0);
d9898ee8 20087 /* HPUX 7.0 cc rejects these. */
dd184caf 20088 ++pcpcc;
20089 ppc = (char**) pcpcc;
20090 pcpcc = (char const *const *) ppc;
d9898ee8 20091 { /* SCO 3.2v4 cc rejects this. */
20092 char *t;
20093 char const *s = 0 ? (char *) 0 : (char const *) 0;
20094
20095 *t++ = 0;
dd184caf 20096 if (s) return 0;
d9898ee8 20097 }
20098 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20099 int x[] = {25, 17};
20100 const int *foo = &x[0];
20101 ++foo;
20102 }
20103 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20104 typedef const int *iptr;
20105 iptr p = 0;
20106 ++p;
20107 }
20108 { /* AIX XL C 1.02.0.0 rejects this saying
20109 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20110 struct s { int j; const int *ap[3]; };
20111 struct s *b; b->j = 5;
20112 }
20113 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20114 const int foo = 10;
dd184caf 20115 if (!foo) return 0;
d9898ee8 20116 }
dd184caf 20117 return !cs[0] && !zero.x;
d9898ee8 20118#endif
20119
20120 ;
20121 return 0;
20122}
20123_ACEOF
20124rm -f conftest.$ac_objext
dd184caf 20125if { (ac_try="$ac_compile"
20126case "(($ac_try" in
20127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20128 *) ac_try_echo=$ac_try;;
20129esac
20130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20131 (eval "$ac_compile") 2>conftest.er1
d9898ee8 20132 ac_status=$?
20133 grep -v '^ *+' conftest.er1 >conftest.err
20134 rm -f conftest.er1
20135 cat conftest.err >&5
20136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 20137 (exit $ac_status); } && {
20138 test -z "$ac_c_werror_flag" ||
20139 test ! -s conftest.err
20140 } && test -s conftest.$ac_objext; then
d9898ee8 20141 ac_cv_c_const=yes
20142else
20143 echo "$as_me: failed program was:" >&5
20144sed 's/^/| /' conftest.$ac_ext >&5
20145
dd184caf 20146 ac_cv_c_const=no
d9898ee8 20147fi
dd184caf 20148
20149rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 20150fi
dd184caf 20151{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20152echo "${ECHO_T}$ac_cv_c_const" >&6; }
d9898ee8 20153if test $ac_cv_c_const = no; then
20154
20155cat >>confdefs.h <<\_ACEOF
20156#define const
20157_ACEOF
20158
20159fi
20160
dd184caf 20161{ echo "$as_me:$LINENO: checking for size_t" >&5
20162echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
d9898ee8 20163if test "${ac_cv_type_size_t+set}" = set; then
20164 echo $ECHO_N "(cached) $ECHO_C" >&6
20165else
20166 cat >conftest.$ac_ext <<_ACEOF
20167/* confdefs.h. */
20168_ACEOF
20169cat confdefs.h >>conftest.$ac_ext
20170cat >>conftest.$ac_ext <<_ACEOF
20171/* end confdefs.h. */
20172$ac_includes_default
dd184caf 20173typedef size_t ac__type_new_;
d9898ee8 20174int
20175main ()
20176{
dd184caf 20177if ((ac__type_new_ *) 0)
d9898ee8 20178 return 0;
dd184caf 20179if (sizeof (ac__type_new_))
d9898ee8 20180 return 0;
20181 ;
20182 return 0;
20183}
20184_ACEOF
20185rm -f conftest.$ac_objext
dd184caf 20186if { (ac_try="$ac_compile"
20187case "(($ac_try" in
20188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20189 *) ac_try_echo=$ac_try;;
20190esac
20191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20192 (eval "$ac_compile") 2>conftest.er1
d9898ee8 20193 ac_status=$?
20194 grep -v '^ *+' conftest.er1 >conftest.err
20195 rm -f conftest.er1
20196 cat conftest.err >&5
20197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 20198 (exit $ac_status); } && {
20199 test -z "$ac_c_werror_flag" ||
20200 test ! -s conftest.err
20201 } && test -s conftest.$ac_objext; then
d9898ee8 20202 ac_cv_type_size_t=yes
20203else
20204 echo "$as_me: failed program was:" >&5
20205sed 's/^/| /' conftest.$ac_ext >&5
20206
dd184caf 20207 ac_cv_type_size_t=no
d9898ee8 20208fi
dd184caf 20209
20210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 20211fi
dd184caf 20212{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20213echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
d9898ee8 20214if test $ac_cv_type_size_t = yes; then
20215 :
20216else
20217
20218cat >>confdefs.h <<_ACEOF
dd184caf 20219#define size_t unsigned int
d9898ee8 20220_ACEOF
20221
20222fi
20223
20224
20225
dd184caf 20226ac_ext=cpp
d9898ee8 20227ac_cpp='$CXXCPP $CPPFLAGS'
20228ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20229ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20230ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20231
dd184caf 20232{ echo "$as_me:$LINENO: checking if the C++ compiler needs -fhandle-exceptions" >&5
20233echo $ECHO_N "checking if the C++ compiler needs -fhandle-exceptions... $ECHO_C" >&6; }
d9898ee8 20234if test "${ac_cxx_need_handlexceptions+set}" = set; then
20235 echo $ECHO_N "(cached) $ECHO_C" >&6
20236else
20237 cat >conftest.$ac_ext <<_ACEOF
20238/* confdefs.h. */
20239_ACEOF
20240cat confdefs.h >>conftest.$ac_ext
20241cat >>conftest.$ac_ext <<_ACEOF
20242/* end confdefs.h. */
20243
20244int
20245main ()
20246{
20247
20248throw;
20249
20250 ;
20251 return 0;
20252}
20253_ACEOF
20254rm -f conftest.$ac_objext
dd184caf 20255if { (ac_try="$ac_compile"
20256case "(($ac_try" in
20257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20258 *) ac_try_echo=$ac_try;;
20259esac
20260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20261 (eval "$ac_compile") 2>conftest.er1
d9898ee8 20262 ac_status=$?
20263 grep -v '^ *+' conftest.er1 >conftest.err
20264 rm -f conftest.er1
20265 cat conftest.err >&5
20266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 20267 (exit $ac_status); } && {
20268 test -z "$ac_cxx_werror_flag" ||
20269 test ! -s conftest.err
20270 } && test -s conftest.$ac_objext; then
d9898ee8 20271 ac_cxx_need_handlexceptions=no
20272else
20273 echo "$as_me: failed program was:" >&5
20274sed 's/^/| /' conftest.$ac_ext >&5
20275
dd184caf 20276 ac_cxx_need_handlexceptions=yes
d9898ee8 20277fi
dd184caf 20278
20279rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 20280
20281fi
dd184caf 20282{ echo "$as_me:$LINENO: result: $ac_cxx_need_handlexceptions" >&5
20283echo "${ECHO_T}$ac_cxx_need_handlexceptions" >&6; }
d9898ee8 20284
20285if test "$ac_cxx_need_handlexceptions" = "yes"
20286then
20287 case "$CXXFLAGS" in
20288 *handle-exceptions*)
20289 ;;
20290 *)
20291 CXXFLAGS="-fhandle-exceptions $CXXFLAGS"
20292 CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-O2//'`
20293 ;;
20294 esac
20295fi
20296
dd184caf 20297ac_config_files="$ac_config_files Makefile"
20298
d9898ee8 20299cat >confcache <<\_ACEOF
20300# This file is a shell script that caches the results of configure
20301# tests run on this system so they can be shared between configure
20302# scripts and configure runs, see configure's option --config-cache.
20303# It is not useful on other systems. If it contains results you don't
20304# want to keep, you may remove or edit it.
20305#
20306# config.status only pays attention to the cache file if you give it
20307# the --recheck option to rerun configure.
20308#
20309# `ac_cv_env_foo' variables (set or unset) will be overridden when
20310# loading this file, other *unset* `ac_cv_foo' will be assigned the
20311# following values.
20312
20313_ACEOF
20314
20315# The following way of writing the cache mishandles newlines in values,
20316# but we know of no workaround that is simple, portable, and efficient.
dd184caf 20317# So, we kill variables containing newlines.
d9898ee8 20318# Ultrix sh set writes to stderr and can't be redirected directly,
20319# and sets the high bit in the cache file unless we assign to the vars.
dd184caf 20320(
20321 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20322 eval ac_val=\$$ac_var
20323 case $ac_val in #(
20324 *${as_nl}*)
20325 case $ac_var in #(
20326 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20327echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20328 esac
20329 case $ac_var in #(
20330 _ | IFS | as_nl) ;; #(
20331 *) $as_unset $ac_var ;;
20332 esac ;;
20333 esac
20334 done
20335
d9898ee8 20336 (set) 2>&1 |
dd184caf 20337 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20338 *${as_nl}ac_space=\ *)
d9898ee8 20339 # `set' does not quote correctly, so add quotes (double-quote
20340 # substitution turns \\\\ into \\, and sed turns \\ into \).
20341 sed -n \
20342 "s/'/'\\\\''/g;
20343 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
dd184caf 20344 ;; #(
d9898ee8 20345 *)
20346 # `set' quotes correctly as required by POSIX, so do not add quotes.
dd184caf 20347 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
d9898ee8 20348 ;;
dd184caf 20349 esac |
20350 sort
20351) |
d9898ee8 20352 sed '
dd184caf 20353 /^ac_cv_env_/b end
d9898ee8 20354 t clear
dd184caf 20355 :clear
d9898ee8 20356 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20357 t end
dd184caf 20358 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20359 :end' >>confcache
20360if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20361 if test -w "$cache_file"; then
20362 test "x$cache_file" != "x/dev/null" &&
20363 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20364echo "$as_me: updating cache $cache_file" >&6;}
d9898ee8 20365 cat confcache >$cache_file
20366 else
dd184caf 20367 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20368echo "$as_me: not updating unwritable cache $cache_file" >&6;}
d9898ee8 20369 fi
20370fi
20371rm -f confcache
20372
20373test "x$prefix" = xNONE && prefix=$ac_default_prefix
20374# Let make expand exec_prefix.
20375test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20376
d9898ee8 20377DEFS=-DHAVE_CONFIG_H
20378
20379ac_libobjs=
20380ac_ltlibobjs=
20381for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20382 # 1. Remove the extension, and $U if already installed.
dd184caf 20383 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20384 ac_i=`echo "$ac_i" | sed "$ac_script"`
20385 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20386 # will be set to the directory where LIBOBJS objects are built.
20387 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20388 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
d9898ee8 20389done
20390LIBOBJS=$ac_libobjs
20391
20392LTLIBOBJS=$ac_ltlibobjs
20393
20394
20395if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20396 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20397Usually this means the macro was only invoked conditionally." >&5
20398echo "$as_me: error: conditional \"AMDEP\" was never defined.
20399Usually this means the macro was only invoked conditionally." >&2;}
20400 { (exit 1); exit 1; }; }
20401fi
20402if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20403 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20404Usually this means the macro was only invoked conditionally." >&5
20405echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20406Usually this means the macro was only invoked conditionally." >&2;}
20407 { (exit 1); exit 1; }; }
20408fi
20409if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20410 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
20411Usually this means the macro was only invoked conditionally." >&5
20412echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
20413Usually this means the macro was only invoked conditionally." >&2;}
20414 { (exit 1); exit 1; }; }
20415fi
20416if test -z "${FOUND_GDBM_TRUE}" && test -z "${FOUND_GDBM_FALSE}"; then
20417 { { echo "$as_me:$LINENO: error: conditional \"FOUND_GDBM\" was never defined.
20418Usually this means the macro was only invoked conditionally." >&5
20419echo "$as_me: error: conditional \"FOUND_GDBM\" was never defined.
20420Usually this means the macro was only invoked conditionally." >&2;}
20421 { (exit 1); exit 1; }; }
20422fi
20423
20424: ${CONFIG_STATUS=./config.status}
20425ac_clean_files_save=$ac_clean_files
20426ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20427{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20428echo "$as_me: creating $CONFIG_STATUS" >&6;}
20429cat >$CONFIG_STATUS <<_ACEOF
20430#! $SHELL
20431# Generated by $as_me.
20432# Run this file to recreate the current configuration.
20433# Compiler output produced by configure, useful for debugging
20434# configure, is in config.log if it exists.
20435
20436debug=false
20437ac_cs_recheck=false
20438ac_cs_silent=false
20439SHELL=\${CONFIG_SHELL-$SHELL}
20440_ACEOF
20441
20442cat >>$CONFIG_STATUS <<\_ACEOF
20443## --------------------- ##
20444## M4sh Initialization. ##
20445## --------------------- ##
20446
dd184caf 20447# Be more Bourne compatible
20448DUALCASE=1; export DUALCASE # for MKS sh
d9898ee8 20449if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20450 emulate sh
20451 NULLCMD=:
20452 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20453 # is contrary to our usage. Disable this feature.
20454 alias -g '${1+"$@"}'='"$@"'
dd184caf 20455 setopt NO_GLOB_SUBST
20456else
20457 case `(set -o) 2>/dev/null` in
20458 *posix*) set -o posix ;;
20459esac
20460
20461fi
20462
20463
20464
20465
20466# PATH needs CR
20467# Avoid depending upon Character Ranges.
20468as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20469as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20470as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20471as_cr_digits='0123456789'
20472as_cr_alnum=$as_cr_Letters$as_cr_digits
20473
20474# The user is always right.
20475if test "${PATH_SEPARATOR+set}" != set; then
20476 echo "#! /bin/sh" >conf$$.sh
20477 echo "exit 0" >>conf$$.sh
20478 chmod +x conf$$.sh
20479 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20480 PATH_SEPARATOR=';'
20481 else
20482 PATH_SEPARATOR=:
20483 fi
20484 rm -f conf$$.sh
d9898ee8 20485fi
d9898ee8 20486
20487# Support unset when possible.
20488if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20489 as_unset=unset
20490else
20491 as_unset=false
20492fi
20493
20494
dd184caf 20495# IFS
20496# We need space, tab and new line, in precisely that order. Quoting is
20497# there to prevent editors from complaining about space-tab.
20498# (If _AS_PATH_WALK were called with IFS unset, it would disable word
20499# splitting by setting IFS to empty value.)
20500as_nl='
20501'
20502IFS=" "" $as_nl"
20503
20504# Find who we are. Look in the path if we contain no directory separator.
20505case $0 in
20506 *[\\/]* ) as_myself=$0 ;;
20507 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20508for as_dir in $PATH
20509do
20510 IFS=$as_save_IFS
20511 test -z "$as_dir" && as_dir=.
20512 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20513done
20514IFS=$as_save_IFS
20515
20516 ;;
20517esac
20518# We did not find ourselves, most probably we were run as `sh COMMAND'
20519# in which case we are not to be found in the path.
20520if test "x$as_myself" = x; then
20521 as_myself=$0
20522fi
20523if test ! -f "$as_myself"; then
20524 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20525 { (exit 1); exit 1; }
20526fi
20527
d9898ee8 20528# Work around bugs in pre-3.0 UWIN ksh.
dd184caf 20529for as_var in ENV MAIL MAILPATH
20530do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20531done
d9898ee8 20532PS1='$ '
20533PS2='> '
20534PS4='+ '
20535
20536# NLS nuisances.
20537for as_var in \
20538 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20539 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20540 LC_TELEPHONE LC_TIME
20541do
20542 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20543 eval $as_var=C; export $as_var
20544 else
dd184caf 20545 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
d9898ee8 20546 fi
20547done
20548
20549# Required to use basename.
dd184caf 20550if expr a : '\(a\)' >/dev/null 2>&1 &&
20551 test "X`expr 00001 : '.*\(...\)'`" = X001; then
d9898ee8 20552 as_expr=expr
20553else
20554 as_expr=false
20555fi
20556
dd184caf 20557if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
d9898ee8 20558 as_basename=basename
20559else
20560 as_basename=false
20561fi
20562
20563
20564# Name of the executable.
dd184caf 20565as_me=`$as_basename -- "$0" ||
d9898ee8 20566$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20567 X"$0" : 'X\(//\)$' \| \
dd184caf 20568 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
d9898ee8 20569echo X/"$0" |
dd184caf 20570 sed '/^.*\/\([^/][^/]*\)\/*$/{
20571 s//\1/
20572 q
20573 }
20574 /^X\/\(\/\/\)$/{
20575 s//\1/
20576 q
20577 }
20578 /^X\/\(\/\).*/{
20579 s//\1/
20580 q
20581 }
20582 s/.*/./; q'`
d9898ee8 20583
dd184caf 20584# CDPATH.
20585$as_unset CDPATH
d9898ee8 20586
d9898ee8 20587
d9898ee8 20588
d9898ee8 20589 as_lineno_1=$LINENO
20590 as_lineno_2=$LINENO
d9898ee8 20591 test "x$as_lineno_1" != "x$as_lineno_2" &&
dd184caf 20592 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
d9898ee8 20593
20594 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20595 # uniformly replaced by the line number. The first 'sed' inserts a
dd184caf 20596 # line-number line after each line using $LINENO; the second 'sed'
20597 # does the real work. The second script uses 'N' to pair each
20598 # line-number line with the line containing $LINENO, and appends
20599 # trailing '-' during substitution so that $LINENO is not a special
20600 # case at line end.
d9898ee8 20601 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
dd184caf 20602 # scripts with optimization help from Paolo Bonzini. Blame Lee
20603 # E. McMahon (1931-1989) for sed's syntax. :-)
20604 sed -n '
20605 p
20606 /[$]LINENO/=
20607 ' <$as_myself |
d9898ee8 20608 sed '
dd184caf 20609 s/[$]LINENO.*/&-/
20610 t lineno
20611 b
20612 :lineno
d9898ee8 20613 N
dd184caf 20614 :loop
20615 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
d9898ee8 20616 t loop
dd184caf 20617 s/-\n.*//
d9898ee8 20618 ' >$as_me.lineno &&
dd184caf 20619 chmod +x "$as_me.lineno" ||
20620 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
d9898ee8 20621 { (exit 1); exit 1; }; }
20622
20623 # Don't try to exec as it changes $[0], causing all sort of problems
20624 # (the dirname of $[0] is not the place where we might find the
dd184caf 20625 # original and so on. Autoconf is especially sensitive to this).
20626 . "./$as_me.lineno"
d9898ee8 20627 # Exit status is that of the last command.
20628 exit
20629}
20630
20631
dd184caf 20632if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20633 as_dirname=dirname
20634else
20635 as_dirname=false
20636fi
20637
20638ECHO_C= ECHO_N= ECHO_T=
20639case `echo -n x` in
20640-n*)
20641 case `echo 'x\c'` in
20642 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20643 *) ECHO_C='\c';;
20644 esac;;
20645*)
20646 ECHO_N='-n';;
d9898ee8 20647esac
20648
dd184caf 20649if expr a : '\(a\)' >/dev/null 2>&1 &&
20650 test "X`expr 00001 : '.*\(...\)'`" = X001; then
d9898ee8 20651 as_expr=expr
20652else
20653 as_expr=false
20654fi
20655
20656rm -f conf$$ conf$$.exe conf$$.file
dd184caf 20657if test -d conf$$.dir; then
20658 rm -f conf$$.dir/conf$$.file
20659else
20660 rm -f conf$$.dir
20661 mkdir conf$$.dir
20662fi
d9898ee8 20663echo >conf$$.file
20664if ln -s conf$$.file conf$$ 2>/dev/null; then
dd184caf 20665 as_ln_s='ln -s'
20666 # ... but there are two gotchas:
20667 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20668 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20669 # In both cases, we have to default to `cp -p'.
20670 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
d9898ee8 20671 as_ln_s='cp -p'
d9898ee8 20672elif ln conf$$.file conf$$ 2>/dev/null; then
20673 as_ln_s=ln
20674else
20675 as_ln_s='cp -p'
20676fi
dd184caf 20677rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20678rmdir conf$$.dir 2>/dev/null
d9898ee8 20679
20680if mkdir -p . 2>/dev/null; then
20681 as_mkdir_p=:
20682else
20683 test -d ./-p && rmdir ./-p
20684 as_mkdir_p=false
20685fi
20686
dd184caf 20687if test -x / >/dev/null 2>&1; then
20688 as_test_x='test -x'
20689else
20690 if ls -dL / >/dev/null 2>&1; then
20691 as_ls_L_option=L
20692 else
20693 as_ls_L_option=
20694 fi
20695 as_test_x='
20696 eval sh -c '\''
20697 if test -d "$1"; then
20698 test -d "$1/.";
20699 else
20700 case $1 in
20701 -*)set "./$1";;
20702 esac;
20703 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
20704 ???[sx]*):;;*)false;;esac;fi
20705 '\'' sh
20706 '
20707fi
20708as_executable_p=$as_test_x
d9898ee8 20709
20710# Sed expression to map a string onto a valid CPP name.
20711as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20712
20713# Sed expression to map a string onto a valid variable name.
20714as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20715
20716
d9898ee8 20717exec 6>&1
20718
dd184caf 20719# Save the log message, to keep $[0] and so on meaningful, and to
d9898ee8 20720# report actual input values of CONFIG_FILES etc. instead of their
dd184caf 20721# values after options handling.
20722ac_log="
d9898ee8 20723This file was extended by gdbmobj $as_me 0.10, which was
dd184caf 20724generated by GNU Autoconf 2.61. Invocation command line was
d9898ee8 20725
20726 CONFIG_FILES = $CONFIG_FILES
20727 CONFIG_HEADERS = $CONFIG_HEADERS
20728 CONFIG_LINKS = $CONFIG_LINKS
20729 CONFIG_COMMANDS = $CONFIG_COMMANDS
20730 $ $0 $@
20731
dd184caf 20732on `(hostname || uname -n) 2>/dev/null | sed 1q`
20733"
20734
d9898ee8 20735_ACEOF
20736
dd184caf 20737cat >>$CONFIG_STATUS <<_ACEOF
d9898ee8 20738# Files that config.status was made for.
dd184caf 20739config_files="$ac_config_files"
20740config_headers="$ac_config_headers"
20741config_commands="$ac_config_commands"
d9898ee8 20742
dd184caf 20743_ACEOF
d9898ee8 20744
20745cat >>$CONFIG_STATUS <<\_ACEOF
d9898ee8 20746ac_cs_usage="\
20747\`$as_me' instantiates files from templates according to the
20748current configuration.
20749
20750Usage: $0 [OPTIONS] [FILE]...
20751
20752 -h, --help print this help, then exit
dd184caf 20753 -V, --version print version number and configuration settings, then exit
d9898ee8 20754 -q, --quiet do not print progress messages
20755 -d, --debug don't remove temporary files
20756 --recheck update $as_me by reconfiguring in the same conditions
20757 --file=FILE[:TEMPLATE]
20758 instantiate the configuration file FILE
20759 --header=FILE[:TEMPLATE]
20760 instantiate the configuration header FILE
20761
20762Configuration files:
20763$config_files
20764
20765Configuration headers:
20766$config_headers
20767
20768Configuration commands:
20769$config_commands
20770
20771Report bugs to <bug-autoconf@gnu.org>."
d9898ee8 20772
dd184caf 20773_ACEOF
d9898ee8 20774cat >>$CONFIG_STATUS <<_ACEOF
20775ac_cs_version="\\
20776gdbmobj config.status 0.10
dd184caf 20777configured by $0, generated by GNU Autoconf 2.61,
20778 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
d9898ee8 20779
dd184caf 20780Copyright (C) 2006 Free Software Foundation, Inc.
d9898ee8 20781This config.status script is free software; the Free Software Foundation
20782gives unlimited permission to copy, distribute and modify it."
dd184caf 20783
20784ac_pwd='$ac_pwd'
20785srcdir='$srcdir'
20786INSTALL='$INSTALL'
20787MKDIR_P='$MKDIR_P'
d9898ee8 20788_ACEOF
20789
20790cat >>$CONFIG_STATUS <<\_ACEOF
20791# If no file are specified by the user, then we need to provide default
20792# value. By we need to know if files were specified by the user.
20793ac_need_defaults=:
20794while test $# != 0
20795do
20796 case $1 in
20797 --*=*)
dd184caf 20798 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20799 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
d9898ee8 20800 ac_shift=:
20801 ;;
dd184caf 20802 *)
d9898ee8 20803 ac_option=$1
20804 ac_optarg=$2
20805 ac_shift=shift
20806 ;;
d9898ee8 20807 esac
20808
20809 case $ac_option in
20810 # Handling of the options.
d9898ee8 20811 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20812 ac_cs_recheck=: ;;
dd184caf 20813 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20814 echo "$ac_cs_version"; exit ;;
20815 --debug | --debu | --deb | --de | --d | -d )
d9898ee8 20816 debug=: ;;
20817 --file | --fil | --fi | --f )
20818 $ac_shift
20819 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20820 ac_need_defaults=false;;
20821 --header | --heade | --head | --hea )
20822 $ac_shift
20823 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20824 ac_need_defaults=false;;
dd184caf 20825 --he | --h)
20826 # Conflict between --help and --header
20827 { echo "$as_me: error: ambiguous option: $1
20828Try \`$0 --help' for more information." >&2
20829 { (exit 1); exit 1; }; };;
20830 --help | --hel | -h )
20831 echo "$ac_cs_usage"; exit ;;
d9898ee8 20832 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20833 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20834 ac_cs_silent=: ;;
20835
20836 # This is an error.
dd184caf 20837 -*) { echo "$as_me: error: unrecognized option: $1
20838Try \`$0 --help' for more information." >&2
d9898ee8 20839 { (exit 1); exit 1; }; } ;;
20840
dd184caf 20841 *) ac_config_targets="$ac_config_targets $1"
20842 ac_need_defaults=false ;;
d9898ee8 20843
20844 esac
20845 shift
20846done
20847
20848ac_configure_extra_args=
20849
20850if $ac_cs_silent; then
20851 exec 6>/dev/null
20852 ac_configure_extra_args="$ac_configure_extra_args --silent"
20853fi
20854
20855_ACEOF
20856cat >>$CONFIG_STATUS <<_ACEOF
20857if \$ac_cs_recheck; then
dd184caf 20858 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20859 CONFIG_SHELL=$SHELL
20860 export CONFIG_SHELL
20861 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
d9898ee8 20862fi
20863
20864_ACEOF
dd184caf 20865cat >>$CONFIG_STATUS <<\_ACEOF
20866exec 5>>config.log
20867{
20868 echo
20869 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20870## Running $as_me. ##
20871_ASBOX
20872 echo "$ac_log"
20873} >&5
d9898ee8 20874
dd184caf 20875_ACEOF
d9898ee8 20876cat >>$CONFIG_STATUS <<_ACEOF
20877#
dd184caf 20878# INIT-COMMANDS
d9898ee8 20879#
d9898ee8 20880AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20881
20882_ACEOF
20883
d9898ee8 20884cat >>$CONFIG_STATUS <<\_ACEOF
dd184caf 20885
20886# Handling of arguments.
d9898ee8 20887for ac_config_target in $ac_config_targets
20888do
dd184caf 20889 case $ac_config_target in
20890 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20891 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20892 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20893
d9898ee8 20894 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20895echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20896 { (exit 1); exit 1; }; };;
20897 esac
20898done
20899
dd184caf 20900
d9898ee8 20901# If the user did not use the arguments to specify the items to instantiate,
20902# then the envvar interface is used. Set only those that are not.
20903# We use the long form for the default assignment because of an extremely
20904# bizarre bug on SunOS 4.1.3.
20905if $ac_need_defaults; then
20906 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20907 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20908 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20909fi
20910
20911# Have a temporary directory for convenience. Make it in the build tree
dd184caf 20912# simply because there is no reason against having it here, and in addition,
d9898ee8 20913# creating and moving files from /tmp can sometimes cause problems.
dd184caf 20914# Hook for its removal unless debugging.
20915# Note that there is a small window in which the directory will not be cleaned:
20916# after its creation but before its name has been assigned to `$tmp'.
d9898ee8 20917$debug ||
20918{
dd184caf 20919 tmp=
20920 trap 'exit_status=$?
20921 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20922' 0
d9898ee8 20923 trap '{ (exit 1); exit 1; }' 1 2 13 15
20924}
d9898ee8 20925# Create a (secure) tmp directory for tmp files.
20926
20927{
dd184caf 20928 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
d9898ee8 20929 test -n "$tmp" && test -d "$tmp"
20930} ||
20931{
dd184caf 20932 tmp=./conf$$-$RANDOM
20933 (umask 077 && mkdir "$tmp")
d9898ee8 20934} ||
20935{
20936 echo "$me: cannot create a temporary directory in ." >&2
20937 { (exit 1); exit 1; }
20938}
20939
d9898ee8 20940#
dd184caf 20941# Set up the sed scripts for CONFIG_FILES section.
d9898ee8 20942#
20943
20944# No need to generate the scripts if there are no CONFIG_FILES.
20945# This happens for instance when ./config.status config.h
dd184caf 20946if test -n "$CONFIG_FILES"; then
d9898ee8 20947
20948_ACEOF
20949
dd184caf 20950
20951
20952ac_delim='%!_!# '
20953for ac_last_try in false false false false false :; do
20954 cat >conf$$subs.sed <<_ACEOF
20955SHELL!$SHELL$ac_delim
20956PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
20957PACKAGE_NAME!$PACKAGE_NAME$ac_delim
20958PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
20959PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
20960PACKAGE_STRING!$PACKAGE_STRING$ac_delim
20961PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
20962exec_prefix!$exec_prefix$ac_delim
20963prefix!$prefix$ac_delim
20964program_transform_name!$program_transform_name$ac_delim
20965bindir!$bindir$ac_delim
20966sbindir!$sbindir$ac_delim
20967libexecdir!$libexecdir$ac_delim
20968datarootdir!$datarootdir$ac_delim
20969datadir!$datadir$ac_delim
20970sysconfdir!$sysconfdir$ac_delim
20971sharedstatedir!$sharedstatedir$ac_delim
20972localstatedir!$localstatedir$ac_delim
20973includedir!$includedir$ac_delim
20974oldincludedir!$oldincludedir$ac_delim
20975docdir!$docdir$ac_delim
20976infodir!$infodir$ac_delim
20977htmldir!$htmldir$ac_delim
20978dvidir!$dvidir$ac_delim
20979pdfdir!$pdfdir$ac_delim
20980psdir!$psdir$ac_delim
20981libdir!$libdir$ac_delim
20982localedir!$localedir$ac_delim
20983mandir!$mandir$ac_delim
20984DEFS!$DEFS$ac_delim
20985ECHO_C!$ECHO_C$ac_delim
20986ECHO_N!$ECHO_N$ac_delim
20987ECHO_T!$ECHO_T$ac_delim
20988LIBS!$LIBS$ac_delim
20989build_alias!$build_alias$ac_delim
20990host_alias!$host_alias$ac_delim
20991target_alias!$target_alias$ac_delim
20992INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
20993INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
20994INSTALL_DATA!$INSTALL_DATA$ac_delim
20995am__isrc!$am__isrc$ac_delim
20996CYGPATH_W!$CYGPATH_W$ac_delim
20997PACKAGE!$PACKAGE$ac_delim
20998VERSION!$VERSION$ac_delim
20999ACLOCAL!$ACLOCAL$ac_delim
21000AUTOCONF!$AUTOCONF$ac_delim
21001AUTOMAKE!$AUTOMAKE$ac_delim
21002AUTOHEADER!$AUTOHEADER$ac_delim
21003MAKEINFO!$MAKEINFO$ac_delim
21004install_sh!$install_sh$ac_delim
21005STRIP!$STRIP$ac_delim
21006INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
21007mkdir_p!$mkdir_p$ac_delim
21008AWK!$AWK$ac_delim
21009SET_MAKE!$SET_MAKE$ac_delim
21010am__leading_dot!$am__leading_dot$ac_delim
21011AMTAR!$AMTAR$ac_delim
21012am__tar!$am__tar$ac_delim
21013am__untar!$am__untar$ac_delim
21014CC!$CC$ac_delim
21015CFLAGS!$CFLAGS$ac_delim
21016LDFLAGS!$LDFLAGS$ac_delim
21017CPPFLAGS!$CPPFLAGS$ac_delim
21018ac_ct_CC!$ac_ct_CC$ac_delim
21019EXEEXT!$EXEEXT$ac_delim
21020OBJEXT!$OBJEXT$ac_delim
21021DEPDIR!$DEPDIR$ac_delim
21022am__include!$am__include$ac_delim
21023am__quote!$am__quote$ac_delim
21024AMDEP_TRUE!$AMDEP_TRUE$ac_delim
21025AMDEP_FALSE!$AMDEP_FALSE$ac_delim
21026AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
21027CCDEPMODE!$CCDEPMODE$ac_delim
21028am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
21029am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
21030CPP!$CPP$ac_delim
21031GREP!$GREP$ac_delim
21032EGREP!$EGREP$ac_delim
21033CXX!$CXX$ac_delim
21034CXXFLAGS!$CXXFLAGS$ac_delim
21035ac_ct_CXX!$ac_ct_CXX$ac_delim
21036CXXDEPMODE!$CXXDEPMODE$ac_delim
21037am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
21038am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
21039build!$build$ac_delim
21040build_cpu!$build_cpu$ac_delim
21041build_vendor!$build_vendor$ac_delim
21042build_os!$build_os$ac_delim
21043host!$host$ac_delim
21044host_cpu!$host_cpu$ac_delim
21045host_vendor!$host_vendor$ac_delim
21046host_os!$host_os$ac_delim
21047SED!$SED$ac_delim
21048LN_S!$LN_S$ac_delim
21049ECHO!$ECHO$ac_delim
21050AR!$AR$ac_delim
21051RANLIB!$RANLIB$ac_delim
21052_ACEOF
21053
21054 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21055 break
21056 elif $ac_last_try; then
21057 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21058echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21059 { (exit 1); exit 1; }; }
21060 else
21061 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
d9898ee8 21062 fi
dd184caf 21063done
21064
21065ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21066if test -n "$ac_eof"; then
21067 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21068 ac_eof=`expr $ac_eof + 1`
21069fi
21070
21071cat >>$CONFIG_STATUS <<_ACEOF
21072cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21073/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21074_ACEOF
21075sed '
21076s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21077s/^/s,@/; s/!/@,|#_!!_#|/
21078:n
21079t n
21080s/'"$ac_delim"'$/,g/; t
21081s/$/\\/; p
21082N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21083' >>$CONFIG_STATUS <conf$$subs.sed
21084rm -f conf$$subs.sed
21085cat >>$CONFIG_STATUS <<_ACEOF
21086CEOF$ac_eof
21087_ACEOF
21088
21089
21090ac_delim='%!_!# '
21091for ac_last_try in false false false false false :; do
21092 cat >conf$$subs.sed <<_ACEOF
21093CXXCPP!$CXXCPP$ac_delim
21094F77!$F77$ac_delim
21095FFLAGS!$FFLAGS$ac_delim
21096ac_ct_F77!$ac_ct_F77$ac_delim
21097LIBTOOL!$LIBTOOL$ac_delim
21098LIBGDBM!$LIBGDBM$ac_delim
21099FOUND_GDBM_TRUE!$FOUND_GDBM_TRUE$ac_delim
21100FOUND_GDBM_FALSE!$FOUND_GDBM_FALSE$ac_delim
21101LIBOBJS!$LIBOBJS$ac_delim
21102LTLIBOBJS!$LTLIBOBJS$ac_delim
21103_ACEOF
21104
21105 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 10; then
21106 break
21107 elif $ac_last_try; then
21108 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21109echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21110 { (exit 1); exit 1; }; }
21111 else
21112 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21113 fi
21114done
d9898ee8 21115
dd184caf 21116ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21117if test -n "$ac_eof"; then
21118 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21119 ac_eof=`expr $ac_eof + 1`
21120fi
21121
21122cat >>$CONFIG_STATUS <<_ACEOF
21123cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21124/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21125_ACEOF
21126sed '
21127s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21128s/^/s,@/; s/!/@,|#_!!_#|/
21129:n
21130t n
21131s/'"$ac_delim"'$/,g/; t
21132s/$/\\/; p
21133N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21134' >>$CONFIG_STATUS <conf$$subs.sed
21135rm -f conf$$subs.sed
21136cat >>$CONFIG_STATUS <<_ACEOF
21137:end
21138s/|#_!!_#|//g
21139CEOF$ac_eof
d9898ee8 21140_ACEOF
dd184caf 21141
21142
21143# VPATH may cause trouble with some makes, so we remove $(srcdir),
21144# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21145# trailing colons and then remove the whole line if VPATH becomes empty
21146# (actually we leave an empty line to preserve line numbers).
21147if test "x$srcdir" = x.; then
21148 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21149s/:*\$(srcdir):*/:/
21150s/:*\${srcdir}:*/:/
21151s/:*@srcdir@:*/:/
21152s/^\([^=]*=[ ]*\):*/\1/
21153s/:*$//
21154s/^[^=]*=[ ]*$//
21155}'
21156fi
21157
d9898ee8 21158cat >>$CONFIG_STATUS <<\_ACEOF
dd184caf 21159fi # test -n "$CONFIG_FILES"
21160
21161
21162for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
21163do
21164 case $ac_tag in
21165 :[FHLC]) ac_mode=$ac_tag; continue;;
21166 esac
21167 case $ac_mode$ac_tag in
21168 :[FHL]*:*);;
21169 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21170echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21171 { (exit 1); exit 1; }; };;
21172 :[FH]-) ac_tag=-:-;;
21173 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21174 esac
21175 ac_save_IFS=$IFS
21176 IFS=:
21177 set x $ac_tag
21178 IFS=$ac_save_IFS
21179 shift
21180 ac_file=$1
21181 shift
21182
21183 case $ac_mode in
21184 :L) ac_source=$1;;
21185 :[FH])
21186 ac_file_inputs=
21187 for ac_f
21188 do
21189 case $ac_f in
21190 -) ac_f="$tmp/stdin";;
21191 *) # Look for the file first in the build tree, then in the source tree
21192 # (if the path is not absolute). The absolute path cannot be DOS-style,
21193 # because $ac_f cannot contain `:'.
21194 test -f "$ac_f" ||
21195 case $ac_f in
21196 [\\/$]*) false;;
21197 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21198 esac ||
21199 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21200echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21201 { (exit 1); exit 1; }; };;
21202 esac
21203 ac_file_inputs="$ac_file_inputs $ac_f"
21204 done
21205
21206 # Let's still pretend it is `configure' which instantiates (i.e., don't
21207 # use $as_me), people would be surprised to read:
21208 # /* config.h. Generated by config.status. */
21209 configure_input="Generated from "`IFS=:
21210 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21211 if test x"$ac_file" != x-; then
21212 configure_input="$ac_file. $configure_input"
21213 { echo "$as_me:$LINENO: creating $ac_file" >&5
21214echo "$as_me: creating $ac_file" >&6;}
21215 fi
21216
21217 case $ac_tag in
21218 *:-:* | *:-) cat >"$tmp/stdin";;
21219 esac
21220 ;;
d9898ee8 21221 esac
21222
dd184caf 21223 ac_dir=`$as_dirname -- "$ac_file" ||
d9898ee8 21224$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21225 X"$ac_file" : 'X\(//\)[^/]' \| \
21226 X"$ac_file" : 'X\(//\)$' \| \
dd184caf 21227 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
d9898ee8 21228echo X"$ac_file" |
dd184caf 21229 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21230 s//\1/
21231 q
21232 }
21233 /^X\(\/\/\)[^/].*/{
21234 s//\1/
21235 q
21236 }
21237 /^X\(\/\/\)$/{
21238 s//\1/
21239 q
21240 }
21241 /^X\(\/\).*/{
21242 s//\1/
21243 q
21244 }
21245 s/.*/./; q'`
21246 { as_dir="$ac_dir"
21247 case $as_dir in #(
21248 -*) as_dir=./$as_dir;;
21249 esac
21250 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
d9898ee8 21251 as_dirs=
dd184caf 21252 while :; do
21253 case $as_dir in #(
21254 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21255 *) as_qdir=$as_dir;;
21256 esac
21257 as_dirs="'$as_qdir' $as_dirs"
21258 as_dir=`$as_dirname -- "$as_dir" ||
d9898ee8 21259$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21260 X"$as_dir" : 'X\(//\)[^/]' \| \
21261 X"$as_dir" : 'X\(//\)$' \| \
dd184caf 21262 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
d9898ee8 21263echo X"$as_dir" |
dd184caf 21264 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21265 s//\1/
21266 q
21267 }
21268 /^X\(\/\/\)[^/].*/{
21269 s//\1/
21270 q
21271 }
21272 /^X\(\/\/\)$/{
21273 s//\1/
21274 q
21275 }
21276 /^X\(\/\).*/{
21277 s//\1/
21278 q
21279 }
21280 s/.*/./; q'`
21281 test -d "$as_dir" && break
d9898ee8 21282 done
dd184caf 21283 test -z "$as_dirs" || eval "mkdir $as_dirs"
21284 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21285echo "$as_me: error: cannot create directory $as_dir" >&2;}
d9898ee8 21286 { (exit 1); exit 1; }; }; }
d9898ee8 21287 ac_builddir=.
21288
dd184caf 21289case "$ac_dir" in
21290.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21291*)
d9898ee8 21292 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
dd184caf 21293 # A ".." for each directory in $ac_dir_suffix.
21294 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21295 case $ac_top_builddir_sub in
21296 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21297 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21298 esac ;;
21299esac
21300ac_abs_top_builddir=$ac_pwd
21301ac_abs_builddir=$ac_pwd$ac_dir_suffix
21302# for backward compatibility:
21303ac_top_builddir=$ac_top_build_prefix
d9898ee8 21304
21305case $srcdir in
dd184caf 21306 .) # We are building in place.
d9898ee8 21307 ac_srcdir=.
dd184caf 21308 ac_top_srcdir=$ac_top_builddir_sub
21309 ac_abs_top_srcdir=$ac_pwd ;;
21310 [\\/]* | ?:[\\/]* ) # Absolute name.
d9898ee8 21311 ac_srcdir=$srcdir$ac_dir_suffix;
dd184caf 21312 ac_top_srcdir=$srcdir
21313 ac_abs_top_srcdir=$srcdir ;;
21314 *) # Relative name.
21315 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21316 ac_top_srcdir=$ac_top_build_prefix$srcdir
21317 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
d9898ee8 21318esac
dd184caf 21319ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
d9898ee8 21320
d9898ee8 21321
dd184caf 21322 case $ac_mode in
21323 :F)
21324 #
21325 # CONFIG_FILE
21326 #
d9898ee8 21327
21328 case $INSTALL in
21329 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
dd184caf 21330 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
d9898ee8 21331 esac
dd184caf 21332 ac_MKDIR_P=$MKDIR_P
21333 case $MKDIR_P in
21334 [\\/$]* | ?:[\\/]* ) ;;
21335 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21336 esac
21337_ACEOF
d9898ee8 21338
dd184caf 21339cat >>$CONFIG_STATUS <<\_ACEOF
21340# If the template does not know about datarootdir, expand it.
21341# FIXME: This hack should be removed a few years after 2.60.
21342ac_datarootdir_hack=; ac_datarootdir_seen=
21343
21344case `sed -n '/datarootdir/ {
21345 p
21346 q
21347}
21348/@datadir@/p
21349/@docdir@/p
21350/@infodir@/p
21351/@localedir@/p
21352/@mandir@/p
21353' $ac_file_inputs` in
21354*datarootdir*) ac_datarootdir_seen=yes;;
21355*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21356 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21357echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21358_ACEOF
21359cat >>$CONFIG_STATUS <<_ACEOF
21360 ac_datarootdir_hack='
21361 s&@datadir@&$datadir&g
21362 s&@docdir@&$docdir&g
21363 s&@infodir@&$infodir&g
21364 s&@localedir@&$localedir&g
21365 s&@mandir@&$mandir&g
21366 s&\\\${datarootdir}&$datarootdir&g' ;;
21367esac
d9898ee8 21368_ACEOF
dd184caf 21369
21370# Neutralize VPATH when `$srcdir' = `.'.
21371# Shell code in configure.ac might set extrasub.
21372# FIXME: do we really want to maintain this feature?
d9898ee8 21373cat >>$CONFIG_STATUS <<_ACEOF
21374 sed "$ac_vpsub
21375$extrasub
21376_ACEOF
21377cat >>$CONFIG_STATUS <<\_ACEOF
21378:t
21379/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
dd184caf 21380s&@configure_input@&$configure_input&;t t
21381s&@top_builddir@&$ac_top_builddir_sub&;t t
21382s&@srcdir@&$ac_srcdir&;t t
21383s&@abs_srcdir@&$ac_abs_srcdir&;t t
21384s&@top_srcdir@&$ac_top_srcdir&;t t
21385s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21386s&@builddir@&$ac_builddir&;t t
21387s&@abs_builddir@&$ac_abs_builddir&;t t
21388s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21389s&@INSTALL@&$ac_INSTALL&;t t
21390s&@MKDIR_P@&$ac_MKDIR_P&;t t
21391$ac_datarootdir_hack
21392" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
21393
21394test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21395 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21396 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21397 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21398which seems to be undefined. Please make sure it is defined." >&5
21399echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21400which seems to be undefined. Please make sure it is defined." >&2;}
21401
21402 rm -f "$tmp/stdin"
d9898ee8 21403 case $ac_file in
dd184caf 21404 -) cat "$tmp/out"; rm -f "$tmp/out";;
21405 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
d9898ee8 21406 esac
dd184caf 21407 ;;
21408 :H)
21409 #
21410 # CONFIG_HEADER
21411 #
d9898ee8 21412_ACEOF
21413
dd184caf 21414# Transform confdefs.h into a sed script `conftest.defines', that
21415# substitutes the proper values into config.h.in to produce config.h.
21416rm -f conftest.defines conftest.tail
21417# First, append a space to every undef/define line, to ease matching.
21418echo 's/$/ /' >conftest.defines
21419# Then, protect against being on the right side of a sed subst, or in
21420# an unquoted here document, in config.status. If some macros were
21421# called several times there might be several #defines for the same
21422# symbol, which is useless. But do not sort them, since the last
21423# AC_DEFINE must be honored.
21424ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21425# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
21426# NAME is the cpp macro being defined, VALUE is the value it is being given.
21427# PARAMS is the parameter list in the macro definition--in most cases, it's
21428# just an empty string.
21429ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
21430ac_dB='\\)[ (].*,\\1define\\2'
21431ac_dC=' '
21432ac_dD=' ,'
21433
21434uniq confdefs.h |
21435 sed -n '
21436 t rset
21437 :rset
21438 s/^[ ]*#[ ]*define[ ][ ]*//
21439 t ok
21440 d
21441 :ok
21442 s/[\\&,]/\\&/g
21443 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
21444 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
21445 ' >>conftest.defines
21446
21447# Remove the space that was appended to ease matching.
21448# Then replace #undef with comments. This is necessary, for
d9898ee8 21449# example, in the case of _POSIX_SOURCE, which is predefined and required
21450# on some systems where configure will not decide to define it.
dd184caf 21451# (The regexp can be short, since the line contains either #define or #undef.)
21452echo 's/ $//
21453s,^[ #]*u.*,/* & */,' >>conftest.defines
21454
21455# Break up conftest.defines:
21456ac_max_sed_lines=50
21457
21458# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
21459# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
21460# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
21461# et cetera.
21462ac_in='$ac_file_inputs'
21463ac_out='"$tmp/out1"'
21464ac_nxt='"$tmp/out2"'
21465
21466while :
d9898ee8 21467do
dd184caf 21468 # Write a here document:
21469 cat >>$CONFIG_STATUS <<_ACEOF
21470 # First, check the format of the line:
21471 cat >"\$tmp/defines.sed" <<\\CEOF
21472/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
21473/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
21474b
21475:def
21476_ACEOF
21477 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
d9898ee8 21478 echo 'CEOF
dd184caf 21479 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
21480 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
21481 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
21482 grep . conftest.tail >/dev/null || break
d9898ee8 21483 rm -f conftest.defines
21484 mv conftest.tail conftest.defines
21485done
dd184caf 21486rm -f conftest.defines conftest.tail
d9898ee8 21487
dd184caf 21488echo "ac_result=$ac_in" >>$CONFIG_STATUS
d9898ee8 21489cat >>$CONFIG_STATUS <<\_ACEOF
d9898ee8 21490 if test x"$ac_file" != x-; then
dd184caf 21491 echo "/* $configure_input */" >"$tmp/config.h"
21492 cat "$ac_result" >>"$tmp/config.h"
21493 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
d9898ee8 21494 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21495echo "$as_me: $ac_file is unchanged" >&6;}
21496 else
d9898ee8 21497 rm -f $ac_file
dd184caf 21498 mv "$tmp/config.h" $ac_file
d9898ee8 21499 fi
21500 else
dd184caf 21501 echo "/* $configure_input */"
21502 cat "$ac_result"
d9898ee8 21503 fi
dd184caf 21504 rm -f "$tmp/out12"
d9898ee8 21505# Compute $ac_file's index in $config_headers.
ac40fd9e 21506_am_arg=$ac_file
d9898ee8 21507_am_stamp_count=1
21508for _am_header in $config_headers :; do
21509 case $_am_header in
ac40fd9e 21510 $_am_arg | $_am_arg:* )
d9898ee8 21511 break ;;
21512 * )
21513 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21514 esac
21515done
ac40fd9e 21516echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21517$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21518 X"$_am_arg" : 'X\(//\)[^/]' \| \
21519 X"$_am_arg" : 'X\(//\)$' \| \
21520 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21521echo X"$_am_arg" |
dd184caf 21522 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21523 s//\1/
21524 q
21525 }
21526 /^X\(\/\/\)[^/].*/{
21527 s//\1/
21528 q
21529 }
21530 /^X\(\/\/\)$/{
21531 s//\1/
21532 q
21533 }
21534 /^X\(\/\).*/{
21535 s//\1/
21536 q
21537 }
21538 s/.*/./; q'`/stamp-h$_am_stamp_count
21539 ;;
d9898ee8 21540
dd184caf 21541 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
21542echo "$as_me: executing $ac_file commands" >&6;}
21543 ;;
21544 esac
d9898ee8 21545
21546
dd184caf 21547 case $ac_file$ac_mode in
21548 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
d9898ee8 21549 # Strip MF so we end up with the name of the file.
21550 mf=`echo "$mf" | sed -e 's/:.*$//'`
21551 # Check whether this is an Automake generated Makefile or not.
21552 # We used to match only the files named `Makefile.in', but
21553 # some people rename them; so instead we look at the file content.
21554 # Grep'ing the first line is not enough: some people post-process
21555 # each Makefile.in and add a new line on top of each file to say so.
dd184caf 21556 # Grep'ing the whole file is not good either: AIX grep has a line
21557 # limit of 2048, but all sed's we know have understand at least 4000.
ac40fd9e 21558 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
dd184caf 21559 dirpart=`$as_dirname -- "$mf" ||
d9898ee8 21560$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21561 X"$mf" : 'X\(//\)[^/]' \| \
21562 X"$mf" : 'X\(//\)$' \| \
dd184caf 21563 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
d9898ee8 21564echo X"$mf" |
dd184caf 21565 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21566 s//\1/
21567 q
21568 }
21569 /^X\(\/\/\)[^/].*/{
21570 s//\1/
21571 q
21572 }
21573 /^X\(\/\/\)$/{
21574 s//\1/
21575 q
21576 }
21577 /^X\(\/\).*/{
21578 s//\1/
21579 q
21580 }
21581 s/.*/./; q'`
d9898ee8 21582 else
21583 continue
21584 fi
21585 # Extract the definition of DEPDIR, am__include, and am__quote
21586 # from the Makefile without running `make'.
21587 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21588 test -z "$DEPDIR" && continue
21589 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21590 test -z "am__include" && continue
21591 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21592 # When using ansi2knr, U may be empty or an underscore; expand it
21593 U=`sed -n 's/^U = //p' < "$mf"`
21594 # Find all dependency output files, they are included files with
21595 # $(DEPDIR) in their names. We invoke sed twice because it is the
21596 # simplest approach to changing $(DEPDIR) to its actual value in the
21597 # expansion.
21598 for file in `sed -n "
21599 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21600 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21601 # Make sure the directory exists.
21602 test -f "$dirpart/$file" && continue
dd184caf 21603 fdir=`$as_dirname -- "$file" ||
d9898ee8 21604$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21605 X"$file" : 'X\(//\)[^/]' \| \
21606 X"$file" : 'X\(//\)$' \| \
dd184caf 21607 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
d9898ee8 21608echo X"$file" |
dd184caf 21609 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21610 s//\1/
21611 q
21612 }
21613 /^X\(\/\/\)[^/].*/{
21614 s//\1/
21615 q
21616 }
21617 /^X\(\/\/\)$/{
21618 s//\1/
21619 q
21620 }
21621 /^X\(\/\).*/{
21622 s//\1/
21623 q
21624 }
21625 s/.*/./; q'`
21626 { as_dir=$dirpart/$fdir
21627 case $as_dir in #(
21628 -*) as_dir=./$as_dir;;
21629 esac
21630 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
d9898ee8 21631 as_dirs=
dd184caf 21632 while :; do
21633 case $as_dir in #(
21634 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21635 *) as_qdir=$as_dir;;
21636 esac
21637 as_dirs="'$as_qdir' $as_dirs"
21638 as_dir=`$as_dirname -- "$as_dir" ||
d9898ee8 21639$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21640 X"$as_dir" : 'X\(//\)[^/]' \| \
21641 X"$as_dir" : 'X\(//\)$' \| \
dd184caf 21642 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
d9898ee8 21643echo X"$as_dir" |
dd184caf 21644 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21645 s//\1/
21646 q
21647 }
21648 /^X\(\/\/\)[^/].*/{
21649 s//\1/
21650 q
21651 }
21652 /^X\(\/\/\)$/{
21653 s//\1/
21654 q
21655 }
21656 /^X\(\/\).*/{
21657 s//\1/
21658 q
21659 }
21660 s/.*/./; q'`
21661 test -d "$as_dir" && break
d9898ee8 21662 done
dd184caf 21663 test -z "$as_dirs" || eval "mkdir $as_dirs"
21664 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21665echo "$as_me: error: cannot create directory $as_dir" >&2;}
d9898ee8 21666 { (exit 1); exit 1; }; }; }
d9898ee8 21667 # echo "creating $dirpart/$file"
21668 echo '# dummy' > "$dirpart/$file"
21669 done
21670done
21671 ;;
dd184caf 21672
d9898ee8 21673 esac
dd184caf 21674done # for ac_tag
d9898ee8 21675
d9898ee8 21676
21677{ (exit 0); exit 0; }
21678_ACEOF
21679chmod +x $CONFIG_STATUS
21680ac_clean_files=$ac_clean_files_save
21681
21682
21683# configure is writing to config.log, and then calls config.status.
21684# config.status does its own redirection, appending to config.log.
21685# Unfortunately, on DOS this fails, as config.log is still kept open
21686# by configure, so config.status won't be able to write to it; its
21687# output is simply discarded. So we exec the FD to /dev/null,
21688# effectively closing config.log, so it can be properly (re)opened and
21689# appended to by config.status. When coming back to configure, we
21690# need to make the FD available again.
21691if test "$no_create" != yes; then
21692 ac_cs_success=:
21693 ac_config_status_args=
21694 test "$silent" = yes &&
21695 ac_config_status_args="$ac_config_status_args --quiet"
21696 exec 5>/dev/null
21697 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21698 exec 5>>config.log
21699 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21700 # would make configure fail if this is the last instruction.
21701 $ac_cs_success || { (exit 1); exit 1; }
21702fi
21703