]> jfr.im git - irc/rqf/shadowircd.git/blame - libratbox/configure
Pretty symlink logic for help files
[irc/rqf/shadowircd.git] / libratbox / configure
CommitLineData
b57f37fb
WP
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.61 for libratbox devel.
4#
033be687 5# $Id: configure.ac 25574 2008-06-20 21:49:06Z androsyn $
b57f37fb
WP
6#
7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
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
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
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+"$@"}'='"$@"'
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
53fi
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
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
96# Work around bugs in pre-3.0 UWIN ksh.
97for as_var in ENV MAIL MAILPATH
98do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99done
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
113 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
114 fi
115done
116
117# Required to use basename.
118if expr a : '\(a\)' >/dev/null 2>&1 &&
119 test "X`expr 00001 : '.*\(...\)'`" = X001; then
120 as_expr=expr
121else
122 as_expr=false
123fi
124
125if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126 as_basename=basename
127else
128 as_basename=false
129fi
130
131
132# Name of the executable.
133as_me=`$as_basename -- "$0" ||
134$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135 X"$0" : 'X\(//\)$' \| \
136 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137echo X/"$0" |
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'`
151
152# CDPATH.
153$as_unset CDPATH
154
155
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
161fi
162
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}
179
180exitcode=0
181if as_func_success; then
182 :
183else
184 exitcode=1
185 echo as_func_success failed.
186fi
187
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=
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=.
228 case $as_dir in
229 /*)
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(
330 as_lineno_1=$LINENO
331 as_lineno_2=$LINENO
332 test "x$as_lineno_1" != "x$as_lineno_2" &&
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" || {
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
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.
437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
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 |
444 sed '
445 s/[$]LINENO.*/&-/
446 t lineno
447 b
448 :lineno
449 N
450 :loop
451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452 t loop
453 s/-\n.*//
454 ' >$as_me.lineno &&
455 chmod +x "$as_me.lineno" ||
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
461 # original and so on. Autoconf is especially sensitive to this).
462 . "./$as_me.lineno"
463 # Exit status is that of the last command.
464 exit
465}
466
467
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';;
483esac
484
485if expr a : '\(a\)' >/dev/null 2>&1 &&
486 test "X`expr 00001 : '.*\(...\)'`" = X001; then
487 as_expr=expr
488else
489 as_expr=false
490fi
491
492rm -f conf$$ conf$$.exe conf$$.file
493if test -d conf$$.dir; then
494 rm -f conf$$.dir/conf$$.file
495else
496 rm -f conf$$.dir
497 mkdir conf$$.dir
498fi
499echo >conf$$.file
500if ln -s conf$$.file conf$$ 2>/dev/null; then
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 ||
507 as_ln_s='cp -p'
508elif ln conf$$.file conf$$ 2>/dev/null; then
509 as_ln_s=ln
510else
511 as_ln_s='cp -p'
512fi
513rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514rmdir conf$$.dir 2>/dev/null
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
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
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
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
708exec 7<&0 </dev/null 6>&1
709
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
715#
716# Initializations.
717#
718ac_default_prefix=/usr/local
719ac_clean_files=
720ac_config_libobj_dir=.
721LIBOBJS=
722cross_compiling=no
723subdirs=
724MFLAGS=
725MAKEFLAGS=
726SHELL=${CONFIG_SHELL-/bin/sh}
727
728# Identity of this package.
729PACKAGE_NAME='libratbox'
730PACKAGE_TARNAME='libratbox'
731PACKAGE_VERSION='devel'
732PACKAGE_STRING='libratbox devel'
733PACKAGE_BUGREPORT=''
734
735ac_default_prefix=/usr/local/libratbox
736# Factoring default headers for most tests.
737ac_includes_default="\
738#include <stdio.h>
739#ifdef HAVE_SYS_TYPES_H
740# include <sys/types.h>
741#endif
742#ifdef HAVE_SYS_STAT_H
743# include <sys/stat.h>
744#endif
745#ifdef STDC_HEADERS
746# include <stdlib.h>
747# include <stddef.h>
748#else
749# ifdef HAVE_STDLIB_H
750# include <stdlib.h>
751# endif
752#endif
753#ifdef HAVE_STRING_H
754# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
755# include <memory.h>
756# endif
757# include <string.h>
758#endif
759#ifdef HAVE_STRINGS_H
760# include <strings.h>
761#endif
762#ifdef HAVE_INTTYPES_H
763# include <inttypes.h>
764#endif
765#ifdef HAVE_STDINT_H
766# include <stdint.h>
767#endif
768#ifdef HAVE_UNISTD_H
769# include <unistd.h>
770#endif"
771
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
847GREP
848EGREP
849SED
850MAINTAINER_MODE_TRUE
851MAINTAINER_MODE_FALSE
852MAINT
853AS
854RM
855CP
856MV
857LN
858AR
859LD
860RANLIB
861TOUCH
862build
863build_cpu
864build_vendor
865build_os
866host
867host_cpu
868host_vendor
869host_os
870LN_S
871ECHO
56efe974
WP
872DSYMUTIL
873NMEDIT
b57f37fb
WP
874CPP
875CXX
876CXXFLAGS
877ac_ct_CXX
878CXXDEPMODE
879am__fastdepCXX_TRUE
880am__fastdepCXX_FALSE
881CXXCPP
882F77
883FFLAGS
884ac_ct_F77
885LIBTOOL
886subdirs
887MINGW_TRUE
888MINGW_FALSE
889NEED_CRYPT_TRUE
890NEED_CRYPT_FALSE
891CRYPT_LIB
892ALLOCA
dd910409
WP
893PKG_CONFIG
894GNUTLS_CFLAGS
895GNUTLS_LIBS
b57f37fb
WP
896PICFLAGS
897SEDOBJ
033be687 898SSL_CFLAGS
b57f37fb
WP
899SSL_LIBS
900RB_PREFIX
901LIBOBJS
902LTLIBOBJS'
903ac_subst_files=''
904 ac_precious_vars='build_alias
905host_alias
906target_alias
907CC
908CFLAGS
909LDFLAGS
910LIBS
911CPPFLAGS
912CPP
913CXX
914CXXFLAGS
915CCC
916CXXCPP
917F77
dd910409
WP
918FFLAGS
919PKG_CONFIG
920GNUTLS_CFLAGS
921GNUTLS_LIBS'
b57f37fb
WP
922ac_subdirs_all='libltdl'
923
924# Initialize some variables set by options.
925ac_init_help=
926ac_init_version=false
927# The variables have the same names as the options, with
928# dashes changed to underlines.
929cache_file=/dev/null
930exec_prefix=NONE
931no_create=
932no_recursion=
933prefix=NONE
934program_prefix=NONE
935program_suffix=NONE
936program_transform_name=s,x,x,
937silent=
938site=
939srcdir=
940verbose=
941x_includes=NONE
942x_libraries=NONE
943
944# Installation directory options.
945# These are left unexpanded so users can "make install exec_prefix=/foo"
946# and all the variables that are supposed to be based on exec_prefix
947# by default will actually change.
948# Use braces instead of parens because sh, perl, etc. also accept them.
949# (The list follows the same order as the GNU Coding Standards.)
950bindir='${exec_prefix}/bin'
951sbindir='${exec_prefix}/sbin'
952libexecdir='${exec_prefix}/libexec'
953datarootdir='${prefix}/share'
954datadir='${datarootdir}'
955sysconfdir='${prefix}/etc'
956sharedstatedir='${prefix}/com'
957localstatedir='${prefix}/var'
958includedir='${prefix}/include'
959oldincludedir='/usr/include'
960docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
961infodir='${datarootdir}/info'
962htmldir='${docdir}'
963dvidir='${docdir}'
964pdfdir='${docdir}'
965psdir='${docdir}'
966libdir='${exec_prefix}/lib'
967localedir='${datarootdir}/locale'
968mandir='${datarootdir}/man'
969
970ac_prev=
971ac_dashdash=
972for ac_option
973do
974 # If the previous option needs an argument, assign it.
975 if test -n "$ac_prev"; then
976 eval $ac_prev=\$ac_option
977 ac_prev=
978 continue
979 fi
980
981 case $ac_option in
982 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
983 *) ac_optarg=yes ;;
984 esac
985
986 # Accept the important Cygnus configure options, so we can diagnose typos.
987
988 case $ac_dashdash$ac_option in
989 --)
990 ac_dashdash=yes ;;
991
992 -bindir | --bindir | --bindi | --bind | --bin | --bi)
993 ac_prev=bindir ;;
994 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
995 bindir=$ac_optarg ;;
996
997 -build | --build | --buil | --bui | --bu)
998 ac_prev=build_alias ;;
999 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1000 build_alias=$ac_optarg ;;
1001
1002 -cache-file | --cache-file | --cache-fil | --cache-fi \
1003 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1004 ac_prev=cache_file ;;
1005 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1006 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1007 cache_file=$ac_optarg ;;
1008
1009 --config-cache | -C)
1010 cache_file=config.cache ;;
1011
1012 -datadir | --datadir | --datadi | --datad)
1013 ac_prev=datadir ;;
1014 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1015 datadir=$ac_optarg ;;
1016
1017 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1018 | --dataroo | --dataro | --datar)
1019 ac_prev=datarootdir ;;
1020 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1021 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1022 datarootdir=$ac_optarg ;;
1023
1024 -disable-* | --disable-*)
1025 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1026 # Reject names that are not valid shell variable names.
1027 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1028 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1029 { (exit 1); exit 1; }; }
1030 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1031 eval enable_$ac_feature=no ;;
1032
1033 -docdir | --docdir | --docdi | --doc | --do)
1034 ac_prev=docdir ;;
1035 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1036 docdir=$ac_optarg ;;
1037
1038 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1039 ac_prev=dvidir ;;
1040 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1041 dvidir=$ac_optarg ;;
1042
1043 -enable-* | --enable-*)
1044 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1045 # Reject names that are not valid shell variable names.
1046 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1047 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1048 { (exit 1); exit 1; }; }
1049 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1050 eval enable_$ac_feature=\$ac_optarg ;;
1051
1052 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1053 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1054 | --exec | --exe | --ex)
1055 ac_prev=exec_prefix ;;
1056 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1057 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1058 | --exec=* | --exe=* | --ex=*)
1059 exec_prefix=$ac_optarg ;;
1060
1061 -gas | --gas | --ga | --g)
1062 # Obsolete; use --with-gas.
1063 with_gas=yes ;;
1064
1065 -help | --help | --hel | --he | -h)
1066 ac_init_help=long ;;
1067 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1068 ac_init_help=recursive ;;
1069 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1070 ac_init_help=short ;;
1071
1072 -host | --host | --hos | --ho)
1073 ac_prev=host_alias ;;
1074 -host=* | --host=* | --hos=* | --ho=*)
1075 host_alias=$ac_optarg ;;
1076
1077 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1078 ac_prev=htmldir ;;
1079 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1080 | --ht=*)
1081 htmldir=$ac_optarg ;;
1082
1083 -includedir | --includedir | --includedi | --included | --include \
1084 | --includ | --inclu | --incl | --inc)
1085 ac_prev=includedir ;;
1086 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1087 | --includ=* | --inclu=* | --incl=* | --inc=*)
1088 includedir=$ac_optarg ;;
1089
1090 -infodir | --infodir | --infodi | --infod | --info | --inf)
1091 ac_prev=infodir ;;
1092 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1093 infodir=$ac_optarg ;;
1094
1095 -libdir | --libdir | --libdi | --libd)
1096 ac_prev=libdir ;;
1097 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1098 libdir=$ac_optarg ;;
1099
1100 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1101 | --libexe | --libex | --libe)
1102 ac_prev=libexecdir ;;
1103 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1104 | --libexe=* | --libex=* | --libe=*)
1105 libexecdir=$ac_optarg ;;
1106
1107 -localedir | --localedir | --localedi | --localed | --locale)
1108 ac_prev=localedir ;;
1109 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1110 localedir=$ac_optarg ;;
1111
1112 -localstatedir | --localstatedir | --localstatedi | --localstated \
1113 | --localstate | --localstat | --localsta | --localst | --locals)
1114 ac_prev=localstatedir ;;
1115 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1116 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1117 localstatedir=$ac_optarg ;;
1118
1119 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1120 ac_prev=mandir ;;
1121 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1122 mandir=$ac_optarg ;;
1123
1124 -nfp | --nfp | --nf)
1125 # Obsolete; use --without-fp.
1126 with_fp=no ;;
1127
1128 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1129 | --no-cr | --no-c | -n)
1130 no_create=yes ;;
1131
1132 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1133 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1134 no_recursion=yes ;;
1135
1136 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1137 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1138 | --oldin | --oldi | --old | --ol | --o)
1139 ac_prev=oldincludedir ;;
1140 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1141 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1142 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1143 oldincludedir=$ac_optarg ;;
1144
1145 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1146 ac_prev=prefix ;;
1147 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1148 prefix=$ac_optarg ;;
1149
1150 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1151 | --program-pre | --program-pr | --program-p)
1152 ac_prev=program_prefix ;;
1153 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1154 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1155 program_prefix=$ac_optarg ;;
1156
1157 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1158 | --program-suf | --program-su | --program-s)
1159 ac_prev=program_suffix ;;
1160 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1161 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1162 program_suffix=$ac_optarg ;;
1163
1164 -program-transform-name | --program-transform-name \
1165 | --program-transform-nam | --program-transform-na \
1166 | --program-transform-n | --program-transform- \
1167 | --program-transform | --program-transfor \
1168 | --program-transfo | --program-transf \
1169 | --program-trans | --program-tran \
1170 | --progr-tra | --program-tr | --program-t)
1171 ac_prev=program_transform_name ;;
1172 -program-transform-name=* | --program-transform-name=* \
1173 | --program-transform-nam=* | --program-transform-na=* \
1174 | --program-transform-n=* | --program-transform-=* \
1175 | --program-transform=* | --program-transfor=* \
1176 | --program-transfo=* | --program-transf=* \
1177 | --program-trans=* | --program-tran=* \
1178 | --progr-tra=* | --program-tr=* | --program-t=*)
1179 program_transform_name=$ac_optarg ;;
1180
1181 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1182 ac_prev=pdfdir ;;
1183 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1184 pdfdir=$ac_optarg ;;
1185
1186 -psdir | --psdir | --psdi | --psd | --ps)
1187 ac_prev=psdir ;;
1188 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1189 psdir=$ac_optarg ;;
1190
1191 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1192 | -silent | --silent | --silen | --sile | --sil)
1193 silent=yes ;;
1194
1195 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1196 ac_prev=sbindir ;;
1197 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1198 | --sbi=* | --sb=*)
1199 sbindir=$ac_optarg ;;
1200
1201 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1202 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1203 | --sharedst | --shareds | --shared | --share | --shar \
1204 | --sha | --sh)
1205 ac_prev=sharedstatedir ;;
1206 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1207 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1208 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1209 | --sha=* | --sh=*)
1210 sharedstatedir=$ac_optarg ;;
1211
1212 -site | --site | --sit)
1213 ac_prev=site ;;
1214 -site=* | --site=* | --sit=*)
1215 site=$ac_optarg ;;
1216
1217 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1218 ac_prev=srcdir ;;
1219 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1220 srcdir=$ac_optarg ;;
1221
1222 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1223 | --syscon | --sysco | --sysc | --sys | --sy)
1224 ac_prev=sysconfdir ;;
1225 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1226 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1227 sysconfdir=$ac_optarg ;;
1228
1229 -target | --target | --targe | --targ | --tar | --ta | --t)
1230 ac_prev=target_alias ;;
1231 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1232 target_alias=$ac_optarg ;;
1233
1234 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1235 verbose=yes ;;
1236
1237 -version | --version | --versio | --versi | --vers | -V)
1238 ac_init_version=: ;;
1239
1240 -with-* | --with-*)
1241 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1242 # Reject names that are not valid shell variable names.
1243 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1244 { echo "$as_me: error: invalid package name: $ac_package" >&2
1245 { (exit 1); exit 1; }; }
1246 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1247 eval with_$ac_package=\$ac_optarg ;;
1248
1249 -without-* | --without-*)
1250 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1251 # Reject names that are not valid shell variable names.
1252 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1253 { echo "$as_me: error: invalid package name: $ac_package" >&2
1254 { (exit 1); exit 1; }; }
1255 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1256 eval with_$ac_package=no ;;
1257
1258 --x)
1259 # Obsolete; use --with-x.
1260 with_x=yes ;;
1261
1262 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1263 | --x-incl | --x-inc | --x-in | --x-i)
1264 ac_prev=x_includes ;;
1265 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1266 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1267 x_includes=$ac_optarg ;;
1268
1269 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1270 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1271 ac_prev=x_libraries ;;
1272 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1273 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1274 x_libraries=$ac_optarg ;;
1275
1276 -*) { echo "$as_me: error: unrecognized option: $ac_option
1277Try \`$0 --help' for more information." >&2
1278 { (exit 1); exit 1; }; }
1279 ;;
1280
1281 *=*)
1282 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1283 # Reject names that are not valid shell variable names.
1284 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1285 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1286 { (exit 1); exit 1; }; }
1287 eval $ac_envvar=\$ac_optarg
1288 export $ac_envvar ;;
1289
1290 *)
1291 # FIXME: should be removed in autoconf 3.0.
1292 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1293 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1294 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1295 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1296 ;;
1297
1298 esac
1299done
1300
1301if test -n "$ac_prev"; then
1302 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1303 { echo "$as_me: error: missing argument to $ac_option" >&2
1304 { (exit 1); exit 1; }; }
1305fi
1306
1307# Be sure to have absolute directory names.
1308for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1309 datadir sysconfdir sharedstatedir localstatedir includedir \
1310 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1311 libdir localedir mandir
1312do
1313 eval ac_val=\$$ac_var
1314 case $ac_val in
1315 [\\/$]* | ?:[\\/]* ) continue;;
1316 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1317 esac
1318 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1319 { (exit 1); exit 1; }; }
1320done
1321
1322# There might be people who depend on the old broken behavior: `$host'
1323# used to hold the argument of --host etc.
1324# FIXME: To remove some day.
1325build=$build_alias
1326host=$host_alias
1327target=$target_alias
1328
1329# FIXME: To remove some day.
1330if test "x$host_alias" != x; then
1331 if test "x$build_alias" = x; then
1332 cross_compiling=maybe
1333 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1334 If a cross compiler is detected then cross compile mode will be used." >&2
1335 elif test "x$build_alias" != "x$host_alias"; then
1336 cross_compiling=yes
1337 fi
1338fi
1339
1340ac_tool_prefix=
1341test -n "$host_alias" && ac_tool_prefix=$host_alias-
1342
1343test "$silent" = yes && exec 6>/dev/null
1344
1345
1346ac_pwd=`pwd` && test -n "$ac_pwd" &&
1347ac_ls_di=`ls -di .` &&
1348ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1349 { echo "$as_me: error: Working directory cannot be determined" >&2
1350 { (exit 1); exit 1; }; }
1351test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1352 { echo "$as_me: error: pwd does not report name of working directory" >&2
1353 { (exit 1); exit 1; }; }
1354
1355
1356# Find the source files, if location was not specified.
1357if test -z "$srcdir"; then
1358 ac_srcdir_defaulted=yes
1359 # Try the directory containing this script, then the parent directory.
1360 ac_confdir=`$as_dirname -- "$0" ||
1361$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1362 X"$0" : 'X\(//\)[^/]' \| \
1363 X"$0" : 'X\(//\)$' \| \
1364 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1365echo X"$0" |
1366 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1367 s//\1/
1368 q
1369 }
1370 /^X\(\/\/\)[^/].*/{
1371 s//\1/
1372 q
1373 }
1374 /^X\(\/\/\)$/{
1375 s//\1/
1376 q
1377 }
1378 /^X\(\/\).*/{
1379 s//\1/
1380 q
1381 }
1382 s/.*/./; q'`
1383 srcdir=$ac_confdir
1384 if test ! -r "$srcdir/$ac_unique_file"; then
1385 srcdir=..
1386 fi
1387else
1388 ac_srcdir_defaulted=no
1389fi
1390if test ! -r "$srcdir/$ac_unique_file"; then
1391 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1392 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1393 { (exit 1); exit 1; }; }
1394fi
1395ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1396ac_abs_confdir=`(
1397 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1398 { (exit 1); exit 1; }; }
1399 pwd)`
1400# When building in place, set srcdir=.
1401if test "$ac_abs_confdir" = "$ac_pwd"; then
1402 srcdir=.
1403fi
1404# Remove unnecessary trailing slashes from srcdir.
1405# Double slashes in file names in object file debugging info
1406# mess up M-x gdb in Emacs.
1407case $srcdir in
1408*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1409esac
1410for ac_var in $ac_precious_vars; do
1411 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1412 eval ac_env_${ac_var}_value=\$${ac_var}
1413 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1414 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1415done
1416
1417#
1418# Report the --help message.
1419#
1420if test "$ac_init_help" = "long"; then
1421 # Omit some internal or obsolete options to make the list less imposing.
1422 # This message is too long to be a string in the A/UX 3.1 sh.
1423 cat <<_ACEOF
1424\`configure' configures libratbox devel to adapt to many kinds of systems.
1425
1426Usage: $0 [OPTION]... [VAR=VALUE]...
1427
1428To assign environment variables (e.g., CC, CFLAGS...), specify them as
1429VAR=VALUE. See below for descriptions of some of the useful variables.
1430
1431Defaults for the options are specified in brackets.
1432
1433Configuration:
1434 -h, --help display this help and exit
1435 --help=short display options specific to this package
1436 --help=recursive display the short help of all the included packages
1437 -V, --version display version information and exit
1438 -q, --quiet, --silent do not print \`checking...' messages
1439 --cache-file=FILE cache test results in FILE [disabled]
1440 -C, --config-cache alias for \`--cache-file=config.cache'
1441 -n, --no-create do not create output files
1442 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1443
1444Installation directories:
1445 --prefix=PREFIX install architecture-independent files in PREFIX
1446 [$ac_default_prefix]
1447 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1448 [PREFIX]
1449
1450By default, \`make install' will install all the files in
1451\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1452an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1453for instance \`--prefix=\$HOME'.
1454
1455For better control, use the options below.
1456
1457Fine tuning of the installation directories:
1458 --bindir=DIR user executables [EPREFIX/bin]
1459 --sbindir=DIR system admin executables [EPREFIX/sbin]
1460 --libexecdir=DIR program executables [EPREFIX/libexec]
1461 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1462 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1463 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1464 --libdir=DIR object code libraries [EPREFIX/lib]
1465 --includedir=DIR C header files [PREFIX/include]
1466 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1467 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1468 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1469 --infodir=DIR info documentation [DATAROOTDIR/info]
1470 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1471 --mandir=DIR man documentation [DATAROOTDIR/man]
1472 --docdir=DIR documentation root [DATAROOTDIR/doc/libratbox]
1473 --htmldir=DIR html documentation [DOCDIR]
1474 --dvidir=DIR dvi documentation [DOCDIR]
1475 --pdfdir=DIR pdf documentation [DOCDIR]
1476 --psdir=DIR ps documentation [DOCDIR]
1477_ACEOF
1478
1479 cat <<\_ACEOF
1480
1481Program names:
1482 --program-prefix=PREFIX prepend PREFIX to installed program names
1483 --program-suffix=SUFFIX append SUFFIX to installed program names
1484 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1485
1486System types:
1487 --build=BUILD configure for building on BUILD [guessed]
1488 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1489_ACEOF
1490fi
1491
1492if test -n "$ac_init_help"; then
1493 case $ac_init_help in
1494 short | recursive ) echo "Configuration of libratbox devel:";;
1495 esac
1496 cat <<\_ACEOF
1497
1498Optional Features:
1499 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1500 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1501 --disable-dependency-tracking speeds up one-time build
1502 --enable-dependency-tracking do not reject slow dependency extractors
1503 --enable-static[=PKGS] build static libraries [default=no]
1504 --enable-shared[=PKGS] build shared libraries [default=yes]
1505 --enable-maintainer-mode enable make rules and dependencies not useful
1506 (and sometimes confusing) to the casual installer
1507 --enable-fast-install[=PKGS]
1508 optimize for fast installation [default=yes]
1509 --disable-libtool-lock avoid locking (might break parallel builds)
1510 --disable-ipv6 Disable IPv6 support
1511 --enable-openssl=DIR Enable OpenSSL support (DIR optional).
1512 --disable-openssl Disable OpenSSL support.
033be687
VY
1513 --enable-gnutls Enable GnuTLS support.
1514 --disable-gnutls Disable GnuTLS support.
b57f37fb
WP
1515 --enable-assert Enable assert(). Choose between soft(warnings) and
1516 hard(aborts the daemon)
1517 --enable-profile Enable profiling
1518 --disable-balloc Disable the block allocator.
1519 --enable-warnings Enable all sorts of warnings for debugging.
1520
1521Optional Packages:
1522 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1523 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1524 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1525 --with-pic try to use only PIC/non-PIC objects [default=use
1526 both]
1527 --with-tags[=TAGS] include additional configurations [automatic]
1528
1529Some influential environment variables:
1530 CC C compiler command
1531 CFLAGS C compiler flags
1532 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1533 nonstandard directory <lib dir>
1534 LIBS libraries to pass to the linker, e.g. -l<library>
1535 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1536 you have headers in a nonstandard directory <include dir>
1537 CPP C preprocessor
1538 CXX C++ compiler command
1539 CXXFLAGS C++ compiler flags
1540 CXXCPP C++ preprocessor
1541 F77 Fortran 77 compiler command
1542 FFLAGS Fortran 77 compiler flags
dd910409
WP
1543 PKG_CONFIG path to pkg-config utility
1544 GNUTLS_CFLAGS
1545 C compiler flags for GNUTLS, overriding pkg-config
1546 GNUTLS_LIBS linker flags for GNUTLS, overriding pkg-config
b57f37fb
WP
1547
1548Use these variables to override the choices made by `configure' or to help
1549it to find libraries and programs with nonstandard names/locations.
1550
1551_ACEOF
1552ac_status=$?
1553fi
1554
1555if test "$ac_init_help" = "recursive"; then
1556 # If there are subdirs, report their specific --help.
1557 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1558 test -d "$ac_dir" || continue
1559 ac_builddir=.
1560
1561case "$ac_dir" in
1562.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1563*)
1564 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1565 # A ".." for each directory in $ac_dir_suffix.
1566 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1567 case $ac_top_builddir_sub in
1568 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1569 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1570 esac ;;
1571esac
1572ac_abs_top_builddir=$ac_pwd
1573ac_abs_builddir=$ac_pwd$ac_dir_suffix
1574# for backward compatibility:
1575ac_top_builddir=$ac_top_build_prefix
1576
1577case $srcdir in
1578 .) # We are building in place.
1579 ac_srcdir=.
1580 ac_top_srcdir=$ac_top_builddir_sub
1581 ac_abs_top_srcdir=$ac_pwd ;;
1582 [\\/]* | ?:[\\/]* ) # Absolute name.
1583 ac_srcdir=$srcdir$ac_dir_suffix;
1584 ac_top_srcdir=$srcdir
1585 ac_abs_top_srcdir=$srcdir ;;
1586 *) # Relative name.
1587 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1588 ac_top_srcdir=$ac_top_build_prefix$srcdir
1589 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1590esac
1591ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1592
1593 cd "$ac_dir" || { ac_status=$?; continue; }
1594 # Check for guested configure.
1595 if test -f "$ac_srcdir/configure.gnu"; then
1596 echo &&
1597 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1598 elif test -f "$ac_srcdir/configure"; then
1599 echo &&
1600 $SHELL "$ac_srcdir/configure" --help=recursive
1601 else
1602 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1603 fi || ac_status=$?
1604 cd "$ac_pwd" || { ac_status=$?; break; }
1605 done
1606fi
1607
1608test -n "$ac_init_help" && exit $ac_status
1609if $ac_init_version; then
1610 cat <<\_ACEOF
1611libratbox configure devel
1612generated by GNU Autoconf 2.61
1613
1614Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16152002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1616This configure script is free software; the Free Software Foundation
1617gives unlimited permission to copy, distribute and modify it.
1618
033be687 1619$Id: configure.ac 25574 2008-06-20 21:49:06Z androsyn $
b57f37fb
WP
1620_ACEOF
1621 exit
1622fi
1623cat >config.log <<_ACEOF
1624This file contains any messages produced by compilers while
1625running configure, to aid debugging if configure makes a mistake.
1626
1627It was created by libratbox $as_me devel, which was
1628generated by GNU Autoconf 2.61. Invocation command line was
1629
1630 $ $0 $@
1631
1632_ACEOF
1633exec 5>>config.log
1634{
1635cat <<_ASUNAME
1636## --------- ##
1637## Platform. ##
1638## --------- ##
1639
1640hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1641uname -m = `(uname -m) 2>/dev/null || echo unknown`
1642uname -r = `(uname -r) 2>/dev/null || echo unknown`
1643uname -s = `(uname -s) 2>/dev/null || echo unknown`
1644uname -v = `(uname -v) 2>/dev/null || echo unknown`
1645
1646/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1647/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1648
1649/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1650/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1651/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1652/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1653/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1654/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1655/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1656
1657_ASUNAME
1658
1659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1660for as_dir in $PATH
1661do
1662 IFS=$as_save_IFS
1663 test -z "$as_dir" && as_dir=.
1664 echo "PATH: $as_dir"
1665done
1666IFS=$as_save_IFS
1667
1668} >&5
1669
1670cat >&5 <<_ACEOF
1671
1672
1673## ----------- ##
1674## Core tests. ##
1675## ----------- ##
1676
1677_ACEOF
1678
1679
1680# Keep a trace of the command line.
1681# Strip out --no-create and --no-recursion so they do not pile up.
1682# Strip out --silent because we don't want to record it for future runs.
1683# Also quote any args containing shell meta-characters.
1684# Make two passes to allow for proper duplicate-argument suppression.
1685ac_configure_args=
1686ac_configure_args0=
1687ac_configure_args1=
1688ac_must_keep_next=false
1689for ac_pass in 1 2
1690do
1691 for ac_arg
1692 do
1693 case $ac_arg in
1694 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1695 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1696 | -silent | --silent | --silen | --sile | --sil)
1697 continue ;;
1698 *\'*)
1699 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1700 esac
1701 case $ac_pass in
1702 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1703 2)
1704 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1705 if test $ac_must_keep_next = true; then
1706 ac_must_keep_next=false # Got value, back to normal.
1707 else
1708 case $ac_arg in
1709 *=* | --config-cache | -C | -disable-* | --disable-* \
1710 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1711 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1712 | -with-* | --with-* | -without-* | --without-* | --x)
1713 case "$ac_configure_args0 " in
1714 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1715 esac
1716 ;;
1717 -* ) ac_must_keep_next=true ;;
1718 esac
1719 fi
1720 ac_configure_args="$ac_configure_args '$ac_arg'"
1721 ;;
1722 esac
1723 done
1724done
1725$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1726$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1727
1728# When interrupted or exit'd, cleanup temporary files, and complete
1729# config.log. We remove comments because anyway the quotes in there
1730# would cause problems or look ugly.
1731# WARNING: Use '\'' to represent an apostrophe within the trap.
1732# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1733trap 'exit_status=$?
1734 # Save into config.log some information that might help in debugging.
1735 {
1736 echo
1737
1738 cat <<\_ASBOX
1739## ---------------- ##
1740## Cache variables. ##
1741## ---------------- ##
1742_ASBOX
1743 echo
1744 # The following way of writing the cache mishandles newlines in values,
1745(
1746 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1747 eval ac_val=\$$ac_var
1748 case $ac_val in #(
1749 *${as_nl}*)
1750 case $ac_var in #(
1751 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1752echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1753 esac
1754 case $ac_var in #(
1755 _ | IFS | as_nl) ;; #(
1756 *) $as_unset $ac_var ;;
1757 esac ;;
1758 esac
1759 done
1760 (set) 2>&1 |
1761 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1762 *${as_nl}ac_space=\ *)
1763 sed -n \
1764 "s/'\''/'\''\\\\'\'''\''/g;
1765 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1766 ;; #(
1767 *)
1768 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1769 ;;
1770 esac |
1771 sort
1772)
1773 echo
1774
1775 cat <<\_ASBOX
1776## ----------------- ##
1777## Output variables. ##
1778## ----------------- ##
1779_ASBOX
1780 echo
1781 for ac_var in $ac_subst_vars
1782 do
1783 eval ac_val=\$$ac_var
1784 case $ac_val in
1785 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1786 esac
1787 echo "$ac_var='\''$ac_val'\''"
1788 done | sort
1789 echo
1790
1791 if test -n "$ac_subst_files"; then
1792 cat <<\_ASBOX
1793## ------------------- ##
1794## File substitutions. ##
1795## ------------------- ##
1796_ASBOX
1797 echo
1798 for ac_var in $ac_subst_files
1799 do
1800 eval ac_val=\$$ac_var
1801 case $ac_val in
1802 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1803 esac
1804 echo "$ac_var='\''$ac_val'\''"
1805 done | sort
1806 echo
1807 fi
1808
1809 if test -s confdefs.h; then
1810 cat <<\_ASBOX
1811## ----------- ##
1812## confdefs.h. ##
1813## ----------- ##
1814_ASBOX
1815 echo
1816 cat confdefs.h
1817 echo
1818 fi
1819 test "$ac_signal" != 0 &&
1820 echo "$as_me: caught signal $ac_signal"
1821 echo "$as_me: exit $exit_status"
1822 } >&5
1823 rm -f core *.core core.conftest.* &&
1824 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1825 exit $exit_status
1826' 0
1827for ac_signal in 1 2 13 15; do
1828 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1829done
1830ac_signal=0
1831
1832# confdefs.h avoids OS command line length limits that DEFS can exceed.
1833rm -f -r conftest* confdefs.h
1834
1835# Predefined preprocessor variables.
1836
1837cat >>confdefs.h <<_ACEOF
1838#define PACKAGE_NAME "$PACKAGE_NAME"
1839_ACEOF
1840
1841
1842cat >>confdefs.h <<_ACEOF
1843#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1844_ACEOF
1845
1846
1847cat >>confdefs.h <<_ACEOF
1848#define PACKAGE_VERSION "$PACKAGE_VERSION"
1849_ACEOF
1850
1851
1852cat >>confdefs.h <<_ACEOF
1853#define PACKAGE_STRING "$PACKAGE_STRING"
1854_ACEOF
1855
1856
1857cat >>confdefs.h <<_ACEOF
1858#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1859_ACEOF
1860
1861
1862# Let the site file select an alternate cache file if it wants to.
1863# Prefer explicitly selected file to automatically selected ones.
1864if test -n "$CONFIG_SITE"; then
1865 set x "$CONFIG_SITE"
1866elif test "x$prefix" != xNONE; then
1867 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1868else
1869 set x "$ac_default_prefix/share/config.site" \
1870 "$ac_default_prefix/etc/config.site"
1871fi
1872shift
1873for ac_site_file
1874do
1875 if test -r "$ac_site_file"; then
1876 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1877echo "$as_me: loading site script $ac_site_file" >&6;}
1878 sed 's/^/| /' "$ac_site_file" >&5
1879 . "$ac_site_file"
1880 fi
1881done
1882
1883if test -r "$cache_file"; then
1884 # Some versions of bash will fail to source /dev/null (special
1885 # files actually), so we avoid doing that.
1886 if test -f "$cache_file"; then
1887 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1888echo "$as_me: loading cache $cache_file" >&6;}
1889 case $cache_file in
1890 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1891 *) . "./$cache_file";;
1892 esac
1893 fi
1894else
1895 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1896echo "$as_me: creating cache $cache_file" >&6;}
1897 >$cache_file
1898fi
1899
1900# Check that the precious variables saved in the cache have kept the same
1901# value.
1902ac_cache_corrupted=false
1903for ac_var in $ac_precious_vars; do
1904 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1905 eval ac_new_set=\$ac_env_${ac_var}_set
1906 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1907 eval ac_new_val=\$ac_env_${ac_var}_value
1908 case $ac_old_set,$ac_new_set in
1909 set,)
1910 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1911echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1912 ac_cache_corrupted=: ;;
1913 ,set)
1914 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1915echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1916 ac_cache_corrupted=: ;;
1917 ,);;
1918 *)
1919 if test "x$ac_old_val" != "x$ac_new_val"; then
1920 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1921echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1922 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1923echo "$as_me: former value: $ac_old_val" >&2;}
1924 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1925echo "$as_me: current value: $ac_new_val" >&2;}
1926 ac_cache_corrupted=:
1927 fi;;
1928 esac
1929 # Pass precious variables to config.status.
1930 if test "$ac_new_set" = set; then
1931 case $ac_new_val in
1932 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1933 *) ac_arg=$ac_var=$ac_new_val ;;
1934 esac
1935 case " $ac_configure_args " in
1936 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1937 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1938 esac
1939 fi
1940done
1941if $ac_cache_corrupted; then
1942 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1943echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1944 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1945echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1946 { (exit 1); exit 1; }; }
1947fi
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973ac_ext=c
1974ac_cpp='$CPP $CPPFLAGS'
1975ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1976ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1977ac_compiler_gnu=$ac_cv_c_compiler_gnu
1978
1979
1980am__api_version='1.10'
1981
1982ac_aux_dir=
1983for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1984 if test -f "$ac_dir/install-sh"; then
1985 ac_aux_dir=$ac_dir
1986 ac_install_sh="$ac_aux_dir/install-sh -c"
1987 break
1988 elif test -f "$ac_dir/install.sh"; then
1989 ac_aux_dir=$ac_dir
1990 ac_install_sh="$ac_aux_dir/install.sh -c"
1991 break
1992 elif test -f "$ac_dir/shtool"; then
1993 ac_aux_dir=$ac_dir
1994 ac_install_sh="$ac_aux_dir/shtool install -c"
1995 break
1996 fi
1997done
1998if test -z "$ac_aux_dir"; then
1999 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2000echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2001 { (exit 1); exit 1; }; }
2002fi
2003
2004# These three variables are undocumented and unsupported,
2005# and are intended to be withdrawn in a future Autoconf release.
2006# They can cause serious problems if a builder's source tree is in a directory
2007# whose full name contains unusual characters.
2008ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2009ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2010ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2011
2012
2013# Find a good install program. We prefer a C program (faster),
2014# so one script is as good as another. But avoid the broken or
2015# incompatible versions:
2016# SysV /etc/install, /usr/sbin/install
2017# SunOS /usr/etc/install
2018# IRIX /sbin/install
2019# AIX /bin/install
2020# AmigaOS /C/install, which installs bootblocks on floppy discs
2021# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2022# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2023# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2024# OS/2's system install, which has a completely different semantic
2025# ./install, which can be erroneously created by make from ./install.sh.
2026{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2027echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2028if test -z "$INSTALL"; then
2029if test "${ac_cv_path_install+set}" = set; then
2030 echo $ECHO_N "(cached) $ECHO_C" >&6
2031else
2032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2033for as_dir in $PATH
2034do
2035 IFS=$as_save_IFS
2036 test -z "$as_dir" && as_dir=.
2037 # Account for people who put trailing slashes in PATH elements.
2038case $as_dir/ in
2039 ./ | .// | /cC/* | \
2040 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2041 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2042 /usr/ucb/* ) ;;
2043 *)
2044 # OSF1 and SCO ODT 3.0 have their own names for install.
2045 # Don't use installbsd from OSF since it installs stuff as root
2046 # by default.
2047 for ac_prog in ginstall scoinst install; do
2048 for ac_exec_ext in '' $ac_executable_extensions; do
2049 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2050 if test $ac_prog = install &&
2051 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2052 # AIX install. It has an incompatible calling convention.
2053 :
2054 elif test $ac_prog = install &&
2055 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2056 # program-specific install script used by HP pwplus--don't use.
2057 :
2058 else
2059 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2060 break 3
2061 fi
2062 fi
2063 done
2064 done
2065 ;;
2066esac
2067done
2068IFS=$as_save_IFS
2069
2070
2071fi
2072 if test "${ac_cv_path_install+set}" = set; then
2073 INSTALL=$ac_cv_path_install
2074 else
2075 # As a last resort, use the slow shell script. Don't cache a
2076 # value for INSTALL within a source directory, because that will
2077 # break other packages using the cache if that directory is
2078 # removed, or if the value is a relative name.
2079 INSTALL=$ac_install_sh
2080 fi
2081fi
2082{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2083echo "${ECHO_T}$INSTALL" >&6; }
2084
2085# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2086# It thinks the first close brace ends the variable substitution.
2087test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2088
2089test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2090
2091test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2092
2093{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2094echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2095# Just in case
2096sleep 1
2097echo timestamp > conftest.file
2098# Do `set' in a subshell so we don't clobber the current shell's
2099# arguments. Must try -L first in case configure is actually a
2100# symlink; some systems play weird games with the mod time of symlinks
2101# (eg FreeBSD returns the mod time of the symlink's containing
2102# directory).
2103if (
2104 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2105 if test "$*" = "X"; then
2106 # -L didn't work.
2107 set X `ls -t $srcdir/configure conftest.file`
2108 fi
2109 rm -f conftest.file
2110 if test "$*" != "X $srcdir/configure conftest.file" \
2111 && test "$*" != "X conftest.file $srcdir/configure"; then
2112
2113 # If neither matched, then we have a broken ls. This can happen
2114 # if, for instance, CONFIG_SHELL is bash and it inherits a
2115 # broken ls alias from the environment. This has actually
2116 # happened. Such a system could not be considered "sane".
2117 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2118alias in your environment" >&5
2119echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2120alias in your environment" >&2;}
2121 { (exit 1); exit 1; }; }
2122 fi
2123
2124 test "$2" = conftest.file
2125 )
2126then
2127 # Ok.
2128 :
2129else
2130 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2131Check your system clock" >&5
2132echo "$as_me: error: newly created file is older than distributed files!
2133Check your system clock" >&2;}
2134 { (exit 1); exit 1; }; }
2135fi
2136{ echo "$as_me:$LINENO: result: yes" >&5
2137echo "${ECHO_T}yes" >&6; }
2138test "$program_prefix" != NONE &&
2139 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2140# Use a double $ so make ignores it.
2141test "$program_suffix" != NONE &&
2142 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2143# Double any \ or $. echo might interpret backslashes.
2144# By default was `s,x,x', remove it if useless.
2145cat <<\_ACEOF >conftest.sed
2146s/[\\$]/&&/g;s/;s,x,x,$//
2147_ACEOF
2148program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2149rm -f conftest.sed
2150
2151# expand $ac_aux_dir to an absolute path
2152am_aux_dir=`cd $ac_aux_dir && pwd`
2153
2154test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2155# Use eval to expand $SHELL
2156if eval "$MISSING --run true"; then
2157 am_missing_run="$MISSING --run "
2158else
2159 am_missing_run=
2160 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2161echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2162fi
2163
2164{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2165echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2166if test -z "$MKDIR_P"; then
2167 if test "${ac_cv_path_mkdir+set}" = set; then
2168 echo $ECHO_N "(cached) $ECHO_C" >&6
2169else
2170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2171for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2172do
2173 IFS=$as_save_IFS
2174 test -z "$as_dir" && as_dir=.
2175 for ac_prog in mkdir gmkdir; do
2176 for ac_exec_ext in '' $ac_executable_extensions; do
2177 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2178 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2179 'mkdir (GNU coreutils) '* | \
2180 'mkdir (coreutils) '* | \
2181 'mkdir (fileutils) '4.1*)
2182 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2183 break 3;;
2184 esac
2185 done
2186 done
2187done
2188IFS=$as_save_IFS
2189
2190fi
2191
2192 if test "${ac_cv_path_mkdir+set}" = set; then
2193 MKDIR_P="$ac_cv_path_mkdir -p"
2194 else
2195 # As a last resort, use the slow shell script. Don't cache a
2196 # value for MKDIR_P within a source directory, because that will
2197 # break other packages using the cache if that directory is
2198 # removed, or if the value is a relative name.
2199 test -d ./--version && rmdir ./--version
2200 MKDIR_P="$ac_install_sh -d"
2201 fi
2202fi
2203{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2204echo "${ECHO_T}$MKDIR_P" >&6; }
2205
2206mkdir_p="$MKDIR_P"
2207case $mkdir_p in
2208 [\\/$]* | ?:[\\/]*) ;;
2209 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2210esac
2211
2212for ac_prog in gawk mawk nawk awk
2213do
2214 # Extract the first word of "$ac_prog", so it can be a program name with args.
2215set dummy $ac_prog; ac_word=$2
2216{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2217echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2218if test "${ac_cv_prog_AWK+set}" = set; then
2219 echo $ECHO_N "(cached) $ECHO_C" >&6
2220else
2221 if test -n "$AWK"; then
2222 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2223else
2224as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2225for as_dir in $PATH
2226do
2227 IFS=$as_save_IFS
2228 test -z "$as_dir" && as_dir=.
2229 for ac_exec_ext in '' $ac_executable_extensions; do
2230 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2231 ac_cv_prog_AWK="$ac_prog"
2232 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2233 break 2
2234 fi
2235done
2236done
2237IFS=$as_save_IFS
2238
2239fi
2240fi
2241AWK=$ac_cv_prog_AWK
2242if test -n "$AWK"; then
2243 { echo "$as_me:$LINENO: result: $AWK" >&5
2244echo "${ECHO_T}$AWK" >&6; }
2245else
2246 { echo "$as_me:$LINENO: result: no" >&5
2247echo "${ECHO_T}no" >&6; }
2248fi
2249
2250
2251 test -n "$AWK" && break
2252done
2253
2254{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2255echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2256set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2257if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2258 echo $ECHO_N "(cached) $ECHO_C" >&6
2259else
2260 cat >conftest.make <<\_ACEOF
2261SHELL = /bin/sh
2262all:
2263 @echo '@@@%%%=$(MAKE)=@@@%%%'
2264_ACEOF
2265# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2266case `${MAKE-make} -f conftest.make 2>/dev/null` in
2267 *@@@%%%=?*=@@@%%%*)
2268 eval ac_cv_prog_make_${ac_make}_set=yes;;
2269 *)
2270 eval ac_cv_prog_make_${ac_make}_set=no;;
2271esac
2272rm -f conftest.make
2273fi
2274if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2275 { echo "$as_me:$LINENO: result: yes" >&5
2276echo "${ECHO_T}yes" >&6; }
2277 SET_MAKE=
2278else
2279 { echo "$as_me:$LINENO: result: no" >&5
2280echo "${ECHO_T}no" >&6; }
2281 SET_MAKE="MAKE=${MAKE-make}"
2282fi
2283
2284rm -rf .tst 2>/dev/null
2285mkdir .tst 2>/dev/null
2286if test -d .tst; then
2287 am__leading_dot=.
2288else
2289 am__leading_dot=_
2290fi
2291rmdir .tst 2>/dev/null
2292
2293if test "`cd $srcdir && pwd`" != "`pwd`"; then
2294 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2295 # is not polluted with repeated "-I."
2296 am__isrc=' -I$(srcdir)'
2297 # test to see if srcdir already configured
2298 if test -f $srcdir/config.status; then
2299 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2300echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2301 { (exit 1); exit 1; }; }
2302 fi
2303fi
2304
2305# test whether we have cygpath
2306if test -z "$CYGPATH_W"; then
2307 if (cygpath --version) >/dev/null 2>/dev/null; then
2308 CYGPATH_W='cygpath -w'
2309 else
2310 CYGPATH_W=echo
2311 fi
2312fi
2313
2314
2315# Define the identity of the package.
2316 PACKAGE=libratbox
2317 VERSION=devel
2318
2319
2320# Some tools Automake needs.
2321
2322ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2323
2324
2325AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2326
2327
2328AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2329
2330
2331AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2332
2333
2334MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2335
2336install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2337
2338# Installed binaries are usually stripped using `strip' when the user
2339# run `make install-strip'. However `strip' might not be the right
2340# tool to use in cross-compilation environments, therefore Automake
2341# will honor the `STRIP' environment variable to overrule this program.
2342if test "$cross_compiling" != no; then
2343 if test -n "$ac_tool_prefix"; then
2344 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2345set dummy ${ac_tool_prefix}strip; ac_word=$2
2346{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2347echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2348if test "${ac_cv_prog_STRIP+set}" = set; then
2349 echo $ECHO_N "(cached) $ECHO_C" >&6
2350else
2351 if test -n "$STRIP"; then
2352 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2353else
2354as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2355for as_dir in $PATH
2356do
2357 IFS=$as_save_IFS
2358 test -z "$as_dir" && as_dir=.
2359 for ac_exec_ext in '' $ac_executable_extensions; do
2360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2361 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2362 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2363 break 2
2364 fi
2365done
2366done
2367IFS=$as_save_IFS
2368
2369fi
2370fi
2371STRIP=$ac_cv_prog_STRIP
2372if test -n "$STRIP"; then
2373 { echo "$as_me:$LINENO: result: $STRIP" >&5
2374echo "${ECHO_T}$STRIP" >&6; }
2375else
2376 { echo "$as_me:$LINENO: result: no" >&5
2377echo "${ECHO_T}no" >&6; }
2378fi
2379
2380
2381fi
2382if test -z "$ac_cv_prog_STRIP"; then
2383 ac_ct_STRIP=$STRIP
2384 # Extract the first word of "strip", so it can be a program name with args.
2385set dummy strip; ac_word=$2
2386{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2387echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2388if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2389 echo $ECHO_N "(cached) $ECHO_C" >&6
2390else
2391 if test -n "$ac_ct_STRIP"; then
2392 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2393else
2394as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2395for as_dir in $PATH
2396do
2397 IFS=$as_save_IFS
2398 test -z "$as_dir" && as_dir=.
2399 for ac_exec_ext in '' $ac_executable_extensions; do
2400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2401 ac_cv_prog_ac_ct_STRIP="strip"
2402 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2403 break 2
2404 fi
2405done
2406done
2407IFS=$as_save_IFS
2408
2409fi
2410fi
2411ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2412if test -n "$ac_ct_STRIP"; then
2413 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2414echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2415else
2416 { echo "$as_me:$LINENO: result: no" >&5
2417echo "${ECHO_T}no" >&6; }
2418fi
2419
2420 if test "x$ac_ct_STRIP" = x; then
2421 STRIP=":"
2422 else
2423 case $cross_compiling:$ac_tool_warned in
2424yes:)
2425{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2426whose name does not start with the host triplet. If you think this
2427configuration is useful to you, please write to autoconf@gnu.org." >&5
2428echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2429whose name does not start with the host triplet. If you think this
2430configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2431ac_tool_warned=yes ;;
2432esac
2433 STRIP=$ac_ct_STRIP
2434 fi
2435else
2436 STRIP="$ac_cv_prog_STRIP"
2437fi
2438
2439fi
2440INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2441
2442# We need awk for the "check" target. The system "awk" is bad on
2443# some platforms.
2444# Always define AMTAR for backward compatibility.
2445
2446AMTAR=${AMTAR-"${am_missing_run}tar"}
2447
2448am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2449
2450
2451
2452
2453
2454
2455ac_config_headers="$ac_config_headers include/libratbox_config.h"
2456
2457
2458
2459
2460cat >>confdefs.h <<\_ACEOF
2461#define _GNU_SOURCE 1
2462_ACEOF
2463
2464
2465
2466DEPDIR="${am__leading_dot}deps"
2467
2468ac_config_commands="$ac_config_commands depfiles"
2469
2470
2471am_make=${MAKE-make}
2472cat > confinc << 'END'
2473am__doit:
2474 @echo done
2475.PHONY: am__doit
2476END
2477# If we don't find an include directive, just comment out the code.
2478{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2479echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2480am__include="#"
2481am__quote=
2482_am_result=none
2483# First try GNU make style include.
2484echo "include confinc" > confmf
2485# We grep out `Entering directory' and `Leaving directory'
2486# messages which can occur if `w' ends up in MAKEFLAGS.
2487# In particular we don't look at `^make:' because GNU make might
2488# be invoked under some other name (usually "gmake"), in which
2489# case it prints its new name instead of `make'.
2490if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2491 am__include=include
2492 am__quote=
2493 _am_result=GNU
2494fi
2495# Now try BSD make style include.
2496if test "$am__include" = "#"; then
2497 echo '.include "confinc"' > confmf
2498 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2499 am__include=.include
2500 am__quote="\""
2501 _am_result=BSD
2502 fi
2503fi
2504
2505
2506{ echo "$as_me:$LINENO: result: $_am_result" >&5
2507echo "${ECHO_T}$_am_result" >&6; }
2508rm -f confinc confmf
2509
2510# Check whether --enable-dependency-tracking was given.
2511if test "${enable_dependency_tracking+set}" = set; then
2512 enableval=$enable_dependency_tracking;
2513fi
2514
2515if test "x$enable_dependency_tracking" != xno; then
2516 am_depcomp="$ac_aux_dir/depcomp"
2517 AMDEPBACKSLASH='\'
2518fi
2519 if test "x$enable_dependency_tracking" != xno; then
2520 AMDEP_TRUE=
2521 AMDEP_FALSE='#'
2522else
2523 AMDEP_TRUE='#'
2524 AMDEP_FALSE=
2525fi
2526
2527
2528ac_ext=c
2529ac_cpp='$CPP $CPPFLAGS'
2530ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2531ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2532ac_compiler_gnu=$ac_cv_c_compiler_gnu
2533if test -n "$ac_tool_prefix"; then
2534 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2535set dummy ${ac_tool_prefix}gcc; ac_word=$2
2536{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2537echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2538if test "${ac_cv_prog_CC+set}" = set; then
2539 echo $ECHO_N "(cached) $ECHO_C" >&6
2540else
2541 if test -n "$CC"; then
2542 ac_cv_prog_CC="$CC" # Let the user override the test.
2543else
2544as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2545for as_dir in $PATH
2546do
2547 IFS=$as_save_IFS
2548 test -z "$as_dir" && as_dir=.
2549 for ac_exec_ext in '' $ac_executable_extensions; do
2550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2551 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2552 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2553 break 2
2554 fi
2555done
2556done
2557IFS=$as_save_IFS
2558
2559fi
2560fi
2561CC=$ac_cv_prog_CC
2562if test -n "$CC"; then
2563 { echo "$as_me:$LINENO: result: $CC" >&5
2564echo "${ECHO_T}$CC" >&6; }
2565else
2566 { echo "$as_me:$LINENO: result: no" >&5
2567echo "${ECHO_T}no" >&6; }
2568fi
2569
2570
2571fi
2572if test -z "$ac_cv_prog_CC"; then
2573 ac_ct_CC=$CC
2574 # Extract the first word of "gcc", so it can be a program name with args.
2575set dummy gcc; ac_word=$2
2576{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2577echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2578if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2579 echo $ECHO_N "(cached) $ECHO_C" >&6
2580else
2581 if test -n "$ac_ct_CC"; then
2582 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2583else
2584as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2585for as_dir in $PATH
2586do
2587 IFS=$as_save_IFS
2588 test -z "$as_dir" && as_dir=.
2589 for ac_exec_ext in '' $ac_executable_extensions; do
2590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2591 ac_cv_prog_ac_ct_CC="gcc"
2592 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2593 break 2
2594 fi
2595done
2596done
2597IFS=$as_save_IFS
2598
2599fi
2600fi
2601ac_ct_CC=$ac_cv_prog_ac_ct_CC
2602if test -n "$ac_ct_CC"; then
2603 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2604echo "${ECHO_T}$ac_ct_CC" >&6; }
2605else
2606 { echo "$as_me:$LINENO: result: no" >&5
2607echo "${ECHO_T}no" >&6; }
2608fi
2609
2610 if test "x$ac_ct_CC" = x; then
2611 CC=""
2612 else
2613 case $cross_compiling:$ac_tool_warned in
2614yes:)
2615{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2616whose name does not start with the host triplet. If you think this
2617configuration is useful to you, please write to autoconf@gnu.org." >&5
2618echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2619whose name does not start with the host triplet. If you think this
2620configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2621ac_tool_warned=yes ;;
2622esac
2623 CC=$ac_ct_CC
2624 fi
2625else
2626 CC="$ac_cv_prog_CC"
2627fi
2628
2629if test -z "$CC"; then
2630 if test -n "$ac_tool_prefix"; then
2631 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2632set dummy ${ac_tool_prefix}cc; ac_word=$2
2633{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2634echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2635if test "${ac_cv_prog_CC+set}" = set; then
2636 echo $ECHO_N "(cached) $ECHO_C" >&6
2637else
2638 if test -n "$CC"; then
2639 ac_cv_prog_CC="$CC" # Let the user override the test.
2640else
2641as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2642for as_dir in $PATH
2643do
2644 IFS=$as_save_IFS
2645 test -z "$as_dir" && as_dir=.
2646 for ac_exec_ext in '' $ac_executable_extensions; do
2647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2648 ac_cv_prog_CC="${ac_tool_prefix}cc"
2649 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2650 break 2
2651 fi
2652done
2653done
2654IFS=$as_save_IFS
2655
2656fi
2657fi
2658CC=$ac_cv_prog_CC
2659if test -n "$CC"; then
2660 { echo "$as_me:$LINENO: result: $CC" >&5
2661echo "${ECHO_T}$CC" >&6; }
2662else
2663 { echo "$as_me:$LINENO: result: no" >&5
2664echo "${ECHO_T}no" >&6; }
2665fi
2666
2667
2668 fi
2669fi
2670if test -z "$CC"; then
2671 # Extract the first word of "cc", so it can be a program name with args.
2672set dummy cc; ac_word=$2
2673{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2674echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2675if test "${ac_cv_prog_CC+set}" = set; then
2676 echo $ECHO_N "(cached) $ECHO_C" >&6
2677else
2678 if test -n "$CC"; then
2679 ac_cv_prog_CC="$CC" # Let the user override the test.
2680else
2681 ac_prog_rejected=no
2682as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2683for as_dir in $PATH
2684do
2685 IFS=$as_save_IFS
2686 test -z "$as_dir" && as_dir=.
2687 for ac_exec_ext in '' $ac_executable_extensions; do
2688 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2689 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2690 ac_prog_rejected=yes
2691 continue
2692 fi
2693 ac_cv_prog_CC="cc"
2694 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2695 break 2
2696 fi
2697done
2698done
2699IFS=$as_save_IFS
2700
2701if test $ac_prog_rejected = yes; then
2702 # We found a bogon in the path, so make sure we never use it.
2703 set dummy $ac_cv_prog_CC
2704 shift
2705 if test $# != 0; then
2706 # We chose a different compiler from the bogus one.
2707 # However, it has the same basename, so the bogon will be chosen
2708 # first if we set CC to just the basename; use the full file name.
2709 shift
2710 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2711 fi
2712fi
2713fi
2714fi
2715CC=$ac_cv_prog_CC
2716if test -n "$CC"; then
2717 { echo "$as_me:$LINENO: result: $CC" >&5
2718echo "${ECHO_T}$CC" >&6; }
2719else
2720 { echo "$as_me:$LINENO: result: no" >&5
2721echo "${ECHO_T}no" >&6; }
2722fi
2723
2724
2725fi
2726if test -z "$CC"; then
2727 if test -n "$ac_tool_prefix"; then
2728 for ac_prog in cl.exe
2729 do
2730 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2731set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2732{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2733echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2734if test "${ac_cv_prog_CC+set}" = set; then
2735 echo $ECHO_N "(cached) $ECHO_C" >&6
2736else
2737 if test -n "$CC"; then
2738 ac_cv_prog_CC="$CC" # Let the user override the test.
2739else
2740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2741for as_dir in $PATH
2742do
2743 IFS=$as_save_IFS
2744 test -z "$as_dir" && as_dir=.
2745 for ac_exec_ext in '' $ac_executable_extensions; do
2746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2747 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2748 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2749 break 2
2750 fi
2751done
2752done
2753IFS=$as_save_IFS
2754
2755fi
2756fi
2757CC=$ac_cv_prog_CC
2758if test -n "$CC"; then
2759 { echo "$as_me:$LINENO: result: $CC" >&5
2760echo "${ECHO_T}$CC" >&6; }
2761else
2762 { echo "$as_me:$LINENO: result: no" >&5
2763echo "${ECHO_T}no" >&6; }
2764fi
2765
2766
2767 test -n "$CC" && break
2768 done
2769fi
2770if test -z "$CC"; then
2771 ac_ct_CC=$CC
2772 for ac_prog in cl.exe
2773do
2774 # Extract the first word of "$ac_prog", so it can be a program name with args.
2775set dummy $ac_prog; ac_word=$2
2776{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2777echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2778if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2779 echo $ECHO_N "(cached) $ECHO_C" >&6
2780else
2781 if test -n "$ac_ct_CC"; then
2782 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2783else
2784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2785for as_dir in $PATH
2786do
2787 IFS=$as_save_IFS
2788 test -z "$as_dir" && as_dir=.
2789 for ac_exec_ext in '' $ac_executable_extensions; do
2790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2791 ac_cv_prog_ac_ct_CC="$ac_prog"
2792 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2793 break 2
2794 fi
2795done
2796done
2797IFS=$as_save_IFS
2798
2799fi
2800fi
2801ac_ct_CC=$ac_cv_prog_ac_ct_CC
2802if test -n "$ac_ct_CC"; then
2803 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2804echo "${ECHO_T}$ac_ct_CC" >&6; }
2805else
2806 { echo "$as_me:$LINENO: result: no" >&5
2807echo "${ECHO_T}no" >&6; }
2808fi
2809
2810
2811 test -n "$ac_ct_CC" && break
2812done
2813
2814 if test "x$ac_ct_CC" = x; then
2815 CC=""
2816 else
2817 case $cross_compiling:$ac_tool_warned in
2818yes:)
2819{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2820whose name does not start with the host triplet. If you think this
2821configuration is useful to you, please write to autoconf@gnu.org." >&5
2822echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2823whose name does not start with the host triplet. If you think this
2824configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2825ac_tool_warned=yes ;;
2826esac
2827 CC=$ac_ct_CC
2828 fi
2829fi
2830
2831fi
2832
2833
2834test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2835See \`config.log' for more details." >&5
2836echo "$as_me: error: no acceptable C compiler found in \$PATH
2837See \`config.log' for more details." >&2;}
2838 { (exit 1); exit 1; }; }
2839
2840# Provide some information about the compiler.
2841echo "$as_me:$LINENO: checking for C compiler version" >&5
2842ac_compiler=`set X $ac_compile; echo $2`
2843{ (ac_try="$ac_compiler --version >&5"
2844case "(($ac_try" in
2845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2846 *) ac_try_echo=$ac_try;;
2847esac
2848eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2849 (eval "$ac_compiler --version >&5") 2>&5
2850 ac_status=$?
2851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2852 (exit $ac_status); }
2853{ (ac_try="$ac_compiler -v >&5"
2854case "(($ac_try" in
2855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2856 *) ac_try_echo=$ac_try;;
2857esac
2858eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2859 (eval "$ac_compiler -v >&5") 2>&5
2860 ac_status=$?
2861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2862 (exit $ac_status); }
2863{ (ac_try="$ac_compiler -V >&5"
2864case "(($ac_try" in
2865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2866 *) ac_try_echo=$ac_try;;
2867esac
2868eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2869 (eval "$ac_compiler -V >&5") 2>&5
2870 ac_status=$?
2871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2872 (exit $ac_status); }
2873
2874cat >conftest.$ac_ext <<_ACEOF
2875/* confdefs.h. */
2876_ACEOF
2877cat confdefs.h >>conftest.$ac_ext
2878cat >>conftest.$ac_ext <<_ACEOF
2879/* end confdefs.h. */
2880
2881int
2882main ()
2883{
2884
2885 ;
2886 return 0;
2887}
2888_ACEOF
2889ac_clean_files_save=$ac_clean_files
2890ac_clean_files="$ac_clean_files a.out a.exe b.out"
2891# Try to create an executable without -o first, disregard a.out.
2892# It will help us diagnose broken compilers, and finding out an intuition
2893# of exeext.
2894{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2895echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2896ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2897#
2898# List of possible output files, starting from the most likely.
2899# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2900# only as a last resort. b.out is created by i960 compilers.
2901ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2902#
2903# The IRIX 6 linker writes into existing files which may not be
2904# executable, retaining their permissions. Remove them first so a
2905# subsequent execution test works.
2906ac_rmfiles=
2907for ac_file in $ac_files
2908do
2909 case $ac_file in
2910 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2911 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2912 esac
2913done
2914rm -f $ac_rmfiles
2915
2916if { (ac_try="$ac_link_default"
2917case "(($ac_try" in
2918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2919 *) ac_try_echo=$ac_try;;
2920esac
2921eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2922 (eval "$ac_link_default") 2>&5
2923 ac_status=$?
2924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2925 (exit $ac_status); }; then
2926 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2927# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2928# in a Makefile. We should not override ac_cv_exeext if it was cached,
2929# so that the user can short-circuit this test for compilers unknown to
2930# Autoconf.
2931for ac_file in $ac_files ''
2932do
2933 test -f "$ac_file" || continue
2934 case $ac_file in
2935 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2936 ;;
2937 [ab].out )
2938 # We found the default executable, but exeext='' is most
2939 # certainly right.
2940 break;;
2941 *.* )
2942 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2943 then :; else
2944 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2945 fi
2946 # We set ac_cv_exeext here because the later test for it is not
2947 # safe: cross compilers may not add the suffix if given an `-o'
2948 # argument, so we may need to know it at that point already.
2949 # Even if this section looks crufty: it has the advantage of
2950 # actually working.
2951 break;;
2952 * )
2953 break;;
2954 esac
2955done
2956test "$ac_cv_exeext" = no && ac_cv_exeext=
2957
2958else
2959 ac_file=''
2960fi
2961
2962{ echo "$as_me:$LINENO: result: $ac_file" >&5
2963echo "${ECHO_T}$ac_file" >&6; }
2964if test -z "$ac_file"; then
2965 echo "$as_me: failed program was:" >&5
2966sed 's/^/| /' conftest.$ac_ext >&5
2967
2968{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2969See \`config.log' for more details." >&5
2970echo "$as_me: error: C compiler cannot create executables
2971See \`config.log' for more details." >&2;}
2972 { (exit 77); exit 77; }; }
2973fi
2974
2975ac_exeext=$ac_cv_exeext
2976
2977# Check that the compiler produces executables we can run. If not, either
2978# the compiler is broken, or we cross compile.
2979{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2980echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2981# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2982# If not cross compiling, check that we can run a simple program.
2983if test "$cross_compiling" != yes; then
2984 if { ac_try='./$ac_file'
2985 { (case "(($ac_try" in
2986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2987 *) ac_try_echo=$ac_try;;
2988esac
2989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2990 (eval "$ac_try") 2>&5
2991 ac_status=$?
2992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2993 (exit $ac_status); }; }; then
2994 cross_compiling=no
2995 else
2996 if test "$cross_compiling" = maybe; then
2997 cross_compiling=yes
2998 else
2999 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3000If you meant to cross compile, use \`--host'.
3001See \`config.log' for more details." >&5
3002echo "$as_me: error: cannot run C compiled programs.
3003If you meant to cross compile, use \`--host'.
3004See \`config.log' for more details." >&2;}
3005 { (exit 1); exit 1; }; }
3006 fi
3007 fi
3008fi
3009{ echo "$as_me:$LINENO: result: yes" >&5
3010echo "${ECHO_T}yes" >&6; }
3011
3012rm -f a.out a.exe conftest$ac_cv_exeext b.out
3013ac_clean_files=$ac_clean_files_save
3014# Check that the compiler produces executables we can run. If not, either
3015# the compiler is broken, or we cross compile.
3016{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3017echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3018{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
3019echo "${ECHO_T}$cross_compiling" >&6; }
3020
3021{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
3022echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3023if { (ac_try="$ac_link"
3024case "(($ac_try" in
3025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3026 *) ac_try_echo=$ac_try;;
3027esac
3028eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3029 (eval "$ac_link") 2>&5
3030 ac_status=$?
3031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3032 (exit $ac_status); }; then
3033 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3034# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3035# work properly (i.e., refer to `conftest.exe'), while it won't with
3036# `rm'.
3037for ac_file in conftest.exe conftest conftest.*; do
3038 test -f "$ac_file" || continue
3039 case $ac_file in
3040 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3041 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3042 break;;
3043 * ) break;;
3044 esac
3045done
3046else
3047 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3048See \`config.log' for more details." >&5
3049echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3050See \`config.log' for more details." >&2;}
3051 { (exit 1); exit 1; }; }
3052fi
3053
3054rm -f conftest$ac_cv_exeext
3055{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3056echo "${ECHO_T}$ac_cv_exeext" >&6; }
3057
3058rm -f conftest.$ac_ext
3059EXEEXT=$ac_cv_exeext
3060ac_exeext=$EXEEXT
3061{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
3062echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3063if test "${ac_cv_objext+set}" = set; then
3064 echo $ECHO_N "(cached) $ECHO_C" >&6
3065else
3066 cat >conftest.$ac_ext <<_ACEOF
3067/* confdefs.h. */
3068_ACEOF
3069cat confdefs.h >>conftest.$ac_ext
3070cat >>conftest.$ac_ext <<_ACEOF
3071/* end confdefs.h. */
3072
3073int
3074main ()
3075{
3076
3077 ;
3078 return 0;
3079}
3080_ACEOF
3081rm -f conftest.o conftest.obj
3082if { (ac_try="$ac_compile"
3083case "(($ac_try" in
3084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3085 *) ac_try_echo=$ac_try;;
3086esac
3087eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3088 (eval "$ac_compile") 2>&5
3089 ac_status=$?
3090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3091 (exit $ac_status); }; then
3092 for ac_file in conftest.o conftest.obj conftest.*; do
3093 test -f "$ac_file" || continue;
3094 case $ac_file in
3095 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3096 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3097 break;;
3098 esac
3099done
3100else
3101 echo "$as_me: failed program was:" >&5
3102sed 's/^/| /' conftest.$ac_ext >&5
3103
3104{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3105See \`config.log' for more details." >&5
3106echo "$as_me: error: cannot compute suffix of object files: cannot compile
3107See \`config.log' for more details." >&2;}
3108 { (exit 1); exit 1; }; }
3109fi
3110
3111rm -f conftest.$ac_cv_objext conftest.$ac_ext
3112fi
3113{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3114echo "${ECHO_T}$ac_cv_objext" >&6; }
3115OBJEXT=$ac_cv_objext
3116ac_objext=$OBJEXT
3117{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3118echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3119if test "${ac_cv_c_compiler_gnu+set}" = set; then
3120 echo $ECHO_N "(cached) $ECHO_C" >&6
3121else
3122 cat >conftest.$ac_ext <<_ACEOF
3123/* confdefs.h. */
3124_ACEOF
3125cat confdefs.h >>conftest.$ac_ext
3126cat >>conftest.$ac_ext <<_ACEOF
3127/* end confdefs.h. */
3128
3129int
3130main ()
3131{
3132#ifndef __GNUC__
3133 choke me
3134#endif
3135
3136 ;
3137 return 0;
3138}
3139_ACEOF
3140rm -f conftest.$ac_objext
3141if { (ac_try="$ac_compile"
3142case "(($ac_try" in
3143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3144 *) ac_try_echo=$ac_try;;
3145esac
3146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3147 (eval "$ac_compile") 2>conftest.er1
3148 ac_status=$?
3149 grep -v '^ *+' conftest.er1 >conftest.err
3150 rm -f conftest.er1
3151 cat conftest.err >&5
3152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3153 (exit $ac_status); } && {
3154 test -z "$ac_c_werror_flag" ||
3155 test ! -s conftest.err
3156 } && test -s conftest.$ac_objext; then
3157 ac_compiler_gnu=yes
3158else
3159 echo "$as_me: failed program was:" >&5
3160sed 's/^/| /' conftest.$ac_ext >&5
3161
3162 ac_compiler_gnu=no
3163fi
3164
3165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3166ac_cv_c_compiler_gnu=$ac_compiler_gnu
3167
3168fi
3169{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3170echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3171GCC=`test $ac_compiler_gnu = yes && echo yes`
3172ac_test_CFLAGS=${CFLAGS+set}
3173ac_save_CFLAGS=$CFLAGS
3174{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3175echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3176if test "${ac_cv_prog_cc_g+set}" = set; then
3177 echo $ECHO_N "(cached) $ECHO_C" >&6
3178else
3179 ac_save_c_werror_flag=$ac_c_werror_flag
3180 ac_c_werror_flag=yes
3181 ac_cv_prog_cc_g=no
3182 CFLAGS="-g"
3183 cat >conftest.$ac_ext <<_ACEOF
3184/* confdefs.h. */
3185_ACEOF
3186cat confdefs.h >>conftest.$ac_ext
3187cat >>conftest.$ac_ext <<_ACEOF
3188/* end confdefs.h. */
3189
3190int
3191main ()
3192{
3193
3194 ;
3195 return 0;
3196}
3197_ACEOF
3198rm -f conftest.$ac_objext
3199if { (ac_try="$ac_compile"
3200case "(($ac_try" in
3201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3202 *) ac_try_echo=$ac_try;;
3203esac
3204eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3205 (eval "$ac_compile") 2>conftest.er1
3206 ac_status=$?
3207 grep -v '^ *+' conftest.er1 >conftest.err
3208 rm -f conftest.er1
3209 cat conftest.err >&5
3210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3211 (exit $ac_status); } && {
3212 test -z "$ac_c_werror_flag" ||
3213 test ! -s conftest.err
3214 } && test -s conftest.$ac_objext; then
3215 ac_cv_prog_cc_g=yes
3216else
3217 echo "$as_me: failed program was:" >&5
3218sed 's/^/| /' conftest.$ac_ext >&5
3219
3220 CFLAGS=""
3221 cat >conftest.$ac_ext <<_ACEOF
3222/* confdefs.h. */
3223_ACEOF
3224cat confdefs.h >>conftest.$ac_ext
3225cat >>conftest.$ac_ext <<_ACEOF
3226/* end confdefs.h. */
3227
3228int
3229main ()
3230{
3231
3232 ;
3233 return 0;
3234}
3235_ACEOF
3236rm -f conftest.$ac_objext
3237if { (ac_try="$ac_compile"
3238case "(($ac_try" in
3239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3240 *) ac_try_echo=$ac_try;;
3241esac
3242eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3243 (eval "$ac_compile") 2>conftest.er1
3244 ac_status=$?
3245 grep -v '^ *+' conftest.er1 >conftest.err
3246 rm -f conftest.er1
3247 cat conftest.err >&5
3248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3249 (exit $ac_status); } && {
3250 test -z "$ac_c_werror_flag" ||
3251 test ! -s conftest.err
3252 } && test -s conftest.$ac_objext; then
3253 :
3254else
3255 echo "$as_me: failed program was:" >&5
3256sed 's/^/| /' conftest.$ac_ext >&5
3257
3258 ac_c_werror_flag=$ac_save_c_werror_flag
3259 CFLAGS="-g"
3260 cat >conftest.$ac_ext <<_ACEOF
3261/* confdefs.h. */
3262_ACEOF
3263cat confdefs.h >>conftest.$ac_ext
3264cat >>conftest.$ac_ext <<_ACEOF
3265/* end confdefs.h. */
3266
3267int
3268main ()
3269{
3270
3271 ;
3272 return 0;
3273}
3274_ACEOF
3275rm -f conftest.$ac_objext
3276if { (ac_try="$ac_compile"
3277case "(($ac_try" in
3278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3279 *) ac_try_echo=$ac_try;;
3280esac
3281eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3282 (eval "$ac_compile") 2>conftest.er1
3283 ac_status=$?
3284 grep -v '^ *+' conftest.er1 >conftest.err
3285 rm -f conftest.er1
3286 cat conftest.err >&5
3287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3288 (exit $ac_status); } && {
3289 test -z "$ac_c_werror_flag" ||
3290 test ! -s conftest.err
3291 } && test -s conftest.$ac_objext; then
3292 ac_cv_prog_cc_g=yes
3293else
3294 echo "$as_me: failed program was:" >&5
3295sed 's/^/| /' conftest.$ac_ext >&5
3296
3297
3298fi
3299
3300rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3301fi
3302
3303rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3304fi
3305
3306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3307 ac_c_werror_flag=$ac_save_c_werror_flag
3308fi
3309{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3310echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3311if test "$ac_test_CFLAGS" = set; then
3312 CFLAGS=$ac_save_CFLAGS
3313elif test $ac_cv_prog_cc_g = yes; then
3314 if test "$GCC" = yes; then
3315 CFLAGS="-g -O2"
3316 else
3317 CFLAGS="-g"
3318 fi
3319else
3320 if test "$GCC" = yes; then
3321 CFLAGS="-O2"
3322 else
3323 CFLAGS=
3324 fi
3325fi
3326{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3327echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3328if test "${ac_cv_prog_cc_c89+set}" = set; then
3329 echo $ECHO_N "(cached) $ECHO_C" >&6
3330else
3331 ac_cv_prog_cc_c89=no
3332ac_save_CC=$CC
3333cat >conftest.$ac_ext <<_ACEOF
3334/* confdefs.h. */
3335_ACEOF
3336cat confdefs.h >>conftest.$ac_ext
3337cat >>conftest.$ac_ext <<_ACEOF
3338/* end confdefs.h. */
3339#include <stdarg.h>
3340#include <stdio.h>
3341#include <sys/types.h>
3342#include <sys/stat.h>
3343/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3344struct buf { int x; };
3345FILE * (*rcsopen) (struct buf *, struct stat *, int);
3346static char *e (p, i)
3347 char **p;
3348 int i;
3349{
3350 return p[i];
3351}
3352static char *f (char * (*g) (char **, int), char **p, ...)
3353{
3354 char *s;
3355 va_list v;
3356 va_start (v,p);
3357 s = g (p, va_arg (v,int));
3358 va_end (v);
3359 return s;
3360}
3361
3362/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3363 function prototypes and stuff, but not '\xHH' hex character constants.
3364 These don't provoke an error unfortunately, instead are silently treated
3365 as 'x'. The following induces an error, until -std is added to get
3366 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3367 array size at least. It's necessary to write '\x00'==0 to get something
3368 that's true only with -std. */
3369int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3370
3371/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3372 inside strings and character constants. */
3373#define FOO(x) 'x'
3374int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3375
3376int test (int i, double x);
3377struct s1 {int (*f) (int a);};
3378struct s2 {int (*f) (double a);};
3379int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3380int argc;
3381char **argv;
3382int
3383main ()
3384{
3385return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3386 ;
3387 return 0;
3388}
3389_ACEOF
3390for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3391 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3392do
3393 CC="$ac_save_CC $ac_arg"
3394 rm -f conftest.$ac_objext
3395if { (ac_try="$ac_compile"
3396case "(($ac_try" in
3397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3398 *) ac_try_echo=$ac_try;;
3399esac
3400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3401 (eval "$ac_compile") 2>conftest.er1
3402 ac_status=$?
3403 grep -v '^ *+' conftest.er1 >conftest.err
3404 rm -f conftest.er1
3405 cat conftest.err >&5
3406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3407 (exit $ac_status); } && {
3408 test -z "$ac_c_werror_flag" ||
3409 test ! -s conftest.err
3410 } && test -s conftest.$ac_objext; then
3411 ac_cv_prog_cc_c89=$ac_arg
3412else
3413 echo "$as_me: failed program was:" >&5
3414sed 's/^/| /' conftest.$ac_ext >&5
3415
3416
3417fi
3418
3419rm -f core conftest.err conftest.$ac_objext
3420 test "x$ac_cv_prog_cc_c89" != "xno" && break
3421done
3422rm -f conftest.$ac_ext
3423CC=$ac_save_CC
3424
3425fi
3426# AC_CACHE_VAL
3427case "x$ac_cv_prog_cc_c89" in
3428 x)
3429 { echo "$as_me:$LINENO: result: none needed" >&5
3430echo "${ECHO_T}none needed" >&6; } ;;
3431 xno)
3432 { echo "$as_me:$LINENO: result: unsupported" >&5
3433echo "${ECHO_T}unsupported" >&6; } ;;
3434 *)
3435 CC="$CC $ac_cv_prog_cc_c89"
3436 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3437echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3438esac
3439
3440
3441ac_ext=c
3442ac_cpp='$CPP $CPPFLAGS'
3443ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3444ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3445ac_compiler_gnu=$ac_cv_c_compiler_gnu
3446
3447depcc="$CC" am_compiler_list=
3448
3449{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3450echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3451if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3452 echo $ECHO_N "(cached) $ECHO_C" >&6
3453else
3454 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3455 # We make a subdir and do the tests there. Otherwise we can end up
3456 # making bogus files that we don't know about and never remove. For
3457 # instance it was reported that on HP-UX the gcc test will end up
3458 # making a dummy file named `D' -- because `-MD' means `put the output
3459 # in D'.
3460 mkdir conftest.dir
3461 # Copy depcomp to subdir because otherwise we won't find it if we're
3462 # using a relative directory.
3463 cp "$am_depcomp" conftest.dir
3464 cd conftest.dir
3465 # We will build objects and dependencies in a subdirectory because
3466 # it helps to detect inapplicable dependency modes. For instance
3467 # both Tru64's cc and ICC support -MD to output dependencies as a
3468 # side effect of compilation, but ICC will put the dependencies in
3469 # the current directory while Tru64 will put them in the object
3470 # directory.
3471 mkdir sub
3472
3473 am_cv_CC_dependencies_compiler_type=none
3474 if test "$am_compiler_list" = ""; then
3475 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3476 fi
3477 for depmode in $am_compiler_list; do
3478 # Setup a source with many dependencies, because some compilers
3479 # like to wrap large dependency lists on column 80 (with \), and
3480 # we should not choose a depcomp mode which is confused by this.
3481 #
3482 # We need to recreate these files for each test, as the compiler may
3483 # overwrite some of them when testing with obscure command lines.
3484 # This happens at least with the AIX C compiler.
3485 : > sub/conftest.c
3486 for i in 1 2 3 4 5 6; do
3487 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3488 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3489 # Solaris 8's {/usr,}/bin/sh.
3490 touch sub/conftst$i.h
3491 done
3492 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3493
3494 case $depmode in
3495 nosideeffect)
3496 # after this tag, mechanisms are not by side-effect, so they'll
3497 # only be used when explicitly requested
3498 if test "x$enable_dependency_tracking" = xyes; then
3499 continue
3500 else
3501 break
3502 fi
3503 ;;
3504 none) break ;;
3505 esac
3506 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3507 # mode. It turns out that the SunPro C++ compiler does not properly
3508 # handle `-M -o', and we need to detect this.
3509 if depmode=$depmode \
3510 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3511 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3512 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3513 >/dev/null 2>conftest.err &&
3514 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3515 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3516 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3517 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3518 # icc doesn't choke on unknown options, it will just issue warnings
3519 # or remarks (even with -Werror). So we grep stderr for any message
3520 # that says an option was ignored or not supported.
3521 # When given -MP, icc 7.0 and 7.1 complain thusly:
3522 # icc: Command line warning: ignoring option '-M'; no argument required
3523 # The diagnosis changed in icc 8.0:
3524 # icc: Command line remark: option '-MP' not supported
3525 if (grep 'ignoring option' conftest.err ||
3526 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3527 am_cv_CC_dependencies_compiler_type=$depmode
3528 break
3529 fi
3530 fi
3531 done
3532
3533 cd ..
3534 rm -rf conftest.dir
3535else
3536 am_cv_CC_dependencies_compiler_type=none
3537fi
3538
3539fi
3540{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3541echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3542CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3543
3544 if
3545 test "x$enable_dependency_tracking" != xno \
3546 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3547 am__fastdepCC_TRUE=
3548 am__fastdepCC_FALSE='#'
3549else
3550 am__fastdepCC_TRUE='#'
3551 am__fastdepCC_FALSE=
3552fi
3553
3554
3555 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
3556echo $ECHO_N "checking for $CC option to accept ISO C99... $ECHO_C" >&6; }
3557if test "${ac_cv_prog_cc_c99+set}" = set; then
3558 echo $ECHO_N "(cached) $ECHO_C" >&6
3559else
3560 ac_cv_prog_cc_c99=no
3561ac_save_CC=$CC
3562cat >conftest.$ac_ext <<_ACEOF
3563/* confdefs.h. */
3564_ACEOF
3565cat confdefs.h >>conftest.$ac_ext
3566cat >>conftest.$ac_ext <<_ACEOF
3567/* end confdefs.h. */
3568#include <stdarg.h>
3569#include <stdbool.h>
3570#include <stdlib.h>
3571#include <wchar.h>
3572#include <stdio.h>
3573
3574// Check varargs macros. These examples are taken from C99 6.10.3.5.
3575#define debug(...) fprintf (stderr, __VA_ARGS__)
3576#define showlist(...) puts (#__VA_ARGS__)
3577#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3578static void
3579test_varargs_macros (void)
3580{
3581 int x = 1234;
3582 int y = 5678;
3583 debug ("Flag");
3584 debug ("X = %d\n", x);
3585 showlist (The first, second, and third items.);
3586 report (x>y, "x is %d but y is %d", x, y);
3587}
3588
3589// Check long long types.
3590#define BIG64 18446744073709551615ull
3591#define BIG32 4294967295ul
3592#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3593#if !BIG_OK
3594 your preprocessor is broken;
3595#endif
3596#if BIG_OK
3597#else
3598 your preprocessor is broken;
3599#endif
3600static long long int bignum = -9223372036854775807LL;
3601static unsigned long long int ubignum = BIG64;
3602
3603struct incomplete_array
3604{
3605 int datasize;
3606 double data[];
3607};
3608
3609struct named_init {
3610 int number;
3611 const wchar_t *name;
3612 double average;
3613};
3614
3615typedef const char *ccp;
3616
3617static inline int
3618test_restrict (ccp restrict text)
3619{
3620 // See if C++-style comments work.
3621 // Iterate through items via the restricted pointer.
3622 // Also check for declarations in for loops.
3623 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3624 continue;
3625 return 0;
3626}
3627
3628// Check varargs and va_copy.
3629static void
3630test_varargs (const char *format, ...)
3631{
3632 va_list args;
3633 va_start (args, format);
3634 va_list args_copy;
3635 va_copy (args_copy, args);
3636
3637 const char *str;
3638 int number;
3639 float fnumber;
3640
3641 while (*format)
3642 {
3643 switch (*format++)
3644 {
3645 case 's': // string
3646 str = va_arg (args_copy, const char *);
3647 break;
3648 case 'd': // int
3649 number = va_arg (args_copy, int);
3650 break;
3651 case 'f': // float
3652 fnumber = va_arg (args_copy, double);
3653 break;
3654 default:
3655 break;
3656 }
3657 }
3658 va_end (args_copy);
3659 va_end (args);
3660}
3661
3662int
3663main ()
3664{
3665
3666 // Check bool.
3667 _Bool success = false;
3668
3669 // Check restrict.
3670 if (test_restrict ("String literal") == 0)
3671 success = true;
3672 char *restrict newvar = "Another string";
3673
3674 // Check varargs.
3675 test_varargs ("s, d' f .", "string", 65, 34.234);
3676 test_varargs_macros ();
3677
3678 // Check flexible array members.
3679 struct incomplete_array *ia =
3680 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3681 ia->datasize = 10;
3682 for (int i = 0; i < ia->datasize; ++i)
3683 ia->data[i] = i * 1.234;
3684
3685 // Check named initializers.
3686 struct named_init ni = {
3687 .number = 34,
3688 .name = L"Test wide string",
3689 .average = 543.34343,
3690 };
3691
3692 ni.number = 58;
3693
3694 int dynamic_array[ni.number];
3695 dynamic_array[ni.number - 1] = 543;
3696
3697 // work around unused variable warnings
3698 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3699 || dynamic_array[ni.number - 1] != 543);
3700
3701 ;
3702 return 0;
3703}
3704_ACEOF
3705for ac_arg in '' -std=gnu99 -c99 -qlanglvl=extc99
3706do
3707 CC="$ac_save_CC $ac_arg"
3708 rm -f conftest.$ac_objext
3709if { (ac_try="$ac_compile"
3710case "(($ac_try" in
3711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3712 *) ac_try_echo=$ac_try;;
3713esac
3714eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3715 (eval "$ac_compile") 2>conftest.er1
3716 ac_status=$?
3717 grep -v '^ *+' conftest.er1 >conftest.err
3718 rm -f conftest.er1
3719 cat conftest.err >&5
3720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3721 (exit $ac_status); } && {
3722 test -z "$ac_c_werror_flag" ||
3723 test ! -s conftest.err
3724 } && test -s conftest.$ac_objext; then
3725 ac_cv_prog_cc_c99=$ac_arg
3726else
3727 echo "$as_me: failed program was:" >&5
3728sed 's/^/| /' conftest.$ac_ext >&5
3729
3730
3731fi
3732
3733rm -f core conftest.err conftest.$ac_objext
3734 test "x$ac_cv_prog_cc_c99" != "xno" && break
3735done
3736rm -f conftest.$ac_ext
3737CC=$ac_save_CC
3738
3739fi
3740# AC_CACHE_VAL
3741case "x$ac_cv_prog_cc_c99" in
3742 x)
3743 { echo "$as_me:$LINENO: result: none needed" >&5
3744echo "${ECHO_T}none needed" >&6; } ;;
3745 xno)
3746 { echo "$as_me:$LINENO: result: unsupported" >&5
3747echo "${ECHO_T}unsupported" >&6; } ;;
3748 *)
3749 CC="$CC $ac_cv_prog_cc_c99"
3750 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
3751echo "${ECHO_T}$ac_cv_prog_cc_c99" >&6; } ;;
3752esac
3753
3754
3755
3756
3757if test x"$ac_cv_prog_cc_c99" = "xno"; then
3758 { { echo "$as_me:$LINENO: error: ircd-ratbox requires a C99 capable compiler" >&5
3759echo "$as_me: error: ircd-ratbox requires a C99 capable compiler" >&2;}
3760 { (exit 1); exit 1; }; }
3761fi
3762
3763
3764# Find a good install program. We prefer a C program (faster),
3765# so one script is as good as another. But avoid the broken or
3766# incompatible versions:
3767# SysV /etc/install, /usr/sbin/install
3768# SunOS /usr/etc/install
3769# IRIX /sbin/install
3770# AIX /bin/install
3771# AmigaOS /C/install, which installs bootblocks on floppy discs
3772# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3773# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3774# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3775# OS/2's system install, which has a completely different semantic
3776# ./install, which can be erroneously created by make from ./install.sh.
3777{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3778echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3779if test -z "$INSTALL"; then
3780if test "${ac_cv_path_install+set}" = set; then
3781 echo $ECHO_N "(cached) $ECHO_C" >&6
3782else
3783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3784for as_dir in $PATH
3785do
3786 IFS=$as_save_IFS
3787 test -z "$as_dir" && as_dir=.
3788 # Account for people who put trailing slashes in PATH elements.
3789case $as_dir/ in
3790 ./ | .// | /cC/* | \
3791 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3792 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3793 /usr/ucb/* ) ;;
3794 *)
3795 # OSF1 and SCO ODT 3.0 have their own names for install.
3796 # Don't use installbsd from OSF since it installs stuff as root
3797 # by default.
3798 for ac_prog in ginstall scoinst install; do
3799 for ac_exec_ext in '' $ac_executable_extensions; do
3800 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3801 if test $ac_prog = install &&
3802 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3803 # AIX install. It has an incompatible calling convention.
3804 :
3805 elif test $ac_prog = install &&
3806 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3807 # program-specific install script used by HP pwplus--don't use.
3808 :
3809 else
3810 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3811 break 3
3812 fi
3813 fi
3814 done
3815 done
3816 ;;
3817esac
3818done
3819IFS=$as_save_IFS
3820
3821
3822fi
3823 if test "${ac_cv_path_install+set}" = set; then
3824 INSTALL=$ac_cv_path_install
3825 else
3826 # As a last resort, use the slow shell script. Don't cache a
3827 # value for INSTALL within a source directory, because that will
3828 # break other packages using the cache if that directory is
3829 # removed, or if the value is a relative name.
3830 INSTALL=$ac_install_sh
3831 fi
3832fi
3833{ echo "$as_me:$LINENO: result: $INSTALL" >&5
3834echo "${ECHO_T}$INSTALL" >&6; }
3835
3836# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3837# It thinks the first close brace ends the variable substitution.
3838test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3839
3840test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3841
3842test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3843
3844{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3845echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3846if test "${ac_cv_path_GREP+set}" = set; then
3847 echo $ECHO_N "(cached) $ECHO_C" >&6
3848else
3849 # Extract the first word of "grep ggrep" to use in msg output
3850if test -z "$GREP"; then
3851set dummy grep ggrep; ac_prog_name=$2
3852if test "${ac_cv_path_GREP+set}" = set; then
3853 echo $ECHO_N "(cached) $ECHO_C" >&6
3854else
3855 ac_path_GREP_found=false
3856# Loop through the user's path and test for each of PROGNAME-LIST
3857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3858for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3859do
3860 IFS=$as_save_IFS
3861 test -z "$as_dir" && as_dir=.
3862 for ac_prog in grep ggrep; do
3863 for ac_exec_ext in '' $ac_executable_extensions; do
3864 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3865 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3866 # Check for GNU ac_path_GREP and select it if it is found.
3867 # Check for GNU $ac_path_GREP
3868case `"$ac_path_GREP" --version 2>&1` in
3869*GNU*)
3870 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3871*)
3872 ac_count=0
3873 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3874 while :
3875 do
3876 cat "conftest.in" "conftest.in" >"conftest.tmp"
3877 mv "conftest.tmp" "conftest.in"
3878 cp "conftest.in" "conftest.nl"
3879 echo 'GREP' >> "conftest.nl"
3880 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3881 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3882 ac_count=`expr $ac_count + 1`
3883 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3884 # Best one so far, save it but keep looking for a better one
3885 ac_cv_path_GREP="$ac_path_GREP"
3886 ac_path_GREP_max=$ac_count
3887 fi
3888 # 10*(2^10) chars as input seems more than enough
3889 test $ac_count -gt 10 && break
3890 done
3891 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3892esac
3893
3894
3895 $ac_path_GREP_found && break 3
3896 done
3897done
3898
3899done
3900IFS=$as_save_IFS
3901
3902
3903fi
3904
3905GREP="$ac_cv_path_GREP"
3906if test -z "$GREP"; then
3907 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3908echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3909 { (exit 1); exit 1; }; }
3910fi
3911
3912else
3913 ac_cv_path_GREP=$GREP
3914fi
3915
3916
3917fi
3918{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3919echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3920 GREP="$ac_cv_path_GREP"
3921
3922
3923{ echo "$as_me:$LINENO: checking for egrep" >&5
3924echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3925if test "${ac_cv_path_EGREP+set}" = set; then
3926 echo $ECHO_N "(cached) $ECHO_C" >&6
3927else
3928 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3929 then ac_cv_path_EGREP="$GREP -E"
3930 else
3931 # Extract the first word of "egrep" to use in msg output
3932if test -z "$EGREP"; then
3933set dummy egrep; ac_prog_name=$2
3934if test "${ac_cv_path_EGREP+set}" = set; then
3935 echo $ECHO_N "(cached) $ECHO_C" >&6
3936else
3937 ac_path_EGREP_found=false
3938# Loop through the user's path and test for each of PROGNAME-LIST
3939as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3940for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3941do
3942 IFS=$as_save_IFS
3943 test -z "$as_dir" && as_dir=.
3944 for ac_prog in egrep; do
3945 for ac_exec_ext in '' $ac_executable_extensions; do
3946 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3947 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3948 # Check for GNU ac_path_EGREP and select it if it is found.
3949 # Check for GNU $ac_path_EGREP
3950case `"$ac_path_EGREP" --version 2>&1` in
3951*GNU*)
3952 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3953*)
3954 ac_count=0
3955 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3956 while :
3957 do
3958 cat "conftest.in" "conftest.in" >"conftest.tmp"
3959 mv "conftest.tmp" "conftest.in"
3960 cp "conftest.in" "conftest.nl"
3961 echo 'EGREP' >> "conftest.nl"
3962 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3963 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3964 ac_count=`expr $ac_count + 1`
3965 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3966 # Best one so far, save it but keep looking for a better one
3967 ac_cv_path_EGREP="$ac_path_EGREP"
3968 ac_path_EGREP_max=$ac_count
3969 fi
3970 # 10*(2^10) chars as input seems more than enough
3971 test $ac_count -gt 10 && break
3972 done
3973 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3974esac
3975
3976
3977 $ac_path_EGREP_found && break 3
3978 done
3979done
3980
3981done
3982IFS=$as_save_IFS
3983
3984
3985fi
3986
3987EGREP="$ac_cv_path_EGREP"
3988if test -z "$EGREP"; then
3989 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3990echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3991 { (exit 1); exit 1; }; }
3992fi
3993
3994else
3995 ac_cv_path_EGREP=$EGREP
3996fi
3997
3998
3999 fi
4000fi
4001{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4002echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4003 EGREP="$ac_cv_path_EGREP"
4004
4005
4006{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4007echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4008if test "${ac_cv_path_SED+set}" = set; then
4009 echo $ECHO_N "(cached) $ECHO_C" >&6
4010else
4011 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4012 for ac_i in 1 2 3 4 5 6 7; do
4013 ac_script="$ac_script$as_nl$ac_script"
4014 done
4015 echo "$ac_script" | sed 99q >conftest.sed
4016 $as_unset ac_script || ac_script=
4017 # Extract the first word of "sed gsed" to use in msg output
4018if test -z "$SED"; then
4019set dummy sed gsed; ac_prog_name=$2
4020if test "${ac_cv_path_SED+set}" = set; then
4021 echo $ECHO_N "(cached) $ECHO_C" >&6
4022else
4023 ac_path_SED_found=false
4024# Loop through the user's path and test for each of PROGNAME-LIST
4025as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4026for as_dir in $PATH
4027do
4028 IFS=$as_save_IFS
4029 test -z "$as_dir" && as_dir=.
4030 for ac_prog in sed gsed; do
4031 for ac_exec_ext in '' $ac_executable_extensions; do
4032 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4033 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4034 # Check for GNU ac_path_SED and select it if it is found.
4035 # Check for GNU $ac_path_SED
4036case `"$ac_path_SED" --version 2>&1` in
4037*GNU*)
4038 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4039*)
4040 ac_count=0
4041 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4042 while :
4043 do
4044 cat "conftest.in" "conftest.in" >"conftest.tmp"
4045 mv "conftest.tmp" "conftest.in"
4046 cp "conftest.in" "conftest.nl"
4047 echo '' >> "conftest.nl"
4048 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4049 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4050 ac_count=`expr $ac_count + 1`
4051 if test $ac_count -gt ${ac_path_SED_max-0}; then
4052 # Best one so far, save it but keep looking for a better one
4053 ac_cv_path_SED="$ac_path_SED"
4054 ac_path_SED_max=$ac_count
4055 fi
4056 # 10*(2^10) chars as input seems more than enough
4057 test $ac_count -gt 10 && break
4058 done
4059 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4060esac
4061
4062
4063 $ac_path_SED_found && break 3
4064 done
4065done
4066
4067done
4068IFS=$as_save_IFS
4069
4070
4071fi
4072
4073SED="$ac_cv_path_SED"
4074if test -z "$SED"; then
4075 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
4076echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
4077 { (exit 1); exit 1; }; }
4078fi
4079
4080else
4081 ac_cv_path_SED=$SED
4082fi
4083
4084fi
4085{ echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
4086echo "${ECHO_T}$ac_cv_path_SED" >&6; }
4087 SED="$ac_cv_path_SED"
4088 rm -f conftest.sed
4089
4090
4091F77=no
4092CXX=no
4093GCJ=no
4094
4095# Check whether --enable-static was given.
4096if test "${enable_static+set}" = set; then
4097 enableval=$enable_static; p=${PACKAGE-default}
4098 case $enableval in
4099 yes) enable_static=yes ;;
4100 no) enable_static=no ;;
4101 *)
4102 enable_static=no
4103 # Look at the argument we got. We use all the common list separators.
4104 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4105 for pkg in $enableval; do
4106 IFS="$lt_save_ifs"
4107 if test "X$pkg" = "X$p"; then
4108 enable_static=yes
4109 fi
4110 done
4111 IFS="$lt_save_ifs"
4112 ;;
4113 esac
4114else
4115 enable_static=no
4116fi
4117
4118
4119
4120# Check whether --enable-shared was given.
4121if test "${enable_shared+set}" = set; then
4122 enableval=$enable_shared; p=${PACKAGE-default}
4123 case $enableval in
4124 yes) enable_shared=yes ;;
4125 no) enable_shared=no ;;
4126 *)
4127 enable_shared=no
4128 # Look at the argument we got. We use all the common list separators.
4129 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4130 for pkg in $enableval; do
4131 IFS="$lt_save_ifs"
4132 if test "X$pkg" = "X$p"; then
4133 enable_shared=yes
4134 fi
4135 done
4136 IFS="$lt_save_ifs"
4137 ;;
4138 esac
4139else
4140 enable_shared=yes
4141fi
4142
4143
4144{ echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4145echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
4146 # Check whether --enable-maintainer-mode was given.
4147if test "${enable_maintainer_mode+set}" = set; then
4148 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4149else
4150 USE_MAINTAINER_MODE=no
4151fi
4152
4153 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4154echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
4155 if test $USE_MAINTAINER_MODE = yes; then
4156 MAINTAINER_MODE_TRUE=
4157 MAINTAINER_MODE_FALSE='#'
4158else
4159 MAINTAINER_MODE_TRUE='#'
4160 MAINTAINER_MODE_FALSE=
4161fi
4162
4163 MAINT=$MAINTAINER_MODE_TRUE
4164
4165
4166
4167
4168{ echo "$as_me:$LINENO: checking for library containing strerror" >&5
4169echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
4170if test "${ac_cv_search_strerror+set}" = set; then
4171 echo $ECHO_N "(cached) $ECHO_C" >&6
4172else
4173 ac_func_search_save_LIBS=$LIBS
4174cat >conftest.$ac_ext <<_ACEOF
4175/* confdefs.h. */
4176_ACEOF
4177cat confdefs.h >>conftest.$ac_ext
4178cat >>conftest.$ac_ext <<_ACEOF
4179/* end confdefs.h. */
4180
4181/* Override any GCC internal prototype to avoid an error.
4182 Use char because int might match the return type of a GCC
4183 builtin and then its argument prototype would still apply. */
4184#ifdef __cplusplus
4185extern "C"
4186#endif
4187char strerror ();
4188int
4189main ()
4190{
4191return strerror ();
4192 ;
4193 return 0;
4194}
4195_ACEOF
4196for ac_lib in '' cposix; do
4197 if test -z "$ac_lib"; then
4198 ac_res="none required"
4199 else
4200 ac_res=-l$ac_lib
4201 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4202 fi
4203 rm -f conftest.$ac_objext conftest$ac_exeext
4204if { (ac_try="$ac_link"
4205case "(($ac_try" in
4206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4207 *) ac_try_echo=$ac_try;;
4208esac
4209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4210 (eval "$ac_link") 2>conftest.er1
4211 ac_status=$?
4212 grep -v '^ *+' conftest.er1 >conftest.err
4213 rm -f conftest.er1
4214 cat conftest.err >&5
4215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4216 (exit $ac_status); } && {
4217 test -z "$ac_c_werror_flag" ||
4218 test ! -s conftest.err
4219 } && test -s conftest$ac_exeext &&
4220 $as_test_x conftest$ac_exeext; then
4221 ac_cv_search_strerror=$ac_res
4222else
4223 echo "$as_me: failed program was:" >&5
4224sed 's/^/| /' conftest.$ac_ext >&5
4225
4226
4227fi
4228
4229rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4230 conftest$ac_exeext
4231 if test "${ac_cv_search_strerror+set}" = set; then
4232 break
4233fi
4234done
4235if test "${ac_cv_search_strerror+set}" = set; then
4236 :
4237else
4238 ac_cv_search_strerror=no
4239fi
4240rm conftest.$ac_ext
4241LIBS=$ac_func_search_save_LIBS
4242fi
4243{ echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
4244echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
4245ac_res=$ac_cv_search_strerror
4246if test "$ac_res" != no; then
4247 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4248
4249fi
4250
4251{ echo "$as_me:$LINENO: checking for inline" >&5
4252echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
4253if test "${ac_cv_c_inline+set}" = set; then
4254 echo $ECHO_N "(cached) $ECHO_C" >&6
4255else
4256 ac_cv_c_inline=no
4257for ac_kw in inline __inline__ __inline; do
4258 cat >conftest.$ac_ext <<_ACEOF
4259/* confdefs.h. */
4260_ACEOF
4261cat confdefs.h >>conftest.$ac_ext
4262cat >>conftest.$ac_ext <<_ACEOF
4263/* end confdefs.h. */
4264#ifndef __cplusplus
4265typedef int foo_t;
4266static $ac_kw foo_t static_foo () {return 0; }
4267$ac_kw foo_t foo () {return 0; }
4268#endif
4269
4270_ACEOF
4271rm -f conftest.$ac_objext
4272if { (ac_try="$ac_compile"
4273case "(($ac_try" in
4274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4275 *) ac_try_echo=$ac_try;;
4276esac
4277eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4278 (eval "$ac_compile") 2>conftest.er1
4279 ac_status=$?
4280 grep -v '^ *+' conftest.er1 >conftest.err
4281 rm -f conftest.er1
4282 cat conftest.err >&5
4283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4284 (exit $ac_status); } && {
4285 test -z "$ac_c_werror_flag" ||
4286 test ! -s conftest.err
4287 } && test -s conftest.$ac_objext; then
4288 ac_cv_c_inline=$ac_kw
4289else
4290 echo "$as_me: failed program was:" >&5
4291sed 's/^/| /' conftest.$ac_ext >&5
4292
4293
4294fi
4295
4296rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4297 test "$ac_cv_c_inline" != no && break
4298done
4299
4300fi
4301{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4302echo "${ECHO_T}$ac_cv_c_inline" >&6; }
4303
4304
4305case $ac_cv_c_inline in
4306 inline | yes) ;;
4307 *)
4308 case $ac_cv_c_inline in
4309 no) ac_val=;;
4310 *) ac_val=$ac_cv_c_inline;;
4311 esac
4312 cat >>confdefs.h <<_ACEOF
4313#ifndef __cplusplus
4314#define inline $ac_val
4315#endif
4316_ACEOF
4317 ;;
4318esac
4319
4320{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4321echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
4322if test "${ac_cv_c_const+set}" = set; then
4323 echo $ECHO_N "(cached) $ECHO_C" >&6
4324else
4325 cat >conftest.$ac_ext <<_ACEOF
4326/* confdefs.h. */
4327_ACEOF
4328cat confdefs.h >>conftest.$ac_ext
4329cat >>conftest.$ac_ext <<_ACEOF
4330/* end confdefs.h. */
4331
4332int
4333main ()
4334{
4335/* FIXME: Include the comments suggested by Paul. */
4336#ifndef __cplusplus
4337 /* Ultrix mips cc rejects this. */
4338 typedef int charset[2];
4339 const charset cs;
4340 /* SunOS 4.1.1 cc rejects this. */
4341 char const *const *pcpcc;
4342 char **ppc;
4343 /* NEC SVR4.0.2 mips cc rejects this. */
4344 struct point {int x, y;};
4345 static struct point const zero = {0,0};
4346 /* AIX XL C 1.02.0.0 rejects this.
4347 It does not let you subtract one const X* pointer from another in
4348 an arm of an if-expression whose if-part is not a constant
4349 expression */
4350 const char *g = "string";
4351 pcpcc = &g + (g ? g-g : 0);
4352 /* HPUX 7.0 cc rejects these. */
4353 ++pcpcc;
4354 ppc = (char**) pcpcc;
4355 pcpcc = (char const *const *) ppc;
4356 { /* SCO 3.2v4 cc rejects this. */
4357 char *t;
4358 char const *s = 0 ? (char *) 0 : (char const *) 0;
4359
4360 *t++ = 0;
4361 if (s) return 0;
4362 }
4363 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4364 int x[] = {25, 17};
4365 const int *foo = &x[0];
4366 ++foo;
4367 }
4368 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4369 typedef const int *iptr;
4370 iptr p = 0;
4371 ++p;
4372 }
4373 { /* AIX XL C 1.02.0.0 rejects this saying
4374 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4375 struct s { int j; const int *ap[3]; };
4376 struct s *b; b->j = 5;
4377 }
4378 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4379 const int foo = 10;
4380 if (!foo) return 0;
4381 }
4382 return !cs[0] && !zero.x;
4383#endif
4384
4385 ;
4386 return 0;
4387}
4388_ACEOF
4389rm -f conftest.$ac_objext
4390if { (ac_try="$ac_compile"
4391case "(($ac_try" in
4392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4393 *) ac_try_echo=$ac_try;;
4394esac
4395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4396 (eval "$ac_compile") 2>conftest.er1
4397 ac_status=$?
4398 grep -v '^ *+' conftest.er1 >conftest.err
4399 rm -f conftest.er1
4400 cat conftest.err >&5
4401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4402 (exit $ac_status); } && {
4403 test -z "$ac_c_werror_flag" ||
4404 test ! -s conftest.err
4405 } && test -s conftest.$ac_objext; then
4406 ac_cv_c_const=yes
4407else
4408 echo "$as_me: failed program was:" >&5
4409sed 's/^/| /' conftest.$ac_ext >&5
4410
4411 ac_cv_c_const=no
4412fi
4413
4414rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4415fi
4416{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4417echo "${ECHO_T}$ac_cv_c_const" >&6; }
4418if test $ac_cv_c_const = no; then
4419
4420cat >>confdefs.h <<\_ACEOF
4421#define const
4422_ACEOF
4423
4424fi
4425
4426{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4427echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
4428set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4429if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
4430 echo $ECHO_N "(cached) $ECHO_C" >&6
4431else
4432 cat >conftest.make <<\_ACEOF
4433SHELL = /bin/sh
4434all:
4435 @echo '@@@%%%=$(MAKE)=@@@%%%'
4436_ACEOF
4437# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4438case `${MAKE-make} -f conftest.make 2>/dev/null` in
4439 *@@@%%%=?*=@@@%%%*)
4440 eval ac_cv_prog_make_${ac_make}_set=yes;;
4441 *)
4442 eval ac_cv_prog_make_${ac_make}_set=no;;
4443esac
4444rm -f conftest.make
4445fi
4446if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4447 { echo "$as_me:$LINENO: result: yes" >&5
4448echo "${ECHO_T}yes" >&6; }
4449 SET_MAKE=
4450else
4451 { echo "$as_me:$LINENO: result: no" >&5
4452echo "${ECHO_T}no" >&6; }
4453 SET_MAKE="MAKE=${MAKE-make}"
4454fi
4455
4456# Find a good install program. We prefer a C program (faster),
4457# so one script is as good as another. But avoid the broken or
4458# incompatible versions:
4459# SysV /etc/install, /usr/sbin/install
4460# SunOS /usr/etc/install
4461# IRIX /sbin/install
4462# AIX /bin/install
4463# AmigaOS /C/install, which installs bootblocks on floppy discs
4464# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4465# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4466# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4467# OS/2's system install, which has a completely different semantic
4468# ./install, which can be erroneously created by make from ./install.sh.
4469{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4470echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4471if test -z "$INSTALL"; then
4472if test "${ac_cv_path_install+set}" = set; then
4473 echo $ECHO_N "(cached) $ECHO_C" >&6
4474else
4475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4476for as_dir in $PATH
4477do
4478 IFS=$as_save_IFS
4479 test -z "$as_dir" && as_dir=.
4480 # Account for people who put trailing slashes in PATH elements.
4481case $as_dir/ in
4482 ./ | .// | /cC/* | \
4483 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4484 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4485 /usr/ucb/* ) ;;
4486 *)
4487 # OSF1 and SCO ODT 3.0 have their own names for install.
4488 # Don't use installbsd from OSF since it installs stuff as root
4489 # by default.
4490 for ac_prog in ginstall scoinst install; do
4491 for ac_exec_ext in '' $ac_executable_extensions; do
4492 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4493 if test $ac_prog = install &&
4494 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4495 # AIX install. It has an incompatible calling convention.
4496 :
4497 elif test $ac_prog = install &&
4498 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4499 # program-specific install script used by HP pwplus--don't use.
4500 :
4501 else
4502 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4503 break 3
4504 fi
4505 fi
4506 done
4507 done
4508 ;;
4509esac
4510done
4511IFS=$as_save_IFS
4512
4513
4514fi
4515 if test "${ac_cv_path_install+set}" = set; then
4516 INSTALL=$ac_cv_path_install
4517 else
4518 # As a last resort, use the slow shell script. Don't cache a
4519 # value for INSTALL within a source directory, because that will
4520 # break other packages using the cache if that directory is
4521 # removed, or if the value is a relative name.
4522 INSTALL=$ac_install_sh
4523 fi
4524fi
4525{ echo "$as_me:$LINENO: result: $INSTALL" >&5
4526echo "${ECHO_T}$INSTALL" >&6; }
4527
4528# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4529# It thinks the first close brace ends the variable substitution.
4530test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4531
4532test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4533
4534test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4535
4536# Extract the first word of "automake", so it can be a program name with args.
4537set dummy automake; ac_word=$2
4538{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4539echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4540if test "${ac_cv_path_AUTOMAKE+set}" = set; then
4541 echo $ECHO_N "(cached) $ECHO_C" >&6
4542else
4543 case $AUTOMAKE in
4544 [\\/]* | ?:[\\/]*)
4545 ac_cv_path_AUTOMAKE="$AUTOMAKE" # Let the user override the test with a path.
4546 ;;
4547 *)
4548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4549for as_dir in $PATH
4550do
4551 IFS=$as_save_IFS
4552 test -z "$as_dir" && as_dir=.
4553 for ac_exec_ext in '' $ac_executable_extensions; do
4554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4555 ac_cv_path_AUTOMAKE="$as_dir/$ac_word$ac_exec_ext"
4556 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4557 break 2
4558 fi
4559done
4560done
4561IFS=$as_save_IFS
4562
4563 ;;
4564esac
4565fi
4566AUTOMAKE=$ac_cv_path_AUTOMAKE
4567if test -n "$AUTOMAKE"; then
4568 { echo "$as_me:$LINENO: result: $AUTOMAKE" >&5
4569echo "${ECHO_T}$AUTOMAKE" >&6; }
4570else
4571 { echo "$as_me:$LINENO: result: no" >&5
4572echo "${ECHO_T}no" >&6; }
4573fi
4574
4575
4576# Extract the first word of "aclocal", so it can be a program name with args.
4577set dummy aclocal; ac_word=$2
4578{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4579echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4580if test "${ac_cv_path_ACLOCAL+set}" = set; then
4581 echo $ECHO_N "(cached) $ECHO_C" >&6
4582else
4583 case $ACLOCAL in
4584 [\\/]* | ?:[\\/]*)
4585 ac_cv_path_ACLOCAL="$ACLOCAL" # Let the user override the test with a path.
4586 ;;
4587 *)
4588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4589for as_dir in $PATH
4590do
4591 IFS=$as_save_IFS
4592 test -z "$as_dir" && as_dir=.
4593 for ac_exec_ext in '' $ac_executable_extensions; do
4594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4595 ac_cv_path_ACLOCAL="$as_dir/$ac_word$ac_exec_ext"
4596 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4597 break 2
4598 fi
4599done
4600done
4601IFS=$as_save_IFS
4602
4603 ;;
4604esac
4605fi
4606ACLOCAL=$ac_cv_path_ACLOCAL
4607if test -n "$ACLOCAL"; then
4608 { echo "$as_me:$LINENO: result: $ACLOCAL" >&5
4609echo "${ECHO_T}$ACLOCAL" >&6; }
4610else
4611 { echo "$as_me:$LINENO: result: no" >&5
4612echo "${ECHO_T}no" >&6; }
4613fi
4614
4615
4616# Extract the first word of "autoheader", so it can be a program name with args.
4617set dummy autoheader; ac_word=$2
4618{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4619echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4620if test "${ac_cv_path_AUTOHEADER+set}" = set; then
4621 echo $ECHO_N "(cached) $ECHO_C" >&6
4622else
4623 case $AUTOHEADER in
4624 [\\/]* | ?:[\\/]*)
4625 ac_cv_path_AUTOHEADER="$AUTOHEADER" # Let the user override the test with a path.
4626 ;;
4627 *)
4628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4629for as_dir in $PATH
4630do
4631 IFS=$as_save_IFS
4632 test -z "$as_dir" && as_dir=.
4633 for ac_exec_ext in '' $ac_executable_extensions; do
4634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4635 ac_cv_path_AUTOHEADER="$as_dir/$ac_word$ac_exec_ext"
4636 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4637 break 2
4638 fi
4639done
4640done
4641IFS=$as_save_IFS
4642
4643 ;;
4644esac
4645fi
4646AUTOHEADER=$ac_cv_path_AUTOHEADER
4647if test -n "$AUTOHEADER"; then
4648 { echo "$as_me:$LINENO: result: $AUTOHEADER" >&5
4649echo "${ECHO_T}$AUTOHEADER" >&6; }
4650else
4651 { echo "$as_me:$LINENO: result: no" >&5
4652echo "${ECHO_T}no" >&6; }
4653fi
4654
4655
4656# Extract the first word of "as", so it can be a program name with args.
4657set dummy as; ac_word=$2
4658{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4659echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4660if test "${ac_cv_path_AS+set}" = set; then
4661 echo $ECHO_N "(cached) $ECHO_C" >&6
4662else
4663 case $AS in
4664 [\\/]* | ?:[\\/]*)
4665 ac_cv_path_AS="$AS" # Let the user override the test with a path.
4666 ;;
4667 *)
4668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4669for as_dir in $PATH
4670do
4671 IFS=$as_save_IFS
4672 test -z "$as_dir" && as_dir=.
4673 for ac_exec_ext in '' $ac_executable_extensions; do
4674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4675 ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext"
4676 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4677 break 2
4678 fi
4679done
4680done
4681IFS=$as_save_IFS
4682
4683 ;;
4684esac
4685fi
4686AS=$ac_cv_path_AS
4687if test -n "$AS"; then
4688 { echo "$as_me:$LINENO: result: $AS" >&5
4689echo "${ECHO_T}$AS" >&6; }
4690else
4691 { echo "$as_me:$LINENO: result: no" >&5
4692echo "${ECHO_T}no" >&6; }
4693fi
4694
4695
4696# Extract the first word of "rm", so it can be a program name with args.
4697set dummy rm; ac_word=$2
4698{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4699echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4700if test "${ac_cv_path_RM+set}" = set; then
4701 echo $ECHO_N "(cached) $ECHO_C" >&6
4702else
4703 case $RM in
4704 [\\/]* | ?:[\\/]*)
4705 ac_cv_path_RM="$RM" # Let the user override the test with a path.
4706 ;;
4707 *)
4708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4709for as_dir in $PATH
4710do
4711 IFS=$as_save_IFS
4712 test -z "$as_dir" && as_dir=.
4713 for ac_exec_ext in '' $ac_executable_extensions; do
4714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4715 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4716 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4717 break 2
4718 fi
4719done
4720done
4721IFS=$as_save_IFS
4722
4723 ;;
4724esac
4725fi
4726RM=$ac_cv_path_RM
4727if test -n "$RM"; then
4728 { echo "$as_me:$LINENO: result: $RM" >&5
4729echo "${ECHO_T}$RM" >&6; }
4730else
4731 { echo "$as_me:$LINENO: result: no" >&5
4732echo "${ECHO_T}no" >&6; }
4733fi
4734
4735
4736# Extract the first word of "cp", so it can be a program name with args.
4737set dummy cp; ac_word=$2
4738{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4739echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4740if test "${ac_cv_path_CP+set}" = set; then
4741 echo $ECHO_N "(cached) $ECHO_C" >&6
4742else
4743 case $CP in
4744 [\\/]* | ?:[\\/]*)
4745 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4746 ;;
4747 *)
4748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4749for as_dir in $PATH
4750do
4751 IFS=$as_save_IFS
4752 test -z "$as_dir" && as_dir=.
4753 for ac_exec_ext in '' $ac_executable_extensions; do
4754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4755 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4756 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4757 break 2
4758 fi
4759done
4760done
4761IFS=$as_save_IFS
4762
4763 ;;
4764esac
4765fi
4766CP=$ac_cv_path_CP
4767if test -n "$CP"; then
4768 { echo "$as_me:$LINENO: result: $CP" >&5
4769echo "${ECHO_T}$CP" >&6; }
4770else
4771 { echo "$as_me:$LINENO: result: no" >&5
4772echo "${ECHO_T}no" >&6; }
4773fi
4774
4775
4776# Extract the first word of "mv", so it can be a program name with args.
4777set dummy mv; ac_word=$2
4778{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4779echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4780if test "${ac_cv_path_MV+set}" = set; then
4781 echo $ECHO_N "(cached) $ECHO_C" >&6
4782else
4783 case $MV in
4784 [\\/]* | ?:[\\/]*)
4785 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4786 ;;
4787 *)
4788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4789for as_dir in $PATH
4790do
4791 IFS=$as_save_IFS
4792 test -z "$as_dir" && as_dir=.
4793 for ac_exec_ext in '' $ac_executable_extensions; do
4794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4795 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4796 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4797 break 2
4798 fi
4799done
4800done
4801IFS=$as_save_IFS
4802
4803 ;;
4804esac
4805fi
4806MV=$ac_cv_path_MV
4807if test -n "$MV"; then
4808 { echo "$as_me:$LINENO: result: $MV" >&5
4809echo "${ECHO_T}$MV" >&6; }
4810else
4811 { echo "$as_me:$LINENO: result: no" >&5
4812echo "${ECHO_T}no" >&6; }
4813fi
4814
4815
4816# Extract the first word of "ln", so it can be a program name with args.
4817set dummy ln; ac_word=$2
4818{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4819echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4820if test "${ac_cv_path_LN+set}" = set; then
4821 echo $ECHO_N "(cached) $ECHO_C" >&6
4822else
4823 case $LN in
4824 [\\/]* | ?:[\\/]*)
4825 ac_cv_path_LN="$LN" # Let the user override the test with a path.
4826 ;;
4827 *)
4828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4829for as_dir in $PATH
4830do
4831 IFS=$as_save_IFS
4832 test -z "$as_dir" && as_dir=.
4833 for ac_exec_ext in '' $ac_executable_extensions; do
4834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4835 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
4836 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4837 break 2
4838 fi
4839done
4840done
4841IFS=$as_save_IFS
4842
4843 ;;
4844esac
4845fi
4846LN=$ac_cv_path_LN
4847if test -n "$LN"; then
4848 { echo "$as_me:$LINENO: result: $LN" >&5
4849echo "${ECHO_T}$LN" >&6; }
4850else
4851 { echo "$as_me:$LINENO: result: no" >&5
4852echo "${ECHO_T}no" >&6; }
4853fi
4854
4855
4856# Extract the first word of "ar", so it can be a program name with args.
4857set dummy ar; ac_word=$2
4858{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4859echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4860if test "${ac_cv_path_AR+set}" = set; then
4861 echo $ECHO_N "(cached) $ECHO_C" >&6
4862else
4863 case $AR in
4864 [\\/]* | ?:[\\/]*)
4865 ac_cv_path_AR="$AR" # Let the user override the test with a path.
4866 ;;
4867 *)
4868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4869for as_dir in $PATH
4870do
4871 IFS=$as_save_IFS
4872 test -z "$as_dir" && as_dir=.
4873 for ac_exec_ext in '' $ac_executable_extensions; do
4874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4875 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4876 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4877 break 2
4878 fi
4879done
4880done
4881IFS=$as_save_IFS
4882
4883 ;;
4884esac
4885fi
4886AR=$ac_cv_path_AR
4887if test -n "$AR"; then
4888 { echo "$as_me:$LINENO: result: $AR" >&5
4889echo "${ECHO_T}$AR" >&6; }
4890else
4891 { echo "$as_me:$LINENO: result: no" >&5
4892echo "${ECHO_T}no" >&6; }
4893fi
4894
4895
4896# Extract the first word of "ld", so it can be a program name with args.
4897set dummy ld; ac_word=$2
4898{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4899echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4900if test "${ac_cv_path_LD+set}" = set; then
4901 echo $ECHO_N "(cached) $ECHO_C" >&6
4902else
4903 case $LD in
4904 [\\/]* | ?:[\\/]*)
4905 ac_cv_path_LD="$LD" # Let the user override the test with a path.
4906 ;;
4907 *)
4908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4909for as_dir in $PATH
4910do
4911 IFS=$as_save_IFS
4912 test -z "$as_dir" && as_dir=.
4913 for ac_exec_ext in '' $ac_executable_extensions; do
4914 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4915 ac_cv_path_LD="$as_dir/$ac_word$ac_exec_ext"
4916 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4917 break 2
4918 fi
4919done
4920done
4921IFS=$as_save_IFS
4922
4923 ;;
4924esac
4925fi
4926LD=$ac_cv_path_LD
4927if test -n "$LD"; then
4928 { echo "$as_me:$LINENO: result: $LD" >&5
4929echo "${ECHO_T}$LD" >&6; }
4930else
4931 { echo "$as_me:$LINENO: result: no" >&5
4932echo "${ECHO_T}no" >&6; }
4933fi
4934
4935
4936# Extract the first word of "ranlib", so it can be a program name with args.
4937set dummy ranlib; ac_word=$2
4938{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4939echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4940if test "${ac_cv_path_RANLIB+set}" = set; then
4941 echo $ECHO_N "(cached) $ECHO_C" >&6
4942else
4943 case $RANLIB in
4944 [\\/]* | ?:[\\/]*)
4945 ac_cv_path_RANLIB="$RANLIB" # Let the user override the test with a path.
4946 ;;
4947 *)
4948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4949for as_dir in $PATH
4950do
4951 IFS=$as_save_IFS
4952 test -z "$as_dir" && as_dir=.
4953 for ac_exec_ext in '' $ac_executable_extensions; do
4954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4955 ac_cv_path_RANLIB="$as_dir/$ac_word$ac_exec_ext"
4956 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4957 break 2
4958 fi
4959done
4960done
4961IFS=$as_save_IFS
4962
4963 ;;
4964esac
4965fi
4966RANLIB=$ac_cv_path_RANLIB
4967if test -n "$RANLIB"; then
4968 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4969echo "${ECHO_T}$RANLIB" >&6; }
4970else
4971 { echo "$as_me:$LINENO: result: no" >&5
4972echo "${ECHO_T}no" >&6; }
4973fi
4974
4975
4976# Extract the first word of "touch", so it can be a program name with args.
4977set dummy touch; ac_word=$2
4978{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4979echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4980if test "${ac_cv_path_TOUCH+set}" = set; then
4981 echo $ECHO_N "(cached) $ECHO_C" >&6
4982else
4983 case $TOUCH in
4984 [\\/]* | ?:[\\/]*)
4985 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
4986 ;;
4987 *)
4988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4989for as_dir in $PATH
4990do
4991 IFS=$as_save_IFS
4992 test -z "$as_dir" && as_dir=.
4993 for ac_exec_ext in '' $ac_executable_extensions; do
4994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4995 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
4996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4997 break 2
4998 fi
4999done
5000done
5001IFS=$as_save_IFS
5002
5003 ;;
5004esac
5005fi
5006TOUCH=$ac_cv_path_TOUCH
5007if test -n "$TOUCH"; then
5008 { echo "$as_me:$LINENO: result: $TOUCH" >&5
5009echo "${ECHO_T}$TOUCH" >&6; }
5010else
5011 { echo "$as_me:$LINENO: result: no" >&5
5012echo "${ECHO_T}no" >&6; }
5013fi
5014
5015
5016ac_ext=c
5017ac_cpp='$CPP $CPPFLAGS'
5018ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5019ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5020ac_compiler_gnu=$ac_cv_c_compiler_gnu
5021
5022
5023# Check whether --enable-fast-install was given.
5024if test "${enable_fast_install+set}" = set; then
5025 enableval=$enable_fast_install; p=${PACKAGE-default}
5026 case $enableval in
5027 yes) enable_fast_install=yes ;;
5028 no) enable_fast_install=no ;;
5029 *)
5030 enable_fast_install=no
5031 # Look at the argument we got. We use all the common list separators.
5032 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5033 for pkg in $enableval; do
5034 IFS="$lt_save_ifs"
5035 if test "X$pkg" = "X$p"; then
5036 enable_fast_install=yes
5037 fi
5038 done
5039 IFS="$lt_save_ifs"
5040 ;;
5041 esac
5042else
5043 enable_fast_install=yes
5044fi
5045
5046
5047# Make sure we can run config.sub.
5048$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5049 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5050echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5051 { (exit 1); exit 1; }; }
5052
5053{ echo "$as_me:$LINENO: checking build system type" >&5
5054echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5055if test "${ac_cv_build+set}" = set; then
5056 echo $ECHO_N "(cached) $ECHO_C" >&6
5057else
5058 ac_build_alias=$build_alias
5059test "x$ac_build_alias" = x &&
5060 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5061test "x$ac_build_alias" = x &&
5062 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5063echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5064 { (exit 1); exit 1; }; }
5065ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5066 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5067echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5068 { (exit 1); exit 1; }; }
5069
5070fi
5071{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5072echo "${ECHO_T}$ac_cv_build" >&6; }
5073case $ac_cv_build in
5074*-*-*) ;;
5075*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5076echo "$as_me: error: invalid value of canonical build" >&2;}
5077 { (exit 1); exit 1; }; };;
5078esac
5079build=$ac_cv_build
5080ac_save_IFS=$IFS; IFS='-'
5081set x $ac_cv_build
5082shift
5083build_cpu=$1
5084build_vendor=$2
5085shift; shift
5086# Remember, the first character of IFS is used to create $*,
5087# except with old shells:
5088build_os=$*
5089IFS=$ac_save_IFS
5090case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5091
5092
5093{ echo "$as_me:$LINENO: checking host system type" >&5
5094echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5095if test "${ac_cv_host+set}" = set; then
5096 echo $ECHO_N "(cached) $ECHO_C" >&6
5097else
5098 if test "x$host_alias" = x; then
5099 ac_cv_host=$ac_cv_build
5100else
5101 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5102 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5103echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5104 { (exit 1); exit 1; }; }
5105fi
5106
5107fi
5108{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5109echo "${ECHO_T}$ac_cv_host" >&6; }
5110case $ac_cv_host in
5111*-*-*) ;;
5112*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5113echo "$as_me: error: invalid value of canonical host" >&2;}
5114 { (exit 1); exit 1; }; };;
5115esac
5116host=$ac_cv_host
5117ac_save_IFS=$IFS; IFS='-'
5118set x $ac_cv_host
5119shift
5120host_cpu=$1
5121host_vendor=$2
5122shift; shift
5123# Remember, the first character of IFS is used to create $*,
5124# except with old shells:
5125host_os=$*
5126IFS=$ac_save_IFS
5127case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5128
5129
5130{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5131echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5132if test "${lt_cv_path_SED+set}" = set; then
5133 echo $ECHO_N "(cached) $ECHO_C" >&6
5134else
5135 # Loop through the user's path and test for sed and gsed.
5136# Then use that list of sed's as ones to test for truncation.
5137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5138for as_dir in $PATH
5139do
5140 IFS=$as_save_IFS
5141 test -z "$as_dir" && as_dir=.
5142 for lt_ac_prog in sed gsed; do
5143 for ac_exec_ext in '' $ac_executable_extensions; do
5144 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
5145 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5146 fi
5147 done
5148 done
5149done
5150IFS=$as_save_IFS
5151lt_ac_max=0
5152lt_ac_count=0
5153# Add /usr/xpg4/bin/sed as it is typically found on Solaris
5154# along with /bin/sed that truncates output.
5155for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5156 test ! -f $lt_ac_sed && continue
5157 cat /dev/null > conftest.in
5158 lt_ac_count=0
5159 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5160 # Check for GNU sed and select it if it is found.
5161 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5162 lt_cv_path_SED=$lt_ac_sed
5163 break
5164 fi
5165 while true; do
5166 cat conftest.in conftest.in >conftest.tmp
5167 mv conftest.tmp conftest.in
5168 cp conftest.in conftest.nl
5169 echo >>conftest.nl
5170 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5171 cmp -s conftest.out conftest.nl || break
5172 # 10000 chars as input seems more than enough
5173 test $lt_ac_count -gt 10 && break
5174 lt_ac_count=`expr $lt_ac_count + 1`
5175 if test $lt_ac_count -gt $lt_ac_max; then
5176 lt_ac_max=$lt_ac_count
5177 lt_cv_path_SED=$lt_ac_sed
5178 fi
5179 done
5180done
5181
5182fi
5183
5184SED=$lt_cv_path_SED
5185
5186{ echo "$as_me:$LINENO: result: $SED" >&5
5187echo "${ECHO_T}$SED" >&6; }
5188
5189
5190# Check whether --with-gnu-ld was given.
5191if test "${with_gnu_ld+set}" = set; then
5192 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5193else
5194 with_gnu_ld=no
5195fi
5196
5197ac_prog=ld
5198if test "$GCC" = yes; then
5199 # Check if gcc -print-prog-name=ld gives a path.
5200 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5201echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5202 case $host in
5203 *-*-mingw*)
5204 # gcc leaves a trailing carriage return which upsets mingw
5205 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5206 *)
5207 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5208 esac
5209 case $ac_prog in
5210 # Accept absolute paths.
5211 [\\/]* | ?:[\\/]*)
5212 re_direlt='/[^/][^/]*/\.\./'
5213 # Canonicalize the pathname of ld
5214 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5215 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5216 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5217 done
5218 test -z "$LD" && LD="$ac_prog"
5219 ;;
5220 "")
5221 # If it fails, then pretend we aren't using GCC.
5222 ac_prog=ld
5223 ;;
5224 *)
5225 # If it is relative, then search for the first ld in PATH.
5226 with_gnu_ld=unknown
5227 ;;
5228 esac
5229elif test "$with_gnu_ld" = yes; then
5230 { echo "$as_me:$LINENO: checking for GNU ld" >&5
5231echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5232else
5233 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5234echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5235fi
5236if test "${lt_cv_path_LD+set}" = set; then
5237 echo $ECHO_N "(cached) $ECHO_C" >&6
5238else
5239 if test -z "$LD"; then
5240 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5241 for ac_dir in $PATH; do
5242 IFS="$lt_save_ifs"
5243 test -z "$ac_dir" && ac_dir=.
5244 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5245 lt_cv_path_LD="$ac_dir/$ac_prog"
5246 # Check to see if the program is GNU ld. I'd rather use --version,
5247 # but apparently some variants of GNU ld only accept -v.
5248 # Break only if it was the GNU/non-GNU ld that we prefer.
5249 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5250 *GNU* | *'with BFD'*)
5251 test "$with_gnu_ld" != no && break
5252 ;;
5253 *)
5254 test "$with_gnu_ld" != yes && break
5255 ;;
5256 esac
5257 fi
5258 done
5259 IFS="$lt_save_ifs"
5260else
5261 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5262fi
5263fi
5264
5265LD="$lt_cv_path_LD"
5266if test -n "$LD"; then
5267 { echo "$as_me:$LINENO: result: $LD" >&5
5268echo "${ECHO_T}$LD" >&6; }
5269else
5270 { echo "$as_me:$LINENO: result: no" >&5
5271echo "${ECHO_T}no" >&6; }
5272fi
5273test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5274echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5275 { (exit 1); exit 1; }; }
5276{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5277echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5278if test "${lt_cv_prog_gnu_ld+set}" = set; then
5279 echo $ECHO_N "(cached) $ECHO_C" >&6
5280else
5281 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5282case `$LD -v 2>&1 </dev/null` in
5283*GNU* | *'with BFD'*)
5284 lt_cv_prog_gnu_ld=yes
5285 ;;
5286*)
5287 lt_cv_prog_gnu_ld=no
5288 ;;
5289esac
5290fi
5291{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5292echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5293with_gnu_ld=$lt_cv_prog_gnu_ld
5294
5295
5296{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5297echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
5298if test "${lt_cv_ld_reload_flag+set}" = set; then
5299 echo $ECHO_N "(cached) $ECHO_C" >&6
5300else
5301 lt_cv_ld_reload_flag='-r'
5302fi
5303{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5304echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
5305reload_flag=$lt_cv_ld_reload_flag
5306case $reload_flag in
5307"" | " "*) ;;
5308*) reload_flag=" $reload_flag" ;;
5309esac
5310reload_cmds='$LD$reload_flag -o $output$reload_objs'
5311case $host_os in
5312 darwin*)
5313 if test "$GCC" = yes; then
5314 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5315 else
5316 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5317 fi
5318 ;;
5319esac
5320
5321{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5322echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5323if test "${lt_cv_path_NM+set}" = set; then
5324 echo $ECHO_N "(cached) $ECHO_C" >&6
5325else
5326 if test -n "$NM"; then
5327 # Let the user override the test.
5328 lt_cv_path_NM="$NM"
5329else
5330 lt_nm_to_check="${ac_tool_prefix}nm"
5331 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5332 lt_nm_to_check="$lt_nm_to_check nm"
5333 fi
5334 for lt_tmp_nm in $lt_nm_to_check; do
5335 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5336 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5337 IFS="$lt_save_ifs"
5338 test -z "$ac_dir" && ac_dir=.
5339 tmp_nm="$ac_dir/$lt_tmp_nm"
5340 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5341 # Check to see if the nm accepts a BSD-compat flag.
5342 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5343 # nm: unknown option "B" ignored
5344 # Tru64's nm complains that /dev/null is an invalid object file
5345 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5346 */dev/null* | *'Invalid file or object type'*)
5347 lt_cv_path_NM="$tmp_nm -B"
5348 break
5349 ;;
5350 *)
5351 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5352 */dev/null*)
5353 lt_cv_path_NM="$tmp_nm -p"
5354 break
5355 ;;
5356 *)
5357 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5358 continue # so that we can try to find one that supports BSD flags
5359 ;;
5360 esac
5361 ;;
5362 esac
5363 fi
5364 done
5365 IFS="$lt_save_ifs"
5366 done
5367 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5368fi
5369fi
5370{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5371echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5372NM="$lt_cv_path_NM"
5373
5374{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
5375echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5376LN_S=$as_ln_s
5377if test "$LN_S" = "ln -s"; then
5378 { echo "$as_me:$LINENO: result: yes" >&5
5379echo "${ECHO_T}yes" >&6; }
5380else
5381 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5382echo "${ECHO_T}no, using $LN_S" >&6; }
5383fi
5384
5385{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5386echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
5387if test "${lt_cv_deplibs_check_method+set}" = set; then
5388 echo $ECHO_N "(cached) $ECHO_C" >&6
5389else
5390 lt_cv_file_magic_cmd='$MAGIC_CMD'
5391lt_cv_file_magic_test_file=
5392lt_cv_deplibs_check_method='unknown'
5393# Need to set the preceding variable on all platforms that support
5394# interlibrary dependencies.
5395# 'none' -- dependencies not supported.
5396# `unknown' -- same as none, but documents that we really don't know.
5397# 'pass_all' -- all dependencies passed with no checks.
5398# 'test_compile' -- check by making test program.
5399# 'file_magic [[regex]]' -- check by looking for files in library path
5400# which responds to the $file_magic_cmd with a given extended regex.
5401# If you have `file' or equivalent on your system and you're not sure
5402# whether `pass_all' will *always* work, you probably want this one.
5403
5404case $host_os in
56efe974 5405aix[4-9]*)
b57f37fb
WP
5406 lt_cv_deplibs_check_method=pass_all
5407 ;;
5408
5409beos*)
5410 lt_cv_deplibs_check_method=pass_all
5411 ;;
5412
5413bsdi[45]*)
5414 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5415 lt_cv_file_magic_cmd='/usr/bin/file -L'
5416 lt_cv_file_magic_test_file=/shlib/libc.so
5417 ;;
5418
5419cygwin*)
5420 # func_win32_libid is a shell function defined in ltmain.sh
5421 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5422 lt_cv_file_magic_cmd='func_win32_libid'
5423 ;;
5424
5425mingw* | pw32*)
5426 # Base MSYS/MinGW do not provide the 'file' command needed by
5427 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5428 # unless we find 'file', for example because we are cross-compiling.
5429 if ( file / ) >/dev/null 2>&1; then
5430 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5431 lt_cv_file_magic_cmd='func_win32_libid'
5432 else
5433 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5434 lt_cv_file_magic_cmd='$OBJDUMP -f'
5435 fi
5436 ;;
5437
5438darwin* | rhapsody*)
5439 lt_cv_deplibs_check_method=pass_all
5440 ;;
5441
5442freebsd* | dragonfly*)
5443 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5444 case $host_cpu in
5445 i*86 )
5446 # Not sure whether the presence of OpenBSD here was a mistake.
5447 # Let's accept both of them until this is cleared up.
5448 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5449 lt_cv_file_magic_cmd=/usr/bin/file
5450 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5451 ;;
5452 esac
5453 else
5454 lt_cv_deplibs_check_method=pass_all
5455 fi
5456 ;;
5457
5458gnu*)
5459 lt_cv_deplibs_check_method=pass_all
5460 ;;
5461
5462hpux10.20* | hpux11*)
5463 lt_cv_file_magic_cmd=/usr/bin/file
5464 case $host_cpu in
5465 ia64*)
5466 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5467 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5468 ;;
5469 hppa*64*)
5470 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]'
5471 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5472 ;;
5473 *)
5474 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5475 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5476 ;;
5477 esac
5478 ;;
5479
5480interix[3-9]*)
5481 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5482 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5483 ;;
5484
5485irix5* | irix6* | nonstopux*)
5486 case $LD in
5487 *-32|*"-32 ") libmagic=32-bit;;
5488 *-n32|*"-n32 ") libmagic=N32;;
5489 *-64|*"-64 ") libmagic=64-bit;;
5490 *) libmagic=never-match;;
5491 esac
5492 lt_cv_deplibs_check_method=pass_all
5493 ;;
5494
5495# This must be Linux ELF.
5496linux* | k*bsd*-gnu)
5497 lt_cv_deplibs_check_method=pass_all
5498 ;;
5499
5500netbsd* | netbsdelf*-gnu)
5501 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5502 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5503 else
5504 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5505 fi
5506 ;;
5507
5508newos6*)
5509 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5510 lt_cv_file_magic_cmd=/usr/bin/file
5511 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5512 ;;
5513
5514nto-qnx*)
5515 lt_cv_deplibs_check_method=unknown
5516 ;;
5517
5518openbsd*)
5519 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5520 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5521 else
5522 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5523 fi
5524 ;;
5525
5526osf3* | osf4* | osf5*)
5527 lt_cv_deplibs_check_method=pass_all
5528 ;;
5529
5530rdos*)
5531 lt_cv_deplibs_check_method=pass_all
5532 ;;
5533
5534solaris*)
5535 lt_cv_deplibs_check_method=pass_all
5536 ;;
5537
5538sysv4 | sysv4.3*)
5539 case $host_vendor in
5540 motorola)
5541 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]'
5542 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5543 ;;
5544 ncr)
5545 lt_cv_deplibs_check_method=pass_all
5546 ;;
5547 sequent)
5548 lt_cv_file_magic_cmd='/bin/file'
5549 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5550 ;;
5551 sni)
5552 lt_cv_file_magic_cmd='/bin/file'
5553 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5554 lt_cv_file_magic_test_file=/lib/libc.so
5555 ;;
5556 siemens)
5557 lt_cv_deplibs_check_method=pass_all
5558 ;;
5559 pc)
5560 lt_cv_deplibs_check_method=pass_all
5561 ;;
5562 esac
5563 ;;
5564
5565sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5566 lt_cv_deplibs_check_method=pass_all
5567 ;;
5568esac
5569
5570fi
5571{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5572echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
5573file_magic_cmd=$lt_cv_file_magic_cmd
5574deplibs_check_method=$lt_cv_deplibs_check_method
5575test -z "$deplibs_check_method" && deplibs_check_method=unknown
5576
5577
5578
5579
5580# If no C compiler was specified, use CC.
5581LTCC=${LTCC-"$CC"}
5582
5583# If no C compiler flags were specified, use CFLAGS.
5584LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5585
5586# Allow CC to be a program name with arguments.
5587compiler=$CC
5588
5589# Check whether --enable-libtool-lock was given.
5590if test "${enable_libtool_lock+set}" = set; then
5591 enableval=$enable_libtool_lock;
5592fi
5593
5594test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5595
5596# Some flags need to be propagated to the compiler or linker for good
5597# libtool support.
5598case $host in
5599ia64-*-hpux*)
5600 # Find out which ABI we are using.
5601 echo 'int i;' > conftest.$ac_ext
5602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5603 (eval $ac_compile) 2>&5
5604 ac_status=$?
5605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5606 (exit $ac_status); }; then
5607 case `/usr/bin/file conftest.$ac_objext` in
5608 *ELF-32*)
5609 HPUX_IA64_MODE="32"
5610 ;;
5611 *ELF-64*)
5612 HPUX_IA64_MODE="64"
5613 ;;
5614 esac
5615 fi
5616 rm -rf conftest*
5617 ;;
5618*-*-irix6*)
5619 # Find out which ABI we are using.
dd910409 5620 echo '#line 5620 "configure"' > conftest.$ac_ext
b57f37fb
WP
5621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5622 (eval $ac_compile) 2>&5
5623 ac_status=$?
5624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5625 (exit $ac_status); }; then
5626 if test "$lt_cv_prog_gnu_ld" = yes; then
5627 case `/usr/bin/file conftest.$ac_objext` in
5628 *32-bit*)
5629 LD="${LD-ld} -melf32bsmip"
5630 ;;
5631 *N32*)
5632 LD="${LD-ld} -melf32bmipn32"
5633 ;;
5634 *64-bit*)
5635 LD="${LD-ld} -melf64bmip"
5636 ;;
5637 esac
5638 else
5639 case `/usr/bin/file conftest.$ac_objext` in
5640 *32-bit*)
5641 LD="${LD-ld} -32"
5642 ;;
5643 *N32*)
5644 LD="${LD-ld} -n32"
5645 ;;
5646 *64-bit*)
5647 LD="${LD-ld} -64"
5648 ;;
5649 esac
5650 fi
5651 fi
5652 rm -rf conftest*
5653 ;;
5654
5655x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5656s390*-*linux*|sparc*-*linux*)
5657 # Find out which ABI we are using.
5658 echo 'int i;' > conftest.$ac_ext
5659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5660 (eval $ac_compile) 2>&5
5661 ac_status=$?
5662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5663 (exit $ac_status); }; then
5664 case `/usr/bin/file conftest.o` in
5665 *32-bit*)
5666 case $host in
5667 x86_64-*kfreebsd*-gnu)
5668 LD="${LD-ld} -m elf_i386_fbsd"
5669 ;;
5670 x86_64-*linux*)
5671 LD="${LD-ld} -m elf_i386"
5672 ;;
5673 ppc64-*linux*|powerpc64-*linux*)
5674 LD="${LD-ld} -m elf32ppclinux"
5675 ;;
5676 s390x-*linux*)
5677 LD="${LD-ld} -m elf_s390"
5678 ;;
5679 sparc64-*linux*)
5680 LD="${LD-ld} -m elf32_sparc"
5681 ;;
5682 esac
5683 ;;
5684 *64-bit*)
5685 case $host in
5686 x86_64-*kfreebsd*-gnu)
5687 LD="${LD-ld} -m elf_x86_64_fbsd"
5688 ;;
5689 x86_64-*linux*)
5690 LD="${LD-ld} -m elf_x86_64"
5691 ;;
5692 ppc*-*linux*|powerpc*-*linux*)
5693 LD="${LD-ld} -m elf64ppc"
5694 ;;
5695 s390*-*linux*)
5696 LD="${LD-ld} -m elf64_s390"
5697 ;;
5698 sparc*-*linux*)
5699 LD="${LD-ld} -m elf64_sparc"
5700 ;;
5701 esac
5702 ;;
5703 esac
5704 fi
5705 rm -rf conftest*
5706 ;;
5707
5708*-*-sco3.2v5*)
5709 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5710 SAVE_CFLAGS="$CFLAGS"
5711 CFLAGS="$CFLAGS -belf"
5712 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5713echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
5714if test "${lt_cv_cc_needs_belf+set}" = set; then
5715 echo $ECHO_N "(cached) $ECHO_C" >&6
5716else
5717 ac_ext=c
5718ac_cpp='$CPP $CPPFLAGS'
5719ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5720ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5721ac_compiler_gnu=$ac_cv_c_compiler_gnu
5722
5723 cat >conftest.$ac_ext <<_ACEOF
5724/* confdefs.h. */
5725_ACEOF
5726cat confdefs.h >>conftest.$ac_ext
5727cat >>conftest.$ac_ext <<_ACEOF
5728/* end confdefs.h. */
5729
5730int
5731main ()
5732{
5733
5734 ;
5735 return 0;
5736}
5737_ACEOF
5738rm -f conftest.$ac_objext conftest$ac_exeext
5739if { (ac_try="$ac_link"
5740case "(($ac_try" in
5741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5742 *) ac_try_echo=$ac_try;;
5743esac
5744eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5745 (eval "$ac_link") 2>conftest.er1
5746 ac_status=$?
5747 grep -v '^ *+' conftest.er1 >conftest.err
5748 rm -f conftest.er1
5749 cat conftest.err >&5
5750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5751 (exit $ac_status); } && {
5752 test -z "$ac_c_werror_flag" ||
5753 test ! -s conftest.err
5754 } && test -s conftest$ac_exeext &&
5755 $as_test_x conftest$ac_exeext; then
5756 lt_cv_cc_needs_belf=yes
5757else
5758 echo "$as_me: failed program was:" >&5
5759sed 's/^/| /' conftest.$ac_ext >&5
5760
5761 lt_cv_cc_needs_belf=no
5762fi
5763
5764rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5765 conftest$ac_exeext conftest.$ac_ext
5766 ac_ext=c
5767ac_cpp='$CPP $CPPFLAGS'
5768ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5769ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5770ac_compiler_gnu=$ac_cv_c_compiler_gnu
5771
5772fi
5773{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5774echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
5775 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5776 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5777 CFLAGS="$SAVE_CFLAGS"
5778 fi
5779 ;;
5780sparc*-*solaris*)
5781 # Find out which ABI we are using.
5782 echo 'int i;' > conftest.$ac_ext
5783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5784 (eval $ac_compile) 2>&5
5785 ac_status=$?
5786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5787 (exit $ac_status); }; then
5788 case `/usr/bin/file conftest.o` in
5789 *64-bit*)
5790 case $lt_cv_prog_gnu_ld in
5791 yes*) LD="${LD-ld} -m elf64_sparc" ;;
56efe974
WP
5792 *)
5793 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5794 LD="${LD-ld} -64"
5795 fi
5796 ;;
b57f37fb
WP
5797 esac
5798 ;;
5799 esac
5800 fi
5801 rm -rf conftest*
5802 ;;
5803
5804
5805esac
5806
5807need_locks="$enable_libtool_lock"
5808
5809
5810ac_ext=c
5811ac_cpp='$CPP $CPPFLAGS'
5812ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5813ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5814ac_compiler_gnu=$ac_cv_c_compiler_gnu
5815{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5816echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5817# On Suns, sometimes $CPP names a directory.
5818if test -n "$CPP" && test -d "$CPP"; then
5819 CPP=
5820fi
5821if test -z "$CPP"; then
5822 if test "${ac_cv_prog_CPP+set}" = set; then
5823 echo $ECHO_N "(cached) $ECHO_C" >&6
5824else
5825 # Double quotes because CPP needs to be expanded
5826 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5827 do
5828 ac_preproc_ok=false
5829for ac_c_preproc_warn_flag in '' yes
5830do
5831 # Use a header file that comes with gcc, so configuring glibc
5832 # with a fresh cross-compiler works.
5833 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5834 # <limits.h> exists even on freestanding compilers.
5835 # On the NeXT, cc -E runs the code through the compiler's parser,
5836 # not just through cpp. "Syntax error" is here to catch this case.
5837 cat >conftest.$ac_ext <<_ACEOF
5838/* confdefs.h. */
5839_ACEOF
5840cat confdefs.h >>conftest.$ac_ext
5841cat >>conftest.$ac_ext <<_ACEOF
5842/* end confdefs.h. */
5843#ifdef __STDC__
5844# include <limits.h>
5845#else
5846# include <assert.h>
5847#endif
5848 Syntax error
5849_ACEOF
5850if { (ac_try="$ac_cpp conftest.$ac_ext"
5851case "(($ac_try" in
5852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5853 *) ac_try_echo=$ac_try;;
5854esac
5855eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5856 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5857 ac_status=$?
5858 grep -v '^ *+' conftest.er1 >conftest.err
5859 rm -f conftest.er1
5860 cat conftest.err >&5
5861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5862 (exit $ac_status); } >/dev/null && {
5863 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5864 test ! -s conftest.err
5865 }; then
5866 :
5867else
5868 echo "$as_me: failed program was:" >&5
5869sed 's/^/| /' conftest.$ac_ext >&5
5870
5871 # Broken: fails on valid input.
5872continue
5873fi
5874
5875rm -f conftest.err conftest.$ac_ext
5876
5877 # OK, works on sane cases. Now check whether nonexistent headers
5878 # can be detected and how.
5879 cat >conftest.$ac_ext <<_ACEOF
5880/* confdefs.h. */
5881_ACEOF
5882cat confdefs.h >>conftest.$ac_ext
5883cat >>conftest.$ac_ext <<_ACEOF
5884/* end confdefs.h. */
5885#include <ac_nonexistent.h>
5886_ACEOF
5887if { (ac_try="$ac_cpp conftest.$ac_ext"
5888case "(($ac_try" in
5889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5890 *) ac_try_echo=$ac_try;;
5891esac
5892eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5893 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5894 ac_status=$?
5895 grep -v '^ *+' conftest.er1 >conftest.err
5896 rm -f conftest.er1
5897 cat conftest.err >&5
5898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5899 (exit $ac_status); } >/dev/null && {
5900 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5901 test ! -s conftest.err
5902 }; then
5903 # Broken: success on invalid input.
5904continue
5905else
5906 echo "$as_me: failed program was:" >&5
5907sed 's/^/| /' conftest.$ac_ext >&5
5908
5909 # Passes both tests.
5910ac_preproc_ok=:
5911break
5912fi
5913
5914rm -f conftest.err conftest.$ac_ext
5915
5916done
5917# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5918rm -f conftest.err conftest.$ac_ext
5919if $ac_preproc_ok; then
5920 break
5921fi
5922
5923 done
5924 ac_cv_prog_CPP=$CPP
5925
5926fi
5927 CPP=$ac_cv_prog_CPP
5928else
5929 ac_cv_prog_CPP=$CPP
5930fi
5931{ echo "$as_me:$LINENO: result: $CPP" >&5
5932echo "${ECHO_T}$CPP" >&6; }
5933ac_preproc_ok=false
5934for ac_c_preproc_warn_flag in '' yes
5935do
5936 # Use a header file that comes with gcc, so configuring glibc
5937 # with a fresh cross-compiler works.
5938 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5939 # <limits.h> exists even on freestanding compilers.
5940 # On the NeXT, cc -E runs the code through the compiler's parser,
5941 # not just through cpp. "Syntax error" is here to catch this case.
5942 cat >conftest.$ac_ext <<_ACEOF
5943/* confdefs.h. */
5944_ACEOF
5945cat confdefs.h >>conftest.$ac_ext
5946cat >>conftest.$ac_ext <<_ACEOF
5947/* end confdefs.h. */
5948#ifdef __STDC__
5949# include <limits.h>
5950#else
5951# include <assert.h>
5952#endif
5953 Syntax error
5954_ACEOF
5955if { (ac_try="$ac_cpp conftest.$ac_ext"
5956case "(($ac_try" in
5957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5958 *) ac_try_echo=$ac_try;;
5959esac
5960eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5961 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5962 ac_status=$?
5963 grep -v '^ *+' conftest.er1 >conftest.err
5964 rm -f conftest.er1
5965 cat conftest.err >&5
5966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5967 (exit $ac_status); } >/dev/null && {
5968 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5969 test ! -s conftest.err
5970 }; then
5971 :
5972else
5973 echo "$as_me: failed program was:" >&5
5974sed 's/^/| /' conftest.$ac_ext >&5
5975
5976 # Broken: fails on valid input.
5977continue
5978fi
5979
5980rm -f conftest.err conftest.$ac_ext
5981
5982 # OK, works on sane cases. Now check whether nonexistent headers
5983 # can be detected and how.
5984 cat >conftest.$ac_ext <<_ACEOF
5985/* confdefs.h. */
5986_ACEOF
5987cat confdefs.h >>conftest.$ac_ext
5988cat >>conftest.$ac_ext <<_ACEOF
5989/* end confdefs.h. */
5990#include <ac_nonexistent.h>
5991_ACEOF
5992if { (ac_try="$ac_cpp conftest.$ac_ext"
5993case "(($ac_try" in
5994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5995 *) ac_try_echo=$ac_try;;
5996esac
5997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5998 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5999 ac_status=$?
6000 grep -v '^ *+' conftest.er1 >conftest.err
6001 rm -f conftest.er1
6002 cat conftest.err >&5
6003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6004 (exit $ac_status); } >/dev/null && {
6005 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6006 test ! -s conftest.err
6007 }; then
6008 # Broken: success on invalid input.
6009continue
6010else
6011 echo "$as_me: failed program was:" >&5
6012sed 's/^/| /' conftest.$ac_ext >&5
6013
6014 # Passes both tests.
6015ac_preproc_ok=:
6016break
6017fi
6018
6019rm -f conftest.err conftest.$ac_ext
6020
6021done
6022# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6023rm -f conftest.err conftest.$ac_ext
6024if $ac_preproc_ok; then
6025 :
6026else
6027 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6028See \`config.log' for more details." >&5
6029echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6030See \`config.log' for more details." >&2;}
6031 { (exit 1); exit 1; }; }
6032fi
6033
6034ac_ext=c
6035ac_cpp='$CPP $CPPFLAGS'
6036ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6037ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6038ac_compiler_gnu=$ac_cv_c_compiler_gnu
6039
6040
6041{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6042echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6043if test "${ac_cv_header_stdc+set}" = set; then
6044 echo $ECHO_N "(cached) $ECHO_C" >&6
6045else
6046 cat >conftest.$ac_ext <<_ACEOF
6047/* confdefs.h. */
6048_ACEOF
6049cat confdefs.h >>conftest.$ac_ext
6050cat >>conftest.$ac_ext <<_ACEOF
6051/* end confdefs.h. */
6052#include <stdlib.h>
6053#include <stdarg.h>
6054#include <string.h>
6055#include <float.h>
6056
6057int
6058main ()
6059{
6060
6061 ;
6062 return 0;
6063}
6064_ACEOF
6065rm -f conftest.$ac_objext
6066if { (ac_try="$ac_compile"
6067case "(($ac_try" in
6068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6069 *) ac_try_echo=$ac_try;;
6070esac
6071eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6072 (eval "$ac_compile") 2>conftest.er1
6073 ac_status=$?
6074 grep -v '^ *+' conftest.er1 >conftest.err
6075 rm -f conftest.er1
6076 cat conftest.err >&5
6077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6078 (exit $ac_status); } && {
6079 test -z "$ac_c_werror_flag" ||
6080 test ! -s conftest.err
6081 } && test -s conftest.$ac_objext; then
6082 ac_cv_header_stdc=yes
6083else
6084 echo "$as_me: failed program was:" >&5
6085sed 's/^/| /' conftest.$ac_ext >&5
6086
6087 ac_cv_header_stdc=no
6088fi
6089
6090rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6091
6092if test $ac_cv_header_stdc = yes; then
6093 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6094 cat >conftest.$ac_ext <<_ACEOF
6095/* confdefs.h. */
6096_ACEOF
6097cat confdefs.h >>conftest.$ac_ext
6098cat >>conftest.$ac_ext <<_ACEOF
6099/* end confdefs.h. */
6100#include <string.h>
6101
6102_ACEOF
6103if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6104 $EGREP "memchr" >/dev/null 2>&1; then
6105 :
6106else
6107 ac_cv_header_stdc=no
6108fi
6109rm -f conftest*
6110
6111fi
6112
6113if test $ac_cv_header_stdc = yes; then
6114 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6115 cat >conftest.$ac_ext <<_ACEOF
6116/* confdefs.h. */
6117_ACEOF
6118cat confdefs.h >>conftest.$ac_ext
6119cat >>conftest.$ac_ext <<_ACEOF
6120/* end confdefs.h. */
6121#include <stdlib.h>
6122
6123_ACEOF
6124if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6125 $EGREP "free" >/dev/null 2>&1; then
6126 :
6127else
6128 ac_cv_header_stdc=no
6129fi
6130rm -f conftest*
6131
6132fi
6133
6134if test $ac_cv_header_stdc = yes; then
6135 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6136 if test "$cross_compiling" = yes; then
6137 :
6138else
6139 cat >conftest.$ac_ext <<_ACEOF
6140/* confdefs.h. */
6141_ACEOF
6142cat confdefs.h >>conftest.$ac_ext
6143cat >>conftest.$ac_ext <<_ACEOF
6144/* end confdefs.h. */
6145#include <ctype.h>
6146#include <stdlib.h>
6147#if ((' ' & 0x0FF) == 0x020)
6148# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6149# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6150#else
6151# define ISLOWER(c) \
6152 (('a' <= (c) && (c) <= 'i') \
6153 || ('j' <= (c) && (c) <= 'r') \
6154 || ('s' <= (c) && (c) <= 'z'))
6155# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6156#endif
6157
6158#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6159int
6160main ()
6161{
6162 int i;
6163 for (i = 0; i < 256; i++)
6164 if (XOR (islower (i), ISLOWER (i))
6165 || toupper (i) != TOUPPER (i))
6166 return 2;
6167 return 0;
6168}
6169_ACEOF
6170rm -f conftest$ac_exeext
6171if { (ac_try="$ac_link"
6172case "(($ac_try" in
6173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6174 *) ac_try_echo=$ac_try;;
6175esac
6176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6177 (eval "$ac_link") 2>&5
6178 ac_status=$?
6179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6180 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6181 { (case "(($ac_try" in
6182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6183 *) ac_try_echo=$ac_try;;
6184esac
6185eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6186 (eval "$ac_try") 2>&5
6187 ac_status=$?
6188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6189 (exit $ac_status); }; }; then
6190 :
6191else
6192 echo "$as_me: program exited with status $ac_status" >&5
6193echo "$as_me: failed program was:" >&5
6194sed 's/^/| /' conftest.$ac_ext >&5
6195
6196( exit $ac_status )
6197ac_cv_header_stdc=no
6198fi
6199rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6200fi
6201
6202
6203fi
6204fi
6205{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6206echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6207if test $ac_cv_header_stdc = yes; then
6208
6209cat >>confdefs.h <<\_ACEOF
6210#define STDC_HEADERS 1
6211_ACEOF
6212
6213fi
6214
6215# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6226 inttypes.h stdint.h unistd.h
6227do
6228as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6229{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6230echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6231if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6232 echo $ECHO_N "(cached) $ECHO_C" >&6
6233else
6234 cat >conftest.$ac_ext <<_ACEOF
6235/* confdefs.h. */
6236_ACEOF
6237cat confdefs.h >>conftest.$ac_ext
6238cat >>conftest.$ac_ext <<_ACEOF
6239/* end confdefs.h. */
6240$ac_includes_default
6241
6242#include <$ac_header>
6243_ACEOF
6244rm -f conftest.$ac_objext
6245if { (ac_try="$ac_compile"
6246case "(($ac_try" in
6247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6248 *) ac_try_echo=$ac_try;;
6249esac
6250eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6251 (eval "$ac_compile") 2>conftest.er1
6252 ac_status=$?
6253 grep -v '^ *+' conftest.er1 >conftest.err
6254 rm -f conftest.er1
6255 cat conftest.err >&5
6256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6257 (exit $ac_status); } && {
6258 test -z "$ac_c_werror_flag" ||
6259 test ! -s conftest.err
6260 } && test -s conftest.$ac_objext; then
6261 eval "$as_ac_Header=yes"
6262else
6263 echo "$as_me: failed program was:" >&5
6264sed 's/^/| /' conftest.$ac_ext >&5
6265
6266 eval "$as_ac_Header=no"
6267fi
6268
6269rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6270fi
6271ac_res=`eval echo '${'$as_ac_Header'}'`
6272 { echo "$as_me:$LINENO: result: $ac_res" >&5
6273echo "${ECHO_T}$ac_res" >&6; }
6274if test `eval echo '${'$as_ac_Header'}'` = yes; then
6275 cat >>confdefs.h <<_ACEOF
6276#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6277_ACEOF
6278
6279fi
6280
6281done
6282
6283
6284
6285for ac_header in dlfcn.h
6286do
6287as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6288if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6289 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6290echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6291if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6292 echo $ECHO_N "(cached) $ECHO_C" >&6
6293fi
6294ac_res=`eval echo '${'$as_ac_Header'}'`
6295 { echo "$as_me:$LINENO: result: $ac_res" >&5
6296echo "${ECHO_T}$ac_res" >&6; }
6297else
6298 # Is the header compilable?
6299{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
6300echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6301cat >conftest.$ac_ext <<_ACEOF
6302/* confdefs.h. */
6303_ACEOF
6304cat confdefs.h >>conftest.$ac_ext
6305cat >>conftest.$ac_ext <<_ACEOF
6306/* end confdefs.h. */
6307$ac_includes_default
6308#include <$ac_header>
6309_ACEOF
6310rm -f conftest.$ac_objext
6311if { (ac_try="$ac_compile"
6312case "(($ac_try" in
6313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6314 *) ac_try_echo=$ac_try;;
6315esac
6316eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6317 (eval "$ac_compile") 2>conftest.er1
6318 ac_status=$?
6319 grep -v '^ *+' conftest.er1 >conftest.err
6320 rm -f conftest.er1
6321 cat conftest.err >&5
6322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6323 (exit $ac_status); } && {
6324 test -z "$ac_c_werror_flag" ||
6325 test ! -s conftest.err
6326 } && test -s conftest.$ac_objext; then
6327 ac_header_compiler=yes
6328else
6329 echo "$as_me: failed program was:" >&5
6330sed 's/^/| /' conftest.$ac_ext >&5
6331
6332 ac_header_compiler=no
6333fi
6334
6335rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6336{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6337echo "${ECHO_T}$ac_header_compiler" >&6; }
6338
6339# Is the header present?
6340{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
6341echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6342cat >conftest.$ac_ext <<_ACEOF
6343/* confdefs.h. */
6344_ACEOF
6345cat confdefs.h >>conftest.$ac_ext
6346cat >>conftest.$ac_ext <<_ACEOF
6347/* end confdefs.h. */
6348#include <$ac_header>
6349_ACEOF
6350if { (ac_try="$ac_cpp conftest.$ac_ext"
6351case "(($ac_try" in
6352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6353 *) ac_try_echo=$ac_try;;
6354esac
6355eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6356 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6357 ac_status=$?
6358 grep -v '^ *+' conftest.er1 >conftest.err
6359 rm -f conftest.er1
6360 cat conftest.err >&5
6361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6362 (exit $ac_status); } >/dev/null && {
6363 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6364 test ! -s conftest.err
6365 }; then
6366 ac_header_preproc=yes
6367else
6368 echo "$as_me: failed program was:" >&5
6369sed 's/^/| /' conftest.$ac_ext >&5
6370
6371 ac_header_preproc=no
6372fi
6373
6374rm -f conftest.err conftest.$ac_ext
6375{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6376echo "${ECHO_T}$ac_header_preproc" >&6; }
6377
6378# So? What about this header?
6379case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6380 yes:no: )
6381 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6382echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6383 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6384echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6385 ac_header_preproc=yes
6386 ;;
6387 no:yes:* )
6388 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6389echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6390 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6391echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6392 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6393echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6394 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6395echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6396 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6397echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6398 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6399echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6400
6401 ;;
6402esac
6403{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6404echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6405if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6406 echo $ECHO_N "(cached) $ECHO_C" >&6
6407else
6408 eval "$as_ac_Header=\$ac_header_preproc"
6409fi
6410ac_res=`eval echo '${'$as_ac_Header'}'`
6411 { echo "$as_me:$LINENO: result: $ac_res" >&5
6412echo "${ECHO_T}$ac_res" >&6; }
6413
6414fi
6415if test `eval echo '${'$as_ac_Header'}'` = yes; then
6416 cat >>confdefs.h <<_ACEOF
6417#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6418_ACEOF
6419
6420fi
6421
6422done
6423
6424ac_ext=cpp
6425ac_cpp='$CXXCPP $CPPFLAGS'
6426ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6427ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6428ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6429if test -z "$CXX"; then
6430 if test -n "$CCC"; then
6431 CXX=$CCC
6432 else
6433 if test -n "$ac_tool_prefix"; then
6434 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6435 do
6436 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6437set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6438{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6439echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6440if test "${ac_cv_prog_CXX+set}" = set; then
6441 echo $ECHO_N "(cached) $ECHO_C" >&6
6442else
6443 if test -n "$CXX"; then
6444 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6445else
6446as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6447for as_dir in $PATH
6448do
6449 IFS=$as_save_IFS
6450 test -z "$as_dir" && as_dir=.
6451 for ac_exec_ext in '' $ac_executable_extensions; do
6452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6453 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6454 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6455 break 2
6456 fi
6457done
6458done
6459IFS=$as_save_IFS
6460
6461fi
6462fi
6463CXX=$ac_cv_prog_CXX
6464if test -n "$CXX"; then
6465 { echo "$as_me:$LINENO: result: $CXX" >&5
6466echo "${ECHO_T}$CXX" >&6; }
6467else
6468 { echo "$as_me:$LINENO: result: no" >&5
6469echo "${ECHO_T}no" >&6; }
6470fi
6471
6472
6473 test -n "$CXX" && break
6474 done
6475fi
6476if test -z "$CXX"; then
6477 ac_ct_CXX=$CXX
6478 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6479do
6480 # Extract the first word of "$ac_prog", so it can be a program name with args.
6481set dummy $ac_prog; ac_word=$2
6482{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6483echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6484if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6485 echo $ECHO_N "(cached) $ECHO_C" >&6
6486else
6487 if test -n "$ac_ct_CXX"; then
6488 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6489else
6490as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6491for as_dir in $PATH
6492do
6493 IFS=$as_save_IFS
6494 test -z "$as_dir" && as_dir=.
6495 for ac_exec_ext in '' $ac_executable_extensions; do
6496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6497 ac_cv_prog_ac_ct_CXX="$ac_prog"
6498 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6499 break 2
6500 fi
6501done
6502done
6503IFS=$as_save_IFS
6504
6505fi
6506fi
6507ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6508if test -n "$ac_ct_CXX"; then
6509 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6510echo "${ECHO_T}$ac_ct_CXX" >&6; }
6511else
6512 { echo "$as_me:$LINENO: result: no" >&5
6513echo "${ECHO_T}no" >&6; }
6514fi
6515
6516
6517 test -n "$ac_ct_CXX" && break
6518done
6519
6520 if test "x$ac_ct_CXX" = x; then
6521 CXX="g++"
6522 else
6523 case $cross_compiling:$ac_tool_warned in
6524yes:)
6525{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6526whose name does not start with the host triplet. If you think this
6527configuration is useful to you, please write to autoconf@gnu.org." >&5
6528echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6529whose name does not start with the host triplet. If you think this
6530configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6531ac_tool_warned=yes ;;
6532esac
6533 CXX=$ac_ct_CXX
6534 fi
6535fi
6536
6537 fi
6538fi
6539# Provide some information about the compiler.
6540echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6541ac_compiler=`set X $ac_compile; echo $2`
6542{ (ac_try="$ac_compiler --version >&5"
6543case "(($ac_try" in
6544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6545 *) ac_try_echo=$ac_try;;
6546esac
6547eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6548 (eval "$ac_compiler --version >&5") 2>&5
6549 ac_status=$?
6550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6551 (exit $ac_status); }
6552{ (ac_try="$ac_compiler -v >&5"
6553case "(($ac_try" in
6554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6555 *) ac_try_echo=$ac_try;;
6556esac
6557eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6558 (eval "$ac_compiler -v >&5") 2>&5
6559 ac_status=$?
6560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6561 (exit $ac_status); }
6562{ (ac_try="$ac_compiler -V >&5"
6563case "(($ac_try" in
6564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6565 *) ac_try_echo=$ac_try;;
6566esac
6567eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6568 (eval "$ac_compiler -V >&5") 2>&5
6569 ac_status=$?
6570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6571 (exit $ac_status); }
6572
6573{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6574echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6575if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6576 echo $ECHO_N "(cached) $ECHO_C" >&6
6577else
6578 cat >conftest.$ac_ext <<_ACEOF
6579/* confdefs.h. */
6580_ACEOF
6581cat confdefs.h >>conftest.$ac_ext
6582cat >>conftest.$ac_ext <<_ACEOF
6583/* end confdefs.h. */
6584
6585int
6586main ()
6587{
6588#ifndef __GNUC__
6589 choke me
6590#endif
6591
6592 ;
6593 return 0;
6594}
6595_ACEOF
6596rm -f conftest.$ac_objext
6597if { (ac_try="$ac_compile"
6598case "(($ac_try" in
6599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6600 *) ac_try_echo=$ac_try;;
6601esac
6602eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6603 (eval "$ac_compile") 2>conftest.er1
6604 ac_status=$?
6605 grep -v '^ *+' conftest.er1 >conftest.err
6606 rm -f conftest.er1
6607 cat conftest.err >&5
6608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6609 (exit $ac_status); } && {
6610 test -z "$ac_cxx_werror_flag" ||
6611 test ! -s conftest.err
6612 } && test -s conftest.$ac_objext; then
6613 ac_compiler_gnu=yes
6614else
6615 echo "$as_me: failed program was:" >&5
6616sed 's/^/| /' conftest.$ac_ext >&5
6617
6618 ac_compiler_gnu=no
6619fi
6620
6621rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6622ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6623
6624fi
6625{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6626echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6627GXX=`test $ac_compiler_gnu = yes && echo yes`
6628ac_test_CXXFLAGS=${CXXFLAGS+set}
6629ac_save_CXXFLAGS=$CXXFLAGS
6630{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6631echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6632if test "${ac_cv_prog_cxx_g+set}" = set; then
6633 echo $ECHO_N "(cached) $ECHO_C" >&6
6634else
6635 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6636 ac_cxx_werror_flag=yes
6637 ac_cv_prog_cxx_g=no
6638 CXXFLAGS="-g"
6639 cat >conftest.$ac_ext <<_ACEOF
6640/* confdefs.h. */
6641_ACEOF
6642cat confdefs.h >>conftest.$ac_ext
6643cat >>conftest.$ac_ext <<_ACEOF
6644/* end confdefs.h. */
6645
6646int
6647main ()
6648{
6649
6650 ;
6651 return 0;
6652}
6653_ACEOF
6654rm -f conftest.$ac_objext
6655if { (ac_try="$ac_compile"
6656case "(($ac_try" in
6657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6658 *) ac_try_echo=$ac_try;;
6659esac
6660eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6661 (eval "$ac_compile") 2>conftest.er1
6662 ac_status=$?
6663 grep -v '^ *+' conftest.er1 >conftest.err
6664 rm -f conftest.er1
6665 cat conftest.err >&5
6666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6667 (exit $ac_status); } && {
6668 test -z "$ac_cxx_werror_flag" ||
6669 test ! -s conftest.err
6670 } && test -s conftest.$ac_objext; then
6671 ac_cv_prog_cxx_g=yes
6672else
6673 echo "$as_me: failed program was:" >&5
6674sed 's/^/| /' conftest.$ac_ext >&5
6675
6676 CXXFLAGS=""
6677 cat >conftest.$ac_ext <<_ACEOF
6678/* confdefs.h. */
6679_ACEOF
6680cat confdefs.h >>conftest.$ac_ext
6681cat >>conftest.$ac_ext <<_ACEOF
6682/* end confdefs.h. */
6683
6684int
6685main ()
6686{
6687
6688 ;
6689 return 0;
6690}
6691_ACEOF
6692rm -f conftest.$ac_objext
6693if { (ac_try="$ac_compile"
6694case "(($ac_try" in
6695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6696 *) ac_try_echo=$ac_try;;
6697esac
6698eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6699 (eval "$ac_compile") 2>conftest.er1
6700 ac_status=$?
6701 grep -v '^ *+' conftest.er1 >conftest.err
6702 rm -f conftest.er1
6703 cat conftest.err >&5
6704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6705 (exit $ac_status); } && {
6706 test -z "$ac_cxx_werror_flag" ||
6707 test ! -s conftest.err
6708 } && test -s conftest.$ac_objext; then
6709 :
6710else
6711 echo "$as_me: failed program was:" >&5
6712sed 's/^/| /' conftest.$ac_ext >&5
6713
6714 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6715 CXXFLAGS="-g"
6716 cat >conftest.$ac_ext <<_ACEOF
6717/* confdefs.h. */
6718_ACEOF
6719cat confdefs.h >>conftest.$ac_ext
6720cat >>conftest.$ac_ext <<_ACEOF
6721/* end confdefs.h. */
6722
6723int
6724main ()
6725{
6726
6727 ;
6728 return 0;
6729}
6730_ACEOF
6731rm -f conftest.$ac_objext
6732if { (ac_try="$ac_compile"
6733case "(($ac_try" in
6734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6735 *) ac_try_echo=$ac_try;;
6736esac
6737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6738 (eval "$ac_compile") 2>conftest.er1
6739 ac_status=$?
6740 grep -v '^ *+' conftest.er1 >conftest.err
6741 rm -f conftest.er1
6742 cat conftest.err >&5
6743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6744 (exit $ac_status); } && {
6745 test -z "$ac_cxx_werror_flag" ||
6746 test ! -s conftest.err
6747 } && test -s conftest.$ac_objext; then
6748 ac_cv_prog_cxx_g=yes
6749else
6750 echo "$as_me: failed program was:" >&5
6751sed 's/^/| /' conftest.$ac_ext >&5
6752
6753
6754fi
6755
6756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6757fi
6758
6759rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6760fi
6761
6762rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6763 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6764fi
6765{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6766echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6767if test "$ac_test_CXXFLAGS" = set; then
6768 CXXFLAGS=$ac_save_CXXFLAGS
6769elif test $ac_cv_prog_cxx_g = yes; then
6770 if test "$GXX" = yes; then
6771 CXXFLAGS="-g -O2"
6772 else
6773 CXXFLAGS="-g"
6774 fi
6775else
6776 if test "$GXX" = yes; then
6777 CXXFLAGS="-O2"
6778 else
6779 CXXFLAGS=
6780 fi
6781fi
6782ac_ext=cpp
6783ac_cpp='$CXXCPP $CPPFLAGS'
6784ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6785ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6786ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6787
6788depcc="$CXX" am_compiler_list=
6789
6790{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6791echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
6792if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6793 echo $ECHO_N "(cached) $ECHO_C" >&6
6794else
6795 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6796 # We make a subdir and do the tests there. Otherwise we can end up
6797 # making bogus files that we don't know about and never remove. For
6798 # instance it was reported that on HP-UX the gcc test will end up
6799 # making a dummy file named `D' -- because `-MD' means `put the output
6800 # in D'.
6801 mkdir conftest.dir
6802 # Copy depcomp to subdir because otherwise we won't find it if we're
6803 # using a relative directory.
6804 cp "$am_depcomp" conftest.dir
6805 cd conftest.dir
6806 # We will build objects and dependencies in a subdirectory because
6807 # it helps to detect inapplicable dependency modes. For instance
6808 # both Tru64's cc and ICC support -MD to output dependencies as a
6809 # side effect of compilation, but ICC will put the dependencies in
6810 # the current directory while Tru64 will put them in the object
6811 # directory.
6812 mkdir sub
6813
6814 am_cv_CXX_dependencies_compiler_type=none
6815 if test "$am_compiler_list" = ""; then
6816 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6817 fi
6818 for depmode in $am_compiler_list; do
6819 # Setup a source with many dependencies, because some compilers
6820 # like to wrap large dependency lists on column 80 (with \), and
6821 # we should not choose a depcomp mode which is confused by this.
6822 #
6823 # We need to recreate these files for each test, as the compiler may
6824 # overwrite some of them when testing with obscure command lines.
6825 # This happens at least with the AIX C compiler.
6826 : > sub/conftest.c
6827 for i in 1 2 3 4 5 6; do
6828 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6829 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6830 # Solaris 8's {/usr,}/bin/sh.
6831 touch sub/conftst$i.h
6832 done
6833 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6834
6835 case $depmode in
6836 nosideeffect)
6837 # after this tag, mechanisms are not by side-effect, so they'll
6838 # only be used when explicitly requested
6839 if test "x$enable_dependency_tracking" = xyes; then
6840 continue
6841 else
6842 break
6843 fi
6844 ;;
6845 none) break ;;
6846 esac
6847 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6848 # mode. It turns out that the SunPro C++ compiler does not properly
6849 # handle `-M -o', and we need to detect this.
6850 if depmode=$depmode \
6851 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6852 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6853 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6854 >/dev/null 2>conftest.err &&
6855 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6856 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6857 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6858 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6859 # icc doesn't choke on unknown options, it will just issue warnings
6860 # or remarks (even with -Werror). So we grep stderr for any message
6861 # that says an option was ignored or not supported.
6862 # When given -MP, icc 7.0 and 7.1 complain thusly:
6863 # icc: Command line warning: ignoring option '-M'; no argument required
6864 # The diagnosis changed in icc 8.0:
6865 # icc: Command line remark: option '-MP' not supported
6866 if (grep 'ignoring option' conftest.err ||
6867 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6868 am_cv_CXX_dependencies_compiler_type=$depmode
6869 break
6870 fi
6871 fi
6872 done
6873
6874 cd ..
6875 rm -rf conftest.dir
6876else
6877 am_cv_CXX_dependencies_compiler_type=none
6878fi
6879
6880fi
6881{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6882echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
6883CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6884
6885 if
6886 test "x$enable_dependency_tracking" != xno \
6887 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6888 am__fastdepCXX_TRUE=
6889 am__fastdepCXX_FALSE='#'
6890else
6891 am__fastdepCXX_TRUE='#'
6892 am__fastdepCXX_FALSE=
6893fi
6894
6895
6896
6897
6898if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6899 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6900 (test "X$CXX" != "Xg++"))) ; then
6901 ac_ext=cpp
6902ac_cpp='$CXXCPP $CPPFLAGS'
6903ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6904ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6905ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6906{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6907echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
6908if test -z "$CXXCPP"; then
6909 if test "${ac_cv_prog_CXXCPP+set}" = set; then
6910 echo $ECHO_N "(cached) $ECHO_C" >&6
6911else
6912 # Double quotes because CXXCPP needs to be expanded
6913 for CXXCPP in "$CXX -E" "/lib/cpp"
6914 do
6915 ac_preproc_ok=false
6916for ac_cxx_preproc_warn_flag in '' yes
6917do
6918 # Use a header file that comes with gcc, so configuring glibc
6919 # with a fresh cross-compiler works.
6920 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6921 # <limits.h> exists even on freestanding compilers.
6922 # On the NeXT, cc -E runs the code through the compiler's parser,
6923 # not just through cpp. "Syntax error" is here to catch this case.
6924 cat >conftest.$ac_ext <<_ACEOF
6925/* confdefs.h. */
6926_ACEOF
6927cat confdefs.h >>conftest.$ac_ext
6928cat >>conftest.$ac_ext <<_ACEOF
6929/* end confdefs.h. */
6930#ifdef __STDC__
6931# include <limits.h>
6932#else
6933# include <assert.h>
6934#endif
6935 Syntax error
6936_ACEOF
6937if { (ac_try="$ac_cpp conftest.$ac_ext"
6938case "(($ac_try" in
6939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6940 *) ac_try_echo=$ac_try;;
6941esac
6942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6943 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6944 ac_status=$?
6945 grep -v '^ *+' conftest.er1 >conftest.err
6946 rm -f conftest.er1
6947 cat conftest.err >&5
6948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6949 (exit $ac_status); } >/dev/null && {
6950 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6951 test ! -s conftest.err
6952 }; then
6953 :
6954else
6955 echo "$as_me: failed program was:" >&5
6956sed 's/^/| /' conftest.$ac_ext >&5
6957
6958 # Broken: fails on valid input.
6959continue
6960fi
6961
6962rm -f conftest.err conftest.$ac_ext
6963
6964 # OK, works on sane cases. Now check whether nonexistent headers
6965 # can be detected and how.
6966 cat >conftest.$ac_ext <<_ACEOF
6967/* confdefs.h. */
6968_ACEOF
6969cat confdefs.h >>conftest.$ac_ext
6970cat >>conftest.$ac_ext <<_ACEOF
6971/* end confdefs.h. */
6972#include <ac_nonexistent.h>
6973_ACEOF
6974if { (ac_try="$ac_cpp conftest.$ac_ext"
6975case "(($ac_try" in
6976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6977 *) ac_try_echo=$ac_try;;
6978esac
6979eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6980 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6981 ac_status=$?
6982 grep -v '^ *+' conftest.er1 >conftest.err
6983 rm -f conftest.er1
6984 cat conftest.err >&5
6985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6986 (exit $ac_status); } >/dev/null && {
6987 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6988 test ! -s conftest.err
6989 }; then
6990 # Broken: success on invalid input.
6991continue
6992else
6993 echo "$as_me: failed program was:" >&5
6994sed 's/^/| /' conftest.$ac_ext >&5
6995
6996 # Passes both tests.
6997ac_preproc_ok=:
6998break
6999fi
7000
7001rm -f conftest.err conftest.$ac_ext
7002
7003done
7004# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7005rm -f conftest.err conftest.$ac_ext
7006if $ac_preproc_ok; then
7007 break
7008fi
7009
7010 done
7011 ac_cv_prog_CXXCPP=$CXXCPP
7012
7013fi
7014 CXXCPP=$ac_cv_prog_CXXCPP
7015else
7016 ac_cv_prog_CXXCPP=$CXXCPP
7017fi
7018{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
7019echo "${ECHO_T}$CXXCPP" >&6; }
7020ac_preproc_ok=false
7021for ac_cxx_preproc_warn_flag in '' yes
7022do
7023 # Use a header file that comes with gcc, so configuring glibc
7024 # with a fresh cross-compiler works.
7025 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7026 # <limits.h> exists even on freestanding compilers.
7027 # On the NeXT, cc -E runs the code through the compiler's parser,
7028 # not just through cpp. "Syntax error" is here to catch this case.
7029 cat >conftest.$ac_ext <<_ACEOF
7030/* confdefs.h. */
7031_ACEOF
7032cat confdefs.h >>conftest.$ac_ext
7033cat >>conftest.$ac_ext <<_ACEOF
7034/* end confdefs.h. */
7035#ifdef __STDC__
7036# include <limits.h>
7037#else
7038# include <assert.h>
7039#endif
7040 Syntax error
7041_ACEOF
7042if { (ac_try="$ac_cpp conftest.$ac_ext"
7043case "(($ac_try" in
7044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7045 *) ac_try_echo=$ac_try;;
7046esac
7047eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7048 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7049 ac_status=$?
7050 grep -v '^ *+' conftest.er1 >conftest.err
7051 rm -f conftest.er1
7052 cat conftest.err >&5
7053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7054 (exit $ac_status); } >/dev/null && {
7055 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7056 test ! -s conftest.err
7057 }; then
7058 :
7059else
7060 echo "$as_me: failed program was:" >&5
7061sed 's/^/| /' conftest.$ac_ext >&5
7062
7063 # Broken: fails on valid input.
7064continue
7065fi
7066
7067rm -f conftest.err conftest.$ac_ext
7068
7069 # OK, works on sane cases. Now check whether nonexistent headers
7070 # can be detected and how.
7071 cat >conftest.$ac_ext <<_ACEOF
7072/* confdefs.h. */
7073_ACEOF
7074cat confdefs.h >>conftest.$ac_ext
7075cat >>conftest.$ac_ext <<_ACEOF
7076/* end confdefs.h. */
7077#include <ac_nonexistent.h>
7078_ACEOF
7079if { (ac_try="$ac_cpp conftest.$ac_ext"
7080case "(($ac_try" in
7081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7082 *) ac_try_echo=$ac_try;;
7083esac
7084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7085 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7086 ac_status=$?
7087 grep -v '^ *+' conftest.er1 >conftest.err
7088 rm -f conftest.er1
7089 cat conftest.err >&5
7090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7091 (exit $ac_status); } >/dev/null && {
7092 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7093 test ! -s conftest.err
7094 }; then
7095 # Broken: success on invalid input.
7096continue
7097else
7098 echo "$as_me: failed program was:" >&5
7099sed 's/^/| /' conftest.$ac_ext >&5
7100
7101 # Passes both tests.
7102ac_preproc_ok=:
7103break
7104fi
7105
7106rm -f conftest.err conftest.$ac_ext
7107
7108done
7109# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7110rm -f conftest.err conftest.$ac_ext
7111if $ac_preproc_ok; then
7112 :
7113else
7114 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7115See \`config.log' for more details." >&5
7116echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7117See \`config.log' for more details." >&2;}
7118 { (exit 1); exit 1; }; }
7119fi
7120
7121ac_ext=cpp
7122ac_cpp='$CXXCPP $CPPFLAGS'
7123ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7124ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7125ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7126
7127fi
7128
7129
7130ac_ext=f
7131ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7132ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7133ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7134if test -n "$ac_tool_prefix"; then
7135 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
7136 do
7137 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7138set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7139{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7140echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7141if test "${ac_cv_prog_F77+set}" = set; then
7142 echo $ECHO_N "(cached) $ECHO_C" >&6
7143else
7144 if test -n "$F77"; then
7145 ac_cv_prog_F77="$F77" # Let the user override the test.
7146else
7147as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7148for as_dir in $PATH
7149do
7150 IFS=$as_save_IFS
7151 test -z "$as_dir" && as_dir=.
7152 for ac_exec_ext in '' $ac_executable_extensions; do
7153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7154 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7155 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7156 break 2
7157 fi
7158done
7159done
7160IFS=$as_save_IFS
7161
7162fi
7163fi
7164F77=$ac_cv_prog_F77
7165if test -n "$F77"; then
7166 { echo "$as_me:$LINENO: result: $F77" >&5
7167echo "${ECHO_T}$F77" >&6; }
7168else
7169 { echo "$as_me:$LINENO: result: no" >&5
7170echo "${ECHO_T}no" >&6; }
7171fi
7172
7173
7174 test -n "$F77" && break
7175 done
7176fi
7177if test -z "$F77"; then
7178 ac_ct_F77=$F77
7179 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
7180do
7181 # Extract the first word of "$ac_prog", so it can be a program name with args.
7182set dummy $ac_prog; ac_word=$2
7183{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7184echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7185if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7186 echo $ECHO_N "(cached) $ECHO_C" >&6
7187else
7188 if test -n "$ac_ct_F77"; then
7189 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7190else
7191as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7192for as_dir in $PATH
7193do
7194 IFS=$as_save_IFS
7195 test -z "$as_dir" && as_dir=.
7196 for ac_exec_ext in '' $ac_executable_extensions; do
7197 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7198 ac_cv_prog_ac_ct_F77="$ac_prog"
7199 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7200 break 2
7201 fi
7202done
7203done
7204IFS=$as_save_IFS
7205
7206fi
7207fi
7208ac_ct_F77=$ac_cv_prog_ac_ct_F77
7209if test -n "$ac_ct_F77"; then
7210 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7211echo "${ECHO_T}$ac_ct_F77" >&6; }
7212else
7213 { echo "$as_me:$LINENO: result: no" >&5
7214echo "${ECHO_T}no" >&6; }
7215fi
7216
7217
7218 test -n "$ac_ct_F77" && break
7219done
7220
7221 if test "x$ac_ct_F77" = x; then
7222 F77=""
7223 else
7224 case $cross_compiling:$ac_tool_warned in
7225yes:)
7226{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7227whose name does not start with the host triplet. If you think this
7228configuration is useful to you, please write to autoconf@gnu.org." >&5
7229echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7230whose name does not start with the host triplet. If you think this
7231configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7232ac_tool_warned=yes ;;
7233esac
7234 F77=$ac_ct_F77
7235 fi
7236fi
7237
7238
7239# Provide some information about the compiler.
7240echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
7241ac_compiler=`set X $ac_compile; echo $2`
7242{ (ac_try="$ac_compiler --version >&5"
7243case "(($ac_try" in
7244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7245 *) ac_try_echo=$ac_try;;
7246esac
7247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7248 (eval "$ac_compiler --version >&5") 2>&5
7249 ac_status=$?
7250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7251 (exit $ac_status); }
7252{ (ac_try="$ac_compiler -v >&5"
7253case "(($ac_try" in
7254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7255 *) ac_try_echo=$ac_try;;
7256esac
7257eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7258 (eval "$ac_compiler -v >&5") 2>&5
7259 ac_status=$?
7260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7261 (exit $ac_status); }
7262{ (ac_try="$ac_compiler -V >&5"
7263case "(($ac_try" in
7264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7265 *) ac_try_echo=$ac_try;;
7266esac
7267eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7268 (eval "$ac_compiler -V >&5") 2>&5
7269 ac_status=$?
7270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7271 (exit $ac_status); }
7272rm -f a.out
7273
7274# If we don't use `.F' as extension, the preprocessor is not run on the
7275# input file. (Note that this only needs to work for GNU compilers.)
7276ac_save_ext=$ac_ext
7277ac_ext=F
7278{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7279echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
7280if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7281 echo $ECHO_N "(cached) $ECHO_C" >&6
7282else
7283 cat >conftest.$ac_ext <<_ACEOF
7284 program main
7285#ifndef __GNUC__
7286 choke me
7287#endif
7288
7289 end
7290_ACEOF
7291rm -f conftest.$ac_objext
7292if { (ac_try="$ac_compile"
7293case "(($ac_try" in
7294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7295 *) ac_try_echo=$ac_try;;
7296esac
7297eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7298 (eval "$ac_compile") 2>conftest.er1
7299 ac_status=$?
7300 grep -v '^ *+' conftest.er1 >conftest.err
7301 rm -f conftest.er1
7302 cat conftest.err >&5
7303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7304 (exit $ac_status); } && {
7305 test -z "$ac_f77_werror_flag" ||
7306 test ! -s conftest.err
7307 } && test -s conftest.$ac_objext; then
7308 ac_compiler_gnu=yes
7309else
7310 echo "$as_me: failed program was:" >&5
7311sed 's/^/| /' conftest.$ac_ext >&5
7312
7313 ac_compiler_gnu=no
7314fi
7315
7316rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7317ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7318
7319fi
7320{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7321echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
7322ac_ext=$ac_save_ext
7323ac_test_FFLAGS=${FFLAGS+set}
7324ac_save_FFLAGS=$FFLAGS
7325FFLAGS=
7326{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7327echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
7328if test "${ac_cv_prog_f77_g+set}" = set; then
7329 echo $ECHO_N "(cached) $ECHO_C" >&6
7330else
7331 FFLAGS=-g
7332cat >conftest.$ac_ext <<_ACEOF
7333 program main
7334
7335 end
7336_ACEOF
7337rm -f conftest.$ac_objext
7338if { (ac_try="$ac_compile"
7339case "(($ac_try" in
7340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7341 *) ac_try_echo=$ac_try;;
7342esac
7343eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7344 (eval "$ac_compile") 2>conftest.er1
7345 ac_status=$?
7346 grep -v '^ *+' conftest.er1 >conftest.err
7347 rm -f conftest.er1
7348 cat conftest.err >&5
7349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7350 (exit $ac_status); } && {
7351 test -z "$ac_f77_werror_flag" ||
7352 test ! -s conftest.err
7353 } && test -s conftest.$ac_objext; then
7354 ac_cv_prog_f77_g=yes
7355else
7356 echo "$as_me: failed program was:" >&5
7357sed 's/^/| /' conftest.$ac_ext >&5
7358
7359 ac_cv_prog_f77_g=no
7360fi
7361
7362rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7363
7364fi
7365{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7366echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
7367if test "$ac_test_FFLAGS" = set; then
7368 FFLAGS=$ac_save_FFLAGS
7369elif test $ac_cv_prog_f77_g = yes; then
7370 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7371 FFLAGS="-g -O2"
7372 else
7373 FFLAGS="-g"
7374 fi
7375else
7376 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7377 FFLAGS="-O2"
7378 else
7379 FFLAGS=
7380 fi
7381fi
7382
7383G77=`test $ac_compiler_gnu = yes && echo yes`
7384ac_ext=c
7385ac_cpp='$CPP $CPPFLAGS'
7386ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7387ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7388ac_compiler_gnu=$ac_cv_c_compiler_gnu
7389
7390
7391
7392# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
b57f37fb
WP
7393# find the maximum length of command line arguments
7394{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7395echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
7396if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7397 echo $ECHO_N "(cached) $ECHO_C" >&6
7398else
7399 i=0
7400 teststring="ABCD"
7401
7402 case $build_os in
7403 msdosdjgpp*)
7404 # On DJGPP, this test can blow up pretty badly due to problems in libc
7405 # (any single argument exceeding 2000 bytes causes a buffer overrun
7406 # during glob expansion). Even if it were fixed, the result of this
7407 # check would be larger than it should be.
7408 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7409 ;;
7410
7411 gnu*)
7412 # Under GNU Hurd, this test is not required because there is
7413 # no limit to the length of command line arguments.
7414 # Libtool will interpret -1 as no limit whatsoever
7415 lt_cv_sys_max_cmd_len=-1;
7416 ;;
7417
7418 cygwin* | mingw*)
7419 # On Win9x/ME, this test blows up -- it succeeds, but takes
7420 # about 5 minutes as the teststring grows exponentially.
7421 # Worse, since 9x/ME are not pre-emptively multitasking,
7422 # you end up with a "frozen" computer, even though with patience
7423 # the test eventually succeeds (with a max line length of 256k).
7424 # Instead, let's just punt: use the minimum linelength reported by
7425 # all of the supported platforms: 8192 (on NT/2K/XP).
7426 lt_cv_sys_max_cmd_len=8192;
7427 ;;
7428
7429 amigaos*)
7430 # On AmigaOS with pdksh, this test takes hours, literally.
7431 # So we just punt and use a minimum line length of 8192.
7432 lt_cv_sys_max_cmd_len=8192;
7433 ;;
7434
7435 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7436 # This has been around since 386BSD, at least. Likely further.
7437 if test -x /sbin/sysctl; then
7438 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7439 elif test -x /usr/sbin/sysctl; then
7440 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7441 else
7442 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7443 fi
7444 # And add a safety zone
7445 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7446 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7447 ;;
7448
7449 interix*)
7450 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7451 lt_cv_sys_max_cmd_len=196608
7452 ;;
7453
7454 osf*)
7455 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7456 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7457 # nice to cause kernel panics so lets avoid the loop below.
7458 # First set a reasonable default.
7459 lt_cv_sys_max_cmd_len=16384
7460 #
7461 if test -x /sbin/sysconfig; then
7462 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7463 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7464 esac
7465 fi
7466 ;;
7467 sco3.2v5*)
7468 lt_cv_sys_max_cmd_len=102400
7469 ;;
7470 sysv5* | sco5v6* | sysv4.2uw2*)
7471 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7472 if test -n "$kargmax"; then
7473 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7474 else
7475 lt_cv_sys_max_cmd_len=32768
7476 fi
7477 ;;
7478 *)
7479 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7480 if test -n "$lt_cv_sys_max_cmd_len"; then
7481 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7482 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7483 else
7484 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7485 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7486 = "XX$teststring") >/dev/null 2>&1 &&
7487 new_result=`expr "X$teststring" : ".*" 2>&1` &&
7488 lt_cv_sys_max_cmd_len=$new_result &&
7489 test $i != 17 # 1/2 MB should be enough
7490 do
7491 i=`expr $i + 1`
7492 teststring=$teststring$teststring
7493 done
7494 teststring=
7495 # Add a significant safety factor because C++ compilers can tack on massive
7496 # amounts of additional arguments before passing them to the linker.
7497 # It appears as though 1/2 is a usable value.
7498 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7499 fi
7500 ;;
7501 esac
7502
7503fi
7504
7505if test -n $lt_cv_sys_max_cmd_len ; then
7506 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7507echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
7508else
7509 { echo "$as_me:$LINENO: result: none" >&5
7510echo "${ECHO_T}none" >&6; }
7511fi
7512
7513
7514
7515
7516
7517# Check for command to grab the raw symbol name followed by C symbol from nm.
7518{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7519echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
7520if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7521 echo $ECHO_N "(cached) $ECHO_C" >&6
7522else
7523
7524# These are sane defaults that work on at least a few old systems.
7525# [They come from Ultrix. What could be older than Ultrix?!! ;)]
7526
7527# Character class describing NM global symbol codes.
7528symcode='[BCDEGRST]'
7529
7530# Regexp to match symbols that can be accessed directly from C.
7531sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7532
7533# Transform an extracted symbol line into a proper C declaration
7534lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7535
7536# Transform an extracted symbol line into symbol name and symbol address
7537lt_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'"
7538
7539# Define system-specific variables.
7540case $host_os in
7541aix*)
7542 symcode='[BCDT]'
7543 ;;
7544cygwin* | mingw* | pw32*)
7545 symcode='[ABCDGISTW]'
7546 ;;
7547hpux*) # Its linker distinguishes data from code symbols
7548 if test "$host_cpu" = ia64; then
7549 symcode='[ABCDEGRST]'
7550 fi
7551 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7552 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'"
7553 ;;
7554linux* | k*bsd*-gnu)
7555 if test "$host_cpu" = ia64; then
7556 symcode='[ABCDGIRSTW]'
7557 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7558 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'"
7559 fi
7560 ;;
7561irix* | nonstopux*)
7562 symcode='[BCDEGRST]'
7563 ;;
7564osf*)
7565 symcode='[BCDEGQRST]'
7566 ;;
7567solaris*)
7568 symcode='[BDRT]'
7569 ;;
7570sco3.2v5*)
7571 symcode='[DT]'
7572 ;;
7573sysv4.2uw2*)
7574 symcode='[DT]'
7575 ;;
7576sysv5* | sco5v6* | unixware* | OpenUNIX*)
7577 symcode='[ABDT]'
7578 ;;
7579sysv4)
7580 symcode='[DFNSTU]'
7581 ;;
7582esac
7583
7584# Handle CRLF in mingw tool chain
7585opt_cr=
7586case $build_os in
7587mingw*)
7588 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7589 ;;
7590esac
7591
7592# If we're using GNU nm, then use its standard symbol codes.
7593case `$NM -V 2>&1` in
7594*GNU* | *'with BFD'*)
7595 symcode='[ABCDGIRSTW]' ;;
7596esac
7597
7598# Try without a prefix undercore, then with it.
7599for ac_symprfx in "" "_"; do
7600
7601 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7602 symxfrm="\\1 $ac_symprfx\\2 \\2"
7603
7604 # Write the raw and C identifiers.
7605 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7606
7607 # Check to see that the pipe works correctly.
7608 pipe_works=no
7609
7610 rm -f conftest*
7611 cat > conftest.$ac_ext <<EOF
7612#ifdef __cplusplus
7613extern "C" {
7614#endif
7615char nm_test_var;
7616void nm_test_func(){}
7617#ifdef __cplusplus
7618}
7619#endif
7620int main(){nm_test_var='a';nm_test_func();return(0);}
7621EOF
7622
7623 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7624 (eval $ac_compile) 2>&5
7625 ac_status=$?
7626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7627 (exit $ac_status); }; then
7628 # Now try to grab the symbols.
7629 nlist=conftest.nm
7630 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7631 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7632 ac_status=$?
7633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7634 (exit $ac_status); } && test -s "$nlist"; then
7635 # Try sorting and uniquifying the output.
7636 if sort "$nlist" | uniq > "$nlist"T; then
7637 mv -f "$nlist"T "$nlist"
7638 else
7639 rm -f "$nlist"T
7640 fi
7641
7642 # Make sure that we snagged all the symbols we need.
7643 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7644 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7645 cat <<EOF > conftest.$ac_ext
7646#ifdef __cplusplus
7647extern "C" {
7648#endif
7649
7650EOF
7651 # Now generate the symbol file.
7652 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7653
7654 cat <<EOF >> conftest.$ac_ext
7655#if defined (__STDC__) && __STDC__
7656# define lt_ptr_t void *
7657#else
7658# define lt_ptr_t char *
7659# define const
7660#endif
7661
7662/* The mapping between symbol names and symbols. */
7663const struct {
7664 const char *name;
7665 lt_ptr_t address;
7666}
7667lt_preloaded_symbols[] =
7668{
7669EOF
7670 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7671 cat <<\EOF >> conftest.$ac_ext
7672 {0, (lt_ptr_t) 0}
7673};
7674
7675#ifdef __cplusplus
7676}
7677#endif
7678EOF
7679 # Now try linking the two files.
7680 mv conftest.$ac_objext conftstm.$ac_objext
7681 lt_save_LIBS="$LIBS"
7682 lt_save_CFLAGS="$CFLAGS"
7683 LIBS="conftstm.$ac_objext"
7684 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7685 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7686 (eval $ac_link) 2>&5
7687 ac_status=$?
7688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7689 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7690 pipe_works=yes
7691 fi
7692 LIBS="$lt_save_LIBS"
7693 CFLAGS="$lt_save_CFLAGS"
7694 else
7695 echo "cannot find nm_test_func in $nlist" >&5
7696 fi
7697 else
7698 echo "cannot find nm_test_var in $nlist" >&5
7699 fi
7700 else
7701 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7702 fi
7703 else
7704 echo "$progname: failed program was:" >&5
7705 cat conftest.$ac_ext >&5
7706 fi
56efe974 7707 rm -rf conftest* conftst*
b57f37fb
WP
7708
7709 # Do not use the global_symbol_pipe unless it works.
7710 if test "$pipe_works" = yes; then
7711 break
7712 else
7713 lt_cv_sys_global_symbol_pipe=
7714 fi
7715done
7716
7717fi
7718
7719if test -z "$lt_cv_sys_global_symbol_pipe"; then
7720 lt_cv_sys_global_symbol_to_cdecl=
7721fi
7722if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7723 { echo "$as_me:$LINENO: result: failed" >&5
7724echo "${ECHO_T}failed" >&6; }
7725else
7726 { echo "$as_me:$LINENO: result: ok" >&5
7727echo "${ECHO_T}ok" >&6; }
7728fi
7729
7730{ echo "$as_me:$LINENO: checking for objdir" >&5
7731echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
7732if test "${lt_cv_objdir+set}" = set; then
7733 echo $ECHO_N "(cached) $ECHO_C" >&6
7734else
7735 rm -f .libs 2>/dev/null
7736mkdir .libs 2>/dev/null
7737if test -d .libs; then
7738 lt_cv_objdir=.libs
7739else
7740 # MS-DOS does not allow filenames that begin with a dot.
7741 lt_cv_objdir=_libs
7742fi
7743rmdir .libs 2>/dev/null
7744fi
7745{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7746echo "${ECHO_T}$lt_cv_objdir" >&6; }
7747objdir=$lt_cv_objdir
7748
7749
7750
7751
7752
7753case $host_os in
7754aix3*)
7755 # AIX sometimes has problems with the GCC collect2 program. For some
7756 # reason, if we set the COLLECT_NAMES environment variable, the problems
7757 # vanish in a puff of smoke.
7758 if test "X${COLLECT_NAMES+set}" != Xset; then
7759 COLLECT_NAMES=
7760 export COLLECT_NAMES
7761 fi
7762 ;;
7763esac
7764
7765# Sed substitution that helps us do robust quoting. It backslashifies
7766# metacharacters that are still active within double-quoted strings.
7767Xsed='sed -e 1s/^X//'
7768sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7769
7770# Same as above, but do not quote variable references.
7771double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7772
7773# Sed substitution to delay expansion of an escaped shell variable in a
7774# double_quote_subst'ed string.
7775delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7776
7777# Sed substitution to avoid accidental globbing in evaled expressions
7778no_glob_subst='s/\*/\\\*/g'
7779
7780# Constants:
7781rm="rm -f"
7782
7783# Global variables:
7784default_ofile=libtool
7785can_build_shared=yes
7786
7787# All known linkers require a `.a' archive for static linking (except MSVC,
7788# which needs '.lib').
7789libext=a
7790ltmain="$ac_aux_dir/ltmain.sh"
7791ofile="$default_ofile"
7792with_gnu_ld="$lt_cv_prog_gnu_ld"
7793
7794if test -n "$ac_tool_prefix"; then
7795 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7796set dummy ${ac_tool_prefix}ar; ac_word=$2
7797{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7798echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7799if test "${ac_cv_prog_AR+set}" = set; then
7800 echo $ECHO_N "(cached) $ECHO_C" >&6
7801else
7802 if test -n "$AR"; then
7803 ac_cv_prog_AR="$AR" # Let the user override the test.
7804else
7805as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7806for as_dir in $PATH
7807do
7808 IFS=$as_save_IFS
7809 test -z "$as_dir" && as_dir=.
7810 for ac_exec_ext in '' $ac_executable_extensions; do
7811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7812 ac_cv_prog_AR="${ac_tool_prefix}ar"
7813 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7814 break 2
7815 fi
7816done
7817done
7818IFS=$as_save_IFS
7819
7820fi
7821fi
7822AR=$ac_cv_prog_AR
7823if test -n "$AR"; then
7824 { echo "$as_me:$LINENO: result: $AR" >&5
7825echo "${ECHO_T}$AR" >&6; }
7826else
7827 { echo "$as_me:$LINENO: result: no" >&5
7828echo "${ECHO_T}no" >&6; }
7829fi
7830
7831
7832fi
7833if test -z "$ac_cv_prog_AR"; then
7834 ac_ct_AR=$AR
7835 # Extract the first word of "ar", so it can be a program name with args.
7836set dummy ar; ac_word=$2
7837{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7838echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7839if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7840 echo $ECHO_N "(cached) $ECHO_C" >&6
7841else
7842 if test -n "$ac_ct_AR"; then
7843 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7844else
7845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7846for as_dir in $PATH
7847do
7848 IFS=$as_save_IFS
7849 test -z "$as_dir" && as_dir=.
7850 for ac_exec_ext in '' $ac_executable_extensions; do
7851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7852 ac_cv_prog_ac_ct_AR="ar"
7853 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7854 break 2
7855 fi
7856done
7857done
7858IFS=$as_save_IFS
7859
7860fi
7861fi
7862ac_ct_AR=$ac_cv_prog_ac_ct_AR
7863if test -n "$ac_ct_AR"; then
7864 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7865echo "${ECHO_T}$ac_ct_AR" >&6; }
7866else
7867 { echo "$as_me:$LINENO: result: no" >&5
7868echo "${ECHO_T}no" >&6; }
7869fi
7870
7871 if test "x$ac_ct_AR" = x; then
7872 AR="false"
7873 else
7874 case $cross_compiling:$ac_tool_warned in
7875yes:)
7876{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7877whose name does not start with the host triplet. If you think this
7878configuration is useful to you, please write to autoconf@gnu.org." >&5
7879echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7880whose name does not start with the host triplet. If you think this
7881configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7882ac_tool_warned=yes ;;
7883esac
7884 AR=$ac_ct_AR
7885 fi
7886else
7887 AR="$ac_cv_prog_AR"
7888fi
7889
7890if test -n "$ac_tool_prefix"; then
7891 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7892set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7893{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7894echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7895if test "${ac_cv_prog_RANLIB+set}" = set; then
7896 echo $ECHO_N "(cached) $ECHO_C" >&6
7897else
7898 if test -n "$RANLIB"; then
7899 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7900else
7901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7902for as_dir in $PATH
7903do
7904 IFS=$as_save_IFS
7905 test -z "$as_dir" && as_dir=.
7906 for ac_exec_ext in '' $ac_executable_extensions; do
7907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7908 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7909 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7910 break 2
7911 fi
7912done
7913done
7914IFS=$as_save_IFS
7915
7916fi
7917fi
7918RANLIB=$ac_cv_prog_RANLIB
7919if test -n "$RANLIB"; then
7920 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7921echo "${ECHO_T}$RANLIB" >&6; }
7922else
7923 { echo "$as_me:$LINENO: result: no" >&5
7924echo "${ECHO_T}no" >&6; }
7925fi
7926
7927
7928fi
7929if test -z "$ac_cv_prog_RANLIB"; then
7930 ac_ct_RANLIB=$RANLIB
7931 # Extract the first word of "ranlib", so it can be a program name with args.
7932set dummy ranlib; ac_word=$2
7933{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7934echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7935if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7936 echo $ECHO_N "(cached) $ECHO_C" >&6
7937else
7938 if test -n "$ac_ct_RANLIB"; then
7939 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7940else
7941as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7942for as_dir in $PATH
7943do
7944 IFS=$as_save_IFS
7945 test -z "$as_dir" && as_dir=.
7946 for ac_exec_ext in '' $ac_executable_extensions; do
7947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7948 ac_cv_prog_ac_ct_RANLIB="ranlib"
7949 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7950 break 2
7951 fi
7952done
7953done
7954IFS=$as_save_IFS
7955
7956fi
7957fi
7958ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7959if test -n "$ac_ct_RANLIB"; then
7960 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7961echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7962else
7963 { echo "$as_me:$LINENO: result: no" >&5
7964echo "${ECHO_T}no" >&6; }
7965fi
7966
7967 if test "x$ac_ct_RANLIB" = x; then
7968 RANLIB=":"
7969 else
7970 case $cross_compiling:$ac_tool_warned in
7971yes:)
7972{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7973whose name does not start with the host triplet. If you think this
7974configuration is useful to you, please write to autoconf@gnu.org." >&5
7975echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7976whose name does not start with the host triplet. If you think this
7977configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7978ac_tool_warned=yes ;;
7979esac
7980 RANLIB=$ac_ct_RANLIB
7981 fi
7982else
7983 RANLIB="$ac_cv_prog_RANLIB"
7984fi
7985
7986if test -n "$ac_tool_prefix"; then
7987 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7988set dummy ${ac_tool_prefix}strip; ac_word=$2
7989{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7990echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7991if test "${ac_cv_prog_STRIP+set}" = set; then
7992 echo $ECHO_N "(cached) $ECHO_C" >&6
7993else
7994 if test -n "$STRIP"; then
7995 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7996else
7997as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7998for as_dir in $PATH
7999do
8000 IFS=$as_save_IFS
8001 test -z "$as_dir" && as_dir=.
8002 for ac_exec_ext in '' $ac_executable_extensions; do
8003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8004 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8005 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8006 break 2
8007 fi
8008done
8009done
8010IFS=$as_save_IFS
8011
8012fi
8013fi
8014STRIP=$ac_cv_prog_STRIP
8015if test -n "$STRIP"; then
8016 { echo "$as_me:$LINENO: result: $STRIP" >&5
8017echo "${ECHO_T}$STRIP" >&6; }
8018else
8019 { echo "$as_me:$LINENO: result: no" >&5
8020echo "${ECHO_T}no" >&6; }
8021fi
8022
8023
8024fi
8025if test -z "$ac_cv_prog_STRIP"; then
8026 ac_ct_STRIP=$STRIP
8027 # Extract the first word of "strip", so it can be a program name with args.
8028set dummy strip; ac_word=$2
8029{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8030echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8031if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8032 echo $ECHO_N "(cached) $ECHO_C" >&6
8033else
8034 if test -n "$ac_ct_STRIP"; then
8035 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8036else
8037as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8038for as_dir in $PATH
8039do
8040 IFS=$as_save_IFS
8041 test -z "$as_dir" && as_dir=.
8042 for ac_exec_ext in '' $ac_executable_extensions; do
8043 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8044 ac_cv_prog_ac_ct_STRIP="strip"
8045 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8046 break 2
8047 fi
8048done
8049done
8050IFS=$as_save_IFS
8051
8052fi
8053fi
8054ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8055if test -n "$ac_ct_STRIP"; then
8056 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8057echo "${ECHO_T}$ac_ct_STRIP" >&6; }
8058else
8059 { echo "$as_me:$LINENO: result: no" >&5
8060echo "${ECHO_T}no" >&6; }
8061fi
8062
8063 if test "x$ac_ct_STRIP" = x; then
8064 STRIP=":"
8065 else
8066 case $cross_compiling:$ac_tool_warned in
8067yes:)
8068{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8069whose name does not start with the host triplet. If you think this
8070configuration is useful to you, please write to autoconf@gnu.org." >&5
8071echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8072whose name does not start with the host triplet. If you think this
8073configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8074ac_tool_warned=yes ;;
8075esac
8076 STRIP=$ac_ct_STRIP
8077 fi
8078else
8079 STRIP="$ac_cv_prog_STRIP"
8080fi
8081
8082
8083old_CC="$CC"
8084old_CFLAGS="$CFLAGS"
8085
8086# Set sane defaults for various variables
8087test -z "$AR" && AR=ar
8088test -z "$AR_FLAGS" && AR_FLAGS=cru
8089test -z "$AS" && AS=as
8090test -z "$CC" && CC=cc
8091test -z "$LTCC" && LTCC=$CC
8092test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8093test -z "$DLLTOOL" && DLLTOOL=dlltool
8094test -z "$LD" && LD=ld
8095test -z "$LN_S" && LN_S="ln -s"
8096test -z "$MAGIC_CMD" && MAGIC_CMD=file
8097test -z "$NM" && NM=nm
8098test -z "$SED" && SED=sed
8099test -z "$OBJDUMP" && OBJDUMP=objdump
8100test -z "$RANLIB" && RANLIB=:
8101test -z "$STRIP" && STRIP=:
8102test -z "$ac_objext" && ac_objext=o
8103
8104# Determine commands to create old-style static archives.
8105old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8106old_postinstall_cmds='chmod 644 $oldlib'
8107old_postuninstall_cmds=
8108
8109if test -n "$RANLIB"; then
8110 case $host_os in
8111 openbsd*)
8112 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8113 ;;
8114 *)
8115 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8116 ;;
8117 esac
8118 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8119fi
8120
8121for cc_temp in $compiler""; do
8122 case $cc_temp in
8123 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8124 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8125 \-*) ;;
8126 *) break;;
8127 esac
8128done
8129cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8130
8131
8132# Only perform the check for file, if the check method requires it
8133case $deplibs_check_method in
8134file_magic*)
8135 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8136 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8137echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
8138if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8139 echo $ECHO_N "(cached) $ECHO_C" >&6
8140else
8141 case $MAGIC_CMD in
8142[\\/*] | ?:[\\/]*)
8143 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8144 ;;
8145*)
8146 lt_save_MAGIC_CMD="$MAGIC_CMD"
8147 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8148 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8149 for ac_dir in $ac_dummy; do
8150 IFS="$lt_save_ifs"
8151 test -z "$ac_dir" && ac_dir=.
8152 if test -f $ac_dir/${ac_tool_prefix}file; then
8153 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8154 if test -n "$file_magic_test_file"; then
8155 case $deplibs_check_method in
8156 "file_magic "*)
8157 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8158 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8159 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8160 $EGREP "$file_magic_regex" > /dev/null; then
8161 :
8162 else
8163 cat <<EOF 1>&2
8164
8165*** Warning: the command libtool uses to detect shared libraries,
8166*** $file_magic_cmd, produces output that libtool cannot recognize.
8167*** The result is that libtool may fail to recognize shared libraries
8168*** as such. This will affect the creation of libtool libraries that
8169*** depend on shared libraries, but programs linked with such libtool
8170*** libraries will work regardless of this problem. Nevertheless, you
8171*** may want to report the problem to your system manager and/or to
8172*** bug-libtool@gnu.org
8173
8174EOF
8175 fi ;;
8176 esac
8177 fi
8178 break
8179 fi
8180 done
8181 IFS="$lt_save_ifs"
8182 MAGIC_CMD="$lt_save_MAGIC_CMD"
8183 ;;
8184esac
8185fi
8186
8187MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8188if test -n "$MAGIC_CMD"; then
8189 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8190echo "${ECHO_T}$MAGIC_CMD" >&6; }
8191else
8192 { echo "$as_me:$LINENO: result: no" >&5
8193echo "${ECHO_T}no" >&6; }
8194fi
8195
8196if test -z "$lt_cv_path_MAGIC_CMD"; then
8197 if test -n "$ac_tool_prefix"; then
8198 { echo "$as_me:$LINENO: checking for file" >&5
8199echo $ECHO_N "checking for file... $ECHO_C" >&6; }
8200if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8201 echo $ECHO_N "(cached) $ECHO_C" >&6
8202else
8203 case $MAGIC_CMD in
8204[\\/*] | ?:[\\/]*)
8205 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8206 ;;
8207*)
8208 lt_save_MAGIC_CMD="$MAGIC_CMD"
8209 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8210 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8211 for ac_dir in $ac_dummy; do
8212 IFS="$lt_save_ifs"
8213 test -z "$ac_dir" && ac_dir=.
8214 if test -f $ac_dir/file; then
8215 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8216 if test -n "$file_magic_test_file"; then
8217 case $deplibs_check_method in
8218 "file_magic "*)
8219 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8220 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8221 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8222 $EGREP "$file_magic_regex" > /dev/null; then
8223 :
8224 else
8225 cat <<EOF 1>&2
8226
8227*** Warning: the command libtool uses to detect shared libraries,
8228*** $file_magic_cmd, produces output that libtool cannot recognize.
8229*** The result is that libtool may fail to recognize shared libraries
8230*** as such. This will affect the creation of libtool libraries that
8231*** depend on shared libraries, but programs linked with such libtool
8232*** libraries will work regardless of this problem. Nevertheless, you
8233*** may want to report the problem to your system manager and/or to
8234*** bug-libtool@gnu.org
8235
8236EOF
8237 fi ;;
8238 esac
8239 fi
8240 break
8241 fi
8242 done
8243 IFS="$lt_save_ifs"
8244 MAGIC_CMD="$lt_save_MAGIC_CMD"
8245 ;;
8246esac
8247fi
8248
8249MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8250if test -n "$MAGIC_CMD"; then
8251 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8252echo "${ECHO_T}$MAGIC_CMD" >&6; }
8253else
8254 { echo "$as_me:$LINENO: result: no" >&5
8255echo "${ECHO_T}no" >&6; }
8256fi
8257
8258 else
8259 MAGIC_CMD=:
8260 fi
8261fi
8262
8263 fi
8264 ;;
8265esac
8266
56efe974
WP
8267
8268 case $host_os in
8269 rhapsody* | darwin*)
8270 if test -n "$ac_tool_prefix"; then
8271 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8272set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8273{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8274echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8275if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
8276 echo $ECHO_N "(cached) $ECHO_C" >&6
8277else
8278 if test -n "$DSYMUTIL"; then
8279 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8280else
8281as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8282for as_dir in $PATH
8283do
8284 IFS=$as_save_IFS
8285 test -z "$as_dir" && as_dir=.
8286 for ac_exec_ext in '' $ac_executable_extensions; do
8287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8288 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8289 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8290 break 2
8291 fi
8292done
8293done
8294IFS=$as_save_IFS
8295
8296fi
8297fi
8298DSYMUTIL=$ac_cv_prog_DSYMUTIL
8299if test -n "$DSYMUTIL"; then
8300 { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
8301echo "${ECHO_T}$DSYMUTIL" >&6; }
8302else
8303 { echo "$as_me:$LINENO: result: no" >&5
8304echo "${ECHO_T}no" >&6; }
8305fi
8306
8307
8308fi
8309if test -z "$ac_cv_prog_DSYMUTIL"; then
8310 ac_ct_DSYMUTIL=$DSYMUTIL
8311 # Extract the first word of "dsymutil", so it can be a program name with args.
8312set dummy dsymutil; ac_word=$2
8313{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8314echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8315if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
8316 echo $ECHO_N "(cached) $ECHO_C" >&6
8317else
8318 if test -n "$ac_ct_DSYMUTIL"; then
8319 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8320else
8321as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8322for as_dir in $PATH
8323do
8324 IFS=$as_save_IFS
8325 test -z "$as_dir" && as_dir=.
8326 for ac_exec_ext in '' $ac_executable_extensions; do
8327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8328 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8329 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8330 break 2
8331 fi
8332done
8333done
8334IFS=$as_save_IFS
8335
8336fi
8337fi
8338ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8339if test -n "$ac_ct_DSYMUTIL"; then
8340 { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
8341echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
8342else
8343 { echo "$as_me:$LINENO: result: no" >&5
8344echo "${ECHO_T}no" >&6; }
8345fi
8346
8347 if test "x$ac_ct_DSYMUTIL" = x; then
8348 DSYMUTIL=":"
8349 else
8350 case $cross_compiling:$ac_tool_warned in
8351yes:)
8352{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8353whose name does not start with the host triplet. If you think this
8354configuration is useful to you, please write to autoconf@gnu.org." >&5
8355echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8356whose name does not start with the host triplet. If you think this
8357configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8358ac_tool_warned=yes ;;
8359esac
8360 DSYMUTIL=$ac_ct_DSYMUTIL
8361 fi
8362else
8363 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8364fi
8365
8366 if test -n "$ac_tool_prefix"; then
8367 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8368set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8369{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8370echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8371if test "${ac_cv_prog_NMEDIT+set}" = set; then
8372 echo $ECHO_N "(cached) $ECHO_C" >&6
8373else
8374 if test -n "$NMEDIT"; then
8375 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8376else
8377as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8378for as_dir in $PATH
8379do
8380 IFS=$as_save_IFS
8381 test -z "$as_dir" && as_dir=.
8382 for ac_exec_ext in '' $ac_executable_extensions; do
8383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8384 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8385 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8386 break 2
8387 fi
8388done
8389done
8390IFS=$as_save_IFS
8391
8392fi
8393fi
8394NMEDIT=$ac_cv_prog_NMEDIT
8395if test -n "$NMEDIT"; then
8396 { echo "$as_me:$LINENO: result: $NMEDIT" >&5
8397echo "${ECHO_T}$NMEDIT" >&6; }
8398else
8399 { echo "$as_me:$LINENO: result: no" >&5
8400echo "${ECHO_T}no" >&6; }
8401fi
8402
8403
8404fi
8405if test -z "$ac_cv_prog_NMEDIT"; then
8406 ac_ct_NMEDIT=$NMEDIT
8407 # Extract the first word of "nmedit", so it can be a program name with args.
8408set dummy nmedit; ac_word=$2
8409{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8410echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8411if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
8412 echo $ECHO_N "(cached) $ECHO_C" >&6
8413else
8414 if test -n "$ac_ct_NMEDIT"; then
8415 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8416else
8417as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8418for as_dir in $PATH
8419do
8420 IFS=$as_save_IFS
8421 test -z "$as_dir" && as_dir=.
8422 for ac_exec_ext in '' $ac_executable_extensions; do
8423 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8424 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8425 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8426 break 2
8427 fi
8428done
8429done
8430IFS=$as_save_IFS
8431
8432fi
8433fi
8434ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8435if test -n "$ac_ct_NMEDIT"; then
8436 { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
8437echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
8438else
8439 { echo "$as_me:$LINENO: result: no" >&5
8440echo "${ECHO_T}no" >&6; }
8441fi
8442
8443 if test "x$ac_ct_NMEDIT" = x; then
8444 NMEDIT=":"
8445 else
8446 case $cross_compiling:$ac_tool_warned in
8447yes:)
8448{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8449whose name does not start with the host triplet. If you think this
8450configuration is useful to you, please write to autoconf@gnu.org." >&5
8451echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8452whose name does not start with the host triplet. If you think this
8453configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8454ac_tool_warned=yes ;;
8455esac
8456 NMEDIT=$ac_ct_NMEDIT
8457 fi
8458else
8459 NMEDIT="$ac_cv_prog_NMEDIT"
8460fi
8461
8462
8463 { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
8464echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
8465if test "${lt_cv_apple_cc_single_mod+set}" = set; then
8466 echo $ECHO_N "(cached) $ECHO_C" >&6
8467else
8468 lt_cv_apple_cc_single_mod=no
8469 if test -z "${LT_MULTI_MODULE}"; then
8470 # By default we will add the -single_module flag. You can override
8471 # by either setting the environment variable LT_MULTI_MODULE
8472 # non-empty at configure time, or by adding -multi_module to the
8473 # link flags.
8474 echo "int foo(void){return 1;}" > conftest.c
8475 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8476 -dynamiclib ${wl}-single_module conftest.c
8477 if test -f libconftest.dylib; then
8478 lt_cv_apple_cc_single_mod=yes
8479 rm -rf libconftest.dylib*
8480 fi
8481 rm conftest.c
8482 fi
8483fi
8484{ echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
8485echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
8486 { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
8487echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
8488if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
8489 echo $ECHO_N "(cached) $ECHO_C" >&6
8490else
8491 lt_cv_ld_exported_symbols_list=no
8492 save_LDFLAGS=$LDFLAGS
8493 echo "_main" > conftest.sym
8494 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8495 cat >conftest.$ac_ext <<_ACEOF
8496/* confdefs.h. */
8497_ACEOF
8498cat confdefs.h >>conftest.$ac_ext
8499cat >>conftest.$ac_ext <<_ACEOF
8500/* end confdefs.h. */
8501
8502int
8503main ()
8504{
8505
8506 ;
8507 return 0;
8508}
8509_ACEOF
8510rm -f conftest.$ac_objext conftest$ac_exeext
8511if { (ac_try="$ac_link"
8512case "(($ac_try" in
8513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8514 *) ac_try_echo=$ac_try;;
8515esac
8516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8517 (eval "$ac_link") 2>conftest.er1
8518 ac_status=$?
8519 grep -v '^ *+' conftest.er1 >conftest.err
8520 rm -f conftest.er1
8521 cat conftest.err >&5
8522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8523 (exit $ac_status); } && {
8524 test -z "$ac_c_werror_flag" ||
8525 test ! -s conftest.err
8526 } && test -s conftest$ac_exeext &&
8527 $as_test_x conftest$ac_exeext; then
8528 lt_cv_ld_exported_symbols_list=yes
8529else
8530 echo "$as_me: failed program was:" >&5
8531sed 's/^/| /' conftest.$ac_ext >&5
8532
8533 lt_cv_ld_exported_symbols_list=no
8534fi
8535
8536rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8537 conftest$ac_exeext conftest.$ac_ext
8538 LDFLAGS="$save_LDFLAGS"
8539
8540fi
8541{ echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
8542echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
8543 case $host_os in
8544 rhapsody* | darwin1.[0123])
8545 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8546 darwin1.*)
8547 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8548 darwin*)
8549 # if running on 10.5 or later, the deployment target defaults
8550 # to the OS version, if on x86, and 10.4, the deployment
8551 # target defaults to 10.4. Don't you love it?
8552 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8553 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8554 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8555 10.[012]*)
8556 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8557 10.*)
8558 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8559 esac
8560 ;;
8561 esac
8562 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8563 _lt_dar_single_mod='$single_module'
8564 fi
8565 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8566 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8567 else
8568 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
8569 fi
8570 if test "$DSYMUTIL" != ":"; then
8571 _lt_dsymutil="~$DSYMUTIL \$lib || :"
8572 else
8573 _lt_dsymutil=
8574 fi
8575 ;;
8576 esac
8577
8578
b57f37fb
WP
8579enable_dlopen=no
8580enable_win32_dll=no
8581
8582# Check whether --enable-libtool-lock was given.
8583if test "${enable_libtool_lock+set}" = set; then
8584 enableval=$enable_libtool_lock;
8585fi
8586
8587test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8588
8589
8590# Check whether --with-pic was given.
8591if test "${with_pic+set}" = set; then
8592 withval=$with_pic; pic_mode="$withval"
8593else
8594 pic_mode=default
8595fi
8596
8597test -z "$pic_mode" && pic_mode=default
8598
8599# Use C for the default configuration in the libtool script
8600tagname=
8601lt_save_CC="$CC"
8602ac_ext=c
8603ac_cpp='$CPP $CPPFLAGS'
8604ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8605ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8606ac_compiler_gnu=$ac_cv_c_compiler_gnu
8607
8608
8609# Source file extension for C test sources.
8610ac_ext=c
8611
8612# Object file extension for compiled C test sources.
8613objext=o
8614objext=$objext
8615
8616# Code to be used in simple compile tests
8617lt_simple_compile_test_code="int some_variable = 0;"
8618
8619# Code to be used in simple link tests
8620lt_simple_link_test_code='int main(){return(0);}'
8621
8622
8623# If no C compiler was specified, use CC.
8624LTCC=${LTCC-"$CC"}
8625
8626# If no C compiler flags were specified, use CFLAGS.
8627LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8628
8629# Allow CC to be a program name with arguments.
8630compiler=$CC
8631
8632
8633# save warnings/boilerplate of simple test code
8634ac_outfile=conftest.$ac_objext
8635echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8636eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8637_lt_compiler_boilerplate=`cat conftest.err`
8638$rm conftest*
8639
8640ac_outfile=conftest.$ac_objext
8641echo "$lt_simple_link_test_code" >conftest.$ac_ext
8642eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8643_lt_linker_boilerplate=`cat conftest.err`
56efe974 8644$rm -r conftest*
b57f37fb
WP
8645
8646
8647
8648lt_prog_compiler_no_builtin_flag=
8649
8650if test "$GCC" = yes; then
8651 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8652
8653
8654{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8655echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
8656if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8657 echo $ECHO_N "(cached) $ECHO_C" >&6
8658else
8659 lt_cv_prog_compiler_rtti_exceptions=no
8660 ac_outfile=conftest.$ac_objext
8661 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8662 lt_compiler_flag="-fno-rtti -fno-exceptions"
8663 # Insert the option either (1) after the last *FLAGS variable, or
8664 # (2) before a word containing "conftest.", or (3) at the end.
8665 # Note that $ac_compile itself does not contain backslashes and begins
8666 # with a dollar sign (not a hyphen), so the echo should work correctly.
8667 # The option is referenced via a variable to avoid confusing sed.
8668 lt_compile=`echo "$ac_compile" | $SED \
8669 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8670 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8671 -e 's:$: $lt_compiler_flag:'`
dd910409 8672 (eval echo "\"\$as_me:8672: $lt_compile\"" >&5)
b57f37fb
WP
8673 (eval "$lt_compile" 2>conftest.err)
8674 ac_status=$?
8675 cat conftest.err >&5
dd910409 8676 echo "$as_me:8676: \$? = $ac_status" >&5
b57f37fb
WP
8677 if (exit $ac_status) && test -s "$ac_outfile"; then
8678 # The compiler can only warn and ignore the option if not recognized
8679 # So say no if there are warnings other than the usual output.
8680 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8681 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8682 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8683 lt_cv_prog_compiler_rtti_exceptions=yes
8684 fi
8685 fi
8686 $rm conftest*
8687
8688fi
8689{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8690echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8691
8692if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8693 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8694else
8695 :
8696fi
8697
8698fi
8699
8700lt_prog_compiler_wl=
8701lt_prog_compiler_pic=
8702lt_prog_compiler_static=
8703
8704{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8705echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
8706
8707 if test "$GCC" = yes; then
8708 lt_prog_compiler_wl='-Wl,'
8709 lt_prog_compiler_static='-static'
8710
8711 case $host_os in
8712 aix*)
8713 # All AIX code is PIC.
8714 if test "$host_cpu" = ia64; then
8715 # AIX 5 now supports IA64 processor
8716 lt_prog_compiler_static='-Bstatic'
8717 fi
8718 ;;
8719
8720 amigaos*)
8721 # FIXME: we need at least 68020 code to build shared libraries, but
8722 # adding the `-m68020' flag to GCC prevents building anything better,
8723 # like `-m68040'.
8724 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8725 ;;
8726
8727 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8728 # PIC is the default for these OSes.
8729 ;;
8730
8731 mingw* | cygwin* | pw32* | os2*)
8732 # This hack is so that the source file can tell whether it is being
8733 # built for inclusion in a dll (and should export symbols for example).
8734 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8735 # (--disable-auto-import) libraries
8736 lt_prog_compiler_pic='-DDLL_EXPORT'
8737 ;;
8738
8739 darwin* | rhapsody*)
8740 # PIC is the default on this platform
8741 # Common symbols not allowed in MH_DYLIB files
8742 lt_prog_compiler_pic='-fno-common'
8743 ;;
8744
8745 interix[3-9]*)
8746 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8747 # Instead, we relocate shared libraries at runtime.
8748 ;;
8749
8750 msdosdjgpp*)
8751 # Just because we use GCC doesn't mean we suddenly get shared libraries
8752 # on systems that don't support them.
8753 lt_prog_compiler_can_build_shared=no
8754 enable_shared=no
8755 ;;
8756
8757 sysv4*MP*)
8758 if test -d /usr/nec; then
8759 lt_prog_compiler_pic=-Kconform_pic
8760 fi
8761 ;;
8762
8763 hpux*)
8764 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8765 # not for PA HP-UX.
8766 case $host_cpu in
8767 hppa*64*|ia64*)
8768 # +Z the default
8769 ;;
8770 *)
8771 lt_prog_compiler_pic='-fPIC'
8772 ;;
8773 esac
8774 ;;
8775
8776 *)
8777 lt_prog_compiler_pic='-fPIC'
8778 ;;
8779 esac
8780 else
8781 # PORTME Check for flag to pass linker flags through the system compiler.
8782 case $host_os in
8783 aix*)
8784 lt_prog_compiler_wl='-Wl,'
8785 if test "$host_cpu" = ia64; then
8786 # AIX 5 now supports IA64 processor
8787 lt_prog_compiler_static='-Bstatic'
8788 else
8789 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8790 fi
8791 ;;
8792 darwin*)
8793 # PIC is the default on this platform
8794 # Common symbols not allowed in MH_DYLIB files
8795 case $cc_basename in
8796 xlc*)
8797 lt_prog_compiler_pic='-qnocommon'
8798 lt_prog_compiler_wl='-Wl,'
8799 ;;
8800 esac
8801 ;;
8802
8803 mingw* | cygwin* | pw32* | os2*)
8804 # This hack is so that the source file can tell whether it is being
8805 # built for inclusion in a dll (and should export symbols for example).
8806 lt_prog_compiler_pic='-DDLL_EXPORT'
8807 ;;
8808
8809 hpux9* | hpux10* | hpux11*)
8810 lt_prog_compiler_wl='-Wl,'
8811 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8812 # not for PA HP-UX.
8813 case $host_cpu in
8814 hppa*64*|ia64*)
8815 # +Z the default
8816 ;;
8817 *)
8818 lt_prog_compiler_pic='+Z'
8819 ;;
8820 esac
8821 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8822 lt_prog_compiler_static='${wl}-a ${wl}archive'
8823 ;;
8824
8825 irix5* | irix6* | nonstopux*)
8826 lt_prog_compiler_wl='-Wl,'
8827 # PIC (with -KPIC) is the default.
8828 lt_prog_compiler_static='-non_shared'
8829 ;;
8830
8831 newsos6)
8832 lt_prog_compiler_pic='-KPIC'
8833 lt_prog_compiler_static='-Bstatic'
8834 ;;
8835
8836 linux* | k*bsd*-gnu)
8837 case $cc_basename in
8838 icc* | ecc*)
8839 lt_prog_compiler_wl='-Wl,'
8840 lt_prog_compiler_pic='-KPIC'
8841 lt_prog_compiler_static='-static'
8842 ;;
8843 pgcc* | pgf77* | pgf90* | pgf95*)
8844 # Portland Group compilers (*not* the Pentium gcc compiler,
8845 # which looks to be a dead project)
8846 lt_prog_compiler_wl='-Wl,'
8847 lt_prog_compiler_pic='-fpic'
8848 lt_prog_compiler_static='-Bstatic'
8849 ;;
8850 ccc*)
8851 lt_prog_compiler_wl='-Wl,'
8852 # All Alpha code is PIC.
8853 lt_prog_compiler_static='-non_shared'
8854 ;;
8855 *)
8856 case `$CC -V 2>&1 | sed 5q` in
8857 *Sun\ C*)
8858 # Sun C 5.9
8859 lt_prog_compiler_pic='-KPIC'
8860 lt_prog_compiler_static='-Bstatic'
8861 lt_prog_compiler_wl='-Wl,'
8862 ;;
8863 *Sun\ F*)
8864 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8865 lt_prog_compiler_pic='-KPIC'
8866 lt_prog_compiler_static='-Bstatic'
8867 lt_prog_compiler_wl=''
8868 ;;
8869 esac
8870 ;;
8871 esac
8872 ;;
8873
8874 osf3* | osf4* | osf5*)
8875 lt_prog_compiler_wl='-Wl,'
8876 # All OSF/1 code is PIC.
8877 lt_prog_compiler_static='-non_shared'
8878 ;;
8879
8880 rdos*)
8881 lt_prog_compiler_static='-non_shared'
8882 ;;
8883
8884 solaris*)
8885 lt_prog_compiler_pic='-KPIC'
8886 lt_prog_compiler_static='-Bstatic'
8887 case $cc_basename in
8888 f77* | f90* | f95*)
8889 lt_prog_compiler_wl='-Qoption ld ';;
8890 *)
8891 lt_prog_compiler_wl='-Wl,';;
8892 esac
8893 ;;
8894
8895 sunos4*)
8896 lt_prog_compiler_wl='-Qoption ld '
8897 lt_prog_compiler_pic='-PIC'
8898 lt_prog_compiler_static='-Bstatic'
8899 ;;
8900
8901 sysv4 | sysv4.2uw2* | sysv4.3*)
8902 lt_prog_compiler_wl='-Wl,'
8903 lt_prog_compiler_pic='-KPIC'
8904 lt_prog_compiler_static='-Bstatic'
8905 ;;
8906
8907 sysv4*MP*)
8908 if test -d /usr/nec ;then
8909 lt_prog_compiler_pic='-Kconform_pic'
8910 lt_prog_compiler_static='-Bstatic'
8911 fi
8912 ;;
8913
8914 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8915 lt_prog_compiler_wl='-Wl,'
8916 lt_prog_compiler_pic='-KPIC'
8917 lt_prog_compiler_static='-Bstatic'
8918 ;;
8919
8920 unicos*)
8921 lt_prog_compiler_wl='-Wl,'
8922 lt_prog_compiler_can_build_shared=no
8923 ;;
8924
8925 uts4*)
8926 lt_prog_compiler_pic='-pic'
8927 lt_prog_compiler_static='-Bstatic'
8928 ;;
8929
8930 *)
8931 lt_prog_compiler_can_build_shared=no
8932 ;;
8933 esac
8934 fi
8935
8936{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8937echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
8938
8939#
8940# Check to make sure the PIC flag actually works.
8941#
8942if test -n "$lt_prog_compiler_pic"; then
8943
8944{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8945echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
56efe974 8946if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
b57f37fb
WP
8947 echo $ECHO_N "(cached) $ECHO_C" >&6
8948else
56efe974 8949 lt_cv_prog_compiler_pic_works=no
b57f37fb
WP
8950 ac_outfile=conftest.$ac_objext
8951 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8952 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8953 # Insert the option either (1) after the last *FLAGS variable, or
8954 # (2) before a word containing "conftest.", or (3) at the end.
8955 # Note that $ac_compile itself does not contain backslashes and begins
8956 # with a dollar sign (not a hyphen), so the echo should work correctly.
8957 # The option is referenced via a variable to avoid confusing sed.
8958 lt_compile=`echo "$ac_compile" | $SED \
8959 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8960 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8961 -e 's:$: $lt_compiler_flag:'`
dd910409 8962 (eval echo "\"\$as_me:8962: $lt_compile\"" >&5)
b57f37fb
WP
8963 (eval "$lt_compile" 2>conftest.err)
8964 ac_status=$?
8965 cat conftest.err >&5
dd910409 8966 echo "$as_me:8966: \$? = $ac_status" >&5
b57f37fb
WP
8967 if (exit $ac_status) && test -s "$ac_outfile"; then
8968 # The compiler can only warn and ignore the option if not recognized
8969 # So say no if there are warnings other than the usual output.
8970 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8971 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8972 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
56efe974 8973 lt_cv_prog_compiler_pic_works=yes
b57f37fb
WP
8974 fi
8975 fi
8976 $rm conftest*
8977
8978fi
56efe974
WP
8979{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8980echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
b57f37fb 8981
56efe974 8982if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
b57f37fb
WP
8983 case $lt_prog_compiler_pic in
8984 "" | " "*) ;;
8985 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8986 esac
8987else
8988 lt_prog_compiler_pic=
8989 lt_prog_compiler_can_build_shared=no
8990fi
8991
8992fi
8993case $host_os in
8994 # For platforms which do not support PIC, -DPIC is meaningless:
8995 *djgpp*)
8996 lt_prog_compiler_pic=
8997 ;;
8998 *)
8999 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9000 ;;
9001esac
9002
9003#
9004# Check to make sure the static flag actually works.
9005#
9006wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9007{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9008echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
56efe974 9009if test "${lt_cv_prog_compiler_static_works+set}" = set; then
b57f37fb
WP
9010 echo $ECHO_N "(cached) $ECHO_C" >&6
9011else
56efe974 9012 lt_cv_prog_compiler_static_works=no
b57f37fb
WP
9013 save_LDFLAGS="$LDFLAGS"
9014 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9015 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9016 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9017 # The linker can only warn and ignore the option if not recognized
9018 # So say no if there are warnings
9019 if test -s conftest.err; then
9020 # Append any errors to the config.log.
9021 cat conftest.err 1>&5
9022 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9023 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9024 if diff conftest.exp conftest.er2 >/dev/null; then
56efe974 9025 lt_cv_prog_compiler_static_works=yes
b57f37fb
WP
9026 fi
9027 else
56efe974 9028 lt_cv_prog_compiler_static_works=yes
b57f37fb
WP
9029 fi
9030 fi
56efe974 9031 $rm -r conftest*
b57f37fb
WP
9032 LDFLAGS="$save_LDFLAGS"
9033
9034fi
56efe974
WP
9035{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
9036echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
b57f37fb 9037
56efe974 9038if test x"$lt_cv_prog_compiler_static_works" = xyes; then
b57f37fb
WP
9039 :
9040else
9041 lt_prog_compiler_static=
9042fi
9043
9044
9045{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9046echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9047if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9048 echo $ECHO_N "(cached) $ECHO_C" >&6
9049else
9050 lt_cv_prog_compiler_c_o=no
9051 $rm -r conftest 2>/dev/null
9052 mkdir conftest
9053 cd conftest
9054 mkdir out
9055 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9056
9057 lt_compiler_flag="-o out/conftest2.$ac_objext"
9058 # Insert the option either (1) after the last *FLAGS variable, or
9059 # (2) before a word containing "conftest.", or (3) at the end.
9060 # Note that $ac_compile itself does not contain backslashes and begins
9061 # with a dollar sign (not a hyphen), so the echo should work correctly.
9062 lt_compile=`echo "$ac_compile" | $SED \
9063 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9064 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9065 -e 's:$: $lt_compiler_flag:'`
dd910409 9066 (eval echo "\"\$as_me:9066: $lt_compile\"" >&5)
b57f37fb
WP
9067 (eval "$lt_compile" 2>out/conftest.err)
9068 ac_status=$?
9069 cat out/conftest.err >&5
dd910409 9070 echo "$as_me:9070: \$? = $ac_status" >&5
b57f37fb
WP
9071 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9072 then
9073 # The compiler can only warn and ignore the option if not recognized
9074 # So say no if there are warnings
9075 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9076 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9077 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9078 lt_cv_prog_compiler_c_o=yes
9079 fi
9080 fi
9081 chmod u+w . 2>&5
9082 $rm conftest*
9083 # SGI C++ compiler will create directory out/ii_files/ for
9084 # template instantiation
9085 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
9086 $rm out/* && rmdir out
9087 cd ..
9088 rmdir conftest
9089 $rm conftest*
9090
9091fi
9092{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9093echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9094
9095
9096hard_links="nottested"
9097if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9098 # do not overwrite the value of need_locks provided by the user
9099 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9100echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
9101 hard_links=yes
9102 $rm conftest*
9103 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9104 touch conftest.a
9105 ln conftest.a conftest.b 2>&5 || hard_links=no
9106 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9107 { echo "$as_me:$LINENO: result: $hard_links" >&5
9108echo "${ECHO_T}$hard_links" >&6; }
9109 if test "$hard_links" = no; then
9110 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9111echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9112 need_locks=warn
9113 fi
9114else
9115 need_locks=no
9116fi
9117
9118{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9119echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
9120
9121 runpath_var=
9122 allow_undefined_flag=
9123 enable_shared_with_static_runtimes=no
9124 archive_cmds=
9125 archive_expsym_cmds=
9126 old_archive_From_new_cmds=
9127 old_archive_from_expsyms_cmds=
9128 export_dynamic_flag_spec=
9129 whole_archive_flag_spec=
9130 thread_safe_flag_spec=
9131 hardcode_libdir_flag_spec=
9132 hardcode_libdir_flag_spec_ld=
9133 hardcode_libdir_separator=
9134 hardcode_direct=no
9135 hardcode_minus_L=no
9136 hardcode_shlibpath_var=unsupported
9137 link_all_deplibs=unknown
9138 hardcode_automatic=no
9139 module_cmds=
9140 module_expsym_cmds=
9141 always_export_symbols=no
9142 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9143 # include_expsyms should be a list of space-separated symbols to be *always*
9144 # included in the symbol list
9145 include_expsyms=
9146 # exclude_expsyms can be an extended regexp of symbols to exclude
9147 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9148 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9149 # as well as any symbol that contains `d'.
56efe974 9150 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
b57f37fb
WP
9151 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9152 # platforms (ab)use it in PIC code, but their linkers get confused if
9153 # the symbol is explicitly referenced. Since portable code cannot
9154 # rely on this symbol name, it's probably fine to never include it in
9155 # preloaded symbol tables.
56efe974 9156 # Exclude shared library initialization/finalization symbols.
b57f37fb
WP
9157 extract_expsyms_cmds=
9158 # Just being paranoid about ensuring that cc_basename is set.
9159 for cc_temp in $compiler""; do
9160 case $cc_temp in
9161 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9162 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9163 \-*) ;;
9164 *) break;;
9165 esac
9166done
9167cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9168
9169 case $host_os in
9170 cygwin* | mingw* | pw32*)
9171 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9172 # When not using gcc, we currently assume that we are using
9173 # Microsoft Visual C++.
9174 if test "$GCC" != yes; then
9175 with_gnu_ld=no
9176 fi
9177 ;;
9178 interix*)
9179 # we just hope/assume this is gcc and not c89 (= MSVC++)
9180 with_gnu_ld=yes
9181 ;;
9182 openbsd*)
9183 with_gnu_ld=no
9184 ;;
9185 esac
9186
9187 ld_shlibs=yes
9188 if test "$with_gnu_ld" = yes; then
9189 # If archive_cmds runs LD, not CC, wlarc should be empty
9190 wlarc='${wl}'
9191
9192 # Set some defaults for GNU ld with shared library support. These
9193 # are reset later if shared libraries are not supported. Putting them
9194 # here allows them to be overridden if necessary.
9195 runpath_var=LD_RUN_PATH
9196 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
9197 export_dynamic_flag_spec='${wl}--export-dynamic'
9198 # ancient GNU ld didn't support --whole-archive et. al.
9199 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
9200 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9201 else
9202 whole_archive_flag_spec=
9203 fi
9204 supports_anon_versioning=no
9205 case `$LD -v 2>/dev/null` in
9206 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9207 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9208 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9209 *\ 2.11.*) ;; # other 2.11 versions
9210 *) supports_anon_versioning=yes ;;
9211 esac
9212
9213 # See if GNU ld supports shared libraries.
9214 case $host_os in
56efe974 9215 aix[3-9]*)
b57f37fb
WP
9216 # On AIX/PPC, the GNU linker is very broken
9217 if test "$host_cpu" != ia64; then
9218 ld_shlibs=no
9219 cat <<EOF 1>&2
9220
9221*** Warning: the GNU linker, at least up to release 2.9.1, is reported
9222*** to be unable to reliably create shared libraries on AIX.
9223*** Therefore, libtool is disabling shared libraries support. If you
9224*** really care for shared libraries, you may want to modify your PATH
9225*** so that a non-GNU linker is found, and then restart.
9226
9227EOF
9228 fi
9229 ;;
9230
9231 amigaos*)
9232 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)'
9233 hardcode_libdir_flag_spec='-L$libdir'
9234 hardcode_minus_L=yes
9235
9236 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9237 # that the semantics of dynamic libraries on AmigaOS, at least up
9238 # to version 4, is to share data among multiple programs linked
9239 # with the same dynamic library. Since this doesn't match the
9240 # behavior of shared libraries on other platforms, we can't use
9241 # them.
9242 ld_shlibs=no
9243 ;;
9244
9245 beos*)
9246 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9247 allow_undefined_flag=unsupported
9248 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9249 # support --undefined. This deserves some investigation. FIXME
9250 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9251 else
9252 ld_shlibs=no
9253 fi
9254 ;;
9255
9256 cygwin* | mingw* | pw32*)
9257 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9258 # as there is no search path for DLLs.
9259 hardcode_libdir_flag_spec='-L$libdir'
9260 allow_undefined_flag=unsupported
9261 always_export_symbols=no
9262 enable_shared_with_static_runtimes=yes
9263 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9264
9265 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9266 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9267 # If the export-symbols file already is a .def file (1st line
9268 # is EXPORTS), use it as is; otherwise, prepend...
9269 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9270 cp $export_symbols $output_objdir/$soname.def;
9271 else
9272 echo EXPORTS > $output_objdir/$soname.def;
9273 cat $export_symbols >> $output_objdir/$soname.def;
9274 fi~
9275 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9276 else
9277 ld_shlibs=no
9278 fi
9279 ;;
9280
9281 interix[3-9]*)
9282 hardcode_direct=no
9283 hardcode_shlibpath_var=no
9284 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9285 export_dynamic_flag_spec='${wl}-E'
9286 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9287 # Instead, shared libraries are loaded at an image base (0x10000000 by
9288 # default) and relocated if they conflict, which is a slow very memory
9289 # consuming and fragmenting process. To avoid this, we pick a random,
9290 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9291 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9292 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9293 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'
9294 ;;
9295
9296 gnu* | linux* | k*bsd*-gnu)
9297 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9298 tmp_addflag=
9299 case $cc_basename,$host_cpu in
9300 pgcc*) # Portland Group C compiler
9301 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'
9302 tmp_addflag=' $pic_flag'
9303 ;;
9304 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
9305 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'
9306 tmp_addflag=' $pic_flag -Mnomain' ;;
9307 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9308 tmp_addflag=' -i_dynamic' ;;
9309 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9310 tmp_addflag=' -i_dynamic -nofor_main' ;;
9311 ifc* | ifort*) # Intel Fortran compiler
9312 tmp_addflag=' -nofor_main' ;;
9313 esac
9314 case `$CC -V 2>&1 | sed 5q` in
9315 *Sun\ C*) # Sun C 5.9
9316 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
9317 tmp_sharedflag='-G' ;;
9318 *Sun\ F*) # Sun Fortran 8.3
9319 tmp_sharedflag='-G' ;;
9320 *)
9321 tmp_sharedflag='-shared' ;;
9322 esac
9323 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9324
9325 if test $supports_anon_versioning = yes; then
9326 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9327 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9328 $echo "local: *; };" >> $output_objdir/$libname.ver~
9329 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9330 fi
9331 link_all_deplibs=no
9332 else
9333 ld_shlibs=no
9334 fi
9335 ;;
9336
9337 netbsd* | netbsdelf*-gnu)
9338 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9339 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9340 wlarc=
9341 else
9342 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9343 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9344 fi
9345 ;;
9346
9347 solaris*)
9348 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9349 ld_shlibs=no
9350 cat <<EOF 1>&2
9351
9352*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9353*** create shared libraries on Solaris systems. Therefore, libtool
9354*** is disabling shared libraries support. We urge you to upgrade GNU
9355*** binutils to release 2.9.1 or newer. Another option is to modify
9356*** your PATH or compiler configuration so that the native linker is
9357*** used, and then restart.
9358
9359EOF
9360 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9361 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9362 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9363 else
9364 ld_shlibs=no
9365 fi
9366 ;;
9367
9368 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9369 case `$LD -v 2>&1` in
9370 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9371 ld_shlibs=no
9372 cat <<_LT_EOF 1>&2
9373
9374*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9375*** reliably create shared libraries on SCO systems. Therefore, libtool
9376*** is disabling shared libraries support. We urge you to upgrade GNU
9377*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9378*** your PATH or compiler configuration so that the native linker is
9379*** used, and then restart.
9380
9381_LT_EOF
9382 ;;
9383 *)
9384 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9385 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
9386 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
9387 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
9388 else
9389 ld_shlibs=no
9390 fi
9391 ;;
9392 esac
9393 ;;
9394
9395 sunos4*)
9396 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9397 wlarc=
9398 hardcode_direct=yes
9399 hardcode_shlibpath_var=no
9400 ;;
9401
9402 *)
9403 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9404 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9405 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9406 else
9407 ld_shlibs=no
9408 fi
9409 ;;
9410 esac
9411
9412 if test "$ld_shlibs" = no; then
9413 runpath_var=
9414 hardcode_libdir_flag_spec=
9415 export_dynamic_flag_spec=
9416 whole_archive_flag_spec=
9417 fi
9418 else
9419 # PORTME fill in a description of your system's linker (not GNU ld)
9420 case $host_os in
9421 aix3*)
9422 allow_undefined_flag=unsupported
9423 always_export_symbols=yes
9424 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'
9425 # Note: this linker hardcodes the directories in LIBPATH if there
9426 # are no directories specified by -L.
9427 hardcode_minus_L=yes
9428 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9429 # Neither direct hardcoding nor static linking is supported with a
9430 # broken collect2.
9431 hardcode_direct=unsupported
9432 fi
9433 ;;
9434
56efe974 9435 aix[4-9]*)
b57f37fb
WP
9436 if test "$host_cpu" = ia64; then
9437 # On IA64, the linker does run time linking by default, so we don't
9438 # have to do anything special.
9439 aix_use_runtimelinking=no
9440 exp_sym_flag='-Bexport'
9441 no_entry_flag=""
9442 else
9443 # If we're using GNU nm, then we don't want the "-C" option.
9444 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9445 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9446 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'
9447 else
9448 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'
9449 fi
9450 aix_use_runtimelinking=no
9451
9452 # Test if we are trying to use run time linking or normal
9453 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9454 # need to do runtime linking.
56efe974 9455 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
b57f37fb
WP
9456 for ld_flag in $LDFLAGS; do
9457 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9458 aix_use_runtimelinking=yes
9459 break
9460 fi
9461 done
9462 ;;
9463 esac
9464
9465 exp_sym_flag='-bexport'
9466 no_entry_flag='-bnoentry'
9467 fi
9468
9469 # When large executables or shared objects are built, AIX ld can
9470 # have problems creating the table of contents. If linking a library
9471 # or program results in "error TOC overflow" add -mminimal-toc to
9472 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9473 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9474
9475 archive_cmds=''
9476 hardcode_direct=yes
9477 hardcode_libdir_separator=':'
9478 link_all_deplibs=yes
9479
9480 if test "$GCC" = yes; then
9481 case $host_os in aix4.[012]|aix4.[012].*)
9482 # We only want to do this on AIX 4.2 and lower, the check
9483 # below for broken collect2 doesn't work under 4.3+
9484 collect2name=`${CC} -print-prog-name=collect2`
9485 if test -f "$collect2name" && \
9486 strings "$collect2name" | grep resolve_lib_name >/dev/null
9487 then
9488 # We have reworked collect2
9489 :
9490 else
9491 # We have old collect2
9492 hardcode_direct=unsupported
9493 # It fails to find uninstalled libraries when the uninstalled
9494 # path is not listed in the libpath. Setting hardcode_minus_L
9495 # to unsupported forces relinking
9496 hardcode_minus_L=yes
9497 hardcode_libdir_flag_spec='-L$libdir'
9498 hardcode_libdir_separator=
9499 fi
9500 ;;
9501 esac
9502 shared_flag='-shared'
9503 if test "$aix_use_runtimelinking" = yes; then
9504 shared_flag="$shared_flag "'${wl}-G'
9505 fi
9506 else
9507 # not using gcc
9508 if test "$host_cpu" = ia64; then
9509 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9510 # chokes on -Wl,-G. The following line is correct:
9511 shared_flag='-G'
9512 else
9513 if test "$aix_use_runtimelinking" = yes; then
9514 shared_flag='${wl}-G'
9515 else
9516 shared_flag='${wl}-bM:SRE'
9517 fi
9518 fi
9519 fi
9520
9521 # It seems that -bexpall does not export symbols beginning with
9522 # underscore (_), so it is better to generate a list of symbols to export.
9523 always_export_symbols=yes
9524 if test "$aix_use_runtimelinking" = yes; then
9525 # Warning - without using the other runtime loading flags (-brtl),
9526 # -berok will link without error, but may produce a broken library.
9527 allow_undefined_flag='-berok'
9528 # Determine the default libpath from the value encoded in an empty executable.
9529 cat >conftest.$ac_ext <<_ACEOF
9530/* confdefs.h. */
9531_ACEOF
9532cat confdefs.h >>conftest.$ac_ext
9533cat >>conftest.$ac_ext <<_ACEOF
9534/* end confdefs.h. */
9535
9536int
9537main ()
9538{
9539
9540 ;
9541 return 0;
9542}
9543_ACEOF
9544rm -f conftest.$ac_objext conftest$ac_exeext
9545if { (ac_try="$ac_link"
9546case "(($ac_try" in
9547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9548 *) ac_try_echo=$ac_try;;
9549esac
9550eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9551 (eval "$ac_link") 2>conftest.er1
9552 ac_status=$?
9553 grep -v '^ *+' conftest.er1 >conftest.err
9554 rm -f conftest.er1
9555 cat conftest.err >&5
9556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9557 (exit $ac_status); } && {
9558 test -z "$ac_c_werror_flag" ||
9559 test ! -s conftest.err
9560 } && test -s conftest$ac_exeext &&
9561 $as_test_x conftest$ac_exeext; then
9562
9563lt_aix_libpath_sed='
9564 /Import File Strings/,/^$/ {
9565 /^0/ {
9566 s/^0 *\(.*\)$/\1/
9567 p
9568 }
9569 }'
9570aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9571# Check for a 64-bit object if we didn't find anything.
9572if test -z "$aix_libpath"; then
9573 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9574fi
9575else
9576 echo "$as_me: failed program was:" >&5
9577sed 's/^/| /' conftest.$ac_ext >&5
9578
9579
9580fi
9581
9582rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9583 conftest$ac_exeext conftest.$ac_ext
9584if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9585
9586 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9587 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"
9588 else
9589 if test "$host_cpu" = ia64; then
9590 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9591 allow_undefined_flag="-z nodefs"
9592 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"
9593 else
9594 # Determine the default libpath from the value encoded in an empty executable.
9595 cat >conftest.$ac_ext <<_ACEOF
9596/* confdefs.h. */
9597_ACEOF
9598cat confdefs.h >>conftest.$ac_ext
9599cat >>conftest.$ac_ext <<_ACEOF
9600/* end confdefs.h. */
9601
9602int
9603main ()
9604{
9605
9606 ;
9607 return 0;
9608}
9609_ACEOF
9610rm -f conftest.$ac_objext conftest$ac_exeext
9611if { (ac_try="$ac_link"
9612case "(($ac_try" in
9613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9614 *) ac_try_echo=$ac_try;;
9615esac
9616eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9617 (eval "$ac_link") 2>conftest.er1
9618 ac_status=$?
9619 grep -v '^ *+' conftest.er1 >conftest.err
9620 rm -f conftest.er1
9621 cat conftest.err >&5
9622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9623 (exit $ac_status); } && {
9624 test -z "$ac_c_werror_flag" ||
9625 test ! -s conftest.err
9626 } && test -s conftest$ac_exeext &&
9627 $as_test_x conftest$ac_exeext; then
9628
9629lt_aix_libpath_sed='
9630 /Import File Strings/,/^$/ {
9631 /^0/ {
9632 s/^0 *\(.*\)$/\1/
9633 p
9634 }
9635 }'
9636aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9637# Check for a 64-bit object if we didn't find anything.
9638if test -z "$aix_libpath"; then
9639 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9640fi
9641else
9642 echo "$as_me: failed program was:" >&5
9643sed 's/^/| /' conftest.$ac_ext >&5
9644
9645
9646fi
9647
9648rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9649 conftest$ac_exeext conftest.$ac_ext
9650if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9651
9652 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9653 # Warning - without using the other run time loading flags,
9654 # -berok will link without error, but may produce a broken library.
9655 no_undefined_flag=' ${wl}-bernotok'
9656 allow_undefined_flag=' ${wl}-berok'
9657 # Exported symbols can be pulled into shared objects from archives
9658 whole_archive_flag_spec='$convenience'
9659 archive_cmds_need_lc=yes
9660 # This is similar to how AIX traditionally builds its shared libraries.
9661 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'
9662 fi
9663 fi
9664 ;;
9665
9666 amigaos*)
9667 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)'
9668 hardcode_libdir_flag_spec='-L$libdir'
9669 hardcode_minus_L=yes
9670 # see comment about different semantics on the GNU ld section
9671 ld_shlibs=no
9672 ;;
9673
9674 bsdi[45]*)
9675 export_dynamic_flag_spec=-rdynamic
9676 ;;
9677
9678 cygwin* | mingw* | pw32*)
9679 # When not using gcc, we currently assume that we are using
9680 # Microsoft Visual C++.
9681 # hardcode_libdir_flag_spec is actually meaningless, as there is
9682 # no search path for DLLs.
9683 hardcode_libdir_flag_spec=' '
9684 allow_undefined_flag=unsupported
9685 # Tell ltmain to make .lib files, not .a files.
9686 libext=lib
9687 # Tell ltmain to make .dll files, not .so files.
9688 shrext_cmds=".dll"
9689 # FIXME: Setting linknames here is a bad hack.
9690 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9691 # The linker will automatically build a .lib file if we build a DLL.
9692 old_archive_From_new_cmds='true'
9693 # FIXME: Should let the user specify the lib program.
9694 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9695 fix_srcfile_path='`cygpath -w "$srcfile"`'
9696 enable_shared_with_static_runtimes=yes
9697 ;;
9698
9699 darwin* | rhapsody*)
9700 case $host_os in
9701 rhapsody* | darwin1.[012])
9702 allow_undefined_flag='${wl}-undefined ${wl}suppress'
9703 ;;
9704 *) # Darwin 1.3 on
9705 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9706 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9707 else
9708 case ${MACOSX_DEPLOYMENT_TARGET} in
9709 10.[012])
9710 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9711 ;;
9712 10.*)
9713 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9714 ;;
9715 esac
9716 fi
9717 ;;
9718 esac
9719 archive_cmds_need_lc=no
9720 hardcode_direct=no
9721 hardcode_automatic=yes
9722 hardcode_shlibpath_var=unsupported
9723 whole_archive_flag_spec=''
9724 link_all_deplibs=yes
9725 if test "$GCC" = yes ; then
9726 output_verbose_link_cmd='echo'
56efe974
WP
9727 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9728 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9729 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
9730 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
b57f37fb
WP
9731 else
9732 case $cc_basename in
9733 xlc*)
9734 output_verbose_link_cmd='echo'
9735 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
9736 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9737 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9738 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9739 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}'
9740 ;;
9741 *)
9742 ld_shlibs=no
9743 ;;
9744 esac
9745 fi
9746 ;;
9747
9748 dgux*)
9749 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9750 hardcode_libdir_flag_spec='-L$libdir'
9751 hardcode_shlibpath_var=no
9752 ;;
9753
9754 freebsd1*)
9755 ld_shlibs=no
9756 ;;
9757
9758 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9759 # support. Future versions do this automatically, but an explicit c++rt0.o
9760 # does not break anything, and helps significantly (at the cost of a little
9761 # extra space).
9762 freebsd2.2*)
9763 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9764 hardcode_libdir_flag_spec='-R$libdir'
9765 hardcode_direct=yes
9766 hardcode_shlibpath_var=no
9767 ;;
9768
9769 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9770 freebsd2*)
9771 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9772 hardcode_direct=yes
9773 hardcode_minus_L=yes
9774 hardcode_shlibpath_var=no
9775 ;;
9776
9777 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9778 freebsd* | dragonfly*)
9779 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9780 hardcode_libdir_flag_spec='-R$libdir'
9781 hardcode_direct=yes
9782 hardcode_shlibpath_var=no
9783 ;;
9784
9785 hpux9*)
9786 if test "$GCC" = yes; then
9787 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'
9788 else
9789 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'
9790 fi
9791 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9792 hardcode_libdir_separator=:
9793 hardcode_direct=yes
9794
9795 # hardcode_minus_L: Not really in the search PATH,
9796 # but as the default location of the library.
9797 hardcode_minus_L=yes
9798 export_dynamic_flag_spec='${wl}-E'
9799 ;;
9800
9801 hpux10*)
9802 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9803 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9804 else
9805 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9806 fi
9807 if test "$with_gnu_ld" = no; then
9808 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9809 hardcode_libdir_separator=:
9810
9811 hardcode_direct=yes
9812 export_dynamic_flag_spec='${wl}-E'
9813
9814 # hardcode_minus_L: Not really in the search PATH,
9815 # but as the default location of the library.
9816 hardcode_minus_L=yes
9817 fi
9818 ;;
9819
9820 hpux11*)
9821 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9822 case $host_cpu in
9823 hppa*64*)
9824 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9825 ;;
9826 ia64*)
9827 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9828 ;;
9829 *)
9830 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9831 ;;
9832 esac
9833 else
9834 case $host_cpu in
9835 hppa*64*)
9836 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9837 ;;
9838 ia64*)
9839 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9840 ;;
9841 *)
9842 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9843 ;;
9844 esac
9845 fi
9846 if test "$with_gnu_ld" = no; then
9847 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9848 hardcode_libdir_separator=:
9849
9850 case $host_cpu in
9851 hppa*64*|ia64*)
9852 hardcode_libdir_flag_spec_ld='+b $libdir'
9853 hardcode_direct=no
9854 hardcode_shlibpath_var=no
9855 ;;
9856 *)
9857 hardcode_direct=yes
9858 export_dynamic_flag_spec='${wl}-E'
9859
9860 # hardcode_minus_L: Not really in the search PATH,
9861 # but as the default location of the library.
9862 hardcode_minus_L=yes
9863 ;;
9864 esac
9865 fi
9866 ;;
9867
9868 irix5* | irix6* | nonstopux*)
9869 if test "$GCC" = yes; then
9870 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'
9871 else
9872 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'
9873 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9874 fi
9875 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9876 hardcode_libdir_separator=:
9877 link_all_deplibs=yes
9878 ;;
9879
9880 netbsd* | netbsdelf*-gnu)
9881 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9882 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9883 else
9884 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9885 fi
9886 hardcode_libdir_flag_spec='-R$libdir'
9887 hardcode_direct=yes
9888 hardcode_shlibpath_var=no
9889 ;;
9890
9891 newsos6)
9892 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9893 hardcode_direct=yes
9894 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9895 hardcode_libdir_separator=:
9896 hardcode_shlibpath_var=no
9897 ;;
9898
9899 openbsd*)
9900 if test -f /usr/libexec/ld.so; then
9901 hardcode_direct=yes
9902 hardcode_shlibpath_var=no
9903 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9904 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9905 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9906 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9907 export_dynamic_flag_spec='${wl}-E'
9908 else
9909 case $host_os in
9910 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9911 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9912 hardcode_libdir_flag_spec='-R$libdir'
9913 ;;
9914 *)
9915 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9916 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9917 ;;
9918 esac
9919 fi
9920 else
9921 ld_shlibs=no
9922 fi
9923 ;;
9924
9925 os2*)
9926 hardcode_libdir_flag_spec='-L$libdir'
9927 hardcode_minus_L=yes
9928 allow_undefined_flag=unsupported
9929 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'
9930 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9931 ;;
9932
9933 osf3*)
9934 if test "$GCC" = yes; then
9935 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9936 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'
9937 else
9938 allow_undefined_flag=' -expect_unresolved \*'
9939 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'
9940 fi
9941 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9942 hardcode_libdir_separator=:
9943 ;;
9944
9945 osf4* | osf5*) # as osf3* with the addition of -msym flag
9946 if test "$GCC" = yes; then
9947 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9948 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'
9949 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9950 else
9951 allow_undefined_flag=' -expect_unresolved \*'
9952 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'
9953 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9954 $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'
9955
9956 # Both c and cxx compiler support -rpath directly
9957 hardcode_libdir_flag_spec='-rpath $libdir'
9958 fi
9959 hardcode_libdir_separator=:
9960 ;;
9961
9962 solaris*)
9963 no_undefined_flag=' -z text'
9964 if test "$GCC" = yes; then
9965 wlarc='${wl}'
9966 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9967 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9968 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9969 else
9970 wlarc=''
9971 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9972 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9973 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9974 fi
9975 hardcode_libdir_flag_spec='-R$libdir'
9976 hardcode_shlibpath_var=no
9977 case $host_os in
9978 solaris2.[0-5] | solaris2.[0-5].*) ;;
9979 *)
9980 # The compiler driver will combine and reorder linker options,
9981 # but understands `-z linker_flag'. GCC discards it without `$wl',
9982 # but is careful enough not to reorder.
9983 # Supported since Solaris 2.6 (maybe 2.5.1?)
9984 if test "$GCC" = yes; then
9985 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9986 else
9987 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9988 fi
9989 ;;
9990 esac
9991 link_all_deplibs=yes
9992 ;;
9993
9994 sunos4*)
9995 if test "x$host_vendor" = xsequent; then
9996 # Use $CC to link under sequent, because it throws in some extra .o
9997 # files that make .init and .fini sections work.
9998 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9999 else
10000 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10001 fi
10002 hardcode_libdir_flag_spec='-L$libdir'
10003 hardcode_direct=yes
10004 hardcode_minus_L=yes
10005 hardcode_shlibpath_var=no
10006 ;;
10007
10008 sysv4)
10009 case $host_vendor in
10010 sni)
10011 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10012 hardcode_direct=yes # is this really true???
10013 ;;
10014 siemens)
10015 ## LD is ld it makes a PLAMLIB
10016 ## CC just makes a GrossModule.
10017 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10018 reload_cmds='$CC -r -o $output$reload_objs'
10019 hardcode_direct=no
10020 ;;
10021 motorola)
10022 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10023 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10024 ;;
10025 esac
10026 runpath_var='LD_RUN_PATH'
10027 hardcode_shlibpath_var=no
10028 ;;
10029
10030 sysv4.3*)
10031 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10032 hardcode_shlibpath_var=no
10033 export_dynamic_flag_spec='-Bexport'
10034 ;;
10035
10036 sysv4*MP*)
10037 if test -d /usr/nec; then
10038 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10039 hardcode_shlibpath_var=no
10040 runpath_var=LD_RUN_PATH
10041 hardcode_runpath_var=yes
10042 ld_shlibs=yes
10043 fi
10044 ;;
10045
10046 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10047 no_undefined_flag='${wl}-z,text'
10048 archive_cmds_need_lc=no
10049 hardcode_shlibpath_var=no
10050 runpath_var='LD_RUN_PATH'
10051
10052 if test "$GCC" = yes; then
10053 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10054 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10055 else
10056 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10057 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10058 fi
10059 ;;
10060
10061 sysv5* | sco3.2v5* | sco5v6*)
10062 # Note: We can NOT use -z defs as we might desire, because we do not
10063 # link with -lc, and that would cause any symbols used from libc to
10064 # always be unresolved, which means just about no library would
10065 # ever link correctly. If we're not using GNU ld we use -z text
10066 # though, which does catch some bad symbols but isn't as heavy-handed
10067 # as -z defs.
10068 no_undefined_flag='${wl}-z,text'
10069 allow_undefined_flag='${wl}-z,nodefs'
10070 archive_cmds_need_lc=no
10071 hardcode_shlibpath_var=no
10072 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
10073 hardcode_libdir_separator=':'
10074 link_all_deplibs=yes
10075 export_dynamic_flag_spec='${wl}-Bexport'
10076 runpath_var='LD_RUN_PATH'
10077
10078 if test "$GCC" = yes; then
10079 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10080 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10081 else
10082 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10083 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10084 fi
10085 ;;
10086
10087 uts4*)
10088 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10089 hardcode_libdir_flag_spec='-L$libdir'
10090 hardcode_shlibpath_var=no
10091 ;;
10092
10093 *)
10094 ld_shlibs=no
10095 ;;
10096 esac
10097 fi
10098
10099{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10100echo "${ECHO_T}$ld_shlibs" >&6; }
10101test "$ld_shlibs" = no && can_build_shared=no
10102
10103#
10104# Do we need to explicitly link libc?
10105#
10106case "x$archive_cmds_need_lc" in
10107x|xyes)
10108 # Assume -lc should be added
10109 archive_cmds_need_lc=yes
10110
10111 if test "$enable_shared" = yes && test "$GCC" = yes; then
10112 case $archive_cmds in
10113 *'~'*)
10114 # FIXME: we may have to deal with multi-command sequences.
10115 ;;
10116 '$CC '*)
10117 # Test whether the compiler implicitly links with -lc since on some
10118 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10119 # to ld, don't add -lc before -lgcc.
10120 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10121echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
10122 $rm conftest*
10123 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10124
10125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10126 (eval $ac_compile) 2>&5
10127 ac_status=$?
10128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10129 (exit $ac_status); } 2>conftest.err; then
10130 soname=conftest
10131 lib=conftest
10132 libobjs=conftest.$ac_objext
10133 deplibs=
10134 wl=$lt_prog_compiler_wl
10135 pic_flag=$lt_prog_compiler_pic
10136 compiler_flags=-v
10137 linker_flags=-v
10138 verstring=
10139 output_objdir=.
10140 libname=conftest
10141 lt_save_allow_undefined_flag=$allow_undefined_flag
10142 allow_undefined_flag=
10143 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10144 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10145 ac_status=$?
10146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10147 (exit $ac_status); }
10148 then
10149 archive_cmds_need_lc=no
10150 else
10151 archive_cmds_need_lc=yes
10152 fi
10153 allow_undefined_flag=$lt_save_allow_undefined_flag
10154 else
10155 cat conftest.err 1>&5
10156 fi
10157 $rm conftest*
10158 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
10159echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
10160 ;;
10161 esac
10162 fi
10163 ;;
10164esac
10165
10166{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10167echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
10168library_names_spec=
10169libname_spec='lib$name'
10170soname_spec=
10171shrext_cmds=".so"
10172postinstall_cmds=
10173postuninstall_cmds=
10174finish_cmds=
10175finish_eval=
10176shlibpath_var=
10177shlibpath_overrides_runpath=unknown
10178version_type=none
10179dynamic_linker="$host_os ld.so"
10180sys_lib_dlsearch_path_spec="/lib /usr/lib"
10181
10182if test "$GCC" = yes; then
10183 case $host_os in
10184 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10185 *) lt_awk_arg="/^libraries:/" ;;
10186 esac
10187 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10188 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
10189 # if the path contains ";" then we assume it to be the separator
10190 # otherwise default to the standard path separator (i.e. ":") - it is
10191 # assumed that no part of a normal pathname contains ";" but that should
10192 # okay in the real world where ";" in dirpaths is itself problematic.
10193 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10194 else
10195 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10196 fi
10197 # Ok, now we have the path, separated by spaces, we can step through it
10198 # and add multilib dir if necessary.
10199 lt_tmp_lt_search_path_spec=
10200 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10201 for lt_sys_path in $lt_search_path_spec; do
10202 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10203 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10204 else
10205 test -d "$lt_sys_path" && \
10206 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10207 fi
10208 done
10209 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
10210BEGIN {RS=" "; FS="/|\n";} {
10211 lt_foo="";
10212 lt_count=0;
10213 for (lt_i = NF; lt_i > 0; lt_i--) {
10214 if ($lt_i != "" && $lt_i != ".") {
10215 if ($lt_i == "..") {
10216 lt_count++;
10217 } else {
10218 if (lt_count == 0) {
10219 lt_foo="/" $lt_i lt_foo;
10220 } else {
10221 lt_count--;
10222 }
10223 }
10224 }
10225 }
10226 if (lt_foo != "") { lt_freq[lt_foo]++; }
10227 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10228}'`
10229 sys_lib_search_path_spec=`echo $lt_search_path_spec`
10230else
10231 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10232fi
10233need_lib_prefix=unknown
10234hardcode_into_libs=no
10235
10236# when you set need_version to no, make sure it does not cause -set_version
10237# flags to be left without arguments
10238need_version=unknown
10239
10240case $host_os in
10241aix3*)
10242 version_type=linux
10243 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10244 shlibpath_var=LIBPATH
10245
10246 # AIX 3 has no versioning support, so we append a major version to the name.
10247 soname_spec='${libname}${release}${shared_ext}$major'
10248 ;;
10249
56efe974 10250aix[4-9]*)
b57f37fb
WP
10251 version_type=linux
10252 need_lib_prefix=no
10253 need_version=no
10254 hardcode_into_libs=yes
10255 if test "$host_cpu" = ia64; then
10256 # AIX 5 supports IA64
10257 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10258 shlibpath_var=LD_LIBRARY_PATH
10259 else
10260 # With GCC up to 2.95.x, collect2 would create an import file
10261 # for dependence libraries. The import file would start with
10262 # the line `#! .'. This would cause the generated library to
10263 # depend on `.', always an invalid library. This was fixed in
10264 # development snapshots of GCC prior to 3.0.
10265 case $host_os in
10266 aix4 | aix4.[01] | aix4.[01].*)
10267 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10268 echo ' yes '
10269 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10270 :
10271 else
10272 can_build_shared=no
10273 fi
10274 ;;
10275 esac
10276 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10277 # soname into executable. Probably we can add versioning support to
10278 # collect2, so additional links can be useful in future.
10279 if test "$aix_use_runtimelinking" = yes; then
10280 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10281 # instead of lib<name>.a to let people know that these are not
10282 # typical AIX shared libraries.
10283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10284 else
10285 # We preserve .a as extension for shared libraries through AIX4.2
10286 # and later when we are not doing run time linking.
10287 library_names_spec='${libname}${release}.a $libname.a'
10288 soname_spec='${libname}${release}${shared_ext}$major'
10289 fi
10290 shlibpath_var=LIBPATH
10291 fi
10292 ;;
10293
10294amigaos*)
10295 library_names_spec='$libname.ixlibrary $libname.a'
10296 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10297 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'
10298 ;;
10299
10300beos*)
10301 library_names_spec='${libname}${shared_ext}'
10302 dynamic_linker="$host_os ld.so"
10303 shlibpath_var=LIBRARY_PATH
10304 ;;
10305
10306bsdi[45]*)
10307 version_type=linux
10308 need_version=no
10309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10310 soname_spec='${libname}${release}${shared_ext}$major'
10311 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10312 shlibpath_var=LD_LIBRARY_PATH
10313 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10314 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10315 # the default ld.so.conf also contains /usr/contrib/lib and
10316 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10317 # libtool to hard-code these into programs
10318 ;;
10319
10320cygwin* | mingw* | pw32*)
10321 version_type=windows
10322 shrext_cmds=".dll"
10323 need_version=no
10324 need_lib_prefix=no
10325
10326 case $GCC,$host_os in
10327 yes,cygwin* | yes,mingw* | yes,pw32*)
10328 library_names_spec='$libname.dll.a'
10329 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10330 postinstall_cmds='base_file=`basename \${file}`~
10331 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10332 dldir=$destdir/`dirname \$dlpath`~
10333 test -d \$dldir || mkdir -p \$dldir~
10334 $install_prog $dir/$dlname \$dldir/$dlname~
10335 chmod a+x \$dldir/$dlname'
10336 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10337 dlpath=$dir/\$dldll~
10338 $rm \$dlpath'
10339 shlibpath_overrides_runpath=yes
10340
10341 case $host_os in
10342 cygwin*)
10343 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10344 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10345 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10346 ;;
10347 mingw*)
10348 # MinGW DLLs use traditional 'lib' prefix
10349 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10350 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10351 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10352 # It is most probably a Windows format PATH printed by
10353 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10354 # path with ; separators, and with drive letters. We can handle the
10355 # drive letters (cygwin fileutils understands them), so leave them,
10356 # especially as we might pass files found there to a mingw objdump,
10357 # which wouldn't understand a cygwinified path. Ahh.
10358 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10359 else
10360 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10361 fi
10362 ;;
10363 pw32*)
10364 # pw32 DLLs use 'pw' prefix rather than 'lib'
10365 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10366 ;;
10367 esac
10368 ;;
10369
10370 *)
10371 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10372 ;;
10373 esac
10374 dynamic_linker='Win32 ld.exe'
10375 # FIXME: first we should search . and the directory the executable is in
10376 shlibpath_var=PATH
10377 ;;
10378
10379darwin* | rhapsody*)
10380 dynamic_linker="$host_os dyld"
10381 version_type=darwin
10382 need_lib_prefix=no
10383 need_version=no
10384 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10385 soname_spec='${libname}${release}${major}$shared_ext'
10386 shlibpath_overrides_runpath=yes
10387 shlibpath_var=DYLD_LIBRARY_PATH
10388 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10389
10390 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10391 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10392 ;;
10393
10394dgux*)
10395 version_type=linux
10396 need_lib_prefix=no
10397 need_version=no
10398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10399 soname_spec='${libname}${release}${shared_ext}$major'
10400 shlibpath_var=LD_LIBRARY_PATH
10401 ;;
10402
10403freebsd1*)
10404 dynamic_linker=no
10405 ;;
10406
10407freebsd* | dragonfly*)
10408 # DragonFly does not have aout. When/if they implement a new
10409 # versioning mechanism, adjust this.
10410 if test -x /usr/bin/objformat; then
10411 objformat=`/usr/bin/objformat`
10412 else
10413 case $host_os in
10414 freebsd[123]*) objformat=aout ;;
10415 *) objformat=elf ;;
10416 esac
10417 fi
10418 version_type=freebsd-$objformat
10419 case $version_type in
10420 freebsd-elf*)
10421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10422 need_version=no
10423 need_lib_prefix=no
10424 ;;
10425 freebsd-*)
10426 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10427 need_version=yes
10428 ;;
10429 esac
10430 shlibpath_var=LD_LIBRARY_PATH
10431 case $host_os in
10432 freebsd2*)
10433 shlibpath_overrides_runpath=yes
10434 ;;
10435 freebsd3.[01]* | freebsdelf3.[01]*)
10436 shlibpath_overrides_runpath=yes
10437 hardcode_into_libs=yes
10438 ;;
10439 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10440 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10441 shlibpath_overrides_runpath=no
10442 hardcode_into_libs=yes
10443 ;;
10444 *) # from 4.6 on, and DragonFly
10445 shlibpath_overrides_runpath=yes
10446 hardcode_into_libs=yes
10447 ;;
10448 esac
10449 ;;
10450
10451gnu*)
10452 version_type=linux
10453 need_lib_prefix=no
10454 need_version=no
10455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10456 soname_spec='${libname}${release}${shared_ext}$major'
10457 shlibpath_var=LD_LIBRARY_PATH
10458 hardcode_into_libs=yes
10459 ;;
10460
10461hpux9* | hpux10* | hpux11*)
10462 # Give a soname corresponding to the major version so that dld.sl refuses to
10463 # link against other versions.
10464 version_type=sunos
10465 need_lib_prefix=no
10466 need_version=no
10467 case $host_cpu in
10468 ia64*)
10469 shrext_cmds='.so'
10470 hardcode_into_libs=yes
10471 dynamic_linker="$host_os dld.so"
10472 shlibpath_var=LD_LIBRARY_PATH
10473 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10475 soname_spec='${libname}${release}${shared_ext}$major'
10476 if test "X$HPUX_IA64_MODE" = X32; then
10477 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10478 else
10479 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10480 fi
10481 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10482 ;;
10483 hppa*64*)
10484 shrext_cmds='.sl'
10485 hardcode_into_libs=yes
10486 dynamic_linker="$host_os dld.sl"
10487 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10488 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10490 soname_spec='${libname}${release}${shared_ext}$major'
10491 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10492 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10493 ;;
10494 *)
10495 shrext_cmds='.sl'
10496 dynamic_linker="$host_os dld.sl"
10497 shlibpath_var=SHLIB_PATH
10498 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10500 soname_spec='${libname}${release}${shared_ext}$major'
10501 ;;
10502 esac
10503 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10504 postinstall_cmds='chmod 555 $lib'
10505 ;;
10506
10507interix[3-9]*)
10508 version_type=linux
10509 need_lib_prefix=no
10510 need_version=no
10511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10512 soname_spec='${libname}${release}${shared_ext}$major'
10513 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10514 shlibpath_var=LD_LIBRARY_PATH
10515 shlibpath_overrides_runpath=no
10516 hardcode_into_libs=yes
10517 ;;
10518
10519irix5* | irix6* | nonstopux*)
10520 case $host_os in
10521 nonstopux*) version_type=nonstopux ;;
10522 *)
10523 if test "$lt_cv_prog_gnu_ld" = yes; then
10524 version_type=linux
10525 else
10526 version_type=irix
10527 fi ;;
10528 esac
10529 need_lib_prefix=no
10530 need_version=no
10531 soname_spec='${libname}${release}${shared_ext}$major'
10532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10533 case $host_os in
10534 irix5* | nonstopux*)
10535 libsuff= shlibsuff=
10536 ;;
10537 *)
10538 case $LD in # libtool.m4 will add one of these switches to LD
10539 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10540 libsuff= shlibsuff= libmagic=32-bit;;
10541 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10542 libsuff=32 shlibsuff=N32 libmagic=N32;;
10543 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10544 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10545 *) libsuff= shlibsuff= libmagic=never-match;;
10546 esac
10547 ;;
10548 esac
10549 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10550 shlibpath_overrides_runpath=no
10551 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10552 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10553 hardcode_into_libs=yes
10554 ;;
10555
10556# No shared lib support for Linux oldld, aout, or coff.
10557linux*oldld* | linux*aout* | linux*coff*)
10558 dynamic_linker=no
10559 ;;
10560
10561# This must be Linux ELF.
10562linux* | k*bsd*-gnu)
10563 version_type=linux
10564 need_lib_prefix=no
10565 need_version=no
10566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10567 soname_spec='${libname}${release}${shared_ext}$major'
10568 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10569 shlibpath_var=LD_LIBRARY_PATH
10570 shlibpath_overrides_runpath=no
10571 # This implies no fast_install, which is unacceptable.
10572 # Some rework will be needed to allow for fast_install
10573 # before this can be enabled.
10574 hardcode_into_libs=yes
10575
10576 # Append ld.so.conf contents to the search path
10577 if test -f /etc/ld.so.conf; then
10578 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
10579 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10580 fi
10581
10582 # We used to test for /lib/ld.so.1 and disable shared libraries on
10583 # powerpc, because MkLinux only supported shared libraries with the
10584 # GNU dynamic linker. Since this was broken with cross compilers,
10585 # most powerpc-linux boxes support dynamic linking these days and
10586 # people can always --disable-shared, the test was removed, and we
10587 # assume the GNU/Linux dynamic linker is in use.
10588 dynamic_linker='GNU/Linux ld.so'
10589 ;;
10590
10591netbsdelf*-gnu)
10592 version_type=linux
10593 need_lib_prefix=no
10594 need_version=no
10595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10596 soname_spec='${libname}${release}${shared_ext}$major'
10597 shlibpath_var=LD_LIBRARY_PATH
10598 shlibpath_overrides_runpath=no
10599 hardcode_into_libs=yes
10600 dynamic_linker='NetBSD ld.elf_so'
10601 ;;
10602
10603netbsd*)
10604 version_type=sunos
10605 need_lib_prefix=no
10606 need_version=no
10607 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10609 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10610 dynamic_linker='NetBSD (a.out) ld.so'
10611 else
10612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10613 soname_spec='${libname}${release}${shared_ext}$major'
10614 dynamic_linker='NetBSD ld.elf_so'
10615 fi
10616 shlibpath_var=LD_LIBRARY_PATH
10617 shlibpath_overrides_runpath=yes
10618 hardcode_into_libs=yes
10619 ;;
10620
10621newsos6)
10622 version_type=linux
10623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10624 shlibpath_var=LD_LIBRARY_PATH
10625 shlibpath_overrides_runpath=yes
10626 ;;
10627
10628nto-qnx*)
10629 version_type=linux
10630 need_lib_prefix=no
10631 need_version=no
10632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10633 soname_spec='${libname}${release}${shared_ext}$major'
10634 shlibpath_var=LD_LIBRARY_PATH
10635 shlibpath_overrides_runpath=yes
10636 ;;
10637
10638openbsd*)
10639 version_type=sunos
10640 sys_lib_dlsearch_path_spec="/usr/lib"
10641 need_lib_prefix=no
10642 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10643 case $host_os in
10644 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10645 *) need_version=no ;;
10646 esac
10647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10648 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10649 shlibpath_var=LD_LIBRARY_PATH
10650 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10651 case $host_os in
10652 openbsd2.[89] | openbsd2.[89].*)
10653 shlibpath_overrides_runpath=no
10654 ;;
10655 *)
10656 shlibpath_overrides_runpath=yes
10657 ;;
10658 esac
10659 else
10660 shlibpath_overrides_runpath=yes
10661 fi
10662 ;;
10663
10664os2*)
10665 libname_spec='$name'
10666 shrext_cmds=".dll"
10667 need_lib_prefix=no
10668 library_names_spec='$libname${shared_ext} $libname.a'
10669 dynamic_linker='OS/2 ld.exe'
10670 shlibpath_var=LIBPATH
10671 ;;
10672
10673osf3* | osf4* | osf5*)
10674 version_type=osf
10675 need_lib_prefix=no
10676 need_version=no
10677 soname_spec='${libname}${release}${shared_ext}$major'
10678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10679 shlibpath_var=LD_LIBRARY_PATH
10680 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10681 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10682 ;;
10683
10684rdos*)
10685 dynamic_linker=no
10686 ;;
10687
10688solaris*)
10689 version_type=linux
10690 need_lib_prefix=no
10691 need_version=no
10692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10693 soname_spec='${libname}${release}${shared_ext}$major'
10694 shlibpath_var=LD_LIBRARY_PATH
10695 shlibpath_overrides_runpath=yes
10696 hardcode_into_libs=yes
10697 # ldd complains unless libraries are executable
10698 postinstall_cmds='chmod +x $lib'
10699 ;;
10700
10701sunos4*)
10702 version_type=sunos
10703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10704 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10705 shlibpath_var=LD_LIBRARY_PATH
10706 shlibpath_overrides_runpath=yes
10707 if test "$with_gnu_ld" = yes; then
10708 need_lib_prefix=no
10709 fi
10710 need_version=yes
10711 ;;
10712
10713sysv4 | sysv4.3*)
10714 version_type=linux
10715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10716 soname_spec='${libname}${release}${shared_ext}$major'
10717 shlibpath_var=LD_LIBRARY_PATH
10718 case $host_vendor in
10719 sni)
10720 shlibpath_overrides_runpath=no
10721 need_lib_prefix=no
10722 export_dynamic_flag_spec='${wl}-Blargedynsym'
10723 runpath_var=LD_RUN_PATH
10724 ;;
10725 siemens)
10726 need_lib_prefix=no
10727 ;;
10728 motorola)
10729 need_lib_prefix=no
10730 need_version=no
10731 shlibpath_overrides_runpath=no
10732 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10733 ;;
10734 esac
10735 ;;
10736
10737sysv4*MP*)
10738 if test -d /usr/nec ;then
10739 version_type=linux
10740 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10741 soname_spec='$libname${shared_ext}.$major'
10742 shlibpath_var=LD_LIBRARY_PATH
10743 fi
10744 ;;
10745
10746sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10747 version_type=freebsd-elf
10748 need_lib_prefix=no
10749 need_version=no
10750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10751 soname_spec='${libname}${release}${shared_ext}$major'
10752 shlibpath_var=LD_LIBRARY_PATH
10753 hardcode_into_libs=yes
10754 if test "$with_gnu_ld" = yes; then
10755 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10756 shlibpath_overrides_runpath=no
10757 else
10758 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10759 shlibpath_overrides_runpath=yes
10760 case $host_os in
10761 sco3.2v5*)
10762 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10763 ;;
10764 esac
10765 fi
10766 sys_lib_dlsearch_path_spec='/usr/lib'
10767 ;;
10768
10769uts4*)
10770 version_type=linux
10771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10772 soname_spec='${libname}${release}${shared_ext}$major'
10773 shlibpath_var=LD_LIBRARY_PATH
10774 ;;
10775
10776*)
10777 dynamic_linker=no
10778 ;;
10779esac
10780{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10781echo "${ECHO_T}$dynamic_linker" >&6; }
10782test "$dynamic_linker" = no && can_build_shared=no
10783
56efe974
WP
10784if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10785 echo $ECHO_N "(cached) $ECHO_C" >&6
10786else
10787 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
10788fi
10789
10790sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10791if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10792 echo $ECHO_N "(cached) $ECHO_C" >&6
10793else
10794 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
10795fi
10796
10797sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10798
b57f37fb
WP
10799variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10800if test "$GCC" = yes; then
10801 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10802fi
10803
10804{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10805echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
10806hardcode_action=
10807if test -n "$hardcode_libdir_flag_spec" || \
10808 test -n "$runpath_var" || \
10809 test "X$hardcode_automatic" = "Xyes" ; then
10810
10811 # We can hardcode non-existant directories.
10812 if test "$hardcode_direct" != no &&
10813 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10814 # have to relink, otherwise we might link with an installed library
10815 # when we should be linking with a yet-to-be-installed one
10816 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10817 test "$hardcode_minus_L" != no; then
10818 # Linking always hardcodes the temporary library directory.
10819 hardcode_action=relink
10820 else
10821 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10822 hardcode_action=immediate
10823 fi
10824else
10825 # We cannot hardcode anything, or else we can only hardcode existing
10826 # directories.
10827 hardcode_action=unsupported
10828fi
10829{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
10830echo "${ECHO_T}$hardcode_action" >&6; }
10831
10832if test "$hardcode_action" = relink; then
10833 # Fast installation is not supported
10834 enable_fast_install=no
10835elif test "$shlibpath_overrides_runpath" = yes ||
10836 test "$enable_shared" = no; then
10837 # Fast installation is not necessary
10838 enable_fast_install=needless
10839fi
10840
10841striplib=
10842old_striplib=
10843{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10844echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10845if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10846 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10847 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10848 { echo "$as_me:$LINENO: result: yes" >&5
10849echo "${ECHO_T}yes" >&6; }
10850else
10851# FIXME - insert some real tests, host_os isn't really good enough
10852 case $host_os in
10853 darwin*)
10854 if test -n "$STRIP" ; then
10855 striplib="$STRIP -x"
10856 old_striplib="$STRIP -S"
10857 { echo "$as_me:$LINENO: result: yes" >&5
10858echo "${ECHO_T}yes" >&6; }
10859 else
10860 { echo "$as_me:$LINENO: result: no" >&5
10861echo "${ECHO_T}no" >&6; }
10862fi
10863 ;;
10864 *)
10865 { echo "$as_me:$LINENO: result: no" >&5
10866echo "${ECHO_T}no" >&6; }
10867 ;;
10868 esac
10869fi
10870
10871if test "x$enable_dlopen" != xyes; then
10872 enable_dlopen=unknown
10873 enable_dlopen_self=unknown
10874 enable_dlopen_self_static=unknown
10875else
10876 lt_cv_dlopen=no
10877 lt_cv_dlopen_libs=
10878
10879 case $host_os in
10880 beos*)
10881 lt_cv_dlopen="load_add_on"
10882 lt_cv_dlopen_libs=
10883 lt_cv_dlopen_self=yes
10884 ;;
10885
10886 mingw* | pw32*)
10887 lt_cv_dlopen="LoadLibrary"
10888 lt_cv_dlopen_libs=
10889 ;;
10890
10891 cygwin*)
10892 lt_cv_dlopen="dlopen"
10893 lt_cv_dlopen_libs=
10894 ;;
10895
10896 darwin*)
10897 # if libdl is installed we need to link against it
10898 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10899echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10900if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10901 echo $ECHO_N "(cached) $ECHO_C" >&6
10902else
10903 ac_check_lib_save_LIBS=$LIBS
10904LIBS="-ldl $LIBS"
10905cat >conftest.$ac_ext <<_ACEOF
10906/* confdefs.h. */
10907_ACEOF
10908cat confdefs.h >>conftest.$ac_ext
10909cat >>conftest.$ac_ext <<_ACEOF
10910/* end confdefs.h. */
10911
10912/* Override any GCC internal prototype to avoid an error.
10913 Use char because int might match the return type of a GCC
10914 builtin and then its argument prototype would still apply. */
10915#ifdef __cplusplus
10916extern "C"
10917#endif
10918char dlopen ();
10919int
10920main ()
10921{
10922return dlopen ();
10923 ;
10924 return 0;
10925}
10926_ACEOF
10927rm -f conftest.$ac_objext conftest$ac_exeext
10928if { (ac_try="$ac_link"
10929case "(($ac_try" in
10930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10931 *) ac_try_echo=$ac_try;;
10932esac
10933eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10934 (eval "$ac_link") 2>conftest.er1
10935 ac_status=$?
10936 grep -v '^ *+' conftest.er1 >conftest.err
10937 rm -f conftest.er1
10938 cat conftest.err >&5
10939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10940 (exit $ac_status); } && {
10941 test -z "$ac_c_werror_flag" ||
10942 test ! -s conftest.err
10943 } && test -s conftest$ac_exeext &&
10944 $as_test_x conftest$ac_exeext; then
10945 ac_cv_lib_dl_dlopen=yes
10946else
10947 echo "$as_me: failed program was:" >&5
10948sed 's/^/| /' conftest.$ac_ext >&5
10949
10950 ac_cv_lib_dl_dlopen=no
10951fi
10952
10953rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10954 conftest$ac_exeext conftest.$ac_ext
10955LIBS=$ac_check_lib_save_LIBS
10956fi
10957{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10958echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10959if test $ac_cv_lib_dl_dlopen = yes; then
10960 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10961else
10962
10963 lt_cv_dlopen="dyld"
10964 lt_cv_dlopen_libs=
10965 lt_cv_dlopen_self=yes
10966
10967fi
10968
10969 ;;
10970
10971 *)
10972 { echo "$as_me:$LINENO: checking for shl_load" >&5
10973echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10974if test "${ac_cv_func_shl_load+set}" = set; then
10975 echo $ECHO_N "(cached) $ECHO_C" >&6
10976else
10977 cat >conftest.$ac_ext <<_ACEOF
10978/* confdefs.h. */
10979_ACEOF
10980cat confdefs.h >>conftest.$ac_ext
10981cat >>conftest.$ac_ext <<_ACEOF
10982/* end confdefs.h. */
10983/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10984 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10985#define shl_load innocuous_shl_load
10986
10987/* System header to define __stub macros and hopefully few prototypes,
10988 which can conflict with char shl_load (); below.
10989 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10990 <limits.h> exists even on freestanding compilers. */
10991
10992#ifdef __STDC__
10993# include <limits.h>
10994#else
10995# include <assert.h>
10996#endif
10997
10998#undef shl_load
10999
11000/* Override any GCC internal prototype to avoid an error.
11001 Use char because int might match the return type of a GCC
11002 builtin and then its argument prototype would still apply. */
11003#ifdef __cplusplus
11004extern "C"
11005#endif
11006char shl_load ();
11007/* The GNU C library defines this for functions which it implements
11008 to always fail with ENOSYS. Some functions are actually named
11009 something starting with __ and the normal name is an alias. */
11010#if defined __stub_shl_load || defined __stub___shl_load
11011choke me
11012#endif
11013
11014int
11015main ()
11016{
11017return shl_load ();
11018 ;
11019 return 0;
11020}
11021_ACEOF
11022rm -f conftest.$ac_objext conftest$ac_exeext
11023if { (ac_try="$ac_link"
11024case "(($ac_try" in
11025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11026 *) ac_try_echo=$ac_try;;
11027esac
11028eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11029 (eval "$ac_link") 2>conftest.er1
11030 ac_status=$?
11031 grep -v '^ *+' conftest.er1 >conftest.err
11032 rm -f conftest.er1
11033 cat conftest.err >&5
11034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11035 (exit $ac_status); } && {
11036 test -z "$ac_c_werror_flag" ||
11037 test ! -s conftest.err
11038 } && test -s conftest$ac_exeext &&
11039 $as_test_x conftest$ac_exeext; then
11040 ac_cv_func_shl_load=yes
11041else
11042 echo "$as_me: failed program was:" >&5
11043sed 's/^/| /' conftest.$ac_ext >&5
11044
11045 ac_cv_func_shl_load=no
11046fi
11047
11048rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11049 conftest$ac_exeext conftest.$ac_ext
11050fi
11051{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11052echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
11053if test $ac_cv_func_shl_load = yes; then
11054 lt_cv_dlopen="shl_load"
11055else
11056 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11057echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
11058if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11059 echo $ECHO_N "(cached) $ECHO_C" >&6
11060else
11061 ac_check_lib_save_LIBS=$LIBS
11062LIBS="-ldld $LIBS"
11063cat >conftest.$ac_ext <<_ACEOF
11064/* confdefs.h. */
11065_ACEOF
11066cat confdefs.h >>conftest.$ac_ext
11067cat >>conftest.$ac_ext <<_ACEOF
11068/* end confdefs.h. */
11069
11070/* Override any GCC internal prototype to avoid an error.
11071 Use char because int might match the return type of a GCC
11072 builtin and then its argument prototype would still apply. */
11073#ifdef __cplusplus
11074extern "C"
11075#endif
11076char shl_load ();
11077int
11078main ()
11079{
11080return shl_load ();
11081 ;
11082 return 0;
11083}
11084_ACEOF
11085rm -f conftest.$ac_objext conftest$ac_exeext
11086if { (ac_try="$ac_link"
11087case "(($ac_try" in
11088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11089 *) ac_try_echo=$ac_try;;
11090esac
11091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11092 (eval "$ac_link") 2>conftest.er1
11093 ac_status=$?
11094 grep -v '^ *+' conftest.er1 >conftest.err
11095 rm -f conftest.er1
11096 cat conftest.err >&5
11097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11098 (exit $ac_status); } && {
11099 test -z "$ac_c_werror_flag" ||
11100 test ! -s conftest.err
11101 } && test -s conftest$ac_exeext &&
11102 $as_test_x conftest$ac_exeext; then
11103 ac_cv_lib_dld_shl_load=yes
11104else
11105 echo "$as_me: failed program was:" >&5
11106sed 's/^/| /' conftest.$ac_ext >&5
11107
11108 ac_cv_lib_dld_shl_load=no
11109fi
11110
11111rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11112 conftest$ac_exeext conftest.$ac_ext
11113LIBS=$ac_check_lib_save_LIBS
11114fi
11115{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11116echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
11117if test $ac_cv_lib_dld_shl_load = yes; then
56efe974 11118 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
b57f37fb
WP
11119else
11120 { echo "$as_me:$LINENO: checking for dlopen" >&5
11121echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
11122if test "${ac_cv_func_dlopen+set}" = set; then
11123 echo $ECHO_N "(cached) $ECHO_C" >&6
11124else
11125 cat >conftest.$ac_ext <<_ACEOF
11126/* confdefs.h. */
11127_ACEOF
11128cat confdefs.h >>conftest.$ac_ext
11129cat >>conftest.$ac_ext <<_ACEOF
11130/* end confdefs.h. */
11131/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11132 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11133#define dlopen innocuous_dlopen
11134
11135/* System header to define __stub macros and hopefully few prototypes,
11136 which can conflict with char dlopen (); below.
11137 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11138 <limits.h> exists even on freestanding compilers. */
11139
11140#ifdef __STDC__
11141# include <limits.h>
11142#else
11143# include <assert.h>
11144#endif
11145
11146#undef dlopen
11147
11148/* Override any GCC internal prototype to avoid an error.
11149 Use char because int might match the return type of a GCC
11150 builtin and then its argument prototype would still apply. */
11151#ifdef __cplusplus
11152extern "C"
11153#endif
11154char dlopen ();
11155/* The GNU C library defines this for functions which it implements
11156 to always fail with ENOSYS. Some functions are actually named
11157 something starting with __ and the normal name is an alias. */
11158#if defined __stub_dlopen || defined __stub___dlopen
11159choke me
11160#endif
11161
11162int
11163main ()
11164{
11165return dlopen ();
11166 ;
11167 return 0;
11168}
11169_ACEOF
11170rm -f conftest.$ac_objext conftest$ac_exeext
11171if { (ac_try="$ac_link"
11172case "(($ac_try" in
11173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11174 *) ac_try_echo=$ac_try;;
11175esac
11176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11177 (eval "$ac_link") 2>conftest.er1
11178 ac_status=$?
11179 grep -v '^ *+' conftest.er1 >conftest.err
11180 rm -f conftest.er1
11181 cat conftest.err >&5
11182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11183 (exit $ac_status); } && {
11184 test -z "$ac_c_werror_flag" ||
11185 test ! -s conftest.err
11186 } && test -s conftest$ac_exeext &&
11187 $as_test_x conftest$ac_exeext; then
11188 ac_cv_func_dlopen=yes
11189else
11190 echo "$as_me: failed program was:" >&5
11191sed 's/^/| /' conftest.$ac_ext >&5
11192
11193 ac_cv_func_dlopen=no
11194fi
11195
11196rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11197 conftest$ac_exeext conftest.$ac_ext
11198fi
11199{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11200echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
11201if test $ac_cv_func_dlopen = yes; then
11202 lt_cv_dlopen="dlopen"
11203else
11204 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11205echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
11206if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11207 echo $ECHO_N "(cached) $ECHO_C" >&6
11208else
11209 ac_check_lib_save_LIBS=$LIBS
11210LIBS="-ldl $LIBS"
11211cat >conftest.$ac_ext <<_ACEOF
11212/* confdefs.h. */
11213_ACEOF
11214cat confdefs.h >>conftest.$ac_ext
11215cat >>conftest.$ac_ext <<_ACEOF
11216/* end confdefs.h. */
11217
11218/* Override any GCC internal prototype to avoid an error.
11219 Use char because int might match the return type of a GCC
11220 builtin and then its argument prototype would still apply. */
11221#ifdef __cplusplus
11222extern "C"
11223#endif
11224char dlopen ();
11225int
11226main ()
11227{
11228return dlopen ();
11229 ;
11230 return 0;
11231}
11232_ACEOF
11233rm -f conftest.$ac_objext conftest$ac_exeext
11234if { (ac_try="$ac_link"
11235case "(($ac_try" in
11236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11237 *) ac_try_echo=$ac_try;;
11238esac
11239eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11240 (eval "$ac_link") 2>conftest.er1
11241 ac_status=$?
11242 grep -v '^ *+' conftest.er1 >conftest.err
11243 rm -f conftest.er1
11244 cat conftest.err >&5
11245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11246 (exit $ac_status); } && {
11247 test -z "$ac_c_werror_flag" ||
11248 test ! -s conftest.err
11249 } && test -s conftest$ac_exeext &&
11250 $as_test_x conftest$ac_exeext; then
11251 ac_cv_lib_dl_dlopen=yes
11252else
11253 echo "$as_me: failed program was:" >&5
11254sed 's/^/| /' conftest.$ac_ext >&5
11255
11256 ac_cv_lib_dl_dlopen=no
11257fi
11258
11259rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11260 conftest$ac_exeext conftest.$ac_ext
11261LIBS=$ac_check_lib_save_LIBS
11262fi
11263{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11264echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11265if test $ac_cv_lib_dl_dlopen = yes; then
11266 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11267else
11268 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11269echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
11270if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11271 echo $ECHO_N "(cached) $ECHO_C" >&6
11272else
11273 ac_check_lib_save_LIBS=$LIBS
11274LIBS="-lsvld $LIBS"
11275cat >conftest.$ac_ext <<_ACEOF
11276/* confdefs.h. */
11277_ACEOF
11278cat confdefs.h >>conftest.$ac_ext
11279cat >>conftest.$ac_ext <<_ACEOF
11280/* end confdefs.h. */
11281
11282/* Override any GCC internal prototype to avoid an error.
11283 Use char because int might match the return type of a GCC
11284 builtin and then its argument prototype would still apply. */
11285#ifdef __cplusplus
11286extern "C"
11287#endif
11288char dlopen ();
11289int
11290main ()
11291{
11292return dlopen ();
11293 ;
11294 return 0;
11295}
11296_ACEOF
11297rm -f conftest.$ac_objext conftest$ac_exeext
11298if { (ac_try="$ac_link"
11299case "(($ac_try" in
11300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11301 *) ac_try_echo=$ac_try;;
11302esac
11303eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11304 (eval "$ac_link") 2>conftest.er1
11305 ac_status=$?
11306 grep -v '^ *+' conftest.er1 >conftest.err
11307 rm -f conftest.er1
11308 cat conftest.err >&5
11309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11310 (exit $ac_status); } && {
11311 test -z "$ac_c_werror_flag" ||
11312 test ! -s conftest.err
11313 } && test -s conftest$ac_exeext &&
11314 $as_test_x conftest$ac_exeext; then
11315 ac_cv_lib_svld_dlopen=yes
11316else
11317 echo "$as_me: failed program was:" >&5
11318sed 's/^/| /' conftest.$ac_ext >&5
11319
11320 ac_cv_lib_svld_dlopen=no
11321fi
11322
11323rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11324 conftest$ac_exeext conftest.$ac_ext
11325LIBS=$ac_check_lib_save_LIBS
11326fi
11327{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11328echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
11329if test $ac_cv_lib_svld_dlopen = yes; then
11330 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11331else
11332 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11333echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
11334if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11335 echo $ECHO_N "(cached) $ECHO_C" >&6
11336else
11337 ac_check_lib_save_LIBS=$LIBS
11338LIBS="-ldld $LIBS"
11339cat >conftest.$ac_ext <<_ACEOF
11340/* confdefs.h. */
11341_ACEOF
11342cat confdefs.h >>conftest.$ac_ext
11343cat >>conftest.$ac_ext <<_ACEOF
11344/* end confdefs.h. */
11345
11346/* Override any GCC internal prototype to avoid an error.
11347 Use char because int might match the return type of a GCC
11348 builtin and then its argument prototype would still apply. */
11349#ifdef __cplusplus
11350extern "C"
11351#endif
11352char dld_link ();
11353int
11354main ()
11355{
11356return dld_link ();
11357 ;
11358 return 0;
11359}
11360_ACEOF
11361rm -f conftest.$ac_objext conftest$ac_exeext
11362if { (ac_try="$ac_link"
11363case "(($ac_try" in
11364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11365 *) ac_try_echo=$ac_try;;
11366esac
11367eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11368 (eval "$ac_link") 2>conftest.er1
11369 ac_status=$?
11370 grep -v '^ *+' conftest.er1 >conftest.err
11371 rm -f conftest.er1
11372 cat conftest.err >&5
11373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11374 (exit $ac_status); } && {
11375 test -z "$ac_c_werror_flag" ||
11376 test ! -s conftest.err
11377 } && test -s conftest$ac_exeext &&
11378 $as_test_x conftest$ac_exeext; then
11379 ac_cv_lib_dld_dld_link=yes
11380else
11381 echo "$as_me: failed program was:" >&5
11382sed 's/^/| /' conftest.$ac_ext >&5
11383
11384 ac_cv_lib_dld_dld_link=no
11385fi
11386
11387rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11388 conftest$ac_exeext conftest.$ac_ext
11389LIBS=$ac_check_lib_save_LIBS
11390fi
11391{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11392echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11393if test $ac_cv_lib_dld_dld_link = yes; then
56efe974 11394 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
b57f37fb
WP
11395fi
11396
11397
11398fi
11399
11400
11401fi
11402
11403
11404fi
11405
11406
11407fi
11408
11409
11410fi
11411
11412 ;;
11413 esac
11414
11415 if test "x$lt_cv_dlopen" != xno; then
11416 enable_dlopen=yes
11417 else
11418 enable_dlopen=no
11419 fi
11420
11421 case $lt_cv_dlopen in
11422 dlopen)
11423 save_CPPFLAGS="$CPPFLAGS"
11424 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11425
11426 save_LDFLAGS="$LDFLAGS"
11427 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11428
11429 save_LIBS="$LIBS"
11430 LIBS="$lt_cv_dlopen_libs $LIBS"
11431
11432 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11433echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
11434if test "${lt_cv_dlopen_self+set}" = set; then
11435 echo $ECHO_N "(cached) $ECHO_C" >&6
11436else
11437 if test "$cross_compiling" = yes; then :
11438 lt_cv_dlopen_self=cross
11439else
11440 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11441 lt_status=$lt_dlunknown
11442 cat > conftest.$ac_ext <<EOF
dd910409 11443#line 11443 "configure"
b57f37fb
WP
11444#include "confdefs.h"
11445
11446#if HAVE_DLFCN_H
11447#include <dlfcn.h>
11448#endif
11449
11450#include <stdio.h>
11451
11452#ifdef RTLD_GLOBAL
11453# define LT_DLGLOBAL RTLD_GLOBAL
11454#else
11455# ifdef DL_GLOBAL
11456# define LT_DLGLOBAL DL_GLOBAL
11457# else
11458# define LT_DLGLOBAL 0
11459# endif
11460#endif
11461
11462/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11463 find out it does not work in some platform. */
11464#ifndef LT_DLLAZY_OR_NOW
11465# ifdef RTLD_LAZY
11466# define LT_DLLAZY_OR_NOW RTLD_LAZY
11467# else
11468# ifdef DL_LAZY
11469# define LT_DLLAZY_OR_NOW DL_LAZY
11470# else
11471# ifdef RTLD_NOW
11472# define LT_DLLAZY_OR_NOW RTLD_NOW
11473# else
11474# ifdef DL_NOW
11475# define LT_DLLAZY_OR_NOW DL_NOW
11476# else
11477# define LT_DLLAZY_OR_NOW 0
11478# endif
11479# endif
11480# endif
11481# endif
11482#endif
11483
11484#ifdef __cplusplus
11485extern "C" void exit (int);
11486#endif
11487
11488void fnord() { int i=42;}
11489int main ()
11490{
11491 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11492 int status = $lt_dlunknown;
11493
11494 if (self)
11495 {
11496 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11497 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11498 /* dlclose (self); */
11499 }
11500 else
11501 puts (dlerror ());
11502
11503 exit (status);
11504}
11505EOF
11506 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11507 (eval $ac_link) 2>&5
11508 ac_status=$?
11509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11510 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11511 (./conftest; exit; ) >&5 2>/dev/null
11512 lt_status=$?
11513 case x$lt_status in
11514 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11515 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11516 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11517 esac
11518 else :
11519 # compilation failed
11520 lt_cv_dlopen_self=no
11521 fi
11522fi
11523rm -fr conftest*
11524
11525
11526fi
11527{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11528echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
11529
11530 if test "x$lt_cv_dlopen_self" = xyes; then
11531 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11532 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11533echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
11534if test "${lt_cv_dlopen_self_static+set}" = set; then
11535 echo $ECHO_N "(cached) $ECHO_C" >&6
11536else
11537 if test "$cross_compiling" = yes; then :
11538 lt_cv_dlopen_self_static=cross
11539else
11540 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11541 lt_status=$lt_dlunknown
11542 cat > conftest.$ac_ext <<EOF
dd910409 11543#line 11543 "configure"
b57f37fb
WP
11544#include "confdefs.h"
11545
11546#if HAVE_DLFCN_H
11547#include <dlfcn.h>
11548#endif
11549
11550#include <stdio.h>
11551
11552#ifdef RTLD_GLOBAL
11553# define LT_DLGLOBAL RTLD_GLOBAL
11554#else
11555# ifdef DL_GLOBAL
11556# define LT_DLGLOBAL DL_GLOBAL
11557# else
11558# define LT_DLGLOBAL 0
11559# endif
11560#endif
11561
11562/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11563 find out it does not work in some platform. */
11564#ifndef LT_DLLAZY_OR_NOW
11565# ifdef RTLD_LAZY
11566# define LT_DLLAZY_OR_NOW RTLD_LAZY
11567# else
11568# ifdef DL_LAZY
11569# define LT_DLLAZY_OR_NOW DL_LAZY
11570# else
11571# ifdef RTLD_NOW
11572# define LT_DLLAZY_OR_NOW RTLD_NOW
11573# else
11574# ifdef DL_NOW
11575# define LT_DLLAZY_OR_NOW DL_NOW
11576# else
11577# define LT_DLLAZY_OR_NOW 0
11578# endif
11579# endif
11580# endif
11581# endif
11582#endif
11583
11584#ifdef __cplusplus
11585extern "C" void exit (int);
11586#endif
11587
11588void fnord() { int i=42;}
11589int main ()
11590{
11591 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11592 int status = $lt_dlunknown;
11593
11594 if (self)
11595 {
11596 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11597 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11598 /* dlclose (self); */
11599 }
11600 else
11601 puts (dlerror ());
11602
11603 exit (status);
11604}
11605EOF
11606 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11607 (eval $ac_link) 2>&5
11608 ac_status=$?
11609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11610 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11611 (./conftest; exit; ) >&5 2>/dev/null
11612 lt_status=$?
11613 case x$lt_status in
11614 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11615 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11616 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11617 esac
11618 else :
11619 # compilation failed
11620 lt_cv_dlopen_self_static=no
11621 fi
11622fi
11623rm -fr conftest*
11624
11625
11626fi
11627{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11628echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
11629 fi
11630
11631 CPPFLAGS="$save_CPPFLAGS"
11632 LDFLAGS="$save_LDFLAGS"
11633 LIBS="$save_LIBS"
11634 ;;
11635 esac
11636
11637 case $lt_cv_dlopen_self in
11638 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11639 *) enable_dlopen_self=unknown ;;
11640 esac
11641
11642 case $lt_cv_dlopen_self_static in
11643 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11644 *) enable_dlopen_self_static=unknown ;;
11645 esac
11646fi
11647
11648
11649# Report which library types will actually be built
11650{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11651echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
11652{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
11653echo "${ECHO_T}$can_build_shared" >&6; }
11654
11655{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11656echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
11657test "$can_build_shared" = "no" && enable_shared=no
11658
11659# On AIX, shared libraries and static libraries use the same namespace, and
11660# are all built from PIC.
11661case $host_os in
11662aix3*)
11663 test "$enable_shared" = yes && enable_static=no
11664 if test -n "$RANLIB"; then
11665 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11666 postinstall_cmds='$RANLIB $lib'
11667 fi
11668 ;;
11669
56efe974 11670aix[4-9]*)
b57f37fb
WP
11671 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11672 test "$enable_shared" = yes && enable_static=no
11673 fi
11674 ;;
11675esac
11676{ echo "$as_me:$LINENO: result: $enable_shared" >&5
11677echo "${ECHO_T}$enable_shared" >&6; }
11678
11679{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11680echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
11681# Make sure either enable_shared or enable_static is yes.
11682test "$enable_shared" = yes || enable_static=yes
11683{ echo "$as_me:$LINENO: result: $enable_static" >&5
11684echo "${ECHO_T}$enable_static" >&6; }
11685
11686# The else clause should only fire when bootstrapping the
11687# libtool distribution, otherwise you forgot to ship ltmain.sh
11688# with your package, and you will get complaints that there are
11689# no rules to generate ltmain.sh.
11690if test -f "$ltmain"; then
11691 # See if we are running on zsh, and set the options which allow our commands through
11692 # without removal of \ escapes.
11693 if test -n "${ZSH_VERSION+set}" ; then
11694 setopt NO_GLOB_SUBST
11695 fi
11696 # Now quote all the things that may contain metacharacters while being
11697 # careful not to overquote the AC_SUBSTed values. We take copies of the
11698 # variables and quote the copies for generation of the libtool script.
11699 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
11700 SED SHELL STRIP \
11701 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11702 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11703 deplibs_check_method reload_flag reload_cmds need_locks \
11704 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11705 lt_cv_sys_global_symbol_to_c_name_address \
11706 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11707 old_postinstall_cmds old_postuninstall_cmds \
11708 compiler \
11709 CC \
11710 LD \
11711 lt_prog_compiler_wl \
11712 lt_prog_compiler_pic \
11713 lt_prog_compiler_static \
11714 lt_prog_compiler_no_builtin_flag \
11715 export_dynamic_flag_spec \
11716 thread_safe_flag_spec \
11717 whole_archive_flag_spec \
11718 enable_shared_with_static_runtimes \
11719 old_archive_cmds \
11720 old_archive_from_new_cmds \
11721 predep_objects \
11722 postdep_objects \
11723 predeps \
11724 postdeps \
11725 compiler_lib_search_path \
56efe974 11726 compiler_lib_search_dirs \
b57f37fb
WP
11727 archive_cmds \
11728 archive_expsym_cmds \
11729 postinstall_cmds \
11730 postuninstall_cmds \
11731 old_archive_from_expsyms_cmds \
11732 allow_undefined_flag \
11733 no_undefined_flag \
11734 export_symbols_cmds \
11735 hardcode_libdir_flag_spec \
11736 hardcode_libdir_flag_spec_ld \
11737 hardcode_libdir_separator \
11738 hardcode_automatic \
11739 module_cmds \
11740 module_expsym_cmds \
11741 lt_cv_prog_compiler_c_o \
11742 fix_srcfile_path \
11743 exclude_expsyms \
11744 include_expsyms; do
11745
11746 case $var in
11747 old_archive_cmds | \
11748 old_archive_from_new_cmds | \
11749 archive_cmds | \
11750 archive_expsym_cmds | \
11751 module_cmds | \
11752 module_expsym_cmds | \
11753 old_archive_from_expsyms_cmds | \
11754 export_symbols_cmds | \
11755 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11756 postinstall_cmds | postuninstall_cmds | \
11757 old_postinstall_cmds | old_postuninstall_cmds | \
11758 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11759 # Double-quote double-evaled strings.
11760 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11761 ;;
11762 *)
11763 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11764 ;;
11765 esac
11766 done
11767
11768 case $lt_echo in
11769 *'\$0 --fallback-echo"')
11770 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11771 ;;
11772 esac
11773
11774cfgfile="${ofile}T"
11775 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11776 $rm -f "$cfgfile"
11777 { echo "$as_me:$LINENO: creating $ofile" >&5
11778echo "$as_me: creating $ofile" >&6;}
11779
11780 cat <<__EOF__ >> "$cfgfile"
11781#! $SHELL
11782
11783# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11784# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11785# NOTE: Changes made to this file will be lost: look at ltmain.sh.
11786#
56efe974 11787# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
b57f37fb
WP
11788# Free Software Foundation, Inc.
11789#
11790# This file is part of GNU Libtool:
11791# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11792#
11793# This program is free software; you can redistribute it and/or modify
11794# it under the terms of the GNU General Public License as published by
11795# the Free Software Foundation; either version 2 of the License, or
11796# (at your option) any later version.
11797#
11798# This program is distributed in the hope that it will be useful, but
11799# WITHOUT ANY WARRANTY; without even the implied warranty of
11800# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11801# General Public License for more details.
11802#
11803# You should have received a copy of the GNU General Public License
11804# along with this program; if not, write to the Free Software
11805# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11806#
11807# As a special exception to the GNU General Public License, if you
11808# distribute this file as part of a program that contains a
11809# configuration script generated by Autoconf, you may include it under
11810# the same distribution terms that you use for the rest of that program.
11811
11812# A sed program that does not truncate output.
11813SED=$lt_SED
11814
11815# Sed that helps us avoid accidentally triggering echo(1) options like -n.
11816Xsed="$SED -e 1s/^X//"
11817
11818# The HP-UX ksh and POSIX shell print the target directory to stdout
11819# if CDPATH is set.
11820(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11821
11822# The names of the tagged configurations supported by this script.
11823available_tags=
11824
11825# ### BEGIN LIBTOOL CONFIG
11826
11827# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11828
11829# Shell to use when invoking shell scripts.
11830SHELL=$lt_SHELL
11831
11832# Whether or not to build shared libraries.
11833build_libtool_libs=$enable_shared
11834
11835# Whether or not to build static libraries.
11836build_old_libs=$enable_static
11837
11838# Whether or not to add -lc for building shared libraries.
11839build_libtool_need_lc=$archive_cmds_need_lc
11840
11841# Whether or not to disallow shared libs when runtime libs are static
11842allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11843
11844# Whether or not to optimize for fast installation.
11845fast_install=$enable_fast_install
11846
11847# The host system.
11848host_alias=$host_alias
11849host=$host
11850host_os=$host_os
11851
11852# The build system.
11853build_alias=$build_alias
11854build=$build
11855build_os=$build_os
11856
11857# An echo program that does not interpret backslashes.
11858echo=$lt_echo
11859
11860# The archiver.
11861AR=$lt_AR
11862AR_FLAGS=$lt_AR_FLAGS
11863
11864# A C compiler.
11865LTCC=$lt_LTCC
11866
11867# LTCC compiler flags.
11868LTCFLAGS=$lt_LTCFLAGS
11869
11870# A language-specific compiler.
11871CC=$lt_compiler
11872
11873# Is the compiler the GNU C compiler?
11874with_gcc=$GCC
11875
11876# An ERE matcher.
11877EGREP=$lt_EGREP
11878
11879# The linker used to build libraries.
11880LD=$lt_LD
11881
11882# Whether we need hard or soft links.
11883LN_S=$lt_LN_S
11884
11885# A BSD-compatible nm program.
11886NM=$lt_NM
11887
11888# A symbol stripping program
11889STRIP=$lt_STRIP
11890
11891# Used to examine libraries when file_magic_cmd begins "file"
11892MAGIC_CMD=$MAGIC_CMD
11893
11894# Used on cygwin: DLL creation program.
11895DLLTOOL="$DLLTOOL"
11896
11897# Used on cygwin: object dumper.
11898OBJDUMP="$OBJDUMP"
11899
11900# Used on cygwin: assembler.
11901AS="$AS"
11902
11903# The name of the directory that contains temporary libtool files.
11904objdir=$objdir
11905
11906# How to create reloadable object files.
11907reload_flag=$lt_reload_flag
11908reload_cmds=$lt_reload_cmds
11909
11910# How to pass a linker flag through the compiler.
11911wl=$lt_lt_prog_compiler_wl
11912
11913# Object file suffix (normally "o").
11914objext="$ac_objext"
11915
11916# Old archive suffix (normally "a").
11917libext="$libext"
11918
11919# Shared library suffix (normally ".so").
11920shrext_cmds='$shrext_cmds'
11921
11922# Executable file suffix (normally "").
11923exeext="$exeext"
11924
11925# Additional compiler flags for building library objects.
11926pic_flag=$lt_lt_prog_compiler_pic
11927pic_mode=$pic_mode
11928
11929# What is the maximum length of a command?
11930max_cmd_len=$lt_cv_sys_max_cmd_len
11931
11932# Does compiler simultaneously support -c and -o options?
11933compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11934
11935# Must we lock files when doing compilation?
11936need_locks=$lt_need_locks
11937
11938# Do we need the lib prefix for modules?
11939need_lib_prefix=$need_lib_prefix
11940
11941# Do we need a version for libraries?
11942need_version=$need_version
11943
11944# Whether dlopen is supported.
11945dlopen_support=$enable_dlopen
11946
11947# Whether dlopen of programs is supported.
11948dlopen_self=$enable_dlopen_self
11949
11950# Whether dlopen of statically linked programs is supported.
11951dlopen_self_static=$enable_dlopen_self_static
11952
11953# Compiler flag to prevent dynamic linking.
11954link_static_flag=$lt_lt_prog_compiler_static
11955
11956# Compiler flag to turn off builtin functions.
11957no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11958
11959# Compiler flag to allow reflexive dlopens.
11960export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11961
11962# Compiler flag to generate shared objects directly from archives.
11963whole_archive_flag_spec=$lt_whole_archive_flag_spec
11964
11965# Compiler flag to generate thread-safe objects.
11966thread_safe_flag_spec=$lt_thread_safe_flag_spec
11967
11968# Library versioning type.
11969version_type=$version_type
11970
11971# Format of library name prefix.
11972libname_spec=$lt_libname_spec
11973
11974# List of archive names. First name is the real one, the rest are links.
11975# The last name is the one that the linker finds with -lNAME.
11976library_names_spec=$lt_library_names_spec
11977
11978# The coded name of the library, if different from the real name.
11979soname_spec=$lt_soname_spec
11980
11981# Commands used to build and install an old-style archive.
11982RANLIB=$lt_RANLIB
11983old_archive_cmds=$lt_old_archive_cmds
11984old_postinstall_cmds=$lt_old_postinstall_cmds
11985old_postuninstall_cmds=$lt_old_postuninstall_cmds
11986
11987# Create an old-style archive from a shared archive.
11988old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11989
11990# Create a temporary old-style archive to link instead of a shared archive.
11991old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11992
11993# Commands used to build and install a shared archive.
11994archive_cmds=$lt_archive_cmds
11995archive_expsym_cmds=$lt_archive_expsym_cmds
11996postinstall_cmds=$lt_postinstall_cmds
11997postuninstall_cmds=$lt_postuninstall_cmds
11998
11999# Commands used to build a loadable module (assumed same as above if empty)
12000module_cmds=$lt_module_cmds
12001module_expsym_cmds=$lt_module_expsym_cmds
12002
12003# Commands to strip libraries.
12004old_striplib=$lt_old_striplib
12005striplib=$lt_striplib
12006
12007# Dependencies to place before the objects being linked to create a
12008# shared library.
12009predep_objects=$lt_predep_objects
12010
12011# Dependencies to place after the objects being linked to create a
12012# shared library.
12013postdep_objects=$lt_postdep_objects
12014
12015# Dependencies to place before the objects being linked to create a
12016# shared library.
12017predeps=$lt_predeps
12018
12019# Dependencies to place after the objects being linked to create a
12020# shared library.
12021postdeps=$lt_postdeps
12022
56efe974
WP
12023# The directories searched by this compiler when creating a shared
12024# library
12025compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
12026
b57f37fb
WP
12027# The library search path used internally by the compiler when linking
12028# a shared library.
12029compiler_lib_search_path=$lt_compiler_lib_search_path
12030
12031# Method to check whether dependent libraries are shared objects.
12032deplibs_check_method=$lt_deplibs_check_method
12033
12034# Command to use when deplibs_check_method == file_magic.
12035file_magic_cmd=$lt_file_magic_cmd
12036
12037# Flag that allows shared libraries with undefined symbols to be built.
12038allow_undefined_flag=$lt_allow_undefined_flag
12039
12040# Flag that forces no undefined symbols.
12041no_undefined_flag=$lt_no_undefined_flag
12042
12043# Commands used to finish a libtool library installation in a directory.
12044finish_cmds=$lt_finish_cmds
12045
12046# Same as above, but a single script fragment to be evaled but not shown.
12047finish_eval=$lt_finish_eval
12048
12049# Take the output of nm and produce a listing of raw symbols and C names.
12050global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12051
12052# Transform the output of nm in a proper C declaration
12053global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12054
12055# Transform the output of nm in a C name address pair
12056global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12057
12058# This is the shared library runtime path variable.
12059runpath_var=$runpath_var
12060
12061# This is the shared library path variable.
12062shlibpath_var=$shlibpath_var
12063
12064# Is shlibpath searched before the hard-coded library search path?
12065shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12066
12067# How to hardcode a shared library path into an executable.
12068hardcode_action=$hardcode_action
12069
12070# Whether we should hardcode library paths into libraries.
12071hardcode_into_libs=$hardcode_into_libs
12072
12073# Flag to hardcode \$libdir into a binary during linking.
12074# This must work even if \$libdir does not exist.
12075hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
12076
12077# If ld is used when linking, flag to hardcode \$libdir into
12078# a binary during linking. This must work even if \$libdir does
12079# not exist.
12080hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
12081
12082# Whether we need a single -rpath flag with a separated argument.
12083hardcode_libdir_separator=$lt_hardcode_libdir_separator
12084
12085# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12086# resulting binary.
12087hardcode_direct=$hardcode_direct
12088
12089# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12090# resulting binary.
12091hardcode_minus_L=$hardcode_minus_L
12092
12093# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12094# the resulting binary.
12095hardcode_shlibpath_var=$hardcode_shlibpath_var
12096
12097# Set to yes if building a shared library automatically hardcodes DIR into the library
12098# and all subsequent libraries and executables linked against it.
12099hardcode_automatic=$hardcode_automatic
12100
12101# Variables whose values should be saved in libtool wrapper scripts and
12102# restored at relink time.
12103variables_saved_for_relink="$variables_saved_for_relink"
12104
12105# Whether libtool must link a program against all its dependency libraries.
12106link_all_deplibs=$link_all_deplibs
12107
12108# Compile-time system search path for libraries
12109sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12110
12111# Run-time system search path for libraries
12112sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12113
12114# Fix the shell variable \$srcfile for the compiler.
12115fix_srcfile_path=$lt_fix_srcfile_path
12116
12117# Set to yes if exported symbols are required.
12118always_export_symbols=$always_export_symbols
12119
12120# The commands to list exported symbols.
12121export_symbols_cmds=$lt_export_symbols_cmds
12122
12123# The commands to extract the exported symbol list from a shared archive.
12124extract_expsyms_cmds=$lt_extract_expsyms_cmds
12125
12126# Symbols that should not be listed in the preloaded symbols.
12127exclude_expsyms=$lt_exclude_expsyms
12128
12129# Symbols that must always be exported.
12130include_expsyms=$lt_include_expsyms
12131
12132# ### END LIBTOOL CONFIG
12133
12134__EOF__
12135
12136
12137 case $host_os in
12138 aix3*)
12139 cat <<\EOF >> "$cfgfile"
12140
12141# AIX sometimes has problems with the GCC collect2 program. For some
12142# reason, if we set the COLLECT_NAMES environment variable, the problems
12143# vanish in a puff of smoke.
12144if test "X${COLLECT_NAMES+set}" != Xset; then
12145 COLLECT_NAMES=
12146 export COLLECT_NAMES
12147fi
12148EOF
12149 ;;
12150 esac
12151
12152 # We use sed instead of cat because bash on DJGPP gets confused if
12153 # if finds mixed CR/LF and LF-only lines. Since sed operates in
12154 # text mode, it properly converts lines to CR/LF. This bash problem
12155 # is reportedly fixed, but why not run on old versions too?
12156 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
12157
12158 mv -f "$cfgfile" "$ofile" || \
12159 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
12160 chmod +x "$ofile"
12161
12162else
12163 # If there is no Makefile yet, we rely on a make rule to execute
12164 # `config.status --recheck' to rerun these tests and create the
12165 # libtool script then.
12166 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12167 if test -f "$ltmain_in"; then
12168 test -f Makefile && make "$ltmain"
12169 fi
12170fi
12171
12172
12173ac_ext=c
12174ac_cpp='$CPP $CPPFLAGS'
12175ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12176ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12177ac_compiler_gnu=$ac_cv_c_compiler_gnu
12178
12179CC="$lt_save_CC"
12180
12181
12182# Check whether --with-tags was given.
12183if test "${with_tags+set}" = set; then
12184 withval=$with_tags; tagnames="$withval"
12185fi
12186
12187
12188if test -f "$ltmain" && test -n "$tagnames"; then
12189 if test ! -f "${ofile}"; then
12190 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
12191echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
12192 fi
12193
12194 if test -z "$LTCC"; then
12195 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
12196 if test -z "$LTCC"; then
12197 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
12198echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
12199 else
12200 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
12201echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
12202 fi
12203 fi
12204 if test -z "$LTCFLAGS"; then
12205 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
12206 fi
12207
12208 # Extract list of available tagged configurations in $ofile.
12209 # Note that this assumes the entire list is on one line.
12210 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
12211
12212 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12213 for tagname in $tagnames; do
12214 IFS="$lt_save_ifs"
12215 # Check whether tagname contains only valid characters
12216 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
12217 "") ;;
12218 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
12219echo "$as_me: error: invalid tag name: $tagname" >&2;}
12220 { (exit 1); exit 1; }; }
12221 ;;
12222 esac
12223
12224 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
12225 then
12226 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
12227echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
12228 { (exit 1); exit 1; }; }
12229 fi
12230
12231 # Update the list of available tags.
12232 if test -n "$tagname"; then
12233 echo appending configuration tag \"$tagname\" to $ofile
12234
12235 case $tagname in
12236 CXX)
12237 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12238 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12239 (test "X$CXX" != "Xg++"))) ; then
12240 ac_ext=cpp
12241ac_cpp='$CXXCPP $CPPFLAGS'
12242ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12243ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12244ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12245
12246
12247
12248
12249archive_cmds_need_lc_CXX=no
12250allow_undefined_flag_CXX=
12251always_export_symbols_CXX=no
12252archive_expsym_cmds_CXX=
12253export_dynamic_flag_spec_CXX=
12254hardcode_direct_CXX=no
12255hardcode_libdir_flag_spec_CXX=
12256hardcode_libdir_flag_spec_ld_CXX=
12257hardcode_libdir_separator_CXX=
12258hardcode_minus_L_CXX=no
12259hardcode_shlibpath_var_CXX=unsupported
12260hardcode_automatic_CXX=no
12261module_cmds_CXX=
12262module_expsym_cmds_CXX=
12263link_all_deplibs_CXX=unknown
12264old_archive_cmds_CXX=$old_archive_cmds
12265no_undefined_flag_CXX=
12266whole_archive_flag_spec_CXX=
12267enable_shared_with_static_runtimes_CXX=no
12268
12269# Dependencies to place before and after the object being linked:
12270predep_objects_CXX=
12271postdep_objects_CXX=
12272predeps_CXX=
12273postdeps_CXX=
12274compiler_lib_search_path_CXX=
56efe974 12275compiler_lib_search_dirs_CXX=
b57f37fb
WP
12276
12277# Source file extension for C++ test sources.
12278ac_ext=cpp
12279
12280# Object file extension for compiled C++ test sources.
12281objext=o
12282objext_CXX=$objext
12283
12284# Code to be used in simple compile tests
12285lt_simple_compile_test_code="int some_variable = 0;"
12286
12287# Code to be used in simple link tests
12288lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12289
12290# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12291
12292# If no C compiler was specified, use CC.
12293LTCC=${LTCC-"$CC"}
12294
12295# If no C compiler flags were specified, use CFLAGS.
12296LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12297
12298# Allow CC to be a program name with arguments.
12299compiler=$CC
12300
12301
12302# save warnings/boilerplate of simple test code
12303ac_outfile=conftest.$ac_objext
12304echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12305eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12306_lt_compiler_boilerplate=`cat conftest.err`
12307$rm conftest*
12308
12309ac_outfile=conftest.$ac_objext
12310echo "$lt_simple_link_test_code" >conftest.$ac_ext
12311eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12312_lt_linker_boilerplate=`cat conftest.err`
56efe974 12313$rm -r conftest*
b57f37fb
WP
12314
12315
12316# Allow CC to be a program name with arguments.
12317lt_save_CC=$CC
12318lt_save_LD=$LD
12319lt_save_GCC=$GCC
12320GCC=$GXX
12321lt_save_with_gnu_ld=$with_gnu_ld
12322lt_save_path_LD=$lt_cv_path_LD
12323if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12324 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12325else
12326 $as_unset lt_cv_prog_gnu_ld
12327fi
12328if test -n "${lt_cv_path_LDCXX+set}"; then
12329 lt_cv_path_LD=$lt_cv_path_LDCXX
12330else
12331 $as_unset lt_cv_path_LD
12332fi
12333test -z "${LDCXX+set}" || LD=$LDCXX
12334CC=${CXX-"c++"}
12335compiler=$CC
12336compiler_CXX=$CC
12337for cc_temp in $compiler""; do
12338 case $cc_temp in
12339 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12340 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12341 \-*) ;;
12342 *) break;;
12343 esac
12344done
12345cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12346
12347
12348# We don't want -fno-exception wen compiling C++ code, so set the
12349# no_builtin_flag separately
12350if test "$GXX" = yes; then
12351 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12352else
12353 lt_prog_compiler_no_builtin_flag_CXX=
12354fi
12355
12356if test "$GXX" = yes; then
12357 # Set up default GNU C++ configuration
12358
12359
12360# Check whether --with-gnu-ld was given.
12361if test "${with_gnu_ld+set}" = set; then
12362 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12363else
12364 with_gnu_ld=no
12365fi
12366
12367ac_prog=ld
12368if test "$GCC" = yes; then
12369 # Check if gcc -print-prog-name=ld gives a path.
12370 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12371echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12372 case $host in
12373 *-*-mingw*)
12374 # gcc leaves a trailing carriage return which upsets mingw
12375 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12376 *)
12377 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12378 esac
12379 case $ac_prog in
12380 # Accept absolute paths.
12381 [\\/]* | ?:[\\/]*)
12382 re_direlt='/[^/][^/]*/\.\./'
12383 # Canonicalize the pathname of ld
12384 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12385 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12386 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12387 done
12388 test -z "$LD" && LD="$ac_prog"
12389 ;;
12390 "")
12391 # If it fails, then pretend we aren't using GCC.
12392 ac_prog=ld
12393 ;;
12394 *)
12395 # If it is relative, then search for the first ld in PATH.
12396 with_gnu_ld=unknown
12397 ;;
12398 esac
12399elif test "$with_gnu_ld" = yes; then
12400 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12401echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12402else
12403 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12404echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12405fi
12406if test "${lt_cv_path_LD+set}" = set; then
12407 echo $ECHO_N "(cached) $ECHO_C" >&6
12408else
12409 if test -z "$LD"; then
12410 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12411 for ac_dir in $PATH; do
12412 IFS="$lt_save_ifs"
12413 test -z "$ac_dir" && ac_dir=.
12414 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12415 lt_cv_path_LD="$ac_dir/$ac_prog"
12416 # Check to see if the program is GNU ld. I'd rather use --version,
12417 # but apparently some variants of GNU ld only accept -v.
12418 # Break only if it was the GNU/non-GNU ld that we prefer.
12419 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12420 *GNU* | *'with BFD'*)
12421 test "$with_gnu_ld" != no && break
12422 ;;
12423 *)
12424 test "$with_gnu_ld" != yes && break
12425 ;;
12426 esac
12427 fi
12428 done
12429 IFS="$lt_save_ifs"
12430else
12431 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12432fi
12433fi
12434
12435LD="$lt_cv_path_LD"
12436if test -n "$LD"; then
12437 { echo "$as_me:$LINENO: result: $LD" >&5
12438echo "${ECHO_T}$LD" >&6; }
12439else
12440 { echo "$as_me:$LINENO: result: no" >&5
12441echo "${ECHO_T}no" >&6; }
12442fi
12443test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12444echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12445 { (exit 1); exit 1; }; }
12446{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12447echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12448if test "${lt_cv_prog_gnu_ld+set}" = set; then
12449 echo $ECHO_N "(cached) $ECHO_C" >&6
12450else
12451 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12452case `$LD -v 2>&1 </dev/null` in
12453*GNU* | *'with BFD'*)
12454 lt_cv_prog_gnu_ld=yes
12455 ;;
12456*)
12457 lt_cv_prog_gnu_ld=no
12458 ;;
12459esac
12460fi
12461{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12462echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12463with_gnu_ld=$lt_cv_prog_gnu_ld
12464
12465
12466
12467 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12468 # archiving commands below assume that GNU ld is being used.
12469 if test "$with_gnu_ld" = yes; then
12470 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12471 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'
12472
12473 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12474 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12475
12476 # If archive_cmds runs LD, not CC, wlarc should be empty
12477 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12478 # investigate it a little bit more. (MM)
12479 wlarc='${wl}'
12480
12481 # ancient GNU ld didn't support --whole-archive et. al.
12482 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
12483 grep 'no-whole-archive' > /dev/null; then
12484 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12485 else
12486 whole_archive_flag_spec_CXX=
12487 fi
12488 else
12489 with_gnu_ld=no
12490 wlarc=
12491
12492 # A generic and very simple default shared library creation
12493 # command for GNU C++ for the case where it uses the native
12494 # linker, instead of GNU ld. If possible, this setting should
12495 # overridden to take advantage of the native linker features on
12496 # the platform it is being used on.
12497 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12498 fi
12499
12500 # Commands to make compiler produce verbose output that lists
12501 # what "hidden" libraries, object files and flags are used when
12502 # linking a shared library.
12503 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12504
12505else
12506 GXX=no
12507 with_gnu_ld=no
12508 wlarc=
12509fi
12510
12511# PORTME: fill in a description of your system's C++ link characteristics
12512{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12513echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12514ld_shlibs_CXX=yes
12515case $host_os in
12516 aix3*)
12517 # FIXME: insert proper C++ library support
12518 ld_shlibs_CXX=no
12519 ;;
56efe974 12520 aix[4-9]*)
b57f37fb
WP
12521 if test "$host_cpu" = ia64; then
12522 # On IA64, the linker does run time linking by default, so we don't
12523 # have to do anything special.
12524 aix_use_runtimelinking=no
12525 exp_sym_flag='-Bexport'
12526 no_entry_flag=""
12527 else
12528 aix_use_runtimelinking=no
12529
12530 # Test if we are trying to use run time linking or normal
12531 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12532 # need to do runtime linking.
56efe974 12533 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
b57f37fb
WP
12534 for ld_flag in $LDFLAGS; do
12535 case $ld_flag in
12536 *-brtl*)
12537 aix_use_runtimelinking=yes
12538 break
12539 ;;
12540 esac
12541 done
12542 ;;
12543 esac
12544
12545 exp_sym_flag='-bexport'
12546 no_entry_flag='-bnoentry'
12547 fi
12548
12549 # When large executables or shared objects are built, AIX ld can
12550 # have problems creating the table of contents. If linking a library
12551 # or program results in "error TOC overflow" add -mminimal-toc to
12552 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12553 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12554
12555 archive_cmds_CXX=''
12556 hardcode_direct_CXX=yes
12557 hardcode_libdir_separator_CXX=':'
12558 link_all_deplibs_CXX=yes
12559
12560 if test "$GXX" = yes; then
12561 case $host_os in aix4.[012]|aix4.[012].*)
12562 # We only want to do this on AIX 4.2 and lower, the check
12563 # below for broken collect2 doesn't work under 4.3+
12564 collect2name=`${CC} -print-prog-name=collect2`
12565 if test -f "$collect2name" && \
12566 strings "$collect2name" | grep resolve_lib_name >/dev/null
12567 then
12568 # We have reworked collect2
12569 :
12570 else
12571 # We have old collect2
12572 hardcode_direct_CXX=unsupported
12573 # It fails to find uninstalled libraries when the uninstalled
12574 # path is not listed in the libpath. Setting hardcode_minus_L
12575 # to unsupported forces relinking
12576 hardcode_minus_L_CXX=yes
12577 hardcode_libdir_flag_spec_CXX='-L$libdir'
12578 hardcode_libdir_separator_CXX=
12579 fi
12580 ;;
12581 esac
12582 shared_flag='-shared'
12583 if test "$aix_use_runtimelinking" = yes; then
12584 shared_flag="$shared_flag "'${wl}-G'
12585 fi
12586 else
12587 # not using gcc
12588 if test "$host_cpu" = ia64; then
12589 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12590 # chokes on -Wl,-G. The following line is correct:
12591 shared_flag='-G'
12592 else
12593 if test "$aix_use_runtimelinking" = yes; then
12594 shared_flag='${wl}-G'
12595 else
12596 shared_flag='${wl}-bM:SRE'
12597 fi
12598 fi
12599 fi
12600
12601 # It seems that -bexpall does not export symbols beginning with
12602 # underscore (_), so it is better to generate a list of symbols to export.
12603 always_export_symbols_CXX=yes
12604 if test "$aix_use_runtimelinking" = yes; then
12605 # Warning - without using the other runtime loading flags (-brtl),
12606 # -berok will link without error, but may produce a broken library.
12607 allow_undefined_flag_CXX='-berok'
12608 # Determine the default libpath from the value encoded in an empty executable.
12609 cat >conftest.$ac_ext <<_ACEOF
12610/* confdefs.h. */
12611_ACEOF
12612cat confdefs.h >>conftest.$ac_ext
12613cat >>conftest.$ac_ext <<_ACEOF
12614/* end confdefs.h. */
12615
12616int
12617main ()
12618{
12619
12620 ;
12621 return 0;
12622}
12623_ACEOF
12624rm -f conftest.$ac_objext conftest$ac_exeext
12625if { (ac_try="$ac_link"
12626case "(($ac_try" in
12627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12628 *) ac_try_echo=$ac_try;;
12629esac
12630eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12631 (eval "$ac_link") 2>conftest.er1
12632 ac_status=$?
12633 grep -v '^ *+' conftest.er1 >conftest.err
12634 rm -f conftest.er1
12635 cat conftest.err >&5
12636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12637 (exit $ac_status); } && {
12638 test -z "$ac_cxx_werror_flag" ||
12639 test ! -s conftest.err
12640 } && test -s conftest$ac_exeext &&
12641 $as_test_x conftest$ac_exeext; then
12642
12643lt_aix_libpath_sed='
12644 /Import File Strings/,/^$/ {
12645 /^0/ {
12646 s/^0 *\(.*\)$/\1/
12647 p
12648 }
12649 }'
12650aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12651# Check for a 64-bit object if we didn't find anything.
12652if test -z "$aix_libpath"; then
12653 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12654fi
12655else
12656 echo "$as_me: failed program was:" >&5
12657sed 's/^/| /' conftest.$ac_ext >&5
12658
12659
12660fi
12661
12662rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12663 conftest$ac_exeext conftest.$ac_ext
12664if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12665
12666 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12667
12668 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"
12669 else
12670 if test "$host_cpu" = ia64; then
12671 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12672 allow_undefined_flag_CXX="-z nodefs"
12673 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"
12674 else
12675 # Determine the default libpath from the value encoded in an empty executable.
12676 cat >conftest.$ac_ext <<_ACEOF
12677/* confdefs.h. */
12678_ACEOF
12679cat confdefs.h >>conftest.$ac_ext
12680cat >>conftest.$ac_ext <<_ACEOF
12681/* end confdefs.h. */
12682
12683int
12684main ()
12685{
12686
12687 ;
12688 return 0;
12689}
12690_ACEOF
12691rm -f conftest.$ac_objext conftest$ac_exeext
12692if { (ac_try="$ac_link"
12693case "(($ac_try" in
12694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12695 *) ac_try_echo=$ac_try;;
12696esac
12697eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12698 (eval "$ac_link") 2>conftest.er1
12699 ac_status=$?
12700 grep -v '^ *+' conftest.er1 >conftest.err
12701 rm -f conftest.er1
12702 cat conftest.err >&5
12703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12704 (exit $ac_status); } && {
12705 test -z "$ac_cxx_werror_flag" ||
12706 test ! -s conftest.err
12707 } && test -s conftest$ac_exeext &&
12708 $as_test_x conftest$ac_exeext; then
12709
12710lt_aix_libpath_sed='
12711 /Import File Strings/,/^$/ {
12712 /^0/ {
12713 s/^0 *\(.*\)$/\1/
12714 p
12715 }
12716 }'
12717aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12718# Check for a 64-bit object if we didn't find anything.
12719if test -z "$aix_libpath"; then
12720 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12721fi
12722else
12723 echo "$as_me: failed program was:" >&5
12724sed 's/^/| /' conftest.$ac_ext >&5
12725
12726
12727fi
12728
12729rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12730 conftest$ac_exeext conftest.$ac_ext
12731if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12732
12733 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12734 # Warning - without using the other run time loading flags,
12735 # -berok will link without error, but may produce a broken library.
12736 no_undefined_flag_CXX=' ${wl}-bernotok'
12737 allow_undefined_flag_CXX=' ${wl}-berok'
12738 # Exported symbols can be pulled into shared objects from archives
12739 whole_archive_flag_spec_CXX='$convenience'
12740 archive_cmds_need_lc_CXX=yes
12741 # This is similar to how AIX traditionally builds its shared libraries.
12742 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'
12743 fi
12744 fi
12745 ;;
12746
12747 beos*)
12748 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12749 allow_undefined_flag_CXX=unsupported
12750 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12751 # support --undefined. This deserves some investigation. FIXME
12752 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12753 else
12754 ld_shlibs_CXX=no
12755 fi
12756 ;;
12757
12758 chorus*)
12759 case $cc_basename in
12760 *)
12761 # FIXME: insert proper C++ library support
12762 ld_shlibs_CXX=no
12763 ;;
12764 esac
12765 ;;
12766
12767 cygwin* | mingw* | pw32*)
12768 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12769 # as there is no search path for DLLs.
12770 hardcode_libdir_flag_spec_CXX='-L$libdir'
12771 allow_undefined_flag_CXX=unsupported
12772 always_export_symbols_CXX=no
12773 enable_shared_with_static_runtimes_CXX=yes
12774
12775 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12776 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'
12777 # If the export-symbols file already is a .def file (1st line
12778 # is EXPORTS), use it as is; otherwise, prepend...
12779 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12780 cp $export_symbols $output_objdir/$soname.def;
12781 else
12782 echo EXPORTS > $output_objdir/$soname.def;
12783 cat $export_symbols >> $output_objdir/$soname.def;
12784 fi~
12785 $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'
12786 else
12787 ld_shlibs_CXX=no
12788 fi
12789 ;;
12790 darwin* | rhapsody*)
b57f37fb
WP
12791 archive_cmds_need_lc_CXX=no
12792 hardcode_direct_CXX=no
12793 hardcode_automatic_CXX=yes
12794 hardcode_shlibpath_var_CXX=unsupported
12795 whole_archive_flag_spec_CXX=''
12796 link_all_deplibs_CXX=yes
56efe974
WP
12797 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12798 if test "$GXX" = yes ; then
b57f37fb 12799 output_verbose_link_cmd='echo'
56efe974
WP
12800 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12801 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12802 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
12803 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
12804 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12805 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
12806 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
b57f37fb 12807 fi
b57f37fb
WP
12808 else
12809 case $cc_basename in
12810 xlc*)
12811 output_verbose_link_cmd='echo'
12812 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
12813 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12814 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12815 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12816 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}'
12817 ;;
12818 *)
12819 ld_shlibs_CXX=no
12820 ;;
12821 esac
12822 fi
12823 ;;
12824
12825 dgux*)
12826 case $cc_basename in
12827 ec++*)
12828 # FIXME: insert proper C++ library support
12829 ld_shlibs_CXX=no
12830 ;;
12831 ghcx*)
12832 # Green Hills C++ Compiler
12833 # FIXME: insert proper C++ library support
12834 ld_shlibs_CXX=no
12835 ;;
12836 *)
12837 # FIXME: insert proper C++ library support
12838 ld_shlibs_CXX=no
12839 ;;
12840 esac
12841 ;;
12842 freebsd[12]*)
12843 # C++ shared libraries reported to be fairly broken before switch to ELF
12844 ld_shlibs_CXX=no
12845 ;;
12846 freebsd-elf*)
12847 archive_cmds_need_lc_CXX=no
12848 ;;
12849 freebsd* | dragonfly*)
12850 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12851 # conventions
12852 ld_shlibs_CXX=yes
12853 ;;
12854 gnu*)
12855 ;;
12856 hpux9*)
12857 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12858 hardcode_libdir_separator_CXX=:
12859 export_dynamic_flag_spec_CXX='${wl}-E'
12860 hardcode_direct_CXX=yes
12861 hardcode_minus_L_CXX=yes # Not in the search PATH,
12862 # but as the default
12863 # location of the library.
12864
12865 case $cc_basename in
12866 CC*)
12867 # FIXME: insert proper C++ library support
12868 ld_shlibs_CXX=no
12869 ;;
12870 aCC*)
12871 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'
12872 # Commands to make compiler produce verbose output that lists
12873 # what "hidden" libraries, object files and flags are used when
12874 # linking a shared library.
12875 #
12876 # There doesn't appear to be a way to prevent this compiler from
12877 # explicitly linking system object files so we need to strip them
12878 # from the output so that they don't get included in the library
12879 # dependencies.
12880 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'
12881 ;;
12882 *)
12883 if test "$GXX" = yes; then
12884 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'
12885 else
12886 # FIXME: insert proper C++ library support
12887 ld_shlibs_CXX=no
12888 fi
12889 ;;
12890 esac
12891 ;;
12892 hpux10*|hpux11*)
12893 if test $with_gnu_ld = no; then
12894 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12895 hardcode_libdir_separator_CXX=:
12896
12897 case $host_cpu in
12898 hppa*64*|ia64*) ;;
12899 *)
12900 export_dynamic_flag_spec_CXX='${wl}-E'
12901 ;;
12902 esac
12903 fi
12904 case $host_cpu in
12905 hppa*64*|ia64*)
12906 hardcode_direct_CXX=no
12907 hardcode_shlibpath_var_CXX=no
12908 ;;
12909 *)
12910 hardcode_direct_CXX=yes
12911 hardcode_minus_L_CXX=yes # Not in the search PATH,
12912 # but as the default
12913 # location of the library.
12914 ;;
12915 esac
12916
12917 case $cc_basename in
12918 CC*)
12919 # FIXME: insert proper C++ library support
12920 ld_shlibs_CXX=no
12921 ;;
12922 aCC*)
12923 case $host_cpu in
12924 hppa*64*)
12925 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12926 ;;
12927 ia64*)
12928 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12929 ;;
12930 *)
12931 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12932 ;;
12933 esac
12934 # Commands to make compiler produce verbose output that lists
12935 # what "hidden" libraries, object files and flags are used when
12936 # linking a shared library.
12937 #
12938 # There doesn't appear to be a way to prevent this compiler from
12939 # explicitly linking system object files so we need to strip them
12940 # from the output so that they don't get included in the library
12941 # dependencies.
12942 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'
12943 ;;
12944 *)
12945 if test "$GXX" = yes; then
12946 if test $with_gnu_ld = no; then
12947 case $host_cpu in
12948 hppa*64*)
12949 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12950 ;;
12951 ia64*)
12952 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12953 ;;
12954 *)
12955 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'
12956 ;;
12957 esac
12958 fi
12959 else
12960 # FIXME: insert proper C++ library support
12961 ld_shlibs_CXX=no
12962 fi
12963 ;;
12964 esac
12965 ;;
12966 interix[3-9]*)
12967 hardcode_direct_CXX=no
12968 hardcode_shlibpath_var_CXX=no
12969 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12970 export_dynamic_flag_spec_CXX='${wl}-E'
12971 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12972 # Instead, shared libraries are loaded at an image base (0x10000000 by
12973 # default) and relocated if they conflict, which is a slow very memory
12974 # consuming and fragmenting process. To avoid this, we pick a random,
12975 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12976 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12977 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'
12978 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'
12979 ;;
12980 irix5* | irix6*)
12981 case $cc_basename in
12982 CC*)
12983 # SGI C++
12984 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'
12985
12986 # Archives containing C++ object files must be created using
12987 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12988 # necessary to make sure instantiated templates are included
12989 # in the archive.
12990 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12991 ;;
12992 *)
12993 if test "$GXX" = yes; then
12994 if test "$with_gnu_ld" = no; then
12995 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'
12996 else
12997 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'
12998 fi
12999 fi
13000 link_all_deplibs_CXX=yes
13001 ;;
13002 esac
13003 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13004 hardcode_libdir_separator_CXX=:
13005 ;;
13006 linux* | k*bsd*-gnu)
13007 case $cc_basename in
13008 KCC*)
13009 # Kuck and Associates, Inc. (KAI) C++ Compiler
13010
13011 # KCC will only create a shared library if the output file
13012 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13013 # to its proper name (with version) after linking.
13014 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'
13015 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'
13016 # Commands to make compiler produce verbose output that lists
13017 # what "hidden" libraries, object files and flags are used when
13018 # linking a shared library.
13019 #
13020 # There doesn't appear to be a way to prevent this compiler from
13021 # explicitly linking system object files so we need to strip them
13022 # from the output so that they don't get included in the library
13023 # dependencies.
13024 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'
13025
13026 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
13027 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13028
13029 # Archives containing C++ object files must be created using
13030 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13031 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13032 ;;
13033 icpc*)
13034 # Intel C++
13035 with_gnu_ld=yes
13036 # version 8.0 and above of icpc choke on multiply defined symbols
13037 # if we add $predep_objects and $postdep_objects, however 7.1 and
13038 # earlier do not add the objects themselves.
13039 case `$CC -V 2>&1` in
13040 *"Version 7."*)
13041 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13042 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'
13043 ;;
13044 *) # Version 8.0 or newer
13045 tmp_idyn=
13046 case $host_cpu in
13047 ia64*) tmp_idyn=' -i_dynamic';;
13048 esac
13049 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13050 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'
13051 ;;
13052 esac
13053 archive_cmds_need_lc_CXX=no
13054 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13055 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13056 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13057 ;;
56efe974 13058 pgCC* | pgcpp*)
b57f37fb
WP
13059 # Portland Group C++ compiler
13060 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13061 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'
13062
13063 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13064 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13065 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'
13066 ;;
13067 cxx*)
13068 # Compaq C++
13069 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13070 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'
13071
13072 runpath_var=LD_RUN_PATH
13073 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13074 hardcode_libdir_separator_CXX=:
13075
13076 # Commands to make compiler produce verbose output that lists
13077 # what "hidden" libraries, object files and flags are used when
13078 # linking a shared library.
13079 #
13080 # There doesn't appear to be a way to prevent this compiler from
13081 # explicitly linking system object files so we need to strip them
13082 # from the output so that they don't get included in the library
13083 # dependencies.
13084 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'
13085 ;;
13086 *)
13087 case `$CC -V 2>&1 | sed 5q` in
13088 *Sun\ C*)
13089 # Sun C++ 5.9
13090 no_undefined_flag_CXX=' -zdefs'
13091 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13092 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
13093 hardcode_libdir_flag_spec_CXX='-R$libdir'
13094 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13095
13096 # Not sure whether something based on
13097 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13098 # would be better.
13099 output_verbose_link_cmd='echo'
13100
13101 # Archives containing C++ object files must be created using
13102 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13103 # necessary to make sure instantiated templates are included
13104 # in the archive.
13105 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13106 ;;
13107 esac
13108 ;;
13109 esac
13110 ;;
13111 lynxos*)
13112 # FIXME: insert proper C++ library support
13113 ld_shlibs_CXX=no
13114 ;;
13115 m88k*)
13116 # FIXME: insert proper C++ library support
13117 ld_shlibs_CXX=no
13118 ;;
13119 mvs*)
13120 case $cc_basename in
13121 cxx*)
13122 # FIXME: insert proper C++ library support
13123 ld_shlibs_CXX=no
13124 ;;
13125 *)
13126 # FIXME: insert proper C++ library support
13127 ld_shlibs_CXX=no
13128 ;;
13129 esac
13130 ;;
13131 netbsd* | netbsdelf*-gnu)
13132 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13133 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13134 wlarc=
13135 hardcode_libdir_flag_spec_CXX='-R$libdir'
13136 hardcode_direct_CXX=yes
13137 hardcode_shlibpath_var_CXX=no
13138 fi
13139 # Workaround some broken pre-1.5 toolchains
13140 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13141 ;;
13142 openbsd2*)
13143 # C++ shared libraries are fairly broken
13144 ld_shlibs_CXX=no
13145 ;;
13146 openbsd*)
13147 if test -f /usr/libexec/ld.so; then
13148 hardcode_direct_CXX=yes
13149 hardcode_shlibpath_var_CXX=no
13150 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13151 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13152 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13153 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13154 export_dynamic_flag_spec_CXX='${wl}-E'
13155 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13156 fi
13157 output_verbose_link_cmd='echo'
13158 else
13159 ld_shlibs_CXX=no
13160 fi
13161 ;;
13162 osf3*)
13163 case $cc_basename in
13164 KCC*)
13165 # Kuck and Associates, Inc. (KAI) C++ Compiler
13166
13167 # KCC will only create a shared library if the output file
13168 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13169 # to its proper name (with version) after linking.
13170 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'
13171
13172 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13173 hardcode_libdir_separator_CXX=:
13174
13175 # Archives containing C++ object files must be created using
13176 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13177 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13178
13179 ;;
13180 RCC*)
13181 # Rational C++ 2.4.1
13182 # FIXME: insert proper C++ library support
13183 ld_shlibs_CXX=no
13184 ;;
13185 cxx*)
13186 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13187 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'
13188
13189 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13190 hardcode_libdir_separator_CXX=:
13191
13192 # Commands to make compiler produce verbose output that lists
13193 # what "hidden" libraries, object files and flags are used when
13194 # linking a shared library.
13195 #
13196 # There doesn't appear to be a way to prevent this compiler from
13197 # explicitly linking system object files so we need to strip them
13198 # from the output so that they don't get included in the library
13199 # dependencies.
13200 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'
13201 ;;
13202 *)
13203 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13204 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13205 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'
13206
13207 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13208 hardcode_libdir_separator_CXX=:
13209
13210 # Commands to make compiler produce verbose output that lists
13211 # what "hidden" libraries, object files and flags are used when
13212 # linking a shared library.
13213 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13214
13215 else
13216 # FIXME: insert proper C++ library support
13217 ld_shlibs_CXX=no
13218 fi
13219 ;;
13220 esac
13221 ;;
13222 osf4* | osf5*)
13223 case $cc_basename in
13224 KCC*)
13225 # Kuck and Associates, Inc. (KAI) C++ Compiler
13226
13227 # KCC will only create a shared library if the output file
13228 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13229 # to its proper name (with version) after linking.
13230 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'
13231
13232 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13233 hardcode_libdir_separator_CXX=:
13234
13235 # Archives containing C++ object files must be created using
13236 # the KAI C++ compiler.
13237 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
13238 ;;
13239 RCC*)
13240 # Rational C++ 2.4.1
13241 # FIXME: insert proper C++ library support
13242 ld_shlibs_CXX=no
13243 ;;
13244 cxx*)
13245 allow_undefined_flag_CXX=' -expect_unresolved \*'
13246 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'
13247 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13248 echo "-hidden">> $lib.exp~
13249 $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~
13250 $rm $lib.exp'
13251
13252 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13253 hardcode_libdir_separator_CXX=:
13254
13255 # Commands to make compiler produce verbose output that lists
13256 # what "hidden" libraries, object files and flags are used when
13257 # linking a shared library.
13258 #
13259 # There doesn't appear to be a way to prevent this compiler from
13260 # explicitly linking system object files so we need to strip them
13261 # from the output so that they don't get included in the library
13262 # dependencies.
13263 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'
13264 ;;
13265 *)
13266 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13267 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13268 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'
13269
13270 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13271 hardcode_libdir_separator_CXX=:
13272
13273 # Commands to make compiler produce verbose output that lists
13274 # what "hidden" libraries, object files and flags are used when
13275 # linking a shared library.
13276 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13277
13278 else
13279 # FIXME: insert proper C++ library support
13280 ld_shlibs_CXX=no
13281 fi
13282 ;;
13283 esac
13284 ;;
13285 psos*)
13286 # FIXME: insert proper C++ library support
13287 ld_shlibs_CXX=no
13288 ;;
13289 sunos4*)
13290 case $cc_basename in
13291 CC*)
13292 # Sun C++ 4.x
13293 # FIXME: insert proper C++ library support
13294 ld_shlibs_CXX=no
13295 ;;
13296 lcc*)
13297 # Lucid
13298 # FIXME: insert proper C++ library support
13299 ld_shlibs_CXX=no
13300 ;;
13301 *)
13302 # FIXME: insert proper C++ library support
13303 ld_shlibs_CXX=no
13304 ;;
13305 esac
13306 ;;
13307 solaris*)
13308 case $cc_basename in
13309 CC*)
13310 # Sun C++ 4.2, 5.x and Centerline C++
13311 archive_cmds_need_lc_CXX=yes
13312 no_undefined_flag_CXX=' -zdefs'
13313 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13314 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13315 $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'
13316
13317 hardcode_libdir_flag_spec_CXX='-R$libdir'
13318 hardcode_shlibpath_var_CXX=no
13319 case $host_os in
13320 solaris2.[0-5] | solaris2.[0-5].*) ;;
13321 *)
13322 # The compiler driver will combine and reorder linker options,
13323 # but understands `-z linker_flag'.
13324 # Supported since Solaris 2.6 (maybe 2.5.1?)
13325 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13326 ;;
13327 esac
13328 link_all_deplibs_CXX=yes
13329
13330 output_verbose_link_cmd='echo'
13331
13332 # Archives containing C++ object files must be created using
13333 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13334 # necessary to make sure instantiated templates are included
13335 # in the archive.
13336 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13337 ;;
13338 gcx*)
13339 # Green Hills C++ Compiler
13340 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13341
13342 # The C++ compiler must be used to create the archive.
13343 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13344 ;;
13345 *)
13346 # GNU C++ compiler with Solaris linker
13347 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13348 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13349 if $CC --version | grep -v '^2\.7' > /dev/null; then
13350 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13351 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13352 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13353
13354 # Commands to make compiler produce verbose output that lists
13355 # what "hidden" libraries, object files and flags are used when
13356 # linking a shared library.
13357 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13358 else
13359 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13360 # platform.
13361 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13362 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13363 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13364
13365 # Commands to make compiler produce verbose output that lists
13366 # what "hidden" libraries, object files and flags are used when
13367 # linking a shared library.
13368 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13369 fi
13370
13371 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13372 case $host_os in
13373 solaris2.[0-5] | solaris2.[0-5].*) ;;
13374 *)
13375 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13376 ;;
13377 esac
13378 fi
13379 ;;
13380 esac
13381 ;;
13382 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13383 no_undefined_flag_CXX='${wl}-z,text'
13384 archive_cmds_need_lc_CXX=no
13385 hardcode_shlibpath_var_CXX=no
13386 runpath_var='LD_RUN_PATH'
13387
13388 case $cc_basename in
13389 CC*)
13390 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13391 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13392 ;;
13393 *)
13394 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13395 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13396 ;;
13397 esac
13398 ;;
13399 sysv5* | sco3.2v5* | sco5v6*)
13400 # Note: We can NOT use -z defs as we might desire, because we do not
13401 # link with -lc, and that would cause any symbols used from libc to
13402 # always be unresolved, which means just about no library would
13403 # ever link correctly. If we're not using GNU ld we use -z text
13404 # though, which does catch some bad symbols but isn't as heavy-handed
13405 # as -z defs.
13406 # For security reasons, it is highly recommended that you always
13407 # use absolute paths for naming shared libraries, and exclude the
13408 # DT_RUNPATH tag from executables and libraries. But doing so
13409 # requires that you compile everything twice, which is a pain.
13410 # So that behaviour is only enabled if SCOABSPATH is set to a
13411 # non-empty value in the environment. Most likely only useful for
13412 # creating official distributions of packages.
13413 # This is a hack until libtool officially supports absolute path
13414 # names for shared libraries.
13415 no_undefined_flag_CXX='${wl}-z,text'
13416 allow_undefined_flag_CXX='${wl}-z,nodefs'
13417 archive_cmds_need_lc_CXX=no
13418 hardcode_shlibpath_var_CXX=no
13419 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
13420 hardcode_libdir_separator_CXX=':'
13421 link_all_deplibs_CXX=yes
13422 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13423 runpath_var='LD_RUN_PATH'
13424
13425 case $cc_basename in
13426 CC*)
13427 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13428 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13429 ;;
13430 *)
13431 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13432 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13433 ;;
13434 esac
13435 ;;
13436 tandem*)
13437 case $cc_basename in
13438 NCC*)
13439 # NonStop-UX NCC 3.20
13440 # FIXME: insert proper C++ library support
13441 ld_shlibs_CXX=no
13442 ;;
13443 *)
13444 # FIXME: insert proper C++ library support
13445 ld_shlibs_CXX=no
13446 ;;
13447 esac
13448 ;;
13449 vxworks*)
13450 # FIXME: insert proper C++ library support
13451 ld_shlibs_CXX=no
13452 ;;
13453 *)
13454 # FIXME: insert proper C++ library support
13455 ld_shlibs_CXX=no
13456 ;;
13457esac
13458{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13459echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13460test "$ld_shlibs_CXX" = no && can_build_shared=no
13461
13462GCC_CXX="$GXX"
13463LD_CXX="$LD"
13464
b57f37fb
WP
13465cat > conftest.$ac_ext <<EOF
13466class Foo
13467{
13468public:
13469 Foo (void) { a = 0; }
13470private:
13471 int a;
13472};
13473EOF
13474
13475if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13476 (eval $ac_compile) 2>&5
13477 ac_status=$?
13478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13479 (exit $ac_status); }; then
13480 # Parse the compiler output and extract the necessary
13481 # objects, libraries and library flags.
13482
13483 # Sentinel used to keep track of whether or not we are before
13484 # the conftest object file.
13485 pre_test_object_deps_done=no
13486
13487 # The `*' in the case matches for architectures that use `case' in
13488 # $output_verbose_cmd can trigger glob expansion during the loop
13489 # eval without this substitution.
13490 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
13491
13492 for p in `eval $output_verbose_link_cmd`; do
13493 case $p in
13494
13495 -L* | -R* | -l*)
13496 # Some compilers place space between "-{L,R}" and the path.
13497 # Remove the space.
13498 if test $p = "-L" \
13499 || test $p = "-R"; then
13500 prev=$p
13501 continue
13502 else
13503 prev=
13504 fi
13505
13506 if test "$pre_test_object_deps_done" = no; then
13507 case $p in
13508 -L* | -R*)
13509 # Internal compiler library paths should come after those
13510 # provided the user. The postdeps already come after the
13511 # user supplied libs so there is no need to process them.
13512 if test -z "$compiler_lib_search_path_CXX"; then
13513 compiler_lib_search_path_CXX="${prev}${p}"
13514 else
13515 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13516 fi
13517 ;;
13518 # The "-l" case would never come before the object being
13519 # linked, so don't bother handling this case.
13520 esac
13521 else
13522 if test -z "$postdeps_CXX"; then
13523 postdeps_CXX="${prev}${p}"
13524 else
13525 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13526 fi
13527 fi
13528 ;;
13529
13530 *.$objext)
13531 # This assumes that the test object file only shows up
13532 # once in the compiler output.
13533 if test "$p" = "conftest.$objext"; then
13534 pre_test_object_deps_done=yes
13535 continue
13536 fi
13537
13538 if test "$pre_test_object_deps_done" = no; then
13539 if test -z "$predep_objects_CXX"; then
13540 predep_objects_CXX="$p"
13541 else
13542 predep_objects_CXX="$predep_objects_CXX $p"
13543 fi
13544 else
13545 if test -z "$postdep_objects_CXX"; then
13546 postdep_objects_CXX="$p"
13547 else
13548 postdep_objects_CXX="$postdep_objects_CXX $p"
13549 fi
13550 fi
13551 ;;
13552
13553 *) ;; # Ignore the rest.
13554
13555 esac
13556 done
13557
13558 # Clean up.
13559 rm -f a.out a.exe
13560else
13561 echo "libtool.m4: error: problem compiling CXX test program"
13562fi
13563
13564$rm -f confest.$objext
13565
56efe974
WP
13566compiler_lib_search_dirs_CXX=
13567if test -n "$compiler_lib_search_path_CXX"; then
13568 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13569fi
13570
b57f37fb
WP
13571# PORTME: override above test on systems where it is broken
13572case $host_os in
13573interix[3-9]*)
13574 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13575 # hack all around it, let's just trust "g++" to DTRT.
13576 predep_objects_CXX=
13577 postdep_objects_CXX=
13578 postdeps_CXX=
13579 ;;
13580
13581linux*)
13582 case `$CC -V 2>&1 | sed 5q` in
13583 *Sun\ C*)
13584 # Sun C++ 5.9
13585 #
13586 # The more standards-conforming stlport4 library is
13587 # incompatible with the Cstd library. Avoid specifying
13588 # it if it's in CXXFLAGS. Ignore libCrun as
13589 # -library=stlport4 depends on it.
13590 case " $CXX $CXXFLAGS " in
13591 *" -library=stlport4 "*)
13592 solaris_use_stlport4=yes
13593 ;;
13594 esac
13595 if test "$solaris_use_stlport4" != yes; then
13596 postdeps_CXX='-library=Cstd -library=Crun'
13597 fi
13598 ;;
13599 esac
13600 ;;
13601
13602solaris*)
13603 case $cc_basename in
13604 CC*)
13605 # The more standards-conforming stlport4 library is
13606 # incompatible with the Cstd library. Avoid specifying
13607 # it if it's in CXXFLAGS. Ignore libCrun as
13608 # -library=stlport4 depends on it.
13609 case " $CXX $CXXFLAGS " in
13610 *" -library=stlport4 "*)
13611 solaris_use_stlport4=yes
13612 ;;
13613 esac
13614
13615 # Adding this requires a known-good setup of shared libraries for
13616 # Sun compiler versions before 5.6, else PIC objects from an old
13617 # archive will be linked into the output, leading to subtle bugs.
13618 if test "$solaris_use_stlport4" != yes; then
13619 postdeps_CXX='-library=Cstd -library=Crun'
13620 fi
13621 ;;
13622 esac
13623 ;;
13624esac
13625
b57f37fb
WP
13626case " $postdeps_CXX " in
13627*" -lc "*) archive_cmds_need_lc_CXX=no ;;
13628esac
13629
13630lt_prog_compiler_wl_CXX=
13631lt_prog_compiler_pic_CXX=
13632lt_prog_compiler_static_CXX=
13633
13634{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13635echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13636
13637 # C++ specific cases for pic, static, wl, etc.
13638 if test "$GXX" = yes; then
13639 lt_prog_compiler_wl_CXX='-Wl,'
13640 lt_prog_compiler_static_CXX='-static'
13641
13642 case $host_os in
13643 aix*)
13644 # All AIX code is PIC.
13645 if test "$host_cpu" = ia64; then
13646 # AIX 5 now supports IA64 processor
13647 lt_prog_compiler_static_CXX='-Bstatic'
13648 fi
13649 ;;
13650 amigaos*)
13651 # FIXME: we need at least 68020 code to build shared libraries, but
13652 # adding the `-m68020' flag to GCC prevents building anything better,
13653 # like `-m68040'.
13654 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13655 ;;
13656 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13657 # PIC is the default for these OSes.
13658 ;;
13659 mingw* | cygwin* | os2* | pw32*)
13660 # This hack is so that the source file can tell whether it is being
13661 # built for inclusion in a dll (and should export symbols for example).
13662 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13663 # (--disable-auto-import) libraries
13664 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13665 ;;
13666 darwin* | rhapsody*)
13667 # PIC is the default on this platform
13668 # Common symbols not allowed in MH_DYLIB files
13669 lt_prog_compiler_pic_CXX='-fno-common'
13670 ;;
13671 *djgpp*)
13672 # DJGPP does not support shared libraries at all
13673 lt_prog_compiler_pic_CXX=
13674 ;;
13675 interix[3-9]*)
13676 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13677 # Instead, we relocate shared libraries at runtime.
13678 ;;
13679 sysv4*MP*)
13680 if test -d /usr/nec; then
13681 lt_prog_compiler_pic_CXX=-Kconform_pic
13682 fi
13683 ;;
13684 hpux*)
13685 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13686 # not for PA HP-UX.
13687 case $host_cpu in
13688 hppa*64*|ia64*)
13689 ;;
13690 *)
13691 lt_prog_compiler_pic_CXX='-fPIC'
13692 ;;
13693 esac
13694 ;;
13695 *)
13696 lt_prog_compiler_pic_CXX='-fPIC'
13697 ;;
13698 esac
13699 else
13700 case $host_os in
56efe974 13701 aix[4-9]*)
b57f37fb
WP
13702 # All AIX code is PIC.
13703 if test "$host_cpu" = ia64; then
13704 # AIX 5 now supports IA64 processor
13705 lt_prog_compiler_static_CXX='-Bstatic'
13706 else
13707 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13708 fi
13709 ;;
13710 chorus*)
13711 case $cc_basename in
13712 cxch68*)
13713 # Green Hills C++ Compiler
13714 # _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"
13715 ;;
13716 esac
13717 ;;
13718 darwin*)
13719 # PIC is the default on this platform
13720 # Common symbols not allowed in MH_DYLIB files
13721 case $cc_basename in
13722 xlc*)
13723 lt_prog_compiler_pic_CXX='-qnocommon'
13724 lt_prog_compiler_wl_CXX='-Wl,'
13725 ;;
13726 esac
13727 ;;
13728 dgux*)
13729 case $cc_basename in
13730 ec++*)
13731 lt_prog_compiler_pic_CXX='-KPIC'
13732 ;;
13733 ghcx*)
13734 # Green Hills C++ Compiler
13735 lt_prog_compiler_pic_CXX='-pic'
13736 ;;
13737 *)
13738 ;;
13739 esac
13740 ;;
13741 freebsd* | dragonfly*)
13742 # FreeBSD uses GNU C++
13743 ;;
13744 hpux9* | hpux10* | hpux11*)
13745 case $cc_basename in
13746 CC*)
13747 lt_prog_compiler_wl_CXX='-Wl,'
13748 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13749 if test "$host_cpu" != ia64; then
13750 lt_prog_compiler_pic_CXX='+Z'
13751 fi
13752 ;;
13753 aCC*)
13754 lt_prog_compiler_wl_CXX='-Wl,'
13755 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13756 case $host_cpu in
13757 hppa*64*|ia64*)
13758 # +Z the default
13759 ;;
13760 *)
13761 lt_prog_compiler_pic_CXX='+Z'
13762 ;;
13763 esac
13764 ;;
13765 *)
13766 ;;
13767 esac
13768 ;;
13769 interix*)
13770 # This is c89, which is MS Visual C++ (no shared libs)
13771 # Anyone wants to do a port?
13772 ;;
13773 irix5* | irix6* | nonstopux*)
13774 case $cc_basename in
13775 CC*)
13776 lt_prog_compiler_wl_CXX='-Wl,'
13777 lt_prog_compiler_static_CXX='-non_shared'
13778 # CC pic flag -KPIC is the default.
13779 ;;
13780 *)
13781 ;;
13782 esac
13783 ;;
13784 linux* | k*bsd*-gnu)
13785 case $cc_basename in
13786 KCC*)
13787 # KAI C++ Compiler
13788 lt_prog_compiler_wl_CXX='--backend -Wl,'
13789 lt_prog_compiler_pic_CXX='-fPIC'
13790 ;;
13791 icpc* | ecpc*)
13792 # Intel C++
13793 lt_prog_compiler_wl_CXX='-Wl,'
13794 lt_prog_compiler_pic_CXX='-KPIC'
13795 lt_prog_compiler_static_CXX='-static'
13796 ;;
56efe974 13797 pgCC* | pgcpp*)
b57f37fb
WP
13798 # Portland Group C++ compiler.
13799 lt_prog_compiler_wl_CXX='-Wl,'
13800 lt_prog_compiler_pic_CXX='-fpic'
13801 lt_prog_compiler_static_CXX='-Bstatic'
13802 ;;
13803 cxx*)
13804 # Compaq C++
13805 # Make sure the PIC flag is empty. It appears that all Alpha
13806 # Linux and Compaq Tru64 Unix objects are PIC.
13807 lt_prog_compiler_pic_CXX=
13808 lt_prog_compiler_static_CXX='-non_shared'
13809 ;;
13810 *)
13811 case `$CC -V 2>&1 | sed 5q` in
13812 *Sun\ C*)
13813 # Sun C++ 5.9
13814 lt_prog_compiler_pic_CXX='-KPIC'
13815 lt_prog_compiler_static_CXX='-Bstatic'
13816 lt_prog_compiler_wl_CXX='-Qoption ld '
13817 ;;
13818 esac
13819 ;;
13820 esac
13821 ;;
13822 lynxos*)
13823 ;;
13824 m88k*)
13825 ;;
13826 mvs*)
13827 case $cc_basename in
13828 cxx*)
13829 lt_prog_compiler_pic_CXX='-W c,exportall'
13830 ;;
13831 *)
13832 ;;
13833 esac
13834 ;;
13835 netbsd* | netbsdelf*-gnu)
13836 ;;
13837 osf3* | osf4* | osf5*)
13838 case $cc_basename in
13839 KCC*)
13840 lt_prog_compiler_wl_CXX='--backend -Wl,'
13841 ;;
13842 RCC*)
13843 # Rational C++ 2.4.1
13844 lt_prog_compiler_pic_CXX='-pic'
13845 ;;
13846 cxx*)
13847 # Digital/Compaq C++
13848 lt_prog_compiler_wl_CXX='-Wl,'
13849 # Make sure the PIC flag is empty. It appears that all Alpha
13850 # Linux and Compaq Tru64 Unix objects are PIC.
13851 lt_prog_compiler_pic_CXX=
13852 lt_prog_compiler_static_CXX='-non_shared'
13853 ;;
13854 *)
13855 ;;
13856 esac
13857 ;;
13858 psos*)
13859 ;;
13860 solaris*)
13861 case $cc_basename in
13862 CC*)
13863 # Sun C++ 4.2, 5.x and Centerline C++
13864 lt_prog_compiler_pic_CXX='-KPIC'
13865 lt_prog_compiler_static_CXX='-Bstatic'
13866 lt_prog_compiler_wl_CXX='-Qoption ld '
13867 ;;
13868 gcx*)
13869 # Green Hills C++ Compiler
13870 lt_prog_compiler_pic_CXX='-PIC'
13871 ;;
13872 *)
13873 ;;
13874 esac
13875 ;;
13876 sunos4*)
13877 case $cc_basename in
13878 CC*)
13879 # Sun C++ 4.x
13880 lt_prog_compiler_pic_CXX='-pic'
13881 lt_prog_compiler_static_CXX='-Bstatic'
13882 ;;
13883 lcc*)
13884 # Lucid
13885 lt_prog_compiler_pic_CXX='-pic'
13886 ;;
13887 *)
13888 ;;
13889 esac
13890 ;;
13891 tandem*)
13892 case $cc_basename in
13893 NCC*)
13894 # NonStop-UX NCC 3.20
13895 lt_prog_compiler_pic_CXX='-KPIC'
13896 ;;
13897 *)
13898 ;;
13899 esac
13900 ;;
13901 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13902 case $cc_basename in
13903 CC*)
13904 lt_prog_compiler_wl_CXX='-Wl,'
13905 lt_prog_compiler_pic_CXX='-KPIC'
13906 lt_prog_compiler_static_CXX='-Bstatic'
13907 ;;
13908 esac
13909 ;;
13910 vxworks*)
13911 ;;
13912 *)
13913 lt_prog_compiler_can_build_shared_CXX=no
13914 ;;
13915 esac
13916 fi
13917
13918{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13919echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
13920
13921#
13922# Check to make sure the PIC flag actually works.
13923#
13924if test -n "$lt_prog_compiler_pic_CXX"; then
13925
13926{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13927echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
56efe974 13928if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
b57f37fb
WP
13929 echo $ECHO_N "(cached) $ECHO_C" >&6
13930else
56efe974 13931 lt_cv_prog_compiler_pic_works_CXX=no
b57f37fb
WP
13932 ac_outfile=conftest.$ac_objext
13933 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13934 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13935 # Insert the option either (1) after the last *FLAGS variable, or
13936 # (2) before a word containing "conftest.", or (3) at the end.
13937 # Note that $ac_compile itself does not contain backslashes and begins
13938 # with a dollar sign (not a hyphen), so the echo should work correctly.
13939 # The option is referenced via a variable to avoid confusing sed.
13940 lt_compile=`echo "$ac_compile" | $SED \
13941 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13942 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13943 -e 's:$: $lt_compiler_flag:'`
dd910409 13944 (eval echo "\"\$as_me:13944: $lt_compile\"" >&5)
b57f37fb
WP
13945 (eval "$lt_compile" 2>conftest.err)
13946 ac_status=$?
13947 cat conftest.err >&5
dd910409 13948 echo "$as_me:13948: \$? = $ac_status" >&5
b57f37fb
WP
13949 if (exit $ac_status) && test -s "$ac_outfile"; then
13950 # The compiler can only warn and ignore the option if not recognized
13951 # So say no if there are warnings other than the usual output.
13952 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13953 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13954 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
56efe974 13955 lt_cv_prog_compiler_pic_works_CXX=yes
b57f37fb
WP
13956 fi
13957 fi
13958 $rm conftest*
13959
13960fi
56efe974
WP
13961{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13962echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
b57f37fb 13963
56efe974 13964if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
b57f37fb
WP
13965 case $lt_prog_compiler_pic_CXX in
13966 "" | " "*) ;;
13967 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13968 esac
13969else
13970 lt_prog_compiler_pic_CXX=
13971 lt_prog_compiler_can_build_shared_CXX=no
13972fi
13973
13974fi
13975case $host_os in
13976 # For platforms which do not support PIC, -DPIC is meaningless:
13977 *djgpp*)
13978 lt_prog_compiler_pic_CXX=
13979 ;;
13980 *)
13981 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13982 ;;
13983esac
13984
13985#
13986# Check to make sure the static flag actually works.
13987#
13988wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13989{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13990echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
56efe974 13991if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
b57f37fb
WP
13992 echo $ECHO_N "(cached) $ECHO_C" >&6
13993else
56efe974 13994 lt_cv_prog_compiler_static_works_CXX=no
b57f37fb
WP
13995 save_LDFLAGS="$LDFLAGS"
13996 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13997 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13998 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13999 # The linker can only warn and ignore the option if not recognized
14000 # So say no if there are warnings
14001 if test -s conftest.err; then
14002 # Append any errors to the config.log.
14003 cat conftest.err 1>&5
14004 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14005 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14006 if diff conftest.exp conftest.er2 >/dev/null; then
56efe974 14007 lt_cv_prog_compiler_static_works_CXX=yes
b57f37fb
WP
14008 fi
14009 else
56efe974 14010 lt_cv_prog_compiler_static_works_CXX=yes
b57f37fb
WP
14011 fi
14012 fi
56efe974 14013 $rm -r conftest*
b57f37fb
WP
14014 LDFLAGS="$save_LDFLAGS"
14015
14016fi
56efe974
WP
14017{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14018echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
b57f37fb 14019
56efe974 14020if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
b57f37fb
WP
14021 :
14022else
14023 lt_prog_compiler_static_CXX=
14024fi
14025
14026
14027{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14028echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14029if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14030 echo $ECHO_N "(cached) $ECHO_C" >&6
14031else
14032 lt_cv_prog_compiler_c_o_CXX=no
14033 $rm -r conftest 2>/dev/null
14034 mkdir conftest
14035 cd conftest
14036 mkdir out
14037 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14038
14039 lt_compiler_flag="-o out/conftest2.$ac_objext"
14040 # Insert the option either (1) after the last *FLAGS variable, or
14041 # (2) before a word containing "conftest.", or (3) at the end.
14042 # Note that $ac_compile itself does not contain backslashes and begins
14043 # with a dollar sign (not a hyphen), so the echo should work correctly.
14044 lt_compile=`echo "$ac_compile" | $SED \
14045 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14046 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14047 -e 's:$: $lt_compiler_flag:'`
dd910409 14048 (eval echo "\"\$as_me:14048: $lt_compile\"" >&5)
b57f37fb
WP
14049 (eval "$lt_compile" 2>out/conftest.err)
14050 ac_status=$?
14051 cat out/conftest.err >&5
dd910409 14052 echo "$as_me:14052: \$? = $ac_status" >&5
b57f37fb
WP
14053 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14054 then
14055 # The compiler can only warn and ignore the option if not recognized
14056 # So say no if there are warnings
14057 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14058 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14059 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14060 lt_cv_prog_compiler_c_o_CXX=yes
14061 fi
14062 fi
14063 chmod u+w . 2>&5
14064 $rm conftest*
14065 # SGI C++ compiler will create directory out/ii_files/ for
14066 # template instantiation
14067 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14068 $rm out/* && rmdir out
14069 cd ..
14070 rmdir conftest
14071 $rm conftest*
14072
14073fi
14074{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14075echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14076
14077
14078hard_links="nottested"
14079if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14080 # do not overwrite the value of need_locks provided by the user
14081 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14082echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14083 hard_links=yes
14084 $rm conftest*
14085 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14086 touch conftest.a
14087 ln conftest.a conftest.b 2>&5 || hard_links=no
14088 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14089 { echo "$as_me:$LINENO: result: $hard_links" >&5
14090echo "${ECHO_T}$hard_links" >&6; }
14091 if test "$hard_links" = no; then
14092 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14093echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14094 need_locks=warn
14095 fi
14096else
14097 need_locks=no
14098fi
14099
14100{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14101echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14102
14103 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14104 case $host_os in
56efe974 14105 aix[4-9]*)
b57f37fb
WP
14106 # If we're using GNU nm, then we don't want the "-C" option.
14107 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14108 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14109 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'
14110 else
14111 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'
14112 fi
14113 ;;
14114 pw32*)
14115 export_symbols_cmds_CXX="$ltdll_cmds"
14116 ;;
14117 cygwin* | mingw*)
14118 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'
14119 ;;
14120 linux* | k*bsd*-gnu)
14121 link_all_deplibs_CXX=no
14122 ;;
14123 *)
14124 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14125 ;;
14126 esac
56efe974 14127 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
b57f37fb
WP
14128
14129{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14130echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14131test "$ld_shlibs_CXX" = no && can_build_shared=no
14132
14133#
14134# Do we need to explicitly link libc?
14135#
14136case "x$archive_cmds_need_lc_CXX" in
14137x|xyes)
14138 # Assume -lc should be added
14139 archive_cmds_need_lc_CXX=yes
14140
14141 if test "$enable_shared" = yes && test "$GCC" = yes; then
14142 case $archive_cmds_CXX in
14143 *'~'*)
14144 # FIXME: we may have to deal with multi-command sequences.
14145 ;;
14146 '$CC '*)
14147 # Test whether the compiler implicitly links with -lc since on some
14148 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14149 # to ld, don't add -lc before -lgcc.
14150 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14151echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14152 $rm conftest*
14153 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14154
14155 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14156 (eval $ac_compile) 2>&5
14157 ac_status=$?
14158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14159 (exit $ac_status); } 2>conftest.err; then
14160 soname=conftest
14161 lib=conftest
14162 libobjs=conftest.$ac_objext
14163 deplibs=
14164 wl=$lt_prog_compiler_wl_CXX
14165 pic_flag=$lt_prog_compiler_pic_CXX
14166 compiler_flags=-v
14167 linker_flags=-v
14168 verstring=
14169 output_objdir=.
14170 libname=conftest
14171 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14172 allow_undefined_flag_CXX=
14173 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14174 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14175 ac_status=$?
14176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14177 (exit $ac_status); }
14178 then
14179 archive_cmds_need_lc_CXX=no
14180 else
14181 archive_cmds_need_lc_CXX=yes
14182 fi
14183 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14184 else
14185 cat conftest.err 1>&5
14186 fi
14187 $rm conftest*
14188 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
14189echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
14190 ;;
14191 esac
14192 fi
14193 ;;
14194esac
14195
14196{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14197echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
14198library_names_spec=
14199libname_spec='lib$name'
14200soname_spec=
14201shrext_cmds=".so"
14202postinstall_cmds=
14203postuninstall_cmds=
14204finish_cmds=
14205finish_eval=
14206shlibpath_var=
14207shlibpath_overrides_runpath=unknown
14208version_type=none
14209dynamic_linker="$host_os ld.so"
14210sys_lib_dlsearch_path_spec="/lib /usr/lib"
14211
14212need_lib_prefix=unknown
14213hardcode_into_libs=no
14214
14215# when you set need_version to no, make sure it does not cause -set_version
14216# flags to be left without arguments
14217need_version=unknown
14218
14219case $host_os in
14220aix3*)
14221 version_type=linux
14222 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14223 shlibpath_var=LIBPATH
14224
14225 # AIX 3 has no versioning support, so we append a major version to the name.
14226 soname_spec='${libname}${release}${shared_ext}$major'
14227 ;;
14228
56efe974 14229aix[4-9]*)
b57f37fb
WP
14230 version_type=linux
14231 need_lib_prefix=no
14232 need_version=no
14233 hardcode_into_libs=yes
14234 if test "$host_cpu" = ia64; then
14235 # AIX 5 supports IA64
14236 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14237 shlibpath_var=LD_LIBRARY_PATH
14238 else
14239 # With GCC up to 2.95.x, collect2 would create an import file
14240 # for dependence libraries. The import file would start with
14241 # the line `#! .'. This would cause the generated library to
14242 # depend on `.', always an invalid library. This was fixed in
14243 # development snapshots of GCC prior to 3.0.
14244 case $host_os in
14245 aix4 | aix4.[01] | aix4.[01].*)
14246 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14247 echo ' yes '
14248 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14249 :
14250 else
14251 can_build_shared=no
14252 fi
14253 ;;
14254 esac
14255 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14256 # soname into executable. Probably we can add versioning support to
14257 # collect2, so additional links can be useful in future.
14258 if test "$aix_use_runtimelinking" = yes; then
14259 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14260 # instead of lib<name>.a to let people know that these are not
14261 # typical AIX shared libraries.
14262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14263 else
14264 # We preserve .a as extension for shared libraries through AIX4.2
14265 # and later when we are not doing run time linking.
14266 library_names_spec='${libname}${release}.a $libname.a'
14267 soname_spec='${libname}${release}${shared_ext}$major'
14268 fi
14269 shlibpath_var=LIBPATH
14270 fi
14271 ;;
14272
14273amigaos*)
14274 library_names_spec='$libname.ixlibrary $libname.a'
14275 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14276 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'
14277 ;;
14278
14279beos*)
14280 library_names_spec='${libname}${shared_ext}'
14281 dynamic_linker="$host_os ld.so"
14282 shlibpath_var=LIBRARY_PATH
14283 ;;
14284
14285bsdi[45]*)
14286 version_type=linux
14287 need_version=no
14288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14289 soname_spec='${libname}${release}${shared_ext}$major'
14290 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14291 shlibpath_var=LD_LIBRARY_PATH
14292 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14293 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14294 # the default ld.so.conf also contains /usr/contrib/lib and
14295 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14296 # libtool to hard-code these into programs
14297 ;;
14298
14299cygwin* | mingw* | pw32*)
14300 version_type=windows
14301 shrext_cmds=".dll"
14302 need_version=no
14303 need_lib_prefix=no
14304
14305 case $GCC,$host_os in
14306 yes,cygwin* | yes,mingw* | yes,pw32*)
14307 library_names_spec='$libname.dll.a'
14308 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14309 postinstall_cmds='base_file=`basename \${file}`~
14310 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14311 dldir=$destdir/`dirname \$dlpath`~
14312 test -d \$dldir || mkdir -p \$dldir~
14313 $install_prog $dir/$dlname \$dldir/$dlname~
14314 chmod a+x \$dldir/$dlname'
14315 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14316 dlpath=$dir/\$dldll~
14317 $rm \$dlpath'
14318 shlibpath_overrides_runpath=yes
14319
14320 case $host_os in
14321 cygwin*)
14322 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14323 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14324 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14325 ;;
14326 mingw*)
14327 # MinGW DLLs use traditional 'lib' prefix
14328 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14329 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14330 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14331 # It is most probably a Windows format PATH printed by
14332 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14333 # path with ; separators, and with drive letters. We can handle the
14334 # drive letters (cygwin fileutils understands them), so leave them,
14335 # especially as we might pass files found there to a mingw objdump,
14336 # which wouldn't understand a cygwinified path. Ahh.
14337 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14338 else
14339 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14340 fi
14341 ;;
14342 pw32*)
14343 # pw32 DLLs use 'pw' prefix rather than 'lib'
14344 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14345 ;;
14346 esac
14347 ;;
14348
14349 *)
14350 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14351 ;;
14352 esac
14353 dynamic_linker='Win32 ld.exe'
14354 # FIXME: first we should search . and the directory the executable is in
14355 shlibpath_var=PATH
14356 ;;
14357
14358darwin* | rhapsody*)
14359 dynamic_linker="$host_os dyld"
14360 version_type=darwin
14361 need_lib_prefix=no
14362 need_version=no
14363 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14364 soname_spec='${libname}${release}${major}$shared_ext'
14365 shlibpath_overrides_runpath=yes
14366 shlibpath_var=DYLD_LIBRARY_PATH
14367 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14368
14369 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14370 ;;
14371
14372dgux*)
14373 version_type=linux
14374 need_lib_prefix=no
14375 need_version=no
14376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14377 soname_spec='${libname}${release}${shared_ext}$major'
14378 shlibpath_var=LD_LIBRARY_PATH
14379 ;;
14380
14381freebsd1*)
14382 dynamic_linker=no
14383 ;;
14384
14385freebsd* | dragonfly*)
14386 # DragonFly does not have aout. When/if they implement a new
14387 # versioning mechanism, adjust this.
14388 if test -x /usr/bin/objformat; then
14389 objformat=`/usr/bin/objformat`
14390 else
14391 case $host_os in
14392 freebsd[123]*) objformat=aout ;;
14393 *) objformat=elf ;;
14394 esac
14395 fi
14396 version_type=freebsd-$objformat
14397 case $version_type in
14398 freebsd-elf*)
14399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14400 need_version=no
14401 need_lib_prefix=no
14402 ;;
14403 freebsd-*)
14404 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14405 need_version=yes
14406 ;;
14407 esac
14408 shlibpath_var=LD_LIBRARY_PATH
14409 case $host_os in
14410 freebsd2*)
14411 shlibpath_overrides_runpath=yes
14412 ;;
14413 freebsd3.[01]* | freebsdelf3.[01]*)
14414 shlibpath_overrides_runpath=yes
14415 hardcode_into_libs=yes
14416 ;;
14417 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14418 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14419 shlibpath_overrides_runpath=no
14420 hardcode_into_libs=yes
14421 ;;
14422 *) # from 4.6 on, and DragonFly
14423 shlibpath_overrides_runpath=yes
14424 hardcode_into_libs=yes
14425 ;;
14426 esac
14427 ;;
14428
14429gnu*)
14430 version_type=linux
14431 need_lib_prefix=no
14432 need_version=no
14433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14434 soname_spec='${libname}${release}${shared_ext}$major'
14435 shlibpath_var=LD_LIBRARY_PATH
14436 hardcode_into_libs=yes
14437 ;;
14438
14439hpux9* | hpux10* | hpux11*)
14440 # Give a soname corresponding to the major version so that dld.sl refuses to
14441 # link against other versions.
14442 version_type=sunos
14443 need_lib_prefix=no
14444 need_version=no
14445 case $host_cpu in
14446 ia64*)
14447 shrext_cmds='.so'
14448 hardcode_into_libs=yes
14449 dynamic_linker="$host_os dld.so"
14450 shlibpath_var=LD_LIBRARY_PATH
14451 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14453 soname_spec='${libname}${release}${shared_ext}$major'
14454 if test "X$HPUX_IA64_MODE" = X32; then
14455 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14456 else
14457 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14458 fi
14459 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14460 ;;
14461 hppa*64*)
14462 shrext_cmds='.sl'
14463 hardcode_into_libs=yes
14464 dynamic_linker="$host_os dld.sl"
14465 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14466 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14468 soname_spec='${libname}${release}${shared_ext}$major'
14469 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14470 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14471 ;;
14472 *)
14473 shrext_cmds='.sl'
14474 dynamic_linker="$host_os dld.sl"
14475 shlibpath_var=SHLIB_PATH
14476 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14478 soname_spec='${libname}${release}${shared_ext}$major'
14479 ;;
14480 esac
14481 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14482 postinstall_cmds='chmod 555 $lib'
14483 ;;
14484
14485interix[3-9]*)
14486 version_type=linux
14487 need_lib_prefix=no
14488 need_version=no
14489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14490 soname_spec='${libname}${release}${shared_ext}$major'
14491 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14492 shlibpath_var=LD_LIBRARY_PATH
14493 shlibpath_overrides_runpath=no
14494 hardcode_into_libs=yes
14495 ;;
14496
14497irix5* | irix6* | nonstopux*)
14498 case $host_os in
14499 nonstopux*) version_type=nonstopux ;;
14500 *)
14501 if test "$lt_cv_prog_gnu_ld" = yes; then
14502 version_type=linux
14503 else
14504 version_type=irix
14505 fi ;;
14506 esac
14507 need_lib_prefix=no
14508 need_version=no
14509 soname_spec='${libname}${release}${shared_ext}$major'
14510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14511 case $host_os in
14512 irix5* | nonstopux*)
14513 libsuff= shlibsuff=
14514 ;;
14515 *)
14516 case $LD in # libtool.m4 will add one of these switches to LD
14517 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14518 libsuff= shlibsuff= libmagic=32-bit;;
14519 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14520 libsuff=32 shlibsuff=N32 libmagic=N32;;
14521 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14522 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14523 *) libsuff= shlibsuff= libmagic=never-match;;
14524 esac
14525 ;;
14526 esac
14527 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14528 shlibpath_overrides_runpath=no
14529 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14530 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14531 hardcode_into_libs=yes
14532 ;;
14533
14534# No shared lib support for Linux oldld, aout, or coff.
14535linux*oldld* | linux*aout* | linux*coff*)
14536 dynamic_linker=no
14537 ;;
14538
14539# This must be Linux ELF.
14540linux* | k*bsd*-gnu)
14541 version_type=linux
14542 need_lib_prefix=no
14543 need_version=no
14544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14545 soname_spec='${libname}${release}${shared_ext}$major'
14546 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14547 shlibpath_var=LD_LIBRARY_PATH
14548 shlibpath_overrides_runpath=no
14549 # This implies no fast_install, which is unacceptable.
14550 # Some rework will be needed to allow for fast_install
14551 # before this can be enabled.
14552 hardcode_into_libs=yes
14553
14554 # Append ld.so.conf contents to the search path
14555 if test -f /etc/ld.so.conf; then
14556 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
14557 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14558 fi
14559
14560 # We used to test for /lib/ld.so.1 and disable shared libraries on
14561 # powerpc, because MkLinux only supported shared libraries with the
14562 # GNU dynamic linker. Since this was broken with cross compilers,
14563 # most powerpc-linux boxes support dynamic linking these days and
14564 # people can always --disable-shared, the test was removed, and we
14565 # assume the GNU/Linux dynamic linker is in use.
14566 dynamic_linker='GNU/Linux ld.so'
14567 ;;
14568
14569netbsdelf*-gnu)
14570 version_type=linux
14571 need_lib_prefix=no
14572 need_version=no
14573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14574 soname_spec='${libname}${release}${shared_ext}$major'
14575 shlibpath_var=LD_LIBRARY_PATH
14576 shlibpath_overrides_runpath=no
14577 hardcode_into_libs=yes
14578 dynamic_linker='NetBSD ld.elf_so'
14579 ;;
14580
14581netbsd*)
14582 version_type=sunos
14583 need_lib_prefix=no
14584 need_version=no
14585 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14587 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14588 dynamic_linker='NetBSD (a.out) ld.so'
14589 else
14590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14591 soname_spec='${libname}${release}${shared_ext}$major'
14592 dynamic_linker='NetBSD ld.elf_so'
14593 fi
14594 shlibpath_var=LD_LIBRARY_PATH
14595 shlibpath_overrides_runpath=yes
14596 hardcode_into_libs=yes
14597 ;;
14598
14599newsos6)
14600 version_type=linux
14601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14602 shlibpath_var=LD_LIBRARY_PATH
14603 shlibpath_overrides_runpath=yes
14604 ;;
14605
14606nto-qnx*)
14607 version_type=linux
14608 need_lib_prefix=no
14609 need_version=no
14610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14611 soname_spec='${libname}${release}${shared_ext}$major'
14612 shlibpath_var=LD_LIBRARY_PATH
14613 shlibpath_overrides_runpath=yes
14614 ;;
14615
14616openbsd*)
14617 version_type=sunos
14618 sys_lib_dlsearch_path_spec="/usr/lib"
14619 need_lib_prefix=no
14620 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14621 case $host_os in
14622 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14623 *) need_version=no ;;
14624 esac
14625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14626 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14627 shlibpath_var=LD_LIBRARY_PATH
14628 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14629 case $host_os in
14630 openbsd2.[89] | openbsd2.[89].*)
14631 shlibpath_overrides_runpath=no
14632 ;;
14633 *)
14634 shlibpath_overrides_runpath=yes
14635 ;;
14636 esac
14637 else
14638 shlibpath_overrides_runpath=yes
14639 fi
14640 ;;
14641
14642os2*)
14643 libname_spec='$name'
14644 shrext_cmds=".dll"
14645 need_lib_prefix=no
14646 library_names_spec='$libname${shared_ext} $libname.a'
14647 dynamic_linker='OS/2 ld.exe'
14648 shlibpath_var=LIBPATH
14649 ;;
14650
14651osf3* | osf4* | osf5*)
14652 version_type=osf
14653 need_lib_prefix=no
14654 need_version=no
14655 soname_spec='${libname}${release}${shared_ext}$major'
14656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14657 shlibpath_var=LD_LIBRARY_PATH
14658 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14659 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14660 ;;
14661
14662rdos*)
14663 dynamic_linker=no
14664 ;;
14665
14666solaris*)
14667 version_type=linux
14668 need_lib_prefix=no
14669 need_version=no
14670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14671 soname_spec='${libname}${release}${shared_ext}$major'
14672 shlibpath_var=LD_LIBRARY_PATH
14673 shlibpath_overrides_runpath=yes
14674 hardcode_into_libs=yes
14675 # ldd complains unless libraries are executable
14676 postinstall_cmds='chmod +x $lib'
14677 ;;
14678
14679sunos4*)
14680 version_type=sunos
14681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14682 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14683 shlibpath_var=LD_LIBRARY_PATH
14684 shlibpath_overrides_runpath=yes
14685 if test "$with_gnu_ld" = yes; then
14686 need_lib_prefix=no
14687 fi
14688 need_version=yes
14689 ;;
14690
14691sysv4 | sysv4.3*)
14692 version_type=linux
14693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14694 soname_spec='${libname}${release}${shared_ext}$major'
14695 shlibpath_var=LD_LIBRARY_PATH
14696 case $host_vendor in
14697 sni)
14698 shlibpath_overrides_runpath=no
14699 need_lib_prefix=no
14700 export_dynamic_flag_spec='${wl}-Blargedynsym'
14701 runpath_var=LD_RUN_PATH
14702 ;;
14703 siemens)
14704 need_lib_prefix=no
14705 ;;
14706 motorola)
14707 need_lib_prefix=no
14708 need_version=no
14709 shlibpath_overrides_runpath=no
14710 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14711 ;;
14712 esac
14713 ;;
14714
14715sysv4*MP*)
14716 if test -d /usr/nec ;then
14717 version_type=linux
14718 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14719 soname_spec='$libname${shared_ext}.$major'
14720 shlibpath_var=LD_LIBRARY_PATH
14721 fi
14722 ;;
14723
14724sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14725 version_type=freebsd-elf
14726 need_lib_prefix=no
14727 need_version=no
14728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14729 soname_spec='${libname}${release}${shared_ext}$major'
14730 shlibpath_var=LD_LIBRARY_PATH
14731 hardcode_into_libs=yes
14732 if test "$with_gnu_ld" = yes; then
14733 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14734 shlibpath_overrides_runpath=no
14735 else
14736 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14737 shlibpath_overrides_runpath=yes
14738 case $host_os in
14739 sco3.2v5*)
14740 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14741 ;;
14742 esac
14743 fi
14744 sys_lib_dlsearch_path_spec='/usr/lib'
14745 ;;
14746
14747uts4*)
14748 version_type=linux
14749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14750 soname_spec='${libname}${release}${shared_ext}$major'
14751 shlibpath_var=LD_LIBRARY_PATH
14752 ;;
14753
14754*)
14755 dynamic_linker=no
14756 ;;
14757esac
14758{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14759echo "${ECHO_T}$dynamic_linker" >&6; }
14760test "$dynamic_linker" = no && can_build_shared=no
14761
56efe974
WP
14762if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14763 echo $ECHO_N "(cached) $ECHO_C" >&6
14764else
14765 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
14766fi
14767
14768sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14769if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14770 echo $ECHO_N "(cached) $ECHO_C" >&6
14771else
14772 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
14773fi
14774
14775sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14776
b57f37fb
WP
14777variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14778if test "$GCC" = yes; then
14779 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14780fi
14781
14782{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14783echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
14784hardcode_action_CXX=
14785if test -n "$hardcode_libdir_flag_spec_CXX" || \
14786 test -n "$runpath_var_CXX" || \
14787 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14788
14789 # We can hardcode non-existant directories.
14790 if test "$hardcode_direct_CXX" != no &&
14791 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14792 # have to relink, otherwise we might link with an installed library
14793 # when we should be linking with a yet-to-be-installed one
14794 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14795 test "$hardcode_minus_L_CXX" != no; then
14796 # Linking always hardcodes the temporary library directory.
14797 hardcode_action_CXX=relink
14798 else
14799 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14800 hardcode_action_CXX=immediate
14801 fi
14802else
14803 # We cannot hardcode anything, or else we can only hardcode existing
14804 # directories.
14805 hardcode_action_CXX=unsupported
14806fi
14807{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14808echo "${ECHO_T}$hardcode_action_CXX" >&6; }
14809
14810if test "$hardcode_action_CXX" = relink; then
14811 # Fast installation is not supported
14812 enable_fast_install=no
14813elif test "$shlibpath_overrides_runpath" = yes ||
14814 test "$enable_shared" = no; then
14815 # Fast installation is not necessary
14816 enable_fast_install=needless
14817fi
14818
14819
14820# The else clause should only fire when bootstrapping the
14821# libtool distribution, otherwise you forgot to ship ltmain.sh
14822# with your package, and you will get complaints that there are
14823# no rules to generate ltmain.sh.
14824if test -f "$ltmain"; then
14825 # See if we are running on zsh, and set the options which allow our commands through
14826 # without removal of \ escapes.
14827 if test -n "${ZSH_VERSION+set}" ; then
14828 setopt NO_GLOB_SUBST
14829 fi
14830 # Now quote all the things that may contain metacharacters while being
14831 # careful not to overquote the AC_SUBSTed values. We take copies of the
14832 # variables and quote the copies for generation of the libtool script.
14833 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14834 SED SHELL STRIP \
14835 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14836 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14837 deplibs_check_method reload_flag reload_cmds need_locks \
14838 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14839 lt_cv_sys_global_symbol_to_c_name_address \
14840 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14841 old_postinstall_cmds old_postuninstall_cmds \
14842 compiler_CXX \
14843 CC_CXX \
14844 LD_CXX \
14845 lt_prog_compiler_wl_CXX \
14846 lt_prog_compiler_pic_CXX \
14847 lt_prog_compiler_static_CXX \
14848 lt_prog_compiler_no_builtin_flag_CXX \
14849 export_dynamic_flag_spec_CXX \
14850 thread_safe_flag_spec_CXX \
14851 whole_archive_flag_spec_CXX \
14852 enable_shared_with_static_runtimes_CXX \
14853 old_archive_cmds_CXX \
14854 old_archive_from_new_cmds_CXX \
14855 predep_objects_CXX \
14856 postdep_objects_CXX \
14857 predeps_CXX \
14858 postdeps_CXX \
14859 compiler_lib_search_path_CXX \
56efe974 14860 compiler_lib_search_dirs_CXX \
b57f37fb
WP
14861 archive_cmds_CXX \
14862 archive_expsym_cmds_CXX \
14863 postinstall_cmds_CXX \
14864 postuninstall_cmds_CXX \
14865 old_archive_from_expsyms_cmds_CXX \
14866 allow_undefined_flag_CXX \
14867 no_undefined_flag_CXX \
14868 export_symbols_cmds_CXX \
14869 hardcode_libdir_flag_spec_CXX \
14870 hardcode_libdir_flag_spec_ld_CXX \
14871 hardcode_libdir_separator_CXX \
14872 hardcode_automatic_CXX \
14873 module_cmds_CXX \
14874 module_expsym_cmds_CXX \
14875 lt_cv_prog_compiler_c_o_CXX \
14876 fix_srcfile_path_CXX \
14877 exclude_expsyms_CXX \
14878 include_expsyms_CXX; do
14879
14880 case $var in
14881 old_archive_cmds_CXX | \
14882 old_archive_from_new_cmds_CXX | \
14883 archive_cmds_CXX | \
14884 archive_expsym_cmds_CXX | \
14885 module_cmds_CXX | \
14886 module_expsym_cmds_CXX | \
14887 old_archive_from_expsyms_cmds_CXX | \
14888 export_symbols_cmds_CXX | \
14889 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14890 postinstall_cmds | postuninstall_cmds | \
14891 old_postinstall_cmds | old_postuninstall_cmds | \
14892 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14893 # Double-quote double-evaled strings.
14894 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14895 ;;
14896 *)
14897 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14898 ;;
14899 esac
14900 done
14901
14902 case $lt_echo in
14903 *'\$0 --fallback-echo"')
14904 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14905 ;;
14906 esac
14907
14908cfgfile="$ofile"
14909
14910 cat <<__EOF__ >> "$cfgfile"
14911# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14912
14913# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14914
14915# Shell to use when invoking shell scripts.
14916SHELL=$lt_SHELL
14917
14918# Whether or not to build shared libraries.
14919build_libtool_libs=$enable_shared
14920
14921# Whether or not to build static libraries.
14922build_old_libs=$enable_static
14923
14924# Whether or not to add -lc for building shared libraries.
14925build_libtool_need_lc=$archive_cmds_need_lc_CXX
14926
14927# Whether or not to disallow shared libs when runtime libs are static
14928allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14929
14930# Whether or not to optimize for fast installation.
14931fast_install=$enable_fast_install
14932
14933# The host system.
14934host_alias=$host_alias
14935host=$host
14936host_os=$host_os
14937
14938# The build system.
14939build_alias=$build_alias
14940build=$build
14941build_os=$build_os
14942
14943# An echo program that does not interpret backslashes.
14944echo=$lt_echo
14945
14946# The archiver.
14947AR=$lt_AR
14948AR_FLAGS=$lt_AR_FLAGS
14949
14950# A C compiler.
14951LTCC=$lt_LTCC
14952
14953# LTCC compiler flags.
14954LTCFLAGS=$lt_LTCFLAGS
14955
14956# A language-specific compiler.
14957CC=$lt_compiler_CXX
14958
14959# Is the compiler the GNU C compiler?
14960with_gcc=$GCC_CXX
14961
14962# An ERE matcher.
14963EGREP=$lt_EGREP
14964
14965# The linker used to build libraries.
14966LD=$lt_LD_CXX
14967
14968# Whether we need hard or soft links.
14969LN_S=$lt_LN_S
14970
14971# A BSD-compatible nm program.
14972NM=$lt_NM
14973
14974# A symbol stripping program
14975STRIP=$lt_STRIP
14976
14977# Used to examine libraries when file_magic_cmd begins "file"
14978MAGIC_CMD=$MAGIC_CMD
14979
14980# Used on cygwin: DLL creation program.
14981DLLTOOL="$DLLTOOL"
14982
14983# Used on cygwin: object dumper.
14984OBJDUMP="$OBJDUMP"
14985
14986# Used on cygwin: assembler.
14987AS="$AS"
14988
14989# The name of the directory that contains temporary libtool files.
14990objdir=$objdir
14991
14992# How to create reloadable object files.
14993reload_flag=$lt_reload_flag
14994reload_cmds=$lt_reload_cmds
14995
14996# How to pass a linker flag through the compiler.
14997wl=$lt_lt_prog_compiler_wl_CXX
14998
14999# Object file suffix (normally "o").
15000objext="$ac_objext"
15001
15002# Old archive suffix (normally "a").
15003libext="$libext"
15004
15005# Shared library suffix (normally ".so").
15006shrext_cmds='$shrext_cmds'
15007
15008# Executable file suffix (normally "").
15009exeext="$exeext"
15010
15011# Additional compiler flags for building library objects.
15012pic_flag=$lt_lt_prog_compiler_pic_CXX
15013pic_mode=$pic_mode
15014
15015# What is the maximum length of a command?
15016max_cmd_len=$lt_cv_sys_max_cmd_len
15017
15018# Does compiler simultaneously support -c and -o options?
15019compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
15020
15021# Must we lock files when doing compilation?
15022need_locks=$lt_need_locks
15023
15024# Do we need the lib prefix for modules?
15025need_lib_prefix=$need_lib_prefix
15026
15027# Do we need a version for libraries?
15028need_version=$need_version
15029
15030# Whether dlopen is supported.
15031dlopen_support=$enable_dlopen
15032
15033# Whether dlopen of programs is supported.
15034dlopen_self=$enable_dlopen_self
15035
15036# Whether dlopen of statically linked programs is supported.
15037dlopen_self_static=$enable_dlopen_self_static
15038
15039# Compiler flag to prevent dynamic linking.
15040link_static_flag=$lt_lt_prog_compiler_static_CXX
15041
15042# Compiler flag to turn off builtin functions.
15043no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
15044
15045# Compiler flag to allow reflexive dlopens.
15046export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
15047
15048# Compiler flag to generate shared objects directly from archives.
15049whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
15050
15051# Compiler flag to generate thread-safe objects.
15052thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
15053
15054# Library versioning type.
15055version_type=$version_type
15056
15057# Format of library name prefix.
15058libname_spec=$lt_libname_spec
15059
15060# List of archive names. First name is the real one, the rest are links.
15061# The last name is the one that the linker finds with -lNAME.
15062library_names_spec=$lt_library_names_spec
15063
15064# The coded name of the library, if different from the real name.
15065soname_spec=$lt_soname_spec
15066
15067# Commands used to build and install an old-style archive.
15068RANLIB=$lt_RANLIB
15069old_archive_cmds=$lt_old_archive_cmds_CXX
15070old_postinstall_cmds=$lt_old_postinstall_cmds
15071old_postuninstall_cmds=$lt_old_postuninstall_cmds
15072
15073# Create an old-style archive from a shared archive.
15074old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
15075
15076# Create a temporary old-style archive to link instead of a shared archive.
15077old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
15078
15079# Commands used to build and install a shared archive.
15080archive_cmds=$lt_archive_cmds_CXX
15081archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
15082postinstall_cmds=$lt_postinstall_cmds
15083postuninstall_cmds=$lt_postuninstall_cmds
15084
15085# Commands used to build a loadable module (assumed same as above if empty)
15086module_cmds=$lt_module_cmds_CXX
15087module_expsym_cmds=$lt_module_expsym_cmds_CXX
15088
15089# Commands to strip libraries.
15090old_striplib=$lt_old_striplib
15091striplib=$lt_striplib
15092
15093# Dependencies to place before the objects being linked to create a
15094# shared library.
15095predep_objects=$lt_predep_objects_CXX
15096
15097# Dependencies to place after the objects being linked to create a
15098# shared library.
15099postdep_objects=$lt_postdep_objects_CXX
15100
15101# Dependencies to place before the objects being linked to create a
15102# shared library.
15103predeps=$lt_predeps_CXX
15104
15105# Dependencies to place after the objects being linked to create a
15106# shared library.
15107postdeps=$lt_postdeps_CXX
15108
56efe974
WP
15109# The directories searched by this compiler when creating a shared
15110# library
15111compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
15112
b57f37fb
WP
15113# The library search path used internally by the compiler when linking
15114# a shared library.
15115compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
15116
15117# Method to check whether dependent libraries are shared objects.
15118deplibs_check_method=$lt_deplibs_check_method
15119
15120# Command to use when deplibs_check_method == file_magic.
15121file_magic_cmd=$lt_file_magic_cmd
15122
15123# Flag that allows shared libraries with undefined symbols to be built.
15124allow_undefined_flag=$lt_allow_undefined_flag_CXX
15125
15126# Flag that forces no undefined symbols.
15127no_undefined_flag=$lt_no_undefined_flag_CXX
15128
15129# Commands used to finish a libtool library installation in a directory.
15130finish_cmds=$lt_finish_cmds
15131
15132# Same as above, but a single script fragment to be evaled but not shown.
15133finish_eval=$lt_finish_eval
15134
15135# Take the output of nm and produce a listing of raw symbols and C names.
15136global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15137
15138# Transform the output of nm in a proper C declaration
15139global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15140
15141# Transform the output of nm in a C name address pair
15142global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15143
15144# This is the shared library runtime path variable.
15145runpath_var=$runpath_var
15146
15147# This is the shared library path variable.
15148shlibpath_var=$shlibpath_var
15149
15150# Is shlibpath searched before the hard-coded library search path?
15151shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15152
15153# How to hardcode a shared library path into an executable.
15154hardcode_action=$hardcode_action_CXX
15155
15156# Whether we should hardcode library paths into libraries.
15157hardcode_into_libs=$hardcode_into_libs
15158
15159# Flag to hardcode \$libdir into a binary during linking.
15160# This must work even if \$libdir does not exist.
15161hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
15162
15163# If ld is used when linking, flag to hardcode \$libdir into
15164# a binary during linking. This must work even if \$libdir does
15165# not exist.
15166hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
15167
15168# Whether we need a single -rpath flag with a separated argument.
15169hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
15170
15171# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15172# resulting binary.
15173hardcode_direct=$hardcode_direct_CXX
15174
15175# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15176# resulting binary.
15177hardcode_minus_L=$hardcode_minus_L_CXX
15178
15179# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15180# the resulting binary.
15181hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
15182
15183# Set to yes if building a shared library automatically hardcodes DIR into the library
15184# and all subsequent libraries and executables linked against it.
15185hardcode_automatic=$hardcode_automatic_CXX
15186
15187# Variables whose values should be saved in libtool wrapper scripts and
15188# restored at relink time.
15189variables_saved_for_relink="$variables_saved_for_relink"
15190
15191# Whether libtool must link a program against all its dependency libraries.
15192link_all_deplibs=$link_all_deplibs_CXX
15193
15194# Compile-time system search path for libraries
15195sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15196
15197# Run-time system search path for libraries
15198sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15199
15200# Fix the shell variable \$srcfile for the compiler.
15201fix_srcfile_path=$lt_fix_srcfile_path
15202
15203# Set to yes if exported symbols are required.
15204always_export_symbols=$always_export_symbols_CXX
15205
15206# The commands to list exported symbols.
15207export_symbols_cmds=$lt_export_symbols_cmds_CXX
15208
15209# The commands to extract the exported symbol list from a shared archive.
15210extract_expsyms_cmds=$lt_extract_expsyms_cmds
15211
15212# Symbols that should not be listed in the preloaded symbols.
15213exclude_expsyms=$lt_exclude_expsyms_CXX
15214
15215# Symbols that must always be exported.
15216include_expsyms=$lt_include_expsyms_CXX
15217
15218# ### END LIBTOOL TAG CONFIG: $tagname
15219
15220__EOF__
15221
15222
15223else
15224 # If there is no Makefile yet, we rely on a make rule to execute
15225 # `config.status --recheck' to rerun these tests and create the
15226 # libtool script then.
15227 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15228 if test -f "$ltmain_in"; then
15229 test -f Makefile && make "$ltmain"
15230 fi
15231fi
15232
15233
15234ac_ext=c
15235ac_cpp='$CPP $CPPFLAGS'
15236ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15237ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15238ac_compiler_gnu=$ac_cv_c_compiler_gnu
15239
15240CC=$lt_save_CC
15241LDCXX=$LD
15242LD=$lt_save_LD
15243GCC=$lt_save_GCC
15244with_gnu_ldcxx=$with_gnu_ld
15245with_gnu_ld=$lt_save_with_gnu_ld
15246lt_cv_path_LDCXX=$lt_cv_path_LD
15247lt_cv_path_LD=$lt_save_path_LD
15248lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15249lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15250
15251 else
15252 tagname=""
15253 fi
15254 ;;
15255
15256 F77)
15257 if test -n "$F77" && test "X$F77" != "Xno"; then
15258
15259ac_ext=f
15260ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
15261ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15262ac_compiler_gnu=$ac_cv_f77_compiler_gnu
15263
15264
15265archive_cmds_need_lc_F77=no
15266allow_undefined_flag_F77=
15267always_export_symbols_F77=no
15268archive_expsym_cmds_F77=
15269export_dynamic_flag_spec_F77=
15270hardcode_direct_F77=no
15271hardcode_libdir_flag_spec_F77=
15272hardcode_libdir_flag_spec_ld_F77=
15273hardcode_libdir_separator_F77=
15274hardcode_minus_L_F77=no
15275hardcode_automatic_F77=no
15276module_cmds_F77=
15277module_expsym_cmds_F77=
15278link_all_deplibs_F77=unknown
15279old_archive_cmds_F77=$old_archive_cmds
15280no_undefined_flag_F77=
15281whole_archive_flag_spec_F77=
15282enable_shared_with_static_runtimes_F77=no
15283
15284# Source file extension for f77 test sources.
15285ac_ext=f
15286
15287# Object file extension for compiled f77 test sources.
15288objext=o
15289objext_F77=$objext
15290
15291# Code to be used in simple compile tests
15292lt_simple_compile_test_code="\
15293 subroutine t
15294 return
15295 end
15296"
15297
15298# Code to be used in simple link tests
15299lt_simple_link_test_code="\
15300 program t
15301 end
15302"
15303
15304# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15305
15306# If no C compiler was specified, use CC.
15307LTCC=${LTCC-"$CC"}
15308
15309# If no C compiler flags were specified, use CFLAGS.
15310LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15311
15312# Allow CC to be a program name with arguments.
15313compiler=$CC
15314
15315
15316# save warnings/boilerplate of simple test code
15317ac_outfile=conftest.$ac_objext
15318echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15319eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15320_lt_compiler_boilerplate=`cat conftest.err`
15321$rm conftest*
15322
15323ac_outfile=conftest.$ac_objext
15324echo "$lt_simple_link_test_code" >conftest.$ac_ext
15325eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15326_lt_linker_boilerplate=`cat conftest.err`
56efe974 15327$rm -r conftest*
b57f37fb
WP
15328
15329
15330# Allow CC to be a program name with arguments.
15331lt_save_CC="$CC"
15332CC=${F77-"f77"}
15333compiler=$CC
15334compiler_F77=$CC
15335for cc_temp in $compiler""; do
15336 case $cc_temp in
15337 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15338 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15339 \-*) ;;
15340 *) break;;
15341 esac
15342done
15343cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15344
15345
15346{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
15347echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
15348{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
15349echo "${ECHO_T}$can_build_shared" >&6; }
15350
15351{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
15352echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
15353test "$can_build_shared" = "no" && enable_shared=no
15354
15355# On AIX, shared libraries and static libraries use the same namespace, and
15356# are all built from PIC.
15357case $host_os in
15358aix3*)
15359 test "$enable_shared" = yes && enable_static=no
15360 if test -n "$RANLIB"; then
15361 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15362 postinstall_cmds='$RANLIB $lib'
15363 fi
15364 ;;
56efe974 15365aix[4-9]*)
b57f37fb
WP
15366 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15367 test "$enable_shared" = yes && enable_static=no
15368 fi
15369 ;;
15370esac
15371{ echo "$as_me:$LINENO: result: $enable_shared" >&5
15372echo "${ECHO_T}$enable_shared" >&6; }
15373
15374{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
15375echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
15376# Make sure either enable_shared or enable_static is yes.
15377test "$enable_shared" = yes || enable_static=yes
15378{ echo "$as_me:$LINENO: result: $enable_static" >&5
15379echo "${ECHO_T}$enable_static" >&6; }
15380
15381GCC_F77="$G77"
15382LD_F77="$LD"
15383
15384lt_prog_compiler_wl_F77=
15385lt_prog_compiler_pic_F77=
15386lt_prog_compiler_static_F77=
15387
15388{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15389echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
15390
15391 if test "$GCC" = yes; then
15392 lt_prog_compiler_wl_F77='-Wl,'
15393 lt_prog_compiler_static_F77='-static'
15394
15395 case $host_os in
15396 aix*)
15397 # All AIX code is PIC.
15398 if test "$host_cpu" = ia64; then
15399 # AIX 5 now supports IA64 processor
15400 lt_prog_compiler_static_F77='-Bstatic'
15401 fi
15402 ;;
15403
15404 amigaos*)
15405 # FIXME: we need at least 68020 code to build shared libraries, but
15406 # adding the `-m68020' flag to GCC prevents building anything better,
15407 # like `-m68040'.
15408 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
15409 ;;
15410
15411 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15412 # PIC is the default for these OSes.
15413 ;;
15414
15415 mingw* | cygwin* | pw32* | os2*)
15416 # This hack is so that the source file can tell whether it is being
15417 # built for inclusion in a dll (and should export symbols for example).
15418 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15419 # (--disable-auto-import) libraries
15420 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15421 ;;
15422
15423 darwin* | rhapsody*)
15424 # PIC is the default on this platform
15425 # Common symbols not allowed in MH_DYLIB files
15426 lt_prog_compiler_pic_F77='-fno-common'
15427 ;;
15428
15429 interix[3-9]*)
15430 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15431 # Instead, we relocate shared libraries at runtime.
15432 ;;
15433
15434 msdosdjgpp*)
15435 # Just because we use GCC doesn't mean we suddenly get shared libraries
15436 # on systems that don't support them.
15437 lt_prog_compiler_can_build_shared_F77=no
15438 enable_shared=no
15439 ;;
15440
15441 sysv4*MP*)
15442 if test -d /usr/nec; then
15443 lt_prog_compiler_pic_F77=-Kconform_pic
15444 fi
15445 ;;
15446
15447 hpux*)
15448 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15449 # not for PA HP-UX.
15450 case $host_cpu in
15451 hppa*64*|ia64*)
15452 # +Z the default
15453 ;;
15454 *)
15455 lt_prog_compiler_pic_F77='-fPIC'
15456 ;;
15457 esac
15458 ;;
15459
15460 *)
15461 lt_prog_compiler_pic_F77='-fPIC'
15462 ;;
15463 esac
15464 else
15465 # PORTME Check for flag to pass linker flags through the system compiler.
15466 case $host_os in
15467 aix*)
15468 lt_prog_compiler_wl_F77='-Wl,'
15469 if test "$host_cpu" = ia64; then
15470 # AIX 5 now supports IA64 processor
15471 lt_prog_compiler_static_F77='-Bstatic'
15472 else
15473 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
15474 fi
15475 ;;
15476 darwin*)
15477 # PIC is the default on this platform
15478 # Common symbols not allowed in MH_DYLIB files
15479 case $cc_basename in
15480 xlc*)
15481 lt_prog_compiler_pic_F77='-qnocommon'
15482 lt_prog_compiler_wl_F77='-Wl,'
15483 ;;
15484 esac
15485 ;;
15486
15487 mingw* | cygwin* | pw32* | os2*)
15488 # This hack is so that the source file can tell whether it is being
15489 # built for inclusion in a dll (and should export symbols for example).
15490 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15491 ;;
15492
15493 hpux9* | hpux10* | hpux11*)
15494 lt_prog_compiler_wl_F77='-Wl,'
15495 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15496 # not for PA HP-UX.
15497 case $host_cpu in
15498 hppa*64*|ia64*)
15499 # +Z the default
15500 ;;
15501 *)
15502 lt_prog_compiler_pic_F77='+Z'
15503 ;;
15504 esac
15505 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15506 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
15507 ;;
15508
15509 irix5* | irix6* | nonstopux*)
15510 lt_prog_compiler_wl_F77='-Wl,'
15511 # PIC (with -KPIC) is the default.
15512 lt_prog_compiler_static_F77='-non_shared'
15513 ;;
15514
15515 newsos6)
15516 lt_prog_compiler_pic_F77='-KPIC'
15517 lt_prog_compiler_static_F77='-Bstatic'
15518 ;;
15519
15520 linux* | k*bsd*-gnu)
15521 case $cc_basename in
15522 icc* | ecc*)
15523 lt_prog_compiler_wl_F77='-Wl,'
15524 lt_prog_compiler_pic_F77='-KPIC'
15525 lt_prog_compiler_static_F77='-static'
15526 ;;
15527 pgcc* | pgf77* | pgf90* | pgf95*)
15528 # Portland Group compilers (*not* the Pentium gcc compiler,
15529 # which looks to be a dead project)
15530 lt_prog_compiler_wl_F77='-Wl,'
15531 lt_prog_compiler_pic_F77='-fpic'
15532 lt_prog_compiler_static_F77='-Bstatic'
15533 ;;
15534 ccc*)
15535 lt_prog_compiler_wl_F77='-Wl,'
15536 # All Alpha code is PIC.
15537 lt_prog_compiler_static_F77='-non_shared'
15538 ;;
15539 *)
15540 case `$CC -V 2>&1 | sed 5q` in
15541 *Sun\ C*)
15542 # Sun C 5.9
15543 lt_prog_compiler_pic_F77='-KPIC'
15544 lt_prog_compiler_static_F77='-Bstatic'
15545 lt_prog_compiler_wl_F77='-Wl,'
15546 ;;
15547 *Sun\ F*)
15548 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15549 lt_prog_compiler_pic_F77='-KPIC'
15550 lt_prog_compiler_static_F77='-Bstatic'
15551 lt_prog_compiler_wl_F77=''
15552 ;;
15553 esac
15554 ;;
15555 esac
15556 ;;
15557
15558 osf3* | osf4* | osf5*)
15559 lt_prog_compiler_wl_F77='-Wl,'
15560 # All OSF/1 code is PIC.
15561 lt_prog_compiler_static_F77='-non_shared'
15562 ;;
15563
15564 rdos*)
15565 lt_prog_compiler_static_F77='-non_shared'
15566 ;;
15567
15568 solaris*)
15569 lt_prog_compiler_pic_F77='-KPIC'
15570 lt_prog_compiler_static_F77='-Bstatic'
15571 case $cc_basename in
15572 f77* | f90* | f95*)
15573 lt_prog_compiler_wl_F77='-Qoption ld ';;
15574 *)
15575 lt_prog_compiler_wl_F77='-Wl,';;
15576 esac
15577 ;;
15578
15579 sunos4*)
15580 lt_prog_compiler_wl_F77='-Qoption ld '
15581 lt_prog_compiler_pic_F77='-PIC'
15582 lt_prog_compiler_static_F77='-Bstatic'
15583 ;;
15584
15585 sysv4 | sysv4.2uw2* | sysv4.3*)
15586 lt_prog_compiler_wl_F77='-Wl,'
15587 lt_prog_compiler_pic_F77='-KPIC'
15588 lt_prog_compiler_static_F77='-Bstatic'
15589 ;;
15590
15591 sysv4*MP*)
15592 if test -d /usr/nec ;then
15593 lt_prog_compiler_pic_F77='-Kconform_pic'
15594 lt_prog_compiler_static_F77='-Bstatic'
15595 fi
15596 ;;
15597
15598 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15599 lt_prog_compiler_wl_F77='-Wl,'
15600 lt_prog_compiler_pic_F77='-KPIC'
15601 lt_prog_compiler_static_F77='-Bstatic'
15602 ;;
15603
15604 unicos*)
15605 lt_prog_compiler_wl_F77='-Wl,'
15606 lt_prog_compiler_can_build_shared_F77=no
15607 ;;
15608
15609 uts4*)
15610 lt_prog_compiler_pic_F77='-pic'
15611 lt_prog_compiler_static_F77='-Bstatic'
15612 ;;
15613
15614 *)
15615 lt_prog_compiler_can_build_shared_F77=no
15616 ;;
15617 esac
15618 fi
15619
15620{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15621echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
15622
15623#
15624# Check to make sure the PIC flag actually works.
15625#
15626if test -n "$lt_prog_compiler_pic_F77"; then
15627
15628{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15629echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
56efe974 15630if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
b57f37fb
WP
15631 echo $ECHO_N "(cached) $ECHO_C" >&6
15632else
56efe974 15633 lt_cv_prog_compiler_pic_works_F77=no
b57f37fb
WP
15634 ac_outfile=conftest.$ac_objext
15635 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15636 lt_compiler_flag="$lt_prog_compiler_pic_F77"
15637 # Insert the option either (1) after the last *FLAGS variable, or
15638 # (2) before a word containing "conftest.", or (3) at the end.
15639 # Note that $ac_compile itself does not contain backslashes and begins
15640 # with a dollar sign (not a hyphen), so the echo should work correctly.
15641 # The option is referenced via a variable to avoid confusing sed.
15642 lt_compile=`echo "$ac_compile" | $SED \
15643 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15644 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15645 -e 's:$: $lt_compiler_flag:'`
dd910409 15646 (eval echo "\"\$as_me:15646: $lt_compile\"" >&5)
b57f37fb
WP
15647 (eval "$lt_compile" 2>conftest.err)
15648 ac_status=$?
15649 cat conftest.err >&5
dd910409 15650 echo "$as_me:15650: \$? = $ac_status" >&5
b57f37fb
WP
15651 if (exit $ac_status) && test -s "$ac_outfile"; then
15652 # The compiler can only warn and ignore the option if not recognized
15653 # So say no if there are warnings other than the usual output.
15654 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15655 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15656 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
56efe974 15657 lt_cv_prog_compiler_pic_works_F77=yes
b57f37fb
WP
15658 fi
15659 fi
15660 $rm conftest*
15661
15662fi
56efe974
WP
15663{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
15664echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
b57f37fb 15665
56efe974 15666if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
b57f37fb
WP
15667 case $lt_prog_compiler_pic_F77 in
15668 "" | " "*) ;;
15669 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15670 esac
15671else
15672 lt_prog_compiler_pic_F77=
15673 lt_prog_compiler_can_build_shared_F77=no
15674fi
15675
15676fi
15677case $host_os in
15678 # For platforms which do not support PIC, -DPIC is meaningless:
15679 *djgpp*)
15680 lt_prog_compiler_pic_F77=
15681 ;;
15682 *)
15683 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
15684 ;;
15685esac
15686
15687#
15688# Check to make sure the static flag actually works.
15689#
15690wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
15691{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15692echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
56efe974 15693if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
b57f37fb
WP
15694 echo $ECHO_N "(cached) $ECHO_C" >&6
15695else
56efe974 15696 lt_cv_prog_compiler_static_works_F77=no
b57f37fb
WP
15697 save_LDFLAGS="$LDFLAGS"
15698 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15699 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15700 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15701 # The linker can only warn and ignore the option if not recognized
15702 # So say no if there are warnings
15703 if test -s conftest.err; then
15704 # Append any errors to the config.log.
15705 cat conftest.err 1>&5
15706 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15707 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15708 if diff conftest.exp conftest.er2 >/dev/null; then
56efe974 15709 lt_cv_prog_compiler_static_works_F77=yes
b57f37fb
WP
15710 fi
15711 else
56efe974 15712 lt_cv_prog_compiler_static_works_F77=yes
b57f37fb
WP
15713 fi
15714 fi
56efe974 15715 $rm -r conftest*
b57f37fb
WP
15716 LDFLAGS="$save_LDFLAGS"
15717
15718fi
56efe974
WP
15719{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
15720echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
b57f37fb 15721
56efe974 15722if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
b57f37fb
WP
15723 :
15724else
15725 lt_prog_compiler_static_F77=
15726fi
15727
15728
15729{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15730echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15731if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15732 echo $ECHO_N "(cached) $ECHO_C" >&6
15733else
15734 lt_cv_prog_compiler_c_o_F77=no
15735 $rm -r conftest 2>/dev/null
15736 mkdir conftest
15737 cd conftest
15738 mkdir out
15739 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15740
15741 lt_compiler_flag="-o out/conftest2.$ac_objext"
15742 # Insert the option either (1) after the last *FLAGS variable, or
15743 # (2) before a word containing "conftest.", or (3) at the end.
15744 # Note that $ac_compile itself does not contain backslashes and begins
15745 # with a dollar sign (not a hyphen), so the echo should work correctly.
15746 lt_compile=`echo "$ac_compile" | $SED \
15747 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15748 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15749 -e 's:$: $lt_compiler_flag:'`
dd910409 15750 (eval echo "\"\$as_me:15750: $lt_compile\"" >&5)
b57f37fb
WP
15751 (eval "$lt_compile" 2>out/conftest.err)
15752 ac_status=$?
15753 cat out/conftest.err >&5
dd910409 15754 echo "$as_me:15754: \$? = $ac_status" >&5
b57f37fb
WP
15755 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15756 then
15757 # The compiler can only warn and ignore the option if not recognized
15758 # So say no if there are warnings
15759 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15760 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15761 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15762 lt_cv_prog_compiler_c_o_F77=yes
15763 fi
15764 fi
15765 chmod u+w . 2>&5
15766 $rm conftest*
15767 # SGI C++ compiler will create directory out/ii_files/ for
15768 # template instantiation
15769 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15770 $rm out/* && rmdir out
15771 cd ..
15772 rmdir conftest
15773 $rm conftest*
15774
15775fi
15776{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15777echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
15778
15779
15780hard_links="nottested"
15781if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15782 # do not overwrite the value of need_locks provided by the user
15783 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15784echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15785 hard_links=yes
15786 $rm conftest*
15787 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15788 touch conftest.a
15789 ln conftest.a conftest.b 2>&5 || hard_links=no
15790 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15791 { echo "$as_me:$LINENO: result: $hard_links" >&5
15792echo "${ECHO_T}$hard_links" >&6; }
15793 if test "$hard_links" = no; then
15794 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15795echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15796 need_locks=warn
15797 fi
15798else
15799 need_locks=no
15800fi
15801
15802{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15803echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15804
15805 runpath_var=
15806 allow_undefined_flag_F77=
15807 enable_shared_with_static_runtimes_F77=no
15808 archive_cmds_F77=
15809 archive_expsym_cmds_F77=
15810 old_archive_From_new_cmds_F77=
15811 old_archive_from_expsyms_cmds_F77=
15812 export_dynamic_flag_spec_F77=
15813 whole_archive_flag_spec_F77=
15814 thread_safe_flag_spec_F77=
15815 hardcode_libdir_flag_spec_F77=
15816 hardcode_libdir_flag_spec_ld_F77=
15817 hardcode_libdir_separator_F77=
15818 hardcode_direct_F77=no
15819 hardcode_minus_L_F77=no
15820 hardcode_shlibpath_var_F77=unsupported
15821 link_all_deplibs_F77=unknown
15822 hardcode_automatic_F77=no
15823 module_cmds_F77=
15824 module_expsym_cmds_F77=
15825 always_export_symbols_F77=no
15826 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15827 # include_expsyms should be a list of space-separated symbols to be *always*
15828 # included in the symbol list
15829 include_expsyms_F77=
15830 # exclude_expsyms can be an extended regexp of symbols to exclude
15831 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15832 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15833 # as well as any symbol that contains `d'.
56efe974 15834 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
b57f37fb
WP
15835 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15836 # platforms (ab)use it in PIC code, but their linkers get confused if
15837 # the symbol is explicitly referenced. Since portable code cannot
15838 # rely on this symbol name, it's probably fine to never include it in
15839 # preloaded symbol tables.
56efe974 15840 # Exclude shared library initialization/finalization symbols.
b57f37fb
WP
15841 extract_expsyms_cmds=
15842 # Just being paranoid about ensuring that cc_basename is set.
15843 for cc_temp in $compiler""; do
15844 case $cc_temp in
15845 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15846 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15847 \-*) ;;
15848 *) break;;
15849 esac
15850done
15851cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15852
15853 case $host_os in
15854 cygwin* | mingw* | pw32*)
15855 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15856 # When not using gcc, we currently assume that we are using
15857 # Microsoft Visual C++.
15858 if test "$GCC" != yes; then
15859 with_gnu_ld=no
15860 fi
15861 ;;
15862 interix*)
15863 # we just hope/assume this is gcc and not c89 (= MSVC++)
15864 with_gnu_ld=yes
15865 ;;
15866 openbsd*)
15867 with_gnu_ld=no
15868 ;;
15869 esac
15870
15871 ld_shlibs_F77=yes
15872 if test "$with_gnu_ld" = yes; then
15873 # If archive_cmds runs LD, not CC, wlarc should be empty
15874 wlarc='${wl}'
15875
15876 # Set some defaults for GNU ld with shared library support. These
15877 # are reset later if shared libraries are not supported. Putting them
15878 # here allows them to be overridden if necessary.
15879 runpath_var=LD_RUN_PATH
15880 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15881 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15882 # ancient GNU ld didn't support --whole-archive et. al.
15883 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15884 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15885 else
15886 whole_archive_flag_spec_F77=
15887 fi
15888 supports_anon_versioning=no
15889 case `$LD -v 2>/dev/null` in
15890 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15891 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15892 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15893 *\ 2.11.*) ;; # other 2.11 versions
15894 *) supports_anon_versioning=yes ;;
15895 esac
15896
15897 # See if GNU ld supports shared libraries.
15898 case $host_os in
56efe974 15899 aix[3-9]*)
b57f37fb
WP
15900 # On AIX/PPC, the GNU linker is very broken
15901 if test "$host_cpu" != ia64; then
15902 ld_shlibs_F77=no
15903 cat <<EOF 1>&2
15904
15905*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15906*** to be unable to reliably create shared libraries on AIX.
15907*** Therefore, libtool is disabling shared libraries support. If you
15908*** really care for shared libraries, you may want to modify your PATH
15909*** so that a non-GNU linker is found, and then restart.
15910
15911EOF
15912 fi
15913 ;;
15914
15915 amigaos*)
15916 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)'
15917 hardcode_libdir_flag_spec_F77='-L$libdir'
15918 hardcode_minus_L_F77=yes
15919
15920 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15921 # that the semantics of dynamic libraries on AmigaOS, at least up
15922 # to version 4, is to share data among multiple programs linked
15923 # with the same dynamic library. Since this doesn't match the
15924 # behavior of shared libraries on other platforms, we can't use
15925 # them.
15926 ld_shlibs_F77=no
15927 ;;
15928
15929 beos*)
15930 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15931 allow_undefined_flag_F77=unsupported
15932 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15933 # support --undefined. This deserves some investigation. FIXME
15934 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15935 else
15936 ld_shlibs_F77=no
15937 fi
15938 ;;
15939
15940 cygwin* | mingw* | pw32*)
15941 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15942 # as there is no search path for DLLs.
15943 hardcode_libdir_flag_spec_F77='-L$libdir'
15944 allow_undefined_flag_F77=unsupported
15945 always_export_symbols_F77=no
15946 enable_shared_with_static_runtimes_F77=yes
15947 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15948
15949 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15950 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15951 # If the export-symbols file already is a .def file (1st line
15952 # is EXPORTS), use it as is; otherwise, prepend...
15953 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15954 cp $export_symbols $output_objdir/$soname.def;
15955 else
15956 echo EXPORTS > $output_objdir/$soname.def;
15957 cat $export_symbols >> $output_objdir/$soname.def;
15958 fi~
15959 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15960 else
15961 ld_shlibs_F77=no
15962 fi
15963 ;;
15964
15965 interix[3-9]*)
15966 hardcode_direct_F77=no
15967 hardcode_shlibpath_var_F77=no
15968 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15969 export_dynamic_flag_spec_F77='${wl}-E'
15970 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15971 # Instead, shared libraries are loaded at an image base (0x10000000 by
15972 # default) and relocated if they conflict, which is a slow very memory
15973 # consuming and fragmenting process. To avoid this, we pick a random,
15974 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15975 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15976 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'
15977 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'
15978 ;;
15979
15980 gnu* | linux* | k*bsd*-gnu)
15981 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15982 tmp_addflag=
15983 case $cc_basename,$host_cpu in
15984 pgcc*) # Portland Group C compiler
15985 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'
15986 tmp_addflag=' $pic_flag'
15987 ;;
15988 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15989 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'
15990 tmp_addflag=' $pic_flag -Mnomain' ;;
15991 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15992 tmp_addflag=' -i_dynamic' ;;
15993 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15994 tmp_addflag=' -i_dynamic -nofor_main' ;;
15995 ifc* | ifort*) # Intel Fortran compiler
15996 tmp_addflag=' -nofor_main' ;;
15997 esac
15998 case `$CC -V 2>&1 | sed 5q` in
15999 *Sun\ C*) # Sun C 5.9
16000 whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16001 tmp_sharedflag='-G' ;;
16002 *Sun\ F*) # Sun Fortran 8.3
16003 tmp_sharedflag='-G' ;;
16004 *)
16005 tmp_sharedflag='-shared' ;;
16006 esac
16007 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16008
16009 if test $supports_anon_versioning = yes; then
16010 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
16011 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16012 $echo "local: *; };" >> $output_objdir/$libname.ver~
16013 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16014 fi
16015 link_all_deplibs_F77=no
16016 else
16017 ld_shlibs_F77=no
16018 fi
16019 ;;
16020
16021 netbsd* | netbsdelf*-gnu)
16022 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16023 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16024 wlarc=
16025 else
16026 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16027 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16028 fi
16029 ;;
16030
16031 solaris*)
16032 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16033 ld_shlibs_F77=no
16034 cat <<EOF 1>&2
16035
16036*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16037*** create shared libraries on Solaris systems. Therefore, libtool
16038*** is disabling shared libraries support. We urge you to upgrade GNU
16039*** binutils to release 2.9.1 or newer. Another option is to modify
16040*** your PATH or compiler configuration so that the native linker is
16041*** used, and then restart.
16042
16043EOF
16044 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16045 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16046 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16047 else
16048 ld_shlibs_F77=no
16049 fi
16050 ;;
16051
16052 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16053 case `$LD -v 2>&1` in
16054 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16055 ld_shlibs_F77=no
16056 cat <<_LT_EOF 1>&2
16057
16058*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16059*** reliably create shared libraries on SCO systems. Therefore, libtool
16060*** is disabling shared libraries support. We urge you to upgrade GNU
16061*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16062*** your PATH or compiler configuration so that the native linker is
16063*** used, and then restart.
16064
16065_LT_EOF
16066 ;;
16067 *)
16068 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16069 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16070 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16071 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16072 else
16073 ld_shlibs_F77=no
16074 fi
16075 ;;
16076 esac
16077 ;;
16078
16079 sunos4*)
16080 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16081 wlarc=
16082 hardcode_direct_F77=yes
16083 hardcode_shlibpath_var_F77=no
16084 ;;
16085
16086 *)
16087 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16088 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16089 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16090 else
16091 ld_shlibs_F77=no
16092 fi
16093 ;;
16094 esac
16095
16096 if test "$ld_shlibs_F77" = no; then
16097 runpath_var=
16098 hardcode_libdir_flag_spec_F77=
16099 export_dynamic_flag_spec_F77=
16100 whole_archive_flag_spec_F77=
16101 fi
16102 else
16103 # PORTME fill in a description of your system's linker (not GNU ld)
16104 case $host_os in
16105 aix3*)
16106 allow_undefined_flag_F77=unsupported
16107 always_export_symbols_F77=yes
16108 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'
16109 # Note: this linker hardcodes the directories in LIBPATH if there
16110 # are no directories specified by -L.
16111 hardcode_minus_L_F77=yes
16112 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16113 # Neither direct hardcoding nor static linking is supported with a
16114 # broken collect2.
16115 hardcode_direct_F77=unsupported
16116 fi
16117 ;;
16118
56efe974 16119 aix[4-9]*)
b57f37fb
WP
16120 if test "$host_cpu" = ia64; then
16121 # On IA64, the linker does run time linking by default, so we don't
16122 # have to do anything special.
16123 aix_use_runtimelinking=no
16124 exp_sym_flag='-Bexport'
16125 no_entry_flag=""
16126 else
16127 # If we're using GNU nm, then we don't want the "-C" option.
16128 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16129 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16130 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'
16131 else
16132 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'
16133 fi
16134 aix_use_runtimelinking=no
16135
16136 # Test if we are trying to use run time linking or normal
16137 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16138 # need to do runtime linking.
56efe974 16139 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
b57f37fb
WP
16140 for ld_flag in $LDFLAGS; do
16141 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16142 aix_use_runtimelinking=yes
16143 break
16144 fi
16145 done
16146 ;;
16147 esac
16148
16149 exp_sym_flag='-bexport'
16150 no_entry_flag='-bnoentry'
16151 fi
16152
16153 # When large executables or shared objects are built, AIX ld can
16154 # have problems creating the table of contents. If linking a library
16155 # or program results in "error TOC overflow" add -mminimal-toc to
16156 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16157 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16158
16159 archive_cmds_F77=''
16160 hardcode_direct_F77=yes
16161 hardcode_libdir_separator_F77=':'
16162 link_all_deplibs_F77=yes
16163
16164 if test "$GCC" = yes; then
16165 case $host_os in aix4.[012]|aix4.[012].*)
16166 # We only want to do this on AIX 4.2 and lower, the check
16167 # below for broken collect2 doesn't work under 4.3+
16168 collect2name=`${CC} -print-prog-name=collect2`
16169 if test -f "$collect2name" && \
16170 strings "$collect2name" | grep resolve_lib_name >/dev/null
16171 then
16172 # We have reworked collect2
16173 :
16174 else
16175 # We have old collect2
16176 hardcode_direct_F77=unsupported
16177 # It fails to find uninstalled libraries when the uninstalled
16178 # path is not listed in the libpath. Setting hardcode_minus_L
16179 # to unsupported forces relinking
16180 hardcode_minus_L_F77=yes
16181 hardcode_libdir_flag_spec_F77='-L$libdir'
16182 hardcode_libdir_separator_F77=
16183 fi
16184 ;;
16185 esac
16186 shared_flag='-shared'
16187 if test "$aix_use_runtimelinking" = yes; then
16188 shared_flag="$shared_flag "'${wl}-G'
16189 fi
16190 else
16191 # not using gcc
16192 if test "$host_cpu" = ia64; then
16193 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16194 # chokes on -Wl,-G. The following line is correct:
16195 shared_flag='-G'
16196 else
16197 if test "$aix_use_runtimelinking" = yes; then
16198 shared_flag='${wl}-G'
16199 else
16200 shared_flag='${wl}-bM:SRE'
16201 fi
16202 fi
16203 fi
16204
16205 # It seems that -bexpall does not export symbols beginning with
16206 # underscore (_), so it is better to generate a list of symbols to export.
16207 always_export_symbols_F77=yes
16208 if test "$aix_use_runtimelinking" = yes; then
16209 # Warning - without using the other runtime loading flags (-brtl),
16210 # -berok will link without error, but may produce a broken library.
16211 allow_undefined_flag_F77='-berok'
16212 # Determine the default libpath from the value encoded in an empty executable.
16213 cat >conftest.$ac_ext <<_ACEOF
16214 program main
16215
16216 end
16217_ACEOF
16218rm -f conftest.$ac_objext conftest$ac_exeext
16219if { (ac_try="$ac_link"
16220case "(($ac_try" in
16221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16222 *) ac_try_echo=$ac_try;;
16223esac
16224eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16225 (eval "$ac_link") 2>conftest.er1
16226 ac_status=$?
16227 grep -v '^ *+' conftest.er1 >conftest.err
16228 rm -f conftest.er1
16229 cat conftest.err >&5
16230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16231 (exit $ac_status); } && {
16232 test -z "$ac_f77_werror_flag" ||
16233 test ! -s conftest.err
16234 } && test -s conftest$ac_exeext &&
16235 $as_test_x conftest$ac_exeext; then
16236
16237lt_aix_libpath_sed='
16238 /Import File Strings/,/^$/ {
16239 /^0/ {
16240 s/^0 *\(.*\)$/\1/
16241 p
16242 }
16243 }'
16244aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16245# Check for a 64-bit object if we didn't find anything.
16246if test -z "$aix_libpath"; then
16247 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16248fi
16249else
16250 echo "$as_me: failed program was:" >&5
16251sed 's/^/| /' conftest.$ac_ext >&5
16252
16253
16254fi
16255
16256rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16257 conftest$ac_exeext conftest.$ac_ext
16258if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16259
16260 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16261 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"
16262 else
16263 if test "$host_cpu" = ia64; then
16264 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
16265 allow_undefined_flag_F77="-z nodefs"
16266 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"
16267 else
16268 # Determine the default libpath from the value encoded in an empty executable.
16269 cat >conftest.$ac_ext <<_ACEOF
16270 program main
16271
16272 end
16273_ACEOF
16274rm -f conftest.$ac_objext conftest$ac_exeext
16275if { (ac_try="$ac_link"
16276case "(($ac_try" in
16277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16278 *) ac_try_echo=$ac_try;;
16279esac
16280eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16281 (eval "$ac_link") 2>conftest.er1
16282 ac_status=$?
16283 grep -v '^ *+' conftest.er1 >conftest.err
16284 rm -f conftest.er1
16285 cat conftest.err >&5
16286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16287 (exit $ac_status); } && {
16288 test -z "$ac_f77_werror_flag" ||
16289 test ! -s conftest.err
16290 } && test -s conftest$ac_exeext &&
16291 $as_test_x conftest$ac_exeext; then
16292
16293lt_aix_libpath_sed='
16294 /Import File Strings/,/^$/ {
16295 /^0/ {
16296 s/^0 *\(.*\)$/\1/
16297 p
16298 }
16299 }'
16300aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16301# Check for a 64-bit object if we didn't find anything.
16302if test -z "$aix_libpath"; then
16303 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16304fi
16305else
16306 echo "$as_me: failed program was:" >&5
16307sed 's/^/| /' conftest.$ac_ext >&5
16308
16309
16310fi
16311
16312rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16313 conftest$ac_exeext conftest.$ac_ext
16314if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16315
16316 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16317 # Warning - without using the other run time loading flags,
16318 # -berok will link without error, but may produce a broken library.
16319 no_undefined_flag_F77=' ${wl}-bernotok'
16320 allow_undefined_flag_F77=' ${wl}-berok'
16321 # Exported symbols can be pulled into shared objects from archives
16322 whole_archive_flag_spec_F77='$convenience'
16323 archive_cmds_need_lc_F77=yes
16324 # This is similar to how AIX traditionally builds its shared libraries.
16325 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'
16326 fi
16327 fi
16328 ;;
16329
16330 amigaos*)
16331 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)'
16332 hardcode_libdir_flag_spec_F77='-L$libdir'
16333 hardcode_minus_L_F77=yes
16334 # see comment about different semantics on the GNU ld section
16335 ld_shlibs_F77=no
16336 ;;
16337
16338 bsdi[45]*)
16339 export_dynamic_flag_spec_F77=-rdynamic
16340 ;;
16341
16342 cygwin* | mingw* | pw32*)
16343 # When not using gcc, we currently assume that we are using
16344 # Microsoft Visual C++.
16345 # hardcode_libdir_flag_spec is actually meaningless, as there is
16346 # no search path for DLLs.
16347 hardcode_libdir_flag_spec_F77=' '
16348 allow_undefined_flag_F77=unsupported
16349 # Tell ltmain to make .lib files, not .a files.
16350 libext=lib
16351 # Tell ltmain to make .dll files, not .so files.
16352 shrext_cmds=".dll"
16353 # FIXME: Setting linknames here is a bad hack.
16354 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16355 # The linker will automatically build a .lib file if we build a DLL.
16356 old_archive_From_new_cmds_F77='true'
16357 # FIXME: Should let the user specify the lib program.
16358 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
16359 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
16360 enable_shared_with_static_runtimes_F77=yes
16361 ;;
16362
16363 darwin* | rhapsody*)
16364 case $host_os in
16365 rhapsody* | darwin1.[012])
16366 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
16367 ;;
16368 *) # Darwin 1.3 on
16369 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16370 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16371 else
16372 case ${MACOSX_DEPLOYMENT_TARGET} in
16373 10.[012])
16374 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16375 ;;
16376 10.*)
16377 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
16378 ;;
16379 esac
16380 fi
16381 ;;
16382 esac
16383 archive_cmds_need_lc_F77=no
16384 hardcode_direct_F77=no
16385 hardcode_automatic_F77=yes
16386 hardcode_shlibpath_var_F77=unsupported
16387 whole_archive_flag_spec_F77=''
16388 link_all_deplibs_F77=yes
16389 if test "$GCC" = yes ; then
16390 output_verbose_link_cmd='echo'
56efe974
WP
16391 archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16392 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16393 archive_expsym_cmds_F77="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
16394 module_expsym_cmds_F77="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
b57f37fb
WP
16395 else
16396 case $cc_basename in
16397 xlc*)
16398 output_verbose_link_cmd='echo'
16399 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
16400 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16401 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16402 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16403 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}'
16404 ;;
16405 *)
16406 ld_shlibs_F77=no
16407 ;;
16408 esac
16409 fi
16410 ;;
16411
16412 dgux*)
16413 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16414 hardcode_libdir_flag_spec_F77='-L$libdir'
16415 hardcode_shlibpath_var_F77=no
16416 ;;
16417
16418 freebsd1*)
16419 ld_shlibs_F77=no
16420 ;;
16421
16422 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16423 # support. Future versions do this automatically, but an explicit c++rt0.o
16424 # does not break anything, and helps significantly (at the cost of a little
16425 # extra space).
16426 freebsd2.2*)
16427 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16428 hardcode_libdir_flag_spec_F77='-R$libdir'
16429 hardcode_direct_F77=yes
16430 hardcode_shlibpath_var_F77=no
16431 ;;
16432
16433 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16434 freebsd2*)
16435 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16436 hardcode_direct_F77=yes
16437 hardcode_minus_L_F77=yes
16438 hardcode_shlibpath_var_F77=no
16439 ;;
16440
16441 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16442 freebsd* | dragonfly*)
16443 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16444 hardcode_libdir_flag_spec_F77='-R$libdir'
16445 hardcode_direct_F77=yes
16446 hardcode_shlibpath_var_F77=no
16447 ;;
16448
16449 hpux9*)
16450 if test "$GCC" = yes; then
16451 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'
16452 else
16453 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'
16454 fi
16455 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16456 hardcode_libdir_separator_F77=:
16457 hardcode_direct_F77=yes
16458
16459 # hardcode_minus_L: Not really in the search PATH,
16460 # but as the default location of the library.
16461 hardcode_minus_L_F77=yes
16462 export_dynamic_flag_spec_F77='${wl}-E'
16463 ;;
16464
16465 hpux10*)
16466 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16467 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16468 else
16469 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16470 fi
16471 if test "$with_gnu_ld" = no; then
16472 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16473 hardcode_libdir_separator_F77=:
16474
16475 hardcode_direct_F77=yes
16476 export_dynamic_flag_spec_F77='${wl}-E'
16477
16478 # hardcode_minus_L: Not really in the search PATH,
16479 # but as the default location of the library.
16480 hardcode_minus_L_F77=yes
16481 fi
16482 ;;
16483
16484 hpux11*)
16485 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16486 case $host_cpu in
16487 hppa*64*)
16488 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16489 ;;
16490 ia64*)
16491 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16492 ;;
16493 *)
16494 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16495 ;;
16496 esac
16497 else
16498 case $host_cpu in
16499 hppa*64*)
16500 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16501 ;;
16502 ia64*)
16503 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16504 ;;
16505 *)
16506 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16507 ;;
16508 esac
16509 fi
16510 if test "$with_gnu_ld" = no; then
16511 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16512 hardcode_libdir_separator_F77=:
16513
16514 case $host_cpu in
16515 hppa*64*|ia64*)
16516 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
16517 hardcode_direct_F77=no
16518 hardcode_shlibpath_var_F77=no
16519 ;;
16520 *)
16521 hardcode_direct_F77=yes
16522 export_dynamic_flag_spec_F77='${wl}-E'
16523
16524 # hardcode_minus_L: Not really in the search PATH,
16525 # but as the default location of the library.
16526 hardcode_minus_L_F77=yes
16527 ;;
16528 esac
16529 fi
16530 ;;
16531
16532 irix5* | irix6* | nonstopux*)
16533 if test "$GCC" = yes; then
16534 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'
16535 else
16536 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'
16537 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
16538 fi
16539 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16540 hardcode_libdir_separator_F77=:
16541 link_all_deplibs_F77=yes
16542 ;;
16543
16544 netbsd* | netbsdelf*-gnu)
16545 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16546 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16547 else
16548 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16549 fi
16550 hardcode_libdir_flag_spec_F77='-R$libdir'
16551 hardcode_direct_F77=yes
16552 hardcode_shlibpath_var_F77=no
16553 ;;
16554
16555 newsos6)
16556 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16557 hardcode_direct_F77=yes
16558 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16559 hardcode_libdir_separator_F77=:
16560 hardcode_shlibpath_var_F77=no
16561 ;;
16562
16563 openbsd*)
16564 if test -f /usr/libexec/ld.so; then
16565 hardcode_direct_F77=yes
16566 hardcode_shlibpath_var_F77=no
16567 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16568 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16569 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16570 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16571 export_dynamic_flag_spec_F77='${wl}-E'
16572 else
16573 case $host_os in
16574 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16575 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16576 hardcode_libdir_flag_spec_F77='-R$libdir'
16577 ;;
16578 *)
16579 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16580 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16581 ;;
16582 esac
16583 fi
16584 else
16585 ld_shlibs_F77=no
16586 fi
16587 ;;
16588
16589 os2*)
16590 hardcode_libdir_flag_spec_F77='-L$libdir'
16591 hardcode_minus_L_F77=yes
16592 allow_undefined_flag_F77=unsupported
16593 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'
16594 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16595 ;;
16596
16597 osf3*)
16598 if test "$GCC" = yes; then
16599 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16600 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'
16601 else
16602 allow_undefined_flag_F77=' -expect_unresolved \*'
16603 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'
16604 fi
16605 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16606 hardcode_libdir_separator_F77=:
16607 ;;
16608
16609 osf4* | osf5*) # as osf3* with the addition of -msym flag
16610 if test "$GCC" = yes; then
16611 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16612 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'
16613 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16614 else
16615 allow_undefined_flag_F77=' -expect_unresolved \*'
16616 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'
16617 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~
16618 $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'
16619
16620 # Both c and cxx compiler support -rpath directly
16621 hardcode_libdir_flag_spec_F77='-rpath $libdir'
16622 fi
16623 hardcode_libdir_separator_F77=:
16624 ;;
16625
16626 solaris*)
16627 no_undefined_flag_F77=' -z text'
16628 if test "$GCC" = yes; then
16629 wlarc='${wl}'
16630 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16631 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16632 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16633 else
16634 wlarc=''
16635 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16636 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16637 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16638 fi
16639 hardcode_libdir_flag_spec_F77='-R$libdir'
16640 hardcode_shlibpath_var_F77=no
16641 case $host_os in
16642 solaris2.[0-5] | solaris2.[0-5].*) ;;
16643 *)
16644 # The compiler driver will combine and reorder linker options,
16645 # but understands `-z linker_flag'. GCC discards it without `$wl',
16646 # but is careful enough not to reorder.
16647 # Supported since Solaris 2.6 (maybe 2.5.1?)
16648 if test "$GCC" = yes; then
16649 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16650 else
16651 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
16652 fi
16653 ;;
16654 esac
16655 link_all_deplibs_F77=yes
16656 ;;
16657
16658 sunos4*)
16659 if test "x$host_vendor" = xsequent; then
16660 # Use $CC to link under sequent, because it throws in some extra .o
16661 # files that make .init and .fini sections work.
16662 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16663 else
16664 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16665 fi
16666 hardcode_libdir_flag_spec_F77='-L$libdir'
16667 hardcode_direct_F77=yes
16668 hardcode_minus_L_F77=yes
16669 hardcode_shlibpath_var_F77=no
16670 ;;
16671
16672 sysv4)
16673 case $host_vendor in
16674 sni)
16675 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16676 hardcode_direct_F77=yes # is this really true???
16677 ;;
16678 siemens)
16679 ## LD is ld it makes a PLAMLIB
16680 ## CC just makes a GrossModule.
16681 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16682 reload_cmds_F77='$CC -r -o $output$reload_objs'
16683 hardcode_direct_F77=no
16684 ;;
16685 motorola)
16686 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16687 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
16688 ;;
16689 esac
16690 runpath_var='LD_RUN_PATH'
16691 hardcode_shlibpath_var_F77=no
16692 ;;
16693
16694 sysv4.3*)
16695 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16696 hardcode_shlibpath_var_F77=no
16697 export_dynamic_flag_spec_F77='-Bexport'
16698 ;;
16699
16700 sysv4*MP*)
16701 if test -d /usr/nec; then
16702 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16703 hardcode_shlibpath_var_F77=no
16704 runpath_var=LD_RUN_PATH
16705 hardcode_runpath_var=yes
16706 ld_shlibs_F77=yes
16707 fi
16708 ;;
16709
16710 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16711 no_undefined_flag_F77='${wl}-z,text'
16712 archive_cmds_need_lc_F77=no
16713 hardcode_shlibpath_var_F77=no
16714 runpath_var='LD_RUN_PATH'
16715
16716 if test "$GCC" = yes; then
16717 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16718 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16719 else
16720 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16721 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16722 fi
16723 ;;
16724
16725 sysv5* | sco3.2v5* | sco5v6*)
16726 # Note: We can NOT use -z defs as we might desire, because we do not
16727 # link with -lc, and that would cause any symbols used from libc to
16728 # always be unresolved, which means just about no library would
16729 # ever link correctly. If we're not using GNU ld we use -z text
16730 # though, which does catch some bad symbols but isn't as heavy-handed
16731 # as -z defs.
16732 no_undefined_flag_F77='${wl}-z,text'
16733 allow_undefined_flag_F77='${wl}-z,nodefs'
16734 archive_cmds_need_lc_F77=no
16735 hardcode_shlibpath_var_F77=no
16736 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16737 hardcode_libdir_separator_F77=':'
16738 link_all_deplibs_F77=yes
16739 export_dynamic_flag_spec_F77='${wl}-Bexport'
16740 runpath_var='LD_RUN_PATH'
16741
16742 if test "$GCC" = yes; then
16743 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16744 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16745 else
16746 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16747 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16748 fi
16749 ;;
16750
16751 uts4*)
16752 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16753 hardcode_libdir_flag_spec_F77='-L$libdir'
16754 hardcode_shlibpath_var_F77=no
16755 ;;
16756
16757 *)
16758 ld_shlibs_F77=no
16759 ;;
16760 esac
16761 fi
16762
16763{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16764echo "${ECHO_T}$ld_shlibs_F77" >&6; }
16765test "$ld_shlibs_F77" = no && can_build_shared=no
16766
16767#
16768# Do we need to explicitly link libc?
16769#
16770case "x$archive_cmds_need_lc_F77" in
16771x|xyes)
16772 # Assume -lc should be added
16773 archive_cmds_need_lc_F77=yes
16774
16775 if test "$enable_shared" = yes && test "$GCC" = yes; then
16776 case $archive_cmds_F77 in
16777 *'~'*)
16778 # FIXME: we may have to deal with multi-command sequences.
16779 ;;
16780 '$CC '*)
16781 # Test whether the compiler implicitly links with -lc since on some
16782 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16783 # to ld, don't add -lc before -lgcc.
16784 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16785echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16786 $rm conftest*
16787 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16788
16789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16790 (eval $ac_compile) 2>&5
16791 ac_status=$?
16792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16793 (exit $ac_status); } 2>conftest.err; then
16794 soname=conftest
16795 lib=conftest
16796 libobjs=conftest.$ac_objext
16797 deplibs=
16798 wl=$lt_prog_compiler_wl_F77
16799 pic_flag=$lt_prog_compiler_pic_F77
16800 compiler_flags=-v
16801 linker_flags=-v
16802 verstring=
16803 output_objdir=.
16804 libname=conftest
16805 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16806 allow_undefined_flag_F77=
16807 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16808 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16809 ac_status=$?
16810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16811 (exit $ac_status); }
16812 then
16813 archive_cmds_need_lc_F77=no
16814 else
16815 archive_cmds_need_lc_F77=yes
16816 fi
16817 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16818 else
16819 cat conftest.err 1>&5
16820 fi
16821 $rm conftest*
16822 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16823echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
16824 ;;
16825 esac
16826 fi
16827 ;;
16828esac
16829
16830{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16831echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16832library_names_spec=
16833libname_spec='lib$name'
16834soname_spec=
16835shrext_cmds=".so"
16836postinstall_cmds=
16837postuninstall_cmds=
16838finish_cmds=
16839finish_eval=
16840shlibpath_var=
16841shlibpath_overrides_runpath=unknown
16842version_type=none
16843dynamic_linker="$host_os ld.so"
16844sys_lib_dlsearch_path_spec="/lib /usr/lib"
16845
16846need_lib_prefix=unknown
16847hardcode_into_libs=no
16848
16849# when you set need_version to no, make sure it does not cause -set_version
16850# flags to be left without arguments
16851need_version=unknown
16852
16853case $host_os in
16854aix3*)
16855 version_type=linux
16856 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16857 shlibpath_var=LIBPATH
16858
16859 # AIX 3 has no versioning support, so we append a major version to the name.
16860 soname_spec='${libname}${release}${shared_ext}$major'
16861 ;;
16862
56efe974 16863aix[4-9]*)
b57f37fb
WP
16864 version_type=linux
16865 need_lib_prefix=no
16866 need_version=no
16867 hardcode_into_libs=yes
16868 if test "$host_cpu" = ia64; then
16869 # AIX 5 supports IA64
16870 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16871 shlibpath_var=LD_LIBRARY_PATH
16872 else
16873 # With GCC up to 2.95.x, collect2 would create an import file
16874 # for dependence libraries. The import file would start with
16875 # the line `#! .'. This would cause the generated library to
16876 # depend on `.', always an invalid library. This was fixed in
16877 # development snapshots of GCC prior to 3.0.
16878 case $host_os in
16879 aix4 | aix4.[01] | aix4.[01].*)
16880 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16881 echo ' yes '
16882 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16883 :
16884 else
16885 can_build_shared=no
16886 fi
16887 ;;
16888 esac
16889 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16890 # soname into executable. Probably we can add versioning support to
16891 # collect2, so additional links can be useful in future.
16892 if test "$aix_use_runtimelinking" = yes; then
16893 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16894 # instead of lib<name>.a to let people know that these are not
16895 # typical AIX shared libraries.
16896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16897 else
16898 # We preserve .a as extension for shared libraries through AIX4.2
16899 # and later when we are not doing run time linking.
16900 library_names_spec='${libname}${release}.a $libname.a'
16901 soname_spec='${libname}${release}${shared_ext}$major'
16902 fi
16903 shlibpath_var=LIBPATH
16904 fi
16905 ;;
16906
16907amigaos*)
16908 library_names_spec='$libname.ixlibrary $libname.a'
16909 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16910 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'
16911 ;;
16912
16913beos*)
16914 library_names_spec='${libname}${shared_ext}'
16915 dynamic_linker="$host_os ld.so"
16916 shlibpath_var=LIBRARY_PATH
16917 ;;
16918
16919bsdi[45]*)
16920 version_type=linux
16921 need_version=no
16922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16923 soname_spec='${libname}${release}${shared_ext}$major'
16924 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16925 shlibpath_var=LD_LIBRARY_PATH
16926 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16927 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16928 # the default ld.so.conf also contains /usr/contrib/lib and
16929 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16930 # libtool to hard-code these into programs
16931 ;;
16932
16933cygwin* | mingw* | pw32*)
16934 version_type=windows
16935 shrext_cmds=".dll"
16936 need_version=no
16937 need_lib_prefix=no
16938
16939 case $GCC,$host_os in
16940 yes,cygwin* | yes,mingw* | yes,pw32*)
16941 library_names_spec='$libname.dll.a'
16942 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16943 postinstall_cmds='base_file=`basename \${file}`~
16944 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16945 dldir=$destdir/`dirname \$dlpath`~
16946 test -d \$dldir || mkdir -p \$dldir~
16947 $install_prog $dir/$dlname \$dldir/$dlname~
16948 chmod a+x \$dldir/$dlname'
16949 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16950 dlpath=$dir/\$dldll~
16951 $rm \$dlpath'
16952 shlibpath_overrides_runpath=yes
16953
16954 case $host_os in
16955 cygwin*)
16956 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16957 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16958 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16959 ;;
16960 mingw*)
16961 # MinGW DLLs use traditional 'lib' prefix
16962 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16963 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16964 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16965 # It is most probably a Windows format PATH printed by
16966 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16967 # path with ; separators, and with drive letters. We can handle the
16968 # drive letters (cygwin fileutils understands them), so leave them,
16969 # especially as we might pass files found there to a mingw objdump,
16970 # which wouldn't understand a cygwinified path. Ahh.
16971 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16972 else
16973 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16974 fi
16975 ;;
16976 pw32*)
16977 # pw32 DLLs use 'pw' prefix rather than 'lib'
16978 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16979 ;;
16980 esac
16981 ;;
16982
16983 *)
16984 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16985 ;;
16986 esac
16987 dynamic_linker='Win32 ld.exe'
16988 # FIXME: first we should search . and the directory the executable is in
16989 shlibpath_var=PATH
16990 ;;
16991
16992darwin* | rhapsody*)
16993 dynamic_linker="$host_os dyld"
16994 version_type=darwin
16995 need_lib_prefix=no
16996 need_version=no
16997 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16998 soname_spec='${libname}${release}${major}$shared_ext'
16999 shlibpath_overrides_runpath=yes
17000 shlibpath_var=DYLD_LIBRARY_PATH
17001 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17002
17003 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17004 ;;
17005
17006dgux*)
17007 version_type=linux
17008 need_lib_prefix=no
17009 need_version=no
17010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17011 soname_spec='${libname}${release}${shared_ext}$major'
17012 shlibpath_var=LD_LIBRARY_PATH
17013 ;;
17014
17015freebsd1*)
17016 dynamic_linker=no
17017 ;;
17018
17019freebsd* | dragonfly*)
17020 # DragonFly does not have aout. When/if they implement a new
17021 # versioning mechanism, adjust this.
17022 if test -x /usr/bin/objformat; then
17023 objformat=`/usr/bin/objformat`
17024 else
17025 case $host_os in
17026 freebsd[123]*) objformat=aout ;;
17027 *) objformat=elf ;;
17028 esac
17029 fi
17030 version_type=freebsd-$objformat
17031 case $version_type in
17032 freebsd-elf*)
17033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17034 need_version=no
17035 need_lib_prefix=no
17036 ;;
17037 freebsd-*)
17038 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17039 need_version=yes
17040 ;;
17041 esac
17042 shlibpath_var=LD_LIBRARY_PATH
17043 case $host_os in
17044 freebsd2*)
17045 shlibpath_overrides_runpath=yes
17046 ;;
17047 freebsd3.[01]* | freebsdelf3.[01]*)
17048 shlibpath_overrides_runpath=yes
17049 hardcode_into_libs=yes
17050 ;;
17051 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17052 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17053 shlibpath_overrides_runpath=no
17054 hardcode_into_libs=yes
17055 ;;
17056 *) # from 4.6 on, and DragonFly
17057 shlibpath_overrides_runpath=yes
17058 hardcode_into_libs=yes
17059 ;;
17060 esac
17061 ;;
17062
17063gnu*)
17064 version_type=linux
17065 need_lib_prefix=no
17066 need_version=no
17067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17068 soname_spec='${libname}${release}${shared_ext}$major'
17069 shlibpath_var=LD_LIBRARY_PATH
17070 hardcode_into_libs=yes
17071 ;;
17072
17073hpux9* | hpux10* | hpux11*)
17074 # Give a soname corresponding to the major version so that dld.sl refuses to
17075 # link against other versions.
17076 version_type=sunos
17077 need_lib_prefix=no
17078 need_version=no
17079 case $host_cpu in
17080 ia64*)
17081 shrext_cmds='.so'
17082 hardcode_into_libs=yes
17083 dynamic_linker="$host_os dld.so"
17084 shlibpath_var=LD_LIBRARY_PATH
17085 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17087 soname_spec='${libname}${release}${shared_ext}$major'
17088 if test "X$HPUX_IA64_MODE" = X32; then
17089 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17090 else
17091 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17092 fi
17093 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17094 ;;
17095 hppa*64*)
17096 shrext_cmds='.sl'
17097 hardcode_into_libs=yes
17098 dynamic_linker="$host_os dld.sl"
17099 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17100 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17102 soname_spec='${libname}${release}${shared_ext}$major'
17103 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17104 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17105 ;;
17106 *)
17107 shrext_cmds='.sl'
17108 dynamic_linker="$host_os dld.sl"
17109 shlibpath_var=SHLIB_PATH
17110 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17112 soname_spec='${libname}${release}${shared_ext}$major'
17113 ;;
17114 esac
17115 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17116 postinstall_cmds='chmod 555 $lib'
17117 ;;
17118
17119interix[3-9]*)
17120 version_type=linux
17121 need_lib_prefix=no
17122 need_version=no
17123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17124 soname_spec='${libname}${release}${shared_ext}$major'
17125 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17126 shlibpath_var=LD_LIBRARY_PATH
17127 shlibpath_overrides_runpath=no
17128 hardcode_into_libs=yes
17129 ;;
17130
17131irix5* | irix6* | nonstopux*)
17132 case $host_os in
17133 nonstopux*) version_type=nonstopux ;;
17134 *)
17135 if test "$lt_cv_prog_gnu_ld" = yes; then
17136 version_type=linux
17137 else
17138 version_type=irix
17139 fi ;;
17140 esac
17141 need_lib_prefix=no
17142 need_version=no
17143 soname_spec='${libname}${release}${shared_ext}$major'
17144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17145 case $host_os in
17146 irix5* | nonstopux*)
17147 libsuff= shlibsuff=
17148 ;;
17149 *)
17150 case $LD in # libtool.m4 will add one of these switches to LD
17151 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17152 libsuff= shlibsuff= libmagic=32-bit;;
17153 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17154 libsuff=32 shlibsuff=N32 libmagic=N32;;
17155 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17156 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17157 *) libsuff= shlibsuff= libmagic=never-match;;
17158 esac
17159 ;;
17160 esac
17161 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17162 shlibpath_overrides_runpath=no
17163 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17164 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17165 hardcode_into_libs=yes
17166 ;;
17167
17168# No shared lib support for Linux oldld, aout, or coff.
17169linux*oldld* | linux*aout* | linux*coff*)
17170 dynamic_linker=no
17171 ;;
17172
17173# This must be Linux ELF.
17174linux* | k*bsd*-gnu)
17175 version_type=linux
17176 need_lib_prefix=no
17177 need_version=no
17178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17179 soname_spec='${libname}${release}${shared_ext}$major'
17180 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17181 shlibpath_var=LD_LIBRARY_PATH
17182 shlibpath_overrides_runpath=no
17183 # This implies no fast_install, which is unacceptable.
17184 # Some rework will be needed to allow for fast_install
17185 # before this can be enabled.
17186 hardcode_into_libs=yes
17187
17188 # Append ld.so.conf contents to the search path
17189 if test -f /etc/ld.so.conf; then
17190 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17191 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17192 fi
17193
17194 # We used to test for /lib/ld.so.1 and disable shared libraries on
17195 # powerpc, because MkLinux only supported shared libraries with the
17196 # GNU dynamic linker. Since this was broken with cross compilers,
17197 # most powerpc-linux boxes support dynamic linking these days and
17198 # people can always --disable-shared, the test was removed, and we
17199 # assume the GNU/Linux dynamic linker is in use.
17200 dynamic_linker='GNU/Linux ld.so'
17201 ;;
17202
17203netbsdelf*-gnu)
17204 version_type=linux
17205 need_lib_prefix=no
17206 need_version=no
17207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17208 soname_spec='${libname}${release}${shared_ext}$major'
17209 shlibpath_var=LD_LIBRARY_PATH
17210 shlibpath_overrides_runpath=no
17211 hardcode_into_libs=yes
17212 dynamic_linker='NetBSD ld.elf_so'
17213 ;;
17214
17215netbsd*)
17216 version_type=sunos
17217 need_lib_prefix=no
17218 need_version=no
17219 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17221 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17222 dynamic_linker='NetBSD (a.out) ld.so'
17223 else
17224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17225 soname_spec='${libname}${release}${shared_ext}$major'
17226 dynamic_linker='NetBSD ld.elf_so'
17227 fi
17228 shlibpath_var=LD_LIBRARY_PATH
17229 shlibpath_overrides_runpath=yes
17230 hardcode_into_libs=yes
17231 ;;
17232
17233newsos6)
17234 version_type=linux
17235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17236 shlibpath_var=LD_LIBRARY_PATH
17237 shlibpath_overrides_runpath=yes
17238 ;;
17239
17240nto-qnx*)
17241 version_type=linux
17242 need_lib_prefix=no
17243 need_version=no
17244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17245 soname_spec='${libname}${release}${shared_ext}$major'
17246 shlibpath_var=LD_LIBRARY_PATH
17247 shlibpath_overrides_runpath=yes
17248 ;;
17249
17250openbsd*)
17251 version_type=sunos
17252 sys_lib_dlsearch_path_spec="/usr/lib"
17253 need_lib_prefix=no
17254 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17255 case $host_os in
17256 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17257 *) need_version=no ;;
17258 esac
17259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17260 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17261 shlibpath_var=LD_LIBRARY_PATH
17262 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17263 case $host_os in
17264 openbsd2.[89] | openbsd2.[89].*)
17265 shlibpath_overrides_runpath=no
17266 ;;
17267 *)
17268 shlibpath_overrides_runpath=yes
17269 ;;
17270 esac
17271 else
17272 shlibpath_overrides_runpath=yes
17273 fi
17274 ;;
17275
17276os2*)
17277 libname_spec='$name'
17278 shrext_cmds=".dll"
17279 need_lib_prefix=no
17280 library_names_spec='$libname${shared_ext} $libname.a'
17281 dynamic_linker='OS/2 ld.exe'
17282 shlibpath_var=LIBPATH
17283 ;;
17284
17285osf3* | osf4* | osf5*)
17286 version_type=osf
17287 need_lib_prefix=no
17288 need_version=no
17289 soname_spec='${libname}${release}${shared_ext}$major'
17290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17291 shlibpath_var=LD_LIBRARY_PATH
17292 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17293 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17294 ;;
17295
17296rdos*)
17297 dynamic_linker=no
17298 ;;
17299
17300solaris*)
17301 version_type=linux
17302 need_lib_prefix=no
17303 need_version=no
17304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17305 soname_spec='${libname}${release}${shared_ext}$major'
17306 shlibpath_var=LD_LIBRARY_PATH
17307 shlibpath_overrides_runpath=yes
17308 hardcode_into_libs=yes
17309 # ldd complains unless libraries are executable
17310 postinstall_cmds='chmod +x $lib'
17311 ;;
17312
17313sunos4*)
17314 version_type=sunos
17315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17316 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17317 shlibpath_var=LD_LIBRARY_PATH
17318 shlibpath_overrides_runpath=yes
17319 if test "$with_gnu_ld" = yes; then
17320 need_lib_prefix=no
17321 fi
17322 need_version=yes
17323 ;;
17324
17325sysv4 | sysv4.3*)
17326 version_type=linux
17327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17328 soname_spec='${libname}${release}${shared_ext}$major'
17329 shlibpath_var=LD_LIBRARY_PATH
17330 case $host_vendor in
17331 sni)
17332 shlibpath_overrides_runpath=no
17333 need_lib_prefix=no
17334 export_dynamic_flag_spec='${wl}-Blargedynsym'
17335 runpath_var=LD_RUN_PATH
17336 ;;
17337 siemens)
17338 need_lib_prefix=no
17339 ;;
17340 motorola)
17341 need_lib_prefix=no
17342 need_version=no
17343 shlibpath_overrides_runpath=no
17344 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17345 ;;
17346 esac
17347 ;;
17348
17349sysv4*MP*)
17350 if test -d /usr/nec ;then
17351 version_type=linux
17352 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17353 soname_spec='$libname${shared_ext}.$major'
17354 shlibpath_var=LD_LIBRARY_PATH
17355 fi
17356 ;;
17357
17358sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17359 version_type=freebsd-elf
17360 need_lib_prefix=no
17361 need_version=no
17362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17363 soname_spec='${libname}${release}${shared_ext}$major'
17364 shlibpath_var=LD_LIBRARY_PATH
17365 hardcode_into_libs=yes
17366 if test "$with_gnu_ld" = yes; then
17367 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17368 shlibpath_overrides_runpath=no
17369 else
17370 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17371 shlibpath_overrides_runpath=yes
17372 case $host_os in
17373 sco3.2v5*)
17374 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17375 ;;
17376 esac
17377 fi
17378 sys_lib_dlsearch_path_spec='/usr/lib'
17379 ;;
17380
17381uts4*)
17382 version_type=linux
17383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17384 soname_spec='${libname}${release}${shared_ext}$major'
17385 shlibpath_var=LD_LIBRARY_PATH
17386 ;;
17387
17388*)
17389 dynamic_linker=no
17390 ;;
17391esac
17392{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17393echo "${ECHO_T}$dynamic_linker" >&6; }
17394test "$dynamic_linker" = no && can_build_shared=no
17395
56efe974
WP
17396if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17397 echo $ECHO_N "(cached) $ECHO_C" >&6
17398else
17399 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
17400fi
17401
17402sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17403if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17404 echo $ECHO_N "(cached) $ECHO_C" >&6
17405else
17406 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
17407fi
17408
17409sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17410
b57f37fb
WP
17411variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17412if test "$GCC" = yes; then
17413 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17414fi
17415
17416{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17417echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
17418hardcode_action_F77=
17419if test -n "$hardcode_libdir_flag_spec_F77" || \
17420 test -n "$runpath_var_F77" || \
17421 test "X$hardcode_automatic_F77" = "Xyes" ; then
17422
17423 # We can hardcode non-existant directories.
17424 if test "$hardcode_direct_F77" != no &&
17425 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17426 # have to relink, otherwise we might link with an installed library
17427 # when we should be linking with a yet-to-be-installed one
17428 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
17429 test "$hardcode_minus_L_F77" != no; then
17430 # Linking always hardcodes the temporary library directory.
17431 hardcode_action_F77=relink
17432 else
17433 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17434 hardcode_action_F77=immediate
17435 fi
17436else
17437 # We cannot hardcode anything, or else we can only hardcode existing
17438 # directories.
17439 hardcode_action_F77=unsupported
17440fi
17441{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
17442echo "${ECHO_T}$hardcode_action_F77" >&6; }
17443
17444if test "$hardcode_action_F77" = relink; then
17445 # Fast installation is not supported
17446 enable_fast_install=no
17447elif test "$shlibpath_overrides_runpath" = yes ||
17448 test "$enable_shared" = no; then
17449 # Fast installation is not necessary
17450 enable_fast_install=needless
17451fi
17452
17453
17454# The else clause should only fire when bootstrapping the
17455# libtool distribution, otherwise you forgot to ship ltmain.sh
17456# with your package, and you will get complaints that there are
17457# no rules to generate ltmain.sh.
17458if test -f "$ltmain"; then
17459 # See if we are running on zsh, and set the options which allow our commands through
17460 # without removal of \ escapes.
17461 if test -n "${ZSH_VERSION+set}" ; then
17462 setopt NO_GLOB_SUBST
17463 fi
17464 # Now quote all the things that may contain metacharacters while being
17465 # careful not to overquote the AC_SUBSTed values. We take copies of the
17466 # variables and quote the copies for generation of the libtool script.
17467 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17468 SED SHELL STRIP \
17469 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17470 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17471 deplibs_check_method reload_flag reload_cmds need_locks \
17472 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17473 lt_cv_sys_global_symbol_to_c_name_address \
17474 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17475 old_postinstall_cmds old_postuninstall_cmds \
17476 compiler_F77 \
17477 CC_F77 \
17478 LD_F77 \
17479 lt_prog_compiler_wl_F77 \
17480 lt_prog_compiler_pic_F77 \
17481 lt_prog_compiler_static_F77 \
17482 lt_prog_compiler_no_builtin_flag_F77 \
17483 export_dynamic_flag_spec_F77 \
17484 thread_safe_flag_spec_F77 \
17485 whole_archive_flag_spec_F77 \
17486 enable_shared_with_static_runtimes_F77 \
17487 old_archive_cmds_F77 \
17488 old_archive_from_new_cmds_F77 \
17489 predep_objects_F77 \
17490 postdep_objects_F77 \
17491 predeps_F77 \
17492 postdeps_F77 \
17493 compiler_lib_search_path_F77 \
56efe974 17494 compiler_lib_search_dirs_F77 \
b57f37fb
WP
17495 archive_cmds_F77 \
17496 archive_expsym_cmds_F77 \
17497 postinstall_cmds_F77 \
17498 postuninstall_cmds_F77 \
17499 old_archive_from_expsyms_cmds_F77 \
17500 allow_undefined_flag_F77 \
17501 no_undefined_flag_F77 \
17502 export_symbols_cmds_F77 \
17503 hardcode_libdir_flag_spec_F77 \
17504 hardcode_libdir_flag_spec_ld_F77 \
17505 hardcode_libdir_separator_F77 \
17506 hardcode_automatic_F77 \
17507 module_cmds_F77 \
17508 module_expsym_cmds_F77 \
17509 lt_cv_prog_compiler_c_o_F77 \
17510 fix_srcfile_path_F77 \
17511 exclude_expsyms_F77 \
17512 include_expsyms_F77; do
17513
17514 case $var in
17515 old_archive_cmds_F77 | \
17516 old_archive_from_new_cmds_F77 | \
17517 archive_cmds_F77 | \
17518 archive_expsym_cmds_F77 | \
17519 module_cmds_F77 | \
17520 module_expsym_cmds_F77 | \
17521 old_archive_from_expsyms_cmds_F77 | \
17522 export_symbols_cmds_F77 | \
17523 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17524 postinstall_cmds | postuninstall_cmds | \
17525 old_postinstall_cmds | old_postuninstall_cmds | \
17526 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17527 # Double-quote double-evaled strings.
17528 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17529 ;;
17530 *)
17531 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17532 ;;
17533 esac
17534 done
17535
17536 case $lt_echo in
17537 *'\$0 --fallback-echo"')
17538 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17539 ;;
17540 esac
17541
17542cfgfile="$ofile"
17543
17544 cat <<__EOF__ >> "$cfgfile"
17545# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17546
17547# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17548
17549# Shell to use when invoking shell scripts.
17550SHELL=$lt_SHELL
17551
17552# Whether or not to build shared libraries.
17553build_libtool_libs=$enable_shared
17554
17555# Whether or not to build static libraries.
17556build_old_libs=$enable_static
17557
17558# Whether or not to add -lc for building shared libraries.
17559build_libtool_need_lc=$archive_cmds_need_lc_F77
17560
17561# Whether or not to disallow shared libs when runtime libs are static
17562allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
17563
17564# Whether or not to optimize for fast installation.
17565fast_install=$enable_fast_install
17566
17567# The host system.
17568host_alias=$host_alias
17569host=$host
17570host_os=$host_os
17571
17572# The build system.
17573build_alias=$build_alias
17574build=$build
17575build_os=$build_os
17576
17577# An echo program that does not interpret backslashes.
17578echo=$lt_echo
17579
17580# The archiver.
17581AR=$lt_AR
17582AR_FLAGS=$lt_AR_FLAGS
17583
17584# A C compiler.
17585LTCC=$lt_LTCC
17586
17587# LTCC compiler flags.
17588LTCFLAGS=$lt_LTCFLAGS
17589
17590# A language-specific compiler.
17591CC=$lt_compiler_F77
17592
17593# Is the compiler the GNU C compiler?
17594with_gcc=$GCC_F77
17595
17596# An ERE matcher.
17597EGREP=$lt_EGREP
17598
17599# The linker used to build libraries.
17600LD=$lt_LD_F77
17601
17602# Whether we need hard or soft links.
17603LN_S=$lt_LN_S
17604
17605# A BSD-compatible nm program.
17606NM=$lt_NM
17607
17608# A symbol stripping program
17609STRIP=$lt_STRIP
17610
17611# Used to examine libraries when file_magic_cmd begins "file"
17612MAGIC_CMD=$MAGIC_CMD
17613
17614# Used on cygwin: DLL creation program.
17615DLLTOOL="$DLLTOOL"
17616
17617# Used on cygwin: object dumper.
17618OBJDUMP="$OBJDUMP"
17619
17620# Used on cygwin: assembler.
17621AS="$AS"
17622
17623# The name of the directory that contains temporary libtool files.
17624objdir=$objdir
17625
17626# How to create reloadable object files.
17627reload_flag=$lt_reload_flag
17628reload_cmds=$lt_reload_cmds
17629
17630# How to pass a linker flag through the compiler.
17631wl=$lt_lt_prog_compiler_wl_F77
17632
17633# Object file suffix (normally "o").
17634objext="$ac_objext"
17635
17636# Old archive suffix (normally "a").
17637libext="$libext"
17638
17639# Shared library suffix (normally ".so").
17640shrext_cmds='$shrext_cmds'
17641
17642# Executable file suffix (normally "").
17643exeext="$exeext"
17644
17645# Additional compiler flags for building library objects.
17646pic_flag=$lt_lt_prog_compiler_pic_F77
17647pic_mode=$pic_mode
17648
17649# What is the maximum length of a command?
17650max_cmd_len=$lt_cv_sys_max_cmd_len
17651
17652# Does compiler simultaneously support -c and -o options?
17653compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17654
17655# Must we lock files when doing compilation?
17656need_locks=$lt_need_locks
17657
17658# Do we need the lib prefix for modules?
17659need_lib_prefix=$need_lib_prefix
17660
17661# Do we need a version for libraries?
17662need_version=$need_version
17663
17664# Whether dlopen is supported.
17665dlopen_support=$enable_dlopen
17666
17667# Whether dlopen of programs is supported.
17668dlopen_self=$enable_dlopen_self
17669
17670# Whether dlopen of statically linked programs is supported.
17671dlopen_self_static=$enable_dlopen_self_static
17672
17673# Compiler flag to prevent dynamic linking.
17674link_static_flag=$lt_lt_prog_compiler_static_F77
17675
17676# Compiler flag to turn off builtin functions.
17677no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17678
17679# Compiler flag to allow reflexive dlopens.
17680export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17681
17682# Compiler flag to generate shared objects directly from archives.
17683whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
17684
17685# Compiler flag to generate thread-safe objects.
17686thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
17687
17688# Library versioning type.
17689version_type=$version_type
17690
17691# Format of library name prefix.
17692libname_spec=$lt_libname_spec
17693
17694# List of archive names. First name is the real one, the rest are links.
17695# The last name is the one that the linker finds with -lNAME.
17696library_names_spec=$lt_library_names_spec
17697
17698# The coded name of the library, if different from the real name.
17699soname_spec=$lt_soname_spec
17700
17701# Commands used to build and install an old-style archive.
17702RANLIB=$lt_RANLIB
17703old_archive_cmds=$lt_old_archive_cmds_F77
17704old_postinstall_cmds=$lt_old_postinstall_cmds
17705old_postuninstall_cmds=$lt_old_postuninstall_cmds
17706
17707# Create an old-style archive from a shared archive.
17708old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17709
17710# Create a temporary old-style archive to link instead of a shared archive.
17711old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17712
17713# Commands used to build and install a shared archive.
17714archive_cmds=$lt_archive_cmds_F77
17715archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17716postinstall_cmds=$lt_postinstall_cmds
17717postuninstall_cmds=$lt_postuninstall_cmds
17718
17719# Commands used to build a loadable module (assumed same as above if empty)
17720module_cmds=$lt_module_cmds_F77
17721module_expsym_cmds=$lt_module_expsym_cmds_F77
17722
17723# Commands to strip libraries.
17724old_striplib=$lt_old_striplib
17725striplib=$lt_striplib
17726
17727# Dependencies to place before the objects being linked to create a
17728# shared library.
17729predep_objects=$lt_predep_objects_F77
17730
17731# Dependencies to place after the objects being linked to create a
17732# shared library.
17733postdep_objects=$lt_postdep_objects_F77
17734
17735# Dependencies to place before the objects being linked to create a
17736# shared library.
17737predeps=$lt_predeps_F77
17738
17739# Dependencies to place after the objects being linked to create a
17740# shared library.
17741postdeps=$lt_postdeps_F77
17742
56efe974
WP
17743# The directories searched by this compiler when creating a shared
17744# library
17745compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
17746
b57f37fb
WP
17747# The library search path used internally by the compiler when linking
17748# a shared library.
17749compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17750
17751# Method to check whether dependent libraries are shared objects.
17752deplibs_check_method=$lt_deplibs_check_method
17753
17754# Command to use when deplibs_check_method == file_magic.
17755file_magic_cmd=$lt_file_magic_cmd
17756
17757# Flag that allows shared libraries with undefined symbols to be built.
17758allow_undefined_flag=$lt_allow_undefined_flag_F77
17759
17760# Flag that forces no undefined symbols.
17761no_undefined_flag=$lt_no_undefined_flag_F77
17762
17763# Commands used to finish a libtool library installation in a directory.
17764finish_cmds=$lt_finish_cmds
17765
17766# Same as above, but a single script fragment to be evaled but not shown.
17767finish_eval=$lt_finish_eval
17768
17769# Take the output of nm and produce a listing of raw symbols and C names.
17770global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17771
17772# Transform the output of nm in a proper C declaration
17773global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17774
17775# Transform the output of nm in a C name address pair
17776global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17777
17778# This is the shared library runtime path variable.
17779runpath_var=$runpath_var
17780
17781# This is the shared library path variable.
17782shlibpath_var=$shlibpath_var
17783
17784# Is shlibpath searched before the hard-coded library search path?
17785shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17786
17787# How to hardcode a shared library path into an executable.
17788hardcode_action=$hardcode_action_F77
17789
17790# Whether we should hardcode library paths into libraries.
17791hardcode_into_libs=$hardcode_into_libs
17792
17793# Flag to hardcode \$libdir into a binary during linking.
17794# This must work even if \$libdir does not exist.
17795hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17796
17797# If ld is used when linking, flag to hardcode \$libdir into
17798# a binary during linking. This must work even if \$libdir does
17799# not exist.
17800hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17801
17802# Whether we need a single -rpath flag with a separated argument.
17803hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17804
17805# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17806# resulting binary.
17807hardcode_direct=$hardcode_direct_F77
17808
17809# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17810# resulting binary.
17811hardcode_minus_L=$hardcode_minus_L_F77
17812
17813# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17814# the resulting binary.
17815hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17816
17817# Set to yes if building a shared library automatically hardcodes DIR into the library
17818# and all subsequent libraries and executables linked against it.
17819hardcode_automatic=$hardcode_automatic_F77
17820
17821# Variables whose values should be saved in libtool wrapper scripts and
17822# restored at relink time.
17823variables_saved_for_relink="$variables_saved_for_relink"
17824
17825# Whether libtool must link a program against all its dependency libraries.
17826link_all_deplibs=$link_all_deplibs_F77
17827
17828# Compile-time system search path for libraries
17829sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17830
17831# Run-time system search path for libraries
17832sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17833
17834# Fix the shell variable \$srcfile for the compiler.
17835fix_srcfile_path=$lt_fix_srcfile_path
17836
17837# Set to yes if exported symbols are required.
17838always_export_symbols=$always_export_symbols_F77
17839
17840# The commands to list exported symbols.
17841export_symbols_cmds=$lt_export_symbols_cmds_F77
17842
17843# The commands to extract the exported symbol list from a shared archive.
17844extract_expsyms_cmds=$lt_extract_expsyms_cmds
17845
17846# Symbols that should not be listed in the preloaded symbols.
17847exclude_expsyms=$lt_exclude_expsyms_F77
17848
17849# Symbols that must always be exported.
17850include_expsyms=$lt_include_expsyms_F77
17851
17852# ### END LIBTOOL TAG CONFIG: $tagname
17853
17854__EOF__
17855
17856
17857else
17858 # If there is no Makefile yet, we rely on a make rule to execute
17859 # `config.status --recheck' to rerun these tests and create the
17860 # libtool script then.
17861 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17862 if test -f "$ltmain_in"; then
17863 test -f Makefile && make "$ltmain"
17864 fi
17865fi
17866
17867
17868ac_ext=c
17869ac_cpp='$CPP $CPPFLAGS'
17870ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17871ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17872ac_compiler_gnu=$ac_cv_c_compiler_gnu
17873
17874CC="$lt_save_CC"
17875
17876 else
17877 tagname=""
17878 fi
17879 ;;
17880
17881 GCJ)
17882 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17883
17884
17885# Source file extension for Java test sources.
17886ac_ext=java
17887
17888# Object file extension for compiled Java test sources.
17889objext=o
17890objext_GCJ=$objext
17891
17892# Code to be used in simple compile tests
17893lt_simple_compile_test_code="class foo {}"
17894
17895# Code to be used in simple link tests
17896lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
17897
17898# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17899
17900# If no C compiler was specified, use CC.
17901LTCC=${LTCC-"$CC"}
17902
17903# If no C compiler flags were specified, use CFLAGS.
17904LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17905
17906# Allow CC to be a program name with arguments.
17907compiler=$CC
17908
17909
17910# save warnings/boilerplate of simple test code
17911ac_outfile=conftest.$ac_objext
17912echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17913eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17914_lt_compiler_boilerplate=`cat conftest.err`
17915$rm conftest*
17916
17917ac_outfile=conftest.$ac_objext
17918echo "$lt_simple_link_test_code" >conftest.$ac_ext
17919eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17920_lt_linker_boilerplate=`cat conftest.err`
56efe974 17921$rm -r conftest*
b57f37fb
WP
17922
17923
17924# Allow CC to be a program name with arguments.
17925lt_save_CC="$CC"
17926CC=${GCJ-"gcj"}
17927compiler=$CC
17928compiler_GCJ=$CC
17929for cc_temp in $compiler""; do
17930 case $cc_temp in
17931 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17932 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17933 \-*) ;;
17934 *) break;;
17935 esac
17936done
17937cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17938
17939
17940# GCJ did not exist at the time GCC didn't implicitly link libc in.
17941archive_cmds_need_lc_GCJ=no
17942
17943old_archive_cmds_GCJ=$old_archive_cmds
17944
17945
17946lt_prog_compiler_no_builtin_flag_GCJ=
17947
17948if test "$GCC" = yes; then
17949 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17950
17951
17952{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17953echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
17954if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17955 echo $ECHO_N "(cached) $ECHO_C" >&6
17956else
17957 lt_cv_prog_compiler_rtti_exceptions=no
17958 ac_outfile=conftest.$ac_objext
17959 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17960 lt_compiler_flag="-fno-rtti -fno-exceptions"
17961 # Insert the option either (1) after the last *FLAGS variable, or
17962 # (2) before a word containing "conftest.", or (3) at the end.
17963 # Note that $ac_compile itself does not contain backslashes and begins
17964 # with a dollar sign (not a hyphen), so the echo should work correctly.
17965 # The option is referenced via a variable to avoid confusing sed.
17966 lt_compile=`echo "$ac_compile" | $SED \
17967 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17968 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17969 -e 's:$: $lt_compiler_flag:'`
dd910409 17970 (eval echo "\"\$as_me:17970: $lt_compile\"" >&5)
b57f37fb
WP
17971 (eval "$lt_compile" 2>conftest.err)
17972 ac_status=$?
17973 cat conftest.err >&5
dd910409 17974 echo "$as_me:17974: \$? = $ac_status" >&5
b57f37fb
WP
17975 if (exit $ac_status) && test -s "$ac_outfile"; then
17976 # The compiler can only warn and ignore the option if not recognized
17977 # So say no if there are warnings other than the usual output.
17978 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17979 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17980 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17981 lt_cv_prog_compiler_rtti_exceptions=yes
17982 fi
17983 fi
17984 $rm conftest*
17985
17986fi
17987{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17988echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17989
17990if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17991 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17992else
17993 :
17994fi
17995
17996fi
17997
17998lt_prog_compiler_wl_GCJ=
17999lt_prog_compiler_pic_GCJ=
18000lt_prog_compiler_static_GCJ=
18001
18002{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18003echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
18004
18005 if test "$GCC" = yes; then
18006 lt_prog_compiler_wl_GCJ='-Wl,'
18007 lt_prog_compiler_static_GCJ='-static'
18008
18009 case $host_os in
18010 aix*)
18011 # All AIX code is PIC.
18012 if test "$host_cpu" = ia64; then
18013 # AIX 5 now supports IA64 processor
18014 lt_prog_compiler_static_GCJ='-Bstatic'
18015 fi
18016 ;;
18017
18018 amigaos*)
18019 # FIXME: we need at least 68020 code to build shared libraries, but
18020 # adding the `-m68020' flag to GCC prevents building anything better,
18021 # like `-m68040'.
18022 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
18023 ;;
18024
18025 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18026 # PIC is the default for these OSes.
18027 ;;
18028
18029 mingw* | cygwin* | pw32* | os2*)
18030 # This hack is so that the source file can tell whether it is being
18031 # built for inclusion in a dll (and should export symbols for example).
18032 # Although the cygwin gcc ignores -fPIC, still need this for old-style
18033 # (--disable-auto-import) libraries
56efe974 18034
b57f37fb
WP
18035 ;;
18036
18037 darwin* | rhapsody*)
18038 # PIC is the default on this platform
18039 # Common symbols not allowed in MH_DYLIB files
18040 lt_prog_compiler_pic_GCJ='-fno-common'
18041 ;;
18042
18043 interix[3-9]*)
18044 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18045 # Instead, we relocate shared libraries at runtime.
18046 ;;
18047
18048 msdosdjgpp*)
18049 # Just because we use GCC doesn't mean we suddenly get shared libraries
18050 # on systems that don't support them.
18051 lt_prog_compiler_can_build_shared_GCJ=no
18052 enable_shared=no
18053 ;;
18054
18055 sysv4*MP*)
18056 if test -d /usr/nec; then
18057 lt_prog_compiler_pic_GCJ=-Kconform_pic
18058 fi
18059 ;;
18060
18061 hpux*)
18062 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18063 # not for PA HP-UX.
18064 case $host_cpu in
18065 hppa*64*|ia64*)
18066 # +Z the default
18067 ;;
18068 *)
18069 lt_prog_compiler_pic_GCJ='-fPIC'
18070 ;;
18071 esac
18072 ;;
18073
18074 *)
18075 lt_prog_compiler_pic_GCJ='-fPIC'
18076 ;;
18077 esac
18078 else
18079 # PORTME Check for flag to pass linker flags through the system compiler.
18080 case $host_os in
18081 aix*)
18082 lt_prog_compiler_wl_GCJ='-Wl,'
18083 if test "$host_cpu" = ia64; then
18084 # AIX 5 now supports IA64 processor
18085 lt_prog_compiler_static_GCJ='-Bstatic'
18086 else
18087 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
18088 fi
18089 ;;
18090 darwin*)
18091 # PIC is the default on this platform
18092 # Common symbols not allowed in MH_DYLIB files
18093 case $cc_basename in
18094 xlc*)
18095 lt_prog_compiler_pic_GCJ='-qnocommon'
18096 lt_prog_compiler_wl_GCJ='-Wl,'
18097 ;;
18098 esac
18099 ;;
18100
18101 mingw* | cygwin* | pw32* | os2*)
18102 # This hack is so that the source file can tell whether it is being
18103 # built for inclusion in a dll (and should export symbols for example).
56efe974 18104
b57f37fb
WP
18105 ;;
18106
18107 hpux9* | hpux10* | hpux11*)
18108 lt_prog_compiler_wl_GCJ='-Wl,'
18109 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18110 # not for PA HP-UX.
18111 case $host_cpu in
18112 hppa*64*|ia64*)
18113 # +Z the default
18114 ;;
18115 *)
18116 lt_prog_compiler_pic_GCJ='+Z'
18117 ;;
18118 esac
18119 # Is there a better lt_prog_compiler_static that works with the bundled CC?
18120 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
18121 ;;
18122
18123 irix5* | irix6* | nonstopux*)
18124 lt_prog_compiler_wl_GCJ='-Wl,'
18125 # PIC (with -KPIC) is the default.
18126 lt_prog_compiler_static_GCJ='-non_shared'
18127 ;;
18128
18129 newsos6)
18130 lt_prog_compiler_pic_GCJ='-KPIC'
18131 lt_prog_compiler_static_GCJ='-Bstatic'
18132 ;;
18133
18134 linux* | k*bsd*-gnu)
18135 case $cc_basename in
18136 icc* | ecc*)
18137 lt_prog_compiler_wl_GCJ='-Wl,'
18138 lt_prog_compiler_pic_GCJ='-KPIC'
18139 lt_prog_compiler_static_GCJ='-static'
18140 ;;
18141 pgcc* | pgf77* | pgf90* | pgf95*)
18142 # Portland Group compilers (*not* the Pentium gcc compiler,
18143 # which looks to be a dead project)
18144 lt_prog_compiler_wl_GCJ='-Wl,'
18145 lt_prog_compiler_pic_GCJ='-fpic'
18146 lt_prog_compiler_static_GCJ='-Bstatic'
18147 ;;
18148 ccc*)
18149 lt_prog_compiler_wl_GCJ='-Wl,'
18150 # All Alpha code is PIC.
18151 lt_prog_compiler_static_GCJ='-non_shared'
18152 ;;
18153 *)
18154 case `$CC -V 2>&1 | sed 5q` in
18155 *Sun\ C*)
18156 # Sun C 5.9
18157 lt_prog_compiler_pic_GCJ='-KPIC'
18158 lt_prog_compiler_static_GCJ='-Bstatic'
18159 lt_prog_compiler_wl_GCJ='-Wl,'
18160 ;;
18161 *Sun\ F*)
18162 # Sun Fortran 8.3 passes all unrecognized flags to the linker
18163 lt_prog_compiler_pic_GCJ='-KPIC'
18164 lt_prog_compiler_static_GCJ='-Bstatic'
18165 lt_prog_compiler_wl_GCJ=''
18166 ;;
18167 esac
18168 ;;
18169 esac
18170 ;;
18171
18172 osf3* | osf4* | osf5*)
18173 lt_prog_compiler_wl_GCJ='-Wl,'
18174 # All OSF/1 code is PIC.
18175 lt_prog_compiler_static_GCJ='-non_shared'
18176 ;;
18177
18178 rdos*)
18179 lt_prog_compiler_static_GCJ='-non_shared'
18180 ;;
18181
18182 solaris*)
18183 lt_prog_compiler_pic_GCJ='-KPIC'
18184 lt_prog_compiler_static_GCJ='-Bstatic'
18185 case $cc_basename in
18186 f77* | f90* | f95*)
18187 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
18188 *)
18189 lt_prog_compiler_wl_GCJ='-Wl,';;
18190 esac
18191 ;;
18192
18193 sunos4*)
18194 lt_prog_compiler_wl_GCJ='-Qoption ld '
18195 lt_prog_compiler_pic_GCJ='-PIC'
18196 lt_prog_compiler_static_GCJ='-Bstatic'
18197 ;;
18198
18199 sysv4 | sysv4.2uw2* | sysv4.3*)
18200 lt_prog_compiler_wl_GCJ='-Wl,'
18201 lt_prog_compiler_pic_GCJ='-KPIC'
18202 lt_prog_compiler_static_GCJ='-Bstatic'
18203 ;;
18204
18205 sysv4*MP*)
18206 if test -d /usr/nec ;then
18207 lt_prog_compiler_pic_GCJ='-Kconform_pic'
18208 lt_prog_compiler_static_GCJ='-Bstatic'
18209 fi
18210 ;;
18211
18212 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18213 lt_prog_compiler_wl_GCJ='-Wl,'
18214 lt_prog_compiler_pic_GCJ='-KPIC'
18215 lt_prog_compiler_static_GCJ='-Bstatic'
18216 ;;
18217
18218 unicos*)
18219 lt_prog_compiler_wl_GCJ='-Wl,'
18220 lt_prog_compiler_can_build_shared_GCJ=no
18221 ;;
18222
18223 uts4*)
18224 lt_prog_compiler_pic_GCJ='-pic'
18225 lt_prog_compiler_static_GCJ='-Bstatic'
18226 ;;
18227
18228 *)
18229 lt_prog_compiler_can_build_shared_GCJ=no
18230 ;;
18231 esac
18232 fi
18233
18234{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
18235echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
18236
18237#
18238# Check to make sure the PIC flag actually works.
18239#
18240if test -n "$lt_prog_compiler_pic_GCJ"; then
18241
18242{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
18243echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
56efe974 18244if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
b57f37fb
WP
18245 echo $ECHO_N "(cached) $ECHO_C" >&6
18246else
56efe974 18247 lt_cv_prog_compiler_pic_works_GCJ=no
b57f37fb
WP
18248 ac_outfile=conftest.$ac_objext
18249 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18250 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
18251 # Insert the option either (1) after the last *FLAGS variable, or
18252 # (2) before a word containing "conftest.", or (3) at the end.
18253 # Note that $ac_compile itself does not contain backslashes and begins
18254 # with a dollar sign (not a hyphen), so the echo should work correctly.
18255 # The option is referenced via a variable to avoid confusing sed.
18256 lt_compile=`echo "$ac_compile" | $SED \
18257 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18258 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18259 -e 's:$: $lt_compiler_flag:'`
dd910409 18260 (eval echo "\"\$as_me:18260: $lt_compile\"" >&5)
b57f37fb
WP
18261 (eval "$lt_compile" 2>conftest.err)
18262 ac_status=$?
18263 cat conftest.err >&5
dd910409 18264 echo "$as_me:18264: \$? = $ac_status" >&5
b57f37fb
WP
18265 if (exit $ac_status) && test -s "$ac_outfile"; then
18266 # The compiler can only warn and ignore the option if not recognized
18267 # So say no if there are warnings other than the usual output.
18268 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18269 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18270 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
56efe974 18271 lt_cv_prog_compiler_pic_works_GCJ=yes
b57f37fb
WP
18272 fi
18273 fi
18274 $rm conftest*
18275
18276fi
56efe974
WP
18277{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
18278echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
b57f37fb 18279
56efe974 18280if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
b57f37fb
WP
18281 case $lt_prog_compiler_pic_GCJ in
18282 "" | " "*) ;;
18283 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
18284 esac
18285else
18286 lt_prog_compiler_pic_GCJ=
18287 lt_prog_compiler_can_build_shared_GCJ=no
18288fi
18289
18290fi
18291case $host_os in
18292 # For platforms which do not support PIC, -DPIC is meaningless:
18293 *djgpp*)
18294 lt_prog_compiler_pic_GCJ=
18295 ;;
18296 *)
18297 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
18298 ;;
18299esac
18300
18301#
18302# Check to make sure the static flag actually works.
18303#
18304wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
18305{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18306echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
56efe974 18307if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
b57f37fb
WP
18308 echo $ECHO_N "(cached) $ECHO_C" >&6
18309else
56efe974 18310 lt_cv_prog_compiler_static_works_GCJ=no
b57f37fb
WP
18311 save_LDFLAGS="$LDFLAGS"
18312 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18313 echo "$lt_simple_link_test_code" > conftest.$ac_ext
18314 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18315 # The linker can only warn and ignore the option if not recognized
18316 # So say no if there are warnings
18317 if test -s conftest.err; then
18318 # Append any errors to the config.log.
18319 cat conftest.err 1>&5
18320 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
18321 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18322 if diff conftest.exp conftest.er2 >/dev/null; then
56efe974 18323 lt_cv_prog_compiler_static_works_GCJ=yes
b57f37fb
WP
18324 fi
18325 else
56efe974 18326 lt_cv_prog_compiler_static_works_GCJ=yes
b57f37fb
WP
18327 fi
18328 fi
56efe974 18329 $rm -r conftest*
b57f37fb
WP
18330 LDFLAGS="$save_LDFLAGS"
18331
18332fi
56efe974
WP
18333{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
18334echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
b57f37fb 18335
56efe974 18336if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
b57f37fb
WP
18337 :
18338else
18339 lt_prog_compiler_static_GCJ=
18340fi
18341
18342
18343{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18344echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
18345if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
18346 echo $ECHO_N "(cached) $ECHO_C" >&6
18347else
18348 lt_cv_prog_compiler_c_o_GCJ=no
18349 $rm -r conftest 2>/dev/null
18350 mkdir conftest
18351 cd conftest
18352 mkdir out
18353 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18354
18355 lt_compiler_flag="-o out/conftest2.$ac_objext"
18356 # Insert the option either (1) after the last *FLAGS variable, or
18357 # (2) before a word containing "conftest.", or (3) at the end.
18358 # Note that $ac_compile itself does not contain backslashes and begins
18359 # with a dollar sign (not a hyphen), so the echo should work correctly.
18360 lt_compile=`echo "$ac_compile" | $SED \
18361 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18362 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18363 -e 's:$: $lt_compiler_flag:'`
dd910409 18364 (eval echo "\"\$as_me:18364: $lt_compile\"" >&5)
b57f37fb
WP
18365 (eval "$lt_compile" 2>out/conftest.err)
18366 ac_status=$?
18367 cat out/conftest.err >&5
dd910409 18368 echo "$as_me:18368: \$? = $ac_status" >&5
b57f37fb
WP
18369 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18370 then
18371 # The compiler can only warn and ignore the option if not recognized
18372 # So say no if there are warnings
18373 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
18374 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18375 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18376 lt_cv_prog_compiler_c_o_GCJ=yes
18377 fi
18378 fi
18379 chmod u+w . 2>&5
18380 $rm conftest*
18381 # SGI C++ compiler will create directory out/ii_files/ for
18382 # template instantiation
18383 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18384 $rm out/* && rmdir out
18385 cd ..
18386 rmdir conftest
18387 $rm conftest*
18388
18389fi
18390{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
18391echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
18392
18393
18394hard_links="nottested"
18395if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
18396 # do not overwrite the value of need_locks provided by the user
18397 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18398echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
18399 hard_links=yes
18400 $rm conftest*
18401 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18402 touch conftest.a
18403 ln conftest.a conftest.b 2>&5 || hard_links=no
18404 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18405 { echo "$as_me:$LINENO: result: $hard_links" >&5
18406echo "${ECHO_T}$hard_links" >&6; }
18407 if test "$hard_links" = no; then
18408 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18409echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18410 need_locks=warn
18411 fi
18412else
18413 need_locks=no
18414fi
18415
18416{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18417echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18418
18419 runpath_var=
18420 allow_undefined_flag_GCJ=
18421 enable_shared_with_static_runtimes_GCJ=no
18422 archive_cmds_GCJ=
18423 archive_expsym_cmds_GCJ=
18424 old_archive_From_new_cmds_GCJ=
18425 old_archive_from_expsyms_cmds_GCJ=
18426 export_dynamic_flag_spec_GCJ=
18427 whole_archive_flag_spec_GCJ=
18428 thread_safe_flag_spec_GCJ=
18429 hardcode_libdir_flag_spec_GCJ=
18430 hardcode_libdir_flag_spec_ld_GCJ=
18431 hardcode_libdir_separator_GCJ=
18432 hardcode_direct_GCJ=no
18433 hardcode_minus_L_GCJ=no
18434 hardcode_shlibpath_var_GCJ=unsupported
18435 link_all_deplibs_GCJ=unknown
18436 hardcode_automatic_GCJ=no
18437 module_cmds_GCJ=
18438 module_expsym_cmds_GCJ=
18439 always_export_symbols_GCJ=no
18440 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18441 # include_expsyms should be a list of space-separated symbols to be *always*
18442 # included in the symbol list
18443 include_expsyms_GCJ=
18444 # exclude_expsyms can be an extended regexp of symbols to exclude
18445 # it will be wrapped by ` (' and `)$', so one must not match beginning or
18446 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
18447 # as well as any symbol that contains `d'.
56efe974 18448 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
b57f37fb
WP
18449 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
18450 # platforms (ab)use it in PIC code, but their linkers get confused if
18451 # the symbol is explicitly referenced. Since portable code cannot
18452 # rely on this symbol name, it's probably fine to never include it in
18453 # preloaded symbol tables.
56efe974 18454 # Exclude shared library initialization/finalization symbols.
b57f37fb
WP
18455 extract_expsyms_cmds=
18456 # Just being paranoid about ensuring that cc_basename is set.
18457 for cc_temp in $compiler""; do
18458 case $cc_temp in
18459 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18460 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18461 \-*) ;;
18462 *) break;;
18463 esac
18464done
18465cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18466
18467 case $host_os in
18468 cygwin* | mingw* | pw32*)
18469 # FIXME: the MSVC++ port hasn't been tested in a loooong time
18470 # When not using gcc, we currently assume that we are using
18471 # Microsoft Visual C++.
18472 if test "$GCC" != yes; then
18473 with_gnu_ld=no
18474 fi
18475 ;;
18476 interix*)
18477 # we just hope/assume this is gcc and not c89 (= MSVC++)
18478 with_gnu_ld=yes
18479 ;;
18480 openbsd*)
18481 with_gnu_ld=no
18482 ;;
18483 esac
18484
18485 ld_shlibs_GCJ=yes
18486 if test "$with_gnu_ld" = yes; then
18487 # If archive_cmds runs LD, not CC, wlarc should be empty
18488 wlarc='${wl}'
18489
18490 # Set some defaults for GNU ld with shared library support. These
18491 # are reset later if shared libraries are not supported. Putting them
18492 # here allows them to be overridden if necessary.
18493 runpath_var=LD_RUN_PATH
18494 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
18495 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
18496 # ancient GNU ld didn't support --whole-archive et. al.
18497 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
18498 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18499 else
18500 whole_archive_flag_spec_GCJ=
18501 fi
18502 supports_anon_versioning=no
18503 case `$LD -v 2>/dev/null` in
18504 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18505 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18506 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18507 *\ 2.11.*) ;; # other 2.11 versions
18508 *) supports_anon_versioning=yes ;;
18509 esac
18510
18511 # See if GNU ld supports shared libraries.
18512 case $host_os in
56efe974 18513 aix[3-9]*)
b57f37fb
WP
18514 # On AIX/PPC, the GNU linker is very broken
18515 if test "$host_cpu" != ia64; then
18516 ld_shlibs_GCJ=no
18517 cat <<EOF 1>&2
18518
18519*** Warning: the GNU linker, at least up to release 2.9.1, is reported
18520*** to be unable to reliably create shared libraries on AIX.
18521*** Therefore, libtool is disabling shared libraries support. If you
18522*** really care for shared libraries, you may want to modify your PATH
18523*** so that a non-GNU linker is found, and then restart.
18524
18525EOF
18526 fi
18527 ;;
18528
18529 amigaos*)
18530 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)'
18531 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18532 hardcode_minus_L_GCJ=yes
18533
18534 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
18535 # that the semantics of dynamic libraries on AmigaOS, at least up
18536 # to version 4, is to share data among multiple programs linked
18537 # with the same dynamic library. Since this doesn't match the
18538 # behavior of shared libraries on other platforms, we can't use
18539 # them.
18540 ld_shlibs_GCJ=no
18541 ;;
18542
18543 beos*)
18544 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18545 allow_undefined_flag_GCJ=unsupported
18546 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18547 # support --undefined. This deserves some investigation. FIXME
18548 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18549 else
18550 ld_shlibs_GCJ=no
18551 fi
18552 ;;
18553
18554 cygwin* | mingw* | pw32*)
18555 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
18556 # as there is no search path for DLLs.
18557 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18558 allow_undefined_flag_GCJ=unsupported
18559 always_export_symbols_GCJ=no
18560 enable_shared_with_static_runtimes_GCJ=yes
18561 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
18562
18563 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18564 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18565 # If the export-symbols file already is a .def file (1st line
18566 # is EXPORTS), use it as is; otherwise, prepend...
18567 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18568 cp $export_symbols $output_objdir/$soname.def;
18569 else
18570 echo EXPORTS > $output_objdir/$soname.def;
18571 cat $export_symbols >> $output_objdir/$soname.def;
18572 fi~
18573 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18574 else
18575 ld_shlibs_GCJ=no
18576 fi
18577 ;;
18578
18579 interix[3-9]*)
18580 hardcode_direct_GCJ=no
18581 hardcode_shlibpath_var_GCJ=no
18582 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18583 export_dynamic_flag_spec_GCJ='${wl}-E'
18584 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18585 # Instead, shared libraries are loaded at an image base (0x10000000 by
18586 # default) and relocated if they conflict, which is a slow very memory
18587 # consuming and fragmenting process. To avoid this, we pick a random,
18588 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18589 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18590 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'
18591 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'
18592 ;;
18593
18594 gnu* | linux* | k*bsd*-gnu)
18595 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18596 tmp_addflag=
18597 case $cc_basename,$host_cpu in
18598 pgcc*) # Portland Group C compiler
18599 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'
18600 tmp_addflag=' $pic_flag'
18601 ;;
18602 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
18603 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'
18604 tmp_addflag=' $pic_flag -Mnomain' ;;
18605 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
18606 tmp_addflag=' -i_dynamic' ;;
18607 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
18608 tmp_addflag=' -i_dynamic -nofor_main' ;;
18609 ifc* | ifort*) # Intel Fortran compiler
18610 tmp_addflag=' -nofor_main' ;;
18611 esac
18612 case `$CC -V 2>&1 | sed 5q` in
18613 *Sun\ C*) # Sun C 5.9
18614 whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
18615 tmp_sharedflag='-G' ;;
18616 *Sun\ F*) # Sun Fortran 8.3
18617 tmp_sharedflag='-G' ;;
18618 *)
18619 tmp_sharedflag='-shared' ;;
18620 esac
18621 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18622
18623 if test $supports_anon_versioning = yes; then
18624 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
18625 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18626 $echo "local: *; };" >> $output_objdir/$libname.ver~
18627 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18628 fi
18629 link_all_deplibs_GCJ=no
18630 else
18631 ld_shlibs_GCJ=no
18632 fi
18633 ;;
18634
18635 netbsd* | netbsdelf*-gnu)
18636 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18637 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18638 wlarc=
18639 else
18640 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18641 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18642 fi
18643 ;;
18644
18645 solaris*)
18646 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
18647 ld_shlibs_GCJ=no
18648 cat <<EOF 1>&2
18649
18650*** Warning: The releases 2.8.* of the GNU linker cannot reliably
18651*** create shared libraries on Solaris systems. Therefore, libtool
18652*** is disabling shared libraries support. We urge you to upgrade GNU
18653*** binutils to release 2.9.1 or newer. Another option is to modify
18654*** your PATH or compiler configuration so that the native linker is
18655*** used, and then restart.
18656
18657EOF
18658 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18659 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18660 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18661 else
18662 ld_shlibs_GCJ=no
18663 fi
18664 ;;
18665
18666 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
18667 case `$LD -v 2>&1` in
18668 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
18669 ld_shlibs_GCJ=no
18670 cat <<_LT_EOF 1>&2
18671
18672*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
18673*** reliably create shared libraries on SCO systems. Therefore, libtool
18674*** is disabling shared libraries support. We urge you to upgrade GNU
18675*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
18676*** your PATH or compiler configuration so that the native linker is
18677*** used, and then restart.
18678
18679_LT_EOF
18680 ;;
18681 *)
18682 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18683 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
18684 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
18685 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
18686 else
18687 ld_shlibs_GCJ=no
18688 fi
18689 ;;
18690 esac
18691 ;;
18692
18693 sunos4*)
18694 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18695 wlarc=
18696 hardcode_direct_GCJ=yes
18697 hardcode_shlibpath_var_GCJ=no
18698 ;;
18699
18700 *)
18701 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18702 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18703 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18704 else
18705 ld_shlibs_GCJ=no
18706 fi
18707 ;;
18708 esac
18709
18710 if test "$ld_shlibs_GCJ" = no; then
18711 runpath_var=
18712 hardcode_libdir_flag_spec_GCJ=
18713 export_dynamic_flag_spec_GCJ=
18714 whole_archive_flag_spec_GCJ=
18715 fi
18716 else
18717 # PORTME fill in a description of your system's linker (not GNU ld)
18718 case $host_os in
18719 aix3*)
18720 allow_undefined_flag_GCJ=unsupported
18721 always_export_symbols_GCJ=yes
18722 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'
18723 # Note: this linker hardcodes the directories in LIBPATH if there
18724 # are no directories specified by -L.
18725 hardcode_minus_L_GCJ=yes
18726 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18727 # Neither direct hardcoding nor static linking is supported with a
18728 # broken collect2.
18729 hardcode_direct_GCJ=unsupported
18730 fi
18731 ;;
18732
56efe974 18733 aix[4-9]*)
b57f37fb
WP
18734 if test "$host_cpu" = ia64; then
18735 # On IA64, the linker does run time linking by default, so we don't
18736 # have to do anything special.
18737 aix_use_runtimelinking=no
18738 exp_sym_flag='-Bexport'
18739 no_entry_flag=""
18740 else
18741 # If we're using GNU nm, then we don't want the "-C" option.
18742 # -C means demangle to AIX nm, but means don't demangle with GNU nm
18743 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18744 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'
18745 else
18746 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'
18747 fi
18748 aix_use_runtimelinking=no
18749
18750 # Test if we are trying to use run time linking or normal
18751 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18752 # need to do runtime linking.
56efe974 18753 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
b57f37fb
WP
18754 for ld_flag in $LDFLAGS; do
18755 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18756 aix_use_runtimelinking=yes
18757 break
18758 fi
18759 done
18760 ;;
18761 esac
18762
18763 exp_sym_flag='-bexport'
18764 no_entry_flag='-bnoentry'
18765 fi
18766
18767 # When large executables or shared objects are built, AIX ld can
18768 # have problems creating the table of contents. If linking a library
18769 # or program results in "error TOC overflow" add -mminimal-toc to
18770 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18771 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18772
18773 archive_cmds_GCJ=''
18774 hardcode_direct_GCJ=yes
18775 hardcode_libdir_separator_GCJ=':'
18776 link_all_deplibs_GCJ=yes
18777
18778 if test "$GCC" = yes; then
18779 case $host_os in aix4.[012]|aix4.[012].*)
18780 # We only want to do this on AIX 4.2 and lower, the check
18781 # below for broken collect2 doesn't work under 4.3+
18782 collect2name=`${CC} -print-prog-name=collect2`
18783 if test -f "$collect2name" && \
18784 strings "$collect2name" | grep resolve_lib_name >/dev/null
18785 then
18786 # We have reworked collect2
18787 :
18788 else
18789 # We have old collect2
18790 hardcode_direct_GCJ=unsupported
18791 # It fails to find uninstalled libraries when the uninstalled
18792 # path is not listed in the libpath. Setting hardcode_minus_L
18793 # to unsupported forces relinking
18794 hardcode_minus_L_GCJ=yes
18795 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18796 hardcode_libdir_separator_GCJ=
18797 fi
18798 ;;
18799 esac
18800 shared_flag='-shared'
18801 if test "$aix_use_runtimelinking" = yes; then
18802 shared_flag="$shared_flag "'${wl}-G'
18803 fi
18804 else
18805 # not using gcc
18806 if test "$host_cpu" = ia64; then
18807 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18808 # chokes on -Wl,-G. The following line is correct:
18809 shared_flag='-G'
18810 else
18811 if test "$aix_use_runtimelinking" = yes; then
18812 shared_flag='${wl}-G'
18813 else
18814 shared_flag='${wl}-bM:SRE'
18815 fi
18816 fi
18817 fi
18818
18819 # It seems that -bexpall does not export symbols beginning with
18820 # underscore (_), so it is better to generate a list of symbols to export.
18821 always_export_symbols_GCJ=yes
18822 if test "$aix_use_runtimelinking" = yes; then
18823 # Warning - without using the other runtime loading flags (-brtl),
18824 # -berok will link without error, but may produce a broken library.
18825 allow_undefined_flag_GCJ='-berok'
18826 # Determine the default libpath from the value encoded in an empty executable.
18827 cat >conftest.$ac_ext <<_ACEOF
18828/* confdefs.h. */
18829_ACEOF
18830cat confdefs.h >>conftest.$ac_ext
18831cat >>conftest.$ac_ext <<_ACEOF
18832/* end confdefs.h. */
18833
18834int
18835main ()
18836{
18837
18838 ;
18839 return 0;
18840}
18841_ACEOF
18842rm -f conftest.$ac_objext conftest$ac_exeext
18843if { (ac_try="$ac_link"
18844case "(($ac_try" in
18845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18846 *) ac_try_echo=$ac_try;;
18847esac
18848eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18849 (eval "$ac_link") 2>conftest.er1
18850 ac_status=$?
18851 grep -v '^ *+' conftest.er1 >conftest.err
18852 rm -f conftest.er1
18853 cat conftest.err >&5
18854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18855 (exit $ac_status); } && {
18856 test -z "$ac_c_werror_flag" ||
18857 test ! -s conftest.err
18858 } && test -s conftest$ac_exeext &&
18859 $as_test_x conftest$ac_exeext; then
18860
18861lt_aix_libpath_sed='
18862 /Import File Strings/,/^$/ {
18863 /^0/ {
18864 s/^0 *\(.*\)$/\1/
18865 p
18866 }
18867 }'
18868aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18869# Check for a 64-bit object if we didn't find anything.
18870if test -z "$aix_libpath"; then
18871 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18872fi
18873else
18874 echo "$as_me: failed program was:" >&5
18875sed 's/^/| /' conftest.$ac_ext >&5
18876
18877
18878fi
18879
18880rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18881 conftest$ac_exeext conftest.$ac_ext
18882if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18883
18884 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18885 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"
18886 else
18887 if test "$host_cpu" = ia64; then
18888 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18889 allow_undefined_flag_GCJ="-z nodefs"
18890 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"
18891 else
18892 # Determine the default libpath from the value encoded in an empty executable.
18893 cat >conftest.$ac_ext <<_ACEOF
18894/* confdefs.h. */
18895_ACEOF
18896cat confdefs.h >>conftest.$ac_ext
18897cat >>conftest.$ac_ext <<_ACEOF
18898/* end confdefs.h. */
18899
18900int
18901main ()
18902{
18903
18904 ;
18905 return 0;
18906}
18907_ACEOF
18908rm -f conftest.$ac_objext conftest$ac_exeext
18909if { (ac_try="$ac_link"
18910case "(($ac_try" in
18911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18912 *) ac_try_echo=$ac_try;;
18913esac
18914eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18915 (eval "$ac_link") 2>conftest.er1
18916 ac_status=$?
18917 grep -v '^ *+' conftest.er1 >conftest.err
18918 rm -f conftest.er1
18919 cat conftest.err >&5
18920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18921 (exit $ac_status); } && {
18922 test -z "$ac_c_werror_flag" ||
18923 test ! -s conftest.err
18924 } && test -s conftest$ac_exeext &&
18925 $as_test_x conftest$ac_exeext; then
18926
18927lt_aix_libpath_sed='
18928 /Import File Strings/,/^$/ {
18929 /^0/ {
18930 s/^0 *\(.*\)$/\1/
18931 p
18932 }
18933 }'
18934aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18935# Check for a 64-bit object if we didn't find anything.
18936if test -z "$aix_libpath"; then
18937 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18938fi
18939else
18940 echo "$as_me: failed program was:" >&5
18941sed 's/^/| /' conftest.$ac_ext >&5
18942
18943
18944fi
18945
18946rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18947 conftest$ac_exeext conftest.$ac_ext
18948if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18949
18950 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18951 # Warning - without using the other run time loading flags,
18952 # -berok will link without error, but may produce a broken library.
18953 no_undefined_flag_GCJ=' ${wl}-bernotok'
18954 allow_undefined_flag_GCJ=' ${wl}-berok'
18955 # Exported symbols can be pulled into shared objects from archives
18956 whole_archive_flag_spec_GCJ='$convenience'
18957 archive_cmds_need_lc_GCJ=yes
18958 # This is similar to how AIX traditionally builds its shared libraries.
18959 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'
18960 fi
18961 fi
18962 ;;
18963
18964 amigaos*)
18965 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)'
18966 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18967 hardcode_minus_L_GCJ=yes
18968 # see comment about different semantics on the GNU ld section
18969 ld_shlibs_GCJ=no
18970 ;;
18971
18972 bsdi[45]*)
18973 export_dynamic_flag_spec_GCJ=-rdynamic
18974 ;;
18975
18976 cygwin* | mingw* | pw32*)
18977 # When not using gcc, we currently assume that we are using
18978 # Microsoft Visual C++.
18979 # hardcode_libdir_flag_spec is actually meaningless, as there is
18980 # no search path for DLLs.
18981 hardcode_libdir_flag_spec_GCJ=' '
18982 allow_undefined_flag_GCJ=unsupported
18983 # Tell ltmain to make .lib files, not .a files.
18984 libext=lib
18985 # Tell ltmain to make .dll files, not .so files.
18986 shrext_cmds=".dll"
18987 # FIXME: Setting linknames here is a bad hack.
18988 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18989 # The linker will automatically build a .lib file if we build a DLL.
18990 old_archive_From_new_cmds_GCJ='true'
18991 # FIXME: Should let the user specify the lib program.
18992 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
18993 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18994 enable_shared_with_static_runtimes_GCJ=yes
18995 ;;
18996
18997 darwin* | rhapsody*)
18998 case $host_os in
18999 rhapsody* | darwin1.[012])
19000 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
19001 ;;
19002 *) # Darwin 1.3 on
19003 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19004 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19005 else
19006 case ${MACOSX_DEPLOYMENT_TARGET} in
19007 10.[012])
19008 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19009 ;;
19010 10.*)
19011 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
19012 ;;
19013 esac
19014 fi
19015 ;;
19016 esac
19017 archive_cmds_need_lc_GCJ=no
19018 hardcode_direct_GCJ=no
19019 hardcode_automatic_GCJ=yes
19020 hardcode_shlibpath_var_GCJ=unsupported
19021 whole_archive_flag_spec_GCJ=''
19022 link_all_deplibs_GCJ=yes
19023 if test "$GCC" = yes ; then
19024 output_verbose_link_cmd='echo'
56efe974
WP
19025 archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
19026 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19027 archive_expsym_cmds_GCJ="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
19028 module_expsym_cmds_GCJ="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
b57f37fb
WP
19029 else
19030 case $cc_basename in
19031 xlc*)
19032 output_verbose_link_cmd='echo'
19033 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
19034 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19035 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19036 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
19037 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}'
19038 ;;
19039 *)
19040 ld_shlibs_GCJ=no
19041 ;;
19042 esac
19043 fi
19044 ;;
19045
19046 dgux*)
19047 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19048 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19049 hardcode_shlibpath_var_GCJ=no
19050 ;;
19051
19052 freebsd1*)
19053 ld_shlibs_GCJ=no
19054 ;;
19055
19056 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19057 # support. Future versions do this automatically, but an explicit c++rt0.o
19058 # does not break anything, and helps significantly (at the cost of a little
19059 # extra space).
19060 freebsd2.2*)
19061 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19062 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19063 hardcode_direct_GCJ=yes
19064 hardcode_shlibpath_var_GCJ=no
19065 ;;
19066
19067 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19068 freebsd2*)
19069 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19070 hardcode_direct_GCJ=yes
19071 hardcode_minus_L_GCJ=yes
19072 hardcode_shlibpath_var_GCJ=no
19073 ;;
19074
19075 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19076 freebsd* | dragonfly*)
19077 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19078 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19079 hardcode_direct_GCJ=yes
19080 hardcode_shlibpath_var_GCJ=no
19081 ;;
19082
19083 hpux9*)
19084 if test "$GCC" = yes; then
19085 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'
19086 else
19087 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'
19088 fi
19089 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19090 hardcode_libdir_separator_GCJ=:
19091 hardcode_direct_GCJ=yes
19092
19093 # hardcode_minus_L: Not really in the search PATH,
19094 # but as the default location of the library.
19095 hardcode_minus_L_GCJ=yes
19096 export_dynamic_flag_spec_GCJ='${wl}-E'
19097 ;;
19098
19099 hpux10*)
19100 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19101 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19102 else
19103 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19104 fi
19105 if test "$with_gnu_ld" = no; then
19106 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19107 hardcode_libdir_separator_GCJ=:
19108
19109 hardcode_direct_GCJ=yes
19110 export_dynamic_flag_spec_GCJ='${wl}-E'
19111
19112 # hardcode_minus_L: Not really in the search PATH,
19113 # but as the default location of the library.
19114 hardcode_minus_L_GCJ=yes
19115 fi
19116 ;;
19117
19118 hpux11*)
19119 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19120 case $host_cpu in
19121 hppa*64*)
19122 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19123 ;;
19124 ia64*)
19125 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19126 ;;
19127 *)
19128 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19129 ;;
19130 esac
19131 else
19132 case $host_cpu in
19133 hppa*64*)
19134 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19135 ;;
19136 ia64*)
19137 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19138 ;;
19139 *)
19140 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19141 ;;
19142 esac
19143 fi
19144 if test "$with_gnu_ld" = no; then
19145 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19146 hardcode_libdir_separator_GCJ=:
19147
19148 case $host_cpu in
19149 hppa*64*|ia64*)
19150 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
19151 hardcode_direct_GCJ=no
19152 hardcode_shlibpath_var_GCJ=no
19153 ;;
19154 *)
19155 hardcode_direct_GCJ=yes
19156 export_dynamic_flag_spec_GCJ='${wl}-E'
19157
19158 # hardcode_minus_L: Not really in the search PATH,
19159 # but as the default location of the library.
19160 hardcode_minus_L_GCJ=yes
19161 ;;
19162 esac
19163 fi
19164 ;;
19165
19166 irix5* | irix6* | nonstopux*)
19167 if test "$GCC" = yes; then
19168 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'
19169 else
19170 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'
19171 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
19172 fi
19173 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19174 hardcode_libdir_separator_GCJ=:
19175 link_all_deplibs_GCJ=yes
19176 ;;
19177
19178 netbsd* | netbsdelf*-gnu)
19179 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19180 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
19181 else
19182 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
19183 fi
19184 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19185 hardcode_direct_GCJ=yes
19186 hardcode_shlibpath_var_GCJ=no
19187 ;;
19188
19189 newsos6)
19190 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19191 hardcode_direct_GCJ=yes
19192 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19193 hardcode_libdir_separator_GCJ=:
19194 hardcode_shlibpath_var_GCJ=no
19195 ;;
19196
19197 openbsd*)
19198 if test -f /usr/libexec/ld.so; then
19199 hardcode_direct_GCJ=yes
19200 hardcode_shlibpath_var_GCJ=no
19201 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19202 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19203 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19204 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19205 export_dynamic_flag_spec_GCJ='${wl}-E'
19206 else
19207 case $host_os in
19208 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19209 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19210 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19211 ;;
19212 *)
19213 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19214 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19215 ;;
19216 esac
19217 fi
19218 else
19219 ld_shlibs_GCJ=no
19220 fi
19221 ;;
19222
19223 os2*)
19224 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19225 hardcode_minus_L_GCJ=yes
19226 allow_undefined_flag_GCJ=unsupported
19227 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'
19228 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19229 ;;
19230
19231 osf3*)
19232 if test "$GCC" = yes; then
19233 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19234 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'
19235 else
19236 allow_undefined_flag_GCJ=' -expect_unresolved \*'
19237 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'
19238 fi
19239 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19240 hardcode_libdir_separator_GCJ=:
19241 ;;
19242
19243 osf4* | osf5*) # as osf3* with the addition of -msym flag
19244 if test "$GCC" = yes; then
19245 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19246 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'
19247 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19248 else
19249 allow_undefined_flag_GCJ=' -expect_unresolved \*'
19250 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'
19251 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~
19252 $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'
19253
19254 # Both c and cxx compiler support -rpath directly
19255 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
19256 fi
19257 hardcode_libdir_separator_GCJ=:
19258 ;;
19259
19260 solaris*)
19261 no_undefined_flag_GCJ=' -z text'
19262 if test "$GCC" = yes; then
19263 wlarc='${wl}'
19264 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19265 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19266 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19267 else
19268 wlarc=''
19269 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19270 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19271 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19272 fi
19273 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19274 hardcode_shlibpath_var_GCJ=no
19275 case $host_os in
19276 solaris2.[0-5] | solaris2.[0-5].*) ;;
19277 *)
19278 # The compiler driver will combine and reorder linker options,
19279 # but understands `-z linker_flag'. GCC discards it without `$wl',
19280 # but is careful enough not to reorder.
19281 # Supported since Solaris 2.6 (maybe 2.5.1?)
19282 if test "$GCC" = yes; then
19283 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19284 else
19285 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
19286 fi
19287 ;;
19288 esac
19289 link_all_deplibs_GCJ=yes
19290 ;;
19291
19292 sunos4*)
19293 if test "x$host_vendor" = xsequent; then
19294 # Use $CC to link under sequent, because it throws in some extra .o
19295 # files that make .init and .fini sections work.
19296 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19297 else
19298 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19299 fi
19300 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19301 hardcode_direct_GCJ=yes
19302 hardcode_minus_L_GCJ=yes
19303 hardcode_shlibpath_var_GCJ=no
19304 ;;
19305
19306 sysv4)
19307 case $host_vendor in
19308 sni)
19309 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19310 hardcode_direct_GCJ=yes # is this really true???
19311 ;;
19312 siemens)
19313 ## LD is ld it makes a PLAMLIB
19314 ## CC just makes a GrossModule.
19315 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19316 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
19317 hardcode_direct_GCJ=no
19318 ;;
19319 motorola)
19320 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19321 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
19322 ;;
19323 esac
19324 runpath_var='LD_RUN_PATH'
19325 hardcode_shlibpath_var_GCJ=no
19326 ;;
19327
19328 sysv4.3*)
19329 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19330 hardcode_shlibpath_var_GCJ=no
19331 export_dynamic_flag_spec_GCJ='-Bexport'
19332 ;;
19333
19334 sysv4*MP*)
19335 if test -d /usr/nec; then
19336 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19337 hardcode_shlibpath_var_GCJ=no
19338 runpath_var=LD_RUN_PATH
19339 hardcode_runpath_var=yes
19340 ld_shlibs_GCJ=yes
19341 fi
19342 ;;
19343
19344 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19345 no_undefined_flag_GCJ='${wl}-z,text'
19346 archive_cmds_need_lc_GCJ=no
19347 hardcode_shlibpath_var_GCJ=no
19348 runpath_var='LD_RUN_PATH'
19349
19350 if test "$GCC" = yes; then
19351 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19352 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19353 else
19354 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19355 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19356 fi
19357 ;;
19358
19359 sysv5* | sco3.2v5* | sco5v6*)
19360 # Note: We can NOT use -z defs as we might desire, because we do not
19361 # link with -lc, and that would cause any symbols used from libc to
19362 # always be unresolved, which means just about no library would
19363 # ever link correctly. If we're not using GNU ld we use -z text
19364 # though, which does catch some bad symbols but isn't as heavy-handed
19365 # as -z defs.
19366 no_undefined_flag_GCJ='${wl}-z,text'
19367 allow_undefined_flag_GCJ='${wl}-z,nodefs'
19368 archive_cmds_need_lc_GCJ=no
19369 hardcode_shlibpath_var_GCJ=no
19370 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19371 hardcode_libdir_separator_GCJ=':'
19372 link_all_deplibs_GCJ=yes
19373 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
19374 runpath_var='LD_RUN_PATH'
19375
19376 if test "$GCC" = yes; then
19377 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19378 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19379 else
19380 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19381 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19382 fi
19383 ;;
19384
19385 uts4*)
19386 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19387 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19388 hardcode_shlibpath_var_GCJ=no
19389 ;;
19390
19391 *)
19392 ld_shlibs_GCJ=no
19393 ;;
19394 esac
19395 fi
19396
19397{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
19398echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
19399test "$ld_shlibs_GCJ" = no && can_build_shared=no
19400
19401#
19402# Do we need to explicitly link libc?
19403#
19404case "x$archive_cmds_need_lc_GCJ" in
19405x|xyes)
19406 # Assume -lc should be added
19407 archive_cmds_need_lc_GCJ=yes
19408
19409 if test "$enable_shared" = yes && test "$GCC" = yes; then
19410 case $archive_cmds_GCJ in
19411 *'~'*)
19412 # FIXME: we may have to deal with multi-command sequences.
19413 ;;
19414 '$CC '*)
19415 # Test whether the compiler implicitly links with -lc since on some
19416 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19417 # to ld, don't add -lc before -lgcc.
19418 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19419echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19420 $rm conftest*
19421 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19422
19423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19424 (eval $ac_compile) 2>&5
19425 ac_status=$?
19426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19427 (exit $ac_status); } 2>conftest.err; then
19428 soname=conftest
19429 lib=conftest
19430 libobjs=conftest.$ac_objext
19431 deplibs=
19432 wl=$lt_prog_compiler_wl_GCJ
19433 pic_flag=$lt_prog_compiler_pic_GCJ
19434 compiler_flags=-v
19435 linker_flags=-v
19436 verstring=
19437 output_objdir=.
19438 libname=conftest
19439 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
19440 allow_undefined_flag_GCJ=
19441 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19442 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19443 ac_status=$?
19444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19445 (exit $ac_status); }
19446 then
19447 archive_cmds_need_lc_GCJ=no
19448 else
19449 archive_cmds_need_lc_GCJ=yes
19450 fi
19451 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
19452 else
19453 cat conftest.err 1>&5
19454 fi
19455 $rm conftest*
19456 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
19457echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
19458 ;;
19459 esac
19460 fi
19461 ;;
19462esac
19463
19464{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19465echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
19466library_names_spec=
19467libname_spec='lib$name'
19468soname_spec=
19469shrext_cmds=".so"
19470postinstall_cmds=
19471postuninstall_cmds=
19472finish_cmds=
19473finish_eval=
19474shlibpath_var=
19475shlibpath_overrides_runpath=unknown
19476version_type=none
19477dynamic_linker="$host_os ld.so"
19478sys_lib_dlsearch_path_spec="/lib /usr/lib"
19479
19480need_lib_prefix=unknown
19481hardcode_into_libs=no
19482
19483# when you set need_version to no, make sure it does not cause -set_version
19484# flags to be left without arguments
19485need_version=unknown
19486
19487case $host_os in
19488aix3*)
19489 version_type=linux
19490 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19491 shlibpath_var=LIBPATH
19492
19493 # AIX 3 has no versioning support, so we append a major version to the name.
19494 soname_spec='${libname}${release}${shared_ext}$major'
19495 ;;
19496
56efe974 19497aix[4-9]*)
b57f37fb
WP
19498 version_type=linux
19499 need_lib_prefix=no
19500 need_version=no
19501 hardcode_into_libs=yes
19502 if test "$host_cpu" = ia64; then
19503 # AIX 5 supports IA64
19504 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19505 shlibpath_var=LD_LIBRARY_PATH
19506 else
19507 # With GCC up to 2.95.x, collect2 would create an import file
19508 # for dependence libraries. The import file would start with
19509 # the line `#! .'. This would cause the generated library to
19510 # depend on `.', always an invalid library. This was fixed in
19511 # development snapshots of GCC prior to 3.0.
19512 case $host_os in
19513 aix4 | aix4.[01] | aix4.[01].*)
19514 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19515 echo ' yes '
19516 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19517 :
19518 else
19519 can_build_shared=no
19520 fi
19521 ;;
19522 esac
19523 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19524 # soname into executable. Probably we can add versioning support to
19525 # collect2, so additional links can be useful in future.
19526 if test "$aix_use_runtimelinking" = yes; then
19527 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19528 # instead of lib<name>.a to let people know that these are not
19529 # typical AIX shared libraries.
19530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19531 else
19532 # We preserve .a as extension for shared libraries through AIX4.2
19533 # and later when we are not doing run time linking.
19534 library_names_spec='${libname}${release}.a $libname.a'
19535 soname_spec='${libname}${release}${shared_ext}$major'
19536 fi
19537 shlibpath_var=LIBPATH
19538 fi
19539 ;;
19540
19541amigaos*)
19542 library_names_spec='$libname.ixlibrary $libname.a'
19543 # Create ${libname}_ixlibrary.a entries in /sys/libs.
19544 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'
19545 ;;
19546
19547beos*)
19548 library_names_spec='${libname}${shared_ext}'
19549 dynamic_linker="$host_os ld.so"
19550 shlibpath_var=LIBRARY_PATH
19551 ;;
19552
19553bsdi[45]*)
19554 version_type=linux
19555 need_version=no
19556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19557 soname_spec='${libname}${release}${shared_ext}$major'
19558 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19559 shlibpath_var=LD_LIBRARY_PATH
19560 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19561 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19562 # the default ld.so.conf also contains /usr/contrib/lib and
19563 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19564 # libtool to hard-code these into programs
19565 ;;
19566
19567cygwin* | mingw* | pw32*)
19568 version_type=windows
19569 shrext_cmds=".dll"
19570 need_version=no
19571 need_lib_prefix=no
19572
19573 case $GCC,$host_os in
19574 yes,cygwin* | yes,mingw* | yes,pw32*)
19575 library_names_spec='$libname.dll.a'
19576 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19577 postinstall_cmds='base_file=`basename \${file}`~
19578 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19579 dldir=$destdir/`dirname \$dlpath`~
19580 test -d \$dldir || mkdir -p \$dldir~
19581 $install_prog $dir/$dlname \$dldir/$dlname~
19582 chmod a+x \$dldir/$dlname'
19583 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19584 dlpath=$dir/\$dldll~
19585 $rm \$dlpath'
19586 shlibpath_overrides_runpath=yes
19587
19588 case $host_os in
19589 cygwin*)
19590 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19591 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19592 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19593 ;;
19594 mingw*)
19595 # MinGW DLLs use traditional 'lib' prefix
19596 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19597 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19598 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19599 # It is most probably a Windows format PATH printed by
19600 # mingw gcc, but we are running on Cygwin. Gcc prints its search
19601 # path with ; separators, and with drive letters. We can handle the
19602 # drive letters (cygwin fileutils understands them), so leave them,
19603 # especially as we might pass files found there to a mingw objdump,
19604 # which wouldn't understand a cygwinified path. Ahh.
19605 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19606 else
19607 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19608 fi
19609 ;;
19610 pw32*)
19611 # pw32 DLLs use 'pw' prefix rather than 'lib'
19612 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19613 ;;
19614 esac
19615 ;;
19616
19617 *)
19618 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19619 ;;
19620 esac
19621 dynamic_linker='Win32 ld.exe'
19622 # FIXME: first we should search . and the directory the executable is in
19623 shlibpath_var=PATH
19624 ;;
19625
19626darwin* | rhapsody*)
19627 dynamic_linker="$host_os dyld"
19628 version_type=darwin
19629 need_lib_prefix=no
19630 need_version=no
19631 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19632 soname_spec='${libname}${release}${major}$shared_ext'
19633 shlibpath_overrides_runpath=yes
19634 shlibpath_var=DYLD_LIBRARY_PATH
19635 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19636
19637 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19638 ;;
19639
19640dgux*)
19641 version_type=linux
19642 need_lib_prefix=no
19643 need_version=no
19644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19645 soname_spec='${libname}${release}${shared_ext}$major'
19646 shlibpath_var=LD_LIBRARY_PATH
19647 ;;
19648
19649freebsd1*)
19650 dynamic_linker=no
19651 ;;
19652
19653freebsd* | dragonfly*)
19654 # DragonFly does not have aout. When/if they implement a new
19655 # versioning mechanism, adjust this.
19656 if test -x /usr/bin/objformat; then
19657 objformat=`/usr/bin/objformat`
19658 else
19659 case $host_os in
19660 freebsd[123]*) objformat=aout ;;
19661 *) objformat=elf ;;
19662 esac
19663 fi
19664 version_type=freebsd-$objformat
19665 case $version_type in
19666 freebsd-elf*)
19667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19668 need_version=no
19669 need_lib_prefix=no
19670 ;;
19671 freebsd-*)
19672 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19673 need_version=yes
19674 ;;
19675 esac
19676 shlibpath_var=LD_LIBRARY_PATH
19677 case $host_os in
19678 freebsd2*)
19679 shlibpath_overrides_runpath=yes
19680 ;;
19681 freebsd3.[01]* | freebsdelf3.[01]*)
19682 shlibpath_overrides_runpath=yes
19683 hardcode_into_libs=yes
19684 ;;
19685 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19686 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19687 shlibpath_overrides_runpath=no
19688 hardcode_into_libs=yes
19689 ;;
19690 *) # from 4.6 on, and DragonFly
19691 shlibpath_overrides_runpath=yes
19692 hardcode_into_libs=yes
19693 ;;
19694 esac
19695 ;;
19696
19697gnu*)
19698 version_type=linux
19699 need_lib_prefix=no
19700 need_version=no
19701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19702 soname_spec='${libname}${release}${shared_ext}$major'
19703 shlibpath_var=LD_LIBRARY_PATH
19704 hardcode_into_libs=yes
19705 ;;
19706
19707hpux9* | hpux10* | hpux11*)
19708 # Give a soname corresponding to the major version so that dld.sl refuses to
19709 # link against other versions.
19710 version_type=sunos
19711 need_lib_prefix=no
19712 need_version=no
19713 case $host_cpu in
19714 ia64*)
19715 shrext_cmds='.so'
19716 hardcode_into_libs=yes
19717 dynamic_linker="$host_os dld.so"
19718 shlibpath_var=LD_LIBRARY_PATH
19719 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19721 soname_spec='${libname}${release}${shared_ext}$major'
19722 if test "X$HPUX_IA64_MODE" = X32; then
19723 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19724 else
19725 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19726 fi
19727 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19728 ;;
19729 hppa*64*)
19730 shrext_cmds='.sl'
19731 hardcode_into_libs=yes
19732 dynamic_linker="$host_os dld.sl"
19733 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19734 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19736 soname_spec='${libname}${release}${shared_ext}$major'
19737 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19738 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19739 ;;
19740 *)
19741 shrext_cmds='.sl'
19742 dynamic_linker="$host_os dld.sl"
19743 shlibpath_var=SHLIB_PATH
19744 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19746 soname_spec='${libname}${release}${shared_ext}$major'
19747 ;;
19748 esac
19749 # HP-UX runs *really* slowly unless shared libraries are mode 555.
19750 postinstall_cmds='chmod 555 $lib'
19751 ;;
19752
19753interix[3-9]*)
19754 version_type=linux
19755 need_lib_prefix=no
19756 need_version=no
19757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19758 soname_spec='${libname}${release}${shared_ext}$major'
19759 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19760 shlibpath_var=LD_LIBRARY_PATH
19761 shlibpath_overrides_runpath=no
19762 hardcode_into_libs=yes
19763 ;;
19764
19765irix5* | irix6* | nonstopux*)
19766 case $host_os in
19767 nonstopux*) version_type=nonstopux ;;
19768 *)
19769 if test "$lt_cv_prog_gnu_ld" = yes; then
19770 version_type=linux
19771 else
19772 version_type=irix
19773 fi ;;
19774 esac
19775 need_lib_prefix=no
19776 need_version=no
19777 soname_spec='${libname}${release}${shared_ext}$major'
19778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19779 case $host_os in
19780 irix5* | nonstopux*)
19781 libsuff= shlibsuff=
19782 ;;
19783 *)
19784 case $LD in # libtool.m4 will add one of these switches to LD
19785 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19786 libsuff= shlibsuff= libmagic=32-bit;;
19787 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19788 libsuff=32 shlibsuff=N32 libmagic=N32;;
19789 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19790 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19791 *) libsuff= shlibsuff= libmagic=never-match;;
19792 esac
19793 ;;
19794 esac
19795 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19796 shlibpath_overrides_runpath=no
19797 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19798 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19799 hardcode_into_libs=yes
19800 ;;
19801
19802# No shared lib support for Linux oldld, aout, or coff.
19803linux*oldld* | linux*aout* | linux*coff*)
19804 dynamic_linker=no
19805 ;;
19806
19807# This must be Linux ELF.
19808linux* | k*bsd*-gnu)
19809 version_type=linux
19810 need_lib_prefix=no
19811 need_version=no
19812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19813 soname_spec='${libname}${release}${shared_ext}$major'
19814 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19815 shlibpath_var=LD_LIBRARY_PATH
19816 shlibpath_overrides_runpath=no
19817 # This implies no fast_install, which is unacceptable.
19818 # Some rework will be needed to allow for fast_install
19819 # before this can be enabled.
19820 hardcode_into_libs=yes
19821
19822 # Append ld.so.conf contents to the search path
19823 if test -f /etc/ld.so.conf; then
19824 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
19825 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19826 fi
19827
19828 # We used to test for /lib/ld.so.1 and disable shared libraries on
19829 # powerpc, because MkLinux only supported shared libraries with the
19830 # GNU dynamic linker. Since this was broken with cross compilers,
19831 # most powerpc-linux boxes support dynamic linking these days and
19832 # people can always --disable-shared, the test was removed, and we
19833 # assume the GNU/Linux dynamic linker is in use.
19834 dynamic_linker='GNU/Linux ld.so'
19835 ;;
19836
19837netbsdelf*-gnu)
19838 version_type=linux
19839 need_lib_prefix=no
19840 need_version=no
19841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19842 soname_spec='${libname}${release}${shared_ext}$major'
19843 shlibpath_var=LD_LIBRARY_PATH
19844 shlibpath_overrides_runpath=no
19845 hardcode_into_libs=yes
19846 dynamic_linker='NetBSD ld.elf_so'
19847 ;;
19848
19849netbsd*)
19850 version_type=sunos
19851 need_lib_prefix=no
19852 need_version=no
19853 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19855 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19856 dynamic_linker='NetBSD (a.out) ld.so'
19857 else
19858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19859 soname_spec='${libname}${release}${shared_ext}$major'
19860 dynamic_linker='NetBSD ld.elf_so'
19861 fi
19862 shlibpath_var=LD_LIBRARY_PATH
19863 shlibpath_overrides_runpath=yes
19864 hardcode_into_libs=yes
19865 ;;
19866
19867newsos6)
19868 version_type=linux
19869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19870 shlibpath_var=LD_LIBRARY_PATH
19871 shlibpath_overrides_runpath=yes
19872 ;;
19873
19874nto-qnx*)
19875 version_type=linux
19876 need_lib_prefix=no
19877 need_version=no
19878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19879 soname_spec='${libname}${release}${shared_ext}$major'
19880 shlibpath_var=LD_LIBRARY_PATH
19881 shlibpath_overrides_runpath=yes
19882 ;;
19883
19884openbsd*)
19885 version_type=sunos
19886 sys_lib_dlsearch_path_spec="/usr/lib"
19887 need_lib_prefix=no
19888 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19889 case $host_os in
19890 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19891 *) need_version=no ;;
19892 esac
19893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19894 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19895 shlibpath_var=LD_LIBRARY_PATH
19896 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19897 case $host_os in
19898 openbsd2.[89] | openbsd2.[89].*)
19899 shlibpath_overrides_runpath=no
19900 ;;
19901 *)
19902 shlibpath_overrides_runpath=yes
19903 ;;
19904 esac
19905 else
19906 shlibpath_overrides_runpath=yes
19907 fi
19908 ;;
19909
19910os2*)
19911 libname_spec='$name'
19912 shrext_cmds=".dll"
19913 need_lib_prefix=no
19914 library_names_spec='$libname${shared_ext} $libname.a'
19915 dynamic_linker='OS/2 ld.exe'
19916 shlibpath_var=LIBPATH
19917 ;;
19918
19919osf3* | osf4* | osf5*)
19920 version_type=osf
19921 need_lib_prefix=no
19922 need_version=no
19923 soname_spec='${libname}${release}${shared_ext}$major'
19924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19925 shlibpath_var=LD_LIBRARY_PATH
19926 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19927 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19928 ;;
19929
19930rdos*)
19931 dynamic_linker=no
19932 ;;
19933
19934solaris*)
19935 version_type=linux
19936 need_lib_prefix=no
19937 need_version=no
19938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19939 soname_spec='${libname}${release}${shared_ext}$major'
19940 shlibpath_var=LD_LIBRARY_PATH
19941 shlibpath_overrides_runpath=yes
19942 hardcode_into_libs=yes
19943 # ldd complains unless libraries are executable
19944 postinstall_cmds='chmod +x $lib'
19945 ;;
19946
19947sunos4*)
19948 version_type=sunos
19949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19950 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19951 shlibpath_var=LD_LIBRARY_PATH
19952 shlibpath_overrides_runpath=yes
19953 if test "$with_gnu_ld" = yes; then
19954 need_lib_prefix=no
19955 fi
19956 need_version=yes
19957 ;;
19958
19959sysv4 | sysv4.3*)
19960 version_type=linux
19961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19962 soname_spec='${libname}${release}${shared_ext}$major'
19963 shlibpath_var=LD_LIBRARY_PATH
19964 case $host_vendor in
19965 sni)
19966 shlibpath_overrides_runpath=no
19967 need_lib_prefix=no
19968 export_dynamic_flag_spec='${wl}-Blargedynsym'
19969 runpath_var=LD_RUN_PATH
19970 ;;
19971 siemens)
19972 need_lib_prefix=no
19973 ;;
19974 motorola)
19975 need_lib_prefix=no
19976 need_version=no
19977 shlibpath_overrides_runpath=no
19978 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19979 ;;
19980 esac
19981 ;;
19982
19983sysv4*MP*)
19984 if test -d /usr/nec ;then
19985 version_type=linux
19986 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19987 soname_spec='$libname${shared_ext}.$major'
19988 shlibpath_var=LD_LIBRARY_PATH
19989 fi
19990 ;;
19991
19992sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19993 version_type=freebsd-elf
19994 need_lib_prefix=no
19995 need_version=no
19996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19997 soname_spec='${libname}${release}${shared_ext}$major'
19998 shlibpath_var=LD_LIBRARY_PATH
19999 hardcode_into_libs=yes
20000 if test "$with_gnu_ld" = yes; then
20001 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20002 shlibpath_overrides_runpath=no
20003 else
20004 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20005 shlibpath_overrides_runpath=yes
20006 case $host_os in
20007 sco3.2v5*)
20008 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20009 ;;
20010 esac
20011 fi
20012 sys_lib_dlsearch_path_spec='/usr/lib'
20013 ;;
20014
20015uts4*)
20016 version_type=linux
20017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20018 soname_spec='${libname}${release}${shared_ext}$major'
20019 shlibpath_var=LD_LIBRARY_PATH
20020 ;;
20021
20022*)
20023 dynamic_linker=no
20024 ;;
20025esac
20026{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20027echo "${ECHO_T}$dynamic_linker" >&6; }
20028test "$dynamic_linker" = no && can_build_shared=no
20029
56efe974
WP
20030if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
20031 echo $ECHO_N "(cached) $ECHO_C" >&6
20032else
20033 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
20034fi
20035
20036sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
20037if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
20038 echo $ECHO_N "(cached) $ECHO_C" >&6
20039else
20040 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
20041fi
20042
20043sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
20044
b57f37fb
WP
20045variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20046if test "$GCC" = yes; then
20047 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20048fi
20049
20050{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20051echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20052hardcode_action_GCJ=
20053if test -n "$hardcode_libdir_flag_spec_GCJ" || \
20054 test -n "$runpath_var_GCJ" || \
20055 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
20056
20057 # We can hardcode non-existant directories.
20058 if test "$hardcode_direct_GCJ" != no &&
20059 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20060 # have to relink, otherwise we might link with an installed library
20061 # when we should be linking with a yet-to-be-installed one
20062 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
20063 test "$hardcode_minus_L_GCJ" != no; then
20064 # Linking always hardcodes the temporary library directory.
20065 hardcode_action_GCJ=relink
20066 else
20067 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20068 hardcode_action_GCJ=immediate
20069 fi
20070else
20071 # We cannot hardcode anything, or else we can only hardcode existing
20072 # directories.
20073 hardcode_action_GCJ=unsupported
20074fi
20075{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
20076echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
20077
20078if test "$hardcode_action_GCJ" = relink; then
20079 # Fast installation is not supported
20080 enable_fast_install=no
20081elif test "$shlibpath_overrides_runpath" = yes ||
20082 test "$enable_shared" = no; then
20083 # Fast installation is not necessary
20084 enable_fast_install=needless
20085fi
20086
20087
20088# The else clause should only fire when bootstrapping the
20089# libtool distribution, otherwise you forgot to ship ltmain.sh
20090# with your package, and you will get complaints that there are
20091# no rules to generate ltmain.sh.
20092if test -f "$ltmain"; then
20093 # See if we are running on zsh, and set the options which allow our commands through
20094 # without removal of \ escapes.
20095 if test -n "${ZSH_VERSION+set}" ; then
20096 setopt NO_GLOB_SUBST
20097 fi
20098 # Now quote all the things that may contain metacharacters while being
20099 # careful not to overquote the AC_SUBSTed values. We take copies of the
20100 # variables and quote the copies for generation of the libtool script.
20101 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20102 SED SHELL STRIP \
20103 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20104 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20105 deplibs_check_method reload_flag reload_cmds need_locks \
20106 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20107 lt_cv_sys_global_symbol_to_c_name_address \
20108 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20109 old_postinstall_cmds old_postuninstall_cmds \
20110 compiler_GCJ \
20111 CC_GCJ \
20112 LD_GCJ \
20113 lt_prog_compiler_wl_GCJ \
20114 lt_prog_compiler_pic_GCJ \
20115 lt_prog_compiler_static_GCJ \
20116 lt_prog_compiler_no_builtin_flag_GCJ \
20117 export_dynamic_flag_spec_GCJ \
20118 thread_safe_flag_spec_GCJ \
20119 whole_archive_flag_spec_GCJ \
20120 enable_shared_with_static_runtimes_GCJ \
20121 old_archive_cmds_GCJ \
20122 old_archive_from_new_cmds_GCJ \
20123 predep_objects_GCJ \
20124 postdep_objects_GCJ \
20125 predeps_GCJ \
20126 postdeps_GCJ \
20127 compiler_lib_search_path_GCJ \
56efe974 20128 compiler_lib_search_dirs_GCJ \
b57f37fb
WP
20129 archive_cmds_GCJ \
20130 archive_expsym_cmds_GCJ \
20131 postinstall_cmds_GCJ \
20132 postuninstall_cmds_GCJ \
20133 old_archive_from_expsyms_cmds_GCJ \
20134 allow_undefined_flag_GCJ \
20135 no_undefined_flag_GCJ \
20136 export_symbols_cmds_GCJ \
20137 hardcode_libdir_flag_spec_GCJ \
20138 hardcode_libdir_flag_spec_ld_GCJ \
20139 hardcode_libdir_separator_GCJ \
20140 hardcode_automatic_GCJ \
20141 module_cmds_GCJ \
20142 module_expsym_cmds_GCJ \
20143 lt_cv_prog_compiler_c_o_GCJ \
20144 fix_srcfile_path_GCJ \
20145 exclude_expsyms_GCJ \
20146 include_expsyms_GCJ; do
20147
20148 case $var in
20149 old_archive_cmds_GCJ | \
20150 old_archive_from_new_cmds_GCJ | \
20151 archive_cmds_GCJ | \
20152 archive_expsym_cmds_GCJ | \
20153 module_cmds_GCJ | \
20154 module_expsym_cmds_GCJ | \
20155 old_archive_from_expsyms_cmds_GCJ | \
20156 export_symbols_cmds_GCJ | \
20157 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20158 postinstall_cmds | postuninstall_cmds | \
20159 old_postinstall_cmds | old_postuninstall_cmds | \
20160 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20161 # Double-quote double-evaled strings.
20162 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20163 ;;
20164 *)
20165 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20166 ;;
20167 esac
20168 done
20169
20170 case $lt_echo in
20171 *'\$0 --fallback-echo"')
20172 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20173 ;;
20174 esac
20175
20176cfgfile="$ofile"
20177
20178 cat <<__EOF__ >> "$cfgfile"
20179# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20180
20181# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20182
20183# Shell to use when invoking shell scripts.
20184SHELL=$lt_SHELL
20185
20186# Whether or not to build shared libraries.
20187build_libtool_libs=$enable_shared
20188
20189# Whether or not to build static libraries.
20190build_old_libs=$enable_static
20191
20192# Whether or not to add -lc for building shared libraries.
20193build_libtool_need_lc=$archive_cmds_need_lc_GCJ
20194
20195# Whether or not to disallow shared libs when runtime libs are static
20196allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
20197
20198# Whether or not to optimize for fast installation.
20199fast_install=$enable_fast_install
20200
20201# The host system.
20202host_alias=$host_alias
20203host=$host
20204host_os=$host_os
20205
20206# The build system.
20207build_alias=$build_alias
20208build=$build
20209build_os=$build_os
20210
20211# An echo program that does not interpret backslashes.
20212echo=$lt_echo
20213
20214# The archiver.
20215AR=$lt_AR
20216AR_FLAGS=$lt_AR_FLAGS
20217
20218# A C compiler.
20219LTCC=$lt_LTCC
20220
20221# LTCC compiler flags.
20222LTCFLAGS=$lt_LTCFLAGS
20223
20224# A language-specific compiler.
20225CC=$lt_compiler_GCJ
20226
20227# Is the compiler the GNU C compiler?
20228with_gcc=$GCC_GCJ
20229
20230# An ERE matcher.
20231EGREP=$lt_EGREP
20232
20233# The linker used to build libraries.
20234LD=$lt_LD_GCJ
20235
20236# Whether we need hard or soft links.
20237LN_S=$lt_LN_S
20238
20239# A BSD-compatible nm program.
20240NM=$lt_NM
20241
20242# A symbol stripping program
20243STRIP=$lt_STRIP
20244
20245# Used to examine libraries when file_magic_cmd begins "file"
20246MAGIC_CMD=$MAGIC_CMD
20247
20248# Used on cygwin: DLL creation program.
20249DLLTOOL="$DLLTOOL"
20250
20251# Used on cygwin: object dumper.
20252OBJDUMP="$OBJDUMP"
20253
20254# Used on cygwin: assembler.
20255AS="$AS"
20256
20257# The name of the directory that contains temporary libtool files.
20258objdir=$objdir
20259
20260# How to create reloadable object files.
20261reload_flag=$lt_reload_flag
20262reload_cmds=$lt_reload_cmds
20263
20264# How to pass a linker flag through the compiler.
20265wl=$lt_lt_prog_compiler_wl_GCJ
20266
20267# Object file suffix (normally "o").
20268objext="$ac_objext"
20269
20270# Old archive suffix (normally "a").
20271libext="$libext"
20272
20273# Shared library suffix (normally ".so").
20274shrext_cmds='$shrext_cmds'
20275
20276# Executable file suffix (normally "").
20277exeext="$exeext"
20278
20279# Additional compiler flags for building library objects.
20280pic_flag=$lt_lt_prog_compiler_pic_GCJ
20281pic_mode=$pic_mode
20282
20283# What is the maximum length of a command?
20284max_cmd_len=$lt_cv_sys_max_cmd_len
20285
20286# Does compiler simultaneously support -c and -o options?
20287compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
20288
20289# Must we lock files when doing compilation?
20290need_locks=$lt_need_locks
20291
20292# Do we need the lib prefix for modules?
20293need_lib_prefix=$need_lib_prefix
20294
20295# Do we need a version for libraries?
20296need_version=$need_version
20297
20298# Whether dlopen is supported.
20299dlopen_support=$enable_dlopen
20300
20301# Whether dlopen of programs is supported.
20302dlopen_self=$enable_dlopen_self
20303
20304# Whether dlopen of statically linked programs is supported.
20305dlopen_self_static=$enable_dlopen_self_static
20306
20307# Compiler flag to prevent dynamic linking.
20308link_static_flag=$lt_lt_prog_compiler_static_GCJ
20309
20310# Compiler flag to turn off builtin functions.
20311no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
20312
20313# Compiler flag to allow reflexive dlopens.
20314export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
20315
20316# Compiler flag to generate shared objects directly from archives.
20317whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
20318
20319# Compiler flag to generate thread-safe objects.
20320thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
20321
20322# Library versioning type.
20323version_type=$version_type
20324
20325# Format of library name prefix.
20326libname_spec=$lt_libname_spec
20327
20328# List of archive names. First name is the real one, the rest are links.
20329# The last name is the one that the linker finds with -lNAME.
20330library_names_spec=$lt_library_names_spec
20331
20332# The coded name of the library, if different from the real name.
20333soname_spec=$lt_soname_spec
20334
20335# Commands used to build and install an old-style archive.
20336RANLIB=$lt_RANLIB
20337old_archive_cmds=$lt_old_archive_cmds_GCJ
20338old_postinstall_cmds=$lt_old_postinstall_cmds
20339old_postuninstall_cmds=$lt_old_postuninstall_cmds
20340
20341# Create an old-style archive from a shared archive.
20342old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
20343
20344# Create a temporary old-style archive to link instead of a shared archive.
20345old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
20346
20347# Commands used to build and install a shared archive.
20348archive_cmds=$lt_archive_cmds_GCJ
20349archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
20350postinstall_cmds=$lt_postinstall_cmds
20351postuninstall_cmds=$lt_postuninstall_cmds
20352
20353# Commands used to build a loadable module (assumed same as above if empty)
20354module_cmds=$lt_module_cmds_GCJ
20355module_expsym_cmds=$lt_module_expsym_cmds_GCJ
20356
20357# Commands to strip libraries.
20358old_striplib=$lt_old_striplib
20359striplib=$lt_striplib
20360
20361# Dependencies to place before the objects being linked to create a
20362# shared library.
20363predep_objects=$lt_predep_objects_GCJ
20364
20365# Dependencies to place after the objects being linked to create a
20366# shared library.
20367postdep_objects=$lt_postdep_objects_GCJ
20368
20369# Dependencies to place before the objects being linked to create a
20370# shared library.
20371predeps=$lt_predeps_GCJ
20372
20373# Dependencies to place after the objects being linked to create a
20374# shared library.
20375postdeps=$lt_postdeps_GCJ
20376
56efe974
WP
20377# The directories searched by this compiler when creating a shared
20378# library
20379compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
20380
b57f37fb
WP
20381# The library search path used internally by the compiler when linking
20382# a shared library.
20383compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
20384
20385# Method to check whether dependent libraries are shared objects.
20386deplibs_check_method=$lt_deplibs_check_method
20387
20388# Command to use when deplibs_check_method == file_magic.
20389file_magic_cmd=$lt_file_magic_cmd
20390
20391# Flag that allows shared libraries with undefined symbols to be built.
20392allow_undefined_flag=$lt_allow_undefined_flag_GCJ
20393
20394# Flag that forces no undefined symbols.
20395no_undefined_flag=$lt_no_undefined_flag_GCJ
20396
20397# Commands used to finish a libtool library installation in a directory.
20398finish_cmds=$lt_finish_cmds
20399
20400# Same as above, but a single script fragment to be evaled but not shown.
20401finish_eval=$lt_finish_eval
20402
20403# Take the output of nm and produce a listing of raw symbols and C names.
20404global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20405
20406# Transform the output of nm in a proper C declaration
20407global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20408
20409# Transform the output of nm in a C name address pair
20410global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20411
20412# This is the shared library runtime path variable.
20413runpath_var=$runpath_var
20414
20415# This is the shared library path variable.
20416shlibpath_var=$shlibpath_var
20417
20418# Is shlibpath searched before the hard-coded library search path?
20419shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20420
20421# How to hardcode a shared library path into an executable.
20422hardcode_action=$hardcode_action_GCJ
20423
20424# Whether we should hardcode library paths into libraries.
20425hardcode_into_libs=$hardcode_into_libs
20426
20427# Flag to hardcode \$libdir into a binary during linking.
20428# This must work even if \$libdir does not exist.
20429hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
20430
20431# If ld is used when linking, flag to hardcode \$libdir into
20432# a binary during linking. This must work even if \$libdir does
20433# not exist.
20434hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
20435
20436# Whether we need a single -rpath flag with a separated argument.
20437hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
20438
20439# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20440# resulting binary.
20441hardcode_direct=$hardcode_direct_GCJ
20442
20443# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20444# resulting binary.
20445hardcode_minus_L=$hardcode_minus_L_GCJ
20446
20447# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20448# the resulting binary.
20449hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
20450
20451# Set to yes if building a shared library automatically hardcodes DIR into the library
20452# and all subsequent libraries and executables linked against it.
20453hardcode_automatic=$hardcode_automatic_GCJ
20454
20455# Variables whose values should be saved in libtool wrapper scripts and
20456# restored at relink time.
20457variables_saved_for_relink="$variables_saved_for_relink"
20458
20459# Whether libtool must link a program against all its dependency libraries.
20460link_all_deplibs=$link_all_deplibs_GCJ
20461
20462# Compile-time system search path for libraries
20463sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20464
20465# Run-time system search path for libraries
20466sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20467
20468# Fix the shell variable \$srcfile for the compiler.
20469fix_srcfile_path=$lt_fix_srcfile_path
20470
20471# Set to yes if exported symbols are required.
20472always_export_symbols=$always_export_symbols_GCJ
20473
20474# The commands to list exported symbols.
20475export_symbols_cmds=$lt_export_symbols_cmds_GCJ
20476
20477# The commands to extract the exported symbol list from a shared archive.
20478extract_expsyms_cmds=$lt_extract_expsyms_cmds
20479
20480# Symbols that should not be listed in the preloaded symbols.
20481exclude_expsyms=$lt_exclude_expsyms_GCJ
20482
20483# Symbols that must always be exported.
20484include_expsyms=$lt_include_expsyms_GCJ
20485
20486# ### END LIBTOOL TAG CONFIG: $tagname
20487
20488__EOF__
20489
20490
20491else
20492 # If there is no Makefile yet, we rely on a make rule to execute
20493 # `config.status --recheck' to rerun these tests and create the
20494 # libtool script then.
20495 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20496 if test -f "$ltmain_in"; then
20497 test -f Makefile && make "$ltmain"
20498 fi
20499fi
20500
20501
20502ac_ext=c
20503ac_cpp='$CPP $CPPFLAGS'
20504ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20505ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20506ac_compiler_gnu=$ac_cv_c_compiler_gnu
20507
20508CC="$lt_save_CC"
20509
20510 else
20511 tagname=""
20512 fi
20513 ;;
20514
20515 RC)
20516
20517
20518# Source file extension for RC test sources.
20519ac_ext=rc
20520
20521# Object file extension for compiled RC test sources.
20522objext=o
20523objext_RC=$objext
20524
20525# Code to be used in simple compile tests
20526lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
20527
20528# Code to be used in simple link tests
20529lt_simple_link_test_code="$lt_simple_compile_test_code"
20530
20531# ltmain only uses $CC for tagged configurations so make sure $CC is set.
20532
20533# If no C compiler was specified, use CC.
20534LTCC=${LTCC-"$CC"}
20535
20536# If no C compiler flags were specified, use CFLAGS.
20537LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20538
20539# Allow CC to be a program name with arguments.
20540compiler=$CC
20541
20542
20543# save warnings/boilerplate of simple test code
20544ac_outfile=conftest.$ac_objext
20545echo "$lt_simple_compile_test_code" >conftest.$ac_ext
20546eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20547_lt_compiler_boilerplate=`cat conftest.err`
20548$rm conftest*
20549
20550ac_outfile=conftest.$ac_objext
20551echo "$lt_simple_link_test_code" >conftest.$ac_ext
20552eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20553_lt_linker_boilerplate=`cat conftest.err`
56efe974 20554$rm -r conftest*
b57f37fb
WP
20555
20556
20557# Allow CC to be a program name with arguments.
20558lt_save_CC="$CC"
20559CC=${RC-"windres"}
20560compiler=$CC
20561compiler_RC=$CC
20562for cc_temp in $compiler""; do
20563 case $cc_temp in
20564 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20565 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20566 \-*) ;;
20567 *) break;;
20568 esac
20569done
20570cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20571
20572lt_cv_prog_compiler_c_o_RC=yes
20573
20574# The else clause should only fire when bootstrapping the
20575# libtool distribution, otherwise you forgot to ship ltmain.sh
20576# with your package, and you will get complaints that there are
20577# no rules to generate ltmain.sh.
20578if test -f "$ltmain"; then
20579 # See if we are running on zsh, and set the options which allow our commands through
20580 # without removal of \ escapes.
20581 if test -n "${ZSH_VERSION+set}" ; then
20582 setopt NO_GLOB_SUBST
20583 fi
20584 # Now quote all the things that may contain metacharacters while being
20585 # careful not to overquote the AC_SUBSTed values. We take copies of the
20586 # variables and quote the copies for generation of the libtool script.
20587 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20588 SED SHELL STRIP \
20589 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20590 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20591 deplibs_check_method reload_flag reload_cmds need_locks \
20592 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20593 lt_cv_sys_global_symbol_to_c_name_address \
20594 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20595 old_postinstall_cmds old_postuninstall_cmds \
20596 compiler_RC \
20597 CC_RC \
20598 LD_RC \
20599 lt_prog_compiler_wl_RC \
20600 lt_prog_compiler_pic_RC \
20601 lt_prog_compiler_static_RC \
20602 lt_prog_compiler_no_builtin_flag_RC \
20603 export_dynamic_flag_spec_RC \
20604 thread_safe_flag_spec_RC \
20605 whole_archive_flag_spec_RC \
20606 enable_shared_with_static_runtimes_RC \
20607 old_archive_cmds_RC \
20608 old_archive_from_new_cmds_RC \
20609 predep_objects_RC \
20610 postdep_objects_RC \
20611 predeps_RC \
20612 postdeps_RC \
20613 compiler_lib_search_path_RC \
56efe974 20614 compiler_lib_search_dirs_RC \
b57f37fb
WP
20615 archive_cmds_RC \
20616 archive_expsym_cmds_RC \
20617 postinstall_cmds_RC \
20618 postuninstall_cmds_RC \
20619 old_archive_from_expsyms_cmds_RC \
20620 allow_undefined_flag_RC \
20621 no_undefined_flag_RC \
20622 export_symbols_cmds_RC \
20623 hardcode_libdir_flag_spec_RC \
20624 hardcode_libdir_flag_spec_ld_RC \
20625 hardcode_libdir_separator_RC \
20626 hardcode_automatic_RC \
20627 module_cmds_RC \
20628 module_expsym_cmds_RC \
20629 lt_cv_prog_compiler_c_o_RC \
20630 fix_srcfile_path_RC \
20631 exclude_expsyms_RC \
20632 include_expsyms_RC; do
20633
20634 case $var in
20635 old_archive_cmds_RC | \
20636 old_archive_from_new_cmds_RC | \
20637 archive_cmds_RC | \
20638 archive_expsym_cmds_RC | \
20639 module_cmds_RC | \
20640 module_expsym_cmds_RC | \
20641 old_archive_from_expsyms_cmds_RC | \
20642 export_symbols_cmds_RC | \
20643 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20644 postinstall_cmds | postuninstall_cmds | \
20645 old_postinstall_cmds | old_postuninstall_cmds | \
20646 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20647 # Double-quote double-evaled strings.
20648 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20649 ;;
20650 *)
20651 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20652 ;;
20653 esac
20654 done
20655
20656 case $lt_echo in
20657 *'\$0 --fallback-echo"')
20658 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20659 ;;
20660 esac
20661
20662cfgfile="$ofile"
20663
20664 cat <<__EOF__ >> "$cfgfile"
20665# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20666
20667# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20668
20669# Shell to use when invoking shell scripts.
20670SHELL=$lt_SHELL
20671
20672# Whether or not to build shared libraries.
20673build_libtool_libs=$enable_shared
20674
20675# Whether or not to build static libraries.
20676build_old_libs=$enable_static
20677
20678# Whether or not to add -lc for building shared libraries.
20679build_libtool_need_lc=$archive_cmds_need_lc_RC
20680
20681# Whether or not to disallow shared libs when runtime libs are static
20682allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
20683
20684# Whether or not to optimize for fast installation.
20685fast_install=$enable_fast_install
20686
20687# The host system.
20688host_alias=$host_alias
20689host=$host
20690host_os=$host_os
20691
20692# The build system.
20693build_alias=$build_alias
20694build=$build
20695build_os=$build_os
20696
20697# An echo program that does not interpret backslashes.
20698echo=$lt_echo
20699
20700# The archiver.
20701AR=$lt_AR
20702AR_FLAGS=$lt_AR_FLAGS
20703
20704# A C compiler.
20705LTCC=$lt_LTCC
20706
20707# LTCC compiler flags.
20708LTCFLAGS=$lt_LTCFLAGS
20709
20710# A language-specific compiler.
20711CC=$lt_compiler_RC
20712
20713# Is the compiler the GNU C compiler?
20714with_gcc=$GCC_RC
20715
20716# An ERE matcher.
20717EGREP=$lt_EGREP
20718
20719# The linker used to build libraries.
20720LD=$lt_LD_RC
20721
20722# Whether we need hard or soft links.
20723LN_S=$lt_LN_S
20724
20725# A BSD-compatible nm program.
20726NM=$lt_NM
20727
20728# A symbol stripping program
20729STRIP=$lt_STRIP
20730
20731# Used to examine libraries when file_magic_cmd begins "file"
20732MAGIC_CMD=$MAGIC_CMD
20733
20734# Used on cygwin: DLL creation program.
20735DLLTOOL="$DLLTOOL"
20736
20737# Used on cygwin: object dumper.
20738OBJDUMP="$OBJDUMP"
20739
20740# Used on cygwin: assembler.
20741AS="$AS"
20742
20743# The name of the directory that contains temporary libtool files.
20744objdir=$objdir
20745
20746# How to create reloadable object files.
20747reload_flag=$lt_reload_flag
20748reload_cmds=$lt_reload_cmds
20749
20750# How to pass a linker flag through the compiler.
20751wl=$lt_lt_prog_compiler_wl_RC
20752
20753# Object file suffix (normally "o").
20754objext="$ac_objext"
20755
20756# Old archive suffix (normally "a").
20757libext="$libext"
20758
20759# Shared library suffix (normally ".so").
20760shrext_cmds='$shrext_cmds'
20761
20762# Executable file suffix (normally "").
20763exeext="$exeext"
20764
20765# Additional compiler flags for building library objects.
20766pic_flag=$lt_lt_prog_compiler_pic_RC
20767pic_mode=$pic_mode
20768
20769# What is the maximum length of a command?
20770max_cmd_len=$lt_cv_sys_max_cmd_len
20771
20772# Does compiler simultaneously support -c and -o options?
20773compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20774
20775# Must we lock files when doing compilation?
20776need_locks=$lt_need_locks
20777
20778# Do we need the lib prefix for modules?
20779need_lib_prefix=$need_lib_prefix
20780
20781# Do we need a version for libraries?
20782need_version=$need_version
20783
20784# Whether dlopen is supported.
20785dlopen_support=$enable_dlopen
20786
20787# Whether dlopen of programs is supported.
20788dlopen_self=$enable_dlopen_self
20789
20790# Whether dlopen of statically linked programs is supported.
20791dlopen_self_static=$enable_dlopen_self_static
20792
20793# Compiler flag to prevent dynamic linking.
20794link_static_flag=$lt_lt_prog_compiler_static_RC
20795
20796# Compiler flag to turn off builtin functions.
20797no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20798
20799# Compiler flag to allow reflexive dlopens.
20800export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20801
20802# Compiler flag to generate shared objects directly from archives.
20803whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20804
20805# Compiler flag to generate thread-safe objects.
20806thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20807
20808# Library versioning type.
20809version_type=$version_type
20810
20811# Format of library name prefix.
20812libname_spec=$lt_libname_spec
20813
20814# List of archive names. First name is the real one, the rest are links.
20815# The last name is the one that the linker finds with -lNAME.
20816library_names_spec=$lt_library_names_spec
20817
20818# The coded name of the library, if different from the real name.
20819soname_spec=$lt_soname_spec
20820
20821# Commands used to build and install an old-style archive.
20822RANLIB=$lt_RANLIB
20823old_archive_cmds=$lt_old_archive_cmds_RC
20824old_postinstall_cmds=$lt_old_postinstall_cmds
20825old_postuninstall_cmds=$lt_old_postuninstall_cmds
20826
20827# Create an old-style archive from a shared archive.
20828old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20829
20830# Create a temporary old-style archive to link instead of a shared archive.
20831old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20832
20833# Commands used to build and install a shared archive.
20834archive_cmds=$lt_archive_cmds_RC
20835archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20836postinstall_cmds=$lt_postinstall_cmds
20837postuninstall_cmds=$lt_postuninstall_cmds
20838
20839# Commands used to build a loadable module (assumed same as above if empty)
20840module_cmds=$lt_module_cmds_RC
20841module_expsym_cmds=$lt_module_expsym_cmds_RC
20842
20843# Commands to strip libraries.
20844old_striplib=$lt_old_striplib
20845striplib=$lt_striplib
20846
20847# Dependencies to place before the objects being linked to create a
20848# shared library.
20849predep_objects=$lt_predep_objects_RC
20850
20851# Dependencies to place after the objects being linked to create a
20852# shared library.
20853postdep_objects=$lt_postdep_objects_RC
20854
20855# Dependencies to place before the objects being linked to create a
20856# shared library.
20857predeps=$lt_predeps_RC
20858
20859# Dependencies to place after the objects being linked to create a
20860# shared library.
20861postdeps=$lt_postdeps_RC
20862
56efe974
WP
20863# The directories searched by this compiler when creating a shared
20864# library
20865compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
20866
b57f37fb
WP
20867# The library search path used internally by the compiler when linking
20868# a shared library.
20869compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20870
20871# Method to check whether dependent libraries are shared objects.
20872deplibs_check_method=$lt_deplibs_check_method
20873
20874# Command to use when deplibs_check_method == file_magic.
20875file_magic_cmd=$lt_file_magic_cmd
20876
20877# Flag that allows shared libraries with undefined symbols to be built.
20878allow_undefined_flag=$lt_allow_undefined_flag_RC
20879
20880# Flag that forces no undefined symbols.
20881no_undefined_flag=$lt_no_undefined_flag_RC
20882
20883# Commands used to finish a libtool library installation in a directory.
20884finish_cmds=$lt_finish_cmds
20885
20886# Same as above, but a single script fragment to be evaled but not shown.
20887finish_eval=$lt_finish_eval
20888
20889# Take the output of nm and produce a listing of raw symbols and C names.
20890global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20891
20892# Transform the output of nm in a proper C declaration
20893global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20894
20895# Transform the output of nm in a C name address pair
20896global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20897
20898# This is the shared library runtime path variable.
20899runpath_var=$runpath_var
20900
20901# This is the shared library path variable.
20902shlibpath_var=$shlibpath_var
20903
20904# Is shlibpath searched before the hard-coded library search path?
20905shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20906
20907# How to hardcode a shared library path into an executable.
20908hardcode_action=$hardcode_action_RC
20909
20910# Whether we should hardcode library paths into libraries.
20911hardcode_into_libs=$hardcode_into_libs
20912
20913# Flag to hardcode \$libdir into a binary during linking.
20914# This must work even if \$libdir does not exist.
20915hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20916
20917# If ld is used when linking, flag to hardcode \$libdir into
20918# a binary during linking. This must work even if \$libdir does
20919# not exist.
20920hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20921
20922# Whether we need a single -rpath flag with a separated argument.
20923hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20924
20925# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20926# resulting binary.
20927hardcode_direct=$hardcode_direct_RC
20928
20929# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20930# resulting binary.
20931hardcode_minus_L=$hardcode_minus_L_RC
20932
20933# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20934# the resulting binary.
20935hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20936
20937# Set to yes if building a shared library automatically hardcodes DIR into the library
20938# and all subsequent libraries and executables linked against it.
20939hardcode_automatic=$hardcode_automatic_RC
20940
20941# Variables whose values should be saved in libtool wrapper scripts and
20942# restored at relink time.
20943variables_saved_for_relink="$variables_saved_for_relink"
20944
20945# Whether libtool must link a program against all its dependency libraries.
20946link_all_deplibs=$link_all_deplibs_RC
20947
20948# Compile-time system search path for libraries
20949sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20950
20951# Run-time system search path for libraries
20952sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20953
20954# Fix the shell variable \$srcfile for the compiler.
20955fix_srcfile_path=$lt_fix_srcfile_path
20956
20957# Set to yes if exported symbols are required.
20958always_export_symbols=$always_export_symbols_RC
20959
20960# The commands to list exported symbols.
20961export_symbols_cmds=$lt_export_symbols_cmds_RC
20962
20963# The commands to extract the exported symbol list from a shared archive.
20964extract_expsyms_cmds=$lt_extract_expsyms_cmds
20965
20966# Symbols that should not be listed in the preloaded symbols.
20967exclude_expsyms=$lt_exclude_expsyms_RC
20968
20969# Symbols that must always be exported.
20970include_expsyms=$lt_include_expsyms_RC
20971
20972# ### END LIBTOOL TAG CONFIG: $tagname
20973
20974__EOF__
20975
20976
20977else
20978 # If there is no Makefile yet, we rely on a make rule to execute
20979 # `config.status --recheck' to rerun these tests and create the
20980 # libtool script then.
20981 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20982 if test -f "$ltmain_in"; then
20983 test -f Makefile && make "$ltmain"
20984 fi
20985fi
20986
20987
20988ac_ext=c
20989ac_cpp='$CPP $CPPFLAGS'
20990ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20991ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20992ac_compiler_gnu=$ac_cv_c_compiler_gnu
20993
20994CC="$lt_save_CC"
20995
20996 ;;
20997
20998 *)
20999 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
21000echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
21001 { (exit 1); exit 1; }; }
21002 ;;
21003 esac
21004
21005 # Append the new tag name to the list of available tags.
21006 if test -n "$tagname" ; then
21007 available_tags="$available_tags $tagname"
21008 fi
21009 fi
21010 done
21011 IFS="$lt_save_ifs"
21012
21013 # Now substitute the updated list of available tags.
21014 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
21015 mv "${ofile}T" "$ofile"
21016 chmod +x "$ofile"
21017 else
21018 rm -f "${ofile}T"
21019 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
21020echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
21021 { (exit 1); exit 1; }; }
21022 fi
21023fi
21024
21025
21026
21027# This can be used to rebuild libtool when needed
21028LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
21029
21030# Always use our own libtool.
21031LIBTOOL='$(SHELL) $(top_builddir)/libtool'
21032
21033# Prevent multiple expansion
21034
21035
21036
21037
21038
21039
21040
21041
21042
21043
21044
21045
21046
21047
21048
21049
21050
21051
21052
21053
21054
21055LIBTOOL="$LIBTOOL --silent"
21056
21057subdirs="$subdirs libltdl"
21058
21059
21060
21061case "$host_os" in
21062*cygwin*)
21063
21064cat >>confdefs.h <<_ACEOF
21065#define CYGWIN 1
21066_ACEOF
21067
21068
21069cat >>confdefs.h <<_ACEOF
21070#define WINDOWS 1
21071_ACEOF
21072
21073 ;;
21074*mingw*)
21075
21076cat >>confdefs.h <<_ACEOF
21077#define MINGW 1
21078_ACEOF
21079
21080
21081cat >>confdefs.h <<_ACEOF
21082#define WINDOWS 1
21083_ACEOF
21084
21085 if test "${ac_cv_header_windows_h+set}" = set; then
21086 { echo "$as_me:$LINENO: checking for windows.h" >&5
21087echo $ECHO_N "checking for windows.h... $ECHO_C" >&6; }
21088if test "${ac_cv_header_windows_h+set}" = set; then
21089 echo $ECHO_N "(cached) $ECHO_C" >&6
21090fi
21091{ echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
21092echo "${ECHO_T}$ac_cv_header_windows_h" >&6; }
21093else
21094 # Is the header compilable?
21095{ echo "$as_me:$LINENO: checking windows.h usability" >&5
21096echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6; }
21097cat >conftest.$ac_ext <<_ACEOF
21098/* confdefs.h. */
21099_ACEOF
21100cat confdefs.h >>conftest.$ac_ext
21101cat >>conftest.$ac_ext <<_ACEOF
21102/* end confdefs.h. */
21103$ac_includes_default
21104#include <windows.h>
21105_ACEOF
21106rm -f conftest.$ac_objext
21107if { (ac_try="$ac_compile"
21108case "(($ac_try" in
21109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21110 *) ac_try_echo=$ac_try;;
21111esac
21112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21113 (eval "$ac_compile") 2>conftest.er1
21114 ac_status=$?
21115 grep -v '^ *+' conftest.er1 >conftest.err
21116 rm -f conftest.er1
21117 cat conftest.err >&5
21118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21119 (exit $ac_status); } && {
21120 test -z "$ac_c_werror_flag" ||
21121 test ! -s conftest.err
21122 } && test -s conftest.$ac_objext; then
21123 ac_header_compiler=yes
21124else
21125 echo "$as_me: failed program was:" >&5
21126sed 's/^/| /' conftest.$ac_ext >&5
21127
21128 ac_header_compiler=no
21129fi
21130
21131rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21132{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21133echo "${ECHO_T}$ac_header_compiler" >&6; }
21134
21135# Is the header present?
21136{ echo "$as_me:$LINENO: checking windows.h presence" >&5
21137echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6; }
21138cat >conftest.$ac_ext <<_ACEOF
21139/* confdefs.h. */
21140_ACEOF
21141cat confdefs.h >>conftest.$ac_ext
21142cat >>conftest.$ac_ext <<_ACEOF
21143/* end confdefs.h. */
21144#include <windows.h>
21145_ACEOF
21146if { (ac_try="$ac_cpp conftest.$ac_ext"
21147case "(($ac_try" in
21148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21149 *) ac_try_echo=$ac_try;;
21150esac
21151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21152 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21153 ac_status=$?
21154 grep -v '^ *+' conftest.er1 >conftest.err
21155 rm -f conftest.er1
21156 cat conftest.err >&5
21157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21158 (exit $ac_status); } >/dev/null && {
21159 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21160 test ! -s conftest.err
21161 }; then
21162 ac_header_preproc=yes
21163else
21164 echo "$as_me: failed program was:" >&5
21165sed 's/^/| /' conftest.$ac_ext >&5
21166
21167 ac_header_preproc=no
21168fi
21169
21170rm -f conftest.err conftest.$ac_ext
21171{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21172echo "${ECHO_T}$ac_header_preproc" >&6; }
21173
21174# So? What about this header?
21175case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21176 yes:no: )
21177 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
21178echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21179 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
21180echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
21181 ac_header_preproc=yes
21182 ;;
21183 no:yes:* )
21184 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
21185echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
21186 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
21187echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
21188 { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
21189echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
21190 { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
21191echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
21192 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
21193echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
21194 { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
21195echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
21196
21197 ;;
21198esac
21199{ echo "$as_me:$LINENO: checking for windows.h" >&5
21200echo $ECHO_N "checking for windows.h... $ECHO_C" >&6; }
21201if test "${ac_cv_header_windows_h+set}" = set; then
21202 echo $ECHO_N "(cached) $ECHO_C" >&6
21203else
21204 ac_cv_header_windows_h=$ac_header_preproc
21205fi
21206{ echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
21207echo "${ECHO_T}$ac_cv_header_windows_h" >&6; }
21208
21209fi
21210if test $ac_cv_header_windows_h = yes; then
21211 :
21212else
21213 { { echo "$as_me:$LINENO: error: ** MinGW and no windows.h. I give up." >&5
21214echo "$as_me: error: ** MinGW and no windows.h. I give up." >&2;}
21215 { (exit 1); exit 1; }; }
21216fi
21217
21218
21219 if test "${ac_cv_header_winsock2_h+set}" = set; then
21220 { echo "$as_me:$LINENO: checking for winsock2.h" >&5
21221echo $ECHO_N "checking for winsock2.h... $ECHO_C" >&6; }
21222if test "${ac_cv_header_winsock2_h+set}" = set; then
21223 echo $ECHO_N "(cached) $ECHO_C" >&6
21224fi
21225{ echo "$as_me:$LINENO: result: $ac_cv_header_winsock2_h" >&5
21226echo "${ECHO_T}$ac_cv_header_winsock2_h" >&6; }
21227else
21228 # Is the header compilable?
21229{ echo "$as_me:$LINENO: checking winsock2.h usability" >&5
21230echo $ECHO_N "checking winsock2.h usability... $ECHO_C" >&6; }
21231cat >conftest.$ac_ext <<_ACEOF
21232/* confdefs.h. */
21233_ACEOF
21234cat confdefs.h >>conftest.$ac_ext
21235cat >>conftest.$ac_ext <<_ACEOF
21236/* end confdefs.h. */
21237$ac_includes_default
21238#include <winsock2.h>
21239_ACEOF
21240rm -f conftest.$ac_objext
21241if { (ac_try="$ac_compile"
21242case "(($ac_try" in
21243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21244 *) ac_try_echo=$ac_try;;
21245esac
21246eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21247 (eval "$ac_compile") 2>conftest.er1
21248 ac_status=$?
21249 grep -v '^ *+' conftest.er1 >conftest.err
21250 rm -f conftest.er1
21251 cat conftest.err >&5
21252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21253 (exit $ac_status); } && {
21254 test -z "$ac_c_werror_flag" ||
21255 test ! -s conftest.err
21256 } && test -s conftest.$ac_objext; then
21257 ac_header_compiler=yes
21258else
21259 echo "$as_me: failed program was:" >&5
21260sed 's/^/| /' conftest.$ac_ext >&5
21261
21262 ac_header_compiler=no
21263fi
21264
21265rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21266{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21267echo "${ECHO_T}$ac_header_compiler" >&6; }
21268
21269# Is the header present?
21270{ echo "$as_me:$LINENO: checking winsock2.h presence" >&5
21271echo $ECHO_N "checking winsock2.h presence... $ECHO_C" >&6; }
21272cat >conftest.$ac_ext <<_ACEOF
21273/* confdefs.h. */
21274_ACEOF
21275cat confdefs.h >>conftest.$ac_ext
21276cat >>conftest.$ac_ext <<_ACEOF
21277/* end confdefs.h. */
21278#include <winsock2.h>
21279_ACEOF
21280if { (ac_try="$ac_cpp conftest.$ac_ext"
21281case "(($ac_try" in
21282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21283 *) ac_try_echo=$ac_try;;
21284esac
21285eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21286 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21287 ac_status=$?
21288 grep -v '^ *+' conftest.er1 >conftest.err
21289 rm -f conftest.er1
21290 cat conftest.err >&5
21291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21292 (exit $ac_status); } >/dev/null && {
21293 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21294 test ! -s conftest.err
21295 }; then
21296 ac_header_preproc=yes
21297else
21298 echo "$as_me: failed program was:" >&5
21299sed 's/^/| /' conftest.$ac_ext >&5
21300
21301 ac_header_preproc=no
21302fi
21303
21304rm -f conftest.err conftest.$ac_ext
21305{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21306echo "${ECHO_T}$ac_header_preproc" >&6; }
21307
21308# So? What about this header?
21309case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21310 yes:no: )
21311 { echo "$as_me:$LINENO: WARNING: winsock2.h: accepted by the compiler, rejected by the preprocessor!" >&5
21312echo "$as_me: WARNING: winsock2.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21313 { echo "$as_me:$LINENO: WARNING: winsock2.h: proceeding with the compiler's result" >&5
21314echo "$as_me: WARNING: winsock2.h: proceeding with the compiler's result" >&2;}
21315 ac_header_preproc=yes
21316 ;;
21317 no:yes:* )
21318 { echo "$as_me:$LINENO: WARNING: winsock2.h: present but cannot be compiled" >&5
21319echo "$as_me: WARNING: winsock2.h: present but cannot be compiled" >&2;}
21320 { echo "$as_me:$LINENO: WARNING: winsock2.h: check for missing prerequisite headers?" >&5
21321echo "$as_me: WARNING: winsock2.h: check for missing prerequisite headers?" >&2;}
21322 { echo "$as_me:$LINENO: WARNING: winsock2.h: see the Autoconf documentation" >&5
21323echo "$as_me: WARNING: winsock2.h: see the Autoconf documentation" >&2;}
21324 { echo "$as_me:$LINENO: WARNING: winsock2.h: section \"Present But Cannot Be Compiled\"" >&5
21325echo "$as_me: WARNING: winsock2.h: section \"Present But Cannot Be Compiled\"" >&2;}
21326 { echo "$as_me:$LINENO: WARNING: winsock2.h: proceeding with the preprocessor's result" >&5
21327echo "$as_me: WARNING: winsock2.h: proceeding with the preprocessor's result" >&2;}
21328 { echo "$as_me:$LINENO: WARNING: winsock2.h: in the future, the compiler will take precedence" >&5
21329echo "$as_me: WARNING: winsock2.h: in the future, the compiler will take precedence" >&2;}
21330
21331 ;;
21332esac
21333{ echo "$as_me:$LINENO: checking for winsock2.h" >&5
21334echo $ECHO_N "checking for winsock2.h... $ECHO_C" >&6; }
21335if test "${ac_cv_header_winsock2_h+set}" = set; then
21336 echo $ECHO_N "(cached) $ECHO_C" >&6
21337else
21338 ac_cv_header_winsock2_h=$ac_header_preproc
21339fi
21340{ echo "$as_me:$LINENO: result: $ac_cv_header_winsock2_h" >&5
21341echo "${ECHO_T}$ac_cv_header_winsock2_h" >&6; }
21342
21343fi
21344if test $ac_cv_header_winsock2_h = yes; then
21345 :
21346else
21347 { { echo "$as_me:$LINENO: error: ** MinGW and no winsock2.h. I give up." >&5
21348echo "$as_me: error: ** MinGW and no winsock2.h. I give up." >&2;}
21349 { (exit 1); exit 1; }; }
21350fi
21351
21352
21353 LIBS="$LIBS -lws2_32 -liphlpapi"
21354 is_mingw="yes"
21355 ;;
21356*interix*)
21357 CPPFLAGS="$CFLAGS -D_ALL_SOURCE -D_XOPEN_SOURCE=500"
21358 ;;
21359*solaris*)
21360 CPPFLAGS="$CFLAGS -D_POSIX_PTHREAD_SEMANTICS"
21361 ;;
21362*)
21363 ;;
21364esac
21365
21366 if test "$is_mingw" = "yes"; then
21367 MINGW_TRUE=
21368 MINGW_FALSE='#'
21369else
21370 MINGW_TRUE='#'
21371 MINGW_FALSE=
21372fi
21373
21374
21375
21376# backwards support for IRC_CFLAGS
21377CFLAGS="$IRC_CFLAGS $CFLAGS -O0 -Wall"
21378
21379if test "$libexecdir" = '${exec_prefix}/libexec' &&
21380 test "$localstatedir" = '${prefix}/var'; then
21381 libexecdir='${bindir}'
21382 localstatedir='${prefix}'
21383fi
21384
21385
21386 { echo "$as_me:$LINENO: checking for int8_t" >&5
21387echo $ECHO_N "checking for int8_t... $ECHO_C" >&6; }
21388if test "${ac_cv_c_int8_t+set}" = set; then
21389 echo $ECHO_N "(cached) $ECHO_C" >&6
21390else
21391 ac_cv_c_int8_t=no
21392 for ac_type in 'int8_t' 'int' 'long int' \
21393 'long long int' 'short int' 'signed char'; do
21394 cat >conftest.$ac_ext <<_ACEOF
21395/* confdefs.h. */
21396_ACEOF
21397cat confdefs.h >>conftest.$ac_ext
21398cat >>conftest.$ac_ext <<_ACEOF
21399/* end confdefs.h. */
21400$ac_includes_default
21401int
21402main ()
21403{
21404static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 1))];
21405test_array [0] = 0
21406
21407 ;
21408 return 0;
21409}
21410_ACEOF
21411rm -f conftest.$ac_objext
21412if { (ac_try="$ac_compile"
21413case "(($ac_try" in
21414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21415 *) ac_try_echo=$ac_try;;
21416esac
21417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21418 (eval "$ac_compile") 2>conftest.er1
21419 ac_status=$?
21420 grep -v '^ *+' conftest.er1 >conftest.err
21421 rm -f conftest.er1
21422 cat conftest.err >&5
21423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21424 (exit $ac_status); } && {
21425 test -z "$ac_c_werror_flag" ||
21426 test ! -s conftest.err
21427 } && test -s conftest.$ac_objext; then
21428 cat >conftest.$ac_ext <<_ACEOF
21429/* confdefs.h. */
21430_ACEOF
21431cat confdefs.h >>conftest.$ac_ext
21432cat >>conftest.$ac_ext <<_ACEOF
21433/* end confdefs.h. */
21434$ac_includes_default
21435int
21436main ()
21437{
21438static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 1)
21439 < ($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 2))];
21440test_array [0] = 0
21441
21442 ;
21443 return 0;
21444}
21445_ACEOF
21446rm -f conftest.$ac_objext
21447if { (ac_try="$ac_compile"
21448case "(($ac_try" in
21449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21450 *) ac_try_echo=$ac_try;;
21451esac
21452eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21453 (eval "$ac_compile") 2>conftest.er1
21454 ac_status=$?
21455 grep -v '^ *+' conftest.er1 >conftest.err
21456 rm -f conftest.er1
21457 cat conftest.err >&5
21458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21459 (exit $ac_status); } && {
21460 test -z "$ac_c_werror_flag" ||
21461 test ! -s conftest.err
21462 } && test -s conftest.$ac_objext; then
21463 :
21464else
21465 echo "$as_me: failed program was:" >&5
21466sed 's/^/| /' conftest.$ac_ext >&5
21467
21468 case $ac_type in
21469 int8_t) ac_cv_c_int8_t=yes ;;
21470 *) ac_cv_c_int8_t=$ac_type ;;
21471esac
21472
21473fi
21474
21475rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21476else
21477 echo "$as_me: failed program was:" >&5
21478sed 's/^/| /' conftest.$ac_ext >&5
21479
21480
21481fi
21482
21483rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21484 test "$ac_cv_c_int8_t" != no && break
21485 done
21486fi
21487{ echo "$as_me:$LINENO: result: $ac_cv_c_int8_t" >&5
21488echo "${ECHO_T}$ac_cv_c_int8_t" >&6; }
21489 case $ac_cv_c_int8_t in #(
21490 no|yes) ;; #(
21491 *)
21492
21493cat >>confdefs.h <<_ACEOF
21494#define int8_t $ac_cv_c_int8_t
21495_ACEOF
21496;;
21497 esac
21498
21499
21500 { echo "$as_me:$LINENO: checking for int16_t" >&5
21501echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
21502if test "${ac_cv_c_int16_t+set}" = set; then
21503 echo $ECHO_N "(cached) $ECHO_C" >&6
21504else
21505 ac_cv_c_int16_t=no
21506 for ac_type in 'int16_t' 'int' 'long int' \
21507 'long long int' 'short int' 'signed char'; do
21508 cat >conftest.$ac_ext <<_ACEOF
21509/* confdefs.h. */
21510_ACEOF
21511cat confdefs.h >>conftest.$ac_ext
21512cat >>conftest.$ac_ext <<_ACEOF
21513/* end confdefs.h. */
21514$ac_includes_default
21515int
21516main ()
21517{
21518static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1))];
21519test_array [0] = 0
21520
21521 ;
21522 return 0;
21523}
21524_ACEOF
21525rm -f conftest.$ac_objext
21526if { (ac_try="$ac_compile"
21527case "(($ac_try" in
21528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21529 *) ac_try_echo=$ac_try;;
21530esac
21531eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21532 (eval "$ac_compile") 2>conftest.er1
21533 ac_status=$?
21534 grep -v '^ *+' conftest.er1 >conftest.err
21535 rm -f conftest.er1
21536 cat conftest.err >&5
21537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21538 (exit $ac_status); } && {
21539 test -z "$ac_c_werror_flag" ||
21540 test ! -s conftest.err
21541 } && test -s conftest.$ac_objext; then
21542 cat >conftest.$ac_ext <<_ACEOF
21543/* confdefs.h. */
21544_ACEOF
21545cat confdefs.h >>conftest.$ac_ext
21546cat >>conftest.$ac_ext <<_ACEOF
21547/* end confdefs.h. */
21548$ac_includes_default
21549int
21550main ()
21551{
21552static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1)
21553 < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 2))];
21554test_array [0] = 0
21555
21556 ;
21557 return 0;
21558}
21559_ACEOF
21560rm -f conftest.$ac_objext
21561if { (ac_try="$ac_compile"
21562case "(($ac_try" in
21563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21564 *) ac_try_echo=$ac_try;;
21565esac
21566eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21567 (eval "$ac_compile") 2>conftest.er1
21568 ac_status=$?
21569 grep -v '^ *+' conftest.er1 >conftest.err
21570 rm -f conftest.er1
21571 cat conftest.err >&5
21572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21573 (exit $ac_status); } && {
21574 test -z "$ac_c_werror_flag" ||
21575 test ! -s conftest.err
21576 } && test -s conftest.$ac_objext; then
21577 :
21578else
21579 echo "$as_me: failed program was:" >&5
21580sed 's/^/| /' conftest.$ac_ext >&5
21581
21582 case $ac_type in
21583 int16_t) ac_cv_c_int16_t=yes ;;
21584 *) ac_cv_c_int16_t=$ac_type ;;
21585esac
21586
21587fi
21588
21589rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21590else
21591 echo "$as_me: failed program was:" >&5
21592sed 's/^/| /' conftest.$ac_ext >&5
21593
21594
21595fi
21596
21597rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21598 test "$ac_cv_c_int16_t" != no && break
21599 done
21600fi
21601{ echo "$as_me:$LINENO: result: $ac_cv_c_int16_t" >&5
21602echo "${ECHO_T}$ac_cv_c_int16_t" >&6; }
21603 case $ac_cv_c_int16_t in #(
21604 no|yes) ;; #(
21605 *)
21606
21607cat >>confdefs.h <<_ACEOF
21608#define int16_t $ac_cv_c_int16_t
21609_ACEOF
21610;;
21611 esac
21612
21613
21614 { echo "$as_me:$LINENO: checking for int32_t" >&5
21615echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
21616if test "${ac_cv_c_int32_t+set}" = set; then
21617 echo $ECHO_N "(cached) $ECHO_C" >&6
21618else
21619 ac_cv_c_int32_t=no
21620 for ac_type in 'int32_t' 'int' 'long int' \
21621 'long long int' 'short int' 'signed char'; do
21622 cat >conftest.$ac_ext <<_ACEOF
21623/* confdefs.h. */
21624_ACEOF
21625cat confdefs.h >>conftest.$ac_ext
21626cat >>conftest.$ac_ext <<_ACEOF
21627/* end confdefs.h. */
21628$ac_includes_default
21629int
21630main ()
21631{
21632static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))];
21633test_array [0] = 0
21634
21635 ;
21636 return 0;
21637}
21638_ACEOF
21639rm -f conftest.$ac_objext
21640if { (ac_try="$ac_compile"
21641case "(($ac_try" in
21642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21643 *) ac_try_echo=$ac_try;;
21644esac
21645eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21646 (eval "$ac_compile") 2>conftest.er1
21647 ac_status=$?
21648 grep -v '^ *+' conftest.er1 >conftest.err
21649 rm -f conftest.er1
21650 cat conftest.err >&5
21651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21652 (exit $ac_status); } && {
21653 test -z "$ac_c_werror_flag" ||
21654 test ! -s conftest.err
21655 } && test -s conftest.$ac_objext; then
21656 cat >conftest.$ac_ext <<_ACEOF
21657/* confdefs.h. */
21658_ACEOF
21659cat confdefs.h >>conftest.$ac_ext
21660cat >>conftest.$ac_ext <<_ACEOF
21661/* end confdefs.h. */
21662$ac_includes_default
21663int
21664main ()
21665{
21666static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1)
21667 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))];
21668test_array [0] = 0
21669
21670 ;
21671 return 0;
21672}
21673_ACEOF
21674rm -f conftest.$ac_objext
21675if { (ac_try="$ac_compile"
21676case "(($ac_try" in
21677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21678 *) ac_try_echo=$ac_try;;
21679esac
21680eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21681 (eval "$ac_compile") 2>conftest.er1
21682 ac_status=$?
21683 grep -v '^ *+' conftest.er1 >conftest.err
21684 rm -f conftest.er1
21685 cat conftest.err >&5
21686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21687 (exit $ac_status); } && {
21688 test -z "$ac_c_werror_flag" ||
21689 test ! -s conftest.err
21690 } && test -s conftest.$ac_objext; then
21691 :
21692else
21693 echo "$as_me: failed program was:" >&5
21694sed 's/^/| /' conftest.$ac_ext >&5
21695
21696 case $ac_type in
21697 int32_t) ac_cv_c_int32_t=yes ;;
21698 *) ac_cv_c_int32_t=$ac_type ;;
21699esac
21700
21701fi
21702
21703rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21704else
21705 echo "$as_me: failed program was:" >&5
21706sed 's/^/| /' conftest.$ac_ext >&5
21707
21708
21709fi
21710
21711rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21712 test "$ac_cv_c_int32_t" != no && break
21713 done
21714fi
21715{ echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5
21716echo "${ECHO_T}$ac_cv_c_int32_t" >&6; }
21717 case $ac_cv_c_int32_t in #(
21718 no|yes) ;; #(
21719 *)
21720
21721cat >>confdefs.h <<_ACEOF
21722#define int32_t $ac_cv_c_int32_t
21723_ACEOF
21724;;
21725 esac
21726
21727
21728 { echo "$as_me:$LINENO: checking for int64_t" >&5
21729echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
21730if test "${ac_cv_c_int64_t+set}" = set; then
21731 echo $ECHO_N "(cached) $ECHO_C" >&6
21732else
21733 ac_cv_c_int64_t=no
21734 for ac_type in 'int64_t' 'int' 'long int' \
21735 'long long int' 'short int' 'signed char'; do
21736 cat >conftest.$ac_ext <<_ACEOF
21737/* confdefs.h. */
21738_ACEOF
21739cat confdefs.h >>conftest.$ac_ext
21740cat >>conftest.$ac_ext <<_ACEOF
21741/* end confdefs.h. */
21742$ac_includes_default
21743int
21744main ()
21745{
21746static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1))];
21747test_array [0] = 0
21748
21749 ;
21750 return 0;
21751}
21752_ACEOF
21753rm -f conftest.$ac_objext
21754if { (ac_try="$ac_compile"
21755case "(($ac_try" in
21756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21757 *) ac_try_echo=$ac_try;;
21758esac
21759eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21760 (eval "$ac_compile") 2>conftest.er1
21761 ac_status=$?
21762 grep -v '^ *+' conftest.er1 >conftest.err
21763 rm -f conftest.er1
21764 cat conftest.err >&5
21765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21766 (exit $ac_status); } && {
21767 test -z "$ac_c_werror_flag" ||
21768 test ! -s conftest.err
21769 } && test -s conftest.$ac_objext; then
21770 cat >conftest.$ac_ext <<_ACEOF
21771/* confdefs.h. */
21772_ACEOF
21773cat confdefs.h >>conftest.$ac_ext
21774cat >>conftest.$ac_ext <<_ACEOF
21775/* end confdefs.h. */
21776$ac_includes_default
21777int
21778main ()
21779{
21780static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1)
21781 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 2))];
21782test_array [0] = 0
21783
21784 ;
21785 return 0;
21786}
21787_ACEOF
21788rm -f conftest.$ac_objext
21789if { (ac_try="$ac_compile"
21790case "(($ac_try" in
21791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21792 *) ac_try_echo=$ac_try;;
21793esac
21794eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21795 (eval "$ac_compile") 2>conftest.er1
21796 ac_status=$?
21797 grep -v '^ *+' conftest.er1 >conftest.err
21798 rm -f conftest.er1
21799 cat conftest.err >&5
21800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21801 (exit $ac_status); } && {
21802 test -z "$ac_c_werror_flag" ||
21803 test ! -s conftest.err
21804 } && test -s conftest.$ac_objext; then
21805 :
21806else
21807 echo "$as_me: failed program was:" >&5
21808sed 's/^/| /' conftest.$ac_ext >&5
21809
21810 case $ac_type in
21811 int64_t) ac_cv_c_int64_t=yes ;;
21812 *) ac_cv_c_int64_t=$ac_type ;;
21813esac
21814
21815fi
21816
21817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21818else
21819 echo "$as_me: failed program was:" >&5
21820sed 's/^/| /' conftest.$ac_ext >&5
21821
21822
21823fi
21824
21825rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21826 test "$ac_cv_c_int64_t" != no && break
21827 done
21828fi
21829{ echo "$as_me:$LINENO: result: $ac_cv_c_int64_t" >&5
21830echo "${ECHO_T}$ac_cv_c_int64_t" >&6; }
21831 case $ac_cv_c_int64_t in #(
21832 no|yes) ;; #(
21833 *)
21834
21835cat >>confdefs.h <<_ACEOF
21836#define int64_t $ac_cv_c_int64_t
21837_ACEOF
21838;;
21839 esac
21840
21841
21842 { echo "$as_me:$LINENO: checking for uint8_t" >&5
21843echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6; }
21844if test "${ac_cv_c_uint8_t+set}" = set; then
21845 echo $ECHO_N "(cached) $ECHO_C" >&6
21846else
21847 ac_cv_c_uint8_t=no
21848 for ac_type in 'uint8_t' 'unsigned int' 'unsigned long int' \
21849 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
21850 cat >conftest.$ac_ext <<_ACEOF
21851/* confdefs.h. */
21852_ACEOF
21853cat confdefs.h >>conftest.$ac_ext
21854cat >>conftest.$ac_ext <<_ACEOF
21855/* end confdefs.h. */
21856$ac_includes_default
21857int
21858main ()
21859{
21860static int test_array [1 - 2 * !(($ac_type) -1 >> (8 - 1) == 1)];
21861test_array [0] = 0
21862
21863 ;
21864 return 0;
21865}
21866_ACEOF
21867rm -f conftest.$ac_objext
21868if { (ac_try="$ac_compile"
21869case "(($ac_try" in
21870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21871 *) ac_try_echo=$ac_try;;
21872esac
21873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21874 (eval "$ac_compile") 2>conftest.er1
21875 ac_status=$?
21876 grep -v '^ *+' conftest.er1 >conftest.err
21877 rm -f conftest.er1
21878 cat conftest.err >&5
21879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21880 (exit $ac_status); } && {
21881 test -z "$ac_c_werror_flag" ||
21882 test ! -s conftest.err
21883 } && test -s conftest.$ac_objext; then
21884 case $ac_type in
21885 uint8_t) ac_cv_c_uint8_t=yes ;;
21886 *) ac_cv_c_uint8_t=$ac_type ;;
21887esac
21888
21889else
21890 echo "$as_me: failed program was:" >&5
21891sed 's/^/| /' conftest.$ac_ext >&5
21892
21893
21894fi
21895
21896rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21897 test "$ac_cv_c_uint8_t" != no && break
21898 done
21899fi
21900{ echo "$as_me:$LINENO: result: $ac_cv_c_uint8_t" >&5
21901echo "${ECHO_T}$ac_cv_c_uint8_t" >&6; }
21902 case $ac_cv_c_uint8_t in #(
21903 no|yes) ;; #(
21904 *)
21905
21906cat >>confdefs.h <<\_ACEOF
21907#define _UINT8_T 1
21908_ACEOF
21909
21910
21911cat >>confdefs.h <<_ACEOF
21912#define uint8_t $ac_cv_c_uint8_t
21913_ACEOF
21914;;
21915 esac
21916
21917
21918 { echo "$as_me:$LINENO: checking for uint16_t" >&5
21919echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
21920if test "${ac_cv_c_uint16_t+set}" = set; then
21921 echo $ECHO_N "(cached) $ECHO_C" >&6
21922else
21923 ac_cv_c_uint16_t=no
21924 for ac_type in 'uint16_t' 'unsigned int' 'unsigned long int' \
21925 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
21926 cat >conftest.$ac_ext <<_ACEOF
21927/* confdefs.h. */
21928_ACEOF
21929cat confdefs.h >>conftest.$ac_ext
21930cat >>conftest.$ac_ext <<_ACEOF
21931/* end confdefs.h. */
21932$ac_includes_default
21933int
21934main ()
21935{
21936static int test_array [1 - 2 * !(($ac_type) -1 >> (16 - 1) == 1)];
21937test_array [0] = 0
21938
21939 ;
21940 return 0;
21941}
21942_ACEOF
21943rm -f conftest.$ac_objext
21944if { (ac_try="$ac_compile"
21945case "(($ac_try" in
21946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21947 *) ac_try_echo=$ac_try;;
21948esac
21949eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21950 (eval "$ac_compile") 2>conftest.er1
21951 ac_status=$?
21952 grep -v '^ *+' conftest.er1 >conftest.err
21953 rm -f conftest.er1
21954 cat conftest.err >&5
21955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21956 (exit $ac_status); } && {
21957 test -z "$ac_c_werror_flag" ||
21958 test ! -s conftest.err
21959 } && test -s conftest.$ac_objext; then
21960 case $ac_type in
21961 uint16_t) ac_cv_c_uint16_t=yes ;;
21962 *) ac_cv_c_uint16_t=$ac_type ;;
21963esac
21964
21965else
21966 echo "$as_me: failed program was:" >&5
21967sed 's/^/| /' conftest.$ac_ext >&5
21968
21969
21970fi
21971
21972rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21973 test "$ac_cv_c_uint16_t" != no && break
21974 done
21975fi
21976{ echo "$as_me:$LINENO: result: $ac_cv_c_uint16_t" >&5
21977echo "${ECHO_T}$ac_cv_c_uint16_t" >&6; }
21978 case $ac_cv_c_uint16_t in #(
21979 no|yes) ;; #(
21980 *)
21981
21982
21983cat >>confdefs.h <<_ACEOF
21984#define uint16_t $ac_cv_c_uint16_t
21985_ACEOF
21986;;
21987 esac
21988
21989
21990 { echo "$as_me:$LINENO: checking for uint32_t" >&5
21991echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
21992if test "${ac_cv_c_uint32_t+set}" = set; then
21993 echo $ECHO_N "(cached) $ECHO_C" >&6
21994else
21995 ac_cv_c_uint32_t=no
21996 for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \
21997 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
21998 cat >conftest.$ac_ext <<_ACEOF
21999/* confdefs.h. */
22000_ACEOF
22001cat confdefs.h >>conftest.$ac_ext
22002cat >>conftest.$ac_ext <<_ACEOF
22003/* end confdefs.h. */
22004$ac_includes_default
22005int
22006main ()
22007{
22008static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)];
22009test_array [0] = 0
22010
22011 ;
22012 return 0;
22013}
22014_ACEOF
22015rm -f conftest.$ac_objext
22016if { (ac_try="$ac_compile"
22017case "(($ac_try" in
22018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22019 *) ac_try_echo=$ac_try;;
22020esac
22021eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22022 (eval "$ac_compile") 2>conftest.er1
22023 ac_status=$?
22024 grep -v '^ *+' conftest.er1 >conftest.err
22025 rm -f conftest.er1
22026 cat conftest.err >&5
22027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22028 (exit $ac_status); } && {
22029 test -z "$ac_c_werror_flag" ||
22030 test ! -s conftest.err
22031 } && test -s conftest.$ac_objext; then
22032 case $ac_type in
22033 uint32_t) ac_cv_c_uint32_t=yes ;;
22034 *) ac_cv_c_uint32_t=$ac_type ;;
22035esac
22036
22037else
22038 echo "$as_me: failed program was:" >&5
22039sed 's/^/| /' conftest.$ac_ext >&5
22040
22041
22042fi
22043
22044rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22045 test "$ac_cv_c_uint32_t" != no && break
22046 done
22047fi
22048{ echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5
22049echo "${ECHO_T}$ac_cv_c_uint32_t" >&6; }
22050 case $ac_cv_c_uint32_t in #(
22051 no|yes) ;; #(
22052 *)
22053
22054cat >>confdefs.h <<\_ACEOF
22055#define _UINT32_T 1
22056_ACEOF
22057
22058
22059cat >>confdefs.h <<_ACEOF
22060#define uint32_t $ac_cv_c_uint32_t
22061_ACEOF
22062;;
22063 esac
22064
22065
22066 { echo "$as_me:$LINENO: checking for uint64_t" >&5
22067echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
22068if test "${ac_cv_c_uint64_t+set}" = set; then
22069 echo $ECHO_N "(cached) $ECHO_C" >&6
22070else
22071 ac_cv_c_uint64_t=no
22072 for ac_type in 'uint64_t' 'unsigned int' 'unsigned long int' \
22073 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
22074 cat >conftest.$ac_ext <<_ACEOF
22075/* confdefs.h. */
22076_ACEOF
22077cat confdefs.h >>conftest.$ac_ext
22078cat >>conftest.$ac_ext <<_ACEOF
22079/* end confdefs.h. */
22080$ac_includes_default
22081int
22082main ()
22083{
22084static int test_array [1 - 2 * !(($ac_type) -1 >> (64 - 1) == 1)];
22085test_array [0] = 0
22086
22087 ;
22088 return 0;
22089}
22090_ACEOF
22091rm -f conftest.$ac_objext
22092if { (ac_try="$ac_compile"
22093case "(($ac_try" in
22094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22095 *) ac_try_echo=$ac_try;;
22096esac
22097eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22098 (eval "$ac_compile") 2>conftest.er1
22099 ac_status=$?
22100 grep -v '^ *+' conftest.er1 >conftest.err
22101 rm -f conftest.er1
22102 cat conftest.err >&5
22103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22104 (exit $ac_status); } && {
22105 test -z "$ac_c_werror_flag" ||
22106 test ! -s conftest.err
22107 } && test -s conftest.$ac_objext; then
22108 case $ac_type in
22109 uint64_t) ac_cv_c_uint64_t=yes ;;
22110 *) ac_cv_c_uint64_t=$ac_type ;;
22111esac
22112
22113else
22114 echo "$as_me: failed program was:" >&5
22115sed 's/^/| /' conftest.$ac_ext >&5
22116
22117
22118fi
22119
22120rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22121 test "$ac_cv_c_uint64_t" != no && break
22122 done
22123fi
22124{ echo "$as_me:$LINENO: result: $ac_cv_c_uint64_t" >&5
22125echo "${ECHO_T}$ac_cv_c_uint64_t" >&6; }
22126 case $ac_cv_c_uint64_t in #(
22127 no|yes) ;; #(
22128 *)
22129
22130cat >>confdefs.h <<\_ACEOF
22131#define _UINT64_T 1
22132_ACEOF
22133
22134
22135cat >>confdefs.h <<_ACEOF
22136#define uint64_t $ac_cv_c_uint64_t
22137_ACEOF
22138;;
22139 esac
22140
22141
22142
22143 { echo "$as_me:$LINENO: checking for intptr_t" >&5
22144echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6; }
22145if test "${ac_cv_type_intptr_t+set}" = set; then
22146 echo $ECHO_N "(cached) $ECHO_C" >&6
22147else
22148 cat >conftest.$ac_ext <<_ACEOF
22149/* confdefs.h. */
22150_ACEOF
22151cat confdefs.h >>conftest.$ac_ext
22152cat >>conftest.$ac_ext <<_ACEOF
22153/* end confdefs.h. */
22154$ac_includes_default
22155typedef intptr_t ac__type_new_;
22156int
22157main ()
22158{
22159if ((ac__type_new_ *) 0)
22160 return 0;
22161if (sizeof (ac__type_new_))
22162 return 0;
22163 ;
22164 return 0;
22165}
22166_ACEOF
22167rm -f conftest.$ac_objext
22168if { (ac_try="$ac_compile"
22169case "(($ac_try" in
22170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22171 *) ac_try_echo=$ac_try;;
22172esac
22173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22174 (eval "$ac_compile") 2>conftest.er1
22175 ac_status=$?
22176 grep -v '^ *+' conftest.er1 >conftest.err
22177 rm -f conftest.er1
22178 cat conftest.err >&5
22179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22180 (exit $ac_status); } && {
22181 test -z "$ac_c_werror_flag" ||
22182 test ! -s conftest.err
22183 } && test -s conftest.$ac_objext; then
22184 ac_cv_type_intptr_t=yes
22185else
22186 echo "$as_me: failed program was:" >&5
22187sed 's/^/| /' conftest.$ac_ext >&5
22188
22189 ac_cv_type_intptr_t=no
22190fi
22191
22192rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22193fi
22194{ echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
22195echo "${ECHO_T}$ac_cv_type_intptr_t" >&6; }
22196if test $ac_cv_type_intptr_t = yes; then
22197
22198cat >>confdefs.h <<\_ACEOF
22199#define HAVE_INTPTR_T 1
22200_ACEOF
22201 ac_cv_c_intptr_t=yes
22202else
22203 for ac_type in 'int' 'long int' 'long long int'; do
22204 cat >conftest.$ac_ext <<_ACEOF
22205/* confdefs.h. */
22206_ACEOF
22207cat confdefs.h >>conftest.$ac_ext
22208cat >>conftest.$ac_ext <<_ACEOF
22209/* end confdefs.h. */
22210$ac_includes_default
22211int
22212main ()
22213{
22214static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
22215test_array [0] = 0
22216
22217 ;
22218 return 0;
22219}
22220_ACEOF
22221rm -f conftest.$ac_objext
22222if { (ac_try="$ac_compile"
22223case "(($ac_try" in
22224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22225 *) ac_try_echo=$ac_try;;
22226esac
22227eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22228 (eval "$ac_compile") 2>conftest.er1
22229 ac_status=$?
22230 grep -v '^ *+' conftest.er1 >conftest.err
22231 rm -f conftest.er1
22232 cat conftest.err >&5
22233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22234 (exit $ac_status); } && {
22235 test -z "$ac_c_werror_flag" ||
22236 test ! -s conftest.err
22237 } && test -s conftest.$ac_objext; then
22238
22239cat >>confdefs.h <<_ACEOF
22240#define intptr_t $ac_type
22241_ACEOF
22242 ac_cv_c_intptr_t="$ac_type"
22243 ac_type=
22244else
22245 echo "$as_me: failed program was:" >&5
22246sed 's/^/| /' conftest.$ac_ext >&5
22247
22248
22249fi
22250
22251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22252 test -z "$ac_type" && break
22253 done
22254fi
22255
22256
22257
22258 { echo "$as_me:$LINENO: checking for long long int" >&5
22259echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
22260if test "${ac_cv_type_long_long_int+set}" = set; then
22261 echo $ECHO_N "(cached) $ECHO_C" >&6
22262else
22263 cat >conftest.$ac_ext <<_ACEOF
033be687 22264/* confdefs.h. */
b57f37fb
WP
22265_ACEOF
22266cat confdefs.h >>conftest.$ac_ext
22267cat >>conftest.$ac_ext <<_ACEOF
22268/* end confdefs.h. */
033be687
VY
22269long long int ll = 9223372036854775807ll;
22270 long long int nll = -9223372036854775807LL;
22271 typedef int a[((-9223372036854775807LL < 0
22272 && 0 < 9223372036854775807ll)
22273 ? 1 : -1)];
22274 int i = 63;
b57f37fb
WP
22275int
22276main ()
22277{
033be687
VY
22278long long int llmax = 9223372036854775807ll;
22279 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
22280 | (llmax / ll) | (llmax % ll));
b57f37fb
WP
22281 ;
22282 return 0;
22283}
22284_ACEOF
22285rm -f conftest.$ac_objext conftest$ac_exeext
22286if { (ac_try="$ac_link"
22287case "(($ac_try" in
22288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22289 *) ac_try_echo=$ac_try;;
22290esac
22291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22292 (eval "$ac_link") 2>conftest.er1
22293 ac_status=$?
22294 grep -v '^ *+' conftest.er1 >conftest.err
22295 rm -f conftest.er1
22296 cat conftest.err >&5
22297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22298 (exit $ac_status); } && {
22299 test -z "$ac_c_werror_flag" ||
22300 test ! -s conftest.err
22301 } && test -s conftest$ac_exeext &&
22302 $as_test_x conftest$ac_exeext; then
56efe974 22303 if test "$cross_compiling" = yes; then
b57f37fb 22304 ac_cv_type_long_long_int=yes
56efe974
WP
22305else
22306 cat >conftest.$ac_ext <<_ACEOF
22307/* confdefs.h. */
22308_ACEOF
22309cat confdefs.h >>conftest.$ac_ext
22310cat >>conftest.$ac_ext <<_ACEOF
22311/* end confdefs.h. */
22312#include <limits.h>
22313 #ifndef LLONG_MAX
22314 # define HALF \
22315 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
22316 # define LLONG_MAX (HALF - 1 + HALF)
22317 #endif
22318int
22319main ()
22320{
22321long long int n = 1;
22322 int i;
22323 for (i = 0; ; i++)
22324 {
22325 long long int m = n << i;
22326 if (m >> i != n)
22327 return 1;
22328 if (LLONG_MAX / 2 < m)
22329 break;
22330 }
22331 return 0;
22332 ;
22333 return 0;
22334}
22335_ACEOF
22336rm -f conftest$ac_exeext
22337if { (ac_try="$ac_link"
22338case "(($ac_try" in
22339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22340 *) ac_try_echo=$ac_try;;
22341esac
22342eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22343 (eval "$ac_link") 2>&5
22344 ac_status=$?
22345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22346 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22347 { (case "(($ac_try" in
22348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22349 *) ac_try_echo=$ac_try;;
22350esac
22351eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22352 (eval "$ac_try") 2>&5
22353 ac_status=$?
22354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22355 (exit $ac_status); }; }; then
22356 ac_cv_type_long_long_int=yes
22357else
22358 echo "$as_me: program exited with status $ac_status" >&5
22359echo "$as_me: failed program was:" >&5
22360sed 's/^/| /' conftest.$ac_ext >&5
22361
22362( exit $ac_status )
22363ac_cv_type_long_long_int=no
22364fi
22365rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22366fi
22367
22368
b57f37fb
WP
22369else
22370 echo "$as_me: failed program was:" >&5
22371sed 's/^/| /' conftest.$ac_ext >&5
22372
22373 ac_cv_type_long_long_int=no
22374fi
22375
22376rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22377 conftest$ac_exeext conftest.$ac_ext
22378fi
22379{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
22380echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
22381 if test $ac_cv_type_long_long_int = yes; then
22382
22383cat >>confdefs.h <<\_ACEOF
22384#define HAVE_LONG_LONG_INT 1
22385_ACEOF
22386
22387 fi
22388
22389
22390
22391 { echo "$as_me:$LINENO: checking for intmax_t" >&5
22392echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
22393if test "${ac_cv_type_intmax_t+set}" = set; then
22394 echo $ECHO_N "(cached) $ECHO_C" >&6
22395else
22396 cat >conftest.$ac_ext <<_ACEOF
22397/* confdefs.h. */
22398_ACEOF
22399cat confdefs.h >>conftest.$ac_ext
22400cat >>conftest.$ac_ext <<_ACEOF
22401/* end confdefs.h. */
22402$ac_includes_default
22403typedef intmax_t ac__type_new_;
22404int
22405main ()
22406{
22407if ((ac__type_new_ *) 0)
22408 return 0;
22409if (sizeof (ac__type_new_))
22410 return 0;
22411 ;
22412 return 0;
22413}
22414_ACEOF
22415rm -f conftest.$ac_objext
22416if { (ac_try="$ac_compile"
22417case "(($ac_try" in
22418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22419 *) ac_try_echo=$ac_try;;
22420esac
22421eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22422 (eval "$ac_compile") 2>conftest.er1
22423 ac_status=$?
22424 grep -v '^ *+' conftest.er1 >conftest.err
22425 rm -f conftest.er1
22426 cat conftest.err >&5
22427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22428 (exit $ac_status); } && {
22429 test -z "$ac_c_werror_flag" ||
22430 test ! -s conftest.err
22431 } && test -s conftest.$ac_objext; then
22432 ac_cv_type_intmax_t=yes
22433else
22434 echo "$as_me: failed program was:" >&5
22435sed 's/^/| /' conftest.$ac_ext >&5
22436
22437 ac_cv_type_intmax_t=no
22438fi
22439
22440rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22441fi
22442{ echo "$as_me:$LINENO: result: $ac_cv_type_intmax_t" >&5
22443echo "${ECHO_T}$ac_cv_type_intmax_t" >&6; }
22444if test $ac_cv_type_intmax_t = yes; then
22445
22446cat >>confdefs.h <<\_ACEOF
22447#define HAVE_INTMAX_T 1
22448_ACEOF
22449 ac_cv_c_intmax_t=yes
22450else
22451 test $ac_cv_type_long_long_int = yes \
22452 && ac_type='long long int' \
22453 || ac_type='long int'
22454
22455cat >>confdefs.h <<_ACEOF
22456#define intmax_t $ac_type
22457_ACEOF
22458 ac_cv_c_intmax_t="$ac_type"
22459fi
22460
22461
22462
22463 { echo "$as_me:$LINENO: checking for unsigned long long int" >&5
22464echo $ECHO_N "checking for unsigned long long int... $ECHO_C" >&6; }
22465if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then
22466 echo $ECHO_N "(cached) $ECHO_C" >&6
22467else
22468 cat >conftest.$ac_ext <<_ACEOF
033be687 22469/* confdefs.h. */
b57f37fb
WP
22470_ACEOF
22471cat confdefs.h >>conftest.$ac_ext
22472cat >>conftest.$ac_ext <<_ACEOF
22473/* end confdefs.h. */
033be687
VY
22474unsigned long long int ull = 18446744073709551615ULL;
22475 typedef int a[(18446744073709551615ULL <= (unsigned long long int) -1
22476 ? 1 : -1)];
22477 int i = 63;
b57f37fb
WP
22478int
22479main ()
22480{
033be687
VY
22481unsigned long long int ullmax = 18446744073709551615ull;
22482 return (ull << 63 | ull >> 63 | ull << i | ull >> i
22483 | ullmax / ull | ullmax % ull);
b57f37fb
WP
22484 ;
22485 return 0;
22486}
22487_ACEOF
22488rm -f conftest.$ac_objext conftest$ac_exeext
22489if { (ac_try="$ac_link"
22490case "(($ac_try" in
22491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22492 *) ac_try_echo=$ac_try;;
22493esac
22494eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22495 (eval "$ac_link") 2>conftest.er1
22496 ac_status=$?
22497 grep -v '^ *+' conftest.er1 >conftest.err
22498 rm -f conftest.er1
22499 cat conftest.err >&5
22500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22501 (exit $ac_status); } && {
22502 test -z "$ac_c_werror_flag" ||
22503 test ! -s conftest.err
22504 } && test -s conftest$ac_exeext &&
22505 $as_test_x conftest$ac_exeext; then
22506 ac_cv_type_unsigned_long_long_int=yes
22507else
22508 echo "$as_me: failed program was:" >&5
22509sed 's/^/| /' conftest.$ac_ext >&5
22510
22511 ac_cv_type_unsigned_long_long_int=no
22512fi
22513
22514rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22515 conftest$ac_exeext conftest.$ac_ext
22516fi
22517{ echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long_int" >&5
22518echo "${ECHO_T}$ac_cv_type_unsigned_long_long_int" >&6; }
22519 if test $ac_cv_type_unsigned_long_long_int = yes; then
22520
22521cat >>confdefs.h <<\_ACEOF
22522#define HAVE_UNSIGNED_LONG_LONG_INT 1
22523_ACEOF
22524
22525 fi
22526
22527
22528
22529 { echo "$as_me:$LINENO: checking for uintmax_t" >&5
22530echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6; }
22531if test "${ac_cv_type_uintmax_t+set}" = set; then
22532 echo $ECHO_N "(cached) $ECHO_C" >&6
22533else
22534 cat >conftest.$ac_ext <<_ACEOF
22535/* confdefs.h. */
22536_ACEOF
22537cat confdefs.h >>conftest.$ac_ext
22538cat >>conftest.$ac_ext <<_ACEOF
22539/* end confdefs.h. */
22540$ac_includes_default
22541typedef uintmax_t ac__type_new_;
22542int
22543main ()
22544{
22545if ((ac__type_new_ *) 0)
22546 return 0;
22547if (sizeof (ac__type_new_))
22548 return 0;
22549 ;
22550 return 0;
22551}
22552_ACEOF
22553rm -f conftest.$ac_objext
22554if { (ac_try="$ac_compile"
22555case "(($ac_try" in
22556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22557 *) ac_try_echo=$ac_try;;
22558esac
22559eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22560 (eval "$ac_compile") 2>conftest.er1
22561 ac_status=$?
22562 grep -v '^ *+' conftest.er1 >conftest.err
22563 rm -f conftest.er1
22564 cat conftest.err >&5
22565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22566 (exit $ac_status); } && {
22567 test -z "$ac_c_werror_flag" ||
22568 test ! -s conftest.err
22569 } && test -s conftest.$ac_objext; then
22570 ac_cv_type_uintmax_t=yes
22571else
22572 echo "$as_me: failed program was:" >&5
22573sed 's/^/| /' conftest.$ac_ext >&5
22574
22575 ac_cv_type_uintmax_t=no
22576fi
22577
22578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22579fi
22580{ echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
22581echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6; }
22582if test $ac_cv_type_uintmax_t = yes; then
22583
22584cat >>confdefs.h <<\_ACEOF
22585#define HAVE_UINTMAX_T 1
22586_ACEOF
22587 ac_cv_c_uintmax_t=yes
22588else
22589 test $ac_cv_type_unsigned_long_long_int = yes \
22590 && ac_type='unsigned long long int' \
22591 || ac_type='unsigned long int'
22592
22593cat >>confdefs.h <<_ACEOF
22594#define uintmax_t $ac_type
22595_ACEOF
22596 ac_cv_c_uintmax_t="$ac_type"
22597fi
22598
22599
22600
22601 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
22602echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
22603if test "${ac_cv_type_uintptr_t+set}" = set; then
22604 echo $ECHO_N "(cached) $ECHO_C" >&6
22605else
22606 cat >conftest.$ac_ext <<_ACEOF
22607/* confdefs.h. */
22608_ACEOF
22609cat confdefs.h >>conftest.$ac_ext
22610cat >>conftest.$ac_ext <<_ACEOF
22611/* end confdefs.h. */
22612$ac_includes_default
22613typedef uintptr_t ac__type_new_;
22614int
22615main ()
22616{
22617if ((ac__type_new_ *) 0)
22618 return 0;
22619if (sizeof (ac__type_new_))
22620 return 0;
22621 ;
22622 return 0;
22623}
22624_ACEOF
22625rm -f conftest.$ac_objext
22626if { (ac_try="$ac_compile"
22627case "(($ac_try" in
22628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22629 *) ac_try_echo=$ac_try;;
22630esac
22631eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22632 (eval "$ac_compile") 2>conftest.er1
22633 ac_status=$?
22634 grep -v '^ *+' conftest.er1 >conftest.err
22635 rm -f conftest.er1
22636 cat conftest.err >&5
22637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22638 (exit $ac_status); } && {
22639 test -z "$ac_c_werror_flag" ||
22640 test ! -s conftest.err
22641 } && test -s conftest.$ac_objext; then
22642 ac_cv_type_uintptr_t=yes
22643else
22644 echo "$as_me: failed program was:" >&5
22645sed 's/^/| /' conftest.$ac_ext >&5
22646
22647 ac_cv_type_uintptr_t=no
22648fi
22649
22650rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22651fi
22652{ echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
22653echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
22654if test $ac_cv_type_uintptr_t = yes; then
22655
22656cat >>confdefs.h <<\_ACEOF
22657#define HAVE_UINTPTR_T 1
22658_ACEOF
22659 ac_cv_c_uintptr_t=yes
22660else
22661 for ac_type in 'unsigned int' 'unsigned long int' \
22662 'unsigned long long int'; do
22663 cat >conftest.$ac_ext <<_ACEOF
22664/* confdefs.h. */
22665_ACEOF
22666cat confdefs.h >>conftest.$ac_ext
22667cat >>conftest.$ac_ext <<_ACEOF
22668/* end confdefs.h. */
22669$ac_includes_default
22670int
22671main ()
22672{
22673static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
22674test_array [0] = 0
22675
22676 ;
22677 return 0;
22678}
22679_ACEOF
22680rm -f conftest.$ac_objext
22681if { (ac_try="$ac_compile"
22682case "(($ac_try" in
22683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22684 *) ac_try_echo=$ac_try;;
22685esac
22686eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22687 (eval "$ac_compile") 2>conftest.er1
22688 ac_status=$?
22689 grep -v '^ *+' conftest.er1 >conftest.err
22690 rm -f conftest.er1
22691 cat conftest.err >&5
22692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22693 (exit $ac_status); } && {
22694 test -z "$ac_c_werror_flag" ||
22695 test ! -s conftest.err
22696 } && test -s conftest.$ac_objext; then
22697
22698cat >>confdefs.h <<_ACEOF
22699#define uintptr_t $ac_type
22700_ACEOF
22701 ac_cv_c_uintptr_t="$ac_type"
22702 ac_type=
22703else
22704 echo "$as_me: failed program was:" >&5
22705sed 's/^/| /' conftest.$ac_ext >&5
22706
22707
22708fi
22709
22710rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22711 test -z "$ac_type" && break
22712 done
22713fi
22714
22715
22716
22717{ echo "$as_me:$LINENO: checking for pid_t" >&5
22718echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
22719if test "${ac_cv_type_pid_t+set}" = set; then
22720 echo $ECHO_N "(cached) $ECHO_C" >&6
22721else
22722 cat >conftest.$ac_ext <<_ACEOF
22723/* confdefs.h. */
22724_ACEOF
22725cat confdefs.h >>conftest.$ac_ext
22726cat >>conftest.$ac_ext <<_ACEOF
22727/* end confdefs.h. */
22728$ac_includes_default
22729typedef pid_t ac__type_new_;
22730int
22731main ()
22732{
22733if ((ac__type_new_ *) 0)
22734 return 0;
22735if (sizeof (ac__type_new_))
22736 return 0;
22737 ;
22738 return 0;
22739}
22740_ACEOF
22741rm -f conftest.$ac_objext
22742if { (ac_try="$ac_compile"
22743case "(($ac_try" in
22744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22745 *) ac_try_echo=$ac_try;;
22746esac
22747eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22748 (eval "$ac_compile") 2>conftest.er1
22749 ac_status=$?
22750 grep -v '^ *+' conftest.er1 >conftest.err
22751 rm -f conftest.er1
22752 cat conftest.err >&5
22753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22754 (exit $ac_status); } && {
22755 test -z "$ac_c_werror_flag" ||
22756 test ! -s conftest.err
22757 } && test -s conftest.$ac_objext; then
22758 ac_cv_type_pid_t=yes
22759else
22760 echo "$as_me: failed program was:" >&5
22761sed 's/^/| /' conftest.$ac_ext >&5
22762
22763 ac_cv_type_pid_t=no
22764fi
22765
22766rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22767fi
22768{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22769echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
22770if test $ac_cv_type_pid_t = yes; then
22771 :
22772else
22773
22774cat >>confdefs.h <<_ACEOF
22775#define pid_t int
22776_ACEOF
22777
22778fi
22779
22780{ echo "$as_me:$LINENO: checking for size_t" >&5
22781echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
22782if test "${ac_cv_type_size_t+set}" = set; then
22783 echo $ECHO_N "(cached) $ECHO_C" >&6
22784else
22785 cat >conftest.$ac_ext <<_ACEOF
22786/* confdefs.h. */
22787_ACEOF
22788cat confdefs.h >>conftest.$ac_ext
22789cat >>conftest.$ac_ext <<_ACEOF
22790/* end confdefs.h. */
22791$ac_includes_default
22792typedef size_t ac__type_new_;
22793int
22794main ()
22795{
22796if ((ac__type_new_ *) 0)
22797 return 0;
22798if (sizeof (ac__type_new_))
22799 return 0;
22800 ;
22801 return 0;
22802}
22803_ACEOF
22804rm -f conftest.$ac_objext
22805if { (ac_try="$ac_compile"
22806case "(($ac_try" in
22807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22808 *) ac_try_echo=$ac_try;;
22809esac
22810eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22811 (eval "$ac_compile") 2>conftest.er1
22812 ac_status=$?
22813 grep -v '^ *+' conftest.er1 >conftest.err
22814 rm -f conftest.er1
22815 cat conftest.err >&5
22816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22817 (exit $ac_status); } && {
22818 test -z "$ac_c_werror_flag" ||
22819 test ! -s conftest.err
22820 } && test -s conftest.$ac_objext; then
22821 ac_cv_type_size_t=yes
22822else
22823 echo "$as_me: failed program was:" >&5
22824sed 's/^/| /' conftest.$ac_ext >&5
22825
22826 ac_cv_type_size_t=no
22827fi
22828
22829rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22830fi
22831{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22832echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
22833if test $ac_cv_type_size_t = yes; then
22834 :
22835else
22836
22837cat >>confdefs.h <<_ACEOF
22838#define size_t unsigned int
22839_ACEOF
22840
22841fi
22842
22843{ echo "$as_me:$LINENO: checking for ssize_t" >&5
22844echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
22845if test "${ac_cv_type_ssize_t+set}" = set; then
22846 echo $ECHO_N "(cached) $ECHO_C" >&6
22847else
22848 cat >conftest.$ac_ext <<_ACEOF
22849/* confdefs.h. */
22850_ACEOF
22851cat confdefs.h >>conftest.$ac_ext
22852cat >>conftest.$ac_ext <<_ACEOF
22853/* end confdefs.h. */
22854$ac_includes_default
22855typedef ssize_t ac__type_new_;
22856int
22857main ()
22858{
22859if ((ac__type_new_ *) 0)
22860 return 0;
22861if (sizeof (ac__type_new_))
22862 return 0;
22863 ;
22864 return 0;
22865}
22866_ACEOF
22867rm -f conftest.$ac_objext
22868if { (ac_try="$ac_compile"
22869case "(($ac_try" in
22870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22871 *) ac_try_echo=$ac_try;;
22872esac
22873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22874 (eval "$ac_compile") 2>conftest.er1
22875 ac_status=$?
22876 grep -v '^ *+' conftest.er1 >conftest.err
22877 rm -f conftest.er1
22878 cat conftest.err >&5
22879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22880 (exit $ac_status); } && {
22881 test -z "$ac_c_werror_flag" ||
22882 test ! -s conftest.err
22883 } && test -s conftest.$ac_objext; then
22884 ac_cv_type_ssize_t=yes
22885else
22886 echo "$as_me: failed program was:" >&5
22887sed 's/^/| /' conftest.$ac_ext >&5
22888
22889 ac_cv_type_ssize_t=no
22890fi
22891
22892rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22893fi
22894{ echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
22895echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
22896if test $ac_cv_type_ssize_t = yes; then
22897 :
22898else
22899
22900cat >>confdefs.h <<_ACEOF
22901#define ssize_t int
22902_ACEOF
22903
22904fi
22905
22906{ echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
22907echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
22908if test "${ac_cv_type_uid_t+set}" = set; then
22909 echo $ECHO_N "(cached) $ECHO_C" >&6
22910else
22911 cat >conftest.$ac_ext <<_ACEOF
22912/* confdefs.h. */
22913_ACEOF
22914cat confdefs.h >>conftest.$ac_ext
22915cat >>conftest.$ac_ext <<_ACEOF
22916/* end confdefs.h. */
22917#include <sys/types.h>
22918
22919_ACEOF
22920if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22921 $EGREP "uid_t" >/dev/null 2>&1; then
22922 ac_cv_type_uid_t=yes
22923else
22924 ac_cv_type_uid_t=no
22925fi
22926rm -f conftest*
22927
22928fi
22929{ echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
22930echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
22931if test $ac_cv_type_uid_t = no; then
22932
22933cat >>confdefs.h <<\_ACEOF
22934#define uid_t int
22935_ACEOF
22936
22937
22938cat >>confdefs.h <<\_ACEOF
22939#define gid_t int
22940_ACEOF
22941
22942fi
22943
22944
22945
22946{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
22947echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
22948if test "${ac_cv_header_stdc+set}" = set; then
22949 echo $ECHO_N "(cached) $ECHO_C" >&6
22950else
22951 cat >conftest.$ac_ext <<_ACEOF
22952/* confdefs.h. */
22953_ACEOF
22954cat confdefs.h >>conftest.$ac_ext
22955cat >>conftest.$ac_ext <<_ACEOF
22956/* end confdefs.h. */
22957#include <stdlib.h>
22958#include <stdarg.h>
22959#include <string.h>
22960#include <float.h>
22961
22962int
22963main ()
22964{
22965
22966 ;
22967 return 0;
22968}
22969_ACEOF
22970rm -f conftest.$ac_objext
22971if { (ac_try="$ac_compile"
22972case "(($ac_try" in
22973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22974 *) ac_try_echo=$ac_try;;
22975esac
22976eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22977 (eval "$ac_compile") 2>conftest.er1
22978 ac_status=$?
22979 grep -v '^ *+' conftest.er1 >conftest.err
22980 rm -f conftest.er1
22981 cat conftest.err >&5
22982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22983 (exit $ac_status); } && {
22984 test -z "$ac_c_werror_flag" ||
22985 test ! -s conftest.err
22986 } && test -s conftest.$ac_objext; then
22987 ac_cv_header_stdc=yes
22988else
22989 echo "$as_me: failed program was:" >&5
22990sed 's/^/| /' conftest.$ac_ext >&5
22991
22992 ac_cv_header_stdc=no
22993fi
22994
22995rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22996
22997if test $ac_cv_header_stdc = yes; then
22998 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
22999 cat >conftest.$ac_ext <<_ACEOF
23000/* confdefs.h. */
23001_ACEOF
23002cat confdefs.h >>conftest.$ac_ext
23003cat >>conftest.$ac_ext <<_ACEOF
23004/* end confdefs.h. */
23005#include <string.h>
23006
23007_ACEOF
23008if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23009 $EGREP "memchr" >/dev/null 2>&1; then
23010 :
23011else
23012 ac_cv_header_stdc=no
23013fi
23014rm -f conftest*
23015
23016fi
23017
23018if test $ac_cv_header_stdc = yes; then
23019 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
23020 cat >conftest.$ac_ext <<_ACEOF
23021/* confdefs.h. */
23022_ACEOF
23023cat confdefs.h >>conftest.$ac_ext
23024cat >>conftest.$ac_ext <<_ACEOF
23025/* end confdefs.h. */
23026#include <stdlib.h>
23027
23028_ACEOF
23029if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23030 $EGREP "free" >/dev/null 2>&1; then
23031 :
23032else
23033 ac_cv_header_stdc=no
23034fi
23035rm -f conftest*
23036
23037fi
23038
23039if test $ac_cv_header_stdc = yes; then
23040 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
23041 if test "$cross_compiling" = yes; then
23042 :
23043else
23044 cat >conftest.$ac_ext <<_ACEOF
23045/* confdefs.h. */
23046_ACEOF
23047cat confdefs.h >>conftest.$ac_ext
23048cat >>conftest.$ac_ext <<_ACEOF
23049/* end confdefs.h. */
23050#include <ctype.h>
23051#include <stdlib.h>
23052#if ((' ' & 0x0FF) == 0x020)
23053# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
23054# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
23055#else
23056# define ISLOWER(c) \
23057 (('a' <= (c) && (c) <= 'i') \
23058 || ('j' <= (c) && (c) <= 'r') \
23059 || ('s' <= (c) && (c) <= 'z'))
23060# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
23061#endif
23062
23063#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
23064int
23065main ()
23066{
23067 int i;
23068 for (i = 0; i < 256; i++)
23069 if (XOR (islower (i), ISLOWER (i))
23070 || toupper (i) != TOUPPER (i))
23071 return 2;
23072 return 0;
23073}
23074_ACEOF
23075rm -f conftest$ac_exeext
23076if { (ac_try="$ac_link"
23077case "(($ac_try" in
23078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23079 *) ac_try_echo=$ac_try;;
23080esac
23081eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23082 (eval "$ac_link") 2>&5
23083 ac_status=$?
23084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23085 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23086 { (case "(($ac_try" in
23087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23088 *) ac_try_echo=$ac_try;;
23089esac
23090eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23091 (eval "$ac_try") 2>&5
23092 ac_status=$?
23093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23094 (exit $ac_status); }; }; then
23095 :
23096else
23097 echo "$as_me: program exited with status $ac_status" >&5
23098echo "$as_me: failed program was:" >&5
23099sed 's/^/| /' conftest.$ac_ext >&5
23100
23101( exit $ac_status )
23102ac_cv_header_stdc=no
23103fi
23104rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23105fi
23106
23107
23108fi
23109fi
23110{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
23111echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
23112if test $ac_cv_header_stdc = yes; then
23113
23114cat >>confdefs.h <<\_ACEOF
23115#define STDC_HEADERS 1
23116_ACEOF
23117
23118fi
23119
23120
23121
23122
23123
23124
23125
23126
23127
23128
23129
23130
23131
23132
23133
23134
23135
23136
23137
23138
23139
23140for ac_header in crypt.h unistd.h sys/socket.h sys/stat.h sys/time.h time.h netinet/in.h arpa/inet.h errno.h sys/uio.h spawn.h sys/poll.h sys/epoll.h sys/select.h sys/devpoll.h sys/event.h port.h signal.h sys/signalfd.h
23141do
23142as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23143if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23144 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23145echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23146if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23147 echo $ECHO_N "(cached) $ECHO_C" >&6
23148fi
23149ac_res=`eval echo '${'$as_ac_Header'}'`
23150 { echo "$as_me:$LINENO: result: $ac_res" >&5
23151echo "${ECHO_T}$ac_res" >&6; }
23152else
23153 # Is the header compilable?
23154{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
23155echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23156cat >conftest.$ac_ext <<_ACEOF
23157/* confdefs.h. */
23158_ACEOF
23159cat confdefs.h >>conftest.$ac_ext
23160cat >>conftest.$ac_ext <<_ACEOF
23161/* end confdefs.h. */
23162$ac_includes_default
23163#include <$ac_header>
23164_ACEOF
23165rm -f conftest.$ac_objext
23166if { (ac_try="$ac_compile"
23167case "(($ac_try" in
23168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23169 *) ac_try_echo=$ac_try;;
23170esac
23171eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23172 (eval "$ac_compile") 2>conftest.er1
23173 ac_status=$?
23174 grep -v '^ *+' conftest.er1 >conftest.err
23175 rm -f conftest.er1
23176 cat conftest.err >&5
23177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23178 (exit $ac_status); } && {
23179 test -z "$ac_c_werror_flag" ||
23180 test ! -s conftest.err
23181 } && test -s conftest.$ac_objext; then
23182 ac_header_compiler=yes
23183else
23184 echo "$as_me: failed program was:" >&5
23185sed 's/^/| /' conftest.$ac_ext >&5
23186
23187 ac_header_compiler=no
23188fi
23189
23190rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23191{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23192echo "${ECHO_T}$ac_header_compiler" >&6; }
23193
23194# Is the header present?
23195{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
23196echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23197cat >conftest.$ac_ext <<_ACEOF
23198/* confdefs.h. */
23199_ACEOF
23200cat confdefs.h >>conftest.$ac_ext
23201cat >>conftest.$ac_ext <<_ACEOF
23202/* end confdefs.h. */
23203#include <$ac_header>
23204_ACEOF
23205if { (ac_try="$ac_cpp conftest.$ac_ext"
23206case "(($ac_try" in
23207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23208 *) ac_try_echo=$ac_try;;
23209esac
23210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23211 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23212 ac_status=$?
23213 grep -v '^ *+' conftest.er1 >conftest.err
23214 rm -f conftest.er1
23215 cat conftest.err >&5
23216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23217 (exit $ac_status); } >/dev/null && {
23218 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23219 test ! -s conftest.err
23220 }; then
23221 ac_header_preproc=yes
23222else
23223 echo "$as_me: failed program was:" >&5
23224sed 's/^/| /' conftest.$ac_ext >&5
23225
23226 ac_header_preproc=no
23227fi
23228
23229rm -f conftest.err conftest.$ac_ext
23230{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23231echo "${ECHO_T}$ac_header_preproc" >&6; }
23232
23233# So? What about this header?
23234case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23235 yes:no: )
23236 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23237echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23238 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23239echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23240 ac_header_preproc=yes
23241 ;;
23242 no:yes:* )
23243 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23244echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23245 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23246echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23247 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23248echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23249 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23250echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23251 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23252echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23253 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23254echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23255
23256 ;;
23257esac
23258{ echo "$as_me:$LINENO: checking for $ac_header" >&5
23259echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23260if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23261 echo $ECHO_N "(cached) $ECHO_C" >&6
23262else
23263 eval "$as_ac_Header=\$ac_header_preproc"
23264fi
23265ac_res=`eval echo '${'$as_ac_Header'}'`
23266 { echo "$as_me:$LINENO: result: $ac_res" >&5
23267echo "${ECHO_T}$ac_res" >&6; }
23268
23269fi
23270if test `eval echo '${'$as_ac_Header'}'` = yes; then
23271 cat >>confdefs.h <<_ACEOF
23272#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23273_ACEOF
23274
23275fi
23276
23277done
23278
23279{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
23280echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
23281if test "${ac_cv_header_time+set}" = set; then
23282 echo $ECHO_N "(cached) $ECHO_C" >&6
23283else
23284 cat >conftest.$ac_ext <<_ACEOF
23285/* confdefs.h. */
23286_ACEOF
23287cat confdefs.h >>conftest.$ac_ext
23288cat >>conftest.$ac_ext <<_ACEOF
23289/* end confdefs.h. */
23290#include <sys/types.h>
23291#include <sys/time.h>
23292#include <time.h>
23293
23294int
23295main ()
23296{
23297if ((struct tm *) 0)
23298return 0;
23299 ;
23300 return 0;
23301}
23302_ACEOF
23303rm -f conftest.$ac_objext
23304if { (ac_try="$ac_compile"
23305case "(($ac_try" in
23306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23307 *) ac_try_echo=$ac_try;;
23308esac
23309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23310 (eval "$ac_compile") 2>conftest.er1
23311 ac_status=$?
23312 grep -v '^ *+' conftest.er1 >conftest.err
23313 rm -f conftest.er1
23314 cat conftest.err >&5
23315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23316 (exit $ac_status); } && {
23317 test -z "$ac_c_werror_flag" ||
23318 test ! -s conftest.err
23319 } && test -s conftest.$ac_objext; then
23320 ac_cv_header_time=yes
23321else
23322 echo "$as_me: failed program was:" >&5
23323sed 's/^/| /' conftest.$ac_ext >&5
23324
23325 ac_cv_header_time=no
23326fi
23327
23328rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23329fi
23330{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
23331echo "${ECHO_T}$ac_cv_header_time" >&6; }
23332if test $ac_cv_header_time = yes; then
23333
23334cat >>confdefs.h <<\_ACEOF
23335#define TIME_WITH_SYS_TIME 1
23336_ACEOF
23337
23338fi
23339
23340
23341
23342{ echo "$as_me:$LINENO: checking for library containing socket" >&5
23343echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; }
23344if test "${ac_cv_search_socket+set}" = set; then
23345 echo $ECHO_N "(cached) $ECHO_C" >&6
23346else
23347 ac_func_search_save_LIBS=$LIBS
23348cat >conftest.$ac_ext <<_ACEOF
23349/* confdefs.h. */
23350_ACEOF
23351cat confdefs.h >>conftest.$ac_ext
23352cat >>conftest.$ac_ext <<_ACEOF
23353/* end confdefs.h. */
23354
23355/* Override any GCC internal prototype to avoid an error.
23356 Use char because int might match the return type of a GCC
23357 builtin and then its argument prototype would still apply. */
23358#ifdef __cplusplus
23359extern "C"
23360#endif
23361char socket ();
23362int
23363main ()
23364{
23365return socket ();
23366 ;
23367 return 0;
23368}
23369_ACEOF
23370for ac_lib in '' socket; do
23371 if test -z "$ac_lib"; then
23372 ac_res="none required"
23373 else
23374 ac_res=-l$ac_lib
23375 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23376 fi
23377 rm -f conftest.$ac_objext conftest$ac_exeext
23378if { (ac_try="$ac_link"
23379case "(($ac_try" in
23380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23381 *) ac_try_echo=$ac_try;;
23382esac
23383eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23384 (eval "$ac_link") 2>conftest.er1
23385 ac_status=$?
23386 grep -v '^ *+' conftest.er1 >conftest.err
23387 rm -f conftest.er1
23388 cat conftest.err >&5
23389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23390 (exit $ac_status); } && {
23391 test -z "$ac_c_werror_flag" ||
23392 test ! -s conftest.err
23393 } && test -s conftest$ac_exeext &&
23394 $as_test_x conftest$ac_exeext; then
23395 ac_cv_search_socket=$ac_res
23396else
23397 echo "$as_me: failed program was:" >&5
23398sed 's/^/| /' conftest.$ac_ext >&5
23399
23400
23401fi
23402
23403rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23404 conftest$ac_exeext
23405 if test "${ac_cv_search_socket+set}" = set; then
23406 break
23407fi
23408done
23409if test "${ac_cv_search_socket+set}" = set; then
23410 :
23411else
23412 ac_cv_search_socket=no
23413fi
23414rm conftest.$ac_ext
23415LIBS=$ac_func_search_save_LIBS
23416fi
23417{ echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
23418echo "${ECHO_T}$ac_cv_search_socket" >&6; }
23419ac_res=$ac_cv_search_socket
23420if test "$ac_res" != no; then
23421 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23422
23423fi
23424
23425
23426
23427{ echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
23428echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; }
23429if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
23430 echo $ECHO_N "(cached) $ECHO_C" >&6
23431else
23432 cat >conftest.$ac_ext <<_ACEOF
23433/* confdefs.h. */
23434_ACEOF
23435cat confdefs.h >>conftest.$ac_ext
23436cat >>conftest.$ac_ext <<_ACEOF
23437/* end confdefs.h. */
23438
23439#ifdef HAVE_SYS_TYPES_H
23440#include <sys/types.h>
23441#endif
23442#ifdef HAVE_SYS_SOCKET_H
23443#include <sys/socket.h>
23444#endif
23445#ifdef HAVE_WINSOCK2_H
23446#include <winsock2.h>
23447#endif
23448
23449
23450int
23451main ()
23452{
23453static struct sockaddr ac_aggr;
23454if (ac_aggr.sa_len)
23455return 0;
23456 ;
23457 return 0;
23458}
23459_ACEOF
23460rm -f conftest.$ac_objext
23461if { (ac_try="$ac_compile"
23462case "(($ac_try" in
23463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23464 *) ac_try_echo=$ac_try;;
23465esac
23466eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23467 (eval "$ac_compile") 2>conftest.er1
23468 ac_status=$?
23469 grep -v '^ *+' conftest.er1 >conftest.err
23470 rm -f conftest.er1
23471 cat conftest.err >&5
23472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23473 (exit $ac_status); } && {
23474 test -z "$ac_c_werror_flag" ||
23475 test ! -s conftest.err
23476 } && test -s conftest.$ac_objext; then
23477 ac_cv_member_struct_sockaddr_sa_len=yes
23478else
23479 echo "$as_me: failed program was:" >&5
23480sed 's/^/| /' conftest.$ac_ext >&5
23481
23482 cat >conftest.$ac_ext <<_ACEOF
23483/* confdefs.h. */
23484_ACEOF
23485cat confdefs.h >>conftest.$ac_ext
23486cat >>conftest.$ac_ext <<_ACEOF
23487/* end confdefs.h. */
23488
23489#ifdef HAVE_SYS_TYPES_H
23490#include <sys/types.h>
23491#endif
23492#ifdef HAVE_SYS_SOCKET_H
23493#include <sys/socket.h>
23494#endif
23495#ifdef HAVE_WINSOCK2_H
23496#include <winsock2.h>
23497#endif
23498
23499
23500int
23501main ()
23502{
23503static struct sockaddr ac_aggr;
23504if (sizeof ac_aggr.sa_len)
23505return 0;
23506 ;
23507 return 0;
23508}
23509_ACEOF
23510rm -f conftest.$ac_objext
23511if { (ac_try="$ac_compile"
23512case "(($ac_try" in
23513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23514 *) ac_try_echo=$ac_try;;
23515esac
23516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23517 (eval "$ac_compile") 2>conftest.er1
23518 ac_status=$?
23519 grep -v '^ *+' conftest.er1 >conftest.err
23520 rm -f conftest.er1
23521 cat conftest.err >&5
23522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23523 (exit $ac_status); } && {
23524 test -z "$ac_c_werror_flag" ||
23525 test ! -s conftest.err
23526 } && test -s conftest.$ac_objext; then
23527 ac_cv_member_struct_sockaddr_sa_len=yes
23528else
23529 echo "$as_me: failed program was:" >&5
23530sed 's/^/| /' conftest.$ac_ext >&5
23531
23532 ac_cv_member_struct_sockaddr_sa_len=no
23533fi
23534
23535rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23536fi
23537
23538rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23539fi
23540{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
23541echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; }
23542if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
23543
23544cat >>confdefs.h <<\_ACEOF
23545#define SOCKADDR_IN_HAS_LEN 1
23546_ACEOF
23547
23548fi
23549
23550
23551{ echo "$as_me:$LINENO: checking for socklen_t" >&5
23552echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
23553if test "${ac_cv_type_socklen_t+set}" = set; then
23554 echo $ECHO_N "(cached) $ECHO_C" >&6
23555else
23556 cat >conftest.$ac_ext <<_ACEOF
23557/* confdefs.h. */
23558_ACEOF
23559cat confdefs.h >>conftest.$ac_ext
23560cat >>conftest.$ac_ext <<_ACEOF
23561/* end confdefs.h. */
23562
23563#ifdef HAVE_SYS_TYPES_H
23564#include <sys/types.h>
23565#endif
23566#ifdef HAVE_SYS_SOCKET_H
23567#include <sys/socket.h>
23568#endif
23569#ifdef HAVE_WINSOCK2_H
23570#include <winsock2.h>
23571#endif
23572
23573
23574
23575typedef socklen_t ac__type_new_;
23576int
23577main ()
23578{
23579if ((ac__type_new_ *) 0)
23580 return 0;
23581if (sizeof (ac__type_new_))
23582 return 0;
23583 ;
23584 return 0;
23585}
23586_ACEOF
23587rm -f conftest.$ac_objext
23588if { (ac_try="$ac_compile"
23589case "(($ac_try" in
23590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23591 *) ac_try_echo=$ac_try;;
23592esac
23593eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23594 (eval "$ac_compile") 2>conftest.er1
23595 ac_status=$?
23596 grep -v '^ *+' conftest.er1 >conftest.err
23597 rm -f conftest.er1
23598 cat conftest.err >&5
23599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23600 (exit $ac_status); } && {
23601 test -z "$ac_c_werror_flag" ||
23602 test ! -s conftest.err
23603 } && test -s conftest.$ac_objext; then
23604 ac_cv_type_socklen_t=yes
23605else
23606 echo "$as_me: failed program was:" >&5
23607sed 's/^/| /' conftest.$ac_ext >&5
23608
23609 ac_cv_type_socklen_t=no
23610fi
23611
23612rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23613fi
23614{ echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
23615echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
23616if test $ac_cv_type_socklen_t = yes; then
23617 :
23618else
23619
23620cat >>confdefs.h <<\_ACEOF
23621#define socklen_t unsigned int
23622_ACEOF
23623
23624fi
23625
23626
23627# Check whether --enable-ipv6 was given.
23628if test "${enable_ipv6+set}" = set; then
23629 enableval=$enable_ipv6; ipv6=$enableval
23630else
23631 ipv6=yes
23632fi
23633
23634
23635if test x$ipv6 != xyes; then
23636 have_v6="no"
23637else
23638
23639have_v6=yes
23640
23641 { echo "$as_me:$LINENO: checking for INET6 protocol support" >&5
23642echo $ECHO_N "checking for INET6 protocol support... $ECHO_C" >&6; }
23643if test "${rb_cv_proto_inet6+set}" = set; then
23644 echo $ECHO_N "(cached) $ECHO_C" >&6
23645else
23646
23647 cat >conftest.$ac_ext <<_ACEOF
23648/* confdefs.h. */
23649_ACEOF
23650cat confdefs.h >>conftest.$ac_ext
23651cat >>conftest.$ac_ext <<_ACEOF
23652/* end confdefs.h. */
23653
23654#include <sys/types.h>
23655#include <sys/socket.h>
23656
23657#ifndef PF_INET6
23658#error Missing PF_INET6
23659#endif
23660#ifndef AF_INET6
23661#error Mlssing AF_INET6
23662#endif
23663
23664_ACEOF
23665if { (ac_try="$ac_cpp conftest.$ac_ext"
23666case "(($ac_try" in
23667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23668 *) ac_try_echo=$ac_try;;
23669esac
23670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23671 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23672 ac_status=$?
23673 grep -v '^ *+' conftest.er1 >conftest.err
23674 rm -f conftest.er1
23675 cat conftest.err >&5
23676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23677 (exit $ac_status); } >/dev/null && {
23678 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23679 test ! -s conftest.err
23680 }; then
23681
23682 rb_cv_proto_inet6=yes
23683
23684else
23685 echo "$as_me: failed program was:" >&5
23686sed 's/^/| /' conftest.$ac_ext >&5
23687
23688
23689 rb_cv_proto_inet6=no
23690
23691fi
23692
23693rm -f conftest.err conftest.$ac_ext
23694
23695fi
23696{ echo "$as_me:$LINENO: result: $rb_cv_proto_inet6" >&5
23697echo "${ECHO_T}$rb_cv_proto_inet6" >&6; }
23698
23699 if test "X$rb_cv_proto_inet6" = "Xyes"; then :
23700
23701 else :
23702
23703 { echo "$as_me:$LINENO: Disabling IPv6 support: PF_INET6 not found" >&5
23704echo "$as_me: Disabling IPv6 support: PF_INET6 not found" >&6;}
23705 have_v6=no
23706
23707 fi
23708
23709
23710 if test "X$have_v6" = "Xyes"; then
23711
23712 rb_have_sockaddr_in6=
23713 { echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
23714echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6; }
23715if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
23716 echo $ECHO_N "(cached) $ECHO_C" >&6
23717else
23718 cat >conftest.$ac_ext <<_ACEOF
23719/* confdefs.h. */
23720_ACEOF
23721cat confdefs.h >>conftest.$ac_ext
23722cat >>conftest.$ac_ext <<_ACEOF
23723/* end confdefs.h. */
23724
23725#include <sys/types.h>
23726#include <sys/socket.h>
23727#include <netinet/in.h>
23728
23729
23730typedef struct sockaddr_in6 ac__type_new_;
23731int
23732main ()
23733{
23734if ((ac__type_new_ *) 0)
23735 return 0;
23736if (sizeof (ac__type_new_))
23737 return 0;
23738 ;
23739 return 0;
23740}
23741_ACEOF
23742rm -f conftest.$ac_objext
23743if { (ac_try="$ac_compile"
23744case "(($ac_try" in
23745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23746 *) ac_try_echo=$ac_try;;
23747esac
23748eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23749 (eval "$ac_compile") 2>conftest.er1
23750 ac_status=$?
23751 grep -v '^ *+' conftest.er1 >conftest.err
23752 rm -f conftest.er1
23753 cat conftest.err >&5
23754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23755 (exit $ac_status); } && {
23756 test -z "$ac_c_werror_flag" ||
23757 test ! -s conftest.err
23758 } && test -s conftest.$ac_objext; then
23759 ac_cv_type_struct_sockaddr_in6=yes
23760else
23761 echo "$as_me: failed program was:" >&5
23762sed 's/^/| /' conftest.$ac_ext >&5
23763
23764 ac_cv_type_struct_sockaddr_in6=no
23765fi
23766
23767rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23768fi
23769{ echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
23770echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6; }
23771if test $ac_cv_type_struct_sockaddr_in6 = yes; then
23772
23773cat >>confdefs.h <<_ACEOF
23774#define HAVE_STRUCT_SOCKADDR_IN6 1
23775_ACEOF
23776
23777
23778 rb_have_sockaddr_in6=yes
23779
23780else
23781
23782 rb_have_sockaddr_in6=no
23783
23784fi
23785
23786
23787 if test "X$rb_have_sockaddr_in6" = "Xyes"; then :
23788
23789 else :
23790
23791 { echo "$as_me:$LINENO: Disabling IPv6 support: struct sockaddr_in6 not found" >&5
23792echo "$as_me: Disabling IPv6 support: struct sockaddr_in6 not found" >&6;}
23793 have_v6=no
23794
23795 fi
23796
23797 fi
23798
23799fi
23800
23801{ echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
23802echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6; }
23803if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
23804 echo $ECHO_N "(cached) $ECHO_C" >&6
23805else
23806 cat >conftest.$ac_ext <<_ACEOF
23807/* confdefs.h. */
23808_ACEOF
23809cat confdefs.h >>conftest.$ac_ext
23810cat >>conftest.$ac_ext <<_ACEOF
23811/* end confdefs.h. */
23812
23813 #include <sys/types.h>
23814 #include <sys/socket.h>
23815
23816
23817typedef struct sockaddr_storage ac__type_new_;
23818int
23819main ()
23820{
23821if ((ac__type_new_ *) 0)
23822 return 0;
23823if (sizeof (ac__type_new_))
23824 return 0;
23825 ;
23826 return 0;
23827}
23828_ACEOF
23829rm -f conftest.$ac_objext
23830if { (ac_try="$ac_compile"
23831case "(($ac_try" in
23832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23833 *) ac_try_echo=$ac_try;;
23834esac
23835eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23836 (eval "$ac_compile") 2>conftest.er1
23837 ac_status=$?
23838 grep -v '^ *+' conftest.er1 >conftest.err
23839 rm -f conftest.er1
23840 cat conftest.err >&5
23841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23842 (exit $ac_status); } && {
23843 test -z "$ac_c_werror_flag" ||
23844 test ! -s conftest.err
23845 } && test -s conftest.$ac_objext; then
23846 ac_cv_type_struct_sockaddr_storage=yes
23847else
23848 echo "$as_me: failed program was:" >&5
23849sed 's/^/| /' conftest.$ac_ext >&5
23850
23851 ac_cv_type_struct_sockaddr_storage=no
23852fi
23853
23854rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23855fi
23856{ echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
23857echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6; }
23858if test $ac_cv_type_struct_sockaddr_storage = yes; then
23859
23860cat >>confdefs.h <<_ACEOF
23861#define HAVE_STRUCT_SOCKADDR_STORAGE 1
23862_ACEOF
23863
23864
23865 rb_have_sockaddr_storage=yes
23866
23867fi
23868
23869
23870
23871save_LIBS=$LIBS
23872{ echo "$as_me:$LINENO: checking for library containing crypt" >&5
23873echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6; }
23874if test "${ac_cv_search_crypt+set}" = set; then
23875 echo $ECHO_N "(cached) $ECHO_C" >&6
23876else
23877 ac_func_search_save_LIBS=$LIBS
23878cat >conftest.$ac_ext <<_ACEOF
23879/* confdefs.h. */
23880_ACEOF
23881cat confdefs.h >>conftest.$ac_ext
23882cat >>conftest.$ac_ext <<_ACEOF
23883/* end confdefs.h. */
23884
23885/* Override any GCC internal prototype to avoid an error.
23886 Use char because int might match the return type of a GCC
23887 builtin and then its argument prototype would still apply. */
23888#ifdef __cplusplus
23889extern "C"
23890#endif
23891char crypt ();
23892int
23893main ()
23894{
23895return crypt ();
23896 ;
23897 return 0;
23898}
23899_ACEOF
23900for ac_lib in '' crypt descrypt; do
23901 if test -z "$ac_lib"; then
23902 ac_res="none required"
23903 else
23904 ac_res=-l$ac_lib
23905 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23906 fi
23907 rm -f conftest.$ac_objext conftest$ac_exeext
23908if { (ac_try="$ac_link"
23909case "(($ac_try" in
23910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23911 *) ac_try_echo=$ac_try;;
23912esac
23913eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23914 (eval "$ac_link") 2>conftest.er1
23915 ac_status=$?
23916 grep -v '^ *+' conftest.er1 >conftest.err
23917 rm -f conftest.er1
23918 cat conftest.err >&5
23919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23920 (exit $ac_status); } && {
23921 test -z "$ac_c_werror_flag" ||
23922 test ! -s conftest.err
23923 } && test -s conftest$ac_exeext &&
23924 $as_test_x conftest$ac_exeext; then
23925 ac_cv_search_crypt=$ac_res
23926else
23927 echo "$as_me: failed program was:" >&5
23928sed 's/^/| /' conftest.$ac_ext >&5
23929
23930
23931fi
23932
23933rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23934 conftest$ac_exeext
23935 if test "${ac_cv_search_crypt+set}" = set; then
23936 break
23937fi
23938done
23939if test "${ac_cv_search_crypt+set}" = set; then
23940 :
23941else
23942 ac_cv_search_crypt=no
23943fi
23944rm conftest.$ac_ext
23945LIBS=$ac_func_search_save_LIBS
23946fi
23947{ echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
23948echo "${ECHO_T}$ac_cv_search_crypt" >&6; }
23949ac_res=$ac_cv_search_crypt
23950if test "$ac_res" != no; then
23951 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23952
23953fi
23954
23955LIBS=$save_LIBS
23956
23957CRYPT_LIB=$ac_cv_search_crypt
23958
23959if test "$CRYPT_LIB" = "none required"; then
23960 unset CRYPT_LIB
23961elif test "$CRYPT_LIB" = no; then
23962 need_crypt=yes;
23963
23964cat >>confdefs.h <<\_ACEOF
23965#define NEED_CRYPT 1
23966_ACEOF
23967
23968 unset CRYPT_LIB
23969fi
23970
eb66895a 23971 if test x"$need_crypt" = "xyes"; then
b57f37fb
WP
23972 NEED_CRYPT_TRUE=
23973 NEED_CRYPT_FALSE='#'
23974else
23975 NEED_CRYPT_TRUE='#'
23976 NEED_CRYPT_FALSE=
23977fi
23978
23979
23980
23981
23982
23983if test "${ac_cv_header_stdarg_h+set}" = set; then
23984 { echo "$as_me:$LINENO: checking for stdarg.h" >&5
23985echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6; }
23986if test "${ac_cv_header_stdarg_h+set}" = set; then
23987 echo $ECHO_N "(cached) $ECHO_C" >&6
23988fi
23989{ echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5
23990echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6; }
23991else
23992 # Is the header compilable?
23993{ echo "$as_me:$LINENO: checking stdarg.h usability" >&5
23994echo $ECHO_N "checking stdarg.h usability... $ECHO_C" >&6; }
23995cat >conftest.$ac_ext <<_ACEOF
23996/* confdefs.h. */
23997_ACEOF
23998cat confdefs.h >>conftest.$ac_ext
23999cat >>conftest.$ac_ext <<_ACEOF
24000/* end confdefs.h. */
24001$ac_includes_default
24002#include <stdarg.h>
24003_ACEOF
24004rm -f conftest.$ac_objext
24005if { (ac_try="$ac_compile"
24006case "(($ac_try" in
24007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24008 *) ac_try_echo=$ac_try;;
24009esac
24010eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24011 (eval "$ac_compile") 2>conftest.er1
24012 ac_status=$?
24013 grep -v '^ *+' conftest.er1 >conftest.err
24014 rm -f conftest.er1
24015 cat conftest.err >&5
24016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24017 (exit $ac_status); } && {
24018 test -z "$ac_c_werror_flag" ||
24019 test ! -s conftest.err
24020 } && test -s conftest.$ac_objext; then
24021 ac_header_compiler=yes
24022else
24023 echo "$as_me: failed program was:" >&5
24024sed 's/^/| /' conftest.$ac_ext >&5
24025
24026 ac_header_compiler=no
24027fi
24028
24029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24030{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24031echo "${ECHO_T}$ac_header_compiler" >&6; }
24032
24033# Is the header present?
24034{ echo "$as_me:$LINENO: checking stdarg.h presence" >&5
24035echo $ECHO_N "checking stdarg.h presence... $ECHO_C" >&6; }
24036cat >conftest.$ac_ext <<_ACEOF
24037/* confdefs.h. */
24038_ACEOF
24039cat confdefs.h >>conftest.$ac_ext
24040cat >>conftest.$ac_ext <<_ACEOF
24041/* end confdefs.h. */
24042#include <stdarg.h>
24043_ACEOF
24044if { (ac_try="$ac_cpp conftest.$ac_ext"
24045case "(($ac_try" in
24046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24047 *) ac_try_echo=$ac_try;;
24048esac
24049eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24050 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24051 ac_status=$?
24052 grep -v '^ *+' conftest.er1 >conftest.err
24053 rm -f conftest.er1
24054 cat conftest.err >&5
24055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24056 (exit $ac_status); } >/dev/null && {
24057 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24058 test ! -s conftest.err
24059 }; then
24060 ac_header_preproc=yes
24061else
24062 echo "$as_me: failed program was:" >&5
24063sed 's/^/| /' conftest.$ac_ext >&5
24064
24065 ac_header_preproc=no
24066fi
24067
24068rm -f conftest.err conftest.$ac_ext
24069{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24070echo "${ECHO_T}$ac_header_preproc" >&6; }
24071
24072# So? What about this header?
24073case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24074 yes:no: )
24075 { echo "$as_me:$LINENO: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&5
24076echo "$as_me: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24077 { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the compiler's result" >&5
24078echo "$as_me: WARNING: stdarg.h: proceeding with the compiler's result" >&2;}
24079 ac_header_preproc=yes
24080 ;;
24081 no:yes:* )
24082 { echo "$as_me:$LINENO: WARNING: stdarg.h: present but cannot be compiled" >&5
24083echo "$as_me: WARNING: stdarg.h: present but cannot be compiled" >&2;}
24084 { echo "$as_me:$LINENO: WARNING: stdarg.h: check for missing prerequisite headers?" >&5
24085echo "$as_me: WARNING: stdarg.h: check for missing prerequisite headers?" >&2;}
24086 { echo "$as_me:$LINENO: WARNING: stdarg.h: see the Autoconf documentation" >&5
24087echo "$as_me: WARNING: stdarg.h: see the Autoconf documentation" >&2;}
24088 { echo "$as_me:$LINENO: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&5
24089echo "$as_me: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&2;}
24090 { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the preprocessor's result" >&5
24091echo "$as_me: WARNING: stdarg.h: proceeding with the preprocessor's result" >&2;}
24092 { echo "$as_me:$LINENO: WARNING: stdarg.h: in the future, the compiler will take precedence" >&5
24093echo "$as_me: WARNING: stdarg.h: in the future, the compiler will take precedence" >&2;}
24094
24095 ;;
24096esac
24097{ echo "$as_me:$LINENO: checking for stdarg.h" >&5
24098echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6; }
24099if test "${ac_cv_header_stdarg_h+set}" = set; then
24100 echo $ECHO_N "(cached) $ECHO_C" >&6
24101else
24102 ac_cv_header_stdarg_h=$ac_header_preproc
24103fi
24104{ echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5
24105echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6; }
24106
24107fi
24108if test $ac_cv_header_stdarg_h = yes; then
24109 :
24110else
24111 { { echo "$as_me:$LINENO: error: ** stdarg.h could not be found - libratbox will not compile without it **" >&5
24112echo "$as_me: error: ** stdarg.h could not be found - libratbox will not compile without it **" >&2;}
24113 { (exit 1); exit 1; }; }
24114fi
24115
24116
24117
24118{ echo "$as_me:$LINENO: checking for sa_family_t" >&5
24119echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6; }
24120if test "${ac_cv_type_sa_family_t+set}" = set; then
24121 echo $ECHO_N "(cached) $ECHO_C" >&6
24122else
24123 cat >conftest.$ac_ext <<_ACEOF
24124/* confdefs.h. */
24125_ACEOF
24126cat confdefs.h >>conftest.$ac_ext
24127cat >>conftest.$ac_ext <<_ACEOF
24128/* end confdefs.h. */
24129#include <sys/types.h>
24130#include <sys/socket.h>
24131
24132typedef sa_family_t ac__type_new_;
24133int
24134main ()
24135{
24136if ((ac__type_new_ *) 0)
24137 return 0;
24138if (sizeof (ac__type_new_))
24139 return 0;
24140 ;
24141 return 0;
24142}
24143_ACEOF
24144rm -f conftest.$ac_objext
24145if { (ac_try="$ac_compile"
24146case "(($ac_try" in
24147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24148 *) ac_try_echo=$ac_try;;
24149esac
24150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24151 (eval "$ac_compile") 2>conftest.er1
24152 ac_status=$?
24153 grep -v '^ *+' conftest.er1 >conftest.err
24154 rm -f conftest.er1
24155 cat conftest.err >&5
24156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24157 (exit $ac_status); } && {
24158 test -z "$ac_c_werror_flag" ||
24159 test ! -s conftest.err
24160 } && test -s conftest.$ac_objext; then
24161 ac_cv_type_sa_family_t=yes
24162else
24163 echo "$as_me: failed program was:" >&5
24164sed 's/^/| /' conftest.$ac_ext >&5
24165
24166 ac_cv_type_sa_family_t=no
24167fi
24168
24169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24170fi
24171{ echo "$as_me:$LINENO: result: $ac_cv_type_sa_family_t" >&5
24172echo "${ECHO_T}$ac_cv_type_sa_family_t" >&6; }
24173if test $ac_cv_type_sa_family_t = yes; then
24174 :
24175else
24176
24177cat >>confdefs.h <<\_ACEOF
24178#define sa_family_t u_int16_t
24179_ACEOF
24180
24181fi
24182
24183
24184
24185
24186
24187
24188
24189
24190
24191
24192
24193
24194
24195
24196
24197
24198
24199
24200
24201
24202
24203for ac_func in socketpair gettimeofday writev sendmsg gmtime_r strtok_r usleep posix_spawn strlcpy strlcat strnlen fstat signalfd select poll kevent port_create epoll_ctl
24204do
24205as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24206{ echo "$as_me:$LINENO: checking for $ac_func" >&5
24207echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24208if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24209 echo $ECHO_N "(cached) $ECHO_C" >&6
24210else
24211 cat >conftest.$ac_ext <<_ACEOF
24212/* confdefs.h. */
24213_ACEOF
24214cat confdefs.h >>conftest.$ac_ext
24215cat >>conftest.$ac_ext <<_ACEOF
24216/* end confdefs.h. */
24217/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24218 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24219#define $ac_func innocuous_$ac_func
24220
24221/* System header to define __stub macros and hopefully few prototypes,
24222 which can conflict with char $ac_func (); below.
24223 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24224 <limits.h> exists even on freestanding compilers. */
24225
24226#ifdef __STDC__
24227# include <limits.h>
24228#else
24229# include <assert.h>
24230#endif
24231
24232#undef $ac_func
24233
24234/* Override any GCC internal prototype to avoid an error.
24235 Use char because int might match the return type of a GCC
24236 builtin and then its argument prototype would still apply. */
24237#ifdef __cplusplus
24238extern "C"
24239#endif
24240char $ac_func ();
24241/* The GNU C library defines this for functions which it implements
24242 to always fail with ENOSYS. Some functions are actually named
24243 something starting with __ and the normal name is an alias. */
24244#if defined __stub_$ac_func || defined __stub___$ac_func
24245choke me
24246#endif
24247
24248int
24249main ()
24250{
24251return $ac_func ();
24252 ;
24253 return 0;
24254}
24255_ACEOF
24256rm -f conftest.$ac_objext conftest$ac_exeext
24257if { (ac_try="$ac_link"
24258case "(($ac_try" in
24259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24260 *) ac_try_echo=$ac_try;;
24261esac
24262eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24263 (eval "$ac_link") 2>conftest.er1
24264 ac_status=$?
24265 grep -v '^ *+' conftest.er1 >conftest.err
24266 rm -f conftest.er1
24267 cat conftest.err >&5
24268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24269 (exit $ac_status); } && {
24270 test -z "$ac_c_werror_flag" ||
24271 test ! -s conftest.err
24272 } && test -s conftest$ac_exeext &&
24273 $as_test_x conftest$ac_exeext; then
24274 eval "$as_ac_var=yes"
24275else
24276 echo "$as_me: failed program was:" >&5
24277sed 's/^/| /' conftest.$ac_ext >&5
24278
24279 eval "$as_ac_var=no"
24280fi
24281
24282rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24283 conftest$ac_exeext conftest.$ac_ext
24284fi
24285ac_res=`eval echo '${'$as_ac_var'}'`
24286 { echo "$as_me:$LINENO: result: $ac_res" >&5
24287echo "${ECHO_T}$ac_res" >&6; }
24288if test `eval echo '${'$as_ac_var'}'` = yes; then
24289 cat >>confdefs.h <<_ACEOF
24290#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24291_ACEOF
24292
24293fi
24294done
24295
24296
24297{ echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
24298echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6; }
24299if test "${ac_cv_search_nanosleep+set}" = set; then
24300 echo $ECHO_N "(cached) $ECHO_C" >&6
24301else
24302 ac_func_search_save_LIBS=$LIBS
24303cat >conftest.$ac_ext <<_ACEOF
24304/* confdefs.h. */
24305_ACEOF
24306cat confdefs.h >>conftest.$ac_ext
24307cat >>conftest.$ac_ext <<_ACEOF
24308/* end confdefs.h. */
24309
24310/* Override any GCC internal prototype to avoid an error.
24311 Use char because int might match the return type of a GCC
24312 builtin and then its argument prototype would still apply. */
24313#ifdef __cplusplus
24314extern "C"
24315#endif
24316char nanosleep ();
24317int
24318main ()
24319{
24320return nanosleep ();
24321 ;
24322 return 0;
24323}
24324_ACEOF
24325for ac_lib in '' rt posix4; do
24326 if test -z "$ac_lib"; then
24327 ac_res="none required"
24328 else
24329 ac_res=-l$ac_lib
24330 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24331 fi
24332 rm -f conftest.$ac_objext conftest$ac_exeext
24333if { (ac_try="$ac_link"
24334case "(($ac_try" in
24335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24336 *) ac_try_echo=$ac_try;;
24337esac
24338eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24339 (eval "$ac_link") 2>conftest.er1
24340 ac_status=$?
24341 grep -v '^ *+' conftest.er1 >conftest.err
24342 rm -f conftest.er1
24343 cat conftest.err >&5
24344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24345 (exit $ac_status); } && {
24346 test -z "$ac_c_werror_flag" ||
24347 test ! -s conftest.err
24348 } && test -s conftest$ac_exeext &&
24349 $as_test_x conftest$ac_exeext; then
24350 ac_cv_search_nanosleep=$ac_res
24351else
24352 echo "$as_me: failed program was:" >&5
24353sed 's/^/| /' conftest.$ac_ext >&5
24354
24355
24356fi
24357
24358rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24359 conftest$ac_exeext
24360 if test "${ac_cv_search_nanosleep+set}" = set; then
24361 break
24362fi
24363done
24364if test "${ac_cv_search_nanosleep+set}" = set; then
24365 :
24366else
24367 ac_cv_search_nanosleep=no
24368fi
24369rm conftest.$ac_ext
24370LIBS=$ac_func_search_save_LIBS
24371fi
24372{ echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
24373echo "${ECHO_T}$ac_cv_search_nanosleep" >&6; }
24374ac_res=$ac_cv_search_nanosleep
24375if test "$ac_res" != no; then
24376 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24377
24378cat >>confdefs.h <<\_ACEOF
24379#define HAVE_NANOSLEEP 1
24380_ACEOF
24381
24382fi
24383
24384{ echo "$as_me:$LINENO: checking for library containing timer_create" >&5
24385echo $ECHO_N "checking for library containing timer_create... $ECHO_C" >&6; }
24386if test "${ac_cv_search_timer_create+set}" = set; then
24387 echo $ECHO_N "(cached) $ECHO_C" >&6
24388else
24389 ac_func_search_save_LIBS=$LIBS
24390cat >conftest.$ac_ext <<_ACEOF
24391/* confdefs.h. */
24392_ACEOF
24393cat confdefs.h >>conftest.$ac_ext
24394cat >>conftest.$ac_ext <<_ACEOF
24395/* end confdefs.h. */
24396
24397/* Override any GCC internal prototype to avoid an error.
24398 Use char because int might match the return type of a GCC
24399 builtin and then its argument prototype would still apply. */
24400#ifdef __cplusplus
24401extern "C"
24402#endif
24403char timer_create ();
24404int
24405main ()
24406{
24407return timer_create ();
24408 ;
24409 return 0;
24410}
24411_ACEOF
24412for ac_lib in '' rt; do
24413 if test -z "$ac_lib"; then
24414 ac_res="none required"
24415 else
24416 ac_res=-l$ac_lib
24417 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24418 fi
24419 rm -f conftest.$ac_objext conftest$ac_exeext
24420if { (ac_try="$ac_link"
24421case "(($ac_try" in
24422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24423 *) ac_try_echo=$ac_try;;
24424esac
24425eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24426 (eval "$ac_link") 2>conftest.er1
24427 ac_status=$?
24428 grep -v '^ *+' conftest.er1 >conftest.err
24429 rm -f conftest.er1
24430 cat conftest.err >&5
24431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24432 (exit $ac_status); } && {
24433 test -z "$ac_c_werror_flag" ||
24434 test ! -s conftest.err
24435 } && test -s conftest$ac_exeext &&
24436 $as_test_x conftest$ac_exeext; then
24437 ac_cv_search_timer_create=$ac_res
24438else
24439 echo "$as_me: failed program was:" >&5
24440sed 's/^/| /' conftest.$ac_ext >&5
24441
24442
24443fi
24444
24445rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24446 conftest$ac_exeext
24447 if test "${ac_cv_search_timer_create+set}" = set; then
24448 break
24449fi
24450done
24451if test "${ac_cv_search_timer_create+set}" = set; then
24452 :
24453else
24454 ac_cv_search_timer_create=no
24455fi
24456rm conftest.$ac_ext
24457LIBS=$ac_func_search_save_LIBS
24458fi
24459{ echo "$as_me:$LINENO: result: $ac_cv_search_timer_create" >&5
24460echo "${ECHO_T}$ac_cv_search_timer_create" >&6; }
24461ac_res=$ac_cv_search_timer_create
24462if test "$ac_res" != no; then
24463 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24464
24465cat >>confdefs.h <<\_ACEOF
24466#define HAVE_TIMER_CREATE 1
24467_ACEOF
24468
24469fi
24470
24471{ echo "$as_me:$LINENO: checking for a working timer_create(CLOCK_REALTIME)" >&5
24472echo $ECHO_N "checking for a working timer_create(CLOCK_REALTIME)... $ECHO_C" >&6; }
24473if test "${rb__cv_timer_create_works+set}" = set; then
24474 echo $ECHO_N "(cached) $ECHO_C" >&6
24475else
24476 if test "$cross_compiling" = yes; then
24477 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
24478See \`config.log' for more details." >&5
24479echo "$as_me: error: cannot run test program while cross compiling
24480See \`config.log' for more details." >&2;}
24481 { (exit 1); exit 1; }; }
24482else
24483 cat >conftest.$ac_ext <<_ACEOF
24484/* confdefs.h. */
24485_ACEOF
24486cat confdefs.h >>conftest.$ac_ext
24487cat >>conftest.$ac_ext <<_ACEOF
24488/* end confdefs.h. */
24489
24490#ifdef HAVE_TIME_H
24491#include <time.h>
24492#endif
24493#ifdef HAVE_SIGNAL_H
24494#include <signal.h>
24495#endif
24496#ifdef HAVE_UNISTD_H
24497#include <unistd.h>
24498#endif
24499int main(int argc, char *argv[])
24500{
24501#if HAVE_TIMER_CREATE
24502 struct sigevent ev;
24503 timer_t timer;
24504 ev.sigev_notify = SIGEV_SIGNAL;
24505 ev.sigev_signo = SIGVTALRM;
24506 if (timer_create(CLOCK_REALTIME, &ev, &timer) != 0) {
24507 return 1;
24508 }
24509#else
24510 return 1;
24511#endif
24512 return 0;
24513}
24514
24515_ACEOF
24516rm -f conftest$ac_exeext
24517if { (ac_try="$ac_link"
24518case "(($ac_try" in
24519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24520 *) ac_try_echo=$ac_try;;
24521esac
24522eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24523 (eval "$ac_link") 2>&5
24524 ac_status=$?
24525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24526 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24527 { (case "(($ac_try" in
24528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24529 *) ac_try_echo=$ac_try;;
24530esac
24531eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24532 (eval "$ac_try") 2>&5
24533 ac_status=$?
24534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24535 (exit $ac_status); }; }; then
24536 rb__cv_timer_create_works=yes
24537else
24538 echo "$as_me: program exited with status $ac_status" >&5
24539echo "$as_me: failed program was:" >&5
24540sed 's/^/| /' conftest.$ac_ext >&5
24541
24542( exit $ac_status )
24543rb__cv_timer_create_works=no
24544fi
24545rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24546fi
24547
24548
24549
24550fi
24551{ echo "$as_me:$LINENO: result: $rb__cv_timer_create_works" >&5
24552echo "${ECHO_T}$rb__cv_timer_create_works" >&6; }
24553case $rb__cv_timer_create_works in
24554 yes)
24555cat >>confdefs.h <<\_ACEOF
24556#define USE_TIMER_CREATE 1
24557_ACEOF
24558;;
24559esac
24560
24561
24562# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
24563# for constant arguments. Useless!
24564{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
24565echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
24566if test "${ac_cv_working_alloca_h+set}" = set; then
24567 echo $ECHO_N "(cached) $ECHO_C" >&6
24568else
24569 cat >conftest.$ac_ext <<_ACEOF
24570/* confdefs.h. */
24571_ACEOF
24572cat confdefs.h >>conftest.$ac_ext
24573cat >>conftest.$ac_ext <<_ACEOF
24574/* end confdefs.h. */
24575#include <alloca.h>
24576int
24577main ()
24578{
24579char *p = (char *) alloca (2 * sizeof (int));
24580 if (p) return 0;
24581 ;
24582 return 0;
24583}
24584_ACEOF
24585rm -f conftest.$ac_objext conftest$ac_exeext
24586if { (ac_try="$ac_link"
24587case "(($ac_try" in
24588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24589 *) ac_try_echo=$ac_try;;
24590esac
24591eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24592 (eval "$ac_link") 2>conftest.er1
24593 ac_status=$?
24594 grep -v '^ *+' conftest.er1 >conftest.err
24595 rm -f conftest.er1
24596 cat conftest.err >&5
24597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24598 (exit $ac_status); } && {
24599 test -z "$ac_c_werror_flag" ||
24600 test ! -s conftest.err
24601 } && test -s conftest$ac_exeext &&
24602 $as_test_x conftest$ac_exeext; then
24603 ac_cv_working_alloca_h=yes
24604else
24605 echo "$as_me: failed program was:" >&5
24606sed 's/^/| /' conftest.$ac_ext >&5
24607
24608 ac_cv_working_alloca_h=no
24609fi
24610
24611rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24612 conftest$ac_exeext conftest.$ac_ext
24613fi
24614{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
24615echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
24616if test $ac_cv_working_alloca_h = yes; then
24617
24618cat >>confdefs.h <<\_ACEOF
24619#define HAVE_ALLOCA_H 1
24620_ACEOF
24621
24622fi
24623
24624{ echo "$as_me:$LINENO: checking for alloca" >&5
24625echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
24626if test "${ac_cv_func_alloca_works+set}" = set; then
24627 echo $ECHO_N "(cached) $ECHO_C" >&6
24628else
24629 cat >conftest.$ac_ext <<_ACEOF
24630/* confdefs.h. */
24631_ACEOF
24632cat confdefs.h >>conftest.$ac_ext
24633cat >>conftest.$ac_ext <<_ACEOF
24634/* end confdefs.h. */
24635#ifdef __GNUC__
24636# define alloca __builtin_alloca
24637#else
24638# ifdef _MSC_VER
24639# include <malloc.h>
24640# define alloca _alloca
24641# else
24642# ifdef HAVE_ALLOCA_H
24643# include <alloca.h>
24644# else
24645# ifdef _AIX
24646 #pragma alloca
24647# else
24648# ifndef alloca /* predefined by HP cc +Olibcalls */
24649char *alloca ();
24650# endif
24651# endif
24652# endif
24653# endif
24654#endif
24655
24656int
24657main ()
24658{
24659char *p = (char *) alloca (1);
24660 if (p) return 0;
24661 ;
24662 return 0;
24663}
24664_ACEOF
24665rm -f conftest.$ac_objext conftest$ac_exeext
24666if { (ac_try="$ac_link"
24667case "(($ac_try" in
24668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24669 *) ac_try_echo=$ac_try;;
24670esac
24671eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24672 (eval "$ac_link") 2>conftest.er1
24673 ac_status=$?
24674 grep -v '^ *+' conftest.er1 >conftest.err
24675 rm -f conftest.er1
24676 cat conftest.err >&5
24677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24678 (exit $ac_status); } && {
24679 test -z "$ac_c_werror_flag" ||
24680 test ! -s conftest.err
24681 } && test -s conftest$ac_exeext &&
24682 $as_test_x conftest$ac_exeext; then
24683 ac_cv_func_alloca_works=yes
24684else
24685 echo "$as_me: failed program was:" >&5
24686sed 's/^/| /' conftest.$ac_ext >&5
24687
24688 ac_cv_func_alloca_works=no
24689fi
24690
24691rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24692 conftest$ac_exeext conftest.$ac_ext
24693fi
24694{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
24695echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
24696
24697if test $ac_cv_func_alloca_works = yes; then
24698
24699cat >>confdefs.h <<\_ACEOF
24700#define HAVE_ALLOCA 1
24701_ACEOF
24702
24703else
24704 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
24705# that cause trouble. Some versions do not even contain alloca or
24706# contain a buggy version. If you still want to use their alloca,
24707# use ar to extract alloca.o from them instead of compiling alloca.c.
24708
24709ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
24710
24711cat >>confdefs.h <<\_ACEOF
24712#define C_ALLOCA 1
24713_ACEOF
24714
24715
24716{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
24717echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
24718if test "${ac_cv_os_cray+set}" = set; then
24719 echo $ECHO_N "(cached) $ECHO_C" >&6
24720else
24721 cat >conftest.$ac_ext <<_ACEOF
24722/* confdefs.h. */
24723_ACEOF
24724cat confdefs.h >>conftest.$ac_ext
24725cat >>conftest.$ac_ext <<_ACEOF
24726/* end confdefs.h. */
24727#if defined CRAY && ! defined CRAY2
24728webecray
24729#else
24730wenotbecray
24731#endif
24732
24733_ACEOF
24734if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24735 $EGREP "webecray" >/dev/null 2>&1; then
24736 ac_cv_os_cray=yes
24737else
24738 ac_cv_os_cray=no
24739fi
24740rm -f conftest*
24741
24742fi
24743{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
24744echo "${ECHO_T}$ac_cv_os_cray" >&6; }
24745if test $ac_cv_os_cray = yes; then
24746 for ac_func in _getb67 GETB67 getb67; do
24747 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24748{ echo "$as_me:$LINENO: checking for $ac_func" >&5
24749echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24750if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24751 echo $ECHO_N "(cached) $ECHO_C" >&6
24752else
24753 cat >conftest.$ac_ext <<_ACEOF
24754/* confdefs.h. */
24755_ACEOF
24756cat confdefs.h >>conftest.$ac_ext
24757cat >>conftest.$ac_ext <<_ACEOF
24758/* end confdefs.h. */
24759/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24760 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24761#define $ac_func innocuous_$ac_func
24762
24763/* System header to define __stub macros and hopefully few prototypes,
24764 which can conflict with char $ac_func (); below.
24765 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24766 <limits.h> exists even on freestanding compilers. */
24767
24768#ifdef __STDC__
24769# include <limits.h>
24770#else
24771# include <assert.h>
24772#endif
24773
24774#undef $ac_func
24775
24776/* Override any GCC internal prototype to avoid an error.
24777 Use char because int might match the return type of a GCC
24778 builtin and then its argument prototype would still apply. */
24779#ifdef __cplusplus
24780extern "C"
24781#endif
24782char $ac_func ();
24783/* The GNU C library defines this for functions which it implements
24784 to always fail with ENOSYS. Some functions are actually named
24785 something starting with __ and the normal name is an alias. */
24786#if defined __stub_$ac_func || defined __stub___$ac_func
24787choke me
24788#endif
24789
24790int
24791main ()
24792{
24793return $ac_func ();
24794 ;
24795 return 0;
24796}
24797_ACEOF
24798rm -f conftest.$ac_objext conftest$ac_exeext
24799if { (ac_try="$ac_link"
24800case "(($ac_try" in
24801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24802 *) ac_try_echo=$ac_try;;
24803esac
24804eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24805 (eval "$ac_link") 2>conftest.er1
24806 ac_status=$?
24807 grep -v '^ *+' conftest.er1 >conftest.err
24808 rm -f conftest.er1
24809 cat conftest.err >&5
24810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24811 (exit $ac_status); } && {
24812 test -z "$ac_c_werror_flag" ||
24813 test ! -s conftest.err
24814 } && test -s conftest$ac_exeext &&
24815 $as_test_x conftest$ac_exeext; then
24816 eval "$as_ac_var=yes"
24817else
24818 echo "$as_me: failed program was:" >&5
24819sed 's/^/| /' conftest.$ac_ext >&5
24820
24821 eval "$as_ac_var=no"
24822fi
24823
24824rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24825 conftest$ac_exeext conftest.$ac_ext
24826fi
24827ac_res=`eval echo '${'$as_ac_var'}'`
24828 { echo "$as_me:$LINENO: result: $ac_res" >&5
24829echo "${ECHO_T}$ac_res" >&6; }
24830if test `eval echo '${'$as_ac_var'}'` = yes; then
24831
24832cat >>confdefs.h <<_ACEOF
24833#define CRAY_STACKSEG_END $ac_func
24834_ACEOF
24835
24836 break
24837fi
24838
24839 done
24840fi
24841
24842{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
24843echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
24844if test "${ac_cv_c_stack_direction+set}" = set; then
24845 echo $ECHO_N "(cached) $ECHO_C" >&6
24846else
24847 if test "$cross_compiling" = yes; then
24848 ac_cv_c_stack_direction=0
24849else
24850 cat >conftest.$ac_ext <<_ACEOF
24851/* confdefs.h. */
24852_ACEOF
24853cat confdefs.h >>conftest.$ac_ext
24854cat >>conftest.$ac_ext <<_ACEOF
24855/* end confdefs.h. */
24856$ac_includes_default
24857int
24858find_stack_direction ()
24859{
24860 static char *addr = 0;
24861 auto char dummy;
24862 if (addr == 0)
24863 {
24864 addr = &dummy;
24865 return find_stack_direction ();
24866 }
24867 else
24868 return (&dummy > addr) ? 1 : -1;
24869}
24870
24871int
24872main ()
24873{
24874 return find_stack_direction () < 0;
24875}
24876_ACEOF
24877rm -f conftest$ac_exeext
24878if { (ac_try="$ac_link"
24879case "(($ac_try" in
24880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24881 *) ac_try_echo=$ac_try;;
24882esac
24883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24884 (eval "$ac_link") 2>&5
24885 ac_status=$?
24886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24887 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24888 { (case "(($ac_try" in
24889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24890 *) ac_try_echo=$ac_try;;
24891esac
24892eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24893 (eval "$ac_try") 2>&5
24894 ac_status=$?
24895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24896 (exit $ac_status); }; }; then
24897 ac_cv_c_stack_direction=1
24898else
24899 echo "$as_me: program exited with status $ac_status" >&5
24900echo "$as_me: failed program was:" >&5
24901sed 's/^/| /' conftest.$ac_ext >&5
24902
24903( exit $ac_status )
24904ac_cv_c_stack_direction=-1
24905fi
24906rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24907fi
24908
24909
24910fi
24911{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
24912echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
24913
24914cat >>confdefs.h <<_ACEOF
24915#define STACK_DIRECTION $ac_cv_c_stack_direction
24916_ACEOF
24917
24918
24919fi
24920
24921
24922for ac_header in vfork.h
24923do
24924as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24925if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24926 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24927echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24928if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24929 echo $ECHO_N "(cached) $ECHO_C" >&6
24930fi
24931ac_res=`eval echo '${'$as_ac_Header'}'`
24932 { echo "$as_me:$LINENO: result: $ac_res" >&5
24933echo "${ECHO_T}$ac_res" >&6; }
24934else
24935 # Is the header compilable?
24936{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
24937echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24938cat >conftest.$ac_ext <<_ACEOF
24939/* confdefs.h. */
24940_ACEOF
24941cat confdefs.h >>conftest.$ac_ext
24942cat >>conftest.$ac_ext <<_ACEOF
24943/* end confdefs.h. */
24944$ac_includes_default
24945#include <$ac_header>
24946_ACEOF
24947rm -f conftest.$ac_objext
24948if { (ac_try="$ac_compile"
24949case "(($ac_try" in
24950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24951 *) ac_try_echo=$ac_try;;
24952esac
24953eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24954 (eval "$ac_compile") 2>conftest.er1
24955 ac_status=$?
24956 grep -v '^ *+' conftest.er1 >conftest.err
24957 rm -f conftest.er1
24958 cat conftest.err >&5
24959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24960 (exit $ac_status); } && {
24961 test -z "$ac_c_werror_flag" ||
24962 test ! -s conftest.err
24963 } && test -s conftest.$ac_objext; then
24964 ac_header_compiler=yes
24965else
24966 echo "$as_me: failed program was:" >&5
24967sed 's/^/| /' conftest.$ac_ext >&5
24968
24969 ac_header_compiler=no
24970fi
24971
24972rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24973{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24974echo "${ECHO_T}$ac_header_compiler" >&6; }
24975
24976# Is the header present?
24977{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
24978echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24979cat >conftest.$ac_ext <<_ACEOF
24980/* confdefs.h. */
24981_ACEOF
24982cat confdefs.h >>conftest.$ac_ext
24983cat >>conftest.$ac_ext <<_ACEOF
24984/* end confdefs.h. */
24985#include <$ac_header>
24986_ACEOF
24987if { (ac_try="$ac_cpp conftest.$ac_ext"
24988case "(($ac_try" in
24989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24990 *) ac_try_echo=$ac_try;;
24991esac
24992eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24993 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24994 ac_status=$?
24995 grep -v '^ *+' conftest.er1 >conftest.err
24996 rm -f conftest.er1
24997 cat conftest.err >&5
24998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24999 (exit $ac_status); } >/dev/null && {
25000 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25001 test ! -s conftest.err
25002 }; then
25003 ac_header_preproc=yes
25004else
25005 echo "$as_me: failed program was:" >&5
25006sed 's/^/| /' conftest.$ac_ext >&5
25007
25008 ac_header_preproc=no
25009fi
25010
25011rm -f conftest.err conftest.$ac_ext
25012{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25013echo "${ECHO_T}$ac_header_preproc" >&6; }
25014
25015# So? What about this header?
25016case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25017 yes:no: )
25018 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25019echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25020 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25021echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25022 ac_header_preproc=yes
25023 ;;
25024 no:yes:* )
25025 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25026echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25027 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25028echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25029 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25030echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25031 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25032echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25033 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25034echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25035 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25036echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25037
25038 ;;
25039esac
25040{ echo "$as_me:$LINENO: checking for $ac_header" >&5
25041echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25042if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25043 echo $ECHO_N "(cached) $ECHO_C" >&6
25044else
25045 eval "$as_ac_Header=\$ac_header_preproc"
25046fi
25047ac_res=`eval echo '${'$as_ac_Header'}'`
25048 { echo "$as_me:$LINENO: result: $ac_res" >&5
25049echo "${ECHO_T}$ac_res" >&6; }
25050
25051fi
25052if test `eval echo '${'$as_ac_Header'}'` = yes; then
25053 cat >>confdefs.h <<_ACEOF
25054#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25055_ACEOF
25056
25057fi
25058
25059done
25060
25061
25062
25063for ac_func in fork vfork
25064do
25065as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25066{ echo "$as_me:$LINENO: checking for $ac_func" >&5
25067echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25068if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25069 echo $ECHO_N "(cached) $ECHO_C" >&6
25070else
25071 cat >conftest.$ac_ext <<_ACEOF
25072/* confdefs.h. */
25073_ACEOF
25074cat confdefs.h >>conftest.$ac_ext
25075cat >>conftest.$ac_ext <<_ACEOF
25076/* end confdefs.h. */
25077/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25078 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25079#define $ac_func innocuous_$ac_func
25080
25081/* System header to define __stub macros and hopefully few prototypes,
25082 which can conflict with char $ac_func (); below.
25083 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25084 <limits.h> exists even on freestanding compilers. */
25085
25086#ifdef __STDC__
25087# include <limits.h>
25088#else
25089# include <assert.h>
25090#endif
25091
25092#undef $ac_func
25093
25094/* Override any GCC internal prototype to avoid an error.
25095 Use char because int might match the return type of a GCC
25096 builtin and then its argument prototype would still apply. */
25097#ifdef __cplusplus
25098extern "C"
25099#endif
25100char $ac_func ();
25101/* The GNU C library defines this for functions which it implements
25102 to always fail with ENOSYS. Some functions are actually named
25103 something starting with __ and the normal name is an alias. */
25104#if defined __stub_$ac_func || defined __stub___$ac_func
25105choke me
25106#endif
25107
25108int
25109main ()
25110{
25111return $ac_func ();
25112 ;
25113 return 0;
25114}
25115_ACEOF
25116rm -f conftest.$ac_objext conftest$ac_exeext
25117if { (ac_try="$ac_link"
25118case "(($ac_try" in
25119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25120 *) ac_try_echo=$ac_try;;
25121esac
25122eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25123 (eval "$ac_link") 2>conftest.er1
25124 ac_status=$?
25125 grep -v '^ *+' conftest.er1 >conftest.err
25126 rm -f conftest.er1
25127 cat conftest.err >&5
25128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25129 (exit $ac_status); } && {
25130 test -z "$ac_c_werror_flag" ||
25131 test ! -s conftest.err
25132 } && test -s conftest$ac_exeext &&
25133 $as_test_x conftest$ac_exeext; then
25134 eval "$as_ac_var=yes"
25135else
25136 echo "$as_me: failed program was:" >&5
25137sed 's/^/| /' conftest.$ac_ext >&5
25138
25139 eval "$as_ac_var=no"
25140fi
25141
25142rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25143 conftest$ac_exeext conftest.$ac_ext
25144fi
25145ac_res=`eval echo '${'$as_ac_var'}'`
25146 { echo "$as_me:$LINENO: result: $ac_res" >&5
25147echo "${ECHO_T}$ac_res" >&6; }
25148if test `eval echo '${'$as_ac_var'}'` = yes; then
25149 cat >>confdefs.h <<_ACEOF
25150#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25151_ACEOF
25152
25153fi
25154done
25155
25156if test "x$ac_cv_func_fork" = xyes; then
25157 { echo "$as_me:$LINENO: checking for working fork" >&5
25158echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
25159if test "${ac_cv_func_fork_works+set}" = set; then
25160 echo $ECHO_N "(cached) $ECHO_C" >&6
25161else
25162 if test "$cross_compiling" = yes; then
25163 ac_cv_func_fork_works=cross
25164else
25165 cat >conftest.$ac_ext <<_ACEOF
25166/* confdefs.h. */
25167_ACEOF
25168cat confdefs.h >>conftest.$ac_ext
25169cat >>conftest.$ac_ext <<_ACEOF
25170/* end confdefs.h. */
25171$ac_includes_default
25172int
25173main ()
25174{
25175
25176 /* By Ruediger Kuhlmann. */
25177 return fork () < 0;
25178
25179 ;
25180 return 0;
25181}
25182_ACEOF
25183rm -f conftest$ac_exeext
25184if { (ac_try="$ac_link"
25185case "(($ac_try" in
25186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25187 *) ac_try_echo=$ac_try;;
25188esac
25189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25190 (eval "$ac_link") 2>&5
25191 ac_status=$?
25192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25193 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25194 { (case "(($ac_try" in
25195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25196 *) ac_try_echo=$ac_try;;
25197esac
25198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25199 (eval "$ac_try") 2>&5
25200 ac_status=$?
25201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25202 (exit $ac_status); }; }; then
25203 ac_cv_func_fork_works=yes
25204else
25205 echo "$as_me: program exited with status $ac_status" >&5
25206echo "$as_me: failed program was:" >&5
25207sed 's/^/| /' conftest.$ac_ext >&5
25208
25209( exit $ac_status )
25210ac_cv_func_fork_works=no
25211fi
25212rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25213fi
25214
25215
25216fi
25217{ echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
25218echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
25219
25220else
25221 ac_cv_func_fork_works=$ac_cv_func_fork
25222fi
25223if test "x$ac_cv_func_fork_works" = xcross; then
25224 case $host in
25225 *-*-amigaos* | *-*-msdosdjgpp*)
25226 # Override, as these systems have only a dummy fork() stub
25227 ac_cv_func_fork_works=no
25228 ;;
25229 *)
25230 ac_cv_func_fork_works=yes
25231 ;;
25232 esac
25233 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
25234echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
25235fi
25236ac_cv_func_vfork_works=$ac_cv_func_vfork
25237if test "x$ac_cv_func_vfork" = xyes; then
25238 { echo "$as_me:$LINENO: checking for working vfork" >&5
25239echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
25240if test "${ac_cv_func_vfork_works+set}" = set; then
25241 echo $ECHO_N "(cached) $ECHO_C" >&6
25242else
25243 if test "$cross_compiling" = yes; then
25244 ac_cv_func_vfork_works=cross
25245else
25246 cat >conftest.$ac_ext <<_ACEOF
25247/* confdefs.h. */
25248_ACEOF
25249cat confdefs.h >>conftest.$ac_ext
25250cat >>conftest.$ac_ext <<_ACEOF
25251/* end confdefs.h. */
25252/* Thanks to Paul Eggert for this test. */
25253$ac_includes_default
25254#include <sys/wait.h>
25255#ifdef HAVE_VFORK_H
25256# include <vfork.h>
25257#endif
25258/* On some sparc systems, changes by the child to local and incoming
25259 argument registers are propagated back to the parent. The compiler
25260 is told about this with #include <vfork.h>, but some compilers
25261 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
25262 static variable whose address is put into a register that is
25263 clobbered by the vfork. */
25264static void
25265#ifdef __cplusplus
25266sparc_address_test (int arg)
25267# else
25268sparc_address_test (arg) int arg;
25269#endif
25270{
25271 static pid_t child;
25272 if (!child) {
25273 child = vfork ();
25274 if (child < 0) {
25275 perror ("vfork");
25276 _exit(2);
25277 }
25278 if (!child) {
25279 arg = getpid();
25280 write(-1, "", 0);
25281 _exit (arg);
25282 }
25283 }
25284}
25285
25286int
25287main ()
25288{
25289 pid_t parent = getpid ();
25290 pid_t child;
25291
25292 sparc_address_test (0);
25293
25294 child = vfork ();
25295
25296 if (child == 0) {
25297 /* Here is another test for sparc vfork register problems. This
25298 test uses lots of local variables, at least as many local
25299 variables as main has allocated so far including compiler
25300 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
25301 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
25302 reuse the register of parent for one of the local variables,
25303 since it will think that parent can't possibly be used any more
25304 in this routine. Assigning to the local variable will thus
25305 munge parent in the parent process. */
25306 pid_t
25307 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
25308 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
25309 /* Convince the compiler that p..p7 are live; otherwise, it might
25310 use the same hardware register for all 8 local variables. */
25311 if (p != p1 || p != p2 || p != p3 || p != p4
25312 || p != p5 || p != p6 || p != p7)
25313 _exit(1);
25314
25315 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
25316 from child file descriptors. If the child closes a descriptor
25317 before it execs or exits, this munges the parent's descriptor
25318 as well. Test for this by closing stdout in the child. */
25319 _exit(close(fileno(stdout)) != 0);
25320 } else {
25321 int status;
25322 struct stat st;
25323
25324 while (wait(&status) != child)
25325 ;
25326 return (
25327 /* Was there some problem with vforking? */
25328 child < 0
25329
25330 /* Did the child fail? (This shouldn't happen.) */
25331 || status
25332
25333 /* Did the vfork/compiler bug occur? */
25334 || parent != getpid()
25335
25336 /* Did the file descriptor bug occur? */
25337 || fstat(fileno(stdout), &st) != 0
25338 );
25339 }
25340}
25341_ACEOF
25342rm -f conftest$ac_exeext
25343if { (ac_try="$ac_link"
25344case "(($ac_try" in
25345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25346 *) ac_try_echo=$ac_try;;
25347esac
25348eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25349 (eval "$ac_link") 2>&5
25350 ac_status=$?
25351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25352 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25353 { (case "(($ac_try" in
25354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25355 *) ac_try_echo=$ac_try;;
25356esac
25357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25358 (eval "$ac_try") 2>&5
25359 ac_status=$?
25360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25361 (exit $ac_status); }; }; then
25362 ac_cv_func_vfork_works=yes
25363else
25364 echo "$as_me: program exited with status $ac_status" >&5
25365echo "$as_me: failed program was:" >&5
25366sed 's/^/| /' conftest.$ac_ext >&5
25367
25368( exit $ac_status )
25369ac_cv_func_vfork_works=no
25370fi
25371rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25372fi
25373
25374
25375fi
25376{ echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
25377echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
25378
25379fi;
25380if test "x$ac_cv_func_fork_works" = xcross; then
25381 ac_cv_func_vfork_works=$ac_cv_func_vfork
25382 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
25383echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
25384fi
25385
25386if test "x$ac_cv_func_vfork_works" = xyes; then
25387
25388cat >>confdefs.h <<\_ACEOF
25389#define HAVE_WORKING_VFORK 1
25390_ACEOF
25391
25392else
25393
25394cat >>confdefs.h <<\_ACEOF
25395#define vfork fork
25396_ACEOF
25397
25398fi
25399if test "x$ac_cv_func_fork_works" = xyes; then
25400
25401cat >>confdefs.h <<\_ACEOF
25402#define HAVE_WORKING_FORK 1
25403_ACEOF
25404
25405fi
25406
25407
25408
25409for ac_header in stdlib.h unistd.h
25410do
25411as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25412if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25413 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25414echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25415if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25416 echo $ECHO_N "(cached) $ECHO_C" >&6
25417fi
25418ac_res=`eval echo '${'$as_ac_Header'}'`
25419 { echo "$as_me:$LINENO: result: $ac_res" >&5
25420echo "${ECHO_T}$ac_res" >&6; }
25421else
25422 # Is the header compilable?
25423{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
25424echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
25425cat >conftest.$ac_ext <<_ACEOF
25426/* confdefs.h. */
25427_ACEOF
25428cat confdefs.h >>conftest.$ac_ext
25429cat >>conftest.$ac_ext <<_ACEOF
25430/* end confdefs.h. */
25431$ac_includes_default
25432#include <$ac_header>
25433_ACEOF
25434rm -f conftest.$ac_objext
25435if { (ac_try="$ac_compile"
25436case "(($ac_try" in
25437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25438 *) ac_try_echo=$ac_try;;
25439esac
25440eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25441 (eval "$ac_compile") 2>conftest.er1
25442 ac_status=$?
25443 grep -v '^ *+' conftest.er1 >conftest.err
25444 rm -f conftest.er1
25445 cat conftest.err >&5
25446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25447 (exit $ac_status); } && {
25448 test -z "$ac_c_werror_flag" ||
25449 test ! -s conftest.err
25450 } && test -s conftest.$ac_objext; then
25451 ac_header_compiler=yes
25452else
25453 echo "$as_me: failed program was:" >&5
25454sed 's/^/| /' conftest.$ac_ext >&5
25455
25456 ac_header_compiler=no
25457fi
25458
25459rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25460{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25461echo "${ECHO_T}$ac_header_compiler" >&6; }
25462
25463# Is the header present?
25464{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
25465echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
25466cat >conftest.$ac_ext <<_ACEOF
25467/* confdefs.h. */
25468_ACEOF
25469cat confdefs.h >>conftest.$ac_ext
25470cat >>conftest.$ac_ext <<_ACEOF
25471/* end confdefs.h. */
25472#include <$ac_header>
25473_ACEOF
25474if { (ac_try="$ac_cpp conftest.$ac_ext"
25475case "(($ac_try" in
25476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25477 *) ac_try_echo=$ac_try;;
25478esac
25479eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25480 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25481 ac_status=$?
25482 grep -v '^ *+' conftest.er1 >conftest.err
25483 rm -f conftest.er1
25484 cat conftest.err >&5
25485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25486 (exit $ac_status); } >/dev/null && {
25487 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25488 test ! -s conftest.err
25489 }; then
25490 ac_header_preproc=yes
25491else
25492 echo "$as_me: failed program was:" >&5
25493sed 's/^/| /' conftest.$ac_ext >&5
25494
25495 ac_header_preproc=no
25496fi
25497
25498rm -f conftest.err conftest.$ac_ext
25499{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25500echo "${ECHO_T}$ac_header_preproc" >&6; }
25501
25502# So? What about this header?
25503case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25504 yes:no: )
25505 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25506echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25507 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25508echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25509 ac_header_preproc=yes
25510 ;;
25511 no:yes:* )
25512 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25513echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25514 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25515echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25516 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25517echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25518 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25519echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25520 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25521echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25522 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25523echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25524
25525 ;;
25526esac
25527{ echo "$as_me:$LINENO: checking for $ac_header" >&5
25528echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25529if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25530 echo $ECHO_N "(cached) $ECHO_C" >&6
25531else
25532 eval "$as_ac_Header=\$ac_header_preproc"
25533fi
25534ac_res=`eval echo '${'$as_ac_Header'}'`
25535 { echo "$as_me:$LINENO: result: $ac_res" >&5
25536echo "${ECHO_T}$ac_res" >&6; }
25537
25538fi
25539if test `eval echo '${'$as_ac_Header'}'` = yes; then
25540 cat >>confdefs.h <<_ACEOF
25541#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25542_ACEOF
25543
25544fi
25545
25546done
25547
25548
25549for ac_func in getpagesize
25550do
25551as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25552{ echo "$as_me:$LINENO: checking for $ac_func" >&5
25553echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25554if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25555 echo $ECHO_N "(cached) $ECHO_C" >&6
25556else
25557 cat >conftest.$ac_ext <<_ACEOF
25558/* confdefs.h. */
25559_ACEOF
25560cat confdefs.h >>conftest.$ac_ext
25561cat >>conftest.$ac_ext <<_ACEOF
25562/* end confdefs.h. */
25563/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25564 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25565#define $ac_func innocuous_$ac_func
25566
25567/* System header to define __stub macros and hopefully few prototypes,
25568 which can conflict with char $ac_func (); below.
25569 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25570 <limits.h> exists even on freestanding compilers. */
25571
25572#ifdef __STDC__
25573# include <limits.h>
25574#else
25575# include <assert.h>
25576#endif
25577
25578#undef $ac_func
25579
25580/* Override any GCC internal prototype to avoid an error.
25581 Use char because int might match the return type of a GCC
25582 builtin and then its argument prototype would still apply. */
25583#ifdef __cplusplus
25584extern "C"
25585#endif
25586char $ac_func ();
25587/* The GNU C library defines this for functions which it implements
25588 to always fail with ENOSYS. Some functions are actually named
25589 something starting with __ and the normal name is an alias. */
25590#if defined __stub_$ac_func || defined __stub___$ac_func
25591choke me
25592#endif
25593
25594int
25595main ()
25596{
25597return $ac_func ();
25598 ;
25599 return 0;
25600}
25601_ACEOF
25602rm -f conftest.$ac_objext conftest$ac_exeext
25603if { (ac_try="$ac_link"
25604case "(($ac_try" in
25605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25606 *) ac_try_echo=$ac_try;;
25607esac
25608eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25609 (eval "$ac_link") 2>conftest.er1
25610 ac_status=$?
25611 grep -v '^ *+' conftest.er1 >conftest.err
25612 rm -f conftest.er1
25613 cat conftest.err >&5
25614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25615 (exit $ac_status); } && {
25616 test -z "$ac_c_werror_flag" ||
25617 test ! -s conftest.err
25618 } && test -s conftest$ac_exeext &&
25619 $as_test_x conftest$ac_exeext; then
25620 eval "$as_ac_var=yes"
25621else
25622 echo "$as_me: failed program was:" >&5
25623sed 's/^/| /' conftest.$ac_ext >&5
25624
25625 eval "$as_ac_var=no"
25626fi
25627
25628rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25629 conftest$ac_exeext conftest.$ac_ext
25630fi
25631ac_res=`eval echo '${'$as_ac_var'}'`
25632 { echo "$as_me:$LINENO: result: $ac_res" >&5
25633echo "${ECHO_T}$ac_res" >&6; }
25634if test `eval echo '${'$as_ac_var'}'` = yes; then
25635 cat >>confdefs.h <<_ACEOF
25636#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25637_ACEOF
25638
25639fi
25640done
25641
25642{ echo "$as_me:$LINENO: checking for working mmap" >&5
25643echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
25644if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
25645 echo $ECHO_N "(cached) $ECHO_C" >&6
25646else
25647 if test "$cross_compiling" = yes; then
25648 ac_cv_func_mmap_fixed_mapped=no
25649else
25650 cat >conftest.$ac_ext <<_ACEOF
25651/* confdefs.h. */
25652_ACEOF
25653cat confdefs.h >>conftest.$ac_ext
25654cat >>conftest.$ac_ext <<_ACEOF
25655/* end confdefs.h. */
25656$ac_includes_default
25657/* malloc might have been renamed as rpl_malloc. */
25658#undef malloc
25659
25660/* Thanks to Mike Haertel and Jim Avera for this test.
25661 Here is a matrix of mmap possibilities:
25662 mmap private not fixed
25663 mmap private fixed at somewhere currently unmapped
25664 mmap private fixed at somewhere already mapped
25665 mmap shared not fixed
25666 mmap shared fixed at somewhere currently unmapped
25667 mmap shared fixed at somewhere already mapped
25668 For private mappings, we should verify that changes cannot be read()
25669 back from the file, nor mmap's back from the file at a different
25670 address. (There have been systems where private was not correctly
25671 implemented like the infamous i386 svr4.0, and systems where the
25672 VM page cache was not coherent with the file system buffer cache
25673 like early versions of FreeBSD and possibly contemporary NetBSD.)
25674 For shared mappings, we should conversely verify that changes get
25675 propagated back to all the places they're supposed to be.
25676
25677 Grep wants private fixed already mapped.
25678 The main things grep needs to know about mmap are:
25679 * does it exist and is it safe to write into the mmap'd area
25680 * how to use it (BSD variants) */
25681
25682#include <fcntl.h>
25683#include <sys/mman.h>
25684
25685#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
25686char *malloc ();
25687#endif
25688
25689/* This mess was copied from the GNU getpagesize.h. */
25690#ifndef HAVE_GETPAGESIZE
25691/* Assume that all systems that can run configure have sys/param.h. */
25692# ifndef HAVE_SYS_PARAM_H
25693# define HAVE_SYS_PARAM_H 1
25694# endif
25695
25696# ifdef _SC_PAGESIZE
25697# define getpagesize() sysconf(_SC_PAGESIZE)
25698# else /* no _SC_PAGESIZE */
25699# ifdef HAVE_SYS_PARAM_H
25700# include <sys/param.h>
25701# ifdef EXEC_PAGESIZE
25702# define getpagesize() EXEC_PAGESIZE
25703# else /* no EXEC_PAGESIZE */
25704# ifdef NBPG
25705# define getpagesize() NBPG * CLSIZE
25706# ifndef CLSIZE
25707# define CLSIZE 1
25708# endif /* no CLSIZE */
25709# else /* no NBPG */
25710# ifdef NBPC
25711# define getpagesize() NBPC
25712# else /* no NBPC */
25713# ifdef PAGESIZE
25714# define getpagesize() PAGESIZE
25715# endif /* PAGESIZE */
25716# endif /* no NBPC */
25717# endif /* no NBPG */
25718# endif /* no EXEC_PAGESIZE */
25719# else /* no HAVE_SYS_PARAM_H */
25720# define getpagesize() 8192 /* punt totally */
25721# endif /* no HAVE_SYS_PARAM_H */
25722# endif /* no _SC_PAGESIZE */
25723
25724#endif /* no HAVE_GETPAGESIZE */
25725
25726int
25727main ()
25728{
25729 char *data, *data2, *data3;
25730 int i, pagesize;
25731 int fd;
25732
25733 pagesize = getpagesize ();
25734
25735 /* First, make a file with some known garbage in it. */
25736 data = (char *) malloc (pagesize);
25737 if (!data)
25738 return 1;
25739 for (i = 0; i < pagesize; ++i)
25740 *(data + i) = rand ();
25741 umask (0);
25742 fd = creat ("conftest.mmap", 0600);
25743 if (fd < 0)
25744 return 1;
25745 if (write (fd, data, pagesize) != pagesize)
25746 return 1;
25747 close (fd);
25748
25749 /* Next, try to mmap the file at a fixed address which already has
25750 something else allocated at it. If we can, also make sure that
25751 we see the same garbage. */
25752 fd = open ("conftest.mmap", O_RDWR);
25753 if (fd < 0)
25754 return 1;
25755 data2 = (char *) malloc (2 * pagesize);
25756 if (!data2)
25757 return 1;
25758 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
25759 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
25760 MAP_PRIVATE | MAP_FIXED, fd, 0L))
25761 return 1;
25762 for (i = 0; i < pagesize; ++i)
25763 if (*(data + i) != *(data2 + i))
25764 return 1;
25765
25766 /* Finally, make sure that changes to the mapped area do not
25767 percolate back to the file as seen by read(). (This is a bug on
25768 some variants of i386 svr4.0.) */
25769 for (i = 0; i < pagesize; ++i)
25770 *(data2 + i) = *(data2 + i) + 1;
25771 data3 = (char *) malloc (pagesize);
25772 if (!data3)
25773 return 1;
25774 if (read (fd, data3, pagesize) != pagesize)
25775 return 1;
25776 for (i = 0; i < pagesize; ++i)
25777 if (*(data + i) != *(data3 + i))
25778 return 1;
25779 close (fd);
25780 return 0;
25781}
25782_ACEOF
25783rm -f conftest$ac_exeext
25784if { (ac_try="$ac_link"
25785case "(($ac_try" in
25786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25787 *) ac_try_echo=$ac_try;;
25788esac
25789eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25790 (eval "$ac_link") 2>&5
25791 ac_status=$?
25792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25793 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25794 { (case "(($ac_try" in
25795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25796 *) ac_try_echo=$ac_try;;
25797esac
25798eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25799 (eval "$ac_try") 2>&5
25800 ac_status=$?
25801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25802 (exit $ac_status); }; }; then
25803 ac_cv_func_mmap_fixed_mapped=yes
25804else
25805 echo "$as_me: program exited with status $ac_status" >&5
25806echo "$as_me: failed program was:" >&5
25807sed 's/^/| /' conftest.$ac_ext >&5
25808
25809( exit $ac_status )
25810ac_cv_func_mmap_fixed_mapped=no
25811fi
25812rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25813fi
25814
25815
25816fi
25817{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
25818echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
25819if test $ac_cv_func_mmap_fixed_mapped = yes; then
25820
25821cat >>confdefs.h <<\_ACEOF
25822#define HAVE_MMAP 1
25823_ACEOF
25824
25825fi
25826rm -f conftest.mmap
25827
25828
25829{ echo "$as_me:$LINENO: checking for /dev/poll" >&5
25830echo $ECHO_N "checking for /dev/poll... $ECHO_C" >&6; }
25831if test -c "/dev/poll"; then
25832 { echo "$as_me:$LINENO: result: yes" >&5
25833echo "${ECHO_T}yes" >&6; }
25834
25835cat >>confdefs.h <<\_ACEOF
25836#define HAVE_DEVPOLL 1
25837_ACEOF
25838
25839else
25840 { echo "$as_me:$LINENO: result: no" >&5
25841echo "${ECHO_T}no" >&6; }
25842fi
25843
25844
25845if test "$is_mingw" = "yes"; then
25846
25847cat >>confdefs.h <<\_ACEOF
25848#define HAVE_WIN32 1
25849_ACEOF
25850
25851fi
25852
25853
25854{ echo "$as_me:$LINENO: checking for OpenSSL" >&5
25855echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6; }
25856# Check whether --enable-openssl was given.
25857if test "${enable_openssl+set}" = set; then
25858 enableval=$enable_openssl; cf_enable_openssl=$enableval
25859else
25860 cf_enable_openssl="auto"
25861fi
25862
25863
25864if test "$cf_enable_openssl" != "no" ; then
25865 cf_openssl_basedir=""
25866 if test "$cf_enable_openssl" != "auto" &&
25867 test "$cf_enable_openssl" != "yes" ; then
25868 cf_openssl_basedir="`echo ${cf_enable_openssl} | sed 's/\/$//'`"
25869 else
25870 for dirs in /usr/local/ssl /usr/pkg /usr/local \
25871 /usr/local/openssl ; do
25872 if test -f "${dirs}/include/openssl/opensslv.h" ; then
25873 cf_openssl_basedir="${dirs}"
25874 break
25875 fi
25876 done
25877 unset dirs
25878 fi
25879 if test ! -z "$cf_openssl_basedir"; then
25880 if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h" ; then
033be687 25881 SSL_CFLAGS="-I${cf_openssl_basedir}/include"
b57f37fb
WP
25882 SSL_LIBS="-L${cf_openssl_basedir}/lib"
25883 else
25884 cf_openssl_basedir=""
25885 fi
25886 else
25887 if test -f "/usr/include/openssl/opensslv.h" ; then
25888 cf_openssl_basedir="/usr"
25889 fi
25890 fi
25891
25892 if test ! -z "$cf_openssl_basedir"; then
25893 { echo "$as_me:$LINENO: result: $cf_openssl_basedir" >&5
25894echo "${ECHO_T}$cf_openssl_basedir" >&6; }
25895 cf_enable_openssl="yes"
25896 else
25897 { echo "$as_me:$LINENO: result: not found. Specify a correct path?" >&5
25898echo "${ECHO_T}not found. Specify a correct path?" >&6; }
25899 cf_enable_openssl="no"
25900 fi
25901 unset cf_openssl_basedir
25902else
25903 { echo "$as_me:$LINENO: result: disabled" >&5
25904echo "${ECHO_T}disabled" >&6; }
25905fi
25906
25907save_CPPFLAGS="$CPPFLAGS"
033be687 25908CPPFLAGS="$CPPFLAGS $SSL_CFLAGS"
b57f37fb
WP
25909save_LIBS="$LIBS"
25910LIBS="$LIBS $SSL_LIBS"
25911if test "$cf_enable_openssl" != no; then
25912 { echo "$as_me:$LINENO: checking for OpenSSL 0.9.7 or above" >&5
25913echo $ECHO_N "checking for OpenSSL 0.9.7 or above... $ECHO_C" >&6; }
25914 if test "$cross_compiling" = yes; then
25915 cf_enable_openssl=no
25916else
25917 cat >conftest.$ac_ext <<_ACEOF
25918/* confdefs.h. */
25919_ACEOF
25920cat confdefs.h >>conftest.$ac_ext
25921cat >>conftest.$ac_ext <<_ACEOF
25922/* end confdefs.h. */
25923#include <openssl/opensslv.h>
25924 #include <stdlib.h>
25925int
25926main ()
25927{
25928if (OPENSSL_VERSION_NUMBER >= 0x00907000)
25929 exit(0); else exit(1);
25930 ;
25931 return 0;
25932}
25933_ACEOF
25934rm -f conftest$ac_exeext
25935if { (ac_try="$ac_link"
25936case "(($ac_try" in
25937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25938 *) ac_try_echo=$ac_try;;
25939esac
25940eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25941 (eval "$ac_link") 2>&5
25942 ac_status=$?
25943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25944 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25945 { (case "(($ac_try" in
25946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25947 *) ac_try_echo=$ac_try;;
25948esac
25949eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25950 (eval "$ac_try") 2>&5
25951 ac_status=$?
25952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25953 (exit $ac_status); }; }; then
25954 cf_enable_openssl=yes
25955else
25956 echo "$as_me: program exited with status $ac_status" >&5
25957echo "$as_me: failed program was:" >&5
25958sed 's/^/| /' conftest.$ac_ext >&5
25959
25960( exit $ac_status )
25961cf_enable_openssl=no
25962fi
25963rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25964fi
25965
25966
25967
25968 if test "$cf_enable_openssl" != no; then
25969 { echo "$as_me:$LINENO: result: found" >&5
25970echo "${ECHO_T}found" >&6; }
25971 else
25972 { echo "$as_me:$LINENO: result: no - OpenSSL support disabled" >&5
25973echo "${ECHO_T}no - OpenSSL support disabled" >&6; }
25974 fi
25975
25976fi
25977
25978
25979if test "$cf_enable_openssl" != no; then
25980 CPPFLAGS="$CPPFLAGS $SSL_LIBS"
25981 { echo "$as_me:$LINENO: checking for RAND_status in -lcrypto" >&5
25982echo $ECHO_N "checking for RAND_status in -lcrypto... $ECHO_C" >&6; }
25983if test "${ac_cv_lib_crypto_RAND_status+set}" = set; then
25984 echo $ECHO_N "(cached) $ECHO_C" >&6
25985else
25986 ac_check_lib_save_LIBS=$LIBS
25987LIBS="-lcrypto $LIBS"
25988cat >conftest.$ac_ext <<_ACEOF
25989/* confdefs.h. */
25990_ACEOF
25991cat confdefs.h >>conftest.$ac_ext
25992cat >>conftest.$ac_ext <<_ACEOF
25993/* end confdefs.h. */
25994
25995/* Override any GCC internal prototype to avoid an error.
25996 Use char because int might match the return type of a GCC
25997 builtin and then its argument prototype would still apply. */
25998#ifdef __cplusplus
25999extern "C"
26000#endif
26001char RAND_status ();
26002int
26003main ()
26004{
26005return RAND_status ();
26006 ;
26007 return 0;
26008}
26009_ACEOF
26010rm -f conftest.$ac_objext conftest$ac_exeext
26011if { (ac_try="$ac_link"
26012case "(($ac_try" in
26013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26014 *) ac_try_echo=$ac_try;;
26015esac
26016eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26017 (eval "$ac_link") 2>conftest.er1
26018 ac_status=$?
26019 grep -v '^ *+' conftest.er1 >conftest.err
26020 rm -f conftest.er1
26021 cat conftest.err >&5
26022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26023 (exit $ac_status); } && {
26024 test -z "$ac_c_werror_flag" ||
26025 test ! -s conftest.err
26026 } && test -s conftest$ac_exeext &&
26027 $as_test_x conftest$ac_exeext; then
26028 ac_cv_lib_crypto_RAND_status=yes
26029else
26030 echo "$as_me: failed program was:" >&5
26031sed 's/^/| /' conftest.$ac_ext >&5
26032
26033 ac_cv_lib_crypto_RAND_status=no
26034fi
26035
26036rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26037 conftest$ac_exeext conftest.$ac_ext
26038LIBS=$ac_check_lib_save_LIBS
26039fi
26040{ echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_RAND_status" >&5
26041echo "${ECHO_T}$ac_cv_lib_crypto_RAND_status" >&6; }
26042if test $ac_cv_lib_crypto_RAND_status = yes; then
26043 cf_enable_openssl=yes
26044else
26045 cf_enable_openssl=no
26046fi
26047
26048fi
26049
26050
26051if test "$cf_enable_openssl" != no; then
26052 CPPFLAGS="$CPPFLAGS $SSL_LIBS"
26053 { echo "$as_me:$LINENO: checking for SSL_read in -lssl" >&5
26054echo $ECHO_N "checking for SSL_read in -lssl... $ECHO_C" >&6; }
26055if test "${ac_cv_lib_ssl_SSL_read+set}" = set; then
26056 echo $ECHO_N "(cached) $ECHO_C" >&6
26057else
26058 ac_check_lib_save_LIBS=$LIBS
26059LIBS="-lssl -lcrypto $LIBS"
26060cat >conftest.$ac_ext <<_ACEOF
26061/* confdefs.h. */
26062_ACEOF
26063cat confdefs.h >>conftest.$ac_ext
26064cat >>conftest.$ac_ext <<_ACEOF
26065/* end confdefs.h. */
26066
26067/* Override any GCC internal prototype to avoid an error.
26068 Use char because int might match the return type of a GCC
26069 builtin and then its argument prototype would still apply. */
26070#ifdef __cplusplus
26071extern "C"
26072#endif
26073char SSL_read ();
26074int
26075main ()
26076{
26077return SSL_read ();
26078 ;
26079 return 0;
26080}
26081_ACEOF
26082rm -f conftest.$ac_objext conftest$ac_exeext
26083if { (ac_try="$ac_link"
26084case "(($ac_try" in
26085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26086 *) ac_try_echo=$ac_try;;
26087esac
26088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26089 (eval "$ac_link") 2>conftest.er1
26090 ac_status=$?
26091 grep -v '^ *+' conftest.er1 >conftest.err
26092 rm -f conftest.er1
26093 cat conftest.err >&5
26094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26095 (exit $ac_status); } && {
26096 test -z "$ac_c_werror_flag" ||
26097 test ! -s conftest.err
26098 } && test -s conftest$ac_exeext &&
26099 $as_test_x conftest$ac_exeext; then
26100 ac_cv_lib_ssl_SSL_read=yes
26101else
26102 echo "$as_me: failed program was:" >&5
26103sed 's/^/| /' conftest.$ac_ext >&5
26104
26105 ac_cv_lib_ssl_SSL_read=no
26106fi
26107
26108rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26109 conftest$ac_exeext conftest.$ac_ext
26110LIBS=$ac_check_lib_save_LIBS
26111fi
26112{ echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_read" >&5
26113echo "${ECHO_T}$ac_cv_lib_ssl_SSL_read" >&6; }
26114if test $ac_cv_lib_ssl_SSL_read = yes; then
26115 SSL_LIBS="-lssl -lcrypto"
26116else
26117 cf_enable_openssl=no
26118fi
26119
26120fi
26121
033be687
VY
26122
26123
26124{ echo "$as_me:$LINENO: checking for GnuTLS" >&5
26125echo $ECHO_N "checking for GnuTLS... $ECHO_C" >&6; }
26126# Check whether --enable-gnutls was given.
26127if test "${enable_gnutls+set}" = set; then
26128 enableval=$enable_gnutls; cf_enable_gnutls=$enableval
26129else
26130 cf_enable_gnutls="auto"
26131fi
26132
26133
26134if test "$cf_enable_gnutls" != no; then
26135
26136
26137if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
26138 if test -n "$ac_tool_prefix"; then
26139 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
26140set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
26141{ echo "$as_me:$LINENO: checking for $ac_word" >&5
26142echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26143if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
26144 echo $ECHO_N "(cached) $ECHO_C" >&6
26145else
26146 case $PKG_CONFIG in
26147 [\\/]* | ?:[\\/]*)
26148 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
26149 ;;
26150 *)
26151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26152for as_dir in $PATH
26153do
26154 IFS=$as_save_IFS
26155 test -z "$as_dir" && as_dir=.
26156 for ac_exec_ext in '' $ac_executable_extensions; do
26157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26158 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
26159 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26160 break 2
26161 fi
26162done
26163done
26164IFS=$as_save_IFS
26165
26166 ;;
26167esac
26168fi
26169PKG_CONFIG=$ac_cv_path_PKG_CONFIG
26170if test -n "$PKG_CONFIG"; then
26171 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
26172echo "${ECHO_T}$PKG_CONFIG" >&6; }
26173else
26174 { echo "$as_me:$LINENO: result: no" >&5
26175echo "${ECHO_T}no" >&6; }
26176fi
26177
26178
26179fi
26180if test -z "$ac_cv_path_PKG_CONFIG"; then
26181 ac_pt_PKG_CONFIG=$PKG_CONFIG
26182 # Extract the first word of "pkg-config", so it can be a program name with args.
26183set dummy pkg-config; ac_word=$2
26184{ echo "$as_me:$LINENO: checking for $ac_word" >&5
26185echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26186if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
26187 echo $ECHO_N "(cached) $ECHO_C" >&6
26188else
26189 case $ac_pt_PKG_CONFIG in
26190 [\\/]* | ?:[\\/]*)
26191 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
26192 ;;
26193 *)
26194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26195for as_dir in $PATH
26196do
26197 IFS=$as_save_IFS
26198 test -z "$as_dir" && as_dir=.
26199 for ac_exec_ext in '' $ac_executable_extensions; do
26200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26201 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
26202 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26203 break 2
26204 fi
26205done
26206done
26207IFS=$as_save_IFS
26208
26209 ;;
26210esac
26211fi
26212ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
26213if test -n "$ac_pt_PKG_CONFIG"; then
26214 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
26215echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
26216else
26217 { echo "$as_me:$LINENO: result: no" >&5
26218echo "${ECHO_T}no" >&6; }
26219fi
26220
26221 if test "x$ac_pt_PKG_CONFIG" = x; then
26222 PKG_CONFIG=""
26223 else
26224 case $cross_compiling:$ac_tool_warned in
26225yes:)
26226{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
26227whose name does not start with the host triplet. If you think this
26228configuration is useful to you, please write to autoconf@gnu.org." >&5
26229echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
26230whose name does not start with the host triplet. If you think this
26231configuration is useful to you, please write to autoconf@gnu.org." >&2;}
26232ac_tool_warned=yes ;;
26233esac
26234 PKG_CONFIG=$ac_pt_PKG_CONFIG
26235 fi
26236else
26237 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
26238fi
26239
26240fi
26241if test -n "$PKG_CONFIG"; then
26242 _pkg_min_version=0.9.0
26243 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
26244echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
26245 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
26246 { echo "$as_me:$LINENO: result: yes" >&5
26247echo "${ECHO_T}yes" >&6; }
26248 else
26249 { echo "$as_me:$LINENO: result: no" >&5
26250echo "${ECHO_T}no" >&6; }
26251 PKG_CONFIG=""
26252 fi
26253
26254fi
26255
26256pkg_failed=no
26257{ echo "$as_me:$LINENO: checking for GNUTLS" >&5
26258echo $ECHO_N "checking for GNUTLS... $ECHO_C" >&6; }
26259
26260if test -n "$PKG_CONFIG"; then
26261 if test -n "$GNUTLS_CFLAGS"; then
26262 pkg_cv_GNUTLS_CFLAGS="$GNUTLS_CFLAGS"
26263 else
26264 if test -n "$PKG_CONFIG" && \
26265 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnutls\"") >&5
26266 ($PKG_CONFIG --exists --print-errors "gnutls") 2>&5
26267 ac_status=$?
26268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26269 (exit $ac_status); }; then
26270 pkg_cv_GNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls" 2>/dev/null`
26271else
26272 pkg_failed=yes
26273fi
26274 fi
26275else
26276 pkg_failed=untried
26277fi
26278if test -n "$PKG_CONFIG"; then
26279 if test -n "$GNUTLS_LIBS"; then
26280 pkg_cv_GNUTLS_LIBS="$GNUTLS_LIBS"
26281 else
26282 if test -n "$PKG_CONFIG" && \
26283 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnutls\"") >&5
26284 ($PKG_CONFIG --exists --print-errors "gnutls") 2>&5
26285 ac_status=$?
26286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26287 (exit $ac_status); }; then
26288 pkg_cv_GNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls" 2>/dev/null`
26289else
26290 pkg_failed=yes
26291fi
26292 fi
26293else
26294 pkg_failed=untried
26295fi
26296
26297
26298
26299if test $pkg_failed = yes; then
26300
26301if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26302 _pkg_short_errors_supported=yes
26303else
26304 _pkg_short_errors_supported=no
26305fi
26306 if test $_pkg_short_errors_supported = yes; then
26307 GNUTLS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gnutls"`
26308 else
26309 GNUTLS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls"`
26310 fi
26311 # Put the nasty error message in config.log where it belongs
26312 echo "$GNUTLS_PKG_ERRORS" >&5
26313
26314 { echo "$as_me:$LINENO: result: no" >&5
26315echo "${ECHO_T}no" >&6; }
26316 cf_enable_gnutls="no"
26317elif test $pkg_failed = untried; then
26318 cf_enable_gnutls="no"
26319else
26320 GNUTLS_CFLAGS=$pkg_cv_GNUTLS_CFLAGS
26321 GNUTLS_LIBS=$pkg_cv_GNUTLS_LIBS
26322 { echo "$as_me:$LINENO: result: yes" >&5
26323echo "${ECHO_T}yes" >&6; }
26324
26325 cf_enable_gnutls="yes"
26326
26327fi
26328fi
26329
26330if test "$cf_enable_gnutls" = "auto" -a "$cf_enable_openssl" = "yes"; then
26331 cf_enable_gnutls="no"
26332fi
26333
26334if test x"$cf_enable_openssl" != xno; then
b57f37fb
WP
26335
26336cat >>confdefs.h <<\_ACEOF
26337#define HAVE_OPENSSL 1
26338_ACEOF
26339
033be687
VY
26340 GNUTLS_CFLAGS=""
26341 GNUTLS_LIBS=""
26342 SSL_TYPE="openssl"
26343elif test x"$cf_enable_gnutls" != xno; then
26344
26345cat >>confdefs.h <<\_ACEOF
26346#define HAVE_GNUTLS 1
26347_ACEOF
26348
26349 SSL_LIBS=""
26350 SSL_CFLAGS=""
26351 SSL_TYPE="gnutls"
b57f37fb
WP
26352fi
26353
26354
033be687
VY
26355
26356
b57f37fb
WP
26357CPPFLAGS="$save_CPPFLAGS"
26358LIBS="$save_LIBS"
26359
26360
26361
26362
26363
26364
26365# Check whether --enable-assert was given.
26366if test "${enable_assert+set}" = set; then
26367 enableval=$enable_assert; assert=$enableval
26368else
26369 assert=no
26370fi
26371
26372
26373if test "$assert" = no; then
26374
26375cat >>confdefs.h <<\_ACEOF
26376#define NDEBUG 1
26377_ACEOF
26378
26379elif test "$assert" = soft; then
26380
26381cat >>confdefs.h <<\_ACEOF
26382#define SOFT_ASSERT 1
26383_ACEOF
26384
26385
26386cat >>confdefs.h <<\_ACEOF
26387#define NDEBUG 1
26388_ACEOF
26389
26390elif test "$assert" = yes; then
26391 assert = "hard";
26392fi
26393
26394{ echo "$as_me:$LINENO: checking if you want to do a profile build" >&5
26395echo $ECHO_N "checking if you want to do a profile build... $ECHO_C" >&6; }
26396# Check whether --enable-profile was given.
26397if test "${enable_profile+set}" = set; then
26398 enableval=$enable_profile; profile=$enableval
26399else
26400 profile=no
26401fi
26402
26403
26404if test "$profile" = yes; then
26405 if test "$ac_cv_c_compiler_gnu" = yes; then
26406 CFLAGS="$CFLAGS -pg -static"
26407 { echo "$as_me:$LINENO: result: yes, adding -pg -static" >&5
26408echo "${ECHO_T}yes, adding -pg -static" >&6; }
26409
26410cat >>confdefs.h <<\_ACEOF
26411#define RATBOX_PROFILE 1
26412_ACEOF
26413
26414 else
26415 { echo "$as_me:$LINENO: result: no, profile builds only work with gcc" >&5
26416echo "${ECHO_T}no, profile builds only work with gcc" >&6; }
26417 fi
26418else
26419 { echo "$as_me:$LINENO: result: no" >&5
26420echo "${ECHO_T}no" >&6; }
26421fi
26422
26423# Check whether --enable-balloc was given.
26424if test "${enable_balloc+set}" = set; then
26425 enableval=$enable_balloc; balloc=$enableval
26426else
26427 balloc=yes
26428fi
26429
26430
26431if test "$balloc" = no; then
26432
26433cat >>confdefs.h <<\_ACEOF
26434#define NOBALLOC 1
26435_ACEOF
26436
26437fi
26438
26439# Check whether --enable-warnings was given.
26440if test "${enable_warnings+set}" = set; then
26441 enableval=$enable_warnings; CFLAGS="$CFLAGS -Wall -Werror -Wcast-qual -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wshadow -Wwrite-strings -W -Wno-unused -Wunused-function -Wunused-variable"
26442fi
26443
26444
26445
26446
26447
26448
26449
26450
26451
26452
033be687 26453
b57f37fb
WP
26454if test "$prefix" = "NONE"; then
26455
26456cat >>confdefs.h <<_ACEOF
26457#define RB_PREFIX "$ac_default_prefix"
26458_ACEOF
26459
26460
26461else
26462
26463
26464 prefix=`echo $prefix | sed 's/\/$//'`
26465
26466cat >>confdefs.h <<_ACEOF
26467#define RB_PREFIX "$prefix"
26468_ACEOF
26469
26470
26471fi
26472
26473
26474
26475for dtype in uint64_t uint32_t uint16_t uint8_t int64_t int32_t int16_t int8_t intmax_t intptr_t uintmax_t uintptr_t
26476do
26477 var="\$ac_cv_c_${dtype}"
26478 t_type=$(eval echo $var);
26479 if test "x$t_type" = "xyes"; then
26480 eval rb_$dtype="\"$dtype\""
26481 else
26482 eval rb_$dtype="\"$t_type\""
26483 fi
26484done
26485
26486ac_config_commands="$ac_config_commands include/librb-config.h"
26487
26488
033be687 26489
eb66895a 26490ac_config_files="$ac_config_files src/Makefile Makefile libratbox.pc"
b57f37fb
WP
26491
26492
26493cat >confcache <<\_ACEOF
26494# This file is a shell script that caches the results of configure
26495# tests run on this system so they can be shared between configure
26496# scripts and configure runs, see configure's option --config-cache.
26497# It is not useful on other systems. If it contains results you don't
26498# want to keep, you may remove or edit it.
26499#
26500# config.status only pays attention to the cache file if you give it
26501# the --recheck option to rerun configure.
26502#
26503# `ac_cv_env_foo' variables (set or unset) will be overridden when
26504# loading this file, other *unset* `ac_cv_foo' will be assigned the
26505# following values.
26506
26507_ACEOF
26508
26509# The following way of writing the cache mishandles newlines in values,
26510# but we know of no workaround that is simple, portable, and efficient.
26511# So, we kill variables containing newlines.
26512# Ultrix sh set writes to stderr and can't be redirected directly,
26513# and sets the high bit in the cache file unless we assign to the vars.
26514(
26515 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26516 eval ac_val=\$$ac_var
26517 case $ac_val in #(
26518 *${as_nl}*)
26519 case $ac_var in #(
26520 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
26521echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
26522 esac
26523 case $ac_var in #(
26524 _ | IFS | as_nl) ;; #(
26525 *) $as_unset $ac_var ;;
26526 esac ;;
26527 esac
26528 done
26529
26530 (set) 2>&1 |
26531 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26532 *${as_nl}ac_space=\ *)
26533 # `set' does not quote correctly, so add quotes (double-quote
26534 # substitution turns \\\\ into \\, and sed turns \\ into \).
26535 sed -n \
26536 "s/'/'\\\\''/g;
26537 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26538 ;; #(
26539 *)
26540 # `set' quotes correctly as required by POSIX, so do not add quotes.
26541 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26542 ;;
26543 esac |
26544 sort
26545) |
26546 sed '
26547 /^ac_cv_env_/b end
26548 t clear
26549 :clear
26550 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26551 t end
26552 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26553 :end' >>confcache
26554if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26555 if test -w "$cache_file"; then
26556 test "x$cache_file" != "x/dev/null" &&
26557 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
26558echo "$as_me: updating cache $cache_file" >&6;}
26559 cat confcache >$cache_file
26560 else
26561 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
26562echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26563 fi
26564fi
26565rm -f confcache
26566
26567test "x$prefix" = xNONE && prefix=$ac_default_prefix
26568# Let make expand exec_prefix.
26569test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26570
26571DEFS=-DHAVE_CONFIG_H
26572
26573ac_libobjs=
26574ac_ltlibobjs=
26575for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26576 # 1. Remove the extension, and $U if already installed.
26577 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26578 ac_i=`echo "$ac_i" | sed "$ac_script"`
26579 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26580 # will be set to the directory where LIBOBJS objects are built.
26581 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26582 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
26583done
26584LIBOBJS=$ac_libobjs
26585
26586LTLIBOBJS=$ac_ltlibobjs
26587
26588
26589if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
26590 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
26591Usually this means the macro was only invoked conditionally." >&5
26592echo "$as_me: error: conditional \"AMDEP\" was never defined.
26593Usually this means the macro was only invoked conditionally." >&2;}
26594 { (exit 1); exit 1; }; }
26595fi
26596if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26597 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
26598Usually this means the macro was only invoked conditionally." >&5
26599echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
26600Usually this means the macro was only invoked conditionally." >&2;}
26601 { (exit 1); exit 1; }; }
26602fi
26603if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
26604 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
26605Usually this means the macro was only invoked conditionally." >&5
26606echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
26607Usually this means the macro was only invoked conditionally." >&2;}
26608 { (exit 1); exit 1; }; }
26609fi
26610if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
26611 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
26612Usually this means the macro was only invoked conditionally." >&5
26613echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
26614Usually this means the macro was only invoked conditionally." >&2;}
26615 { (exit 1); exit 1; }; }
26616fi
26617if test -z "${MINGW_TRUE}" && test -z "${MINGW_FALSE}"; then
26618 { { echo "$as_me:$LINENO: error: conditional \"MINGW\" was never defined.
26619Usually this means the macro was only invoked conditionally." >&5
26620echo "$as_me: error: conditional \"MINGW\" was never defined.
26621Usually this means the macro was only invoked conditionally." >&2;}
26622 { (exit 1); exit 1; }; }
26623fi
26624if test -z "${NEED_CRYPT_TRUE}" && test -z "${NEED_CRYPT_FALSE}"; then
26625 { { echo "$as_me:$LINENO: error: conditional \"NEED_CRYPT\" was never defined.
26626Usually this means the macro was only invoked conditionally." >&5
26627echo "$as_me: error: conditional \"NEED_CRYPT\" was never defined.
26628Usually this means the macro was only invoked conditionally." >&2;}
26629 { (exit 1); exit 1; }; }
26630fi
26631
26632: ${CONFIG_STATUS=./config.status}
26633ac_clean_files_save=$ac_clean_files
26634ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26635{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
26636echo "$as_me: creating $CONFIG_STATUS" >&6;}
26637cat >$CONFIG_STATUS <<_ACEOF
26638#! $SHELL
26639# Generated by $as_me.
26640# Run this file to recreate the current configuration.
26641# Compiler output produced by configure, useful for debugging
26642# configure, is in config.log if it exists.
26643
26644debug=false
26645ac_cs_recheck=false
26646ac_cs_silent=false
26647SHELL=\${CONFIG_SHELL-$SHELL}
26648_ACEOF
26649
26650cat >>$CONFIG_STATUS <<\_ACEOF
26651## --------------------- ##
26652## M4sh Initialization. ##
26653## --------------------- ##
26654
26655# Be more Bourne compatible
26656DUALCASE=1; export DUALCASE # for MKS sh
26657if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26658 emulate sh
26659 NULLCMD=:
26660 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
26661 # is contrary to our usage. Disable this feature.
26662 alias -g '${1+"$@"}'='"$@"'
26663 setopt NO_GLOB_SUBST
26664else
26665 case `(set -o) 2>/dev/null` in
26666 *posix*) set -o posix ;;
26667esac
26668
26669fi
26670
26671
26672
26673
26674# PATH needs CR
26675# Avoid depending upon Character Ranges.
26676as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26677as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26678as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26679as_cr_digits='0123456789'
26680as_cr_alnum=$as_cr_Letters$as_cr_digits
26681
26682# The user is always right.
26683if test "${PATH_SEPARATOR+set}" != set; then
26684 echo "#! /bin/sh" >conf$$.sh
26685 echo "exit 0" >>conf$$.sh
26686 chmod +x conf$$.sh
26687 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
26688 PATH_SEPARATOR=';'
26689 else
26690 PATH_SEPARATOR=:
26691 fi
26692 rm -f conf$$.sh
26693fi
26694
26695# Support unset when possible.
26696if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26697 as_unset=unset
26698else
26699 as_unset=false
26700fi
26701
26702
26703# IFS
26704# We need space, tab and new line, in precisely that order. Quoting is
26705# there to prevent editors from complaining about space-tab.
26706# (If _AS_PATH_WALK were called with IFS unset, it would disable word
26707# splitting by setting IFS to empty value.)
26708as_nl='
26709'
26710IFS=" "" $as_nl"
26711
26712# Find who we are. Look in the path if we contain no directory separator.
26713case $0 in
26714 *[\\/]* ) as_myself=$0 ;;
26715 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26716for as_dir in $PATH
26717do
26718 IFS=$as_save_IFS
26719 test -z "$as_dir" && as_dir=.
26720 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26721done
26722IFS=$as_save_IFS
26723
26724 ;;
26725esac
26726# We did not find ourselves, most probably we were run as `sh COMMAND'
26727# in which case we are not to be found in the path.
26728if test "x$as_myself" = x; then
26729 as_myself=$0
26730fi
26731if test ! -f "$as_myself"; then
26732 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26733 { (exit 1); exit 1; }
26734fi
26735
26736# Work around bugs in pre-3.0 UWIN ksh.
26737for as_var in ENV MAIL MAILPATH
26738do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26739done
26740PS1='$ '
26741PS2='> '
26742PS4='+ '
26743
26744# NLS nuisances.
26745for as_var in \
26746 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
26747 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
26748 LC_TELEPHONE LC_TIME
26749do
26750 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
26751 eval $as_var=C; export $as_var
26752 else
26753 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26754 fi
26755done
26756
26757# Required to use basename.
26758if expr a : '\(a\)' >/dev/null 2>&1 &&
26759 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26760 as_expr=expr
26761else
26762 as_expr=false
26763fi
26764
26765if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26766 as_basename=basename
26767else
26768 as_basename=false
26769fi
26770
26771
26772# Name of the executable.
26773as_me=`$as_basename -- "$0" ||
26774$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26775 X"$0" : 'X\(//\)$' \| \
26776 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26777echo X/"$0" |
26778 sed '/^.*\/\([^/][^/]*\)\/*$/{
26779 s//\1/
26780 q
26781 }
26782 /^X\/\(\/\/\)$/{
26783 s//\1/
26784 q
26785 }
26786 /^X\/\(\/\).*/{
26787 s//\1/
26788 q
26789 }
26790 s/.*/./; q'`
26791
26792# CDPATH.
26793$as_unset CDPATH
26794
26795
26796
26797 as_lineno_1=$LINENO
26798 as_lineno_2=$LINENO
26799 test "x$as_lineno_1" != "x$as_lineno_2" &&
26800 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
26801
26802 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26803 # uniformly replaced by the line number. The first 'sed' inserts a
26804 # line-number line after each line using $LINENO; the second 'sed'
26805 # does the real work. The second script uses 'N' to pair each
26806 # line-number line with the line containing $LINENO, and appends
26807 # trailing '-' during substitution so that $LINENO is not a special
26808 # case at line end.
26809 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26810 # scripts with optimization help from Paolo Bonzini. Blame Lee
26811 # E. McMahon (1931-1989) for sed's syntax. :-)
26812 sed -n '
26813 p
26814 /[$]LINENO/=
26815 ' <$as_myself |
26816 sed '
26817 s/[$]LINENO.*/&-/
26818 t lineno
26819 b
26820 :lineno
26821 N
26822 :loop
26823 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
26824 t loop
26825 s/-\n.*//
26826 ' >$as_me.lineno &&
26827 chmod +x "$as_me.lineno" ||
26828 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
26829 { (exit 1); exit 1; }; }
26830
26831 # Don't try to exec as it changes $[0], causing all sort of problems
26832 # (the dirname of $[0] is not the place where we might find the
26833 # original and so on. Autoconf is especially sensitive to this).
26834 . "./$as_me.lineno"
26835 # Exit status is that of the last command.
26836 exit
26837}
26838
26839
26840if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26841 as_dirname=dirname
26842else
26843 as_dirname=false
26844fi
26845
26846ECHO_C= ECHO_N= ECHO_T=
26847case `echo -n x` in
26848-n*)
26849 case `echo 'x\c'` in
26850 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
26851 *) ECHO_C='\c';;
26852 esac;;
26853*)
26854 ECHO_N='-n';;
26855esac
26856
26857if expr a : '\(a\)' >/dev/null 2>&1 &&
26858 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26859 as_expr=expr
26860else
26861 as_expr=false
26862fi
26863
26864rm -f conf$$ conf$$.exe conf$$.file
26865if test -d conf$$.dir; then
26866 rm -f conf$$.dir/conf$$.file
26867else
26868 rm -f conf$$.dir
26869 mkdir conf$$.dir
26870fi
26871echo >conf$$.file
26872if ln -s conf$$.file conf$$ 2>/dev/null; then
26873 as_ln_s='ln -s'
26874 # ... but there are two gotchas:
26875 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26876 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26877 # In both cases, we have to default to `cp -p'.
26878 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26879 as_ln_s='cp -p'
26880elif ln conf$$.file conf$$ 2>/dev/null; then
26881 as_ln_s=ln
26882else
26883 as_ln_s='cp -p'
26884fi
26885rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26886rmdir conf$$.dir 2>/dev/null
26887
26888if mkdir -p . 2>/dev/null; then
26889 as_mkdir_p=:
26890else
26891 test -d ./-p && rmdir ./-p
26892 as_mkdir_p=false
26893fi
26894
26895if test -x / >/dev/null 2>&1; then
26896 as_test_x='test -x'
26897else
26898 if ls -dL / >/dev/null 2>&1; then
26899 as_ls_L_option=L
26900 else
26901 as_ls_L_option=
26902 fi
26903 as_test_x='
26904 eval sh -c '\''
26905 if test -d "$1"; then
26906 test -d "$1/.";
26907 else
26908 case $1 in
26909 -*)set "./$1";;
26910 esac;
26911 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
26912 ???[sx]*):;;*)false;;esac;fi
26913 '\'' sh
26914 '
26915fi
26916as_executable_p=$as_test_x
26917
26918# Sed expression to map a string onto a valid CPP name.
26919as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26920
26921# Sed expression to map a string onto a valid variable name.
26922as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26923
26924
26925exec 6>&1
26926
26927# Save the log message, to keep $[0] and so on meaningful, and to
26928# report actual input values of CONFIG_FILES etc. instead of their
26929# values after options handling.
26930ac_log="
26931This file was extended by libratbox $as_me devel, which was
26932generated by GNU Autoconf 2.61. Invocation command line was
26933
26934 CONFIG_FILES = $CONFIG_FILES
26935 CONFIG_HEADERS = $CONFIG_HEADERS
26936 CONFIG_LINKS = $CONFIG_LINKS
26937 CONFIG_COMMANDS = $CONFIG_COMMANDS
26938 $ $0 $@
26939
26940on `(hostname || uname -n) 2>/dev/null | sed 1q`
26941"
26942
26943_ACEOF
26944
26945cat >>$CONFIG_STATUS <<_ACEOF
26946# Files that config.status was made for.
26947config_files="$ac_config_files"
26948config_headers="$ac_config_headers"
26949config_commands="$ac_config_commands"
26950
26951_ACEOF
26952
26953cat >>$CONFIG_STATUS <<\_ACEOF
26954ac_cs_usage="\
26955\`$as_me' instantiates files from templates according to the
26956current configuration.
26957
26958Usage: $0 [OPTIONS] [FILE]...
26959
26960 -h, --help print this help, then exit
26961 -V, --version print version number and configuration settings, then exit
26962 -q, --quiet do not print progress messages
26963 -d, --debug don't remove temporary files
26964 --recheck update $as_me by reconfiguring in the same conditions
26965 --file=FILE[:TEMPLATE]
26966 instantiate the configuration file FILE
26967 --header=FILE[:TEMPLATE]
26968 instantiate the configuration header FILE
26969
26970Configuration files:
26971$config_files
26972
26973Configuration headers:
26974$config_headers
26975
26976Configuration commands:
26977$config_commands
26978
26979Report bugs to <bug-autoconf@gnu.org>."
26980
26981_ACEOF
26982cat >>$CONFIG_STATUS <<_ACEOF
26983ac_cs_version="\\
26984libratbox config.status devel
26985configured by $0, generated by GNU Autoconf 2.61,
26986 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26987
26988Copyright (C) 2006 Free Software Foundation, Inc.
26989This config.status script is free software; the Free Software Foundation
26990gives unlimited permission to copy, distribute and modify it."
26991
26992ac_pwd='$ac_pwd'
26993srcdir='$srcdir'
26994INSTALL='$INSTALL'
26995MKDIR_P='$MKDIR_P'
26996_ACEOF
26997
26998cat >>$CONFIG_STATUS <<\_ACEOF
26999# If no file are specified by the user, then we need to provide default
27000# value. By we need to know if files were specified by the user.
27001ac_need_defaults=:
27002while test $# != 0
27003do
27004 case $1 in
27005 --*=*)
27006 ac_option=`expr "X$1" : 'X\([^=]*\)='`
27007 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27008 ac_shift=:
27009 ;;
27010 *)
27011 ac_option=$1
27012 ac_optarg=$2
27013 ac_shift=shift
27014 ;;
27015 esac
27016
27017 case $ac_option in
27018 # Handling of the options.
27019 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27020 ac_cs_recheck=: ;;
27021 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27022 echo "$ac_cs_version"; exit ;;
27023 --debug | --debu | --deb | --de | --d | -d )
27024 debug=: ;;
27025 --file | --fil | --fi | --f )
27026 $ac_shift
27027 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
27028 ac_need_defaults=false;;
27029 --header | --heade | --head | --hea )
27030 $ac_shift
27031 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
27032 ac_need_defaults=false;;
27033 --he | --h)
27034 # Conflict between --help and --header
27035 { echo "$as_me: error: ambiguous option: $1
27036Try \`$0 --help' for more information." >&2
27037 { (exit 1); exit 1; }; };;
27038 --help | --hel | -h )
27039 echo "$ac_cs_usage"; exit ;;
27040 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27041 | -silent | --silent | --silen | --sile | --sil | --si | --s)
27042 ac_cs_silent=: ;;
27043
27044 # This is an error.
27045 -*) { echo "$as_me: error: unrecognized option: $1
27046Try \`$0 --help' for more information." >&2
27047 { (exit 1); exit 1; }; } ;;
27048
27049 *) ac_config_targets="$ac_config_targets $1"
27050 ac_need_defaults=false ;;
27051
27052 esac
27053 shift
27054done
27055
27056ac_configure_extra_args=
27057
27058if $ac_cs_silent; then
27059 exec 6>/dev/null
27060 ac_configure_extra_args="$ac_configure_extra_args --silent"
27061fi
27062
27063_ACEOF
27064cat >>$CONFIG_STATUS <<_ACEOF
27065if \$ac_cs_recheck; then
27066 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
27067 CONFIG_SHELL=$SHELL
27068 export CONFIG_SHELL
27069 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27070fi
27071
27072_ACEOF
27073cat >>$CONFIG_STATUS <<\_ACEOF
27074exec 5>>config.log
27075{
27076 echo
27077 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27078## Running $as_me. ##
27079_ASBOX
27080 echo "$ac_log"
27081} >&5
27082
27083_ACEOF
27084cat >>$CONFIG_STATUS <<_ACEOF
27085#
27086# INIT-COMMANDS
27087#
27088AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
27089
27090 rb_uint64_t="$rb_uint64_t"
27091 rb_uint32_t="$rb_uint32_t"
27092 rb_uint16_t="$rb_uint16_t"
27093 rb_uint8_t="$rb_uint8_t"
27094 rb_int64_t="$rb_int64_t"
27095 rb_int32_t="$rb_int32_t"
27096 rb_int16_t="$rb_int16_t"
27097 rb_int8_t="$rb_int8_t"
27098 rb_intmax_t="$rb_intmax_t"
27099 rb_intptr_t="$rb_intptr_t"
27100 rb_uintmax_t="$rb_uintmax_t"
27101 rb_uintptr_t="$rb_uintptr_t"
27102 if test x$ac_cv_header_stdc = xyes; then
27103 rb_header_stdc=yes
27104 fi
27105 if test x$ac_cv_header_stdlib_h = xyes; then
27106 rb_header_stdlib_h=yes
27107 fi
27108 if test x$ac_cv_header_string_h = xyes; then
27109 rb_header_string_h=yes
27110 fi
27111 if test x$ac_cv_header_memory_h = xyes; then
27112 rb_header_memory_h=yes
27113 fi
27114 if test "x${ac_cv_working_alloca_h+set}" = xset ; then
27115 rb_alloca_h="$ac_cv_working_alloca_h"
27116 else
27117 rb_alloc_h="$ac_cv_header_alloca_h"
27118 fi
27119 if test x$ac_cv_member_struct_sockaddr_sa_len = xyes; then
27120 rb_sockaddr_sa_len=yes
27121 fi
27122 if test x$ac_cv_header_sys_socket_h = xyes; then
27123 rb_sys_socket_h=yes
27124 fi
27125 if test x$ac_cv_header_sys_types_h = xyes; then
27126 rb_sys_types_h=yes
27127 fi
27128 if test x$ac_cv_header_sys_stat_h = xyes; then
27129 rb_sys_stat_h=yes
27130 fi
27131 if test x$ac_cv_header_sys_time_h = xyes; then
27132 rb_sys_time_h=yes
27133 fi
27134 if test x$ac_cv_header_time = xyes; then
27135 rb_time_h=yes
27136 fi
27137
27138 if test x$ac_cv_header_stdint_h = xyes; then
27139 rb_stdint_h=yes
27140 fi
27141 if test x$ac_cv_header_inttypes_h = xyes; then
27142 rb_inttypes_h=yes
27143 fi
27144 if test x$ac_cv_header_netinet_in_h = xyes; then
27145 rb_netinet_in_h=yes
27146 fi
27147
27148 if test x$ac_cv_header_crypt_h = xyes; then
27149 rb_crypt_h=yes
27150 fi
27151 if test x$ac_cv_header_errno_h = xyes; then
27152 rb_errno_h=yes
27153 fi
27154 if test x$ac_cv_header_unistd_h = xyes; then
27155 rb_unistd_h=yes
27156 fi
27157 if test x$ac_cv_header_windows_h = xyes; then
27158 rb_windows_h=yes
27159 fi
27160 if test x$ac_cv_header_winsock2_h = xyes; then
27161 rb_winsock2_h=yes
27162 fi
27163 if test x$ac_cv_type_socklen_t = xyes; then
27164 rb_socklen_t="socklen_t"
27165 else
27166 rb_socklen_t="unsigned int"
27167 fi
27168 if test "x$rb_have_sockaddr_storage" = "xyes"; then
27169 rb_sockaddr_storage="yes"
27170 else
27171 rb_sockaddr_storage="no"
27172 fi
27173
27174 rb_have_ipv6="$have_v6"
27175
27176 rb_mv="$MV"
27177 rb_rm="$RM"
27178
27179
27180
27181
27182
27183
27184_ACEOF
27185
27186cat >>$CONFIG_STATUS <<\_ACEOF
27187
27188# Handling of arguments.
27189for ac_config_target in $ac_config_targets
27190do
27191 case $ac_config_target in
27192 "include/libratbox_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/libratbox_config.h" ;;
27193 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
27194 "include/librb-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/librb-config.h" ;;
27195 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
27196 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
eb66895a 27197 "libratbox.pc") CONFIG_FILES="$CONFIG_FILES libratbox.pc" ;;
b57f37fb
WP
27198
27199 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
27200echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
27201 { (exit 1); exit 1; }; };;
27202 esac
27203done
27204
27205
27206# If the user did not use the arguments to specify the items to instantiate,
27207# then the envvar interface is used. Set only those that are not.
27208# We use the long form for the default assignment because of an extremely
27209# bizarre bug on SunOS 4.1.3.
27210if $ac_need_defaults; then
27211 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27212 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27213 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27214fi
27215
27216# Have a temporary directory for convenience. Make it in the build tree
27217# simply because there is no reason against having it here, and in addition,
27218# creating and moving files from /tmp can sometimes cause problems.
27219# Hook for its removal unless debugging.
27220# Note that there is a small window in which the directory will not be cleaned:
27221# after its creation but before its name has been assigned to `$tmp'.
27222$debug ||
27223{
27224 tmp=
27225 trap 'exit_status=$?
27226 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27227' 0
27228 trap '{ (exit 1); exit 1; }' 1 2 13 15
27229}
27230# Create a (secure) tmp directory for tmp files.
27231
27232{
27233 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27234 test -n "$tmp" && test -d "$tmp"
27235} ||
27236{
27237 tmp=./conf$$-$RANDOM
27238 (umask 077 && mkdir "$tmp")
27239} ||
27240{
27241 echo "$me: cannot create a temporary directory in ." >&2
27242 { (exit 1); exit 1; }
27243}
27244
27245#
27246# Set up the sed scripts for CONFIG_FILES section.
27247#
27248
27249# No need to generate the scripts if there are no CONFIG_FILES.
27250# This happens for instance when ./config.status config.h
27251if test -n "$CONFIG_FILES"; then
27252
27253_ACEOF
27254
27255
27256
27257ac_delim='%!_!# '
27258for ac_last_try in false false false false false :; do
27259 cat >conf$$subs.sed <<_ACEOF
27260SHELL!$SHELL$ac_delim
27261PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
27262PACKAGE_NAME!$PACKAGE_NAME$ac_delim
27263PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
27264PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
27265PACKAGE_STRING!$PACKAGE_STRING$ac_delim
27266PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
27267exec_prefix!$exec_prefix$ac_delim
27268prefix!$prefix$ac_delim
27269program_transform_name!$program_transform_name$ac_delim
27270bindir!$bindir$ac_delim
27271sbindir!$sbindir$ac_delim
27272libexecdir!$libexecdir$ac_delim
27273datarootdir!$datarootdir$ac_delim
27274datadir!$datadir$ac_delim
27275sysconfdir!$sysconfdir$ac_delim
27276sharedstatedir!$sharedstatedir$ac_delim
27277localstatedir!$localstatedir$ac_delim
27278includedir!$includedir$ac_delim
27279oldincludedir!$oldincludedir$ac_delim
27280docdir!$docdir$ac_delim
27281infodir!$infodir$ac_delim
27282htmldir!$htmldir$ac_delim
27283dvidir!$dvidir$ac_delim
27284pdfdir!$pdfdir$ac_delim
27285psdir!$psdir$ac_delim
27286libdir!$libdir$ac_delim
27287localedir!$localedir$ac_delim
27288mandir!$mandir$ac_delim
27289DEFS!$DEFS$ac_delim
27290ECHO_C!$ECHO_C$ac_delim
27291ECHO_N!$ECHO_N$ac_delim
27292ECHO_T!$ECHO_T$ac_delim
27293LIBS!$LIBS$ac_delim
27294build_alias!$build_alias$ac_delim
27295host_alias!$host_alias$ac_delim
27296target_alias!$target_alias$ac_delim
27297INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
27298INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
27299INSTALL_DATA!$INSTALL_DATA$ac_delim
27300am__isrc!$am__isrc$ac_delim
27301CYGPATH_W!$CYGPATH_W$ac_delim
27302PACKAGE!$PACKAGE$ac_delim
27303VERSION!$VERSION$ac_delim
27304ACLOCAL!$ACLOCAL$ac_delim
27305AUTOCONF!$AUTOCONF$ac_delim
27306AUTOMAKE!$AUTOMAKE$ac_delim
27307AUTOHEADER!$AUTOHEADER$ac_delim
27308MAKEINFO!$MAKEINFO$ac_delim
27309install_sh!$install_sh$ac_delim
27310STRIP!$STRIP$ac_delim
27311INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
27312mkdir_p!$mkdir_p$ac_delim
27313AWK!$AWK$ac_delim
27314SET_MAKE!$SET_MAKE$ac_delim
27315am__leading_dot!$am__leading_dot$ac_delim
27316AMTAR!$AMTAR$ac_delim
27317am__tar!$am__tar$ac_delim
27318am__untar!$am__untar$ac_delim
27319CC!$CC$ac_delim
27320CFLAGS!$CFLAGS$ac_delim
27321LDFLAGS!$LDFLAGS$ac_delim
27322CPPFLAGS!$CPPFLAGS$ac_delim
27323ac_ct_CC!$ac_ct_CC$ac_delim
27324EXEEXT!$EXEEXT$ac_delim
27325OBJEXT!$OBJEXT$ac_delim
27326DEPDIR!$DEPDIR$ac_delim
27327am__include!$am__include$ac_delim
27328am__quote!$am__quote$ac_delim
27329AMDEP_TRUE!$AMDEP_TRUE$ac_delim
27330AMDEP_FALSE!$AMDEP_FALSE$ac_delim
27331AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
27332CCDEPMODE!$CCDEPMODE$ac_delim
27333am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
27334am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
27335GREP!$GREP$ac_delim
27336EGREP!$EGREP$ac_delim
27337SED!$SED$ac_delim
27338MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
27339MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
27340MAINT!$MAINT$ac_delim
27341AS!$AS$ac_delim
27342RM!$RM$ac_delim
27343CP!$CP$ac_delim
27344MV!$MV$ac_delim
27345LN!$LN$ac_delim
27346AR!$AR$ac_delim
27347LD!$LD$ac_delim
27348RANLIB!$RANLIB$ac_delim
27349TOUCH!$TOUCH$ac_delim
27350build!$build$ac_delim
27351build_cpu!$build_cpu$ac_delim
27352build_vendor!$build_vendor$ac_delim
27353build_os!$build_os$ac_delim
27354host!$host$ac_delim
27355host_cpu!$host_cpu$ac_delim
27356host_vendor!$host_vendor$ac_delim
27357_ACEOF
27358
27359 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
27360 break
27361 elif $ac_last_try; then
27362 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27363echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27364 { (exit 1); exit 1; }; }
27365 else
27366 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27367 fi
27368done
27369
27370ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
27371if test -n "$ac_eof"; then
27372 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
27373 ac_eof=`expr $ac_eof + 1`
27374fi
27375
27376cat >>$CONFIG_STATUS <<_ACEOF
27377cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
27378/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27379_ACEOF
27380sed '
27381s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
27382s/^/s,@/; s/!/@,|#_!!_#|/
27383:n
27384t n
27385s/'"$ac_delim"'$/,g/; t
27386s/$/\\/; p
27387N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
27388' >>$CONFIG_STATUS <conf$$subs.sed
27389rm -f conf$$subs.sed
27390cat >>$CONFIG_STATUS <<_ACEOF
27391CEOF$ac_eof
27392_ACEOF
27393
27394
27395ac_delim='%!_!# '
27396for ac_last_try in false false false false false :; do
27397 cat >conf$$subs.sed <<_ACEOF
27398host_os!$host_os$ac_delim
27399LN_S!$LN_S$ac_delim
27400ECHO!$ECHO$ac_delim
56efe974
WP
27401DSYMUTIL!$DSYMUTIL$ac_delim
27402NMEDIT!$NMEDIT$ac_delim
b57f37fb
WP
27403CPP!$CPP$ac_delim
27404CXX!$CXX$ac_delim
27405CXXFLAGS!$CXXFLAGS$ac_delim
27406ac_ct_CXX!$ac_ct_CXX$ac_delim
27407CXXDEPMODE!$CXXDEPMODE$ac_delim
27408am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
27409am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
27410CXXCPP!$CXXCPP$ac_delim
27411F77!$F77$ac_delim
27412FFLAGS!$FFLAGS$ac_delim
27413ac_ct_F77!$ac_ct_F77$ac_delim
27414LIBTOOL!$LIBTOOL$ac_delim
27415subdirs!$subdirs$ac_delim
27416MINGW_TRUE!$MINGW_TRUE$ac_delim
27417MINGW_FALSE!$MINGW_FALSE$ac_delim
27418NEED_CRYPT_TRUE!$NEED_CRYPT_TRUE$ac_delim
27419NEED_CRYPT_FALSE!$NEED_CRYPT_FALSE$ac_delim
27420CRYPT_LIB!$CRYPT_LIB$ac_delim
27421ALLOCA!$ALLOCA$ac_delim
dd910409
WP
27422PKG_CONFIG!$PKG_CONFIG$ac_delim
27423GNUTLS_CFLAGS!$GNUTLS_CFLAGS$ac_delim
27424GNUTLS_LIBS!$GNUTLS_LIBS$ac_delim
b57f37fb
WP
27425PICFLAGS!$PICFLAGS$ac_delim
27426SEDOBJ!$SEDOBJ$ac_delim
033be687 27427SSL_CFLAGS!$SSL_CFLAGS$ac_delim
b57f37fb
WP
27428SSL_LIBS!$SSL_LIBS$ac_delim
27429RB_PREFIX!$RB_PREFIX$ac_delim
27430LIBOBJS!$LIBOBJS$ac_delim
27431LTLIBOBJS!$LTLIBOBJS$ac_delim
27432_ACEOF
27433
dd910409 27434 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 34; then
b57f37fb
WP
27435 break
27436 elif $ac_last_try; then
27437 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27438echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27439 { (exit 1); exit 1; }; }
27440 else
27441 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27442 fi
27443done
27444
27445ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
27446if test -n "$ac_eof"; then
27447 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
27448 ac_eof=`expr $ac_eof + 1`
27449fi
27450
27451cat >>$CONFIG_STATUS <<_ACEOF
27452cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
27453/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
27454_ACEOF
27455sed '
27456s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
27457s/^/s,@/; s/!/@,|#_!!_#|/
27458:n
27459t n
27460s/'"$ac_delim"'$/,g/; t
27461s/$/\\/; p
27462N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
27463' >>$CONFIG_STATUS <conf$$subs.sed
27464rm -f conf$$subs.sed
27465cat >>$CONFIG_STATUS <<_ACEOF
27466:end
27467s/|#_!!_#|//g
27468CEOF$ac_eof
27469_ACEOF
27470
27471
27472# VPATH may cause trouble with some makes, so we remove $(srcdir),
27473# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27474# trailing colons and then remove the whole line if VPATH becomes empty
27475# (actually we leave an empty line to preserve line numbers).
27476if test "x$srcdir" = x.; then
27477 ac_vpsub='/^[ ]*VPATH[ ]*=/{
27478s/:*\$(srcdir):*/:/
27479s/:*\${srcdir}:*/:/
27480s/:*@srcdir@:*/:/
27481s/^\([^=]*=[ ]*\):*/\1/
27482s/:*$//
27483s/^[^=]*=[ ]*$//
27484}'
27485fi
27486
27487cat >>$CONFIG_STATUS <<\_ACEOF
27488fi # test -n "$CONFIG_FILES"
27489
27490
27491for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
27492do
27493 case $ac_tag in
27494 :[FHLC]) ac_mode=$ac_tag; continue;;
27495 esac
27496 case $ac_mode$ac_tag in
27497 :[FHL]*:*);;
27498 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
27499echo "$as_me: error: Invalid tag $ac_tag." >&2;}
27500 { (exit 1); exit 1; }; };;
27501 :[FH]-) ac_tag=-:-;;
27502 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27503 esac
27504 ac_save_IFS=$IFS
27505 IFS=:
27506 set x $ac_tag
27507 IFS=$ac_save_IFS
27508 shift
27509 ac_file=$1
27510 shift
27511
27512 case $ac_mode in
27513 :L) ac_source=$1;;
27514 :[FH])
27515 ac_file_inputs=
27516 for ac_f
27517 do
27518 case $ac_f in
27519 -) ac_f="$tmp/stdin";;
27520 *) # Look for the file first in the build tree, then in the source tree
27521 # (if the path is not absolute). The absolute path cannot be DOS-style,
27522 # because $ac_f cannot contain `:'.
27523 test -f "$ac_f" ||
27524 case $ac_f in
27525 [\\/$]*) false;;
27526 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27527 esac ||
27528 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
27529echo "$as_me: error: cannot find input file: $ac_f" >&2;}
27530 { (exit 1); exit 1; }; };;
27531 esac
27532 ac_file_inputs="$ac_file_inputs $ac_f"
27533 done
27534
27535 # Let's still pretend it is `configure' which instantiates (i.e., don't
27536 # use $as_me), people would be surprised to read:
27537 # /* config.h. Generated by config.status. */
27538 configure_input="Generated from "`IFS=:
27539 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
27540 if test x"$ac_file" != x-; then
27541 configure_input="$ac_file. $configure_input"
27542 { echo "$as_me:$LINENO: creating $ac_file" >&5
27543echo "$as_me: creating $ac_file" >&6;}
27544 fi
27545
27546 case $ac_tag in
27547 *:-:* | *:-) cat >"$tmp/stdin";;
27548 esac
27549 ;;
27550 esac
27551
27552 ac_dir=`$as_dirname -- "$ac_file" ||
27553$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27554 X"$ac_file" : 'X\(//\)[^/]' \| \
27555 X"$ac_file" : 'X\(//\)$' \| \
27556 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27557echo X"$ac_file" |
27558 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27559 s//\1/
27560 q
27561 }
27562 /^X\(\/\/\)[^/].*/{
27563 s//\1/
27564 q
27565 }
27566 /^X\(\/\/\)$/{
27567 s//\1/
27568 q
27569 }
27570 /^X\(\/\).*/{
27571 s//\1/
27572 q
27573 }
27574 s/.*/./; q'`
27575 { as_dir="$ac_dir"
27576 case $as_dir in #(
27577 -*) as_dir=./$as_dir;;
27578 esac
27579 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
27580 as_dirs=
27581 while :; do
27582 case $as_dir in #(
27583 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
27584 *) as_qdir=$as_dir;;
27585 esac
27586 as_dirs="'$as_qdir' $as_dirs"
27587 as_dir=`$as_dirname -- "$as_dir" ||
27588$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27589 X"$as_dir" : 'X\(//\)[^/]' \| \
27590 X"$as_dir" : 'X\(//\)$' \| \
27591 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27592echo X"$as_dir" |
27593 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27594 s//\1/
27595 q
27596 }
27597 /^X\(\/\/\)[^/].*/{
27598 s//\1/
27599 q
27600 }
27601 /^X\(\/\/\)$/{
27602 s//\1/
27603 q
27604 }
27605 /^X\(\/\).*/{
27606 s//\1/
27607 q
27608 }
27609 s/.*/./; q'`
27610 test -d "$as_dir" && break
27611 done
27612 test -z "$as_dirs" || eval "mkdir $as_dirs"
27613 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27614echo "$as_me: error: cannot create directory $as_dir" >&2;}
27615 { (exit 1); exit 1; }; }; }
27616 ac_builddir=.
27617
27618case "$ac_dir" in
27619.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27620*)
27621 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27622 # A ".." for each directory in $ac_dir_suffix.
27623 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
27624 case $ac_top_builddir_sub in
27625 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27626 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27627 esac ;;
27628esac
27629ac_abs_top_builddir=$ac_pwd
27630ac_abs_builddir=$ac_pwd$ac_dir_suffix
27631# for backward compatibility:
27632ac_top_builddir=$ac_top_build_prefix
27633
27634case $srcdir in
27635 .) # We are building in place.
27636 ac_srcdir=.
27637 ac_top_srcdir=$ac_top_builddir_sub
27638 ac_abs_top_srcdir=$ac_pwd ;;
27639 [\\/]* | ?:[\\/]* ) # Absolute name.
27640 ac_srcdir=$srcdir$ac_dir_suffix;
27641 ac_top_srcdir=$srcdir
27642 ac_abs_top_srcdir=$srcdir ;;
27643 *) # Relative name.
27644 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27645 ac_top_srcdir=$ac_top_build_prefix$srcdir
27646 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27647esac
27648ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27649
27650
27651 case $ac_mode in
27652 :F)
27653 #
27654 # CONFIG_FILE
27655 #
27656
27657 case $INSTALL in
27658 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
27659 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
27660 esac
27661 ac_MKDIR_P=$MKDIR_P
27662 case $MKDIR_P in
27663 [\\/$]* | ?:[\\/]* ) ;;
27664 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
27665 esac
27666_ACEOF
27667
27668cat >>$CONFIG_STATUS <<\_ACEOF
27669# If the template does not know about datarootdir, expand it.
27670# FIXME: This hack should be removed a few years after 2.60.
27671ac_datarootdir_hack=; ac_datarootdir_seen=
27672
27673case `sed -n '/datarootdir/ {
27674 p
27675 q
27676}
27677/@datadir@/p
27678/@docdir@/p
27679/@infodir@/p
27680/@localedir@/p
27681/@mandir@/p
27682' $ac_file_inputs` in
27683*datarootdir*) ac_datarootdir_seen=yes;;
27684*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
27685 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27686echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27687_ACEOF
27688cat >>$CONFIG_STATUS <<_ACEOF
27689 ac_datarootdir_hack='
27690 s&@datadir@&$datadir&g
27691 s&@docdir@&$docdir&g
27692 s&@infodir@&$infodir&g
27693 s&@localedir@&$localedir&g
27694 s&@mandir@&$mandir&g
27695 s&\\\${datarootdir}&$datarootdir&g' ;;
27696esac
27697_ACEOF
27698
27699# Neutralize VPATH when `$srcdir' = `.'.
27700# Shell code in configure.ac might set extrasub.
27701# FIXME: do we really want to maintain this feature?
27702cat >>$CONFIG_STATUS <<_ACEOF
27703 sed "$ac_vpsub
27704$extrasub
27705_ACEOF
27706cat >>$CONFIG_STATUS <<\_ACEOF
27707:t
27708/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27709s&@configure_input@&$configure_input&;t t
27710s&@top_builddir@&$ac_top_builddir_sub&;t t
27711s&@srcdir@&$ac_srcdir&;t t
27712s&@abs_srcdir@&$ac_abs_srcdir&;t t
27713s&@top_srcdir@&$ac_top_srcdir&;t t
27714s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27715s&@builddir@&$ac_builddir&;t t
27716s&@abs_builddir@&$ac_abs_builddir&;t t
27717s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27718s&@INSTALL@&$ac_INSTALL&;t t
27719s&@MKDIR_P@&$ac_MKDIR_P&;t t
27720$ac_datarootdir_hack
27721" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
27722
27723test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27724 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
27725 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
27726 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27727which seems to be undefined. Please make sure it is defined." >&5
27728echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27729which seems to be undefined. Please make sure it is defined." >&2;}
27730
27731 rm -f "$tmp/stdin"
27732 case $ac_file in
27733 -) cat "$tmp/out"; rm -f "$tmp/out";;
27734 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
27735 esac
27736 ;;
27737 :H)
27738 #
27739 # CONFIG_HEADER
27740 #
27741_ACEOF
27742
27743# Transform confdefs.h into a sed script `conftest.defines', that
27744# substitutes the proper values into config.h.in to produce config.h.
27745rm -f conftest.defines conftest.tail
27746# First, append a space to every undef/define line, to ease matching.
27747echo 's/$/ /' >conftest.defines
27748# Then, protect against being on the right side of a sed subst, or in
27749# an unquoted here document, in config.status. If some macros were
27750# called several times there might be several #defines for the same
27751# symbol, which is useless. But do not sort them, since the last
27752# AC_DEFINE must be honored.
27753ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27754# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
27755# NAME is the cpp macro being defined, VALUE is the value it is being given.
27756# PARAMS is the parameter list in the macro definition--in most cases, it's
27757# just an empty string.
27758ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
27759ac_dB='\\)[ (].*,\\1define\\2'
27760ac_dC=' '
27761ac_dD=' ,'
27762
27763uniq confdefs.h |
27764 sed -n '
27765 t rset
27766 :rset
27767 s/^[ ]*#[ ]*define[ ][ ]*//
27768 t ok
27769 d
27770 :ok
27771 s/[\\&,]/\\&/g
27772 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
27773 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
27774 ' >>conftest.defines
27775
27776# Remove the space that was appended to ease matching.
27777# Then replace #undef with comments. This is necessary, for
27778# example, in the case of _POSIX_SOURCE, which is predefined and required
27779# on some systems where configure will not decide to define it.
27780# (The regexp can be short, since the line contains either #define or #undef.)
27781echo 's/ $//
27782s,^[ #]*u.*,/* & */,' >>conftest.defines
27783
27784# Break up conftest.defines:
27785ac_max_sed_lines=50
27786
27787# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
27788# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
27789# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
27790# et cetera.
27791ac_in='$ac_file_inputs'
27792ac_out='"$tmp/out1"'
27793ac_nxt='"$tmp/out2"'
27794
27795while :
27796do
27797 # Write a here document:
27798 cat >>$CONFIG_STATUS <<_ACEOF
27799 # First, check the format of the line:
27800 cat >"\$tmp/defines.sed" <<\\CEOF
27801/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
27802/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
27803b
27804:def
27805_ACEOF
27806 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
27807 echo 'CEOF
27808 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
27809 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
27810 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
27811 grep . conftest.tail >/dev/null || break
27812 rm -f conftest.defines
27813 mv conftest.tail conftest.defines
27814done
27815rm -f conftest.defines conftest.tail
27816
27817echo "ac_result=$ac_in" >>$CONFIG_STATUS
27818cat >>$CONFIG_STATUS <<\_ACEOF
27819 if test x"$ac_file" != x-; then
27820 echo "/* $configure_input */" >"$tmp/config.h"
27821 cat "$ac_result" >>"$tmp/config.h"
27822 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
27823 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27824echo "$as_me: $ac_file is unchanged" >&6;}
27825 else
27826 rm -f $ac_file
27827 mv "$tmp/config.h" $ac_file
27828 fi
27829 else
27830 echo "/* $configure_input */"
27831 cat "$ac_result"
27832 fi
27833 rm -f "$tmp/out12"
27834# Compute $ac_file's index in $config_headers.
56efe974 27835_am_arg=$ac_file
b57f37fb
WP
27836_am_stamp_count=1
27837for _am_header in $config_headers :; do
27838 case $_am_header in
56efe974 27839 $_am_arg | $_am_arg:* )
b57f37fb
WP
27840 break ;;
27841 * )
27842 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
27843 esac
27844done
56efe974
WP
27845echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
27846$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27847 X"$_am_arg" : 'X\(//\)[^/]' \| \
27848 X"$_am_arg" : 'X\(//\)$' \| \
27849 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
27850echo X"$_am_arg" |
b57f37fb
WP
27851 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27852 s//\1/
27853 q
27854 }
27855 /^X\(\/\/\)[^/].*/{
27856 s//\1/
27857 q
27858 }
27859 /^X\(\/\/\)$/{
27860 s//\1/
27861 q
27862 }
27863 /^X\(\/\).*/{
27864 s//\1/
27865 q
27866 }
27867 s/.*/./; q'`/stamp-h$_am_stamp_count
27868 ;;
27869
27870 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
27871echo "$as_me: executing $ac_file commands" >&6;}
27872 ;;
27873 esac
27874
27875
27876 case $ac_file$ac_mode in
27877 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
27878 # Strip MF so we end up with the name of the file.
27879 mf=`echo "$mf" | sed -e 's/:.*$//'`
27880 # Check whether this is an Automake generated Makefile or not.
27881 # We used to match only the files named `Makefile.in', but
27882 # some people rename them; so instead we look at the file content.
27883 # Grep'ing the first line is not enough: some people post-process
27884 # each Makefile.in and add a new line on top of each file to say so.
27885 # Grep'ing the whole file is not good either: AIX grep has a line
27886 # limit of 2048, but all sed's we know have understand at least 4000.
56efe974 27887 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
b57f37fb
WP
27888 dirpart=`$as_dirname -- "$mf" ||
27889$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27890 X"$mf" : 'X\(//\)[^/]' \| \
27891 X"$mf" : 'X\(//\)$' \| \
27892 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
27893echo X"$mf" |
27894 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27895 s//\1/
27896 q
27897 }
27898 /^X\(\/\/\)[^/].*/{
27899 s//\1/
27900 q
27901 }
27902 /^X\(\/\/\)$/{
27903 s//\1/
27904 q
27905 }
27906 /^X\(\/\).*/{
27907 s//\1/
27908 q
27909 }
27910 s/.*/./; q'`
27911 else
27912 continue
27913 fi
27914 # Extract the definition of DEPDIR, am__include, and am__quote
27915 # from the Makefile without running `make'.
27916 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
27917 test -z "$DEPDIR" && continue
27918 am__include=`sed -n 's/^am__include = //p' < "$mf"`
27919 test -z "am__include" && continue
27920 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
27921 # When using ansi2knr, U may be empty or an underscore; expand it
27922 U=`sed -n 's/^U = //p' < "$mf"`
27923 # Find all dependency output files, they are included files with
27924 # $(DEPDIR) in their names. We invoke sed twice because it is the
27925 # simplest approach to changing $(DEPDIR) to its actual value in the
27926 # expansion.
27927 for file in `sed -n "
27928 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
27929 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
27930 # Make sure the directory exists.
27931 test -f "$dirpart/$file" && continue
27932 fdir=`$as_dirname -- "$file" ||
27933$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27934 X"$file" : 'X\(//\)[^/]' \| \
27935 X"$file" : 'X\(//\)$' \| \
27936 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
27937echo X"$file" |
27938 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27939 s//\1/
27940 q
27941 }
27942 /^X\(\/\/\)[^/].*/{
27943 s//\1/
27944 q
27945 }
27946 /^X\(\/\/\)$/{
27947 s//\1/
27948 q
27949 }
27950 /^X\(\/\).*/{
27951 s//\1/
27952 q
27953 }
27954 s/.*/./; q'`
27955 { as_dir=$dirpart/$fdir
27956 case $as_dir in #(
27957 -*) as_dir=./$as_dir;;
27958 esac
27959 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
27960 as_dirs=
27961 while :; do
27962 case $as_dir in #(
27963 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
27964 *) as_qdir=$as_dir;;
27965 esac
27966 as_dirs="'$as_qdir' $as_dirs"
27967 as_dir=`$as_dirname -- "$as_dir" ||
27968$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27969 X"$as_dir" : 'X\(//\)[^/]' \| \
27970 X"$as_dir" : 'X\(//\)$' \| \
27971 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27972echo X"$as_dir" |
27973 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27974 s//\1/
27975 q
27976 }
27977 /^X\(\/\/\)[^/].*/{
27978 s//\1/
27979 q
27980 }
27981 /^X\(\/\/\)$/{
27982 s//\1/
27983 q
27984 }
27985 /^X\(\/\).*/{
27986 s//\1/
27987 q
27988 }
27989 s/.*/./; q'`
27990 test -d "$as_dir" && break
27991 done
27992 test -z "$as_dirs" || eval "mkdir $as_dirs"
27993 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27994echo "$as_me: error: cannot create directory $as_dir" >&2;}
27995 { (exit 1); exit 1; }; }; }
27996 # echo "creating $dirpart/$file"
27997 echo '# dummy' > "$dirpart/$file"
27998 done
27999done
28000 ;;
28001 "include/librb-config.h":C)
28002 outfile=include/librb-config.h.tmp
28003 cat > $outfile <<\_______EOF
28004/*
28005 * librb-config.h: libratbox config file. Please modify configure.ac
28006 */
28007
28008#ifndef __LIBRB_CONFIG_H
28009#define __LIBRB_CONFIG_H
28010
28011_______EOF
28012
28013if test "x$rb_have_ipv6" = "xyes"; then
28014 echo "#define RB_IPV6 1" >> $outfile
28015fi
28016
28017if test "x$rb_windows_h" = "xyes"; then
28018 echo '#define WIN32_LEAN_AND_MEAN 1' >> $outfile
28019 echo '#include <windows.h>' >> $outfile
28020 echo '#include <winsock2.h>' >> $outfile
28021 echo '#include <iphlpapi.h>' >> $outfile
28022fi
28023
28024if test "x$rb_alloca_h" = "xyes"; then
28025 echo '#define RB_HAVE_ALLOCA_H 1' >> $outfile
28026fi
28027
28028if test "x$rb_header_stdc" = "xyes"; then
28029 echo '#include <stdlib.h>' >> $outfile
28030 echo '#include <stddef.h>' >> $outfile
28031elif test "x$rb_header_stdlib" = "xyes"; then
28032 echo '#include <stdlib.h>' >> $outfile
28033fi
28034
28035if test "x$rb_header_string_h" = "xyes"; then
28036 echo '#include <string.h>' >> $outfile
28037fi
28038
28039if test "x$rb_stdint_h" = "xyes"; then
28040 echo '#include <stdint.h>' >> $outfile
28041fi
28042
28043if test "x$rb_inttypes_h" = "xyes"; then
28044 echo '#include <inttypes.h>' >> $outfile
28045fi
28046
28047if test "x$rb_sys_types_h" = "xyes"; then
28048 echo '#include <sys/types.h>' >> $outfile
28049fi
28050if test "x$rb_sys_time_h" = "xyes"; then
28051 echo '#include <sys/time.h>' >> $outfile
28052fi
28053if test "x$rb_sys_stat_h" = "xyes"; then
28054 echo '#include <sys/stat.h>' >> $outfile
28055fi
28056if test "x$rb_time_h" = "xyes"; then
28057 echo '#include <time.h>' >> $outfile
28058fi
28059
28060if test "x$rb_sys_socket_h" = "xyes"; then
28061 echo '#include <sys/socket.h>' >> $outfile
28062fi
28063
28064if test "x$rb_netinet_in_h" = "xyes"; then
28065 echo '#include <netinet/in.h>' >> $outfile
28066fi
28067
28068if test "x$rb_arpa_inet_h" = "xyes"; then
28069 echo '#include <arpa/inet.h>' >> $outfile
28070fi
28071
28072if test "x$rb_unistd_h" = "xyes"; then
28073 echo '#include <unistd.h>' >> $outfile
28074fi
28075
28076if test "x$rb_crypt_h" = "xyes"; then
28077 echo '#include <crypt.h>' >> $outfile
28078fi
28079
28080if test "x$rb_errno_h" = "xyes"; then
28081 echo '#include <errno.h>' >> $outfile
28082fi
28083
28084if test "x$rb_sockaddr_sa_len" = "xyes"; then
28085 echo '#define RB_SOCKADDR_HAS_SA_LEN 1' >> $outfile
28086fi
28087
28088echo "typedef $rb_uint64_t rb_uint64_t;" >> $outfile
28089echo "typedef $rb_uint32_t rb_uint32_t;" >> $outfile
28090echo "typedef $rb_uint16_t rb_uint16_t;" >> $outfile
28091echo "typedef $rb_uint8_t rb_uint8_t;" >> $outfile
28092echo "typedef $rb_int64_t rb_int64_t;" >> $outfile
28093echo "typedef $rb_int32_t rb_int32_t;" >> $outfile
28094echo "typedef $rb_int16_t rb_int16_t;" >> $outfile
28095echo "typedef $rb_int8_t rb_int8_t;" >> $outfile
28096echo "typedef $rb_intmax_t rb_intmax_t;" >> $outfile
28097echo "typedef $rb_intptr_t rb_intptr_t;" >> $outfile
28098echo "typedef $rb_uintmax_t rb_uintmax_t;" >> $outfile
28099echo "typedef $rb_uintptr_t rb_uintptr_t;" >> $outfile
28100echo "typedef $rb_socklen_t rb_socklen_t;" >> $outfile
28101
28102if test "x$rb_sockaddr_storage" = "xyes"; then
28103 echo '#define rb_sockaddr_storage sockaddr_storage' >> $outfile
28104else
28105 echo 'struct rb_sockaddr_storage { rb_uint8_t _padding128; };' >> $outfile
28106fi
28107
28108cat >> $outfile <<\_______EOF
28109#endif /* __LIBRB_CONFIG_H */
28110_______EOF
28111
28112if cmp -s $outfile include/librb-config.h; then
28113 { echo "$as_me:$LINENO: include/librb-config.h is unchanged" >&5
28114echo "$as_me: include/librb-config.h is unchanged" >&6;}
28115 ${rb_rm} -f $outfile
28116else
28117 ${rb_mv} $outfile include/librb-config.h
28118fi
28119
28120 ;;
28121
28122 esac
28123done # for ac_tag
28124
28125
28126{ (exit 0); exit 0; }
28127_ACEOF
28128chmod +x $CONFIG_STATUS
28129ac_clean_files=$ac_clean_files_save
28130
28131
28132# configure is writing to config.log, and then calls config.status.
28133# config.status does its own redirection, appending to config.log.
28134# Unfortunately, on DOS this fails, as config.log is still kept open
28135# by configure, so config.status won't be able to write to it; its
28136# output is simply discarded. So we exec the FD to /dev/null,
28137# effectively closing config.log, so it can be properly (re)opened and
28138# appended to by config.status. When coming back to configure, we
28139# need to make the FD available again.
28140if test "$no_create" != yes; then
28141 ac_cs_success=:
28142 ac_config_status_args=
28143 test "$silent" = yes &&
28144 ac_config_status_args="$ac_config_status_args --quiet"
28145 exec 5>/dev/null
28146 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28147 exec 5>>config.log
28148 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28149 # would make configure fail if this is the last instruction.
28150 $ac_cs_success || { (exit 1); exit 1; }
28151fi
28152
28153#
28154# CONFIG_SUBDIRS section.
28155#
28156if test "$no_recursion" != yes; then
28157
28158 # Remove --cache-file and --srcdir arguments so they do not pile up.
28159 ac_sub_configure_args=
28160 ac_prev=
28161 eval "set x $ac_configure_args"
28162 shift
28163 for ac_arg
28164 do
28165 if test -n "$ac_prev"; then
28166 ac_prev=
28167 continue
28168 fi
28169 case $ac_arg in
28170 -cache-file | --cache-file | --cache-fil | --cache-fi \
28171 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
28172 ac_prev=cache_file ;;
28173 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
28174 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
28175 | --c=*)
28176 ;;
28177 --config-cache | -C)
28178 ;;
28179 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
28180 ac_prev=srcdir ;;
28181 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
28182 ;;
28183 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
28184 ac_prev=prefix ;;
28185 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
28186 ;;
28187 *)
28188 case $ac_arg in
28189 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
28190 esac
28191 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
28192 esac
28193 done
28194
28195 # Always prepend --prefix to ensure using the same prefix
28196 # in subdir configurations.
28197 ac_arg="--prefix=$prefix"
28198 case $ac_arg in
28199 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
28200 esac
28201 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
28202
28203 # Pass --silent
28204 if test "$silent" = yes; then
28205 ac_sub_configure_args="--silent $ac_sub_configure_args"
28206 fi
28207
28208 ac_popdir=`pwd`
28209 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
28210
28211 # Do not complain, so a configure script can configure whichever
28212 # parts of a large source tree are present.
28213 test -d "$srcdir/$ac_dir" || continue
28214
28215 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
28216 echo "$as_me:$LINENO: $ac_msg" >&5
28217 echo "$ac_msg" >&6
28218 { as_dir="$ac_dir"
28219 case $as_dir in #(
28220 -*) as_dir=./$as_dir;;
28221 esac
28222 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
28223 as_dirs=
28224 while :; do
28225 case $as_dir in #(
28226 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
28227 *) as_qdir=$as_dir;;
28228 esac
28229 as_dirs="'$as_qdir' $as_dirs"
28230 as_dir=`$as_dirname -- "$as_dir" ||
28231$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28232 X"$as_dir" : 'X\(//\)[^/]' \| \
28233 X"$as_dir" : 'X\(//\)$' \| \
28234 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28235echo X"$as_dir" |
28236 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28237 s//\1/
28238 q
28239 }
28240 /^X\(\/\/\)[^/].*/{
28241 s//\1/
28242 q
28243 }
28244 /^X\(\/\/\)$/{
28245 s//\1/
28246 q
28247 }
28248 /^X\(\/\).*/{
28249 s//\1/
28250 q
28251 }
28252 s/.*/./; q'`
28253 test -d "$as_dir" && break
28254 done
28255 test -z "$as_dirs" || eval "mkdir $as_dirs"
28256 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
28257echo "$as_me: error: cannot create directory $as_dir" >&2;}
28258 { (exit 1); exit 1; }; }; }
28259 ac_builddir=.
28260
28261case "$ac_dir" in
28262.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28263*)
28264 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
28265 # A ".." for each directory in $ac_dir_suffix.
28266 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
28267 case $ac_top_builddir_sub in
28268 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28269 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28270 esac ;;
28271esac
28272ac_abs_top_builddir=$ac_pwd
28273ac_abs_builddir=$ac_pwd$ac_dir_suffix
28274# for backward compatibility:
28275ac_top_builddir=$ac_top_build_prefix
28276
28277case $srcdir in
28278 .) # We are building in place.
28279 ac_srcdir=.
28280 ac_top_srcdir=$ac_top_builddir_sub
28281 ac_abs_top_srcdir=$ac_pwd ;;
28282 [\\/]* | ?:[\\/]* ) # Absolute name.
28283 ac_srcdir=$srcdir$ac_dir_suffix;
28284 ac_top_srcdir=$srcdir
28285 ac_abs_top_srcdir=$srcdir ;;
28286 *) # Relative name.
28287 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28288 ac_top_srcdir=$ac_top_build_prefix$srcdir
28289 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28290esac
28291ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28292
28293
28294 cd "$ac_dir"
28295
28296 # Check for guested configure; otherwise get Cygnus style configure.
28297 if test -f "$ac_srcdir/configure.gnu"; then
28298 ac_sub_configure=$ac_srcdir/configure.gnu
28299 elif test -f "$ac_srcdir/configure"; then
28300 ac_sub_configure=$ac_srcdir/configure
28301 elif test -f "$ac_srcdir/configure.in"; then
28302 # This should be Cygnus configure.
28303 ac_sub_configure=$ac_aux_dir/configure
28304 else
28305 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
28306echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
28307 ac_sub_configure=
28308 fi
28309
28310 # The recursion is here.
28311 if test -n "$ac_sub_configure"; then
28312 # Make the cache file name correct relative to the subdirectory.
28313 case $cache_file in
28314 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
28315 *) # Relative name.
28316 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
28317 esac
28318
28319 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
28320echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
28321 # The eval makes quoting arguments work.
28322 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
28323 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
28324 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
28325echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
28326 { (exit 1); exit 1; }; }
28327 fi
28328
28329 cd "$ac_popdir"
28330 done
28331fi
28332
28333
28334
28335echo
28336echo "Compiling $PACKAGE_NAME $PACKAGE_VERSION"
28337echo
28338
28339echo "Installing into: $prefix"
28340
28341echo "IPv6 support ................... $have_v6"
28342echo "Assert debugging ............... $assert"
28343echo "Block allocator ................ $balloc"
033be687 28344echo "SSL Type........................ $SSL_TYPE"
b57f37fb
WP
28345echo
28346