Imported Debian patch 0.60.1-1
[hcoop/debian/courier-authlib.git] / makedat / configure
CommitLineData
d9898ee8 1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
64ff59ba 3# Generated by GNU Autoconf 2.61 for makedat 0.60.
d9898ee8 4#
5# Report bugs to <courier-users@lists.sourceforge.net>.
6#
64ff59ba 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
64ff59ba 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+"$@"}'='"$@"'
64ff59ba 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
64ff59ba 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.
64ff59ba 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
64ff59ba 113 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
d9898ee8 114 fi
115done
116
117# Required to use basename.
64ff59ba 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
64ff59ba 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.
64ff59ba 133as_me=`$as_basename -- "$0" ||
d9898ee8 134$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135 X"$0" : 'X\(//\)$' \| \
64ff59ba 136 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
d9898ee8 137echo X/"$0" |
64ff59ba 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
64ff59ba 152# CDPATH.
153$as_unset CDPATH
d9898ee8 154
d9898ee8 155
64ff59ba 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
64ff59ba 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
64ff59ba 180exitcode=0
181if as_func_success; then
182 :
183else
184 exitcode=1
185 echo as_func_success failed.
186fi
d9898ee8 187
64ff59ba 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=.
64ff59ba 228 case $as_dir in
d9898ee8 229 /*)
64ff59ba 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" &&
64ff59ba 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
64ff59ba 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
64ff59ba 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 '
64ff59ba 445 s/[$]LINENO.*/&-/
446 t lineno
447 b
448 :lineno
d9898ee8 449 N
64ff59ba 450 :loop
451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
d9898ee8 452 t loop
64ff59ba 453 s/-\n.*//
d9898ee8 454 ' >$as_me.lineno &&
64ff59ba 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
64ff59ba 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
64ff59ba 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
64ff59ba 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
64ff59ba 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
64ff59ba 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
64ff59ba 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
64ff59ba 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
64ff59ba 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
64ff59ba 719ac_clean_files=
d9898ee8 720ac_config_libobj_dir=.
64ff59ba 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>
64ff59ba 739#ifdef HAVE_SYS_TYPES_H
d9898ee8 740# include <sys/types.h>
741#endif
64ff59ba 742#ifdef HAVE_SYS_STAT_H
d9898ee8 743# include <sys/stat.h>
744#endif
64ff59ba 745#ifdef STDC_HEADERS
d9898ee8 746# include <stdlib.h>
747# include <stddef.h>
748#else
64ff59ba 749# ifdef HAVE_STDLIB_H
d9898ee8 750# include <stdlib.h>
751# endif
752#endif
64ff59ba 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
64ff59ba 759#ifdef HAVE_STRINGS_H
d9898ee8 760# include <strings.h>
761#endif
64ff59ba 762#ifdef HAVE_INTTYPES_H
d9898ee8 763# include <inttypes.h>
d9898ee8 764#endif
64ff59ba 765#ifdef HAVE_STDINT_H
766# include <stdint.h>
767#endif
768#ifdef HAVE_UNISTD_H
d9898ee8 769# include <unistd.h>
770#endif"
771
64ff59ba 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
876makedatprog_target
877dblibrary
878LIBGDBM
879LIBDB
880USE_GDBM_TRUE
881USE_GDBM_FALSE
882USE_DB_TRUE
883USE_DB_FALSE
884makedatprogpath
885LIBOBJS
886LTLIBOBJS'
d9898ee8 887ac_subst_files=''
64ff59ba 888 ac_precious_vars='build_alias
889host_alias
890target_alias
891CC
892CFLAGS
893LDFLAGS
894LIBS
895CPPFLAGS
896CPP
897CXX
898CXXFLAGS
899CCC
900CXXCPP
901F77
902FFLAGS'
903
d9898ee8 904
905# Initialize some variables set by options.
906ac_init_help=
907ac_init_version=false
908# The variables have the same names as the options, with
909# dashes changed to underlines.
910cache_file=/dev/null
911exec_prefix=NONE
912no_create=
913no_recursion=
914prefix=NONE
915program_prefix=NONE
916program_suffix=NONE
917program_transform_name=s,x,x,
918silent=
919site=
920srcdir=
921verbose=
922x_includes=NONE
923x_libraries=NONE
924
925# Installation directory options.
926# These are left unexpanded so users can "make install exec_prefix=/foo"
927# and all the variables that are supposed to be based on exec_prefix
928# by default will actually change.
929# Use braces instead of parens because sh, perl, etc. also accept them.
64ff59ba 930# (The list follows the same order as the GNU Coding Standards.)
d9898ee8 931bindir='${exec_prefix}/bin'
932sbindir='${exec_prefix}/sbin'
933libexecdir='${exec_prefix}/libexec'
64ff59ba 934datarootdir='${prefix}/share'
935datadir='${datarootdir}'
d9898ee8 936sysconfdir='${prefix}/etc'
937sharedstatedir='${prefix}/com'
938localstatedir='${prefix}/var'
d9898ee8 939includedir='${prefix}/include'
940oldincludedir='/usr/include'
64ff59ba 941docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
942infodir='${datarootdir}/info'
943htmldir='${docdir}'
944dvidir='${docdir}'
945pdfdir='${docdir}'
946psdir='${docdir}'
947libdir='${exec_prefix}/lib'
948localedir='${datarootdir}/locale'
949mandir='${datarootdir}/man'
d9898ee8 950
951ac_prev=
64ff59ba 952ac_dashdash=
d9898ee8 953for ac_option
954do
955 # If the previous option needs an argument, assign it.
956 if test -n "$ac_prev"; then
64ff59ba 957 eval $ac_prev=\$ac_option
d9898ee8 958 ac_prev=
959 continue
960 fi
961
64ff59ba 962 case $ac_option in
963 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
964 *) ac_optarg=yes ;;
965 esac
d9898ee8 966
967 # Accept the important Cygnus configure options, so we can diagnose typos.
968
64ff59ba 969 case $ac_dashdash$ac_option in
970 --)
971 ac_dashdash=yes ;;
d9898ee8 972
973 -bindir | --bindir | --bindi | --bind | --bin | --bi)
974 ac_prev=bindir ;;
975 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
976 bindir=$ac_optarg ;;
977
978 -build | --build | --buil | --bui | --bu)
979 ac_prev=build_alias ;;
980 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
981 build_alias=$ac_optarg ;;
982
983 -cache-file | --cache-file | --cache-fil | --cache-fi \
984 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
985 ac_prev=cache_file ;;
986 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
987 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
988 cache_file=$ac_optarg ;;
989
990 --config-cache | -C)
991 cache_file=config.cache ;;
992
64ff59ba 993 -datadir | --datadir | --datadi | --datad)
d9898ee8 994 ac_prev=datadir ;;
64ff59ba 995 -datadir=* | --datadir=* | --datadi=* | --datad=*)
d9898ee8 996 datadir=$ac_optarg ;;
997
64ff59ba 998 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
999 | --dataroo | --dataro | --datar)
1000 ac_prev=datarootdir ;;
1001 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1002 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1003 datarootdir=$ac_optarg ;;
1004
d9898ee8 1005 -disable-* | --disable-*)
1006 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1007 # Reject names that are not valid shell variable names.
64ff59ba 1008 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
d9898ee8 1009 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1010 { (exit 1); exit 1; }; }
64ff59ba 1011 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1012 eval enable_$ac_feature=no ;;
1013
1014 -docdir | --docdir | --docdi | --doc | --do)
1015 ac_prev=docdir ;;
1016 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1017 docdir=$ac_optarg ;;
1018
1019 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1020 ac_prev=dvidir ;;
1021 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1022 dvidir=$ac_optarg ;;
d9898ee8 1023
1024 -enable-* | --enable-*)
1025 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1026 # Reject names that are not valid shell variable names.
64ff59ba 1027 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
d9898ee8 1028 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1029 { (exit 1); exit 1; }; }
64ff59ba 1030 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1031 eval enable_$ac_feature=\$ac_optarg ;;
d9898ee8 1032
1033 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1034 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1035 | --exec | --exe | --ex)
1036 ac_prev=exec_prefix ;;
1037 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1038 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1039 | --exec=* | --exe=* | --ex=*)
1040 exec_prefix=$ac_optarg ;;
1041
1042 -gas | --gas | --ga | --g)
1043 # Obsolete; use --with-gas.
1044 with_gas=yes ;;
1045
1046 -help | --help | --hel | --he | -h)
1047 ac_init_help=long ;;
1048 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1049 ac_init_help=recursive ;;
1050 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1051 ac_init_help=short ;;
1052
1053 -host | --host | --hos | --ho)
1054 ac_prev=host_alias ;;
1055 -host=* | --host=* | --hos=* | --ho=*)
1056 host_alias=$ac_optarg ;;
1057
64ff59ba 1058 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1059 ac_prev=htmldir ;;
1060 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1061 | --ht=*)
1062 htmldir=$ac_optarg ;;
1063
d9898ee8 1064 -includedir | --includedir | --includedi | --included | --include \
1065 | --includ | --inclu | --incl | --inc)
1066 ac_prev=includedir ;;
1067 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1068 | --includ=* | --inclu=* | --incl=* | --inc=*)
1069 includedir=$ac_optarg ;;
1070
1071 -infodir | --infodir | --infodi | --infod | --info | --inf)
1072 ac_prev=infodir ;;
1073 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1074 infodir=$ac_optarg ;;
1075
1076 -libdir | --libdir | --libdi | --libd)
1077 ac_prev=libdir ;;
1078 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1079 libdir=$ac_optarg ;;
1080
1081 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1082 | --libexe | --libex | --libe)
1083 ac_prev=libexecdir ;;
1084 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1085 | --libexe=* | --libex=* | --libe=*)
1086 libexecdir=$ac_optarg ;;
1087
64ff59ba 1088 -localedir | --localedir | --localedi | --localed | --locale)
1089 ac_prev=localedir ;;
1090 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1091 localedir=$ac_optarg ;;
1092
d9898ee8 1093 -localstatedir | --localstatedir | --localstatedi | --localstated \
64ff59ba 1094 | --localstate | --localstat | --localsta | --localst | --locals)
d9898ee8 1095 ac_prev=localstatedir ;;
1096 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
64ff59ba 1097 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
d9898ee8 1098 localstatedir=$ac_optarg ;;
1099
1100 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1101 ac_prev=mandir ;;
1102 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1103 mandir=$ac_optarg ;;
1104
1105 -nfp | --nfp | --nf)
1106 # Obsolete; use --without-fp.
1107 with_fp=no ;;
1108
1109 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1110 | --no-cr | --no-c | -n)
1111 no_create=yes ;;
1112
1113 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1114 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1115 no_recursion=yes ;;
1116
1117 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1118 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1119 | --oldin | --oldi | --old | --ol | --o)
1120 ac_prev=oldincludedir ;;
1121 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1122 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1123 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1124 oldincludedir=$ac_optarg ;;
1125
1126 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1127 ac_prev=prefix ;;
1128 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1129 prefix=$ac_optarg ;;
1130
1131 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1132 | --program-pre | --program-pr | --program-p)
1133 ac_prev=program_prefix ;;
1134 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1135 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1136 program_prefix=$ac_optarg ;;
1137
1138 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1139 | --program-suf | --program-su | --program-s)
1140 ac_prev=program_suffix ;;
1141 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1142 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1143 program_suffix=$ac_optarg ;;
1144
1145 -program-transform-name | --program-transform-name \
1146 | --program-transform-nam | --program-transform-na \
1147 | --program-transform-n | --program-transform- \
1148 | --program-transform | --program-transfor \
1149 | --program-transfo | --program-transf \
1150 | --program-trans | --program-tran \
1151 | --progr-tra | --program-tr | --program-t)
1152 ac_prev=program_transform_name ;;
1153 -program-transform-name=* | --program-transform-name=* \
1154 | --program-transform-nam=* | --program-transform-na=* \
1155 | --program-transform-n=* | --program-transform-=* \
1156 | --program-transform=* | --program-transfor=* \
1157 | --program-transfo=* | --program-transf=* \
1158 | --program-trans=* | --program-tran=* \
1159 | --progr-tra=* | --program-tr=* | --program-t=*)
1160 program_transform_name=$ac_optarg ;;
1161
64ff59ba 1162 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1163 ac_prev=pdfdir ;;
1164 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1165 pdfdir=$ac_optarg ;;
1166
1167 -psdir | --psdir | --psdi | --psd | --ps)
1168 ac_prev=psdir ;;
1169 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1170 psdir=$ac_optarg ;;
1171
d9898ee8 1172 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1173 | -silent | --silent | --silen | --sile | --sil)
1174 silent=yes ;;
1175
1176 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1177 ac_prev=sbindir ;;
1178 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1179 | --sbi=* | --sb=*)
1180 sbindir=$ac_optarg ;;
1181
1182 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1183 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1184 | --sharedst | --shareds | --shared | --share | --shar \
1185 | --sha | --sh)
1186 ac_prev=sharedstatedir ;;
1187 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1188 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1189 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1190 | --sha=* | --sh=*)
1191 sharedstatedir=$ac_optarg ;;
1192
1193 -site | --site | --sit)
1194 ac_prev=site ;;
1195 -site=* | --site=* | --sit=*)
1196 site=$ac_optarg ;;
1197
1198 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1199 ac_prev=srcdir ;;
1200 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1201 srcdir=$ac_optarg ;;
1202
1203 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1204 | --syscon | --sysco | --sysc | --sys | --sy)
1205 ac_prev=sysconfdir ;;
1206 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1207 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1208 sysconfdir=$ac_optarg ;;
1209
1210 -target | --target | --targe | --targ | --tar | --ta | --t)
1211 ac_prev=target_alias ;;
1212 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1213 target_alias=$ac_optarg ;;
1214
1215 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1216 verbose=yes ;;
1217
1218 -version | --version | --versio | --versi | --vers | -V)
1219 ac_init_version=: ;;
1220
1221 -with-* | --with-*)
1222 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1223 # Reject names that are not valid shell variable names.
64ff59ba 1224 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
d9898ee8 1225 { echo "$as_me: error: invalid package name: $ac_package" >&2
1226 { (exit 1); exit 1; }; }
64ff59ba 1227 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1228 eval with_$ac_package=\$ac_optarg ;;
d9898ee8 1229
1230 -without-* | --without-*)
1231 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1232 # Reject names that are not valid shell variable names.
64ff59ba 1233 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
d9898ee8 1234 { echo "$as_me: error: invalid package name: $ac_package" >&2
1235 { (exit 1); exit 1; }; }
64ff59ba 1236 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1237 eval with_$ac_package=no ;;
d9898ee8 1238
1239 --x)
1240 # Obsolete; use --with-x.
1241 with_x=yes ;;
1242
1243 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1244 | --x-incl | --x-inc | --x-in | --x-i)
1245 ac_prev=x_includes ;;
1246 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1247 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1248 x_includes=$ac_optarg ;;
1249
1250 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1251 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1252 ac_prev=x_libraries ;;
1253 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1254 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1255 x_libraries=$ac_optarg ;;
1256
1257 -*) { echo "$as_me: error: unrecognized option: $ac_option
1258Try \`$0 --help' for more information." >&2
1259 { (exit 1); exit 1; }; }
1260 ;;
1261
1262 *=*)
1263 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1264 # Reject names that are not valid shell variable names.
1265 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1266 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1267 { (exit 1); exit 1; }; }
64ff59ba 1268 eval $ac_envvar=\$ac_optarg
d9898ee8 1269 export $ac_envvar ;;
1270
1271 *)
1272 # FIXME: should be removed in autoconf 3.0.
1273 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1274 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1275 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1276 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1277 ;;
1278
1279 esac
1280done
1281
1282if test -n "$ac_prev"; then
1283 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1284 { echo "$as_me: error: missing argument to $ac_option" >&2
1285 { (exit 1); exit 1; }; }
1286fi
1287
64ff59ba 1288# Be sure to have absolute directory names.
1289for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1290 datadir sysconfdir sharedstatedir localstatedir includedir \
1291 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1292 libdir localedir mandir
d9898ee8 1293do
64ff59ba 1294 eval ac_val=\$$ac_var
d9898ee8 1295 case $ac_val in
64ff59ba 1296 [\\/$]* | ?:[\\/]* ) continue;;
1297 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
d9898ee8 1298 esac
64ff59ba 1299 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1300 { (exit 1); exit 1; }; }
d9898ee8 1301done
1302
1303# There might be people who depend on the old broken behavior: `$host'
1304# used to hold the argument of --host etc.
1305# FIXME: To remove some day.
1306build=$build_alias
1307host=$host_alias
1308target=$target_alias
1309
1310# FIXME: To remove some day.
1311if test "x$host_alias" != x; then
1312 if test "x$build_alias" = x; then
1313 cross_compiling=maybe
1314 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1315 If a cross compiler is detected then cross compile mode will be used." >&2
1316 elif test "x$build_alias" != "x$host_alias"; then
1317 cross_compiling=yes
1318 fi
1319fi
1320
1321ac_tool_prefix=
1322test -n "$host_alias" && ac_tool_prefix=$host_alias-
1323
1324test "$silent" = yes && exec 6>/dev/null
1325
1326
64ff59ba 1327ac_pwd=`pwd` && test -n "$ac_pwd" &&
1328ac_ls_di=`ls -di .` &&
1329ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1330 { echo "$as_me: error: Working directory cannot be determined" >&2
1331 { (exit 1); exit 1; }; }
1332test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1333 { echo "$as_me: error: pwd does not report name of working directory" >&2
1334 { (exit 1); exit 1; }; }
1335
1336
d9898ee8 1337# Find the source files, if location was not specified.
1338if test -z "$srcdir"; then
1339 ac_srcdir_defaulted=yes
64ff59ba 1340 # Try the directory containing this script, then the parent directory.
1341 ac_confdir=`$as_dirname -- "$0" ||
d9898ee8 1342$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1343 X"$0" : 'X\(//\)[^/]' \| \
1344 X"$0" : 'X\(//\)$' \| \
64ff59ba 1345 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
d9898ee8 1346echo X"$0" |
64ff59ba 1347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1348 s//\1/
1349 q
1350 }
1351 /^X\(\/\/\)[^/].*/{
1352 s//\1/
1353 q
1354 }
1355 /^X\(\/\/\)$/{
1356 s//\1/
1357 q
1358 }
1359 /^X\(\/\).*/{
1360 s//\1/
1361 q
1362 }
1363 s/.*/./; q'`
d9898ee8 1364 srcdir=$ac_confdir
64ff59ba 1365 if test ! -r "$srcdir/$ac_unique_file"; then
d9898ee8 1366 srcdir=..
1367 fi
1368else
1369 ac_srcdir_defaulted=no
1370fi
64ff59ba 1371if test ! -r "$srcdir/$ac_unique_file"; then
1372 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1373 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
d9898ee8 1374 { (exit 1); exit 1; }; }
d9898ee8 1375fi
64ff59ba 1376ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1377ac_abs_confdir=`(
1378 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
d9898ee8 1379 { (exit 1); exit 1; }; }
64ff59ba 1380 pwd)`
1381# When building in place, set srcdir=.
1382if test "$ac_abs_confdir" = "$ac_pwd"; then
1383 srcdir=.
1384fi
1385# Remove unnecessary trailing slashes from srcdir.
1386# Double slashes in file names in object file debugging info
1387# mess up M-x gdb in Emacs.
1388case $srcdir in
1389*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1390esac
1391for ac_var in $ac_precious_vars; do
1392 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1393 eval ac_env_${ac_var}_value=\$${ac_var}
1394 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1395 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1396done
d9898ee8 1397
1398#
1399# Report the --help message.
1400#
1401if test "$ac_init_help" = "long"; then
1402 # Omit some internal or obsolete options to make the list less imposing.
1403 # This message is too long to be a string in the A/UX 3.1 sh.
1404 cat <<_ACEOF
1405\`configure' configures makedat 0.60 to adapt to many kinds of systems.
1406
1407Usage: $0 [OPTION]... [VAR=VALUE]...
1408
1409To assign environment variables (e.g., CC, CFLAGS...), specify them as
1410VAR=VALUE. See below for descriptions of some of the useful variables.
1411
1412Defaults for the options are specified in brackets.
1413
1414Configuration:
1415 -h, --help display this help and exit
1416 --help=short display options specific to this package
1417 --help=recursive display the short help of all the included packages
1418 -V, --version display version information and exit
1419 -q, --quiet, --silent do not print \`checking...' messages
1420 --cache-file=FILE cache test results in FILE [disabled]
1421 -C, --config-cache alias for \`--cache-file=config.cache'
1422 -n, --no-create do not create output files
1423 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1424
d9898ee8 1425Installation directories:
1426 --prefix=PREFIX install architecture-independent files in PREFIX
1427 [$ac_default_prefix]
1428 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1429 [PREFIX]
1430
1431By default, \`make install' will install all the files in
1432\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1433an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1434for instance \`--prefix=\$HOME'.
1435
1436For better control, use the options below.
1437
1438Fine tuning of the installation directories:
1439 --bindir=DIR user executables [EPREFIX/bin]
1440 --sbindir=DIR system admin executables [EPREFIX/sbin]
1441 --libexecdir=DIR program executables [EPREFIX/libexec]
d9898ee8 1442 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1443 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1444 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1445 --libdir=DIR object code libraries [EPREFIX/lib]
1446 --includedir=DIR C header files [PREFIX/include]
1447 --oldincludedir=DIR C header files for non-gcc [/usr/include]
64ff59ba 1448 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1449 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1450 --infodir=DIR info documentation [DATAROOTDIR/info]
1451 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1452 --mandir=DIR man documentation [DATAROOTDIR/man]
1453 --docdir=DIR documentation root [DATAROOTDIR/doc/makedat]
1454 --htmldir=DIR html documentation [DOCDIR]
1455 --dvidir=DIR dvi documentation [DOCDIR]
1456 --pdfdir=DIR pdf documentation [DOCDIR]
1457 --psdir=DIR ps documentation [DOCDIR]
d9898ee8 1458_ACEOF
1459
1460 cat <<\_ACEOF
1461
1462Program names:
1463 --program-prefix=PREFIX prepend PREFIX to installed program names
1464 --program-suffix=SUFFIX append SUFFIX to installed program names
1465 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1466
1467System types:
1468 --build=BUILD configure for building on BUILD [guessed]
1469 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1470_ACEOF
1471fi
1472
1473if test -n "$ac_init_help"; then
1474 case $ac_init_help in
1475 short | recursive ) echo "Configuration of makedat 0.60:";;
1476 esac
1477 cat <<\_ACEOF
1478
1479Optional Features:
1480 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1481 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1482 --disable-dependency-tracking speeds up one-time build
1483 --enable-dependency-tracking do not reject slow dependency extractors
64ff59ba 1484 --enable-shared[=PKGS] build shared libraries [default=yes]
1485 --enable-static[=PKGS] build static libraries [default=yes]
d9898ee8 1486 --enable-fast-install[=PKGS]
1487 optimize for fast installation [default=yes]
1488 --disable-libtool-lock avoid locking (might break parallel builds)
1489
1490Optional Packages:
1491 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1492 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1493 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1494 --with-pic try to use only PIC/non-PIC objects [default=use
1495 both]
64ff59ba 1496 --with-tags[=TAGS] include additional configurations [automatic]
d9898ee8 1497
1498 --with-makedatprog=filename Installed location and name of makedatprog
1499
1500Some influential environment variables:
1501 CC C compiler command
1502 CFLAGS C compiler flags
1503 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1504 nonstandard directory <lib dir>
64ff59ba 1505 LIBS libraries to pass to the linker, e.g. -l<library>
1506 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1507 you have headers in a nonstandard directory <include dir>
d9898ee8 1508 CPP C preprocessor
1509 CXX C++ compiler command
1510 CXXFLAGS C++ compiler flags
1511 CXXCPP C++ preprocessor
1512 F77 Fortran 77 compiler command
1513 FFLAGS Fortran 77 compiler flags
1514
1515Use these variables to override the choices made by `configure' or to help
1516it to find libraries and programs with nonstandard names/locations.
1517
1518Report bugs to <courier-users@lists.sourceforge.net>.
1519_ACEOF
64ff59ba 1520ac_status=$?
d9898ee8 1521fi
1522
1523if test "$ac_init_help" = "recursive"; then
1524 # If there are subdirs, report their specific --help.
d9898ee8 1525 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
64ff59ba 1526 test -d "$ac_dir" || continue
d9898ee8 1527 ac_builddir=.
1528
64ff59ba 1529case "$ac_dir" in
1530.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1531*)
d9898ee8 1532 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
64ff59ba 1533 # A ".." for each directory in $ac_dir_suffix.
1534 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1535 case $ac_top_builddir_sub in
1536 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1537 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1538 esac ;;
1539esac
1540ac_abs_top_builddir=$ac_pwd
1541ac_abs_builddir=$ac_pwd$ac_dir_suffix
1542# for backward compatibility:
1543ac_top_builddir=$ac_top_build_prefix
d9898ee8 1544
1545case $srcdir in
64ff59ba 1546 .) # We are building in place.
d9898ee8 1547 ac_srcdir=.
64ff59ba 1548 ac_top_srcdir=$ac_top_builddir_sub
1549 ac_abs_top_srcdir=$ac_pwd ;;
1550 [\\/]* | ?:[\\/]* ) # Absolute name.
d9898ee8 1551 ac_srcdir=$srcdir$ac_dir_suffix;
64ff59ba 1552 ac_top_srcdir=$srcdir
1553 ac_abs_top_srcdir=$srcdir ;;
1554 *) # Relative name.
1555 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1556 ac_top_srcdir=$ac_top_build_prefix$srcdir
1557 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
d9898ee8 1558esac
64ff59ba 1559ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1560
1561 cd "$ac_dir" || { ac_status=$?; continue; }
1562 # Check for guested configure.
1563 if test -f "$ac_srcdir/configure.gnu"; then
1564 echo &&
1565 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1566 elif test -f "$ac_srcdir/configure"; then
1567 echo &&
1568 $SHELL "$ac_srcdir/configure" --help=recursive
d9898ee8 1569 else
1570 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
64ff59ba 1571 fi || ac_status=$?
1572 cd "$ac_pwd" || { ac_status=$?; break; }
d9898ee8 1573 done
1574fi
1575
64ff59ba 1576test -n "$ac_init_help" && exit $ac_status
d9898ee8 1577if $ac_init_version; then
1578 cat <<\_ACEOF
1579makedat configure 0.60
64ff59ba 1580generated by GNU Autoconf 2.61
d9898ee8 1581
64ff59ba 1582Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15832002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
d9898ee8 1584This configure script is free software; the Free Software Foundation
1585gives unlimited permission to copy, distribute and modify it.
1586_ACEOF
64ff59ba 1587 exit
d9898ee8 1588fi
64ff59ba 1589cat >config.log <<_ACEOF
d9898ee8 1590This file contains any messages produced by compilers while
1591running configure, to aid debugging if configure makes a mistake.
1592
1593It was created by makedat $as_me 0.60, which was
64ff59ba 1594generated by GNU Autoconf 2.61. Invocation command line was
d9898ee8 1595
1596 $ $0 $@
1597
1598_ACEOF
64ff59ba 1599exec 5>>config.log
d9898ee8 1600{
1601cat <<_ASUNAME
1602## --------- ##
1603## Platform. ##
1604## --------- ##
1605
1606hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1607uname -m = `(uname -m) 2>/dev/null || echo unknown`
1608uname -r = `(uname -r) 2>/dev/null || echo unknown`
1609uname -s = `(uname -s) 2>/dev/null || echo unknown`
1610uname -v = `(uname -v) 2>/dev/null || echo unknown`
1611
1612/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1613/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1614
1615/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1616/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1617/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
64ff59ba 1618/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
d9898ee8 1619/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1620/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1621/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1622
1623_ASUNAME
1624
1625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1626for as_dir in $PATH
1627do
1628 IFS=$as_save_IFS
1629 test -z "$as_dir" && as_dir=.
1630 echo "PATH: $as_dir"
1631done
64ff59ba 1632IFS=$as_save_IFS
d9898ee8 1633
1634} >&5
1635
1636cat >&5 <<_ACEOF
1637
1638
1639## ----------- ##
1640## Core tests. ##
1641## ----------- ##
1642
1643_ACEOF
1644
1645
1646# Keep a trace of the command line.
1647# Strip out --no-create and --no-recursion so they do not pile up.
1648# Strip out --silent because we don't want to record it for future runs.
1649# Also quote any args containing shell meta-characters.
1650# Make two passes to allow for proper duplicate-argument suppression.
1651ac_configure_args=
1652ac_configure_args0=
1653ac_configure_args1=
d9898ee8 1654ac_must_keep_next=false
1655for ac_pass in 1 2
1656do
1657 for ac_arg
1658 do
1659 case $ac_arg in
1660 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1661 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1662 | -silent | --silent | --silen | --sile | --sil)
1663 continue ;;
64ff59ba 1664 *\'*)
d9898ee8 1665 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1666 esac
1667 case $ac_pass in
1668 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1669 2)
1670 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1671 if test $ac_must_keep_next = true; then
1672 ac_must_keep_next=false # Got value, back to normal.
1673 else
1674 case $ac_arg in
1675 *=* | --config-cache | -C | -disable-* | --disable-* \
1676 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1677 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1678 | -with-* | --with-* | -without-* | --without-* | --x)
1679 case "$ac_configure_args0 " in
1680 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1681 esac
1682 ;;
1683 -* ) ac_must_keep_next=true ;;
1684 esac
1685 fi
64ff59ba 1686 ac_configure_args="$ac_configure_args '$ac_arg'"
d9898ee8 1687 ;;
1688 esac
1689 done
1690done
1691$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1692$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1693
1694# When interrupted or exit'd, cleanup temporary files, and complete
1695# config.log. We remove comments because anyway the quotes in there
1696# would cause problems or look ugly.
64ff59ba 1697# WARNING: Use '\'' to represent an apostrophe within the trap.
1698# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
d9898ee8 1699trap 'exit_status=$?
1700 # Save into config.log some information that might help in debugging.
1701 {
1702 echo
1703
1704 cat <<\_ASBOX
1705## ---------------- ##
1706## Cache variables. ##
1707## ---------------- ##
1708_ASBOX
1709 echo
1710 # The following way of writing the cache mishandles newlines in values,
64ff59ba 1711(
1712 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1713 eval ac_val=\$$ac_var
1714 case $ac_val in #(
1715 *${as_nl}*)
1716 case $ac_var in #(
1717 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1718echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1719 esac
1720 case $ac_var in #(
1721 _ | IFS | as_nl) ;; #(
1722 *) $as_unset $ac_var ;;
1723 esac ;;
1724 esac
1725 done
d9898ee8 1726 (set) 2>&1 |
64ff59ba 1727 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1728 *${as_nl}ac_space=\ *)
d9898ee8 1729 sed -n \
64ff59ba 1730 "s/'\''/'\''\\\\'\'''\''/g;
1731 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1732 ;; #(
d9898ee8 1733 *)
64ff59ba 1734 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
d9898ee8 1735 ;;
64ff59ba 1736 esac |
1737 sort
1738)
d9898ee8 1739 echo
1740
1741 cat <<\_ASBOX
1742## ----------------- ##
1743## Output variables. ##
1744## ----------------- ##
1745_ASBOX
1746 echo
1747 for ac_var in $ac_subst_vars
1748 do
64ff59ba 1749 eval ac_val=\$$ac_var
1750 case $ac_val in
1751 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1752 esac
1753 echo "$ac_var='\''$ac_val'\''"
d9898ee8 1754 done | sort
1755 echo
1756
1757 if test -n "$ac_subst_files"; then
1758 cat <<\_ASBOX
64ff59ba 1759## ------------------- ##
1760## File substitutions. ##
1761## ------------------- ##
d9898ee8 1762_ASBOX
1763 echo
1764 for ac_var in $ac_subst_files
1765 do
64ff59ba 1766 eval ac_val=\$$ac_var
1767 case $ac_val in
1768 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1769 esac
1770 echo "$ac_var='\''$ac_val'\''"
d9898ee8 1771 done | sort
1772 echo
1773 fi
1774
1775 if test -s confdefs.h; then
1776 cat <<\_ASBOX
1777## ----------- ##
1778## confdefs.h. ##
1779## ----------- ##
1780_ASBOX
1781 echo
64ff59ba 1782 cat confdefs.h
d9898ee8 1783 echo
1784 fi
1785 test "$ac_signal" != 0 &&
1786 echo "$as_me: caught signal $ac_signal"
1787 echo "$as_me: exit $exit_status"
1788 } >&5
64ff59ba 1789 rm -f core *.core core.conftest.* &&
1790 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
d9898ee8 1791 exit $exit_status
64ff59ba 1792' 0
d9898ee8 1793for ac_signal in 1 2 13 15; do
1794 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1795done
1796ac_signal=0
1797
1798# confdefs.h avoids OS command line length limits that DEFS can exceed.
64ff59ba 1799rm -f -r conftest* confdefs.h
d9898ee8 1800
1801# Predefined preprocessor variables.
1802
1803cat >>confdefs.h <<_ACEOF
1804#define PACKAGE_NAME "$PACKAGE_NAME"
1805_ACEOF
1806
1807
1808cat >>confdefs.h <<_ACEOF
1809#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1810_ACEOF
1811
1812
1813cat >>confdefs.h <<_ACEOF
1814#define PACKAGE_VERSION "$PACKAGE_VERSION"
1815_ACEOF
1816
1817
1818cat >>confdefs.h <<_ACEOF
1819#define PACKAGE_STRING "$PACKAGE_STRING"
1820_ACEOF
1821
1822
1823cat >>confdefs.h <<_ACEOF
1824#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1825_ACEOF
1826
1827
1828# Let the site file select an alternate cache file if it wants to.
1829# Prefer explicitly selected file to automatically selected ones.
64ff59ba 1830if test -n "$CONFIG_SITE"; then
1831 set x "$CONFIG_SITE"
1832elif test "x$prefix" != xNONE; then
1833 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1834else
1835 set x "$ac_default_prefix/share/config.site" \
1836 "$ac_default_prefix/etc/config.site"
d9898ee8 1837fi
64ff59ba 1838shift
1839for ac_site_file
1840do
d9898ee8 1841 if test -r "$ac_site_file"; then
1842 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1843echo "$as_me: loading site script $ac_site_file" >&6;}
1844 sed 's/^/| /' "$ac_site_file" >&5
1845 . "$ac_site_file"
1846 fi
1847done
1848
1849if test -r "$cache_file"; then
1850 # Some versions of bash will fail to source /dev/null (special
1851 # files actually), so we avoid doing that.
1852 if test -f "$cache_file"; then
1853 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1854echo "$as_me: loading cache $cache_file" >&6;}
1855 case $cache_file in
64ff59ba 1856 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1857 *) . "./$cache_file";;
d9898ee8 1858 esac
1859 fi
1860else
1861 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1862echo "$as_me: creating cache $cache_file" >&6;}
1863 >$cache_file
1864fi
1865
1866# Check that the precious variables saved in the cache have kept the same
1867# value.
1868ac_cache_corrupted=false
64ff59ba 1869for ac_var in $ac_precious_vars; do
d9898ee8 1870 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1871 eval ac_new_set=\$ac_env_${ac_var}_set
64ff59ba 1872 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1873 eval ac_new_val=\$ac_env_${ac_var}_value
d9898ee8 1874 case $ac_old_set,$ac_new_set in
1875 set,)
1876 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1877echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1878 ac_cache_corrupted=: ;;
1879 ,set)
1880 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1881echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1882 ac_cache_corrupted=: ;;
1883 ,);;
1884 *)
1885 if test "x$ac_old_val" != "x$ac_new_val"; then
1886 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1887echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1888 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1889echo "$as_me: former value: $ac_old_val" >&2;}
1890 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1891echo "$as_me: current value: $ac_new_val" >&2;}
1892 ac_cache_corrupted=:
1893 fi;;
1894 esac
1895 # Pass precious variables to config.status.
1896 if test "$ac_new_set" = set; then
1897 case $ac_new_val in
64ff59ba 1898 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
d9898ee8 1899 *) ac_arg=$ac_var=$ac_new_val ;;
1900 esac
1901 case " $ac_configure_args " in
1902 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1903 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1904 esac
1905 fi
1906done
1907if $ac_cache_corrupted; then
1908 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1909echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1910 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1911echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1912 { (exit 1); exit 1; }; }
1913fi
1914
d9898ee8 1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
64ff59ba 1939ac_ext=c
1940ac_cpp='$CPP $CPPFLAGS'
1941ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1942ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1943ac_compiler_gnu=$ac_cv_c_compiler_gnu
d9898ee8 1944
1945
1946
1947>confdefs.h # Kill PACKAGE_ macros
1948
1949
64ff59ba 1950am__api_version='1.10'
1951
d9898ee8 1952ac_aux_dir=
64ff59ba 1953for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1954 if test -f "$ac_dir/install-sh"; then
d9898ee8 1955 ac_aux_dir=$ac_dir
1956 ac_install_sh="$ac_aux_dir/install-sh -c"
1957 break
64ff59ba 1958 elif test -f "$ac_dir/install.sh"; then
d9898ee8 1959 ac_aux_dir=$ac_dir
1960 ac_install_sh="$ac_aux_dir/install.sh -c"
1961 break
64ff59ba 1962 elif test -f "$ac_dir/shtool"; then
d9898ee8 1963 ac_aux_dir=$ac_dir
1964 ac_install_sh="$ac_aux_dir/shtool install -c"
1965 break
1966 fi
1967done
1968if test -z "$ac_aux_dir"; then
64ff59ba 1969 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1970echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
d9898ee8 1971 { (exit 1); exit 1; }; }
1972fi
64ff59ba 1973
1974# These three variables are undocumented and unsupported,
1975# and are intended to be withdrawn in a future Autoconf release.
1976# They can cause serious problems if a builder's source tree is in a directory
1977# whose full name contains unusual characters.
1978ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1979ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1980ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1981
d9898ee8 1982
1983# Find a good install program. We prefer a C program (faster),
1984# so one script is as good as another. But avoid the broken or
1985# incompatible versions:
1986# SysV /etc/install, /usr/sbin/install
1987# SunOS /usr/etc/install
1988# IRIX /sbin/install
1989# AIX /bin/install
1990# AmigaOS /C/install, which installs bootblocks on floppy discs
1991# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1992# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1993# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1994# OS/2's system install, which has a completely different semantic
1995# ./install, which can be erroneously created by make from ./install.sh.
64ff59ba 1996{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1997echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
d9898ee8 1998if test -z "$INSTALL"; then
1999if test "${ac_cv_path_install+set}" = set; then
2000 echo $ECHO_N "(cached) $ECHO_C" >&6
2001else
2002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2003for as_dir in $PATH
2004do
2005 IFS=$as_save_IFS
2006 test -z "$as_dir" && as_dir=.
2007 # Account for people who put trailing slashes in PATH elements.
2008case $as_dir/ in
2009 ./ | .// | /cC/* | \
2010 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2011 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2012 /usr/ucb/* ) ;;
2013 *)
2014 # OSF1 and SCO ODT 3.0 have their own names for install.
2015 # Don't use installbsd from OSF since it installs stuff as root
2016 # by default.
2017 for ac_prog in ginstall scoinst install; do
2018 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 2019 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
d9898ee8 2020 if test $ac_prog = install &&
2021 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2022 # AIX install. It has an incompatible calling convention.
2023 :
2024 elif test $ac_prog = install &&
2025 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2026 # program-specific install script used by HP pwplus--don't use.
2027 :
2028 else
2029 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2030 break 3
2031 fi
2032 fi
2033 done
2034 done
2035 ;;
2036esac
2037done
64ff59ba 2038IFS=$as_save_IFS
d9898ee8 2039
2040
2041fi
2042 if test "${ac_cv_path_install+set}" = set; then
2043 INSTALL=$ac_cv_path_install
2044 else
64ff59ba 2045 # As a last resort, use the slow shell script. Don't cache a
2046 # value for INSTALL within a source directory, because that will
d9898ee8 2047 # break other packages using the cache if that directory is
64ff59ba 2048 # removed, or if the value is a relative name.
d9898ee8 2049 INSTALL=$ac_install_sh
2050 fi
2051fi
64ff59ba 2052{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2053echo "${ECHO_T}$INSTALL" >&6; }
d9898ee8 2054
2055# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2056# It thinks the first close brace ends the variable substitution.
2057test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2058
2059test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2060
2061test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2062
64ff59ba 2063{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2064echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
d9898ee8 2065# Just in case
2066sleep 1
2067echo timestamp > conftest.file
2068# Do `set' in a subshell so we don't clobber the current shell's
2069# arguments. Must try -L first in case configure is actually a
2070# symlink; some systems play weird games with the mod time of symlinks
2071# (eg FreeBSD returns the mod time of the symlink's containing
2072# directory).
2073if (
2074 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2075 if test "$*" = "X"; then
2076 # -L didn't work.
2077 set X `ls -t $srcdir/configure conftest.file`
2078 fi
2079 rm -f conftest.file
2080 if test "$*" != "X $srcdir/configure conftest.file" \
2081 && test "$*" != "X conftest.file $srcdir/configure"; then
2082
2083 # If neither matched, then we have a broken ls. This can happen
2084 # if, for instance, CONFIG_SHELL is bash and it inherits a
2085 # broken ls alias from the environment. This has actually
2086 # happened. Such a system could not be considered "sane".
2087 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2088alias in your environment" >&5
2089echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2090alias in your environment" >&2;}
2091 { (exit 1); exit 1; }; }
2092 fi
2093
2094 test "$2" = conftest.file
2095 )
2096then
2097 # Ok.
2098 :
2099else
2100 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2101Check your system clock" >&5
2102echo "$as_me: error: newly created file is older than distributed files!
2103Check your system clock" >&2;}
2104 { (exit 1); exit 1; }; }
2105fi
64ff59ba 2106{ echo "$as_me:$LINENO: result: yes" >&5
2107echo "${ECHO_T}yes" >&6; }
d9898ee8 2108test "$program_prefix" != NONE &&
64ff59ba 2109 program_transform_name="s&^&$program_prefix&;$program_transform_name"
d9898ee8 2110# Use a double $ so make ignores it.
2111test "$program_suffix" != NONE &&
64ff59ba 2112 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
d9898ee8 2113# Double any \ or $. echo might interpret backslashes.
2114# By default was `s,x,x', remove it if useless.
2115cat <<\_ACEOF >conftest.sed
2116s/[\\$]/&&/g;s/;s,x,x,$//
2117_ACEOF
2118program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
64ff59ba 2119rm -f conftest.sed
d9898ee8 2120
2121# expand $ac_aux_dir to an absolute path
2122am_aux_dir=`cd $ac_aux_dir && pwd`
2123
2124test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2125# Use eval to expand $SHELL
2126if eval "$MISSING --run true"; then
2127 am_missing_run="$MISSING --run "
2128else
2129 am_missing_run=
2130 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2131echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2132fi
2133
64ff59ba 2134{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2135echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2136if test -z "$MKDIR_P"; then
2137 if test "${ac_cv_path_mkdir+set}" = set; then
2138 echo $ECHO_N "(cached) $ECHO_C" >&6
2139else
2140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2141for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2142do
2143 IFS=$as_save_IFS
2144 test -z "$as_dir" && as_dir=.
2145 for ac_prog in mkdir gmkdir; do
2146 for ac_exec_ext in '' $ac_executable_extensions; do
2147 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2148 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2149 'mkdir (GNU coreutils) '* | \
2150 'mkdir (coreutils) '* | \
2151 'mkdir (fileutils) '4.1*)
2152 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2153 break 3;;
2154 esac
2155 done
2156 done
2157done
2158IFS=$as_save_IFS
2159
2160fi
2161
2162 if test "${ac_cv_path_mkdir+set}" = set; then
2163 MKDIR_P="$ac_cv_path_mkdir -p"
d9898ee8 2164 else
64ff59ba 2165 # As a last resort, use the slow shell script. Don't cache a
2166 # value for MKDIR_P within a source directory, because that will
2167 # break other packages using the cache if that directory is
2168 # removed, or if the value is a relative name.
2169 test -d ./--version && rmdir ./--version
2170 MKDIR_P="$ac_install_sh -d"
d9898ee8 2171 fi
2172fi
64ff59ba 2173{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2174echo "${ECHO_T}$MKDIR_P" >&6; }
2175
2176mkdir_p="$MKDIR_P"
2177case $mkdir_p in
2178 [\\/$]* | ?:[\\/]*) ;;
2179 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2180esac
d9898ee8 2181
2182for ac_prog in gawk mawk nawk awk
2183do
2184 # Extract the first word of "$ac_prog", so it can be a program name with args.
2185set dummy $ac_prog; ac_word=$2
64ff59ba 2186{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2187echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2188if test "${ac_cv_prog_AWK+set}" = set; then
2189 echo $ECHO_N "(cached) $ECHO_C" >&6
2190else
2191 if test -n "$AWK"; then
2192 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2193else
2194as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2195for as_dir in $PATH
2196do
2197 IFS=$as_save_IFS
2198 test -z "$as_dir" && as_dir=.
2199 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 2200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2201 ac_cv_prog_AWK="$ac_prog"
2202 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2203 break 2
2204 fi
2205done
2206done
64ff59ba 2207IFS=$as_save_IFS
d9898ee8 2208
2209fi
2210fi
2211AWK=$ac_cv_prog_AWK
2212if test -n "$AWK"; then
64ff59ba 2213 { echo "$as_me:$LINENO: result: $AWK" >&5
2214echo "${ECHO_T}$AWK" >&6; }
d9898ee8 2215else
64ff59ba 2216 { echo "$as_me:$LINENO: result: no" >&5
2217echo "${ECHO_T}no" >&6; }
d9898ee8 2218fi
2219
64ff59ba 2220
d9898ee8 2221 test -n "$AWK" && break
2222done
2223
64ff59ba 2224{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2225echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2226set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2227if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 2228 echo $ECHO_N "(cached) $ECHO_C" >&6
2229else
2230 cat >conftest.make <<\_ACEOF
64ff59ba 2231SHELL = /bin/sh
d9898ee8 2232all:
64ff59ba 2233 @echo '@@@%%%=$(MAKE)=@@@%%%'
d9898ee8 2234_ACEOF
2235# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
64ff59ba 2236case `${MAKE-make} -f conftest.make 2>/dev/null` in
2237 *@@@%%%=?*=@@@%%%*)
2238 eval ac_cv_prog_make_${ac_make}_set=yes;;
2239 *)
2240 eval ac_cv_prog_make_${ac_make}_set=no;;
2241esac
d9898ee8 2242rm -f conftest.make
2243fi
64ff59ba 2244if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2245 { echo "$as_me:$LINENO: result: yes" >&5
2246echo "${ECHO_T}yes" >&6; }
d9898ee8 2247 SET_MAKE=
2248else
64ff59ba 2249 { echo "$as_me:$LINENO: result: no" >&5
2250echo "${ECHO_T}no" >&6; }
d9898ee8 2251 SET_MAKE="MAKE=${MAKE-make}"
2252fi
2253
2254rm -rf .tst 2>/dev/null
2255mkdir .tst 2>/dev/null
2256if test -d .tst; then
2257 am__leading_dot=.
2258else
2259 am__leading_dot=_
2260fi
2261rmdir .tst 2>/dev/null
2262
64ff59ba 2263if test "`cd $srcdir && pwd`" != "`pwd`"; then
2264 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2265 # is not polluted with repeated "-I."
2266 am__isrc=' -I$(srcdir)'
2267 # test to see if srcdir already configured
2268 if test -f $srcdir/config.status; then
2269 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
d9898ee8 2270echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2271 { (exit 1); exit 1; }; }
64ff59ba 2272 fi
d9898ee8 2273fi
2274
2275# test whether we have cygpath
2276if test -z "$CYGPATH_W"; then
2277 if (cygpath --version) >/dev/null 2>/dev/null; then
2278 CYGPATH_W='cygpath -w'
2279 else
2280 CYGPATH_W=echo
2281 fi
2282fi
2283
2284
2285# Define the identity of the package.
2286 PACKAGE='makedat'
2287 VERSION='0.60'
2288
2289
2290# Some tools Automake needs.
2291
2292ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2293
2294
2295AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2296
2297
2298AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2299
2300
2301AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2302
2303
2304MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2305
64ff59ba 2306install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
d9898ee8 2307
2308# Installed binaries are usually stripped using `strip' when the user
2309# run `make install-strip'. However `strip' might not be the right
2310# tool to use in cross-compilation environments, therefore Automake
2311# will honor the `STRIP' environment variable to overrule this program.
2312if test "$cross_compiling" != no; then
2313 if test -n "$ac_tool_prefix"; then
2314 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2315set dummy ${ac_tool_prefix}strip; ac_word=$2
64ff59ba 2316{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2317echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2318if test "${ac_cv_prog_STRIP+set}" = set; then
2319 echo $ECHO_N "(cached) $ECHO_C" >&6
2320else
2321 if test -n "$STRIP"; then
2322 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2323else
2324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2325for as_dir in $PATH
2326do
2327 IFS=$as_save_IFS
2328 test -z "$as_dir" && as_dir=.
2329 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 2330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2331 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2332 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2333 break 2
2334 fi
2335done
2336done
64ff59ba 2337IFS=$as_save_IFS
d9898ee8 2338
2339fi
2340fi
2341STRIP=$ac_cv_prog_STRIP
2342if test -n "$STRIP"; then
64ff59ba 2343 { echo "$as_me:$LINENO: result: $STRIP" >&5
2344echo "${ECHO_T}$STRIP" >&6; }
d9898ee8 2345else
64ff59ba 2346 { echo "$as_me:$LINENO: result: no" >&5
2347echo "${ECHO_T}no" >&6; }
d9898ee8 2348fi
2349
64ff59ba 2350
d9898ee8 2351fi
2352if test -z "$ac_cv_prog_STRIP"; then
2353 ac_ct_STRIP=$STRIP
2354 # Extract the first word of "strip", so it can be a program name with args.
2355set dummy strip; ac_word=$2
64ff59ba 2356{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2357echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2358if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2359 echo $ECHO_N "(cached) $ECHO_C" >&6
2360else
2361 if test -n "$ac_ct_STRIP"; then
2362 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2363else
2364as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2365for as_dir in $PATH
2366do
2367 IFS=$as_save_IFS
2368 test -z "$as_dir" && as_dir=.
2369 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 2370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2371 ac_cv_prog_ac_ct_STRIP="strip"
2372 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2373 break 2
2374 fi
2375done
2376done
64ff59ba 2377IFS=$as_save_IFS
d9898ee8 2378
d9898ee8 2379fi
2380fi
2381ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2382if test -n "$ac_ct_STRIP"; then
64ff59ba 2383 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2384echo "${ECHO_T}$ac_ct_STRIP" >&6; }
d9898ee8 2385else
64ff59ba 2386 { echo "$as_me:$LINENO: result: no" >&5
2387echo "${ECHO_T}no" >&6; }
d9898ee8 2388fi
2389
64ff59ba 2390 if test "x$ac_ct_STRIP" = x; then
2391 STRIP=":"
2392 else
2393 case $cross_compiling:$ac_tool_warned in
2394yes:)
2395{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2396whose name does not start with the host triplet. If you think this
2397configuration is useful to you, please write to autoconf@gnu.org." >&5
2398echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2399whose name does not start with the host triplet. If you think this
2400configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2401ac_tool_warned=yes ;;
2402esac
2403 STRIP=$ac_ct_STRIP
2404 fi
d9898ee8 2405else
2406 STRIP="$ac_cv_prog_STRIP"
2407fi
2408
2409fi
64ff59ba 2410INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
d9898ee8 2411
2412# We need awk for the "check" target. The system "awk" is bad on
2413# some platforms.
2414# Always define AMTAR for backward compatibility.
2415
2416AMTAR=${AMTAR-"${am_missing_run}tar"}
2417
2418am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2419
2420
2421
2422
2423
2424LPATH="$PATH:/usr/local/bin"
64ff59ba 2425ac_config_headers="$ac_config_headers config.h"
d9898ee8 2426
2427
2428ac_ext=c
2429ac_cpp='$CPP $CPPFLAGS'
2430ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2431ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2432ac_compiler_gnu=$ac_cv_c_compiler_gnu
2433if test -n "$ac_tool_prefix"; then
2434 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2435set dummy ${ac_tool_prefix}gcc; ac_word=$2
64ff59ba 2436{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2437echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2438if test "${ac_cv_prog_CC+set}" = set; then
2439 echo $ECHO_N "(cached) $ECHO_C" >&6
2440else
2441 if test -n "$CC"; then
2442 ac_cv_prog_CC="$CC" # Let the user override the test.
2443else
2444as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2445for as_dir in $PATH
2446do
2447 IFS=$as_save_IFS
2448 test -z "$as_dir" && as_dir=.
2449 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 2450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2451 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2452 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2453 break 2
2454 fi
2455done
2456done
64ff59ba 2457IFS=$as_save_IFS
d9898ee8 2458
2459fi
2460fi
2461CC=$ac_cv_prog_CC
2462if test -n "$CC"; then
64ff59ba 2463 { echo "$as_me:$LINENO: result: $CC" >&5
2464echo "${ECHO_T}$CC" >&6; }
d9898ee8 2465else
64ff59ba 2466 { echo "$as_me:$LINENO: result: no" >&5
2467echo "${ECHO_T}no" >&6; }
d9898ee8 2468fi
2469
64ff59ba 2470
d9898ee8 2471fi
2472if test -z "$ac_cv_prog_CC"; then
2473 ac_ct_CC=$CC
2474 # Extract the first word of "gcc", so it can be a program name with args.
2475set dummy gcc; ac_word=$2
64ff59ba 2476{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2477echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2478if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2479 echo $ECHO_N "(cached) $ECHO_C" >&6
2480else
2481 if test -n "$ac_ct_CC"; then
2482 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2483else
2484as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2485for as_dir in $PATH
2486do
2487 IFS=$as_save_IFS
2488 test -z "$as_dir" && as_dir=.
2489 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 2490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2491 ac_cv_prog_ac_ct_CC="gcc"
2492 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2493 break 2
2494 fi
2495done
2496done
64ff59ba 2497IFS=$as_save_IFS
d9898ee8 2498
2499fi
2500fi
2501ac_ct_CC=$ac_cv_prog_ac_ct_CC
2502if test -n "$ac_ct_CC"; then
64ff59ba 2503 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2504echo "${ECHO_T}$ac_ct_CC" >&6; }
d9898ee8 2505else
64ff59ba 2506 { echo "$as_me:$LINENO: result: no" >&5
2507echo "${ECHO_T}no" >&6; }
d9898ee8 2508fi
2509
64ff59ba 2510 if test "x$ac_ct_CC" = x; then
2511 CC=""
2512 else
2513 case $cross_compiling:$ac_tool_warned in
2514yes:)
2515{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2516whose name does not start with the host triplet. If you think this
2517configuration is useful to you, please write to autoconf@gnu.org." >&5
2518echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2519whose name does not start with the host triplet. If you think this
2520configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2521ac_tool_warned=yes ;;
2522esac
2523 CC=$ac_ct_CC
2524 fi
d9898ee8 2525else
2526 CC="$ac_cv_prog_CC"
2527fi
2528
2529if test -z "$CC"; then
64ff59ba 2530 if test -n "$ac_tool_prefix"; then
2531 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
d9898ee8 2532set dummy ${ac_tool_prefix}cc; ac_word=$2
64ff59ba 2533{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2534echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2535if test "${ac_cv_prog_CC+set}" = set; then
2536 echo $ECHO_N "(cached) $ECHO_C" >&6
2537else
2538 if test -n "$CC"; then
2539 ac_cv_prog_CC="$CC" # Let the user override the test.
2540else
2541as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2542for as_dir in $PATH
2543do
2544 IFS=$as_save_IFS
2545 test -z "$as_dir" && as_dir=.
2546 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 2547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2548 ac_cv_prog_CC="${ac_tool_prefix}cc"
2549 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2550 break 2
2551 fi
2552done
2553done
64ff59ba 2554IFS=$as_save_IFS
d9898ee8 2555
2556fi
2557fi
2558CC=$ac_cv_prog_CC
2559if test -n "$CC"; then
64ff59ba 2560 { echo "$as_me:$LINENO: result: $CC" >&5
2561echo "${ECHO_T}$CC" >&6; }
d9898ee8 2562else
64ff59ba 2563 { echo "$as_me:$LINENO: result: no" >&5
2564echo "${ECHO_T}no" >&6; }
d9898ee8 2565fi
2566
d9898ee8 2567
64ff59ba 2568 fi
d9898ee8 2569fi
2570if test -z "$CC"; then
2571 # Extract the first word of "cc", so it can be a program name with args.
2572set dummy cc; ac_word=$2
64ff59ba 2573{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2574echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2575if test "${ac_cv_prog_CC+set}" = set; then
2576 echo $ECHO_N "(cached) $ECHO_C" >&6
2577else
2578 if test -n "$CC"; then
2579 ac_cv_prog_CC="$CC" # Let the user override the test.
2580else
2581 ac_prog_rejected=no
2582as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2583for as_dir in $PATH
2584do
2585 IFS=$as_save_IFS
2586 test -z "$as_dir" && as_dir=.
2587 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 2588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2589 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2590 ac_prog_rejected=yes
2591 continue
2592 fi
2593 ac_cv_prog_CC="cc"
2594 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2595 break 2
2596 fi
2597done
2598done
64ff59ba 2599IFS=$as_save_IFS
d9898ee8 2600
2601if test $ac_prog_rejected = yes; then
2602 # We found a bogon in the path, so make sure we never use it.
2603 set dummy $ac_cv_prog_CC
2604 shift
2605 if test $# != 0; then
2606 # We chose a different compiler from the bogus one.
2607 # However, it has the same basename, so the bogon will be chosen
2608 # first if we set CC to just the basename; use the full file name.
2609 shift
2610 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2611 fi
2612fi
2613fi
2614fi
2615CC=$ac_cv_prog_CC
2616if test -n "$CC"; then
64ff59ba 2617 { echo "$as_me:$LINENO: result: $CC" >&5
2618echo "${ECHO_T}$CC" >&6; }
d9898ee8 2619else
64ff59ba 2620 { echo "$as_me:$LINENO: result: no" >&5
2621echo "${ECHO_T}no" >&6; }
d9898ee8 2622fi
2623
64ff59ba 2624
d9898ee8 2625fi
2626if test -z "$CC"; then
2627 if test -n "$ac_tool_prefix"; then
64ff59ba 2628 for ac_prog in cl.exe
d9898ee8 2629 do
2630 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2631set dummy $ac_tool_prefix$ac_prog; ac_word=$2
64ff59ba 2632{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2633echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2634if test "${ac_cv_prog_CC+set}" = set; then
2635 echo $ECHO_N "(cached) $ECHO_C" >&6
2636else
2637 if test -n "$CC"; then
2638 ac_cv_prog_CC="$CC" # Let the user override the test.
2639else
2640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2641for as_dir in $PATH
2642do
2643 IFS=$as_save_IFS
2644 test -z "$as_dir" && as_dir=.
2645 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 2646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2647 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2648 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2649 break 2
2650 fi
2651done
2652done
64ff59ba 2653IFS=$as_save_IFS
d9898ee8 2654
2655fi
2656fi
2657CC=$ac_cv_prog_CC
2658if test -n "$CC"; then
64ff59ba 2659 { echo "$as_me:$LINENO: result: $CC" >&5
2660echo "${ECHO_T}$CC" >&6; }
d9898ee8 2661else
64ff59ba 2662 { echo "$as_me:$LINENO: result: no" >&5
2663echo "${ECHO_T}no" >&6; }
d9898ee8 2664fi
2665
64ff59ba 2666
d9898ee8 2667 test -n "$CC" && break
2668 done
2669fi
2670if test -z "$CC"; then
2671 ac_ct_CC=$CC
64ff59ba 2672 for ac_prog in cl.exe
d9898ee8 2673do
2674 # Extract the first word of "$ac_prog", so it can be a program name with args.
2675set dummy $ac_prog; ac_word=$2
64ff59ba 2676{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2677echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2678if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2679 echo $ECHO_N "(cached) $ECHO_C" >&6
2680else
2681 if test -n "$ac_ct_CC"; then
2682 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2683else
2684as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2685for as_dir in $PATH
2686do
2687 IFS=$as_save_IFS
2688 test -z "$as_dir" && as_dir=.
2689 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 2690 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2691 ac_cv_prog_ac_ct_CC="$ac_prog"
2692 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2693 break 2
2694 fi
2695done
2696done
64ff59ba 2697IFS=$as_save_IFS
d9898ee8 2698
2699fi
2700fi
2701ac_ct_CC=$ac_cv_prog_ac_ct_CC
2702if test -n "$ac_ct_CC"; then
64ff59ba 2703 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2704echo "${ECHO_T}$ac_ct_CC" >&6; }
d9898ee8 2705else
64ff59ba 2706 { echo "$as_me:$LINENO: result: no" >&5
2707echo "${ECHO_T}no" >&6; }
d9898ee8 2708fi
2709
64ff59ba 2710
d9898ee8 2711 test -n "$ac_ct_CC" && break
2712done
2713
64ff59ba 2714 if test "x$ac_ct_CC" = x; then
2715 CC=""
2716 else
2717 case $cross_compiling:$ac_tool_warned in
2718yes:)
2719{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2720whose name does not start with the host triplet. If you think this
2721configuration is useful to you, please write to autoconf@gnu.org." >&5
2722echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2723whose name does not start with the host triplet. If you think this
2724configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2725ac_tool_warned=yes ;;
2726esac
2727 CC=$ac_ct_CC
2728 fi
d9898ee8 2729fi
2730
2731fi
2732
2733
2734test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2735See \`config.log' for more details." >&5
2736echo "$as_me: error: no acceptable C compiler found in \$PATH
2737See \`config.log' for more details." >&2;}
2738 { (exit 1); exit 1; }; }
2739
2740# Provide some information about the compiler.
64ff59ba 2741echo "$as_me:$LINENO: checking for C compiler version" >&5
d9898ee8 2742ac_compiler=`set X $ac_compile; echo $2`
64ff59ba 2743{ (ac_try="$ac_compiler --version >&5"
2744case "(($ac_try" in
2745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2746 *) ac_try_echo=$ac_try;;
2747esac
2748eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2749 (eval "$ac_compiler --version >&5") 2>&5
d9898ee8 2750 ac_status=$?
2751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2752 (exit $ac_status); }
64ff59ba 2753{ (ac_try="$ac_compiler -v >&5"
2754case "(($ac_try" in
2755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2756 *) ac_try_echo=$ac_try;;
2757esac
2758eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2759 (eval "$ac_compiler -v >&5") 2>&5
d9898ee8 2760 ac_status=$?
2761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2762 (exit $ac_status); }
64ff59ba 2763{ (ac_try="$ac_compiler -V >&5"
2764case "(($ac_try" in
2765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2766 *) ac_try_echo=$ac_try;;
2767esac
2768eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2769 (eval "$ac_compiler -V >&5") 2>&5
d9898ee8 2770 ac_status=$?
2771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2772 (exit $ac_status); }
2773
2774cat >conftest.$ac_ext <<_ACEOF
2775/* confdefs.h. */
2776_ACEOF
2777cat confdefs.h >>conftest.$ac_ext
2778cat >>conftest.$ac_ext <<_ACEOF
2779/* end confdefs.h. */
2780
2781int
2782main ()
2783{
2784
2785 ;
2786 return 0;
2787}
2788_ACEOF
2789ac_clean_files_save=$ac_clean_files
2790ac_clean_files="$ac_clean_files a.out a.exe b.out"
2791# Try to create an executable without -o first, disregard a.out.
2792# It will help us diagnose broken compilers, and finding out an intuition
2793# of exeext.
64ff59ba 2794{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2795echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
d9898ee8 2796ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
64ff59ba 2797#
2798# List of possible output files, starting from the most likely.
2799# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2800# only as a last resort. b.out is created by i960 compilers.
2801ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2802#
2803# The IRIX 6 linker writes into existing files which may not be
2804# executable, retaining their permissions. Remove them first so a
2805# subsequent execution test works.
2806ac_rmfiles=
2807for ac_file in $ac_files
2808do
2809 case $ac_file in
2810 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2811 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2812 esac
2813done
2814rm -f $ac_rmfiles
2815
2816if { (ac_try="$ac_link_default"
2817case "(($ac_try" in
2818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2819 *) ac_try_echo=$ac_try;;
2820esac
2821eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2822 (eval "$ac_link_default") 2>&5
d9898ee8 2823 ac_status=$?
2824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2825 (exit $ac_status); }; then
64ff59ba 2826 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2827# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2828# in a Makefile. We should not override ac_cv_exeext if it was cached,
2829# so that the user can short-circuit this test for compilers unknown to
2830# Autoconf.
2831for ac_file in $ac_files ''
d9898ee8 2832do
2833 test -f "$ac_file" || continue
2834 case $ac_file in
64ff59ba 2835 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
d9898ee8 2836 ;;
2837 [ab].out )
2838 # We found the default executable, but exeext='' is most
2839 # certainly right.
2840 break;;
2841 *.* )
64ff59ba 2842 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2843 then :; else
2844 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2845 fi
2846 # We set ac_cv_exeext here because the later test for it is not
2847 # safe: cross compilers may not add the suffix if given an `-o'
2848 # argument, so we may need to know it at that point already.
2849 # Even if this section looks crufty: it has the advantage of
2850 # actually working.
d9898ee8 2851 break;;
2852 * )
2853 break;;
2854 esac
2855done
64ff59ba 2856test "$ac_cv_exeext" = no && ac_cv_exeext=
2857
d9898ee8 2858else
64ff59ba 2859 ac_file=''
2860fi
2861
2862{ echo "$as_me:$LINENO: result: $ac_file" >&5
2863echo "${ECHO_T}$ac_file" >&6; }
2864if test -z "$ac_file"; then
d9898ee8 2865 echo "$as_me: failed program was:" >&5
2866sed 's/^/| /' conftest.$ac_ext >&5
2867
2868{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2869See \`config.log' for more details." >&5
2870echo "$as_me: error: C compiler cannot create executables
2871See \`config.log' for more details." >&2;}
2872 { (exit 77); exit 77; }; }
2873fi
2874
2875ac_exeext=$ac_cv_exeext
d9898ee8 2876
64ff59ba 2877# Check that the compiler produces executables we can run. If not, either
d9898ee8 2878# the compiler is broken, or we cross compile.
64ff59ba 2879{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2880echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
d9898ee8 2881# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2882# If not cross compiling, check that we can run a simple program.
2883if test "$cross_compiling" != yes; then
2884 if { ac_try='./$ac_file'
64ff59ba 2885 { (case "(($ac_try" in
2886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2887 *) ac_try_echo=$ac_try;;
2888esac
2889eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2890 (eval "$ac_try") 2>&5
d9898ee8 2891 ac_status=$?
2892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893 (exit $ac_status); }; }; then
2894 cross_compiling=no
2895 else
2896 if test "$cross_compiling" = maybe; then
2897 cross_compiling=yes
2898 else
2899 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2900If you meant to cross compile, use \`--host'.
2901See \`config.log' for more details." >&5
2902echo "$as_me: error: cannot run C compiled programs.
2903If you meant to cross compile, use \`--host'.
2904See \`config.log' for more details." >&2;}
2905 { (exit 1); exit 1; }; }
2906 fi
2907 fi
2908fi
64ff59ba 2909{ echo "$as_me:$LINENO: result: yes" >&5
2910echo "${ECHO_T}yes" >&6; }
d9898ee8 2911
2912rm -f a.out a.exe conftest$ac_cv_exeext b.out
2913ac_clean_files=$ac_clean_files_save
64ff59ba 2914# Check that the compiler produces executables we can run. If not, either
d9898ee8 2915# the compiler is broken, or we cross compile.
64ff59ba 2916{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2917echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2918{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2919echo "${ECHO_T}$cross_compiling" >&6; }
2920
2921{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2922echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2923if { (ac_try="$ac_link"
2924case "(($ac_try" in
2925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2926 *) ac_try_echo=$ac_try;;
2927esac
2928eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2929 (eval "$ac_link") 2>&5
d9898ee8 2930 ac_status=$?
2931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2932 (exit $ac_status); }; then
2933 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2934# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2935# work properly (i.e., refer to `conftest.exe'), while it won't with
2936# `rm'.
2937for ac_file in conftest.exe conftest conftest.*; do
2938 test -f "$ac_file" || continue
2939 case $ac_file in
64ff59ba 2940 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
d9898ee8 2941 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
d9898ee8 2942 break;;
2943 * ) break;;
2944 esac
2945done
2946else
2947 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2948See \`config.log' for more details." >&5
2949echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2950See \`config.log' for more details." >&2;}
2951 { (exit 1); exit 1; }; }
2952fi
2953
2954rm -f conftest$ac_cv_exeext
64ff59ba 2955{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2956echo "${ECHO_T}$ac_cv_exeext" >&6; }
d9898ee8 2957
2958rm -f conftest.$ac_ext
2959EXEEXT=$ac_cv_exeext
2960ac_exeext=$EXEEXT
64ff59ba 2961{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2962echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
d9898ee8 2963if test "${ac_cv_objext+set}" = set; then
2964 echo $ECHO_N "(cached) $ECHO_C" >&6
2965else
2966 cat >conftest.$ac_ext <<_ACEOF
2967/* confdefs.h. */
2968_ACEOF
2969cat confdefs.h >>conftest.$ac_ext
2970cat >>conftest.$ac_ext <<_ACEOF
2971/* end confdefs.h. */
2972
2973int
2974main ()
2975{
2976
2977 ;
2978 return 0;
2979}
2980_ACEOF
2981rm -f conftest.o conftest.obj
64ff59ba 2982if { (ac_try="$ac_compile"
2983case "(($ac_try" in
2984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2985 *) ac_try_echo=$ac_try;;
2986esac
2987eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2988 (eval "$ac_compile") 2>&5
d9898ee8 2989 ac_status=$?
2990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2991 (exit $ac_status); }; then
64ff59ba 2992 for ac_file in conftest.o conftest.obj conftest.*; do
2993 test -f "$ac_file" || continue;
d9898ee8 2994 case $ac_file in
64ff59ba 2995 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
d9898ee8 2996 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2997 break;;
2998 esac
2999done
3000else
3001 echo "$as_me: failed program was:" >&5
3002sed 's/^/| /' conftest.$ac_ext >&5
3003
3004{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3005See \`config.log' for more details." >&5
3006echo "$as_me: error: cannot compute suffix of object files: cannot compile
3007See \`config.log' for more details." >&2;}
3008 { (exit 1); exit 1; }; }
3009fi
3010
3011rm -f conftest.$ac_cv_objext conftest.$ac_ext
3012fi
64ff59ba 3013{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3014echo "${ECHO_T}$ac_cv_objext" >&6; }
d9898ee8 3015OBJEXT=$ac_cv_objext
3016ac_objext=$OBJEXT
64ff59ba 3017{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3018echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
d9898ee8 3019if test "${ac_cv_c_compiler_gnu+set}" = set; then
3020 echo $ECHO_N "(cached) $ECHO_C" >&6
3021else
3022 cat >conftest.$ac_ext <<_ACEOF
3023/* confdefs.h. */
3024_ACEOF
3025cat confdefs.h >>conftest.$ac_ext
3026cat >>conftest.$ac_ext <<_ACEOF
3027/* end confdefs.h. */
3028
3029int
3030main ()
3031{
3032#ifndef __GNUC__
3033 choke me
3034#endif
3035
3036 ;
3037 return 0;
3038}
3039_ACEOF
3040rm -f conftest.$ac_objext
64ff59ba 3041if { (ac_try="$ac_compile"
3042case "(($ac_try" in
3043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3044 *) ac_try_echo=$ac_try;;
3045esac
3046eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3047 (eval "$ac_compile") 2>conftest.er1
d9898ee8 3048 ac_status=$?
3049 grep -v '^ *+' conftest.er1 >conftest.err
3050 rm -f conftest.er1
3051 cat conftest.err >&5
3052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 3053 (exit $ac_status); } && {
3054 test -z "$ac_c_werror_flag" ||
3055 test ! -s conftest.err
3056 } && test -s conftest.$ac_objext; then
d9898ee8 3057 ac_compiler_gnu=yes
3058else
3059 echo "$as_me: failed program was:" >&5
3060sed 's/^/| /' conftest.$ac_ext >&5
3061
64ff59ba 3062 ac_compiler_gnu=no
d9898ee8 3063fi
64ff59ba 3064
3065rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 3066ac_cv_c_compiler_gnu=$ac_compiler_gnu
3067
3068fi
64ff59ba 3069{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3070echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
d9898ee8 3071GCC=`test $ac_compiler_gnu = yes && echo yes`
3072ac_test_CFLAGS=${CFLAGS+set}
3073ac_save_CFLAGS=$CFLAGS
64ff59ba 3074{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3075echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
d9898ee8 3076if test "${ac_cv_prog_cc_g+set}" = set; then
3077 echo $ECHO_N "(cached) $ECHO_C" >&6
3078else
64ff59ba 3079 ac_save_c_werror_flag=$ac_c_werror_flag
3080 ac_c_werror_flag=yes
3081 ac_cv_prog_cc_g=no
3082 CFLAGS="-g"
3083 cat >conftest.$ac_ext <<_ACEOF
d9898ee8 3084/* confdefs.h. */
3085_ACEOF
3086cat confdefs.h >>conftest.$ac_ext
3087cat >>conftest.$ac_ext <<_ACEOF
3088/* end confdefs.h. */
3089
3090int
3091main ()
3092{
3093
3094 ;
3095 return 0;
3096}
3097_ACEOF
3098rm -f conftest.$ac_objext
64ff59ba 3099if { (ac_try="$ac_compile"
3100case "(($ac_try" in
3101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3102 *) ac_try_echo=$ac_try;;
3103esac
3104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3105 (eval "$ac_compile") 2>conftest.er1
d9898ee8 3106 ac_status=$?
3107 grep -v '^ *+' conftest.er1 >conftest.err
3108 rm -f conftest.er1
3109 cat conftest.err >&5
3110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 3111 (exit $ac_status); } && {
3112 test -z "$ac_c_werror_flag" ||
3113 test ! -s conftest.err
3114 } && test -s conftest.$ac_objext; then
3115 ac_cv_prog_cc_g=yes
3116else
3117 echo "$as_me: failed program was:" >&5
3118sed 's/^/| /' conftest.$ac_ext >&5
3119
3120 CFLAGS=""
3121 cat >conftest.$ac_ext <<_ACEOF
3122/* confdefs.h. */
3123_ACEOF
3124cat confdefs.h >>conftest.$ac_ext
3125cat >>conftest.$ac_ext <<_ACEOF
3126/* end confdefs.h. */
3127
3128int
3129main ()
3130{
3131
3132 ;
3133 return 0;
3134}
3135_ACEOF
3136rm -f conftest.$ac_objext
3137if { (ac_try="$ac_compile"
3138case "(($ac_try" in
3139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3140 *) ac_try_echo=$ac_try;;
3141esac
3142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3143 (eval "$ac_compile") 2>conftest.er1
d9898ee8 3144 ac_status=$?
64ff59ba 3145 grep -v '^ *+' conftest.er1 >conftest.err
3146 rm -f conftest.er1
3147 cat conftest.err >&5
d9898ee8 3148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 3149 (exit $ac_status); } && {
3150 test -z "$ac_c_werror_flag" ||
3151 test ! -s conftest.err
3152 } && test -s conftest.$ac_objext; then
3153 :
3154else
3155 echo "$as_me: failed program was:" >&5
3156sed 's/^/| /' conftest.$ac_ext >&5
3157
3158 ac_c_werror_flag=$ac_save_c_werror_flag
3159 CFLAGS="-g"
3160 cat >conftest.$ac_ext <<_ACEOF
3161/* confdefs.h. */
3162_ACEOF
3163cat confdefs.h >>conftest.$ac_ext
3164cat >>conftest.$ac_ext <<_ACEOF
3165/* end confdefs.h. */
3166
3167int
3168main ()
3169{
3170
3171 ;
3172 return 0;
3173}
3174_ACEOF
3175rm -f conftest.$ac_objext
3176if { (ac_try="$ac_compile"
3177case "(($ac_try" in
3178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3179 *) ac_try_echo=$ac_try;;
3180esac
3181eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3182 (eval "$ac_compile") 2>conftest.er1
d9898ee8 3183 ac_status=$?
64ff59ba 3184 grep -v '^ *+' conftest.er1 >conftest.err
3185 rm -f conftest.er1
3186 cat conftest.err >&5
d9898ee8 3187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 3188 (exit $ac_status); } && {
3189 test -z "$ac_c_werror_flag" ||
3190 test ! -s conftest.err
3191 } && test -s conftest.$ac_objext; then
d9898ee8 3192 ac_cv_prog_cc_g=yes
3193else
3194 echo "$as_me: failed program was:" >&5
3195sed 's/^/| /' conftest.$ac_ext >&5
3196
64ff59ba 3197
3198fi
3199
3200rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3201fi
3202
3203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 3204fi
64ff59ba 3205
3206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3207 ac_c_werror_flag=$ac_save_c_werror_flag
d9898ee8 3208fi
64ff59ba 3209{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3210echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
d9898ee8 3211if test "$ac_test_CFLAGS" = set; then
3212 CFLAGS=$ac_save_CFLAGS
3213elif test $ac_cv_prog_cc_g = yes; then
3214 if test "$GCC" = yes; then
3215 CFLAGS="-g -O2"
3216 else
3217 CFLAGS="-g"
3218 fi
3219else
3220 if test "$GCC" = yes; then
3221 CFLAGS="-O2"
3222 else
3223 CFLAGS=
3224 fi
3225fi
64ff59ba 3226{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3227echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3228if test "${ac_cv_prog_cc_c89+set}" = set; then
d9898ee8 3229 echo $ECHO_N "(cached) $ECHO_C" >&6
3230else
64ff59ba 3231 ac_cv_prog_cc_c89=no
d9898ee8 3232ac_save_CC=$CC
3233cat >conftest.$ac_ext <<_ACEOF
3234/* confdefs.h. */
3235_ACEOF
3236cat confdefs.h >>conftest.$ac_ext
3237cat >>conftest.$ac_ext <<_ACEOF
3238/* end confdefs.h. */
3239#include <stdarg.h>
3240#include <stdio.h>
3241#include <sys/types.h>
3242#include <sys/stat.h>
3243/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3244struct buf { int x; };
3245FILE * (*rcsopen) (struct buf *, struct stat *, int);
3246static char *e (p, i)
3247 char **p;
3248 int i;
3249{
3250 return p[i];
3251}
3252static char *f (char * (*g) (char **, int), char **p, ...)
3253{
3254 char *s;
3255 va_list v;
3256 va_start (v,p);
3257 s = g (p, va_arg (v,int));
3258 va_end (v);
3259 return s;
3260}
3261
3262/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3263 function prototypes and stuff, but not '\xHH' hex character constants.
3264 These don't provoke an error unfortunately, instead are silently treated
64ff59ba 3265 as 'x'. The following induces an error, until -std is added to get
d9898ee8 3266 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3267 array size at least. It's necessary to write '\x00'==0 to get something
64ff59ba 3268 that's true only with -std. */
d9898ee8 3269int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3270
64ff59ba 3271/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3272 inside strings and character constants. */
3273#define FOO(x) 'x'
3274int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3275
d9898ee8 3276int test (int i, double x);
3277struct s1 {int (*f) (int a);};
3278struct s2 {int (*f) (double a);};
3279int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3280int argc;
3281char **argv;
3282int
3283main ()
3284{
3285return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3286 ;
3287 return 0;
3288}
3289_ACEOF
64ff59ba 3290for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3291 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
d9898ee8 3292do
3293 CC="$ac_save_CC $ac_arg"
3294 rm -f conftest.$ac_objext
64ff59ba 3295if { (ac_try="$ac_compile"
3296case "(($ac_try" in
3297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3298 *) ac_try_echo=$ac_try;;
3299esac
3300eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3301 (eval "$ac_compile") 2>conftest.er1
d9898ee8 3302 ac_status=$?
3303 grep -v '^ *+' conftest.er1 >conftest.err
3304 rm -f conftest.er1
3305 cat conftest.err >&5
3306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 3307 (exit $ac_status); } && {
3308 test -z "$ac_c_werror_flag" ||
3309 test ! -s conftest.err
3310 } && test -s conftest.$ac_objext; then
3311 ac_cv_prog_cc_c89=$ac_arg
d9898ee8 3312else
3313 echo "$as_me: failed program was:" >&5
3314sed 's/^/| /' conftest.$ac_ext >&5
3315
64ff59ba 3316
d9898ee8 3317fi
64ff59ba 3318
3319rm -f core conftest.err conftest.$ac_objext
3320 test "x$ac_cv_prog_cc_c89" != "xno" && break
d9898ee8 3321done
64ff59ba 3322rm -f conftest.$ac_ext
d9898ee8 3323CC=$ac_save_CC
3324
3325fi
64ff59ba 3326# AC_CACHE_VAL
3327case "x$ac_cv_prog_cc_c89" in
3328 x)
3329 { echo "$as_me:$LINENO: result: none needed" >&5
3330echo "${ECHO_T}none needed" >&6; } ;;
3331 xno)
3332 { echo "$as_me:$LINENO: result: unsupported" >&5
3333echo "${ECHO_T}unsupported" >&6; } ;;
d9898ee8 3334 *)
64ff59ba 3335 CC="$CC $ac_cv_prog_cc_c89"
3336 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3337echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
d9898ee8 3338esac
3339
d9898ee8 3340
d9898ee8 3341ac_ext=c
3342ac_cpp='$CPP $CPPFLAGS'
3343ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3344ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3345ac_compiler_gnu=$ac_cv_c_compiler_gnu
3346DEPDIR="${am__leading_dot}deps"
3347
64ff59ba 3348ac_config_commands="$ac_config_commands depfiles"
d9898ee8 3349
3350
3351am_make=${MAKE-make}
3352cat > confinc << 'END'
3353am__doit:
3354 @echo done
3355.PHONY: am__doit
3356END
3357# If we don't find an include directive, just comment out the code.
64ff59ba 3358{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3359echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
d9898ee8 3360am__include="#"
3361am__quote=
3362_am_result=none
3363# First try GNU make style include.
3364echo "include confinc" > confmf
3365# We grep out `Entering directory' and `Leaving directory'
3366# messages which can occur if `w' ends up in MAKEFLAGS.
3367# In particular we don't look at `^make:' because GNU make might
3368# be invoked under some other name (usually "gmake"), in which
3369# case it prints its new name instead of `make'.
3370if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3371 am__include=include
3372 am__quote=
3373 _am_result=GNU
3374fi
3375# Now try BSD make style include.
3376if test "$am__include" = "#"; then
3377 echo '.include "confinc"' > confmf
3378 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3379 am__include=.include
3380 am__quote="\""
3381 _am_result=BSD
3382 fi
3383fi
3384
3385
64ff59ba 3386{ echo "$as_me:$LINENO: result: $_am_result" >&5
3387echo "${ECHO_T}$_am_result" >&6; }
d9898ee8 3388rm -f confinc confmf
3389
64ff59ba 3390# Check whether --enable-dependency-tracking was given.
d9898ee8 3391if test "${enable_dependency_tracking+set}" = set; then
64ff59ba 3392 enableval=$enable_dependency_tracking;
3393fi
d9898ee8 3394
d9898ee8 3395if test "x$enable_dependency_tracking" != xno; then
3396 am_depcomp="$ac_aux_dir/depcomp"
3397 AMDEPBACKSLASH='\'
3398fi
64ff59ba 3399 if test "x$enable_dependency_tracking" != xno; then
d9898ee8 3400 AMDEP_TRUE=
3401 AMDEP_FALSE='#'
3402else
3403 AMDEP_TRUE='#'
3404 AMDEP_FALSE=
3405fi
3406
3407
3408
d9898ee8 3409depcc="$CC" am_compiler_list=
3410
64ff59ba 3411{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3412echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
d9898ee8 3413if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3414 echo $ECHO_N "(cached) $ECHO_C" >&6
3415else
3416 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3417 # We make a subdir and do the tests there. Otherwise we can end up
3418 # making bogus files that we don't know about and never remove. For
3419 # instance it was reported that on HP-UX the gcc test will end up
3420 # making a dummy file named `D' -- because `-MD' means `put the output
3421 # in D'.
3422 mkdir conftest.dir
3423 # Copy depcomp to subdir because otherwise we won't find it if we're
3424 # using a relative directory.
3425 cp "$am_depcomp" conftest.dir
3426 cd conftest.dir
3427 # We will build objects and dependencies in a subdirectory because
3428 # it helps to detect inapplicable dependency modes. For instance
3429 # both Tru64's cc and ICC support -MD to output dependencies as a
3430 # side effect of compilation, but ICC will put the dependencies in
3431 # the current directory while Tru64 will put them in the object
3432 # directory.
3433 mkdir sub
3434
3435 am_cv_CC_dependencies_compiler_type=none
3436 if test "$am_compiler_list" = ""; then
3437 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3438 fi
3439 for depmode in $am_compiler_list; do
3440 # Setup a source with many dependencies, because some compilers
3441 # like to wrap large dependency lists on column 80 (with \), and
3442 # we should not choose a depcomp mode which is confused by this.
3443 #
3444 # We need to recreate these files for each test, as the compiler may
3445 # overwrite some of them when testing with obscure command lines.
3446 # This happens at least with the AIX C compiler.
3447 : > sub/conftest.c
3448 for i in 1 2 3 4 5 6; do
3449 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3450 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3451 # Solaris 8's {/usr,}/bin/sh.
3452 touch sub/conftst$i.h
3453 done
3454 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3455
3456 case $depmode in
3457 nosideeffect)
3458 # after this tag, mechanisms are not by side-effect, so they'll
3459 # only be used when explicitly requested
3460 if test "x$enable_dependency_tracking" = xyes; then
3461 continue
3462 else
3463 break
3464 fi
3465 ;;
3466 none) break ;;
3467 esac
3468 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3469 # mode. It turns out that the SunPro C++ compiler does not properly
3470 # handle `-M -o', and we need to detect this.
3471 if depmode=$depmode \
3472 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3473 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3474 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3475 >/dev/null 2>conftest.err &&
64ff59ba 3476 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
d9898ee8 3477 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3478 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3479 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3480 # icc doesn't choke on unknown options, it will just issue warnings
3481 # or remarks (even with -Werror). So we grep stderr for any message
3482 # that says an option was ignored or not supported.
3483 # When given -MP, icc 7.0 and 7.1 complain thusly:
3484 # icc: Command line warning: ignoring option '-M'; no argument required
3485 # The diagnosis changed in icc 8.0:
3486 # icc: Command line remark: option '-MP' not supported
3487 if (grep 'ignoring option' conftest.err ||
3488 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3489 am_cv_CC_dependencies_compiler_type=$depmode
3490 break
3491 fi
3492 fi
3493 done
3494
3495 cd ..
3496 rm -rf conftest.dir
3497else
3498 am_cv_CC_dependencies_compiler_type=none
3499fi
3500
3501fi
64ff59ba 3502{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3503echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
d9898ee8 3504CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3505
64ff59ba 3506 if
d9898ee8 3507 test "x$enable_dependency_tracking" != xno \
3508 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3509 am__fastdepCC_TRUE=
3510 am__fastdepCC_FALSE='#'
3511else
3512 am__fastdepCC_TRUE='#'
3513 am__fastdepCC_FALSE=
3514fi
3515
3516
3517# Find a good install program. We prefer a C program (faster),
3518# so one script is as good as another. But avoid the broken or
3519# incompatible versions:
3520# SysV /etc/install, /usr/sbin/install
3521# SunOS /usr/etc/install
3522# IRIX /sbin/install
3523# AIX /bin/install
3524# AmigaOS /C/install, which installs bootblocks on floppy discs
3525# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3526# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3527# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3528# OS/2's system install, which has a completely different semantic
3529# ./install, which can be erroneously created by make from ./install.sh.
64ff59ba 3530{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3531echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
d9898ee8 3532if test -z "$INSTALL"; then
3533if test "${ac_cv_path_install+set}" = set; then
3534 echo $ECHO_N "(cached) $ECHO_C" >&6
3535else
3536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3537for as_dir in $PATH
3538do
3539 IFS=$as_save_IFS
3540 test -z "$as_dir" && as_dir=.
3541 # Account for people who put trailing slashes in PATH elements.
3542case $as_dir/ in
3543 ./ | .// | /cC/* | \
3544 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3545 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3546 /usr/ucb/* ) ;;
3547 *)
3548 # OSF1 and SCO ODT 3.0 have their own names for install.
3549 # Don't use installbsd from OSF since it installs stuff as root
3550 # by default.
3551 for ac_prog in ginstall scoinst install; do
3552 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 3553 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
d9898ee8 3554 if test $ac_prog = install &&
3555 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3556 # AIX install. It has an incompatible calling convention.
3557 :
3558 elif test $ac_prog = install &&
3559 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3560 # program-specific install script used by HP pwplus--don't use.
3561 :
3562 else
3563 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3564 break 3
3565 fi
3566 fi
3567 done
3568 done
3569 ;;
3570esac
3571done
64ff59ba 3572IFS=$as_save_IFS
d9898ee8 3573
3574
3575fi
3576 if test "${ac_cv_path_install+set}" = set; then
3577 INSTALL=$ac_cv_path_install
3578 else
64ff59ba 3579 # As a last resort, use the slow shell script. Don't cache a
3580 # value for INSTALL within a source directory, because that will
d9898ee8 3581 # break other packages using the cache if that directory is
64ff59ba 3582 # removed, or if the value is a relative name.
d9898ee8 3583 INSTALL=$ac_install_sh
3584 fi
3585fi
64ff59ba 3586{ echo "$as_me:$LINENO: result: $INSTALL" >&5
3587echo "${ECHO_T}$INSTALL" >&6; }
d9898ee8 3588
3589# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3590# It thinks the first close brace ends the variable substitution.
3591test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3592
3593test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3594
3595test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3596
64ff59ba 3597{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
3598echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
d9898ee8 3599LN_S=$as_ln_s
3600if test "$LN_S" = "ln -s"; then
64ff59ba 3601 { echo "$as_me:$LINENO: result: yes" >&5
3602echo "${ECHO_T}yes" >&6; }
d9898ee8 3603else
64ff59ba 3604 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3605echo "${ECHO_T}no, using $LN_S" >&6; }
d9898ee8 3606fi
3607
3608for ac_prog in perl5 perl
3609do
3610 # Extract the first word of "$ac_prog", so it can be a program name with args.
3611set dummy $ac_prog; ac_word=$2
64ff59ba 3612{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3613echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 3614if test "${ac_cv_path_PERL+set}" = set; then
3615 echo $ECHO_N "(cached) $ECHO_C" >&6
3616else
3617 case $PERL in
3618 [\\/]* | ?:[\\/]*)
3619 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
3620 ;;
3621 *)
3622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3623for as_dir in $LPATH
3624do
3625 IFS=$as_save_IFS
3626 test -z "$as_dir" && as_dir=.
3627 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 3628 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 3629 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
3630 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3631 break 2
3632 fi
3633done
3634done
64ff59ba 3635IFS=$as_save_IFS
d9898ee8 3636
3637 ;;
3638esac
3639fi
3640PERL=$ac_cv_path_PERL
d9898ee8 3641if test -n "$PERL"; then
64ff59ba 3642 { echo "$as_me:$LINENO: result: $PERL" >&5
3643echo "${ECHO_T}$PERL" >&6; }
d9898ee8 3644else
64ff59ba 3645 { echo "$as_me:$LINENO: result: no" >&5
3646echo "${ECHO_T}no" >&6; }
d9898ee8 3647fi
3648
64ff59ba 3649
d9898ee8 3650 test -n "$PERL" && break
3651done
3652test -n "$PERL" || PERL="perl"
3653
3654
3655for ac_prog in cat
3656do
3657 # Extract the first word of "$ac_prog", so it can be a program name with args.
3658set dummy $ac_prog; ac_word=$2
64ff59ba 3659{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3660echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 3661if test "${ac_cv_path_CAT+set}" = set; then
3662 echo $ECHO_N "(cached) $ECHO_C" >&6
3663else
3664 case $CAT in
3665 [\\/]* | ?:[\\/]*)
3666 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
3667 ;;
3668 *)
3669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3670for as_dir in $PATH
3671do
3672 IFS=$as_save_IFS
3673 test -z "$as_dir" && as_dir=.
3674 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 3675 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 3676 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
3677 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3678 break 2
3679 fi
3680done
3681done
64ff59ba 3682IFS=$as_save_IFS
d9898ee8 3683
3684 ;;
3685esac
3686fi
3687CAT=$ac_cv_path_CAT
d9898ee8 3688if test -n "$CAT"; then
64ff59ba 3689 { echo "$as_me:$LINENO: result: $CAT" >&5
3690echo "${ECHO_T}$CAT" >&6; }
d9898ee8 3691else
64ff59ba 3692 { echo "$as_me:$LINENO: result: no" >&5
3693echo "${ECHO_T}no" >&6; }
d9898ee8 3694fi
3695
64ff59ba 3696
d9898ee8 3697 test -n "$CAT" && break
3698done
3699test -n "$CAT" || CAT="cat"
3700
3701
3702
64ff59ba 3703# Check whether --enable-shared was given.
d9898ee8 3704if test "${enable_shared+set}" = set; then
64ff59ba 3705 enableval=$enable_shared; p=${PACKAGE-default}
d9898ee8 3706 case $enableval in
3707 yes) enable_shared=yes ;;
3708 no) enable_shared=no ;;
3709 *)
3710 enable_shared=no
3711 # Look at the argument we got. We use all the common list separators.
3712 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3713 for pkg in $enableval; do
3714 IFS="$lt_save_ifs"
3715 if test "X$pkg" = "X$p"; then
3716 enable_shared=yes
3717 fi
3718 done
3719 IFS="$lt_save_ifs"
3720 ;;
3721 esac
3722else
3723 enable_shared=yes
64ff59ba 3724fi
d9898ee8 3725
64ff59ba 3726
3727# Check whether --enable-static was given.
d9898ee8 3728if test "${enable_static+set}" = set; then
64ff59ba 3729 enableval=$enable_static; p=${PACKAGE-default}
d9898ee8 3730 case $enableval in
3731 yes) enable_static=yes ;;
3732 no) enable_static=no ;;
3733 *)
3734 enable_static=no
3735 # Look at the argument we got. We use all the common list separators.
3736 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3737 for pkg in $enableval; do
3738 IFS="$lt_save_ifs"
3739 if test "X$pkg" = "X$p"; then
3740 enable_static=yes
3741 fi
3742 done
3743 IFS="$lt_save_ifs"
3744 ;;
3745 esac
3746else
3747 enable_static=yes
64ff59ba 3748fi
d9898ee8 3749
64ff59ba 3750
3751# Check whether --enable-fast-install was given.
d9898ee8 3752if test "${enable_fast_install+set}" = set; then
64ff59ba 3753 enableval=$enable_fast_install; p=${PACKAGE-default}
d9898ee8 3754 case $enableval in
3755 yes) enable_fast_install=yes ;;
3756 no) enable_fast_install=no ;;
3757 *)
3758 enable_fast_install=no
3759 # Look at the argument we got. We use all the common list separators.
3760 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3761 for pkg in $enableval; do
3762 IFS="$lt_save_ifs"
3763 if test "X$pkg" = "X$p"; then
3764 enable_fast_install=yes
3765 fi
3766 done
3767 IFS="$lt_save_ifs"
3768 ;;
3769 esac
3770else
3771 enable_fast_install=yes
64ff59ba 3772fi
3773
d9898ee8 3774
3775# Make sure we can run config.sub.
64ff59ba 3776$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3777 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3778echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
d9898ee8 3779 { (exit 1); exit 1; }; }
3780
64ff59ba 3781{ echo "$as_me:$LINENO: checking build system type" >&5
3782echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
d9898ee8 3783if test "${ac_cv_build+set}" = set; then
3784 echo $ECHO_N "(cached) $ECHO_C" >&6
3785else
64ff59ba 3786 ac_build_alias=$build_alias
3787test "x$ac_build_alias" = x &&
3788 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3789test "x$ac_build_alias" = x &&
d9898ee8 3790 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3791echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3792 { (exit 1); exit 1; }; }
64ff59ba 3793ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3794 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3795echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
d9898ee8 3796 { (exit 1); exit 1; }; }
3797
3798fi
64ff59ba 3799{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3800echo "${ECHO_T}$ac_cv_build" >&6; }
3801case $ac_cv_build in
3802*-*-*) ;;
3803*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3804echo "$as_me: error: invalid value of canonical build" >&2;}
3805 { (exit 1); exit 1; }; };;
3806esac
d9898ee8 3807build=$ac_cv_build
64ff59ba 3808ac_save_IFS=$IFS; IFS='-'
3809set x $ac_cv_build
3810shift
3811build_cpu=$1
3812build_vendor=$2
3813shift; shift
3814# Remember, the first character of IFS is used to create $*,
3815# except with old shells:
3816build_os=$*
3817IFS=$ac_save_IFS
3818case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3819
3820
3821{ echo "$as_me:$LINENO: checking host system type" >&5
3822echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
d9898ee8 3823if test "${ac_cv_host+set}" = set; then
3824 echo $ECHO_N "(cached) $ECHO_C" >&6
3825else
64ff59ba 3826 if test "x$host_alias" = x; then
3827 ac_cv_host=$ac_cv_build
3828else
3829 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3830 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3831echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
d9898ee8 3832 { (exit 1); exit 1; }; }
64ff59ba 3833fi
d9898ee8 3834
3835fi
64ff59ba 3836{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3837echo "${ECHO_T}$ac_cv_host" >&6; }
3838case $ac_cv_host in
3839*-*-*) ;;
3840*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3841echo "$as_me: error: invalid value of canonical host" >&2;}
3842 { (exit 1); exit 1; }; };;
3843esac
d9898ee8 3844host=$ac_cv_host
64ff59ba 3845ac_save_IFS=$IFS; IFS='-'
3846set x $ac_cv_host
3847shift
3848host_cpu=$1
3849host_vendor=$2
3850shift; shift
3851# Remember, the first character of IFS is used to create $*,
3852# except with old shells:
3853host_os=$*
3854IFS=$ac_save_IFS
3855case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3856
3857
3858{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3859echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
d9898ee8 3860if test "${lt_cv_path_SED+set}" = set; then
3861 echo $ECHO_N "(cached) $ECHO_C" >&6
3862else
3863 # Loop through the user's path and test for sed and gsed.
3864# Then use that list of sed's as ones to test for truncation.
3865as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3866for as_dir in $PATH
3867do
3868 IFS=$as_save_IFS
3869 test -z "$as_dir" && as_dir=.
3870 for lt_ac_prog in sed gsed; do
3871 for ac_exec_ext in '' $ac_executable_extensions; do
3872 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3873 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3874 fi
3875 done
3876 done
3877done
3878IFS=$as_save_IFS
3879lt_ac_max=0
3880lt_ac_count=0
3881# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3882# along with /bin/sed that truncates output.
3883for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3884 test ! -f $lt_ac_sed && continue
3885 cat /dev/null > conftest.in
3886 lt_ac_count=0
3887 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3888 # Check for GNU sed and select it if it is found.
3889 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3890 lt_cv_path_SED=$lt_ac_sed
3891 break
3892 fi
3893 while true; do
3894 cat conftest.in conftest.in >conftest.tmp
3895 mv conftest.tmp conftest.in
3896 cp conftest.in conftest.nl
3897 echo >>conftest.nl
3898 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3899 cmp -s conftest.out conftest.nl || break
3900 # 10000 chars as input seems more than enough
3901 test $lt_ac_count -gt 10 && break
3902 lt_ac_count=`expr $lt_ac_count + 1`
3903 if test $lt_ac_count -gt $lt_ac_max; then
3904 lt_ac_max=$lt_ac_count
3905 lt_cv_path_SED=$lt_ac_sed
3906 fi
3907 done
3908done
3909
3910fi
3911
3912SED=$lt_cv_path_SED
3913
64ff59ba 3914{ echo "$as_me:$LINENO: result: $SED" >&5
3915echo "${ECHO_T}$SED" >&6; }
3916
3917{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3918echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3919if test "${ac_cv_path_GREP+set}" = set; then
3920 echo $ECHO_N "(cached) $ECHO_C" >&6
3921else
3922 # Extract the first word of "grep ggrep" to use in msg output
3923if test -z "$GREP"; then
3924set dummy grep ggrep; ac_prog_name=$2
3925if test "${ac_cv_path_GREP+set}" = set; then
3926 echo $ECHO_N "(cached) $ECHO_C" >&6
3927else
3928 ac_path_GREP_found=false
3929# Loop through the user's path and test for each of PROGNAME-LIST
3930as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3931for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3932do
3933 IFS=$as_save_IFS
3934 test -z "$as_dir" && as_dir=.
3935 for ac_prog in grep ggrep; do
3936 for ac_exec_ext in '' $ac_executable_extensions; do
3937 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3938 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3939 # Check for GNU ac_path_GREP and select it if it is found.
3940 # Check for GNU $ac_path_GREP
3941case `"$ac_path_GREP" --version 2>&1` in
3942*GNU*)
3943 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3944*)
3945 ac_count=0
3946 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3947 while :
3948 do
3949 cat "conftest.in" "conftest.in" >"conftest.tmp"
3950 mv "conftest.tmp" "conftest.in"
3951 cp "conftest.in" "conftest.nl"
3952 echo 'GREP' >> "conftest.nl"
3953 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3954 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3955 ac_count=`expr $ac_count + 1`
3956 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3957 # Best one so far, save it but keep looking for a better one
3958 ac_cv_path_GREP="$ac_path_GREP"
3959 ac_path_GREP_max=$ac_count
3960 fi
3961 # 10*(2^10) chars as input seems more than enough
3962 test $ac_count -gt 10 && break
3963 done
3964 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3965esac
3966
3967
3968 $ac_path_GREP_found && break 3
3969 done
3970done
3971
3972done
3973IFS=$as_save_IFS
3974
3975
3976fi
3977
3978GREP="$ac_cv_path_GREP"
3979if test -z "$GREP"; then
3980 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3981echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3982 { (exit 1); exit 1; }; }
3983fi
3984
3985else
3986 ac_cv_path_GREP=$GREP
3987fi
3988
3989
3990fi
3991{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3992echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3993 GREP="$ac_cv_path_GREP"
3994
d9898ee8 3995
64ff59ba 3996{ echo "$as_me:$LINENO: checking for egrep" >&5
3997echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3998if test "${ac_cv_path_EGREP+set}" = set; then
3999 echo $ECHO_N "(cached) $ECHO_C" >&6
4000else
4001 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4002 then ac_cv_path_EGREP="$GREP -E"
4003 else
4004 # Extract the first word of "egrep" to use in msg output
4005if test -z "$EGREP"; then
4006set dummy egrep; ac_prog_name=$2
4007if test "${ac_cv_path_EGREP+set}" = set; then
d9898ee8 4008 echo $ECHO_N "(cached) $ECHO_C" >&6
4009else
64ff59ba 4010 ac_path_EGREP_found=false
4011# Loop through the user's path and test for each of PROGNAME-LIST
4012as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4013for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4014do
4015 IFS=$as_save_IFS
4016 test -z "$as_dir" && as_dir=.
4017 for ac_prog in egrep; do
4018 for ac_exec_ext in '' $ac_executable_extensions; do
4019 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4020 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4021 # Check for GNU ac_path_EGREP and select it if it is found.
4022 # Check for GNU $ac_path_EGREP
4023case `"$ac_path_EGREP" --version 2>&1` in
4024*GNU*)
4025 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4026*)
4027 ac_count=0
4028 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4029 while :
4030 do
4031 cat "conftest.in" "conftest.in" >"conftest.tmp"
4032 mv "conftest.tmp" "conftest.in"
4033 cp "conftest.in" "conftest.nl"
4034 echo 'EGREP' >> "conftest.nl"
4035 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4036 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4037 ac_count=`expr $ac_count + 1`
4038 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4039 # Best one so far, save it but keep looking for a better one
4040 ac_cv_path_EGREP="$ac_path_EGREP"
4041 ac_path_EGREP_max=$ac_count
d9898ee8 4042 fi
64ff59ba 4043 # 10*(2^10) chars as input seems more than enough
4044 test $ac_count -gt 10 && break
4045 done
4046 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4047esac
4048
4049
4050 $ac_path_EGREP_found && break 3
4051 done
4052done
4053
4054done
4055IFS=$as_save_IFS
4056
4057
4058fi
4059
4060EGREP="$ac_cv_path_EGREP"
4061if test -z "$EGREP"; then
4062 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4063echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4064 { (exit 1); exit 1; }; }
4065fi
4066
4067else
4068 ac_cv_path_EGREP=$EGREP
4069fi
4070
4071
4072 fi
d9898ee8 4073fi
64ff59ba 4074{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4075echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4076 EGREP="$ac_cv_path_EGREP"
d9898ee8 4077
4078
4079
64ff59ba 4080# Check whether --with-gnu-ld was given.
d9898ee8 4081if test "${with_gnu_ld+set}" = set; then
64ff59ba 4082 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
d9898ee8 4083else
4084 with_gnu_ld=no
64ff59ba 4085fi
4086
d9898ee8 4087ac_prog=ld
4088if test "$GCC" = yes; then
4089 # Check if gcc -print-prog-name=ld gives a path.
64ff59ba 4090 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4091echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
d9898ee8 4092 case $host in
4093 *-*-mingw*)
4094 # gcc leaves a trailing carriage return which upsets mingw
4095 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4096 *)
4097 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4098 esac
4099 case $ac_prog in
4100 # Accept absolute paths.
4101 [\\/]* | ?:[\\/]*)
4102 re_direlt='/[^/][^/]*/\.\./'
4103 # Canonicalize the pathname of ld
4104 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4105 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4106 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4107 done
4108 test -z "$LD" && LD="$ac_prog"
4109 ;;
4110 "")
4111 # If it fails, then pretend we aren't using GCC.
4112 ac_prog=ld
4113 ;;
4114 *)
4115 # If it is relative, then search for the first ld in PATH.
4116 with_gnu_ld=unknown
4117 ;;
4118 esac
4119elif test "$with_gnu_ld" = yes; then
64ff59ba 4120 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4121echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
d9898ee8 4122else
64ff59ba 4123 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4124echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
d9898ee8 4125fi
4126if test "${lt_cv_path_LD+set}" = set; then
4127 echo $ECHO_N "(cached) $ECHO_C" >&6
4128else
4129 if test -z "$LD"; then
4130 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4131 for ac_dir in $PATH; do
4132 IFS="$lt_save_ifs"
4133 test -z "$ac_dir" && ac_dir=.
4134 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4135 lt_cv_path_LD="$ac_dir/$ac_prog"
4136 # Check to see if the program is GNU ld. I'd rather use --version,
4137 # but apparently some variants of GNU ld only accept -v.
4138 # Break only if it was the GNU/non-GNU ld that we prefer.
4139 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4140 *GNU* | *'with BFD'*)
4141 test "$with_gnu_ld" != no && break
4142 ;;
4143 *)
4144 test "$with_gnu_ld" != yes && break
4145 ;;
4146 esac
4147 fi
4148 done
4149 IFS="$lt_save_ifs"
4150else
4151 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4152fi
4153fi
4154
4155LD="$lt_cv_path_LD"
4156if test -n "$LD"; then
64ff59ba 4157 { echo "$as_me:$LINENO: result: $LD" >&5
4158echo "${ECHO_T}$LD" >&6; }
d9898ee8 4159else
64ff59ba 4160 { echo "$as_me:$LINENO: result: no" >&5
4161echo "${ECHO_T}no" >&6; }
d9898ee8 4162fi
4163test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4164echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4165 { (exit 1); exit 1; }; }
64ff59ba 4166{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4167echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
d9898ee8 4168if test "${lt_cv_prog_gnu_ld+set}" = set; then
4169 echo $ECHO_N "(cached) $ECHO_C" >&6
4170else
4171 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4172case `$LD -v 2>&1 </dev/null` in
4173*GNU* | *'with BFD'*)
4174 lt_cv_prog_gnu_ld=yes
4175 ;;
4176*)
4177 lt_cv_prog_gnu_ld=no
4178 ;;
4179esac
4180fi
64ff59ba 4181{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4182echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
d9898ee8 4183with_gnu_ld=$lt_cv_prog_gnu_ld
4184
4185
64ff59ba 4186{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4187echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
d9898ee8 4188if test "${lt_cv_ld_reload_flag+set}" = set; then
4189 echo $ECHO_N "(cached) $ECHO_C" >&6
4190else
4191 lt_cv_ld_reload_flag='-r'
4192fi
64ff59ba 4193{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4194echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
d9898ee8 4195reload_flag=$lt_cv_ld_reload_flag
4196case $reload_flag in
4197"" | " "*) ;;
4198*) reload_flag=" $reload_flag" ;;
4199esac
4200reload_cmds='$LD$reload_flag -o $output$reload_objs'
4201case $host_os in
4202 darwin*)
4203 if test "$GCC" = yes; then
4204 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4205 else
4206 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4207 fi
4208 ;;
4209esac
4210
64ff59ba 4211{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4212echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
d9898ee8 4213if test "${lt_cv_path_NM+set}" = set; then
4214 echo $ECHO_N "(cached) $ECHO_C" >&6
4215else
4216 if test -n "$NM"; then
4217 # Let the user override the test.
4218 lt_cv_path_NM="$NM"
4219else
4220 lt_nm_to_check="${ac_tool_prefix}nm"
4221 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4222 lt_nm_to_check="$lt_nm_to_check nm"
4223 fi
4224 for lt_tmp_nm in $lt_nm_to_check; do
4225 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4226 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4227 IFS="$lt_save_ifs"
4228 test -z "$ac_dir" && ac_dir=.
4229 tmp_nm="$ac_dir/$lt_tmp_nm"
4230 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4231 # Check to see if the nm accepts a BSD-compat flag.
4232 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4233 # nm: unknown option "B" ignored
4234 # Tru64's nm complains that /dev/null is an invalid object file
4235 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4236 */dev/null* | *'Invalid file or object type'*)
4237 lt_cv_path_NM="$tmp_nm -B"
4238 break
4239 ;;
4240 *)
4241 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4242 */dev/null*)
4243 lt_cv_path_NM="$tmp_nm -p"
4244 break
4245 ;;
4246 *)
4247 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4248 continue # so that we can try to find one that supports BSD flags
4249 ;;
4250 esac
4251 ;;
4252 esac
4253 fi
4254 done
4255 IFS="$lt_save_ifs"
4256 done
4257 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4258fi
4259fi
64ff59ba 4260{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4261echo "${ECHO_T}$lt_cv_path_NM" >&6; }
d9898ee8 4262NM="$lt_cv_path_NM"
4263
64ff59ba 4264{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4265echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
d9898ee8 4266if test "${lt_cv_deplibs_check_method+set}" = set; then
4267 echo $ECHO_N "(cached) $ECHO_C" >&6
4268else
4269 lt_cv_file_magic_cmd='$MAGIC_CMD'
4270lt_cv_file_magic_test_file=
4271lt_cv_deplibs_check_method='unknown'
4272# Need to set the preceding variable on all platforms that support
4273# interlibrary dependencies.
4274# 'none' -- dependencies not supported.
4275# `unknown' -- same as none, but documents that we really don't know.
4276# 'pass_all' -- all dependencies passed with no checks.
4277# 'test_compile' -- check by making test program.
4278# 'file_magic [[regex]]' -- check by looking for files in library path
4279# which responds to the $file_magic_cmd with a given extended regex.
4280# If you have `file' or equivalent on your system and you're not sure
4281# whether `pass_all' will *always* work, you probably want this one.
4282
4283case $host_os in
4284aix4* | aix5*)
4285 lt_cv_deplibs_check_method=pass_all
4286 ;;
4287
4288beos*)
4289 lt_cv_deplibs_check_method=pass_all
4290 ;;
4291
4292bsdi[45]*)
4293 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4294 lt_cv_file_magic_cmd='/usr/bin/file -L'
4295 lt_cv_file_magic_test_file=/shlib/libc.so
4296 ;;
4297
4298cygwin*)
4299 # func_win32_libid is a shell function defined in ltmain.sh
4300 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4301 lt_cv_file_magic_cmd='func_win32_libid'
4302 ;;
4303
4304mingw* | pw32*)
4305 # Base MSYS/MinGW do not provide the 'file' command needed by
4306 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4307 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4308 lt_cv_file_magic_cmd='$OBJDUMP -f'
4309 ;;
4310
4311darwin* | rhapsody*)
4312 lt_cv_deplibs_check_method=pass_all
4313 ;;
4314
4315freebsd* | kfreebsd*-gnu | dragonfly*)
4316 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4317 case $host_cpu in
4318 i*86 )
4319 # Not sure whether the presence of OpenBSD here was a mistake.
4320 # Let's accept both of them until this is cleared up.
4321 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4322 lt_cv_file_magic_cmd=/usr/bin/file
4323 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4324 ;;
4325 esac
4326 else
4327 lt_cv_deplibs_check_method=pass_all
4328 fi
4329 ;;
4330
4331gnu*)
4332 lt_cv_deplibs_check_method=pass_all
4333 ;;
4334
4335hpux10.20* | hpux11*)
4336 lt_cv_file_magic_cmd=/usr/bin/file
4337 case $host_cpu in
4338 ia64*)
4339 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4340 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4341 ;;
4342 hppa*64*)
4343 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]'
4344 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4345 ;;
4346 *)
4347 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4348 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4349 ;;
4350 esac
4351 ;;
4352
4353interix3*)
4354 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4355 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4356 ;;
4357
4358irix5* | irix6* | nonstopux*)
4359 case $LD in
4360 *-32|*"-32 ") libmagic=32-bit;;
4361 *-n32|*"-n32 ") libmagic=N32;;
4362 *-64|*"-64 ") libmagic=64-bit;;
4363 *) libmagic=never-match;;
4364 esac
4365 lt_cv_deplibs_check_method=pass_all
4366 ;;
4367
4368# This must be Linux ELF.
4369linux*)
4370 lt_cv_deplibs_check_method=pass_all
4371 ;;
4372
4373netbsd*)
4374 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4375 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4376 else
4377 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4378 fi
4379 ;;
4380
4381newos6*)
4382 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4383 lt_cv_file_magic_cmd=/usr/bin/file
4384 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4385 ;;
4386
4387nto-qnx*)
4388 lt_cv_deplibs_check_method=unknown
4389 ;;
4390
4391openbsd*)
4392 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4393 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4394 else
4395 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4396 fi
4397 ;;
4398
4399osf3* | osf4* | osf5*)
4400 lt_cv_deplibs_check_method=pass_all
4401 ;;
4402
4403solaris*)
4404 lt_cv_deplibs_check_method=pass_all
4405 ;;
4406
4407sysv4 | sysv4.3*)
4408 case $host_vendor in
4409 motorola)
4410 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]'
4411 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4412 ;;
4413 ncr)
4414 lt_cv_deplibs_check_method=pass_all
4415 ;;
4416 sequent)
4417 lt_cv_file_magic_cmd='/bin/file'
4418 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4419 ;;
4420 sni)
4421 lt_cv_file_magic_cmd='/bin/file'
4422 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4423 lt_cv_file_magic_test_file=/lib/libc.so
4424 ;;
4425 siemens)
4426 lt_cv_deplibs_check_method=pass_all
4427 ;;
4428 pc)
4429 lt_cv_deplibs_check_method=pass_all
4430 ;;
4431 esac
4432 ;;
4433
4434sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4435 lt_cv_deplibs_check_method=pass_all
4436 ;;
4437esac
4438
4439fi
64ff59ba 4440{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4441echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
d9898ee8 4442file_magic_cmd=$lt_cv_file_magic_cmd
4443deplibs_check_method=$lt_cv_deplibs_check_method
4444test -z "$deplibs_check_method" && deplibs_check_method=unknown
4445
4446
4447
4448
4449# If no C compiler was specified, use CC.
4450LTCC=${LTCC-"$CC"}
4451
4452# If no C compiler flags were specified, use CFLAGS.
4453LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4454
4455# Allow CC to be a program name with arguments.
4456compiler=$CC
4457
4458
64ff59ba 4459# Check whether --enable-libtool-lock was given.
d9898ee8 4460if test "${enable_libtool_lock+set}" = set; then
64ff59ba 4461 enableval=$enable_libtool_lock;
4462fi
d9898ee8 4463
d9898ee8 4464test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4465
4466# Some flags need to be propagated to the compiler or linker for good
4467# libtool support.
4468case $host in
4469ia64-*-hpux*)
4470 # Find out which ABI we are using.
4471 echo 'int i;' > conftest.$ac_ext
4472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4473 (eval $ac_compile) 2>&5
4474 ac_status=$?
4475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4476 (exit $ac_status); }; then
4477 case `/usr/bin/file conftest.$ac_objext` in
4478 *ELF-32*)
4479 HPUX_IA64_MODE="32"
4480 ;;
4481 *ELF-64*)
4482 HPUX_IA64_MODE="64"
4483 ;;
4484 esac
4485 fi
4486 rm -rf conftest*
4487 ;;
4488*-*-irix6*)
4489 # Find out which ABI we are using.
64ff59ba 4490 echo '#line 4490 "configure"' > conftest.$ac_ext
d9898ee8 4491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4492 (eval $ac_compile) 2>&5
4493 ac_status=$?
4494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4495 (exit $ac_status); }; then
4496 if test "$lt_cv_prog_gnu_ld" = yes; then
4497 case `/usr/bin/file conftest.$ac_objext` in
4498 *32-bit*)
4499 LD="${LD-ld} -melf32bsmip"
4500 ;;
4501 *N32*)
4502 LD="${LD-ld} -melf32bmipn32"
4503 ;;
4504 *64-bit*)
4505 LD="${LD-ld} -melf64bmip"
4506 ;;
4507 esac
4508 else
4509 case `/usr/bin/file conftest.$ac_objext` in
4510 *32-bit*)
4511 LD="${LD-ld} -32"
4512 ;;
4513 *N32*)
4514 LD="${LD-ld} -n32"
4515 ;;
4516 *64-bit*)
4517 LD="${LD-ld} -64"
4518 ;;
4519 esac
4520 fi
4521 fi
4522 rm -rf conftest*
4523 ;;
4524
4525x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4526 # Find out which ABI we are using.
4527 echo 'int i;' > conftest.$ac_ext
4528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4529 (eval $ac_compile) 2>&5
4530 ac_status=$?
4531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4532 (exit $ac_status); }; then
4533 case `/usr/bin/file conftest.o` in
4534 *32-bit*)
4535 case $host in
4536 x86_64-*linux*)
4537 LD="${LD-ld} -m elf_i386"
4538 ;;
4539 ppc64-*linux*|powerpc64-*linux*)
4540 LD="${LD-ld} -m elf32ppclinux"
4541 ;;
4542 s390x-*linux*)
4543 LD="${LD-ld} -m elf_s390"
4544 ;;
4545 sparc64-*linux*)
4546 LD="${LD-ld} -m elf32_sparc"
4547 ;;
4548 esac
4549 ;;
4550 *64-bit*)
4551 case $host in
4552 x86_64-*linux*)
4553 LD="${LD-ld} -m elf_x86_64"
4554 ;;
4555 ppc*-*linux*|powerpc*-*linux*)
4556 LD="${LD-ld} -m elf64ppc"
4557 ;;
4558 s390*-*linux*)
4559 LD="${LD-ld} -m elf64_s390"
4560 ;;
4561 sparc*-*linux*)
4562 LD="${LD-ld} -m elf64_sparc"
4563 ;;
4564 esac
4565 ;;
4566 esac
4567 fi
4568 rm -rf conftest*
4569 ;;
4570
4571*-*-sco3.2v5*)
4572 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4573 SAVE_CFLAGS="$CFLAGS"
4574 CFLAGS="$CFLAGS -belf"
64ff59ba 4575 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4576echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
d9898ee8 4577if test "${lt_cv_cc_needs_belf+set}" = set; then
4578 echo $ECHO_N "(cached) $ECHO_C" >&6
4579else
4580 ac_ext=c
4581ac_cpp='$CPP $CPPFLAGS'
4582ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4583ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4584ac_compiler_gnu=$ac_cv_c_compiler_gnu
4585
4586 cat >conftest.$ac_ext <<_ACEOF
4587/* confdefs.h. */
4588_ACEOF
4589cat confdefs.h >>conftest.$ac_ext
4590cat >>conftest.$ac_ext <<_ACEOF
4591/* end confdefs.h. */
4592
4593int
4594main ()
4595{
4596
4597 ;
4598 return 0;
4599}
4600_ACEOF
4601rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 4602if { (ac_try="$ac_link"
4603case "(($ac_try" in
4604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4605 *) ac_try_echo=$ac_try;;
4606esac
4607eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4608 (eval "$ac_link") 2>conftest.er1
d9898ee8 4609 ac_status=$?
4610 grep -v '^ *+' conftest.er1 >conftest.err
4611 rm -f conftest.er1
4612 cat conftest.err >&5
4613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 4614 (exit $ac_status); } && {
4615 test -z "$ac_c_werror_flag" ||
4616 test ! -s conftest.err
4617 } && test -s conftest$ac_exeext &&
4618 $as_test_x conftest$ac_exeext; then
d9898ee8 4619 lt_cv_cc_needs_belf=yes
4620else
4621 echo "$as_me: failed program was:" >&5
4622sed 's/^/| /' conftest.$ac_ext >&5
4623
64ff59ba 4624 lt_cv_cc_needs_belf=no
d9898ee8 4625fi
64ff59ba 4626
4627rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 4628 conftest$ac_exeext conftest.$ac_ext
4629 ac_ext=c
4630ac_cpp='$CPP $CPPFLAGS'
4631ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4632ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4633ac_compiler_gnu=$ac_cv_c_compiler_gnu
4634
4635fi
64ff59ba 4636{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4637echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
d9898ee8 4638 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4639 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4640 CFLAGS="$SAVE_CFLAGS"
4641 fi
4642 ;;
4643sparc*-*solaris*)
4644 # Find out which ABI we are using.
4645 echo 'int i;' > conftest.$ac_ext
4646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4647 (eval $ac_compile) 2>&5
4648 ac_status=$?
4649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4650 (exit $ac_status); }; then
4651 case `/usr/bin/file conftest.o` in
4652 *64-bit*)
4653 case $lt_cv_prog_gnu_ld in
4654 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4655 *) LD="${LD-ld} -64" ;;
4656 esac
4657 ;;
4658 esac
4659 fi
4660 rm -rf conftest*
4661 ;;
4662
4663
4664esac
4665
4666need_locks="$enable_libtool_lock"
4667
4668
4669ac_ext=c
4670ac_cpp='$CPP $CPPFLAGS'
4671ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4672ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4673ac_compiler_gnu=$ac_cv_c_compiler_gnu
64ff59ba 4674{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4675echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
d9898ee8 4676# On Suns, sometimes $CPP names a directory.
4677if test -n "$CPP" && test -d "$CPP"; then
4678 CPP=
4679fi
4680if test -z "$CPP"; then
4681 if test "${ac_cv_prog_CPP+set}" = set; then
4682 echo $ECHO_N "(cached) $ECHO_C" >&6
4683else
4684 # Double quotes because CPP needs to be expanded
4685 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4686 do
4687 ac_preproc_ok=false
4688for ac_c_preproc_warn_flag in '' yes
4689do
4690 # Use a header file that comes with gcc, so configuring glibc
4691 # with a fresh cross-compiler works.
4692 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4693 # <limits.h> exists even on freestanding compilers.
4694 # On the NeXT, cc -E runs the code through the compiler's parser,
4695 # not just through cpp. "Syntax error" is here to catch this case.
4696 cat >conftest.$ac_ext <<_ACEOF
4697/* confdefs.h. */
4698_ACEOF
4699cat confdefs.h >>conftest.$ac_ext
4700cat >>conftest.$ac_ext <<_ACEOF
4701/* end confdefs.h. */
4702#ifdef __STDC__
4703# include <limits.h>
4704#else
4705# include <assert.h>
4706#endif
4707 Syntax error
4708_ACEOF
64ff59ba 4709if { (ac_try="$ac_cpp conftest.$ac_ext"
4710case "(($ac_try" in
4711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4712 *) ac_try_echo=$ac_try;;
4713esac
4714eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4715 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 4716 ac_status=$?
4717 grep -v '^ *+' conftest.er1 >conftest.err
4718 rm -f conftest.er1
4719 cat conftest.err >&5
4720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 4721 (exit $ac_status); } >/dev/null && {
4722 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4723 test ! -s conftest.err
4724 }; then
d9898ee8 4725 :
4726else
4727 echo "$as_me: failed program was:" >&5
4728sed 's/^/| /' conftest.$ac_ext >&5
4729
4730 # Broken: fails on valid input.
4731continue
4732fi
64ff59ba 4733
d9898ee8 4734rm -f conftest.err conftest.$ac_ext
4735
64ff59ba 4736 # OK, works on sane cases. Now check whether nonexistent headers
d9898ee8 4737 # can be detected and how.
4738 cat >conftest.$ac_ext <<_ACEOF
4739/* confdefs.h. */
4740_ACEOF
4741cat confdefs.h >>conftest.$ac_ext
4742cat >>conftest.$ac_ext <<_ACEOF
4743/* end confdefs.h. */
4744#include <ac_nonexistent.h>
4745_ACEOF
64ff59ba 4746if { (ac_try="$ac_cpp conftest.$ac_ext"
4747case "(($ac_try" in
4748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4749 *) ac_try_echo=$ac_try;;
4750esac
4751eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4752 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 4753 ac_status=$?
4754 grep -v '^ *+' conftest.er1 >conftest.err
4755 rm -f conftest.er1
4756 cat conftest.err >&5
4757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 4758 (exit $ac_status); } >/dev/null && {
4759 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4760 test ! -s conftest.err
4761 }; then
d9898ee8 4762 # Broken: success on invalid input.
4763continue
4764else
4765 echo "$as_me: failed program was:" >&5
4766sed 's/^/| /' conftest.$ac_ext >&5
4767
4768 # Passes both tests.
4769ac_preproc_ok=:
4770break
4771fi
64ff59ba 4772
d9898ee8 4773rm -f conftest.err conftest.$ac_ext
4774
4775done
4776# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4777rm -f conftest.err conftest.$ac_ext
4778if $ac_preproc_ok; then
4779 break
4780fi
4781
4782 done
4783 ac_cv_prog_CPP=$CPP
4784
4785fi
4786 CPP=$ac_cv_prog_CPP
4787else
4788 ac_cv_prog_CPP=$CPP
4789fi
64ff59ba 4790{ echo "$as_me:$LINENO: result: $CPP" >&5
4791echo "${ECHO_T}$CPP" >&6; }
d9898ee8 4792ac_preproc_ok=false
4793for ac_c_preproc_warn_flag in '' yes
4794do
4795 # Use a header file that comes with gcc, so configuring glibc
4796 # with a fresh cross-compiler works.
4797 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4798 # <limits.h> exists even on freestanding compilers.
4799 # On the NeXT, cc -E runs the code through the compiler's parser,
4800 # not just through cpp. "Syntax error" is here to catch this case.
4801 cat >conftest.$ac_ext <<_ACEOF
4802/* confdefs.h. */
4803_ACEOF
4804cat confdefs.h >>conftest.$ac_ext
4805cat >>conftest.$ac_ext <<_ACEOF
4806/* end confdefs.h. */
4807#ifdef __STDC__
4808# include <limits.h>
4809#else
4810# include <assert.h>
4811#endif
4812 Syntax error
4813_ACEOF
64ff59ba 4814if { (ac_try="$ac_cpp conftest.$ac_ext"
4815case "(($ac_try" in
4816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4817 *) ac_try_echo=$ac_try;;
4818esac
4819eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4820 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 4821 ac_status=$?
4822 grep -v '^ *+' conftest.er1 >conftest.err
4823 rm -f conftest.er1
4824 cat conftest.err >&5
4825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 4826 (exit $ac_status); } >/dev/null && {
4827 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4828 test ! -s conftest.err
4829 }; then
d9898ee8 4830 :
4831else
4832 echo "$as_me: failed program was:" >&5
4833sed 's/^/| /' conftest.$ac_ext >&5
4834
4835 # Broken: fails on valid input.
4836continue
4837fi
64ff59ba 4838
d9898ee8 4839rm -f conftest.err conftest.$ac_ext
4840
64ff59ba 4841 # OK, works on sane cases. Now check whether nonexistent headers
d9898ee8 4842 # can be detected and how.
4843 cat >conftest.$ac_ext <<_ACEOF
4844/* confdefs.h. */
4845_ACEOF
4846cat confdefs.h >>conftest.$ac_ext
4847cat >>conftest.$ac_ext <<_ACEOF
4848/* end confdefs.h. */
4849#include <ac_nonexistent.h>
4850_ACEOF
64ff59ba 4851if { (ac_try="$ac_cpp conftest.$ac_ext"
4852case "(($ac_try" in
4853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4854 *) ac_try_echo=$ac_try;;
4855esac
4856eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4857 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 4858 ac_status=$?
4859 grep -v '^ *+' conftest.er1 >conftest.err
4860 rm -f conftest.er1
4861 cat conftest.err >&5
4862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 4863 (exit $ac_status); } >/dev/null && {
4864 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4865 test ! -s conftest.err
4866 }; then
d9898ee8 4867 # Broken: success on invalid input.
4868continue
4869else
4870 echo "$as_me: failed program was:" >&5
4871sed 's/^/| /' conftest.$ac_ext >&5
4872
4873 # Passes both tests.
4874ac_preproc_ok=:
4875break
4876fi
64ff59ba 4877
d9898ee8 4878rm -f conftest.err conftest.$ac_ext
4879
4880done
4881# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4882rm -f conftest.err conftest.$ac_ext
4883if $ac_preproc_ok; then
4884 :
4885else
4886 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4887See \`config.log' for more details." >&5
4888echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4889See \`config.log' for more details." >&2;}
4890 { (exit 1); exit 1; }; }
4891fi
4892
4893ac_ext=c
4894ac_cpp='$CPP $CPPFLAGS'
4895ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4896ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4897ac_compiler_gnu=$ac_cv_c_compiler_gnu
4898
4899
64ff59ba 4900{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4901echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
d9898ee8 4902if test "${ac_cv_header_stdc+set}" = set; then
4903 echo $ECHO_N "(cached) $ECHO_C" >&6
4904else
4905 cat >conftest.$ac_ext <<_ACEOF
4906/* confdefs.h. */
4907_ACEOF
4908cat confdefs.h >>conftest.$ac_ext
4909cat >>conftest.$ac_ext <<_ACEOF
4910/* end confdefs.h. */
4911#include <stdlib.h>
4912#include <stdarg.h>
4913#include <string.h>
4914#include <float.h>
4915
4916int
4917main ()
4918{
4919
4920 ;
4921 return 0;
4922}
4923_ACEOF
4924rm -f conftest.$ac_objext
64ff59ba 4925if { (ac_try="$ac_compile"
4926case "(($ac_try" in
4927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4928 *) ac_try_echo=$ac_try;;
4929esac
4930eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4931 (eval "$ac_compile") 2>conftest.er1
d9898ee8 4932 ac_status=$?
4933 grep -v '^ *+' conftest.er1 >conftest.err
4934 rm -f conftest.er1
4935 cat conftest.err >&5
4936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 4937 (exit $ac_status); } && {
4938 test -z "$ac_c_werror_flag" ||
4939 test ! -s conftest.err
4940 } && test -s conftest.$ac_objext; then
d9898ee8 4941 ac_cv_header_stdc=yes
4942else
4943 echo "$as_me: failed program was:" >&5
4944sed 's/^/| /' conftest.$ac_ext >&5
4945
64ff59ba 4946 ac_cv_header_stdc=no
d9898ee8 4947fi
64ff59ba 4948
4949rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 4950
4951if test $ac_cv_header_stdc = yes; then
4952 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4953 cat >conftest.$ac_ext <<_ACEOF
4954/* confdefs.h. */
4955_ACEOF
4956cat confdefs.h >>conftest.$ac_ext
4957cat >>conftest.$ac_ext <<_ACEOF
4958/* end confdefs.h. */
4959#include <string.h>
4960
4961_ACEOF
4962if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4963 $EGREP "memchr" >/dev/null 2>&1; then
4964 :
4965else
4966 ac_cv_header_stdc=no
4967fi
4968rm -f conftest*
4969
4970fi
4971
4972if test $ac_cv_header_stdc = yes; then
4973 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4974 cat >conftest.$ac_ext <<_ACEOF
4975/* confdefs.h. */
4976_ACEOF
4977cat confdefs.h >>conftest.$ac_ext
4978cat >>conftest.$ac_ext <<_ACEOF
4979/* end confdefs.h. */
4980#include <stdlib.h>
4981
4982_ACEOF
4983if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4984 $EGREP "free" >/dev/null 2>&1; then
4985 :
4986else
4987 ac_cv_header_stdc=no
4988fi
4989rm -f conftest*
4990
4991fi
4992
4993if test $ac_cv_header_stdc = yes; then
4994 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4995 if test "$cross_compiling" = yes; then
4996 :
4997else
4998 cat >conftest.$ac_ext <<_ACEOF
4999/* confdefs.h. */
5000_ACEOF
5001cat confdefs.h >>conftest.$ac_ext
5002cat >>conftest.$ac_ext <<_ACEOF
5003/* end confdefs.h. */
5004#include <ctype.h>
64ff59ba 5005#include <stdlib.h>
d9898ee8 5006#if ((' ' & 0x0FF) == 0x020)
5007# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5008# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5009#else
5010# define ISLOWER(c) \
5011 (('a' <= (c) && (c) <= 'i') \
5012 || ('j' <= (c) && (c) <= 'r') \
5013 || ('s' <= (c) && (c) <= 'z'))
5014# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5015#endif
5016
5017#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5018int
5019main ()
5020{
5021 int i;
5022 for (i = 0; i < 256; i++)
5023 if (XOR (islower (i), ISLOWER (i))
5024 || toupper (i) != TOUPPER (i))
64ff59ba 5025 return 2;
5026 return 0;
d9898ee8 5027}
5028_ACEOF
5029rm -f conftest$ac_exeext
64ff59ba 5030if { (ac_try="$ac_link"
5031case "(($ac_try" in
5032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5033 *) ac_try_echo=$ac_try;;
5034esac
5035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5036 (eval "$ac_link") 2>&5
d9898ee8 5037 ac_status=$?
5038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5039 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
64ff59ba 5040 { (case "(($ac_try" in
5041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5042 *) ac_try_echo=$ac_try;;
5043esac
5044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5045 (eval "$ac_try") 2>&5
d9898ee8 5046 ac_status=$?
5047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5048 (exit $ac_status); }; }; then
5049 :
5050else
5051 echo "$as_me: program exited with status $ac_status" >&5
5052echo "$as_me: failed program was:" >&5
5053sed 's/^/| /' conftest.$ac_ext >&5
5054
5055( exit $ac_status )
5056ac_cv_header_stdc=no
5057fi
64ff59ba 5058rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d9898ee8 5059fi
64ff59ba 5060
5061
d9898ee8 5062fi
5063fi
64ff59ba 5064{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5065echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
d9898ee8 5066if test $ac_cv_header_stdc = yes; then
5067
5068cat >>confdefs.h <<\_ACEOF
5069#define STDC_HEADERS 1
5070_ACEOF
5071
5072fi
5073
5074# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5085 inttypes.h stdint.h unistd.h
5086do
5087as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
64ff59ba 5088{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5089echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5090if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 5091 echo $ECHO_N "(cached) $ECHO_C" >&6
5092else
5093 cat >conftest.$ac_ext <<_ACEOF
5094/* confdefs.h. */
5095_ACEOF
5096cat confdefs.h >>conftest.$ac_ext
5097cat >>conftest.$ac_ext <<_ACEOF
5098/* end confdefs.h. */
5099$ac_includes_default
5100
5101#include <$ac_header>
5102_ACEOF
5103rm -f conftest.$ac_objext
64ff59ba 5104if { (ac_try="$ac_compile"
5105case "(($ac_try" in
5106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5107 *) ac_try_echo=$ac_try;;
5108esac
5109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5110 (eval "$ac_compile") 2>conftest.er1
d9898ee8 5111 ac_status=$?
5112 grep -v '^ *+' conftest.er1 >conftest.err
5113 rm -f conftest.er1
5114 cat conftest.err >&5
5115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 5116 (exit $ac_status); } && {
5117 test -z "$ac_c_werror_flag" ||
5118 test ! -s conftest.err
5119 } && test -s conftest.$ac_objext; then
d9898ee8 5120 eval "$as_ac_Header=yes"
5121else
5122 echo "$as_me: failed program was:" >&5
5123sed 's/^/| /' conftest.$ac_ext >&5
5124
64ff59ba 5125 eval "$as_ac_Header=no"
d9898ee8 5126fi
64ff59ba 5127
5128rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 5129fi
64ff59ba 5130ac_res=`eval echo '${'$as_ac_Header'}'`
5131 { echo "$as_me:$LINENO: result: $ac_res" >&5
5132echo "${ECHO_T}$ac_res" >&6; }
d9898ee8 5133if test `eval echo '${'$as_ac_Header'}'` = yes; then
5134 cat >>confdefs.h <<_ACEOF
5135#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5136_ACEOF
5137
5138fi
5139
5140done
5141
5142
5143
5144for ac_header in dlfcn.h
5145do
5146as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
64ff59ba 5147if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5148 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5149echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5150if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 5151 echo $ECHO_N "(cached) $ECHO_C" >&6
5152fi
64ff59ba 5153ac_res=`eval echo '${'$as_ac_Header'}'`
5154 { echo "$as_me:$LINENO: result: $ac_res" >&5
5155echo "${ECHO_T}$ac_res" >&6; }
d9898ee8 5156else
5157 # Is the header compilable?
64ff59ba 5158{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5159echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
d9898ee8 5160cat >conftest.$ac_ext <<_ACEOF
5161/* confdefs.h. */
5162_ACEOF
5163cat confdefs.h >>conftest.$ac_ext
5164cat >>conftest.$ac_ext <<_ACEOF
5165/* end confdefs.h. */
5166$ac_includes_default
5167#include <$ac_header>
5168_ACEOF
5169rm -f conftest.$ac_objext
64ff59ba 5170if { (ac_try="$ac_compile"
5171case "(($ac_try" in
5172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5173 *) ac_try_echo=$ac_try;;
5174esac
5175eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5176 (eval "$ac_compile") 2>conftest.er1
d9898ee8 5177 ac_status=$?
5178 grep -v '^ *+' conftest.er1 >conftest.err
5179 rm -f conftest.er1
5180 cat conftest.err >&5
5181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 5182 (exit $ac_status); } && {
5183 test -z "$ac_c_werror_flag" ||
5184 test ! -s conftest.err
5185 } && test -s conftest.$ac_objext; then
d9898ee8 5186 ac_header_compiler=yes
5187else
5188 echo "$as_me: failed program was:" >&5
5189sed 's/^/| /' conftest.$ac_ext >&5
5190
64ff59ba 5191 ac_header_compiler=no
d9898ee8 5192fi
64ff59ba 5193
5194rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5195{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5196echo "${ECHO_T}$ac_header_compiler" >&6; }
d9898ee8 5197
5198# Is the header present?
64ff59ba 5199{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5200echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
d9898ee8 5201cat >conftest.$ac_ext <<_ACEOF
5202/* confdefs.h. */
5203_ACEOF
5204cat confdefs.h >>conftest.$ac_ext
5205cat >>conftest.$ac_ext <<_ACEOF
5206/* end confdefs.h. */
5207#include <$ac_header>
5208_ACEOF
64ff59ba 5209if { (ac_try="$ac_cpp conftest.$ac_ext"
5210case "(($ac_try" in
5211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5212 *) ac_try_echo=$ac_try;;
5213esac
5214eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5215 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 5216 ac_status=$?
5217 grep -v '^ *+' conftest.er1 >conftest.err
5218 rm -f conftest.er1
5219 cat conftest.err >&5
5220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 5221 (exit $ac_status); } >/dev/null && {
5222 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5223 test ! -s conftest.err
5224 }; then
d9898ee8 5225 ac_header_preproc=yes
5226else
5227 echo "$as_me: failed program was:" >&5
5228sed 's/^/| /' conftest.$ac_ext >&5
5229
5230 ac_header_preproc=no
5231fi
64ff59ba 5232
d9898ee8 5233rm -f conftest.err conftest.$ac_ext
64ff59ba 5234{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5235echo "${ECHO_T}$ac_header_preproc" >&6; }
d9898ee8 5236
5237# So? What about this header?
5238case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5239 yes:no: )
5240 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5241echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5242 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5243echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5244 ac_header_preproc=yes
5245 ;;
5246 no:yes:* )
5247 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5248echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5249 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5250echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5251 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5252echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5253 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5254echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5255 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5256echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5257 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5258echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
64ff59ba 5259 ( cat <<\_ASBOX
d9898ee8 5260## -------------------------------------------------- ##
5261## Report this to courier-users@lists.sourceforge.net ##
5262## -------------------------------------------------- ##
5263_ASBOX
64ff59ba 5264 ) | sed "s/^/$as_me: WARNING: /" >&2
d9898ee8 5265 ;;
5266esac
64ff59ba 5267{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5268echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5269if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 5270 echo $ECHO_N "(cached) $ECHO_C" >&6
5271else
5272 eval "$as_ac_Header=\$ac_header_preproc"
5273fi
64ff59ba 5274ac_res=`eval echo '${'$as_ac_Header'}'`
5275 { echo "$as_me:$LINENO: result: $ac_res" >&5
5276echo "${ECHO_T}$ac_res" >&6; }
d9898ee8 5277
5278fi
5279if test `eval echo '${'$as_ac_Header'}'` = yes; then
5280 cat >>confdefs.h <<_ACEOF
5281#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5282_ACEOF
5283
5284fi
5285
5286done
5287
64ff59ba 5288ac_ext=cpp
d9898ee8 5289ac_cpp='$CXXCPP $CPPFLAGS'
5290ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5291ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5292ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
64ff59ba 5293if test -z "$CXX"; then
5294 if test -n "$CCC"; then
5295 CXX=$CCC
5296 else
5297 if test -n "$ac_tool_prefix"; then
5298 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
d9898ee8 5299 do
5300 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5301set dummy $ac_tool_prefix$ac_prog; ac_word=$2
64ff59ba 5302{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5303echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 5304if test "${ac_cv_prog_CXX+set}" = set; then
5305 echo $ECHO_N "(cached) $ECHO_C" >&6
5306else
5307 if test -n "$CXX"; then
5308 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5309else
5310as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5311for as_dir in $PATH
5312do
5313 IFS=$as_save_IFS
5314 test -z "$as_dir" && as_dir=.
5315 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 5316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 5317 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5318 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5319 break 2
5320 fi
5321done
5322done
64ff59ba 5323IFS=$as_save_IFS
d9898ee8 5324
5325fi
5326fi
5327CXX=$ac_cv_prog_CXX
5328if test -n "$CXX"; then
64ff59ba 5329 { echo "$as_me:$LINENO: result: $CXX" >&5
5330echo "${ECHO_T}$CXX" >&6; }
d9898ee8 5331else
64ff59ba 5332 { echo "$as_me:$LINENO: result: no" >&5
5333echo "${ECHO_T}no" >&6; }
d9898ee8 5334fi
5335
64ff59ba 5336
d9898ee8 5337 test -n "$CXX" && break
5338 done
5339fi
5340if test -z "$CXX"; then
5341 ac_ct_CXX=$CXX
64ff59ba 5342 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
d9898ee8 5343do
5344 # Extract the first word of "$ac_prog", so it can be a program name with args.
5345set dummy $ac_prog; ac_word=$2
64ff59ba 5346{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5347echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 5348if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5349 echo $ECHO_N "(cached) $ECHO_C" >&6
5350else
5351 if test -n "$ac_ct_CXX"; then
5352 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5353else
5354as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5355for as_dir in $PATH
5356do
5357 IFS=$as_save_IFS
5358 test -z "$as_dir" && as_dir=.
5359 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 5360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 5361 ac_cv_prog_ac_ct_CXX="$ac_prog"
5362 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5363 break 2
5364 fi
5365done
5366done
64ff59ba 5367IFS=$as_save_IFS
d9898ee8 5368
5369fi
5370fi
5371ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5372if test -n "$ac_ct_CXX"; then
64ff59ba 5373 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5374echo "${ECHO_T}$ac_ct_CXX" >&6; }
d9898ee8 5375else
64ff59ba 5376 { echo "$as_me:$LINENO: result: no" >&5
5377echo "${ECHO_T}no" >&6; }
d9898ee8 5378fi
5379
64ff59ba 5380
d9898ee8 5381 test -n "$ac_ct_CXX" && break
5382done
d9898ee8 5383
64ff59ba 5384 if test "x$ac_ct_CXX" = x; then
5385 CXX="g++"
5386 else
5387 case $cross_compiling:$ac_tool_warned in
5388yes:)
5389{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5390whose name does not start with the host triplet. If you think this
5391configuration is useful to you, please write to autoconf@gnu.org." >&5
5392echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5393whose name does not start with the host triplet. If you think this
5394configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5395ac_tool_warned=yes ;;
5396esac
5397 CXX=$ac_ct_CXX
5398 fi
d9898ee8 5399fi
5400
64ff59ba 5401 fi
5402fi
d9898ee8 5403# Provide some information about the compiler.
64ff59ba 5404echo "$as_me:$LINENO: checking for C++ compiler version" >&5
d9898ee8 5405ac_compiler=`set X $ac_compile; echo $2`
64ff59ba 5406{ (ac_try="$ac_compiler --version >&5"
5407case "(($ac_try" in
5408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5409 *) ac_try_echo=$ac_try;;
5410esac
5411eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5412 (eval "$ac_compiler --version >&5") 2>&5
d9898ee8 5413 ac_status=$?
5414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5415 (exit $ac_status); }
64ff59ba 5416{ (ac_try="$ac_compiler -v >&5"
5417case "(($ac_try" in
5418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5419 *) ac_try_echo=$ac_try;;
5420esac
5421eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5422 (eval "$ac_compiler -v >&5") 2>&5
d9898ee8 5423 ac_status=$?
5424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5425 (exit $ac_status); }
64ff59ba 5426{ (ac_try="$ac_compiler -V >&5"
5427case "(($ac_try" in
5428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5429 *) ac_try_echo=$ac_try;;
5430esac
5431eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5432 (eval "$ac_compiler -V >&5") 2>&5
d9898ee8 5433 ac_status=$?
5434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5435 (exit $ac_status); }
5436
64ff59ba 5437{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5438echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
d9898ee8 5439if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5440 echo $ECHO_N "(cached) $ECHO_C" >&6
5441else
5442 cat >conftest.$ac_ext <<_ACEOF
5443/* confdefs.h. */
5444_ACEOF
5445cat confdefs.h >>conftest.$ac_ext
5446cat >>conftest.$ac_ext <<_ACEOF
5447/* end confdefs.h. */
5448
5449int
5450main ()
5451{
5452#ifndef __GNUC__
5453 choke me
5454#endif
5455
5456 ;
5457 return 0;
5458}
5459_ACEOF
5460rm -f conftest.$ac_objext
64ff59ba 5461if { (ac_try="$ac_compile"
5462case "(($ac_try" in
5463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5464 *) ac_try_echo=$ac_try;;
5465esac
5466eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5467 (eval "$ac_compile") 2>conftest.er1
d9898ee8 5468 ac_status=$?
5469 grep -v '^ *+' conftest.er1 >conftest.err
5470 rm -f conftest.er1
5471 cat conftest.err >&5
5472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 5473 (exit $ac_status); } && {
5474 test -z "$ac_cxx_werror_flag" ||
5475 test ! -s conftest.err
5476 } && test -s conftest.$ac_objext; then
d9898ee8 5477 ac_compiler_gnu=yes
5478else
5479 echo "$as_me: failed program was:" >&5
5480sed 's/^/| /' conftest.$ac_ext >&5
5481
64ff59ba 5482 ac_compiler_gnu=no
d9898ee8 5483fi
64ff59ba 5484
5485rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 5486ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5487
5488fi
64ff59ba 5489{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5490echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
d9898ee8 5491GXX=`test $ac_compiler_gnu = yes && echo yes`
5492ac_test_CXXFLAGS=${CXXFLAGS+set}
5493ac_save_CXXFLAGS=$CXXFLAGS
64ff59ba 5494{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5495echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
d9898ee8 5496if test "${ac_cv_prog_cxx_g+set}" = set; then
5497 echo $ECHO_N "(cached) $ECHO_C" >&6
5498else
64ff59ba 5499 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5500 ac_cxx_werror_flag=yes
5501 ac_cv_prog_cxx_g=no
5502 CXXFLAGS="-g"
5503 cat >conftest.$ac_ext <<_ACEOF
d9898ee8 5504/* confdefs.h. */
5505_ACEOF
5506cat confdefs.h >>conftest.$ac_ext
5507cat >>conftest.$ac_ext <<_ACEOF
5508/* end confdefs.h. */
5509
5510int
5511main ()
5512{
5513
5514 ;
5515 return 0;
5516}
5517_ACEOF
5518rm -f conftest.$ac_objext
64ff59ba 5519if { (ac_try="$ac_compile"
5520case "(($ac_try" in
5521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5522 *) ac_try_echo=$ac_try;;
5523esac
5524eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5525 (eval "$ac_compile") 2>conftest.er1
d9898ee8 5526 ac_status=$?
5527 grep -v '^ *+' conftest.er1 >conftest.err
5528 rm -f conftest.er1
5529 cat conftest.err >&5
5530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 5531 (exit $ac_status); } && {
5532 test -z "$ac_cxx_werror_flag" ||
5533 test ! -s conftest.err
5534 } && test -s conftest.$ac_objext; then
d9898ee8 5535 ac_cv_prog_cxx_g=yes
5536else
5537 echo "$as_me: failed program was:" >&5
5538sed 's/^/| /' conftest.$ac_ext >&5
5539
64ff59ba 5540 CXXFLAGS=""
5541 cat >conftest.$ac_ext <<_ACEOF
d9898ee8 5542/* confdefs.h. */
5543_ACEOF
5544cat confdefs.h >>conftest.$ac_ext
5545cat >>conftest.$ac_ext <<_ACEOF
5546/* end confdefs.h. */
64ff59ba 5547
d9898ee8 5548int
5549main ()
5550{
64ff59ba 5551
d9898ee8 5552 ;
5553 return 0;
5554}
5555_ACEOF
5556rm -f conftest.$ac_objext
64ff59ba 5557if { (ac_try="$ac_compile"
5558case "(($ac_try" in
5559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5560 *) ac_try_echo=$ac_try;;
5561esac
5562eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5563 (eval "$ac_compile") 2>conftest.er1
d9898ee8 5564 ac_status=$?
5565 grep -v '^ *+' conftest.er1 >conftest.err
5566 rm -f conftest.er1
5567 cat conftest.err >&5
5568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 5569 (exit $ac_status); } && {
5570 test -z "$ac_cxx_werror_flag" ||
5571 test ! -s conftest.err
5572 } && test -s conftest.$ac_objext; then
d9898ee8 5573 :
5574else
5575 echo "$as_me: failed program was:" >&5
5576sed 's/^/| /' conftest.$ac_ext >&5
5577
64ff59ba 5578 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5579 CXXFLAGS="-g"
5580 cat >conftest.$ac_ext <<_ACEOF
d9898ee8 5581/* confdefs.h. */
5582_ACEOF
5583cat confdefs.h >>conftest.$ac_ext
5584cat >>conftest.$ac_ext <<_ACEOF
5585/* end confdefs.h. */
64ff59ba 5586
d9898ee8 5587int
5588main ()
5589{
64ff59ba 5590
d9898ee8 5591 ;
5592 return 0;
5593}
5594_ACEOF
5595rm -f conftest.$ac_objext
64ff59ba 5596if { (ac_try="$ac_compile"
5597case "(($ac_try" in
5598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5599 *) ac_try_echo=$ac_try;;
5600esac
5601eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5602 (eval "$ac_compile") 2>conftest.er1
d9898ee8 5603 ac_status=$?
5604 grep -v '^ *+' conftest.er1 >conftest.err
5605 rm -f conftest.er1
5606 cat conftest.err >&5
5607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 5608 (exit $ac_status); } && {
5609 test -z "$ac_cxx_werror_flag" ||
5610 test ! -s conftest.err
5611 } && test -s conftest.$ac_objext; then
5612 ac_cv_prog_cxx_g=yes
d9898ee8 5613else
5614 echo "$as_me: failed program was:" >&5
5615sed 's/^/| /' conftest.$ac_ext >&5
5616
64ff59ba 5617
d9898ee8 5618fi
64ff59ba 5619
5620rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 5621fi
5622
64ff59ba 5623rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5624fi
5625
5626rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5627 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5628fi
5629{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5630echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5631if test "$ac_test_CXXFLAGS" = set; then
5632 CXXFLAGS=$ac_save_CXXFLAGS
5633elif test $ac_cv_prog_cxx_g = yes; then
5634 if test "$GXX" = yes; then
5635 CXXFLAGS="-g -O2"
5636 else
5637 CXXFLAGS="-g"
5638 fi
5639else
5640 if test "$GXX" = yes; then
5641 CXXFLAGS="-O2"
5642 else
5643 CXXFLAGS=
5644 fi
5645fi
5646ac_ext=cpp
d9898ee8 5647ac_cpp='$CXXCPP $CPPFLAGS'
5648ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5649ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5650ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5651
5652depcc="$CXX" am_compiler_list=
5653
64ff59ba 5654{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5655echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
d9898ee8 5656if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5657 echo $ECHO_N "(cached) $ECHO_C" >&6
5658else
5659 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5660 # We make a subdir and do the tests there. Otherwise we can end up
5661 # making bogus files that we don't know about and never remove. For
5662 # instance it was reported that on HP-UX the gcc test will end up
5663 # making a dummy file named `D' -- because `-MD' means `put the output
5664 # in D'.
5665 mkdir conftest.dir
5666 # Copy depcomp to subdir because otherwise we won't find it if we're
5667 # using a relative directory.
5668 cp "$am_depcomp" conftest.dir
5669 cd conftest.dir
5670 # We will build objects and dependencies in a subdirectory because
5671 # it helps to detect inapplicable dependency modes. For instance
5672 # both Tru64's cc and ICC support -MD to output dependencies as a
5673 # side effect of compilation, but ICC will put the dependencies in
5674 # the current directory while Tru64 will put them in the object
5675 # directory.
5676 mkdir sub
5677
5678 am_cv_CXX_dependencies_compiler_type=none
5679 if test "$am_compiler_list" = ""; then
5680 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5681 fi
5682 for depmode in $am_compiler_list; do
5683 # Setup a source with many dependencies, because some compilers
5684 # like to wrap large dependency lists on column 80 (with \), and
5685 # we should not choose a depcomp mode which is confused by this.
5686 #
5687 # We need to recreate these files for each test, as the compiler may
5688 # overwrite some of them when testing with obscure command lines.
5689 # This happens at least with the AIX C compiler.
5690 : > sub/conftest.c
5691 for i in 1 2 3 4 5 6; do
5692 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5693 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5694 # Solaris 8's {/usr,}/bin/sh.
5695 touch sub/conftst$i.h
5696 done
5697 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5698
5699 case $depmode in
5700 nosideeffect)
5701 # after this tag, mechanisms are not by side-effect, so they'll
5702 # only be used when explicitly requested
5703 if test "x$enable_dependency_tracking" = xyes; then
5704 continue
5705 else
5706 break
5707 fi
5708 ;;
5709 none) break ;;
5710 esac
5711 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5712 # mode. It turns out that the SunPro C++ compiler does not properly
5713 # handle `-M -o', and we need to detect this.
5714 if depmode=$depmode \
5715 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5716 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5717 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5718 >/dev/null 2>conftest.err &&
64ff59ba 5719 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
d9898ee8 5720 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5721 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5722 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5723 # icc doesn't choke on unknown options, it will just issue warnings
5724 # or remarks (even with -Werror). So we grep stderr for any message
5725 # that says an option was ignored or not supported.
5726 # When given -MP, icc 7.0 and 7.1 complain thusly:
5727 # icc: Command line warning: ignoring option '-M'; no argument required
5728 # The diagnosis changed in icc 8.0:
5729 # icc: Command line remark: option '-MP' not supported
5730 if (grep 'ignoring option' conftest.err ||
5731 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5732 am_cv_CXX_dependencies_compiler_type=$depmode
5733 break
5734 fi
5735 fi
5736 done
5737
5738 cd ..
5739 rm -rf conftest.dir
5740else
5741 am_cv_CXX_dependencies_compiler_type=none
5742fi
5743
5744fi
64ff59ba 5745{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5746echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
d9898ee8 5747CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5748
64ff59ba 5749 if
d9898ee8 5750 test "x$enable_dependency_tracking" != xno \
5751 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5752 am__fastdepCXX_TRUE=
5753 am__fastdepCXX_FALSE='#'
5754else
5755 am__fastdepCXX_TRUE='#'
5756 am__fastdepCXX_FALSE=
5757fi
5758
5759
5760
5761
5762if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5763 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5764 (test "X$CXX" != "Xg++"))) ; then
64ff59ba 5765 ac_ext=cpp
d9898ee8 5766ac_cpp='$CXXCPP $CPPFLAGS'
5767ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5768ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5769ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
64ff59ba 5770{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5771echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
d9898ee8 5772if test -z "$CXXCPP"; then
5773 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5774 echo $ECHO_N "(cached) $ECHO_C" >&6
5775else
5776 # Double quotes because CXXCPP needs to be expanded
5777 for CXXCPP in "$CXX -E" "/lib/cpp"
5778 do
5779 ac_preproc_ok=false
5780for ac_cxx_preproc_warn_flag in '' yes
5781do
5782 # Use a header file that comes with gcc, so configuring glibc
5783 # with a fresh cross-compiler works.
5784 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5785 # <limits.h> exists even on freestanding compilers.
5786 # On the NeXT, cc -E runs the code through the compiler's parser,
5787 # not just through cpp. "Syntax error" is here to catch this case.
5788 cat >conftest.$ac_ext <<_ACEOF
5789/* confdefs.h. */
5790_ACEOF
5791cat confdefs.h >>conftest.$ac_ext
5792cat >>conftest.$ac_ext <<_ACEOF
5793/* end confdefs.h. */
5794#ifdef __STDC__
5795# include <limits.h>
5796#else
5797# include <assert.h>
5798#endif
5799 Syntax error
5800_ACEOF
64ff59ba 5801if { (ac_try="$ac_cpp conftest.$ac_ext"
5802case "(($ac_try" in
5803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5804 *) ac_try_echo=$ac_try;;
5805esac
5806eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5807 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 5808 ac_status=$?
5809 grep -v '^ *+' conftest.er1 >conftest.err
5810 rm -f conftest.er1
5811 cat conftest.err >&5
5812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 5813 (exit $ac_status); } >/dev/null && {
5814 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5815 test ! -s conftest.err
5816 }; then
d9898ee8 5817 :
5818else
5819 echo "$as_me: failed program was:" >&5
5820sed 's/^/| /' conftest.$ac_ext >&5
5821
5822 # Broken: fails on valid input.
5823continue
5824fi
64ff59ba 5825
d9898ee8 5826rm -f conftest.err conftest.$ac_ext
5827
64ff59ba 5828 # OK, works on sane cases. Now check whether nonexistent headers
d9898ee8 5829 # can be detected and how.
5830 cat >conftest.$ac_ext <<_ACEOF
5831/* confdefs.h. */
5832_ACEOF
5833cat confdefs.h >>conftest.$ac_ext
5834cat >>conftest.$ac_ext <<_ACEOF
5835/* end confdefs.h. */
5836#include <ac_nonexistent.h>
5837_ACEOF
64ff59ba 5838if { (ac_try="$ac_cpp conftest.$ac_ext"
5839case "(($ac_try" in
5840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5841 *) ac_try_echo=$ac_try;;
5842esac
5843eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5844 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 5845 ac_status=$?
5846 grep -v '^ *+' conftest.er1 >conftest.err
5847 rm -f conftest.er1
5848 cat conftest.err >&5
5849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 5850 (exit $ac_status); } >/dev/null && {
5851 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5852 test ! -s conftest.err
5853 }; then
d9898ee8 5854 # Broken: success on invalid input.
5855continue
5856else
5857 echo "$as_me: failed program was:" >&5
5858sed 's/^/| /' conftest.$ac_ext >&5
5859
5860 # Passes both tests.
5861ac_preproc_ok=:
5862break
5863fi
64ff59ba 5864
d9898ee8 5865rm -f conftest.err conftest.$ac_ext
5866
5867done
5868# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5869rm -f conftest.err conftest.$ac_ext
5870if $ac_preproc_ok; then
5871 break
5872fi
5873
5874 done
5875 ac_cv_prog_CXXCPP=$CXXCPP
5876
5877fi
5878 CXXCPP=$ac_cv_prog_CXXCPP
5879else
5880 ac_cv_prog_CXXCPP=$CXXCPP
5881fi
64ff59ba 5882{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
5883echo "${ECHO_T}$CXXCPP" >&6; }
d9898ee8 5884ac_preproc_ok=false
5885for ac_cxx_preproc_warn_flag in '' yes
5886do
5887 # Use a header file that comes with gcc, so configuring glibc
5888 # with a fresh cross-compiler works.
5889 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5890 # <limits.h> exists even on freestanding compilers.
5891 # On the NeXT, cc -E runs the code through the compiler's parser,
5892 # not just through cpp. "Syntax error" is here to catch this case.
5893 cat >conftest.$ac_ext <<_ACEOF
5894/* confdefs.h. */
5895_ACEOF
5896cat confdefs.h >>conftest.$ac_ext
5897cat >>conftest.$ac_ext <<_ACEOF
5898/* end confdefs.h. */
5899#ifdef __STDC__
5900# include <limits.h>
5901#else
5902# include <assert.h>
5903#endif
5904 Syntax error
5905_ACEOF
64ff59ba 5906if { (ac_try="$ac_cpp conftest.$ac_ext"
5907case "(($ac_try" in
5908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5909 *) ac_try_echo=$ac_try;;
5910esac
5911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5912 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 5913 ac_status=$?
5914 grep -v '^ *+' conftest.er1 >conftest.err
5915 rm -f conftest.er1
5916 cat conftest.err >&5
5917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 5918 (exit $ac_status); } >/dev/null && {
5919 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5920 test ! -s conftest.err
5921 }; then
d9898ee8 5922 :
5923else
5924 echo "$as_me: failed program was:" >&5
5925sed 's/^/| /' conftest.$ac_ext >&5
5926
5927 # Broken: fails on valid input.
5928continue
5929fi
64ff59ba 5930
d9898ee8 5931rm -f conftest.err conftest.$ac_ext
5932
64ff59ba 5933 # OK, works on sane cases. Now check whether nonexistent headers
d9898ee8 5934 # can be detected and how.
5935 cat >conftest.$ac_ext <<_ACEOF
5936/* confdefs.h. */
5937_ACEOF
5938cat confdefs.h >>conftest.$ac_ext
5939cat >>conftest.$ac_ext <<_ACEOF
5940/* end confdefs.h. */
5941#include <ac_nonexistent.h>
5942_ACEOF
64ff59ba 5943if { (ac_try="$ac_cpp conftest.$ac_ext"
5944case "(($ac_try" in
5945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5946 *) ac_try_echo=$ac_try;;
5947esac
5948eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5949 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 5950 ac_status=$?
5951 grep -v '^ *+' conftest.er1 >conftest.err
5952 rm -f conftest.er1
5953 cat conftest.err >&5
5954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 5955 (exit $ac_status); } >/dev/null && {
5956 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5957 test ! -s conftest.err
5958 }; then
d9898ee8 5959 # Broken: success on invalid input.
5960continue
5961else
5962 echo "$as_me: failed program was:" >&5
5963sed 's/^/| /' conftest.$ac_ext >&5
5964
5965 # Passes both tests.
5966ac_preproc_ok=:
5967break
5968fi
64ff59ba 5969
d9898ee8 5970rm -f conftest.err conftest.$ac_ext
5971
5972done
5973# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5974rm -f conftest.err conftest.$ac_ext
5975if $ac_preproc_ok; then
5976 :
5977else
5978 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5979See \`config.log' for more details." >&5
5980echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5981See \`config.log' for more details." >&2;}
5982 { (exit 1); exit 1; }; }
5983fi
5984
64ff59ba 5985ac_ext=cpp
d9898ee8 5986ac_cpp='$CXXCPP $CPPFLAGS'
5987ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5988ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5989ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5990
5991fi
5992
5993
5994ac_ext=f
5995ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5996ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5997ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5998if test -n "$ac_tool_prefix"; then
64ff59ba 5999 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 6000 do
6001 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6002set dummy $ac_tool_prefix$ac_prog; ac_word=$2
64ff59ba 6003{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6004echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 6005if test "${ac_cv_prog_F77+set}" = set; then
6006 echo $ECHO_N "(cached) $ECHO_C" >&6
6007else
6008 if test -n "$F77"; then
6009 ac_cv_prog_F77="$F77" # Let the user override the test.
6010else
6011as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6012for as_dir in $PATH
6013do
6014 IFS=$as_save_IFS
6015 test -z "$as_dir" && as_dir=.
6016 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 6017 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 6018 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6019 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6020 break 2
6021 fi
6022done
6023done
64ff59ba 6024IFS=$as_save_IFS
d9898ee8 6025
6026fi
6027fi
6028F77=$ac_cv_prog_F77
6029if test -n "$F77"; then
64ff59ba 6030 { echo "$as_me:$LINENO: result: $F77" >&5
6031echo "${ECHO_T}$F77" >&6; }
d9898ee8 6032else
64ff59ba 6033 { echo "$as_me:$LINENO: result: no" >&5
6034echo "${ECHO_T}no" >&6; }
d9898ee8 6035fi
6036
64ff59ba 6037
d9898ee8 6038 test -n "$F77" && break
6039 done
6040fi
6041if test -z "$F77"; then
6042 ac_ct_F77=$F77
64ff59ba 6043 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 6044do
6045 # Extract the first word of "$ac_prog", so it can be a program name with args.
6046set dummy $ac_prog; ac_word=$2
64ff59ba 6047{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6048echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 6049if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6050 echo $ECHO_N "(cached) $ECHO_C" >&6
6051else
6052 if test -n "$ac_ct_F77"; then
6053 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6054else
6055as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6056for as_dir in $PATH
6057do
6058 IFS=$as_save_IFS
6059 test -z "$as_dir" && as_dir=.
6060 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 6061 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 6062 ac_cv_prog_ac_ct_F77="$ac_prog"
6063 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6064 break 2
6065 fi
6066done
6067done
64ff59ba 6068IFS=$as_save_IFS
d9898ee8 6069
6070fi
6071fi
6072ac_ct_F77=$ac_cv_prog_ac_ct_F77
6073if test -n "$ac_ct_F77"; then
64ff59ba 6074 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6075echo "${ECHO_T}$ac_ct_F77" >&6; }
d9898ee8 6076else
64ff59ba 6077 { echo "$as_me:$LINENO: result: no" >&5
6078echo "${ECHO_T}no" >&6; }
d9898ee8 6079fi
6080
64ff59ba 6081
d9898ee8 6082 test -n "$ac_ct_F77" && break
6083done
6084
64ff59ba 6085 if test "x$ac_ct_F77" = x; then
6086 F77=""
6087 else
6088 case $cross_compiling:$ac_tool_warned in
6089yes:)
6090{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6091whose name does not start with the host triplet. If you think this
6092configuration is useful to you, please write to autoconf@gnu.org." >&5
6093echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6094whose name does not start with the host triplet. If you think this
6095configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6096ac_tool_warned=yes ;;
6097esac
6098 F77=$ac_ct_F77
6099 fi
d9898ee8 6100fi
6101
6102
6103# Provide some information about the compiler.
64ff59ba 6104echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
d9898ee8 6105ac_compiler=`set X $ac_compile; echo $2`
64ff59ba 6106{ (ac_try="$ac_compiler --version >&5"
6107case "(($ac_try" in
6108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6109 *) ac_try_echo=$ac_try;;
6110esac
6111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6112 (eval "$ac_compiler --version >&5") 2>&5
d9898ee8 6113 ac_status=$?
6114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6115 (exit $ac_status); }
64ff59ba 6116{ (ac_try="$ac_compiler -v >&5"
6117case "(($ac_try" in
6118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6119 *) ac_try_echo=$ac_try;;
6120esac
6121eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6122 (eval "$ac_compiler -v >&5") 2>&5
d9898ee8 6123 ac_status=$?
6124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6125 (exit $ac_status); }
64ff59ba 6126{ (ac_try="$ac_compiler -V >&5"
6127case "(($ac_try" in
6128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6129 *) ac_try_echo=$ac_try;;
6130esac
6131eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6132 (eval "$ac_compiler -V >&5") 2>&5
d9898ee8 6133 ac_status=$?
6134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6135 (exit $ac_status); }
6136rm -f a.out
6137
6138# If we don't use `.F' as extension, the preprocessor is not run on the
6139# input file. (Note that this only needs to work for GNU compilers.)
6140ac_save_ext=$ac_ext
6141ac_ext=F
64ff59ba 6142{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6143echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
d9898ee8 6144if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6145 echo $ECHO_N "(cached) $ECHO_C" >&6
6146else
6147 cat >conftest.$ac_ext <<_ACEOF
6148 program main
6149#ifndef __GNUC__
6150 choke me
6151#endif
6152
6153 end
6154_ACEOF
6155rm -f conftest.$ac_objext
64ff59ba 6156if { (ac_try="$ac_compile"
6157case "(($ac_try" in
6158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6159 *) ac_try_echo=$ac_try;;
6160esac
6161eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6162 (eval "$ac_compile") 2>conftest.er1
d9898ee8 6163 ac_status=$?
6164 grep -v '^ *+' conftest.er1 >conftest.err
6165 rm -f conftest.er1
6166 cat conftest.err >&5
6167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 6168 (exit $ac_status); } && {
6169 test -z "$ac_f77_werror_flag" ||
6170 test ! -s conftest.err
6171 } && test -s conftest.$ac_objext; then
d9898ee8 6172 ac_compiler_gnu=yes
6173else
6174 echo "$as_me: failed program was:" >&5
6175sed 's/^/| /' conftest.$ac_ext >&5
6176
64ff59ba 6177 ac_compiler_gnu=no
d9898ee8 6178fi
64ff59ba 6179
6180rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 6181ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6182
6183fi
64ff59ba 6184{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6185echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
d9898ee8 6186ac_ext=$ac_save_ext
6187ac_test_FFLAGS=${FFLAGS+set}
6188ac_save_FFLAGS=$FFLAGS
6189FFLAGS=
64ff59ba 6190{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6191echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
d9898ee8 6192if test "${ac_cv_prog_f77_g+set}" = set; then
6193 echo $ECHO_N "(cached) $ECHO_C" >&6
6194else
6195 FFLAGS=-g
6196cat >conftest.$ac_ext <<_ACEOF
6197 program main
6198
6199 end
6200_ACEOF
6201rm -f conftest.$ac_objext
64ff59ba 6202if { (ac_try="$ac_compile"
6203case "(($ac_try" in
6204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6205 *) ac_try_echo=$ac_try;;
6206esac
6207eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6208 (eval "$ac_compile") 2>conftest.er1
d9898ee8 6209 ac_status=$?
6210 grep -v '^ *+' conftest.er1 >conftest.err
6211 rm -f conftest.er1
6212 cat conftest.err >&5
6213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 6214 (exit $ac_status); } && {
6215 test -z "$ac_f77_werror_flag" ||
6216 test ! -s conftest.err
6217 } && test -s conftest.$ac_objext; then
d9898ee8 6218 ac_cv_prog_f77_g=yes
6219else
6220 echo "$as_me: failed program was:" >&5
6221sed 's/^/| /' conftest.$ac_ext >&5
6222
64ff59ba 6223 ac_cv_prog_f77_g=no
d9898ee8 6224fi
64ff59ba 6225
6226rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 6227
6228fi
64ff59ba 6229{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6230echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
d9898ee8 6231if test "$ac_test_FFLAGS" = set; then
6232 FFLAGS=$ac_save_FFLAGS
6233elif test $ac_cv_prog_f77_g = yes; then
6234 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6235 FFLAGS="-g -O2"
6236 else
6237 FFLAGS="-g"
6238 fi
6239else
6240 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6241 FFLAGS="-O2"
6242 else
6243 FFLAGS=
6244 fi
6245fi
6246
6247G77=`test $ac_compiler_gnu = yes && echo yes`
6248ac_ext=c
6249ac_cpp='$CPP $CPPFLAGS'
6250ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6251ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6252ac_compiler_gnu=$ac_cv_c_compiler_gnu
6253
6254
6255
6256# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6257
6258# find the maximum length of command line arguments
64ff59ba 6259{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6260echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
d9898ee8 6261if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6262 echo $ECHO_N "(cached) $ECHO_C" >&6
6263else
6264 i=0
6265 teststring="ABCD"
6266
6267 case $build_os in
6268 msdosdjgpp*)
6269 # On DJGPP, this test can blow up pretty badly due to problems in libc
6270 # (any single argument exceeding 2000 bytes causes a buffer overrun
6271 # during glob expansion). Even if it were fixed, the result of this
6272 # check would be larger than it should be.
6273 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6274 ;;
6275
6276 gnu*)
6277 # Under GNU Hurd, this test is not required because there is
6278 # no limit to the length of command line arguments.
6279 # Libtool will interpret -1 as no limit whatsoever
6280 lt_cv_sys_max_cmd_len=-1;
6281 ;;
6282
6283 cygwin* | mingw*)
6284 # On Win9x/ME, this test blows up -- it succeeds, but takes
6285 # about 5 minutes as the teststring grows exponentially.
6286 # Worse, since 9x/ME are not pre-emptively multitasking,
6287 # you end up with a "frozen" computer, even though with patience
6288 # the test eventually succeeds (with a max line length of 256k).
6289 # Instead, let's just punt: use the minimum linelength reported by
6290 # all of the supported platforms: 8192 (on NT/2K/XP).
6291 lt_cv_sys_max_cmd_len=8192;
6292 ;;
6293
6294 amigaos*)
6295 # On AmigaOS with pdksh, this test takes hours, literally.
6296 # So we just punt and use a minimum line length of 8192.
6297 lt_cv_sys_max_cmd_len=8192;
6298 ;;
6299
6300 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6301 # This has been around since 386BSD, at least. Likely further.
6302 if test -x /sbin/sysctl; then
6303 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6304 elif test -x /usr/sbin/sysctl; then
6305 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6306 else
6307 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6308 fi
6309 # And add a safety zone
6310 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6311 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6312 ;;
6313
6314 interix*)
6315 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6316 lt_cv_sys_max_cmd_len=196608
6317 ;;
6318
6319 osf*)
6320 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6321 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6322 # nice to cause kernel panics so lets avoid the loop below.
6323 # First set a reasonable default.
6324 lt_cv_sys_max_cmd_len=16384
6325 #
6326 if test -x /sbin/sysconfig; then
6327 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6328 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6329 esac
6330 fi
6331 ;;
6332 sco3.2v5*)
6333 lt_cv_sys_max_cmd_len=102400
6334 ;;
6335 sysv5* | sco5v6* | sysv4.2uw2*)
6336 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6337 if test -n "$kargmax"; then
6338 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6339 else
6340 lt_cv_sys_max_cmd_len=32768
6341 fi
6342 ;;
6343 *)
6344 # If test is not a shell built-in, we'll probably end up computing a
6345 # maximum length that is only half of the actual maximum length, but
6346 # we can't tell.
6347 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6348 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6349 = "XX$teststring") >/dev/null 2>&1 &&
6350 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6351 lt_cv_sys_max_cmd_len=$new_result &&
6352 test $i != 17 # 1/2 MB should be enough
6353 do
6354 i=`expr $i + 1`
6355 teststring=$teststring$teststring
6356 done
6357 teststring=
6358 # Add a significant safety factor because C++ compilers can tack on massive
6359 # amounts of additional arguments before passing them to the linker.
6360 # It appears as though 1/2 is a usable value.
6361 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6362 ;;
6363 esac
6364
6365fi
6366
6367if test -n $lt_cv_sys_max_cmd_len ; then
64ff59ba 6368 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6369echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
d9898ee8 6370else
64ff59ba 6371 { echo "$as_me:$LINENO: result: none" >&5
6372echo "${ECHO_T}none" >&6; }
d9898ee8 6373fi
6374
6375
6376
6377
6378# Check for command to grab the raw symbol name followed by C symbol from nm.
64ff59ba 6379{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6380echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
d9898ee8 6381if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6382 echo $ECHO_N "(cached) $ECHO_C" >&6
6383else
6384
6385# These are sane defaults that work on at least a few old systems.
6386# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6387
6388# Character class describing NM global symbol codes.
6389symcode='[BCDEGRST]'
6390
6391# Regexp to match symbols that can be accessed directly from C.
6392sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6393
6394# Transform an extracted symbol line into a proper C declaration
6395lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6396
6397# Transform an extracted symbol line into symbol name and symbol address
6398lt_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'"
6399
6400# Define system-specific variables.
6401case $host_os in
6402aix*)
6403 symcode='[BCDT]'
6404 ;;
6405cygwin* | mingw* | pw32*)
6406 symcode='[ABCDGISTW]'
6407 ;;
6408hpux*) # Its linker distinguishes data from code symbols
6409 if test "$host_cpu" = ia64; then
6410 symcode='[ABCDEGRST]'
6411 fi
6412 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6413 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'"
6414 ;;
6415linux*)
6416 if test "$host_cpu" = ia64; then
6417 symcode='[ABCDGIRSTW]'
6418 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6419 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'"
6420 fi
6421 ;;
6422irix* | nonstopux*)
6423 symcode='[BCDEGRST]'
6424 ;;
6425osf*)
6426 symcode='[BCDEGQRST]'
6427 ;;
6428solaris*)
6429 symcode='[BDRT]'
6430 ;;
6431sco3.2v5*)
6432 symcode='[DT]'
6433 ;;
6434sysv4.2uw2*)
6435 symcode='[DT]'
6436 ;;
6437sysv5* | sco5v6* | unixware* | OpenUNIX*)
6438 symcode='[ABDT]'
6439 ;;
6440sysv4)
6441 symcode='[DFNSTU]'
6442 ;;
6443esac
6444
6445# Handle CRLF in mingw tool chain
6446opt_cr=
6447case $build_os in
6448mingw*)
6449 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6450 ;;
6451esac
6452
6453# If we're using GNU nm, then use its standard symbol codes.
6454case `$NM -V 2>&1` in
6455*GNU* | *'with BFD'*)
6456 symcode='[ABCDGIRSTW]' ;;
6457esac
6458
6459# Try without a prefix undercore, then with it.
6460for ac_symprfx in "" "_"; do
6461
6462 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6463 symxfrm="\\1 $ac_symprfx\\2 \\2"
6464
6465 # Write the raw and C identifiers.
6466 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6467
6468 # Check to see that the pipe works correctly.
6469 pipe_works=no
6470
6471 rm -f conftest*
6472 cat > conftest.$ac_ext <<EOF
6473#ifdef __cplusplus
6474extern "C" {
6475#endif
6476char nm_test_var;
6477void nm_test_func(){}
6478#ifdef __cplusplus
6479}
6480#endif
6481int main(){nm_test_var='a';nm_test_func();return(0);}
6482EOF
6483
6484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6485 (eval $ac_compile) 2>&5
6486 ac_status=$?
6487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6488 (exit $ac_status); }; then
6489 # Now try to grab the symbols.
6490 nlist=conftest.nm
6491 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6492 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6493 ac_status=$?
6494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6495 (exit $ac_status); } && test -s "$nlist"; then
6496 # Try sorting and uniquifying the output.
6497 if sort "$nlist" | uniq > "$nlist"T; then
6498 mv -f "$nlist"T "$nlist"
6499 else
6500 rm -f "$nlist"T
6501 fi
6502
6503 # Make sure that we snagged all the symbols we need.
6504 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6505 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6506 cat <<EOF > conftest.$ac_ext
6507#ifdef __cplusplus
6508extern "C" {
6509#endif
6510
6511EOF
6512 # Now generate the symbol file.
6513 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6514
6515 cat <<EOF >> conftest.$ac_ext
6516#if defined (__STDC__) && __STDC__
6517# define lt_ptr_t void *
6518#else
6519# define lt_ptr_t char *
6520# define const
6521#endif
6522
6523/* The mapping between symbol names and symbols. */
6524const struct {
6525 const char *name;
6526 lt_ptr_t address;
6527}
6528lt_preloaded_symbols[] =
6529{
6530EOF
6531 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6532 cat <<\EOF >> conftest.$ac_ext
6533 {0, (lt_ptr_t) 0}
6534};
6535
6536#ifdef __cplusplus
6537}
6538#endif
6539EOF
6540 # Now try linking the two files.
6541 mv conftest.$ac_objext conftstm.$ac_objext
6542 lt_save_LIBS="$LIBS"
6543 lt_save_CFLAGS="$CFLAGS"
6544 LIBS="conftstm.$ac_objext"
6545 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6547 (eval $ac_link) 2>&5
6548 ac_status=$?
6549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6550 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6551 pipe_works=yes
6552 fi
6553 LIBS="$lt_save_LIBS"
6554 CFLAGS="$lt_save_CFLAGS"
6555 else
6556 echo "cannot find nm_test_func in $nlist" >&5
6557 fi
6558 else
6559 echo "cannot find nm_test_var in $nlist" >&5
6560 fi
6561 else
6562 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6563 fi
6564 else
6565 echo "$progname: failed program was:" >&5
6566 cat conftest.$ac_ext >&5
6567 fi
6568 rm -f conftest* conftst*
6569
6570 # Do not use the global_symbol_pipe unless it works.
6571 if test "$pipe_works" = yes; then
6572 break
6573 else
6574 lt_cv_sys_global_symbol_pipe=
6575 fi
6576done
6577
6578fi
6579
6580if test -z "$lt_cv_sys_global_symbol_pipe"; then
6581 lt_cv_sys_global_symbol_to_cdecl=
6582fi
6583if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
64ff59ba 6584 { echo "$as_me:$LINENO: result: failed" >&5
6585echo "${ECHO_T}failed" >&6; }
d9898ee8 6586else
64ff59ba 6587 { echo "$as_me:$LINENO: result: ok" >&5
6588echo "${ECHO_T}ok" >&6; }
d9898ee8 6589fi
6590
64ff59ba 6591{ echo "$as_me:$LINENO: checking for objdir" >&5
6592echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
d9898ee8 6593if test "${lt_cv_objdir+set}" = set; then
6594 echo $ECHO_N "(cached) $ECHO_C" >&6
6595else
6596 rm -f .libs 2>/dev/null
6597mkdir .libs 2>/dev/null
6598if test -d .libs; then
6599 lt_cv_objdir=.libs
6600else
6601 # MS-DOS does not allow filenames that begin with a dot.
6602 lt_cv_objdir=_libs
6603fi
6604rmdir .libs 2>/dev/null
6605fi
64ff59ba 6606{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6607echo "${ECHO_T}$lt_cv_objdir" >&6; }
d9898ee8 6608objdir=$lt_cv_objdir
6609
6610
6611
6612
6613
6614case $host_os in
6615aix3*)
6616 # AIX sometimes has problems with the GCC collect2 program. For some
6617 # reason, if we set the COLLECT_NAMES environment variable, the problems
6618 # vanish in a puff of smoke.
6619 if test "X${COLLECT_NAMES+set}" != Xset; then
6620 COLLECT_NAMES=
6621 export COLLECT_NAMES
6622 fi
6623 ;;
6624esac
6625
6626# Sed substitution that helps us do robust quoting. It backslashifies
6627# metacharacters that are still active within double-quoted strings.
6628Xsed='sed -e 1s/^X//'
6629sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6630
6631# Same as above, but do not quote variable references.
6632double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6633
6634# Sed substitution to delay expansion of an escaped shell variable in a
6635# double_quote_subst'ed string.
6636delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6637
6638# Sed substitution to avoid accidental globbing in evaled expressions
6639no_glob_subst='s/\*/\\\*/g'
6640
6641# Constants:
6642rm="rm -f"
6643
6644# Global variables:
6645default_ofile=libtool
6646can_build_shared=yes
6647
6648# All known linkers require a `.a' archive for static linking (except MSVC,
6649# which needs '.lib').
6650libext=a
6651ltmain="$ac_aux_dir/ltmain.sh"
6652ofile="$default_ofile"
6653with_gnu_ld="$lt_cv_prog_gnu_ld"
6654
6655if test -n "$ac_tool_prefix"; then
6656 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6657set dummy ${ac_tool_prefix}ar; ac_word=$2
64ff59ba 6658{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6659echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 6660if test "${ac_cv_prog_AR+set}" = set; then
6661 echo $ECHO_N "(cached) $ECHO_C" >&6
6662else
6663 if test -n "$AR"; then
6664 ac_cv_prog_AR="$AR" # Let the user override the test.
6665else
6666as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6667for as_dir in $PATH
6668do
6669 IFS=$as_save_IFS
6670 test -z "$as_dir" && as_dir=.
6671 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 6672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 6673 ac_cv_prog_AR="${ac_tool_prefix}ar"
6674 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6675 break 2
6676 fi
6677done
6678done
64ff59ba 6679IFS=$as_save_IFS
d9898ee8 6680
6681fi
6682fi
6683AR=$ac_cv_prog_AR
6684if test -n "$AR"; then
64ff59ba 6685 { echo "$as_me:$LINENO: result: $AR" >&5
6686echo "${ECHO_T}$AR" >&6; }
d9898ee8 6687else
64ff59ba 6688 { echo "$as_me:$LINENO: result: no" >&5
6689echo "${ECHO_T}no" >&6; }
d9898ee8 6690fi
6691
64ff59ba 6692
d9898ee8 6693fi
6694if test -z "$ac_cv_prog_AR"; then
6695 ac_ct_AR=$AR
6696 # Extract the first word of "ar", so it can be a program name with args.
6697set dummy ar; ac_word=$2
64ff59ba 6698{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6699echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 6700if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6701 echo $ECHO_N "(cached) $ECHO_C" >&6
6702else
6703 if test -n "$ac_ct_AR"; then
6704 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6705else
6706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6707for as_dir in $PATH
6708do
6709 IFS=$as_save_IFS
6710 test -z "$as_dir" && as_dir=.
6711 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 6712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 6713 ac_cv_prog_ac_ct_AR="ar"
6714 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6715 break 2
6716 fi
6717done
6718done
64ff59ba 6719IFS=$as_save_IFS
d9898ee8 6720
d9898ee8 6721fi
6722fi
6723ac_ct_AR=$ac_cv_prog_ac_ct_AR
6724if test -n "$ac_ct_AR"; then
64ff59ba 6725 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6726echo "${ECHO_T}$ac_ct_AR" >&6; }
d9898ee8 6727else
64ff59ba 6728 { echo "$as_me:$LINENO: result: no" >&5
6729echo "${ECHO_T}no" >&6; }
d9898ee8 6730fi
6731
64ff59ba 6732 if test "x$ac_ct_AR" = x; then
6733 AR="false"
6734 else
6735 case $cross_compiling:$ac_tool_warned in
6736yes:)
6737{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6738whose name does not start with the host triplet. If you think this
6739configuration is useful to you, please write to autoconf@gnu.org." >&5
6740echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6741whose name does not start with the host triplet. If you think this
6742configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6743ac_tool_warned=yes ;;
6744esac
6745 AR=$ac_ct_AR
6746 fi
d9898ee8 6747else
6748 AR="$ac_cv_prog_AR"
6749fi
6750
6751if test -n "$ac_tool_prefix"; then
6752 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6753set dummy ${ac_tool_prefix}ranlib; ac_word=$2
64ff59ba 6754{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6755echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 6756if test "${ac_cv_prog_RANLIB+set}" = set; then
6757 echo $ECHO_N "(cached) $ECHO_C" >&6
6758else
6759 if test -n "$RANLIB"; then
6760 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6761else
6762as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6763for as_dir in $PATH
6764do
6765 IFS=$as_save_IFS
6766 test -z "$as_dir" && as_dir=.
6767 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 6768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 6769 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6770 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6771 break 2
6772 fi
6773done
6774done
64ff59ba 6775IFS=$as_save_IFS
d9898ee8 6776
6777fi
6778fi
6779RANLIB=$ac_cv_prog_RANLIB
6780if test -n "$RANLIB"; then
64ff59ba 6781 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6782echo "${ECHO_T}$RANLIB" >&6; }
d9898ee8 6783else
64ff59ba 6784 { echo "$as_me:$LINENO: result: no" >&5
6785echo "${ECHO_T}no" >&6; }
d9898ee8 6786fi
6787
64ff59ba 6788
d9898ee8 6789fi
6790if test -z "$ac_cv_prog_RANLIB"; then
6791 ac_ct_RANLIB=$RANLIB
6792 # Extract the first word of "ranlib", so it can be a program name with args.
6793set dummy ranlib; ac_word=$2
64ff59ba 6794{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6795echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 6796if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6797 echo $ECHO_N "(cached) $ECHO_C" >&6
6798else
6799 if test -n "$ac_ct_RANLIB"; then
6800 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6801else
6802as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6803for as_dir in $PATH
6804do
6805 IFS=$as_save_IFS
6806 test -z "$as_dir" && as_dir=.
6807 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 6808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 6809 ac_cv_prog_ac_ct_RANLIB="ranlib"
6810 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6811 break 2
6812 fi
6813done
6814done
64ff59ba 6815IFS=$as_save_IFS
d9898ee8 6816
d9898ee8 6817fi
6818fi
6819ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6820if test -n "$ac_ct_RANLIB"; then
64ff59ba 6821 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6822echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
d9898ee8 6823else
64ff59ba 6824 { echo "$as_me:$LINENO: result: no" >&5
6825echo "${ECHO_T}no" >&6; }
d9898ee8 6826fi
6827
64ff59ba 6828 if test "x$ac_ct_RANLIB" = x; then
6829 RANLIB=":"
6830 else
6831 case $cross_compiling:$ac_tool_warned in
6832yes:)
6833{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6834whose name does not start with the host triplet. If you think this
6835configuration is useful to you, please write to autoconf@gnu.org." >&5
6836echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6837whose name does not start with the host triplet. If you think this
6838configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6839ac_tool_warned=yes ;;
6840esac
6841 RANLIB=$ac_ct_RANLIB
6842 fi
d9898ee8 6843else
6844 RANLIB="$ac_cv_prog_RANLIB"
6845fi
6846
6847if test -n "$ac_tool_prefix"; then
6848 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6849set dummy ${ac_tool_prefix}strip; ac_word=$2
64ff59ba 6850{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6851echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 6852if test "${ac_cv_prog_STRIP+set}" = set; then
6853 echo $ECHO_N "(cached) $ECHO_C" >&6
6854else
6855 if test -n "$STRIP"; then
6856 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6857else
6858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6859for as_dir in $PATH
6860do
6861 IFS=$as_save_IFS
6862 test -z "$as_dir" && as_dir=.
6863 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 6864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 6865 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6866 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6867 break 2
6868 fi
6869done
6870done
64ff59ba 6871IFS=$as_save_IFS
d9898ee8 6872
6873fi
6874fi
6875STRIP=$ac_cv_prog_STRIP
6876if test -n "$STRIP"; then
64ff59ba 6877 { echo "$as_me:$LINENO: result: $STRIP" >&5
6878echo "${ECHO_T}$STRIP" >&6; }
d9898ee8 6879else
64ff59ba 6880 { echo "$as_me:$LINENO: result: no" >&5
6881echo "${ECHO_T}no" >&6; }
d9898ee8 6882fi
6883
64ff59ba 6884
d9898ee8 6885fi
6886if test -z "$ac_cv_prog_STRIP"; then
6887 ac_ct_STRIP=$STRIP
6888 # Extract the first word of "strip", so it can be a program name with args.
6889set dummy strip; ac_word=$2
64ff59ba 6890{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6891echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 6892if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6893 echo $ECHO_N "(cached) $ECHO_C" >&6
6894else
6895 if test -n "$ac_ct_STRIP"; then
6896 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6897else
6898as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6899for as_dir in $PATH
6900do
6901 IFS=$as_save_IFS
6902 test -z "$as_dir" && as_dir=.
6903 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 6904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 6905 ac_cv_prog_ac_ct_STRIP="strip"
6906 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6907 break 2
6908 fi
6909done
6910done
64ff59ba 6911IFS=$as_save_IFS
d9898ee8 6912
d9898ee8 6913fi
6914fi
6915ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6916if test -n "$ac_ct_STRIP"; then
64ff59ba 6917 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6918echo "${ECHO_T}$ac_ct_STRIP" >&6; }
d9898ee8 6919else
64ff59ba 6920 { echo "$as_me:$LINENO: result: no" >&5
6921echo "${ECHO_T}no" >&6; }
d9898ee8 6922fi
6923
64ff59ba 6924 if test "x$ac_ct_STRIP" = x; then
6925 STRIP=":"
6926 else
6927 case $cross_compiling:$ac_tool_warned in
6928yes:)
6929{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6930whose name does not start with the host triplet. If you think this
6931configuration is useful to you, please write to autoconf@gnu.org." >&5
6932echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6933whose name does not start with the host triplet. If you think this
6934configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6935ac_tool_warned=yes ;;
6936esac
6937 STRIP=$ac_ct_STRIP
6938 fi
d9898ee8 6939else
6940 STRIP="$ac_cv_prog_STRIP"
6941fi
6942
6943
6944old_CC="$CC"
6945old_CFLAGS="$CFLAGS"
6946
6947# Set sane defaults for various variables
6948test -z "$AR" && AR=ar
6949test -z "$AR_FLAGS" && AR_FLAGS=cru
6950test -z "$AS" && AS=as
6951test -z "$CC" && CC=cc
6952test -z "$LTCC" && LTCC=$CC
6953test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6954test -z "$DLLTOOL" && DLLTOOL=dlltool
6955test -z "$LD" && LD=ld
6956test -z "$LN_S" && LN_S="ln -s"
6957test -z "$MAGIC_CMD" && MAGIC_CMD=file
6958test -z "$NM" && NM=nm
6959test -z "$SED" && SED=sed
6960test -z "$OBJDUMP" && OBJDUMP=objdump
6961test -z "$RANLIB" && RANLIB=:
6962test -z "$STRIP" && STRIP=:
6963test -z "$ac_objext" && ac_objext=o
6964
6965# Determine commands to create old-style static archives.
6966old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6967old_postinstall_cmds='chmod 644 $oldlib'
6968old_postuninstall_cmds=
6969
6970if test -n "$RANLIB"; then
6971 case $host_os in
6972 openbsd*)
6973 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6974 ;;
6975 *)
6976 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6977 ;;
6978 esac
6979 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6980fi
6981
6982for cc_temp in $compiler""; do
6983 case $cc_temp in
6984 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6985 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6986 \-*) ;;
6987 *) break;;
6988 esac
6989done
6990cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6991
6992
6993# Only perform the check for file, if the check method requires it
6994case $deplibs_check_method in
6995file_magic*)
6996 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
64ff59ba 6997 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6998echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
d9898ee8 6999if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7000 echo $ECHO_N "(cached) $ECHO_C" >&6
7001else
7002 case $MAGIC_CMD in
7003[\\/*] | ?:[\\/]*)
7004 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7005 ;;
7006*)
7007 lt_save_MAGIC_CMD="$MAGIC_CMD"
7008 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7009 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7010 for ac_dir in $ac_dummy; do
7011 IFS="$lt_save_ifs"
7012 test -z "$ac_dir" && ac_dir=.
7013 if test -f $ac_dir/${ac_tool_prefix}file; then
7014 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7015 if test -n "$file_magic_test_file"; then
7016 case $deplibs_check_method in
7017 "file_magic "*)
7018 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7019 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7020 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7021 $EGREP "$file_magic_regex" > /dev/null; then
7022 :
7023 else
7024 cat <<EOF 1>&2
7025
7026*** Warning: the command libtool uses to detect shared libraries,
7027*** $file_magic_cmd, produces output that libtool cannot recognize.
7028*** The result is that libtool may fail to recognize shared libraries
7029*** as such. This will affect the creation of libtool libraries that
7030*** depend on shared libraries, but programs linked with such libtool
7031*** libraries will work regardless of this problem. Nevertheless, you
7032*** may want to report the problem to your system manager and/or to
7033*** bug-libtool@gnu.org
7034
7035EOF
7036 fi ;;
7037 esac
7038 fi
7039 break
7040 fi
7041 done
7042 IFS="$lt_save_ifs"
7043 MAGIC_CMD="$lt_save_MAGIC_CMD"
7044 ;;
7045esac
7046fi
7047
7048MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7049if test -n "$MAGIC_CMD"; then
64ff59ba 7050 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7051echo "${ECHO_T}$MAGIC_CMD" >&6; }
d9898ee8 7052else
64ff59ba 7053 { echo "$as_me:$LINENO: result: no" >&5
7054echo "${ECHO_T}no" >&6; }
d9898ee8 7055fi
7056
7057if test -z "$lt_cv_path_MAGIC_CMD"; then
7058 if test -n "$ac_tool_prefix"; then
64ff59ba 7059 { echo "$as_me:$LINENO: checking for file" >&5
7060echo $ECHO_N "checking for file... $ECHO_C" >&6; }
d9898ee8 7061if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7062 echo $ECHO_N "(cached) $ECHO_C" >&6
7063else
7064 case $MAGIC_CMD in
7065[\\/*] | ?:[\\/]*)
7066 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7067 ;;
7068*)
7069 lt_save_MAGIC_CMD="$MAGIC_CMD"
7070 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7071 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7072 for ac_dir in $ac_dummy; do
7073 IFS="$lt_save_ifs"
7074 test -z "$ac_dir" && ac_dir=.
7075 if test -f $ac_dir/file; then
7076 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7077 if test -n "$file_magic_test_file"; then
7078 case $deplibs_check_method in
7079 "file_magic "*)
7080 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7081 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7082 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7083 $EGREP "$file_magic_regex" > /dev/null; then
7084 :
7085 else
7086 cat <<EOF 1>&2
7087
7088*** Warning: the command libtool uses to detect shared libraries,
7089*** $file_magic_cmd, produces output that libtool cannot recognize.
7090*** The result is that libtool may fail to recognize shared libraries
7091*** as such. This will affect the creation of libtool libraries that
7092*** depend on shared libraries, but programs linked with such libtool
7093*** libraries will work regardless of this problem. Nevertheless, you
7094*** may want to report the problem to your system manager and/or to
7095*** bug-libtool@gnu.org
7096
7097EOF
7098 fi ;;
7099 esac
7100 fi
7101 break
7102 fi
7103 done
7104 IFS="$lt_save_ifs"
7105 MAGIC_CMD="$lt_save_MAGIC_CMD"
7106 ;;
7107esac
7108fi
7109
7110MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7111if test -n "$MAGIC_CMD"; then
64ff59ba 7112 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7113echo "${ECHO_T}$MAGIC_CMD" >&6; }
d9898ee8 7114else
64ff59ba 7115 { echo "$as_me:$LINENO: result: no" >&5
7116echo "${ECHO_T}no" >&6; }
d9898ee8 7117fi
7118
7119 else
7120 MAGIC_CMD=:
7121 fi
7122fi
7123
7124 fi
7125 ;;
7126esac
7127
7128enable_dlopen=yes
7129enable_win32_dll=no
7130
64ff59ba 7131# Check whether --enable-libtool-lock was given.
d9898ee8 7132if test "${enable_libtool_lock+set}" = set; then
64ff59ba 7133 enableval=$enable_libtool_lock;
7134fi
d9898ee8 7135
d9898ee8 7136test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7137
7138
64ff59ba 7139# Check whether --with-pic was given.
d9898ee8 7140if test "${with_pic+set}" = set; then
64ff59ba 7141 withval=$with_pic; pic_mode="$withval"
d9898ee8 7142else
7143 pic_mode=default
64ff59ba 7144fi
7145
d9898ee8 7146test -z "$pic_mode" && pic_mode=default
7147
7148# Use C for the default configuration in the libtool script
7149tagname=
7150lt_save_CC="$CC"
7151ac_ext=c
7152ac_cpp='$CPP $CPPFLAGS'
7153ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7154ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7155ac_compiler_gnu=$ac_cv_c_compiler_gnu
7156
7157
7158# Source file extension for C test sources.
7159ac_ext=c
7160
7161# Object file extension for compiled C test sources.
7162objext=o
7163objext=$objext
7164
7165# Code to be used in simple compile tests
7166lt_simple_compile_test_code="int some_variable = 0;\n"
7167
7168# Code to be used in simple link tests
7169lt_simple_link_test_code='int main(){return(0);}\n'
7170
7171
7172# If no C compiler was specified, use CC.
7173LTCC=${LTCC-"$CC"}
7174
7175# If no C compiler flags were specified, use CFLAGS.
7176LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7177
7178# Allow CC to be a program name with arguments.
7179compiler=$CC
7180
7181
7182# save warnings/boilerplate of simple test code
7183ac_outfile=conftest.$ac_objext
7184printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7185eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7186_lt_compiler_boilerplate=`cat conftest.err`
7187$rm conftest*
7188
7189ac_outfile=conftest.$ac_objext
7190printf "$lt_simple_link_test_code" >conftest.$ac_ext
7191eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7192_lt_linker_boilerplate=`cat conftest.err`
7193$rm conftest*
7194
7195
7196
7197lt_prog_compiler_no_builtin_flag=
7198
7199if test "$GCC" = yes; then
7200 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7201
7202
64ff59ba 7203{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7204echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
d9898ee8 7205if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7206 echo $ECHO_N "(cached) $ECHO_C" >&6
7207else
7208 lt_cv_prog_compiler_rtti_exceptions=no
7209 ac_outfile=conftest.$ac_objext
7210 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7211 lt_compiler_flag="-fno-rtti -fno-exceptions"
7212 # Insert the option either (1) after the last *FLAGS variable, or
7213 # (2) before a word containing "conftest.", or (3) at the end.
7214 # Note that $ac_compile itself does not contain backslashes and begins
7215 # with a dollar sign (not a hyphen), so the echo should work correctly.
7216 # The option is referenced via a variable to avoid confusing sed.
7217 lt_compile=`echo "$ac_compile" | $SED \
7218 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7219 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7220 -e 's:$: $lt_compiler_flag:'`
64ff59ba 7221 (eval echo "\"\$as_me:7221: $lt_compile\"" >&5)
d9898ee8 7222 (eval "$lt_compile" 2>conftest.err)
7223 ac_status=$?
7224 cat conftest.err >&5
64ff59ba 7225 echo "$as_me:7225: \$? = $ac_status" >&5
d9898ee8 7226 if (exit $ac_status) && test -s "$ac_outfile"; then
7227 # The compiler can only warn and ignore the option if not recognized
7228 # So say no if there are warnings other than the usual output.
7229 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7230 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7231 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7232 lt_cv_prog_compiler_rtti_exceptions=yes
7233 fi
7234 fi
7235 $rm conftest*
7236
7237fi
64ff59ba 7238{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7239echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
d9898ee8 7240
7241if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7242 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7243else
7244 :
7245fi
7246
7247fi
7248
7249lt_prog_compiler_wl=
7250lt_prog_compiler_pic=
7251lt_prog_compiler_static=
7252
64ff59ba 7253{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7254echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
d9898ee8 7255
7256 if test "$GCC" = yes; then
7257 lt_prog_compiler_wl='-Wl,'
7258 lt_prog_compiler_static='-static'
7259
7260 case $host_os in
7261 aix*)
7262 # All AIX code is PIC.
7263 if test "$host_cpu" = ia64; then
7264 # AIX 5 now supports IA64 processor
7265 lt_prog_compiler_static='-Bstatic'
7266 fi
7267 ;;
7268
7269 amigaos*)
7270 # FIXME: we need at least 68020 code to build shared libraries, but
7271 # adding the `-m68020' flag to GCC prevents building anything better,
7272 # like `-m68040'.
7273 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7274 ;;
7275
7276 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7277 # PIC is the default for these OSes.
7278 ;;
7279
7280 mingw* | pw32* | os2*)
7281 # This hack is so that the source file can tell whether it is being
7282 # built for inclusion in a dll (and should export symbols for example).
7283 lt_prog_compiler_pic='-DDLL_EXPORT'
7284 ;;
7285
7286 darwin* | rhapsody*)
7287 # PIC is the default on this platform
7288 # Common symbols not allowed in MH_DYLIB files
7289 lt_prog_compiler_pic='-fno-common'
7290 ;;
7291
7292 interix3*)
7293 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7294 # Instead, we relocate shared libraries at runtime.
7295 ;;
7296
7297 msdosdjgpp*)
7298 # Just because we use GCC doesn't mean we suddenly get shared libraries
7299 # on systems that don't support them.
7300 lt_prog_compiler_can_build_shared=no
7301 enable_shared=no
7302 ;;
7303
7304 sysv4*MP*)
7305 if test -d /usr/nec; then
7306 lt_prog_compiler_pic=-Kconform_pic
7307 fi
7308 ;;
7309
7310 hpux*)
7311 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7312 # not for PA HP-UX.
7313 case $host_cpu in
7314 hppa*64*|ia64*)
7315 # +Z the default
7316 ;;
7317 *)
7318 lt_prog_compiler_pic='-fPIC'
7319 ;;
7320 esac
7321 ;;
7322
7323 *)
7324 lt_prog_compiler_pic='-fPIC'
7325 ;;
7326 esac
7327 else
7328 # PORTME Check for flag to pass linker flags through the system compiler.
7329 case $host_os in
7330 aix*)
7331 lt_prog_compiler_wl='-Wl,'
7332 if test "$host_cpu" = ia64; then
7333 # AIX 5 now supports IA64 processor
7334 lt_prog_compiler_static='-Bstatic'
7335 else
7336 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7337 fi
7338 ;;
7339 darwin*)
7340 # PIC is the default on this platform
7341 # Common symbols not allowed in MH_DYLIB files
7342 case $cc_basename in
7343 xlc*)
7344 lt_prog_compiler_pic='-qnocommon'
7345 lt_prog_compiler_wl='-Wl,'
7346 ;;
7347 esac
7348 ;;
7349
7350 mingw* | pw32* | os2*)
7351 # This hack is so that the source file can tell whether it is being
7352 # built for inclusion in a dll (and should export symbols for example).
7353 lt_prog_compiler_pic='-DDLL_EXPORT'
7354 ;;
7355
7356 hpux9* | hpux10* | hpux11*)
7357 lt_prog_compiler_wl='-Wl,'
7358 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7359 # not for PA HP-UX.
7360 case $host_cpu in
7361 hppa*64*|ia64*)
7362 # +Z the default
7363 ;;
7364 *)
7365 lt_prog_compiler_pic='+Z'
7366 ;;
7367 esac
7368 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7369 lt_prog_compiler_static='${wl}-a ${wl}archive'
7370 ;;
7371
7372 irix5* | irix6* | nonstopux*)
7373 lt_prog_compiler_wl='-Wl,'
7374 # PIC (with -KPIC) is the default.
7375 lt_prog_compiler_static='-non_shared'
7376 ;;
7377
7378 newsos6)
7379 lt_prog_compiler_pic='-KPIC'
7380 lt_prog_compiler_static='-Bstatic'
7381 ;;
7382
7383 linux*)
7384 case $cc_basename in
7385 icc* | ecc*)
7386 lt_prog_compiler_wl='-Wl,'
7387 lt_prog_compiler_pic='-KPIC'
7388 lt_prog_compiler_static='-static'
7389 ;;
7390 pgcc* | pgf77* | pgf90* | pgf95*)
7391 # Portland Group compilers (*not* the Pentium gcc compiler,
7392 # which looks to be a dead project)
7393 lt_prog_compiler_wl='-Wl,'
7394 lt_prog_compiler_pic='-fpic'
7395 lt_prog_compiler_static='-Bstatic'
7396 ;;
7397 ccc*)
7398 lt_prog_compiler_wl='-Wl,'
7399 # All Alpha code is PIC.
7400 lt_prog_compiler_static='-non_shared'
7401 ;;
7402 esac
7403 ;;
7404
7405 osf3* | osf4* | osf5*)
7406 lt_prog_compiler_wl='-Wl,'
7407 # All OSF/1 code is PIC.
7408 lt_prog_compiler_static='-non_shared'
7409 ;;
7410
7411 solaris*)
7412 lt_prog_compiler_pic='-KPIC'
7413 lt_prog_compiler_static='-Bstatic'
7414 case $cc_basename in
7415 f77* | f90* | f95*)
7416 lt_prog_compiler_wl='-Qoption ld ';;
7417 *)
7418 lt_prog_compiler_wl='-Wl,';;
7419 esac
7420 ;;
7421
7422 sunos4*)
7423 lt_prog_compiler_wl='-Qoption ld '
7424 lt_prog_compiler_pic='-PIC'
7425 lt_prog_compiler_static='-Bstatic'
7426 ;;
7427
7428 sysv4 | sysv4.2uw2* | sysv4.3*)
7429 lt_prog_compiler_wl='-Wl,'
7430 lt_prog_compiler_pic='-KPIC'
7431 lt_prog_compiler_static='-Bstatic'
7432 ;;
7433
7434 sysv4*MP*)
7435 if test -d /usr/nec ;then
7436 lt_prog_compiler_pic='-Kconform_pic'
7437 lt_prog_compiler_static='-Bstatic'
7438 fi
7439 ;;
7440
7441 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7442 lt_prog_compiler_wl='-Wl,'
7443 lt_prog_compiler_pic='-KPIC'
7444 lt_prog_compiler_static='-Bstatic'
7445 ;;
7446
7447 unicos*)
7448 lt_prog_compiler_wl='-Wl,'
7449 lt_prog_compiler_can_build_shared=no
7450 ;;
7451
7452 uts4*)
7453 lt_prog_compiler_pic='-pic'
7454 lt_prog_compiler_static='-Bstatic'
7455 ;;
7456
7457 *)
7458 lt_prog_compiler_can_build_shared=no
7459 ;;
7460 esac
7461 fi
7462
64ff59ba 7463{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7464echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
d9898ee8 7465
7466#
7467# Check to make sure the PIC flag actually works.
7468#
7469if test -n "$lt_prog_compiler_pic"; then
7470
64ff59ba 7471{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7472echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
d9898ee8 7473if test "${lt_prog_compiler_pic_works+set}" = set; then
7474 echo $ECHO_N "(cached) $ECHO_C" >&6
7475else
7476 lt_prog_compiler_pic_works=no
7477 ac_outfile=conftest.$ac_objext
7478 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7479 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7480 # Insert the option either (1) after the last *FLAGS variable, or
7481 # (2) before a word containing "conftest.", or (3) at the end.
7482 # Note that $ac_compile itself does not contain backslashes and begins
7483 # with a dollar sign (not a hyphen), so the echo should work correctly.
7484 # The option is referenced via a variable to avoid confusing sed.
7485 lt_compile=`echo "$ac_compile" | $SED \
7486 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7487 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7488 -e 's:$: $lt_compiler_flag:'`
64ff59ba 7489 (eval echo "\"\$as_me:7489: $lt_compile\"" >&5)
d9898ee8 7490 (eval "$lt_compile" 2>conftest.err)
7491 ac_status=$?
7492 cat conftest.err >&5
64ff59ba 7493 echo "$as_me:7493: \$? = $ac_status" >&5
d9898ee8 7494 if (exit $ac_status) && test -s "$ac_outfile"; then
7495 # The compiler can only warn and ignore the option if not recognized
7496 # So say no if there are warnings other than the usual output.
7497 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7498 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7499 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7500 lt_prog_compiler_pic_works=yes
7501 fi
7502 fi
7503 $rm conftest*
7504
7505fi
64ff59ba 7506{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7507echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
d9898ee8 7508
7509if test x"$lt_prog_compiler_pic_works" = xyes; then
7510 case $lt_prog_compiler_pic in
7511 "" | " "*) ;;
7512 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7513 esac
7514else
7515 lt_prog_compiler_pic=
7516 lt_prog_compiler_can_build_shared=no
7517fi
7518
7519fi
7520case $host_os in
7521 # For platforms which do not support PIC, -DPIC is meaningless:
7522 *djgpp*)
7523 lt_prog_compiler_pic=
7524 ;;
7525 *)
7526 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7527 ;;
7528esac
7529
7530#
7531# Check to make sure the static flag actually works.
7532#
7533wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
64ff59ba 7534{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7535echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
d9898ee8 7536if test "${lt_prog_compiler_static_works+set}" = set; then
7537 echo $ECHO_N "(cached) $ECHO_C" >&6
7538else
7539 lt_prog_compiler_static_works=no
7540 save_LDFLAGS="$LDFLAGS"
7541 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7542 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7543 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7544 # The linker can only warn and ignore the option if not recognized
7545 # So say no if there are warnings
7546 if test -s conftest.err; then
7547 # Append any errors to the config.log.
7548 cat conftest.err 1>&5
7549 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7550 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7551 if diff conftest.exp conftest.er2 >/dev/null; then
7552 lt_prog_compiler_static_works=yes
7553 fi
7554 else
7555 lt_prog_compiler_static_works=yes
7556 fi
7557 fi
7558 $rm conftest*
7559 LDFLAGS="$save_LDFLAGS"
7560
7561fi
64ff59ba 7562{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7563echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
d9898ee8 7564
7565if test x"$lt_prog_compiler_static_works" = xyes; then
7566 :
7567else
7568 lt_prog_compiler_static=
7569fi
7570
7571
64ff59ba 7572{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7573echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
d9898ee8 7574if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7575 echo $ECHO_N "(cached) $ECHO_C" >&6
7576else
7577 lt_cv_prog_compiler_c_o=no
7578 $rm -r conftest 2>/dev/null
7579 mkdir conftest
7580 cd conftest
7581 mkdir out
7582 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7583
7584 lt_compiler_flag="-o out/conftest2.$ac_objext"
7585 # Insert the option either (1) after the last *FLAGS variable, or
7586 # (2) before a word containing "conftest.", or (3) at the end.
7587 # Note that $ac_compile itself does not contain backslashes and begins
7588 # with a dollar sign (not a hyphen), so the echo should work correctly.
7589 lt_compile=`echo "$ac_compile" | $SED \
7590 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7591 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7592 -e 's:$: $lt_compiler_flag:'`
64ff59ba 7593 (eval echo "\"\$as_me:7593: $lt_compile\"" >&5)
d9898ee8 7594 (eval "$lt_compile" 2>out/conftest.err)
7595 ac_status=$?
7596 cat out/conftest.err >&5
64ff59ba 7597 echo "$as_me:7597: \$? = $ac_status" >&5
d9898ee8 7598 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7599 then
7600 # The compiler can only warn and ignore the option if not recognized
7601 # So say no if there are warnings
7602 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7603 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7604 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7605 lt_cv_prog_compiler_c_o=yes
7606 fi
7607 fi
7608 chmod u+w . 2>&5
7609 $rm conftest*
7610 # SGI C++ compiler will create directory out/ii_files/ for
7611 # template instantiation
7612 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7613 $rm out/* && rmdir out
7614 cd ..
7615 rmdir conftest
7616 $rm conftest*
7617
7618fi
64ff59ba 7619{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7620echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
d9898ee8 7621
7622
7623hard_links="nottested"
7624if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7625 # do not overwrite the value of need_locks provided by the user
64ff59ba 7626 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7627echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
d9898ee8 7628 hard_links=yes
7629 $rm conftest*
7630 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7631 touch conftest.a
7632 ln conftest.a conftest.b 2>&5 || hard_links=no
7633 ln conftest.a conftest.b 2>/dev/null && hard_links=no
64ff59ba 7634 { echo "$as_me:$LINENO: result: $hard_links" >&5
7635echo "${ECHO_T}$hard_links" >&6; }
d9898ee8 7636 if test "$hard_links" = no; then
7637 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7638echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7639 need_locks=warn
7640 fi
7641else
7642 need_locks=no
7643fi
7644
64ff59ba 7645{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7646echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
d9898ee8 7647
7648 runpath_var=
7649 allow_undefined_flag=
7650 enable_shared_with_static_runtimes=no
7651 archive_cmds=
7652 archive_expsym_cmds=
7653 old_archive_From_new_cmds=
7654 old_archive_from_expsyms_cmds=
7655 export_dynamic_flag_spec=
7656 whole_archive_flag_spec=
7657 thread_safe_flag_spec=
7658 hardcode_libdir_flag_spec=
7659 hardcode_libdir_flag_spec_ld=
7660 hardcode_libdir_separator=
7661 hardcode_direct=no
7662 hardcode_minus_L=no
7663 hardcode_shlibpath_var=unsupported
7664 link_all_deplibs=unknown
7665 hardcode_automatic=no
7666 module_cmds=
7667 module_expsym_cmds=
7668 always_export_symbols=no
7669 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7670 # include_expsyms should be a list of space-separated symbols to be *always*
7671 # included in the symbol list
7672 include_expsyms=
7673 # exclude_expsyms can be an extended regexp of symbols to exclude
7674 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7675 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7676 # as well as any symbol that contains `d'.
7677 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7678 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7679 # platforms (ab)use it in PIC code, but their linkers get confused if
7680 # the symbol is explicitly referenced. Since portable code cannot
7681 # rely on this symbol name, it's probably fine to never include it in
7682 # preloaded symbol tables.
7683 extract_expsyms_cmds=
7684 # Just being paranoid about ensuring that cc_basename is set.
7685 for cc_temp in $compiler""; do
7686 case $cc_temp in
7687 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7688 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7689 \-*) ;;
7690 *) break;;
7691 esac
7692done
7693cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7694
7695 case $host_os in
7696 cygwin* | mingw* | pw32*)
7697 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7698 # When not using gcc, we currently assume that we are using
7699 # Microsoft Visual C++.
7700 if test "$GCC" != yes; then
7701 with_gnu_ld=no
7702 fi
7703 ;;
7704 interix*)
7705 # we just hope/assume this is gcc and not c89 (= MSVC++)
7706 with_gnu_ld=yes
7707 ;;
7708 openbsd*)
7709 with_gnu_ld=no
7710 ;;
7711 esac
7712
7713 ld_shlibs=yes
7714 if test "$with_gnu_ld" = yes; then
7715 # If archive_cmds runs LD, not CC, wlarc should be empty
7716 wlarc='${wl}'
7717
7718 # Set some defaults for GNU ld with shared library support. These
7719 # are reset later if shared libraries are not supported. Putting them
7720 # here allows them to be overridden if necessary.
7721 runpath_var=LD_RUN_PATH
7722 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7723 export_dynamic_flag_spec='${wl}--export-dynamic'
7724 # ancient GNU ld didn't support --whole-archive et. al.
7725 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7726 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7727 else
7728 whole_archive_flag_spec=
7729 fi
7730 supports_anon_versioning=no
7731 case `$LD -v 2>/dev/null` in
7732 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7733 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7734 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7735 *\ 2.11.*) ;; # other 2.11 versions
7736 *) supports_anon_versioning=yes ;;
7737 esac
7738
7739 # See if GNU ld supports shared libraries.
7740 case $host_os in
7741 aix3* | aix4* | aix5*)
7742 # On AIX/PPC, the GNU linker is very broken
7743 if test "$host_cpu" != ia64; then
7744 ld_shlibs=no
7745 cat <<EOF 1>&2
7746
7747*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7748*** to be unable to reliably create shared libraries on AIX.
7749*** Therefore, libtool is disabling shared libraries support. If you
7750*** really care for shared libraries, you may want to modify your PATH
7751*** so that a non-GNU linker is found, and then restart.
7752
7753EOF
7754 fi
7755 ;;
7756
7757 amigaos*)
7758 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)'
7759 hardcode_libdir_flag_spec='-L$libdir'
7760 hardcode_minus_L=yes
7761
7762 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7763 # that the semantics of dynamic libraries on AmigaOS, at least up
7764 # to version 4, is to share data among multiple programs linked
7765 # with the same dynamic library. Since this doesn't match the
7766 # behavior of shared libraries on other platforms, we can't use
7767 # them.
7768 ld_shlibs=no
7769 ;;
7770
7771 beos*)
7772 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7773 allow_undefined_flag=unsupported
7774 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7775 # support --undefined. This deserves some investigation. FIXME
7776 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7777 else
7778 ld_shlibs=no
7779 fi
7780 ;;
7781
7782 cygwin* | mingw* | pw32*)
7783 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7784 # as there is no search path for DLLs.
7785 hardcode_libdir_flag_spec='-L$libdir'
7786 allow_undefined_flag=unsupported
7787 always_export_symbols=no
7788 enable_shared_with_static_runtimes=yes
7789 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7790
7791 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7792 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7793 # If the export-symbols file already is a .def file (1st line
7794 # is EXPORTS), use it as is; otherwise, prepend...
7795 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7796 cp $export_symbols $output_objdir/$soname.def;
7797 else
7798 echo EXPORTS > $output_objdir/$soname.def;
7799 cat $export_symbols >> $output_objdir/$soname.def;
7800 fi~
7801 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7802 else
7803 ld_shlibs=no
7804 fi
7805 ;;
7806
7807 interix3*)
7808 hardcode_direct=no
7809 hardcode_shlibpath_var=no
7810 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7811 export_dynamic_flag_spec='${wl}-E'
7812 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7813 # Instead, shared libraries are loaded at an image base (0x10000000 by
7814 # default) and relocated if they conflict, which is a slow very memory
7815 # consuming and fragmenting process. To avoid this, we pick a random,
7816 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7817 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7818 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7819 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'
7820 ;;
7821
7822 linux*)
7823 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7824 tmp_addflag=
7825 case $cc_basename,$host_cpu in
7826 pgcc*) # Portland Group C compiler
7827 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'
7828 tmp_addflag=' $pic_flag'
7829 ;;
7830 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7831 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'
7832 tmp_addflag=' $pic_flag -Mnomain' ;;
7833 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7834 tmp_addflag=' -i_dynamic' ;;
7835 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7836 tmp_addflag=' -i_dynamic -nofor_main' ;;
7837 ifc* | ifort*) # Intel Fortran compiler
7838 tmp_addflag=' -nofor_main' ;;
7839 esac
7840 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7841
7842 if test $supports_anon_versioning = yes; then
7843 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7844 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7845 $echo "local: *; };" >> $output_objdir/$libname.ver~
7846 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7847 fi
7848 else
7849 ld_shlibs=no
7850 fi
7851 ;;
7852
7853 netbsd*)
7854 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7855 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7856 wlarc=
7857 else
7858 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7859 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7860 fi
7861 ;;
7862
7863 solaris*)
7864 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7865 ld_shlibs=no
7866 cat <<EOF 1>&2
7867
7868*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7869*** create shared libraries on Solaris systems. Therefore, libtool
7870*** is disabling shared libraries support. We urge you to upgrade GNU
7871*** binutils to release 2.9.1 or newer. Another option is to modify
7872*** your PATH or compiler configuration so that the native linker is
7873*** used, and then restart.
7874
7875EOF
7876 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7877 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7878 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7879 else
7880 ld_shlibs=no
7881 fi
7882 ;;
7883
7884 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7885 case `$LD -v 2>&1` in
7886 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7887 ld_shlibs=no
7888 cat <<_LT_EOF 1>&2
7889
7890*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7891*** reliably create shared libraries on SCO systems. Therefore, libtool
7892*** is disabling shared libraries support. We urge you to upgrade GNU
7893*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7894*** your PATH or compiler configuration so that the native linker is
7895*** used, and then restart.
7896
7897_LT_EOF
7898 ;;
7899 *)
7900 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7901 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7902 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7903 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7904 else
7905 ld_shlibs=no
7906 fi
7907 ;;
7908 esac
7909 ;;
7910
7911 sunos4*)
7912 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7913 wlarc=
7914 hardcode_direct=yes
7915 hardcode_shlibpath_var=no
7916 ;;
7917
7918 *)
7919 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7920 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7921 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7922 else
7923 ld_shlibs=no
7924 fi
7925 ;;
7926 esac
7927
7928 if test "$ld_shlibs" = no; then
7929 runpath_var=
7930 hardcode_libdir_flag_spec=
7931 export_dynamic_flag_spec=
7932 whole_archive_flag_spec=
7933 fi
7934 else
7935 # PORTME fill in a description of your system's linker (not GNU ld)
7936 case $host_os in
7937 aix3*)
7938 allow_undefined_flag=unsupported
7939 always_export_symbols=yes
7940 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'
7941 # Note: this linker hardcodes the directories in LIBPATH if there
7942 # are no directories specified by -L.
7943 hardcode_minus_L=yes
7944 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7945 # Neither direct hardcoding nor static linking is supported with a
7946 # broken collect2.
7947 hardcode_direct=unsupported
7948 fi
7949 ;;
7950
7951 aix4* | aix5*)
7952 if test "$host_cpu" = ia64; then
7953 # On IA64, the linker does run time linking by default, so we don't
7954 # have to do anything special.
7955 aix_use_runtimelinking=no
7956 exp_sym_flag='-Bexport'
7957 no_entry_flag=""
7958 else
7959 # If we're using GNU nm, then we don't want the "-C" option.
7960 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7961 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7962 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'
7963 else
7964 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'
7965 fi
7966 aix_use_runtimelinking=no
7967
7968 # Test if we are trying to use run time linking or normal
7969 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7970 # need to do runtime linking.
7971 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7972 for ld_flag in $LDFLAGS; do
7973 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7974 aix_use_runtimelinking=yes
7975 break
7976 fi
7977 done
7978 ;;
7979 esac
7980
7981 exp_sym_flag='-bexport'
7982 no_entry_flag='-bnoentry'
7983 fi
7984
7985 # When large executables or shared objects are built, AIX ld can
7986 # have problems creating the table of contents. If linking a library
7987 # or program results in "error TOC overflow" add -mminimal-toc to
7988 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7989 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7990
7991 archive_cmds=''
7992 hardcode_direct=yes
7993 hardcode_libdir_separator=':'
7994 link_all_deplibs=yes
7995
7996 if test "$GCC" = yes; then
7997 case $host_os in aix4.[012]|aix4.[012].*)
7998 # We only want to do this on AIX 4.2 and lower, the check
7999 # below for broken collect2 doesn't work under 4.3+
8000 collect2name=`${CC} -print-prog-name=collect2`
8001 if test -f "$collect2name" && \
8002 strings "$collect2name" | grep resolve_lib_name >/dev/null
8003 then
8004 # We have reworked collect2
8005 hardcode_direct=yes
8006 else
8007 # We have old collect2
8008 hardcode_direct=unsupported
8009 # It fails to find uninstalled libraries when the uninstalled
8010 # path is not listed in the libpath. Setting hardcode_minus_L
8011 # to unsupported forces relinking
8012 hardcode_minus_L=yes
8013 hardcode_libdir_flag_spec='-L$libdir'
8014 hardcode_libdir_separator=
8015 fi
8016 ;;
8017 esac
8018 shared_flag='-shared'
8019 if test "$aix_use_runtimelinking" = yes; then
8020 shared_flag="$shared_flag "'${wl}-G'
8021 fi
8022 else
8023 # not using gcc
8024 if test "$host_cpu" = ia64; then
8025 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8026 # chokes on -Wl,-G. The following line is correct:
8027 shared_flag='-G'
8028 else
8029 if test "$aix_use_runtimelinking" = yes; then
8030 shared_flag='${wl}-G'
8031 else
8032 shared_flag='${wl}-bM:SRE'
8033 fi
8034 fi
8035 fi
8036
8037 # It seems that -bexpall does not export symbols beginning with
8038 # underscore (_), so it is better to generate a list of symbols to export.
8039 always_export_symbols=yes
8040 if test "$aix_use_runtimelinking" = yes; then
8041 # Warning - without using the other runtime loading flags (-brtl),
8042 # -berok will link without error, but may produce a broken library.
8043 allow_undefined_flag='-berok'
8044 # Determine the default libpath from the value encoded in an empty executable.
8045 cat >conftest.$ac_ext <<_ACEOF
8046/* confdefs.h. */
8047_ACEOF
8048cat confdefs.h >>conftest.$ac_ext
8049cat >>conftest.$ac_ext <<_ACEOF
8050/* end confdefs.h. */
8051
8052int
8053main ()
8054{
8055
8056 ;
8057 return 0;
8058}
8059_ACEOF
8060rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 8061if { (ac_try="$ac_link"
8062case "(($ac_try" in
8063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8064 *) ac_try_echo=$ac_try;;
8065esac
8066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8067 (eval "$ac_link") 2>conftest.er1
d9898ee8 8068 ac_status=$?
8069 grep -v '^ *+' conftest.er1 >conftest.err
8070 rm -f conftest.er1
8071 cat conftest.err >&5
8072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 8073 (exit $ac_status); } && {
8074 test -z "$ac_c_werror_flag" ||
8075 test ! -s conftest.err
8076 } && test -s conftest$ac_exeext &&
8077 $as_test_x conftest$ac_exeext; then
d9898ee8 8078
8079aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8080}'`
8081# Check for a 64-bit object if we didn't find anything.
8082if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8083}'`; fi
8084else
8085 echo "$as_me: failed program was:" >&5
8086sed 's/^/| /' conftest.$ac_ext >&5
8087
64ff59ba 8088
d9898ee8 8089fi
64ff59ba 8090
8091rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 8092 conftest$ac_exeext conftest.$ac_ext
8093if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8094
8095 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8096 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"
8097 else
8098 if test "$host_cpu" = ia64; then
8099 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8100 allow_undefined_flag="-z nodefs"
8101 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"
8102 else
8103 # Determine the default libpath from the value encoded in an empty executable.
8104 cat >conftest.$ac_ext <<_ACEOF
8105/* confdefs.h. */
8106_ACEOF
8107cat confdefs.h >>conftest.$ac_ext
8108cat >>conftest.$ac_ext <<_ACEOF
8109/* end confdefs.h. */
8110
8111int
8112main ()
8113{
8114
8115 ;
8116 return 0;
8117}
8118_ACEOF
8119rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 8120if { (ac_try="$ac_link"
8121case "(($ac_try" in
8122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8123 *) ac_try_echo=$ac_try;;
8124esac
8125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8126 (eval "$ac_link") 2>conftest.er1
d9898ee8 8127 ac_status=$?
8128 grep -v '^ *+' conftest.er1 >conftest.err
8129 rm -f conftest.er1
8130 cat conftest.err >&5
8131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 8132 (exit $ac_status); } && {
8133 test -z "$ac_c_werror_flag" ||
8134 test ! -s conftest.err
8135 } && test -s conftest$ac_exeext &&
8136 $as_test_x conftest$ac_exeext; then
d9898ee8 8137
8138aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8139}'`
8140# Check for a 64-bit object if we didn't find anything.
8141if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8142}'`; fi
8143else
8144 echo "$as_me: failed program was:" >&5
8145sed 's/^/| /' conftest.$ac_ext >&5
8146
64ff59ba 8147
d9898ee8 8148fi
64ff59ba 8149
8150rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 8151 conftest$ac_exeext conftest.$ac_ext
8152if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8153
8154 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8155 # Warning - without using the other run time loading flags,
8156 # -berok will link without error, but may produce a broken library.
8157 no_undefined_flag=' ${wl}-bernotok'
8158 allow_undefined_flag=' ${wl}-berok'
8159 # Exported symbols can be pulled into shared objects from archives
8160 whole_archive_flag_spec='$convenience'
8161 archive_cmds_need_lc=yes
8162 # This is similar to how AIX traditionally builds its shared libraries.
8163 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'
8164 fi
8165 fi
8166 ;;
8167
8168 amigaos*)
8169 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)'
8170 hardcode_libdir_flag_spec='-L$libdir'
8171 hardcode_minus_L=yes
8172 # see comment about different semantics on the GNU ld section
8173 ld_shlibs=no
8174 ;;
8175
8176 bsdi[45]*)
8177 export_dynamic_flag_spec=-rdynamic
8178 ;;
8179
8180 cygwin* | mingw* | pw32*)
8181 # When not using gcc, we currently assume that we are using
8182 # Microsoft Visual C++.
8183 # hardcode_libdir_flag_spec is actually meaningless, as there is
8184 # no search path for DLLs.
8185 hardcode_libdir_flag_spec=' '
8186 allow_undefined_flag=unsupported
8187 # Tell ltmain to make .lib files, not .a files.
8188 libext=lib
8189 # Tell ltmain to make .dll files, not .so files.
8190 shrext_cmds=".dll"
8191 # FIXME: Setting linknames here is a bad hack.
8192 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8193 # The linker will automatically build a .lib file if we build a DLL.
8194 old_archive_From_new_cmds='true'
8195 # FIXME: Should let the user specify the lib program.
8196 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8197 fix_srcfile_path='`cygpath -w "$srcfile"`'
8198 enable_shared_with_static_runtimes=yes
8199 ;;
8200
8201 darwin* | rhapsody*)
8202 case $host_os in
8203 rhapsody* | darwin1.[012])
8204 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8205 ;;
8206 *) # Darwin 1.3 on
8207 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8208 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8209 else
8210 case ${MACOSX_DEPLOYMENT_TARGET} in
8211 10.[012])
8212 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8213 ;;
8214 10.*)
8215 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8216 ;;
8217 esac
8218 fi
8219 ;;
8220 esac
8221 archive_cmds_need_lc=no
8222 hardcode_direct=no
8223 hardcode_automatic=yes
8224 hardcode_shlibpath_var=unsupported
8225 whole_archive_flag_spec=''
8226 link_all_deplibs=yes
8227 if test "$GCC" = yes ; then
8228 output_verbose_link_cmd='echo'
8229 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8230 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8231 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8232 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}'
8233 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}'
8234 else
8235 case $cc_basename in
8236 xlc*)
8237 output_verbose_link_cmd='echo'
8238 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8239 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8240 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8241 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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8242 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}'
8243 ;;
8244 *)
8245 ld_shlibs=no
8246 ;;
8247 esac
8248 fi
8249 ;;
8250
8251 dgux*)
8252 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8253 hardcode_libdir_flag_spec='-L$libdir'
8254 hardcode_shlibpath_var=no
8255 ;;
8256
8257 freebsd1*)
8258 ld_shlibs=no
8259 ;;
8260
8261 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8262 # support. Future versions do this automatically, but an explicit c++rt0.o
8263 # does not break anything, and helps significantly (at the cost of a little
8264 # extra space).
8265 freebsd2.2*)
8266 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8267 hardcode_libdir_flag_spec='-R$libdir'
8268 hardcode_direct=yes
8269 hardcode_shlibpath_var=no
8270 ;;
8271
8272 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8273 freebsd2*)
8274 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8275 hardcode_direct=yes
8276 hardcode_minus_L=yes
8277 hardcode_shlibpath_var=no
8278 ;;
8279
8280 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8281 freebsd* | kfreebsd*-gnu | dragonfly*)
8282 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8283 hardcode_libdir_flag_spec='-R$libdir'
8284 hardcode_direct=yes
8285 hardcode_shlibpath_var=no
8286 ;;
8287
8288 hpux9*)
8289 if test "$GCC" = yes; then
8290 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'
8291 else
8292 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'
8293 fi
8294 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8295 hardcode_libdir_separator=:
8296 hardcode_direct=yes
8297
8298 # hardcode_minus_L: Not really in the search PATH,
8299 # but as the default location of the library.
8300 hardcode_minus_L=yes
8301 export_dynamic_flag_spec='${wl}-E'
8302 ;;
8303
8304 hpux10*)
8305 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8306 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8307 else
8308 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8309 fi
8310 if test "$with_gnu_ld" = no; then
8311 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8312 hardcode_libdir_separator=:
8313
8314 hardcode_direct=yes
8315 export_dynamic_flag_spec='${wl}-E'
8316
8317 # hardcode_minus_L: Not really in the search PATH,
8318 # but as the default location of the library.
8319 hardcode_minus_L=yes
8320 fi
8321 ;;
8322
8323 hpux11*)
8324 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8325 case $host_cpu in
8326 hppa*64*)
8327 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8328 ;;
8329 ia64*)
8330 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8331 ;;
8332 *)
8333 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8334 ;;
8335 esac
8336 else
8337 case $host_cpu in
8338 hppa*64*)
8339 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8340 ;;
8341 ia64*)
8342 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8343 ;;
8344 *)
8345 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8346 ;;
8347 esac
8348 fi
8349 if test "$with_gnu_ld" = no; then
8350 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8351 hardcode_libdir_separator=:
8352
8353 case $host_cpu in
8354 hppa*64*|ia64*)
8355 hardcode_libdir_flag_spec_ld='+b $libdir'
8356 hardcode_direct=no
8357 hardcode_shlibpath_var=no
8358 ;;
8359 *)
8360 hardcode_direct=yes
8361 export_dynamic_flag_spec='${wl}-E'
8362
8363 # hardcode_minus_L: Not really in the search PATH,
8364 # but as the default location of the library.
8365 hardcode_minus_L=yes
8366 ;;
8367 esac
8368 fi
8369 ;;
8370
8371 irix5* | irix6* | nonstopux*)
8372 if test "$GCC" = yes; then
8373 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'
8374 else
8375 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'
8376 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8377 fi
8378 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8379 hardcode_libdir_separator=:
8380 link_all_deplibs=yes
8381 ;;
8382
8383 netbsd*)
8384 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8385 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8386 else
8387 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8388 fi
8389 hardcode_libdir_flag_spec='-R$libdir'
8390 hardcode_direct=yes
8391 hardcode_shlibpath_var=no
8392 ;;
8393
8394 newsos6)
8395 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8396 hardcode_direct=yes
8397 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8398 hardcode_libdir_separator=:
8399 hardcode_shlibpath_var=no
8400 ;;
8401
8402 openbsd*)
8403 hardcode_direct=yes
8404 hardcode_shlibpath_var=no
8405 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8406 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8407 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8408 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8409 export_dynamic_flag_spec='${wl}-E'
8410 else
8411 case $host_os in
8412 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8413 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8414 hardcode_libdir_flag_spec='-R$libdir'
8415 ;;
8416 *)
8417 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8418 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8419 ;;
8420 esac
8421 fi
8422 ;;
8423
8424 os2*)
8425 hardcode_libdir_flag_spec='-L$libdir'
8426 hardcode_minus_L=yes
8427 allow_undefined_flag=unsupported
8428 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'
8429 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8430 ;;
8431
8432 osf3*)
8433 if test "$GCC" = yes; then
8434 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8435 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'
8436 else
8437 allow_undefined_flag=' -expect_unresolved \*'
8438 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'
8439 fi
8440 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8441 hardcode_libdir_separator=:
8442 ;;
8443
8444 osf4* | osf5*) # as osf3* with the addition of -msym flag
8445 if test "$GCC" = yes; then
8446 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8447 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'
8448 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8449 else
8450 allow_undefined_flag=' -expect_unresolved \*'
8451 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'
8452 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8453 $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'
8454
8455 # Both c and cxx compiler support -rpath directly
8456 hardcode_libdir_flag_spec='-rpath $libdir'
8457 fi
8458 hardcode_libdir_separator=:
8459 ;;
8460
8461 solaris*)
8462 no_undefined_flag=' -z text'
8463 if test "$GCC" = yes; then
8464 wlarc='${wl}'
8465 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8466 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8467 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8468 else
8469 wlarc=''
8470 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8471 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8472 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8473 fi
8474 hardcode_libdir_flag_spec='-R$libdir'
8475 hardcode_shlibpath_var=no
8476 case $host_os in
8477 solaris2.[0-5] | solaris2.[0-5].*) ;;
8478 *)
8479 # The compiler driver will combine linker options so we
8480 # cannot just pass the convience library names through
8481 # without $wl, iff we do not link with $LD.
8482 # Luckily, gcc supports the same syntax we need for Sun Studio.
8483 # Supported since Solaris 2.6 (maybe 2.5.1?)
8484 case $wlarc in
8485 '')
8486 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8487 *)
8488 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
8489 esac ;;
8490 esac
8491 link_all_deplibs=yes
8492 ;;
8493
8494 sunos4*)
8495 if test "x$host_vendor" = xsequent; then
8496 # Use $CC to link under sequent, because it throws in some extra .o
8497 # files that make .init and .fini sections work.
8498 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8499 else
8500 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8501 fi
8502 hardcode_libdir_flag_spec='-L$libdir'
8503 hardcode_direct=yes
8504 hardcode_minus_L=yes
8505 hardcode_shlibpath_var=no
8506 ;;
8507
8508 sysv4)
8509 case $host_vendor in
8510 sni)
8511 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8512 hardcode_direct=yes # is this really true???
8513 ;;
8514 siemens)
8515 ## LD is ld it makes a PLAMLIB
8516 ## CC just makes a GrossModule.
8517 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8518 reload_cmds='$CC -r -o $output$reload_objs'
8519 hardcode_direct=no
8520 ;;
8521 motorola)
8522 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8523 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8524 ;;
8525 esac
8526 runpath_var='LD_RUN_PATH'
8527 hardcode_shlibpath_var=no
8528 ;;
8529
8530 sysv4.3*)
8531 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8532 hardcode_shlibpath_var=no
8533 export_dynamic_flag_spec='-Bexport'
8534 ;;
8535
8536 sysv4*MP*)
8537 if test -d /usr/nec; then
8538 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8539 hardcode_shlibpath_var=no
8540 runpath_var=LD_RUN_PATH
8541 hardcode_runpath_var=yes
8542 ld_shlibs=yes
8543 fi
8544 ;;
8545
8546 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8547 no_undefined_flag='${wl}-z,text'
8548 archive_cmds_need_lc=no
8549 hardcode_shlibpath_var=no
8550 runpath_var='LD_RUN_PATH'
8551
8552 if test "$GCC" = yes; then
8553 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8554 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8555 else
8556 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8557 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8558 fi
8559 ;;
8560
8561 sysv5* | sco3.2v5* | sco5v6*)
8562 # Note: We can NOT use -z defs as we might desire, because we do not
8563 # link with -lc, and that would cause any symbols used from libc to
8564 # always be unresolved, which means just about no library would
8565 # ever link correctly. If we're not using GNU ld we use -z text
8566 # though, which does catch some bad symbols but isn't as heavy-handed
8567 # as -z defs.
8568 no_undefined_flag='${wl}-z,text'
8569 allow_undefined_flag='${wl}-z,nodefs'
8570 archive_cmds_need_lc=no
8571 hardcode_shlibpath_var=no
8572 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8573 hardcode_libdir_separator=':'
8574 link_all_deplibs=yes
8575 export_dynamic_flag_spec='${wl}-Bexport'
8576 runpath_var='LD_RUN_PATH'
8577
8578 if test "$GCC" = yes; then
8579 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8580 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8581 else
8582 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8583 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8584 fi
8585 ;;
8586
8587 uts4*)
8588 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8589 hardcode_libdir_flag_spec='-L$libdir'
8590 hardcode_shlibpath_var=no
8591 ;;
8592
8593 *)
8594 ld_shlibs=no
8595 ;;
8596 esac
8597 fi
8598
64ff59ba 8599{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8600echo "${ECHO_T}$ld_shlibs" >&6; }
d9898ee8 8601test "$ld_shlibs" = no && can_build_shared=no
8602
8603#
8604# Do we need to explicitly link libc?
8605#
8606case "x$archive_cmds_need_lc" in
8607x|xyes)
8608 # Assume -lc should be added
8609 archive_cmds_need_lc=yes
8610
8611 if test "$enable_shared" = yes && test "$GCC" = yes; then
8612 case $archive_cmds in
8613 *'~'*)
8614 # FIXME: we may have to deal with multi-command sequences.
8615 ;;
8616 '$CC '*)
8617 # Test whether the compiler implicitly links with -lc since on some
8618 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8619 # to ld, don't add -lc before -lgcc.
64ff59ba 8620 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8621echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
d9898ee8 8622 $rm conftest*
8623 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8624
8625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8626 (eval $ac_compile) 2>&5
8627 ac_status=$?
8628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8629 (exit $ac_status); } 2>conftest.err; then
8630 soname=conftest
8631 lib=conftest
8632 libobjs=conftest.$ac_objext
8633 deplibs=
8634 wl=$lt_prog_compiler_wl
8635 pic_flag=$lt_prog_compiler_pic
8636 compiler_flags=-v
8637 linker_flags=-v
8638 verstring=
8639 output_objdir=.
8640 libname=conftest
8641 lt_save_allow_undefined_flag=$allow_undefined_flag
8642 allow_undefined_flag=
8643 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8644 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8645 ac_status=$?
8646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8647 (exit $ac_status); }
8648 then
8649 archive_cmds_need_lc=no
8650 else
8651 archive_cmds_need_lc=yes
8652 fi
8653 allow_undefined_flag=$lt_save_allow_undefined_flag
8654 else
8655 cat conftest.err 1>&5
8656 fi
8657 $rm conftest*
64ff59ba 8658 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8659echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
d9898ee8 8660 ;;
8661 esac
8662 fi
8663 ;;
8664esac
8665
64ff59ba 8666{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8667echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
d9898ee8 8668library_names_spec=
8669libname_spec='lib$name'
8670soname_spec=
8671shrext_cmds=".so"
8672postinstall_cmds=
8673postuninstall_cmds=
8674finish_cmds=
8675finish_eval=
8676shlibpath_var=
8677shlibpath_overrides_runpath=unknown
8678version_type=none
8679dynamic_linker="$host_os ld.so"
8680sys_lib_dlsearch_path_spec="/lib /usr/lib"
8681if test "$GCC" = yes; then
8682 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8683 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8684 # if the path contains ";" then we assume it to be the separator
8685 # otherwise default to the standard path separator (i.e. ":") - it is
8686 # assumed that no part of a normal pathname contains ";" but that should
8687 # okay in the real world where ";" in dirpaths is itself problematic.
8688 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8689 else
8690 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8691 fi
8692else
8693 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8694fi
8695need_lib_prefix=unknown
8696hardcode_into_libs=no
8697
8698# when you set need_version to no, make sure it does not cause -set_version
8699# flags to be left without arguments
8700need_version=unknown
8701
8702case $host_os in
8703aix3*)
8704 version_type=linux
8705 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8706 shlibpath_var=LIBPATH
8707
8708 # AIX 3 has no versioning support, so we append a major version to the name.
8709 soname_spec='${libname}${release}${shared_ext}$major'
8710 ;;
8711
8712aix4* | aix5*)
8713 version_type=linux
8714 need_lib_prefix=no
8715 need_version=no
8716 hardcode_into_libs=yes
8717 if test "$host_cpu" = ia64; then
8718 # AIX 5 supports IA64
8719 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8720 shlibpath_var=LD_LIBRARY_PATH
8721 else
8722 # With GCC up to 2.95.x, collect2 would create an import file
8723 # for dependence libraries. The import file would start with
8724 # the line `#! .'. This would cause the generated library to
8725 # depend on `.', always an invalid library. This was fixed in
8726 # development snapshots of GCC prior to 3.0.
8727 case $host_os in
8728 aix4 | aix4.[01] | aix4.[01].*)
8729 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8730 echo ' yes '
8731 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8732 :
8733 else
8734 can_build_shared=no
8735 fi
8736 ;;
8737 esac
8738 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8739 # soname into executable. Probably we can add versioning support to
8740 # collect2, so additional links can be useful in future.
8741 if test "$aix_use_runtimelinking" = yes; then
8742 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8743 # instead of lib<name>.a to let people know that these are not
8744 # typical AIX shared libraries.
8745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8746 else
8747 # We preserve .a as extension for shared libraries through AIX4.2
8748 # and later when we are not doing run time linking.
8749 library_names_spec='${libname}${release}.a $libname.a'
8750 soname_spec='${libname}${release}${shared_ext}$major'
8751 fi
8752 shlibpath_var=LIBPATH
8753 fi
8754 ;;
8755
8756amigaos*)
8757 library_names_spec='$libname.ixlibrary $libname.a'
8758 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8759 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'
8760 ;;
8761
8762beos*)
8763 library_names_spec='${libname}${shared_ext}'
8764 dynamic_linker="$host_os ld.so"
8765 shlibpath_var=LIBRARY_PATH
8766 ;;
8767
8768bsdi[45]*)
8769 version_type=linux
8770 need_version=no
8771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8772 soname_spec='${libname}${release}${shared_ext}$major'
8773 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8774 shlibpath_var=LD_LIBRARY_PATH
8775 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8776 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8777 # the default ld.so.conf also contains /usr/contrib/lib and
8778 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8779 # libtool to hard-code these into programs
8780 ;;
8781
8782cygwin* | mingw* | pw32*)
8783 version_type=windows
8784 shrext_cmds=".dll"
8785 need_version=no
8786 need_lib_prefix=no
8787
8788 case $GCC,$host_os in
8789 yes,cygwin* | yes,mingw* | yes,pw32*)
8790 library_names_spec='$libname.dll.a'
8791 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8792 postinstall_cmds='base_file=`basename \${file}`~
8793 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8794 dldir=$destdir/`dirname \$dlpath`~
8795 test -d \$dldir || mkdir -p \$dldir~
8796 $install_prog $dir/$dlname \$dldir/$dlname~
8797 chmod a+x \$dldir/$dlname'
8798 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8799 dlpath=$dir/\$dldll~
8800 $rm \$dlpath'
8801 shlibpath_overrides_runpath=yes
8802
8803 case $host_os in
8804 cygwin*)
8805 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8806 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8807 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8808 ;;
8809 mingw*)
8810 # MinGW DLLs use traditional 'lib' prefix
8811 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8812 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8813 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8814 # It is most probably a Windows format PATH printed by
8815 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8816 # path with ; separators, and with drive letters. We can handle the
8817 # drive letters (cygwin fileutils understands them), so leave them,
8818 # especially as we might pass files found there to a mingw objdump,
8819 # which wouldn't understand a cygwinified path. Ahh.
8820 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8821 else
8822 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8823 fi
8824 ;;
8825 pw32*)
8826 # pw32 DLLs use 'pw' prefix rather than 'lib'
8827 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8828 ;;
8829 esac
8830 ;;
8831
8832 *)
8833 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8834 ;;
8835 esac
8836 dynamic_linker='Win32 ld.exe'
8837 # FIXME: first we should search . and the directory the executable is in
8838 shlibpath_var=PATH
8839 ;;
8840
8841darwin* | rhapsody*)
8842 dynamic_linker="$host_os dyld"
8843 version_type=darwin
8844 need_lib_prefix=no
8845 need_version=no
8846 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8847 soname_spec='${libname}${release}${major}$shared_ext'
8848 shlibpath_overrides_runpath=yes
8849 shlibpath_var=DYLD_LIBRARY_PATH
8850 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8851 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8852 if test "$GCC" = yes; then
8853 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
8854 else
8855 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8856 fi
8857 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8858 ;;
8859
8860dgux*)
8861 version_type=linux
8862 need_lib_prefix=no
8863 need_version=no
8864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8865 soname_spec='${libname}${release}${shared_ext}$major'
8866 shlibpath_var=LD_LIBRARY_PATH
8867 ;;
8868
8869freebsd1*)
8870 dynamic_linker=no
8871 ;;
8872
8873kfreebsd*-gnu)
8874 version_type=linux
8875 need_lib_prefix=no
8876 need_version=no
8877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8878 soname_spec='${libname}${release}${shared_ext}$major'
8879 shlibpath_var=LD_LIBRARY_PATH
8880 shlibpath_overrides_runpath=no
8881 hardcode_into_libs=yes
8882 dynamic_linker='GNU ld.so'
8883 ;;
8884
8885freebsd* | dragonfly*)
8886 # DragonFly does not have aout. When/if they implement a new
8887 # versioning mechanism, adjust this.
8888 if test -x /usr/bin/objformat; then
8889 objformat=`/usr/bin/objformat`
8890 else
8891 case $host_os in
8892 freebsd[123]*) objformat=aout ;;
8893 *) objformat=elf ;;
8894 esac
8895 fi
8896 version_type=freebsd-$objformat
8897 case $version_type in
8898 freebsd-elf*)
8899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8900 need_version=no
8901 need_lib_prefix=no
8902 ;;
8903 freebsd-*)
8904 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8905 need_version=yes
8906 ;;
8907 esac
8908 shlibpath_var=LD_LIBRARY_PATH
8909 case $host_os in
8910 freebsd2*)
8911 shlibpath_overrides_runpath=yes
8912 ;;
8913 freebsd3.[01]* | freebsdelf3.[01]*)
8914 shlibpath_overrides_runpath=yes
8915 hardcode_into_libs=yes
8916 ;;
8917 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8918 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8919 shlibpath_overrides_runpath=no
8920 hardcode_into_libs=yes
8921 ;;
8922 freebsd*) # from 4.6 on
8923 shlibpath_overrides_runpath=yes
8924 hardcode_into_libs=yes
8925 ;;
8926 esac
8927 ;;
8928
8929gnu*)
8930 version_type=linux
8931 need_lib_prefix=no
8932 need_version=no
8933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8934 soname_spec='${libname}${release}${shared_ext}$major'
8935 shlibpath_var=LD_LIBRARY_PATH
8936 hardcode_into_libs=yes
8937 ;;
8938
8939hpux9* | hpux10* | hpux11*)
8940 # Give a soname corresponding to the major version so that dld.sl refuses to
8941 # link against other versions.
8942 version_type=sunos
8943 need_lib_prefix=no
8944 need_version=no
8945 case $host_cpu in
8946 ia64*)
8947 shrext_cmds='.so'
8948 hardcode_into_libs=yes
8949 dynamic_linker="$host_os dld.so"
8950 shlibpath_var=LD_LIBRARY_PATH
8951 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8953 soname_spec='${libname}${release}${shared_ext}$major'
8954 if test "X$HPUX_IA64_MODE" = X32; then
8955 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8956 else
8957 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8958 fi
8959 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8960 ;;
8961 hppa*64*)
8962 shrext_cmds='.sl'
8963 hardcode_into_libs=yes
8964 dynamic_linker="$host_os dld.sl"
8965 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8966 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8968 soname_spec='${libname}${release}${shared_ext}$major'
8969 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8970 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8971 ;;
8972 *)
8973 shrext_cmds='.sl'
8974 dynamic_linker="$host_os dld.sl"
8975 shlibpath_var=SHLIB_PATH
8976 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8978 soname_spec='${libname}${release}${shared_ext}$major'
8979 ;;
8980 esac
8981 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8982 postinstall_cmds='chmod 555 $lib'
8983 ;;
8984
8985interix3*)
8986 version_type=linux
8987 need_lib_prefix=no
8988 need_version=no
8989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8990 soname_spec='${libname}${release}${shared_ext}$major'
8991 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8992 shlibpath_var=LD_LIBRARY_PATH
8993 shlibpath_overrides_runpath=no
8994 hardcode_into_libs=yes
8995 ;;
8996
8997irix5* | irix6* | nonstopux*)
8998 case $host_os in
8999 nonstopux*) version_type=nonstopux ;;
9000 *)
9001 if test "$lt_cv_prog_gnu_ld" = yes; then
9002 version_type=linux
9003 else
9004 version_type=irix
9005 fi ;;
9006 esac
9007 need_lib_prefix=no
9008 need_version=no
9009 soname_spec='${libname}${release}${shared_ext}$major'
9010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9011 case $host_os in
9012 irix5* | nonstopux*)
9013 libsuff= shlibsuff=
9014 ;;
9015 *)
9016 case $LD in # libtool.m4 will add one of these switches to LD
9017 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9018 libsuff= shlibsuff= libmagic=32-bit;;
9019 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9020 libsuff=32 shlibsuff=N32 libmagic=N32;;
9021 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9022 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9023 *) libsuff= shlibsuff= libmagic=never-match;;
9024 esac
9025 ;;
9026 esac
9027 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9028 shlibpath_overrides_runpath=no
9029 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9030 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9031 hardcode_into_libs=yes
9032 ;;
9033
9034# No shared lib support for Linux oldld, aout, or coff.
9035linux*oldld* | linux*aout* | linux*coff*)
9036 dynamic_linker=no
9037 ;;
9038
9039# This must be Linux ELF.
9040linux*)
9041 version_type=linux
9042 need_lib_prefix=no
9043 need_version=no
9044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9045 soname_spec='${libname}${release}${shared_ext}$major'
9046 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9047 shlibpath_var=LD_LIBRARY_PATH
9048 shlibpath_overrides_runpath=no
9049 # This implies no fast_install, which is unacceptable.
9050 # Some rework will be needed to allow for fast_install
9051 # before this can be enabled.
9052 hardcode_into_libs=yes
9053
9054 # find out which ABI we are using
9055 libsuff=
9056 case "$host_cpu" in
9057 x86_64*|s390x*|powerpc64*)
64ff59ba 9058 echo '#line 9058 "configure"' > conftest.$ac_ext
d9898ee8 9059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9060 (eval $ac_compile) 2>&5
9061 ac_status=$?
9062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9063 (exit $ac_status); }; then
9064 case `/usr/bin/file conftest.$ac_objext` in
9065 *64-bit*)
9066 libsuff=64
9067 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
9068 ;;
9069 esac
9070 fi
9071 rm -rf conftest*
9072 ;;
9073 esac
9074
9075 # Append ld.so.conf contents to the search path
9076 if test -f /etc/ld.so.conf; then
64ff59ba 9077 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/^ *//;s/#.*//;/^[^\/]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
d9898ee8 9078 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
9079 fi
9080
9081 # We used to test for /lib/ld.so.1 and disable shared libraries on
9082 # powerpc, because MkLinux only supported shared libraries with the
9083 # GNU dynamic linker. Since this was broken with cross compilers,
9084 # most powerpc-linux boxes support dynamic linking these days and
9085 # people can always --disable-shared, the test was removed, and we
9086 # assume the GNU/Linux dynamic linker is in use.
9087 dynamic_linker='GNU/Linux ld.so'
9088 ;;
9089
9090knetbsd*-gnu)
9091 version_type=linux
9092 need_lib_prefix=no
9093 need_version=no
9094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9095 soname_spec='${libname}${release}${shared_ext}$major'
9096 shlibpath_var=LD_LIBRARY_PATH
9097 shlibpath_overrides_runpath=no
9098 hardcode_into_libs=yes
9099 dynamic_linker='GNU ld.so'
9100 ;;
9101
9102netbsd*)
9103 version_type=sunos
9104 need_lib_prefix=no
9105 need_version=no
9106 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9108 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9109 dynamic_linker='NetBSD (a.out) ld.so'
9110 else
9111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9112 soname_spec='${libname}${release}${shared_ext}$major'
9113 dynamic_linker='NetBSD ld.elf_so'
9114 fi
9115 shlibpath_var=LD_LIBRARY_PATH
9116 shlibpath_overrides_runpath=yes
9117 hardcode_into_libs=yes
9118 ;;
9119
9120newsos6)
9121 version_type=linux
9122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9123 shlibpath_var=LD_LIBRARY_PATH
9124 shlibpath_overrides_runpath=yes
9125 ;;
9126
9127nto-qnx*)
9128 version_type=linux
9129 need_lib_prefix=no
9130 need_version=no
9131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9132 soname_spec='${libname}${release}${shared_ext}$major'
9133 shlibpath_var=LD_LIBRARY_PATH
9134 shlibpath_overrides_runpath=yes
9135 ;;
9136
9137openbsd*)
9138 version_type=sunos
9139 sys_lib_dlsearch_path_spec="/usr/lib"
9140 need_lib_prefix=no
9141 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9142 case $host_os in
9143 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9144 *) need_version=no ;;
9145 esac
9146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9147 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9148 shlibpath_var=LD_LIBRARY_PATH
9149 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9150 case $host_os in
9151 openbsd2.[89] | openbsd2.[89].*)
9152 shlibpath_overrides_runpath=no
9153 ;;
9154 *)
9155 shlibpath_overrides_runpath=yes
9156 ;;
9157 esac
9158 else
9159 shlibpath_overrides_runpath=yes
9160 fi
9161 ;;
9162
9163os2*)
9164 libname_spec='$name'
9165 shrext_cmds=".dll"
9166 need_lib_prefix=no
9167 library_names_spec='$libname${shared_ext} $libname.a'
9168 dynamic_linker='OS/2 ld.exe'
9169 shlibpath_var=LIBPATH
9170 ;;
9171
9172osf3* | osf4* | osf5*)
9173 version_type=osf
9174 need_lib_prefix=no
9175 need_version=no
9176 soname_spec='${libname}${release}${shared_ext}$major'
9177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9178 shlibpath_var=LD_LIBRARY_PATH
9179 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9180 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9181 ;;
9182
9183solaris*)
9184 version_type=linux
9185 need_lib_prefix=no
9186 need_version=no
9187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9188 soname_spec='${libname}${release}${shared_ext}$major'
9189 shlibpath_var=LD_LIBRARY_PATH
9190 shlibpath_overrides_runpath=yes
9191 hardcode_into_libs=yes
9192 # ldd complains unless libraries are executable
9193 postinstall_cmds='chmod +x $lib'
9194 ;;
9195
9196sunos4*)
9197 version_type=sunos
9198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9199 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9200 shlibpath_var=LD_LIBRARY_PATH
9201 shlibpath_overrides_runpath=yes
9202 if test "$with_gnu_ld" = yes; then
9203 need_lib_prefix=no
9204 fi
9205 need_version=yes
9206 ;;
9207
9208sysv4 | sysv4.3*)
9209 version_type=linux
9210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9211 soname_spec='${libname}${release}${shared_ext}$major'
9212 shlibpath_var=LD_LIBRARY_PATH
9213 case $host_vendor in
9214 sni)
9215 shlibpath_overrides_runpath=no
9216 need_lib_prefix=no
9217 export_dynamic_flag_spec='${wl}-Blargedynsym'
9218 runpath_var=LD_RUN_PATH
9219 ;;
9220 siemens)
9221 need_lib_prefix=no
9222 ;;
9223 motorola)
9224 need_lib_prefix=no
9225 need_version=no
9226 shlibpath_overrides_runpath=no
9227 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9228 ;;
9229 esac
9230 ;;
9231
9232sysv4*MP*)
9233 if test -d /usr/nec ;then
9234 version_type=linux
9235 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9236 soname_spec='$libname${shared_ext}.$major'
9237 shlibpath_var=LD_LIBRARY_PATH
9238 fi
9239 ;;
9240
9241sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9242 version_type=freebsd-elf
9243 need_lib_prefix=no
9244 need_version=no
9245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9246 soname_spec='${libname}${release}${shared_ext}$major'
9247 shlibpath_var=LD_LIBRARY_PATH
9248 hardcode_into_libs=yes
9249 if test "$with_gnu_ld" = yes; then
9250 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9251 shlibpath_overrides_runpath=no
9252 else
9253 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9254 shlibpath_overrides_runpath=yes
9255 case $host_os in
9256 sco3.2v5*)
9257 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9258 ;;
9259 esac
9260 fi
9261 sys_lib_dlsearch_path_spec='/usr/lib'
9262 ;;
9263
9264uts4*)
9265 version_type=linux
9266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9267 soname_spec='${libname}${release}${shared_ext}$major'
9268 shlibpath_var=LD_LIBRARY_PATH
9269 ;;
9270
9271*)
9272 dynamic_linker=no
9273 ;;
9274esac
64ff59ba 9275{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9276echo "${ECHO_T}$dynamic_linker" >&6; }
d9898ee8 9277test "$dynamic_linker" = no && can_build_shared=no
9278
9279variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9280if test "$GCC" = yes; then
9281 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9282fi
9283
64ff59ba 9284{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9285echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
d9898ee8 9286hardcode_action=
9287if test -n "$hardcode_libdir_flag_spec" || \
9288 test -n "$runpath_var" || \
9289 test "X$hardcode_automatic" = "Xyes" ; then
9290
9291 # We can hardcode non-existant directories.
9292 if test "$hardcode_direct" != no &&
9293 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9294 # have to relink, otherwise we might link with an installed library
9295 # when we should be linking with a yet-to-be-installed one
9296 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9297 test "$hardcode_minus_L" != no; then
9298 # Linking always hardcodes the temporary library directory.
9299 hardcode_action=relink
9300 else
9301 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9302 hardcode_action=immediate
9303 fi
9304else
9305 # We cannot hardcode anything, or else we can only hardcode existing
9306 # directories.
9307 hardcode_action=unsupported
9308fi
64ff59ba 9309{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
9310echo "${ECHO_T}$hardcode_action" >&6; }
d9898ee8 9311
9312if test "$hardcode_action" = relink; then
9313 # Fast installation is not supported
9314 enable_fast_install=no
9315elif test "$shlibpath_overrides_runpath" = yes ||
9316 test "$enable_shared" = no; then
9317 # Fast installation is not necessary
9318 enable_fast_install=needless
9319fi
9320
9321striplib=
9322old_striplib=
64ff59ba 9323{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9324echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
d9898ee8 9325if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9326 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9327 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
64ff59ba 9328 { echo "$as_me:$LINENO: result: yes" >&5
9329echo "${ECHO_T}yes" >&6; }
d9898ee8 9330else
9331# FIXME - insert some real tests, host_os isn't really good enough
9332 case $host_os in
9333 darwin*)
9334 if test -n "$STRIP" ; then
9335 striplib="$STRIP -x"
64ff59ba 9336 { echo "$as_me:$LINENO: result: yes" >&5
9337echo "${ECHO_T}yes" >&6; }
d9898ee8 9338 else
64ff59ba 9339 { echo "$as_me:$LINENO: result: no" >&5
9340echo "${ECHO_T}no" >&6; }
d9898ee8 9341fi
9342 ;;
9343 *)
64ff59ba 9344 { echo "$as_me:$LINENO: result: no" >&5
9345echo "${ECHO_T}no" >&6; }
d9898ee8 9346 ;;
9347 esac
9348fi
9349
9350if test "x$enable_dlopen" != xyes; then
9351 enable_dlopen=unknown
9352 enable_dlopen_self=unknown
9353 enable_dlopen_self_static=unknown
9354else
9355 lt_cv_dlopen=no
9356 lt_cv_dlopen_libs=
9357
9358 case $host_os in
9359 beos*)
9360 lt_cv_dlopen="load_add_on"
9361 lt_cv_dlopen_libs=
9362 lt_cv_dlopen_self=yes
9363 ;;
9364
9365 mingw* | pw32*)
9366 lt_cv_dlopen="LoadLibrary"
9367 lt_cv_dlopen_libs=
9368 ;;
9369
9370 cygwin*)
9371 lt_cv_dlopen="dlopen"
9372 lt_cv_dlopen_libs=
9373 ;;
9374
9375 darwin*)
9376 # if libdl is installed we need to link against it
64ff59ba 9377 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9378echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
d9898ee8 9379if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9380 echo $ECHO_N "(cached) $ECHO_C" >&6
9381else
9382 ac_check_lib_save_LIBS=$LIBS
9383LIBS="-ldl $LIBS"
9384cat >conftest.$ac_ext <<_ACEOF
9385/* confdefs.h. */
9386_ACEOF
9387cat confdefs.h >>conftest.$ac_ext
9388cat >>conftest.$ac_ext <<_ACEOF
9389/* end confdefs.h. */
9390
64ff59ba 9391/* Override any GCC internal prototype to avoid an error.
9392 Use char because int might match the return type of a GCC
9393 builtin and then its argument prototype would still apply. */
d9898ee8 9394#ifdef __cplusplus
9395extern "C"
9396#endif
d9898ee8 9397char dlopen ();
9398int
9399main ()
9400{
64ff59ba 9401return dlopen ();
d9898ee8 9402 ;
9403 return 0;
9404}
9405_ACEOF
9406rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 9407if { (ac_try="$ac_link"
9408case "(($ac_try" in
9409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9410 *) ac_try_echo=$ac_try;;
9411esac
9412eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9413 (eval "$ac_link") 2>conftest.er1
d9898ee8 9414 ac_status=$?
9415 grep -v '^ *+' conftest.er1 >conftest.err
9416 rm -f conftest.er1
9417 cat conftest.err >&5
9418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 9419 (exit $ac_status); } && {
9420 test -z "$ac_c_werror_flag" ||
9421 test ! -s conftest.err
9422 } && test -s conftest$ac_exeext &&
9423 $as_test_x conftest$ac_exeext; then
d9898ee8 9424 ac_cv_lib_dl_dlopen=yes
9425else
9426 echo "$as_me: failed program was:" >&5
9427sed 's/^/| /' conftest.$ac_ext >&5
9428
64ff59ba 9429 ac_cv_lib_dl_dlopen=no
d9898ee8 9430fi
64ff59ba 9431
9432rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 9433 conftest$ac_exeext conftest.$ac_ext
9434LIBS=$ac_check_lib_save_LIBS
9435fi
64ff59ba 9436{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9437echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
d9898ee8 9438if test $ac_cv_lib_dl_dlopen = yes; then
9439 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9440else
9441
9442 lt_cv_dlopen="dyld"
9443 lt_cv_dlopen_libs=
9444 lt_cv_dlopen_self=yes
9445
9446fi
9447
9448 ;;
9449
9450 *)
64ff59ba 9451 { echo "$as_me:$LINENO: checking for shl_load" >&5
9452echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
d9898ee8 9453if test "${ac_cv_func_shl_load+set}" = set; then
9454 echo $ECHO_N "(cached) $ECHO_C" >&6
9455else
9456 cat >conftest.$ac_ext <<_ACEOF
9457/* confdefs.h. */
9458_ACEOF
9459cat confdefs.h >>conftest.$ac_ext
9460cat >>conftest.$ac_ext <<_ACEOF
9461/* end confdefs.h. */
9462/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9463 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9464#define shl_load innocuous_shl_load
9465
9466/* System header to define __stub macros and hopefully few prototypes,
9467 which can conflict with char shl_load (); below.
9468 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9469 <limits.h> exists even on freestanding compilers. */
9470
9471#ifdef __STDC__
9472# include <limits.h>
9473#else
9474# include <assert.h>
9475#endif
9476
9477#undef shl_load
9478
64ff59ba 9479/* Override any GCC internal prototype to avoid an error.
9480 Use char because int might match the return type of a GCC
9481 builtin and then its argument prototype would still apply. */
d9898ee8 9482#ifdef __cplusplus
9483extern "C"
d9898ee8 9484#endif
d9898ee8 9485char shl_load ();
9486/* The GNU C library defines this for functions which it implements
9487 to always fail with ENOSYS. Some functions are actually named
9488 something starting with __ and the normal name is an alias. */
64ff59ba 9489#if defined __stub_shl_load || defined __stub___shl_load
d9898ee8 9490choke me
d9898ee8 9491#endif
9492
9493int
9494main ()
9495{
64ff59ba 9496return shl_load ();
d9898ee8 9497 ;
9498 return 0;
9499}
9500_ACEOF
9501rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 9502if { (ac_try="$ac_link"
9503case "(($ac_try" in
9504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9505 *) ac_try_echo=$ac_try;;
9506esac
9507eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9508 (eval "$ac_link") 2>conftest.er1
d9898ee8 9509 ac_status=$?
9510 grep -v '^ *+' conftest.er1 >conftest.err
9511 rm -f conftest.er1
9512 cat conftest.err >&5
9513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 9514 (exit $ac_status); } && {
9515 test -z "$ac_c_werror_flag" ||
9516 test ! -s conftest.err
9517 } && test -s conftest$ac_exeext &&
9518 $as_test_x conftest$ac_exeext; then
d9898ee8 9519 ac_cv_func_shl_load=yes
9520else
9521 echo "$as_me: failed program was:" >&5
9522sed 's/^/| /' conftest.$ac_ext >&5
9523
64ff59ba 9524 ac_cv_func_shl_load=no
d9898ee8 9525fi
64ff59ba 9526
9527rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 9528 conftest$ac_exeext conftest.$ac_ext
9529fi
64ff59ba 9530{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9531echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
d9898ee8 9532if test $ac_cv_func_shl_load = yes; then
9533 lt_cv_dlopen="shl_load"
9534else
64ff59ba 9535 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9536echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
d9898ee8 9537if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9538 echo $ECHO_N "(cached) $ECHO_C" >&6
9539else
9540 ac_check_lib_save_LIBS=$LIBS
9541LIBS="-ldld $LIBS"
9542cat >conftest.$ac_ext <<_ACEOF
9543/* confdefs.h. */
9544_ACEOF
9545cat confdefs.h >>conftest.$ac_ext
9546cat >>conftest.$ac_ext <<_ACEOF
9547/* end confdefs.h. */
9548
64ff59ba 9549/* Override any GCC internal prototype to avoid an error.
9550 Use char because int might match the return type of a GCC
9551 builtin and then its argument prototype would still apply. */
d9898ee8 9552#ifdef __cplusplus
9553extern "C"
9554#endif
d9898ee8 9555char shl_load ();
9556int
9557main ()
9558{
64ff59ba 9559return shl_load ();
d9898ee8 9560 ;
9561 return 0;
9562}
9563_ACEOF
9564rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 9565if { (ac_try="$ac_link"
9566case "(($ac_try" in
9567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9568 *) ac_try_echo=$ac_try;;
9569esac
9570eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9571 (eval "$ac_link") 2>conftest.er1
d9898ee8 9572 ac_status=$?
9573 grep -v '^ *+' conftest.er1 >conftest.err
9574 rm -f conftest.er1
9575 cat conftest.err >&5
9576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 9577 (exit $ac_status); } && {
9578 test -z "$ac_c_werror_flag" ||
9579 test ! -s conftest.err
9580 } && test -s conftest$ac_exeext &&
9581 $as_test_x conftest$ac_exeext; then
d9898ee8 9582 ac_cv_lib_dld_shl_load=yes
9583else
9584 echo "$as_me: failed program was:" >&5
9585sed 's/^/| /' conftest.$ac_ext >&5
9586
64ff59ba 9587 ac_cv_lib_dld_shl_load=no
d9898ee8 9588fi
64ff59ba 9589
9590rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 9591 conftest$ac_exeext conftest.$ac_ext
9592LIBS=$ac_check_lib_save_LIBS
9593fi
64ff59ba 9594{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9595echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
d9898ee8 9596if test $ac_cv_lib_dld_shl_load = yes; then
9597 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9598else
64ff59ba 9599 { echo "$as_me:$LINENO: checking for dlopen" >&5
9600echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
d9898ee8 9601if test "${ac_cv_func_dlopen+set}" = set; then
9602 echo $ECHO_N "(cached) $ECHO_C" >&6
9603else
9604 cat >conftest.$ac_ext <<_ACEOF
9605/* confdefs.h. */
9606_ACEOF
9607cat confdefs.h >>conftest.$ac_ext
9608cat >>conftest.$ac_ext <<_ACEOF
9609/* end confdefs.h. */
9610/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9611 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9612#define dlopen innocuous_dlopen
9613
9614/* System header to define __stub macros and hopefully few prototypes,
9615 which can conflict with char dlopen (); below.
9616 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9617 <limits.h> exists even on freestanding compilers. */
9618
9619#ifdef __STDC__
9620# include <limits.h>
9621#else
9622# include <assert.h>
9623#endif
9624
9625#undef dlopen
9626
64ff59ba 9627/* Override any GCC internal prototype to avoid an error.
9628 Use char because int might match the return type of a GCC
9629 builtin and then its argument prototype would still apply. */
d9898ee8 9630#ifdef __cplusplus
9631extern "C"
d9898ee8 9632#endif
d9898ee8 9633char dlopen ();
9634/* The GNU C library defines this for functions which it implements
9635 to always fail with ENOSYS. Some functions are actually named
9636 something starting with __ and the normal name is an alias. */
64ff59ba 9637#if defined __stub_dlopen || defined __stub___dlopen
d9898ee8 9638choke me
d9898ee8 9639#endif
9640
9641int
9642main ()
9643{
64ff59ba 9644return dlopen ();
d9898ee8 9645 ;
9646 return 0;
9647}
9648_ACEOF
9649rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 9650if { (ac_try="$ac_link"
9651case "(($ac_try" in
9652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9653 *) ac_try_echo=$ac_try;;
9654esac
9655eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9656 (eval "$ac_link") 2>conftest.er1
d9898ee8 9657 ac_status=$?
9658 grep -v '^ *+' conftest.er1 >conftest.err
9659 rm -f conftest.er1
9660 cat conftest.err >&5
9661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 9662 (exit $ac_status); } && {
9663 test -z "$ac_c_werror_flag" ||
9664 test ! -s conftest.err
9665 } && test -s conftest$ac_exeext &&
9666 $as_test_x conftest$ac_exeext; then
d9898ee8 9667 ac_cv_func_dlopen=yes
9668else
9669 echo "$as_me: failed program was:" >&5
9670sed 's/^/| /' conftest.$ac_ext >&5
9671
64ff59ba 9672 ac_cv_func_dlopen=no
d9898ee8 9673fi
64ff59ba 9674
9675rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 9676 conftest$ac_exeext conftest.$ac_ext
9677fi
64ff59ba 9678{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9679echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
d9898ee8 9680if test $ac_cv_func_dlopen = yes; then
9681 lt_cv_dlopen="dlopen"
9682else
64ff59ba 9683 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9684echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
d9898ee8 9685if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9686 echo $ECHO_N "(cached) $ECHO_C" >&6
9687else
9688 ac_check_lib_save_LIBS=$LIBS
9689LIBS="-ldl $LIBS"
9690cat >conftest.$ac_ext <<_ACEOF
9691/* confdefs.h. */
9692_ACEOF
9693cat confdefs.h >>conftest.$ac_ext
9694cat >>conftest.$ac_ext <<_ACEOF
9695/* end confdefs.h. */
9696
64ff59ba 9697/* Override any GCC internal prototype to avoid an error.
9698 Use char because int might match the return type of a GCC
9699 builtin and then its argument prototype would still apply. */
d9898ee8 9700#ifdef __cplusplus
9701extern "C"
9702#endif
d9898ee8 9703char dlopen ();
9704int
9705main ()
9706{
64ff59ba 9707return dlopen ();
d9898ee8 9708 ;
9709 return 0;
9710}
9711_ACEOF
9712rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 9713if { (ac_try="$ac_link"
9714case "(($ac_try" in
9715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9716 *) ac_try_echo=$ac_try;;
9717esac
9718eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9719 (eval "$ac_link") 2>conftest.er1
d9898ee8 9720 ac_status=$?
9721 grep -v '^ *+' conftest.er1 >conftest.err
9722 rm -f conftest.er1
9723 cat conftest.err >&5
9724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 9725 (exit $ac_status); } && {
9726 test -z "$ac_c_werror_flag" ||
9727 test ! -s conftest.err
9728 } && test -s conftest$ac_exeext &&
9729 $as_test_x conftest$ac_exeext; then
d9898ee8 9730 ac_cv_lib_dl_dlopen=yes
9731else
9732 echo "$as_me: failed program was:" >&5
9733sed 's/^/| /' conftest.$ac_ext >&5
9734
64ff59ba 9735 ac_cv_lib_dl_dlopen=no
d9898ee8 9736fi
64ff59ba 9737
9738rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 9739 conftest$ac_exeext conftest.$ac_ext
9740LIBS=$ac_check_lib_save_LIBS
9741fi
64ff59ba 9742{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9743echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
d9898ee8 9744if test $ac_cv_lib_dl_dlopen = yes; then
9745 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9746else
64ff59ba 9747 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9748echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
d9898ee8 9749if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9750 echo $ECHO_N "(cached) $ECHO_C" >&6
9751else
9752 ac_check_lib_save_LIBS=$LIBS
9753LIBS="-lsvld $LIBS"
9754cat >conftest.$ac_ext <<_ACEOF
9755/* confdefs.h. */
9756_ACEOF
9757cat confdefs.h >>conftest.$ac_ext
9758cat >>conftest.$ac_ext <<_ACEOF
9759/* end confdefs.h. */
9760
64ff59ba 9761/* Override any GCC internal prototype to avoid an error.
9762 Use char because int might match the return type of a GCC
9763 builtin and then its argument prototype would still apply. */
d9898ee8 9764#ifdef __cplusplus
9765extern "C"
9766#endif
d9898ee8 9767char dlopen ();
9768int
9769main ()
9770{
64ff59ba 9771return dlopen ();
d9898ee8 9772 ;
9773 return 0;
9774}
9775_ACEOF
9776rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 9777if { (ac_try="$ac_link"
9778case "(($ac_try" in
9779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9780 *) ac_try_echo=$ac_try;;
9781esac
9782eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9783 (eval "$ac_link") 2>conftest.er1
d9898ee8 9784 ac_status=$?
9785 grep -v '^ *+' conftest.er1 >conftest.err
9786 rm -f conftest.er1
9787 cat conftest.err >&5
9788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 9789 (exit $ac_status); } && {
9790 test -z "$ac_c_werror_flag" ||
9791 test ! -s conftest.err
9792 } && test -s conftest$ac_exeext &&
9793 $as_test_x conftest$ac_exeext; then
d9898ee8 9794 ac_cv_lib_svld_dlopen=yes
9795else
9796 echo "$as_me: failed program was:" >&5
9797sed 's/^/| /' conftest.$ac_ext >&5
9798
64ff59ba 9799 ac_cv_lib_svld_dlopen=no
d9898ee8 9800fi
64ff59ba 9801
9802rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 9803 conftest$ac_exeext conftest.$ac_ext
9804LIBS=$ac_check_lib_save_LIBS
9805fi
64ff59ba 9806{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9807echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
d9898ee8 9808if test $ac_cv_lib_svld_dlopen = yes; then
9809 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9810else
64ff59ba 9811 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9812echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
d9898ee8 9813if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9814 echo $ECHO_N "(cached) $ECHO_C" >&6
9815else
9816 ac_check_lib_save_LIBS=$LIBS
9817LIBS="-ldld $LIBS"
9818cat >conftest.$ac_ext <<_ACEOF
9819/* confdefs.h. */
9820_ACEOF
9821cat confdefs.h >>conftest.$ac_ext
9822cat >>conftest.$ac_ext <<_ACEOF
9823/* end confdefs.h. */
9824
64ff59ba 9825/* Override any GCC internal prototype to avoid an error.
9826 Use char because int might match the return type of a GCC
9827 builtin and then its argument prototype would still apply. */
d9898ee8 9828#ifdef __cplusplus
9829extern "C"
9830#endif
d9898ee8 9831char dld_link ();
9832int
9833main ()
9834{
64ff59ba 9835return dld_link ();
d9898ee8 9836 ;
9837 return 0;
9838}
9839_ACEOF
9840rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 9841if { (ac_try="$ac_link"
9842case "(($ac_try" in
9843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9844 *) ac_try_echo=$ac_try;;
9845esac
9846eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9847 (eval "$ac_link") 2>conftest.er1
d9898ee8 9848 ac_status=$?
9849 grep -v '^ *+' conftest.er1 >conftest.err
9850 rm -f conftest.er1
9851 cat conftest.err >&5
9852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 9853 (exit $ac_status); } && {
9854 test -z "$ac_c_werror_flag" ||
9855 test ! -s conftest.err
9856 } && test -s conftest$ac_exeext &&
9857 $as_test_x conftest$ac_exeext; then
d9898ee8 9858 ac_cv_lib_dld_dld_link=yes
9859else
9860 echo "$as_me: failed program was:" >&5
9861sed 's/^/| /' conftest.$ac_ext >&5
9862
64ff59ba 9863 ac_cv_lib_dld_dld_link=no
d9898ee8 9864fi
64ff59ba 9865
9866rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 9867 conftest$ac_exeext conftest.$ac_ext
9868LIBS=$ac_check_lib_save_LIBS
9869fi
64ff59ba 9870{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9871echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
d9898ee8 9872if test $ac_cv_lib_dld_dld_link = yes; then
9873 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9874fi
9875
9876
9877fi
9878
9879
9880fi
9881
9882
9883fi
9884
9885
9886fi
9887
9888
9889fi
9890
9891 ;;
9892 esac
9893
9894 if test "x$lt_cv_dlopen" != xno; then
9895 enable_dlopen=yes
9896 else
9897 enable_dlopen=no
9898 fi
9899
9900 case $lt_cv_dlopen in
9901 dlopen)
9902 save_CPPFLAGS="$CPPFLAGS"
9903 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9904
9905 save_LDFLAGS="$LDFLAGS"
9906 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9907
9908 save_LIBS="$LIBS"
9909 LIBS="$lt_cv_dlopen_libs $LIBS"
9910
64ff59ba 9911 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9912echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
d9898ee8 9913if test "${lt_cv_dlopen_self+set}" = set; then
9914 echo $ECHO_N "(cached) $ECHO_C" >&6
9915else
9916 if test "$cross_compiling" = yes; then :
9917 lt_cv_dlopen_self=cross
9918else
9919 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9920 lt_status=$lt_dlunknown
9921 cat > conftest.$ac_ext <<EOF
64ff59ba 9922#line 9922 "configure"
d9898ee8 9923#include "confdefs.h"
9924
9925#if HAVE_DLFCN_H
9926#include <dlfcn.h>
9927#endif
9928
9929#include <stdio.h>
9930
9931#ifdef RTLD_GLOBAL
9932# define LT_DLGLOBAL RTLD_GLOBAL
9933#else
9934# ifdef DL_GLOBAL
9935# define LT_DLGLOBAL DL_GLOBAL
9936# else
9937# define LT_DLGLOBAL 0
9938# endif
9939#endif
9940
9941/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9942 find out it does not work in some platform. */
9943#ifndef LT_DLLAZY_OR_NOW
9944# ifdef RTLD_LAZY
9945# define LT_DLLAZY_OR_NOW RTLD_LAZY
9946# else
9947# ifdef DL_LAZY
9948# define LT_DLLAZY_OR_NOW DL_LAZY
9949# else
9950# ifdef RTLD_NOW
9951# define LT_DLLAZY_OR_NOW RTLD_NOW
9952# else
9953# ifdef DL_NOW
9954# define LT_DLLAZY_OR_NOW DL_NOW
9955# else
9956# define LT_DLLAZY_OR_NOW 0
9957# endif
9958# endif
9959# endif
9960# endif
9961#endif
9962
9963#ifdef __cplusplus
9964extern "C" void exit (int);
9965#endif
9966
9967void fnord() { int i=42;}
9968int main ()
9969{
9970 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9971 int status = $lt_dlunknown;
9972
9973 if (self)
9974 {
9975 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9976 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9977 /* dlclose (self); */
9978 }
9979 else
9980 puts (dlerror ());
9981
9982 exit (status);
9983}
9984EOF
9985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9986 (eval $ac_link) 2>&5
9987 ac_status=$?
9988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9989 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9990 (./conftest; exit; ) >&5 2>/dev/null
9991 lt_status=$?
9992 case x$lt_status in
9993 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9994 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9995 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9996 esac
9997 else :
9998 # compilation failed
9999 lt_cv_dlopen_self=no
10000 fi
10001fi
10002rm -fr conftest*
10003
10004
10005fi
64ff59ba 10006{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10007echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
d9898ee8 10008
10009 if test "x$lt_cv_dlopen_self" = xyes; then
10010 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
64ff59ba 10011 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10012echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
d9898ee8 10013if test "${lt_cv_dlopen_self_static+set}" = set; then
10014 echo $ECHO_N "(cached) $ECHO_C" >&6
10015else
10016 if test "$cross_compiling" = yes; then :
10017 lt_cv_dlopen_self_static=cross
10018else
10019 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10020 lt_status=$lt_dlunknown
10021 cat > conftest.$ac_ext <<EOF
64ff59ba 10022#line 10022 "configure"
d9898ee8 10023#include "confdefs.h"
10024
10025#if HAVE_DLFCN_H
10026#include <dlfcn.h>
10027#endif
10028
10029#include <stdio.h>
10030
10031#ifdef RTLD_GLOBAL
10032# define LT_DLGLOBAL RTLD_GLOBAL
10033#else
10034# ifdef DL_GLOBAL
10035# define LT_DLGLOBAL DL_GLOBAL
10036# else
10037# define LT_DLGLOBAL 0
10038# endif
10039#endif
10040
10041/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10042 find out it does not work in some platform. */
10043#ifndef LT_DLLAZY_OR_NOW
10044# ifdef RTLD_LAZY
10045# define LT_DLLAZY_OR_NOW RTLD_LAZY
10046# else
10047# ifdef DL_LAZY
10048# define LT_DLLAZY_OR_NOW DL_LAZY
10049# else
10050# ifdef RTLD_NOW
10051# define LT_DLLAZY_OR_NOW RTLD_NOW
10052# else
10053# ifdef DL_NOW
10054# define LT_DLLAZY_OR_NOW DL_NOW
10055# else
10056# define LT_DLLAZY_OR_NOW 0
10057# endif
10058# endif
10059# endif
10060# endif
10061#endif
10062
10063#ifdef __cplusplus
10064extern "C" void exit (int);
10065#endif
10066
10067void fnord() { int i=42;}
10068int main ()
10069{
10070 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10071 int status = $lt_dlunknown;
10072
10073 if (self)
10074 {
10075 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10076 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10077 /* dlclose (self); */
10078 }
10079 else
10080 puts (dlerror ());
10081
10082 exit (status);
10083}
10084EOF
10085 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10086 (eval $ac_link) 2>&5
10087 ac_status=$?
10088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10089 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10090 (./conftest; exit; ) >&5 2>/dev/null
10091 lt_status=$?
10092 case x$lt_status in
10093 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10094 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10095 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10096 esac
10097 else :
10098 # compilation failed
10099 lt_cv_dlopen_self_static=no
10100 fi
10101fi
10102rm -fr conftest*
10103
10104
10105fi
64ff59ba 10106{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10107echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
d9898ee8 10108 fi
10109
10110 CPPFLAGS="$save_CPPFLAGS"
10111 LDFLAGS="$save_LDFLAGS"
10112 LIBS="$save_LIBS"
10113 ;;
10114 esac
10115
10116 case $lt_cv_dlopen_self in
10117 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10118 *) enable_dlopen_self=unknown ;;
10119 esac
10120
10121 case $lt_cv_dlopen_self_static in
10122 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10123 *) enable_dlopen_self_static=unknown ;;
10124 esac
10125fi
10126
10127
10128# Report which library types will actually be built
64ff59ba 10129{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10130echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10131{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
10132echo "${ECHO_T}$can_build_shared" >&6; }
d9898ee8 10133
64ff59ba 10134{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10135echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
d9898ee8 10136test "$can_build_shared" = "no" && enable_shared=no
10137
10138# On AIX, shared libraries and static libraries use the same namespace, and
10139# are all built from PIC.
10140case $host_os in
10141aix3*)
10142 test "$enable_shared" = yes && enable_static=no
10143 if test -n "$RANLIB"; then
10144 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10145 postinstall_cmds='$RANLIB $lib'
10146 fi
10147 ;;
10148
10149aix4* | aix5*)
10150 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10151 test "$enable_shared" = yes && enable_static=no
10152 fi
10153 ;;
10154esac
64ff59ba 10155{ echo "$as_me:$LINENO: result: $enable_shared" >&5
10156echo "${ECHO_T}$enable_shared" >&6; }
d9898ee8 10157
64ff59ba 10158{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10159echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
d9898ee8 10160# Make sure either enable_shared or enable_static is yes.
10161test "$enable_shared" = yes || enable_static=yes
64ff59ba 10162{ echo "$as_me:$LINENO: result: $enable_static" >&5
10163echo "${ECHO_T}$enable_static" >&6; }
d9898ee8 10164
10165# The else clause should only fire when bootstrapping the
10166# libtool distribution, otherwise you forgot to ship ltmain.sh
10167# with your package, and you will get complaints that there are
10168# no rules to generate ltmain.sh.
10169if test -f "$ltmain"; then
10170 # See if we are running on zsh, and set the options which allow our commands through
10171 # without removal of \ escapes.
10172 if test -n "${ZSH_VERSION+set}" ; then
10173 setopt NO_GLOB_SUBST
10174 fi
10175 # Now quote all the things that may contain metacharacters while being
10176 # careful not to overquote the AC_SUBSTed values. We take copies of the
10177 # variables and quote the copies for generation of the libtool script.
10178 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10179 SED SHELL STRIP \
10180 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10181 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10182 deplibs_check_method reload_flag reload_cmds need_locks \
10183 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10184 lt_cv_sys_global_symbol_to_c_name_address \
10185 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10186 old_postinstall_cmds old_postuninstall_cmds \
10187 compiler \
10188 CC \
10189 LD \
10190 lt_prog_compiler_wl \
10191 lt_prog_compiler_pic \
10192 lt_prog_compiler_static \
10193 lt_prog_compiler_no_builtin_flag \
10194 export_dynamic_flag_spec \
10195 thread_safe_flag_spec \
10196 whole_archive_flag_spec \
10197 enable_shared_with_static_runtimes \
10198 old_archive_cmds \
10199 old_archive_from_new_cmds \
10200 predep_objects \
10201 postdep_objects \
10202 predeps \
10203 postdeps \
10204 compiler_lib_search_path \
10205 archive_cmds \
10206 archive_expsym_cmds \
10207 postinstall_cmds \
10208 postuninstall_cmds \
10209 old_archive_from_expsyms_cmds \
10210 allow_undefined_flag \
10211 no_undefined_flag \
10212 export_symbols_cmds \
10213 hardcode_libdir_flag_spec \
10214 hardcode_libdir_flag_spec_ld \
10215 hardcode_libdir_separator \
10216 hardcode_automatic \
10217 module_cmds \
10218 module_expsym_cmds \
10219 lt_cv_prog_compiler_c_o \
10220 exclude_expsyms \
10221 include_expsyms; do
10222
10223 case $var in
10224 old_archive_cmds | \
10225 old_archive_from_new_cmds | \
10226 archive_cmds | \
10227 archive_expsym_cmds | \
10228 module_cmds | \
10229 module_expsym_cmds | \
10230 old_archive_from_expsyms_cmds | \
10231 export_symbols_cmds | \
10232 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10233 postinstall_cmds | postuninstall_cmds | \
10234 old_postinstall_cmds | old_postuninstall_cmds | \
10235 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10236 # Double-quote double-evaled strings.
10237 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10238 ;;
10239 *)
10240 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10241 ;;
10242 esac
10243 done
10244
10245 case $lt_echo in
10246 *'\$0 --fallback-echo"')
10247 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10248 ;;
10249 esac
10250
10251cfgfile="${ofile}T"
10252 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10253 $rm -f "$cfgfile"
10254 { echo "$as_me:$LINENO: creating $ofile" >&5
10255echo "$as_me: creating $ofile" >&6;}
10256
10257 cat <<__EOF__ >> "$cfgfile"
10258#! $SHELL
10259
10260# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10261# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10262# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10263#
10264# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10265# Free Software Foundation, Inc.
10266#
10267# This file is part of GNU Libtool:
10268# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10269#
10270# This program is free software; you can redistribute it and/or modify
10271# it under the terms of the GNU General Public License as published by
10272# the Free Software Foundation; either version 2 of the License, or
10273# (at your option) any later version.
10274#
10275# This program is distributed in the hope that it will be useful, but
10276# WITHOUT ANY WARRANTY; without even the implied warranty of
10277# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10278# General Public License for more details.
10279#
10280# You should have received a copy of the GNU General Public License
10281# along with this program; if not, write to the Free Software
10282# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10283#
10284# As a special exception to the GNU General Public License, if you
10285# distribute this file as part of a program that contains a
10286# configuration script generated by Autoconf, you may include it under
10287# the same distribution terms that you use for the rest of that program.
10288
10289# A sed program that does not truncate output.
10290SED=$lt_SED
10291
10292# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10293Xsed="$SED -e 1s/^X//"
10294
10295# The HP-UX ksh and POSIX shell print the target directory to stdout
10296# if CDPATH is set.
10297(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10298
10299# The names of the tagged configurations supported by this script.
10300available_tags=
10301
10302# ### BEGIN LIBTOOL CONFIG
10303
10304# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10305
10306# Shell to use when invoking shell scripts.
10307SHELL=$lt_SHELL
10308
10309# Whether or not to build shared libraries.
10310build_libtool_libs=$enable_shared
10311
10312# Whether or not to build static libraries.
10313build_old_libs=$enable_static
10314
10315# Whether or not to add -lc for building shared libraries.
10316build_libtool_need_lc=$archive_cmds_need_lc
10317
10318# Whether or not to disallow shared libs when runtime libs are static
10319allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10320
10321# Whether or not to optimize for fast installation.
10322fast_install=$enable_fast_install
10323
10324# The host system.
10325host_alias=$host_alias
10326host=$host
10327host_os=$host_os
10328
10329# The build system.
10330build_alias=$build_alias
10331build=$build
10332build_os=$build_os
10333
10334# An echo program that does not interpret backslashes.
10335echo=$lt_echo
10336
10337# The archiver.
10338AR=$lt_AR
10339AR_FLAGS=$lt_AR_FLAGS
10340
10341# A C compiler.
10342LTCC=$lt_LTCC
10343
10344# LTCC compiler flags.
10345LTCFLAGS=$lt_LTCFLAGS
10346
10347# A language-specific compiler.
10348CC=$lt_compiler
10349
10350# Is the compiler the GNU C compiler?
10351with_gcc=$GCC
10352
d9898ee8 10353# An ERE matcher.
10354EGREP=$lt_EGREP
10355
10356# The linker used to build libraries.
10357LD=$lt_LD
10358
10359# Whether we need hard or soft links.
10360LN_S=$lt_LN_S
10361
10362# A BSD-compatible nm program.
10363NM=$lt_NM
10364
10365# A symbol stripping program
10366STRIP=$lt_STRIP
10367
10368# Used to examine libraries when file_magic_cmd begins "file"
10369MAGIC_CMD=$MAGIC_CMD
10370
10371# Used on cygwin: DLL creation program.
10372DLLTOOL="$DLLTOOL"
10373
10374# Used on cygwin: object dumper.
10375OBJDUMP="$OBJDUMP"
10376
10377# Used on cygwin: assembler.
10378AS="$AS"
10379
10380# The name of the directory that contains temporary libtool files.
10381objdir=$objdir
10382
10383# How to create reloadable object files.
10384reload_flag=$lt_reload_flag
10385reload_cmds=$lt_reload_cmds
10386
10387# How to pass a linker flag through the compiler.
10388wl=$lt_lt_prog_compiler_wl
10389
10390# Object file suffix (normally "o").
10391objext="$ac_objext"
10392
10393# Old archive suffix (normally "a").
10394libext="$libext"
10395
10396# Shared library suffix (normally ".so").
10397shrext_cmds='$shrext_cmds'
10398
10399# Executable file suffix (normally "").
10400exeext="$exeext"
10401
10402# Additional compiler flags for building library objects.
10403pic_flag=$lt_lt_prog_compiler_pic
10404pic_mode=$pic_mode
10405
10406# What is the maximum length of a command?
10407max_cmd_len=$lt_cv_sys_max_cmd_len
10408
10409# Does compiler simultaneously support -c and -o options?
10410compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10411
10412# Must we lock files when doing compilation?
10413need_locks=$lt_need_locks
10414
10415# Do we need the lib prefix for modules?
10416need_lib_prefix=$need_lib_prefix
10417
10418# Do we need a version for libraries?
10419need_version=$need_version
10420
10421# Whether dlopen is supported.
10422dlopen_support=$enable_dlopen
10423
10424# Whether dlopen of programs is supported.
10425dlopen_self=$enable_dlopen_self
10426
10427# Whether dlopen of statically linked programs is supported.
10428dlopen_self_static=$enable_dlopen_self_static
10429
10430# Compiler flag to prevent dynamic linking.
10431link_static_flag=$lt_lt_prog_compiler_static
10432
10433# Compiler flag to turn off builtin functions.
10434no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10435
10436# Compiler flag to allow reflexive dlopens.
10437export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10438
10439# Compiler flag to generate shared objects directly from archives.
10440whole_archive_flag_spec=$lt_whole_archive_flag_spec
10441
10442# Compiler flag to generate thread-safe objects.
10443thread_safe_flag_spec=$lt_thread_safe_flag_spec
10444
10445# Library versioning type.
10446version_type=$version_type
10447
10448# Format of library name prefix.
10449libname_spec=$lt_libname_spec
10450
10451# List of archive names. First name is the real one, the rest are links.
10452# The last name is the one that the linker finds with -lNAME.
10453library_names_spec=$lt_library_names_spec
10454
10455# The coded name of the library, if different from the real name.
10456soname_spec=$lt_soname_spec
10457
10458# Commands used to build and install an old-style archive.
10459RANLIB=$lt_RANLIB
10460old_archive_cmds=$lt_old_archive_cmds
10461old_postinstall_cmds=$lt_old_postinstall_cmds
10462old_postuninstall_cmds=$lt_old_postuninstall_cmds
10463
10464# Create an old-style archive from a shared archive.
10465old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10466
10467# Create a temporary old-style archive to link instead of a shared archive.
10468old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10469
10470# Commands used to build and install a shared archive.
10471archive_cmds=$lt_archive_cmds
10472archive_expsym_cmds=$lt_archive_expsym_cmds
10473postinstall_cmds=$lt_postinstall_cmds
10474postuninstall_cmds=$lt_postuninstall_cmds
10475
10476# Commands used to build a loadable module (assumed same as above if empty)
10477module_cmds=$lt_module_cmds
10478module_expsym_cmds=$lt_module_expsym_cmds
10479
10480# Commands to strip libraries.
10481old_striplib=$lt_old_striplib
10482striplib=$lt_striplib
10483
10484# Dependencies to place before the objects being linked to create a
10485# shared library.
64ff59ba 10486predep_objects=$lt_predep_objects
d9898ee8 10487
10488# Dependencies to place after the objects being linked to create a
10489# shared library.
64ff59ba 10490postdep_objects=$lt_postdep_objects
d9898ee8 10491
10492# Dependencies to place before the objects being linked to create a
10493# shared library.
10494predeps=$lt_predeps
10495
10496# Dependencies to place after the objects being linked to create a
10497# shared library.
10498postdeps=$lt_postdeps
10499
10500# The library search path used internally by the compiler when linking
10501# a shared library.
64ff59ba 10502compiler_lib_search_path=$lt_compiler_lib_search_path
d9898ee8 10503
10504# Method to check whether dependent libraries are shared objects.
10505deplibs_check_method=$lt_deplibs_check_method
10506
10507# Command to use when deplibs_check_method == file_magic.
10508file_magic_cmd=$lt_file_magic_cmd
10509
10510# Flag that allows shared libraries with undefined symbols to be built.
10511allow_undefined_flag=$lt_allow_undefined_flag
10512
10513# Flag that forces no undefined symbols.
10514no_undefined_flag=$lt_no_undefined_flag
10515
10516# Commands used to finish a libtool library installation in a directory.
10517finish_cmds=$lt_finish_cmds
10518
10519# Same as above, but a single script fragment to be evaled but not shown.
10520finish_eval=$lt_finish_eval
10521
10522# Take the output of nm and produce a listing of raw symbols and C names.
10523global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10524
10525# Transform the output of nm in a proper C declaration
10526global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10527
10528# Transform the output of nm in a C name address pair
10529global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10530
10531# This is the shared library runtime path variable.
10532runpath_var=$runpath_var
10533
10534# This is the shared library path variable.
10535shlibpath_var=$shlibpath_var
10536
10537# Is shlibpath searched before the hard-coded library search path?
10538shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10539
10540# How to hardcode a shared library path into an executable.
10541hardcode_action=$hardcode_action
10542
10543# Whether we should hardcode library paths into libraries.
10544hardcode_into_libs=$hardcode_into_libs
10545
10546# Flag to hardcode \$libdir into a binary during linking.
10547# This must work even if \$libdir does not exist.
10548hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10549
10550# If ld is used when linking, flag to hardcode \$libdir into
10551# a binary during linking. This must work even if \$libdir does
10552# not exist.
10553hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10554
10555# Whether we need a single -rpath flag with a separated argument.
10556hardcode_libdir_separator=$lt_hardcode_libdir_separator
10557
10558# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10559# resulting binary.
10560hardcode_direct=$hardcode_direct
10561
10562# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10563# resulting binary.
10564hardcode_minus_L=$hardcode_minus_L
10565
10566# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10567# the resulting binary.
10568hardcode_shlibpath_var=$hardcode_shlibpath_var
10569
10570# Set to yes if building a shared library automatically hardcodes DIR into the library
10571# and all subsequent libraries and executables linked against it.
10572hardcode_automatic=$hardcode_automatic
10573
10574# Variables whose values should be saved in libtool wrapper scripts and
10575# restored at relink time.
10576variables_saved_for_relink="$variables_saved_for_relink"
10577
10578# Whether libtool must link a program against all its dependency libraries.
10579link_all_deplibs=$link_all_deplibs
10580
10581# Compile-time system search path for libraries
64ff59ba 10582sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
d9898ee8 10583
10584# Run-time system search path for libraries
10585sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10586
10587# Fix the shell variable \$srcfile for the compiler.
10588fix_srcfile_path="$fix_srcfile_path"
10589
10590# Set to yes if exported symbols are required.
10591always_export_symbols=$always_export_symbols
10592
10593# The commands to list exported symbols.
10594export_symbols_cmds=$lt_export_symbols_cmds
10595
10596# The commands to extract the exported symbol list from a shared archive.
10597extract_expsyms_cmds=$lt_extract_expsyms_cmds
10598
10599# Symbols that should not be listed in the preloaded symbols.
10600exclude_expsyms=$lt_exclude_expsyms
10601
10602# Symbols that must always be exported.
10603include_expsyms=$lt_include_expsyms
10604
10605# ### END LIBTOOL CONFIG
10606
10607__EOF__
10608
10609
10610 case $host_os in
10611 aix3*)
10612 cat <<\EOF >> "$cfgfile"
10613
10614# AIX sometimes has problems with the GCC collect2 program. For some
10615# reason, if we set the COLLECT_NAMES environment variable, the problems
10616# vanish in a puff of smoke.
10617if test "X${COLLECT_NAMES+set}" != Xset; then
10618 COLLECT_NAMES=
10619 export COLLECT_NAMES
10620fi
10621EOF
10622 ;;
10623 esac
10624
10625 # We use sed instead of cat because bash on DJGPP gets confused if
10626 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10627 # text mode, it properly converts lines to CR/LF. This bash problem
10628 # is reportedly fixed, but why not run on old versions too?
10629 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10630
10631 mv -f "$cfgfile" "$ofile" || \
10632 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10633 chmod +x "$ofile"
10634
10635else
10636 # If there is no Makefile yet, we rely on a make rule to execute
10637 # `config.status --recheck' to rerun these tests and create the
10638 # libtool script then.
10639 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10640 if test -f "$ltmain_in"; then
10641 test -f Makefile && make "$ltmain"
10642 fi
10643fi
10644
10645
10646ac_ext=c
10647ac_cpp='$CPP $CPPFLAGS'
10648ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10649ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10650ac_compiler_gnu=$ac_cv_c_compiler_gnu
10651
10652CC="$lt_save_CC"
10653
10654
64ff59ba 10655# Check whether --with-tags was given.
d9898ee8 10656if test "${with_tags+set}" = set; then
64ff59ba 10657 withval=$with_tags; tagnames="$withval"
10658fi
10659
d9898ee8 10660
10661if test -f "$ltmain" && test -n "$tagnames"; then
10662 if test ! -f "${ofile}"; then
10663 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10664echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10665 fi
10666
10667 if test -z "$LTCC"; then
10668 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10669 if test -z "$LTCC"; then
10670 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10671echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10672 else
10673 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10674echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10675 fi
10676 fi
10677 if test -z "$LTCFLAGS"; then
10678 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10679 fi
10680
10681 # Extract list of available tagged configurations in $ofile.
10682 # Note that this assumes the entire list is on one line.
10683 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10684
10685 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10686 for tagname in $tagnames; do
10687 IFS="$lt_save_ifs"
10688 # Check whether tagname contains only valid characters
10689 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10690 "") ;;
10691 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10692echo "$as_me: error: invalid tag name: $tagname" >&2;}
10693 { (exit 1); exit 1; }; }
10694 ;;
10695 esac
10696
10697 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10698 then
10699 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10700echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10701 { (exit 1); exit 1; }; }
10702 fi
10703
10704 # Update the list of available tags.
10705 if test -n "$tagname"; then
10706 echo appending configuration tag \"$tagname\" to $ofile
10707
10708 case $tagname in
10709 CXX)
10710 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10711 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10712 (test "X$CXX" != "Xg++"))) ; then
64ff59ba 10713 ac_ext=cpp
d9898ee8 10714ac_cpp='$CXXCPP $CPPFLAGS'
10715ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10716ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10717ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10718
10719
10720
10721
10722archive_cmds_need_lc_CXX=no
10723allow_undefined_flag_CXX=
10724always_export_symbols_CXX=no
10725archive_expsym_cmds_CXX=
10726export_dynamic_flag_spec_CXX=
10727hardcode_direct_CXX=no
10728hardcode_libdir_flag_spec_CXX=
10729hardcode_libdir_flag_spec_ld_CXX=
10730hardcode_libdir_separator_CXX=
10731hardcode_minus_L_CXX=no
10732hardcode_shlibpath_var_CXX=unsupported
10733hardcode_automatic_CXX=no
10734module_cmds_CXX=
10735module_expsym_cmds_CXX=
10736link_all_deplibs_CXX=unknown
10737old_archive_cmds_CXX=$old_archive_cmds
10738no_undefined_flag_CXX=
10739whole_archive_flag_spec_CXX=
10740enable_shared_with_static_runtimes_CXX=no
10741
10742# Dependencies to place before and after the object being linked:
10743predep_objects_CXX=
10744postdep_objects_CXX=
10745predeps_CXX=
10746postdeps_CXX=
10747compiler_lib_search_path_CXX=
10748
10749# Source file extension for C++ test sources.
10750ac_ext=cpp
10751
10752# Object file extension for compiled C++ test sources.
10753objext=o
10754objext_CXX=$objext
10755
10756# Code to be used in simple compile tests
10757lt_simple_compile_test_code="int some_variable = 0;\n"
10758
10759# Code to be used in simple link tests
10760lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10761
10762# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10763
10764# If no C compiler was specified, use CC.
10765LTCC=${LTCC-"$CC"}
10766
10767# If no C compiler flags were specified, use CFLAGS.
10768LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10769
10770# Allow CC to be a program name with arguments.
10771compiler=$CC
10772
10773
10774# save warnings/boilerplate of simple test code
10775ac_outfile=conftest.$ac_objext
10776printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10777eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10778_lt_compiler_boilerplate=`cat conftest.err`
10779$rm conftest*
10780
10781ac_outfile=conftest.$ac_objext
10782printf "$lt_simple_link_test_code" >conftest.$ac_ext
10783eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10784_lt_linker_boilerplate=`cat conftest.err`
10785$rm conftest*
10786
10787
10788# Allow CC to be a program name with arguments.
10789lt_save_CC=$CC
10790lt_save_LD=$LD
10791lt_save_GCC=$GCC
10792GCC=$GXX
10793lt_save_with_gnu_ld=$with_gnu_ld
10794lt_save_path_LD=$lt_cv_path_LD
10795if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10796 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10797else
10798 $as_unset lt_cv_prog_gnu_ld
10799fi
10800if test -n "${lt_cv_path_LDCXX+set}"; then
10801 lt_cv_path_LD=$lt_cv_path_LDCXX
10802else
10803 $as_unset lt_cv_path_LD
10804fi
10805test -z "${LDCXX+set}" || LD=$LDCXX
10806CC=${CXX-"c++"}
10807compiler=$CC
10808compiler_CXX=$CC
10809for cc_temp in $compiler""; do
10810 case $cc_temp in
10811 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10812 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10813 \-*) ;;
10814 *) break;;
10815 esac
10816done
10817cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10818
10819
10820# We don't want -fno-exception wen compiling C++ code, so set the
10821# no_builtin_flag separately
10822if test "$GXX" = yes; then
10823 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10824else
10825 lt_prog_compiler_no_builtin_flag_CXX=
10826fi
10827
10828if test "$GXX" = yes; then
10829 # Set up default GNU C++ configuration
10830
10831
64ff59ba 10832# Check whether --with-gnu-ld was given.
d9898ee8 10833if test "${with_gnu_ld+set}" = set; then
64ff59ba 10834 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
d9898ee8 10835else
10836 with_gnu_ld=no
64ff59ba 10837fi
10838
d9898ee8 10839ac_prog=ld
10840if test "$GCC" = yes; then
10841 # Check if gcc -print-prog-name=ld gives a path.
64ff59ba 10842 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10843echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
d9898ee8 10844 case $host in
10845 *-*-mingw*)
10846 # gcc leaves a trailing carriage return which upsets mingw
10847 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10848 *)
10849 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10850 esac
10851 case $ac_prog in
10852 # Accept absolute paths.
10853 [\\/]* | ?:[\\/]*)
10854 re_direlt='/[^/][^/]*/\.\./'
10855 # Canonicalize the pathname of ld
10856 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10857 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10858 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10859 done
10860 test -z "$LD" && LD="$ac_prog"
10861 ;;
10862 "")
10863 # If it fails, then pretend we aren't using GCC.
10864 ac_prog=ld
10865 ;;
10866 *)
10867 # If it is relative, then search for the first ld in PATH.
10868 with_gnu_ld=unknown
10869 ;;
10870 esac
10871elif test "$with_gnu_ld" = yes; then
64ff59ba 10872 { echo "$as_me:$LINENO: checking for GNU ld" >&5
10873echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
d9898ee8 10874else
64ff59ba 10875 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10876echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
d9898ee8 10877fi
10878if test "${lt_cv_path_LD+set}" = set; then
10879 echo $ECHO_N "(cached) $ECHO_C" >&6
10880else
10881 if test -z "$LD"; then
10882 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10883 for ac_dir in $PATH; do
10884 IFS="$lt_save_ifs"
10885 test -z "$ac_dir" && ac_dir=.
10886 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10887 lt_cv_path_LD="$ac_dir/$ac_prog"
10888 # Check to see if the program is GNU ld. I'd rather use --version,
10889 # but apparently some variants of GNU ld only accept -v.
10890 # Break only if it was the GNU/non-GNU ld that we prefer.
10891 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10892 *GNU* | *'with BFD'*)
10893 test "$with_gnu_ld" != no && break
10894 ;;
10895 *)
10896 test "$with_gnu_ld" != yes && break
10897 ;;
10898 esac
10899 fi
10900 done
10901 IFS="$lt_save_ifs"
10902else
10903 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10904fi
10905fi
10906
10907LD="$lt_cv_path_LD"
10908if test -n "$LD"; then
64ff59ba 10909 { echo "$as_me:$LINENO: result: $LD" >&5
10910echo "${ECHO_T}$LD" >&6; }
d9898ee8 10911else
64ff59ba 10912 { echo "$as_me:$LINENO: result: no" >&5
10913echo "${ECHO_T}no" >&6; }
d9898ee8 10914fi
10915test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10916echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10917 { (exit 1); exit 1; }; }
64ff59ba 10918{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10919echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
d9898ee8 10920if test "${lt_cv_prog_gnu_ld+set}" = set; then
10921 echo $ECHO_N "(cached) $ECHO_C" >&6
10922else
10923 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10924case `$LD -v 2>&1 </dev/null` in
10925*GNU* | *'with BFD'*)
10926 lt_cv_prog_gnu_ld=yes
10927 ;;
10928*)
10929 lt_cv_prog_gnu_ld=no
10930 ;;
10931esac
10932fi
64ff59ba 10933{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10934echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
d9898ee8 10935with_gnu_ld=$lt_cv_prog_gnu_ld
10936
10937
10938
10939 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10940 # archiving commands below assume that GNU ld is being used.
10941 if test "$with_gnu_ld" = yes; then
10942 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10943 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'
10944
10945 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10946 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10947
10948 # If archive_cmds runs LD, not CC, wlarc should be empty
10949 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10950 # investigate it a little bit more. (MM)
10951 wlarc='${wl}'
10952
10953 # ancient GNU ld didn't support --whole-archive et. al.
10954 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10955 grep 'no-whole-archive' > /dev/null; then
10956 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10957 else
10958 whole_archive_flag_spec_CXX=
10959 fi
10960 else
10961 with_gnu_ld=no
10962 wlarc=
10963
10964 # A generic and very simple default shared library creation
10965 # command for GNU C++ for the case where it uses the native
10966 # linker, instead of GNU ld. If possible, this setting should
10967 # overridden to take advantage of the native linker features on
10968 # the platform it is being used on.
10969 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10970 fi
10971
10972 # Commands to make compiler produce verbose output that lists
10973 # what "hidden" libraries, object files and flags are used when
10974 # linking a shared library.
10975 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10976
10977else
10978 GXX=no
10979 with_gnu_ld=no
10980 wlarc=
10981fi
10982
10983# PORTME: fill in a description of your system's C++ link characteristics
64ff59ba 10984{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10985echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
d9898ee8 10986ld_shlibs_CXX=yes
10987case $host_os in
10988 aix3*)
10989 # FIXME: insert proper C++ library support
10990 ld_shlibs_CXX=no
10991 ;;
10992 aix4* | aix5*)
10993 if test "$host_cpu" = ia64; then
10994 # On IA64, the linker does run time linking by default, so we don't
10995 # have to do anything special.
10996 aix_use_runtimelinking=no
10997 exp_sym_flag='-Bexport'
10998 no_entry_flag=""
10999 else
11000 aix_use_runtimelinking=no
11001
11002 # Test if we are trying to use run time linking or normal
11003 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11004 # need to do runtime linking.
11005 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11006 for ld_flag in $LDFLAGS; do
11007 case $ld_flag in
11008 *-brtl*)
11009 aix_use_runtimelinking=yes
11010 break
11011 ;;
11012 esac
11013 done
11014 ;;
11015 esac
11016
11017 exp_sym_flag='-bexport'
11018 no_entry_flag='-bnoentry'
11019 fi
11020
11021 # When large executables or shared objects are built, AIX ld can
11022 # have problems creating the table of contents. If linking a library
11023 # or program results in "error TOC overflow" add -mminimal-toc to
11024 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11025 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11026
11027 archive_cmds_CXX=''
11028 hardcode_direct_CXX=yes
11029 hardcode_libdir_separator_CXX=':'
11030 link_all_deplibs_CXX=yes
11031
11032 if test "$GXX" = yes; then
11033 case $host_os in aix4.[012]|aix4.[012].*)
11034 # We only want to do this on AIX 4.2 and lower, the check
11035 # below for broken collect2 doesn't work under 4.3+
11036 collect2name=`${CC} -print-prog-name=collect2`
11037 if test -f "$collect2name" && \
11038 strings "$collect2name" | grep resolve_lib_name >/dev/null
11039 then
11040 # We have reworked collect2
11041 hardcode_direct_CXX=yes
11042 else
11043 # We have old collect2
11044 hardcode_direct_CXX=unsupported
11045 # It fails to find uninstalled libraries when the uninstalled
11046 # path is not listed in the libpath. Setting hardcode_minus_L
11047 # to unsupported forces relinking
11048 hardcode_minus_L_CXX=yes
11049 hardcode_libdir_flag_spec_CXX='-L$libdir'
11050 hardcode_libdir_separator_CXX=
11051 fi
11052 ;;
11053 esac
11054 shared_flag='-shared'
11055 if test "$aix_use_runtimelinking" = yes; then
11056 shared_flag="$shared_flag "'${wl}-G'
11057 fi
11058 else
11059 # not using gcc
11060 if test "$host_cpu" = ia64; then
11061 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11062 # chokes on -Wl,-G. The following line is correct:
11063 shared_flag='-G'
11064 else
11065 if test "$aix_use_runtimelinking" = yes; then
11066 shared_flag='${wl}-G'
11067 else
11068 shared_flag='${wl}-bM:SRE'
11069 fi
11070 fi
11071 fi
11072
11073 # It seems that -bexpall does not export symbols beginning with
11074 # underscore (_), so it is better to generate a list of symbols to export.
11075 always_export_symbols_CXX=yes
11076 if test "$aix_use_runtimelinking" = yes; then
11077 # Warning - without using the other runtime loading flags (-brtl),
11078 # -berok will link without error, but may produce a broken library.
11079 allow_undefined_flag_CXX='-berok'
11080 # Determine the default libpath from the value encoded in an empty executable.
11081 cat >conftest.$ac_ext <<_ACEOF
11082/* confdefs.h. */
11083_ACEOF
11084cat confdefs.h >>conftest.$ac_ext
11085cat >>conftest.$ac_ext <<_ACEOF
11086/* end confdefs.h. */
11087
11088int
11089main ()
11090{
11091
11092 ;
11093 return 0;
11094}
11095_ACEOF
11096rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 11097if { (ac_try="$ac_link"
11098case "(($ac_try" in
11099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11100 *) ac_try_echo=$ac_try;;
11101esac
11102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11103 (eval "$ac_link") 2>conftest.er1
d9898ee8 11104 ac_status=$?
11105 grep -v '^ *+' conftest.er1 >conftest.err
11106 rm -f conftest.er1
11107 cat conftest.err >&5
11108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 11109 (exit $ac_status); } && {
11110 test -z "$ac_cxx_werror_flag" ||
11111 test ! -s conftest.err
11112 } && test -s conftest$ac_exeext &&
11113 $as_test_x conftest$ac_exeext; then
d9898ee8 11114
11115aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11116}'`
11117# Check for a 64-bit object if we didn't find anything.
11118if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11119}'`; fi
11120else
11121 echo "$as_me: failed program was:" >&5
11122sed 's/^/| /' conftest.$ac_ext >&5
11123
64ff59ba 11124
d9898ee8 11125fi
64ff59ba 11126
11127rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 11128 conftest$ac_exeext conftest.$ac_ext
11129if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11130
11131 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11132
11133 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"
11134 else
11135 if test "$host_cpu" = ia64; then
11136 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11137 allow_undefined_flag_CXX="-z nodefs"
11138 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"
11139 else
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
64ff59ba 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
64ff59ba 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
11175aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11176}'`
11177# Check for a 64-bit object if we didn't find anything.
11178if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11179}'`; fi
11180else
11181 echo "$as_me: failed program was:" >&5
11182sed 's/^/| /' conftest.$ac_ext >&5
11183
64ff59ba 11184
d9898ee8 11185fi
64ff59ba 11186
11187rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 11188 conftest$ac_exeext conftest.$ac_ext
11189if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11190
11191 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11192 # Warning - without using the other run time loading flags,
11193 # -berok will link without error, but may produce a broken library.
11194 no_undefined_flag_CXX=' ${wl}-bernotok'
11195 allow_undefined_flag_CXX=' ${wl}-berok'
11196 # Exported symbols can be pulled into shared objects from archives
11197 whole_archive_flag_spec_CXX='$convenience'
11198 archive_cmds_need_lc_CXX=yes
11199 # This is similar to how AIX traditionally builds its shared libraries.
11200 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'
11201 fi
11202 fi
11203 ;;
11204
11205 beos*)
11206 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11207 allow_undefined_flag_CXX=unsupported
11208 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11209 # support --undefined. This deserves some investigation. FIXME
11210 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11211 else
11212 ld_shlibs_CXX=no
11213 fi
11214 ;;
11215
11216 chorus*)
11217 case $cc_basename in
11218 *)
11219 # FIXME: insert proper C++ library support
11220 ld_shlibs_CXX=no
11221 ;;
11222 esac
11223 ;;
11224
11225 cygwin* | mingw* | pw32*)
11226 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11227 # as there is no search path for DLLs.
11228 hardcode_libdir_flag_spec_CXX='-L$libdir'
11229 allow_undefined_flag_CXX=unsupported
11230 always_export_symbols_CXX=no
11231 enable_shared_with_static_runtimes_CXX=yes
11232
11233 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11234 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'
11235 # If the export-symbols file already is a .def file (1st line
11236 # is EXPORTS), use it as is; otherwise, prepend...
11237 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11238 cp $export_symbols $output_objdir/$soname.def;
11239 else
11240 echo EXPORTS > $output_objdir/$soname.def;
11241 cat $export_symbols >> $output_objdir/$soname.def;
11242 fi~
11243 $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'
11244 else
11245 ld_shlibs_CXX=no
11246 fi
11247 ;;
11248 darwin* | rhapsody*)
11249 case $host_os in
11250 rhapsody* | darwin1.[012])
11251 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11252 ;;
11253 *) # Darwin 1.3 on
11254 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11255 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11256 else
11257 case ${MACOSX_DEPLOYMENT_TARGET} in
11258 10.[012])
11259 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11260 ;;
11261 10.*)
11262 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11263 ;;
11264 esac
11265 fi
11266 ;;
11267 esac
11268 archive_cmds_need_lc_CXX=no
11269 hardcode_direct_CXX=no
11270 hardcode_automatic_CXX=yes
11271 hardcode_shlibpath_var_CXX=unsupported
11272 whole_archive_flag_spec_CXX=''
11273 link_all_deplibs_CXX=yes
11274
11275 if test "$GXX" = yes ; then
11276 lt_int_apple_cc_single_mod=no
11277 output_verbose_link_cmd='echo'
11278 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11279 lt_int_apple_cc_single_mod=yes
11280 fi
11281 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11282 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11283 else
11284 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'
11285 fi
11286 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11287 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11288 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11289 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}'
11290 else
11291 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}'
11292 fi
11293 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}'
11294 else
11295 case $cc_basename in
11296 xlc*)
11297 output_verbose_link_cmd='echo'
11298 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
11299 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11300 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11301 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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11302 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}'
11303 ;;
11304 *)
11305 ld_shlibs_CXX=no
11306 ;;
11307 esac
11308 fi
11309 ;;
11310
11311 dgux*)
11312 case $cc_basename in
11313 ec++*)
11314 # FIXME: insert proper C++ library support
11315 ld_shlibs_CXX=no
11316 ;;
11317 ghcx*)
11318 # Green Hills C++ Compiler
11319 # FIXME: insert proper C++ library support
11320 ld_shlibs_CXX=no
11321 ;;
11322 *)
11323 # FIXME: insert proper C++ library support
11324 ld_shlibs_CXX=no
11325 ;;
11326 esac
11327 ;;
11328 freebsd[12]*)
11329 # C++ shared libraries reported to be fairly broken before switch to ELF
11330 ld_shlibs_CXX=no
11331 ;;
11332 freebsd-elf*)
11333 archive_cmds_need_lc_CXX=no
11334 ;;
11335 freebsd* | kfreebsd*-gnu | dragonfly*)
11336 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11337 # conventions
11338 ld_shlibs_CXX=yes
11339 ;;
11340 gnu*)
11341 ;;
11342 hpux9*)
11343 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11344 hardcode_libdir_separator_CXX=:
11345 export_dynamic_flag_spec_CXX='${wl}-E'
11346 hardcode_direct_CXX=yes
11347 hardcode_minus_L_CXX=yes # Not in the search PATH,
11348 # but as the default
11349 # location of the library.
11350
11351 case $cc_basename in
11352 CC*)
11353 # FIXME: insert proper C++ library support
11354 ld_shlibs_CXX=no
11355 ;;
11356 aCC*)
11357 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'
11358 # Commands to make compiler produce verbose output that lists
11359 # what "hidden" libraries, object files and flags are used when
11360 # linking a shared library.
11361 #
11362 # There doesn't appear to be a way to prevent this compiler from
11363 # explicitly linking system object files so we need to strip them
11364 # from the output so that they don't get included in the library
11365 # dependencies.
11366 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'
11367 ;;
11368 *)
11369 if test "$GXX" = yes; then
11370 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'
11371 else
11372 # FIXME: insert proper C++ library support
11373 ld_shlibs_CXX=no
11374 fi
11375 ;;
11376 esac
11377 ;;
11378 hpux10*|hpux11*)
11379 if test $with_gnu_ld = no; then
11380 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11381 hardcode_libdir_separator_CXX=:
11382
11383 case $host_cpu in
11384 hppa*64*|ia64*)
11385 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11386 ;;
11387 *)
11388 export_dynamic_flag_spec_CXX='${wl}-E'
11389 ;;
11390 esac
11391 fi
11392 case $host_cpu in
11393 hppa*64*|ia64*)
11394 hardcode_direct_CXX=no
11395 hardcode_shlibpath_var_CXX=no
11396 ;;
11397 *)
11398 hardcode_direct_CXX=yes
11399 hardcode_minus_L_CXX=yes # Not in the search PATH,
11400 # but as the default
11401 # location of the library.
11402 ;;
11403 esac
11404
11405 case $cc_basename in
11406 CC*)
11407 # FIXME: insert proper C++ library support
11408 ld_shlibs_CXX=no
11409 ;;
11410 aCC*)
11411 case $host_cpu in
11412 hppa*64*)
11413 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11414 ;;
11415 ia64*)
11416 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11417 ;;
11418 *)
11419 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11420 ;;
11421 esac
11422 # Commands to make compiler produce verbose output that lists
11423 # what "hidden" libraries, object files and flags are used when
11424 # linking a shared library.
11425 #
11426 # There doesn't appear to be a way to prevent this compiler from
11427 # explicitly linking system object files so we need to strip them
11428 # from the output so that they don't get included in the library
11429 # dependencies.
11430 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'
11431 ;;
11432 *)
11433 if test "$GXX" = yes; then
11434 if test $with_gnu_ld = no; then
11435 case $host_cpu in
11436 hppa*64*)
11437 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11438 ;;
11439 ia64*)
11440 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11441 ;;
11442 *)
11443 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'
11444 ;;
11445 esac
11446 fi
11447 else
11448 # FIXME: insert proper C++ library support
11449 ld_shlibs_CXX=no
11450 fi
11451 ;;
11452 esac
11453 ;;
11454 interix3*)
11455 hardcode_direct_CXX=no
11456 hardcode_shlibpath_var_CXX=no
11457 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11458 export_dynamic_flag_spec_CXX='${wl}-E'
11459 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11460 # Instead, shared libraries are loaded at an image base (0x10000000 by
11461 # default) and relocated if they conflict, which is a slow very memory
11462 # consuming and fragmenting process. To avoid this, we pick a random,
11463 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11464 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11465 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'
11466 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'
11467 ;;
11468 irix5* | irix6*)
11469 case $cc_basename in
11470 CC*)
11471 # SGI C++
11472 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'
11473
11474 # Archives containing C++ object files must be created using
11475 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11476 # necessary to make sure instantiated templates are included
11477 # in the archive.
11478 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11479 ;;
11480 *)
11481 if test "$GXX" = yes; then
11482 if test "$with_gnu_ld" = no; then
11483 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'
11484 else
11485 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'
11486 fi
11487 fi
11488 link_all_deplibs_CXX=yes
11489 ;;
11490 esac
11491 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11492 hardcode_libdir_separator_CXX=:
11493 ;;
11494 linux*)
11495 case $cc_basename in
11496 KCC*)
11497 # Kuck and Associates, Inc. (KAI) C++ Compiler
11498
11499 # KCC will only create a shared library if the output file
11500 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11501 # to its proper name (with version) after linking.
11502 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'
11503 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'
11504 # Commands to make compiler produce verbose output that lists
11505 # what "hidden" libraries, object files and flags are used when
11506 # linking a shared library.
11507 #
11508 # There doesn't appear to be a way to prevent this compiler from
11509 # explicitly linking system object files so we need to strip them
11510 # from the output so that they don't get included in the library
11511 # dependencies.
11512 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'
11513
11514 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11515 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11516
11517 # Archives containing C++ object files must be created using
11518 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11519 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11520 ;;
11521 icpc*)
11522 # Intel C++
11523 with_gnu_ld=yes
11524 # version 8.0 and above of icpc choke on multiply defined symbols
11525 # if we add $predep_objects and $postdep_objects, however 7.1 and
11526 # earlier do not add the objects themselves.
11527 case `$CC -V 2>&1` in
11528 *"Version 7."*)
11529 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11530 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'
11531 ;;
11532 *) # Version 8.0 or newer
11533 tmp_idyn=
11534 case $host_cpu in
11535 ia64*) tmp_idyn=' -i_dynamic';;
11536 esac
11537 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11538 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'
11539 ;;
11540 esac
11541 archive_cmds_need_lc_CXX=no
11542 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11543 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11544 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11545 ;;
11546 pgCC*)
11547 # Portland Group C++ compiler
11548 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11549 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'
11550
11551 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11552 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11553 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'
11554 ;;
11555 cxx*)
11556 # Compaq C++
11557 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11558 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'
11559
11560 runpath_var=LD_RUN_PATH
11561 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11562 hardcode_libdir_separator_CXX=:
11563
11564 # Commands to make compiler produce verbose output that lists
11565 # what "hidden" libraries, object files and flags are used when
11566 # linking a shared library.
11567 #
11568 # There doesn't appear to be a way to prevent this compiler from
11569 # explicitly linking system object files so we need to strip them
11570 # from the output so that they don't get included in the library
11571 # dependencies.
11572 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'
11573 ;;
11574 esac
11575 ;;
11576 lynxos*)
11577 # FIXME: insert proper C++ library support
11578 ld_shlibs_CXX=no
11579 ;;
11580 m88k*)
11581 # FIXME: insert proper C++ library support
11582 ld_shlibs_CXX=no
11583 ;;
11584 mvs*)
11585 case $cc_basename in
11586 cxx*)
11587 # FIXME: insert proper C++ library support
11588 ld_shlibs_CXX=no
11589 ;;
11590 *)
11591 # FIXME: insert proper C++ library support
11592 ld_shlibs_CXX=no
11593 ;;
11594 esac
11595 ;;
11596 netbsd*)
11597 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11598 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11599 wlarc=
11600 hardcode_libdir_flag_spec_CXX='-R$libdir'
11601 hardcode_direct_CXX=yes
11602 hardcode_shlibpath_var_CXX=no
11603 fi
11604 # Workaround some broken pre-1.5 toolchains
11605 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11606 ;;
11607 openbsd2*)
11608 # C++ shared libraries are fairly broken
11609 ld_shlibs_CXX=no
11610 ;;
11611 openbsd*)
11612 hardcode_direct_CXX=yes
11613 hardcode_shlibpath_var_CXX=no
11614 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11615 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11616 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11617 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11618 export_dynamic_flag_spec_CXX='${wl}-E'
11619 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11620 fi
11621 output_verbose_link_cmd='echo'
11622 ;;
11623 osf3*)
11624 case $cc_basename in
11625 KCC*)
11626 # Kuck and Associates, Inc. (KAI) C++ Compiler
11627
11628 # KCC will only create a shared library if the output file
11629 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11630 # to its proper name (with version) after linking.
11631 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'
11632
11633 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11634 hardcode_libdir_separator_CXX=:
11635
11636 # Archives containing C++ object files must be created using
11637 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11638 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11639
11640 ;;
11641 RCC*)
11642 # Rational C++ 2.4.1
11643 # FIXME: insert proper C++ library support
11644 ld_shlibs_CXX=no
11645 ;;
11646 cxx*)
11647 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11648 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'
11649
11650 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11651 hardcode_libdir_separator_CXX=:
11652
11653 # Commands to make compiler produce verbose output that lists
11654 # what "hidden" libraries, object files and flags are used when
11655 # linking a shared library.
11656 #
11657 # There doesn't appear to be a way to prevent this compiler from
11658 # explicitly linking system object files so we need to strip them
11659 # from the output so that they don't get included in the library
11660 # dependencies.
11661 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'
11662 ;;
11663 *)
11664 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11665 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11666 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'
11667
11668 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11669 hardcode_libdir_separator_CXX=:
11670
11671 # Commands to make compiler produce verbose output that lists
11672 # what "hidden" libraries, object files and flags are used when
11673 # linking a shared library.
11674 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11675
11676 else
11677 # FIXME: insert proper C++ library support
11678 ld_shlibs_CXX=no
11679 fi
11680 ;;
11681 esac
11682 ;;
11683 osf4* | osf5*)
11684 case $cc_basename in
11685 KCC*)
11686 # Kuck and Associates, Inc. (KAI) C++ Compiler
11687
11688 # KCC will only create a shared library if the output file
11689 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11690 # to its proper name (with version) after linking.
11691 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'
11692
11693 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11694 hardcode_libdir_separator_CXX=:
11695
11696 # Archives containing C++ object files must be created using
11697 # the KAI C++ compiler.
11698 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11699 ;;
11700 RCC*)
11701 # Rational C++ 2.4.1
11702 # FIXME: insert proper C++ library support
11703 ld_shlibs_CXX=no
11704 ;;
11705 cxx*)
11706 allow_undefined_flag_CXX=' -expect_unresolved \*'
11707 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'
11708 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11709 echo "-hidden">> $lib.exp~
11710 $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~
11711 $rm $lib.exp'
11712
11713 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11714 hardcode_libdir_separator_CXX=:
11715
11716 # Commands to make compiler produce verbose output that lists
11717 # what "hidden" libraries, object files and flags are used when
11718 # linking a shared library.
11719 #
11720 # There doesn't appear to be a way to prevent this compiler from
11721 # explicitly linking system object files so we need to strip them
11722 # from the output so that they don't get included in the library
11723 # dependencies.
11724 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'
11725 ;;
11726 *)
11727 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11728 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11729 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'
11730
11731 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11732 hardcode_libdir_separator_CXX=:
11733
11734 # Commands to make compiler produce verbose output that lists
11735 # what "hidden" libraries, object files and flags are used when
11736 # linking a shared library.
11737 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11738
11739 else
11740 # FIXME: insert proper C++ library support
11741 ld_shlibs_CXX=no
11742 fi
11743 ;;
11744 esac
11745 ;;
11746 psos*)
11747 # FIXME: insert proper C++ library support
11748 ld_shlibs_CXX=no
11749 ;;
11750 sunos4*)
11751 case $cc_basename in
11752 CC*)
11753 # Sun C++ 4.x
11754 # FIXME: insert proper C++ library support
11755 ld_shlibs_CXX=no
11756 ;;
11757 lcc*)
11758 # Lucid
11759 # FIXME: insert proper C++ library support
11760 ld_shlibs_CXX=no
11761 ;;
11762 *)
11763 # FIXME: insert proper C++ library support
11764 ld_shlibs_CXX=no
11765 ;;
11766 esac
11767 ;;
11768 solaris*)
11769 case $cc_basename in
11770 CC*)
11771 # Sun C++ 4.2, 5.x and Centerline C++
11772 archive_cmds_need_lc_CXX=yes
11773 no_undefined_flag_CXX=' -zdefs'
11774 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11775 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11776 $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'
11777
11778 hardcode_libdir_flag_spec_CXX='-R$libdir'
11779 hardcode_shlibpath_var_CXX=no
11780 case $host_os in
11781 solaris2.[0-5] | solaris2.[0-5].*) ;;
11782 *)
11783 # The C++ compiler is used as linker so we must use $wl
11784 # flag to pass the commands to the underlying system
11785 # linker. We must also pass each convience library through
11786 # to the system linker between allextract/defaultextract.
11787 # The C++ compiler will combine linker options so we
11788 # cannot just pass the convience library names through
11789 # without $wl.
11790 # Supported since Solaris 2.6 (maybe 2.5.1?)
11791 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
11792 ;;
11793 esac
11794 link_all_deplibs_CXX=yes
11795
11796 output_verbose_link_cmd='echo'
11797
11798 # Archives containing C++ object files must be created using
11799 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11800 # necessary to make sure instantiated templates are included
11801 # in the archive.
11802 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11803 ;;
11804 gcx*)
11805 # Green Hills C++ Compiler
11806 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11807
11808 # The C++ compiler must be used to create the archive.
11809 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11810 ;;
11811 *)
11812 # GNU C++ compiler with Solaris linker
11813 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11814 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11815 if $CC --version | grep -v '^2\.7' > /dev/null; then
11816 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11817 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11818 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11819
11820 # Commands to make compiler produce verbose output that lists
11821 # what "hidden" libraries, object files and flags are used when
11822 # linking a shared library.
11823 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11824 else
11825 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11826 # platform.
11827 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11828 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11829 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11830
11831 # Commands to make compiler produce verbose output that lists
11832 # what "hidden" libraries, object files and flags are used when
11833 # linking a shared library.
11834 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11835 fi
11836
11837 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11838 fi
11839 ;;
11840 esac
11841 ;;
11842 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11843 no_undefined_flag_CXX='${wl}-z,text'
11844 archive_cmds_need_lc_CXX=no
11845 hardcode_shlibpath_var_CXX=no
11846 runpath_var='LD_RUN_PATH'
11847
11848 case $cc_basename in
11849 CC*)
11850 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11851 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11852 ;;
11853 *)
11854 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11855 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11856 ;;
11857 esac
11858 ;;
11859 sysv5* | sco3.2v5* | sco5v6*)
11860 # Note: We can NOT use -z defs as we might desire, because we do not
11861 # link with -lc, and that would cause any symbols used from libc to
11862 # always be unresolved, which means just about no library would
11863 # ever link correctly. If we're not using GNU ld we use -z text
11864 # though, which does catch some bad symbols but isn't as heavy-handed
11865 # as -z defs.
11866 # For security reasons, it is highly recommended that you always
11867 # use absolute paths for naming shared libraries, and exclude the
11868 # DT_RUNPATH tag from executables and libraries. But doing so
11869 # requires that you compile everything twice, which is a pain.
11870 # So that behaviour is only enabled if SCOABSPATH is set to a
11871 # non-empty value in the environment. Most likely only useful for
11872 # creating official distributions of packages.
11873 # This is a hack until libtool officially supports absolute path
11874 # names for shared libraries.
11875 no_undefined_flag_CXX='${wl}-z,text'
11876 allow_undefined_flag_CXX='${wl}-z,nodefs'
11877 archive_cmds_need_lc_CXX=no
11878 hardcode_shlibpath_var_CXX=no
11879 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11880 hardcode_libdir_separator_CXX=':'
11881 link_all_deplibs_CXX=yes
11882 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11883 runpath_var='LD_RUN_PATH'
11884
11885 case $cc_basename in
11886 CC*)
11887 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11888 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11889 ;;
11890 *)
11891 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11892 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11893 ;;
11894 esac
11895 ;;
11896 tandem*)
11897 case $cc_basename in
11898 NCC*)
11899 # NonStop-UX NCC 3.20
11900 # FIXME: insert proper C++ library support
11901 ld_shlibs_CXX=no
11902 ;;
11903 *)
11904 # FIXME: insert proper C++ library support
11905 ld_shlibs_CXX=no
11906 ;;
11907 esac
11908 ;;
11909 vxworks*)
11910 # FIXME: insert proper C++ library support
11911 ld_shlibs_CXX=no
11912 ;;
11913 *)
11914 # FIXME: insert proper C++ library support
11915 ld_shlibs_CXX=no
11916 ;;
11917esac
64ff59ba 11918{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11919echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
d9898ee8 11920test "$ld_shlibs_CXX" = no && can_build_shared=no
11921
11922GCC_CXX="$GXX"
11923LD_CXX="$LD"
11924
11925
11926cat > conftest.$ac_ext <<EOF
11927class Foo
11928{
11929public:
11930 Foo (void) { a = 0; }
11931private:
11932 int a;
11933};
11934EOF
11935
11936if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11937 (eval $ac_compile) 2>&5
11938 ac_status=$?
11939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11940 (exit $ac_status); }; then
11941 # Parse the compiler output and extract the necessary
11942 # objects, libraries and library flags.
11943
11944 # Sentinel used to keep track of whether or not we are before
11945 # the conftest object file.
11946 pre_test_object_deps_done=no
11947
11948 # The `*' in the case matches for architectures that use `case' in
11949 # $output_verbose_cmd can trigger glob expansion during the loop
11950 # eval without this substitution.
11951 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11952
11953 for p in `eval $output_verbose_link_cmd`; do
11954 case $p in
11955
11956 -L* | -R* | -l*)
11957 # Some compilers place space between "-{L,R}" and the path.
11958 # Remove the space.
11959 if test $p = "-L" \
11960 || test $p = "-R"; then
11961 prev=$p
11962 continue
11963 else
11964 prev=
11965 fi
11966
11967 if test "$pre_test_object_deps_done" = no; then
11968 case $p in
11969 -L* | -R*)
11970 # Internal compiler library paths should come after those
11971 # provided the user. The postdeps already come after the
11972 # user supplied libs so there is no need to process them.
11973 if test -z "$compiler_lib_search_path_CXX"; then
11974 compiler_lib_search_path_CXX="${prev}${p}"
11975 else
11976 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11977 fi
11978 ;;
11979 # The "-l" case would never come before the object being
11980 # linked, so don't bother handling this case.
11981 esac
11982 else
11983 if test -z "$postdeps_CXX"; then
11984 postdeps_CXX="${prev}${p}"
11985 else
11986 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11987 fi
11988 fi
11989 ;;
11990
11991 *.$objext)
11992 # This assumes that the test object file only shows up
11993 # once in the compiler output.
11994 if test "$p" = "conftest.$objext"; then
11995 pre_test_object_deps_done=yes
11996 continue
11997 fi
11998
11999 if test "$pre_test_object_deps_done" = no; then
12000 if test -z "$predep_objects_CXX"; then
12001 predep_objects_CXX="$p"
12002 else
12003 predep_objects_CXX="$predep_objects_CXX $p"
12004 fi
12005 else
12006 if test -z "$postdep_objects_CXX"; then
12007 postdep_objects_CXX="$p"
12008 else
12009 postdep_objects_CXX="$postdep_objects_CXX $p"
12010 fi
12011 fi
12012 ;;
12013
12014 *) ;; # Ignore the rest.
12015
12016 esac
12017 done
12018
12019 # Clean up.
12020 rm -f a.out a.exe
12021else
12022 echo "libtool.m4: error: problem compiling CXX test program"
12023fi
12024
12025$rm -f confest.$objext
12026
12027# PORTME: override above test on systems where it is broken
12028case $host_os in
12029interix3*)
12030 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12031 # hack all around it, let's just trust "g++" to DTRT.
12032 predep_objects_CXX=
12033 postdep_objects_CXX=
12034 postdeps_CXX=
12035 ;;
12036
12037solaris*)
12038 case $cc_basename in
12039 CC*)
12040 # Adding this requires a known-good setup of shared libraries for
12041 # Sun compiler versions before 5.6, else PIC objects from an old
12042 # archive will be linked into the output, leading to subtle bugs.
12043 postdeps_CXX='-lCstd -lCrun'
12044 ;;
12045 esac
12046 ;;
12047esac
12048
12049
12050case " $postdeps_CXX " in
12051*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12052esac
12053
12054lt_prog_compiler_wl_CXX=
12055lt_prog_compiler_pic_CXX=
12056lt_prog_compiler_static_CXX=
12057
64ff59ba 12058{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12059echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
d9898ee8 12060
12061 # C++ specific cases for pic, static, wl, etc.
12062 if test "$GXX" = yes; then
12063 lt_prog_compiler_wl_CXX='-Wl,'
12064 lt_prog_compiler_static_CXX='-static'
12065
12066 case $host_os in
12067 aix*)
12068 # All AIX code is PIC.
12069 if test "$host_cpu" = ia64; then
12070 # AIX 5 now supports IA64 processor
12071 lt_prog_compiler_static_CXX='-Bstatic'
12072 fi
12073 ;;
12074 amigaos*)
12075 # FIXME: we need at least 68020 code to build shared libraries, but
12076 # adding the `-m68020' flag to GCC prevents building anything better,
12077 # like `-m68040'.
12078 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12079 ;;
12080 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12081 # PIC is the default for these OSes.
12082 ;;
12083 mingw* | os2* | pw32*)
12084 # This hack is so that the source file can tell whether it is being
12085 # built for inclusion in a dll (and should export symbols for example).
12086 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12087 ;;
12088 darwin* | rhapsody*)
12089 # PIC is the default on this platform
12090 # Common symbols not allowed in MH_DYLIB files
12091 lt_prog_compiler_pic_CXX='-fno-common'
12092 ;;
12093 *djgpp*)
12094 # DJGPP does not support shared libraries at all
12095 lt_prog_compiler_pic_CXX=
12096 ;;
12097 interix3*)
12098 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12099 # Instead, we relocate shared libraries at runtime.
12100 ;;
12101 sysv4*MP*)
12102 if test -d /usr/nec; then
12103 lt_prog_compiler_pic_CXX=-Kconform_pic
12104 fi
12105 ;;
12106 hpux*)
12107 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12108 # not for PA HP-UX.
12109 case $host_cpu in
12110 hppa*64*|ia64*)
12111 ;;
12112 *)
12113 lt_prog_compiler_pic_CXX='-fPIC'
12114 ;;
12115 esac
12116 ;;
12117 *)
12118 lt_prog_compiler_pic_CXX='-fPIC'
12119 ;;
12120 esac
12121 else
12122 case $host_os in
12123 aix4* | aix5*)
12124 # All AIX code is PIC.
12125 if test "$host_cpu" = ia64; then
12126 # AIX 5 now supports IA64 processor
12127 lt_prog_compiler_static_CXX='-Bstatic'
12128 else
12129 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12130 fi
12131 ;;
12132 chorus*)
12133 case $cc_basename in
12134 cxch68*)
12135 # Green Hills C++ Compiler
12136 # _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"
12137 ;;
12138 esac
12139 ;;
12140 darwin*)
12141 # PIC is the default on this platform
12142 # Common symbols not allowed in MH_DYLIB files
12143 case $cc_basename in
12144 xlc*)
12145 lt_prog_compiler_pic_CXX='-qnocommon'
12146 lt_prog_compiler_wl_CXX='-Wl,'
12147 ;;
12148 esac
12149 ;;
12150 dgux*)
12151 case $cc_basename in
12152 ec++*)
12153 lt_prog_compiler_pic_CXX='-KPIC'
12154 ;;
12155 ghcx*)
12156 # Green Hills C++ Compiler
12157 lt_prog_compiler_pic_CXX='-pic'
12158 ;;
12159 *)
12160 ;;
12161 esac
12162 ;;
12163 freebsd* | kfreebsd*-gnu | dragonfly*)
12164 # FreeBSD uses GNU C++
12165 ;;
12166 hpux9* | hpux10* | hpux11*)
12167 case $cc_basename in
12168 CC*)
12169 lt_prog_compiler_wl_CXX='-Wl,'
12170 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12171 if test "$host_cpu" != ia64; then
12172 lt_prog_compiler_pic_CXX='+Z'
12173 fi
12174 ;;
12175 aCC*)
12176 lt_prog_compiler_wl_CXX='-Wl,'
12177 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12178 case $host_cpu in
12179 hppa*64*|ia64*)
12180 # +Z the default
12181 ;;
12182 *)
12183 lt_prog_compiler_pic_CXX='+Z'
12184 ;;
12185 esac
12186 ;;
12187 *)
12188 ;;
12189 esac
12190 ;;
12191 interix*)
12192 # This is c89, which is MS Visual C++ (no shared libs)
12193 # Anyone wants to do a port?
12194 ;;
12195 irix5* | irix6* | nonstopux*)
12196 case $cc_basename in
12197 CC*)
12198 lt_prog_compiler_wl_CXX='-Wl,'
12199 lt_prog_compiler_static_CXX='-non_shared'
12200 # CC pic flag -KPIC is the default.
12201 ;;
12202 *)
12203 ;;
12204 esac
12205 ;;
12206 linux*)
12207 case $cc_basename in
12208 KCC*)
12209 # KAI C++ Compiler
12210 lt_prog_compiler_wl_CXX='--backend -Wl,'
12211 lt_prog_compiler_pic_CXX='-fPIC'
12212 ;;
12213 icpc* | ecpc*)
12214 # Intel C++
12215 lt_prog_compiler_wl_CXX='-Wl,'
12216 lt_prog_compiler_pic_CXX='-KPIC'
12217 lt_prog_compiler_static_CXX='-static'
12218 ;;
12219 pgCC*)
12220 # Portland Group C++ compiler.
12221 lt_prog_compiler_wl_CXX='-Wl,'
12222 lt_prog_compiler_pic_CXX='-fpic'
12223 lt_prog_compiler_static_CXX='-Bstatic'
12224 ;;
12225 cxx*)
12226 # Compaq C++
12227 # Make sure the PIC flag is empty. It appears that all Alpha
12228 # Linux and Compaq Tru64 Unix objects are PIC.
12229 lt_prog_compiler_pic_CXX=
12230 lt_prog_compiler_static_CXX='-non_shared'
12231 ;;
12232 *)
12233 ;;
12234 esac
12235 ;;
12236 lynxos*)
12237 ;;
12238 m88k*)
12239 ;;
12240 mvs*)
12241 case $cc_basename in
12242 cxx*)
12243 lt_prog_compiler_pic_CXX='-W c,exportall'
12244 ;;
12245 *)
12246 ;;
12247 esac
12248 ;;
12249 netbsd*)
12250 ;;
12251 osf3* | osf4* | osf5*)
12252 case $cc_basename in
12253 KCC*)
12254 lt_prog_compiler_wl_CXX='--backend -Wl,'
12255 ;;
12256 RCC*)
12257 # Rational C++ 2.4.1
12258 lt_prog_compiler_pic_CXX='-pic'
12259 ;;
12260 cxx*)
12261 # Digital/Compaq C++
12262 lt_prog_compiler_wl_CXX='-Wl,'
12263 # Make sure the PIC flag is empty. It appears that all Alpha
12264 # Linux and Compaq Tru64 Unix objects are PIC.
12265 lt_prog_compiler_pic_CXX=
12266 lt_prog_compiler_static_CXX='-non_shared'
12267 ;;
12268 *)
12269 ;;
12270 esac
12271 ;;
12272 psos*)
12273 ;;
12274 solaris*)
12275 case $cc_basename in
12276 CC*)
12277 # Sun C++ 4.2, 5.x and Centerline C++
12278 lt_prog_compiler_pic_CXX='-KPIC'
12279 lt_prog_compiler_static_CXX='-Bstatic'
12280 lt_prog_compiler_wl_CXX='-Qoption ld '
12281 ;;
12282 gcx*)
12283 # Green Hills C++ Compiler
12284 lt_prog_compiler_pic_CXX='-PIC'
12285 ;;
12286 *)
12287 ;;
12288 esac
12289 ;;
12290 sunos4*)
12291 case $cc_basename in
12292 CC*)
12293 # Sun C++ 4.x
12294 lt_prog_compiler_pic_CXX='-pic'
12295 lt_prog_compiler_static_CXX='-Bstatic'
12296 ;;
12297 lcc*)
12298 # Lucid
12299 lt_prog_compiler_pic_CXX='-pic'
12300 ;;
12301 *)
12302 ;;
12303 esac
12304 ;;
12305 tandem*)
12306 case $cc_basename in
12307 NCC*)
12308 # NonStop-UX NCC 3.20
12309 lt_prog_compiler_pic_CXX='-KPIC'
12310 ;;
12311 *)
12312 ;;
12313 esac
12314 ;;
12315 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12316 case $cc_basename in
12317 CC*)
12318 lt_prog_compiler_wl_CXX='-Wl,'
12319 lt_prog_compiler_pic_CXX='-KPIC'
12320 lt_prog_compiler_static_CXX='-Bstatic'
12321 ;;
12322 esac
12323 ;;
12324 vxworks*)
12325 ;;
12326 *)
12327 lt_prog_compiler_can_build_shared_CXX=no
12328 ;;
12329 esac
12330 fi
12331
64ff59ba 12332{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12333echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
d9898ee8 12334
12335#
12336# Check to make sure the PIC flag actually works.
12337#
12338if test -n "$lt_prog_compiler_pic_CXX"; then
12339
64ff59ba 12340{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12341echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
d9898ee8 12342if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12343 echo $ECHO_N "(cached) $ECHO_C" >&6
12344else
12345 lt_prog_compiler_pic_works_CXX=no
12346 ac_outfile=conftest.$ac_objext
12347 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12348 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12349 # Insert the option either (1) after the last *FLAGS variable, or
12350 # (2) before a word containing "conftest.", or (3) at the end.
12351 # Note that $ac_compile itself does not contain backslashes and begins
12352 # with a dollar sign (not a hyphen), so the echo should work correctly.
12353 # The option is referenced via a variable to avoid confusing sed.
12354 lt_compile=`echo "$ac_compile" | $SED \
12355 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12356 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12357 -e 's:$: $lt_compiler_flag:'`
64ff59ba 12358 (eval echo "\"\$as_me:12358: $lt_compile\"" >&5)
d9898ee8 12359 (eval "$lt_compile" 2>conftest.err)
12360 ac_status=$?
12361 cat conftest.err >&5
64ff59ba 12362 echo "$as_me:12362: \$? = $ac_status" >&5
d9898ee8 12363 if (exit $ac_status) && test -s "$ac_outfile"; then
12364 # The compiler can only warn and ignore the option if not recognized
12365 # So say no if there are warnings other than the usual output.
12366 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12367 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12368 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12369 lt_prog_compiler_pic_works_CXX=yes
12370 fi
12371 fi
12372 $rm conftest*
12373
12374fi
64ff59ba 12375{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12376echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
d9898ee8 12377
12378if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12379 case $lt_prog_compiler_pic_CXX in
12380 "" | " "*) ;;
12381 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12382 esac
12383else
12384 lt_prog_compiler_pic_CXX=
12385 lt_prog_compiler_can_build_shared_CXX=no
12386fi
12387
12388fi
12389case $host_os in
12390 # For platforms which do not support PIC, -DPIC is meaningless:
12391 *djgpp*)
12392 lt_prog_compiler_pic_CXX=
12393 ;;
12394 *)
12395 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12396 ;;
12397esac
12398
12399#
12400# Check to make sure the static flag actually works.
12401#
12402wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
64ff59ba 12403{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12404echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
d9898ee8 12405if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12406 echo $ECHO_N "(cached) $ECHO_C" >&6
12407else
12408 lt_prog_compiler_static_works_CXX=no
12409 save_LDFLAGS="$LDFLAGS"
12410 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12411 printf "$lt_simple_link_test_code" > conftest.$ac_ext
12412 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12413 # The linker can only warn and ignore the option if not recognized
12414 # So say no if there are warnings
12415 if test -s conftest.err; then
12416 # Append any errors to the config.log.
12417 cat conftest.err 1>&5
12418 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12419 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12420 if diff conftest.exp conftest.er2 >/dev/null; then
12421 lt_prog_compiler_static_works_CXX=yes
12422 fi
12423 else
12424 lt_prog_compiler_static_works_CXX=yes
12425 fi
12426 fi
12427 $rm conftest*
12428 LDFLAGS="$save_LDFLAGS"
12429
12430fi
64ff59ba 12431{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12432echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
d9898ee8 12433
12434if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12435 :
12436else
12437 lt_prog_compiler_static_CXX=
12438fi
12439
12440
64ff59ba 12441{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12442echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
d9898ee8 12443if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12444 echo $ECHO_N "(cached) $ECHO_C" >&6
12445else
12446 lt_cv_prog_compiler_c_o_CXX=no
12447 $rm -r conftest 2>/dev/null
12448 mkdir conftest
12449 cd conftest
12450 mkdir out
12451 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12452
12453 lt_compiler_flag="-o out/conftest2.$ac_objext"
12454 # Insert the option either (1) after the last *FLAGS variable, or
12455 # (2) before a word containing "conftest.", or (3) at the end.
12456 # Note that $ac_compile itself does not contain backslashes and begins
12457 # with a dollar sign (not a hyphen), so the echo should work correctly.
12458 lt_compile=`echo "$ac_compile" | $SED \
12459 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12460 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12461 -e 's:$: $lt_compiler_flag:'`
64ff59ba 12462 (eval echo "\"\$as_me:12462: $lt_compile\"" >&5)
d9898ee8 12463 (eval "$lt_compile" 2>out/conftest.err)
12464 ac_status=$?
12465 cat out/conftest.err >&5
64ff59ba 12466 echo "$as_me:12466: \$? = $ac_status" >&5
d9898ee8 12467 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12468 then
12469 # The compiler can only warn and ignore the option if not recognized
12470 # So say no if there are warnings
12471 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12472 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12473 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12474 lt_cv_prog_compiler_c_o_CXX=yes
12475 fi
12476 fi
12477 chmod u+w . 2>&5
12478 $rm conftest*
12479 # SGI C++ compiler will create directory out/ii_files/ for
12480 # template instantiation
12481 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12482 $rm out/* && rmdir out
12483 cd ..
12484 rmdir conftest
12485 $rm conftest*
12486
12487fi
64ff59ba 12488{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12489echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
d9898ee8 12490
12491
12492hard_links="nottested"
12493if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12494 # do not overwrite the value of need_locks provided by the user
64ff59ba 12495 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12496echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
d9898ee8 12497 hard_links=yes
12498 $rm conftest*
12499 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12500 touch conftest.a
12501 ln conftest.a conftest.b 2>&5 || hard_links=no
12502 ln conftest.a conftest.b 2>/dev/null && hard_links=no
64ff59ba 12503 { echo "$as_me:$LINENO: result: $hard_links" >&5
12504echo "${ECHO_T}$hard_links" >&6; }
d9898ee8 12505 if test "$hard_links" = no; then
12506 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12507echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12508 need_locks=warn
12509 fi
12510else
12511 need_locks=no
12512fi
12513
64ff59ba 12514{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12515echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
d9898ee8 12516
12517 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12518 case $host_os in
12519 aix4* | aix5*)
12520 # If we're using GNU nm, then we don't want the "-C" option.
12521 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12522 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12523 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'
12524 else
12525 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'
12526 fi
12527 ;;
12528 pw32*)
12529 export_symbols_cmds_CXX="$ltdll_cmds"
12530 ;;
12531 cygwin* | mingw*)
12532 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'
12533 ;;
12534 *)
12535 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12536 ;;
12537 esac
12538
64ff59ba 12539{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12540echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
d9898ee8 12541test "$ld_shlibs_CXX" = no && can_build_shared=no
12542
12543#
12544# Do we need to explicitly link libc?
12545#
12546case "x$archive_cmds_need_lc_CXX" in
12547x|xyes)
12548 # Assume -lc should be added
12549 archive_cmds_need_lc_CXX=yes
12550
12551 if test "$enable_shared" = yes && test "$GCC" = yes; then
12552 case $archive_cmds_CXX in
12553 *'~'*)
12554 # FIXME: we may have to deal with multi-command sequences.
12555 ;;
12556 '$CC '*)
12557 # Test whether the compiler implicitly links with -lc since on some
12558 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12559 # to ld, don't add -lc before -lgcc.
64ff59ba 12560 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12561echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
d9898ee8 12562 $rm conftest*
12563 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12564
12565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12566 (eval $ac_compile) 2>&5
12567 ac_status=$?
12568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12569 (exit $ac_status); } 2>conftest.err; then
12570 soname=conftest
12571 lib=conftest
12572 libobjs=conftest.$ac_objext
12573 deplibs=
12574 wl=$lt_prog_compiler_wl_CXX
12575 pic_flag=$lt_prog_compiler_pic_CXX
12576 compiler_flags=-v
12577 linker_flags=-v
12578 verstring=
12579 output_objdir=.
12580 libname=conftest
12581 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12582 allow_undefined_flag_CXX=
12583 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12584 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12585 ac_status=$?
12586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12587 (exit $ac_status); }
12588 then
12589 archive_cmds_need_lc_CXX=no
12590 else
12591 archive_cmds_need_lc_CXX=yes
12592 fi
12593 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12594 else
12595 cat conftest.err 1>&5
12596 fi
12597 $rm conftest*
64ff59ba 12598 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12599echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
d9898ee8 12600 ;;
12601 esac
12602 fi
12603 ;;
12604esac
12605
64ff59ba 12606{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12607echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
d9898ee8 12608library_names_spec=
12609libname_spec='lib$name'
12610soname_spec=
12611shrext_cmds=".so"
12612postinstall_cmds=
12613postuninstall_cmds=
12614finish_cmds=
12615finish_eval=
12616shlibpath_var=
12617shlibpath_overrides_runpath=unknown
12618version_type=none
12619dynamic_linker="$host_os ld.so"
12620sys_lib_dlsearch_path_spec="/lib /usr/lib"
12621if test "$GCC" = yes; then
12622 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12623 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12624 # if the path contains ";" then we assume it to be the separator
12625 # otherwise default to the standard path separator (i.e. ":") - it is
12626 # assumed that no part of a normal pathname contains ";" but that should
12627 # okay in the real world where ";" in dirpaths is itself problematic.
12628 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12629 else
12630 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12631 fi
12632else
12633 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12634fi
12635need_lib_prefix=unknown
12636hardcode_into_libs=no
12637
12638# when you set need_version to no, make sure it does not cause -set_version
12639# flags to be left without arguments
12640need_version=unknown
12641
12642case $host_os in
12643aix3*)
12644 version_type=linux
12645 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12646 shlibpath_var=LIBPATH
12647
12648 # AIX 3 has no versioning support, so we append a major version to the name.
12649 soname_spec='${libname}${release}${shared_ext}$major'
12650 ;;
12651
12652aix4* | aix5*)
12653 version_type=linux
12654 need_lib_prefix=no
12655 need_version=no
12656 hardcode_into_libs=yes
12657 if test "$host_cpu" = ia64; then
12658 # AIX 5 supports IA64
12659 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12660 shlibpath_var=LD_LIBRARY_PATH
12661 else
12662 # With GCC up to 2.95.x, collect2 would create an import file
12663 # for dependence libraries. The import file would start with
12664 # the line `#! .'. This would cause the generated library to
12665 # depend on `.', always an invalid library. This was fixed in
12666 # development snapshots of GCC prior to 3.0.
12667 case $host_os in
12668 aix4 | aix4.[01] | aix4.[01].*)
12669 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12670 echo ' yes '
12671 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12672 :
12673 else
12674 can_build_shared=no
12675 fi
12676 ;;
12677 esac
12678 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12679 # soname into executable. Probably we can add versioning support to
12680 # collect2, so additional links can be useful in future.
12681 if test "$aix_use_runtimelinking" = yes; then
12682 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12683 # instead of lib<name>.a to let people know that these are not
12684 # typical AIX shared libraries.
12685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12686 else
12687 # We preserve .a as extension for shared libraries through AIX4.2
12688 # and later when we are not doing run time linking.
12689 library_names_spec='${libname}${release}.a $libname.a'
12690 soname_spec='${libname}${release}${shared_ext}$major'
12691 fi
12692 shlibpath_var=LIBPATH
12693 fi
12694 ;;
12695
12696amigaos*)
12697 library_names_spec='$libname.ixlibrary $libname.a'
12698 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12699 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'
12700 ;;
12701
12702beos*)
12703 library_names_spec='${libname}${shared_ext}'
12704 dynamic_linker="$host_os ld.so"
12705 shlibpath_var=LIBRARY_PATH
12706 ;;
12707
12708bsdi[45]*)
12709 version_type=linux
12710 need_version=no
12711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12712 soname_spec='${libname}${release}${shared_ext}$major'
12713 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12714 shlibpath_var=LD_LIBRARY_PATH
12715 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12716 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12717 # the default ld.so.conf also contains /usr/contrib/lib and
12718 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12719 # libtool to hard-code these into programs
12720 ;;
12721
12722cygwin* | mingw* | pw32*)
12723 version_type=windows
12724 shrext_cmds=".dll"
12725 need_version=no
12726 need_lib_prefix=no
12727
12728 case $GCC,$host_os in
12729 yes,cygwin* | yes,mingw* | yes,pw32*)
12730 library_names_spec='$libname.dll.a'
12731 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12732 postinstall_cmds='base_file=`basename \${file}`~
12733 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12734 dldir=$destdir/`dirname \$dlpath`~
12735 test -d \$dldir || mkdir -p \$dldir~
12736 $install_prog $dir/$dlname \$dldir/$dlname~
12737 chmod a+x \$dldir/$dlname'
12738 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12739 dlpath=$dir/\$dldll~
12740 $rm \$dlpath'
12741 shlibpath_overrides_runpath=yes
12742
12743 case $host_os in
12744 cygwin*)
12745 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12746 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12747 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12748 ;;
12749 mingw*)
12750 # MinGW DLLs use traditional 'lib' prefix
12751 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12752 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12753 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12754 # It is most probably a Windows format PATH printed by
12755 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12756 # path with ; separators, and with drive letters. We can handle the
12757 # drive letters (cygwin fileutils understands them), so leave them,
12758 # especially as we might pass files found there to a mingw objdump,
12759 # which wouldn't understand a cygwinified path. Ahh.
12760 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12761 else
12762 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12763 fi
12764 ;;
12765 pw32*)
12766 # pw32 DLLs use 'pw' prefix rather than 'lib'
12767 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12768 ;;
12769 esac
12770 ;;
12771
12772 *)
12773 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12774 ;;
12775 esac
12776 dynamic_linker='Win32 ld.exe'
12777 # FIXME: first we should search . and the directory the executable is in
12778 shlibpath_var=PATH
12779 ;;
12780
12781darwin* | rhapsody*)
12782 dynamic_linker="$host_os dyld"
12783 version_type=darwin
12784 need_lib_prefix=no
12785 need_version=no
12786 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12787 soname_spec='${libname}${release}${major}$shared_ext'
12788 shlibpath_overrides_runpath=yes
12789 shlibpath_var=DYLD_LIBRARY_PATH
12790 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12791 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12792 if test "$GCC" = yes; then
12793 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
12794 else
12795 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12796 fi
12797 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12798 ;;
12799
12800dgux*)
12801 version_type=linux
12802 need_lib_prefix=no
12803 need_version=no
12804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12805 soname_spec='${libname}${release}${shared_ext}$major'
12806 shlibpath_var=LD_LIBRARY_PATH
12807 ;;
12808
12809freebsd1*)
12810 dynamic_linker=no
12811 ;;
12812
12813kfreebsd*-gnu)
12814 version_type=linux
12815 need_lib_prefix=no
12816 need_version=no
12817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12818 soname_spec='${libname}${release}${shared_ext}$major'
12819 shlibpath_var=LD_LIBRARY_PATH
12820 shlibpath_overrides_runpath=no
12821 hardcode_into_libs=yes
12822 dynamic_linker='GNU ld.so'
12823 ;;
12824
12825freebsd* | dragonfly*)
12826 # DragonFly does not have aout. When/if they implement a new
12827 # versioning mechanism, adjust this.
12828 if test -x /usr/bin/objformat; then
12829 objformat=`/usr/bin/objformat`
12830 else
12831 case $host_os in
12832 freebsd[123]*) objformat=aout ;;
12833 *) objformat=elf ;;
12834 esac
12835 fi
12836 version_type=freebsd-$objformat
12837 case $version_type in
12838 freebsd-elf*)
12839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12840 need_version=no
12841 need_lib_prefix=no
12842 ;;
12843 freebsd-*)
12844 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12845 need_version=yes
12846 ;;
12847 esac
12848 shlibpath_var=LD_LIBRARY_PATH
12849 case $host_os in
12850 freebsd2*)
12851 shlibpath_overrides_runpath=yes
12852 ;;
12853 freebsd3.[01]* | freebsdelf3.[01]*)
12854 shlibpath_overrides_runpath=yes
12855 hardcode_into_libs=yes
12856 ;;
12857 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12858 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12859 shlibpath_overrides_runpath=no
12860 hardcode_into_libs=yes
12861 ;;
12862 freebsd*) # from 4.6 on
12863 shlibpath_overrides_runpath=yes
12864 hardcode_into_libs=yes
12865 ;;
12866 esac
12867 ;;
12868
12869gnu*)
12870 version_type=linux
12871 need_lib_prefix=no
12872 need_version=no
12873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12874 soname_spec='${libname}${release}${shared_ext}$major'
12875 shlibpath_var=LD_LIBRARY_PATH
12876 hardcode_into_libs=yes
12877 ;;
12878
12879hpux9* | hpux10* | hpux11*)
12880 # Give a soname corresponding to the major version so that dld.sl refuses to
12881 # link against other versions.
12882 version_type=sunos
12883 need_lib_prefix=no
12884 need_version=no
12885 case $host_cpu in
12886 ia64*)
12887 shrext_cmds='.so'
12888 hardcode_into_libs=yes
12889 dynamic_linker="$host_os dld.so"
12890 shlibpath_var=LD_LIBRARY_PATH
12891 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12893 soname_spec='${libname}${release}${shared_ext}$major'
12894 if test "X$HPUX_IA64_MODE" = X32; then
12895 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12896 else
12897 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12898 fi
12899 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12900 ;;
12901 hppa*64*)
12902 shrext_cmds='.sl'
12903 hardcode_into_libs=yes
12904 dynamic_linker="$host_os dld.sl"
12905 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12906 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12908 soname_spec='${libname}${release}${shared_ext}$major'
12909 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12910 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12911 ;;
12912 *)
12913 shrext_cmds='.sl'
12914 dynamic_linker="$host_os dld.sl"
12915 shlibpath_var=SHLIB_PATH
12916 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12918 soname_spec='${libname}${release}${shared_ext}$major'
12919 ;;
12920 esac
12921 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12922 postinstall_cmds='chmod 555 $lib'
12923 ;;
12924
12925interix3*)
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 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12932 shlibpath_var=LD_LIBRARY_PATH
12933 shlibpath_overrides_runpath=no
12934 hardcode_into_libs=yes
12935 ;;
12936
12937irix5* | irix6* | nonstopux*)
12938 case $host_os in
12939 nonstopux*) version_type=nonstopux ;;
12940 *)
12941 if test "$lt_cv_prog_gnu_ld" = yes; then
12942 version_type=linux
12943 else
12944 version_type=irix
12945 fi ;;
12946 esac
12947 need_lib_prefix=no
12948 need_version=no
12949 soname_spec='${libname}${release}${shared_ext}$major'
12950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12951 case $host_os in
12952 irix5* | nonstopux*)
12953 libsuff= shlibsuff=
12954 ;;
12955 *)
12956 case $LD in # libtool.m4 will add one of these switches to LD
12957 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12958 libsuff= shlibsuff= libmagic=32-bit;;
12959 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12960 libsuff=32 shlibsuff=N32 libmagic=N32;;
12961 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12962 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12963 *) libsuff= shlibsuff= libmagic=never-match;;
12964 esac
12965 ;;
12966 esac
12967 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12968 shlibpath_overrides_runpath=no
12969 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12970 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12971 hardcode_into_libs=yes
12972 ;;
12973
12974# No shared lib support for Linux oldld, aout, or coff.
12975linux*oldld* | linux*aout* | linux*coff*)
12976 dynamic_linker=no
12977 ;;
12978
12979# This must be Linux ELF.
12980linux*)
12981 version_type=linux
12982 need_lib_prefix=no
12983 need_version=no
12984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12985 soname_spec='${libname}${release}${shared_ext}$major'
12986 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12987 shlibpath_var=LD_LIBRARY_PATH
12988 shlibpath_overrides_runpath=no
12989 # This implies no fast_install, which is unacceptable.
12990 # Some rework will be needed to allow for fast_install
12991 # before this can be enabled.
12992 hardcode_into_libs=yes
12993
12994 # find out which ABI we are using
12995 libsuff=
12996 case "$host_cpu" in
12997 x86_64*|s390x*|powerpc64*)
64ff59ba 12998 echo '#line 12998 "configure"' > conftest.$ac_ext
d9898ee8 12999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13000 (eval $ac_compile) 2>&5
13001 ac_status=$?
13002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13003 (exit $ac_status); }; then
13004 case `/usr/bin/file conftest.$ac_objext` in
13005 *64-bit*)
13006 libsuff=64
13007 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
13008 ;;
13009 esac
13010 fi
13011 rm -rf conftest*
13012 ;;
13013 esac
13014
13015 # Append ld.so.conf contents to the search path
13016 if test -f /etc/ld.so.conf; then
64ff59ba 13017 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/^ *//;s/#.*//;/^[^\/]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
d9898ee8 13018 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
13019 fi
13020
13021 # We used to test for /lib/ld.so.1 and disable shared libraries on
13022 # powerpc, because MkLinux only supported shared libraries with the
13023 # GNU dynamic linker. Since this was broken with cross compilers,
13024 # most powerpc-linux boxes support dynamic linking these days and
13025 # people can always --disable-shared, the test was removed, and we
13026 # assume the GNU/Linux dynamic linker is in use.
13027 dynamic_linker='GNU/Linux ld.so'
13028 ;;
13029
13030knetbsd*-gnu)
13031 version_type=linux
13032 need_lib_prefix=no
13033 need_version=no
13034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13035 soname_spec='${libname}${release}${shared_ext}$major'
13036 shlibpath_var=LD_LIBRARY_PATH
13037 shlibpath_overrides_runpath=no
13038 hardcode_into_libs=yes
13039 dynamic_linker='GNU ld.so'
13040 ;;
13041
13042netbsd*)
13043 version_type=sunos
13044 need_lib_prefix=no
13045 need_version=no
13046 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13048 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13049 dynamic_linker='NetBSD (a.out) ld.so'
13050 else
13051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13052 soname_spec='${libname}${release}${shared_ext}$major'
13053 dynamic_linker='NetBSD ld.elf_so'
13054 fi
13055 shlibpath_var=LD_LIBRARY_PATH
13056 shlibpath_overrides_runpath=yes
13057 hardcode_into_libs=yes
13058 ;;
13059
13060newsos6)
13061 version_type=linux
13062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13063 shlibpath_var=LD_LIBRARY_PATH
13064 shlibpath_overrides_runpath=yes
13065 ;;
13066
13067nto-qnx*)
13068 version_type=linux
13069 need_lib_prefix=no
13070 need_version=no
13071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13072 soname_spec='${libname}${release}${shared_ext}$major'
13073 shlibpath_var=LD_LIBRARY_PATH
13074 shlibpath_overrides_runpath=yes
13075 ;;
13076
13077openbsd*)
13078 version_type=sunos
13079 sys_lib_dlsearch_path_spec="/usr/lib"
13080 need_lib_prefix=no
13081 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13082 case $host_os in
13083 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13084 *) need_version=no ;;
13085 esac
13086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13087 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13088 shlibpath_var=LD_LIBRARY_PATH
13089 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13090 case $host_os in
13091 openbsd2.[89] | openbsd2.[89].*)
13092 shlibpath_overrides_runpath=no
13093 ;;
13094 *)
13095 shlibpath_overrides_runpath=yes
13096 ;;
13097 esac
13098 else
13099 shlibpath_overrides_runpath=yes
13100 fi
13101 ;;
13102
13103os2*)
13104 libname_spec='$name'
13105 shrext_cmds=".dll"
13106 need_lib_prefix=no
13107 library_names_spec='$libname${shared_ext} $libname.a'
13108 dynamic_linker='OS/2 ld.exe'
13109 shlibpath_var=LIBPATH
13110 ;;
13111
13112osf3* | osf4* | osf5*)
13113 version_type=osf
13114 need_lib_prefix=no
13115 need_version=no
13116 soname_spec='${libname}${release}${shared_ext}$major'
13117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13118 shlibpath_var=LD_LIBRARY_PATH
13119 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13120 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13121 ;;
13122
13123solaris*)
13124 version_type=linux
13125 need_lib_prefix=no
13126 need_version=no
13127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13128 soname_spec='${libname}${release}${shared_ext}$major'
13129 shlibpath_var=LD_LIBRARY_PATH
13130 shlibpath_overrides_runpath=yes
13131 hardcode_into_libs=yes
13132 # ldd complains unless libraries are executable
13133 postinstall_cmds='chmod +x $lib'
13134 ;;
13135
13136sunos4*)
13137 version_type=sunos
13138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13139 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13140 shlibpath_var=LD_LIBRARY_PATH
13141 shlibpath_overrides_runpath=yes
13142 if test "$with_gnu_ld" = yes; then
13143 need_lib_prefix=no
13144 fi
13145 need_version=yes
13146 ;;
13147
13148sysv4 | sysv4.3*)
13149 version_type=linux
13150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13151 soname_spec='${libname}${release}${shared_ext}$major'
13152 shlibpath_var=LD_LIBRARY_PATH
13153 case $host_vendor in
13154 sni)
13155 shlibpath_overrides_runpath=no
13156 need_lib_prefix=no
13157 export_dynamic_flag_spec='${wl}-Blargedynsym'
13158 runpath_var=LD_RUN_PATH
13159 ;;
13160 siemens)
13161 need_lib_prefix=no
13162 ;;
13163 motorola)
13164 need_lib_prefix=no
13165 need_version=no
13166 shlibpath_overrides_runpath=no
13167 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13168 ;;
13169 esac
13170 ;;
13171
13172sysv4*MP*)
13173 if test -d /usr/nec ;then
13174 version_type=linux
13175 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13176 soname_spec='$libname${shared_ext}.$major'
13177 shlibpath_var=LD_LIBRARY_PATH
13178 fi
13179 ;;
13180
13181sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13182 version_type=freebsd-elf
13183 need_lib_prefix=no
13184 need_version=no
13185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13186 soname_spec='${libname}${release}${shared_ext}$major'
13187 shlibpath_var=LD_LIBRARY_PATH
13188 hardcode_into_libs=yes
13189 if test "$with_gnu_ld" = yes; then
13190 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13191 shlibpath_overrides_runpath=no
13192 else
13193 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13194 shlibpath_overrides_runpath=yes
13195 case $host_os in
13196 sco3.2v5*)
13197 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13198 ;;
13199 esac
13200 fi
13201 sys_lib_dlsearch_path_spec='/usr/lib'
13202 ;;
13203
13204uts4*)
13205 version_type=linux
13206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13207 soname_spec='${libname}${release}${shared_ext}$major'
13208 shlibpath_var=LD_LIBRARY_PATH
13209 ;;
13210
13211*)
13212 dynamic_linker=no
13213 ;;
13214esac
64ff59ba 13215{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13216echo "${ECHO_T}$dynamic_linker" >&6; }
d9898ee8 13217test "$dynamic_linker" = no && can_build_shared=no
13218
13219variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13220if test "$GCC" = yes; then
13221 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13222fi
13223
64ff59ba 13224{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13225echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
d9898ee8 13226hardcode_action_CXX=
13227if test -n "$hardcode_libdir_flag_spec_CXX" || \
13228 test -n "$runpath_var_CXX" || \
13229 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13230
13231 # We can hardcode non-existant directories.
13232 if test "$hardcode_direct_CXX" != no &&
13233 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13234 # have to relink, otherwise we might link with an installed library
13235 # when we should be linking with a yet-to-be-installed one
13236 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13237 test "$hardcode_minus_L_CXX" != no; then
13238 # Linking always hardcodes the temporary library directory.
13239 hardcode_action_CXX=relink
13240 else
13241 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13242 hardcode_action_CXX=immediate
13243 fi
13244else
13245 # We cannot hardcode anything, or else we can only hardcode existing
13246 # directories.
13247 hardcode_action_CXX=unsupported
13248fi
64ff59ba 13249{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13250echo "${ECHO_T}$hardcode_action_CXX" >&6; }
d9898ee8 13251
13252if test "$hardcode_action_CXX" = relink; then
13253 # Fast installation is not supported
13254 enable_fast_install=no
13255elif test "$shlibpath_overrides_runpath" = yes ||
13256 test "$enable_shared" = no; then
13257 # Fast installation is not necessary
13258 enable_fast_install=needless
13259fi
13260
13261
13262# The else clause should only fire when bootstrapping the
13263# libtool distribution, otherwise you forgot to ship ltmain.sh
13264# with your package, and you will get complaints that there are
13265# no rules to generate ltmain.sh.
13266if test -f "$ltmain"; then
13267 # See if we are running on zsh, and set the options which allow our commands through
13268 # without removal of \ escapes.
13269 if test -n "${ZSH_VERSION+set}" ; then
13270 setopt NO_GLOB_SUBST
13271 fi
13272 # Now quote all the things that may contain metacharacters while being
13273 # careful not to overquote the AC_SUBSTed values. We take copies of the
13274 # variables and quote the copies for generation of the libtool script.
13275 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13276 SED SHELL STRIP \
13277 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13278 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13279 deplibs_check_method reload_flag reload_cmds need_locks \
13280 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13281 lt_cv_sys_global_symbol_to_c_name_address \
13282 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13283 old_postinstall_cmds old_postuninstall_cmds \
13284 compiler_CXX \
13285 CC_CXX \
13286 LD_CXX \
13287 lt_prog_compiler_wl_CXX \
13288 lt_prog_compiler_pic_CXX \
13289 lt_prog_compiler_static_CXX \
13290 lt_prog_compiler_no_builtin_flag_CXX \
13291 export_dynamic_flag_spec_CXX \
13292 thread_safe_flag_spec_CXX \
13293 whole_archive_flag_spec_CXX \
13294 enable_shared_with_static_runtimes_CXX \
13295 old_archive_cmds_CXX \
13296 old_archive_from_new_cmds_CXX \
13297 predep_objects_CXX \
13298 postdep_objects_CXX \
13299 predeps_CXX \
13300 postdeps_CXX \
13301 compiler_lib_search_path_CXX \
13302 archive_cmds_CXX \
13303 archive_expsym_cmds_CXX \
13304 postinstall_cmds_CXX \
13305 postuninstall_cmds_CXX \
13306 old_archive_from_expsyms_cmds_CXX \
13307 allow_undefined_flag_CXX \
13308 no_undefined_flag_CXX \
13309 export_symbols_cmds_CXX \
13310 hardcode_libdir_flag_spec_CXX \
13311 hardcode_libdir_flag_spec_ld_CXX \
13312 hardcode_libdir_separator_CXX \
13313 hardcode_automatic_CXX \
13314 module_cmds_CXX \
13315 module_expsym_cmds_CXX \
13316 lt_cv_prog_compiler_c_o_CXX \
13317 exclude_expsyms_CXX \
13318 include_expsyms_CXX; do
13319
13320 case $var in
13321 old_archive_cmds_CXX | \
13322 old_archive_from_new_cmds_CXX | \
13323 archive_cmds_CXX | \
13324 archive_expsym_cmds_CXX | \
13325 module_cmds_CXX | \
13326 module_expsym_cmds_CXX | \
13327 old_archive_from_expsyms_cmds_CXX | \
13328 export_symbols_cmds_CXX | \
13329 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13330 postinstall_cmds | postuninstall_cmds | \
13331 old_postinstall_cmds | old_postuninstall_cmds | \
13332 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13333 # Double-quote double-evaled strings.
13334 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13335 ;;
13336 *)
13337 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13338 ;;
13339 esac
13340 done
13341
13342 case $lt_echo in
13343 *'\$0 --fallback-echo"')
13344 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13345 ;;
13346 esac
13347
13348cfgfile="$ofile"
13349
13350 cat <<__EOF__ >> "$cfgfile"
13351# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13352
13353# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13354
13355# Shell to use when invoking shell scripts.
13356SHELL=$lt_SHELL
13357
13358# Whether or not to build shared libraries.
13359build_libtool_libs=$enable_shared
13360
13361# Whether or not to build static libraries.
13362build_old_libs=$enable_static
13363
13364# Whether or not to add -lc for building shared libraries.
13365build_libtool_need_lc=$archive_cmds_need_lc_CXX
13366
13367# Whether or not to disallow shared libs when runtime libs are static
13368allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13369
13370# Whether or not to optimize for fast installation.
13371fast_install=$enable_fast_install
13372
13373# The host system.
13374host_alias=$host_alias
13375host=$host
13376host_os=$host_os
13377
13378# The build system.
13379build_alias=$build_alias
13380build=$build
13381build_os=$build_os
13382
13383# An echo program that does not interpret backslashes.
13384echo=$lt_echo
13385
13386# The archiver.
13387AR=$lt_AR
13388AR_FLAGS=$lt_AR_FLAGS
13389
13390# A C compiler.
13391LTCC=$lt_LTCC
13392
13393# LTCC compiler flags.
13394LTCFLAGS=$lt_LTCFLAGS
13395
13396# A language-specific compiler.
13397CC=$lt_compiler_CXX
13398
13399# Is the compiler the GNU C compiler?
13400with_gcc=$GCC_CXX
13401
d9898ee8 13402# An ERE matcher.
13403EGREP=$lt_EGREP
13404
13405# The linker used to build libraries.
13406LD=$lt_LD_CXX
13407
13408# Whether we need hard or soft links.
13409LN_S=$lt_LN_S
13410
13411# A BSD-compatible nm program.
13412NM=$lt_NM
13413
13414# A symbol stripping program
13415STRIP=$lt_STRIP
13416
13417# Used to examine libraries when file_magic_cmd begins "file"
13418MAGIC_CMD=$MAGIC_CMD
13419
13420# Used on cygwin: DLL creation program.
13421DLLTOOL="$DLLTOOL"
13422
13423# Used on cygwin: object dumper.
13424OBJDUMP="$OBJDUMP"
13425
13426# Used on cygwin: assembler.
13427AS="$AS"
13428
13429# The name of the directory that contains temporary libtool files.
13430objdir=$objdir
13431
13432# How to create reloadable object files.
13433reload_flag=$lt_reload_flag
13434reload_cmds=$lt_reload_cmds
13435
13436# How to pass a linker flag through the compiler.
13437wl=$lt_lt_prog_compiler_wl_CXX
13438
13439# Object file suffix (normally "o").
13440objext="$ac_objext"
13441
13442# Old archive suffix (normally "a").
13443libext="$libext"
13444
13445# Shared library suffix (normally ".so").
13446shrext_cmds='$shrext_cmds'
13447
13448# Executable file suffix (normally "").
13449exeext="$exeext"
13450
13451# Additional compiler flags for building library objects.
13452pic_flag=$lt_lt_prog_compiler_pic_CXX
13453pic_mode=$pic_mode
13454
13455# What is the maximum length of a command?
13456max_cmd_len=$lt_cv_sys_max_cmd_len
13457
13458# Does compiler simultaneously support -c and -o options?
13459compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13460
13461# Must we lock files when doing compilation?
13462need_locks=$lt_need_locks
13463
13464# Do we need the lib prefix for modules?
13465need_lib_prefix=$need_lib_prefix
13466
13467# Do we need a version for libraries?
13468need_version=$need_version
13469
13470# Whether dlopen is supported.
13471dlopen_support=$enable_dlopen
13472
13473# Whether dlopen of programs is supported.
13474dlopen_self=$enable_dlopen_self
13475
13476# Whether dlopen of statically linked programs is supported.
13477dlopen_self_static=$enable_dlopen_self_static
13478
13479# Compiler flag to prevent dynamic linking.
13480link_static_flag=$lt_lt_prog_compiler_static_CXX
13481
13482# Compiler flag to turn off builtin functions.
13483no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13484
13485# Compiler flag to allow reflexive dlopens.
13486export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13487
13488# Compiler flag to generate shared objects directly from archives.
13489whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13490
13491# Compiler flag to generate thread-safe objects.
13492thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13493
13494# Library versioning type.
13495version_type=$version_type
13496
13497# Format of library name prefix.
13498libname_spec=$lt_libname_spec
13499
13500# List of archive names. First name is the real one, the rest are links.
13501# The last name is the one that the linker finds with -lNAME.
13502library_names_spec=$lt_library_names_spec
13503
13504# The coded name of the library, if different from the real name.
13505soname_spec=$lt_soname_spec
13506
13507# Commands used to build and install an old-style archive.
13508RANLIB=$lt_RANLIB
13509old_archive_cmds=$lt_old_archive_cmds_CXX
13510old_postinstall_cmds=$lt_old_postinstall_cmds
13511old_postuninstall_cmds=$lt_old_postuninstall_cmds
13512
13513# Create an old-style archive from a shared archive.
13514old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13515
13516# Create a temporary old-style archive to link instead of a shared archive.
13517old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13518
13519# Commands used to build and install a shared archive.
13520archive_cmds=$lt_archive_cmds_CXX
13521archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13522postinstall_cmds=$lt_postinstall_cmds
13523postuninstall_cmds=$lt_postuninstall_cmds
13524
13525# Commands used to build a loadable module (assumed same as above if empty)
13526module_cmds=$lt_module_cmds_CXX
13527module_expsym_cmds=$lt_module_expsym_cmds_CXX
13528
13529# Commands to strip libraries.
13530old_striplib=$lt_old_striplib
13531striplib=$lt_striplib
13532
13533# Dependencies to place before the objects being linked to create a
13534# shared library.
64ff59ba 13535predep_objects=$lt_predep_objects_CXX
d9898ee8 13536
13537# Dependencies to place after the objects being linked to create a
13538# shared library.
64ff59ba 13539postdep_objects=$lt_postdep_objects_CXX
d9898ee8 13540
13541# Dependencies to place before the objects being linked to create a
13542# shared library.
13543predeps=$lt_predeps_CXX
13544
13545# Dependencies to place after the objects being linked to create a
13546# shared library.
13547postdeps=$lt_postdeps_CXX
13548
13549# The library search path used internally by the compiler when linking
13550# a shared library.
64ff59ba 13551compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
d9898ee8 13552
13553# Method to check whether dependent libraries are shared objects.
13554deplibs_check_method=$lt_deplibs_check_method
13555
13556# Command to use when deplibs_check_method == file_magic.
13557file_magic_cmd=$lt_file_magic_cmd
13558
13559# Flag that allows shared libraries with undefined symbols to be built.
13560allow_undefined_flag=$lt_allow_undefined_flag_CXX
13561
13562# Flag that forces no undefined symbols.
13563no_undefined_flag=$lt_no_undefined_flag_CXX
13564
13565# Commands used to finish a libtool library installation in a directory.
13566finish_cmds=$lt_finish_cmds
13567
13568# Same as above, but a single script fragment to be evaled but not shown.
13569finish_eval=$lt_finish_eval
13570
13571# Take the output of nm and produce a listing of raw symbols and C names.
13572global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13573
13574# Transform the output of nm in a proper C declaration
13575global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13576
13577# Transform the output of nm in a C name address pair
13578global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13579
13580# This is the shared library runtime path variable.
13581runpath_var=$runpath_var
13582
13583# This is the shared library path variable.
13584shlibpath_var=$shlibpath_var
13585
13586# Is shlibpath searched before the hard-coded library search path?
13587shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13588
13589# How to hardcode a shared library path into an executable.
13590hardcode_action=$hardcode_action_CXX
13591
13592# Whether we should hardcode library paths into libraries.
13593hardcode_into_libs=$hardcode_into_libs
13594
13595# Flag to hardcode \$libdir into a binary during linking.
13596# This must work even if \$libdir does not exist.
13597hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13598
13599# If ld is used when linking, flag to hardcode \$libdir into
13600# a binary during linking. This must work even if \$libdir does
13601# not exist.
13602hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13603
13604# Whether we need a single -rpath flag with a separated argument.
13605hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13606
13607# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13608# resulting binary.
13609hardcode_direct=$hardcode_direct_CXX
13610
13611# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13612# resulting binary.
13613hardcode_minus_L=$hardcode_minus_L_CXX
13614
13615# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13616# the resulting binary.
13617hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13618
13619# Set to yes if building a shared library automatically hardcodes DIR into the library
13620# and all subsequent libraries and executables linked against it.
13621hardcode_automatic=$hardcode_automatic_CXX
13622
13623# Variables whose values should be saved in libtool wrapper scripts and
13624# restored at relink time.
13625variables_saved_for_relink="$variables_saved_for_relink"
13626
13627# Whether libtool must link a program against all its dependency libraries.
13628link_all_deplibs=$link_all_deplibs_CXX
13629
13630# Compile-time system search path for libraries
64ff59ba 13631sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
d9898ee8 13632
13633# Run-time system search path for libraries
13634sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13635
13636# Fix the shell variable \$srcfile for the compiler.
13637fix_srcfile_path="$fix_srcfile_path_CXX"
13638
13639# Set to yes if exported symbols are required.
13640always_export_symbols=$always_export_symbols_CXX
13641
13642# The commands to list exported symbols.
13643export_symbols_cmds=$lt_export_symbols_cmds_CXX
13644
13645# The commands to extract the exported symbol list from a shared archive.
13646extract_expsyms_cmds=$lt_extract_expsyms_cmds
13647
13648# Symbols that should not be listed in the preloaded symbols.
13649exclude_expsyms=$lt_exclude_expsyms_CXX
13650
13651# Symbols that must always be exported.
13652include_expsyms=$lt_include_expsyms_CXX
13653
13654# ### END LIBTOOL TAG CONFIG: $tagname
13655
13656__EOF__
13657
13658
13659else
13660 # If there is no Makefile yet, we rely on a make rule to execute
13661 # `config.status --recheck' to rerun these tests and create the
13662 # libtool script then.
13663 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13664 if test -f "$ltmain_in"; then
13665 test -f Makefile && make "$ltmain"
13666 fi
13667fi
13668
13669
13670ac_ext=c
13671ac_cpp='$CPP $CPPFLAGS'
13672ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13673ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13674ac_compiler_gnu=$ac_cv_c_compiler_gnu
13675
13676CC=$lt_save_CC
13677LDCXX=$LD
13678LD=$lt_save_LD
13679GCC=$lt_save_GCC
13680with_gnu_ldcxx=$with_gnu_ld
13681with_gnu_ld=$lt_save_with_gnu_ld
13682lt_cv_path_LDCXX=$lt_cv_path_LD
13683lt_cv_path_LD=$lt_save_path_LD
13684lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13685lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13686
13687 else
13688 tagname=""
13689 fi
13690 ;;
13691
13692 F77)
13693 if test -n "$F77" && test "X$F77" != "Xno"; then
13694
13695ac_ext=f
13696ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13697ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13698ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13699
13700
13701archive_cmds_need_lc_F77=no
13702allow_undefined_flag_F77=
13703always_export_symbols_F77=no
13704archive_expsym_cmds_F77=
13705export_dynamic_flag_spec_F77=
13706hardcode_direct_F77=no
13707hardcode_libdir_flag_spec_F77=
13708hardcode_libdir_flag_spec_ld_F77=
13709hardcode_libdir_separator_F77=
13710hardcode_minus_L_F77=no
13711hardcode_automatic_F77=no
13712module_cmds_F77=
13713module_expsym_cmds_F77=
13714link_all_deplibs_F77=unknown
13715old_archive_cmds_F77=$old_archive_cmds
13716no_undefined_flag_F77=
13717whole_archive_flag_spec_F77=
13718enable_shared_with_static_runtimes_F77=no
13719
13720# Source file extension for f77 test sources.
13721ac_ext=f
13722
13723# Object file extension for compiled f77 test sources.
13724objext=o
13725objext_F77=$objext
13726
13727# Code to be used in simple compile tests
13728lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13729
13730# Code to be used in simple link tests
13731lt_simple_link_test_code=" program t\n end\n"
13732
13733# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13734
13735# If no C compiler was specified, use CC.
13736LTCC=${LTCC-"$CC"}
13737
13738# If no C compiler flags were specified, use CFLAGS.
13739LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13740
13741# Allow CC to be a program name with arguments.
13742compiler=$CC
13743
13744
13745# save warnings/boilerplate of simple test code
13746ac_outfile=conftest.$ac_objext
13747printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13748eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13749_lt_compiler_boilerplate=`cat conftest.err`
13750$rm conftest*
13751
13752ac_outfile=conftest.$ac_objext
13753printf "$lt_simple_link_test_code" >conftest.$ac_ext
13754eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13755_lt_linker_boilerplate=`cat conftest.err`
13756$rm conftest*
13757
13758
13759# Allow CC to be a program name with arguments.
13760lt_save_CC="$CC"
13761CC=${F77-"f77"}
13762compiler=$CC
13763compiler_F77=$CC
13764for cc_temp in $compiler""; do
13765 case $cc_temp in
13766 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13767 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13768 \-*) ;;
13769 *) break;;
13770 esac
13771done
13772cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13773
13774
64ff59ba 13775{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13776echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13777{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
13778echo "${ECHO_T}$can_build_shared" >&6; }
d9898ee8 13779
64ff59ba 13780{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13781echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
d9898ee8 13782test "$can_build_shared" = "no" && enable_shared=no
13783
13784# On AIX, shared libraries and static libraries use the same namespace, and
13785# are all built from PIC.
13786case $host_os in
13787aix3*)
13788 test "$enable_shared" = yes && enable_static=no
13789 if test -n "$RANLIB"; then
13790 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13791 postinstall_cmds='$RANLIB $lib'
13792 fi
13793 ;;
13794aix4* | aix5*)
13795 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13796 test "$enable_shared" = yes && enable_static=no
13797 fi
13798 ;;
13799esac
64ff59ba 13800{ echo "$as_me:$LINENO: result: $enable_shared" >&5
13801echo "${ECHO_T}$enable_shared" >&6; }
d9898ee8 13802
64ff59ba 13803{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13804echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
d9898ee8 13805# Make sure either enable_shared or enable_static is yes.
13806test "$enable_shared" = yes || enable_static=yes
64ff59ba 13807{ echo "$as_me:$LINENO: result: $enable_static" >&5
13808echo "${ECHO_T}$enable_static" >&6; }
d9898ee8 13809
13810GCC_F77="$G77"
13811LD_F77="$LD"
13812
13813lt_prog_compiler_wl_F77=
13814lt_prog_compiler_pic_F77=
13815lt_prog_compiler_static_F77=
13816
64ff59ba 13817{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13818echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
d9898ee8 13819
13820 if test "$GCC" = yes; then
13821 lt_prog_compiler_wl_F77='-Wl,'
13822 lt_prog_compiler_static_F77='-static'
13823
13824 case $host_os in
13825 aix*)
13826 # All AIX code is PIC.
13827 if test "$host_cpu" = ia64; then
13828 # AIX 5 now supports IA64 processor
13829 lt_prog_compiler_static_F77='-Bstatic'
13830 fi
13831 ;;
13832
13833 amigaos*)
13834 # FIXME: we need at least 68020 code to build shared libraries, but
13835 # adding the `-m68020' flag to GCC prevents building anything better,
13836 # like `-m68040'.
13837 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13838 ;;
13839
13840 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13841 # PIC is the default for these OSes.
13842 ;;
13843
13844 mingw* | pw32* | os2*)
13845 # This hack is so that the source file can tell whether it is being
13846 # built for inclusion in a dll (and should export symbols for example).
13847 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13848 ;;
13849
13850 darwin* | rhapsody*)
13851 # PIC is the default on this platform
13852 # Common symbols not allowed in MH_DYLIB files
13853 lt_prog_compiler_pic_F77='-fno-common'
13854 ;;
13855
13856 interix3*)
13857 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13858 # Instead, we relocate shared libraries at runtime.
13859 ;;
13860
13861 msdosdjgpp*)
13862 # Just because we use GCC doesn't mean we suddenly get shared libraries
13863 # on systems that don't support them.
13864 lt_prog_compiler_can_build_shared_F77=no
13865 enable_shared=no
13866 ;;
13867
13868 sysv4*MP*)
13869 if test -d /usr/nec; then
13870 lt_prog_compiler_pic_F77=-Kconform_pic
13871 fi
13872 ;;
13873
13874 hpux*)
13875 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13876 # not for PA HP-UX.
13877 case $host_cpu in
13878 hppa*64*|ia64*)
13879 # +Z the default
13880 ;;
13881 *)
13882 lt_prog_compiler_pic_F77='-fPIC'
13883 ;;
13884 esac
13885 ;;
13886
13887 *)
13888 lt_prog_compiler_pic_F77='-fPIC'
13889 ;;
13890 esac
13891 else
13892 # PORTME Check for flag to pass linker flags through the system compiler.
13893 case $host_os in
13894 aix*)
13895 lt_prog_compiler_wl_F77='-Wl,'
13896 if test "$host_cpu" = ia64; then
13897 # AIX 5 now supports IA64 processor
13898 lt_prog_compiler_static_F77='-Bstatic'
13899 else
13900 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13901 fi
13902 ;;
13903 darwin*)
13904 # PIC is the default on this platform
13905 # Common symbols not allowed in MH_DYLIB files
13906 case $cc_basename in
13907 xlc*)
13908 lt_prog_compiler_pic_F77='-qnocommon'
13909 lt_prog_compiler_wl_F77='-Wl,'
13910 ;;
13911 esac
13912 ;;
13913
13914 mingw* | pw32* | os2*)
13915 # This hack is so that the source file can tell whether it is being
13916 # built for inclusion in a dll (and should export symbols for example).
13917 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13918 ;;
13919
13920 hpux9* | hpux10* | hpux11*)
13921 lt_prog_compiler_wl_F77='-Wl,'
13922 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13923 # not for PA HP-UX.
13924 case $host_cpu in
13925 hppa*64*|ia64*)
13926 # +Z the default
13927 ;;
13928 *)
13929 lt_prog_compiler_pic_F77='+Z'
13930 ;;
13931 esac
13932 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13933 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13934 ;;
13935
13936 irix5* | irix6* | nonstopux*)
13937 lt_prog_compiler_wl_F77='-Wl,'
13938 # PIC (with -KPIC) is the default.
13939 lt_prog_compiler_static_F77='-non_shared'
13940 ;;
13941
13942 newsos6)
13943 lt_prog_compiler_pic_F77='-KPIC'
13944 lt_prog_compiler_static_F77='-Bstatic'
13945 ;;
13946
13947 linux*)
13948 case $cc_basename in
13949 icc* | ecc*)
13950 lt_prog_compiler_wl_F77='-Wl,'
13951 lt_prog_compiler_pic_F77='-KPIC'
13952 lt_prog_compiler_static_F77='-static'
13953 ;;
13954 pgcc* | pgf77* | pgf90* | pgf95*)
13955 # Portland Group compilers (*not* the Pentium gcc compiler,
13956 # which looks to be a dead project)
13957 lt_prog_compiler_wl_F77='-Wl,'
13958 lt_prog_compiler_pic_F77='-fpic'
13959 lt_prog_compiler_static_F77='-Bstatic'
13960 ;;
13961 ccc*)
13962 lt_prog_compiler_wl_F77='-Wl,'
13963 # All Alpha code is PIC.
13964 lt_prog_compiler_static_F77='-non_shared'
13965 ;;
13966 esac
13967 ;;
13968
13969 osf3* | osf4* | osf5*)
13970 lt_prog_compiler_wl_F77='-Wl,'
13971 # All OSF/1 code is PIC.
13972 lt_prog_compiler_static_F77='-non_shared'
13973 ;;
13974
13975 solaris*)
13976 lt_prog_compiler_pic_F77='-KPIC'
13977 lt_prog_compiler_static_F77='-Bstatic'
13978 case $cc_basename in
13979 f77* | f90* | f95*)
13980 lt_prog_compiler_wl_F77='-Qoption ld ';;
13981 *)
13982 lt_prog_compiler_wl_F77='-Wl,';;
13983 esac
13984 ;;
13985
13986 sunos4*)
13987 lt_prog_compiler_wl_F77='-Qoption ld '
13988 lt_prog_compiler_pic_F77='-PIC'
13989 lt_prog_compiler_static_F77='-Bstatic'
13990 ;;
13991
13992 sysv4 | sysv4.2uw2* | sysv4.3*)
13993 lt_prog_compiler_wl_F77='-Wl,'
13994 lt_prog_compiler_pic_F77='-KPIC'
13995 lt_prog_compiler_static_F77='-Bstatic'
13996 ;;
13997
13998 sysv4*MP*)
13999 if test -d /usr/nec ;then
14000 lt_prog_compiler_pic_F77='-Kconform_pic'
14001 lt_prog_compiler_static_F77='-Bstatic'
14002 fi
14003 ;;
14004
14005 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14006 lt_prog_compiler_wl_F77='-Wl,'
14007 lt_prog_compiler_pic_F77='-KPIC'
14008 lt_prog_compiler_static_F77='-Bstatic'
14009 ;;
14010
14011 unicos*)
14012 lt_prog_compiler_wl_F77='-Wl,'
14013 lt_prog_compiler_can_build_shared_F77=no
14014 ;;
14015
14016 uts4*)
14017 lt_prog_compiler_pic_F77='-pic'
14018 lt_prog_compiler_static_F77='-Bstatic'
14019 ;;
14020
14021 *)
14022 lt_prog_compiler_can_build_shared_F77=no
14023 ;;
14024 esac
14025 fi
14026
64ff59ba 14027{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14028echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
d9898ee8 14029
14030#
14031# Check to make sure the PIC flag actually works.
14032#
14033if test -n "$lt_prog_compiler_pic_F77"; then
14034
64ff59ba 14035{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14036echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
d9898ee8 14037if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14038 echo $ECHO_N "(cached) $ECHO_C" >&6
14039else
14040 lt_prog_compiler_pic_works_F77=no
14041 ac_outfile=conftest.$ac_objext
14042 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14043 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14044 # Insert the option either (1) after the last *FLAGS variable, or
14045 # (2) before a word containing "conftest.", or (3) at the end.
14046 # Note that $ac_compile itself does not contain backslashes and begins
14047 # with a dollar sign (not a hyphen), so the echo should work correctly.
14048 # The option is referenced via a variable to avoid confusing sed.
14049 lt_compile=`echo "$ac_compile" | $SED \
14050 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14051 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14052 -e 's:$: $lt_compiler_flag:'`
64ff59ba 14053 (eval echo "\"\$as_me:14053: $lt_compile\"" >&5)
d9898ee8 14054 (eval "$lt_compile" 2>conftest.err)
14055 ac_status=$?
14056 cat conftest.err >&5
64ff59ba 14057 echo "$as_me:14057: \$? = $ac_status" >&5
d9898ee8 14058 if (exit $ac_status) && test -s "$ac_outfile"; then
14059 # The compiler can only warn and ignore the option if not recognized
14060 # So say no if there are warnings other than the usual output.
14061 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14062 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14063 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14064 lt_prog_compiler_pic_works_F77=yes
14065 fi
14066 fi
14067 $rm conftest*
14068
14069fi
64ff59ba 14070{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14071echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
d9898ee8 14072
14073if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14074 case $lt_prog_compiler_pic_F77 in
14075 "" | " "*) ;;
14076 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14077 esac
14078else
14079 lt_prog_compiler_pic_F77=
14080 lt_prog_compiler_can_build_shared_F77=no
14081fi
14082
14083fi
14084case $host_os in
14085 # For platforms which do not support PIC, -DPIC is meaningless:
14086 *djgpp*)
14087 lt_prog_compiler_pic_F77=
14088 ;;
14089 *)
14090 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14091 ;;
14092esac
14093
14094#
14095# Check to make sure the static flag actually works.
14096#
14097wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
64ff59ba 14098{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14099echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
d9898ee8 14100if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14101 echo $ECHO_N "(cached) $ECHO_C" >&6
14102else
14103 lt_prog_compiler_static_works_F77=no
14104 save_LDFLAGS="$LDFLAGS"
14105 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14106 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14107 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14108 # The linker can only warn and ignore the option if not recognized
14109 # So say no if there are warnings
14110 if test -s conftest.err; then
14111 # Append any errors to the config.log.
14112 cat conftest.err 1>&5
14113 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14114 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14115 if diff conftest.exp conftest.er2 >/dev/null; then
14116 lt_prog_compiler_static_works_F77=yes
14117 fi
14118 else
14119 lt_prog_compiler_static_works_F77=yes
14120 fi
14121 fi
14122 $rm conftest*
14123 LDFLAGS="$save_LDFLAGS"
14124
14125fi
64ff59ba 14126{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14127echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
d9898ee8 14128
14129if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14130 :
14131else
14132 lt_prog_compiler_static_F77=
14133fi
14134
14135
64ff59ba 14136{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14137echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
d9898ee8 14138if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14139 echo $ECHO_N "(cached) $ECHO_C" >&6
14140else
14141 lt_cv_prog_compiler_c_o_F77=no
14142 $rm -r conftest 2>/dev/null
14143 mkdir conftest
14144 cd conftest
14145 mkdir out
14146 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14147
14148 lt_compiler_flag="-o out/conftest2.$ac_objext"
14149 # Insert the option either (1) after the last *FLAGS variable, or
14150 # (2) before a word containing "conftest.", or (3) at the end.
14151 # Note that $ac_compile itself does not contain backslashes and begins
14152 # with a dollar sign (not a hyphen), so the echo should work correctly.
14153 lt_compile=`echo "$ac_compile" | $SED \
14154 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14155 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14156 -e 's:$: $lt_compiler_flag:'`
64ff59ba 14157 (eval echo "\"\$as_me:14157: $lt_compile\"" >&5)
d9898ee8 14158 (eval "$lt_compile" 2>out/conftest.err)
14159 ac_status=$?
14160 cat out/conftest.err >&5
64ff59ba 14161 echo "$as_me:14161: \$? = $ac_status" >&5
d9898ee8 14162 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14163 then
14164 # The compiler can only warn and ignore the option if not recognized
14165 # So say no if there are warnings
14166 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14167 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14168 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14169 lt_cv_prog_compiler_c_o_F77=yes
14170 fi
14171 fi
14172 chmod u+w . 2>&5
14173 $rm conftest*
14174 # SGI C++ compiler will create directory out/ii_files/ for
14175 # template instantiation
14176 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14177 $rm out/* && rmdir out
14178 cd ..
14179 rmdir conftest
14180 $rm conftest*
14181
14182fi
64ff59ba 14183{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14184echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
d9898ee8 14185
14186
14187hard_links="nottested"
14188if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14189 # do not overwrite the value of need_locks provided by the user
64ff59ba 14190 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14191echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
d9898ee8 14192 hard_links=yes
14193 $rm conftest*
14194 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14195 touch conftest.a
14196 ln conftest.a conftest.b 2>&5 || hard_links=no
14197 ln conftest.a conftest.b 2>/dev/null && hard_links=no
64ff59ba 14198 { echo "$as_me:$LINENO: result: $hard_links" >&5
14199echo "${ECHO_T}$hard_links" >&6; }
d9898ee8 14200 if test "$hard_links" = no; then
14201 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14202echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14203 need_locks=warn
14204 fi
14205else
14206 need_locks=no
14207fi
14208
64ff59ba 14209{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14210echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
d9898ee8 14211
14212 runpath_var=
14213 allow_undefined_flag_F77=
14214 enable_shared_with_static_runtimes_F77=no
14215 archive_cmds_F77=
14216 archive_expsym_cmds_F77=
14217 old_archive_From_new_cmds_F77=
14218 old_archive_from_expsyms_cmds_F77=
14219 export_dynamic_flag_spec_F77=
14220 whole_archive_flag_spec_F77=
14221 thread_safe_flag_spec_F77=
14222 hardcode_libdir_flag_spec_F77=
14223 hardcode_libdir_flag_spec_ld_F77=
14224 hardcode_libdir_separator_F77=
14225 hardcode_direct_F77=no
14226 hardcode_minus_L_F77=no
14227 hardcode_shlibpath_var_F77=unsupported
14228 link_all_deplibs_F77=unknown
14229 hardcode_automatic_F77=no
14230 module_cmds_F77=
14231 module_expsym_cmds_F77=
14232 always_export_symbols_F77=no
14233 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14234 # include_expsyms should be a list of space-separated symbols to be *always*
14235 # included in the symbol list
14236 include_expsyms_F77=
14237 # exclude_expsyms can be an extended regexp of symbols to exclude
14238 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14239 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14240 # as well as any symbol that contains `d'.
14241 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14242 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14243 # platforms (ab)use it in PIC code, but their linkers get confused if
14244 # the symbol is explicitly referenced. Since portable code cannot
14245 # rely on this symbol name, it's probably fine to never include it in
14246 # preloaded symbol tables.
14247 extract_expsyms_cmds=
14248 # Just being paranoid about ensuring that cc_basename is set.
14249 for cc_temp in $compiler""; do
14250 case $cc_temp in
14251 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14252 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14253 \-*) ;;
14254 *) break;;
14255 esac
14256done
14257cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14258
14259 case $host_os in
14260 cygwin* | mingw* | pw32*)
14261 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14262 # When not using gcc, we currently assume that we are using
14263 # Microsoft Visual C++.
14264 if test "$GCC" != yes; then
14265 with_gnu_ld=no
14266 fi
14267 ;;
14268 interix*)
14269 # we just hope/assume this is gcc and not c89 (= MSVC++)
14270 with_gnu_ld=yes
14271 ;;
14272 openbsd*)
14273 with_gnu_ld=no
14274 ;;
14275 esac
14276
14277 ld_shlibs_F77=yes
14278 if test "$with_gnu_ld" = yes; then
14279 # If archive_cmds runs LD, not CC, wlarc should be empty
14280 wlarc='${wl}'
14281
14282 # Set some defaults for GNU ld with shared library support. These
14283 # are reset later if shared libraries are not supported. Putting them
14284 # here allows them to be overridden if necessary.
14285 runpath_var=LD_RUN_PATH
14286 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14287 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14288 # ancient GNU ld didn't support --whole-archive et. al.
14289 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14290 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14291 else
14292 whole_archive_flag_spec_F77=
14293 fi
14294 supports_anon_versioning=no
14295 case `$LD -v 2>/dev/null` in
14296 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14297 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14298 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14299 *\ 2.11.*) ;; # other 2.11 versions
14300 *) supports_anon_versioning=yes ;;
14301 esac
14302
14303 # See if GNU ld supports shared libraries.
14304 case $host_os in
14305 aix3* | aix4* | aix5*)
14306 # On AIX/PPC, the GNU linker is very broken
14307 if test "$host_cpu" != ia64; then
14308 ld_shlibs_F77=no
14309 cat <<EOF 1>&2
14310
14311*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14312*** to be unable to reliably create shared libraries on AIX.
14313*** Therefore, libtool is disabling shared libraries support. If you
14314*** really care for shared libraries, you may want to modify your PATH
14315*** so that a non-GNU linker is found, and then restart.
14316
14317EOF
14318 fi
14319 ;;
14320
14321 amigaos*)
14322 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)'
14323 hardcode_libdir_flag_spec_F77='-L$libdir'
14324 hardcode_minus_L_F77=yes
14325
14326 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14327 # that the semantics of dynamic libraries on AmigaOS, at least up
14328 # to version 4, is to share data among multiple programs linked
14329 # with the same dynamic library. Since this doesn't match the
14330 # behavior of shared libraries on other platforms, we can't use
14331 # them.
14332 ld_shlibs_F77=no
14333 ;;
14334
14335 beos*)
14336 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14337 allow_undefined_flag_F77=unsupported
14338 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14339 # support --undefined. This deserves some investigation. FIXME
14340 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14341 else
14342 ld_shlibs_F77=no
14343 fi
14344 ;;
14345
14346 cygwin* | mingw* | pw32*)
14347 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14348 # as there is no search path for DLLs.
14349 hardcode_libdir_flag_spec_F77='-L$libdir'
14350 allow_undefined_flag_F77=unsupported
14351 always_export_symbols_F77=no
14352 enable_shared_with_static_runtimes_F77=yes
14353 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14354
14355 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14356 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14357 # If the export-symbols file already is a .def file (1st line
14358 # is EXPORTS), use it as is; otherwise, prepend...
14359 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14360 cp $export_symbols $output_objdir/$soname.def;
14361 else
14362 echo EXPORTS > $output_objdir/$soname.def;
14363 cat $export_symbols >> $output_objdir/$soname.def;
14364 fi~
14365 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14366 else
14367 ld_shlibs_F77=no
14368 fi
14369 ;;
14370
14371 interix3*)
14372 hardcode_direct_F77=no
14373 hardcode_shlibpath_var_F77=no
14374 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14375 export_dynamic_flag_spec_F77='${wl}-E'
14376 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14377 # Instead, shared libraries are loaded at an image base (0x10000000 by
14378 # default) and relocated if they conflict, which is a slow very memory
14379 # consuming and fragmenting process. To avoid this, we pick a random,
14380 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14381 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14382 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'
14383 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'
14384 ;;
14385
14386 linux*)
14387 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14388 tmp_addflag=
14389 case $cc_basename,$host_cpu in
14390 pgcc*) # Portland Group C compiler
14391 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'
14392 tmp_addflag=' $pic_flag'
14393 ;;
14394 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14395 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'
14396 tmp_addflag=' $pic_flag -Mnomain' ;;
14397 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14398 tmp_addflag=' -i_dynamic' ;;
14399 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14400 tmp_addflag=' -i_dynamic -nofor_main' ;;
14401 ifc* | ifort*) # Intel Fortran compiler
14402 tmp_addflag=' -nofor_main' ;;
14403 esac
14404 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14405
14406 if test $supports_anon_versioning = yes; then
14407 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14408 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14409 $echo "local: *; };" >> $output_objdir/$libname.ver~
14410 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14411 fi
14412 else
14413 ld_shlibs_F77=no
14414 fi
14415 ;;
14416
14417 netbsd*)
14418 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14419 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14420 wlarc=
14421 else
14422 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14423 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14424 fi
14425 ;;
14426
14427 solaris*)
14428 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14429 ld_shlibs_F77=no
14430 cat <<EOF 1>&2
14431
14432*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14433*** create shared libraries on Solaris systems. Therefore, libtool
14434*** is disabling shared libraries support. We urge you to upgrade GNU
14435*** binutils to release 2.9.1 or newer. Another option is to modify
14436*** your PATH or compiler configuration so that the native linker is
14437*** used, and then restart.
14438
14439EOF
14440 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14441 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14442 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14443 else
14444 ld_shlibs_F77=no
14445 fi
14446 ;;
14447
14448 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14449 case `$LD -v 2>&1` in
14450 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14451 ld_shlibs_F77=no
14452 cat <<_LT_EOF 1>&2
14453
14454*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14455*** reliably create shared libraries on SCO systems. Therefore, libtool
14456*** is disabling shared libraries support. We urge you to upgrade GNU
14457*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14458*** your PATH or compiler configuration so that the native linker is
14459*** used, and then restart.
14460
14461_LT_EOF
14462 ;;
14463 *)
14464 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14465 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14466 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14467 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14468 else
14469 ld_shlibs_F77=no
14470 fi
14471 ;;
14472 esac
14473 ;;
14474
14475 sunos4*)
14476 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14477 wlarc=
14478 hardcode_direct_F77=yes
14479 hardcode_shlibpath_var_F77=no
14480 ;;
14481
14482 *)
14483 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14484 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14485 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14486 else
14487 ld_shlibs_F77=no
14488 fi
14489 ;;
14490 esac
14491
14492 if test "$ld_shlibs_F77" = no; then
14493 runpath_var=
14494 hardcode_libdir_flag_spec_F77=
14495 export_dynamic_flag_spec_F77=
14496 whole_archive_flag_spec_F77=
14497 fi
14498 else
14499 # PORTME fill in a description of your system's linker (not GNU ld)
14500 case $host_os in
14501 aix3*)
14502 allow_undefined_flag_F77=unsupported
14503 always_export_symbols_F77=yes
14504 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'
14505 # Note: this linker hardcodes the directories in LIBPATH if there
14506 # are no directories specified by -L.
14507 hardcode_minus_L_F77=yes
14508 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14509 # Neither direct hardcoding nor static linking is supported with a
14510 # broken collect2.
14511 hardcode_direct_F77=unsupported
14512 fi
14513 ;;
14514
14515 aix4* | aix5*)
14516 if test "$host_cpu" = ia64; then
14517 # On IA64, the linker does run time linking by default, so we don't
14518 # have to do anything special.
14519 aix_use_runtimelinking=no
14520 exp_sym_flag='-Bexport'
14521 no_entry_flag=""
14522 else
14523 # If we're using GNU nm, then we don't want the "-C" option.
14524 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14525 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14526 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'
14527 else
14528 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'
14529 fi
14530 aix_use_runtimelinking=no
14531
14532 # Test if we are trying to use run time linking or normal
14533 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14534 # need to do runtime linking.
14535 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14536 for ld_flag in $LDFLAGS; do
14537 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14538 aix_use_runtimelinking=yes
14539 break
14540 fi
14541 done
14542 ;;
14543 esac
14544
14545 exp_sym_flag='-bexport'
14546 no_entry_flag='-bnoentry'
14547 fi
14548
14549 # When large executables or shared objects are built, AIX ld can
14550 # have problems creating the table of contents. If linking a library
14551 # or program results in "error TOC overflow" add -mminimal-toc to
14552 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14553 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14554
14555 archive_cmds_F77=''
14556 hardcode_direct_F77=yes
14557 hardcode_libdir_separator_F77=':'
14558 link_all_deplibs_F77=yes
14559
14560 if test "$GCC" = yes; then
14561 case $host_os in aix4.[012]|aix4.[012].*)
14562 # We only want to do this on AIX 4.2 and lower, the check
14563 # below for broken collect2 doesn't work under 4.3+
14564 collect2name=`${CC} -print-prog-name=collect2`
14565 if test -f "$collect2name" && \
14566 strings "$collect2name" | grep resolve_lib_name >/dev/null
14567 then
14568 # We have reworked collect2
14569 hardcode_direct_F77=yes
14570 else
14571 # We have old collect2
14572 hardcode_direct_F77=unsupported
14573 # It fails to find uninstalled libraries when the uninstalled
14574 # path is not listed in the libpath. Setting hardcode_minus_L
14575 # to unsupported forces relinking
14576 hardcode_minus_L_F77=yes
14577 hardcode_libdir_flag_spec_F77='-L$libdir'
14578 hardcode_libdir_separator_F77=
14579 fi
14580 ;;
14581 esac
14582 shared_flag='-shared'
14583 if test "$aix_use_runtimelinking" = yes; then
14584 shared_flag="$shared_flag "'${wl}-G'
14585 fi
14586 else
14587 # not using gcc
14588 if test "$host_cpu" = ia64; then
14589 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14590 # chokes on -Wl,-G. The following line is correct:
14591 shared_flag='-G'
14592 else
14593 if test "$aix_use_runtimelinking" = yes; then
14594 shared_flag='${wl}-G'
14595 else
14596 shared_flag='${wl}-bM:SRE'
14597 fi
14598 fi
14599 fi
14600
14601 # It seems that -bexpall does not export symbols beginning with
14602 # underscore (_), so it is better to generate a list of symbols to export.
14603 always_export_symbols_F77=yes
14604 if test "$aix_use_runtimelinking" = yes; then
14605 # Warning - without using the other runtime loading flags (-brtl),
14606 # -berok will link without error, but may produce a broken library.
14607 allow_undefined_flag_F77='-berok'
14608 # Determine the default libpath from the value encoded in an empty executable.
14609 cat >conftest.$ac_ext <<_ACEOF
14610 program main
14611
14612 end
14613_ACEOF
14614rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 14615if { (ac_try="$ac_link"
14616case "(($ac_try" in
14617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14618 *) ac_try_echo=$ac_try;;
14619esac
14620eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14621 (eval "$ac_link") 2>conftest.er1
d9898ee8 14622 ac_status=$?
14623 grep -v '^ *+' conftest.er1 >conftest.err
14624 rm -f conftest.er1
14625 cat conftest.err >&5
14626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 14627 (exit $ac_status); } && {
14628 test -z "$ac_f77_werror_flag" ||
14629 test ! -s conftest.err
14630 } && test -s conftest$ac_exeext &&
14631 $as_test_x conftest$ac_exeext; then
d9898ee8 14632
14633aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14634}'`
14635# Check for a 64-bit object if we didn't find anything.
14636if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14637}'`; fi
14638else
14639 echo "$as_me: failed program was:" >&5
14640sed 's/^/| /' conftest.$ac_ext >&5
14641
64ff59ba 14642
d9898ee8 14643fi
64ff59ba 14644
14645rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 14646 conftest$ac_exeext conftest.$ac_ext
14647if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14648
14649 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14650 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"
14651 else
14652 if test "$host_cpu" = ia64; then
14653 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14654 allow_undefined_flag_F77="-z nodefs"
14655 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"
14656 else
14657 # Determine the default libpath from the value encoded in an empty executable.
14658 cat >conftest.$ac_ext <<_ACEOF
14659 program main
14660
14661 end
14662_ACEOF
14663rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 14664if { (ac_try="$ac_link"
14665case "(($ac_try" in
14666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14667 *) ac_try_echo=$ac_try;;
14668esac
14669eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14670 (eval "$ac_link") 2>conftest.er1
d9898ee8 14671 ac_status=$?
14672 grep -v '^ *+' conftest.er1 >conftest.err
14673 rm -f conftest.er1
14674 cat conftest.err >&5
14675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 14676 (exit $ac_status); } && {
14677 test -z "$ac_f77_werror_flag" ||
14678 test ! -s conftest.err
14679 } && test -s conftest$ac_exeext &&
14680 $as_test_x conftest$ac_exeext; then
d9898ee8 14681
14682aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14683}'`
14684# Check for a 64-bit object if we didn't find anything.
14685if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14686}'`; fi
14687else
14688 echo "$as_me: failed program was:" >&5
14689sed 's/^/| /' conftest.$ac_ext >&5
14690
64ff59ba 14691
d9898ee8 14692fi
64ff59ba 14693
14694rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 14695 conftest$ac_exeext conftest.$ac_ext
14696if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14697
14698 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14699 # Warning - without using the other run time loading flags,
14700 # -berok will link without error, but may produce a broken library.
14701 no_undefined_flag_F77=' ${wl}-bernotok'
14702 allow_undefined_flag_F77=' ${wl}-berok'
14703 # Exported symbols can be pulled into shared objects from archives
14704 whole_archive_flag_spec_F77='$convenience'
14705 archive_cmds_need_lc_F77=yes
14706 # This is similar to how AIX traditionally builds its shared libraries.
14707 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'
14708 fi
14709 fi
14710 ;;
14711
14712 amigaos*)
14713 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)'
14714 hardcode_libdir_flag_spec_F77='-L$libdir'
14715 hardcode_minus_L_F77=yes
14716 # see comment about different semantics on the GNU ld section
14717 ld_shlibs_F77=no
14718 ;;
14719
14720 bsdi[45]*)
14721 export_dynamic_flag_spec_F77=-rdynamic
14722 ;;
14723
14724 cygwin* | mingw* | pw32*)
14725 # When not using gcc, we currently assume that we are using
14726 # Microsoft Visual C++.
14727 # hardcode_libdir_flag_spec is actually meaningless, as there is
14728 # no search path for DLLs.
14729 hardcode_libdir_flag_spec_F77=' '
14730 allow_undefined_flag_F77=unsupported
14731 # Tell ltmain to make .lib files, not .a files.
14732 libext=lib
14733 # Tell ltmain to make .dll files, not .so files.
14734 shrext_cmds=".dll"
14735 # FIXME: Setting linknames here is a bad hack.
14736 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14737 # The linker will automatically build a .lib file if we build a DLL.
14738 old_archive_From_new_cmds_F77='true'
14739 # FIXME: Should let the user specify the lib program.
14740 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14741 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14742 enable_shared_with_static_runtimes_F77=yes
14743 ;;
14744
14745 darwin* | rhapsody*)
14746 case $host_os in
14747 rhapsody* | darwin1.[012])
14748 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14749 ;;
14750 *) # Darwin 1.3 on
14751 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14752 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14753 else
14754 case ${MACOSX_DEPLOYMENT_TARGET} in
14755 10.[012])
14756 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14757 ;;
14758 10.*)
14759 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14760 ;;
14761 esac
14762 fi
14763 ;;
14764 esac
14765 archive_cmds_need_lc_F77=no
14766 hardcode_direct_F77=no
14767 hardcode_automatic_F77=yes
14768 hardcode_shlibpath_var_F77=unsupported
14769 whole_archive_flag_spec_F77=''
14770 link_all_deplibs_F77=yes
14771 if test "$GCC" = yes ; then
14772 output_verbose_link_cmd='echo'
14773 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14774 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14775 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14776 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}'
14777 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}'
14778 else
14779 case $cc_basename in
14780 xlc*)
14781 output_verbose_link_cmd='echo'
14782 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14783 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14784 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14785 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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14786 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}'
14787 ;;
14788 *)
14789 ld_shlibs_F77=no
14790 ;;
14791 esac
14792 fi
14793 ;;
14794
14795 dgux*)
14796 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14797 hardcode_libdir_flag_spec_F77='-L$libdir'
14798 hardcode_shlibpath_var_F77=no
14799 ;;
14800
14801 freebsd1*)
14802 ld_shlibs_F77=no
14803 ;;
14804
14805 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14806 # support. Future versions do this automatically, but an explicit c++rt0.o
14807 # does not break anything, and helps significantly (at the cost of a little
14808 # extra space).
14809 freebsd2.2*)
14810 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14811 hardcode_libdir_flag_spec_F77='-R$libdir'
14812 hardcode_direct_F77=yes
14813 hardcode_shlibpath_var_F77=no
14814 ;;
14815
14816 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14817 freebsd2*)
14818 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14819 hardcode_direct_F77=yes
14820 hardcode_minus_L_F77=yes
14821 hardcode_shlibpath_var_F77=no
14822 ;;
14823
14824 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14825 freebsd* | kfreebsd*-gnu | dragonfly*)
14826 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14827 hardcode_libdir_flag_spec_F77='-R$libdir'
14828 hardcode_direct_F77=yes
14829 hardcode_shlibpath_var_F77=no
14830 ;;
14831
14832 hpux9*)
14833 if test "$GCC" = yes; then
14834 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'
14835 else
14836 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'
14837 fi
14838 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14839 hardcode_libdir_separator_F77=:
14840 hardcode_direct_F77=yes
14841
14842 # hardcode_minus_L: Not really in the search PATH,
14843 # but as the default location of the library.
14844 hardcode_minus_L_F77=yes
14845 export_dynamic_flag_spec_F77='${wl}-E'
14846 ;;
14847
14848 hpux10*)
14849 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14850 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14851 else
14852 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14853 fi
14854 if test "$with_gnu_ld" = no; then
14855 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14856 hardcode_libdir_separator_F77=:
14857
14858 hardcode_direct_F77=yes
14859 export_dynamic_flag_spec_F77='${wl}-E'
14860
14861 # hardcode_minus_L: Not really in the search PATH,
14862 # but as the default location of the library.
14863 hardcode_minus_L_F77=yes
14864 fi
14865 ;;
14866
14867 hpux11*)
14868 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14869 case $host_cpu in
14870 hppa*64*)
14871 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14872 ;;
14873 ia64*)
14874 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14875 ;;
14876 *)
14877 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14878 ;;
14879 esac
14880 else
14881 case $host_cpu in
14882 hppa*64*)
14883 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14884 ;;
14885 ia64*)
14886 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14887 ;;
14888 *)
14889 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14890 ;;
14891 esac
14892 fi
14893 if test "$with_gnu_ld" = no; then
14894 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14895 hardcode_libdir_separator_F77=:
14896
14897 case $host_cpu in
14898 hppa*64*|ia64*)
14899 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14900 hardcode_direct_F77=no
14901 hardcode_shlibpath_var_F77=no
14902 ;;
14903 *)
14904 hardcode_direct_F77=yes
14905 export_dynamic_flag_spec_F77='${wl}-E'
14906
14907 # hardcode_minus_L: Not really in the search PATH,
14908 # but as the default location of the library.
14909 hardcode_minus_L_F77=yes
14910 ;;
14911 esac
14912 fi
14913 ;;
14914
14915 irix5* | irix6* | nonstopux*)
14916 if test "$GCC" = yes; then
14917 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'
14918 else
14919 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'
14920 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14921 fi
14922 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14923 hardcode_libdir_separator_F77=:
14924 link_all_deplibs_F77=yes
14925 ;;
14926
14927 netbsd*)
14928 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14929 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14930 else
14931 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14932 fi
14933 hardcode_libdir_flag_spec_F77='-R$libdir'
14934 hardcode_direct_F77=yes
14935 hardcode_shlibpath_var_F77=no
14936 ;;
14937
14938 newsos6)
14939 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14940 hardcode_direct_F77=yes
14941 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14942 hardcode_libdir_separator_F77=:
14943 hardcode_shlibpath_var_F77=no
14944 ;;
14945
14946 openbsd*)
14947 hardcode_direct_F77=yes
14948 hardcode_shlibpath_var_F77=no
14949 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14950 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14951 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14952 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14953 export_dynamic_flag_spec_F77='${wl}-E'
14954 else
14955 case $host_os in
14956 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14957 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14958 hardcode_libdir_flag_spec_F77='-R$libdir'
14959 ;;
14960 *)
14961 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14962 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14963 ;;
14964 esac
14965 fi
14966 ;;
14967
14968 os2*)
14969 hardcode_libdir_flag_spec_F77='-L$libdir'
14970 hardcode_minus_L_F77=yes
14971 allow_undefined_flag_F77=unsupported
14972 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'
14973 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14974 ;;
14975
14976 osf3*)
14977 if test "$GCC" = yes; then
14978 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14979 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'
14980 else
14981 allow_undefined_flag_F77=' -expect_unresolved \*'
14982 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'
14983 fi
14984 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14985 hardcode_libdir_separator_F77=:
14986 ;;
14987
14988 osf4* | osf5*) # as osf3* with the addition of -msym flag
14989 if test "$GCC" = yes; then
14990 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14991 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'
14992 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14993 else
14994 allow_undefined_flag_F77=' -expect_unresolved \*'
14995 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'
14996 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~
14997 $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'
14998
14999 # Both c and cxx compiler support -rpath directly
15000 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15001 fi
15002 hardcode_libdir_separator_F77=:
15003 ;;
15004
15005 solaris*)
15006 no_undefined_flag_F77=' -z text'
15007 if test "$GCC" = yes; then
15008 wlarc='${wl}'
15009 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15010 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15011 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15012 else
15013 wlarc=''
15014 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15015 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15016 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15017 fi
15018 hardcode_libdir_flag_spec_F77='-R$libdir'
15019 hardcode_shlibpath_var_F77=no
15020 case $host_os in
15021 solaris2.[0-5] | solaris2.[0-5].*) ;;
15022 *)
15023 # The compiler driver will combine linker options so we
15024 # cannot just pass the convience library names through
15025 # without $wl, iff we do not link with $LD.
15026 # Luckily, gcc supports the same syntax we need for Sun Studio.
15027 # Supported since Solaris 2.6 (maybe 2.5.1?)
15028 case $wlarc in
15029 '')
15030 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15031 *)
15032 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
15033 esac ;;
15034 esac
15035 link_all_deplibs_F77=yes
15036 ;;
15037
15038 sunos4*)
15039 if test "x$host_vendor" = xsequent; then
15040 # Use $CC to link under sequent, because it throws in some extra .o
15041 # files that make .init and .fini sections work.
15042 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15043 else
15044 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15045 fi
15046 hardcode_libdir_flag_spec_F77='-L$libdir'
15047 hardcode_direct_F77=yes
15048 hardcode_minus_L_F77=yes
15049 hardcode_shlibpath_var_F77=no
15050 ;;
15051
15052 sysv4)
15053 case $host_vendor in
15054 sni)
15055 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15056 hardcode_direct_F77=yes # is this really true???
15057 ;;
15058 siemens)
15059 ## LD is ld it makes a PLAMLIB
15060 ## CC just makes a GrossModule.
15061 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15062 reload_cmds_F77='$CC -r -o $output$reload_objs'
15063 hardcode_direct_F77=no
15064 ;;
15065 motorola)
15066 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15067 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15068 ;;
15069 esac
15070 runpath_var='LD_RUN_PATH'
15071 hardcode_shlibpath_var_F77=no
15072 ;;
15073
15074 sysv4.3*)
15075 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15076 hardcode_shlibpath_var_F77=no
15077 export_dynamic_flag_spec_F77='-Bexport'
15078 ;;
15079
15080 sysv4*MP*)
15081 if test -d /usr/nec; then
15082 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15083 hardcode_shlibpath_var_F77=no
15084 runpath_var=LD_RUN_PATH
15085 hardcode_runpath_var=yes
15086 ld_shlibs_F77=yes
15087 fi
15088 ;;
15089
15090 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15091 no_undefined_flag_F77='${wl}-z,text'
15092 archive_cmds_need_lc_F77=no
15093 hardcode_shlibpath_var_F77=no
15094 runpath_var='LD_RUN_PATH'
15095
15096 if test "$GCC" = yes; then
15097 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15098 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15099 else
15100 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15101 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15102 fi
15103 ;;
15104
15105 sysv5* | sco3.2v5* | sco5v6*)
15106 # Note: We can NOT use -z defs as we might desire, because we do not
15107 # link with -lc, and that would cause any symbols used from libc to
15108 # always be unresolved, which means just about no library would
15109 # ever link correctly. If we're not using GNU ld we use -z text
15110 # though, which does catch some bad symbols but isn't as heavy-handed
15111 # as -z defs.
15112 no_undefined_flag_F77='${wl}-z,text'
15113 allow_undefined_flag_F77='${wl}-z,nodefs'
15114 archive_cmds_need_lc_F77=no
15115 hardcode_shlibpath_var_F77=no
15116 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15117 hardcode_libdir_separator_F77=':'
15118 link_all_deplibs_F77=yes
15119 export_dynamic_flag_spec_F77='${wl}-Bexport'
15120 runpath_var='LD_RUN_PATH'
15121
15122 if test "$GCC" = yes; then
15123 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15124 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15125 else
15126 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15127 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15128 fi
15129 ;;
15130
15131 uts4*)
15132 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15133 hardcode_libdir_flag_spec_F77='-L$libdir'
15134 hardcode_shlibpath_var_F77=no
15135 ;;
15136
15137 *)
15138 ld_shlibs_F77=no
15139 ;;
15140 esac
15141 fi
15142
64ff59ba 15143{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15144echo "${ECHO_T}$ld_shlibs_F77" >&6; }
d9898ee8 15145test "$ld_shlibs_F77" = no && can_build_shared=no
15146
15147#
15148# Do we need to explicitly link libc?
15149#
15150case "x$archive_cmds_need_lc_F77" in
15151x|xyes)
15152 # Assume -lc should be added
15153 archive_cmds_need_lc_F77=yes
15154
15155 if test "$enable_shared" = yes && test "$GCC" = yes; then
15156 case $archive_cmds_F77 in
15157 *'~'*)
15158 # FIXME: we may have to deal with multi-command sequences.
15159 ;;
15160 '$CC '*)
15161 # Test whether the compiler implicitly links with -lc since on some
15162 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15163 # to ld, don't add -lc before -lgcc.
64ff59ba 15164 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15165echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
d9898ee8 15166 $rm conftest*
15167 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15168
15169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15170 (eval $ac_compile) 2>&5
15171 ac_status=$?
15172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15173 (exit $ac_status); } 2>conftest.err; then
15174 soname=conftest
15175 lib=conftest
15176 libobjs=conftest.$ac_objext
15177 deplibs=
15178 wl=$lt_prog_compiler_wl_F77
15179 pic_flag=$lt_prog_compiler_pic_F77
15180 compiler_flags=-v
15181 linker_flags=-v
15182 verstring=
15183 output_objdir=.
15184 libname=conftest
15185 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15186 allow_undefined_flag_F77=
15187 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15188 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15189 ac_status=$?
15190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15191 (exit $ac_status); }
15192 then
15193 archive_cmds_need_lc_F77=no
15194 else
15195 archive_cmds_need_lc_F77=yes
15196 fi
15197 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15198 else
15199 cat conftest.err 1>&5
15200 fi
15201 $rm conftest*
64ff59ba 15202 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15203echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
d9898ee8 15204 ;;
15205 esac
15206 fi
15207 ;;
15208esac
15209
64ff59ba 15210{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15211echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
d9898ee8 15212library_names_spec=
15213libname_spec='lib$name'
15214soname_spec=
15215shrext_cmds=".so"
15216postinstall_cmds=
15217postuninstall_cmds=
15218finish_cmds=
15219finish_eval=
15220shlibpath_var=
15221shlibpath_overrides_runpath=unknown
15222version_type=none
15223dynamic_linker="$host_os ld.so"
15224sys_lib_dlsearch_path_spec="/lib /usr/lib"
15225if test "$GCC" = yes; then
15226 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15227 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15228 # if the path contains ";" then we assume it to be the separator
15229 # otherwise default to the standard path separator (i.e. ":") - it is
15230 # assumed that no part of a normal pathname contains ";" but that should
15231 # okay in the real world where ";" in dirpaths is itself problematic.
15232 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15233 else
15234 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15235 fi
15236else
15237 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15238fi
15239need_lib_prefix=unknown
15240hardcode_into_libs=no
15241
15242# when you set need_version to no, make sure it does not cause -set_version
15243# flags to be left without arguments
15244need_version=unknown
15245
15246case $host_os in
15247aix3*)
15248 version_type=linux
15249 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15250 shlibpath_var=LIBPATH
15251
15252 # AIX 3 has no versioning support, so we append a major version to the name.
15253 soname_spec='${libname}${release}${shared_ext}$major'
15254 ;;
15255
15256aix4* | aix5*)
15257 version_type=linux
15258 need_lib_prefix=no
15259 need_version=no
15260 hardcode_into_libs=yes
15261 if test "$host_cpu" = ia64; then
15262 # AIX 5 supports IA64
15263 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15264 shlibpath_var=LD_LIBRARY_PATH
15265 else
15266 # With GCC up to 2.95.x, collect2 would create an import file
15267 # for dependence libraries. The import file would start with
15268 # the line `#! .'. This would cause the generated library to
15269 # depend on `.', always an invalid library. This was fixed in
15270 # development snapshots of GCC prior to 3.0.
15271 case $host_os in
15272 aix4 | aix4.[01] | aix4.[01].*)
15273 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15274 echo ' yes '
15275 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15276 :
15277 else
15278 can_build_shared=no
15279 fi
15280 ;;
15281 esac
15282 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15283 # soname into executable. Probably we can add versioning support to
15284 # collect2, so additional links can be useful in future.
15285 if test "$aix_use_runtimelinking" = yes; then
15286 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15287 # instead of lib<name>.a to let people know that these are not
15288 # typical AIX shared libraries.
15289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15290 else
15291 # We preserve .a as extension for shared libraries through AIX4.2
15292 # and later when we are not doing run time linking.
15293 library_names_spec='${libname}${release}.a $libname.a'
15294 soname_spec='${libname}${release}${shared_ext}$major'
15295 fi
15296 shlibpath_var=LIBPATH
15297 fi
15298 ;;
15299
15300amigaos*)
15301 library_names_spec='$libname.ixlibrary $libname.a'
15302 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15303 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'
15304 ;;
15305
15306beos*)
15307 library_names_spec='${libname}${shared_ext}'
15308 dynamic_linker="$host_os ld.so"
15309 shlibpath_var=LIBRARY_PATH
15310 ;;
15311
15312bsdi[45]*)
15313 version_type=linux
15314 need_version=no
15315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15316 soname_spec='${libname}${release}${shared_ext}$major'
15317 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15318 shlibpath_var=LD_LIBRARY_PATH
15319 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15320 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15321 # the default ld.so.conf also contains /usr/contrib/lib and
15322 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15323 # libtool to hard-code these into programs
15324 ;;
15325
15326cygwin* | mingw* | pw32*)
15327 version_type=windows
15328 shrext_cmds=".dll"
15329 need_version=no
15330 need_lib_prefix=no
15331
15332 case $GCC,$host_os in
15333 yes,cygwin* | yes,mingw* | yes,pw32*)
15334 library_names_spec='$libname.dll.a'
15335 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15336 postinstall_cmds='base_file=`basename \${file}`~
15337 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15338 dldir=$destdir/`dirname \$dlpath`~
15339 test -d \$dldir || mkdir -p \$dldir~
15340 $install_prog $dir/$dlname \$dldir/$dlname~
15341 chmod a+x \$dldir/$dlname'
15342 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15343 dlpath=$dir/\$dldll~
15344 $rm \$dlpath'
15345 shlibpath_overrides_runpath=yes
15346
15347 case $host_os in
15348 cygwin*)
15349 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15350 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15351 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15352 ;;
15353 mingw*)
15354 # MinGW DLLs use traditional 'lib' prefix
15355 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15356 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15357 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15358 # It is most probably a Windows format PATH printed by
15359 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15360 # path with ; separators, and with drive letters. We can handle the
15361 # drive letters (cygwin fileutils understands them), so leave them,
15362 # especially as we might pass files found there to a mingw objdump,
15363 # which wouldn't understand a cygwinified path. Ahh.
15364 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15365 else
15366 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15367 fi
15368 ;;
15369 pw32*)
15370 # pw32 DLLs use 'pw' prefix rather than 'lib'
15371 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15372 ;;
15373 esac
15374 ;;
15375
15376 *)
15377 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15378 ;;
15379 esac
15380 dynamic_linker='Win32 ld.exe'
15381 # FIXME: first we should search . and the directory the executable is in
15382 shlibpath_var=PATH
15383 ;;
15384
15385darwin* | rhapsody*)
15386 dynamic_linker="$host_os dyld"
15387 version_type=darwin
15388 need_lib_prefix=no
15389 need_version=no
15390 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15391 soname_spec='${libname}${release}${major}$shared_ext'
15392 shlibpath_overrides_runpath=yes
15393 shlibpath_var=DYLD_LIBRARY_PATH
15394 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15395 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15396 if test "$GCC" = yes; then
15397 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
15398 else
15399 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15400 fi
15401 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15402 ;;
15403
15404dgux*)
15405 version_type=linux
15406 need_lib_prefix=no
15407 need_version=no
15408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15409 soname_spec='${libname}${release}${shared_ext}$major'
15410 shlibpath_var=LD_LIBRARY_PATH
15411 ;;
15412
15413freebsd1*)
15414 dynamic_linker=no
15415 ;;
15416
15417kfreebsd*-gnu)
15418 version_type=linux
15419 need_lib_prefix=no
15420 need_version=no
15421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15422 soname_spec='${libname}${release}${shared_ext}$major'
15423 shlibpath_var=LD_LIBRARY_PATH
15424 shlibpath_overrides_runpath=no
15425 hardcode_into_libs=yes
15426 dynamic_linker='GNU ld.so'
15427 ;;
15428
15429freebsd* | dragonfly*)
15430 # DragonFly does not have aout. When/if they implement a new
15431 # versioning mechanism, adjust this.
15432 if test -x /usr/bin/objformat; then
15433 objformat=`/usr/bin/objformat`
15434 else
15435 case $host_os in
15436 freebsd[123]*) objformat=aout ;;
15437 *) objformat=elf ;;
15438 esac
15439 fi
15440 version_type=freebsd-$objformat
15441 case $version_type in
15442 freebsd-elf*)
15443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15444 need_version=no
15445 need_lib_prefix=no
15446 ;;
15447 freebsd-*)
15448 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15449 need_version=yes
15450 ;;
15451 esac
15452 shlibpath_var=LD_LIBRARY_PATH
15453 case $host_os in
15454 freebsd2*)
15455 shlibpath_overrides_runpath=yes
15456 ;;
15457 freebsd3.[01]* | freebsdelf3.[01]*)
15458 shlibpath_overrides_runpath=yes
15459 hardcode_into_libs=yes
15460 ;;
15461 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15462 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15463 shlibpath_overrides_runpath=no
15464 hardcode_into_libs=yes
15465 ;;
15466 freebsd*) # from 4.6 on
15467 shlibpath_overrides_runpath=yes
15468 hardcode_into_libs=yes
15469 ;;
15470 esac
15471 ;;
15472
15473gnu*)
15474 version_type=linux
15475 need_lib_prefix=no
15476 need_version=no
15477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15478 soname_spec='${libname}${release}${shared_ext}$major'
15479 shlibpath_var=LD_LIBRARY_PATH
15480 hardcode_into_libs=yes
15481 ;;
15482
15483hpux9* | hpux10* | hpux11*)
15484 # Give a soname corresponding to the major version so that dld.sl refuses to
15485 # link against other versions.
15486 version_type=sunos
15487 need_lib_prefix=no
15488 need_version=no
15489 case $host_cpu in
15490 ia64*)
15491 shrext_cmds='.so'
15492 hardcode_into_libs=yes
15493 dynamic_linker="$host_os dld.so"
15494 shlibpath_var=LD_LIBRARY_PATH
15495 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15497 soname_spec='${libname}${release}${shared_ext}$major'
15498 if test "X$HPUX_IA64_MODE" = X32; then
15499 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15500 else
15501 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15502 fi
15503 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15504 ;;
15505 hppa*64*)
15506 shrext_cmds='.sl'
15507 hardcode_into_libs=yes
15508 dynamic_linker="$host_os dld.sl"
15509 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15510 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15512 soname_spec='${libname}${release}${shared_ext}$major'
15513 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15514 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15515 ;;
15516 *)
15517 shrext_cmds='.sl'
15518 dynamic_linker="$host_os dld.sl"
15519 shlibpath_var=SHLIB_PATH
15520 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15522 soname_spec='${libname}${release}${shared_ext}$major'
15523 ;;
15524 esac
15525 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15526 postinstall_cmds='chmod 555 $lib'
15527 ;;
15528
15529interix3*)
15530 version_type=linux
15531 need_lib_prefix=no
15532 need_version=no
15533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15534 soname_spec='${libname}${release}${shared_ext}$major'
15535 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15536 shlibpath_var=LD_LIBRARY_PATH
15537 shlibpath_overrides_runpath=no
15538 hardcode_into_libs=yes
15539 ;;
15540
15541irix5* | irix6* | nonstopux*)
15542 case $host_os in
15543 nonstopux*) version_type=nonstopux ;;
15544 *)
15545 if test "$lt_cv_prog_gnu_ld" = yes; then
15546 version_type=linux
15547 else
15548 version_type=irix
15549 fi ;;
15550 esac
15551 need_lib_prefix=no
15552 need_version=no
15553 soname_spec='${libname}${release}${shared_ext}$major'
15554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15555 case $host_os in
15556 irix5* | nonstopux*)
15557 libsuff= shlibsuff=
15558 ;;
15559 *)
15560 case $LD in # libtool.m4 will add one of these switches to LD
15561 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15562 libsuff= shlibsuff= libmagic=32-bit;;
15563 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15564 libsuff=32 shlibsuff=N32 libmagic=N32;;
15565 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15566 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15567 *) libsuff= shlibsuff= libmagic=never-match;;
15568 esac
15569 ;;
15570 esac
15571 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15572 shlibpath_overrides_runpath=no
15573 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15574 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15575 hardcode_into_libs=yes
15576 ;;
15577
15578# No shared lib support for Linux oldld, aout, or coff.
15579linux*oldld* | linux*aout* | linux*coff*)
15580 dynamic_linker=no
15581 ;;
15582
15583# This must be Linux ELF.
15584linux*)
15585 version_type=linux
15586 need_lib_prefix=no
15587 need_version=no
15588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15589 soname_spec='${libname}${release}${shared_ext}$major'
15590 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15591 shlibpath_var=LD_LIBRARY_PATH
15592 shlibpath_overrides_runpath=no
15593 # This implies no fast_install, which is unacceptable.
15594 # Some rework will be needed to allow for fast_install
15595 # before this can be enabled.
15596 hardcode_into_libs=yes
15597
15598 # find out which ABI we are using
15599 libsuff=
15600 case "$host_cpu" in
15601 x86_64*|s390x*|powerpc64*)
64ff59ba 15602 echo '#line 15602 "configure"' > conftest.$ac_ext
d9898ee8 15603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15604 (eval $ac_compile) 2>&5
15605 ac_status=$?
15606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15607 (exit $ac_status); }; then
15608 case `/usr/bin/file conftest.$ac_objext` in
15609 *64-bit*)
15610 libsuff=64
15611 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
15612 ;;
15613 esac
15614 fi
15615 rm -rf conftest*
15616 ;;
15617 esac
15618
15619 # Append ld.so.conf contents to the search path
15620 if test -f /etc/ld.so.conf; then
64ff59ba 15621 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/^ *//;s/#.*//;/^[^\/]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
d9898ee8 15622 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
15623 fi
15624
15625 # We used to test for /lib/ld.so.1 and disable shared libraries on
15626 # powerpc, because MkLinux only supported shared libraries with the
15627 # GNU dynamic linker. Since this was broken with cross compilers,
15628 # most powerpc-linux boxes support dynamic linking these days and
15629 # people can always --disable-shared, the test was removed, and we
15630 # assume the GNU/Linux dynamic linker is in use.
15631 dynamic_linker='GNU/Linux ld.so'
15632 ;;
15633
15634knetbsd*-gnu)
15635 version_type=linux
15636 need_lib_prefix=no
15637 need_version=no
15638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15639 soname_spec='${libname}${release}${shared_ext}$major'
15640 shlibpath_var=LD_LIBRARY_PATH
15641 shlibpath_overrides_runpath=no
15642 hardcode_into_libs=yes
15643 dynamic_linker='GNU ld.so'
15644 ;;
15645
15646netbsd*)
15647 version_type=sunos
15648 need_lib_prefix=no
15649 need_version=no
15650 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15652 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15653 dynamic_linker='NetBSD (a.out) ld.so'
15654 else
15655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15656 soname_spec='${libname}${release}${shared_ext}$major'
15657 dynamic_linker='NetBSD ld.elf_so'
15658 fi
15659 shlibpath_var=LD_LIBRARY_PATH
15660 shlibpath_overrides_runpath=yes
15661 hardcode_into_libs=yes
15662 ;;
15663
15664newsos6)
15665 version_type=linux
15666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15667 shlibpath_var=LD_LIBRARY_PATH
15668 shlibpath_overrides_runpath=yes
15669 ;;
15670
15671nto-qnx*)
15672 version_type=linux
15673 need_lib_prefix=no
15674 need_version=no
15675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15676 soname_spec='${libname}${release}${shared_ext}$major'
15677 shlibpath_var=LD_LIBRARY_PATH
15678 shlibpath_overrides_runpath=yes
15679 ;;
15680
15681openbsd*)
15682 version_type=sunos
15683 sys_lib_dlsearch_path_spec="/usr/lib"
15684 need_lib_prefix=no
15685 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15686 case $host_os in
15687 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15688 *) need_version=no ;;
15689 esac
15690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15691 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15692 shlibpath_var=LD_LIBRARY_PATH
15693 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15694 case $host_os in
15695 openbsd2.[89] | openbsd2.[89].*)
15696 shlibpath_overrides_runpath=no
15697 ;;
15698 *)
15699 shlibpath_overrides_runpath=yes
15700 ;;
15701 esac
15702 else
15703 shlibpath_overrides_runpath=yes
15704 fi
15705 ;;
15706
15707os2*)
15708 libname_spec='$name'
15709 shrext_cmds=".dll"
15710 need_lib_prefix=no
15711 library_names_spec='$libname${shared_ext} $libname.a'
15712 dynamic_linker='OS/2 ld.exe'
15713 shlibpath_var=LIBPATH
15714 ;;
15715
15716osf3* | osf4* | osf5*)
15717 version_type=osf
15718 need_lib_prefix=no
15719 need_version=no
15720 soname_spec='${libname}${release}${shared_ext}$major'
15721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15722 shlibpath_var=LD_LIBRARY_PATH
15723 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15724 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15725 ;;
15726
15727solaris*)
15728 version_type=linux
15729 need_lib_prefix=no
15730 need_version=no
15731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15732 soname_spec='${libname}${release}${shared_ext}$major'
15733 shlibpath_var=LD_LIBRARY_PATH
15734 shlibpath_overrides_runpath=yes
15735 hardcode_into_libs=yes
15736 # ldd complains unless libraries are executable
15737 postinstall_cmds='chmod +x $lib'
15738 ;;
15739
15740sunos4*)
15741 version_type=sunos
15742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15743 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15744 shlibpath_var=LD_LIBRARY_PATH
15745 shlibpath_overrides_runpath=yes
15746 if test "$with_gnu_ld" = yes; then
15747 need_lib_prefix=no
15748 fi
15749 need_version=yes
15750 ;;
15751
15752sysv4 | sysv4.3*)
15753 version_type=linux
15754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15755 soname_spec='${libname}${release}${shared_ext}$major'
15756 shlibpath_var=LD_LIBRARY_PATH
15757 case $host_vendor in
15758 sni)
15759 shlibpath_overrides_runpath=no
15760 need_lib_prefix=no
15761 export_dynamic_flag_spec='${wl}-Blargedynsym'
15762 runpath_var=LD_RUN_PATH
15763 ;;
15764 siemens)
15765 need_lib_prefix=no
15766 ;;
15767 motorola)
15768 need_lib_prefix=no
15769 need_version=no
15770 shlibpath_overrides_runpath=no
15771 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15772 ;;
15773 esac
15774 ;;
15775
15776sysv4*MP*)
15777 if test -d /usr/nec ;then
15778 version_type=linux
15779 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15780 soname_spec='$libname${shared_ext}.$major'
15781 shlibpath_var=LD_LIBRARY_PATH
15782 fi
15783 ;;
15784
15785sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15786 version_type=freebsd-elf
15787 need_lib_prefix=no
15788 need_version=no
15789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15790 soname_spec='${libname}${release}${shared_ext}$major'
15791 shlibpath_var=LD_LIBRARY_PATH
15792 hardcode_into_libs=yes
15793 if test "$with_gnu_ld" = yes; then
15794 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15795 shlibpath_overrides_runpath=no
15796 else
15797 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15798 shlibpath_overrides_runpath=yes
15799 case $host_os in
15800 sco3.2v5*)
15801 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15802 ;;
15803 esac
15804 fi
15805 sys_lib_dlsearch_path_spec='/usr/lib'
15806 ;;
15807
15808uts4*)
15809 version_type=linux
15810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15811 soname_spec='${libname}${release}${shared_ext}$major'
15812 shlibpath_var=LD_LIBRARY_PATH
15813 ;;
15814
15815*)
15816 dynamic_linker=no
15817 ;;
15818esac
64ff59ba 15819{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15820echo "${ECHO_T}$dynamic_linker" >&6; }
d9898ee8 15821test "$dynamic_linker" = no && can_build_shared=no
15822
15823variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15824if test "$GCC" = yes; then
15825 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15826fi
15827
64ff59ba 15828{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15829echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
d9898ee8 15830hardcode_action_F77=
15831if test -n "$hardcode_libdir_flag_spec_F77" || \
15832 test -n "$runpath_var_F77" || \
15833 test "X$hardcode_automatic_F77" = "Xyes" ; then
15834
15835 # We can hardcode non-existant directories.
15836 if test "$hardcode_direct_F77" != no &&
15837 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15838 # have to relink, otherwise we might link with an installed library
15839 # when we should be linking with a yet-to-be-installed one
15840 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15841 test "$hardcode_minus_L_F77" != no; then
15842 # Linking always hardcodes the temporary library directory.
15843 hardcode_action_F77=relink
15844 else
15845 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15846 hardcode_action_F77=immediate
15847 fi
15848else
15849 # We cannot hardcode anything, or else we can only hardcode existing
15850 # directories.
15851 hardcode_action_F77=unsupported
15852fi
64ff59ba 15853{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15854echo "${ECHO_T}$hardcode_action_F77" >&6; }
d9898ee8 15855
15856if test "$hardcode_action_F77" = relink; then
15857 # Fast installation is not supported
15858 enable_fast_install=no
15859elif test "$shlibpath_overrides_runpath" = yes ||
15860 test "$enable_shared" = no; then
15861 # Fast installation is not necessary
15862 enable_fast_install=needless
15863fi
15864
15865
15866# The else clause should only fire when bootstrapping the
15867# libtool distribution, otherwise you forgot to ship ltmain.sh
15868# with your package, and you will get complaints that there are
15869# no rules to generate ltmain.sh.
15870if test -f "$ltmain"; then
15871 # See if we are running on zsh, and set the options which allow our commands through
15872 # without removal of \ escapes.
15873 if test -n "${ZSH_VERSION+set}" ; then
15874 setopt NO_GLOB_SUBST
15875 fi
15876 # Now quote all the things that may contain metacharacters while being
15877 # careful not to overquote the AC_SUBSTed values. We take copies of the
15878 # variables and quote the copies for generation of the libtool script.
15879 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15880 SED SHELL STRIP \
15881 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15882 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15883 deplibs_check_method reload_flag reload_cmds need_locks \
15884 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15885 lt_cv_sys_global_symbol_to_c_name_address \
15886 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15887 old_postinstall_cmds old_postuninstall_cmds \
15888 compiler_F77 \
15889 CC_F77 \
15890 LD_F77 \
15891 lt_prog_compiler_wl_F77 \
15892 lt_prog_compiler_pic_F77 \
15893 lt_prog_compiler_static_F77 \
15894 lt_prog_compiler_no_builtin_flag_F77 \
15895 export_dynamic_flag_spec_F77 \
15896 thread_safe_flag_spec_F77 \
15897 whole_archive_flag_spec_F77 \
15898 enable_shared_with_static_runtimes_F77 \
15899 old_archive_cmds_F77 \
15900 old_archive_from_new_cmds_F77 \
15901 predep_objects_F77 \
15902 postdep_objects_F77 \
15903 predeps_F77 \
15904 postdeps_F77 \
15905 compiler_lib_search_path_F77 \
15906 archive_cmds_F77 \
15907 archive_expsym_cmds_F77 \
15908 postinstall_cmds_F77 \
15909 postuninstall_cmds_F77 \
15910 old_archive_from_expsyms_cmds_F77 \
15911 allow_undefined_flag_F77 \
15912 no_undefined_flag_F77 \
15913 export_symbols_cmds_F77 \
15914 hardcode_libdir_flag_spec_F77 \
15915 hardcode_libdir_flag_spec_ld_F77 \
15916 hardcode_libdir_separator_F77 \
15917 hardcode_automatic_F77 \
15918 module_cmds_F77 \
15919 module_expsym_cmds_F77 \
15920 lt_cv_prog_compiler_c_o_F77 \
15921 exclude_expsyms_F77 \
15922 include_expsyms_F77; do
15923
15924 case $var in
15925 old_archive_cmds_F77 | \
15926 old_archive_from_new_cmds_F77 | \
15927 archive_cmds_F77 | \
15928 archive_expsym_cmds_F77 | \
15929 module_cmds_F77 | \
15930 module_expsym_cmds_F77 | \
15931 old_archive_from_expsyms_cmds_F77 | \
15932 export_symbols_cmds_F77 | \
15933 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15934 postinstall_cmds | postuninstall_cmds | \
15935 old_postinstall_cmds | old_postuninstall_cmds | \
15936 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15937 # Double-quote double-evaled strings.
15938 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15939 ;;
15940 *)
15941 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15942 ;;
15943 esac
15944 done
15945
15946 case $lt_echo in
15947 *'\$0 --fallback-echo"')
15948 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15949 ;;
15950 esac
15951
15952cfgfile="$ofile"
15953
15954 cat <<__EOF__ >> "$cfgfile"
15955# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15956
15957# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15958
15959# Shell to use when invoking shell scripts.
15960SHELL=$lt_SHELL
15961
15962# Whether or not to build shared libraries.
15963build_libtool_libs=$enable_shared
15964
15965# Whether or not to build static libraries.
15966build_old_libs=$enable_static
15967
15968# Whether or not to add -lc for building shared libraries.
15969build_libtool_need_lc=$archive_cmds_need_lc_F77
15970
15971# Whether or not to disallow shared libs when runtime libs are static
15972allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15973
15974# Whether or not to optimize for fast installation.
15975fast_install=$enable_fast_install
15976
15977# The host system.
15978host_alias=$host_alias
15979host=$host
15980host_os=$host_os
15981
15982# The build system.
15983build_alias=$build_alias
15984build=$build
15985build_os=$build_os
15986
15987# An echo program that does not interpret backslashes.
15988echo=$lt_echo
15989
15990# The archiver.
15991AR=$lt_AR
15992AR_FLAGS=$lt_AR_FLAGS
15993
15994# A C compiler.
15995LTCC=$lt_LTCC
15996
15997# LTCC compiler flags.
15998LTCFLAGS=$lt_LTCFLAGS
15999
16000# A language-specific compiler.
16001CC=$lt_compiler_F77
16002
16003# Is the compiler the GNU C compiler?
16004with_gcc=$GCC_F77
16005
d9898ee8 16006# An ERE matcher.
16007EGREP=$lt_EGREP
16008
16009# The linker used to build libraries.
16010LD=$lt_LD_F77
16011
16012# Whether we need hard or soft links.
16013LN_S=$lt_LN_S
16014
16015# A BSD-compatible nm program.
16016NM=$lt_NM
16017
16018# A symbol stripping program
16019STRIP=$lt_STRIP
16020
16021# Used to examine libraries when file_magic_cmd begins "file"
16022MAGIC_CMD=$MAGIC_CMD
16023
16024# Used on cygwin: DLL creation program.
16025DLLTOOL="$DLLTOOL"
16026
16027# Used on cygwin: object dumper.
16028OBJDUMP="$OBJDUMP"
16029
16030# Used on cygwin: assembler.
16031AS="$AS"
16032
16033# The name of the directory that contains temporary libtool files.
16034objdir=$objdir
16035
16036# How to create reloadable object files.
16037reload_flag=$lt_reload_flag
16038reload_cmds=$lt_reload_cmds
16039
16040# How to pass a linker flag through the compiler.
16041wl=$lt_lt_prog_compiler_wl_F77
16042
16043# Object file suffix (normally "o").
16044objext="$ac_objext"
16045
16046# Old archive suffix (normally "a").
16047libext="$libext"
16048
16049# Shared library suffix (normally ".so").
16050shrext_cmds='$shrext_cmds'
16051
16052# Executable file suffix (normally "").
16053exeext="$exeext"
16054
16055# Additional compiler flags for building library objects.
16056pic_flag=$lt_lt_prog_compiler_pic_F77
16057pic_mode=$pic_mode
16058
16059# What is the maximum length of a command?
16060max_cmd_len=$lt_cv_sys_max_cmd_len
16061
16062# Does compiler simultaneously support -c and -o options?
16063compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16064
16065# Must we lock files when doing compilation?
16066need_locks=$lt_need_locks
16067
16068# Do we need the lib prefix for modules?
16069need_lib_prefix=$need_lib_prefix
16070
16071# Do we need a version for libraries?
16072need_version=$need_version
16073
16074# Whether dlopen is supported.
16075dlopen_support=$enable_dlopen
16076
16077# Whether dlopen of programs is supported.
16078dlopen_self=$enable_dlopen_self
16079
16080# Whether dlopen of statically linked programs is supported.
16081dlopen_self_static=$enable_dlopen_self_static
16082
16083# Compiler flag to prevent dynamic linking.
16084link_static_flag=$lt_lt_prog_compiler_static_F77
16085
16086# Compiler flag to turn off builtin functions.
16087no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16088
16089# Compiler flag to allow reflexive dlopens.
16090export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16091
16092# Compiler flag to generate shared objects directly from archives.
16093whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16094
16095# Compiler flag to generate thread-safe objects.
16096thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16097
16098# Library versioning type.
16099version_type=$version_type
16100
16101# Format of library name prefix.
16102libname_spec=$lt_libname_spec
16103
16104# List of archive names. First name is the real one, the rest are links.
16105# The last name is the one that the linker finds with -lNAME.
16106library_names_spec=$lt_library_names_spec
16107
16108# The coded name of the library, if different from the real name.
16109soname_spec=$lt_soname_spec
16110
16111# Commands used to build and install an old-style archive.
16112RANLIB=$lt_RANLIB
16113old_archive_cmds=$lt_old_archive_cmds_F77
16114old_postinstall_cmds=$lt_old_postinstall_cmds
16115old_postuninstall_cmds=$lt_old_postuninstall_cmds
16116
16117# Create an old-style archive from a shared archive.
16118old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16119
16120# Create a temporary old-style archive to link instead of a shared archive.
16121old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16122
16123# Commands used to build and install a shared archive.
16124archive_cmds=$lt_archive_cmds_F77
16125archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16126postinstall_cmds=$lt_postinstall_cmds
16127postuninstall_cmds=$lt_postuninstall_cmds
16128
16129# Commands used to build a loadable module (assumed same as above if empty)
16130module_cmds=$lt_module_cmds_F77
16131module_expsym_cmds=$lt_module_expsym_cmds_F77
16132
16133# Commands to strip libraries.
16134old_striplib=$lt_old_striplib
16135striplib=$lt_striplib
16136
16137# Dependencies to place before the objects being linked to create a
16138# shared library.
64ff59ba 16139predep_objects=$lt_predep_objects_F77
d9898ee8 16140
16141# Dependencies to place after the objects being linked to create a
16142# shared library.
64ff59ba 16143postdep_objects=$lt_postdep_objects_F77
d9898ee8 16144
16145# Dependencies to place before the objects being linked to create a
16146# shared library.
16147predeps=$lt_predeps_F77
16148
16149# Dependencies to place after the objects being linked to create a
16150# shared library.
16151postdeps=$lt_postdeps_F77
16152
16153# The library search path used internally by the compiler when linking
16154# a shared library.
64ff59ba 16155compiler_lib_search_path=$lt_compiler_lib_search_path_F77
d9898ee8 16156
16157# Method to check whether dependent libraries are shared objects.
16158deplibs_check_method=$lt_deplibs_check_method
16159
16160# Command to use when deplibs_check_method == file_magic.
16161file_magic_cmd=$lt_file_magic_cmd
16162
16163# Flag that allows shared libraries with undefined symbols to be built.
16164allow_undefined_flag=$lt_allow_undefined_flag_F77
16165
16166# Flag that forces no undefined symbols.
16167no_undefined_flag=$lt_no_undefined_flag_F77
16168
16169# Commands used to finish a libtool library installation in a directory.
16170finish_cmds=$lt_finish_cmds
16171
16172# Same as above, but a single script fragment to be evaled but not shown.
16173finish_eval=$lt_finish_eval
16174
16175# Take the output of nm and produce a listing of raw symbols and C names.
16176global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16177
16178# Transform the output of nm in a proper C declaration
16179global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16180
16181# Transform the output of nm in a C name address pair
16182global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16183
16184# This is the shared library runtime path variable.
16185runpath_var=$runpath_var
16186
16187# This is the shared library path variable.
16188shlibpath_var=$shlibpath_var
16189
16190# Is shlibpath searched before the hard-coded library search path?
16191shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16192
16193# How to hardcode a shared library path into an executable.
16194hardcode_action=$hardcode_action_F77
16195
16196# Whether we should hardcode library paths into libraries.
16197hardcode_into_libs=$hardcode_into_libs
16198
16199# Flag to hardcode \$libdir into a binary during linking.
16200# This must work even if \$libdir does not exist.
16201hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16202
16203# If ld is used when linking, flag to hardcode \$libdir into
16204# a binary during linking. This must work even if \$libdir does
16205# not exist.
16206hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16207
16208# Whether we need a single -rpath flag with a separated argument.
16209hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16210
16211# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16212# resulting binary.
16213hardcode_direct=$hardcode_direct_F77
16214
16215# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16216# resulting binary.
16217hardcode_minus_L=$hardcode_minus_L_F77
16218
16219# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16220# the resulting binary.
16221hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16222
16223# Set to yes if building a shared library automatically hardcodes DIR into the library
16224# and all subsequent libraries and executables linked against it.
16225hardcode_automatic=$hardcode_automatic_F77
16226
16227# Variables whose values should be saved in libtool wrapper scripts and
16228# restored at relink time.
16229variables_saved_for_relink="$variables_saved_for_relink"
16230
16231# Whether libtool must link a program against all its dependency libraries.
16232link_all_deplibs=$link_all_deplibs_F77
16233
16234# Compile-time system search path for libraries
64ff59ba 16235sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
d9898ee8 16236
16237# Run-time system search path for libraries
16238sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16239
16240# Fix the shell variable \$srcfile for the compiler.
16241fix_srcfile_path="$fix_srcfile_path_F77"
16242
16243# Set to yes if exported symbols are required.
16244always_export_symbols=$always_export_symbols_F77
16245
16246# The commands to list exported symbols.
16247export_symbols_cmds=$lt_export_symbols_cmds_F77
16248
16249# The commands to extract the exported symbol list from a shared archive.
16250extract_expsyms_cmds=$lt_extract_expsyms_cmds
16251
16252# Symbols that should not be listed in the preloaded symbols.
16253exclude_expsyms=$lt_exclude_expsyms_F77
16254
16255# Symbols that must always be exported.
16256include_expsyms=$lt_include_expsyms_F77
16257
16258# ### END LIBTOOL TAG CONFIG: $tagname
16259
16260__EOF__
16261
16262
16263else
16264 # If there is no Makefile yet, we rely on a make rule to execute
16265 # `config.status --recheck' to rerun these tests and create the
16266 # libtool script then.
16267 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16268 if test -f "$ltmain_in"; then
16269 test -f Makefile && make "$ltmain"
16270 fi
16271fi
16272
16273
16274ac_ext=c
16275ac_cpp='$CPP $CPPFLAGS'
16276ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16277ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16278ac_compiler_gnu=$ac_cv_c_compiler_gnu
16279
16280CC="$lt_save_CC"
16281
16282 else
16283 tagname=""
16284 fi
16285 ;;
16286
16287 GCJ)
16288 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16289
16290
d9898ee8 16291# Source file extension for Java test sources.
16292ac_ext=java
16293
16294# Object file extension for compiled Java test sources.
16295objext=o
16296objext_GCJ=$objext
16297
16298# Code to be used in simple compile tests
16299lt_simple_compile_test_code="class foo {}\n"
16300
16301# Code to be used in simple link tests
16302lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16303
16304# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16305
16306# If no C compiler was specified, use CC.
16307LTCC=${LTCC-"$CC"}
16308
16309# If no C compiler flags were specified, use CFLAGS.
16310LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16311
16312# Allow CC to be a program name with arguments.
16313compiler=$CC
16314
16315
16316# save warnings/boilerplate of simple test code
16317ac_outfile=conftest.$ac_objext
16318printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16319eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16320_lt_compiler_boilerplate=`cat conftest.err`
16321$rm conftest*
16322
16323ac_outfile=conftest.$ac_objext
16324printf "$lt_simple_link_test_code" >conftest.$ac_ext
16325eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16326_lt_linker_boilerplate=`cat conftest.err`
16327$rm conftest*
16328
16329
16330# Allow CC to be a program name with arguments.
16331lt_save_CC="$CC"
16332CC=${GCJ-"gcj"}
16333compiler=$CC
16334compiler_GCJ=$CC
16335for cc_temp in $compiler""; do
16336 case $cc_temp in
16337 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16338 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16339 \-*) ;;
16340 *) break;;
16341 esac
16342done
16343cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16344
16345
16346# GCJ did not exist at the time GCC didn't implicitly link libc in.
16347archive_cmds_need_lc_GCJ=no
16348
16349old_archive_cmds_GCJ=$old_archive_cmds
16350
16351
16352lt_prog_compiler_no_builtin_flag_GCJ=
16353
16354if test "$GCC" = yes; then
16355 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16356
16357
64ff59ba 16358{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16359echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
d9898ee8 16360if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16361 echo $ECHO_N "(cached) $ECHO_C" >&6
16362else
16363 lt_cv_prog_compiler_rtti_exceptions=no
16364 ac_outfile=conftest.$ac_objext
16365 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16366 lt_compiler_flag="-fno-rtti -fno-exceptions"
16367 # Insert the option either (1) after the last *FLAGS variable, or
16368 # (2) before a word containing "conftest.", or (3) at the end.
16369 # Note that $ac_compile itself does not contain backslashes and begins
16370 # with a dollar sign (not a hyphen), so the echo should work correctly.
16371 # The option is referenced via a variable to avoid confusing sed.
16372 lt_compile=`echo "$ac_compile" | $SED \
16373 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16374 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16375 -e 's:$: $lt_compiler_flag:'`
64ff59ba 16376 (eval echo "\"\$as_me:16376: $lt_compile\"" >&5)
d9898ee8 16377 (eval "$lt_compile" 2>conftest.err)
16378 ac_status=$?
16379 cat conftest.err >&5
64ff59ba 16380 echo "$as_me:16380: \$? = $ac_status" >&5
d9898ee8 16381 if (exit $ac_status) && test -s "$ac_outfile"; then
16382 # The compiler can only warn and ignore the option if not recognized
16383 # So say no if there are warnings other than the usual output.
16384 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16385 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16386 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16387 lt_cv_prog_compiler_rtti_exceptions=yes
16388 fi
16389 fi
16390 $rm conftest*
16391
16392fi
64ff59ba 16393{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16394echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
d9898ee8 16395
16396if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16397 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16398else
16399 :
16400fi
16401
16402fi
16403
16404lt_prog_compiler_wl_GCJ=
16405lt_prog_compiler_pic_GCJ=
16406lt_prog_compiler_static_GCJ=
16407
64ff59ba 16408{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16409echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
d9898ee8 16410
16411 if test "$GCC" = yes; then
16412 lt_prog_compiler_wl_GCJ='-Wl,'
16413 lt_prog_compiler_static_GCJ='-static'
16414
16415 case $host_os in
16416 aix*)
16417 # All AIX code is PIC.
16418 if test "$host_cpu" = ia64; then
16419 # AIX 5 now supports IA64 processor
16420 lt_prog_compiler_static_GCJ='-Bstatic'
16421 fi
16422 ;;
16423
16424 amigaos*)
16425 # FIXME: we need at least 68020 code to build shared libraries, but
16426 # adding the `-m68020' flag to GCC prevents building anything better,
16427 # like `-m68040'.
16428 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16429 ;;
16430
16431 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16432 # PIC is the default for these OSes.
16433 ;;
16434
16435 mingw* | pw32* | os2*)
16436 # This hack is so that the source file can tell whether it is being
16437 # built for inclusion in a dll (and should export symbols for example).
16438 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16439 ;;
16440
16441 darwin* | rhapsody*)
16442 # PIC is the default on this platform
16443 # Common symbols not allowed in MH_DYLIB files
16444 lt_prog_compiler_pic_GCJ='-fno-common'
16445 ;;
16446
16447 interix3*)
16448 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16449 # Instead, we relocate shared libraries at runtime.
16450 ;;
16451
16452 msdosdjgpp*)
16453 # Just because we use GCC doesn't mean we suddenly get shared libraries
16454 # on systems that don't support them.
16455 lt_prog_compiler_can_build_shared_GCJ=no
16456 enable_shared=no
16457 ;;
16458
16459 sysv4*MP*)
16460 if test -d /usr/nec; then
16461 lt_prog_compiler_pic_GCJ=-Kconform_pic
16462 fi
16463 ;;
16464
16465 hpux*)
16466 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16467 # not for PA HP-UX.
16468 case $host_cpu in
16469 hppa*64*|ia64*)
16470 # +Z the default
16471 ;;
16472 *)
16473 lt_prog_compiler_pic_GCJ='-fPIC'
16474 ;;
16475 esac
16476 ;;
16477
16478 *)
16479 lt_prog_compiler_pic_GCJ='-fPIC'
16480 ;;
16481 esac
16482 else
16483 # PORTME Check for flag to pass linker flags through the system compiler.
16484 case $host_os in
16485 aix*)
16486 lt_prog_compiler_wl_GCJ='-Wl,'
16487 if test "$host_cpu" = ia64; then
16488 # AIX 5 now supports IA64 processor
16489 lt_prog_compiler_static_GCJ='-Bstatic'
16490 else
16491 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16492 fi
16493 ;;
16494 darwin*)
16495 # PIC is the default on this platform
16496 # Common symbols not allowed in MH_DYLIB files
16497 case $cc_basename in
16498 xlc*)
16499 lt_prog_compiler_pic_GCJ='-qnocommon'
16500 lt_prog_compiler_wl_GCJ='-Wl,'
16501 ;;
16502 esac
16503 ;;
16504
16505 mingw* | pw32* | os2*)
16506 # This hack is so that the source file can tell whether it is being
16507 # built for inclusion in a dll (and should export symbols for example).
16508 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16509 ;;
16510
16511 hpux9* | hpux10* | hpux11*)
16512 lt_prog_compiler_wl_GCJ='-Wl,'
16513 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16514 # not for PA HP-UX.
16515 case $host_cpu in
16516 hppa*64*|ia64*)
16517 # +Z the default
16518 ;;
16519 *)
16520 lt_prog_compiler_pic_GCJ='+Z'
16521 ;;
16522 esac
16523 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16524 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16525 ;;
16526
16527 irix5* | irix6* | nonstopux*)
16528 lt_prog_compiler_wl_GCJ='-Wl,'
16529 # PIC (with -KPIC) is the default.
16530 lt_prog_compiler_static_GCJ='-non_shared'
16531 ;;
16532
16533 newsos6)
16534 lt_prog_compiler_pic_GCJ='-KPIC'
16535 lt_prog_compiler_static_GCJ='-Bstatic'
16536 ;;
16537
16538 linux*)
16539 case $cc_basename in
16540 icc* | ecc*)
16541 lt_prog_compiler_wl_GCJ='-Wl,'
16542 lt_prog_compiler_pic_GCJ='-KPIC'
16543 lt_prog_compiler_static_GCJ='-static'
16544 ;;
16545 pgcc* | pgf77* | pgf90* | pgf95*)
16546 # Portland Group compilers (*not* the Pentium gcc compiler,
16547 # which looks to be a dead project)
16548 lt_prog_compiler_wl_GCJ='-Wl,'
16549 lt_prog_compiler_pic_GCJ='-fpic'
16550 lt_prog_compiler_static_GCJ='-Bstatic'
16551 ;;
16552 ccc*)
16553 lt_prog_compiler_wl_GCJ='-Wl,'
16554 # All Alpha code is PIC.
16555 lt_prog_compiler_static_GCJ='-non_shared'
16556 ;;
16557 esac
16558 ;;
16559
16560 osf3* | osf4* | osf5*)
16561 lt_prog_compiler_wl_GCJ='-Wl,'
16562 # All OSF/1 code is PIC.
16563 lt_prog_compiler_static_GCJ='-non_shared'
16564 ;;
16565
16566 solaris*)
16567 lt_prog_compiler_pic_GCJ='-KPIC'
16568 lt_prog_compiler_static_GCJ='-Bstatic'
16569 case $cc_basename in
16570 f77* | f90* | f95*)
16571 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16572 *)
16573 lt_prog_compiler_wl_GCJ='-Wl,';;
16574 esac
16575 ;;
16576
16577 sunos4*)
16578 lt_prog_compiler_wl_GCJ='-Qoption ld '
16579 lt_prog_compiler_pic_GCJ='-PIC'
16580 lt_prog_compiler_static_GCJ='-Bstatic'
16581 ;;
16582
16583 sysv4 | sysv4.2uw2* | sysv4.3*)
16584 lt_prog_compiler_wl_GCJ='-Wl,'
16585 lt_prog_compiler_pic_GCJ='-KPIC'
16586 lt_prog_compiler_static_GCJ='-Bstatic'
16587 ;;
16588
16589 sysv4*MP*)
16590 if test -d /usr/nec ;then
16591 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16592 lt_prog_compiler_static_GCJ='-Bstatic'
16593 fi
16594 ;;
16595
16596 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16597 lt_prog_compiler_wl_GCJ='-Wl,'
16598 lt_prog_compiler_pic_GCJ='-KPIC'
16599 lt_prog_compiler_static_GCJ='-Bstatic'
16600 ;;
16601
16602 unicos*)
16603 lt_prog_compiler_wl_GCJ='-Wl,'
16604 lt_prog_compiler_can_build_shared_GCJ=no
16605 ;;
16606
16607 uts4*)
16608 lt_prog_compiler_pic_GCJ='-pic'
16609 lt_prog_compiler_static_GCJ='-Bstatic'
16610 ;;
16611
16612 *)
16613 lt_prog_compiler_can_build_shared_GCJ=no
16614 ;;
16615 esac
16616 fi
16617
64ff59ba 16618{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16619echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
d9898ee8 16620
16621#
16622# Check to make sure the PIC flag actually works.
16623#
16624if test -n "$lt_prog_compiler_pic_GCJ"; then
16625
64ff59ba 16626{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16627echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
d9898ee8 16628if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16629 echo $ECHO_N "(cached) $ECHO_C" >&6
16630else
16631 lt_prog_compiler_pic_works_GCJ=no
16632 ac_outfile=conftest.$ac_objext
16633 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16634 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16635 # Insert the option either (1) after the last *FLAGS variable, or
16636 # (2) before a word containing "conftest.", or (3) at the end.
16637 # Note that $ac_compile itself does not contain backslashes and begins
16638 # with a dollar sign (not a hyphen), so the echo should work correctly.
16639 # The option is referenced via a variable to avoid confusing sed.
16640 lt_compile=`echo "$ac_compile" | $SED \
16641 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16642 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16643 -e 's:$: $lt_compiler_flag:'`
64ff59ba 16644 (eval echo "\"\$as_me:16644: $lt_compile\"" >&5)
d9898ee8 16645 (eval "$lt_compile" 2>conftest.err)
16646 ac_status=$?
16647 cat conftest.err >&5
64ff59ba 16648 echo "$as_me:16648: \$? = $ac_status" >&5
d9898ee8 16649 if (exit $ac_status) && test -s "$ac_outfile"; then
16650 # The compiler can only warn and ignore the option if not recognized
16651 # So say no if there are warnings other than the usual output.
16652 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16653 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16654 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16655 lt_prog_compiler_pic_works_GCJ=yes
16656 fi
16657 fi
16658 $rm conftest*
16659
16660fi
64ff59ba 16661{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16662echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
d9898ee8 16663
16664if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16665 case $lt_prog_compiler_pic_GCJ in
16666 "" | " "*) ;;
16667 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16668 esac
16669else
16670 lt_prog_compiler_pic_GCJ=
16671 lt_prog_compiler_can_build_shared_GCJ=no
16672fi
16673
16674fi
16675case $host_os in
16676 # For platforms which do not support PIC, -DPIC is meaningless:
16677 *djgpp*)
16678 lt_prog_compiler_pic_GCJ=
16679 ;;
16680 *)
16681 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16682 ;;
16683esac
16684
16685#
16686# Check to make sure the static flag actually works.
16687#
16688wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
64ff59ba 16689{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16690echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
d9898ee8 16691if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16692 echo $ECHO_N "(cached) $ECHO_C" >&6
16693else
16694 lt_prog_compiler_static_works_GCJ=no
16695 save_LDFLAGS="$LDFLAGS"
16696 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16697 printf "$lt_simple_link_test_code" > conftest.$ac_ext
16698 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16699 # The linker can only warn and ignore the option if not recognized
16700 # So say no if there are warnings
16701 if test -s conftest.err; then
16702 # Append any errors to the config.log.
16703 cat conftest.err 1>&5
16704 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16705 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16706 if diff conftest.exp conftest.er2 >/dev/null; then
16707 lt_prog_compiler_static_works_GCJ=yes
16708 fi
16709 else
16710 lt_prog_compiler_static_works_GCJ=yes
16711 fi
16712 fi
16713 $rm conftest*
16714 LDFLAGS="$save_LDFLAGS"
16715
16716fi
64ff59ba 16717{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16718echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
d9898ee8 16719
16720if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16721 :
16722else
16723 lt_prog_compiler_static_GCJ=
16724fi
16725
16726
64ff59ba 16727{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16728echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
d9898ee8 16729if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16730 echo $ECHO_N "(cached) $ECHO_C" >&6
16731else
16732 lt_cv_prog_compiler_c_o_GCJ=no
16733 $rm -r conftest 2>/dev/null
16734 mkdir conftest
16735 cd conftest
16736 mkdir out
16737 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16738
16739 lt_compiler_flag="-o out/conftest2.$ac_objext"
16740 # Insert the option either (1) after the last *FLAGS variable, or
16741 # (2) before a word containing "conftest.", or (3) at the end.
16742 # Note that $ac_compile itself does not contain backslashes and begins
16743 # with a dollar sign (not a hyphen), so the echo should work correctly.
16744 lt_compile=`echo "$ac_compile" | $SED \
16745 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16746 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16747 -e 's:$: $lt_compiler_flag:'`
64ff59ba 16748 (eval echo "\"\$as_me:16748: $lt_compile\"" >&5)
d9898ee8 16749 (eval "$lt_compile" 2>out/conftest.err)
16750 ac_status=$?
16751 cat out/conftest.err >&5
64ff59ba 16752 echo "$as_me:16752: \$? = $ac_status" >&5
d9898ee8 16753 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16754 then
16755 # The compiler can only warn and ignore the option if not recognized
16756 # So say no if there are warnings
16757 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16758 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16759 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16760 lt_cv_prog_compiler_c_o_GCJ=yes
16761 fi
16762 fi
16763 chmod u+w . 2>&5
16764 $rm conftest*
16765 # SGI C++ compiler will create directory out/ii_files/ for
16766 # template instantiation
16767 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16768 $rm out/* && rmdir out
16769 cd ..
16770 rmdir conftest
16771 $rm conftest*
16772
16773fi
64ff59ba 16774{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16775echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
d9898ee8 16776
16777
16778hard_links="nottested"
16779if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16780 # do not overwrite the value of need_locks provided by the user
64ff59ba 16781 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16782echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
d9898ee8 16783 hard_links=yes
16784 $rm conftest*
16785 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16786 touch conftest.a
16787 ln conftest.a conftest.b 2>&5 || hard_links=no
16788 ln conftest.a conftest.b 2>/dev/null && hard_links=no
64ff59ba 16789 { echo "$as_me:$LINENO: result: $hard_links" >&5
16790echo "${ECHO_T}$hard_links" >&6; }
d9898ee8 16791 if test "$hard_links" = no; then
16792 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16793echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16794 need_locks=warn
16795 fi
16796else
16797 need_locks=no
16798fi
16799
64ff59ba 16800{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16801echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
d9898ee8 16802
16803 runpath_var=
16804 allow_undefined_flag_GCJ=
16805 enable_shared_with_static_runtimes_GCJ=no
16806 archive_cmds_GCJ=
16807 archive_expsym_cmds_GCJ=
16808 old_archive_From_new_cmds_GCJ=
16809 old_archive_from_expsyms_cmds_GCJ=
16810 export_dynamic_flag_spec_GCJ=
16811 whole_archive_flag_spec_GCJ=
16812 thread_safe_flag_spec_GCJ=
16813 hardcode_libdir_flag_spec_GCJ=
16814 hardcode_libdir_flag_spec_ld_GCJ=
16815 hardcode_libdir_separator_GCJ=
16816 hardcode_direct_GCJ=no
16817 hardcode_minus_L_GCJ=no
16818 hardcode_shlibpath_var_GCJ=unsupported
16819 link_all_deplibs_GCJ=unknown
16820 hardcode_automatic_GCJ=no
16821 module_cmds_GCJ=
16822 module_expsym_cmds_GCJ=
16823 always_export_symbols_GCJ=no
16824 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16825 # include_expsyms should be a list of space-separated symbols to be *always*
16826 # included in the symbol list
16827 include_expsyms_GCJ=
16828 # exclude_expsyms can be an extended regexp of symbols to exclude
16829 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16830 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16831 # as well as any symbol that contains `d'.
16832 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16833 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16834 # platforms (ab)use it in PIC code, but their linkers get confused if
16835 # the symbol is explicitly referenced. Since portable code cannot
16836 # rely on this symbol name, it's probably fine to never include it in
16837 # preloaded symbol tables.
16838 extract_expsyms_cmds=
16839 # Just being paranoid about ensuring that cc_basename is set.
16840 for cc_temp in $compiler""; do
16841 case $cc_temp in
16842 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16843 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16844 \-*) ;;
16845 *) break;;
16846 esac
16847done
16848cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16849
16850 case $host_os in
16851 cygwin* | mingw* | pw32*)
16852 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16853 # When not using gcc, we currently assume that we are using
16854 # Microsoft Visual C++.
16855 if test "$GCC" != yes; then
16856 with_gnu_ld=no
16857 fi
16858 ;;
16859 interix*)
16860 # we just hope/assume this is gcc and not c89 (= MSVC++)
16861 with_gnu_ld=yes
16862 ;;
16863 openbsd*)
16864 with_gnu_ld=no
16865 ;;
16866 esac
16867
16868 ld_shlibs_GCJ=yes
16869 if test "$with_gnu_ld" = yes; then
16870 # If archive_cmds runs LD, not CC, wlarc should be empty
16871 wlarc='${wl}'
16872
16873 # Set some defaults for GNU ld with shared library support. These
16874 # are reset later if shared libraries are not supported. Putting them
16875 # here allows them to be overridden if necessary.
16876 runpath_var=LD_RUN_PATH
16877 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16878 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16879 # ancient GNU ld didn't support --whole-archive et. al.
16880 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16881 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16882 else
16883 whole_archive_flag_spec_GCJ=
16884 fi
16885 supports_anon_versioning=no
16886 case `$LD -v 2>/dev/null` in
16887 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16888 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16889 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16890 *\ 2.11.*) ;; # other 2.11 versions
16891 *) supports_anon_versioning=yes ;;
16892 esac
16893
16894 # See if GNU ld supports shared libraries.
16895 case $host_os in
16896 aix3* | aix4* | aix5*)
16897 # On AIX/PPC, the GNU linker is very broken
16898 if test "$host_cpu" != ia64; then
16899 ld_shlibs_GCJ=no
16900 cat <<EOF 1>&2
16901
16902*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16903*** to be unable to reliably create shared libraries on AIX.
16904*** Therefore, libtool is disabling shared libraries support. If you
16905*** really care for shared libraries, you may want to modify your PATH
16906*** so that a non-GNU linker is found, and then restart.
16907
16908EOF
16909 fi
16910 ;;
16911
16912 amigaos*)
16913 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)'
16914 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16915 hardcode_minus_L_GCJ=yes
16916
16917 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16918 # that the semantics of dynamic libraries on AmigaOS, at least up
16919 # to version 4, is to share data among multiple programs linked
16920 # with the same dynamic library. Since this doesn't match the
16921 # behavior of shared libraries on other platforms, we can't use
16922 # them.
16923 ld_shlibs_GCJ=no
16924 ;;
16925
16926 beos*)
16927 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16928 allow_undefined_flag_GCJ=unsupported
16929 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16930 # support --undefined. This deserves some investigation. FIXME
16931 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16932 else
16933 ld_shlibs_GCJ=no
16934 fi
16935 ;;
16936
16937 cygwin* | mingw* | pw32*)
16938 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16939 # as there is no search path for DLLs.
16940 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16941 allow_undefined_flag_GCJ=unsupported
16942 always_export_symbols_GCJ=no
16943 enable_shared_with_static_runtimes_GCJ=yes
16944 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16945
16946 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16947 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16948 # If the export-symbols file already is a .def file (1st line
16949 # is EXPORTS), use it as is; otherwise, prepend...
16950 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16951 cp $export_symbols $output_objdir/$soname.def;
16952 else
16953 echo EXPORTS > $output_objdir/$soname.def;
16954 cat $export_symbols >> $output_objdir/$soname.def;
16955 fi~
16956 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16957 else
16958 ld_shlibs_GCJ=no
16959 fi
16960 ;;
16961
16962 interix3*)
16963 hardcode_direct_GCJ=no
16964 hardcode_shlibpath_var_GCJ=no
16965 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16966 export_dynamic_flag_spec_GCJ='${wl}-E'
16967 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16968 # Instead, shared libraries are loaded at an image base (0x10000000 by
16969 # default) and relocated if they conflict, which is a slow very memory
16970 # consuming and fragmenting process. To avoid this, we pick a random,
16971 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16972 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16973 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'
16974 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'
16975 ;;
16976
16977 linux*)
16978 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16979 tmp_addflag=
16980 case $cc_basename,$host_cpu in
16981 pgcc*) # Portland Group C compiler
16982 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'
16983 tmp_addflag=' $pic_flag'
16984 ;;
16985 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16986 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'
16987 tmp_addflag=' $pic_flag -Mnomain' ;;
16988 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16989 tmp_addflag=' -i_dynamic' ;;
16990 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16991 tmp_addflag=' -i_dynamic -nofor_main' ;;
16992 ifc* | ifort*) # Intel Fortran compiler
16993 tmp_addflag=' -nofor_main' ;;
16994 esac
16995 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16996
16997 if test $supports_anon_versioning = yes; then
16998 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16999 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17000 $echo "local: *; };" >> $output_objdir/$libname.ver~
17001 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17002 fi
17003 else
17004 ld_shlibs_GCJ=no
17005 fi
17006 ;;
17007
17008 netbsd*)
17009 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17010 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17011 wlarc=
17012 else
17013 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17014 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17015 fi
17016 ;;
17017
17018 solaris*)
17019 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17020 ld_shlibs_GCJ=no
17021 cat <<EOF 1>&2
17022
17023*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17024*** create shared libraries on Solaris systems. Therefore, libtool
17025*** is disabling shared libraries support. We urge you to upgrade GNU
17026*** binutils to release 2.9.1 or newer. Another option is to modify
17027*** your PATH or compiler configuration so that the native linker is
17028*** used, and then restart.
17029
17030EOF
17031 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17032 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17033 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17034 else
17035 ld_shlibs_GCJ=no
17036 fi
17037 ;;
17038
17039 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17040 case `$LD -v 2>&1` in
17041 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17042 ld_shlibs_GCJ=no
17043 cat <<_LT_EOF 1>&2
17044
17045*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17046*** reliably create shared libraries on SCO systems. Therefore, libtool
17047*** is disabling shared libraries support. We urge you to upgrade GNU
17048*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17049*** your PATH or compiler configuration so that the native linker is
17050*** used, and then restart.
17051
17052_LT_EOF
17053 ;;
17054 *)
17055 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17056 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17057 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17058 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17059 else
17060 ld_shlibs_GCJ=no
17061 fi
17062 ;;
17063 esac
17064 ;;
17065
17066 sunos4*)
17067 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17068 wlarc=
17069 hardcode_direct_GCJ=yes
17070 hardcode_shlibpath_var_GCJ=no
17071 ;;
17072
17073 *)
17074 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17075 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17076 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17077 else
17078 ld_shlibs_GCJ=no
17079 fi
17080 ;;
17081 esac
17082
17083 if test "$ld_shlibs_GCJ" = no; then
17084 runpath_var=
17085 hardcode_libdir_flag_spec_GCJ=
17086 export_dynamic_flag_spec_GCJ=
17087 whole_archive_flag_spec_GCJ=
17088 fi
17089 else
17090 # PORTME fill in a description of your system's linker (not GNU ld)
17091 case $host_os in
17092 aix3*)
17093 allow_undefined_flag_GCJ=unsupported
17094 always_export_symbols_GCJ=yes
17095 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'
17096 # Note: this linker hardcodes the directories in LIBPATH if there
17097 # are no directories specified by -L.
17098 hardcode_minus_L_GCJ=yes
17099 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17100 # Neither direct hardcoding nor static linking is supported with a
17101 # broken collect2.
17102 hardcode_direct_GCJ=unsupported
17103 fi
17104 ;;
17105
17106 aix4* | aix5*)
17107 if test "$host_cpu" = ia64; then
17108 # On IA64, the linker does run time linking by default, so we don't
17109 # have to do anything special.
17110 aix_use_runtimelinking=no
17111 exp_sym_flag='-Bexport'
17112 no_entry_flag=""
17113 else
17114 # If we're using GNU nm, then we don't want the "-C" option.
17115 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17116 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17117 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'
17118 else
17119 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'
17120 fi
17121 aix_use_runtimelinking=no
17122
17123 # Test if we are trying to use run time linking or normal
17124 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17125 # need to do runtime linking.
17126 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17127 for ld_flag in $LDFLAGS; do
17128 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17129 aix_use_runtimelinking=yes
17130 break
17131 fi
17132 done
17133 ;;
17134 esac
17135
17136 exp_sym_flag='-bexport'
17137 no_entry_flag='-bnoentry'
17138 fi
17139
17140 # When large executables or shared objects are built, AIX ld can
17141 # have problems creating the table of contents. If linking a library
17142 # or program results in "error TOC overflow" add -mminimal-toc to
17143 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17144 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17145
17146 archive_cmds_GCJ=''
17147 hardcode_direct_GCJ=yes
17148 hardcode_libdir_separator_GCJ=':'
17149 link_all_deplibs_GCJ=yes
17150
17151 if test "$GCC" = yes; then
17152 case $host_os in aix4.[012]|aix4.[012].*)
17153 # We only want to do this on AIX 4.2 and lower, the check
17154 # below for broken collect2 doesn't work under 4.3+
17155 collect2name=`${CC} -print-prog-name=collect2`
17156 if test -f "$collect2name" && \
17157 strings "$collect2name" | grep resolve_lib_name >/dev/null
17158 then
17159 # We have reworked collect2
17160 hardcode_direct_GCJ=yes
17161 else
17162 # We have old collect2
17163 hardcode_direct_GCJ=unsupported
17164 # It fails to find uninstalled libraries when the uninstalled
17165 # path is not listed in the libpath. Setting hardcode_minus_L
17166 # to unsupported forces relinking
17167 hardcode_minus_L_GCJ=yes
17168 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17169 hardcode_libdir_separator_GCJ=
17170 fi
17171 ;;
17172 esac
17173 shared_flag='-shared'
17174 if test "$aix_use_runtimelinking" = yes; then
17175 shared_flag="$shared_flag "'${wl}-G'
17176 fi
17177 else
17178 # not using gcc
17179 if test "$host_cpu" = ia64; then
17180 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17181 # chokes on -Wl,-G. The following line is correct:
17182 shared_flag='-G'
17183 else
17184 if test "$aix_use_runtimelinking" = yes; then
17185 shared_flag='${wl}-G'
17186 else
17187 shared_flag='${wl}-bM:SRE'
17188 fi
17189 fi
17190 fi
17191
17192 # It seems that -bexpall does not export symbols beginning with
17193 # underscore (_), so it is better to generate a list of symbols to export.
17194 always_export_symbols_GCJ=yes
17195 if test "$aix_use_runtimelinking" = yes; then
17196 # Warning - without using the other runtime loading flags (-brtl),
17197 # -berok will link without error, but may produce a broken library.
17198 allow_undefined_flag_GCJ='-berok'
17199 # Determine the default libpath from the value encoded in an empty executable.
17200 cat >conftest.$ac_ext <<_ACEOF
17201/* confdefs.h. */
17202_ACEOF
17203cat confdefs.h >>conftest.$ac_ext
17204cat >>conftest.$ac_ext <<_ACEOF
17205/* end confdefs.h. */
17206
17207int
17208main ()
17209{
17210
17211 ;
17212 return 0;
17213}
17214_ACEOF
17215rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 17216if { (ac_try="$ac_link"
17217case "(($ac_try" in
17218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17219 *) ac_try_echo=$ac_try;;
17220esac
17221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17222 (eval "$ac_link") 2>conftest.er1
d9898ee8 17223 ac_status=$?
17224 grep -v '^ *+' conftest.er1 >conftest.err
17225 rm -f conftest.er1
17226 cat conftest.err >&5
17227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 17228 (exit $ac_status); } && {
17229 test -z "$ac_c_werror_flag" ||
17230 test ! -s conftest.err
17231 } && test -s conftest$ac_exeext &&
17232 $as_test_x conftest$ac_exeext; then
d9898ee8 17233
17234aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17235}'`
17236# Check for a 64-bit object if we didn't find anything.
17237if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17238}'`; fi
17239else
17240 echo "$as_me: failed program was:" >&5
17241sed 's/^/| /' conftest.$ac_ext >&5
17242
64ff59ba 17243
d9898ee8 17244fi
64ff59ba 17245
17246rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 17247 conftest$ac_exeext conftest.$ac_ext
17248if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17249
17250 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17251 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"
17252 else
17253 if test "$host_cpu" = ia64; then
17254 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17255 allow_undefined_flag_GCJ="-z nodefs"
17256 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"
17257 else
17258 # Determine the default libpath from the value encoded in an empty executable.
17259 cat >conftest.$ac_ext <<_ACEOF
17260/* confdefs.h. */
17261_ACEOF
17262cat confdefs.h >>conftest.$ac_ext
17263cat >>conftest.$ac_ext <<_ACEOF
17264/* end confdefs.h. */
17265
17266int
17267main ()
17268{
17269
17270 ;
17271 return 0;
17272}
17273_ACEOF
17274rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 17275if { (ac_try="$ac_link"
17276case "(($ac_try" in
17277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17278 *) ac_try_echo=$ac_try;;
17279esac
17280eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17281 (eval "$ac_link") 2>conftest.er1
d9898ee8 17282 ac_status=$?
17283 grep -v '^ *+' conftest.er1 >conftest.err
17284 rm -f conftest.er1
17285 cat conftest.err >&5
17286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 17287 (exit $ac_status); } && {
17288 test -z "$ac_c_werror_flag" ||
17289 test ! -s conftest.err
17290 } && test -s conftest$ac_exeext &&
17291 $as_test_x conftest$ac_exeext; then
d9898ee8 17292
17293aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17294}'`
17295# Check for a 64-bit object if we didn't find anything.
17296if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17297}'`; fi
17298else
17299 echo "$as_me: failed program was:" >&5
17300sed 's/^/| /' conftest.$ac_ext >&5
17301
64ff59ba 17302
d9898ee8 17303fi
64ff59ba 17304
17305rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 17306 conftest$ac_exeext conftest.$ac_ext
17307if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17308
17309 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17310 # Warning - without using the other run time loading flags,
17311 # -berok will link without error, but may produce a broken library.
17312 no_undefined_flag_GCJ=' ${wl}-bernotok'
17313 allow_undefined_flag_GCJ=' ${wl}-berok'
17314 # Exported symbols can be pulled into shared objects from archives
17315 whole_archive_flag_spec_GCJ='$convenience'
17316 archive_cmds_need_lc_GCJ=yes
17317 # This is similar to how AIX traditionally builds its shared libraries.
17318 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'
17319 fi
17320 fi
17321 ;;
17322
17323 amigaos*)
17324 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)'
17325 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17326 hardcode_minus_L_GCJ=yes
17327 # see comment about different semantics on the GNU ld section
17328 ld_shlibs_GCJ=no
17329 ;;
17330
17331 bsdi[45]*)
17332 export_dynamic_flag_spec_GCJ=-rdynamic
17333 ;;
17334
17335 cygwin* | mingw* | pw32*)
17336 # When not using gcc, we currently assume that we are using
17337 # Microsoft Visual C++.
17338 # hardcode_libdir_flag_spec is actually meaningless, as there is
17339 # no search path for DLLs.
17340 hardcode_libdir_flag_spec_GCJ=' '
17341 allow_undefined_flag_GCJ=unsupported
17342 # Tell ltmain to make .lib files, not .a files.
17343 libext=lib
17344 # Tell ltmain to make .dll files, not .so files.
17345 shrext_cmds=".dll"
17346 # FIXME: Setting linknames here is a bad hack.
17347 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17348 # The linker will automatically build a .lib file if we build a DLL.
17349 old_archive_From_new_cmds_GCJ='true'
17350 # FIXME: Should let the user specify the lib program.
17351 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17352 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17353 enable_shared_with_static_runtimes_GCJ=yes
17354 ;;
17355
17356 darwin* | rhapsody*)
17357 case $host_os in
17358 rhapsody* | darwin1.[012])
17359 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17360 ;;
17361 *) # Darwin 1.3 on
17362 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17363 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17364 else
17365 case ${MACOSX_DEPLOYMENT_TARGET} in
17366 10.[012])
17367 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17368 ;;
17369 10.*)
17370 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17371 ;;
17372 esac
17373 fi
17374 ;;
17375 esac
17376 archive_cmds_need_lc_GCJ=no
17377 hardcode_direct_GCJ=no
17378 hardcode_automatic_GCJ=yes
17379 hardcode_shlibpath_var_GCJ=unsupported
17380 whole_archive_flag_spec_GCJ=''
17381 link_all_deplibs_GCJ=yes
17382 if test "$GCC" = yes ; then
17383 output_verbose_link_cmd='echo'
17384 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17385 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17386 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17387 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}'
17388 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}'
17389 else
17390 case $cc_basename in
17391 xlc*)
17392 output_verbose_link_cmd='echo'
17393 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17394 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17395 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17396 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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17397 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}'
17398 ;;
17399 *)
17400 ld_shlibs_GCJ=no
17401 ;;
17402 esac
17403 fi
17404 ;;
17405
17406 dgux*)
17407 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17408 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17409 hardcode_shlibpath_var_GCJ=no
17410 ;;
17411
17412 freebsd1*)
17413 ld_shlibs_GCJ=no
17414 ;;
17415
17416 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17417 # support. Future versions do this automatically, but an explicit c++rt0.o
17418 # does not break anything, and helps significantly (at the cost of a little
17419 # extra space).
17420 freebsd2.2*)
17421 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17422 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17423 hardcode_direct_GCJ=yes
17424 hardcode_shlibpath_var_GCJ=no
17425 ;;
17426
17427 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17428 freebsd2*)
17429 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17430 hardcode_direct_GCJ=yes
17431 hardcode_minus_L_GCJ=yes
17432 hardcode_shlibpath_var_GCJ=no
17433 ;;
17434
17435 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17436 freebsd* | kfreebsd*-gnu | dragonfly*)
17437 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17438 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17439 hardcode_direct_GCJ=yes
17440 hardcode_shlibpath_var_GCJ=no
17441 ;;
17442
17443 hpux9*)
17444 if test "$GCC" = yes; then
17445 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'
17446 else
17447 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'
17448 fi
17449 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17450 hardcode_libdir_separator_GCJ=:
17451 hardcode_direct_GCJ=yes
17452
17453 # hardcode_minus_L: Not really in the search PATH,
17454 # but as the default location of the library.
17455 hardcode_minus_L_GCJ=yes
17456 export_dynamic_flag_spec_GCJ='${wl}-E'
17457 ;;
17458
17459 hpux10*)
17460 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17461 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17462 else
17463 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17464 fi
17465 if test "$with_gnu_ld" = no; then
17466 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17467 hardcode_libdir_separator_GCJ=:
17468
17469 hardcode_direct_GCJ=yes
17470 export_dynamic_flag_spec_GCJ='${wl}-E'
17471
17472 # hardcode_minus_L: Not really in the search PATH,
17473 # but as the default location of the library.
17474 hardcode_minus_L_GCJ=yes
17475 fi
17476 ;;
17477
17478 hpux11*)
17479 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17480 case $host_cpu in
17481 hppa*64*)
17482 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17483 ;;
17484 ia64*)
17485 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17486 ;;
17487 *)
17488 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17489 ;;
17490 esac
17491 else
17492 case $host_cpu in
17493 hppa*64*)
17494 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17495 ;;
17496 ia64*)
17497 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17498 ;;
17499 *)
17500 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17501 ;;
17502 esac
17503 fi
17504 if test "$with_gnu_ld" = no; then
17505 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17506 hardcode_libdir_separator_GCJ=:
17507
17508 case $host_cpu in
17509 hppa*64*|ia64*)
17510 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17511 hardcode_direct_GCJ=no
17512 hardcode_shlibpath_var_GCJ=no
17513 ;;
17514 *)
17515 hardcode_direct_GCJ=yes
17516 export_dynamic_flag_spec_GCJ='${wl}-E'
17517
17518 # hardcode_minus_L: Not really in the search PATH,
17519 # but as the default location of the library.
17520 hardcode_minus_L_GCJ=yes
17521 ;;
17522 esac
17523 fi
17524 ;;
17525
17526 irix5* | irix6* | nonstopux*)
17527 if test "$GCC" = yes; then
17528 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'
17529 else
17530 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'
17531 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17532 fi
17533 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17534 hardcode_libdir_separator_GCJ=:
17535 link_all_deplibs_GCJ=yes
17536 ;;
17537
17538 netbsd*)
17539 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17540 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17541 else
17542 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17543 fi
17544 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17545 hardcode_direct_GCJ=yes
17546 hardcode_shlibpath_var_GCJ=no
17547 ;;
17548
17549 newsos6)
17550 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17551 hardcode_direct_GCJ=yes
17552 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17553 hardcode_libdir_separator_GCJ=:
17554 hardcode_shlibpath_var_GCJ=no
17555 ;;
17556
17557 openbsd*)
17558 hardcode_direct_GCJ=yes
17559 hardcode_shlibpath_var_GCJ=no
17560 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17561 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17562 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17563 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17564 export_dynamic_flag_spec_GCJ='${wl}-E'
17565 else
17566 case $host_os in
17567 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17568 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17569 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17570 ;;
17571 *)
17572 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17573 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17574 ;;
17575 esac
17576 fi
17577 ;;
17578
17579 os2*)
17580 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17581 hardcode_minus_L_GCJ=yes
17582 allow_undefined_flag_GCJ=unsupported
17583 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'
17584 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17585 ;;
17586
17587 osf3*)
17588 if test "$GCC" = yes; then
17589 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17590 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'
17591 else
17592 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17593 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'
17594 fi
17595 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17596 hardcode_libdir_separator_GCJ=:
17597 ;;
17598
17599 osf4* | osf5*) # as osf3* with the addition of -msym flag
17600 if test "$GCC" = yes; then
17601 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17602 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'
17603 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17604 else
17605 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17606 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'
17607 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~
17608 $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'
17609
17610 # Both c and cxx compiler support -rpath directly
17611 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17612 fi
17613 hardcode_libdir_separator_GCJ=:
17614 ;;
17615
17616 solaris*)
17617 no_undefined_flag_GCJ=' -z text'
17618 if test "$GCC" = yes; then
17619 wlarc='${wl}'
17620 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17621 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17622 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17623 else
17624 wlarc=''
17625 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17626 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17627 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17628 fi
17629 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17630 hardcode_shlibpath_var_GCJ=no
17631 case $host_os in
17632 solaris2.[0-5] | solaris2.[0-5].*) ;;
17633 *)
17634 # The compiler driver will combine linker options so we
17635 # cannot just pass the convience library names through
17636 # without $wl, iff we do not link with $LD.
17637 # Luckily, gcc supports the same syntax we need for Sun Studio.
17638 # Supported since Solaris 2.6 (maybe 2.5.1?)
17639 case $wlarc in
17640 '')
17641 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17642 *)
17643 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
17644 esac ;;
17645 esac
17646 link_all_deplibs_GCJ=yes
17647 ;;
17648
17649 sunos4*)
17650 if test "x$host_vendor" = xsequent; then
17651 # Use $CC to link under sequent, because it throws in some extra .o
17652 # files that make .init and .fini sections work.
17653 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17654 else
17655 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17656 fi
17657 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17658 hardcode_direct_GCJ=yes
17659 hardcode_minus_L_GCJ=yes
17660 hardcode_shlibpath_var_GCJ=no
17661 ;;
17662
17663 sysv4)
17664 case $host_vendor in
17665 sni)
17666 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17667 hardcode_direct_GCJ=yes # is this really true???
17668 ;;
17669 siemens)
17670 ## LD is ld it makes a PLAMLIB
17671 ## CC just makes a GrossModule.
17672 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17673 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17674 hardcode_direct_GCJ=no
17675 ;;
17676 motorola)
17677 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17678 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17679 ;;
17680 esac
17681 runpath_var='LD_RUN_PATH'
17682 hardcode_shlibpath_var_GCJ=no
17683 ;;
17684
17685 sysv4.3*)
17686 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17687 hardcode_shlibpath_var_GCJ=no
17688 export_dynamic_flag_spec_GCJ='-Bexport'
17689 ;;
17690
17691 sysv4*MP*)
17692 if test -d /usr/nec; then
17693 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17694 hardcode_shlibpath_var_GCJ=no
17695 runpath_var=LD_RUN_PATH
17696 hardcode_runpath_var=yes
17697 ld_shlibs_GCJ=yes
17698 fi
17699 ;;
17700
17701 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17702 no_undefined_flag_GCJ='${wl}-z,text'
17703 archive_cmds_need_lc_GCJ=no
17704 hardcode_shlibpath_var_GCJ=no
17705 runpath_var='LD_RUN_PATH'
17706
17707 if test "$GCC" = yes; then
17708 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17709 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17710 else
17711 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17712 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17713 fi
17714 ;;
17715
17716 sysv5* | sco3.2v5* | sco5v6*)
17717 # Note: We can NOT use -z defs as we might desire, because we do not
17718 # link with -lc, and that would cause any symbols used from libc to
17719 # always be unresolved, which means just about no library would
17720 # ever link correctly. If we're not using GNU ld we use -z text
17721 # though, which does catch some bad symbols but isn't as heavy-handed
17722 # as -z defs.
17723 no_undefined_flag_GCJ='${wl}-z,text'
17724 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17725 archive_cmds_need_lc_GCJ=no
17726 hardcode_shlibpath_var_GCJ=no
17727 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17728 hardcode_libdir_separator_GCJ=':'
17729 link_all_deplibs_GCJ=yes
17730 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17731 runpath_var='LD_RUN_PATH'
17732
17733 if test "$GCC" = yes; then
17734 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17735 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17736 else
17737 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17738 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17739 fi
17740 ;;
17741
17742 uts4*)
17743 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17744 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17745 hardcode_shlibpath_var_GCJ=no
17746 ;;
17747
17748 *)
17749 ld_shlibs_GCJ=no
17750 ;;
17751 esac
17752 fi
17753
64ff59ba 17754{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17755echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
d9898ee8 17756test "$ld_shlibs_GCJ" = no && can_build_shared=no
17757
17758#
17759# Do we need to explicitly link libc?
17760#
17761case "x$archive_cmds_need_lc_GCJ" in
17762x|xyes)
17763 # Assume -lc should be added
17764 archive_cmds_need_lc_GCJ=yes
17765
17766 if test "$enable_shared" = yes && test "$GCC" = yes; then
17767 case $archive_cmds_GCJ in
17768 *'~'*)
17769 # FIXME: we may have to deal with multi-command sequences.
17770 ;;
17771 '$CC '*)
17772 # Test whether the compiler implicitly links with -lc since on some
17773 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17774 # to ld, don't add -lc before -lgcc.
64ff59ba 17775 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17776echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
d9898ee8 17777 $rm conftest*
17778 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17779
17780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17781 (eval $ac_compile) 2>&5
17782 ac_status=$?
17783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17784 (exit $ac_status); } 2>conftest.err; then
17785 soname=conftest
17786 lib=conftest
17787 libobjs=conftest.$ac_objext
17788 deplibs=
17789 wl=$lt_prog_compiler_wl_GCJ
17790 pic_flag=$lt_prog_compiler_pic_GCJ
17791 compiler_flags=-v
17792 linker_flags=-v
17793 verstring=
17794 output_objdir=.
17795 libname=conftest
17796 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17797 allow_undefined_flag_GCJ=
17798 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17799 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17800 ac_status=$?
17801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17802 (exit $ac_status); }
17803 then
17804 archive_cmds_need_lc_GCJ=no
17805 else
17806 archive_cmds_need_lc_GCJ=yes
17807 fi
17808 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17809 else
17810 cat conftest.err 1>&5
17811 fi
17812 $rm conftest*
64ff59ba 17813 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17814echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
d9898ee8 17815 ;;
17816 esac
17817 fi
17818 ;;
17819esac
17820
64ff59ba 17821{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17822echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
d9898ee8 17823library_names_spec=
17824libname_spec='lib$name'
17825soname_spec=
17826shrext_cmds=".so"
17827postinstall_cmds=
17828postuninstall_cmds=
17829finish_cmds=
17830finish_eval=
17831shlibpath_var=
17832shlibpath_overrides_runpath=unknown
17833version_type=none
17834dynamic_linker="$host_os ld.so"
17835sys_lib_dlsearch_path_spec="/lib /usr/lib"
17836if test "$GCC" = yes; then
17837 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17838 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17839 # if the path contains ";" then we assume it to be the separator
17840 # otherwise default to the standard path separator (i.e. ":") - it is
17841 # assumed that no part of a normal pathname contains ";" but that should
17842 # okay in the real world where ";" in dirpaths is itself problematic.
17843 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17844 else
17845 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17846 fi
17847else
17848 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17849fi
17850need_lib_prefix=unknown
17851hardcode_into_libs=no
17852
17853# when you set need_version to no, make sure it does not cause -set_version
17854# flags to be left without arguments
17855need_version=unknown
17856
17857case $host_os in
17858aix3*)
17859 version_type=linux
17860 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17861 shlibpath_var=LIBPATH
17862
17863 # AIX 3 has no versioning support, so we append a major version to the name.
17864 soname_spec='${libname}${release}${shared_ext}$major'
17865 ;;
17866
17867aix4* | aix5*)
17868 version_type=linux
17869 need_lib_prefix=no
17870 need_version=no
17871 hardcode_into_libs=yes
17872 if test "$host_cpu" = ia64; then
17873 # AIX 5 supports IA64
17874 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17875 shlibpath_var=LD_LIBRARY_PATH
17876 else
17877 # With GCC up to 2.95.x, collect2 would create an import file
17878 # for dependence libraries. The import file would start with
17879 # the line `#! .'. This would cause the generated library to
17880 # depend on `.', always an invalid library. This was fixed in
17881 # development snapshots of GCC prior to 3.0.
17882 case $host_os in
17883 aix4 | aix4.[01] | aix4.[01].*)
17884 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17885 echo ' yes '
17886 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17887 :
17888 else
17889 can_build_shared=no
17890 fi
17891 ;;
17892 esac
17893 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17894 # soname into executable. Probably we can add versioning support to
17895 # collect2, so additional links can be useful in future.
17896 if test "$aix_use_runtimelinking" = yes; then
17897 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17898 # instead of lib<name>.a to let people know that these are not
17899 # typical AIX shared libraries.
17900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17901 else
17902 # We preserve .a as extension for shared libraries through AIX4.2
17903 # and later when we are not doing run time linking.
17904 library_names_spec='${libname}${release}.a $libname.a'
17905 soname_spec='${libname}${release}${shared_ext}$major'
17906 fi
17907 shlibpath_var=LIBPATH
17908 fi
17909 ;;
17910
17911amigaos*)
17912 library_names_spec='$libname.ixlibrary $libname.a'
17913 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17914 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'
17915 ;;
17916
17917beos*)
17918 library_names_spec='${libname}${shared_ext}'
17919 dynamic_linker="$host_os ld.so"
17920 shlibpath_var=LIBRARY_PATH
17921 ;;
17922
17923bsdi[45]*)
17924 version_type=linux
17925 need_version=no
17926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17927 soname_spec='${libname}${release}${shared_ext}$major'
17928 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17929 shlibpath_var=LD_LIBRARY_PATH
17930 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17931 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17932 # the default ld.so.conf also contains /usr/contrib/lib and
17933 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17934 # libtool to hard-code these into programs
17935 ;;
17936
17937cygwin* | mingw* | pw32*)
17938 version_type=windows
17939 shrext_cmds=".dll"
17940 need_version=no
17941 need_lib_prefix=no
17942
17943 case $GCC,$host_os in
17944 yes,cygwin* | yes,mingw* | yes,pw32*)
17945 library_names_spec='$libname.dll.a'
17946 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17947 postinstall_cmds='base_file=`basename \${file}`~
17948 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17949 dldir=$destdir/`dirname \$dlpath`~
17950 test -d \$dldir || mkdir -p \$dldir~
17951 $install_prog $dir/$dlname \$dldir/$dlname~
17952 chmod a+x \$dldir/$dlname'
17953 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17954 dlpath=$dir/\$dldll~
17955 $rm \$dlpath'
17956 shlibpath_overrides_runpath=yes
17957
17958 case $host_os in
17959 cygwin*)
17960 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17961 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17962 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17963 ;;
17964 mingw*)
17965 # MinGW DLLs use traditional 'lib' prefix
17966 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17967 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17968 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17969 # It is most probably a Windows format PATH printed by
17970 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17971 # path with ; separators, and with drive letters. We can handle the
17972 # drive letters (cygwin fileutils understands them), so leave them,
17973 # especially as we might pass files found there to a mingw objdump,
17974 # which wouldn't understand a cygwinified path. Ahh.
17975 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17976 else
17977 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17978 fi
17979 ;;
17980 pw32*)
17981 # pw32 DLLs use 'pw' prefix rather than 'lib'
17982 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17983 ;;
17984 esac
17985 ;;
17986
17987 *)
17988 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17989 ;;
17990 esac
17991 dynamic_linker='Win32 ld.exe'
17992 # FIXME: first we should search . and the directory the executable is in
17993 shlibpath_var=PATH
17994 ;;
17995
17996darwin* | rhapsody*)
17997 dynamic_linker="$host_os dyld"
17998 version_type=darwin
17999 need_lib_prefix=no
18000 need_version=no
18001 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18002 soname_spec='${libname}${release}${major}$shared_ext'
18003 shlibpath_overrides_runpath=yes
18004 shlibpath_var=DYLD_LIBRARY_PATH
18005 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18006 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18007 if test "$GCC" = yes; then
18008 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
18009 else
18010 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18011 fi
18012 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18013 ;;
18014
18015dgux*)
18016 version_type=linux
18017 need_lib_prefix=no
18018 need_version=no
18019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18020 soname_spec='${libname}${release}${shared_ext}$major'
18021 shlibpath_var=LD_LIBRARY_PATH
18022 ;;
18023
18024freebsd1*)
18025 dynamic_linker=no
18026 ;;
18027
18028kfreebsd*-gnu)
18029 version_type=linux
18030 need_lib_prefix=no
18031 need_version=no
18032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18033 soname_spec='${libname}${release}${shared_ext}$major'
18034 shlibpath_var=LD_LIBRARY_PATH
18035 shlibpath_overrides_runpath=no
18036 hardcode_into_libs=yes
18037 dynamic_linker='GNU ld.so'
18038 ;;
18039
18040freebsd* | dragonfly*)
18041 # DragonFly does not have aout. When/if they implement a new
18042 # versioning mechanism, adjust this.
18043 if test -x /usr/bin/objformat; then
18044 objformat=`/usr/bin/objformat`
18045 else
18046 case $host_os in
18047 freebsd[123]*) objformat=aout ;;
18048 *) objformat=elf ;;
18049 esac
18050 fi
18051 version_type=freebsd-$objformat
18052 case $version_type in
18053 freebsd-elf*)
18054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18055 need_version=no
18056 need_lib_prefix=no
18057 ;;
18058 freebsd-*)
18059 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18060 need_version=yes
18061 ;;
18062 esac
18063 shlibpath_var=LD_LIBRARY_PATH
18064 case $host_os in
18065 freebsd2*)
18066 shlibpath_overrides_runpath=yes
18067 ;;
18068 freebsd3.[01]* | freebsdelf3.[01]*)
18069 shlibpath_overrides_runpath=yes
18070 hardcode_into_libs=yes
18071 ;;
18072 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18073 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18074 shlibpath_overrides_runpath=no
18075 hardcode_into_libs=yes
18076 ;;
18077 freebsd*) # from 4.6 on
18078 shlibpath_overrides_runpath=yes
18079 hardcode_into_libs=yes
18080 ;;
18081 esac
18082 ;;
18083
18084gnu*)
18085 version_type=linux
18086 need_lib_prefix=no
18087 need_version=no
18088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18089 soname_spec='${libname}${release}${shared_ext}$major'
18090 shlibpath_var=LD_LIBRARY_PATH
18091 hardcode_into_libs=yes
18092 ;;
18093
18094hpux9* | hpux10* | hpux11*)
18095 # Give a soname corresponding to the major version so that dld.sl refuses to
18096 # link against other versions.
18097 version_type=sunos
18098 need_lib_prefix=no
18099 need_version=no
18100 case $host_cpu in
18101 ia64*)
18102 shrext_cmds='.so'
18103 hardcode_into_libs=yes
18104 dynamic_linker="$host_os dld.so"
18105 shlibpath_var=LD_LIBRARY_PATH
18106 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18108 soname_spec='${libname}${release}${shared_ext}$major'
18109 if test "X$HPUX_IA64_MODE" = X32; then
18110 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18111 else
18112 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18113 fi
18114 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18115 ;;
18116 hppa*64*)
18117 shrext_cmds='.sl'
18118 hardcode_into_libs=yes
18119 dynamic_linker="$host_os dld.sl"
18120 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18121 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18123 soname_spec='${libname}${release}${shared_ext}$major'
18124 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18125 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18126 ;;
18127 *)
18128 shrext_cmds='.sl'
18129 dynamic_linker="$host_os dld.sl"
18130 shlibpath_var=SHLIB_PATH
18131 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18133 soname_spec='${libname}${release}${shared_ext}$major'
18134 ;;
18135 esac
18136 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18137 postinstall_cmds='chmod 555 $lib'
18138 ;;
18139
18140interix3*)
18141 version_type=linux
18142 need_lib_prefix=no
18143 need_version=no
18144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18145 soname_spec='${libname}${release}${shared_ext}$major'
18146 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18147 shlibpath_var=LD_LIBRARY_PATH
18148 shlibpath_overrides_runpath=no
18149 hardcode_into_libs=yes
18150 ;;
18151
18152irix5* | irix6* | nonstopux*)
18153 case $host_os in
18154 nonstopux*) version_type=nonstopux ;;
18155 *)
18156 if test "$lt_cv_prog_gnu_ld" = yes; then
18157 version_type=linux
18158 else
18159 version_type=irix
18160 fi ;;
18161 esac
18162 need_lib_prefix=no
18163 need_version=no
18164 soname_spec='${libname}${release}${shared_ext}$major'
18165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18166 case $host_os in
18167 irix5* | nonstopux*)
18168 libsuff= shlibsuff=
18169 ;;
18170 *)
18171 case $LD in # libtool.m4 will add one of these switches to LD
18172 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18173 libsuff= shlibsuff= libmagic=32-bit;;
18174 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18175 libsuff=32 shlibsuff=N32 libmagic=N32;;
18176 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18177 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18178 *) libsuff= shlibsuff= libmagic=never-match;;
18179 esac
18180 ;;
18181 esac
18182 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18183 shlibpath_overrides_runpath=no
18184 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18185 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18186 hardcode_into_libs=yes
18187 ;;
18188
18189# No shared lib support for Linux oldld, aout, or coff.
18190linux*oldld* | linux*aout* | linux*coff*)
18191 dynamic_linker=no
18192 ;;
18193
18194# This must be Linux ELF.
18195linux*)
18196 version_type=linux
18197 need_lib_prefix=no
18198 need_version=no
18199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18200 soname_spec='${libname}${release}${shared_ext}$major'
18201 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18202 shlibpath_var=LD_LIBRARY_PATH
18203 shlibpath_overrides_runpath=no
18204 # This implies no fast_install, which is unacceptable.
18205 # Some rework will be needed to allow for fast_install
18206 # before this can be enabled.
18207 hardcode_into_libs=yes
18208
18209 # find out which ABI we are using
18210 libsuff=
18211 case "$host_cpu" in
18212 x86_64*|s390x*|powerpc64*)
64ff59ba 18213 echo '#line 18213 "configure"' > conftest.$ac_ext
d9898ee8 18214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18215 (eval $ac_compile) 2>&5
18216 ac_status=$?
18217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18218 (exit $ac_status); }; then
18219 case `/usr/bin/file conftest.$ac_objext` in
18220 *64-bit*)
18221 libsuff=64
18222 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
18223 ;;
18224 esac
18225 fi
18226 rm -rf conftest*
18227 ;;
18228 esac
18229
18230 # Append ld.so.conf contents to the search path
18231 if test -f /etc/ld.so.conf; then
64ff59ba 18232 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/^ *//;s/#.*//;/^[^\/]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
d9898ee8 18233 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
18234 fi
18235
18236 # We used to test for /lib/ld.so.1 and disable shared libraries on
18237 # powerpc, because MkLinux only supported shared libraries with the
18238 # GNU dynamic linker. Since this was broken with cross compilers,
18239 # most powerpc-linux boxes support dynamic linking these days and
18240 # people can always --disable-shared, the test was removed, and we
18241 # assume the GNU/Linux dynamic linker is in use.
18242 dynamic_linker='GNU/Linux ld.so'
18243 ;;
18244
18245knetbsd*-gnu)
18246 version_type=linux
18247 need_lib_prefix=no
18248 need_version=no
18249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18250 soname_spec='${libname}${release}${shared_ext}$major'
18251 shlibpath_var=LD_LIBRARY_PATH
18252 shlibpath_overrides_runpath=no
18253 hardcode_into_libs=yes
18254 dynamic_linker='GNU ld.so'
18255 ;;
18256
18257netbsd*)
18258 version_type=sunos
18259 need_lib_prefix=no
18260 need_version=no
18261 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18263 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18264 dynamic_linker='NetBSD (a.out) ld.so'
18265 else
18266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18267 soname_spec='${libname}${release}${shared_ext}$major'
18268 dynamic_linker='NetBSD ld.elf_so'
18269 fi
18270 shlibpath_var=LD_LIBRARY_PATH
18271 shlibpath_overrides_runpath=yes
18272 hardcode_into_libs=yes
18273 ;;
18274
18275newsos6)
18276 version_type=linux
18277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18278 shlibpath_var=LD_LIBRARY_PATH
18279 shlibpath_overrides_runpath=yes
18280 ;;
18281
18282nto-qnx*)
18283 version_type=linux
18284 need_lib_prefix=no
18285 need_version=no
18286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18287 soname_spec='${libname}${release}${shared_ext}$major'
18288 shlibpath_var=LD_LIBRARY_PATH
18289 shlibpath_overrides_runpath=yes
18290 ;;
18291
18292openbsd*)
18293 version_type=sunos
18294 sys_lib_dlsearch_path_spec="/usr/lib"
18295 need_lib_prefix=no
18296 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18297 case $host_os in
18298 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18299 *) need_version=no ;;
18300 esac
18301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18302 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18303 shlibpath_var=LD_LIBRARY_PATH
18304 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18305 case $host_os in
18306 openbsd2.[89] | openbsd2.[89].*)
18307 shlibpath_overrides_runpath=no
18308 ;;
18309 *)
18310 shlibpath_overrides_runpath=yes
18311 ;;
18312 esac
18313 else
18314 shlibpath_overrides_runpath=yes
18315 fi
18316 ;;
18317
18318os2*)
18319 libname_spec='$name'
18320 shrext_cmds=".dll"
18321 need_lib_prefix=no
18322 library_names_spec='$libname${shared_ext} $libname.a'
18323 dynamic_linker='OS/2 ld.exe'
18324 shlibpath_var=LIBPATH
18325 ;;
18326
18327osf3* | osf4* | osf5*)
18328 version_type=osf
18329 need_lib_prefix=no
18330 need_version=no
18331 soname_spec='${libname}${release}${shared_ext}$major'
18332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18333 shlibpath_var=LD_LIBRARY_PATH
18334 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18335 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18336 ;;
18337
18338solaris*)
18339 version_type=linux
18340 need_lib_prefix=no
18341 need_version=no
18342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18343 soname_spec='${libname}${release}${shared_ext}$major'
18344 shlibpath_var=LD_LIBRARY_PATH
18345 shlibpath_overrides_runpath=yes
18346 hardcode_into_libs=yes
18347 # ldd complains unless libraries are executable
18348 postinstall_cmds='chmod +x $lib'
18349 ;;
18350
18351sunos4*)
18352 version_type=sunos
18353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18354 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18355 shlibpath_var=LD_LIBRARY_PATH
18356 shlibpath_overrides_runpath=yes
18357 if test "$with_gnu_ld" = yes; then
18358 need_lib_prefix=no
18359 fi
18360 need_version=yes
18361 ;;
18362
18363sysv4 | sysv4.3*)
18364 version_type=linux
18365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18366 soname_spec='${libname}${release}${shared_ext}$major'
18367 shlibpath_var=LD_LIBRARY_PATH
18368 case $host_vendor in
18369 sni)
18370 shlibpath_overrides_runpath=no
18371 need_lib_prefix=no
18372 export_dynamic_flag_spec='${wl}-Blargedynsym'
18373 runpath_var=LD_RUN_PATH
18374 ;;
18375 siemens)
18376 need_lib_prefix=no
18377 ;;
18378 motorola)
18379 need_lib_prefix=no
18380 need_version=no
18381 shlibpath_overrides_runpath=no
18382 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18383 ;;
18384 esac
18385 ;;
18386
18387sysv4*MP*)
18388 if test -d /usr/nec ;then
18389 version_type=linux
18390 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18391 soname_spec='$libname${shared_ext}.$major'
18392 shlibpath_var=LD_LIBRARY_PATH
18393 fi
18394 ;;
18395
18396sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18397 version_type=freebsd-elf
18398 need_lib_prefix=no
18399 need_version=no
18400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18401 soname_spec='${libname}${release}${shared_ext}$major'
18402 shlibpath_var=LD_LIBRARY_PATH
18403 hardcode_into_libs=yes
18404 if test "$with_gnu_ld" = yes; then
18405 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18406 shlibpath_overrides_runpath=no
18407 else
18408 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18409 shlibpath_overrides_runpath=yes
18410 case $host_os in
18411 sco3.2v5*)
18412 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18413 ;;
18414 esac
18415 fi
18416 sys_lib_dlsearch_path_spec='/usr/lib'
18417 ;;
18418
18419uts4*)
18420 version_type=linux
18421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18422 soname_spec='${libname}${release}${shared_ext}$major'
18423 shlibpath_var=LD_LIBRARY_PATH
18424 ;;
18425
18426*)
18427 dynamic_linker=no
18428 ;;
18429esac
64ff59ba 18430{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18431echo "${ECHO_T}$dynamic_linker" >&6; }
d9898ee8 18432test "$dynamic_linker" = no && can_build_shared=no
18433
18434variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18435if test "$GCC" = yes; then
18436 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18437fi
18438
64ff59ba 18439{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18440echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
d9898ee8 18441hardcode_action_GCJ=
18442if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18443 test -n "$runpath_var_GCJ" || \
18444 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18445
18446 # We can hardcode non-existant directories.
18447 if test "$hardcode_direct_GCJ" != no &&
18448 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18449 # have to relink, otherwise we might link with an installed library
18450 # when we should be linking with a yet-to-be-installed one
18451 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18452 test "$hardcode_minus_L_GCJ" != no; then
18453 # Linking always hardcodes the temporary library directory.
18454 hardcode_action_GCJ=relink
18455 else
18456 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18457 hardcode_action_GCJ=immediate
18458 fi
18459else
18460 # We cannot hardcode anything, or else we can only hardcode existing
18461 # directories.
18462 hardcode_action_GCJ=unsupported
18463fi
64ff59ba 18464{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18465echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
d9898ee8 18466
18467if test "$hardcode_action_GCJ" = relink; then
18468 # Fast installation is not supported
18469 enable_fast_install=no
18470elif test "$shlibpath_overrides_runpath" = yes ||
18471 test "$enable_shared" = no; then
18472 # Fast installation is not necessary
18473 enable_fast_install=needless
18474fi
18475
18476
18477# The else clause should only fire when bootstrapping the
18478# libtool distribution, otherwise you forgot to ship ltmain.sh
18479# with your package, and you will get complaints that there are
18480# no rules to generate ltmain.sh.
18481if test -f "$ltmain"; then
18482 # See if we are running on zsh, and set the options which allow our commands through
18483 # without removal of \ escapes.
18484 if test -n "${ZSH_VERSION+set}" ; then
18485 setopt NO_GLOB_SUBST
18486 fi
18487 # Now quote all the things that may contain metacharacters while being
18488 # careful not to overquote the AC_SUBSTed values. We take copies of the
18489 # variables and quote the copies for generation of the libtool script.
18490 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18491 SED SHELL STRIP \
18492 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18493 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18494 deplibs_check_method reload_flag reload_cmds need_locks \
18495 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18496 lt_cv_sys_global_symbol_to_c_name_address \
18497 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18498 old_postinstall_cmds old_postuninstall_cmds \
18499 compiler_GCJ \
18500 CC_GCJ \
18501 LD_GCJ \
18502 lt_prog_compiler_wl_GCJ \
18503 lt_prog_compiler_pic_GCJ \
18504 lt_prog_compiler_static_GCJ \
18505 lt_prog_compiler_no_builtin_flag_GCJ \
18506 export_dynamic_flag_spec_GCJ \
18507 thread_safe_flag_spec_GCJ \
18508 whole_archive_flag_spec_GCJ \
18509 enable_shared_with_static_runtimes_GCJ \
18510 old_archive_cmds_GCJ \
18511 old_archive_from_new_cmds_GCJ \
18512 predep_objects_GCJ \
18513 postdep_objects_GCJ \
18514 predeps_GCJ \
18515 postdeps_GCJ \
18516 compiler_lib_search_path_GCJ \
18517 archive_cmds_GCJ \
18518 archive_expsym_cmds_GCJ \
18519 postinstall_cmds_GCJ \
18520 postuninstall_cmds_GCJ \
18521 old_archive_from_expsyms_cmds_GCJ \
18522 allow_undefined_flag_GCJ \
18523 no_undefined_flag_GCJ \
18524 export_symbols_cmds_GCJ \
18525 hardcode_libdir_flag_spec_GCJ \
18526 hardcode_libdir_flag_spec_ld_GCJ \
18527 hardcode_libdir_separator_GCJ \
18528 hardcode_automatic_GCJ \
18529 module_cmds_GCJ \
18530 module_expsym_cmds_GCJ \
18531 lt_cv_prog_compiler_c_o_GCJ \
18532 exclude_expsyms_GCJ \
18533 include_expsyms_GCJ; do
18534
18535 case $var in
18536 old_archive_cmds_GCJ | \
18537 old_archive_from_new_cmds_GCJ | \
18538 archive_cmds_GCJ | \
18539 archive_expsym_cmds_GCJ | \
18540 module_cmds_GCJ | \
18541 module_expsym_cmds_GCJ | \
18542 old_archive_from_expsyms_cmds_GCJ | \
18543 export_symbols_cmds_GCJ | \
18544 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18545 postinstall_cmds | postuninstall_cmds | \
18546 old_postinstall_cmds | old_postuninstall_cmds | \
18547 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18548 # Double-quote double-evaled strings.
18549 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18550 ;;
18551 *)
18552 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18553 ;;
18554 esac
18555 done
18556
18557 case $lt_echo in
18558 *'\$0 --fallback-echo"')
18559 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18560 ;;
18561 esac
18562
18563cfgfile="$ofile"
18564
18565 cat <<__EOF__ >> "$cfgfile"
18566# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18567
18568# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18569
18570# Shell to use when invoking shell scripts.
18571SHELL=$lt_SHELL
18572
18573# Whether or not to build shared libraries.
18574build_libtool_libs=$enable_shared
18575
18576# Whether or not to build static libraries.
18577build_old_libs=$enable_static
18578
18579# Whether or not to add -lc for building shared libraries.
18580build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18581
18582# Whether or not to disallow shared libs when runtime libs are static
18583allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18584
18585# Whether or not to optimize for fast installation.
18586fast_install=$enable_fast_install
18587
18588# The host system.
18589host_alias=$host_alias
18590host=$host
18591host_os=$host_os
18592
18593# The build system.
18594build_alias=$build_alias
18595build=$build
18596build_os=$build_os
18597
18598# An echo program that does not interpret backslashes.
18599echo=$lt_echo
18600
18601# The archiver.
18602AR=$lt_AR
18603AR_FLAGS=$lt_AR_FLAGS
18604
18605# A C compiler.
18606LTCC=$lt_LTCC
18607
18608# LTCC compiler flags.
18609LTCFLAGS=$lt_LTCFLAGS
18610
18611# A language-specific compiler.
18612CC=$lt_compiler_GCJ
18613
18614# Is the compiler the GNU C compiler?
18615with_gcc=$GCC_GCJ
18616
d9898ee8 18617# An ERE matcher.
18618EGREP=$lt_EGREP
18619
18620# The linker used to build libraries.
18621LD=$lt_LD_GCJ
18622
18623# Whether we need hard or soft links.
18624LN_S=$lt_LN_S
18625
18626# A BSD-compatible nm program.
18627NM=$lt_NM
18628
18629# A symbol stripping program
18630STRIP=$lt_STRIP
18631
18632# Used to examine libraries when file_magic_cmd begins "file"
18633MAGIC_CMD=$MAGIC_CMD
18634
18635# Used on cygwin: DLL creation program.
18636DLLTOOL="$DLLTOOL"
18637
18638# Used on cygwin: object dumper.
18639OBJDUMP="$OBJDUMP"
18640
18641# Used on cygwin: assembler.
18642AS="$AS"
18643
18644# The name of the directory that contains temporary libtool files.
18645objdir=$objdir
18646
18647# How to create reloadable object files.
18648reload_flag=$lt_reload_flag
18649reload_cmds=$lt_reload_cmds
18650
18651# How to pass a linker flag through the compiler.
18652wl=$lt_lt_prog_compiler_wl_GCJ
18653
18654# Object file suffix (normally "o").
18655objext="$ac_objext"
18656
18657# Old archive suffix (normally "a").
18658libext="$libext"
18659
18660# Shared library suffix (normally ".so").
18661shrext_cmds='$shrext_cmds'
18662
18663# Executable file suffix (normally "").
18664exeext="$exeext"
18665
18666# Additional compiler flags for building library objects.
18667pic_flag=$lt_lt_prog_compiler_pic_GCJ
18668pic_mode=$pic_mode
18669
18670# What is the maximum length of a command?
18671max_cmd_len=$lt_cv_sys_max_cmd_len
18672
18673# Does compiler simultaneously support -c and -o options?
18674compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18675
18676# Must we lock files when doing compilation?
18677need_locks=$lt_need_locks
18678
18679# Do we need the lib prefix for modules?
18680need_lib_prefix=$need_lib_prefix
18681
18682# Do we need a version for libraries?
18683need_version=$need_version
18684
18685# Whether dlopen is supported.
18686dlopen_support=$enable_dlopen
18687
18688# Whether dlopen of programs is supported.
18689dlopen_self=$enable_dlopen_self
18690
18691# Whether dlopen of statically linked programs is supported.
18692dlopen_self_static=$enable_dlopen_self_static
18693
18694# Compiler flag to prevent dynamic linking.
18695link_static_flag=$lt_lt_prog_compiler_static_GCJ
18696
18697# Compiler flag to turn off builtin functions.
18698no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18699
18700# Compiler flag to allow reflexive dlopens.
18701export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18702
18703# Compiler flag to generate shared objects directly from archives.
18704whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18705
18706# Compiler flag to generate thread-safe objects.
18707thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18708
18709# Library versioning type.
18710version_type=$version_type
18711
18712# Format of library name prefix.
18713libname_spec=$lt_libname_spec
18714
18715# List of archive names. First name is the real one, the rest are links.
18716# The last name is the one that the linker finds with -lNAME.
18717library_names_spec=$lt_library_names_spec
18718
18719# The coded name of the library, if different from the real name.
18720soname_spec=$lt_soname_spec
18721
18722# Commands used to build and install an old-style archive.
18723RANLIB=$lt_RANLIB
18724old_archive_cmds=$lt_old_archive_cmds_GCJ
18725old_postinstall_cmds=$lt_old_postinstall_cmds
18726old_postuninstall_cmds=$lt_old_postuninstall_cmds
18727
18728# Create an old-style archive from a shared archive.
18729old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18730
18731# Create a temporary old-style archive to link instead of a shared archive.
18732old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18733
18734# Commands used to build and install a shared archive.
18735archive_cmds=$lt_archive_cmds_GCJ
18736archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18737postinstall_cmds=$lt_postinstall_cmds
18738postuninstall_cmds=$lt_postuninstall_cmds
18739
18740# Commands used to build a loadable module (assumed same as above if empty)
18741module_cmds=$lt_module_cmds_GCJ
18742module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18743
18744# Commands to strip libraries.
18745old_striplib=$lt_old_striplib
18746striplib=$lt_striplib
18747
18748# Dependencies to place before the objects being linked to create a
18749# shared library.
64ff59ba 18750predep_objects=$lt_predep_objects_GCJ
d9898ee8 18751
18752# Dependencies to place after the objects being linked to create a
18753# shared library.
64ff59ba 18754postdep_objects=$lt_postdep_objects_GCJ
d9898ee8 18755
18756# Dependencies to place before the objects being linked to create a
18757# shared library.
18758predeps=$lt_predeps_GCJ
18759
18760# Dependencies to place after the objects being linked to create a
18761# shared library.
18762postdeps=$lt_postdeps_GCJ
18763
18764# The library search path used internally by the compiler when linking
18765# a shared library.
64ff59ba 18766compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
d9898ee8 18767
18768# Method to check whether dependent libraries are shared objects.
18769deplibs_check_method=$lt_deplibs_check_method
18770
18771# Command to use when deplibs_check_method == file_magic.
18772file_magic_cmd=$lt_file_magic_cmd
18773
18774# Flag that allows shared libraries with undefined symbols to be built.
18775allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18776
18777# Flag that forces no undefined symbols.
18778no_undefined_flag=$lt_no_undefined_flag_GCJ
18779
18780# Commands used to finish a libtool library installation in a directory.
18781finish_cmds=$lt_finish_cmds
18782
18783# Same as above, but a single script fragment to be evaled but not shown.
18784finish_eval=$lt_finish_eval
18785
18786# Take the output of nm and produce a listing of raw symbols and C names.
18787global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18788
18789# Transform the output of nm in a proper C declaration
18790global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18791
18792# Transform the output of nm in a C name address pair
18793global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18794
18795# This is the shared library runtime path variable.
18796runpath_var=$runpath_var
18797
18798# This is the shared library path variable.
18799shlibpath_var=$shlibpath_var
18800
18801# Is shlibpath searched before the hard-coded library search path?
18802shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18803
18804# How to hardcode a shared library path into an executable.
18805hardcode_action=$hardcode_action_GCJ
18806
18807# Whether we should hardcode library paths into libraries.
18808hardcode_into_libs=$hardcode_into_libs
18809
18810# Flag to hardcode \$libdir into a binary during linking.
18811# This must work even if \$libdir does not exist.
18812hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18813
18814# If ld is used when linking, flag to hardcode \$libdir into
18815# a binary during linking. This must work even if \$libdir does
18816# not exist.
18817hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18818
18819# Whether we need a single -rpath flag with a separated argument.
18820hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18821
18822# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18823# resulting binary.
18824hardcode_direct=$hardcode_direct_GCJ
18825
18826# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18827# resulting binary.
18828hardcode_minus_L=$hardcode_minus_L_GCJ
18829
18830# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18831# the resulting binary.
18832hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18833
18834# Set to yes if building a shared library automatically hardcodes DIR into the library
18835# and all subsequent libraries and executables linked against it.
18836hardcode_automatic=$hardcode_automatic_GCJ
18837
18838# Variables whose values should be saved in libtool wrapper scripts and
18839# restored at relink time.
18840variables_saved_for_relink="$variables_saved_for_relink"
18841
18842# Whether libtool must link a program against all its dependency libraries.
18843link_all_deplibs=$link_all_deplibs_GCJ
18844
18845# Compile-time system search path for libraries
64ff59ba 18846sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
d9898ee8 18847
18848# Run-time system search path for libraries
18849sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18850
18851# Fix the shell variable \$srcfile for the compiler.
18852fix_srcfile_path="$fix_srcfile_path_GCJ"
18853
18854# Set to yes if exported symbols are required.
18855always_export_symbols=$always_export_symbols_GCJ
18856
18857# The commands to list exported symbols.
18858export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18859
18860# The commands to extract the exported symbol list from a shared archive.
18861extract_expsyms_cmds=$lt_extract_expsyms_cmds
18862
18863# Symbols that should not be listed in the preloaded symbols.
18864exclude_expsyms=$lt_exclude_expsyms_GCJ
18865
18866# Symbols that must always be exported.
18867include_expsyms=$lt_include_expsyms_GCJ
18868
18869# ### END LIBTOOL TAG CONFIG: $tagname
18870
18871__EOF__
18872
18873
18874else
18875 # If there is no Makefile yet, we rely on a make rule to execute
18876 # `config.status --recheck' to rerun these tests and create the
18877 # libtool script then.
18878 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18879 if test -f "$ltmain_in"; then
18880 test -f Makefile && make "$ltmain"
18881 fi
18882fi
18883
18884
18885ac_ext=c
18886ac_cpp='$CPP $CPPFLAGS'
18887ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18888ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18889ac_compiler_gnu=$ac_cv_c_compiler_gnu
18890
18891CC="$lt_save_CC"
18892
18893 else
18894 tagname=""
18895 fi
18896 ;;
18897
18898 RC)
18899
18900
d9898ee8 18901# Source file extension for RC test sources.
18902ac_ext=rc
18903
18904# Object file extension for compiled RC test sources.
18905objext=o
18906objext_RC=$objext
18907
18908# Code to be used in simple compile tests
18909lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18910
18911# Code to be used in simple link tests
18912lt_simple_link_test_code="$lt_simple_compile_test_code"
18913
18914# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18915
18916# If no C compiler was specified, use CC.
18917LTCC=${LTCC-"$CC"}
18918
18919# If no C compiler flags were specified, use CFLAGS.
18920LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18921
18922# Allow CC to be a program name with arguments.
18923compiler=$CC
18924
18925
18926# save warnings/boilerplate of simple test code
18927ac_outfile=conftest.$ac_objext
18928printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18929eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18930_lt_compiler_boilerplate=`cat conftest.err`
18931$rm conftest*
18932
18933ac_outfile=conftest.$ac_objext
18934printf "$lt_simple_link_test_code" >conftest.$ac_ext
18935eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18936_lt_linker_boilerplate=`cat conftest.err`
18937$rm conftest*
18938
18939
18940# Allow CC to be a program name with arguments.
18941lt_save_CC="$CC"
18942CC=${RC-"windres"}
18943compiler=$CC
18944compiler_RC=$CC
18945for cc_temp in $compiler""; do
18946 case $cc_temp in
18947 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18948 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18949 \-*) ;;
18950 *) break;;
18951 esac
18952done
18953cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18954
18955lt_cv_prog_compiler_c_o_RC=yes
18956
18957# The else clause should only fire when bootstrapping the
18958# libtool distribution, otherwise you forgot to ship ltmain.sh
18959# with your package, and you will get complaints that there are
18960# no rules to generate ltmain.sh.
18961if test -f "$ltmain"; then
18962 # See if we are running on zsh, and set the options which allow our commands through
18963 # without removal of \ escapes.
18964 if test -n "${ZSH_VERSION+set}" ; then
18965 setopt NO_GLOB_SUBST
18966 fi
18967 # Now quote all the things that may contain metacharacters while being
18968 # careful not to overquote the AC_SUBSTed values. We take copies of the
18969 # variables and quote the copies for generation of the libtool script.
18970 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18971 SED SHELL STRIP \
18972 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18973 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18974 deplibs_check_method reload_flag reload_cmds need_locks \
18975 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18976 lt_cv_sys_global_symbol_to_c_name_address \
18977 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18978 old_postinstall_cmds old_postuninstall_cmds \
18979 compiler_RC \
18980 CC_RC \
18981 LD_RC \
18982 lt_prog_compiler_wl_RC \
18983 lt_prog_compiler_pic_RC \
18984 lt_prog_compiler_static_RC \
18985 lt_prog_compiler_no_builtin_flag_RC \
18986 export_dynamic_flag_spec_RC \
18987 thread_safe_flag_spec_RC \
18988 whole_archive_flag_spec_RC \
18989 enable_shared_with_static_runtimes_RC \
18990 old_archive_cmds_RC \
18991 old_archive_from_new_cmds_RC \
18992 predep_objects_RC \
18993 postdep_objects_RC \
18994 predeps_RC \
18995 postdeps_RC \
18996 compiler_lib_search_path_RC \
18997 archive_cmds_RC \
18998 archive_expsym_cmds_RC \
18999 postinstall_cmds_RC \
19000 postuninstall_cmds_RC \
19001 old_archive_from_expsyms_cmds_RC \
19002 allow_undefined_flag_RC \
19003 no_undefined_flag_RC \
19004 export_symbols_cmds_RC \
19005 hardcode_libdir_flag_spec_RC \
19006 hardcode_libdir_flag_spec_ld_RC \
19007 hardcode_libdir_separator_RC \
19008 hardcode_automatic_RC \
19009 module_cmds_RC \
19010 module_expsym_cmds_RC \
19011 lt_cv_prog_compiler_c_o_RC \
19012 exclude_expsyms_RC \
19013 include_expsyms_RC; do
19014
19015 case $var in
19016 old_archive_cmds_RC | \
19017 old_archive_from_new_cmds_RC | \
19018 archive_cmds_RC | \
19019 archive_expsym_cmds_RC | \
19020 module_cmds_RC | \
19021 module_expsym_cmds_RC | \
19022 old_archive_from_expsyms_cmds_RC | \
19023 export_symbols_cmds_RC | \
19024 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19025 postinstall_cmds | postuninstall_cmds | \
19026 old_postinstall_cmds | old_postuninstall_cmds | \
19027 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19028 # Double-quote double-evaled strings.
19029 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19030 ;;
19031 *)
19032 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19033 ;;
19034 esac
19035 done
19036
19037 case $lt_echo in
19038 *'\$0 --fallback-echo"')
19039 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19040 ;;
19041 esac
19042
19043cfgfile="$ofile"
19044
19045 cat <<__EOF__ >> "$cfgfile"
19046# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19047
19048# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19049
19050# Shell to use when invoking shell scripts.
19051SHELL=$lt_SHELL
19052
19053# Whether or not to build shared libraries.
19054build_libtool_libs=$enable_shared
19055
19056# Whether or not to build static libraries.
19057build_old_libs=$enable_static
19058
19059# Whether or not to add -lc for building shared libraries.
19060build_libtool_need_lc=$archive_cmds_need_lc_RC
19061
19062# Whether or not to disallow shared libs when runtime libs are static
19063allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19064
19065# Whether or not to optimize for fast installation.
19066fast_install=$enable_fast_install
19067
19068# The host system.
19069host_alias=$host_alias
19070host=$host
19071host_os=$host_os
19072
19073# The build system.
19074build_alias=$build_alias
19075build=$build
19076build_os=$build_os
19077
19078# An echo program that does not interpret backslashes.
19079echo=$lt_echo
19080
19081# The archiver.
19082AR=$lt_AR
19083AR_FLAGS=$lt_AR_FLAGS
19084
19085# A C compiler.
19086LTCC=$lt_LTCC
19087
19088# LTCC compiler flags.
19089LTCFLAGS=$lt_LTCFLAGS
19090
19091# A language-specific compiler.
19092CC=$lt_compiler_RC
19093
19094# Is the compiler the GNU C compiler?
19095with_gcc=$GCC_RC
19096
d9898ee8 19097# An ERE matcher.
19098EGREP=$lt_EGREP
19099
19100# The linker used to build libraries.
19101LD=$lt_LD_RC
19102
19103# Whether we need hard or soft links.
19104LN_S=$lt_LN_S
19105
19106# A BSD-compatible nm program.
19107NM=$lt_NM
19108
19109# A symbol stripping program
19110STRIP=$lt_STRIP
19111
19112# Used to examine libraries when file_magic_cmd begins "file"
19113MAGIC_CMD=$MAGIC_CMD
19114
19115# Used on cygwin: DLL creation program.
19116DLLTOOL="$DLLTOOL"
19117
19118# Used on cygwin: object dumper.
19119OBJDUMP="$OBJDUMP"
19120
19121# Used on cygwin: assembler.
19122AS="$AS"
19123
19124# The name of the directory that contains temporary libtool files.
19125objdir=$objdir
19126
19127# How to create reloadable object files.
19128reload_flag=$lt_reload_flag
19129reload_cmds=$lt_reload_cmds
19130
19131# How to pass a linker flag through the compiler.
19132wl=$lt_lt_prog_compiler_wl_RC
19133
19134# Object file suffix (normally "o").
19135objext="$ac_objext"
19136
19137# Old archive suffix (normally "a").
19138libext="$libext"
19139
19140# Shared library suffix (normally ".so").
19141shrext_cmds='$shrext_cmds'
19142
19143# Executable file suffix (normally "").
19144exeext="$exeext"
19145
19146# Additional compiler flags for building library objects.
19147pic_flag=$lt_lt_prog_compiler_pic_RC
19148pic_mode=$pic_mode
19149
19150# What is the maximum length of a command?
19151max_cmd_len=$lt_cv_sys_max_cmd_len
19152
19153# Does compiler simultaneously support -c and -o options?
19154compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19155
19156# Must we lock files when doing compilation?
19157need_locks=$lt_need_locks
19158
19159# Do we need the lib prefix for modules?
19160need_lib_prefix=$need_lib_prefix
19161
19162# Do we need a version for libraries?
19163need_version=$need_version
19164
19165# Whether dlopen is supported.
19166dlopen_support=$enable_dlopen
19167
19168# Whether dlopen of programs is supported.
19169dlopen_self=$enable_dlopen_self
19170
19171# Whether dlopen of statically linked programs is supported.
19172dlopen_self_static=$enable_dlopen_self_static
19173
19174# Compiler flag to prevent dynamic linking.
19175link_static_flag=$lt_lt_prog_compiler_static_RC
19176
19177# Compiler flag to turn off builtin functions.
19178no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19179
19180# Compiler flag to allow reflexive dlopens.
19181export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19182
19183# Compiler flag to generate shared objects directly from archives.
19184whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19185
19186# Compiler flag to generate thread-safe objects.
19187thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19188
19189# Library versioning type.
19190version_type=$version_type
19191
19192# Format of library name prefix.
19193libname_spec=$lt_libname_spec
19194
19195# List of archive names. First name is the real one, the rest are links.
19196# The last name is the one that the linker finds with -lNAME.
19197library_names_spec=$lt_library_names_spec
19198
19199# The coded name of the library, if different from the real name.
19200soname_spec=$lt_soname_spec
19201
19202# Commands used to build and install an old-style archive.
19203RANLIB=$lt_RANLIB
19204old_archive_cmds=$lt_old_archive_cmds_RC
19205old_postinstall_cmds=$lt_old_postinstall_cmds
19206old_postuninstall_cmds=$lt_old_postuninstall_cmds
19207
19208# Create an old-style archive from a shared archive.
19209old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19210
19211# Create a temporary old-style archive to link instead of a shared archive.
19212old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19213
19214# Commands used to build and install a shared archive.
19215archive_cmds=$lt_archive_cmds_RC
19216archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19217postinstall_cmds=$lt_postinstall_cmds
19218postuninstall_cmds=$lt_postuninstall_cmds
19219
19220# Commands used to build a loadable module (assumed same as above if empty)
19221module_cmds=$lt_module_cmds_RC
19222module_expsym_cmds=$lt_module_expsym_cmds_RC
19223
19224# Commands to strip libraries.
19225old_striplib=$lt_old_striplib
19226striplib=$lt_striplib
19227
19228# Dependencies to place before the objects being linked to create a
19229# shared library.
64ff59ba 19230predep_objects=$lt_predep_objects_RC
d9898ee8 19231
19232# Dependencies to place after the objects being linked to create a
19233# shared library.
64ff59ba 19234postdep_objects=$lt_postdep_objects_RC
d9898ee8 19235
19236# Dependencies to place before the objects being linked to create a
19237# shared library.
19238predeps=$lt_predeps_RC
19239
19240# Dependencies to place after the objects being linked to create a
19241# shared library.
19242postdeps=$lt_postdeps_RC
19243
19244# The library search path used internally by the compiler when linking
19245# a shared library.
64ff59ba 19246compiler_lib_search_path=$lt_compiler_lib_search_path_RC
d9898ee8 19247
19248# Method to check whether dependent libraries are shared objects.
19249deplibs_check_method=$lt_deplibs_check_method
19250
19251# Command to use when deplibs_check_method == file_magic.
19252file_magic_cmd=$lt_file_magic_cmd
19253
19254# Flag that allows shared libraries with undefined symbols to be built.
19255allow_undefined_flag=$lt_allow_undefined_flag_RC
19256
19257# Flag that forces no undefined symbols.
19258no_undefined_flag=$lt_no_undefined_flag_RC
19259
19260# Commands used to finish a libtool library installation in a directory.
19261finish_cmds=$lt_finish_cmds
19262
19263# Same as above, but a single script fragment to be evaled but not shown.
19264finish_eval=$lt_finish_eval
19265
19266# Take the output of nm and produce a listing of raw symbols and C names.
19267global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19268
19269# Transform the output of nm in a proper C declaration
19270global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19271
19272# Transform the output of nm in a C name address pair
19273global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19274
19275# This is the shared library runtime path variable.
19276runpath_var=$runpath_var
19277
19278# This is the shared library path variable.
19279shlibpath_var=$shlibpath_var
19280
19281# Is shlibpath searched before the hard-coded library search path?
19282shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19283
19284# How to hardcode a shared library path into an executable.
19285hardcode_action=$hardcode_action_RC
19286
19287# Whether we should hardcode library paths into libraries.
19288hardcode_into_libs=$hardcode_into_libs
19289
19290# Flag to hardcode \$libdir into a binary during linking.
19291# This must work even if \$libdir does not exist.
19292hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19293
19294# If ld is used when linking, flag to hardcode \$libdir into
19295# a binary during linking. This must work even if \$libdir does
19296# not exist.
19297hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19298
19299# Whether we need a single -rpath flag with a separated argument.
19300hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19301
19302# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19303# resulting binary.
19304hardcode_direct=$hardcode_direct_RC
19305
19306# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19307# resulting binary.
19308hardcode_minus_L=$hardcode_minus_L_RC
19309
19310# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19311# the resulting binary.
19312hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19313
19314# Set to yes if building a shared library automatically hardcodes DIR into the library
19315# and all subsequent libraries and executables linked against it.
19316hardcode_automatic=$hardcode_automatic_RC
19317
19318# Variables whose values should be saved in libtool wrapper scripts and
19319# restored at relink time.
19320variables_saved_for_relink="$variables_saved_for_relink"
19321
19322# Whether libtool must link a program against all its dependency libraries.
19323link_all_deplibs=$link_all_deplibs_RC
19324
19325# Compile-time system search path for libraries
64ff59ba 19326sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
d9898ee8 19327
19328# Run-time system search path for libraries
19329sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19330
19331# Fix the shell variable \$srcfile for the compiler.
19332fix_srcfile_path="$fix_srcfile_path_RC"
19333
19334# Set to yes if exported symbols are required.
19335always_export_symbols=$always_export_symbols_RC
19336
19337# The commands to list exported symbols.
19338export_symbols_cmds=$lt_export_symbols_cmds_RC
19339
19340# The commands to extract the exported symbol list from a shared archive.
19341extract_expsyms_cmds=$lt_extract_expsyms_cmds
19342
19343# Symbols that should not be listed in the preloaded symbols.
19344exclude_expsyms=$lt_exclude_expsyms_RC
19345
19346# Symbols that must always be exported.
19347include_expsyms=$lt_include_expsyms_RC
19348
19349# ### END LIBTOOL TAG CONFIG: $tagname
19350
19351__EOF__
19352
19353
19354else
19355 # If there is no Makefile yet, we rely on a make rule to execute
19356 # `config.status --recheck' to rerun these tests and create the
19357 # libtool script then.
19358 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19359 if test -f "$ltmain_in"; then
19360 test -f Makefile && make "$ltmain"
19361 fi
19362fi
19363
19364
19365ac_ext=c
19366ac_cpp='$CPP $CPPFLAGS'
19367ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19368ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19369ac_compiler_gnu=$ac_cv_c_compiler_gnu
19370
19371CC="$lt_save_CC"
19372
19373 ;;
19374
19375 *)
19376 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19377echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19378 { (exit 1); exit 1; }; }
19379 ;;
19380 esac
19381
19382 # Append the new tag name to the list of available tags.
19383 if test -n "$tagname" ; then
19384 available_tags="$available_tags $tagname"
19385 fi
19386 fi
19387 done
19388 IFS="$lt_save_ifs"
19389
19390 # Now substitute the updated list of available tags.
19391 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19392 mv "${ofile}T" "$ofile"
19393 chmod +x "$ofile"
19394 else
19395 rm -f "${ofile}T"
19396 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19397echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19398 { (exit 1); exit 1; }; }
19399 fi
19400fi
19401
19402
19403
19404# This can be used to rebuild libtool when needed
19405LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19406
19407# Always use our own libtool.
19408LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19409
19410# Prevent multiple expansion
19411
19412
19413
19414
19415
19416
19417
19418
19419
19420
19421
19422
19423
19424
19425
19426
19427
19428
19429
19430
19431
19432if test x$GCC = xyes
19433then
19434 CFLAGS="-Wall $CFLAGS"
19435fi
19436if test x$GXX = xyes
19437then
19438 CXXFLAGS="-Wall $CXXFLAGS"
19439fi
19440
19441CFLAGS="-I$srcdir/.. -I.. $CFLAGS"
19442CXXFLAGS="-I$srcdir/.. -I.. $CXXFLAGS"
19443
19444
19445
64ff59ba 19446# Check whether --with-db was given.
d9898ee8 19447if test "${with_db+set}" = set; then
64ff59ba 19448 withval=$with_db; db="$withval"
d9898ee8 19449else
19450 db=""
64ff59ba 19451fi
19452
d9898ee8 19453
19454. ../dbobj.config
19455
19456makedatprog_target=makedatprog
19457case "$db" in
19458gdbm)
19459 dblibrary=../gdbmobj/libgdbmobj.la
19460 LIBDB=""
19461 ;;
19462db)
19463 dblibrary=../bdbobj/libbdbobj.la
19464 LIBGDBM=""
19465 ;;
19466*)
19467 makedatprog_target=""
19468esac
19469
19470
19471
19472
19473
19474
64ff59ba 19475 if test "$USE_GDBM" = 1; then
d9898ee8 19476 USE_GDBM_TRUE=
19477 USE_GDBM_FALSE='#'
19478else
19479 USE_GDBM_TRUE='#'
19480 USE_GDBM_FALSE=
19481fi
19482
64ff59ba 19483 if test "$USE_DB" = 1; then
d9898ee8 19484 USE_DB_TRUE=
19485 USE_DB_FALSE='#'
19486else
19487 USE_DB_TRUE='#'
19488 USE_DB_FALSE=
19489fi
19490
19491
19492
64ff59ba 19493{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19494echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
d9898ee8 19495if test "${ac_cv_header_stdc+set}" = set; then
19496 echo $ECHO_N "(cached) $ECHO_C" >&6
19497else
19498 cat >conftest.$ac_ext <<_ACEOF
19499/* confdefs.h. */
19500_ACEOF
19501cat confdefs.h >>conftest.$ac_ext
19502cat >>conftest.$ac_ext <<_ACEOF
19503/* end confdefs.h. */
19504#include <stdlib.h>
19505#include <stdarg.h>
19506#include <string.h>
19507#include <float.h>
19508
19509int
19510main ()
19511{
19512
19513 ;
19514 return 0;
19515}
19516_ACEOF
19517rm -f conftest.$ac_objext
64ff59ba 19518if { (ac_try="$ac_compile"
19519case "(($ac_try" in
19520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19521 *) ac_try_echo=$ac_try;;
19522esac
19523eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19524 (eval "$ac_compile") 2>conftest.er1
d9898ee8 19525 ac_status=$?
19526 grep -v '^ *+' conftest.er1 >conftest.err
19527 rm -f conftest.er1
19528 cat conftest.err >&5
19529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 19530 (exit $ac_status); } && {
19531 test -z "$ac_c_werror_flag" ||
19532 test ! -s conftest.err
19533 } && test -s conftest.$ac_objext; then
d9898ee8 19534 ac_cv_header_stdc=yes
19535else
19536 echo "$as_me: failed program was:" >&5
19537sed 's/^/| /' conftest.$ac_ext >&5
19538
64ff59ba 19539 ac_cv_header_stdc=no
d9898ee8 19540fi
64ff59ba 19541
19542rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 19543
19544if test $ac_cv_header_stdc = yes; then
19545 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19546 cat >conftest.$ac_ext <<_ACEOF
19547/* confdefs.h. */
19548_ACEOF
19549cat confdefs.h >>conftest.$ac_ext
19550cat >>conftest.$ac_ext <<_ACEOF
19551/* end confdefs.h. */
19552#include <string.h>
19553
19554_ACEOF
19555if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19556 $EGREP "memchr" >/dev/null 2>&1; then
19557 :
19558else
19559 ac_cv_header_stdc=no
19560fi
19561rm -f conftest*
19562
19563fi
19564
19565if test $ac_cv_header_stdc = yes; then
19566 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19567 cat >conftest.$ac_ext <<_ACEOF
19568/* confdefs.h. */
19569_ACEOF
19570cat confdefs.h >>conftest.$ac_ext
19571cat >>conftest.$ac_ext <<_ACEOF
19572/* end confdefs.h. */
19573#include <stdlib.h>
19574
19575_ACEOF
19576if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19577 $EGREP "free" >/dev/null 2>&1; then
19578 :
19579else
19580 ac_cv_header_stdc=no
19581fi
19582rm -f conftest*
19583
19584fi
19585
19586if test $ac_cv_header_stdc = yes; then
19587 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19588 if test "$cross_compiling" = yes; then
19589 :
19590else
19591 cat >conftest.$ac_ext <<_ACEOF
19592/* confdefs.h. */
19593_ACEOF
19594cat confdefs.h >>conftest.$ac_ext
19595cat >>conftest.$ac_ext <<_ACEOF
19596/* end confdefs.h. */
19597#include <ctype.h>
64ff59ba 19598#include <stdlib.h>
d9898ee8 19599#if ((' ' & 0x0FF) == 0x020)
19600# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19601# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19602#else
19603# define ISLOWER(c) \
19604 (('a' <= (c) && (c) <= 'i') \
19605 || ('j' <= (c) && (c) <= 'r') \
19606 || ('s' <= (c) && (c) <= 'z'))
19607# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19608#endif
19609
19610#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19611int
19612main ()
19613{
19614 int i;
19615 for (i = 0; i < 256; i++)
19616 if (XOR (islower (i), ISLOWER (i))
19617 || toupper (i) != TOUPPER (i))
64ff59ba 19618 return 2;
19619 return 0;
d9898ee8 19620}
19621_ACEOF
19622rm -f conftest$ac_exeext
64ff59ba 19623if { (ac_try="$ac_link"
19624case "(($ac_try" in
19625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19626 *) ac_try_echo=$ac_try;;
19627esac
19628eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19629 (eval "$ac_link") 2>&5
d9898ee8 19630 ac_status=$?
19631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19632 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
64ff59ba 19633 { (case "(($ac_try" in
19634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19635 *) ac_try_echo=$ac_try;;
19636esac
19637eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19638 (eval "$ac_try") 2>&5
d9898ee8 19639 ac_status=$?
19640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19641 (exit $ac_status); }; }; then
19642 :
19643else
19644 echo "$as_me: program exited with status $ac_status" >&5
19645echo "$as_me: failed program was:" >&5
19646sed 's/^/| /' conftest.$ac_ext >&5
19647
19648( exit $ac_status )
19649ac_cv_header_stdc=no
19650fi
64ff59ba 19651rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d9898ee8 19652fi
64ff59ba 19653
19654
d9898ee8 19655fi
19656fi
64ff59ba 19657{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19658echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
d9898ee8 19659if test $ac_cv_header_stdc = yes; then
19660
19661cat >>confdefs.h <<\_ACEOF
19662#define STDC_HEADERS 1
19663_ACEOF
19664
19665fi
19666
19667
19668for ac_header in unistd.h
19669do
19670as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
64ff59ba 19671if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19672 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19673echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19674if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 19675 echo $ECHO_N "(cached) $ECHO_C" >&6
19676fi
64ff59ba 19677ac_res=`eval echo '${'$as_ac_Header'}'`
19678 { echo "$as_me:$LINENO: result: $ac_res" >&5
19679echo "${ECHO_T}$ac_res" >&6; }
d9898ee8 19680else
19681 # Is the header compilable?
64ff59ba 19682{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
19683echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
d9898ee8 19684cat >conftest.$ac_ext <<_ACEOF
19685/* confdefs.h. */
19686_ACEOF
19687cat confdefs.h >>conftest.$ac_ext
19688cat >>conftest.$ac_ext <<_ACEOF
19689/* end confdefs.h. */
19690$ac_includes_default
19691#include <$ac_header>
19692_ACEOF
19693rm -f conftest.$ac_objext
64ff59ba 19694if { (ac_try="$ac_compile"
19695case "(($ac_try" in
19696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19697 *) ac_try_echo=$ac_try;;
19698esac
19699eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19700 (eval "$ac_compile") 2>conftest.er1
d9898ee8 19701 ac_status=$?
19702 grep -v '^ *+' conftest.er1 >conftest.err
19703 rm -f conftest.er1
19704 cat conftest.err >&5
19705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 19706 (exit $ac_status); } && {
19707 test -z "$ac_c_werror_flag" ||
19708 test ! -s conftest.err
19709 } && test -s conftest.$ac_objext; then
d9898ee8 19710 ac_header_compiler=yes
19711else
19712 echo "$as_me: failed program was:" >&5
19713sed 's/^/| /' conftest.$ac_ext >&5
19714
64ff59ba 19715 ac_header_compiler=no
d9898ee8 19716fi
64ff59ba 19717
19718rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19719{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19720echo "${ECHO_T}$ac_header_compiler" >&6; }
d9898ee8 19721
19722# Is the header present?
64ff59ba 19723{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
19724echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
d9898ee8 19725cat >conftest.$ac_ext <<_ACEOF
19726/* confdefs.h. */
19727_ACEOF
19728cat confdefs.h >>conftest.$ac_ext
19729cat >>conftest.$ac_ext <<_ACEOF
19730/* end confdefs.h. */
19731#include <$ac_header>
19732_ACEOF
64ff59ba 19733if { (ac_try="$ac_cpp conftest.$ac_ext"
19734case "(($ac_try" in
19735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19736 *) ac_try_echo=$ac_try;;
19737esac
19738eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19739 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 19740 ac_status=$?
19741 grep -v '^ *+' conftest.er1 >conftest.err
19742 rm -f conftest.er1
19743 cat conftest.err >&5
19744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 19745 (exit $ac_status); } >/dev/null && {
19746 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19747 test ! -s conftest.err
19748 }; then
d9898ee8 19749 ac_header_preproc=yes
19750else
19751 echo "$as_me: failed program was:" >&5
19752sed 's/^/| /' conftest.$ac_ext >&5
19753
19754 ac_header_preproc=no
19755fi
64ff59ba 19756
d9898ee8 19757rm -f conftest.err conftest.$ac_ext
64ff59ba 19758{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19759echo "${ECHO_T}$ac_header_preproc" >&6; }
d9898ee8 19760
19761# So? What about this header?
19762case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19763 yes:no: )
19764 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19765echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19766 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19767echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19768 ac_header_preproc=yes
19769 ;;
19770 no:yes:* )
19771 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19772echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19773 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19774echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19775 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19776echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19777 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19778echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19779 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19780echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19781 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19782echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
64ff59ba 19783 ( cat <<\_ASBOX
d9898ee8 19784## -------------------------------------------------- ##
19785## Report this to courier-users@lists.sourceforge.net ##
19786## -------------------------------------------------- ##
19787_ASBOX
64ff59ba 19788 ) | sed "s/^/$as_me: WARNING: /" >&2
d9898ee8 19789 ;;
19790esac
64ff59ba 19791{ echo "$as_me:$LINENO: checking for $ac_header" >&5
19792echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19793if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 19794 echo $ECHO_N "(cached) $ECHO_C" >&6
19795else
19796 eval "$as_ac_Header=\$ac_header_preproc"
19797fi
64ff59ba 19798ac_res=`eval echo '${'$as_ac_Header'}'`
19799 { echo "$as_me:$LINENO: result: $ac_res" >&5
19800echo "${ECHO_T}$ac_res" >&6; }
d9898ee8 19801
19802fi
19803if test `eval echo '${'$as_ac_Header'}'` = yes; then
19804 cat >>confdefs.h <<_ACEOF
19805#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19806_ACEOF
19807
19808fi
19809
19810done
19811
19812
19813
19814
19815
64ff59ba 19816# Check whether --with-makedatprog was given.
d9898ee8 19817if test "${with_makedatprog+set}" = set; then
64ff59ba 19818 withval=$with_makedatprog; makedatprog="$withval"
d9898ee8 19819else
19820 makedatprog="$bindir/makedatprog"
64ff59ba 19821fi
19822
d9898ee8 19823
19824makedatprogpath="$makedatprog"
19825
19826
64ff59ba 19827ac_config_files="$ac_config_files Makefile makedat"
19828
d9898ee8 19829cat >confcache <<\_ACEOF
19830# This file is a shell script that caches the results of configure
19831# tests run on this system so they can be shared between configure
19832# scripts and configure runs, see configure's option --config-cache.
19833# It is not useful on other systems. If it contains results you don't
19834# want to keep, you may remove or edit it.
19835#
19836# config.status only pays attention to the cache file if you give it
19837# the --recheck option to rerun configure.
19838#
19839# `ac_cv_env_foo' variables (set or unset) will be overridden when
19840# loading this file, other *unset* `ac_cv_foo' will be assigned the
19841# following values.
19842
19843_ACEOF
19844
19845# The following way of writing the cache mishandles newlines in values,
19846# but we know of no workaround that is simple, portable, and efficient.
64ff59ba 19847# So, we kill variables containing newlines.
d9898ee8 19848# Ultrix sh set writes to stderr and can't be redirected directly,
19849# and sets the high bit in the cache file unless we assign to the vars.
64ff59ba 19850(
19851 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19852 eval ac_val=\$$ac_var
19853 case $ac_val in #(
19854 *${as_nl}*)
19855 case $ac_var in #(
19856 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
19857echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
19858 esac
19859 case $ac_var in #(
19860 _ | IFS | as_nl) ;; #(
19861 *) $as_unset $ac_var ;;
19862 esac ;;
19863 esac
19864 done
19865
d9898ee8 19866 (set) 2>&1 |
64ff59ba 19867 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19868 *${as_nl}ac_space=\ *)
d9898ee8 19869 # `set' does not quote correctly, so add quotes (double-quote
19870 # substitution turns \\\\ into \\, and sed turns \\ into \).
19871 sed -n \
19872 "s/'/'\\\\''/g;
19873 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
64ff59ba 19874 ;; #(
d9898ee8 19875 *)
19876 # `set' quotes correctly as required by POSIX, so do not add quotes.
64ff59ba 19877 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
d9898ee8 19878 ;;
64ff59ba 19879 esac |
19880 sort
19881) |
d9898ee8 19882 sed '
64ff59ba 19883 /^ac_cv_env_/b end
d9898ee8 19884 t clear
64ff59ba 19885 :clear
d9898ee8 19886 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19887 t end
64ff59ba 19888 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19889 :end' >>confcache
19890if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19891 if test -w "$cache_file"; then
19892 test "x$cache_file" != "x/dev/null" &&
19893 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
19894echo "$as_me: updating cache $cache_file" >&6;}
d9898ee8 19895 cat confcache >$cache_file
19896 else
64ff59ba 19897 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
19898echo "$as_me: not updating unwritable cache $cache_file" >&6;}
d9898ee8 19899 fi
19900fi
19901rm -f confcache
19902
19903test "x$prefix" = xNONE && prefix=$ac_default_prefix
19904# Let make expand exec_prefix.
19905test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19906
d9898ee8 19907DEFS=-DHAVE_CONFIG_H
19908
19909ac_libobjs=
19910ac_ltlibobjs=
19911for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19912 # 1. Remove the extension, and $U if already installed.
64ff59ba 19913 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19914 ac_i=`echo "$ac_i" | sed "$ac_script"`
19915 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19916 # will be set to the directory where LIBOBJS objects are built.
19917 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19918 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
d9898ee8 19919done
19920LIBOBJS=$ac_libobjs
19921
19922LTLIBOBJS=$ac_ltlibobjs
19923
19924
19925if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19926 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
19927Usually this means the macro was only invoked conditionally." >&5
19928echo "$as_me: error: conditional \"AMDEP\" was never defined.
19929Usually this means the macro was only invoked conditionally." >&2;}
19930 { (exit 1); exit 1; }; }
19931fi
19932if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19933 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
19934Usually this means the macro was only invoked conditionally." >&5
19935echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
19936Usually this means the macro was only invoked conditionally." >&2;}
19937 { (exit 1); exit 1; }; }
19938fi
19939if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19940 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
19941Usually this means the macro was only invoked conditionally." >&5
19942echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
19943Usually this means the macro was only invoked conditionally." >&2;}
19944 { (exit 1); exit 1; }; }
19945fi
19946if test -z "${USE_GDBM_TRUE}" && test -z "${USE_GDBM_FALSE}"; then
19947 { { echo "$as_me:$LINENO: error: conditional \"USE_GDBM\" was never defined.
19948Usually this means the macro was only invoked conditionally." >&5
19949echo "$as_me: error: conditional \"USE_GDBM\" was never defined.
19950Usually this means the macro was only invoked conditionally." >&2;}
19951 { (exit 1); exit 1; }; }
19952fi
19953if test -z "${USE_DB_TRUE}" && test -z "${USE_DB_FALSE}"; then
19954 { { echo "$as_me:$LINENO: error: conditional \"USE_DB\" was never defined.
19955Usually this means the macro was only invoked conditionally." >&5
19956echo "$as_me: error: conditional \"USE_DB\" was never defined.
19957Usually this means the macro was only invoked conditionally." >&2;}
19958 { (exit 1); exit 1; }; }
19959fi
19960
19961: ${CONFIG_STATUS=./config.status}
19962ac_clean_files_save=$ac_clean_files
19963ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19964{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19965echo "$as_me: creating $CONFIG_STATUS" >&6;}
19966cat >$CONFIG_STATUS <<_ACEOF
19967#! $SHELL
19968# Generated by $as_me.
19969# Run this file to recreate the current configuration.
19970# Compiler output produced by configure, useful for debugging
19971# configure, is in config.log if it exists.
19972
19973debug=false
19974ac_cs_recheck=false
19975ac_cs_silent=false
19976SHELL=\${CONFIG_SHELL-$SHELL}
19977_ACEOF
19978
19979cat >>$CONFIG_STATUS <<\_ACEOF
19980## --------------------- ##
19981## M4sh Initialization. ##
19982## --------------------- ##
19983
64ff59ba 19984# Be more Bourne compatible
19985DUALCASE=1; export DUALCASE # for MKS sh
d9898ee8 19986if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19987 emulate sh
19988 NULLCMD=:
19989 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19990 # is contrary to our usage. Disable this feature.
19991 alias -g '${1+"$@"}'='"$@"'
64ff59ba 19992 setopt NO_GLOB_SUBST
19993else
19994 case `(set -o) 2>/dev/null` in
19995 *posix*) set -o posix ;;
19996esac
19997
19998fi
19999
20000
20001
20002
20003# PATH needs CR
20004# Avoid depending upon Character Ranges.
20005as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20006as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20007as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20008as_cr_digits='0123456789'
20009as_cr_alnum=$as_cr_Letters$as_cr_digits
20010
20011# The user is always right.
20012if test "${PATH_SEPARATOR+set}" != set; then
20013 echo "#! /bin/sh" >conf$$.sh
20014 echo "exit 0" >>conf$$.sh
20015 chmod +x conf$$.sh
20016 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20017 PATH_SEPARATOR=';'
20018 else
20019 PATH_SEPARATOR=:
20020 fi
20021 rm -f conf$$.sh
d9898ee8 20022fi
d9898ee8 20023
20024# Support unset when possible.
20025if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20026 as_unset=unset
20027else
20028 as_unset=false
20029fi
20030
20031
64ff59ba 20032# IFS
20033# We need space, tab and new line, in precisely that order. Quoting is
20034# there to prevent editors from complaining about space-tab.
20035# (If _AS_PATH_WALK were called with IFS unset, it would disable word
20036# splitting by setting IFS to empty value.)
20037as_nl='
20038'
20039IFS=" "" $as_nl"
20040
20041# Find who we are. Look in the path if we contain no directory separator.
20042case $0 in
20043 *[\\/]* ) as_myself=$0 ;;
20044 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20045for as_dir in $PATH
20046do
20047 IFS=$as_save_IFS
20048 test -z "$as_dir" && as_dir=.
20049 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20050done
20051IFS=$as_save_IFS
20052
20053 ;;
20054esac
20055# We did not find ourselves, most probably we were run as `sh COMMAND'
20056# in which case we are not to be found in the path.
20057if test "x$as_myself" = x; then
20058 as_myself=$0
20059fi
20060if test ! -f "$as_myself"; then
20061 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20062 { (exit 1); exit 1; }
20063fi
20064
d9898ee8 20065# Work around bugs in pre-3.0 UWIN ksh.
64ff59ba 20066for as_var in ENV MAIL MAILPATH
20067do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20068done
d9898ee8 20069PS1='$ '
20070PS2='> '
20071PS4='+ '
20072
20073# NLS nuisances.
20074for as_var in \
20075 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20076 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20077 LC_TELEPHONE LC_TIME
20078do
20079 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20080 eval $as_var=C; export $as_var
20081 else
64ff59ba 20082 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
d9898ee8 20083 fi
20084done
20085
20086# Required to use basename.
64ff59ba 20087if expr a : '\(a\)' >/dev/null 2>&1 &&
20088 test "X`expr 00001 : '.*\(...\)'`" = X001; then
d9898ee8 20089 as_expr=expr
20090else
20091 as_expr=false
20092fi
20093
64ff59ba 20094if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
d9898ee8 20095 as_basename=basename
20096else
20097 as_basename=false
20098fi
20099
20100
20101# Name of the executable.
64ff59ba 20102as_me=`$as_basename -- "$0" ||
d9898ee8 20103$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20104 X"$0" : 'X\(//\)$' \| \
64ff59ba 20105 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
d9898ee8 20106echo X/"$0" |
64ff59ba 20107 sed '/^.*\/\([^/][^/]*\)\/*$/{
20108 s//\1/
20109 q
20110 }
20111 /^X\/\(\/\/\)$/{
20112 s//\1/
20113 q
20114 }
20115 /^X\/\(\/\).*/{
20116 s//\1/
20117 q
20118 }
20119 s/.*/./; q'`
d9898ee8 20120
64ff59ba 20121# CDPATH.
20122$as_unset CDPATH
d9898ee8 20123
20124
d9898ee8 20125
d9898ee8 20126 as_lineno_1=$LINENO
20127 as_lineno_2=$LINENO
d9898ee8 20128 test "x$as_lineno_1" != "x$as_lineno_2" &&
64ff59ba 20129 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
d9898ee8 20130
20131 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20132 # uniformly replaced by the line number. The first 'sed' inserts a
64ff59ba 20133 # line-number line after each line using $LINENO; the second 'sed'
20134 # does the real work. The second script uses 'N' to pair each
20135 # line-number line with the line containing $LINENO, and appends
20136 # trailing '-' during substitution so that $LINENO is not a special
20137 # case at line end.
d9898ee8 20138 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
64ff59ba 20139 # scripts with optimization help from Paolo Bonzini. Blame Lee
20140 # E. McMahon (1931-1989) for sed's syntax. :-)
20141 sed -n '
20142 p
20143 /[$]LINENO/=
20144 ' <$as_myself |
d9898ee8 20145 sed '
64ff59ba 20146 s/[$]LINENO.*/&-/
20147 t lineno
20148 b
20149 :lineno
d9898ee8 20150 N
64ff59ba 20151 :loop
20152 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
d9898ee8 20153 t loop
64ff59ba 20154 s/-\n.*//
d9898ee8 20155 ' >$as_me.lineno &&
64ff59ba 20156 chmod +x "$as_me.lineno" ||
20157 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
d9898ee8 20158 { (exit 1); exit 1; }; }
20159
20160 # Don't try to exec as it changes $[0], causing all sort of problems
20161 # (the dirname of $[0] is not the place where we might find the
64ff59ba 20162 # original and so on. Autoconf is especially sensitive to this).
20163 . "./$as_me.lineno"
d9898ee8 20164 # Exit status is that of the last command.
20165 exit
20166}
20167
20168
64ff59ba 20169if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20170 as_dirname=dirname
20171else
20172 as_dirname=false
20173fi
20174
20175ECHO_C= ECHO_N= ECHO_T=
20176case `echo -n x` in
20177-n*)
20178 case `echo 'x\c'` in
20179 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20180 *) ECHO_C='\c';;
20181 esac;;
20182*)
20183 ECHO_N='-n';;
d9898ee8 20184esac
20185
64ff59ba 20186if expr a : '\(a\)' >/dev/null 2>&1 &&
20187 test "X`expr 00001 : '.*\(...\)'`" = X001; then
d9898ee8 20188 as_expr=expr
20189else
20190 as_expr=false
20191fi
20192
20193rm -f conf$$ conf$$.exe conf$$.file
64ff59ba 20194if test -d conf$$.dir; then
20195 rm -f conf$$.dir/conf$$.file
20196else
20197 rm -f conf$$.dir
20198 mkdir conf$$.dir
20199fi
d9898ee8 20200echo >conf$$.file
20201if ln -s conf$$.file conf$$ 2>/dev/null; then
64ff59ba 20202 as_ln_s='ln -s'
20203 # ... but there are two gotchas:
20204 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20205 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20206 # In both cases, we have to default to `cp -p'.
20207 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
d9898ee8 20208 as_ln_s='cp -p'
d9898ee8 20209elif ln conf$$.file conf$$ 2>/dev/null; then
20210 as_ln_s=ln
20211else
20212 as_ln_s='cp -p'
20213fi
64ff59ba 20214rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20215rmdir conf$$.dir 2>/dev/null
d9898ee8 20216
20217if mkdir -p . 2>/dev/null; then
20218 as_mkdir_p=:
20219else
20220 test -d ./-p && rmdir ./-p
20221 as_mkdir_p=false
20222fi
20223
64ff59ba 20224if test -x / >/dev/null 2>&1; then
20225 as_test_x='test -x'
20226else
20227 if ls -dL / >/dev/null 2>&1; then
20228 as_ls_L_option=L
20229 else
20230 as_ls_L_option=
20231 fi
20232 as_test_x='
20233 eval sh -c '\''
20234 if test -d "$1"; then
20235 test -d "$1/.";
20236 else
20237 case $1 in
20238 -*)set "./$1";;
20239 esac;
20240 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
20241 ???[sx]*):;;*)false;;esac;fi
20242 '\'' sh
20243 '
20244fi
20245as_executable_p=$as_test_x
d9898ee8 20246
20247# Sed expression to map a string onto a valid CPP name.
20248as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20249
20250# Sed expression to map a string onto a valid variable name.
20251as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20252
20253
d9898ee8 20254exec 6>&1
20255
64ff59ba 20256# Save the log message, to keep $[0] and so on meaningful, and to
d9898ee8 20257# report actual input values of CONFIG_FILES etc. instead of their
64ff59ba 20258# values after options handling.
20259ac_log="
d9898ee8 20260This file was extended by makedat $as_me 0.60, which was
64ff59ba 20261generated by GNU Autoconf 2.61. Invocation command line was
d9898ee8 20262
20263 CONFIG_FILES = $CONFIG_FILES
20264 CONFIG_HEADERS = $CONFIG_HEADERS
20265 CONFIG_LINKS = $CONFIG_LINKS
20266 CONFIG_COMMANDS = $CONFIG_COMMANDS
20267 $ $0 $@
20268
64ff59ba 20269on `(hostname || uname -n) 2>/dev/null | sed 1q`
20270"
20271
d9898ee8 20272_ACEOF
20273
64ff59ba 20274cat >>$CONFIG_STATUS <<_ACEOF
d9898ee8 20275# Files that config.status was made for.
64ff59ba 20276config_files="$ac_config_files"
20277config_headers="$ac_config_headers"
20278config_commands="$ac_config_commands"
d9898ee8 20279
64ff59ba 20280_ACEOF
d9898ee8 20281
20282cat >>$CONFIG_STATUS <<\_ACEOF
d9898ee8 20283ac_cs_usage="\
20284\`$as_me' instantiates files from templates according to the
20285current configuration.
20286
20287Usage: $0 [OPTIONS] [FILE]...
20288
20289 -h, --help print this help, then exit
64ff59ba 20290 -V, --version print version number and configuration settings, then exit
d9898ee8 20291 -q, --quiet do not print progress messages
20292 -d, --debug don't remove temporary files
20293 --recheck update $as_me by reconfiguring in the same conditions
20294 --file=FILE[:TEMPLATE]
20295 instantiate the configuration file FILE
20296 --header=FILE[:TEMPLATE]
20297 instantiate the configuration header FILE
20298
20299Configuration files:
20300$config_files
20301
20302Configuration headers:
20303$config_headers
20304
20305Configuration commands:
20306$config_commands
20307
20308Report bugs to <bug-autoconf@gnu.org>."
d9898ee8 20309
64ff59ba 20310_ACEOF
d9898ee8 20311cat >>$CONFIG_STATUS <<_ACEOF
20312ac_cs_version="\\
20313makedat config.status 0.60
64ff59ba 20314configured by $0, generated by GNU Autoconf 2.61,
20315 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
d9898ee8 20316
64ff59ba 20317Copyright (C) 2006 Free Software Foundation, Inc.
d9898ee8 20318This config.status script is free software; the Free Software Foundation
20319gives unlimited permission to copy, distribute and modify it."
64ff59ba 20320
20321ac_pwd='$ac_pwd'
20322srcdir='$srcdir'
20323INSTALL='$INSTALL'
20324MKDIR_P='$MKDIR_P'
d9898ee8 20325_ACEOF
20326
20327cat >>$CONFIG_STATUS <<\_ACEOF
20328# If no file are specified by the user, then we need to provide default
20329# value. By we need to know if files were specified by the user.
20330ac_need_defaults=:
20331while test $# != 0
20332do
20333 case $1 in
20334 --*=*)
64ff59ba 20335 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20336 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
d9898ee8 20337 ac_shift=:
20338 ;;
64ff59ba 20339 *)
d9898ee8 20340 ac_option=$1
20341 ac_optarg=$2
20342 ac_shift=shift
20343 ;;
d9898ee8 20344 esac
20345
20346 case $ac_option in
20347 # Handling of the options.
d9898ee8 20348 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20349 ac_cs_recheck=: ;;
64ff59ba 20350 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20351 echo "$ac_cs_version"; exit ;;
20352 --debug | --debu | --deb | --de | --d | -d )
d9898ee8 20353 debug=: ;;
20354 --file | --fil | --fi | --f )
20355 $ac_shift
20356 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20357 ac_need_defaults=false;;
20358 --header | --heade | --head | --hea )
20359 $ac_shift
20360 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20361 ac_need_defaults=false;;
64ff59ba 20362 --he | --h)
20363 # Conflict between --help and --header
20364 { echo "$as_me: error: ambiguous option: $1
20365Try \`$0 --help' for more information." >&2
20366 { (exit 1); exit 1; }; };;
20367 --help | --hel | -h )
20368 echo "$ac_cs_usage"; exit ;;
d9898ee8 20369 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20370 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20371 ac_cs_silent=: ;;
20372
20373 # This is an error.
64ff59ba 20374 -*) { echo "$as_me: error: unrecognized option: $1
20375Try \`$0 --help' for more information." >&2
d9898ee8 20376 { (exit 1); exit 1; }; } ;;
20377
64ff59ba 20378 *) ac_config_targets="$ac_config_targets $1"
20379 ac_need_defaults=false ;;
d9898ee8 20380
20381 esac
20382 shift
20383done
20384
20385ac_configure_extra_args=
20386
20387if $ac_cs_silent; then
20388 exec 6>/dev/null
20389 ac_configure_extra_args="$ac_configure_extra_args --silent"
20390fi
20391
20392_ACEOF
20393cat >>$CONFIG_STATUS <<_ACEOF
20394if \$ac_cs_recheck; then
64ff59ba 20395 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20396 CONFIG_SHELL=$SHELL
20397 export CONFIG_SHELL
20398 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
d9898ee8 20399fi
20400
20401_ACEOF
64ff59ba 20402cat >>$CONFIG_STATUS <<\_ACEOF
20403exec 5>>config.log
20404{
20405 echo
20406 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20407## Running $as_me. ##
20408_ASBOX
20409 echo "$ac_log"
20410} >&5
d9898ee8 20411
64ff59ba 20412_ACEOF
d9898ee8 20413cat >>$CONFIG_STATUS <<_ACEOF
20414#
64ff59ba 20415# INIT-COMMANDS
d9898ee8 20416#
d9898ee8 20417AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20418
20419_ACEOF
20420
d9898ee8 20421cat >>$CONFIG_STATUS <<\_ACEOF
64ff59ba 20422
20423# Handling of arguments.
d9898ee8 20424for ac_config_target in $ac_config_targets
20425do
64ff59ba 20426 case $ac_config_target in
20427 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20428 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20429 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20430 "makedat") CONFIG_FILES="$CONFIG_FILES makedat" ;;
20431
d9898ee8 20432 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20433echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20434 { (exit 1); exit 1; }; };;
20435 esac
20436done
20437
64ff59ba 20438
d9898ee8 20439# If the user did not use the arguments to specify the items to instantiate,
20440# then the envvar interface is used. Set only those that are not.
20441# We use the long form for the default assignment because of an extremely
20442# bizarre bug on SunOS 4.1.3.
20443if $ac_need_defaults; then
20444 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20445 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20446 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20447fi
20448
20449# Have a temporary directory for convenience. Make it in the build tree
64ff59ba 20450# simply because there is no reason against having it here, and in addition,
d9898ee8 20451# creating and moving files from /tmp can sometimes cause problems.
64ff59ba 20452# Hook for its removal unless debugging.
20453# Note that there is a small window in which the directory will not be cleaned:
20454# after its creation but before its name has been assigned to `$tmp'.
d9898ee8 20455$debug ||
20456{
64ff59ba 20457 tmp=
20458 trap 'exit_status=$?
20459 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20460' 0
d9898ee8 20461 trap '{ (exit 1); exit 1; }' 1 2 13 15
20462}
d9898ee8 20463# Create a (secure) tmp directory for tmp files.
20464
20465{
64ff59ba 20466 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
d9898ee8 20467 test -n "$tmp" && test -d "$tmp"
20468} ||
20469{
64ff59ba 20470 tmp=./conf$$-$RANDOM
20471 (umask 077 && mkdir "$tmp")
d9898ee8 20472} ||
20473{
20474 echo "$me: cannot create a temporary directory in ." >&2
20475 { (exit 1); exit 1; }
20476}
20477
d9898ee8 20478#
64ff59ba 20479# Set up the sed scripts for CONFIG_FILES section.
d9898ee8 20480#
20481
20482# No need to generate the scripts if there are no CONFIG_FILES.
20483# This happens for instance when ./config.status config.h
64ff59ba 20484if test -n "$CONFIG_FILES"; then
d9898ee8 20485
20486_ACEOF
20487
64ff59ba 20488
20489
20490ac_delim='%!_!# '
20491for ac_last_try in false false false false false :; do
20492 cat >conf$$subs.sed <<_ACEOF
20493SHELL!$SHELL$ac_delim
20494PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
20495PACKAGE_NAME!$PACKAGE_NAME$ac_delim
20496PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
20497PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
20498PACKAGE_STRING!$PACKAGE_STRING$ac_delim
20499PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
20500exec_prefix!$exec_prefix$ac_delim
20501prefix!$prefix$ac_delim
20502program_transform_name!$program_transform_name$ac_delim
20503bindir!$bindir$ac_delim
20504sbindir!$sbindir$ac_delim
20505libexecdir!$libexecdir$ac_delim
20506datarootdir!$datarootdir$ac_delim
20507datadir!$datadir$ac_delim
20508sysconfdir!$sysconfdir$ac_delim
20509sharedstatedir!$sharedstatedir$ac_delim
20510localstatedir!$localstatedir$ac_delim
20511includedir!$includedir$ac_delim
20512oldincludedir!$oldincludedir$ac_delim
20513docdir!$docdir$ac_delim
20514infodir!$infodir$ac_delim
20515htmldir!$htmldir$ac_delim
20516dvidir!$dvidir$ac_delim
20517pdfdir!$pdfdir$ac_delim
20518psdir!$psdir$ac_delim
20519libdir!$libdir$ac_delim
20520localedir!$localedir$ac_delim
20521mandir!$mandir$ac_delim
20522DEFS!$DEFS$ac_delim
20523ECHO_C!$ECHO_C$ac_delim
20524ECHO_N!$ECHO_N$ac_delim
20525ECHO_T!$ECHO_T$ac_delim
20526LIBS!$LIBS$ac_delim
20527build_alias!$build_alias$ac_delim
20528host_alias!$host_alias$ac_delim
20529target_alias!$target_alias$ac_delim
20530INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
20531INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
20532INSTALL_DATA!$INSTALL_DATA$ac_delim
20533am__isrc!$am__isrc$ac_delim
20534CYGPATH_W!$CYGPATH_W$ac_delim
20535PACKAGE!$PACKAGE$ac_delim
20536VERSION!$VERSION$ac_delim
20537ACLOCAL!$ACLOCAL$ac_delim
20538AUTOCONF!$AUTOCONF$ac_delim
20539AUTOMAKE!$AUTOMAKE$ac_delim
20540AUTOHEADER!$AUTOHEADER$ac_delim
20541MAKEINFO!$MAKEINFO$ac_delim
20542install_sh!$install_sh$ac_delim
20543STRIP!$STRIP$ac_delim
20544INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
20545mkdir_p!$mkdir_p$ac_delim
20546AWK!$AWK$ac_delim
20547SET_MAKE!$SET_MAKE$ac_delim
20548am__leading_dot!$am__leading_dot$ac_delim
20549AMTAR!$AMTAR$ac_delim
20550am__tar!$am__tar$ac_delim
20551am__untar!$am__untar$ac_delim
20552CC!$CC$ac_delim
20553CFLAGS!$CFLAGS$ac_delim
20554LDFLAGS!$LDFLAGS$ac_delim
20555CPPFLAGS!$CPPFLAGS$ac_delim
20556ac_ct_CC!$ac_ct_CC$ac_delim
20557EXEEXT!$EXEEXT$ac_delim
20558OBJEXT!$OBJEXT$ac_delim
20559DEPDIR!$DEPDIR$ac_delim
20560am__include!$am__include$ac_delim
20561am__quote!$am__quote$ac_delim
20562AMDEP_TRUE!$AMDEP_TRUE$ac_delim
20563AMDEP_FALSE!$AMDEP_FALSE$ac_delim
20564AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
20565CCDEPMODE!$CCDEPMODE$ac_delim
20566am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
20567am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
20568LN_S!$LN_S$ac_delim
20569PERL!$PERL$ac_delim
20570CAT!$CAT$ac_delim
20571build!$build$ac_delim
20572build_cpu!$build_cpu$ac_delim
20573build_vendor!$build_vendor$ac_delim
20574build_os!$build_os$ac_delim
20575host!$host$ac_delim
20576host_cpu!$host_cpu$ac_delim
20577host_vendor!$host_vendor$ac_delim
20578host_os!$host_os$ac_delim
20579SED!$SED$ac_delim
20580GREP!$GREP$ac_delim
20581EGREP!$EGREP$ac_delim
20582ECHO!$ECHO$ac_delim
20583AR!$AR$ac_delim
20584RANLIB!$RANLIB$ac_delim
20585CPP!$CPP$ac_delim
20586CXX!$CXX$ac_delim
20587CXXFLAGS!$CXXFLAGS$ac_delim
20588ac_ct_CXX!$ac_ct_CXX$ac_delim
20589CXXDEPMODE!$CXXDEPMODE$ac_delim
20590_ACEOF
20591
20592 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
20593 break
20594 elif $ac_last_try; then
20595 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20596echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20597 { (exit 1); exit 1; }; }
20598 else
20599 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
d9898ee8 20600 fi
64ff59ba 20601done
20602
20603ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20604if test -n "$ac_eof"; then
20605 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20606 ac_eof=`expr $ac_eof + 1`
20607fi
20608
20609cat >>$CONFIG_STATUS <<_ACEOF
20610cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
20611/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20612_ACEOF
20613sed '
20614s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20615s/^/s,@/; s/!/@,|#_!!_#|/
20616:n
20617t n
20618s/'"$ac_delim"'$/,g/; t
20619s/$/\\/; p
20620N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20621' >>$CONFIG_STATUS <conf$$subs.sed
20622rm -f conf$$subs.sed
20623cat >>$CONFIG_STATUS <<_ACEOF
20624CEOF$ac_eof
20625_ACEOF
20626
20627
20628ac_delim='%!_!# '
20629for ac_last_try in false false false false false :; do
20630 cat >conf$$subs.sed <<_ACEOF
20631am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
20632am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
20633CXXCPP!$CXXCPP$ac_delim
20634F77!$F77$ac_delim
20635FFLAGS!$FFLAGS$ac_delim
20636ac_ct_F77!$ac_ct_F77$ac_delim
20637LIBTOOL!$LIBTOOL$ac_delim
20638makedatprog_target!$makedatprog_target$ac_delim
20639dblibrary!$dblibrary$ac_delim
20640LIBGDBM!$LIBGDBM$ac_delim
20641LIBDB!$LIBDB$ac_delim
20642USE_GDBM_TRUE!$USE_GDBM_TRUE$ac_delim
20643USE_GDBM_FALSE!$USE_GDBM_FALSE$ac_delim
20644USE_DB_TRUE!$USE_DB_TRUE$ac_delim
20645USE_DB_FALSE!$USE_DB_FALSE$ac_delim
20646makedatprogpath!$makedatprogpath$ac_delim
20647LIBOBJS!$LIBOBJS$ac_delim
20648LTLIBOBJS!$LTLIBOBJS$ac_delim
20649_ACEOF
20650
20651 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 18; then
20652 break
20653 elif $ac_last_try; then
20654 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20655echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20656 { (exit 1); exit 1; }; }
20657 else
20658 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20659 fi
20660done
20661
20662ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20663if test -n "$ac_eof"; then
20664 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20665 ac_eof=`expr $ac_eof + 1`
20666fi
d9898ee8 20667
64ff59ba 20668cat >>$CONFIG_STATUS <<_ACEOF
20669cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
20670/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
d9898ee8 20671_ACEOF
64ff59ba 20672sed '
20673s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20674s/^/s,@/; s/!/@,|#_!!_#|/
20675:n
20676t n
20677s/'"$ac_delim"'$/,g/; t
20678s/$/\\/; p
20679N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20680' >>$CONFIG_STATUS <conf$$subs.sed
20681rm -f conf$$subs.sed
20682cat >>$CONFIG_STATUS <<_ACEOF
20683:end
20684s/|#_!!_#|//g
20685CEOF$ac_eof
20686_ACEOF
20687
20688
20689# VPATH may cause trouble with some makes, so we remove $(srcdir),
20690# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20691# trailing colons and then remove the whole line if VPATH becomes empty
20692# (actually we leave an empty line to preserve line numbers).
20693if test "x$srcdir" = x.; then
20694 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20695s/:*\$(srcdir):*/:/
20696s/:*\${srcdir}:*/:/
20697s/:*@srcdir@:*/:/
20698s/^\([^=]*=[ ]*\):*/\1/
20699s/:*$//
20700s/^[^=]*=[ ]*$//
20701}'
20702fi
20703
d9898ee8 20704cat >>$CONFIG_STATUS <<\_ACEOF
64ff59ba 20705fi # test -n "$CONFIG_FILES"
20706
20707
20708for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
20709do
20710 case $ac_tag in
20711 :[FHLC]) ac_mode=$ac_tag; continue;;
20712 esac
20713 case $ac_mode$ac_tag in
20714 :[FHL]*:*);;
20715 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
20716echo "$as_me: error: Invalid tag $ac_tag." >&2;}
20717 { (exit 1); exit 1; }; };;
20718 :[FH]-) ac_tag=-:-;;
20719 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
d9898ee8 20720 esac
64ff59ba 20721 ac_save_IFS=$IFS
20722 IFS=:
20723 set x $ac_tag
20724 IFS=$ac_save_IFS
20725 shift
20726 ac_file=$1
20727 shift
20728
20729 case $ac_mode in
20730 :L) ac_source=$1;;
20731 :[FH])
20732 ac_file_inputs=
20733 for ac_f
20734 do
20735 case $ac_f in
20736 -) ac_f="$tmp/stdin";;
20737 *) # Look for the file first in the build tree, then in the source tree
20738 # (if the path is not absolute). The absolute path cannot be DOS-style,
20739 # because $ac_f cannot contain `:'.
20740 test -f "$ac_f" ||
20741 case $ac_f in
20742 [\\/$]*) false;;
20743 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20744 esac ||
20745 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
20746echo "$as_me: error: cannot find input file: $ac_f" >&2;}
20747 { (exit 1); exit 1; }; };;
20748 esac
20749 ac_file_inputs="$ac_file_inputs $ac_f"
20750 done
20751
20752 # Let's still pretend it is `configure' which instantiates (i.e., don't
20753 # use $as_me), people would be surprised to read:
20754 # /* config.h. Generated by config.status. */
20755 configure_input="Generated from "`IFS=:
20756 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
20757 if test x"$ac_file" != x-; then
20758 configure_input="$ac_file. $configure_input"
20759 { echo "$as_me:$LINENO: creating $ac_file" >&5
20760echo "$as_me: creating $ac_file" >&6;}
20761 fi
d9898ee8 20762
64ff59ba 20763 case $ac_tag in
20764 *:-:* | *:-) cat >"$tmp/stdin";;
20765 esac
20766 ;;
20767 esac
20768
20769 ac_dir=`$as_dirname -- "$ac_file" ||
d9898ee8 20770$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20771 X"$ac_file" : 'X\(//\)[^/]' \| \
20772 X"$ac_file" : 'X\(//\)$' \| \
64ff59ba 20773 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
d9898ee8 20774echo X"$ac_file" |
64ff59ba 20775 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20776 s//\1/
20777 q
20778 }
20779 /^X\(\/\/\)[^/].*/{
20780 s//\1/
20781 q
20782 }
20783 /^X\(\/\/\)$/{
20784 s//\1/
20785 q
20786 }
20787 /^X\(\/\).*/{
20788 s//\1/
20789 q
20790 }
20791 s/.*/./; q'`
20792 { as_dir="$ac_dir"
20793 case $as_dir in #(
20794 -*) as_dir=./$as_dir;;
20795 esac
20796 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
d9898ee8 20797 as_dirs=
64ff59ba 20798 while :; do
20799 case $as_dir in #(
20800 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
20801 *) as_qdir=$as_dir;;
20802 esac
20803 as_dirs="'$as_qdir' $as_dirs"
20804 as_dir=`$as_dirname -- "$as_dir" ||
d9898ee8 20805$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20806 X"$as_dir" : 'X\(//\)[^/]' \| \
20807 X"$as_dir" : 'X\(//\)$' \| \
64ff59ba 20808 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
d9898ee8 20809echo X"$as_dir" |
64ff59ba 20810 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20811 s//\1/
20812 q
20813 }
20814 /^X\(\/\/\)[^/].*/{
20815 s//\1/
20816 q
20817 }
20818 /^X\(\/\/\)$/{
20819 s//\1/
20820 q
20821 }
20822 /^X\(\/\).*/{
20823 s//\1/
20824 q
20825 }
20826 s/.*/./; q'`
20827 test -d "$as_dir" && break
d9898ee8 20828 done
64ff59ba 20829 test -z "$as_dirs" || eval "mkdir $as_dirs"
20830 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
20831echo "$as_me: error: cannot create directory $as_dir" >&2;}
d9898ee8 20832 { (exit 1); exit 1; }; }; }
d9898ee8 20833 ac_builddir=.
20834
64ff59ba 20835case "$ac_dir" in
20836.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20837*)
d9898ee8 20838 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
64ff59ba 20839 # A ".." for each directory in $ac_dir_suffix.
20840 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
20841 case $ac_top_builddir_sub in
20842 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20843 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20844 esac ;;
20845esac
20846ac_abs_top_builddir=$ac_pwd
20847ac_abs_builddir=$ac_pwd$ac_dir_suffix
20848# for backward compatibility:
20849ac_top_builddir=$ac_top_build_prefix
d9898ee8 20850
20851case $srcdir in
64ff59ba 20852 .) # We are building in place.
d9898ee8 20853 ac_srcdir=.
64ff59ba 20854 ac_top_srcdir=$ac_top_builddir_sub
20855 ac_abs_top_srcdir=$ac_pwd ;;
20856 [\\/]* | ?:[\\/]* ) # Absolute name.
d9898ee8 20857 ac_srcdir=$srcdir$ac_dir_suffix;
64ff59ba 20858 ac_top_srcdir=$srcdir
20859 ac_abs_top_srcdir=$srcdir ;;
20860 *) # Relative name.
20861 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20862 ac_top_srcdir=$ac_top_build_prefix$srcdir
20863 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
d9898ee8 20864esac
64ff59ba 20865ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
d9898ee8 20866
d9898ee8 20867
64ff59ba 20868 case $ac_mode in
20869 :F)
20870 #
20871 # CONFIG_FILE
20872 #
d9898ee8 20873
20874 case $INSTALL in
20875 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
64ff59ba 20876 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
d9898ee8 20877 esac
64ff59ba 20878 ac_MKDIR_P=$MKDIR_P
20879 case $MKDIR_P in
20880 [\\/$]* | ?:[\\/]* ) ;;
20881 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20882 esac
20883_ACEOF
d9898ee8 20884
64ff59ba 20885cat >>$CONFIG_STATUS <<\_ACEOF
20886# If the template does not know about datarootdir, expand it.
20887# FIXME: This hack should be removed a few years after 2.60.
20888ac_datarootdir_hack=; ac_datarootdir_seen=
20889
20890case `sed -n '/datarootdir/ {
20891 p
20892 q
20893}
20894/@datadir@/p
20895/@docdir@/p
20896/@infodir@/p
20897/@localedir@/p
20898/@mandir@/p
20899' $ac_file_inputs` in
20900*datarootdir*) ac_datarootdir_seen=yes;;
20901*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20902 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20903echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
d9898ee8 20904_ACEOF
64ff59ba 20905cat >>$CONFIG_STATUS <<_ACEOF
20906 ac_datarootdir_hack='
20907 s&@datadir@&$datadir&g
20908 s&@docdir@&$docdir&g
20909 s&@infodir@&$infodir&g
20910 s&@localedir@&$localedir&g
20911 s&@mandir@&$mandir&g
20912 s&\\\${datarootdir}&$datarootdir&g' ;;
20913esac
20914_ACEOF
20915
20916# Neutralize VPATH when `$srcdir' = `.'.
20917# Shell code in configure.ac might set extrasub.
20918# FIXME: do we really want to maintain this feature?
d9898ee8 20919cat >>$CONFIG_STATUS <<_ACEOF
20920 sed "$ac_vpsub
20921$extrasub
20922_ACEOF
20923cat >>$CONFIG_STATUS <<\_ACEOF
20924:t
20925/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
64ff59ba 20926s&@configure_input@&$configure_input&;t t
20927s&@top_builddir@&$ac_top_builddir_sub&;t t
20928s&@srcdir@&$ac_srcdir&;t t
20929s&@abs_srcdir@&$ac_abs_srcdir&;t t
20930s&@top_srcdir@&$ac_top_srcdir&;t t
20931s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20932s&@builddir@&$ac_builddir&;t t
20933s&@abs_builddir@&$ac_abs_builddir&;t t
20934s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20935s&@INSTALL@&$ac_INSTALL&;t t
20936s&@MKDIR_P@&$ac_MKDIR_P&;t t
20937$ac_datarootdir_hack
20938" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
20939
20940test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20941 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
20942 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
20943 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20944which seems to be undefined. Please make sure it is defined." >&5
20945echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20946which seems to be undefined. Please make sure it is defined." >&2;}
20947
20948 rm -f "$tmp/stdin"
d9898ee8 20949 case $ac_file in
64ff59ba 20950 -) cat "$tmp/out"; rm -f "$tmp/out";;
20951 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
d9898ee8 20952 esac
64ff59ba 20953 ;;
20954 :H)
20955 #
20956 # CONFIG_HEADER
20957 #
d9898ee8 20958_ACEOF
20959
64ff59ba 20960# Transform confdefs.h into a sed script `conftest.defines', that
20961# substitutes the proper values into config.h.in to produce config.h.
20962rm -f conftest.defines conftest.tail
20963# First, append a space to every undef/define line, to ease matching.
20964echo 's/$/ /' >conftest.defines
20965# Then, protect against being on the right side of a sed subst, or in
20966# an unquoted here document, in config.status. If some macros were
20967# called several times there might be several #defines for the same
20968# symbol, which is useless. But do not sort them, since the last
20969# AC_DEFINE must be honored.
20970ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20971# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
20972# NAME is the cpp macro being defined, VALUE is the value it is being given.
20973# PARAMS is the parameter list in the macro definition--in most cases, it's
20974# just an empty string.
20975ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
20976ac_dB='\\)[ (].*,\\1define\\2'
20977ac_dC=' '
20978ac_dD=' ,'
20979
20980uniq confdefs.h |
20981 sed -n '
20982 t rset
20983 :rset
20984 s/^[ ]*#[ ]*define[ ][ ]*//
20985 t ok
20986 d
20987 :ok
20988 s/[\\&,]/\\&/g
20989 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
20990 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
20991 ' >>conftest.defines
20992
20993# Remove the space that was appended to ease matching.
20994# Then replace #undef with comments. This is necessary, for
d9898ee8 20995# example, in the case of _POSIX_SOURCE, which is predefined and required
20996# on some systems where configure will not decide to define it.
64ff59ba 20997# (The regexp can be short, since the line contains either #define or #undef.)
20998echo 's/ $//
20999s,^[ #]*u.*,/* & */,' >>conftest.defines
21000
21001# Break up conftest.defines:
21002ac_max_sed_lines=50
21003
21004# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
21005# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
21006# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
21007# et cetera.
21008ac_in='$ac_file_inputs'
21009ac_out='"$tmp/out1"'
21010ac_nxt='"$tmp/out2"'
21011
21012while :
d9898ee8 21013do
64ff59ba 21014 # Write a here document:
21015 cat >>$CONFIG_STATUS <<_ACEOF
21016 # First, check the format of the line:
21017 cat >"\$tmp/defines.sed" <<\\CEOF
21018/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
21019/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
21020b
21021:def
21022_ACEOF
21023 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
d9898ee8 21024 echo 'CEOF
64ff59ba 21025 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
21026 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
21027 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
21028 grep . conftest.tail >/dev/null || break
d9898ee8 21029 rm -f conftest.defines
21030 mv conftest.tail conftest.defines
21031done
64ff59ba 21032rm -f conftest.defines conftest.tail
d9898ee8 21033
64ff59ba 21034echo "ac_result=$ac_in" >>$CONFIG_STATUS
d9898ee8 21035cat >>$CONFIG_STATUS <<\_ACEOF
d9898ee8 21036 if test x"$ac_file" != x-; then
64ff59ba 21037 echo "/* $configure_input */" >"$tmp/config.h"
21038 cat "$ac_result" >>"$tmp/config.h"
21039 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
d9898ee8 21040 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21041echo "$as_me: $ac_file is unchanged" >&6;}
21042 else
d9898ee8 21043 rm -f $ac_file
64ff59ba 21044 mv "$tmp/config.h" $ac_file
d9898ee8 21045 fi
21046 else
64ff59ba 21047 echo "/* $configure_input */"
21048 cat "$ac_result"
d9898ee8 21049 fi
64ff59ba 21050 rm -f "$tmp/out12"
d9898ee8 21051# Compute $ac_file's index in $config_headers.
21052_am_stamp_count=1
21053for _am_header in $config_headers :; do
21054 case $_am_header in
21055 $ac_file | $ac_file:* )
21056 break ;;
21057 * )
21058 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21059 esac
21060done
64ff59ba 21061echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
d9898ee8 21062$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21063 X$ac_file : 'X\(//\)[^/]' \| \
21064 X$ac_file : 'X\(//\)$' \| \
64ff59ba 21065 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
d9898ee8 21066echo X$ac_file |
64ff59ba 21067 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21068 s//\1/
21069 q
21070 }
21071 /^X\(\/\/\)[^/].*/{
21072 s//\1/
21073 q
21074 }
21075 /^X\(\/\/\)$/{
21076 s//\1/
21077 q
21078 }
21079 /^X\(\/\).*/{
21080 s//\1/
21081 q
21082 }
21083 s/.*/./; q'`/stamp-h$_am_stamp_count
21084 ;;
d9898ee8 21085
64ff59ba 21086 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
21087echo "$as_me: executing $ac_file commands" >&6;}
21088 ;;
21089 esac
d9898ee8 21090
21091
64ff59ba 21092 case $ac_file$ac_mode in
21093 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
d9898ee8 21094 # Strip MF so we end up with the name of the file.
21095 mf=`echo "$mf" | sed -e 's/:.*$//'`
21096 # Check whether this is an Automake generated Makefile or not.
21097 # We used to match only the files named `Makefile.in', but
21098 # some people rename them; so instead we look at the file content.
21099 # Grep'ing the first line is not enough: some people post-process
21100 # each Makefile.in and add a new line on top of each file to say so.
64ff59ba 21101 # Grep'ing the whole file is not good either: AIX grep has a line
21102 # limit of 2048, but all sed's we know have understand at least 4000.
21103 if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
21104 dirpart=`$as_dirname -- "$mf" ||
d9898ee8 21105$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21106 X"$mf" : 'X\(//\)[^/]' \| \
21107 X"$mf" : 'X\(//\)$' \| \
64ff59ba 21108 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
d9898ee8 21109echo X"$mf" |
64ff59ba 21110 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21111 s//\1/
21112 q
21113 }
21114 /^X\(\/\/\)[^/].*/{
21115 s//\1/
21116 q
21117 }
21118 /^X\(\/\/\)$/{
21119 s//\1/
21120 q
21121 }
21122 /^X\(\/\).*/{
21123 s//\1/
21124 q
21125 }
21126 s/.*/./; q'`
d9898ee8 21127 else
21128 continue
21129 fi
21130 # Extract the definition of DEPDIR, am__include, and am__quote
21131 # from the Makefile without running `make'.
21132 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21133 test -z "$DEPDIR" && continue
21134 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21135 test -z "am__include" && continue
21136 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21137 # When using ansi2knr, U may be empty or an underscore; expand it
21138 U=`sed -n 's/^U = //p' < "$mf"`
21139 # Find all dependency output files, they are included files with
21140 # $(DEPDIR) in their names. We invoke sed twice because it is the
21141 # simplest approach to changing $(DEPDIR) to its actual value in the
21142 # expansion.
21143 for file in `sed -n "
21144 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21145 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21146 # Make sure the directory exists.
21147 test -f "$dirpart/$file" && continue
64ff59ba 21148 fdir=`$as_dirname -- "$file" ||
d9898ee8 21149$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21150 X"$file" : 'X\(//\)[^/]' \| \
21151 X"$file" : 'X\(//\)$' \| \
64ff59ba 21152 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
d9898ee8 21153echo X"$file" |
64ff59ba 21154 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21155 s//\1/
21156 q
21157 }
21158 /^X\(\/\/\)[^/].*/{
21159 s//\1/
21160 q
21161 }
21162 /^X\(\/\/\)$/{
21163 s//\1/
21164 q
21165 }
21166 /^X\(\/\).*/{
21167 s//\1/
21168 q
21169 }
21170 s/.*/./; q'`
21171 { as_dir=$dirpart/$fdir
21172 case $as_dir in #(
21173 -*) as_dir=./$as_dir;;
21174 esac
21175 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
d9898ee8 21176 as_dirs=
64ff59ba 21177 while :; do
21178 case $as_dir in #(
21179 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21180 *) as_qdir=$as_dir;;
21181 esac
21182 as_dirs="'$as_qdir' $as_dirs"
21183 as_dir=`$as_dirname -- "$as_dir" ||
d9898ee8 21184$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21185 X"$as_dir" : 'X\(//\)[^/]' \| \
21186 X"$as_dir" : 'X\(//\)$' \| \
64ff59ba 21187 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
d9898ee8 21188echo X"$as_dir" |
64ff59ba 21189 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21190 s//\1/
21191 q
21192 }
21193 /^X\(\/\/\)[^/].*/{
21194 s//\1/
21195 q
21196 }
21197 /^X\(\/\/\)$/{
21198 s//\1/
21199 q
21200 }
21201 /^X\(\/\).*/{
21202 s//\1/
21203 q
21204 }
21205 s/.*/./; q'`
21206 test -d "$as_dir" && break
d9898ee8 21207 done
64ff59ba 21208 test -z "$as_dirs" || eval "mkdir $as_dirs"
21209 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21210echo "$as_me: error: cannot create directory $as_dir" >&2;}
d9898ee8 21211 { (exit 1); exit 1; }; }; }
d9898ee8 21212 # echo "creating $dirpart/$file"
21213 echo '# dummy' > "$dirpart/$file"
21214 done
21215done
21216 ;;
64ff59ba 21217
d9898ee8 21218 esac
64ff59ba 21219done # for ac_tag
d9898ee8 21220
d9898ee8 21221
21222{ (exit 0); exit 0; }
21223_ACEOF
21224chmod +x $CONFIG_STATUS
21225ac_clean_files=$ac_clean_files_save
21226
21227
21228# configure is writing to config.log, and then calls config.status.
21229# config.status does its own redirection, appending to config.log.
21230# Unfortunately, on DOS this fails, as config.log is still kept open
21231# by configure, so config.status won't be able to write to it; its
21232# output is simply discarded. So we exec the FD to /dev/null,
21233# effectively closing config.log, so it can be properly (re)opened and
21234# appended to by config.status. When coming back to configure, we
21235# need to make the FD available again.
21236if test "$no_create" != yes; then
21237 ac_cs_success=:
21238 ac_config_status_args=
21239 test "$silent" = yes &&
21240 ac_config_status_args="$ac_config_status_args --quiet"
21241 exec 5>/dev/null
21242 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21243 exec 5>>config.log
21244 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21245 # would make configure fail if this is the last instruction.
21246 $ac_cs_success || { (exit 1); exit 1; }
21247fi
21248