blob: a39edd071dfa876837aa0ae26c4c69cd2d5a9443 [file] [log] [blame]
lh9ed821d2023-04-07 01:36:19 -07001@%:@! /bin/sh
2@%:@ Guess values for system-dependent variables and create Makefiles.
3@%:@ Generated by GNU Autoconf 2.61 for library 1.0.
4@%:@
5@%:@ Report bugs to <support@itibia.com>.
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=.
721LIB@&t@OBJS=
722cross_compiling=no
723subdirs=
724MFLAGS=
725MAKEFLAGS=
726SHELL=${CONFIG_SHELL-/bin/sh}
727
728# Identity of this package.
729PACKAGE_NAME='library'
730PACKAGE_TARNAME='library'
731PACKAGE_VERSION='1.0'
732PACKAGE_STRING='library 1.0'
733PACKAGE_BUGREPORT='support@itibia.com'
734
735ac_unique_file=""
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
831CXX
832CXXFLAGS
833LDFLAGS
834CPPFLAGS
835ac_ct_CXX
836EXEEXT
837OBJEXT
838DEPDIR
839am__include
840am__quote
841AMDEP_TRUE
842AMDEP_FALSE
843AMDEPBACKSLASH
844CXXDEPMODE
845am__fastdepCXX_TRUE
846am__fastdepCXX_FALSE
847CC
848CFLAGS
849ac_ct_CC
850CCDEPMODE
851am__fastdepCC_TRUE
852am__fastdepCC_FALSE
853CPP
854build
855build_cpu
856build_vendor
857build_os
858host
859host_cpu
860host_vendor
861host_os
862SED
863GREP
864EGREP
865LN_S
866ECHO
867AR
868RANLIB
869DSYMUTIL
870NMEDIT
871CXXCPP
872F77
873FFLAGS
874ac_ct_F77
875LIBTOOL
876ALLOCA
877LIB@&t@OBJS
878OPENSSL_DIR
879BUILD_CPU
880BUILD_VENDOR
881BUILD_OS
882HOST_CPU
883HOST_VENDOR
884HOST_OS
885COMPILE_FOR_MIPS_TRUE
886COMPILE_FOR_MIPS_FALSE
887LTLIBOBJS'
888ac_subst_files=''
889 ac_precious_vars='build_alias
890host_alias
891target_alias
892CXX
893CXXFLAGS
894LDFLAGS
895LIBS
896CPPFLAGS
897CCC
898CC
899CFLAGS
900CPP
901CXXCPP
902F77
903FFLAGS'
904
905
906# Initialize some variables set by options.
907ac_init_help=
908ac_init_version=false
909# The variables have the same names as the options, with
910# dashes changed to underlines.
911cache_file=/dev/null
912exec_prefix=NONE
913no_create=
914no_recursion=
915prefix=NONE
916program_prefix=NONE
917program_suffix=NONE
918program_transform_name=s,x,x,
919silent=
920site=
921srcdir=
922verbose=
923x_includes=NONE
924x_libraries=NONE
925
926# Installation directory options.
927# These are left unexpanded so users can "make install exec_prefix=/foo"
928# and all the variables that are supposed to be based on exec_prefix
929# by default will actually change.
930# Use braces instead of parens because sh, perl, etc. also accept them.
931# (The list follows the same order as the GNU Coding Standards.)
932bindir='${exec_prefix}/bin'
933sbindir='${exec_prefix}/sbin'
934libexecdir='${exec_prefix}/libexec'
935datarootdir='${prefix}/share'
936datadir='${datarootdir}'
937sysconfdir='${prefix}/etc'
938sharedstatedir='${prefix}/com'
939localstatedir='${prefix}/var'
940includedir='${prefix}/include'
941oldincludedir='/usr/include'
942docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
943infodir='${datarootdir}/info'
944htmldir='${docdir}'
945dvidir='${docdir}'
946pdfdir='${docdir}'
947psdir='${docdir}'
948libdir='${exec_prefix}/lib'
949localedir='${datarootdir}/locale'
950mandir='${datarootdir}/man'
951
952ac_prev=
953ac_dashdash=
954for ac_option
955do
956 # If the previous option needs an argument, assign it.
957 if test -n "$ac_prev"; then
958 eval $ac_prev=\$ac_option
959 ac_prev=
960 continue
961 fi
962
963 case $ac_option in
964 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
965 *) ac_optarg=yes ;;
966 esac
967
968 # Accept the important Cygnus configure options, so we can diagnose typos.
969
970 case $ac_dashdash$ac_option in
971 --)
972 ac_dashdash=yes ;;
973
974 -bindir | --bindir | --bindi | --bind | --bin | --bi)
975 ac_prev=bindir ;;
976 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
977 bindir=$ac_optarg ;;
978
979 -build | --build | --buil | --bui | --bu)
980 ac_prev=build_alias ;;
981 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
982 build_alias=$ac_optarg ;;
983
984 -cache-file | --cache-file | --cache-fil | --cache-fi \
985 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
986 ac_prev=cache_file ;;
987 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
988 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
989 cache_file=$ac_optarg ;;
990
991 --config-cache | -C)
992 cache_file=config.cache ;;
993
994 -datadir | --datadir | --datadi | --datad)
995 ac_prev=datadir ;;
996 -datadir=* | --datadir=* | --datadi=* | --datad=*)
997 datadir=$ac_optarg ;;
998
999 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1000 | --dataroo | --dataro | --datar)
1001 ac_prev=datarootdir ;;
1002 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1003 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1004 datarootdir=$ac_optarg ;;
1005
1006 -disable-* | --disable-*)
1007 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1008 # Reject names that are not valid shell variable names.
1009 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1010 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1011 { (exit 1); exit 1; }; }
1012 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1013 eval enable_$ac_feature=no ;;
1014
1015 -docdir | --docdir | --docdi | --doc | --do)
1016 ac_prev=docdir ;;
1017 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1018 docdir=$ac_optarg ;;
1019
1020 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1021 ac_prev=dvidir ;;
1022 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1023 dvidir=$ac_optarg ;;
1024
1025 -enable-* | --enable-*)
1026 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1027 # Reject names that are not valid shell variable names.
1028 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1029 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1030 { (exit 1); exit 1; }; }
1031 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1032 eval enable_$ac_feature=\$ac_optarg ;;
1033
1034 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1035 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1036 | --exec | --exe | --ex)
1037 ac_prev=exec_prefix ;;
1038 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1039 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1040 | --exec=* | --exe=* | --ex=*)
1041 exec_prefix=$ac_optarg ;;
1042
1043 -gas | --gas | --ga | --g)
1044 # Obsolete; use --with-gas.
1045 with_gas=yes ;;
1046
1047 -help | --help | --hel | --he | -h)
1048 ac_init_help=long ;;
1049 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1050 ac_init_help=recursive ;;
1051 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1052 ac_init_help=short ;;
1053
1054 -host | --host | --hos | --ho)
1055 ac_prev=host_alias ;;
1056 -host=* | --host=* | --hos=* | --ho=*)
1057 host_alias=$ac_optarg ;;
1058
1059 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1060 ac_prev=htmldir ;;
1061 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1062 | --ht=*)
1063 htmldir=$ac_optarg ;;
1064
1065 -includedir | --includedir | --includedi | --included | --include \
1066 | --includ | --inclu | --incl | --inc)
1067 ac_prev=includedir ;;
1068 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1069 | --includ=* | --inclu=* | --incl=* | --inc=*)
1070 includedir=$ac_optarg ;;
1071
1072 -infodir | --infodir | --infodi | --infod | --info | --inf)
1073 ac_prev=infodir ;;
1074 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1075 infodir=$ac_optarg ;;
1076
1077 -libdir | --libdir | --libdi | --libd)
1078 ac_prev=libdir ;;
1079 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1080 libdir=$ac_optarg ;;
1081
1082 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1083 | --libexe | --libex | --libe)
1084 ac_prev=libexecdir ;;
1085 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1086 | --libexe=* | --libex=* | --libe=*)
1087 libexecdir=$ac_optarg ;;
1088
1089 -localedir | --localedir | --localedi | --localed | --locale)
1090 ac_prev=localedir ;;
1091 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1092 localedir=$ac_optarg ;;
1093
1094 -localstatedir | --localstatedir | --localstatedi | --localstated \
1095 | --localstate | --localstat | --localsta | --localst | --locals)
1096 ac_prev=localstatedir ;;
1097 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1098 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1099 localstatedir=$ac_optarg ;;
1100
1101 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1102 ac_prev=mandir ;;
1103 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1104 mandir=$ac_optarg ;;
1105
1106 -nfp | --nfp | --nf)
1107 # Obsolete; use --without-fp.
1108 with_fp=no ;;
1109
1110 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1111 | --no-cr | --no-c | -n)
1112 no_create=yes ;;
1113
1114 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1115 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1116 no_recursion=yes ;;
1117
1118 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1119 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1120 | --oldin | --oldi | --old | --ol | --o)
1121 ac_prev=oldincludedir ;;
1122 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1123 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1124 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1125 oldincludedir=$ac_optarg ;;
1126
1127 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1128 ac_prev=prefix ;;
1129 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1130 prefix=$ac_optarg ;;
1131
1132 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1133 | --program-pre | --program-pr | --program-p)
1134 ac_prev=program_prefix ;;
1135 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1136 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1137 program_prefix=$ac_optarg ;;
1138
1139 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1140 | --program-suf | --program-su | --program-s)
1141 ac_prev=program_suffix ;;
1142 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1143 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1144 program_suffix=$ac_optarg ;;
1145
1146 -program-transform-name | --program-transform-name \
1147 | --program-transform-nam | --program-transform-na \
1148 | --program-transform-n | --program-transform- \
1149 | --program-transform | --program-transfor \
1150 | --program-transfo | --program-transf \
1151 | --program-trans | --program-tran \
1152 | --progr-tra | --program-tr | --program-t)
1153 ac_prev=program_transform_name ;;
1154 -program-transform-name=* | --program-transform-name=* \
1155 | --program-transform-nam=* | --program-transform-na=* \
1156 | --program-transform-n=* | --program-transform-=* \
1157 | --program-transform=* | --program-transfor=* \
1158 | --program-transfo=* | --program-transf=* \
1159 | --program-trans=* | --program-tran=* \
1160 | --progr-tra=* | --program-tr=* | --program-t=*)
1161 program_transform_name=$ac_optarg ;;
1162
1163 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1164 ac_prev=pdfdir ;;
1165 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1166 pdfdir=$ac_optarg ;;
1167
1168 -psdir | --psdir | --psdi | --psd | --ps)
1169 ac_prev=psdir ;;
1170 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1171 psdir=$ac_optarg ;;
1172
1173 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1174 | -silent | --silent | --silen | --sile | --sil)
1175 silent=yes ;;
1176
1177 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1178 ac_prev=sbindir ;;
1179 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1180 | --sbi=* | --sb=*)
1181 sbindir=$ac_optarg ;;
1182
1183 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1184 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1185 | --sharedst | --shareds | --shared | --share | --shar \
1186 | --sha | --sh)
1187 ac_prev=sharedstatedir ;;
1188 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1189 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1190 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1191 | --sha=* | --sh=*)
1192 sharedstatedir=$ac_optarg ;;
1193
1194 -site | --site | --sit)
1195 ac_prev=site ;;
1196 -site=* | --site=* | --sit=*)
1197 site=$ac_optarg ;;
1198
1199 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1200 ac_prev=srcdir ;;
1201 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1202 srcdir=$ac_optarg ;;
1203
1204 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1205 | --syscon | --sysco | --sysc | --sys | --sy)
1206 ac_prev=sysconfdir ;;
1207 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1208 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1209 sysconfdir=$ac_optarg ;;
1210
1211 -target | --target | --targe | --targ | --tar | --ta | --t)
1212 ac_prev=target_alias ;;
1213 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1214 target_alias=$ac_optarg ;;
1215
1216 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1217 verbose=yes ;;
1218
1219 -version | --version | --versio | --versi | --vers | -V)
1220 ac_init_version=: ;;
1221
1222 -with-* | --with-*)
1223 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1224 # Reject names that are not valid shell variable names.
1225 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1226 { echo "$as_me: error: invalid package name: $ac_package" >&2
1227 { (exit 1); exit 1; }; }
1228 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1229 eval with_$ac_package=\$ac_optarg ;;
1230
1231 -without-* | --without-*)
1232 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1233 # Reject names that are not valid shell variable names.
1234 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1235 { echo "$as_me: error: invalid package name: $ac_package" >&2
1236 { (exit 1); exit 1; }; }
1237 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1238 eval with_$ac_package=no ;;
1239
1240 --x)
1241 # Obsolete; use --with-x.
1242 with_x=yes ;;
1243
1244 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1245 | --x-incl | --x-inc | --x-in | --x-i)
1246 ac_prev=x_includes ;;
1247 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1248 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1249 x_includes=$ac_optarg ;;
1250
1251 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1252 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1253 ac_prev=x_libraries ;;
1254 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1255 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1256 x_libraries=$ac_optarg ;;
1257
1258 -*) { echo "$as_me: error: unrecognized option: $ac_option
1259Try \`$0 --help' for more information." >&2
1260 { (exit 1); exit 1; }; }
1261 ;;
1262
1263 *=*)
1264 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1265 # Reject names that are not valid shell variable names.
1266 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1267 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1268 { (exit 1); exit 1; }; }
1269 eval $ac_envvar=\$ac_optarg
1270 export $ac_envvar ;;
1271
1272 *)
1273 # FIXME: should be removed in autoconf 3.0.
1274 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1275 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1276 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1277 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1278 ;;
1279
1280 esac
1281done
1282
1283if test -n "$ac_prev"; then
1284 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1285 { echo "$as_me: error: missing argument to $ac_option" >&2
1286 { (exit 1); exit 1; }; }
1287fi
1288
1289# Be sure to have absolute directory names.
1290for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1291 datadir sysconfdir sharedstatedir localstatedir includedir \
1292 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1293 libdir localedir mandir
1294do
1295 eval ac_val=\$$ac_var
1296 case $ac_val in
1297 [\\/$]* | ?:[\\/]* ) continue;;
1298 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1299 esac
1300 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1301 { (exit 1); exit 1; }; }
1302done
1303
1304# There might be people who depend on the old broken behavior: `$host'
1305# used to hold the argument of --host etc.
1306# FIXME: To remove some day.
1307build=$build_alias
1308host=$host_alias
1309target=$target_alias
1310
1311# FIXME: To remove some day.
1312if test "x$host_alias" != x; then
1313 if test "x$build_alias" = x; then
1314 cross_compiling=maybe
1315 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1316 If a cross compiler is detected then cross compile mode will be used." >&2
1317 elif test "x$build_alias" != "x$host_alias"; then
1318 cross_compiling=yes
1319 fi
1320fi
1321
1322ac_tool_prefix=
1323test -n "$host_alias" && ac_tool_prefix=$host_alias-
1324
1325test "$silent" = yes && exec 6>/dev/null
1326
1327
1328ac_pwd=`pwd` && test -n "$ac_pwd" &&
1329ac_ls_di=`ls -di .` &&
1330ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1331 { echo "$as_me: error: Working directory cannot be determined" >&2
1332 { (exit 1); exit 1; }; }
1333test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1334 { echo "$as_me: error: pwd does not report name of working directory" >&2
1335 { (exit 1); exit 1; }; }
1336
1337
1338# Find the source files, if location was not specified.
1339if test -z "$srcdir"; then
1340 ac_srcdir_defaulted=yes
1341 # Try the directory containing this script, then the parent directory.
1342 ac_confdir=`$as_dirname -- "$0" ||
1343$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1344 X"$0" : 'X\(//\)[^/]' \| \
1345 X"$0" : 'X\(//\)$' \| \
1346 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1347echo X"$0" |
1348 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1349 s//\1/
1350 q
1351 }
1352 /^X\(\/\/\)[^/].*/{
1353 s//\1/
1354 q
1355 }
1356 /^X\(\/\/\)$/{
1357 s//\1/
1358 q
1359 }
1360 /^X\(\/\).*/{
1361 s//\1/
1362 q
1363 }
1364 s/.*/./; q'`
1365 srcdir=$ac_confdir
1366 if test ! -r "$srcdir/$ac_unique_file"; then
1367 srcdir=..
1368 fi
1369else
1370 ac_srcdir_defaulted=no
1371fi
1372if test ! -r "$srcdir/$ac_unique_file"; then
1373 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1374 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1375 { (exit 1); exit 1; }; }
1376fi
1377ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1378ac_abs_confdir=`(
1379 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1380 { (exit 1); exit 1; }; }
1381 pwd)`
1382# When building in place, set srcdir=.
1383if test "$ac_abs_confdir" = "$ac_pwd"; then
1384 srcdir=.
1385fi
1386# Remove unnecessary trailing slashes from srcdir.
1387# Double slashes in file names in object file debugging info
1388# mess up M-x gdb in Emacs.
1389case $srcdir in
1390*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1391esac
1392for ac_var in $ac_precious_vars; do
1393 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1394 eval ac_env_${ac_var}_value=\$${ac_var}
1395 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1396 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1397done
1398
1399#
1400# Report the --help message.
1401#
1402if test "$ac_init_help" = "long"; then
1403 # Omit some internal or obsolete options to make the list less imposing.
1404 # This message is too long to be a string in the A/UX 3.1 sh.
1405 cat <<_ACEOF
1406\`configure' configures library 1.0 to adapt to many kinds of systems.
1407
1408Usage: $0 [OPTION]... [VAR=VALUE]...
1409
1410To assign environment variables (e.g., CC, CFLAGS...), specify them as
1411VAR=VALUE. See below for descriptions of some of the useful variables.
1412
1413Defaults for the options are specified in brackets.
1414
1415Configuration:
1416 -h, --help display this help and exit
1417 --help=short display options specific to this package
1418 --help=recursive display the short help of all the included packages
1419 -V, --version display version information and exit
1420 -q, --quiet, --silent do not print \`checking...' messages
1421 --cache-file=FILE cache test results in FILE [disabled]
1422 -C, --config-cache alias for \`--cache-file=config.cache'
1423 -n, --no-create do not create output files
1424 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1425
1426Installation directories:
1427 --prefix=PREFIX install architecture-independent files in PREFIX
1428 [$ac_default_prefix]
1429 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1430 [PREFIX]
1431
1432By default, \`make install' will install all the files in
1433\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1434an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1435for instance \`--prefix=\$HOME'.
1436
1437For better control, use the options below.
1438
1439Fine tuning of the installation directories:
1440 --bindir=DIR user executables [EPREFIX/bin]
1441 --sbindir=DIR system admin executables [EPREFIX/sbin]
1442 --libexecdir=DIR program executables [EPREFIX/libexec]
1443 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1444 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1445 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1446 --libdir=DIR object code libraries [EPREFIX/lib]
1447 --includedir=DIR C header files [PREFIX/include]
1448 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1449 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1450 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1451 --infodir=DIR info documentation [DATAROOTDIR/info]
1452 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1453 --mandir=DIR man documentation [DATAROOTDIR/man]
1454 --docdir=DIR documentation root @<:@DATAROOTDIR/doc/library@:>@
1455 --htmldir=DIR html documentation [DOCDIR]
1456 --dvidir=DIR dvi documentation [DOCDIR]
1457 --pdfdir=DIR pdf documentation [DOCDIR]
1458 --psdir=DIR ps documentation [DOCDIR]
1459_ACEOF
1460
1461 cat <<\_ACEOF
1462
1463Program names:
1464 --program-prefix=PREFIX prepend PREFIX to installed program names
1465 --program-suffix=SUFFIX append SUFFIX to installed program names
1466 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1467
1468System types:
1469 --build=BUILD configure for building on BUILD [guessed]
1470 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1471_ACEOF
1472fi
1473
1474if test -n "$ac_init_help"; then
1475 case $ac_init_help in
1476 short | recursive ) echo "Configuration of library 1.0:";;
1477 esac
1478 cat <<\_ACEOF
1479
1480Optional Features:
1481 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1482 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1483 --disable-dependency-tracking speeds up one-time build
1484 --enable-dependency-tracking do not reject slow dependency extractors
1485 --enable-shared@<:@=PKGS@:>@ build shared libraries @<:@default=yes@:>@
1486 --enable-static@<:@=PKGS@:>@ build static libraries @<:@default=yes@:>@
1487 --enable-fast-install@<:@=PKGS@:>@
1488 optimize for fast installation @<:@default=yes@:>@
1489 --disable-libtool-lock avoid locking (might break parallel builds)
1490
1491Optional Packages:
1492 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1493 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1494 --with-gnu-ld assume the C compiler uses GNU ld @<:@default=no@:>@
1495 --with-pic try to use only PIC/non-PIC objects @<:@default=use
1496 both@:>@
1497 --with-tags@<:@=TAGS@:>@ include additional configurations @<:@automatic@:>@
1498--with-openssl=<path> sets path to temp directory
1499
1500Some influential environment variables:
1501 CXX C++ compiler command
1502 CXXFLAGS C++ compiler flags
1503 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1504 nonstandard directory <lib dir>
1505 LIBS libraries to pass to the linker, e.g. -l<library>
1506 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1507 you have headers in a nonstandard directory <include dir>
1508 CC C compiler command
1509 CFLAGS C compiler flags
1510 CPP C preprocessor
1511 CXXCPP C++ preprocessor
1512 F77 Fortran 77 compiler command
1513 FFLAGS Fortran 77 compiler flags
1514
1515Use these variables to override the choices made by `configure' or to help
1516it to find libraries and programs with nonstandard names/locations.
1517
1518Report bugs to <support@itibia.com>.
1519_ACEOF
1520ac_status=$?
1521fi
1522
1523if test "$ac_init_help" = "recursive"; then
1524 # If there are subdirs, report their specific --help.
1525 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1526 test -d "$ac_dir" || continue
1527 ac_builddir=.
1528
1529case "$ac_dir" in
1530.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1531*)
1532 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1533 # A ".." for each directory in $ac_dir_suffix.
1534 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1535 case $ac_top_builddir_sub in
1536 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1537 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1538 esac ;;
1539esac
1540ac_abs_top_builddir=$ac_pwd
1541ac_abs_builddir=$ac_pwd$ac_dir_suffix
1542# for backward compatibility:
1543ac_top_builddir=$ac_top_build_prefix
1544
1545case $srcdir in
1546 .) # We are building in place.
1547 ac_srcdir=.
1548 ac_top_srcdir=$ac_top_builddir_sub
1549 ac_abs_top_srcdir=$ac_pwd ;;
1550 [\\/]* | ?:[\\/]* ) # Absolute name.
1551 ac_srcdir=$srcdir$ac_dir_suffix;
1552 ac_top_srcdir=$srcdir
1553 ac_abs_top_srcdir=$srcdir ;;
1554 *) # Relative name.
1555 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1556 ac_top_srcdir=$ac_top_build_prefix$srcdir
1557 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1558esac
1559ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1560
1561 cd "$ac_dir" || { ac_status=$?; continue; }
1562 # Check for guested configure.
1563 if test -f "$ac_srcdir/configure.gnu"; then
1564 echo &&
1565 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1566 elif test -f "$ac_srcdir/configure"; then
1567 echo &&
1568 $SHELL "$ac_srcdir/configure" --help=recursive
1569 else
1570 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1571 fi || ac_status=$?
1572 cd "$ac_pwd" || { ac_status=$?; break; }
1573 done
1574fi
1575
1576test -n "$ac_init_help" && exit $ac_status
1577if $ac_init_version; then
1578 cat <<\_ACEOF
1579library configure 1.0
1580generated by GNU Autoconf 2.61
1581
1582Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15832002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1584This configure script is free software; the Free Software Foundation
1585gives unlimited permission to copy, distribute and modify it.
1586_ACEOF
1587 exit
1588fi
1589cat >config.log <<_ACEOF
1590This file contains any messages produced by compilers while
1591running configure, to aid debugging if configure makes a mistake.
1592
1593It was created by library $as_me 1.0, which was
1594generated by GNU Autoconf 2.61. Invocation command line was
1595
1596 $ $0 $@
1597
1598_ACEOF
1599exec 5>>config.log
1600{
1601cat <<_ASUNAME
1602@%:@@%:@ --------- @%:@@%:@
1603@%:@@%:@ Platform. @%:@@%:@
1604@%:@@%:@ --------- @%:@@%:@
1605
1606hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1607uname -m = `(uname -m) 2>/dev/null || echo unknown`
1608uname -r = `(uname -r) 2>/dev/null || echo unknown`
1609uname -s = `(uname -s) 2>/dev/null || echo unknown`
1610uname -v = `(uname -v) 2>/dev/null || echo unknown`
1611
1612/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1613/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1614
1615/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1616/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1617/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1618/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1619/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1620/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1621/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1622
1623_ASUNAME
1624
1625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1626for as_dir in $PATH
1627do
1628 IFS=$as_save_IFS
1629 test -z "$as_dir" && as_dir=.
1630 echo "PATH: $as_dir"
1631done
1632IFS=$as_save_IFS
1633
1634} >&5
1635
1636cat >&5 <<_ACEOF
1637
1638
1639@%:@@%:@ ----------- @%:@@%:@
1640@%:@@%:@ Core tests. @%:@@%:@
1641@%:@@%:@ ----------- @%:@@%:@
1642
1643_ACEOF
1644
1645
1646# Keep a trace of the command line.
1647# Strip out --no-create and --no-recursion so they do not pile up.
1648# Strip out --silent because we don't want to record it for future runs.
1649# Also quote any args containing shell meta-characters.
1650# Make two passes to allow for proper duplicate-argument suppression.
1651ac_configure_args=
1652ac_configure_args0=
1653ac_configure_args1=
1654ac_must_keep_next=false
1655for ac_pass in 1 2
1656do
1657 for ac_arg
1658 do
1659 case $ac_arg in
1660 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1661 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1662 | -silent | --silent | --silen | --sile | --sil)
1663 continue ;;
1664 *\'*)
1665 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1666 esac
1667 case $ac_pass in
1668 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1669 2)
1670 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1671 if test $ac_must_keep_next = true; then
1672 ac_must_keep_next=false # Got value, back to normal.
1673 else
1674 case $ac_arg in
1675 *=* | --config-cache | -C | -disable-* | --disable-* \
1676 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1677 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1678 | -with-* | --with-* | -without-* | --without-* | --x)
1679 case "$ac_configure_args0 " in
1680 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1681 esac
1682 ;;
1683 -* ) ac_must_keep_next=true ;;
1684 esac
1685 fi
1686 ac_configure_args="$ac_configure_args '$ac_arg'"
1687 ;;
1688 esac
1689 done
1690done
1691$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1692$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1693
1694# When interrupted or exit'd, cleanup temporary files, and complete
1695# config.log. We remove comments because anyway the quotes in there
1696# would cause problems or look ugly.
1697# WARNING: Use '\'' to represent an apostrophe within the trap.
1698# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1699trap 'exit_status=$?
1700 # Save into config.log some information that might help in debugging.
1701 {
1702 echo
1703
1704 cat <<\_ASBOX
1705@%:@@%:@ ---------------- @%:@@%:@
1706@%:@@%:@ Cache variables. @%:@@%:@
1707@%:@@%:@ ---------------- @%:@@%:@
1708_ASBOX
1709 echo
1710 # The following way of writing the cache mishandles newlines in values,
1711(
1712 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1713 eval ac_val=\$$ac_var
1714 case $ac_val in #(
1715 *${as_nl}*)
1716 case $ac_var in #(
1717 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1718echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1719 esac
1720 case $ac_var in #(
1721 _ | IFS | as_nl) ;; #(
1722 *) $as_unset $ac_var ;;
1723 esac ;;
1724 esac
1725 done
1726 (set) 2>&1 |
1727 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1728 *${as_nl}ac_space=\ *)
1729 sed -n \
1730 "s/'\''/'\''\\\\'\'''\''/g;
1731 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1732 ;; #(
1733 *)
1734 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1735 ;;
1736 esac |
1737 sort
1738)
1739 echo
1740
1741 cat <<\_ASBOX
1742@%:@@%:@ ----------------- @%:@@%:@
1743@%:@@%:@ Output variables. @%:@@%:@
1744@%:@@%:@ ----------------- @%:@@%:@
1745_ASBOX
1746 echo
1747 for ac_var in $ac_subst_vars
1748 do
1749 eval ac_val=\$$ac_var
1750 case $ac_val in
1751 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1752 esac
1753 echo "$ac_var='\''$ac_val'\''"
1754 done | sort
1755 echo
1756
1757 if test -n "$ac_subst_files"; then
1758 cat <<\_ASBOX
1759@%:@@%:@ ------------------- @%:@@%:@
1760@%:@@%:@ File substitutions. @%:@@%:@
1761@%:@@%:@ ------------------- @%:@@%:@
1762_ASBOX
1763 echo
1764 for ac_var in $ac_subst_files
1765 do
1766 eval ac_val=\$$ac_var
1767 case $ac_val in
1768 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1769 esac
1770 echo "$ac_var='\''$ac_val'\''"
1771 done | sort
1772 echo
1773 fi
1774
1775 if test -s confdefs.h; then
1776 cat <<\_ASBOX
1777@%:@@%:@ ----------- @%:@@%:@
1778@%:@@%:@ confdefs.h. @%:@@%:@
1779@%:@@%:@ ----------- @%:@@%:@
1780_ASBOX
1781 echo
1782 cat confdefs.h
1783 echo
1784 fi
1785 test "$ac_signal" != 0 &&
1786 echo "$as_me: caught signal $ac_signal"
1787 echo "$as_me: exit $exit_status"
1788 } >&5
1789 rm -f core *.core core.conftest.* &&
1790 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1791 exit $exit_status
1792' 0
1793for ac_signal in 1 2 13 15; do
1794 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1795done
1796ac_signal=0
1797
1798# confdefs.h avoids OS command line length limits that DEFS can exceed.
1799rm -f -r conftest* confdefs.h
1800
1801# Predefined preprocessor variables.
1802
1803cat >>confdefs.h <<_ACEOF
1804@%:@define PACKAGE_NAME "$PACKAGE_NAME"
1805_ACEOF
1806
1807
1808cat >>confdefs.h <<_ACEOF
1809@%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1810_ACEOF
1811
1812
1813cat >>confdefs.h <<_ACEOF
1814@%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
1815_ACEOF
1816
1817
1818cat >>confdefs.h <<_ACEOF
1819@%:@define PACKAGE_STRING "$PACKAGE_STRING"
1820_ACEOF
1821
1822
1823cat >>confdefs.h <<_ACEOF
1824@%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1825_ACEOF
1826
1827
1828# Let the site file select an alternate cache file if it wants to.
1829# Prefer explicitly selected file to automatically selected ones.
1830if test -n "$CONFIG_SITE"; then
1831 set x "$CONFIG_SITE"
1832elif test "x$prefix" != xNONE; then
1833 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1834else
1835 set x "$ac_default_prefix/share/config.site" \
1836 "$ac_default_prefix/etc/config.site"
1837fi
1838shift
1839for ac_site_file
1840do
1841 if test -r "$ac_site_file"; then
1842 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1843echo "$as_me: loading site script $ac_site_file" >&6;}
1844 sed 's/^/| /' "$ac_site_file" >&5
1845 . "$ac_site_file"
1846 fi
1847done
1848
1849if test -r "$cache_file"; then
1850 # Some versions of bash will fail to source /dev/null (special
1851 # files actually), so we avoid doing that.
1852 if test -f "$cache_file"; then
1853 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1854echo "$as_me: loading cache $cache_file" >&6;}
1855 case $cache_file in
1856 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1857 *) . "./$cache_file";;
1858 esac
1859 fi
1860else
1861 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1862echo "$as_me: creating cache $cache_file" >&6;}
1863 >$cache_file
1864fi
1865
1866# Check that the precious variables saved in the cache have kept the same
1867# value.
1868ac_cache_corrupted=false
1869for ac_var in $ac_precious_vars; do
1870 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1871 eval ac_new_set=\$ac_env_${ac_var}_set
1872 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1873 eval ac_new_val=\$ac_env_${ac_var}_value
1874 case $ac_old_set,$ac_new_set in
1875 set,)
1876 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1877echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1878 ac_cache_corrupted=: ;;
1879 ,set)
1880 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1881echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1882 ac_cache_corrupted=: ;;
1883 ,);;
1884 *)
1885 if test "x$ac_old_val" != "x$ac_new_val"; then
1886 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1887echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1888 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1889echo "$as_me: former value: $ac_old_val" >&2;}
1890 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1891echo "$as_me: current value: $ac_new_val" >&2;}
1892 ac_cache_corrupted=:
1893 fi;;
1894 esac
1895 # Pass precious variables to config.status.
1896 if test "$ac_new_set" = set; then
1897 case $ac_new_val in
1898 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1899 *) ac_arg=$ac_var=$ac_new_val ;;
1900 esac
1901 case " $ac_configure_args " in
1902 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1903 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1904 esac
1905 fi
1906done
1907if $ac_cache_corrupted; then
1908 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1909echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1910 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1911echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1912 { (exit 1); exit 1; }; }
1913fi
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939ac_ext=c
1940ac_cpp='$CPP $CPPFLAGS'
1941ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1942ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1943ac_compiler_gnu=$ac_cv_c_compiler_gnu
1944
1945
1946ac_aux_dir=
1947for ac_dir in build "$srcdir"/build; do
1948 if test -f "$ac_dir/install-sh"; then
1949 ac_aux_dir=$ac_dir
1950 ac_install_sh="$ac_aux_dir/install-sh -c"
1951 break
1952 elif test -f "$ac_dir/install.sh"; then
1953 ac_aux_dir=$ac_dir
1954 ac_install_sh="$ac_aux_dir/install.sh -c"
1955 break
1956 elif test -f "$ac_dir/shtool"; then
1957 ac_aux_dir=$ac_dir
1958 ac_install_sh="$ac_aux_dir/shtool install -c"
1959 break
1960 fi
1961done
1962if test -z "$ac_aux_dir"; then
1963 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build \"$srcdir\"/build" >&5
1964echo "$as_me: error: cannot find install-sh or install.sh in build \"$srcdir\"/build" >&2;}
1965 { (exit 1); exit 1; }; }
1966fi
1967
1968# These three variables are undocumented and unsupported,
1969# and are intended to be withdrawn in a future Autoconf release.
1970# They can cause serious problems if a builder's source tree is in a directory
1971# whose full name contains unusual characters.
1972ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1973ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1974ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1975
1976
1977am__api_version='1.10'
1978
1979# Find a good install program. We prefer a C program (faster),
1980# so one script is as good as another. But avoid the broken or
1981# incompatible versions:
1982# SysV /etc/install, /usr/sbin/install
1983# SunOS /usr/etc/install
1984# IRIX /sbin/install
1985# AIX /bin/install
1986# AmigaOS /C/install, which installs bootblocks on floppy discs
1987# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1988# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1989# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1990# OS/2's system install, which has a completely different semantic
1991# ./install, which can be erroneously created by make from ./install.sh.
1992{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1993echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1994if test -z "$INSTALL"; then
1995if test "${ac_cv_path_install+set}" = set; then
1996 echo $ECHO_N "(cached) $ECHO_C" >&6
1997else
1998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1999for as_dir in $PATH
2000do
2001 IFS=$as_save_IFS
2002 test -z "$as_dir" && as_dir=.
2003 # Account for people who put trailing slashes in PATH elements.
2004case $as_dir/ in
2005 ./ | .// | /cC/* | \
2006 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2007 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2008 /usr/ucb/* ) ;;
2009 *)
2010 # OSF1 and SCO ODT 3.0 have their own names for install.
2011 # Don't use installbsd from OSF since it installs stuff as root
2012 # by default.
2013 for ac_prog in ginstall scoinst install; do
2014 for ac_exec_ext in '' $ac_executable_extensions; do
2015 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2016 if test $ac_prog = install &&
2017 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2018 # AIX install. It has an incompatible calling convention.
2019 :
2020 elif test $ac_prog = install &&
2021 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2022 # program-specific install script used by HP pwplus--don't use.
2023 :
2024 else
2025 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2026 break 3
2027 fi
2028 fi
2029 done
2030 done
2031 ;;
2032esac
2033done
2034IFS=$as_save_IFS
2035
2036
2037fi
2038 if test "${ac_cv_path_install+set}" = set; then
2039 INSTALL=$ac_cv_path_install
2040 else
2041 # As a last resort, use the slow shell script. Don't cache a
2042 # value for INSTALL within a source directory, because that will
2043 # break other packages using the cache if that directory is
2044 # removed, or if the value is a relative name.
2045 INSTALL=$ac_install_sh
2046 fi
2047fi
2048{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2049echo "${ECHO_T}$INSTALL" >&6; }
2050
2051# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2052# It thinks the first close brace ends the variable substitution.
2053test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2054
2055test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2056
2057test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2058
2059{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2060echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2061# Just in case
2062sleep 1
2063echo timestamp > conftest.file
2064# Do `set' in a subshell so we don't clobber the current shell's
2065# arguments. Must try -L first in case configure is actually a
2066# symlink; some systems play weird games with the mod time of symlinks
2067# (eg FreeBSD returns the mod time of the symlink's containing
2068# directory).
2069if (
2070 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2071 if test "$*" = "X"; then
2072 # -L didn't work.
2073 set X `ls -t $srcdir/configure conftest.file`
2074 fi
2075 rm -f conftest.file
2076 if test "$*" != "X $srcdir/configure conftest.file" \
2077 && test "$*" != "X conftest.file $srcdir/configure"; then
2078
2079 # If neither matched, then we have a broken ls. This can happen
2080 # if, for instance, CONFIG_SHELL is bash and it inherits a
2081 # broken ls alias from the environment. This has actually
2082 # happened. Such a system could not be considered "sane".
2083 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2084alias in your environment" >&5
2085echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2086alias in your environment" >&2;}
2087 { (exit 1); exit 1; }; }
2088 fi
2089
2090 test "$2" = conftest.file
2091 )
2092then
2093 # Ok.
2094 :
2095else
2096 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2097Check your system clock" >&5
2098echo "$as_me: error: newly created file is older than distributed files!
2099Check your system clock" >&2;}
2100 { (exit 1); exit 1; }; }
2101fi
2102{ echo "$as_me:$LINENO: result: yes" >&5
2103echo "${ECHO_T}yes" >&6; }
2104test "$program_prefix" != NONE &&
2105 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2106# Use a double $ so make ignores it.
2107test "$program_suffix" != NONE &&
2108 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2109# Double any \ or $. echo might interpret backslashes.
2110# By default was `s,x,x', remove it if useless.
2111cat <<\_ACEOF >conftest.sed
2112s/[\\$]/&&/g;s/;s,x,x,$//
2113_ACEOF
2114program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2115rm -f conftest.sed
2116
2117# expand $ac_aux_dir to an absolute path
2118am_aux_dir=`cd $ac_aux_dir && pwd`
2119
2120test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2121# Use eval to expand $SHELL
2122if eval "$MISSING --run true"; then
2123 am_missing_run="$MISSING --run "
2124else
2125 am_missing_run=
2126 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2127echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2128fi
2129
2130{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2131echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2132if test -z "$MKDIR_P"; then
2133 if test "${ac_cv_path_mkdir+set}" = set; then
2134 echo $ECHO_N "(cached) $ECHO_C" >&6
2135else
2136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2137for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2138do
2139 IFS=$as_save_IFS
2140 test -z "$as_dir" && as_dir=.
2141 for ac_prog in mkdir gmkdir; do
2142 for ac_exec_ext in '' $ac_executable_extensions; do
2143 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2144 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2145 'mkdir (GNU coreutils) '* | \
2146 'mkdir (coreutils) '* | \
2147 'mkdir (fileutils) '4.1*)
2148 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2149 break 3;;
2150 esac
2151 done
2152 done
2153done
2154IFS=$as_save_IFS
2155
2156fi
2157
2158 if test "${ac_cv_path_mkdir+set}" = set; then
2159 MKDIR_P="$ac_cv_path_mkdir -p"
2160 else
2161 # As a last resort, use the slow shell script. Don't cache a
2162 # value for MKDIR_P within a source directory, because that will
2163 # break other packages using the cache if that directory is
2164 # removed, or if the value is a relative name.
2165 test -d ./--version && rmdir ./--version
2166 MKDIR_P="$ac_install_sh -d"
2167 fi
2168fi
2169{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2170echo "${ECHO_T}$MKDIR_P" >&6; }
2171
2172mkdir_p="$MKDIR_P"
2173case $mkdir_p in
2174 [\\/$]* | ?:[\\/]*) ;;
2175 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2176esac
2177
2178for ac_prog in gawk mawk nawk awk
2179do
2180 # Extract the first word of "$ac_prog", so it can be a program name with args.
2181set dummy $ac_prog; ac_word=$2
2182{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2183echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2184if test "${ac_cv_prog_AWK+set}" = set; then
2185 echo $ECHO_N "(cached) $ECHO_C" >&6
2186else
2187 if test -n "$AWK"; then
2188 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2189else
2190as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2191for as_dir in $PATH
2192do
2193 IFS=$as_save_IFS
2194 test -z "$as_dir" && as_dir=.
2195 for ac_exec_ext in '' $ac_executable_extensions; do
2196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2197 ac_cv_prog_AWK="$ac_prog"
2198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2199 break 2
2200 fi
2201done
2202done
2203IFS=$as_save_IFS
2204
2205fi
2206fi
2207AWK=$ac_cv_prog_AWK
2208if test -n "$AWK"; then
2209 { echo "$as_me:$LINENO: result: $AWK" >&5
2210echo "${ECHO_T}$AWK" >&6; }
2211else
2212 { echo "$as_me:$LINENO: result: no" >&5
2213echo "${ECHO_T}no" >&6; }
2214fi
2215
2216
2217 test -n "$AWK" && break
2218done
2219
2220{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2221echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2222set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2223if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2224 echo $ECHO_N "(cached) $ECHO_C" >&6
2225else
2226 cat >conftest.make <<\_ACEOF
2227SHELL = /bin/sh
2228all:
2229 @echo '@@@%%%=$(MAKE)=@@@%%%'
2230_ACEOF
2231# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2232case `${MAKE-make} -f conftest.make 2>/dev/null` in
2233 *@@@%%%=?*=@@@%%%*)
2234 eval ac_cv_prog_make_${ac_make}_set=yes;;
2235 *)
2236 eval ac_cv_prog_make_${ac_make}_set=no;;
2237esac
2238rm -f conftest.make
2239fi
2240if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2241 { echo "$as_me:$LINENO: result: yes" >&5
2242echo "${ECHO_T}yes" >&6; }
2243 SET_MAKE=
2244else
2245 { echo "$as_me:$LINENO: result: no" >&5
2246echo "${ECHO_T}no" >&6; }
2247 SET_MAKE="MAKE=${MAKE-make}"
2248fi
2249
2250rm -rf .tst 2>/dev/null
2251mkdir .tst 2>/dev/null
2252if test -d .tst; then
2253 am__leading_dot=.
2254else
2255 am__leading_dot=_
2256fi
2257rmdir .tst 2>/dev/null
2258
2259if test "`cd $srcdir && pwd`" != "`pwd`"; then
2260 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2261 # is not polluted with repeated "-I."
2262 am__isrc=' -I$(srcdir)'
2263 # test to see if srcdir already configured
2264 if test -f $srcdir/config.status; then
2265 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2266echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2267 { (exit 1); exit 1; }; }
2268 fi
2269fi
2270
2271# test whether we have cygpath
2272if test -z "$CYGPATH_W"; then
2273 if (cygpath --version) >/dev/null 2>/dev/null; then
2274 CYGPATH_W='cygpath -w'
2275 else
2276 CYGPATH_W=echo
2277 fi
2278fi
2279
2280
2281# Define the identity of the package.
2282 PACKAGE='library'
2283 VERSION='1.0'
2284
2285
2286cat >>confdefs.h <<_ACEOF
2287@%:@define PACKAGE "$PACKAGE"
2288_ACEOF
2289
2290
2291cat >>confdefs.h <<_ACEOF
2292@%:@define VERSION "$VERSION"
2293_ACEOF
2294
2295# Some tools Automake needs.
2296
2297ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2298
2299
2300AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2301
2302
2303AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2304
2305
2306AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2307
2308
2309MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2310
2311install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2312
2313# Installed binaries are usually stripped using `strip' when the user
2314# run `make install-strip'. However `strip' might not be the right
2315# tool to use in cross-compilation environments, therefore Automake
2316# will honor the `STRIP' environment variable to overrule this program.
2317if test "$cross_compiling" != no; then
2318 if test -n "$ac_tool_prefix"; then
2319 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2320set dummy ${ac_tool_prefix}strip; ac_word=$2
2321{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2322echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2323if test "${ac_cv_prog_STRIP+set}" = set; then
2324 echo $ECHO_N "(cached) $ECHO_C" >&6
2325else
2326 if test -n "$STRIP"; then
2327 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2328else
2329as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2330for as_dir in $PATH
2331do
2332 IFS=$as_save_IFS
2333 test -z "$as_dir" && as_dir=.
2334 for ac_exec_ext in '' $ac_executable_extensions; do
2335 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2336 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2337 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2338 break 2
2339 fi
2340done
2341done
2342IFS=$as_save_IFS
2343
2344fi
2345fi
2346STRIP=$ac_cv_prog_STRIP
2347if test -n "$STRIP"; then
2348 { echo "$as_me:$LINENO: result: $STRIP" >&5
2349echo "${ECHO_T}$STRIP" >&6; }
2350else
2351 { echo "$as_me:$LINENO: result: no" >&5
2352echo "${ECHO_T}no" >&6; }
2353fi
2354
2355
2356fi
2357if test -z "$ac_cv_prog_STRIP"; then
2358 ac_ct_STRIP=$STRIP
2359 # Extract the first word of "strip", so it can be a program name with args.
2360set dummy strip; ac_word=$2
2361{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2362echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2363if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2364 echo $ECHO_N "(cached) $ECHO_C" >&6
2365else
2366 if test -n "$ac_ct_STRIP"; then
2367 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2368else
2369as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2370for as_dir in $PATH
2371do
2372 IFS=$as_save_IFS
2373 test -z "$as_dir" && as_dir=.
2374 for ac_exec_ext in '' $ac_executable_extensions; do
2375 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2376 ac_cv_prog_ac_ct_STRIP="strip"
2377 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2378 break 2
2379 fi
2380done
2381done
2382IFS=$as_save_IFS
2383
2384fi
2385fi
2386ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2387if test -n "$ac_ct_STRIP"; then
2388 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2389echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2390else
2391 { echo "$as_me:$LINENO: result: no" >&5
2392echo "${ECHO_T}no" >&6; }
2393fi
2394
2395 if test "x$ac_ct_STRIP" = x; then
2396 STRIP=":"
2397 else
2398 case $cross_compiling:$ac_tool_warned in
2399yes:)
2400{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2401whose name does not start with the host triplet. If you think this
2402configuration is useful to you, please write to autoconf@gnu.org." >&5
2403echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2404whose name does not start with the host triplet. If you think this
2405configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2406ac_tool_warned=yes ;;
2407esac
2408 STRIP=$ac_ct_STRIP
2409 fi
2410else
2411 STRIP="$ac_cv_prog_STRIP"
2412fi
2413
2414fi
2415INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2416
2417# We need awk for the "check" target. The system "awk" is bad on
2418# some platforms.
2419# Always define AMTAR for backward compatibility.
2420
2421AMTAR=${AMTAR-"${am_missing_run}tar"}
2422
2423am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2424
2425
2426
2427
2428
2429
2430ac_config_headers="$ac_config_headers config.h"
2431
2432
2433#AC_PREFIX_DEFAULT([])
2434
2435# Checks for programs.
2436ac_ext=cpp
2437ac_cpp='$CXXCPP $CPPFLAGS'
2438ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2439ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2440ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2441if test -z "$CXX"; then
2442 if test -n "$CCC"; then
2443 CXX=$CCC
2444 else
2445 if test -n "$ac_tool_prefix"; then
2446 for ac_prog in g++
2447 do
2448 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2449set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2450{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2451echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2452if test "${ac_cv_prog_CXX+set}" = set; then
2453 echo $ECHO_N "(cached) $ECHO_C" >&6
2454else
2455 if test -n "$CXX"; then
2456 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2457else
2458as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2459for as_dir in $PATH
2460do
2461 IFS=$as_save_IFS
2462 test -z "$as_dir" && as_dir=.
2463 for ac_exec_ext in '' $ac_executable_extensions; do
2464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2465 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2466 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2467 break 2
2468 fi
2469done
2470done
2471IFS=$as_save_IFS
2472
2473fi
2474fi
2475CXX=$ac_cv_prog_CXX
2476if test -n "$CXX"; then
2477 { echo "$as_me:$LINENO: result: $CXX" >&5
2478echo "${ECHO_T}$CXX" >&6; }
2479else
2480 { echo "$as_me:$LINENO: result: no" >&5
2481echo "${ECHO_T}no" >&6; }
2482fi
2483
2484
2485 test -n "$CXX" && break
2486 done
2487fi
2488if test -z "$CXX"; then
2489 ac_ct_CXX=$CXX
2490 for ac_prog in g++
2491do
2492 # Extract the first word of "$ac_prog", so it can be a program name with args.
2493set dummy $ac_prog; ac_word=$2
2494{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2495echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2496if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2497 echo $ECHO_N "(cached) $ECHO_C" >&6
2498else
2499 if test -n "$ac_ct_CXX"; then
2500 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2501else
2502as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2503for as_dir in $PATH
2504do
2505 IFS=$as_save_IFS
2506 test -z "$as_dir" && as_dir=.
2507 for ac_exec_ext in '' $ac_executable_extensions; do
2508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2509 ac_cv_prog_ac_ct_CXX="$ac_prog"
2510 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2511 break 2
2512 fi
2513done
2514done
2515IFS=$as_save_IFS
2516
2517fi
2518fi
2519ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2520if test -n "$ac_ct_CXX"; then
2521 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2522echo "${ECHO_T}$ac_ct_CXX" >&6; }
2523else
2524 { echo "$as_me:$LINENO: result: no" >&5
2525echo "${ECHO_T}no" >&6; }
2526fi
2527
2528
2529 test -n "$ac_ct_CXX" && break
2530done
2531
2532 if test "x$ac_ct_CXX" = x; then
2533 CXX="g++"
2534 else
2535 case $cross_compiling:$ac_tool_warned in
2536yes:)
2537{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2538whose name does not start with the host triplet. If you think this
2539configuration is useful to you, please write to autoconf@gnu.org." >&5
2540echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2541whose name does not start with the host triplet. If you think this
2542configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2543ac_tool_warned=yes ;;
2544esac
2545 CXX=$ac_ct_CXX
2546 fi
2547fi
2548
2549 fi
2550fi
2551# Provide some information about the compiler.
2552echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2553ac_compiler=`set X $ac_compile; echo $2`
2554{ (ac_try="$ac_compiler --version >&5"
2555case "(($ac_try" in
2556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2557 *) ac_try_echo=$ac_try;;
2558esac
2559eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2560 (eval "$ac_compiler --version >&5") 2>&5
2561 ac_status=$?
2562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2563 (exit $ac_status); }
2564{ (ac_try="$ac_compiler -v >&5"
2565case "(($ac_try" in
2566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2567 *) ac_try_echo=$ac_try;;
2568esac
2569eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2570 (eval "$ac_compiler -v >&5") 2>&5
2571 ac_status=$?
2572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2573 (exit $ac_status); }
2574{ (ac_try="$ac_compiler -V >&5"
2575case "(($ac_try" in
2576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2577 *) ac_try_echo=$ac_try;;
2578esac
2579eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2580 (eval "$ac_compiler -V >&5") 2>&5
2581 ac_status=$?
2582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2583 (exit $ac_status); }
2584
2585cat >conftest.$ac_ext <<_ACEOF
2586/* confdefs.h. */
2587_ACEOF
2588cat confdefs.h >>conftest.$ac_ext
2589cat >>conftest.$ac_ext <<_ACEOF
2590/* end confdefs.h. */
2591
2592int
2593main ()
2594{
2595
2596 ;
2597 return 0;
2598}
2599_ACEOF
2600ac_clean_files_save=$ac_clean_files
2601ac_clean_files="$ac_clean_files a.out a.exe b.out"
2602# Try to create an executable without -o first, disregard a.out.
2603# It will help us diagnose broken compilers, and finding out an intuition
2604# of exeext.
2605{ echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2606echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6; }
2607ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2608#
2609# List of possible output files, starting from the most likely.
2610# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2611# only as a last resort. b.out is created by i960 compilers.
2612ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2613#
2614# The IRIX 6 linker writes into existing files which may not be
2615# executable, retaining their permissions. Remove them first so a
2616# subsequent execution test works.
2617ac_rmfiles=
2618for ac_file in $ac_files
2619do
2620 case $ac_file in
2621 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2622 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2623 esac
2624done
2625rm -f $ac_rmfiles
2626
2627if { (ac_try="$ac_link_default"
2628case "(($ac_try" in
2629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2630 *) ac_try_echo=$ac_try;;
2631esac
2632eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2633 (eval "$ac_link_default") 2>&5
2634 ac_status=$?
2635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2636 (exit $ac_status); }; then
2637 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2638# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2639# in a Makefile. We should not override ac_cv_exeext if it was cached,
2640# so that the user can short-circuit this test for compilers unknown to
2641# Autoconf.
2642for ac_file in $ac_files ''
2643do
2644 test -f "$ac_file" || continue
2645 case $ac_file in
2646 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2647 ;;
2648 [ab].out )
2649 # We found the default executable, but exeext='' is most
2650 # certainly right.
2651 break;;
2652 *.* )
2653 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2654 then :; else
2655 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2656 fi
2657 # We set ac_cv_exeext here because the later test for it is not
2658 # safe: cross compilers may not add the suffix if given an `-o'
2659 # argument, so we may need to know it at that point already.
2660 # Even if this section looks crufty: it has the advantage of
2661 # actually working.
2662 break;;
2663 * )
2664 break;;
2665 esac
2666done
2667test "$ac_cv_exeext" = no && ac_cv_exeext=
2668
2669else
2670 ac_file=''
2671fi
2672
2673{ echo "$as_me:$LINENO: result: $ac_file" >&5
2674echo "${ECHO_T}$ac_file" >&6; }
2675if test -z "$ac_file"; then
2676 echo "$as_me: failed program was:" >&5
2677sed 's/^/| /' conftest.$ac_ext >&5
2678
2679{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2680See \`config.log' for more details." >&5
2681echo "$as_me: error: C++ compiler cannot create executables
2682See \`config.log' for more details." >&2;}
2683 { (exit 77); exit 77; }; }
2684fi
2685
2686ac_exeext=$ac_cv_exeext
2687
2688# Check that the compiler produces executables we can run. If not, either
2689# the compiler is broken, or we cross compile.
2690{ echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2691echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6; }
2692# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2693# If not cross compiling, check that we can run a simple program.
2694if test "$cross_compiling" != yes; then
2695 if { ac_try='./$ac_file'
2696 { (case "(($ac_try" in
2697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2698 *) ac_try_echo=$ac_try;;
2699esac
2700eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2701 (eval "$ac_try") 2>&5
2702 ac_status=$?
2703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2704 (exit $ac_status); }; }; then
2705 cross_compiling=no
2706 else
2707 if test "$cross_compiling" = maybe; then
2708 cross_compiling=yes
2709 else
2710 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2711If you meant to cross compile, use \`--host'.
2712See \`config.log' for more details." >&5
2713echo "$as_me: error: cannot run C++ compiled programs.
2714If you meant to cross compile, use \`--host'.
2715See \`config.log' for more details." >&2;}
2716 { (exit 1); exit 1; }; }
2717 fi
2718 fi
2719fi
2720{ echo "$as_me:$LINENO: result: yes" >&5
2721echo "${ECHO_T}yes" >&6; }
2722
2723rm -f a.out a.exe conftest$ac_cv_exeext b.out
2724ac_clean_files=$ac_clean_files_save
2725# Check that the compiler produces executables we can run. If not, either
2726# the compiler is broken, or we cross compile.
2727{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2728echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2729{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2730echo "${ECHO_T}$cross_compiling" >&6; }
2731
2732{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2733echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2734if { (ac_try="$ac_link"
2735case "(($ac_try" in
2736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2737 *) ac_try_echo=$ac_try;;
2738esac
2739eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2740 (eval "$ac_link") 2>&5
2741 ac_status=$?
2742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2743 (exit $ac_status); }; then
2744 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2745# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2746# work properly (i.e., refer to `conftest.exe'), while it won't with
2747# `rm'.
2748for ac_file in conftest.exe conftest conftest.*; do
2749 test -f "$ac_file" || continue
2750 case $ac_file in
2751 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2752 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2753 break;;
2754 * ) break;;
2755 esac
2756done
2757else
2758 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2759See \`config.log' for more details." >&5
2760echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2761See \`config.log' for more details." >&2;}
2762 { (exit 1); exit 1; }; }
2763fi
2764
2765rm -f conftest$ac_cv_exeext
2766{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2767echo "${ECHO_T}$ac_cv_exeext" >&6; }
2768
2769rm -f conftest.$ac_ext
2770EXEEXT=$ac_cv_exeext
2771ac_exeext=$EXEEXT
2772{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2773echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2774if test "${ac_cv_objext+set}" = set; then
2775 echo $ECHO_N "(cached) $ECHO_C" >&6
2776else
2777 cat >conftest.$ac_ext <<_ACEOF
2778/* confdefs.h. */
2779_ACEOF
2780cat confdefs.h >>conftest.$ac_ext
2781cat >>conftest.$ac_ext <<_ACEOF
2782/* end confdefs.h. */
2783
2784int
2785main ()
2786{
2787
2788 ;
2789 return 0;
2790}
2791_ACEOF
2792rm -f conftest.o conftest.obj
2793if { (ac_try="$ac_compile"
2794case "(($ac_try" in
2795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2796 *) ac_try_echo=$ac_try;;
2797esac
2798eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2799 (eval "$ac_compile") 2>&5
2800 ac_status=$?
2801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2802 (exit $ac_status); }; then
2803 for ac_file in conftest.o conftest.obj conftest.*; do
2804 test -f "$ac_file" || continue;
2805 case $ac_file in
2806 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2807 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2808 break;;
2809 esac
2810done
2811else
2812 echo "$as_me: failed program was:" >&5
2813sed 's/^/| /' conftest.$ac_ext >&5
2814
2815{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2816See \`config.log' for more details." >&5
2817echo "$as_me: error: cannot compute suffix of object files: cannot compile
2818See \`config.log' for more details." >&2;}
2819 { (exit 1); exit 1; }; }
2820fi
2821
2822rm -f conftest.$ac_cv_objext conftest.$ac_ext
2823fi
2824{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2825echo "${ECHO_T}$ac_cv_objext" >&6; }
2826OBJEXT=$ac_cv_objext
2827ac_objext=$OBJEXT
2828{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2829echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2830if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2831 echo $ECHO_N "(cached) $ECHO_C" >&6
2832else
2833 cat >conftest.$ac_ext <<_ACEOF
2834/* confdefs.h. */
2835_ACEOF
2836cat confdefs.h >>conftest.$ac_ext
2837cat >>conftest.$ac_ext <<_ACEOF
2838/* end confdefs.h. */
2839
2840int
2841main ()
2842{
2843#ifndef __GNUC__
2844 choke me
2845#endif
2846
2847 ;
2848 return 0;
2849}
2850_ACEOF
2851rm -f conftest.$ac_objext
2852if { (ac_try="$ac_compile"
2853case "(($ac_try" in
2854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2855 *) ac_try_echo=$ac_try;;
2856esac
2857eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2858 (eval "$ac_compile") 2>conftest.er1
2859 ac_status=$?
2860 grep -v '^ *+' conftest.er1 >conftest.err
2861 rm -f conftest.er1
2862 cat conftest.err >&5
2863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2864 (exit $ac_status); } && {
2865 test -z "$ac_cxx_werror_flag" ||
2866 test ! -s conftest.err
2867 } && test -s conftest.$ac_objext; then
2868 ac_compiler_gnu=yes
2869else
2870 echo "$as_me: failed program was:" >&5
2871sed 's/^/| /' conftest.$ac_ext >&5
2872
2873 ac_compiler_gnu=no
2874fi
2875
2876rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2877ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2878
2879fi
2880{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2881echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2882GXX=`test $ac_compiler_gnu = yes && echo yes`
2883ac_test_CXXFLAGS=${CXXFLAGS+set}
2884ac_save_CXXFLAGS=$CXXFLAGS
2885{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2886echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2887if test "${ac_cv_prog_cxx_g+set}" = set; then
2888 echo $ECHO_N "(cached) $ECHO_C" >&6
2889else
2890 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2891 ac_cxx_werror_flag=yes
2892 ac_cv_prog_cxx_g=no
2893 CXXFLAGS="-g"
2894 cat >conftest.$ac_ext <<_ACEOF
2895/* confdefs.h. */
2896_ACEOF
2897cat confdefs.h >>conftest.$ac_ext
2898cat >>conftest.$ac_ext <<_ACEOF
2899/* end confdefs.h. */
2900
2901int
2902main ()
2903{
2904
2905 ;
2906 return 0;
2907}
2908_ACEOF
2909rm -f conftest.$ac_objext
2910if { (ac_try="$ac_compile"
2911case "(($ac_try" in
2912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2913 *) ac_try_echo=$ac_try;;
2914esac
2915eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2916 (eval "$ac_compile") 2>conftest.er1
2917 ac_status=$?
2918 grep -v '^ *+' conftest.er1 >conftest.err
2919 rm -f conftest.er1
2920 cat conftest.err >&5
2921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2922 (exit $ac_status); } && {
2923 test -z "$ac_cxx_werror_flag" ||
2924 test ! -s conftest.err
2925 } && test -s conftest.$ac_objext; then
2926 ac_cv_prog_cxx_g=yes
2927else
2928 echo "$as_me: failed program was:" >&5
2929sed 's/^/| /' conftest.$ac_ext >&5
2930
2931 CXXFLAGS=""
2932 cat >conftest.$ac_ext <<_ACEOF
2933/* confdefs.h. */
2934_ACEOF
2935cat confdefs.h >>conftest.$ac_ext
2936cat >>conftest.$ac_ext <<_ACEOF
2937/* end confdefs.h. */
2938
2939int
2940main ()
2941{
2942
2943 ;
2944 return 0;
2945}
2946_ACEOF
2947rm -f conftest.$ac_objext
2948if { (ac_try="$ac_compile"
2949case "(($ac_try" in
2950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2951 *) ac_try_echo=$ac_try;;
2952esac
2953eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2954 (eval "$ac_compile") 2>conftest.er1
2955 ac_status=$?
2956 grep -v '^ *+' conftest.er1 >conftest.err
2957 rm -f conftest.er1
2958 cat conftest.err >&5
2959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2960 (exit $ac_status); } && {
2961 test -z "$ac_cxx_werror_flag" ||
2962 test ! -s conftest.err
2963 } && test -s conftest.$ac_objext; then
2964 :
2965else
2966 echo "$as_me: failed program was:" >&5
2967sed 's/^/| /' conftest.$ac_ext >&5
2968
2969 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2970 CXXFLAGS="-g"
2971 cat >conftest.$ac_ext <<_ACEOF
2972/* confdefs.h. */
2973_ACEOF
2974cat confdefs.h >>conftest.$ac_ext
2975cat >>conftest.$ac_ext <<_ACEOF
2976/* end confdefs.h. */
2977
2978int
2979main ()
2980{
2981
2982 ;
2983 return 0;
2984}
2985_ACEOF
2986rm -f conftest.$ac_objext
2987if { (ac_try="$ac_compile"
2988case "(($ac_try" in
2989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2990 *) ac_try_echo=$ac_try;;
2991esac
2992eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2993 (eval "$ac_compile") 2>conftest.er1
2994 ac_status=$?
2995 grep -v '^ *+' conftest.er1 >conftest.err
2996 rm -f conftest.er1
2997 cat conftest.err >&5
2998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2999 (exit $ac_status); } && {
3000 test -z "$ac_cxx_werror_flag" ||
3001 test ! -s conftest.err
3002 } && test -s conftest.$ac_objext; then
3003 ac_cv_prog_cxx_g=yes
3004else
3005 echo "$as_me: failed program was:" >&5
3006sed 's/^/| /' conftest.$ac_ext >&5
3007
3008
3009fi
3010
3011rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3012fi
3013
3014rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3015fi
3016
3017rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3018 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3019fi
3020{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3021echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3022if test "$ac_test_CXXFLAGS" = set; then
3023 CXXFLAGS=$ac_save_CXXFLAGS
3024elif test $ac_cv_prog_cxx_g = yes; then
3025 if test "$GXX" = yes; then
3026 CXXFLAGS="-g -O2"
3027 else
3028 CXXFLAGS="-g"
3029 fi
3030else
3031 if test "$GXX" = yes; then
3032 CXXFLAGS="-O2"
3033 else
3034 CXXFLAGS=
3035 fi
3036fi
3037ac_ext=c
3038ac_cpp='$CPP $CPPFLAGS'
3039ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3040ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3041ac_compiler_gnu=$ac_cv_c_compiler_gnu
3042DEPDIR="${am__leading_dot}deps"
3043
3044ac_config_commands="$ac_config_commands depfiles"
3045
3046
3047am_make=${MAKE-make}
3048cat > confinc << 'END'
3049am__doit:
3050 @echo done
3051.PHONY: am__doit
3052END
3053# If we don't find an include directive, just comment out the code.
3054{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3055echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3056am__include="#"
3057am__quote=
3058_am_result=none
3059# First try GNU make style include.
3060echo "include confinc" > confmf
3061# We grep out `Entering directory' and `Leaving directory'
3062# messages which can occur if `w' ends up in MAKEFLAGS.
3063# In particular we don't look at `^make:' because GNU make might
3064# be invoked under some other name (usually "gmake"), in which
3065# case it prints its new name instead of `make'.
3066if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3067 am__include=include
3068 am__quote=
3069 _am_result=GNU
3070fi
3071# Now try BSD make style include.
3072if test "$am__include" = "#"; then
3073 echo '.include "confinc"' > confmf
3074 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3075 am__include=.include
3076 am__quote="\""
3077 _am_result=BSD
3078 fi
3079fi
3080
3081
3082{ echo "$as_me:$LINENO: result: $_am_result" >&5
3083echo "${ECHO_T}$_am_result" >&6; }
3084rm -f confinc confmf
3085
3086# Check whether --enable-dependency-tracking was given.
3087if test "${enable_dependency_tracking+set}" = set; then
3088 enableval=$enable_dependency_tracking;
3089fi
3090
3091if test "x$enable_dependency_tracking" != xno; then
3092 am_depcomp="$ac_aux_dir/depcomp"
3093 AMDEPBACKSLASH='\'
3094fi
3095 if test "x$enable_dependency_tracking" != xno; then
3096 AMDEP_TRUE=
3097 AMDEP_FALSE='#'
3098else
3099 AMDEP_TRUE='#'
3100 AMDEP_FALSE=
3101fi
3102
3103
3104
3105depcc="$CXX" am_compiler_list=
3106
3107{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3108echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3109if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3110 echo $ECHO_N "(cached) $ECHO_C" >&6
3111else
3112 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3113 # We make a subdir and do the tests there. Otherwise we can end up
3114 # making bogus files that we don't know about and never remove. For
3115 # instance it was reported that on HP-UX the gcc test will end up
3116 # making a dummy file named `D' -- because `-MD' means `put the output
3117 # in D'.
3118 mkdir conftest.dir
3119 # Copy depcomp to subdir because otherwise we won't find it if we're
3120 # using a relative directory.
3121 cp "$am_depcomp" conftest.dir
3122 cd conftest.dir
3123 # We will build objects and dependencies in a subdirectory because
3124 # it helps to detect inapplicable dependency modes. For instance
3125 # both Tru64's cc and ICC support -MD to output dependencies as a
3126 # side effect of compilation, but ICC will put the dependencies in
3127 # the current directory while Tru64 will put them in the object
3128 # directory.
3129 mkdir sub
3130
3131 am_cv_CXX_dependencies_compiler_type=none
3132 if test "$am_compiler_list" = ""; then
3133 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3134 fi
3135 for depmode in $am_compiler_list; do
3136 # Setup a source with many dependencies, because some compilers
3137 # like to wrap large dependency lists on column 80 (with \), and
3138 # we should not choose a depcomp mode which is confused by this.
3139 #
3140 # We need to recreate these files for each test, as the compiler may
3141 # overwrite some of them when testing with obscure command lines.
3142 # This happens at least with the AIX C compiler.
3143 : > sub/conftest.c
3144 for i in 1 2 3 4 5 6; do
3145 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3146 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3147 # Solaris 8's {/usr,}/bin/sh.
3148 touch sub/conftst$i.h
3149 done
3150 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3151
3152 case $depmode in
3153 nosideeffect)
3154 # after this tag, mechanisms are not by side-effect, so they'll
3155 # only be used when explicitly requested
3156 if test "x$enable_dependency_tracking" = xyes; then
3157 continue
3158 else
3159 break
3160 fi
3161 ;;
3162 none) break ;;
3163 esac
3164 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3165 # mode. It turns out that the SunPro C++ compiler does not properly
3166 # handle `-M -o', and we need to detect this.
3167 if depmode=$depmode \
3168 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3169 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3170 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3171 >/dev/null 2>conftest.err &&
3172 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3173 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3174 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3175 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3176 # icc doesn't choke on unknown options, it will just issue warnings
3177 # or remarks (even with -Werror). So we grep stderr for any message
3178 # that says an option was ignored or not supported.
3179 # When given -MP, icc 7.0 and 7.1 complain thusly:
3180 # icc: Command line warning: ignoring option '-M'; no argument required
3181 # The diagnosis changed in icc 8.0:
3182 # icc: Command line remark: option '-MP' not supported
3183 if (grep 'ignoring option' conftest.err ||
3184 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3185 am_cv_CXX_dependencies_compiler_type=$depmode
3186 break
3187 fi
3188 fi
3189 done
3190
3191 cd ..
3192 rm -rf conftest.dir
3193else
3194 am_cv_CXX_dependencies_compiler_type=none
3195fi
3196
3197fi
3198{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3199echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
3200CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3201
3202 if
3203 test "x$enable_dependency_tracking" != xno \
3204 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3205 am__fastdepCXX_TRUE=
3206 am__fastdepCXX_FALSE='#'
3207else
3208 am__fastdepCXX_TRUE='#'
3209 am__fastdepCXX_FALSE=
3210fi
3211
3212
3213ac_ext=c
3214ac_cpp='$CPP $CPPFLAGS'
3215ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3216ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3217ac_compiler_gnu=$ac_cv_c_compiler_gnu
3218if test -n "$ac_tool_prefix"; then
3219 for ac_prog in gcc g++
3220 do
3221 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3222set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3223{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3224echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3225if test "${ac_cv_prog_CC+set}" = set; then
3226 echo $ECHO_N "(cached) $ECHO_C" >&6
3227else
3228 if test -n "$CC"; then
3229 ac_cv_prog_CC="$CC" # Let the user override the test.
3230else
3231as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3232for as_dir in $PATH
3233do
3234 IFS=$as_save_IFS
3235 test -z "$as_dir" && as_dir=.
3236 for ac_exec_ext in '' $ac_executable_extensions; do
3237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3238 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3239 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3240 break 2
3241 fi
3242done
3243done
3244IFS=$as_save_IFS
3245
3246fi
3247fi
3248CC=$ac_cv_prog_CC
3249if test -n "$CC"; then
3250 { echo "$as_me:$LINENO: result: $CC" >&5
3251echo "${ECHO_T}$CC" >&6; }
3252else
3253 { echo "$as_me:$LINENO: result: no" >&5
3254echo "${ECHO_T}no" >&6; }
3255fi
3256
3257
3258 test -n "$CC" && break
3259 done
3260fi
3261if test -z "$CC"; then
3262 ac_ct_CC=$CC
3263 for ac_prog in gcc g++
3264do
3265 # Extract the first word of "$ac_prog", so it can be a program name with args.
3266set dummy $ac_prog; ac_word=$2
3267{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3268echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3269if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3270 echo $ECHO_N "(cached) $ECHO_C" >&6
3271else
3272 if test -n "$ac_ct_CC"; then
3273 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3274else
3275as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3276for as_dir in $PATH
3277do
3278 IFS=$as_save_IFS
3279 test -z "$as_dir" && as_dir=.
3280 for ac_exec_ext in '' $ac_executable_extensions; do
3281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3282 ac_cv_prog_ac_ct_CC="$ac_prog"
3283 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3284 break 2
3285 fi
3286done
3287done
3288IFS=$as_save_IFS
3289
3290fi
3291fi
3292ac_ct_CC=$ac_cv_prog_ac_ct_CC
3293if test -n "$ac_ct_CC"; then
3294 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3295echo "${ECHO_T}$ac_ct_CC" >&6; }
3296else
3297 { echo "$as_me:$LINENO: result: no" >&5
3298echo "${ECHO_T}no" >&6; }
3299fi
3300
3301
3302 test -n "$ac_ct_CC" && break
3303done
3304
3305 if test "x$ac_ct_CC" = x; then
3306 CC=""
3307 else
3308 case $cross_compiling:$ac_tool_warned in
3309yes:)
3310{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3311whose name does not start with the host triplet. If you think this
3312configuration is useful to you, please write to autoconf@gnu.org." >&5
3313echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3314whose name does not start with the host triplet. If you think this
3315configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3316ac_tool_warned=yes ;;
3317esac
3318 CC=$ac_ct_CC
3319 fi
3320fi
3321
3322
3323test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3324See \`config.log' for more details." >&5
3325echo "$as_me: error: no acceptable C compiler found in \$PATH
3326See \`config.log' for more details." >&2;}
3327 { (exit 1); exit 1; }; }
3328
3329# Provide some information about the compiler.
3330echo "$as_me:$LINENO: checking for C compiler version" >&5
3331ac_compiler=`set X $ac_compile; echo $2`
3332{ (ac_try="$ac_compiler --version >&5"
3333case "(($ac_try" in
3334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3335 *) ac_try_echo=$ac_try;;
3336esac
3337eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3338 (eval "$ac_compiler --version >&5") 2>&5
3339 ac_status=$?
3340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3341 (exit $ac_status); }
3342{ (ac_try="$ac_compiler -v >&5"
3343case "(($ac_try" in
3344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3345 *) ac_try_echo=$ac_try;;
3346esac
3347eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3348 (eval "$ac_compiler -v >&5") 2>&5
3349 ac_status=$?
3350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3351 (exit $ac_status); }
3352{ (ac_try="$ac_compiler -V >&5"
3353case "(($ac_try" in
3354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3355 *) ac_try_echo=$ac_try;;
3356esac
3357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3358 (eval "$ac_compiler -V >&5") 2>&5
3359 ac_status=$?
3360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3361 (exit $ac_status); }
3362
3363{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3364echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3365if test "${ac_cv_c_compiler_gnu+set}" = set; then
3366 echo $ECHO_N "(cached) $ECHO_C" >&6
3367else
3368 cat >conftest.$ac_ext <<_ACEOF
3369/* confdefs.h. */
3370_ACEOF
3371cat confdefs.h >>conftest.$ac_ext
3372cat >>conftest.$ac_ext <<_ACEOF
3373/* end confdefs.h. */
3374
3375int
3376main ()
3377{
3378#ifndef __GNUC__
3379 choke me
3380#endif
3381
3382 ;
3383 return 0;
3384}
3385_ACEOF
3386rm -f conftest.$ac_objext
3387if { (ac_try="$ac_compile"
3388case "(($ac_try" in
3389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3390 *) ac_try_echo=$ac_try;;
3391esac
3392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3393 (eval "$ac_compile") 2>conftest.er1
3394 ac_status=$?
3395 grep -v '^ *+' conftest.er1 >conftest.err
3396 rm -f conftest.er1
3397 cat conftest.err >&5
3398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3399 (exit $ac_status); } && {
3400 test -z "$ac_c_werror_flag" ||
3401 test ! -s conftest.err
3402 } && test -s conftest.$ac_objext; then
3403 ac_compiler_gnu=yes
3404else
3405 echo "$as_me: failed program was:" >&5
3406sed 's/^/| /' conftest.$ac_ext >&5
3407
3408 ac_compiler_gnu=no
3409fi
3410
3411rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3412ac_cv_c_compiler_gnu=$ac_compiler_gnu
3413
3414fi
3415{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3416echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3417GCC=`test $ac_compiler_gnu = yes && echo yes`
3418ac_test_CFLAGS=${CFLAGS+set}
3419ac_save_CFLAGS=$CFLAGS
3420{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3421echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3422if test "${ac_cv_prog_cc_g+set}" = set; then
3423 echo $ECHO_N "(cached) $ECHO_C" >&6
3424else
3425 ac_save_c_werror_flag=$ac_c_werror_flag
3426 ac_c_werror_flag=yes
3427 ac_cv_prog_cc_g=no
3428 CFLAGS="-g"
3429 cat >conftest.$ac_ext <<_ACEOF
3430/* confdefs.h. */
3431_ACEOF
3432cat confdefs.h >>conftest.$ac_ext
3433cat >>conftest.$ac_ext <<_ACEOF
3434/* end confdefs.h. */
3435
3436int
3437main ()
3438{
3439
3440 ;
3441 return 0;
3442}
3443_ACEOF
3444rm -f conftest.$ac_objext
3445if { (ac_try="$ac_compile"
3446case "(($ac_try" in
3447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3448 *) ac_try_echo=$ac_try;;
3449esac
3450eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3451 (eval "$ac_compile") 2>conftest.er1
3452 ac_status=$?
3453 grep -v '^ *+' conftest.er1 >conftest.err
3454 rm -f conftest.er1
3455 cat conftest.err >&5
3456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3457 (exit $ac_status); } && {
3458 test -z "$ac_c_werror_flag" ||
3459 test ! -s conftest.err
3460 } && test -s conftest.$ac_objext; then
3461 ac_cv_prog_cc_g=yes
3462else
3463 echo "$as_me: failed program was:" >&5
3464sed 's/^/| /' conftest.$ac_ext >&5
3465
3466 CFLAGS=""
3467 cat >conftest.$ac_ext <<_ACEOF
3468/* confdefs.h. */
3469_ACEOF
3470cat confdefs.h >>conftest.$ac_ext
3471cat >>conftest.$ac_ext <<_ACEOF
3472/* end confdefs.h. */
3473
3474int
3475main ()
3476{
3477
3478 ;
3479 return 0;
3480}
3481_ACEOF
3482rm -f conftest.$ac_objext
3483if { (ac_try="$ac_compile"
3484case "(($ac_try" in
3485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3486 *) ac_try_echo=$ac_try;;
3487esac
3488eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3489 (eval "$ac_compile") 2>conftest.er1
3490 ac_status=$?
3491 grep -v '^ *+' conftest.er1 >conftest.err
3492 rm -f conftest.er1
3493 cat conftest.err >&5
3494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3495 (exit $ac_status); } && {
3496 test -z "$ac_c_werror_flag" ||
3497 test ! -s conftest.err
3498 } && test -s conftest.$ac_objext; then
3499 :
3500else
3501 echo "$as_me: failed program was:" >&5
3502sed 's/^/| /' conftest.$ac_ext >&5
3503
3504 ac_c_werror_flag=$ac_save_c_werror_flag
3505 CFLAGS="-g"
3506 cat >conftest.$ac_ext <<_ACEOF
3507/* confdefs.h. */
3508_ACEOF
3509cat confdefs.h >>conftest.$ac_ext
3510cat >>conftest.$ac_ext <<_ACEOF
3511/* end confdefs.h. */
3512
3513int
3514main ()
3515{
3516
3517 ;
3518 return 0;
3519}
3520_ACEOF
3521rm -f conftest.$ac_objext
3522if { (ac_try="$ac_compile"
3523case "(($ac_try" in
3524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3525 *) ac_try_echo=$ac_try;;
3526esac
3527eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3528 (eval "$ac_compile") 2>conftest.er1
3529 ac_status=$?
3530 grep -v '^ *+' conftest.er1 >conftest.err
3531 rm -f conftest.er1
3532 cat conftest.err >&5
3533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3534 (exit $ac_status); } && {
3535 test -z "$ac_c_werror_flag" ||
3536 test ! -s conftest.err
3537 } && test -s conftest.$ac_objext; then
3538 ac_cv_prog_cc_g=yes
3539else
3540 echo "$as_me: failed program was:" >&5
3541sed 's/^/| /' conftest.$ac_ext >&5
3542
3543
3544fi
3545
3546rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3547fi
3548
3549rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3550fi
3551
3552rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3553 ac_c_werror_flag=$ac_save_c_werror_flag
3554fi
3555{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3556echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3557if test "$ac_test_CFLAGS" = set; then
3558 CFLAGS=$ac_save_CFLAGS
3559elif test $ac_cv_prog_cc_g = yes; then
3560 if test "$GCC" = yes; then
3561 CFLAGS="-g -O2"
3562 else
3563 CFLAGS="-g"
3564 fi
3565else
3566 if test "$GCC" = yes; then
3567 CFLAGS="-O2"
3568 else
3569 CFLAGS=
3570 fi
3571fi
3572{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3573echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3574if test "${ac_cv_prog_cc_c89+set}" = set; then
3575 echo $ECHO_N "(cached) $ECHO_C" >&6
3576else
3577 ac_cv_prog_cc_c89=no
3578ac_save_CC=$CC
3579cat >conftest.$ac_ext <<_ACEOF
3580/* confdefs.h. */
3581_ACEOF
3582cat confdefs.h >>conftest.$ac_ext
3583cat >>conftest.$ac_ext <<_ACEOF
3584/* end confdefs.h. */
3585#include <stdarg.h>
3586#include <stdio.h>
3587#include <sys/types.h>
3588#include <sys/stat.h>
3589/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3590struct buf { int x; };
3591FILE * (*rcsopen) (struct buf *, struct stat *, int);
3592static char *e (p, i)
3593 char **p;
3594 int i;
3595{
3596 return p[i];
3597}
3598static char *f (char * (*g) (char **, int), char **p, ...)
3599{
3600 char *s;
3601 va_list v;
3602 va_start (v,p);
3603 s = g (p, va_arg (v,int));
3604 va_end (v);
3605 return s;
3606}
3607
3608/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3609 function prototypes and stuff, but not '\xHH' hex character constants.
3610 These don't provoke an error unfortunately, instead are silently treated
3611 as 'x'. The following induces an error, until -std is added to get
3612 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3613 array size at least. It's necessary to write '\x00'==0 to get something
3614 that's true only with -std. */
3615int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3616
3617/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3618 inside strings and character constants. */
3619#define FOO(x) 'x'
3620int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3621
3622int test (int i, double x);
3623struct s1 {int (*f) (int a);};
3624struct s2 {int (*f) (double a);};
3625int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3626int argc;
3627char **argv;
3628int
3629main ()
3630{
3631return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3632 ;
3633 return 0;
3634}
3635_ACEOF
3636for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3637 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3638do
3639 CC="$ac_save_CC $ac_arg"
3640 rm -f conftest.$ac_objext
3641if { (ac_try="$ac_compile"
3642case "(($ac_try" in
3643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3644 *) ac_try_echo=$ac_try;;
3645esac
3646eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3647 (eval "$ac_compile") 2>conftest.er1
3648 ac_status=$?
3649 grep -v '^ *+' conftest.er1 >conftest.err
3650 rm -f conftest.er1
3651 cat conftest.err >&5
3652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3653 (exit $ac_status); } && {
3654 test -z "$ac_c_werror_flag" ||
3655 test ! -s conftest.err
3656 } && test -s conftest.$ac_objext; then
3657 ac_cv_prog_cc_c89=$ac_arg
3658else
3659 echo "$as_me: failed program was:" >&5
3660sed 's/^/| /' conftest.$ac_ext >&5
3661
3662
3663fi
3664
3665rm -f core conftest.err conftest.$ac_objext
3666 test "x$ac_cv_prog_cc_c89" != "xno" && break
3667done
3668rm -f conftest.$ac_ext
3669CC=$ac_save_CC
3670
3671fi
3672# AC_CACHE_VAL
3673case "x$ac_cv_prog_cc_c89" in
3674 x)
3675 { echo "$as_me:$LINENO: result: none needed" >&5
3676echo "${ECHO_T}none needed" >&6; } ;;
3677 xno)
3678 { echo "$as_me:$LINENO: result: unsupported" >&5
3679echo "${ECHO_T}unsupported" >&6; } ;;
3680 *)
3681 CC="$CC $ac_cv_prog_cc_c89"
3682 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3683echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3684esac
3685
3686
3687ac_ext=c
3688ac_cpp='$CPP $CPPFLAGS'
3689ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3690ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3691ac_compiler_gnu=$ac_cv_c_compiler_gnu
3692
3693depcc="$CC" am_compiler_list=
3694
3695{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3696echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3697if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3698 echo $ECHO_N "(cached) $ECHO_C" >&6
3699else
3700 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3701 # We make a subdir and do the tests there. Otherwise we can end up
3702 # making bogus files that we don't know about and never remove. For
3703 # instance it was reported that on HP-UX the gcc test will end up
3704 # making a dummy file named `D' -- because `-MD' means `put the output
3705 # in D'.
3706 mkdir conftest.dir
3707 # Copy depcomp to subdir because otherwise we won't find it if we're
3708 # using a relative directory.
3709 cp "$am_depcomp" conftest.dir
3710 cd conftest.dir
3711 # We will build objects and dependencies in a subdirectory because
3712 # it helps to detect inapplicable dependency modes. For instance
3713 # both Tru64's cc and ICC support -MD to output dependencies as a
3714 # side effect of compilation, but ICC will put the dependencies in
3715 # the current directory while Tru64 will put them in the object
3716 # directory.
3717 mkdir sub
3718
3719 am_cv_CC_dependencies_compiler_type=none
3720 if test "$am_compiler_list" = ""; then
3721 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3722 fi
3723 for depmode in $am_compiler_list; do
3724 # Setup a source with many dependencies, because some compilers
3725 # like to wrap large dependency lists on column 80 (with \), and
3726 # we should not choose a depcomp mode which is confused by this.
3727 #
3728 # We need to recreate these files for each test, as the compiler may
3729 # overwrite some of them when testing with obscure command lines.
3730 # This happens at least with the AIX C compiler.
3731 : > sub/conftest.c
3732 for i in 1 2 3 4 5 6; do
3733 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3734 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3735 # Solaris 8's {/usr,}/bin/sh.
3736 touch sub/conftst$i.h
3737 done
3738 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3739
3740 case $depmode in
3741 nosideeffect)
3742 # after this tag, mechanisms are not by side-effect, so they'll
3743 # only be used when explicitly requested
3744 if test "x$enable_dependency_tracking" = xyes; then
3745 continue
3746 else
3747 break
3748 fi
3749 ;;
3750 none) break ;;
3751 esac
3752 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3753 # mode. It turns out that the SunPro C++ compiler does not properly
3754 # handle `-M -o', and we need to detect this.
3755 if depmode=$depmode \
3756 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3757 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3758 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3759 >/dev/null 2>conftest.err &&
3760 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3761 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3762 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3763 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3764 # icc doesn't choke on unknown options, it will just issue warnings
3765 # or remarks (even with -Werror). So we grep stderr for any message
3766 # that says an option was ignored or not supported.
3767 # When given -MP, icc 7.0 and 7.1 complain thusly:
3768 # icc: Command line warning: ignoring option '-M'; no argument required
3769 # The diagnosis changed in icc 8.0:
3770 # icc: Command line remark: option '-MP' not supported
3771 if (grep 'ignoring option' conftest.err ||
3772 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3773 am_cv_CC_dependencies_compiler_type=$depmode
3774 break
3775 fi
3776 fi
3777 done
3778
3779 cd ..
3780 rm -rf conftest.dir
3781else
3782 am_cv_CC_dependencies_compiler_type=none
3783fi
3784
3785fi
3786{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3787echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3788CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3789
3790 if
3791 test "x$enable_dependency_tracking" != xno \
3792 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3793 am__fastdepCC_TRUE=
3794 am__fastdepCC_FALSE='#'
3795else
3796 am__fastdepCC_TRUE='#'
3797 am__fastdepCC_FALSE=
3798fi
3799
3800
3801{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3802echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
3803set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3804if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3805 echo $ECHO_N "(cached) $ECHO_C" >&6
3806else
3807 cat >conftest.make <<\_ACEOF
3808SHELL = /bin/sh
3809all:
3810 @echo '@@@%%%=$(MAKE)=@@@%%%'
3811_ACEOF
3812# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3813case `${MAKE-make} -f conftest.make 2>/dev/null` in
3814 *@@@%%%=?*=@@@%%%*)
3815 eval ac_cv_prog_make_${ac_make}_set=yes;;
3816 *)
3817 eval ac_cv_prog_make_${ac_make}_set=no;;
3818esac
3819rm -f conftest.make
3820fi
3821if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3822 { echo "$as_me:$LINENO: result: yes" >&5
3823echo "${ECHO_T}yes" >&6; }
3824 SET_MAKE=
3825else
3826 { echo "$as_me:$LINENO: result: no" >&5
3827echo "${ECHO_T}no" >&6; }
3828 SET_MAKE="MAKE=${MAKE-make}"
3829fi
3830
3831ac_ext=c
3832ac_cpp='$CPP $CPPFLAGS'
3833ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3834ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3835ac_compiler_gnu=$ac_cv_c_compiler_gnu
3836{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3837echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3838# On Suns, sometimes $CPP names a directory.
3839if test -n "$CPP" && test -d "$CPP"; then
3840 CPP=
3841fi
3842if test -z "$CPP"; then
3843 if test "${ac_cv_prog_CPP+set}" = set; then
3844 echo $ECHO_N "(cached) $ECHO_C" >&6
3845else
3846 # Double quotes because CPP needs to be expanded
3847 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3848 do
3849 ac_preproc_ok=false
3850for ac_c_preproc_warn_flag in '' yes
3851do
3852 # Use a header file that comes with gcc, so configuring glibc
3853 # with a fresh cross-compiler works.
3854 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3855 # <limits.h> exists even on freestanding compilers.
3856 # On the NeXT, cc -E runs the code through the compiler's parser,
3857 # not just through cpp. "Syntax error" is here to catch this case.
3858 cat >conftest.$ac_ext <<_ACEOF
3859/* confdefs.h. */
3860_ACEOF
3861cat confdefs.h >>conftest.$ac_ext
3862cat >>conftest.$ac_ext <<_ACEOF
3863/* end confdefs.h. */
3864@%:@ifdef __STDC__
3865@%:@ include <limits.h>
3866@%:@else
3867@%:@ include <assert.h>
3868@%:@endif
3869 Syntax error
3870_ACEOF
3871if { (ac_try="$ac_cpp conftest.$ac_ext"
3872case "(($ac_try" in
3873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3874 *) ac_try_echo=$ac_try;;
3875esac
3876eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3877 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3878 ac_status=$?
3879 grep -v '^ *+' conftest.er1 >conftest.err
3880 rm -f conftest.er1
3881 cat conftest.err >&5
3882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3883 (exit $ac_status); } >/dev/null && {
3884 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3885 test ! -s conftest.err
3886 }; then
3887 :
3888else
3889 echo "$as_me: failed program was:" >&5
3890sed 's/^/| /' conftest.$ac_ext >&5
3891
3892 # Broken: fails on valid input.
3893continue
3894fi
3895
3896rm -f conftest.err conftest.$ac_ext
3897
3898 # OK, works on sane cases. Now check whether nonexistent headers
3899 # can be detected and how.
3900 cat >conftest.$ac_ext <<_ACEOF
3901/* confdefs.h. */
3902_ACEOF
3903cat confdefs.h >>conftest.$ac_ext
3904cat >>conftest.$ac_ext <<_ACEOF
3905/* end confdefs.h. */
3906@%:@include <ac_nonexistent.h>
3907_ACEOF
3908if { (ac_try="$ac_cpp conftest.$ac_ext"
3909case "(($ac_try" in
3910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3911 *) ac_try_echo=$ac_try;;
3912esac
3913eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3914 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3915 ac_status=$?
3916 grep -v '^ *+' conftest.er1 >conftest.err
3917 rm -f conftest.er1
3918 cat conftest.err >&5
3919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3920 (exit $ac_status); } >/dev/null && {
3921 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3922 test ! -s conftest.err
3923 }; then
3924 # Broken: success on invalid input.
3925continue
3926else
3927 echo "$as_me: failed program was:" >&5
3928sed 's/^/| /' conftest.$ac_ext >&5
3929
3930 # Passes both tests.
3931ac_preproc_ok=:
3932break
3933fi
3934
3935rm -f conftest.err conftest.$ac_ext
3936
3937done
3938# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3939rm -f conftest.err conftest.$ac_ext
3940if $ac_preproc_ok; then
3941 break
3942fi
3943
3944 done
3945 ac_cv_prog_CPP=$CPP
3946
3947fi
3948 CPP=$ac_cv_prog_CPP
3949else
3950 ac_cv_prog_CPP=$CPP
3951fi
3952{ echo "$as_me:$LINENO: result: $CPP" >&5
3953echo "${ECHO_T}$CPP" >&6; }
3954ac_preproc_ok=false
3955for ac_c_preproc_warn_flag in '' yes
3956do
3957 # Use a header file that comes with gcc, so configuring glibc
3958 # with a fresh cross-compiler works.
3959 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3960 # <limits.h> exists even on freestanding compilers.
3961 # On the NeXT, cc -E runs the code through the compiler's parser,
3962 # not just through cpp. "Syntax error" is here to catch this case.
3963 cat >conftest.$ac_ext <<_ACEOF
3964/* confdefs.h. */
3965_ACEOF
3966cat confdefs.h >>conftest.$ac_ext
3967cat >>conftest.$ac_ext <<_ACEOF
3968/* end confdefs.h. */
3969@%:@ifdef __STDC__
3970@%:@ include <limits.h>
3971@%:@else
3972@%:@ include <assert.h>
3973@%:@endif
3974 Syntax error
3975_ACEOF
3976if { (ac_try="$ac_cpp conftest.$ac_ext"
3977case "(($ac_try" in
3978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3979 *) ac_try_echo=$ac_try;;
3980esac
3981eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3982 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3983 ac_status=$?
3984 grep -v '^ *+' conftest.er1 >conftest.err
3985 rm -f conftest.er1
3986 cat conftest.err >&5
3987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3988 (exit $ac_status); } >/dev/null && {
3989 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3990 test ! -s conftest.err
3991 }; then
3992 :
3993else
3994 echo "$as_me: failed program was:" >&5
3995sed 's/^/| /' conftest.$ac_ext >&5
3996
3997 # Broken: fails on valid input.
3998continue
3999fi
4000
4001rm -f conftest.err conftest.$ac_ext
4002
4003 # OK, works on sane cases. Now check whether nonexistent headers
4004 # can be detected and how.
4005 cat >conftest.$ac_ext <<_ACEOF
4006/* confdefs.h. */
4007_ACEOF
4008cat confdefs.h >>conftest.$ac_ext
4009cat >>conftest.$ac_ext <<_ACEOF
4010/* end confdefs.h. */
4011@%:@include <ac_nonexistent.h>
4012_ACEOF
4013if { (ac_try="$ac_cpp conftest.$ac_ext"
4014case "(($ac_try" in
4015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4016 *) ac_try_echo=$ac_try;;
4017esac
4018eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4019 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4020 ac_status=$?
4021 grep -v '^ *+' conftest.er1 >conftest.err
4022 rm -f conftest.er1
4023 cat conftest.err >&5
4024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4025 (exit $ac_status); } >/dev/null && {
4026 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4027 test ! -s conftest.err
4028 }; then
4029 # Broken: success on invalid input.
4030continue
4031else
4032 echo "$as_me: failed program was:" >&5
4033sed 's/^/| /' conftest.$ac_ext >&5
4034
4035 # Passes both tests.
4036ac_preproc_ok=:
4037break
4038fi
4039
4040rm -f conftest.err conftest.$ac_ext
4041
4042done
4043# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4044rm -f conftest.err conftest.$ac_ext
4045if $ac_preproc_ok; then
4046 :
4047else
4048 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4049See \`config.log' for more details." >&5
4050echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4051See \`config.log' for more details." >&2;}
4052 { (exit 1); exit 1; }; }
4053fi
4054
4055ac_ext=c
4056ac_cpp='$CPP $CPPFLAGS'
4057ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4058ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4059ac_compiler_gnu=$ac_cv_c_compiler_gnu
4060
4061# Check whether --enable-shared was given.
4062if test "${enable_shared+set}" = set; then
4063 enableval=$enable_shared; p=${PACKAGE-default}
4064 case $enableval in
4065 yes) enable_shared=yes ;;
4066 no) enable_shared=no ;;
4067 *)
4068 enable_shared=no
4069 # Look at the argument we got. We use all the common list separators.
4070 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4071 for pkg in $enableval; do
4072 IFS="$lt_save_ifs"
4073 if test "X$pkg" = "X$p"; then
4074 enable_shared=yes
4075 fi
4076 done
4077 IFS="$lt_save_ifs"
4078 ;;
4079 esac
4080else
4081 enable_shared=yes
4082fi
4083
4084
4085# Check whether --enable-static was given.
4086if test "${enable_static+set}" = set; then
4087 enableval=$enable_static; p=${PACKAGE-default}
4088 case $enableval in
4089 yes) enable_static=yes ;;
4090 no) enable_static=no ;;
4091 *)
4092 enable_static=no
4093 # Look at the argument we got. We use all the common list separators.
4094 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4095 for pkg in $enableval; do
4096 IFS="$lt_save_ifs"
4097 if test "X$pkg" = "X$p"; then
4098 enable_static=yes
4099 fi
4100 done
4101 IFS="$lt_save_ifs"
4102 ;;
4103 esac
4104else
4105 enable_static=yes
4106fi
4107
4108
4109# Check whether --enable-fast-install was given.
4110if test "${enable_fast_install+set}" = set; then
4111 enableval=$enable_fast_install; p=${PACKAGE-default}
4112 case $enableval in
4113 yes) enable_fast_install=yes ;;
4114 no) enable_fast_install=no ;;
4115 *)
4116 enable_fast_install=no
4117 # Look at the argument we got. We use all the common list separators.
4118 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4119 for pkg in $enableval; do
4120 IFS="$lt_save_ifs"
4121 if test "X$pkg" = "X$p"; then
4122 enable_fast_install=yes
4123 fi
4124 done
4125 IFS="$lt_save_ifs"
4126 ;;
4127 esac
4128else
4129 enable_fast_install=yes
4130fi
4131
4132
4133# Make sure we can run config.sub.
4134$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4135 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4136echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4137 { (exit 1); exit 1; }; }
4138
4139{ echo "$as_me:$LINENO: checking build system type" >&5
4140echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
4141if test "${ac_cv_build+set}" = set; then
4142 echo $ECHO_N "(cached) $ECHO_C" >&6
4143else
4144 ac_build_alias=$build_alias
4145test "x$ac_build_alias" = x &&
4146 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4147test "x$ac_build_alias" = x &&
4148 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4149echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4150 { (exit 1); exit 1; }; }
4151ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4152 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4153echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4154 { (exit 1); exit 1; }; }
4155
4156fi
4157{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4158echo "${ECHO_T}$ac_cv_build" >&6; }
4159case $ac_cv_build in
4160*-*-*) ;;
4161*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4162echo "$as_me: error: invalid value of canonical build" >&2;}
4163 { (exit 1); exit 1; }; };;
4164esac
4165build=$ac_cv_build
4166ac_save_IFS=$IFS; IFS='-'
4167set x $ac_cv_build
4168shift
4169build_cpu=$1
4170build_vendor=$2
4171shift; shift
4172# Remember, the first character of IFS is used to create $*,
4173# except with old shells:
4174build_os=$*
4175IFS=$ac_save_IFS
4176case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4177
4178
4179{ echo "$as_me:$LINENO: checking host system type" >&5
4180echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
4181if test "${ac_cv_host+set}" = set; then
4182 echo $ECHO_N "(cached) $ECHO_C" >&6
4183else
4184 if test "x$host_alias" = x; then
4185 ac_cv_host=$ac_cv_build
4186else
4187 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4188 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4189echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4190 { (exit 1); exit 1; }; }
4191fi
4192
4193fi
4194{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4195echo "${ECHO_T}$ac_cv_host" >&6; }
4196case $ac_cv_host in
4197*-*-*) ;;
4198*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4199echo "$as_me: error: invalid value of canonical host" >&2;}
4200 { (exit 1); exit 1; }; };;
4201esac
4202host=$ac_cv_host
4203ac_save_IFS=$IFS; IFS='-'
4204set x $ac_cv_host
4205shift
4206host_cpu=$1
4207host_vendor=$2
4208shift; shift
4209# Remember, the first character of IFS is used to create $*,
4210# except with old shells:
4211host_os=$*
4212IFS=$ac_save_IFS
4213case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4214
4215
4216{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4217echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4218if test "${lt_cv_path_SED+set}" = set; then
4219 echo $ECHO_N "(cached) $ECHO_C" >&6
4220else
4221 # Loop through the user's path and test for sed and gsed.
4222# Then use that list of sed's as ones to test for truncation.
4223as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4224for as_dir in $PATH
4225do
4226 IFS=$as_save_IFS
4227 test -z "$as_dir" && as_dir=.
4228 for lt_ac_prog in sed gsed; do
4229 for ac_exec_ext in '' $ac_executable_extensions; do
4230 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
4231 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4232 fi
4233 done
4234 done
4235done
4236IFS=$as_save_IFS
4237lt_ac_max=0
4238lt_ac_count=0
4239# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4240# along with /bin/sed that truncates output.
4241for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4242 test ! -f $lt_ac_sed && continue
4243 cat /dev/null > conftest.in
4244 lt_ac_count=0
4245 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4246 # Check for GNU sed and select it if it is found.
4247 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4248 lt_cv_path_SED=$lt_ac_sed
4249 break
4250 fi
4251 while true; do
4252 cat conftest.in conftest.in >conftest.tmp
4253 mv conftest.tmp conftest.in
4254 cp conftest.in conftest.nl
4255 echo >>conftest.nl
4256 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4257 cmp -s conftest.out conftest.nl || break
4258 # 10000 chars as input seems more than enough
4259 test $lt_ac_count -gt 10 && break
4260 lt_ac_count=`expr $lt_ac_count + 1`
4261 if test $lt_ac_count -gt $lt_ac_max; then
4262 lt_ac_max=$lt_ac_count
4263 lt_cv_path_SED=$lt_ac_sed
4264 fi
4265 done
4266done
4267
4268fi
4269
4270SED=$lt_cv_path_SED
4271
4272{ echo "$as_me:$LINENO: result: $SED" >&5
4273echo "${ECHO_T}$SED" >&6; }
4274
4275{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4276echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4277if test "${ac_cv_path_GREP+set}" = set; then
4278 echo $ECHO_N "(cached) $ECHO_C" >&6
4279else
4280 # Extract the first word of "grep ggrep" to use in msg output
4281if test -z "$GREP"; then
4282set dummy grep ggrep; ac_prog_name=$2
4283if test "${ac_cv_path_GREP+set}" = set; then
4284 echo $ECHO_N "(cached) $ECHO_C" >&6
4285else
4286 ac_path_GREP_found=false
4287# Loop through the user's path and test for each of PROGNAME-LIST
4288as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4289for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4290do
4291 IFS=$as_save_IFS
4292 test -z "$as_dir" && as_dir=.
4293 for ac_prog in grep ggrep; do
4294 for ac_exec_ext in '' $ac_executable_extensions; do
4295 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4296 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4297 # Check for GNU ac_path_GREP and select it if it is found.
4298 # Check for GNU $ac_path_GREP
4299case `"$ac_path_GREP" --version 2>&1` in
4300*GNU*)
4301 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4302*)
4303 ac_count=0
4304 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4305 while :
4306 do
4307 cat "conftest.in" "conftest.in" >"conftest.tmp"
4308 mv "conftest.tmp" "conftest.in"
4309 cp "conftest.in" "conftest.nl"
4310 echo 'GREP' >> "conftest.nl"
4311 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4312 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4313 ac_count=`expr $ac_count + 1`
4314 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4315 # Best one so far, save it but keep looking for a better one
4316 ac_cv_path_GREP="$ac_path_GREP"
4317 ac_path_GREP_max=$ac_count
4318 fi
4319 # 10*(2^10) chars as input seems more than enough
4320 test $ac_count -gt 10 && break
4321 done
4322 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4323esac
4324
4325
4326 $ac_path_GREP_found && break 3
4327 done
4328done
4329
4330done
4331IFS=$as_save_IFS
4332
4333
4334fi
4335
4336GREP="$ac_cv_path_GREP"
4337if test -z "$GREP"; then
4338 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4339echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4340 { (exit 1); exit 1; }; }
4341fi
4342
4343else
4344 ac_cv_path_GREP=$GREP
4345fi
4346
4347
4348fi
4349{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4350echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4351 GREP="$ac_cv_path_GREP"
4352
4353
4354{ echo "$as_me:$LINENO: checking for egrep" >&5
4355echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4356if test "${ac_cv_path_EGREP+set}" = set; then
4357 echo $ECHO_N "(cached) $ECHO_C" >&6
4358else
4359 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4360 then ac_cv_path_EGREP="$GREP -E"
4361 else
4362 # Extract the first word of "egrep" to use in msg output
4363if test -z "$EGREP"; then
4364set dummy egrep; ac_prog_name=$2
4365if test "${ac_cv_path_EGREP+set}" = set; then
4366 echo $ECHO_N "(cached) $ECHO_C" >&6
4367else
4368 ac_path_EGREP_found=false
4369# Loop through the user's path and test for each of PROGNAME-LIST
4370as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4371for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4372do
4373 IFS=$as_save_IFS
4374 test -z "$as_dir" && as_dir=.
4375 for ac_prog in egrep; do
4376 for ac_exec_ext in '' $ac_executable_extensions; do
4377 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4378 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4379 # Check for GNU ac_path_EGREP and select it if it is found.
4380 # Check for GNU $ac_path_EGREP
4381case `"$ac_path_EGREP" --version 2>&1` in
4382*GNU*)
4383 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4384*)
4385 ac_count=0
4386 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4387 while :
4388 do
4389 cat "conftest.in" "conftest.in" >"conftest.tmp"
4390 mv "conftest.tmp" "conftest.in"
4391 cp "conftest.in" "conftest.nl"
4392 echo 'EGREP' >> "conftest.nl"
4393 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4394 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4395 ac_count=`expr $ac_count + 1`
4396 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4397 # Best one so far, save it but keep looking for a better one
4398 ac_cv_path_EGREP="$ac_path_EGREP"
4399 ac_path_EGREP_max=$ac_count
4400 fi
4401 # 10*(2^10) chars as input seems more than enough
4402 test $ac_count -gt 10 && break
4403 done
4404 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4405esac
4406
4407
4408 $ac_path_EGREP_found && break 3
4409 done
4410done
4411
4412done
4413IFS=$as_save_IFS
4414
4415
4416fi
4417
4418EGREP="$ac_cv_path_EGREP"
4419if test -z "$EGREP"; then
4420 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4421echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4422 { (exit 1); exit 1; }; }
4423fi
4424
4425else
4426 ac_cv_path_EGREP=$EGREP
4427fi
4428
4429
4430 fi
4431fi
4432{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4433echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4434 EGREP="$ac_cv_path_EGREP"
4435
4436
4437
4438# Check whether --with-gnu-ld was given.
4439if test "${with_gnu_ld+set}" = set; then
4440 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4441else
4442 with_gnu_ld=no
4443fi
4444
4445ac_prog=ld
4446if test "$GCC" = yes; then
4447 # Check if gcc -print-prog-name=ld gives a path.
4448 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4449echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4450 case $host in
4451 *-*-mingw*)
4452 # gcc leaves a trailing carriage return which upsets mingw
4453 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4454 *)
4455 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4456 esac
4457 case $ac_prog in
4458 # Accept absolute paths.
4459 [\\/]* | ?:[\\/]*)
4460 re_direlt='/[^/][^/]*/\.\./'
4461 # Canonicalize the pathname of ld
4462 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4463 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4464 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4465 done
4466 test -z "$LD" && LD="$ac_prog"
4467 ;;
4468 "")
4469 # If it fails, then pretend we aren't using GCC.
4470 ac_prog=ld
4471 ;;
4472 *)
4473 # If it is relative, then search for the first ld in PATH.
4474 with_gnu_ld=unknown
4475 ;;
4476 esac
4477elif test "$with_gnu_ld" = yes; then
4478 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4479echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4480else
4481 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4482echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4483fi
4484if test "${lt_cv_path_LD+set}" = set; then
4485 echo $ECHO_N "(cached) $ECHO_C" >&6
4486else
4487 if test -z "$LD"; then
4488 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4489 for ac_dir in $PATH; do
4490 IFS="$lt_save_ifs"
4491 test -z "$ac_dir" && ac_dir=.
4492 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4493 lt_cv_path_LD="$ac_dir/$ac_prog"
4494 # Check to see if the program is GNU ld. I'd rather use --version,
4495 # but apparently some variants of GNU ld only accept -v.
4496 # Break only if it was the GNU/non-GNU ld that we prefer.
4497 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4498 *GNU* | *'with BFD'*)
4499 test "$with_gnu_ld" != no && break
4500 ;;
4501 *)
4502 test "$with_gnu_ld" != yes && break
4503 ;;
4504 esac
4505 fi
4506 done
4507 IFS="$lt_save_ifs"
4508else
4509 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4510fi
4511fi
4512
4513LD="$lt_cv_path_LD"
4514if test -n "$LD"; then
4515 { echo "$as_me:$LINENO: result: $LD" >&5
4516echo "${ECHO_T}$LD" >&6; }
4517else
4518 { echo "$as_me:$LINENO: result: no" >&5
4519echo "${ECHO_T}no" >&6; }
4520fi
4521test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4522echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4523 { (exit 1); exit 1; }; }
4524{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4525echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4526if test "${lt_cv_prog_gnu_ld+set}" = set; then
4527 echo $ECHO_N "(cached) $ECHO_C" >&6
4528else
4529 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4530case `$LD -v 2>&1 </dev/null` in
4531*GNU* | *'with BFD'*)
4532 lt_cv_prog_gnu_ld=yes
4533 ;;
4534*)
4535 lt_cv_prog_gnu_ld=no
4536 ;;
4537esac
4538fi
4539{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4540echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4541with_gnu_ld=$lt_cv_prog_gnu_ld
4542
4543
4544{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4545echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4546if test "${lt_cv_ld_reload_flag+set}" = set; then
4547 echo $ECHO_N "(cached) $ECHO_C" >&6
4548else
4549 lt_cv_ld_reload_flag='-r'
4550fi
4551{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4552echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4553reload_flag=$lt_cv_ld_reload_flag
4554case $reload_flag in
4555"" | " "*) ;;
4556*) reload_flag=" $reload_flag" ;;
4557esac
4558reload_cmds='$LD$reload_flag -o $output$reload_objs'
4559case $host_os in
4560 darwin*)
4561 if test "$GCC" = yes; then
4562 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4563 else
4564 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4565 fi
4566 ;;
4567esac
4568
4569{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4570echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4571if test "${lt_cv_path_NM+set}" = set; then
4572 echo $ECHO_N "(cached) $ECHO_C" >&6
4573else
4574 if test -n "$NM"; then
4575 # Let the user override the test.
4576 lt_cv_path_NM="$NM"
4577else
4578 lt_nm_to_check="${ac_tool_prefix}nm"
4579 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4580 lt_nm_to_check="$lt_nm_to_check nm"
4581 fi
4582 for lt_tmp_nm in $lt_nm_to_check; do
4583 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4584 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4585 IFS="$lt_save_ifs"
4586 test -z "$ac_dir" && ac_dir=.
4587 tmp_nm="$ac_dir/$lt_tmp_nm"
4588 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4589 # Check to see if the nm accepts a BSD-compat flag.
4590 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4591 # nm: unknown option "B" ignored
4592 # Tru64's nm complains that /dev/null is an invalid object file
4593 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4594 */dev/null* | *'Invalid file or object type'*)
4595 lt_cv_path_NM="$tmp_nm -B"
4596 break
4597 ;;
4598 *)
4599 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4600 */dev/null*)
4601 lt_cv_path_NM="$tmp_nm -p"
4602 break
4603 ;;
4604 *)
4605 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4606 continue # so that we can try to find one that supports BSD flags
4607 ;;
4608 esac
4609 ;;
4610 esac
4611 fi
4612 done
4613 IFS="$lt_save_ifs"
4614 done
4615 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4616fi
4617fi
4618{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4619echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4620NM="$lt_cv_path_NM"
4621
4622{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
4623echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4624LN_S=$as_ln_s
4625if test "$LN_S" = "ln -s"; then
4626 { echo "$as_me:$LINENO: result: yes" >&5
4627echo "${ECHO_T}yes" >&6; }
4628else
4629 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4630echo "${ECHO_T}no, using $LN_S" >&6; }
4631fi
4632
4633{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4634echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4635if test "${lt_cv_deplibs_check_method+set}" = set; then
4636 echo $ECHO_N "(cached) $ECHO_C" >&6
4637else
4638 lt_cv_file_magic_cmd='$MAGIC_CMD'
4639lt_cv_file_magic_test_file=
4640lt_cv_deplibs_check_method='unknown'
4641# Need to set the preceding variable on all platforms that support
4642# interlibrary dependencies.
4643# 'none' -- dependencies not supported.
4644# `unknown' -- same as none, but documents that we really don't know.
4645# 'pass_all' -- all dependencies passed with no checks.
4646# 'test_compile' -- check by making test program.
4647# 'file_magic [[regex]]' -- check by looking for files in library path
4648# which responds to the $file_magic_cmd with a given extended regex.
4649# If you have `file' or equivalent on your system and you're not sure
4650# whether `pass_all' will *always* work, you probably want this one.
4651
4652case $host_os in
4653aix[4-9]*)
4654 lt_cv_deplibs_check_method=pass_all
4655 ;;
4656
4657beos*)
4658 lt_cv_deplibs_check_method=pass_all
4659 ;;
4660
4661bsdi[45]*)
4662 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4663 lt_cv_file_magic_cmd='/usr/bin/file -L'
4664 lt_cv_file_magic_test_file=/shlib/libc.so
4665 ;;
4666
4667cygwin*)
4668 # func_win32_libid is a shell function defined in ltmain.sh
4669 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4670 lt_cv_file_magic_cmd='func_win32_libid'
4671 ;;
4672
4673mingw* | pw32*)
4674 # Base MSYS/MinGW do not provide the 'file' command needed by
4675 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4676 # unless we find 'file', for example because we are cross-compiling.
4677 if ( file / ) >/dev/null 2>&1; then
4678 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4679 lt_cv_file_magic_cmd='func_win32_libid'
4680 else
4681 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4682 lt_cv_file_magic_cmd='$OBJDUMP -f'
4683 fi
4684 ;;
4685
4686darwin* | rhapsody*)
4687 lt_cv_deplibs_check_method=pass_all
4688 ;;
4689
4690freebsd* | dragonfly*)
4691 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4692 case $host_cpu in
4693 i*86 )
4694 # Not sure whether the presence of OpenBSD here was a mistake.
4695 # Let's accept both of them until this is cleared up.
4696 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4697 lt_cv_file_magic_cmd=/usr/bin/file
4698 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4699 ;;
4700 esac
4701 else
4702 lt_cv_deplibs_check_method=pass_all
4703 fi
4704 ;;
4705
4706gnu*)
4707 lt_cv_deplibs_check_method=pass_all
4708 ;;
4709
4710hpux10.20* | hpux11*)
4711 lt_cv_file_magic_cmd=/usr/bin/file
4712 case $host_cpu in
4713 ia64*)
4714 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4715 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4716 ;;
4717 hppa*64*)
4718 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]'
4719 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4720 ;;
4721 *)
4722 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4723 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4724 ;;
4725 esac
4726 ;;
4727
4728interix[3-9]*)
4729 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4730 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4731 ;;
4732
4733irix5* | irix6* | nonstopux*)
4734 case $LD in
4735 *-32|*"-32 ") libmagic=32-bit;;
4736 *-n32|*"-n32 ") libmagic=N32;;
4737 *-64|*"-64 ") libmagic=64-bit;;
4738 *) libmagic=never-match;;
4739 esac
4740 lt_cv_deplibs_check_method=pass_all
4741 ;;
4742
4743# This must be Linux ELF.
4744linux* | k*bsd*-gnu)
4745 lt_cv_deplibs_check_method=pass_all
4746 ;;
4747
4748netbsd* | netbsdelf*-gnu)
4749 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4750 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4751 else
4752 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4753 fi
4754 ;;
4755
4756newos6*)
4757 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4758 lt_cv_file_magic_cmd=/usr/bin/file
4759 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4760 ;;
4761
4762nto-qnx*)
4763 lt_cv_deplibs_check_method=unknown
4764 ;;
4765
4766openbsd*)
4767 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4768 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4769 else
4770 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4771 fi
4772 ;;
4773
4774osf3* | osf4* | osf5*)
4775 lt_cv_deplibs_check_method=pass_all
4776 ;;
4777
4778rdos*)
4779 lt_cv_deplibs_check_method=pass_all
4780 ;;
4781
4782solaris*)
4783 lt_cv_deplibs_check_method=pass_all
4784 ;;
4785
4786sysv4 | sysv4.3*)
4787 case $host_vendor in
4788 motorola)
4789 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]'
4790 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4791 ;;
4792 ncr)
4793 lt_cv_deplibs_check_method=pass_all
4794 ;;
4795 sequent)
4796 lt_cv_file_magic_cmd='/bin/file'
4797 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4798 ;;
4799 sni)
4800 lt_cv_file_magic_cmd='/bin/file'
4801 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4802 lt_cv_file_magic_test_file=/lib/libc.so
4803 ;;
4804 siemens)
4805 lt_cv_deplibs_check_method=pass_all
4806 ;;
4807 pc)
4808 lt_cv_deplibs_check_method=pass_all
4809 ;;
4810 esac
4811 ;;
4812
4813sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4814 lt_cv_deplibs_check_method=pass_all
4815 ;;
4816esac
4817
4818fi
4819{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4820echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4821file_magic_cmd=$lt_cv_file_magic_cmd
4822deplibs_check_method=$lt_cv_deplibs_check_method
4823test -z "$deplibs_check_method" && deplibs_check_method=unknown
4824
4825
4826
4827
4828# If no C compiler was specified, use CC.
4829LTCC=${LTCC-"$CC"}
4830
4831# If no C compiler flags were specified, use CFLAGS.
4832LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4833
4834# Allow CC to be a program name with arguments.
4835compiler=$CC
4836
4837
4838# Check whether --enable-libtool-lock was given.
4839if test "${enable_libtool_lock+set}" = set; then
4840 enableval=$enable_libtool_lock;
4841fi
4842
4843test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4844
4845# Some flags need to be propagated to the compiler or linker for good
4846# libtool support.
4847case $host in
4848ia64-*-hpux*)
4849 # Find out which ABI we are using.
4850 echo 'int i;' > conftest.$ac_ext
4851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4852 (eval $ac_compile) 2>&5
4853 ac_status=$?
4854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4855 (exit $ac_status); }; then
4856 case `/usr/bin/file conftest.$ac_objext` in
4857 *ELF-32*)
4858 HPUX_IA64_MODE="32"
4859 ;;
4860 *ELF-64*)
4861 HPUX_IA64_MODE="64"
4862 ;;
4863 esac
4864 fi
4865 rm -rf conftest*
4866 ;;
4867*-*-irix6*)
4868 # Find out which ABI we are using.
4869 echo '#line __oline__ "configure"' > conftest.$ac_ext
4870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4871 (eval $ac_compile) 2>&5
4872 ac_status=$?
4873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4874 (exit $ac_status); }; then
4875 if test "$lt_cv_prog_gnu_ld" = yes; then
4876 case `/usr/bin/file conftest.$ac_objext` in
4877 *32-bit*)
4878 LD="${LD-ld} -melf32bsmip"
4879 ;;
4880 *N32*)
4881 LD="${LD-ld} -melf32bmipn32"
4882 ;;
4883 *64-bit*)
4884 LD="${LD-ld} -melf64bmip"
4885 ;;
4886 esac
4887 else
4888 case `/usr/bin/file conftest.$ac_objext` in
4889 *32-bit*)
4890 LD="${LD-ld} -32"
4891 ;;
4892 *N32*)
4893 LD="${LD-ld} -n32"
4894 ;;
4895 *64-bit*)
4896 LD="${LD-ld} -64"
4897 ;;
4898 esac
4899 fi
4900 fi
4901 rm -rf conftest*
4902 ;;
4903
4904x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4905s390*-*linux*|sparc*-*linux*)
4906 # Find out which ABI we are using.
4907 echo 'int i;' > conftest.$ac_ext
4908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4909 (eval $ac_compile) 2>&5
4910 ac_status=$?
4911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4912 (exit $ac_status); }; then
4913 case `/usr/bin/file conftest.o` in
4914 *32-bit*)
4915 case $host in
4916 x86_64-*kfreebsd*-gnu)
4917 LD="${LD-ld} -m elf_i386_fbsd"
4918 ;;
4919 x86_64-*linux*)
4920 LD="${LD-ld} -m elf_i386"
4921 ;;
4922 ppc64-*linux*|powerpc64-*linux*)
4923 LD="${LD-ld} -m elf32ppclinux"
4924 ;;
4925 s390x-*linux*)
4926 LD="${LD-ld} -m elf_s390"
4927 ;;
4928 sparc64-*linux*)
4929 LD="${LD-ld} -m elf32_sparc"
4930 ;;
4931 esac
4932 ;;
4933 *64-bit*)
4934 case $host in
4935 x86_64-*kfreebsd*-gnu)
4936 LD="${LD-ld} -m elf_x86_64_fbsd"
4937 ;;
4938 x86_64-*linux*)
4939 LD="${LD-ld} -m elf_x86_64"
4940 ;;
4941 ppc*-*linux*|powerpc*-*linux*)
4942 LD="${LD-ld} -m elf64ppc"
4943 ;;
4944 s390*-*linux*)
4945 LD="${LD-ld} -m elf64_s390"
4946 ;;
4947 sparc*-*linux*)
4948 LD="${LD-ld} -m elf64_sparc"
4949 ;;
4950 esac
4951 ;;
4952 esac
4953 fi
4954 rm -rf conftest*
4955 ;;
4956
4957*-*-sco3.2v5*)
4958 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4959 SAVE_CFLAGS="$CFLAGS"
4960 CFLAGS="$CFLAGS -belf"
4961 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4962echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4963if test "${lt_cv_cc_needs_belf+set}" = set; then
4964 echo $ECHO_N "(cached) $ECHO_C" >&6
4965else
4966 ac_ext=c
4967ac_cpp='$CPP $CPPFLAGS'
4968ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4969ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4970ac_compiler_gnu=$ac_cv_c_compiler_gnu
4971
4972 cat >conftest.$ac_ext <<_ACEOF
4973/* confdefs.h. */
4974_ACEOF
4975cat confdefs.h >>conftest.$ac_ext
4976cat >>conftest.$ac_ext <<_ACEOF
4977/* end confdefs.h. */
4978
4979int
4980main ()
4981{
4982
4983 ;
4984 return 0;
4985}
4986_ACEOF
4987rm -f conftest.$ac_objext conftest$ac_exeext
4988if { (ac_try="$ac_link"
4989case "(($ac_try" in
4990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4991 *) ac_try_echo=$ac_try;;
4992esac
4993eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4994 (eval "$ac_link") 2>conftest.er1
4995 ac_status=$?
4996 grep -v '^ *+' conftest.er1 >conftest.err
4997 rm -f conftest.er1
4998 cat conftest.err >&5
4999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5000 (exit $ac_status); } && {
5001 test -z "$ac_c_werror_flag" ||
5002 test ! -s conftest.err
5003 } && test -s conftest$ac_exeext &&
5004 $as_test_x conftest$ac_exeext; then
5005 lt_cv_cc_needs_belf=yes
5006else
5007 echo "$as_me: failed program was:" >&5
5008sed 's/^/| /' conftest.$ac_ext >&5
5009
5010 lt_cv_cc_needs_belf=no
5011fi
5012
5013rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5014 conftest$ac_exeext conftest.$ac_ext
5015 ac_ext=c
5016ac_cpp='$CPP $CPPFLAGS'
5017ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5018ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5019ac_compiler_gnu=$ac_cv_c_compiler_gnu
5020
5021fi
5022{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5023echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
5024 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5025 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5026 CFLAGS="$SAVE_CFLAGS"
5027 fi
5028 ;;
5029sparc*-*solaris*)
5030 # Find out which ABI we are using.
5031 echo 'int i;' > conftest.$ac_ext
5032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5033 (eval $ac_compile) 2>&5
5034 ac_status=$?
5035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5036 (exit $ac_status); }; then
5037 case `/usr/bin/file conftest.o` in
5038 *64-bit*)
5039 case $lt_cv_prog_gnu_ld in
5040 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5041 *)
5042 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5043 LD="${LD-ld} -64"
5044 fi
5045 ;;
5046 esac
5047 ;;
5048 esac
5049 fi
5050 rm -rf conftest*
5051 ;;
5052
5053
5054esac
5055
5056need_locks="$enable_libtool_lock"
5057
5058
5059
5060{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5061echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5062if test "${ac_cv_header_stdc+set}" = set; then
5063 echo $ECHO_N "(cached) $ECHO_C" >&6
5064else
5065 cat >conftest.$ac_ext <<_ACEOF
5066/* confdefs.h. */
5067_ACEOF
5068cat confdefs.h >>conftest.$ac_ext
5069cat >>conftest.$ac_ext <<_ACEOF
5070/* end confdefs.h. */
5071#include <stdlib.h>
5072#include <stdarg.h>
5073#include <string.h>
5074#include <float.h>
5075
5076int
5077main ()
5078{
5079
5080 ;
5081 return 0;
5082}
5083_ACEOF
5084rm -f conftest.$ac_objext
5085if { (ac_try="$ac_compile"
5086case "(($ac_try" in
5087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5088 *) ac_try_echo=$ac_try;;
5089esac
5090eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5091 (eval "$ac_compile") 2>conftest.er1
5092 ac_status=$?
5093 grep -v '^ *+' conftest.er1 >conftest.err
5094 rm -f conftest.er1
5095 cat conftest.err >&5
5096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5097 (exit $ac_status); } && {
5098 test -z "$ac_c_werror_flag" ||
5099 test ! -s conftest.err
5100 } && test -s conftest.$ac_objext; then
5101 ac_cv_header_stdc=yes
5102else
5103 echo "$as_me: failed program was:" >&5
5104sed 's/^/| /' conftest.$ac_ext >&5
5105
5106 ac_cv_header_stdc=no
5107fi
5108
5109rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5110
5111if test $ac_cv_header_stdc = yes; then
5112 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5113 cat >conftest.$ac_ext <<_ACEOF
5114/* confdefs.h. */
5115_ACEOF
5116cat confdefs.h >>conftest.$ac_ext
5117cat >>conftest.$ac_ext <<_ACEOF
5118/* end confdefs.h. */
5119#include <string.h>
5120
5121_ACEOF
5122if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5123 $EGREP "memchr" >/dev/null 2>&1; then
5124 :
5125else
5126 ac_cv_header_stdc=no
5127fi
5128rm -f conftest*
5129
5130fi
5131
5132if test $ac_cv_header_stdc = yes; then
5133 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5134 cat >conftest.$ac_ext <<_ACEOF
5135/* confdefs.h. */
5136_ACEOF
5137cat confdefs.h >>conftest.$ac_ext
5138cat >>conftest.$ac_ext <<_ACEOF
5139/* end confdefs.h. */
5140#include <stdlib.h>
5141
5142_ACEOF
5143if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5144 $EGREP "free" >/dev/null 2>&1; then
5145 :
5146else
5147 ac_cv_header_stdc=no
5148fi
5149rm -f conftest*
5150
5151fi
5152
5153if test $ac_cv_header_stdc = yes; then
5154 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5155 if test "$cross_compiling" = yes; then
5156 :
5157else
5158 cat >conftest.$ac_ext <<_ACEOF
5159/* confdefs.h. */
5160_ACEOF
5161cat confdefs.h >>conftest.$ac_ext
5162cat >>conftest.$ac_ext <<_ACEOF
5163/* end confdefs.h. */
5164#include <ctype.h>
5165#include <stdlib.h>
5166#if ((' ' & 0x0FF) == 0x020)
5167# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5168# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5169#else
5170# define ISLOWER(c) \
5171 (('a' <= (c) && (c) <= 'i') \
5172 || ('j' <= (c) && (c) <= 'r') \
5173 || ('s' <= (c) && (c) <= 'z'))
5174# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5175#endif
5176
5177#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5178int
5179main ()
5180{
5181 int i;
5182 for (i = 0; i < 256; i++)
5183 if (XOR (islower (i), ISLOWER (i))
5184 || toupper (i) != TOUPPER (i))
5185 return 2;
5186 return 0;
5187}
5188_ACEOF
5189rm -f conftest$ac_exeext
5190if { (ac_try="$ac_link"
5191case "(($ac_try" in
5192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5193 *) ac_try_echo=$ac_try;;
5194esac
5195eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5196 (eval "$ac_link") 2>&5
5197 ac_status=$?
5198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5199 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5200 { (case "(($ac_try" in
5201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5202 *) ac_try_echo=$ac_try;;
5203esac
5204eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5205 (eval "$ac_try") 2>&5
5206 ac_status=$?
5207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5208 (exit $ac_status); }; }; then
5209 :
5210else
5211 echo "$as_me: program exited with status $ac_status" >&5
5212echo "$as_me: failed program was:" >&5
5213sed 's/^/| /' conftest.$ac_ext >&5
5214
5215( exit $ac_status )
5216ac_cv_header_stdc=no
5217fi
5218rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5219fi
5220
5221
5222fi
5223fi
5224{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5225echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5226if test $ac_cv_header_stdc = yes; then
5227
5228cat >>confdefs.h <<\_ACEOF
5229@%:@define STDC_HEADERS 1
5230_ACEOF
5231
5232fi
5233
5234# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5245 inttypes.h stdint.h unistd.h
5246do
5247as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5248{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5249echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5250if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5251 echo $ECHO_N "(cached) $ECHO_C" >&6
5252else
5253 cat >conftest.$ac_ext <<_ACEOF
5254/* confdefs.h. */
5255_ACEOF
5256cat confdefs.h >>conftest.$ac_ext
5257cat >>conftest.$ac_ext <<_ACEOF
5258/* end confdefs.h. */
5259$ac_includes_default
5260
5261@%:@include <$ac_header>
5262_ACEOF
5263rm -f conftest.$ac_objext
5264if { (ac_try="$ac_compile"
5265case "(($ac_try" in
5266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5267 *) ac_try_echo=$ac_try;;
5268esac
5269eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5270 (eval "$ac_compile") 2>conftest.er1
5271 ac_status=$?
5272 grep -v '^ *+' conftest.er1 >conftest.err
5273 rm -f conftest.er1
5274 cat conftest.err >&5
5275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5276 (exit $ac_status); } && {
5277 test -z "$ac_c_werror_flag" ||
5278 test ! -s conftest.err
5279 } && test -s conftest.$ac_objext; then
5280 eval "$as_ac_Header=yes"
5281else
5282 echo "$as_me: failed program was:" >&5
5283sed 's/^/| /' conftest.$ac_ext >&5
5284
5285 eval "$as_ac_Header=no"
5286fi
5287
5288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5289fi
5290ac_res=`eval echo '${'$as_ac_Header'}'`
5291 { echo "$as_me:$LINENO: result: $ac_res" >&5
5292echo "${ECHO_T}$ac_res" >&6; }
5293if test `eval echo '${'$as_ac_Header'}'` = yes; then
5294 cat >>confdefs.h <<_ACEOF
5295@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5296_ACEOF
5297
5298fi
5299
5300done
5301
5302
5303
5304for ac_header in dlfcn.h
5305do
5306as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5307if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5308 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5309echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5310if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5311 echo $ECHO_N "(cached) $ECHO_C" >&6
5312fi
5313ac_res=`eval echo '${'$as_ac_Header'}'`
5314 { echo "$as_me:$LINENO: result: $ac_res" >&5
5315echo "${ECHO_T}$ac_res" >&6; }
5316else
5317 # Is the header compilable?
5318{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5319echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5320cat >conftest.$ac_ext <<_ACEOF
5321/* confdefs.h. */
5322_ACEOF
5323cat confdefs.h >>conftest.$ac_ext
5324cat >>conftest.$ac_ext <<_ACEOF
5325/* end confdefs.h. */
5326$ac_includes_default
5327@%:@include <$ac_header>
5328_ACEOF
5329rm -f conftest.$ac_objext
5330if { (ac_try="$ac_compile"
5331case "(($ac_try" in
5332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5333 *) ac_try_echo=$ac_try;;
5334esac
5335eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5336 (eval "$ac_compile") 2>conftest.er1
5337 ac_status=$?
5338 grep -v '^ *+' conftest.er1 >conftest.err
5339 rm -f conftest.er1
5340 cat conftest.err >&5
5341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5342 (exit $ac_status); } && {
5343 test -z "$ac_c_werror_flag" ||
5344 test ! -s conftest.err
5345 } && test -s conftest.$ac_objext; then
5346 ac_header_compiler=yes
5347else
5348 echo "$as_me: failed program was:" >&5
5349sed 's/^/| /' conftest.$ac_ext >&5
5350
5351 ac_header_compiler=no
5352fi
5353
5354rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5355{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5356echo "${ECHO_T}$ac_header_compiler" >&6; }
5357
5358# Is the header present?
5359{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5360echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5361cat >conftest.$ac_ext <<_ACEOF
5362/* confdefs.h. */
5363_ACEOF
5364cat confdefs.h >>conftest.$ac_ext
5365cat >>conftest.$ac_ext <<_ACEOF
5366/* end confdefs.h. */
5367@%:@include <$ac_header>
5368_ACEOF
5369if { (ac_try="$ac_cpp conftest.$ac_ext"
5370case "(($ac_try" in
5371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5372 *) ac_try_echo=$ac_try;;
5373esac
5374eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5375 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5376 ac_status=$?
5377 grep -v '^ *+' conftest.er1 >conftest.err
5378 rm -f conftest.er1
5379 cat conftest.err >&5
5380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5381 (exit $ac_status); } >/dev/null && {
5382 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5383 test ! -s conftest.err
5384 }; then
5385 ac_header_preproc=yes
5386else
5387 echo "$as_me: failed program was:" >&5
5388sed 's/^/| /' conftest.$ac_ext >&5
5389
5390 ac_header_preproc=no
5391fi
5392
5393rm -f conftest.err conftest.$ac_ext
5394{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5395echo "${ECHO_T}$ac_header_preproc" >&6; }
5396
5397# So? What about this header?
5398case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5399 yes:no: )
5400 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5401echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5402 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5403echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5404 ac_header_preproc=yes
5405 ;;
5406 no:yes:* )
5407 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5408echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5409 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5410echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5411 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5412echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5413 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5414echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5415 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5416echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5417 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5418echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5419 ( cat <<\_ASBOX
5420@%:@@%:@ --------------------------------- @%:@@%:@
5421@%:@@%:@ Report this to support@itibia.com @%:@@%:@
5422@%:@@%:@ --------------------------------- @%:@@%:@
5423_ASBOX
5424 ) | sed "s/^/$as_me: WARNING: /" >&2
5425 ;;
5426esac
5427{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5428echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5429if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5430 echo $ECHO_N "(cached) $ECHO_C" >&6
5431else
5432 eval "$as_ac_Header=\$ac_header_preproc"
5433fi
5434ac_res=`eval echo '${'$as_ac_Header'}'`
5435 { echo "$as_me:$LINENO: result: $ac_res" >&5
5436echo "${ECHO_T}$ac_res" >&6; }
5437
5438fi
5439if test `eval echo '${'$as_ac_Header'}'` = yes; then
5440 cat >>confdefs.h <<_ACEOF
5441@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5442_ACEOF
5443
5444fi
5445
5446done
5447
5448
5449
5450if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5451 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5452 (test "X$CXX" != "Xg++"))) ; then
5453 ac_ext=cpp
5454ac_cpp='$CXXCPP $CPPFLAGS'
5455ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5456ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5457ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5458{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5459echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5460if test -z "$CXXCPP"; then
5461 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5462 echo $ECHO_N "(cached) $ECHO_C" >&6
5463else
5464 # Double quotes because CXXCPP needs to be expanded
5465 for CXXCPP in "$CXX -E" "/lib/cpp"
5466 do
5467 ac_preproc_ok=false
5468for ac_cxx_preproc_warn_flag in '' yes
5469do
5470 # Use a header file that comes with gcc, so configuring glibc
5471 # with a fresh cross-compiler works.
5472 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5473 # <limits.h> exists even on freestanding compilers.
5474 # On the NeXT, cc -E runs the code through the compiler's parser,
5475 # not just through cpp. "Syntax error" is here to catch this case.
5476 cat >conftest.$ac_ext <<_ACEOF
5477/* confdefs.h. */
5478_ACEOF
5479cat confdefs.h >>conftest.$ac_ext
5480cat >>conftest.$ac_ext <<_ACEOF
5481/* end confdefs.h. */
5482@%:@ifdef __STDC__
5483@%:@ include <limits.h>
5484@%:@else
5485@%:@ include <assert.h>
5486@%:@endif
5487 Syntax error
5488_ACEOF
5489if { (ac_try="$ac_cpp conftest.$ac_ext"
5490case "(($ac_try" in
5491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5492 *) ac_try_echo=$ac_try;;
5493esac
5494eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5495 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5496 ac_status=$?
5497 grep -v '^ *+' conftest.er1 >conftest.err
5498 rm -f conftest.er1
5499 cat conftest.err >&5
5500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5501 (exit $ac_status); } >/dev/null && {
5502 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5503 test ! -s conftest.err
5504 }; then
5505 :
5506else
5507 echo "$as_me: failed program was:" >&5
5508sed 's/^/| /' conftest.$ac_ext >&5
5509
5510 # Broken: fails on valid input.
5511continue
5512fi
5513
5514rm -f conftest.err conftest.$ac_ext
5515
5516 # OK, works on sane cases. Now check whether nonexistent headers
5517 # can be detected and how.
5518 cat >conftest.$ac_ext <<_ACEOF
5519/* confdefs.h. */
5520_ACEOF
5521cat confdefs.h >>conftest.$ac_ext
5522cat >>conftest.$ac_ext <<_ACEOF
5523/* end confdefs.h. */
5524@%:@include <ac_nonexistent.h>
5525_ACEOF
5526if { (ac_try="$ac_cpp conftest.$ac_ext"
5527case "(($ac_try" in
5528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5529 *) ac_try_echo=$ac_try;;
5530esac
5531eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5532 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5533 ac_status=$?
5534 grep -v '^ *+' conftest.er1 >conftest.err
5535 rm -f conftest.er1
5536 cat conftest.err >&5
5537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5538 (exit $ac_status); } >/dev/null && {
5539 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5540 test ! -s conftest.err
5541 }; then
5542 # Broken: success on invalid input.
5543continue
5544else
5545 echo "$as_me: failed program was:" >&5
5546sed 's/^/| /' conftest.$ac_ext >&5
5547
5548 # Passes both tests.
5549ac_preproc_ok=:
5550break
5551fi
5552
5553rm -f conftest.err conftest.$ac_ext
5554
5555done
5556# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5557rm -f conftest.err conftest.$ac_ext
5558if $ac_preproc_ok; then
5559 break
5560fi
5561
5562 done
5563 ac_cv_prog_CXXCPP=$CXXCPP
5564
5565fi
5566 CXXCPP=$ac_cv_prog_CXXCPP
5567else
5568 ac_cv_prog_CXXCPP=$CXXCPP
5569fi
5570{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
5571echo "${ECHO_T}$CXXCPP" >&6; }
5572ac_preproc_ok=false
5573for ac_cxx_preproc_warn_flag in '' yes
5574do
5575 # Use a header file that comes with gcc, so configuring glibc
5576 # with a fresh cross-compiler works.
5577 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5578 # <limits.h> exists even on freestanding compilers.
5579 # On the NeXT, cc -E runs the code through the compiler's parser,
5580 # not just through cpp. "Syntax error" is here to catch this case.
5581 cat >conftest.$ac_ext <<_ACEOF
5582/* confdefs.h. */
5583_ACEOF
5584cat confdefs.h >>conftest.$ac_ext
5585cat >>conftest.$ac_ext <<_ACEOF
5586/* end confdefs.h. */
5587@%:@ifdef __STDC__
5588@%:@ include <limits.h>
5589@%:@else
5590@%:@ include <assert.h>
5591@%:@endif
5592 Syntax error
5593_ACEOF
5594if { (ac_try="$ac_cpp conftest.$ac_ext"
5595case "(($ac_try" in
5596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5597 *) ac_try_echo=$ac_try;;
5598esac
5599eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5600 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5601 ac_status=$?
5602 grep -v '^ *+' conftest.er1 >conftest.err
5603 rm -f conftest.er1
5604 cat conftest.err >&5
5605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5606 (exit $ac_status); } >/dev/null && {
5607 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5608 test ! -s conftest.err
5609 }; then
5610 :
5611else
5612 echo "$as_me: failed program was:" >&5
5613sed 's/^/| /' conftest.$ac_ext >&5
5614
5615 # Broken: fails on valid input.
5616continue
5617fi
5618
5619rm -f conftest.err conftest.$ac_ext
5620
5621 # OK, works on sane cases. Now check whether nonexistent headers
5622 # can be detected and how.
5623 cat >conftest.$ac_ext <<_ACEOF
5624/* confdefs.h. */
5625_ACEOF
5626cat confdefs.h >>conftest.$ac_ext
5627cat >>conftest.$ac_ext <<_ACEOF
5628/* end confdefs.h. */
5629@%:@include <ac_nonexistent.h>
5630_ACEOF
5631if { (ac_try="$ac_cpp conftest.$ac_ext"
5632case "(($ac_try" in
5633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5634 *) ac_try_echo=$ac_try;;
5635esac
5636eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5637 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5638 ac_status=$?
5639 grep -v '^ *+' conftest.er1 >conftest.err
5640 rm -f conftest.er1
5641 cat conftest.err >&5
5642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5643 (exit $ac_status); } >/dev/null && {
5644 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5645 test ! -s conftest.err
5646 }; then
5647 # Broken: success on invalid input.
5648continue
5649else
5650 echo "$as_me: failed program was:" >&5
5651sed 's/^/| /' conftest.$ac_ext >&5
5652
5653 # Passes both tests.
5654ac_preproc_ok=:
5655break
5656fi
5657
5658rm -f conftest.err conftest.$ac_ext
5659
5660done
5661# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5662rm -f conftest.err conftest.$ac_ext
5663if $ac_preproc_ok; then
5664 :
5665else
5666 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5667See \`config.log' for more details." >&5
5668echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5669See \`config.log' for more details." >&2;}
5670 { (exit 1); exit 1; }; }
5671fi
5672
5673ac_ext=cpp
5674ac_cpp='$CXXCPP $CPPFLAGS'
5675ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5676ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5677ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5678
5679fi
5680
5681
5682ac_ext=f
5683ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5684ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5685ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5686if test -n "$ac_tool_prefix"; then
5687 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
5688 do
5689 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5690set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5691{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5692echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5693if test "${ac_cv_prog_F77+set}" = set; then
5694 echo $ECHO_N "(cached) $ECHO_C" >&6
5695else
5696 if test -n "$F77"; then
5697 ac_cv_prog_F77="$F77" # Let the user override the test.
5698else
5699as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5700for as_dir in $PATH
5701do
5702 IFS=$as_save_IFS
5703 test -z "$as_dir" && as_dir=.
5704 for ac_exec_ext in '' $ac_executable_extensions; do
5705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5706 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5707 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5708 break 2
5709 fi
5710done
5711done
5712IFS=$as_save_IFS
5713
5714fi
5715fi
5716F77=$ac_cv_prog_F77
5717if test -n "$F77"; then
5718 { echo "$as_me:$LINENO: result: $F77" >&5
5719echo "${ECHO_T}$F77" >&6; }
5720else
5721 { echo "$as_me:$LINENO: result: no" >&5
5722echo "${ECHO_T}no" >&6; }
5723fi
5724
5725
5726 test -n "$F77" && break
5727 done
5728fi
5729if test -z "$F77"; then
5730 ac_ct_F77=$F77
5731 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
5732do
5733 # Extract the first word of "$ac_prog", so it can be a program name with args.
5734set dummy $ac_prog; ac_word=$2
5735{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5736echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5737if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5738 echo $ECHO_N "(cached) $ECHO_C" >&6
5739else
5740 if test -n "$ac_ct_F77"; then
5741 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5742else
5743as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5744for as_dir in $PATH
5745do
5746 IFS=$as_save_IFS
5747 test -z "$as_dir" && as_dir=.
5748 for ac_exec_ext in '' $ac_executable_extensions; do
5749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5750 ac_cv_prog_ac_ct_F77="$ac_prog"
5751 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5752 break 2
5753 fi
5754done
5755done
5756IFS=$as_save_IFS
5757
5758fi
5759fi
5760ac_ct_F77=$ac_cv_prog_ac_ct_F77
5761if test -n "$ac_ct_F77"; then
5762 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5763echo "${ECHO_T}$ac_ct_F77" >&6; }
5764else
5765 { echo "$as_me:$LINENO: result: no" >&5
5766echo "${ECHO_T}no" >&6; }
5767fi
5768
5769
5770 test -n "$ac_ct_F77" && break
5771done
5772
5773 if test "x$ac_ct_F77" = x; then
5774 F77=""
5775 else
5776 case $cross_compiling:$ac_tool_warned in
5777yes:)
5778{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5779whose name does not start with the host triplet. If you think this
5780configuration is useful to you, please write to autoconf@gnu.org." >&5
5781echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5782whose name does not start with the host triplet. If you think this
5783configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5784ac_tool_warned=yes ;;
5785esac
5786 F77=$ac_ct_F77
5787 fi
5788fi
5789
5790
5791# Provide some information about the compiler.
5792echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
5793ac_compiler=`set X $ac_compile; echo $2`
5794{ (ac_try="$ac_compiler --version >&5"
5795case "(($ac_try" in
5796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5797 *) ac_try_echo=$ac_try;;
5798esac
5799eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5800 (eval "$ac_compiler --version >&5") 2>&5
5801 ac_status=$?
5802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5803 (exit $ac_status); }
5804{ (ac_try="$ac_compiler -v >&5"
5805case "(($ac_try" in
5806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5807 *) ac_try_echo=$ac_try;;
5808esac
5809eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5810 (eval "$ac_compiler -v >&5") 2>&5
5811 ac_status=$?
5812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5813 (exit $ac_status); }
5814{ (ac_try="$ac_compiler -V >&5"
5815case "(($ac_try" in
5816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5817 *) ac_try_echo=$ac_try;;
5818esac
5819eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5820 (eval "$ac_compiler -V >&5") 2>&5
5821 ac_status=$?
5822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5823 (exit $ac_status); }
5824rm -f a.out
5825
5826# If we don't use `.F' as extension, the preprocessor is not run on the
5827# input file. (Note that this only needs to work for GNU compilers.)
5828ac_save_ext=$ac_ext
5829ac_ext=F
5830{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5831echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
5832if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5833 echo $ECHO_N "(cached) $ECHO_C" >&6
5834else
5835 cat >conftest.$ac_ext <<_ACEOF
5836 program main
5837#ifndef __GNUC__
5838 choke me
5839#endif
5840
5841 end
5842_ACEOF
5843rm -f conftest.$ac_objext
5844if { (ac_try="$ac_compile"
5845case "(($ac_try" in
5846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5847 *) ac_try_echo=$ac_try;;
5848esac
5849eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5850 (eval "$ac_compile") 2>conftest.er1
5851 ac_status=$?
5852 grep -v '^ *+' conftest.er1 >conftest.err
5853 rm -f conftest.er1
5854 cat conftest.err >&5
5855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5856 (exit $ac_status); } && {
5857 test -z "$ac_f77_werror_flag" ||
5858 test ! -s conftest.err
5859 } && test -s conftest.$ac_objext; then
5860 ac_compiler_gnu=yes
5861else
5862 echo "$as_me: failed program was:" >&5
5863sed 's/^/| /' conftest.$ac_ext >&5
5864
5865 ac_compiler_gnu=no
5866fi
5867
5868rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5869ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5870
5871fi
5872{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5873echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
5874ac_ext=$ac_save_ext
5875ac_test_FFLAGS=${FFLAGS+set}
5876ac_save_FFLAGS=$FFLAGS
5877FFLAGS=
5878{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5879echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
5880if test "${ac_cv_prog_f77_g+set}" = set; then
5881 echo $ECHO_N "(cached) $ECHO_C" >&6
5882else
5883 FFLAGS=-g
5884cat >conftest.$ac_ext <<_ACEOF
5885 program main
5886
5887 end
5888_ACEOF
5889rm -f conftest.$ac_objext
5890if { (ac_try="$ac_compile"
5891case "(($ac_try" in
5892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5893 *) ac_try_echo=$ac_try;;
5894esac
5895eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5896 (eval "$ac_compile") 2>conftest.er1
5897 ac_status=$?
5898 grep -v '^ *+' conftest.er1 >conftest.err
5899 rm -f conftest.er1
5900 cat conftest.err >&5
5901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5902 (exit $ac_status); } && {
5903 test -z "$ac_f77_werror_flag" ||
5904 test ! -s conftest.err
5905 } && test -s conftest.$ac_objext; then
5906 ac_cv_prog_f77_g=yes
5907else
5908 echo "$as_me: failed program was:" >&5
5909sed 's/^/| /' conftest.$ac_ext >&5
5910
5911 ac_cv_prog_f77_g=no
5912fi
5913
5914rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5915
5916fi
5917{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5918echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
5919if test "$ac_test_FFLAGS" = set; then
5920 FFLAGS=$ac_save_FFLAGS
5921elif test $ac_cv_prog_f77_g = yes; then
5922 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5923 FFLAGS="-g -O2"
5924 else
5925 FFLAGS="-g"
5926 fi
5927else
5928 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5929 FFLAGS="-O2"
5930 else
5931 FFLAGS=
5932 fi
5933fi
5934
5935G77=`test $ac_compiler_gnu = yes && echo yes`
5936ac_ext=c
5937ac_cpp='$CPP $CPPFLAGS'
5938ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5939ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5940ac_compiler_gnu=$ac_cv_c_compiler_gnu
5941
5942
5943
5944# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5945# find the maximum length of command line arguments
5946{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5947echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
5948if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5949 echo $ECHO_N "(cached) $ECHO_C" >&6
5950else
5951 i=0
5952 teststring="ABCD"
5953
5954 case $build_os in
5955 msdosdjgpp*)
5956 # On DJGPP, this test can blow up pretty badly due to problems in libc
5957 # (any single argument exceeding 2000 bytes causes a buffer overrun
5958 # during glob expansion). Even if it were fixed, the result of this
5959 # check would be larger than it should be.
5960 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5961 ;;
5962
5963 gnu*)
5964 # Under GNU Hurd, this test is not required because there is
5965 # no limit to the length of command line arguments.
5966 # Libtool will interpret -1 as no limit whatsoever
5967 lt_cv_sys_max_cmd_len=-1;
5968 ;;
5969
5970 cygwin* | mingw*)
5971 # On Win9x/ME, this test blows up -- it succeeds, but takes
5972 # about 5 minutes as the teststring grows exponentially.
5973 # Worse, since 9x/ME are not pre-emptively multitasking,
5974 # you end up with a "frozen" computer, even though with patience
5975 # the test eventually succeeds (with a max line length of 256k).
5976 # Instead, let's just punt: use the minimum linelength reported by
5977 # all of the supported platforms: 8192 (on NT/2K/XP).
5978 lt_cv_sys_max_cmd_len=8192;
5979 ;;
5980
5981 amigaos*)
5982 # On AmigaOS with pdksh, this test takes hours, literally.
5983 # So we just punt and use a minimum line length of 8192.
5984 lt_cv_sys_max_cmd_len=8192;
5985 ;;
5986
5987 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5988 # This has been around since 386BSD, at least. Likely further.
5989 if test -x /sbin/sysctl; then
5990 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5991 elif test -x /usr/sbin/sysctl; then
5992 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5993 else
5994 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5995 fi
5996 # And add a safety zone
5997 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5998 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5999 ;;
6000
6001 interix*)
6002 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6003 lt_cv_sys_max_cmd_len=196608
6004 ;;
6005
6006 osf*)
6007 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6008 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6009 # nice to cause kernel panics so lets avoid the loop below.
6010 # First set a reasonable default.
6011 lt_cv_sys_max_cmd_len=16384
6012 #
6013 if test -x /sbin/sysconfig; then
6014 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6015 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6016 esac
6017 fi
6018 ;;
6019 sco3.2v5*)
6020 lt_cv_sys_max_cmd_len=102400
6021 ;;
6022 sysv5* | sco5v6* | sysv4.2uw2*)
6023 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6024 if test -n "$kargmax"; then
6025 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6026 else
6027 lt_cv_sys_max_cmd_len=32768
6028 fi
6029 ;;
6030 *)
6031 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6032 if test -n "$lt_cv_sys_max_cmd_len"; then
6033 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6034 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6035 else
6036 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6037 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6038 = "XX$teststring") >/dev/null 2>&1 &&
6039 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6040 lt_cv_sys_max_cmd_len=$new_result &&
6041 test $i != 17 # 1/2 MB should be enough
6042 do
6043 i=`expr $i + 1`
6044 teststring=$teststring$teststring
6045 done
6046 teststring=
6047 # Add a significant safety factor because C++ compilers can tack on massive
6048 # amounts of additional arguments before passing them to the linker.
6049 # It appears as though 1/2 is a usable value.
6050 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6051 fi
6052 ;;
6053 esac
6054
6055fi
6056
6057if test -n $lt_cv_sys_max_cmd_len ; then
6058 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6059echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6060else
6061 { echo "$as_me:$LINENO: result: none" >&5
6062echo "${ECHO_T}none" >&6; }
6063fi
6064
6065
6066
6067
6068
6069# Check for command to grab the raw symbol name followed by C symbol from nm.
6070{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6071echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6072if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6073 echo $ECHO_N "(cached) $ECHO_C" >&6
6074else
6075
6076# These are sane defaults that work on at least a few old systems.
6077# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6078
6079# Character class describing NM global symbol codes.
6080symcode='[BCDEGRST]'
6081
6082# Regexp to match symbols that can be accessed directly from C.
6083sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6084
6085# Transform an extracted symbol line into a proper C declaration
6086lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6087
6088# Transform an extracted symbol line into symbol name and symbol address
6089lt_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'"
6090
6091# Define system-specific variables.
6092case $host_os in
6093aix*)
6094 symcode='[BCDT]'
6095 ;;
6096cygwin* | mingw* | pw32*)
6097 symcode='[ABCDGISTW]'
6098 ;;
6099hpux*) # Its linker distinguishes data from code symbols
6100 if test "$host_cpu" = ia64; then
6101 symcode='[ABCDEGRST]'
6102 fi
6103 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6104 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'"
6105 ;;
6106linux* | k*bsd*-gnu)
6107 if test "$host_cpu" = ia64; then
6108 symcode='[ABCDGIRSTW]'
6109 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6110 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'"
6111 fi
6112 ;;
6113irix* | nonstopux*)
6114 symcode='[BCDEGRST]'
6115 ;;
6116osf*)
6117 symcode='[BCDEGQRST]'
6118 ;;
6119solaris*)
6120 symcode='[BDRT]'
6121 ;;
6122sco3.2v5*)
6123 symcode='[DT]'
6124 ;;
6125sysv4.2uw2*)
6126 symcode='[DT]'
6127 ;;
6128sysv5* | sco5v6* | unixware* | OpenUNIX*)
6129 symcode='[ABDT]'
6130 ;;
6131sysv4)
6132 symcode='[DFNSTU]'
6133 ;;
6134esac
6135
6136# Handle CRLF in mingw tool chain
6137opt_cr=
6138case $build_os in
6139mingw*)
6140 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6141 ;;
6142esac
6143
6144# If we're using GNU nm, then use its standard symbol codes.
6145case `$NM -V 2>&1` in
6146*GNU* | *'with BFD'*)
6147 symcode='[ABCDGIRSTW]' ;;
6148esac
6149
6150# Try without a prefix undercore, then with it.
6151for ac_symprfx in "" "_"; do
6152
6153 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6154 symxfrm="\\1 $ac_symprfx\\2 \\2"
6155
6156 # Write the raw and C identifiers.
6157 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6158
6159 # Check to see that the pipe works correctly.
6160 pipe_works=no
6161
6162 rm -f conftest*
6163 cat > conftest.$ac_ext <<EOF
6164#ifdef __cplusplus
6165extern "C" {
6166#endif
6167char nm_test_var;
6168void nm_test_func(){}
6169#ifdef __cplusplus
6170}
6171#endif
6172int main(){nm_test_var='a';nm_test_func();return(0);}
6173EOF
6174
6175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6176 (eval $ac_compile) 2>&5
6177 ac_status=$?
6178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6179 (exit $ac_status); }; then
6180 # Now try to grab the symbols.
6181 nlist=conftest.nm
6182 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6183 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6184 ac_status=$?
6185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6186 (exit $ac_status); } && test -s "$nlist"; then
6187 # Try sorting and uniquifying the output.
6188 if sort "$nlist" | uniq > "$nlist"T; then
6189 mv -f "$nlist"T "$nlist"
6190 else
6191 rm -f "$nlist"T
6192 fi
6193
6194 # Make sure that we snagged all the symbols we need.
6195 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6196 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6197 cat <<EOF > conftest.$ac_ext
6198#ifdef __cplusplus
6199extern "C" {
6200#endif
6201
6202EOF
6203 # Now generate the symbol file.
6204 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6205
6206 cat <<EOF >> conftest.$ac_ext
6207#if defined (__STDC__) && __STDC__
6208# define lt_ptr_t void *
6209#else
6210# define lt_ptr_t char *
6211# define const
6212#endif
6213
6214/* The mapping between symbol names and symbols. */
6215const struct {
6216 const char *name;
6217 lt_ptr_t address;
6218}
6219lt_preloaded_symbols[] =
6220{
6221EOF
6222 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6223 cat <<\EOF >> conftest.$ac_ext
6224 {0, (lt_ptr_t) 0}
6225};
6226
6227#ifdef __cplusplus
6228}
6229#endif
6230EOF
6231 # Now try linking the two files.
6232 mv conftest.$ac_objext conftstm.$ac_objext
6233 lt_save_LIBS="$LIBS"
6234 lt_save_CFLAGS="$CFLAGS"
6235 LIBS="conftstm.$ac_objext"
6236 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6237 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6238 (eval $ac_link) 2>&5
6239 ac_status=$?
6240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6241 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6242 pipe_works=yes
6243 fi
6244 LIBS="$lt_save_LIBS"
6245 CFLAGS="$lt_save_CFLAGS"
6246 else
6247 echo "cannot find nm_test_func in $nlist" >&5
6248 fi
6249 else
6250 echo "cannot find nm_test_var in $nlist" >&5
6251 fi
6252 else
6253 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6254 fi
6255 else
6256 echo "$progname: failed program was:" >&5
6257 cat conftest.$ac_ext >&5
6258 fi
6259 rm -rf conftest* conftst*
6260
6261 # Do not use the global_symbol_pipe unless it works.
6262 if test "$pipe_works" = yes; then
6263 break
6264 else
6265 lt_cv_sys_global_symbol_pipe=
6266 fi
6267done
6268
6269fi
6270
6271if test -z "$lt_cv_sys_global_symbol_pipe"; then
6272 lt_cv_sys_global_symbol_to_cdecl=
6273fi
6274if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6275 { echo "$as_me:$LINENO: result: failed" >&5
6276echo "${ECHO_T}failed" >&6; }
6277else
6278 { echo "$as_me:$LINENO: result: ok" >&5
6279echo "${ECHO_T}ok" >&6; }
6280fi
6281
6282{ echo "$as_me:$LINENO: checking for objdir" >&5
6283echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6284if test "${lt_cv_objdir+set}" = set; then
6285 echo $ECHO_N "(cached) $ECHO_C" >&6
6286else
6287 rm -f .libs 2>/dev/null
6288mkdir .libs 2>/dev/null
6289if test -d .libs; then
6290 lt_cv_objdir=.libs
6291else
6292 # MS-DOS does not allow filenames that begin with a dot.
6293 lt_cv_objdir=_libs
6294fi
6295rmdir .libs 2>/dev/null
6296fi
6297{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6298echo "${ECHO_T}$lt_cv_objdir" >&6; }
6299objdir=$lt_cv_objdir
6300
6301
6302
6303
6304
6305case $host_os in
6306aix3*)
6307 # AIX sometimes has problems with the GCC collect2 program. For some
6308 # reason, if we set the COLLECT_NAMES environment variable, the problems
6309 # vanish in a puff of smoke.
6310 if test "X${COLLECT_NAMES+set}" != Xset; then
6311 COLLECT_NAMES=
6312 export COLLECT_NAMES
6313 fi
6314 ;;
6315esac
6316
6317# Sed substitution that helps us do robust quoting. It backslashifies
6318# metacharacters that are still active within double-quoted strings.
6319Xsed='sed -e 1s/^X//'
6320sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6321
6322# Same as above, but do not quote variable references.
6323double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6324
6325# Sed substitution to delay expansion of an escaped shell variable in a
6326# double_quote_subst'ed string.
6327delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6328
6329# Sed substitution to avoid accidental globbing in evaled expressions
6330no_glob_subst='s/\*/\\\*/g'
6331
6332# Constants:
6333rm="rm -f"
6334
6335# Global variables:
6336default_ofile=libtool
6337can_build_shared=yes
6338
6339# All known linkers require a `.a' archive for static linking (except MSVC,
6340# which needs '.lib').
6341libext=a
6342ltmain="$ac_aux_dir/ltmain.sh"
6343ofile="$default_ofile"
6344with_gnu_ld="$lt_cv_prog_gnu_ld"
6345
6346if test -n "$ac_tool_prefix"; then
6347 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6348set dummy ${ac_tool_prefix}ar; ac_word=$2
6349{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6350echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6351if test "${ac_cv_prog_AR+set}" = set; then
6352 echo $ECHO_N "(cached) $ECHO_C" >&6
6353else
6354 if test -n "$AR"; then
6355 ac_cv_prog_AR="$AR" # Let the user override the test.
6356else
6357as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6358for as_dir in $PATH
6359do
6360 IFS=$as_save_IFS
6361 test -z "$as_dir" && as_dir=.
6362 for ac_exec_ext in '' $ac_executable_extensions; do
6363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6364 ac_cv_prog_AR="${ac_tool_prefix}ar"
6365 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6366 break 2
6367 fi
6368done
6369done
6370IFS=$as_save_IFS
6371
6372fi
6373fi
6374AR=$ac_cv_prog_AR
6375if test -n "$AR"; then
6376 { echo "$as_me:$LINENO: result: $AR" >&5
6377echo "${ECHO_T}$AR" >&6; }
6378else
6379 { echo "$as_me:$LINENO: result: no" >&5
6380echo "${ECHO_T}no" >&6; }
6381fi
6382
6383
6384fi
6385if test -z "$ac_cv_prog_AR"; then
6386 ac_ct_AR=$AR
6387 # Extract the first word of "ar", so it can be a program name with args.
6388set dummy ar; ac_word=$2
6389{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6390echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6391if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6392 echo $ECHO_N "(cached) $ECHO_C" >&6
6393else
6394 if test -n "$ac_ct_AR"; then
6395 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6396else
6397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6398for as_dir in $PATH
6399do
6400 IFS=$as_save_IFS
6401 test -z "$as_dir" && as_dir=.
6402 for ac_exec_ext in '' $ac_executable_extensions; do
6403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6404 ac_cv_prog_ac_ct_AR="ar"
6405 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6406 break 2
6407 fi
6408done
6409done
6410IFS=$as_save_IFS
6411
6412fi
6413fi
6414ac_ct_AR=$ac_cv_prog_ac_ct_AR
6415if test -n "$ac_ct_AR"; then
6416 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6417echo "${ECHO_T}$ac_ct_AR" >&6; }
6418else
6419 { echo "$as_me:$LINENO: result: no" >&5
6420echo "${ECHO_T}no" >&6; }
6421fi
6422
6423 if test "x$ac_ct_AR" = x; then
6424 AR="false"
6425 else
6426 case $cross_compiling:$ac_tool_warned in
6427yes:)
6428{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6429whose name does not start with the host triplet. If you think this
6430configuration is useful to you, please write to autoconf@gnu.org." >&5
6431echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6432whose name does not start with the host triplet. If you think this
6433configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6434ac_tool_warned=yes ;;
6435esac
6436 AR=$ac_ct_AR
6437 fi
6438else
6439 AR="$ac_cv_prog_AR"
6440fi
6441
6442if test -n "$ac_tool_prefix"; then
6443 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6444set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6445{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6446echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6447if test "${ac_cv_prog_RANLIB+set}" = set; then
6448 echo $ECHO_N "(cached) $ECHO_C" >&6
6449else
6450 if test -n "$RANLIB"; then
6451 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6452else
6453as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6454for as_dir in $PATH
6455do
6456 IFS=$as_save_IFS
6457 test -z "$as_dir" && as_dir=.
6458 for ac_exec_ext in '' $ac_executable_extensions; do
6459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6460 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6461 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6462 break 2
6463 fi
6464done
6465done
6466IFS=$as_save_IFS
6467
6468fi
6469fi
6470RANLIB=$ac_cv_prog_RANLIB
6471if test -n "$RANLIB"; then
6472 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6473echo "${ECHO_T}$RANLIB" >&6; }
6474else
6475 { echo "$as_me:$LINENO: result: no" >&5
6476echo "${ECHO_T}no" >&6; }
6477fi
6478
6479
6480fi
6481if test -z "$ac_cv_prog_RANLIB"; then
6482 ac_ct_RANLIB=$RANLIB
6483 # Extract the first word of "ranlib", so it can be a program name with args.
6484set dummy ranlib; ac_word=$2
6485{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6486echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6487if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6488 echo $ECHO_N "(cached) $ECHO_C" >&6
6489else
6490 if test -n "$ac_ct_RANLIB"; then
6491 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6492else
6493as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6494for as_dir in $PATH
6495do
6496 IFS=$as_save_IFS
6497 test -z "$as_dir" && as_dir=.
6498 for ac_exec_ext in '' $ac_executable_extensions; do
6499 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6500 ac_cv_prog_ac_ct_RANLIB="ranlib"
6501 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6502 break 2
6503 fi
6504done
6505done
6506IFS=$as_save_IFS
6507
6508fi
6509fi
6510ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6511if test -n "$ac_ct_RANLIB"; then
6512 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6513echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6514else
6515 { echo "$as_me:$LINENO: result: no" >&5
6516echo "${ECHO_T}no" >&6; }
6517fi
6518
6519 if test "x$ac_ct_RANLIB" = x; then
6520 RANLIB=":"
6521 else
6522 case $cross_compiling:$ac_tool_warned in
6523yes:)
6524{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6525whose name does not start with the host triplet. If you think this
6526configuration is useful to you, please write to autoconf@gnu.org." >&5
6527echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6528whose name does not start with the host triplet. If you think this
6529configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6530ac_tool_warned=yes ;;
6531esac
6532 RANLIB=$ac_ct_RANLIB
6533 fi
6534else
6535 RANLIB="$ac_cv_prog_RANLIB"
6536fi
6537
6538if test -n "$ac_tool_prefix"; then
6539 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6540set dummy ${ac_tool_prefix}strip; ac_word=$2
6541{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6542echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6543if test "${ac_cv_prog_STRIP+set}" = set; then
6544 echo $ECHO_N "(cached) $ECHO_C" >&6
6545else
6546 if test -n "$STRIP"; then
6547 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6548else
6549as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6550for as_dir in $PATH
6551do
6552 IFS=$as_save_IFS
6553 test -z "$as_dir" && as_dir=.
6554 for ac_exec_ext in '' $ac_executable_extensions; do
6555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6556 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6557 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6558 break 2
6559 fi
6560done
6561done
6562IFS=$as_save_IFS
6563
6564fi
6565fi
6566STRIP=$ac_cv_prog_STRIP
6567if test -n "$STRIP"; then
6568 { echo "$as_me:$LINENO: result: $STRIP" >&5
6569echo "${ECHO_T}$STRIP" >&6; }
6570else
6571 { echo "$as_me:$LINENO: result: no" >&5
6572echo "${ECHO_T}no" >&6; }
6573fi
6574
6575
6576fi
6577if test -z "$ac_cv_prog_STRIP"; then
6578 ac_ct_STRIP=$STRIP
6579 # Extract the first word of "strip", so it can be a program name with args.
6580set dummy strip; ac_word=$2
6581{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6582echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6583if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6584 echo $ECHO_N "(cached) $ECHO_C" >&6
6585else
6586 if test -n "$ac_ct_STRIP"; then
6587 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6588else
6589as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6590for as_dir in $PATH
6591do
6592 IFS=$as_save_IFS
6593 test -z "$as_dir" && as_dir=.
6594 for ac_exec_ext in '' $ac_executable_extensions; do
6595 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6596 ac_cv_prog_ac_ct_STRIP="strip"
6597 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6598 break 2
6599 fi
6600done
6601done
6602IFS=$as_save_IFS
6603
6604fi
6605fi
6606ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6607if test -n "$ac_ct_STRIP"; then
6608 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6609echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6610else
6611 { echo "$as_me:$LINENO: result: no" >&5
6612echo "${ECHO_T}no" >&6; }
6613fi
6614
6615 if test "x$ac_ct_STRIP" = x; then
6616 STRIP=":"
6617 else
6618 case $cross_compiling:$ac_tool_warned in
6619yes:)
6620{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6621whose name does not start with the host triplet. If you think this
6622configuration is useful to you, please write to autoconf@gnu.org." >&5
6623echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6624whose name does not start with the host triplet. If you think this
6625configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6626ac_tool_warned=yes ;;
6627esac
6628 STRIP=$ac_ct_STRIP
6629 fi
6630else
6631 STRIP="$ac_cv_prog_STRIP"
6632fi
6633
6634
6635old_CC="$CC"
6636old_CFLAGS="$CFLAGS"
6637
6638# Set sane defaults for various variables
6639test -z "$AR" && AR=ar
6640test -z "$AR_FLAGS" && AR_FLAGS=cru
6641test -z "$AS" && AS=as
6642test -z "$CC" && CC=cc
6643test -z "$LTCC" && LTCC=$CC
6644test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6645test -z "$DLLTOOL" && DLLTOOL=dlltool
6646test -z "$LD" && LD=ld
6647test -z "$LN_S" && LN_S="ln -s"
6648test -z "$MAGIC_CMD" && MAGIC_CMD=file
6649test -z "$NM" && NM=nm
6650test -z "$SED" && SED=sed
6651test -z "$OBJDUMP" && OBJDUMP=objdump
6652test -z "$RANLIB" && RANLIB=:
6653test -z "$STRIP" && STRIP=:
6654test -z "$ac_objext" && ac_objext=o
6655
6656# Determine commands to create old-style static archives.
6657old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6658old_postinstall_cmds='chmod 644 $oldlib'
6659old_postuninstall_cmds=
6660
6661if test -n "$RANLIB"; then
6662 case $host_os in
6663 openbsd*)
6664 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6665 ;;
6666 *)
6667 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6668 ;;
6669 esac
6670 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6671fi
6672
6673for cc_temp in $compiler""; do
6674 case $cc_temp in
6675 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6676 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6677 \-*) ;;
6678 *) break;;
6679 esac
6680done
6681cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6682
6683
6684# Only perform the check for file, if the check method requires it
6685case $deplibs_check_method in
6686file_magic*)
6687 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6688 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6689echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6690if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6691 echo $ECHO_N "(cached) $ECHO_C" >&6
6692else
6693 case $MAGIC_CMD in
6694[\\/*] | ?:[\\/]*)
6695 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6696 ;;
6697*)
6698 lt_save_MAGIC_CMD="$MAGIC_CMD"
6699 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6700 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6701 for ac_dir in $ac_dummy; do
6702 IFS="$lt_save_ifs"
6703 test -z "$ac_dir" && ac_dir=.
6704 if test -f $ac_dir/${ac_tool_prefix}file; then
6705 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6706 if test -n "$file_magic_test_file"; then
6707 case $deplibs_check_method in
6708 "file_magic "*)
6709 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6710 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6711 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6712 $EGREP "$file_magic_regex" > /dev/null; then
6713 :
6714 else
6715 cat <<EOF 1>&2
6716
6717*** Warning: the command libtool uses to detect shared libraries,
6718*** $file_magic_cmd, produces output that libtool cannot recognize.
6719*** The result is that libtool may fail to recognize shared libraries
6720*** as such. This will affect the creation of libtool libraries that
6721*** depend on shared libraries, but programs linked with such libtool
6722*** libraries will work regardless of this problem. Nevertheless, you
6723*** may want to report the problem to your system manager and/or to
6724*** bug-libtool@gnu.org
6725
6726EOF
6727 fi ;;
6728 esac
6729 fi
6730 break
6731 fi
6732 done
6733 IFS="$lt_save_ifs"
6734 MAGIC_CMD="$lt_save_MAGIC_CMD"
6735 ;;
6736esac
6737fi
6738
6739MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6740if test -n "$MAGIC_CMD"; then
6741 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6742echo "${ECHO_T}$MAGIC_CMD" >&6; }
6743else
6744 { echo "$as_me:$LINENO: result: no" >&5
6745echo "${ECHO_T}no" >&6; }
6746fi
6747
6748if test -z "$lt_cv_path_MAGIC_CMD"; then
6749 if test -n "$ac_tool_prefix"; then
6750 { echo "$as_me:$LINENO: checking for file" >&5
6751echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6752if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6753 echo $ECHO_N "(cached) $ECHO_C" >&6
6754else
6755 case $MAGIC_CMD in
6756[\\/*] | ?:[\\/]*)
6757 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6758 ;;
6759*)
6760 lt_save_MAGIC_CMD="$MAGIC_CMD"
6761 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6762 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6763 for ac_dir in $ac_dummy; do
6764 IFS="$lt_save_ifs"
6765 test -z "$ac_dir" && ac_dir=.
6766 if test -f $ac_dir/file; then
6767 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6768 if test -n "$file_magic_test_file"; then
6769 case $deplibs_check_method in
6770 "file_magic "*)
6771 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6772 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6773 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6774 $EGREP "$file_magic_regex" > /dev/null; then
6775 :
6776 else
6777 cat <<EOF 1>&2
6778
6779*** Warning: the command libtool uses to detect shared libraries,
6780*** $file_magic_cmd, produces output that libtool cannot recognize.
6781*** The result is that libtool may fail to recognize shared libraries
6782*** as such. This will affect the creation of libtool libraries that
6783*** depend on shared libraries, but programs linked with such libtool
6784*** libraries will work regardless of this problem. Nevertheless, you
6785*** may want to report the problem to your system manager and/or to
6786*** bug-libtool@gnu.org
6787
6788EOF
6789 fi ;;
6790 esac
6791 fi
6792 break
6793 fi
6794 done
6795 IFS="$lt_save_ifs"
6796 MAGIC_CMD="$lt_save_MAGIC_CMD"
6797 ;;
6798esac
6799fi
6800
6801MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6802if test -n "$MAGIC_CMD"; then
6803 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6804echo "${ECHO_T}$MAGIC_CMD" >&6; }
6805else
6806 { echo "$as_me:$LINENO: result: no" >&5
6807echo "${ECHO_T}no" >&6; }
6808fi
6809
6810 else
6811 MAGIC_CMD=:
6812 fi
6813fi
6814
6815 fi
6816 ;;
6817esac
6818
6819
6820 case $host_os in
6821 rhapsody* | darwin*)
6822 if test -n "$ac_tool_prefix"; then
6823 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6824set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6825{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6826echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6827if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6828 echo $ECHO_N "(cached) $ECHO_C" >&6
6829else
6830 if test -n "$DSYMUTIL"; then
6831 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6832else
6833as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6834for as_dir in $PATH
6835do
6836 IFS=$as_save_IFS
6837 test -z "$as_dir" && as_dir=.
6838 for ac_exec_ext in '' $ac_executable_extensions; do
6839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6840 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6841 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6842 break 2
6843 fi
6844done
6845done
6846IFS=$as_save_IFS
6847
6848fi
6849fi
6850DSYMUTIL=$ac_cv_prog_DSYMUTIL
6851if test -n "$DSYMUTIL"; then
6852 { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
6853echo "${ECHO_T}$DSYMUTIL" >&6; }
6854else
6855 { echo "$as_me:$LINENO: result: no" >&5
6856echo "${ECHO_T}no" >&6; }
6857fi
6858
6859
6860fi
6861if test -z "$ac_cv_prog_DSYMUTIL"; then
6862 ac_ct_DSYMUTIL=$DSYMUTIL
6863 # Extract the first word of "dsymutil", so it can be a program name with args.
6864set dummy dsymutil; ac_word=$2
6865{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6866echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6867if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6868 echo $ECHO_N "(cached) $ECHO_C" >&6
6869else
6870 if test -n "$ac_ct_DSYMUTIL"; then
6871 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6872else
6873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6874for as_dir in $PATH
6875do
6876 IFS=$as_save_IFS
6877 test -z "$as_dir" && as_dir=.
6878 for ac_exec_ext in '' $ac_executable_extensions; do
6879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6880 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6881 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6882 break 2
6883 fi
6884done
6885done
6886IFS=$as_save_IFS
6887
6888fi
6889fi
6890ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6891if test -n "$ac_ct_DSYMUTIL"; then
6892 { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6893echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
6894else
6895 { echo "$as_me:$LINENO: result: no" >&5
6896echo "${ECHO_T}no" >&6; }
6897fi
6898
6899 if test "x$ac_ct_DSYMUTIL" = x; then
6900 DSYMUTIL=":"
6901 else
6902 case $cross_compiling:$ac_tool_warned in
6903yes:)
6904{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6905whose name does not start with the host triplet. If you think this
6906configuration is useful to you, please write to autoconf@gnu.org." >&5
6907echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6908whose name does not start with the host triplet. If you think this
6909configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6910ac_tool_warned=yes ;;
6911esac
6912 DSYMUTIL=$ac_ct_DSYMUTIL
6913 fi
6914else
6915 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6916fi
6917
6918 if test -n "$ac_tool_prefix"; then
6919 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6920set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6921{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6922echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6923if test "${ac_cv_prog_NMEDIT+set}" = set; then
6924 echo $ECHO_N "(cached) $ECHO_C" >&6
6925else
6926 if test -n "$NMEDIT"; then
6927 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6928else
6929as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6930for as_dir in $PATH
6931do
6932 IFS=$as_save_IFS
6933 test -z "$as_dir" && as_dir=.
6934 for ac_exec_ext in '' $ac_executable_extensions; do
6935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6936 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6937 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6938 break 2
6939 fi
6940done
6941done
6942IFS=$as_save_IFS
6943
6944fi
6945fi
6946NMEDIT=$ac_cv_prog_NMEDIT
6947if test -n "$NMEDIT"; then
6948 { echo "$as_me:$LINENO: result: $NMEDIT" >&5
6949echo "${ECHO_T}$NMEDIT" >&6; }
6950else
6951 { echo "$as_me:$LINENO: result: no" >&5
6952echo "${ECHO_T}no" >&6; }
6953fi
6954
6955
6956fi
6957if test -z "$ac_cv_prog_NMEDIT"; then
6958 ac_ct_NMEDIT=$NMEDIT
6959 # Extract the first word of "nmedit", so it can be a program name with args.
6960set dummy nmedit; ac_word=$2
6961{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6962echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6963if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6964 echo $ECHO_N "(cached) $ECHO_C" >&6
6965else
6966 if test -n "$ac_ct_NMEDIT"; then
6967 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6968else
6969as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6970for as_dir in $PATH
6971do
6972 IFS=$as_save_IFS
6973 test -z "$as_dir" && as_dir=.
6974 for ac_exec_ext in '' $ac_executable_extensions; do
6975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6976 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6977 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6978 break 2
6979 fi
6980done
6981done
6982IFS=$as_save_IFS
6983
6984fi
6985fi
6986ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6987if test -n "$ac_ct_NMEDIT"; then
6988 { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6989echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
6990else
6991 { echo "$as_me:$LINENO: result: no" >&5
6992echo "${ECHO_T}no" >&6; }
6993fi
6994
6995 if test "x$ac_ct_NMEDIT" = x; then
6996 NMEDIT=":"
6997 else
6998 case $cross_compiling:$ac_tool_warned in
6999yes:)
7000{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7001whose name does not start with the host triplet. If you think this
7002configuration is useful to you, please write to autoconf@gnu.org." >&5
7003echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7004whose name does not start with the host triplet. If you think this
7005configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7006ac_tool_warned=yes ;;
7007esac
7008 NMEDIT=$ac_ct_NMEDIT
7009 fi
7010else
7011 NMEDIT="$ac_cv_prog_NMEDIT"
7012fi
7013
7014
7015 { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7016echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7017if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7018 echo $ECHO_N "(cached) $ECHO_C" >&6
7019else
7020 lt_cv_apple_cc_single_mod=no
7021 if test -z "${LT_MULTI_MODULE}"; then
7022 # By default we will add the -single_module flag. You can override
7023 # by either setting the environment variable LT_MULTI_MODULE
7024 # non-empty at configure time, or by adding -multi_module to the
7025 # link flags.
7026 echo "int foo(void){return 1;}" > conftest.c
7027 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7028 -dynamiclib ${wl}-single_module conftest.c
7029 if test -f libconftest.dylib; then
7030 lt_cv_apple_cc_single_mod=yes
7031 rm -rf libconftest.dylib*
7032 fi
7033 rm conftest.c
7034 fi
7035fi
7036{ echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7037echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7038 { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7039echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7040if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7041 echo $ECHO_N "(cached) $ECHO_C" >&6
7042else
7043 lt_cv_ld_exported_symbols_list=no
7044 save_LDFLAGS=$LDFLAGS
7045 echo "_main" > conftest.sym
7046 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7047 cat >conftest.$ac_ext <<_ACEOF
7048/* confdefs.h. */
7049_ACEOF
7050cat confdefs.h >>conftest.$ac_ext
7051cat >>conftest.$ac_ext <<_ACEOF
7052/* end confdefs.h. */
7053
7054int
7055main ()
7056{
7057
7058 ;
7059 return 0;
7060}
7061_ACEOF
7062rm -f conftest.$ac_objext conftest$ac_exeext
7063if { (ac_try="$ac_link"
7064case "(($ac_try" in
7065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7066 *) ac_try_echo=$ac_try;;
7067esac
7068eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7069 (eval "$ac_link") 2>conftest.er1
7070 ac_status=$?
7071 grep -v '^ *+' conftest.er1 >conftest.err
7072 rm -f conftest.er1
7073 cat conftest.err >&5
7074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7075 (exit $ac_status); } && {
7076 test -z "$ac_c_werror_flag" ||
7077 test ! -s conftest.err
7078 } && test -s conftest$ac_exeext &&
7079 $as_test_x conftest$ac_exeext; then
7080 lt_cv_ld_exported_symbols_list=yes
7081else
7082 echo "$as_me: failed program was:" >&5
7083sed 's/^/| /' conftest.$ac_ext >&5
7084
7085 lt_cv_ld_exported_symbols_list=no
7086fi
7087
7088rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7089 conftest$ac_exeext conftest.$ac_ext
7090 LDFLAGS="$save_LDFLAGS"
7091
7092fi
7093{ echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7094echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
7095 case $host_os in
7096 rhapsody* | darwin1.[0123])
7097 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7098 darwin1.*)
7099 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7100 darwin*)
7101 # if running on 10.5 or later, the deployment target defaults
7102 # to the OS version, if on x86, and 10.4, the deployment
7103 # target defaults to 10.4. Don't you love it?
7104 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7105 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7106 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7107 10.[012]*)
7108 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7109 10.*)
7110 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7111 esac
7112 ;;
7113 esac
7114 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7115 _lt_dar_single_mod='$single_module'
7116 fi
7117 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7118 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7119 else
7120 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7121 fi
7122 if test "$DSYMUTIL" != ":"; then
7123 _lt_dsymutil="~$DSYMUTIL \$lib || :"
7124 else
7125 _lt_dsymutil=
7126 fi
7127 ;;
7128 esac
7129
7130
7131enable_dlopen=no
7132enable_win32_dll=no
7133
7134# Check whether --enable-libtool-lock was given.
7135if test "${enable_libtool_lock+set}" = set; then
7136 enableval=$enable_libtool_lock;
7137fi
7138
7139test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7140
7141
7142# Check whether --with-pic was given.
7143if test "${with_pic+set}" = set; then
7144 withval=$with_pic; pic_mode="$withval"
7145else
7146 pic_mode=default
7147fi
7148
7149test -z "$pic_mode" && pic_mode=default
7150
7151# Use C for the default configuration in the libtool script
7152tagname=
7153lt_save_CC="$CC"
7154ac_ext=c
7155ac_cpp='$CPP $CPPFLAGS'
7156ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7157ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7158ac_compiler_gnu=$ac_cv_c_compiler_gnu
7159
7160
7161# Source file extension for C test sources.
7162ac_ext=c
7163
7164# Object file extension for compiled C test sources.
7165objext=o
7166objext=$objext
7167
7168# Code to be used in simple compile tests
7169lt_simple_compile_test_code="int some_variable = 0;"
7170
7171# Code to be used in simple link tests
7172lt_simple_link_test_code='int main(){return(0);}'
7173
7174
7175# If no C compiler was specified, use CC.
7176LTCC=${LTCC-"$CC"}
7177
7178# If no C compiler flags were specified, use CFLAGS.
7179LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7180
7181# Allow CC to be a program name with arguments.
7182compiler=$CC
7183
7184
7185# save warnings/boilerplate of simple test code
7186ac_outfile=conftest.$ac_objext
7187echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7188eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7189_lt_compiler_boilerplate=`cat conftest.err`
7190$rm conftest*
7191
7192ac_outfile=conftest.$ac_objext
7193echo "$lt_simple_link_test_code" >conftest.$ac_ext
7194eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7195_lt_linker_boilerplate=`cat conftest.err`
7196$rm -r conftest*
7197
7198
7199
7200lt_prog_compiler_no_builtin_flag=
7201
7202if test "$GCC" = yes; then
7203 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7204
7205
7206{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7207echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7208if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7209 echo $ECHO_N "(cached) $ECHO_C" >&6
7210else
7211 lt_cv_prog_compiler_rtti_exceptions=no
7212 ac_outfile=conftest.$ac_objext
7213 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7214 lt_compiler_flag="-fno-rtti -fno-exceptions"
7215 # Insert the option either (1) after the last *FLAGS variable, or
7216 # (2) before a word containing "conftest.", or (3) at the end.
7217 # Note that $ac_compile itself does not contain backslashes and begins
7218 # with a dollar sign (not a hyphen), so the echo should work correctly.
7219 # The option is referenced via a variable to avoid confusing sed.
7220 lt_compile=`echo "$ac_compile" | $SED \
7221 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7222 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7223 -e 's:$: $lt_compiler_flag:'`
7224 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
7225 (eval "$lt_compile" 2>conftest.err)
7226 ac_status=$?
7227 cat conftest.err >&5
7228 echo "$as_me:__oline__: \$? = $ac_status" >&5
7229 if (exit $ac_status) && test -s "$ac_outfile"; then
7230 # The compiler can only warn and ignore the option if not recognized
7231 # So say no if there are warnings other than the usual output.
7232 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7233 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7234 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7235 lt_cv_prog_compiler_rtti_exceptions=yes
7236 fi
7237 fi
7238 $rm conftest*
7239
7240fi
7241{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7242echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7243
7244if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7245 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7246else
7247 :
7248fi
7249
7250fi
7251
7252lt_prog_compiler_wl=
7253lt_prog_compiler_pic=
7254lt_prog_compiler_static=
7255
7256{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7257echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7258
7259 if test "$GCC" = yes; then
7260 lt_prog_compiler_wl='-Wl,'
7261 lt_prog_compiler_static='-static'
7262
7263 case $host_os in
7264 aix*)
7265 # All AIX code is PIC.
7266 if test "$host_cpu" = ia64; then
7267 # AIX 5 now supports IA64 processor
7268 lt_prog_compiler_static='-Bstatic'
7269 fi
7270 ;;
7271
7272 amigaos*)
7273 # FIXME: we need at least 68020 code to build shared libraries, but
7274 # adding the `-m68020' flag to GCC prevents building anything better,
7275 # like `-m68040'.
7276 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7277 ;;
7278
7279 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7280 # PIC is the default for these OSes.
7281 ;;
7282
7283 mingw* | cygwin* | pw32* | os2*)
7284 # This hack is so that the source file can tell whether it is being
7285 # built for inclusion in a dll (and should export symbols for example).
7286 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7287 # (--disable-auto-import) libraries
7288 lt_prog_compiler_pic='-DDLL_EXPORT'
7289 ;;
7290
7291 darwin* | rhapsody*)
7292 # PIC is the default on this platform
7293 # Common symbols not allowed in MH_DYLIB files
7294 lt_prog_compiler_pic='-fno-common'
7295 ;;
7296
7297 interix[3-9]*)
7298 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7299 # Instead, we relocate shared libraries at runtime.
7300 ;;
7301
7302 msdosdjgpp*)
7303 # Just because we use GCC doesn't mean we suddenly get shared libraries
7304 # on systems that don't support them.
7305 lt_prog_compiler_can_build_shared=no
7306 enable_shared=no
7307 ;;
7308
7309 sysv4*MP*)
7310 if test -d /usr/nec; then
7311 lt_prog_compiler_pic=-Kconform_pic
7312 fi
7313 ;;
7314
7315 hpux*)
7316 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7317 # not for PA HP-UX.
7318 case $host_cpu in
7319 hppa*64*|ia64*)
7320 # +Z the default
7321 ;;
7322 *)
7323 lt_prog_compiler_pic='-fPIC'
7324 ;;
7325 esac
7326 ;;
7327
7328 *)
7329 lt_prog_compiler_pic='-fPIC'
7330 ;;
7331 esac
7332 else
7333 # PORTME Check for flag to pass linker flags through the system compiler.
7334 case $host_os in
7335 aix*)
7336 lt_prog_compiler_wl='-Wl,'
7337 if test "$host_cpu" = ia64; then
7338 # AIX 5 now supports IA64 processor
7339 lt_prog_compiler_static='-Bstatic'
7340 else
7341 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7342 fi
7343 ;;
7344 darwin*)
7345 # PIC is the default on this platform
7346 # Common symbols not allowed in MH_DYLIB files
7347 case $cc_basename in
7348 xlc*)
7349 lt_prog_compiler_pic='-qnocommon'
7350 lt_prog_compiler_wl='-Wl,'
7351 ;;
7352 esac
7353 ;;
7354
7355 mingw* | cygwin* | pw32* | os2*)
7356 # This hack is so that the source file can tell whether it is being
7357 # built for inclusion in a dll (and should export symbols for example).
7358 lt_prog_compiler_pic='-DDLL_EXPORT'
7359 ;;
7360
7361 hpux9* | hpux10* | hpux11*)
7362 lt_prog_compiler_wl='-Wl,'
7363 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7364 # not for PA HP-UX.
7365 case $host_cpu in
7366 hppa*64*|ia64*)
7367 # +Z the default
7368 ;;
7369 *)
7370 lt_prog_compiler_pic='+Z'
7371 ;;
7372 esac
7373 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7374 lt_prog_compiler_static='${wl}-a ${wl}archive'
7375 ;;
7376
7377 irix5* | irix6* | nonstopux*)
7378 lt_prog_compiler_wl='-Wl,'
7379 # PIC (with -KPIC) is the default.
7380 lt_prog_compiler_static='-non_shared'
7381 ;;
7382
7383 newsos6)
7384 lt_prog_compiler_pic='-KPIC'
7385 lt_prog_compiler_static='-Bstatic'
7386 ;;
7387
7388 linux* | k*bsd*-gnu)
7389 case $cc_basename in
7390 icc* | ecc*)
7391 lt_prog_compiler_wl='-Wl,'
7392 lt_prog_compiler_pic='-KPIC'
7393 lt_prog_compiler_static='-static'
7394 ;;
7395 pgcc* | pgf77* | pgf90* | pgf95*)
7396 # Portland Group compilers (*not* the Pentium gcc compiler,
7397 # which looks to be a dead project)
7398 lt_prog_compiler_wl='-Wl,'
7399 lt_prog_compiler_pic='-fpic'
7400 lt_prog_compiler_static='-Bstatic'
7401 ;;
7402 ccc*)
7403 lt_prog_compiler_wl='-Wl,'
7404 # All Alpha code is PIC.
7405 lt_prog_compiler_static='-non_shared'
7406 ;;
7407 *)
7408 case `$CC -V 2>&1 | sed 5q` in
7409 *Sun\ C*)
7410 # Sun C 5.9
7411 lt_prog_compiler_pic='-KPIC'
7412 lt_prog_compiler_static='-Bstatic'
7413 lt_prog_compiler_wl='-Wl,'
7414 ;;
7415 *Sun\ F*)
7416 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7417 lt_prog_compiler_pic='-KPIC'
7418 lt_prog_compiler_static='-Bstatic'
7419 lt_prog_compiler_wl=''
7420 ;;
7421 esac
7422 ;;
7423 esac
7424 ;;
7425
7426 osf3* | osf4* | osf5*)
7427 lt_prog_compiler_wl='-Wl,'
7428 # All OSF/1 code is PIC.
7429 lt_prog_compiler_static='-non_shared'
7430 ;;
7431
7432 rdos*)
7433 lt_prog_compiler_static='-non_shared'
7434 ;;
7435
7436 solaris*)
7437 lt_prog_compiler_pic='-KPIC'
7438 lt_prog_compiler_static='-Bstatic'
7439 case $cc_basename in
7440 f77* | f90* | f95*)
7441 lt_prog_compiler_wl='-Qoption ld ';;
7442 *)
7443 lt_prog_compiler_wl='-Wl,';;
7444 esac
7445 ;;
7446
7447 sunos4*)
7448 lt_prog_compiler_wl='-Qoption ld '
7449 lt_prog_compiler_pic='-PIC'
7450 lt_prog_compiler_static='-Bstatic'
7451 ;;
7452
7453 sysv4 | sysv4.2uw2* | sysv4.3*)
7454 lt_prog_compiler_wl='-Wl,'
7455 lt_prog_compiler_pic='-KPIC'
7456 lt_prog_compiler_static='-Bstatic'
7457 ;;
7458
7459 sysv4*MP*)
7460 if test -d /usr/nec ;then
7461 lt_prog_compiler_pic='-Kconform_pic'
7462 lt_prog_compiler_static='-Bstatic'
7463 fi
7464 ;;
7465
7466 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7467 lt_prog_compiler_wl='-Wl,'
7468 lt_prog_compiler_pic='-KPIC'
7469 lt_prog_compiler_static='-Bstatic'
7470 ;;
7471
7472 unicos*)
7473 lt_prog_compiler_wl='-Wl,'
7474 lt_prog_compiler_can_build_shared=no
7475 ;;
7476
7477 uts4*)
7478 lt_prog_compiler_pic='-pic'
7479 lt_prog_compiler_static='-Bstatic'
7480 ;;
7481
7482 *)
7483 lt_prog_compiler_can_build_shared=no
7484 ;;
7485 esac
7486 fi
7487
7488{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7489echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7490
7491#
7492# Check to make sure the PIC flag actually works.
7493#
7494if test -n "$lt_prog_compiler_pic"; then
7495
7496{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7497echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7498if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7499 echo $ECHO_N "(cached) $ECHO_C" >&6
7500else
7501 lt_cv_prog_compiler_pic_works=no
7502 ac_outfile=conftest.$ac_objext
7503 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7504 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7505 # Insert the option either (1) after the last *FLAGS variable, or
7506 # (2) before a word containing "conftest.", or (3) at the end.
7507 # Note that $ac_compile itself does not contain backslashes and begins
7508 # with a dollar sign (not a hyphen), so the echo should work correctly.
7509 # The option is referenced via a variable to avoid confusing sed.
7510 lt_compile=`echo "$ac_compile" | $SED \
7511 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7512 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7513 -e 's:$: $lt_compiler_flag:'`
7514 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
7515 (eval "$lt_compile" 2>conftest.err)
7516 ac_status=$?
7517 cat conftest.err >&5
7518 echo "$as_me:__oline__: \$? = $ac_status" >&5
7519 if (exit $ac_status) && test -s "$ac_outfile"; then
7520 # The compiler can only warn and ignore the option if not recognized
7521 # So say no if there are warnings other than the usual output.
7522 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7523 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7524 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7525 lt_cv_prog_compiler_pic_works=yes
7526 fi
7527 fi
7528 $rm conftest*
7529
7530fi
7531{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7532echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
7533
7534if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7535 case $lt_prog_compiler_pic in
7536 "" | " "*) ;;
7537 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7538 esac
7539else
7540 lt_prog_compiler_pic=
7541 lt_prog_compiler_can_build_shared=no
7542fi
7543
7544fi
7545case $host_os in
7546 # For platforms which do not support PIC, -DPIC is meaningless:
7547 *djgpp*)
7548 lt_prog_compiler_pic=
7549 ;;
7550 *)
7551 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7552 ;;
7553esac
7554
7555#
7556# Check to make sure the static flag actually works.
7557#
7558wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7559{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7560echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7561if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7562 echo $ECHO_N "(cached) $ECHO_C" >&6
7563else
7564 lt_cv_prog_compiler_static_works=no
7565 save_LDFLAGS="$LDFLAGS"
7566 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7567 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7568 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7569 # The linker can only warn and ignore the option if not recognized
7570 # So say no if there are warnings
7571 if test -s conftest.err; then
7572 # Append any errors to the config.log.
7573 cat conftest.err 1>&5
7574 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7575 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7576 if diff conftest.exp conftest.er2 >/dev/null; then
7577 lt_cv_prog_compiler_static_works=yes
7578 fi
7579 else
7580 lt_cv_prog_compiler_static_works=yes
7581 fi
7582 fi
7583 $rm -r conftest*
7584 LDFLAGS="$save_LDFLAGS"
7585
7586fi
7587{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7588echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
7589
7590if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7591 :
7592else
7593 lt_prog_compiler_static=
7594fi
7595
7596
7597{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7598echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7599if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7600 echo $ECHO_N "(cached) $ECHO_C" >&6
7601else
7602 lt_cv_prog_compiler_c_o=no
7603 $rm -r conftest 2>/dev/null
7604 mkdir conftest
7605 cd conftest
7606 mkdir out
7607 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7608
7609 lt_compiler_flag="-o out/conftest2.$ac_objext"
7610 # Insert the option either (1) after the last *FLAGS variable, or
7611 # (2) before a word containing "conftest.", or (3) at the end.
7612 # Note that $ac_compile itself does not contain backslashes and begins
7613 # with a dollar sign (not a hyphen), so the echo should work correctly.
7614 lt_compile=`echo "$ac_compile" | $SED \
7615 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7616 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7617 -e 's:$: $lt_compiler_flag:'`
7618 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
7619 (eval "$lt_compile" 2>out/conftest.err)
7620 ac_status=$?
7621 cat out/conftest.err >&5
7622 echo "$as_me:__oline__: \$? = $ac_status" >&5
7623 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7624 then
7625 # The compiler can only warn and ignore the option if not recognized
7626 # So say no if there are warnings
7627 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7628 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7629 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7630 lt_cv_prog_compiler_c_o=yes
7631 fi
7632 fi
7633 chmod u+w . 2>&5
7634 $rm conftest*
7635 # SGI C++ compiler will create directory out/ii_files/ for
7636 # template instantiation
7637 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7638 $rm out/* && rmdir out
7639 cd ..
7640 rmdir conftest
7641 $rm conftest*
7642
7643fi
7644{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7645echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7646
7647
7648hard_links="nottested"
7649if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7650 # do not overwrite the value of need_locks provided by the user
7651 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7652echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7653 hard_links=yes
7654 $rm conftest*
7655 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7656 touch conftest.a
7657 ln conftest.a conftest.b 2>&5 || hard_links=no
7658 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7659 { echo "$as_me:$LINENO: result: $hard_links" >&5
7660echo "${ECHO_T}$hard_links" >&6; }
7661 if test "$hard_links" = no; then
7662 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7663echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7664 need_locks=warn
7665 fi
7666else
7667 need_locks=no
7668fi
7669
7670{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7671echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7672
7673 runpath_var=
7674 allow_undefined_flag=
7675 enable_shared_with_static_runtimes=no
7676 archive_cmds=
7677 archive_expsym_cmds=
7678 old_archive_From_new_cmds=
7679 old_archive_from_expsyms_cmds=
7680 export_dynamic_flag_spec=
7681 whole_archive_flag_spec=
7682 thread_safe_flag_spec=
7683 hardcode_libdir_flag_spec=
7684 hardcode_libdir_flag_spec_ld=
7685 hardcode_libdir_separator=
7686 hardcode_direct=no
7687 hardcode_minus_L=no
7688 hardcode_shlibpath_var=unsupported
7689 link_all_deplibs=unknown
7690 hardcode_automatic=no
7691 module_cmds=
7692 module_expsym_cmds=
7693 always_export_symbols=no
7694 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7695 # include_expsyms should be a list of space-separated symbols to be *always*
7696 # included in the symbol list
7697 include_expsyms=
7698 # exclude_expsyms can be an extended regexp of symbols to exclude
7699 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7700 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7701 # as well as any symbol that contains `d'.
7702 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7703 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7704 # platforms (ab)use it in PIC code, but their linkers get confused if
7705 # the symbol is explicitly referenced. Since portable code cannot
7706 # rely on this symbol name, it's probably fine to never include it in
7707 # preloaded symbol tables.
7708 # Exclude shared library initialization/finalization symbols.
7709 extract_expsyms_cmds=
7710 # Just being paranoid about ensuring that cc_basename is set.
7711 for cc_temp in $compiler""; do
7712 case $cc_temp in
7713 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7714 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7715 \-*) ;;
7716 *) break;;
7717 esac
7718done
7719cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7720
7721 case $host_os in
7722 cygwin* | mingw* | pw32*)
7723 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7724 # When not using gcc, we currently assume that we are using
7725 # Microsoft Visual C++.
7726 if test "$GCC" != yes; then
7727 with_gnu_ld=no
7728 fi
7729 ;;
7730 interix*)
7731 # we just hope/assume this is gcc and not c89 (= MSVC++)
7732 with_gnu_ld=yes
7733 ;;
7734 openbsd*)
7735 with_gnu_ld=no
7736 ;;
7737 esac
7738
7739 ld_shlibs=yes
7740 if test "$with_gnu_ld" = yes; then
7741 # If archive_cmds runs LD, not CC, wlarc should be empty
7742 wlarc='${wl}'
7743
7744 # Set some defaults for GNU ld with shared library support. These
7745 # are reset later if shared libraries are not supported. Putting them
7746 # here allows them to be overridden if necessary.
7747 runpath_var=LD_RUN_PATH
7748 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7749 export_dynamic_flag_spec='${wl}--export-dynamic'
7750 # ancient GNU ld didn't support --whole-archive et. al.
7751 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7752 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7753 else
7754 whole_archive_flag_spec=
7755 fi
7756 supports_anon_versioning=no
7757 case `$LD -v 2>/dev/null` in
7758 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7759 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7760 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7761 *\ 2.11.*) ;; # other 2.11 versions
7762 *) supports_anon_versioning=yes ;;
7763 esac
7764
7765 # See if GNU ld supports shared libraries.
7766 case $host_os in
7767 aix[3-9]*)
7768 # On AIX/PPC, the GNU linker is very broken
7769 if test "$host_cpu" != ia64; then
7770 ld_shlibs=no
7771 cat <<EOF 1>&2
7772
7773*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7774*** to be unable to reliably create shared libraries on AIX.
7775*** Therefore, libtool is disabling shared libraries support. If you
7776*** really care for shared libraries, you may want to modify your PATH
7777*** so that a non-GNU linker is found, and then restart.
7778
7779EOF
7780 fi
7781 ;;
7782
7783 amigaos*)
7784 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)'
7785 hardcode_libdir_flag_spec='-L$libdir'
7786 hardcode_minus_L=yes
7787
7788 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7789 # that the semantics of dynamic libraries on AmigaOS, at least up
7790 # to version 4, is to share data among multiple programs linked
7791 # with the same dynamic library. Since this doesn't match the
7792 # behavior of shared libraries on other platforms, we can't use
7793 # them.
7794 ld_shlibs=no
7795 ;;
7796
7797 beos*)
7798 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7799 allow_undefined_flag=unsupported
7800 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7801 # support --undefined. This deserves some investigation. FIXME
7802 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7803 else
7804 ld_shlibs=no
7805 fi
7806 ;;
7807
7808 cygwin* | mingw* | pw32*)
7809 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7810 # as there is no search path for DLLs.
7811 hardcode_libdir_flag_spec='-L$libdir'
7812 allow_undefined_flag=unsupported
7813 always_export_symbols=no
7814 enable_shared_with_static_runtimes=yes
7815 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7816
7817 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7818 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7819 # If the export-symbols file already is a .def file (1st line
7820 # is EXPORTS), use it as is; otherwise, prepend...
7821 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7822 cp $export_symbols $output_objdir/$soname.def;
7823 else
7824 echo EXPORTS > $output_objdir/$soname.def;
7825 cat $export_symbols >> $output_objdir/$soname.def;
7826 fi~
7827 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7828 else
7829 ld_shlibs=no
7830 fi
7831 ;;
7832
7833 interix[3-9]*)
7834 hardcode_direct=no
7835 hardcode_shlibpath_var=no
7836 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7837 export_dynamic_flag_spec='${wl}-E'
7838 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7839 # Instead, shared libraries are loaded at an image base (0x10000000 by
7840 # default) and relocated if they conflict, which is a slow very memory
7841 # consuming and fragmenting process. To avoid this, we pick a random,
7842 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7843 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7844 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7845 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'
7846 ;;
7847
7848 gnu* | linux* | k*bsd*-gnu)
7849 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7850 tmp_addflag=
7851 case $cc_basename,$host_cpu in
7852 pgcc*) # Portland Group C compiler
7853 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'
7854 tmp_addflag=' $pic_flag'
7855 ;;
7856 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7857 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'
7858 tmp_addflag=' $pic_flag -Mnomain' ;;
7859 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7860 tmp_addflag=' -i_dynamic' ;;
7861 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7862 tmp_addflag=' -i_dynamic -nofor_main' ;;
7863 ifc* | ifort*) # Intel Fortran compiler
7864 tmp_addflag=' -nofor_main' ;;
7865 esac
7866 case `$CC -V 2>&1 | sed 5q` in
7867 *Sun\ C*) # Sun C 5.9
7868 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'
7869 tmp_sharedflag='-G' ;;
7870 *Sun\ F*) # Sun Fortran 8.3
7871 tmp_sharedflag='-G' ;;
7872 *)
7873 tmp_sharedflag='-shared' ;;
7874 esac
7875 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7876
7877 if test $supports_anon_versioning = yes; then
7878 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7879 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7880 $echo "local: *; };" >> $output_objdir/$libname.ver~
7881 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7882 fi
7883 link_all_deplibs=no
7884 else
7885 ld_shlibs=no
7886 fi
7887 ;;
7888
7889 netbsd* | netbsdelf*-gnu)
7890 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7891 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7892 wlarc=
7893 else
7894 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7895 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7896 fi
7897 ;;
7898
7899 solaris*)
7900 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7901 ld_shlibs=no
7902 cat <<EOF 1>&2
7903
7904*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7905*** create shared libraries on Solaris systems. Therefore, libtool
7906*** is disabling shared libraries support. We urge you to upgrade GNU
7907*** binutils to release 2.9.1 or newer. Another option is to modify
7908*** your PATH or compiler configuration so that the native linker is
7909*** used, and then restart.
7910
7911EOF
7912 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7913 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7914 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7915 else
7916 ld_shlibs=no
7917 fi
7918 ;;
7919
7920 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7921 case `$LD -v 2>&1` in
7922 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7923 ld_shlibs=no
7924 cat <<_LT_EOF 1>&2
7925
7926*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7927*** reliably create shared libraries on SCO systems. Therefore, libtool
7928*** is disabling shared libraries support. We urge you to upgrade GNU
7929*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7930*** your PATH or compiler configuration so that the native linker is
7931*** used, and then restart.
7932
7933_LT_EOF
7934 ;;
7935 *)
7936 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7937 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7938 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7939 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7940 else
7941 ld_shlibs=no
7942 fi
7943 ;;
7944 esac
7945 ;;
7946
7947 sunos4*)
7948 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7949 wlarc=
7950 hardcode_direct=yes
7951 hardcode_shlibpath_var=no
7952 ;;
7953
7954 *)
7955 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7956 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7957 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7958 else
7959 ld_shlibs=no
7960 fi
7961 ;;
7962 esac
7963
7964 if test "$ld_shlibs" = no; then
7965 runpath_var=
7966 hardcode_libdir_flag_spec=
7967 export_dynamic_flag_spec=
7968 whole_archive_flag_spec=
7969 fi
7970 else
7971 # PORTME fill in a description of your system's linker (not GNU ld)
7972 case $host_os in
7973 aix3*)
7974 allow_undefined_flag=unsupported
7975 always_export_symbols=yes
7976 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'
7977 # Note: this linker hardcodes the directories in LIBPATH if there
7978 # are no directories specified by -L.
7979 hardcode_minus_L=yes
7980 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7981 # Neither direct hardcoding nor static linking is supported with a
7982 # broken collect2.
7983 hardcode_direct=unsupported
7984 fi
7985 ;;
7986
7987 aix[4-9]*)
7988 if test "$host_cpu" = ia64; then
7989 # On IA64, the linker does run time linking by default, so we don't
7990 # have to do anything special.
7991 aix_use_runtimelinking=no
7992 exp_sym_flag='-Bexport'
7993 no_entry_flag=""
7994 else
7995 # If we're using GNU nm, then we don't want the "-C" option.
7996 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7997 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7998 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'
7999 else
8000 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'
8001 fi
8002 aix_use_runtimelinking=no
8003
8004 # Test if we are trying to use run time linking or normal
8005 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8006 # need to do runtime linking.
8007 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8008 for ld_flag in $LDFLAGS; do
8009 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8010 aix_use_runtimelinking=yes
8011 break
8012 fi
8013 done
8014 ;;
8015 esac
8016
8017 exp_sym_flag='-bexport'
8018 no_entry_flag='-bnoentry'
8019 fi
8020
8021 # When large executables or shared objects are built, AIX ld can
8022 # have problems creating the table of contents. If linking a library
8023 # or program results in "error TOC overflow" add -mminimal-toc to
8024 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8025 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8026
8027 archive_cmds=''
8028 hardcode_direct=yes
8029 hardcode_libdir_separator=':'
8030 link_all_deplibs=yes
8031
8032 if test "$GCC" = yes; then
8033 case $host_os in aix4.[012]|aix4.[012].*)
8034 # We only want to do this on AIX 4.2 and lower, the check
8035 # below for broken collect2 doesn't work under 4.3+
8036 collect2name=`${CC} -print-prog-name=collect2`
8037 if test -f "$collect2name" && \
8038 strings "$collect2name" | grep resolve_lib_name >/dev/null
8039 then
8040 # We have reworked collect2
8041 :
8042 else
8043 # We have old collect2
8044 hardcode_direct=unsupported
8045 # It fails to find uninstalled libraries when the uninstalled
8046 # path is not listed in the libpath. Setting hardcode_minus_L
8047 # to unsupported forces relinking
8048 hardcode_minus_L=yes
8049 hardcode_libdir_flag_spec='-L$libdir'
8050 hardcode_libdir_separator=
8051 fi
8052 ;;
8053 esac
8054 shared_flag='-shared'
8055 if test "$aix_use_runtimelinking" = yes; then
8056 shared_flag="$shared_flag "'${wl}-G'
8057 fi
8058 else
8059 # not using gcc
8060 if test "$host_cpu" = ia64; then
8061 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8062 # chokes on -Wl,-G. The following line is correct:
8063 shared_flag='-G'
8064 else
8065 if test "$aix_use_runtimelinking" = yes; then
8066 shared_flag='${wl}-G'
8067 else
8068 shared_flag='${wl}-bM:SRE'
8069 fi
8070 fi
8071 fi
8072
8073 # It seems that -bexpall does not export symbols beginning with
8074 # underscore (_), so it is better to generate a list of symbols to export.
8075 always_export_symbols=yes
8076 if test "$aix_use_runtimelinking" = yes; then
8077 # Warning - without using the other runtime loading flags (-brtl),
8078 # -berok will link without error, but may produce a broken library.
8079 allow_undefined_flag='-berok'
8080 # Determine the default libpath from the value encoded in an empty executable.
8081 cat >conftest.$ac_ext <<_ACEOF
8082/* confdefs.h. */
8083_ACEOF
8084cat confdefs.h >>conftest.$ac_ext
8085cat >>conftest.$ac_ext <<_ACEOF
8086/* end confdefs.h. */
8087
8088int
8089main ()
8090{
8091
8092 ;
8093 return 0;
8094}
8095_ACEOF
8096rm -f conftest.$ac_objext conftest$ac_exeext
8097if { (ac_try="$ac_link"
8098case "(($ac_try" in
8099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8100 *) ac_try_echo=$ac_try;;
8101esac
8102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8103 (eval "$ac_link") 2>conftest.er1
8104 ac_status=$?
8105 grep -v '^ *+' conftest.er1 >conftest.err
8106 rm -f conftest.er1
8107 cat conftest.err >&5
8108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8109 (exit $ac_status); } && {
8110 test -z "$ac_c_werror_flag" ||
8111 test ! -s conftest.err
8112 } && test -s conftest$ac_exeext &&
8113 $as_test_x conftest$ac_exeext; then
8114
8115lt_aix_libpath_sed='
8116 /Import File Strings/,/^$/ {
8117 /^0/ {
8118 s/^0 *\(.*\)$/\1/
8119 p
8120 }
8121 }'
8122aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8123# Check for a 64-bit object if we didn't find anything.
8124if test -z "$aix_libpath"; then
8125 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8126fi
8127else
8128 echo "$as_me: failed program was:" >&5
8129sed 's/^/| /' conftest.$ac_ext >&5
8130
8131
8132fi
8133
8134rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8135 conftest$ac_exeext conftest.$ac_ext
8136if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8137
8138 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8139 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"
8140 else
8141 if test "$host_cpu" = ia64; then
8142 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8143 allow_undefined_flag="-z nodefs"
8144 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"
8145 else
8146 # Determine the default libpath from the value encoded in an empty executable.
8147 cat >conftest.$ac_ext <<_ACEOF
8148/* confdefs.h. */
8149_ACEOF
8150cat confdefs.h >>conftest.$ac_ext
8151cat >>conftest.$ac_ext <<_ACEOF
8152/* end confdefs.h. */
8153
8154int
8155main ()
8156{
8157
8158 ;
8159 return 0;
8160}
8161_ACEOF
8162rm -f conftest.$ac_objext conftest$ac_exeext
8163if { (ac_try="$ac_link"
8164case "(($ac_try" in
8165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8166 *) ac_try_echo=$ac_try;;
8167esac
8168eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8169 (eval "$ac_link") 2>conftest.er1
8170 ac_status=$?
8171 grep -v '^ *+' conftest.er1 >conftest.err
8172 rm -f conftest.er1
8173 cat conftest.err >&5
8174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8175 (exit $ac_status); } && {
8176 test -z "$ac_c_werror_flag" ||
8177 test ! -s conftest.err
8178 } && test -s conftest$ac_exeext &&
8179 $as_test_x conftest$ac_exeext; then
8180
8181lt_aix_libpath_sed='
8182 /Import File Strings/,/^$/ {
8183 /^0/ {
8184 s/^0 *\(.*\)$/\1/
8185 p
8186 }
8187 }'
8188aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8189# Check for a 64-bit object if we didn't find anything.
8190if test -z "$aix_libpath"; then
8191 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8192fi
8193else
8194 echo "$as_me: failed program was:" >&5
8195sed 's/^/| /' conftest.$ac_ext >&5
8196
8197
8198fi
8199
8200rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8201 conftest$ac_exeext conftest.$ac_ext
8202if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8203
8204 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8205 # Warning - without using the other run time loading flags,
8206 # -berok will link without error, but may produce a broken library.
8207 no_undefined_flag=' ${wl}-bernotok'
8208 allow_undefined_flag=' ${wl}-berok'
8209 # Exported symbols can be pulled into shared objects from archives
8210 whole_archive_flag_spec='$convenience'
8211 archive_cmds_need_lc=yes
8212 # This is similar to how AIX traditionally builds its shared libraries.
8213 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'
8214 fi
8215 fi
8216 ;;
8217
8218 amigaos*)
8219 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)'
8220 hardcode_libdir_flag_spec='-L$libdir'
8221 hardcode_minus_L=yes
8222 # see comment about different semantics on the GNU ld section
8223 ld_shlibs=no
8224 ;;
8225
8226 bsdi[45]*)
8227 export_dynamic_flag_spec=-rdynamic
8228 ;;
8229
8230 cygwin* | mingw* | pw32*)
8231 # When not using gcc, we currently assume that we are using
8232 # Microsoft Visual C++.
8233 # hardcode_libdir_flag_spec is actually meaningless, as there is
8234 # no search path for DLLs.
8235 hardcode_libdir_flag_spec=' '
8236 allow_undefined_flag=unsupported
8237 # Tell ltmain to make .lib files, not .a files.
8238 libext=lib
8239 # Tell ltmain to make .dll files, not .so files.
8240 shrext_cmds=".dll"
8241 # FIXME: Setting linknames here is a bad hack.
8242 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8243 # The linker will automatically build a .lib file if we build a DLL.
8244 old_archive_From_new_cmds='true'
8245 # FIXME: Should let the user specify the lib program.
8246 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8247 fix_srcfile_path='`cygpath -w "$srcfile"`'
8248 enable_shared_with_static_runtimes=yes
8249 ;;
8250
8251 darwin* | rhapsody*)
8252 case $host_os in
8253 rhapsody* | darwin1.[012])
8254 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8255 ;;
8256 *) # Darwin 1.3 on
8257 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8258 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8259 else
8260 case ${MACOSX_DEPLOYMENT_TARGET} in
8261 10.[012])
8262 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8263 ;;
8264 10.*)
8265 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8266 ;;
8267 esac
8268 fi
8269 ;;
8270 esac
8271 archive_cmds_need_lc=no
8272 hardcode_direct=no
8273 hardcode_automatic=yes
8274 hardcode_shlibpath_var=unsupported
8275 whole_archive_flag_spec=''
8276 link_all_deplibs=yes
8277 if test "$GCC" = yes ; then
8278 output_verbose_link_cmd='echo'
8279 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8280 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8281 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}"
8282 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}"
8283 else
8284 case $cc_basename in
8285 xlc*)
8286 output_verbose_link_cmd='echo'
8287 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8288 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8289 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8290 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}'
8291 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}'
8292 ;;
8293 *)
8294 ld_shlibs=no
8295 ;;
8296 esac
8297 fi
8298 ;;
8299
8300 dgux*)
8301 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8302 hardcode_libdir_flag_spec='-L$libdir'
8303 hardcode_shlibpath_var=no
8304 ;;
8305
8306 freebsd1*)
8307 ld_shlibs=no
8308 ;;
8309
8310 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8311 # support. Future versions do this automatically, but an explicit c++rt0.o
8312 # does not break anything, and helps significantly (at the cost of a little
8313 # extra space).
8314 freebsd2.2*)
8315 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8316 hardcode_libdir_flag_spec='-R$libdir'
8317 hardcode_direct=yes
8318 hardcode_shlibpath_var=no
8319 ;;
8320
8321 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8322 freebsd2*)
8323 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8324 hardcode_direct=yes
8325 hardcode_minus_L=yes
8326 hardcode_shlibpath_var=no
8327 ;;
8328
8329 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8330 freebsd* | dragonfly*)
8331 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8332 hardcode_libdir_flag_spec='-R$libdir'
8333 hardcode_direct=yes
8334 hardcode_shlibpath_var=no
8335 ;;
8336
8337 hpux9*)
8338 if test "$GCC" = yes; then
8339 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'
8340 else
8341 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'
8342 fi
8343 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8344 hardcode_libdir_separator=:
8345 hardcode_direct=yes
8346
8347 # hardcode_minus_L: Not really in the search PATH,
8348 # but as the default location of the library.
8349 hardcode_minus_L=yes
8350 export_dynamic_flag_spec='${wl}-E'
8351 ;;
8352
8353 hpux10*)
8354 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8355 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8356 else
8357 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8358 fi
8359 if test "$with_gnu_ld" = no; then
8360 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8361 hardcode_libdir_separator=:
8362
8363 hardcode_direct=yes
8364 export_dynamic_flag_spec='${wl}-E'
8365
8366 # hardcode_minus_L: Not really in the search PATH,
8367 # but as the default location of the library.
8368 hardcode_minus_L=yes
8369 fi
8370 ;;
8371
8372 hpux11*)
8373 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8374 case $host_cpu in
8375 hppa*64*)
8376 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8377 ;;
8378 ia64*)
8379 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8380 ;;
8381 *)
8382 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8383 ;;
8384 esac
8385 else
8386 case $host_cpu in
8387 hppa*64*)
8388 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8389 ;;
8390 ia64*)
8391 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8392 ;;
8393 *)
8394 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8395 ;;
8396 esac
8397 fi
8398 if test "$with_gnu_ld" = no; then
8399 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8400 hardcode_libdir_separator=:
8401
8402 case $host_cpu in
8403 hppa*64*|ia64*)
8404 hardcode_libdir_flag_spec_ld='+b $libdir'
8405 hardcode_direct=no
8406 hardcode_shlibpath_var=no
8407 ;;
8408 *)
8409 hardcode_direct=yes
8410 export_dynamic_flag_spec='${wl}-E'
8411
8412 # hardcode_minus_L: Not really in the search PATH,
8413 # but as the default location of the library.
8414 hardcode_minus_L=yes
8415 ;;
8416 esac
8417 fi
8418 ;;
8419
8420 irix5* | irix6* | nonstopux*)
8421 if test "$GCC" = yes; then
8422 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'
8423 else
8424 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'
8425 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8426 fi
8427 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8428 hardcode_libdir_separator=:
8429 link_all_deplibs=yes
8430 ;;
8431
8432 netbsd* | netbsdelf*-gnu)
8433 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8434 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8435 else
8436 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8437 fi
8438 hardcode_libdir_flag_spec='-R$libdir'
8439 hardcode_direct=yes
8440 hardcode_shlibpath_var=no
8441 ;;
8442
8443 newsos6)
8444 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8445 hardcode_direct=yes
8446 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8447 hardcode_libdir_separator=:
8448 hardcode_shlibpath_var=no
8449 ;;
8450
8451 openbsd*)
8452 if test -f /usr/libexec/ld.so; then
8453 hardcode_direct=yes
8454 hardcode_shlibpath_var=no
8455 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8456 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8457 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8458 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8459 export_dynamic_flag_spec='${wl}-E'
8460 else
8461 case $host_os in
8462 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8463 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8464 hardcode_libdir_flag_spec='-R$libdir'
8465 ;;
8466 *)
8467 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8468 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8469 ;;
8470 esac
8471 fi
8472 else
8473 ld_shlibs=no
8474 fi
8475 ;;
8476
8477 os2*)
8478 hardcode_libdir_flag_spec='-L$libdir'
8479 hardcode_minus_L=yes
8480 allow_undefined_flag=unsupported
8481 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'
8482 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8483 ;;
8484
8485 osf3*)
8486 if test "$GCC" = yes; then
8487 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8488 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'
8489 else
8490 allow_undefined_flag=' -expect_unresolved \*'
8491 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'
8492 fi
8493 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8494 hardcode_libdir_separator=:
8495 ;;
8496
8497 osf4* | osf5*) # as osf3* with the addition of -msym flag
8498 if test "$GCC" = yes; then
8499 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8500 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'
8501 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8502 else
8503 allow_undefined_flag=' -expect_unresolved \*'
8504 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'
8505 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8506 $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'
8507
8508 # Both c and cxx compiler support -rpath directly
8509 hardcode_libdir_flag_spec='-rpath $libdir'
8510 fi
8511 hardcode_libdir_separator=:
8512 ;;
8513
8514 solaris*)
8515 no_undefined_flag=' -z text'
8516 if test "$GCC" = yes; then
8517 wlarc='${wl}'
8518 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8519 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8520 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8521 else
8522 wlarc=''
8523 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8524 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8525 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8526 fi
8527 hardcode_libdir_flag_spec='-R$libdir'
8528 hardcode_shlibpath_var=no
8529 case $host_os in
8530 solaris2.[0-5] | solaris2.[0-5].*) ;;
8531 *)
8532 # The compiler driver will combine and reorder linker options,
8533 # but understands `-z linker_flag'. GCC discards it without `$wl',
8534 # but is careful enough not to reorder.
8535 # Supported since Solaris 2.6 (maybe 2.5.1?)
8536 if test "$GCC" = yes; then
8537 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8538 else
8539 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8540 fi
8541 ;;
8542 esac
8543 link_all_deplibs=yes
8544 ;;
8545
8546 sunos4*)
8547 if test "x$host_vendor" = xsequent; then
8548 # Use $CC to link under sequent, because it throws in some extra .o
8549 # files that make .init and .fini sections work.
8550 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8551 else
8552 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8553 fi
8554 hardcode_libdir_flag_spec='-L$libdir'
8555 hardcode_direct=yes
8556 hardcode_minus_L=yes
8557 hardcode_shlibpath_var=no
8558 ;;
8559
8560 sysv4)
8561 case $host_vendor in
8562 sni)
8563 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8564 hardcode_direct=yes # is this really true???
8565 ;;
8566 siemens)
8567 ## LD is ld it makes a PLAMLIB
8568 ## CC just makes a GrossModule.
8569 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8570 reload_cmds='$CC -r -o $output$reload_objs'
8571 hardcode_direct=no
8572 ;;
8573 motorola)
8574 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8575 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8576 ;;
8577 esac
8578 runpath_var='LD_RUN_PATH'
8579 hardcode_shlibpath_var=no
8580 ;;
8581
8582 sysv4.3*)
8583 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8584 hardcode_shlibpath_var=no
8585 export_dynamic_flag_spec='-Bexport'
8586 ;;
8587
8588 sysv4*MP*)
8589 if test -d /usr/nec; then
8590 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8591 hardcode_shlibpath_var=no
8592 runpath_var=LD_RUN_PATH
8593 hardcode_runpath_var=yes
8594 ld_shlibs=yes
8595 fi
8596 ;;
8597
8598 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8599 no_undefined_flag='${wl}-z,text'
8600 archive_cmds_need_lc=no
8601 hardcode_shlibpath_var=no
8602 runpath_var='LD_RUN_PATH'
8603
8604 if test "$GCC" = yes; then
8605 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8606 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8607 else
8608 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8609 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8610 fi
8611 ;;
8612
8613 sysv5* | sco3.2v5* | sco5v6*)
8614 # Note: We can NOT use -z defs as we might desire, because we do not
8615 # link with -lc, and that would cause any symbols used from libc to
8616 # always be unresolved, which means just about no library would
8617 # ever link correctly. If we're not using GNU ld we use -z text
8618 # though, which does catch some bad symbols but isn't as heavy-handed
8619 # as -z defs.
8620 no_undefined_flag='${wl}-z,text'
8621 allow_undefined_flag='${wl}-z,nodefs'
8622 archive_cmds_need_lc=no
8623 hardcode_shlibpath_var=no
8624 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8625 hardcode_libdir_separator=':'
8626 link_all_deplibs=yes
8627 export_dynamic_flag_spec='${wl}-Bexport'
8628 runpath_var='LD_RUN_PATH'
8629
8630 if test "$GCC" = yes; then
8631 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8632 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8633 else
8634 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8635 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8636 fi
8637 ;;
8638
8639 uts4*)
8640 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8641 hardcode_libdir_flag_spec='-L$libdir'
8642 hardcode_shlibpath_var=no
8643 ;;
8644
8645 *)
8646 ld_shlibs=no
8647 ;;
8648 esac
8649 fi
8650
8651{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8652echo "${ECHO_T}$ld_shlibs" >&6; }
8653test "$ld_shlibs" = no && can_build_shared=no
8654
8655#
8656# Do we need to explicitly link libc?
8657#
8658case "x$archive_cmds_need_lc" in
8659x|xyes)
8660 # Assume -lc should be added
8661 archive_cmds_need_lc=yes
8662
8663 if test "$enable_shared" = yes && test "$GCC" = yes; then
8664 case $archive_cmds in
8665 *'~'*)
8666 # FIXME: we may have to deal with multi-command sequences.
8667 ;;
8668 '$CC '*)
8669 # Test whether the compiler implicitly links with -lc since on some
8670 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8671 # to ld, don't add -lc before -lgcc.
8672 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8673echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8674 $rm conftest*
8675 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8676
8677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8678 (eval $ac_compile) 2>&5
8679 ac_status=$?
8680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8681 (exit $ac_status); } 2>conftest.err; then
8682 soname=conftest
8683 lib=conftest
8684 libobjs=conftest.$ac_objext
8685 deplibs=
8686 wl=$lt_prog_compiler_wl
8687 pic_flag=$lt_prog_compiler_pic
8688 compiler_flags=-v
8689 linker_flags=-v
8690 verstring=
8691 output_objdir=.
8692 libname=conftest
8693 lt_save_allow_undefined_flag=$allow_undefined_flag
8694 allow_undefined_flag=
8695 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8696 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8697 ac_status=$?
8698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8699 (exit $ac_status); }
8700 then
8701 archive_cmds_need_lc=no
8702 else
8703 archive_cmds_need_lc=yes
8704 fi
8705 allow_undefined_flag=$lt_save_allow_undefined_flag
8706 else
8707 cat conftest.err 1>&5
8708 fi
8709 $rm conftest*
8710 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8711echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8712 ;;
8713 esac
8714 fi
8715 ;;
8716esac
8717
8718{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8719echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8720library_names_spec=
8721libname_spec='lib$name'
8722soname_spec=
8723shrext_cmds=".so"
8724postinstall_cmds=
8725postuninstall_cmds=
8726finish_cmds=
8727finish_eval=
8728shlibpath_var=
8729shlibpath_overrides_runpath=unknown
8730version_type=none
8731dynamic_linker="$host_os ld.so"
8732sys_lib_dlsearch_path_spec="/lib /usr/lib"
8733
8734if test "$GCC" = yes; then
8735 case $host_os in
8736 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8737 *) lt_awk_arg="/^libraries:/" ;;
8738 esac
8739 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8740 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
8741 # if the path contains ";" then we assume it to be the separator
8742 # otherwise default to the standard path separator (i.e. ":") - it is
8743 # assumed that no part of a normal pathname contains ";" but that should
8744 # okay in the real world where ";" in dirpaths is itself problematic.
8745 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8746 else
8747 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8748 fi
8749 # Ok, now we have the path, separated by spaces, we can step through it
8750 # and add multilib dir if necessary.
8751 lt_tmp_lt_search_path_spec=
8752 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8753 for lt_sys_path in $lt_search_path_spec; do
8754 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8755 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8756 else
8757 test -d "$lt_sys_path" && \
8758 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8759 fi
8760 done
8761 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
8762BEGIN {RS=" "; FS="/|\n";} {
8763 lt_foo="";
8764 lt_count=0;
8765 for (lt_i = NF; lt_i > 0; lt_i--) {
8766 if ($lt_i != "" && $lt_i != ".") {
8767 if ($lt_i == "..") {
8768 lt_count++;
8769 } else {
8770 if (lt_count == 0) {
8771 lt_foo="/" $lt_i lt_foo;
8772 } else {
8773 lt_count--;
8774 }
8775 }
8776 }
8777 }
8778 if (lt_foo != "") { lt_freq[lt_foo]++; }
8779 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8780}'`
8781 sys_lib_search_path_spec=`echo $lt_search_path_spec`
8782else
8783 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8784fi
8785need_lib_prefix=unknown
8786hardcode_into_libs=no
8787
8788# when you set need_version to no, make sure it does not cause -set_version
8789# flags to be left without arguments
8790need_version=unknown
8791
8792case $host_os in
8793aix3*)
8794 version_type=linux
8795 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8796 shlibpath_var=LIBPATH
8797
8798 # AIX 3 has no versioning support, so we append a major version to the name.
8799 soname_spec='${libname}${release}${shared_ext}$major'
8800 ;;
8801
8802aix[4-9]*)
8803 version_type=linux
8804 need_lib_prefix=no
8805 need_version=no
8806 hardcode_into_libs=yes
8807 if test "$host_cpu" = ia64; then
8808 # AIX 5 supports IA64
8809 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8810 shlibpath_var=LD_LIBRARY_PATH
8811 else
8812 # With GCC up to 2.95.x, collect2 would create an import file
8813 # for dependence libraries. The import file would start with
8814 # the line `#! .'. This would cause the generated library to
8815 # depend on `.', always an invalid library. This was fixed in
8816 # development snapshots of GCC prior to 3.0.
8817 case $host_os in
8818 aix4 | aix4.[01] | aix4.[01].*)
8819 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8820 echo ' yes '
8821 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8822 :
8823 else
8824 can_build_shared=no
8825 fi
8826 ;;
8827 esac
8828 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8829 # soname into executable. Probably we can add versioning support to
8830 # collect2, so additional links can be useful in future.
8831 if test "$aix_use_runtimelinking" = yes; then
8832 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8833 # instead of lib<name>.a to let people know that these are not
8834 # typical AIX shared libraries.
8835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8836 else
8837 # We preserve .a as extension for shared libraries through AIX4.2
8838 # and later when we are not doing run time linking.
8839 library_names_spec='${libname}${release}.a $libname.a'
8840 soname_spec='${libname}${release}${shared_ext}$major'
8841 fi
8842 shlibpath_var=LIBPATH
8843 fi
8844 ;;
8845
8846amigaos*)
8847 library_names_spec='$libname.ixlibrary $libname.a'
8848 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8849 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'
8850 ;;
8851
8852beos*)
8853 library_names_spec='${libname}${shared_ext}'
8854 dynamic_linker="$host_os ld.so"
8855 shlibpath_var=LIBRARY_PATH
8856 ;;
8857
8858bsdi[45]*)
8859 version_type=linux
8860 need_version=no
8861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8862 soname_spec='${libname}${release}${shared_ext}$major'
8863 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8864 shlibpath_var=LD_LIBRARY_PATH
8865 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8866 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8867 # the default ld.so.conf also contains /usr/contrib/lib and
8868 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8869 # libtool to hard-code these into programs
8870 ;;
8871
8872cygwin* | mingw* | pw32*)
8873 version_type=windows
8874 shrext_cmds=".dll"
8875 need_version=no
8876 need_lib_prefix=no
8877
8878 case $GCC,$host_os in
8879 yes,cygwin* | yes,mingw* | yes,pw32*)
8880 library_names_spec='$libname.dll.a'
8881 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8882 postinstall_cmds='base_file=`basename \${file}`~
8883 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8884 dldir=$destdir/`dirname \$dlpath`~
8885 test -d \$dldir || mkdir -p \$dldir~
8886 $install_prog $dir/$dlname \$dldir/$dlname~
8887 chmod a+x \$dldir/$dlname'
8888 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8889 dlpath=$dir/\$dldll~
8890 $rm \$dlpath'
8891 shlibpath_overrides_runpath=yes
8892
8893 case $host_os in
8894 cygwin*)
8895 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8896 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8897 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8898 ;;
8899 mingw*)
8900 # MinGW DLLs use traditional 'lib' prefix
8901 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8902 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8903 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8904 # It is most probably a Windows format PATH printed by
8905 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8906 # path with ; separators, and with drive letters. We can handle the
8907 # drive letters (cygwin fileutils understands them), so leave them,
8908 # especially as we might pass files found there to a mingw objdump,
8909 # which wouldn't understand a cygwinified path. Ahh.
8910 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8911 else
8912 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8913 fi
8914 ;;
8915 pw32*)
8916 # pw32 DLLs use 'pw' prefix rather than 'lib'
8917 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8918 ;;
8919 esac
8920 ;;
8921
8922 *)
8923 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8924 ;;
8925 esac
8926 dynamic_linker='Win32 ld.exe'
8927 # FIXME: first we should search . and the directory the executable is in
8928 shlibpath_var=PATH
8929 ;;
8930
8931darwin* | rhapsody*)
8932 dynamic_linker="$host_os dyld"
8933 version_type=darwin
8934 need_lib_prefix=no
8935 need_version=no
8936 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8937 soname_spec='${libname}${release}${major}$shared_ext'
8938 shlibpath_overrides_runpath=yes
8939 shlibpath_var=DYLD_LIBRARY_PATH
8940 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8941
8942 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8943 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8944 ;;
8945
8946dgux*)
8947 version_type=linux
8948 need_lib_prefix=no
8949 need_version=no
8950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8951 soname_spec='${libname}${release}${shared_ext}$major'
8952 shlibpath_var=LD_LIBRARY_PATH
8953 ;;
8954
8955freebsd1*)
8956 dynamic_linker=no
8957 ;;
8958
8959freebsd* | dragonfly*)
8960 # DragonFly does not have aout. When/if they implement a new
8961 # versioning mechanism, adjust this.
8962 if test -x /usr/bin/objformat; then
8963 objformat=`/usr/bin/objformat`
8964 else
8965 case $host_os in
8966 freebsd[123]*) objformat=aout ;;
8967 *) objformat=elf ;;
8968 esac
8969 fi
8970 version_type=freebsd-$objformat
8971 case $version_type in
8972 freebsd-elf*)
8973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8974 need_version=no
8975 need_lib_prefix=no
8976 ;;
8977 freebsd-*)
8978 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8979 need_version=yes
8980 ;;
8981 esac
8982 shlibpath_var=LD_LIBRARY_PATH
8983 case $host_os in
8984 freebsd2*)
8985 shlibpath_overrides_runpath=yes
8986 ;;
8987 freebsd3.[01]* | freebsdelf3.[01]*)
8988 shlibpath_overrides_runpath=yes
8989 hardcode_into_libs=yes
8990 ;;
8991 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8992 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8993 shlibpath_overrides_runpath=no
8994 hardcode_into_libs=yes
8995 ;;
8996 *) # from 4.6 on, and DragonFly
8997 shlibpath_overrides_runpath=yes
8998 hardcode_into_libs=yes
8999 ;;
9000 esac
9001 ;;
9002
9003gnu*)
9004 version_type=linux
9005 need_lib_prefix=no
9006 need_version=no
9007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9008 soname_spec='${libname}${release}${shared_ext}$major'
9009 shlibpath_var=LD_LIBRARY_PATH
9010 hardcode_into_libs=yes
9011 ;;
9012
9013hpux9* | hpux10* | hpux11*)
9014 # Give a soname corresponding to the major version so that dld.sl refuses to
9015 # link against other versions.
9016 version_type=sunos
9017 need_lib_prefix=no
9018 need_version=no
9019 case $host_cpu in
9020 ia64*)
9021 shrext_cmds='.so'
9022 hardcode_into_libs=yes
9023 dynamic_linker="$host_os dld.so"
9024 shlibpath_var=LD_LIBRARY_PATH
9025 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9027 soname_spec='${libname}${release}${shared_ext}$major'
9028 if test "X$HPUX_IA64_MODE" = X32; then
9029 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9030 else
9031 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9032 fi
9033 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9034 ;;
9035 hppa*64*)
9036 shrext_cmds='.sl'
9037 hardcode_into_libs=yes
9038 dynamic_linker="$host_os dld.sl"
9039 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9040 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9042 soname_spec='${libname}${release}${shared_ext}$major'
9043 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9044 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9045 ;;
9046 *)
9047 shrext_cmds='.sl'
9048 dynamic_linker="$host_os dld.sl"
9049 shlibpath_var=SHLIB_PATH
9050 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9052 soname_spec='${libname}${release}${shared_ext}$major'
9053 ;;
9054 esac
9055 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9056 postinstall_cmds='chmod 555 $lib'
9057 ;;
9058
9059interix[3-9]*)
9060 version_type=linux
9061 need_lib_prefix=no
9062 need_version=no
9063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9064 soname_spec='${libname}${release}${shared_ext}$major'
9065 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9066 shlibpath_var=LD_LIBRARY_PATH
9067 shlibpath_overrides_runpath=no
9068 hardcode_into_libs=yes
9069 ;;
9070
9071irix5* | irix6* | nonstopux*)
9072 case $host_os in
9073 nonstopux*) version_type=nonstopux ;;
9074 *)
9075 if test "$lt_cv_prog_gnu_ld" = yes; then
9076 version_type=linux
9077 else
9078 version_type=irix
9079 fi ;;
9080 esac
9081 need_lib_prefix=no
9082 need_version=no
9083 soname_spec='${libname}${release}${shared_ext}$major'
9084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9085 case $host_os in
9086 irix5* | nonstopux*)
9087 libsuff= shlibsuff=
9088 ;;
9089 *)
9090 case $LD in # libtool.m4 will add one of these switches to LD
9091 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9092 libsuff= shlibsuff= libmagic=32-bit;;
9093 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9094 libsuff=32 shlibsuff=N32 libmagic=N32;;
9095 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9096 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9097 *) libsuff= shlibsuff= libmagic=never-match;;
9098 esac
9099 ;;
9100 esac
9101 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9102 shlibpath_overrides_runpath=no
9103 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9104 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9105 hardcode_into_libs=yes
9106 ;;
9107
9108# No shared lib support for Linux oldld, aout, or coff.
9109linux*oldld* | linux*aout* | linux*coff*)
9110 dynamic_linker=no
9111 ;;
9112
9113# This must be Linux ELF.
9114linux* | k*bsd*-gnu)
9115 version_type=linux
9116 need_lib_prefix=no
9117 need_version=no
9118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9119 soname_spec='${libname}${release}${shared_ext}$major'
9120 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9121 shlibpath_var=LD_LIBRARY_PATH
9122 shlibpath_overrides_runpath=no
9123 # This implies no fast_install, which is unacceptable.
9124 # Some rework will be needed to allow for fast_install
9125 # before this can be enabled.
9126 hardcode_into_libs=yes
9127
9128 # Append ld.so.conf contents to the search path
9129 if test -f /etc/ld.so.conf; then
9130 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' ' '`
9131 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9132 fi
9133
9134 # We used to test for /lib/ld.so.1 and disable shared libraries on
9135 # powerpc, because MkLinux only supported shared libraries with the
9136 # GNU dynamic linker. Since this was broken with cross compilers,
9137 # most powerpc-linux boxes support dynamic linking these days and
9138 # people can always --disable-shared, the test was removed, and we
9139 # assume the GNU/Linux dynamic linker is in use.
9140 dynamic_linker='GNU/Linux ld.so'
9141 ;;
9142
9143netbsdelf*-gnu)
9144 version_type=linux
9145 need_lib_prefix=no
9146 need_version=no
9147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9148 soname_spec='${libname}${release}${shared_ext}$major'
9149 shlibpath_var=LD_LIBRARY_PATH
9150 shlibpath_overrides_runpath=no
9151 hardcode_into_libs=yes
9152 dynamic_linker='NetBSD ld.elf_so'
9153 ;;
9154
9155netbsd*)
9156 version_type=sunos
9157 need_lib_prefix=no
9158 need_version=no
9159 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9161 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9162 dynamic_linker='NetBSD (a.out) ld.so'
9163 else
9164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9165 soname_spec='${libname}${release}${shared_ext}$major'
9166 dynamic_linker='NetBSD ld.elf_so'
9167 fi
9168 shlibpath_var=LD_LIBRARY_PATH
9169 shlibpath_overrides_runpath=yes
9170 hardcode_into_libs=yes
9171 ;;
9172
9173newsos6)
9174 version_type=linux
9175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9176 shlibpath_var=LD_LIBRARY_PATH
9177 shlibpath_overrides_runpath=yes
9178 ;;
9179
9180nto-qnx*)
9181 version_type=linux
9182 need_lib_prefix=no
9183 need_version=no
9184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9185 soname_spec='${libname}${release}${shared_ext}$major'
9186 shlibpath_var=LD_LIBRARY_PATH
9187 shlibpath_overrides_runpath=yes
9188 ;;
9189
9190openbsd*)
9191 version_type=sunos
9192 sys_lib_dlsearch_path_spec="/usr/lib"
9193 need_lib_prefix=no
9194 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9195 case $host_os in
9196 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9197 *) need_version=no ;;
9198 esac
9199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9200 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9201 shlibpath_var=LD_LIBRARY_PATH
9202 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9203 case $host_os in
9204 openbsd2.[89] | openbsd2.[89].*)
9205 shlibpath_overrides_runpath=no
9206 ;;
9207 *)
9208 shlibpath_overrides_runpath=yes
9209 ;;
9210 esac
9211 else
9212 shlibpath_overrides_runpath=yes
9213 fi
9214 ;;
9215
9216os2*)
9217 libname_spec='$name'
9218 shrext_cmds=".dll"
9219 need_lib_prefix=no
9220 library_names_spec='$libname${shared_ext} $libname.a'
9221 dynamic_linker='OS/2 ld.exe'
9222 shlibpath_var=LIBPATH
9223 ;;
9224
9225osf3* | osf4* | osf5*)
9226 version_type=osf
9227 need_lib_prefix=no
9228 need_version=no
9229 soname_spec='${libname}${release}${shared_ext}$major'
9230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9231 shlibpath_var=LD_LIBRARY_PATH
9232 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9233 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9234 ;;
9235
9236rdos*)
9237 dynamic_linker=no
9238 ;;
9239
9240solaris*)
9241 version_type=linux
9242 need_lib_prefix=no
9243 need_version=no
9244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9245 soname_spec='${libname}${release}${shared_ext}$major'
9246 shlibpath_var=LD_LIBRARY_PATH
9247 shlibpath_overrides_runpath=yes
9248 hardcode_into_libs=yes
9249 # ldd complains unless libraries are executable
9250 postinstall_cmds='chmod +x $lib'
9251 ;;
9252
9253sunos4*)
9254 version_type=sunos
9255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9256 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9257 shlibpath_var=LD_LIBRARY_PATH
9258 shlibpath_overrides_runpath=yes
9259 if test "$with_gnu_ld" = yes; then
9260 need_lib_prefix=no
9261 fi
9262 need_version=yes
9263 ;;
9264
9265sysv4 | sysv4.3*)
9266 version_type=linux
9267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9268 soname_spec='${libname}${release}${shared_ext}$major'
9269 shlibpath_var=LD_LIBRARY_PATH
9270 case $host_vendor in
9271 sni)
9272 shlibpath_overrides_runpath=no
9273 need_lib_prefix=no
9274 export_dynamic_flag_spec='${wl}-Blargedynsym'
9275 runpath_var=LD_RUN_PATH
9276 ;;
9277 siemens)
9278 need_lib_prefix=no
9279 ;;
9280 motorola)
9281 need_lib_prefix=no
9282 need_version=no
9283 shlibpath_overrides_runpath=no
9284 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9285 ;;
9286 esac
9287 ;;
9288
9289sysv4*MP*)
9290 if test -d /usr/nec ;then
9291 version_type=linux
9292 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9293 soname_spec='$libname${shared_ext}.$major'
9294 shlibpath_var=LD_LIBRARY_PATH
9295 fi
9296 ;;
9297
9298sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9299 version_type=freebsd-elf
9300 need_lib_prefix=no
9301 need_version=no
9302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9303 soname_spec='${libname}${release}${shared_ext}$major'
9304 shlibpath_var=LD_LIBRARY_PATH
9305 hardcode_into_libs=yes
9306 if test "$with_gnu_ld" = yes; then
9307 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9308 shlibpath_overrides_runpath=no
9309 else
9310 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9311 shlibpath_overrides_runpath=yes
9312 case $host_os in
9313 sco3.2v5*)
9314 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9315 ;;
9316 esac
9317 fi
9318 sys_lib_dlsearch_path_spec='/usr/lib'
9319 ;;
9320
9321uts4*)
9322 version_type=linux
9323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9324 soname_spec='${libname}${release}${shared_ext}$major'
9325 shlibpath_var=LD_LIBRARY_PATH
9326 ;;
9327
9328*)
9329 dynamic_linker=no
9330 ;;
9331esac
9332{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9333echo "${ECHO_T}$dynamic_linker" >&6; }
9334test "$dynamic_linker" = no && can_build_shared=no
9335
9336if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9337 echo $ECHO_N "(cached) $ECHO_C" >&6
9338else
9339 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9340fi
9341
9342sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9343if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9344 echo $ECHO_N "(cached) $ECHO_C" >&6
9345else
9346 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9347fi
9348
9349sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9350
9351variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9352if test "$GCC" = yes; then
9353 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9354fi
9355
9356{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9357echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9358hardcode_action=
9359if test -n "$hardcode_libdir_flag_spec" || \
9360 test -n "$runpath_var" || \
9361 test "X$hardcode_automatic" = "Xyes" ; then
9362
9363 # We can hardcode non-existant directories.
9364 if test "$hardcode_direct" != no &&
9365 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9366 # have to relink, otherwise we might link with an installed library
9367 # when we should be linking with a yet-to-be-installed one
9368 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9369 test "$hardcode_minus_L" != no; then
9370 # Linking always hardcodes the temporary library directory.
9371 hardcode_action=relink
9372 else
9373 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9374 hardcode_action=immediate
9375 fi
9376else
9377 # We cannot hardcode anything, or else we can only hardcode existing
9378 # directories.
9379 hardcode_action=unsupported
9380fi
9381{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
9382echo "${ECHO_T}$hardcode_action" >&6; }
9383
9384if test "$hardcode_action" = relink; then
9385 # Fast installation is not supported
9386 enable_fast_install=no
9387elif test "$shlibpath_overrides_runpath" = yes ||
9388 test "$enable_shared" = no; then
9389 # Fast installation is not necessary
9390 enable_fast_install=needless
9391fi
9392
9393striplib=
9394old_striplib=
9395{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9396echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9397if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9398 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9399 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9400 { echo "$as_me:$LINENO: result: yes" >&5
9401echo "${ECHO_T}yes" >&6; }
9402else
9403# FIXME - insert some real tests, host_os isn't really good enough
9404 case $host_os in
9405 darwin*)
9406 if test -n "$STRIP" ; then
9407 striplib="$STRIP -x"
9408 old_striplib="$STRIP -S"
9409 { echo "$as_me:$LINENO: result: yes" >&5
9410echo "${ECHO_T}yes" >&6; }
9411 else
9412 { echo "$as_me:$LINENO: result: no" >&5
9413echo "${ECHO_T}no" >&6; }
9414fi
9415 ;;
9416 *)
9417 { echo "$as_me:$LINENO: result: no" >&5
9418echo "${ECHO_T}no" >&6; }
9419 ;;
9420 esac
9421fi
9422
9423if test "x$enable_dlopen" != xyes; then
9424 enable_dlopen=unknown
9425 enable_dlopen_self=unknown
9426 enable_dlopen_self_static=unknown
9427else
9428 lt_cv_dlopen=no
9429 lt_cv_dlopen_libs=
9430
9431 case $host_os in
9432 beos*)
9433 lt_cv_dlopen="load_add_on"
9434 lt_cv_dlopen_libs=
9435 lt_cv_dlopen_self=yes
9436 ;;
9437
9438 mingw* | pw32*)
9439 lt_cv_dlopen="LoadLibrary"
9440 lt_cv_dlopen_libs=
9441 ;;
9442
9443 cygwin*)
9444 lt_cv_dlopen="dlopen"
9445 lt_cv_dlopen_libs=
9446 ;;
9447
9448 darwin*)
9449 # if libdl is installed we need to link against it
9450 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9451echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9452if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9453 echo $ECHO_N "(cached) $ECHO_C" >&6
9454else
9455 ac_check_lib_save_LIBS=$LIBS
9456LIBS="-ldl $LIBS"
9457cat >conftest.$ac_ext <<_ACEOF
9458/* confdefs.h. */
9459_ACEOF
9460cat confdefs.h >>conftest.$ac_ext
9461cat >>conftest.$ac_ext <<_ACEOF
9462/* end confdefs.h. */
9463
9464/* Override any GCC internal prototype to avoid an error.
9465 Use char because int might match the return type of a GCC
9466 builtin and then its argument prototype would still apply. */
9467#ifdef __cplusplus
9468extern "C"
9469#endif
9470char dlopen ();
9471int
9472main ()
9473{
9474return dlopen ();
9475 ;
9476 return 0;
9477}
9478_ACEOF
9479rm -f conftest.$ac_objext conftest$ac_exeext
9480if { (ac_try="$ac_link"
9481case "(($ac_try" in
9482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9483 *) ac_try_echo=$ac_try;;
9484esac
9485eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9486 (eval "$ac_link") 2>conftest.er1
9487 ac_status=$?
9488 grep -v '^ *+' conftest.er1 >conftest.err
9489 rm -f conftest.er1
9490 cat conftest.err >&5
9491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9492 (exit $ac_status); } && {
9493 test -z "$ac_c_werror_flag" ||
9494 test ! -s conftest.err
9495 } && test -s conftest$ac_exeext &&
9496 $as_test_x conftest$ac_exeext; then
9497 ac_cv_lib_dl_dlopen=yes
9498else
9499 echo "$as_me: failed program was:" >&5
9500sed 's/^/| /' conftest.$ac_ext >&5
9501
9502 ac_cv_lib_dl_dlopen=no
9503fi
9504
9505rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9506 conftest$ac_exeext conftest.$ac_ext
9507LIBS=$ac_check_lib_save_LIBS
9508fi
9509{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9510echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9511if test $ac_cv_lib_dl_dlopen = yes; then
9512 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9513else
9514
9515 lt_cv_dlopen="dyld"
9516 lt_cv_dlopen_libs=
9517 lt_cv_dlopen_self=yes
9518
9519fi
9520
9521 ;;
9522
9523 *)
9524 { echo "$as_me:$LINENO: checking for shl_load" >&5
9525echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9526if test "${ac_cv_func_shl_load+set}" = set; then
9527 echo $ECHO_N "(cached) $ECHO_C" >&6
9528else
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/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9536 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9537#define shl_load innocuous_shl_load
9538
9539/* System header to define __stub macros and hopefully few prototypes,
9540 which can conflict with char shl_load (); below.
9541 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9542 <limits.h> exists even on freestanding compilers. */
9543
9544#ifdef __STDC__
9545# include <limits.h>
9546#else
9547# include <assert.h>
9548#endif
9549
9550#undef shl_load
9551
9552/* Override any GCC internal prototype to avoid an error.
9553 Use char because int might match the return type of a GCC
9554 builtin and then its argument prototype would still apply. */
9555#ifdef __cplusplus
9556extern "C"
9557#endif
9558char shl_load ();
9559/* The GNU C library defines this for functions which it implements
9560 to always fail with ENOSYS. Some functions are actually named
9561 something starting with __ and the normal name is an alias. */
9562#if defined __stub_shl_load || defined __stub___shl_load
9563choke me
9564#endif
9565
9566int
9567main ()
9568{
9569return shl_load ();
9570 ;
9571 return 0;
9572}
9573_ACEOF
9574rm -f conftest.$ac_objext conftest$ac_exeext
9575if { (ac_try="$ac_link"
9576case "(($ac_try" in
9577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9578 *) ac_try_echo=$ac_try;;
9579esac
9580eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9581 (eval "$ac_link") 2>conftest.er1
9582 ac_status=$?
9583 grep -v '^ *+' conftest.er1 >conftest.err
9584 rm -f conftest.er1
9585 cat conftest.err >&5
9586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9587 (exit $ac_status); } && {
9588 test -z "$ac_c_werror_flag" ||
9589 test ! -s conftest.err
9590 } && test -s conftest$ac_exeext &&
9591 $as_test_x conftest$ac_exeext; then
9592 ac_cv_func_shl_load=yes
9593else
9594 echo "$as_me: failed program was:" >&5
9595sed 's/^/| /' conftest.$ac_ext >&5
9596
9597 ac_cv_func_shl_load=no
9598fi
9599
9600rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9601 conftest$ac_exeext conftest.$ac_ext
9602fi
9603{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9604echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9605if test $ac_cv_func_shl_load = yes; then
9606 lt_cv_dlopen="shl_load"
9607else
9608 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9609echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9610if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9611 echo $ECHO_N "(cached) $ECHO_C" >&6
9612else
9613 ac_check_lib_save_LIBS=$LIBS
9614LIBS="-ldld $LIBS"
9615cat >conftest.$ac_ext <<_ACEOF
9616/* confdefs.h. */
9617_ACEOF
9618cat confdefs.h >>conftest.$ac_ext
9619cat >>conftest.$ac_ext <<_ACEOF
9620/* end confdefs.h. */
9621
9622/* Override any GCC internal prototype to avoid an error.
9623 Use char because int might match the return type of a GCC
9624 builtin and then its argument prototype would still apply. */
9625#ifdef __cplusplus
9626extern "C"
9627#endif
9628char shl_load ();
9629int
9630main ()
9631{
9632return shl_load ();
9633 ;
9634 return 0;
9635}
9636_ACEOF
9637rm -f conftest.$ac_objext conftest$ac_exeext
9638if { (ac_try="$ac_link"
9639case "(($ac_try" in
9640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9641 *) ac_try_echo=$ac_try;;
9642esac
9643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9644 (eval "$ac_link") 2>conftest.er1
9645 ac_status=$?
9646 grep -v '^ *+' conftest.er1 >conftest.err
9647 rm -f conftest.er1
9648 cat conftest.err >&5
9649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9650 (exit $ac_status); } && {
9651 test -z "$ac_c_werror_flag" ||
9652 test ! -s conftest.err
9653 } && test -s conftest$ac_exeext &&
9654 $as_test_x conftest$ac_exeext; then
9655 ac_cv_lib_dld_shl_load=yes
9656else
9657 echo "$as_me: failed program was:" >&5
9658sed 's/^/| /' conftest.$ac_ext >&5
9659
9660 ac_cv_lib_dld_shl_load=no
9661fi
9662
9663rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9664 conftest$ac_exeext conftest.$ac_ext
9665LIBS=$ac_check_lib_save_LIBS
9666fi
9667{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9668echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9669if test $ac_cv_lib_dld_shl_load = yes; then
9670 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9671else
9672 { echo "$as_me:$LINENO: checking for dlopen" >&5
9673echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9674if test "${ac_cv_func_dlopen+set}" = set; then
9675 echo $ECHO_N "(cached) $ECHO_C" >&6
9676else
9677 cat >conftest.$ac_ext <<_ACEOF
9678/* confdefs.h. */
9679_ACEOF
9680cat confdefs.h >>conftest.$ac_ext
9681cat >>conftest.$ac_ext <<_ACEOF
9682/* end confdefs.h. */
9683/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9684 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9685#define dlopen innocuous_dlopen
9686
9687/* System header to define __stub macros and hopefully few prototypes,
9688 which can conflict with char dlopen (); below.
9689 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9690 <limits.h> exists even on freestanding compilers. */
9691
9692#ifdef __STDC__
9693# include <limits.h>
9694#else
9695# include <assert.h>
9696#endif
9697
9698#undef dlopen
9699
9700/* Override any GCC internal prototype to avoid an error.
9701 Use char because int might match the return type of a GCC
9702 builtin and then its argument prototype would still apply. */
9703#ifdef __cplusplus
9704extern "C"
9705#endif
9706char dlopen ();
9707/* The GNU C library defines this for functions which it implements
9708 to always fail with ENOSYS. Some functions are actually named
9709 something starting with __ and the normal name is an alias. */
9710#if defined __stub_dlopen || defined __stub___dlopen
9711choke me
9712#endif
9713
9714int
9715main ()
9716{
9717return dlopen ();
9718 ;
9719 return 0;
9720}
9721_ACEOF
9722rm -f conftest.$ac_objext conftest$ac_exeext
9723if { (ac_try="$ac_link"
9724case "(($ac_try" in
9725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9726 *) ac_try_echo=$ac_try;;
9727esac
9728eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9729 (eval "$ac_link") 2>conftest.er1
9730 ac_status=$?
9731 grep -v '^ *+' conftest.er1 >conftest.err
9732 rm -f conftest.er1
9733 cat conftest.err >&5
9734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9735 (exit $ac_status); } && {
9736 test -z "$ac_c_werror_flag" ||
9737 test ! -s conftest.err
9738 } && test -s conftest$ac_exeext &&
9739 $as_test_x conftest$ac_exeext; then
9740 ac_cv_func_dlopen=yes
9741else
9742 echo "$as_me: failed program was:" >&5
9743sed 's/^/| /' conftest.$ac_ext >&5
9744
9745 ac_cv_func_dlopen=no
9746fi
9747
9748rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9749 conftest$ac_exeext conftest.$ac_ext
9750fi
9751{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9752echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9753if test $ac_cv_func_dlopen = yes; then
9754 lt_cv_dlopen="dlopen"
9755else
9756 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9757echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9758if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9759 echo $ECHO_N "(cached) $ECHO_C" >&6
9760else
9761 ac_check_lib_save_LIBS=$LIBS
9762LIBS="-ldl $LIBS"
9763cat >conftest.$ac_ext <<_ACEOF
9764/* confdefs.h. */
9765_ACEOF
9766cat confdefs.h >>conftest.$ac_ext
9767cat >>conftest.$ac_ext <<_ACEOF
9768/* end confdefs.h. */
9769
9770/* Override any GCC internal prototype to avoid an error.
9771 Use char because int might match the return type of a GCC
9772 builtin and then its argument prototype would still apply. */
9773#ifdef __cplusplus
9774extern "C"
9775#endif
9776char dlopen ();
9777int
9778main ()
9779{
9780return dlopen ();
9781 ;
9782 return 0;
9783}
9784_ACEOF
9785rm -f conftest.$ac_objext conftest$ac_exeext
9786if { (ac_try="$ac_link"
9787case "(($ac_try" in
9788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9789 *) ac_try_echo=$ac_try;;
9790esac
9791eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9792 (eval "$ac_link") 2>conftest.er1
9793 ac_status=$?
9794 grep -v '^ *+' conftest.er1 >conftest.err
9795 rm -f conftest.er1
9796 cat conftest.err >&5
9797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9798 (exit $ac_status); } && {
9799 test -z "$ac_c_werror_flag" ||
9800 test ! -s conftest.err
9801 } && test -s conftest$ac_exeext &&
9802 $as_test_x conftest$ac_exeext; then
9803 ac_cv_lib_dl_dlopen=yes
9804else
9805 echo "$as_me: failed program was:" >&5
9806sed 's/^/| /' conftest.$ac_ext >&5
9807
9808 ac_cv_lib_dl_dlopen=no
9809fi
9810
9811rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9812 conftest$ac_exeext conftest.$ac_ext
9813LIBS=$ac_check_lib_save_LIBS
9814fi
9815{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9816echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9817if test $ac_cv_lib_dl_dlopen = yes; then
9818 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9819else
9820 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9821echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9822if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9823 echo $ECHO_N "(cached) $ECHO_C" >&6
9824else
9825 ac_check_lib_save_LIBS=$LIBS
9826LIBS="-lsvld $LIBS"
9827cat >conftest.$ac_ext <<_ACEOF
9828/* confdefs.h. */
9829_ACEOF
9830cat confdefs.h >>conftest.$ac_ext
9831cat >>conftest.$ac_ext <<_ACEOF
9832/* end confdefs.h. */
9833
9834/* Override any GCC internal prototype to avoid an error.
9835 Use char because int might match the return type of a GCC
9836 builtin and then its argument prototype would still apply. */
9837#ifdef __cplusplus
9838extern "C"
9839#endif
9840char dlopen ();
9841int
9842main ()
9843{
9844return dlopen ();
9845 ;
9846 return 0;
9847}
9848_ACEOF
9849rm -f conftest.$ac_objext conftest$ac_exeext
9850if { (ac_try="$ac_link"
9851case "(($ac_try" in
9852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9853 *) ac_try_echo=$ac_try;;
9854esac
9855eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9856 (eval "$ac_link") 2>conftest.er1
9857 ac_status=$?
9858 grep -v '^ *+' conftest.er1 >conftest.err
9859 rm -f conftest.er1
9860 cat conftest.err >&5
9861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9862 (exit $ac_status); } && {
9863 test -z "$ac_c_werror_flag" ||
9864 test ! -s conftest.err
9865 } && test -s conftest$ac_exeext &&
9866 $as_test_x conftest$ac_exeext; then
9867 ac_cv_lib_svld_dlopen=yes
9868else
9869 echo "$as_me: failed program was:" >&5
9870sed 's/^/| /' conftest.$ac_ext >&5
9871
9872 ac_cv_lib_svld_dlopen=no
9873fi
9874
9875rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9876 conftest$ac_exeext conftest.$ac_ext
9877LIBS=$ac_check_lib_save_LIBS
9878fi
9879{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9880echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9881if test $ac_cv_lib_svld_dlopen = yes; then
9882 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9883else
9884 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9885echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9886if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9887 echo $ECHO_N "(cached) $ECHO_C" >&6
9888else
9889 ac_check_lib_save_LIBS=$LIBS
9890LIBS="-ldld $LIBS"
9891cat >conftest.$ac_ext <<_ACEOF
9892/* confdefs.h. */
9893_ACEOF
9894cat confdefs.h >>conftest.$ac_ext
9895cat >>conftest.$ac_ext <<_ACEOF
9896/* end confdefs.h. */
9897
9898/* Override any GCC internal prototype to avoid an error.
9899 Use char because int might match the return type of a GCC
9900 builtin and then its argument prototype would still apply. */
9901#ifdef __cplusplus
9902extern "C"
9903#endif
9904char dld_link ();
9905int
9906main ()
9907{
9908return dld_link ();
9909 ;
9910 return 0;
9911}
9912_ACEOF
9913rm -f conftest.$ac_objext conftest$ac_exeext
9914if { (ac_try="$ac_link"
9915case "(($ac_try" in
9916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9917 *) ac_try_echo=$ac_try;;
9918esac
9919eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9920 (eval "$ac_link") 2>conftest.er1
9921 ac_status=$?
9922 grep -v '^ *+' conftest.er1 >conftest.err
9923 rm -f conftest.er1
9924 cat conftest.err >&5
9925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9926 (exit $ac_status); } && {
9927 test -z "$ac_c_werror_flag" ||
9928 test ! -s conftest.err
9929 } && test -s conftest$ac_exeext &&
9930 $as_test_x conftest$ac_exeext; then
9931 ac_cv_lib_dld_dld_link=yes
9932else
9933 echo "$as_me: failed program was:" >&5
9934sed 's/^/| /' conftest.$ac_ext >&5
9935
9936 ac_cv_lib_dld_dld_link=no
9937fi
9938
9939rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9940 conftest$ac_exeext conftest.$ac_ext
9941LIBS=$ac_check_lib_save_LIBS
9942fi
9943{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9944echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9945if test $ac_cv_lib_dld_dld_link = yes; then
9946 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
9947fi
9948
9949
9950fi
9951
9952
9953fi
9954
9955
9956fi
9957
9958
9959fi
9960
9961
9962fi
9963
9964 ;;
9965 esac
9966
9967 if test "x$lt_cv_dlopen" != xno; then
9968 enable_dlopen=yes
9969 else
9970 enable_dlopen=no
9971 fi
9972
9973 case $lt_cv_dlopen in
9974 dlopen)
9975 save_CPPFLAGS="$CPPFLAGS"
9976 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9977
9978 save_LDFLAGS="$LDFLAGS"
9979 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9980
9981 save_LIBS="$LIBS"
9982 LIBS="$lt_cv_dlopen_libs $LIBS"
9983
9984 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9985echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9986if test "${lt_cv_dlopen_self+set}" = set; then
9987 echo $ECHO_N "(cached) $ECHO_C" >&6
9988else
9989 if test "$cross_compiling" = yes; then :
9990 lt_cv_dlopen_self=cross
9991else
9992 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9993 lt_status=$lt_dlunknown
9994 cat > conftest.$ac_ext <<EOF
9995#line __oline__ "configure"
9996#include "confdefs.h"
9997
9998#if HAVE_DLFCN_H
9999#include <dlfcn.h>
10000#endif
10001
10002#include <stdio.h>
10003
10004#ifdef RTLD_GLOBAL
10005# define LT_DLGLOBAL RTLD_GLOBAL
10006#else
10007# ifdef DL_GLOBAL
10008# define LT_DLGLOBAL DL_GLOBAL
10009# else
10010# define LT_DLGLOBAL 0
10011# endif
10012#endif
10013
10014/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10015 find out it does not work in some platform. */
10016#ifndef LT_DLLAZY_OR_NOW
10017# ifdef RTLD_LAZY
10018# define LT_DLLAZY_OR_NOW RTLD_LAZY
10019# else
10020# ifdef DL_LAZY
10021# define LT_DLLAZY_OR_NOW DL_LAZY
10022# else
10023# ifdef RTLD_NOW
10024# define LT_DLLAZY_OR_NOW RTLD_NOW
10025# else
10026# ifdef DL_NOW
10027# define LT_DLLAZY_OR_NOW DL_NOW
10028# else
10029# define LT_DLLAZY_OR_NOW 0
10030# endif
10031# endif
10032# endif
10033# endif
10034#endif
10035
10036#ifdef __cplusplus
10037extern "C" void exit (int);
10038#endif
10039
10040void fnord() { int i=42;}
10041int main ()
10042{
10043 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10044 int status = $lt_dlunknown;
10045
10046 if (self)
10047 {
10048 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10049 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10050 /* dlclose (self); */
10051 }
10052 else
10053 puts (dlerror ());
10054
10055 exit (status);
10056}
10057EOF
10058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10059 (eval $ac_link) 2>&5
10060 ac_status=$?
10061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10062 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10063 (./conftest; exit; ) >&5 2>/dev/null
10064 lt_status=$?
10065 case x$lt_status in
10066 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10067 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10068 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10069 esac
10070 else :
10071 # compilation failed
10072 lt_cv_dlopen_self=no
10073 fi
10074fi
10075rm -fr conftest*
10076
10077
10078fi
10079{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10080echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10081
10082 if test "x$lt_cv_dlopen_self" = xyes; then
10083 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10084 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10085echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10086if test "${lt_cv_dlopen_self_static+set}" = set; then
10087 echo $ECHO_N "(cached) $ECHO_C" >&6
10088else
10089 if test "$cross_compiling" = yes; then :
10090 lt_cv_dlopen_self_static=cross
10091else
10092 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10093 lt_status=$lt_dlunknown
10094 cat > conftest.$ac_ext <<EOF
10095#line __oline__ "configure"
10096#include "confdefs.h"
10097
10098#if HAVE_DLFCN_H
10099#include <dlfcn.h>
10100#endif
10101
10102#include <stdio.h>
10103
10104#ifdef RTLD_GLOBAL
10105# define LT_DLGLOBAL RTLD_GLOBAL
10106#else
10107# ifdef DL_GLOBAL
10108# define LT_DLGLOBAL DL_GLOBAL
10109# else
10110# define LT_DLGLOBAL 0
10111# endif
10112#endif
10113
10114/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10115 find out it does not work in some platform. */
10116#ifndef LT_DLLAZY_OR_NOW
10117# ifdef RTLD_LAZY
10118# define LT_DLLAZY_OR_NOW RTLD_LAZY
10119# else
10120# ifdef DL_LAZY
10121# define LT_DLLAZY_OR_NOW DL_LAZY
10122# else
10123# ifdef RTLD_NOW
10124# define LT_DLLAZY_OR_NOW RTLD_NOW
10125# else
10126# ifdef DL_NOW
10127# define LT_DLLAZY_OR_NOW DL_NOW
10128# else
10129# define LT_DLLAZY_OR_NOW 0
10130# endif
10131# endif
10132# endif
10133# endif
10134#endif
10135
10136#ifdef __cplusplus
10137extern "C" void exit (int);
10138#endif
10139
10140void fnord() { int i=42;}
10141int main ()
10142{
10143 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10144 int status = $lt_dlunknown;
10145
10146 if (self)
10147 {
10148 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10149 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10150 /* dlclose (self); */
10151 }
10152 else
10153 puts (dlerror ());
10154
10155 exit (status);
10156}
10157EOF
10158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10159 (eval $ac_link) 2>&5
10160 ac_status=$?
10161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10162 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10163 (./conftest; exit; ) >&5 2>/dev/null
10164 lt_status=$?
10165 case x$lt_status in
10166 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10167 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10168 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10169 esac
10170 else :
10171 # compilation failed
10172 lt_cv_dlopen_self_static=no
10173 fi
10174fi
10175rm -fr conftest*
10176
10177
10178fi
10179{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10180echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10181 fi
10182
10183 CPPFLAGS="$save_CPPFLAGS"
10184 LDFLAGS="$save_LDFLAGS"
10185 LIBS="$save_LIBS"
10186 ;;
10187 esac
10188
10189 case $lt_cv_dlopen_self in
10190 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10191 *) enable_dlopen_self=unknown ;;
10192 esac
10193
10194 case $lt_cv_dlopen_self_static in
10195 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10196 *) enable_dlopen_self_static=unknown ;;
10197 esac
10198fi
10199
10200
10201# Report which library types will actually be built
10202{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10203echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10204{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
10205echo "${ECHO_T}$can_build_shared" >&6; }
10206
10207{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10208echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10209test "$can_build_shared" = "no" && enable_shared=no
10210
10211# On AIX, shared libraries and static libraries use the same namespace, and
10212# are all built from PIC.
10213case $host_os in
10214aix3*)
10215 test "$enable_shared" = yes && enable_static=no
10216 if test -n "$RANLIB"; then
10217 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10218 postinstall_cmds='$RANLIB $lib'
10219 fi
10220 ;;
10221
10222aix[4-9]*)
10223 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10224 test "$enable_shared" = yes && enable_static=no
10225 fi
10226 ;;
10227esac
10228{ echo "$as_me:$LINENO: result: $enable_shared" >&5
10229echo "${ECHO_T}$enable_shared" >&6; }
10230
10231{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10232echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10233# Make sure either enable_shared or enable_static is yes.
10234test "$enable_shared" = yes || enable_static=yes
10235{ echo "$as_me:$LINENO: result: $enable_static" >&5
10236echo "${ECHO_T}$enable_static" >&6; }
10237
10238# The else clause should only fire when bootstrapping the
10239# libtool distribution, otherwise you forgot to ship ltmain.sh
10240# with your package, and you will get complaints that there are
10241# no rules to generate ltmain.sh.
10242if test -f "$ltmain"; then
10243 # See if we are running on zsh, and set the options which allow our commands through
10244 # without removal of \ escapes.
10245 if test -n "${ZSH_VERSION+set}" ; then
10246 setopt NO_GLOB_SUBST
10247 fi
10248 # Now quote all the things that may contain metacharacters while being
10249 # careful not to overquote the AC_SUBSTed values. We take copies of the
10250 # variables and quote the copies for generation of the libtool script.
10251 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10252 SED SHELL STRIP \
10253 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10254 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10255 deplibs_check_method reload_flag reload_cmds need_locks \
10256 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10257 lt_cv_sys_global_symbol_to_c_name_address \
10258 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10259 old_postinstall_cmds old_postuninstall_cmds \
10260 compiler \
10261 CC \
10262 LD \
10263 lt_prog_compiler_wl \
10264 lt_prog_compiler_pic \
10265 lt_prog_compiler_static \
10266 lt_prog_compiler_no_builtin_flag \
10267 export_dynamic_flag_spec \
10268 thread_safe_flag_spec \
10269 whole_archive_flag_spec \
10270 enable_shared_with_static_runtimes \
10271 old_archive_cmds \
10272 old_archive_from_new_cmds \
10273 predep_objects \
10274 postdep_objects \
10275 predeps \
10276 postdeps \
10277 compiler_lib_search_path \
10278 compiler_lib_search_dirs \
10279 archive_cmds \
10280 archive_expsym_cmds \
10281 postinstall_cmds \
10282 postuninstall_cmds \
10283 old_archive_from_expsyms_cmds \
10284 allow_undefined_flag \
10285 no_undefined_flag \
10286 export_symbols_cmds \
10287 hardcode_libdir_flag_spec \
10288 hardcode_libdir_flag_spec_ld \
10289 hardcode_libdir_separator \
10290 hardcode_automatic \
10291 module_cmds \
10292 module_expsym_cmds \
10293 lt_cv_prog_compiler_c_o \
10294 fix_srcfile_path \
10295 exclude_expsyms \
10296 include_expsyms; do
10297
10298 case $var in
10299 old_archive_cmds | \
10300 old_archive_from_new_cmds | \
10301 archive_cmds | \
10302 archive_expsym_cmds | \
10303 module_cmds | \
10304 module_expsym_cmds | \
10305 old_archive_from_expsyms_cmds | \
10306 export_symbols_cmds | \
10307 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10308 postinstall_cmds | postuninstall_cmds | \
10309 old_postinstall_cmds | old_postuninstall_cmds | \
10310 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10311 # Double-quote double-evaled strings.
10312 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10313 ;;
10314 *)
10315 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10316 ;;
10317 esac
10318 done
10319
10320 case $lt_echo in
10321 *'\$0 --fallback-echo"')
10322 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10323 ;;
10324 esac
10325
10326cfgfile="${ofile}T"
10327 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10328 $rm -f "$cfgfile"
10329 { echo "$as_me:$LINENO: creating $ofile" >&5
10330echo "$as_me: creating $ofile" >&6;}
10331
10332 cat <<__EOF__ >> "$cfgfile"
10333#! $SHELL
10334
10335# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10336# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10337# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10338#
10339# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10340# Free Software Foundation, Inc.
10341#
10342# This file is part of GNU Libtool:
10343# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10344#
10345# This program is free software; you can redistribute it and/or modify
10346# it under the terms of the GNU General Public License as published by
10347# the Free Software Foundation; either version 2 of the License, or
10348# (at your option) any later version.
10349#
10350# This program is distributed in the hope that it will be useful, but
10351# WITHOUT ANY WARRANTY; without even the implied warranty of
10352# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10353# General Public License for more details.
10354#
10355# You should have received a copy of the GNU General Public License
10356# along with this program; if not, write to the Free Software
10357# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10358#
10359# As a special exception to the GNU General Public License, if you
10360# distribute this file as part of a program that contains a
10361# configuration script generated by Autoconf, you may include it under
10362# the same distribution terms that you use for the rest of that program.
10363
10364# A sed program that does not truncate output.
10365SED=$lt_SED
10366
10367# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10368Xsed="$SED -e 1s/^X//"
10369
10370# The HP-UX ksh and POSIX shell print the target directory to stdout
10371# if CDPATH is set.
10372(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10373
10374# The names of the tagged configurations supported by this script.
10375available_tags=
10376
10377# ### BEGIN LIBTOOL CONFIG
10378
10379# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10380
10381# Shell to use when invoking shell scripts.
10382SHELL=$lt_SHELL
10383
10384# Whether or not to build shared libraries.
10385build_libtool_libs=$enable_shared
10386
10387# Whether or not to build static libraries.
10388build_old_libs=$enable_static
10389
10390# Whether or not to add -lc for building shared libraries.
10391build_libtool_need_lc=$archive_cmds_need_lc
10392
10393# Whether or not to disallow shared libs when runtime libs are static
10394allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10395
10396# Whether or not to optimize for fast installation.
10397fast_install=$enable_fast_install
10398
10399# The host system.
10400host_alias=$host_alias
10401host=$host
10402host_os=$host_os
10403
10404# The build system.
10405build_alias=$build_alias
10406build=$build
10407build_os=$build_os
10408
10409# An echo program that does not interpret backslashes.
10410echo=$lt_echo
10411
10412# The archiver.
10413AR=$lt_AR
10414AR_FLAGS=$lt_AR_FLAGS
10415
10416# A C compiler.
10417LTCC=$lt_LTCC
10418
10419# LTCC compiler flags.
10420LTCFLAGS=$lt_LTCFLAGS
10421
10422# A language-specific compiler.
10423CC=$lt_compiler
10424
10425# Is the compiler the GNU C compiler?
10426with_gcc=$GCC
10427
10428# An ERE matcher.
10429EGREP=$lt_EGREP
10430
10431# The linker used to build libraries.
10432LD=$lt_LD
10433
10434# Whether we need hard or soft links.
10435LN_S=$lt_LN_S
10436
10437# A BSD-compatible nm program.
10438NM=$lt_NM
10439
10440# A symbol stripping program
10441STRIP=$lt_STRIP
10442
10443# Used to examine libraries when file_magic_cmd begins "file"
10444MAGIC_CMD=$MAGIC_CMD
10445
10446# Used on cygwin: DLL creation program.
10447DLLTOOL="$DLLTOOL"
10448
10449# Used on cygwin: object dumper.
10450OBJDUMP="$OBJDUMP"
10451
10452# Used on cygwin: assembler.
10453AS="$AS"
10454
10455# The name of the directory that contains temporary libtool files.
10456objdir=$objdir
10457
10458# How to create reloadable object files.
10459reload_flag=$lt_reload_flag
10460reload_cmds=$lt_reload_cmds
10461
10462# How to pass a linker flag through the compiler.
10463wl=$lt_lt_prog_compiler_wl
10464
10465# Object file suffix (normally "o").
10466objext="$ac_objext"
10467
10468# Old archive suffix (normally "a").
10469libext="$libext"
10470
10471# Shared library suffix (normally ".so").
10472shrext_cmds='$shrext_cmds'
10473
10474# Executable file suffix (normally "").
10475exeext="$exeext"
10476
10477# Additional compiler flags for building library objects.
10478pic_flag=$lt_lt_prog_compiler_pic
10479pic_mode=$pic_mode
10480
10481# What is the maximum length of a command?
10482max_cmd_len=$lt_cv_sys_max_cmd_len
10483
10484# Does compiler simultaneously support -c and -o options?
10485compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10486
10487# Must we lock files when doing compilation?
10488need_locks=$lt_need_locks
10489
10490# Do we need the lib prefix for modules?
10491need_lib_prefix=$need_lib_prefix
10492
10493# Do we need a version for libraries?
10494need_version=$need_version
10495
10496# Whether dlopen is supported.
10497dlopen_support=$enable_dlopen
10498
10499# Whether dlopen of programs is supported.
10500dlopen_self=$enable_dlopen_self
10501
10502# Whether dlopen of statically linked programs is supported.
10503dlopen_self_static=$enable_dlopen_self_static
10504
10505# Compiler flag to prevent dynamic linking.
10506link_static_flag=$lt_lt_prog_compiler_static
10507
10508# Compiler flag to turn off builtin functions.
10509no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10510
10511# Compiler flag to allow reflexive dlopens.
10512export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10513
10514# Compiler flag to generate shared objects directly from archives.
10515whole_archive_flag_spec=$lt_whole_archive_flag_spec
10516
10517# Compiler flag to generate thread-safe objects.
10518thread_safe_flag_spec=$lt_thread_safe_flag_spec
10519
10520# Library versioning type.
10521version_type=$version_type
10522
10523# Format of library name prefix.
10524libname_spec=$lt_libname_spec
10525
10526# List of archive names. First name is the real one, the rest are links.
10527# The last name is the one that the linker finds with -lNAME.
10528library_names_spec=$lt_library_names_spec
10529
10530# The coded name of the library, if different from the real name.
10531soname_spec=$lt_soname_spec
10532
10533# Commands used to build and install an old-style archive.
10534RANLIB=$lt_RANLIB
10535old_archive_cmds=$lt_old_archive_cmds
10536old_postinstall_cmds=$lt_old_postinstall_cmds
10537old_postuninstall_cmds=$lt_old_postuninstall_cmds
10538
10539# Create an old-style archive from a shared archive.
10540old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10541
10542# Create a temporary old-style archive to link instead of a shared archive.
10543old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10544
10545# Commands used to build and install a shared archive.
10546archive_cmds=$lt_archive_cmds
10547archive_expsym_cmds=$lt_archive_expsym_cmds
10548postinstall_cmds=$lt_postinstall_cmds
10549postuninstall_cmds=$lt_postuninstall_cmds
10550
10551# Commands used to build a loadable module (assumed same as above if empty)
10552module_cmds=$lt_module_cmds
10553module_expsym_cmds=$lt_module_expsym_cmds
10554
10555# Commands to strip libraries.
10556old_striplib=$lt_old_striplib
10557striplib=$lt_striplib
10558
10559# Dependencies to place before the objects being linked to create a
10560# shared library.
10561predep_objects=$lt_predep_objects
10562
10563# Dependencies to place after the objects being linked to create a
10564# shared library.
10565postdep_objects=$lt_postdep_objects
10566
10567# Dependencies to place before the objects being linked to create a
10568# shared library.
10569predeps=$lt_predeps
10570
10571# Dependencies to place after the objects being linked to create a
10572# shared library.
10573postdeps=$lt_postdeps
10574
10575# The directories searched by this compiler when creating a shared
10576# library
10577compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
10578
10579# The library search path used internally by the compiler when linking
10580# a shared library.
10581compiler_lib_search_path=$lt_compiler_lib_search_path
10582
10583# Method to check whether dependent libraries are shared objects.
10584deplibs_check_method=$lt_deplibs_check_method
10585
10586# Command to use when deplibs_check_method == file_magic.
10587file_magic_cmd=$lt_file_magic_cmd
10588
10589# Flag that allows shared libraries with undefined symbols to be built.
10590allow_undefined_flag=$lt_allow_undefined_flag
10591
10592# Flag that forces no undefined symbols.
10593no_undefined_flag=$lt_no_undefined_flag
10594
10595# Commands used to finish a libtool library installation in a directory.
10596finish_cmds=$lt_finish_cmds
10597
10598# Same as above, but a single script fragment to be evaled but not shown.
10599finish_eval=$lt_finish_eval
10600
10601# Take the output of nm and produce a listing of raw symbols and C names.
10602global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10603
10604# Transform the output of nm in a proper C declaration
10605global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10606
10607# Transform the output of nm in a C name address pair
10608global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10609
10610# This is the shared library runtime path variable.
10611runpath_var=$runpath_var
10612
10613# This is the shared library path variable.
10614shlibpath_var=$shlibpath_var
10615
10616# Is shlibpath searched before the hard-coded library search path?
10617shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10618
10619# How to hardcode a shared library path into an executable.
10620hardcode_action=$hardcode_action
10621
10622# Whether we should hardcode library paths into libraries.
10623hardcode_into_libs=$hardcode_into_libs
10624
10625# Flag to hardcode \$libdir into a binary during linking.
10626# This must work even if \$libdir does not exist.
10627hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10628
10629# If ld is used when linking, flag to hardcode \$libdir into
10630# a binary during linking. This must work even if \$libdir does
10631# not exist.
10632hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10633
10634# Whether we need a single -rpath flag with a separated argument.
10635hardcode_libdir_separator=$lt_hardcode_libdir_separator
10636
10637# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10638# resulting binary.
10639hardcode_direct=$hardcode_direct
10640
10641# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10642# resulting binary.
10643hardcode_minus_L=$hardcode_minus_L
10644
10645# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10646# the resulting binary.
10647hardcode_shlibpath_var=$hardcode_shlibpath_var
10648
10649# Set to yes if building a shared library automatically hardcodes DIR into the library
10650# and all subsequent libraries and executables linked against it.
10651hardcode_automatic=$hardcode_automatic
10652
10653# Variables whose values should be saved in libtool wrapper scripts and
10654# restored at relink time.
10655variables_saved_for_relink="$variables_saved_for_relink"
10656
10657# Whether libtool must link a program against all its dependency libraries.
10658link_all_deplibs=$link_all_deplibs
10659
10660# Compile-time system search path for libraries
10661sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10662
10663# Run-time system search path for libraries
10664sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10665
10666# Fix the shell variable \$srcfile for the compiler.
10667fix_srcfile_path=$lt_fix_srcfile_path
10668
10669# Set to yes if exported symbols are required.
10670always_export_symbols=$always_export_symbols
10671
10672# The commands to list exported symbols.
10673export_symbols_cmds=$lt_export_symbols_cmds
10674
10675# The commands to extract the exported symbol list from a shared archive.
10676extract_expsyms_cmds=$lt_extract_expsyms_cmds
10677
10678# Symbols that should not be listed in the preloaded symbols.
10679exclude_expsyms=$lt_exclude_expsyms
10680
10681# Symbols that must always be exported.
10682include_expsyms=$lt_include_expsyms
10683
10684# ### END LIBTOOL CONFIG
10685
10686__EOF__
10687
10688
10689 case $host_os in
10690 aix3*)
10691 cat <<\EOF >> "$cfgfile"
10692
10693# AIX sometimes has problems with the GCC collect2 program. For some
10694# reason, if we set the COLLECT_NAMES environment variable, the problems
10695# vanish in a puff of smoke.
10696if test "X${COLLECT_NAMES+set}" != Xset; then
10697 COLLECT_NAMES=
10698 export COLLECT_NAMES
10699fi
10700EOF
10701 ;;
10702 esac
10703
10704 # We use sed instead of cat because bash on DJGPP gets confused if
10705 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10706 # text mode, it properly converts lines to CR/LF. This bash problem
10707 # is reportedly fixed, but why not run on old versions too?
10708 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10709
10710 mv -f "$cfgfile" "$ofile" || \
10711 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10712 chmod +x "$ofile"
10713
10714else
10715 # If there is no Makefile yet, we rely on a make rule to execute
10716 # `config.status --recheck' to rerun these tests and create the
10717 # libtool script then.
10718 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10719 if test -f "$ltmain_in"; then
10720 test -f Makefile && make "$ltmain"
10721 fi
10722fi
10723
10724
10725ac_ext=c
10726ac_cpp='$CPP $CPPFLAGS'
10727ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10728ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10729ac_compiler_gnu=$ac_cv_c_compiler_gnu
10730
10731CC="$lt_save_CC"
10732
10733
10734# Check whether --with-tags was given.
10735if test "${with_tags+set}" = set; then
10736 withval=$with_tags; tagnames="$withval"
10737fi
10738
10739
10740if test -f "$ltmain" && test -n "$tagnames"; then
10741 if test ! -f "${ofile}"; then
10742 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10743echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10744 fi
10745
10746 if test -z "$LTCC"; then
10747 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10748 if test -z "$LTCC"; then
10749 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10750echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10751 else
10752 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10753echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10754 fi
10755 fi
10756 if test -z "$LTCFLAGS"; then
10757 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10758 fi
10759
10760 # Extract list of available tagged configurations in $ofile.
10761 # Note that this assumes the entire list is on one line.
10762 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10763
10764 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10765 for tagname in $tagnames; do
10766 IFS="$lt_save_ifs"
10767 # Check whether tagname contains only valid characters
10768 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10769 "") ;;
10770 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10771echo "$as_me: error: invalid tag name: $tagname" >&2;}
10772 { (exit 1); exit 1; }; }
10773 ;;
10774 esac
10775
10776 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10777 then
10778 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10779echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10780 { (exit 1); exit 1; }; }
10781 fi
10782
10783 # Update the list of available tags.
10784 if test -n "$tagname"; then
10785 echo appending configuration tag \"$tagname\" to $ofile
10786
10787 case $tagname in
10788 CXX)
10789 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10790 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10791 (test "X$CXX" != "Xg++"))) ; then
10792 ac_ext=cpp
10793ac_cpp='$CXXCPP $CPPFLAGS'
10794ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10795ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10796ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10797
10798
10799
10800
10801archive_cmds_need_lc_CXX=no
10802allow_undefined_flag_CXX=
10803always_export_symbols_CXX=no
10804archive_expsym_cmds_CXX=
10805export_dynamic_flag_spec_CXX=
10806hardcode_direct_CXX=no
10807hardcode_libdir_flag_spec_CXX=
10808hardcode_libdir_flag_spec_ld_CXX=
10809hardcode_libdir_separator_CXX=
10810hardcode_minus_L_CXX=no
10811hardcode_shlibpath_var_CXX=unsupported
10812hardcode_automatic_CXX=no
10813module_cmds_CXX=
10814module_expsym_cmds_CXX=
10815link_all_deplibs_CXX=unknown
10816old_archive_cmds_CXX=$old_archive_cmds
10817no_undefined_flag_CXX=
10818whole_archive_flag_spec_CXX=
10819enable_shared_with_static_runtimes_CXX=no
10820
10821# Dependencies to place before and after the object being linked:
10822predep_objects_CXX=
10823postdep_objects_CXX=
10824predeps_CXX=
10825postdeps_CXX=
10826compiler_lib_search_path_CXX=
10827compiler_lib_search_dirs_CXX=
10828
10829# Source file extension for C++ test sources.
10830ac_ext=cpp
10831
10832# Object file extension for compiled C++ test sources.
10833objext=o
10834objext_CXX=$objext
10835
10836# Code to be used in simple compile tests
10837lt_simple_compile_test_code="int some_variable = 0;"
10838
10839# Code to be used in simple link tests
10840lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
10841
10842# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10843
10844# If no C compiler was specified, use CC.
10845LTCC=${LTCC-"$CC"}
10846
10847# If no C compiler flags were specified, use CFLAGS.
10848LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10849
10850# Allow CC to be a program name with arguments.
10851compiler=$CC
10852
10853
10854# save warnings/boilerplate of simple test code
10855ac_outfile=conftest.$ac_objext
10856echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10857eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10858_lt_compiler_boilerplate=`cat conftest.err`
10859$rm conftest*
10860
10861ac_outfile=conftest.$ac_objext
10862echo "$lt_simple_link_test_code" >conftest.$ac_ext
10863eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10864_lt_linker_boilerplate=`cat conftest.err`
10865$rm -r conftest*
10866
10867
10868# Allow CC to be a program name with arguments.
10869lt_save_CC=$CC
10870lt_save_LD=$LD
10871lt_save_GCC=$GCC
10872GCC=$GXX
10873lt_save_with_gnu_ld=$with_gnu_ld
10874lt_save_path_LD=$lt_cv_path_LD
10875if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10876 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10877else
10878 $as_unset lt_cv_prog_gnu_ld
10879fi
10880if test -n "${lt_cv_path_LDCXX+set}"; then
10881 lt_cv_path_LD=$lt_cv_path_LDCXX
10882else
10883 $as_unset lt_cv_path_LD
10884fi
10885test -z "${LDCXX+set}" || LD=$LDCXX
10886CC=${CXX-"c++"}
10887compiler=$CC
10888compiler_CXX=$CC
10889for cc_temp in $compiler""; do
10890 case $cc_temp in
10891 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10892 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10893 \-*) ;;
10894 *) break;;
10895 esac
10896done
10897cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10898
10899
10900# We don't want -fno-exception wen compiling C++ code, so set the
10901# no_builtin_flag separately
10902if test "$GXX" = yes; then
10903 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10904else
10905 lt_prog_compiler_no_builtin_flag_CXX=
10906fi
10907
10908if test "$GXX" = yes; then
10909 # Set up default GNU C++ configuration
10910
10911
10912# Check whether --with-gnu-ld was given.
10913if test "${with_gnu_ld+set}" = set; then
10914 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10915else
10916 with_gnu_ld=no
10917fi
10918
10919ac_prog=ld
10920if test "$GCC" = yes; then
10921 # Check if gcc -print-prog-name=ld gives a path.
10922 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10923echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10924 case $host in
10925 *-*-mingw*)
10926 # gcc leaves a trailing carriage return which upsets mingw
10927 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10928 *)
10929 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10930 esac
10931 case $ac_prog in
10932 # Accept absolute paths.
10933 [\\/]* | ?:[\\/]*)
10934 re_direlt='/[^/][^/]*/\.\./'
10935 # Canonicalize the pathname of ld
10936 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10937 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10938 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10939 done
10940 test -z "$LD" && LD="$ac_prog"
10941 ;;
10942 "")
10943 # If it fails, then pretend we aren't using GCC.
10944 ac_prog=ld
10945 ;;
10946 *)
10947 # If it is relative, then search for the first ld in PATH.
10948 with_gnu_ld=unknown
10949 ;;
10950 esac
10951elif test "$with_gnu_ld" = yes; then
10952 { echo "$as_me:$LINENO: checking for GNU ld" >&5
10953echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10954else
10955 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10956echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10957fi
10958if test "${lt_cv_path_LD+set}" = set; then
10959 echo $ECHO_N "(cached) $ECHO_C" >&6
10960else
10961 if test -z "$LD"; then
10962 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10963 for ac_dir in $PATH; do
10964 IFS="$lt_save_ifs"
10965 test -z "$ac_dir" && ac_dir=.
10966 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10967 lt_cv_path_LD="$ac_dir/$ac_prog"
10968 # Check to see if the program is GNU ld. I'd rather use --version,
10969 # but apparently some variants of GNU ld only accept -v.
10970 # Break only if it was the GNU/non-GNU ld that we prefer.
10971 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10972 *GNU* | *'with BFD'*)
10973 test "$with_gnu_ld" != no && break
10974 ;;
10975 *)
10976 test "$with_gnu_ld" != yes && break
10977 ;;
10978 esac
10979 fi
10980 done
10981 IFS="$lt_save_ifs"
10982else
10983 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10984fi
10985fi
10986
10987LD="$lt_cv_path_LD"
10988if test -n "$LD"; then
10989 { echo "$as_me:$LINENO: result: $LD" >&5
10990echo "${ECHO_T}$LD" >&6; }
10991else
10992 { echo "$as_me:$LINENO: result: no" >&5
10993echo "${ECHO_T}no" >&6; }
10994fi
10995test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10996echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10997 { (exit 1); exit 1; }; }
10998{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10999echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11000if test "${lt_cv_prog_gnu_ld+set}" = set; then
11001 echo $ECHO_N "(cached) $ECHO_C" >&6
11002else
11003 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11004case `$LD -v 2>&1 </dev/null` in
11005*GNU* | *'with BFD'*)
11006 lt_cv_prog_gnu_ld=yes
11007 ;;
11008*)
11009 lt_cv_prog_gnu_ld=no
11010 ;;
11011esac
11012fi
11013{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11014echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11015with_gnu_ld=$lt_cv_prog_gnu_ld
11016
11017
11018
11019 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11020 # archiving commands below assume that GNU ld is being used.
11021 if test "$with_gnu_ld" = yes; then
11022 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11023 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'
11024
11025 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11026 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11027
11028 # If archive_cmds runs LD, not CC, wlarc should be empty
11029 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11030 # investigate it a little bit more. (MM)
11031 wlarc='${wl}'
11032
11033 # ancient GNU ld didn't support --whole-archive et. al.
11034 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11035 grep 'no-whole-archive' > /dev/null; then
11036 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11037 else
11038 whole_archive_flag_spec_CXX=
11039 fi
11040 else
11041 with_gnu_ld=no
11042 wlarc=
11043
11044 # A generic and very simple default shared library creation
11045 # command for GNU C++ for the case where it uses the native
11046 # linker, instead of GNU ld. If possible, this setting should
11047 # overridden to take advantage of the native linker features on
11048 # the platform it is being used on.
11049 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11050 fi
11051
11052 # Commands to make compiler produce verbose output that lists
11053 # what "hidden" libraries, object files and flags are used when
11054 # linking a shared library.
11055 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11056
11057else
11058 GXX=no
11059 with_gnu_ld=no
11060 wlarc=
11061fi
11062
11063# PORTME: fill in a description of your system's C++ link characteristics
11064{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11065echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11066ld_shlibs_CXX=yes
11067case $host_os in
11068 aix3*)
11069 # FIXME: insert proper C++ library support
11070 ld_shlibs_CXX=no
11071 ;;
11072 aix[4-9]*)
11073 if test "$host_cpu" = ia64; then
11074 # On IA64, the linker does run time linking by default, so we don't
11075 # have to do anything special.
11076 aix_use_runtimelinking=no
11077 exp_sym_flag='-Bexport'
11078 no_entry_flag=""
11079 else
11080 aix_use_runtimelinking=no
11081
11082 # Test if we are trying to use run time linking or normal
11083 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11084 # need to do runtime linking.
11085 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11086 for ld_flag in $LDFLAGS; do
11087 case $ld_flag in
11088 *-brtl*)
11089 aix_use_runtimelinking=yes
11090 break
11091 ;;
11092 esac
11093 done
11094 ;;
11095 esac
11096
11097 exp_sym_flag='-bexport'
11098 no_entry_flag='-bnoentry'
11099 fi
11100
11101 # When large executables or shared objects are built, AIX ld can
11102 # have problems creating the table of contents. If linking a library
11103 # or program results in "error TOC overflow" add -mminimal-toc to
11104 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11105 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11106
11107 archive_cmds_CXX=''
11108 hardcode_direct_CXX=yes
11109 hardcode_libdir_separator_CXX=':'
11110 link_all_deplibs_CXX=yes
11111
11112 if test "$GXX" = yes; then
11113 case $host_os in aix4.[012]|aix4.[012].*)
11114 # We only want to do this on AIX 4.2 and lower, the check
11115 # below for broken collect2 doesn't work under 4.3+
11116 collect2name=`${CC} -print-prog-name=collect2`
11117 if test -f "$collect2name" && \
11118 strings "$collect2name" | grep resolve_lib_name >/dev/null
11119 then
11120 # We have reworked collect2
11121 :
11122 else
11123 # We have old collect2
11124 hardcode_direct_CXX=unsupported
11125 # It fails to find uninstalled libraries when the uninstalled
11126 # path is not listed in the libpath. Setting hardcode_minus_L
11127 # to unsupported forces relinking
11128 hardcode_minus_L_CXX=yes
11129 hardcode_libdir_flag_spec_CXX='-L$libdir'
11130 hardcode_libdir_separator_CXX=
11131 fi
11132 ;;
11133 esac
11134 shared_flag='-shared'
11135 if test "$aix_use_runtimelinking" = yes; then
11136 shared_flag="$shared_flag "'${wl}-G'
11137 fi
11138 else
11139 # not using gcc
11140 if test "$host_cpu" = ia64; then
11141 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11142 # chokes on -Wl,-G. The following line is correct:
11143 shared_flag='-G'
11144 else
11145 if test "$aix_use_runtimelinking" = yes; then
11146 shared_flag='${wl}-G'
11147 else
11148 shared_flag='${wl}-bM:SRE'
11149 fi
11150 fi
11151 fi
11152
11153 # It seems that -bexpall does not export symbols beginning with
11154 # underscore (_), so it is better to generate a list of symbols to export.
11155 always_export_symbols_CXX=yes
11156 if test "$aix_use_runtimelinking" = yes; then
11157 # Warning - without using the other runtime loading flags (-brtl),
11158 # -berok will link without error, but may produce a broken library.
11159 allow_undefined_flag_CXX='-berok'
11160 # Determine the default libpath from the value encoded in an empty executable.
11161 cat >conftest.$ac_ext <<_ACEOF
11162/* confdefs.h. */
11163_ACEOF
11164cat confdefs.h >>conftest.$ac_ext
11165cat >>conftest.$ac_ext <<_ACEOF
11166/* end confdefs.h. */
11167
11168int
11169main ()
11170{
11171
11172 ;
11173 return 0;
11174}
11175_ACEOF
11176rm -f conftest.$ac_objext conftest$ac_exeext
11177if { (ac_try="$ac_link"
11178case "(($ac_try" in
11179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11180 *) ac_try_echo=$ac_try;;
11181esac
11182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11183 (eval "$ac_link") 2>conftest.er1
11184 ac_status=$?
11185 grep -v '^ *+' conftest.er1 >conftest.err
11186 rm -f conftest.er1
11187 cat conftest.err >&5
11188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11189 (exit $ac_status); } && {
11190 test -z "$ac_cxx_werror_flag" ||
11191 test ! -s conftest.err
11192 } && test -s conftest$ac_exeext &&
11193 $as_test_x conftest$ac_exeext; then
11194
11195lt_aix_libpath_sed='
11196 /Import File Strings/,/^$/ {
11197 /^0/ {
11198 s/^0 *\(.*\)$/\1/
11199 p
11200 }
11201 }'
11202aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11203# Check for a 64-bit object if we didn't find anything.
11204if test -z "$aix_libpath"; then
11205 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11206fi
11207else
11208 echo "$as_me: failed program was:" >&5
11209sed 's/^/| /' conftest.$ac_ext >&5
11210
11211
11212fi
11213
11214rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11215 conftest$ac_exeext conftest.$ac_ext
11216if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11217
11218 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11219
11220 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"
11221 else
11222 if test "$host_cpu" = ia64; then
11223 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11224 allow_undefined_flag_CXX="-z nodefs"
11225 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"
11226 else
11227 # Determine the default libpath from the value encoded in an empty executable.
11228 cat >conftest.$ac_ext <<_ACEOF
11229/* confdefs.h. */
11230_ACEOF
11231cat confdefs.h >>conftest.$ac_ext
11232cat >>conftest.$ac_ext <<_ACEOF
11233/* end confdefs.h. */
11234
11235int
11236main ()
11237{
11238
11239 ;
11240 return 0;
11241}
11242_ACEOF
11243rm -f conftest.$ac_objext conftest$ac_exeext
11244if { (ac_try="$ac_link"
11245case "(($ac_try" in
11246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11247 *) ac_try_echo=$ac_try;;
11248esac
11249eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11250 (eval "$ac_link") 2>conftest.er1
11251 ac_status=$?
11252 grep -v '^ *+' conftest.er1 >conftest.err
11253 rm -f conftest.er1
11254 cat conftest.err >&5
11255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11256 (exit $ac_status); } && {
11257 test -z "$ac_cxx_werror_flag" ||
11258 test ! -s conftest.err
11259 } && test -s conftest$ac_exeext &&
11260 $as_test_x conftest$ac_exeext; then
11261
11262lt_aix_libpath_sed='
11263 /Import File Strings/,/^$/ {
11264 /^0/ {
11265 s/^0 *\(.*\)$/\1/
11266 p
11267 }
11268 }'
11269aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11270# Check for a 64-bit object if we didn't find anything.
11271if test -z "$aix_libpath"; then
11272 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11273fi
11274else
11275 echo "$as_me: failed program was:" >&5
11276sed 's/^/| /' conftest.$ac_ext >&5
11277
11278
11279fi
11280
11281rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11282 conftest$ac_exeext conftest.$ac_ext
11283if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11284
11285 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11286 # Warning - without using the other run time loading flags,
11287 # -berok will link without error, but may produce a broken library.
11288 no_undefined_flag_CXX=' ${wl}-bernotok'
11289 allow_undefined_flag_CXX=' ${wl}-berok'
11290 # Exported symbols can be pulled into shared objects from archives
11291 whole_archive_flag_spec_CXX='$convenience'
11292 archive_cmds_need_lc_CXX=yes
11293 # This is similar to how AIX traditionally builds its shared libraries.
11294 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'
11295 fi
11296 fi
11297 ;;
11298
11299 beos*)
11300 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11301 allow_undefined_flag_CXX=unsupported
11302 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11303 # support --undefined. This deserves some investigation. FIXME
11304 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11305 else
11306 ld_shlibs_CXX=no
11307 fi
11308 ;;
11309
11310 chorus*)
11311 case $cc_basename in
11312 *)
11313 # FIXME: insert proper C++ library support
11314 ld_shlibs_CXX=no
11315 ;;
11316 esac
11317 ;;
11318
11319 cygwin* | mingw* | pw32*)
11320 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11321 # as there is no search path for DLLs.
11322 hardcode_libdir_flag_spec_CXX='-L$libdir'
11323 allow_undefined_flag_CXX=unsupported
11324 always_export_symbols_CXX=no
11325 enable_shared_with_static_runtimes_CXX=yes
11326
11327 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11328 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'
11329 # If the export-symbols file already is a .def file (1st line
11330 # is EXPORTS), use it as is; otherwise, prepend...
11331 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11332 cp $export_symbols $output_objdir/$soname.def;
11333 else
11334 echo EXPORTS > $output_objdir/$soname.def;
11335 cat $export_symbols >> $output_objdir/$soname.def;
11336 fi~
11337 $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'
11338 else
11339 ld_shlibs_CXX=no
11340 fi
11341 ;;
11342 darwin* | rhapsody*)
11343 archive_cmds_need_lc_CXX=no
11344 hardcode_direct_CXX=no
11345 hardcode_automatic_CXX=yes
11346 hardcode_shlibpath_var_CXX=unsupported
11347 whole_archive_flag_spec_CXX=''
11348 link_all_deplibs_CXX=yes
11349 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11350 if test "$GXX" = yes ; then
11351 output_verbose_link_cmd='echo'
11352 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}"
11353 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11354 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}"
11355 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}"
11356 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11357 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}"
11358 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}"
11359 fi
11360 else
11361 case $cc_basename in
11362 xlc*)
11363 output_verbose_link_cmd='echo'
11364 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'
11365 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11366 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11367 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}'
11368 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}'
11369 ;;
11370 *)
11371 ld_shlibs_CXX=no
11372 ;;
11373 esac
11374 fi
11375 ;;
11376
11377 dgux*)
11378 case $cc_basename in
11379 ec++*)
11380 # FIXME: insert proper C++ library support
11381 ld_shlibs_CXX=no
11382 ;;
11383 ghcx*)
11384 # Green Hills C++ Compiler
11385 # FIXME: insert proper C++ library support
11386 ld_shlibs_CXX=no
11387 ;;
11388 *)
11389 # FIXME: insert proper C++ library support
11390 ld_shlibs_CXX=no
11391 ;;
11392 esac
11393 ;;
11394 freebsd[12]*)
11395 # C++ shared libraries reported to be fairly broken before switch to ELF
11396 ld_shlibs_CXX=no
11397 ;;
11398 freebsd-elf*)
11399 archive_cmds_need_lc_CXX=no
11400 ;;
11401 freebsd* | dragonfly*)
11402 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11403 # conventions
11404 ld_shlibs_CXX=yes
11405 ;;
11406 gnu*)
11407 ;;
11408 hpux9*)
11409 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11410 hardcode_libdir_separator_CXX=:
11411 export_dynamic_flag_spec_CXX='${wl}-E'
11412 hardcode_direct_CXX=yes
11413 hardcode_minus_L_CXX=yes # Not in the search PATH,
11414 # but as the default
11415 # location of the library.
11416
11417 case $cc_basename in
11418 CC*)
11419 # FIXME: insert proper C++ library support
11420 ld_shlibs_CXX=no
11421 ;;
11422 aCC*)
11423 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'
11424 # Commands to make compiler produce verbose output that lists
11425 # what "hidden" libraries, object files and flags are used when
11426 # linking a shared library.
11427 #
11428 # There doesn't appear to be a way to prevent this compiler from
11429 # explicitly linking system object files so we need to strip them
11430 # from the output so that they don't get included in the library
11431 # dependencies.
11432 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'
11433 ;;
11434 *)
11435 if test "$GXX" = yes; then
11436 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'
11437 else
11438 # FIXME: insert proper C++ library support
11439 ld_shlibs_CXX=no
11440 fi
11441 ;;
11442 esac
11443 ;;
11444 hpux10*|hpux11*)
11445 if test $with_gnu_ld = no; then
11446 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11447 hardcode_libdir_separator_CXX=:
11448
11449 case $host_cpu in
11450 hppa*64*|ia64*) ;;
11451 *)
11452 export_dynamic_flag_spec_CXX='${wl}-E'
11453 ;;
11454 esac
11455 fi
11456 case $host_cpu in
11457 hppa*64*|ia64*)
11458 hardcode_direct_CXX=no
11459 hardcode_shlibpath_var_CXX=no
11460 ;;
11461 *)
11462 hardcode_direct_CXX=yes
11463 hardcode_minus_L_CXX=yes # Not in the search PATH,
11464 # but as the default
11465 # location of the library.
11466 ;;
11467 esac
11468
11469 case $cc_basename in
11470 CC*)
11471 # FIXME: insert proper C++ library support
11472 ld_shlibs_CXX=no
11473 ;;
11474 aCC*)
11475 case $host_cpu in
11476 hppa*64*)
11477 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11478 ;;
11479 ia64*)
11480 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11481 ;;
11482 *)
11483 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11484 ;;
11485 esac
11486 # Commands to make compiler produce verbose output that lists
11487 # what "hidden" libraries, object files and flags are used when
11488 # linking a shared library.
11489 #
11490 # There doesn't appear to be a way to prevent this compiler from
11491 # explicitly linking system object files so we need to strip them
11492 # from the output so that they don't get included in the library
11493 # dependencies.
11494 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'
11495 ;;
11496 *)
11497 if test "$GXX" = yes; then
11498 if test $with_gnu_ld = no; then
11499 case $host_cpu in
11500 hppa*64*)
11501 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11502 ;;
11503 ia64*)
11504 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11505 ;;
11506 *)
11507 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'
11508 ;;
11509 esac
11510 fi
11511 else
11512 # FIXME: insert proper C++ library support
11513 ld_shlibs_CXX=no
11514 fi
11515 ;;
11516 esac
11517 ;;
11518 interix[3-9]*)
11519 hardcode_direct_CXX=no
11520 hardcode_shlibpath_var_CXX=no
11521 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11522 export_dynamic_flag_spec_CXX='${wl}-E'
11523 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11524 # Instead, shared libraries are loaded at an image base (0x10000000 by
11525 # default) and relocated if they conflict, which is a slow very memory
11526 # consuming and fragmenting process. To avoid this, we pick a random,
11527 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11528 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11529 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'
11530 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'
11531 ;;
11532 irix5* | irix6*)
11533 case $cc_basename in
11534 CC*)
11535 # SGI C++
11536 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'
11537
11538 # Archives containing C++ object files must be created using
11539 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11540 # necessary to make sure instantiated templates are included
11541 # in the archive.
11542 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11543 ;;
11544 *)
11545 if test "$GXX" = yes; then
11546 if test "$with_gnu_ld" = no; then
11547 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'
11548 else
11549 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'
11550 fi
11551 fi
11552 link_all_deplibs_CXX=yes
11553 ;;
11554 esac
11555 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11556 hardcode_libdir_separator_CXX=:
11557 ;;
11558 linux* | k*bsd*-gnu)
11559 case $cc_basename in
11560 KCC*)
11561 # Kuck and Associates, Inc. (KAI) C++ Compiler
11562
11563 # KCC will only create a shared library if the output file
11564 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11565 # to its proper name (with version) after linking.
11566 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'
11567 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'
11568 # Commands to make compiler produce verbose output that lists
11569 # what "hidden" libraries, object files and flags are used when
11570 # linking a shared library.
11571 #
11572 # There doesn't appear to be a way to prevent this compiler from
11573 # explicitly linking system object files so we need to strip them
11574 # from the output so that they don't get included in the library
11575 # dependencies.
11576 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'
11577
11578 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11579 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11580
11581 # Archives containing C++ object files must be created using
11582 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11583 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11584 ;;
11585 icpc*)
11586 # Intel C++
11587 with_gnu_ld=yes
11588 # version 8.0 and above of icpc choke on multiply defined symbols
11589 # if we add $predep_objects and $postdep_objects, however 7.1 and
11590 # earlier do not add the objects themselves.
11591 case `$CC -V 2>&1` in
11592 *"Version 7."*)
11593 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11594 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'
11595 ;;
11596 *) # Version 8.0 or newer
11597 tmp_idyn=
11598 case $host_cpu in
11599 ia64*) tmp_idyn=' -i_dynamic';;
11600 esac
11601 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11602 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'
11603 ;;
11604 esac
11605 archive_cmds_need_lc_CXX=no
11606 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11607 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11608 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11609 ;;
11610 pgCC* | pgcpp*)
11611 # Portland Group C++ compiler
11612 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11613 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'
11614
11615 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11616 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11617 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'
11618 ;;
11619 cxx*)
11620 # Compaq C++
11621 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11622 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'
11623
11624 runpath_var=LD_RUN_PATH
11625 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11626 hardcode_libdir_separator_CXX=:
11627
11628 # Commands to make compiler produce verbose output that lists
11629 # what "hidden" libraries, object files and flags are used when
11630 # linking a shared library.
11631 #
11632 # There doesn't appear to be a way to prevent this compiler from
11633 # explicitly linking system object files so we need to strip them
11634 # from the output so that they don't get included in the library
11635 # dependencies.
11636 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'
11637 ;;
11638 *)
11639 case `$CC -V 2>&1 | sed 5q` in
11640 *Sun\ C*)
11641 # Sun C++ 5.9
11642 no_undefined_flag_CXX=' -zdefs'
11643 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11644 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'
11645 hardcode_libdir_flag_spec_CXX='-R$libdir'
11646 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'
11647
11648 # Not sure whether something based on
11649 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11650 # would be better.
11651 output_verbose_link_cmd='echo'
11652
11653 # Archives containing C++ object files must be created using
11654 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11655 # necessary to make sure instantiated templates are included
11656 # in the archive.
11657 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11658 ;;
11659 esac
11660 ;;
11661 esac
11662 ;;
11663 lynxos*)
11664 # FIXME: insert proper C++ library support
11665 ld_shlibs_CXX=no
11666 ;;
11667 m88k*)
11668 # FIXME: insert proper C++ library support
11669 ld_shlibs_CXX=no
11670 ;;
11671 mvs*)
11672 case $cc_basename in
11673 cxx*)
11674 # FIXME: insert proper C++ library support
11675 ld_shlibs_CXX=no
11676 ;;
11677 *)
11678 # FIXME: insert proper C++ library support
11679 ld_shlibs_CXX=no
11680 ;;
11681 esac
11682 ;;
11683 netbsd* | netbsdelf*-gnu)
11684 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11685 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11686 wlarc=
11687 hardcode_libdir_flag_spec_CXX='-R$libdir'
11688 hardcode_direct_CXX=yes
11689 hardcode_shlibpath_var_CXX=no
11690 fi
11691 # Workaround some broken pre-1.5 toolchains
11692 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11693 ;;
11694 openbsd2*)
11695 # C++ shared libraries are fairly broken
11696 ld_shlibs_CXX=no
11697 ;;
11698 openbsd*)
11699 if test -f /usr/libexec/ld.so; then
11700 hardcode_direct_CXX=yes
11701 hardcode_shlibpath_var_CXX=no
11702 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11703 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11704 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11705 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11706 export_dynamic_flag_spec_CXX='${wl}-E'
11707 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11708 fi
11709 output_verbose_link_cmd='echo'
11710 else
11711 ld_shlibs_CXX=no
11712 fi
11713 ;;
11714 osf3*)
11715 case $cc_basename in
11716 KCC*)
11717 # Kuck and Associates, Inc. (KAI) C++ Compiler
11718
11719 # KCC will only create a shared library if the output file
11720 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11721 # to its proper name (with version) after linking.
11722 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'
11723
11724 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11725 hardcode_libdir_separator_CXX=:
11726
11727 # Archives containing C++ object files must be created using
11728 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11729 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11730
11731 ;;
11732 RCC*)
11733 # Rational C++ 2.4.1
11734 # FIXME: insert proper C++ library support
11735 ld_shlibs_CXX=no
11736 ;;
11737 cxx*)
11738 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11739 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'
11740
11741 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11742 hardcode_libdir_separator_CXX=:
11743
11744 # Commands to make compiler produce verbose output that lists
11745 # what "hidden" libraries, object files and flags are used when
11746 # linking a shared library.
11747 #
11748 # There doesn't appear to be a way to prevent this compiler from
11749 # explicitly linking system object files so we need to strip them
11750 # from the output so that they don't get included in the library
11751 # dependencies.
11752 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'
11753 ;;
11754 *)
11755 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11756 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11757 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'
11758
11759 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11760 hardcode_libdir_separator_CXX=:
11761
11762 # Commands to make compiler produce verbose output that lists
11763 # what "hidden" libraries, object files and flags are used when
11764 # linking a shared library.
11765 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11766
11767 else
11768 # FIXME: insert proper C++ library support
11769 ld_shlibs_CXX=no
11770 fi
11771 ;;
11772 esac
11773 ;;
11774 osf4* | osf5*)
11775 case $cc_basename in
11776 KCC*)
11777 # Kuck and Associates, Inc. (KAI) C++ Compiler
11778
11779 # KCC will only create a shared library if the output file
11780 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11781 # to its proper name (with version) after linking.
11782 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'
11783
11784 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11785 hardcode_libdir_separator_CXX=:
11786
11787 # Archives containing C++ object files must be created using
11788 # the KAI C++ compiler.
11789 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11790 ;;
11791 RCC*)
11792 # Rational C++ 2.4.1
11793 # FIXME: insert proper C++ library support
11794 ld_shlibs_CXX=no
11795 ;;
11796 cxx*)
11797 allow_undefined_flag_CXX=' -expect_unresolved \*'
11798 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'
11799 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11800 echo "-hidden">> $lib.exp~
11801 $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~
11802 $rm $lib.exp'
11803
11804 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11805 hardcode_libdir_separator_CXX=:
11806
11807 # Commands to make compiler produce verbose output that lists
11808 # what "hidden" libraries, object files and flags are used when
11809 # linking a shared library.
11810 #
11811 # There doesn't appear to be a way to prevent this compiler from
11812 # explicitly linking system object files so we need to strip them
11813 # from the output so that they don't get included in the library
11814 # dependencies.
11815 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'
11816 ;;
11817 *)
11818 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11819 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11820 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'
11821
11822 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11823 hardcode_libdir_separator_CXX=:
11824
11825 # Commands to make compiler produce verbose output that lists
11826 # what "hidden" libraries, object files and flags are used when
11827 # linking a shared library.
11828 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11829
11830 else
11831 # FIXME: insert proper C++ library support
11832 ld_shlibs_CXX=no
11833 fi
11834 ;;
11835 esac
11836 ;;
11837 psos*)
11838 # FIXME: insert proper C++ library support
11839 ld_shlibs_CXX=no
11840 ;;
11841 sunos4*)
11842 case $cc_basename in
11843 CC*)
11844 # Sun C++ 4.x
11845 # FIXME: insert proper C++ library support
11846 ld_shlibs_CXX=no
11847 ;;
11848 lcc*)
11849 # Lucid
11850 # FIXME: insert proper C++ library support
11851 ld_shlibs_CXX=no
11852 ;;
11853 *)
11854 # FIXME: insert proper C++ library support
11855 ld_shlibs_CXX=no
11856 ;;
11857 esac
11858 ;;
11859 solaris*)
11860 case $cc_basename in
11861 CC*)
11862 # Sun C++ 4.2, 5.x and Centerline C++
11863 archive_cmds_need_lc_CXX=yes
11864 no_undefined_flag_CXX=' -zdefs'
11865 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11866 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11867 $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'
11868
11869 hardcode_libdir_flag_spec_CXX='-R$libdir'
11870 hardcode_shlibpath_var_CXX=no
11871 case $host_os in
11872 solaris2.[0-5] | solaris2.[0-5].*) ;;
11873 *)
11874 # The compiler driver will combine and reorder linker options,
11875 # but understands `-z linker_flag'.
11876 # Supported since Solaris 2.6 (maybe 2.5.1?)
11877 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
11878 ;;
11879 esac
11880 link_all_deplibs_CXX=yes
11881
11882 output_verbose_link_cmd='echo'
11883
11884 # Archives containing C++ object files must be created using
11885 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11886 # necessary to make sure instantiated templates are included
11887 # in the archive.
11888 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11889 ;;
11890 gcx*)
11891 # Green Hills C++ Compiler
11892 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11893
11894 # The C++ compiler must be used to create the archive.
11895 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11896 ;;
11897 *)
11898 # GNU C++ compiler with Solaris linker
11899 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11900 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11901 if $CC --version | grep -v '^2\.7' > /dev/null; then
11902 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11903 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11904 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11905
11906 # Commands to make compiler produce verbose output that lists
11907 # what "hidden" libraries, object files and flags are used when
11908 # linking a shared library.
11909 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11910 else
11911 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11912 # platform.
11913 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11914 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11915 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11916
11917 # Commands to make compiler produce verbose output that lists
11918 # what "hidden" libraries, object files and flags are used when
11919 # linking a shared library.
11920 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11921 fi
11922
11923 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11924 case $host_os in
11925 solaris2.[0-5] | solaris2.[0-5].*) ;;
11926 *)
11927 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11928 ;;
11929 esac
11930 fi
11931 ;;
11932 esac
11933 ;;
11934 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11935 no_undefined_flag_CXX='${wl}-z,text'
11936 archive_cmds_need_lc_CXX=no
11937 hardcode_shlibpath_var_CXX=no
11938 runpath_var='LD_RUN_PATH'
11939
11940 case $cc_basename in
11941 CC*)
11942 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11943 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11944 ;;
11945 *)
11946 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11947 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11948 ;;
11949 esac
11950 ;;
11951 sysv5* | sco3.2v5* | sco5v6*)
11952 # Note: We can NOT use -z defs as we might desire, because we do not
11953 # link with -lc, and that would cause any symbols used from libc to
11954 # always be unresolved, which means just about no library would
11955 # ever link correctly. If we're not using GNU ld we use -z text
11956 # though, which does catch some bad symbols but isn't as heavy-handed
11957 # as -z defs.
11958 # For security reasons, it is highly recommended that you always
11959 # use absolute paths for naming shared libraries, and exclude the
11960 # DT_RUNPATH tag from executables and libraries. But doing so
11961 # requires that you compile everything twice, which is a pain.
11962 # So that behaviour is only enabled if SCOABSPATH is set to a
11963 # non-empty value in the environment. Most likely only useful for
11964 # creating official distributions of packages.
11965 # This is a hack until libtool officially supports absolute path
11966 # names for shared libraries.
11967 no_undefined_flag_CXX='${wl}-z,text'
11968 allow_undefined_flag_CXX='${wl}-z,nodefs'
11969 archive_cmds_need_lc_CXX=no
11970 hardcode_shlibpath_var_CXX=no
11971 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11972 hardcode_libdir_separator_CXX=':'
11973 link_all_deplibs_CXX=yes
11974 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11975 runpath_var='LD_RUN_PATH'
11976
11977 case $cc_basename in
11978 CC*)
11979 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11980 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11981 ;;
11982 *)
11983 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11984 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11985 ;;
11986 esac
11987 ;;
11988 tandem*)
11989 case $cc_basename in
11990 NCC*)
11991 # NonStop-UX NCC 3.20
11992 # FIXME: insert proper C++ library support
11993 ld_shlibs_CXX=no
11994 ;;
11995 *)
11996 # FIXME: insert proper C++ library support
11997 ld_shlibs_CXX=no
11998 ;;
11999 esac
12000 ;;
12001 vxworks*)
12002 # FIXME: insert proper C++ library support
12003 ld_shlibs_CXX=no
12004 ;;
12005 *)
12006 # FIXME: insert proper C++ library support
12007 ld_shlibs_CXX=no
12008 ;;
12009esac
12010{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12011echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12012test "$ld_shlibs_CXX" = no && can_build_shared=no
12013
12014GCC_CXX="$GXX"
12015LD_CXX="$LD"
12016
12017cat > conftest.$ac_ext <<EOF
12018class Foo
12019{
12020public:
12021 Foo (void) { a = 0; }
12022private:
12023 int a;
12024};
12025EOF
12026
12027if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12028 (eval $ac_compile) 2>&5
12029 ac_status=$?
12030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12031 (exit $ac_status); }; then
12032 # Parse the compiler output and extract the necessary
12033 # objects, libraries and library flags.
12034
12035 # Sentinel used to keep track of whether or not we are before
12036 # the conftest object file.
12037 pre_test_object_deps_done=no
12038
12039 # The `*' in the case matches for architectures that use `case' in
12040 # $output_verbose_cmd can trigger glob expansion during the loop
12041 # eval without this substitution.
12042 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12043
12044 for p in `eval $output_verbose_link_cmd`; do
12045 case $p in
12046
12047 -L* | -R* | -l*)
12048 # Some compilers place space between "-{L,R}" and the path.
12049 # Remove the space.
12050 if test $p = "-L" \
12051 || test $p = "-R"; then
12052 prev=$p
12053 continue
12054 else
12055 prev=
12056 fi
12057
12058 if test "$pre_test_object_deps_done" = no; then
12059 case $p in
12060 -L* | -R*)
12061 # Internal compiler library paths should come after those
12062 # provided the user. The postdeps already come after the
12063 # user supplied libs so there is no need to process them.
12064 if test -z "$compiler_lib_search_path_CXX"; then
12065 compiler_lib_search_path_CXX="${prev}${p}"
12066 else
12067 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12068 fi
12069 ;;
12070 # The "-l" case would never come before the object being
12071 # linked, so don't bother handling this case.
12072 esac
12073 else
12074 if test -z "$postdeps_CXX"; then
12075 postdeps_CXX="${prev}${p}"
12076 else
12077 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12078 fi
12079 fi
12080 ;;
12081
12082 *.$objext)
12083 # This assumes that the test object file only shows up
12084 # once in the compiler output.
12085 if test "$p" = "conftest.$objext"; then
12086 pre_test_object_deps_done=yes
12087 continue
12088 fi
12089
12090 if test "$pre_test_object_deps_done" = no; then
12091 if test -z "$predep_objects_CXX"; then
12092 predep_objects_CXX="$p"
12093 else
12094 predep_objects_CXX="$predep_objects_CXX $p"
12095 fi
12096 else
12097 if test -z "$postdep_objects_CXX"; then
12098 postdep_objects_CXX="$p"
12099 else
12100 postdep_objects_CXX="$postdep_objects_CXX $p"
12101 fi
12102 fi
12103 ;;
12104
12105 *) ;; # Ignore the rest.
12106
12107 esac
12108 done
12109
12110 # Clean up.
12111 rm -f a.out a.exe
12112else
12113 echo "libtool.m4: error: problem compiling CXX test program"
12114fi
12115
12116$rm -f confest.$objext
12117
12118compiler_lib_search_dirs_CXX=
12119if test -n "$compiler_lib_search_path_CXX"; then
12120 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12121fi
12122
12123# PORTME: override above test on systems where it is broken
12124case $host_os in
12125interix[3-9]*)
12126 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12127 # hack all around it, let's just trust "g++" to DTRT.
12128 predep_objects_CXX=
12129 postdep_objects_CXX=
12130 postdeps_CXX=
12131 ;;
12132
12133linux*)
12134 case `$CC -V 2>&1 | sed 5q` in
12135 *Sun\ C*)
12136 # Sun C++ 5.9
12137 #
12138 # The more standards-conforming stlport4 library is
12139 # incompatible with the Cstd library. Avoid specifying
12140 # it if it's in CXXFLAGS. Ignore libCrun as
12141 # -library=stlport4 depends on it.
12142 case " $CXX $CXXFLAGS " in
12143 *" -library=stlport4 "*)
12144 solaris_use_stlport4=yes
12145 ;;
12146 esac
12147 if test "$solaris_use_stlport4" != yes; then
12148 postdeps_CXX='-library=Cstd -library=Crun'
12149 fi
12150 ;;
12151 esac
12152 ;;
12153
12154solaris*)
12155 case $cc_basename in
12156 CC*)
12157 # The more standards-conforming stlport4 library is
12158 # incompatible with the Cstd library. Avoid specifying
12159 # it if it's in CXXFLAGS. Ignore libCrun as
12160 # -library=stlport4 depends on it.
12161 case " $CXX $CXXFLAGS " in
12162 *" -library=stlport4 "*)
12163 solaris_use_stlport4=yes
12164 ;;
12165 esac
12166
12167 # Adding this requires a known-good setup of shared libraries for
12168 # Sun compiler versions before 5.6, else PIC objects from an old
12169 # archive will be linked into the output, leading to subtle bugs.
12170 if test "$solaris_use_stlport4" != yes; then
12171 postdeps_CXX='-library=Cstd -library=Crun'
12172 fi
12173 ;;
12174 esac
12175 ;;
12176esac
12177
12178case " $postdeps_CXX " in
12179*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12180esac
12181
12182lt_prog_compiler_wl_CXX=
12183lt_prog_compiler_pic_CXX=
12184lt_prog_compiler_static_CXX=
12185
12186{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12187echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12188
12189 # C++ specific cases for pic, static, wl, etc.
12190 if test "$GXX" = yes; then
12191 lt_prog_compiler_wl_CXX='-Wl,'
12192 lt_prog_compiler_static_CXX='-static'
12193
12194 case $host_os in
12195 aix*)
12196 # All AIX code is PIC.
12197 if test "$host_cpu" = ia64; then
12198 # AIX 5 now supports IA64 processor
12199 lt_prog_compiler_static_CXX='-Bstatic'
12200 fi
12201 ;;
12202 amigaos*)
12203 # FIXME: we need at least 68020 code to build shared libraries, but
12204 # adding the `-m68020' flag to GCC prevents building anything better,
12205 # like `-m68040'.
12206 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12207 ;;
12208 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12209 # PIC is the default for these OSes.
12210 ;;
12211 mingw* | cygwin* | os2* | pw32*)
12212 # This hack is so that the source file can tell whether it is being
12213 # built for inclusion in a dll (and should export symbols for example).
12214 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12215 # (--disable-auto-import) libraries
12216 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12217 ;;
12218 darwin* | rhapsody*)
12219 # PIC is the default on this platform
12220 # Common symbols not allowed in MH_DYLIB files
12221 lt_prog_compiler_pic_CXX='-fno-common'
12222 ;;
12223 *djgpp*)
12224 # DJGPP does not support shared libraries at all
12225 lt_prog_compiler_pic_CXX=
12226 ;;
12227 interix[3-9]*)
12228 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12229 # Instead, we relocate shared libraries at runtime.
12230 ;;
12231 sysv4*MP*)
12232 if test -d /usr/nec; then
12233 lt_prog_compiler_pic_CXX=-Kconform_pic
12234 fi
12235 ;;
12236 hpux*)
12237 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12238 # not for PA HP-UX.
12239 case $host_cpu in
12240 hppa*64*|ia64*)
12241 ;;
12242 *)
12243 lt_prog_compiler_pic_CXX='-fPIC'
12244 ;;
12245 esac
12246 ;;
12247 *)
12248 lt_prog_compiler_pic_CXX='-fPIC'
12249 ;;
12250 esac
12251 else
12252 case $host_os in
12253 aix[4-9]*)
12254 # All AIX code is PIC.
12255 if test "$host_cpu" = ia64; then
12256 # AIX 5 now supports IA64 processor
12257 lt_prog_compiler_static_CXX='-Bstatic'
12258 else
12259 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12260 fi
12261 ;;
12262 chorus*)
12263 case $cc_basename in
12264 cxch68*)
12265 # Green Hills C++ Compiler
12266 # _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"
12267 ;;
12268 esac
12269 ;;
12270 darwin*)
12271 # PIC is the default on this platform
12272 # Common symbols not allowed in MH_DYLIB files
12273 case $cc_basename in
12274 xlc*)
12275 lt_prog_compiler_pic_CXX='-qnocommon'
12276 lt_prog_compiler_wl_CXX='-Wl,'
12277 ;;
12278 esac
12279 ;;
12280 dgux*)
12281 case $cc_basename in
12282 ec++*)
12283 lt_prog_compiler_pic_CXX='-KPIC'
12284 ;;
12285 ghcx*)
12286 # Green Hills C++ Compiler
12287 lt_prog_compiler_pic_CXX='-pic'
12288 ;;
12289 *)
12290 ;;
12291 esac
12292 ;;
12293 freebsd* | dragonfly*)
12294 # FreeBSD uses GNU C++
12295 ;;
12296 hpux9* | hpux10* | hpux11*)
12297 case $cc_basename in
12298 CC*)
12299 lt_prog_compiler_wl_CXX='-Wl,'
12300 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12301 if test "$host_cpu" != ia64; then
12302 lt_prog_compiler_pic_CXX='+Z'
12303 fi
12304 ;;
12305 aCC*)
12306 lt_prog_compiler_wl_CXX='-Wl,'
12307 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12308 case $host_cpu in
12309 hppa*64*|ia64*)
12310 # +Z the default
12311 ;;
12312 *)
12313 lt_prog_compiler_pic_CXX='+Z'
12314 ;;
12315 esac
12316 ;;
12317 *)
12318 ;;
12319 esac
12320 ;;
12321 interix*)
12322 # This is c89, which is MS Visual C++ (no shared libs)
12323 # Anyone wants to do a port?
12324 ;;
12325 irix5* | irix6* | nonstopux*)
12326 case $cc_basename in
12327 CC*)
12328 lt_prog_compiler_wl_CXX='-Wl,'
12329 lt_prog_compiler_static_CXX='-non_shared'
12330 # CC pic flag -KPIC is the default.
12331 ;;
12332 *)
12333 ;;
12334 esac
12335 ;;
12336 linux* | k*bsd*-gnu)
12337 case $cc_basename in
12338 KCC*)
12339 # KAI C++ Compiler
12340 lt_prog_compiler_wl_CXX='--backend -Wl,'
12341 lt_prog_compiler_pic_CXX='-fPIC'
12342 ;;
12343 icpc* | ecpc*)
12344 # Intel C++
12345 lt_prog_compiler_wl_CXX='-Wl,'
12346 lt_prog_compiler_pic_CXX='-KPIC'
12347 lt_prog_compiler_static_CXX='-static'
12348 ;;
12349 pgCC* | pgcpp*)
12350 # Portland Group C++ compiler.
12351 lt_prog_compiler_wl_CXX='-Wl,'
12352 lt_prog_compiler_pic_CXX='-fpic'
12353 lt_prog_compiler_static_CXX='-Bstatic'
12354 ;;
12355 cxx*)
12356 # Compaq C++
12357 # Make sure the PIC flag is empty. It appears that all Alpha
12358 # Linux and Compaq Tru64 Unix objects are PIC.
12359 lt_prog_compiler_pic_CXX=
12360 lt_prog_compiler_static_CXX='-non_shared'
12361 ;;
12362 *)
12363 case `$CC -V 2>&1 | sed 5q` in
12364 *Sun\ C*)
12365 # Sun C++ 5.9
12366 lt_prog_compiler_pic_CXX='-KPIC'
12367 lt_prog_compiler_static_CXX='-Bstatic'
12368 lt_prog_compiler_wl_CXX='-Qoption ld '
12369 ;;
12370 esac
12371 ;;
12372 esac
12373 ;;
12374 lynxos*)
12375 ;;
12376 m88k*)
12377 ;;
12378 mvs*)
12379 case $cc_basename in
12380 cxx*)
12381 lt_prog_compiler_pic_CXX='-W c,exportall'
12382 ;;
12383 *)
12384 ;;
12385 esac
12386 ;;
12387 netbsd* | netbsdelf*-gnu)
12388 ;;
12389 osf3* | osf4* | osf5*)
12390 case $cc_basename in
12391 KCC*)
12392 lt_prog_compiler_wl_CXX='--backend -Wl,'
12393 ;;
12394 RCC*)
12395 # Rational C++ 2.4.1
12396 lt_prog_compiler_pic_CXX='-pic'
12397 ;;
12398 cxx*)
12399 # Digital/Compaq C++
12400 lt_prog_compiler_wl_CXX='-Wl,'
12401 # Make sure the PIC flag is empty. It appears that all Alpha
12402 # Linux and Compaq Tru64 Unix objects are PIC.
12403 lt_prog_compiler_pic_CXX=
12404 lt_prog_compiler_static_CXX='-non_shared'
12405 ;;
12406 *)
12407 ;;
12408 esac
12409 ;;
12410 psos*)
12411 ;;
12412 solaris*)
12413 case $cc_basename in
12414 CC*)
12415 # Sun C++ 4.2, 5.x and Centerline C++
12416 lt_prog_compiler_pic_CXX='-KPIC'
12417 lt_prog_compiler_static_CXX='-Bstatic'
12418 lt_prog_compiler_wl_CXX='-Qoption ld '
12419 ;;
12420 gcx*)
12421 # Green Hills C++ Compiler
12422 lt_prog_compiler_pic_CXX='-PIC'
12423 ;;
12424 *)
12425 ;;
12426 esac
12427 ;;
12428 sunos4*)
12429 case $cc_basename in
12430 CC*)
12431 # Sun C++ 4.x
12432 lt_prog_compiler_pic_CXX='-pic'
12433 lt_prog_compiler_static_CXX='-Bstatic'
12434 ;;
12435 lcc*)
12436 # Lucid
12437 lt_prog_compiler_pic_CXX='-pic'
12438 ;;
12439 *)
12440 ;;
12441 esac
12442 ;;
12443 tandem*)
12444 case $cc_basename in
12445 NCC*)
12446 # NonStop-UX NCC 3.20
12447 lt_prog_compiler_pic_CXX='-KPIC'
12448 ;;
12449 *)
12450 ;;
12451 esac
12452 ;;
12453 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12454 case $cc_basename in
12455 CC*)
12456 lt_prog_compiler_wl_CXX='-Wl,'
12457 lt_prog_compiler_pic_CXX='-KPIC'
12458 lt_prog_compiler_static_CXX='-Bstatic'
12459 ;;
12460 esac
12461 ;;
12462 vxworks*)
12463 ;;
12464 *)
12465 lt_prog_compiler_can_build_shared_CXX=no
12466 ;;
12467 esac
12468 fi
12469
12470{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12471echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12472
12473#
12474# Check to make sure the PIC flag actually works.
12475#
12476if test -n "$lt_prog_compiler_pic_CXX"; then
12477
12478{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12479echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12480if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
12481 echo $ECHO_N "(cached) $ECHO_C" >&6
12482else
12483 lt_cv_prog_compiler_pic_works_CXX=no
12484 ac_outfile=conftest.$ac_objext
12485 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12486 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12487 # Insert the option either (1) after the last *FLAGS variable, or
12488 # (2) before a word containing "conftest.", or (3) at the end.
12489 # Note that $ac_compile itself does not contain backslashes and begins
12490 # with a dollar sign (not a hyphen), so the echo should work correctly.
12491 # The option is referenced via a variable to avoid confusing sed.
12492 lt_compile=`echo "$ac_compile" | $SED \
12493 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12494 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12495 -e 's:$: $lt_compiler_flag:'`
12496 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
12497 (eval "$lt_compile" 2>conftest.err)
12498 ac_status=$?
12499 cat conftest.err >&5
12500 echo "$as_me:__oline__: \$? = $ac_status" >&5
12501 if (exit $ac_status) && test -s "$ac_outfile"; then
12502 # The compiler can only warn and ignore the option if not recognized
12503 # So say no if there are warnings other than the usual output.
12504 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12505 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12506 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12507 lt_cv_prog_compiler_pic_works_CXX=yes
12508 fi
12509 fi
12510 $rm conftest*
12511
12512fi
12513{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12514echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12515
12516if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12517 case $lt_prog_compiler_pic_CXX in
12518 "" | " "*) ;;
12519 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12520 esac
12521else
12522 lt_prog_compiler_pic_CXX=
12523 lt_prog_compiler_can_build_shared_CXX=no
12524fi
12525
12526fi
12527case $host_os in
12528 # For platforms which do not support PIC, -DPIC is meaningless:
12529 *djgpp*)
12530 lt_prog_compiler_pic_CXX=
12531 ;;
12532 *)
12533 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12534 ;;
12535esac
12536
12537#
12538# Check to make sure the static flag actually works.
12539#
12540wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12541{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12542echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12543if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
12544 echo $ECHO_N "(cached) $ECHO_C" >&6
12545else
12546 lt_cv_prog_compiler_static_works_CXX=no
12547 save_LDFLAGS="$LDFLAGS"
12548 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12549 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12550 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12551 # The linker can only warn and ignore the option if not recognized
12552 # So say no if there are warnings
12553 if test -s conftest.err; then
12554 # Append any errors to the config.log.
12555 cat conftest.err 1>&5
12556 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12557 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12558 if diff conftest.exp conftest.er2 >/dev/null; then
12559 lt_cv_prog_compiler_static_works_CXX=yes
12560 fi
12561 else
12562 lt_cv_prog_compiler_static_works_CXX=yes
12563 fi
12564 fi
12565 $rm -r conftest*
12566 LDFLAGS="$save_LDFLAGS"
12567
12568fi
12569{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
12570echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
12571
12572if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
12573 :
12574else
12575 lt_prog_compiler_static_CXX=
12576fi
12577
12578
12579{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12580echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12581if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12582 echo $ECHO_N "(cached) $ECHO_C" >&6
12583else
12584 lt_cv_prog_compiler_c_o_CXX=no
12585 $rm -r conftest 2>/dev/null
12586 mkdir conftest
12587 cd conftest
12588 mkdir out
12589 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12590
12591 lt_compiler_flag="-o out/conftest2.$ac_objext"
12592 # Insert the option either (1) after the last *FLAGS variable, or
12593 # (2) before a word containing "conftest.", or (3) at the end.
12594 # Note that $ac_compile itself does not contain backslashes and begins
12595 # with a dollar sign (not a hyphen), so the echo should work correctly.
12596 lt_compile=`echo "$ac_compile" | $SED \
12597 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12598 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12599 -e 's:$: $lt_compiler_flag:'`
12600 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
12601 (eval "$lt_compile" 2>out/conftest.err)
12602 ac_status=$?
12603 cat out/conftest.err >&5
12604 echo "$as_me:__oline__: \$? = $ac_status" >&5
12605 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12606 then
12607 # The compiler can only warn and ignore the option if not recognized
12608 # So say no if there are warnings
12609 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12610 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12611 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12612 lt_cv_prog_compiler_c_o_CXX=yes
12613 fi
12614 fi
12615 chmod u+w . 2>&5
12616 $rm conftest*
12617 # SGI C++ compiler will create directory out/ii_files/ for
12618 # template instantiation
12619 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12620 $rm out/* && rmdir out
12621 cd ..
12622 rmdir conftest
12623 $rm conftest*
12624
12625fi
12626{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12627echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12628
12629
12630hard_links="nottested"
12631if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12632 # do not overwrite the value of need_locks provided by the user
12633 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12634echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12635 hard_links=yes
12636 $rm conftest*
12637 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12638 touch conftest.a
12639 ln conftest.a conftest.b 2>&5 || hard_links=no
12640 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12641 { echo "$as_me:$LINENO: result: $hard_links" >&5
12642echo "${ECHO_T}$hard_links" >&6; }
12643 if test "$hard_links" = no; then
12644 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12645echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12646 need_locks=warn
12647 fi
12648else
12649 need_locks=no
12650fi
12651
12652{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12653echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12654
12655 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12656 case $host_os in
12657 aix[4-9]*)
12658 # If we're using GNU nm, then we don't want the "-C" option.
12659 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12660 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12661 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'
12662 else
12663 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'
12664 fi
12665 ;;
12666 pw32*)
12667 export_symbols_cmds_CXX="$ltdll_cmds"
12668 ;;
12669 cygwin* | mingw*)
12670 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'
12671 ;;
12672 linux* | k*bsd*-gnu)
12673 link_all_deplibs_CXX=no
12674 ;;
12675 *)
12676 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12677 ;;
12678 esac
12679 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12680
12681{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12682echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12683test "$ld_shlibs_CXX" = no && can_build_shared=no
12684
12685#
12686# Do we need to explicitly link libc?
12687#
12688case "x$archive_cmds_need_lc_CXX" in
12689x|xyes)
12690 # Assume -lc should be added
12691 archive_cmds_need_lc_CXX=yes
12692
12693 if test "$enable_shared" = yes && test "$GCC" = yes; then
12694 case $archive_cmds_CXX in
12695 *'~'*)
12696 # FIXME: we may have to deal with multi-command sequences.
12697 ;;
12698 '$CC '*)
12699 # Test whether the compiler implicitly links with -lc since on some
12700 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12701 # to ld, don't add -lc before -lgcc.
12702 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12703echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12704 $rm conftest*
12705 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12706
12707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12708 (eval $ac_compile) 2>&5
12709 ac_status=$?
12710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12711 (exit $ac_status); } 2>conftest.err; then
12712 soname=conftest
12713 lib=conftest
12714 libobjs=conftest.$ac_objext
12715 deplibs=
12716 wl=$lt_prog_compiler_wl_CXX
12717 pic_flag=$lt_prog_compiler_pic_CXX
12718 compiler_flags=-v
12719 linker_flags=-v
12720 verstring=
12721 output_objdir=.
12722 libname=conftest
12723 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12724 allow_undefined_flag_CXX=
12725 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12726 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12727 ac_status=$?
12728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12729 (exit $ac_status); }
12730 then
12731 archive_cmds_need_lc_CXX=no
12732 else
12733 archive_cmds_need_lc_CXX=yes
12734 fi
12735 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12736 else
12737 cat conftest.err 1>&5
12738 fi
12739 $rm conftest*
12740 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12741echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12742 ;;
12743 esac
12744 fi
12745 ;;
12746esac
12747
12748{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12749echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12750library_names_spec=
12751libname_spec='lib$name'
12752soname_spec=
12753shrext_cmds=".so"
12754postinstall_cmds=
12755postuninstall_cmds=
12756finish_cmds=
12757finish_eval=
12758shlibpath_var=
12759shlibpath_overrides_runpath=unknown
12760version_type=none
12761dynamic_linker="$host_os ld.so"
12762sys_lib_dlsearch_path_spec="/lib /usr/lib"
12763
12764need_lib_prefix=unknown
12765hardcode_into_libs=no
12766
12767# when you set need_version to no, make sure it does not cause -set_version
12768# flags to be left without arguments
12769need_version=unknown
12770
12771case $host_os in
12772aix3*)
12773 version_type=linux
12774 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12775 shlibpath_var=LIBPATH
12776
12777 # AIX 3 has no versioning support, so we append a major version to the name.
12778 soname_spec='${libname}${release}${shared_ext}$major'
12779 ;;
12780
12781aix[4-9]*)
12782 version_type=linux
12783 need_lib_prefix=no
12784 need_version=no
12785 hardcode_into_libs=yes
12786 if test "$host_cpu" = ia64; then
12787 # AIX 5 supports IA64
12788 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12789 shlibpath_var=LD_LIBRARY_PATH
12790 else
12791 # With GCC up to 2.95.x, collect2 would create an import file
12792 # for dependence libraries. The import file would start with
12793 # the line `#! .'. This would cause the generated library to
12794 # depend on `.', always an invalid library. This was fixed in
12795 # development snapshots of GCC prior to 3.0.
12796 case $host_os in
12797 aix4 | aix4.[01] | aix4.[01].*)
12798 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12799 echo ' yes '
12800 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12801 :
12802 else
12803 can_build_shared=no
12804 fi
12805 ;;
12806 esac
12807 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12808 # soname into executable. Probably we can add versioning support to
12809 # collect2, so additional links can be useful in future.
12810 if test "$aix_use_runtimelinking" = yes; then
12811 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12812 # instead of lib<name>.a to let people know that these are not
12813 # typical AIX shared libraries.
12814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12815 else
12816 # We preserve .a as extension for shared libraries through AIX4.2
12817 # and later when we are not doing run time linking.
12818 library_names_spec='${libname}${release}.a $libname.a'
12819 soname_spec='${libname}${release}${shared_ext}$major'
12820 fi
12821 shlibpath_var=LIBPATH
12822 fi
12823 ;;
12824
12825amigaos*)
12826 library_names_spec='$libname.ixlibrary $libname.a'
12827 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12828 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'
12829 ;;
12830
12831beos*)
12832 library_names_spec='${libname}${shared_ext}'
12833 dynamic_linker="$host_os ld.so"
12834 shlibpath_var=LIBRARY_PATH
12835 ;;
12836
12837bsdi[45]*)
12838 version_type=linux
12839 need_version=no
12840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12841 soname_spec='${libname}${release}${shared_ext}$major'
12842 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12843 shlibpath_var=LD_LIBRARY_PATH
12844 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12845 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12846 # the default ld.so.conf also contains /usr/contrib/lib and
12847 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12848 # libtool to hard-code these into programs
12849 ;;
12850
12851cygwin* | mingw* | pw32*)
12852 version_type=windows
12853 shrext_cmds=".dll"
12854 need_version=no
12855 need_lib_prefix=no
12856
12857 case $GCC,$host_os in
12858 yes,cygwin* | yes,mingw* | yes,pw32*)
12859 library_names_spec='$libname.dll.a'
12860 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12861 postinstall_cmds='base_file=`basename \${file}`~
12862 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12863 dldir=$destdir/`dirname \$dlpath`~
12864 test -d \$dldir || mkdir -p \$dldir~
12865 $install_prog $dir/$dlname \$dldir/$dlname~
12866 chmod a+x \$dldir/$dlname'
12867 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12868 dlpath=$dir/\$dldll~
12869 $rm \$dlpath'
12870 shlibpath_overrides_runpath=yes
12871
12872 case $host_os in
12873 cygwin*)
12874 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12875 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12876 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12877 ;;
12878 mingw*)
12879 # MinGW DLLs use traditional 'lib' prefix
12880 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12881 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12882 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12883 # It is most probably a Windows format PATH printed by
12884 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12885 # path with ; separators, and with drive letters. We can handle the
12886 # drive letters (cygwin fileutils understands them), so leave them,
12887 # especially as we might pass files found there to a mingw objdump,
12888 # which wouldn't understand a cygwinified path. Ahh.
12889 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12890 else
12891 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12892 fi
12893 ;;
12894 pw32*)
12895 # pw32 DLLs use 'pw' prefix rather than 'lib'
12896 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12897 ;;
12898 esac
12899 ;;
12900
12901 *)
12902 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12903 ;;
12904 esac
12905 dynamic_linker='Win32 ld.exe'
12906 # FIXME: first we should search . and the directory the executable is in
12907 shlibpath_var=PATH
12908 ;;
12909
12910darwin* | rhapsody*)
12911 dynamic_linker="$host_os dyld"
12912 version_type=darwin
12913 need_lib_prefix=no
12914 need_version=no
12915 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12916 soname_spec='${libname}${release}${major}$shared_ext'
12917 shlibpath_overrides_runpath=yes
12918 shlibpath_var=DYLD_LIBRARY_PATH
12919 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12920
12921 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12922 ;;
12923
12924dgux*)
12925 version_type=linux
12926 need_lib_prefix=no
12927 need_version=no
12928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12929 soname_spec='${libname}${release}${shared_ext}$major'
12930 shlibpath_var=LD_LIBRARY_PATH
12931 ;;
12932
12933freebsd1*)
12934 dynamic_linker=no
12935 ;;
12936
12937freebsd* | dragonfly*)
12938 # DragonFly does not have aout. When/if they implement a new
12939 # versioning mechanism, adjust this.
12940 if test -x /usr/bin/objformat; then
12941 objformat=`/usr/bin/objformat`
12942 else
12943 case $host_os in
12944 freebsd[123]*) objformat=aout ;;
12945 *) objformat=elf ;;
12946 esac
12947 fi
12948 version_type=freebsd-$objformat
12949 case $version_type in
12950 freebsd-elf*)
12951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12952 need_version=no
12953 need_lib_prefix=no
12954 ;;
12955 freebsd-*)
12956 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12957 need_version=yes
12958 ;;
12959 esac
12960 shlibpath_var=LD_LIBRARY_PATH
12961 case $host_os in
12962 freebsd2*)
12963 shlibpath_overrides_runpath=yes
12964 ;;
12965 freebsd3.[01]* | freebsdelf3.[01]*)
12966 shlibpath_overrides_runpath=yes
12967 hardcode_into_libs=yes
12968 ;;
12969 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12970 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12971 shlibpath_overrides_runpath=no
12972 hardcode_into_libs=yes
12973 ;;
12974 *) # from 4.6 on, and DragonFly
12975 shlibpath_overrides_runpath=yes
12976 hardcode_into_libs=yes
12977 ;;
12978 esac
12979 ;;
12980
12981gnu*)
12982 version_type=linux
12983 need_lib_prefix=no
12984 need_version=no
12985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12986 soname_spec='${libname}${release}${shared_ext}$major'
12987 shlibpath_var=LD_LIBRARY_PATH
12988 hardcode_into_libs=yes
12989 ;;
12990
12991hpux9* | hpux10* | hpux11*)
12992 # Give a soname corresponding to the major version so that dld.sl refuses to
12993 # link against other versions.
12994 version_type=sunos
12995 need_lib_prefix=no
12996 need_version=no
12997 case $host_cpu in
12998 ia64*)
12999 shrext_cmds='.so'
13000 hardcode_into_libs=yes
13001 dynamic_linker="$host_os dld.so"
13002 shlibpath_var=LD_LIBRARY_PATH
13003 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13005 soname_spec='${libname}${release}${shared_ext}$major'
13006 if test "X$HPUX_IA64_MODE" = X32; then
13007 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13008 else
13009 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13010 fi
13011 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13012 ;;
13013 hppa*64*)
13014 shrext_cmds='.sl'
13015 hardcode_into_libs=yes
13016 dynamic_linker="$host_os dld.sl"
13017 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13018 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13020 soname_spec='${libname}${release}${shared_ext}$major'
13021 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13022 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13023 ;;
13024 *)
13025 shrext_cmds='.sl'
13026 dynamic_linker="$host_os dld.sl"
13027 shlibpath_var=SHLIB_PATH
13028 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13030 soname_spec='${libname}${release}${shared_ext}$major'
13031 ;;
13032 esac
13033 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13034 postinstall_cmds='chmod 555 $lib'
13035 ;;
13036
13037interix[3-9]*)
13038 version_type=linux
13039 need_lib_prefix=no
13040 need_version=no
13041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13042 soname_spec='${libname}${release}${shared_ext}$major'
13043 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13044 shlibpath_var=LD_LIBRARY_PATH
13045 shlibpath_overrides_runpath=no
13046 hardcode_into_libs=yes
13047 ;;
13048
13049irix5* | irix6* | nonstopux*)
13050 case $host_os in
13051 nonstopux*) version_type=nonstopux ;;
13052 *)
13053 if test "$lt_cv_prog_gnu_ld" = yes; then
13054 version_type=linux
13055 else
13056 version_type=irix
13057 fi ;;
13058 esac
13059 need_lib_prefix=no
13060 need_version=no
13061 soname_spec='${libname}${release}${shared_ext}$major'
13062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13063 case $host_os in
13064 irix5* | nonstopux*)
13065 libsuff= shlibsuff=
13066 ;;
13067 *)
13068 case $LD in # libtool.m4 will add one of these switches to LD
13069 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13070 libsuff= shlibsuff= libmagic=32-bit;;
13071 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13072 libsuff=32 shlibsuff=N32 libmagic=N32;;
13073 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13074 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13075 *) libsuff= shlibsuff= libmagic=never-match;;
13076 esac
13077 ;;
13078 esac
13079 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13080 shlibpath_overrides_runpath=no
13081 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13082 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13083 hardcode_into_libs=yes
13084 ;;
13085
13086# No shared lib support for Linux oldld, aout, or coff.
13087linux*oldld* | linux*aout* | linux*coff*)
13088 dynamic_linker=no
13089 ;;
13090
13091# This must be Linux ELF.
13092linux* | k*bsd*-gnu)
13093 version_type=linux
13094 need_lib_prefix=no
13095 need_version=no
13096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13097 soname_spec='${libname}${release}${shared_ext}$major'
13098 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13099 shlibpath_var=LD_LIBRARY_PATH
13100 shlibpath_overrides_runpath=no
13101 # This implies no fast_install, which is unacceptable.
13102 # Some rework will be needed to allow for fast_install
13103 # before this can be enabled.
13104 hardcode_into_libs=yes
13105
13106 # Append ld.so.conf contents to the search path
13107 if test -f /etc/ld.so.conf; then
13108 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' ' '`
13109 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13110 fi
13111
13112 # We used to test for /lib/ld.so.1 and disable shared libraries on
13113 # powerpc, because MkLinux only supported shared libraries with the
13114 # GNU dynamic linker. Since this was broken with cross compilers,
13115 # most powerpc-linux boxes support dynamic linking these days and
13116 # people can always --disable-shared, the test was removed, and we
13117 # assume the GNU/Linux dynamic linker is in use.
13118 dynamic_linker='GNU/Linux ld.so'
13119 ;;
13120
13121netbsdelf*-gnu)
13122 version_type=linux
13123 need_lib_prefix=no
13124 need_version=no
13125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13126 soname_spec='${libname}${release}${shared_ext}$major'
13127 shlibpath_var=LD_LIBRARY_PATH
13128 shlibpath_overrides_runpath=no
13129 hardcode_into_libs=yes
13130 dynamic_linker='NetBSD ld.elf_so'
13131 ;;
13132
13133netbsd*)
13134 version_type=sunos
13135 need_lib_prefix=no
13136 need_version=no
13137 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13139 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13140 dynamic_linker='NetBSD (a.out) ld.so'
13141 else
13142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13143 soname_spec='${libname}${release}${shared_ext}$major'
13144 dynamic_linker='NetBSD ld.elf_so'
13145 fi
13146 shlibpath_var=LD_LIBRARY_PATH
13147 shlibpath_overrides_runpath=yes
13148 hardcode_into_libs=yes
13149 ;;
13150
13151newsos6)
13152 version_type=linux
13153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13154 shlibpath_var=LD_LIBRARY_PATH
13155 shlibpath_overrides_runpath=yes
13156 ;;
13157
13158nto-qnx*)
13159 version_type=linux
13160 need_lib_prefix=no
13161 need_version=no
13162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13163 soname_spec='${libname}${release}${shared_ext}$major'
13164 shlibpath_var=LD_LIBRARY_PATH
13165 shlibpath_overrides_runpath=yes
13166 ;;
13167
13168openbsd*)
13169 version_type=sunos
13170 sys_lib_dlsearch_path_spec="/usr/lib"
13171 need_lib_prefix=no
13172 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13173 case $host_os in
13174 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13175 *) need_version=no ;;
13176 esac
13177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13178 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13179 shlibpath_var=LD_LIBRARY_PATH
13180 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13181 case $host_os in
13182 openbsd2.[89] | openbsd2.[89].*)
13183 shlibpath_overrides_runpath=no
13184 ;;
13185 *)
13186 shlibpath_overrides_runpath=yes
13187 ;;
13188 esac
13189 else
13190 shlibpath_overrides_runpath=yes
13191 fi
13192 ;;
13193
13194os2*)
13195 libname_spec='$name'
13196 shrext_cmds=".dll"
13197 need_lib_prefix=no
13198 library_names_spec='$libname${shared_ext} $libname.a'
13199 dynamic_linker='OS/2 ld.exe'
13200 shlibpath_var=LIBPATH
13201 ;;
13202
13203osf3* | osf4* | osf5*)
13204 version_type=osf
13205 need_lib_prefix=no
13206 need_version=no
13207 soname_spec='${libname}${release}${shared_ext}$major'
13208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13209 shlibpath_var=LD_LIBRARY_PATH
13210 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13211 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13212 ;;
13213
13214rdos*)
13215 dynamic_linker=no
13216 ;;
13217
13218solaris*)
13219 version_type=linux
13220 need_lib_prefix=no
13221 need_version=no
13222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13223 soname_spec='${libname}${release}${shared_ext}$major'
13224 shlibpath_var=LD_LIBRARY_PATH
13225 shlibpath_overrides_runpath=yes
13226 hardcode_into_libs=yes
13227 # ldd complains unless libraries are executable
13228 postinstall_cmds='chmod +x $lib'
13229 ;;
13230
13231sunos4*)
13232 version_type=sunos
13233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13234 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13235 shlibpath_var=LD_LIBRARY_PATH
13236 shlibpath_overrides_runpath=yes
13237 if test "$with_gnu_ld" = yes; then
13238 need_lib_prefix=no
13239 fi
13240 need_version=yes
13241 ;;
13242
13243sysv4 | sysv4.3*)
13244 version_type=linux
13245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13246 soname_spec='${libname}${release}${shared_ext}$major'
13247 shlibpath_var=LD_LIBRARY_PATH
13248 case $host_vendor in
13249 sni)
13250 shlibpath_overrides_runpath=no
13251 need_lib_prefix=no
13252 export_dynamic_flag_spec='${wl}-Blargedynsym'
13253 runpath_var=LD_RUN_PATH
13254 ;;
13255 siemens)
13256 need_lib_prefix=no
13257 ;;
13258 motorola)
13259 need_lib_prefix=no
13260 need_version=no
13261 shlibpath_overrides_runpath=no
13262 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13263 ;;
13264 esac
13265 ;;
13266
13267sysv4*MP*)
13268 if test -d /usr/nec ;then
13269 version_type=linux
13270 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13271 soname_spec='$libname${shared_ext}.$major'
13272 shlibpath_var=LD_LIBRARY_PATH
13273 fi
13274 ;;
13275
13276sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13277 version_type=freebsd-elf
13278 need_lib_prefix=no
13279 need_version=no
13280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13281 soname_spec='${libname}${release}${shared_ext}$major'
13282 shlibpath_var=LD_LIBRARY_PATH
13283 hardcode_into_libs=yes
13284 if test "$with_gnu_ld" = yes; then
13285 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13286 shlibpath_overrides_runpath=no
13287 else
13288 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13289 shlibpath_overrides_runpath=yes
13290 case $host_os in
13291 sco3.2v5*)
13292 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13293 ;;
13294 esac
13295 fi
13296 sys_lib_dlsearch_path_spec='/usr/lib'
13297 ;;
13298
13299uts4*)
13300 version_type=linux
13301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13302 soname_spec='${libname}${release}${shared_ext}$major'
13303 shlibpath_var=LD_LIBRARY_PATH
13304 ;;
13305
13306*)
13307 dynamic_linker=no
13308 ;;
13309esac
13310{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13311echo "${ECHO_T}$dynamic_linker" >&6; }
13312test "$dynamic_linker" = no && can_build_shared=no
13313
13314if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13315 echo $ECHO_N "(cached) $ECHO_C" >&6
13316else
13317 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13318fi
13319
13320sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13321if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13322 echo $ECHO_N "(cached) $ECHO_C" >&6
13323else
13324 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13325fi
13326
13327sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13328
13329variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13330if test "$GCC" = yes; then
13331 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13332fi
13333
13334{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13335echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13336hardcode_action_CXX=
13337if test -n "$hardcode_libdir_flag_spec_CXX" || \
13338 test -n "$runpath_var_CXX" || \
13339 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13340
13341 # We can hardcode non-existant directories.
13342 if test "$hardcode_direct_CXX" != no &&
13343 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13344 # have to relink, otherwise we might link with an installed library
13345 # when we should be linking with a yet-to-be-installed one
13346 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13347 test "$hardcode_minus_L_CXX" != no; then
13348 # Linking always hardcodes the temporary library directory.
13349 hardcode_action_CXX=relink
13350 else
13351 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13352 hardcode_action_CXX=immediate
13353 fi
13354else
13355 # We cannot hardcode anything, or else we can only hardcode existing
13356 # directories.
13357 hardcode_action_CXX=unsupported
13358fi
13359{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13360echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13361
13362if test "$hardcode_action_CXX" = relink; then
13363 # Fast installation is not supported
13364 enable_fast_install=no
13365elif test "$shlibpath_overrides_runpath" = yes ||
13366 test "$enable_shared" = no; then
13367 # Fast installation is not necessary
13368 enable_fast_install=needless
13369fi
13370
13371
13372# The else clause should only fire when bootstrapping the
13373# libtool distribution, otherwise you forgot to ship ltmain.sh
13374# with your package, and you will get complaints that there are
13375# no rules to generate ltmain.sh.
13376if test -f "$ltmain"; then
13377 # See if we are running on zsh, and set the options which allow our commands through
13378 # without removal of \ escapes.
13379 if test -n "${ZSH_VERSION+set}" ; then
13380 setopt NO_GLOB_SUBST
13381 fi
13382 # Now quote all the things that may contain metacharacters while being
13383 # careful not to overquote the AC_SUBSTed values. We take copies of the
13384 # variables and quote the copies for generation of the libtool script.
13385 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13386 SED SHELL STRIP \
13387 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13388 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13389 deplibs_check_method reload_flag reload_cmds need_locks \
13390 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13391 lt_cv_sys_global_symbol_to_c_name_address \
13392 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13393 old_postinstall_cmds old_postuninstall_cmds \
13394 compiler_CXX \
13395 CC_CXX \
13396 LD_CXX \
13397 lt_prog_compiler_wl_CXX \
13398 lt_prog_compiler_pic_CXX \
13399 lt_prog_compiler_static_CXX \
13400 lt_prog_compiler_no_builtin_flag_CXX \
13401 export_dynamic_flag_spec_CXX \
13402 thread_safe_flag_spec_CXX \
13403 whole_archive_flag_spec_CXX \
13404 enable_shared_with_static_runtimes_CXX \
13405 old_archive_cmds_CXX \
13406 old_archive_from_new_cmds_CXX \
13407 predep_objects_CXX \
13408 postdep_objects_CXX \
13409 predeps_CXX \
13410 postdeps_CXX \
13411 compiler_lib_search_path_CXX \
13412 compiler_lib_search_dirs_CXX \
13413 archive_cmds_CXX \
13414 archive_expsym_cmds_CXX \
13415 postinstall_cmds_CXX \
13416 postuninstall_cmds_CXX \
13417 old_archive_from_expsyms_cmds_CXX \
13418 allow_undefined_flag_CXX \
13419 no_undefined_flag_CXX \
13420 export_symbols_cmds_CXX \
13421 hardcode_libdir_flag_spec_CXX \
13422 hardcode_libdir_flag_spec_ld_CXX \
13423 hardcode_libdir_separator_CXX \
13424 hardcode_automatic_CXX \
13425 module_cmds_CXX \
13426 module_expsym_cmds_CXX \
13427 lt_cv_prog_compiler_c_o_CXX \
13428 fix_srcfile_path_CXX \
13429 exclude_expsyms_CXX \
13430 include_expsyms_CXX; do
13431
13432 case $var in
13433 old_archive_cmds_CXX | \
13434 old_archive_from_new_cmds_CXX | \
13435 archive_cmds_CXX | \
13436 archive_expsym_cmds_CXX | \
13437 module_cmds_CXX | \
13438 module_expsym_cmds_CXX | \
13439 old_archive_from_expsyms_cmds_CXX | \
13440 export_symbols_cmds_CXX | \
13441 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13442 postinstall_cmds | postuninstall_cmds | \
13443 old_postinstall_cmds | old_postuninstall_cmds | \
13444 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13445 # Double-quote double-evaled strings.
13446 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13447 ;;
13448 *)
13449 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13450 ;;
13451 esac
13452 done
13453
13454 case $lt_echo in
13455 *'\$0 --fallback-echo"')
13456 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13457 ;;
13458 esac
13459
13460cfgfile="$ofile"
13461
13462 cat <<__EOF__ >> "$cfgfile"
13463# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13464
13465# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13466
13467# Shell to use when invoking shell scripts.
13468SHELL=$lt_SHELL
13469
13470# Whether or not to build shared libraries.
13471build_libtool_libs=$enable_shared
13472
13473# Whether or not to build static libraries.
13474build_old_libs=$enable_static
13475
13476# Whether or not to add -lc for building shared libraries.
13477build_libtool_need_lc=$archive_cmds_need_lc_CXX
13478
13479# Whether or not to disallow shared libs when runtime libs are static
13480allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13481
13482# Whether or not to optimize for fast installation.
13483fast_install=$enable_fast_install
13484
13485# The host system.
13486host_alias=$host_alias
13487host=$host
13488host_os=$host_os
13489
13490# The build system.
13491build_alias=$build_alias
13492build=$build
13493build_os=$build_os
13494
13495# An echo program that does not interpret backslashes.
13496echo=$lt_echo
13497
13498# The archiver.
13499AR=$lt_AR
13500AR_FLAGS=$lt_AR_FLAGS
13501
13502# A C compiler.
13503LTCC=$lt_LTCC
13504
13505# LTCC compiler flags.
13506LTCFLAGS=$lt_LTCFLAGS
13507
13508# A language-specific compiler.
13509CC=$lt_compiler_CXX
13510
13511# Is the compiler the GNU C compiler?
13512with_gcc=$GCC_CXX
13513
13514# An ERE matcher.
13515EGREP=$lt_EGREP
13516
13517# The linker used to build libraries.
13518LD=$lt_LD_CXX
13519
13520# Whether we need hard or soft links.
13521LN_S=$lt_LN_S
13522
13523# A BSD-compatible nm program.
13524NM=$lt_NM
13525
13526# A symbol stripping program
13527STRIP=$lt_STRIP
13528
13529# Used to examine libraries when file_magic_cmd begins "file"
13530MAGIC_CMD=$MAGIC_CMD
13531
13532# Used on cygwin: DLL creation program.
13533DLLTOOL="$DLLTOOL"
13534
13535# Used on cygwin: object dumper.
13536OBJDUMP="$OBJDUMP"
13537
13538# Used on cygwin: assembler.
13539AS="$AS"
13540
13541# The name of the directory that contains temporary libtool files.
13542objdir=$objdir
13543
13544# How to create reloadable object files.
13545reload_flag=$lt_reload_flag
13546reload_cmds=$lt_reload_cmds
13547
13548# How to pass a linker flag through the compiler.
13549wl=$lt_lt_prog_compiler_wl_CXX
13550
13551# Object file suffix (normally "o").
13552objext="$ac_objext"
13553
13554# Old archive suffix (normally "a").
13555libext="$libext"
13556
13557# Shared library suffix (normally ".so").
13558shrext_cmds='$shrext_cmds'
13559
13560# Executable file suffix (normally "").
13561exeext="$exeext"
13562
13563# Additional compiler flags for building library objects.
13564pic_flag=$lt_lt_prog_compiler_pic_CXX
13565pic_mode=$pic_mode
13566
13567# What is the maximum length of a command?
13568max_cmd_len=$lt_cv_sys_max_cmd_len
13569
13570# Does compiler simultaneously support -c and -o options?
13571compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13572
13573# Must we lock files when doing compilation?
13574need_locks=$lt_need_locks
13575
13576# Do we need the lib prefix for modules?
13577need_lib_prefix=$need_lib_prefix
13578
13579# Do we need a version for libraries?
13580need_version=$need_version
13581
13582# Whether dlopen is supported.
13583dlopen_support=$enable_dlopen
13584
13585# Whether dlopen of programs is supported.
13586dlopen_self=$enable_dlopen_self
13587
13588# Whether dlopen of statically linked programs is supported.
13589dlopen_self_static=$enable_dlopen_self_static
13590
13591# Compiler flag to prevent dynamic linking.
13592link_static_flag=$lt_lt_prog_compiler_static_CXX
13593
13594# Compiler flag to turn off builtin functions.
13595no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13596
13597# Compiler flag to allow reflexive dlopens.
13598export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13599
13600# Compiler flag to generate shared objects directly from archives.
13601whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13602
13603# Compiler flag to generate thread-safe objects.
13604thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13605
13606# Library versioning type.
13607version_type=$version_type
13608
13609# Format of library name prefix.
13610libname_spec=$lt_libname_spec
13611
13612# List of archive names. First name is the real one, the rest are links.
13613# The last name is the one that the linker finds with -lNAME.
13614library_names_spec=$lt_library_names_spec
13615
13616# The coded name of the library, if different from the real name.
13617soname_spec=$lt_soname_spec
13618
13619# Commands used to build and install an old-style archive.
13620RANLIB=$lt_RANLIB
13621old_archive_cmds=$lt_old_archive_cmds_CXX
13622old_postinstall_cmds=$lt_old_postinstall_cmds
13623old_postuninstall_cmds=$lt_old_postuninstall_cmds
13624
13625# Create an old-style archive from a shared archive.
13626old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13627
13628# Create a temporary old-style archive to link instead of a shared archive.
13629old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13630
13631# Commands used to build and install a shared archive.
13632archive_cmds=$lt_archive_cmds_CXX
13633archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13634postinstall_cmds=$lt_postinstall_cmds
13635postuninstall_cmds=$lt_postuninstall_cmds
13636
13637# Commands used to build a loadable module (assumed same as above if empty)
13638module_cmds=$lt_module_cmds_CXX
13639module_expsym_cmds=$lt_module_expsym_cmds_CXX
13640
13641# Commands to strip libraries.
13642old_striplib=$lt_old_striplib
13643striplib=$lt_striplib
13644
13645# Dependencies to place before the objects being linked to create a
13646# shared library.
13647predep_objects=$lt_predep_objects_CXX
13648
13649# Dependencies to place after the objects being linked to create a
13650# shared library.
13651postdep_objects=$lt_postdep_objects_CXX
13652
13653# Dependencies to place before the objects being linked to create a
13654# shared library.
13655predeps=$lt_predeps_CXX
13656
13657# Dependencies to place after the objects being linked to create a
13658# shared library.
13659postdeps=$lt_postdeps_CXX
13660
13661# The directories searched by this compiler when creating a shared
13662# library
13663compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
13664
13665# The library search path used internally by the compiler when linking
13666# a shared library.
13667compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13668
13669# Method to check whether dependent libraries are shared objects.
13670deplibs_check_method=$lt_deplibs_check_method
13671
13672# Command to use when deplibs_check_method == file_magic.
13673file_magic_cmd=$lt_file_magic_cmd
13674
13675# Flag that allows shared libraries with undefined symbols to be built.
13676allow_undefined_flag=$lt_allow_undefined_flag_CXX
13677
13678# Flag that forces no undefined symbols.
13679no_undefined_flag=$lt_no_undefined_flag_CXX
13680
13681# Commands used to finish a libtool library installation in a directory.
13682finish_cmds=$lt_finish_cmds
13683
13684# Same as above, but a single script fragment to be evaled but not shown.
13685finish_eval=$lt_finish_eval
13686
13687# Take the output of nm and produce a listing of raw symbols and C names.
13688global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13689
13690# Transform the output of nm in a proper C declaration
13691global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13692
13693# Transform the output of nm in a C name address pair
13694global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13695
13696# This is the shared library runtime path variable.
13697runpath_var=$runpath_var
13698
13699# This is the shared library path variable.
13700shlibpath_var=$shlibpath_var
13701
13702# Is shlibpath searched before the hard-coded library search path?
13703shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13704
13705# How to hardcode a shared library path into an executable.
13706hardcode_action=$hardcode_action_CXX
13707
13708# Whether we should hardcode library paths into libraries.
13709hardcode_into_libs=$hardcode_into_libs
13710
13711# Flag to hardcode \$libdir into a binary during linking.
13712# This must work even if \$libdir does not exist.
13713hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13714
13715# If ld is used when linking, flag to hardcode \$libdir into
13716# a binary during linking. This must work even if \$libdir does
13717# not exist.
13718hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13719
13720# Whether we need a single -rpath flag with a separated argument.
13721hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13722
13723# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13724# resulting binary.
13725hardcode_direct=$hardcode_direct_CXX
13726
13727# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13728# resulting binary.
13729hardcode_minus_L=$hardcode_minus_L_CXX
13730
13731# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13732# the resulting binary.
13733hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13734
13735# Set to yes if building a shared library automatically hardcodes DIR into the library
13736# and all subsequent libraries and executables linked against it.
13737hardcode_automatic=$hardcode_automatic_CXX
13738
13739# Variables whose values should be saved in libtool wrapper scripts and
13740# restored at relink time.
13741variables_saved_for_relink="$variables_saved_for_relink"
13742
13743# Whether libtool must link a program against all its dependency libraries.
13744link_all_deplibs=$link_all_deplibs_CXX
13745
13746# Compile-time system search path for libraries
13747sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13748
13749# Run-time system search path for libraries
13750sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13751
13752# Fix the shell variable \$srcfile for the compiler.
13753fix_srcfile_path=$lt_fix_srcfile_path
13754
13755# Set to yes if exported symbols are required.
13756always_export_symbols=$always_export_symbols_CXX
13757
13758# The commands to list exported symbols.
13759export_symbols_cmds=$lt_export_symbols_cmds_CXX
13760
13761# The commands to extract the exported symbol list from a shared archive.
13762extract_expsyms_cmds=$lt_extract_expsyms_cmds
13763
13764# Symbols that should not be listed in the preloaded symbols.
13765exclude_expsyms=$lt_exclude_expsyms_CXX
13766
13767# Symbols that must always be exported.
13768include_expsyms=$lt_include_expsyms_CXX
13769
13770# ### END LIBTOOL TAG CONFIG: $tagname
13771
13772__EOF__
13773
13774
13775else
13776 # If there is no Makefile yet, we rely on a make rule to execute
13777 # `config.status --recheck' to rerun these tests and create the
13778 # libtool script then.
13779 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13780 if test -f "$ltmain_in"; then
13781 test -f Makefile && make "$ltmain"
13782 fi
13783fi
13784
13785
13786ac_ext=c
13787ac_cpp='$CPP $CPPFLAGS'
13788ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13789ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13790ac_compiler_gnu=$ac_cv_c_compiler_gnu
13791
13792CC=$lt_save_CC
13793LDCXX=$LD
13794LD=$lt_save_LD
13795GCC=$lt_save_GCC
13796with_gnu_ldcxx=$with_gnu_ld
13797with_gnu_ld=$lt_save_with_gnu_ld
13798lt_cv_path_LDCXX=$lt_cv_path_LD
13799lt_cv_path_LD=$lt_save_path_LD
13800lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13801lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13802
13803 else
13804 tagname=""
13805 fi
13806 ;;
13807
13808 F77)
13809 if test -n "$F77" && test "X$F77" != "Xno"; then
13810
13811ac_ext=f
13812ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13813ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13814ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13815
13816
13817archive_cmds_need_lc_F77=no
13818allow_undefined_flag_F77=
13819always_export_symbols_F77=no
13820archive_expsym_cmds_F77=
13821export_dynamic_flag_spec_F77=
13822hardcode_direct_F77=no
13823hardcode_libdir_flag_spec_F77=
13824hardcode_libdir_flag_spec_ld_F77=
13825hardcode_libdir_separator_F77=
13826hardcode_minus_L_F77=no
13827hardcode_automatic_F77=no
13828module_cmds_F77=
13829module_expsym_cmds_F77=
13830link_all_deplibs_F77=unknown
13831old_archive_cmds_F77=$old_archive_cmds
13832no_undefined_flag_F77=
13833whole_archive_flag_spec_F77=
13834enable_shared_with_static_runtimes_F77=no
13835
13836# Source file extension for f77 test sources.
13837ac_ext=f
13838
13839# Object file extension for compiled f77 test sources.
13840objext=o
13841objext_F77=$objext
13842
13843# Code to be used in simple compile tests
13844lt_simple_compile_test_code="\
13845 subroutine t
13846 return
13847 end
13848"
13849
13850# Code to be used in simple link tests
13851lt_simple_link_test_code="\
13852 program t
13853 end
13854"
13855
13856# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13857
13858# If no C compiler was specified, use CC.
13859LTCC=${LTCC-"$CC"}
13860
13861# If no C compiler flags were specified, use CFLAGS.
13862LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13863
13864# Allow CC to be a program name with arguments.
13865compiler=$CC
13866
13867
13868# save warnings/boilerplate of simple test code
13869ac_outfile=conftest.$ac_objext
13870echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13871eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13872_lt_compiler_boilerplate=`cat conftest.err`
13873$rm conftest*
13874
13875ac_outfile=conftest.$ac_objext
13876echo "$lt_simple_link_test_code" >conftest.$ac_ext
13877eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13878_lt_linker_boilerplate=`cat conftest.err`
13879$rm -r conftest*
13880
13881
13882# Allow CC to be a program name with arguments.
13883lt_save_CC="$CC"
13884CC=${F77-"f77"}
13885compiler=$CC
13886compiler_F77=$CC
13887for cc_temp in $compiler""; do
13888 case $cc_temp in
13889 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13890 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13891 \-*) ;;
13892 *) break;;
13893 esac
13894done
13895cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13896
13897
13898{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13899echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13900{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
13901echo "${ECHO_T}$can_build_shared" >&6; }
13902
13903{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13904echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13905test "$can_build_shared" = "no" && enable_shared=no
13906
13907# On AIX, shared libraries and static libraries use the same namespace, and
13908# are all built from PIC.
13909case $host_os in
13910aix3*)
13911 test "$enable_shared" = yes && enable_static=no
13912 if test -n "$RANLIB"; then
13913 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13914 postinstall_cmds='$RANLIB $lib'
13915 fi
13916 ;;
13917aix[4-9]*)
13918 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13919 test "$enable_shared" = yes && enable_static=no
13920 fi
13921 ;;
13922esac
13923{ echo "$as_me:$LINENO: result: $enable_shared" >&5
13924echo "${ECHO_T}$enable_shared" >&6; }
13925
13926{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13927echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13928# Make sure either enable_shared or enable_static is yes.
13929test "$enable_shared" = yes || enable_static=yes
13930{ echo "$as_me:$LINENO: result: $enable_static" >&5
13931echo "${ECHO_T}$enable_static" >&6; }
13932
13933GCC_F77="$G77"
13934LD_F77="$LD"
13935
13936lt_prog_compiler_wl_F77=
13937lt_prog_compiler_pic_F77=
13938lt_prog_compiler_static_F77=
13939
13940{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13941echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13942
13943 if test "$GCC" = yes; then
13944 lt_prog_compiler_wl_F77='-Wl,'
13945 lt_prog_compiler_static_F77='-static'
13946
13947 case $host_os in
13948 aix*)
13949 # All AIX code is PIC.
13950 if test "$host_cpu" = ia64; then
13951 # AIX 5 now supports IA64 processor
13952 lt_prog_compiler_static_F77='-Bstatic'
13953 fi
13954 ;;
13955
13956 amigaos*)
13957 # FIXME: we need at least 68020 code to build shared libraries, but
13958 # adding the `-m68020' flag to GCC prevents building anything better,
13959 # like `-m68040'.
13960 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13961 ;;
13962
13963 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13964 # PIC is the default for these OSes.
13965 ;;
13966
13967 mingw* | cygwin* | pw32* | os2*)
13968 # This hack is so that the source file can tell whether it is being
13969 # built for inclusion in a dll (and should export symbols for example).
13970 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13971 # (--disable-auto-import) libraries
13972 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13973 ;;
13974
13975 darwin* | rhapsody*)
13976 # PIC is the default on this platform
13977 # Common symbols not allowed in MH_DYLIB files
13978 lt_prog_compiler_pic_F77='-fno-common'
13979 ;;
13980
13981 interix[3-9]*)
13982 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13983 # Instead, we relocate shared libraries at runtime.
13984 ;;
13985
13986 msdosdjgpp*)
13987 # Just because we use GCC doesn't mean we suddenly get shared libraries
13988 # on systems that don't support them.
13989 lt_prog_compiler_can_build_shared_F77=no
13990 enable_shared=no
13991 ;;
13992
13993 sysv4*MP*)
13994 if test -d /usr/nec; then
13995 lt_prog_compiler_pic_F77=-Kconform_pic
13996 fi
13997 ;;
13998
13999 hpux*)
14000 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14001 # not for PA HP-UX.
14002 case $host_cpu in
14003 hppa*64*|ia64*)
14004 # +Z the default
14005 ;;
14006 *)
14007 lt_prog_compiler_pic_F77='-fPIC'
14008 ;;
14009 esac
14010 ;;
14011
14012 *)
14013 lt_prog_compiler_pic_F77='-fPIC'
14014 ;;
14015 esac
14016 else
14017 # PORTME Check for flag to pass linker flags through the system compiler.
14018 case $host_os in
14019 aix*)
14020 lt_prog_compiler_wl_F77='-Wl,'
14021 if test "$host_cpu" = ia64; then
14022 # AIX 5 now supports IA64 processor
14023 lt_prog_compiler_static_F77='-Bstatic'
14024 else
14025 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14026 fi
14027 ;;
14028 darwin*)
14029 # PIC is the default on this platform
14030 # Common symbols not allowed in MH_DYLIB files
14031 case $cc_basename in
14032 xlc*)
14033 lt_prog_compiler_pic_F77='-qnocommon'
14034 lt_prog_compiler_wl_F77='-Wl,'
14035 ;;
14036 esac
14037 ;;
14038
14039 mingw* | cygwin* | pw32* | os2*)
14040 # This hack is so that the source file can tell whether it is being
14041 # built for inclusion in a dll (and should export symbols for example).
14042 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14043 ;;
14044
14045 hpux9* | hpux10* | hpux11*)
14046 lt_prog_compiler_wl_F77='-Wl,'
14047 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14048 # not for PA HP-UX.
14049 case $host_cpu in
14050 hppa*64*|ia64*)
14051 # +Z the default
14052 ;;
14053 *)
14054 lt_prog_compiler_pic_F77='+Z'
14055 ;;
14056 esac
14057 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14058 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14059 ;;
14060
14061 irix5* | irix6* | nonstopux*)
14062 lt_prog_compiler_wl_F77='-Wl,'
14063 # PIC (with -KPIC) is the default.
14064 lt_prog_compiler_static_F77='-non_shared'
14065 ;;
14066
14067 newsos6)
14068 lt_prog_compiler_pic_F77='-KPIC'
14069 lt_prog_compiler_static_F77='-Bstatic'
14070 ;;
14071
14072 linux* | k*bsd*-gnu)
14073 case $cc_basename in
14074 icc* | ecc*)
14075 lt_prog_compiler_wl_F77='-Wl,'
14076 lt_prog_compiler_pic_F77='-KPIC'
14077 lt_prog_compiler_static_F77='-static'
14078 ;;
14079 pgcc* | pgf77* | pgf90* | pgf95*)
14080 # Portland Group compilers (*not* the Pentium gcc compiler,
14081 # which looks to be a dead project)
14082 lt_prog_compiler_wl_F77='-Wl,'
14083 lt_prog_compiler_pic_F77='-fpic'
14084 lt_prog_compiler_static_F77='-Bstatic'
14085 ;;
14086 ccc*)
14087 lt_prog_compiler_wl_F77='-Wl,'
14088 # All Alpha code is PIC.
14089 lt_prog_compiler_static_F77='-non_shared'
14090 ;;
14091 *)
14092 case `$CC -V 2>&1 | sed 5q` in
14093 *Sun\ C*)
14094 # Sun C 5.9
14095 lt_prog_compiler_pic_F77='-KPIC'
14096 lt_prog_compiler_static_F77='-Bstatic'
14097 lt_prog_compiler_wl_F77='-Wl,'
14098 ;;
14099 *Sun\ F*)
14100 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14101 lt_prog_compiler_pic_F77='-KPIC'
14102 lt_prog_compiler_static_F77='-Bstatic'
14103 lt_prog_compiler_wl_F77=''
14104 ;;
14105 esac
14106 ;;
14107 esac
14108 ;;
14109
14110 osf3* | osf4* | osf5*)
14111 lt_prog_compiler_wl_F77='-Wl,'
14112 # All OSF/1 code is PIC.
14113 lt_prog_compiler_static_F77='-non_shared'
14114 ;;
14115
14116 rdos*)
14117 lt_prog_compiler_static_F77='-non_shared'
14118 ;;
14119
14120 solaris*)
14121 lt_prog_compiler_pic_F77='-KPIC'
14122 lt_prog_compiler_static_F77='-Bstatic'
14123 case $cc_basename in
14124 f77* | f90* | f95*)
14125 lt_prog_compiler_wl_F77='-Qoption ld ';;
14126 *)
14127 lt_prog_compiler_wl_F77='-Wl,';;
14128 esac
14129 ;;
14130
14131 sunos4*)
14132 lt_prog_compiler_wl_F77='-Qoption ld '
14133 lt_prog_compiler_pic_F77='-PIC'
14134 lt_prog_compiler_static_F77='-Bstatic'
14135 ;;
14136
14137 sysv4 | sysv4.2uw2* | sysv4.3*)
14138 lt_prog_compiler_wl_F77='-Wl,'
14139 lt_prog_compiler_pic_F77='-KPIC'
14140 lt_prog_compiler_static_F77='-Bstatic'
14141 ;;
14142
14143 sysv4*MP*)
14144 if test -d /usr/nec ;then
14145 lt_prog_compiler_pic_F77='-Kconform_pic'
14146 lt_prog_compiler_static_F77='-Bstatic'
14147 fi
14148 ;;
14149
14150 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14151 lt_prog_compiler_wl_F77='-Wl,'
14152 lt_prog_compiler_pic_F77='-KPIC'
14153 lt_prog_compiler_static_F77='-Bstatic'
14154 ;;
14155
14156 unicos*)
14157 lt_prog_compiler_wl_F77='-Wl,'
14158 lt_prog_compiler_can_build_shared_F77=no
14159 ;;
14160
14161 uts4*)
14162 lt_prog_compiler_pic_F77='-pic'
14163 lt_prog_compiler_static_F77='-Bstatic'
14164 ;;
14165
14166 *)
14167 lt_prog_compiler_can_build_shared_F77=no
14168 ;;
14169 esac
14170 fi
14171
14172{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14173echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14174
14175#
14176# Check to make sure the PIC flag actually works.
14177#
14178if test -n "$lt_prog_compiler_pic_F77"; then
14179
14180{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14181echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14182if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14183 echo $ECHO_N "(cached) $ECHO_C" >&6
14184else
14185 lt_cv_prog_compiler_pic_works_F77=no
14186 ac_outfile=conftest.$ac_objext
14187 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14188 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14189 # Insert the option either (1) after the last *FLAGS variable, or
14190 # (2) before a word containing "conftest.", or (3) at the end.
14191 # Note that $ac_compile itself does not contain backslashes and begins
14192 # with a dollar sign (not a hyphen), so the echo should work correctly.
14193 # The option is referenced via a variable to avoid confusing sed.
14194 lt_compile=`echo "$ac_compile" | $SED \
14195 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14196 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14197 -e 's:$: $lt_compiler_flag:'`
14198 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
14199 (eval "$lt_compile" 2>conftest.err)
14200 ac_status=$?
14201 cat conftest.err >&5
14202 echo "$as_me:__oline__: \$? = $ac_status" >&5
14203 if (exit $ac_status) && test -s "$ac_outfile"; then
14204 # The compiler can only warn and ignore the option if not recognized
14205 # So say no if there are warnings other than the usual output.
14206 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14207 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14208 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14209 lt_cv_prog_compiler_pic_works_F77=yes
14210 fi
14211 fi
14212 $rm conftest*
14213
14214fi
14215{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14216echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
14217
14218if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14219 case $lt_prog_compiler_pic_F77 in
14220 "" | " "*) ;;
14221 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14222 esac
14223else
14224 lt_prog_compiler_pic_F77=
14225 lt_prog_compiler_can_build_shared_F77=no
14226fi
14227
14228fi
14229case $host_os in
14230 # For platforms which do not support PIC, -DPIC is meaningless:
14231 *djgpp*)
14232 lt_prog_compiler_pic_F77=
14233 ;;
14234 *)
14235 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14236 ;;
14237esac
14238
14239#
14240# Check to make sure the static flag actually works.
14241#
14242wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14243{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14244echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14245if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14246 echo $ECHO_N "(cached) $ECHO_C" >&6
14247else
14248 lt_cv_prog_compiler_static_works_F77=no
14249 save_LDFLAGS="$LDFLAGS"
14250 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14251 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14252 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14253 # The linker can only warn and ignore the option if not recognized
14254 # So say no if there are warnings
14255 if test -s conftest.err; then
14256 # Append any errors to the config.log.
14257 cat conftest.err 1>&5
14258 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14259 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14260 if diff conftest.exp conftest.er2 >/dev/null; then
14261 lt_cv_prog_compiler_static_works_F77=yes
14262 fi
14263 else
14264 lt_cv_prog_compiler_static_works_F77=yes
14265 fi
14266 fi
14267 $rm -r conftest*
14268 LDFLAGS="$save_LDFLAGS"
14269
14270fi
14271{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14272echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
14273
14274if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14275 :
14276else
14277 lt_prog_compiler_static_F77=
14278fi
14279
14280
14281{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14282echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14283if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14284 echo $ECHO_N "(cached) $ECHO_C" >&6
14285else
14286 lt_cv_prog_compiler_c_o_F77=no
14287 $rm -r conftest 2>/dev/null
14288 mkdir conftest
14289 cd conftest
14290 mkdir out
14291 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14292
14293 lt_compiler_flag="-o out/conftest2.$ac_objext"
14294 # Insert the option either (1) after the last *FLAGS variable, or
14295 # (2) before a word containing "conftest.", or (3) at the end.
14296 # Note that $ac_compile itself does not contain backslashes and begins
14297 # with a dollar sign (not a hyphen), so the echo should work correctly.
14298 lt_compile=`echo "$ac_compile" | $SED \
14299 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14300 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14301 -e 's:$: $lt_compiler_flag:'`
14302 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
14303 (eval "$lt_compile" 2>out/conftest.err)
14304 ac_status=$?
14305 cat out/conftest.err >&5
14306 echo "$as_me:__oline__: \$? = $ac_status" >&5
14307 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14308 then
14309 # The compiler can only warn and ignore the option if not recognized
14310 # So say no if there are warnings
14311 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14312 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14313 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14314 lt_cv_prog_compiler_c_o_F77=yes
14315 fi
14316 fi
14317 chmod u+w . 2>&5
14318 $rm conftest*
14319 # SGI C++ compiler will create directory out/ii_files/ for
14320 # template instantiation
14321 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14322 $rm out/* && rmdir out
14323 cd ..
14324 rmdir conftest
14325 $rm conftest*
14326
14327fi
14328{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14329echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14330
14331
14332hard_links="nottested"
14333if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14334 # do not overwrite the value of need_locks provided by the user
14335 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14336echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14337 hard_links=yes
14338 $rm conftest*
14339 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14340 touch conftest.a
14341 ln conftest.a conftest.b 2>&5 || hard_links=no
14342 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14343 { echo "$as_me:$LINENO: result: $hard_links" >&5
14344echo "${ECHO_T}$hard_links" >&6; }
14345 if test "$hard_links" = no; then
14346 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14347echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14348 need_locks=warn
14349 fi
14350else
14351 need_locks=no
14352fi
14353
14354{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14355echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14356
14357 runpath_var=
14358 allow_undefined_flag_F77=
14359 enable_shared_with_static_runtimes_F77=no
14360 archive_cmds_F77=
14361 archive_expsym_cmds_F77=
14362 old_archive_From_new_cmds_F77=
14363 old_archive_from_expsyms_cmds_F77=
14364 export_dynamic_flag_spec_F77=
14365 whole_archive_flag_spec_F77=
14366 thread_safe_flag_spec_F77=
14367 hardcode_libdir_flag_spec_F77=
14368 hardcode_libdir_flag_spec_ld_F77=
14369 hardcode_libdir_separator_F77=
14370 hardcode_direct_F77=no
14371 hardcode_minus_L_F77=no
14372 hardcode_shlibpath_var_F77=unsupported
14373 link_all_deplibs_F77=unknown
14374 hardcode_automatic_F77=no
14375 module_cmds_F77=
14376 module_expsym_cmds_F77=
14377 always_export_symbols_F77=no
14378 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14379 # include_expsyms should be a list of space-separated symbols to be *always*
14380 # included in the symbol list
14381 include_expsyms_F77=
14382 # exclude_expsyms can be an extended regexp of symbols to exclude
14383 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14384 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14385 # as well as any symbol that contains `d'.
14386 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14387 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14388 # platforms (ab)use it in PIC code, but their linkers get confused if
14389 # the symbol is explicitly referenced. Since portable code cannot
14390 # rely on this symbol name, it's probably fine to never include it in
14391 # preloaded symbol tables.
14392 # Exclude shared library initialization/finalization symbols.
14393 extract_expsyms_cmds=
14394 # Just being paranoid about ensuring that cc_basename is set.
14395 for cc_temp in $compiler""; do
14396 case $cc_temp in
14397 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14398 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14399 \-*) ;;
14400 *) break;;
14401 esac
14402done
14403cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14404
14405 case $host_os in
14406 cygwin* | mingw* | pw32*)
14407 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14408 # When not using gcc, we currently assume that we are using
14409 # Microsoft Visual C++.
14410 if test "$GCC" != yes; then
14411 with_gnu_ld=no
14412 fi
14413 ;;
14414 interix*)
14415 # we just hope/assume this is gcc and not c89 (= MSVC++)
14416 with_gnu_ld=yes
14417 ;;
14418 openbsd*)
14419 with_gnu_ld=no
14420 ;;
14421 esac
14422
14423 ld_shlibs_F77=yes
14424 if test "$with_gnu_ld" = yes; then
14425 # If archive_cmds runs LD, not CC, wlarc should be empty
14426 wlarc='${wl}'
14427
14428 # Set some defaults for GNU ld with shared library support. These
14429 # are reset later if shared libraries are not supported. Putting them
14430 # here allows them to be overridden if necessary.
14431 runpath_var=LD_RUN_PATH
14432 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14433 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14434 # ancient GNU ld didn't support --whole-archive et. al.
14435 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14436 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14437 else
14438 whole_archive_flag_spec_F77=
14439 fi
14440 supports_anon_versioning=no
14441 case `$LD -v 2>/dev/null` in
14442 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14443 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14444 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14445 *\ 2.11.*) ;; # other 2.11 versions
14446 *) supports_anon_versioning=yes ;;
14447 esac
14448
14449 # See if GNU ld supports shared libraries.
14450 case $host_os in
14451 aix[3-9]*)
14452 # On AIX/PPC, the GNU linker is very broken
14453 if test "$host_cpu" != ia64; then
14454 ld_shlibs_F77=no
14455 cat <<EOF 1>&2
14456
14457*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14458*** to be unable to reliably create shared libraries on AIX.
14459*** Therefore, libtool is disabling shared libraries support. If you
14460*** really care for shared libraries, you may want to modify your PATH
14461*** so that a non-GNU linker is found, and then restart.
14462
14463EOF
14464 fi
14465 ;;
14466
14467 amigaos*)
14468 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)'
14469 hardcode_libdir_flag_spec_F77='-L$libdir'
14470 hardcode_minus_L_F77=yes
14471
14472 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14473 # that the semantics of dynamic libraries on AmigaOS, at least up
14474 # to version 4, is to share data among multiple programs linked
14475 # with the same dynamic library. Since this doesn't match the
14476 # behavior of shared libraries on other platforms, we can't use
14477 # them.
14478 ld_shlibs_F77=no
14479 ;;
14480
14481 beos*)
14482 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14483 allow_undefined_flag_F77=unsupported
14484 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14485 # support --undefined. This deserves some investigation. FIXME
14486 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14487 else
14488 ld_shlibs_F77=no
14489 fi
14490 ;;
14491
14492 cygwin* | mingw* | pw32*)
14493 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14494 # as there is no search path for DLLs.
14495 hardcode_libdir_flag_spec_F77='-L$libdir'
14496 allow_undefined_flag_F77=unsupported
14497 always_export_symbols_F77=no
14498 enable_shared_with_static_runtimes_F77=yes
14499 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14500
14501 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14502 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14503 # If the export-symbols file already is a .def file (1st line
14504 # is EXPORTS), use it as is; otherwise, prepend...
14505 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14506 cp $export_symbols $output_objdir/$soname.def;
14507 else
14508 echo EXPORTS > $output_objdir/$soname.def;
14509 cat $export_symbols >> $output_objdir/$soname.def;
14510 fi~
14511 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14512 else
14513 ld_shlibs_F77=no
14514 fi
14515 ;;
14516
14517 interix[3-9]*)
14518 hardcode_direct_F77=no
14519 hardcode_shlibpath_var_F77=no
14520 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14521 export_dynamic_flag_spec_F77='${wl}-E'
14522 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14523 # Instead, shared libraries are loaded at an image base (0x10000000 by
14524 # default) and relocated if they conflict, which is a slow very memory
14525 # consuming and fragmenting process. To avoid this, we pick a random,
14526 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14527 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14528 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'
14529 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'
14530 ;;
14531
14532 gnu* | linux* | k*bsd*-gnu)
14533 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14534 tmp_addflag=
14535 case $cc_basename,$host_cpu in
14536 pgcc*) # Portland Group C compiler
14537 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'
14538 tmp_addflag=' $pic_flag'
14539 ;;
14540 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14541 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'
14542 tmp_addflag=' $pic_flag -Mnomain' ;;
14543 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14544 tmp_addflag=' -i_dynamic' ;;
14545 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14546 tmp_addflag=' -i_dynamic -nofor_main' ;;
14547 ifc* | ifort*) # Intel Fortran compiler
14548 tmp_addflag=' -nofor_main' ;;
14549 esac
14550 case `$CC -V 2>&1 | sed 5q` in
14551 *Sun\ C*) # Sun C 5.9
14552 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'
14553 tmp_sharedflag='-G' ;;
14554 *Sun\ F*) # Sun Fortran 8.3
14555 tmp_sharedflag='-G' ;;
14556 *)
14557 tmp_sharedflag='-shared' ;;
14558 esac
14559 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14560
14561 if test $supports_anon_versioning = yes; then
14562 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14563 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14564 $echo "local: *; };" >> $output_objdir/$libname.ver~
14565 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14566 fi
14567 link_all_deplibs_F77=no
14568 else
14569 ld_shlibs_F77=no
14570 fi
14571 ;;
14572
14573 netbsd* | netbsdelf*-gnu)
14574 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14575 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14576 wlarc=
14577 else
14578 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14579 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14580 fi
14581 ;;
14582
14583 solaris*)
14584 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14585 ld_shlibs_F77=no
14586 cat <<EOF 1>&2
14587
14588*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14589*** create shared libraries on Solaris systems. Therefore, libtool
14590*** is disabling shared libraries support. We urge you to upgrade GNU
14591*** binutils to release 2.9.1 or newer. Another option is to modify
14592*** your PATH or compiler configuration so that the native linker is
14593*** used, and then restart.
14594
14595EOF
14596 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14597 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14598 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14599 else
14600 ld_shlibs_F77=no
14601 fi
14602 ;;
14603
14604 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14605 case `$LD -v 2>&1` in
14606 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14607 ld_shlibs_F77=no
14608 cat <<_LT_EOF 1>&2
14609
14610*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14611*** reliably create shared libraries on SCO systems. Therefore, libtool
14612*** is disabling shared libraries support. We urge you to upgrade GNU
14613*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14614*** your PATH or compiler configuration so that the native linker is
14615*** used, and then restart.
14616
14617_LT_EOF
14618 ;;
14619 *)
14620 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14621 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14622 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14623 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14624 else
14625 ld_shlibs_F77=no
14626 fi
14627 ;;
14628 esac
14629 ;;
14630
14631 sunos4*)
14632 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14633 wlarc=
14634 hardcode_direct_F77=yes
14635 hardcode_shlibpath_var_F77=no
14636 ;;
14637
14638 *)
14639 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14640 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14641 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14642 else
14643 ld_shlibs_F77=no
14644 fi
14645 ;;
14646 esac
14647
14648 if test "$ld_shlibs_F77" = no; then
14649 runpath_var=
14650 hardcode_libdir_flag_spec_F77=
14651 export_dynamic_flag_spec_F77=
14652 whole_archive_flag_spec_F77=
14653 fi
14654 else
14655 # PORTME fill in a description of your system's linker (not GNU ld)
14656 case $host_os in
14657 aix3*)
14658 allow_undefined_flag_F77=unsupported
14659 always_export_symbols_F77=yes
14660 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'
14661 # Note: this linker hardcodes the directories in LIBPATH if there
14662 # are no directories specified by -L.
14663 hardcode_minus_L_F77=yes
14664 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14665 # Neither direct hardcoding nor static linking is supported with a
14666 # broken collect2.
14667 hardcode_direct_F77=unsupported
14668 fi
14669 ;;
14670
14671 aix[4-9]*)
14672 if test "$host_cpu" = ia64; then
14673 # On IA64, the linker does run time linking by default, so we don't
14674 # have to do anything special.
14675 aix_use_runtimelinking=no
14676 exp_sym_flag='-Bexport'
14677 no_entry_flag=""
14678 else
14679 # If we're using GNU nm, then we don't want the "-C" option.
14680 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14681 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14682 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'
14683 else
14684 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'
14685 fi
14686 aix_use_runtimelinking=no
14687
14688 # Test if we are trying to use run time linking or normal
14689 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14690 # need to do runtime linking.
14691 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14692 for ld_flag in $LDFLAGS; do
14693 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14694 aix_use_runtimelinking=yes
14695 break
14696 fi
14697 done
14698 ;;
14699 esac
14700
14701 exp_sym_flag='-bexport'
14702 no_entry_flag='-bnoentry'
14703 fi
14704
14705 # When large executables or shared objects are built, AIX ld can
14706 # have problems creating the table of contents. If linking a library
14707 # or program results in "error TOC overflow" add -mminimal-toc to
14708 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14709 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14710
14711 archive_cmds_F77=''
14712 hardcode_direct_F77=yes
14713 hardcode_libdir_separator_F77=':'
14714 link_all_deplibs_F77=yes
14715
14716 if test "$GCC" = yes; then
14717 case $host_os in aix4.[012]|aix4.[012].*)
14718 # We only want to do this on AIX 4.2 and lower, the check
14719 # below for broken collect2 doesn't work under 4.3+
14720 collect2name=`${CC} -print-prog-name=collect2`
14721 if test -f "$collect2name" && \
14722 strings "$collect2name" | grep resolve_lib_name >/dev/null
14723 then
14724 # We have reworked collect2
14725 :
14726 else
14727 # We have old collect2
14728 hardcode_direct_F77=unsupported
14729 # It fails to find uninstalled libraries when the uninstalled
14730 # path is not listed in the libpath. Setting hardcode_minus_L
14731 # to unsupported forces relinking
14732 hardcode_minus_L_F77=yes
14733 hardcode_libdir_flag_spec_F77='-L$libdir'
14734 hardcode_libdir_separator_F77=
14735 fi
14736 ;;
14737 esac
14738 shared_flag='-shared'
14739 if test "$aix_use_runtimelinking" = yes; then
14740 shared_flag="$shared_flag "'${wl}-G'
14741 fi
14742 else
14743 # not using gcc
14744 if test "$host_cpu" = ia64; then
14745 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14746 # chokes on -Wl,-G. The following line is correct:
14747 shared_flag='-G'
14748 else
14749 if test "$aix_use_runtimelinking" = yes; then
14750 shared_flag='${wl}-G'
14751 else
14752 shared_flag='${wl}-bM:SRE'
14753 fi
14754 fi
14755 fi
14756
14757 # It seems that -bexpall does not export symbols beginning with
14758 # underscore (_), so it is better to generate a list of symbols to export.
14759 always_export_symbols_F77=yes
14760 if test "$aix_use_runtimelinking" = yes; then
14761 # Warning - without using the other runtime loading flags (-brtl),
14762 # -berok will link without error, but may produce a broken library.
14763 allow_undefined_flag_F77='-berok'
14764 # Determine the default libpath from the value encoded in an empty executable.
14765 cat >conftest.$ac_ext <<_ACEOF
14766 program main
14767
14768 end
14769_ACEOF
14770rm -f conftest.$ac_objext conftest$ac_exeext
14771if { (ac_try="$ac_link"
14772case "(($ac_try" in
14773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14774 *) ac_try_echo=$ac_try;;
14775esac
14776eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14777 (eval "$ac_link") 2>conftest.er1
14778 ac_status=$?
14779 grep -v '^ *+' conftest.er1 >conftest.err
14780 rm -f conftest.er1
14781 cat conftest.err >&5
14782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14783 (exit $ac_status); } && {
14784 test -z "$ac_f77_werror_flag" ||
14785 test ! -s conftest.err
14786 } && test -s conftest$ac_exeext &&
14787 $as_test_x conftest$ac_exeext; then
14788
14789lt_aix_libpath_sed='
14790 /Import File Strings/,/^$/ {
14791 /^0/ {
14792 s/^0 *\(.*\)$/\1/
14793 p
14794 }
14795 }'
14796aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14797# Check for a 64-bit object if we didn't find anything.
14798if test -z "$aix_libpath"; then
14799 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14800fi
14801else
14802 echo "$as_me: failed program was:" >&5
14803sed 's/^/| /' conftest.$ac_ext >&5
14804
14805
14806fi
14807
14808rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14809 conftest$ac_exeext conftest.$ac_ext
14810if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14811
14812 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14813 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"
14814 else
14815 if test "$host_cpu" = ia64; then
14816 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14817 allow_undefined_flag_F77="-z nodefs"
14818 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"
14819 else
14820 # Determine the default libpath from the value encoded in an empty executable.
14821 cat >conftest.$ac_ext <<_ACEOF
14822 program main
14823
14824 end
14825_ACEOF
14826rm -f conftest.$ac_objext conftest$ac_exeext
14827if { (ac_try="$ac_link"
14828case "(($ac_try" in
14829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14830 *) ac_try_echo=$ac_try;;
14831esac
14832eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14833 (eval "$ac_link") 2>conftest.er1
14834 ac_status=$?
14835 grep -v '^ *+' conftest.er1 >conftest.err
14836 rm -f conftest.er1
14837 cat conftest.err >&5
14838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14839 (exit $ac_status); } && {
14840 test -z "$ac_f77_werror_flag" ||
14841 test ! -s conftest.err
14842 } && test -s conftest$ac_exeext &&
14843 $as_test_x conftest$ac_exeext; then
14844
14845lt_aix_libpath_sed='
14846 /Import File Strings/,/^$/ {
14847 /^0/ {
14848 s/^0 *\(.*\)$/\1/
14849 p
14850 }
14851 }'
14852aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14853# Check for a 64-bit object if we didn't find anything.
14854if test -z "$aix_libpath"; then
14855 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14856fi
14857else
14858 echo "$as_me: failed program was:" >&5
14859sed 's/^/| /' conftest.$ac_ext >&5
14860
14861
14862fi
14863
14864rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14865 conftest$ac_exeext conftest.$ac_ext
14866if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14867
14868 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14869 # Warning - without using the other run time loading flags,
14870 # -berok will link without error, but may produce a broken library.
14871 no_undefined_flag_F77=' ${wl}-bernotok'
14872 allow_undefined_flag_F77=' ${wl}-berok'
14873 # Exported symbols can be pulled into shared objects from archives
14874 whole_archive_flag_spec_F77='$convenience'
14875 archive_cmds_need_lc_F77=yes
14876 # This is similar to how AIX traditionally builds its shared libraries.
14877 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'
14878 fi
14879 fi
14880 ;;
14881
14882 amigaos*)
14883 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)'
14884 hardcode_libdir_flag_spec_F77='-L$libdir'
14885 hardcode_minus_L_F77=yes
14886 # see comment about different semantics on the GNU ld section
14887 ld_shlibs_F77=no
14888 ;;
14889
14890 bsdi[45]*)
14891 export_dynamic_flag_spec_F77=-rdynamic
14892 ;;
14893
14894 cygwin* | mingw* | pw32*)
14895 # When not using gcc, we currently assume that we are using
14896 # Microsoft Visual C++.
14897 # hardcode_libdir_flag_spec is actually meaningless, as there is
14898 # no search path for DLLs.
14899 hardcode_libdir_flag_spec_F77=' '
14900 allow_undefined_flag_F77=unsupported
14901 # Tell ltmain to make .lib files, not .a files.
14902 libext=lib
14903 # Tell ltmain to make .dll files, not .so files.
14904 shrext_cmds=".dll"
14905 # FIXME: Setting linknames here is a bad hack.
14906 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14907 # The linker will automatically build a .lib file if we build a DLL.
14908 old_archive_From_new_cmds_F77='true'
14909 # FIXME: Should let the user specify the lib program.
14910 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
14911 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14912 enable_shared_with_static_runtimes_F77=yes
14913 ;;
14914
14915 darwin* | rhapsody*)
14916 case $host_os in
14917 rhapsody* | darwin1.[012])
14918 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14919 ;;
14920 *) # Darwin 1.3 on
14921 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14922 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14923 else
14924 case ${MACOSX_DEPLOYMENT_TARGET} in
14925 10.[012])
14926 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14927 ;;
14928 10.*)
14929 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14930 ;;
14931 esac
14932 fi
14933 ;;
14934 esac
14935 archive_cmds_need_lc_F77=no
14936 hardcode_direct_F77=no
14937 hardcode_automatic_F77=yes
14938 hardcode_shlibpath_var_F77=unsupported
14939 whole_archive_flag_spec_F77=''
14940 link_all_deplibs_F77=yes
14941 if test "$GCC" = yes ; then
14942 output_verbose_link_cmd='echo'
14943 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}"
14944 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14945 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}"
14946 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}"
14947 else
14948 case $cc_basename in
14949 xlc*)
14950 output_verbose_link_cmd='echo'
14951 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
14952 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14953 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14954 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}'
14955 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}'
14956 ;;
14957 *)
14958 ld_shlibs_F77=no
14959 ;;
14960 esac
14961 fi
14962 ;;
14963
14964 dgux*)
14965 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14966 hardcode_libdir_flag_spec_F77='-L$libdir'
14967 hardcode_shlibpath_var_F77=no
14968 ;;
14969
14970 freebsd1*)
14971 ld_shlibs_F77=no
14972 ;;
14973
14974 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14975 # support. Future versions do this automatically, but an explicit c++rt0.o
14976 # does not break anything, and helps significantly (at the cost of a little
14977 # extra space).
14978 freebsd2.2*)
14979 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14980 hardcode_libdir_flag_spec_F77='-R$libdir'
14981 hardcode_direct_F77=yes
14982 hardcode_shlibpath_var_F77=no
14983 ;;
14984
14985 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14986 freebsd2*)
14987 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14988 hardcode_direct_F77=yes
14989 hardcode_minus_L_F77=yes
14990 hardcode_shlibpath_var_F77=no
14991 ;;
14992
14993 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14994 freebsd* | dragonfly*)
14995 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14996 hardcode_libdir_flag_spec_F77='-R$libdir'
14997 hardcode_direct_F77=yes
14998 hardcode_shlibpath_var_F77=no
14999 ;;
15000
15001 hpux9*)
15002 if test "$GCC" = yes; then
15003 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'
15004 else
15005 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'
15006 fi
15007 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15008 hardcode_libdir_separator_F77=:
15009 hardcode_direct_F77=yes
15010
15011 # hardcode_minus_L: Not really in the search PATH,
15012 # but as the default location of the library.
15013 hardcode_minus_L_F77=yes
15014 export_dynamic_flag_spec_F77='${wl}-E'
15015 ;;
15016
15017 hpux10*)
15018 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15019 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15020 else
15021 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15022 fi
15023 if test "$with_gnu_ld" = no; then
15024 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15025 hardcode_libdir_separator_F77=:
15026
15027 hardcode_direct_F77=yes
15028 export_dynamic_flag_spec_F77='${wl}-E'
15029
15030 # hardcode_minus_L: Not really in the search PATH,
15031 # but as the default location of the library.
15032 hardcode_minus_L_F77=yes
15033 fi
15034 ;;
15035
15036 hpux11*)
15037 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15038 case $host_cpu in
15039 hppa*64*)
15040 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15041 ;;
15042 ia64*)
15043 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15044 ;;
15045 *)
15046 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15047 ;;
15048 esac
15049 else
15050 case $host_cpu in
15051 hppa*64*)
15052 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15053 ;;
15054 ia64*)
15055 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15056 ;;
15057 *)
15058 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15059 ;;
15060 esac
15061 fi
15062 if test "$with_gnu_ld" = no; then
15063 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15064 hardcode_libdir_separator_F77=:
15065
15066 case $host_cpu in
15067 hppa*64*|ia64*)
15068 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15069 hardcode_direct_F77=no
15070 hardcode_shlibpath_var_F77=no
15071 ;;
15072 *)
15073 hardcode_direct_F77=yes
15074 export_dynamic_flag_spec_F77='${wl}-E'
15075
15076 # hardcode_minus_L: Not really in the search PATH,
15077 # but as the default location of the library.
15078 hardcode_minus_L_F77=yes
15079 ;;
15080 esac
15081 fi
15082 ;;
15083
15084 irix5* | irix6* | nonstopux*)
15085 if test "$GCC" = yes; then
15086 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'
15087 else
15088 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'
15089 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15090 fi
15091 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15092 hardcode_libdir_separator_F77=:
15093 link_all_deplibs_F77=yes
15094 ;;
15095
15096 netbsd* | netbsdelf*-gnu)
15097 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15098 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15099 else
15100 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15101 fi
15102 hardcode_libdir_flag_spec_F77='-R$libdir'
15103 hardcode_direct_F77=yes
15104 hardcode_shlibpath_var_F77=no
15105 ;;
15106
15107 newsos6)
15108 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15109 hardcode_direct_F77=yes
15110 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15111 hardcode_libdir_separator_F77=:
15112 hardcode_shlibpath_var_F77=no
15113 ;;
15114
15115 openbsd*)
15116 if test -f /usr/libexec/ld.so; then
15117 hardcode_direct_F77=yes
15118 hardcode_shlibpath_var_F77=no
15119 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15120 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15121 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15122 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15123 export_dynamic_flag_spec_F77='${wl}-E'
15124 else
15125 case $host_os in
15126 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15127 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15128 hardcode_libdir_flag_spec_F77='-R$libdir'
15129 ;;
15130 *)
15131 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15132 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15133 ;;
15134 esac
15135 fi
15136 else
15137 ld_shlibs_F77=no
15138 fi
15139 ;;
15140
15141 os2*)
15142 hardcode_libdir_flag_spec_F77='-L$libdir'
15143 hardcode_minus_L_F77=yes
15144 allow_undefined_flag_F77=unsupported
15145 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'
15146 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15147 ;;
15148
15149 osf3*)
15150 if test "$GCC" = yes; then
15151 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15152 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'
15153 else
15154 allow_undefined_flag_F77=' -expect_unresolved \*'
15155 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'
15156 fi
15157 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15158 hardcode_libdir_separator_F77=:
15159 ;;
15160
15161 osf4* | osf5*) # as osf3* with the addition of -msym flag
15162 if test "$GCC" = yes; then
15163 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15164 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'
15165 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15166 else
15167 allow_undefined_flag_F77=' -expect_unresolved \*'
15168 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'
15169 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~
15170 $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'
15171
15172 # Both c and cxx compiler support -rpath directly
15173 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15174 fi
15175 hardcode_libdir_separator_F77=:
15176 ;;
15177
15178 solaris*)
15179 no_undefined_flag_F77=' -z text'
15180 if test "$GCC" = yes; then
15181 wlarc='${wl}'
15182 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15183 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15184 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15185 else
15186 wlarc=''
15187 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15188 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15189 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15190 fi
15191 hardcode_libdir_flag_spec_F77='-R$libdir'
15192 hardcode_shlibpath_var_F77=no
15193 case $host_os in
15194 solaris2.[0-5] | solaris2.[0-5].*) ;;
15195 *)
15196 # The compiler driver will combine and reorder linker options,
15197 # but understands `-z linker_flag'. GCC discards it without `$wl',
15198 # but is careful enough not to reorder.
15199 # Supported since Solaris 2.6 (maybe 2.5.1?)
15200 if test "$GCC" = yes; then
15201 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15202 else
15203 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15204 fi
15205 ;;
15206 esac
15207 link_all_deplibs_F77=yes
15208 ;;
15209
15210 sunos4*)
15211 if test "x$host_vendor" = xsequent; then
15212 # Use $CC to link under sequent, because it throws in some extra .o
15213 # files that make .init and .fini sections work.
15214 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15215 else
15216 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15217 fi
15218 hardcode_libdir_flag_spec_F77='-L$libdir'
15219 hardcode_direct_F77=yes
15220 hardcode_minus_L_F77=yes
15221 hardcode_shlibpath_var_F77=no
15222 ;;
15223
15224 sysv4)
15225 case $host_vendor in
15226 sni)
15227 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15228 hardcode_direct_F77=yes # is this really true???
15229 ;;
15230 siemens)
15231 ## LD is ld it makes a PLAMLIB
15232 ## CC just makes a GrossModule.
15233 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15234 reload_cmds_F77='$CC -r -o $output$reload_objs'
15235 hardcode_direct_F77=no
15236 ;;
15237 motorola)
15238 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15239 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15240 ;;
15241 esac
15242 runpath_var='LD_RUN_PATH'
15243 hardcode_shlibpath_var_F77=no
15244 ;;
15245
15246 sysv4.3*)
15247 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15248 hardcode_shlibpath_var_F77=no
15249 export_dynamic_flag_spec_F77='-Bexport'
15250 ;;
15251
15252 sysv4*MP*)
15253 if test -d /usr/nec; then
15254 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15255 hardcode_shlibpath_var_F77=no
15256 runpath_var=LD_RUN_PATH
15257 hardcode_runpath_var=yes
15258 ld_shlibs_F77=yes
15259 fi
15260 ;;
15261
15262 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15263 no_undefined_flag_F77='${wl}-z,text'
15264 archive_cmds_need_lc_F77=no
15265 hardcode_shlibpath_var_F77=no
15266 runpath_var='LD_RUN_PATH'
15267
15268 if test "$GCC" = yes; then
15269 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15270 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15271 else
15272 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15273 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15274 fi
15275 ;;
15276
15277 sysv5* | sco3.2v5* | sco5v6*)
15278 # Note: We can NOT use -z defs as we might desire, because we do not
15279 # link with -lc, and that would cause any symbols used from libc to
15280 # always be unresolved, which means just about no library would
15281 # ever link correctly. If we're not using GNU ld we use -z text
15282 # though, which does catch some bad symbols but isn't as heavy-handed
15283 # as -z defs.
15284 no_undefined_flag_F77='${wl}-z,text'
15285 allow_undefined_flag_F77='${wl}-z,nodefs'
15286 archive_cmds_need_lc_F77=no
15287 hardcode_shlibpath_var_F77=no
15288 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15289 hardcode_libdir_separator_F77=':'
15290 link_all_deplibs_F77=yes
15291 export_dynamic_flag_spec_F77='${wl}-Bexport'
15292 runpath_var='LD_RUN_PATH'
15293
15294 if test "$GCC" = yes; then
15295 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15296 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15297 else
15298 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15299 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15300 fi
15301 ;;
15302
15303 uts4*)
15304 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15305 hardcode_libdir_flag_spec_F77='-L$libdir'
15306 hardcode_shlibpath_var_F77=no
15307 ;;
15308
15309 *)
15310 ld_shlibs_F77=no
15311 ;;
15312 esac
15313 fi
15314
15315{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15316echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15317test "$ld_shlibs_F77" = no && can_build_shared=no
15318
15319#
15320# Do we need to explicitly link libc?
15321#
15322case "x$archive_cmds_need_lc_F77" in
15323x|xyes)
15324 # Assume -lc should be added
15325 archive_cmds_need_lc_F77=yes
15326
15327 if test "$enable_shared" = yes && test "$GCC" = yes; then
15328 case $archive_cmds_F77 in
15329 *'~'*)
15330 # FIXME: we may have to deal with multi-command sequences.
15331 ;;
15332 '$CC '*)
15333 # Test whether the compiler implicitly links with -lc since on some
15334 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15335 # to ld, don't add -lc before -lgcc.
15336 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15337echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15338 $rm conftest*
15339 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15340
15341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15342 (eval $ac_compile) 2>&5
15343 ac_status=$?
15344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15345 (exit $ac_status); } 2>conftest.err; then
15346 soname=conftest
15347 lib=conftest
15348 libobjs=conftest.$ac_objext
15349 deplibs=
15350 wl=$lt_prog_compiler_wl_F77
15351 pic_flag=$lt_prog_compiler_pic_F77
15352 compiler_flags=-v
15353 linker_flags=-v
15354 verstring=
15355 output_objdir=.
15356 libname=conftest
15357 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15358 allow_undefined_flag_F77=
15359 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15360 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15361 ac_status=$?
15362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15363 (exit $ac_status); }
15364 then
15365 archive_cmds_need_lc_F77=no
15366 else
15367 archive_cmds_need_lc_F77=yes
15368 fi
15369 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15370 else
15371 cat conftest.err 1>&5
15372 fi
15373 $rm conftest*
15374 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15375echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15376 ;;
15377 esac
15378 fi
15379 ;;
15380esac
15381
15382{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15383echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15384library_names_spec=
15385libname_spec='lib$name'
15386soname_spec=
15387shrext_cmds=".so"
15388postinstall_cmds=
15389postuninstall_cmds=
15390finish_cmds=
15391finish_eval=
15392shlibpath_var=
15393shlibpath_overrides_runpath=unknown
15394version_type=none
15395dynamic_linker="$host_os ld.so"
15396sys_lib_dlsearch_path_spec="/lib /usr/lib"
15397
15398need_lib_prefix=unknown
15399hardcode_into_libs=no
15400
15401# when you set need_version to no, make sure it does not cause -set_version
15402# flags to be left without arguments
15403need_version=unknown
15404
15405case $host_os in
15406aix3*)
15407 version_type=linux
15408 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15409 shlibpath_var=LIBPATH
15410
15411 # AIX 3 has no versioning support, so we append a major version to the name.
15412 soname_spec='${libname}${release}${shared_ext}$major'
15413 ;;
15414
15415aix[4-9]*)
15416 version_type=linux
15417 need_lib_prefix=no
15418 need_version=no
15419 hardcode_into_libs=yes
15420 if test "$host_cpu" = ia64; then
15421 # AIX 5 supports IA64
15422 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15423 shlibpath_var=LD_LIBRARY_PATH
15424 else
15425 # With GCC up to 2.95.x, collect2 would create an import file
15426 # for dependence libraries. The import file would start with
15427 # the line `#! .'. This would cause the generated library to
15428 # depend on `.', always an invalid library. This was fixed in
15429 # development snapshots of GCC prior to 3.0.
15430 case $host_os in
15431 aix4 | aix4.[01] | aix4.[01].*)
15432 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15433 echo ' yes '
15434 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15435 :
15436 else
15437 can_build_shared=no
15438 fi
15439 ;;
15440 esac
15441 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15442 # soname into executable. Probably we can add versioning support to
15443 # collect2, so additional links can be useful in future.
15444 if test "$aix_use_runtimelinking" = yes; then
15445 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15446 # instead of lib<name>.a to let people know that these are not
15447 # typical AIX shared libraries.
15448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15449 else
15450 # We preserve .a as extension for shared libraries through AIX4.2
15451 # and later when we are not doing run time linking.
15452 library_names_spec='${libname}${release}.a $libname.a'
15453 soname_spec='${libname}${release}${shared_ext}$major'
15454 fi
15455 shlibpath_var=LIBPATH
15456 fi
15457 ;;
15458
15459amigaos*)
15460 library_names_spec='$libname.ixlibrary $libname.a'
15461 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15462 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'
15463 ;;
15464
15465beos*)
15466 library_names_spec='${libname}${shared_ext}'
15467 dynamic_linker="$host_os ld.so"
15468 shlibpath_var=LIBRARY_PATH
15469 ;;
15470
15471bsdi[45]*)
15472 version_type=linux
15473 need_version=no
15474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15475 soname_spec='${libname}${release}${shared_ext}$major'
15476 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15477 shlibpath_var=LD_LIBRARY_PATH
15478 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15479 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15480 # the default ld.so.conf also contains /usr/contrib/lib and
15481 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15482 # libtool to hard-code these into programs
15483 ;;
15484
15485cygwin* | mingw* | pw32*)
15486 version_type=windows
15487 shrext_cmds=".dll"
15488 need_version=no
15489 need_lib_prefix=no
15490
15491 case $GCC,$host_os in
15492 yes,cygwin* | yes,mingw* | yes,pw32*)
15493 library_names_spec='$libname.dll.a'
15494 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15495 postinstall_cmds='base_file=`basename \${file}`~
15496 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15497 dldir=$destdir/`dirname \$dlpath`~
15498 test -d \$dldir || mkdir -p \$dldir~
15499 $install_prog $dir/$dlname \$dldir/$dlname~
15500 chmod a+x \$dldir/$dlname'
15501 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15502 dlpath=$dir/\$dldll~
15503 $rm \$dlpath'
15504 shlibpath_overrides_runpath=yes
15505
15506 case $host_os in
15507 cygwin*)
15508 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15509 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15510 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15511 ;;
15512 mingw*)
15513 # MinGW DLLs use traditional 'lib' prefix
15514 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15515 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15516 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15517 # It is most probably a Windows format PATH printed by
15518 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15519 # path with ; separators, and with drive letters. We can handle the
15520 # drive letters (cygwin fileutils understands them), so leave them,
15521 # especially as we might pass files found there to a mingw objdump,
15522 # which wouldn't understand a cygwinified path. Ahh.
15523 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15524 else
15525 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15526 fi
15527 ;;
15528 pw32*)
15529 # pw32 DLLs use 'pw' prefix rather than 'lib'
15530 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15531 ;;
15532 esac
15533 ;;
15534
15535 *)
15536 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15537 ;;
15538 esac
15539 dynamic_linker='Win32 ld.exe'
15540 # FIXME: first we should search . and the directory the executable is in
15541 shlibpath_var=PATH
15542 ;;
15543
15544darwin* | rhapsody*)
15545 dynamic_linker="$host_os dyld"
15546 version_type=darwin
15547 need_lib_prefix=no
15548 need_version=no
15549 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15550 soname_spec='${libname}${release}${major}$shared_ext'
15551 shlibpath_overrides_runpath=yes
15552 shlibpath_var=DYLD_LIBRARY_PATH
15553 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15554
15555 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15556 ;;
15557
15558dgux*)
15559 version_type=linux
15560 need_lib_prefix=no
15561 need_version=no
15562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15563 soname_spec='${libname}${release}${shared_ext}$major'
15564 shlibpath_var=LD_LIBRARY_PATH
15565 ;;
15566
15567freebsd1*)
15568 dynamic_linker=no
15569 ;;
15570
15571freebsd* | dragonfly*)
15572 # DragonFly does not have aout. When/if they implement a new
15573 # versioning mechanism, adjust this.
15574 if test -x /usr/bin/objformat; then
15575 objformat=`/usr/bin/objformat`
15576 else
15577 case $host_os in
15578 freebsd[123]*) objformat=aout ;;
15579 *) objformat=elf ;;
15580 esac
15581 fi
15582 version_type=freebsd-$objformat
15583 case $version_type in
15584 freebsd-elf*)
15585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15586 need_version=no
15587 need_lib_prefix=no
15588 ;;
15589 freebsd-*)
15590 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15591 need_version=yes
15592 ;;
15593 esac
15594 shlibpath_var=LD_LIBRARY_PATH
15595 case $host_os in
15596 freebsd2*)
15597 shlibpath_overrides_runpath=yes
15598 ;;
15599 freebsd3.[01]* | freebsdelf3.[01]*)
15600 shlibpath_overrides_runpath=yes
15601 hardcode_into_libs=yes
15602 ;;
15603 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15604 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15605 shlibpath_overrides_runpath=no
15606 hardcode_into_libs=yes
15607 ;;
15608 *) # from 4.6 on, and DragonFly
15609 shlibpath_overrides_runpath=yes
15610 hardcode_into_libs=yes
15611 ;;
15612 esac
15613 ;;
15614
15615gnu*)
15616 version_type=linux
15617 need_lib_prefix=no
15618 need_version=no
15619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15620 soname_spec='${libname}${release}${shared_ext}$major'
15621 shlibpath_var=LD_LIBRARY_PATH
15622 hardcode_into_libs=yes
15623 ;;
15624
15625hpux9* | hpux10* | hpux11*)
15626 # Give a soname corresponding to the major version so that dld.sl refuses to
15627 # link against other versions.
15628 version_type=sunos
15629 need_lib_prefix=no
15630 need_version=no
15631 case $host_cpu in
15632 ia64*)
15633 shrext_cmds='.so'
15634 hardcode_into_libs=yes
15635 dynamic_linker="$host_os dld.so"
15636 shlibpath_var=LD_LIBRARY_PATH
15637 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15639 soname_spec='${libname}${release}${shared_ext}$major'
15640 if test "X$HPUX_IA64_MODE" = X32; then
15641 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15642 else
15643 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15644 fi
15645 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15646 ;;
15647 hppa*64*)
15648 shrext_cmds='.sl'
15649 hardcode_into_libs=yes
15650 dynamic_linker="$host_os dld.sl"
15651 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15652 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15654 soname_spec='${libname}${release}${shared_ext}$major'
15655 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15656 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15657 ;;
15658 *)
15659 shrext_cmds='.sl'
15660 dynamic_linker="$host_os dld.sl"
15661 shlibpath_var=SHLIB_PATH
15662 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15664 soname_spec='${libname}${release}${shared_ext}$major'
15665 ;;
15666 esac
15667 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15668 postinstall_cmds='chmod 555 $lib'
15669 ;;
15670
15671interix[3-9]*)
15672 version_type=linux
15673 need_lib_prefix=no
15674 need_version=no
15675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15676 soname_spec='${libname}${release}${shared_ext}$major'
15677 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15678 shlibpath_var=LD_LIBRARY_PATH
15679 shlibpath_overrides_runpath=no
15680 hardcode_into_libs=yes
15681 ;;
15682
15683irix5* | irix6* | nonstopux*)
15684 case $host_os in
15685 nonstopux*) version_type=nonstopux ;;
15686 *)
15687 if test "$lt_cv_prog_gnu_ld" = yes; then
15688 version_type=linux
15689 else
15690 version_type=irix
15691 fi ;;
15692 esac
15693 need_lib_prefix=no
15694 need_version=no
15695 soname_spec='${libname}${release}${shared_ext}$major'
15696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15697 case $host_os in
15698 irix5* | nonstopux*)
15699 libsuff= shlibsuff=
15700 ;;
15701 *)
15702 case $LD in # libtool.m4 will add one of these switches to LD
15703 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15704 libsuff= shlibsuff= libmagic=32-bit;;
15705 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15706 libsuff=32 shlibsuff=N32 libmagic=N32;;
15707 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15708 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15709 *) libsuff= shlibsuff= libmagic=never-match;;
15710 esac
15711 ;;
15712 esac
15713 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15714 shlibpath_overrides_runpath=no
15715 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15716 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15717 hardcode_into_libs=yes
15718 ;;
15719
15720# No shared lib support for Linux oldld, aout, or coff.
15721linux*oldld* | linux*aout* | linux*coff*)
15722 dynamic_linker=no
15723 ;;
15724
15725# This must be Linux ELF.
15726linux* | k*bsd*-gnu)
15727 version_type=linux
15728 need_lib_prefix=no
15729 need_version=no
15730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15731 soname_spec='${libname}${release}${shared_ext}$major'
15732 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15733 shlibpath_var=LD_LIBRARY_PATH
15734 shlibpath_overrides_runpath=no
15735 # This implies no fast_install, which is unacceptable.
15736 # Some rework will be needed to allow for fast_install
15737 # before this can be enabled.
15738 hardcode_into_libs=yes
15739
15740 # Append ld.so.conf contents to the search path
15741 if test -f /etc/ld.so.conf; then
15742 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' ' '`
15743 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15744 fi
15745
15746 # We used to test for /lib/ld.so.1 and disable shared libraries on
15747 # powerpc, because MkLinux only supported shared libraries with the
15748 # GNU dynamic linker. Since this was broken with cross compilers,
15749 # most powerpc-linux boxes support dynamic linking these days and
15750 # people can always --disable-shared, the test was removed, and we
15751 # assume the GNU/Linux dynamic linker is in use.
15752 dynamic_linker='GNU/Linux ld.so'
15753 ;;
15754
15755netbsdelf*-gnu)
15756 version_type=linux
15757 need_lib_prefix=no
15758 need_version=no
15759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15760 soname_spec='${libname}${release}${shared_ext}$major'
15761 shlibpath_var=LD_LIBRARY_PATH
15762 shlibpath_overrides_runpath=no
15763 hardcode_into_libs=yes
15764 dynamic_linker='NetBSD ld.elf_so'
15765 ;;
15766
15767netbsd*)
15768 version_type=sunos
15769 need_lib_prefix=no
15770 need_version=no
15771 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15773 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15774 dynamic_linker='NetBSD (a.out) ld.so'
15775 else
15776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15777 soname_spec='${libname}${release}${shared_ext}$major'
15778 dynamic_linker='NetBSD ld.elf_so'
15779 fi
15780 shlibpath_var=LD_LIBRARY_PATH
15781 shlibpath_overrides_runpath=yes
15782 hardcode_into_libs=yes
15783 ;;
15784
15785newsos6)
15786 version_type=linux
15787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15788 shlibpath_var=LD_LIBRARY_PATH
15789 shlibpath_overrides_runpath=yes
15790 ;;
15791
15792nto-qnx*)
15793 version_type=linux
15794 need_lib_prefix=no
15795 need_version=no
15796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15797 soname_spec='${libname}${release}${shared_ext}$major'
15798 shlibpath_var=LD_LIBRARY_PATH
15799 shlibpath_overrides_runpath=yes
15800 ;;
15801
15802openbsd*)
15803 version_type=sunos
15804 sys_lib_dlsearch_path_spec="/usr/lib"
15805 need_lib_prefix=no
15806 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15807 case $host_os in
15808 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15809 *) need_version=no ;;
15810 esac
15811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15812 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15813 shlibpath_var=LD_LIBRARY_PATH
15814 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15815 case $host_os in
15816 openbsd2.[89] | openbsd2.[89].*)
15817 shlibpath_overrides_runpath=no
15818 ;;
15819 *)
15820 shlibpath_overrides_runpath=yes
15821 ;;
15822 esac
15823 else
15824 shlibpath_overrides_runpath=yes
15825 fi
15826 ;;
15827
15828os2*)
15829 libname_spec='$name'
15830 shrext_cmds=".dll"
15831 need_lib_prefix=no
15832 library_names_spec='$libname${shared_ext} $libname.a'
15833 dynamic_linker='OS/2 ld.exe'
15834 shlibpath_var=LIBPATH
15835 ;;
15836
15837osf3* | osf4* | osf5*)
15838 version_type=osf
15839 need_lib_prefix=no
15840 need_version=no
15841 soname_spec='${libname}${release}${shared_ext}$major'
15842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15843 shlibpath_var=LD_LIBRARY_PATH
15844 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15845 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15846 ;;
15847
15848rdos*)
15849 dynamic_linker=no
15850 ;;
15851
15852solaris*)
15853 version_type=linux
15854 need_lib_prefix=no
15855 need_version=no
15856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15857 soname_spec='${libname}${release}${shared_ext}$major'
15858 shlibpath_var=LD_LIBRARY_PATH
15859 shlibpath_overrides_runpath=yes
15860 hardcode_into_libs=yes
15861 # ldd complains unless libraries are executable
15862 postinstall_cmds='chmod +x $lib'
15863 ;;
15864
15865sunos4*)
15866 version_type=sunos
15867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15868 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15869 shlibpath_var=LD_LIBRARY_PATH
15870 shlibpath_overrides_runpath=yes
15871 if test "$with_gnu_ld" = yes; then
15872 need_lib_prefix=no
15873 fi
15874 need_version=yes
15875 ;;
15876
15877sysv4 | sysv4.3*)
15878 version_type=linux
15879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15880 soname_spec='${libname}${release}${shared_ext}$major'
15881 shlibpath_var=LD_LIBRARY_PATH
15882 case $host_vendor in
15883 sni)
15884 shlibpath_overrides_runpath=no
15885 need_lib_prefix=no
15886 export_dynamic_flag_spec='${wl}-Blargedynsym'
15887 runpath_var=LD_RUN_PATH
15888 ;;
15889 siemens)
15890 need_lib_prefix=no
15891 ;;
15892 motorola)
15893 need_lib_prefix=no
15894 need_version=no
15895 shlibpath_overrides_runpath=no
15896 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15897 ;;
15898 esac
15899 ;;
15900
15901sysv4*MP*)
15902 if test -d /usr/nec ;then
15903 version_type=linux
15904 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15905 soname_spec='$libname${shared_ext}.$major'
15906 shlibpath_var=LD_LIBRARY_PATH
15907 fi
15908 ;;
15909
15910sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15911 version_type=freebsd-elf
15912 need_lib_prefix=no
15913 need_version=no
15914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15915 soname_spec='${libname}${release}${shared_ext}$major'
15916 shlibpath_var=LD_LIBRARY_PATH
15917 hardcode_into_libs=yes
15918 if test "$with_gnu_ld" = yes; then
15919 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15920 shlibpath_overrides_runpath=no
15921 else
15922 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15923 shlibpath_overrides_runpath=yes
15924 case $host_os in
15925 sco3.2v5*)
15926 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15927 ;;
15928 esac
15929 fi
15930 sys_lib_dlsearch_path_spec='/usr/lib'
15931 ;;
15932
15933uts4*)
15934 version_type=linux
15935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15936 soname_spec='${libname}${release}${shared_ext}$major'
15937 shlibpath_var=LD_LIBRARY_PATH
15938 ;;
15939
15940*)
15941 dynamic_linker=no
15942 ;;
15943esac
15944{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15945echo "${ECHO_T}$dynamic_linker" >&6; }
15946test "$dynamic_linker" = no && can_build_shared=no
15947
15948if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15949 echo $ECHO_N "(cached) $ECHO_C" >&6
15950else
15951 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
15952fi
15953
15954sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15955if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15956 echo $ECHO_N "(cached) $ECHO_C" >&6
15957else
15958 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
15959fi
15960
15961sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15962
15963variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15964if test "$GCC" = yes; then
15965 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15966fi
15967
15968{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15969echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15970hardcode_action_F77=
15971if test -n "$hardcode_libdir_flag_spec_F77" || \
15972 test -n "$runpath_var_F77" || \
15973 test "X$hardcode_automatic_F77" = "Xyes" ; then
15974
15975 # We can hardcode non-existant directories.
15976 if test "$hardcode_direct_F77" != no &&
15977 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15978 # have to relink, otherwise we might link with an installed library
15979 # when we should be linking with a yet-to-be-installed one
15980 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15981 test "$hardcode_minus_L_F77" != no; then
15982 # Linking always hardcodes the temporary library directory.
15983 hardcode_action_F77=relink
15984 else
15985 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15986 hardcode_action_F77=immediate
15987 fi
15988else
15989 # We cannot hardcode anything, or else we can only hardcode existing
15990 # directories.
15991 hardcode_action_F77=unsupported
15992fi
15993{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15994echo "${ECHO_T}$hardcode_action_F77" >&6; }
15995
15996if test "$hardcode_action_F77" = relink; then
15997 # Fast installation is not supported
15998 enable_fast_install=no
15999elif test "$shlibpath_overrides_runpath" = yes ||
16000 test "$enable_shared" = no; then
16001 # Fast installation is not necessary
16002 enable_fast_install=needless
16003fi
16004
16005
16006# The else clause should only fire when bootstrapping the
16007# libtool distribution, otherwise you forgot to ship ltmain.sh
16008# with your package, and you will get complaints that there are
16009# no rules to generate ltmain.sh.
16010if test -f "$ltmain"; then
16011 # See if we are running on zsh, and set the options which allow our commands through
16012 # without removal of \ escapes.
16013 if test -n "${ZSH_VERSION+set}" ; then
16014 setopt NO_GLOB_SUBST
16015 fi
16016 # Now quote all the things that may contain metacharacters while being
16017 # careful not to overquote the AC_SUBSTed values. We take copies of the
16018 # variables and quote the copies for generation of the libtool script.
16019 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16020 SED SHELL STRIP \
16021 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16022 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16023 deplibs_check_method reload_flag reload_cmds need_locks \
16024 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16025 lt_cv_sys_global_symbol_to_c_name_address \
16026 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16027 old_postinstall_cmds old_postuninstall_cmds \
16028 compiler_F77 \
16029 CC_F77 \
16030 LD_F77 \
16031 lt_prog_compiler_wl_F77 \
16032 lt_prog_compiler_pic_F77 \
16033 lt_prog_compiler_static_F77 \
16034 lt_prog_compiler_no_builtin_flag_F77 \
16035 export_dynamic_flag_spec_F77 \
16036 thread_safe_flag_spec_F77 \
16037 whole_archive_flag_spec_F77 \
16038 enable_shared_with_static_runtimes_F77 \
16039 old_archive_cmds_F77 \
16040 old_archive_from_new_cmds_F77 \
16041 predep_objects_F77 \
16042 postdep_objects_F77 \
16043 predeps_F77 \
16044 postdeps_F77 \
16045 compiler_lib_search_path_F77 \
16046 compiler_lib_search_dirs_F77 \
16047 archive_cmds_F77 \
16048 archive_expsym_cmds_F77 \
16049 postinstall_cmds_F77 \
16050 postuninstall_cmds_F77 \
16051 old_archive_from_expsyms_cmds_F77 \
16052 allow_undefined_flag_F77 \
16053 no_undefined_flag_F77 \
16054 export_symbols_cmds_F77 \
16055 hardcode_libdir_flag_spec_F77 \
16056 hardcode_libdir_flag_spec_ld_F77 \
16057 hardcode_libdir_separator_F77 \
16058 hardcode_automatic_F77 \
16059 module_cmds_F77 \
16060 module_expsym_cmds_F77 \
16061 lt_cv_prog_compiler_c_o_F77 \
16062 fix_srcfile_path_F77 \
16063 exclude_expsyms_F77 \
16064 include_expsyms_F77; do
16065
16066 case $var in
16067 old_archive_cmds_F77 | \
16068 old_archive_from_new_cmds_F77 | \
16069 archive_cmds_F77 | \
16070 archive_expsym_cmds_F77 | \
16071 module_cmds_F77 | \
16072 module_expsym_cmds_F77 | \
16073 old_archive_from_expsyms_cmds_F77 | \
16074 export_symbols_cmds_F77 | \
16075 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16076 postinstall_cmds | postuninstall_cmds | \
16077 old_postinstall_cmds | old_postuninstall_cmds | \
16078 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16079 # Double-quote double-evaled strings.
16080 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16081 ;;
16082 *)
16083 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16084 ;;
16085 esac
16086 done
16087
16088 case $lt_echo in
16089 *'\$0 --fallback-echo"')
16090 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16091 ;;
16092 esac
16093
16094cfgfile="$ofile"
16095
16096 cat <<__EOF__ >> "$cfgfile"
16097# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16098
16099# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16100
16101# Shell to use when invoking shell scripts.
16102SHELL=$lt_SHELL
16103
16104# Whether or not to build shared libraries.
16105build_libtool_libs=$enable_shared
16106
16107# Whether or not to build static libraries.
16108build_old_libs=$enable_static
16109
16110# Whether or not to add -lc for building shared libraries.
16111build_libtool_need_lc=$archive_cmds_need_lc_F77
16112
16113# Whether or not to disallow shared libs when runtime libs are static
16114allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16115
16116# Whether or not to optimize for fast installation.
16117fast_install=$enable_fast_install
16118
16119# The host system.
16120host_alias=$host_alias
16121host=$host
16122host_os=$host_os
16123
16124# The build system.
16125build_alias=$build_alias
16126build=$build
16127build_os=$build_os
16128
16129# An echo program that does not interpret backslashes.
16130echo=$lt_echo
16131
16132# The archiver.
16133AR=$lt_AR
16134AR_FLAGS=$lt_AR_FLAGS
16135
16136# A C compiler.
16137LTCC=$lt_LTCC
16138
16139# LTCC compiler flags.
16140LTCFLAGS=$lt_LTCFLAGS
16141
16142# A language-specific compiler.
16143CC=$lt_compiler_F77
16144
16145# Is the compiler the GNU C compiler?
16146with_gcc=$GCC_F77
16147
16148# An ERE matcher.
16149EGREP=$lt_EGREP
16150
16151# The linker used to build libraries.
16152LD=$lt_LD_F77
16153
16154# Whether we need hard or soft links.
16155LN_S=$lt_LN_S
16156
16157# A BSD-compatible nm program.
16158NM=$lt_NM
16159
16160# A symbol stripping program
16161STRIP=$lt_STRIP
16162
16163# Used to examine libraries when file_magic_cmd begins "file"
16164MAGIC_CMD=$MAGIC_CMD
16165
16166# Used on cygwin: DLL creation program.
16167DLLTOOL="$DLLTOOL"
16168
16169# Used on cygwin: object dumper.
16170OBJDUMP="$OBJDUMP"
16171
16172# Used on cygwin: assembler.
16173AS="$AS"
16174
16175# The name of the directory that contains temporary libtool files.
16176objdir=$objdir
16177
16178# How to create reloadable object files.
16179reload_flag=$lt_reload_flag
16180reload_cmds=$lt_reload_cmds
16181
16182# How to pass a linker flag through the compiler.
16183wl=$lt_lt_prog_compiler_wl_F77
16184
16185# Object file suffix (normally "o").
16186objext="$ac_objext"
16187
16188# Old archive suffix (normally "a").
16189libext="$libext"
16190
16191# Shared library suffix (normally ".so").
16192shrext_cmds='$shrext_cmds'
16193
16194# Executable file suffix (normally "").
16195exeext="$exeext"
16196
16197# Additional compiler flags for building library objects.
16198pic_flag=$lt_lt_prog_compiler_pic_F77
16199pic_mode=$pic_mode
16200
16201# What is the maximum length of a command?
16202max_cmd_len=$lt_cv_sys_max_cmd_len
16203
16204# Does compiler simultaneously support -c and -o options?
16205compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16206
16207# Must we lock files when doing compilation?
16208need_locks=$lt_need_locks
16209
16210# Do we need the lib prefix for modules?
16211need_lib_prefix=$need_lib_prefix
16212
16213# Do we need a version for libraries?
16214need_version=$need_version
16215
16216# Whether dlopen is supported.
16217dlopen_support=$enable_dlopen
16218
16219# Whether dlopen of programs is supported.
16220dlopen_self=$enable_dlopen_self
16221
16222# Whether dlopen of statically linked programs is supported.
16223dlopen_self_static=$enable_dlopen_self_static
16224
16225# Compiler flag to prevent dynamic linking.
16226link_static_flag=$lt_lt_prog_compiler_static_F77
16227
16228# Compiler flag to turn off builtin functions.
16229no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16230
16231# Compiler flag to allow reflexive dlopens.
16232export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16233
16234# Compiler flag to generate shared objects directly from archives.
16235whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16236
16237# Compiler flag to generate thread-safe objects.
16238thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16239
16240# Library versioning type.
16241version_type=$version_type
16242
16243# Format of library name prefix.
16244libname_spec=$lt_libname_spec
16245
16246# List of archive names. First name is the real one, the rest are links.
16247# The last name is the one that the linker finds with -lNAME.
16248library_names_spec=$lt_library_names_spec
16249
16250# The coded name of the library, if different from the real name.
16251soname_spec=$lt_soname_spec
16252
16253# Commands used to build and install an old-style archive.
16254RANLIB=$lt_RANLIB
16255old_archive_cmds=$lt_old_archive_cmds_F77
16256old_postinstall_cmds=$lt_old_postinstall_cmds
16257old_postuninstall_cmds=$lt_old_postuninstall_cmds
16258
16259# Create an old-style archive from a shared archive.
16260old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16261
16262# Create a temporary old-style archive to link instead of a shared archive.
16263old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16264
16265# Commands used to build and install a shared archive.
16266archive_cmds=$lt_archive_cmds_F77
16267archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16268postinstall_cmds=$lt_postinstall_cmds
16269postuninstall_cmds=$lt_postuninstall_cmds
16270
16271# Commands used to build a loadable module (assumed same as above if empty)
16272module_cmds=$lt_module_cmds_F77
16273module_expsym_cmds=$lt_module_expsym_cmds_F77
16274
16275# Commands to strip libraries.
16276old_striplib=$lt_old_striplib
16277striplib=$lt_striplib
16278
16279# Dependencies to place before the objects being linked to create a
16280# shared library.
16281predep_objects=$lt_predep_objects_F77
16282
16283# Dependencies to place after the objects being linked to create a
16284# shared library.
16285postdep_objects=$lt_postdep_objects_F77
16286
16287# Dependencies to place before the objects being linked to create a
16288# shared library.
16289predeps=$lt_predeps_F77
16290
16291# Dependencies to place after the objects being linked to create a
16292# shared library.
16293postdeps=$lt_postdeps_F77
16294
16295# The directories searched by this compiler when creating a shared
16296# library
16297compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16298
16299# The library search path used internally by the compiler when linking
16300# a shared library.
16301compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16302
16303# Method to check whether dependent libraries are shared objects.
16304deplibs_check_method=$lt_deplibs_check_method
16305
16306# Command to use when deplibs_check_method == file_magic.
16307file_magic_cmd=$lt_file_magic_cmd
16308
16309# Flag that allows shared libraries with undefined symbols to be built.
16310allow_undefined_flag=$lt_allow_undefined_flag_F77
16311
16312# Flag that forces no undefined symbols.
16313no_undefined_flag=$lt_no_undefined_flag_F77
16314
16315# Commands used to finish a libtool library installation in a directory.
16316finish_cmds=$lt_finish_cmds
16317
16318# Same as above, but a single script fragment to be evaled but not shown.
16319finish_eval=$lt_finish_eval
16320
16321# Take the output of nm and produce a listing of raw symbols and C names.
16322global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16323
16324# Transform the output of nm in a proper C declaration
16325global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16326
16327# Transform the output of nm in a C name address pair
16328global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16329
16330# This is the shared library runtime path variable.
16331runpath_var=$runpath_var
16332
16333# This is the shared library path variable.
16334shlibpath_var=$shlibpath_var
16335
16336# Is shlibpath searched before the hard-coded library search path?
16337shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16338
16339# How to hardcode a shared library path into an executable.
16340hardcode_action=$hardcode_action_F77
16341
16342# Whether we should hardcode library paths into libraries.
16343hardcode_into_libs=$hardcode_into_libs
16344
16345# Flag to hardcode \$libdir into a binary during linking.
16346# This must work even if \$libdir does not exist.
16347hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16348
16349# If ld is used when linking, flag to hardcode \$libdir into
16350# a binary during linking. This must work even if \$libdir does
16351# not exist.
16352hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16353
16354# Whether we need a single -rpath flag with a separated argument.
16355hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16356
16357# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16358# resulting binary.
16359hardcode_direct=$hardcode_direct_F77
16360
16361# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16362# resulting binary.
16363hardcode_minus_L=$hardcode_minus_L_F77
16364
16365# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16366# the resulting binary.
16367hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16368
16369# Set to yes if building a shared library automatically hardcodes DIR into the library
16370# and all subsequent libraries and executables linked against it.
16371hardcode_automatic=$hardcode_automatic_F77
16372
16373# Variables whose values should be saved in libtool wrapper scripts and
16374# restored at relink time.
16375variables_saved_for_relink="$variables_saved_for_relink"
16376
16377# Whether libtool must link a program against all its dependency libraries.
16378link_all_deplibs=$link_all_deplibs_F77
16379
16380# Compile-time system search path for libraries
16381sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16382
16383# Run-time system search path for libraries
16384sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16385
16386# Fix the shell variable \$srcfile for the compiler.
16387fix_srcfile_path=$lt_fix_srcfile_path
16388
16389# Set to yes if exported symbols are required.
16390always_export_symbols=$always_export_symbols_F77
16391
16392# The commands to list exported symbols.
16393export_symbols_cmds=$lt_export_symbols_cmds_F77
16394
16395# The commands to extract the exported symbol list from a shared archive.
16396extract_expsyms_cmds=$lt_extract_expsyms_cmds
16397
16398# Symbols that should not be listed in the preloaded symbols.
16399exclude_expsyms=$lt_exclude_expsyms_F77
16400
16401# Symbols that must always be exported.
16402include_expsyms=$lt_include_expsyms_F77
16403
16404# ### END LIBTOOL TAG CONFIG: $tagname
16405
16406__EOF__
16407
16408
16409else
16410 # If there is no Makefile yet, we rely on a make rule to execute
16411 # `config.status --recheck' to rerun these tests and create the
16412 # libtool script then.
16413 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16414 if test -f "$ltmain_in"; then
16415 test -f Makefile && make "$ltmain"
16416 fi
16417fi
16418
16419
16420ac_ext=c
16421ac_cpp='$CPP $CPPFLAGS'
16422ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16423ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16424ac_compiler_gnu=$ac_cv_c_compiler_gnu
16425
16426CC="$lt_save_CC"
16427
16428 else
16429 tagname=""
16430 fi
16431 ;;
16432
16433 GCJ)
16434 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16435
16436
16437# Source file extension for Java test sources.
16438ac_ext=java
16439
16440# Object file extension for compiled Java test sources.
16441objext=o
16442objext_GCJ=$objext
16443
16444# Code to be used in simple compile tests
16445lt_simple_compile_test_code="class foo {}"
16446
16447# Code to be used in simple link tests
16448lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16449
16450# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16451
16452# If no C compiler was specified, use CC.
16453LTCC=${LTCC-"$CC"}
16454
16455# If no C compiler flags were specified, use CFLAGS.
16456LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16457
16458# Allow CC to be a program name with arguments.
16459compiler=$CC
16460
16461
16462# save warnings/boilerplate of simple test code
16463ac_outfile=conftest.$ac_objext
16464echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16465eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16466_lt_compiler_boilerplate=`cat conftest.err`
16467$rm conftest*
16468
16469ac_outfile=conftest.$ac_objext
16470echo "$lt_simple_link_test_code" >conftest.$ac_ext
16471eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16472_lt_linker_boilerplate=`cat conftest.err`
16473$rm -r conftest*
16474
16475
16476# Allow CC to be a program name with arguments.
16477lt_save_CC="$CC"
16478CC=${GCJ-"gcj"}
16479compiler=$CC
16480compiler_GCJ=$CC
16481for cc_temp in $compiler""; do
16482 case $cc_temp in
16483 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16484 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16485 \-*) ;;
16486 *) break;;
16487 esac
16488done
16489cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16490
16491
16492# GCJ did not exist at the time GCC didn't implicitly link libc in.
16493archive_cmds_need_lc_GCJ=no
16494
16495old_archive_cmds_GCJ=$old_archive_cmds
16496
16497
16498lt_prog_compiler_no_builtin_flag_GCJ=
16499
16500if test "$GCC" = yes; then
16501 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16502
16503
16504{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16505echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16506if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16507 echo $ECHO_N "(cached) $ECHO_C" >&6
16508else
16509 lt_cv_prog_compiler_rtti_exceptions=no
16510 ac_outfile=conftest.$ac_objext
16511 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16512 lt_compiler_flag="-fno-rtti -fno-exceptions"
16513 # Insert the option either (1) after the last *FLAGS variable, or
16514 # (2) before a word containing "conftest.", or (3) at the end.
16515 # Note that $ac_compile itself does not contain backslashes and begins
16516 # with a dollar sign (not a hyphen), so the echo should work correctly.
16517 # The option is referenced via a variable to avoid confusing sed.
16518 lt_compile=`echo "$ac_compile" | $SED \
16519 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16520 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16521 -e 's:$: $lt_compiler_flag:'`
16522 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
16523 (eval "$lt_compile" 2>conftest.err)
16524 ac_status=$?
16525 cat conftest.err >&5
16526 echo "$as_me:__oline__: \$? = $ac_status" >&5
16527 if (exit $ac_status) && test -s "$ac_outfile"; then
16528 # The compiler can only warn and ignore the option if not recognized
16529 # So say no if there are warnings other than the usual output.
16530 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16531 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16532 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16533 lt_cv_prog_compiler_rtti_exceptions=yes
16534 fi
16535 fi
16536 $rm conftest*
16537
16538fi
16539{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16540echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16541
16542if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16543 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16544else
16545 :
16546fi
16547
16548fi
16549
16550lt_prog_compiler_wl_GCJ=
16551lt_prog_compiler_pic_GCJ=
16552lt_prog_compiler_static_GCJ=
16553
16554{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16555echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16556
16557 if test "$GCC" = yes; then
16558 lt_prog_compiler_wl_GCJ='-Wl,'
16559 lt_prog_compiler_static_GCJ='-static'
16560
16561 case $host_os in
16562 aix*)
16563 # All AIX code is PIC.
16564 if test "$host_cpu" = ia64; then
16565 # AIX 5 now supports IA64 processor
16566 lt_prog_compiler_static_GCJ='-Bstatic'
16567 fi
16568 ;;
16569
16570 amigaos*)
16571 # FIXME: we need at least 68020 code to build shared libraries, but
16572 # adding the `-m68020' flag to GCC prevents building anything better,
16573 # like `-m68040'.
16574 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16575 ;;
16576
16577 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16578 # PIC is the default for these OSes.
16579 ;;
16580
16581 mingw* | cygwin* | pw32* | os2*)
16582 # This hack is so that the source file can tell whether it is being
16583 # built for inclusion in a dll (and should export symbols for example).
16584 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16585 # (--disable-auto-import) libraries
16586
16587 ;;
16588
16589 darwin* | rhapsody*)
16590 # PIC is the default on this platform
16591 # Common symbols not allowed in MH_DYLIB files
16592 lt_prog_compiler_pic_GCJ='-fno-common'
16593 ;;
16594
16595 interix[3-9]*)
16596 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16597 # Instead, we relocate shared libraries at runtime.
16598 ;;
16599
16600 msdosdjgpp*)
16601 # Just because we use GCC doesn't mean we suddenly get shared libraries
16602 # on systems that don't support them.
16603 lt_prog_compiler_can_build_shared_GCJ=no
16604 enable_shared=no
16605 ;;
16606
16607 sysv4*MP*)
16608 if test -d /usr/nec; then
16609 lt_prog_compiler_pic_GCJ=-Kconform_pic
16610 fi
16611 ;;
16612
16613 hpux*)
16614 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16615 # not for PA HP-UX.
16616 case $host_cpu in
16617 hppa*64*|ia64*)
16618 # +Z the default
16619 ;;
16620 *)
16621 lt_prog_compiler_pic_GCJ='-fPIC'
16622 ;;
16623 esac
16624 ;;
16625
16626 *)
16627 lt_prog_compiler_pic_GCJ='-fPIC'
16628 ;;
16629 esac
16630 else
16631 # PORTME Check for flag to pass linker flags through the system compiler.
16632 case $host_os in
16633 aix*)
16634 lt_prog_compiler_wl_GCJ='-Wl,'
16635 if test "$host_cpu" = ia64; then
16636 # AIX 5 now supports IA64 processor
16637 lt_prog_compiler_static_GCJ='-Bstatic'
16638 else
16639 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16640 fi
16641 ;;
16642 darwin*)
16643 # PIC is the default on this platform
16644 # Common symbols not allowed in MH_DYLIB files
16645 case $cc_basename in
16646 xlc*)
16647 lt_prog_compiler_pic_GCJ='-qnocommon'
16648 lt_prog_compiler_wl_GCJ='-Wl,'
16649 ;;
16650 esac
16651 ;;
16652
16653 mingw* | cygwin* | pw32* | os2*)
16654 # This hack is so that the source file can tell whether it is being
16655 # built for inclusion in a dll (and should export symbols for example).
16656
16657 ;;
16658
16659 hpux9* | hpux10* | hpux11*)
16660 lt_prog_compiler_wl_GCJ='-Wl,'
16661 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16662 # not for PA HP-UX.
16663 case $host_cpu in
16664 hppa*64*|ia64*)
16665 # +Z the default
16666 ;;
16667 *)
16668 lt_prog_compiler_pic_GCJ='+Z'
16669 ;;
16670 esac
16671 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16672 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16673 ;;
16674
16675 irix5* | irix6* | nonstopux*)
16676 lt_prog_compiler_wl_GCJ='-Wl,'
16677 # PIC (with -KPIC) is the default.
16678 lt_prog_compiler_static_GCJ='-non_shared'
16679 ;;
16680
16681 newsos6)
16682 lt_prog_compiler_pic_GCJ='-KPIC'
16683 lt_prog_compiler_static_GCJ='-Bstatic'
16684 ;;
16685
16686 linux* | k*bsd*-gnu)
16687 case $cc_basename in
16688 icc* | ecc*)
16689 lt_prog_compiler_wl_GCJ='-Wl,'
16690 lt_prog_compiler_pic_GCJ='-KPIC'
16691 lt_prog_compiler_static_GCJ='-static'
16692 ;;
16693 pgcc* | pgf77* | pgf90* | pgf95*)
16694 # Portland Group compilers (*not* the Pentium gcc compiler,
16695 # which looks to be a dead project)
16696 lt_prog_compiler_wl_GCJ='-Wl,'
16697 lt_prog_compiler_pic_GCJ='-fpic'
16698 lt_prog_compiler_static_GCJ='-Bstatic'
16699 ;;
16700 ccc*)
16701 lt_prog_compiler_wl_GCJ='-Wl,'
16702 # All Alpha code is PIC.
16703 lt_prog_compiler_static_GCJ='-non_shared'
16704 ;;
16705 *)
16706 case `$CC -V 2>&1 | sed 5q` in
16707 *Sun\ C*)
16708 # Sun C 5.9
16709 lt_prog_compiler_pic_GCJ='-KPIC'
16710 lt_prog_compiler_static_GCJ='-Bstatic'
16711 lt_prog_compiler_wl_GCJ='-Wl,'
16712 ;;
16713 *Sun\ F*)
16714 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16715 lt_prog_compiler_pic_GCJ='-KPIC'
16716 lt_prog_compiler_static_GCJ='-Bstatic'
16717 lt_prog_compiler_wl_GCJ=''
16718 ;;
16719 esac
16720 ;;
16721 esac
16722 ;;
16723
16724 osf3* | osf4* | osf5*)
16725 lt_prog_compiler_wl_GCJ='-Wl,'
16726 # All OSF/1 code is PIC.
16727 lt_prog_compiler_static_GCJ='-non_shared'
16728 ;;
16729
16730 rdos*)
16731 lt_prog_compiler_static_GCJ='-non_shared'
16732 ;;
16733
16734 solaris*)
16735 lt_prog_compiler_pic_GCJ='-KPIC'
16736 lt_prog_compiler_static_GCJ='-Bstatic'
16737 case $cc_basename in
16738 f77* | f90* | f95*)
16739 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16740 *)
16741 lt_prog_compiler_wl_GCJ='-Wl,';;
16742 esac
16743 ;;
16744
16745 sunos4*)
16746 lt_prog_compiler_wl_GCJ='-Qoption ld '
16747 lt_prog_compiler_pic_GCJ='-PIC'
16748 lt_prog_compiler_static_GCJ='-Bstatic'
16749 ;;
16750
16751 sysv4 | sysv4.2uw2* | sysv4.3*)
16752 lt_prog_compiler_wl_GCJ='-Wl,'
16753 lt_prog_compiler_pic_GCJ='-KPIC'
16754 lt_prog_compiler_static_GCJ='-Bstatic'
16755 ;;
16756
16757 sysv4*MP*)
16758 if test -d /usr/nec ;then
16759 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16760 lt_prog_compiler_static_GCJ='-Bstatic'
16761 fi
16762 ;;
16763
16764 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16765 lt_prog_compiler_wl_GCJ='-Wl,'
16766 lt_prog_compiler_pic_GCJ='-KPIC'
16767 lt_prog_compiler_static_GCJ='-Bstatic'
16768 ;;
16769
16770 unicos*)
16771 lt_prog_compiler_wl_GCJ='-Wl,'
16772 lt_prog_compiler_can_build_shared_GCJ=no
16773 ;;
16774
16775 uts4*)
16776 lt_prog_compiler_pic_GCJ='-pic'
16777 lt_prog_compiler_static_GCJ='-Bstatic'
16778 ;;
16779
16780 *)
16781 lt_prog_compiler_can_build_shared_GCJ=no
16782 ;;
16783 esac
16784 fi
16785
16786{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16787echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16788
16789#
16790# Check to make sure the PIC flag actually works.
16791#
16792if test -n "$lt_prog_compiler_pic_GCJ"; then
16793
16794{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16795echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16796if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
16797 echo $ECHO_N "(cached) $ECHO_C" >&6
16798else
16799 lt_cv_prog_compiler_pic_works_GCJ=no
16800 ac_outfile=conftest.$ac_objext
16801 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16802 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16803 # Insert the option either (1) after the last *FLAGS variable, or
16804 # (2) before a word containing "conftest.", or (3) at the end.
16805 # Note that $ac_compile itself does not contain backslashes and begins
16806 # with a dollar sign (not a hyphen), so the echo should work correctly.
16807 # The option is referenced via a variable to avoid confusing sed.
16808 lt_compile=`echo "$ac_compile" | $SED \
16809 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16810 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16811 -e 's:$: $lt_compiler_flag:'`
16812 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
16813 (eval "$lt_compile" 2>conftest.err)
16814 ac_status=$?
16815 cat conftest.err >&5
16816 echo "$as_me:__oline__: \$? = $ac_status" >&5
16817 if (exit $ac_status) && test -s "$ac_outfile"; then
16818 # The compiler can only warn and ignore the option if not recognized
16819 # So say no if there are warnings other than the usual output.
16820 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16821 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16822 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16823 lt_cv_prog_compiler_pic_works_GCJ=yes
16824 fi
16825 fi
16826 $rm conftest*
16827
16828fi
16829{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
16830echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
16831
16832if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
16833 case $lt_prog_compiler_pic_GCJ in
16834 "" | " "*) ;;
16835 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16836 esac
16837else
16838 lt_prog_compiler_pic_GCJ=
16839 lt_prog_compiler_can_build_shared_GCJ=no
16840fi
16841
16842fi
16843case $host_os in
16844 # For platforms which do not support PIC, -DPIC is meaningless:
16845 *djgpp*)
16846 lt_prog_compiler_pic_GCJ=
16847 ;;
16848 *)
16849 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16850 ;;
16851esac
16852
16853#
16854# Check to make sure the static flag actually works.
16855#
16856wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16857{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16858echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16859if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
16860 echo $ECHO_N "(cached) $ECHO_C" >&6
16861else
16862 lt_cv_prog_compiler_static_works_GCJ=no
16863 save_LDFLAGS="$LDFLAGS"
16864 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16865 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16866 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16867 # The linker can only warn and ignore the option if not recognized
16868 # So say no if there are warnings
16869 if test -s conftest.err; then
16870 # Append any errors to the config.log.
16871 cat conftest.err 1>&5
16872 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16873 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16874 if diff conftest.exp conftest.er2 >/dev/null; then
16875 lt_cv_prog_compiler_static_works_GCJ=yes
16876 fi
16877 else
16878 lt_cv_prog_compiler_static_works_GCJ=yes
16879 fi
16880 fi
16881 $rm -r conftest*
16882 LDFLAGS="$save_LDFLAGS"
16883
16884fi
16885{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
16886echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
16887
16888if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
16889 :
16890else
16891 lt_prog_compiler_static_GCJ=
16892fi
16893
16894
16895{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16896echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16897if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16898 echo $ECHO_N "(cached) $ECHO_C" >&6
16899else
16900 lt_cv_prog_compiler_c_o_GCJ=no
16901 $rm -r conftest 2>/dev/null
16902 mkdir conftest
16903 cd conftest
16904 mkdir out
16905 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16906
16907 lt_compiler_flag="-o out/conftest2.$ac_objext"
16908 # Insert the option either (1) after the last *FLAGS variable, or
16909 # (2) before a word containing "conftest.", or (3) at the end.
16910 # Note that $ac_compile itself does not contain backslashes and begins
16911 # with a dollar sign (not a hyphen), so the echo should work correctly.
16912 lt_compile=`echo "$ac_compile" | $SED \
16913 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16914 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16915 -e 's:$: $lt_compiler_flag:'`
16916 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
16917 (eval "$lt_compile" 2>out/conftest.err)
16918 ac_status=$?
16919 cat out/conftest.err >&5
16920 echo "$as_me:__oline__: \$? = $ac_status" >&5
16921 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16922 then
16923 # The compiler can only warn and ignore the option if not recognized
16924 # So say no if there are warnings
16925 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16926 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16927 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16928 lt_cv_prog_compiler_c_o_GCJ=yes
16929 fi
16930 fi
16931 chmod u+w . 2>&5
16932 $rm conftest*
16933 # SGI C++ compiler will create directory out/ii_files/ for
16934 # template instantiation
16935 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16936 $rm out/* && rmdir out
16937 cd ..
16938 rmdir conftest
16939 $rm conftest*
16940
16941fi
16942{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16943echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16944
16945
16946hard_links="nottested"
16947if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16948 # do not overwrite the value of need_locks provided by the user
16949 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16950echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16951 hard_links=yes
16952 $rm conftest*
16953 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16954 touch conftest.a
16955 ln conftest.a conftest.b 2>&5 || hard_links=no
16956 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16957 { echo "$as_me:$LINENO: result: $hard_links" >&5
16958echo "${ECHO_T}$hard_links" >&6; }
16959 if test "$hard_links" = no; then
16960 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16961echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16962 need_locks=warn
16963 fi
16964else
16965 need_locks=no
16966fi
16967
16968{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16969echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16970
16971 runpath_var=
16972 allow_undefined_flag_GCJ=
16973 enable_shared_with_static_runtimes_GCJ=no
16974 archive_cmds_GCJ=
16975 archive_expsym_cmds_GCJ=
16976 old_archive_From_new_cmds_GCJ=
16977 old_archive_from_expsyms_cmds_GCJ=
16978 export_dynamic_flag_spec_GCJ=
16979 whole_archive_flag_spec_GCJ=
16980 thread_safe_flag_spec_GCJ=
16981 hardcode_libdir_flag_spec_GCJ=
16982 hardcode_libdir_flag_spec_ld_GCJ=
16983 hardcode_libdir_separator_GCJ=
16984 hardcode_direct_GCJ=no
16985 hardcode_minus_L_GCJ=no
16986 hardcode_shlibpath_var_GCJ=unsupported
16987 link_all_deplibs_GCJ=unknown
16988 hardcode_automatic_GCJ=no
16989 module_cmds_GCJ=
16990 module_expsym_cmds_GCJ=
16991 always_export_symbols_GCJ=no
16992 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16993 # include_expsyms should be a list of space-separated symbols to be *always*
16994 # included in the symbol list
16995 include_expsyms_GCJ=
16996 # exclude_expsyms can be an extended regexp of symbols to exclude
16997 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16998 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16999 # as well as any symbol that contains `d'.
17000 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17001 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17002 # platforms (ab)use it in PIC code, but their linkers get confused if
17003 # the symbol is explicitly referenced. Since portable code cannot
17004 # rely on this symbol name, it's probably fine to never include it in
17005 # preloaded symbol tables.
17006 # Exclude shared library initialization/finalization symbols.
17007 extract_expsyms_cmds=
17008 # Just being paranoid about ensuring that cc_basename is set.
17009 for cc_temp in $compiler""; do
17010 case $cc_temp in
17011 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17012 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17013 \-*) ;;
17014 *) break;;
17015 esac
17016done
17017cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17018
17019 case $host_os in
17020 cygwin* | mingw* | pw32*)
17021 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17022 # When not using gcc, we currently assume that we are using
17023 # Microsoft Visual C++.
17024 if test "$GCC" != yes; then
17025 with_gnu_ld=no
17026 fi
17027 ;;
17028 interix*)
17029 # we just hope/assume this is gcc and not c89 (= MSVC++)
17030 with_gnu_ld=yes
17031 ;;
17032 openbsd*)
17033 with_gnu_ld=no
17034 ;;
17035 esac
17036
17037 ld_shlibs_GCJ=yes
17038 if test "$with_gnu_ld" = yes; then
17039 # If archive_cmds runs LD, not CC, wlarc should be empty
17040 wlarc='${wl}'
17041
17042 # Set some defaults for GNU ld with shared library support. These
17043 # are reset later if shared libraries are not supported. Putting them
17044 # here allows them to be overridden if necessary.
17045 runpath_var=LD_RUN_PATH
17046 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17047 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17048 # ancient GNU ld didn't support --whole-archive et. al.
17049 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17050 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17051 else
17052 whole_archive_flag_spec_GCJ=
17053 fi
17054 supports_anon_versioning=no
17055 case `$LD -v 2>/dev/null` in
17056 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17057 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17058 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17059 *\ 2.11.*) ;; # other 2.11 versions
17060 *) supports_anon_versioning=yes ;;
17061 esac
17062
17063 # See if GNU ld supports shared libraries.
17064 case $host_os in
17065 aix[3-9]*)
17066 # On AIX/PPC, the GNU linker is very broken
17067 if test "$host_cpu" != ia64; then
17068 ld_shlibs_GCJ=no
17069 cat <<EOF 1>&2
17070
17071*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17072*** to be unable to reliably create shared libraries on AIX.
17073*** Therefore, libtool is disabling shared libraries support. If you
17074*** really care for shared libraries, you may want to modify your PATH
17075*** so that a non-GNU linker is found, and then restart.
17076
17077EOF
17078 fi
17079 ;;
17080
17081 amigaos*)
17082 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)'
17083 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17084 hardcode_minus_L_GCJ=yes
17085
17086 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17087 # that the semantics of dynamic libraries on AmigaOS, at least up
17088 # to version 4, is to share data among multiple programs linked
17089 # with the same dynamic library. Since this doesn't match the
17090 # behavior of shared libraries on other platforms, we can't use
17091 # them.
17092 ld_shlibs_GCJ=no
17093 ;;
17094
17095 beos*)
17096 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17097 allow_undefined_flag_GCJ=unsupported
17098 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17099 # support --undefined. This deserves some investigation. FIXME
17100 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17101 else
17102 ld_shlibs_GCJ=no
17103 fi
17104 ;;
17105
17106 cygwin* | mingw* | pw32*)
17107 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17108 # as there is no search path for DLLs.
17109 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17110 allow_undefined_flag_GCJ=unsupported
17111 always_export_symbols_GCJ=no
17112 enable_shared_with_static_runtimes_GCJ=yes
17113 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17114
17115 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17116 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17117 # If the export-symbols file already is a .def file (1st line
17118 # is EXPORTS), use it as is; otherwise, prepend...
17119 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17120 cp $export_symbols $output_objdir/$soname.def;
17121 else
17122 echo EXPORTS > $output_objdir/$soname.def;
17123 cat $export_symbols >> $output_objdir/$soname.def;
17124 fi~
17125 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17126 else
17127 ld_shlibs_GCJ=no
17128 fi
17129 ;;
17130
17131 interix[3-9]*)
17132 hardcode_direct_GCJ=no
17133 hardcode_shlibpath_var_GCJ=no
17134 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17135 export_dynamic_flag_spec_GCJ='${wl}-E'
17136 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17137 # Instead, shared libraries are loaded at an image base (0x10000000 by
17138 # default) and relocated if they conflict, which is a slow very memory
17139 # consuming and fragmenting process. To avoid this, we pick a random,
17140 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17141 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17142 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'
17143 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'
17144 ;;
17145
17146 gnu* | linux* | k*bsd*-gnu)
17147 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17148 tmp_addflag=
17149 case $cc_basename,$host_cpu in
17150 pgcc*) # Portland Group C compiler
17151 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'
17152 tmp_addflag=' $pic_flag'
17153 ;;
17154 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17155 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'
17156 tmp_addflag=' $pic_flag -Mnomain' ;;
17157 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17158 tmp_addflag=' -i_dynamic' ;;
17159 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17160 tmp_addflag=' -i_dynamic -nofor_main' ;;
17161 ifc* | ifort*) # Intel Fortran compiler
17162 tmp_addflag=' -nofor_main' ;;
17163 esac
17164 case `$CC -V 2>&1 | sed 5q` in
17165 *Sun\ C*) # Sun C 5.9
17166 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'
17167 tmp_sharedflag='-G' ;;
17168 *Sun\ F*) # Sun Fortran 8.3
17169 tmp_sharedflag='-G' ;;
17170 *)
17171 tmp_sharedflag='-shared' ;;
17172 esac
17173 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17174
17175 if test $supports_anon_versioning = yes; then
17176 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17177 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17178 $echo "local: *; };" >> $output_objdir/$libname.ver~
17179 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17180 fi
17181 link_all_deplibs_GCJ=no
17182 else
17183 ld_shlibs_GCJ=no
17184 fi
17185 ;;
17186
17187 netbsd* | netbsdelf*-gnu)
17188 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17189 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17190 wlarc=
17191 else
17192 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17193 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17194 fi
17195 ;;
17196
17197 solaris*)
17198 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17199 ld_shlibs_GCJ=no
17200 cat <<EOF 1>&2
17201
17202*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17203*** create shared libraries on Solaris systems. Therefore, libtool
17204*** is disabling shared libraries support. We urge you to upgrade GNU
17205*** binutils to release 2.9.1 or newer. Another option is to modify
17206*** your PATH or compiler configuration so that the native linker is
17207*** used, and then restart.
17208
17209EOF
17210 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17211 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17212 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17213 else
17214 ld_shlibs_GCJ=no
17215 fi
17216 ;;
17217
17218 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17219 case `$LD -v 2>&1` in
17220 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17221 ld_shlibs_GCJ=no
17222 cat <<_LT_EOF 1>&2
17223
17224*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17225*** reliably create shared libraries on SCO systems. Therefore, libtool
17226*** is disabling shared libraries support. We urge you to upgrade GNU
17227*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17228*** your PATH or compiler configuration so that the native linker is
17229*** used, and then restart.
17230
17231_LT_EOF
17232 ;;
17233 *)
17234 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17235 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17236 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17237 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17238 else
17239 ld_shlibs_GCJ=no
17240 fi
17241 ;;
17242 esac
17243 ;;
17244
17245 sunos4*)
17246 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17247 wlarc=
17248 hardcode_direct_GCJ=yes
17249 hardcode_shlibpath_var_GCJ=no
17250 ;;
17251
17252 *)
17253 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17254 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17255 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17256 else
17257 ld_shlibs_GCJ=no
17258 fi
17259 ;;
17260 esac
17261
17262 if test "$ld_shlibs_GCJ" = no; then
17263 runpath_var=
17264 hardcode_libdir_flag_spec_GCJ=
17265 export_dynamic_flag_spec_GCJ=
17266 whole_archive_flag_spec_GCJ=
17267 fi
17268 else
17269 # PORTME fill in a description of your system's linker (not GNU ld)
17270 case $host_os in
17271 aix3*)
17272 allow_undefined_flag_GCJ=unsupported
17273 always_export_symbols_GCJ=yes
17274 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'
17275 # Note: this linker hardcodes the directories in LIBPATH if there
17276 # are no directories specified by -L.
17277 hardcode_minus_L_GCJ=yes
17278 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17279 # Neither direct hardcoding nor static linking is supported with a
17280 # broken collect2.
17281 hardcode_direct_GCJ=unsupported
17282 fi
17283 ;;
17284
17285 aix[4-9]*)
17286 if test "$host_cpu" = ia64; then
17287 # On IA64, the linker does run time linking by default, so we don't
17288 # have to do anything special.
17289 aix_use_runtimelinking=no
17290 exp_sym_flag='-Bexport'
17291 no_entry_flag=""
17292 else
17293 # If we're using GNU nm, then we don't want the "-C" option.
17294 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17295 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17296 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'
17297 else
17298 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'
17299 fi
17300 aix_use_runtimelinking=no
17301
17302 # Test if we are trying to use run time linking or normal
17303 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17304 # need to do runtime linking.
17305 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17306 for ld_flag in $LDFLAGS; do
17307 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17308 aix_use_runtimelinking=yes
17309 break
17310 fi
17311 done
17312 ;;
17313 esac
17314
17315 exp_sym_flag='-bexport'
17316 no_entry_flag='-bnoentry'
17317 fi
17318
17319 # When large executables or shared objects are built, AIX ld can
17320 # have problems creating the table of contents. If linking a library
17321 # or program results in "error TOC overflow" add -mminimal-toc to
17322 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17323 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17324
17325 archive_cmds_GCJ=''
17326 hardcode_direct_GCJ=yes
17327 hardcode_libdir_separator_GCJ=':'
17328 link_all_deplibs_GCJ=yes
17329
17330 if test "$GCC" = yes; then
17331 case $host_os in aix4.[012]|aix4.[012].*)
17332 # We only want to do this on AIX 4.2 and lower, the check
17333 # below for broken collect2 doesn't work under 4.3+
17334 collect2name=`${CC} -print-prog-name=collect2`
17335 if test -f "$collect2name" && \
17336 strings "$collect2name" | grep resolve_lib_name >/dev/null
17337 then
17338 # We have reworked collect2
17339 :
17340 else
17341 # We have old collect2
17342 hardcode_direct_GCJ=unsupported
17343 # It fails to find uninstalled libraries when the uninstalled
17344 # path is not listed in the libpath. Setting hardcode_minus_L
17345 # to unsupported forces relinking
17346 hardcode_minus_L_GCJ=yes
17347 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17348 hardcode_libdir_separator_GCJ=
17349 fi
17350 ;;
17351 esac
17352 shared_flag='-shared'
17353 if test "$aix_use_runtimelinking" = yes; then
17354 shared_flag="$shared_flag "'${wl}-G'
17355 fi
17356 else
17357 # not using gcc
17358 if test "$host_cpu" = ia64; then
17359 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17360 # chokes on -Wl,-G. The following line is correct:
17361 shared_flag='-G'
17362 else
17363 if test "$aix_use_runtimelinking" = yes; then
17364 shared_flag='${wl}-G'
17365 else
17366 shared_flag='${wl}-bM:SRE'
17367 fi
17368 fi
17369 fi
17370
17371 # It seems that -bexpall does not export symbols beginning with
17372 # underscore (_), so it is better to generate a list of symbols to export.
17373 always_export_symbols_GCJ=yes
17374 if test "$aix_use_runtimelinking" = yes; then
17375 # Warning - without using the other runtime loading flags (-brtl),
17376 # -berok will link without error, but may produce a broken library.
17377 allow_undefined_flag_GCJ='-berok'
17378 # Determine the default libpath from the value encoded in an empty executable.
17379 cat >conftest.$ac_ext <<_ACEOF
17380/* confdefs.h. */
17381_ACEOF
17382cat confdefs.h >>conftest.$ac_ext
17383cat >>conftest.$ac_ext <<_ACEOF
17384/* end confdefs.h. */
17385
17386int
17387main ()
17388{
17389
17390 ;
17391 return 0;
17392}
17393_ACEOF
17394rm -f conftest.$ac_objext conftest$ac_exeext
17395if { (ac_try="$ac_link"
17396case "(($ac_try" in
17397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17398 *) ac_try_echo=$ac_try;;
17399esac
17400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17401 (eval "$ac_link") 2>conftest.er1
17402 ac_status=$?
17403 grep -v '^ *+' conftest.er1 >conftest.err
17404 rm -f conftest.er1
17405 cat conftest.err >&5
17406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17407 (exit $ac_status); } && {
17408 test -z "$ac_c_werror_flag" ||
17409 test ! -s conftest.err
17410 } && test -s conftest$ac_exeext &&
17411 $as_test_x conftest$ac_exeext; then
17412
17413lt_aix_libpath_sed='
17414 /Import File Strings/,/^$/ {
17415 /^0/ {
17416 s/^0 *\(.*\)$/\1/
17417 p
17418 }
17419 }'
17420aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17421# Check for a 64-bit object if we didn't find anything.
17422if test -z "$aix_libpath"; then
17423 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17424fi
17425else
17426 echo "$as_me: failed program was:" >&5
17427sed 's/^/| /' conftest.$ac_ext >&5
17428
17429
17430fi
17431
17432rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17433 conftest$ac_exeext conftest.$ac_ext
17434if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17435
17436 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17437 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"
17438 else
17439 if test "$host_cpu" = ia64; then
17440 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17441 allow_undefined_flag_GCJ="-z nodefs"
17442 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"
17443 else
17444 # Determine the default libpath from the value encoded in an empty executable.
17445 cat >conftest.$ac_ext <<_ACEOF
17446/* confdefs.h. */
17447_ACEOF
17448cat confdefs.h >>conftest.$ac_ext
17449cat >>conftest.$ac_ext <<_ACEOF
17450/* end confdefs.h. */
17451
17452int
17453main ()
17454{
17455
17456 ;
17457 return 0;
17458}
17459_ACEOF
17460rm -f conftest.$ac_objext conftest$ac_exeext
17461if { (ac_try="$ac_link"
17462case "(($ac_try" in
17463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17464 *) ac_try_echo=$ac_try;;
17465esac
17466eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17467 (eval "$ac_link") 2>conftest.er1
17468 ac_status=$?
17469 grep -v '^ *+' conftest.er1 >conftest.err
17470 rm -f conftest.er1
17471 cat conftest.err >&5
17472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17473 (exit $ac_status); } && {
17474 test -z "$ac_c_werror_flag" ||
17475 test ! -s conftest.err
17476 } && test -s conftest$ac_exeext &&
17477 $as_test_x conftest$ac_exeext; then
17478
17479lt_aix_libpath_sed='
17480 /Import File Strings/,/^$/ {
17481 /^0/ {
17482 s/^0 *\(.*\)$/\1/
17483 p
17484 }
17485 }'
17486aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17487# Check for a 64-bit object if we didn't find anything.
17488if test -z "$aix_libpath"; then
17489 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17490fi
17491else
17492 echo "$as_me: failed program was:" >&5
17493sed 's/^/| /' conftest.$ac_ext >&5
17494
17495
17496fi
17497
17498rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17499 conftest$ac_exeext conftest.$ac_ext
17500if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17501
17502 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17503 # Warning - without using the other run time loading flags,
17504 # -berok will link without error, but may produce a broken library.
17505 no_undefined_flag_GCJ=' ${wl}-bernotok'
17506 allow_undefined_flag_GCJ=' ${wl}-berok'
17507 # Exported symbols can be pulled into shared objects from archives
17508 whole_archive_flag_spec_GCJ='$convenience'
17509 archive_cmds_need_lc_GCJ=yes
17510 # This is similar to how AIX traditionally builds its shared libraries.
17511 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'
17512 fi
17513 fi
17514 ;;
17515
17516 amigaos*)
17517 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)'
17518 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17519 hardcode_minus_L_GCJ=yes
17520 # see comment about different semantics on the GNU ld section
17521 ld_shlibs_GCJ=no
17522 ;;
17523
17524 bsdi[45]*)
17525 export_dynamic_flag_spec_GCJ=-rdynamic
17526 ;;
17527
17528 cygwin* | mingw* | pw32*)
17529 # When not using gcc, we currently assume that we are using
17530 # Microsoft Visual C++.
17531 # hardcode_libdir_flag_spec is actually meaningless, as there is
17532 # no search path for DLLs.
17533 hardcode_libdir_flag_spec_GCJ=' '
17534 allow_undefined_flag_GCJ=unsupported
17535 # Tell ltmain to make .lib files, not .a files.
17536 libext=lib
17537 # Tell ltmain to make .dll files, not .so files.
17538 shrext_cmds=".dll"
17539 # FIXME: Setting linknames here is a bad hack.
17540 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17541 # The linker will automatically build a .lib file if we build a DLL.
17542 old_archive_From_new_cmds_GCJ='true'
17543 # FIXME: Should let the user specify the lib program.
17544 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17545 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17546 enable_shared_with_static_runtimes_GCJ=yes
17547 ;;
17548
17549 darwin* | rhapsody*)
17550 case $host_os in
17551 rhapsody* | darwin1.[012])
17552 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17553 ;;
17554 *) # Darwin 1.3 on
17555 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17556 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17557 else
17558 case ${MACOSX_DEPLOYMENT_TARGET} in
17559 10.[012])
17560 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17561 ;;
17562 10.*)
17563 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17564 ;;
17565 esac
17566 fi
17567 ;;
17568 esac
17569 archive_cmds_need_lc_GCJ=no
17570 hardcode_direct_GCJ=no
17571 hardcode_automatic_GCJ=yes
17572 hardcode_shlibpath_var_GCJ=unsupported
17573 whole_archive_flag_spec_GCJ=''
17574 link_all_deplibs_GCJ=yes
17575 if test "$GCC" = yes ; then
17576 output_verbose_link_cmd='echo'
17577 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}"
17578 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17579 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}"
17580 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}"
17581 else
17582 case $cc_basename in
17583 xlc*)
17584 output_verbose_link_cmd='echo'
17585 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17586 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17587 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17588 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}'
17589 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}'
17590 ;;
17591 *)
17592 ld_shlibs_GCJ=no
17593 ;;
17594 esac
17595 fi
17596 ;;
17597
17598 dgux*)
17599 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17600 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17601 hardcode_shlibpath_var_GCJ=no
17602 ;;
17603
17604 freebsd1*)
17605 ld_shlibs_GCJ=no
17606 ;;
17607
17608 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17609 # support. Future versions do this automatically, but an explicit c++rt0.o
17610 # does not break anything, and helps significantly (at the cost of a little
17611 # extra space).
17612 freebsd2.2*)
17613 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17614 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17615 hardcode_direct_GCJ=yes
17616 hardcode_shlibpath_var_GCJ=no
17617 ;;
17618
17619 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17620 freebsd2*)
17621 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17622 hardcode_direct_GCJ=yes
17623 hardcode_minus_L_GCJ=yes
17624 hardcode_shlibpath_var_GCJ=no
17625 ;;
17626
17627 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17628 freebsd* | dragonfly*)
17629 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17630 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17631 hardcode_direct_GCJ=yes
17632 hardcode_shlibpath_var_GCJ=no
17633 ;;
17634
17635 hpux9*)
17636 if test "$GCC" = yes; then
17637 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'
17638 else
17639 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'
17640 fi
17641 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17642 hardcode_libdir_separator_GCJ=:
17643 hardcode_direct_GCJ=yes
17644
17645 # hardcode_minus_L: Not really in the search PATH,
17646 # but as the default location of the library.
17647 hardcode_minus_L_GCJ=yes
17648 export_dynamic_flag_spec_GCJ='${wl}-E'
17649 ;;
17650
17651 hpux10*)
17652 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17653 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17654 else
17655 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17656 fi
17657 if test "$with_gnu_ld" = no; then
17658 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17659 hardcode_libdir_separator_GCJ=:
17660
17661 hardcode_direct_GCJ=yes
17662 export_dynamic_flag_spec_GCJ='${wl}-E'
17663
17664 # hardcode_minus_L: Not really in the search PATH,
17665 # but as the default location of the library.
17666 hardcode_minus_L_GCJ=yes
17667 fi
17668 ;;
17669
17670 hpux11*)
17671 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17672 case $host_cpu in
17673 hppa*64*)
17674 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17675 ;;
17676 ia64*)
17677 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17678 ;;
17679 *)
17680 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17681 ;;
17682 esac
17683 else
17684 case $host_cpu in
17685 hppa*64*)
17686 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17687 ;;
17688 ia64*)
17689 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17690 ;;
17691 *)
17692 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17693 ;;
17694 esac
17695 fi
17696 if test "$with_gnu_ld" = no; then
17697 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17698 hardcode_libdir_separator_GCJ=:
17699
17700 case $host_cpu in
17701 hppa*64*|ia64*)
17702 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17703 hardcode_direct_GCJ=no
17704 hardcode_shlibpath_var_GCJ=no
17705 ;;
17706 *)
17707 hardcode_direct_GCJ=yes
17708 export_dynamic_flag_spec_GCJ='${wl}-E'
17709
17710 # hardcode_minus_L: Not really in the search PATH,
17711 # but as the default location of the library.
17712 hardcode_minus_L_GCJ=yes
17713 ;;
17714 esac
17715 fi
17716 ;;
17717
17718 irix5* | irix6* | nonstopux*)
17719 if test "$GCC" = yes; then
17720 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'
17721 else
17722 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'
17723 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17724 fi
17725 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17726 hardcode_libdir_separator_GCJ=:
17727 link_all_deplibs_GCJ=yes
17728 ;;
17729
17730 netbsd* | netbsdelf*-gnu)
17731 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17732 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17733 else
17734 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17735 fi
17736 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17737 hardcode_direct_GCJ=yes
17738 hardcode_shlibpath_var_GCJ=no
17739 ;;
17740
17741 newsos6)
17742 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17743 hardcode_direct_GCJ=yes
17744 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17745 hardcode_libdir_separator_GCJ=:
17746 hardcode_shlibpath_var_GCJ=no
17747 ;;
17748
17749 openbsd*)
17750 if test -f /usr/libexec/ld.so; then
17751 hardcode_direct_GCJ=yes
17752 hardcode_shlibpath_var_GCJ=no
17753 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17754 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17755 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17756 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17757 export_dynamic_flag_spec_GCJ='${wl}-E'
17758 else
17759 case $host_os in
17760 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17761 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17762 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17763 ;;
17764 *)
17765 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17766 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17767 ;;
17768 esac
17769 fi
17770 else
17771 ld_shlibs_GCJ=no
17772 fi
17773 ;;
17774
17775 os2*)
17776 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17777 hardcode_minus_L_GCJ=yes
17778 allow_undefined_flag_GCJ=unsupported
17779 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'
17780 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17781 ;;
17782
17783 osf3*)
17784 if test "$GCC" = yes; then
17785 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17786 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'
17787 else
17788 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17789 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'
17790 fi
17791 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17792 hardcode_libdir_separator_GCJ=:
17793 ;;
17794
17795 osf4* | osf5*) # as osf3* with the addition of -msym flag
17796 if test "$GCC" = yes; then
17797 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17798 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'
17799 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17800 else
17801 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17802 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'
17803 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~
17804 $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'
17805
17806 # Both c and cxx compiler support -rpath directly
17807 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17808 fi
17809 hardcode_libdir_separator_GCJ=:
17810 ;;
17811
17812 solaris*)
17813 no_undefined_flag_GCJ=' -z text'
17814 if test "$GCC" = yes; then
17815 wlarc='${wl}'
17816 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17817 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17818 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17819 else
17820 wlarc=''
17821 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17822 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17823 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17824 fi
17825 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17826 hardcode_shlibpath_var_GCJ=no
17827 case $host_os in
17828 solaris2.[0-5] | solaris2.[0-5].*) ;;
17829 *)
17830 # The compiler driver will combine and reorder linker options,
17831 # but understands `-z linker_flag'. GCC discards it without `$wl',
17832 # but is careful enough not to reorder.
17833 # Supported since Solaris 2.6 (maybe 2.5.1?)
17834 if test "$GCC" = yes; then
17835 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17836 else
17837 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
17838 fi
17839 ;;
17840 esac
17841 link_all_deplibs_GCJ=yes
17842 ;;
17843
17844 sunos4*)
17845 if test "x$host_vendor" = xsequent; then
17846 # Use $CC to link under sequent, because it throws in some extra .o
17847 # files that make .init and .fini sections work.
17848 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17849 else
17850 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17851 fi
17852 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17853 hardcode_direct_GCJ=yes
17854 hardcode_minus_L_GCJ=yes
17855 hardcode_shlibpath_var_GCJ=no
17856 ;;
17857
17858 sysv4)
17859 case $host_vendor in
17860 sni)
17861 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17862 hardcode_direct_GCJ=yes # is this really true???
17863 ;;
17864 siemens)
17865 ## LD is ld it makes a PLAMLIB
17866 ## CC just makes a GrossModule.
17867 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17868 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17869 hardcode_direct_GCJ=no
17870 ;;
17871 motorola)
17872 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17873 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17874 ;;
17875 esac
17876 runpath_var='LD_RUN_PATH'
17877 hardcode_shlibpath_var_GCJ=no
17878 ;;
17879
17880 sysv4.3*)
17881 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17882 hardcode_shlibpath_var_GCJ=no
17883 export_dynamic_flag_spec_GCJ='-Bexport'
17884 ;;
17885
17886 sysv4*MP*)
17887 if test -d /usr/nec; then
17888 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17889 hardcode_shlibpath_var_GCJ=no
17890 runpath_var=LD_RUN_PATH
17891 hardcode_runpath_var=yes
17892 ld_shlibs_GCJ=yes
17893 fi
17894 ;;
17895
17896 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17897 no_undefined_flag_GCJ='${wl}-z,text'
17898 archive_cmds_need_lc_GCJ=no
17899 hardcode_shlibpath_var_GCJ=no
17900 runpath_var='LD_RUN_PATH'
17901
17902 if test "$GCC" = yes; then
17903 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17904 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17905 else
17906 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17907 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17908 fi
17909 ;;
17910
17911 sysv5* | sco3.2v5* | sco5v6*)
17912 # Note: We can NOT use -z defs as we might desire, because we do not
17913 # link with -lc, and that would cause any symbols used from libc to
17914 # always be unresolved, which means just about no library would
17915 # ever link correctly. If we're not using GNU ld we use -z text
17916 # though, which does catch some bad symbols but isn't as heavy-handed
17917 # as -z defs.
17918 no_undefined_flag_GCJ='${wl}-z,text'
17919 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17920 archive_cmds_need_lc_GCJ=no
17921 hardcode_shlibpath_var_GCJ=no
17922 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17923 hardcode_libdir_separator_GCJ=':'
17924 link_all_deplibs_GCJ=yes
17925 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17926 runpath_var='LD_RUN_PATH'
17927
17928 if test "$GCC" = yes; then
17929 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17930 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17931 else
17932 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17933 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17934 fi
17935 ;;
17936
17937 uts4*)
17938 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17939 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17940 hardcode_shlibpath_var_GCJ=no
17941 ;;
17942
17943 *)
17944 ld_shlibs_GCJ=no
17945 ;;
17946 esac
17947 fi
17948
17949{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17950echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17951test "$ld_shlibs_GCJ" = no && can_build_shared=no
17952
17953#
17954# Do we need to explicitly link libc?
17955#
17956case "x$archive_cmds_need_lc_GCJ" in
17957x|xyes)
17958 # Assume -lc should be added
17959 archive_cmds_need_lc_GCJ=yes
17960
17961 if test "$enable_shared" = yes && test "$GCC" = yes; then
17962 case $archive_cmds_GCJ in
17963 *'~'*)
17964 # FIXME: we may have to deal with multi-command sequences.
17965 ;;
17966 '$CC '*)
17967 # Test whether the compiler implicitly links with -lc since on some
17968 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17969 # to ld, don't add -lc before -lgcc.
17970 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17971echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17972 $rm conftest*
17973 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17974
17975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17976 (eval $ac_compile) 2>&5
17977 ac_status=$?
17978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17979 (exit $ac_status); } 2>conftest.err; then
17980 soname=conftest
17981 lib=conftest
17982 libobjs=conftest.$ac_objext
17983 deplibs=
17984 wl=$lt_prog_compiler_wl_GCJ
17985 pic_flag=$lt_prog_compiler_pic_GCJ
17986 compiler_flags=-v
17987 linker_flags=-v
17988 verstring=
17989 output_objdir=.
17990 libname=conftest
17991 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17992 allow_undefined_flag_GCJ=
17993 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17994 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17995 ac_status=$?
17996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17997 (exit $ac_status); }
17998 then
17999 archive_cmds_need_lc_GCJ=no
18000 else
18001 archive_cmds_need_lc_GCJ=yes
18002 fi
18003 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18004 else
18005 cat conftest.err 1>&5
18006 fi
18007 $rm conftest*
18008 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18009echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18010 ;;
18011 esac
18012 fi
18013 ;;
18014esac
18015
18016{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18017echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18018library_names_spec=
18019libname_spec='lib$name'
18020soname_spec=
18021shrext_cmds=".so"
18022postinstall_cmds=
18023postuninstall_cmds=
18024finish_cmds=
18025finish_eval=
18026shlibpath_var=
18027shlibpath_overrides_runpath=unknown
18028version_type=none
18029dynamic_linker="$host_os ld.so"
18030sys_lib_dlsearch_path_spec="/lib /usr/lib"
18031
18032need_lib_prefix=unknown
18033hardcode_into_libs=no
18034
18035# when you set need_version to no, make sure it does not cause -set_version
18036# flags to be left without arguments
18037need_version=unknown
18038
18039case $host_os in
18040aix3*)
18041 version_type=linux
18042 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18043 shlibpath_var=LIBPATH
18044
18045 # AIX 3 has no versioning support, so we append a major version to the name.
18046 soname_spec='${libname}${release}${shared_ext}$major'
18047 ;;
18048
18049aix[4-9]*)
18050 version_type=linux
18051 need_lib_prefix=no
18052 need_version=no
18053 hardcode_into_libs=yes
18054 if test "$host_cpu" = ia64; then
18055 # AIX 5 supports IA64
18056 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18057 shlibpath_var=LD_LIBRARY_PATH
18058 else
18059 # With GCC up to 2.95.x, collect2 would create an import file
18060 # for dependence libraries. The import file would start with
18061 # the line `#! .'. This would cause the generated library to
18062 # depend on `.', always an invalid library. This was fixed in
18063 # development snapshots of GCC prior to 3.0.
18064 case $host_os in
18065 aix4 | aix4.[01] | aix4.[01].*)
18066 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18067 echo ' yes '
18068 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18069 :
18070 else
18071 can_build_shared=no
18072 fi
18073 ;;
18074 esac
18075 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18076 # soname into executable. Probably we can add versioning support to
18077 # collect2, so additional links can be useful in future.
18078 if test "$aix_use_runtimelinking" = yes; then
18079 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18080 # instead of lib<name>.a to let people know that these are not
18081 # typical AIX shared libraries.
18082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18083 else
18084 # We preserve .a as extension for shared libraries through AIX4.2
18085 # and later when we are not doing run time linking.
18086 library_names_spec='${libname}${release}.a $libname.a'
18087 soname_spec='${libname}${release}${shared_ext}$major'
18088 fi
18089 shlibpath_var=LIBPATH
18090 fi
18091 ;;
18092
18093amigaos*)
18094 library_names_spec='$libname.ixlibrary $libname.a'
18095 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18096 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'
18097 ;;
18098
18099beos*)
18100 library_names_spec='${libname}${shared_ext}'
18101 dynamic_linker="$host_os ld.so"
18102 shlibpath_var=LIBRARY_PATH
18103 ;;
18104
18105bsdi[45]*)
18106 version_type=linux
18107 need_version=no
18108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18109 soname_spec='${libname}${release}${shared_ext}$major'
18110 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18111 shlibpath_var=LD_LIBRARY_PATH
18112 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18113 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18114 # the default ld.so.conf also contains /usr/contrib/lib and
18115 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18116 # libtool to hard-code these into programs
18117 ;;
18118
18119cygwin* | mingw* | pw32*)
18120 version_type=windows
18121 shrext_cmds=".dll"
18122 need_version=no
18123 need_lib_prefix=no
18124
18125 case $GCC,$host_os in
18126 yes,cygwin* | yes,mingw* | yes,pw32*)
18127 library_names_spec='$libname.dll.a'
18128 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18129 postinstall_cmds='base_file=`basename \${file}`~
18130 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18131 dldir=$destdir/`dirname \$dlpath`~
18132 test -d \$dldir || mkdir -p \$dldir~
18133 $install_prog $dir/$dlname \$dldir/$dlname~
18134 chmod a+x \$dldir/$dlname'
18135 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18136 dlpath=$dir/\$dldll~
18137 $rm \$dlpath'
18138 shlibpath_overrides_runpath=yes
18139
18140 case $host_os in
18141 cygwin*)
18142 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18143 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18144 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18145 ;;
18146 mingw*)
18147 # MinGW DLLs use traditional 'lib' prefix
18148 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18149 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18150 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18151 # It is most probably a Windows format PATH printed by
18152 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18153 # path with ; separators, and with drive letters. We can handle the
18154 # drive letters (cygwin fileutils understands them), so leave them,
18155 # especially as we might pass files found there to a mingw objdump,
18156 # which wouldn't understand a cygwinified path. Ahh.
18157 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18158 else
18159 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18160 fi
18161 ;;
18162 pw32*)
18163 # pw32 DLLs use 'pw' prefix rather than 'lib'
18164 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18165 ;;
18166 esac
18167 ;;
18168
18169 *)
18170 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18171 ;;
18172 esac
18173 dynamic_linker='Win32 ld.exe'
18174 # FIXME: first we should search . and the directory the executable is in
18175 shlibpath_var=PATH
18176 ;;
18177
18178darwin* | rhapsody*)
18179 dynamic_linker="$host_os dyld"
18180 version_type=darwin
18181 need_lib_prefix=no
18182 need_version=no
18183 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18184 soname_spec='${libname}${release}${major}$shared_ext'
18185 shlibpath_overrides_runpath=yes
18186 shlibpath_var=DYLD_LIBRARY_PATH
18187 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18188
18189 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18190 ;;
18191
18192dgux*)
18193 version_type=linux
18194 need_lib_prefix=no
18195 need_version=no
18196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18197 soname_spec='${libname}${release}${shared_ext}$major'
18198 shlibpath_var=LD_LIBRARY_PATH
18199 ;;
18200
18201freebsd1*)
18202 dynamic_linker=no
18203 ;;
18204
18205freebsd* | dragonfly*)
18206 # DragonFly does not have aout. When/if they implement a new
18207 # versioning mechanism, adjust this.
18208 if test -x /usr/bin/objformat; then
18209 objformat=`/usr/bin/objformat`
18210 else
18211 case $host_os in
18212 freebsd[123]*) objformat=aout ;;
18213 *) objformat=elf ;;
18214 esac
18215 fi
18216 version_type=freebsd-$objformat
18217 case $version_type in
18218 freebsd-elf*)
18219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18220 need_version=no
18221 need_lib_prefix=no
18222 ;;
18223 freebsd-*)
18224 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18225 need_version=yes
18226 ;;
18227 esac
18228 shlibpath_var=LD_LIBRARY_PATH
18229 case $host_os in
18230 freebsd2*)
18231 shlibpath_overrides_runpath=yes
18232 ;;
18233 freebsd3.[01]* | freebsdelf3.[01]*)
18234 shlibpath_overrides_runpath=yes
18235 hardcode_into_libs=yes
18236 ;;
18237 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18238 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18239 shlibpath_overrides_runpath=no
18240 hardcode_into_libs=yes
18241 ;;
18242 *) # from 4.6 on, and DragonFly
18243 shlibpath_overrides_runpath=yes
18244 hardcode_into_libs=yes
18245 ;;
18246 esac
18247 ;;
18248
18249gnu*)
18250 version_type=linux
18251 need_lib_prefix=no
18252 need_version=no
18253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18254 soname_spec='${libname}${release}${shared_ext}$major'
18255 shlibpath_var=LD_LIBRARY_PATH
18256 hardcode_into_libs=yes
18257 ;;
18258
18259hpux9* | hpux10* | hpux11*)
18260 # Give a soname corresponding to the major version so that dld.sl refuses to
18261 # link against other versions.
18262 version_type=sunos
18263 need_lib_prefix=no
18264 need_version=no
18265 case $host_cpu in
18266 ia64*)
18267 shrext_cmds='.so'
18268 hardcode_into_libs=yes
18269 dynamic_linker="$host_os dld.so"
18270 shlibpath_var=LD_LIBRARY_PATH
18271 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18273 soname_spec='${libname}${release}${shared_ext}$major'
18274 if test "X$HPUX_IA64_MODE" = X32; then
18275 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18276 else
18277 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18278 fi
18279 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18280 ;;
18281 hppa*64*)
18282 shrext_cmds='.sl'
18283 hardcode_into_libs=yes
18284 dynamic_linker="$host_os dld.sl"
18285 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18286 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18288 soname_spec='${libname}${release}${shared_ext}$major'
18289 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18290 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18291 ;;
18292 *)
18293 shrext_cmds='.sl'
18294 dynamic_linker="$host_os dld.sl"
18295 shlibpath_var=SHLIB_PATH
18296 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18298 soname_spec='${libname}${release}${shared_ext}$major'
18299 ;;
18300 esac
18301 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18302 postinstall_cmds='chmod 555 $lib'
18303 ;;
18304
18305interix[3-9]*)
18306 version_type=linux
18307 need_lib_prefix=no
18308 need_version=no
18309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18310 soname_spec='${libname}${release}${shared_ext}$major'
18311 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18312 shlibpath_var=LD_LIBRARY_PATH
18313 shlibpath_overrides_runpath=no
18314 hardcode_into_libs=yes
18315 ;;
18316
18317irix5* | irix6* | nonstopux*)
18318 case $host_os in
18319 nonstopux*) version_type=nonstopux ;;
18320 *)
18321 if test "$lt_cv_prog_gnu_ld" = yes; then
18322 version_type=linux
18323 else
18324 version_type=irix
18325 fi ;;
18326 esac
18327 need_lib_prefix=no
18328 need_version=no
18329 soname_spec='${libname}${release}${shared_ext}$major'
18330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18331 case $host_os in
18332 irix5* | nonstopux*)
18333 libsuff= shlibsuff=
18334 ;;
18335 *)
18336 case $LD in # libtool.m4 will add one of these switches to LD
18337 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18338 libsuff= shlibsuff= libmagic=32-bit;;
18339 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18340 libsuff=32 shlibsuff=N32 libmagic=N32;;
18341 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18342 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18343 *) libsuff= shlibsuff= libmagic=never-match;;
18344 esac
18345 ;;
18346 esac
18347 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18348 shlibpath_overrides_runpath=no
18349 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18350 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18351 hardcode_into_libs=yes
18352 ;;
18353
18354# No shared lib support for Linux oldld, aout, or coff.
18355linux*oldld* | linux*aout* | linux*coff*)
18356 dynamic_linker=no
18357 ;;
18358
18359# This must be Linux ELF.
18360linux* | k*bsd*-gnu)
18361 version_type=linux
18362 need_lib_prefix=no
18363 need_version=no
18364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18365 soname_spec='${libname}${release}${shared_ext}$major'
18366 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18367 shlibpath_var=LD_LIBRARY_PATH
18368 shlibpath_overrides_runpath=no
18369 # This implies no fast_install, which is unacceptable.
18370 # Some rework will be needed to allow for fast_install
18371 # before this can be enabled.
18372 hardcode_into_libs=yes
18373
18374 # Append ld.so.conf contents to the search path
18375 if test -f /etc/ld.so.conf; then
18376 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' ' '`
18377 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18378 fi
18379
18380 # We used to test for /lib/ld.so.1 and disable shared libraries on
18381 # powerpc, because MkLinux only supported shared libraries with the
18382 # GNU dynamic linker. Since this was broken with cross compilers,
18383 # most powerpc-linux boxes support dynamic linking these days and
18384 # people can always --disable-shared, the test was removed, and we
18385 # assume the GNU/Linux dynamic linker is in use.
18386 dynamic_linker='GNU/Linux ld.so'
18387 ;;
18388
18389netbsdelf*-gnu)
18390 version_type=linux
18391 need_lib_prefix=no
18392 need_version=no
18393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18394 soname_spec='${libname}${release}${shared_ext}$major'
18395 shlibpath_var=LD_LIBRARY_PATH
18396 shlibpath_overrides_runpath=no
18397 hardcode_into_libs=yes
18398 dynamic_linker='NetBSD ld.elf_so'
18399 ;;
18400
18401netbsd*)
18402 version_type=sunos
18403 need_lib_prefix=no
18404 need_version=no
18405 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18407 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18408 dynamic_linker='NetBSD (a.out) ld.so'
18409 else
18410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18411 soname_spec='${libname}${release}${shared_ext}$major'
18412 dynamic_linker='NetBSD ld.elf_so'
18413 fi
18414 shlibpath_var=LD_LIBRARY_PATH
18415 shlibpath_overrides_runpath=yes
18416 hardcode_into_libs=yes
18417 ;;
18418
18419newsos6)
18420 version_type=linux
18421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18422 shlibpath_var=LD_LIBRARY_PATH
18423 shlibpath_overrides_runpath=yes
18424 ;;
18425
18426nto-qnx*)
18427 version_type=linux
18428 need_lib_prefix=no
18429 need_version=no
18430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18431 soname_spec='${libname}${release}${shared_ext}$major'
18432 shlibpath_var=LD_LIBRARY_PATH
18433 shlibpath_overrides_runpath=yes
18434 ;;
18435
18436openbsd*)
18437 version_type=sunos
18438 sys_lib_dlsearch_path_spec="/usr/lib"
18439 need_lib_prefix=no
18440 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18441 case $host_os in
18442 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18443 *) need_version=no ;;
18444 esac
18445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18446 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18447 shlibpath_var=LD_LIBRARY_PATH
18448 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18449 case $host_os in
18450 openbsd2.[89] | openbsd2.[89].*)
18451 shlibpath_overrides_runpath=no
18452 ;;
18453 *)
18454 shlibpath_overrides_runpath=yes
18455 ;;
18456 esac
18457 else
18458 shlibpath_overrides_runpath=yes
18459 fi
18460 ;;
18461
18462os2*)
18463 libname_spec='$name'
18464 shrext_cmds=".dll"
18465 need_lib_prefix=no
18466 library_names_spec='$libname${shared_ext} $libname.a'
18467 dynamic_linker='OS/2 ld.exe'
18468 shlibpath_var=LIBPATH
18469 ;;
18470
18471osf3* | osf4* | osf5*)
18472 version_type=osf
18473 need_lib_prefix=no
18474 need_version=no
18475 soname_spec='${libname}${release}${shared_ext}$major'
18476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18477 shlibpath_var=LD_LIBRARY_PATH
18478 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18479 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18480 ;;
18481
18482rdos*)
18483 dynamic_linker=no
18484 ;;
18485
18486solaris*)
18487 version_type=linux
18488 need_lib_prefix=no
18489 need_version=no
18490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18491 soname_spec='${libname}${release}${shared_ext}$major'
18492 shlibpath_var=LD_LIBRARY_PATH
18493 shlibpath_overrides_runpath=yes
18494 hardcode_into_libs=yes
18495 # ldd complains unless libraries are executable
18496 postinstall_cmds='chmod +x $lib'
18497 ;;
18498
18499sunos4*)
18500 version_type=sunos
18501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18502 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18503 shlibpath_var=LD_LIBRARY_PATH
18504 shlibpath_overrides_runpath=yes
18505 if test "$with_gnu_ld" = yes; then
18506 need_lib_prefix=no
18507 fi
18508 need_version=yes
18509 ;;
18510
18511sysv4 | sysv4.3*)
18512 version_type=linux
18513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18514 soname_spec='${libname}${release}${shared_ext}$major'
18515 shlibpath_var=LD_LIBRARY_PATH
18516 case $host_vendor in
18517 sni)
18518 shlibpath_overrides_runpath=no
18519 need_lib_prefix=no
18520 export_dynamic_flag_spec='${wl}-Blargedynsym'
18521 runpath_var=LD_RUN_PATH
18522 ;;
18523 siemens)
18524 need_lib_prefix=no
18525 ;;
18526 motorola)
18527 need_lib_prefix=no
18528 need_version=no
18529 shlibpath_overrides_runpath=no
18530 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18531 ;;
18532 esac
18533 ;;
18534
18535sysv4*MP*)
18536 if test -d /usr/nec ;then
18537 version_type=linux
18538 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18539 soname_spec='$libname${shared_ext}.$major'
18540 shlibpath_var=LD_LIBRARY_PATH
18541 fi
18542 ;;
18543
18544sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18545 version_type=freebsd-elf
18546 need_lib_prefix=no
18547 need_version=no
18548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18549 soname_spec='${libname}${release}${shared_ext}$major'
18550 shlibpath_var=LD_LIBRARY_PATH
18551 hardcode_into_libs=yes
18552 if test "$with_gnu_ld" = yes; then
18553 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18554 shlibpath_overrides_runpath=no
18555 else
18556 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18557 shlibpath_overrides_runpath=yes
18558 case $host_os in
18559 sco3.2v5*)
18560 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18561 ;;
18562 esac
18563 fi
18564 sys_lib_dlsearch_path_spec='/usr/lib'
18565 ;;
18566
18567uts4*)
18568 version_type=linux
18569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18570 soname_spec='${libname}${release}${shared_ext}$major'
18571 shlibpath_var=LD_LIBRARY_PATH
18572 ;;
18573
18574*)
18575 dynamic_linker=no
18576 ;;
18577esac
18578{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18579echo "${ECHO_T}$dynamic_linker" >&6; }
18580test "$dynamic_linker" = no && can_build_shared=no
18581
18582if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18583 echo $ECHO_N "(cached) $ECHO_C" >&6
18584else
18585 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
18586fi
18587
18588sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18589if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18590 echo $ECHO_N "(cached) $ECHO_C" >&6
18591else
18592 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
18593fi
18594
18595sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18596
18597variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18598if test "$GCC" = yes; then
18599 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18600fi
18601
18602{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18603echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18604hardcode_action_GCJ=
18605if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18606 test -n "$runpath_var_GCJ" || \
18607 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18608
18609 # We can hardcode non-existant directories.
18610 if test "$hardcode_direct_GCJ" != no &&
18611 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18612 # have to relink, otherwise we might link with an installed library
18613 # when we should be linking with a yet-to-be-installed one
18614 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18615 test "$hardcode_minus_L_GCJ" != no; then
18616 # Linking always hardcodes the temporary library directory.
18617 hardcode_action_GCJ=relink
18618 else
18619 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18620 hardcode_action_GCJ=immediate
18621 fi
18622else
18623 # We cannot hardcode anything, or else we can only hardcode existing
18624 # directories.
18625 hardcode_action_GCJ=unsupported
18626fi
18627{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18628echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18629
18630if test "$hardcode_action_GCJ" = relink; then
18631 # Fast installation is not supported
18632 enable_fast_install=no
18633elif test "$shlibpath_overrides_runpath" = yes ||
18634 test "$enable_shared" = no; then
18635 # Fast installation is not necessary
18636 enable_fast_install=needless
18637fi
18638
18639
18640# The else clause should only fire when bootstrapping the
18641# libtool distribution, otherwise you forgot to ship ltmain.sh
18642# with your package, and you will get complaints that there are
18643# no rules to generate ltmain.sh.
18644if test -f "$ltmain"; then
18645 # See if we are running on zsh, and set the options which allow our commands through
18646 # without removal of \ escapes.
18647 if test -n "${ZSH_VERSION+set}" ; then
18648 setopt NO_GLOB_SUBST
18649 fi
18650 # Now quote all the things that may contain metacharacters while being
18651 # careful not to overquote the AC_SUBSTed values. We take copies of the
18652 # variables and quote the copies for generation of the libtool script.
18653 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18654 SED SHELL STRIP \
18655 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18656 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18657 deplibs_check_method reload_flag reload_cmds need_locks \
18658 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18659 lt_cv_sys_global_symbol_to_c_name_address \
18660 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18661 old_postinstall_cmds old_postuninstall_cmds \
18662 compiler_GCJ \
18663 CC_GCJ \
18664 LD_GCJ \
18665 lt_prog_compiler_wl_GCJ \
18666 lt_prog_compiler_pic_GCJ \
18667 lt_prog_compiler_static_GCJ \
18668 lt_prog_compiler_no_builtin_flag_GCJ \
18669 export_dynamic_flag_spec_GCJ \
18670 thread_safe_flag_spec_GCJ \
18671 whole_archive_flag_spec_GCJ \
18672 enable_shared_with_static_runtimes_GCJ \
18673 old_archive_cmds_GCJ \
18674 old_archive_from_new_cmds_GCJ \
18675 predep_objects_GCJ \
18676 postdep_objects_GCJ \
18677 predeps_GCJ \
18678 postdeps_GCJ \
18679 compiler_lib_search_path_GCJ \
18680 compiler_lib_search_dirs_GCJ \
18681 archive_cmds_GCJ \
18682 archive_expsym_cmds_GCJ \
18683 postinstall_cmds_GCJ \
18684 postuninstall_cmds_GCJ \
18685 old_archive_from_expsyms_cmds_GCJ \
18686 allow_undefined_flag_GCJ \
18687 no_undefined_flag_GCJ \
18688 export_symbols_cmds_GCJ \
18689 hardcode_libdir_flag_spec_GCJ \
18690 hardcode_libdir_flag_spec_ld_GCJ \
18691 hardcode_libdir_separator_GCJ \
18692 hardcode_automatic_GCJ \
18693 module_cmds_GCJ \
18694 module_expsym_cmds_GCJ \
18695 lt_cv_prog_compiler_c_o_GCJ \
18696 fix_srcfile_path_GCJ \
18697 exclude_expsyms_GCJ \
18698 include_expsyms_GCJ; do
18699
18700 case $var in
18701 old_archive_cmds_GCJ | \
18702 old_archive_from_new_cmds_GCJ | \
18703 archive_cmds_GCJ | \
18704 archive_expsym_cmds_GCJ | \
18705 module_cmds_GCJ | \
18706 module_expsym_cmds_GCJ | \
18707 old_archive_from_expsyms_cmds_GCJ | \
18708 export_symbols_cmds_GCJ | \
18709 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18710 postinstall_cmds | postuninstall_cmds | \
18711 old_postinstall_cmds | old_postuninstall_cmds | \
18712 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18713 # Double-quote double-evaled strings.
18714 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18715 ;;
18716 *)
18717 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18718 ;;
18719 esac
18720 done
18721
18722 case $lt_echo in
18723 *'\$0 --fallback-echo"')
18724 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18725 ;;
18726 esac
18727
18728cfgfile="$ofile"
18729
18730 cat <<__EOF__ >> "$cfgfile"
18731# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18732
18733# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18734
18735# Shell to use when invoking shell scripts.
18736SHELL=$lt_SHELL
18737
18738# Whether or not to build shared libraries.
18739build_libtool_libs=$enable_shared
18740
18741# Whether or not to build static libraries.
18742build_old_libs=$enable_static
18743
18744# Whether or not to add -lc for building shared libraries.
18745build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18746
18747# Whether or not to disallow shared libs when runtime libs are static
18748allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18749
18750# Whether or not to optimize for fast installation.
18751fast_install=$enable_fast_install
18752
18753# The host system.
18754host_alias=$host_alias
18755host=$host
18756host_os=$host_os
18757
18758# The build system.
18759build_alias=$build_alias
18760build=$build
18761build_os=$build_os
18762
18763# An echo program that does not interpret backslashes.
18764echo=$lt_echo
18765
18766# The archiver.
18767AR=$lt_AR
18768AR_FLAGS=$lt_AR_FLAGS
18769
18770# A C compiler.
18771LTCC=$lt_LTCC
18772
18773# LTCC compiler flags.
18774LTCFLAGS=$lt_LTCFLAGS
18775
18776# A language-specific compiler.
18777CC=$lt_compiler_GCJ
18778
18779# Is the compiler the GNU C compiler?
18780with_gcc=$GCC_GCJ
18781
18782# An ERE matcher.
18783EGREP=$lt_EGREP
18784
18785# The linker used to build libraries.
18786LD=$lt_LD_GCJ
18787
18788# Whether we need hard or soft links.
18789LN_S=$lt_LN_S
18790
18791# A BSD-compatible nm program.
18792NM=$lt_NM
18793
18794# A symbol stripping program
18795STRIP=$lt_STRIP
18796
18797# Used to examine libraries when file_magic_cmd begins "file"
18798MAGIC_CMD=$MAGIC_CMD
18799
18800# Used on cygwin: DLL creation program.
18801DLLTOOL="$DLLTOOL"
18802
18803# Used on cygwin: object dumper.
18804OBJDUMP="$OBJDUMP"
18805
18806# Used on cygwin: assembler.
18807AS="$AS"
18808
18809# The name of the directory that contains temporary libtool files.
18810objdir=$objdir
18811
18812# How to create reloadable object files.
18813reload_flag=$lt_reload_flag
18814reload_cmds=$lt_reload_cmds
18815
18816# How to pass a linker flag through the compiler.
18817wl=$lt_lt_prog_compiler_wl_GCJ
18818
18819# Object file suffix (normally "o").
18820objext="$ac_objext"
18821
18822# Old archive suffix (normally "a").
18823libext="$libext"
18824
18825# Shared library suffix (normally ".so").
18826shrext_cmds='$shrext_cmds'
18827
18828# Executable file suffix (normally "").
18829exeext="$exeext"
18830
18831# Additional compiler flags for building library objects.
18832pic_flag=$lt_lt_prog_compiler_pic_GCJ
18833pic_mode=$pic_mode
18834
18835# What is the maximum length of a command?
18836max_cmd_len=$lt_cv_sys_max_cmd_len
18837
18838# Does compiler simultaneously support -c and -o options?
18839compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18840
18841# Must we lock files when doing compilation?
18842need_locks=$lt_need_locks
18843
18844# Do we need the lib prefix for modules?
18845need_lib_prefix=$need_lib_prefix
18846
18847# Do we need a version for libraries?
18848need_version=$need_version
18849
18850# Whether dlopen is supported.
18851dlopen_support=$enable_dlopen
18852
18853# Whether dlopen of programs is supported.
18854dlopen_self=$enable_dlopen_self
18855
18856# Whether dlopen of statically linked programs is supported.
18857dlopen_self_static=$enable_dlopen_self_static
18858
18859# Compiler flag to prevent dynamic linking.
18860link_static_flag=$lt_lt_prog_compiler_static_GCJ
18861
18862# Compiler flag to turn off builtin functions.
18863no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18864
18865# Compiler flag to allow reflexive dlopens.
18866export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18867
18868# Compiler flag to generate shared objects directly from archives.
18869whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18870
18871# Compiler flag to generate thread-safe objects.
18872thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18873
18874# Library versioning type.
18875version_type=$version_type
18876
18877# Format of library name prefix.
18878libname_spec=$lt_libname_spec
18879
18880# List of archive names. First name is the real one, the rest are links.
18881# The last name is the one that the linker finds with -lNAME.
18882library_names_spec=$lt_library_names_spec
18883
18884# The coded name of the library, if different from the real name.
18885soname_spec=$lt_soname_spec
18886
18887# Commands used to build and install an old-style archive.
18888RANLIB=$lt_RANLIB
18889old_archive_cmds=$lt_old_archive_cmds_GCJ
18890old_postinstall_cmds=$lt_old_postinstall_cmds
18891old_postuninstall_cmds=$lt_old_postuninstall_cmds
18892
18893# Create an old-style archive from a shared archive.
18894old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18895
18896# Create a temporary old-style archive to link instead of a shared archive.
18897old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18898
18899# Commands used to build and install a shared archive.
18900archive_cmds=$lt_archive_cmds_GCJ
18901archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18902postinstall_cmds=$lt_postinstall_cmds
18903postuninstall_cmds=$lt_postuninstall_cmds
18904
18905# Commands used to build a loadable module (assumed same as above if empty)
18906module_cmds=$lt_module_cmds_GCJ
18907module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18908
18909# Commands to strip libraries.
18910old_striplib=$lt_old_striplib
18911striplib=$lt_striplib
18912
18913# Dependencies to place before the objects being linked to create a
18914# shared library.
18915predep_objects=$lt_predep_objects_GCJ
18916
18917# Dependencies to place after the objects being linked to create a
18918# shared library.
18919postdep_objects=$lt_postdep_objects_GCJ
18920
18921# Dependencies to place before the objects being linked to create a
18922# shared library.
18923predeps=$lt_predeps_GCJ
18924
18925# Dependencies to place after the objects being linked to create a
18926# shared library.
18927postdeps=$lt_postdeps_GCJ
18928
18929# The directories searched by this compiler when creating a shared
18930# library
18931compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
18932
18933# The library search path used internally by the compiler when linking
18934# a shared library.
18935compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18936
18937# Method to check whether dependent libraries are shared objects.
18938deplibs_check_method=$lt_deplibs_check_method
18939
18940# Command to use when deplibs_check_method == file_magic.
18941file_magic_cmd=$lt_file_magic_cmd
18942
18943# Flag that allows shared libraries with undefined symbols to be built.
18944allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18945
18946# Flag that forces no undefined symbols.
18947no_undefined_flag=$lt_no_undefined_flag_GCJ
18948
18949# Commands used to finish a libtool library installation in a directory.
18950finish_cmds=$lt_finish_cmds
18951
18952# Same as above, but a single script fragment to be evaled but not shown.
18953finish_eval=$lt_finish_eval
18954
18955# Take the output of nm and produce a listing of raw symbols and C names.
18956global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18957
18958# Transform the output of nm in a proper C declaration
18959global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18960
18961# Transform the output of nm in a C name address pair
18962global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18963
18964# This is the shared library runtime path variable.
18965runpath_var=$runpath_var
18966
18967# This is the shared library path variable.
18968shlibpath_var=$shlibpath_var
18969
18970# Is shlibpath searched before the hard-coded library search path?
18971shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18972
18973# How to hardcode a shared library path into an executable.
18974hardcode_action=$hardcode_action_GCJ
18975
18976# Whether we should hardcode library paths into libraries.
18977hardcode_into_libs=$hardcode_into_libs
18978
18979# Flag to hardcode \$libdir into a binary during linking.
18980# This must work even if \$libdir does not exist.
18981hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18982
18983# If ld is used when linking, flag to hardcode \$libdir into
18984# a binary during linking. This must work even if \$libdir does
18985# not exist.
18986hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18987
18988# Whether we need a single -rpath flag with a separated argument.
18989hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18990
18991# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18992# resulting binary.
18993hardcode_direct=$hardcode_direct_GCJ
18994
18995# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18996# resulting binary.
18997hardcode_minus_L=$hardcode_minus_L_GCJ
18998
18999# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19000# the resulting binary.
19001hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19002
19003# Set to yes if building a shared library automatically hardcodes DIR into the library
19004# and all subsequent libraries and executables linked against it.
19005hardcode_automatic=$hardcode_automatic_GCJ
19006
19007# Variables whose values should be saved in libtool wrapper scripts and
19008# restored at relink time.
19009variables_saved_for_relink="$variables_saved_for_relink"
19010
19011# Whether libtool must link a program against all its dependency libraries.
19012link_all_deplibs=$link_all_deplibs_GCJ
19013
19014# Compile-time system search path for libraries
19015sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19016
19017# Run-time system search path for libraries
19018sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19019
19020# Fix the shell variable \$srcfile for the compiler.
19021fix_srcfile_path=$lt_fix_srcfile_path
19022
19023# Set to yes if exported symbols are required.
19024always_export_symbols=$always_export_symbols_GCJ
19025
19026# The commands to list exported symbols.
19027export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19028
19029# The commands to extract the exported symbol list from a shared archive.
19030extract_expsyms_cmds=$lt_extract_expsyms_cmds
19031
19032# Symbols that should not be listed in the preloaded symbols.
19033exclude_expsyms=$lt_exclude_expsyms_GCJ
19034
19035# Symbols that must always be exported.
19036include_expsyms=$lt_include_expsyms_GCJ
19037
19038# ### END LIBTOOL TAG CONFIG: $tagname
19039
19040__EOF__
19041
19042
19043else
19044 # If there is no Makefile yet, we rely on a make rule to execute
19045 # `config.status --recheck' to rerun these tests and create the
19046 # libtool script then.
19047 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19048 if test -f "$ltmain_in"; then
19049 test -f Makefile && make "$ltmain"
19050 fi
19051fi
19052
19053
19054ac_ext=c
19055ac_cpp='$CPP $CPPFLAGS'
19056ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19057ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19058ac_compiler_gnu=$ac_cv_c_compiler_gnu
19059
19060CC="$lt_save_CC"
19061
19062 else
19063 tagname=""
19064 fi
19065 ;;
19066
19067 RC)
19068
19069
19070# Source file extension for RC test sources.
19071ac_ext=rc
19072
19073# Object file extension for compiled RC test sources.
19074objext=o
19075objext_RC=$objext
19076
19077# Code to be used in simple compile tests
19078lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19079
19080# Code to be used in simple link tests
19081lt_simple_link_test_code="$lt_simple_compile_test_code"
19082
19083# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19084
19085# If no C compiler was specified, use CC.
19086LTCC=${LTCC-"$CC"}
19087
19088# If no C compiler flags were specified, use CFLAGS.
19089LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19090
19091# Allow CC to be a program name with arguments.
19092compiler=$CC
19093
19094
19095# save warnings/boilerplate of simple test code
19096ac_outfile=conftest.$ac_objext
19097echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19098eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19099_lt_compiler_boilerplate=`cat conftest.err`
19100$rm conftest*
19101
19102ac_outfile=conftest.$ac_objext
19103echo "$lt_simple_link_test_code" >conftest.$ac_ext
19104eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19105_lt_linker_boilerplate=`cat conftest.err`
19106$rm -r conftest*
19107
19108
19109# Allow CC to be a program name with arguments.
19110lt_save_CC="$CC"
19111CC=${RC-"windres"}
19112compiler=$CC
19113compiler_RC=$CC
19114for cc_temp in $compiler""; do
19115 case $cc_temp in
19116 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19117 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19118 \-*) ;;
19119 *) break;;
19120 esac
19121done
19122cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19123
19124lt_cv_prog_compiler_c_o_RC=yes
19125
19126# The else clause should only fire when bootstrapping the
19127# libtool distribution, otherwise you forgot to ship ltmain.sh
19128# with your package, and you will get complaints that there are
19129# no rules to generate ltmain.sh.
19130if test -f "$ltmain"; then
19131 # See if we are running on zsh, and set the options which allow our commands through
19132 # without removal of \ escapes.
19133 if test -n "${ZSH_VERSION+set}" ; then
19134 setopt NO_GLOB_SUBST
19135 fi
19136 # Now quote all the things that may contain metacharacters while being
19137 # careful not to overquote the AC_SUBSTed values. We take copies of the
19138 # variables and quote the copies for generation of the libtool script.
19139 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19140 SED SHELL STRIP \
19141 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19142 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19143 deplibs_check_method reload_flag reload_cmds need_locks \
19144 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19145 lt_cv_sys_global_symbol_to_c_name_address \
19146 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19147 old_postinstall_cmds old_postuninstall_cmds \
19148 compiler_RC \
19149 CC_RC \
19150 LD_RC \
19151 lt_prog_compiler_wl_RC \
19152 lt_prog_compiler_pic_RC \
19153 lt_prog_compiler_static_RC \
19154 lt_prog_compiler_no_builtin_flag_RC \
19155 export_dynamic_flag_spec_RC \
19156 thread_safe_flag_spec_RC \
19157 whole_archive_flag_spec_RC \
19158 enable_shared_with_static_runtimes_RC \
19159 old_archive_cmds_RC \
19160 old_archive_from_new_cmds_RC \
19161 predep_objects_RC \
19162 postdep_objects_RC \
19163 predeps_RC \
19164 postdeps_RC \
19165 compiler_lib_search_path_RC \
19166 compiler_lib_search_dirs_RC \
19167 archive_cmds_RC \
19168 archive_expsym_cmds_RC \
19169 postinstall_cmds_RC \
19170 postuninstall_cmds_RC \
19171 old_archive_from_expsyms_cmds_RC \
19172 allow_undefined_flag_RC \
19173 no_undefined_flag_RC \
19174 export_symbols_cmds_RC \
19175 hardcode_libdir_flag_spec_RC \
19176 hardcode_libdir_flag_spec_ld_RC \
19177 hardcode_libdir_separator_RC \
19178 hardcode_automatic_RC \
19179 module_cmds_RC \
19180 module_expsym_cmds_RC \
19181 lt_cv_prog_compiler_c_o_RC \
19182 fix_srcfile_path_RC \
19183 exclude_expsyms_RC \
19184 include_expsyms_RC; do
19185
19186 case $var in
19187 old_archive_cmds_RC | \
19188 old_archive_from_new_cmds_RC | \
19189 archive_cmds_RC | \
19190 archive_expsym_cmds_RC | \
19191 module_cmds_RC | \
19192 module_expsym_cmds_RC | \
19193 old_archive_from_expsyms_cmds_RC | \
19194 export_symbols_cmds_RC | \
19195 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19196 postinstall_cmds | postuninstall_cmds | \
19197 old_postinstall_cmds | old_postuninstall_cmds | \
19198 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19199 # Double-quote double-evaled strings.
19200 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19201 ;;
19202 *)
19203 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19204 ;;
19205 esac
19206 done
19207
19208 case $lt_echo in
19209 *'\$0 --fallback-echo"')
19210 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19211 ;;
19212 esac
19213
19214cfgfile="$ofile"
19215
19216 cat <<__EOF__ >> "$cfgfile"
19217# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19218
19219# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19220
19221# Shell to use when invoking shell scripts.
19222SHELL=$lt_SHELL
19223
19224# Whether or not to build shared libraries.
19225build_libtool_libs=$enable_shared
19226
19227# Whether or not to build static libraries.
19228build_old_libs=$enable_static
19229
19230# Whether or not to add -lc for building shared libraries.
19231build_libtool_need_lc=$archive_cmds_need_lc_RC
19232
19233# Whether or not to disallow shared libs when runtime libs are static
19234allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19235
19236# Whether or not to optimize for fast installation.
19237fast_install=$enable_fast_install
19238
19239# The host system.
19240host_alias=$host_alias
19241host=$host
19242host_os=$host_os
19243
19244# The build system.
19245build_alias=$build_alias
19246build=$build
19247build_os=$build_os
19248
19249# An echo program that does not interpret backslashes.
19250echo=$lt_echo
19251
19252# The archiver.
19253AR=$lt_AR
19254AR_FLAGS=$lt_AR_FLAGS
19255
19256# A C compiler.
19257LTCC=$lt_LTCC
19258
19259# LTCC compiler flags.
19260LTCFLAGS=$lt_LTCFLAGS
19261
19262# A language-specific compiler.
19263CC=$lt_compiler_RC
19264
19265# Is the compiler the GNU C compiler?
19266with_gcc=$GCC_RC
19267
19268# An ERE matcher.
19269EGREP=$lt_EGREP
19270
19271# The linker used to build libraries.
19272LD=$lt_LD_RC
19273
19274# Whether we need hard or soft links.
19275LN_S=$lt_LN_S
19276
19277# A BSD-compatible nm program.
19278NM=$lt_NM
19279
19280# A symbol stripping program
19281STRIP=$lt_STRIP
19282
19283# Used to examine libraries when file_magic_cmd begins "file"
19284MAGIC_CMD=$MAGIC_CMD
19285
19286# Used on cygwin: DLL creation program.
19287DLLTOOL="$DLLTOOL"
19288
19289# Used on cygwin: object dumper.
19290OBJDUMP="$OBJDUMP"
19291
19292# Used on cygwin: assembler.
19293AS="$AS"
19294
19295# The name of the directory that contains temporary libtool files.
19296objdir=$objdir
19297
19298# How to create reloadable object files.
19299reload_flag=$lt_reload_flag
19300reload_cmds=$lt_reload_cmds
19301
19302# How to pass a linker flag through the compiler.
19303wl=$lt_lt_prog_compiler_wl_RC
19304
19305# Object file suffix (normally "o").
19306objext="$ac_objext"
19307
19308# Old archive suffix (normally "a").
19309libext="$libext"
19310
19311# Shared library suffix (normally ".so").
19312shrext_cmds='$shrext_cmds'
19313
19314# Executable file suffix (normally "").
19315exeext="$exeext"
19316
19317# Additional compiler flags for building library objects.
19318pic_flag=$lt_lt_prog_compiler_pic_RC
19319pic_mode=$pic_mode
19320
19321# What is the maximum length of a command?
19322max_cmd_len=$lt_cv_sys_max_cmd_len
19323
19324# Does compiler simultaneously support -c and -o options?
19325compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19326
19327# Must we lock files when doing compilation?
19328need_locks=$lt_need_locks
19329
19330# Do we need the lib prefix for modules?
19331need_lib_prefix=$need_lib_prefix
19332
19333# Do we need a version for libraries?
19334need_version=$need_version
19335
19336# Whether dlopen is supported.
19337dlopen_support=$enable_dlopen
19338
19339# Whether dlopen of programs is supported.
19340dlopen_self=$enable_dlopen_self
19341
19342# Whether dlopen of statically linked programs is supported.
19343dlopen_self_static=$enable_dlopen_self_static
19344
19345# Compiler flag to prevent dynamic linking.
19346link_static_flag=$lt_lt_prog_compiler_static_RC
19347
19348# Compiler flag to turn off builtin functions.
19349no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19350
19351# Compiler flag to allow reflexive dlopens.
19352export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19353
19354# Compiler flag to generate shared objects directly from archives.
19355whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19356
19357# Compiler flag to generate thread-safe objects.
19358thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19359
19360# Library versioning type.
19361version_type=$version_type
19362
19363# Format of library name prefix.
19364libname_spec=$lt_libname_spec
19365
19366# List of archive names. First name is the real one, the rest are links.
19367# The last name is the one that the linker finds with -lNAME.
19368library_names_spec=$lt_library_names_spec
19369
19370# The coded name of the library, if different from the real name.
19371soname_spec=$lt_soname_spec
19372
19373# Commands used to build and install an old-style archive.
19374RANLIB=$lt_RANLIB
19375old_archive_cmds=$lt_old_archive_cmds_RC
19376old_postinstall_cmds=$lt_old_postinstall_cmds
19377old_postuninstall_cmds=$lt_old_postuninstall_cmds
19378
19379# Create an old-style archive from a shared archive.
19380old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19381
19382# Create a temporary old-style archive to link instead of a shared archive.
19383old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19384
19385# Commands used to build and install a shared archive.
19386archive_cmds=$lt_archive_cmds_RC
19387archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19388postinstall_cmds=$lt_postinstall_cmds
19389postuninstall_cmds=$lt_postuninstall_cmds
19390
19391# Commands used to build a loadable module (assumed same as above if empty)
19392module_cmds=$lt_module_cmds_RC
19393module_expsym_cmds=$lt_module_expsym_cmds_RC
19394
19395# Commands to strip libraries.
19396old_striplib=$lt_old_striplib
19397striplib=$lt_striplib
19398
19399# Dependencies to place before the objects being linked to create a
19400# shared library.
19401predep_objects=$lt_predep_objects_RC
19402
19403# Dependencies to place after the objects being linked to create a
19404# shared library.
19405postdep_objects=$lt_postdep_objects_RC
19406
19407# Dependencies to place before the objects being linked to create a
19408# shared library.
19409predeps=$lt_predeps_RC
19410
19411# Dependencies to place after the objects being linked to create a
19412# shared library.
19413postdeps=$lt_postdeps_RC
19414
19415# The directories searched by this compiler when creating a shared
19416# library
19417compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19418
19419# The library search path used internally by the compiler when linking
19420# a shared library.
19421compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19422
19423# Method to check whether dependent libraries are shared objects.
19424deplibs_check_method=$lt_deplibs_check_method
19425
19426# Command to use when deplibs_check_method == file_magic.
19427file_magic_cmd=$lt_file_magic_cmd
19428
19429# Flag that allows shared libraries with undefined symbols to be built.
19430allow_undefined_flag=$lt_allow_undefined_flag_RC
19431
19432# Flag that forces no undefined symbols.
19433no_undefined_flag=$lt_no_undefined_flag_RC
19434
19435# Commands used to finish a libtool library installation in a directory.
19436finish_cmds=$lt_finish_cmds
19437
19438# Same as above, but a single script fragment to be evaled but not shown.
19439finish_eval=$lt_finish_eval
19440
19441# Take the output of nm and produce a listing of raw symbols and C names.
19442global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19443
19444# Transform the output of nm in a proper C declaration
19445global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19446
19447# Transform the output of nm in a C name address pair
19448global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19449
19450# This is the shared library runtime path variable.
19451runpath_var=$runpath_var
19452
19453# This is the shared library path variable.
19454shlibpath_var=$shlibpath_var
19455
19456# Is shlibpath searched before the hard-coded library search path?
19457shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19458
19459# How to hardcode a shared library path into an executable.
19460hardcode_action=$hardcode_action_RC
19461
19462# Whether we should hardcode library paths into libraries.
19463hardcode_into_libs=$hardcode_into_libs
19464
19465# Flag to hardcode \$libdir into a binary during linking.
19466# This must work even if \$libdir does not exist.
19467hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19468
19469# If ld is used when linking, flag to hardcode \$libdir into
19470# a binary during linking. This must work even if \$libdir does
19471# not exist.
19472hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19473
19474# Whether we need a single -rpath flag with a separated argument.
19475hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19476
19477# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19478# resulting binary.
19479hardcode_direct=$hardcode_direct_RC
19480
19481# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19482# resulting binary.
19483hardcode_minus_L=$hardcode_minus_L_RC
19484
19485# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19486# the resulting binary.
19487hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19488
19489# Set to yes if building a shared library automatically hardcodes DIR into the library
19490# and all subsequent libraries and executables linked against it.
19491hardcode_automatic=$hardcode_automatic_RC
19492
19493# Variables whose values should be saved in libtool wrapper scripts and
19494# restored at relink time.
19495variables_saved_for_relink="$variables_saved_for_relink"
19496
19497# Whether libtool must link a program against all its dependency libraries.
19498link_all_deplibs=$link_all_deplibs_RC
19499
19500# Compile-time system search path for libraries
19501sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19502
19503# Run-time system search path for libraries
19504sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19505
19506# Fix the shell variable \$srcfile for the compiler.
19507fix_srcfile_path=$lt_fix_srcfile_path
19508
19509# Set to yes if exported symbols are required.
19510always_export_symbols=$always_export_symbols_RC
19511
19512# The commands to list exported symbols.
19513export_symbols_cmds=$lt_export_symbols_cmds_RC
19514
19515# The commands to extract the exported symbol list from a shared archive.
19516extract_expsyms_cmds=$lt_extract_expsyms_cmds
19517
19518# Symbols that should not be listed in the preloaded symbols.
19519exclude_expsyms=$lt_exclude_expsyms_RC
19520
19521# Symbols that must always be exported.
19522include_expsyms=$lt_include_expsyms_RC
19523
19524# ### END LIBTOOL TAG CONFIG: $tagname
19525
19526__EOF__
19527
19528
19529else
19530 # If there is no Makefile yet, we rely on a make rule to execute
19531 # `config.status --recheck' to rerun these tests and create the
19532 # libtool script then.
19533 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19534 if test -f "$ltmain_in"; then
19535 test -f Makefile && make "$ltmain"
19536 fi
19537fi
19538
19539
19540ac_ext=c
19541ac_cpp='$CPP $CPPFLAGS'
19542ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19543ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19544ac_compiler_gnu=$ac_cv_c_compiler_gnu
19545
19546CC="$lt_save_CC"
19547
19548 ;;
19549
19550 *)
19551 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19552echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19553 { (exit 1); exit 1; }; }
19554 ;;
19555 esac
19556
19557 # Append the new tag name to the list of available tags.
19558 if test -n "$tagname" ; then
19559 available_tags="$available_tags $tagname"
19560 fi
19561 fi
19562 done
19563 IFS="$lt_save_ifs"
19564
19565 # Now substitute the updated list of available tags.
19566 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19567 mv "${ofile}T" "$ofile"
19568 chmod +x "$ofile"
19569 else
19570 rm -f "${ofile}T"
19571 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19572echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19573 { (exit 1); exit 1; }; }
19574 fi
19575fi
19576
19577
19578
19579# This can be used to rebuild libtool when needed
19580LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19581
19582# Always use our own libtool.
19583LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19584
19585# Prevent multiple expansion
19586
19587
19588
19589
19590
19591
19592
19593
19594
19595
19596
19597
19598
19599
19600
19601
19602
19603
19604
19605
19606if test -n "$ac_tool_prefix"; then
19607 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
19608set dummy ${ac_tool_prefix}ranlib; ac_word=$2
19609{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19610echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19611if test "${ac_cv_prog_RANLIB+set}" = set; then
19612 echo $ECHO_N "(cached) $ECHO_C" >&6
19613else
19614 if test -n "$RANLIB"; then
19615 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
19616else
19617as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19618for as_dir in $PATH
19619do
19620 IFS=$as_save_IFS
19621 test -z "$as_dir" && as_dir=.
19622 for ac_exec_ext in '' $ac_executable_extensions; do
19623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19624 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
19625 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19626 break 2
19627 fi
19628done
19629done
19630IFS=$as_save_IFS
19631
19632fi
19633fi
19634RANLIB=$ac_cv_prog_RANLIB
19635if test -n "$RANLIB"; then
19636 { echo "$as_me:$LINENO: result: $RANLIB" >&5
19637echo "${ECHO_T}$RANLIB" >&6; }
19638else
19639 { echo "$as_me:$LINENO: result: no" >&5
19640echo "${ECHO_T}no" >&6; }
19641fi
19642
19643
19644fi
19645if test -z "$ac_cv_prog_RANLIB"; then
19646 ac_ct_RANLIB=$RANLIB
19647 # Extract the first word of "ranlib", so it can be a program name with args.
19648set dummy ranlib; ac_word=$2
19649{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19650echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19651if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
19652 echo $ECHO_N "(cached) $ECHO_C" >&6
19653else
19654 if test -n "$ac_ct_RANLIB"; then
19655 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
19656else
19657as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19658for as_dir in $PATH
19659do
19660 IFS=$as_save_IFS
19661 test -z "$as_dir" && as_dir=.
19662 for ac_exec_ext in '' $ac_executable_extensions; do
19663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19664 ac_cv_prog_ac_ct_RANLIB="ranlib"
19665 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19666 break 2
19667 fi
19668done
19669done
19670IFS=$as_save_IFS
19671
19672fi
19673fi
19674ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
19675if test -n "$ac_ct_RANLIB"; then
19676 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
19677echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
19678else
19679 { echo "$as_me:$LINENO: result: no" >&5
19680echo "${ECHO_T}no" >&6; }
19681fi
19682
19683 if test "x$ac_ct_RANLIB" = x; then
19684 RANLIB=":"
19685 else
19686 case $cross_compiling:$ac_tool_warned in
19687yes:)
19688{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19689whose name does not start with the host triplet. If you think this
19690configuration is useful to you, please write to autoconf@gnu.org." >&5
19691echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19692whose name does not start with the host triplet. If you think this
19693configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19694ac_tool_warned=yes ;;
19695esac
19696 RANLIB=$ac_ct_RANLIB
19697 fi
19698else
19699 RANLIB="$ac_cv_prog_RANLIB"
19700fi
19701
19702
19703# Checks for libraries.
19704#AC_CHECK_LIB([rt], [mq_open])
19705
19706# Checks for header files.
19707
19708
19709
19710
19711
19712ac_header_dirent=no
19713for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
19714 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
19715{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
19716echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
19717if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19718 echo $ECHO_N "(cached) $ECHO_C" >&6
19719else
19720 cat >conftest.$ac_ext <<_ACEOF
19721/* confdefs.h. */
19722_ACEOF
19723cat confdefs.h >>conftest.$ac_ext
19724cat >>conftest.$ac_ext <<_ACEOF
19725/* end confdefs.h. */
19726#include <sys/types.h>
19727#include <$ac_hdr>
19728
19729int
19730main ()
19731{
19732if ((DIR *) 0)
19733return 0;
19734 ;
19735 return 0;
19736}
19737_ACEOF
19738rm -f conftest.$ac_objext
19739if { (ac_try="$ac_compile"
19740case "(($ac_try" in
19741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19742 *) ac_try_echo=$ac_try;;
19743esac
19744eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19745 (eval "$ac_compile") 2>conftest.er1
19746 ac_status=$?
19747 grep -v '^ *+' conftest.er1 >conftest.err
19748 rm -f conftest.er1
19749 cat conftest.err >&5
19750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19751 (exit $ac_status); } && {
19752 test -z "$ac_c_werror_flag" ||
19753 test ! -s conftest.err
19754 } && test -s conftest.$ac_objext; then
19755 eval "$as_ac_Header=yes"
19756else
19757 echo "$as_me: failed program was:" >&5
19758sed 's/^/| /' conftest.$ac_ext >&5
19759
19760 eval "$as_ac_Header=no"
19761fi
19762
19763rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19764fi
19765ac_res=`eval echo '${'$as_ac_Header'}'`
19766 { echo "$as_me:$LINENO: result: $ac_res" >&5
19767echo "${ECHO_T}$ac_res" >&6; }
19768if test `eval echo '${'$as_ac_Header'}'` = yes; then
19769 cat >>confdefs.h <<_ACEOF
19770@%:@define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
19771_ACEOF
19772
19773ac_header_dirent=$ac_hdr; break
19774fi
19775
19776done
19777# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
19778if test $ac_header_dirent = dirent.h; then
19779 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
19780echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
19781if test "${ac_cv_search_opendir+set}" = set; then
19782 echo $ECHO_N "(cached) $ECHO_C" >&6
19783else
19784 ac_func_search_save_LIBS=$LIBS
19785cat >conftest.$ac_ext <<_ACEOF
19786/* confdefs.h. */
19787_ACEOF
19788cat confdefs.h >>conftest.$ac_ext
19789cat >>conftest.$ac_ext <<_ACEOF
19790/* end confdefs.h. */
19791
19792/* Override any GCC internal prototype to avoid an error.
19793 Use char because int might match the return type of a GCC
19794 builtin and then its argument prototype would still apply. */
19795#ifdef __cplusplus
19796extern "C"
19797#endif
19798char opendir ();
19799int
19800main ()
19801{
19802return opendir ();
19803 ;
19804 return 0;
19805}
19806_ACEOF
19807for ac_lib in '' dir; do
19808 if test -z "$ac_lib"; then
19809 ac_res="none required"
19810 else
19811 ac_res=-l$ac_lib
19812 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19813 fi
19814 rm -f conftest.$ac_objext conftest$ac_exeext
19815if { (ac_try="$ac_link"
19816case "(($ac_try" in
19817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19818 *) ac_try_echo=$ac_try;;
19819esac
19820eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19821 (eval "$ac_link") 2>conftest.er1
19822 ac_status=$?
19823 grep -v '^ *+' conftest.er1 >conftest.err
19824 rm -f conftest.er1
19825 cat conftest.err >&5
19826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19827 (exit $ac_status); } && {
19828 test -z "$ac_c_werror_flag" ||
19829 test ! -s conftest.err
19830 } && test -s conftest$ac_exeext &&
19831 $as_test_x conftest$ac_exeext; then
19832 ac_cv_search_opendir=$ac_res
19833else
19834 echo "$as_me: failed program was:" >&5
19835sed 's/^/| /' conftest.$ac_ext >&5
19836
19837
19838fi
19839
19840rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19841 conftest$ac_exeext
19842 if test "${ac_cv_search_opendir+set}" = set; then
19843 break
19844fi
19845done
19846if test "${ac_cv_search_opendir+set}" = set; then
19847 :
19848else
19849 ac_cv_search_opendir=no
19850fi
19851rm conftest.$ac_ext
19852LIBS=$ac_func_search_save_LIBS
19853fi
19854{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
19855echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
19856ac_res=$ac_cv_search_opendir
19857if test "$ac_res" != no; then
19858 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19859
19860fi
19861
19862else
19863 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
19864echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
19865if test "${ac_cv_search_opendir+set}" = set; then
19866 echo $ECHO_N "(cached) $ECHO_C" >&6
19867else
19868 ac_func_search_save_LIBS=$LIBS
19869cat >conftest.$ac_ext <<_ACEOF
19870/* confdefs.h. */
19871_ACEOF
19872cat confdefs.h >>conftest.$ac_ext
19873cat >>conftest.$ac_ext <<_ACEOF
19874/* end confdefs.h. */
19875
19876/* Override any GCC internal prototype to avoid an error.
19877 Use char because int might match the return type of a GCC
19878 builtin and then its argument prototype would still apply. */
19879#ifdef __cplusplus
19880extern "C"
19881#endif
19882char opendir ();
19883int
19884main ()
19885{
19886return opendir ();
19887 ;
19888 return 0;
19889}
19890_ACEOF
19891for ac_lib in '' x; do
19892 if test -z "$ac_lib"; then
19893 ac_res="none required"
19894 else
19895 ac_res=-l$ac_lib
19896 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19897 fi
19898 rm -f conftest.$ac_objext conftest$ac_exeext
19899if { (ac_try="$ac_link"
19900case "(($ac_try" in
19901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19902 *) ac_try_echo=$ac_try;;
19903esac
19904eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19905 (eval "$ac_link") 2>conftest.er1
19906 ac_status=$?
19907 grep -v '^ *+' conftest.er1 >conftest.err
19908 rm -f conftest.er1
19909 cat conftest.err >&5
19910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19911 (exit $ac_status); } && {
19912 test -z "$ac_c_werror_flag" ||
19913 test ! -s conftest.err
19914 } && test -s conftest$ac_exeext &&
19915 $as_test_x conftest$ac_exeext; then
19916 ac_cv_search_opendir=$ac_res
19917else
19918 echo "$as_me: failed program was:" >&5
19919sed 's/^/| /' conftest.$ac_ext >&5
19920
19921
19922fi
19923
19924rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19925 conftest$ac_exeext
19926 if test "${ac_cv_search_opendir+set}" = set; then
19927 break
19928fi
19929done
19930if test "${ac_cv_search_opendir+set}" = set; then
19931 :
19932else
19933 ac_cv_search_opendir=no
19934fi
19935rm conftest.$ac_ext
19936LIBS=$ac_func_search_save_LIBS
19937fi
19938{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
19939echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
19940ac_res=$ac_cv_search_opendir
19941if test "$ac_res" != no; then
19942 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19943
19944fi
19945
19946fi
19947
19948{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19949echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
19950if test "${ac_cv_header_stdc+set}" = set; then
19951 echo $ECHO_N "(cached) $ECHO_C" >&6
19952else
19953 cat >conftest.$ac_ext <<_ACEOF
19954/* confdefs.h. */
19955_ACEOF
19956cat confdefs.h >>conftest.$ac_ext
19957cat >>conftest.$ac_ext <<_ACEOF
19958/* end confdefs.h. */
19959#include <stdlib.h>
19960#include <stdarg.h>
19961#include <string.h>
19962#include <float.h>
19963
19964int
19965main ()
19966{
19967
19968 ;
19969 return 0;
19970}
19971_ACEOF
19972rm -f conftest.$ac_objext
19973if { (ac_try="$ac_compile"
19974case "(($ac_try" in
19975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19976 *) ac_try_echo=$ac_try;;
19977esac
19978eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19979 (eval "$ac_compile") 2>conftest.er1
19980 ac_status=$?
19981 grep -v '^ *+' conftest.er1 >conftest.err
19982 rm -f conftest.er1
19983 cat conftest.err >&5
19984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19985 (exit $ac_status); } && {
19986 test -z "$ac_c_werror_flag" ||
19987 test ! -s conftest.err
19988 } && test -s conftest.$ac_objext; then
19989 ac_cv_header_stdc=yes
19990else
19991 echo "$as_me: failed program was:" >&5
19992sed 's/^/| /' conftest.$ac_ext >&5
19993
19994 ac_cv_header_stdc=no
19995fi
19996
19997rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19998
19999if test $ac_cv_header_stdc = yes; then
20000 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20001 cat >conftest.$ac_ext <<_ACEOF
20002/* confdefs.h. */
20003_ACEOF
20004cat confdefs.h >>conftest.$ac_ext
20005cat >>conftest.$ac_ext <<_ACEOF
20006/* end confdefs.h. */
20007#include <string.h>
20008
20009_ACEOF
20010if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20011 $EGREP "memchr" >/dev/null 2>&1; then
20012 :
20013else
20014 ac_cv_header_stdc=no
20015fi
20016rm -f conftest*
20017
20018fi
20019
20020if test $ac_cv_header_stdc = yes; then
20021 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20022 cat >conftest.$ac_ext <<_ACEOF
20023/* confdefs.h. */
20024_ACEOF
20025cat confdefs.h >>conftest.$ac_ext
20026cat >>conftest.$ac_ext <<_ACEOF
20027/* end confdefs.h. */
20028#include <stdlib.h>
20029
20030_ACEOF
20031if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20032 $EGREP "free" >/dev/null 2>&1; then
20033 :
20034else
20035 ac_cv_header_stdc=no
20036fi
20037rm -f conftest*
20038
20039fi
20040
20041if test $ac_cv_header_stdc = yes; then
20042 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20043 if test "$cross_compiling" = yes; then
20044 :
20045else
20046 cat >conftest.$ac_ext <<_ACEOF
20047/* confdefs.h. */
20048_ACEOF
20049cat confdefs.h >>conftest.$ac_ext
20050cat >>conftest.$ac_ext <<_ACEOF
20051/* end confdefs.h. */
20052#include <ctype.h>
20053#include <stdlib.h>
20054#if ((' ' & 0x0FF) == 0x020)
20055# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20056# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20057#else
20058# define ISLOWER(c) \
20059 (('a' <= (c) && (c) <= 'i') \
20060 || ('j' <= (c) && (c) <= 'r') \
20061 || ('s' <= (c) && (c) <= 'z'))
20062# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20063#endif
20064
20065#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20066int
20067main ()
20068{
20069 int i;
20070 for (i = 0; i < 256; i++)
20071 if (XOR (islower (i), ISLOWER (i))
20072 || toupper (i) != TOUPPER (i))
20073 return 2;
20074 return 0;
20075}
20076_ACEOF
20077rm -f conftest$ac_exeext
20078if { (ac_try="$ac_link"
20079case "(($ac_try" in
20080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20081 *) ac_try_echo=$ac_try;;
20082esac
20083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20084 (eval "$ac_link") 2>&5
20085 ac_status=$?
20086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20087 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20088 { (case "(($ac_try" in
20089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20090 *) ac_try_echo=$ac_try;;
20091esac
20092eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20093 (eval "$ac_try") 2>&5
20094 ac_status=$?
20095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20096 (exit $ac_status); }; }; then
20097 :
20098else
20099 echo "$as_me: program exited with status $ac_status" >&5
20100echo "$as_me: failed program was:" >&5
20101sed 's/^/| /' conftest.$ac_ext >&5
20102
20103( exit $ac_status )
20104ac_cv_header_stdc=no
20105fi
20106rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20107fi
20108
20109
20110fi
20111fi
20112{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20113echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
20114if test $ac_cv_header_stdc = yes; then
20115
20116cat >>confdefs.h <<\_ACEOF
20117@%:@define STDC_HEADERS 1
20118_ACEOF
20119
20120fi
20121
20122{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
20123echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
20124if test "${ac_cv_header_sys_wait_h+set}" = set; then
20125 echo $ECHO_N "(cached) $ECHO_C" >&6
20126else
20127 cat >conftest.$ac_ext <<_ACEOF
20128/* confdefs.h. */
20129_ACEOF
20130cat confdefs.h >>conftest.$ac_ext
20131cat >>conftest.$ac_ext <<_ACEOF
20132/* end confdefs.h. */
20133#include <sys/types.h>
20134#include <sys/wait.h>
20135#ifndef WEXITSTATUS
20136# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
20137#endif
20138#ifndef WIFEXITED
20139# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
20140#endif
20141
20142int
20143main ()
20144{
20145 int s;
20146 wait (&s);
20147 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
20148 ;
20149 return 0;
20150}
20151_ACEOF
20152rm -f conftest.$ac_objext
20153if { (ac_try="$ac_compile"
20154case "(($ac_try" in
20155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20156 *) ac_try_echo=$ac_try;;
20157esac
20158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20159 (eval "$ac_compile") 2>conftest.er1
20160 ac_status=$?
20161 grep -v '^ *+' conftest.er1 >conftest.err
20162 rm -f conftest.er1
20163 cat conftest.err >&5
20164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20165 (exit $ac_status); } && {
20166 test -z "$ac_c_werror_flag" ||
20167 test ! -s conftest.err
20168 } && test -s conftest.$ac_objext; then
20169 ac_cv_header_sys_wait_h=yes
20170else
20171 echo "$as_me: failed program was:" >&5
20172sed 's/^/| /' conftest.$ac_ext >&5
20173
20174 ac_cv_header_sys_wait_h=no
20175fi
20176
20177rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20178fi
20179{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
20180echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
20181if test $ac_cv_header_sys_wait_h = yes; then
20182
20183cat >>confdefs.h <<\_ACEOF
20184@%:@define HAVE_SYS_WAIT_H 1
20185_ACEOF
20186
20187fi
20188
20189
20190
20191
20192
20193
20194
20195
20196
20197
20198
20199
20200
20201
20202
20203
20204for ac_header in arpa/inet.h fcntl.h inttypes.h malloc.h netdb.h netinet/in.h stdint.h stdlib.h string.h strings.h sys/ioctl.h sys/socket.h sys/time.h syslog.h unistd.h
20205do
20206as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20207if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20208 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20209echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20210if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20211 echo $ECHO_N "(cached) $ECHO_C" >&6
20212fi
20213ac_res=`eval echo '${'$as_ac_Header'}'`
20214 { echo "$as_me:$LINENO: result: $ac_res" >&5
20215echo "${ECHO_T}$ac_res" >&6; }
20216else
20217 # Is the header compilable?
20218{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
20219echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20220cat >conftest.$ac_ext <<_ACEOF
20221/* confdefs.h. */
20222_ACEOF
20223cat confdefs.h >>conftest.$ac_ext
20224cat >>conftest.$ac_ext <<_ACEOF
20225/* end confdefs.h. */
20226$ac_includes_default
20227@%:@include <$ac_header>
20228_ACEOF
20229rm -f conftest.$ac_objext
20230if { (ac_try="$ac_compile"
20231case "(($ac_try" in
20232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20233 *) ac_try_echo=$ac_try;;
20234esac
20235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20236 (eval "$ac_compile") 2>conftest.er1
20237 ac_status=$?
20238 grep -v '^ *+' conftest.er1 >conftest.err
20239 rm -f conftest.er1
20240 cat conftest.err >&5
20241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20242 (exit $ac_status); } && {
20243 test -z "$ac_c_werror_flag" ||
20244 test ! -s conftest.err
20245 } && test -s conftest.$ac_objext; then
20246 ac_header_compiler=yes
20247else
20248 echo "$as_me: failed program was:" >&5
20249sed 's/^/| /' conftest.$ac_ext >&5
20250
20251 ac_header_compiler=no
20252fi
20253
20254rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20255{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20256echo "${ECHO_T}$ac_header_compiler" >&6; }
20257
20258# Is the header present?
20259{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
20260echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20261cat >conftest.$ac_ext <<_ACEOF
20262/* confdefs.h. */
20263_ACEOF
20264cat confdefs.h >>conftest.$ac_ext
20265cat >>conftest.$ac_ext <<_ACEOF
20266/* end confdefs.h. */
20267@%:@include <$ac_header>
20268_ACEOF
20269if { (ac_try="$ac_cpp conftest.$ac_ext"
20270case "(($ac_try" in
20271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20272 *) ac_try_echo=$ac_try;;
20273esac
20274eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20275 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20276 ac_status=$?
20277 grep -v '^ *+' conftest.er1 >conftest.err
20278 rm -f conftest.er1
20279 cat conftest.err >&5
20280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20281 (exit $ac_status); } >/dev/null && {
20282 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20283 test ! -s conftest.err
20284 }; then
20285 ac_header_preproc=yes
20286else
20287 echo "$as_me: failed program was:" >&5
20288sed 's/^/| /' conftest.$ac_ext >&5
20289
20290 ac_header_preproc=no
20291fi
20292
20293rm -f conftest.err conftest.$ac_ext
20294{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20295echo "${ECHO_T}$ac_header_preproc" >&6; }
20296
20297# So? What about this header?
20298case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20299 yes:no: )
20300 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20301echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20302 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20303echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20304 ac_header_preproc=yes
20305 ;;
20306 no:yes:* )
20307 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20308echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20309 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20310echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20311 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20312echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20313 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20314echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20315 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20316echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20317 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20318echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20319 ( cat <<\_ASBOX
20320@%:@@%:@ --------------------------------- @%:@@%:@
20321@%:@@%:@ Report this to support@itibia.com @%:@@%:@
20322@%:@@%:@ --------------------------------- @%:@@%:@
20323_ASBOX
20324 ) | sed "s/^/$as_me: WARNING: /" >&2
20325 ;;
20326esac
20327{ echo "$as_me:$LINENO: checking for $ac_header" >&5
20328echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20329if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20330 echo $ECHO_N "(cached) $ECHO_C" >&6
20331else
20332 eval "$as_ac_Header=\$ac_header_preproc"
20333fi
20334ac_res=`eval echo '${'$as_ac_Header'}'`
20335 { echo "$as_me:$LINENO: result: $ac_res" >&5
20336echo "${ECHO_T}$ac_res" >&6; }
20337
20338fi
20339if test `eval echo '${'$as_ac_Header'}'` = yes; then
20340 cat >>confdefs.h <<_ACEOF
20341@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20342_ACEOF
20343
20344fi
20345
20346done
20347
20348
20349
20350# Checks for typedefs, structures, and compiler characteristics.
20351{ echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
20352echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; }
20353if test "${ac_cv_header_stdbool_h+set}" = set; then
20354 echo $ECHO_N "(cached) $ECHO_C" >&6
20355else
20356 cat >conftest.$ac_ext <<_ACEOF
20357/* confdefs.h. */
20358_ACEOF
20359cat confdefs.h >>conftest.$ac_ext
20360cat >>conftest.$ac_ext <<_ACEOF
20361/* end confdefs.h. */
20362
20363#include <stdbool.h>
20364#ifndef bool
20365 "error: bool is not defined"
20366#endif
20367#ifndef false
20368 "error: false is not defined"
20369#endif
20370#if false
20371 "error: false is not 0"
20372#endif
20373#ifndef true
20374 "error: true is not defined"
20375#endif
20376#if true != 1
20377 "error: true is not 1"
20378#endif
20379#ifndef __bool_true_false_are_defined
20380 "error: __bool_true_false_are_defined is not defined"
20381#endif
20382
20383 struct s { _Bool s: 1; _Bool t; } s;
20384
20385 char a[true == 1 ? 1 : -1];
20386 char b[false == 0 ? 1 : -1];
20387 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
20388 char d[(bool) 0.5 == true ? 1 : -1];
20389 bool e = &s;
20390 char f[(_Bool) 0.0 == false ? 1 : -1];
20391 char g[true];
20392 char h[sizeof (_Bool)];
20393 char i[sizeof s.t];
20394 enum { j = false, k = true, l = false * true, m = true * 256 };
20395 _Bool n[m];
20396 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
20397 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
20398# if defined __xlc__ || defined __GNUC__
20399 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
20400 reported by James Lemley on 2005-10-05; see
20401 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
20402 This test is not quite right, since xlc is allowed to
20403 reject this program, as the initializer for xlcbug is
20404 not one of the forms that C requires support for.
20405 However, doing the test right would require a runtime
20406 test, and that would make cross-compilation harder.
20407 Let us hope that IBM fixes the xlc bug, and also adds
20408 support for this kind of constant expression. In the
20409 meantime, this test will reject xlc, which is OK, since
20410 our stdbool.h substitute should suffice. We also test
20411 this with GCC, where it should work, to detect more
20412 quickly whether someone messes up the test in the
20413 future. */
20414 char digs[] = "0123456789";
20415 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
20416# endif
20417 /* Catch a bug in an HP-UX C compiler. See
20418 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
20419 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
20420 */
20421 _Bool q = true;
20422 _Bool *pq = &q;
20423
20424int
20425main ()
20426{
20427
20428 *pq |= q;
20429 *pq |= ! q;
20430 /* Refer to every declared value, to avoid compiler optimizations. */
20431 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
20432 + !m + !n + !o + !p + !q + !pq);
20433
20434 ;
20435 return 0;
20436}
20437_ACEOF
20438rm -f conftest.$ac_objext
20439if { (ac_try="$ac_compile"
20440case "(($ac_try" in
20441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20442 *) ac_try_echo=$ac_try;;
20443esac
20444eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20445 (eval "$ac_compile") 2>conftest.er1
20446 ac_status=$?
20447 grep -v '^ *+' conftest.er1 >conftest.err
20448 rm -f conftest.er1
20449 cat conftest.err >&5
20450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20451 (exit $ac_status); } && {
20452 test -z "$ac_c_werror_flag" ||
20453 test ! -s conftest.err
20454 } && test -s conftest.$ac_objext; then
20455 ac_cv_header_stdbool_h=yes
20456else
20457 echo "$as_me: failed program was:" >&5
20458sed 's/^/| /' conftest.$ac_ext >&5
20459
20460 ac_cv_header_stdbool_h=no
20461fi
20462
20463rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20464fi
20465{ echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
20466echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
20467{ echo "$as_me:$LINENO: checking for _Bool" >&5
20468echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
20469if test "${ac_cv_type__Bool+set}" = set; then
20470 echo $ECHO_N "(cached) $ECHO_C" >&6
20471else
20472 cat >conftest.$ac_ext <<_ACEOF
20473/* confdefs.h. */
20474_ACEOF
20475cat confdefs.h >>conftest.$ac_ext
20476cat >>conftest.$ac_ext <<_ACEOF
20477/* end confdefs.h. */
20478$ac_includes_default
20479typedef _Bool ac__type_new_;
20480int
20481main ()
20482{
20483if ((ac__type_new_ *) 0)
20484 return 0;
20485if (sizeof (ac__type_new_))
20486 return 0;
20487 ;
20488 return 0;
20489}
20490_ACEOF
20491rm -f conftest.$ac_objext
20492if { (ac_try="$ac_compile"
20493case "(($ac_try" in
20494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20495 *) ac_try_echo=$ac_try;;
20496esac
20497eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20498 (eval "$ac_compile") 2>conftest.er1
20499 ac_status=$?
20500 grep -v '^ *+' conftest.er1 >conftest.err
20501 rm -f conftest.er1
20502 cat conftest.err >&5
20503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20504 (exit $ac_status); } && {
20505 test -z "$ac_c_werror_flag" ||
20506 test ! -s conftest.err
20507 } && test -s conftest.$ac_objext; then
20508 ac_cv_type__Bool=yes
20509else
20510 echo "$as_me: failed program was:" >&5
20511sed 's/^/| /' conftest.$ac_ext >&5
20512
20513 ac_cv_type__Bool=no
20514fi
20515
20516rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20517fi
20518{ echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
20519echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
20520if test $ac_cv_type__Bool = yes; then
20521
20522cat >>confdefs.h <<_ACEOF
20523@%:@define HAVE__BOOL 1
20524_ACEOF
20525
20526
20527fi
20528
20529if test $ac_cv_header_stdbool_h = yes; then
20530
20531cat >>confdefs.h <<\_ACEOF
20532@%:@define HAVE_STDBOOL_H 1
20533_ACEOF
20534
20535fi
20536
20537{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20538echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
20539if test "${ac_cv_c_const+set}" = set; then
20540 echo $ECHO_N "(cached) $ECHO_C" >&6
20541else
20542 cat >conftest.$ac_ext <<_ACEOF
20543/* confdefs.h. */
20544_ACEOF
20545cat confdefs.h >>conftest.$ac_ext
20546cat >>conftest.$ac_ext <<_ACEOF
20547/* end confdefs.h. */
20548
20549int
20550main ()
20551{
20552/* FIXME: Include the comments suggested by Paul. */
20553#ifndef __cplusplus
20554 /* Ultrix mips cc rejects this. */
20555 typedef int charset[2];
20556 const charset cs;
20557 /* SunOS 4.1.1 cc rejects this. */
20558 char const *const *pcpcc;
20559 char **ppc;
20560 /* NEC SVR4.0.2 mips cc rejects this. */
20561 struct point {int x, y;};
20562 static struct point const zero = {0,0};
20563 /* AIX XL C 1.02.0.0 rejects this.
20564 It does not let you subtract one const X* pointer from another in
20565 an arm of an if-expression whose if-part is not a constant
20566 expression */
20567 const char *g = "string";
20568 pcpcc = &g + (g ? g-g : 0);
20569 /* HPUX 7.0 cc rejects these. */
20570 ++pcpcc;
20571 ppc = (char**) pcpcc;
20572 pcpcc = (char const *const *) ppc;
20573 { /* SCO 3.2v4 cc rejects this. */
20574 char *t;
20575 char const *s = 0 ? (char *) 0 : (char const *) 0;
20576
20577 *t++ = 0;
20578 if (s) return 0;
20579 }
20580 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20581 int x[] = {25, 17};
20582 const int *foo = &x[0];
20583 ++foo;
20584 }
20585 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20586 typedef const int *iptr;
20587 iptr p = 0;
20588 ++p;
20589 }
20590 { /* AIX XL C 1.02.0.0 rejects this saying
20591 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20592 struct s { int j; const int *ap[3]; };
20593 struct s *b; b->j = 5;
20594 }
20595 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20596 const int foo = 10;
20597 if (!foo) return 0;
20598 }
20599 return !cs[0] && !zero.x;
20600#endif
20601
20602 ;
20603 return 0;
20604}
20605_ACEOF
20606rm -f conftest.$ac_objext
20607if { (ac_try="$ac_compile"
20608case "(($ac_try" in
20609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20610 *) ac_try_echo=$ac_try;;
20611esac
20612eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20613 (eval "$ac_compile") 2>conftest.er1
20614 ac_status=$?
20615 grep -v '^ *+' conftest.er1 >conftest.err
20616 rm -f conftest.er1
20617 cat conftest.err >&5
20618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20619 (exit $ac_status); } && {
20620 test -z "$ac_c_werror_flag" ||
20621 test ! -s conftest.err
20622 } && test -s conftest.$ac_objext; then
20623 ac_cv_c_const=yes
20624else
20625 echo "$as_me: failed program was:" >&5
20626sed 's/^/| /' conftest.$ac_ext >&5
20627
20628 ac_cv_c_const=no
20629fi
20630
20631rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20632fi
20633{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20634echo "${ECHO_T}$ac_cv_c_const" >&6; }
20635if test $ac_cv_c_const = no; then
20636
20637cat >>confdefs.h <<\_ACEOF
20638@%:@define const
20639_ACEOF
20640
20641fi
20642
20643{ echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
20644echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
20645if test "${ac_cv_type_uid_t+set}" = set; then
20646 echo $ECHO_N "(cached) $ECHO_C" >&6
20647else
20648 cat >conftest.$ac_ext <<_ACEOF
20649/* confdefs.h. */
20650_ACEOF
20651cat confdefs.h >>conftest.$ac_ext
20652cat >>conftest.$ac_ext <<_ACEOF
20653/* end confdefs.h. */
20654#include <sys/types.h>
20655
20656_ACEOF
20657if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20658 $EGREP "uid_t" >/dev/null 2>&1; then
20659 ac_cv_type_uid_t=yes
20660else
20661 ac_cv_type_uid_t=no
20662fi
20663rm -f conftest*
20664
20665fi
20666{ echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
20667echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
20668if test $ac_cv_type_uid_t = no; then
20669
20670cat >>confdefs.h <<\_ACEOF
20671@%:@define uid_t int
20672_ACEOF
20673
20674
20675cat >>confdefs.h <<\_ACEOF
20676@%:@define gid_t int
20677_ACEOF
20678
20679fi
20680
20681{ echo "$as_me:$LINENO: checking for inline" >&5
20682echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
20683if test "${ac_cv_c_inline+set}" = set; then
20684 echo $ECHO_N "(cached) $ECHO_C" >&6
20685else
20686 ac_cv_c_inline=no
20687for ac_kw in inline __inline__ __inline; do
20688 cat >conftest.$ac_ext <<_ACEOF
20689/* confdefs.h. */
20690_ACEOF
20691cat confdefs.h >>conftest.$ac_ext
20692cat >>conftest.$ac_ext <<_ACEOF
20693/* end confdefs.h. */
20694#ifndef __cplusplus
20695typedef int foo_t;
20696static $ac_kw foo_t static_foo () {return 0; }
20697$ac_kw foo_t foo () {return 0; }
20698#endif
20699
20700_ACEOF
20701rm -f conftest.$ac_objext
20702if { (ac_try="$ac_compile"
20703case "(($ac_try" in
20704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20705 *) ac_try_echo=$ac_try;;
20706esac
20707eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20708 (eval "$ac_compile") 2>conftest.er1
20709 ac_status=$?
20710 grep -v '^ *+' conftest.er1 >conftest.err
20711 rm -f conftest.er1
20712 cat conftest.err >&5
20713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20714 (exit $ac_status); } && {
20715 test -z "$ac_c_werror_flag" ||
20716 test ! -s conftest.err
20717 } && test -s conftest.$ac_objext; then
20718 ac_cv_c_inline=$ac_kw
20719else
20720 echo "$as_me: failed program was:" >&5
20721sed 's/^/| /' conftest.$ac_ext >&5
20722
20723
20724fi
20725
20726rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20727 test "$ac_cv_c_inline" != no && break
20728done
20729
20730fi
20731{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
20732echo "${ECHO_T}$ac_cv_c_inline" >&6; }
20733
20734
20735case $ac_cv_c_inline in
20736 inline | yes) ;;
20737 *)
20738 case $ac_cv_c_inline in
20739 no) ac_val=;;
20740 *) ac_val=$ac_cv_c_inline;;
20741 esac
20742 cat >>confdefs.h <<_ACEOF
20743#ifndef __cplusplus
20744#define inline $ac_val
20745#endif
20746_ACEOF
20747 ;;
20748esac
20749
20750{ echo "$as_me:$LINENO: checking for pid_t" >&5
20751echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
20752if test "${ac_cv_type_pid_t+set}" = set; then
20753 echo $ECHO_N "(cached) $ECHO_C" >&6
20754else
20755 cat >conftest.$ac_ext <<_ACEOF
20756/* confdefs.h. */
20757_ACEOF
20758cat confdefs.h >>conftest.$ac_ext
20759cat >>conftest.$ac_ext <<_ACEOF
20760/* end confdefs.h. */
20761$ac_includes_default
20762typedef pid_t ac__type_new_;
20763int
20764main ()
20765{
20766if ((ac__type_new_ *) 0)
20767 return 0;
20768if (sizeof (ac__type_new_))
20769 return 0;
20770 ;
20771 return 0;
20772}
20773_ACEOF
20774rm -f conftest.$ac_objext
20775if { (ac_try="$ac_compile"
20776case "(($ac_try" in
20777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20778 *) ac_try_echo=$ac_try;;
20779esac
20780eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20781 (eval "$ac_compile") 2>conftest.er1
20782 ac_status=$?
20783 grep -v '^ *+' conftest.er1 >conftest.err
20784 rm -f conftest.er1
20785 cat conftest.err >&5
20786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20787 (exit $ac_status); } && {
20788 test -z "$ac_c_werror_flag" ||
20789 test ! -s conftest.err
20790 } && test -s conftest.$ac_objext; then
20791 ac_cv_type_pid_t=yes
20792else
20793 echo "$as_me: failed program was:" >&5
20794sed 's/^/| /' conftest.$ac_ext >&5
20795
20796 ac_cv_type_pid_t=no
20797fi
20798
20799rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20800fi
20801{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20802echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
20803if test $ac_cv_type_pid_t = yes; then
20804 :
20805else
20806
20807cat >>confdefs.h <<_ACEOF
20808@%:@define pid_t int
20809_ACEOF
20810
20811fi
20812
20813{ echo "$as_me:$LINENO: checking for size_t" >&5
20814echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
20815if test "${ac_cv_type_size_t+set}" = set; then
20816 echo $ECHO_N "(cached) $ECHO_C" >&6
20817else
20818 cat >conftest.$ac_ext <<_ACEOF
20819/* confdefs.h. */
20820_ACEOF
20821cat confdefs.h >>conftest.$ac_ext
20822cat >>conftest.$ac_ext <<_ACEOF
20823/* end confdefs.h. */
20824$ac_includes_default
20825typedef size_t ac__type_new_;
20826int
20827main ()
20828{
20829if ((ac__type_new_ *) 0)
20830 return 0;
20831if (sizeof (ac__type_new_))
20832 return 0;
20833 ;
20834 return 0;
20835}
20836_ACEOF
20837rm -f conftest.$ac_objext
20838if { (ac_try="$ac_compile"
20839case "(($ac_try" in
20840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20841 *) ac_try_echo=$ac_try;;
20842esac
20843eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20844 (eval "$ac_compile") 2>conftest.er1
20845 ac_status=$?
20846 grep -v '^ *+' conftest.er1 >conftest.err
20847 rm -f conftest.er1
20848 cat conftest.err >&5
20849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20850 (exit $ac_status); } && {
20851 test -z "$ac_c_werror_flag" ||
20852 test ! -s conftest.err
20853 } && test -s conftest.$ac_objext; then
20854 ac_cv_type_size_t=yes
20855else
20856 echo "$as_me: failed program was:" >&5
20857sed 's/^/| /' conftest.$ac_ext >&5
20858
20859 ac_cv_type_size_t=no
20860fi
20861
20862rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20863fi
20864{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20865echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
20866if test $ac_cv_type_size_t = yes; then
20867 :
20868else
20869
20870cat >>confdefs.h <<_ACEOF
20871@%:@define size_t unsigned int
20872_ACEOF
20873
20874fi
20875
20876{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20877echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
20878if test "${ac_cv_struct_tm+set}" = set; then
20879 echo $ECHO_N "(cached) $ECHO_C" >&6
20880else
20881 cat >conftest.$ac_ext <<_ACEOF
20882/* confdefs.h. */
20883_ACEOF
20884cat confdefs.h >>conftest.$ac_ext
20885cat >>conftest.$ac_ext <<_ACEOF
20886/* end confdefs.h. */
20887#include <sys/types.h>
20888#include <time.h>
20889
20890int
20891main ()
20892{
20893struct tm tm;
20894 int *p = &tm.tm_sec;
20895 return !p;
20896 ;
20897 return 0;
20898}
20899_ACEOF
20900rm -f conftest.$ac_objext
20901if { (ac_try="$ac_compile"
20902case "(($ac_try" in
20903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20904 *) ac_try_echo=$ac_try;;
20905esac
20906eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20907 (eval "$ac_compile") 2>conftest.er1
20908 ac_status=$?
20909 grep -v '^ *+' conftest.er1 >conftest.err
20910 rm -f conftest.er1
20911 cat conftest.err >&5
20912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20913 (exit $ac_status); } && {
20914 test -z "$ac_c_werror_flag" ||
20915 test ! -s conftest.err
20916 } && test -s conftest.$ac_objext; then
20917 ac_cv_struct_tm=time.h
20918else
20919 echo "$as_me: failed program was:" >&5
20920sed 's/^/| /' conftest.$ac_ext >&5
20921
20922 ac_cv_struct_tm=sys/time.h
20923fi
20924
20925rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20926fi
20927{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20928echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
20929if test $ac_cv_struct_tm = sys/time.h; then
20930
20931cat >>confdefs.h <<\_ACEOF
20932@%:@define TM_IN_SYS_TIME 1
20933_ACEOF
20934
20935fi
20936
20937
20938# Checks for library functions.
20939# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
20940# for constant arguments. Useless!
20941{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
20942echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
20943if test "${ac_cv_working_alloca_h+set}" = set; then
20944 echo $ECHO_N "(cached) $ECHO_C" >&6
20945else
20946 cat >conftest.$ac_ext <<_ACEOF
20947/* confdefs.h. */
20948_ACEOF
20949cat confdefs.h >>conftest.$ac_ext
20950cat >>conftest.$ac_ext <<_ACEOF
20951/* end confdefs.h. */
20952@%:@include <alloca.h>
20953int
20954main ()
20955{
20956char *p = (char *) alloca (2 * sizeof (int));
20957 if (p) return 0;
20958 ;
20959 return 0;
20960}
20961_ACEOF
20962rm -f conftest.$ac_objext conftest$ac_exeext
20963if { (ac_try="$ac_link"
20964case "(($ac_try" in
20965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20966 *) ac_try_echo=$ac_try;;
20967esac
20968eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20969 (eval "$ac_link") 2>conftest.er1
20970 ac_status=$?
20971 grep -v '^ *+' conftest.er1 >conftest.err
20972 rm -f conftest.er1
20973 cat conftest.err >&5
20974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20975 (exit $ac_status); } && {
20976 test -z "$ac_c_werror_flag" ||
20977 test ! -s conftest.err
20978 } && test -s conftest$ac_exeext &&
20979 $as_test_x conftest$ac_exeext; then
20980 ac_cv_working_alloca_h=yes
20981else
20982 echo "$as_me: failed program was:" >&5
20983sed 's/^/| /' conftest.$ac_ext >&5
20984
20985 ac_cv_working_alloca_h=no
20986fi
20987
20988rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20989 conftest$ac_exeext conftest.$ac_ext
20990fi
20991{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
20992echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
20993if test $ac_cv_working_alloca_h = yes; then
20994
20995cat >>confdefs.h <<\_ACEOF
20996@%:@define HAVE_ALLOCA_H 1
20997_ACEOF
20998
20999fi
21000
21001{ echo "$as_me:$LINENO: checking for alloca" >&5
21002echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
21003if test "${ac_cv_func_alloca_works+set}" = set; then
21004 echo $ECHO_N "(cached) $ECHO_C" >&6
21005else
21006 cat >conftest.$ac_ext <<_ACEOF
21007/* confdefs.h. */
21008_ACEOF
21009cat confdefs.h >>conftest.$ac_ext
21010cat >>conftest.$ac_ext <<_ACEOF
21011/* end confdefs.h. */
21012#ifdef __GNUC__
21013# define alloca __builtin_alloca
21014#else
21015# ifdef _MSC_VER
21016# include <malloc.h>
21017# define alloca _alloca
21018# else
21019# ifdef HAVE_ALLOCA_H
21020# include <alloca.h>
21021# else
21022# ifdef _AIX
21023 #pragma alloca
21024# else
21025# ifndef alloca /* predefined by HP cc +Olibcalls */
21026char *alloca ();
21027# endif
21028# endif
21029# endif
21030# endif
21031#endif
21032
21033int
21034main ()
21035{
21036char *p = (char *) alloca (1);
21037 if (p) return 0;
21038 ;
21039 return 0;
21040}
21041_ACEOF
21042rm -f conftest.$ac_objext conftest$ac_exeext
21043if { (ac_try="$ac_link"
21044case "(($ac_try" in
21045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21046 *) ac_try_echo=$ac_try;;
21047esac
21048eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21049 (eval "$ac_link") 2>conftest.er1
21050 ac_status=$?
21051 grep -v '^ *+' conftest.er1 >conftest.err
21052 rm -f conftest.er1
21053 cat conftest.err >&5
21054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21055 (exit $ac_status); } && {
21056 test -z "$ac_c_werror_flag" ||
21057 test ! -s conftest.err
21058 } && test -s conftest$ac_exeext &&
21059 $as_test_x conftest$ac_exeext; then
21060 ac_cv_func_alloca_works=yes
21061else
21062 echo "$as_me: failed program was:" >&5
21063sed 's/^/| /' conftest.$ac_ext >&5
21064
21065 ac_cv_func_alloca_works=no
21066fi
21067
21068rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21069 conftest$ac_exeext conftest.$ac_ext
21070fi
21071{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
21072echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
21073
21074if test $ac_cv_func_alloca_works = yes; then
21075
21076cat >>confdefs.h <<\_ACEOF
21077@%:@define HAVE_ALLOCA 1
21078_ACEOF
21079
21080else
21081 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
21082# that cause trouble. Some versions do not even contain alloca or
21083# contain a buggy version. If you still want to use their alloca,
21084# use ar to extract alloca.o from them instead of compiling alloca.c.
21085
21086ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
21087
21088cat >>confdefs.h <<\_ACEOF
21089@%:@define C_ALLOCA 1
21090_ACEOF
21091
21092
21093{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
21094echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
21095if test "${ac_cv_os_cray+set}" = set; then
21096 echo $ECHO_N "(cached) $ECHO_C" >&6
21097else
21098 cat >conftest.$ac_ext <<_ACEOF
21099/* confdefs.h. */
21100_ACEOF
21101cat confdefs.h >>conftest.$ac_ext
21102cat >>conftest.$ac_ext <<_ACEOF
21103/* end confdefs.h. */
21104#if defined CRAY && ! defined CRAY2
21105webecray
21106#else
21107wenotbecray
21108#endif
21109
21110_ACEOF
21111if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21112 $EGREP "webecray" >/dev/null 2>&1; then
21113 ac_cv_os_cray=yes
21114else
21115 ac_cv_os_cray=no
21116fi
21117rm -f conftest*
21118
21119fi
21120{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
21121echo "${ECHO_T}$ac_cv_os_cray" >&6; }
21122if test $ac_cv_os_cray = yes; then
21123 for ac_func in _getb67 GETB67 getb67; do
21124 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21125{ echo "$as_me:$LINENO: checking for $ac_func" >&5
21126echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21127if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21128 echo $ECHO_N "(cached) $ECHO_C" >&6
21129else
21130 cat >conftest.$ac_ext <<_ACEOF
21131/* confdefs.h. */
21132_ACEOF
21133cat confdefs.h >>conftest.$ac_ext
21134cat >>conftest.$ac_ext <<_ACEOF
21135/* end confdefs.h. */
21136/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21137 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21138#define $ac_func innocuous_$ac_func
21139
21140/* System header to define __stub macros and hopefully few prototypes,
21141 which can conflict with char $ac_func (); below.
21142 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21143 <limits.h> exists even on freestanding compilers. */
21144
21145#ifdef __STDC__
21146# include <limits.h>
21147#else
21148# include <assert.h>
21149#endif
21150
21151#undef $ac_func
21152
21153/* Override any GCC internal prototype to avoid an error.
21154 Use char because int might match the return type of a GCC
21155 builtin and then its argument prototype would still apply. */
21156#ifdef __cplusplus
21157extern "C"
21158#endif
21159char $ac_func ();
21160/* The GNU C library defines this for functions which it implements
21161 to always fail with ENOSYS. Some functions are actually named
21162 something starting with __ and the normal name is an alias. */
21163#if defined __stub_$ac_func || defined __stub___$ac_func
21164choke me
21165#endif
21166
21167int
21168main ()
21169{
21170return $ac_func ();
21171 ;
21172 return 0;
21173}
21174_ACEOF
21175rm -f conftest.$ac_objext conftest$ac_exeext
21176if { (ac_try="$ac_link"
21177case "(($ac_try" in
21178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21179 *) ac_try_echo=$ac_try;;
21180esac
21181eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21182 (eval "$ac_link") 2>conftest.er1
21183 ac_status=$?
21184 grep -v '^ *+' conftest.er1 >conftest.err
21185 rm -f conftest.er1
21186 cat conftest.err >&5
21187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21188 (exit $ac_status); } && {
21189 test -z "$ac_c_werror_flag" ||
21190 test ! -s conftest.err
21191 } && test -s conftest$ac_exeext &&
21192 $as_test_x conftest$ac_exeext; then
21193 eval "$as_ac_var=yes"
21194else
21195 echo "$as_me: failed program was:" >&5
21196sed 's/^/| /' conftest.$ac_ext >&5
21197
21198 eval "$as_ac_var=no"
21199fi
21200
21201rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21202 conftest$ac_exeext conftest.$ac_ext
21203fi
21204ac_res=`eval echo '${'$as_ac_var'}'`
21205 { echo "$as_me:$LINENO: result: $ac_res" >&5
21206echo "${ECHO_T}$ac_res" >&6; }
21207if test `eval echo '${'$as_ac_var'}'` = yes; then
21208
21209cat >>confdefs.h <<_ACEOF
21210@%:@define CRAY_STACKSEG_END $ac_func
21211_ACEOF
21212
21213 break
21214fi
21215
21216 done
21217fi
21218
21219{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
21220echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
21221if test "${ac_cv_c_stack_direction+set}" = set; then
21222 echo $ECHO_N "(cached) $ECHO_C" >&6
21223else
21224 if test "$cross_compiling" = yes; then
21225 ac_cv_c_stack_direction=0
21226else
21227 cat >conftest.$ac_ext <<_ACEOF
21228/* confdefs.h. */
21229_ACEOF
21230cat confdefs.h >>conftest.$ac_ext
21231cat >>conftest.$ac_ext <<_ACEOF
21232/* end confdefs.h. */
21233$ac_includes_default
21234int
21235find_stack_direction ()
21236{
21237 static char *addr = 0;
21238 auto char dummy;
21239 if (addr == 0)
21240 {
21241 addr = &dummy;
21242 return find_stack_direction ();
21243 }
21244 else
21245 return (&dummy > addr) ? 1 : -1;
21246}
21247
21248int
21249main ()
21250{
21251 return find_stack_direction () < 0;
21252}
21253_ACEOF
21254rm -f conftest$ac_exeext
21255if { (ac_try="$ac_link"
21256case "(($ac_try" in
21257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21258 *) ac_try_echo=$ac_try;;
21259esac
21260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21261 (eval "$ac_link") 2>&5
21262 ac_status=$?
21263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21264 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21265 { (case "(($ac_try" in
21266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21267 *) ac_try_echo=$ac_try;;
21268esac
21269eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21270 (eval "$ac_try") 2>&5
21271 ac_status=$?
21272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21273 (exit $ac_status); }; }; then
21274 ac_cv_c_stack_direction=1
21275else
21276 echo "$as_me: program exited with status $ac_status" >&5
21277echo "$as_me: failed program was:" >&5
21278sed 's/^/| /' conftest.$ac_ext >&5
21279
21280( exit $ac_status )
21281ac_cv_c_stack_direction=-1
21282fi
21283rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21284fi
21285
21286
21287fi
21288{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
21289echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
21290
21291cat >>confdefs.h <<_ACEOF
21292@%:@define STACK_DIRECTION $ac_cv_c_stack_direction
21293_ACEOF
21294
21295
21296fi
21297
21298
21299for ac_header in unistd.h
21300do
21301as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21302if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21303 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21304echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21305if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21306 echo $ECHO_N "(cached) $ECHO_C" >&6
21307fi
21308ac_res=`eval echo '${'$as_ac_Header'}'`
21309 { echo "$as_me:$LINENO: result: $ac_res" >&5
21310echo "${ECHO_T}$ac_res" >&6; }
21311else
21312 # Is the header compilable?
21313{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
21314echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21315cat >conftest.$ac_ext <<_ACEOF
21316/* confdefs.h. */
21317_ACEOF
21318cat confdefs.h >>conftest.$ac_ext
21319cat >>conftest.$ac_ext <<_ACEOF
21320/* end confdefs.h. */
21321$ac_includes_default
21322@%:@include <$ac_header>
21323_ACEOF
21324rm -f conftest.$ac_objext
21325if { (ac_try="$ac_compile"
21326case "(($ac_try" in
21327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21328 *) ac_try_echo=$ac_try;;
21329esac
21330eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21331 (eval "$ac_compile") 2>conftest.er1
21332 ac_status=$?
21333 grep -v '^ *+' conftest.er1 >conftest.err
21334 rm -f conftest.er1
21335 cat conftest.err >&5
21336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21337 (exit $ac_status); } && {
21338 test -z "$ac_c_werror_flag" ||
21339 test ! -s conftest.err
21340 } && test -s conftest.$ac_objext; then
21341 ac_header_compiler=yes
21342else
21343 echo "$as_me: failed program was:" >&5
21344sed 's/^/| /' conftest.$ac_ext >&5
21345
21346 ac_header_compiler=no
21347fi
21348
21349rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21350{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21351echo "${ECHO_T}$ac_header_compiler" >&6; }
21352
21353# Is the header present?
21354{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
21355echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21356cat >conftest.$ac_ext <<_ACEOF
21357/* confdefs.h. */
21358_ACEOF
21359cat confdefs.h >>conftest.$ac_ext
21360cat >>conftest.$ac_ext <<_ACEOF
21361/* end confdefs.h. */
21362@%:@include <$ac_header>
21363_ACEOF
21364if { (ac_try="$ac_cpp conftest.$ac_ext"
21365case "(($ac_try" in
21366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21367 *) ac_try_echo=$ac_try;;
21368esac
21369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21370 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21371 ac_status=$?
21372 grep -v '^ *+' conftest.er1 >conftest.err
21373 rm -f conftest.er1
21374 cat conftest.err >&5
21375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21376 (exit $ac_status); } >/dev/null && {
21377 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21378 test ! -s conftest.err
21379 }; then
21380 ac_header_preproc=yes
21381else
21382 echo "$as_me: failed program was:" >&5
21383sed 's/^/| /' conftest.$ac_ext >&5
21384
21385 ac_header_preproc=no
21386fi
21387
21388rm -f conftest.err conftest.$ac_ext
21389{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21390echo "${ECHO_T}$ac_header_preproc" >&6; }
21391
21392# So? What about this header?
21393case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21394 yes:no: )
21395 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21396echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21397 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21398echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21399 ac_header_preproc=yes
21400 ;;
21401 no:yes:* )
21402 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21403echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21404 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21405echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21406 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21407echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21408 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21409echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21410 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21411echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21412 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21413echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21414 ( cat <<\_ASBOX
21415@%:@@%:@ --------------------------------- @%:@@%:@
21416@%:@@%:@ Report this to support@itibia.com @%:@@%:@
21417@%:@@%:@ --------------------------------- @%:@@%:@
21418_ASBOX
21419 ) | sed "s/^/$as_me: WARNING: /" >&2
21420 ;;
21421esac
21422{ echo "$as_me:$LINENO: checking for $ac_header" >&5
21423echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21424if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21425 echo $ECHO_N "(cached) $ECHO_C" >&6
21426else
21427 eval "$as_ac_Header=\$ac_header_preproc"
21428fi
21429ac_res=`eval echo '${'$as_ac_Header'}'`
21430 { echo "$as_me:$LINENO: result: $ac_res" >&5
21431echo "${ECHO_T}$ac_res" >&6; }
21432
21433fi
21434if test `eval echo '${'$as_ac_Header'}'` = yes; then
21435 cat >>confdefs.h <<_ACEOF
21436@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21437_ACEOF
21438
21439fi
21440
21441done
21442
21443{ echo "$as_me:$LINENO: checking for working chown" >&5
21444echo $ECHO_N "checking for working chown... $ECHO_C" >&6; }
21445if test "${ac_cv_func_chown_works+set}" = set; then
21446 echo $ECHO_N "(cached) $ECHO_C" >&6
21447else
21448 if test "$cross_compiling" = yes; then
21449 ac_cv_func_chown_works=no
21450else
21451 cat >conftest.$ac_ext <<_ACEOF
21452/* confdefs.h. */
21453_ACEOF
21454cat confdefs.h >>conftest.$ac_ext
21455cat >>conftest.$ac_ext <<_ACEOF
21456/* end confdefs.h. */
21457$ac_includes_default
21458#include <fcntl.h>
21459
21460int
21461main ()
21462{
21463 char *f = "conftest.chown";
21464 struct stat before, after;
21465
21466 if (creat (f, 0600) < 0)
21467 return 1;
21468 if (stat (f, &before) < 0)
21469 return 1;
21470 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
21471 return 1;
21472 if (stat (f, &after) < 0)
21473 return 1;
21474 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
21475
21476 ;
21477 return 0;
21478}
21479_ACEOF
21480rm -f conftest$ac_exeext
21481if { (ac_try="$ac_link"
21482case "(($ac_try" in
21483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21484 *) ac_try_echo=$ac_try;;
21485esac
21486eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21487 (eval "$ac_link") 2>&5
21488 ac_status=$?
21489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21490 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21491 { (case "(($ac_try" in
21492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21493 *) ac_try_echo=$ac_try;;
21494esac
21495eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21496 (eval "$ac_try") 2>&5
21497 ac_status=$?
21498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21499 (exit $ac_status); }; }; then
21500 ac_cv_func_chown_works=yes
21501else
21502 echo "$as_me: program exited with status $ac_status" >&5
21503echo "$as_me: failed program was:" >&5
21504sed 's/^/| /' conftest.$ac_ext >&5
21505
21506( exit $ac_status )
21507ac_cv_func_chown_works=no
21508fi
21509rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21510fi
21511
21512
21513rm -f conftest.chown
21514
21515fi
21516{ echo "$as_me:$LINENO: result: $ac_cv_func_chown_works" >&5
21517echo "${ECHO_T}$ac_cv_func_chown_works" >&6; }
21518if test $ac_cv_func_chown_works = yes; then
21519
21520cat >>confdefs.h <<\_ACEOF
21521@%:@define HAVE_CHOWN 1
21522_ACEOF
21523
21524fi
21525
21526{ echo "$as_me:$LINENO: checking whether closedir returns void" >&5
21527echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
21528if test "${ac_cv_func_closedir_void+set}" = set; then
21529 echo $ECHO_N "(cached) $ECHO_C" >&6
21530else
21531 if test "$cross_compiling" = yes; then
21532 ac_cv_func_closedir_void=yes
21533else
21534 cat >conftest.$ac_ext <<_ACEOF
21535/* confdefs.h. */
21536_ACEOF
21537cat confdefs.h >>conftest.$ac_ext
21538cat >>conftest.$ac_ext <<_ACEOF
21539/* end confdefs.h. */
21540$ac_includes_default
21541#include <$ac_header_dirent>
21542#ifndef __cplusplus
21543int closedir ();
21544#endif
21545
21546int
21547main ()
21548{
21549return closedir (opendir (".")) != 0;
21550 ;
21551 return 0;
21552}
21553_ACEOF
21554rm -f conftest$ac_exeext
21555if { (ac_try="$ac_link"
21556case "(($ac_try" in
21557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21558 *) ac_try_echo=$ac_try;;
21559esac
21560eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21561 (eval "$ac_link") 2>&5
21562 ac_status=$?
21563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21564 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21565 { (case "(($ac_try" in
21566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21567 *) ac_try_echo=$ac_try;;
21568esac
21569eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21570 (eval "$ac_try") 2>&5
21571 ac_status=$?
21572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21573 (exit $ac_status); }; }; then
21574 ac_cv_func_closedir_void=no
21575else
21576 echo "$as_me: program exited with status $ac_status" >&5
21577echo "$as_me: failed program was:" >&5
21578sed 's/^/| /' conftest.$ac_ext >&5
21579
21580( exit $ac_status )
21581ac_cv_func_closedir_void=yes
21582fi
21583rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21584fi
21585
21586
21587fi
21588{ echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
21589echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
21590if test $ac_cv_func_closedir_void = yes; then
21591
21592cat >>confdefs.h <<\_ACEOF
21593@%:@define CLOSEDIR_VOID 1
21594_ACEOF
21595
21596fi
21597
21598
21599for ac_header in vfork.h
21600do
21601as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21602if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21603 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21604echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21605if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21606 echo $ECHO_N "(cached) $ECHO_C" >&6
21607fi
21608ac_res=`eval echo '${'$as_ac_Header'}'`
21609 { echo "$as_me:$LINENO: result: $ac_res" >&5
21610echo "${ECHO_T}$ac_res" >&6; }
21611else
21612 # Is the header compilable?
21613{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
21614echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21615cat >conftest.$ac_ext <<_ACEOF
21616/* confdefs.h. */
21617_ACEOF
21618cat confdefs.h >>conftest.$ac_ext
21619cat >>conftest.$ac_ext <<_ACEOF
21620/* end confdefs.h. */
21621$ac_includes_default
21622@%:@include <$ac_header>
21623_ACEOF
21624rm -f conftest.$ac_objext
21625if { (ac_try="$ac_compile"
21626case "(($ac_try" in
21627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21628 *) ac_try_echo=$ac_try;;
21629esac
21630eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21631 (eval "$ac_compile") 2>conftest.er1
21632 ac_status=$?
21633 grep -v '^ *+' conftest.er1 >conftest.err
21634 rm -f conftest.er1
21635 cat conftest.err >&5
21636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21637 (exit $ac_status); } && {
21638 test -z "$ac_c_werror_flag" ||
21639 test ! -s conftest.err
21640 } && test -s conftest.$ac_objext; then
21641 ac_header_compiler=yes
21642else
21643 echo "$as_me: failed program was:" >&5
21644sed 's/^/| /' conftest.$ac_ext >&5
21645
21646 ac_header_compiler=no
21647fi
21648
21649rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21650{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21651echo "${ECHO_T}$ac_header_compiler" >&6; }
21652
21653# Is the header present?
21654{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
21655echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21656cat >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@%:@include <$ac_header>
21663_ACEOF
21664if { (ac_try="$ac_cpp conftest.$ac_ext"
21665case "(($ac_try" in
21666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21667 *) ac_try_echo=$ac_try;;
21668esac
21669eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21670 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21671 ac_status=$?
21672 grep -v '^ *+' conftest.er1 >conftest.err
21673 rm -f conftest.er1
21674 cat conftest.err >&5
21675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21676 (exit $ac_status); } >/dev/null && {
21677 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21678 test ! -s conftest.err
21679 }; then
21680 ac_header_preproc=yes
21681else
21682 echo "$as_me: failed program was:" >&5
21683sed 's/^/| /' conftest.$ac_ext >&5
21684
21685 ac_header_preproc=no
21686fi
21687
21688rm -f conftest.err conftest.$ac_ext
21689{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21690echo "${ECHO_T}$ac_header_preproc" >&6; }
21691
21692# So? What about this header?
21693case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21694 yes:no: )
21695 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21696echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21697 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21698echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21699 ac_header_preproc=yes
21700 ;;
21701 no:yes:* )
21702 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21703echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21704 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21705echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21706 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21707echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21708 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21709echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21710 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21711echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21712 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21713echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21714 ( cat <<\_ASBOX
21715@%:@@%:@ --------------------------------- @%:@@%:@
21716@%:@@%:@ Report this to support@itibia.com @%:@@%:@
21717@%:@@%:@ --------------------------------- @%:@@%:@
21718_ASBOX
21719 ) | sed "s/^/$as_me: WARNING: /" >&2
21720 ;;
21721esac
21722{ echo "$as_me:$LINENO: checking for $ac_header" >&5
21723echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21724if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21725 echo $ECHO_N "(cached) $ECHO_C" >&6
21726else
21727 eval "$as_ac_Header=\$ac_header_preproc"
21728fi
21729ac_res=`eval echo '${'$as_ac_Header'}'`
21730 { echo "$as_me:$LINENO: result: $ac_res" >&5
21731echo "${ECHO_T}$ac_res" >&6; }
21732
21733fi
21734if test `eval echo '${'$as_ac_Header'}'` = yes; then
21735 cat >>confdefs.h <<_ACEOF
21736@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21737_ACEOF
21738
21739fi
21740
21741done
21742
21743
21744
21745for ac_func in fork vfork
21746do
21747as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21748{ echo "$as_me:$LINENO: checking for $ac_func" >&5
21749echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21750if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21751 echo $ECHO_N "(cached) $ECHO_C" >&6
21752else
21753 cat >conftest.$ac_ext <<_ACEOF
21754/* confdefs.h. */
21755_ACEOF
21756cat confdefs.h >>conftest.$ac_ext
21757cat >>conftest.$ac_ext <<_ACEOF
21758/* end confdefs.h. */
21759/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21760 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21761#define $ac_func innocuous_$ac_func
21762
21763/* System header to define __stub macros and hopefully few prototypes,
21764 which can conflict with char $ac_func (); below.
21765 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21766 <limits.h> exists even on freestanding compilers. */
21767
21768#ifdef __STDC__
21769# include <limits.h>
21770#else
21771# include <assert.h>
21772#endif
21773
21774#undef $ac_func
21775
21776/* Override any GCC internal prototype to avoid an error.
21777 Use char because int might match the return type of a GCC
21778 builtin and then its argument prototype would still apply. */
21779#ifdef __cplusplus
21780extern "C"
21781#endif
21782char $ac_func ();
21783/* The GNU C library defines this for functions which it implements
21784 to always fail with ENOSYS. Some functions are actually named
21785 something starting with __ and the normal name is an alias. */
21786#if defined __stub_$ac_func || defined __stub___$ac_func
21787choke me
21788#endif
21789
21790int
21791main ()
21792{
21793return $ac_func ();
21794 ;
21795 return 0;
21796}
21797_ACEOF
21798rm -f conftest.$ac_objext conftest$ac_exeext
21799if { (ac_try="$ac_link"
21800case "(($ac_try" in
21801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21802 *) ac_try_echo=$ac_try;;
21803esac
21804eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21805 (eval "$ac_link") 2>conftest.er1
21806 ac_status=$?
21807 grep -v '^ *+' conftest.er1 >conftest.err
21808 rm -f conftest.er1
21809 cat conftest.err >&5
21810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21811 (exit $ac_status); } && {
21812 test -z "$ac_c_werror_flag" ||
21813 test ! -s conftest.err
21814 } && test -s conftest$ac_exeext &&
21815 $as_test_x conftest$ac_exeext; then
21816 eval "$as_ac_var=yes"
21817else
21818 echo "$as_me: failed program was:" >&5
21819sed 's/^/| /' conftest.$ac_ext >&5
21820
21821 eval "$as_ac_var=no"
21822fi
21823
21824rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21825 conftest$ac_exeext conftest.$ac_ext
21826fi
21827ac_res=`eval echo '${'$as_ac_var'}'`
21828 { echo "$as_me:$LINENO: result: $ac_res" >&5
21829echo "${ECHO_T}$ac_res" >&6; }
21830if test `eval echo '${'$as_ac_var'}'` = yes; then
21831 cat >>confdefs.h <<_ACEOF
21832@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21833_ACEOF
21834
21835fi
21836done
21837
21838if test "x$ac_cv_func_fork" = xyes; then
21839 { echo "$as_me:$LINENO: checking for working fork" >&5
21840echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
21841if test "${ac_cv_func_fork_works+set}" = set; then
21842 echo $ECHO_N "(cached) $ECHO_C" >&6
21843else
21844 if test "$cross_compiling" = yes; then
21845 ac_cv_func_fork_works=cross
21846else
21847 cat >conftest.$ac_ext <<_ACEOF
21848/* confdefs.h. */
21849_ACEOF
21850cat confdefs.h >>conftest.$ac_ext
21851cat >>conftest.$ac_ext <<_ACEOF
21852/* end confdefs.h. */
21853$ac_includes_default
21854int
21855main ()
21856{
21857
21858 /* By Ruediger Kuhlmann. */
21859 return fork () < 0;
21860
21861 ;
21862 return 0;
21863}
21864_ACEOF
21865rm -f conftest$ac_exeext
21866if { (ac_try="$ac_link"
21867case "(($ac_try" in
21868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21869 *) ac_try_echo=$ac_try;;
21870esac
21871eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21872 (eval "$ac_link") 2>&5
21873 ac_status=$?
21874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21875 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21876 { (case "(($ac_try" in
21877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21878 *) ac_try_echo=$ac_try;;
21879esac
21880eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21881 (eval "$ac_try") 2>&5
21882 ac_status=$?
21883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21884 (exit $ac_status); }; }; then
21885 ac_cv_func_fork_works=yes
21886else
21887 echo "$as_me: program exited with status $ac_status" >&5
21888echo "$as_me: failed program was:" >&5
21889sed 's/^/| /' conftest.$ac_ext >&5
21890
21891( exit $ac_status )
21892ac_cv_func_fork_works=no
21893fi
21894rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21895fi
21896
21897
21898fi
21899{ echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
21900echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
21901
21902else
21903 ac_cv_func_fork_works=$ac_cv_func_fork
21904fi
21905if test "x$ac_cv_func_fork_works" = xcross; then
21906 case $host in
21907 *-*-amigaos* | *-*-msdosdjgpp*)
21908 # Override, as these systems have only a dummy fork() stub
21909 ac_cv_func_fork_works=no
21910 ;;
21911 *)
21912 ac_cv_func_fork_works=yes
21913 ;;
21914 esac
21915 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
21916echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
21917fi
21918ac_cv_func_vfork_works=$ac_cv_func_vfork
21919if test "x$ac_cv_func_vfork" = xyes; then
21920 { echo "$as_me:$LINENO: checking for working vfork" >&5
21921echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
21922if test "${ac_cv_func_vfork_works+set}" = set; then
21923 echo $ECHO_N "(cached) $ECHO_C" >&6
21924else
21925 if test "$cross_compiling" = yes; then
21926 ac_cv_func_vfork_works=cross
21927else
21928 cat >conftest.$ac_ext <<_ACEOF
21929/* confdefs.h. */
21930_ACEOF
21931cat confdefs.h >>conftest.$ac_ext
21932cat >>conftest.$ac_ext <<_ACEOF
21933/* end confdefs.h. */
21934/* Thanks to Paul Eggert for this test. */
21935$ac_includes_default
21936#include <sys/wait.h>
21937#ifdef HAVE_VFORK_H
21938# include <vfork.h>
21939#endif
21940/* On some sparc systems, changes by the child to local and incoming
21941 argument registers are propagated back to the parent. The compiler
21942 is told about this with #include <vfork.h>, but some compilers
21943 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
21944 static variable whose address is put into a register that is
21945 clobbered by the vfork. */
21946static void
21947#ifdef __cplusplus
21948sparc_address_test (int arg)
21949# else
21950sparc_address_test (arg) int arg;
21951#endif
21952{
21953 static pid_t child;
21954 if (!child) {
21955 child = vfork ();
21956 if (child < 0) {
21957 perror ("vfork");
21958 _exit(2);
21959 }
21960 if (!child) {
21961 arg = getpid();
21962 write(-1, "", 0);
21963 _exit (arg);
21964 }
21965 }
21966}
21967
21968int
21969main ()
21970{
21971 pid_t parent = getpid ();
21972 pid_t child;
21973
21974 sparc_address_test (0);
21975
21976 child = vfork ();
21977
21978 if (child == 0) {
21979 /* Here is another test for sparc vfork register problems. This
21980 test uses lots of local variables, at least as many local
21981 variables as main has allocated so far including compiler
21982 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
21983 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
21984 reuse the register of parent for one of the local variables,
21985 since it will think that parent can't possibly be used any more
21986 in this routine. Assigning to the local variable will thus
21987 munge parent in the parent process. */
21988 pid_t
21989 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
21990 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
21991 /* Convince the compiler that p..p7 are live; otherwise, it might
21992 use the same hardware register for all 8 local variables. */
21993 if (p != p1 || p != p2 || p != p3 || p != p4
21994 || p != p5 || p != p6 || p != p7)
21995 _exit(1);
21996
21997 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
21998 from child file descriptors. If the child closes a descriptor
21999 before it execs or exits, this munges the parent's descriptor
22000 as well. Test for this by closing stdout in the child. */
22001 _exit(close(fileno(stdout)) != 0);
22002 } else {
22003 int status;
22004 struct stat st;
22005
22006 while (wait(&status) != child)
22007 ;
22008 return (
22009 /* Was there some problem with vforking? */
22010 child < 0
22011
22012 /* Did the child fail? (This shouldn't happen.) */
22013 || status
22014
22015 /* Did the vfork/compiler bug occur? */
22016 || parent != getpid()
22017
22018 /* Did the file descriptor bug occur? */
22019 || fstat(fileno(stdout), &st) != 0
22020 );
22021 }
22022}
22023_ACEOF
22024rm -f conftest$ac_exeext
22025if { (ac_try="$ac_link"
22026case "(($ac_try" in
22027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22028 *) ac_try_echo=$ac_try;;
22029esac
22030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22031 (eval "$ac_link") 2>&5
22032 ac_status=$?
22033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22034 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22035 { (case "(($ac_try" in
22036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22037 *) ac_try_echo=$ac_try;;
22038esac
22039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22040 (eval "$ac_try") 2>&5
22041 ac_status=$?
22042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22043 (exit $ac_status); }; }; then
22044 ac_cv_func_vfork_works=yes
22045else
22046 echo "$as_me: program exited with status $ac_status" >&5
22047echo "$as_me: failed program was:" >&5
22048sed 's/^/| /' conftest.$ac_ext >&5
22049
22050( exit $ac_status )
22051ac_cv_func_vfork_works=no
22052fi
22053rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22054fi
22055
22056
22057fi
22058{ echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
22059echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
22060
22061fi;
22062if test "x$ac_cv_func_fork_works" = xcross; then
22063 ac_cv_func_vfork_works=$ac_cv_func_vfork
22064 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
22065echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
22066fi
22067
22068if test "x$ac_cv_func_vfork_works" = xyes; then
22069
22070cat >>confdefs.h <<\_ACEOF
22071@%:@define HAVE_WORKING_VFORK 1
22072_ACEOF
22073
22074else
22075
22076cat >>confdefs.h <<\_ACEOF
22077@%:@define vfork fork
22078_ACEOF
22079
22080fi
22081if test "x$ac_cv_func_fork_works" = xyes; then
22082
22083cat >>confdefs.h <<\_ACEOF
22084@%:@define HAVE_WORKING_FORK 1
22085_ACEOF
22086
22087fi
22088
22089if test $ac_cv_c_compiler_gnu = yes; then
22090 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
22091echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
22092if test "${ac_cv_prog_gcc_traditional+set}" = set; then
22093 echo $ECHO_N "(cached) $ECHO_C" >&6
22094else
22095 ac_pattern="Autoconf.*'x'"
22096 cat >conftest.$ac_ext <<_ACEOF
22097/* confdefs.h. */
22098_ACEOF
22099cat confdefs.h >>conftest.$ac_ext
22100cat >>conftest.$ac_ext <<_ACEOF
22101/* end confdefs.h. */
22102#include <sgtty.h>
22103Autoconf TIOCGETP
22104_ACEOF
22105if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22106 $EGREP "$ac_pattern" >/dev/null 2>&1; then
22107 ac_cv_prog_gcc_traditional=yes
22108else
22109 ac_cv_prog_gcc_traditional=no
22110fi
22111rm -f conftest*
22112
22113
22114 if test $ac_cv_prog_gcc_traditional = no; then
22115 cat >conftest.$ac_ext <<_ACEOF
22116/* confdefs.h. */
22117_ACEOF
22118cat confdefs.h >>conftest.$ac_ext
22119cat >>conftest.$ac_ext <<_ACEOF
22120/* end confdefs.h. */
22121#include <termio.h>
22122Autoconf TCGETA
22123_ACEOF
22124if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22125 $EGREP "$ac_pattern" >/dev/null 2>&1; then
22126 ac_cv_prog_gcc_traditional=yes
22127fi
22128rm -f conftest*
22129
22130 fi
22131fi
22132{ echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
22133echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
22134 if test $ac_cv_prog_gcc_traditional = yes; then
22135 CC="$CC -traditional"
22136 fi
22137fi
22138
22139#comment it to prevent autoconf #define HAVE_MALLOC to 0 and #define malloc to rpl_malloc
22140#AC_FUNC_MALLOC
22141#AC_FUNC_MKTIME
22142#AC_FUNC_REALLOC
22143
22144
22145for ac_header in sys/select.h sys/socket.h
22146do
22147as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22148if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22149 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22150echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22151if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22152 echo $ECHO_N "(cached) $ECHO_C" >&6
22153fi
22154ac_res=`eval echo '${'$as_ac_Header'}'`
22155 { echo "$as_me:$LINENO: result: $ac_res" >&5
22156echo "${ECHO_T}$ac_res" >&6; }
22157else
22158 # Is the header compilable?
22159{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
22160echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22161cat >conftest.$ac_ext <<_ACEOF
22162/* confdefs.h. */
22163_ACEOF
22164cat confdefs.h >>conftest.$ac_ext
22165cat >>conftest.$ac_ext <<_ACEOF
22166/* end confdefs.h. */
22167$ac_includes_default
22168@%:@include <$ac_header>
22169_ACEOF
22170rm -f conftest.$ac_objext
22171if { (ac_try="$ac_compile"
22172case "(($ac_try" in
22173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22174 *) ac_try_echo=$ac_try;;
22175esac
22176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22177 (eval "$ac_compile") 2>conftest.er1
22178 ac_status=$?
22179 grep -v '^ *+' conftest.er1 >conftest.err
22180 rm -f conftest.er1
22181 cat conftest.err >&5
22182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22183 (exit $ac_status); } && {
22184 test -z "$ac_c_werror_flag" ||
22185 test ! -s conftest.err
22186 } && test -s conftest.$ac_objext; then
22187 ac_header_compiler=yes
22188else
22189 echo "$as_me: failed program was:" >&5
22190sed 's/^/| /' conftest.$ac_ext >&5
22191
22192 ac_header_compiler=no
22193fi
22194
22195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22196{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22197echo "${ECHO_T}$ac_header_compiler" >&6; }
22198
22199# Is the header present?
22200{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
22201echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22202cat >conftest.$ac_ext <<_ACEOF
22203/* confdefs.h. */
22204_ACEOF
22205cat confdefs.h >>conftest.$ac_ext
22206cat >>conftest.$ac_ext <<_ACEOF
22207/* end confdefs.h. */
22208@%:@include <$ac_header>
22209_ACEOF
22210if { (ac_try="$ac_cpp conftest.$ac_ext"
22211case "(($ac_try" in
22212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22213 *) ac_try_echo=$ac_try;;
22214esac
22215eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22216 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22217 ac_status=$?
22218 grep -v '^ *+' conftest.er1 >conftest.err
22219 rm -f conftest.er1
22220 cat conftest.err >&5
22221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22222 (exit $ac_status); } >/dev/null && {
22223 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22224 test ! -s conftest.err
22225 }; then
22226 ac_header_preproc=yes
22227else
22228 echo "$as_me: failed program was:" >&5
22229sed 's/^/| /' conftest.$ac_ext >&5
22230
22231 ac_header_preproc=no
22232fi
22233
22234rm -f conftest.err conftest.$ac_ext
22235{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22236echo "${ECHO_T}$ac_header_preproc" >&6; }
22237
22238# So? What about this header?
22239case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22240 yes:no: )
22241 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22242echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22243 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22244echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22245 ac_header_preproc=yes
22246 ;;
22247 no:yes:* )
22248 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22249echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22250 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22251echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22252 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22253echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22254 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22255echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22256 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22257echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22258 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22259echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22260 ( cat <<\_ASBOX
22261@%:@@%:@ --------------------------------- @%:@@%:@
22262@%:@@%:@ Report this to support@itibia.com @%:@@%:@
22263@%:@@%:@ --------------------------------- @%:@@%:@
22264_ASBOX
22265 ) | sed "s/^/$as_me: WARNING: /" >&2
22266 ;;
22267esac
22268{ echo "$as_me:$LINENO: checking for $ac_header" >&5
22269echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22270if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22271 echo $ECHO_N "(cached) $ECHO_C" >&6
22272else
22273 eval "$as_ac_Header=\$ac_header_preproc"
22274fi
22275ac_res=`eval echo '${'$as_ac_Header'}'`
22276 { echo "$as_me:$LINENO: result: $ac_res" >&5
22277echo "${ECHO_T}$ac_res" >&6; }
22278
22279fi
22280if test `eval echo '${'$as_ac_Header'}'` = yes; then
22281 cat >>confdefs.h <<_ACEOF
22282@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22283_ACEOF
22284
22285fi
22286
22287done
22288
22289{ echo "$as_me:$LINENO: checking types of arguments for select" >&5
22290echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
22291if test "${ac_cv_func_select_args+set}" = set; then
22292 echo $ECHO_N "(cached) $ECHO_C" >&6
22293else
22294 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
22295 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
22296 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
22297 cat >conftest.$ac_ext <<_ACEOF
22298/* confdefs.h. */
22299_ACEOF
22300cat confdefs.h >>conftest.$ac_ext
22301cat >>conftest.$ac_ext <<_ACEOF
22302/* end confdefs.h. */
22303$ac_includes_default
22304#ifdef HAVE_SYS_SELECT_H
22305# include <sys/select.h>
22306#endif
22307#ifdef HAVE_SYS_SOCKET_H
22308# include <sys/socket.h>
22309#endif
22310
22311int
22312main ()
22313{
22314extern int select ($ac_arg1,
22315 $ac_arg234, $ac_arg234, $ac_arg234,
22316 $ac_arg5);
22317 ;
22318 return 0;
22319}
22320_ACEOF
22321rm -f conftest.$ac_objext
22322if { (ac_try="$ac_compile"
22323case "(($ac_try" in
22324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22325 *) ac_try_echo=$ac_try;;
22326esac
22327eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22328 (eval "$ac_compile") 2>conftest.er1
22329 ac_status=$?
22330 grep -v '^ *+' conftest.er1 >conftest.err
22331 rm -f conftest.er1
22332 cat conftest.err >&5
22333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22334 (exit $ac_status); } && {
22335 test -z "$ac_c_werror_flag" ||
22336 test ! -s conftest.err
22337 } && test -s conftest.$ac_objext; then
22338 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
22339else
22340 echo "$as_me: failed program was:" >&5
22341sed 's/^/| /' conftest.$ac_ext >&5
22342
22343
22344fi
22345
22346rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22347 done
22348 done
22349done
22350# Provide a safe default value.
22351: ${ac_cv_func_select_args='int,int *,struct timeval *'}
22352
22353fi
22354{ echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
22355echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
22356ac_save_IFS=$IFS; IFS=','
22357set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
22358IFS=$ac_save_IFS
22359shift
22360
22361cat >>confdefs.h <<_ACEOF
22362@%:@define SELECT_TYPE_ARG1 $1
22363_ACEOF
22364
22365
22366cat >>confdefs.h <<_ACEOF
22367@%:@define SELECT_TYPE_ARG234 ($2)
22368_ACEOF
22369
22370
22371cat >>confdefs.h <<_ACEOF
22372@%:@define SELECT_TYPE_ARG5 ($3)
22373_ACEOF
22374
22375rm -f conftest*
22376
22377{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
22378echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
22379if test "${ac_cv_type_signal+set}" = set; then
22380 echo $ECHO_N "(cached) $ECHO_C" >&6
22381else
22382 cat >conftest.$ac_ext <<_ACEOF
22383/* confdefs.h. */
22384_ACEOF
22385cat confdefs.h >>conftest.$ac_ext
22386cat >>conftest.$ac_ext <<_ACEOF
22387/* end confdefs.h. */
22388#include <sys/types.h>
22389#include <signal.h>
22390
22391int
22392main ()
22393{
22394return *(signal (0, 0)) (0) == 1;
22395 ;
22396 return 0;
22397}
22398_ACEOF
22399rm -f conftest.$ac_objext
22400if { (ac_try="$ac_compile"
22401case "(($ac_try" in
22402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22403 *) ac_try_echo=$ac_try;;
22404esac
22405eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22406 (eval "$ac_compile") 2>conftest.er1
22407 ac_status=$?
22408 grep -v '^ *+' conftest.er1 >conftest.err
22409 rm -f conftest.er1
22410 cat conftest.err >&5
22411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22412 (exit $ac_status); } && {
22413 test -z "$ac_c_werror_flag" ||
22414 test ! -s conftest.err
22415 } && test -s conftest.$ac_objext; then
22416 ac_cv_type_signal=int
22417else
22418 echo "$as_me: failed program was:" >&5
22419sed 's/^/| /' conftest.$ac_ext >&5
22420
22421 ac_cv_type_signal=void
22422fi
22423
22424rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22425fi
22426{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
22427echo "${ECHO_T}$ac_cv_type_signal" >&6; }
22428
22429cat >>confdefs.h <<_ACEOF
22430@%:@define RETSIGTYPE $ac_cv_type_signal
22431_ACEOF
22432
22433
22434{ echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
22435echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
22436if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
22437 echo $ECHO_N "(cached) $ECHO_C" >&6
22438else
22439 rm -f conftest.sym conftest.file
22440echo >conftest.file
22441if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
22442 if test "$cross_compiling" = yes; then
22443 ac_cv_func_lstat_dereferences_slashed_symlink=no
22444else
22445 cat >conftest.$ac_ext <<_ACEOF
22446/* confdefs.h. */
22447_ACEOF
22448cat confdefs.h >>conftest.$ac_ext
22449cat >>conftest.$ac_ext <<_ACEOF
22450/* end confdefs.h. */
22451$ac_includes_default
22452int
22453main ()
22454{
22455struct stat sbuf;
22456 /* Linux will dereference the symlink and fail.
22457 That is better in the sense that it means we will not
22458 have to compile and use the lstat wrapper. */
22459 return lstat ("conftest.sym/", &sbuf) == 0;
22460 ;
22461 return 0;
22462}
22463_ACEOF
22464rm -f conftest$ac_exeext
22465if { (ac_try="$ac_link"
22466case "(($ac_try" in
22467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22468 *) ac_try_echo=$ac_try;;
22469esac
22470eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22471 (eval "$ac_link") 2>&5
22472 ac_status=$?
22473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22474 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22475 { (case "(($ac_try" in
22476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22477 *) ac_try_echo=$ac_try;;
22478esac
22479eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22480 (eval "$ac_try") 2>&5
22481 ac_status=$?
22482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22483 (exit $ac_status); }; }; then
22484 ac_cv_func_lstat_dereferences_slashed_symlink=yes
22485else
22486 echo "$as_me: program exited with status $ac_status" >&5
22487echo "$as_me: failed program was:" >&5
22488sed 's/^/| /' conftest.$ac_ext >&5
22489
22490( exit $ac_status )
22491ac_cv_func_lstat_dereferences_slashed_symlink=no
22492fi
22493rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22494fi
22495
22496
22497else
22498 # If the `ln -s' command failed, then we probably don't even
22499 # have an lstat function.
22500 ac_cv_func_lstat_dereferences_slashed_symlink=no
22501fi
22502rm -f conftest.sym conftest.file
22503
22504fi
22505{ echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
22506echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
22507
22508test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
22509
22510cat >>confdefs.h <<_ACEOF
22511@%:@define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
22512_ACEOF
22513
22514
22515if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
22516 case " $LIB@&t@OBJS " in
22517 *" lstat.$ac_objext "* ) ;;
22518 *) LIB@&t@OBJS="$LIB@&t@OBJS lstat.$ac_objext"
22519 ;;
22520esac
22521
22522fi
22523
22524{ echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
22525echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
22526if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
22527 echo $ECHO_N "(cached) $ECHO_C" >&6
22528else
22529 if test "$cross_compiling" = yes; then
22530 ac_cv_func_stat_empty_string_bug=yes
22531else
22532 cat >conftest.$ac_ext <<_ACEOF
22533/* confdefs.h. */
22534_ACEOF
22535cat confdefs.h >>conftest.$ac_ext
22536cat >>conftest.$ac_ext <<_ACEOF
22537/* end confdefs.h. */
22538$ac_includes_default
22539int
22540main ()
22541{
22542struct stat sbuf;
22543 return stat ("", &sbuf) == 0;
22544 ;
22545 return 0;
22546}
22547_ACEOF
22548rm -f conftest$ac_exeext
22549if { (ac_try="$ac_link"
22550case "(($ac_try" in
22551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22552 *) ac_try_echo=$ac_try;;
22553esac
22554eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22555 (eval "$ac_link") 2>&5
22556 ac_status=$?
22557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22558 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22559 { (case "(($ac_try" in
22560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22561 *) ac_try_echo=$ac_try;;
22562esac
22563eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22564 (eval "$ac_try") 2>&5
22565 ac_status=$?
22566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22567 (exit $ac_status); }; }; then
22568 ac_cv_func_stat_empty_string_bug=no
22569else
22570 echo "$as_me: program exited with status $ac_status" >&5
22571echo "$as_me: failed program was:" >&5
22572sed 's/^/| /' conftest.$ac_ext >&5
22573
22574( exit $ac_status )
22575ac_cv_func_stat_empty_string_bug=yes
22576fi
22577rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22578fi
22579
22580
22581fi
22582{ echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
22583echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
22584if test $ac_cv_func_stat_empty_string_bug = yes; then
22585 case " $LIB@&t@OBJS " in
22586 *" stat.$ac_objext "* ) ;;
22587 *) LIB@&t@OBJS="$LIB@&t@OBJS stat.$ac_objext"
22588 ;;
22589esac
22590
22591
22592cat >>confdefs.h <<_ACEOF
22593@%:@define HAVE_STAT_EMPTY_STRING_BUG 1
22594_ACEOF
22595
22596fi
22597
22598
22599for ac_func in strftime
22600do
22601as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22602{ echo "$as_me:$LINENO: checking for $ac_func" >&5
22603echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22604if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22605 echo $ECHO_N "(cached) $ECHO_C" >&6
22606else
22607 cat >conftest.$ac_ext <<_ACEOF
22608/* confdefs.h. */
22609_ACEOF
22610cat confdefs.h >>conftest.$ac_ext
22611cat >>conftest.$ac_ext <<_ACEOF
22612/* end confdefs.h. */
22613/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22614 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22615#define $ac_func innocuous_$ac_func
22616
22617/* System header to define __stub macros and hopefully few prototypes,
22618 which can conflict with char $ac_func (); below.
22619 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22620 <limits.h> exists even on freestanding compilers. */
22621
22622#ifdef __STDC__
22623# include <limits.h>
22624#else
22625# include <assert.h>
22626#endif
22627
22628#undef $ac_func
22629
22630/* Override any GCC internal prototype to avoid an error.
22631 Use char because int might match the return type of a GCC
22632 builtin and then its argument prototype would still apply. */
22633#ifdef __cplusplus
22634extern "C"
22635#endif
22636char $ac_func ();
22637/* The GNU C library defines this for functions which it implements
22638 to always fail with ENOSYS. Some functions are actually named
22639 something starting with __ and the normal name is an alias. */
22640#if defined __stub_$ac_func || defined __stub___$ac_func
22641choke me
22642#endif
22643
22644int
22645main ()
22646{
22647return $ac_func ();
22648 ;
22649 return 0;
22650}
22651_ACEOF
22652rm -f conftest.$ac_objext conftest$ac_exeext
22653if { (ac_try="$ac_link"
22654case "(($ac_try" in
22655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22656 *) ac_try_echo=$ac_try;;
22657esac
22658eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22659 (eval "$ac_link") 2>conftest.er1
22660 ac_status=$?
22661 grep -v '^ *+' conftest.er1 >conftest.err
22662 rm -f conftest.er1
22663 cat conftest.err >&5
22664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22665 (exit $ac_status); } && {
22666 test -z "$ac_c_werror_flag" ||
22667 test ! -s conftest.err
22668 } && test -s conftest$ac_exeext &&
22669 $as_test_x conftest$ac_exeext; then
22670 eval "$as_ac_var=yes"
22671else
22672 echo "$as_me: failed program was:" >&5
22673sed 's/^/| /' conftest.$ac_ext >&5
22674
22675 eval "$as_ac_var=no"
22676fi
22677
22678rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22679 conftest$ac_exeext conftest.$ac_ext
22680fi
22681ac_res=`eval echo '${'$as_ac_var'}'`
22682 { echo "$as_me:$LINENO: result: $ac_res" >&5
22683echo "${ECHO_T}$ac_res" >&6; }
22684if test `eval echo '${'$as_ac_var'}'` = yes; then
22685 cat >>confdefs.h <<_ACEOF
22686@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22687_ACEOF
22688
22689else
22690 # strftime is in -lintl on SCO UNIX.
22691{ echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
22692echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
22693if test "${ac_cv_lib_intl_strftime+set}" = set; then
22694 echo $ECHO_N "(cached) $ECHO_C" >&6
22695else
22696 ac_check_lib_save_LIBS=$LIBS
22697LIBS="-lintl $LIBS"
22698cat >conftest.$ac_ext <<_ACEOF
22699/* confdefs.h. */
22700_ACEOF
22701cat confdefs.h >>conftest.$ac_ext
22702cat >>conftest.$ac_ext <<_ACEOF
22703/* end confdefs.h. */
22704
22705/* Override any GCC internal prototype to avoid an error.
22706 Use char because int might match the return type of a GCC
22707 builtin and then its argument prototype would still apply. */
22708#ifdef __cplusplus
22709extern "C"
22710#endif
22711char strftime ();
22712int
22713main ()
22714{
22715return strftime ();
22716 ;
22717 return 0;
22718}
22719_ACEOF
22720rm -f conftest.$ac_objext conftest$ac_exeext
22721if { (ac_try="$ac_link"
22722case "(($ac_try" in
22723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22724 *) ac_try_echo=$ac_try;;
22725esac
22726eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22727 (eval "$ac_link") 2>conftest.er1
22728 ac_status=$?
22729 grep -v '^ *+' conftest.er1 >conftest.err
22730 rm -f conftest.er1
22731 cat conftest.err >&5
22732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22733 (exit $ac_status); } && {
22734 test -z "$ac_c_werror_flag" ||
22735 test ! -s conftest.err
22736 } && test -s conftest$ac_exeext &&
22737 $as_test_x conftest$ac_exeext; then
22738 ac_cv_lib_intl_strftime=yes
22739else
22740 echo "$as_me: failed program was:" >&5
22741sed 's/^/| /' conftest.$ac_ext >&5
22742
22743 ac_cv_lib_intl_strftime=no
22744fi
22745
22746rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22747 conftest$ac_exeext conftest.$ac_ext
22748LIBS=$ac_check_lib_save_LIBS
22749fi
22750{ echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
22751echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
22752if test $ac_cv_lib_intl_strftime = yes; then
22753 cat >>confdefs.h <<\_ACEOF
22754@%:@define HAVE_STRFTIME 1
22755_ACEOF
22756
22757LIBS="-lintl $LIBS"
22758fi
22759
22760fi
22761done
22762
22763#check machine endian
22764{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
22765echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
22766if test "${ac_cv_c_bigendian+set}" = set; then
22767 echo $ECHO_N "(cached) $ECHO_C" >&6
22768else
22769 # See if sys/param.h defines the BYTE_ORDER macro.
22770cat >conftest.$ac_ext <<_ACEOF
22771/* confdefs.h. */
22772_ACEOF
22773cat confdefs.h >>conftest.$ac_ext
22774cat >>conftest.$ac_ext <<_ACEOF
22775/* end confdefs.h. */
22776#include <sys/types.h>
22777#include <sys/param.h>
22778
22779int
22780main ()
22781{
22782#if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
22783 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
22784 bogus endian macros
22785#endif
22786
22787 ;
22788 return 0;
22789}
22790_ACEOF
22791rm -f conftest.$ac_objext
22792if { (ac_try="$ac_compile"
22793case "(($ac_try" in
22794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22795 *) ac_try_echo=$ac_try;;
22796esac
22797eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22798 (eval "$ac_compile") 2>conftest.er1
22799 ac_status=$?
22800 grep -v '^ *+' conftest.er1 >conftest.err
22801 rm -f conftest.er1
22802 cat conftest.err >&5
22803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22804 (exit $ac_status); } && {
22805 test -z "$ac_c_werror_flag" ||
22806 test ! -s conftest.err
22807 } && test -s conftest.$ac_objext; then
22808 # It does; now see whether it defined to BIG_ENDIAN or not.
22809cat >conftest.$ac_ext <<_ACEOF
22810/* confdefs.h. */
22811_ACEOF
22812cat confdefs.h >>conftest.$ac_ext
22813cat >>conftest.$ac_ext <<_ACEOF
22814/* end confdefs.h. */
22815#include <sys/types.h>
22816#include <sys/param.h>
22817
22818int
22819main ()
22820{
22821#if BYTE_ORDER != BIG_ENDIAN
22822 not big endian
22823#endif
22824
22825 ;
22826 return 0;
22827}
22828_ACEOF
22829rm -f conftest.$ac_objext
22830if { (ac_try="$ac_compile"
22831case "(($ac_try" in
22832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22833 *) ac_try_echo=$ac_try;;
22834esac
22835eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22836 (eval "$ac_compile") 2>conftest.er1
22837 ac_status=$?
22838 grep -v '^ *+' conftest.er1 >conftest.err
22839 rm -f conftest.er1
22840 cat conftest.err >&5
22841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22842 (exit $ac_status); } && {
22843 test -z "$ac_c_werror_flag" ||
22844 test ! -s conftest.err
22845 } && test -s conftest.$ac_objext; then
22846 ac_cv_c_bigendian=yes
22847else
22848 echo "$as_me: failed program was:" >&5
22849sed 's/^/| /' conftest.$ac_ext >&5
22850
22851 ac_cv_c_bigendian=no
22852fi
22853
22854rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22855else
22856 echo "$as_me: failed program was:" >&5
22857sed 's/^/| /' conftest.$ac_ext >&5
22858
22859 # It does not; compile a test program.
22860if test "$cross_compiling" = yes; then
22861 # try to guess the endianness by grepping values into an object file
22862 ac_cv_c_bigendian=unknown
22863 cat >conftest.$ac_ext <<_ACEOF
22864/* confdefs.h. */
22865_ACEOF
22866cat confdefs.h >>conftest.$ac_ext
22867cat >>conftest.$ac_ext <<_ACEOF
22868/* end confdefs.h. */
22869short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22870short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22871void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
22872short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22873short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22874void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
22875int
22876main ()
22877{
22878 _ascii (); _ebcdic ();
22879 ;
22880 return 0;
22881}
22882_ACEOF
22883rm -f conftest.$ac_objext
22884if { (ac_try="$ac_compile"
22885case "(($ac_try" in
22886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22887 *) ac_try_echo=$ac_try;;
22888esac
22889eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22890 (eval "$ac_compile") 2>conftest.er1
22891 ac_status=$?
22892 grep -v '^ *+' conftest.er1 >conftest.err
22893 rm -f conftest.er1
22894 cat conftest.err >&5
22895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22896 (exit $ac_status); } && {
22897 test -z "$ac_c_werror_flag" ||
22898 test ! -s conftest.err
22899 } && test -s conftest.$ac_objext; then
22900 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
22901 ac_cv_c_bigendian=yes
22902fi
22903if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22904 if test "$ac_cv_c_bigendian" = unknown; then
22905 ac_cv_c_bigendian=no
22906 else
22907 # finding both strings is unlikely to happen, but who knows?
22908 ac_cv_c_bigendian=unknown
22909 fi
22910fi
22911else
22912 echo "$as_me: failed program was:" >&5
22913sed 's/^/| /' conftest.$ac_ext >&5
22914
22915
22916fi
22917
22918rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22919else
22920 cat >conftest.$ac_ext <<_ACEOF
22921/* confdefs.h. */
22922_ACEOF
22923cat confdefs.h >>conftest.$ac_ext
22924cat >>conftest.$ac_ext <<_ACEOF
22925/* end confdefs.h. */
22926$ac_includes_default
22927int
22928main ()
22929{
22930
22931 /* Are we little or big endian? From Harbison&Steele. */
22932 union
22933 {
22934 long int l;
22935 char c[sizeof (long int)];
22936 } u;
22937 u.l = 1;
22938 return u.c[sizeof (long int) - 1] == 1;
22939
22940 ;
22941 return 0;
22942}
22943_ACEOF
22944rm -f conftest$ac_exeext
22945if { (ac_try="$ac_link"
22946case "(($ac_try" in
22947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22948 *) ac_try_echo=$ac_try;;
22949esac
22950eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22951 (eval "$ac_link") 2>&5
22952 ac_status=$?
22953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22954 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22955 { (case "(($ac_try" in
22956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22957 *) ac_try_echo=$ac_try;;
22958esac
22959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22960 (eval "$ac_try") 2>&5
22961 ac_status=$?
22962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22963 (exit $ac_status); }; }; then
22964 ac_cv_c_bigendian=no
22965else
22966 echo "$as_me: program exited with status $ac_status" >&5
22967echo "$as_me: failed program was:" >&5
22968sed 's/^/| /' conftest.$ac_ext >&5
22969
22970( exit $ac_status )
22971ac_cv_c_bigendian=yes
22972fi
22973rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22974fi
22975
22976
22977fi
22978
22979rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22980fi
22981{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
22982echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
22983case $ac_cv_c_bigendian in
22984 yes)
22985
22986cat >>confdefs.h <<\_ACEOF
22987@%:@define WORDS_BIGENDIAN 1
22988_ACEOF
22989 ;;
22990 no)
22991 ;;
22992 *)
22993 { { echo "$as_me:$LINENO: error: unknown endianness
22994presetting ac_cv_c_bigendian=no (or yes) will help" >&5
22995echo "$as_me: error: unknown endianness
22996presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
22997 { (exit 1); exit 1; }; } ;;
22998esac
22999
23000
23001{ echo "$as_me:$LINENO: checking for int" >&5
23002echo $ECHO_N "checking for int... $ECHO_C" >&6; }
23003if test "${ac_cv_type_int+set}" = set; then
23004 echo $ECHO_N "(cached) $ECHO_C" >&6
23005else
23006 cat >conftest.$ac_ext <<_ACEOF
23007/* confdefs.h. */
23008_ACEOF
23009cat confdefs.h >>conftest.$ac_ext
23010cat >>conftest.$ac_ext <<_ACEOF
23011/* end confdefs.h. */
23012$ac_includes_default
23013typedef int ac__type_new_;
23014int
23015main ()
23016{
23017if ((ac__type_new_ *) 0)
23018 return 0;
23019if (sizeof (ac__type_new_))
23020 return 0;
23021 ;
23022 return 0;
23023}
23024_ACEOF
23025rm -f conftest.$ac_objext
23026if { (ac_try="$ac_compile"
23027case "(($ac_try" in
23028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23029 *) ac_try_echo=$ac_try;;
23030esac
23031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23032 (eval "$ac_compile") 2>conftest.er1
23033 ac_status=$?
23034 grep -v '^ *+' conftest.er1 >conftest.err
23035 rm -f conftest.er1
23036 cat conftest.err >&5
23037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23038 (exit $ac_status); } && {
23039 test -z "$ac_c_werror_flag" ||
23040 test ! -s conftest.err
23041 } && test -s conftest.$ac_objext; then
23042 ac_cv_type_int=yes
23043else
23044 echo "$as_me: failed program was:" >&5
23045sed 's/^/| /' conftest.$ac_ext >&5
23046
23047 ac_cv_type_int=no
23048fi
23049
23050rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23051fi
23052{ echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
23053echo "${ECHO_T}$ac_cv_type_int" >&6; }
23054
23055# The cast to long int works around a bug in the HP C Compiler
23056# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23057# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23058# This bug is HP SR number 8606223364.
23059{ echo "$as_me:$LINENO: checking size of int" >&5
23060echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
23061if test "${ac_cv_sizeof_int+set}" = set; then
23062 echo $ECHO_N "(cached) $ECHO_C" >&6
23063else
23064 if test "$cross_compiling" = yes; then
23065 # Depending upon the size, compute the lo and hi bounds.
23066cat >conftest.$ac_ext <<_ACEOF
23067/* confdefs.h. */
23068_ACEOF
23069cat confdefs.h >>conftest.$ac_ext
23070cat >>conftest.$ac_ext <<_ACEOF
23071/* end confdefs.h. */
23072$ac_includes_default
23073 typedef int ac__type_sizeof_;
23074int
23075main ()
23076{
23077static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
23078test_array @<:@0@:>@ = 0
23079
23080 ;
23081 return 0;
23082}
23083_ACEOF
23084rm -f conftest.$ac_objext
23085if { (ac_try="$ac_compile"
23086case "(($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_compile") 2>conftest.er1
23092 ac_status=$?
23093 grep -v '^ *+' conftest.er1 >conftest.err
23094 rm -f conftest.er1
23095 cat conftest.err >&5
23096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23097 (exit $ac_status); } && {
23098 test -z "$ac_c_werror_flag" ||
23099 test ! -s conftest.err
23100 } && test -s conftest.$ac_objext; then
23101 ac_lo=0 ac_mid=0
23102 while :; do
23103 cat >conftest.$ac_ext <<_ACEOF
23104/* confdefs.h. */
23105_ACEOF
23106cat confdefs.h >>conftest.$ac_ext
23107cat >>conftest.$ac_ext <<_ACEOF
23108/* end confdefs.h. */
23109$ac_includes_default
23110 typedef int ac__type_sizeof_;
23111int
23112main ()
23113{
23114static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
23115test_array @<:@0@:>@ = 0
23116
23117 ;
23118 return 0;
23119}
23120_ACEOF
23121rm -f conftest.$ac_objext
23122if { (ac_try="$ac_compile"
23123case "(($ac_try" in
23124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23125 *) ac_try_echo=$ac_try;;
23126esac
23127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23128 (eval "$ac_compile") 2>conftest.er1
23129 ac_status=$?
23130 grep -v '^ *+' conftest.er1 >conftest.err
23131 rm -f conftest.er1
23132 cat conftest.err >&5
23133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23134 (exit $ac_status); } && {
23135 test -z "$ac_c_werror_flag" ||
23136 test ! -s conftest.err
23137 } && test -s conftest.$ac_objext; then
23138 ac_hi=$ac_mid; break
23139else
23140 echo "$as_me: failed program was:" >&5
23141sed 's/^/| /' conftest.$ac_ext >&5
23142
23143 ac_lo=`expr $ac_mid + 1`
23144 if test $ac_lo -le $ac_mid; then
23145 ac_lo= ac_hi=
23146 break
23147 fi
23148 ac_mid=`expr 2 '*' $ac_mid + 1`
23149fi
23150
23151rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23152 done
23153else
23154 echo "$as_me: failed program was:" >&5
23155sed 's/^/| /' conftest.$ac_ext >&5
23156
23157 cat >conftest.$ac_ext <<_ACEOF
23158/* confdefs.h. */
23159_ACEOF
23160cat confdefs.h >>conftest.$ac_ext
23161cat >>conftest.$ac_ext <<_ACEOF
23162/* end confdefs.h. */
23163$ac_includes_default
23164 typedef int ac__type_sizeof_;
23165int
23166main ()
23167{
23168static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
23169test_array @<:@0@:>@ = 0
23170
23171 ;
23172 return 0;
23173}
23174_ACEOF
23175rm -f conftest.$ac_objext
23176if { (ac_try="$ac_compile"
23177case "(($ac_try" in
23178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23179 *) ac_try_echo=$ac_try;;
23180esac
23181eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23182 (eval "$ac_compile") 2>conftest.er1
23183 ac_status=$?
23184 grep -v '^ *+' conftest.er1 >conftest.err
23185 rm -f conftest.er1
23186 cat conftest.err >&5
23187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23188 (exit $ac_status); } && {
23189 test -z "$ac_c_werror_flag" ||
23190 test ! -s conftest.err
23191 } && test -s conftest.$ac_objext; then
23192 ac_hi=-1 ac_mid=-1
23193 while :; do
23194 cat >conftest.$ac_ext <<_ACEOF
23195/* confdefs.h. */
23196_ACEOF
23197cat confdefs.h >>conftest.$ac_ext
23198cat >>conftest.$ac_ext <<_ACEOF
23199/* end confdefs.h. */
23200$ac_includes_default
23201 typedef int ac__type_sizeof_;
23202int
23203main ()
23204{
23205static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
23206test_array @<:@0@:>@ = 0
23207
23208 ;
23209 return 0;
23210}
23211_ACEOF
23212rm -f conftest.$ac_objext
23213if { (ac_try="$ac_compile"
23214case "(($ac_try" in
23215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23216 *) ac_try_echo=$ac_try;;
23217esac
23218eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23219 (eval "$ac_compile") 2>conftest.er1
23220 ac_status=$?
23221 grep -v '^ *+' conftest.er1 >conftest.err
23222 rm -f conftest.er1
23223 cat conftest.err >&5
23224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23225 (exit $ac_status); } && {
23226 test -z "$ac_c_werror_flag" ||
23227 test ! -s conftest.err
23228 } && test -s conftest.$ac_objext; then
23229 ac_lo=$ac_mid; break
23230else
23231 echo "$as_me: failed program was:" >&5
23232sed 's/^/| /' conftest.$ac_ext >&5
23233
23234 ac_hi=`expr '(' $ac_mid ')' - 1`
23235 if test $ac_mid -le $ac_hi; then
23236 ac_lo= ac_hi=
23237 break
23238 fi
23239 ac_mid=`expr 2 '*' $ac_mid`
23240fi
23241
23242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23243 done
23244else
23245 echo "$as_me: failed program was:" >&5
23246sed 's/^/| /' conftest.$ac_ext >&5
23247
23248 ac_lo= ac_hi=
23249fi
23250
23251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23252fi
23253
23254rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23255# Binary search between lo and hi bounds.
23256while test "x$ac_lo" != "x$ac_hi"; do
23257 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23258 cat >conftest.$ac_ext <<_ACEOF
23259/* confdefs.h. */
23260_ACEOF
23261cat confdefs.h >>conftest.$ac_ext
23262cat >>conftest.$ac_ext <<_ACEOF
23263/* end confdefs.h. */
23264$ac_includes_default
23265 typedef int ac__type_sizeof_;
23266int
23267main ()
23268{
23269static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
23270test_array @<:@0@:>@ = 0
23271
23272 ;
23273 return 0;
23274}
23275_ACEOF
23276rm -f conftest.$ac_objext
23277if { (ac_try="$ac_compile"
23278case "(($ac_try" in
23279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23280 *) ac_try_echo=$ac_try;;
23281esac
23282eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23283 (eval "$ac_compile") 2>conftest.er1
23284 ac_status=$?
23285 grep -v '^ *+' conftest.er1 >conftest.err
23286 rm -f conftest.er1
23287 cat conftest.err >&5
23288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23289 (exit $ac_status); } && {
23290 test -z "$ac_c_werror_flag" ||
23291 test ! -s conftest.err
23292 } && test -s conftest.$ac_objext; then
23293 ac_hi=$ac_mid
23294else
23295 echo "$as_me: failed program was:" >&5
23296sed 's/^/| /' conftest.$ac_ext >&5
23297
23298 ac_lo=`expr '(' $ac_mid ')' + 1`
23299fi
23300
23301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23302done
23303case $ac_lo in
23304?*) ac_cv_sizeof_int=$ac_lo;;
23305'') if test "$ac_cv_type_int" = yes; then
23306 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
23307See \`config.log' for more details." >&5
23308echo "$as_me: error: cannot compute sizeof (int)
23309See \`config.log' for more details." >&2;}
23310 { (exit 77); exit 77; }; }
23311 else
23312 ac_cv_sizeof_int=0
23313 fi ;;
23314esac
23315else
23316 cat >conftest.$ac_ext <<_ACEOF
23317/* confdefs.h. */
23318_ACEOF
23319cat confdefs.h >>conftest.$ac_ext
23320cat >>conftest.$ac_ext <<_ACEOF
23321/* end confdefs.h. */
23322$ac_includes_default
23323 typedef int ac__type_sizeof_;
23324static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23325static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23326@%:@include <stdio.h>
23327@%:@include <stdlib.h>
23328int
23329main ()
23330{
23331
23332 FILE *f = fopen ("conftest.val", "w");
23333 if (! f)
23334 return 1;
23335 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23336 {
23337 long int i = longval ();
23338 if (i != ((long int) (sizeof (ac__type_sizeof_))))
23339 return 1;
23340 fprintf (f, "%ld\n", i);
23341 }
23342 else
23343 {
23344 unsigned long int i = ulongval ();
23345 if (i != ((long int) (sizeof (ac__type_sizeof_))))
23346 return 1;
23347 fprintf (f, "%lu\n", i);
23348 }
23349 return ferror (f) || fclose (f) != 0;
23350
23351 ;
23352 return 0;
23353}
23354_ACEOF
23355rm -f conftest$ac_exeext
23356if { (ac_try="$ac_link"
23357case "(($ac_try" in
23358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23359 *) ac_try_echo=$ac_try;;
23360esac
23361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23362 (eval "$ac_link") 2>&5
23363 ac_status=$?
23364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23365 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23366 { (case "(($ac_try" in
23367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23368 *) ac_try_echo=$ac_try;;
23369esac
23370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23371 (eval "$ac_try") 2>&5
23372 ac_status=$?
23373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23374 (exit $ac_status); }; }; then
23375 ac_cv_sizeof_int=`cat conftest.val`
23376else
23377 echo "$as_me: program exited with status $ac_status" >&5
23378echo "$as_me: failed program was:" >&5
23379sed 's/^/| /' conftest.$ac_ext >&5
23380
23381( exit $ac_status )
23382if test "$ac_cv_type_int" = yes; then
23383 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
23384See \`config.log' for more details." >&5
23385echo "$as_me: error: cannot compute sizeof (int)
23386See \`config.log' for more details." >&2;}
23387 { (exit 77); exit 77; }; }
23388 else
23389 ac_cv_sizeof_int=0
23390 fi
23391fi
23392rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23393fi
23394rm -f conftest.val
23395fi
23396{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
23397echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
23398
23399
23400
23401cat >>confdefs.h <<_ACEOF
23402@%:@define SIZEOF_INT $ac_cv_sizeof_int
23403_ACEOF
23404
23405
23406{ echo "$as_me:$LINENO: checking for short" >&5
23407echo $ECHO_N "checking for short... $ECHO_C" >&6; }
23408if test "${ac_cv_type_short+set}" = set; then
23409 echo $ECHO_N "(cached) $ECHO_C" >&6
23410else
23411 cat >conftest.$ac_ext <<_ACEOF
23412/* confdefs.h. */
23413_ACEOF
23414cat confdefs.h >>conftest.$ac_ext
23415cat >>conftest.$ac_ext <<_ACEOF
23416/* end confdefs.h. */
23417$ac_includes_default
23418typedef short ac__type_new_;
23419int
23420main ()
23421{
23422if ((ac__type_new_ *) 0)
23423 return 0;
23424if (sizeof (ac__type_new_))
23425 return 0;
23426 ;
23427 return 0;
23428}
23429_ACEOF
23430rm -f conftest.$ac_objext
23431if { (ac_try="$ac_compile"
23432case "(($ac_try" in
23433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23434 *) ac_try_echo=$ac_try;;
23435esac
23436eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23437 (eval "$ac_compile") 2>conftest.er1
23438 ac_status=$?
23439 grep -v '^ *+' conftest.er1 >conftest.err
23440 rm -f conftest.er1
23441 cat conftest.err >&5
23442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23443 (exit $ac_status); } && {
23444 test -z "$ac_c_werror_flag" ||
23445 test ! -s conftest.err
23446 } && test -s conftest.$ac_objext; then
23447 ac_cv_type_short=yes
23448else
23449 echo "$as_me: failed program was:" >&5
23450sed 's/^/| /' conftest.$ac_ext >&5
23451
23452 ac_cv_type_short=no
23453fi
23454
23455rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23456fi
23457{ echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
23458echo "${ECHO_T}$ac_cv_type_short" >&6; }
23459
23460# The cast to long int works around a bug in the HP C Compiler
23461# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23462# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23463# This bug is HP SR number 8606223364.
23464{ echo "$as_me:$LINENO: checking size of short" >&5
23465echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
23466if test "${ac_cv_sizeof_short+set}" = set; then
23467 echo $ECHO_N "(cached) $ECHO_C" >&6
23468else
23469 if test "$cross_compiling" = yes; then
23470 # Depending upon the size, compute the lo and hi bounds.
23471cat >conftest.$ac_ext <<_ACEOF
23472/* confdefs.h. */
23473_ACEOF
23474cat confdefs.h >>conftest.$ac_ext
23475cat >>conftest.$ac_ext <<_ACEOF
23476/* end confdefs.h. */
23477$ac_includes_default
23478 typedef short ac__type_sizeof_;
23479int
23480main ()
23481{
23482static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
23483test_array @<:@0@:>@ = 0
23484
23485 ;
23486 return 0;
23487}
23488_ACEOF
23489rm -f conftest.$ac_objext
23490if { (ac_try="$ac_compile"
23491case "(($ac_try" in
23492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23493 *) ac_try_echo=$ac_try;;
23494esac
23495eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23496 (eval "$ac_compile") 2>conftest.er1
23497 ac_status=$?
23498 grep -v '^ *+' conftest.er1 >conftest.err
23499 rm -f conftest.er1
23500 cat conftest.err >&5
23501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23502 (exit $ac_status); } && {
23503 test -z "$ac_c_werror_flag" ||
23504 test ! -s conftest.err
23505 } && test -s conftest.$ac_objext; then
23506 ac_lo=0 ac_mid=0
23507 while :; do
23508 cat >conftest.$ac_ext <<_ACEOF
23509/* confdefs.h. */
23510_ACEOF
23511cat confdefs.h >>conftest.$ac_ext
23512cat >>conftest.$ac_ext <<_ACEOF
23513/* end confdefs.h. */
23514$ac_includes_default
23515 typedef short ac__type_sizeof_;
23516int
23517main ()
23518{
23519static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
23520test_array @<:@0@:>@ = 0
23521
23522 ;
23523 return 0;
23524}
23525_ACEOF
23526rm -f conftest.$ac_objext
23527if { (ac_try="$ac_compile"
23528case "(($ac_try" in
23529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23530 *) ac_try_echo=$ac_try;;
23531esac
23532eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23533 (eval "$ac_compile") 2>conftest.er1
23534 ac_status=$?
23535 grep -v '^ *+' conftest.er1 >conftest.err
23536 rm -f conftest.er1
23537 cat conftest.err >&5
23538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23539 (exit $ac_status); } && {
23540 test -z "$ac_c_werror_flag" ||
23541 test ! -s conftest.err
23542 } && test -s conftest.$ac_objext; then
23543 ac_hi=$ac_mid; break
23544else
23545 echo "$as_me: failed program was:" >&5
23546sed 's/^/| /' conftest.$ac_ext >&5
23547
23548 ac_lo=`expr $ac_mid + 1`
23549 if test $ac_lo -le $ac_mid; then
23550 ac_lo= ac_hi=
23551 break
23552 fi
23553 ac_mid=`expr 2 '*' $ac_mid + 1`
23554fi
23555
23556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23557 done
23558else
23559 echo "$as_me: failed program was:" >&5
23560sed 's/^/| /' conftest.$ac_ext >&5
23561
23562 cat >conftest.$ac_ext <<_ACEOF
23563/* confdefs.h. */
23564_ACEOF
23565cat confdefs.h >>conftest.$ac_ext
23566cat >>conftest.$ac_ext <<_ACEOF
23567/* end confdefs.h. */
23568$ac_includes_default
23569 typedef short ac__type_sizeof_;
23570int
23571main ()
23572{
23573static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
23574test_array @<:@0@:>@ = 0
23575
23576 ;
23577 return 0;
23578}
23579_ACEOF
23580rm -f conftest.$ac_objext
23581if { (ac_try="$ac_compile"
23582case "(($ac_try" in
23583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23584 *) ac_try_echo=$ac_try;;
23585esac
23586eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23587 (eval "$ac_compile") 2>conftest.er1
23588 ac_status=$?
23589 grep -v '^ *+' conftest.er1 >conftest.err
23590 rm -f conftest.er1
23591 cat conftest.err >&5
23592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23593 (exit $ac_status); } && {
23594 test -z "$ac_c_werror_flag" ||
23595 test ! -s conftest.err
23596 } && test -s conftest.$ac_objext; then
23597 ac_hi=-1 ac_mid=-1
23598 while :; do
23599 cat >conftest.$ac_ext <<_ACEOF
23600/* confdefs.h. */
23601_ACEOF
23602cat confdefs.h >>conftest.$ac_ext
23603cat >>conftest.$ac_ext <<_ACEOF
23604/* end confdefs.h. */
23605$ac_includes_default
23606 typedef short ac__type_sizeof_;
23607int
23608main ()
23609{
23610static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
23611test_array @<:@0@:>@ = 0
23612
23613 ;
23614 return 0;
23615}
23616_ACEOF
23617rm -f conftest.$ac_objext
23618if { (ac_try="$ac_compile"
23619case "(($ac_try" in
23620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23621 *) ac_try_echo=$ac_try;;
23622esac
23623eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23624 (eval "$ac_compile") 2>conftest.er1
23625 ac_status=$?
23626 grep -v '^ *+' conftest.er1 >conftest.err
23627 rm -f conftest.er1
23628 cat conftest.err >&5
23629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23630 (exit $ac_status); } && {
23631 test -z "$ac_c_werror_flag" ||
23632 test ! -s conftest.err
23633 } && test -s conftest.$ac_objext; then
23634 ac_lo=$ac_mid; break
23635else
23636 echo "$as_me: failed program was:" >&5
23637sed 's/^/| /' conftest.$ac_ext >&5
23638
23639 ac_hi=`expr '(' $ac_mid ')' - 1`
23640 if test $ac_mid -le $ac_hi; then
23641 ac_lo= ac_hi=
23642 break
23643 fi
23644 ac_mid=`expr 2 '*' $ac_mid`
23645fi
23646
23647rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23648 done
23649else
23650 echo "$as_me: failed program was:" >&5
23651sed 's/^/| /' conftest.$ac_ext >&5
23652
23653 ac_lo= ac_hi=
23654fi
23655
23656rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23657fi
23658
23659rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23660# Binary search between lo and hi bounds.
23661while test "x$ac_lo" != "x$ac_hi"; do
23662 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23663 cat >conftest.$ac_ext <<_ACEOF
23664/* confdefs.h. */
23665_ACEOF
23666cat confdefs.h >>conftest.$ac_ext
23667cat >>conftest.$ac_ext <<_ACEOF
23668/* end confdefs.h. */
23669$ac_includes_default
23670 typedef short ac__type_sizeof_;
23671int
23672main ()
23673{
23674static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
23675test_array @<:@0@:>@ = 0
23676
23677 ;
23678 return 0;
23679}
23680_ACEOF
23681rm -f conftest.$ac_objext
23682if { (ac_try="$ac_compile"
23683case "(($ac_try" in
23684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23685 *) ac_try_echo=$ac_try;;
23686esac
23687eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23688 (eval "$ac_compile") 2>conftest.er1
23689 ac_status=$?
23690 grep -v '^ *+' conftest.er1 >conftest.err
23691 rm -f conftest.er1
23692 cat conftest.err >&5
23693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23694 (exit $ac_status); } && {
23695 test -z "$ac_c_werror_flag" ||
23696 test ! -s conftest.err
23697 } && test -s conftest.$ac_objext; then
23698 ac_hi=$ac_mid
23699else
23700 echo "$as_me: failed program was:" >&5
23701sed 's/^/| /' conftest.$ac_ext >&5
23702
23703 ac_lo=`expr '(' $ac_mid ')' + 1`
23704fi
23705
23706rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23707done
23708case $ac_lo in
23709?*) ac_cv_sizeof_short=$ac_lo;;
23710'') if test "$ac_cv_type_short" = yes; then
23711 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
23712See \`config.log' for more details." >&5
23713echo "$as_me: error: cannot compute sizeof (short)
23714See \`config.log' for more details." >&2;}
23715 { (exit 77); exit 77; }; }
23716 else
23717 ac_cv_sizeof_short=0
23718 fi ;;
23719esac
23720else
23721 cat >conftest.$ac_ext <<_ACEOF
23722/* confdefs.h. */
23723_ACEOF
23724cat confdefs.h >>conftest.$ac_ext
23725cat >>conftest.$ac_ext <<_ACEOF
23726/* end confdefs.h. */
23727$ac_includes_default
23728 typedef short ac__type_sizeof_;
23729static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23730static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23731@%:@include <stdio.h>
23732@%:@include <stdlib.h>
23733int
23734main ()
23735{
23736
23737 FILE *f = fopen ("conftest.val", "w");
23738 if (! f)
23739 return 1;
23740 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23741 {
23742 long int i = longval ();
23743 if (i != ((long int) (sizeof (ac__type_sizeof_))))
23744 return 1;
23745 fprintf (f, "%ld\n", i);
23746 }
23747 else
23748 {
23749 unsigned long int i = ulongval ();
23750 if (i != ((long int) (sizeof (ac__type_sizeof_))))
23751 return 1;
23752 fprintf (f, "%lu\n", i);
23753 }
23754 return ferror (f) || fclose (f) != 0;
23755
23756 ;
23757 return 0;
23758}
23759_ACEOF
23760rm -f conftest$ac_exeext
23761if { (ac_try="$ac_link"
23762case "(($ac_try" in
23763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23764 *) ac_try_echo=$ac_try;;
23765esac
23766eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23767 (eval "$ac_link") 2>&5
23768 ac_status=$?
23769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23770 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23771 { (case "(($ac_try" in
23772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23773 *) ac_try_echo=$ac_try;;
23774esac
23775eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23776 (eval "$ac_try") 2>&5
23777 ac_status=$?
23778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23779 (exit $ac_status); }; }; then
23780 ac_cv_sizeof_short=`cat conftest.val`
23781else
23782 echo "$as_me: program exited with status $ac_status" >&5
23783echo "$as_me: failed program was:" >&5
23784sed 's/^/| /' conftest.$ac_ext >&5
23785
23786( exit $ac_status )
23787if test "$ac_cv_type_short" = yes; then
23788 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
23789See \`config.log' for more details." >&5
23790echo "$as_me: error: cannot compute sizeof (short)
23791See \`config.log' for more details." >&2;}
23792 { (exit 77); exit 77; }; }
23793 else
23794 ac_cv_sizeof_short=0
23795 fi
23796fi
23797rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23798fi
23799rm -f conftest.val
23800fi
23801{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
23802echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
23803
23804
23805
23806cat >>confdefs.h <<_ACEOF
23807@%:@define SIZEOF_SHORT $ac_cv_sizeof_short
23808_ACEOF
23809
23810
23811{ echo "$as_me:$LINENO: checking for long" >&5
23812echo $ECHO_N "checking for long... $ECHO_C" >&6; }
23813if test "${ac_cv_type_long+set}" = set; then
23814 echo $ECHO_N "(cached) $ECHO_C" >&6
23815else
23816 cat >conftest.$ac_ext <<_ACEOF
23817/* confdefs.h. */
23818_ACEOF
23819cat confdefs.h >>conftest.$ac_ext
23820cat >>conftest.$ac_ext <<_ACEOF
23821/* end confdefs.h. */
23822$ac_includes_default
23823typedef long ac__type_new_;
23824int
23825main ()
23826{
23827if ((ac__type_new_ *) 0)
23828 return 0;
23829if (sizeof (ac__type_new_))
23830 return 0;
23831 ;
23832 return 0;
23833}
23834_ACEOF
23835rm -f conftest.$ac_objext
23836if { (ac_try="$ac_compile"
23837case "(($ac_try" in
23838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23839 *) ac_try_echo=$ac_try;;
23840esac
23841eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23842 (eval "$ac_compile") 2>conftest.er1
23843 ac_status=$?
23844 grep -v '^ *+' conftest.er1 >conftest.err
23845 rm -f conftest.er1
23846 cat conftest.err >&5
23847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23848 (exit $ac_status); } && {
23849 test -z "$ac_c_werror_flag" ||
23850 test ! -s conftest.err
23851 } && test -s conftest.$ac_objext; then
23852 ac_cv_type_long=yes
23853else
23854 echo "$as_me: failed program was:" >&5
23855sed 's/^/| /' conftest.$ac_ext >&5
23856
23857 ac_cv_type_long=no
23858fi
23859
23860rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23861fi
23862{ echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
23863echo "${ECHO_T}$ac_cv_type_long" >&6; }
23864
23865# The cast to long int works around a bug in the HP C Compiler
23866# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23867# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23868# This bug is HP SR number 8606223364.
23869{ echo "$as_me:$LINENO: checking size of long" >&5
23870echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
23871if test "${ac_cv_sizeof_long+set}" = set; then
23872 echo $ECHO_N "(cached) $ECHO_C" >&6
23873else
23874 if test "$cross_compiling" = yes; then
23875 # Depending upon the size, compute the lo and hi bounds.
23876cat >conftest.$ac_ext <<_ACEOF
23877/* confdefs.h. */
23878_ACEOF
23879cat confdefs.h >>conftest.$ac_ext
23880cat >>conftest.$ac_ext <<_ACEOF
23881/* end confdefs.h. */
23882$ac_includes_default
23883 typedef long ac__type_sizeof_;
23884int
23885main ()
23886{
23887static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
23888test_array @<:@0@:>@ = 0
23889
23890 ;
23891 return 0;
23892}
23893_ACEOF
23894rm -f conftest.$ac_objext
23895if { (ac_try="$ac_compile"
23896case "(($ac_try" in
23897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23898 *) ac_try_echo=$ac_try;;
23899esac
23900eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23901 (eval "$ac_compile") 2>conftest.er1
23902 ac_status=$?
23903 grep -v '^ *+' conftest.er1 >conftest.err
23904 rm -f conftest.er1
23905 cat conftest.err >&5
23906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23907 (exit $ac_status); } && {
23908 test -z "$ac_c_werror_flag" ||
23909 test ! -s conftest.err
23910 } && test -s conftest.$ac_objext; then
23911 ac_lo=0 ac_mid=0
23912 while :; do
23913 cat >conftest.$ac_ext <<_ACEOF
23914/* confdefs.h. */
23915_ACEOF
23916cat confdefs.h >>conftest.$ac_ext
23917cat >>conftest.$ac_ext <<_ACEOF
23918/* end confdefs.h. */
23919$ac_includes_default
23920 typedef long ac__type_sizeof_;
23921int
23922main ()
23923{
23924static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
23925test_array @<:@0@:>@ = 0
23926
23927 ;
23928 return 0;
23929}
23930_ACEOF
23931rm -f conftest.$ac_objext
23932if { (ac_try="$ac_compile"
23933case "(($ac_try" in
23934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23935 *) ac_try_echo=$ac_try;;
23936esac
23937eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23938 (eval "$ac_compile") 2>conftest.er1
23939 ac_status=$?
23940 grep -v '^ *+' conftest.er1 >conftest.err
23941 rm -f conftest.er1
23942 cat conftest.err >&5
23943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23944 (exit $ac_status); } && {
23945 test -z "$ac_c_werror_flag" ||
23946 test ! -s conftest.err
23947 } && test -s conftest.$ac_objext; then
23948 ac_hi=$ac_mid; break
23949else
23950 echo "$as_me: failed program was:" >&5
23951sed 's/^/| /' conftest.$ac_ext >&5
23952
23953 ac_lo=`expr $ac_mid + 1`
23954 if test $ac_lo -le $ac_mid; then
23955 ac_lo= ac_hi=
23956 break
23957 fi
23958 ac_mid=`expr 2 '*' $ac_mid + 1`
23959fi
23960
23961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23962 done
23963else
23964 echo "$as_me: failed program was:" >&5
23965sed 's/^/| /' conftest.$ac_ext >&5
23966
23967 cat >conftest.$ac_ext <<_ACEOF
23968/* confdefs.h. */
23969_ACEOF
23970cat confdefs.h >>conftest.$ac_ext
23971cat >>conftest.$ac_ext <<_ACEOF
23972/* end confdefs.h. */
23973$ac_includes_default
23974 typedef long ac__type_sizeof_;
23975int
23976main ()
23977{
23978static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
23979test_array @<:@0@:>@ = 0
23980
23981 ;
23982 return 0;
23983}
23984_ACEOF
23985rm -f conftest.$ac_objext
23986if { (ac_try="$ac_compile"
23987case "(($ac_try" in
23988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23989 *) ac_try_echo=$ac_try;;
23990esac
23991eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23992 (eval "$ac_compile") 2>conftest.er1
23993 ac_status=$?
23994 grep -v '^ *+' conftest.er1 >conftest.err
23995 rm -f conftest.er1
23996 cat conftest.err >&5
23997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23998 (exit $ac_status); } && {
23999 test -z "$ac_c_werror_flag" ||
24000 test ! -s conftest.err
24001 } && test -s conftest.$ac_objext; then
24002 ac_hi=-1 ac_mid=-1
24003 while :; do
24004 cat >conftest.$ac_ext <<_ACEOF
24005/* confdefs.h. */
24006_ACEOF
24007cat confdefs.h >>conftest.$ac_ext
24008cat >>conftest.$ac_ext <<_ACEOF
24009/* end confdefs.h. */
24010$ac_includes_default
24011 typedef long ac__type_sizeof_;
24012int
24013main ()
24014{
24015static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
24016test_array @<:@0@:>@ = 0
24017
24018 ;
24019 return 0;
24020}
24021_ACEOF
24022rm -f conftest.$ac_objext
24023if { (ac_try="$ac_compile"
24024case "(($ac_try" in
24025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24026 *) ac_try_echo=$ac_try;;
24027esac
24028eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24029 (eval "$ac_compile") 2>conftest.er1
24030 ac_status=$?
24031 grep -v '^ *+' conftest.er1 >conftest.err
24032 rm -f conftest.er1
24033 cat conftest.err >&5
24034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24035 (exit $ac_status); } && {
24036 test -z "$ac_c_werror_flag" ||
24037 test ! -s conftest.err
24038 } && test -s conftest.$ac_objext; then
24039 ac_lo=$ac_mid; break
24040else
24041 echo "$as_me: failed program was:" >&5
24042sed 's/^/| /' conftest.$ac_ext >&5
24043
24044 ac_hi=`expr '(' $ac_mid ')' - 1`
24045 if test $ac_mid -le $ac_hi; then
24046 ac_lo= ac_hi=
24047 break
24048 fi
24049 ac_mid=`expr 2 '*' $ac_mid`
24050fi
24051
24052rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24053 done
24054else
24055 echo "$as_me: failed program was:" >&5
24056sed 's/^/| /' conftest.$ac_ext >&5
24057
24058 ac_lo= ac_hi=
24059fi
24060
24061rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24062fi
24063
24064rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24065# Binary search between lo and hi bounds.
24066while test "x$ac_lo" != "x$ac_hi"; do
24067 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24068 cat >conftest.$ac_ext <<_ACEOF
24069/* confdefs.h. */
24070_ACEOF
24071cat confdefs.h >>conftest.$ac_ext
24072cat >>conftest.$ac_ext <<_ACEOF
24073/* end confdefs.h. */
24074$ac_includes_default
24075 typedef long ac__type_sizeof_;
24076int
24077main ()
24078{
24079static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
24080test_array @<:@0@:>@ = 0
24081
24082 ;
24083 return 0;
24084}
24085_ACEOF
24086rm -f conftest.$ac_objext
24087if { (ac_try="$ac_compile"
24088case "(($ac_try" in
24089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24090 *) ac_try_echo=$ac_try;;
24091esac
24092eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24093 (eval "$ac_compile") 2>conftest.er1
24094 ac_status=$?
24095 grep -v '^ *+' conftest.er1 >conftest.err
24096 rm -f conftest.er1
24097 cat conftest.err >&5
24098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24099 (exit $ac_status); } && {
24100 test -z "$ac_c_werror_flag" ||
24101 test ! -s conftest.err
24102 } && test -s conftest.$ac_objext; then
24103 ac_hi=$ac_mid
24104else
24105 echo "$as_me: failed program was:" >&5
24106sed 's/^/| /' conftest.$ac_ext >&5
24107
24108 ac_lo=`expr '(' $ac_mid ')' + 1`
24109fi
24110
24111rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24112done
24113case $ac_lo in
24114?*) ac_cv_sizeof_long=$ac_lo;;
24115'') if test "$ac_cv_type_long" = yes; then
24116 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
24117See \`config.log' for more details." >&5
24118echo "$as_me: error: cannot compute sizeof (long)
24119See \`config.log' for more details." >&2;}
24120 { (exit 77); exit 77; }; }
24121 else
24122 ac_cv_sizeof_long=0
24123 fi ;;
24124esac
24125else
24126 cat >conftest.$ac_ext <<_ACEOF
24127/* confdefs.h. */
24128_ACEOF
24129cat confdefs.h >>conftest.$ac_ext
24130cat >>conftest.$ac_ext <<_ACEOF
24131/* end confdefs.h. */
24132$ac_includes_default
24133 typedef long ac__type_sizeof_;
24134static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24135static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24136@%:@include <stdio.h>
24137@%:@include <stdlib.h>
24138int
24139main ()
24140{
24141
24142 FILE *f = fopen ("conftest.val", "w");
24143 if (! f)
24144 return 1;
24145 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24146 {
24147 long int i = longval ();
24148 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24149 return 1;
24150 fprintf (f, "%ld\n", i);
24151 }
24152 else
24153 {
24154 unsigned long int i = ulongval ();
24155 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24156 return 1;
24157 fprintf (f, "%lu\n", i);
24158 }
24159 return ferror (f) || fclose (f) != 0;
24160
24161 ;
24162 return 0;
24163}
24164_ACEOF
24165rm -f conftest$ac_exeext
24166if { (ac_try="$ac_link"
24167case "(($ac_try" in
24168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24169 *) ac_try_echo=$ac_try;;
24170esac
24171eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24172 (eval "$ac_link") 2>&5
24173 ac_status=$?
24174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24175 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24176 { (case "(($ac_try" in
24177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24178 *) ac_try_echo=$ac_try;;
24179esac
24180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24181 (eval "$ac_try") 2>&5
24182 ac_status=$?
24183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24184 (exit $ac_status); }; }; then
24185 ac_cv_sizeof_long=`cat conftest.val`
24186else
24187 echo "$as_me: program exited with status $ac_status" >&5
24188echo "$as_me: failed program was:" >&5
24189sed 's/^/| /' conftest.$ac_ext >&5
24190
24191( exit $ac_status )
24192if test "$ac_cv_type_long" = yes; then
24193 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
24194See \`config.log' for more details." >&5
24195echo "$as_me: error: cannot compute sizeof (long)
24196See \`config.log' for more details." >&2;}
24197 { (exit 77); exit 77; }; }
24198 else
24199 ac_cv_sizeof_long=0
24200 fi
24201fi
24202rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24203fi
24204rm -f conftest.val
24205fi
24206{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
24207echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
24208
24209
24210
24211cat >>confdefs.h <<_ACEOF
24212@%:@define SIZEOF_LONG $ac_cv_sizeof_long
24213_ACEOF
24214
24215
24216{ echo "$as_me:$LINENO: checking for float" >&5
24217echo $ECHO_N "checking for float... $ECHO_C" >&6; }
24218if test "${ac_cv_type_float+set}" = set; then
24219 echo $ECHO_N "(cached) $ECHO_C" >&6
24220else
24221 cat >conftest.$ac_ext <<_ACEOF
24222/* confdefs.h. */
24223_ACEOF
24224cat confdefs.h >>conftest.$ac_ext
24225cat >>conftest.$ac_ext <<_ACEOF
24226/* end confdefs.h. */
24227$ac_includes_default
24228typedef float ac__type_new_;
24229int
24230main ()
24231{
24232if ((ac__type_new_ *) 0)
24233 return 0;
24234if (sizeof (ac__type_new_))
24235 return 0;
24236 ;
24237 return 0;
24238}
24239_ACEOF
24240rm -f conftest.$ac_objext
24241if { (ac_try="$ac_compile"
24242case "(($ac_try" in
24243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24244 *) ac_try_echo=$ac_try;;
24245esac
24246eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24247 (eval "$ac_compile") 2>conftest.er1
24248 ac_status=$?
24249 grep -v '^ *+' conftest.er1 >conftest.err
24250 rm -f conftest.er1
24251 cat conftest.err >&5
24252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24253 (exit $ac_status); } && {
24254 test -z "$ac_c_werror_flag" ||
24255 test ! -s conftest.err
24256 } && test -s conftest.$ac_objext; then
24257 ac_cv_type_float=yes
24258else
24259 echo "$as_me: failed program was:" >&5
24260sed 's/^/| /' conftest.$ac_ext >&5
24261
24262 ac_cv_type_float=no
24263fi
24264
24265rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24266fi
24267{ echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
24268echo "${ECHO_T}$ac_cv_type_float" >&6; }
24269
24270# The cast to long int works around a bug in the HP C Compiler
24271# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24272# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24273# This bug is HP SR number 8606223364.
24274{ echo "$as_me:$LINENO: checking size of float" >&5
24275echo $ECHO_N "checking size of float... $ECHO_C" >&6; }
24276if test "${ac_cv_sizeof_float+set}" = set; then
24277 echo $ECHO_N "(cached) $ECHO_C" >&6
24278else
24279 if test "$cross_compiling" = yes; then
24280 # Depending upon the size, compute the lo and hi bounds.
24281cat >conftest.$ac_ext <<_ACEOF
24282/* confdefs.h. */
24283_ACEOF
24284cat confdefs.h >>conftest.$ac_ext
24285cat >>conftest.$ac_ext <<_ACEOF
24286/* end confdefs.h. */
24287$ac_includes_default
24288 typedef float ac__type_sizeof_;
24289int
24290main ()
24291{
24292static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
24293test_array @<:@0@:>@ = 0
24294
24295 ;
24296 return 0;
24297}
24298_ACEOF
24299rm -f conftest.$ac_objext
24300if { (ac_try="$ac_compile"
24301case "(($ac_try" in
24302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24303 *) ac_try_echo=$ac_try;;
24304esac
24305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24306 (eval "$ac_compile") 2>conftest.er1
24307 ac_status=$?
24308 grep -v '^ *+' conftest.er1 >conftest.err
24309 rm -f conftest.er1
24310 cat conftest.err >&5
24311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24312 (exit $ac_status); } && {
24313 test -z "$ac_c_werror_flag" ||
24314 test ! -s conftest.err
24315 } && test -s conftest.$ac_objext; then
24316 ac_lo=0 ac_mid=0
24317 while :; do
24318 cat >conftest.$ac_ext <<_ACEOF
24319/* confdefs.h. */
24320_ACEOF
24321cat confdefs.h >>conftest.$ac_ext
24322cat >>conftest.$ac_ext <<_ACEOF
24323/* end confdefs.h. */
24324$ac_includes_default
24325 typedef float ac__type_sizeof_;
24326int
24327main ()
24328{
24329static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
24330test_array @<:@0@:>@ = 0
24331
24332 ;
24333 return 0;
24334}
24335_ACEOF
24336rm -f conftest.$ac_objext
24337if { (ac_try="$ac_compile"
24338case "(($ac_try" in
24339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24340 *) ac_try_echo=$ac_try;;
24341esac
24342eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24343 (eval "$ac_compile") 2>conftest.er1
24344 ac_status=$?
24345 grep -v '^ *+' conftest.er1 >conftest.err
24346 rm -f conftest.er1
24347 cat conftest.err >&5
24348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24349 (exit $ac_status); } && {
24350 test -z "$ac_c_werror_flag" ||
24351 test ! -s conftest.err
24352 } && test -s conftest.$ac_objext; then
24353 ac_hi=$ac_mid; break
24354else
24355 echo "$as_me: failed program was:" >&5
24356sed 's/^/| /' conftest.$ac_ext >&5
24357
24358 ac_lo=`expr $ac_mid + 1`
24359 if test $ac_lo -le $ac_mid; then
24360 ac_lo= ac_hi=
24361 break
24362 fi
24363 ac_mid=`expr 2 '*' $ac_mid + 1`
24364fi
24365
24366rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24367 done
24368else
24369 echo "$as_me: failed program was:" >&5
24370sed 's/^/| /' conftest.$ac_ext >&5
24371
24372 cat >conftest.$ac_ext <<_ACEOF
24373/* confdefs.h. */
24374_ACEOF
24375cat confdefs.h >>conftest.$ac_ext
24376cat >>conftest.$ac_ext <<_ACEOF
24377/* end confdefs.h. */
24378$ac_includes_default
24379 typedef float ac__type_sizeof_;
24380int
24381main ()
24382{
24383static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
24384test_array @<:@0@:>@ = 0
24385
24386 ;
24387 return 0;
24388}
24389_ACEOF
24390rm -f conftest.$ac_objext
24391if { (ac_try="$ac_compile"
24392case "(($ac_try" in
24393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24394 *) ac_try_echo=$ac_try;;
24395esac
24396eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24397 (eval "$ac_compile") 2>conftest.er1
24398 ac_status=$?
24399 grep -v '^ *+' conftest.er1 >conftest.err
24400 rm -f conftest.er1
24401 cat conftest.err >&5
24402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24403 (exit $ac_status); } && {
24404 test -z "$ac_c_werror_flag" ||
24405 test ! -s conftest.err
24406 } && test -s conftest.$ac_objext; then
24407 ac_hi=-1 ac_mid=-1
24408 while :; do
24409 cat >conftest.$ac_ext <<_ACEOF
24410/* confdefs.h. */
24411_ACEOF
24412cat confdefs.h >>conftest.$ac_ext
24413cat >>conftest.$ac_ext <<_ACEOF
24414/* end confdefs.h. */
24415$ac_includes_default
24416 typedef float ac__type_sizeof_;
24417int
24418main ()
24419{
24420static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
24421test_array @<:@0@:>@ = 0
24422
24423 ;
24424 return 0;
24425}
24426_ACEOF
24427rm -f conftest.$ac_objext
24428if { (ac_try="$ac_compile"
24429case "(($ac_try" in
24430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24431 *) ac_try_echo=$ac_try;;
24432esac
24433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24434 (eval "$ac_compile") 2>conftest.er1
24435 ac_status=$?
24436 grep -v '^ *+' conftest.er1 >conftest.err
24437 rm -f conftest.er1
24438 cat conftest.err >&5
24439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24440 (exit $ac_status); } && {
24441 test -z "$ac_c_werror_flag" ||
24442 test ! -s conftest.err
24443 } && test -s conftest.$ac_objext; then
24444 ac_lo=$ac_mid; break
24445else
24446 echo "$as_me: failed program was:" >&5
24447sed 's/^/| /' conftest.$ac_ext >&5
24448
24449 ac_hi=`expr '(' $ac_mid ')' - 1`
24450 if test $ac_mid -le $ac_hi; then
24451 ac_lo= ac_hi=
24452 break
24453 fi
24454 ac_mid=`expr 2 '*' $ac_mid`
24455fi
24456
24457rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24458 done
24459else
24460 echo "$as_me: failed program was:" >&5
24461sed 's/^/| /' conftest.$ac_ext >&5
24462
24463 ac_lo= ac_hi=
24464fi
24465
24466rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24467fi
24468
24469rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24470# Binary search between lo and hi bounds.
24471while test "x$ac_lo" != "x$ac_hi"; do
24472 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24473 cat >conftest.$ac_ext <<_ACEOF
24474/* confdefs.h. */
24475_ACEOF
24476cat confdefs.h >>conftest.$ac_ext
24477cat >>conftest.$ac_ext <<_ACEOF
24478/* end confdefs.h. */
24479$ac_includes_default
24480 typedef float ac__type_sizeof_;
24481int
24482main ()
24483{
24484static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
24485test_array @<:@0@:>@ = 0
24486
24487 ;
24488 return 0;
24489}
24490_ACEOF
24491rm -f conftest.$ac_objext
24492if { (ac_try="$ac_compile"
24493case "(($ac_try" in
24494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24495 *) ac_try_echo=$ac_try;;
24496esac
24497eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24498 (eval "$ac_compile") 2>conftest.er1
24499 ac_status=$?
24500 grep -v '^ *+' conftest.er1 >conftest.err
24501 rm -f conftest.er1
24502 cat conftest.err >&5
24503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24504 (exit $ac_status); } && {
24505 test -z "$ac_c_werror_flag" ||
24506 test ! -s conftest.err
24507 } && test -s conftest.$ac_objext; then
24508 ac_hi=$ac_mid
24509else
24510 echo "$as_me: failed program was:" >&5
24511sed 's/^/| /' conftest.$ac_ext >&5
24512
24513 ac_lo=`expr '(' $ac_mid ')' + 1`
24514fi
24515
24516rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24517done
24518case $ac_lo in
24519?*) ac_cv_sizeof_float=$ac_lo;;
24520'') if test "$ac_cv_type_float" = yes; then
24521 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float)
24522See \`config.log' for more details." >&5
24523echo "$as_me: error: cannot compute sizeof (float)
24524See \`config.log' for more details." >&2;}
24525 { (exit 77); exit 77; }; }
24526 else
24527 ac_cv_sizeof_float=0
24528 fi ;;
24529esac
24530else
24531 cat >conftest.$ac_ext <<_ACEOF
24532/* confdefs.h. */
24533_ACEOF
24534cat confdefs.h >>conftest.$ac_ext
24535cat >>conftest.$ac_ext <<_ACEOF
24536/* end confdefs.h. */
24537$ac_includes_default
24538 typedef float ac__type_sizeof_;
24539static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24540static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24541@%:@include <stdio.h>
24542@%:@include <stdlib.h>
24543int
24544main ()
24545{
24546
24547 FILE *f = fopen ("conftest.val", "w");
24548 if (! f)
24549 return 1;
24550 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24551 {
24552 long int i = longval ();
24553 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24554 return 1;
24555 fprintf (f, "%ld\n", i);
24556 }
24557 else
24558 {
24559 unsigned long int i = ulongval ();
24560 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24561 return 1;
24562 fprintf (f, "%lu\n", i);
24563 }
24564 return ferror (f) || fclose (f) != 0;
24565
24566 ;
24567 return 0;
24568}
24569_ACEOF
24570rm -f conftest$ac_exeext
24571if { (ac_try="$ac_link"
24572case "(($ac_try" in
24573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24574 *) ac_try_echo=$ac_try;;
24575esac
24576eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24577 (eval "$ac_link") 2>&5
24578 ac_status=$?
24579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24580 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24581 { (case "(($ac_try" in
24582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24583 *) ac_try_echo=$ac_try;;
24584esac
24585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24586 (eval "$ac_try") 2>&5
24587 ac_status=$?
24588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24589 (exit $ac_status); }; }; then
24590 ac_cv_sizeof_float=`cat conftest.val`
24591else
24592 echo "$as_me: program exited with status $ac_status" >&5
24593echo "$as_me: failed program was:" >&5
24594sed 's/^/| /' conftest.$ac_ext >&5
24595
24596( exit $ac_status )
24597if test "$ac_cv_type_float" = yes; then
24598 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float)
24599See \`config.log' for more details." >&5
24600echo "$as_me: error: cannot compute sizeof (float)
24601See \`config.log' for more details." >&2;}
24602 { (exit 77); exit 77; }; }
24603 else
24604 ac_cv_sizeof_float=0
24605 fi
24606fi
24607rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24608fi
24609rm -f conftest.val
24610fi
24611{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
24612echo "${ECHO_T}$ac_cv_sizeof_float" >&6; }
24613
24614
24615
24616cat >>confdefs.h <<_ACEOF
24617@%:@define SIZEOF_FLOAT $ac_cv_sizeof_float
24618_ACEOF
24619
24620
24621{ echo "$as_me:$LINENO: checking for double" >&5
24622echo $ECHO_N "checking for double... $ECHO_C" >&6; }
24623if test "${ac_cv_type_double+set}" = set; then
24624 echo $ECHO_N "(cached) $ECHO_C" >&6
24625else
24626 cat >conftest.$ac_ext <<_ACEOF
24627/* confdefs.h. */
24628_ACEOF
24629cat confdefs.h >>conftest.$ac_ext
24630cat >>conftest.$ac_ext <<_ACEOF
24631/* end confdefs.h. */
24632$ac_includes_default
24633typedef double ac__type_new_;
24634int
24635main ()
24636{
24637if ((ac__type_new_ *) 0)
24638 return 0;
24639if (sizeof (ac__type_new_))
24640 return 0;
24641 ;
24642 return 0;
24643}
24644_ACEOF
24645rm -f conftest.$ac_objext
24646if { (ac_try="$ac_compile"
24647case "(($ac_try" in
24648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24649 *) ac_try_echo=$ac_try;;
24650esac
24651eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24652 (eval "$ac_compile") 2>conftest.er1
24653 ac_status=$?
24654 grep -v '^ *+' conftest.er1 >conftest.err
24655 rm -f conftest.er1
24656 cat conftest.err >&5
24657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24658 (exit $ac_status); } && {
24659 test -z "$ac_c_werror_flag" ||
24660 test ! -s conftest.err
24661 } && test -s conftest.$ac_objext; then
24662 ac_cv_type_double=yes
24663else
24664 echo "$as_me: failed program was:" >&5
24665sed 's/^/| /' conftest.$ac_ext >&5
24666
24667 ac_cv_type_double=no
24668fi
24669
24670rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24671fi
24672{ echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
24673echo "${ECHO_T}$ac_cv_type_double" >&6; }
24674
24675# The cast to long int works around a bug in the HP C Compiler
24676# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24677# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24678# This bug is HP SR number 8606223364.
24679{ echo "$as_me:$LINENO: checking size of double" >&5
24680echo $ECHO_N "checking size of double... $ECHO_C" >&6; }
24681if test "${ac_cv_sizeof_double+set}" = set; then
24682 echo $ECHO_N "(cached) $ECHO_C" >&6
24683else
24684 if test "$cross_compiling" = yes; then
24685 # Depending upon the size, compute the lo and hi bounds.
24686cat >conftest.$ac_ext <<_ACEOF
24687/* confdefs.h. */
24688_ACEOF
24689cat confdefs.h >>conftest.$ac_ext
24690cat >>conftest.$ac_ext <<_ACEOF
24691/* end confdefs.h. */
24692$ac_includes_default
24693 typedef double ac__type_sizeof_;
24694int
24695main ()
24696{
24697static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
24698test_array @<:@0@:>@ = 0
24699
24700 ;
24701 return 0;
24702}
24703_ACEOF
24704rm -f conftest.$ac_objext
24705if { (ac_try="$ac_compile"
24706case "(($ac_try" in
24707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24708 *) ac_try_echo=$ac_try;;
24709esac
24710eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24711 (eval "$ac_compile") 2>conftest.er1
24712 ac_status=$?
24713 grep -v '^ *+' conftest.er1 >conftest.err
24714 rm -f conftest.er1
24715 cat conftest.err >&5
24716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24717 (exit $ac_status); } && {
24718 test -z "$ac_c_werror_flag" ||
24719 test ! -s conftest.err
24720 } && test -s conftest.$ac_objext; then
24721 ac_lo=0 ac_mid=0
24722 while :; do
24723 cat >conftest.$ac_ext <<_ACEOF
24724/* confdefs.h. */
24725_ACEOF
24726cat confdefs.h >>conftest.$ac_ext
24727cat >>conftest.$ac_ext <<_ACEOF
24728/* end confdefs.h. */
24729$ac_includes_default
24730 typedef double ac__type_sizeof_;
24731int
24732main ()
24733{
24734static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
24735test_array @<:@0@:>@ = 0
24736
24737 ;
24738 return 0;
24739}
24740_ACEOF
24741rm -f conftest.$ac_objext
24742if { (ac_try="$ac_compile"
24743case "(($ac_try" in
24744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24745 *) ac_try_echo=$ac_try;;
24746esac
24747eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24748 (eval "$ac_compile") 2>conftest.er1
24749 ac_status=$?
24750 grep -v '^ *+' conftest.er1 >conftest.err
24751 rm -f conftest.er1
24752 cat conftest.err >&5
24753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24754 (exit $ac_status); } && {
24755 test -z "$ac_c_werror_flag" ||
24756 test ! -s conftest.err
24757 } && test -s conftest.$ac_objext; then
24758 ac_hi=$ac_mid; break
24759else
24760 echo "$as_me: failed program was:" >&5
24761sed 's/^/| /' conftest.$ac_ext >&5
24762
24763 ac_lo=`expr $ac_mid + 1`
24764 if test $ac_lo -le $ac_mid; then
24765 ac_lo= ac_hi=
24766 break
24767 fi
24768 ac_mid=`expr 2 '*' $ac_mid + 1`
24769fi
24770
24771rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24772 done
24773else
24774 echo "$as_me: failed program was:" >&5
24775sed 's/^/| /' conftest.$ac_ext >&5
24776
24777 cat >conftest.$ac_ext <<_ACEOF
24778/* confdefs.h. */
24779_ACEOF
24780cat confdefs.h >>conftest.$ac_ext
24781cat >>conftest.$ac_ext <<_ACEOF
24782/* end confdefs.h. */
24783$ac_includes_default
24784 typedef double ac__type_sizeof_;
24785int
24786main ()
24787{
24788static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
24789test_array @<:@0@:>@ = 0
24790
24791 ;
24792 return 0;
24793}
24794_ACEOF
24795rm -f conftest.$ac_objext
24796if { (ac_try="$ac_compile"
24797case "(($ac_try" in
24798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24799 *) ac_try_echo=$ac_try;;
24800esac
24801eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24802 (eval "$ac_compile") 2>conftest.er1
24803 ac_status=$?
24804 grep -v '^ *+' conftest.er1 >conftest.err
24805 rm -f conftest.er1
24806 cat conftest.err >&5
24807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24808 (exit $ac_status); } && {
24809 test -z "$ac_c_werror_flag" ||
24810 test ! -s conftest.err
24811 } && test -s conftest.$ac_objext; then
24812 ac_hi=-1 ac_mid=-1
24813 while :; do
24814 cat >conftest.$ac_ext <<_ACEOF
24815/* confdefs.h. */
24816_ACEOF
24817cat confdefs.h >>conftest.$ac_ext
24818cat >>conftest.$ac_ext <<_ACEOF
24819/* end confdefs.h. */
24820$ac_includes_default
24821 typedef double ac__type_sizeof_;
24822int
24823main ()
24824{
24825static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
24826test_array @<:@0@:>@ = 0
24827
24828 ;
24829 return 0;
24830}
24831_ACEOF
24832rm -f conftest.$ac_objext
24833if { (ac_try="$ac_compile"
24834case "(($ac_try" in
24835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24836 *) ac_try_echo=$ac_try;;
24837esac
24838eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24839 (eval "$ac_compile") 2>conftest.er1
24840 ac_status=$?
24841 grep -v '^ *+' conftest.er1 >conftest.err
24842 rm -f conftest.er1
24843 cat conftest.err >&5
24844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24845 (exit $ac_status); } && {
24846 test -z "$ac_c_werror_flag" ||
24847 test ! -s conftest.err
24848 } && test -s conftest.$ac_objext; then
24849 ac_lo=$ac_mid; break
24850else
24851 echo "$as_me: failed program was:" >&5
24852sed 's/^/| /' conftest.$ac_ext >&5
24853
24854 ac_hi=`expr '(' $ac_mid ')' - 1`
24855 if test $ac_mid -le $ac_hi; then
24856 ac_lo= ac_hi=
24857 break
24858 fi
24859 ac_mid=`expr 2 '*' $ac_mid`
24860fi
24861
24862rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24863 done
24864else
24865 echo "$as_me: failed program was:" >&5
24866sed 's/^/| /' conftest.$ac_ext >&5
24867
24868 ac_lo= ac_hi=
24869fi
24870
24871rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24872fi
24873
24874rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24875# Binary search between lo and hi bounds.
24876while test "x$ac_lo" != "x$ac_hi"; do
24877 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24878 cat >conftest.$ac_ext <<_ACEOF
24879/* confdefs.h. */
24880_ACEOF
24881cat confdefs.h >>conftest.$ac_ext
24882cat >>conftest.$ac_ext <<_ACEOF
24883/* end confdefs.h. */
24884$ac_includes_default
24885 typedef double ac__type_sizeof_;
24886int
24887main ()
24888{
24889static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
24890test_array @<:@0@:>@ = 0
24891
24892 ;
24893 return 0;
24894}
24895_ACEOF
24896rm -f conftest.$ac_objext
24897if { (ac_try="$ac_compile"
24898case "(($ac_try" in
24899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24900 *) ac_try_echo=$ac_try;;
24901esac
24902eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24903 (eval "$ac_compile") 2>conftest.er1
24904 ac_status=$?
24905 grep -v '^ *+' conftest.er1 >conftest.err
24906 rm -f conftest.er1
24907 cat conftest.err >&5
24908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24909 (exit $ac_status); } && {
24910 test -z "$ac_c_werror_flag" ||
24911 test ! -s conftest.err
24912 } && test -s conftest.$ac_objext; then
24913 ac_hi=$ac_mid
24914else
24915 echo "$as_me: failed program was:" >&5
24916sed 's/^/| /' conftest.$ac_ext >&5
24917
24918 ac_lo=`expr '(' $ac_mid ')' + 1`
24919fi
24920
24921rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24922done
24923case $ac_lo in
24924?*) ac_cv_sizeof_double=$ac_lo;;
24925'') if test "$ac_cv_type_double" = yes; then
24926 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double)
24927See \`config.log' for more details." >&5
24928echo "$as_me: error: cannot compute sizeof (double)
24929See \`config.log' for more details." >&2;}
24930 { (exit 77); exit 77; }; }
24931 else
24932 ac_cv_sizeof_double=0
24933 fi ;;
24934esac
24935else
24936 cat >conftest.$ac_ext <<_ACEOF
24937/* confdefs.h. */
24938_ACEOF
24939cat confdefs.h >>conftest.$ac_ext
24940cat >>conftest.$ac_ext <<_ACEOF
24941/* end confdefs.h. */
24942$ac_includes_default
24943 typedef double ac__type_sizeof_;
24944static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24945static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24946@%:@include <stdio.h>
24947@%:@include <stdlib.h>
24948int
24949main ()
24950{
24951
24952 FILE *f = fopen ("conftest.val", "w");
24953 if (! f)
24954 return 1;
24955 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24956 {
24957 long int i = longval ();
24958 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24959 return 1;
24960 fprintf (f, "%ld\n", i);
24961 }
24962 else
24963 {
24964 unsigned long int i = ulongval ();
24965 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24966 return 1;
24967 fprintf (f, "%lu\n", i);
24968 }
24969 return ferror (f) || fclose (f) != 0;
24970
24971 ;
24972 return 0;
24973}
24974_ACEOF
24975rm -f conftest$ac_exeext
24976if { (ac_try="$ac_link"
24977case "(($ac_try" in
24978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24979 *) ac_try_echo=$ac_try;;
24980esac
24981eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24982 (eval "$ac_link") 2>&5
24983 ac_status=$?
24984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24985 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24986 { (case "(($ac_try" in
24987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24988 *) ac_try_echo=$ac_try;;
24989esac
24990eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24991 (eval "$ac_try") 2>&5
24992 ac_status=$?
24993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24994 (exit $ac_status); }; }; then
24995 ac_cv_sizeof_double=`cat conftest.val`
24996else
24997 echo "$as_me: program exited with status $ac_status" >&5
24998echo "$as_me: failed program was:" >&5
24999sed 's/^/| /' conftest.$ac_ext >&5
25000
25001( exit $ac_status )
25002if test "$ac_cv_type_double" = yes; then
25003 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double)
25004See \`config.log' for more details." >&5
25005echo "$as_me: error: cannot compute sizeof (double)
25006See \`config.log' for more details." >&2;}
25007 { (exit 77); exit 77; }; }
25008 else
25009 ac_cv_sizeof_double=0
25010 fi
25011fi
25012rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25013fi
25014rm -f conftest.val
25015fi
25016{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
25017echo "${ECHO_T}$ac_cv_sizeof_double" >&6; }
25018
25019
25020
25021cat >>confdefs.h <<_ACEOF
25022@%:@define SIZEOF_DOUBLE $ac_cv_sizeof_double
25023_ACEOF
25024
25025
25026
25027{ echo "$as_me:$LINENO: checking for pid_t" >&5
25028echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
25029if test "${ac_cv_type_pid_t+set}" = set; then
25030 echo $ECHO_N "(cached) $ECHO_C" >&6
25031else
25032 cat >conftest.$ac_ext <<_ACEOF
25033/* confdefs.h. */
25034_ACEOF
25035cat confdefs.h >>conftest.$ac_ext
25036cat >>conftest.$ac_ext <<_ACEOF
25037/* end confdefs.h. */
25038$ac_includes_default
25039typedef pid_t ac__type_new_;
25040int
25041main ()
25042{
25043if ((ac__type_new_ *) 0)
25044 return 0;
25045if (sizeof (ac__type_new_))
25046 return 0;
25047 ;
25048 return 0;
25049}
25050_ACEOF
25051rm -f conftest.$ac_objext
25052if { (ac_try="$ac_compile"
25053case "(($ac_try" in
25054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25055 *) ac_try_echo=$ac_try;;
25056esac
25057eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25058 (eval "$ac_compile") 2>conftest.er1
25059 ac_status=$?
25060 grep -v '^ *+' conftest.er1 >conftest.err
25061 rm -f conftest.er1
25062 cat conftest.err >&5
25063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25064 (exit $ac_status); } && {
25065 test -z "$ac_c_werror_flag" ||
25066 test ! -s conftest.err
25067 } && test -s conftest.$ac_objext; then
25068 ac_cv_type_pid_t=yes
25069else
25070 echo "$as_me: failed program was:" >&5
25071sed 's/^/| /' conftest.$ac_ext >&5
25072
25073 ac_cv_type_pid_t=no
25074fi
25075
25076rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25077fi
25078{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
25079echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
25080if test $ac_cv_type_pid_t = yes; then
25081 :
25082else
25083
25084cat >>confdefs.h <<_ACEOF
25085@%:@define pid_t int
25086_ACEOF
25087
25088fi
25089
25090{ echo "$as_me:$LINENO: checking for size_t" >&5
25091echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
25092if test "${ac_cv_type_size_t+set}" = set; then
25093 echo $ECHO_N "(cached) $ECHO_C" >&6
25094else
25095 cat >conftest.$ac_ext <<_ACEOF
25096/* confdefs.h. */
25097_ACEOF
25098cat confdefs.h >>conftest.$ac_ext
25099cat >>conftest.$ac_ext <<_ACEOF
25100/* end confdefs.h. */
25101$ac_includes_default
25102typedef size_t ac__type_new_;
25103int
25104main ()
25105{
25106if ((ac__type_new_ *) 0)
25107 return 0;
25108if (sizeof (ac__type_new_))
25109 return 0;
25110 ;
25111 return 0;
25112}
25113_ACEOF
25114rm -f conftest.$ac_objext
25115if { (ac_try="$ac_compile"
25116case "(($ac_try" in
25117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25118 *) ac_try_echo=$ac_try;;
25119esac
25120eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25121 (eval "$ac_compile") 2>conftest.er1
25122 ac_status=$?
25123 grep -v '^ *+' conftest.er1 >conftest.err
25124 rm -f conftest.er1
25125 cat conftest.err >&5
25126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25127 (exit $ac_status); } && {
25128 test -z "$ac_c_werror_flag" ||
25129 test ! -s conftest.err
25130 } && test -s conftest.$ac_objext; then
25131 ac_cv_type_size_t=yes
25132else
25133 echo "$as_me: failed program was:" >&5
25134sed 's/^/| /' conftest.$ac_ext >&5
25135
25136 ac_cv_type_size_t=no
25137fi
25138
25139rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25140fi
25141{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
25142echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
25143if test $ac_cv_type_size_t = yes; then
25144 :
25145else
25146
25147cat >>confdefs.h <<_ACEOF
25148@%:@define size_t unsigned int
25149_ACEOF
25150
25151fi
25152
25153
25154
25155
25156
25157
25158
25159
25160
25161
25162
25163
25164
25165
25166
25167
25168
25169
25170
25171
25172
25173
25174
25175
25176
25177
25178for ac_func in alarm bzero endgrent endpwent getcwd gethostbyname inet_ntoa isascii localtime_r memmove memset mkdir regcomp select socket strcasecmp strchr strcspn strdup strerror strncasecmp strrchr strspn strstr
25179do
25180as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25181{ echo "$as_me:$LINENO: checking for $ac_func" >&5
25182echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25183if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25184 echo $ECHO_N "(cached) $ECHO_C" >&6
25185else
25186 cat >conftest.$ac_ext <<_ACEOF
25187/* confdefs.h. */
25188_ACEOF
25189cat confdefs.h >>conftest.$ac_ext
25190cat >>conftest.$ac_ext <<_ACEOF
25191/* end confdefs.h. */
25192/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25193 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25194#define $ac_func innocuous_$ac_func
25195
25196/* System header to define __stub macros and hopefully few prototypes,
25197 which can conflict with char $ac_func (); below.
25198 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25199 <limits.h> exists even on freestanding compilers. */
25200
25201#ifdef __STDC__
25202# include <limits.h>
25203#else
25204# include <assert.h>
25205#endif
25206
25207#undef $ac_func
25208
25209/* Override any GCC internal prototype to avoid an error.
25210 Use char because int might match the return type of a GCC
25211 builtin and then its argument prototype would still apply. */
25212#ifdef __cplusplus
25213extern "C"
25214#endif
25215char $ac_func ();
25216/* The GNU C library defines this for functions which it implements
25217 to always fail with ENOSYS. Some functions are actually named
25218 something starting with __ and the normal name is an alias. */
25219#if defined __stub_$ac_func || defined __stub___$ac_func
25220choke me
25221#endif
25222
25223int
25224main ()
25225{
25226return $ac_func ();
25227 ;
25228 return 0;
25229}
25230_ACEOF
25231rm -f conftest.$ac_objext conftest$ac_exeext
25232if { (ac_try="$ac_link"
25233case "(($ac_try" in
25234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25235 *) ac_try_echo=$ac_try;;
25236esac
25237eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25238 (eval "$ac_link") 2>conftest.er1
25239 ac_status=$?
25240 grep -v '^ *+' conftest.er1 >conftest.err
25241 rm -f conftest.er1
25242 cat conftest.err >&5
25243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25244 (exit $ac_status); } && {
25245 test -z "$ac_c_werror_flag" ||
25246 test ! -s conftest.err
25247 } && test -s conftest$ac_exeext &&
25248 $as_test_x conftest$ac_exeext; then
25249 eval "$as_ac_var=yes"
25250else
25251 echo "$as_me: failed program was:" >&5
25252sed 's/^/| /' conftest.$ac_ext >&5
25253
25254 eval "$as_ac_var=no"
25255fi
25256
25257rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25258 conftest$ac_exeext conftest.$ac_ext
25259fi
25260ac_res=`eval echo '${'$as_ac_var'}'`
25261 { echo "$as_me:$LINENO: result: $ac_res" >&5
25262echo "${ECHO_T}$ac_res" >&6; }
25263if test `eval echo '${'$as_ac_var'}'` = yes; then
25264 cat >>confdefs.h <<_ACEOF
25265@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25266_ACEOF
25267
25268fi
25269done
25270
25271
25272ac_config_files="$ac_config_files Makefile libpool/src/Makefile libxmlet/src/Makefile libcwmp/src/Makefile cwmpd/src/Makefile tests/src/Makefile"
25273
25274
25275
25276
25277#save user-provided flags
25278save_CXXFLAGS="$CXXFLAGS"
25279save_CFLAGS="$CFLAGS"
25280save_LDFALGS="$LDFLAGS"
25281save_CPPFLAGS="$CPPFLAGS"
25282
25283#restore user-provided flags
25284CXXFLAGS="$save_CXXFLAGS"
25285CFLAGS="$save_CFLAGS"
25286#Note that sysconfdir is expaned in Makefile other than here, check generated configure script, u can see
25287#sysconfdir is surrounded by single quotas to prevent expansion.
25288CPPFLAGS="-D_GNU_SOURCE $save_CPPFLAGS"
25289
25290LDFLAGS="$save_LDFALGS"
25291
25292#CPPFLAGS="$CPPFLAGS -DUSE_CWMP_OPENSSL"
25293OPENSSL_DIR=no
25294
25295
25296# Check whether --with-openssl was given.
25297if test "${with_openssl+set}" = set; then
25298 withval=$with_openssl; OPENSSL_DIR=$withval
25299else
25300 OPENSSL_DIR=no
25301fi
25302
25303
25304if test x"$OPENSSL_DIR" != "xno"; then
25305 CPPFLAGS="$CPPFLAGS -DUSE_CWMP_OPENSSL -I$OPENSSL_DIR/include"
25306 LDFLAGS="$LDFLAGS -L$OPENSSL_DIR/lib -lssl"
25307fi
25308
25309
25310#LIBS will be appended to gcc command, so it must be cleared to prevent unnecessary linking
25311#LIBS=""
25312
25313
25314
25315
25316#AC_CANONICAL_BUILD
25317#AC_CANONICAL_HOST
25318
25319
25320
25321if test "x$build_cpu" != "x"; then
25322 BUILD_CPU="$build_cpu"
25323
25324 cat >>confdefs.h <<_ACEOF
25325@%:@define BUILD_CPU $build_cpu
25326_ACEOF
25327
25328fi
25329
25330
25331if test "x$build_vendor" != "x"; then
25332 BUILD_VENDOR="$build_vendor"
25333
25334 cat >>confdefs.h <<_ACEOF
25335@%:@define BUILD_VENDOR $build_vendor
25336_ACEOF
25337
25338fi
25339
25340
25341if test "x$build_os" != "x"; then
25342 BUILD_OS="$build_os"
25343
25344 cat >>confdefs.h <<_ACEOF
25345@%:@define BUILD_OS $build_os
25346_ACEOF
25347
25348fi
25349
25350
25351
25352if test "x$host_cpu" != "x"; then
25353 HOST_CPU="$host_cpu"
25354
25355 cat >>confdefs.h <<_ACEOF
25356@%:@define HOST_CPU $host_cpu
25357_ACEOF
25358
25359fi
25360
25361
25362if test "x$host_vendor" != "x"; then
25363 HOST_VENDOR="$host_vendor"
25364
25365 cat >>confdefs.h <<_ACEOF
25366@%:@define HOST_VENDOR $host_vendor
25367_ACEOF
25368
25369fi
25370
25371
25372if test "x$host_os" != "x"; then
25373 HOST_OS="$host_os"
25374
25375 cat >>confdefs.h <<_ACEOF
25376@%:@define HOST_OS $host_os
25377_ACEOF
25378
25379fi
25380
25381 if test "$target" = "mips64-octeon-linux-gnu" ; then
25382 COMPILE_FOR_MIPS_TRUE=
25383 COMPILE_FOR_MIPS_FALSE='#'
25384else
25385 COMPILE_FOR_MIPS_TRUE='#'
25386 COMPILE_FOR_MIPS_FALSE=
25387fi
25388
25389cat >confcache <<\_ACEOF
25390# This file is a shell script that caches the results of configure
25391# tests run on this system so they can be shared between configure
25392# scripts and configure runs, see configure's option --config-cache.
25393# It is not useful on other systems. If it contains results you don't
25394# want to keep, you may remove or edit it.
25395#
25396# config.status only pays attention to the cache file if you give it
25397# the --recheck option to rerun configure.
25398#
25399# `ac_cv_env_foo' variables (set or unset) will be overridden when
25400# loading this file, other *unset* `ac_cv_foo' will be assigned the
25401# following values.
25402
25403_ACEOF
25404
25405# The following way of writing the cache mishandles newlines in values,
25406# but we know of no workaround that is simple, portable, and efficient.
25407# So, we kill variables containing newlines.
25408# Ultrix sh set writes to stderr and can't be redirected directly,
25409# and sets the high bit in the cache file unless we assign to the vars.
25410(
25411 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25412 eval ac_val=\$$ac_var
25413 case $ac_val in #(
25414 *${as_nl}*)
25415 case $ac_var in #(
25416 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
25417echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
25418 esac
25419 case $ac_var in #(
25420 _ | IFS | as_nl) ;; #(
25421 *) $as_unset $ac_var ;;
25422 esac ;;
25423 esac
25424 done
25425
25426 (set) 2>&1 |
25427 case $as_nl`(ac_space=' '; set) 2>&1` in #(
25428 *${as_nl}ac_space=\ *)
25429 # `set' does not quote correctly, so add quotes (double-quote
25430 # substitution turns \\\\ into \\, and sed turns \\ into \).
25431 sed -n \
25432 "s/'/'\\\\''/g;
25433 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25434 ;; #(
25435 *)
25436 # `set' quotes correctly as required by POSIX, so do not add quotes.
25437 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25438 ;;
25439 esac |
25440 sort
25441) |
25442 sed '
25443 /^ac_cv_env_/b end
25444 t clear
25445 :clear
25446 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25447 t end
25448 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25449 :end' >>confcache
25450if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25451 if test -w "$cache_file"; then
25452 test "x$cache_file" != "x/dev/null" &&
25453 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
25454echo "$as_me: updating cache $cache_file" >&6;}
25455 cat confcache >$cache_file
25456 else
25457 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
25458echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25459 fi
25460fi
25461rm -f confcache
25462
25463test "x$prefix" = xNONE && prefix=$ac_default_prefix
25464# Let make expand exec_prefix.
25465test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25466
25467DEFS=-DHAVE_CONFIG_H
25468
25469ac_libobjs=
25470ac_ltlibobjs=
25471for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
25472 # 1. Remove the extension, and $U if already installed.
25473 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25474 ac_i=`echo "$ac_i" | sed "$ac_script"`
25475 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
25476 # will be set to the directory where LIBOBJS objects are built.
25477 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25478 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
25479done
25480LIB@&t@OBJS=$ac_libobjs
25481
25482LTLIBOBJS=$ac_ltlibobjs
25483
25484
25485if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
25486 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
25487Usually this means the macro was only invoked conditionally." >&5
25488echo "$as_me: error: conditional \"AMDEP\" was never defined.
25489Usually this means the macro was only invoked conditionally." >&2;}
25490 { (exit 1); exit 1; }; }
25491fi
25492if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
25493 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
25494Usually this means the macro was only invoked conditionally." >&5
25495echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
25496Usually this means the macro was only invoked conditionally." >&2;}
25497 { (exit 1); exit 1; }; }
25498fi
25499if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
25500 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
25501Usually this means the macro was only invoked conditionally." >&5
25502echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
25503Usually this means the macro was only invoked conditionally." >&2;}
25504 { (exit 1); exit 1; }; }
25505fi
25506if test -z "${COMPILE_FOR_MIPS_TRUE}" && test -z "${COMPILE_FOR_MIPS_FALSE}"; then
25507 { { echo "$as_me:$LINENO: error: conditional \"COMPILE_FOR_MIPS\" was never defined.
25508Usually this means the macro was only invoked conditionally." >&5
25509echo "$as_me: error: conditional \"COMPILE_FOR_MIPS\" was never defined.
25510Usually this means the macro was only invoked conditionally." >&2;}
25511 { (exit 1); exit 1; }; }
25512fi
25513
25514: ${CONFIG_STATUS=./config.status}
25515ac_clean_files_save=$ac_clean_files
25516ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25517{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25518echo "$as_me: creating $CONFIG_STATUS" >&6;}
25519cat >$CONFIG_STATUS <<_ACEOF
25520#! $SHELL
25521# Generated by $as_me.
25522# Run this file to recreate the current configuration.
25523# Compiler output produced by configure, useful for debugging
25524# configure, is in config.log if it exists.
25525
25526debug=false
25527ac_cs_recheck=false
25528ac_cs_silent=false
25529SHELL=\${CONFIG_SHELL-$SHELL}
25530_ACEOF
25531
25532cat >>$CONFIG_STATUS <<\_ACEOF
25533## --------------------- ##
25534## M4sh Initialization. ##
25535## --------------------- ##
25536
25537# Be more Bourne compatible
25538DUALCASE=1; export DUALCASE # for MKS sh
25539if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25540 emulate sh
25541 NULLCMD=:
25542 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25543 # is contrary to our usage. Disable this feature.
25544 alias -g '${1+"$@"}'='"$@"'
25545 setopt NO_GLOB_SUBST
25546else
25547 case `(set -o) 2>/dev/null` in
25548 *posix*) set -o posix ;;
25549esac
25550
25551fi
25552
25553
25554
25555
25556# PATH needs CR
25557# Avoid depending upon Character Ranges.
25558as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25559as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25560as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25561as_cr_digits='0123456789'
25562as_cr_alnum=$as_cr_Letters$as_cr_digits
25563
25564# The user is always right.
25565if test "${PATH_SEPARATOR+set}" != set; then
25566 echo "#! /bin/sh" >conf$$.sh
25567 echo "exit 0" >>conf$$.sh
25568 chmod +x conf$$.sh
25569 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
25570 PATH_SEPARATOR=';'
25571 else
25572 PATH_SEPARATOR=:
25573 fi
25574 rm -f conf$$.sh
25575fi
25576
25577# Support unset when possible.
25578if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
25579 as_unset=unset
25580else
25581 as_unset=false
25582fi
25583
25584
25585# IFS
25586# We need space, tab and new line, in precisely that order. Quoting is
25587# there to prevent editors from complaining about space-tab.
25588# (If _AS_PATH_WALK were called with IFS unset, it would disable word
25589# splitting by setting IFS to empty value.)
25590as_nl='
25591'
25592IFS=" "" $as_nl"
25593
25594# Find who we are. Look in the path if we contain no directory separator.
25595case $0 in
25596 *[\\/]* ) as_myself=$0 ;;
25597 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25598for as_dir in $PATH
25599do
25600 IFS=$as_save_IFS
25601 test -z "$as_dir" && as_dir=.
25602 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25603done
25604IFS=$as_save_IFS
25605
25606 ;;
25607esac
25608# We did not find ourselves, most probably we were run as `sh COMMAND'
25609# in which case we are not to be found in the path.
25610if test "x$as_myself" = x; then
25611 as_myself=$0
25612fi
25613if test ! -f "$as_myself"; then
25614 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25615 { (exit 1); exit 1; }
25616fi
25617
25618# Work around bugs in pre-3.0 UWIN ksh.
25619for as_var in ENV MAIL MAILPATH
25620do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
25621done
25622PS1='$ '
25623PS2='> '
25624PS4='+ '
25625
25626# NLS nuisances.
25627for as_var in \
25628 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
25629 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
25630 LC_TELEPHONE LC_TIME
25631do
25632 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
25633 eval $as_var=C; export $as_var
25634 else
25635 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
25636 fi
25637done
25638
25639# Required to use basename.
25640if expr a : '\(a\)' >/dev/null 2>&1 &&
25641 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25642 as_expr=expr
25643else
25644 as_expr=false
25645fi
25646
25647if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25648 as_basename=basename
25649else
25650 as_basename=false
25651fi
25652
25653
25654# Name of the executable.
25655as_me=`$as_basename -- "$0" ||
25656$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25657 X"$0" : 'X\(//\)$' \| \
25658 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25659echo X/"$0" |
25660 sed '/^.*\/\([^/][^/]*\)\/*$/{
25661 s//\1/
25662 q
25663 }
25664 /^X\/\(\/\/\)$/{
25665 s//\1/
25666 q
25667 }
25668 /^X\/\(\/\).*/{
25669 s//\1/
25670 q
25671 }
25672 s/.*/./; q'`
25673
25674# CDPATH.
25675$as_unset CDPATH
25676
25677
25678
25679 as_lineno_1=$LINENO
25680 as_lineno_2=$LINENO
25681 test "x$as_lineno_1" != "x$as_lineno_2" &&
25682 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
25683
25684 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
25685 # uniformly replaced by the line number. The first 'sed' inserts a
25686 # line-number line after each line using $LINENO; the second 'sed'
25687 # does the real work. The second script uses 'N' to pair each
25688 # line-number line with the line containing $LINENO, and appends
25689 # trailing '-' during substitution so that $LINENO is not a special
25690 # case at line end.
25691 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
25692 # scripts with optimization help from Paolo Bonzini. Blame Lee
25693 # E. McMahon (1931-1989) for sed's syntax. :-)
25694 sed -n '
25695 p
25696 /[$]LINENO/=
25697 ' <$as_myself |
25698 sed '
25699 s/[$]LINENO.*/&-/
25700 t lineno
25701 b
25702 :lineno
25703 N
25704 :loop
25705 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
25706 t loop
25707 s/-\n.*//
25708 ' >$as_me.lineno &&
25709 chmod +x "$as_me.lineno" ||
25710 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
25711 { (exit 1); exit 1; }; }
25712
25713 # Don't try to exec as it changes $[0], causing all sort of problems
25714 # (the dirname of $[0] is not the place where we might find the
25715 # original and so on. Autoconf is especially sensitive to this).
25716 . "./$as_me.lineno"
25717 # Exit status is that of the last command.
25718 exit
25719}
25720
25721
25722if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25723 as_dirname=dirname
25724else
25725 as_dirname=false
25726fi
25727
25728ECHO_C= ECHO_N= ECHO_T=
25729case `echo -n x` in
25730-n*)
25731 case `echo 'x\c'` in
25732 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
25733 *) ECHO_C='\c';;
25734 esac;;
25735*)
25736 ECHO_N='-n';;
25737esac
25738
25739if expr a : '\(a\)' >/dev/null 2>&1 &&
25740 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25741 as_expr=expr
25742else
25743 as_expr=false
25744fi
25745
25746rm -f conf$$ conf$$.exe conf$$.file
25747if test -d conf$$.dir; then
25748 rm -f conf$$.dir/conf$$.file
25749else
25750 rm -f conf$$.dir
25751 mkdir conf$$.dir
25752fi
25753echo >conf$$.file
25754if ln -s conf$$.file conf$$ 2>/dev/null; then
25755 as_ln_s='ln -s'
25756 # ... but there are two gotchas:
25757 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25758 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25759 # In both cases, we have to default to `cp -p'.
25760 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25761 as_ln_s='cp -p'
25762elif ln conf$$.file conf$$ 2>/dev/null; then
25763 as_ln_s=ln
25764else
25765 as_ln_s='cp -p'
25766fi
25767rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25768rmdir conf$$.dir 2>/dev/null
25769
25770if mkdir -p . 2>/dev/null; then
25771 as_mkdir_p=:
25772else
25773 test -d ./-p && rmdir ./-p
25774 as_mkdir_p=false
25775fi
25776
25777if test -x / >/dev/null 2>&1; then
25778 as_test_x='test -x'
25779else
25780 if ls -dL / >/dev/null 2>&1; then
25781 as_ls_L_option=L
25782 else
25783 as_ls_L_option=
25784 fi
25785 as_test_x='
25786 eval sh -c '\''
25787 if test -d "$1"; then
25788 test -d "$1/.";
25789 else
25790 case $1 in
25791 -*)set "./$1";;
25792 esac;
25793 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
25794 ???[sx]*):;;*)false;;esac;fi
25795 '\'' sh
25796 '
25797fi
25798as_executable_p=$as_test_x
25799
25800# Sed expression to map a string onto a valid CPP name.
25801as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25802
25803# Sed expression to map a string onto a valid variable name.
25804as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25805
25806
25807exec 6>&1
25808
25809# Save the log message, to keep $[0] and so on meaningful, and to
25810# report actual input values of CONFIG_FILES etc. instead of their
25811# values after options handling.
25812ac_log="
25813This file was extended by library $as_me 1.0, which was
25814generated by GNU Autoconf 2.61. Invocation command line was
25815
25816 CONFIG_FILES = $CONFIG_FILES
25817 CONFIG_HEADERS = $CONFIG_HEADERS
25818 CONFIG_LINKS = $CONFIG_LINKS
25819 CONFIG_COMMANDS = $CONFIG_COMMANDS
25820 $ $0 $@
25821
25822on `(hostname || uname -n) 2>/dev/null | sed 1q`
25823"
25824
25825_ACEOF
25826
25827cat >>$CONFIG_STATUS <<_ACEOF
25828# Files that config.status was made for.
25829config_files="$ac_config_files"
25830config_headers="$ac_config_headers"
25831config_commands="$ac_config_commands"
25832
25833_ACEOF
25834
25835cat >>$CONFIG_STATUS <<\_ACEOF
25836ac_cs_usage="\
25837\`$as_me' instantiates files from templates according to the
25838current configuration.
25839
25840Usage: $0 [OPTIONS] [FILE]...
25841
25842 -h, --help print this help, then exit
25843 -V, --version print version number and configuration settings, then exit
25844 -q, --quiet do not print progress messages
25845 -d, --debug don't remove temporary files
25846 --recheck update $as_me by reconfiguring in the same conditions
25847 --file=FILE[:TEMPLATE]
25848 instantiate the configuration file FILE
25849 --header=FILE[:TEMPLATE]
25850 instantiate the configuration header FILE
25851
25852Configuration files:
25853$config_files
25854
25855Configuration headers:
25856$config_headers
25857
25858Configuration commands:
25859$config_commands
25860
25861Report bugs to <bug-autoconf@gnu.org>."
25862
25863_ACEOF
25864cat >>$CONFIG_STATUS <<_ACEOF
25865ac_cs_version="\\
25866library config.status 1.0
25867configured by $0, generated by GNU Autoconf 2.61,
25868 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
25869
25870Copyright (C) 2006 Free Software Foundation, Inc.
25871This config.status script is free software; the Free Software Foundation
25872gives unlimited permission to copy, distribute and modify it."
25873
25874ac_pwd='$ac_pwd'
25875srcdir='$srcdir'
25876INSTALL='$INSTALL'
25877MKDIR_P='$MKDIR_P'
25878_ACEOF
25879
25880cat >>$CONFIG_STATUS <<\_ACEOF
25881# If no file are specified by the user, then we need to provide default
25882# value. By we need to know if files were specified by the user.
25883ac_need_defaults=:
25884while test $# != 0
25885do
25886 case $1 in
25887 --*=*)
25888 ac_option=`expr "X$1" : 'X\([^=]*\)='`
25889 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25890 ac_shift=:
25891 ;;
25892 *)
25893 ac_option=$1
25894 ac_optarg=$2
25895 ac_shift=shift
25896 ;;
25897 esac
25898
25899 case $ac_option in
25900 # Handling of the options.
25901 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25902 ac_cs_recheck=: ;;
25903 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25904 echo "$ac_cs_version"; exit ;;
25905 --debug | --debu | --deb | --de | --d | -d )
25906 debug=: ;;
25907 --file | --fil | --fi | --f )
25908 $ac_shift
25909 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
25910 ac_need_defaults=false;;
25911 --header | --heade | --head | --hea )
25912 $ac_shift
25913 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
25914 ac_need_defaults=false;;
25915 --he | --h)
25916 # Conflict between --help and --header
25917 { echo "$as_me: error: ambiguous option: $1
25918Try \`$0 --help' for more information." >&2
25919 { (exit 1); exit 1; }; };;
25920 --help | --hel | -h )
25921 echo "$ac_cs_usage"; exit ;;
25922 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25923 | -silent | --silent | --silen | --sile | --sil | --si | --s)
25924 ac_cs_silent=: ;;
25925
25926 # This is an error.
25927 -*) { echo "$as_me: error: unrecognized option: $1
25928Try \`$0 --help' for more information." >&2
25929 { (exit 1); exit 1; }; } ;;
25930
25931 *) ac_config_targets="$ac_config_targets $1"
25932 ac_need_defaults=false ;;
25933
25934 esac
25935 shift
25936done
25937
25938ac_configure_extra_args=
25939
25940if $ac_cs_silent; then
25941 exec 6>/dev/null
25942 ac_configure_extra_args="$ac_configure_extra_args --silent"
25943fi
25944
25945_ACEOF
25946cat >>$CONFIG_STATUS <<_ACEOF
25947if \$ac_cs_recheck; then
25948 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
25949 CONFIG_SHELL=$SHELL
25950 export CONFIG_SHELL
25951 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25952fi
25953
25954_ACEOF
25955cat >>$CONFIG_STATUS <<\_ACEOF
25956exec 5>>config.log
25957{
25958 echo
25959 sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
25960@%:@@%:@ Running $as_me. @%:@@%:@
25961_ASBOX
25962 echo "$ac_log"
25963} >&5
25964
25965_ACEOF
25966cat >>$CONFIG_STATUS <<_ACEOF
25967#
25968# INIT-COMMANDS
25969#
25970AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
25971
25972_ACEOF
25973
25974cat >>$CONFIG_STATUS <<\_ACEOF
25975
25976# Handling of arguments.
25977for ac_config_target in $ac_config_targets
25978do
25979 case $ac_config_target in
25980 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
25981 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
25982 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
25983 "libpool/src/Makefile") CONFIG_FILES="$CONFIG_FILES libpool/src/Makefile" ;;
25984 "libxmlet/src/Makefile") CONFIG_FILES="$CONFIG_FILES libxmlet/src/Makefile" ;;
25985 "libcwmp/src/Makefile") CONFIG_FILES="$CONFIG_FILES libcwmp/src/Makefile" ;;
25986 "cwmpd/src/Makefile") CONFIG_FILES="$CONFIG_FILES cwmpd/src/Makefile" ;;
25987 "tests/src/Makefile") CONFIG_FILES="$CONFIG_FILES tests/src/Makefile" ;;
25988
25989 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25990echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25991 { (exit 1); exit 1; }; };;
25992 esac
25993done
25994
25995
25996# If the user did not use the arguments to specify the items to instantiate,
25997# then the envvar interface is used. Set only those that are not.
25998# We use the long form for the default assignment because of an extremely
25999# bizarre bug on SunOS 4.1.3.
26000if $ac_need_defaults; then
26001 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26002 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26003 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26004fi
26005
26006# Have a temporary directory for convenience. Make it in the build tree
26007# simply because there is no reason against having it here, and in addition,
26008# creating and moving files from /tmp can sometimes cause problems.
26009# Hook for its removal unless debugging.
26010# Note that there is a small window in which the directory will not be cleaned:
26011# after its creation but before its name has been assigned to `$tmp'.
26012$debug ||
26013{
26014 tmp=
26015 trap 'exit_status=$?
26016 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26017' 0
26018 trap '{ (exit 1); exit 1; }' 1 2 13 15
26019}
26020# Create a (secure) tmp directory for tmp files.
26021
26022{
26023 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26024 test -n "$tmp" && test -d "$tmp"
26025} ||
26026{
26027 tmp=./conf$$-$RANDOM
26028 (umask 077 && mkdir "$tmp")
26029} ||
26030{
26031 echo "$me: cannot create a temporary directory in ." >&2
26032 { (exit 1); exit 1; }
26033}
26034
26035#
26036# Set up the sed scripts for CONFIG_FILES section.
26037#
26038
26039# No need to generate the scripts if there are no CONFIG_FILES.
26040# This happens for instance when ./config.status config.h
26041if test -n "$CONFIG_FILES"; then
26042
26043_ACEOF
26044
26045
26046
26047ac_delim='%!_!# '
26048for ac_last_try in false false false false false :; do
26049 cat >conf$$subs.sed <<_ACEOF
26050SHELL!$SHELL$ac_delim
26051PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
26052PACKAGE_NAME!$PACKAGE_NAME$ac_delim
26053PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
26054PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
26055PACKAGE_STRING!$PACKAGE_STRING$ac_delim
26056PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
26057exec_prefix!$exec_prefix$ac_delim
26058prefix!$prefix$ac_delim
26059program_transform_name!$program_transform_name$ac_delim
26060bindir!$bindir$ac_delim
26061sbindir!$sbindir$ac_delim
26062libexecdir!$libexecdir$ac_delim
26063datarootdir!$datarootdir$ac_delim
26064datadir!$datadir$ac_delim
26065sysconfdir!$sysconfdir$ac_delim
26066sharedstatedir!$sharedstatedir$ac_delim
26067localstatedir!$localstatedir$ac_delim
26068includedir!$includedir$ac_delim
26069oldincludedir!$oldincludedir$ac_delim
26070docdir!$docdir$ac_delim
26071infodir!$infodir$ac_delim
26072htmldir!$htmldir$ac_delim
26073dvidir!$dvidir$ac_delim
26074pdfdir!$pdfdir$ac_delim
26075psdir!$psdir$ac_delim
26076libdir!$libdir$ac_delim
26077localedir!$localedir$ac_delim
26078mandir!$mandir$ac_delim
26079DEFS!$DEFS$ac_delim
26080ECHO_C!$ECHO_C$ac_delim
26081ECHO_N!$ECHO_N$ac_delim
26082ECHO_T!$ECHO_T$ac_delim
26083LIBS!$LIBS$ac_delim
26084build_alias!$build_alias$ac_delim
26085host_alias!$host_alias$ac_delim
26086target_alias!$target_alias$ac_delim
26087INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
26088INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
26089INSTALL_DATA!$INSTALL_DATA$ac_delim
26090am__isrc!$am__isrc$ac_delim
26091CYGPATH_W!$CYGPATH_W$ac_delim
26092PACKAGE!$PACKAGE$ac_delim
26093VERSION!$VERSION$ac_delim
26094ACLOCAL!$ACLOCAL$ac_delim
26095AUTOCONF!$AUTOCONF$ac_delim
26096AUTOMAKE!$AUTOMAKE$ac_delim
26097AUTOHEADER!$AUTOHEADER$ac_delim
26098MAKEINFO!$MAKEINFO$ac_delim
26099install_sh!$install_sh$ac_delim
26100STRIP!$STRIP$ac_delim
26101INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
26102mkdir_p!$mkdir_p$ac_delim
26103AWK!$AWK$ac_delim
26104SET_MAKE!$SET_MAKE$ac_delim
26105am__leading_dot!$am__leading_dot$ac_delim
26106AMTAR!$AMTAR$ac_delim
26107am__tar!$am__tar$ac_delim
26108am__untar!$am__untar$ac_delim
26109CXX!$CXX$ac_delim
26110CXXFLAGS!$CXXFLAGS$ac_delim
26111LDFLAGS!$LDFLAGS$ac_delim
26112CPPFLAGS!$CPPFLAGS$ac_delim
26113ac_ct_CXX!$ac_ct_CXX$ac_delim
26114EXEEXT!$EXEEXT$ac_delim
26115OBJEXT!$OBJEXT$ac_delim
26116DEPDIR!$DEPDIR$ac_delim
26117am__include!$am__include$ac_delim
26118am__quote!$am__quote$ac_delim
26119AMDEP_TRUE!$AMDEP_TRUE$ac_delim
26120AMDEP_FALSE!$AMDEP_FALSE$ac_delim
26121AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
26122CXXDEPMODE!$CXXDEPMODE$ac_delim
26123am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
26124am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
26125CC!$CC$ac_delim
26126CFLAGS!$CFLAGS$ac_delim
26127ac_ct_CC!$ac_ct_CC$ac_delim
26128CCDEPMODE!$CCDEPMODE$ac_delim
26129am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
26130am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
26131CPP!$CPP$ac_delim
26132build!$build$ac_delim
26133build_cpu!$build_cpu$ac_delim
26134build_vendor!$build_vendor$ac_delim
26135build_os!$build_os$ac_delim
26136host!$host$ac_delim
26137host_cpu!$host_cpu$ac_delim
26138host_vendor!$host_vendor$ac_delim
26139host_os!$host_os$ac_delim
26140SED!$SED$ac_delim
26141GREP!$GREP$ac_delim
26142EGREP!$EGREP$ac_delim
26143LN_S!$LN_S$ac_delim
26144ECHO!$ECHO$ac_delim
26145AR!$AR$ac_delim
26146RANLIB!$RANLIB$ac_delim
26147_ACEOF
26148
26149 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
26150 break
26151 elif $ac_last_try; then
26152 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26153echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26154 { (exit 1); exit 1; }; }
26155 else
26156 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26157 fi
26158done
26159
26160ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26161if test -n "$ac_eof"; then
26162 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
26163 ac_eof=`expr $ac_eof + 1`
26164fi
26165
26166cat >>$CONFIG_STATUS <<_ACEOF
26167cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
26168/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26169_ACEOF
26170sed '
26171s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26172s/^/s,@/; s/!/@,|#_!!_#|/
26173:n
26174t n
26175s/'"$ac_delim"'$/,g/; t
26176s/$/\\/; p
26177N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26178' >>$CONFIG_STATUS <conf$$subs.sed
26179rm -f conf$$subs.sed
26180cat >>$CONFIG_STATUS <<_ACEOF
26181CEOF$ac_eof
26182_ACEOF
26183
26184
26185ac_delim='%!_!# '
26186for ac_last_try in false false false false false :; do
26187 cat >conf$$subs.sed <<_ACEOF
26188DSYMUTIL!$DSYMUTIL$ac_delim
26189NMEDIT!$NMEDIT$ac_delim
26190CXXCPP!$CXXCPP$ac_delim
26191F77!$F77$ac_delim
26192FFLAGS!$FFLAGS$ac_delim
26193ac_ct_F77!$ac_ct_F77$ac_delim
26194LIBTOOL!$LIBTOOL$ac_delim
26195ALLOCA!$ALLOCA$ac_delim
26196LIB@&t@OBJS!$LIB@&t@OBJS$ac_delim
26197OPENSSL_DIR!$OPENSSL_DIR$ac_delim
26198BUILD_CPU!$BUILD_CPU$ac_delim
26199BUILD_VENDOR!$BUILD_VENDOR$ac_delim
26200BUILD_OS!$BUILD_OS$ac_delim
26201HOST_CPU!$HOST_CPU$ac_delim
26202HOST_VENDOR!$HOST_VENDOR$ac_delim
26203HOST_OS!$HOST_OS$ac_delim
26204COMPILE_FOR_MIPS_TRUE!$COMPILE_FOR_MIPS_TRUE$ac_delim
26205COMPILE_FOR_MIPS_FALSE!$COMPILE_FOR_MIPS_FALSE$ac_delim
26206LTLIBOBJS!$LTLIBOBJS$ac_delim
26207_ACEOF
26208
26209 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 19; then
26210 break
26211 elif $ac_last_try; then
26212 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26213echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26214 { (exit 1); exit 1; }; }
26215 else
26216 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26217 fi
26218done
26219
26220ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26221if test -n "$ac_eof"; then
26222 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
26223 ac_eof=`expr $ac_eof + 1`
26224fi
26225
26226cat >>$CONFIG_STATUS <<_ACEOF
26227cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
26228/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
26229_ACEOF
26230sed '
26231s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26232s/^/s,@/; s/!/@,|#_!!_#|/
26233:n
26234t n
26235s/'"$ac_delim"'$/,g/; t
26236s/$/\\/; p
26237N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26238' >>$CONFIG_STATUS <conf$$subs.sed
26239rm -f conf$$subs.sed
26240cat >>$CONFIG_STATUS <<_ACEOF
26241:end
26242s/|#_!!_#|//g
26243CEOF$ac_eof
26244_ACEOF
26245
26246
26247# VPATH may cause trouble with some makes, so we remove $(srcdir),
26248# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26249# trailing colons and then remove the whole line if VPATH becomes empty
26250# (actually we leave an empty line to preserve line numbers).
26251if test "x$srcdir" = x.; then
26252 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26253s/:*\$(srcdir):*/:/
26254s/:*\${srcdir}:*/:/
26255s/:*@srcdir@:*/:/
26256s/^\([^=]*=[ ]*\):*/\1/
26257s/:*$//
26258s/^[^=]*=[ ]*$//
26259}'
26260fi
26261
26262cat >>$CONFIG_STATUS <<\_ACEOF
26263fi # test -n "$CONFIG_FILES"
26264
26265
26266for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
26267do
26268 case $ac_tag in
26269 :[FHLC]) ac_mode=$ac_tag; continue;;
26270 esac
26271 case $ac_mode$ac_tag in
26272 :[FHL]*:*);;
26273 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
26274echo "$as_me: error: Invalid tag $ac_tag." >&2;}
26275 { (exit 1); exit 1; }; };;
26276 :[FH]-) ac_tag=-:-;;
26277 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26278 esac
26279 ac_save_IFS=$IFS
26280 IFS=:
26281 set x $ac_tag
26282 IFS=$ac_save_IFS
26283 shift
26284 ac_file=$1
26285 shift
26286
26287 case $ac_mode in
26288 :L) ac_source=$1;;
26289 :[FH])
26290 ac_file_inputs=
26291 for ac_f
26292 do
26293 case $ac_f in
26294 -) ac_f="$tmp/stdin";;
26295 *) # Look for the file first in the build tree, then in the source tree
26296 # (if the path is not absolute). The absolute path cannot be DOS-style,
26297 # because $ac_f cannot contain `:'.
26298 test -f "$ac_f" ||
26299 case $ac_f in
26300 [\\/$]*) false;;
26301 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26302 esac ||
26303 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
26304echo "$as_me: error: cannot find input file: $ac_f" >&2;}
26305 { (exit 1); exit 1; }; };;
26306 esac
26307 ac_file_inputs="$ac_file_inputs $ac_f"
26308 done
26309
26310 # Let's still pretend it is `configure' which instantiates (i.e., don't
26311 # use $as_me), people would be surprised to read:
26312 # /* config.h. Generated by config.status. */
26313 configure_input="Generated from "`IFS=:
26314 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
26315 if test x"$ac_file" != x-; then
26316 configure_input="$ac_file. $configure_input"
26317 { echo "$as_me:$LINENO: creating $ac_file" >&5
26318echo "$as_me: creating $ac_file" >&6;}
26319 fi
26320
26321 case $ac_tag in
26322 *:-:* | *:-) cat >"$tmp/stdin";;
26323 esac
26324 ;;
26325 esac
26326
26327 ac_dir=`$as_dirname -- "$ac_file" ||
26328$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26329 X"$ac_file" : 'X\(//\)[^/]' \| \
26330 X"$ac_file" : 'X\(//\)$' \| \
26331 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26332echo X"$ac_file" |
26333 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26334 s//\1/
26335 q
26336 }
26337 /^X\(\/\/\)[^/].*/{
26338 s//\1/
26339 q
26340 }
26341 /^X\(\/\/\)$/{
26342 s//\1/
26343 q
26344 }
26345 /^X\(\/\).*/{
26346 s//\1/
26347 q
26348 }
26349 s/.*/./; q'`
26350 { as_dir="$ac_dir"
26351 case $as_dir in #(
26352 -*) as_dir=./$as_dir;;
26353 esac
26354 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
26355 as_dirs=
26356 while :; do
26357 case $as_dir in #(
26358 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
26359 *) as_qdir=$as_dir;;
26360 esac
26361 as_dirs="'$as_qdir' $as_dirs"
26362 as_dir=`$as_dirname -- "$as_dir" ||
26363$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26364 X"$as_dir" : 'X\(//\)[^/]' \| \
26365 X"$as_dir" : 'X\(//\)$' \| \
26366 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26367echo X"$as_dir" |
26368 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26369 s//\1/
26370 q
26371 }
26372 /^X\(\/\/\)[^/].*/{
26373 s//\1/
26374 q
26375 }
26376 /^X\(\/\/\)$/{
26377 s//\1/
26378 q
26379 }
26380 /^X\(\/\).*/{
26381 s//\1/
26382 q
26383 }
26384 s/.*/./; q'`
26385 test -d "$as_dir" && break
26386 done
26387 test -z "$as_dirs" || eval "mkdir $as_dirs"
26388 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26389echo "$as_me: error: cannot create directory $as_dir" >&2;}
26390 { (exit 1); exit 1; }; }; }
26391 ac_builddir=.
26392
26393case "$ac_dir" in
26394.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26395*)
26396 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26397 # A ".." for each directory in $ac_dir_suffix.
26398 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
26399 case $ac_top_builddir_sub in
26400 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26401 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26402 esac ;;
26403esac
26404ac_abs_top_builddir=$ac_pwd
26405ac_abs_builddir=$ac_pwd$ac_dir_suffix
26406# for backward compatibility:
26407ac_top_builddir=$ac_top_build_prefix
26408
26409case $srcdir in
26410 .) # We are building in place.
26411 ac_srcdir=.
26412 ac_top_srcdir=$ac_top_builddir_sub
26413 ac_abs_top_srcdir=$ac_pwd ;;
26414 [\\/]* | ?:[\\/]* ) # Absolute name.
26415 ac_srcdir=$srcdir$ac_dir_suffix;
26416 ac_top_srcdir=$srcdir
26417 ac_abs_top_srcdir=$srcdir ;;
26418 *) # Relative name.
26419 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26420 ac_top_srcdir=$ac_top_build_prefix$srcdir
26421 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26422esac
26423ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26424
26425
26426 case $ac_mode in
26427 :F)
26428 #
26429 # CONFIG_FILE
26430 #
26431
26432 case $INSTALL in
26433 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26434 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
26435 esac
26436 ac_MKDIR_P=$MKDIR_P
26437 case $MKDIR_P in
26438 [\\/$]* | ?:[\\/]* ) ;;
26439 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
26440 esac
26441_ACEOF
26442
26443cat >>$CONFIG_STATUS <<\_ACEOF
26444# If the template does not know about datarootdir, expand it.
26445# FIXME: This hack should be removed a few years after 2.60.
26446ac_datarootdir_hack=; ac_datarootdir_seen=
26447
26448case `sed -n '/datarootdir/ {
26449 p
26450 q
26451}
26452/@datadir@/p
26453/@docdir@/p
26454/@infodir@/p
26455/@localedir@/p
26456/@mandir@/p
26457' $ac_file_inputs` in
26458*datarootdir*) ac_datarootdir_seen=yes;;
26459*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26460 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26461echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26462_ACEOF
26463cat >>$CONFIG_STATUS <<_ACEOF
26464 ac_datarootdir_hack='
26465 s&@datadir@&$datadir&g
26466 s&@docdir@&$docdir&g
26467 s&@infodir@&$infodir&g
26468 s&@localedir@&$localedir&g
26469 s&@mandir@&$mandir&g
26470 s&\\\${datarootdir}&$datarootdir&g' ;;
26471esac
26472_ACEOF
26473
26474# Neutralize VPATH when `$srcdir' = `.'.
26475# Shell code in configure.ac might set extrasub.
26476# FIXME: do we really want to maintain this feature?
26477cat >>$CONFIG_STATUS <<_ACEOF
26478 sed "$ac_vpsub
26479$extrasub
26480_ACEOF
26481cat >>$CONFIG_STATUS <<\_ACEOF
26482:t
26483/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26484s&@configure_input@&$configure_input&;t t
26485s&@top_builddir@&$ac_top_builddir_sub&;t t
26486s&@srcdir@&$ac_srcdir&;t t
26487s&@abs_srcdir@&$ac_abs_srcdir&;t t
26488s&@top_srcdir@&$ac_top_srcdir&;t t
26489s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26490s&@builddir@&$ac_builddir&;t t
26491s&@abs_builddir@&$ac_abs_builddir&;t t
26492s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26493s&@INSTALL@&$ac_INSTALL&;t t
26494s&@MKDIR_P@&$ac_MKDIR_P&;t t
26495$ac_datarootdir_hack
26496" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
26497
26498test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26499 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
26500 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
26501 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26502which seems to be undefined. Please make sure it is defined." >&5
26503echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26504which seems to be undefined. Please make sure it is defined." >&2;}
26505
26506 rm -f "$tmp/stdin"
26507 case $ac_file in
26508 -) cat "$tmp/out"; rm -f "$tmp/out";;
26509 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
26510 esac
26511 ;;
26512 :H)
26513 #
26514 # CONFIG_HEADER
26515 #
26516_ACEOF
26517
26518# Transform confdefs.h into a sed script `conftest.defines', that
26519# substitutes the proper values into config.h.in to produce config.h.
26520rm -f conftest.defines conftest.tail
26521# First, append a space to every undef/define line, to ease matching.
26522echo 's/$/ /' >conftest.defines
26523# Then, protect against being on the right side of a sed subst, or in
26524# an unquoted here document, in config.status. If some macros were
26525# called several times there might be several #defines for the same
26526# symbol, which is useless. But do not sort them, since the last
26527# AC_DEFINE must be honored.
26528ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26529# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
26530# NAME is the cpp macro being defined, VALUE is the value it is being given.
26531# PARAMS is the parameter list in the macro definition--in most cases, it's
26532# just an empty string.
26533ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
26534ac_dB='\\)[ (].*,\\1define\\2'
26535ac_dC=' '
26536ac_dD=' ,'
26537
26538uniq confdefs.h |
26539 sed -n '
26540 t rset
26541 :rset
26542 s/^[ ]*#[ ]*define[ ][ ]*//
26543 t ok
26544 d
26545 :ok
26546 s/[\\&,]/\\&/g
26547 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
26548 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
26549 ' >>conftest.defines
26550
26551# Remove the space that was appended to ease matching.
26552# Then replace #undef with comments. This is necessary, for
26553# example, in the case of _POSIX_SOURCE, which is predefined and required
26554# on some systems where configure will not decide to define it.
26555# (The regexp can be short, since the line contains either #define or #undef.)
26556echo 's/ $//
26557s,^[ #]*u.*,/* & */,' >>conftest.defines
26558
26559# Break up conftest.defines:
26560ac_max_sed_lines=50
26561
26562# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
26563# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
26564# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
26565# et cetera.
26566ac_in='$ac_file_inputs'
26567ac_out='"$tmp/out1"'
26568ac_nxt='"$tmp/out2"'
26569
26570while :
26571do
26572 # Write a here document:
26573 cat >>$CONFIG_STATUS <<_ACEOF
26574 # First, check the format of the line:
26575 cat >"\$tmp/defines.sed" <<\\CEOF
26576/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
26577/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
26578b
26579:def
26580_ACEOF
26581 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
26582 echo 'CEOF
26583 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
26584 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
26585 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
26586 grep . conftest.tail >/dev/null || break
26587 rm -f conftest.defines
26588 mv conftest.tail conftest.defines
26589done
26590rm -f conftest.defines conftest.tail
26591
26592echo "ac_result=$ac_in" >>$CONFIG_STATUS
26593cat >>$CONFIG_STATUS <<\_ACEOF
26594 if test x"$ac_file" != x-; then
26595 echo "/* $configure_input */" >"$tmp/config.h"
26596 cat "$ac_result" >>"$tmp/config.h"
26597 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
26598 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
26599echo "$as_me: $ac_file is unchanged" >&6;}
26600 else
26601 rm -f $ac_file
26602 mv "$tmp/config.h" $ac_file
26603 fi
26604 else
26605 echo "/* $configure_input */"
26606 cat "$ac_result"
26607 fi
26608 rm -f "$tmp/out12"
26609# Compute $ac_file's index in $config_headers.
26610_am_stamp_count=1
26611for _am_header in $config_headers :; do
26612 case $_am_header in
26613 $ac_file | $ac_file:* )
26614 break ;;
26615 * )
26616 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
26617 esac
26618done
26619echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
26620$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26621 X$ac_file : 'X\(//\)[^/]' \| \
26622 X$ac_file : 'X\(//\)$' \| \
26623 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
26624echo X$ac_file |
26625 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26626 s//\1/
26627 q
26628 }
26629 /^X\(\/\/\)[^/].*/{
26630 s//\1/
26631 q
26632 }
26633 /^X\(\/\/\)$/{
26634 s//\1/
26635 q
26636 }
26637 /^X\(\/\).*/{
26638 s//\1/
26639 q
26640 }
26641 s/.*/./; q'`/stamp-h$_am_stamp_count
26642 ;;
26643
26644 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
26645echo "$as_me: executing $ac_file commands" >&6;}
26646 ;;
26647 esac
26648
26649
26650 case $ac_file$ac_mode in
26651 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
26652 # Strip MF so we end up with the name of the file.
26653 mf=`echo "$mf" | sed -e 's/:.*$//'`
26654 # Check whether this is an Automake generated Makefile or not.
26655 # We used to match only the files named `Makefile.in', but
26656 # some people rename them; so instead we look at the file content.
26657 # Grep'ing the first line is not enough: some people post-process
26658 # each Makefile.in and add a new line on top of each file to say so.
26659 # Grep'ing the whole file is not good either: AIX grep has a line
26660 # limit of 2048, but all sed's we know have understand at least 4000.
26661 if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
26662 dirpart=`$as_dirname -- "$mf" ||
26663$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26664 X"$mf" : 'X\(//\)[^/]' \| \
26665 X"$mf" : 'X\(//\)$' \| \
26666 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
26667echo X"$mf" |
26668 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26669 s//\1/
26670 q
26671 }
26672 /^X\(\/\/\)[^/].*/{
26673 s//\1/
26674 q
26675 }
26676 /^X\(\/\/\)$/{
26677 s//\1/
26678 q
26679 }
26680 /^X\(\/\).*/{
26681 s//\1/
26682 q
26683 }
26684 s/.*/./; q'`
26685 else
26686 continue
26687 fi
26688 # Extract the definition of DEPDIR, am__include, and am__quote
26689 # from the Makefile without running `make'.
26690 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
26691 test -z "$DEPDIR" && continue
26692 am__include=`sed -n 's/^am__include = //p' < "$mf"`
26693 test -z "am__include" && continue
26694 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
26695 # When using ansi2knr, U may be empty or an underscore; expand it
26696 U=`sed -n 's/^U = //p' < "$mf"`
26697 # Find all dependency output files, they are included files with
26698 # $(DEPDIR) in their names. We invoke sed twice because it is the
26699 # simplest approach to changing $(DEPDIR) to its actual value in the
26700 # expansion.
26701 for file in `sed -n "
26702 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
26703 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
26704 # Make sure the directory exists.
26705 test -f "$dirpart/$file" && continue
26706 fdir=`$as_dirname -- "$file" ||
26707$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26708 X"$file" : 'X\(//\)[^/]' \| \
26709 X"$file" : 'X\(//\)$' \| \
26710 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
26711echo X"$file" |
26712 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26713 s//\1/
26714 q
26715 }
26716 /^X\(\/\/\)[^/].*/{
26717 s//\1/
26718 q
26719 }
26720 /^X\(\/\/\)$/{
26721 s//\1/
26722 q
26723 }
26724 /^X\(\/\).*/{
26725 s//\1/
26726 q
26727 }
26728 s/.*/./; q'`
26729 { as_dir=$dirpart/$fdir
26730 case $as_dir in #(
26731 -*) as_dir=./$as_dir;;
26732 esac
26733 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
26734 as_dirs=
26735 while :; do
26736 case $as_dir in #(
26737 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
26738 *) as_qdir=$as_dir;;
26739 esac
26740 as_dirs="'$as_qdir' $as_dirs"
26741 as_dir=`$as_dirname -- "$as_dir" ||
26742$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26743 X"$as_dir" : 'X\(//\)[^/]' \| \
26744 X"$as_dir" : 'X\(//\)$' \| \
26745 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26746echo X"$as_dir" |
26747 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26748 s//\1/
26749 q
26750 }
26751 /^X\(\/\/\)[^/].*/{
26752 s//\1/
26753 q
26754 }
26755 /^X\(\/\/\)$/{
26756 s//\1/
26757 q
26758 }
26759 /^X\(\/\).*/{
26760 s//\1/
26761 q
26762 }
26763 s/.*/./; q'`
26764 test -d "$as_dir" && break
26765 done
26766 test -z "$as_dirs" || eval "mkdir $as_dirs"
26767 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26768echo "$as_me: error: cannot create directory $as_dir" >&2;}
26769 { (exit 1); exit 1; }; }; }
26770 # echo "creating $dirpart/$file"
26771 echo '# dummy' > "$dirpart/$file"
26772 done
26773done
26774 ;;
26775
26776 esac
26777done # for ac_tag
26778
26779
26780{ (exit 0); exit 0; }
26781_ACEOF
26782chmod +x $CONFIG_STATUS
26783ac_clean_files=$ac_clean_files_save
26784
26785
26786# configure is writing to config.log, and then calls config.status.
26787# config.status does its own redirection, appending to config.log.
26788# Unfortunately, on DOS this fails, as config.log is still kept open
26789# by configure, so config.status won't be able to write to it; its
26790# output is simply discarded. So we exec the FD to /dev/null,
26791# effectively closing config.log, so it can be properly (re)opened and
26792# appended to by config.status. When coming back to configure, we
26793# need to make the FD available again.
26794if test "$no_create" != yes; then
26795 ac_cs_success=:
26796 ac_config_status_args=
26797 test "$silent" = yes &&
26798 ac_config_status_args="$ac_config_status_args --quiet"
26799 exec 5>/dev/null
26800 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26801 exec 5>>config.log
26802 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26803 # would make configure fail if this is the last instruction.
26804 $ac_cs_success || { (exit 1); exit 1; }
26805fi
26806