Imported upstream version 0.61.0
[hcoop/debian/courier-authlib.git] / makedat / 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 makedat 0.60.
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='makedat'
730PACKAGE_TARNAME='makedat'
731PACKAGE_VERSION='0.60'
732PACKAGE_STRING='makedat 0.60'
733PACKAGE_BUGREPORT='courier-users@lists.sourceforge.net'
734
735ac_unique_file="makedatprog.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
847LN_S
848PERL
849CAT
850build
851build_cpu
852build_vendor
853build_os
854host
855host_cpu
856host_vendor
857host_os
858SED
859GREP
860EGREP
861ECHO
862AR
863RANLIB
864CPP
865CXX
866CXXFLAGS
867ac_ct_CXX
868CXXDEPMODE
869am__fastdepCXX_TRUE
870am__fastdepCXX_FALSE
871CXXCPP
872F77
873FFLAGS
874ac_ct_F77
875LIBTOOL
dd184caf 876dblibrary
ac40fd9e 877makedatprog_target
dd184caf 878makedatprogpath
879LIBOBJS
880LTLIBOBJS'
d9898ee8 881ac_subst_files=''
dd184caf 882 ac_precious_vars='build_alias
883host_alias
884target_alias
885CC
886CFLAGS
887LDFLAGS
888LIBS
889CPPFLAGS
890CPP
891CXX
892CXXFLAGS
893CCC
894CXXCPP
895F77
896FFLAGS'
897
d9898ee8 898
899# Initialize some variables set by options.
900ac_init_help=
901ac_init_version=false
902# The variables have the same names as the options, with
903# dashes changed to underlines.
904cache_file=/dev/null
905exec_prefix=NONE
906no_create=
907no_recursion=
908prefix=NONE
909program_prefix=NONE
910program_suffix=NONE
911program_transform_name=s,x,x,
912silent=
913site=
914srcdir=
915verbose=
916x_includes=NONE
917x_libraries=NONE
918
919# Installation directory options.
920# These are left unexpanded so users can "make install exec_prefix=/foo"
921# and all the variables that are supposed to be based on exec_prefix
922# by default will actually change.
923# Use braces instead of parens because sh, perl, etc. also accept them.
dd184caf 924# (The list follows the same order as the GNU Coding Standards.)
d9898ee8 925bindir='${exec_prefix}/bin'
926sbindir='${exec_prefix}/sbin'
927libexecdir='${exec_prefix}/libexec'
dd184caf 928datarootdir='${prefix}/share'
929datadir='${datarootdir}'
d9898ee8 930sysconfdir='${prefix}/etc'
931sharedstatedir='${prefix}/com'
932localstatedir='${prefix}/var'
d9898ee8 933includedir='${prefix}/include'
934oldincludedir='/usr/include'
dd184caf 935docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
936infodir='${datarootdir}/info'
937htmldir='${docdir}'
938dvidir='${docdir}'
939pdfdir='${docdir}'
940psdir='${docdir}'
941libdir='${exec_prefix}/lib'
942localedir='${datarootdir}/locale'
943mandir='${datarootdir}/man'
d9898ee8 944
945ac_prev=
dd184caf 946ac_dashdash=
d9898ee8 947for ac_option
948do
949 # If the previous option needs an argument, assign it.
950 if test -n "$ac_prev"; then
dd184caf 951 eval $ac_prev=\$ac_option
d9898ee8 952 ac_prev=
953 continue
954 fi
955
dd184caf 956 case $ac_option in
957 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
958 *) ac_optarg=yes ;;
959 esac
d9898ee8 960
961 # Accept the important Cygnus configure options, so we can diagnose typos.
962
dd184caf 963 case $ac_dashdash$ac_option in
964 --)
965 ac_dashdash=yes ;;
d9898ee8 966
967 -bindir | --bindir | --bindi | --bind | --bin | --bi)
968 ac_prev=bindir ;;
969 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
970 bindir=$ac_optarg ;;
971
972 -build | --build | --buil | --bui | --bu)
973 ac_prev=build_alias ;;
974 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
975 build_alias=$ac_optarg ;;
976
977 -cache-file | --cache-file | --cache-fil | --cache-fi \
978 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
979 ac_prev=cache_file ;;
980 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
981 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
982 cache_file=$ac_optarg ;;
983
984 --config-cache | -C)
985 cache_file=config.cache ;;
986
dd184caf 987 -datadir | --datadir | --datadi | --datad)
d9898ee8 988 ac_prev=datadir ;;
dd184caf 989 -datadir=* | --datadir=* | --datadi=* | --datad=*)
d9898ee8 990 datadir=$ac_optarg ;;
991
dd184caf 992 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
993 | --dataroo | --dataro | --datar)
994 ac_prev=datarootdir ;;
995 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
996 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
997 datarootdir=$ac_optarg ;;
998
d9898ee8 999 -disable-* | --disable-*)
1000 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1001 # Reject names that are not valid shell variable names.
dd184caf 1002 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
d9898ee8 1003 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1004 { (exit 1); exit 1; }; }
dd184caf 1005 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1006 eval enable_$ac_feature=no ;;
1007
1008 -docdir | --docdir | --docdi | --doc | --do)
1009 ac_prev=docdir ;;
1010 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1011 docdir=$ac_optarg ;;
1012
1013 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1014 ac_prev=dvidir ;;
1015 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1016 dvidir=$ac_optarg ;;
d9898ee8 1017
1018 -enable-* | --enable-*)
1019 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1020 # Reject names that are not valid shell variable names.
dd184caf 1021 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
d9898ee8 1022 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1023 { (exit 1); exit 1; }; }
dd184caf 1024 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1025 eval enable_$ac_feature=\$ac_optarg ;;
d9898ee8 1026
1027 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1028 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1029 | --exec | --exe | --ex)
1030 ac_prev=exec_prefix ;;
1031 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1032 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1033 | --exec=* | --exe=* | --ex=*)
1034 exec_prefix=$ac_optarg ;;
1035
1036 -gas | --gas | --ga | --g)
1037 # Obsolete; use --with-gas.
1038 with_gas=yes ;;
1039
1040 -help | --help | --hel | --he | -h)
1041 ac_init_help=long ;;
1042 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1043 ac_init_help=recursive ;;
1044 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1045 ac_init_help=short ;;
1046
1047 -host | --host | --hos | --ho)
1048 ac_prev=host_alias ;;
1049 -host=* | --host=* | --hos=* | --ho=*)
1050 host_alias=$ac_optarg ;;
1051
dd184caf 1052 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1053 ac_prev=htmldir ;;
1054 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1055 | --ht=*)
1056 htmldir=$ac_optarg ;;
1057
d9898ee8 1058 -includedir | --includedir | --includedi | --included | --include \
1059 | --includ | --inclu | --incl | --inc)
1060 ac_prev=includedir ;;
1061 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1062 | --includ=* | --inclu=* | --incl=* | --inc=*)
1063 includedir=$ac_optarg ;;
1064
1065 -infodir | --infodir | --infodi | --infod | --info | --inf)
1066 ac_prev=infodir ;;
1067 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1068 infodir=$ac_optarg ;;
1069
1070 -libdir | --libdir | --libdi | --libd)
1071 ac_prev=libdir ;;
1072 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1073 libdir=$ac_optarg ;;
1074
1075 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1076 | --libexe | --libex | --libe)
1077 ac_prev=libexecdir ;;
1078 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1079 | --libexe=* | --libex=* | --libe=*)
1080 libexecdir=$ac_optarg ;;
1081
dd184caf 1082 -localedir | --localedir | --localedi | --localed | --locale)
1083 ac_prev=localedir ;;
1084 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1085 localedir=$ac_optarg ;;
1086
d9898ee8 1087 -localstatedir | --localstatedir | --localstatedi | --localstated \
dd184caf 1088 | --localstate | --localstat | --localsta | --localst | --locals)
d9898ee8 1089 ac_prev=localstatedir ;;
1090 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
dd184caf 1091 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
d9898ee8 1092 localstatedir=$ac_optarg ;;
1093
1094 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1095 ac_prev=mandir ;;
1096 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1097 mandir=$ac_optarg ;;
1098
1099 -nfp | --nfp | --nf)
1100 # Obsolete; use --without-fp.
1101 with_fp=no ;;
1102
1103 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1104 | --no-cr | --no-c | -n)
1105 no_create=yes ;;
1106
1107 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1108 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1109 no_recursion=yes ;;
1110
1111 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1112 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1113 | --oldin | --oldi | --old | --ol | --o)
1114 ac_prev=oldincludedir ;;
1115 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1116 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1117 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1118 oldincludedir=$ac_optarg ;;
1119
1120 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1121 ac_prev=prefix ;;
1122 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1123 prefix=$ac_optarg ;;
1124
1125 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1126 | --program-pre | --program-pr | --program-p)
1127 ac_prev=program_prefix ;;
1128 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1129 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1130 program_prefix=$ac_optarg ;;
1131
1132 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1133 | --program-suf | --program-su | --program-s)
1134 ac_prev=program_suffix ;;
1135 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1136 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1137 program_suffix=$ac_optarg ;;
1138
1139 -program-transform-name | --program-transform-name \
1140 | --program-transform-nam | --program-transform-na \
1141 | --program-transform-n | --program-transform- \
1142 | --program-transform | --program-transfor \
1143 | --program-transfo | --program-transf \
1144 | --program-trans | --program-tran \
1145 | --progr-tra | --program-tr | --program-t)
1146 ac_prev=program_transform_name ;;
1147 -program-transform-name=* | --program-transform-name=* \
1148 | --program-transform-nam=* | --program-transform-na=* \
1149 | --program-transform-n=* | --program-transform-=* \
1150 | --program-transform=* | --program-transfor=* \
1151 | --program-transfo=* | --program-transf=* \
1152 | --program-trans=* | --program-tran=* \
1153 | --progr-tra=* | --program-tr=* | --program-t=*)
1154 program_transform_name=$ac_optarg ;;
1155
dd184caf 1156 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1157 ac_prev=pdfdir ;;
1158 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1159 pdfdir=$ac_optarg ;;
1160
1161 -psdir | --psdir | --psdi | --psd | --ps)
1162 ac_prev=psdir ;;
1163 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1164 psdir=$ac_optarg ;;
1165
d9898ee8 1166 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1167 | -silent | --silent | --silen | --sile | --sil)
1168 silent=yes ;;
1169
1170 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1171 ac_prev=sbindir ;;
1172 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1173 | --sbi=* | --sb=*)
1174 sbindir=$ac_optarg ;;
1175
1176 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1177 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1178 | --sharedst | --shareds | --shared | --share | --shar \
1179 | --sha | --sh)
1180 ac_prev=sharedstatedir ;;
1181 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1182 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1183 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1184 | --sha=* | --sh=*)
1185 sharedstatedir=$ac_optarg ;;
1186
1187 -site | --site | --sit)
1188 ac_prev=site ;;
1189 -site=* | --site=* | --sit=*)
1190 site=$ac_optarg ;;
1191
1192 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1193 ac_prev=srcdir ;;
1194 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1195 srcdir=$ac_optarg ;;
1196
1197 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1198 | --syscon | --sysco | --sysc | --sys | --sy)
1199 ac_prev=sysconfdir ;;
1200 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1201 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1202 sysconfdir=$ac_optarg ;;
1203
1204 -target | --target | --targe | --targ | --tar | --ta | --t)
1205 ac_prev=target_alias ;;
1206 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1207 target_alias=$ac_optarg ;;
1208
1209 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1210 verbose=yes ;;
1211
1212 -version | --version | --versio | --versi | --vers | -V)
1213 ac_init_version=: ;;
1214
1215 -with-* | --with-*)
1216 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1217 # Reject names that are not valid shell variable names.
dd184caf 1218 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
d9898ee8 1219 { echo "$as_me: error: invalid package name: $ac_package" >&2
1220 { (exit 1); exit 1; }; }
dd184caf 1221 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1222 eval with_$ac_package=\$ac_optarg ;;
d9898ee8 1223
1224 -without-* | --without-*)
1225 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1226 # Reject names that are not valid shell variable names.
dd184caf 1227 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
d9898ee8 1228 { echo "$as_me: error: invalid package name: $ac_package" >&2
1229 { (exit 1); exit 1; }; }
dd184caf 1230 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1231 eval with_$ac_package=no ;;
d9898ee8 1232
1233 --x)
1234 # Obsolete; use --with-x.
1235 with_x=yes ;;
1236
1237 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1238 | --x-incl | --x-inc | --x-in | --x-i)
1239 ac_prev=x_includes ;;
1240 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1241 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1242 x_includes=$ac_optarg ;;
1243
1244 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1245 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1246 ac_prev=x_libraries ;;
1247 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1248 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1249 x_libraries=$ac_optarg ;;
1250
1251 -*) { echo "$as_me: error: unrecognized option: $ac_option
1252Try \`$0 --help' for more information." >&2
1253 { (exit 1); exit 1; }; }
1254 ;;
1255
1256 *=*)
1257 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1258 # Reject names that are not valid shell variable names.
1259 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1260 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1261 { (exit 1); exit 1; }; }
dd184caf 1262 eval $ac_envvar=\$ac_optarg
d9898ee8 1263 export $ac_envvar ;;
1264
1265 *)
1266 # FIXME: should be removed in autoconf 3.0.
1267 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1268 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1269 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1270 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1271 ;;
1272
1273 esac
1274done
1275
1276if test -n "$ac_prev"; then
1277 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1278 { echo "$as_me: error: missing argument to $ac_option" >&2
1279 { (exit 1); exit 1; }; }
1280fi
1281
dd184caf 1282# Be sure to have absolute directory names.
1283for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1284 datadir sysconfdir sharedstatedir localstatedir includedir \
1285 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1286 libdir localedir mandir
d9898ee8 1287do
dd184caf 1288 eval ac_val=\$$ac_var
d9898ee8 1289 case $ac_val in
dd184caf 1290 [\\/$]* | ?:[\\/]* ) continue;;
1291 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
d9898ee8 1292 esac
dd184caf 1293 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1294 { (exit 1); exit 1; }; }
d9898ee8 1295done
1296
1297# There might be people who depend on the old broken behavior: `$host'
1298# used to hold the argument of --host etc.
1299# FIXME: To remove some day.
1300build=$build_alias
1301host=$host_alias
1302target=$target_alias
1303
1304# FIXME: To remove some day.
1305if test "x$host_alias" != x; then
1306 if test "x$build_alias" = x; then
1307 cross_compiling=maybe
1308 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1309 If a cross compiler is detected then cross compile mode will be used." >&2
1310 elif test "x$build_alias" != "x$host_alias"; then
1311 cross_compiling=yes
1312 fi
1313fi
1314
1315ac_tool_prefix=
1316test -n "$host_alias" && ac_tool_prefix=$host_alias-
1317
1318test "$silent" = yes && exec 6>/dev/null
1319
1320
dd184caf 1321ac_pwd=`pwd` && test -n "$ac_pwd" &&
1322ac_ls_di=`ls -di .` &&
1323ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1324 { echo "$as_me: error: Working directory cannot be determined" >&2
1325 { (exit 1); exit 1; }; }
1326test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1327 { echo "$as_me: error: pwd does not report name of working directory" >&2
1328 { (exit 1); exit 1; }; }
1329
1330
d9898ee8 1331# Find the source files, if location was not specified.
1332if test -z "$srcdir"; then
1333 ac_srcdir_defaulted=yes
dd184caf 1334 # Try the directory containing this script, then the parent directory.
1335 ac_confdir=`$as_dirname -- "$0" ||
d9898ee8 1336$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1337 X"$0" : 'X\(//\)[^/]' \| \
1338 X"$0" : 'X\(//\)$' \| \
dd184caf 1339 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
d9898ee8 1340echo X"$0" |
dd184caf 1341 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1342 s//\1/
1343 q
1344 }
1345 /^X\(\/\/\)[^/].*/{
1346 s//\1/
1347 q
1348 }
1349 /^X\(\/\/\)$/{
1350 s//\1/
1351 q
1352 }
1353 /^X\(\/\).*/{
1354 s//\1/
1355 q
1356 }
1357 s/.*/./; q'`
d9898ee8 1358 srcdir=$ac_confdir
dd184caf 1359 if test ! -r "$srcdir/$ac_unique_file"; then
d9898ee8 1360 srcdir=..
1361 fi
1362else
1363 ac_srcdir_defaulted=no
1364fi
dd184caf 1365if test ! -r "$srcdir/$ac_unique_file"; then
1366 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1367 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
d9898ee8 1368 { (exit 1); exit 1; }; }
d9898ee8 1369fi
dd184caf 1370ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1371ac_abs_confdir=`(
1372 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
d9898ee8 1373 { (exit 1); exit 1; }; }
dd184caf 1374 pwd)`
1375# When building in place, set srcdir=.
1376if test "$ac_abs_confdir" = "$ac_pwd"; then
1377 srcdir=.
1378fi
1379# Remove unnecessary trailing slashes from srcdir.
1380# Double slashes in file names in object file debugging info
1381# mess up M-x gdb in Emacs.
1382case $srcdir in
1383*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1384esac
1385for ac_var in $ac_precious_vars; do
1386 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1387 eval ac_env_${ac_var}_value=\$${ac_var}
1388 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1389 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1390done
d9898ee8 1391
1392#
1393# Report the --help message.
1394#
1395if test "$ac_init_help" = "long"; then
1396 # Omit some internal or obsolete options to make the list less imposing.
1397 # This message is too long to be a string in the A/UX 3.1 sh.
1398 cat <<_ACEOF
1399\`configure' configures makedat 0.60 to adapt to many kinds of systems.
1400
1401Usage: $0 [OPTION]... [VAR=VALUE]...
1402
1403To assign environment variables (e.g., CC, CFLAGS...), specify them as
1404VAR=VALUE. See below for descriptions of some of the useful variables.
1405
1406Defaults for the options are specified in brackets.
1407
1408Configuration:
1409 -h, --help display this help and exit
1410 --help=short display options specific to this package
1411 --help=recursive display the short help of all the included packages
1412 -V, --version display version information and exit
1413 -q, --quiet, --silent do not print \`checking...' messages
1414 --cache-file=FILE cache test results in FILE [disabled]
1415 -C, --config-cache alias for \`--cache-file=config.cache'
1416 -n, --no-create do not create output files
1417 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1418
d9898ee8 1419Installation directories:
1420 --prefix=PREFIX install architecture-independent files in PREFIX
1421 [$ac_default_prefix]
1422 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1423 [PREFIX]
1424
1425By default, \`make install' will install all the files in
1426\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1427an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1428for instance \`--prefix=\$HOME'.
1429
1430For better control, use the options below.
1431
1432Fine tuning of the installation directories:
1433 --bindir=DIR user executables [EPREFIX/bin]
1434 --sbindir=DIR system admin executables [EPREFIX/sbin]
1435 --libexecdir=DIR program executables [EPREFIX/libexec]
d9898ee8 1436 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1437 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1438 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1439 --libdir=DIR object code libraries [EPREFIX/lib]
1440 --includedir=DIR C header files [PREFIX/include]
1441 --oldincludedir=DIR C header files for non-gcc [/usr/include]
dd184caf 1442 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1443 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1444 --infodir=DIR info documentation [DATAROOTDIR/info]
1445 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1446 --mandir=DIR man documentation [DATAROOTDIR/man]
1447 --docdir=DIR documentation root [DATAROOTDIR/doc/makedat]
1448 --htmldir=DIR html documentation [DOCDIR]
1449 --dvidir=DIR dvi documentation [DOCDIR]
1450 --pdfdir=DIR pdf documentation [DOCDIR]
1451 --psdir=DIR ps documentation [DOCDIR]
d9898ee8 1452_ACEOF
1453
1454 cat <<\_ACEOF
1455
1456Program names:
1457 --program-prefix=PREFIX prepend PREFIX to installed program names
1458 --program-suffix=SUFFIX append SUFFIX to installed program names
1459 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1460
1461System types:
1462 --build=BUILD configure for building on BUILD [guessed]
1463 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1464_ACEOF
1465fi
1466
1467if test -n "$ac_init_help"; then
1468 case $ac_init_help in
1469 short | recursive ) echo "Configuration of makedat 0.60:";;
1470 esac
1471 cat <<\_ACEOF
1472
1473Optional Features:
1474 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1475 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1476 --disable-dependency-tracking speeds up one-time build
1477 --enable-dependency-tracking do not reject slow dependency extractors
dd184caf 1478 --enable-shared[=PKGS] build shared libraries [default=yes]
1479 --enable-static[=PKGS] build static libraries [default=yes]
d9898ee8 1480 --enable-fast-install[=PKGS]
1481 optimize for fast installation [default=yes]
1482 --disable-libtool-lock avoid locking (might break parallel builds)
1483
1484Optional Packages:
1485 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1486 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1487 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1488 --with-pic try to use only PIC/non-PIC objects [default=use
1489 both]
dd184caf 1490 --with-tags[=TAGS] include additional configurations [automatic]
d9898ee8 1491 --with-makedatprog=filename Installed location and name of makedatprog
1492
1493Some influential environment variables:
1494 CC C compiler command
1495 CFLAGS C compiler flags
1496 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1497 nonstandard directory <lib dir>
dd184caf 1498 LIBS libraries to pass to the linker, e.g. -l<library>
1499 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1500 you have headers in a nonstandard directory <include dir>
d9898ee8 1501 CPP C preprocessor
1502 CXX C++ compiler command
1503 CXXFLAGS C++ compiler flags
1504 CXXCPP C++ preprocessor
1505 F77 Fortran 77 compiler command
1506 FFLAGS Fortran 77 compiler flags
1507
1508Use these variables to override the choices made by `configure' or to help
1509it to find libraries and programs with nonstandard names/locations.
1510
1511Report bugs to <courier-users@lists.sourceforge.net>.
1512_ACEOF
dd184caf 1513ac_status=$?
d9898ee8 1514fi
1515
1516if test "$ac_init_help" = "recursive"; then
1517 # If there are subdirs, report their specific --help.
d9898ee8 1518 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
dd184caf 1519 test -d "$ac_dir" || continue
d9898ee8 1520 ac_builddir=.
1521
dd184caf 1522case "$ac_dir" in
1523.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1524*)
d9898ee8 1525 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
dd184caf 1526 # A ".." for each directory in $ac_dir_suffix.
1527 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1528 case $ac_top_builddir_sub in
1529 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1530 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1531 esac ;;
1532esac
1533ac_abs_top_builddir=$ac_pwd
1534ac_abs_builddir=$ac_pwd$ac_dir_suffix
1535# for backward compatibility:
1536ac_top_builddir=$ac_top_build_prefix
d9898ee8 1537
1538case $srcdir in
dd184caf 1539 .) # We are building in place.
d9898ee8 1540 ac_srcdir=.
dd184caf 1541 ac_top_srcdir=$ac_top_builddir_sub
1542 ac_abs_top_srcdir=$ac_pwd ;;
1543 [\\/]* | ?:[\\/]* ) # Absolute name.
d9898ee8 1544 ac_srcdir=$srcdir$ac_dir_suffix;
dd184caf 1545 ac_top_srcdir=$srcdir
1546 ac_abs_top_srcdir=$srcdir ;;
1547 *) # Relative name.
1548 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1549 ac_top_srcdir=$ac_top_build_prefix$srcdir
1550 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
d9898ee8 1551esac
dd184caf 1552ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1553
1554 cd "$ac_dir" || { ac_status=$?; continue; }
1555 # Check for guested configure.
1556 if test -f "$ac_srcdir/configure.gnu"; then
1557 echo &&
1558 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1559 elif test -f "$ac_srcdir/configure"; then
1560 echo &&
1561 $SHELL "$ac_srcdir/configure" --help=recursive
d9898ee8 1562 else
1563 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
dd184caf 1564 fi || ac_status=$?
1565 cd "$ac_pwd" || { ac_status=$?; break; }
d9898ee8 1566 done
1567fi
1568
dd184caf 1569test -n "$ac_init_help" && exit $ac_status
d9898ee8 1570if $ac_init_version; then
1571 cat <<\_ACEOF
1572makedat configure 0.60
dd184caf 1573generated by GNU Autoconf 2.61
d9898ee8 1574
dd184caf 1575Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15762002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
d9898ee8 1577This configure script is free software; the Free Software Foundation
1578gives unlimited permission to copy, distribute and modify it.
1579_ACEOF
dd184caf 1580 exit
d9898ee8 1581fi
dd184caf 1582cat >config.log <<_ACEOF
d9898ee8 1583This file contains any messages produced by compilers while
1584running configure, to aid debugging if configure makes a mistake.
1585
1586It was created by makedat $as_me 0.60, which was
dd184caf 1587generated by GNU Autoconf 2.61. Invocation command line was
d9898ee8 1588
1589 $ $0 $@
1590
1591_ACEOF
dd184caf 1592exec 5>>config.log
d9898ee8 1593{
1594cat <<_ASUNAME
1595## --------- ##
1596## Platform. ##
1597## --------- ##
1598
1599hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1600uname -m = `(uname -m) 2>/dev/null || echo unknown`
1601uname -r = `(uname -r) 2>/dev/null || echo unknown`
1602uname -s = `(uname -s) 2>/dev/null || echo unknown`
1603uname -v = `(uname -v) 2>/dev/null || echo unknown`
1604
1605/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1606/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1607
1608/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1609/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1610/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
dd184caf 1611/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
d9898ee8 1612/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1613/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1614/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1615
1616_ASUNAME
1617
1618as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1619for as_dir in $PATH
1620do
1621 IFS=$as_save_IFS
1622 test -z "$as_dir" && as_dir=.
1623 echo "PATH: $as_dir"
1624done
dd184caf 1625IFS=$as_save_IFS
d9898ee8 1626
1627} >&5
1628
1629cat >&5 <<_ACEOF
1630
1631
1632## ----------- ##
1633## Core tests. ##
1634## ----------- ##
1635
1636_ACEOF
1637
1638
1639# Keep a trace of the command line.
1640# Strip out --no-create and --no-recursion so they do not pile up.
1641# Strip out --silent because we don't want to record it for future runs.
1642# Also quote any args containing shell meta-characters.
1643# Make two passes to allow for proper duplicate-argument suppression.
1644ac_configure_args=
1645ac_configure_args0=
1646ac_configure_args1=
d9898ee8 1647ac_must_keep_next=false
1648for ac_pass in 1 2
1649do
1650 for ac_arg
1651 do
1652 case $ac_arg in
1653 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1654 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1655 | -silent | --silent | --silen | --sile | --sil)
1656 continue ;;
dd184caf 1657 *\'*)
d9898ee8 1658 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1659 esac
1660 case $ac_pass in
1661 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1662 2)
1663 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1664 if test $ac_must_keep_next = true; then
1665 ac_must_keep_next=false # Got value, back to normal.
1666 else
1667 case $ac_arg in
1668 *=* | --config-cache | -C | -disable-* | --disable-* \
1669 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1670 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1671 | -with-* | --with-* | -without-* | --without-* | --x)
1672 case "$ac_configure_args0 " in
1673 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1674 esac
1675 ;;
1676 -* ) ac_must_keep_next=true ;;
1677 esac
1678 fi
dd184caf 1679 ac_configure_args="$ac_configure_args '$ac_arg'"
d9898ee8 1680 ;;
1681 esac
1682 done
1683done
1684$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1685$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1686
1687# When interrupted or exit'd, cleanup temporary files, and complete
1688# config.log. We remove comments because anyway the quotes in there
1689# would cause problems or look ugly.
dd184caf 1690# WARNING: Use '\'' to represent an apostrophe within the trap.
1691# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
d9898ee8 1692trap 'exit_status=$?
1693 # Save into config.log some information that might help in debugging.
1694 {
1695 echo
1696
1697 cat <<\_ASBOX
1698## ---------------- ##
1699## Cache variables. ##
1700## ---------------- ##
1701_ASBOX
1702 echo
1703 # The following way of writing the cache mishandles newlines in values,
dd184caf 1704(
1705 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1706 eval ac_val=\$$ac_var
1707 case $ac_val in #(
1708 *${as_nl}*)
1709 case $ac_var in #(
1710 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1711echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1712 esac
1713 case $ac_var in #(
1714 _ | IFS | as_nl) ;; #(
1715 *) $as_unset $ac_var ;;
1716 esac ;;
1717 esac
1718 done
d9898ee8 1719 (set) 2>&1 |
dd184caf 1720 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1721 *${as_nl}ac_space=\ *)
d9898ee8 1722 sed -n \
dd184caf 1723 "s/'\''/'\''\\\\'\'''\''/g;
1724 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1725 ;; #(
d9898ee8 1726 *)
dd184caf 1727 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
d9898ee8 1728 ;;
dd184caf 1729 esac |
1730 sort
1731)
d9898ee8 1732 echo
1733
1734 cat <<\_ASBOX
1735## ----------------- ##
1736## Output variables. ##
1737## ----------------- ##
1738_ASBOX
1739 echo
1740 for ac_var in $ac_subst_vars
1741 do
dd184caf 1742 eval ac_val=\$$ac_var
1743 case $ac_val in
1744 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1745 esac
1746 echo "$ac_var='\''$ac_val'\''"
d9898ee8 1747 done | sort
1748 echo
1749
1750 if test -n "$ac_subst_files"; then
1751 cat <<\_ASBOX
dd184caf 1752## ------------------- ##
1753## File substitutions. ##
1754## ------------------- ##
d9898ee8 1755_ASBOX
1756 echo
1757 for ac_var in $ac_subst_files
1758 do
dd184caf 1759 eval ac_val=\$$ac_var
1760 case $ac_val in
1761 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1762 esac
1763 echo "$ac_var='\''$ac_val'\''"
d9898ee8 1764 done | sort
1765 echo
1766 fi
1767
1768 if test -s confdefs.h; then
1769 cat <<\_ASBOX
1770## ----------- ##
1771## confdefs.h. ##
1772## ----------- ##
1773_ASBOX
1774 echo
dd184caf 1775 cat confdefs.h
d9898ee8 1776 echo
1777 fi
1778 test "$ac_signal" != 0 &&
1779 echo "$as_me: caught signal $ac_signal"
1780 echo "$as_me: exit $exit_status"
1781 } >&5
dd184caf 1782 rm -f core *.core core.conftest.* &&
1783 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
d9898ee8 1784 exit $exit_status
dd184caf 1785' 0
d9898ee8 1786for ac_signal in 1 2 13 15; do
1787 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1788done
1789ac_signal=0
1790
1791# confdefs.h avoids OS command line length limits that DEFS can exceed.
dd184caf 1792rm -f -r conftest* confdefs.h
d9898ee8 1793
1794# Predefined preprocessor variables.
1795
1796cat >>confdefs.h <<_ACEOF
1797#define PACKAGE_NAME "$PACKAGE_NAME"
1798_ACEOF
1799
1800
1801cat >>confdefs.h <<_ACEOF
1802#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1803_ACEOF
1804
1805
1806cat >>confdefs.h <<_ACEOF
1807#define PACKAGE_VERSION "$PACKAGE_VERSION"
1808_ACEOF
1809
1810
1811cat >>confdefs.h <<_ACEOF
1812#define PACKAGE_STRING "$PACKAGE_STRING"
1813_ACEOF
1814
1815
1816cat >>confdefs.h <<_ACEOF
1817#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1818_ACEOF
1819
1820
1821# Let the site file select an alternate cache file if it wants to.
1822# Prefer explicitly selected file to automatically selected ones.
dd184caf 1823if test -n "$CONFIG_SITE"; then
1824 set x "$CONFIG_SITE"
1825elif test "x$prefix" != xNONE; then
1826 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1827else
1828 set x "$ac_default_prefix/share/config.site" \
1829 "$ac_default_prefix/etc/config.site"
d9898ee8 1830fi
dd184caf 1831shift
1832for ac_site_file
1833do
d9898ee8 1834 if test -r "$ac_site_file"; then
1835 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1836echo "$as_me: loading site script $ac_site_file" >&6;}
1837 sed 's/^/| /' "$ac_site_file" >&5
1838 . "$ac_site_file"
1839 fi
1840done
1841
1842if test -r "$cache_file"; then
1843 # Some versions of bash will fail to source /dev/null (special
1844 # files actually), so we avoid doing that.
1845 if test -f "$cache_file"; then
1846 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1847echo "$as_me: loading cache $cache_file" >&6;}
1848 case $cache_file in
dd184caf 1849 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1850 *) . "./$cache_file";;
d9898ee8 1851 esac
1852 fi
1853else
1854 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1855echo "$as_me: creating cache $cache_file" >&6;}
1856 >$cache_file
1857fi
1858
1859# Check that the precious variables saved in the cache have kept the same
1860# value.
1861ac_cache_corrupted=false
dd184caf 1862for ac_var in $ac_precious_vars; do
d9898ee8 1863 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1864 eval ac_new_set=\$ac_env_${ac_var}_set
dd184caf 1865 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1866 eval ac_new_val=\$ac_env_${ac_var}_value
d9898ee8 1867 case $ac_old_set,$ac_new_set in
1868 set,)
1869 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1870echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1871 ac_cache_corrupted=: ;;
1872 ,set)
1873 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1874echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1875 ac_cache_corrupted=: ;;
1876 ,);;
1877 *)
1878 if test "x$ac_old_val" != "x$ac_new_val"; then
1879 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1880echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1881 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1882echo "$as_me: former value: $ac_old_val" >&2;}
1883 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1884echo "$as_me: current value: $ac_new_val" >&2;}
1885 ac_cache_corrupted=:
1886 fi;;
1887 esac
1888 # Pass precious variables to config.status.
1889 if test "$ac_new_set" = set; then
1890 case $ac_new_val in
dd184caf 1891 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
d9898ee8 1892 *) ac_arg=$ac_var=$ac_new_val ;;
1893 esac
1894 case " $ac_configure_args " in
1895 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1896 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1897 esac
1898 fi
1899done
1900if $ac_cache_corrupted; then
1901 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1902echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1903 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1904echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1905 { (exit 1); exit 1; }; }
1906fi
1907
d9898ee8 1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
dd184caf 1932ac_ext=c
1933ac_cpp='$CPP $CPPFLAGS'
1934ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1935ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1936ac_compiler_gnu=$ac_cv_c_compiler_gnu
d9898ee8 1937
1938
1939
1940>confdefs.h # Kill PACKAGE_ macros
1941
1942
dd184caf 1943am__api_version='1.10'
1944
d9898ee8 1945ac_aux_dir=
dd184caf 1946for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1947 if test -f "$ac_dir/install-sh"; then
d9898ee8 1948 ac_aux_dir=$ac_dir
1949 ac_install_sh="$ac_aux_dir/install-sh -c"
1950 break
dd184caf 1951 elif test -f "$ac_dir/install.sh"; then
d9898ee8 1952 ac_aux_dir=$ac_dir
1953 ac_install_sh="$ac_aux_dir/install.sh -c"
1954 break
dd184caf 1955 elif test -f "$ac_dir/shtool"; then
d9898ee8 1956 ac_aux_dir=$ac_dir
1957 ac_install_sh="$ac_aux_dir/shtool install -c"
1958 break
1959 fi
1960done
1961if test -z "$ac_aux_dir"; then
dd184caf 1962 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1963echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
d9898ee8 1964 { (exit 1); exit 1; }; }
1965fi
dd184caf 1966
1967# These three variables are undocumented and unsupported,
1968# and are intended to be withdrawn in a future Autoconf release.
1969# They can cause serious problems if a builder's source tree is in a directory
1970# whose full name contains unusual characters.
1971ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1972ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1973ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1974
d9898ee8 1975
1976# Find a good install program. We prefer a C program (faster),
1977# so one script is as good as another. But avoid the broken or
1978# incompatible versions:
1979# SysV /etc/install, /usr/sbin/install
1980# SunOS /usr/etc/install
1981# IRIX /sbin/install
1982# AIX /bin/install
1983# AmigaOS /C/install, which installs bootblocks on floppy discs
1984# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1985# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1986# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1987# OS/2's system install, which has a completely different semantic
1988# ./install, which can be erroneously created by make from ./install.sh.
dd184caf 1989{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1990echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
d9898ee8 1991if test -z "$INSTALL"; then
1992if test "${ac_cv_path_install+set}" = set; then
1993 echo $ECHO_N "(cached) $ECHO_C" >&6
1994else
1995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1996for as_dir in $PATH
1997do
1998 IFS=$as_save_IFS
1999 test -z "$as_dir" && as_dir=.
2000 # Account for people who put trailing slashes in PATH elements.
2001case $as_dir/ in
2002 ./ | .// | /cC/* | \
2003 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2004 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2005 /usr/ucb/* ) ;;
2006 *)
2007 # OSF1 and SCO ODT 3.0 have their own names for install.
2008 # Don't use installbsd from OSF since it installs stuff as root
2009 # by default.
2010 for ac_prog in ginstall scoinst install; do
2011 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 2012 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
d9898ee8 2013 if test $ac_prog = install &&
2014 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2015 # AIX install. It has an incompatible calling convention.
2016 :
2017 elif test $ac_prog = install &&
2018 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2019 # program-specific install script used by HP pwplus--don't use.
2020 :
2021 else
2022 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2023 break 3
2024 fi
2025 fi
2026 done
2027 done
2028 ;;
2029esac
2030done
dd184caf 2031IFS=$as_save_IFS
d9898ee8 2032
2033
2034fi
2035 if test "${ac_cv_path_install+set}" = set; then
2036 INSTALL=$ac_cv_path_install
2037 else
dd184caf 2038 # As a last resort, use the slow shell script. Don't cache a
2039 # value for INSTALL within a source directory, because that will
d9898ee8 2040 # break other packages using the cache if that directory is
dd184caf 2041 # removed, or if the value is a relative name.
d9898ee8 2042 INSTALL=$ac_install_sh
2043 fi
2044fi
dd184caf 2045{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2046echo "${ECHO_T}$INSTALL" >&6; }
d9898ee8 2047
2048# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2049# It thinks the first close brace ends the variable substitution.
2050test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2051
2052test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2053
2054test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2055
dd184caf 2056{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2057echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
d9898ee8 2058# Just in case
2059sleep 1
2060echo timestamp > conftest.file
2061# Do `set' in a subshell so we don't clobber the current shell's
2062# arguments. Must try -L first in case configure is actually a
2063# symlink; some systems play weird games with the mod time of symlinks
2064# (eg FreeBSD returns the mod time of the symlink's containing
2065# directory).
2066if (
2067 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2068 if test "$*" = "X"; then
2069 # -L didn't work.
2070 set X `ls -t $srcdir/configure conftest.file`
2071 fi
2072 rm -f conftest.file
2073 if test "$*" != "X $srcdir/configure conftest.file" \
2074 && test "$*" != "X conftest.file $srcdir/configure"; then
2075
2076 # If neither matched, then we have a broken ls. This can happen
2077 # if, for instance, CONFIG_SHELL is bash and it inherits a
2078 # broken ls alias from the environment. This has actually
2079 # happened. Such a system could not be considered "sane".
2080 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2081alias in your environment" >&5
2082echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2083alias in your environment" >&2;}
2084 { (exit 1); exit 1; }; }
2085 fi
2086
2087 test "$2" = conftest.file
2088 )
2089then
2090 # Ok.
2091 :
2092else
2093 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2094Check your system clock" >&5
2095echo "$as_me: error: newly created file is older than distributed files!
2096Check your system clock" >&2;}
2097 { (exit 1); exit 1; }; }
2098fi
dd184caf 2099{ echo "$as_me:$LINENO: result: yes" >&5
2100echo "${ECHO_T}yes" >&6; }
d9898ee8 2101test "$program_prefix" != NONE &&
dd184caf 2102 program_transform_name="s&^&$program_prefix&;$program_transform_name"
d9898ee8 2103# Use a double $ so make ignores it.
2104test "$program_suffix" != NONE &&
dd184caf 2105 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
d9898ee8 2106# Double any \ or $. echo might interpret backslashes.
2107# By default was `s,x,x', remove it if useless.
2108cat <<\_ACEOF >conftest.sed
2109s/[\\$]/&&/g;s/;s,x,x,$//
2110_ACEOF
2111program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
dd184caf 2112rm -f conftest.sed
d9898ee8 2113
2114# expand $ac_aux_dir to an absolute path
2115am_aux_dir=`cd $ac_aux_dir && pwd`
2116
2117test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2118# Use eval to expand $SHELL
2119if eval "$MISSING --run true"; then
2120 am_missing_run="$MISSING --run "
2121else
2122 am_missing_run=
2123 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2124echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2125fi
2126
dd184caf 2127{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2128echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2129if test -z "$MKDIR_P"; then
2130 if test "${ac_cv_path_mkdir+set}" = set; then
2131 echo $ECHO_N "(cached) $ECHO_C" >&6
2132else
2133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2134for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2135do
2136 IFS=$as_save_IFS
2137 test -z "$as_dir" && as_dir=.
2138 for ac_prog in mkdir gmkdir; do
2139 for ac_exec_ext in '' $ac_executable_extensions; do
2140 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2141 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2142 'mkdir (GNU coreutils) '* | \
2143 'mkdir (coreutils) '* | \
2144 'mkdir (fileutils) '4.1*)
2145 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2146 break 3;;
2147 esac
2148 done
2149 done
2150done
2151IFS=$as_save_IFS
2152
2153fi
2154
2155 if test "${ac_cv_path_mkdir+set}" = set; then
2156 MKDIR_P="$ac_cv_path_mkdir -p"
d9898ee8 2157 else
dd184caf 2158 # As a last resort, use the slow shell script. Don't cache a
2159 # value for MKDIR_P within a source directory, because that will
2160 # break other packages using the cache if that directory is
2161 # removed, or if the value is a relative name.
2162 test -d ./--version && rmdir ./--version
2163 MKDIR_P="$ac_install_sh -d"
d9898ee8 2164 fi
2165fi
dd184caf 2166{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2167echo "${ECHO_T}$MKDIR_P" >&6; }
2168
2169mkdir_p="$MKDIR_P"
2170case $mkdir_p in
2171 [\\/$]* | ?:[\\/]*) ;;
2172 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2173esac
d9898ee8 2174
2175for ac_prog in gawk mawk nawk awk
2176do
2177 # Extract the first word of "$ac_prog", so it can be a program name with args.
2178set dummy $ac_prog; ac_word=$2
dd184caf 2179{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2180echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2181if test "${ac_cv_prog_AWK+set}" = set; then
2182 echo $ECHO_N "(cached) $ECHO_C" >&6
2183else
2184 if test -n "$AWK"; then
2185 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2186else
2187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2188for as_dir in $PATH
2189do
2190 IFS=$as_save_IFS
2191 test -z "$as_dir" && as_dir=.
2192 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 2193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2194 ac_cv_prog_AWK="$ac_prog"
2195 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2196 break 2
2197 fi
2198done
2199done
dd184caf 2200IFS=$as_save_IFS
d9898ee8 2201
2202fi
2203fi
2204AWK=$ac_cv_prog_AWK
2205if test -n "$AWK"; then
dd184caf 2206 { echo "$as_me:$LINENO: result: $AWK" >&5
2207echo "${ECHO_T}$AWK" >&6; }
d9898ee8 2208else
dd184caf 2209 { echo "$as_me:$LINENO: result: no" >&5
2210echo "${ECHO_T}no" >&6; }
d9898ee8 2211fi
2212
dd184caf 2213
d9898ee8 2214 test -n "$AWK" && break
2215done
2216
dd184caf 2217{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2218echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2219set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2220if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 2221 echo $ECHO_N "(cached) $ECHO_C" >&6
2222else
2223 cat >conftest.make <<\_ACEOF
dd184caf 2224SHELL = /bin/sh
d9898ee8 2225all:
dd184caf 2226 @echo '@@@%%%=$(MAKE)=@@@%%%'
d9898ee8 2227_ACEOF
2228# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
dd184caf 2229case `${MAKE-make} -f conftest.make 2>/dev/null` in
2230 *@@@%%%=?*=@@@%%%*)
2231 eval ac_cv_prog_make_${ac_make}_set=yes;;
2232 *)
2233 eval ac_cv_prog_make_${ac_make}_set=no;;
2234esac
d9898ee8 2235rm -f conftest.make
2236fi
dd184caf 2237if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2238 { echo "$as_me:$LINENO: result: yes" >&5
2239echo "${ECHO_T}yes" >&6; }
d9898ee8 2240 SET_MAKE=
2241else
dd184caf 2242 { echo "$as_me:$LINENO: result: no" >&5
2243echo "${ECHO_T}no" >&6; }
d9898ee8 2244 SET_MAKE="MAKE=${MAKE-make}"
2245fi
2246
2247rm -rf .tst 2>/dev/null
2248mkdir .tst 2>/dev/null
2249if test -d .tst; then
2250 am__leading_dot=.
2251else
2252 am__leading_dot=_
2253fi
2254rmdir .tst 2>/dev/null
2255
dd184caf 2256if test "`cd $srcdir && pwd`" != "`pwd`"; then
2257 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2258 # is not polluted with repeated "-I."
2259 am__isrc=' -I$(srcdir)'
2260 # test to see if srcdir already configured
2261 if test -f $srcdir/config.status; then
2262 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
d9898ee8 2263echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2264 { (exit 1); exit 1; }; }
dd184caf 2265 fi
d9898ee8 2266fi
2267
2268# test whether we have cygpath
2269if test -z "$CYGPATH_W"; then
2270 if (cygpath --version) >/dev/null 2>/dev/null; then
2271 CYGPATH_W='cygpath -w'
2272 else
2273 CYGPATH_W=echo
2274 fi
2275fi
2276
2277
2278# Define the identity of the package.
2279 PACKAGE='makedat'
2280 VERSION='0.60'
2281
2282
2283# Some tools Automake needs.
2284
2285ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2286
2287
2288AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2289
2290
2291AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2292
2293
2294AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2295
2296
2297MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2298
dd184caf 2299install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
d9898ee8 2300
2301# Installed binaries are usually stripped using `strip' when the user
2302# run `make install-strip'. However `strip' might not be the right
2303# tool to use in cross-compilation environments, therefore Automake
2304# will honor the `STRIP' environment variable to overrule this program.
2305if test "$cross_compiling" != no; then
2306 if test -n "$ac_tool_prefix"; then
2307 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2308set dummy ${ac_tool_prefix}strip; ac_word=$2
dd184caf 2309{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2310echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2311if test "${ac_cv_prog_STRIP+set}" = set; then
2312 echo $ECHO_N "(cached) $ECHO_C" >&6
2313else
2314 if test -n "$STRIP"; then
2315 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2316else
2317as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2318for as_dir in $PATH
2319do
2320 IFS=$as_save_IFS
2321 test -z "$as_dir" && as_dir=.
2322 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 2323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2324 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2325 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2326 break 2
2327 fi
2328done
2329done
dd184caf 2330IFS=$as_save_IFS
d9898ee8 2331
2332fi
2333fi
2334STRIP=$ac_cv_prog_STRIP
2335if test -n "$STRIP"; then
dd184caf 2336 { echo "$as_me:$LINENO: result: $STRIP" >&5
2337echo "${ECHO_T}$STRIP" >&6; }
d9898ee8 2338else
dd184caf 2339 { echo "$as_me:$LINENO: result: no" >&5
2340echo "${ECHO_T}no" >&6; }
d9898ee8 2341fi
2342
dd184caf 2343
d9898ee8 2344fi
2345if test -z "$ac_cv_prog_STRIP"; then
2346 ac_ct_STRIP=$STRIP
2347 # Extract the first word of "strip", so it can be a program name with args.
2348set dummy strip; ac_word=$2
dd184caf 2349{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2350echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2351if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2352 echo $ECHO_N "(cached) $ECHO_C" >&6
2353else
2354 if test -n "$ac_ct_STRIP"; then
2355 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2356else
2357as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2358for as_dir in $PATH
2359do
2360 IFS=$as_save_IFS
2361 test -z "$as_dir" && as_dir=.
2362 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 2363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2364 ac_cv_prog_ac_ct_STRIP="strip"
2365 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2366 break 2
2367 fi
2368done
2369done
dd184caf 2370IFS=$as_save_IFS
d9898ee8 2371
d9898ee8 2372fi
2373fi
2374ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2375if test -n "$ac_ct_STRIP"; then
dd184caf 2376 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2377echo "${ECHO_T}$ac_ct_STRIP" >&6; }
d9898ee8 2378else
dd184caf 2379 { echo "$as_me:$LINENO: result: no" >&5
2380echo "${ECHO_T}no" >&6; }
d9898ee8 2381fi
2382
dd184caf 2383 if test "x$ac_ct_STRIP" = x; then
2384 STRIP=":"
2385 else
2386 case $cross_compiling:$ac_tool_warned in
2387yes:)
2388{ echo "$as_me:$LINENO: 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." >&5
2391echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2392whose name does not start with the host triplet. If you think this
2393configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2394ac_tool_warned=yes ;;
2395esac
2396 STRIP=$ac_ct_STRIP
2397 fi
d9898ee8 2398else
2399 STRIP="$ac_cv_prog_STRIP"
2400fi
2401
2402fi
dd184caf 2403INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
d9898ee8 2404
2405# We need awk for the "check" target. The system "awk" is bad on
2406# some platforms.
2407# Always define AMTAR for backward compatibility.
2408
2409AMTAR=${AMTAR-"${am_missing_run}tar"}
2410
2411am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2412
2413
2414
2415
2416
2417LPATH="$PATH:/usr/local/bin"
dd184caf 2418ac_config_headers="$ac_config_headers config.h"
d9898ee8 2419
2420
2421ac_ext=c
2422ac_cpp='$CPP $CPPFLAGS'
2423ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2424ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2425ac_compiler_gnu=$ac_cv_c_compiler_gnu
2426if test -n "$ac_tool_prefix"; then
2427 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2428set dummy ${ac_tool_prefix}gcc; ac_word=$2
dd184caf 2429{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2430echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2431if test "${ac_cv_prog_CC+set}" = set; then
2432 echo $ECHO_N "(cached) $ECHO_C" >&6
2433else
2434 if test -n "$CC"; then
2435 ac_cv_prog_CC="$CC" # Let the user override the test.
2436else
2437as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2438for as_dir in $PATH
2439do
2440 IFS=$as_save_IFS
2441 test -z "$as_dir" && as_dir=.
2442 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 2443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2444 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2445 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2446 break 2
2447 fi
2448done
2449done
dd184caf 2450IFS=$as_save_IFS
d9898ee8 2451
2452fi
2453fi
2454CC=$ac_cv_prog_CC
2455if test -n "$CC"; then
dd184caf 2456 { echo "$as_me:$LINENO: result: $CC" >&5
2457echo "${ECHO_T}$CC" >&6; }
d9898ee8 2458else
dd184caf 2459 { echo "$as_me:$LINENO: result: no" >&5
2460echo "${ECHO_T}no" >&6; }
d9898ee8 2461fi
2462
dd184caf 2463
d9898ee8 2464fi
2465if test -z "$ac_cv_prog_CC"; then
2466 ac_ct_CC=$CC
2467 # Extract the first word of "gcc", so it can be a program name with args.
2468set dummy gcc; ac_word=$2
dd184caf 2469{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2470echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2471if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2472 echo $ECHO_N "(cached) $ECHO_C" >&6
2473else
2474 if test -n "$ac_ct_CC"; then
2475 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2476else
2477as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2478for as_dir in $PATH
2479do
2480 IFS=$as_save_IFS
2481 test -z "$as_dir" && as_dir=.
2482 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 2483 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2484 ac_cv_prog_ac_ct_CC="gcc"
2485 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2486 break 2
2487 fi
2488done
2489done
dd184caf 2490IFS=$as_save_IFS
d9898ee8 2491
2492fi
2493fi
2494ac_ct_CC=$ac_cv_prog_ac_ct_CC
2495if test -n "$ac_ct_CC"; then
dd184caf 2496 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2497echo "${ECHO_T}$ac_ct_CC" >&6; }
d9898ee8 2498else
dd184caf 2499 { echo "$as_me:$LINENO: result: no" >&5
2500echo "${ECHO_T}no" >&6; }
d9898ee8 2501fi
2502
dd184caf 2503 if test "x$ac_ct_CC" = x; then
2504 CC=""
2505 else
2506 case $cross_compiling:$ac_tool_warned in
2507yes:)
2508{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2509whose name does not start with the host triplet. If you think this
2510configuration is useful to you, please write to autoconf@gnu.org." >&5
2511echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2512whose name does not start with the host triplet. If you think this
2513configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2514ac_tool_warned=yes ;;
2515esac
2516 CC=$ac_ct_CC
2517 fi
d9898ee8 2518else
2519 CC="$ac_cv_prog_CC"
2520fi
2521
2522if test -z "$CC"; then
dd184caf 2523 if test -n "$ac_tool_prefix"; then
2524 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
d9898ee8 2525set dummy ${ac_tool_prefix}cc; ac_word=$2
dd184caf 2526{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2527echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2528if test "${ac_cv_prog_CC+set}" = set; then
2529 echo $ECHO_N "(cached) $ECHO_C" >&6
2530else
2531 if test -n "$CC"; then
2532 ac_cv_prog_CC="$CC" # Let the user override the test.
2533else
2534as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2535for as_dir in $PATH
2536do
2537 IFS=$as_save_IFS
2538 test -z "$as_dir" && as_dir=.
2539 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 2540 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2541 ac_cv_prog_CC="${ac_tool_prefix}cc"
2542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2543 break 2
2544 fi
2545done
2546done
dd184caf 2547IFS=$as_save_IFS
d9898ee8 2548
2549fi
2550fi
2551CC=$ac_cv_prog_CC
2552if test -n "$CC"; then
dd184caf 2553 { echo "$as_me:$LINENO: result: $CC" >&5
2554echo "${ECHO_T}$CC" >&6; }
d9898ee8 2555else
dd184caf 2556 { echo "$as_me:$LINENO: result: no" >&5
2557echo "${ECHO_T}no" >&6; }
d9898ee8 2558fi
2559
d9898ee8 2560
dd184caf 2561 fi
d9898ee8 2562fi
2563if test -z "$CC"; then
2564 # Extract the first word of "cc", so it can be a program name with args.
2565set dummy cc; ac_word=$2
dd184caf 2566{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2567echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2568if test "${ac_cv_prog_CC+set}" = set; then
2569 echo $ECHO_N "(cached) $ECHO_C" >&6
2570else
2571 if test -n "$CC"; then
2572 ac_cv_prog_CC="$CC" # Let the user override the test.
2573else
2574 ac_prog_rejected=no
2575as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2576for as_dir in $PATH
2577do
2578 IFS=$as_save_IFS
2579 test -z "$as_dir" && as_dir=.
2580 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 2581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2582 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2583 ac_prog_rejected=yes
2584 continue
2585 fi
2586 ac_cv_prog_CC="cc"
2587 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2588 break 2
2589 fi
2590done
2591done
dd184caf 2592IFS=$as_save_IFS
d9898ee8 2593
2594if test $ac_prog_rejected = yes; then
2595 # We found a bogon in the path, so make sure we never use it.
2596 set dummy $ac_cv_prog_CC
2597 shift
2598 if test $# != 0; then
2599 # We chose a different compiler from the bogus one.
2600 # However, it has the same basename, so the bogon will be chosen
2601 # first if we set CC to just the basename; use the full file name.
2602 shift
2603 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2604 fi
2605fi
2606fi
2607fi
2608CC=$ac_cv_prog_CC
2609if test -n "$CC"; then
dd184caf 2610 { echo "$as_me:$LINENO: result: $CC" >&5
2611echo "${ECHO_T}$CC" >&6; }
d9898ee8 2612else
dd184caf 2613 { echo "$as_me:$LINENO: result: no" >&5
2614echo "${ECHO_T}no" >&6; }
d9898ee8 2615fi
2616
dd184caf 2617
d9898ee8 2618fi
2619if test -z "$CC"; then
2620 if test -n "$ac_tool_prefix"; then
dd184caf 2621 for ac_prog in cl.exe
d9898ee8 2622 do
2623 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2624set dummy $ac_tool_prefix$ac_prog; ac_word=$2
dd184caf 2625{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2626echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2627if test "${ac_cv_prog_CC+set}" = set; then
2628 echo $ECHO_N "(cached) $ECHO_C" >&6
2629else
2630 if test -n "$CC"; then
2631 ac_cv_prog_CC="$CC" # Let the user override the test.
2632else
2633as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2634for as_dir in $PATH
2635do
2636 IFS=$as_save_IFS
2637 test -z "$as_dir" && as_dir=.
2638 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 2639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2640 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2641 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2642 break 2
2643 fi
2644done
2645done
dd184caf 2646IFS=$as_save_IFS
d9898ee8 2647
2648fi
2649fi
2650CC=$ac_cv_prog_CC
2651if test -n "$CC"; then
dd184caf 2652 { echo "$as_me:$LINENO: result: $CC" >&5
2653echo "${ECHO_T}$CC" >&6; }
d9898ee8 2654else
dd184caf 2655 { echo "$as_me:$LINENO: result: no" >&5
2656echo "${ECHO_T}no" >&6; }
d9898ee8 2657fi
2658
dd184caf 2659
d9898ee8 2660 test -n "$CC" && break
2661 done
2662fi
2663if test -z "$CC"; then
2664 ac_ct_CC=$CC
dd184caf 2665 for ac_prog in cl.exe
d9898ee8 2666do
2667 # Extract the first word of "$ac_prog", so it can be a program name with args.
2668set dummy $ac_prog; ac_word=$2
dd184caf 2669{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2670echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2671if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2672 echo $ECHO_N "(cached) $ECHO_C" >&6
2673else
2674 if test -n "$ac_ct_CC"; then
2675 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2676else
2677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2678for as_dir in $PATH
2679do
2680 IFS=$as_save_IFS
2681 test -z "$as_dir" && as_dir=.
2682 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 2683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2684 ac_cv_prog_ac_ct_CC="$ac_prog"
2685 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2686 break 2
2687 fi
2688done
2689done
dd184caf 2690IFS=$as_save_IFS
d9898ee8 2691
2692fi
2693fi
2694ac_ct_CC=$ac_cv_prog_ac_ct_CC
2695if test -n "$ac_ct_CC"; then
dd184caf 2696 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2697echo "${ECHO_T}$ac_ct_CC" >&6; }
d9898ee8 2698else
dd184caf 2699 { echo "$as_me:$LINENO: result: no" >&5
2700echo "${ECHO_T}no" >&6; }
d9898ee8 2701fi
2702
dd184caf 2703
d9898ee8 2704 test -n "$ac_ct_CC" && break
2705done
2706
dd184caf 2707 if test "x$ac_ct_CC" = x; then
2708 CC=""
2709 else
2710 case $cross_compiling:$ac_tool_warned in
2711yes:)
2712{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2713whose name does not start with the host triplet. If you think this
2714configuration is useful to you, please write to autoconf@gnu.org." >&5
2715echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2716whose name does not start with the host triplet. If you think this
2717configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2718ac_tool_warned=yes ;;
2719esac
2720 CC=$ac_ct_CC
2721 fi
d9898ee8 2722fi
2723
2724fi
2725
2726
2727test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2728See \`config.log' for more details." >&5
2729echo "$as_me: error: no acceptable C compiler found in \$PATH
2730See \`config.log' for more details." >&2;}
2731 { (exit 1); exit 1; }; }
2732
2733# Provide some information about the compiler.
dd184caf 2734echo "$as_me:$LINENO: checking for C compiler version" >&5
d9898ee8 2735ac_compiler=`set X $ac_compile; echo $2`
dd184caf 2736{ (ac_try="$ac_compiler --version >&5"
2737case "(($ac_try" in
2738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2739 *) ac_try_echo=$ac_try;;
2740esac
2741eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2742 (eval "$ac_compiler --version >&5") 2>&5
d9898ee8 2743 ac_status=$?
2744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2745 (exit $ac_status); }
dd184caf 2746{ (ac_try="$ac_compiler -v >&5"
2747case "(($ac_try" in
2748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2749 *) ac_try_echo=$ac_try;;
2750esac
2751eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2752 (eval "$ac_compiler -v >&5") 2>&5
d9898ee8 2753 ac_status=$?
2754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2755 (exit $ac_status); }
dd184caf 2756{ (ac_try="$ac_compiler -V >&5"
2757case "(($ac_try" in
2758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2759 *) ac_try_echo=$ac_try;;
2760esac
2761eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2762 (eval "$ac_compiler -V >&5") 2>&5
d9898ee8 2763 ac_status=$?
2764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2765 (exit $ac_status); }
2766
2767cat >conftest.$ac_ext <<_ACEOF
2768/* confdefs.h. */
2769_ACEOF
2770cat confdefs.h >>conftest.$ac_ext
2771cat >>conftest.$ac_ext <<_ACEOF
2772/* end confdefs.h. */
2773
2774int
2775main ()
2776{
2777
2778 ;
2779 return 0;
2780}
2781_ACEOF
2782ac_clean_files_save=$ac_clean_files
2783ac_clean_files="$ac_clean_files a.out a.exe b.out"
2784# Try to create an executable without -o first, disregard a.out.
2785# It will help us diagnose broken compilers, and finding out an intuition
2786# of exeext.
dd184caf 2787{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2788echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
d9898ee8 2789ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
dd184caf 2790#
2791# List of possible output files, starting from the most likely.
2792# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2793# only as a last resort. b.out is created by i960 compilers.
2794ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2795#
2796# The IRIX 6 linker writes into existing files which may not be
2797# executable, retaining their permissions. Remove them first so a
2798# subsequent execution test works.
2799ac_rmfiles=
2800for ac_file in $ac_files
2801do
2802 case $ac_file in
2803 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2804 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2805 esac
2806done
2807rm -f $ac_rmfiles
2808
2809if { (ac_try="$ac_link_default"
2810case "(($ac_try" in
2811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2812 *) ac_try_echo=$ac_try;;
2813esac
2814eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2815 (eval "$ac_link_default") 2>&5
d9898ee8 2816 ac_status=$?
2817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2818 (exit $ac_status); }; then
dd184caf 2819 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2820# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2821# in a Makefile. We should not override ac_cv_exeext if it was cached,
2822# so that the user can short-circuit this test for compilers unknown to
2823# Autoconf.
2824for ac_file in $ac_files ''
d9898ee8 2825do
2826 test -f "$ac_file" || continue
2827 case $ac_file in
dd184caf 2828 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
d9898ee8 2829 ;;
2830 [ab].out )
2831 # We found the default executable, but exeext='' is most
2832 # certainly right.
2833 break;;
2834 *.* )
dd184caf 2835 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2836 then :; else
2837 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2838 fi
2839 # We set ac_cv_exeext here because the later test for it is not
2840 # safe: cross compilers may not add the suffix if given an `-o'
2841 # argument, so we may need to know it at that point already.
2842 # Even if this section looks crufty: it has the advantage of
2843 # actually working.
d9898ee8 2844 break;;
2845 * )
2846 break;;
2847 esac
2848done
dd184caf 2849test "$ac_cv_exeext" = no && ac_cv_exeext=
2850
d9898ee8 2851else
dd184caf 2852 ac_file=''
2853fi
2854
2855{ echo "$as_me:$LINENO: result: $ac_file" >&5
2856echo "${ECHO_T}$ac_file" >&6; }
2857if test -z "$ac_file"; then
d9898ee8 2858 echo "$as_me: failed program was:" >&5
2859sed 's/^/| /' conftest.$ac_ext >&5
2860
2861{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2862See \`config.log' for more details." >&5
2863echo "$as_me: error: C compiler cannot create executables
2864See \`config.log' for more details." >&2;}
2865 { (exit 77); exit 77; }; }
2866fi
2867
2868ac_exeext=$ac_cv_exeext
d9898ee8 2869
dd184caf 2870# Check that the compiler produces executables we can run. If not, either
d9898ee8 2871# the compiler is broken, or we cross compile.
dd184caf 2872{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2873echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
d9898ee8 2874# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2875# If not cross compiling, check that we can run a simple program.
2876if test "$cross_compiling" != yes; then
2877 if { ac_try='./$ac_file'
dd184caf 2878 { (case "(($ac_try" in
2879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2880 *) ac_try_echo=$ac_try;;
2881esac
2882eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2883 (eval "$ac_try") 2>&5
d9898ee8 2884 ac_status=$?
2885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2886 (exit $ac_status); }; }; then
2887 cross_compiling=no
2888 else
2889 if test "$cross_compiling" = maybe; then
2890 cross_compiling=yes
2891 else
2892 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2893If you meant to cross compile, use \`--host'.
2894See \`config.log' for more details." >&5
2895echo "$as_me: error: cannot run C compiled programs.
2896If you meant to cross compile, use \`--host'.
2897See \`config.log' for more details." >&2;}
2898 { (exit 1); exit 1; }; }
2899 fi
2900 fi
2901fi
dd184caf 2902{ echo "$as_me:$LINENO: result: yes" >&5
2903echo "${ECHO_T}yes" >&6; }
d9898ee8 2904
2905rm -f a.out a.exe conftest$ac_cv_exeext b.out
2906ac_clean_files=$ac_clean_files_save
dd184caf 2907# Check that the compiler produces executables we can run. If not, either
d9898ee8 2908# the compiler is broken, or we cross compile.
dd184caf 2909{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2910echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2911{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2912echo "${ECHO_T}$cross_compiling" >&6; }
2913
2914{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2915echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2916if { (ac_try="$ac_link"
2917case "(($ac_try" in
2918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2919 *) ac_try_echo=$ac_try;;
2920esac
2921eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2922 (eval "$ac_link") 2>&5
d9898ee8 2923 ac_status=$?
2924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2925 (exit $ac_status); }; then
2926 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2927# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2928# work properly (i.e., refer to `conftest.exe'), while it won't with
2929# `rm'.
2930for ac_file in conftest.exe conftest conftest.*; do
2931 test -f "$ac_file" || continue
2932 case $ac_file in
dd184caf 2933 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
d9898ee8 2934 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
d9898ee8 2935 break;;
2936 * ) break;;
2937 esac
2938done
2939else
2940 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2941See \`config.log' for more details." >&5
2942echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2943See \`config.log' for more details." >&2;}
2944 { (exit 1); exit 1; }; }
2945fi
2946
2947rm -f conftest$ac_cv_exeext
dd184caf 2948{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2949echo "${ECHO_T}$ac_cv_exeext" >&6; }
d9898ee8 2950
2951rm -f conftest.$ac_ext
2952EXEEXT=$ac_cv_exeext
2953ac_exeext=$EXEEXT
dd184caf 2954{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2955echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
d9898ee8 2956if test "${ac_cv_objext+set}" = set; then
2957 echo $ECHO_N "(cached) $ECHO_C" >&6
2958else
2959 cat >conftest.$ac_ext <<_ACEOF
2960/* confdefs.h. */
2961_ACEOF
2962cat confdefs.h >>conftest.$ac_ext
2963cat >>conftest.$ac_ext <<_ACEOF
2964/* end confdefs.h. */
2965
2966int
2967main ()
2968{
2969
2970 ;
2971 return 0;
2972}
2973_ACEOF
2974rm -f conftest.o conftest.obj
dd184caf 2975if { (ac_try="$ac_compile"
2976case "(($ac_try" in
2977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2978 *) ac_try_echo=$ac_try;;
2979esac
2980eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2981 (eval "$ac_compile") 2>&5
d9898ee8 2982 ac_status=$?
2983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2984 (exit $ac_status); }; then
dd184caf 2985 for ac_file in conftest.o conftest.obj conftest.*; do
2986 test -f "$ac_file" || continue;
d9898ee8 2987 case $ac_file in
dd184caf 2988 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
d9898ee8 2989 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2990 break;;
2991 esac
2992done
2993else
2994 echo "$as_me: failed program was:" >&5
2995sed 's/^/| /' conftest.$ac_ext >&5
2996
2997{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2998See \`config.log' for more details." >&5
2999echo "$as_me: error: cannot compute suffix of object files: cannot compile
3000See \`config.log' for more details." >&2;}
3001 { (exit 1); exit 1; }; }
3002fi
3003
3004rm -f conftest.$ac_cv_objext conftest.$ac_ext
3005fi
dd184caf 3006{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3007echo "${ECHO_T}$ac_cv_objext" >&6; }
d9898ee8 3008OBJEXT=$ac_cv_objext
3009ac_objext=$OBJEXT
dd184caf 3010{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3011echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
d9898ee8 3012if test "${ac_cv_c_compiler_gnu+set}" = set; then
3013 echo $ECHO_N "(cached) $ECHO_C" >&6
3014else
3015 cat >conftest.$ac_ext <<_ACEOF
3016/* confdefs.h. */
3017_ACEOF
3018cat confdefs.h >>conftest.$ac_ext
3019cat >>conftest.$ac_ext <<_ACEOF
3020/* end confdefs.h. */
3021
3022int
3023main ()
3024{
3025#ifndef __GNUC__
3026 choke me
3027#endif
3028
3029 ;
3030 return 0;
3031}
3032_ACEOF
3033rm -f conftest.$ac_objext
dd184caf 3034if { (ac_try="$ac_compile"
3035case "(($ac_try" in
3036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3037 *) ac_try_echo=$ac_try;;
3038esac
3039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3040 (eval "$ac_compile") 2>conftest.er1
d9898ee8 3041 ac_status=$?
3042 grep -v '^ *+' conftest.er1 >conftest.err
3043 rm -f conftest.er1
3044 cat conftest.err >&5
3045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 3046 (exit $ac_status); } && {
3047 test -z "$ac_c_werror_flag" ||
3048 test ! -s conftest.err
3049 } && test -s conftest.$ac_objext; then
d9898ee8 3050 ac_compiler_gnu=yes
3051else
3052 echo "$as_me: failed program was:" >&5
3053sed 's/^/| /' conftest.$ac_ext >&5
3054
dd184caf 3055 ac_compiler_gnu=no
d9898ee8 3056fi
dd184caf 3057
3058rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 3059ac_cv_c_compiler_gnu=$ac_compiler_gnu
3060
3061fi
dd184caf 3062{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3063echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
d9898ee8 3064GCC=`test $ac_compiler_gnu = yes && echo yes`
3065ac_test_CFLAGS=${CFLAGS+set}
3066ac_save_CFLAGS=$CFLAGS
dd184caf 3067{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3068echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
d9898ee8 3069if test "${ac_cv_prog_cc_g+set}" = set; then
3070 echo $ECHO_N "(cached) $ECHO_C" >&6
3071else
dd184caf 3072 ac_save_c_werror_flag=$ac_c_werror_flag
3073 ac_c_werror_flag=yes
3074 ac_cv_prog_cc_g=no
3075 CFLAGS="-g"
3076 cat >conftest.$ac_ext <<_ACEOF
d9898ee8 3077/* confdefs.h. */
3078_ACEOF
3079cat confdefs.h >>conftest.$ac_ext
3080cat >>conftest.$ac_ext <<_ACEOF
3081/* end confdefs.h. */
3082
3083int
3084main ()
3085{
3086
3087 ;
3088 return 0;
3089}
3090_ACEOF
3091rm -f conftest.$ac_objext
dd184caf 3092if { (ac_try="$ac_compile"
3093case "(($ac_try" in
3094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3095 *) ac_try_echo=$ac_try;;
3096esac
3097eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3098 (eval "$ac_compile") 2>conftest.er1
d9898ee8 3099 ac_status=$?
3100 grep -v '^ *+' conftest.er1 >conftest.err
3101 rm -f conftest.er1
3102 cat conftest.err >&5
3103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 3104 (exit $ac_status); } && {
3105 test -z "$ac_c_werror_flag" ||
3106 test ! -s conftest.err
3107 } && test -s conftest.$ac_objext; then
3108 ac_cv_prog_cc_g=yes
3109else
3110 echo "$as_me: failed program was:" >&5
3111sed 's/^/| /' conftest.$ac_ext >&5
3112
3113 CFLAGS=""
3114 cat >conftest.$ac_ext <<_ACEOF
3115/* confdefs.h. */
3116_ACEOF
3117cat confdefs.h >>conftest.$ac_ext
3118cat >>conftest.$ac_ext <<_ACEOF
3119/* end confdefs.h. */
3120
3121int
3122main ()
3123{
3124
3125 ;
3126 return 0;
3127}
3128_ACEOF
3129rm -f conftest.$ac_objext
3130if { (ac_try="$ac_compile"
3131case "(($ac_try" in
3132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3133 *) ac_try_echo=$ac_try;;
3134esac
3135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3136 (eval "$ac_compile") 2>conftest.er1
d9898ee8 3137 ac_status=$?
dd184caf 3138 grep -v '^ *+' conftest.er1 >conftest.err
3139 rm -f conftest.er1
3140 cat conftest.err >&5
d9898ee8 3141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 3142 (exit $ac_status); } && {
3143 test -z "$ac_c_werror_flag" ||
3144 test ! -s conftest.err
3145 } && test -s conftest.$ac_objext; then
3146 :
3147else
3148 echo "$as_me: failed program was:" >&5
3149sed 's/^/| /' conftest.$ac_ext >&5
3150
3151 ac_c_werror_flag=$ac_save_c_werror_flag
3152 CFLAGS="-g"
3153 cat >conftest.$ac_ext <<_ACEOF
3154/* confdefs.h. */
3155_ACEOF
3156cat confdefs.h >>conftest.$ac_ext
3157cat >>conftest.$ac_ext <<_ACEOF
3158/* end confdefs.h. */
3159
3160int
3161main ()
3162{
3163
3164 ;
3165 return 0;
3166}
3167_ACEOF
3168rm -f conftest.$ac_objext
3169if { (ac_try="$ac_compile"
3170case "(($ac_try" in
3171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3172 *) ac_try_echo=$ac_try;;
3173esac
3174eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3175 (eval "$ac_compile") 2>conftest.er1
d9898ee8 3176 ac_status=$?
dd184caf 3177 grep -v '^ *+' conftest.er1 >conftest.err
3178 rm -f conftest.er1
3179 cat conftest.err >&5
d9898ee8 3180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 3181 (exit $ac_status); } && {
3182 test -z "$ac_c_werror_flag" ||
3183 test ! -s conftest.err
3184 } && test -s conftest.$ac_objext; then
d9898ee8 3185 ac_cv_prog_cc_g=yes
3186else
3187 echo "$as_me: failed program was:" >&5
3188sed 's/^/| /' conftest.$ac_ext >&5
3189
dd184caf 3190
3191fi
3192
3193rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3194fi
3195
3196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 3197fi
dd184caf 3198
3199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3200 ac_c_werror_flag=$ac_save_c_werror_flag
d9898ee8 3201fi
dd184caf 3202{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3203echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
d9898ee8 3204if test "$ac_test_CFLAGS" = set; then
3205 CFLAGS=$ac_save_CFLAGS
3206elif test $ac_cv_prog_cc_g = yes; then
3207 if test "$GCC" = yes; then
3208 CFLAGS="-g -O2"
3209 else
3210 CFLAGS="-g"
3211 fi
3212else
3213 if test "$GCC" = yes; then
3214 CFLAGS="-O2"
3215 else
3216 CFLAGS=
3217 fi
3218fi
dd184caf 3219{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3220echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3221if test "${ac_cv_prog_cc_c89+set}" = set; then
d9898ee8 3222 echo $ECHO_N "(cached) $ECHO_C" >&6
3223else
dd184caf 3224 ac_cv_prog_cc_c89=no
d9898ee8 3225ac_save_CC=$CC
3226cat >conftest.$ac_ext <<_ACEOF
3227/* confdefs.h. */
3228_ACEOF
3229cat confdefs.h >>conftest.$ac_ext
3230cat >>conftest.$ac_ext <<_ACEOF
3231/* end confdefs.h. */
3232#include <stdarg.h>
3233#include <stdio.h>
3234#include <sys/types.h>
3235#include <sys/stat.h>
3236/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3237struct buf { int x; };
3238FILE * (*rcsopen) (struct buf *, struct stat *, int);
3239static char *e (p, i)
3240 char **p;
3241 int i;
3242{
3243 return p[i];
3244}
3245static char *f (char * (*g) (char **, int), char **p, ...)
3246{
3247 char *s;
3248 va_list v;
3249 va_start (v,p);
3250 s = g (p, va_arg (v,int));
3251 va_end (v);
3252 return s;
3253}
3254
3255/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3256 function prototypes and stuff, but not '\xHH' hex character constants.
3257 These don't provoke an error unfortunately, instead are silently treated
dd184caf 3258 as 'x'. The following induces an error, until -std is added to get
d9898ee8 3259 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3260 array size at least. It's necessary to write '\x00'==0 to get something
dd184caf 3261 that's true only with -std. */
d9898ee8 3262int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3263
dd184caf 3264/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3265 inside strings and character constants. */
3266#define FOO(x) 'x'
3267int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3268
d9898ee8 3269int test (int i, double x);
3270struct s1 {int (*f) (int a);};
3271struct s2 {int (*f) (double a);};
3272int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3273int argc;
3274char **argv;
3275int
3276main ()
3277{
3278return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3279 ;
3280 return 0;
3281}
3282_ACEOF
dd184caf 3283for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3284 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
d9898ee8 3285do
3286 CC="$ac_save_CC $ac_arg"
3287 rm -f conftest.$ac_objext
dd184caf 3288if { (ac_try="$ac_compile"
3289case "(($ac_try" in
3290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3291 *) ac_try_echo=$ac_try;;
3292esac
3293eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3294 (eval "$ac_compile") 2>conftest.er1
d9898ee8 3295 ac_status=$?
3296 grep -v '^ *+' conftest.er1 >conftest.err
3297 rm -f conftest.er1
3298 cat conftest.err >&5
3299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 3300 (exit $ac_status); } && {
3301 test -z "$ac_c_werror_flag" ||
3302 test ! -s conftest.err
3303 } && test -s conftest.$ac_objext; then
3304 ac_cv_prog_cc_c89=$ac_arg
d9898ee8 3305else
3306 echo "$as_me: failed program was:" >&5
3307sed 's/^/| /' conftest.$ac_ext >&5
3308
dd184caf 3309
d9898ee8 3310fi
dd184caf 3311
3312rm -f core conftest.err conftest.$ac_objext
3313 test "x$ac_cv_prog_cc_c89" != "xno" && break
d9898ee8 3314done
dd184caf 3315rm -f conftest.$ac_ext
d9898ee8 3316CC=$ac_save_CC
3317
3318fi
dd184caf 3319# AC_CACHE_VAL
3320case "x$ac_cv_prog_cc_c89" in
3321 x)
3322 { echo "$as_me:$LINENO: result: none needed" >&5
3323echo "${ECHO_T}none needed" >&6; } ;;
3324 xno)
3325 { echo "$as_me:$LINENO: result: unsupported" >&5
3326echo "${ECHO_T}unsupported" >&6; } ;;
d9898ee8 3327 *)
dd184caf 3328 CC="$CC $ac_cv_prog_cc_c89"
3329 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3330echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
d9898ee8 3331esac
3332
d9898ee8 3333
d9898ee8 3334ac_ext=c
3335ac_cpp='$CPP $CPPFLAGS'
3336ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3337ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3338ac_compiler_gnu=$ac_cv_c_compiler_gnu
3339DEPDIR="${am__leading_dot}deps"
3340
dd184caf 3341ac_config_commands="$ac_config_commands depfiles"
d9898ee8 3342
3343
3344am_make=${MAKE-make}
3345cat > confinc << 'END'
3346am__doit:
3347 @echo done
3348.PHONY: am__doit
3349END
3350# If we don't find an include directive, just comment out the code.
dd184caf 3351{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3352echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
d9898ee8 3353am__include="#"
3354am__quote=
3355_am_result=none
3356# First try GNU make style include.
3357echo "include confinc" > confmf
3358# We grep out `Entering directory' and `Leaving directory'
3359# messages which can occur if `w' ends up in MAKEFLAGS.
3360# In particular we don't look at `^make:' because GNU make might
3361# be invoked under some other name (usually "gmake"), in which
3362# case it prints its new name instead of `make'.
3363if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3364 am__include=include
3365 am__quote=
3366 _am_result=GNU
3367fi
3368# Now try BSD make style include.
3369if test "$am__include" = "#"; then
3370 echo '.include "confinc"' > confmf
3371 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3372 am__include=.include
3373 am__quote="\""
3374 _am_result=BSD
3375 fi
3376fi
3377
3378
dd184caf 3379{ echo "$as_me:$LINENO: result: $_am_result" >&5
3380echo "${ECHO_T}$_am_result" >&6; }
d9898ee8 3381rm -f confinc confmf
3382
dd184caf 3383# Check whether --enable-dependency-tracking was given.
d9898ee8 3384if test "${enable_dependency_tracking+set}" = set; then
dd184caf 3385 enableval=$enable_dependency_tracking;
3386fi
d9898ee8 3387
d9898ee8 3388if test "x$enable_dependency_tracking" != xno; then
3389 am_depcomp="$ac_aux_dir/depcomp"
3390 AMDEPBACKSLASH='\'
3391fi
dd184caf 3392 if test "x$enable_dependency_tracking" != xno; then
d9898ee8 3393 AMDEP_TRUE=
3394 AMDEP_FALSE='#'
3395else
3396 AMDEP_TRUE='#'
3397 AMDEP_FALSE=
3398fi
3399
3400
3401
d9898ee8 3402depcc="$CC" am_compiler_list=
3403
dd184caf 3404{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3405echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
d9898ee8 3406if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3407 echo $ECHO_N "(cached) $ECHO_C" >&6
3408else
3409 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3410 # We make a subdir and do the tests there. Otherwise we can end up
3411 # making bogus files that we don't know about and never remove. For
3412 # instance it was reported that on HP-UX the gcc test will end up
3413 # making a dummy file named `D' -- because `-MD' means `put the output
3414 # in D'.
3415 mkdir conftest.dir
3416 # Copy depcomp to subdir because otherwise we won't find it if we're
3417 # using a relative directory.
3418 cp "$am_depcomp" conftest.dir
3419 cd conftest.dir
3420 # We will build objects and dependencies in a subdirectory because
3421 # it helps to detect inapplicable dependency modes. For instance
3422 # both Tru64's cc and ICC support -MD to output dependencies as a
3423 # side effect of compilation, but ICC will put the dependencies in
3424 # the current directory while Tru64 will put them in the object
3425 # directory.
3426 mkdir sub
3427
3428 am_cv_CC_dependencies_compiler_type=none
3429 if test "$am_compiler_list" = ""; then
3430 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3431 fi
3432 for depmode in $am_compiler_list; do
3433 # Setup a source with many dependencies, because some compilers
3434 # like to wrap large dependency lists on column 80 (with \), and
3435 # we should not choose a depcomp mode which is confused by this.
3436 #
3437 # We need to recreate these files for each test, as the compiler may
3438 # overwrite some of them when testing with obscure command lines.
3439 # This happens at least with the AIX C compiler.
3440 : > sub/conftest.c
3441 for i in 1 2 3 4 5 6; do
3442 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3443 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3444 # Solaris 8's {/usr,}/bin/sh.
3445 touch sub/conftst$i.h
3446 done
3447 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3448
3449 case $depmode in
3450 nosideeffect)
3451 # after this tag, mechanisms are not by side-effect, so they'll
3452 # only be used when explicitly requested
3453 if test "x$enable_dependency_tracking" = xyes; then
3454 continue
3455 else
3456 break
3457 fi
3458 ;;
3459 none) break ;;
3460 esac
3461 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3462 # mode. It turns out that the SunPro C++ compiler does not properly
3463 # handle `-M -o', and we need to detect this.
3464 if depmode=$depmode \
3465 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3466 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3467 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3468 >/dev/null 2>conftest.err &&
dd184caf 3469 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
d9898ee8 3470 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3471 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3472 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3473 # icc doesn't choke on unknown options, it will just issue warnings
3474 # or remarks (even with -Werror). So we grep stderr for any message
3475 # that says an option was ignored or not supported.
3476 # When given -MP, icc 7.0 and 7.1 complain thusly:
3477 # icc: Command line warning: ignoring option '-M'; no argument required
3478 # The diagnosis changed in icc 8.0:
3479 # icc: Command line remark: option '-MP' not supported
3480 if (grep 'ignoring option' conftest.err ||
3481 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3482 am_cv_CC_dependencies_compiler_type=$depmode
3483 break
3484 fi
3485 fi
3486 done
3487
3488 cd ..
3489 rm -rf conftest.dir
3490else
3491 am_cv_CC_dependencies_compiler_type=none
3492fi
3493
3494fi
dd184caf 3495{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3496echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
d9898ee8 3497CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3498
dd184caf 3499 if
d9898ee8 3500 test "x$enable_dependency_tracking" != xno \
3501 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3502 am__fastdepCC_TRUE=
3503 am__fastdepCC_FALSE='#'
3504else
3505 am__fastdepCC_TRUE='#'
3506 am__fastdepCC_FALSE=
3507fi
3508
3509
3510# Find a good install program. We prefer a C program (faster),
3511# so one script is as good as another. But avoid the broken or
3512# incompatible versions:
3513# SysV /etc/install, /usr/sbin/install
3514# SunOS /usr/etc/install
3515# IRIX /sbin/install
3516# AIX /bin/install
3517# AmigaOS /C/install, which installs bootblocks on floppy discs
3518# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3519# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3520# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3521# OS/2's system install, which has a completely different semantic
3522# ./install, which can be erroneously created by make from ./install.sh.
dd184caf 3523{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3524echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
d9898ee8 3525if test -z "$INSTALL"; then
3526if test "${ac_cv_path_install+set}" = set; then
3527 echo $ECHO_N "(cached) $ECHO_C" >&6
3528else
3529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3530for as_dir in $PATH
3531do
3532 IFS=$as_save_IFS
3533 test -z "$as_dir" && as_dir=.
3534 # Account for people who put trailing slashes in PATH elements.
3535case $as_dir/ in
3536 ./ | .// | /cC/* | \
3537 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3538 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3539 /usr/ucb/* ) ;;
3540 *)
3541 # OSF1 and SCO ODT 3.0 have their own names for install.
3542 # Don't use installbsd from OSF since it installs stuff as root
3543 # by default.
3544 for ac_prog in ginstall scoinst install; do
3545 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 3546 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
d9898ee8 3547 if test $ac_prog = install &&
3548 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3549 # AIX install. It has an incompatible calling convention.
3550 :
3551 elif test $ac_prog = install &&
3552 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3553 # program-specific install script used by HP pwplus--don't use.
3554 :
3555 else
3556 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3557 break 3
3558 fi
3559 fi
3560 done
3561 done
3562 ;;
3563esac
3564done
dd184caf 3565IFS=$as_save_IFS
d9898ee8 3566
3567
3568fi
3569 if test "${ac_cv_path_install+set}" = set; then
3570 INSTALL=$ac_cv_path_install
3571 else
dd184caf 3572 # As a last resort, use the slow shell script. Don't cache a
3573 # value for INSTALL within a source directory, because that will
d9898ee8 3574 # break other packages using the cache if that directory is
dd184caf 3575 # removed, or if the value is a relative name.
d9898ee8 3576 INSTALL=$ac_install_sh
3577 fi
3578fi
dd184caf 3579{ echo "$as_me:$LINENO: result: $INSTALL" >&5
3580echo "${ECHO_T}$INSTALL" >&6; }
d9898ee8 3581
3582# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3583# It thinks the first close brace ends the variable substitution.
3584test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3585
3586test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3587
3588test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3589
dd184caf 3590{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
3591echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
d9898ee8 3592LN_S=$as_ln_s
3593if test "$LN_S" = "ln -s"; then
dd184caf 3594 { echo "$as_me:$LINENO: result: yes" >&5
3595echo "${ECHO_T}yes" >&6; }
d9898ee8 3596else
dd184caf 3597 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3598echo "${ECHO_T}no, using $LN_S" >&6; }
d9898ee8 3599fi
3600
3601for ac_prog in perl5 perl
3602do
3603 # Extract the first word of "$ac_prog", so it can be a program name with args.
3604set dummy $ac_prog; ac_word=$2
dd184caf 3605{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3606echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 3607if test "${ac_cv_path_PERL+set}" = set; then
3608 echo $ECHO_N "(cached) $ECHO_C" >&6
3609else
3610 case $PERL in
3611 [\\/]* | ?:[\\/]*)
3612 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
3613 ;;
3614 *)
3615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3616for as_dir in $LPATH
3617do
3618 IFS=$as_save_IFS
3619 test -z "$as_dir" && as_dir=.
3620 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 3621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 3622 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
3623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3624 break 2
3625 fi
3626done
3627done
dd184caf 3628IFS=$as_save_IFS
d9898ee8 3629
3630 ;;
3631esac
3632fi
3633PERL=$ac_cv_path_PERL
d9898ee8 3634if test -n "$PERL"; then
dd184caf 3635 { echo "$as_me:$LINENO: result: $PERL" >&5
3636echo "${ECHO_T}$PERL" >&6; }
d9898ee8 3637else
dd184caf 3638 { echo "$as_me:$LINENO: result: no" >&5
3639echo "${ECHO_T}no" >&6; }
d9898ee8 3640fi
3641
dd184caf 3642
d9898ee8 3643 test -n "$PERL" && break
3644done
3645test -n "$PERL" || PERL="perl"
3646
3647
3648for ac_prog in cat
3649do
3650 # Extract the first word of "$ac_prog", so it can be a program name with args.
3651set dummy $ac_prog; ac_word=$2
dd184caf 3652{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3653echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 3654if test "${ac_cv_path_CAT+set}" = set; then
3655 echo $ECHO_N "(cached) $ECHO_C" >&6
3656else
3657 case $CAT in
3658 [\\/]* | ?:[\\/]*)
3659 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
3660 ;;
3661 *)
3662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3663for as_dir in $PATH
3664do
3665 IFS=$as_save_IFS
3666 test -z "$as_dir" && as_dir=.
3667 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 3668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 3669 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
3670 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3671 break 2
3672 fi
3673done
3674done
dd184caf 3675IFS=$as_save_IFS
d9898ee8 3676
3677 ;;
3678esac
3679fi
3680CAT=$ac_cv_path_CAT
d9898ee8 3681if test -n "$CAT"; then
dd184caf 3682 { echo "$as_me:$LINENO: result: $CAT" >&5
3683echo "${ECHO_T}$CAT" >&6; }
d9898ee8 3684else
dd184caf 3685 { echo "$as_me:$LINENO: result: no" >&5
3686echo "${ECHO_T}no" >&6; }
d9898ee8 3687fi
3688
dd184caf 3689
d9898ee8 3690 test -n "$CAT" && break
3691done
3692test -n "$CAT" || CAT="cat"
3693
3694
3695
dd184caf 3696# Check whether --enable-shared was given.
d9898ee8 3697if test "${enable_shared+set}" = set; then
dd184caf 3698 enableval=$enable_shared; p=${PACKAGE-default}
d9898ee8 3699 case $enableval in
3700 yes) enable_shared=yes ;;
3701 no) enable_shared=no ;;
3702 *)
3703 enable_shared=no
3704 # Look at the argument we got. We use all the common list separators.
3705 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3706 for pkg in $enableval; do
3707 IFS="$lt_save_ifs"
3708 if test "X$pkg" = "X$p"; then
3709 enable_shared=yes
3710 fi
3711 done
3712 IFS="$lt_save_ifs"
3713 ;;
3714 esac
3715else
3716 enable_shared=yes
dd184caf 3717fi
d9898ee8 3718
dd184caf 3719
3720# Check whether --enable-static was given.
d9898ee8 3721if test "${enable_static+set}" = set; then
dd184caf 3722 enableval=$enable_static; p=${PACKAGE-default}
d9898ee8 3723 case $enableval in
3724 yes) enable_static=yes ;;
3725 no) enable_static=no ;;
3726 *)
3727 enable_static=no
3728 # Look at the argument we got. We use all the common list separators.
3729 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3730 for pkg in $enableval; do
3731 IFS="$lt_save_ifs"
3732 if test "X$pkg" = "X$p"; then
3733 enable_static=yes
3734 fi
3735 done
3736 IFS="$lt_save_ifs"
3737 ;;
3738 esac
3739else
3740 enable_static=yes
dd184caf 3741fi
d9898ee8 3742
dd184caf 3743
3744# Check whether --enable-fast-install was given.
d9898ee8 3745if test "${enable_fast_install+set}" = set; then
dd184caf 3746 enableval=$enable_fast_install; p=${PACKAGE-default}
d9898ee8 3747 case $enableval in
3748 yes) enable_fast_install=yes ;;
3749 no) enable_fast_install=no ;;
3750 *)
3751 enable_fast_install=no
3752 # Look at the argument we got. We use all the common list separators.
3753 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3754 for pkg in $enableval; do
3755 IFS="$lt_save_ifs"
3756 if test "X$pkg" = "X$p"; then
3757 enable_fast_install=yes
3758 fi
3759 done
3760 IFS="$lt_save_ifs"
3761 ;;
3762 esac
3763else
3764 enable_fast_install=yes
dd184caf 3765fi
3766
d9898ee8 3767
3768# Make sure we can run config.sub.
dd184caf 3769$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3770 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3771echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
d9898ee8 3772 { (exit 1); exit 1; }; }
3773
dd184caf 3774{ echo "$as_me:$LINENO: checking build system type" >&5
3775echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
d9898ee8 3776if test "${ac_cv_build+set}" = set; then
3777 echo $ECHO_N "(cached) $ECHO_C" >&6
3778else
dd184caf 3779 ac_build_alias=$build_alias
3780test "x$ac_build_alias" = x &&
3781 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3782test "x$ac_build_alias" = x &&
d9898ee8 3783 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3784echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3785 { (exit 1); exit 1; }; }
dd184caf 3786ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3787 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3788echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
d9898ee8 3789 { (exit 1); exit 1; }; }
3790
3791fi
dd184caf 3792{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3793echo "${ECHO_T}$ac_cv_build" >&6; }
3794case $ac_cv_build in
3795*-*-*) ;;
3796*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3797echo "$as_me: error: invalid value of canonical build" >&2;}
3798 { (exit 1); exit 1; }; };;
3799esac
d9898ee8 3800build=$ac_cv_build
dd184caf 3801ac_save_IFS=$IFS; IFS='-'
3802set x $ac_cv_build
3803shift
3804build_cpu=$1
3805build_vendor=$2
3806shift; shift
3807# Remember, the first character of IFS is used to create $*,
3808# except with old shells:
3809build_os=$*
3810IFS=$ac_save_IFS
3811case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3812
3813
3814{ echo "$as_me:$LINENO: checking host system type" >&5
3815echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
d9898ee8 3816if test "${ac_cv_host+set}" = set; then
3817 echo $ECHO_N "(cached) $ECHO_C" >&6
3818else
dd184caf 3819 if test "x$host_alias" = x; then
3820 ac_cv_host=$ac_cv_build
3821else
3822 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3823 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3824echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
d9898ee8 3825 { (exit 1); exit 1; }; }
dd184caf 3826fi
d9898ee8 3827
3828fi
dd184caf 3829{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3830echo "${ECHO_T}$ac_cv_host" >&6; }
3831case $ac_cv_host in
3832*-*-*) ;;
3833*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3834echo "$as_me: error: invalid value of canonical host" >&2;}
3835 { (exit 1); exit 1; }; };;
3836esac
d9898ee8 3837host=$ac_cv_host
dd184caf 3838ac_save_IFS=$IFS; IFS='-'
3839set x $ac_cv_host
3840shift
3841host_cpu=$1
3842host_vendor=$2
3843shift; shift
3844# Remember, the first character of IFS is used to create $*,
3845# except with old shells:
3846host_os=$*
3847IFS=$ac_save_IFS
3848case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3849
3850
3851{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3852echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
d9898ee8 3853if test "${lt_cv_path_SED+set}" = set; then
3854 echo $ECHO_N "(cached) $ECHO_C" >&6
3855else
3856 # Loop through the user's path and test for sed and gsed.
3857# Then use that list of sed's as ones to test for truncation.
3858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3859for as_dir in $PATH
3860do
3861 IFS=$as_save_IFS
3862 test -z "$as_dir" && as_dir=.
3863 for lt_ac_prog in sed gsed; do
3864 for ac_exec_ext in '' $ac_executable_extensions; do
ac40fd9e 3865 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
d9898ee8 3866 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3867 fi
3868 done
3869 done
3870done
3871IFS=$as_save_IFS
3872lt_ac_max=0
3873lt_ac_count=0
3874# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3875# along with /bin/sed that truncates output.
3876for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3877 test ! -f $lt_ac_sed && continue
3878 cat /dev/null > conftest.in
3879 lt_ac_count=0
3880 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3881 # Check for GNU sed and select it if it is found.
3882 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3883 lt_cv_path_SED=$lt_ac_sed
3884 break
3885 fi
3886 while true; do
3887 cat conftest.in conftest.in >conftest.tmp
3888 mv conftest.tmp conftest.in
3889 cp conftest.in conftest.nl
3890 echo >>conftest.nl
3891 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3892 cmp -s conftest.out conftest.nl || break
3893 # 10000 chars as input seems more than enough
3894 test $lt_ac_count -gt 10 && break
3895 lt_ac_count=`expr $lt_ac_count + 1`
3896 if test $lt_ac_count -gt $lt_ac_max; then
3897 lt_ac_max=$lt_ac_count
3898 lt_cv_path_SED=$lt_ac_sed
3899 fi
3900 done
3901done
3902
3903fi
3904
3905SED=$lt_cv_path_SED
3906
dd184caf 3907{ echo "$as_me:$LINENO: result: $SED" >&5
3908echo "${ECHO_T}$SED" >&6; }
3909
3910{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3911echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3912if test "${ac_cv_path_GREP+set}" = set; then
3913 echo $ECHO_N "(cached) $ECHO_C" >&6
3914else
3915 # Extract the first word of "grep ggrep" to use in msg output
3916if test -z "$GREP"; then
3917set dummy grep ggrep; ac_prog_name=$2
3918if test "${ac_cv_path_GREP+set}" = set; then
3919 echo $ECHO_N "(cached) $ECHO_C" >&6
3920else
3921 ac_path_GREP_found=false
3922# Loop through the user's path and test for each of PROGNAME-LIST
3923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3924for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3925do
3926 IFS=$as_save_IFS
3927 test -z "$as_dir" && as_dir=.
3928 for ac_prog in grep ggrep; do
3929 for ac_exec_ext in '' $ac_executable_extensions; do
3930 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3931 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3932 # Check for GNU ac_path_GREP and select it if it is found.
3933 # Check for GNU $ac_path_GREP
3934case `"$ac_path_GREP" --version 2>&1` in
3935*GNU*)
3936 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3937*)
3938 ac_count=0
3939 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3940 while :
3941 do
3942 cat "conftest.in" "conftest.in" >"conftest.tmp"
3943 mv "conftest.tmp" "conftest.in"
3944 cp "conftest.in" "conftest.nl"
3945 echo 'GREP' >> "conftest.nl"
3946 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3947 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3948 ac_count=`expr $ac_count + 1`
3949 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3950 # Best one so far, save it but keep looking for a better one
3951 ac_cv_path_GREP="$ac_path_GREP"
3952 ac_path_GREP_max=$ac_count
3953 fi
3954 # 10*(2^10) chars as input seems more than enough
3955 test $ac_count -gt 10 && break
3956 done
3957 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3958esac
3959
3960
3961 $ac_path_GREP_found && break 3
3962 done
3963done
3964
3965done
3966IFS=$as_save_IFS
3967
3968
3969fi
3970
3971GREP="$ac_cv_path_GREP"
3972if test -z "$GREP"; then
3973 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3974echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3975 { (exit 1); exit 1; }; }
3976fi
3977
3978else
3979 ac_cv_path_GREP=$GREP
3980fi
3981
3982
3983fi
3984{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3985echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3986 GREP="$ac_cv_path_GREP"
3987
d9898ee8 3988
dd184caf 3989{ echo "$as_me:$LINENO: checking for egrep" >&5
3990echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3991if test "${ac_cv_path_EGREP+set}" = set; then
3992 echo $ECHO_N "(cached) $ECHO_C" >&6
3993else
3994 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3995 then ac_cv_path_EGREP="$GREP -E"
3996 else
3997 # Extract the first word of "egrep" to use in msg output
3998if test -z "$EGREP"; then
3999set dummy egrep; ac_prog_name=$2
4000if test "${ac_cv_path_EGREP+set}" = set; then
d9898ee8 4001 echo $ECHO_N "(cached) $ECHO_C" >&6
4002else
dd184caf 4003 ac_path_EGREP_found=false
4004# Loop through the user's path and test for each of PROGNAME-LIST
4005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4006for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4007do
4008 IFS=$as_save_IFS
4009 test -z "$as_dir" && as_dir=.
4010 for ac_prog in egrep; do
4011 for ac_exec_ext in '' $ac_executable_extensions; do
4012 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4013 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4014 # Check for GNU ac_path_EGREP and select it if it is found.
4015 # Check for GNU $ac_path_EGREP
4016case `"$ac_path_EGREP" --version 2>&1` in
4017*GNU*)
4018 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4019*)
4020 ac_count=0
4021 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4022 while :
4023 do
4024 cat "conftest.in" "conftest.in" >"conftest.tmp"
4025 mv "conftest.tmp" "conftest.in"
4026 cp "conftest.in" "conftest.nl"
4027 echo 'EGREP' >> "conftest.nl"
4028 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4029 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4030 ac_count=`expr $ac_count + 1`
4031 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4032 # Best one so far, save it but keep looking for a better one
4033 ac_cv_path_EGREP="$ac_path_EGREP"
4034 ac_path_EGREP_max=$ac_count
d9898ee8 4035 fi
dd184caf 4036 # 10*(2^10) chars as input seems more than enough
4037 test $ac_count -gt 10 && break
4038 done
4039 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4040esac
4041
4042
4043 $ac_path_EGREP_found && break 3
4044 done
4045done
4046
4047done
4048IFS=$as_save_IFS
4049
4050
4051fi
4052
4053EGREP="$ac_cv_path_EGREP"
4054if test -z "$EGREP"; then
4055 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4056echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4057 { (exit 1); exit 1; }; }
4058fi
4059
4060else
4061 ac_cv_path_EGREP=$EGREP
4062fi
4063
4064
4065 fi
d9898ee8 4066fi
dd184caf 4067{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4068echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4069 EGREP="$ac_cv_path_EGREP"
d9898ee8 4070
4071
4072
dd184caf 4073# Check whether --with-gnu-ld was given.
d9898ee8 4074if test "${with_gnu_ld+set}" = set; then
dd184caf 4075 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
d9898ee8 4076else
4077 with_gnu_ld=no
dd184caf 4078fi
4079
d9898ee8 4080ac_prog=ld
4081if test "$GCC" = yes; then
4082 # Check if gcc -print-prog-name=ld gives a path.
dd184caf 4083 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4084echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
d9898ee8 4085 case $host in
4086 *-*-mingw*)
4087 # gcc leaves a trailing carriage return which upsets mingw
4088 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4089 *)
4090 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4091 esac
4092 case $ac_prog in
4093 # Accept absolute paths.
4094 [\\/]* | ?:[\\/]*)
4095 re_direlt='/[^/][^/]*/\.\./'
4096 # Canonicalize the pathname of ld
4097 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4098 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4099 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4100 done
4101 test -z "$LD" && LD="$ac_prog"
4102 ;;
4103 "")
4104 # If it fails, then pretend we aren't using GCC.
4105 ac_prog=ld
4106 ;;
4107 *)
4108 # If it is relative, then search for the first ld in PATH.
4109 with_gnu_ld=unknown
4110 ;;
4111 esac
4112elif test "$with_gnu_ld" = yes; then
dd184caf 4113 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4114echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
d9898ee8 4115else
dd184caf 4116 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4117echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
d9898ee8 4118fi
4119if test "${lt_cv_path_LD+set}" = set; then
4120 echo $ECHO_N "(cached) $ECHO_C" >&6
4121else
4122 if test -z "$LD"; then
4123 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4124 for ac_dir in $PATH; do
4125 IFS="$lt_save_ifs"
4126 test -z "$ac_dir" && ac_dir=.
4127 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4128 lt_cv_path_LD="$ac_dir/$ac_prog"
4129 # Check to see if the program is GNU ld. I'd rather use --version,
4130 # but apparently some variants of GNU ld only accept -v.
4131 # Break only if it was the GNU/non-GNU ld that we prefer.
4132 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4133 *GNU* | *'with BFD'*)
4134 test "$with_gnu_ld" != no && break
4135 ;;
4136 *)
4137 test "$with_gnu_ld" != yes && break
4138 ;;
4139 esac
4140 fi
4141 done
4142 IFS="$lt_save_ifs"
4143else
4144 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4145fi
4146fi
4147
4148LD="$lt_cv_path_LD"
4149if test -n "$LD"; then
dd184caf 4150 { echo "$as_me:$LINENO: result: $LD" >&5
4151echo "${ECHO_T}$LD" >&6; }
d9898ee8 4152else
dd184caf 4153 { echo "$as_me:$LINENO: result: no" >&5
4154echo "${ECHO_T}no" >&6; }
d9898ee8 4155fi
4156test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4157echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4158 { (exit 1); exit 1; }; }
dd184caf 4159{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4160echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
d9898ee8 4161if test "${lt_cv_prog_gnu_ld+set}" = set; then
4162 echo $ECHO_N "(cached) $ECHO_C" >&6
4163else
4164 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4165case `$LD -v 2>&1 </dev/null` in
4166*GNU* | *'with BFD'*)
4167 lt_cv_prog_gnu_ld=yes
4168 ;;
4169*)
4170 lt_cv_prog_gnu_ld=no
4171 ;;
4172esac
4173fi
dd184caf 4174{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4175echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
d9898ee8 4176with_gnu_ld=$lt_cv_prog_gnu_ld
4177
4178
dd184caf 4179{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4180echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
d9898ee8 4181if test "${lt_cv_ld_reload_flag+set}" = set; then
4182 echo $ECHO_N "(cached) $ECHO_C" >&6
4183else
4184 lt_cv_ld_reload_flag='-r'
4185fi
dd184caf 4186{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4187echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
d9898ee8 4188reload_flag=$lt_cv_ld_reload_flag
4189case $reload_flag in
4190"" | " "*) ;;
4191*) reload_flag=" $reload_flag" ;;
4192esac
4193reload_cmds='$LD$reload_flag -o $output$reload_objs'
4194case $host_os in
4195 darwin*)
4196 if test "$GCC" = yes; then
4197 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4198 else
4199 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4200 fi
4201 ;;
4202esac
4203
dd184caf 4204{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4205echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
d9898ee8 4206if test "${lt_cv_path_NM+set}" = set; then
4207 echo $ECHO_N "(cached) $ECHO_C" >&6
4208else
4209 if test -n "$NM"; then
4210 # Let the user override the test.
4211 lt_cv_path_NM="$NM"
4212else
4213 lt_nm_to_check="${ac_tool_prefix}nm"
4214 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4215 lt_nm_to_check="$lt_nm_to_check nm"
4216 fi
4217 for lt_tmp_nm in $lt_nm_to_check; do
4218 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4219 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4220 IFS="$lt_save_ifs"
4221 test -z "$ac_dir" && ac_dir=.
4222 tmp_nm="$ac_dir/$lt_tmp_nm"
4223 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4224 # Check to see if the nm accepts a BSD-compat flag.
4225 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4226 # nm: unknown option "B" ignored
4227 # Tru64's nm complains that /dev/null is an invalid object file
4228 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4229 */dev/null* | *'Invalid file or object type'*)
4230 lt_cv_path_NM="$tmp_nm -B"
4231 break
4232 ;;
4233 *)
4234 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4235 */dev/null*)
4236 lt_cv_path_NM="$tmp_nm -p"
4237 break
4238 ;;
4239 *)
4240 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4241 continue # so that we can try to find one that supports BSD flags
4242 ;;
4243 esac
4244 ;;
4245 esac
4246 fi
4247 done
4248 IFS="$lt_save_ifs"
4249 done
4250 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4251fi
4252fi
dd184caf 4253{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4254echo "${ECHO_T}$lt_cv_path_NM" >&6; }
d9898ee8 4255NM="$lt_cv_path_NM"
4256
ac40fd9e 4257{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4258echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
d9898ee8 4259if test "${lt_cv_deplibs_check_method+set}" = set; then
4260 echo $ECHO_N "(cached) $ECHO_C" >&6
4261else
4262 lt_cv_file_magic_cmd='$MAGIC_CMD'
4263lt_cv_file_magic_test_file=
4264lt_cv_deplibs_check_method='unknown'
4265# Need to set the preceding variable on all platforms that support
4266# interlibrary dependencies.
4267# 'none' -- dependencies not supported.
4268# `unknown' -- same as none, but documents that we really don't know.
4269# 'pass_all' -- all dependencies passed with no checks.
4270# 'test_compile' -- check by making test program.
4271# 'file_magic [[regex]]' -- check by looking for files in library path
4272# which responds to the $file_magic_cmd with a given extended regex.
4273# If you have `file' or equivalent on your system and you're not sure
4274# whether `pass_all' will *always* work, you probably want this one.
4275
4276case $host_os in
4277aix4* | aix5*)
4278 lt_cv_deplibs_check_method=pass_all
4279 ;;
4280
4281beos*)
4282 lt_cv_deplibs_check_method=pass_all
4283 ;;
4284
4285bsdi[45]*)
4286 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4287 lt_cv_file_magic_cmd='/usr/bin/file -L'
4288 lt_cv_file_magic_test_file=/shlib/libc.so
4289 ;;
4290
4291cygwin*)
4292 # func_win32_libid is a shell function defined in ltmain.sh
4293 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4294 lt_cv_file_magic_cmd='func_win32_libid'
4295 ;;
4296
4297mingw* | pw32*)
4298 # Base MSYS/MinGW do not provide the 'file' command needed by
ac40fd9e 4299 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4300 # unless we find 'file', for example because we are cross-compiling.
4301 if ( file / ) >/dev/null 2>&1; then
4302 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4303 lt_cv_file_magic_cmd='func_win32_libid'
4304 else
4305 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4306 lt_cv_file_magic_cmd='$OBJDUMP -f'
4307 fi
d9898ee8 4308 ;;
4309
4310darwin* | rhapsody*)
4311 lt_cv_deplibs_check_method=pass_all
4312 ;;
4313
ac40fd9e 4314freebsd* | dragonfly*)
d9898ee8 4315 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4316 case $host_cpu in
4317 i*86 )
4318 # Not sure whether the presence of OpenBSD here was a mistake.
4319 # Let's accept both of them until this is cleared up.
4320 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4321 lt_cv_file_magic_cmd=/usr/bin/file
4322 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4323 ;;
4324 esac
4325 else
4326 lt_cv_deplibs_check_method=pass_all
4327 fi
4328 ;;
4329
4330gnu*)
4331 lt_cv_deplibs_check_method=pass_all
4332 ;;
4333
4334hpux10.20* | hpux11*)
4335 lt_cv_file_magic_cmd=/usr/bin/file
4336 case $host_cpu in
4337 ia64*)
4338 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4339 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4340 ;;
4341 hppa*64*)
4342 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]'
4343 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4344 ;;
4345 *)
4346 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4347 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4348 ;;
4349 esac
4350 ;;
4351
ac40fd9e 4352interix[3-9]*)
d9898ee8 4353 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4354 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4355 ;;
4356
4357irix5* | irix6* | nonstopux*)
4358 case $LD in
4359 *-32|*"-32 ") libmagic=32-bit;;
4360 *-n32|*"-n32 ") libmagic=N32;;
4361 *-64|*"-64 ") libmagic=64-bit;;
4362 *) libmagic=never-match;;
4363 esac
4364 lt_cv_deplibs_check_method=pass_all
4365 ;;
4366
4367# This must be Linux ELF.
ac40fd9e 4368linux* | k*bsd*-gnu)
d9898ee8 4369 lt_cv_deplibs_check_method=pass_all
4370 ;;
4371
4372netbsd*)
4373 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4374 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4375 else
4376 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4377 fi
4378 ;;
4379
4380newos6*)
4381 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4382 lt_cv_file_magic_cmd=/usr/bin/file
4383 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4384 ;;
4385
4386nto-qnx*)
4387 lt_cv_deplibs_check_method=unknown
4388 ;;
4389
4390openbsd*)
4391 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4392 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4393 else
4394 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4395 fi
4396 ;;
4397
4398osf3* | osf4* | osf5*)
4399 lt_cv_deplibs_check_method=pass_all
4400 ;;
4401
ac40fd9e 4402rdos*)
4403 lt_cv_deplibs_check_method=pass_all
4404 ;;
4405
d9898ee8 4406solaris*)
4407 lt_cv_deplibs_check_method=pass_all
4408 ;;
4409
4410sysv4 | sysv4.3*)
4411 case $host_vendor in
4412 motorola)
4413 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]'
4414 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4415 ;;
4416 ncr)
4417 lt_cv_deplibs_check_method=pass_all
4418 ;;
4419 sequent)
4420 lt_cv_file_magic_cmd='/bin/file'
4421 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4422 ;;
4423 sni)
4424 lt_cv_file_magic_cmd='/bin/file'
4425 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4426 lt_cv_file_magic_test_file=/lib/libc.so
4427 ;;
4428 siemens)
4429 lt_cv_deplibs_check_method=pass_all
4430 ;;
4431 pc)
4432 lt_cv_deplibs_check_method=pass_all
4433 ;;
4434 esac
4435 ;;
4436
4437sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4438 lt_cv_deplibs_check_method=pass_all
4439 ;;
4440esac
4441
4442fi
dd184caf 4443{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4444echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
d9898ee8 4445file_magic_cmd=$lt_cv_file_magic_cmd
4446deplibs_check_method=$lt_cv_deplibs_check_method
4447test -z "$deplibs_check_method" && deplibs_check_method=unknown
4448
4449
4450
4451
4452# If no C compiler was specified, use CC.
4453LTCC=${LTCC-"$CC"}
4454
4455# If no C compiler flags were specified, use CFLAGS.
4456LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4457
4458# Allow CC to be a program name with arguments.
4459compiler=$CC
4460
4461
dd184caf 4462# Check whether --enable-libtool-lock was given.
d9898ee8 4463if test "${enable_libtool_lock+set}" = set; then
dd184caf 4464 enableval=$enable_libtool_lock;
4465fi
d9898ee8 4466
d9898ee8 4467test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4468
4469# Some flags need to be propagated to the compiler or linker for good
4470# libtool support.
4471case $host in
4472ia64-*-hpux*)
4473 # Find out which ABI we are using.
4474 echo 'int i;' > conftest.$ac_ext
4475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4476 (eval $ac_compile) 2>&5
4477 ac_status=$?
4478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4479 (exit $ac_status); }; then
4480 case `/usr/bin/file conftest.$ac_objext` in
4481 *ELF-32*)
4482 HPUX_IA64_MODE="32"
4483 ;;
4484 *ELF-64*)
4485 HPUX_IA64_MODE="64"
4486 ;;
4487 esac
4488 fi
4489 rm -rf conftest*
4490 ;;
4491*-*-irix6*)
4492 # Find out which ABI we are using.
ac40fd9e 4493 echo '#line 4493 "configure"' > conftest.$ac_ext
d9898ee8 4494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4495 (eval $ac_compile) 2>&5
4496 ac_status=$?
4497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4498 (exit $ac_status); }; then
4499 if test "$lt_cv_prog_gnu_ld" = yes; then
4500 case `/usr/bin/file conftest.$ac_objext` in
4501 *32-bit*)
4502 LD="${LD-ld} -melf32bsmip"
4503 ;;
4504 *N32*)
4505 LD="${LD-ld} -melf32bmipn32"
4506 ;;
4507 *64-bit*)
4508 LD="${LD-ld} -melf64bmip"
4509 ;;
4510 esac
4511 else
4512 case `/usr/bin/file conftest.$ac_objext` in
4513 *32-bit*)
4514 LD="${LD-ld} -32"
4515 ;;
4516 *N32*)
4517 LD="${LD-ld} -n32"
4518 ;;
4519 *64-bit*)
4520 LD="${LD-ld} -64"
4521 ;;
4522 esac
4523 fi
4524 fi
4525 rm -rf conftest*
4526 ;;
4527
ac40fd9e 4528x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4529s390*-*linux*|sparc*-*linux*)
d9898ee8 4530 # Find out which ABI we are using.
4531 echo 'int i;' > conftest.$ac_ext
4532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4533 (eval $ac_compile) 2>&5
4534 ac_status=$?
4535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4536 (exit $ac_status); }; then
4537 case `/usr/bin/file conftest.o` in
4538 *32-bit*)
4539 case $host in
ac40fd9e 4540 x86_64-*kfreebsd*-gnu)
4541 LD="${LD-ld} -m elf_i386_fbsd"
4542 ;;
d9898ee8 4543 x86_64-*linux*)
4544 LD="${LD-ld} -m elf_i386"
4545 ;;
4546 ppc64-*linux*|powerpc64-*linux*)
4547 LD="${LD-ld} -m elf32ppclinux"
4548 ;;
4549 s390x-*linux*)
4550 LD="${LD-ld} -m elf_s390"
4551 ;;
4552 sparc64-*linux*)
4553 LD="${LD-ld} -m elf32_sparc"
4554 ;;
4555 esac
4556 ;;
4557 *64-bit*)
ac40fd9e 4558 libsuff=64
d9898ee8 4559 case $host in
ac40fd9e 4560 x86_64-*kfreebsd*-gnu)
4561 LD="${LD-ld} -m elf_x86_64_fbsd"
4562 ;;
d9898ee8 4563 x86_64-*linux*)
4564 LD="${LD-ld} -m elf_x86_64"
4565 ;;
4566 ppc*-*linux*|powerpc*-*linux*)
4567 LD="${LD-ld} -m elf64ppc"
4568 ;;
4569 s390*-*linux*)
4570 LD="${LD-ld} -m elf64_s390"
4571 ;;
4572 sparc*-*linux*)
4573 LD="${LD-ld} -m elf64_sparc"
4574 ;;
4575 esac
4576 ;;
4577 esac
4578 fi
4579 rm -rf conftest*
4580 ;;
4581
4582*-*-sco3.2v5*)
4583 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4584 SAVE_CFLAGS="$CFLAGS"
4585 CFLAGS="$CFLAGS -belf"
dd184caf 4586 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4587echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
d9898ee8 4588if test "${lt_cv_cc_needs_belf+set}" = set; then
4589 echo $ECHO_N "(cached) $ECHO_C" >&6
4590else
4591 ac_ext=c
4592ac_cpp='$CPP $CPPFLAGS'
4593ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4594ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4595ac_compiler_gnu=$ac_cv_c_compiler_gnu
4596
4597 cat >conftest.$ac_ext <<_ACEOF
4598/* confdefs.h. */
4599_ACEOF
4600cat confdefs.h >>conftest.$ac_ext
4601cat >>conftest.$ac_ext <<_ACEOF
4602/* end confdefs.h. */
4603
4604int
4605main ()
4606{
4607
4608 ;
4609 return 0;
4610}
4611_ACEOF
4612rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 4613if { (ac_try="$ac_link"
4614case "(($ac_try" in
4615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4616 *) ac_try_echo=$ac_try;;
4617esac
4618eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4619 (eval "$ac_link") 2>conftest.er1
d9898ee8 4620 ac_status=$?
4621 grep -v '^ *+' conftest.er1 >conftest.err
4622 rm -f conftest.er1
4623 cat conftest.err >&5
4624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 4625 (exit $ac_status); } && {
4626 test -z "$ac_c_werror_flag" ||
4627 test ! -s conftest.err
4628 } && test -s conftest$ac_exeext &&
4629 $as_test_x conftest$ac_exeext; then
d9898ee8 4630 lt_cv_cc_needs_belf=yes
4631else
4632 echo "$as_me: failed program was:" >&5
4633sed 's/^/| /' conftest.$ac_ext >&5
4634
dd184caf 4635 lt_cv_cc_needs_belf=no
d9898ee8 4636fi
dd184caf 4637
4638rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 4639 conftest$ac_exeext conftest.$ac_ext
4640 ac_ext=c
4641ac_cpp='$CPP $CPPFLAGS'
4642ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4643ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4644ac_compiler_gnu=$ac_cv_c_compiler_gnu
4645
4646fi
dd184caf 4647{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4648echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
d9898ee8 4649 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4650 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4651 CFLAGS="$SAVE_CFLAGS"
4652 fi
4653 ;;
4654sparc*-*solaris*)
4655 # Find out which ABI we are using.
4656 echo 'int i;' > conftest.$ac_ext
4657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4658 (eval $ac_compile) 2>&5
4659 ac_status=$?
4660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4661 (exit $ac_status); }; then
4662 case `/usr/bin/file conftest.o` in
4663 *64-bit*)
4664 case $lt_cv_prog_gnu_ld in
4665 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4666 *) LD="${LD-ld} -64" ;;
4667 esac
4668 ;;
4669 esac
4670 fi
4671 rm -rf conftest*
4672 ;;
4673
4674
4675esac
4676
4677need_locks="$enable_libtool_lock"
4678
4679
4680ac_ext=c
4681ac_cpp='$CPP $CPPFLAGS'
4682ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4683ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4684ac_compiler_gnu=$ac_cv_c_compiler_gnu
dd184caf 4685{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4686echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
d9898ee8 4687# On Suns, sometimes $CPP names a directory.
4688if test -n "$CPP" && test -d "$CPP"; then
4689 CPP=
4690fi
4691if test -z "$CPP"; then
4692 if test "${ac_cv_prog_CPP+set}" = set; then
4693 echo $ECHO_N "(cached) $ECHO_C" >&6
4694else
4695 # Double quotes because CPP needs to be expanded
4696 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4697 do
4698 ac_preproc_ok=false
4699for ac_c_preproc_warn_flag in '' yes
4700do
4701 # Use a header file that comes with gcc, so configuring glibc
4702 # with a fresh cross-compiler works.
4703 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4704 # <limits.h> exists even on freestanding compilers.
4705 # On the NeXT, cc -E runs the code through the compiler's parser,
4706 # not just through cpp. "Syntax error" is here to catch this case.
4707 cat >conftest.$ac_ext <<_ACEOF
4708/* confdefs.h. */
4709_ACEOF
4710cat confdefs.h >>conftest.$ac_ext
4711cat >>conftest.$ac_ext <<_ACEOF
4712/* end confdefs.h. */
4713#ifdef __STDC__
4714# include <limits.h>
4715#else
4716# include <assert.h>
4717#endif
4718 Syntax error
4719_ACEOF
dd184caf 4720if { (ac_try="$ac_cpp conftest.$ac_ext"
4721case "(($ac_try" in
4722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4723 *) ac_try_echo=$ac_try;;
4724esac
4725eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4726 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 4727 ac_status=$?
4728 grep -v '^ *+' conftest.er1 >conftest.err
4729 rm -f conftest.er1
4730 cat conftest.err >&5
4731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 4732 (exit $ac_status); } >/dev/null && {
4733 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4734 test ! -s conftest.err
4735 }; then
d9898ee8 4736 :
4737else
4738 echo "$as_me: failed program was:" >&5
4739sed 's/^/| /' conftest.$ac_ext >&5
4740
4741 # Broken: fails on valid input.
4742continue
4743fi
dd184caf 4744
d9898ee8 4745rm -f conftest.err conftest.$ac_ext
4746
dd184caf 4747 # OK, works on sane cases. Now check whether nonexistent headers
d9898ee8 4748 # can be detected and how.
4749 cat >conftest.$ac_ext <<_ACEOF
4750/* confdefs.h. */
4751_ACEOF
4752cat confdefs.h >>conftest.$ac_ext
4753cat >>conftest.$ac_ext <<_ACEOF
4754/* end confdefs.h. */
4755#include <ac_nonexistent.h>
4756_ACEOF
dd184caf 4757if { (ac_try="$ac_cpp conftest.$ac_ext"
4758case "(($ac_try" in
4759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4760 *) ac_try_echo=$ac_try;;
4761esac
4762eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4763 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 4764 ac_status=$?
4765 grep -v '^ *+' conftest.er1 >conftest.err
4766 rm -f conftest.er1
4767 cat conftest.err >&5
4768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 4769 (exit $ac_status); } >/dev/null && {
4770 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4771 test ! -s conftest.err
4772 }; then
d9898ee8 4773 # Broken: success on invalid input.
4774continue
4775else
4776 echo "$as_me: failed program was:" >&5
4777sed 's/^/| /' conftest.$ac_ext >&5
4778
4779 # Passes both tests.
4780ac_preproc_ok=:
4781break
4782fi
dd184caf 4783
d9898ee8 4784rm -f conftest.err conftest.$ac_ext
4785
4786done
4787# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4788rm -f conftest.err conftest.$ac_ext
4789if $ac_preproc_ok; then
4790 break
4791fi
4792
4793 done
4794 ac_cv_prog_CPP=$CPP
4795
4796fi
4797 CPP=$ac_cv_prog_CPP
4798else
4799 ac_cv_prog_CPP=$CPP
4800fi
dd184caf 4801{ echo "$as_me:$LINENO: result: $CPP" >&5
4802echo "${ECHO_T}$CPP" >&6; }
d9898ee8 4803ac_preproc_ok=false
4804for ac_c_preproc_warn_flag in '' yes
4805do
4806 # Use a header file that comes with gcc, so configuring glibc
4807 # with a fresh cross-compiler works.
4808 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4809 # <limits.h> exists even on freestanding compilers.
4810 # On the NeXT, cc -E runs the code through the compiler's parser,
4811 # not just through cpp. "Syntax error" is here to catch this case.
4812 cat >conftest.$ac_ext <<_ACEOF
4813/* confdefs.h. */
4814_ACEOF
4815cat confdefs.h >>conftest.$ac_ext
4816cat >>conftest.$ac_ext <<_ACEOF
4817/* end confdefs.h. */
4818#ifdef __STDC__
4819# include <limits.h>
4820#else
4821# include <assert.h>
4822#endif
4823 Syntax error
4824_ACEOF
dd184caf 4825if { (ac_try="$ac_cpp conftest.$ac_ext"
4826case "(($ac_try" in
4827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4828 *) ac_try_echo=$ac_try;;
4829esac
4830eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4831 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 4832 ac_status=$?
4833 grep -v '^ *+' conftest.er1 >conftest.err
4834 rm -f conftest.er1
4835 cat conftest.err >&5
4836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 4837 (exit $ac_status); } >/dev/null && {
4838 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4839 test ! -s conftest.err
4840 }; then
d9898ee8 4841 :
4842else
4843 echo "$as_me: failed program was:" >&5
4844sed 's/^/| /' conftest.$ac_ext >&5
4845
4846 # Broken: fails on valid input.
4847continue
4848fi
dd184caf 4849
d9898ee8 4850rm -f conftest.err conftest.$ac_ext
4851
dd184caf 4852 # OK, works on sane cases. Now check whether nonexistent headers
d9898ee8 4853 # can be detected and how.
4854 cat >conftest.$ac_ext <<_ACEOF
4855/* confdefs.h. */
4856_ACEOF
4857cat confdefs.h >>conftest.$ac_ext
4858cat >>conftest.$ac_ext <<_ACEOF
4859/* end confdefs.h. */
4860#include <ac_nonexistent.h>
4861_ACEOF
dd184caf 4862if { (ac_try="$ac_cpp conftest.$ac_ext"
4863case "(($ac_try" in
4864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4865 *) ac_try_echo=$ac_try;;
4866esac
4867eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4868 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 4869 ac_status=$?
4870 grep -v '^ *+' conftest.er1 >conftest.err
4871 rm -f conftest.er1
4872 cat conftest.err >&5
4873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 4874 (exit $ac_status); } >/dev/null && {
4875 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4876 test ! -s conftest.err
4877 }; then
d9898ee8 4878 # Broken: success on invalid input.
4879continue
4880else
4881 echo "$as_me: failed program was:" >&5
4882sed 's/^/| /' conftest.$ac_ext >&5
4883
4884 # Passes both tests.
4885ac_preproc_ok=:
4886break
4887fi
dd184caf 4888
d9898ee8 4889rm -f conftest.err conftest.$ac_ext
4890
4891done
4892# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4893rm -f conftest.err conftest.$ac_ext
4894if $ac_preproc_ok; then
4895 :
4896else
4897 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4898See \`config.log' for more details." >&5
4899echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4900See \`config.log' for more details." >&2;}
4901 { (exit 1); exit 1; }; }
4902fi
4903
4904ac_ext=c
4905ac_cpp='$CPP $CPPFLAGS'
4906ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4907ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4908ac_compiler_gnu=$ac_cv_c_compiler_gnu
4909
4910
dd184caf 4911{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4912echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
d9898ee8 4913if test "${ac_cv_header_stdc+set}" = set; then
4914 echo $ECHO_N "(cached) $ECHO_C" >&6
4915else
4916 cat >conftest.$ac_ext <<_ACEOF
4917/* confdefs.h. */
4918_ACEOF
4919cat confdefs.h >>conftest.$ac_ext
4920cat >>conftest.$ac_ext <<_ACEOF
4921/* end confdefs.h. */
4922#include <stdlib.h>
4923#include <stdarg.h>
4924#include <string.h>
4925#include <float.h>
4926
4927int
4928main ()
4929{
4930
4931 ;
4932 return 0;
4933}
4934_ACEOF
4935rm -f conftest.$ac_objext
dd184caf 4936if { (ac_try="$ac_compile"
4937case "(($ac_try" in
4938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4939 *) ac_try_echo=$ac_try;;
4940esac
4941eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4942 (eval "$ac_compile") 2>conftest.er1
d9898ee8 4943 ac_status=$?
4944 grep -v '^ *+' conftest.er1 >conftest.err
4945 rm -f conftest.er1
4946 cat conftest.err >&5
4947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 4948 (exit $ac_status); } && {
4949 test -z "$ac_c_werror_flag" ||
4950 test ! -s conftest.err
4951 } && test -s conftest.$ac_objext; then
d9898ee8 4952 ac_cv_header_stdc=yes
4953else
4954 echo "$as_me: failed program was:" >&5
4955sed 's/^/| /' conftest.$ac_ext >&5
4956
dd184caf 4957 ac_cv_header_stdc=no
d9898ee8 4958fi
dd184caf 4959
4960rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 4961
4962if test $ac_cv_header_stdc = yes; then
4963 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4964 cat >conftest.$ac_ext <<_ACEOF
4965/* confdefs.h. */
4966_ACEOF
4967cat confdefs.h >>conftest.$ac_ext
4968cat >>conftest.$ac_ext <<_ACEOF
4969/* end confdefs.h. */
4970#include <string.h>
4971
4972_ACEOF
4973if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4974 $EGREP "memchr" >/dev/null 2>&1; then
4975 :
4976else
4977 ac_cv_header_stdc=no
4978fi
4979rm -f conftest*
4980
4981fi
4982
4983if test $ac_cv_header_stdc = yes; then
4984 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4985 cat >conftest.$ac_ext <<_ACEOF
4986/* confdefs.h. */
4987_ACEOF
4988cat confdefs.h >>conftest.$ac_ext
4989cat >>conftest.$ac_ext <<_ACEOF
4990/* end confdefs.h. */
4991#include <stdlib.h>
4992
4993_ACEOF
4994if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4995 $EGREP "free" >/dev/null 2>&1; then
4996 :
4997else
4998 ac_cv_header_stdc=no
4999fi
5000rm -f conftest*
5001
5002fi
5003
5004if test $ac_cv_header_stdc = yes; then
5005 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5006 if test "$cross_compiling" = yes; then
5007 :
5008else
5009 cat >conftest.$ac_ext <<_ACEOF
5010/* confdefs.h. */
5011_ACEOF
5012cat confdefs.h >>conftest.$ac_ext
5013cat >>conftest.$ac_ext <<_ACEOF
5014/* end confdefs.h. */
5015#include <ctype.h>
dd184caf 5016#include <stdlib.h>
d9898ee8 5017#if ((' ' & 0x0FF) == 0x020)
5018# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5019# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5020#else
5021# define ISLOWER(c) \
5022 (('a' <= (c) && (c) <= 'i') \
5023 || ('j' <= (c) && (c) <= 'r') \
5024 || ('s' <= (c) && (c) <= 'z'))
5025# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5026#endif
5027
5028#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5029int
5030main ()
5031{
5032 int i;
5033 for (i = 0; i < 256; i++)
5034 if (XOR (islower (i), ISLOWER (i))
5035 || toupper (i) != TOUPPER (i))
dd184caf 5036 return 2;
5037 return 0;
d9898ee8 5038}
5039_ACEOF
5040rm -f conftest$ac_exeext
dd184caf 5041if { (ac_try="$ac_link"
5042case "(($ac_try" in
5043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5044 *) ac_try_echo=$ac_try;;
5045esac
5046eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5047 (eval "$ac_link") 2>&5
d9898ee8 5048 ac_status=$?
5049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5050 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
dd184caf 5051 { (case "(($ac_try" in
5052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5053 *) ac_try_echo=$ac_try;;
5054esac
5055eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5056 (eval "$ac_try") 2>&5
d9898ee8 5057 ac_status=$?
5058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5059 (exit $ac_status); }; }; then
5060 :
5061else
5062 echo "$as_me: program exited with status $ac_status" >&5
5063echo "$as_me: failed program was:" >&5
5064sed 's/^/| /' conftest.$ac_ext >&5
5065
5066( exit $ac_status )
5067ac_cv_header_stdc=no
5068fi
dd184caf 5069rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d9898ee8 5070fi
dd184caf 5071
5072
d9898ee8 5073fi
5074fi
dd184caf 5075{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5076echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
d9898ee8 5077if test $ac_cv_header_stdc = yes; then
5078
5079cat >>confdefs.h <<\_ACEOF
5080#define STDC_HEADERS 1
5081_ACEOF
5082
5083fi
5084
5085# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5096 inttypes.h stdint.h unistd.h
5097do
5098as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
dd184caf 5099{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5100echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5101if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 5102 echo $ECHO_N "(cached) $ECHO_C" >&6
5103else
5104 cat >conftest.$ac_ext <<_ACEOF
5105/* confdefs.h. */
5106_ACEOF
5107cat confdefs.h >>conftest.$ac_ext
5108cat >>conftest.$ac_ext <<_ACEOF
5109/* end confdefs.h. */
5110$ac_includes_default
5111
5112#include <$ac_header>
5113_ACEOF
5114rm -f conftest.$ac_objext
dd184caf 5115if { (ac_try="$ac_compile"
5116case "(($ac_try" in
5117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5118 *) ac_try_echo=$ac_try;;
5119esac
5120eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5121 (eval "$ac_compile") 2>conftest.er1
d9898ee8 5122 ac_status=$?
5123 grep -v '^ *+' conftest.er1 >conftest.err
5124 rm -f conftest.er1
5125 cat conftest.err >&5
5126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 5127 (exit $ac_status); } && {
5128 test -z "$ac_c_werror_flag" ||
5129 test ! -s conftest.err
5130 } && test -s conftest.$ac_objext; then
d9898ee8 5131 eval "$as_ac_Header=yes"
5132else
5133 echo "$as_me: failed program was:" >&5
5134sed 's/^/| /' conftest.$ac_ext >&5
5135
dd184caf 5136 eval "$as_ac_Header=no"
d9898ee8 5137fi
dd184caf 5138
5139rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 5140fi
dd184caf 5141ac_res=`eval echo '${'$as_ac_Header'}'`
5142 { echo "$as_me:$LINENO: result: $ac_res" >&5
5143echo "${ECHO_T}$ac_res" >&6; }
d9898ee8 5144if test `eval echo '${'$as_ac_Header'}'` = yes; then
5145 cat >>confdefs.h <<_ACEOF
5146#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5147_ACEOF
5148
5149fi
5150
5151done
5152
5153
5154
5155for ac_header in dlfcn.h
5156do
5157as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
dd184caf 5158if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5159 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5160echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5161if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 5162 echo $ECHO_N "(cached) $ECHO_C" >&6
5163fi
dd184caf 5164ac_res=`eval echo '${'$as_ac_Header'}'`
5165 { echo "$as_me:$LINENO: result: $ac_res" >&5
5166echo "${ECHO_T}$ac_res" >&6; }
d9898ee8 5167else
5168 # Is the header compilable?
dd184caf 5169{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5170echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
d9898ee8 5171cat >conftest.$ac_ext <<_ACEOF
5172/* confdefs.h. */
5173_ACEOF
5174cat confdefs.h >>conftest.$ac_ext
5175cat >>conftest.$ac_ext <<_ACEOF
5176/* end confdefs.h. */
5177$ac_includes_default
5178#include <$ac_header>
5179_ACEOF
5180rm -f conftest.$ac_objext
dd184caf 5181if { (ac_try="$ac_compile"
5182case "(($ac_try" in
5183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5184 *) ac_try_echo=$ac_try;;
5185esac
5186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5187 (eval "$ac_compile") 2>conftest.er1
d9898ee8 5188 ac_status=$?
5189 grep -v '^ *+' conftest.er1 >conftest.err
5190 rm -f conftest.er1
5191 cat conftest.err >&5
5192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 5193 (exit $ac_status); } && {
5194 test -z "$ac_c_werror_flag" ||
5195 test ! -s conftest.err
5196 } && test -s conftest.$ac_objext; then
d9898ee8 5197 ac_header_compiler=yes
5198else
5199 echo "$as_me: failed program was:" >&5
5200sed 's/^/| /' conftest.$ac_ext >&5
5201
dd184caf 5202 ac_header_compiler=no
d9898ee8 5203fi
dd184caf 5204
5205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5206{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5207echo "${ECHO_T}$ac_header_compiler" >&6; }
d9898ee8 5208
5209# Is the header present?
dd184caf 5210{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5211echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
d9898ee8 5212cat >conftest.$ac_ext <<_ACEOF
5213/* confdefs.h. */
5214_ACEOF
5215cat confdefs.h >>conftest.$ac_ext
5216cat >>conftest.$ac_ext <<_ACEOF
5217/* end confdefs.h. */
5218#include <$ac_header>
5219_ACEOF
dd184caf 5220if { (ac_try="$ac_cpp conftest.$ac_ext"
5221case "(($ac_try" in
5222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5223 *) ac_try_echo=$ac_try;;
5224esac
5225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5226 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 5227 ac_status=$?
5228 grep -v '^ *+' conftest.er1 >conftest.err
5229 rm -f conftest.er1
5230 cat conftest.err >&5
5231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 5232 (exit $ac_status); } >/dev/null && {
5233 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5234 test ! -s conftest.err
5235 }; then
d9898ee8 5236 ac_header_preproc=yes
5237else
5238 echo "$as_me: failed program was:" >&5
5239sed 's/^/| /' conftest.$ac_ext >&5
5240
5241 ac_header_preproc=no
5242fi
dd184caf 5243
d9898ee8 5244rm -f conftest.err conftest.$ac_ext
dd184caf 5245{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5246echo "${ECHO_T}$ac_header_preproc" >&6; }
d9898ee8 5247
5248# So? What about this header?
5249case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5250 yes:no: )
5251 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5252echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5253 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5254echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5255 ac_header_preproc=yes
5256 ;;
5257 no:yes:* )
5258 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5259echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5260 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5261echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5262 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5263echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5264 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5265echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5266 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5267echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5268 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5269echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
dd184caf 5270 ( cat <<\_ASBOX
d9898ee8 5271## -------------------------------------------------- ##
5272## Report this to courier-users@lists.sourceforge.net ##
5273## -------------------------------------------------- ##
5274_ASBOX
dd184caf 5275 ) | sed "s/^/$as_me: WARNING: /" >&2
d9898ee8 5276 ;;
5277esac
dd184caf 5278{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5279echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5280if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 5281 echo $ECHO_N "(cached) $ECHO_C" >&6
5282else
5283 eval "$as_ac_Header=\$ac_header_preproc"
5284fi
dd184caf 5285ac_res=`eval echo '${'$as_ac_Header'}'`
5286 { echo "$as_me:$LINENO: result: $ac_res" >&5
5287echo "${ECHO_T}$ac_res" >&6; }
d9898ee8 5288
5289fi
5290if test `eval echo '${'$as_ac_Header'}'` = yes; then
5291 cat >>confdefs.h <<_ACEOF
5292#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5293_ACEOF
5294
5295fi
5296
5297done
5298
dd184caf 5299ac_ext=cpp
d9898ee8 5300ac_cpp='$CXXCPP $CPPFLAGS'
5301ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5302ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5303ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
dd184caf 5304if test -z "$CXX"; then
5305 if test -n "$CCC"; then
5306 CXX=$CCC
5307 else
5308 if test -n "$ac_tool_prefix"; then
5309 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
d9898ee8 5310 do
5311 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5312set dummy $ac_tool_prefix$ac_prog; ac_word=$2
dd184caf 5313{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5314echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 5315if test "${ac_cv_prog_CXX+set}" = set; then
5316 echo $ECHO_N "(cached) $ECHO_C" >&6
5317else
5318 if test -n "$CXX"; then
5319 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5320else
5321as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5322for as_dir in $PATH
5323do
5324 IFS=$as_save_IFS
5325 test -z "$as_dir" && as_dir=.
5326 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 5327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 5328 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5329 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5330 break 2
5331 fi
5332done
5333done
dd184caf 5334IFS=$as_save_IFS
d9898ee8 5335
5336fi
5337fi
5338CXX=$ac_cv_prog_CXX
5339if test -n "$CXX"; then
dd184caf 5340 { echo "$as_me:$LINENO: result: $CXX" >&5
5341echo "${ECHO_T}$CXX" >&6; }
d9898ee8 5342else
dd184caf 5343 { echo "$as_me:$LINENO: result: no" >&5
5344echo "${ECHO_T}no" >&6; }
d9898ee8 5345fi
5346
dd184caf 5347
d9898ee8 5348 test -n "$CXX" && break
5349 done
5350fi
5351if test -z "$CXX"; then
5352 ac_ct_CXX=$CXX
dd184caf 5353 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
d9898ee8 5354do
5355 # Extract the first word of "$ac_prog", so it can be a program name with args.
5356set dummy $ac_prog; ac_word=$2
dd184caf 5357{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5358echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 5359if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5360 echo $ECHO_N "(cached) $ECHO_C" >&6
5361else
5362 if test -n "$ac_ct_CXX"; then
5363 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5364else
5365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5366for as_dir in $PATH
5367do
5368 IFS=$as_save_IFS
5369 test -z "$as_dir" && as_dir=.
5370 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 5371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 5372 ac_cv_prog_ac_ct_CXX="$ac_prog"
5373 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5374 break 2
5375 fi
5376done
5377done
dd184caf 5378IFS=$as_save_IFS
d9898ee8 5379
5380fi
5381fi
5382ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5383if test -n "$ac_ct_CXX"; then
dd184caf 5384 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5385echo "${ECHO_T}$ac_ct_CXX" >&6; }
d9898ee8 5386else
dd184caf 5387 { echo "$as_me:$LINENO: result: no" >&5
5388echo "${ECHO_T}no" >&6; }
d9898ee8 5389fi
5390
dd184caf 5391
d9898ee8 5392 test -n "$ac_ct_CXX" && break
5393done
d9898ee8 5394
dd184caf 5395 if test "x$ac_ct_CXX" = x; then
5396 CXX="g++"
5397 else
5398 case $cross_compiling:$ac_tool_warned in
5399yes:)
5400{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5401whose name does not start with the host triplet. If you think this
5402configuration is useful to you, please write to autoconf@gnu.org." >&5
5403echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5404whose name does not start with the host triplet. If you think this
5405configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5406ac_tool_warned=yes ;;
5407esac
5408 CXX=$ac_ct_CXX
5409 fi
d9898ee8 5410fi
5411
dd184caf 5412 fi
5413fi
d9898ee8 5414# Provide some information about the compiler.
dd184caf 5415echo "$as_me:$LINENO: checking for C++ compiler version" >&5
d9898ee8 5416ac_compiler=`set X $ac_compile; echo $2`
dd184caf 5417{ (ac_try="$ac_compiler --version >&5"
5418case "(($ac_try" in
5419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5420 *) ac_try_echo=$ac_try;;
5421esac
5422eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5423 (eval "$ac_compiler --version >&5") 2>&5
d9898ee8 5424 ac_status=$?
5425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5426 (exit $ac_status); }
dd184caf 5427{ (ac_try="$ac_compiler -v >&5"
5428case "(($ac_try" in
5429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5430 *) ac_try_echo=$ac_try;;
5431esac
5432eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5433 (eval "$ac_compiler -v >&5") 2>&5
d9898ee8 5434 ac_status=$?
5435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5436 (exit $ac_status); }
dd184caf 5437{ (ac_try="$ac_compiler -V >&5"
5438case "(($ac_try" in
5439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5440 *) ac_try_echo=$ac_try;;
5441esac
5442eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5443 (eval "$ac_compiler -V >&5") 2>&5
d9898ee8 5444 ac_status=$?
5445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5446 (exit $ac_status); }
5447
dd184caf 5448{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5449echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
d9898ee8 5450if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5451 echo $ECHO_N "(cached) $ECHO_C" >&6
5452else
5453 cat >conftest.$ac_ext <<_ACEOF
5454/* confdefs.h. */
5455_ACEOF
5456cat confdefs.h >>conftest.$ac_ext
5457cat >>conftest.$ac_ext <<_ACEOF
5458/* end confdefs.h. */
5459
5460int
5461main ()
5462{
5463#ifndef __GNUC__
5464 choke me
5465#endif
5466
5467 ;
5468 return 0;
5469}
5470_ACEOF
5471rm -f conftest.$ac_objext
dd184caf 5472if { (ac_try="$ac_compile"
5473case "(($ac_try" in
5474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5475 *) ac_try_echo=$ac_try;;
5476esac
5477eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5478 (eval "$ac_compile") 2>conftest.er1
d9898ee8 5479 ac_status=$?
5480 grep -v '^ *+' conftest.er1 >conftest.err
5481 rm -f conftest.er1
5482 cat conftest.err >&5
5483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 5484 (exit $ac_status); } && {
5485 test -z "$ac_cxx_werror_flag" ||
5486 test ! -s conftest.err
5487 } && test -s conftest.$ac_objext; then
d9898ee8 5488 ac_compiler_gnu=yes
5489else
5490 echo "$as_me: failed program was:" >&5
5491sed 's/^/| /' conftest.$ac_ext >&5
5492
dd184caf 5493 ac_compiler_gnu=no
d9898ee8 5494fi
dd184caf 5495
5496rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 5497ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5498
5499fi
dd184caf 5500{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5501echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
d9898ee8 5502GXX=`test $ac_compiler_gnu = yes && echo yes`
5503ac_test_CXXFLAGS=${CXXFLAGS+set}
5504ac_save_CXXFLAGS=$CXXFLAGS
dd184caf 5505{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5506echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
d9898ee8 5507if test "${ac_cv_prog_cxx_g+set}" = set; then
5508 echo $ECHO_N "(cached) $ECHO_C" >&6
5509else
dd184caf 5510 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5511 ac_cxx_werror_flag=yes
5512 ac_cv_prog_cxx_g=no
5513 CXXFLAGS="-g"
5514 cat >conftest.$ac_ext <<_ACEOF
d9898ee8 5515/* confdefs.h. */
5516_ACEOF
5517cat confdefs.h >>conftest.$ac_ext
5518cat >>conftest.$ac_ext <<_ACEOF
5519/* end confdefs.h. */
5520
5521int
5522main ()
5523{
5524
5525 ;
5526 return 0;
5527}
5528_ACEOF
5529rm -f conftest.$ac_objext
dd184caf 5530if { (ac_try="$ac_compile"
5531case "(($ac_try" in
5532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5533 *) ac_try_echo=$ac_try;;
5534esac
5535eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5536 (eval "$ac_compile") 2>conftest.er1
d9898ee8 5537 ac_status=$?
5538 grep -v '^ *+' conftest.er1 >conftest.err
5539 rm -f conftest.er1
5540 cat conftest.err >&5
5541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 5542 (exit $ac_status); } && {
5543 test -z "$ac_cxx_werror_flag" ||
5544 test ! -s conftest.err
5545 } && test -s conftest.$ac_objext; then
d9898ee8 5546 ac_cv_prog_cxx_g=yes
5547else
5548 echo "$as_me: failed program was:" >&5
5549sed 's/^/| /' conftest.$ac_ext >&5
5550
dd184caf 5551 CXXFLAGS=""
5552 cat >conftest.$ac_ext <<_ACEOF
d9898ee8 5553/* confdefs.h. */
5554_ACEOF
5555cat confdefs.h >>conftest.$ac_ext
5556cat >>conftest.$ac_ext <<_ACEOF
5557/* end confdefs.h. */
dd184caf 5558
d9898ee8 5559int
5560main ()
5561{
dd184caf 5562
d9898ee8 5563 ;
5564 return 0;
5565}
5566_ACEOF
5567rm -f conftest.$ac_objext
dd184caf 5568if { (ac_try="$ac_compile"
5569case "(($ac_try" in
5570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5571 *) ac_try_echo=$ac_try;;
5572esac
5573eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5574 (eval "$ac_compile") 2>conftest.er1
d9898ee8 5575 ac_status=$?
5576 grep -v '^ *+' conftest.er1 >conftest.err
5577 rm -f conftest.er1
5578 cat conftest.err >&5
5579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 5580 (exit $ac_status); } && {
5581 test -z "$ac_cxx_werror_flag" ||
5582 test ! -s conftest.err
5583 } && test -s conftest.$ac_objext; then
d9898ee8 5584 :
5585else
5586 echo "$as_me: failed program was:" >&5
5587sed 's/^/| /' conftest.$ac_ext >&5
5588
dd184caf 5589 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5590 CXXFLAGS="-g"
5591 cat >conftest.$ac_ext <<_ACEOF
d9898ee8 5592/* confdefs.h. */
5593_ACEOF
5594cat confdefs.h >>conftest.$ac_ext
5595cat >>conftest.$ac_ext <<_ACEOF
5596/* end confdefs.h. */
dd184caf 5597
d9898ee8 5598int
5599main ()
5600{
dd184caf 5601
d9898ee8 5602 ;
5603 return 0;
5604}
5605_ACEOF
5606rm -f conftest.$ac_objext
dd184caf 5607if { (ac_try="$ac_compile"
5608case "(($ac_try" in
5609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5610 *) ac_try_echo=$ac_try;;
5611esac
5612eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5613 (eval "$ac_compile") 2>conftest.er1
d9898ee8 5614 ac_status=$?
5615 grep -v '^ *+' conftest.er1 >conftest.err
5616 rm -f conftest.er1
5617 cat conftest.err >&5
5618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 5619 (exit $ac_status); } && {
5620 test -z "$ac_cxx_werror_flag" ||
5621 test ! -s conftest.err
5622 } && test -s conftest.$ac_objext; then
5623 ac_cv_prog_cxx_g=yes
d9898ee8 5624else
5625 echo "$as_me: failed program was:" >&5
5626sed 's/^/| /' conftest.$ac_ext >&5
5627
dd184caf 5628
d9898ee8 5629fi
dd184caf 5630
5631rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 5632fi
5633
dd184caf 5634rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5635fi
5636
5637rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5638 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5639fi
5640{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5641echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5642if test "$ac_test_CXXFLAGS" = set; then
5643 CXXFLAGS=$ac_save_CXXFLAGS
5644elif test $ac_cv_prog_cxx_g = yes; then
5645 if test "$GXX" = yes; then
5646 CXXFLAGS="-g -O2"
5647 else
5648 CXXFLAGS="-g"
5649 fi
5650else
5651 if test "$GXX" = yes; then
5652 CXXFLAGS="-O2"
5653 else
5654 CXXFLAGS=
5655 fi
5656fi
5657ac_ext=cpp
d9898ee8 5658ac_cpp='$CXXCPP $CPPFLAGS'
5659ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5660ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5661ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5662
5663depcc="$CXX" am_compiler_list=
5664
dd184caf 5665{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5666echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
d9898ee8 5667if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5668 echo $ECHO_N "(cached) $ECHO_C" >&6
5669else
5670 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5671 # We make a subdir and do the tests there. Otherwise we can end up
5672 # making bogus files that we don't know about and never remove. For
5673 # instance it was reported that on HP-UX the gcc test will end up
5674 # making a dummy file named `D' -- because `-MD' means `put the output
5675 # in D'.
5676 mkdir conftest.dir
5677 # Copy depcomp to subdir because otherwise we won't find it if we're
5678 # using a relative directory.
5679 cp "$am_depcomp" conftest.dir
5680 cd conftest.dir
5681 # We will build objects and dependencies in a subdirectory because
5682 # it helps to detect inapplicable dependency modes. For instance
5683 # both Tru64's cc and ICC support -MD to output dependencies as a
5684 # side effect of compilation, but ICC will put the dependencies in
5685 # the current directory while Tru64 will put them in the object
5686 # directory.
5687 mkdir sub
5688
5689 am_cv_CXX_dependencies_compiler_type=none
5690 if test "$am_compiler_list" = ""; then
5691 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5692 fi
5693 for depmode in $am_compiler_list; do
5694 # Setup a source with many dependencies, because some compilers
5695 # like to wrap large dependency lists on column 80 (with \), and
5696 # we should not choose a depcomp mode which is confused by this.
5697 #
5698 # We need to recreate these files for each test, as the compiler may
5699 # overwrite some of them when testing with obscure command lines.
5700 # This happens at least with the AIX C compiler.
5701 : > sub/conftest.c
5702 for i in 1 2 3 4 5 6; do
5703 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5704 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5705 # Solaris 8's {/usr,}/bin/sh.
5706 touch sub/conftst$i.h
5707 done
5708 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5709
5710 case $depmode in
5711 nosideeffect)
5712 # after this tag, mechanisms are not by side-effect, so they'll
5713 # only be used when explicitly requested
5714 if test "x$enable_dependency_tracking" = xyes; then
5715 continue
5716 else
5717 break
5718 fi
5719 ;;
5720 none) break ;;
5721 esac
5722 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5723 # mode. It turns out that the SunPro C++ compiler does not properly
5724 # handle `-M -o', and we need to detect this.
5725 if depmode=$depmode \
5726 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5727 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5728 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5729 >/dev/null 2>conftest.err &&
dd184caf 5730 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
d9898ee8 5731 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5732 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5733 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5734 # icc doesn't choke on unknown options, it will just issue warnings
5735 # or remarks (even with -Werror). So we grep stderr for any message
5736 # that says an option was ignored or not supported.
5737 # When given -MP, icc 7.0 and 7.1 complain thusly:
5738 # icc: Command line warning: ignoring option '-M'; no argument required
5739 # The diagnosis changed in icc 8.0:
5740 # icc: Command line remark: option '-MP' not supported
5741 if (grep 'ignoring option' conftest.err ||
5742 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5743 am_cv_CXX_dependencies_compiler_type=$depmode
5744 break
5745 fi
5746 fi
5747 done
5748
5749 cd ..
5750 rm -rf conftest.dir
5751else
5752 am_cv_CXX_dependencies_compiler_type=none
5753fi
5754
5755fi
dd184caf 5756{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5757echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
d9898ee8 5758CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5759
dd184caf 5760 if
d9898ee8 5761 test "x$enable_dependency_tracking" != xno \
5762 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5763 am__fastdepCXX_TRUE=
5764 am__fastdepCXX_FALSE='#'
5765else
5766 am__fastdepCXX_TRUE='#'
5767 am__fastdepCXX_FALSE=
5768fi
5769
5770
5771
5772
5773if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5774 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5775 (test "X$CXX" != "Xg++"))) ; then
dd184caf 5776 ac_ext=cpp
d9898ee8 5777ac_cpp='$CXXCPP $CPPFLAGS'
5778ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5779ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5780ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
dd184caf 5781{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5782echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
d9898ee8 5783if test -z "$CXXCPP"; then
5784 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5785 echo $ECHO_N "(cached) $ECHO_C" >&6
5786else
5787 # Double quotes because CXXCPP needs to be expanded
5788 for CXXCPP in "$CXX -E" "/lib/cpp"
5789 do
5790 ac_preproc_ok=false
5791for ac_cxx_preproc_warn_flag in '' yes
5792do
5793 # Use a header file that comes with gcc, so configuring glibc
5794 # with a fresh cross-compiler works.
5795 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5796 # <limits.h> exists even on freestanding compilers.
5797 # On the NeXT, cc -E runs the code through the compiler's parser,
5798 # not just through cpp. "Syntax error" is here to catch this case.
5799 cat >conftest.$ac_ext <<_ACEOF
5800/* confdefs.h. */
5801_ACEOF
5802cat confdefs.h >>conftest.$ac_ext
5803cat >>conftest.$ac_ext <<_ACEOF
5804/* end confdefs.h. */
5805#ifdef __STDC__
5806# include <limits.h>
5807#else
5808# include <assert.h>
5809#endif
5810 Syntax error
5811_ACEOF
dd184caf 5812if { (ac_try="$ac_cpp conftest.$ac_ext"
5813case "(($ac_try" in
5814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5815 *) ac_try_echo=$ac_try;;
5816esac
5817eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5818 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 5819 ac_status=$?
5820 grep -v '^ *+' conftest.er1 >conftest.err
5821 rm -f conftest.er1
5822 cat conftest.err >&5
5823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 5824 (exit $ac_status); } >/dev/null && {
5825 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5826 test ! -s conftest.err
5827 }; then
d9898ee8 5828 :
5829else
5830 echo "$as_me: failed program was:" >&5
5831sed 's/^/| /' conftest.$ac_ext >&5
5832
5833 # Broken: fails on valid input.
5834continue
5835fi
dd184caf 5836
d9898ee8 5837rm -f conftest.err conftest.$ac_ext
5838
dd184caf 5839 # OK, works on sane cases. Now check whether nonexistent headers
d9898ee8 5840 # can be detected and how.
5841 cat >conftest.$ac_ext <<_ACEOF
5842/* confdefs.h. */
5843_ACEOF
5844cat confdefs.h >>conftest.$ac_ext
5845cat >>conftest.$ac_ext <<_ACEOF
5846/* end confdefs.h. */
5847#include <ac_nonexistent.h>
5848_ACEOF
dd184caf 5849if { (ac_try="$ac_cpp conftest.$ac_ext"
5850case "(($ac_try" in
5851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5852 *) ac_try_echo=$ac_try;;
5853esac
5854eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5855 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 5856 ac_status=$?
5857 grep -v '^ *+' conftest.er1 >conftest.err
5858 rm -f conftest.er1
5859 cat conftest.err >&5
5860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 5861 (exit $ac_status); } >/dev/null && {
5862 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5863 test ! -s conftest.err
5864 }; then
d9898ee8 5865 # Broken: success on invalid input.
5866continue
5867else
5868 echo "$as_me: failed program was:" >&5
5869sed 's/^/| /' conftest.$ac_ext >&5
5870
5871 # Passes both tests.
5872ac_preproc_ok=:
5873break
5874fi
dd184caf 5875
d9898ee8 5876rm -f conftest.err conftest.$ac_ext
5877
5878done
5879# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5880rm -f conftest.err conftest.$ac_ext
5881if $ac_preproc_ok; then
5882 break
5883fi
5884
5885 done
5886 ac_cv_prog_CXXCPP=$CXXCPP
5887
5888fi
5889 CXXCPP=$ac_cv_prog_CXXCPP
5890else
5891 ac_cv_prog_CXXCPP=$CXXCPP
5892fi
dd184caf 5893{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
5894echo "${ECHO_T}$CXXCPP" >&6; }
d9898ee8 5895ac_preproc_ok=false
5896for ac_cxx_preproc_warn_flag in '' yes
5897do
5898 # Use a header file that comes with gcc, so configuring glibc
5899 # with a fresh cross-compiler works.
5900 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5901 # <limits.h> exists even on freestanding compilers.
5902 # On the NeXT, cc -E runs the code through the compiler's parser,
5903 # not just through cpp. "Syntax error" is here to catch this case.
5904 cat >conftest.$ac_ext <<_ACEOF
5905/* confdefs.h. */
5906_ACEOF
5907cat confdefs.h >>conftest.$ac_ext
5908cat >>conftest.$ac_ext <<_ACEOF
5909/* end confdefs.h. */
5910#ifdef __STDC__
5911# include <limits.h>
5912#else
5913# include <assert.h>
5914#endif
5915 Syntax error
5916_ACEOF
dd184caf 5917if { (ac_try="$ac_cpp conftest.$ac_ext"
5918case "(($ac_try" in
5919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5920 *) ac_try_echo=$ac_try;;
5921esac
5922eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5923 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 5924 ac_status=$?
5925 grep -v '^ *+' conftest.er1 >conftest.err
5926 rm -f conftest.er1
5927 cat conftest.err >&5
5928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 5929 (exit $ac_status); } >/dev/null && {
5930 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5931 test ! -s conftest.err
5932 }; then
d9898ee8 5933 :
5934else
5935 echo "$as_me: failed program was:" >&5
5936sed 's/^/| /' conftest.$ac_ext >&5
5937
5938 # Broken: fails on valid input.
5939continue
5940fi
dd184caf 5941
d9898ee8 5942rm -f conftest.err conftest.$ac_ext
5943
dd184caf 5944 # OK, works on sane cases. Now check whether nonexistent headers
d9898ee8 5945 # can be detected and how.
5946 cat >conftest.$ac_ext <<_ACEOF
5947/* confdefs.h. */
5948_ACEOF
5949cat confdefs.h >>conftest.$ac_ext
5950cat >>conftest.$ac_ext <<_ACEOF
5951/* end confdefs.h. */
5952#include <ac_nonexistent.h>
5953_ACEOF
dd184caf 5954if { (ac_try="$ac_cpp conftest.$ac_ext"
5955case "(($ac_try" in
5956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5957 *) ac_try_echo=$ac_try;;
5958esac
5959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5960 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 5961 ac_status=$?
5962 grep -v '^ *+' conftest.er1 >conftest.err
5963 rm -f conftest.er1
5964 cat conftest.err >&5
5965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 5966 (exit $ac_status); } >/dev/null && {
5967 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5968 test ! -s conftest.err
5969 }; then
d9898ee8 5970 # Broken: success on invalid input.
5971continue
5972else
5973 echo "$as_me: failed program was:" >&5
5974sed 's/^/| /' conftest.$ac_ext >&5
5975
5976 # Passes both tests.
5977ac_preproc_ok=:
5978break
5979fi
dd184caf 5980
d9898ee8 5981rm -f conftest.err conftest.$ac_ext
5982
5983done
5984# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5985rm -f conftest.err conftest.$ac_ext
5986if $ac_preproc_ok; then
5987 :
5988else
5989 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5990See \`config.log' for more details." >&5
5991echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5992See \`config.log' for more details." >&2;}
5993 { (exit 1); exit 1; }; }
5994fi
5995
dd184caf 5996ac_ext=cpp
d9898ee8 5997ac_cpp='$CXXCPP $CPPFLAGS'
5998ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5999ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6000ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6001
6002fi
6003
6004
6005ac_ext=f
6006ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6007ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6008ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6009if test -n "$ac_tool_prefix"; then
dd184caf 6010 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 6011 do
6012 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6013set dummy $ac_tool_prefix$ac_prog; ac_word=$2
dd184caf 6014{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6015echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 6016if test "${ac_cv_prog_F77+set}" = set; then
6017 echo $ECHO_N "(cached) $ECHO_C" >&6
6018else
6019 if test -n "$F77"; then
6020 ac_cv_prog_F77="$F77" # Let the user override the test.
6021else
6022as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6023for as_dir in $PATH
6024do
6025 IFS=$as_save_IFS
6026 test -z "$as_dir" && as_dir=.
6027 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 6028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 6029 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6030 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6031 break 2
6032 fi
6033done
6034done
dd184caf 6035IFS=$as_save_IFS
d9898ee8 6036
6037fi
6038fi
6039F77=$ac_cv_prog_F77
6040if test -n "$F77"; then
dd184caf 6041 { echo "$as_me:$LINENO: result: $F77" >&5
6042echo "${ECHO_T}$F77" >&6; }
d9898ee8 6043else
dd184caf 6044 { echo "$as_me:$LINENO: result: no" >&5
6045echo "${ECHO_T}no" >&6; }
d9898ee8 6046fi
6047
dd184caf 6048
d9898ee8 6049 test -n "$F77" && break
6050 done
6051fi
6052if test -z "$F77"; then
6053 ac_ct_F77=$F77
dd184caf 6054 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 6055do
6056 # Extract the first word of "$ac_prog", so it can be a program name with args.
6057set dummy $ac_prog; ac_word=$2
dd184caf 6058{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6059echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 6060if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6061 echo $ECHO_N "(cached) $ECHO_C" >&6
6062else
6063 if test -n "$ac_ct_F77"; then
6064 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6065else
6066as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6067for as_dir in $PATH
6068do
6069 IFS=$as_save_IFS
6070 test -z "$as_dir" && as_dir=.
6071 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 6072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 6073 ac_cv_prog_ac_ct_F77="$ac_prog"
6074 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6075 break 2
6076 fi
6077done
6078done
dd184caf 6079IFS=$as_save_IFS
d9898ee8 6080
6081fi
6082fi
6083ac_ct_F77=$ac_cv_prog_ac_ct_F77
6084if test -n "$ac_ct_F77"; then
dd184caf 6085 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6086echo "${ECHO_T}$ac_ct_F77" >&6; }
d9898ee8 6087else
dd184caf 6088 { echo "$as_me:$LINENO: result: no" >&5
6089echo "${ECHO_T}no" >&6; }
d9898ee8 6090fi
6091
dd184caf 6092
d9898ee8 6093 test -n "$ac_ct_F77" && break
6094done
6095
dd184caf 6096 if test "x$ac_ct_F77" = x; then
6097 F77=""
6098 else
6099 case $cross_compiling:$ac_tool_warned in
6100yes:)
6101{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6102whose name does not start with the host triplet. If you think this
6103configuration is useful to you, please write to autoconf@gnu.org." >&5
6104echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6105whose name does not start with the host triplet. If you think this
6106configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6107ac_tool_warned=yes ;;
6108esac
6109 F77=$ac_ct_F77
6110 fi
d9898ee8 6111fi
6112
6113
6114# Provide some information about the compiler.
dd184caf 6115echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
d9898ee8 6116ac_compiler=`set X $ac_compile; echo $2`
dd184caf 6117{ (ac_try="$ac_compiler --version >&5"
6118case "(($ac_try" in
6119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6120 *) ac_try_echo=$ac_try;;
6121esac
6122eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6123 (eval "$ac_compiler --version >&5") 2>&5
d9898ee8 6124 ac_status=$?
6125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6126 (exit $ac_status); }
dd184caf 6127{ (ac_try="$ac_compiler -v >&5"
6128case "(($ac_try" in
6129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6130 *) ac_try_echo=$ac_try;;
6131esac
6132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6133 (eval "$ac_compiler -v >&5") 2>&5
d9898ee8 6134 ac_status=$?
6135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6136 (exit $ac_status); }
dd184caf 6137{ (ac_try="$ac_compiler -V >&5"
6138case "(($ac_try" in
6139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6140 *) ac_try_echo=$ac_try;;
6141esac
6142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6143 (eval "$ac_compiler -V >&5") 2>&5
d9898ee8 6144 ac_status=$?
6145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6146 (exit $ac_status); }
6147rm -f a.out
6148
6149# If we don't use `.F' as extension, the preprocessor is not run on the
6150# input file. (Note that this only needs to work for GNU compilers.)
6151ac_save_ext=$ac_ext
6152ac_ext=F
dd184caf 6153{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6154echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
d9898ee8 6155if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6156 echo $ECHO_N "(cached) $ECHO_C" >&6
6157else
6158 cat >conftest.$ac_ext <<_ACEOF
6159 program main
6160#ifndef __GNUC__
6161 choke me
6162#endif
6163
6164 end
6165_ACEOF
6166rm -f conftest.$ac_objext
dd184caf 6167if { (ac_try="$ac_compile"
6168case "(($ac_try" in
6169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6170 *) ac_try_echo=$ac_try;;
6171esac
6172eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6173 (eval "$ac_compile") 2>conftest.er1
d9898ee8 6174 ac_status=$?
6175 grep -v '^ *+' conftest.er1 >conftest.err
6176 rm -f conftest.er1
6177 cat conftest.err >&5
6178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 6179 (exit $ac_status); } && {
6180 test -z "$ac_f77_werror_flag" ||
6181 test ! -s conftest.err
6182 } && test -s conftest.$ac_objext; then
d9898ee8 6183 ac_compiler_gnu=yes
6184else
6185 echo "$as_me: failed program was:" >&5
6186sed 's/^/| /' conftest.$ac_ext >&5
6187
dd184caf 6188 ac_compiler_gnu=no
d9898ee8 6189fi
dd184caf 6190
6191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 6192ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6193
6194fi
dd184caf 6195{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6196echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
d9898ee8 6197ac_ext=$ac_save_ext
6198ac_test_FFLAGS=${FFLAGS+set}
6199ac_save_FFLAGS=$FFLAGS
6200FFLAGS=
dd184caf 6201{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6202echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
d9898ee8 6203if test "${ac_cv_prog_f77_g+set}" = set; then
6204 echo $ECHO_N "(cached) $ECHO_C" >&6
6205else
6206 FFLAGS=-g
6207cat >conftest.$ac_ext <<_ACEOF
6208 program main
6209
6210 end
6211_ACEOF
6212rm -f conftest.$ac_objext
dd184caf 6213if { (ac_try="$ac_compile"
6214case "(($ac_try" in
6215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6216 *) ac_try_echo=$ac_try;;
6217esac
6218eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6219 (eval "$ac_compile") 2>conftest.er1
d9898ee8 6220 ac_status=$?
6221 grep -v '^ *+' conftest.er1 >conftest.err
6222 rm -f conftest.er1
6223 cat conftest.err >&5
6224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 6225 (exit $ac_status); } && {
6226 test -z "$ac_f77_werror_flag" ||
6227 test ! -s conftest.err
6228 } && test -s conftest.$ac_objext; then
d9898ee8 6229 ac_cv_prog_f77_g=yes
6230else
6231 echo "$as_me: failed program was:" >&5
6232sed 's/^/| /' conftest.$ac_ext >&5
6233
dd184caf 6234 ac_cv_prog_f77_g=no
d9898ee8 6235fi
dd184caf 6236
6237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 6238
6239fi
dd184caf 6240{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6241echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
d9898ee8 6242if test "$ac_test_FFLAGS" = set; then
6243 FFLAGS=$ac_save_FFLAGS
6244elif test $ac_cv_prog_f77_g = yes; then
6245 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6246 FFLAGS="-g -O2"
6247 else
6248 FFLAGS="-g"
6249 fi
6250else
6251 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6252 FFLAGS="-O2"
6253 else
6254 FFLAGS=
6255 fi
6256fi
6257
6258G77=`test $ac_compiler_gnu = yes && echo yes`
6259ac_ext=c
6260ac_cpp='$CPP $CPPFLAGS'
6261ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6262ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6263ac_compiler_gnu=$ac_cv_c_compiler_gnu
6264
6265
6266
6267# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6268
6269# find the maximum length of command line arguments
dd184caf 6270{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6271echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
d9898ee8 6272if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6273 echo $ECHO_N "(cached) $ECHO_C" >&6
6274else
6275 i=0
6276 teststring="ABCD"
6277
6278 case $build_os in
6279 msdosdjgpp*)
6280 # On DJGPP, this test can blow up pretty badly due to problems in libc
6281 # (any single argument exceeding 2000 bytes causes a buffer overrun
6282 # during glob expansion). Even if it were fixed, the result of this
6283 # check would be larger than it should be.
6284 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6285 ;;
6286
6287 gnu*)
6288 # Under GNU Hurd, this test is not required because there is
6289 # no limit to the length of command line arguments.
6290 # Libtool will interpret -1 as no limit whatsoever
6291 lt_cv_sys_max_cmd_len=-1;
6292 ;;
6293
6294 cygwin* | mingw*)
6295 # On Win9x/ME, this test blows up -- it succeeds, but takes
6296 # about 5 minutes as the teststring grows exponentially.
6297 # Worse, since 9x/ME are not pre-emptively multitasking,
6298 # you end up with a "frozen" computer, even though with patience
6299 # the test eventually succeeds (with a max line length of 256k).
6300 # Instead, let's just punt: use the minimum linelength reported by
6301 # all of the supported platforms: 8192 (on NT/2K/XP).
6302 lt_cv_sys_max_cmd_len=8192;
6303 ;;
6304
6305 amigaos*)
6306 # On AmigaOS with pdksh, this test takes hours, literally.
6307 # So we just punt and use a minimum line length of 8192.
6308 lt_cv_sys_max_cmd_len=8192;
6309 ;;
6310
6311 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6312 # This has been around since 386BSD, at least. Likely further.
6313 if test -x /sbin/sysctl; then
6314 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6315 elif test -x /usr/sbin/sysctl; then
6316 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6317 else
6318 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6319 fi
6320 # And add a safety zone
6321 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6322 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6323 ;;
6324
6325 interix*)
6326 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6327 lt_cv_sys_max_cmd_len=196608
6328 ;;
6329
6330 osf*)
6331 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6332 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6333 # nice to cause kernel panics so lets avoid the loop below.
6334 # First set a reasonable default.
6335 lt_cv_sys_max_cmd_len=16384
6336 #
6337 if test -x /sbin/sysconfig; then
6338 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6339 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6340 esac
6341 fi
6342 ;;
6343 sco3.2v5*)
6344 lt_cv_sys_max_cmd_len=102400
6345 ;;
6346 sysv5* | sco5v6* | sysv4.2uw2*)
6347 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6348 if test -n "$kargmax"; then
6349 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6350 else
6351 lt_cv_sys_max_cmd_len=32768
6352 fi
6353 ;;
6354 *)
ac40fd9e 6355 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6356 if test -n "$lt_cv_sys_max_cmd_len"; then
6357 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6358 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6359 else
6360 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6361 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
d9898ee8 6362 = "XX$teststring") >/dev/null 2>&1 &&
ac40fd9e 6363 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6364 lt_cv_sys_max_cmd_len=$new_result &&
6365 test $i != 17 # 1/2 MB should be enough
6366 do
6367 i=`expr $i + 1`
6368 teststring=$teststring$teststring
6369 done
6370 teststring=
6371 # Add a significant safety factor because C++ compilers can tack on massive
6372 # amounts of additional arguments before passing them to the linker.
6373 # It appears as though 1/2 is a usable value.
6374 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6375 fi
d9898ee8 6376 ;;
6377 esac
6378
6379fi
6380
6381if test -n $lt_cv_sys_max_cmd_len ; then
dd184caf 6382 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6383echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
d9898ee8 6384else
dd184caf 6385 { echo "$as_me:$LINENO: result: none" >&5
6386echo "${ECHO_T}none" >&6; }
d9898ee8 6387fi
6388
6389
6390
6391
ac40fd9e 6392
d9898ee8 6393# Check for command to grab the raw symbol name followed by C symbol from nm.
dd184caf 6394{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6395echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
d9898ee8 6396if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6397 echo $ECHO_N "(cached) $ECHO_C" >&6
6398else
6399
6400# These are sane defaults that work on at least a few old systems.
6401# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6402
6403# Character class describing NM global symbol codes.
6404symcode='[BCDEGRST]'
6405
6406# Regexp to match symbols that can be accessed directly from C.
6407sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6408
6409# Transform an extracted symbol line into a proper C declaration
6410lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6411
6412# Transform an extracted symbol line into symbol name and symbol address
6413lt_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'"
6414
6415# Define system-specific variables.
6416case $host_os in
6417aix*)
6418 symcode='[BCDT]'
6419 ;;
6420cygwin* | mingw* | pw32*)
6421 symcode='[ABCDGISTW]'
6422 ;;
6423hpux*) # Its linker distinguishes data from code symbols
6424 if test "$host_cpu" = ia64; then
6425 symcode='[ABCDEGRST]'
6426 fi
6427 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6428 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'"
6429 ;;
ac40fd9e 6430linux* | k*bsd*-gnu)
d9898ee8 6431 if test "$host_cpu" = ia64; then
6432 symcode='[ABCDGIRSTW]'
6433 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6434 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'"
6435 fi
6436 ;;
6437irix* | nonstopux*)
6438 symcode='[BCDEGRST]'
6439 ;;
6440osf*)
6441 symcode='[BCDEGQRST]'
6442 ;;
6443solaris*)
6444 symcode='[BDRT]'
6445 ;;
6446sco3.2v5*)
6447 symcode='[DT]'
6448 ;;
6449sysv4.2uw2*)
6450 symcode='[DT]'
6451 ;;
6452sysv5* | sco5v6* | unixware* | OpenUNIX*)
6453 symcode='[ABDT]'
6454 ;;
6455sysv4)
6456 symcode='[DFNSTU]'
6457 ;;
6458esac
6459
6460# Handle CRLF in mingw tool chain
6461opt_cr=
6462case $build_os in
6463mingw*)
6464 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6465 ;;
6466esac
6467
6468# If we're using GNU nm, then use its standard symbol codes.
6469case `$NM -V 2>&1` in
6470*GNU* | *'with BFD'*)
6471 symcode='[ABCDGIRSTW]' ;;
6472esac
6473
6474# Try without a prefix undercore, then with it.
6475for ac_symprfx in "" "_"; do
6476
6477 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6478 symxfrm="\\1 $ac_symprfx\\2 \\2"
6479
6480 # Write the raw and C identifiers.
6481 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6482
6483 # Check to see that the pipe works correctly.
6484 pipe_works=no
6485
6486 rm -f conftest*
6487 cat > conftest.$ac_ext <<EOF
6488#ifdef __cplusplus
6489extern "C" {
6490#endif
6491char nm_test_var;
6492void nm_test_func(){}
6493#ifdef __cplusplus
6494}
6495#endif
6496int main(){nm_test_var='a';nm_test_func();return(0);}
6497EOF
6498
6499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6500 (eval $ac_compile) 2>&5
6501 ac_status=$?
6502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6503 (exit $ac_status); }; then
6504 # Now try to grab the symbols.
6505 nlist=conftest.nm
6506 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6507 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6508 ac_status=$?
6509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6510 (exit $ac_status); } && test -s "$nlist"; then
6511 # Try sorting and uniquifying the output.
6512 if sort "$nlist" | uniq > "$nlist"T; then
6513 mv -f "$nlist"T "$nlist"
6514 else
6515 rm -f "$nlist"T
6516 fi
6517
6518 # Make sure that we snagged all the symbols we need.
6519 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6520 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6521 cat <<EOF > conftest.$ac_ext
6522#ifdef __cplusplus
6523extern "C" {
6524#endif
6525
6526EOF
6527 # Now generate the symbol file.
6528 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6529
6530 cat <<EOF >> conftest.$ac_ext
6531#if defined (__STDC__) && __STDC__
6532# define lt_ptr_t void *
6533#else
6534# define lt_ptr_t char *
6535# define const
6536#endif
6537
6538/* The mapping between symbol names and symbols. */
6539const struct {
6540 const char *name;
6541 lt_ptr_t address;
6542}
6543lt_preloaded_symbols[] =
6544{
6545EOF
6546 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6547 cat <<\EOF >> conftest.$ac_ext
6548 {0, (lt_ptr_t) 0}
6549};
6550
6551#ifdef __cplusplus
6552}
6553#endif
6554EOF
6555 # Now try linking the two files.
6556 mv conftest.$ac_objext conftstm.$ac_objext
6557 lt_save_LIBS="$LIBS"
6558 lt_save_CFLAGS="$CFLAGS"
6559 LIBS="conftstm.$ac_objext"
6560 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6562 (eval $ac_link) 2>&5
6563 ac_status=$?
6564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6565 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6566 pipe_works=yes
6567 fi
6568 LIBS="$lt_save_LIBS"
6569 CFLAGS="$lt_save_CFLAGS"
6570 else
6571 echo "cannot find nm_test_func in $nlist" >&5
6572 fi
6573 else
6574 echo "cannot find nm_test_var in $nlist" >&5
6575 fi
6576 else
6577 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6578 fi
6579 else
6580 echo "$progname: failed program was:" >&5
6581 cat conftest.$ac_ext >&5
6582 fi
6583 rm -f conftest* conftst*
6584
6585 # Do not use the global_symbol_pipe unless it works.
6586 if test "$pipe_works" = yes; then
6587 break
6588 else
6589 lt_cv_sys_global_symbol_pipe=
6590 fi
6591done
6592
6593fi
6594
6595if test -z "$lt_cv_sys_global_symbol_pipe"; then
6596 lt_cv_sys_global_symbol_to_cdecl=
6597fi
6598if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
dd184caf 6599 { echo "$as_me:$LINENO: result: failed" >&5
6600echo "${ECHO_T}failed" >&6; }
d9898ee8 6601else
dd184caf 6602 { echo "$as_me:$LINENO: result: ok" >&5
6603echo "${ECHO_T}ok" >&6; }
d9898ee8 6604fi
6605
dd184caf 6606{ echo "$as_me:$LINENO: checking for objdir" >&5
6607echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
d9898ee8 6608if test "${lt_cv_objdir+set}" = set; then
6609 echo $ECHO_N "(cached) $ECHO_C" >&6
6610else
6611 rm -f .libs 2>/dev/null
6612mkdir .libs 2>/dev/null
6613if test -d .libs; then
6614 lt_cv_objdir=.libs
6615else
6616 # MS-DOS does not allow filenames that begin with a dot.
6617 lt_cv_objdir=_libs
6618fi
6619rmdir .libs 2>/dev/null
6620fi
dd184caf 6621{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6622echo "${ECHO_T}$lt_cv_objdir" >&6; }
d9898ee8 6623objdir=$lt_cv_objdir
6624
6625
6626
6627
6628
6629case $host_os in
6630aix3*)
6631 # AIX sometimes has problems with the GCC collect2 program. For some
6632 # reason, if we set the COLLECT_NAMES environment variable, the problems
6633 # vanish in a puff of smoke.
6634 if test "X${COLLECT_NAMES+set}" != Xset; then
6635 COLLECT_NAMES=
6636 export COLLECT_NAMES
6637 fi
6638 ;;
6639esac
6640
6641# Sed substitution that helps us do robust quoting. It backslashifies
6642# metacharacters that are still active within double-quoted strings.
6643Xsed='sed -e 1s/^X//'
6644sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6645
6646# Same as above, but do not quote variable references.
6647double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6648
6649# Sed substitution to delay expansion of an escaped shell variable in a
6650# double_quote_subst'ed string.
6651delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6652
6653# Sed substitution to avoid accidental globbing in evaled expressions
6654no_glob_subst='s/\*/\\\*/g'
6655
6656# Constants:
6657rm="rm -f"
6658
6659# Global variables:
6660default_ofile=libtool
6661can_build_shared=yes
6662
6663# All known linkers require a `.a' archive for static linking (except MSVC,
6664# which needs '.lib').
6665libext=a
6666ltmain="$ac_aux_dir/ltmain.sh"
6667ofile="$default_ofile"
6668with_gnu_ld="$lt_cv_prog_gnu_ld"
6669
6670if test -n "$ac_tool_prefix"; then
6671 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6672set dummy ${ac_tool_prefix}ar; ac_word=$2
dd184caf 6673{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6674echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 6675if test "${ac_cv_prog_AR+set}" = set; then
6676 echo $ECHO_N "(cached) $ECHO_C" >&6
6677else
6678 if test -n "$AR"; then
6679 ac_cv_prog_AR="$AR" # Let the user override the test.
6680else
6681as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6682for as_dir in $PATH
6683do
6684 IFS=$as_save_IFS
6685 test -z "$as_dir" && as_dir=.
6686 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 6687 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 6688 ac_cv_prog_AR="${ac_tool_prefix}ar"
6689 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6690 break 2
6691 fi
6692done
6693done
dd184caf 6694IFS=$as_save_IFS
d9898ee8 6695
6696fi
6697fi
6698AR=$ac_cv_prog_AR
6699if test -n "$AR"; then
dd184caf 6700 { echo "$as_me:$LINENO: result: $AR" >&5
6701echo "${ECHO_T}$AR" >&6; }
d9898ee8 6702else
dd184caf 6703 { echo "$as_me:$LINENO: result: no" >&5
6704echo "${ECHO_T}no" >&6; }
d9898ee8 6705fi
6706
dd184caf 6707
d9898ee8 6708fi
6709if test -z "$ac_cv_prog_AR"; then
6710 ac_ct_AR=$AR
6711 # Extract the first word of "ar", so it can be a program name with args.
6712set dummy ar; ac_word=$2
dd184caf 6713{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6714echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 6715if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6716 echo $ECHO_N "(cached) $ECHO_C" >&6
6717else
6718 if test -n "$ac_ct_AR"; then
6719 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6720else
6721as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6722for as_dir in $PATH
6723do
6724 IFS=$as_save_IFS
6725 test -z "$as_dir" && as_dir=.
6726 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 6727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 6728 ac_cv_prog_ac_ct_AR="ar"
6729 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6730 break 2
6731 fi
6732done
6733done
dd184caf 6734IFS=$as_save_IFS
d9898ee8 6735
d9898ee8 6736fi
6737fi
6738ac_ct_AR=$ac_cv_prog_ac_ct_AR
6739if test -n "$ac_ct_AR"; then
dd184caf 6740 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6741echo "${ECHO_T}$ac_ct_AR" >&6; }
d9898ee8 6742else
dd184caf 6743 { echo "$as_me:$LINENO: result: no" >&5
6744echo "${ECHO_T}no" >&6; }
d9898ee8 6745fi
6746
dd184caf 6747 if test "x$ac_ct_AR" = x; then
6748 AR="false"
6749 else
6750 case $cross_compiling:$ac_tool_warned in
6751yes:)
6752{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6753whose name does not start with the host triplet. If you think this
6754configuration is useful to you, please write to autoconf@gnu.org." >&5
6755echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6756whose name does not start with the host triplet. If you think this
6757configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6758ac_tool_warned=yes ;;
6759esac
6760 AR=$ac_ct_AR
6761 fi
d9898ee8 6762else
6763 AR="$ac_cv_prog_AR"
6764fi
6765
6766if test -n "$ac_tool_prefix"; then
6767 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6768set dummy ${ac_tool_prefix}ranlib; ac_word=$2
dd184caf 6769{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6770echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 6771if test "${ac_cv_prog_RANLIB+set}" = set; then
6772 echo $ECHO_N "(cached) $ECHO_C" >&6
6773else
6774 if test -n "$RANLIB"; then
6775 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6776else
6777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6778for as_dir in $PATH
6779do
6780 IFS=$as_save_IFS
6781 test -z "$as_dir" && as_dir=.
6782 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 6783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 6784 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6785 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6786 break 2
6787 fi
6788done
6789done
dd184caf 6790IFS=$as_save_IFS
d9898ee8 6791
6792fi
6793fi
6794RANLIB=$ac_cv_prog_RANLIB
6795if test -n "$RANLIB"; then
dd184caf 6796 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6797echo "${ECHO_T}$RANLIB" >&6; }
d9898ee8 6798else
dd184caf 6799 { echo "$as_me:$LINENO: result: no" >&5
6800echo "${ECHO_T}no" >&6; }
d9898ee8 6801fi
6802
dd184caf 6803
d9898ee8 6804fi
6805if test -z "$ac_cv_prog_RANLIB"; then
6806 ac_ct_RANLIB=$RANLIB
6807 # Extract the first word of "ranlib", so it can be a program name with args.
6808set dummy ranlib; ac_word=$2
dd184caf 6809{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6810echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 6811if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6812 echo $ECHO_N "(cached) $ECHO_C" >&6
6813else
6814 if test -n "$ac_ct_RANLIB"; then
6815 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6816else
6817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6818for as_dir in $PATH
6819do
6820 IFS=$as_save_IFS
6821 test -z "$as_dir" && as_dir=.
6822 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 6823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 6824 ac_cv_prog_ac_ct_RANLIB="ranlib"
6825 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6826 break 2
6827 fi
6828done
6829done
dd184caf 6830IFS=$as_save_IFS
d9898ee8 6831
d9898ee8 6832fi
6833fi
6834ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6835if test -n "$ac_ct_RANLIB"; then
dd184caf 6836 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6837echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
d9898ee8 6838else
dd184caf 6839 { echo "$as_me:$LINENO: result: no" >&5
6840echo "${ECHO_T}no" >&6; }
d9898ee8 6841fi
6842
dd184caf 6843 if test "x$ac_ct_RANLIB" = x; then
6844 RANLIB=":"
6845 else
6846 case $cross_compiling:$ac_tool_warned in
6847yes:)
6848{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6849whose name does not start with the host triplet. If you think this
6850configuration is useful to you, please write to autoconf@gnu.org." >&5
6851echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6852whose name does not start with the host triplet. If you think this
6853configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6854ac_tool_warned=yes ;;
6855esac
6856 RANLIB=$ac_ct_RANLIB
6857 fi
d9898ee8 6858else
6859 RANLIB="$ac_cv_prog_RANLIB"
6860fi
6861
6862if test -n "$ac_tool_prefix"; then
6863 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6864set dummy ${ac_tool_prefix}strip; ac_word=$2
dd184caf 6865{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6866echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 6867if test "${ac_cv_prog_STRIP+set}" = set; then
6868 echo $ECHO_N "(cached) $ECHO_C" >&6
6869else
6870 if test -n "$STRIP"; then
6871 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6872else
6873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6874for as_dir in $PATH
6875do
6876 IFS=$as_save_IFS
6877 test -z "$as_dir" && as_dir=.
6878 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 6879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 6880 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6881 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6882 break 2
6883 fi
6884done
6885done
dd184caf 6886IFS=$as_save_IFS
d9898ee8 6887
6888fi
6889fi
6890STRIP=$ac_cv_prog_STRIP
6891if test -n "$STRIP"; then
dd184caf 6892 { echo "$as_me:$LINENO: result: $STRIP" >&5
6893echo "${ECHO_T}$STRIP" >&6; }
d9898ee8 6894else
dd184caf 6895 { echo "$as_me:$LINENO: result: no" >&5
6896echo "${ECHO_T}no" >&6; }
d9898ee8 6897fi
6898
dd184caf 6899
d9898ee8 6900fi
6901if test -z "$ac_cv_prog_STRIP"; then
6902 ac_ct_STRIP=$STRIP
6903 # Extract the first word of "strip", so it can be a program name with args.
6904set dummy strip; ac_word=$2
dd184caf 6905{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6906echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 6907if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6908 echo $ECHO_N "(cached) $ECHO_C" >&6
6909else
6910 if test -n "$ac_ct_STRIP"; then
6911 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6912else
6913as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6914for as_dir in $PATH
6915do
6916 IFS=$as_save_IFS
6917 test -z "$as_dir" && as_dir=.
6918 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 6919 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 6920 ac_cv_prog_ac_ct_STRIP="strip"
6921 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6922 break 2
6923 fi
6924done
6925done
dd184caf 6926IFS=$as_save_IFS
d9898ee8 6927
d9898ee8 6928fi
6929fi
6930ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6931if test -n "$ac_ct_STRIP"; then
dd184caf 6932 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6933echo "${ECHO_T}$ac_ct_STRIP" >&6; }
d9898ee8 6934else
dd184caf 6935 { echo "$as_me:$LINENO: result: no" >&5
6936echo "${ECHO_T}no" >&6; }
d9898ee8 6937fi
6938
dd184caf 6939 if test "x$ac_ct_STRIP" = x; then
6940 STRIP=":"
6941 else
6942 case $cross_compiling:$ac_tool_warned in
6943yes:)
6944{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6945whose name does not start with the host triplet. If you think this
6946configuration is useful to you, please write to autoconf@gnu.org." >&5
6947echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6948whose name does not start with the host triplet. If you think this
6949configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6950ac_tool_warned=yes ;;
6951esac
6952 STRIP=$ac_ct_STRIP
6953 fi
d9898ee8 6954else
6955 STRIP="$ac_cv_prog_STRIP"
6956fi
6957
6958
6959old_CC="$CC"
6960old_CFLAGS="$CFLAGS"
6961
6962# Set sane defaults for various variables
6963test -z "$AR" && AR=ar
6964test -z "$AR_FLAGS" && AR_FLAGS=cru
6965test -z "$AS" && AS=as
6966test -z "$CC" && CC=cc
6967test -z "$LTCC" && LTCC=$CC
6968test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6969test -z "$DLLTOOL" && DLLTOOL=dlltool
6970test -z "$LD" && LD=ld
6971test -z "$LN_S" && LN_S="ln -s"
6972test -z "$MAGIC_CMD" && MAGIC_CMD=file
6973test -z "$NM" && NM=nm
6974test -z "$SED" && SED=sed
6975test -z "$OBJDUMP" && OBJDUMP=objdump
6976test -z "$RANLIB" && RANLIB=:
6977test -z "$STRIP" && STRIP=:
6978test -z "$ac_objext" && ac_objext=o
6979
6980# Determine commands to create old-style static archives.
ac40fd9e 6981old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
d9898ee8 6982old_postinstall_cmds='chmod 644 $oldlib'
6983old_postuninstall_cmds=
6984
6985if test -n "$RANLIB"; then
6986 case $host_os in
6987 openbsd*)
6988 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6989 ;;
6990 *)
6991 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6992 ;;
6993 esac
6994 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6995fi
6996
6997for cc_temp in $compiler""; do
6998 case $cc_temp in
6999 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7000 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7001 \-*) ;;
7002 *) break;;
7003 esac
7004done
7005cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7006
7007
7008# Only perform the check for file, if the check method requires it
7009case $deplibs_check_method in
7010file_magic*)
7011 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
dd184caf 7012 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7013echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
d9898ee8 7014if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7015 echo $ECHO_N "(cached) $ECHO_C" >&6
7016else
7017 case $MAGIC_CMD in
7018[\\/*] | ?:[\\/]*)
7019 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7020 ;;
7021*)
7022 lt_save_MAGIC_CMD="$MAGIC_CMD"
7023 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7024 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7025 for ac_dir in $ac_dummy; do
7026 IFS="$lt_save_ifs"
7027 test -z "$ac_dir" && ac_dir=.
7028 if test -f $ac_dir/${ac_tool_prefix}file; then
7029 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7030 if test -n "$file_magic_test_file"; then
7031 case $deplibs_check_method in
7032 "file_magic "*)
7033 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7034 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7035 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7036 $EGREP "$file_magic_regex" > /dev/null; then
7037 :
7038 else
7039 cat <<EOF 1>&2
7040
7041*** Warning: the command libtool uses to detect shared libraries,
7042*** $file_magic_cmd, produces output that libtool cannot recognize.
7043*** The result is that libtool may fail to recognize shared libraries
7044*** as such. This will affect the creation of libtool libraries that
7045*** depend on shared libraries, but programs linked with such libtool
7046*** libraries will work regardless of this problem. Nevertheless, you
7047*** may want to report the problem to your system manager and/or to
7048*** bug-libtool@gnu.org
7049
7050EOF
7051 fi ;;
7052 esac
7053 fi
7054 break
7055 fi
7056 done
7057 IFS="$lt_save_ifs"
7058 MAGIC_CMD="$lt_save_MAGIC_CMD"
7059 ;;
7060esac
7061fi
7062
7063MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7064if test -n "$MAGIC_CMD"; then
dd184caf 7065 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7066echo "${ECHO_T}$MAGIC_CMD" >&6; }
d9898ee8 7067else
dd184caf 7068 { echo "$as_me:$LINENO: result: no" >&5
7069echo "${ECHO_T}no" >&6; }
d9898ee8 7070fi
7071
7072if test -z "$lt_cv_path_MAGIC_CMD"; then
7073 if test -n "$ac_tool_prefix"; then
dd184caf 7074 { echo "$as_me:$LINENO: checking for file" >&5
7075echo $ECHO_N "checking for file... $ECHO_C" >&6; }
d9898ee8 7076if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7077 echo $ECHO_N "(cached) $ECHO_C" >&6
7078else
7079 case $MAGIC_CMD in
7080[\\/*] | ?:[\\/]*)
7081 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7082 ;;
7083*)
7084 lt_save_MAGIC_CMD="$MAGIC_CMD"
7085 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7086 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7087 for ac_dir in $ac_dummy; do
7088 IFS="$lt_save_ifs"
7089 test -z "$ac_dir" && ac_dir=.
7090 if test -f $ac_dir/file; then
7091 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7092 if test -n "$file_magic_test_file"; then
7093 case $deplibs_check_method in
7094 "file_magic "*)
7095 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7096 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7097 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7098 $EGREP "$file_magic_regex" > /dev/null; then
7099 :
7100 else
7101 cat <<EOF 1>&2
7102
7103*** Warning: the command libtool uses to detect shared libraries,
7104*** $file_magic_cmd, produces output that libtool cannot recognize.
7105*** The result is that libtool may fail to recognize shared libraries
7106*** as such. This will affect the creation of libtool libraries that
7107*** depend on shared libraries, but programs linked with such libtool
7108*** libraries will work regardless of this problem. Nevertheless, you
7109*** may want to report the problem to your system manager and/or to
7110*** bug-libtool@gnu.org
7111
7112EOF
7113 fi ;;
7114 esac
7115 fi
7116 break
7117 fi
7118 done
7119 IFS="$lt_save_ifs"
7120 MAGIC_CMD="$lt_save_MAGIC_CMD"
7121 ;;
7122esac
7123fi
7124
7125MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7126if test -n "$MAGIC_CMD"; then
dd184caf 7127 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7128echo "${ECHO_T}$MAGIC_CMD" >&6; }
d9898ee8 7129else
dd184caf 7130 { echo "$as_me:$LINENO: result: no" >&5
7131echo "${ECHO_T}no" >&6; }
d9898ee8 7132fi
7133
7134 else
7135 MAGIC_CMD=:
7136 fi
7137fi
7138
7139 fi
7140 ;;
7141esac
7142
7143enable_dlopen=yes
7144enable_win32_dll=no
7145
dd184caf 7146# Check whether --enable-libtool-lock was given.
d9898ee8 7147if test "${enable_libtool_lock+set}" = set; then
dd184caf 7148 enableval=$enable_libtool_lock;
7149fi
d9898ee8 7150
d9898ee8 7151test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7152
7153
dd184caf 7154# Check whether --with-pic was given.
d9898ee8 7155if test "${with_pic+set}" = set; then
dd184caf 7156 withval=$with_pic; pic_mode="$withval"
d9898ee8 7157else
7158 pic_mode=default
dd184caf 7159fi
7160
d9898ee8 7161test -z "$pic_mode" && pic_mode=default
7162
7163# Use C for the default configuration in the libtool script
7164tagname=
7165lt_save_CC="$CC"
7166ac_ext=c
7167ac_cpp='$CPP $CPPFLAGS'
7168ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7169ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7170ac_compiler_gnu=$ac_cv_c_compiler_gnu
7171
7172
7173# Source file extension for C test sources.
7174ac_ext=c
7175
7176# Object file extension for compiled C test sources.
7177objext=o
7178objext=$objext
7179
7180# Code to be used in simple compile tests
ac40fd9e 7181lt_simple_compile_test_code="int some_variable = 0;"
d9898ee8 7182
7183# Code to be used in simple link tests
ac40fd9e 7184lt_simple_link_test_code='int main(){return(0);}'
d9898ee8 7185
7186
7187# If no C compiler was specified, use CC.
7188LTCC=${LTCC-"$CC"}
7189
7190# If no C compiler flags were specified, use CFLAGS.
7191LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7192
7193# Allow CC to be a program name with arguments.
7194compiler=$CC
7195
7196
7197# save warnings/boilerplate of simple test code
7198ac_outfile=conftest.$ac_objext
ac40fd9e 7199echo "$lt_simple_compile_test_code" >conftest.$ac_ext
d9898ee8 7200eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7201_lt_compiler_boilerplate=`cat conftest.err`
7202$rm conftest*
7203
7204ac_outfile=conftest.$ac_objext
ac40fd9e 7205echo "$lt_simple_link_test_code" >conftest.$ac_ext
d9898ee8 7206eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7207_lt_linker_boilerplate=`cat conftest.err`
7208$rm conftest*
7209
7210
7211
7212lt_prog_compiler_no_builtin_flag=
7213
7214if test "$GCC" = yes; then
7215 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7216
7217
dd184caf 7218{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7219echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
d9898ee8 7220if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7221 echo $ECHO_N "(cached) $ECHO_C" >&6
7222else
7223 lt_cv_prog_compiler_rtti_exceptions=no
7224 ac_outfile=conftest.$ac_objext
ac40fd9e 7225 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 7226 lt_compiler_flag="-fno-rtti -fno-exceptions"
7227 # Insert the option either (1) after the last *FLAGS variable, or
7228 # (2) before a word containing "conftest.", or (3) at the end.
7229 # Note that $ac_compile itself does not contain backslashes and begins
7230 # with a dollar sign (not a hyphen), so the echo should work correctly.
7231 # The option is referenced via a variable to avoid confusing sed.
7232 lt_compile=`echo "$ac_compile" | $SED \
7233 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7234 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7235 -e 's:$: $lt_compiler_flag:'`
ac40fd9e 7236 (eval echo "\"\$as_me:7236: $lt_compile\"" >&5)
d9898ee8 7237 (eval "$lt_compile" 2>conftest.err)
7238 ac_status=$?
7239 cat conftest.err >&5
ac40fd9e 7240 echo "$as_me:7240: \$? = $ac_status" >&5
d9898ee8 7241 if (exit $ac_status) && test -s "$ac_outfile"; then
7242 # The compiler can only warn and ignore the option if not recognized
7243 # So say no if there are warnings other than the usual output.
7244 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7245 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7246 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7247 lt_cv_prog_compiler_rtti_exceptions=yes
7248 fi
7249 fi
7250 $rm conftest*
7251
7252fi
dd184caf 7253{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7254echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
d9898ee8 7255
7256if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7257 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7258else
7259 :
7260fi
7261
7262fi
7263
7264lt_prog_compiler_wl=
7265lt_prog_compiler_pic=
7266lt_prog_compiler_static=
7267
dd184caf 7268{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7269echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
d9898ee8 7270
7271 if test "$GCC" = yes; then
7272 lt_prog_compiler_wl='-Wl,'
7273 lt_prog_compiler_static='-static'
7274
7275 case $host_os in
7276 aix*)
7277 # All AIX code is PIC.
7278 if test "$host_cpu" = ia64; then
7279 # AIX 5 now supports IA64 processor
7280 lt_prog_compiler_static='-Bstatic'
7281 fi
7282 ;;
7283
7284 amigaos*)
7285 # FIXME: we need at least 68020 code to build shared libraries, but
7286 # adding the `-m68020' flag to GCC prevents building anything better,
7287 # like `-m68040'.
7288 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7289 ;;
7290
ac40fd9e 7291 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
d9898ee8 7292 # PIC is the default for these OSes.
7293 ;;
7294
ac40fd9e 7295 mingw* | cygwin* | pw32* | os2*)
d9898ee8 7296 # This hack is so that the source file can tell whether it is being
7297 # built for inclusion in a dll (and should export symbols for example).
ac40fd9e 7298 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7299 # (--disable-auto-import) libraries
d9898ee8 7300 lt_prog_compiler_pic='-DDLL_EXPORT'
7301 ;;
7302
7303 darwin* | rhapsody*)
7304 # PIC is the default on this platform
7305 # Common symbols not allowed in MH_DYLIB files
7306 lt_prog_compiler_pic='-fno-common'
7307 ;;
7308
ac40fd9e 7309 interix[3-9]*)
d9898ee8 7310 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7311 # Instead, we relocate shared libraries at runtime.
7312 ;;
7313
7314 msdosdjgpp*)
7315 # Just because we use GCC doesn't mean we suddenly get shared libraries
7316 # on systems that don't support them.
7317 lt_prog_compiler_can_build_shared=no
7318 enable_shared=no
7319 ;;
7320
7321 sysv4*MP*)
7322 if test -d /usr/nec; then
7323 lt_prog_compiler_pic=-Kconform_pic
7324 fi
7325 ;;
7326
7327 hpux*)
7328 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7329 # not for PA HP-UX.
7330 case $host_cpu in
7331 hppa*64*|ia64*)
7332 # +Z the default
7333 ;;
7334 *)
7335 lt_prog_compiler_pic='-fPIC'
7336 ;;
7337 esac
7338 ;;
7339
7340 *)
7341 lt_prog_compiler_pic='-fPIC'
7342 ;;
7343 esac
7344 else
7345 # PORTME Check for flag to pass linker flags through the system compiler.
7346 case $host_os in
7347 aix*)
7348 lt_prog_compiler_wl='-Wl,'
7349 if test "$host_cpu" = ia64; then
7350 # AIX 5 now supports IA64 processor
7351 lt_prog_compiler_static='-Bstatic'
7352 else
7353 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7354 fi
7355 ;;
7356 darwin*)
7357 # PIC is the default on this platform
7358 # Common symbols not allowed in MH_DYLIB files
7359 case $cc_basename in
7360 xlc*)
7361 lt_prog_compiler_pic='-qnocommon'
7362 lt_prog_compiler_wl='-Wl,'
7363 ;;
7364 esac
7365 ;;
7366
ac40fd9e 7367 mingw* | cygwin* | pw32* | os2*)
d9898ee8 7368 # This hack is so that the source file can tell whether it is being
7369 # built for inclusion in a dll (and should export symbols for example).
7370 lt_prog_compiler_pic='-DDLL_EXPORT'
7371 ;;
7372
7373 hpux9* | hpux10* | hpux11*)
7374 lt_prog_compiler_wl='-Wl,'
7375 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7376 # not for PA HP-UX.
7377 case $host_cpu in
7378 hppa*64*|ia64*)
7379 # +Z the default
7380 ;;
7381 *)
7382 lt_prog_compiler_pic='+Z'
7383 ;;
7384 esac
7385 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7386 lt_prog_compiler_static='${wl}-a ${wl}archive'
7387 ;;
7388
7389 irix5* | irix6* | nonstopux*)
7390 lt_prog_compiler_wl='-Wl,'
7391 # PIC (with -KPIC) is the default.
7392 lt_prog_compiler_static='-non_shared'
7393 ;;
7394
7395 newsos6)
7396 lt_prog_compiler_pic='-KPIC'
7397 lt_prog_compiler_static='-Bstatic'
7398 ;;
7399
ac40fd9e 7400 linux* | k*bsd*-gnu)
d9898ee8 7401 case $cc_basename in
7402 icc* | ecc*)
7403 lt_prog_compiler_wl='-Wl,'
7404 lt_prog_compiler_pic='-KPIC'
7405 lt_prog_compiler_static='-static'
7406 ;;
7407 pgcc* | pgf77* | pgf90* | pgf95*)
7408 # Portland Group compilers (*not* the Pentium gcc compiler,
7409 # which looks to be a dead project)
7410 lt_prog_compiler_wl='-Wl,'
7411 lt_prog_compiler_pic='-fpic'
7412 lt_prog_compiler_static='-Bstatic'
7413 ;;
7414 ccc*)
7415 lt_prog_compiler_wl='-Wl,'
7416 # All Alpha code is PIC.
7417 lt_prog_compiler_static='-non_shared'
7418 ;;
ac40fd9e 7419 *)
7420 case `$CC -V 2>&1 | sed 5q` in
7421 *Sun\ C*)
7422 # Sun C 5.9
7423 lt_prog_compiler_pic='-KPIC'
7424 lt_prog_compiler_static='-Bstatic'
7425 lt_prog_compiler_wl='-Wl,'
7426 ;;
7427 *Sun\ F*)
7428 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7429 lt_prog_compiler_pic='-KPIC'
7430 lt_prog_compiler_static='-Bstatic'
7431 lt_prog_compiler_wl=''
7432 ;;
7433 esac
7434 ;;
d9898ee8 7435 esac
7436 ;;
7437
7438 osf3* | osf4* | osf5*)
7439 lt_prog_compiler_wl='-Wl,'
7440 # All OSF/1 code is PIC.
7441 lt_prog_compiler_static='-non_shared'
7442 ;;
7443
ac40fd9e 7444 rdos*)
7445 lt_prog_compiler_static='-non_shared'
7446 ;;
7447
d9898ee8 7448 solaris*)
7449 lt_prog_compiler_pic='-KPIC'
7450 lt_prog_compiler_static='-Bstatic'
7451 case $cc_basename in
7452 f77* | f90* | f95*)
7453 lt_prog_compiler_wl='-Qoption ld ';;
7454 *)
7455 lt_prog_compiler_wl='-Wl,';;
7456 esac
7457 ;;
7458
7459 sunos4*)
7460 lt_prog_compiler_wl='-Qoption ld '
7461 lt_prog_compiler_pic='-PIC'
7462 lt_prog_compiler_static='-Bstatic'
7463 ;;
7464
7465 sysv4 | sysv4.2uw2* | sysv4.3*)
7466 lt_prog_compiler_wl='-Wl,'
7467 lt_prog_compiler_pic='-KPIC'
7468 lt_prog_compiler_static='-Bstatic'
7469 ;;
7470
7471 sysv4*MP*)
7472 if test -d /usr/nec ;then
7473 lt_prog_compiler_pic='-Kconform_pic'
7474 lt_prog_compiler_static='-Bstatic'
7475 fi
7476 ;;
7477
7478 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7479 lt_prog_compiler_wl='-Wl,'
7480 lt_prog_compiler_pic='-KPIC'
7481 lt_prog_compiler_static='-Bstatic'
7482 ;;
7483
7484 unicos*)
7485 lt_prog_compiler_wl='-Wl,'
7486 lt_prog_compiler_can_build_shared=no
7487 ;;
7488
7489 uts4*)
7490 lt_prog_compiler_pic='-pic'
7491 lt_prog_compiler_static='-Bstatic'
7492 ;;
7493
7494 *)
7495 lt_prog_compiler_can_build_shared=no
7496 ;;
7497 esac
7498 fi
7499
dd184caf 7500{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7501echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
d9898ee8 7502
7503#
7504# Check to make sure the PIC flag actually works.
7505#
7506if test -n "$lt_prog_compiler_pic"; then
7507
dd184caf 7508{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7509echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
d9898ee8 7510if test "${lt_prog_compiler_pic_works+set}" = set; then
7511 echo $ECHO_N "(cached) $ECHO_C" >&6
7512else
7513 lt_prog_compiler_pic_works=no
7514 ac_outfile=conftest.$ac_objext
ac40fd9e 7515 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 7516 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7517 # Insert the option either (1) after the last *FLAGS variable, or
7518 # (2) before a word containing "conftest.", or (3) at the end.
7519 # Note that $ac_compile itself does not contain backslashes and begins
7520 # with a dollar sign (not a hyphen), so the echo should work correctly.
7521 # The option is referenced via a variable to avoid confusing sed.
7522 lt_compile=`echo "$ac_compile" | $SED \
7523 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7524 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7525 -e 's:$: $lt_compiler_flag:'`
ac40fd9e 7526 (eval echo "\"\$as_me:7526: $lt_compile\"" >&5)
d9898ee8 7527 (eval "$lt_compile" 2>conftest.err)
7528 ac_status=$?
7529 cat conftest.err >&5
ac40fd9e 7530 echo "$as_me:7530: \$? = $ac_status" >&5
d9898ee8 7531 if (exit $ac_status) && test -s "$ac_outfile"; then
7532 # The compiler can only warn and ignore the option if not recognized
7533 # So say no if there are warnings other than the usual output.
7534 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7535 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7536 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7537 lt_prog_compiler_pic_works=yes
7538 fi
7539 fi
7540 $rm conftest*
7541
7542fi
dd184caf 7543{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7544echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
d9898ee8 7545
7546if test x"$lt_prog_compiler_pic_works" = xyes; then
7547 case $lt_prog_compiler_pic in
7548 "" | " "*) ;;
7549 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7550 esac
7551else
7552 lt_prog_compiler_pic=
7553 lt_prog_compiler_can_build_shared=no
7554fi
7555
7556fi
7557case $host_os in
7558 # For platforms which do not support PIC, -DPIC is meaningless:
7559 *djgpp*)
7560 lt_prog_compiler_pic=
7561 ;;
7562 *)
7563 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7564 ;;
7565esac
7566
7567#
7568# Check to make sure the static flag actually works.
7569#
7570wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
dd184caf 7571{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7572echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
d9898ee8 7573if test "${lt_prog_compiler_static_works+set}" = set; then
7574 echo $ECHO_N "(cached) $ECHO_C" >&6
7575else
7576 lt_prog_compiler_static_works=no
7577 save_LDFLAGS="$LDFLAGS"
7578 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
ac40fd9e 7579 echo "$lt_simple_link_test_code" > conftest.$ac_ext
d9898ee8 7580 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7581 # The linker can only warn and ignore the option if not recognized
7582 # So say no if there are warnings
7583 if test -s conftest.err; then
7584 # Append any errors to the config.log.
7585 cat conftest.err 1>&5
7586 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7587 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7588 if diff conftest.exp conftest.er2 >/dev/null; then
7589 lt_prog_compiler_static_works=yes
7590 fi
7591 else
7592 lt_prog_compiler_static_works=yes
7593 fi
7594 fi
7595 $rm conftest*
7596 LDFLAGS="$save_LDFLAGS"
7597
7598fi
dd184caf 7599{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7600echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
d9898ee8 7601
7602if test x"$lt_prog_compiler_static_works" = xyes; then
7603 :
7604else
7605 lt_prog_compiler_static=
7606fi
7607
7608
dd184caf 7609{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7610echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
d9898ee8 7611if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7612 echo $ECHO_N "(cached) $ECHO_C" >&6
7613else
7614 lt_cv_prog_compiler_c_o=no
7615 $rm -r conftest 2>/dev/null
7616 mkdir conftest
7617 cd conftest
7618 mkdir out
ac40fd9e 7619 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 7620
7621 lt_compiler_flag="-o out/conftest2.$ac_objext"
7622 # Insert the option either (1) after the last *FLAGS variable, or
7623 # (2) before a word containing "conftest.", or (3) at the end.
7624 # Note that $ac_compile itself does not contain backslashes and begins
7625 # with a dollar sign (not a hyphen), so the echo should work correctly.
7626 lt_compile=`echo "$ac_compile" | $SED \
7627 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7628 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7629 -e 's:$: $lt_compiler_flag:'`
ac40fd9e 7630 (eval echo "\"\$as_me:7630: $lt_compile\"" >&5)
d9898ee8 7631 (eval "$lt_compile" 2>out/conftest.err)
7632 ac_status=$?
7633 cat out/conftest.err >&5
ac40fd9e 7634 echo "$as_me:7634: \$? = $ac_status" >&5
d9898ee8 7635 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7636 then
7637 # The compiler can only warn and ignore the option if not recognized
7638 # So say no if there are warnings
7639 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7640 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7641 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7642 lt_cv_prog_compiler_c_o=yes
7643 fi
7644 fi
7645 chmod u+w . 2>&5
7646 $rm conftest*
7647 # SGI C++ compiler will create directory out/ii_files/ for
7648 # template instantiation
7649 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7650 $rm out/* && rmdir out
7651 cd ..
7652 rmdir conftest
7653 $rm conftest*
7654
7655fi
dd184caf 7656{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7657echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
d9898ee8 7658
7659
7660hard_links="nottested"
7661if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7662 # do not overwrite the value of need_locks provided by the user
dd184caf 7663 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7664echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
d9898ee8 7665 hard_links=yes
7666 $rm conftest*
7667 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7668 touch conftest.a
7669 ln conftest.a conftest.b 2>&5 || hard_links=no
7670 ln conftest.a conftest.b 2>/dev/null && hard_links=no
dd184caf 7671 { echo "$as_me:$LINENO: result: $hard_links" >&5
7672echo "${ECHO_T}$hard_links" >&6; }
d9898ee8 7673 if test "$hard_links" = no; then
7674 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7675echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7676 need_locks=warn
7677 fi
7678else
7679 need_locks=no
7680fi
7681
dd184caf 7682{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7683echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
d9898ee8 7684
7685 runpath_var=
7686 allow_undefined_flag=
7687 enable_shared_with_static_runtimes=no
7688 archive_cmds=
7689 archive_expsym_cmds=
7690 old_archive_From_new_cmds=
7691 old_archive_from_expsyms_cmds=
7692 export_dynamic_flag_spec=
7693 whole_archive_flag_spec=
7694 thread_safe_flag_spec=
7695 hardcode_libdir_flag_spec=
7696 hardcode_libdir_flag_spec_ld=
7697 hardcode_libdir_separator=
7698 hardcode_direct=no
7699 hardcode_minus_L=no
7700 hardcode_shlibpath_var=unsupported
7701 link_all_deplibs=unknown
7702 hardcode_automatic=no
7703 module_cmds=
7704 module_expsym_cmds=
7705 always_export_symbols=no
7706 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7707 # include_expsyms should be a list of space-separated symbols to be *always*
7708 # included in the symbol list
7709 include_expsyms=
7710 # exclude_expsyms can be an extended regexp of symbols to exclude
7711 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7712 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7713 # as well as any symbol that contains `d'.
7714 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7715 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7716 # platforms (ab)use it in PIC code, but their linkers get confused if
7717 # the symbol is explicitly referenced. Since portable code cannot
7718 # rely on this symbol name, it's probably fine to never include it in
7719 # preloaded symbol tables.
7720 extract_expsyms_cmds=
7721 # Just being paranoid about ensuring that cc_basename is set.
7722 for cc_temp in $compiler""; do
7723 case $cc_temp in
7724 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7725 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7726 \-*) ;;
7727 *) break;;
7728 esac
7729done
7730cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7731
7732 case $host_os in
7733 cygwin* | mingw* | pw32*)
7734 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7735 # When not using gcc, we currently assume that we are using
7736 # Microsoft Visual C++.
7737 if test "$GCC" != yes; then
7738 with_gnu_ld=no
7739 fi
7740 ;;
7741 interix*)
7742 # we just hope/assume this is gcc and not c89 (= MSVC++)
7743 with_gnu_ld=yes
7744 ;;
7745 openbsd*)
7746 with_gnu_ld=no
7747 ;;
7748 esac
7749
7750 ld_shlibs=yes
7751 if test "$with_gnu_ld" = yes; then
7752 # If archive_cmds runs LD, not CC, wlarc should be empty
7753 wlarc='${wl}'
7754
7755 # Set some defaults for GNU ld with shared library support. These
7756 # are reset later if shared libraries are not supported. Putting them
7757 # here allows them to be overridden if necessary.
7758 runpath_var=LD_RUN_PATH
7759 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7760 export_dynamic_flag_spec='${wl}--export-dynamic'
7761 # ancient GNU ld didn't support --whole-archive et. al.
7762 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7763 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7764 else
7765 whole_archive_flag_spec=
7766 fi
7767 supports_anon_versioning=no
7768 case `$LD -v 2>/dev/null` in
7769 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7770 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7771 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7772 *\ 2.11.*) ;; # other 2.11 versions
7773 *) supports_anon_versioning=yes ;;
7774 esac
7775
7776 # See if GNU ld supports shared libraries.
7777 case $host_os in
7778 aix3* | aix4* | aix5*)
7779 # On AIX/PPC, the GNU linker is very broken
7780 if test "$host_cpu" != ia64; then
7781 ld_shlibs=no
7782 cat <<EOF 1>&2
7783
7784*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7785*** to be unable to reliably create shared libraries on AIX.
7786*** Therefore, libtool is disabling shared libraries support. If you
7787*** really care for shared libraries, you may want to modify your PATH
7788*** so that a non-GNU linker is found, and then restart.
7789
7790EOF
7791 fi
7792 ;;
7793
7794 amigaos*)
7795 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)'
7796 hardcode_libdir_flag_spec='-L$libdir'
7797 hardcode_minus_L=yes
7798
7799 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7800 # that the semantics of dynamic libraries on AmigaOS, at least up
7801 # to version 4, is to share data among multiple programs linked
7802 # with the same dynamic library. Since this doesn't match the
7803 # behavior of shared libraries on other platforms, we can't use
7804 # them.
7805 ld_shlibs=no
7806 ;;
7807
7808 beos*)
7809 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7810 allow_undefined_flag=unsupported
7811 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7812 # support --undefined. This deserves some investigation. FIXME
7813 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7814 else
7815 ld_shlibs=no
7816 fi
7817 ;;
7818
7819 cygwin* | mingw* | pw32*)
7820 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7821 # as there is no search path for DLLs.
7822 hardcode_libdir_flag_spec='-L$libdir'
7823 allow_undefined_flag=unsupported
7824 always_export_symbols=no
7825 enable_shared_with_static_runtimes=yes
ac40fd9e 7826 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
d9898ee8 7827
7828 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7829 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7830 # If the export-symbols file already is a .def file (1st line
7831 # is EXPORTS), use it as is; otherwise, prepend...
7832 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7833 cp $export_symbols $output_objdir/$soname.def;
7834 else
7835 echo EXPORTS > $output_objdir/$soname.def;
7836 cat $export_symbols >> $output_objdir/$soname.def;
7837 fi~
7838 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7839 else
7840 ld_shlibs=no
7841 fi
7842 ;;
7843
ac40fd9e 7844 interix[3-9]*)
d9898ee8 7845 hardcode_direct=no
7846 hardcode_shlibpath_var=no
7847 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7848 export_dynamic_flag_spec='${wl}-E'
7849 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7850 # Instead, shared libraries are loaded at an image base (0x10000000 by
7851 # default) and relocated if they conflict, which is a slow very memory
7852 # consuming and fragmenting process. To avoid this, we pick a random,
7853 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7854 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7855 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7856 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'
7857 ;;
7858
ac40fd9e 7859 gnu* | linux* | k*bsd*-gnu)
d9898ee8 7860 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7861 tmp_addflag=
7862 case $cc_basename,$host_cpu in
7863 pgcc*) # Portland Group C compiler
7864 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'
7865 tmp_addflag=' $pic_flag'
7866 ;;
7867 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7868 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'
7869 tmp_addflag=' $pic_flag -Mnomain' ;;
7870 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7871 tmp_addflag=' -i_dynamic' ;;
7872 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7873 tmp_addflag=' -i_dynamic -nofor_main' ;;
7874 ifc* | ifort*) # Intel Fortran compiler
7875 tmp_addflag=' -nofor_main' ;;
7876 esac
ac40fd9e 7877 case `$CC -V 2>&1 | sed 5q` in
7878 *Sun\ C*) # Sun C 5.9
7879 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'
7880 tmp_sharedflag='-G' ;;
7881 *Sun\ F*) # Sun Fortran 8.3
7882 tmp_sharedflag='-G' ;;
7883 *)
7884 tmp_sharedflag='-shared' ;;
7885 esac
7886 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
d9898ee8 7887
7888 if test $supports_anon_versioning = yes; then
7889 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7890 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7891 $echo "local: *; };" >> $output_objdir/$libname.ver~
ac40fd9e 7892 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
d9898ee8 7893 fi
7894 else
7895 ld_shlibs=no
7896 fi
7897 ;;
7898
7899 netbsd*)
7900 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7901 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7902 wlarc=
7903 else
7904 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7905 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7906 fi
7907 ;;
7908
7909 solaris*)
7910 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7911 ld_shlibs=no
7912 cat <<EOF 1>&2
7913
7914*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7915*** create shared libraries on Solaris systems. Therefore, libtool
7916*** is disabling shared libraries support. We urge you to upgrade GNU
7917*** binutils to release 2.9.1 or newer. Another option is to modify
7918*** your PATH or compiler configuration so that the native linker is
7919*** used, and then restart.
7920
7921EOF
7922 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7923 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7924 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7925 else
7926 ld_shlibs=no
7927 fi
7928 ;;
7929
7930 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7931 case `$LD -v 2>&1` in
7932 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7933 ld_shlibs=no
7934 cat <<_LT_EOF 1>&2
7935
7936*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7937*** reliably create shared libraries on SCO systems. Therefore, libtool
7938*** is disabling shared libraries support. We urge you to upgrade GNU
7939*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7940*** your PATH or compiler configuration so that the native linker is
7941*** used, and then restart.
7942
7943_LT_EOF
7944 ;;
7945 *)
7946 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7947 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7948 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7949 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7950 else
7951 ld_shlibs=no
7952 fi
7953 ;;
7954 esac
7955 ;;
7956
7957 sunos4*)
7958 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7959 wlarc=
7960 hardcode_direct=yes
7961 hardcode_shlibpath_var=no
7962 ;;
7963
7964 *)
7965 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7966 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7967 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7968 else
7969 ld_shlibs=no
7970 fi
7971 ;;
7972 esac
7973
7974 if test "$ld_shlibs" = no; then
7975 runpath_var=
7976 hardcode_libdir_flag_spec=
7977 export_dynamic_flag_spec=
7978 whole_archive_flag_spec=
7979 fi
7980 else
7981 # PORTME fill in a description of your system's linker (not GNU ld)
7982 case $host_os in
7983 aix3*)
7984 allow_undefined_flag=unsupported
7985 always_export_symbols=yes
7986 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'
7987 # Note: this linker hardcodes the directories in LIBPATH if there
7988 # are no directories specified by -L.
7989 hardcode_minus_L=yes
7990 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7991 # Neither direct hardcoding nor static linking is supported with a
7992 # broken collect2.
7993 hardcode_direct=unsupported
7994 fi
7995 ;;
7996
7997 aix4* | aix5*)
7998 if test "$host_cpu" = ia64; then
7999 # On IA64, the linker does run time linking by default, so we don't
8000 # have to do anything special.
8001 aix_use_runtimelinking=no
8002 exp_sym_flag='-Bexport'
8003 no_entry_flag=""
8004 else
8005 # If we're using GNU nm, then we don't want the "-C" option.
8006 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8007 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8008 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'
8009 else
8010 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'
8011 fi
8012 aix_use_runtimelinking=no
8013
8014 # Test if we are trying to use run time linking or normal
8015 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8016 # need to do runtime linking.
8017 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8018 for ld_flag in $LDFLAGS; do
8019 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8020 aix_use_runtimelinking=yes
8021 break
8022 fi
8023 done
8024 ;;
8025 esac
8026
8027 exp_sym_flag='-bexport'
8028 no_entry_flag='-bnoentry'
8029 fi
8030
8031 # When large executables or shared objects are built, AIX ld can
8032 # have problems creating the table of contents. If linking a library
8033 # or program results in "error TOC overflow" add -mminimal-toc to
8034 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8035 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8036
8037 archive_cmds=''
8038 hardcode_direct=yes
8039 hardcode_libdir_separator=':'
8040 link_all_deplibs=yes
8041
8042 if test "$GCC" = yes; then
8043 case $host_os in aix4.[012]|aix4.[012].*)
8044 # We only want to do this on AIX 4.2 and lower, the check
8045 # below for broken collect2 doesn't work under 4.3+
8046 collect2name=`${CC} -print-prog-name=collect2`
8047 if test -f "$collect2name" && \
8048 strings "$collect2name" | grep resolve_lib_name >/dev/null
8049 then
8050 # We have reworked collect2
ac40fd9e 8051 :
d9898ee8 8052 else
8053 # We have old collect2
8054 hardcode_direct=unsupported
8055 # It fails to find uninstalled libraries when the uninstalled
8056 # path is not listed in the libpath. Setting hardcode_minus_L
8057 # to unsupported forces relinking
8058 hardcode_minus_L=yes
8059 hardcode_libdir_flag_spec='-L$libdir'
8060 hardcode_libdir_separator=
8061 fi
8062 ;;
8063 esac
8064 shared_flag='-shared'
8065 if test "$aix_use_runtimelinking" = yes; then
8066 shared_flag="$shared_flag "'${wl}-G'
8067 fi
8068 else
8069 # not using gcc
8070 if test "$host_cpu" = ia64; then
8071 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8072 # chokes on -Wl,-G. The following line is correct:
8073 shared_flag='-G'
8074 else
8075 if test "$aix_use_runtimelinking" = yes; then
8076 shared_flag='${wl}-G'
8077 else
8078 shared_flag='${wl}-bM:SRE'
8079 fi
8080 fi
8081 fi
8082
8083 # It seems that -bexpall does not export symbols beginning with
8084 # underscore (_), so it is better to generate a list of symbols to export.
8085 always_export_symbols=yes
8086 if test "$aix_use_runtimelinking" = yes; then
8087 # Warning - without using the other runtime loading flags (-brtl),
8088 # -berok will link without error, but may produce a broken library.
8089 allow_undefined_flag='-berok'
8090 # Determine the default libpath from the value encoded in an empty executable.
8091 cat >conftest.$ac_ext <<_ACEOF
8092/* confdefs.h. */
8093_ACEOF
8094cat confdefs.h >>conftest.$ac_ext
8095cat >>conftest.$ac_ext <<_ACEOF
8096/* end confdefs.h. */
8097
8098int
8099main ()
8100{
8101
8102 ;
8103 return 0;
8104}
8105_ACEOF
8106rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 8107if { (ac_try="$ac_link"
8108case "(($ac_try" in
8109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8110 *) ac_try_echo=$ac_try;;
8111esac
8112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8113 (eval "$ac_link") 2>conftest.er1
d9898ee8 8114 ac_status=$?
8115 grep -v '^ *+' conftest.er1 >conftest.err
8116 rm -f conftest.er1
8117 cat conftest.err >&5
8118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 8119 (exit $ac_status); } && {
8120 test -z "$ac_c_werror_flag" ||
8121 test ! -s conftest.err
8122 } && test -s conftest$ac_exeext &&
8123 $as_test_x conftest$ac_exeext; then
d9898ee8 8124
ac40fd9e 8125lt_aix_libpath_sed='
8126 /Import File Strings/,/^$/ {
8127 /^0/ {
8128 s/^0 *\(.*\)$/\1/
8129 p
8130 }
8131 }'
8132aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
d9898ee8 8133# Check for a 64-bit object if we didn't find anything.
ac40fd9e 8134if test -z "$aix_libpath"; then
8135 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8136fi
d9898ee8 8137else
8138 echo "$as_me: failed program was:" >&5
8139sed 's/^/| /' conftest.$ac_ext >&5
8140
dd184caf 8141
d9898ee8 8142fi
dd184caf 8143
8144rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 8145 conftest$ac_exeext conftest.$ac_ext
8146if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8147
8148 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8149 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"
8150 else
8151 if test "$host_cpu" = ia64; then
8152 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8153 allow_undefined_flag="-z nodefs"
8154 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"
8155 else
8156 # Determine the default libpath from the value encoded in an empty executable.
8157 cat >conftest.$ac_ext <<_ACEOF
8158/* confdefs.h. */
8159_ACEOF
8160cat confdefs.h >>conftest.$ac_ext
8161cat >>conftest.$ac_ext <<_ACEOF
8162/* end confdefs.h. */
8163
8164int
8165main ()
8166{
8167
8168 ;
8169 return 0;
8170}
8171_ACEOF
8172rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 8173if { (ac_try="$ac_link"
8174case "(($ac_try" in
8175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8176 *) ac_try_echo=$ac_try;;
8177esac
8178eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8179 (eval "$ac_link") 2>conftest.er1
d9898ee8 8180 ac_status=$?
8181 grep -v '^ *+' conftest.er1 >conftest.err
8182 rm -f conftest.er1
8183 cat conftest.err >&5
8184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 8185 (exit $ac_status); } && {
8186 test -z "$ac_c_werror_flag" ||
8187 test ! -s conftest.err
8188 } && test -s conftest$ac_exeext &&
8189 $as_test_x conftest$ac_exeext; then
d9898ee8 8190
ac40fd9e 8191lt_aix_libpath_sed='
8192 /Import File Strings/,/^$/ {
8193 /^0/ {
8194 s/^0 *\(.*\)$/\1/
8195 p
8196 }
8197 }'
8198aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
d9898ee8 8199# Check for a 64-bit object if we didn't find anything.
ac40fd9e 8200if test -z "$aix_libpath"; then
8201 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8202fi
d9898ee8 8203else
8204 echo "$as_me: failed program was:" >&5
8205sed 's/^/| /' conftest.$ac_ext >&5
8206
dd184caf 8207
d9898ee8 8208fi
dd184caf 8209
8210rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 8211 conftest$ac_exeext conftest.$ac_ext
8212if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8213
8214 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8215 # Warning - without using the other run time loading flags,
8216 # -berok will link without error, but may produce a broken library.
8217 no_undefined_flag=' ${wl}-bernotok'
8218 allow_undefined_flag=' ${wl}-berok'
8219 # Exported symbols can be pulled into shared objects from archives
8220 whole_archive_flag_spec='$convenience'
8221 archive_cmds_need_lc=yes
8222 # This is similar to how AIX traditionally builds its shared libraries.
8223 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'
8224 fi
8225 fi
8226 ;;
8227
8228 amigaos*)
8229 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)'
8230 hardcode_libdir_flag_spec='-L$libdir'
8231 hardcode_minus_L=yes
8232 # see comment about different semantics on the GNU ld section
8233 ld_shlibs=no
8234 ;;
8235
8236 bsdi[45]*)
8237 export_dynamic_flag_spec=-rdynamic
8238 ;;
8239
8240 cygwin* | mingw* | pw32*)
8241 # When not using gcc, we currently assume that we are using
8242 # Microsoft Visual C++.
8243 # hardcode_libdir_flag_spec is actually meaningless, as there is
8244 # no search path for DLLs.
8245 hardcode_libdir_flag_spec=' '
8246 allow_undefined_flag=unsupported
8247 # Tell ltmain to make .lib files, not .a files.
8248 libext=lib
8249 # Tell ltmain to make .dll files, not .so files.
8250 shrext_cmds=".dll"
8251 # FIXME: Setting linknames here is a bad hack.
8252 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8253 # The linker will automatically build a .lib file if we build a DLL.
8254 old_archive_From_new_cmds='true'
8255 # FIXME: Should let the user specify the lib program.
ac40fd9e 8256 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
d9898ee8 8257 fix_srcfile_path='`cygpath -w "$srcfile"`'
8258 enable_shared_with_static_runtimes=yes
8259 ;;
8260
8261 darwin* | rhapsody*)
8262 case $host_os in
8263 rhapsody* | darwin1.[012])
8264 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8265 ;;
8266 *) # Darwin 1.3 on
8267 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8268 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8269 else
8270 case ${MACOSX_DEPLOYMENT_TARGET} in
8271 10.[012])
8272 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8273 ;;
8274 10.*)
8275 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8276 ;;
8277 esac
8278 fi
8279 ;;
8280 esac
8281 archive_cmds_need_lc=no
8282 hardcode_direct=no
8283 hardcode_automatic=yes
8284 hardcode_shlibpath_var=unsupported
8285 whole_archive_flag_spec=''
8286 link_all_deplibs=yes
8287 if test "$GCC" = yes ; then
8288 output_verbose_link_cmd='echo'
8289 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8290 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8291 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8292 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}'
8293 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}'
8294 else
8295 case $cc_basename in
8296 xlc*)
8297 output_verbose_link_cmd='echo'
ac40fd9e 8298 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
d9898ee8 8299 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8300 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
ac40fd9e 8301 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 8302 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}'
8303 ;;
8304 *)
8305 ld_shlibs=no
8306 ;;
8307 esac
8308 fi
8309 ;;
8310
8311 dgux*)
8312 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8313 hardcode_libdir_flag_spec='-L$libdir'
8314 hardcode_shlibpath_var=no
8315 ;;
8316
8317 freebsd1*)
8318 ld_shlibs=no
8319 ;;
8320
8321 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8322 # support. Future versions do this automatically, but an explicit c++rt0.o
8323 # does not break anything, and helps significantly (at the cost of a little
8324 # extra space).
8325 freebsd2.2*)
8326 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8327 hardcode_libdir_flag_spec='-R$libdir'
8328 hardcode_direct=yes
8329 hardcode_shlibpath_var=no
8330 ;;
8331
8332 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8333 freebsd2*)
8334 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8335 hardcode_direct=yes
8336 hardcode_minus_L=yes
8337 hardcode_shlibpath_var=no
8338 ;;
8339
8340 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
ac40fd9e 8341 freebsd* | dragonfly*)
d9898ee8 8342 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8343 hardcode_libdir_flag_spec='-R$libdir'
8344 hardcode_direct=yes
8345 hardcode_shlibpath_var=no
8346 ;;
8347
8348 hpux9*)
8349 if test "$GCC" = yes; then
8350 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'
8351 else
8352 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'
8353 fi
8354 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8355 hardcode_libdir_separator=:
8356 hardcode_direct=yes
8357
8358 # hardcode_minus_L: Not really in the search PATH,
8359 # but as the default location of the library.
8360 hardcode_minus_L=yes
8361 export_dynamic_flag_spec='${wl}-E'
8362 ;;
8363
8364 hpux10*)
8365 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8366 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8367 else
8368 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8369 fi
8370 if test "$with_gnu_ld" = no; then
8371 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8372 hardcode_libdir_separator=:
8373
8374 hardcode_direct=yes
8375 export_dynamic_flag_spec='${wl}-E'
8376
8377 # hardcode_minus_L: Not really in the search PATH,
8378 # but as the default location of the library.
8379 hardcode_minus_L=yes
8380 fi
8381 ;;
8382
8383 hpux11*)
8384 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8385 case $host_cpu in
8386 hppa*64*)
8387 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8388 ;;
8389 ia64*)
8390 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8391 ;;
8392 *)
8393 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8394 ;;
8395 esac
8396 else
8397 case $host_cpu in
8398 hppa*64*)
8399 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8400 ;;
8401 ia64*)
8402 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8403 ;;
8404 *)
8405 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8406 ;;
8407 esac
8408 fi
8409 if test "$with_gnu_ld" = no; then
8410 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8411 hardcode_libdir_separator=:
8412
8413 case $host_cpu in
8414 hppa*64*|ia64*)
8415 hardcode_libdir_flag_spec_ld='+b $libdir'
8416 hardcode_direct=no
8417 hardcode_shlibpath_var=no
8418 ;;
8419 *)
8420 hardcode_direct=yes
8421 export_dynamic_flag_spec='${wl}-E'
8422
8423 # hardcode_minus_L: Not really in the search PATH,
8424 # but as the default location of the library.
8425 hardcode_minus_L=yes
8426 ;;
8427 esac
8428 fi
8429 ;;
8430
8431 irix5* | irix6* | nonstopux*)
8432 if test "$GCC" = yes; then
8433 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'
8434 else
8435 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'
8436 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8437 fi
8438 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8439 hardcode_libdir_separator=:
8440 link_all_deplibs=yes
8441 ;;
8442
8443 netbsd*)
8444 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8445 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8446 else
8447 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8448 fi
8449 hardcode_libdir_flag_spec='-R$libdir'
8450 hardcode_direct=yes
8451 hardcode_shlibpath_var=no
8452 ;;
8453
8454 newsos6)
8455 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8456 hardcode_direct=yes
8457 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8458 hardcode_libdir_separator=:
8459 hardcode_shlibpath_var=no
8460 ;;
8461
8462 openbsd*)
ac40fd9e 8463 if test -f /usr/libexec/ld.so; then
8464 hardcode_direct=yes
8465 hardcode_shlibpath_var=no
8466 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8467 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8468 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8469 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8470 export_dynamic_flag_spec='${wl}-E'
8471 else
8472 case $host_os in
8473 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8474 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8475 hardcode_libdir_flag_spec='-R$libdir'
8476 ;;
8477 *)
8478 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8479 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8480 ;;
8481 esac
8482 fi
d9898ee8 8483 else
ac40fd9e 8484 ld_shlibs=no
d9898ee8 8485 fi
8486 ;;
8487
8488 os2*)
8489 hardcode_libdir_flag_spec='-L$libdir'
8490 hardcode_minus_L=yes
8491 allow_undefined_flag=unsupported
8492 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'
8493 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8494 ;;
8495
8496 osf3*)
8497 if test "$GCC" = yes; then
8498 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8499 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'
8500 else
8501 allow_undefined_flag=' -expect_unresolved \*'
8502 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'
8503 fi
8504 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8505 hardcode_libdir_separator=:
8506 ;;
8507
8508 osf4* | osf5*) # as osf3* with the addition of -msym flag
8509 if test "$GCC" = yes; then
8510 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8511 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'
8512 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8513 else
8514 allow_undefined_flag=' -expect_unresolved \*'
8515 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'
8516 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8517 $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'
8518
8519 # Both c and cxx compiler support -rpath directly
8520 hardcode_libdir_flag_spec='-rpath $libdir'
8521 fi
8522 hardcode_libdir_separator=:
8523 ;;
8524
8525 solaris*)
8526 no_undefined_flag=' -z text'
8527 if test "$GCC" = yes; then
8528 wlarc='${wl}'
8529 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8530 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8531 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8532 else
8533 wlarc=''
8534 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8535 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8536 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8537 fi
8538 hardcode_libdir_flag_spec='-R$libdir'
8539 hardcode_shlibpath_var=no
8540 case $host_os in
8541 solaris2.[0-5] | solaris2.[0-5].*) ;;
8542 *)
ac40fd9e 8543 # The compiler driver will combine and reorder linker options,
8544 # but understands `-z linker_flag'. GCC discards it without `$wl',
8545 # but is careful enough not to reorder.
d9898ee8 8546 # Supported since Solaris 2.6 (maybe 2.5.1?)
ac40fd9e 8547 if test "$GCC" = yes; then
8548 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8549 else
8550 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8551 fi
8552 ;;
d9898ee8 8553 esac
8554 link_all_deplibs=yes
8555 ;;
8556
8557 sunos4*)
8558 if test "x$host_vendor" = xsequent; then
8559 # Use $CC to link under sequent, because it throws in some extra .o
8560 # files that make .init and .fini sections work.
8561 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8562 else
8563 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8564 fi
8565 hardcode_libdir_flag_spec='-L$libdir'
8566 hardcode_direct=yes
8567 hardcode_minus_L=yes
8568 hardcode_shlibpath_var=no
8569 ;;
8570
8571 sysv4)
8572 case $host_vendor in
8573 sni)
8574 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8575 hardcode_direct=yes # is this really true???
8576 ;;
8577 siemens)
8578 ## LD is ld it makes a PLAMLIB
8579 ## CC just makes a GrossModule.
8580 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8581 reload_cmds='$CC -r -o $output$reload_objs'
8582 hardcode_direct=no
8583 ;;
8584 motorola)
8585 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8586 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8587 ;;
8588 esac
8589 runpath_var='LD_RUN_PATH'
8590 hardcode_shlibpath_var=no
8591 ;;
8592
8593 sysv4.3*)
8594 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8595 hardcode_shlibpath_var=no
8596 export_dynamic_flag_spec='-Bexport'
8597 ;;
8598
8599 sysv4*MP*)
8600 if test -d /usr/nec; then
8601 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8602 hardcode_shlibpath_var=no
8603 runpath_var=LD_RUN_PATH
8604 hardcode_runpath_var=yes
8605 ld_shlibs=yes
8606 fi
8607 ;;
8608
ac40fd9e 8609 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
d9898ee8 8610 no_undefined_flag='${wl}-z,text'
8611 archive_cmds_need_lc=no
8612 hardcode_shlibpath_var=no
8613 runpath_var='LD_RUN_PATH'
8614
8615 if test "$GCC" = yes; then
8616 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8617 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8618 else
8619 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8620 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8621 fi
8622 ;;
8623
8624 sysv5* | sco3.2v5* | sco5v6*)
8625 # Note: We can NOT use -z defs as we might desire, because we do not
8626 # link with -lc, and that would cause any symbols used from libc to
8627 # always be unresolved, which means just about no library would
8628 # ever link correctly. If we're not using GNU ld we use -z text
8629 # though, which does catch some bad symbols but isn't as heavy-handed
8630 # as -z defs.
8631 no_undefined_flag='${wl}-z,text'
8632 allow_undefined_flag='${wl}-z,nodefs'
8633 archive_cmds_need_lc=no
8634 hardcode_shlibpath_var=no
8635 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8636 hardcode_libdir_separator=':'
8637 link_all_deplibs=yes
8638 export_dynamic_flag_spec='${wl}-Bexport'
8639 runpath_var='LD_RUN_PATH'
8640
8641 if test "$GCC" = yes; then
8642 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8643 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8644 else
8645 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8646 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8647 fi
8648 ;;
8649
8650 uts4*)
8651 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8652 hardcode_libdir_flag_spec='-L$libdir'
8653 hardcode_shlibpath_var=no
8654 ;;
8655
8656 *)
8657 ld_shlibs=no
8658 ;;
8659 esac
8660 fi
8661
dd184caf 8662{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8663echo "${ECHO_T}$ld_shlibs" >&6; }
d9898ee8 8664test "$ld_shlibs" = no && can_build_shared=no
8665
8666#
8667# Do we need to explicitly link libc?
8668#
8669case "x$archive_cmds_need_lc" in
8670x|xyes)
8671 # Assume -lc should be added
8672 archive_cmds_need_lc=yes
8673
8674 if test "$enable_shared" = yes && test "$GCC" = yes; then
8675 case $archive_cmds in
8676 *'~'*)
8677 # FIXME: we may have to deal with multi-command sequences.
8678 ;;
8679 '$CC '*)
8680 # Test whether the compiler implicitly links with -lc since on some
8681 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8682 # to ld, don't add -lc before -lgcc.
dd184caf 8683 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8684echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
d9898ee8 8685 $rm conftest*
ac40fd9e 8686 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 8687
8688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8689 (eval $ac_compile) 2>&5
8690 ac_status=$?
8691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8692 (exit $ac_status); } 2>conftest.err; then
8693 soname=conftest
8694 lib=conftest
8695 libobjs=conftest.$ac_objext
8696 deplibs=
8697 wl=$lt_prog_compiler_wl
8698 pic_flag=$lt_prog_compiler_pic
8699 compiler_flags=-v
8700 linker_flags=-v
8701 verstring=
8702 output_objdir=.
8703 libname=conftest
8704 lt_save_allow_undefined_flag=$allow_undefined_flag
8705 allow_undefined_flag=
8706 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8707 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8708 ac_status=$?
8709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8710 (exit $ac_status); }
8711 then
8712 archive_cmds_need_lc=no
8713 else
8714 archive_cmds_need_lc=yes
8715 fi
8716 allow_undefined_flag=$lt_save_allow_undefined_flag
8717 else
8718 cat conftest.err 1>&5
8719 fi
8720 $rm conftest*
dd184caf 8721 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8722echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
d9898ee8 8723 ;;
8724 esac
8725 fi
8726 ;;
8727esac
8728
dd184caf 8729{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8730echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
d9898ee8 8731library_names_spec=
8732libname_spec='lib$name'
8733soname_spec=
8734shrext_cmds=".so"
8735postinstall_cmds=
8736postuninstall_cmds=
8737finish_cmds=
8738finish_eval=
8739shlibpath_var=
8740shlibpath_overrides_runpath=unknown
8741version_type=none
8742dynamic_linker="$host_os ld.so"
8743sys_lib_dlsearch_path_spec="/lib /usr/lib"
ac40fd9e 8744
d9898ee8 8745if test "$GCC" = yes; then
ac40fd9e 8746 case $host_os in
8747 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8748 *) lt_awk_arg="/^libraries:/" ;;
8749 esac
8750 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8751 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
d9898ee8 8752 # if the path contains ";" then we assume it to be the separator
8753 # otherwise default to the standard path separator (i.e. ":") - it is
8754 # assumed that no part of a normal pathname contains ";" but that should
8755 # okay in the real world where ";" in dirpaths is itself problematic.
ac40fd9e 8756 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
d9898ee8 8757 else
ac40fd9e 8758 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
d9898ee8 8759 fi
ac40fd9e 8760 # Ok, now we have the path, separated by spaces, we can step through it
8761 # and add multilib dir if necessary.
8762 lt_tmp_lt_search_path_spec=
8763 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8764 for lt_sys_path in $lt_search_path_spec; do
8765 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8766 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8767 else
8768 test -d "$lt_sys_path" && \
8769 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8770 fi
8771 done
8772 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
8773BEGIN {RS=" "; FS="/|\n";} {
8774 lt_foo="";
8775 lt_count=0;
8776 for (lt_i = NF; lt_i > 0; lt_i--) {
8777 if ($lt_i != "" && $lt_i != ".") {
8778 if ($lt_i == "..") {
8779 lt_count++;
8780 } else {
8781 if (lt_count == 0) {
8782 lt_foo="/" $lt_i lt_foo;
8783 } else {
8784 lt_count--;
8785 }
8786 }
8787 }
8788 }
8789 if (lt_foo != "") { lt_freq[lt_foo]++; }
8790 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8791}'`
8792 sys_lib_search_path_spec=`echo $lt_search_path_spec`
d9898ee8 8793else
8794 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8795fi
8796need_lib_prefix=unknown
8797hardcode_into_libs=no
8798
8799# when you set need_version to no, make sure it does not cause -set_version
8800# flags to be left without arguments
8801need_version=unknown
8802
8803case $host_os in
8804aix3*)
8805 version_type=linux
8806 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8807 shlibpath_var=LIBPATH
8808
8809 # AIX 3 has no versioning support, so we append a major version to the name.
8810 soname_spec='${libname}${release}${shared_ext}$major'
8811 ;;
8812
8813aix4* | aix5*)
8814 version_type=linux
8815 need_lib_prefix=no
8816 need_version=no
8817 hardcode_into_libs=yes
8818 if test "$host_cpu" = ia64; then
8819 # AIX 5 supports IA64
8820 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8821 shlibpath_var=LD_LIBRARY_PATH
8822 else
8823 # With GCC up to 2.95.x, collect2 would create an import file
8824 # for dependence libraries. The import file would start with
8825 # the line `#! .'. This would cause the generated library to
8826 # depend on `.', always an invalid library. This was fixed in
8827 # development snapshots of GCC prior to 3.0.
8828 case $host_os in
8829 aix4 | aix4.[01] | aix4.[01].*)
8830 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8831 echo ' yes '
8832 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8833 :
8834 else
8835 can_build_shared=no
8836 fi
8837 ;;
8838 esac
8839 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8840 # soname into executable. Probably we can add versioning support to
8841 # collect2, so additional links can be useful in future.
8842 if test "$aix_use_runtimelinking" = yes; then
8843 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8844 # instead of lib<name>.a to let people know that these are not
8845 # typical AIX shared libraries.
8846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8847 else
8848 # We preserve .a as extension for shared libraries through AIX4.2
8849 # and later when we are not doing run time linking.
8850 library_names_spec='${libname}${release}.a $libname.a'
8851 soname_spec='${libname}${release}${shared_ext}$major'
8852 fi
8853 shlibpath_var=LIBPATH
8854 fi
8855 ;;
8856
8857amigaos*)
8858 library_names_spec='$libname.ixlibrary $libname.a'
8859 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8860 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'
8861 ;;
8862
8863beos*)
8864 library_names_spec='${libname}${shared_ext}'
8865 dynamic_linker="$host_os ld.so"
8866 shlibpath_var=LIBRARY_PATH
8867 ;;
8868
8869bsdi[45]*)
8870 version_type=linux
8871 need_version=no
8872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8873 soname_spec='${libname}${release}${shared_ext}$major'
8874 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8875 shlibpath_var=LD_LIBRARY_PATH
8876 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8877 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8878 # the default ld.so.conf also contains /usr/contrib/lib and
8879 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8880 # libtool to hard-code these into programs
8881 ;;
8882
8883cygwin* | mingw* | pw32*)
8884 version_type=windows
8885 shrext_cmds=".dll"
8886 need_version=no
8887 need_lib_prefix=no
8888
8889 case $GCC,$host_os in
8890 yes,cygwin* | yes,mingw* | yes,pw32*)
8891 library_names_spec='$libname.dll.a'
8892 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8893 postinstall_cmds='base_file=`basename \${file}`~
8894 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8895 dldir=$destdir/`dirname \$dlpath`~
8896 test -d \$dldir || mkdir -p \$dldir~
8897 $install_prog $dir/$dlname \$dldir/$dlname~
8898 chmod a+x \$dldir/$dlname'
8899 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8900 dlpath=$dir/\$dldll~
8901 $rm \$dlpath'
8902 shlibpath_overrides_runpath=yes
8903
8904 case $host_os in
8905 cygwin*)
8906 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8907 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8908 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8909 ;;
8910 mingw*)
8911 # MinGW DLLs use traditional 'lib' prefix
8912 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8913 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8914 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8915 # It is most probably a Windows format PATH printed by
8916 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8917 # path with ; separators, and with drive letters. We can handle the
8918 # drive letters (cygwin fileutils understands them), so leave them,
8919 # especially as we might pass files found there to a mingw objdump,
8920 # which wouldn't understand a cygwinified path. Ahh.
8921 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8922 else
8923 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8924 fi
8925 ;;
8926 pw32*)
8927 # pw32 DLLs use 'pw' prefix rather than 'lib'
8928 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8929 ;;
8930 esac
8931 ;;
8932
8933 *)
8934 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8935 ;;
8936 esac
8937 dynamic_linker='Win32 ld.exe'
8938 # FIXME: first we should search . and the directory the executable is in
8939 shlibpath_var=PATH
8940 ;;
8941
8942darwin* | rhapsody*)
8943 dynamic_linker="$host_os dyld"
8944 version_type=darwin
8945 need_lib_prefix=no
8946 need_version=no
8947 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8948 soname_spec='${libname}${release}${major}$shared_ext'
8949 shlibpath_overrides_runpath=yes
8950 shlibpath_var=DYLD_LIBRARY_PATH
8951 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
ac40fd9e 8952
8953 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
d9898ee8 8954 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8955 ;;
8956
8957dgux*)
8958 version_type=linux
8959 need_lib_prefix=no
8960 need_version=no
8961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8962 soname_spec='${libname}${release}${shared_ext}$major'
8963 shlibpath_var=LD_LIBRARY_PATH
8964 ;;
8965
8966freebsd1*)
8967 dynamic_linker=no
8968 ;;
8969
d9898ee8 8970freebsd* | dragonfly*)
8971 # DragonFly does not have aout. When/if they implement a new
8972 # versioning mechanism, adjust this.
8973 if test -x /usr/bin/objformat; then
8974 objformat=`/usr/bin/objformat`
8975 else
8976 case $host_os in
8977 freebsd[123]*) objformat=aout ;;
8978 *) objformat=elf ;;
8979 esac
8980 fi
8981 version_type=freebsd-$objformat
8982 case $version_type in
8983 freebsd-elf*)
8984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8985 need_version=no
8986 need_lib_prefix=no
8987 ;;
8988 freebsd-*)
8989 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8990 need_version=yes
8991 ;;
8992 esac
8993 shlibpath_var=LD_LIBRARY_PATH
8994 case $host_os in
8995 freebsd2*)
8996 shlibpath_overrides_runpath=yes
8997 ;;
8998 freebsd3.[01]* | freebsdelf3.[01]*)
8999 shlibpath_overrides_runpath=yes
9000 hardcode_into_libs=yes
9001 ;;
9002 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9003 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9004 shlibpath_overrides_runpath=no
9005 hardcode_into_libs=yes
9006 ;;
ac40fd9e 9007 *) # from 4.6 on, and DragonFly
d9898ee8 9008 shlibpath_overrides_runpath=yes
9009 hardcode_into_libs=yes
9010 ;;
9011 esac
9012 ;;
9013
9014gnu*)
9015 version_type=linux
9016 need_lib_prefix=no
9017 need_version=no
9018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9019 soname_spec='${libname}${release}${shared_ext}$major'
9020 shlibpath_var=LD_LIBRARY_PATH
9021 hardcode_into_libs=yes
9022 ;;
9023
9024hpux9* | hpux10* | hpux11*)
9025 # Give a soname corresponding to the major version so that dld.sl refuses to
9026 # link against other versions.
9027 version_type=sunos
9028 need_lib_prefix=no
9029 need_version=no
9030 case $host_cpu in
9031 ia64*)
9032 shrext_cmds='.so'
9033 hardcode_into_libs=yes
9034 dynamic_linker="$host_os dld.so"
9035 shlibpath_var=LD_LIBRARY_PATH
9036 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9038 soname_spec='${libname}${release}${shared_ext}$major'
9039 if test "X$HPUX_IA64_MODE" = X32; then
9040 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9041 else
9042 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9043 fi
9044 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9045 ;;
9046 hppa*64*)
9047 shrext_cmds='.sl'
9048 hardcode_into_libs=yes
9049 dynamic_linker="$host_os dld.sl"
9050 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9051 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9053 soname_spec='${libname}${release}${shared_ext}$major'
9054 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9055 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9056 ;;
9057 *)
9058 shrext_cmds='.sl'
9059 dynamic_linker="$host_os dld.sl"
9060 shlibpath_var=SHLIB_PATH
9061 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9063 soname_spec='${libname}${release}${shared_ext}$major'
9064 ;;
9065 esac
9066 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9067 postinstall_cmds='chmod 555 $lib'
9068 ;;
9069
ac40fd9e 9070interix[3-9]*)
d9898ee8 9071 version_type=linux
9072 need_lib_prefix=no
9073 need_version=no
9074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9075 soname_spec='${libname}${release}${shared_ext}$major'
9076 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9077 shlibpath_var=LD_LIBRARY_PATH
9078 shlibpath_overrides_runpath=no
9079 hardcode_into_libs=yes
9080 ;;
9081
9082irix5* | irix6* | nonstopux*)
9083 case $host_os in
9084 nonstopux*) version_type=nonstopux ;;
9085 *)
9086 if test "$lt_cv_prog_gnu_ld" = yes; then
9087 version_type=linux
9088 else
9089 version_type=irix
9090 fi ;;
9091 esac
9092 need_lib_prefix=no
9093 need_version=no
9094 soname_spec='${libname}${release}${shared_ext}$major'
9095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9096 case $host_os in
9097 irix5* | nonstopux*)
9098 libsuff= shlibsuff=
9099 ;;
9100 *)
9101 case $LD in # libtool.m4 will add one of these switches to LD
9102 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9103 libsuff= shlibsuff= libmagic=32-bit;;
9104 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9105 libsuff=32 shlibsuff=N32 libmagic=N32;;
9106 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9107 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9108 *) libsuff= shlibsuff= libmagic=never-match;;
9109 esac
9110 ;;
9111 esac
9112 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9113 shlibpath_overrides_runpath=no
9114 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9115 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9116 hardcode_into_libs=yes
9117 ;;
9118
9119# No shared lib support for Linux oldld, aout, or coff.
9120linux*oldld* | linux*aout* | linux*coff*)
9121 dynamic_linker=no
9122 ;;
9123
9124# This must be Linux ELF.
ac40fd9e 9125linux* | k*bsd*-gnu)
d9898ee8 9126 version_type=linux
9127 need_lib_prefix=no
9128 need_version=no
9129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9130 soname_spec='${libname}${release}${shared_ext}$major'
9131 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9132 shlibpath_var=LD_LIBRARY_PATH
9133 shlibpath_overrides_runpath=no
9134 # This implies no fast_install, which is unacceptable.
9135 # Some rework will be needed to allow for fast_install
9136 # before this can be enabled.
9137 hardcode_into_libs=yes
ac40fd9e 9138 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9139 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
d9898ee8 9140
9141 # Append ld.so.conf contents to the search path
9142 if test -f /etc/ld.so.conf; then
ac40fd9e 9143 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' ' '`
9144 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
d9898ee8 9145 fi
9146
9147 # We used to test for /lib/ld.so.1 and disable shared libraries on
9148 # powerpc, because MkLinux only supported shared libraries with the
9149 # GNU dynamic linker. Since this was broken with cross compilers,
9150 # most powerpc-linux boxes support dynamic linking these days and
9151 # people can always --disable-shared, the test was removed, and we
9152 # assume the GNU/Linux dynamic linker is in use.
9153 dynamic_linker='GNU/Linux ld.so'
9154 ;;
9155
d9898ee8 9156netbsd*)
9157 version_type=sunos
9158 need_lib_prefix=no
9159 need_version=no
9160 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9162 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9163 dynamic_linker='NetBSD (a.out) ld.so'
9164 else
9165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9166 soname_spec='${libname}${release}${shared_ext}$major'
9167 dynamic_linker='NetBSD ld.elf_so'
9168 fi
9169 shlibpath_var=LD_LIBRARY_PATH
9170 shlibpath_overrides_runpath=yes
9171 hardcode_into_libs=yes
9172 ;;
9173
9174newsos6)
9175 version_type=linux
9176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9177 shlibpath_var=LD_LIBRARY_PATH
9178 shlibpath_overrides_runpath=yes
9179 ;;
9180
9181nto-qnx*)
9182 version_type=linux
9183 need_lib_prefix=no
9184 need_version=no
9185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9186 soname_spec='${libname}${release}${shared_ext}$major'
9187 shlibpath_var=LD_LIBRARY_PATH
9188 shlibpath_overrides_runpath=yes
9189 ;;
9190
9191openbsd*)
9192 version_type=sunos
9193 sys_lib_dlsearch_path_spec="/usr/lib"
9194 need_lib_prefix=no
9195 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9196 case $host_os in
9197 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9198 *) need_version=no ;;
9199 esac
9200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9201 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9202 shlibpath_var=LD_LIBRARY_PATH
9203 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9204 case $host_os in
9205 openbsd2.[89] | openbsd2.[89].*)
9206 shlibpath_overrides_runpath=no
9207 ;;
9208 *)
9209 shlibpath_overrides_runpath=yes
9210 ;;
9211 esac
9212 else
9213 shlibpath_overrides_runpath=yes
9214 fi
9215 ;;
9216
9217os2*)
9218 libname_spec='$name'
9219 shrext_cmds=".dll"
9220 need_lib_prefix=no
9221 library_names_spec='$libname${shared_ext} $libname.a'
9222 dynamic_linker='OS/2 ld.exe'
9223 shlibpath_var=LIBPATH
9224 ;;
9225
9226osf3* | osf4* | osf5*)
9227 version_type=osf
9228 need_lib_prefix=no
9229 need_version=no
9230 soname_spec='${libname}${release}${shared_ext}$major'
9231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9232 shlibpath_var=LD_LIBRARY_PATH
9233 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9234 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9235 ;;
9236
ac40fd9e 9237rdos*)
9238 dynamic_linker=no
9239 ;;
9240
d9898ee8 9241solaris*)
9242 version_type=linux
9243 need_lib_prefix=no
9244 need_version=no
9245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9246 soname_spec='${libname}${release}${shared_ext}$major'
9247 shlibpath_var=LD_LIBRARY_PATH
9248 shlibpath_overrides_runpath=yes
9249 hardcode_into_libs=yes
9250 # ldd complains unless libraries are executable
9251 postinstall_cmds='chmod +x $lib'
9252 ;;
9253
9254sunos4*)
9255 version_type=sunos
9256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9257 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9258 shlibpath_var=LD_LIBRARY_PATH
9259 shlibpath_overrides_runpath=yes
9260 if test "$with_gnu_ld" = yes; then
9261 need_lib_prefix=no
9262 fi
9263 need_version=yes
9264 ;;
9265
9266sysv4 | sysv4.3*)
9267 version_type=linux
9268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9269 soname_spec='${libname}${release}${shared_ext}$major'
9270 shlibpath_var=LD_LIBRARY_PATH
9271 case $host_vendor in
9272 sni)
9273 shlibpath_overrides_runpath=no
9274 need_lib_prefix=no
9275 export_dynamic_flag_spec='${wl}-Blargedynsym'
9276 runpath_var=LD_RUN_PATH
9277 ;;
9278 siemens)
9279 need_lib_prefix=no
9280 ;;
9281 motorola)
9282 need_lib_prefix=no
9283 need_version=no
9284 shlibpath_overrides_runpath=no
9285 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9286 ;;
9287 esac
9288 ;;
9289
9290sysv4*MP*)
9291 if test -d /usr/nec ;then
9292 version_type=linux
9293 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9294 soname_spec='$libname${shared_ext}.$major'
9295 shlibpath_var=LD_LIBRARY_PATH
9296 fi
9297 ;;
9298
9299sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9300 version_type=freebsd-elf
9301 need_lib_prefix=no
9302 need_version=no
9303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9304 soname_spec='${libname}${release}${shared_ext}$major'
9305 shlibpath_var=LD_LIBRARY_PATH
9306 hardcode_into_libs=yes
9307 if test "$with_gnu_ld" = yes; then
9308 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9309 shlibpath_overrides_runpath=no
9310 else
9311 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9312 shlibpath_overrides_runpath=yes
9313 case $host_os in
9314 sco3.2v5*)
9315 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9316 ;;
9317 esac
9318 fi
9319 sys_lib_dlsearch_path_spec='/usr/lib'
9320 ;;
9321
9322uts4*)
9323 version_type=linux
9324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9325 soname_spec='${libname}${release}${shared_ext}$major'
9326 shlibpath_var=LD_LIBRARY_PATH
9327 ;;
9328
9329*)
9330 dynamic_linker=no
9331 ;;
9332esac
dd184caf 9333{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9334echo "${ECHO_T}$dynamic_linker" >&6; }
d9898ee8 9335test "$dynamic_linker" = no && can_build_shared=no
9336
9337variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9338if test "$GCC" = yes; then
9339 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9340fi
9341
dd184caf 9342{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9343echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
d9898ee8 9344hardcode_action=
9345if test -n "$hardcode_libdir_flag_spec" || \
9346 test -n "$runpath_var" || \
9347 test "X$hardcode_automatic" = "Xyes" ; then
9348
9349 # We can hardcode non-existant directories.
9350 if test "$hardcode_direct" != no &&
9351 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9352 # have to relink, otherwise we might link with an installed library
9353 # when we should be linking with a yet-to-be-installed one
9354 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9355 test "$hardcode_minus_L" != no; then
9356 # Linking always hardcodes the temporary library directory.
9357 hardcode_action=relink
9358 else
9359 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9360 hardcode_action=immediate
9361 fi
9362else
9363 # We cannot hardcode anything, or else we can only hardcode existing
9364 # directories.
9365 hardcode_action=unsupported
9366fi
dd184caf 9367{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
9368echo "${ECHO_T}$hardcode_action" >&6; }
d9898ee8 9369
9370if test "$hardcode_action" = relink; then
9371 # Fast installation is not supported
9372 enable_fast_install=no
9373elif test "$shlibpath_overrides_runpath" = yes ||
9374 test "$enable_shared" = no; then
9375 # Fast installation is not necessary
9376 enable_fast_install=needless
9377fi
9378
9379striplib=
9380old_striplib=
dd184caf 9381{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9382echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
d9898ee8 9383if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9384 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9385 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
dd184caf 9386 { echo "$as_me:$LINENO: result: yes" >&5
9387echo "${ECHO_T}yes" >&6; }
d9898ee8 9388else
9389# FIXME - insert some real tests, host_os isn't really good enough
9390 case $host_os in
9391 darwin*)
9392 if test -n "$STRIP" ; then
9393 striplib="$STRIP -x"
ac40fd9e 9394 old_striplib="$STRIP -S"
dd184caf 9395 { echo "$as_me:$LINENO: result: yes" >&5
9396echo "${ECHO_T}yes" >&6; }
d9898ee8 9397 else
dd184caf 9398 { echo "$as_me:$LINENO: result: no" >&5
9399echo "${ECHO_T}no" >&6; }
d9898ee8 9400fi
9401 ;;
9402 *)
dd184caf 9403 { echo "$as_me:$LINENO: result: no" >&5
9404echo "${ECHO_T}no" >&6; }
d9898ee8 9405 ;;
9406 esac
9407fi
9408
9409if test "x$enable_dlopen" != xyes; then
9410 enable_dlopen=unknown
9411 enable_dlopen_self=unknown
9412 enable_dlopen_self_static=unknown
9413else
9414 lt_cv_dlopen=no
9415 lt_cv_dlopen_libs=
9416
9417 case $host_os in
9418 beos*)
9419 lt_cv_dlopen="load_add_on"
9420 lt_cv_dlopen_libs=
9421 lt_cv_dlopen_self=yes
9422 ;;
9423
9424 mingw* | pw32*)
9425 lt_cv_dlopen="LoadLibrary"
9426 lt_cv_dlopen_libs=
9427 ;;
9428
9429 cygwin*)
9430 lt_cv_dlopen="dlopen"
9431 lt_cv_dlopen_libs=
9432 ;;
9433
9434 darwin*)
9435 # if libdl is installed we need to link against it
dd184caf 9436 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9437echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
d9898ee8 9438if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9439 echo $ECHO_N "(cached) $ECHO_C" >&6
9440else
9441 ac_check_lib_save_LIBS=$LIBS
9442LIBS="-ldl $LIBS"
9443cat >conftest.$ac_ext <<_ACEOF
9444/* confdefs.h. */
9445_ACEOF
9446cat confdefs.h >>conftest.$ac_ext
9447cat >>conftest.$ac_ext <<_ACEOF
9448/* end confdefs.h. */
9449
dd184caf 9450/* Override any GCC internal prototype to avoid an error.
9451 Use char because int might match the return type of a GCC
9452 builtin and then its argument prototype would still apply. */
d9898ee8 9453#ifdef __cplusplus
9454extern "C"
9455#endif
d9898ee8 9456char dlopen ();
9457int
9458main ()
9459{
dd184caf 9460return dlopen ();
d9898ee8 9461 ;
9462 return 0;
9463}
9464_ACEOF
9465rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 9466if { (ac_try="$ac_link"
9467case "(($ac_try" in
9468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9469 *) ac_try_echo=$ac_try;;
9470esac
9471eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9472 (eval "$ac_link") 2>conftest.er1
d9898ee8 9473 ac_status=$?
9474 grep -v '^ *+' conftest.er1 >conftest.err
9475 rm -f conftest.er1
9476 cat conftest.err >&5
9477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 9478 (exit $ac_status); } && {
9479 test -z "$ac_c_werror_flag" ||
9480 test ! -s conftest.err
9481 } && test -s conftest$ac_exeext &&
9482 $as_test_x conftest$ac_exeext; then
d9898ee8 9483 ac_cv_lib_dl_dlopen=yes
9484else
9485 echo "$as_me: failed program was:" >&5
9486sed 's/^/| /' conftest.$ac_ext >&5
9487
dd184caf 9488 ac_cv_lib_dl_dlopen=no
d9898ee8 9489fi
dd184caf 9490
9491rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 9492 conftest$ac_exeext conftest.$ac_ext
9493LIBS=$ac_check_lib_save_LIBS
9494fi
dd184caf 9495{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9496echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
d9898ee8 9497if test $ac_cv_lib_dl_dlopen = yes; then
9498 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9499else
9500
9501 lt_cv_dlopen="dyld"
9502 lt_cv_dlopen_libs=
9503 lt_cv_dlopen_self=yes
9504
9505fi
9506
9507 ;;
9508
9509 *)
dd184caf 9510 { echo "$as_me:$LINENO: checking for shl_load" >&5
9511echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
d9898ee8 9512if test "${ac_cv_func_shl_load+set}" = set; then
9513 echo $ECHO_N "(cached) $ECHO_C" >&6
9514else
9515 cat >conftest.$ac_ext <<_ACEOF
9516/* confdefs.h. */
9517_ACEOF
9518cat confdefs.h >>conftest.$ac_ext
9519cat >>conftest.$ac_ext <<_ACEOF
9520/* end confdefs.h. */
9521/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9522 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9523#define shl_load innocuous_shl_load
9524
9525/* System header to define __stub macros and hopefully few prototypes,
9526 which can conflict with char shl_load (); below.
9527 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9528 <limits.h> exists even on freestanding compilers. */
9529
9530#ifdef __STDC__
9531# include <limits.h>
9532#else
9533# include <assert.h>
9534#endif
9535
9536#undef shl_load
9537
dd184caf 9538/* Override any GCC internal prototype to avoid an error.
9539 Use char because int might match the return type of a GCC
9540 builtin and then its argument prototype would still apply. */
d9898ee8 9541#ifdef __cplusplus
9542extern "C"
d9898ee8 9543#endif
d9898ee8 9544char shl_load ();
9545/* The GNU C library defines this for functions which it implements
9546 to always fail with ENOSYS. Some functions are actually named
9547 something starting with __ and the normal name is an alias. */
dd184caf 9548#if defined __stub_shl_load || defined __stub___shl_load
d9898ee8 9549choke me
d9898ee8 9550#endif
9551
9552int
9553main ()
9554{
dd184caf 9555return shl_load ();
d9898ee8 9556 ;
9557 return 0;
9558}
9559_ACEOF
9560rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 9561if { (ac_try="$ac_link"
9562case "(($ac_try" in
9563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9564 *) ac_try_echo=$ac_try;;
9565esac
9566eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9567 (eval "$ac_link") 2>conftest.er1
d9898ee8 9568 ac_status=$?
9569 grep -v '^ *+' conftest.er1 >conftest.err
9570 rm -f conftest.er1
9571 cat conftest.err >&5
9572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 9573 (exit $ac_status); } && {
9574 test -z "$ac_c_werror_flag" ||
9575 test ! -s conftest.err
9576 } && test -s conftest$ac_exeext &&
9577 $as_test_x conftest$ac_exeext; then
d9898ee8 9578 ac_cv_func_shl_load=yes
9579else
9580 echo "$as_me: failed program was:" >&5
9581sed 's/^/| /' conftest.$ac_ext >&5
9582
dd184caf 9583 ac_cv_func_shl_load=no
d9898ee8 9584fi
dd184caf 9585
9586rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 9587 conftest$ac_exeext conftest.$ac_ext
9588fi
dd184caf 9589{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9590echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
d9898ee8 9591if test $ac_cv_func_shl_load = yes; then
9592 lt_cv_dlopen="shl_load"
9593else
dd184caf 9594 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9595echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
d9898ee8 9596if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9597 echo $ECHO_N "(cached) $ECHO_C" >&6
9598else
9599 ac_check_lib_save_LIBS=$LIBS
9600LIBS="-ldld $LIBS"
9601cat >conftest.$ac_ext <<_ACEOF
9602/* confdefs.h. */
9603_ACEOF
9604cat confdefs.h >>conftest.$ac_ext
9605cat >>conftest.$ac_ext <<_ACEOF
9606/* end confdefs.h. */
9607
dd184caf 9608/* Override any GCC internal prototype to avoid an error.
9609 Use char because int might match the return type of a GCC
9610 builtin and then its argument prototype would still apply. */
d9898ee8 9611#ifdef __cplusplus
9612extern "C"
9613#endif
d9898ee8 9614char shl_load ();
9615int
9616main ()
9617{
dd184caf 9618return shl_load ();
d9898ee8 9619 ;
9620 return 0;
9621}
9622_ACEOF
9623rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 9624if { (ac_try="$ac_link"
9625case "(($ac_try" in
9626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9627 *) ac_try_echo=$ac_try;;
9628esac
9629eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9630 (eval "$ac_link") 2>conftest.er1
d9898ee8 9631 ac_status=$?
9632 grep -v '^ *+' conftest.er1 >conftest.err
9633 rm -f conftest.er1
9634 cat conftest.err >&5
9635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 9636 (exit $ac_status); } && {
9637 test -z "$ac_c_werror_flag" ||
9638 test ! -s conftest.err
9639 } && test -s conftest$ac_exeext &&
9640 $as_test_x conftest$ac_exeext; then
d9898ee8 9641 ac_cv_lib_dld_shl_load=yes
9642else
9643 echo "$as_me: failed program was:" >&5
9644sed 's/^/| /' conftest.$ac_ext >&5
9645
dd184caf 9646 ac_cv_lib_dld_shl_load=no
d9898ee8 9647fi
dd184caf 9648
9649rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 9650 conftest$ac_exeext conftest.$ac_ext
9651LIBS=$ac_check_lib_save_LIBS
9652fi
dd184caf 9653{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9654echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
d9898ee8 9655if test $ac_cv_lib_dld_shl_load = yes; then
9656 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9657else
dd184caf 9658 { echo "$as_me:$LINENO: checking for dlopen" >&5
9659echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
d9898ee8 9660if test "${ac_cv_func_dlopen+set}" = set; then
9661 echo $ECHO_N "(cached) $ECHO_C" >&6
9662else
9663 cat >conftest.$ac_ext <<_ACEOF
9664/* confdefs.h. */
9665_ACEOF
9666cat confdefs.h >>conftest.$ac_ext
9667cat >>conftest.$ac_ext <<_ACEOF
9668/* end confdefs.h. */
9669/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9670 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9671#define dlopen innocuous_dlopen
9672
9673/* System header to define __stub macros and hopefully few prototypes,
9674 which can conflict with char dlopen (); below.
9675 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9676 <limits.h> exists even on freestanding compilers. */
9677
9678#ifdef __STDC__
9679# include <limits.h>
9680#else
9681# include <assert.h>
9682#endif
9683
9684#undef dlopen
9685
dd184caf 9686/* Override any GCC internal prototype to avoid an error.
9687 Use char because int might match the return type of a GCC
9688 builtin and then its argument prototype would still apply. */
d9898ee8 9689#ifdef __cplusplus
9690extern "C"
d9898ee8 9691#endif
d9898ee8 9692char dlopen ();
9693/* The GNU C library defines this for functions which it implements
9694 to always fail with ENOSYS. Some functions are actually named
9695 something starting with __ and the normal name is an alias. */
dd184caf 9696#if defined __stub_dlopen || defined __stub___dlopen
d9898ee8 9697choke me
d9898ee8 9698#endif
9699
9700int
9701main ()
9702{
dd184caf 9703return dlopen ();
d9898ee8 9704 ;
9705 return 0;
9706}
9707_ACEOF
9708rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 9709if { (ac_try="$ac_link"
9710case "(($ac_try" in
9711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9712 *) ac_try_echo=$ac_try;;
9713esac
9714eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9715 (eval "$ac_link") 2>conftest.er1
d9898ee8 9716 ac_status=$?
9717 grep -v '^ *+' conftest.er1 >conftest.err
9718 rm -f conftest.er1
9719 cat conftest.err >&5
9720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 9721 (exit $ac_status); } && {
9722 test -z "$ac_c_werror_flag" ||
9723 test ! -s conftest.err
9724 } && test -s conftest$ac_exeext &&
9725 $as_test_x conftest$ac_exeext; then
d9898ee8 9726 ac_cv_func_dlopen=yes
9727else
9728 echo "$as_me: failed program was:" >&5
9729sed 's/^/| /' conftest.$ac_ext >&5
9730
dd184caf 9731 ac_cv_func_dlopen=no
d9898ee8 9732fi
dd184caf 9733
9734rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 9735 conftest$ac_exeext conftest.$ac_ext
9736fi
dd184caf 9737{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9738echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
d9898ee8 9739if test $ac_cv_func_dlopen = yes; then
9740 lt_cv_dlopen="dlopen"
9741else
dd184caf 9742 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9743echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
d9898ee8 9744if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9745 echo $ECHO_N "(cached) $ECHO_C" >&6
9746else
9747 ac_check_lib_save_LIBS=$LIBS
9748LIBS="-ldl $LIBS"
9749cat >conftest.$ac_ext <<_ACEOF
9750/* confdefs.h. */
9751_ACEOF
9752cat confdefs.h >>conftest.$ac_ext
9753cat >>conftest.$ac_ext <<_ACEOF
9754/* end confdefs.h. */
9755
dd184caf 9756/* Override any GCC internal prototype to avoid an error.
9757 Use char because int might match the return type of a GCC
9758 builtin and then its argument prototype would still apply. */
d9898ee8 9759#ifdef __cplusplus
9760extern "C"
9761#endif
d9898ee8 9762char dlopen ();
9763int
9764main ()
9765{
dd184caf 9766return dlopen ();
d9898ee8 9767 ;
9768 return 0;
9769}
9770_ACEOF
9771rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 9772if { (ac_try="$ac_link"
9773case "(($ac_try" in
9774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9775 *) ac_try_echo=$ac_try;;
9776esac
9777eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9778 (eval "$ac_link") 2>conftest.er1
d9898ee8 9779 ac_status=$?
9780 grep -v '^ *+' conftest.er1 >conftest.err
9781 rm -f conftest.er1
9782 cat conftest.err >&5
9783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 9784 (exit $ac_status); } && {
9785 test -z "$ac_c_werror_flag" ||
9786 test ! -s conftest.err
9787 } && test -s conftest$ac_exeext &&
9788 $as_test_x conftest$ac_exeext; then
d9898ee8 9789 ac_cv_lib_dl_dlopen=yes
9790else
9791 echo "$as_me: failed program was:" >&5
9792sed 's/^/| /' conftest.$ac_ext >&5
9793
dd184caf 9794 ac_cv_lib_dl_dlopen=no
d9898ee8 9795fi
dd184caf 9796
9797rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 9798 conftest$ac_exeext conftest.$ac_ext
9799LIBS=$ac_check_lib_save_LIBS
9800fi
dd184caf 9801{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9802echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
d9898ee8 9803if test $ac_cv_lib_dl_dlopen = yes; then
9804 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9805else
dd184caf 9806 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9807echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
d9898ee8 9808if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9809 echo $ECHO_N "(cached) $ECHO_C" >&6
9810else
9811 ac_check_lib_save_LIBS=$LIBS
9812LIBS="-lsvld $LIBS"
9813cat >conftest.$ac_ext <<_ACEOF
9814/* confdefs.h. */
9815_ACEOF
9816cat confdefs.h >>conftest.$ac_ext
9817cat >>conftest.$ac_ext <<_ACEOF
9818/* end confdefs.h. */
9819
dd184caf 9820/* Override any GCC internal prototype to avoid an error.
9821 Use char because int might match the return type of a GCC
9822 builtin and then its argument prototype would still apply. */
d9898ee8 9823#ifdef __cplusplus
9824extern "C"
9825#endif
d9898ee8 9826char dlopen ();
9827int
9828main ()
9829{
dd184caf 9830return dlopen ();
d9898ee8 9831 ;
9832 return 0;
9833}
9834_ACEOF
9835rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 9836if { (ac_try="$ac_link"
9837case "(($ac_try" in
9838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9839 *) ac_try_echo=$ac_try;;
9840esac
9841eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9842 (eval "$ac_link") 2>conftest.er1
d9898ee8 9843 ac_status=$?
9844 grep -v '^ *+' conftest.er1 >conftest.err
9845 rm -f conftest.er1
9846 cat conftest.err >&5
9847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 9848 (exit $ac_status); } && {
9849 test -z "$ac_c_werror_flag" ||
9850 test ! -s conftest.err
9851 } && test -s conftest$ac_exeext &&
9852 $as_test_x conftest$ac_exeext; then
d9898ee8 9853 ac_cv_lib_svld_dlopen=yes
9854else
9855 echo "$as_me: failed program was:" >&5
9856sed 's/^/| /' conftest.$ac_ext >&5
9857
dd184caf 9858 ac_cv_lib_svld_dlopen=no
d9898ee8 9859fi
dd184caf 9860
9861rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 9862 conftest$ac_exeext conftest.$ac_ext
9863LIBS=$ac_check_lib_save_LIBS
9864fi
dd184caf 9865{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9866echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
d9898ee8 9867if test $ac_cv_lib_svld_dlopen = yes; then
9868 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9869else
dd184caf 9870 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9871echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
d9898ee8 9872if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9873 echo $ECHO_N "(cached) $ECHO_C" >&6
9874else
9875 ac_check_lib_save_LIBS=$LIBS
9876LIBS="-ldld $LIBS"
9877cat >conftest.$ac_ext <<_ACEOF
9878/* confdefs.h. */
9879_ACEOF
9880cat confdefs.h >>conftest.$ac_ext
9881cat >>conftest.$ac_ext <<_ACEOF
9882/* end confdefs.h. */
9883
dd184caf 9884/* Override any GCC internal prototype to avoid an error.
9885 Use char because int might match the return type of a GCC
9886 builtin and then its argument prototype would still apply. */
d9898ee8 9887#ifdef __cplusplus
9888extern "C"
9889#endif
d9898ee8 9890char dld_link ();
9891int
9892main ()
9893{
dd184caf 9894return dld_link ();
d9898ee8 9895 ;
9896 return 0;
9897}
9898_ACEOF
9899rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 9900if { (ac_try="$ac_link"
9901case "(($ac_try" in
9902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9903 *) ac_try_echo=$ac_try;;
9904esac
9905eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9906 (eval "$ac_link") 2>conftest.er1
d9898ee8 9907 ac_status=$?
9908 grep -v '^ *+' conftest.er1 >conftest.err
9909 rm -f conftest.er1
9910 cat conftest.err >&5
9911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 9912 (exit $ac_status); } && {
9913 test -z "$ac_c_werror_flag" ||
9914 test ! -s conftest.err
9915 } && test -s conftest$ac_exeext &&
9916 $as_test_x conftest$ac_exeext; then
d9898ee8 9917 ac_cv_lib_dld_dld_link=yes
9918else
9919 echo "$as_me: failed program was:" >&5
9920sed 's/^/| /' conftest.$ac_ext >&5
9921
dd184caf 9922 ac_cv_lib_dld_dld_link=no
d9898ee8 9923fi
dd184caf 9924
9925rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 9926 conftest$ac_exeext conftest.$ac_ext
9927LIBS=$ac_check_lib_save_LIBS
9928fi
dd184caf 9929{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9930echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
d9898ee8 9931if test $ac_cv_lib_dld_dld_link = yes; then
9932 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9933fi
9934
9935
9936fi
9937
9938
9939fi
9940
9941
9942fi
9943
9944
9945fi
9946
9947
9948fi
9949
9950 ;;
9951 esac
9952
9953 if test "x$lt_cv_dlopen" != xno; then
9954 enable_dlopen=yes
9955 else
9956 enable_dlopen=no
9957 fi
9958
9959 case $lt_cv_dlopen in
9960 dlopen)
9961 save_CPPFLAGS="$CPPFLAGS"
9962 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9963
9964 save_LDFLAGS="$LDFLAGS"
9965 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9966
9967 save_LIBS="$LIBS"
9968 LIBS="$lt_cv_dlopen_libs $LIBS"
9969
dd184caf 9970 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9971echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
d9898ee8 9972if test "${lt_cv_dlopen_self+set}" = set; then
9973 echo $ECHO_N "(cached) $ECHO_C" >&6
9974else
9975 if test "$cross_compiling" = yes; then :
9976 lt_cv_dlopen_self=cross
9977else
9978 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9979 lt_status=$lt_dlunknown
9980 cat > conftest.$ac_ext <<EOF
ac40fd9e 9981#line 9981 "configure"
d9898ee8 9982#include "confdefs.h"
9983
9984#if HAVE_DLFCN_H
9985#include <dlfcn.h>
9986#endif
9987
9988#include <stdio.h>
9989
9990#ifdef RTLD_GLOBAL
9991# define LT_DLGLOBAL RTLD_GLOBAL
9992#else
9993# ifdef DL_GLOBAL
9994# define LT_DLGLOBAL DL_GLOBAL
9995# else
9996# define LT_DLGLOBAL 0
9997# endif
9998#endif
9999
10000/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10001 find out it does not work in some platform. */
10002#ifndef LT_DLLAZY_OR_NOW
10003# ifdef RTLD_LAZY
10004# define LT_DLLAZY_OR_NOW RTLD_LAZY
10005# else
10006# ifdef DL_LAZY
10007# define LT_DLLAZY_OR_NOW DL_LAZY
10008# else
10009# ifdef RTLD_NOW
10010# define LT_DLLAZY_OR_NOW RTLD_NOW
10011# else
10012# ifdef DL_NOW
10013# define LT_DLLAZY_OR_NOW DL_NOW
10014# else
10015# define LT_DLLAZY_OR_NOW 0
10016# endif
10017# endif
10018# endif
10019# endif
10020#endif
10021
10022#ifdef __cplusplus
10023extern "C" void exit (int);
10024#endif
10025
10026void fnord() { int i=42;}
10027int main ()
10028{
10029 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10030 int status = $lt_dlunknown;
10031
10032 if (self)
10033 {
10034 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10035 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10036 /* dlclose (self); */
10037 }
10038 else
10039 puts (dlerror ());
10040
10041 exit (status);
10042}
10043EOF
10044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10045 (eval $ac_link) 2>&5
10046 ac_status=$?
10047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10048 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10049 (./conftest; exit; ) >&5 2>/dev/null
10050 lt_status=$?
10051 case x$lt_status in
10052 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10053 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10054 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10055 esac
10056 else :
10057 # compilation failed
10058 lt_cv_dlopen_self=no
10059 fi
10060fi
10061rm -fr conftest*
10062
10063
10064fi
dd184caf 10065{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10066echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
d9898ee8 10067
10068 if test "x$lt_cv_dlopen_self" = xyes; then
10069 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
dd184caf 10070 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10071echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
d9898ee8 10072if test "${lt_cv_dlopen_self_static+set}" = set; then
10073 echo $ECHO_N "(cached) $ECHO_C" >&6
10074else
10075 if test "$cross_compiling" = yes; then :
10076 lt_cv_dlopen_self_static=cross
10077else
10078 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10079 lt_status=$lt_dlunknown
10080 cat > conftest.$ac_ext <<EOF
ac40fd9e 10081#line 10081 "configure"
d9898ee8 10082#include "confdefs.h"
10083
10084#if HAVE_DLFCN_H
10085#include <dlfcn.h>
10086#endif
10087
10088#include <stdio.h>
10089
10090#ifdef RTLD_GLOBAL
10091# define LT_DLGLOBAL RTLD_GLOBAL
10092#else
10093# ifdef DL_GLOBAL
10094# define LT_DLGLOBAL DL_GLOBAL
10095# else
10096# define LT_DLGLOBAL 0
10097# endif
10098#endif
10099
10100/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10101 find out it does not work in some platform. */
10102#ifndef LT_DLLAZY_OR_NOW
10103# ifdef RTLD_LAZY
10104# define LT_DLLAZY_OR_NOW RTLD_LAZY
10105# else
10106# ifdef DL_LAZY
10107# define LT_DLLAZY_OR_NOW DL_LAZY
10108# else
10109# ifdef RTLD_NOW
10110# define LT_DLLAZY_OR_NOW RTLD_NOW
10111# else
10112# ifdef DL_NOW
10113# define LT_DLLAZY_OR_NOW DL_NOW
10114# else
10115# define LT_DLLAZY_OR_NOW 0
10116# endif
10117# endif
10118# endif
10119# endif
10120#endif
10121
10122#ifdef __cplusplus
10123extern "C" void exit (int);
10124#endif
10125
10126void fnord() { int i=42;}
10127int main ()
10128{
10129 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10130 int status = $lt_dlunknown;
10131
10132 if (self)
10133 {
10134 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10135 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10136 /* dlclose (self); */
10137 }
10138 else
10139 puts (dlerror ());
10140
10141 exit (status);
10142}
10143EOF
10144 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10145 (eval $ac_link) 2>&5
10146 ac_status=$?
10147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10148 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10149 (./conftest; exit; ) >&5 2>/dev/null
10150 lt_status=$?
10151 case x$lt_status in
10152 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10153 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10154 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10155 esac
10156 else :
10157 # compilation failed
10158 lt_cv_dlopen_self_static=no
10159 fi
10160fi
10161rm -fr conftest*
10162
10163
10164fi
dd184caf 10165{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10166echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
d9898ee8 10167 fi
10168
10169 CPPFLAGS="$save_CPPFLAGS"
10170 LDFLAGS="$save_LDFLAGS"
10171 LIBS="$save_LIBS"
10172 ;;
10173 esac
10174
10175 case $lt_cv_dlopen_self in
10176 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10177 *) enable_dlopen_self=unknown ;;
10178 esac
10179
10180 case $lt_cv_dlopen_self_static in
10181 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10182 *) enable_dlopen_self_static=unknown ;;
10183 esac
10184fi
10185
10186
10187# Report which library types will actually be built
dd184caf 10188{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10189echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10190{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
10191echo "${ECHO_T}$can_build_shared" >&6; }
d9898ee8 10192
dd184caf 10193{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10194echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
d9898ee8 10195test "$can_build_shared" = "no" && enable_shared=no
10196
10197# On AIX, shared libraries and static libraries use the same namespace, and
10198# are all built from PIC.
10199case $host_os in
10200aix3*)
10201 test "$enable_shared" = yes && enable_static=no
10202 if test -n "$RANLIB"; then
10203 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10204 postinstall_cmds='$RANLIB $lib'
10205 fi
10206 ;;
10207
10208aix4* | aix5*)
10209 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10210 test "$enable_shared" = yes && enable_static=no
10211 fi
10212 ;;
10213esac
dd184caf 10214{ echo "$as_me:$LINENO: result: $enable_shared" >&5
10215echo "${ECHO_T}$enable_shared" >&6; }
d9898ee8 10216
dd184caf 10217{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10218echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
d9898ee8 10219# Make sure either enable_shared or enable_static is yes.
10220test "$enable_shared" = yes || enable_static=yes
dd184caf 10221{ echo "$as_me:$LINENO: result: $enable_static" >&5
10222echo "${ECHO_T}$enable_static" >&6; }
d9898ee8 10223
10224# The else clause should only fire when bootstrapping the
10225# libtool distribution, otherwise you forgot to ship ltmain.sh
10226# with your package, and you will get complaints that there are
10227# no rules to generate ltmain.sh.
10228if test -f "$ltmain"; then
10229 # See if we are running on zsh, and set the options which allow our commands through
10230 # without removal of \ escapes.
10231 if test -n "${ZSH_VERSION+set}" ; then
10232 setopt NO_GLOB_SUBST
10233 fi
10234 # Now quote all the things that may contain metacharacters while being
10235 # careful not to overquote the AC_SUBSTed values. We take copies of the
10236 # variables and quote the copies for generation of the libtool script.
10237 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10238 SED SHELL STRIP \
10239 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10240 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10241 deplibs_check_method reload_flag reload_cmds need_locks \
10242 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10243 lt_cv_sys_global_symbol_to_c_name_address \
10244 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10245 old_postinstall_cmds old_postuninstall_cmds \
10246 compiler \
10247 CC \
10248 LD \
10249 lt_prog_compiler_wl \
10250 lt_prog_compiler_pic \
10251 lt_prog_compiler_static \
10252 lt_prog_compiler_no_builtin_flag \
10253 export_dynamic_flag_spec \
10254 thread_safe_flag_spec \
10255 whole_archive_flag_spec \
10256 enable_shared_with_static_runtimes \
10257 old_archive_cmds \
10258 old_archive_from_new_cmds \
10259 predep_objects \
10260 postdep_objects \
10261 predeps \
10262 postdeps \
10263 compiler_lib_search_path \
10264 archive_cmds \
10265 archive_expsym_cmds \
10266 postinstall_cmds \
10267 postuninstall_cmds \
10268 old_archive_from_expsyms_cmds \
10269 allow_undefined_flag \
10270 no_undefined_flag \
10271 export_symbols_cmds \
10272 hardcode_libdir_flag_spec \
10273 hardcode_libdir_flag_spec_ld \
10274 hardcode_libdir_separator \
10275 hardcode_automatic \
10276 module_cmds \
10277 module_expsym_cmds \
10278 lt_cv_prog_compiler_c_o \
ac40fd9e 10279 fix_srcfile_path \
d9898ee8 10280 exclude_expsyms \
10281 include_expsyms; do
10282
10283 case $var in
10284 old_archive_cmds | \
10285 old_archive_from_new_cmds | \
10286 archive_cmds | \
10287 archive_expsym_cmds | \
10288 module_cmds | \
10289 module_expsym_cmds | \
10290 old_archive_from_expsyms_cmds | \
10291 export_symbols_cmds | \
10292 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10293 postinstall_cmds | postuninstall_cmds | \
10294 old_postinstall_cmds | old_postuninstall_cmds | \
10295 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10296 # Double-quote double-evaled strings.
10297 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10298 ;;
10299 *)
10300 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10301 ;;
10302 esac
10303 done
10304
10305 case $lt_echo in
10306 *'\$0 --fallback-echo"')
10307 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10308 ;;
10309 esac
10310
10311cfgfile="${ofile}T"
10312 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10313 $rm -f "$cfgfile"
10314 { echo "$as_me:$LINENO: creating $ofile" >&5
10315echo "$as_me: creating $ofile" >&6;}
10316
10317 cat <<__EOF__ >> "$cfgfile"
10318#! $SHELL
10319
10320# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10321# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10322# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10323#
ac40fd9e 10324# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
d9898ee8 10325# Free Software Foundation, Inc.
10326#
10327# This file is part of GNU Libtool:
10328# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10329#
10330# This program is free software; you can redistribute it and/or modify
10331# it under the terms of the GNU General Public License as published by
10332# the Free Software Foundation; either version 2 of the License, or
10333# (at your option) any later version.
10334#
10335# This program is distributed in the hope that it will be useful, but
10336# WITHOUT ANY WARRANTY; without even the implied warranty of
10337# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10338# General Public License for more details.
10339#
10340# You should have received a copy of the GNU General Public License
10341# along with this program; if not, write to the Free Software
10342# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10343#
10344# As a special exception to the GNU General Public License, if you
10345# distribute this file as part of a program that contains a
10346# configuration script generated by Autoconf, you may include it under
10347# the same distribution terms that you use for the rest of that program.
10348
10349# A sed program that does not truncate output.
10350SED=$lt_SED
10351
10352# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10353Xsed="$SED -e 1s/^X//"
10354
10355# The HP-UX ksh and POSIX shell print the target directory to stdout
10356# if CDPATH is set.
10357(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10358
10359# The names of the tagged configurations supported by this script.
10360available_tags=
10361
10362# ### BEGIN LIBTOOL CONFIG
10363
10364# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10365
10366# Shell to use when invoking shell scripts.
10367SHELL=$lt_SHELL
10368
10369# Whether or not to build shared libraries.
10370build_libtool_libs=$enable_shared
10371
10372# Whether or not to build static libraries.
10373build_old_libs=$enable_static
10374
10375# Whether or not to add -lc for building shared libraries.
10376build_libtool_need_lc=$archive_cmds_need_lc
10377
10378# Whether or not to disallow shared libs when runtime libs are static
10379allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10380
10381# Whether or not to optimize for fast installation.
10382fast_install=$enable_fast_install
10383
10384# The host system.
10385host_alias=$host_alias
10386host=$host
10387host_os=$host_os
10388
10389# The build system.
10390build_alias=$build_alias
10391build=$build
10392build_os=$build_os
10393
10394# An echo program that does not interpret backslashes.
10395echo=$lt_echo
10396
10397# The archiver.
10398AR=$lt_AR
10399AR_FLAGS=$lt_AR_FLAGS
10400
10401# A C compiler.
10402LTCC=$lt_LTCC
10403
10404# LTCC compiler flags.
10405LTCFLAGS=$lt_LTCFLAGS
10406
10407# A language-specific compiler.
10408CC=$lt_compiler
10409
10410# Is the compiler the GNU C compiler?
10411with_gcc=$GCC
10412
d9898ee8 10413# An ERE matcher.
10414EGREP=$lt_EGREP
10415
10416# The linker used to build libraries.
10417LD=$lt_LD
10418
10419# Whether we need hard or soft links.
10420LN_S=$lt_LN_S
10421
10422# A BSD-compatible nm program.
10423NM=$lt_NM
10424
10425# A symbol stripping program
10426STRIP=$lt_STRIP
10427
10428# Used to examine libraries when file_magic_cmd begins "file"
10429MAGIC_CMD=$MAGIC_CMD
10430
10431# Used on cygwin: DLL creation program.
10432DLLTOOL="$DLLTOOL"
10433
10434# Used on cygwin: object dumper.
10435OBJDUMP="$OBJDUMP"
10436
10437# Used on cygwin: assembler.
10438AS="$AS"
10439
10440# The name of the directory that contains temporary libtool files.
10441objdir=$objdir
10442
10443# How to create reloadable object files.
10444reload_flag=$lt_reload_flag
10445reload_cmds=$lt_reload_cmds
10446
10447# How to pass a linker flag through the compiler.
10448wl=$lt_lt_prog_compiler_wl
10449
10450# Object file suffix (normally "o").
10451objext="$ac_objext"
10452
10453# Old archive suffix (normally "a").
10454libext="$libext"
10455
10456# Shared library suffix (normally ".so").
10457shrext_cmds='$shrext_cmds'
10458
10459# Executable file suffix (normally "").
10460exeext="$exeext"
10461
10462# Additional compiler flags for building library objects.
10463pic_flag=$lt_lt_prog_compiler_pic
10464pic_mode=$pic_mode
10465
10466# What is the maximum length of a command?
10467max_cmd_len=$lt_cv_sys_max_cmd_len
10468
10469# Does compiler simultaneously support -c and -o options?
10470compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10471
10472# Must we lock files when doing compilation?
10473need_locks=$lt_need_locks
10474
10475# Do we need the lib prefix for modules?
10476need_lib_prefix=$need_lib_prefix
10477
10478# Do we need a version for libraries?
10479need_version=$need_version
10480
10481# Whether dlopen is supported.
10482dlopen_support=$enable_dlopen
10483
10484# Whether dlopen of programs is supported.
10485dlopen_self=$enable_dlopen_self
10486
10487# Whether dlopen of statically linked programs is supported.
10488dlopen_self_static=$enable_dlopen_self_static
10489
10490# Compiler flag to prevent dynamic linking.
10491link_static_flag=$lt_lt_prog_compiler_static
10492
10493# Compiler flag to turn off builtin functions.
10494no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10495
10496# Compiler flag to allow reflexive dlopens.
10497export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10498
10499# Compiler flag to generate shared objects directly from archives.
10500whole_archive_flag_spec=$lt_whole_archive_flag_spec
10501
10502# Compiler flag to generate thread-safe objects.
10503thread_safe_flag_spec=$lt_thread_safe_flag_spec
10504
10505# Library versioning type.
10506version_type=$version_type
10507
10508# Format of library name prefix.
10509libname_spec=$lt_libname_spec
10510
10511# List of archive names. First name is the real one, the rest are links.
10512# The last name is the one that the linker finds with -lNAME.
10513library_names_spec=$lt_library_names_spec
10514
10515# The coded name of the library, if different from the real name.
10516soname_spec=$lt_soname_spec
10517
10518# Commands used to build and install an old-style archive.
10519RANLIB=$lt_RANLIB
10520old_archive_cmds=$lt_old_archive_cmds
10521old_postinstall_cmds=$lt_old_postinstall_cmds
10522old_postuninstall_cmds=$lt_old_postuninstall_cmds
10523
10524# Create an old-style archive from a shared archive.
10525old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10526
10527# Create a temporary old-style archive to link instead of a shared archive.
10528old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10529
10530# Commands used to build and install a shared archive.
10531archive_cmds=$lt_archive_cmds
10532archive_expsym_cmds=$lt_archive_expsym_cmds
10533postinstall_cmds=$lt_postinstall_cmds
10534postuninstall_cmds=$lt_postuninstall_cmds
10535
10536# Commands used to build a loadable module (assumed same as above if empty)
10537module_cmds=$lt_module_cmds
10538module_expsym_cmds=$lt_module_expsym_cmds
10539
10540# Commands to strip libraries.
10541old_striplib=$lt_old_striplib
10542striplib=$lt_striplib
10543
10544# Dependencies to place before the objects being linked to create a
10545# shared library.
dd184caf 10546predep_objects=$lt_predep_objects
d9898ee8 10547
10548# Dependencies to place after the objects being linked to create a
10549# shared library.
dd184caf 10550postdep_objects=$lt_postdep_objects
d9898ee8 10551
10552# Dependencies to place before the objects being linked to create a
10553# shared library.
10554predeps=$lt_predeps
10555
10556# Dependencies to place after the objects being linked to create a
10557# shared library.
10558postdeps=$lt_postdeps
10559
10560# The library search path used internally by the compiler when linking
10561# a shared library.
dd184caf 10562compiler_lib_search_path=$lt_compiler_lib_search_path
d9898ee8 10563
10564# Method to check whether dependent libraries are shared objects.
10565deplibs_check_method=$lt_deplibs_check_method
10566
10567# Command to use when deplibs_check_method == file_magic.
10568file_magic_cmd=$lt_file_magic_cmd
10569
10570# Flag that allows shared libraries with undefined symbols to be built.
10571allow_undefined_flag=$lt_allow_undefined_flag
10572
10573# Flag that forces no undefined symbols.
10574no_undefined_flag=$lt_no_undefined_flag
10575
10576# Commands used to finish a libtool library installation in a directory.
10577finish_cmds=$lt_finish_cmds
10578
10579# Same as above, but a single script fragment to be evaled but not shown.
10580finish_eval=$lt_finish_eval
10581
10582# Take the output of nm and produce a listing of raw symbols and C names.
10583global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10584
10585# Transform the output of nm in a proper C declaration
10586global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10587
10588# Transform the output of nm in a C name address pair
10589global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10590
10591# This is the shared library runtime path variable.
10592runpath_var=$runpath_var
10593
10594# This is the shared library path variable.
10595shlibpath_var=$shlibpath_var
10596
10597# Is shlibpath searched before the hard-coded library search path?
10598shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10599
10600# How to hardcode a shared library path into an executable.
10601hardcode_action=$hardcode_action
10602
10603# Whether we should hardcode library paths into libraries.
10604hardcode_into_libs=$hardcode_into_libs
10605
10606# Flag to hardcode \$libdir into a binary during linking.
10607# This must work even if \$libdir does not exist.
10608hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10609
10610# If ld is used when linking, flag to hardcode \$libdir into
10611# a binary during linking. This must work even if \$libdir does
10612# not exist.
10613hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10614
10615# Whether we need a single -rpath flag with a separated argument.
10616hardcode_libdir_separator=$lt_hardcode_libdir_separator
10617
10618# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10619# resulting binary.
10620hardcode_direct=$hardcode_direct
10621
10622# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10623# resulting binary.
10624hardcode_minus_L=$hardcode_minus_L
10625
10626# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10627# the resulting binary.
10628hardcode_shlibpath_var=$hardcode_shlibpath_var
10629
10630# Set to yes if building a shared library automatically hardcodes DIR into the library
10631# and all subsequent libraries and executables linked against it.
10632hardcode_automatic=$hardcode_automatic
10633
10634# Variables whose values should be saved in libtool wrapper scripts and
10635# restored at relink time.
10636variables_saved_for_relink="$variables_saved_for_relink"
10637
10638# Whether libtool must link a program against all its dependency libraries.
10639link_all_deplibs=$link_all_deplibs
10640
10641# Compile-time system search path for libraries
dd184caf 10642sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
d9898ee8 10643
10644# Run-time system search path for libraries
10645sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10646
10647# Fix the shell variable \$srcfile for the compiler.
ac40fd9e 10648fix_srcfile_path=$lt_fix_srcfile_path
d9898ee8 10649
10650# Set to yes if exported symbols are required.
10651always_export_symbols=$always_export_symbols
10652
10653# The commands to list exported symbols.
10654export_symbols_cmds=$lt_export_symbols_cmds
10655
10656# The commands to extract the exported symbol list from a shared archive.
10657extract_expsyms_cmds=$lt_extract_expsyms_cmds
10658
10659# Symbols that should not be listed in the preloaded symbols.
10660exclude_expsyms=$lt_exclude_expsyms
10661
10662# Symbols that must always be exported.
10663include_expsyms=$lt_include_expsyms
10664
10665# ### END LIBTOOL CONFIG
10666
10667__EOF__
10668
10669
10670 case $host_os in
10671 aix3*)
10672 cat <<\EOF >> "$cfgfile"
10673
10674# AIX sometimes has problems with the GCC collect2 program. For some
10675# reason, if we set the COLLECT_NAMES environment variable, the problems
10676# vanish in a puff of smoke.
10677if test "X${COLLECT_NAMES+set}" != Xset; then
10678 COLLECT_NAMES=
10679 export COLLECT_NAMES
10680fi
10681EOF
10682 ;;
10683 esac
10684
10685 # We use sed instead of cat because bash on DJGPP gets confused if
10686 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10687 # text mode, it properly converts lines to CR/LF. This bash problem
10688 # is reportedly fixed, but why not run on old versions too?
10689 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10690
10691 mv -f "$cfgfile" "$ofile" || \
10692 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10693 chmod +x "$ofile"
10694
10695else
10696 # If there is no Makefile yet, we rely on a make rule to execute
10697 # `config.status --recheck' to rerun these tests and create the
10698 # libtool script then.
10699 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10700 if test -f "$ltmain_in"; then
10701 test -f Makefile && make "$ltmain"
10702 fi
10703fi
10704
10705
10706ac_ext=c
10707ac_cpp='$CPP $CPPFLAGS'
10708ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10709ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10710ac_compiler_gnu=$ac_cv_c_compiler_gnu
10711
10712CC="$lt_save_CC"
10713
10714
dd184caf 10715# Check whether --with-tags was given.
d9898ee8 10716if test "${with_tags+set}" = set; then
dd184caf 10717 withval=$with_tags; tagnames="$withval"
10718fi
10719
d9898ee8 10720
10721if test -f "$ltmain" && test -n "$tagnames"; then
10722 if test ! -f "${ofile}"; then
10723 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10724echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10725 fi
10726
10727 if test -z "$LTCC"; then
10728 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10729 if test -z "$LTCC"; then
10730 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10731echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10732 else
10733 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10734echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10735 fi
10736 fi
10737 if test -z "$LTCFLAGS"; then
10738 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10739 fi
10740
10741 # Extract list of available tagged configurations in $ofile.
10742 # Note that this assumes the entire list is on one line.
10743 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10744
10745 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10746 for tagname in $tagnames; do
10747 IFS="$lt_save_ifs"
10748 # Check whether tagname contains only valid characters
10749 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10750 "") ;;
10751 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10752echo "$as_me: error: invalid tag name: $tagname" >&2;}
10753 { (exit 1); exit 1; }; }
10754 ;;
10755 esac
10756
10757 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10758 then
10759 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10760echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10761 { (exit 1); exit 1; }; }
10762 fi
10763
10764 # Update the list of available tags.
10765 if test -n "$tagname"; then
10766 echo appending configuration tag \"$tagname\" to $ofile
10767
10768 case $tagname in
10769 CXX)
10770 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10771 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10772 (test "X$CXX" != "Xg++"))) ; then
dd184caf 10773 ac_ext=cpp
d9898ee8 10774ac_cpp='$CXXCPP $CPPFLAGS'
10775ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10776ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10777ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10778
10779
10780
10781
10782archive_cmds_need_lc_CXX=no
10783allow_undefined_flag_CXX=
10784always_export_symbols_CXX=no
10785archive_expsym_cmds_CXX=
10786export_dynamic_flag_spec_CXX=
10787hardcode_direct_CXX=no
10788hardcode_libdir_flag_spec_CXX=
10789hardcode_libdir_flag_spec_ld_CXX=
10790hardcode_libdir_separator_CXX=
10791hardcode_minus_L_CXX=no
10792hardcode_shlibpath_var_CXX=unsupported
10793hardcode_automatic_CXX=no
10794module_cmds_CXX=
10795module_expsym_cmds_CXX=
10796link_all_deplibs_CXX=unknown
10797old_archive_cmds_CXX=$old_archive_cmds
10798no_undefined_flag_CXX=
10799whole_archive_flag_spec_CXX=
10800enable_shared_with_static_runtimes_CXX=no
10801
10802# Dependencies to place before and after the object being linked:
10803predep_objects_CXX=
10804postdep_objects_CXX=
10805predeps_CXX=
10806postdeps_CXX=
10807compiler_lib_search_path_CXX=
10808
10809# Source file extension for C++ test sources.
10810ac_ext=cpp
10811
10812# Object file extension for compiled C++ test sources.
10813objext=o
10814objext_CXX=$objext
10815
10816# Code to be used in simple compile tests
ac40fd9e 10817lt_simple_compile_test_code="int some_variable = 0;"
d9898ee8 10818
10819# Code to be used in simple link tests
ac40fd9e 10820lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
d9898ee8 10821
10822# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10823
10824# If no C compiler was specified, use CC.
10825LTCC=${LTCC-"$CC"}
10826
10827# If no C compiler flags were specified, use CFLAGS.
10828LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10829
10830# Allow CC to be a program name with arguments.
10831compiler=$CC
10832
10833
10834# save warnings/boilerplate of simple test code
10835ac_outfile=conftest.$ac_objext
ac40fd9e 10836echo "$lt_simple_compile_test_code" >conftest.$ac_ext
d9898ee8 10837eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10838_lt_compiler_boilerplate=`cat conftest.err`
10839$rm conftest*
10840
10841ac_outfile=conftest.$ac_objext
ac40fd9e 10842echo "$lt_simple_link_test_code" >conftest.$ac_ext
d9898ee8 10843eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10844_lt_linker_boilerplate=`cat conftest.err`
10845$rm conftest*
10846
10847
10848# Allow CC to be a program name with arguments.
10849lt_save_CC=$CC
10850lt_save_LD=$LD
10851lt_save_GCC=$GCC
10852GCC=$GXX
10853lt_save_with_gnu_ld=$with_gnu_ld
10854lt_save_path_LD=$lt_cv_path_LD
10855if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10856 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10857else
10858 $as_unset lt_cv_prog_gnu_ld
10859fi
10860if test -n "${lt_cv_path_LDCXX+set}"; then
10861 lt_cv_path_LD=$lt_cv_path_LDCXX
10862else
10863 $as_unset lt_cv_path_LD
10864fi
10865test -z "${LDCXX+set}" || LD=$LDCXX
10866CC=${CXX-"c++"}
10867compiler=$CC
10868compiler_CXX=$CC
10869for cc_temp in $compiler""; do
10870 case $cc_temp in
10871 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10872 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10873 \-*) ;;
10874 *) break;;
10875 esac
10876done
10877cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10878
10879
10880# We don't want -fno-exception wen compiling C++ code, so set the
10881# no_builtin_flag separately
10882if test "$GXX" = yes; then
10883 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10884else
10885 lt_prog_compiler_no_builtin_flag_CXX=
10886fi
10887
10888if test "$GXX" = yes; then
10889 # Set up default GNU C++ configuration
10890
10891
dd184caf 10892# Check whether --with-gnu-ld was given.
d9898ee8 10893if test "${with_gnu_ld+set}" = set; then
dd184caf 10894 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
d9898ee8 10895else
10896 with_gnu_ld=no
dd184caf 10897fi
10898
d9898ee8 10899ac_prog=ld
10900if test "$GCC" = yes; then
10901 # Check if gcc -print-prog-name=ld gives a path.
dd184caf 10902 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10903echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
d9898ee8 10904 case $host in
10905 *-*-mingw*)
10906 # gcc leaves a trailing carriage return which upsets mingw
10907 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10908 *)
10909 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10910 esac
10911 case $ac_prog in
10912 # Accept absolute paths.
10913 [\\/]* | ?:[\\/]*)
10914 re_direlt='/[^/][^/]*/\.\./'
10915 # Canonicalize the pathname of ld
10916 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10917 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10918 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10919 done
10920 test -z "$LD" && LD="$ac_prog"
10921 ;;
10922 "")
10923 # If it fails, then pretend we aren't using GCC.
10924 ac_prog=ld
10925 ;;
10926 *)
10927 # If it is relative, then search for the first ld in PATH.
10928 with_gnu_ld=unknown
10929 ;;
10930 esac
10931elif test "$with_gnu_ld" = yes; then
dd184caf 10932 { echo "$as_me:$LINENO: checking for GNU ld" >&5
10933echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
d9898ee8 10934else
dd184caf 10935 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10936echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
d9898ee8 10937fi
10938if test "${lt_cv_path_LD+set}" = set; then
10939 echo $ECHO_N "(cached) $ECHO_C" >&6
10940else
10941 if test -z "$LD"; then
10942 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10943 for ac_dir in $PATH; do
10944 IFS="$lt_save_ifs"
10945 test -z "$ac_dir" && ac_dir=.
10946 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10947 lt_cv_path_LD="$ac_dir/$ac_prog"
10948 # Check to see if the program is GNU ld. I'd rather use --version,
10949 # but apparently some variants of GNU ld only accept -v.
10950 # Break only if it was the GNU/non-GNU ld that we prefer.
10951 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10952 *GNU* | *'with BFD'*)
10953 test "$with_gnu_ld" != no && break
10954 ;;
10955 *)
10956 test "$with_gnu_ld" != yes && break
10957 ;;
10958 esac
10959 fi
10960 done
10961 IFS="$lt_save_ifs"
10962else
10963 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10964fi
10965fi
10966
10967LD="$lt_cv_path_LD"
10968if test -n "$LD"; then
dd184caf 10969 { echo "$as_me:$LINENO: result: $LD" >&5
10970echo "${ECHO_T}$LD" >&6; }
d9898ee8 10971else
dd184caf 10972 { echo "$as_me:$LINENO: result: no" >&5
10973echo "${ECHO_T}no" >&6; }
d9898ee8 10974fi
10975test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10976echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10977 { (exit 1); exit 1; }; }
dd184caf 10978{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10979echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
d9898ee8 10980if test "${lt_cv_prog_gnu_ld+set}" = set; then
10981 echo $ECHO_N "(cached) $ECHO_C" >&6
10982else
10983 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10984case `$LD -v 2>&1 </dev/null` in
10985*GNU* | *'with BFD'*)
10986 lt_cv_prog_gnu_ld=yes
10987 ;;
10988*)
10989 lt_cv_prog_gnu_ld=no
10990 ;;
10991esac
10992fi
dd184caf 10993{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10994echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
d9898ee8 10995with_gnu_ld=$lt_cv_prog_gnu_ld
10996
10997
10998
10999 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11000 # archiving commands below assume that GNU ld is being used.
11001 if test "$with_gnu_ld" = yes; then
11002 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11003 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'
11004
11005 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11006 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11007
11008 # If archive_cmds runs LD, not CC, wlarc should be empty
11009 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11010 # investigate it a little bit more. (MM)
11011 wlarc='${wl}'
11012
11013 # ancient GNU ld didn't support --whole-archive et. al.
11014 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11015 grep 'no-whole-archive' > /dev/null; then
11016 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11017 else
11018 whole_archive_flag_spec_CXX=
11019 fi
11020 else
11021 with_gnu_ld=no
11022 wlarc=
11023
11024 # A generic and very simple default shared library creation
11025 # command for GNU C++ for the case where it uses the native
11026 # linker, instead of GNU ld. If possible, this setting should
11027 # overridden to take advantage of the native linker features on
11028 # the platform it is being used on.
11029 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11030 fi
11031
11032 # Commands to make compiler produce verbose output that lists
11033 # what "hidden" libraries, object files and flags are used when
11034 # linking a shared library.
11035 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11036
11037else
11038 GXX=no
11039 with_gnu_ld=no
11040 wlarc=
11041fi
11042
11043# PORTME: fill in a description of your system's C++ link characteristics
dd184caf 11044{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11045echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
d9898ee8 11046ld_shlibs_CXX=yes
11047case $host_os in
11048 aix3*)
11049 # FIXME: insert proper C++ library support
11050 ld_shlibs_CXX=no
11051 ;;
11052 aix4* | aix5*)
11053 if test "$host_cpu" = ia64; then
11054 # On IA64, the linker does run time linking by default, so we don't
11055 # have to do anything special.
11056 aix_use_runtimelinking=no
11057 exp_sym_flag='-Bexport'
11058 no_entry_flag=""
11059 else
11060 aix_use_runtimelinking=no
11061
11062 # Test if we are trying to use run time linking or normal
11063 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11064 # need to do runtime linking.
11065 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11066 for ld_flag in $LDFLAGS; do
11067 case $ld_flag in
11068 *-brtl*)
11069 aix_use_runtimelinking=yes
11070 break
11071 ;;
11072 esac
11073 done
11074 ;;
11075 esac
11076
11077 exp_sym_flag='-bexport'
11078 no_entry_flag='-bnoentry'
11079 fi
11080
11081 # When large executables or shared objects are built, AIX ld can
11082 # have problems creating the table of contents. If linking a library
11083 # or program results in "error TOC overflow" add -mminimal-toc to
11084 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11085 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11086
11087 archive_cmds_CXX=''
11088 hardcode_direct_CXX=yes
11089 hardcode_libdir_separator_CXX=':'
11090 link_all_deplibs_CXX=yes
11091
11092 if test "$GXX" = yes; then
11093 case $host_os in aix4.[012]|aix4.[012].*)
11094 # We only want to do this on AIX 4.2 and lower, the check
11095 # below for broken collect2 doesn't work under 4.3+
11096 collect2name=`${CC} -print-prog-name=collect2`
11097 if test -f "$collect2name" && \
11098 strings "$collect2name" | grep resolve_lib_name >/dev/null
11099 then
11100 # We have reworked collect2
ac40fd9e 11101 :
d9898ee8 11102 else
11103 # We have old collect2
11104 hardcode_direct_CXX=unsupported
11105 # It fails to find uninstalled libraries when the uninstalled
11106 # path is not listed in the libpath. Setting hardcode_minus_L
11107 # to unsupported forces relinking
11108 hardcode_minus_L_CXX=yes
11109 hardcode_libdir_flag_spec_CXX='-L$libdir'
11110 hardcode_libdir_separator_CXX=
11111 fi
11112 ;;
11113 esac
11114 shared_flag='-shared'
11115 if test "$aix_use_runtimelinking" = yes; then
11116 shared_flag="$shared_flag "'${wl}-G'
11117 fi
11118 else
11119 # not using gcc
11120 if test "$host_cpu" = ia64; then
11121 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11122 # chokes on -Wl,-G. The following line is correct:
11123 shared_flag='-G'
11124 else
11125 if test "$aix_use_runtimelinking" = yes; then
11126 shared_flag='${wl}-G'
11127 else
11128 shared_flag='${wl}-bM:SRE'
11129 fi
11130 fi
11131 fi
11132
11133 # It seems that -bexpall does not export symbols beginning with
11134 # underscore (_), so it is better to generate a list of symbols to export.
11135 always_export_symbols_CXX=yes
11136 if test "$aix_use_runtimelinking" = yes; then
11137 # Warning - without using the other runtime loading flags (-brtl),
11138 # -berok will link without error, but may produce a broken library.
11139 allow_undefined_flag_CXX='-berok'
11140 # Determine the default libpath from the value encoded in an empty executable.
11141 cat >conftest.$ac_ext <<_ACEOF
11142/* confdefs.h. */
11143_ACEOF
11144cat confdefs.h >>conftest.$ac_ext
11145cat >>conftest.$ac_ext <<_ACEOF
11146/* end confdefs.h. */
11147
11148int
11149main ()
11150{
11151
11152 ;
11153 return 0;
11154}
11155_ACEOF
11156rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 11157if { (ac_try="$ac_link"
11158case "(($ac_try" in
11159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11160 *) ac_try_echo=$ac_try;;
11161esac
11162eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11163 (eval "$ac_link") 2>conftest.er1
d9898ee8 11164 ac_status=$?
11165 grep -v '^ *+' conftest.er1 >conftest.err
11166 rm -f conftest.er1
11167 cat conftest.err >&5
11168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 11169 (exit $ac_status); } && {
11170 test -z "$ac_cxx_werror_flag" ||
11171 test ! -s conftest.err
11172 } && test -s conftest$ac_exeext &&
11173 $as_test_x conftest$ac_exeext; then
d9898ee8 11174
ac40fd9e 11175lt_aix_libpath_sed='
11176 /Import File Strings/,/^$/ {
11177 /^0/ {
11178 s/^0 *\(.*\)$/\1/
11179 p
11180 }
11181 }'
11182aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
d9898ee8 11183# Check for a 64-bit object if we didn't find anything.
ac40fd9e 11184if test -z "$aix_libpath"; then
11185 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11186fi
d9898ee8 11187else
11188 echo "$as_me: failed program was:" >&5
11189sed 's/^/| /' conftest.$ac_ext >&5
11190
dd184caf 11191
d9898ee8 11192fi
dd184caf 11193
11194rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 11195 conftest$ac_exeext conftest.$ac_ext
11196if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11197
11198 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11199
11200 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"
11201 else
11202 if test "$host_cpu" = ia64; then
11203 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11204 allow_undefined_flag_CXX="-z nodefs"
11205 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"
11206 else
11207 # Determine the default libpath from the value encoded in an empty executable.
11208 cat >conftest.$ac_ext <<_ACEOF
11209/* confdefs.h. */
11210_ACEOF
11211cat confdefs.h >>conftest.$ac_ext
11212cat >>conftest.$ac_ext <<_ACEOF
11213/* end confdefs.h. */
11214
11215int
11216main ()
11217{
11218
11219 ;
11220 return 0;
11221}
11222_ACEOF
11223rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 11224if { (ac_try="$ac_link"
11225case "(($ac_try" in
11226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11227 *) ac_try_echo=$ac_try;;
11228esac
11229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11230 (eval "$ac_link") 2>conftest.er1
d9898ee8 11231 ac_status=$?
11232 grep -v '^ *+' conftest.er1 >conftest.err
11233 rm -f conftest.er1
11234 cat conftest.err >&5
11235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 11236 (exit $ac_status); } && {
11237 test -z "$ac_cxx_werror_flag" ||
11238 test ! -s conftest.err
11239 } && test -s conftest$ac_exeext &&
11240 $as_test_x conftest$ac_exeext; then
d9898ee8 11241
ac40fd9e 11242lt_aix_libpath_sed='
11243 /Import File Strings/,/^$/ {
11244 /^0/ {
11245 s/^0 *\(.*\)$/\1/
11246 p
11247 }
11248 }'
11249aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
d9898ee8 11250# Check for a 64-bit object if we didn't find anything.
ac40fd9e 11251if test -z "$aix_libpath"; then
11252 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11253fi
d9898ee8 11254else
11255 echo "$as_me: failed program was:" >&5
11256sed 's/^/| /' conftest.$ac_ext >&5
11257
dd184caf 11258
d9898ee8 11259fi
dd184caf 11260
11261rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 11262 conftest$ac_exeext conftest.$ac_ext
11263if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11264
11265 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11266 # Warning - without using the other run time loading flags,
11267 # -berok will link without error, but may produce a broken library.
11268 no_undefined_flag_CXX=' ${wl}-bernotok'
11269 allow_undefined_flag_CXX=' ${wl}-berok'
11270 # Exported symbols can be pulled into shared objects from archives
11271 whole_archive_flag_spec_CXX='$convenience'
11272 archive_cmds_need_lc_CXX=yes
11273 # This is similar to how AIX traditionally builds its shared libraries.
11274 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'
11275 fi
11276 fi
11277 ;;
11278
11279 beos*)
11280 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11281 allow_undefined_flag_CXX=unsupported
11282 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11283 # support --undefined. This deserves some investigation. FIXME
11284 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11285 else
11286 ld_shlibs_CXX=no
11287 fi
11288 ;;
11289
11290 chorus*)
11291 case $cc_basename in
11292 *)
11293 # FIXME: insert proper C++ library support
11294 ld_shlibs_CXX=no
11295 ;;
11296 esac
11297 ;;
11298
11299 cygwin* | mingw* | pw32*)
11300 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11301 # as there is no search path for DLLs.
11302 hardcode_libdir_flag_spec_CXX='-L$libdir'
11303 allow_undefined_flag_CXX=unsupported
11304 always_export_symbols_CXX=no
11305 enable_shared_with_static_runtimes_CXX=yes
11306
11307 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11308 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'
11309 # If the export-symbols file already is a .def file (1st line
11310 # is EXPORTS), use it as is; otherwise, prepend...
11311 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11312 cp $export_symbols $output_objdir/$soname.def;
11313 else
11314 echo EXPORTS > $output_objdir/$soname.def;
11315 cat $export_symbols >> $output_objdir/$soname.def;
11316 fi~
11317 $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'
11318 else
11319 ld_shlibs_CXX=no
11320 fi
11321 ;;
11322 darwin* | rhapsody*)
11323 case $host_os in
11324 rhapsody* | darwin1.[012])
11325 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11326 ;;
11327 *) # Darwin 1.3 on
11328 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11329 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11330 else
11331 case ${MACOSX_DEPLOYMENT_TARGET} in
11332 10.[012])
11333 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11334 ;;
11335 10.*)
11336 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11337 ;;
11338 esac
11339 fi
11340 ;;
11341 esac
11342 archive_cmds_need_lc_CXX=no
11343 hardcode_direct_CXX=no
11344 hardcode_automatic_CXX=yes
11345 hardcode_shlibpath_var_CXX=unsupported
11346 whole_archive_flag_spec_CXX=''
11347 link_all_deplibs_CXX=yes
11348
11349 if test "$GXX" = yes ; then
11350 lt_int_apple_cc_single_mod=no
11351 output_verbose_link_cmd='echo'
11352 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11353 lt_int_apple_cc_single_mod=yes
11354 fi
11355 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11356 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11357 else
11358 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'
11359 fi
11360 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11361 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11362 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11363 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}'
11364 else
11365 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}'
11366 fi
11367 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}'
11368 else
11369 case $cc_basename in
11370 xlc*)
11371 output_verbose_link_cmd='echo'
ac40fd9e 11372 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 11373 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11374 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
ac40fd9e 11375 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 11376 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}'
11377 ;;
11378 *)
11379 ld_shlibs_CXX=no
11380 ;;
11381 esac
11382 fi
11383 ;;
11384
11385 dgux*)
11386 case $cc_basename in
11387 ec++*)
11388 # FIXME: insert proper C++ library support
11389 ld_shlibs_CXX=no
11390 ;;
11391 ghcx*)
11392 # Green Hills C++ Compiler
11393 # FIXME: insert proper C++ library support
11394 ld_shlibs_CXX=no
11395 ;;
11396 *)
11397 # FIXME: insert proper C++ library support
11398 ld_shlibs_CXX=no
11399 ;;
11400 esac
11401 ;;
11402 freebsd[12]*)
11403 # C++ shared libraries reported to be fairly broken before switch to ELF
11404 ld_shlibs_CXX=no
11405 ;;
11406 freebsd-elf*)
11407 archive_cmds_need_lc_CXX=no
11408 ;;
ac40fd9e 11409 freebsd* | dragonfly*)
d9898ee8 11410 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11411 # conventions
11412 ld_shlibs_CXX=yes
11413 ;;
11414 gnu*)
11415 ;;
11416 hpux9*)
11417 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11418 hardcode_libdir_separator_CXX=:
11419 export_dynamic_flag_spec_CXX='${wl}-E'
11420 hardcode_direct_CXX=yes
11421 hardcode_minus_L_CXX=yes # Not in the search PATH,
11422 # but as the default
11423 # location of the library.
11424
11425 case $cc_basename in
11426 CC*)
11427 # FIXME: insert proper C++ library support
11428 ld_shlibs_CXX=no
11429 ;;
11430 aCC*)
11431 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'
11432 # Commands to make compiler produce verbose output that lists
11433 # what "hidden" libraries, object files and flags are used when
11434 # linking a shared library.
11435 #
11436 # There doesn't appear to be a way to prevent this compiler from
11437 # explicitly linking system object files so we need to strip them
11438 # from the output so that they don't get included in the library
11439 # dependencies.
11440 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'
11441 ;;
11442 *)
11443 if test "$GXX" = yes; then
11444 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'
11445 else
11446 # FIXME: insert proper C++ library support
11447 ld_shlibs_CXX=no
11448 fi
11449 ;;
11450 esac
11451 ;;
11452 hpux10*|hpux11*)
11453 if test $with_gnu_ld = no; then
11454 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11455 hardcode_libdir_separator_CXX=:
11456
11457 case $host_cpu in
ac40fd9e 11458 hppa*64*|ia64*) ;;
d9898ee8 11459 *)
11460 export_dynamic_flag_spec_CXX='${wl}-E'
11461 ;;
11462 esac
11463 fi
11464 case $host_cpu in
11465 hppa*64*|ia64*)
11466 hardcode_direct_CXX=no
11467 hardcode_shlibpath_var_CXX=no
11468 ;;
11469 *)
11470 hardcode_direct_CXX=yes
11471 hardcode_minus_L_CXX=yes # Not in the search PATH,
11472 # but as the default
11473 # location of the library.
11474 ;;
11475 esac
11476
11477 case $cc_basename in
11478 CC*)
11479 # FIXME: insert proper C++ library support
11480 ld_shlibs_CXX=no
11481 ;;
11482 aCC*)
11483 case $host_cpu in
11484 hppa*64*)
11485 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11486 ;;
11487 ia64*)
11488 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11489 ;;
11490 *)
11491 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11492 ;;
11493 esac
11494 # Commands to make compiler produce verbose output that lists
11495 # what "hidden" libraries, object files and flags are used when
11496 # linking a shared library.
11497 #
11498 # There doesn't appear to be a way to prevent this compiler from
11499 # explicitly linking system object files so we need to strip them
11500 # from the output so that they don't get included in the library
11501 # dependencies.
11502 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'
11503 ;;
11504 *)
11505 if test "$GXX" = yes; then
11506 if test $with_gnu_ld = no; then
11507 case $host_cpu in
11508 hppa*64*)
11509 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11510 ;;
11511 ia64*)
11512 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11513 ;;
11514 *)
11515 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'
11516 ;;
11517 esac
11518 fi
11519 else
11520 # FIXME: insert proper C++ library support
11521 ld_shlibs_CXX=no
11522 fi
11523 ;;
11524 esac
11525 ;;
ac40fd9e 11526 interix[3-9]*)
d9898ee8 11527 hardcode_direct_CXX=no
11528 hardcode_shlibpath_var_CXX=no
11529 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11530 export_dynamic_flag_spec_CXX='${wl}-E'
11531 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11532 # Instead, shared libraries are loaded at an image base (0x10000000 by
11533 # default) and relocated if they conflict, which is a slow very memory
11534 # consuming and fragmenting process. To avoid this, we pick a random,
11535 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11536 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11537 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'
11538 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'
11539 ;;
11540 irix5* | irix6*)
11541 case $cc_basename in
11542 CC*)
11543 # SGI C++
11544 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'
11545
11546 # Archives containing C++ object files must be created using
11547 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11548 # necessary to make sure instantiated templates are included
11549 # in the archive.
11550 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11551 ;;
11552 *)
11553 if test "$GXX" = yes; then
11554 if test "$with_gnu_ld" = no; then
11555 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'
11556 else
11557 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'
11558 fi
11559 fi
11560 link_all_deplibs_CXX=yes
11561 ;;
11562 esac
11563 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11564 hardcode_libdir_separator_CXX=:
11565 ;;
ac40fd9e 11566 linux* | k*bsd*-gnu)
d9898ee8 11567 case $cc_basename in
11568 KCC*)
11569 # Kuck and Associates, Inc. (KAI) C++ Compiler
11570
11571 # KCC will only create a shared library if the output file
11572 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11573 # to its proper name (with version) after linking.
11574 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'
11575 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'
11576 # Commands to make compiler produce verbose output that lists
11577 # what "hidden" libraries, object files and flags are used when
11578 # linking a shared library.
11579 #
11580 # There doesn't appear to be a way to prevent this compiler from
11581 # explicitly linking system object files so we need to strip them
11582 # from the output so that they don't get included in the library
11583 # dependencies.
11584 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'
11585
11586 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11587 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11588
11589 # Archives containing C++ object files must be created using
11590 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11591 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11592 ;;
11593 icpc*)
11594 # Intel C++
11595 with_gnu_ld=yes
11596 # version 8.0 and above of icpc choke on multiply defined symbols
11597 # if we add $predep_objects and $postdep_objects, however 7.1 and
11598 # earlier do not add the objects themselves.
11599 case `$CC -V 2>&1` in
11600 *"Version 7."*)
11601 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11602 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'
11603 ;;
11604 *) # Version 8.0 or newer
11605 tmp_idyn=
11606 case $host_cpu in
11607 ia64*) tmp_idyn=' -i_dynamic';;
11608 esac
11609 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11610 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'
11611 ;;
11612 esac
11613 archive_cmds_need_lc_CXX=no
11614 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11615 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11616 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11617 ;;
11618 pgCC*)
11619 # Portland Group C++ compiler
11620 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11621 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'
11622
11623 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11624 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11625 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'
11626 ;;
11627 cxx*)
11628 # Compaq C++
11629 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11630 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'
11631
11632 runpath_var=LD_RUN_PATH
11633 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11634 hardcode_libdir_separator_CXX=:
11635
11636 # Commands to make compiler produce verbose output that lists
11637 # what "hidden" libraries, object files and flags are used when
11638 # linking a shared library.
11639 #
11640 # There doesn't appear to be a way to prevent this compiler from
11641 # explicitly linking system object files so we need to strip them
11642 # from the output so that they don't get included in the library
11643 # dependencies.
11644 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'
11645 ;;
ac40fd9e 11646 *)
11647 case `$CC -V 2>&1 | sed 5q` in
11648 *Sun\ C*)
11649 # Sun C++ 5.9
11650 no_undefined_flag_CXX=' -zdefs'
11651 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11652 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'
11653 hardcode_libdir_flag_spec_CXX='-R$libdir'
11654 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'
11655
11656 # Not sure whether something based on
11657 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11658 # would be better.
11659 output_verbose_link_cmd='echo'
11660
11661 # Archives containing C++ object files must be created using
11662 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11663 # necessary to make sure instantiated templates are included
11664 # in the archive.
11665 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11666 ;;
11667 esac
11668 ;;
d9898ee8 11669 esac
11670 ;;
11671 lynxos*)
11672 # FIXME: insert proper C++ library support
11673 ld_shlibs_CXX=no
11674 ;;
11675 m88k*)
11676 # FIXME: insert proper C++ library support
11677 ld_shlibs_CXX=no
11678 ;;
11679 mvs*)
11680 case $cc_basename in
11681 cxx*)
11682 # FIXME: insert proper C++ library support
11683 ld_shlibs_CXX=no
11684 ;;
11685 *)
11686 # FIXME: insert proper C++ library support
11687 ld_shlibs_CXX=no
11688 ;;
11689 esac
11690 ;;
11691 netbsd*)
11692 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11693 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11694 wlarc=
11695 hardcode_libdir_flag_spec_CXX='-R$libdir'
11696 hardcode_direct_CXX=yes
11697 hardcode_shlibpath_var_CXX=no
11698 fi
11699 # Workaround some broken pre-1.5 toolchains
11700 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11701 ;;
11702 openbsd2*)
11703 # C++ shared libraries are fairly broken
11704 ld_shlibs_CXX=no
11705 ;;
11706 openbsd*)
ac40fd9e 11707 if test -f /usr/libexec/ld.so; then
11708 hardcode_direct_CXX=yes
11709 hardcode_shlibpath_var_CXX=no
11710 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11711 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11712 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11713 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11714 export_dynamic_flag_spec_CXX='${wl}-E'
11715 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11716 fi
11717 output_verbose_link_cmd='echo'
11718 else
11719 ld_shlibs_CXX=no
d9898ee8 11720 fi
d9898ee8 11721 ;;
11722 osf3*)
11723 case $cc_basename in
11724 KCC*)
11725 # Kuck and Associates, Inc. (KAI) C++ Compiler
11726
11727 # KCC will only create a shared library if the output file
11728 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11729 # to its proper name (with version) after linking.
11730 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'
11731
11732 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11733 hardcode_libdir_separator_CXX=:
11734
11735 # Archives containing C++ object files must be created using
11736 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11737 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11738
11739 ;;
11740 RCC*)
11741 # Rational C++ 2.4.1
11742 # FIXME: insert proper C++ library support
11743 ld_shlibs_CXX=no
11744 ;;
11745 cxx*)
11746 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11747 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'
11748
11749 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11750 hardcode_libdir_separator_CXX=:
11751
11752 # Commands to make compiler produce verbose output that lists
11753 # what "hidden" libraries, object files and flags are used when
11754 # linking a shared library.
11755 #
11756 # There doesn't appear to be a way to prevent this compiler from
11757 # explicitly linking system object files so we need to strip them
11758 # from the output so that they don't get included in the library
11759 # dependencies.
11760 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'
11761 ;;
11762 *)
11763 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11764 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11765 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'
11766
11767 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11768 hardcode_libdir_separator_CXX=:
11769
11770 # Commands to make compiler produce verbose output that lists
11771 # what "hidden" libraries, object files and flags are used when
11772 # linking a shared library.
11773 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11774
11775 else
11776 # FIXME: insert proper C++ library support
11777 ld_shlibs_CXX=no
11778 fi
11779 ;;
11780 esac
11781 ;;
11782 osf4* | osf5*)
11783 case $cc_basename in
11784 KCC*)
11785 # Kuck and Associates, Inc. (KAI) C++ Compiler
11786
11787 # KCC will only create a shared library if the output file
11788 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11789 # to its proper name (with version) after linking.
11790 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'
11791
11792 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11793 hardcode_libdir_separator_CXX=:
11794
11795 # Archives containing C++ object files must be created using
11796 # the KAI C++ compiler.
11797 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11798 ;;
11799 RCC*)
11800 # Rational C++ 2.4.1
11801 # FIXME: insert proper C++ library support
11802 ld_shlibs_CXX=no
11803 ;;
11804 cxx*)
11805 allow_undefined_flag_CXX=' -expect_unresolved \*'
11806 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'
11807 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11808 echo "-hidden">> $lib.exp~
11809 $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~
11810 $rm $lib.exp'
11811
11812 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11813 hardcode_libdir_separator_CXX=:
11814
11815 # Commands to make compiler produce verbose output that lists
11816 # what "hidden" libraries, object files and flags are used when
11817 # linking a shared library.
11818 #
11819 # There doesn't appear to be a way to prevent this compiler from
11820 # explicitly linking system object files so we need to strip them
11821 # from the output so that they don't get included in the library
11822 # dependencies.
11823 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'
11824 ;;
11825 *)
11826 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11827 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11828 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'
11829
11830 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11831 hardcode_libdir_separator_CXX=:
11832
11833 # Commands to make compiler produce verbose output that lists
11834 # what "hidden" libraries, object files and flags are used when
11835 # linking a shared library.
11836 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11837
11838 else
11839 # FIXME: insert proper C++ library support
11840 ld_shlibs_CXX=no
11841 fi
11842 ;;
11843 esac
11844 ;;
11845 psos*)
11846 # FIXME: insert proper C++ library support
11847 ld_shlibs_CXX=no
11848 ;;
11849 sunos4*)
11850 case $cc_basename in
11851 CC*)
11852 # Sun C++ 4.x
11853 # FIXME: insert proper C++ library support
11854 ld_shlibs_CXX=no
11855 ;;
11856 lcc*)
11857 # Lucid
11858 # FIXME: insert proper C++ library support
11859 ld_shlibs_CXX=no
11860 ;;
11861 *)
11862 # FIXME: insert proper C++ library support
11863 ld_shlibs_CXX=no
11864 ;;
11865 esac
11866 ;;
11867 solaris*)
11868 case $cc_basename in
11869 CC*)
11870 # Sun C++ 4.2, 5.x and Centerline C++
11871 archive_cmds_need_lc_CXX=yes
11872 no_undefined_flag_CXX=' -zdefs'
11873 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11874 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11875 $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'
11876
11877 hardcode_libdir_flag_spec_CXX='-R$libdir'
11878 hardcode_shlibpath_var_CXX=no
11879 case $host_os in
11880 solaris2.[0-5] | solaris2.[0-5].*) ;;
11881 *)
ac40fd9e 11882 # The compiler driver will combine and reorder linker options,
11883 # but understands `-z linker_flag'.
d9898ee8 11884 # Supported since Solaris 2.6 (maybe 2.5.1?)
ac40fd9e 11885 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
d9898ee8 11886 ;;
11887 esac
11888 link_all_deplibs_CXX=yes
11889
11890 output_verbose_link_cmd='echo'
11891
11892 # Archives containing C++ object files must be created using
11893 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11894 # necessary to make sure instantiated templates are included
11895 # in the archive.
11896 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11897 ;;
11898 gcx*)
11899 # Green Hills C++ Compiler
11900 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11901
11902 # The C++ compiler must be used to create the archive.
11903 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11904 ;;
11905 *)
11906 # GNU C++ compiler with Solaris linker
11907 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11908 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11909 if $CC --version | grep -v '^2\.7' > /dev/null; then
11910 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11911 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11912 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11913
11914 # Commands to make compiler produce verbose output that lists
11915 # what "hidden" libraries, object files and flags are used when
11916 # linking a shared library.
11917 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11918 else
11919 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11920 # platform.
11921 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11922 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11923 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11924
11925 # Commands to make compiler produce verbose output that lists
11926 # what "hidden" libraries, object files and flags are used when
11927 # linking a shared library.
11928 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11929 fi
11930
11931 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
ac40fd9e 11932 case $host_os in
11933 solaris2.[0-5] | solaris2.[0-5].*) ;;
11934 *)
11935 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11936 ;;
11937 esac
d9898ee8 11938 fi
11939 ;;
11940 esac
11941 ;;
11942 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11943 no_undefined_flag_CXX='${wl}-z,text'
11944 archive_cmds_need_lc_CXX=no
11945 hardcode_shlibpath_var_CXX=no
11946 runpath_var='LD_RUN_PATH'
11947
11948 case $cc_basename in
11949 CC*)
11950 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11951 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11952 ;;
11953 *)
11954 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11955 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11956 ;;
11957 esac
11958 ;;
11959 sysv5* | sco3.2v5* | sco5v6*)
11960 # Note: We can NOT use -z defs as we might desire, because we do not
11961 # link with -lc, and that would cause any symbols used from libc to
11962 # always be unresolved, which means just about no library would
11963 # ever link correctly. If we're not using GNU ld we use -z text
11964 # though, which does catch some bad symbols but isn't as heavy-handed
11965 # as -z defs.
11966 # For security reasons, it is highly recommended that you always
11967 # use absolute paths for naming shared libraries, and exclude the
11968 # DT_RUNPATH tag from executables and libraries. But doing so
11969 # requires that you compile everything twice, which is a pain.
11970 # So that behaviour is only enabled if SCOABSPATH is set to a
11971 # non-empty value in the environment. Most likely only useful for
11972 # creating official distributions of packages.
11973 # This is a hack until libtool officially supports absolute path
11974 # names for shared libraries.
11975 no_undefined_flag_CXX='${wl}-z,text'
11976 allow_undefined_flag_CXX='${wl}-z,nodefs'
11977 archive_cmds_need_lc_CXX=no
11978 hardcode_shlibpath_var_CXX=no
11979 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11980 hardcode_libdir_separator_CXX=':'
11981 link_all_deplibs_CXX=yes
11982 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11983 runpath_var='LD_RUN_PATH'
11984
11985 case $cc_basename in
11986 CC*)
11987 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11988 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11989 ;;
11990 *)
11991 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11992 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11993 ;;
11994 esac
11995 ;;
11996 tandem*)
11997 case $cc_basename in
11998 NCC*)
11999 # NonStop-UX NCC 3.20
12000 # FIXME: insert proper C++ library support
12001 ld_shlibs_CXX=no
12002 ;;
12003 *)
12004 # FIXME: insert proper C++ library support
12005 ld_shlibs_CXX=no
12006 ;;
12007 esac
12008 ;;
12009 vxworks*)
12010 # FIXME: insert proper C++ library support
12011 ld_shlibs_CXX=no
12012 ;;
12013 *)
12014 # FIXME: insert proper C++ library support
12015 ld_shlibs_CXX=no
12016 ;;
12017esac
dd184caf 12018{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12019echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
d9898ee8 12020test "$ld_shlibs_CXX" = no && can_build_shared=no
12021
12022GCC_CXX="$GXX"
12023LD_CXX="$LD"
12024
12025
12026cat > conftest.$ac_ext <<EOF
12027class Foo
12028{
12029public:
12030 Foo (void) { a = 0; }
12031private:
12032 int a;
12033};
12034EOF
12035
12036if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12037 (eval $ac_compile) 2>&5
12038 ac_status=$?
12039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12040 (exit $ac_status); }; then
12041 # Parse the compiler output and extract the necessary
12042 # objects, libraries and library flags.
12043
12044 # Sentinel used to keep track of whether or not we are before
12045 # the conftest object file.
12046 pre_test_object_deps_done=no
12047
12048 # The `*' in the case matches for architectures that use `case' in
12049 # $output_verbose_cmd can trigger glob expansion during the loop
12050 # eval without this substitution.
12051 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12052
12053 for p in `eval $output_verbose_link_cmd`; do
12054 case $p in
12055
12056 -L* | -R* | -l*)
12057 # Some compilers place space between "-{L,R}" and the path.
12058 # Remove the space.
12059 if test $p = "-L" \
12060 || test $p = "-R"; then
12061 prev=$p
12062 continue
12063 else
12064 prev=
12065 fi
12066
12067 if test "$pre_test_object_deps_done" = no; then
12068 case $p in
12069 -L* | -R*)
12070 # Internal compiler library paths should come after those
12071 # provided the user. The postdeps already come after the
12072 # user supplied libs so there is no need to process them.
12073 if test -z "$compiler_lib_search_path_CXX"; then
12074 compiler_lib_search_path_CXX="${prev}${p}"
12075 else
12076 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12077 fi
12078 ;;
12079 # The "-l" case would never come before the object being
12080 # linked, so don't bother handling this case.
12081 esac
12082 else
12083 if test -z "$postdeps_CXX"; then
12084 postdeps_CXX="${prev}${p}"
12085 else
12086 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12087 fi
12088 fi
12089 ;;
12090
12091 *.$objext)
12092 # This assumes that the test object file only shows up
12093 # once in the compiler output.
12094 if test "$p" = "conftest.$objext"; then
12095 pre_test_object_deps_done=yes
12096 continue
12097 fi
12098
12099 if test "$pre_test_object_deps_done" = no; then
12100 if test -z "$predep_objects_CXX"; then
12101 predep_objects_CXX="$p"
12102 else
12103 predep_objects_CXX="$predep_objects_CXX $p"
12104 fi
12105 else
12106 if test -z "$postdep_objects_CXX"; then
12107 postdep_objects_CXX="$p"
12108 else
12109 postdep_objects_CXX="$postdep_objects_CXX $p"
12110 fi
12111 fi
12112 ;;
12113
12114 *) ;; # Ignore the rest.
12115
12116 esac
12117 done
12118
12119 # Clean up.
12120 rm -f a.out a.exe
12121else
12122 echo "libtool.m4: error: problem compiling CXX test program"
12123fi
12124
12125$rm -f confest.$objext
12126
12127# PORTME: override above test on systems where it is broken
12128case $host_os in
ac40fd9e 12129interix[3-9]*)
d9898ee8 12130 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12131 # hack all around it, let's just trust "g++" to DTRT.
12132 predep_objects_CXX=
12133 postdep_objects_CXX=
12134 postdeps_CXX=
12135 ;;
12136
ac40fd9e 12137linux*)
12138 case `$CC -V 2>&1 | sed 5q` in
12139 *Sun\ C*)
12140 # Sun C++ 5.9
12141 #
12142 # The more standards-conforming stlport4 library is
12143 # incompatible with the Cstd library. Avoid specifying
12144 # it if it's in CXXFLAGS. Ignore libCrun as
12145 # -library=stlport4 depends on it.
12146 case " $CXX $CXXFLAGS " in
12147 *" -library=stlport4 "*)
12148 solaris_use_stlport4=yes
12149 ;;
12150 esac
12151 if test "$solaris_use_stlport4" != yes; then
12152 postdeps_CXX='-library=Cstd -library=Crun'
12153 fi
12154 ;;
12155 esac
12156 ;;
12157
d9898ee8 12158solaris*)
12159 case $cc_basename in
12160 CC*)
ac40fd9e 12161 # The more standards-conforming stlport4 library is
12162 # incompatible with the Cstd library. Avoid specifying
12163 # it if it's in CXXFLAGS. Ignore libCrun as
12164 # -library=stlport4 depends on it.
12165 case " $CXX $CXXFLAGS " in
12166 *" -library=stlport4 "*)
12167 solaris_use_stlport4=yes
12168 ;;
12169 esac
12170
d9898ee8 12171 # Adding this requires a known-good setup of shared libraries for
12172 # Sun compiler versions before 5.6, else PIC objects from an old
12173 # archive will be linked into the output, leading to subtle bugs.
ac40fd9e 12174 if test "$solaris_use_stlport4" != yes; then
12175 postdeps_CXX='-library=Cstd -library=Crun'
12176 fi
d9898ee8 12177 ;;
12178 esac
12179 ;;
12180esac
12181
12182
12183case " $postdeps_CXX " in
12184*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12185esac
12186
12187lt_prog_compiler_wl_CXX=
12188lt_prog_compiler_pic_CXX=
12189lt_prog_compiler_static_CXX=
12190
dd184caf 12191{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12192echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
d9898ee8 12193
12194 # C++ specific cases for pic, static, wl, etc.
12195 if test "$GXX" = yes; then
12196 lt_prog_compiler_wl_CXX='-Wl,'
12197 lt_prog_compiler_static_CXX='-static'
12198
12199 case $host_os in
12200 aix*)
12201 # All AIX code is PIC.
12202 if test "$host_cpu" = ia64; then
12203 # AIX 5 now supports IA64 processor
12204 lt_prog_compiler_static_CXX='-Bstatic'
12205 fi
12206 ;;
12207 amigaos*)
12208 # FIXME: we need at least 68020 code to build shared libraries, but
12209 # adding the `-m68020' flag to GCC prevents building anything better,
12210 # like `-m68040'.
12211 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12212 ;;
ac40fd9e 12213 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
d9898ee8 12214 # PIC is the default for these OSes.
12215 ;;
ac40fd9e 12216 mingw* | cygwin* | os2* | pw32*)
d9898ee8 12217 # This hack is so that the source file can tell whether it is being
12218 # built for inclusion in a dll (and should export symbols for example).
ac40fd9e 12219 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12220 # (--disable-auto-import) libraries
d9898ee8 12221 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12222 ;;
12223 darwin* | rhapsody*)
12224 # PIC is the default on this platform
12225 # Common symbols not allowed in MH_DYLIB files
12226 lt_prog_compiler_pic_CXX='-fno-common'
12227 ;;
12228 *djgpp*)
12229 # DJGPP does not support shared libraries at all
12230 lt_prog_compiler_pic_CXX=
12231 ;;
ac40fd9e 12232 interix[3-9]*)
d9898ee8 12233 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12234 # Instead, we relocate shared libraries at runtime.
12235 ;;
12236 sysv4*MP*)
12237 if test -d /usr/nec; then
12238 lt_prog_compiler_pic_CXX=-Kconform_pic
12239 fi
12240 ;;
12241 hpux*)
12242 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12243 # not for PA HP-UX.
12244 case $host_cpu in
12245 hppa*64*|ia64*)
12246 ;;
12247 *)
12248 lt_prog_compiler_pic_CXX='-fPIC'
12249 ;;
12250 esac
12251 ;;
12252 *)
12253 lt_prog_compiler_pic_CXX='-fPIC'
12254 ;;
12255 esac
12256 else
12257 case $host_os in
12258 aix4* | aix5*)
12259 # All AIX code is PIC.
12260 if test "$host_cpu" = ia64; then
12261 # AIX 5 now supports IA64 processor
12262 lt_prog_compiler_static_CXX='-Bstatic'
12263 else
12264 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12265 fi
12266 ;;
12267 chorus*)
12268 case $cc_basename in
12269 cxch68*)
12270 # Green Hills C++ Compiler
12271 # _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"
12272 ;;
12273 esac
12274 ;;
12275 darwin*)
12276 # PIC is the default on this platform
12277 # Common symbols not allowed in MH_DYLIB files
12278 case $cc_basename in
12279 xlc*)
12280 lt_prog_compiler_pic_CXX='-qnocommon'
12281 lt_prog_compiler_wl_CXX='-Wl,'
12282 ;;
12283 esac
12284 ;;
12285 dgux*)
12286 case $cc_basename in
12287 ec++*)
12288 lt_prog_compiler_pic_CXX='-KPIC'
12289 ;;
12290 ghcx*)
12291 # Green Hills C++ Compiler
12292 lt_prog_compiler_pic_CXX='-pic'
12293 ;;
12294 *)
12295 ;;
12296 esac
12297 ;;
ac40fd9e 12298 freebsd* | dragonfly*)
d9898ee8 12299 # FreeBSD uses GNU C++
12300 ;;
12301 hpux9* | hpux10* | hpux11*)
12302 case $cc_basename in
12303 CC*)
12304 lt_prog_compiler_wl_CXX='-Wl,'
12305 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12306 if test "$host_cpu" != ia64; then
12307 lt_prog_compiler_pic_CXX='+Z'
12308 fi
12309 ;;
12310 aCC*)
12311 lt_prog_compiler_wl_CXX='-Wl,'
12312 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12313 case $host_cpu in
12314 hppa*64*|ia64*)
12315 # +Z the default
12316 ;;
12317 *)
12318 lt_prog_compiler_pic_CXX='+Z'
12319 ;;
12320 esac
12321 ;;
12322 *)
12323 ;;
12324 esac
12325 ;;
12326 interix*)
12327 # This is c89, which is MS Visual C++ (no shared libs)
12328 # Anyone wants to do a port?
12329 ;;
12330 irix5* | irix6* | nonstopux*)
12331 case $cc_basename in
12332 CC*)
12333 lt_prog_compiler_wl_CXX='-Wl,'
12334 lt_prog_compiler_static_CXX='-non_shared'
12335 # CC pic flag -KPIC is the default.
12336 ;;
12337 *)
12338 ;;
12339 esac
12340 ;;
ac40fd9e 12341 linux* | k*bsd*-gnu)
d9898ee8 12342 case $cc_basename in
12343 KCC*)
12344 # KAI C++ Compiler
12345 lt_prog_compiler_wl_CXX='--backend -Wl,'
12346 lt_prog_compiler_pic_CXX='-fPIC'
12347 ;;
12348 icpc* | ecpc*)
12349 # Intel C++
12350 lt_prog_compiler_wl_CXX='-Wl,'
12351 lt_prog_compiler_pic_CXX='-KPIC'
12352 lt_prog_compiler_static_CXX='-static'
12353 ;;
12354 pgCC*)
12355 # Portland Group C++ compiler.
12356 lt_prog_compiler_wl_CXX='-Wl,'
12357 lt_prog_compiler_pic_CXX='-fpic'
12358 lt_prog_compiler_static_CXX='-Bstatic'
12359 ;;
12360 cxx*)
12361 # Compaq C++
12362 # Make sure the PIC flag is empty. It appears that all Alpha
12363 # Linux and Compaq Tru64 Unix objects are PIC.
12364 lt_prog_compiler_pic_CXX=
12365 lt_prog_compiler_static_CXX='-non_shared'
12366 ;;
12367 *)
ac40fd9e 12368 case `$CC -V 2>&1 | sed 5q` in
12369 *Sun\ C*)
12370 # Sun C++ 5.9
12371 lt_prog_compiler_pic_CXX='-KPIC'
12372 lt_prog_compiler_static_CXX='-Bstatic'
12373 lt_prog_compiler_wl_CXX='-Qoption ld '
12374 ;;
12375 esac
d9898ee8 12376 ;;
12377 esac
12378 ;;
12379 lynxos*)
12380 ;;
12381 m88k*)
12382 ;;
12383 mvs*)
12384 case $cc_basename in
12385 cxx*)
12386 lt_prog_compiler_pic_CXX='-W c,exportall'
12387 ;;
12388 *)
12389 ;;
12390 esac
12391 ;;
12392 netbsd*)
12393 ;;
12394 osf3* | osf4* | osf5*)
12395 case $cc_basename in
12396 KCC*)
12397 lt_prog_compiler_wl_CXX='--backend -Wl,'
12398 ;;
12399 RCC*)
12400 # Rational C++ 2.4.1
12401 lt_prog_compiler_pic_CXX='-pic'
12402 ;;
12403 cxx*)
12404 # Digital/Compaq C++
12405 lt_prog_compiler_wl_CXX='-Wl,'
12406 # Make sure the PIC flag is empty. It appears that all Alpha
12407 # Linux and Compaq Tru64 Unix objects are PIC.
12408 lt_prog_compiler_pic_CXX=
12409 lt_prog_compiler_static_CXX='-non_shared'
12410 ;;
12411 *)
12412 ;;
12413 esac
12414 ;;
12415 psos*)
12416 ;;
12417 solaris*)
12418 case $cc_basename in
12419 CC*)
12420 # Sun C++ 4.2, 5.x and Centerline C++
12421 lt_prog_compiler_pic_CXX='-KPIC'
12422 lt_prog_compiler_static_CXX='-Bstatic'
12423 lt_prog_compiler_wl_CXX='-Qoption ld '
12424 ;;
12425 gcx*)
12426 # Green Hills C++ Compiler
12427 lt_prog_compiler_pic_CXX='-PIC'
12428 ;;
12429 *)
12430 ;;
12431 esac
12432 ;;
12433 sunos4*)
12434 case $cc_basename in
12435 CC*)
12436 # Sun C++ 4.x
12437 lt_prog_compiler_pic_CXX='-pic'
12438 lt_prog_compiler_static_CXX='-Bstatic'
12439 ;;
12440 lcc*)
12441 # Lucid
12442 lt_prog_compiler_pic_CXX='-pic'
12443 ;;
12444 *)
12445 ;;
12446 esac
12447 ;;
12448 tandem*)
12449 case $cc_basename in
12450 NCC*)
12451 # NonStop-UX NCC 3.20
12452 lt_prog_compiler_pic_CXX='-KPIC'
12453 ;;
12454 *)
12455 ;;
12456 esac
12457 ;;
12458 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12459 case $cc_basename in
12460 CC*)
12461 lt_prog_compiler_wl_CXX='-Wl,'
12462 lt_prog_compiler_pic_CXX='-KPIC'
12463 lt_prog_compiler_static_CXX='-Bstatic'
12464 ;;
12465 esac
12466 ;;
12467 vxworks*)
12468 ;;
12469 *)
12470 lt_prog_compiler_can_build_shared_CXX=no
12471 ;;
12472 esac
12473 fi
12474
dd184caf 12475{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12476echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
d9898ee8 12477
12478#
12479# Check to make sure the PIC flag actually works.
12480#
12481if test -n "$lt_prog_compiler_pic_CXX"; then
12482
dd184caf 12483{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12484echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
d9898ee8 12485if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12486 echo $ECHO_N "(cached) $ECHO_C" >&6
12487else
12488 lt_prog_compiler_pic_works_CXX=no
12489 ac_outfile=conftest.$ac_objext
ac40fd9e 12490 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 12491 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12492 # Insert the option either (1) after the last *FLAGS variable, or
12493 # (2) before a word containing "conftest.", or (3) at the end.
12494 # Note that $ac_compile itself does not contain backslashes and begins
12495 # with a dollar sign (not a hyphen), so the echo should work correctly.
12496 # The option is referenced via a variable to avoid confusing sed.
12497 lt_compile=`echo "$ac_compile" | $SED \
12498 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12499 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12500 -e 's:$: $lt_compiler_flag:'`
ac40fd9e 12501 (eval echo "\"\$as_me:12501: $lt_compile\"" >&5)
d9898ee8 12502 (eval "$lt_compile" 2>conftest.err)
12503 ac_status=$?
12504 cat conftest.err >&5
ac40fd9e 12505 echo "$as_me:12505: \$? = $ac_status" >&5
d9898ee8 12506 if (exit $ac_status) && test -s "$ac_outfile"; then
12507 # The compiler can only warn and ignore the option if not recognized
12508 # So say no if there are warnings other than the usual output.
12509 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12510 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12511 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12512 lt_prog_compiler_pic_works_CXX=yes
12513 fi
12514 fi
12515 $rm conftest*
12516
12517fi
dd184caf 12518{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12519echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
d9898ee8 12520
12521if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12522 case $lt_prog_compiler_pic_CXX in
12523 "" | " "*) ;;
12524 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12525 esac
12526else
12527 lt_prog_compiler_pic_CXX=
12528 lt_prog_compiler_can_build_shared_CXX=no
12529fi
12530
12531fi
12532case $host_os in
12533 # For platforms which do not support PIC, -DPIC is meaningless:
12534 *djgpp*)
12535 lt_prog_compiler_pic_CXX=
12536 ;;
12537 *)
12538 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12539 ;;
12540esac
12541
12542#
12543# Check to make sure the static flag actually works.
12544#
12545wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
dd184caf 12546{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12547echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
d9898ee8 12548if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12549 echo $ECHO_N "(cached) $ECHO_C" >&6
12550else
12551 lt_prog_compiler_static_works_CXX=no
12552 save_LDFLAGS="$LDFLAGS"
12553 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
ac40fd9e 12554 echo "$lt_simple_link_test_code" > conftest.$ac_ext
d9898ee8 12555 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12556 # The linker can only warn and ignore the option if not recognized
12557 # So say no if there are warnings
12558 if test -s conftest.err; then
12559 # Append any errors to the config.log.
12560 cat conftest.err 1>&5
12561 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12562 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12563 if diff conftest.exp conftest.er2 >/dev/null; then
12564 lt_prog_compiler_static_works_CXX=yes
12565 fi
12566 else
12567 lt_prog_compiler_static_works_CXX=yes
12568 fi
12569 fi
12570 $rm conftest*
12571 LDFLAGS="$save_LDFLAGS"
12572
12573fi
dd184caf 12574{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12575echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
d9898ee8 12576
12577if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12578 :
12579else
12580 lt_prog_compiler_static_CXX=
12581fi
12582
12583
dd184caf 12584{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12585echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
d9898ee8 12586if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12587 echo $ECHO_N "(cached) $ECHO_C" >&6
12588else
12589 lt_cv_prog_compiler_c_o_CXX=no
12590 $rm -r conftest 2>/dev/null
12591 mkdir conftest
12592 cd conftest
12593 mkdir out
ac40fd9e 12594 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 12595
12596 lt_compiler_flag="-o out/conftest2.$ac_objext"
12597 # Insert the option either (1) after the last *FLAGS variable, or
12598 # (2) before a word containing "conftest.", or (3) at the end.
12599 # Note that $ac_compile itself does not contain backslashes and begins
12600 # with a dollar sign (not a hyphen), so the echo should work correctly.
12601 lt_compile=`echo "$ac_compile" | $SED \
12602 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12603 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12604 -e 's:$: $lt_compiler_flag:'`
ac40fd9e 12605 (eval echo "\"\$as_me:12605: $lt_compile\"" >&5)
d9898ee8 12606 (eval "$lt_compile" 2>out/conftest.err)
12607 ac_status=$?
12608 cat out/conftest.err >&5
ac40fd9e 12609 echo "$as_me:12609: \$? = $ac_status" >&5
d9898ee8 12610 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12611 then
12612 # The compiler can only warn and ignore the option if not recognized
12613 # So say no if there are warnings
12614 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12615 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12616 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12617 lt_cv_prog_compiler_c_o_CXX=yes
12618 fi
12619 fi
12620 chmod u+w . 2>&5
12621 $rm conftest*
12622 # SGI C++ compiler will create directory out/ii_files/ for
12623 # template instantiation
12624 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12625 $rm out/* && rmdir out
12626 cd ..
12627 rmdir conftest
12628 $rm conftest*
12629
12630fi
dd184caf 12631{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12632echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
d9898ee8 12633
12634
12635hard_links="nottested"
12636if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12637 # do not overwrite the value of need_locks provided by the user
dd184caf 12638 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12639echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
d9898ee8 12640 hard_links=yes
12641 $rm conftest*
12642 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12643 touch conftest.a
12644 ln conftest.a conftest.b 2>&5 || hard_links=no
12645 ln conftest.a conftest.b 2>/dev/null && hard_links=no
dd184caf 12646 { echo "$as_me:$LINENO: result: $hard_links" >&5
12647echo "${ECHO_T}$hard_links" >&6; }
d9898ee8 12648 if test "$hard_links" = no; then
12649 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12650echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12651 need_locks=warn
12652 fi
12653else
12654 need_locks=no
12655fi
12656
dd184caf 12657{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12658echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
d9898ee8 12659
12660 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12661 case $host_os in
12662 aix4* | aix5*)
12663 # If we're using GNU nm, then we don't want the "-C" option.
12664 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12665 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12666 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'
12667 else
12668 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'
12669 fi
12670 ;;
12671 pw32*)
12672 export_symbols_cmds_CXX="$ltdll_cmds"
12673 ;;
12674 cygwin* | mingw*)
ac40fd9e 12675 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 12676 ;;
12677 *)
12678 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12679 ;;
12680 esac
12681
dd184caf 12682{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12683echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
d9898ee8 12684test "$ld_shlibs_CXX" = no && can_build_shared=no
12685
12686#
12687# Do we need to explicitly link libc?
12688#
12689case "x$archive_cmds_need_lc_CXX" in
12690x|xyes)
12691 # Assume -lc should be added
12692 archive_cmds_need_lc_CXX=yes
12693
12694 if test "$enable_shared" = yes && test "$GCC" = yes; then
12695 case $archive_cmds_CXX in
12696 *'~'*)
12697 # FIXME: we may have to deal with multi-command sequences.
12698 ;;
12699 '$CC '*)
12700 # Test whether the compiler implicitly links with -lc since on some
12701 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12702 # to ld, don't add -lc before -lgcc.
dd184caf 12703 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12704echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
d9898ee8 12705 $rm conftest*
ac40fd9e 12706 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 12707
12708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12709 (eval $ac_compile) 2>&5
12710 ac_status=$?
12711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12712 (exit $ac_status); } 2>conftest.err; then
12713 soname=conftest
12714 lib=conftest
12715 libobjs=conftest.$ac_objext
12716 deplibs=
12717 wl=$lt_prog_compiler_wl_CXX
12718 pic_flag=$lt_prog_compiler_pic_CXX
12719 compiler_flags=-v
12720 linker_flags=-v
12721 verstring=
12722 output_objdir=.
12723 libname=conftest
12724 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12725 allow_undefined_flag_CXX=
12726 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12727 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12728 ac_status=$?
12729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12730 (exit $ac_status); }
12731 then
12732 archive_cmds_need_lc_CXX=no
12733 else
12734 archive_cmds_need_lc_CXX=yes
12735 fi
12736 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12737 else
12738 cat conftest.err 1>&5
12739 fi
12740 $rm conftest*
dd184caf 12741 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12742echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
d9898ee8 12743 ;;
12744 esac
12745 fi
12746 ;;
12747esac
12748
dd184caf 12749{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12750echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
d9898ee8 12751library_names_spec=
12752libname_spec='lib$name'
12753soname_spec=
12754shrext_cmds=".so"
12755postinstall_cmds=
12756postuninstall_cmds=
12757finish_cmds=
12758finish_eval=
12759shlibpath_var=
12760shlibpath_overrides_runpath=unknown
12761version_type=none
12762dynamic_linker="$host_os ld.so"
12763sys_lib_dlsearch_path_spec="/lib /usr/lib"
ac40fd9e 12764
d9898ee8 12765need_lib_prefix=unknown
12766hardcode_into_libs=no
12767
12768# when you set need_version to no, make sure it does not cause -set_version
12769# flags to be left without arguments
12770need_version=unknown
12771
12772case $host_os in
12773aix3*)
12774 version_type=linux
12775 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12776 shlibpath_var=LIBPATH
12777
12778 # AIX 3 has no versioning support, so we append a major version to the name.
12779 soname_spec='${libname}${release}${shared_ext}$major'
12780 ;;
12781
12782aix4* | aix5*)
12783 version_type=linux
12784 need_lib_prefix=no
12785 need_version=no
12786 hardcode_into_libs=yes
12787 if test "$host_cpu" = ia64; then
12788 # AIX 5 supports IA64
12789 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12790 shlibpath_var=LD_LIBRARY_PATH
12791 else
12792 # With GCC up to 2.95.x, collect2 would create an import file
12793 # for dependence libraries. The import file would start with
12794 # the line `#! .'. This would cause the generated library to
12795 # depend on `.', always an invalid library. This was fixed in
12796 # development snapshots of GCC prior to 3.0.
12797 case $host_os in
12798 aix4 | aix4.[01] | aix4.[01].*)
12799 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12800 echo ' yes '
12801 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12802 :
12803 else
12804 can_build_shared=no
12805 fi
12806 ;;
12807 esac
12808 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12809 # soname into executable. Probably we can add versioning support to
12810 # collect2, so additional links can be useful in future.
12811 if test "$aix_use_runtimelinking" = yes; then
12812 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12813 # instead of lib<name>.a to let people know that these are not
12814 # typical AIX shared libraries.
12815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12816 else
12817 # We preserve .a as extension for shared libraries through AIX4.2
12818 # and later when we are not doing run time linking.
12819 library_names_spec='${libname}${release}.a $libname.a'
12820 soname_spec='${libname}${release}${shared_ext}$major'
12821 fi
12822 shlibpath_var=LIBPATH
12823 fi
12824 ;;
12825
12826amigaos*)
12827 library_names_spec='$libname.ixlibrary $libname.a'
12828 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12829 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'
12830 ;;
12831
12832beos*)
12833 library_names_spec='${libname}${shared_ext}'
12834 dynamic_linker="$host_os ld.so"
12835 shlibpath_var=LIBRARY_PATH
12836 ;;
12837
12838bsdi[45]*)
12839 version_type=linux
12840 need_version=no
12841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12842 soname_spec='${libname}${release}${shared_ext}$major'
12843 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12844 shlibpath_var=LD_LIBRARY_PATH
12845 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12846 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12847 # the default ld.so.conf also contains /usr/contrib/lib and
12848 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12849 # libtool to hard-code these into programs
12850 ;;
12851
12852cygwin* | mingw* | pw32*)
12853 version_type=windows
12854 shrext_cmds=".dll"
12855 need_version=no
12856 need_lib_prefix=no
12857
12858 case $GCC,$host_os in
12859 yes,cygwin* | yes,mingw* | yes,pw32*)
12860 library_names_spec='$libname.dll.a'
12861 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12862 postinstall_cmds='base_file=`basename \${file}`~
12863 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12864 dldir=$destdir/`dirname \$dlpath`~
12865 test -d \$dldir || mkdir -p \$dldir~
12866 $install_prog $dir/$dlname \$dldir/$dlname~
12867 chmod a+x \$dldir/$dlname'
12868 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12869 dlpath=$dir/\$dldll~
12870 $rm \$dlpath'
12871 shlibpath_overrides_runpath=yes
12872
12873 case $host_os in
12874 cygwin*)
12875 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12876 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12877 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12878 ;;
12879 mingw*)
12880 # MinGW DLLs use traditional 'lib' prefix
12881 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12882 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12883 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12884 # It is most probably a Windows format PATH printed by
12885 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12886 # path with ; separators, and with drive letters. We can handle the
12887 # drive letters (cygwin fileutils understands them), so leave them,
12888 # especially as we might pass files found there to a mingw objdump,
12889 # which wouldn't understand a cygwinified path. Ahh.
12890 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12891 else
12892 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12893 fi
12894 ;;
12895 pw32*)
12896 # pw32 DLLs use 'pw' prefix rather than 'lib'
12897 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12898 ;;
12899 esac
12900 ;;
12901
12902 *)
12903 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12904 ;;
12905 esac
12906 dynamic_linker='Win32 ld.exe'
12907 # FIXME: first we should search . and the directory the executable is in
12908 shlibpath_var=PATH
12909 ;;
12910
12911darwin* | rhapsody*)
12912 dynamic_linker="$host_os dyld"
12913 version_type=darwin
12914 need_lib_prefix=no
12915 need_version=no
12916 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12917 soname_spec='${libname}${release}${major}$shared_ext'
12918 shlibpath_overrides_runpath=yes
12919 shlibpath_var=DYLD_LIBRARY_PATH
12920 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
ac40fd9e 12921
d9898ee8 12922 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12923 ;;
12924
12925dgux*)
12926 version_type=linux
12927 need_lib_prefix=no
12928 need_version=no
12929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12930 soname_spec='${libname}${release}${shared_ext}$major'
12931 shlibpath_var=LD_LIBRARY_PATH
12932 ;;
12933
12934freebsd1*)
12935 dynamic_linker=no
12936 ;;
12937
d9898ee8 12938freebsd* | dragonfly*)
12939 # DragonFly does not have aout. When/if they implement a new
12940 # versioning mechanism, adjust this.
12941 if test -x /usr/bin/objformat; then
12942 objformat=`/usr/bin/objformat`
12943 else
12944 case $host_os in
12945 freebsd[123]*) objformat=aout ;;
12946 *) objformat=elf ;;
12947 esac
12948 fi
12949 version_type=freebsd-$objformat
12950 case $version_type in
12951 freebsd-elf*)
12952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12953 need_version=no
12954 need_lib_prefix=no
12955 ;;
12956 freebsd-*)
12957 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12958 need_version=yes
12959 ;;
12960 esac
12961 shlibpath_var=LD_LIBRARY_PATH
12962 case $host_os in
12963 freebsd2*)
12964 shlibpath_overrides_runpath=yes
12965 ;;
12966 freebsd3.[01]* | freebsdelf3.[01]*)
12967 shlibpath_overrides_runpath=yes
12968 hardcode_into_libs=yes
12969 ;;
12970 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12971 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12972 shlibpath_overrides_runpath=no
12973 hardcode_into_libs=yes
12974 ;;
ac40fd9e 12975 *) # from 4.6 on, and DragonFly
d9898ee8 12976 shlibpath_overrides_runpath=yes
12977 hardcode_into_libs=yes
12978 ;;
12979 esac
12980 ;;
12981
12982gnu*)
12983 version_type=linux
12984 need_lib_prefix=no
12985 need_version=no
12986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12987 soname_spec='${libname}${release}${shared_ext}$major'
12988 shlibpath_var=LD_LIBRARY_PATH
12989 hardcode_into_libs=yes
12990 ;;
12991
12992hpux9* | hpux10* | hpux11*)
12993 # Give a soname corresponding to the major version so that dld.sl refuses to
12994 # link against other versions.
12995 version_type=sunos
12996 need_lib_prefix=no
12997 need_version=no
12998 case $host_cpu in
12999 ia64*)
13000 shrext_cmds='.so'
13001 hardcode_into_libs=yes
13002 dynamic_linker="$host_os dld.so"
13003 shlibpath_var=LD_LIBRARY_PATH
13004 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13006 soname_spec='${libname}${release}${shared_ext}$major'
13007 if test "X$HPUX_IA64_MODE" = X32; then
13008 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13009 else
13010 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13011 fi
13012 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13013 ;;
13014 hppa*64*)
13015 shrext_cmds='.sl'
13016 hardcode_into_libs=yes
13017 dynamic_linker="$host_os dld.sl"
13018 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13019 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13021 soname_spec='${libname}${release}${shared_ext}$major'
13022 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13023 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13024 ;;
13025 *)
13026 shrext_cmds='.sl'
13027 dynamic_linker="$host_os dld.sl"
13028 shlibpath_var=SHLIB_PATH
13029 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13031 soname_spec='${libname}${release}${shared_ext}$major'
13032 ;;
13033 esac
13034 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13035 postinstall_cmds='chmod 555 $lib'
13036 ;;
13037
ac40fd9e 13038interix[3-9]*)
d9898ee8 13039 version_type=linux
13040 need_lib_prefix=no
13041 need_version=no
13042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13043 soname_spec='${libname}${release}${shared_ext}$major'
13044 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13045 shlibpath_var=LD_LIBRARY_PATH
13046 shlibpath_overrides_runpath=no
13047 hardcode_into_libs=yes
13048 ;;
13049
13050irix5* | irix6* | nonstopux*)
13051 case $host_os in
13052 nonstopux*) version_type=nonstopux ;;
13053 *)
13054 if test "$lt_cv_prog_gnu_ld" = yes; then
13055 version_type=linux
13056 else
13057 version_type=irix
13058 fi ;;
13059 esac
13060 need_lib_prefix=no
13061 need_version=no
13062 soname_spec='${libname}${release}${shared_ext}$major'
13063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13064 case $host_os in
13065 irix5* | nonstopux*)
13066 libsuff= shlibsuff=
13067 ;;
13068 *)
13069 case $LD in # libtool.m4 will add one of these switches to LD
13070 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13071 libsuff= shlibsuff= libmagic=32-bit;;
13072 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13073 libsuff=32 shlibsuff=N32 libmagic=N32;;
13074 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13075 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13076 *) libsuff= shlibsuff= libmagic=never-match;;
13077 esac
13078 ;;
13079 esac
13080 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13081 shlibpath_overrides_runpath=no
13082 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13083 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13084 hardcode_into_libs=yes
13085 ;;
13086
13087# No shared lib support for Linux oldld, aout, or coff.
13088linux*oldld* | linux*aout* | linux*coff*)
13089 dynamic_linker=no
13090 ;;
13091
13092# This must be Linux ELF.
ac40fd9e 13093linux* | k*bsd*-gnu)
d9898ee8 13094 version_type=linux
13095 need_lib_prefix=no
13096 need_version=no
13097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13098 soname_spec='${libname}${release}${shared_ext}$major'
13099 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13100 shlibpath_var=LD_LIBRARY_PATH
13101 shlibpath_overrides_runpath=no
13102 # This implies no fast_install, which is unacceptable.
13103 # Some rework will be needed to allow for fast_install
13104 # before this can be enabled.
13105 hardcode_into_libs=yes
ac40fd9e 13106 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13107 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
d9898ee8 13108
13109 # Append ld.so.conf contents to the search path
13110 if test -f /etc/ld.so.conf; then
ac40fd9e 13111 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' ' '`
13112 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
d9898ee8 13113 fi
13114
13115 # We used to test for /lib/ld.so.1 and disable shared libraries on
13116 # powerpc, because MkLinux only supported shared libraries with the
13117 # GNU dynamic linker. Since this was broken with cross compilers,
13118 # most powerpc-linux boxes support dynamic linking these days and
13119 # people can always --disable-shared, the test was removed, and we
13120 # assume the GNU/Linux dynamic linker is in use.
13121 dynamic_linker='GNU/Linux ld.so'
13122 ;;
13123
d9898ee8 13124netbsd*)
13125 version_type=sunos
13126 need_lib_prefix=no
13127 need_version=no
13128 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13130 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13131 dynamic_linker='NetBSD (a.out) ld.so'
13132 else
13133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13134 soname_spec='${libname}${release}${shared_ext}$major'
13135 dynamic_linker='NetBSD ld.elf_so'
13136 fi
13137 shlibpath_var=LD_LIBRARY_PATH
13138 shlibpath_overrides_runpath=yes
13139 hardcode_into_libs=yes
13140 ;;
13141
13142newsos6)
13143 version_type=linux
13144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13145 shlibpath_var=LD_LIBRARY_PATH
13146 shlibpath_overrides_runpath=yes
13147 ;;
13148
13149nto-qnx*)
13150 version_type=linux
13151 need_lib_prefix=no
13152 need_version=no
13153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13154 soname_spec='${libname}${release}${shared_ext}$major'
13155 shlibpath_var=LD_LIBRARY_PATH
13156 shlibpath_overrides_runpath=yes
13157 ;;
13158
13159openbsd*)
13160 version_type=sunos
13161 sys_lib_dlsearch_path_spec="/usr/lib"
13162 need_lib_prefix=no
13163 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13164 case $host_os in
13165 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13166 *) need_version=no ;;
13167 esac
13168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13169 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13170 shlibpath_var=LD_LIBRARY_PATH
13171 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13172 case $host_os in
13173 openbsd2.[89] | openbsd2.[89].*)
13174 shlibpath_overrides_runpath=no
13175 ;;
13176 *)
13177 shlibpath_overrides_runpath=yes
13178 ;;
13179 esac
13180 else
13181 shlibpath_overrides_runpath=yes
13182 fi
13183 ;;
13184
13185os2*)
13186 libname_spec='$name'
13187 shrext_cmds=".dll"
13188 need_lib_prefix=no
13189 library_names_spec='$libname${shared_ext} $libname.a'
13190 dynamic_linker='OS/2 ld.exe'
13191 shlibpath_var=LIBPATH
13192 ;;
13193
13194osf3* | osf4* | osf5*)
13195 version_type=osf
13196 need_lib_prefix=no
13197 need_version=no
13198 soname_spec='${libname}${release}${shared_ext}$major'
13199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13200 shlibpath_var=LD_LIBRARY_PATH
13201 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13202 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13203 ;;
13204
ac40fd9e 13205rdos*)
13206 dynamic_linker=no
13207 ;;
13208
d9898ee8 13209solaris*)
13210 version_type=linux
13211 need_lib_prefix=no
13212 need_version=no
13213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13214 soname_spec='${libname}${release}${shared_ext}$major'
13215 shlibpath_var=LD_LIBRARY_PATH
13216 shlibpath_overrides_runpath=yes
13217 hardcode_into_libs=yes
13218 # ldd complains unless libraries are executable
13219 postinstall_cmds='chmod +x $lib'
13220 ;;
13221
13222sunos4*)
13223 version_type=sunos
13224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13225 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13226 shlibpath_var=LD_LIBRARY_PATH
13227 shlibpath_overrides_runpath=yes
13228 if test "$with_gnu_ld" = yes; then
13229 need_lib_prefix=no
13230 fi
13231 need_version=yes
13232 ;;
13233
13234sysv4 | sysv4.3*)
13235 version_type=linux
13236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13237 soname_spec='${libname}${release}${shared_ext}$major'
13238 shlibpath_var=LD_LIBRARY_PATH
13239 case $host_vendor in
13240 sni)
13241 shlibpath_overrides_runpath=no
13242 need_lib_prefix=no
13243 export_dynamic_flag_spec='${wl}-Blargedynsym'
13244 runpath_var=LD_RUN_PATH
13245 ;;
13246 siemens)
13247 need_lib_prefix=no
13248 ;;
13249 motorola)
13250 need_lib_prefix=no
13251 need_version=no
13252 shlibpath_overrides_runpath=no
13253 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13254 ;;
13255 esac
13256 ;;
13257
13258sysv4*MP*)
13259 if test -d /usr/nec ;then
13260 version_type=linux
13261 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13262 soname_spec='$libname${shared_ext}.$major'
13263 shlibpath_var=LD_LIBRARY_PATH
13264 fi
13265 ;;
13266
13267sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13268 version_type=freebsd-elf
13269 need_lib_prefix=no
13270 need_version=no
13271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13272 soname_spec='${libname}${release}${shared_ext}$major'
13273 shlibpath_var=LD_LIBRARY_PATH
13274 hardcode_into_libs=yes
13275 if test "$with_gnu_ld" = yes; then
13276 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13277 shlibpath_overrides_runpath=no
13278 else
13279 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13280 shlibpath_overrides_runpath=yes
13281 case $host_os in
13282 sco3.2v5*)
13283 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13284 ;;
13285 esac
13286 fi
13287 sys_lib_dlsearch_path_spec='/usr/lib'
13288 ;;
13289
13290uts4*)
13291 version_type=linux
13292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13293 soname_spec='${libname}${release}${shared_ext}$major'
13294 shlibpath_var=LD_LIBRARY_PATH
13295 ;;
13296
13297*)
13298 dynamic_linker=no
13299 ;;
13300esac
dd184caf 13301{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13302echo "${ECHO_T}$dynamic_linker" >&6; }
d9898ee8 13303test "$dynamic_linker" = no && can_build_shared=no
13304
13305variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13306if test "$GCC" = yes; then
13307 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13308fi
13309
dd184caf 13310{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13311echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
d9898ee8 13312hardcode_action_CXX=
13313if test -n "$hardcode_libdir_flag_spec_CXX" || \
13314 test -n "$runpath_var_CXX" || \
13315 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13316
13317 # We can hardcode non-existant directories.
13318 if test "$hardcode_direct_CXX" != no &&
13319 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13320 # have to relink, otherwise we might link with an installed library
13321 # when we should be linking with a yet-to-be-installed one
13322 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13323 test "$hardcode_minus_L_CXX" != no; then
13324 # Linking always hardcodes the temporary library directory.
13325 hardcode_action_CXX=relink
13326 else
13327 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13328 hardcode_action_CXX=immediate
13329 fi
13330else
13331 # We cannot hardcode anything, or else we can only hardcode existing
13332 # directories.
13333 hardcode_action_CXX=unsupported
13334fi
dd184caf 13335{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13336echo "${ECHO_T}$hardcode_action_CXX" >&6; }
d9898ee8 13337
13338if test "$hardcode_action_CXX" = relink; then
13339 # Fast installation is not supported
13340 enable_fast_install=no
13341elif test "$shlibpath_overrides_runpath" = yes ||
13342 test "$enable_shared" = no; then
13343 # Fast installation is not necessary
13344 enable_fast_install=needless
13345fi
13346
13347
13348# The else clause should only fire when bootstrapping the
13349# libtool distribution, otherwise you forgot to ship ltmain.sh
13350# with your package, and you will get complaints that there are
13351# no rules to generate ltmain.sh.
13352if test -f "$ltmain"; then
13353 # See if we are running on zsh, and set the options which allow our commands through
13354 # without removal of \ escapes.
13355 if test -n "${ZSH_VERSION+set}" ; then
13356 setopt NO_GLOB_SUBST
13357 fi
13358 # Now quote all the things that may contain metacharacters while being
13359 # careful not to overquote the AC_SUBSTed values. We take copies of the
13360 # variables and quote the copies for generation of the libtool script.
13361 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13362 SED SHELL STRIP \
13363 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13364 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13365 deplibs_check_method reload_flag reload_cmds need_locks \
13366 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13367 lt_cv_sys_global_symbol_to_c_name_address \
13368 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13369 old_postinstall_cmds old_postuninstall_cmds \
13370 compiler_CXX \
13371 CC_CXX \
13372 LD_CXX \
13373 lt_prog_compiler_wl_CXX \
13374 lt_prog_compiler_pic_CXX \
13375 lt_prog_compiler_static_CXX \
13376 lt_prog_compiler_no_builtin_flag_CXX \
13377 export_dynamic_flag_spec_CXX \
13378 thread_safe_flag_spec_CXX \
13379 whole_archive_flag_spec_CXX \
13380 enable_shared_with_static_runtimes_CXX \
13381 old_archive_cmds_CXX \
13382 old_archive_from_new_cmds_CXX \
13383 predep_objects_CXX \
13384 postdep_objects_CXX \
13385 predeps_CXX \
13386 postdeps_CXX \
13387 compiler_lib_search_path_CXX \
13388 archive_cmds_CXX \
13389 archive_expsym_cmds_CXX \
13390 postinstall_cmds_CXX \
13391 postuninstall_cmds_CXX \
13392 old_archive_from_expsyms_cmds_CXX \
13393 allow_undefined_flag_CXX \
13394 no_undefined_flag_CXX \
13395 export_symbols_cmds_CXX \
13396 hardcode_libdir_flag_spec_CXX \
13397 hardcode_libdir_flag_spec_ld_CXX \
13398 hardcode_libdir_separator_CXX \
13399 hardcode_automatic_CXX \
13400 module_cmds_CXX \
13401 module_expsym_cmds_CXX \
13402 lt_cv_prog_compiler_c_o_CXX \
ac40fd9e 13403 fix_srcfile_path_CXX \
d9898ee8 13404 exclude_expsyms_CXX \
13405 include_expsyms_CXX; do
13406
13407 case $var in
13408 old_archive_cmds_CXX | \
13409 old_archive_from_new_cmds_CXX | \
13410 archive_cmds_CXX | \
13411 archive_expsym_cmds_CXX | \
13412 module_cmds_CXX | \
13413 module_expsym_cmds_CXX | \
13414 old_archive_from_expsyms_cmds_CXX | \
13415 export_symbols_cmds_CXX | \
13416 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13417 postinstall_cmds | postuninstall_cmds | \
13418 old_postinstall_cmds | old_postuninstall_cmds | \
13419 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13420 # Double-quote double-evaled strings.
13421 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13422 ;;
13423 *)
13424 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13425 ;;
13426 esac
13427 done
13428
13429 case $lt_echo in
13430 *'\$0 --fallback-echo"')
13431 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13432 ;;
13433 esac
13434
13435cfgfile="$ofile"
13436
13437 cat <<__EOF__ >> "$cfgfile"
13438# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13439
13440# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13441
13442# Shell to use when invoking shell scripts.
13443SHELL=$lt_SHELL
13444
13445# Whether or not to build shared libraries.
13446build_libtool_libs=$enable_shared
13447
13448# Whether or not to build static libraries.
13449build_old_libs=$enable_static
13450
13451# Whether or not to add -lc for building shared libraries.
13452build_libtool_need_lc=$archive_cmds_need_lc_CXX
13453
13454# Whether or not to disallow shared libs when runtime libs are static
13455allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13456
13457# Whether or not to optimize for fast installation.
13458fast_install=$enable_fast_install
13459
13460# The host system.
13461host_alias=$host_alias
13462host=$host
13463host_os=$host_os
13464
13465# The build system.
13466build_alias=$build_alias
13467build=$build
13468build_os=$build_os
13469
13470# An echo program that does not interpret backslashes.
13471echo=$lt_echo
13472
13473# The archiver.
13474AR=$lt_AR
13475AR_FLAGS=$lt_AR_FLAGS
13476
13477# A C compiler.
13478LTCC=$lt_LTCC
13479
13480# LTCC compiler flags.
13481LTCFLAGS=$lt_LTCFLAGS
13482
13483# A language-specific compiler.
13484CC=$lt_compiler_CXX
13485
13486# Is the compiler the GNU C compiler?
13487with_gcc=$GCC_CXX
13488
d9898ee8 13489# An ERE matcher.
13490EGREP=$lt_EGREP
13491
13492# The linker used to build libraries.
13493LD=$lt_LD_CXX
13494
13495# Whether we need hard or soft links.
13496LN_S=$lt_LN_S
13497
13498# A BSD-compatible nm program.
13499NM=$lt_NM
13500
13501# A symbol stripping program
13502STRIP=$lt_STRIP
13503
13504# Used to examine libraries when file_magic_cmd begins "file"
13505MAGIC_CMD=$MAGIC_CMD
13506
13507# Used on cygwin: DLL creation program.
13508DLLTOOL="$DLLTOOL"
13509
13510# Used on cygwin: object dumper.
13511OBJDUMP="$OBJDUMP"
13512
13513# Used on cygwin: assembler.
13514AS="$AS"
13515
13516# The name of the directory that contains temporary libtool files.
13517objdir=$objdir
13518
13519# How to create reloadable object files.
13520reload_flag=$lt_reload_flag
13521reload_cmds=$lt_reload_cmds
13522
13523# How to pass a linker flag through the compiler.
13524wl=$lt_lt_prog_compiler_wl_CXX
13525
13526# Object file suffix (normally "o").
13527objext="$ac_objext"
13528
13529# Old archive suffix (normally "a").
13530libext="$libext"
13531
13532# Shared library suffix (normally ".so").
13533shrext_cmds='$shrext_cmds'
13534
13535# Executable file suffix (normally "").
13536exeext="$exeext"
13537
13538# Additional compiler flags for building library objects.
13539pic_flag=$lt_lt_prog_compiler_pic_CXX
13540pic_mode=$pic_mode
13541
13542# What is the maximum length of a command?
13543max_cmd_len=$lt_cv_sys_max_cmd_len
13544
13545# Does compiler simultaneously support -c and -o options?
13546compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13547
13548# Must we lock files when doing compilation?
13549need_locks=$lt_need_locks
13550
13551# Do we need the lib prefix for modules?
13552need_lib_prefix=$need_lib_prefix
13553
13554# Do we need a version for libraries?
13555need_version=$need_version
13556
13557# Whether dlopen is supported.
13558dlopen_support=$enable_dlopen
13559
13560# Whether dlopen of programs is supported.
13561dlopen_self=$enable_dlopen_self
13562
13563# Whether dlopen of statically linked programs is supported.
13564dlopen_self_static=$enable_dlopen_self_static
13565
13566# Compiler flag to prevent dynamic linking.
13567link_static_flag=$lt_lt_prog_compiler_static_CXX
13568
13569# Compiler flag to turn off builtin functions.
13570no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13571
13572# Compiler flag to allow reflexive dlopens.
13573export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13574
13575# Compiler flag to generate shared objects directly from archives.
13576whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13577
13578# Compiler flag to generate thread-safe objects.
13579thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13580
13581# Library versioning type.
13582version_type=$version_type
13583
13584# Format of library name prefix.
13585libname_spec=$lt_libname_spec
13586
13587# List of archive names. First name is the real one, the rest are links.
13588# The last name is the one that the linker finds with -lNAME.
13589library_names_spec=$lt_library_names_spec
13590
13591# The coded name of the library, if different from the real name.
13592soname_spec=$lt_soname_spec
13593
13594# Commands used to build and install an old-style archive.
13595RANLIB=$lt_RANLIB
13596old_archive_cmds=$lt_old_archive_cmds_CXX
13597old_postinstall_cmds=$lt_old_postinstall_cmds
13598old_postuninstall_cmds=$lt_old_postuninstall_cmds
13599
13600# Create an old-style archive from a shared archive.
13601old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13602
13603# Create a temporary old-style archive to link instead of a shared archive.
13604old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13605
13606# Commands used to build and install a shared archive.
13607archive_cmds=$lt_archive_cmds_CXX
13608archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13609postinstall_cmds=$lt_postinstall_cmds
13610postuninstall_cmds=$lt_postuninstall_cmds
13611
13612# Commands used to build a loadable module (assumed same as above if empty)
13613module_cmds=$lt_module_cmds_CXX
13614module_expsym_cmds=$lt_module_expsym_cmds_CXX
13615
13616# Commands to strip libraries.
13617old_striplib=$lt_old_striplib
13618striplib=$lt_striplib
13619
13620# Dependencies to place before the objects being linked to create a
13621# shared library.
dd184caf 13622predep_objects=$lt_predep_objects_CXX
d9898ee8 13623
13624# Dependencies to place after the objects being linked to create a
13625# shared library.
dd184caf 13626postdep_objects=$lt_postdep_objects_CXX
d9898ee8 13627
13628# Dependencies to place before the objects being linked to create a
13629# shared library.
13630predeps=$lt_predeps_CXX
13631
13632# Dependencies to place after the objects being linked to create a
13633# shared library.
13634postdeps=$lt_postdeps_CXX
13635
13636# The library search path used internally by the compiler when linking
13637# a shared library.
dd184caf 13638compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
d9898ee8 13639
13640# Method to check whether dependent libraries are shared objects.
13641deplibs_check_method=$lt_deplibs_check_method
13642
13643# Command to use when deplibs_check_method == file_magic.
13644file_magic_cmd=$lt_file_magic_cmd
13645
13646# Flag that allows shared libraries with undefined symbols to be built.
13647allow_undefined_flag=$lt_allow_undefined_flag_CXX
13648
13649# Flag that forces no undefined symbols.
13650no_undefined_flag=$lt_no_undefined_flag_CXX
13651
13652# Commands used to finish a libtool library installation in a directory.
13653finish_cmds=$lt_finish_cmds
13654
13655# Same as above, but a single script fragment to be evaled but not shown.
13656finish_eval=$lt_finish_eval
13657
13658# Take the output of nm and produce a listing of raw symbols and C names.
13659global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13660
13661# Transform the output of nm in a proper C declaration
13662global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13663
13664# Transform the output of nm in a C name address pair
13665global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13666
13667# This is the shared library runtime path variable.
13668runpath_var=$runpath_var
13669
13670# This is the shared library path variable.
13671shlibpath_var=$shlibpath_var
13672
13673# Is shlibpath searched before the hard-coded library search path?
13674shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13675
13676# How to hardcode a shared library path into an executable.
13677hardcode_action=$hardcode_action_CXX
13678
13679# Whether we should hardcode library paths into libraries.
13680hardcode_into_libs=$hardcode_into_libs
13681
13682# Flag to hardcode \$libdir into a binary during linking.
13683# This must work even if \$libdir does not exist.
13684hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13685
13686# If ld is used when linking, flag to hardcode \$libdir into
13687# a binary during linking. This must work even if \$libdir does
13688# not exist.
13689hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13690
13691# Whether we need a single -rpath flag with a separated argument.
13692hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13693
13694# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13695# resulting binary.
13696hardcode_direct=$hardcode_direct_CXX
13697
13698# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13699# resulting binary.
13700hardcode_minus_L=$hardcode_minus_L_CXX
13701
13702# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13703# the resulting binary.
13704hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13705
13706# Set to yes if building a shared library automatically hardcodes DIR into the library
13707# and all subsequent libraries and executables linked against it.
13708hardcode_automatic=$hardcode_automatic_CXX
13709
13710# Variables whose values should be saved in libtool wrapper scripts and
13711# restored at relink time.
13712variables_saved_for_relink="$variables_saved_for_relink"
13713
13714# Whether libtool must link a program against all its dependency libraries.
13715link_all_deplibs=$link_all_deplibs_CXX
13716
13717# Compile-time system search path for libraries
dd184caf 13718sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
d9898ee8 13719
13720# Run-time system search path for libraries
13721sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13722
13723# Fix the shell variable \$srcfile for the compiler.
ac40fd9e 13724fix_srcfile_path=$lt_fix_srcfile_path
d9898ee8 13725
13726# Set to yes if exported symbols are required.
13727always_export_symbols=$always_export_symbols_CXX
13728
13729# The commands to list exported symbols.
13730export_symbols_cmds=$lt_export_symbols_cmds_CXX
13731
13732# The commands to extract the exported symbol list from a shared archive.
13733extract_expsyms_cmds=$lt_extract_expsyms_cmds
13734
13735# Symbols that should not be listed in the preloaded symbols.
13736exclude_expsyms=$lt_exclude_expsyms_CXX
13737
13738# Symbols that must always be exported.
13739include_expsyms=$lt_include_expsyms_CXX
13740
13741# ### END LIBTOOL TAG CONFIG: $tagname
13742
13743__EOF__
13744
13745
13746else
13747 # If there is no Makefile yet, we rely on a make rule to execute
13748 # `config.status --recheck' to rerun these tests and create the
13749 # libtool script then.
13750 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13751 if test -f "$ltmain_in"; then
13752 test -f Makefile && make "$ltmain"
13753 fi
13754fi
13755
13756
13757ac_ext=c
13758ac_cpp='$CPP $CPPFLAGS'
13759ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13760ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13761ac_compiler_gnu=$ac_cv_c_compiler_gnu
13762
13763CC=$lt_save_CC
13764LDCXX=$LD
13765LD=$lt_save_LD
13766GCC=$lt_save_GCC
13767with_gnu_ldcxx=$with_gnu_ld
13768with_gnu_ld=$lt_save_with_gnu_ld
13769lt_cv_path_LDCXX=$lt_cv_path_LD
13770lt_cv_path_LD=$lt_save_path_LD
13771lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13772lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13773
13774 else
13775 tagname=""
13776 fi
13777 ;;
13778
13779 F77)
13780 if test -n "$F77" && test "X$F77" != "Xno"; then
13781
13782ac_ext=f
13783ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13784ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13785ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13786
13787
13788archive_cmds_need_lc_F77=no
13789allow_undefined_flag_F77=
13790always_export_symbols_F77=no
13791archive_expsym_cmds_F77=
13792export_dynamic_flag_spec_F77=
13793hardcode_direct_F77=no
13794hardcode_libdir_flag_spec_F77=
13795hardcode_libdir_flag_spec_ld_F77=
13796hardcode_libdir_separator_F77=
13797hardcode_minus_L_F77=no
13798hardcode_automatic_F77=no
13799module_cmds_F77=
13800module_expsym_cmds_F77=
13801link_all_deplibs_F77=unknown
13802old_archive_cmds_F77=$old_archive_cmds
13803no_undefined_flag_F77=
13804whole_archive_flag_spec_F77=
13805enable_shared_with_static_runtimes_F77=no
13806
13807# Source file extension for f77 test sources.
13808ac_ext=f
13809
13810# Object file extension for compiled f77 test sources.
13811objext=o
13812objext_F77=$objext
13813
13814# Code to be used in simple compile tests
ac40fd9e 13815lt_simple_compile_test_code="\
13816 subroutine t
13817 return
13818 end
13819"
d9898ee8 13820
13821# Code to be used in simple link tests
ac40fd9e 13822lt_simple_link_test_code="\
13823 program t
13824 end
13825"
d9898ee8 13826
13827# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13828
13829# If no C compiler was specified, use CC.
13830LTCC=${LTCC-"$CC"}
13831
13832# If no C compiler flags were specified, use CFLAGS.
13833LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13834
13835# Allow CC to be a program name with arguments.
13836compiler=$CC
13837
13838
13839# save warnings/boilerplate of simple test code
13840ac_outfile=conftest.$ac_objext
ac40fd9e 13841echo "$lt_simple_compile_test_code" >conftest.$ac_ext
d9898ee8 13842eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13843_lt_compiler_boilerplate=`cat conftest.err`
13844$rm conftest*
13845
13846ac_outfile=conftest.$ac_objext
ac40fd9e 13847echo "$lt_simple_link_test_code" >conftest.$ac_ext
d9898ee8 13848eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13849_lt_linker_boilerplate=`cat conftest.err`
13850$rm conftest*
13851
13852
13853# Allow CC to be a program name with arguments.
13854lt_save_CC="$CC"
13855CC=${F77-"f77"}
13856compiler=$CC
13857compiler_F77=$CC
13858for cc_temp in $compiler""; do
13859 case $cc_temp in
13860 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13861 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13862 \-*) ;;
13863 *) break;;
13864 esac
13865done
13866cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13867
13868
dd184caf 13869{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13870echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13871{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
13872echo "${ECHO_T}$can_build_shared" >&6; }
d9898ee8 13873
dd184caf 13874{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13875echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
d9898ee8 13876test "$can_build_shared" = "no" && enable_shared=no
13877
13878# On AIX, shared libraries and static libraries use the same namespace, and
13879# are all built from PIC.
13880case $host_os in
13881aix3*)
13882 test "$enable_shared" = yes && enable_static=no
13883 if test -n "$RANLIB"; then
13884 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13885 postinstall_cmds='$RANLIB $lib'
13886 fi
13887 ;;
13888aix4* | aix5*)
13889 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13890 test "$enable_shared" = yes && enable_static=no
13891 fi
13892 ;;
13893esac
dd184caf 13894{ echo "$as_me:$LINENO: result: $enable_shared" >&5
13895echo "${ECHO_T}$enable_shared" >&6; }
d9898ee8 13896
dd184caf 13897{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13898echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
d9898ee8 13899# Make sure either enable_shared or enable_static is yes.
13900test "$enable_shared" = yes || enable_static=yes
dd184caf 13901{ echo "$as_me:$LINENO: result: $enable_static" >&5
13902echo "${ECHO_T}$enable_static" >&6; }
d9898ee8 13903
13904GCC_F77="$G77"
13905LD_F77="$LD"
13906
13907lt_prog_compiler_wl_F77=
13908lt_prog_compiler_pic_F77=
13909lt_prog_compiler_static_F77=
13910
dd184caf 13911{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13912echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
d9898ee8 13913
13914 if test "$GCC" = yes; then
13915 lt_prog_compiler_wl_F77='-Wl,'
13916 lt_prog_compiler_static_F77='-static'
13917
13918 case $host_os in
13919 aix*)
13920 # All AIX code is PIC.
13921 if test "$host_cpu" = ia64; then
13922 # AIX 5 now supports IA64 processor
13923 lt_prog_compiler_static_F77='-Bstatic'
13924 fi
13925 ;;
13926
13927 amigaos*)
13928 # FIXME: we need at least 68020 code to build shared libraries, but
13929 # adding the `-m68020' flag to GCC prevents building anything better,
13930 # like `-m68040'.
13931 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13932 ;;
13933
ac40fd9e 13934 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
d9898ee8 13935 # PIC is the default for these OSes.
13936 ;;
13937
ac40fd9e 13938 mingw* | cygwin* | pw32* | os2*)
d9898ee8 13939 # This hack is so that the source file can tell whether it is being
13940 # built for inclusion in a dll (and should export symbols for example).
ac40fd9e 13941 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13942 # (--disable-auto-import) libraries
d9898ee8 13943 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13944 ;;
13945
13946 darwin* | rhapsody*)
13947 # PIC is the default on this platform
13948 # Common symbols not allowed in MH_DYLIB files
13949 lt_prog_compiler_pic_F77='-fno-common'
13950 ;;
13951
ac40fd9e 13952 interix[3-9]*)
d9898ee8 13953 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13954 # Instead, we relocate shared libraries at runtime.
13955 ;;
13956
13957 msdosdjgpp*)
13958 # Just because we use GCC doesn't mean we suddenly get shared libraries
13959 # on systems that don't support them.
13960 lt_prog_compiler_can_build_shared_F77=no
13961 enable_shared=no
13962 ;;
13963
13964 sysv4*MP*)
13965 if test -d /usr/nec; then
13966 lt_prog_compiler_pic_F77=-Kconform_pic
13967 fi
13968 ;;
13969
13970 hpux*)
13971 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13972 # not for PA HP-UX.
13973 case $host_cpu in
13974 hppa*64*|ia64*)
13975 # +Z the default
13976 ;;
13977 *)
13978 lt_prog_compiler_pic_F77='-fPIC'
13979 ;;
13980 esac
13981 ;;
13982
13983 *)
13984 lt_prog_compiler_pic_F77='-fPIC'
13985 ;;
13986 esac
13987 else
13988 # PORTME Check for flag to pass linker flags through the system compiler.
13989 case $host_os in
13990 aix*)
13991 lt_prog_compiler_wl_F77='-Wl,'
13992 if test "$host_cpu" = ia64; then
13993 # AIX 5 now supports IA64 processor
13994 lt_prog_compiler_static_F77='-Bstatic'
13995 else
13996 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13997 fi
13998 ;;
13999 darwin*)
14000 # PIC is the default on this platform
14001 # Common symbols not allowed in MH_DYLIB files
14002 case $cc_basename in
14003 xlc*)
14004 lt_prog_compiler_pic_F77='-qnocommon'
14005 lt_prog_compiler_wl_F77='-Wl,'
14006 ;;
14007 esac
14008 ;;
14009
ac40fd9e 14010 mingw* | cygwin* | pw32* | os2*)
d9898ee8 14011 # This hack is so that the source file can tell whether it is being
14012 # built for inclusion in a dll (and should export symbols for example).
14013 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14014 ;;
14015
14016 hpux9* | hpux10* | hpux11*)
14017 lt_prog_compiler_wl_F77='-Wl,'
14018 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14019 # not for PA HP-UX.
14020 case $host_cpu in
14021 hppa*64*|ia64*)
14022 # +Z the default
14023 ;;
14024 *)
14025 lt_prog_compiler_pic_F77='+Z'
14026 ;;
14027 esac
14028 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14029 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14030 ;;
14031
14032 irix5* | irix6* | nonstopux*)
14033 lt_prog_compiler_wl_F77='-Wl,'
14034 # PIC (with -KPIC) is the default.
14035 lt_prog_compiler_static_F77='-non_shared'
14036 ;;
14037
14038 newsos6)
14039 lt_prog_compiler_pic_F77='-KPIC'
14040 lt_prog_compiler_static_F77='-Bstatic'
14041 ;;
14042
ac40fd9e 14043 linux* | k*bsd*-gnu)
d9898ee8 14044 case $cc_basename in
14045 icc* | ecc*)
14046 lt_prog_compiler_wl_F77='-Wl,'
14047 lt_prog_compiler_pic_F77='-KPIC'
14048 lt_prog_compiler_static_F77='-static'
14049 ;;
14050 pgcc* | pgf77* | pgf90* | pgf95*)
14051 # Portland Group compilers (*not* the Pentium gcc compiler,
14052 # which looks to be a dead project)
14053 lt_prog_compiler_wl_F77='-Wl,'
14054 lt_prog_compiler_pic_F77='-fpic'
14055 lt_prog_compiler_static_F77='-Bstatic'
14056 ;;
14057 ccc*)
14058 lt_prog_compiler_wl_F77='-Wl,'
14059 # All Alpha code is PIC.
14060 lt_prog_compiler_static_F77='-non_shared'
14061 ;;
ac40fd9e 14062 *)
14063 case `$CC -V 2>&1 | sed 5q` in
14064 *Sun\ C*)
14065 # Sun C 5.9
14066 lt_prog_compiler_pic_F77='-KPIC'
14067 lt_prog_compiler_static_F77='-Bstatic'
14068 lt_prog_compiler_wl_F77='-Wl,'
14069 ;;
14070 *Sun\ F*)
14071 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14072 lt_prog_compiler_pic_F77='-KPIC'
14073 lt_prog_compiler_static_F77='-Bstatic'
14074 lt_prog_compiler_wl_F77=''
14075 ;;
14076 esac
14077 ;;
d9898ee8 14078 esac
14079 ;;
14080
14081 osf3* | osf4* | osf5*)
14082 lt_prog_compiler_wl_F77='-Wl,'
14083 # All OSF/1 code is PIC.
14084 lt_prog_compiler_static_F77='-non_shared'
14085 ;;
14086
ac40fd9e 14087 rdos*)
14088 lt_prog_compiler_static_F77='-non_shared'
14089 ;;
14090
d9898ee8 14091 solaris*)
14092 lt_prog_compiler_pic_F77='-KPIC'
14093 lt_prog_compiler_static_F77='-Bstatic'
14094 case $cc_basename in
14095 f77* | f90* | f95*)
14096 lt_prog_compiler_wl_F77='-Qoption ld ';;
14097 *)
14098 lt_prog_compiler_wl_F77='-Wl,';;
14099 esac
14100 ;;
14101
14102 sunos4*)
14103 lt_prog_compiler_wl_F77='-Qoption ld '
14104 lt_prog_compiler_pic_F77='-PIC'
14105 lt_prog_compiler_static_F77='-Bstatic'
14106 ;;
14107
14108 sysv4 | sysv4.2uw2* | sysv4.3*)
14109 lt_prog_compiler_wl_F77='-Wl,'
14110 lt_prog_compiler_pic_F77='-KPIC'
14111 lt_prog_compiler_static_F77='-Bstatic'
14112 ;;
14113
14114 sysv4*MP*)
14115 if test -d /usr/nec ;then
14116 lt_prog_compiler_pic_F77='-Kconform_pic'
14117 lt_prog_compiler_static_F77='-Bstatic'
14118 fi
14119 ;;
14120
14121 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14122 lt_prog_compiler_wl_F77='-Wl,'
14123 lt_prog_compiler_pic_F77='-KPIC'
14124 lt_prog_compiler_static_F77='-Bstatic'
14125 ;;
14126
14127 unicos*)
14128 lt_prog_compiler_wl_F77='-Wl,'
14129 lt_prog_compiler_can_build_shared_F77=no
14130 ;;
14131
14132 uts4*)
14133 lt_prog_compiler_pic_F77='-pic'
14134 lt_prog_compiler_static_F77='-Bstatic'
14135 ;;
14136
14137 *)
14138 lt_prog_compiler_can_build_shared_F77=no
14139 ;;
14140 esac
14141 fi
14142
dd184caf 14143{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14144echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
d9898ee8 14145
14146#
14147# Check to make sure the PIC flag actually works.
14148#
14149if test -n "$lt_prog_compiler_pic_F77"; then
14150
dd184caf 14151{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14152echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
d9898ee8 14153if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14154 echo $ECHO_N "(cached) $ECHO_C" >&6
14155else
14156 lt_prog_compiler_pic_works_F77=no
14157 ac_outfile=conftest.$ac_objext
ac40fd9e 14158 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 14159 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14160 # Insert the option either (1) after the last *FLAGS variable, or
14161 # (2) before a word containing "conftest.", or (3) at the end.
14162 # Note that $ac_compile itself does not contain backslashes and begins
14163 # with a dollar sign (not a hyphen), so the echo should work correctly.
14164 # The option is referenced via a variable to avoid confusing sed.
14165 lt_compile=`echo "$ac_compile" | $SED \
14166 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14167 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14168 -e 's:$: $lt_compiler_flag:'`
ac40fd9e 14169 (eval echo "\"\$as_me:14169: $lt_compile\"" >&5)
d9898ee8 14170 (eval "$lt_compile" 2>conftest.err)
14171 ac_status=$?
14172 cat conftest.err >&5
ac40fd9e 14173 echo "$as_me:14173: \$? = $ac_status" >&5
d9898ee8 14174 if (exit $ac_status) && test -s "$ac_outfile"; then
14175 # The compiler can only warn and ignore the option if not recognized
14176 # So say no if there are warnings other than the usual output.
14177 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14178 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14179 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14180 lt_prog_compiler_pic_works_F77=yes
14181 fi
14182 fi
14183 $rm conftest*
14184
14185fi
dd184caf 14186{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14187echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
d9898ee8 14188
14189if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14190 case $lt_prog_compiler_pic_F77 in
14191 "" | " "*) ;;
14192 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14193 esac
14194else
14195 lt_prog_compiler_pic_F77=
14196 lt_prog_compiler_can_build_shared_F77=no
14197fi
14198
14199fi
14200case $host_os in
14201 # For platforms which do not support PIC, -DPIC is meaningless:
14202 *djgpp*)
14203 lt_prog_compiler_pic_F77=
14204 ;;
14205 *)
14206 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14207 ;;
14208esac
14209
14210#
14211# Check to make sure the static flag actually works.
14212#
14213wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
dd184caf 14214{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14215echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
d9898ee8 14216if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14217 echo $ECHO_N "(cached) $ECHO_C" >&6
14218else
14219 lt_prog_compiler_static_works_F77=no
14220 save_LDFLAGS="$LDFLAGS"
14221 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
ac40fd9e 14222 echo "$lt_simple_link_test_code" > conftest.$ac_ext
d9898ee8 14223 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14224 # The linker can only warn and ignore the option if not recognized
14225 # So say no if there are warnings
14226 if test -s conftest.err; then
14227 # Append any errors to the config.log.
14228 cat conftest.err 1>&5
14229 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14230 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14231 if diff conftest.exp conftest.er2 >/dev/null; then
14232 lt_prog_compiler_static_works_F77=yes
14233 fi
14234 else
14235 lt_prog_compiler_static_works_F77=yes
14236 fi
14237 fi
14238 $rm conftest*
14239 LDFLAGS="$save_LDFLAGS"
14240
14241fi
dd184caf 14242{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14243echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
d9898ee8 14244
14245if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14246 :
14247else
14248 lt_prog_compiler_static_F77=
14249fi
14250
14251
dd184caf 14252{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14253echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
d9898ee8 14254if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14255 echo $ECHO_N "(cached) $ECHO_C" >&6
14256else
14257 lt_cv_prog_compiler_c_o_F77=no
14258 $rm -r conftest 2>/dev/null
14259 mkdir conftest
14260 cd conftest
14261 mkdir out
ac40fd9e 14262 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 14263
14264 lt_compiler_flag="-o out/conftest2.$ac_objext"
14265 # Insert the option either (1) after the last *FLAGS variable, or
14266 # (2) before a word containing "conftest.", or (3) at the end.
14267 # Note that $ac_compile itself does not contain backslashes and begins
14268 # with a dollar sign (not a hyphen), so the echo should work correctly.
14269 lt_compile=`echo "$ac_compile" | $SED \
14270 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14271 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14272 -e 's:$: $lt_compiler_flag:'`
ac40fd9e 14273 (eval echo "\"\$as_me:14273: $lt_compile\"" >&5)
d9898ee8 14274 (eval "$lt_compile" 2>out/conftest.err)
14275 ac_status=$?
14276 cat out/conftest.err >&5
ac40fd9e 14277 echo "$as_me:14277: \$? = $ac_status" >&5
d9898ee8 14278 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14279 then
14280 # The compiler can only warn and ignore the option if not recognized
14281 # So say no if there are warnings
14282 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14283 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14284 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14285 lt_cv_prog_compiler_c_o_F77=yes
14286 fi
14287 fi
14288 chmod u+w . 2>&5
14289 $rm conftest*
14290 # SGI C++ compiler will create directory out/ii_files/ for
14291 # template instantiation
14292 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14293 $rm out/* && rmdir out
14294 cd ..
14295 rmdir conftest
14296 $rm conftest*
14297
14298fi
dd184caf 14299{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14300echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
d9898ee8 14301
14302
14303hard_links="nottested"
14304if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14305 # do not overwrite the value of need_locks provided by the user
dd184caf 14306 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14307echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
d9898ee8 14308 hard_links=yes
14309 $rm conftest*
14310 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14311 touch conftest.a
14312 ln conftest.a conftest.b 2>&5 || hard_links=no
14313 ln conftest.a conftest.b 2>/dev/null && hard_links=no
dd184caf 14314 { echo "$as_me:$LINENO: result: $hard_links" >&5
14315echo "${ECHO_T}$hard_links" >&6; }
d9898ee8 14316 if test "$hard_links" = no; then
14317 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14318echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14319 need_locks=warn
14320 fi
14321else
14322 need_locks=no
14323fi
14324
dd184caf 14325{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14326echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
d9898ee8 14327
14328 runpath_var=
14329 allow_undefined_flag_F77=
14330 enable_shared_with_static_runtimes_F77=no
14331 archive_cmds_F77=
14332 archive_expsym_cmds_F77=
14333 old_archive_From_new_cmds_F77=
14334 old_archive_from_expsyms_cmds_F77=
14335 export_dynamic_flag_spec_F77=
14336 whole_archive_flag_spec_F77=
14337 thread_safe_flag_spec_F77=
14338 hardcode_libdir_flag_spec_F77=
14339 hardcode_libdir_flag_spec_ld_F77=
14340 hardcode_libdir_separator_F77=
14341 hardcode_direct_F77=no
14342 hardcode_minus_L_F77=no
14343 hardcode_shlibpath_var_F77=unsupported
14344 link_all_deplibs_F77=unknown
14345 hardcode_automatic_F77=no
14346 module_cmds_F77=
14347 module_expsym_cmds_F77=
14348 always_export_symbols_F77=no
14349 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14350 # include_expsyms should be a list of space-separated symbols to be *always*
14351 # included in the symbol list
14352 include_expsyms_F77=
14353 # exclude_expsyms can be an extended regexp of symbols to exclude
14354 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14355 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14356 # as well as any symbol that contains `d'.
14357 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14358 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14359 # platforms (ab)use it in PIC code, but their linkers get confused if
14360 # the symbol is explicitly referenced. Since portable code cannot
14361 # rely on this symbol name, it's probably fine to never include it in
14362 # preloaded symbol tables.
14363 extract_expsyms_cmds=
14364 # Just being paranoid about ensuring that cc_basename is set.
14365 for cc_temp in $compiler""; do
14366 case $cc_temp in
14367 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14368 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14369 \-*) ;;
14370 *) break;;
14371 esac
14372done
14373cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14374
14375 case $host_os in
14376 cygwin* | mingw* | pw32*)
14377 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14378 # When not using gcc, we currently assume that we are using
14379 # Microsoft Visual C++.
14380 if test "$GCC" != yes; then
14381 with_gnu_ld=no
14382 fi
14383 ;;
14384 interix*)
14385 # we just hope/assume this is gcc and not c89 (= MSVC++)
14386 with_gnu_ld=yes
14387 ;;
14388 openbsd*)
14389 with_gnu_ld=no
14390 ;;
14391 esac
14392
14393 ld_shlibs_F77=yes
14394 if test "$with_gnu_ld" = yes; then
14395 # If archive_cmds runs LD, not CC, wlarc should be empty
14396 wlarc='${wl}'
14397
14398 # Set some defaults for GNU ld with shared library support. These
14399 # are reset later if shared libraries are not supported. Putting them
14400 # here allows them to be overridden if necessary.
14401 runpath_var=LD_RUN_PATH
14402 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14403 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14404 # ancient GNU ld didn't support --whole-archive et. al.
14405 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14406 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14407 else
14408 whole_archive_flag_spec_F77=
14409 fi
14410 supports_anon_versioning=no
14411 case `$LD -v 2>/dev/null` in
14412 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14413 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14414 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14415 *\ 2.11.*) ;; # other 2.11 versions
14416 *) supports_anon_versioning=yes ;;
14417 esac
14418
14419 # See if GNU ld supports shared libraries.
14420 case $host_os in
14421 aix3* | aix4* | aix5*)
14422 # On AIX/PPC, the GNU linker is very broken
14423 if test "$host_cpu" != ia64; then
14424 ld_shlibs_F77=no
14425 cat <<EOF 1>&2
14426
14427*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14428*** to be unable to reliably create shared libraries on AIX.
14429*** Therefore, libtool is disabling shared libraries support. If you
14430*** really care for shared libraries, you may want to modify your PATH
14431*** so that a non-GNU linker is found, and then restart.
14432
14433EOF
14434 fi
14435 ;;
14436
14437 amigaos*)
14438 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)'
14439 hardcode_libdir_flag_spec_F77='-L$libdir'
14440 hardcode_minus_L_F77=yes
14441
14442 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14443 # that the semantics of dynamic libraries on AmigaOS, at least up
14444 # to version 4, is to share data among multiple programs linked
14445 # with the same dynamic library. Since this doesn't match the
14446 # behavior of shared libraries on other platforms, we can't use
14447 # them.
14448 ld_shlibs_F77=no
14449 ;;
14450
14451 beos*)
14452 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14453 allow_undefined_flag_F77=unsupported
14454 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14455 # support --undefined. This deserves some investigation. FIXME
14456 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14457 else
14458 ld_shlibs_F77=no
14459 fi
14460 ;;
14461
14462 cygwin* | mingw* | pw32*)
14463 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14464 # as there is no search path for DLLs.
14465 hardcode_libdir_flag_spec_F77='-L$libdir'
14466 allow_undefined_flag_F77=unsupported
14467 always_export_symbols_F77=no
14468 enable_shared_with_static_runtimes_F77=yes
ac40fd9e 14469 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
d9898ee8 14470
14471 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14472 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14473 # If the export-symbols file already is a .def file (1st line
14474 # is EXPORTS), use it as is; otherwise, prepend...
14475 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14476 cp $export_symbols $output_objdir/$soname.def;
14477 else
14478 echo EXPORTS > $output_objdir/$soname.def;
14479 cat $export_symbols >> $output_objdir/$soname.def;
14480 fi~
14481 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14482 else
14483 ld_shlibs_F77=no
14484 fi
14485 ;;
14486
ac40fd9e 14487 interix[3-9]*)
d9898ee8 14488 hardcode_direct_F77=no
14489 hardcode_shlibpath_var_F77=no
14490 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14491 export_dynamic_flag_spec_F77='${wl}-E'
14492 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14493 # Instead, shared libraries are loaded at an image base (0x10000000 by
14494 # default) and relocated if they conflict, which is a slow very memory
14495 # consuming and fragmenting process. To avoid this, we pick a random,
14496 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14497 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14498 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'
14499 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'
14500 ;;
14501
ac40fd9e 14502 gnu* | linux* | k*bsd*-gnu)
d9898ee8 14503 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14504 tmp_addflag=
14505 case $cc_basename,$host_cpu in
14506 pgcc*) # Portland Group C compiler
14507 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'
14508 tmp_addflag=' $pic_flag'
14509 ;;
14510 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14511 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'
14512 tmp_addflag=' $pic_flag -Mnomain' ;;
14513 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14514 tmp_addflag=' -i_dynamic' ;;
14515 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14516 tmp_addflag=' -i_dynamic -nofor_main' ;;
14517 ifc* | ifort*) # Intel Fortran compiler
14518 tmp_addflag=' -nofor_main' ;;
14519 esac
ac40fd9e 14520 case `$CC -V 2>&1 | sed 5q` in
14521 *Sun\ C*) # Sun C 5.9
14522 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'
14523 tmp_sharedflag='-G' ;;
14524 *Sun\ F*) # Sun Fortran 8.3
14525 tmp_sharedflag='-G' ;;
14526 *)
14527 tmp_sharedflag='-shared' ;;
14528 esac
14529 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
d9898ee8 14530
14531 if test $supports_anon_versioning = yes; then
14532 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14533 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14534 $echo "local: *; };" >> $output_objdir/$libname.ver~
ac40fd9e 14535 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
d9898ee8 14536 fi
14537 else
14538 ld_shlibs_F77=no
14539 fi
14540 ;;
14541
14542 netbsd*)
14543 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14544 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14545 wlarc=
14546 else
14547 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14548 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14549 fi
14550 ;;
14551
14552 solaris*)
14553 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14554 ld_shlibs_F77=no
14555 cat <<EOF 1>&2
14556
14557*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14558*** create shared libraries on Solaris systems. Therefore, libtool
14559*** is disabling shared libraries support. We urge you to upgrade GNU
14560*** binutils to release 2.9.1 or newer. Another option is to modify
14561*** your PATH or compiler configuration so that the native linker is
14562*** used, and then restart.
14563
14564EOF
14565 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14566 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14567 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14568 else
14569 ld_shlibs_F77=no
14570 fi
14571 ;;
14572
14573 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14574 case `$LD -v 2>&1` in
14575 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14576 ld_shlibs_F77=no
14577 cat <<_LT_EOF 1>&2
14578
14579*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14580*** reliably create shared libraries on SCO systems. Therefore, libtool
14581*** is disabling shared libraries support. We urge you to upgrade GNU
14582*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14583*** your PATH or compiler configuration so that the native linker is
14584*** used, and then restart.
14585
14586_LT_EOF
14587 ;;
14588 *)
14589 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14590 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14591 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14592 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14593 else
14594 ld_shlibs_F77=no
14595 fi
14596 ;;
14597 esac
14598 ;;
14599
14600 sunos4*)
14601 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14602 wlarc=
14603 hardcode_direct_F77=yes
14604 hardcode_shlibpath_var_F77=no
14605 ;;
14606
14607 *)
14608 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14609 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14610 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14611 else
14612 ld_shlibs_F77=no
14613 fi
14614 ;;
14615 esac
14616
14617 if test "$ld_shlibs_F77" = no; then
14618 runpath_var=
14619 hardcode_libdir_flag_spec_F77=
14620 export_dynamic_flag_spec_F77=
14621 whole_archive_flag_spec_F77=
14622 fi
14623 else
14624 # PORTME fill in a description of your system's linker (not GNU ld)
14625 case $host_os in
14626 aix3*)
14627 allow_undefined_flag_F77=unsupported
14628 always_export_symbols_F77=yes
14629 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'
14630 # Note: this linker hardcodes the directories in LIBPATH if there
14631 # are no directories specified by -L.
14632 hardcode_minus_L_F77=yes
14633 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14634 # Neither direct hardcoding nor static linking is supported with a
14635 # broken collect2.
14636 hardcode_direct_F77=unsupported
14637 fi
14638 ;;
14639
14640 aix4* | aix5*)
14641 if test "$host_cpu" = ia64; then
14642 # On IA64, the linker does run time linking by default, so we don't
14643 # have to do anything special.
14644 aix_use_runtimelinking=no
14645 exp_sym_flag='-Bexport'
14646 no_entry_flag=""
14647 else
14648 # If we're using GNU nm, then we don't want the "-C" option.
14649 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14650 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14651 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'
14652 else
14653 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'
14654 fi
14655 aix_use_runtimelinking=no
14656
14657 # Test if we are trying to use run time linking or normal
14658 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14659 # need to do runtime linking.
14660 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14661 for ld_flag in $LDFLAGS; do
14662 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14663 aix_use_runtimelinking=yes
14664 break
14665 fi
14666 done
14667 ;;
14668 esac
14669
14670 exp_sym_flag='-bexport'
14671 no_entry_flag='-bnoentry'
14672 fi
14673
14674 # When large executables or shared objects are built, AIX ld can
14675 # have problems creating the table of contents. If linking a library
14676 # or program results in "error TOC overflow" add -mminimal-toc to
14677 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14678 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14679
14680 archive_cmds_F77=''
14681 hardcode_direct_F77=yes
14682 hardcode_libdir_separator_F77=':'
14683 link_all_deplibs_F77=yes
14684
14685 if test "$GCC" = yes; then
14686 case $host_os in aix4.[012]|aix4.[012].*)
14687 # We only want to do this on AIX 4.2 and lower, the check
14688 # below for broken collect2 doesn't work under 4.3+
14689 collect2name=`${CC} -print-prog-name=collect2`
14690 if test -f "$collect2name" && \
14691 strings "$collect2name" | grep resolve_lib_name >/dev/null
14692 then
14693 # We have reworked collect2
ac40fd9e 14694 :
d9898ee8 14695 else
14696 # We have old collect2
14697 hardcode_direct_F77=unsupported
14698 # It fails to find uninstalled libraries when the uninstalled
14699 # path is not listed in the libpath. Setting hardcode_minus_L
14700 # to unsupported forces relinking
14701 hardcode_minus_L_F77=yes
14702 hardcode_libdir_flag_spec_F77='-L$libdir'
14703 hardcode_libdir_separator_F77=
14704 fi
14705 ;;
14706 esac
14707 shared_flag='-shared'
14708 if test "$aix_use_runtimelinking" = yes; then
14709 shared_flag="$shared_flag "'${wl}-G'
14710 fi
14711 else
14712 # not using gcc
14713 if test "$host_cpu" = ia64; then
14714 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14715 # chokes on -Wl,-G. The following line is correct:
14716 shared_flag='-G'
14717 else
14718 if test "$aix_use_runtimelinking" = yes; then
14719 shared_flag='${wl}-G'
14720 else
14721 shared_flag='${wl}-bM:SRE'
14722 fi
14723 fi
14724 fi
14725
14726 # It seems that -bexpall does not export symbols beginning with
14727 # underscore (_), so it is better to generate a list of symbols to export.
14728 always_export_symbols_F77=yes
14729 if test "$aix_use_runtimelinking" = yes; then
14730 # Warning - without using the other runtime loading flags (-brtl),
14731 # -berok will link without error, but may produce a broken library.
14732 allow_undefined_flag_F77='-berok'
14733 # Determine the default libpath from the value encoded in an empty executable.
14734 cat >conftest.$ac_ext <<_ACEOF
14735 program main
14736
14737 end
14738_ACEOF
14739rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 14740if { (ac_try="$ac_link"
14741case "(($ac_try" in
14742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14743 *) ac_try_echo=$ac_try;;
14744esac
14745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14746 (eval "$ac_link") 2>conftest.er1
d9898ee8 14747 ac_status=$?
14748 grep -v '^ *+' conftest.er1 >conftest.err
14749 rm -f conftest.er1
14750 cat conftest.err >&5
14751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 14752 (exit $ac_status); } && {
14753 test -z "$ac_f77_werror_flag" ||
14754 test ! -s conftest.err
14755 } && test -s conftest$ac_exeext &&
14756 $as_test_x conftest$ac_exeext; then
d9898ee8 14757
ac40fd9e 14758lt_aix_libpath_sed='
14759 /Import File Strings/,/^$/ {
14760 /^0/ {
14761 s/^0 *\(.*\)$/\1/
14762 p
14763 }
14764 }'
14765aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
d9898ee8 14766# Check for a 64-bit object if we didn't find anything.
ac40fd9e 14767if test -z "$aix_libpath"; then
14768 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14769fi
d9898ee8 14770else
14771 echo "$as_me: failed program was:" >&5
14772sed 's/^/| /' conftest.$ac_ext >&5
14773
dd184caf 14774
d9898ee8 14775fi
dd184caf 14776
14777rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 14778 conftest$ac_exeext conftest.$ac_ext
14779if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14780
14781 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14782 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"
14783 else
14784 if test "$host_cpu" = ia64; then
14785 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14786 allow_undefined_flag_F77="-z nodefs"
14787 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"
14788 else
14789 # Determine the default libpath from the value encoded in an empty executable.
14790 cat >conftest.$ac_ext <<_ACEOF
14791 program main
14792
14793 end
14794_ACEOF
14795rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 14796if { (ac_try="$ac_link"
14797case "(($ac_try" in
14798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14799 *) ac_try_echo=$ac_try;;
14800esac
14801eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14802 (eval "$ac_link") 2>conftest.er1
d9898ee8 14803 ac_status=$?
14804 grep -v '^ *+' conftest.er1 >conftest.err
14805 rm -f conftest.er1
14806 cat conftest.err >&5
14807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 14808 (exit $ac_status); } && {
14809 test -z "$ac_f77_werror_flag" ||
14810 test ! -s conftest.err
14811 } && test -s conftest$ac_exeext &&
14812 $as_test_x conftest$ac_exeext; then
d9898ee8 14813
ac40fd9e 14814lt_aix_libpath_sed='
14815 /Import File Strings/,/^$/ {
14816 /^0/ {
14817 s/^0 *\(.*\)$/\1/
14818 p
14819 }
14820 }'
14821aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
d9898ee8 14822# Check for a 64-bit object if we didn't find anything.
ac40fd9e 14823if test -z "$aix_libpath"; then
14824 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14825fi
d9898ee8 14826else
14827 echo "$as_me: failed program was:" >&5
14828sed 's/^/| /' conftest.$ac_ext >&5
14829
dd184caf 14830
d9898ee8 14831fi
dd184caf 14832
14833rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 14834 conftest$ac_exeext conftest.$ac_ext
14835if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14836
14837 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14838 # Warning - without using the other run time loading flags,
14839 # -berok will link without error, but may produce a broken library.
14840 no_undefined_flag_F77=' ${wl}-bernotok'
14841 allow_undefined_flag_F77=' ${wl}-berok'
14842 # Exported symbols can be pulled into shared objects from archives
14843 whole_archive_flag_spec_F77='$convenience'
14844 archive_cmds_need_lc_F77=yes
14845 # This is similar to how AIX traditionally builds its shared libraries.
14846 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'
14847 fi
14848 fi
14849 ;;
14850
14851 amigaos*)
14852 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)'
14853 hardcode_libdir_flag_spec_F77='-L$libdir'
14854 hardcode_minus_L_F77=yes
14855 # see comment about different semantics on the GNU ld section
14856 ld_shlibs_F77=no
14857 ;;
14858
14859 bsdi[45]*)
14860 export_dynamic_flag_spec_F77=-rdynamic
14861 ;;
14862
14863 cygwin* | mingw* | pw32*)
14864 # When not using gcc, we currently assume that we are using
14865 # Microsoft Visual C++.
14866 # hardcode_libdir_flag_spec is actually meaningless, as there is
14867 # no search path for DLLs.
14868 hardcode_libdir_flag_spec_F77=' '
14869 allow_undefined_flag_F77=unsupported
14870 # Tell ltmain to make .lib files, not .a files.
14871 libext=lib
14872 # Tell ltmain to make .dll files, not .so files.
14873 shrext_cmds=".dll"
14874 # FIXME: Setting linknames here is a bad hack.
14875 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14876 # The linker will automatically build a .lib file if we build a DLL.
14877 old_archive_From_new_cmds_F77='true'
14878 # FIXME: Should let the user specify the lib program.
ac40fd9e 14879 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
d9898ee8 14880 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14881 enable_shared_with_static_runtimes_F77=yes
14882 ;;
14883
14884 darwin* | rhapsody*)
14885 case $host_os in
14886 rhapsody* | darwin1.[012])
14887 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14888 ;;
14889 *) # Darwin 1.3 on
14890 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14891 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14892 else
14893 case ${MACOSX_DEPLOYMENT_TARGET} in
14894 10.[012])
14895 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14896 ;;
14897 10.*)
14898 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14899 ;;
14900 esac
14901 fi
14902 ;;
14903 esac
14904 archive_cmds_need_lc_F77=no
14905 hardcode_direct_F77=no
14906 hardcode_automatic_F77=yes
14907 hardcode_shlibpath_var_F77=unsupported
14908 whole_archive_flag_spec_F77=''
14909 link_all_deplibs_F77=yes
14910 if test "$GCC" = yes ; then
14911 output_verbose_link_cmd='echo'
14912 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14913 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14914 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14915 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}'
14916 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}'
14917 else
14918 case $cc_basename in
14919 xlc*)
14920 output_verbose_link_cmd='echo'
ac40fd9e 14921 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
d9898ee8 14922 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14923 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
ac40fd9e 14924 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 14925 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}'
14926 ;;
14927 *)
14928 ld_shlibs_F77=no
14929 ;;
14930 esac
14931 fi
14932 ;;
14933
14934 dgux*)
14935 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14936 hardcode_libdir_flag_spec_F77='-L$libdir'
14937 hardcode_shlibpath_var_F77=no
14938 ;;
14939
14940 freebsd1*)
14941 ld_shlibs_F77=no
14942 ;;
14943
14944 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14945 # support. Future versions do this automatically, but an explicit c++rt0.o
14946 # does not break anything, and helps significantly (at the cost of a little
14947 # extra space).
14948 freebsd2.2*)
14949 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14950 hardcode_libdir_flag_spec_F77='-R$libdir'
14951 hardcode_direct_F77=yes
14952 hardcode_shlibpath_var_F77=no
14953 ;;
14954
14955 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14956 freebsd2*)
14957 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14958 hardcode_direct_F77=yes
14959 hardcode_minus_L_F77=yes
14960 hardcode_shlibpath_var_F77=no
14961 ;;
14962
14963 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
ac40fd9e 14964 freebsd* | dragonfly*)
d9898ee8 14965 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14966 hardcode_libdir_flag_spec_F77='-R$libdir'
14967 hardcode_direct_F77=yes
14968 hardcode_shlibpath_var_F77=no
14969 ;;
14970
14971 hpux9*)
14972 if test "$GCC" = yes; then
14973 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'
14974 else
14975 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'
14976 fi
14977 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14978 hardcode_libdir_separator_F77=:
14979 hardcode_direct_F77=yes
14980
14981 # hardcode_minus_L: Not really in the search PATH,
14982 # but as the default location of the library.
14983 hardcode_minus_L_F77=yes
14984 export_dynamic_flag_spec_F77='${wl}-E'
14985 ;;
14986
14987 hpux10*)
14988 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14989 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14990 else
14991 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14992 fi
14993 if test "$with_gnu_ld" = no; then
14994 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14995 hardcode_libdir_separator_F77=:
14996
14997 hardcode_direct_F77=yes
14998 export_dynamic_flag_spec_F77='${wl}-E'
14999
15000 # hardcode_minus_L: Not really in the search PATH,
15001 # but as the default location of the library.
15002 hardcode_minus_L_F77=yes
15003 fi
15004 ;;
15005
15006 hpux11*)
15007 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15008 case $host_cpu in
15009 hppa*64*)
15010 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15011 ;;
15012 ia64*)
15013 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15014 ;;
15015 *)
15016 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15017 ;;
15018 esac
15019 else
15020 case $host_cpu in
15021 hppa*64*)
15022 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15023 ;;
15024 ia64*)
15025 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15026 ;;
15027 *)
15028 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15029 ;;
15030 esac
15031 fi
15032 if test "$with_gnu_ld" = no; then
15033 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15034 hardcode_libdir_separator_F77=:
15035
15036 case $host_cpu in
15037 hppa*64*|ia64*)
15038 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15039 hardcode_direct_F77=no
15040 hardcode_shlibpath_var_F77=no
15041 ;;
15042 *)
15043 hardcode_direct_F77=yes
15044 export_dynamic_flag_spec_F77='${wl}-E'
15045
15046 # hardcode_minus_L: Not really in the search PATH,
15047 # but as the default location of the library.
15048 hardcode_minus_L_F77=yes
15049 ;;
15050 esac
15051 fi
15052 ;;
15053
15054 irix5* | irix6* | nonstopux*)
15055 if test "$GCC" = yes; then
15056 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'
15057 else
15058 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'
15059 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15060 fi
15061 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15062 hardcode_libdir_separator_F77=:
15063 link_all_deplibs_F77=yes
15064 ;;
15065
15066 netbsd*)
15067 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15068 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15069 else
15070 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15071 fi
15072 hardcode_libdir_flag_spec_F77='-R$libdir'
15073 hardcode_direct_F77=yes
15074 hardcode_shlibpath_var_F77=no
15075 ;;
15076
15077 newsos6)
15078 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15079 hardcode_direct_F77=yes
15080 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15081 hardcode_libdir_separator_F77=:
15082 hardcode_shlibpath_var_F77=no
15083 ;;
15084
15085 openbsd*)
ac40fd9e 15086 if test -f /usr/libexec/ld.so; then
15087 hardcode_direct_F77=yes
15088 hardcode_shlibpath_var_F77=no
15089 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15090 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15091 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15092 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15093 export_dynamic_flag_spec_F77='${wl}-E'
15094 else
15095 case $host_os in
15096 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15097 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15098 hardcode_libdir_flag_spec_F77='-R$libdir'
15099 ;;
15100 *)
15101 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15102 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15103 ;;
15104 esac
15105 fi
d9898ee8 15106 else
ac40fd9e 15107 ld_shlibs_F77=no
d9898ee8 15108 fi
15109 ;;
15110
15111 os2*)
15112 hardcode_libdir_flag_spec_F77='-L$libdir'
15113 hardcode_minus_L_F77=yes
15114 allow_undefined_flag_F77=unsupported
15115 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'
15116 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15117 ;;
15118
15119 osf3*)
15120 if test "$GCC" = yes; then
15121 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15122 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'
15123 else
15124 allow_undefined_flag_F77=' -expect_unresolved \*'
15125 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'
15126 fi
15127 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15128 hardcode_libdir_separator_F77=:
15129 ;;
15130
15131 osf4* | osf5*) # as osf3* with the addition of -msym flag
15132 if test "$GCC" = yes; then
15133 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15134 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'
15135 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15136 else
15137 allow_undefined_flag_F77=' -expect_unresolved \*'
15138 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'
15139 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~
15140 $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'
15141
15142 # Both c and cxx compiler support -rpath directly
15143 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15144 fi
15145 hardcode_libdir_separator_F77=:
15146 ;;
15147
15148 solaris*)
15149 no_undefined_flag_F77=' -z text'
15150 if test "$GCC" = yes; then
15151 wlarc='${wl}'
15152 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15153 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15154 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15155 else
15156 wlarc=''
15157 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15158 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15159 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15160 fi
15161 hardcode_libdir_flag_spec_F77='-R$libdir'
15162 hardcode_shlibpath_var_F77=no
15163 case $host_os in
15164 solaris2.[0-5] | solaris2.[0-5].*) ;;
15165 *)
ac40fd9e 15166 # The compiler driver will combine and reorder linker options,
15167 # but understands `-z linker_flag'. GCC discards it without `$wl',
15168 # but is careful enough not to reorder.
d9898ee8 15169 # Supported since Solaris 2.6 (maybe 2.5.1?)
ac40fd9e 15170 if test "$GCC" = yes; then
15171 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15172 else
15173 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15174 fi
15175 ;;
d9898ee8 15176 esac
15177 link_all_deplibs_F77=yes
15178 ;;
15179
15180 sunos4*)
15181 if test "x$host_vendor" = xsequent; then
15182 # Use $CC to link under sequent, because it throws in some extra .o
15183 # files that make .init and .fini sections work.
15184 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15185 else
15186 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15187 fi
15188 hardcode_libdir_flag_spec_F77='-L$libdir'
15189 hardcode_direct_F77=yes
15190 hardcode_minus_L_F77=yes
15191 hardcode_shlibpath_var_F77=no
15192 ;;
15193
15194 sysv4)
15195 case $host_vendor in
15196 sni)
15197 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15198 hardcode_direct_F77=yes # is this really true???
15199 ;;
15200 siemens)
15201 ## LD is ld it makes a PLAMLIB
15202 ## CC just makes a GrossModule.
15203 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15204 reload_cmds_F77='$CC -r -o $output$reload_objs'
15205 hardcode_direct_F77=no
15206 ;;
15207 motorola)
15208 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15209 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15210 ;;
15211 esac
15212 runpath_var='LD_RUN_PATH'
15213 hardcode_shlibpath_var_F77=no
15214 ;;
15215
15216 sysv4.3*)
15217 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15218 hardcode_shlibpath_var_F77=no
15219 export_dynamic_flag_spec_F77='-Bexport'
15220 ;;
15221
15222 sysv4*MP*)
15223 if test -d /usr/nec; then
15224 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15225 hardcode_shlibpath_var_F77=no
15226 runpath_var=LD_RUN_PATH
15227 hardcode_runpath_var=yes
15228 ld_shlibs_F77=yes
15229 fi
15230 ;;
15231
ac40fd9e 15232 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
d9898ee8 15233 no_undefined_flag_F77='${wl}-z,text'
15234 archive_cmds_need_lc_F77=no
15235 hardcode_shlibpath_var_F77=no
15236 runpath_var='LD_RUN_PATH'
15237
15238 if test "$GCC" = yes; then
15239 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15240 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15241 else
15242 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15243 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15244 fi
15245 ;;
15246
15247 sysv5* | sco3.2v5* | sco5v6*)
15248 # Note: We can NOT use -z defs as we might desire, because we do not
15249 # link with -lc, and that would cause any symbols used from libc to
15250 # always be unresolved, which means just about no library would
15251 # ever link correctly. If we're not using GNU ld we use -z text
15252 # though, which does catch some bad symbols but isn't as heavy-handed
15253 # as -z defs.
15254 no_undefined_flag_F77='${wl}-z,text'
15255 allow_undefined_flag_F77='${wl}-z,nodefs'
15256 archive_cmds_need_lc_F77=no
15257 hardcode_shlibpath_var_F77=no
15258 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15259 hardcode_libdir_separator_F77=':'
15260 link_all_deplibs_F77=yes
15261 export_dynamic_flag_spec_F77='${wl}-Bexport'
15262 runpath_var='LD_RUN_PATH'
15263
15264 if test "$GCC" = yes; then
15265 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15266 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15267 else
15268 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15269 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15270 fi
15271 ;;
15272
15273 uts4*)
15274 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15275 hardcode_libdir_flag_spec_F77='-L$libdir'
15276 hardcode_shlibpath_var_F77=no
15277 ;;
15278
15279 *)
15280 ld_shlibs_F77=no
15281 ;;
15282 esac
15283 fi
15284
dd184caf 15285{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15286echo "${ECHO_T}$ld_shlibs_F77" >&6; }
d9898ee8 15287test "$ld_shlibs_F77" = no && can_build_shared=no
15288
15289#
15290# Do we need to explicitly link libc?
15291#
15292case "x$archive_cmds_need_lc_F77" in
15293x|xyes)
15294 # Assume -lc should be added
15295 archive_cmds_need_lc_F77=yes
15296
15297 if test "$enable_shared" = yes && test "$GCC" = yes; then
15298 case $archive_cmds_F77 in
15299 *'~'*)
15300 # FIXME: we may have to deal with multi-command sequences.
15301 ;;
15302 '$CC '*)
15303 # Test whether the compiler implicitly links with -lc since on some
15304 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15305 # to ld, don't add -lc before -lgcc.
dd184caf 15306 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15307echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
d9898ee8 15308 $rm conftest*
ac40fd9e 15309 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 15310
15311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15312 (eval $ac_compile) 2>&5
15313 ac_status=$?
15314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15315 (exit $ac_status); } 2>conftest.err; then
15316 soname=conftest
15317 lib=conftest
15318 libobjs=conftest.$ac_objext
15319 deplibs=
15320 wl=$lt_prog_compiler_wl_F77
15321 pic_flag=$lt_prog_compiler_pic_F77
15322 compiler_flags=-v
15323 linker_flags=-v
15324 verstring=
15325 output_objdir=.
15326 libname=conftest
15327 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15328 allow_undefined_flag_F77=
15329 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15330 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15331 ac_status=$?
15332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15333 (exit $ac_status); }
15334 then
15335 archive_cmds_need_lc_F77=no
15336 else
15337 archive_cmds_need_lc_F77=yes
15338 fi
15339 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15340 else
15341 cat conftest.err 1>&5
15342 fi
15343 $rm conftest*
dd184caf 15344 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15345echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
d9898ee8 15346 ;;
15347 esac
15348 fi
15349 ;;
15350esac
15351
dd184caf 15352{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15353echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
d9898ee8 15354library_names_spec=
15355libname_spec='lib$name'
15356soname_spec=
15357shrext_cmds=".so"
15358postinstall_cmds=
15359postuninstall_cmds=
15360finish_cmds=
15361finish_eval=
15362shlibpath_var=
15363shlibpath_overrides_runpath=unknown
15364version_type=none
15365dynamic_linker="$host_os ld.so"
15366sys_lib_dlsearch_path_spec="/lib /usr/lib"
ac40fd9e 15367
d9898ee8 15368need_lib_prefix=unknown
15369hardcode_into_libs=no
15370
15371# when you set need_version to no, make sure it does not cause -set_version
15372# flags to be left without arguments
15373need_version=unknown
15374
15375case $host_os in
15376aix3*)
15377 version_type=linux
15378 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15379 shlibpath_var=LIBPATH
15380
15381 # AIX 3 has no versioning support, so we append a major version to the name.
15382 soname_spec='${libname}${release}${shared_ext}$major'
15383 ;;
15384
15385aix4* | aix5*)
15386 version_type=linux
15387 need_lib_prefix=no
15388 need_version=no
15389 hardcode_into_libs=yes
15390 if test "$host_cpu" = ia64; then
15391 # AIX 5 supports IA64
15392 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15393 shlibpath_var=LD_LIBRARY_PATH
15394 else
15395 # With GCC up to 2.95.x, collect2 would create an import file
15396 # for dependence libraries. The import file would start with
15397 # the line `#! .'. This would cause the generated library to
15398 # depend on `.', always an invalid library. This was fixed in
15399 # development snapshots of GCC prior to 3.0.
15400 case $host_os in
15401 aix4 | aix4.[01] | aix4.[01].*)
15402 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15403 echo ' yes '
15404 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15405 :
15406 else
15407 can_build_shared=no
15408 fi
15409 ;;
15410 esac
15411 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15412 # soname into executable. Probably we can add versioning support to
15413 # collect2, so additional links can be useful in future.
15414 if test "$aix_use_runtimelinking" = yes; then
15415 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15416 # instead of lib<name>.a to let people know that these are not
15417 # typical AIX shared libraries.
15418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15419 else
15420 # We preserve .a as extension for shared libraries through AIX4.2
15421 # and later when we are not doing run time linking.
15422 library_names_spec='${libname}${release}.a $libname.a'
15423 soname_spec='${libname}${release}${shared_ext}$major'
15424 fi
15425 shlibpath_var=LIBPATH
15426 fi
15427 ;;
15428
15429amigaos*)
15430 library_names_spec='$libname.ixlibrary $libname.a'
15431 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15432 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'
15433 ;;
15434
15435beos*)
15436 library_names_spec='${libname}${shared_ext}'
15437 dynamic_linker="$host_os ld.so"
15438 shlibpath_var=LIBRARY_PATH
15439 ;;
15440
15441bsdi[45]*)
15442 version_type=linux
15443 need_version=no
15444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15445 soname_spec='${libname}${release}${shared_ext}$major'
15446 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15447 shlibpath_var=LD_LIBRARY_PATH
15448 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15449 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15450 # the default ld.so.conf also contains /usr/contrib/lib and
15451 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15452 # libtool to hard-code these into programs
15453 ;;
15454
15455cygwin* | mingw* | pw32*)
15456 version_type=windows
15457 shrext_cmds=".dll"
15458 need_version=no
15459 need_lib_prefix=no
15460
15461 case $GCC,$host_os in
15462 yes,cygwin* | yes,mingw* | yes,pw32*)
15463 library_names_spec='$libname.dll.a'
15464 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15465 postinstall_cmds='base_file=`basename \${file}`~
15466 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15467 dldir=$destdir/`dirname \$dlpath`~
15468 test -d \$dldir || mkdir -p \$dldir~
15469 $install_prog $dir/$dlname \$dldir/$dlname~
15470 chmod a+x \$dldir/$dlname'
15471 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15472 dlpath=$dir/\$dldll~
15473 $rm \$dlpath'
15474 shlibpath_overrides_runpath=yes
15475
15476 case $host_os in
15477 cygwin*)
15478 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15479 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15480 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15481 ;;
15482 mingw*)
15483 # MinGW DLLs use traditional 'lib' prefix
15484 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15485 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15486 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15487 # It is most probably a Windows format PATH printed by
15488 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15489 # path with ; separators, and with drive letters. We can handle the
15490 # drive letters (cygwin fileutils understands them), so leave them,
15491 # especially as we might pass files found there to a mingw objdump,
15492 # which wouldn't understand a cygwinified path. Ahh.
15493 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15494 else
15495 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15496 fi
15497 ;;
15498 pw32*)
15499 # pw32 DLLs use 'pw' prefix rather than 'lib'
15500 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15501 ;;
15502 esac
15503 ;;
15504
15505 *)
15506 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15507 ;;
15508 esac
15509 dynamic_linker='Win32 ld.exe'
15510 # FIXME: first we should search . and the directory the executable is in
15511 shlibpath_var=PATH
15512 ;;
15513
15514darwin* | rhapsody*)
15515 dynamic_linker="$host_os dyld"
15516 version_type=darwin
15517 need_lib_prefix=no
15518 need_version=no
15519 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15520 soname_spec='${libname}${release}${major}$shared_ext'
15521 shlibpath_overrides_runpath=yes
15522 shlibpath_var=DYLD_LIBRARY_PATH
15523 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
ac40fd9e 15524
d9898ee8 15525 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15526 ;;
15527
15528dgux*)
15529 version_type=linux
15530 need_lib_prefix=no
15531 need_version=no
15532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15533 soname_spec='${libname}${release}${shared_ext}$major'
15534 shlibpath_var=LD_LIBRARY_PATH
15535 ;;
15536
15537freebsd1*)
15538 dynamic_linker=no
15539 ;;
15540
d9898ee8 15541freebsd* | dragonfly*)
15542 # DragonFly does not have aout. When/if they implement a new
15543 # versioning mechanism, adjust this.
15544 if test -x /usr/bin/objformat; then
15545 objformat=`/usr/bin/objformat`
15546 else
15547 case $host_os in
15548 freebsd[123]*) objformat=aout ;;
15549 *) objformat=elf ;;
15550 esac
15551 fi
15552 version_type=freebsd-$objformat
15553 case $version_type in
15554 freebsd-elf*)
15555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15556 need_version=no
15557 need_lib_prefix=no
15558 ;;
15559 freebsd-*)
15560 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15561 need_version=yes
15562 ;;
15563 esac
15564 shlibpath_var=LD_LIBRARY_PATH
15565 case $host_os in
15566 freebsd2*)
15567 shlibpath_overrides_runpath=yes
15568 ;;
15569 freebsd3.[01]* | freebsdelf3.[01]*)
15570 shlibpath_overrides_runpath=yes
15571 hardcode_into_libs=yes
15572 ;;
15573 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15574 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15575 shlibpath_overrides_runpath=no
15576 hardcode_into_libs=yes
15577 ;;
ac40fd9e 15578 *) # from 4.6 on, and DragonFly
d9898ee8 15579 shlibpath_overrides_runpath=yes
15580 hardcode_into_libs=yes
15581 ;;
15582 esac
15583 ;;
15584
15585gnu*)
15586 version_type=linux
15587 need_lib_prefix=no
15588 need_version=no
15589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15590 soname_spec='${libname}${release}${shared_ext}$major'
15591 shlibpath_var=LD_LIBRARY_PATH
15592 hardcode_into_libs=yes
15593 ;;
15594
15595hpux9* | hpux10* | hpux11*)
15596 # Give a soname corresponding to the major version so that dld.sl refuses to
15597 # link against other versions.
15598 version_type=sunos
15599 need_lib_prefix=no
15600 need_version=no
15601 case $host_cpu in
15602 ia64*)
15603 shrext_cmds='.so'
15604 hardcode_into_libs=yes
15605 dynamic_linker="$host_os dld.so"
15606 shlibpath_var=LD_LIBRARY_PATH
15607 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15609 soname_spec='${libname}${release}${shared_ext}$major'
15610 if test "X$HPUX_IA64_MODE" = X32; then
15611 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15612 else
15613 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15614 fi
15615 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15616 ;;
15617 hppa*64*)
15618 shrext_cmds='.sl'
15619 hardcode_into_libs=yes
15620 dynamic_linker="$host_os dld.sl"
15621 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15622 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15624 soname_spec='${libname}${release}${shared_ext}$major'
15625 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15626 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15627 ;;
15628 *)
15629 shrext_cmds='.sl'
15630 dynamic_linker="$host_os dld.sl"
15631 shlibpath_var=SHLIB_PATH
15632 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15634 soname_spec='${libname}${release}${shared_ext}$major'
15635 ;;
15636 esac
15637 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15638 postinstall_cmds='chmod 555 $lib'
15639 ;;
15640
ac40fd9e 15641interix[3-9]*)
d9898ee8 15642 version_type=linux
15643 need_lib_prefix=no
15644 need_version=no
15645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15646 soname_spec='${libname}${release}${shared_ext}$major'
15647 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15648 shlibpath_var=LD_LIBRARY_PATH
15649 shlibpath_overrides_runpath=no
15650 hardcode_into_libs=yes
15651 ;;
15652
15653irix5* | irix6* | nonstopux*)
15654 case $host_os in
15655 nonstopux*) version_type=nonstopux ;;
15656 *)
15657 if test "$lt_cv_prog_gnu_ld" = yes; then
15658 version_type=linux
15659 else
15660 version_type=irix
15661 fi ;;
15662 esac
15663 need_lib_prefix=no
15664 need_version=no
15665 soname_spec='${libname}${release}${shared_ext}$major'
15666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15667 case $host_os in
15668 irix5* | nonstopux*)
15669 libsuff= shlibsuff=
15670 ;;
15671 *)
15672 case $LD in # libtool.m4 will add one of these switches to LD
15673 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15674 libsuff= shlibsuff= libmagic=32-bit;;
15675 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15676 libsuff=32 shlibsuff=N32 libmagic=N32;;
15677 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15678 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15679 *) libsuff= shlibsuff= libmagic=never-match;;
15680 esac
15681 ;;
15682 esac
15683 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15684 shlibpath_overrides_runpath=no
15685 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15686 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15687 hardcode_into_libs=yes
15688 ;;
15689
15690# No shared lib support for Linux oldld, aout, or coff.
15691linux*oldld* | linux*aout* | linux*coff*)
15692 dynamic_linker=no
15693 ;;
15694
15695# This must be Linux ELF.
ac40fd9e 15696linux* | k*bsd*-gnu)
d9898ee8 15697 version_type=linux
15698 need_lib_prefix=no
15699 need_version=no
15700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15701 soname_spec='${libname}${release}${shared_ext}$major'
15702 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15703 shlibpath_var=LD_LIBRARY_PATH
15704 shlibpath_overrides_runpath=no
15705 # This implies no fast_install, which is unacceptable.
15706 # Some rework will be needed to allow for fast_install
15707 # before this can be enabled.
15708 hardcode_into_libs=yes
ac40fd9e 15709 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15710 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
d9898ee8 15711
15712 # Append ld.so.conf contents to the search path
15713 if test -f /etc/ld.so.conf; then
ac40fd9e 15714 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' ' '`
15715 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
d9898ee8 15716 fi
15717
15718 # We used to test for /lib/ld.so.1 and disable shared libraries on
15719 # powerpc, because MkLinux only supported shared libraries with the
15720 # GNU dynamic linker. Since this was broken with cross compilers,
15721 # most powerpc-linux boxes support dynamic linking these days and
15722 # people can always --disable-shared, the test was removed, and we
15723 # assume the GNU/Linux dynamic linker is in use.
15724 dynamic_linker='GNU/Linux ld.so'
15725 ;;
15726
d9898ee8 15727netbsd*)
15728 version_type=sunos
15729 need_lib_prefix=no
15730 need_version=no
15731 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15733 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15734 dynamic_linker='NetBSD (a.out) ld.so'
15735 else
15736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15737 soname_spec='${libname}${release}${shared_ext}$major'
15738 dynamic_linker='NetBSD ld.elf_so'
15739 fi
15740 shlibpath_var=LD_LIBRARY_PATH
15741 shlibpath_overrides_runpath=yes
15742 hardcode_into_libs=yes
15743 ;;
15744
15745newsos6)
15746 version_type=linux
15747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15748 shlibpath_var=LD_LIBRARY_PATH
15749 shlibpath_overrides_runpath=yes
15750 ;;
15751
15752nto-qnx*)
15753 version_type=linux
15754 need_lib_prefix=no
15755 need_version=no
15756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15757 soname_spec='${libname}${release}${shared_ext}$major'
15758 shlibpath_var=LD_LIBRARY_PATH
15759 shlibpath_overrides_runpath=yes
15760 ;;
15761
15762openbsd*)
15763 version_type=sunos
15764 sys_lib_dlsearch_path_spec="/usr/lib"
15765 need_lib_prefix=no
15766 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15767 case $host_os in
15768 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15769 *) need_version=no ;;
15770 esac
15771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15772 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15773 shlibpath_var=LD_LIBRARY_PATH
15774 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15775 case $host_os in
15776 openbsd2.[89] | openbsd2.[89].*)
15777 shlibpath_overrides_runpath=no
15778 ;;
15779 *)
15780 shlibpath_overrides_runpath=yes
15781 ;;
15782 esac
15783 else
15784 shlibpath_overrides_runpath=yes
15785 fi
15786 ;;
15787
15788os2*)
15789 libname_spec='$name'
15790 shrext_cmds=".dll"
15791 need_lib_prefix=no
15792 library_names_spec='$libname${shared_ext} $libname.a'
15793 dynamic_linker='OS/2 ld.exe'
15794 shlibpath_var=LIBPATH
15795 ;;
15796
15797osf3* | osf4* | osf5*)
15798 version_type=osf
15799 need_lib_prefix=no
15800 need_version=no
15801 soname_spec='${libname}${release}${shared_ext}$major'
15802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15803 shlibpath_var=LD_LIBRARY_PATH
15804 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15805 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15806 ;;
15807
ac40fd9e 15808rdos*)
15809 dynamic_linker=no
15810 ;;
15811
d9898ee8 15812solaris*)
15813 version_type=linux
15814 need_lib_prefix=no
15815 need_version=no
15816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15817 soname_spec='${libname}${release}${shared_ext}$major'
15818 shlibpath_var=LD_LIBRARY_PATH
15819 shlibpath_overrides_runpath=yes
15820 hardcode_into_libs=yes
15821 # ldd complains unless libraries are executable
15822 postinstall_cmds='chmod +x $lib'
15823 ;;
15824
15825sunos4*)
15826 version_type=sunos
15827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15828 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15829 shlibpath_var=LD_LIBRARY_PATH
15830 shlibpath_overrides_runpath=yes
15831 if test "$with_gnu_ld" = yes; then
15832 need_lib_prefix=no
15833 fi
15834 need_version=yes
15835 ;;
15836
15837sysv4 | sysv4.3*)
15838 version_type=linux
15839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15840 soname_spec='${libname}${release}${shared_ext}$major'
15841 shlibpath_var=LD_LIBRARY_PATH
15842 case $host_vendor in
15843 sni)
15844 shlibpath_overrides_runpath=no
15845 need_lib_prefix=no
15846 export_dynamic_flag_spec='${wl}-Blargedynsym'
15847 runpath_var=LD_RUN_PATH
15848 ;;
15849 siemens)
15850 need_lib_prefix=no
15851 ;;
15852 motorola)
15853 need_lib_prefix=no
15854 need_version=no
15855 shlibpath_overrides_runpath=no
15856 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15857 ;;
15858 esac
15859 ;;
15860
15861sysv4*MP*)
15862 if test -d /usr/nec ;then
15863 version_type=linux
15864 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15865 soname_spec='$libname${shared_ext}.$major'
15866 shlibpath_var=LD_LIBRARY_PATH
15867 fi
15868 ;;
15869
15870sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15871 version_type=freebsd-elf
15872 need_lib_prefix=no
15873 need_version=no
15874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15875 soname_spec='${libname}${release}${shared_ext}$major'
15876 shlibpath_var=LD_LIBRARY_PATH
15877 hardcode_into_libs=yes
15878 if test "$with_gnu_ld" = yes; then
15879 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15880 shlibpath_overrides_runpath=no
15881 else
15882 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15883 shlibpath_overrides_runpath=yes
15884 case $host_os in
15885 sco3.2v5*)
15886 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15887 ;;
15888 esac
15889 fi
15890 sys_lib_dlsearch_path_spec='/usr/lib'
15891 ;;
15892
15893uts4*)
15894 version_type=linux
15895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15896 soname_spec='${libname}${release}${shared_ext}$major'
15897 shlibpath_var=LD_LIBRARY_PATH
15898 ;;
15899
15900*)
15901 dynamic_linker=no
15902 ;;
15903esac
dd184caf 15904{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15905echo "${ECHO_T}$dynamic_linker" >&6; }
d9898ee8 15906test "$dynamic_linker" = no && can_build_shared=no
15907
15908variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15909if test "$GCC" = yes; then
15910 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15911fi
15912
dd184caf 15913{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15914echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
d9898ee8 15915hardcode_action_F77=
15916if test -n "$hardcode_libdir_flag_spec_F77" || \
15917 test -n "$runpath_var_F77" || \
15918 test "X$hardcode_automatic_F77" = "Xyes" ; then
15919
15920 # We can hardcode non-existant directories.
15921 if test "$hardcode_direct_F77" != no &&
15922 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15923 # have to relink, otherwise we might link with an installed library
15924 # when we should be linking with a yet-to-be-installed one
15925 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15926 test "$hardcode_minus_L_F77" != no; then
15927 # Linking always hardcodes the temporary library directory.
15928 hardcode_action_F77=relink
15929 else
15930 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15931 hardcode_action_F77=immediate
15932 fi
15933else
15934 # We cannot hardcode anything, or else we can only hardcode existing
15935 # directories.
15936 hardcode_action_F77=unsupported
15937fi
dd184caf 15938{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15939echo "${ECHO_T}$hardcode_action_F77" >&6; }
d9898ee8 15940
15941if test "$hardcode_action_F77" = relink; then
15942 # Fast installation is not supported
15943 enable_fast_install=no
15944elif test "$shlibpath_overrides_runpath" = yes ||
15945 test "$enable_shared" = no; then
15946 # Fast installation is not necessary
15947 enable_fast_install=needless
15948fi
15949
15950
15951# The else clause should only fire when bootstrapping the
15952# libtool distribution, otherwise you forgot to ship ltmain.sh
15953# with your package, and you will get complaints that there are
15954# no rules to generate ltmain.sh.
15955if test -f "$ltmain"; then
15956 # See if we are running on zsh, and set the options which allow our commands through
15957 # without removal of \ escapes.
15958 if test -n "${ZSH_VERSION+set}" ; then
15959 setopt NO_GLOB_SUBST
15960 fi
15961 # Now quote all the things that may contain metacharacters while being
15962 # careful not to overquote the AC_SUBSTed values. We take copies of the
15963 # variables and quote the copies for generation of the libtool script.
15964 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15965 SED SHELL STRIP \
15966 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15967 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15968 deplibs_check_method reload_flag reload_cmds need_locks \
15969 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15970 lt_cv_sys_global_symbol_to_c_name_address \
15971 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15972 old_postinstall_cmds old_postuninstall_cmds \
15973 compiler_F77 \
15974 CC_F77 \
15975 LD_F77 \
15976 lt_prog_compiler_wl_F77 \
15977 lt_prog_compiler_pic_F77 \
15978 lt_prog_compiler_static_F77 \
15979 lt_prog_compiler_no_builtin_flag_F77 \
15980 export_dynamic_flag_spec_F77 \
15981 thread_safe_flag_spec_F77 \
15982 whole_archive_flag_spec_F77 \
15983 enable_shared_with_static_runtimes_F77 \
15984 old_archive_cmds_F77 \
15985 old_archive_from_new_cmds_F77 \
15986 predep_objects_F77 \
15987 postdep_objects_F77 \
15988 predeps_F77 \
15989 postdeps_F77 \
15990 compiler_lib_search_path_F77 \
15991 archive_cmds_F77 \
15992 archive_expsym_cmds_F77 \
15993 postinstall_cmds_F77 \
15994 postuninstall_cmds_F77 \
15995 old_archive_from_expsyms_cmds_F77 \
15996 allow_undefined_flag_F77 \
15997 no_undefined_flag_F77 \
15998 export_symbols_cmds_F77 \
15999 hardcode_libdir_flag_spec_F77 \
16000 hardcode_libdir_flag_spec_ld_F77 \
16001 hardcode_libdir_separator_F77 \
16002 hardcode_automatic_F77 \
16003 module_cmds_F77 \
16004 module_expsym_cmds_F77 \
16005 lt_cv_prog_compiler_c_o_F77 \
ac40fd9e 16006 fix_srcfile_path_F77 \
d9898ee8 16007 exclude_expsyms_F77 \
16008 include_expsyms_F77; do
16009
16010 case $var in
16011 old_archive_cmds_F77 | \
16012 old_archive_from_new_cmds_F77 | \
16013 archive_cmds_F77 | \
16014 archive_expsym_cmds_F77 | \
16015 module_cmds_F77 | \
16016 module_expsym_cmds_F77 | \
16017 old_archive_from_expsyms_cmds_F77 | \
16018 export_symbols_cmds_F77 | \
16019 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16020 postinstall_cmds | postuninstall_cmds | \
16021 old_postinstall_cmds | old_postuninstall_cmds | \
16022 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16023 # Double-quote double-evaled strings.
16024 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16025 ;;
16026 *)
16027 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16028 ;;
16029 esac
16030 done
16031
16032 case $lt_echo in
16033 *'\$0 --fallback-echo"')
16034 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16035 ;;
16036 esac
16037
16038cfgfile="$ofile"
16039
16040 cat <<__EOF__ >> "$cfgfile"
16041# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16042
16043# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16044
16045# Shell to use when invoking shell scripts.
16046SHELL=$lt_SHELL
16047
16048# Whether or not to build shared libraries.
16049build_libtool_libs=$enable_shared
16050
16051# Whether or not to build static libraries.
16052build_old_libs=$enable_static
16053
16054# Whether or not to add -lc for building shared libraries.
16055build_libtool_need_lc=$archive_cmds_need_lc_F77
16056
16057# Whether or not to disallow shared libs when runtime libs are static
16058allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16059
16060# Whether or not to optimize for fast installation.
16061fast_install=$enable_fast_install
16062
16063# The host system.
16064host_alias=$host_alias
16065host=$host
16066host_os=$host_os
16067
16068# The build system.
16069build_alias=$build_alias
16070build=$build
16071build_os=$build_os
16072
16073# An echo program that does not interpret backslashes.
16074echo=$lt_echo
16075
16076# The archiver.
16077AR=$lt_AR
16078AR_FLAGS=$lt_AR_FLAGS
16079
16080# A C compiler.
16081LTCC=$lt_LTCC
16082
16083# LTCC compiler flags.
16084LTCFLAGS=$lt_LTCFLAGS
16085
16086# A language-specific compiler.
16087CC=$lt_compiler_F77
16088
16089# Is the compiler the GNU C compiler?
16090with_gcc=$GCC_F77
16091
d9898ee8 16092# An ERE matcher.
16093EGREP=$lt_EGREP
16094
16095# The linker used to build libraries.
16096LD=$lt_LD_F77
16097
16098# Whether we need hard or soft links.
16099LN_S=$lt_LN_S
16100
16101# A BSD-compatible nm program.
16102NM=$lt_NM
16103
16104# A symbol stripping program
16105STRIP=$lt_STRIP
16106
16107# Used to examine libraries when file_magic_cmd begins "file"
16108MAGIC_CMD=$MAGIC_CMD
16109
16110# Used on cygwin: DLL creation program.
16111DLLTOOL="$DLLTOOL"
16112
16113# Used on cygwin: object dumper.
16114OBJDUMP="$OBJDUMP"
16115
16116# Used on cygwin: assembler.
16117AS="$AS"
16118
16119# The name of the directory that contains temporary libtool files.
16120objdir=$objdir
16121
16122# How to create reloadable object files.
16123reload_flag=$lt_reload_flag
16124reload_cmds=$lt_reload_cmds
16125
16126# How to pass a linker flag through the compiler.
16127wl=$lt_lt_prog_compiler_wl_F77
16128
16129# Object file suffix (normally "o").
16130objext="$ac_objext"
16131
16132# Old archive suffix (normally "a").
16133libext="$libext"
16134
16135# Shared library suffix (normally ".so").
16136shrext_cmds='$shrext_cmds'
16137
16138# Executable file suffix (normally "").
16139exeext="$exeext"
16140
16141# Additional compiler flags for building library objects.
16142pic_flag=$lt_lt_prog_compiler_pic_F77
16143pic_mode=$pic_mode
16144
16145# What is the maximum length of a command?
16146max_cmd_len=$lt_cv_sys_max_cmd_len
16147
16148# Does compiler simultaneously support -c and -o options?
16149compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16150
16151# Must we lock files when doing compilation?
16152need_locks=$lt_need_locks
16153
16154# Do we need the lib prefix for modules?
16155need_lib_prefix=$need_lib_prefix
16156
16157# Do we need a version for libraries?
16158need_version=$need_version
16159
16160# Whether dlopen is supported.
16161dlopen_support=$enable_dlopen
16162
16163# Whether dlopen of programs is supported.
16164dlopen_self=$enable_dlopen_self
16165
16166# Whether dlopen of statically linked programs is supported.
16167dlopen_self_static=$enable_dlopen_self_static
16168
16169# Compiler flag to prevent dynamic linking.
16170link_static_flag=$lt_lt_prog_compiler_static_F77
16171
16172# Compiler flag to turn off builtin functions.
16173no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16174
16175# Compiler flag to allow reflexive dlopens.
16176export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16177
16178# Compiler flag to generate shared objects directly from archives.
16179whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16180
16181# Compiler flag to generate thread-safe objects.
16182thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16183
16184# Library versioning type.
16185version_type=$version_type
16186
16187# Format of library name prefix.
16188libname_spec=$lt_libname_spec
16189
16190# List of archive names. First name is the real one, the rest are links.
16191# The last name is the one that the linker finds with -lNAME.
16192library_names_spec=$lt_library_names_spec
16193
16194# The coded name of the library, if different from the real name.
16195soname_spec=$lt_soname_spec
16196
16197# Commands used to build and install an old-style archive.
16198RANLIB=$lt_RANLIB
16199old_archive_cmds=$lt_old_archive_cmds_F77
16200old_postinstall_cmds=$lt_old_postinstall_cmds
16201old_postuninstall_cmds=$lt_old_postuninstall_cmds
16202
16203# Create an old-style archive from a shared archive.
16204old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16205
16206# Create a temporary old-style archive to link instead of a shared archive.
16207old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16208
16209# Commands used to build and install a shared archive.
16210archive_cmds=$lt_archive_cmds_F77
16211archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16212postinstall_cmds=$lt_postinstall_cmds
16213postuninstall_cmds=$lt_postuninstall_cmds
16214
16215# Commands used to build a loadable module (assumed same as above if empty)
16216module_cmds=$lt_module_cmds_F77
16217module_expsym_cmds=$lt_module_expsym_cmds_F77
16218
16219# Commands to strip libraries.
16220old_striplib=$lt_old_striplib
16221striplib=$lt_striplib
16222
16223# Dependencies to place before the objects being linked to create a
16224# shared library.
dd184caf 16225predep_objects=$lt_predep_objects_F77
d9898ee8 16226
16227# Dependencies to place after the objects being linked to create a
16228# shared library.
dd184caf 16229postdep_objects=$lt_postdep_objects_F77
d9898ee8 16230
16231# Dependencies to place before the objects being linked to create a
16232# shared library.
16233predeps=$lt_predeps_F77
16234
16235# Dependencies to place after the objects being linked to create a
16236# shared library.
16237postdeps=$lt_postdeps_F77
16238
16239# The library search path used internally by the compiler when linking
16240# a shared library.
dd184caf 16241compiler_lib_search_path=$lt_compiler_lib_search_path_F77
d9898ee8 16242
16243# Method to check whether dependent libraries are shared objects.
16244deplibs_check_method=$lt_deplibs_check_method
16245
16246# Command to use when deplibs_check_method == file_magic.
16247file_magic_cmd=$lt_file_magic_cmd
16248
16249# Flag that allows shared libraries with undefined symbols to be built.
16250allow_undefined_flag=$lt_allow_undefined_flag_F77
16251
16252# Flag that forces no undefined symbols.
16253no_undefined_flag=$lt_no_undefined_flag_F77
16254
16255# Commands used to finish a libtool library installation in a directory.
16256finish_cmds=$lt_finish_cmds
16257
16258# Same as above, but a single script fragment to be evaled but not shown.
16259finish_eval=$lt_finish_eval
16260
16261# Take the output of nm and produce a listing of raw symbols and C names.
16262global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16263
16264# Transform the output of nm in a proper C declaration
16265global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16266
16267# Transform the output of nm in a C name address pair
16268global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16269
16270# This is the shared library runtime path variable.
16271runpath_var=$runpath_var
16272
16273# This is the shared library path variable.
16274shlibpath_var=$shlibpath_var
16275
16276# Is shlibpath searched before the hard-coded library search path?
16277shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16278
16279# How to hardcode a shared library path into an executable.
16280hardcode_action=$hardcode_action_F77
16281
16282# Whether we should hardcode library paths into libraries.
16283hardcode_into_libs=$hardcode_into_libs
16284
16285# Flag to hardcode \$libdir into a binary during linking.
16286# This must work even if \$libdir does not exist.
16287hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16288
16289# If ld is used when linking, flag to hardcode \$libdir into
16290# a binary during linking. This must work even if \$libdir does
16291# not exist.
16292hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16293
16294# Whether we need a single -rpath flag with a separated argument.
16295hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16296
16297# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16298# resulting binary.
16299hardcode_direct=$hardcode_direct_F77
16300
16301# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16302# resulting binary.
16303hardcode_minus_L=$hardcode_minus_L_F77
16304
16305# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16306# the resulting binary.
16307hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16308
16309# Set to yes if building a shared library automatically hardcodes DIR into the library
16310# and all subsequent libraries and executables linked against it.
16311hardcode_automatic=$hardcode_automatic_F77
16312
16313# Variables whose values should be saved in libtool wrapper scripts and
16314# restored at relink time.
16315variables_saved_for_relink="$variables_saved_for_relink"
16316
16317# Whether libtool must link a program against all its dependency libraries.
16318link_all_deplibs=$link_all_deplibs_F77
16319
16320# Compile-time system search path for libraries
dd184caf 16321sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
d9898ee8 16322
16323# Run-time system search path for libraries
16324sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16325
16326# Fix the shell variable \$srcfile for the compiler.
ac40fd9e 16327fix_srcfile_path=$lt_fix_srcfile_path
d9898ee8 16328
16329# Set to yes if exported symbols are required.
16330always_export_symbols=$always_export_symbols_F77
16331
16332# The commands to list exported symbols.
16333export_symbols_cmds=$lt_export_symbols_cmds_F77
16334
16335# The commands to extract the exported symbol list from a shared archive.
16336extract_expsyms_cmds=$lt_extract_expsyms_cmds
16337
16338# Symbols that should not be listed in the preloaded symbols.
16339exclude_expsyms=$lt_exclude_expsyms_F77
16340
16341# Symbols that must always be exported.
16342include_expsyms=$lt_include_expsyms_F77
16343
16344# ### END LIBTOOL TAG CONFIG: $tagname
16345
16346__EOF__
16347
16348
16349else
16350 # If there is no Makefile yet, we rely on a make rule to execute
16351 # `config.status --recheck' to rerun these tests and create the
16352 # libtool script then.
16353 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16354 if test -f "$ltmain_in"; then
16355 test -f Makefile && make "$ltmain"
16356 fi
16357fi
16358
16359
16360ac_ext=c
16361ac_cpp='$CPP $CPPFLAGS'
16362ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16363ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16364ac_compiler_gnu=$ac_cv_c_compiler_gnu
16365
16366CC="$lt_save_CC"
16367
16368 else
16369 tagname=""
16370 fi
16371 ;;
16372
16373 GCJ)
16374 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16375
16376
d9898ee8 16377# Source file extension for Java test sources.
16378ac_ext=java
16379
16380# Object file extension for compiled Java test sources.
16381objext=o
16382objext_GCJ=$objext
16383
16384# Code to be used in simple compile tests
ac40fd9e 16385lt_simple_compile_test_code="class foo {}"
d9898ee8 16386
16387# Code to be used in simple link tests
ac40fd9e 16388lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
d9898ee8 16389
16390# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16391
16392# If no C compiler was specified, use CC.
16393LTCC=${LTCC-"$CC"}
16394
16395# If no C compiler flags were specified, use CFLAGS.
16396LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16397
16398# Allow CC to be a program name with arguments.
16399compiler=$CC
16400
16401
16402# save warnings/boilerplate of simple test code
16403ac_outfile=conftest.$ac_objext
ac40fd9e 16404echo "$lt_simple_compile_test_code" >conftest.$ac_ext
d9898ee8 16405eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16406_lt_compiler_boilerplate=`cat conftest.err`
16407$rm conftest*
16408
16409ac_outfile=conftest.$ac_objext
ac40fd9e 16410echo "$lt_simple_link_test_code" >conftest.$ac_ext
d9898ee8 16411eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16412_lt_linker_boilerplate=`cat conftest.err`
16413$rm conftest*
16414
16415
16416# Allow CC to be a program name with arguments.
16417lt_save_CC="$CC"
16418CC=${GCJ-"gcj"}
16419compiler=$CC
16420compiler_GCJ=$CC
16421for cc_temp in $compiler""; do
16422 case $cc_temp in
16423 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16424 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16425 \-*) ;;
16426 *) break;;
16427 esac
16428done
16429cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16430
16431
16432# GCJ did not exist at the time GCC didn't implicitly link libc in.
16433archive_cmds_need_lc_GCJ=no
16434
16435old_archive_cmds_GCJ=$old_archive_cmds
16436
16437
16438lt_prog_compiler_no_builtin_flag_GCJ=
16439
16440if test "$GCC" = yes; then
16441 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16442
16443
dd184caf 16444{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16445echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
d9898ee8 16446if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16447 echo $ECHO_N "(cached) $ECHO_C" >&6
16448else
16449 lt_cv_prog_compiler_rtti_exceptions=no
16450 ac_outfile=conftest.$ac_objext
ac40fd9e 16451 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 16452 lt_compiler_flag="-fno-rtti -fno-exceptions"
16453 # Insert the option either (1) after the last *FLAGS variable, or
16454 # (2) before a word containing "conftest.", or (3) at the end.
16455 # Note that $ac_compile itself does not contain backslashes and begins
16456 # with a dollar sign (not a hyphen), so the echo should work correctly.
16457 # The option is referenced via a variable to avoid confusing sed.
16458 lt_compile=`echo "$ac_compile" | $SED \
16459 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16460 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16461 -e 's:$: $lt_compiler_flag:'`
ac40fd9e 16462 (eval echo "\"\$as_me:16462: $lt_compile\"" >&5)
d9898ee8 16463 (eval "$lt_compile" 2>conftest.err)
16464 ac_status=$?
16465 cat conftest.err >&5
ac40fd9e 16466 echo "$as_me:16466: \$? = $ac_status" >&5
d9898ee8 16467 if (exit $ac_status) && test -s "$ac_outfile"; then
16468 # The compiler can only warn and ignore the option if not recognized
16469 # So say no if there are warnings other than the usual output.
16470 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16471 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16472 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16473 lt_cv_prog_compiler_rtti_exceptions=yes
16474 fi
16475 fi
16476 $rm conftest*
16477
16478fi
dd184caf 16479{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16480echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
d9898ee8 16481
16482if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16483 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16484else
16485 :
16486fi
16487
16488fi
16489
16490lt_prog_compiler_wl_GCJ=
16491lt_prog_compiler_pic_GCJ=
16492lt_prog_compiler_static_GCJ=
16493
dd184caf 16494{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16495echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
d9898ee8 16496
16497 if test "$GCC" = yes; then
16498 lt_prog_compiler_wl_GCJ='-Wl,'
16499 lt_prog_compiler_static_GCJ='-static'
16500
16501 case $host_os in
16502 aix*)
16503 # All AIX code is PIC.
16504 if test "$host_cpu" = ia64; then
16505 # AIX 5 now supports IA64 processor
16506 lt_prog_compiler_static_GCJ='-Bstatic'
16507 fi
16508 ;;
16509
16510 amigaos*)
16511 # FIXME: we need at least 68020 code to build shared libraries, but
16512 # adding the `-m68020' flag to GCC prevents building anything better,
16513 # like `-m68040'.
16514 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16515 ;;
16516
ac40fd9e 16517 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
d9898ee8 16518 # PIC is the default for these OSes.
16519 ;;
16520
ac40fd9e 16521 mingw* | cygwin* | pw32* | os2*)
d9898ee8 16522 # This hack is so that the source file can tell whether it is being
16523 # built for inclusion in a dll (and should export symbols for example).
ac40fd9e 16524 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16525 # (--disable-auto-import) libraries
d9898ee8 16526 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16527 ;;
16528
16529 darwin* | rhapsody*)
16530 # PIC is the default on this platform
16531 # Common symbols not allowed in MH_DYLIB files
16532 lt_prog_compiler_pic_GCJ='-fno-common'
16533 ;;
16534
ac40fd9e 16535 interix[3-9]*)
d9898ee8 16536 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16537 # Instead, we relocate shared libraries at runtime.
16538 ;;
16539
16540 msdosdjgpp*)
16541 # Just because we use GCC doesn't mean we suddenly get shared libraries
16542 # on systems that don't support them.
16543 lt_prog_compiler_can_build_shared_GCJ=no
16544 enable_shared=no
16545 ;;
16546
16547 sysv4*MP*)
16548 if test -d /usr/nec; then
16549 lt_prog_compiler_pic_GCJ=-Kconform_pic
16550 fi
16551 ;;
16552
16553 hpux*)
16554 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16555 # not for PA HP-UX.
16556 case $host_cpu in
16557 hppa*64*|ia64*)
16558 # +Z the default
16559 ;;
16560 *)
16561 lt_prog_compiler_pic_GCJ='-fPIC'
16562 ;;
16563 esac
16564 ;;
16565
16566 *)
16567 lt_prog_compiler_pic_GCJ='-fPIC'
16568 ;;
16569 esac
16570 else
16571 # PORTME Check for flag to pass linker flags through the system compiler.
16572 case $host_os in
16573 aix*)
16574 lt_prog_compiler_wl_GCJ='-Wl,'
16575 if test "$host_cpu" = ia64; then
16576 # AIX 5 now supports IA64 processor
16577 lt_prog_compiler_static_GCJ='-Bstatic'
16578 else
16579 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16580 fi
16581 ;;
16582 darwin*)
16583 # PIC is the default on this platform
16584 # Common symbols not allowed in MH_DYLIB files
16585 case $cc_basename in
16586 xlc*)
16587 lt_prog_compiler_pic_GCJ='-qnocommon'
16588 lt_prog_compiler_wl_GCJ='-Wl,'
16589 ;;
16590 esac
16591 ;;
16592
ac40fd9e 16593 mingw* | cygwin* | pw32* | os2*)
d9898ee8 16594 # This hack is so that the source file can tell whether it is being
16595 # built for inclusion in a dll (and should export symbols for example).
16596 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16597 ;;
16598
16599 hpux9* | hpux10* | hpux11*)
16600 lt_prog_compiler_wl_GCJ='-Wl,'
16601 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16602 # not for PA HP-UX.
16603 case $host_cpu in
16604 hppa*64*|ia64*)
16605 # +Z the default
16606 ;;
16607 *)
16608 lt_prog_compiler_pic_GCJ='+Z'
16609 ;;
16610 esac
16611 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16612 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16613 ;;
16614
16615 irix5* | irix6* | nonstopux*)
16616 lt_prog_compiler_wl_GCJ='-Wl,'
16617 # PIC (with -KPIC) is the default.
16618 lt_prog_compiler_static_GCJ='-non_shared'
16619 ;;
16620
16621 newsos6)
16622 lt_prog_compiler_pic_GCJ='-KPIC'
16623 lt_prog_compiler_static_GCJ='-Bstatic'
16624 ;;
16625
ac40fd9e 16626 linux* | k*bsd*-gnu)
d9898ee8 16627 case $cc_basename in
16628 icc* | ecc*)
16629 lt_prog_compiler_wl_GCJ='-Wl,'
16630 lt_prog_compiler_pic_GCJ='-KPIC'
16631 lt_prog_compiler_static_GCJ='-static'
16632 ;;
16633 pgcc* | pgf77* | pgf90* | pgf95*)
16634 # Portland Group compilers (*not* the Pentium gcc compiler,
16635 # which looks to be a dead project)
16636 lt_prog_compiler_wl_GCJ='-Wl,'
16637 lt_prog_compiler_pic_GCJ='-fpic'
16638 lt_prog_compiler_static_GCJ='-Bstatic'
16639 ;;
16640 ccc*)
16641 lt_prog_compiler_wl_GCJ='-Wl,'
16642 # All Alpha code is PIC.
16643 lt_prog_compiler_static_GCJ='-non_shared'
16644 ;;
ac40fd9e 16645 *)
16646 case `$CC -V 2>&1 | sed 5q` in
16647 *Sun\ C*)
16648 # Sun C 5.9
16649 lt_prog_compiler_pic_GCJ='-KPIC'
16650 lt_prog_compiler_static_GCJ='-Bstatic'
16651 lt_prog_compiler_wl_GCJ='-Wl,'
16652 ;;
16653 *Sun\ F*)
16654 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16655 lt_prog_compiler_pic_GCJ='-KPIC'
16656 lt_prog_compiler_static_GCJ='-Bstatic'
16657 lt_prog_compiler_wl_GCJ=''
16658 ;;
16659 esac
16660 ;;
d9898ee8 16661 esac
16662 ;;
16663
16664 osf3* | osf4* | osf5*)
16665 lt_prog_compiler_wl_GCJ='-Wl,'
16666 # All OSF/1 code is PIC.
16667 lt_prog_compiler_static_GCJ='-non_shared'
16668 ;;
16669
ac40fd9e 16670 rdos*)
16671 lt_prog_compiler_static_GCJ='-non_shared'
16672 ;;
16673
d9898ee8 16674 solaris*)
16675 lt_prog_compiler_pic_GCJ='-KPIC'
16676 lt_prog_compiler_static_GCJ='-Bstatic'
16677 case $cc_basename in
16678 f77* | f90* | f95*)
16679 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16680 *)
16681 lt_prog_compiler_wl_GCJ='-Wl,';;
16682 esac
16683 ;;
16684
16685 sunos4*)
16686 lt_prog_compiler_wl_GCJ='-Qoption ld '
16687 lt_prog_compiler_pic_GCJ='-PIC'
16688 lt_prog_compiler_static_GCJ='-Bstatic'
16689 ;;
16690
16691 sysv4 | sysv4.2uw2* | sysv4.3*)
16692 lt_prog_compiler_wl_GCJ='-Wl,'
16693 lt_prog_compiler_pic_GCJ='-KPIC'
16694 lt_prog_compiler_static_GCJ='-Bstatic'
16695 ;;
16696
16697 sysv4*MP*)
16698 if test -d /usr/nec ;then
16699 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16700 lt_prog_compiler_static_GCJ='-Bstatic'
16701 fi
16702 ;;
16703
16704 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16705 lt_prog_compiler_wl_GCJ='-Wl,'
16706 lt_prog_compiler_pic_GCJ='-KPIC'
16707 lt_prog_compiler_static_GCJ='-Bstatic'
16708 ;;
16709
16710 unicos*)
16711 lt_prog_compiler_wl_GCJ='-Wl,'
16712 lt_prog_compiler_can_build_shared_GCJ=no
16713 ;;
16714
16715 uts4*)
16716 lt_prog_compiler_pic_GCJ='-pic'
16717 lt_prog_compiler_static_GCJ='-Bstatic'
16718 ;;
16719
16720 *)
16721 lt_prog_compiler_can_build_shared_GCJ=no
16722 ;;
16723 esac
16724 fi
16725
dd184caf 16726{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16727echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
d9898ee8 16728
16729#
16730# Check to make sure the PIC flag actually works.
16731#
16732if test -n "$lt_prog_compiler_pic_GCJ"; then
16733
dd184caf 16734{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16735echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
d9898ee8 16736if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16737 echo $ECHO_N "(cached) $ECHO_C" >&6
16738else
16739 lt_prog_compiler_pic_works_GCJ=no
16740 ac_outfile=conftest.$ac_objext
ac40fd9e 16741 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 16742 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16743 # Insert the option either (1) after the last *FLAGS variable, or
16744 # (2) before a word containing "conftest.", or (3) at the end.
16745 # Note that $ac_compile itself does not contain backslashes and begins
16746 # with a dollar sign (not a hyphen), so the echo should work correctly.
16747 # The option is referenced via a variable to avoid confusing sed.
16748 lt_compile=`echo "$ac_compile" | $SED \
16749 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16750 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16751 -e 's:$: $lt_compiler_flag:'`
ac40fd9e 16752 (eval echo "\"\$as_me:16752: $lt_compile\"" >&5)
d9898ee8 16753 (eval "$lt_compile" 2>conftest.err)
16754 ac_status=$?
16755 cat conftest.err >&5
ac40fd9e 16756 echo "$as_me:16756: \$? = $ac_status" >&5
d9898ee8 16757 if (exit $ac_status) && test -s "$ac_outfile"; then
16758 # The compiler can only warn and ignore the option if not recognized
16759 # So say no if there are warnings other than the usual output.
16760 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16761 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16762 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16763 lt_prog_compiler_pic_works_GCJ=yes
16764 fi
16765 fi
16766 $rm conftest*
16767
16768fi
dd184caf 16769{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16770echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
d9898ee8 16771
16772if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16773 case $lt_prog_compiler_pic_GCJ in
16774 "" | " "*) ;;
16775 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16776 esac
16777else
16778 lt_prog_compiler_pic_GCJ=
16779 lt_prog_compiler_can_build_shared_GCJ=no
16780fi
16781
16782fi
16783case $host_os in
16784 # For platforms which do not support PIC, -DPIC is meaningless:
16785 *djgpp*)
16786 lt_prog_compiler_pic_GCJ=
16787 ;;
16788 *)
16789 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16790 ;;
16791esac
16792
16793#
16794# Check to make sure the static flag actually works.
16795#
16796wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
dd184caf 16797{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16798echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
d9898ee8 16799if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16800 echo $ECHO_N "(cached) $ECHO_C" >&6
16801else
16802 lt_prog_compiler_static_works_GCJ=no
16803 save_LDFLAGS="$LDFLAGS"
16804 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
ac40fd9e 16805 echo "$lt_simple_link_test_code" > conftest.$ac_ext
d9898ee8 16806 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16807 # The linker can only warn and ignore the option if not recognized
16808 # So say no if there are warnings
16809 if test -s conftest.err; then
16810 # Append any errors to the config.log.
16811 cat conftest.err 1>&5
16812 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16813 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16814 if diff conftest.exp conftest.er2 >/dev/null; then
16815 lt_prog_compiler_static_works_GCJ=yes
16816 fi
16817 else
16818 lt_prog_compiler_static_works_GCJ=yes
16819 fi
16820 fi
16821 $rm conftest*
16822 LDFLAGS="$save_LDFLAGS"
16823
16824fi
dd184caf 16825{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16826echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
d9898ee8 16827
16828if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16829 :
16830else
16831 lt_prog_compiler_static_GCJ=
16832fi
16833
16834
dd184caf 16835{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16836echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
d9898ee8 16837if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16838 echo $ECHO_N "(cached) $ECHO_C" >&6
16839else
16840 lt_cv_prog_compiler_c_o_GCJ=no
16841 $rm -r conftest 2>/dev/null
16842 mkdir conftest
16843 cd conftest
16844 mkdir out
ac40fd9e 16845 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 16846
16847 lt_compiler_flag="-o out/conftest2.$ac_objext"
16848 # Insert the option either (1) after the last *FLAGS variable, or
16849 # (2) before a word containing "conftest.", or (3) at the end.
16850 # Note that $ac_compile itself does not contain backslashes and begins
16851 # with a dollar sign (not a hyphen), so the echo should work correctly.
16852 lt_compile=`echo "$ac_compile" | $SED \
16853 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16854 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16855 -e 's:$: $lt_compiler_flag:'`
ac40fd9e 16856 (eval echo "\"\$as_me:16856: $lt_compile\"" >&5)
d9898ee8 16857 (eval "$lt_compile" 2>out/conftest.err)
16858 ac_status=$?
16859 cat out/conftest.err >&5
ac40fd9e 16860 echo "$as_me:16860: \$? = $ac_status" >&5
d9898ee8 16861 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16862 then
16863 # The compiler can only warn and ignore the option if not recognized
16864 # So say no if there are warnings
16865 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16866 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16867 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16868 lt_cv_prog_compiler_c_o_GCJ=yes
16869 fi
16870 fi
16871 chmod u+w . 2>&5
16872 $rm conftest*
16873 # SGI C++ compiler will create directory out/ii_files/ for
16874 # template instantiation
16875 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16876 $rm out/* && rmdir out
16877 cd ..
16878 rmdir conftest
16879 $rm conftest*
16880
16881fi
dd184caf 16882{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16883echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
d9898ee8 16884
16885
16886hard_links="nottested"
16887if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16888 # do not overwrite the value of need_locks provided by the user
dd184caf 16889 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16890echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
d9898ee8 16891 hard_links=yes
16892 $rm conftest*
16893 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16894 touch conftest.a
16895 ln conftest.a conftest.b 2>&5 || hard_links=no
16896 ln conftest.a conftest.b 2>/dev/null && hard_links=no
dd184caf 16897 { echo "$as_me:$LINENO: result: $hard_links" >&5
16898echo "${ECHO_T}$hard_links" >&6; }
d9898ee8 16899 if test "$hard_links" = no; then
16900 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16901echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16902 need_locks=warn
16903 fi
16904else
16905 need_locks=no
16906fi
16907
dd184caf 16908{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16909echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
d9898ee8 16910
16911 runpath_var=
16912 allow_undefined_flag_GCJ=
16913 enable_shared_with_static_runtimes_GCJ=no
16914 archive_cmds_GCJ=
16915 archive_expsym_cmds_GCJ=
16916 old_archive_From_new_cmds_GCJ=
16917 old_archive_from_expsyms_cmds_GCJ=
16918 export_dynamic_flag_spec_GCJ=
16919 whole_archive_flag_spec_GCJ=
16920 thread_safe_flag_spec_GCJ=
16921 hardcode_libdir_flag_spec_GCJ=
16922 hardcode_libdir_flag_spec_ld_GCJ=
16923 hardcode_libdir_separator_GCJ=
16924 hardcode_direct_GCJ=no
16925 hardcode_minus_L_GCJ=no
16926 hardcode_shlibpath_var_GCJ=unsupported
16927 link_all_deplibs_GCJ=unknown
16928 hardcode_automatic_GCJ=no
16929 module_cmds_GCJ=
16930 module_expsym_cmds_GCJ=
16931 always_export_symbols_GCJ=no
16932 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16933 # include_expsyms should be a list of space-separated symbols to be *always*
16934 # included in the symbol list
16935 include_expsyms_GCJ=
16936 # exclude_expsyms can be an extended regexp of symbols to exclude
16937 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16938 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16939 # as well as any symbol that contains `d'.
16940 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16941 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16942 # platforms (ab)use it in PIC code, but their linkers get confused if
16943 # the symbol is explicitly referenced. Since portable code cannot
16944 # rely on this symbol name, it's probably fine to never include it in
16945 # preloaded symbol tables.
16946 extract_expsyms_cmds=
16947 # Just being paranoid about ensuring that cc_basename is set.
16948 for cc_temp in $compiler""; do
16949 case $cc_temp in
16950 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16951 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16952 \-*) ;;
16953 *) break;;
16954 esac
16955done
16956cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16957
16958 case $host_os in
16959 cygwin* | mingw* | pw32*)
16960 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16961 # When not using gcc, we currently assume that we are using
16962 # Microsoft Visual C++.
16963 if test "$GCC" != yes; then
16964 with_gnu_ld=no
16965 fi
16966 ;;
16967 interix*)
16968 # we just hope/assume this is gcc and not c89 (= MSVC++)
16969 with_gnu_ld=yes
16970 ;;
16971 openbsd*)
16972 with_gnu_ld=no
16973 ;;
16974 esac
16975
16976 ld_shlibs_GCJ=yes
16977 if test "$with_gnu_ld" = yes; then
16978 # If archive_cmds runs LD, not CC, wlarc should be empty
16979 wlarc='${wl}'
16980
16981 # Set some defaults for GNU ld with shared library support. These
16982 # are reset later if shared libraries are not supported. Putting them
16983 # here allows them to be overridden if necessary.
16984 runpath_var=LD_RUN_PATH
16985 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16986 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16987 # ancient GNU ld didn't support --whole-archive et. al.
16988 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16989 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16990 else
16991 whole_archive_flag_spec_GCJ=
16992 fi
16993 supports_anon_versioning=no
16994 case `$LD -v 2>/dev/null` in
16995 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16996 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16997 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16998 *\ 2.11.*) ;; # other 2.11 versions
16999 *) supports_anon_versioning=yes ;;
17000 esac
17001
17002 # See if GNU ld supports shared libraries.
17003 case $host_os in
17004 aix3* | aix4* | aix5*)
17005 # On AIX/PPC, the GNU linker is very broken
17006 if test "$host_cpu" != ia64; then
17007 ld_shlibs_GCJ=no
17008 cat <<EOF 1>&2
17009
17010*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17011*** to be unable to reliably create shared libraries on AIX.
17012*** Therefore, libtool is disabling shared libraries support. If you
17013*** really care for shared libraries, you may want to modify your PATH
17014*** so that a non-GNU linker is found, and then restart.
17015
17016EOF
17017 fi
17018 ;;
17019
17020 amigaos*)
17021 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)'
17022 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17023 hardcode_minus_L_GCJ=yes
17024
17025 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17026 # that the semantics of dynamic libraries on AmigaOS, at least up
17027 # to version 4, is to share data among multiple programs linked
17028 # with the same dynamic library. Since this doesn't match the
17029 # behavior of shared libraries on other platforms, we can't use
17030 # them.
17031 ld_shlibs_GCJ=no
17032 ;;
17033
17034 beos*)
17035 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17036 allow_undefined_flag_GCJ=unsupported
17037 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17038 # support --undefined. This deserves some investigation. FIXME
17039 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17040 else
17041 ld_shlibs_GCJ=no
17042 fi
17043 ;;
17044
17045 cygwin* | mingw* | pw32*)
17046 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17047 # as there is no search path for DLLs.
17048 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17049 allow_undefined_flag_GCJ=unsupported
17050 always_export_symbols_GCJ=no
17051 enable_shared_with_static_runtimes_GCJ=yes
ac40fd9e 17052 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
d9898ee8 17053
17054 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17055 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17056 # If the export-symbols file already is a .def file (1st line
17057 # is EXPORTS), use it as is; otherwise, prepend...
17058 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17059 cp $export_symbols $output_objdir/$soname.def;
17060 else
17061 echo EXPORTS > $output_objdir/$soname.def;
17062 cat $export_symbols >> $output_objdir/$soname.def;
17063 fi~
17064 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17065 else
17066 ld_shlibs_GCJ=no
17067 fi
17068 ;;
17069
ac40fd9e 17070 interix[3-9]*)
d9898ee8 17071 hardcode_direct_GCJ=no
17072 hardcode_shlibpath_var_GCJ=no
17073 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17074 export_dynamic_flag_spec_GCJ='${wl}-E'
17075 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17076 # Instead, shared libraries are loaded at an image base (0x10000000 by
17077 # default) and relocated if they conflict, which is a slow very memory
17078 # consuming and fragmenting process. To avoid this, we pick a random,
17079 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17080 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17081 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'
17082 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'
17083 ;;
17084
ac40fd9e 17085 gnu* | linux* | k*bsd*-gnu)
d9898ee8 17086 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17087 tmp_addflag=
17088 case $cc_basename,$host_cpu in
17089 pgcc*) # Portland Group C compiler
17090 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'
17091 tmp_addflag=' $pic_flag'
17092 ;;
17093 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17094 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'
17095 tmp_addflag=' $pic_flag -Mnomain' ;;
17096 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17097 tmp_addflag=' -i_dynamic' ;;
17098 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17099 tmp_addflag=' -i_dynamic -nofor_main' ;;
17100 ifc* | ifort*) # Intel Fortran compiler
17101 tmp_addflag=' -nofor_main' ;;
17102 esac
ac40fd9e 17103 case `$CC -V 2>&1 | sed 5q` in
17104 *Sun\ C*) # Sun C 5.9
17105 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'
17106 tmp_sharedflag='-G' ;;
17107 *Sun\ F*) # Sun Fortran 8.3
17108 tmp_sharedflag='-G' ;;
17109 *)
17110 tmp_sharedflag='-shared' ;;
17111 esac
17112 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
d9898ee8 17113
17114 if test $supports_anon_versioning = yes; then
17115 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17116 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17117 $echo "local: *; };" >> $output_objdir/$libname.ver~
ac40fd9e 17118 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
d9898ee8 17119 fi
17120 else
17121 ld_shlibs_GCJ=no
17122 fi
17123 ;;
17124
17125 netbsd*)
17126 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17127 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17128 wlarc=
17129 else
17130 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17131 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17132 fi
17133 ;;
17134
17135 solaris*)
17136 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17137 ld_shlibs_GCJ=no
17138 cat <<EOF 1>&2
17139
17140*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17141*** create shared libraries on Solaris systems. Therefore, libtool
17142*** is disabling shared libraries support. We urge you to upgrade GNU
17143*** binutils to release 2.9.1 or newer. Another option is to modify
17144*** your PATH or compiler configuration so that the native linker is
17145*** used, and then restart.
17146
17147EOF
17148 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17149 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17150 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17151 else
17152 ld_shlibs_GCJ=no
17153 fi
17154 ;;
17155
17156 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17157 case `$LD -v 2>&1` in
17158 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17159 ld_shlibs_GCJ=no
17160 cat <<_LT_EOF 1>&2
17161
17162*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17163*** reliably create shared libraries on SCO systems. Therefore, libtool
17164*** is disabling shared libraries support. We urge you to upgrade GNU
17165*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17166*** your PATH or compiler configuration so that the native linker is
17167*** used, and then restart.
17168
17169_LT_EOF
17170 ;;
17171 *)
17172 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17173 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17174 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17175 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17176 else
17177 ld_shlibs_GCJ=no
17178 fi
17179 ;;
17180 esac
17181 ;;
17182
17183 sunos4*)
17184 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17185 wlarc=
17186 hardcode_direct_GCJ=yes
17187 hardcode_shlibpath_var_GCJ=no
17188 ;;
17189
17190 *)
17191 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17192 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17193 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17194 else
17195 ld_shlibs_GCJ=no
17196 fi
17197 ;;
17198 esac
17199
17200 if test "$ld_shlibs_GCJ" = no; then
17201 runpath_var=
17202 hardcode_libdir_flag_spec_GCJ=
17203 export_dynamic_flag_spec_GCJ=
17204 whole_archive_flag_spec_GCJ=
17205 fi
17206 else
17207 # PORTME fill in a description of your system's linker (not GNU ld)
17208 case $host_os in
17209 aix3*)
17210 allow_undefined_flag_GCJ=unsupported
17211 always_export_symbols_GCJ=yes
17212 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'
17213 # Note: this linker hardcodes the directories in LIBPATH if there
17214 # are no directories specified by -L.
17215 hardcode_minus_L_GCJ=yes
17216 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17217 # Neither direct hardcoding nor static linking is supported with a
17218 # broken collect2.
17219 hardcode_direct_GCJ=unsupported
17220 fi
17221 ;;
17222
17223 aix4* | aix5*)
17224 if test "$host_cpu" = ia64; then
17225 # On IA64, the linker does run time linking by default, so we don't
17226 # have to do anything special.
17227 aix_use_runtimelinking=no
17228 exp_sym_flag='-Bexport'
17229 no_entry_flag=""
17230 else
17231 # If we're using GNU nm, then we don't want the "-C" option.
17232 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17233 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17234 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'
17235 else
17236 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'
17237 fi
17238 aix_use_runtimelinking=no
17239
17240 # Test if we are trying to use run time linking or normal
17241 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17242 # need to do runtime linking.
17243 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17244 for ld_flag in $LDFLAGS; do
17245 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17246 aix_use_runtimelinking=yes
17247 break
17248 fi
17249 done
17250 ;;
17251 esac
17252
17253 exp_sym_flag='-bexport'
17254 no_entry_flag='-bnoentry'
17255 fi
17256
17257 # When large executables or shared objects are built, AIX ld can
17258 # have problems creating the table of contents. If linking a library
17259 # or program results in "error TOC overflow" add -mminimal-toc to
17260 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17261 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17262
17263 archive_cmds_GCJ=''
17264 hardcode_direct_GCJ=yes
17265 hardcode_libdir_separator_GCJ=':'
17266 link_all_deplibs_GCJ=yes
17267
17268 if test "$GCC" = yes; then
17269 case $host_os in aix4.[012]|aix4.[012].*)
17270 # We only want to do this on AIX 4.2 and lower, the check
17271 # below for broken collect2 doesn't work under 4.3+
17272 collect2name=`${CC} -print-prog-name=collect2`
17273 if test -f "$collect2name" && \
17274 strings "$collect2name" | grep resolve_lib_name >/dev/null
17275 then
17276 # We have reworked collect2
ac40fd9e 17277 :
d9898ee8 17278 else
17279 # We have old collect2
17280 hardcode_direct_GCJ=unsupported
17281 # It fails to find uninstalled libraries when the uninstalled
17282 # path is not listed in the libpath. Setting hardcode_minus_L
17283 # to unsupported forces relinking
17284 hardcode_minus_L_GCJ=yes
17285 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17286 hardcode_libdir_separator_GCJ=
17287 fi
17288 ;;
17289 esac
17290 shared_flag='-shared'
17291 if test "$aix_use_runtimelinking" = yes; then
17292 shared_flag="$shared_flag "'${wl}-G'
17293 fi
17294 else
17295 # not using gcc
17296 if test "$host_cpu" = ia64; then
17297 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17298 # chokes on -Wl,-G. The following line is correct:
17299 shared_flag='-G'
17300 else
17301 if test "$aix_use_runtimelinking" = yes; then
17302 shared_flag='${wl}-G'
17303 else
17304 shared_flag='${wl}-bM:SRE'
17305 fi
17306 fi
17307 fi
17308
17309 # It seems that -bexpall does not export symbols beginning with
17310 # underscore (_), so it is better to generate a list of symbols to export.
17311 always_export_symbols_GCJ=yes
17312 if test "$aix_use_runtimelinking" = yes; then
17313 # Warning - without using the other runtime loading flags (-brtl),
17314 # -berok will link without error, but may produce a broken library.
17315 allow_undefined_flag_GCJ='-berok'
17316 # Determine the default libpath from the value encoded in an empty executable.
17317 cat >conftest.$ac_ext <<_ACEOF
17318/* confdefs.h. */
17319_ACEOF
17320cat confdefs.h >>conftest.$ac_ext
17321cat >>conftest.$ac_ext <<_ACEOF
17322/* end confdefs.h. */
17323
17324int
17325main ()
17326{
17327
17328 ;
17329 return 0;
17330}
17331_ACEOF
17332rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 17333if { (ac_try="$ac_link"
17334case "(($ac_try" in
17335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17336 *) ac_try_echo=$ac_try;;
17337esac
17338eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17339 (eval "$ac_link") 2>conftest.er1
d9898ee8 17340 ac_status=$?
17341 grep -v '^ *+' conftest.er1 >conftest.err
17342 rm -f conftest.er1
17343 cat conftest.err >&5
17344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 17345 (exit $ac_status); } && {
17346 test -z "$ac_c_werror_flag" ||
17347 test ! -s conftest.err
17348 } && test -s conftest$ac_exeext &&
17349 $as_test_x conftest$ac_exeext; then
d9898ee8 17350
ac40fd9e 17351lt_aix_libpath_sed='
17352 /Import File Strings/,/^$/ {
17353 /^0/ {
17354 s/^0 *\(.*\)$/\1/
17355 p
17356 }
17357 }'
17358aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
d9898ee8 17359# Check for a 64-bit object if we didn't find anything.
ac40fd9e 17360if test -z "$aix_libpath"; then
17361 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17362fi
d9898ee8 17363else
17364 echo "$as_me: failed program was:" >&5
17365sed 's/^/| /' conftest.$ac_ext >&5
17366
dd184caf 17367
d9898ee8 17368fi
dd184caf 17369
17370rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 17371 conftest$ac_exeext conftest.$ac_ext
17372if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17373
17374 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17375 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"
17376 else
17377 if test "$host_cpu" = ia64; then
17378 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17379 allow_undefined_flag_GCJ="-z nodefs"
17380 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"
17381 else
17382 # Determine the default libpath from the value encoded in an empty executable.
17383 cat >conftest.$ac_ext <<_ACEOF
17384/* confdefs.h. */
17385_ACEOF
17386cat confdefs.h >>conftest.$ac_ext
17387cat >>conftest.$ac_ext <<_ACEOF
17388/* end confdefs.h. */
17389
17390int
17391main ()
17392{
17393
17394 ;
17395 return 0;
17396}
17397_ACEOF
17398rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 17399if { (ac_try="$ac_link"
17400case "(($ac_try" in
17401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17402 *) ac_try_echo=$ac_try;;
17403esac
17404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17405 (eval "$ac_link") 2>conftest.er1
d9898ee8 17406 ac_status=$?
17407 grep -v '^ *+' conftest.er1 >conftest.err
17408 rm -f conftest.er1
17409 cat conftest.err >&5
17410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 17411 (exit $ac_status); } && {
17412 test -z "$ac_c_werror_flag" ||
17413 test ! -s conftest.err
17414 } && test -s conftest$ac_exeext &&
17415 $as_test_x conftest$ac_exeext; then
d9898ee8 17416
ac40fd9e 17417lt_aix_libpath_sed='
17418 /Import File Strings/,/^$/ {
17419 /^0/ {
17420 s/^0 *\(.*\)$/\1/
17421 p
17422 }
17423 }'
17424aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
d9898ee8 17425# Check for a 64-bit object if we didn't find anything.
ac40fd9e 17426if test -z "$aix_libpath"; then
17427 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17428fi
d9898ee8 17429else
17430 echo "$as_me: failed program was:" >&5
17431sed 's/^/| /' conftest.$ac_ext >&5
17432
dd184caf 17433
d9898ee8 17434fi
dd184caf 17435
17436rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 17437 conftest$ac_exeext conftest.$ac_ext
17438if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17439
17440 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17441 # Warning - without using the other run time loading flags,
17442 # -berok will link without error, but may produce a broken library.
17443 no_undefined_flag_GCJ=' ${wl}-bernotok'
17444 allow_undefined_flag_GCJ=' ${wl}-berok'
17445 # Exported symbols can be pulled into shared objects from archives
17446 whole_archive_flag_spec_GCJ='$convenience'
17447 archive_cmds_need_lc_GCJ=yes
17448 # This is similar to how AIX traditionally builds its shared libraries.
17449 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'
17450 fi
17451 fi
17452 ;;
17453
17454 amigaos*)
17455 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)'
17456 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17457 hardcode_minus_L_GCJ=yes
17458 # see comment about different semantics on the GNU ld section
17459 ld_shlibs_GCJ=no
17460 ;;
17461
17462 bsdi[45]*)
17463 export_dynamic_flag_spec_GCJ=-rdynamic
17464 ;;
17465
17466 cygwin* | mingw* | pw32*)
17467 # When not using gcc, we currently assume that we are using
17468 # Microsoft Visual C++.
17469 # hardcode_libdir_flag_spec is actually meaningless, as there is
17470 # no search path for DLLs.
17471 hardcode_libdir_flag_spec_GCJ=' '
17472 allow_undefined_flag_GCJ=unsupported
17473 # Tell ltmain to make .lib files, not .a files.
17474 libext=lib
17475 # Tell ltmain to make .dll files, not .so files.
17476 shrext_cmds=".dll"
17477 # FIXME: Setting linknames here is a bad hack.
17478 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17479 # The linker will automatically build a .lib file if we build a DLL.
17480 old_archive_From_new_cmds_GCJ='true'
17481 # FIXME: Should let the user specify the lib program.
ac40fd9e 17482 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
d9898ee8 17483 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17484 enable_shared_with_static_runtimes_GCJ=yes
17485 ;;
17486
17487 darwin* | rhapsody*)
17488 case $host_os in
17489 rhapsody* | darwin1.[012])
17490 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17491 ;;
17492 *) # Darwin 1.3 on
17493 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17494 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17495 else
17496 case ${MACOSX_DEPLOYMENT_TARGET} in
17497 10.[012])
17498 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17499 ;;
17500 10.*)
17501 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17502 ;;
17503 esac
17504 fi
17505 ;;
17506 esac
17507 archive_cmds_need_lc_GCJ=no
17508 hardcode_direct_GCJ=no
17509 hardcode_automatic_GCJ=yes
17510 hardcode_shlibpath_var_GCJ=unsupported
17511 whole_archive_flag_spec_GCJ=''
17512 link_all_deplibs_GCJ=yes
17513 if test "$GCC" = yes ; then
17514 output_verbose_link_cmd='echo'
17515 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17516 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17517 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17518 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}'
17519 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}'
17520 else
17521 case $cc_basename in
17522 xlc*)
17523 output_verbose_link_cmd='echo'
ac40fd9e 17524 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
d9898ee8 17525 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17526 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
ac40fd9e 17527 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 17528 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}'
17529 ;;
17530 *)
17531 ld_shlibs_GCJ=no
17532 ;;
17533 esac
17534 fi
17535 ;;
17536
17537 dgux*)
17538 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17539 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17540 hardcode_shlibpath_var_GCJ=no
17541 ;;
17542
17543 freebsd1*)
17544 ld_shlibs_GCJ=no
17545 ;;
17546
17547 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17548 # support. Future versions do this automatically, but an explicit c++rt0.o
17549 # does not break anything, and helps significantly (at the cost of a little
17550 # extra space).
17551 freebsd2.2*)
17552 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17553 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17554 hardcode_direct_GCJ=yes
17555 hardcode_shlibpath_var_GCJ=no
17556 ;;
17557
17558 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17559 freebsd2*)
17560 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17561 hardcode_direct_GCJ=yes
17562 hardcode_minus_L_GCJ=yes
17563 hardcode_shlibpath_var_GCJ=no
17564 ;;
17565
17566 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
ac40fd9e 17567 freebsd* | dragonfly*)
d9898ee8 17568 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17569 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17570 hardcode_direct_GCJ=yes
17571 hardcode_shlibpath_var_GCJ=no
17572 ;;
17573
17574 hpux9*)
17575 if test "$GCC" = yes; then
17576 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'
17577 else
17578 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'
17579 fi
17580 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17581 hardcode_libdir_separator_GCJ=:
17582 hardcode_direct_GCJ=yes
17583
17584 # hardcode_minus_L: Not really in the search PATH,
17585 # but as the default location of the library.
17586 hardcode_minus_L_GCJ=yes
17587 export_dynamic_flag_spec_GCJ='${wl}-E'
17588 ;;
17589
17590 hpux10*)
17591 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17592 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17593 else
17594 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17595 fi
17596 if test "$with_gnu_ld" = no; then
17597 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17598 hardcode_libdir_separator_GCJ=:
17599
17600 hardcode_direct_GCJ=yes
17601 export_dynamic_flag_spec_GCJ='${wl}-E'
17602
17603 # hardcode_minus_L: Not really in the search PATH,
17604 # but as the default location of the library.
17605 hardcode_minus_L_GCJ=yes
17606 fi
17607 ;;
17608
17609 hpux11*)
17610 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17611 case $host_cpu in
17612 hppa*64*)
17613 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17614 ;;
17615 ia64*)
17616 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17617 ;;
17618 *)
17619 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17620 ;;
17621 esac
17622 else
17623 case $host_cpu in
17624 hppa*64*)
17625 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17626 ;;
17627 ia64*)
17628 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17629 ;;
17630 *)
17631 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17632 ;;
17633 esac
17634 fi
17635 if test "$with_gnu_ld" = no; then
17636 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17637 hardcode_libdir_separator_GCJ=:
17638
17639 case $host_cpu in
17640 hppa*64*|ia64*)
17641 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17642 hardcode_direct_GCJ=no
17643 hardcode_shlibpath_var_GCJ=no
17644 ;;
17645 *)
17646 hardcode_direct_GCJ=yes
17647 export_dynamic_flag_spec_GCJ='${wl}-E'
17648
17649 # hardcode_minus_L: Not really in the search PATH,
17650 # but as the default location of the library.
17651 hardcode_minus_L_GCJ=yes
17652 ;;
17653 esac
17654 fi
17655 ;;
17656
17657 irix5* | irix6* | nonstopux*)
17658 if test "$GCC" = yes; then
17659 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'
17660 else
17661 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'
17662 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17663 fi
17664 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17665 hardcode_libdir_separator_GCJ=:
17666 link_all_deplibs_GCJ=yes
17667 ;;
17668
17669 netbsd*)
17670 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17671 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17672 else
17673 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17674 fi
17675 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17676 hardcode_direct_GCJ=yes
17677 hardcode_shlibpath_var_GCJ=no
17678 ;;
17679
17680 newsos6)
17681 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17682 hardcode_direct_GCJ=yes
17683 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17684 hardcode_libdir_separator_GCJ=:
17685 hardcode_shlibpath_var_GCJ=no
17686 ;;
17687
17688 openbsd*)
ac40fd9e 17689 if test -f /usr/libexec/ld.so; then
17690 hardcode_direct_GCJ=yes
17691 hardcode_shlibpath_var_GCJ=no
17692 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17693 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17694 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17695 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17696 export_dynamic_flag_spec_GCJ='${wl}-E'
17697 else
17698 case $host_os in
17699 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17700 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17701 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17702 ;;
17703 *)
17704 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17705 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17706 ;;
17707 esac
17708 fi
d9898ee8 17709 else
ac40fd9e 17710 ld_shlibs_GCJ=no
d9898ee8 17711 fi
17712 ;;
17713
17714 os2*)
17715 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17716 hardcode_minus_L_GCJ=yes
17717 allow_undefined_flag_GCJ=unsupported
17718 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'
17719 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17720 ;;
17721
17722 osf3*)
17723 if test "$GCC" = yes; then
17724 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17725 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'
17726 else
17727 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17728 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'
17729 fi
17730 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17731 hardcode_libdir_separator_GCJ=:
17732 ;;
17733
17734 osf4* | osf5*) # as osf3* with the addition of -msym flag
17735 if test "$GCC" = yes; then
17736 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17737 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'
17738 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17739 else
17740 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17741 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'
17742 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~
17743 $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'
17744
17745 # Both c and cxx compiler support -rpath directly
17746 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17747 fi
17748 hardcode_libdir_separator_GCJ=:
17749 ;;
17750
17751 solaris*)
17752 no_undefined_flag_GCJ=' -z text'
17753 if test "$GCC" = yes; then
17754 wlarc='${wl}'
17755 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17756 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17757 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17758 else
17759 wlarc=''
17760 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17761 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17762 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17763 fi
17764 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17765 hardcode_shlibpath_var_GCJ=no
17766 case $host_os in
17767 solaris2.[0-5] | solaris2.[0-5].*) ;;
17768 *)
ac40fd9e 17769 # The compiler driver will combine and reorder linker options,
17770 # but understands `-z linker_flag'. GCC discards it without `$wl',
17771 # but is careful enough not to reorder.
d9898ee8 17772 # Supported since Solaris 2.6 (maybe 2.5.1?)
ac40fd9e 17773 if test "$GCC" = yes; then
17774 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17775 else
17776 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
17777 fi
17778 ;;
d9898ee8 17779 esac
17780 link_all_deplibs_GCJ=yes
17781 ;;
17782
17783 sunos4*)
17784 if test "x$host_vendor" = xsequent; then
17785 # Use $CC to link under sequent, because it throws in some extra .o
17786 # files that make .init and .fini sections work.
17787 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17788 else
17789 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17790 fi
17791 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17792 hardcode_direct_GCJ=yes
17793 hardcode_minus_L_GCJ=yes
17794 hardcode_shlibpath_var_GCJ=no
17795 ;;
17796
17797 sysv4)
17798 case $host_vendor in
17799 sni)
17800 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17801 hardcode_direct_GCJ=yes # is this really true???
17802 ;;
17803 siemens)
17804 ## LD is ld it makes a PLAMLIB
17805 ## CC just makes a GrossModule.
17806 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17807 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17808 hardcode_direct_GCJ=no
17809 ;;
17810 motorola)
17811 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17812 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17813 ;;
17814 esac
17815 runpath_var='LD_RUN_PATH'
17816 hardcode_shlibpath_var_GCJ=no
17817 ;;
17818
17819 sysv4.3*)
17820 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17821 hardcode_shlibpath_var_GCJ=no
17822 export_dynamic_flag_spec_GCJ='-Bexport'
17823 ;;
17824
17825 sysv4*MP*)
17826 if test -d /usr/nec; then
17827 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17828 hardcode_shlibpath_var_GCJ=no
17829 runpath_var=LD_RUN_PATH
17830 hardcode_runpath_var=yes
17831 ld_shlibs_GCJ=yes
17832 fi
17833 ;;
17834
ac40fd9e 17835 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
d9898ee8 17836 no_undefined_flag_GCJ='${wl}-z,text'
17837 archive_cmds_need_lc_GCJ=no
17838 hardcode_shlibpath_var_GCJ=no
17839 runpath_var='LD_RUN_PATH'
17840
17841 if test "$GCC" = yes; then
17842 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17843 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17844 else
17845 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17846 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17847 fi
17848 ;;
17849
17850 sysv5* | sco3.2v5* | sco5v6*)
17851 # Note: We can NOT use -z defs as we might desire, because we do not
17852 # link with -lc, and that would cause any symbols used from libc to
17853 # always be unresolved, which means just about no library would
17854 # ever link correctly. If we're not using GNU ld we use -z text
17855 # though, which does catch some bad symbols but isn't as heavy-handed
17856 # as -z defs.
17857 no_undefined_flag_GCJ='${wl}-z,text'
17858 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17859 archive_cmds_need_lc_GCJ=no
17860 hardcode_shlibpath_var_GCJ=no
17861 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17862 hardcode_libdir_separator_GCJ=':'
17863 link_all_deplibs_GCJ=yes
17864 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17865 runpath_var='LD_RUN_PATH'
17866
17867 if test "$GCC" = yes; then
17868 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17869 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17870 else
17871 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17872 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17873 fi
17874 ;;
17875
17876 uts4*)
17877 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17878 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17879 hardcode_shlibpath_var_GCJ=no
17880 ;;
17881
17882 *)
17883 ld_shlibs_GCJ=no
17884 ;;
17885 esac
17886 fi
17887
dd184caf 17888{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17889echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
d9898ee8 17890test "$ld_shlibs_GCJ" = no && can_build_shared=no
17891
17892#
17893# Do we need to explicitly link libc?
17894#
17895case "x$archive_cmds_need_lc_GCJ" in
17896x|xyes)
17897 # Assume -lc should be added
17898 archive_cmds_need_lc_GCJ=yes
17899
17900 if test "$enable_shared" = yes && test "$GCC" = yes; then
17901 case $archive_cmds_GCJ in
17902 *'~'*)
17903 # FIXME: we may have to deal with multi-command sequences.
17904 ;;
17905 '$CC '*)
17906 # Test whether the compiler implicitly links with -lc since on some
17907 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17908 # to ld, don't add -lc before -lgcc.
dd184caf 17909 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17910echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
d9898ee8 17911 $rm conftest*
ac40fd9e 17912 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 17913
17914 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17915 (eval $ac_compile) 2>&5
17916 ac_status=$?
17917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17918 (exit $ac_status); } 2>conftest.err; then
17919 soname=conftest
17920 lib=conftest
17921 libobjs=conftest.$ac_objext
17922 deplibs=
17923 wl=$lt_prog_compiler_wl_GCJ
17924 pic_flag=$lt_prog_compiler_pic_GCJ
17925 compiler_flags=-v
17926 linker_flags=-v
17927 verstring=
17928 output_objdir=.
17929 libname=conftest
17930 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17931 allow_undefined_flag_GCJ=
17932 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17933 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17934 ac_status=$?
17935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17936 (exit $ac_status); }
17937 then
17938 archive_cmds_need_lc_GCJ=no
17939 else
17940 archive_cmds_need_lc_GCJ=yes
17941 fi
17942 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17943 else
17944 cat conftest.err 1>&5
17945 fi
17946 $rm conftest*
dd184caf 17947 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17948echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
d9898ee8 17949 ;;
17950 esac
17951 fi
17952 ;;
17953esac
17954
dd184caf 17955{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17956echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
d9898ee8 17957library_names_spec=
17958libname_spec='lib$name'
17959soname_spec=
17960shrext_cmds=".so"
17961postinstall_cmds=
17962postuninstall_cmds=
17963finish_cmds=
17964finish_eval=
17965shlibpath_var=
17966shlibpath_overrides_runpath=unknown
17967version_type=none
17968dynamic_linker="$host_os ld.so"
17969sys_lib_dlsearch_path_spec="/lib /usr/lib"
ac40fd9e 17970
d9898ee8 17971need_lib_prefix=unknown
17972hardcode_into_libs=no
17973
17974# when you set need_version to no, make sure it does not cause -set_version
17975# flags to be left without arguments
17976need_version=unknown
17977
17978case $host_os in
17979aix3*)
17980 version_type=linux
17981 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17982 shlibpath_var=LIBPATH
17983
17984 # AIX 3 has no versioning support, so we append a major version to the name.
17985 soname_spec='${libname}${release}${shared_ext}$major'
17986 ;;
17987
17988aix4* | aix5*)
17989 version_type=linux
17990 need_lib_prefix=no
17991 need_version=no
17992 hardcode_into_libs=yes
17993 if test "$host_cpu" = ia64; then
17994 # AIX 5 supports IA64
17995 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17996 shlibpath_var=LD_LIBRARY_PATH
17997 else
17998 # With GCC up to 2.95.x, collect2 would create an import file
17999 # for dependence libraries. The import file would start with
18000 # the line `#! .'. This would cause the generated library to
18001 # depend on `.', always an invalid library. This was fixed in
18002 # development snapshots of GCC prior to 3.0.
18003 case $host_os in
18004 aix4 | aix4.[01] | aix4.[01].*)
18005 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18006 echo ' yes '
18007 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18008 :
18009 else
18010 can_build_shared=no
18011 fi
18012 ;;
18013 esac
18014 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18015 # soname into executable. Probably we can add versioning support to
18016 # collect2, so additional links can be useful in future.
18017 if test "$aix_use_runtimelinking" = yes; then
18018 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18019 # instead of lib<name>.a to let people know that these are not
18020 # typical AIX shared libraries.
18021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18022 else
18023 # We preserve .a as extension for shared libraries through AIX4.2
18024 # and later when we are not doing run time linking.
18025 library_names_spec='${libname}${release}.a $libname.a'
18026 soname_spec='${libname}${release}${shared_ext}$major'
18027 fi
18028 shlibpath_var=LIBPATH
18029 fi
18030 ;;
18031
18032amigaos*)
18033 library_names_spec='$libname.ixlibrary $libname.a'
18034 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18035 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'
18036 ;;
18037
18038beos*)
18039 library_names_spec='${libname}${shared_ext}'
18040 dynamic_linker="$host_os ld.so"
18041 shlibpath_var=LIBRARY_PATH
18042 ;;
18043
18044bsdi[45]*)
18045 version_type=linux
18046 need_version=no
18047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18048 soname_spec='${libname}${release}${shared_ext}$major'
18049 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18050 shlibpath_var=LD_LIBRARY_PATH
18051 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18052 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18053 # the default ld.so.conf also contains /usr/contrib/lib and
18054 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18055 # libtool to hard-code these into programs
18056 ;;
18057
18058cygwin* | mingw* | pw32*)
18059 version_type=windows
18060 shrext_cmds=".dll"
18061 need_version=no
18062 need_lib_prefix=no
18063
18064 case $GCC,$host_os in
18065 yes,cygwin* | yes,mingw* | yes,pw32*)
18066 library_names_spec='$libname.dll.a'
18067 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18068 postinstall_cmds='base_file=`basename \${file}`~
18069 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18070 dldir=$destdir/`dirname \$dlpath`~
18071 test -d \$dldir || mkdir -p \$dldir~
18072 $install_prog $dir/$dlname \$dldir/$dlname~
18073 chmod a+x \$dldir/$dlname'
18074 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18075 dlpath=$dir/\$dldll~
18076 $rm \$dlpath'
18077 shlibpath_overrides_runpath=yes
18078
18079 case $host_os in
18080 cygwin*)
18081 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18082 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18083 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18084 ;;
18085 mingw*)
18086 # MinGW DLLs use traditional 'lib' prefix
18087 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18088 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18089 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18090 # It is most probably a Windows format PATH printed by
18091 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18092 # path with ; separators, and with drive letters. We can handle the
18093 # drive letters (cygwin fileutils understands them), so leave them,
18094 # especially as we might pass files found there to a mingw objdump,
18095 # which wouldn't understand a cygwinified path. Ahh.
18096 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18097 else
18098 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18099 fi
18100 ;;
18101 pw32*)
18102 # pw32 DLLs use 'pw' prefix rather than 'lib'
18103 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18104 ;;
18105 esac
18106 ;;
18107
18108 *)
18109 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18110 ;;
18111 esac
18112 dynamic_linker='Win32 ld.exe'
18113 # FIXME: first we should search . and the directory the executable is in
18114 shlibpath_var=PATH
18115 ;;
18116
18117darwin* | rhapsody*)
18118 dynamic_linker="$host_os dyld"
18119 version_type=darwin
18120 need_lib_prefix=no
18121 need_version=no
18122 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18123 soname_spec='${libname}${release}${major}$shared_ext'
18124 shlibpath_overrides_runpath=yes
18125 shlibpath_var=DYLD_LIBRARY_PATH
18126 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
ac40fd9e 18127
d9898ee8 18128 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18129 ;;
18130
18131dgux*)
18132 version_type=linux
18133 need_lib_prefix=no
18134 need_version=no
18135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18136 soname_spec='${libname}${release}${shared_ext}$major'
18137 shlibpath_var=LD_LIBRARY_PATH
18138 ;;
18139
18140freebsd1*)
18141 dynamic_linker=no
18142 ;;
18143
d9898ee8 18144freebsd* | dragonfly*)
18145 # DragonFly does not have aout. When/if they implement a new
18146 # versioning mechanism, adjust this.
18147 if test -x /usr/bin/objformat; then
18148 objformat=`/usr/bin/objformat`
18149 else
18150 case $host_os in
18151 freebsd[123]*) objformat=aout ;;
18152 *) objformat=elf ;;
18153 esac
18154 fi
18155 version_type=freebsd-$objformat
18156 case $version_type in
18157 freebsd-elf*)
18158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18159 need_version=no
18160 need_lib_prefix=no
18161 ;;
18162 freebsd-*)
18163 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18164 need_version=yes
18165 ;;
18166 esac
18167 shlibpath_var=LD_LIBRARY_PATH
18168 case $host_os in
18169 freebsd2*)
18170 shlibpath_overrides_runpath=yes
18171 ;;
18172 freebsd3.[01]* | freebsdelf3.[01]*)
18173 shlibpath_overrides_runpath=yes
18174 hardcode_into_libs=yes
18175 ;;
18176 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18177 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18178 shlibpath_overrides_runpath=no
18179 hardcode_into_libs=yes
18180 ;;
ac40fd9e 18181 *) # from 4.6 on, and DragonFly
d9898ee8 18182 shlibpath_overrides_runpath=yes
18183 hardcode_into_libs=yes
18184 ;;
18185 esac
18186 ;;
18187
18188gnu*)
18189 version_type=linux
18190 need_lib_prefix=no
18191 need_version=no
18192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18193 soname_spec='${libname}${release}${shared_ext}$major'
18194 shlibpath_var=LD_LIBRARY_PATH
18195 hardcode_into_libs=yes
18196 ;;
18197
18198hpux9* | hpux10* | hpux11*)
18199 # Give a soname corresponding to the major version so that dld.sl refuses to
18200 # link against other versions.
18201 version_type=sunos
18202 need_lib_prefix=no
18203 need_version=no
18204 case $host_cpu in
18205 ia64*)
18206 shrext_cmds='.so'
18207 hardcode_into_libs=yes
18208 dynamic_linker="$host_os dld.so"
18209 shlibpath_var=LD_LIBRARY_PATH
18210 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18212 soname_spec='${libname}${release}${shared_ext}$major'
18213 if test "X$HPUX_IA64_MODE" = X32; then
18214 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18215 else
18216 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18217 fi
18218 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18219 ;;
18220 hppa*64*)
18221 shrext_cmds='.sl'
18222 hardcode_into_libs=yes
18223 dynamic_linker="$host_os dld.sl"
18224 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18225 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18227 soname_spec='${libname}${release}${shared_ext}$major'
18228 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18229 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18230 ;;
18231 *)
18232 shrext_cmds='.sl'
18233 dynamic_linker="$host_os dld.sl"
18234 shlibpath_var=SHLIB_PATH
18235 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18237 soname_spec='${libname}${release}${shared_ext}$major'
18238 ;;
18239 esac
18240 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18241 postinstall_cmds='chmod 555 $lib'
18242 ;;
18243
ac40fd9e 18244interix[3-9]*)
d9898ee8 18245 version_type=linux
18246 need_lib_prefix=no
18247 need_version=no
18248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18249 soname_spec='${libname}${release}${shared_ext}$major'
18250 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18251 shlibpath_var=LD_LIBRARY_PATH
18252 shlibpath_overrides_runpath=no
18253 hardcode_into_libs=yes
18254 ;;
18255
18256irix5* | irix6* | nonstopux*)
18257 case $host_os in
18258 nonstopux*) version_type=nonstopux ;;
18259 *)
18260 if test "$lt_cv_prog_gnu_ld" = yes; then
18261 version_type=linux
18262 else
18263 version_type=irix
18264 fi ;;
18265 esac
18266 need_lib_prefix=no
18267 need_version=no
18268 soname_spec='${libname}${release}${shared_ext}$major'
18269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18270 case $host_os in
18271 irix5* | nonstopux*)
18272 libsuff= shlibsuff=
18273 ;;
18274 *)
18275 case $LD in # libtool.m4 will add one of these switches to LD
18276 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18277 libsuff= shlibsuff= libmagic=32-bit;;
18278 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18279 libsuff=32 shlibsuff=N32 libmagic=N32;;
18280 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18281 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18282 *) libsuff= shlibsuff= libmagic=never-match;;
18283 esac
18284 ;;
18285 esac
18286 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18287 shlibpath_overrides_runpath=no
18288 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18289 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18290 hardcode_into_libs=yes
18291 ;;
18292
18293# No shared lib support for Linux oldld, aout, or coff.
18294linux*oldld* | linux*aout* | linux*coff*)
18295 dynamic_linker=no
18296 ;;
18297
18298# This must be Linux ELF.
ac40fd9e 18299linux* | k*bsd*-gnu)
d9898ee8 18300 version_type=linux
18301 need_lib_prefix=no
18302 need_version=no
18303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18304 soname_spec='${libname}${release}${shared_ext}$major'
18305 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18306 shlibpath_var=LD_LIBRARY_PATH
18307 shlibpath_overrides_runpath=no
18308 # This implies no fast_install, which is unacceptable.
18309 # Some rework will be needed to allow for fast_install
18310 # before this can be enabled.
18311 hardcode_into_libs=yes
ac40fd9e 18312 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18313 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
d9898ee8 18314
18315 # Append ld.so.conf contents to the search path
18316 if test -f /etc/ld.so.conf; then
ac40fd9e 18317 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' ' '`
18318 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
d9898ee8 18319 fi
18320
18321 # We used to test for /lib/ld.so.1 and disable shared libraries on
18322 # powerpc, because MkLinux only supported shared libraries with the
18323 # GNU dynamic linker. Since this was broken with cross compilers,
18324 # most powerpc-linux boxes support dynamic linking these days and
18325 # people can always --disable-shared, the test was removed, and we
18326 # assume the GNU/Linux dynamic linker is in use.
18327 dynamic_linker='GNU/Linux ld.so'
18328 ;;
18329
d9898ee8 18330netbsd*)
18331 version_type=sunos
18332 need_lib_prefix=no
18333 need_version=no
18334 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18336 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18337 dynamic_linker='NetBSD (a.out) ld.so'
18338 else
18339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18340 soname_spec='${libname}${release}${shared_ext}$major'
18341 dynamic_linker='NetBSD ld.elf_so'
18342 fi
18343 shlibpath_var=LD_LIBRARY_PATH
18344 shlibpath_overrides_runpath=yes
18345 hardcode_into_libs=yes
18346 ;;
18347
18348newsos6)
18349 version_type=linux
18350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18351 shlibpath_var=LD_LIBRARY_PATH
18352 shlibpath_overrides_runpath=yes
18353 ;;
18354
18355nto-qnx*)
18356 version_type=linux
18357 need_lib_prefix=no
18358 need_version=no
18359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18360 soname_spec='${libname}${release}${shared_ext}$major'
18361 shlibpath_var=LD_LIBRARY_PATH
18362 shlibpath_overrides_runpath=yes
18363 ;;
18364
18365openbsd*)
18366 version_type=sunos
18367 sys_lib_dlsearch_path_spec="/usr/lib"
18368 need_lib_prefix=no
18369 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18370 case $host_os in
18371 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18372 *) need_version=no ;;
18373 esac
18374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18375 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18376 shlibpath_var=LD_LIBRARY_PATH
18377 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18378 case $host_os in
18379 openbsd2.[89] | openbsd2.[89].*)
18380 shlibpath_overrides_runpath=no
18381 ;;
18382 *)
18383 shlibpath_overrides_runpath=yes
18384 ;;
18385 esac
18386 else
18387 shlibpath_overrides_runpath=yes
18388 fi
18389 ;;
18390
18391os2*)
18392 libname_spec='$name'
18393 shrext_cmds=".dll"
18394 need_lib_prefix=no
18395 library_names_spec='$libname${shared_ext} $libname.a'
18396 dynamic_linker='OS/2 ld.exe'
18397 shlibpath_var=LIBPATH
18398 ;;
18399
18400osf3* | osf4* | osf5*)
18401 version_type=osf
18402 need_lib_prefix=no
18403 need_version=no
18404 soname_spec='${libname}${release}${shared_ext}$major'
18405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18406 shlibpath_var=LD_LIBRARY_PATH
18407 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18408 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18409 ;;
18410
ac40fd9e 18411rdos*)
18412 dynamic_linker=no
18413 ;;
18414
d9898ee8 18415solaris*)
18416 version_type=linux
18417 need_lib_prefix=no
18418 need_version=no
18419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18420 soname_spec='${libname}${release}${shared_ext}$major'
18421 shlibpath_var=LD_LIBRARY_PATH
18422 shlibpath_overrides_runpath=yes
18423 hardcode_into_libs=yes
18424 # ldd complains unless libraries are executable
18425 postinstall_cmds='chmod +x $lib'
18426 ;;
18427
18428sunos4*)
18429 version_type=sunos
18430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18431 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18432 shlibpath_var=LD_LIBRARY_PATH
18433 shlibpath_overrides_runpath=yes
18434 if test "$with_gnu_ld" = yes; then
18435 need_lib_prefix=no
18436 fi
18437 need_version=yes
18438 ;;
18439
18440sysv4 | sysv4.3*)
18441 version_type=linux
18442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18443 soname_spec='${libname}${release}${shared_ext}$major'
18444 shlibpath_var=LD_LIBRARY_PATH
18445 case $host_vendor in
18446 sni)
18447 shlibpath_overrides_runpath=no
18448 need_lib_prefix=no
18449 export_dynamic_flag_spec='${wl}-Blargedynsym'
18450 runpath_var=LD_RUN_PATH
18451 ;;
18452 siemens)
18453 need_lib_prefix=no
18454 ;;
18455 motorola)
18456 need_lib_prefix=no
18457 need_version=no
18458 shlibpath_overrides_runpath=no
18459 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18460 ;;
18461 esac
18462 ;;
18463
18464sysv4*MP*)
18465 if test -d /usr/nec ;then
18466 version_type=linux
18467 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18468 soname_spec='$libname${shared_ext}.$major'
18469 shlibpath_var=LD_LIBRARY_PATH
18470 fi
18471 ;;
18472
18473sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18474 version_type=freebsd-elf
18475 need_lib_prefix=no
18476 need_version=no
18477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18478 soname_spec='${libname}${release}${shared_ext}$major'
18479 shlibpath_var=LD_LIBRARY_PATH
18480 hardcode_into_libs=yes
18481 if test "$with_gnu_ld" = yes; then
18482 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18483 shlibpath_overrides_runpath=no
18484 else
18485 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18486 shlibpath_overrides_runpath=yes
18487 case $host_os in
18488 sco3.2v5*)
18489 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18490 ;;
18491 esac
18492 fi
18493 sys_lib_dlsearch_path_spec='/usr/lib'
18494 ;;
18495
18496uts4*)
18497 version_type=linux
18498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18499 soname_spec='${libname}${release}${shared_ext}$major'
18500 shlibpath_var=LD_LIBRARY_PATH
18501 ;;
18502
18503*)
18504 dynamic_linker=no
18505 ;;
18506esac
dd184caf 18507{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18508echo "${ECHO_T}$dynamic_linker" >&6; }
d9898ee8 18509test "$dynamic_linker" = no && can_build_shared=no
18510
18511variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18512if test "$GCC" = yes; then
18513 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18514fi
18515
dd184caf 18516{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18517echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
d9898ee8 18518hardcode_action_GCJ=
18519if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18520 test -n "$runpath_var_GCJ" || \
18521 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18522
18523 # We can hardcode non-existant directories.
18524 if test "$hardcode_direct_GCJ" != no &&
18525 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18526 # have to relink, otherwise we might link with an installed library
18527 # when we should be linking with a yet-to-be-installed one
18528 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18529 test "$hardcode_minus_L_GCJ" != no; then
18530 # Linking always hardcodes the temporary library directory.
18531 hardcode_action_GCJ=relink
18532 else
18533 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18534 hardcode_action_GCJ=immediate
18535 fi
18536else
18537 # We cannot hardcode anything, or else we can only hardcode existing
18538 # directories.
18539 hardcode_action_GCJ=unsupported
18540fi
dd184caf 18541{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18542echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
d9898ee8 18543
18544if test "$hardcode_action_GCJ" = relink; then
18545 # Fast installation is not supported
18546 enable_fast_install=no
18547elif test "$shlibpath_overrides_runpath" = yes ||
18548 test "$enable_shared" = no; then
18549 # Fast installation is not necessary
18550 enable_fast_install=needless
18551fi
18552
18553
18554# The else clause should only fire when bootstrapping the
18555# libtool distribution, otherwise you forgot to ship ltmain.sh
18556# with your package, and you will get complaints that there are
18557# no rules to generate ltmain.sh.
18558if test -f "$ltmain"; then
18559 # See if we are running on zsh, and set the options which allow our commands through
18560 # without removal of \ escapes.
18561 if test -n "${ZSH_VERSION+set}" ; then
18562 setopt NO_GLOB_SUBST
18563 fi
18564 # Now quote all the things that may contain metacharacters while being
18565 # careful not to overquote the AC_SUBSTed values. We take copies of the
18566 # variables and quote the copies for generation of the libtool script.
18567 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18568 SED SHELL STRIP \
18569 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18570 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18571 deplibs_check_method reload_flag reload_cmds need_locks \
18572 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18573 lt_cv_sys_global_symbol_to_c_name_address \
18574 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18575 old_postinstall_cmds old_postuninstall_cmds \
18576 compiler_GCJ \
18577 CC_GCJ \
18578 LD_GCJ \
18579 lt_prog_compiler_wl_GCJ \
18580 lt_prog_compiler_pic_GCJ \
18581 lt_prog_compiler_static_GCJ \
18582 lt_prog_compiler_no_builtin_flag_GCJ \
18583 export_dynamic_flag_spec_GCJ \
18584 thread_safe_flag_spec_GCJ \
18585 whole_archive_flag_spec_GCJ \
18586 enable_shared_with_static_runtimes_GCJ \
18587 old_archive_cmds_GCJ \
18588 old_archive_from_new_cmds_GCJ \
18589 predep_objects_GCJ \
18590 postdep_objects_GCJ \
18591 predeps_GCJ \
18592 postdeps_GCJ \
18593 compiler_lib_search_path_GCJ \
18594 archive_cmds_GCJ \
18595 archive_expsym_cmds_GCJ \
18596 postinstall_cmds_GCJ \
18597 postuninstall_cmds_GCJ \
18598 old_archive_from_expsyms_cmds_GCJ \
18599 allow_undefined_flag_GCJ \
18600 no_undefined_flag_GCJ \
18601 export_symbols_cmds_GCJ \
18602 hardcode_libdir_flag_spec_GCJ \
18603 hardcode_libdir_flag_spec_ld_GCJ \
18604 hardcode_libdir_separator_GCJ \
18605 hardcode_automatic_GCJ \
18606 module_cmds_GCJ \
18607 module_expsym_cmds_GCJ \
18608 lt_cv_prog_compiler_c_o_GCJ \
ac40fd9e 18609 fix_srcfile_path_GCJ \
d9898ee8 18610 exclude_expsyms_GCJ \
18611 include_expsyms_GCJ; do
18612
18613 case $var in
18614 old_archive_cmds_GCJ | \
18615 old_archive_from_new_cmds_GCJ | \
18616 archive_cmds_GCJ | \
18617 archive_expsym_cmds_GCJ | \
18618 module_cmds_GCJ | \
18619 module_expsym_cmds_GCJ | \
18620 old_archive_from_expsyms_cmds_GCJ | \
18621 export_symbols_cmds_GCJ | \
18622 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18623 postinstall_cmds | postuninstall_cmds | \
18624 old_postinstall_cmds | old_postuninstall_cmds | \
18625 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18626 # Double-quote double-evaled strings.
18627 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18628 ;;
18629 *)
18630 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18631 ;;
18632 esac
18633 done
18634
18635 case $lt_echo in
18636 *'\$0 --fallback-echo"')
18637 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18638 ;;
18639 esac
18640
18641cfgfile="$ofile"
18642
18643 cat <<__EOF__ >> "$cfgfile"
18644# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18645
18646# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18647
18648# Shell to use when invoking shell scripts.
18649SHELL=$lt_SHELL
18650
18651# Whether or not to build shared libraries.
18652build_libtool_libs=$enable_shared
18653
18654# Whether or not to build static libraries.
18655build_old_libs=$enable_static
18656
18657# Whether or not to add -lc for building shared libraries.
18658build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18659
18660# Whether or not to disallow shared libs when runtime libs are static
18661allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18662
18663# Whether or not to optimize for fast installation.
18664fast_install=$enable_fast_install
18665
18666# The host system.
18667host_alias=$host_alias
18668host=$host
18669host_os=$host_os
18670
18671# The build system.
18672build_alias=$build_alias
18673build=$build
18674build_os=$build_os
18675
18676# An echo program that does not interpret backslashes.
18677echo=$lt_echo
18678
18679# The archiver.
18680AR=$lt_AR
18681AR_FLAGS=$lt_AR_FLAGS
18682
18683# A C compiler.
18684LTCC=$lt_LTCC
18685
18686# LTCC compiler flags.
18687LTCFLAGS=$lt_LTCFLAGS
18688
18689# A language-specific compiler.
18690CC=$lt_compiler_GCJ
18691
18692# Is the compiler the GNU C compiler?
18693with_gcc=$GCC_GCJ
18694
d9898ee8 18695# An ERE matcher.
18696EGREP=$lt_EGREP
18697
18698# The linker used to build libraries.
18699LD=$lt_LD_GCJ
18700
18701# Whether we need hard or soft links.
18702LN_S=$lt_LN_S
18703
18704# A BSD-compatible nm program.
18705NM=$lt_NM
18706
18707# A symbol stripping program
18708STRIP=$lt_STRIP
18709
18710# Used to examine libraries when file_magic_cmd begins "file"
18711MAGIC_CMD=$MAGIC_CMD
18712
18713# Used on cygwin: DLL creation program.
18714DLLTOOL="$DLLTOOL"
18715
18716# Used on cygwin: object dumper.
18717OBJDUMP="$OBJDUMP"
18718
18719# Used on cygwin: assembler.
18720AS="$AS"
18721
18722# The name of the directory that contains temporary libtool files.
18723objdir=$objdir
18724
18725# How to create reloadable object files.
18726reload_flag=$lt_reload_flag
18727reload_cmds=$lt_reload_cmds
18728
18729# How to pass a linker flag through the compiler.
18730wl=$lt_lt_prog_compiler_wl_GCJ
18731
18732# Object file suffix (normally "o").
18733objext="$ac_objext"
18734
18735# Old archive suffix (normally "a").
18736libext="$libext"
18737
18738# Shared library suffix (normally ".so").
18739shrext_cmds='$shrext_cmds'
18740
18741# Executable file suffix (normally "").
18742exeext="$exeext"
18743
18744# Additional compiler flags for building library objects.
18745pic_flag=$lt_lt_prog_compiler_pic_GCJ
18746pic_mode=$pic_mode
18747
18748# What is the maximum length of a command?
18749max_cmd_len=$lt_cv_sys_max_cmd_len
18750
18751# Does compiler simultaneously support -c and -o options?
18752compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18753
18754# Must we lock files when doing compilation?
18755need_locks=$lt_need_locks
18756
18757# Do we need the lib prefix for modules?
18758need_lib_prefix=$need_lib_prefix
18759
18760# Do we need a version for libraries?
18761need_version=$need_version
18762
18763# Whether dlopen is supported.
18764dlopen_support=$enable_dlopen
18765
18766# Whether dlopen of programs is supported.
18767dlopen_self=$enable_dlopen_self
18768
18769# Whether dlopen of statically linked programs is supported.
18770dlopen_self_static=$enable_dlopen_self_static
18771
18772# Compiler flag to prevent dynamic linking.
18773link_static_flag=$lt_lt_prog_compiler_static_GCJ
18774
18775# Compiler flag to turn off builtin functions.
18776no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18777
18778# Compiler flag to allow reflexive dlopens.
18779export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18780
18781# Compiler flag to generate shared objects directly from archives.
18782whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18783
18784# Compiler flag to generate thread-safe objects.
18785thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18786
18787# Library versioning type.
18788version_type=$version_type
18789
18790# Format of library name prefix.
18791libname_spec=$lt_libname_spec
18792
18793# List of archive names. First name is the real one, the rest are links.
18794# The last name is the one that the linker finds with -lNAME.
18795library_names_spec=$lt_library_names_spec
18796
18797# The coded name of the library, if different from the real name.
18798soname_spec=$lt_soname_spec
18799
18800# Commands used to build and install an old-style archive.
18801RANLIB=$lt_RANLIB
18802old_archive_cmds=$lt_old_archive_cmds_GCJ
18803old_postinstall_cmds=$lt_old_postinstall_cmds
18804old_postuninstall_cmds=$lt_old_postuninstall_cmds
18805
18806# Create an old-style archive from a shared archive.
18807old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18808
18809# Create a temporary old-style archive to link instead of a shared archive.
18810old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18811
18812# Commands used to build and install a shared archive.
18813archive_cmds=$lt_archive_cmds_GCJ
18814archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18815postinstall_cmds=$lt_postinstall_cmds
18816postuninstall_cmds=$lt_postuninstall_cmds
18817
18818# Commands used to build a loadable module (assumed same as above if empty)
18819module_cmds=$lt_module_cmds_GCJ
18820module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18821
18822# Commands to strip libraries.
18823old_striplib=$lt_old_striplib
18824striplib=$lt_striplib
18825
18826# Dependencies to place before the objects being linked to create a
18827# shared library.
dd184caf 18828predep_objects=$lt_predep_objects_GCJ
d9898ee8 18829
18830# Dependencies to place after the objects being linked to create a
18831# shared library.
dd184caf 18832postdep_objects=$lt_postdep_objects_GCJ
d9898ee8 18833
18834# Dependencies to place before the objects being linked to create a
18835# shared library.
18836predeps=$lt_predeps_GCJ
18837
18838# Dependencies to place after the objects being linked to create a
18839# shared library.
18840postdeps=$lt_postdeps_GCJ
18841
18842# The library search path used internally by the compiler when linking
18843# a shared library.
dd184caf 18844compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
d9898ee8 18845
18846# Method to check whether dependent libraries are shared objects.
18847deplibs_check_method=$lt_deplibs_check_method
18848
18849# Command to use when deplibs_check_method == file_magic.
18850file_magic_cmd=$lt_file_magic_cmd
18851
18852# Flag that allows shared libraries with undefined symbols to be built.
18853allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18854
18855# Flag that forces no undefined symbols.
18856no_undefined_flag=$lt_no_undefined_flag_GCJ
18857
18858# Commands used to finish a libtool library installation in a directory.
18859finish_cmds=$lt_finish_cmds
18860
18861# Same as above, but a single script fragment to be evaled but not shown.
18862finish_eval=$lt_finish_eval
18863
18864# Take the output of nm and produce a listing of raw symbols and C names.
18865global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18866
18867# Transform the output of nm in a proper C declaration
18868global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18869
18870# Transform the output of nm in a C name address pair
18871global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18872
18873# This is the shared library runtime path variable.
18874runpath_var=$runpath_var
18875
18876# This is the shared library path variable.
18877shlibpath_var=$shlibpath_var
18878
18879# Is shlibpath searched before the hard-coded library search path?
18880shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18881
18882# How to hardcode a shared library path into an executable.
18883hardcode_action=$hardcode_action_GCJ
18884
18885# Whether we should hardcode library paths into libraries.
18886hardcode_into_libs=$hardcode_into_libs
18887
18888# Flag to hardcode \$libdir into a binary during linking.
18889# This must work even if \$libdir does not exist.
18890hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18891
18892# If ld is used when linking, flag to hardcode \$libdir into
18893# a binary during linking. This must work even if \$libdir does
18894# not exist.
18895hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18896
18897# Whether we need a single -rpath flag with a separated argument.
18898hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18899
18900# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18901# resulting binary.
18902hardcode_direct=$hardcode_direct_GCJ
18903
18904# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18905# resulting binary.
18906hardcode_minus_L=$hardcode_minus_L_GCJ
18907
18908# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18909# the resulting binary.
18910hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18911
18912# Set to yes if building a shared library automatically hardcodes DIR into the library
18913# and all subsequent libraries and executables linked against it.
18914hardcode_automatic=$hardcode_automatic_GCJ
18915
18916# Variables whose values should be saved in libtool wrapper scripts and
18917# restored at relink time.
18918variables_saved_for_relink="$variables_saved_for_relink"
18919
18920# Whether libtool must link a program against all its dependency libraries.
18921link_all_deplibs=$link_all_deplibs_GCJ
18922
18923# Compile-time system search path for libraries
dd184caf 18924sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
d9898ee8 18925
18926# Run-time system search path for libraries
18927sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18928
18929# Fix the shell variable \$srcfile for the compiler.
ac40fd9e 18930fix_srcfile_path=$lt_fix_srcfile_path
d9898ee8 18931
18932# Set to yes if exported symbols are required.
18933always_export_symbols=$always_export_symbols_GCJ
18934
18935# The commands to list exported symbols.
18936export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18937
18938# The commands to extract the exported symbol list from a shared archive.
18939extract_expsyms_cmds=$lt_extract_expsyms_cmds
18940
18941# Symbols that should not be listed in the preloaded symbols.
18942exclude_expsyms=$lt_exclude_expsyms_GCJ
18943
18944# Symbols that must always be exported.
18945include_expsyms=$lt_include_expsyms_GCJ
18946
18947# ### END LIBTOOL TAG CONFIG: $tagname
18948
18949__EOF__
18950
18951
18952else
18953 # If there is no Makefile yet, we rely on a make rule to execute
18954 # `config.status --recheck' to rerun these tests and create the
18955 # libtool script then.
18956 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18957 if test -f "$ltmain_in"; then
18958 test -f Makefile && make "$ltmain"
18959 fi
18960fi
18961
18962
18963ac_ext=c
18964ac_cpp='$CPP $CPPFLAGS'
18965ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18966ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18967ac_compiler_gnu=$ac_cv_c_compiler_gnu
18968
18969CC="$lt_save_CC"
18970
18971 else
18972 tagname=""
18973 fi
18974 ;;
18975
18976 RC)
18977
18978
d9898ee8 18979# Source file extension for RC test sources.
18980ac_ext=rc
18981
18982# Object file extension for compiled RC test sources.
18983objext=o
18984objext_RC=$objext
18985
18986# Code to be used in simple compile tests
ac40fd9e 18987lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
d9898ee8 18988
18989# Code to be used in simple link tests
18990lt_simple_link_test_code="$lt_simple_compile_test_code"
18991
18992# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18993
18994# If no C compiler was specified, use CC.
18995LTCC=${LTCC-"$CC"}
18996
18997# If no C compiler flags were specified, use CFLAGS.
18998LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18999
19000# Allow CC to be a program name with arguments.
19001compiler=$CC
19002
19003
19004# save warnings/boilerplate of simple test code
19005ac_outfile=conftest.$ac_objext
ac40fd9e 19006echo "$lt_simple_compile_test_code" >conftest.$ac_ext
d9898ee8 19007eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19008_lt_compiler_boilerplate=`cat conftest.err`
19009$rm conftest*
19010
19011ac_outfile=conftest.$ac_objext
ac40fd9e 19012echo "$lt_simple_link_test_code" >conftest.$ac_ext
d9898ee8 19013eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19014_lt_linker_boilerplate=`cat conftest.err`
19015$rm conftest*
19016
19017
19018# Allow CC to be a program name with arguments.
19019lt_save_CC="$CC"
19020CC=${RC-"windres"}
19021compiler=$CC
19022compiler_RC=$CC
19023for cc_temp in $compiler""; do
19024 case $cc_temp in
19025 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19026 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19027 \-*) ;;
19028 *) break;;
19029 esac
19030done
19031cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19032
19033lt_cv_prog_compiler_c_o_RC=yes
19034
19035# The else clause should only fire when bootstrapping the
19036# libtool distribution, otherwise you forgot to ship ltmain.sh
19037# with your package, and you will get complaints that there are
19038# no rules to generate ltmain.sh.
19039if test -f "$ltmain"; then
19040 # See if we are running on zsh, and set the options which allow our commands through
19041 # without removal of \ escapes.
19042 if test -n "${ZSH_VERSION+set}" ; then
19043 setopt NO_GLOB_SUBST
19044 fi
19045 # Now quote all the things that may contain metacharacters while being
19046 # careful not to overquote the AC_SUBSTed values. We take copies of the
19047 # variables and quote the copies for generation of the libtool script.
19048 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19049 SED SHELL STRIP \
19050 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19051 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19052 deplibs_check_method reload_flag reload_cmds need_locks \
19053 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19054 lt_cv_sys_global_symbol_to_c_name_address \
19055 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19056 old_postinstall_cmds old_postuninstall_cmds \
19057 compiler_RC \
19058 CC_RC \
19059 LD_RC \
19060 lt_prog_compiler_wl_RC \
19061 lt_prog_compiler_pic_RC \
19062 lt_prog_compiler_static_RC \
19063 lt_prog_compiler_no_builtin_flag_RC \
19064 export_dynamic_flag_spec_RC \
19065 thread_safe_flag_spec_RC \
19066 whole_archive_flag_spec_RC \
19067 enable_shared_with_static_runtimes_RC \
19068 old_archive_cmds_RC \
19069 old_archive_from_new_cmds_RC \
19070 predep_objects_RC \
19071 postdep_objects_RC \
19072 predeps_RC \
19073 postdeps_RC \
19074 compiler_lib_search_path_RC \
19075 archive_cmds_RC \
19076 archive_expsym_cmds_RC \
19077 postinstall_cmds_RC \
19078 postuninstall_cmds_RC \
19079 old_archive_from_expsyms_cmds_RC \
19080 allow_undefined_flag_RC \
19081 no_undefined_flag_RC \
19082 export_symbols_cmds_RC \
19083 hardcode_libdir_flag_spec_RC \
19084 hardcode_libdir_flag_spec_ld_RC \
19085 hardcode_libdir_separator_RC \
19086 hardcode_automatic_RC \
19087 module_cmds_RC \
19088 module_expsym_cmds_RC \
19089 lt_cv_prog_compiler_c_o_RC \
ac40fd9e 19090 fix_srcfile_path_RC \
d9898ee8 19091 exclude_expsyms_RC \
19092 include_expsyms_RC; do
19093
19094 case $var in
19095 old_archive_cmds_RC | \
19096 old_archive_from_new_cmds_RC | \
19097 archive_cmds_RC | \
19098 archive_expsym_cmds_RC | \
19099 module_cmds_RC | \
19100 module_expsym_cmds_RC | \
19101 old_archive_from_expsyms_cmds_RC | \
19102 export_symbols_cmds_RC | \
19103 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19104 postinstall_cmds | postuninstall_cmds | \
19105 old_postinstall_cmds | old_postuninstall_cmds | \
19106 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19107 # Double-quote double-evaled strings.
19108 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19109 ;;
19110 *)
19111 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19112 ;;
19113 esac
19114 done
19115
19116 case $lt_echo in
19117 *'\$0 --fallback-echo"')
19118 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19119 ;;
19120 esac
19121
19122cfgfile="$ofile"
19123
19124 cat <<__EOF__ >> "$cfgfile"
19125# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19126
19127# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19128
19129# Shell to use when invoking shell scripts.
19130SHELL=$lt_SHELL
19131
19132# Whether or not to build shared libraries.
19133build_libtool_libs=$enable_shared
19134
19135# Whether or not to build static libraries.
19136build_old_libs=$enable_static
19137
19138# Whether or not to add -lc for building shared libraries.
19139build_libtool_need_lc=$archive_cmds_need_lc_RC
19140
19141# Whether or not to disallow shared libs when runtime libs are static
19142allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19143
19144# Whether or not to optimize for fast installation.
19145fast_install=$enable_fast_install
19146
19147# The host system.
19148host_alias=$host_alias
19149host=$host
19150host_os=$host_os
19151
19152# The build system.
19153build_alias=$build_alias
19154build=$build
19155build_os=$build_os
19156
19157# An echo program that does not interpret backslashes.
19158echo=$lt_echo
19159
19160# The archiver.
19161AR=$lt_AR
19162AR_FLAGS=$lt_AR_FLAGS
19163
19164# A C compiler.
19165LTCC=$lt_LTCC
19166
19167# LTCC compiler flags.
19168LTCFLAGS=$lt_LTCFLAGS
19169
19170# A language-specific compiler.
19171CC=$lt_compiler_RC
19172
19173# Is the compiler the GNU C compiler?
19174with_gcc=$GCC_RC
19175
d9898ee8 19176# An ERE matcher.
19177EGREP=$lt_EGREP
19178
19179# The linker used to build libraries.
19180LD=$lt_LD_RC
19181
19182# Whether we need hard or soft links.
19183LN_S=$lt_LN_S
19184
19185# A BSD-compatible nm program.
19186NM=$lt_NM
19187
19188# A symbol stripping program
19189STRIP=$lt_STRIP
19190
19191# Used to examine libraries when file_magic_cmd begins "file"
19192MAGIC_CMD=$MAGIC_CMD
19193
19194# Used on cygwin: DLL creation program.
19195DLLTOOL="$DLLTOOL"
19196
19197# Used on cygwin: object dumper.
19198OBJDUMP="$OBJDUMP"
19199
19200# Used on cygwin: assembler.
19201AS="$AS"
19202
19203# The name of the directory that contains temporary libtool files.
19204objdir=$objdir
19205
19206# How to create reloadable object files.
19207reload_flag=$lt_reload_flag
19208reload_cmds=$lt_reload_cmds
19209
19210# How to pass a linker flag through the compiler.
19211wl=$lt_lt_prog_compiler_wl_RC
19212
19213# Object file suffix (normally "o").
19214objext="$ac_objext"
19215
19216# Old archive suffix (normally "a").
19217libext="$libext"
19218
19219# Shared library suffix (normally ".so").
19220shrext_cmds='$shrext_cmds'
19221
19222# Executable file suffix (normally "").
19223exeext="$exeext"
19224
19225# Additional compiler flags for building library objects.
19226pic_flag=$lt_lt_prog_compiler_pic_RC
19227pic_mode=$pic_mode
19228
19229# What is the maximum length of a command?
19230max_cmd_len=$lt_cv_sys_max_cmd_len
19231
19232# Does compiler simultaneously support -c and -o options?
19233compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19234
19235# Must we lock files when doing compilation?
19236need_locks=$lt_need_locks
19237
19238# Do we need the lib prefix for modules?
19239need_lib_prefix=$need_lib_prefix
19240
19241# Do we need a version for libraries?
19242need_version=$need_version
19243
19244# Whether dlopen is supported.
19245dlopen_support=$enable_dlopen
19246
19247# Whether dlopen of programs is supported.
19248dlopen_self=$enable_dlopen_self
19249
19250# Whether dlopen of statically linked programs is supported.
19251dlopen_self_static=$enable_dlopen_self_static
19252
19253# Compiler flag to prevent dynamic linking.
19254link_static_flag=$lt_lt_prog_compiler_static_RC
19255
19256# Compiler flag to turn off builtin functions.
19257no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19258
19259# Compiler flag to allow reflexive dlopens.
19260export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19261
19262# Compiler flag to generate shared objects directly from archives.
19263whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19264
19265# Compiler flag to generate thread-safe objects.
19266thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19267
19268# Library versioning type.
19269version_type=$version_type
19270
19271# Format of library name prefix.
19272libname_spec=$lt_libname_spec
19273
19274# List of archive names. First name is the real one, the rest are links.
19275# The last name is the one that the linker finds with -lNAME.
19276library_names_spec=$lt_library_names_spec
19277
19278# The coded name of the library, if different from the real name.
19279soname_spec=$lt_soname_spec
19280
19281# Commands used to build and install an old-style archive.
19282RANLIB=$lt_RANLIB
19283old_archive_cmds=$lt_old_archive_cmds_RC
19284old_postinstall_cmds=$lt_old_postinstall_cmds
19285old_postuninstall_cmds=$lt_old_postuninstall_cmds
19286
19287# Create an old-style archive from a shared archive.
19288old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19289
19290# Create a temporary old-style archive to link instead of a shared archive.
19291old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19292
19293# Commands used to build and install a shared archive.
19294archive_cmds=$lt_archive_cmds_RC
19295archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19296postinstall_cmds=$lt_postinstall_cmds
19297postuninstall_cmds=$lt_postuninstall_cmds
19298
19299# Commands used to build a loadable module (assumed same as above if empty)
19300module_cmds=$lt_module_cmds_RC
19301module_expsym_cmds=$lt_module_expsym_cmds_RC
19302
19303# Commands to strip libraries.
19304old_striplib=$lt_old_striplib
19305striplib=$lt_striplib
19306
19307# Dependencies to place before the objects being linked to create a
19308# shared library.
dd184caf 19309predep_objects=$lt_predep_objects_RC
d9898ee8 19310
19311# Dependencies to place after the objects being linked to create a
19312# shared library.
dd184caf 19313postdep_objects=$lt_postdep_objects_RC
d9898ee8 19314
19315# Dependencies to place before the objects being linked to create a
19316# shared library.
19317predeps=$lt_predeps_RC
19318
19319# Dependencies to place after the objects being linked to create a
19320# shared library.
19321postdeps=$lt_postdeps_RC
19322
19323# The library search path used internally by the compiler when linking
19324# a shared library.
dd184caf 19325compiler_lib_search_path=$lt_compiler_lib_search_path_RC
d9898ee8 19326
19327# Method to check whether dependent libraries are shared objects.
19328deplibs_check_method=$lt_deplibs_check_method
19329
19330# Command to use when deplibs_check_method == file_magic.
19331file_magic_cmd=$lt_file_magic_cmd
19332
19333# Flag that allows shared libraries with undefined symbols to be built.
19334allow_undefined_flag=$lt_allow_undefined_flag_RC
19335
19336# Flag that forces no undefined symbols.
19337no_undefined_flag=$lt_no_undefined_flag_RC
19338
19339# Commands used to finish a libtool library installation in a directory.
19340finish_cmds=$lt_finish_cmds
19341
19342# Same as above, but a single script fragment to be evaled but not shown.
19343finish_eval=$lt_finish_eval
19344
19345# Take the output of nm and produce a listing of raw symbols and C names.
19346global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19347
19348# Transform the output of nm in a proper C declaration
19349global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19350
19351# Transform the output of nm in a C name address pair
19352global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19353
19354# This is the shared library runtime path variable.
19355runpath_var=$runpath_var
19356
19357# This is the shared library path variable.
19358shlibpath_var=$shlibpath_var
19359
19360# Is shlibpath searched before the hard-coded library search path?
19361shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19362
19363# How to hardcode a shared library path into an executable.
19364hardcode_action=$hardcode_action_RC
19365
19366# Whether we should hardcode library paths into libraries.
19367hardcode_into_libs=$hardcode_into_libs
19368
19369# Flag to hardcode \$libdir into a binary during linking.
19370# This must work even if \$libdir does not exist.
19371hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19372
19373# If ld is used when linking, flag to hardcode \$libdir into
19374# a binary during linking. This must work even if \$libdir does
19375# not exist.
19376hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19377
19378# Whether we need a single -rpath flag with a separated argument.
19379hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19380
19381# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19382# resulting binary.
19383hardcode_direct=$hardcode_direct_RC
19384
19385# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19386# resulting binary.
19387hardcode_minus_L=$hardcode_minus_L_RC
19388
19389# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19390# the resulting binary.
19391hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19392
19393# Set to yes if building a shared library automatically hardcodes DIR into the library
19394# and all subsequent libraries and executables linked against it.
19395hardcode_automatic=$hardcode_automatic_RC
19396
19397# Variables whose values should be saved in libtool wrapper scripts and
19398# restored at relink time.
19399variables_saved_for_relink="$variables_saved_for_relink"
19400
19401# Whether libtool must link a program against all its dependency libraries.
19402link_all_deplibs=$link_all_deplibs_RC
19403
19404# Compile-time system search path for libraries
dd184caf 19405sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
d9898ee8 19406
19407# Run-time system search path for libraries
19408sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19409
19410# Fix the shell variable \$srcfile for the compiler.
ac40fd9e 19411fix_srcfile_path=$lt_fix_srcfile_path
d9898ee8 19412
19413# Set to yes if exported symbols are required.
19414always_export_symbols=$always_export_symbols_RC
19415
19416# The commands to list exported symbols.
19417export_symbols_cmds=$lt_export_symbols_cmds_RC
19418
19419# The commands to extract the exported symbol list from a shared archive.
19420extract_expsyms_cmds=$lt_extract_expsyms_cmds
19421
19422# Symbols that should not be listed in the preloaded symbols.
19423exclude_expsyms=$lt_exclude_expsyms_RC
19424
19425# Symbols that must always be exported.
19426include_expsyms=$lt_include_expsyms_RC
19427
19428# ### END LIBTOOL TAG CONFIG: $tagname
19429
19430__EOF__
19431
19432
19433else
19434 # If there is no Makefile yet, we rely on a make rule to execute
19435 # `config.status --recheck' to rerun these tests and create the
19436 # libtool script then.
19437 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19438 if test -f "$ltmain_in"; then
19439 test -f Makefile && make "$ltmain"
19440 fi
19441fi
19442
19443
19444ac_ext=c
19445ac_cpp='$CPP $CPPFLAGS'
19446ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19447ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19448ac_compiler_gnu=$ac_cv_c_compiler_gnu
19449
19450CC="$lt_save_CC"
19451
19452 ;;
19453
19454 *)
19455 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19456echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19457 { (exit 1); exit 1; }; }
19458 ;;
19459 esac
19460
19461 # Append the new tag name to the list of available tags.
19462 if test -n "$tagname" ; then
19463 available_tags="$available_tags $tagname"
19464 fi
19465 fi
19466 done
19467 IFS="$lt_save_ifs"
19468
19469 # Now substitute the updated list of available tags.
19470 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19471 mv "${ofile}T" "$ofile"
19472 chmod +x "$ofile"
19473 else
19474 rm -f "${ofile}T"
19475 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19476echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19477 { (exit 1); exit 1; }; }
19478 fi
19479fi
19480
19481
19482
19483# This can be used to rebuild libtool when needed
19484LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19485
19486# Always use our own libtool.
19487LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19488
19489# Prevent multiple expansion
19490
19491
19492
19493
19494
19495
19496
19497
19498
19499
19500
19501
19502
19503
19504
19505
19506
19507
19508
19509
19510
19511if test x$GCC = xyes
19512then
19513 CFLAGS="-Wall $CFLAGS"
19514fi
19515if test x$GXX = xyes
19516then
19517 CXXFLAGS="-Wall $CXXFLAGS"
19518fi
19519
19520CFLAGS="-I$srcdir/.. -I.. $CFLAGS"
19521CXXFLAGS="-I$srcdir/.. -I.. $CXXFLAGS"
19522
19523
d9898ee8 19524. ../dbobj.config
ac40fd9e 19525if test "$dblibrary" != ""
19526then
19527 dblibrary="../$dblibrary"
d9898ee8 19528fi
19529
ac40fd9e 19530
19531makedatprog_target=""
19532if test "$dblibrary" != ""
19533then
19534 makedatprog_target=makedatprog
d9898ee8 19535fi
19536
19537
19538
dd184caf 19539{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19540echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
d9898ee8 19541if test "${ac_cv_header_stdc+set}" = set; then
19542 echo $ECHO_N "(cached) $ECHO_C" >&6
19543else
19544 cat >conftest.$ac_ext <<_ACEOF
19545/* confdefs.h. */
19546_ACEOF
19547cat confdefs.h >>conftest.$ac_ext
19548cat >>conftest.$ac_ext <<_ACEOF
19549/* end confdefs.h. */
19550#include <stdlib.h>
19551#include <stdarg.h>
19552#include <string.h>
19553#include <float.h>
19554
19555int
19556main ()
19557{
19558
19559 ;
19560 return 0;
19561}
19562_ACEOF
19563rm -f conftest.$ac_objext
dd184caf 19564if { (ac_try="$ac_compile"
19565case "(($ac_try" in
19566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19567 *) ac_try_echo=$ac_try;;
19568esac
19569eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19570 (eval "$ac_compile") 2>conftest.er1
d9898ee8 19571 ac_status=$?
19572 grep -v '^ *+' conftest.er1 >conftest.err
19573 rm -f conftest.er1
19574 cat conftest.err >&5
19575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 19576 (exit $ac_status); } && {
19577 test -z "$ac_c_werror_flag" ||
19578 test ! -s conftest.err
19579 } && test -s conftest.$ac_objext; then
d9898ee8 19580 ac_cv_header_stdc=yes
19581else
19582 echo "$as_me: failed program was:" >&5
19583sed 's/^/| /' conftest.$ac_ext >&5
19584
dd184caf 19585 ac_cv_header_stdc=no
d9898ee8 19586fi
dd184caf 19587
19588rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 19589
19590if test $ac_cv_header_stdc = yes; then
19591 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19592 cat >conftest.$ac_ext <<_ACEOF
19593/* confdefs.h. */
19594_ACEOF
19595cat confdefs.h >>conftest.$ac_ext
19596cat >>conftest.$ac_ext <<_ACEOF
19597/* end confdefs.h. */
19598#include <string.h>
19599
19600_ACEOF
19601if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19602 $EGREP "memchr" >/dev/null 2>&1; then
19603 :
19604else
19605 ac_cv_header_stdc=no
19606fi
19607rm -f conftest*
19608
19609fi
19610
19611if test $ac_cv_header_stdc = yes; then
19612 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19613 cat >conftest.$ac_ext <<_ACEOF
19614/* confdefs.h. */
19615_ACEOF
19616cat confdefs.h >>conftest.$ac_ext
19617cat >>conftest.$ac_ext <<_ACEOF
19618/* end confdefs.h. */
19619#include <stdlib.h>
19620
19621_ACEOF
19622if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19623 $EGREP "free" >/dev/null 2>&1; then
19624 :
19625else
19626 ac_cv_header_stdc=no
19627fi
19628rm -f conftest*
19629
19630fi
19631
19632if test $ac_cv_header_stdc = yes; then
19633 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19634 if test "$cross_compiling" = yes; then
19635 :
19636else
19637 cat >conftest.$ac_ext <<_ACEOF
19638/* confdefs.h. */
19639_ACEOF
19640cat confdefs.h >>conftest.$ac_ext
19641cat >>conftest.$ac_ext <<_ACEOF
19642/* end confdefs.h. */
19643#include <ctype.h>
dd184caf 19644#include <stdlib.h>
d9898ee8 19645#if ((' ' & 0x0FF) == 0x020)
19646# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19647# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19648#else
19649# define ISLOWER(c) \
19650 (('a' <= (c) && (c) <= 'i') \
19651 || ('j' <= (c) && (c) <= 'r') \
19652 || ('s' <= (c) && (c) <= 'z'))
19653# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19654#endif
19655
19656#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19657int
19658main ()
19659{
19660 int i;
19661 for (i = 0; i < 256; i++)
19662 if (XOR (islower (i), ISLOWER (i))
19663 || toupper (i) != TOUPPER (i))
dd184caf 19664 return 2;
19665 return 0;
d9898ee8 19666}
19667_ACEOF
19668rm -f conftest$ac_exeext
dd184caf 19669if { (ac_try="$ac_link"
19670case "(($ac_try" in
19671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19672 *) ac_try_echo=$ac_try;;
19673esac
19674eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19675 (eval "$ac_link") 2>&5
d9898ee8 19676 ac_status=$?
19677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19678 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
dd184caf 19679 { (case "(($ac_try" in
19680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19681 *) ac_try_echo=$ac_try;;
19682esac
19683eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19684 (eval "$ac_try") 2>&5
d9898ee8 19685 ac_status=$?
19686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19687 (exit $ac_status); }; }; then
19688 :
19689else
19690 echo "$as_me: program exited with status $ac_status" >&5
19691echo "$as_me: failed program was:" >&5
19692sed 's/^/| /' conftest.$ac_ext >&5
19693
19694( exit $ac_status )
19695ac_cv_header_stdc=no
19696fi
dd184caf 19697rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d9898ee8 19698fi
dd184caf 19699
19700
d9898ee8 19701fi
19702fi
dd184caf 19703{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19704echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
d9898ee8 19705if test $ac_cv_header_stdc = yes; then
19706
19707cat >>confdefs.h <<\_ACEOF
19708#define STDC_HEADERS 1
19709_ACEOF
19710
19711fi
19712
19713
19714for ac_header in unistd.h
19715do
19716as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
dd184caf 19717if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19718 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19719echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19720if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 19721 echo $ECHO_N "(cached) $ECHO_C" >&6
19722fi
dd184caf 19723ac_res=`eval echo '${'$as_ac_Header'}'`
19724 { echo "$as_me:$LINENO: result: $ac_res" >&5
19725echo "${ECHO_T}$ac_res" >&6; }
d9898ee8 19726else
19727 # Is the header compilable?
dd184caf 19728{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
19729echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
d9898ee8 19730cat >conftest.$ac_ext <<_ACEOF
19731/* confdefs.h. */
19732_ACEOF
19733cat confdefs.h >>conftest.$ac_ext
19734cat >>conftest.$ac_ext <<_ACEOF
19735/* end confdefs.h. */
19736$ac_includes_default
19737#include <$ac_header>
19738_ACEOF
19739rm -f conftest.$ac_objext
dd184caf 19740if { (ac_try="$ac_compile"
19741case "(($ac_try" in
19742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19743 *) ac_try_echo=$ac_try;;
19744esac
19745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19746 (eval "$ac_compile") 2>conftest.er1
d9898ee8 19747 ac_status=$?
19748 grep -v '^ *+' conftest.er1 >conftest.err
19749 rm -f conftest.er1
19750 cat conftest.err >&5
19751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 19752 (exit $ac_status); } && {
19753 test -z "$ac_c_werror_flag" ||
19754 test ! -s conftest.err
19755 } && test -s conftest.$ac_objext; then
d9898ee8 19756 ac_header_compiler=yes
19757else
19758 echo "$as_me: failed program was:" >&5
19759sed 's/^/| /' conftest.$ac_ext >&5
19760
dd184caf 19761 ac_header_compiler=no
d9898ee8 19762fi
dd184caf 19763
19764rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19765{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19766echo "${ECHO_T}$ac_header_compiler" >&6; }
d9898ee8 19767
19768# Is the header present?
dd184caf 19769{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
19770echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
d9898ee8 19771cat >conftest.$ac_ext <<_ACEOF
19772/* confdefs.h. */
19773_ACEOF
19774cat confdefs.h >>conftest.$ac_ext
19775cat >>conftest.$ac_ext <<_ACEOF
19776/* end confdefs.h. */
19777#include <$ac_header>
19778_ACEOF
dd184caf 19779if { (ac_try="$ac_cpp conftest.$ac_ext"
19780case "(($ac_try" in
19781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19782 *) ac_try_echo=$ac_try;;
19783esac
19784eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19785 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 19786 ac_status=$?
19787 grep -v '^ *+' conftest.er1 >conftest.err
19788 rm -f conftest.er1
19789 cat conftest.err >&5
19790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 19791 (exit $ac_status); } >/dev/null && {
19792 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19793 test ! -s conftest.err
19794 }; then
d9898ee8 19795 ac_header_preproc=yes
19796else
19797 echo "$as_me: failed program was:" >&5
19798sed 's/^/| /' conftest.$ac_ext >&5
19799
19800 ac_header_preproc=no
19801fi
dd184caf 19802
d9898ee8 19803rm -f conftest.err conftest.$ac_ext
dd184caf 19804{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19805echo "${ECHO_T}$ac_header_preproc" >&6; }
d9898ee8 19806
19807# So? What about this header?
19808case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19809 yes:no: )
19810 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19811echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19812 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19813echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19814 ac_header_preproc=yes
19815 ;;
19816 no:yes:* )
19817 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19818echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19819 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19820echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19821 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19822echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19823 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19824echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19825 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19826echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19827 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19828echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
dd184caf 19829 ( cat <<\_ASBOX
d9898ee8 19830## -------------------------------------------------- ##
19831## Report this to courier-users@lists.sourceforge.net ##
19832## -------------------------------------------------- ##
19833_ASBOX
dd184caf 19834 ) | sed "s/^/$as_me: WARNING: /" >&2
d9898ee8 19835 ;;
19836esac
dd184caf 19837{ echo "$as_me:$LINENO: checking for $ac_header" >&5
19838echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19839if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 19840 echo $ECHO_N "(cached) $ECHO_C" >&6
19841else
19842 eval "$as_ac_Header=\$ac_header_preproc"
19843fi
dd184caf 19844ac_res=`eval echo '${'$as_ac_Header'}'`
19845 { echo "$as_me:$LINENO: result: $ac_res" >&5
19846echo "${ECHO_T}$ac_res" >&6; }
d9898ee8 19847
19848fi
19849if test `eval echo '${'$as_ac_Header'}'` = yes; then
19850 cat >>confdefs.h <<_ACEOF
19851#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19852_ACEOF
19853
19854fi
19855
19856done
19857
19858
19859
19860
19861
dd184caf 19862# Check whether --with-makedatprog was given.
d9898ee8 19863if test "${with_makedatprog+set}" = set; then
dd184caf 19864 withval=$with_makedatprog; makedatprog="$withval"
d9898ee8 19865else
19866 makedatprog="$bindir/makedatprog"
dd184caf 19867fi
19868
d9898ee8 19869
19870makedatprogpath="$makedatprog"
19871
19872
dd184caf 19873ac_config_files="$ac_config_files Makefile makedat"
19874
d9898ee8 19875cat >confcache <<\_ACEOF
19876# This file is a shell script that caches the results of configure
19877# tests run on this system so they can be shared between configure
19878# scripts and configure runs, see configure's option --config-cache.
19879# It is not useful on other systems. If it contains results you don't
19880# want to keep, you may remove or edit it.
19881#
19882# config.status only pays attention to the cache file if you give it
19883# the --recheck option to rerun configure.
19884#
19885# `ac_cv_env_foo' variables (set or unset) will be overridden when
19886# loading this file, other *unset* `ac_cv_foo' will be assigned the
19887# following values.
19888
19889_ACEOF
19890
19891# The following way of writing the cache mishandles newlines in values,
19892# but we know of no workaround that is simple, portable, and efficient.
dd184caf 19893# So, we kill variables containing newlines.
d9898ee8 19894# Ultrix sh set writes to stderr and can't be redirected directly,
19895# and sets the high bit in the cache file unless we assign to the vars.
dd184caf 19896(
19897 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19898 eval ac_val=\$$ac_var
19899 case $ac_val in #(
19900 *${as_nl}*)
19901 case $ac_var in #(
19902 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
19903echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
19904 esac
19905 case $ac_var in #(
19906 _ | IFS | as_nl) ;; #(
19907 *) $as_unset $ac_var ;;
19908 esac ;;
19909 esac
19910 done
19911
d9898ee8 19912 (set) 2>&1 |
dd184caf 19913 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19914 *${as_nl}ac_space=\ *)
d9898ee8 19915 # `set' does not quote correctly, so add quotes (double-quote
19916 # substitution turns \\\\ into \\, and sed turns \\ into \).
19917 sed -n \
19918 "s/'/'\\\\''/g;
19919 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
dd184caf 19920 ;; #(
d9898ee8 19921 *)
19922 # `set' quotes correctly as required by POSIX, so do not add quotes.
dd184caf 19923 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
d9898ee8 19924 ;;
dd184caf 19925 esac |
19926 sort
19927) |
d9898ee8 19928 sed '
dd184caf 19929 /^ac_cv_env_/b end
d9898ee8 19930 t clear
dd184caf 19931 :clear
d9898ee8 19932 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19933 t end
dd184caf 19934 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19935 :end' >>confcache
19936if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19937 if test -w "$cache_file"; then
19938 test "x$cache_file" != "x/dev/null" &&
19939 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
19940echo "$as_me: updating cache $cache_file" >&6;}
d9898ee8 19941 cat confcache >$cache_file
19942 else
dd184caf 19943 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
19944echo "$as_me: not updating unwritable cache $cache_file" >&6;}
d9898ee8 19945 fi
19946fi
19947rm -f confcache
19948
19949test "x$prefix" = xNONE && prefix=$ac_default_prefix
19950# Let make expand exec_prefix.
19951test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19952
d9898ee8 19953DEFS=-DHAVE_CONFIG_H
19954
19955ac_libobjs=
19956ac_ltlibobjs=
19957for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19958 # 1. Remove the extension, and $U if already installed.
dd184caf 19959 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19960 ac_i=`echo "$ac_i" | sed "$ac_script"`
19961 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19962 # will be set to the directory where LIBOBJS objects are built.
19963 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19964 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
d9898ee8 19965done
19966LIBOBJS=$ac_libobjs
19967
19968LTLIBOBJS=$ac_ltlibobjs
19969
19970
19971if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19972 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
19973Usually this means the macro was only invoked conditionally." >&5
19974echo "$as_me: error: conditional \"AMDEP\" was never defined.
19975Usually this means the macro was only invoked conditionally." >&2;}
19976 { (exit 1); exit 1; }; }
19977fi
19978if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19979 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
19980Usually this means the macro was only invoked conditionally." >&5
19981echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
19982Usually this means the macro was only invoked conditionally." >&2;}
19983 { (exit 1); exit 1; }; }
19984fi
19985if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19986 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
19987Usually this means the macro was only invoked conditionally." >&5
19988echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
19989Usually this means the macro was only invoked conditionally." >&2;}
19990 { (exit 1); exit 1; }; }
19991fi
d9898ee8 19992
19993: ${CONFIG_STATUS=./config.status}
19994ac_clean_files_save=$ac_clean_files
19995ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19996{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19997echo "$as_me: creating $CONFIG_STATUS" >&6;}
19998cat >$CONFIG_STATUS <<_ACEOF
19999#! $SHELL
20000# Generated by $as_me.
20001# Run this file to recreate the current configuration.
20002# Compiler output produced by configure, useful for debugging
20003# configure, is in config.log if it exists.
20004
20005debug=false
20006ac_cs_recheck=false
20007ac_cs_silent=false
20008SHELL=\${CONFIG_SHELL-$SHELL}
20009_ACEOF
20010
20011cat >>$CONFIG_STATUS <<\_ACEOF
20012## --------------------- ##
20013## M4sh Initialization. ##
20014## --------------------- ##
20015
dd184caf 20016# Be more Bourne compatible
20017DUALCASE=1; export DUALCASE # for MKS sh
d9898ee8 20018if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20019 emulate sh
20020 NULLCMD=:
20021 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20022 # is contrary to our usage. Disable this feature.
20023 alias -g '${1+"$@"}'='"$@"'
dd184caf 20024 setopt NO_GLOB_SUBST
20025else
20026 case `(set -o) 2>/dev/null` in
20027 *posix*) set -o posix ;;
20028esac
20029
20030fi
20031
20032
20033
20034
20035# PATH needs CR
20036# Avoid depending upon Character Ranges.
20037as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20038as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20039as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20040as_cr_digits='0123456789'
20041as_cr_alnum=$as_cr_Letters$as_cr_digits
20042
20043# The user is always right.
20044if test "${PATH_SEPARATOR+set}" != set; then
20045 echo "#! /bin/sh" >conf$$.sh
20046 echo "exit 0" >>conf$$.sh
20047 chmod +x conf$$.sh
20048 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20049 PATH_SEPARATOR=';'
20050 else
20051 PATH_SEPARATOR=:
20052 fi
20053 rm -f conf$$.sh
d9898ee8 20054fi
d9898ee8 20055
20056# Support unset when possible.
20057if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20058 as_unset=unset
20059else
20060 as_unset=false
20061fi
20062
20063
dd184caf 20064# IFS
20065# We need space, tab and new line, in precisely that order. Quoting is
20066# there to prevent editors from complaining about space-tab.
20067# (If _AS_PATH_WALK were called with IFS unset, it would disable word
20068# splitting by setting IFS to empty value.)
20069as_nl='
20070'
20071IFS=" "" $as_nl"
20072
20073# Find who we are. Look in the path if we contain no directory separator.
20074case $0 in
20075 *[\\/]* ) as_myself=$0 ;;
20076 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20077for as_dir in $PATH
20078do
20079 IFS=$as_save_IFS
20080 test -z "$as_dir" && as_dir=.
20081 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20082done
20083IFS=$as_save_IFS
20084
20085 ;;
20086esac
20087# We did not find ourselves, most probably we were run as `sh COMMAND'
20088# in which case we are not to be found in the path.
20089if test "x$as_myself" = x; then
20090 as_myself=$0
20091fi
20092if test ! -f "$as_myself"; then
20093 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20094 { (exit 1); exit 1; }
20095fi
20096
d9898ee8 20097# Work around bugs in pre-3.0 UWIN ksh.
dd184caf 20098for as_var in ENV MAIL MAILPATH
20099do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20100done
d9898ee8 20101PS1='$ '
20102PS2='> '
20103PS4='+ '
20104
20105# NLS nuisances.
20106for as_var in \
20107 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20108 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20109 LC_TELEPHONE LC_TIME
20110do
20111 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20112 eval $as_var=C; export $as_var
20113 else
dd184caf 20114 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
d9898ee8 20115 fi
20116done
20117
20118# Required to use basename.
dd184caf 20119if expr a : '\(a\)' >/dev/null 2>&1 &&
20120 test "X`expr 00001 : '.*\(...\)'`" = X001; then
d9898ee8 20121 as_expr=expr
20122else
20123 as_expr=false
20124fi
20125
dd184caf 20126if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
d9898ee8 20127 as_basename=basename
20128else
20129 as_basename=false
20130fi
20131
20132
20133# Name of the executable.
dd184caf 20134as_me=`$as_basename -- "$0" ||
d9898ee8 20135$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20136 X"$0" : 'X\(//\)$' \| \
dd184caf 20137 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
d9898ee8 20138echo X/"$0" |
dd184caf 20139 sed '/^.*\/\([^/][^/]*\)\/*$/{
20140 s//\1/
20141 q
20142 }
20143 /^X\/\(\/\/\)$/{
20144 s//\1/
20145 q
20146 }
20147 /^X\/\(\/\).*/{
20148 s//\1/
20149 q
20150 }
20151 s/.*/./; q'`
d9898ee8 20152
dd184caf 20153# CDPATH.
20154$as_unset CDPATH
d9898ee8 20155
20156
d9898ee8 20157
d9898ee8 20158 as_lineno_1=$LINENO
20159 as_lineno_2=$LINENO
d9898ee8 20160 test "x$as_lineno_1" != "x$as_lineno_2" &&
dd184caf 20161 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
d9898ee8 20162
20163 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20164 # uniformly replaced by the line number. The first 'sed' inserts a
dd184caf 20165 # line-number line after each line using $LINENO; the second 'sed'
20166 # does the real work. The second script uses 'N' to pair each
20167 # line-number line with the line containing $LINENO, and appends
20168 # trailing '-' during substitution so that $LINENO is not a special
20169 # case at line end.
d9898ee8 20170 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
dd184caf 20171 # scripts with optimization help from Paolo Bonzini. Blame Lee
20172 # E. McMahon (1931-1989) for sed's syntax. :-)
20173 sed -n '
20174 p
20175 /[$]LINENO/=
20176 ' <$as_myself |
d9898ee8 20177 sed '
dd184caf 20178 s/[$]LINENO.*/&-/
20179 t lineno
20180 b
20181 :lineno
d9898ee8 20182 N
dd184caf 20183 :loop
20184 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
d9898ee8 20185 t loop
dd184caf 20186 s/-\n.*//
d9898ee8 20187 ' >$as_me.lineno &&
dd184caf 20188 chmod +x "$as_me.lineno" ||
20189 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
d9898ee8 20190 { (exit 1); exit 1; }; }
20191
20192 # Don't try to exec as it changes $[0], causing all sort of problems
20193 # (the dirname of $[0] is not the place where we might find the
dd184caf 20194 # original and so on. Autoconf is especially sensitive to this).
20195 . "./$as_me.lineno"
d9898ee8 20196 # Exit status is that of the last command.
20197 exit
20198}
20199
20200
dd184caf 20201if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20202 as_dirname=dirname
20203else
20204 as_dirname=false
20205fi
20206
20207ECHO_C= ECHO_N= ECHO_T=
20208case `echo -n x` in
20209-n*)
20210 case `echo 'x\c'` in
20211 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20212 *) ECHO_C='\c';;
20213 esac;;
20214*)
20215 ECHO_N='-n';;
d9898ee8 20216esac
20217
dd184caf 20218if expr a : '\(a\)' >/dev/null 2>&1 &&
20219 test "X`expr 00001 : '.*\(...\)'`" = X001; then
d9898ee8 20220 as_expr=expr
20221else
20222 as_expr=false
20223fi
20224
20225rm -f conf$$ conf$$.exe conf$$.file
dd184caf 20226if test -d conf$$.dir; then
20227 rm -f conf$$.dir/conf$$.file
20228else
20229 rm -f conf$$.dir
20230 mkdir conf$$.dir
20231fi
d9898ee8 20232echo >conf$$.file
20233if ln -s conf$$.file conf$$ 2>/dev/null; then
dd184caf 20234 as_ln_s='ln -s'
20235 # ... but there are two gotchas:
20236 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20237 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20238 # In both cases, we have to default to `cp -p'.
20239 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
d9898ee8 20240 as_ln_s='cp -p'
d9898ee8 20241elif ln conf$$.file conf$$ 2>/dev/null; then
20242 as_ln_s=ln
20243else
20244 as_ln_s='cp -p'
20245fi
dd184caf 20246rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20247rmdir conf$$.dir 2>/dev/null
d9898ee8 20248
20249if mkdir -p . 2>/dev/null; then
20250 as_mkdir_p=:
20251else
20252 test -d ./-p && rmdir ./-p
20253 as_mkdir_p=false
20254fi
20255
dd184caf 20256if test -x / >/dev/null 2>&1; then
20257 as_test_x='test -x'
20258else
20259 if ls -dL / >/dev/null 2>&1; then
20260 as_ls_L_option=L
20261 else
20262 as_ls_L_option=
20263 fi
20264 as_test_x='
20265 eval sh -c '\''
20266 if test -d "$1"; then
20267 test -d "$1/.";
20268 else
20269 case $1 in
20270 -*)set "./$1";;
20271 esac;
20272 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
20273 ???[sx]*):;;*)false;;esac;fi
20274 '\'' sh
20275 '
20276fi
20277as_executable_p=$as_test_x
d9898ee8 20278
20279# Sed expression to map a string onto a valid CPP name.
20280as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20281
20282# Sed expression to map a string onto a valid variable name.
20283as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20284
20285
d9898ee8 20286exec 6>&1
20287
dd184caf 20288# Save the log message, to keep $[0] and so on meaningful, and to
d9898ee8 20289# report actual input values of CONFIG_FILES etc. instead of their
dd184caf 20290# values after options handling.
20291ac_log="
d9898ee8 20292This file was extended by makedat $as_me 0.60, which was
dd184caf 20293generated by GNU Autoconf 2.61. Invocation command line was
d9898ee8 20294
20295 CONFIG_FILES = $CONFIG_FILES
20296 CONFIG_HEADERS = $CONFIG_HEADERS
20297 CONFIG_LINKS = $CONFIG_LINKS
20298 CONFIG_COMMANDS = $CONFIG_COMMANDS
20299 $ $0 $@
20300
dd184caf 20301on `(hostname || uname -n) 2>/dev/null | sed 1q`
20302"
20303
d9898ee8 20304_ACEOF
20305
dd184caf 20306cat >>$CONFIG_STATUS <<_ACEOF
d9898ee8 20307# Files that config.status was made for.
dd184caf 20308config_files="$ac_config_files"
20309config_headers="$ac_config_headers"
20310config_commands="$ac_config_commands"
d9898ee8 20311
dd184caf 20312_ACEOF
d9898ee8 20313
20314cat >>$CONFIG_STATUS <<\_ACEOF
d9898ee8 20315ac_cs_usage="\
20316\`$as_me' instantiates files from templates according to the
20317current configuration.
20318
20319Usage: $0 [OPTIONS] [FILE]...
20320
20321 -h, --help print this help, then exit
dd184caf 20322 -V, --version print version number and configuration settings, then exit
d9898ee8 20323 -q, --quiet do not print progress messages
20324 -d, --debug don't remove temporary files
20325 --recheck update $as_me by reconfiguring in the same conditions
20326 --file=FILE[:TEMPLATE]
20327 instantiate the configuration file FILE
20328 --header=FILE[:TEMPLATE]
20329 instantiate the configuration header FILE
20330
20331Configuration files:
20332$config_files
20333
20334Configuration headers:
20335$config_headers
20336
20337Configuration commands:
20338$config_commands
20339
20340Report bugs to <bug-autoconf@gnu.org>."
d9898ee8 20341
dd184caf 20342_ACEOF
d9898ee8 20343cat >>$CONFIG_STATUS <<_ACEOF
20344ac_cs_version="\\
20345makedat config.status 0.60
dd184caf 20346configured by $0, generated by GNU Autoconf 2.61,
20347 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
d9898ee8 20348
dd184caf 20349Copyright (C) 2006 Free Software Foundation, Inc.
d9898ee8 20350This config.status script is free software; the Free Software Foundation
20351gives unlimited permission to copy, distribute and modify it."
dd184caf 20352
20353ac_pwd='$ac_pwd'
20354srcdir='$srcdir'
20355INSTALL='$INSTALL'
20356MKDIR_P='$MKDIR_P'
d9898ee8 20357_ACEOF
20358
20359cat >>$CONFIG_STATUS <<\_ACEOF
20360# If no file are specified by the user, then we need to provide default
20361# value. By we need to know if files were specified by the user.
20362ac_need_defaults=:
20363while test $# != 0
20364do
20365 case $1 in
20366 --*=*)
dd184caf 20367 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20368 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
d9898ee8 20369 ac_shift=:
20370 ;;
dd184caf 20371 *)
d9898ee8 20372 ac_option=$1
20373 ac_optarg=$2
20374 ac_shift=shift
20375 ;;
d9898ee8 20376 esac
20377
20378 case $ac_option in
20379 # Handling of the options.
d9898ee8 20380 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20381 ac_cs_recheck=: ;;
dd184caf 20382 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20383 echo "$ac_cs_version"; exit ;;
20384 --debug | --debu | --deb | --de | --d | -d )
d9898ee8 20385 debug=: ;;
20386 --file | --fil | --fi | --f )
20387 $ac_shift
20388 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20389 ac_need_defaults=false;;
20390 --header | --heade | --head | --hea )
20391 $ac_shift
20392 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20393 ac_need_defaults=false;;
dd184caf 20394 --he | --h)
20395 # Conflict between --help and --header
20396 { echo "$as_me: error: ambiguous option: $1
20397Try \`$0 --help' for more information." >&2
20398 { (exit 1); exit 1; }; };;
20399 --help | --hel | -h )
20400 echo "$ac_cs_usage"; exit ;;
d9898ee8 20401 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20402 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20403 ac_cs_silent=: ;;
20404
20405 # This is an error.
dd184caf 20406 -*) { echo "$as_me: error: unrecognized option: $1
20407Try \`$0 --help' for more information." >&2
d9898ee8 20408 { (exit 1); exit 1; }; } ;;
20409
dd184caf 20410 *) ac_config_targets="$ac_config_targets $1"
20411 ac_need_defaults=false ;;
d9898ee8 20412
20413 esac
20414 shift
20415done
20416
20417ac_configure_extra_args=
20418
20419if $ac_cs_silent; then
20420 exec 6>/dev/null
20421 ac_configure_extra_args="$ac_configure_extra_args --silent"
20422fi
20423
20424_ACEOF
20425cat >>$CONFIG_STATUS <<_ACEOF
20426if \$ac_cs_recheck; then
dd184caf 20427 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20428 CONFIG_SHELL=$SHELL
20429 export CONFIG_SHELL
20430 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
d9898ee8 20431fi
20432
20433_ACEOF
dd184caf 20434cat >>$CONFIG_STATUS <<\_ACEOF
20435exec 5>>config.log
20436{
20437 echo
20438 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20439## Running $as_me. ##
20440_ASBOX
20441 echo "$ac_log"
20442} >&5
d9898ee8 20443
dd184caf 20444_ACEOF
d9898ee8 20445cat >>$CONFIG_STATUS <<_ACEOF
20446#
dd184caf 20447# INIT-COMMANDS
d9898ee8 20448#
d9898ee8 20449AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20450
20451_ACEOF
20452
d9898ee8 20453cat >>$CONFIG_STATUS <<\_ACEOF
dd184caf 20454
20455# Handling of arguments.
d9898ee8 20456for ac_config_target in $ac_config_targets
20457do
dd184caf 20458 case $ac_config_target in
20459 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20460 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20461 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20462 "makedat") CONFIG_FILES="$CONFIG_FILES makedat" ;;
20463
d9898ee8 20464 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20465echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20466 { (exit 1); exit 1; }; };;
20467 esac
20468done
20469
dd184caf 20470
d9898ee8 20471# If the user did not use the arguments to specify the items to instantiate,
20472# then the envvar interface is used. Set only those that are not.
20473# We use the long form for the default assignment because of an extremely
20474# bizarre bug on SunOS 4.1.3.
20475if $ac_need_defaults; then
20476 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20477 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20478 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20479fi
20480
20481# Have a temporary directory for convenience. Make it in the build tree
dd184caf 20482# simply because there is no reason against having it here, and in addition,
d9898ee8 20483# creating and moving files from /tmp can sometimes cause problems.
dd184caf 20484# Hook for its removal unless debugging.
20485# Note that there is a small window in which the directory will not be cleaned:
20486# after its creation but before its name has been assigned to `$tmp'.
d9898ee8 20487$debug ||
20488{
dd184caf 20489 tmp=
20490 trap 'exit_status=$?
20491 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20492' 0
d9898ee8 20493 trap '{ (exit 1); exit 1; }' 1 2 13 15
20494}
d9898ee8 20495# Create a (secure) tmp directory for tmp files.
20496
20497{
dd184caf 20498 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
d9898ee8 20499 test -n "$tmp" && test -d "$tmp"
20500} ||
20501{
dd184caf 20502 tmp=./conf$$-$RANDOM
20503 (umask 077 && mkdir "$tmp")
d9898ee8 20504} ||
20505{
20506 echo "$me: cannot create a temporary directory in ." >&2
20507 { (exit 1); exit 1; }
20508}
20509
d9898ee8 20510#
dd184caf 20511# Set up the sed scripts for CONFIG_FILES section.
d9898ee8 20512#
20513
20514# No need to generate the scripts if there are no CONFIG_FILES.
20515# This happens for instance when ./config.status config.h
dd184caf 20516if test -n "$CONFIG_FILES"; then
d9898ee8 20517
20518_ACEOF
20519
dd184caf 20520
20521
20522ac_delim='%!_!# '
20523for ac_last_try in false false false false false :; do
20524 cat >conf$$subs.sed <<_ACEOF
20525SHELL!$SHELL$ac_delim
20526PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
20527PACKAGE_NAME!$PACKAGE_NAME$ac_delim
20528PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
20529PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
20530PACKAGE_STRING!$PACKAGE_STRING$ac_delim
20531PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
20532exec_prefix!$exec_prefix$ac_delim
20533prefix!$prefix$ac_delim
20534program_transform_name!$program_transform_name$ac_delim
20535bindir!$bindir$ac_delim
20536sbindir!$sbindir$ac_delim
20537libexecdir!$libexecdir$ac_delim
20538datarootdir!$datarootdir$ac_delim
20539datadir!$datadir$ac_delim
20540sysconfdir!$sysconfdir$ac_delim
20541sharedstatedir!$sharedstatedir$ac_delim
20542localstatedir!$localstatedir$ac_delim
20543includedir!$includedir$ac_delim
20544oldincludedir!$oldincludedir$ac_delim
20545docdir!$docdir$ac_delim
20546infodir!$infodir$ac_delim
20547htmldir!$htmldir$ac_delim
20548dvidir!$dvidir$ac_delim
20549pdfdir!$pdfdir$ac_delim
20550psdir!$psdir$ac_delim
20551libdir!$libdir$ac_delim
20552localedir!$localedir$ac_delim
20553mandir!$mandir$ac_delim
20554DEFS!$DEFS$ac_delim
20555ECHO_C!$ECHO_C$ac_delim
20556ECHO_N!$ECHO_N$ac_delim
20557ECHO_T!$ECHO_T$ac_delim
20558LIBS!$LIBS$ac_delim
20559build_alias!$build_alias$ac_delim
20560host_alias!$host_alias$ac_delim
20561target_alias!$target_alias$ac_delim
20562INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
20563INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
20564INSTALL_DATA!$INSTALL_DATA$ac_delim
20565am__isrc!$am__isrc$ac_delim
20566CYGPATH_W!$CYGPATH_W$ac_delim
20567PACKAGE!$PACKAGE$ac_delim
20568VERSION!$VERSION$ac_delim
20569ACLOCAL!$ACLOCAL$ac_delim
20570AUTOCONF!$AUTOCONF$ac_delim
20571AUTOMAKE!$AUTOMAKE$ac_delim
20572AUTOHEADER!$AUTOHEADER$ac_delim
20573MAKEINFO!$MAKEINFO$ac_delim
20574install_sh!$install_sh$ac_delim
20575STRIP!$STRIP$ac_delim
20576INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
20577mkdir_p!$mkdir_p$ac_delim
20578AWK!$AWK$ac_delim
20579SET_MAKE!$SET_MAKE$ac_delim
20580am__leading_dot!$am__leading_dot$ac_delim
20581AMTAR!$AMTAR$ac_delim
20582am__tar!$am__tar$ac_delim
20583am__untar!$am__untar$ac_delim
20584CC!$CC$ac_delim
20585CFLAGS!$CFLAGS$ac_delim
20586LDFLAGS!$LDFLAGS$ac_delim
20587CPPFLAGS!$CPPFLAGS$ac_delim
20588ac_ct_CC!$ac_ct_CC$ac_delim
20589EXEEXT!$EXEEXT$ac_delim
20590OBJEXT!$OBJEXT$ac_delim
20591DEPDIR!$DEPDIR$ac_delim
20592am__include!$am__include$ac_delim
20593am__quote!$am__quote$ac_delim
20594AMDEP_TRUE!$AMDEP_TRUE$ac_delim
20595AMDEP_FALSE!$AMDEP_FALSE$ac_delim
20596AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
20597CCDEPMODE!$CCDEPMODE$ac_delim
20598am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
20599am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
20600LN_S!$LN_S$ac_delim
20601PERL!$PERL$ac_delim
20602CAT!$CAT$ac_delim
20603build!$build$ac_delim
20604build_cpu!$build_cpu$ac_delim
20605build_vendor!$build_vendor$ac_delim
20606build_os!$build_os$ac_delim
20607host!$host$ac_delim
20608host_cpu!$host_cpu$ac_delim
20609host_vendor!$host_vendor$ac_delim
20610host_os!$host_os$ac_delim
20611SED!$SED$ac_delim
20612GREP!$GREP$ac_delim
20613EGREP!$EGREP$ac_delim
20614ECHO!$ECHO$ac_delim
20615AR!$AR$ac_delim
20616RANLIB!$RANLIB$ac_delim
20617CPP!$CPP$ac_delim
20618CXX!$CXX$ac_delim
20619CXXFLAGS!$CXXFLAGS$ac_delim
20620ac_ct_CXX!$ac_ct_CXX$ac_delim
20621CXXDEPMODE!$CXXDEPMODE$ac_delim
20622_ACEOF
20623
20624 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
20625 break
20626 elif $ac_last_try; then
20627 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20628echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20629 { (exit 1); exit 1; }; }
20630 else
20631 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
d9898ee8 20632 fi
dd184caf 20633done
20634
20635ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20636if test -n "$ac_eof"; then
20637 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20638 ac_eof=`expr $ac_eof + 1`
20639fi
20640
20641cat >>$CONFIG_STATUS <<_ACEOF
20642cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
20643/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20644_ACEOF
20645sed '
20646s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20647s/^/s,@/; s/!/@,|#_!!_#|/
20648:n
20649t n
20650s/'"$ac_delim"'$/,g/; t
20651s/$/\\/; p
20652N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20653' >>$CONFIG_STATUS <conf$$subs.sed
20654rm -f conf$$subs.sed
20655cat >>$CONFIG_STATUS <<_ACEOF
20656CEOF$ac_eof
20657_ACEOF
20658
20659
20660ac_delim='%!_!# '
20661for ac_last_try in false false false false false :; do
20662 cat >conf$$subs.sed <<_ACEOF
20663am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
20664am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
20665CXXCPP!$CXXCPP$ac_delim
20666F77!$F77$ac_delim
20667FFLAGS!$FFLAGS$ac_delim
20668ac_ct_F77!$ac_ct_F77$ac_delim
20669LIBTOOL!$LIBTOOL$ac_delim
dd184caf 20670dblibrary!$dblibrary$ac_delim
ac40fd9e 20671makedatprog_target!$makedatprog_target$ac_delim
dd184caf 20672makedatprogpath!$makedatprogpath$ac_delim
20673LIBOBJS!$LIBOBJS$ac_delim
20674LTLIBOBJS!$LTLIBOBJS$ac_delim
20675_ACEOF
20676
ac40fd9e 20677 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 12; then
dd184caf 20678 break
20679 elif $ac_last_try; then
20680 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20681echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20682 { (exit 1); exit 1; }; }
20683 else
20684 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20685 fi
20686done
20687
20688ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20689if test -n "$ac_eof"; then
20690 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20691 ac_eof=`expr $ac_eof + 1`
20692fi
d9898ee8 20693
dd184caf 20694cat >>$CONFIG_STATUS <<_ACEOF
20695cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
20696/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
d9898ee8 20697_ACEOF
dd184caf 20698sed '
20699s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20700s/^/s,@/; s/!/@,|#_!!_#|/
20701:n
20702t n
20703s/'"$ac_delim"'$/,g/; t
20704s/$/\\/; p
20705N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20706' >>$CONFIG_STATUS <conf$$subs.sed
20707rm -f conf$$subs.sed
20708cat >>$CONFIG_STATUS <<_ACEOF
20709:end
20710s/|#_!!_#|//g
20711CEOF$ac_eof
20712_ACEOF
20713
20714
20715# VPATH may cause trouble with some makes, so we remove $(srcdir),
20716# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20717# trailing colons and then remove the whole line if VPATH becomes empty
20718# (actually we leave an empty line to preserve line numbers).
20719if test "x$srcdir" = x.; then
20720 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20721s/:*\$(srcdir):*/:/
20722s/:*\${srcdir}:*/:/
20723s/:*@srcdir@:*/:/
20724s/^\([^=]*=[ ]*\):*/\1/
20725s/:*$//
20726s/^[^=]*=[ ]*$//
20727}'
20728fi
20729
d9898ee8 20730cat >>$CONFIG_STATUS <<\_ACEOF
dd184caf 20731fi # test -n "$CONFIG_FILES"
20732
20733
20734for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
20735do
20736 case $ac_tag in
20737 :[FHLC]) ac_mode=$ac_tag; continue;;
20738 esac
20739 case $ac_mode$ac_tag in
20740 :[FHL]*:*);;
20741 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
20742echo "$as_me: error: Invalid tag $ac_tag." >&2;}
20743 { (exit 1); exit 1; }; };;
20744 :[FH]-) ac_tag=-:-;;
20745 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
d9898ee8 20746 esac
dd184caf 20747 ac_save_IFS=$IFS
20748 IFS=:
20749 set x $ac_tag
20750 IFS=$ac_save_IFS
20751 shift
20752 ac_file=$1
20753 shift
20754
20755 case $ac_mode in
20756 :L) ac_source=$1;;
20757 :[FH])
20758 ac_file_inputs=
20759 for ac_f
20760 do
20761 case $ac_f in
20762 -) ac_f="$tmp/stdin";;
20763 *) # Look for the file first in the build tree, then in the source tree
20764 # (if the path is not absolute). The absolute path cannot be DOS-style,
20765 # because $ac_f cannot contain `:'.
20766 test -f "$ac_f" ||
20767 case $ac_f in
20768 [\\/$]*) false;;
20769 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20770 esac ||
20771 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
20772echo "$as_me: error: cannot find input file: $ac_f" >&2;}
20773 { (exit 1); exit 1; }; };;
20774 esac
20775 ac_file_inputs="$ac_file_inputs $ac_f"
20776 done
20777
20778 # Let's still pretend it is `configure' which instantiates (i.e., don't
20779 # use $as_me), people would be surprised to read:
20780 # /* config.h. Generated by config.status. */
20781 configure_input="Generated from "`IFS=:
20782 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
20783 if test x"$ac_file" != x-; then
20784 configure_input="$ac_file. $configure_input"
20785 { echo "$as_me:$LINENO: creating $ac_file" >&5
20786echo "$as_me: creating $ac_file" >&6;}
20787 fi
d9898ee8 20788
dd184caf 20789 case $ac_tag in
20790 *:-:* | *:-) cat >"$tmp/stdin";;
20791 esac
20792 ;;
20793 esac
20794
20795 ac_dir=`$as_dirname -- "$ac_file" ||
d9898ee8 20796$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20797 X"$ac_file" : 'X\(//\)[^/]' \| \
20798 X"$ac_file" : 'X\(//\)$' \| \
dd184caf 20799 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
d9898ee8 20800echo X"$ac_file" |
dd184caf 20801 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20802 s//\1/
20803 q
20804 }
20805 /^X\(\/\/\)[^/].*/{
20806 s//\1/
20807 q
20808 }
20809 /^X\(\/\/\)$/{
20810 s//\1/
20811 q
20812 }
20813 /^X\(\/\).*/{
20814 s//\1/
20815 q
20816 }
20817 s/.*/./; q'`
20818 { as_dir="$ac_dir"
20819 case $as_dir in #(
20820 -*) as_dir=./$as_dir;;
20821 esac
20822 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
d9898ee8 20823 as_dirs=
dd184caf 20824 while :; do
20825 case $as_dir in #(
20826 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
20827 *) as_qdir=$as_dir;;
20828 esac
20829 as_dirs="'$as_qdir' $as_dirs"
20830 as_dir=`$as_dirname -- "$as_dir" ||
d9898ee8 20831$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20832 X"$as_dir" : 'X\(//\)[^/]' \| \
20833 X"$as_dir" : 'X\(//\)$' \| \
dd184caf 20834 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
d9898ee8 20835echo X"$as_dir" |
dd184caf 20836 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20837 s//\1/
20838 q
20839 }
20840 /^X\(\/\/\)[^/].*/{
20841 s//\1/
20842 q
20843 }
20844 /^X\(\/\/\)$/{
20845 s//\1/
20846 q
20847 }
20848 /^X\(\/\).*/{
20849 s//\1/
20850 q
20851 }
20852 s/.*/./; q'`
20853 test -d "$as_dir" && break
d9898ee8 20854 done
dd184caf 20855 test -z "$as_dirs" || eval "mkdir $as_dirs"
20856 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
20857echo "$as_me: error: cannot create directory $as_dir" >&2;}
d9898ee8 20858 { (exit 1); exit 1; }; }; }
d9898ee8 20859 ac_builddir=.
20860
dd184caf 20861case "$ac_dir" in
20862.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20863*)
d9898ee8 20864 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
dd184caf 20865 # A ".." for each directory in $ac_dir_suffix.
20866 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
20867 case $ac_top_builddir_sub in
20868 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20869 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20870 esac ;;
20871esac
20872ac_abs_top_builddir=$ac_pwd
20873ac_abs_builddir=$ac_pwd$ac_dir_suffix
20874# for backward compatibility:
20875ac_top_builddir=$ac_top_build_prefix
d9898ee8 20876
20877case $srcdir in
dd184caf 20878 .) # We are building in place.
d9898ee8 20879 ac_srcdir=.
dd184caf 20880 ac_top_srcdir=$ac_top_builddir_sub
20881 ac_abs_top_srcdir=$ac_pwd ;;
20882 [\\/]* | ?:[\\/]* ) # Absolute name.
d9898ee8 20883 ac_srcdir=$srcdir$ac_dir_suffix;
dd184caf 20884 ac_top_srcdir=$srcdir
20885 ac_abs_top_srcdir=$srcdir ;;
20886 *) # Relative name.
20887 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20888 ac_top_srcdir=$ac_top_build_prefix$srcdir
20889 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
d9898ee8 20890esac
dd184caf 20891ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
d9898ee8 20892
d9898ee8 20893
dd184caf 20894 case $ac_mode in
20895 :F)
20896 #
20897 # CONFIG_FILE
20898 #
d9898ee8 20899
20900 case $INSTALL in
20901 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
dd184caf 20902 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
d9898ee8 20903 esac
dd184caf 20904 ac_MKDIR_P=$MKDIR_P
20905 case $MKDIR_P in
20906 [\\/$]* | ?:[\\/]* ) ;;
20907 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20908 esac
20909_ACEOF
d9898ee8 20910
dd184caf 20911cat >>$CONFIG_STATUS <<\_ACEOF
20912# If the template does not know about datarootdir, expand it.
20913# FIXME: This hack should be removed a few years after 2.60.
20914ac_datarootdir_hack=; ac_datarootdir_seen=
20915
20916case `sed -n '/datarootdir/ {
20917 p
20918 q
20919}
20920/@datadir@/p
20921/@docdir@/p
20922/@infodir@/p
20923/@localedir@/p
20924/@mandir@/p
20925' $ac_file_inputs` in
20926*datarootdir*) ac_datarootdir_seen=yes;;
20927*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20928 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20929echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
d9898ee8 20930_ACEOF
dd184caf 20931cat >>$CONFIG_STATUS <<_ACEOF
20932 ac_datarootdir_hack='
20933 s&@datadir@&$datadir&g
20934 s&@docdir@&$docdir&g
20935 s&@infodir@&$infodir&g
20936 s&@localedir@&$localedir&g
20937 s&@mandir@&$mandir&g
20938 s&\\\${datarootdir}&$datarootdir&g' ;;
20939esac
20940_ACEOF
20941
20942# Neutralize VPATH when `$srcdir' = `.'.
20943# Shell code in configure.ac might set extrasub.
20944# FIXME: do we really want to maintain this feature?
d9898ee8 20945cat >>$CONFIG_STATUS <<_ACEOF
20946 sed "$ac_vpsub
20947$extrasub
20948_ACEOF
20949cat >>$CONFIG_STATUS <<\_ACEOF
20950:t
20951/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
dd184caf 20952s&@configure_input@&$configure_input&;t t
20953s&@top_builddir@&$ac_top_builddir_sub&;t t
20954s&@srcdir@&$ac_srcdir&;t t
20955s&@abs_srcdir@&$ac_abs_srcdir&;t t
20956s&@top_srcdir@&$ac_top_srcdir&;t t
20957s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20958s&@builddir@&$ac_builddir&;t t
20959s&@abs_builddir@&$ac_abs_builddir&;t t
20960s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20961s&@INSTALL@&$ac_INSTALL&;t t
20962s&@MKDIR_P@&$ac_MKDIR_P&;t t
20963$ac_datarootdir_hack
20964" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
20965
20966test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20967 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
20968 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
20969 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20970which seems to be undefined. Please make sure it is defined." >&5
20971echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20972which seems to be undefined. Please make sure it is defined." >&2;}
20973
20974 rm -f "$tmp/stdin"
d9898ee8 20975 case $ac_file in
dd184caf 20976 -) cat "$tmp/out"; rm -f "$tmp/out";;
20977 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
d9898ee8 20978 esac
dd184caf 20979 ;;
20980 :H)
20981 #
20982 # CONFIG_HEADER
20983 #
d9898ee8 20984_ACEOF
20985
dd184caf 20986# Transform confdefs.h into a sed script `conftest.defines', that
20987# substitutes the proper values into config.h.in to produce config.h.
20988rm -f conftest.defines conftest.tail
20989# First, append a space to every undef/define line, to ease matching.
20990echo 's/$/ /' >conftest.defines
20991# Then, protect against being on the right side of a sed subst, or in
20992# an unquoted here document, in config.status. If some macros were
20993# called several times there might be several #defines for the same
20994# symbol, which is useless. But do not sort them, since the last
20995# AC_DEFINE must be honored.
20996ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20997# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
20998# NAME is the cpp macro being defined, VALUE is the value it is being given.
20999# PARAMS is the parameter list in the macro definition--in most cases, it's
21000# just an empty string.
21001ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
21002ac_dB='\\)[ (].*,\\1define\\2'
21003ac_dC=' '
21004ac_dD=' ,'
21005
21006uniq confdefs.h |
21007 sed -n '
21008 t rset
21009 :rset
21010 s/^[ ]*#[ ]*define[ ][ ]*//
21011 t ok
21012 d
21013 :ok
21014 s/[\\&,]/\\&/g
21015 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
21016 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
21017 ' >>conftest.defines
21018
21019# Remove the space that was appended to ease matching.
21020# Then replace #undef with comments. This is necessary, for
d9898ee8 21021# example, in the case of _POSIX_SOURCE, which is predefined and required
21022# on some systems where configure will not decide to define it.
dd184caf 21023# (The regexp can be short, since the line contains either #define or #undef.)
21024echo 's/ $//
21025s,^[ #]*u.*,/* & */,' >>conftest.defines
21026
21027# Break up conftest.defines:
21028ac_max_sed_lines=50
21029
21030# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
21031# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
21032# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
21033# et cetera.
21034ac_in='$ac_file_inputs'
21035ac_out='"$tmp/out1"'
21036ac_nxt='"$tmp/out2"'
21037
21038while :
d9898ee8 21039do
dd184caf 21040 # Write a here document:
21041 cat >>$CONFIG_STATUS <<_ACEOF
21042 # First, check the format of the line:
21043 cat >"\$tmp/defines.sed" <<\\CEOF
21044/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
21045/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
21046b
21047:def
21048_ACEOF
21049 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
d9898ee8 21050 echo 'CEOF
dd184caf 21051 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
21052 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
21053 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
21054 grep . conftest.tail >/dev/null || break
d9898ee8 21055 rm -f conftest.defines
21056 mv conftest.tail conftest.defines
21057done
dd184caf 21058rm -f conftest.defines conftest.tail
d9898ee8 21059
dd184caf 21060echo "ac_result=$ac_in" >>$CONFIG_STATUS
d9898ee8 21061cat >>$CONFIG_STATUS <<\_ACEOF
d9898ee8 21062 if test x"$ac_file" != x-; then
dd184caf 21063 echo "/* $configure_input */" >"$tmp/config.h"
21064 cat "$ac_result" >>"$tmp/config.h"
21065 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
d9898ee8 21066 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21067echo "$as_me: $ac_file is unchanged" >&6;}
21068 else
d9898ee8 21069 rm -f $ac_file
dd184caf 21070 mv "$tmp/config.h" $ac_file
d9898ee8 21071 fi
21072 else
dd184caf 21073 echo "/* $configure_input */"
21074 cat "$ac_result"
d9898ee8 21075 fi
dd184caf 21076 rm -f "$tmp/out12"
d9898ee8 21077# Compute $ac_file's index in $config_headers.
ac40fd9e 21078_am_arg=$ac_file
d9898ee8 21079_am_stamp_count=1
21080for _am_header in $config_headers :; do
21081 case $_am_header in
ac40fd9e 21082 $_am_arg | $_am_arg:* )
d9898ee8 21083 break ;;
21084 * )
21085 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21086 esac
21087done
ac40fd9e 21088echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21089$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21090 X"$_am_arg" : 'X\(//\)[^/]' \| \
21091 X"$_am_arg" : 'X\(//\)$' \| \
21092 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21093echo X"$_am_arg" |
dd184caf 21094 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21095 s//\1/
21096 q
21097 }
21098 /^X\(\/\/\)[^/].*/{
21099 s//\1/
21100 q
21101 }
21102 /^X\(\/\/\)$/{
21103 s//\1/
21104 q
21105 }
21106 /^X\(\/\).*/{
21107 s//\1/
21108 q
21109 }
21110 s/.*/./; q'`/stamp-h$_am_stamp_count
21111 ;;
d9898ee8 21112
dd184caf 21113 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
21114echo "$as_me: executing $ac_file commands" >&6;}
21115 ;;
21116 esac
d9898ee8 21117
21118
dd184caf 21119 case $ac_file$ac_mode in
21120 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
d9898ee8 21121 # Strip MF so we end up with the name of the file.
21122 mf=`echo "$mf" | sed -e 's/:.*$//'`
21123 # Check whether this is an Automake generated Makefile or not.
21124 # We used to match only the files named `Makefile.in', but
21125 # some people rename them; so instead we look at the file content.
21126 # Grep'ing the first line is not enough: some people post-process
21127 # each Makefile.in and add a new line on top of each file to say so.
dd184caf 21128 # Grep'ing the whole file is not good either: AIX grep has a line
21129 # limit of 2048, but all sed's we know have understand at least 4000.
ac40fd9e 21130 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
dd184caf 21131 dirpart=`$as_dirname -- "$mf" ||
d9898ee8 21132$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21133 X"$mf" : 'X\(//\)[^/]' \| \
21134 X"$mf" : 'X\(//\)$' \| \
dd184caf 21135 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
d9898ee8 21136echo X"$mf" |
dd184caf 21137 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21138 s//\1/
21139 q
21140 }
21141 /^X\(\/\/\)[^/].*/{
21142 s//\1/
21143 q
21144 }
21145 /^X\(\/\/\)$/{
21146 s//\1/
21147 q
21148 }
21149 /^X\(\/\).*/{
21150 s//\1/
21151 q
21152 }
21153 s/.*/./; q'`
d9898ee8 21154 else
21155 continue
21156 fi
21157 # Extract the definition of DEPDIR, am__include, and am__quote
21158 # from the Makefile without running `make'.
21159 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21160 test -z "$DEPDIR" && continue
21161 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21162 test -z "am__include" && continue
21163 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21164 # When using ansi2knr, U may be empty or an underscore; expand it
21165 U=`sed -n 's/^U = //p' < "$mf"`
21166 # Find all dependency output files, they are included files with
21167 # $(DEPDIR) in their names. We invoke sed twice because it is the
21168 # simplest approach to changing $(DEPDIR) to its actual value in the
21169 # expansion.
21170 for file in `sed -n "
21171 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21172 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21173 # Make sure the directory exists.
21174 test -f "$dirpart/$file" && continue
dd184caf 21175 fdir=`$as_dirname -- "$file" ||
d9898ee8 21176$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21177 X"$file" : 'X\(//\)[^/]' \| \
21178 X"$file" : 'X\(//\)$' \| \
dd184caf 21179 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
d9898ee8 21180echo X"$file" |
dd184caf 21181 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21182 s//\1/
21183 q
21184 }
21185 /^X\(\/\/\)[^/].*/{
21186 s//\1/
21187 q
21188 }
21189 /^X\(\/\/\)$/{
21190 s//\1/
21191 q
21192 }
21193 /^X\(\/\).*/{
21194 s//\1/
21195 q
21196 }
21197 s/.*/./; q'`
21198 { as_dir=$dirpart/$fdir
21199 case $as_dir in #(
21200 -*) as_dir=./$as_dir;;
21201 esac
21202 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
d9898ee8 21203 as_dirs=
dd184caf 21204 while :; do
21205 case $as_dir in #(
21206 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21207 *) as_qdir=$as_dir;;
21208 esac
21209 as_dirs="'$as_qdir' $as_dirs"
21210 as_dir=`$as_dirname -- "$as_dir" ||
d9898ee8 21211$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21212 X"$as_dir" : 'X\(//\)[^/]' \| \
21213 X"$as_dir" : 'X\(//\)$' \| \
dd184caf 21214 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
d9898ee8 21215echo X"$as_dir" |
dd184caf 21216 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21217 s//\1/
21218 q
21219 }
21220 /^X\(\/\/\)[^/].*/{
21221 s//\1/
21222 q
21223 }
21224 /^X\(\/\/\)$/{
21225 s//\1/
21226 q
21227 }
21228 /^X\(\/\).*/{
21229 s//\1/
21230 q
21231 }
21232 s/.*/./; q'`
21233 test -d "$as_dir" && break
d9898ee8 21234 done
dd184caf 21235 test -z "$as_dirs" || eval "mkdir $as_dirs"
21236 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21237echo "$as_me: error: cannot create directory $as_dir" >&2;}
d9898ee8 21238 { (exit 1); exit 1; }; }; }
d9898ee8 21239 # echo "creating $dirpart/$file"
21240 echo '# dummy' > "$dirpart/$file"
21241 done
21242done
21243 ;;
dd184caf 21244
d9898ee8 21245 esac
dd184caf 21246done # for ac_tag
d9898ee8 21247
d9898ee8 21248
21249{ (exit 0); exit 0; }
21250_ACEOF
21251chmod +x $CONFIG_STATUS
21252ac_clean_files=$ac_clean_files_save
21253
21254
21255# configure is writing to config.log, and then calls config.status.
21256# config.status does its own redirection, appending to config.log.
21257# Unfortunately, on DOS this fails, as config.log is still kept open
21258# by configure, so config.status won't be able to write to it; its
21259# output is simply discarded. So we exec the FD to /dev/null,
21260# effectively closing config.log, so it can be properly (re)opened and
21261# appended to by config.status. When coming back to configure, we
21262# need to make the FD available again.
21263if test "$no_create" != yes; then
21264 ac_cs_success=:
21265 ac_config_status_args=
21266 test "$silent" = yes &&
21267 ac_config_status_args="$ac_config_status_args --quiet"
21268 exec 5>/dev/null
21269 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21270 exec 5>>config.log
21271 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21272 # would make configure fail if this is the last instruction.
21273 $ac_cs_success || { (exit 1); exit 1; }
21274fi
21275